/* Shared palette, with paper and ink kept distinct from business status colors. */
:root {
  --theme-bg: #efece3;
  --theme-paper: #faf8f2;
  --theme-surface: rgb(252 250 245 / 78%);
  --theme-navigation: rgb(250 248 242 / 88%);
  --theme-ink: #14251f;
  --theme-muted: #5e6b63;
  --theme-line: #ddd7c8;
  --theme-wash: #eeebe1;
  --theme-brand: #1c584a;
  --theme-brand-hover: #12473a;
  --theme-on-brand: #fffdf6;
  --theme-selected: #dce9e1;
  --theme-clay: #b2694c;
  --theme-warning: #9d3b25;
  --theme-warning-bg: #f6e6de;
  --theme-warning-line: #e7bba8;
  --theme-amber: #79531d;
  --theme-amber-bg: #f4e9d4;
  --theme-shadow: rgb(30 81 67 / 34%);
  --theme-glow: rgb(131 168 139 / 22%);
  --theme-halo: rgb(195 153 102 / 12%);
  --art-moss: #235d4f;
  --art-clay: #b66f51;
  --art-sand: #e3d1ac;
  --art-gold: #d7a33d;
  --art-blend: multiply;
  --desk-ink: var(--theme-ink);
  --desk-muted: var(--theme-muted);
  --desk-line: var(--theme-line);
  --desk-surface: var(--theme-surface);
  --desk-wash: var(--theme-wash);
  --desk-moss: var(--theme-brand);
  --desk-ochre: var(--theme-clay);
  --desk-red: var(--theme-warning);
  --desk-red-wash: var(--theme-warning-bg);
  --operations-background: var(--theme-bg);
  --operations-border: var(--theme-line);
  --operations-ink: var(--theme-ink);
  --operations-muted: var(--theme-muted);
  --operations-nav: clamp(14rem,21vw,18rem);
  --work-ink: var(--theme-ink);
  --work-muted: var(--theme-muted);
  --work-line: var(--theme-line);
  --work-wash: var(--theme-wash);
  --work-paper: var(--theme-paper);
  --work-accent: var(--theme-brand);
  --work-focus: var(--theme-brand);
  --green: var(--theme-brand);
  --dark: var(--theme-brand-hover);
  --muted: var(--theme-muted);
  --ink: var(--theme-ink);
  --line: var(--theme-line);
  --soft: var(--theme-wash);
  --amber: var(--theme-amber);
  color: var(--theme-ink);
  background: var(--theme-bg);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --theme-bg: #0e1613;
  --theme-paper: #14201c;
  --theme-surface: rgb(20 32 28 / 88%);
  --theme-navigation: rgb(19 30 26 / 95%);
  --theme-ink: #e5eee8;
  --theme-muted: #9db0a6;
  --theme-line: #2b3b34;
  --theme-wash: #1c2a24;
  --theme-brand: #66c6a8;
  --theme-brand-hover: #85d6bd;
  --theme-on-brand: #10231b;
  --theme-selected: #1b362e;
  --theme-clay: #dc906f;
  --theme-warning: #ffa58d;
  --theme-warning-bg: #33221b;
  --theme-warning-line: #5a382b;
  --theme-amber: #e2b572;
  --theme-amber-bg: #30281b;
  --theme-shadow: rgb(96 194 161 / 31%);
  --theme-glow: rgb(57 111 92 / 18%);
  --theme-halo: rgb(164 96 58 / 10%);
  --art-moss: #67c2a8;
  --art-clay: #d59173;
  --art-sand: #655f45;
  --art-gold: #e5b752;
  --art-blend: screen;
}

