:root {
  --workspace-header-height: 160px;
  color-scheme: light;
  --ink: #16251f;
  --ink-soft: #5f6f68;
  --ink-muted: #87938e;
  --accent: #8fde00;
  --accent-hover: #82cc00;
  --accent-dim: #6cb000;
  --on-accent: #0e1407;
  --on-accent-soft: rgba(14, 20, 7, 0.68);
  --on-accent-faint: rgba(14, 20, 7, 0.56);
  --tea-900: var(--on-accent);
  --tea-800: var(--accent-dim);
  --tea-700: var(--accent-dim);
  --tea-600: var(--accent-dim);
  --tea-500: var(--accent);
  --tea-400: #a9dc51;
  --tea-300: #c5ea81;
  --tea-200: #d7edaf;
  --tea-100: #e4f4c7;
  --tea-50: #f3f9e8;
  --cream: #f7f6f0;
  --paper: #ffffff;
  --line: #dde5e1;
  --line-soft: #edf2ef;
  --line-strong: #cbd8d2;
  --surface-soft: #f8faf8;
  --coral: #d9685a;
  --coral-soft: #fbeae6;
  --amber: #c98a27;
  --amber-soft: #fbf1dd;
  --blue: #3978c6;
  --blue-soft: #eaf2fb;
  --success: var(--accent-dim);
  --shadow-sm: 0 10px 30px rgba(23, 52, 43, 0.07);
  --shadow-lg: 0 24px 80px rgba(23, 52, 43, 0.11);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1240px;
  --font-sans: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --select-chevron: linear-gradient(45deg, transparent 50%, #5f6f68 50%), linear-gradient(135deg, #5f6f68 50%, transparent 50%);
  --select-chevron-position: calc(100% - 28px) 50%, calc(100% - 24px) 50%;
}

/* Manual member registry: peer to monitoring scope and operator scope settings. */
.member-create-card,
.member-list-card {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 24px;
  border: 1px solid var(--line, #e4e9e4);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgb(47 66 48 / 8%);
}

.member-create-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  padding: 24px;
}

.member-create-card__head {
  grid-column: 1 / -1;
}

.member-create-card__head h2,
.member-create-card__head p {
  margin: 0;
}

.member-create-card__head h2 { font-size: 18px; }
.member-create-card__head p { margin-top: 5px; color: var(--ink-muted); }

.member-create-card > .button {
  width: 100%;
  min-height: 44px;
}

.member-create-card label,
.member-config-row label {
  display: grid;
  gap: 8px;
  color: #607064;
  font-size: 13px;
}

.member-create-card input,
.member-create-card select,
.member-config-row select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d9e1da;
  border-radius: 12px;
  background: #fff;
  padding: 0 13px;
  color: #28382d;
  font: inherit;
}

.member-create-card select,
.member-config-row select {
  padding-right: 46px;
  appearance: none;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: var(--select-chevron-position);
  background-size: 5px 5px;
}

.member-list-card {
  overflow: hidden;
}

.member-list-card__head {
  padding: 22px 24px;
  border-bottom: 1px solid #e9ede9;
}

.member-list-card__head h2,
.member-list-card__head p {
  margin: 0;
}

.member-list-card__head p {
  margin-top: 6px;
  color: #77837a;
}

.member-config-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #edf0ed;
}

.member-config-row:last-child {
  border-bottom: 0;
}

.member-config-row__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.member-config-row__copy small {
  color: #7d8980;
}

.member-config-row__copy em {
  color: #c46b25;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.member-config-row__actions {
  display: grid;
  grid-template-columns: minmax(180px, 240px) auto;
  gap: 10px;
  align-items: end;
}

.member-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 13px;
  color: #a24c3f;
  border: 1px solid #e8cbc5;
  border-radius: 12px;
  background: #fff9f7;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.member-delete-button:hover:not(:disabled) {
  color: #84362c;
  border-color: #d9a99f;
  background: #fff3ef;
}

.member-delete-button:disabled { cursor: not-allowed; opacity: .5; }
.member-delete-overlay {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 37, 30, 0.46);
  backdrop-filter: blur(4px);
}

