:root {
  --page-bg: #f5efe5;
  --page-bg-alt: #fff9f2;
  --shell: rgba(255, 252, 247, 0.9);
  --shell-strong: #fffaf4;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-2: rgba(255, 255, 255, 0.64);
  --line: rgba(72, 54, 34, 0.12);
  --line-strong: rgba(72, 54, 34, 0.18);
  --ink: #23170b;
  --ink-soft: #4e3c2d;
  --muted: #786759;
  --blue: #4d93ff;
  --blue-soft: rgba(77, 147, 255, 0.12);
  --green: #18b979;
  --cyan: #18bbc7;
  --orange: #f89a2c;
  --violet: #8e68ef;
  --pink: #f45bb4;
  --amber: #e6b434;
  --danger: #ef5f65;
  --shadow-xl: 0 22px 60px rgba(55, 35, 16, 0.12);
  --shadow-lg: 0 14px 34px rgba(55, 35, 16, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

body[data-theme="dark"] {
  --page-bg: #07101b;
  --page-bg-alt: #0a1524;
  --shell: rgba(14, 25, 41, 0.94);
  --shell-strong: #111d31;
  --panel: rgba(18, 31, 49, 0.94);
  --panel-2: rgba(26, 42, 64, 0.94);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #eef4ff;
  --ink-soft: #cfe1ff;
  --muted: #96abc7;
  --shadow-xl: 0 22px 64px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(77, 147, 255, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(24, 187, 199, 0.12), transparent 22%),
    linear-gradient(180deg, var(--page-bg-alt) 0%, var(--page-bg) 100%);
  transition: background 220ms ease, color 220ms ease;
}

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

code,
pre {
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.app-shell {
  width: min(calc(100% - 28px), 1600px);
  margin: 0 auto;
  padding: 20px 0 32px;
}

.topbar,
.shell-hero,
.shell-side,
.shell-main,
.surface-card,
.copilot-panel,
.toast,
.drawer-card,
.table-panel,
.command-surface,
.compact-card,
.detail-section,
.module-list__row,
.timeline-item,
.scenario-card,
.stat-card,
.mini-card,
.signal-row,
.note-card,
.customer-card,
.customer-list__row,
.playbook-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--shell);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(206, 94, 48, 0.1);
  color: #d45d2b;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-theme="dark"] .brand-mark {
  background: rgba(110, 168, 255, 0.16);
  color: #c5dcff;
}

.brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.page-switch,
.theme-switch {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-switch__btn,
.theme-btn,
.ghost-btn,
.chip-btn,
.module-tab,
.action-btn,
.secondary-btn,
.icon-btn,
.page-pill {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.page-switch__btn:hover,
.theme-btn:hover,
.ghost-btn:hover,
.chip-btn:hover,
.module-tab:hover,
.action-btn:hover,
.secondary-btn:hover,
.icon-btn:hover,
.page-pill:hover {
  transform: translateY(-1px);
}

.page-switch__btn.is-active,
.theme-btn.is-active,
.module-tab.is-active,
.chip-btn.is-active,
.page-pill.is-active {
  border-color: rgba(77, 147, 255, 0.3);
  background: var(--blue-soft);
  color: var(--ink);
  font-weight: 700;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ghost-btn__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  box-shadow: 0 0 0 6px rgba(142, 104, 239, 0.12);
}

.shell-hero {
  padding: 22px 24px;
  margin-bottom: 16px;
}

.shell-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(77, 147, 255, 0.1);
  color: #3567d1;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker--green {
  background: rgba(24, 185, 121, 0.1);
  color: var(--green);
}

.kicker--violet {
  background: rgba(142, 104, 239, 0.12);
  color: var(--violet);
}

.shell-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(2.25rem, 4.5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.shell-hero p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.shell-hero__aside {
  display: grid;
  gap: 12px;
}

.compact-card,
.mini-card,
.stat-card,
.scenario-card,
.note-card,
.playbook-card {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.compact-card span,
.mini-card span,
.stat-card span,
.muted-text,
.timeline-item small,
.signal-row small,
.customer-list__row small {
  color: var(--muted);
}

.compact-card strong,
.mini-card strong,
.stat-card strong,
.customer-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.36rem;
}

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

.shell-side,
.shell-main {
  padding: 18px;
}

.shell-side {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.side-block {
  display: grid;
  gap: 12px;
}

.side-block__head,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.side-block__head h3,
.section-head h2,
.section-head h3 {
  margin: 0;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.side-block__head p,
.section-head p,
.section-copy {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 0.92rem;
}

.scenario-list,
.module-status-list,
.playbook-list,
.signal-list,
.timeline-list,
.note-list {
  display: grid;
  gap: 10px;
}

.scenario-card {
  cursor: pointer;
  width: 100%;
  text-align: left;
  appearance: none;
}

.scenario-card.is-active {
  border-color: rgba(77, 147, 255, 0.32);
  background: var(--blue-soft);
}

.scenario-card strong,
.signal-row strong,
.timeline-item strong,
.playbook-card strong {
  display: block;
  font-size: 1rem;
}

.scenario-card p,
.signal-row p,
.timeline-item p,
.note-card p,
.playbook-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 0.92rem;
}

.tag-row,
.badge-row,
.inline-actions,
.scenario-meta,
.module-tabs,
.toolbar-row,
.summary-metrics,
.detail-actions,
.copilot-prompts,
.customer-segments,
.command-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.tag,
.segment-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(77, 147, 255, 0.12);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.segment-chip {
  appearance: none;
  border: 1px solid var(--line-strong);
  cursor: pointer;
}

.segment-chip.is-active {
  border-color: rgba(77, 147, 255, 0.32);
  background: var(--blue-soft);
}

.badge.green,
.tag.green,
.segment-chip.green {
  background: rgba(24, 185, 121, 0.12);
  color: var(--green);
}

.badge.amber,
.tag.amber,
.segment-chip.amber {
  background: rgba(230, 180, 52, 0.14);
  color: #9a6e00;
}

.badge.violet,
.tag.violet,
.segment-chip.violet {
  background: rgba(142, 104, 239, 0.12);
  color: var(--violet);
}

.badge.danger,
.tag.danger,
.segment-chip.danger {
  background: rgba(239, 95, 101, 0.12);
  color: var(--danger);
}

.hero-kpis,
.overview-grid,
.overview-subgrid,
.workspace-grid,
.customers-grid,
.command-grid,
.command-subgrid,
.split-grid {
  display: grid;
  gap: 16px;
}

.hero-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.overview-grid {
  grid-template-columns: 1.25fr 0.95fr;
}

.overview-subgrid,
.split-grid,
.command-subgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-grid {
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.15fr) minmax(320px, 0.8fr);
}

.customers-grid {
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
}

.command-grid {
  grid-template-columns: minmax(340px, 0.88fr) minmax(360px, 0.92fr) minmax(360px, 1fr);
}

.surface-card,
.drawer-card,
.table-panel,
.detail-section {
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--panel);
}

.surface-card--dark,
.command-surface {
  padding: 18px;
  background: linear-gradient(180deg, rgba(13, 24, 43, 0.96) 0%, rgba(10, 18, 31, 0.98) 100%);
  color: #edf4ff;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.surface-card--dark p,
.surface-card--dark span,
.surface-card--dark small,
.surface-card--dark .section-copy,
.command-surface p,
.command-surface span,
.command-surface small {
  color: #9bb0cc;
}

.surface-card--dark .badge,
.command-surface .badge {
  color: #eaf4ff;
}

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

.stat-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.delta {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(24, 185, 121, 0.12);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
}

.delta.down {
  background: rgba(239, 95, 101, 0.12);
  color: var(--danger);
}

.sparkline {
  width: 100%;
  height: 44px;
  margin-top: 12px;
}

.opportunity-list,
.priority-list,
.customer-list,
.module-list,
.resource-grid,
.sync-module-list {
  display: grid;
  gap: 10px;
}

.module-tabs {
  margin-top: 14px;
}

.toolbar-row {
  margin-top: 14px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
}

.textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

body[data-theme="dark"] .input,
body[data-theme="dark"] .select,
body[data-theme="dark"] .textarea {
  background: rgba(17, 29, 49, 0.94);
}

.module-list {
  max-height: 880px;
  overflow: auto;
  padding-right: 4px;
}

.module-list__row {
  padding: 14px 16px;
  border-left: 4px solid transparent;
  border-radius: var(--radius-lg);
  background: var(--panel-2);
  cursor: pointer;
  width: 100%;
  text-align: left;
  appearance: none;
}

.module-list__row.is-active {
  border-left-color: var(--blue);
  background: rgba(77, 147, 255, 0.12);
}

.module-list__head,
.customer-list__head,
.resource-row,
.signal-row__head,
.timeline-item__head,
.detail-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.module-list__row strong,
.customer-list__row strong {
  display: block;
  font-size: 1.02rem;
}

.module-list__row p,
.customer-list__row p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.detail-topline h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.detail-topline__amount {
  text-align: right;
}

.detail-topline__amount strong {
  display: block;
  font-size: clamp(2rem, 3vw, 3.5rem);
}

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

.field-list {
  display: grid;
}

.field-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.field-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.field-row dt {
  color: var(--muted);
}

.field-row dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

.timeline-list {
  margin-top: 14px;
}

.timeline-item,
.signal-row,
.resource-row,
.customer-list__row,
.playbook-card {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.signal-row,
.customer-list__row {
  width: 100%;
  text-align: left;
  appearance: none;
  cursor: pointer;
}

.signal-row.is-active,
.customer-list__row.is-active {
  border-color: rgba(77, 147, 255, 0.34);
  background: rgba(77, 147, 255, 0.12);
}

.resource-row__meta {
  display: grid;
  gap: 6px;
}

.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress__bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 220ms ease;
}

.raw-box {
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(10, 18, 31, 0.05);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.58;
}

body[data-theme="dark"] .raw-box {
  background: rgba(7, 16, 27, 0.82);
  color: #dce9ff;
}

.copilot-drawer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

.copilot-drawer.is-open {
  pointer-events: auto;
}

.copilot-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 27, 0.46);
  opacity: 0;
  transition: opacity 180ms ease;
}

.copilot-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  padding: 20px;
  overflow: auto;
  transform: translateX(24px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.copilot-drawer.is-open .copilot-backdrop,
.copilot-drawer.is-open .copilot-panel {
  opacity: 1;
  transform: translateX(0);
}

.copilot-head h2 {
  margin: 10px 0 6px;
  font-size: 1.7rem;
}

.copilot-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.icon-btn {
  width: 40px;
  min-width: 40px;
  padding: 0;
  font-size: 1.4rem;
}

.copilot-prompts {
  margin-top: 18px;
}

.copilot-chat {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.chat-bubble {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.chat-bubble.user {
  background: rgba(77, 147, 255, 0.12);
}

.chat-bubble.assistant {
  background: rgba(142, 104, 239, 0.1);
}

.chat-bubble strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.chat-bubble p {
  margin: 0;
  color: var(--ink);
  line-height: 1.66;
  white-space: pre-wrap;
}

.copilot-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.copilot-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.primary-btn,
.action-btn.primary {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(77, 147, 255, 0.28);
  background: linear-gradient(135deg, rgba(77, 147, 255, 0.22), rgba(24, 187, 199, 0.16));
  color: var(--ink);
  cursor: pointer;
}

.primary-btn:disabled,
.action-btn.primary:disabled {
  opacity: 0.56;
  cursor: progress;
}

.secondary-btn,
.action-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  cursor: pointer;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
  z-index: 50;
}

.toast {
  min-width: 260px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--shell-strong);
}

.toast strong {
  display: block;
  font-size: 0.95rem;
}

.toast p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.54;
  font-size: 0.9rem;
}

.empty-state {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--panel-2);
  color: var(--muted);
  text-align: center;
}