body {
  background: radial-gradient(ellipse at 92% 0, var(--theme-glow), transparent 37rem),
    radial-gradient(ellipse at 12% 96%, var(--theme-halo), transparent 41rem) var(--theme-bg);
}
body:has(.dispatch-layout)::before {
  background: radial-gradient(ellipse at 15% 55%, var(--theme-halo), transparent 52%),
    radial-gradient(ellipse at 89% 85%, var(--theme-glow), transparent 53%);
}
.guide-header {
  background: var(--theme-navigation);
  border-color: var(--theme-line);
}
.guide-brand .brand-mark {
  color: var(--theme-on-brand);
  box-shadow: 0 10px 20px -8px var(--theme-shadow);
}
.guide-brand strong { color: var(--theme-ink); }
.commerce-nav button, .guide-header-tools .text-btn, .guide-header-tools summary { color: var(--theme-muted); }
.commerce-nav button:is(:hover,.active), .guide-header-tools .text-btn:hover {
  color: var(--theme-brand);
  background: var(--theme-selected);
}
.guide-header-tools .guide-help-entry, .guide-header-tools .theme-toggle[aria-pressed="true"] { color: var(--theme-brand); }
.guide-header-tools .theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  justify-self: start;
  white-space: nowrap;
}
.guide-header-tools .theme-toggle .icon { display: block; width: 1rem; height: 1rem; }
.guide-header-tools .more-menu > summary { color: var(--theme-muted); }
.guide-header-tools .more-menu > div { background: var(--theme-paper); border-color: var(--theme-line); }
.guide-header-tools .more-menu button { color: var(--theme-ink); }
.guide-header-tools .more-menu button:hover { background: var(--theme-selected); color: var(--theme-brand); }
.guide-footer { color: var(--theme-muted); }
.sidebar-toggle, .guide-header-tools .more-menu .nav-tools-icon, .team-entry > .icon { display: none; }