.member-delete-confirm {
  width: min(520px, 100%);
  margin: 0;
  background: #fff;
  box-shadow: 0 34px 100px rgba(15, 53, 43, 0.25);
}
.member-delete-confirm h3, .member-delete-confirm p { margin-top: 0; }
.member-delete-confirm p { color: var(--ink-soft); }
.member-delete-confirm__submit { background: #a24c3f; border-color: #a24c3f; }
.member-delete-confirm__submit:hover:not(:disabled) { background: #84362c; border-color: #84362c; }

@media (min-width: 1120px) {
  .member-create-card {
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) minmax(200px, .8fr) minmax(132px, auto);
  }
}

@media (max-width: 960px) {
  .member-config-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .member-config-row > label,
  .member-config-row > select,
  .member-config-row > .button,
  .member-config-row__actions {
    grid-column: 2;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .member-create-card {
    grid-template-columns: 1fr;
  }

  .member-config-row {
    padding: 16px;
  }

  .member-config-row__actions { grid-template-columns: 1fr; }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 3%, rgba(143, 222, 0, 0.14), transparent 24rem),
    radial-gradient(circle at 8% 32%, rgba(235, 211, 175, 0.18), transparent 24rem),
    var(--cream);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Save/send feedback remains visible without taking space in long settings and result pages. */
.floating-notice {
  position: fixed;
  z-index: 1300;
  right: auto;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  width: max-content;
  max-width: min(560px, calc(100vw - 32px));
  margin: 0;
  transform: translateX(-50%);
  border: 1px solid rgba(201, 138, 39, 0.2);
  box-shadow: 0 16px 44px rgba(23, 52, 43, 0.18);
  pointer-events: none;
  animation: toast-in 220ms ease both;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100dvh;
}

.auth-gate {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  min-height: 100dvh;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(143, 222, 0, 0.18), transparent 27rem),
    radial-gradient(circle at 8% 88%, rgba(235, 211, 175, 0.26), transparent 26rem),
    var(--cream);
}

.auth-gate::before,
.auth-gate::after {
  position: absolute;
  border: 1px solid rgba(108, 176, 0, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.auth-gate::before {
  width: 430px;
  height: 430px;
  top: -255px;
  right: -80px;
}

.auth-gate::after {
  width: 280px;
  height: 280px;
  bottom: -170px;
  left: 32%;
}

.auth-gate__story {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(100dvh - 56px);
  padding: clamp(34px, 5.5vw, 78px);
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(203, 216, 210, 0.86);
  border-radius: 30px;
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.94), rgba(243, 249, 232, 0.88)),
    var(--paper);
  box-shadow: var(--shadow-lg);
}

.auth-gate__story::after {
  position: absolute;
  width: min(34vw, 470px);
  height: min(34vw, 470px);
  right: -21%;
  bottom: -22%;
  border: 72px solid rgba(143, 222, 0, 0.09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.auth-brand img {
  display: block;
  width: clamp(218px, 22vw, 292px);
  height: auto;
}

.auth-brand span {
  padding-left: 14px;
  border-left: 1px solid rgba(100, 112, 105, 0.3);
  font-size: 15px;
  font-weight: 720;
  white-space: nowrap;
}

.auth-gate__story-copy {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: auto 0;
  padding: 64px 0;
}

.auth-gate__story-copy h1 {
  max-width: 620px;
  margin: 18px 0 20px;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 610;
  letter-spacing: -0.065em;
  line-height: 1.1;
}

.auth-gate__story-copy h1 em {
  color: var(--accent-dim);
  font-style: normal;
}

.auth-gate__story-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.9;
}

.auth-gate__progress {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.auth-gate__progress span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.auth-gate__progress span i {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(108, 176, 0, 0.2);
  border-radius: 50%;
  background: var(--accent-dim);
  box-sizing: content-box;
}

.auth-gate__progress b {
  width: min(8vw, 86px);
  height: 1px;
  background: linear-gradient(90deg, var(--tea-300), rgba(203, 216, 210, 0.5));
}

.auth-card {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(460px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 40px 34px;
  border: 1px solid rgba(203, 216, 210, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 90px rgba(23, 52, 43, 0.13);
  backdrop-filter: blur(18px);
}

.auth-card__head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.auth-card__head p,
.auth-card__head h1 {
  margin: 0;
}

.auth-card__head p {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.08em;
}

.auth-card__head h1 {
  margin-top: 2px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.auth-card__mark {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(108, 176, 0, 0.23);
}

.auth-card__mark::before,
.auth-card__mark::after,
.auth-card__mark i {
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px solid var(--on-accent);
  border-radius: 5px;
  content: "";
}

.auth-card__mark::before { transform: translate(-5px, -5px); }
.auth-card__mark::after { transform: translate(5px, 5px); }
.auth-card__mark i { width: 5px; height: 5px; border-radius: 50%; }

.auth-form,
.auth-field {
  display: grid;
}

.auth-form { gap: 19px; }

.auth-field {
  gap: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 720;
}

.auth-field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field__control input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 46px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: 0;
  background: rgba(255, 255, 255, 0.94);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-field__control input::placeholder { color: #a6afab; }

.auth-field__control input:focus {
  border-color: var(--accent-dim);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(143, 222, 0, 0.14);
}

.auth-field__icon {
  position: absolute;
  z-index: 1;
  left: 17px;
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  pointer-events: none;
}

.auth-field__icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-password-toggle {
  position: absolute;
  right: 11px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: var(--ink-muted);
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}

.auth-password-toggle:hover { color: var(--ink); background: var(--tea-50); }

.auth-password-toggle i {
  display: grid;
  place-items: center;
}

.auth-password-toggle i svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-password-toggle[aria-pressed="true"] [data-eye-open] {
  display: none;
}

.auth-password-toggle[aria-pressed="false"] [data-eye-closed] {
  display: none;
}

.auth-message {
  margin: 14px 0 0;
  padding: 10px 12px;
  color: #4f6e26;
  border: 1px solid var(--tea-300);
  border-radius: 10px;
  background: var(--tea-50);
  font-size: 12px;
  font-weight: 600;
}

.auth-message.is-error {
  color: #953c33;
  border-color: #f0c1b8;
  background: var(--coral-soft);
}

.auth-submit,
.auth-feishu {
  display: flex;
  width: 100%;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 780;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.auth-submit {
  margin-top: 3px;
  color: var(--on-accent);
  border: 1px solid var(--accent);
  background: var(--accent);
  box-shadow: 0 12px 25px rgba(108, 176, 0, 0.19);
}

.auth-submit i { font-size: 18px; font-style: normal; }

.auth-submit i svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(108, 176, 0, 0.24); }
.auth-submit:disabled,
.auth-feishu:disabled { cursor: wait; opacity: 0.68; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 23px 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.auth-feishu {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.auth-feishu:hover:not(:disabled) {
  border-color: var(--accent-dim);
  box-shadow: 0 9px 22px rgba(23, 52, 43, 0.08);
  transform: translateY(-1px);
}

.auth-feishu__icon {
  display: block;
  width: 20px;
  height: 20px;
}

.auth-feishu__icon img {
  display: block;
  width: 20px;
  height: 20px;
}

.auth-card__foot {
  margin: 20px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
  text-align: center;
}

.auth-processing {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--ink-soft);
  text-align: center;
}

.auth-processing strong { margin-top: 8px; color: var(--ink); font-size: 18px; }
.auth-processing p { margin: 0; color: var(--ink-muted); }

.auth-spinner {
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 3px solid var(--tea-100);
  border-top-color: var(--accent-dim);
  border-radius: 50%;
  animation: auth-spin 720ms linear infinite;
}

.auth-spinner--small {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.access-empty {
  display: grid;
  width: min(calc(100% - 48px), 760px);
  min-height: 420px;
  margin: 72px auto;
  padding: 56px;
  place-items: center;
  align-content: center;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.access-empty > span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: var(--accent-dim);
  border-radius: 18px;
  background: var(--tea-50);
  font-size: 32px;
}

.access-empty h1 { margin: 20px 0 4px; color: var(--ink); font-size: 24px; }
.access-empty p { margin: 0; }

@keyframes auth-spin { to { transform: rotate(360deg); } }

button {
  color: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
[role="button"]:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(143, 222, 0, 0.34);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

body:not([data-auth-state="signed-in"]) .skip-link {
  display: none;
}

.topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 78px;
  border-bottom: 1px solid rgba(203, 216, 210, 0.72);
  background: rgba(247, 246, 240, 0.88);
  backdrop-filter: blur(18px);
}

.topbar__inner {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) auto minmax(270px, 1fr);
  align-items: center;
  width: min(calc(100% - 48px), var(--max-width));
  height: 100%;
  margin: 0 auto;
}

.topbar__account {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  min-width: 0;
}

.workspace-settings {
  position: relative;
  flex: 0 0 auto;
}

.workspace-settings__trigger {
  display: inline-flex;
  min-width: 82px;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 12px rgba(23, 52, 43, 0.05);
  cursor: pointer;
  font-size: 12px;
  font-weight: 740;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.workspace-settings__trigger:hover,
.workspace-settings__trigger[aria-expanded="true"],
.workspace-settings__trigger.is-active {
  color: var(--accent-dim);
  border-color: var(--tea-300);
  background: var(--tea-50);
  box-shadow: 0 7px 18px rgba(108, 176, 0, 0.1);
}

.workspace-settings__trigger svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.workspace-settings__trigger > i {
  display: grid;
  place-items: center;
  margin-left: 1px;
  transition: transform 160ms ease;
}

.workspace-settings__trigger > i svg {
  display: block;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-settings__trigger[aria-expanded="true"] > i {
  transform: rotate(180deg);
}

.workspace-settings__menu {
  position: absolute;
  z-index: 130;
  top: calc(100% + 10px);
  right: 0;
  width: min(286px, calc(100vw - 28px));
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  animation: settings-menu-in 140ms ease both;
}

.workspace-settings__menu::before {
  position: absolute;
  top: -5px;
  right: 31px;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.workspace-settings__item {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  color: var(--ink-soft);
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color 150ms ease, background 150ms ease;
}

.workspace-settings__item + .workspace-settings__item {
  margin-top: 3px;
}

.workspace-settings__item:hover,
.workspace-settings__item:focus-visible,
.workspace-settings__item.is-current {
  color: var(--ink);
  background: var(--tea-50);
}

.workspace-settings__item.is-current::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent-dim);
  content: "";
}

.workspace-settings__item > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.workspace-settings__item strong {
  color: inherit;
  font-size: 13px;
  font-weight: 760;
}

.workspace-settings__item small {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-settings__item-icon {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--tea-200);
  border-radius: 10px;
  background: rgba(245, 251, 233, 0.92);
}

.workspace-settings__item-icon svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--accent-dim);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes settings-menu-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: clamp(210px, 18vw, 272px);
  height: auto;
  flex: 0 1 auto;
}

.brand__title {
  flex: 0 0 auto;
  padding-left: 13px;
  border-left: 1px solid rgba(100, 112, 105, 0.28);
  font-size: 15px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(159, 207, 72, 0.5);
  border-radius: 15px;
  background: rgba(247, 252, 238, 0.92);
  box-shadow: 0 8px 24px rgba(108, 176, 0, 0.09);
}

.main-nav__item {
  min-width: 148px;
  min-height: 42px;
  padding: 9px 24px;
  border: 0;
  background: transparent;
  border-radius: 11px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.01em;
  transition: 160ms ease;
}

.main-nav__item:hover {
  color: var(--ink);
  background: var(--tea-50);
}

.main-nav__item.is-active {
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 7px 18px rgba(108, 176, 0, 0.24);
}

/* The overview extends the statistics navigation without resizing its three module tabs. */
.main-nav--statistics {
  --navigation-surface:rgba(247,252,238,.92);
  position:relative;isolation:isolate;background:var(--navigation-surface);
  border-right-color:transparent;border-radius:15px 0 0 15px;
}
.main-nav--statistics::before {
  content:"";position:absolute;z-index:-1;pointer-events:none;
  left:calc(100% - 1px);top:-1px;bottom:-1px;width:87px;
  background:var(--navigation-surface);border:1px solid rgba(159,207,72,.5);
  border-left:0;border-radius:0 15px 15px 0;
}
.main-nav__item.main-nav__overview {
  position:absolute;left:100%;top:5px;min-width:80px;width:80px;
  padding:9px 12px;
}
@media(max-width:1280px) {
  .main-nav--statistics { border-right-color:rgba(159,207,72,.5);border-bottom-color:transparent;border-radius:15px 15px 0 0; }
  .main-nav--statistics::before { left:-1px;right:-1px;top:calc(100% - 1px);bottom:auto;width:auto;height:58px;border:1px solid rgba(159,207,72,.5);border-top:0;border-radius:0 0 15px 15px; }
  .main-nav__item.main-nav__overview { left:auto;right:5px;top:calc(100% + 8px); }
  .topbar:has(.main-nav--statistics) .topbar__account { margin-top:52px; }
}

.app-environment-badge {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(196, 130, 22, 0.42);
  border-radius: 999px;
  color: #7a4c08;
  background: rgba(255, 246, 220, 0.9);
  box-shadow: 0 4px 12px rgba(136, 89, 13, 0.08);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.app-environment-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d58b18;
  box-shadow: 0 0 0 3px rgba(213, 139, 24, 0.14);
  content: "";
}

.user-session {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.user-session__avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--on-accent);
  border-radius: 11px;
  background: var(--accent);
  font-size: 13px;
  font-weight: 820;
}

.user-session__copy {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.user-session__copy strong,
.user-session__copy small {
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-session__copy strong { font-size: 12px; }
.user-session__copy small { margin-top: 3px; color: var(--ink-muted); font-size: 10px; }

.user-session > button {
  padding: 6px 8px;
  color: var(--ink-soft);
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.user-session > button:hover { color: var(--ink); background: var(--tea-50); }

.topbar__status {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border: 2px solid rgba(143, 222, 0, 0.24);
  border-radius: 50%;
  box-sizing: content-box;
}

.workspace {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 96px;
}

.workspace.workspace--admin {
  width: min(calc(100% - 48px), 1392px);
}

.workspace-panel {
  display: none;
}

.workspace-panel.is-active {
  display: block;
  /* 不用 fill-mode: both：panel-in 含 transform，both 使 identity transform
     永久保留在面板上，劫持 fixed 子元素（弹窗/toast）的包含块导致其相对
     面板定位出现在页面底部而非视口悬浮。 */
  animation: panel-in 300ms ease;
}

.page-section-layout.has-section-nav {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.page-section-content {
  min-width: 0;
}

.page-section-rail {
  position: sticky;
  z-index: 30;
  top: 102px;
  display: grid;
  align-self: start;
  gap: 10px;
  margin-top: 48px;
}

.page-section-nav {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(203, 216, 210, 0.88);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(23, 52, 43, 0.08);
  backdrop-filter: blur(16px);
}

.page-section-nav__label {
  padding: 4px 7px 2px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.page-section-nav button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  border-radius: 11px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  text-align: left;
  white-space: nowrap;
}

.page-section-nav button::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.page-section-nav button:hover {
  color: var(--ink);
  background: var(--tea-50);
}

.page-section-nav button.is-active {
  color: var(--tea-800);
  background: var(--tea-100);
}

.page-section-nav button.is-active::before {
  border-color: var(--accent-dim);
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(143, 222, 0, 0.14);
}

.page-section-history {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(203, 216, 210, 0.94);
  border-radius: 13px;
  color: var(--tea-800);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(23, 52, 43, 0.07);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
}

.page-section-history:hover {
  border-color: var(--accent-dim);
  background: var(--tea-50);
}

.push-history-dialog {
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: transparent;
  box-shadow: 0 30px 100px rgba(23, 52, 43, 0.22);
}

.push-history-dialog::backdrop {
  background: rgba(20, 43, 36, 0.5);
  backdrop-filter: blur(4px);
}

.push-history-dialog__frame {
  display: flex;
  max-height: 88vh;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(203, 216, 210, 0.9);
  border-radius: 24px;
  background: var(--paper);
}

.push-history-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.push-history-dialog__head h2 { margin: 6px 0 4px; font-size: 28px; }
.push-history-dialog__head p { margin: 0; color: var(--ink-muted); font-size: 13px; }

.push-history-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-soft);
}

.push-history-filters label,
.push-history-attempt {
  display: grid;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
}

.push-history-filters select,
.push-history-attempt select {
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper) var(--select-chevron) no-repeat var(--select-chevron-position);
  background-size: 5px 5px;
  font: inherit;
  font-size: 13px;
  appearance: none;
}

.push-history-refresh { height: 40px; padding-inline: 16px; }
.push-history-error { margin: 0; padding: 10px 28px; color: var(--coral); background: var(--coral-soft); font-size: 13px; }

.push-history-dialog__body {
  display: grid;
  min-height: 0;
  grid-template-columns: 370px minmax(0, 1fr);
  flex: 1;
  overflow: hidden;
}

.push-history-list {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  background: #fbfcfb;
}

.push-history-list__summary { display: flex; align-items: baseline; gap: 6px; padding: 15px 18px 10px; }
.push-history-list__summary strong { font-size: 22px; }
.push-history-list__summary span { color: var(--ink-muted); font-size: 12px; }
.push-history-list__items { min-height: 0; padding: 0 12px; overflow-y: auto; }

.push-history-item {
  display: grid;
  width: 100%;
  gap: 5px;
  margin-bottom: 8px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink-soft);
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-align: left;
}

.push-history-item:hover,
.push-history-item.is-active { border-color: var(--accent-dim); background: var(--tea-50); }
.push-history-item.is-active { box-shadow: inset 3px 0 0 var(--accent); }
.push-history-item__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.push-history-item__top b { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.push-history-item__top i,
.push-history-detail__title > i { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 760; }
[data-tone="success"] { color: #4d7e00; background: var(--tea-100); }
[data-tone="danger"] { color: #a3483f; background: var(--coral-soft); }
[data-tone="running"] { color: #8a570e; background: var(--amber-soft); }
.push-history-item__counts { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-muted); }
.push-history-item__counts em { font-style: normal; }
.push-history-item__counts .has-failure { color: var(--coral); font-weight: 700; }

.push-history-pagination { flex-wrap: wrap; margin: auto 12px 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.push-history-pagination .pagination__pages { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }

.push-history-detail { min-height: 0; padding: 22px 26px 26px; overflow-y: auto; }
.push-history-detail__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.push-history-detail__title span { color: var(--tea-700); font-size: 11px; font-weight: 760; }
.push-history-detail__title h3 { margin: 4px 0; font-size: 22px; }
.push-history-detail__title p { margin: 0; color: var(--ink-muted); font-size: 13px; }
.push-history-attempt { margin-top: 18px; }
.push-history-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.push-history-metrics article { padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.push-history-metrics span { display: block; color: var(--ink-muted); font-size: 11px; }
.push-history-metrics strong { display: block; margin-top: 3px; font-size: 24px; }
.push-history-metrics article.has-failure strong { color: var(--coral); }
.push-history-empty { padding: 24px 18px; color: var(--ink-muted); font-size: 13px; text-align: center; }
.push-history-success { padding: 14px 16px; border-radius: 12px; color: #4d7e00; background: var(--tea-50); font-size: 13px; font-weight: 700; }

.push-history-failure-group { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.push-history-failure-group summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--coral-soft); cursor: pointer; font-size: 13px; font-weight: 700; }
.push-history-failure-group summary b { color: var(--coral); }
.push-history-failure-group > p { margin: 0; padding: 10px 14px; color: var(--ink-muted); font-size: 12px; }
.push-history-failure-group ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.push-history-failure-group li { padding: 9px 14px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 12px; }
.push-history-detail__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.push-history-detail__actions .button { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.push-history-confirm { margin-top: 12px; padding: 14px 16px; border: 1px solid #eed29a; border-radius: 12px; background: var(--amber-soft); }
.push-history-confirm p { margin: 0; color: #6f4b14; font-size: 13px; }
.push-history-confirm > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

.page-section-target {
  scroll-margin-top: 94px;
}

@media (max-width: 1400px) {
  .page-section-layout.has-section-nav .upload-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .page-section-layout.has-section-nav .upload-card__actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-section-layout.has-section-nav .upload-card__actions > * {
    width: 100%;
    min-width: 0;
  }

  .page-section-layout.has-section-nav [data-flow="monitor"] [data-open-monitor-config],
  .page-section-layout.has-section-nav [data-start-run="monitor"],
  .page-section-layout.has-section-nav [data-start-run="report"] {
    grid-column: 1 / -1;
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  align-items: center;
  min-height: 330px;
  padding: 48px 28px 34px;
}

.hero__copy {
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tea-700);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.15em;
}

.eyebrow i {
  width: 20px;
  height: 1px;
  background: var(--tea-600);
}

.hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 610;
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.hero h1 em {
  color: var(--tea-700);
  font-style: normal;
}

.hero p {
  max-width: 600px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.hero__signal {
  position: relative;
  height: 226px;
}

.signal-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-lg);
}

.signal-card--primary {
  right: 28px;
  bottom: 10px;
  width: 290px;
  height: 184px;
  padding: 30px;
  color: var(--on-accent);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 45%),
    var(--accent);
  border-radius: 28px;
  transform: rotate(-3deg);
}

.signal-card--primary::after {
  position: absolute;
  right: -30px;
  bottom: -25px;
  width: 120px;
  height: 120px;
  content: "";
  border: 1px solid rgba(14, 20, 7, 0.15);
  border-radius: 50%;
}

.signal-card--primary span,
.signal-card--primary strong {
  display: block;
}

.signal-card--primary span {
  color: var(--on-accent-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.signal-card--primary strong {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 580;
}

.signal-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 58px;
  margin-top: 22px;
}

.signal-bars i {
  width: 16px;
  background: rgba(14, 20, 7, 0.78);
  border-radius: 4px 4px 2px 2px;
}

.signal-bars i:nth-child(1) { height: 35%; opacity: 0.52; }
.signal-bars i:nth-child(2) { height: 52%; opacity: 0.64; }
.signal-bars i:nth-child(3) { height: 70%; opacity: 0.76; }
.signal-bars i:nth-child(4) { height: 58%; opacity: 0.7; }
.signal-bars i:nth-child(5) { height: 92%; }

.signal-card--float {
  z-index: 2;
  top: 10px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(221, 229, 225, 0.8);
  border-radius: 14px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  transform: rotate(2deg);
}

.pulse {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border: 4px solid rgba(143, 222, 0, 0.2);
  border-radius: 50%;
  box-sizing: content-box;
}

.hero--report h1 em {
  color: var(--coral);
}

.hero__signal--report {
  display: grid;
  place-items: center;
}

.report-paper {
  position: relative;
  width: 246px;
  height: 180px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  transform: rotate(3deg);
}

.report-paper > span {
  display: block;
  width: 80%;
  height: 6px;
  margin-bottom: 12px;
  background: #dce6e2;
  border-radius: 999px;
}

.report-paper > span:first-child {
  width: 44%;
  height: 10px;
  background: var(--accent);
}

.report-paper > span:nth-child(3) {
  width: 64%;
}

.report-paper div {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 58px;
  margin-top: 14px;
  padding: 8px 12px;
  background: var(--tea-50);
  border-radius: 10px;
}

.report-paper div i {
  flex: 1;
  background: var(--tea-300);
  border-radius: 3px 3px 1px 1px;
}

.report-paper div i:nth-child(1) { height: 32%; }
.report-paper div i:nth-child(2) { height: 66%; }
.report-paper div i:nth-child(3) { height: 46%; }
.report-paper div i:nth-child(4) { height: 84%; background: var(--accent); }

.signal-card--report {
  top: 18px;
  right: 20px;
}

.spark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: var(--coral);
  border-radius: 8px;
}

.flow-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.upload-card,
.guide-card,
.process-card,
.result-section {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(221, 229, 225, 0.88);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.upload-card {
  min-height: 360px;
  padding: 30px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading--compact {
  margin-bottom: 20px;
}

.section-heading h2 {
  display: inline;
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.section-actions[hidden] {
  display: none;
}

.template-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  color: var(--tea-700);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 680;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: 160ms ease;
}

.template-link span {
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
}

.template-link span svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.template-link:hover {
  background: var(--tea-50);
  border-color: var(--tea-300);
  transform: translateY(-1px);
}

.section-index {
  color: var(--tea-600);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.quality-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--tea-700);
  background: var(--tea-50);
  border: 1px solid var(--tea-100);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
}

.report-output-actions {
  align-items: stretch;
}

.report-output-actions__group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: var(--tea-50);
  border: 1px solid var(--tea-100);
  border-radius: 12px;
}

.report-output-actions__group > span {
  padding: 0 5px;
  color: var(--tea-700);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.report-output-actions__group .button {
  min-height: 34px;
  padding: 7px 12px;
}

.monitor-slot-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 12px;
  color: var(--ink-muted);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: 160ms ease;
}

.monitor-slot-field:hover {
  background: var(--tea-50);
  border-color: var(--tea-300);
}

.monitor-slot-field > span {
  padding-right: 9px;
  border-right: 1px solid var(--line);
  font-size: 11px;
  font-weight: 620;
  white-space: nowrap;
}

.monitor-slot-field select {
  min-width: 134px;
  height: 40px;
  padding: 0 24px 0 9px;
  appearance: none;
  color: var(--tea-800);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 680;
  outline: none;
}

.monitor-slot-field__chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  color: var(--tea-700);
  pointer-events: none;
}

.monitor-config-dialog input[type="number"] {
  appearance: textfield;
}

.monitor-config-dialog input[type="number"]::-webkit-inner-spin-button,
.monitor-config-dialog input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.monitor-slot-field:focus-within {
  border-color: var(--tea-500);
  box-shadow: 0 0 0 3px rgba(143, 222, 0, 0.12);
}

.monitor-slot-field:has(select:disabled) {
  cursor: not-allowed;
  opacity: 0.56;
}

.monitor-slot-field select:disabled {
  cursor: not-allowed;
}

.run-parameter-field {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 12px;
  color: var(--ink-muted);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: 160ms ease;
}

.run-parameter-field:hover {
  background: var(--tea-50);
  border-color: var(--tea-300);
}

.run-parameter-field > span {
  padding-right: 9px;
  border-right: 1px solid var(--line);
  font-size: 11px;
  font-weight: 620;
  white-space: nowrap;
}

.run-parameter-field input[type="date"] {
  min-width: 132px;
  height: 40px;
  padding: 0 0 0 9px;
  color: var(--tea-800);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 680;
  outline: none;
}

.run-parameter-field input[type="date"]::-webkit-calendar-picker-indicator {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  opacity: 0.68;
}

.run-parameter-field:focus-within {
  border-color: var(--tea-500);
  box-shadow: 0 0 0 3px rgba(143, 222, 0, 0.12);
}

.run-parameter-field:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.56;
}

.run-parameter-field input:disabled {
  cursor: not-allowed;
}

.monitor-config-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  padding: 0 14px;
  color: var(--tea-800);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
  white-space: nowrap;
  transition: 160ms ease;
}

.monitor-config-button:hover {
  background: var(--tea-50);
  border-color: var(--tea-300);
}

.monitor-config-button:focus-visible {
  outline: 0;
  border-color: var(--tea-500);
  box-shadow: 0 0 0 3px rgba(143, 222, 0, 0.12);
}

.monitor-config-button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.monitor-config-button__icon {
  display: grid;
  width: 16px;
  place-items: center;
}

.monitor-config-button__copy {
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1.05;
}

.monitor-config-button__icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  padding: 26px;
  background:
    linear-gradient(115deg, rgba(243, 249, 232, 0.92), rgba(255, 255, 255, 0.82));
  border: 1.5px dashed #bfd894;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: 180ms ease;
}

.dropzone[hidden] {
  display: none;
}

.dropzone--platform {
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  padding: 20px 16px;
  text-align: left;
}

.dropzone:disabled { cursor: not-allowed; opacity: 0.56; }
.dropzone:focus-visible { outline: 2px solid var(--accent-dim); outline-offset: 3px; }

.dropzone:hover,
.dropzone.is-dragging {
  background: var(--tea-50);
  border-color: var(--tea-600);
  box-shadow: inset 0 0 0 3px rgba(143, 222, 0, 0.08);
  transform: translateY(-1px);
}

.dropzone__icon {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(23, 52, 43, 0.07);
}

.dropzone__icon svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--tea-700);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone__copy {
  display: flex;
  flex-direction: column;
}

.dropzone__copy strong {
  font-size: 15px;
  font-weight: 650;
}

.dropzone__copy span {
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 12px;
}

.dropzone__action {
  padding: 9px 14px;
  color: var(--tea-700);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
}

.file-selection {
  margin: 0;
}

.file-chip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 18px;
  background:
    linear-gradient(115deg, rgba(243, 249, 232, 0.92), rgba(255, 255, 255, 0.82));
  border: 1px solid #cfe4a9;
  border-radius: var(--radius-md);
}

.file-chip__type {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
}

.file-chip__meta {
  min-width: 0;
}

.file-chip__meta strong,
.file-chip__meta span {
  display: block;
}

.file-chip__meta strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 630;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip__meta span {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 11px;
}

.file-chip__remove {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--ink-muted);
  cursor: pointer;
}

.file-chip__remove svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-chip__remove:hover {
  color: var(--coral);
  background: var(--coral-soft);
}

.upload-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.upload-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-submit { flex-shrink: 0; }

@media (max-width: 1400px) {
  .page-section-layout.has-section-nav .upload-submit { grid-column: 1 / -1; }
}

@media (max-width: 1200px) {
  .upload-submit { grid-column: 1 / -1; }
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-muted);
  font-size: 11px;
}

.privacy-note span {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: var(--tea-700);
  background: var(--tea-50);
  border-radius: 50%;
}

.privacy-note span svg {
  display: block;
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.2;
  white-space: nowrap;
  transition: 160ms ease;
}

[data-start-run] {
  min-width: 118px;
  flex-shrink: 0;
}

[data-start-label] {
  white-space: nowrap;
}

.button > span:last-child svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.button--primary {
  color: var(--on-accent);
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 8px 18px rgba(108, 176, 0, 0.18);
}

.button--primary:not(:disabled):hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.button--secondary {
  color: var(--tea-700);
  background: #fff;
  border: 1px solid var(--line-strong);
}

.button--secondary:not(:disabled):hover {
  background: var(--tea-50);
  border-color: var(--tea-300);
}

.button--text {
  color: var(--ink-soft);
  background: transparent;
  border: 0;
}

.button--text:hover {
  color: var(--tea-800);
  background: var(--tea-50);
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 30px 26px;
  color: var(--on-accent);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.3), transparent 11rem),
    var(--accent);
  border-color: transparent;
}

.guide-card__label {
  color: var(--on-accent-faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.guide-list {
  display: grid;
  gap: 25px;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
}

.guide-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 13px;
  align-items: start;
  min-height: 48px;
}

.guide-list li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--on-accent);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 750;
}

.guide-list strong,
.guide-list small {
  display: block;
}

.guide-list strong {
  font-size: 13px;
  font-weight: 620;
  line-height: 1.5;
}

.guide-list small {
  margin-top: 3px;
  color: var(--on-accent-faint);
  font-size: 11px;
  line-height: 1.5;
}

.guide-card__foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--on-accent-soft);
  border-top: 1px solid rgba(14, 20, 7, 0.13);
  font-size: 11px;
}