.insight-box {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.insight-box__item {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
}

.insight-box__item strong {
  display: block;
  font-size: 0.96rem;
}

.insight-box__item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

@media (max-width: 1280px) {
  .shell-grid,
  .overview-grid,
  .workspace-grid,
  .customers-grid,
  .command-grid,
  .hero-kpis,
  .metric-grid,
  .overview-subgrid,
  .split-grid,
  .command-subgrid {
    grid-template-columns: 1fr;
  }

  .shell-side {
    position: static;
  }
}

@media (max-width: 860px) {
  .app-shell {
    width: min(calc(100% - 16px), 1600px);
    padding-top: 12px;
  }

  .topbar,
  .shell-hero__grid,
  .topbar-actions,
  .detail-topline,
  .copilot-form__actions,
  .side-block__head,
  .section-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .detail-topline__amount {
    text-align: left;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .field-row dd {
    text-align: left;
  }
}

/* ── Text overflow fixes ─────────────────────────────────────── */
.field-row dd {
  word-break: break-word;
  overflow-wrap: break-word;
}
.detail-topline h2 {
  word-break: break-word;
  min-width: 0;
}
.timeline-item__head {
  min-width: 0;
}
.timeline-item__head strong {
  word-break: break-word;
  min-width: 0;
  flex: 1 1 0;
}

/* ── Light-mode overrides for permanently-dark surfaces ─────── */
body[data-theme="light"] .surface-card--dark,
body[data-theme="light"] .command-surface {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-lg);
}
body[data-theme="light"] .surface-card--dark p,
body[data-theme="light"] .surface-card--dark span,
body[data-theme="light"] .surface-card--dark small,
body[data-theme="light"] .surface-card--dark .section-copy,
body[data-theme="light"] .command-surface p,
body[data-theme="light"] .command-surface span,
body[data-theme="light"] .command-surface small,
body[data-theme="light"] .command-surface .section-copy {
  color: var(--muted);
}
body[data-theme="light"] .surface-card--dark h2,
body[data-theme="light"] .surface-card--dark h3,
body[data-theme="light"] .surface-card--dark strong,
body[data-theme="light"] .command-surface h2,
body[data-theme="light"] .command-surface h3,
body[data-theme="light"] .command-surface strong {
  color: var(--ink);
}
body[data-theme="light"] .command-surface .mini-card {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--line);
}
body[data-theme="light"] .command-surface .mini-card strong { color: var(--ink); }
body[data-theme="light"] .command-surface .mini-card span,
body[data-theme="light"] .command-surface .mini-card p { color: var(--muted); }
body[data-theme="light"] .command-surface .signal-row {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--line);
  color: var(--ink);
}
body[data-theme="light"] .command-surface .signal-row:hover {
  background: rgba(0, 0, 0, 0.06);
}
body[data-theme="light"] .command-surface .signal-row strong { color: var(--ink); }
body[data-theme="light"] .command-surface .signal-row small { color: var(--muted); }
body[data-theme="light"] .command-surface .resource-row { border-color: var(--line); }
body[data-theme="light"] .command-surface .resource-row strong,
body[data-theme="light"] .command-surface .resource-row p { color: var(--ink); }
body[data-theme="light"] .command-surface .progress {
  background: rgba(0, 0, 0, 0.1);
}
body[data-theme="light"] .command-surface .page-pill {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--line);
  color: var(--ink);
}
body[data-theme="light"] .command-surface .page-pill.is-active {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.4);
  color: var(--accent);
}
body[data-theme="light"] .command-surface .input {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
body[data-theme="light"] .command-surface .timeline-item { border-color: var(--line); }
body[data-theme="light"] .command-surface .timeline-item__head strong,
body[data-theme="light"] .command-surface .timeline-item p { color: var(--ink); }
body[data-theme="light"] .command-surface .raw-box {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
  border-color: var(--line);
}
body[data-theme="light"] .command-surface .detail-section { border-color: var(--line); }
body[data-theme="light"] .command-surface .field-row dt { color: var(--muted); }
body[data-theme="light"] .command-surface .field-row dd { color: var(--ink); }