@media (min-width: 1050px) {
  .guide-brand-row { display: flex; align-items: center; justify-content: space-between; }
  .sidebar-toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--theme-line);
    border-radius: .65rem;
    color: var(--theme-brand);
    background: var(--theme-paper);
  }
  .sidebar-toggle .icon { transform: rotate(180deg); width: 1rem; height: 1rem; }
  .sidebar-toggle:hover { background: var(--theme-selected); border-color: var(--theme-brand); }
  .guide-header > div {
    grid-template-columns: minmax(0,1fr);
    justify-content: stretch;
    padding: 1.6rem 1.25rem .9rem;
    gap: 1.45rem;
  }
  .guide-brand { padding: 0 .65rem; gap: .68rem; }
  .guide-brand .brand-mark { width: 2.5rem; height: 2.5rem; border-radius: .75rem; }
  .guide-brand strong { font-size: 1.82rem; line-height: 1; }
  .commerce-nav { gap: .85rem; margin: 0; padding: .05rem 0 .3rem; }
  .commerce-nav .ops-nav-group { gap: 0; }
  .commerce-nav .ops-nav-group > span { padding: .24rem .75rem; letter-spacing: .09em; }
  .commerce-nav button { position: relative; min-height: 2.72rem; padding: .58rem .75rem; border-radius: .76rem; gap: .7rem; }
  .commerce-nav button.active { box-shadow: none; }
  .commerce-nav button.active::before {
    position: absolute;
    inset: 25% auto 25% 0;
    width: 3px;
    border-radius: 3px;
    background: var(--theme-brand);
    content: "";
  }
  .guide-header-tools { padding-inline: .38rem; border-color: var(--theme-line); }
  .guide-header-tools .text-btn, .guide-header-tools .more-menu > summary { min-height: 2.25rem; }
  .local-mode-status::before {
    content: "";
    display: inline-block;
    width: .38rem;
    height: .38rem;
    margin-right: .38rem;
    border-radius: 50%;
    background: #41a485;
    box-shadow: 0 0 0 3px rgb(65 164 133 / 22%);
    vertical-align: .08em;
  }
  .guide-page { padding-inline: clamp(1.5rem,2.8vw,3.4rem); }

  :root[data-sidebar-collapsed] { --operations-nav: 4.75rem; }
  [data-sidebar-collapsed] .guide-header > div { padding-inline: .6rem; gap: .65rem; }
  [data-sidebar-collapsed] .guide-brand-row { flex-direction: column; gap: .5rem; }
  [data-sidebar-collapsed] .guide-brand { padding: 0; }
  [data-sidebar-collapsed] .sidebar-toggle .icon { transform: none; }
  [data-sidebar-collapsed] .guide-header .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }
  [data-sidebar-collapsed] .commerce-nav :is(.ops-nav-group > span,.nav-draft-badge) { display: none; }
  [data-sidebar-collapsed] .commerce-nav .nav-draft-badge:not([hidden]) {
    display: block;
    position: absolute;
    inset: .6rem .78rem auto auto;
    width: .34rem;
    height: .34rem;
    padding: 0;
    border-radius: 50%;
    background: var(--theme-brand);
    font-size: 0;
  }
  [data-sidebar-collapsed] .commerce-nav { padding: .22rem .2rem; gap: .45rem; }
  [data-sidebar-collapsed] .commerce-nav button { justify-content: center; min-height: 2.38rem; padding: 0; }
  [data-sidebar-collapsed] .guide-header-tools { justify-items: stretch; padding-inline: .2rem; }
  [data-sidebar-collapsed] .local-mode-status { display: none; }
  [data-sidebar-collapsed] .guide-header-tools > :is(.text-btn,.btn,.team-entry),
  [data-sidebar-collapsed] .more-menu > summary {
    display: grid;
    position: relative;
    place-items: center;
    width: 100%;
    min-height: 2.25rem;
    padding: .35rem;
    border-radius: .55rem;
  }
  [data-sidebar-collapsed] .guide-header-tools .more-menu > :is(summary:hover,summary:focus-visible),
  [data-sidebar-collapsed] .team-entry:hover { color: var(--theme-brand); background: var(--theme-selected); }
  [data-sidebar-collapsed] .guide-header-tools :is(.text-btn,.btn,.team-entry) > .icon,
  [data-sidebar-collapsed] .guide-header-tools .more-menu .nav-tools-icon {
    display: block;
    width: 1rem;
    height: 1rem;
    margin: 0;
    transform: none;
  }
  [data-sidebar-collapsed] .more-menu > summary .nav-tools-arrow { display: none; }
  [data-sidebar-collapsed] .guide-header-tools .more-menu > div { left: calc(100% + .65rem); right: auto; bottom: 0; }
}
@media (max-width: 570px) {
  .guide-header-tools > .theme-toggle { min-width: 2.3rem; justify-content: center; }
  .guide-header-tools > .theme-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

.guide-page .btn.primary, #modal .btn.primary, .skip-link {
  color: var(--theme-on-brand);
  background: var(--theme-brand);
  border-color: var(--theme-brand);
}
.guide-page .btn.primary:hover:not(:disabled), #modal .btn.primary:hover:not(:disabled) {
  color: var(--theme-on-brand);
  background: var(--theme-brand-hover);
  border-color: var(--theme-brand-hover);
}
.guide-page .btn.secondary, #modal .btn.secondary {
  background: var(--theme-paper);
  border-color: var(--theme-line);
  color: var(--theme-brand);
}
.guide-page .btn.secondary:hover:not(:disabled), #modal .btn.secondary:hover:not(:disabled) {
  background: var(--theme-selected);
  border-color: var(--theme-brand);
}
:is(.guide-page,#modal) :is(.btn.subtle,.text-btn):not(.danger) { color: var(--theme-brand); }

.desk-hero {
  min-height: clamp(12.4rem,16.7vw,16rem);
  gap: .85rem 1.3rem;
  margin-bottom: 1.125rem;
  padding: clamp(1.2rem,2.8vw,2.5rem);
  border-color: var(--theme-line);
  border-radius: clamp(1.15rem,2.15vw,1.9rem);
  background: var(--theme-surface);
  box-shadow: none;
}
.desk-hero::after {
  inset: 0 0 0 29%;
  background:
    linear-gradient(var(--theme-line) 1px,transparent 1px),
    linear-gradient(90deg,var(--theme-line) 1px,transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to right,transparent,#000);
  opacity: .53;
}
.desk-hero-title, .desk-hero .inline-actions { z-index: 1; }
.desk-hero h1 {
  margin: .2rem 0 .1rem;
  font-size: clamp(3rem,7.15vw,6.45rem);
  font-weight: 900;
  line-height: .99;
  letter-spacing: -.03em;
  font-family: "Noto Sans SC","Microsoft YaHei UI","PingFang SC",system-ui,sans-serif;
}
.desk-hero time { font-size: .92rem; font-weight: 550; }
.desk-hero .inline-actions { gap: .75rem; margin: 0; }
.desk-hero .btn {
  border-radius: .85rem;
  min-height: 3.45rem;
  padding: .65rem 1.24rem;
  font-size: .94rem;
}
.guide-page .desk-hero .btn.secondary { background: var(--theme-wash); color: var(--theme-ink); }
.guide-page .desk-hero .btn.secondary:hover:not(:disabled) { background: var(--theme-paper); }
.desk-hero .btn.primary { box-shadow: 0 14px 24px -9px var(--theme-shadow); }
.desk-hero-art {
  position: absolute;
  z-index: -1;
  top: -7%;
  right: 2%;
  width: clamp(16rem,31vw,33rem);
  height: 100%;
  pointer-events: none;
  isolation: isolate;
}
.desk-hero-art::before {
  content: "";
  position: absolute;
  top: -28%;
  left: 8%;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed var(--theme-muted);
  opacity: .28;
}
.desk-hero-art span { position: absolute; display: block; border-radius: 50%; aspect-ratio: 1; }
.desk-hero-art span:nth-child(1) { width: 44%; top: 0; right: 24%; background: var(--art-moss); }
.desk-hero-art span:nth-child(2) { width: 33%; top: 2%; right: 9%; background: var(--art-clay); mix-blend-mode: var(--art-blend); }
.desk-hero-art span:nth-child(3) { width: 22%; top: 35%; right: 51%; background: var(--art-sand); mix-blend-mode: var(--art-blend); }
.desk-hero-art span:nth-child(4) { width: 1rem; top: 67%; right: 10%; background: var(--art-gold); }

.desk-metrics { gap: 1rem; margin-bottom: 1rem; }
.desk-metric {
  min-height: 11rem;
  align-content: center;
  gap: .35rem;
  padding: 1.25rem clamp(.8rem,1.7vw,1.5rem);
  border-radius: 1.4rem;
}
.desk-metric > span, .desk-metric > small { font-size: .9rem; }
.desk-metric > strong {
  margin-top: .55rem;
  font-size: clamp(2.25rem,4.15vw,3.75rem);
  font-family: Geist,"Segoe UI",Arial,sans-serif;
  font-weight: 680;
  letter-spacing: -.045em;
}
.desk-metric-money > strong { color: var(--theme-muted); font-size: clamp(1.65rem,2.85vw,2.75rem); }
.desk-metric-money > strong span { font-size: .58em; letter-spacing: 0; white-space: nowrap; }
.desk-metric > .desk-metric-arrow { top: 1.65rem; right: 1.15rem; color: var(--theme-muted); }
.desk-metric:hover { border-color: var(--theme-brand); }
.desk-metric.desk-alert, .ops-metrics > div.desk-alert { background: var(--theme-warning-bg); border-color: var(--theme-warning-line); }
.desk-metric.desk-alert :is(span,small) { color: var(--theme-warning); }
[data-ambient-light]::before { background: radial-gradient(ellipse 245px 155px at var(--light-x,50%) var(--light-y,50%),var(--theme-glow),transparent); }

.desk-columns { grid-template-columns: minmax(0,1.9fr) minmax(0,1fr); gap: 1rem; }
.desk-home .desk-panel { border-radius: 1.5rem; margin-bottom: 1rem; }
.desk-home .desk-panel > header { padding: 1.2rem clamp(1rem,1.8vw,1.65rem); min-height: 5.9rem; }
.desk-home .desk-panel h2 { font-size: 1.25rem; line-height: 1.3; font-weight: 720; }
.desk-home .desk-panel header p { font-size: .85rem; }
.desk-home .desk-panel header .btn { padding-inline: 0; text-underline-offset: .17em; text-decoration: underline; }
.desk-home .desk-panel header .btn:hover { text-decoration-thickness: 2px; }
.desk-chart-legend { padding: 1rem clamp(1rem,1.8vw,1.65rem) .48rem; gap: .9rem; font-size: .79rem; }
.desk-chart-legend span::before { width: .61rem; height: .61rem; }
.desk-column-frame { --plot-height: 15.625rem; gap: .6rem; margin: .45rem clamp(1rem,1.8vw,1.65rem) 1.35rem; }
.desk-column-axis { height: var(--plot-height); font-size: .75rem; }
.desk-chart-columns {
  position: relative;
  background: none;
}
.desk-chart-columns::before {
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--plot-height) + 1px);
  background: repeating-linear-gradient(to bottom,var(--theme-line) 0 1px,transparent 1px calc(var(--plot-height) / 4));
  mask-image: repeating-linear-gradient(to right,#000 0 2px,transparent 2px 4px);
  pointer-events: none;
  content: "";
}
.desk-chart-columns .desk-bar-row {
  position: relative;
  grid-template-rows: var(--plot-height) auto auto;
  gap: .44rem;
  padding-bottom: .35rem;
}
.desk-chart-columns .desk-bar { width: clamp(1rem,4.3vw,3.9rem); border-radius: .75rem .75rem .22rem .22rem; }
.desk-chart-columns .desk-bar i:last-child,
.desk-chart-columns .desk-bar i:has(+ i[hidden]) { border-radius: .75rem .75rem 0 0; }
.desk-bar i { flex-shrink: 0; }
.desk-bar i[hidden] { display: none; }
.desk-chart-columns .desk-bar-row strong { margin-top: .3rem; font-size: .86rem; }
.desk-chart-columns .desk-bar-row small { font-size: .78rem; }
.desk-stock .desk-chart { gap: .65rem; padding: .4rem clamp(1rem,1.8vw,1.65rem) 1.4rem; }
.desk-stock .desk-bar-row {
  grid-template-columns: minmax(0,1fr) auto;
  gap: .35rem .65rem;
  padding: .22rem 0;
  align-items: baseline;
}
.desk-stock .desk-bar { grid-column: 1 / -1; grid-row: 2; background: color-mix(in srgb,var(--theme-ink) 8%,transparent); border-radius: 1rem; }
.desk-stock .desk-bar-row strong { font-size: .88rem; line-height: 1.42; }
.desk-stock .desk-bar-row small { color: var(--theme-muted); font-size: .81rem; }
.desk-empty { padding: 1.5rem clamp(1rem,1.8vw,1.65rem); }
.desk-agenda-list li + li { border-color: var(--theme-line); }
.desk-agenda-row:hover, .desk-agenda-row:focus-visible { background: var(--theme-selected); }
.desk-state[data-priority="today"] { background: var(--theme-amber-bg); color: var(--theme-amber); }

@media (max-width: 1190px) {
  .desk-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .desk-metric { min-height: 8.5rem; }
  .desk-hero h1 { font-size: clamp(2.75rem,7.2vw,5.2rem); }
}
@media (max-width: 800px) {
  .desk-hero-art { opacity: .64; right: -3%; width: 18rem; }
  .desk-hero .btn { min-height: 2.8rem; padding: .5rem .83rem; }
  .desk-columns { grid-template-columns: minmax(0,1fr); gap: 0; }
  .desk-column-frame { --plot-height: 12rem; }
}
@media (max-width: 419px) {
  .desk-hero { min-height: 10.5rem; padding: 1rem; }
  .desk-hero .inline-actions { gap: .45rem; }
  .desk-hero .btn { font-size: .8rem; }
  .desk-hero-art { width: 13rem; right: -12%; opacity: .43; }
  .desk-metrics { gap: .55rem; }
  .desk-metric { padding: .7rem; min-height: 7.3rem; border-radius: 1rem; }
  .desk-metric > span, .desk-metric > small { font-size: .75rem; }
  .desk-stock .desk-bar-row small { font-size: .74rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .desk-hero-art { animation: desk-art-arrive .6s var(--desk-ease) both; }
  .desk-hero .btn:hover:not(:disabled) { transform: translateY(-2px); }
}
@keyframes desk-art-arrive {
  from { opacity: 0; transform: translate(12px,-7px) scale(.96); }
}

/* Operational pages use the same colors, with solid surfaces for fields and dialogs. */
.guide-page table thead { background: var(--theme-wash); }
.guide-page table th, .guide-page table td small { color: var(--theme-muted); }
.guide-page table td { color: var(--theme-ink); }
.guide-page .dispatch-weekday { background: var(--theme-wash); }
.dispatch-grid .dispatch-day:not(.has-batches):not([aria-pressed="true"]) { background: var(--theme-paper); }
.dispatch-grid .dispatch-day.outside:not(.has-batches):not([aria-pressed="true"]) { background: var(--theme-wash); color: var(--theme-muted); }
.dispatch-grid .dispatch-day.has-batches { background: var(--theme-warning-bg); }
.dispatch-grid .dispatch-day[aria-pressed="true"] { background: var(--theme-selected); }
.dispatch-day[aria-current="date"] .dispatch-day-number { color: var(--theme-on-brand); }
.dispatch-month-picker select, .dispatch-month-picker select:hover { background: var(--theme-paper); border-color: var(--theme-line); }
.process-steps li b { background: var(--theme-wash); color: var(--theme-muted); }
.process-steps li[aria-current="step"] b { color: var(--theme-on-brand); }

:root[data-theme="dark"] :is(
  .guide-panel,.guide-focus,.guide-disclosure,.task-card,.commerce-step,.catalog-card,.factory-card,.customer-profile,
  .sale-record,.sale-item,.stock-workspace,.fulfillment-panel,.dispatch-empty,.ops-metrics > div:not(.desk-alert),
  .ops-products li,.side-product,.sale-more-options > div,.dispatch-filter-more > div,.shipping-report-table tbody tr,
  .handbook-article,.handbook-toc,.entry-card,.setting-card,.records-panel,.orders-card,.import-preview,
  .shipping-report-table tbody,.commerce-onboarding,
  .guide-home-return,.cloud-auth-card,#modal,#modal .modal-heading,#modal .modal-footer
) {
  color: var(--theme-ink);
  background: var(--theme-paper);
  border-color: var(--theme-line);
}
:root[data-theme="dark"] :is(
  .task-context,.sample-banner,.notice:not(.danger),.guide-hint,.trade-entry-banner,.ops-products,.ops-form-context,
  .stock-purchase,.stock-line-preview,.stock-allocation,.allocation-card,.shipping-report-actions,.pdf-original,
  .purchase-source-lines :is(thead,tfoot),.guide-rail b,.product-photo,.shipping-payment-choices label,
  .handbook-example,.handbook-done,.dispatch-events > span
) {
  color: var(--theme-muted);
  background: var(--theme-wash);
  border-color: var(--theme-line);
}
:root[data-theme="dark"] :is(.notice.danger,.tag.danger,.dispatch-events > span[data-kind="pending"],.danger-outline) {
  color: var(--theme-warning);
  background: var(--theme-warning-bg);
  border-color: var(--theme-warning-line);
}
:root[data-theme="dark"] :is(.form-note,.field > span,.field > label,.ops-report-toolbar label,.guide-footnote,.ops-form-context small) {
  color: var(--theme-muted);
}
:root[data-theme="dark"] :is(.guide-page,#modal,.cloud-auth-card) :is(input:not([type="checkbox"],[type="radio"],[type="file"]),textarea,select) {
  color: var(--theme-ink);
  background: var(--theme-paper);
  border-color: var(--theme-line);
}
:root[data-theme="dark"] :is(input,textarea)::placeholder { color: var(--theme-muted); }
:root[data-theme="dark"] :is(.side-product:hover,.side-product:focus-visible,.shipping-payment-choices label:has(:checked)) {
  background: var(--theme-selected);
}
:root[data-theme="dark"] :is(.guide-page,#modal) :is(h1,h2,h3,td strong) {
  color: var(--theme-ink);
}
:root[data-theme="dark"] :is(.stock-line-metric strong,.catalog-meta b,.task-card-stats b,.handbook-steps strong) { color: var(--theme-ink); }
:root[data-theme="dark"] :is(.commerce-step h2 > span,.nav-draft-badge,.side-product-add) {
  color: var(--theme-brand);
  background: var(--theme-selected);
}
:root[data-theme="dark"] :is(
  .commerce-onboarding p,.stock-line-metric,.catalog-search > span,.catalog-identifiers,.catalog-meta,.catalog-info > small,
  .customer-profile p,.customer-chart-note,.task-card-stats,.setting-card p,.handbook-heading > p,.handbook-chapter > :is(span,p),
  .handbook-toc > p span,.handbook-toc > button,.handbook-steps p,.handbook-example p,.handbook-done p,.handbook-fields p
) { color: var(--theme-muted); }
:root[data-theme="dark"] :is(.handbook-eyebrow,.handbook-toc > button[aria-current]) { color: var(--theme-brand); }
:root[data-theme="dark"] .handbook-steps li::before { background: var(--theme-selected); color: var(--theme-brand); }
:root[data-theme="dark"] :is(.handbook-example strong,.handbook-done strong) { color: var(--theme-ink); }
:root[data-theme="dark"] :is(.handbook-note,.desk-attention .btn) {
  background: var(--theme-amber-bg);
  color: var(--theme-amber);
  border-color: var(--theme-line);
}
:root[data-theme="dark"] .handbook-note :is(strong,p) { color: var(--theme-amber); }
:root[data-theme="dark"] .danger-text { color: var(--theme-warning); }
:root[data-theme="dark"] :is(.ops-table tbody tr:hover,.handbook-toc > button:is(:hover,[aria-current])) { background: var(--theme-selected); }