.guide-card__foot i {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--on-accent);
  border-radius: 50%;
}

.process-card,
.result-section {
  grid-column: 1 / -1;
  padding: 28px 30px;
  animation: section-in 360ms ease both;
}

.progress-value {
  color: var(--tea-700);
  font-size: 22px;
  font-weight: 670;
  letter-spacing: -0.03em;
}

.progress-track {
  width: 100%;
  height: 7px;
  overflow: hidden;
  background: #edf1ef;
  border-radius: 999px;
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: inherit;
  transition: width 500ms ease;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.process-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 11px;
}

.process-steps li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 6px;
  left: calc(50% + 10px);
  width: calc(100% - 20px);
  height: 1px;
  content: "";
  background: var(--line);
}

.process-steps i {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  background: #e6ece9;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.process-steps li.is-active,
.process-steps li.is-complete {
  color: var(--tea-700);
  font-weight: 650;
}

.process-steps li.is-active i {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(143, 222, 0, 0.22), 0 0 0 1px var(--tea-700);
}

.process-steps li.is-complete i {
  background: var(--tea-600);
  box-shadow: 0 0 0 1px var(--tea-600);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.summary-cell {
  min-height: 76px;
  padding: 15px 16px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.summary-cell span,
.summary-cell strong {
  display: block;
}

.summary-cell span {
  color: var(--ink-muted);
  font-size: 10px;
}

.summary-cell strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: 19px;
  font-weight: 660;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}

.data-table th,
.data-table td {
  max-width: 260px;
  padding: 12px 15px;
  overflow: hidden;
  border-bottom: 1px solid #edf1ef;
  text-align: left;
  text-overflow: ellipsis;
}

.data-table th {
  color: var(--ink-soft);
  background: #f4f7f5;
  font-size: 10px;
  font-weight: 690;
  letter-spacing: 0.02em;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: #fbfdfc;
}

.table-empty {
  padding: 32px;
  color: var(--ink-muted);
  text-align: center;
}

.sync-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 11px;
  font-weight: 680;
}

.sync-state i {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
}

.sync-state.is-partial {
  color: var(--amber);
}

.sync-state.is-partial i {
  background: var(--amber);
}

.sync-grid,
.report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sync-card,
.report-metric {
  padding: 17px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.sync-card span,
.sync-card strong,
.report-metric span,
.report-metric strong {
  display: block;
}

.sync-card span,
.report-metric span {
  color: var(--ink-muted);
  font-size: 10px;
}

.sync-card strong,
.report-metric strong {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 660;
  letter-spacing: -0.03em;
}

.result-section--featured {
  border-color: rgba(143, 222, 0, 0.46);
  box-shadow: 0 18px 50px rgba(108, 176, 0, 0.1);
}

.result-section--monitor {
  padding-block: 30px;
}

.section-heading--monitor-result {
  align-items: center;
  margin-bottom: 0;
}

.monitor-result-summary {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-height: 42px;
  margin: 12px 0 0 34px;
}

.monitor-result-summary::before {
  width: 8px;
  height: 8px;
  margin-right: 3px;
  content: "";
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(201, 138, 39, 0.12);
}

.monitor-result-summary[data-result="normal"]::before {
  background: var(--accent-dim);
  box-shadow: 0 0 0 5px rgba(143, 222, 0, 0.12);
}

.monitor-result-summary__label,
.monitor-result-summary__unit {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 620;
}

.monitor-result-summary strong {
  color: var(--ink);
  font-size: 38px;
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 1;
}

.problem-store-panel {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.problem-store-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.problem-store-panel__head h3,
.problem-store-panel__head p {
  margin: 0;
}

.problem-store-panel__head h3 {
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.problem-store-panel__head p {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 13px;
}

.problem-store-list {
  display: grid;
  gap: 12px;
}

.problem-store-list:focus-visible {
  outline: 3px solid rgba(143, 222, 0, 0.28);
  outline-offset: 5px;
  border-radius: 15px;
}

.report-reminder-section {
  border-color: var(--tea-200);
  background:
    radial-gradient(circle at 100% 0, rgba(224, 244, 190, 0.44), transparent 22rem),
    #fff;
}

.report-reminder-section__heading {
  margin-bottom: 20px;
}

.report-problem-empty {
  padding: 28px;
  color: var(--ink-muted);
  background: rgba(248, 250, 249, 0.82);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  font-size: 13px;
  text-align: center;
}

.problem-store-card--report {
  background: rgba(255, 255, 255, 0.9);
}

.problem-store-card--report .problem-platform-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.problem-store-level--report {
  border-color: rgba(182, 218, 117, 0.62);
}

.problem-store-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(248, 250, 249, 0.9);
  border-radius: 15px;
  content-visibility: auto;
  contain-intrinsic-size: auto 260px;
}

.problem-store-card--compact {
  padding: 13px 15px;
  contain-intrinsic-size: auto 82px;
}

.problem-store-card--compact .problem-store-card__head {
  grid-template-columns: minmax(190px, 1.05fr) minmax(250px, 1.65fr) auto auto;
  gap: 14px;
  margin-bottom: 0;
}

.problem-type-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.problem-type-summary__label {
  flex: 0 0 auto;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.problem-type-tags {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.problem-type-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  color: var(--tea-700);
  background: var(--tea-50);
  border: 1px solid var(--tea-100);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.2;
  white-space: nowrap;
}

.problem-store-card__head {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.problem-store-card__identity,
.problem-store-card__identity strong,
.problem-store-card__identity span {
  min-width: 0;
}

.problem-store-card__identity strong,
.problem-store-card__identity span {
  display: block;
}

.problem-store-card__identity strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.problem-store-card__identity span {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 12px;
}

.problem-store-card__owners {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.problem-store-card__owners span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 9px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  white-space: nowrap;
}

.problem-store-card__owners b {
  color: var(--tea-700);
  font-weight: 700;
}

.problem-store-card__push {
  min-height: 36px;
  padding: 7px 13px;
}

.problem-store-card__routing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 13px;
  color: var(--ink-muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
}

.problem-store-level {
  padding: 13px 14px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(244, 251, 234, 0.94), rgba(250, 252, 249, 0.94));
  border: 1px solid var(--tea-100);
  border-radius: 12px;
}

.problem-store-level > header {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(182, 218, 117, 0.42);
}

.problem-store-level > header strong,
.problem-store-level > header span {
  display: block;
}

.problem-store-level > header strong {
  color: var(--tea-800);
  font-size: 14px;
  font-weight: 720;
}

.problem-store-level > header span {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 11px;
}

.problem-platform-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.problem-platform-card {
  min-width: 0;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.problem-platform-card--report {
  position: relative;
  overflow: hidden;
  padding: 15px 16px;
  background:
    linear-gradient(135deg, rgba(248, 252, 242, 0.94), rgba(255, 255, 255, 0.98) 58%);
  border-color: rgba(182, 218, 117, 0.58);
  box-shadow: 0 8px 20px rgba(41, 70, 48, 0.045);
}

.problem-platform-card--report::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--tea-400);
  content: "";
}

.problem-platform-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(221, 229, 225, 0.78);
}

.problem-platform-card > header strong,
.problem-platform-card > header span {
  display: block;
}

.problem-platform-card > header strong {
  font-size: 14px;
  font-weight: 700;
}

.problem-platform-card > header span {
  margin-top: 1px;
  color: var(--ink-muted);
  font-size: 11px;
}

.problem-platform-card--report > header em {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: var(--tea-700);
  background: rgba(233, 247, 208, 0.78);
  border: 1px solid var(--tea-100);
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.problem-platform-card > header a {
  flex: 0 0 auto;
  color: var(--tea-700);
  font-size: 12px;
  font-weight: 680;
  text-decoration: none;
}

.problem-platform-card > header a:hover {
  text-decoration: underline;
}

.problem-data-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.problem-data-list li {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.problem-data-list strong {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  color: var(--tea-700);
  background: var(--tea-50);
  border: 1px solid var(--tea-100);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.3;
}

.problem-data-list span {
  padding-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.problem-data-list--report {
  gap: 10px;
  margin-top: 12px;
}

.problem-data-list--report .report-problem-row {
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(221, 229, 225, 0.74);
  border-radius: 9px;
}

.problem-data-list--report .report-problem-row > span {
  padding-top: 0;
  color: var(--ink);
  line-height: 1.55;
}

.problem-data-list--report .report-problem-row small {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.alert-layout {
  display: block;
}

.alert-list {
  display: grid;
  gap: 14px;
}

.alert-group {
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 15px;
}

.alert-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.alert-group > header strong {
  font-size: 12px;
}

.alert-group > header span,
.alert-group > p {
  color: var(--ink-muted);
  font-size: 10px;
}

.alert-group > p {
  margin: 10px 2px 0;
}

.alert-group__rows {
  display: grid;
  gap: 8px;
}

.alert-group--p0 > header strong { color: var(--coral); }
.alert-group--p1 > header strong { color: var(--amber); }
.alert-group--p2 > header strong { color: var(--blue); }

.alert-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.alert-item:hover {
  border-color: var(--tea-300);
  box-shadow: 0 8px 22px rgba(23, 52, 43, 0.07);
  transform: translateY(-1px);
}

.alert-item__main {
  min-width: 0;
}

.alert-item__main strong,
.alert-item__main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-item__main strong {
  font-size: 12px;
  font-weight: 650;
}

.alert-item__main span {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 10px;
}

.alert-item__value {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 640;
  white-space: nowrap;
}

.report-cover {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 28px;
  color: var(--on-accent);
  background:
    radial-gradient(circle at 90% 0, rgba(255, 255, 255, 0.3), transparent 14rem),
    var(--accent);
  border-radius: 16px;
}

.report-cover::after {
  position: absolute;
  right: -35px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px solid rgba(14, 20, 7, 0.14);
  border-radius: 50%;
}

.report-cover__meta {
  color: var(--on-accent-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.report-cover h3 {
  max-width: 780px;
  margin: 11px 0 7px;
  font-size: 23px;
  font-weight: 590;
  line-height: 1.45;
}

.report-cover p {
  max-width: 820px;
  margin: 0;
  color: var(--on-accent-soft);
  font-size: 12px;
}

.report-metrics {
  margin-bottom: 14px;
}

.report-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-section-card {
  padding: 20px;
  background: #fafcfb;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.report-section-card h3 {
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 660;
}

.report-section-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
  white-space: pre-line;
}

.monitor-config-dialog,
.detail-dialog {
  width: min(600px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 48px));
  max-height: min(760px, calc(100dvh - 48px));
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 34px 100px rgba(15, 53, 43, 0.25);
}

.detail-dialog[open] {
  display: flex;
  flex-direction: column;
}

.monitor-config-dialog {
  width: min(570px, calc(100% - 32px));
}

.monitor-config-dialog.react-rule-dialog {
  width: min(820px, calc(100% - 32px));
}

.report-config-dialog {
  width: min(760px, calc(100% - 32px));
}

.react-rule-dialog[open] {
  display: flex;
  flex-direction: column;
}

.react-rule-dialog .monitor-config-dialog__body {
  display: flex;
  overflow: hidden;
  padding: 0;
  scrollbar-gutter: auto;
}

.react-rule-dialog .rule-editor {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.react-rule-dialog .rule-editor form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.react-rule-dialog .rule-editor__fields {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 22px 26px 8px;
}

.rule-editor__footer {
  flex-shrink: 0;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.rule-editor__footer .actions { margin: 0; justify-content: flex-end; }
.rule-editor__footer .notice { margin: 0 0 12px; }

@media (max-width: 600px) {
  .react-rule-dialog .rule-editor__fields { padding: 16px 18px 8px; }
  .rule-editor__footer { padding: 12px 18px; }
}

.monitor-config-form {
  display: flex;
  max-height: min(760px, calc(100vh - 48px));
  max-height: min(760px, calc(100dvh - 48px));
  flex-direction: column;
  overflow: hidden;
}

.monitor-config-dialog::backdrop,
.detail-dialog::backdrop {
  background: rgba(15, 37, 30, 0.46);
  backdrop-filter: blur(4px);
}

.monitor-config-dialog__head,
.detail-dialog__head {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--line);
}

.monitor-config-dialog__head h2,
.detail-dialog__head h2 {
  margin: 7px 0 0;
  font-size: 20px;
}

.monitor-config-dialog__head p {
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.monitor-config-dialog__body {
  min-height: 0;
  padding: 22px 26px 24px;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.net-income-supplement-dialog[open] {
  display: flex;
  flex-direction: column;
}

.net-income-supplement-dialog__body {
  display: grid;
  gap: 18px;
}

.net-income-supplement-note {
  padding: 18px 20px;
  border: 1px solid rgba(111, 185, 0, 0.22);
  border-radius: 16px;
  background: #f7fbea;
}

.net-income-supplement-note strong,
.net-income-supplement-note span {
  display: block;
}

.net-income-supplement-note p {
  margin: 8px 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.net-income-supplement-note span {
  color: var(--accent-dim);
  font-size: 12px;
  font-weight: 700;
}

.net-income-supplement-actions,
.net-income-supplement-submit {
  display: flex;
  gap: 12px;
  align-items: center;
}

.net-income-supplement-submit {
  justify-content: flex-end;
}

.monitor-config-fields {
  display: grid;
  gap: 12px;
}

.report-config-section {
  padding: 17px;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.report-config-section + .report-config-section {
  margin-top: 12px;
}

.report-config-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.report-config-section__head--stacked {
  display: grid;
  align-items: stretch;
}

.report-config-section__head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.report-config-section__head p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.55;
}

.report-income-matrix {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.report-income-matrix__head,
.report-income-matrix__row {
  display: grid;
  grid-template-columns: 82px repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
}

.report-income-matrix__head {
  padding: 0 4px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 680;
}

.report-income-matrix__head span:not(:first-child) {
  text-align: center;
}

.report-income-matrix__row {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
}

.report-income-matrix__row > strong {
  font-size: 12px;
  font-weight: 690;
}

.report-income-matrix .monitor-config-input {
  width: 100%;
}

.report-income-matrix .monitor-config-input input {
  width: auto;
  min-width: 64px;
  flex: 1;
}

.report-config-metric-list {
  display: grid;
  gap: 10px;
}

.report-traffic-threshold-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.report-traffic-threshold-group {
  padding: 12px;
  background: rgba(237, 247, 227, 0.72);
  border: 1px solid rgba(126, 177, 74, 0.2);
  border-radius: 12px;
}

.report-traffic-threshold-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 10px;
}

.report-traffic-threshold-group__head strong {
  color: var(--tea-800);
  font-size: 13px;
}

.report-traffic-threshold-group__head small {
  color: var(--ink-muted);
  font-size: 10px;
}

.report-traffic-threshold-group .monitor-config-field {
  grid-template-columns: 1fr;
  gap: 10px;
}

.report-traffic-threshold-group .monitor-config-input {
  width: 100%;
}

.report-traffic-threshold-group .monitor-config-input input {
  width: auto;
  min-width: 0;
  flex: 1;
}

.report-config-metric-list .monitor-config-field {
  padding: 13px 14px;
  background: #fff;
}

.report-config-note p {
  line-height: 1.65;
}

.deadline-config-section--monitor {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.deadline-config-section__head {
  margin-bottom: 12px;
}

.deadline-config-section__head h3 {
  margin: 0;
  font-size: 14px;
}

.deadline-config-section__head p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.55;
}

.deadline-policy-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.deadline-policy {
  display: grid;
  grid-template-columns: minmax(128px, 0.72fr) minmax(280px, 1.28fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.deadline-config-section--monitor .deadline-policy {
  grid-template-columns: 1fr;
  gap: 12px;
  background: #f8faf8;
}

.deadline-policy__copy {
  display: grid;
  gap: 3px;
}

.deadline-policy__copy strong {
  font-size: 13px;
  font-weight: 700;
}

.deadline-policy__copy small {
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.5;
}

.deadline-policy__controls {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr);
  gap: 10px;
}

.deadline-time-field,
.deadline-role-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.deadline-time-field > span:first-child,
.deadline-role-field legend {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 650;
}

.deadline-time-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  height: 40px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}

.deadline-time-control:focus-within,
.deadline-role-field:focus-within {
  border-color: var(--tea-500);
  box-shadow: 0 0 0 3px rgba(143, 222, 0, 0.12);
}

.deadline-time-control input,
.deadline-time-control select {
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.deadline-time-control input {
  width: 100%;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 720;
  text-align: right;
}

.deadline-time-control select {
  padding: 0 48px 0 12px;
  appearance: none;
  color: var(--ink-muted);
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: var(--select-chevron-position);
  background-size: 5px 5px;
  border-left: 1px solid var(--line);
  cursor: pointer;
  font-size: 11px;
  line-height: 1.2;
}

.deadline-role-field {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 9px 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}

.deadline-role-field legend {
  grid-column: 1 / -1;
  padding: 0 2px;
}

.deadline-role-field label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
}

.deadline-role-field input {
  accent-color: var(--accent);
}

.monitor-config-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.monitor-config-field__copy {
  display: grid;
  gap: 3px;
}

.monitor-config-field__copy strong {
  font-size: 13px;
  font-weight: 680;
}

.monitor-config-field__copy small {
  color: var(--ink-muted);
  font-size: 11px;
}

.monitor-config-input {
  display: inline-flex;
  align-items: center;
  height: 42px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: 160ms ease;
}

.monitor-config-input:focus-within {
  border-color: var(--tea-500);
  box-shadow: 0 0 0 3px rgba(143, 222, 0, 0.12);
}

.monitor-config-input input {
  width: 78px;
  height: 40px;
  padding: 0 10px 0 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
  font-weight: 720;
  text-align: right;
}

.monitor-config-input > span {
  display: grid;
  min-width: 43px;
  height: 24px;
  padding: 0 10px;
  place-items: center;
  font-size: 11px;
  font-weight: 650;
}

.monitor-config-input__prefix {
  color: var(--tea-700);
  border-right: 1px solid var(--line);
}

.monitor-config-input__unit {
  color: var(--ink-muted);
  border-left: 1px solid var(--line);
}

.monitor-config-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 11px;
}

.monitor-config-note i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--tea-50);
}

.monitor-config-note p {
  margin: 0;
}

.monitor-config-dialog__foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 26px 20px;
  background: #fafcfb;
  border-top: 1px solid var(--line);
}

.monitor-config-dialog__foot > div {
  display: flex;
  gap: 9px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  background: #f2f5f3;
  border-radius: 10px;
  color: var(--ink-soft);
  cursor: pointer;
}

.icon-button svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-dialog__body {
  min-height: 0;
  max-height: none;
  padding: 24px 26px 30px;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-field {
  padding: 13px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.detail-field span,
.detail-field strong {
  display: block;
}

.detail-field span {
  color: var(--ink-muted);
  font-size: 10px;
}

.detail-field strong {
  margin-top: 4px;
  font-size: 12px;
}

.detail-callout {
  margin-top: 14px;
  padding: 16px;
  color: var(--ink);
  background: var(--tea-50);
  border-left: 3px solid var(--tea-600);
  border-radius: 0 11px 11px 0;
}

.detail-callout span {
  display: block;
  margin-bottom: 5px;
  color: var(--tea-700);
  font-size: 10px;
  font-weight: 700;
}

.detail-callout p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.toast {
  position: fixed;
  z-index: 1000;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100% - 48px));
  padding: 13px 16px;
  color: var(--on-accent);
  background: var(--accent);
  border: 1px solid rgba(14, 20, 7, 0.12);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  animation: toast-in 220ms ease both;
}

.toast.is-error {
  background: #8b3d35;
}

.error-card {
  padding: 18px;
  color: #7a342e;
  background: var(--coral-soft);
  border: 1px solid #f3cec7;
  border-radius: 12px;
}

.error-card strong,
.error-card span {
  display: block;
}

.error-card span {
  margin-top: 4px;
  font-size: 11px;
}

[hidden] {
  display: none !important;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes section-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
  .auth-gate {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 18px;
  }

  .auth-gate__story {
    min-height: 300px;
    padding: 34px 42px 72px;
  }

  .auth-gate__story-copy { padding: 42px 0 10px; }
  .auth-gate__story-copy h1 { font-size: 44px; }
  .auth-gate__story-copy p { font-size: 15px; }
  .auth-gate__progress { display: none; }

  .auth-card {
    width: min(460px, calc(100% - 36px));
    margin-top: -50px;
  }
}

@media (max-width: 1120px) {
  .topbar {
    height: auto;
  }

  .topbar__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    padding: 8px 0;
  }

  .main-nav {
    justify-self: end;
  }

  .topbar__account {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .upload-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-card__actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-card__actions > * {
    width: 100%;
    min-width: 0;
  }

  [data-flow="monitor"] [data-open-monitor-config],
  [data-start-run="monitor"],
  [data-start-run="report"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .topbar {
    height: auto;
  }

  .topbar__inner {
    padding: 8px 0;
  }

  .topbar__inner {
    grid-template-columns: 1fr auto;
  }

  .topbar__account {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .topbar__status {
    display: none;
  }

  .app-environment-badge {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 46px 8px 30px;
  }

  .hero__signal {
    display: none;
  }

  .flow-shell {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 0;
  }

  .guide-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .guide-list li {
    grid-template-columns: 1fr;
  }

  .process-card,
  .result-section {
    grid-column: auto;
  }

  .alert-layout {
    grid-template-columns: 1fr;
  }

  .problem-store-card__head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .problem-store-card__owners {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .problem-store-card__push,
  .problem-store-card__routing {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 680px) {
  .auth-gate {
    min-height: 100dvh;
    padding: 10px;
  }

  .auth-gate__story {
    min-height: 260px;
    padding: 25px 22px 58px;
    border-radius: 22px;
  }

  .auth-brand img { width: min(210px, calc(100vw - 128px)); }
  .auth-brand span { padding-left: 9px; font-size: 13px; }
  .auth-gate__story-copy { padding: 36px 0 4px; }
  .auth-gate__story-copy h1 { margin: 12px 0 10px; font-size: 34px; }
  .auth-gate__story-copy p { font-size: 13px; line-height: 1.7; }

  .auth-card {
    width: calc(100% - 20px);
    margin-top: -38px;
    padding: 28px 22px 24px;
    border-radius: 20px;
  }

  .auth-card__head { margin-bottom: 24px; }
  .auth-card__head h1 { font-size: 22px; }

  .topbar {
    height: auto;
  }

  .topbar__inner {
    grid-template-columns: 1fr;
    gap: 10px;
    width: calc(100% - 28px);
    padding: 12px 0;
  }

  .brand {
    width: 100%;
    justify-self: center;
    justify-content: center;
    gap: 9px;
  }

  .brand__logo {
    width: min(200px, calc(100vw - 120px));
  }

  .brand__title {
    padding-left: 9px;
    font-size: 14px;
  }

  .main-nav {
    width: 100%;
  }

  .app-environment-badge {
    justify-self: auto;
  }

  .topbar__account {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .workspace-settings__menu {
    right: auto;
    left: 50%;
    animation-name: settings-menu-in-mobile;
  }

  .workspace-settings__menu::before {
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
  }

  .main-nav__item {
    flex: 1;
    min-width: 0;
  }

  .workspace {
    width: calc(100% - 28px);
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 14px;
  }

  .upload-card,
  .guide-card,
  .process-card,
  .result-section {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .section-heading {
    flex-direction: column;
    gap: 12px;
  }

  .section-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .report-output-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .report-output-actions__group {
    display: grid;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  }

  .report-output-actions__group .button {
    width: auto;
    min-width: 0;
  }

  .dropzone {
    grid-template-columns: auto 1fr;
    gap: 13px;
    padding: 20px 16px;
  }

  .dropzone__action {
    display: none;
  }

  .upload-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-card__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .monitor-slot-field {
    width: 100%;
  }

  .run-parameter-field {
    width: 100%;
  }

  .monitor-config-button {
    width: 100%;
  }

  .monitor-slot-field select {
    width: 100%;
    min-width: 0;
  }

  .run-parameter-field input[type="date"] {
    width: 100%;
    min-width: 0;
  }

  [data-start-run="monitor"],
  [data-start-run="report"] {
    grid-column: 1 / -1;
  }

  .monitor-config-dialog__head,
  .monitor-config-dialog__body,
  .monitor-config-dialog__foot {
    padding-right: 18px;
    padding-left: 18px;
  }

  .monitor-config-field {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .report-config-section__head {
    display: grid;
    align-items: stretch;
    gap: 12px;
  }

  .deadline-policy,
  .deadline-policy__controls {
    grid-template-columns: 1fr;
  }

  .deadline-role-field {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-traffic-threshold-groups {
    grid-template-columns: 1fr;
  }

  .report-income-matrix__head {
    display: none;
  }

  .report-income-matrix__row {
    grid-template-columns: 1fr;
  }

  .report-income-matrix__row > strong {
    margin-bottom: 1px;
  }

  .report-income-matrix__row .monitor-config-input::before {
    min-width: 58px;
    margin-left: 10px;
    color: var(--ink-muted);
    content: attr(data-platform-label);
    font-size: 10px;
  }

  .monitor-config-input {
    width: 100%;
  }

  .monitor-config-input input {
    width: auto;
    min-width: 0;
    flex: 1;
  }

  .monitor-config-dialog__foot {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .monitor-config-dialog__foot > div {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .section-heading--monitor-result {
    align-items: stretch;
  }

  .monitor-result-summary {
    flex-wrap: wrap;
  }

  .problem-store-panel__head {
    align-items: stretch;
    flex-direction: column;
  }

  .problem-store-card__head {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .problem-store-card__owners,
  .problem-store-card__push,
  .problem-store-card__routing {
    grid-column: 1;
    grid-row: auto;
  }

  .problem-store-card__owners {
    justify-content: flex-start;
  }

  .problem-platform-list {
    grid-template-columns: 1fr;
  }

  .problem-data-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .problem-data-list strong {
    justify-self: start;
  }

  .guide-list {
    grid-template-columns: 1fr;
  }

  .summary-strip,
  .sync-grid,
  .report-metrics,
  .report-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-steps span {
    display: none;
  }

  .alert-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .alert-item__value {
    display: none;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes settings-menu-in-mobile {
  from { opacity: 0; transform: translate(-50%, -5px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 420px) {
  .report-output-actions__group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-output-actions__group > span {
    grid-column: 1 / -1;
  }

  .summary-strip,
  .sync-grid,
  .report-metrics,
  .report-sections {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 问题闭环看板 */
.hero--dashboard {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(243, 249, 232, 0.9)),
    var(--paper);
}

.hero__signal--dashboard {
  display: grid;
  place-items: center;
}

.dashboard-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(108, 176, 0, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 222, 0, 0.2), rgba(143, 222, 0, 0.03) 55%, transparent 56%);
}

.dashboard-orbit::before,
.dashboard-orbit::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(108, 176, 0, 0.18);
  border-radius: 50%;
}

.dashboard-orbit::before { inset: 28px; }
.dashboard-orbit::after { inset: 58px; }

.dashboard-orbit > span {
  display: grid;
  z-index: 1;
  place-items: center;
  width: 64px;
  height: 64px;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(108, 176, 0, 0.24);
  font-size: 30px;
  font-weight: 800;
}

.dashboard-orbit > i {
  position: absolute;
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--accent-dim);
  box-shadow: 0 6px 16px rgba(23, 52, 43, 0.16);
}

.dashboard-orbit > i:nth-child(1) { top: 28px; left: 54px; }
.dashboard-orbit > i:nth-child(2) { right: 30px; bottom: 66px; }
.dashboard-orbit > i:nth-child(3) { bottom: 20px; left: 88px; }

.dashboard-signal {
  right: 0;
  bottom: 18px;
}

.module-dashboard {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 94px;
  margin: 42px 0 72px;
  padding: 30px;
  border: 1px solid rgba(143, 222, 0, 0.3);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(143, 222, 0, 0.13), transparent 32%),
    linear-gradient(145deg, rgba(250, 253, 246, 0.98), rgba(244, 249, 241, 0.92));
  box-shadow: 0 24px 62px rgba(40, 72, 46, 0.1);
}

.module-dashboard__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 4px 0;
}

.module-dashboard__heading h2,
.module-dashboard__heading p {
  margin: 0;
}

.module-dashboard__heading h2 {
  margin-top: 7px;
  color: var(--ink);
  font-size: clamp(25px, 2.4vw, 34px);
  letter-spacing: -0.035em;
}

.module-dashboard__heading p {
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 14px;
}

.module-dashboard__badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  color: var(--tea-800);
  border: 1px solid rgba(143, 222, 0, 0.32);
  border-radius: 999px;
  background: rgba(239, 250, 218, 0.86);
  font-size: 12px;
  font-weight: 760;
}

.module-dashboard .dashboard-shell {
  margin: 24px 0 0;
}

.dashboard-shell {
  display: grid;
  gap: 20px;
  margin: 32px 0 72px;
}

.dashboard-toolbar,
.dashboard-report-downloads,
.dashboard-case-section {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.dashboard-report-downloads {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
}

.dashboard-report-downloads > div {
  display: grid;
  gap: 4px;
}

.dashboard-report-downloads > div span {
  color: var(--ink-muted);
  font-size: 13px;
}

.dashboard-report-downloads nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-toolbar {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 3.3fr);
  align-items: end;
  gap: 30px;
  padding: 24px 28px;
}

.dashboard-toolbar h2,
.dashboard-toolbar h3,
.dashboard-toolbar p,
.dashboard-case-section h2,
.dashboard-case-section h3,
.dashboard-case-section p {
  margin: 0;
}

.dashboard-toolbar h2,
.dashboard-toolbar h3,
.dashboard-case-section h2,
.dashboard-case-section h3 {
  margin-top: 2px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.dashboard-toolbar p,
.dashboard-case-section p {
  margin-top: 4px;
  color: var(--ink-muted);
}

.dashboard-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  width: 100%;
}

.dashboard-filters--promotion {
  grid-template-columns: minmax(142px, 1.2fr) repeat(3, minmax(0, 1fr)) auto;
}

.dashboard-filters--monitor {
  grid-template-columns:
    minmax(142px, 1.25fr)
    minmax(108px, 0.9fr)
    minmax(92px, 0.78fr)
    minmax(92px, 0.78fr)
    minmax(88px, 0.72fr)
    88px;
  gap: 10px;
}

.dashboard-refresh {
  justify-self: end;
  width: 88px;
  min-width: 88px;
  height: 40px;
  padding: 0 10px;
  color: var(--accent-dim);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.dashboard-refresh:not(:disabled):hover,
.dashboard-refresh:focus-visible {
  border-color: var(--accent-dim);
  outline: none;
  box-shadow: 0 0 0 3px rgba(143, 222, 0, 0.15);
}

.dashboard-refresh:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.dashboard-filters label,
.dashboard-search {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.dashboard-filters label {
  min-width: 0;
}

.dashboard-filters input,
.dashboard-filters select,
.dashboard-search select,
.dashboard-inline-filter select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 42px 0 16px;
  appearance: none;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background-color: var(--paper);
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: var(--select-chevron-position);
  background-size: 5px 5px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
}

.dashboard-filters input {
  background-image: none;
  padding-right: 12px;
}

.dashboard-filters input:disabled,
.dashboard-filters select:disabled,
.dashboard-search select:disabled,
.dashboard-inline-filter select:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.dashboard-filters input:focus,
.dashboard-filters select:focus,
.dashboard-search select:focus,
.dashboard-inline-filter select:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(143, 222, 0, 0.15);
}

.dashboard-domain-tabs {
  display: inline-flex;
  justify-self: start;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.dashboard-domain-tabs button {
  min-width: 112px;
  padding: 9px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.dashboard-domain-tabs button.is-active {
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(108, 176, 0, 0.16);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* Operations personnel access */
.operations-panel {
  padding: 42px 28px 60px;
}

.operations-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto 24px;
}

.operations-page-head h1 {
  margin: 0 0 6px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.045em;
}

.operations-page-head p,
.operations-editor-head p,
.operations-scope-heading p {
  margin: 0;
  color: var(--ink-muted);
}

.operations-access-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.operations-personnel-card,
.operations-scope-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.operations-personnel-card {
  align-self: start;
}

.operations-personnel-card__head {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(244, 250, 235, 0.9), rgba(255, 255, 255, 0.9));
}

.operations-search input,
.operations-tree-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.operations-search input:focus,
.operations-tree-search input:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 4px rgba(143, 222, 0, 0.12);
}

.operations-filter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.operations-filter button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.operations-filter button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.operations-filter button.is-active {
  color: var(--ink);
  background: var(--tea-100);
}

.operations-personnel-list {
  max-height: min(690px, calc(100vh - 300px));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 8px;
}

.operations-person-group + .operations-person-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.operations-person-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px 5px;
  color: var(--ink-soft);
}

.operations-person-group__head strong {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.operations-person-group__head span {
  color: var(--ink-muted);
  font-size: 11px;
}

.operations-person-group__empty {
  margin: 0;
  padding: 12px 10px 16px;
  color: var(--ink-muted);
  font-size: 12px;
}

.operations-person-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.operations-person-row:hover {
  background: var(--tea-50);
}

.operations-person-row.is-active {
  border-color: rgba(143, 222, 0, 0.45);
  background: linear-gradient(135deg, rgba(244, 250, 235, 0.95), rgba(255, 255, 255, 0.95));
}

.operations-person-row:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.operations-person-avatar,
.operations-editor-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #33530a;
  background: var(--tea-100);
  font-weight: 800;
}

.operations-person-avatar { width: 42px; height: 42px; }
.operations-editor-avatar { width: 52px; height: 52px; font-size: 18px; }
.operations-person-avatar img,
.operations-editor-avatar img { width: 100%; height: 100%; object-fit: cover; }

.operations-person-row__copy strong,
.operations-person-row__copy small { display: block; }
.operations-person-row__copy { min-width: 0; }
.operations-person-row__copy strong,
.operations-person-row__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operations-person-row__copy small { margin-top: 4px; color: var(--ink-muted); }

.operations-person-status {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ink-muted);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 750;
}

.operations-person-status.is-enabled {
  color: #476f12;
  background: var(--tea-100);
}

.operations-person-status.is-unavailable {
  color: var(--ink-soft);
  background: #eef1ef;
}

.operations-personnel-empty,
.operations-tree-empty {
  padding: 28px;
  color: var(--ink-muted);
  text-align: center;
}

.operations-scope-card {
  min-height: 650px;
}

.operations-scope-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 650px;
  padding: 40px;
  color: var(--ink-muted);
  text-align: center;
}

.operations-scope-placeholder > span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 20px;
  color: var(--accent-dim);
  background: var(--tea-100);
  font-size: 28px;
}

.operations-scope-placeholder strong { color: var(--ink); font-size: 19px; }
.operations-scope-placeholder p { margin: 8px 0 0; }

.operations-editor-head,
.operations-scope-heading,
.operations-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
}

.operations-editor-head {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(244, 250, 235, 0.9), rgba(255, 255, 255, 0.9));
}

.operations-editor-person { display: flex; align-items: center; gap: 14px; }
.operations-editor-person h2 { margin: 0 0 4px; font-size: 22px; }

.operations-role-field {
  display: grid;
  gap: 7px;
  min-width: 210px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
}

.operations-role-field select {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 42px 0 16px;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background-color: #fff;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: var(--select-chevron-position);
  background-size: 5px 5px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.operations-role-field select:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 4px rgba(143, 222, 0, 0.12);
}

.operations-role-field select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.operations-enable-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.operations-enable-switch input { position: absolute; opacity: 0; pointer-events: none; }
.operations-enable-switch > span {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #d8dfd9;
  transition: background 160ms ease;
}
.operations-enable-switch > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(30, 50, 37, 0.2);
  content: "";
  transition: transform 160ms ease;
}
.operations-enable-switch input:checked + span { background: var(--accent); }
.operations-enable-switch input:checked + span::after { transform: translateX(20px); }
.operations-enable-switch input:disabled ~ * { opacity: 0.45; }
.operations-enable-switch input:focus-visible + span {
  outline: 3px solid rgba(108, 176, 0, 0.34);
  outline-offset: 3px;
}

.operations-scope-heading { align-items: flex-end; padding-bottom: 14px; }
.operations-scope-heading h3 { margin: 0 0 5px; font-size: 18px; }
.operations-tree-search { width: min(310px, 44%); }

.operations-scope-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 10px;
  padding: 0 26px 18px;
}
.operations-scope-summary article {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}
.operations-scope-summary span,
.operations-scope-summary small { color: var(--ink-muted); font-size: 12px; }
.operations-scope-summary strong { margin: 0 5px; font-size: 22px; }

.operations-tree {
  max-height: 520px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.operations-tree-node[hidden] { display: none; }
.operations-tree-row {
  --operations-level: 0;
  display: grid;
  grid-template-columns: 28px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 5px 20px 5px calc(18px + var(--operations-level, 0) * 20px);
}
.operations-tree-row:hover { background: var(--tea-50); }
.operations-tree-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
  line-height: 1;
}
.operations-tree-toggle::before { content: "›"; display: inline-block; font-size: 20px; transition: transform 150ms ease; }
.operations-tree-node.is-expanded > .operations-tree-row .operations-tree-toggle::before { transform: rotate(90deg); }
.operations-tree-toggle:disabled { cursor: wait; opacity: 0.45; }
.operations-tree-toggle-placeholder,
.operations-tree-check-placeholder {
  display: block;
  width: 28px;
  height: 28px;
}
.operations-tree-check-placeholder { width: 20px; height: 20px; }
.operations-tree-check {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent-dim);
  cursor: pointer;
}
.operations-tree-check:disabled { cursor: not-allowed; }
.operations-tree-copy { min-width: 0; }
.operations-tree-copy strong,
.operations-tree-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operations-tree-copy strong { font-size: 14px; }
.operations-tree-copy small { margin-top: 2px; color: var(--ink-muted); font-size: 11px; }
.operations-tree-count {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--ink-muted);
  font-size: 12px;
  white-space: nowrap;
}
.operations-tree-count small {
  color: #8a570e;
  font-size: 10px;
  font-weight: 650;
}
.operations-tree-children { display: none; }
.operations-tree-node.is-expanded > .operations-tree-children { display: block; }

.operations-editor-actions {
  position: sticky;
  bottom: 0;
  min-height: 76px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 24px rgba(23, 52, 43, 0.045);
}
.operations-editor-actions > span { color: var(--ink-muted); font-size: 13px; }
.operations-editor-actions > span.is-error { color: #a64a40; font-weight: 650; }

@media (max-width: 960px) {
  .workspace.workspace--admin { width: min(calc(100% - 32px), var(--max-width)); }
  .page-section-layout.has-section-nav { grid-template-columns: 1fr; gap: 0; }
  .page-section-rail {
    top: 86px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin: 14px 0 0;
  }
  .page-section-nav {
    grid-template-columns: auto repeat(2, minmax(0, 1fr));
    padding: 7px;
  }
  .page-section-nav__label { padding-inline: 10px; }
  .page-section-nav button { justify-content: center; }
  .page-section-history { min-width: 116px; }
  .push-history-dialog__body { grid-template-columns: 320px minmax(0, 1fr); }
  .operations-access-layout { grid-template-columns: 1fr; }
  .operations-personnel-list { max-height: 310px; }
  .operations-scope-card,
  .operations-scope-placeholder { min-height: 560px; }
}

@media (max-width: 680px) {
  .page-section-target { scroll-margin-top: 216px; }
  .page-section-rail { grid-template-columns: 1fr; }
  .page-section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-section-nav__label { display: none; }
  .page-section-history { width: 100%; }
  .push-history-dialog { width: calc(100vw - 20px); }
  .push-history-dialog__frame { max-height: 94vh; }
  .push-history-dialog__head { padding: 18px; }
  .push-history-filters { grid-template-columns: 1fr 1fr; padding: 12px 18px; }
  .push-history-refresh { width: 100%; }
  .push-history-dialog__body { display: block; overflow-y: auto; }
  .push-history-list { max-height: 52vh; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .push-history-detail { overflow: visible; padding: 18px; }
  .push-history-metrics { grid-template-columns: 1fr 1fr 1fr; }
  .operations-panel { padding: 28px 16px 44px; }
  .operations-page-head,
  .operations-editor-head,
  .operations-scope-heading { align-items: stretch; flex-direction: column; }
  .operations-page-head .button { align-self: flex-start; }
  .operations-tree-search { width: 100%; }
  .operations-scope-summary { grid-template-columns: 1fr 1fr; padding-inline: 18px; }
  .operations-scope-summary article:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .operations-editor-head,
  .operations-scope-heading,
  .operations-editor-actions { padding-inline: 18px; }
  .operations-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .operations-editor-actions .button { width: 100%; }
  .operations-tree-row { padding-right: 14px; padding-left: calc(12px + var(--operations-level, 0) * 14px); }
  .operations-role-field { width: 100%; min-width: 0; }
}

@media (max-width: 520px) {
  .operations-tree-row {
    grid-template-columns: 28px 22px minmax(0, 1fr);
  }

  .operations-tree-copy {
    grid-column: 3;
  }

  .operations-tree-count {
    grid-column: 3;
    justify-self: start;
    margin-top: -3px;
  }
}

.dashboard-metrics article {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.dashboard-metrics article::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  content: "";
  background: var(--line-strong);
}

.dashboard-metrics .is-pending::after { background: var(--coral); }
.dashboard-metrics .is-progress::after { background: var(--amber); }
.dashboard-metrics .is-complete::after,
.dashboard-metrics .is-rate::after { background: var(--accent-dim); }

.dashboard-metrics span,
.dashboard-metrics small {
  display: block;
  color: var(--ink-muted);
}

.dashboard-metrics span { font-size: 14px; font-weight: 400; }
.dashboard-metrics small { font-size: 12px; line-height: 1.5; font-weight: 400; }

.dashboard-metrics strong {
  display: block;
  margin: 8px 0 1px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-metric-progress {
  width: min(150px, calc(100% - 8px));
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ed;
}

.dashboard-metric-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 240ms ease;
}

.dashboard-shell progress { accent-color: var(--accent-dim); border: 0; border-radius: 999px; overflow: hidden; }
.dashboard-shell progress::-webkit-progress-bar { background: #edf1ed; }
.dashboard-shell progress::-webkit-progress-value { background: linear-gradient(90deg, var(--accent-dim), var(--accent)); }
.dashboard-shell progress::-moz-progress-bar { background: linear-gradient(90deg, var(--accent-dim), var(--accent)); }

.dashboard-case-section {
  padding: 28px 30px 30px;
}

.dashboard-case-section > header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-case-filterbar {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(155px, 180px) auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
  width: auto;
}

.dashboard-case-section > header > div:first-child { flex: 0 0 auto; }
.dashboard-case-section > header h3 { white-space: nowrap; }

.dashboard-bulk-controls {
  display: flex;
  min-width: max-content;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.dashboard-bulk-controls button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.dashboard-bulk-controls .dashboard-bulk-entry {
  min-width: 92px;
}

.dashboard-bulk-controls button:hover:not(:disabled) {
  color: var(--accent-dim);
  border-color: var(--accent-dim);
}

.dashboard-bulk-controls button.is-primary,
.dashboard-bulk-controls .dashboard-bulk-entry {
  color: var(--on-accent);
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(95, 157, 0, 0.16);
}

.dashboard-bulk-controls button.is-primary:hover:not(:disabled),
.dashboard-bulk-controls .dashboard-bulk-entry:hover:not(:disabled) {
  color: var(--on-accent);
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.dashboard-bulk-controls button:disabled { cursor: not-allowed; opacity: 0.5; }

.dashboard-bulk-controls > span {
  min-width: 60px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.dashboard-keyword-search {
  position: relative;
  display: block;
  min-width: 0;
}

.dashboard-keyword-search > svg {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  color: var(--ink-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.dashboard-keyword-search input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 16px 0 43px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background: var(--paper);
  font: inherit;
  font-size: 14px;
}

.dashboard-keyword-search input::placeholder { color: var(--ink-muted); }

.dashboard-keyword-search input:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(143, 222, 0, 0.15);
}

.dashboard-keyword-search input::-webkit-search-cancel-button { cursor: pointer; }

.dashboard-problem-multiselect {
  position: relative;
  min-width: 0;
}

.dashboard-problem-multiselect > summary {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 13px 0 15px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background: var(--paper);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  list-style: none;
}

.dashboard-problem-multiselect > summary::-webkit-details-marker { display: none; }

.dashboard-problem-multiselect > summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-problem-multiselect > summary svg {
  flex: 0 0 auto;
  color: var(--ink-muted);
  transition: transform 160ms ease;
}

.dashboard-problem-multiselect[open] > summary {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(143, 222, 0, 0.15);
}

.dashboard-problem-multiselect[open] > summary svg { transform: rotate(180deg); }

.dashboard-problem-multiselect__menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 30;
  display: grid;
  width: max(220px, 100%);
  max-height: 286px;
  gap: 3px;
  padding: 7px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 0 16px 38px rgba(29, 48, 31, 0.15);
}

.dashboard-problem-multiselect__menu label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  color: var(--ink-soft);
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
}

.dashboard-problem-multiselect__menu label:hover,
.dashboard-problem-multiselect__menu label.is-selected {
  color: var(--ink);
  background: var(--tea-50);
}

.dashboard-problem-multiselect__menu input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent-dim);
  cursor: pointer;
}

.dashboard-problem-multiselect__menu small {
  color: var(--ink-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.dashboard-active-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -4px 0 16px;
  padding: 11px 14px;
  color: var(--ink-soft);
  border: 1px solid var(--tea-200);
  border-radius: 12px;
  background: var(--tea-50);
}

.dashboard-active-filter[hidden] { display: none; }

.dashboard-active-filter button {
  padding: 5px 9px;
  color: var(--accent-dim);
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.dashboard-loading,
.dashboard-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: var(--ink-muted);
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: var(--tea-50);
}

.dashboard-empty strong { color: var(--ink); font-size: 17px; }

.dashboard-case-list {
  display: grid;
  gap: 10px;
}

.dashboard-list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px 0;
  color: var(--ink-muted);
  font-size: 13px;
}

.dashboard-list-foot[hidden] { display: none; }
.dashboard-pagination { margin-top: 0; }

.dashboard-case-card {
  display: grid;
  grid-template-columns: minmax(210px, 1.15fr) minmax(210px, 1.35fr) minmax(145px, 0.75fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  content-visibility: auto;
  contain-intrinsic-size: auto 108px;
}

.dashboard-case-card:hover,
.promotion-plan:hover {
  border-color: var(--tea-300);
  box-shadow: 0 12px 28px rgba(23, 52, 43, 0.08);
  transform: translateY(-1px);
}

.dashboard-case-card.is-selected,
.promotion-plan.is-selected {
  border-color: var(--accent-dim);
  background: linear-gradient(90deg, rgba(244, 253, 226, 0.72), #fff 30%);
  box-shadow: 0 10px 24px rgba(90, 145, 5, 0.1);
}

.dashboard-case-identity strong,
.dashboard-case-problem strong,
.dashboard-case-owner strong {
  display: block;
}

.dashboard-case-identity strong { font-size: 16px; }
.dashboard-case-identity span,
.dashboard-case-problem span,
.dashboard-case-owner span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-case-problem strong {
  color: #8e302b;
}

.dashboard-case-owner strong {
  color: var(--ink-soft);
  font-size: 13px;
}

.dashboard-case-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.dashboard-case-actions.is-selecting {
  grid-template-columns: auto auto;
  align-items: center;
}

.dashboard-case-actions.is-selecting .case-status {
  grid-column: 1;
  grid-row: 1;
}

.dashboard-case-actions.is-selecting .dashboard-case-select {
  grid-column: 2;
  grid-row: 1;
}

.dashboard-case-actions.is-selecting .dashboard-case-button {
  grid-column: 1 / -1;
  grid-row: 2;
}

.dashboard-case-select {
  position: relative;
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin: 0;
  place-items: center;
  cursor: pointer;
}

.dashboard-case-select input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.dashboard-case-select span {
  display: block;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  background: var(--paper);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.dashboard-case-select input:checked + span {
  border-color: var(--accent-dim);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--paper), 0 0 0 3px rgba(143, 222, 0, 0.14);
}

.dashboard-case-select input:focus-visible + span {
  outline: 2px solid var(--accent-dim);
  outline-offset: 2px;
}

.dashboard-case-select input:disabled + span {
  cursor: not-allowed;
  border-color: var(--line);
  background: #f2f4f2;
  opacity: 0.62;
}

.case-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--coral);
  background: var(--coral-soft);
  font-size: 12px;
  font-weight: 800;
}

.case-status--in-progress { color: var(--amber); background: var(--amber-soft); }
.case-status--completed { color: var(--accent-dim); background: var(--tea-50); }

.dashboard-case-button {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-weight: 700;
}

.dashboard-case-button:hover { border-color: var(--accent-dim); color: var(--accent-dim); }

.case-detail-dialog { width: min(720px, calc(100vw - 32px)); }
.dashboard-bulk-dialog { width: min(540px, calc(100vw - 32px)); }
.dashboard-bulk-dialog__body { display: grid; gap: 8px; padding-block: 28px; }
.dashboard-bulk-dialog__body strong { color: var(--ink); font-size: 18px; }
.dashboard-bulk-dialog__body p { margin: 0; color: var(--ink-muted); line-height: 1.7; }
.case-detail-dialog form {
  display: flex;
  min-height: 0;
  max-height: min(760px, calc(100dvh - 48px));
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.case-detail-dialog .detail-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

.case-detail-summary {
  display: grid;
  gap: 14px;
}

.case-detail-summary__row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.case-detail-summary__row > span { color: var(--ink-muted); }
.case-detail-summary__row > strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
  white-space: pre-line;
}

.case-history {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.case-history h3 { margin: 0 0 4px; font-size: 16px; }
.case-history article {
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--tea-50);
}
.case-history article strong,
.case-history article span { display: block; }
.case-history article span {
  color: var(--ink-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.case-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px 22px;
  border-top: 1px solid var(--line);
}

.case-resolution-field {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-weight: 700;
}

.case-resolution-field select,
.case-resolution-field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background: var(--paper);
  font: inherit;
}

.case-resolution-field select {
  padding-right: 44px;
  appearance: none;
  background-color: var(--paper);
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: var(--select-chevron-position);
  background-size: 5px 5px;
  cursor: pointer;
  line-height: 1.2;
}

.case-resolution-field textarea {
  min-height: 92px;
  resize: vertical;
}

.case-resolution-field select:focus,
.case-resolution-field textarea:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(143, 222, 0, 0.14);
}

@media (max-width: 980px) {
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-case-card { grid-template-columns: minmax(170px, 1fr) minmax(210px, 1.35fr) minmax(120px, 0.7fr) auto; gap: 14px; }
}

@media (max-width: 1120px) {
  .dashboard-toolbar {
    grid-template-columns: 1fr;
  }
  .dashboard-case-section > header {
    align-items: stretch;
    flex-direction: column;
  }
  .dashboard-case-filterbar { width: 100%; }
  .problem-store-card--compact .problem-store-card__head {
    grid-template-columns: minmax(190px, 1fr) minmax(240px, 1.5fr) auto;
  }
  .problem-store-card--compact .problem-store-card__owners {
    grid-column: 1 / span 2;
    grid-row: 2;
    justify-content: flex-start;
  }
  .problem-store-card--compact .problem-store-card__push,
  .problem-store-card--compact .problem-store-card__routing {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 900px) {
  .dashboard-toolbar {
    grid-template-columns: 1fr;
  }
  .dashboard-case-section > header {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-case-filterbar {
    grid-template-columns: minmax(0, 1fr) minmax(125px, 150px);
  }

  .dashboard-bulk-controls {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .dashboard-filters select,
  .dashboard-problem-multiselect {
    width: 100%;
  }

  .dashboard-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-filters--monitor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-refresh {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .module-dashboard {
    margin-top: 30px;
    padding: 20px 14px;
    border-radius: 22px;
  }
  .module-dashboard__heading { align-items: flex-start; flex-direction: column; gap: 14px; padding-inline: 5px; }
  .module-dashboard__badge { min-height: 30px; }
  .dashboard-toolbar {
    grid-template-columns: 1fr;
  }
  .dashboard-case-section > header { align-items: stretch; flex-direction: column; }
  .dashboard-case-filterbar { grid-template-columns: 1fr; width: 100%; }
  .dashboard-bulk-controls { min-width: 0; justify-content: flex-start; flex-wrap: wrap; }
  .dashboard-bulk-controls > span { min-width: 62px; }
  .dashboard-filters,
  .dashboard-filters--monitor { grid-template-columns: 1fr; align-items: stretch; }
  .problem-store-card--compact .problem-store-card__head {
    grid-template-columns: 1fr;
  }
  .problem-store-card--compact .problem-type-summary,
  .problem-store-card--compact .problem-store-card__owners,
  .problem-store-card--compact .problem-store-card__push,
  .problem-store-card--compact .problem-store-card__routing {
    grid-column: 1;
    grid-row: auto;
  }
  .dashboard-report-downloads { align-items: stretch; flex-direction: column; }
  .dashboard-report-downloads nav { display: grid; justify-content: stretch; }
  .dashboard-refresh { grid-column: 1; width: 100%; }
  .dashboard-filters select,
  .dashboard-problem-multiselect { width: 100%; }
  .dashboard-domain-tabs { display: grid; grid-template-columns: repeat(3, 1fr); justify-self: stretch; }
  .dashboard-domain-tabs--report { grid-template-columns: repeat(2, 1fr); }
  .dashboard-domain-tabs button { min-width: 0; padding-inline: 8px; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-case-card { grid-template-columns: 1fr auto; gap: 12px; }
  .dashboard-case-problem { grid-column: 1 / -1; grid-row: 2; }
  .dashboard-case-owner { grid-column: 1 / -1; grid-row: 3; }
  .dashboard-case-actions { grid-column: 2; grid-row: 1; }
  .dashboard-active-filter,
  .dashboard-list-foot { align-items: stretch; flex-direction: column; }
  .case-detail-summary__row { grid-template-columns: 1fr; gap: 3px; }
}

@media (max-width: 460px) {
  .upload-card__actions,
  .page-section-layout.has-section-nav .upload-card__actions {
    grid-template-columns: 1fr;
  }

  .guide-list li { grid-template-columns: 28px minmax(0, 1fr); }

  [data-flow="monitor"] [data-open-monitor-config] {
    grid-column: 1;
  }

  [data-start-run="monitor"],
  [data-start-run="report"] {
    grid-column: 1;
  }

  .dashboard-metrics { grid-template-columns: 1fr; }
  .dashboard-domain-tabs { grid-template-columns: 1fr; }
  .case-detail-actions { align-items: stretch; flex-direction: column; }
}

/* Shared workflow controls and responsive boundaries. */
.topbar__account button { white-space:nowrap; }
.topbar__brand-area { display:contents; }
.topbar--data-management .topbar__brand-area { position:relative;display:flex;align-items:center;gap:12px;min-width:0;width:max-content; }
.topbar--data-management .topbar__return-home {
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:44px;
  padding:0 14px;
  border:1px solid var(--line-strong);
  border-radius:var(--radius-sm);
  background:var(--paper);
  color:var(--ink);
  font-size:14px;
  font-weight:650;
  line-height:20px;
  white-space:nowrap;
  cursor:pointer;
  touch-action:manipulation;
  transition:background-color 160ms ease,border-color 160ms ease;
}
.topbar__return-home > svg { display:block;flex:none; }
.topbar__return-home:hover { background:var(--tea-50);border-color:var(--tea-300); }
.topbar__return-home:active { background:var(--tea-100); }
.topbar__return-home:focus-visible { outline:3px solid var(--ink-soft);outline-offset:3px; }
@media(prefers-reduced-motion:reduce) {
  .topbar__return-home { transition:none; }
}
.topbar--data-management .brand { width:auto;min-width:0; }
.topbar--data-management .brand__logo { max-width:100%;min-width:0; }
@media(min-width:1600px) {
  .topbar--data-management .topbar__return-home { position:absolute;right:calc(100% + 12px);top:50%;transform:translateY(-50%); }
}
@media(max-width:1599px) {
  .topbar--data-management .brand__title { display:none; }
  .topbar--data-management .brand__logo { width:220px; }
}
@media(max-width:920px) {
  .topbar--data-management .topbar__brand-area { grid-column:1;grid-row:1;justify-self:start; }
}
@media(max-width:640px) {
  .topbar--data-management .brand__logo { width:150px; }
}
@media (min-width:1121px) and (max-width:1280px) {
  .topbar { height:auto; }
  .topbar__inner { grid-template-columns:minmax(0,1fr) auto; gap:8px 16px; padding:8px 0; }
  .main-nav { justify-self:end; }
  .topbar__account { grid-column:1 / -1; grid-row:2; justify-self:center; }
  .page-section-rail { top:calc(var(--workspace-header-height) + 16px); }
  .page-section-target { scroll-margin-top:calc(var(--workspace-header-height) + 16px); }
}
.dashboard-inline-filter { display:flex; align-items:center; flex-wrap:wrap; gap:10px; min-width:0; color:var(--ink-soft); font-size:12px; font-weight:650; }
.dashboard-inline-filter select { width:auto; max-width:100%; min-width:100px; }
.dashboard-shell, .dashboard-shell > *, .dashboard-case-filterbar > *, .promotion-plan, .promotion-plan__body { min-width:0; }
.promotion-plan-resolution .dashboard-case-button { white-space:nowrap; }
.promotion-plan__distribution-head { flex-wrap:wrap; }
.dashboard-toolbar input[type=date] { min-width:0; }
@media(max-width:1120px) {
  .dashboard-case-filterbar { grid-template-columns:minmax(0,1fr) minmax(145px,180px) auto; }
}
@media(max-width:920px) {
  .topbar__inner { grid-template-columns:minmax(0,1fr); }
  .topbar__inner .brand { grid-column:1; grid-row:1; justify-self:center; }
  .topbar__inner > .main-nav { grid-column:1; grid-row:2; justify-self:center; max-width:100%; }
  .topbar__account { grid-column:1; grid-row:3; flex-wrap:wrap; justify-content:center; }
}
@media(max-width:960px) {
  .page-section-rail { top:calc(var(--workspace-header-height, 160px) + 8px); }
  .page-section-target { scroll-margin-top:calc(var(--workspace-header-height, 160px) + 140px); }
}
@media(max-width:720px) {
  .dashboard-case-filterbar { grid-template-columns:minmax(0,1fr); }
  .dashboard-toolbar, .dashboard-case-section { padding:20px 16px; }
  .dashboard-inline-filter { width:100%; }
  .dashboard-inline-filter select { flex:1 1 110px; width:0; min-width:0; }
  .dashboard-filters--promotion { grid-template-columns:minmax(0,1fr); }
  .dashboard-filters--promotion .dashboard-refresh { width:100%; }
  .dashboard-bulk-controls { min-width:0; flex-wrap:wrap; }
  .pagination { max-width:100%; flex-wrap:wrap; }
  .pagination__pages { flex-wrap:wrap; }
  .promotion-plan__summary { grid-template-columns:minmax(0,1fr) 66px 18px; padding:16px; gap:10px; }
  .promotion-plan__count { font-size:20px; }
  .promotion-plan-resolution { padding:12px 16px; }
}

/* 监控范围 */
.hero--scope {
  min-height: 270px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(243, 249, 232, 0.88)),
    var(--paper);
}

.hero--scope h1 {
  margin-bottom: 14px;
}

.hero__signal--scope {
  display: grid;
  place-items: center;
}

.scope-orbit {
  display: flex;
  align-items: center;
  width: min(390px, 100%);
  padding: 34px 32px;
  color: var(--tea-800);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(108, 176, 0, 0.24);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 760;
}

.scope-orbit span {
  display: grid;
  min-width: 68px;
  min-height: 68px;
  place-items: center;
  background: var(--tea-50);
  border: 1px solid var(--tea-300);
  border-radius: 50%;
}

.scope-orbit span:last-child {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(108, 176, 0, 0.2);
}

.scope-orbit i {
  height: 1px;
  min-width: 28px;
  flex: 1;
  background: var(--tea-300);
}

.scope-shell {
  display: grid;
  gap: 20px;
  margin: 26px 0 72px;
}

.scope-overview,
.scope-config-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.scope-overview {
  overflow: hidden;
  padding: 28px 30px 30px;
}

/*
 * The organization tree follows the document scroll instead of creating a
 * second vertical scroll container. `clip` preserves the rounded card edges
 * without becoming a scrolling ancestor, so the sticky action bar can remain
 * anchored to the viewport while the long tree moves beneath it.
 */
.scope-config-card {
  overflow: clip;
}

.scope-overview__head,
.scope-config-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.scope-overview__head h2,
.scope-config-card__head h2 {
  display: inline;
  margin: 0 0 0 9px;
  font-size: 23px;
  letter-spacing: -0.025em;
}

.scope-overview__head p,
.scope-config-card__head p {
  margin: 6px 0 0 34px;
  color: var(--ink-muted);
  font-size: 13px;
}

.scope-sync-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.scope-sync-actions > span {
  color: var(--ink-muted);
  font-size: 12px;
  white-space: nowrap;
}

.scope-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 25px;
}

.scope-summary-grid article,
.scope-publish-summary article {
  display: grid;
  min-width: 0;
  padding: 17px 18px;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.scope-summary-grid span,
.scope-publish-summary span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 680;
}

.scope-summary-grid strong,
.scope-publish-summary strong {
  margin: 5px 0 1px;
  color: var(--tea-800);
  font-size: 28px;
  line-height: 1.15;
}

.scope-summary-grid small,
.scope-publish-summary small {
  color: var(--ink-muted);
  font-size: 11px;
}

.scope-summary-grid .is-added,
.scope-publish-summary .is-added {
  background: var(--tea-50);
  border-color: var(--tea-300);
}

.scope-summary-grid .is-removed,
.scope-publish-summary .is-removed,
.scope-summary-grid .is-unmapped {
  background: var(--amber-soft);
  border-color: rgba(201, 138, 39, 0.28);
}

.scope-summary-grid .is-removed strong,
.scope-publish-summary .is-removed strong,
.scope-summary-grid .is-unmapped strong {
  color: #9b6414;
}

.scope-config-card__head {
  padding: 28px 30px 22px;
  border-bottom: 1px solid var(--line);
}

.scope-save-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 11px;
  color: var(--tea-800);
  background: var(--tea-50);
  border: 1px solid var(--tea-300);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 720;
  white-space: nowrap;
}

.scope-save-status::before {
  width: 7px;
  height: 7px;
  background: var(--accent-dim);
  border-radius: 50%;
  content: "";
}

.scope-save-status.is-dirty {
  color: #8a570e;
  background: var(--amber-soft);
  border-color: rgba(201, 138, 39, 0.35);
}

.scope-save-status.is-dirty::before {
  background: var(--amber);
}

.scope-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto minmax(132px, 132px) auto;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  background: #fafcfb;
  border-bottom: 1px solid var(--line);
}

.scope-operation-filter {
  display: block;
  width: 132px;
  min-width: 132px;
}

.scope-operation-filter select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 36px 0 13px;
  appearance: none;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background-color: #fff;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: var(--select-chevron-position);
  background-size: 5px 5px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  font-weight: 680;
}

.scope-operation-filter select:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(143, 222, 0, 0.14);
}

.scope-search {
  position: relative;
  display: block;
}

.scope-search i {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

.scope-search i svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scope-search input {
  width: 100%;
  height: 44px;
  padding: 0 15px 0 43px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
}

.scope-search input:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(143, 222, 0, 0.14);
}

.scope-filter-tabs {
  display: inline-flex;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.scope-filter-tabs button,
.scope-tree-tools button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.scope-filter-tabs button {
  min-height: 34px;
  padding: 6px 12px;
  color: var(--ink-soft);
  background: transparent;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 680;
}

.scope-filter-tabs button.is-active {
  color: var(--on-accent);
  background: var(--accent);
}

.scope-tree-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.scope-tree-tools button {
  padding: 6px 7px;
  color: var(--tea-800);
  background: transparent;
  font-size: 11px;
  font-weight: 680;
}

.scope-tree-tools button:hover {
  text-decoration: underline;
}

.scope-tree-loading,
.scope-empty {
  min-height: 240px;
  padding: 70px 24px;
  color: var(--ink-muted);
  text-align: center;
}

.scope-tree-loading.is-error {
  color: #a15a16;
}

.scope-empty {
  display: grid;
  align-content: center;
  gap: 5px;
}

.scope-empty strong {
  color: var(--ink-soft);
  font-size: 15px;
}

.scope-empty span {
  font-size: 12px;
}

.scope-tree {
  max-height: none;
  overflow: visible;
}

.scope-tree-node {
  background: rgba(255, 255, 255, 0.82);
  content-visibility: auto;
  contain-intrinsic-size: auto 62px;
}

.scope-tree-node.is-structural > .scope-tree-row {
  background: #fafcfb;
}

.scope-tree-node.is-structural > .scope-tree-row .scope-node-copy strong {
  color: var(--ink-soft);
}

.scope-tree-node.is-changed > .scope-tree-row {
  background: linear-gradient(90deg, rgba(143, 222, 0, 0.09), rgba(255, 255, 255, 0));
}

.scope-tree-row {
  display: grid;
  grid-template-columns: 26px 26px 50px minmax(190px, 1fr) auto 92px;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 9px 25px 9px calc(22px + (var(--scope-level) - 1) * 22px);
  border-bottom: 1px solid rgba(221, 229, 225, 0.72);
}

.scope-tree-row:hover {
  background-color: rgba(243, 249, 232, 0.58);
}

.scope-tree-toggle,
.scope-checkbox,
.scope-checkbox-placeholder {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.scope-tree-toggle,
.scope-tree-toggle-placeholder {
  width: 26px;
  height: 26px;
}

.scope-tree-toggle {
  color: var(--ink-muted);
  background: transparent;
  border-radius: 8px;
}

.scope-tree-toggle:hover {
  color: var(--tea-800);
  background: var(--tea-50);
}

.scope-tree-toggle i {
  display: grid;
  place-items: center;
  transition: transform 150ms ease;
}

.scope-tree-toggle i svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scope-tree-node[aria-expanded="true"] > .scope-tree-row .scope-tree-toggle i {
  transform: rotate(90deg);
}

.scope-checkbox {
  width: 22px;
  height: 22px;
  color: var(--on-accent);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
}

.scope-checkbox-placeholder {
  width: 22px;
  height: 22px;
  cursor: default;
}

.scope-checkbox[aria-checked="true"],
.scope-checkbox[aria-checked="mixed"] {
  background: var(--accent);
  border-color: var(--accent);
}

.scope-checkbox i {
  display: grid;
  place-items: center;
}

.scope-checkbox i svg {
  display: block;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scope-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 24px;
  color: var(--ink-soft);
  background: #f2f5f3;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 720;
}

.scope-type-badge--war_zone {
  color: var(--tea-800);
  background: var(--tea-50);
  border-color: var(--tea-300);
}

.scope-type-badge--district {
  color: #8a570e;
  background: var(--amber-soft);
  border-color: rgba(201, 138, 39, 0.28);
}

.scope-type-badge--root,
.scope-type-badge--other {
  color: var(--ink-muted);
  background: #eef2f0;
  border-color: var(--line);
}

.scope-node-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.scope-node-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-node-copy small {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-node-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.scope-mapping-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  color: var(--ink-muted);
  background: #f2f5f3;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 680;
  white-space: nowrap;
}

.scope-mapping-badge {
  color: #8a570e;
  background: var(--amber-soft);
}

.scope-node-count {
  color: var(--ink-soft);
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.scope-action-bar {
  position: sticky;
  z-index: 3;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 30px;
  background: rgba(250, 252, 251, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.scope-change-summary {
  display: grid;
  gap: 2px;
}

.scope-change-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.scope-change-summary span {
  color: var(--ink-muted);
  font-size: 11px;
}

.scope-action-bar__buttons {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.scope-publish-dialog {
  width: min(620px, calc(100% - 32px));
}

.scope-publish-dialog__body > p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.scope-publish-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.scope-publish-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 26px 20px;
  background: #fafcfb;
  border-top: 1px solid var(--line);
}

@media (max-width: 1080px) {
  .scope-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scope-toolbar { grid-template-columns: minmax(240px, 1fr) auto 122px; }
  .scope-tree-tools { grid-column: 1 / -1; justify-self: end; }
  .scope-tree-row { grid-template-columns: 26px 26px 50px minmax(160px, 1fr) auto 84px; }
}

@media (max-width: 760px) {
  .scope-overview,
  .scope-config-card { border-radius: 18px; }
  .scope-overview { padding: 22px 18px; }
  .scope-overview__head,
  .scope-config-card__head,
  .scope-action-bar { align-items: stretch; flex-direction: column; }
  .scope-sync-actions { justify-content: flex-start; }
  .scope-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope-config-card__head { padding: 22px 18px 18px; }
  .scope-save-status { align-self: flex-start; }
  .scope-toolbar { grid-template-columns: 1fr; padding: 16px 18px; }
  .scope-operation-filter { width: 100%; }
  .scope-filter-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .scope-filter-tabs button { min-width: 0; padding-inline: 5px; }
  .scope-tree-tools { grid-column: auto; justify-self: start; }
  .scope-tree-row {
    grid-template-columns: 24px 24px 44px minmax(0, 1fr) auto;
    padding-right: 16px;
    padding-left: calc(12px + (var(--scope-level) - 1) * 13px);
  }
  .scope-node-status { grid-column: 4 / -1; justify-content: flex-start; }
  .scope-node-count { grid-column: 5; grid-row: 1; }
  .scope-action-bar { padding: 16px 18px; }
  .scope-action-bar__buttons { display: grid; grid-template-columns: 1fr; }
  .scope-action-bar__buttons .button { min-width: 0; padding-inline: 9px; }
}

@media (max-width: 680px) {
  .main-nav__item { padding-right: 10px; padding-left: 10px; font-size: 13px; }
  .hero--scope { min-height: auto; }
  .scope-summary-grid { grid-template-columns: 1fr 1fr; }
  .scope-summary-grid article:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .scope-publish-summary { grid-template-columns: 1fr; }
  .scope-publish-actions { align-items: stretch; flex-direction: column-reverse; padding-inline: 18px; }
  .scope-tree-row { grid-template-columns: 24px 24px minmax(0, 1fr) auto; }
  .scope-type-badge { display: none; }
  .scope-node-status { grid-column: 3 / -1; }
  .scope-node-count { grid-column: 4; }
}

@media (max-width: 430px) {
  .scope-summary-grid { grid-template-columns: 1fr; }
  .scope-summary-grid article:last-child:nth-child(odd) { grid-column: auto; }
  .scope-action-bar__buttons { grid-template-columns: 1fr; }
}

/* Keep late-defined dashboard and scope artwork from overriding the shared mobile rule. */
@media (max-width: 920px) {
  .hero__signal--dashboard,
  .hero__signal--scope {
    display: none;
  }
}
.button[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.62;
  pointer-events: none;
}

/* 问题门店明细分页（上传结果区） */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pagination__button {
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 560;
  cursor: pointer;
  transition: 160ms ease;
}

.pagination__button:hover:not(:disabled) {
  border-color: var(--accent-dim);
  color: var(--accent-dim);
}

.pagination__button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination__page {
  min-width: 34px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: 160ms ease;
}

.pagination__page:hover:not(:disabled) {
  border-color: var(--accent-dim);
  color: var(--accent-dim);
}

.pagination__page--active,
.pagination__page--active:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.pagination__page:disabled {
  cursor: wait;
  opacity: 0.55;
}

.pagination__info {
  font-size: 12px;
  color: var(--ink-muted);
}

/* 数据质量报告（上传结果区）：红色表示建议优先核对，黄色表示一般提醒；
   两种级别均不阻断结果生成或消息推送。 */
.data-quality-report {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.data-quality-report--error {
  border-color: rgba(217, 104, 90, 0.5);
  box-shadow: 0 10px 30px rgba(217, 104, 90, 0.1);
}

.data-quality-report--warning {
  border-color: rgba(201, 138, 39, 0.5);
  box-shadow: 0 10px 30px rgba(201, 138, 39, 0.1);
}

.data-quality-report__head {
  align-items: center;
  margin-bottom: 18px;
}

.data-quality-report__head h2 {
  margin-left: 0;
}

.data-quality-report__push-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  color: var(--tea-800);
  background: var(--tea-50);
  border: 1px solid var(--tea-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.data-quality-report__groups {
  display: grid;
  gap: 14px;
}

.data-quality-report__group {
  padding: 16px 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}

.data-quality-report__group--error {
  background: var(--coral-soft);
  border-color: rgba(217, 104, 90, 0.42);
}

.data-quality-report__group--warning {
  background: var(--amber-soft);
  border-color: rgba(201, 138, 39, 0.42);
}

.data-quality-report__group--info {
  background: var(--surface-soft);
  border-color: var(--line);
}

.data-quality-report__group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.data-quality-report__group-title {
  margin: 0;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.data-quality-report__group-description {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.data-quality-report__group--error .data-quality-report__group-title {
  color: var(--coral);
}

.data-quality-report__group--warning .data-quality-report__group-title {
  color: var(--amber);
}

.data-quality-report__group--info .data-quality-report__group-title {
  color: var(--ink-soft);
}

.data-quality-report__group-count {
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 620;
}

.data-quality-report__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.data-quality-report__item {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.data-quality-report__item-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.data-quality-report__category {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 9px;
  color: var(--tea-800);
  background: var(--tea-50);
  border: 1px solid var(--tea-100);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
}

.data-quality-report__count {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 9px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
}

.data-quality-report__message {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.data-quality-report__samples {
  margin-top: 8px;
  font-size: 12px;
}

.data-quality-report__samples summary {
  display: inline-block;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.data-quality-report__samples summary:hover {
  color: var(--accent-dim);
}

.data-quality-report__sample-list {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.6;
}

.data-quality-report__fix {
  margin: 8px 0 0;
  padding-top: 8px;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  font-size: 12px;
  line-height: 1.55;
}
