/* ═══════════════════════════════════════════════════════════════════════════
   ACADEMY MANAGEMENT SYSTEM — Theme Modes (Task-416)
   ClickTake Technologies | clicktaketech.com
═══════════════════════════════════════════════════════════════════════════
   THE LIGHT-MODE RUNG — additive by construction:
   • design-system.css keeps NOT ONE MOVED BYTE (the born dark identity —
     the token census's home stays exactly as it was). The light mode is a
     SEPARATE sheet that remaps the SAME token names under
     [data-theme="light"], so every component that already speaks
     var(--bg-900), var(--text-primary), var(--border-subtle), … dresses
     light with no page-code change.
   • The brand voices are NOT remapped (--color-primary family, the
     accents, the role colors): tenant branding (public-branding.js)
     keeps winning in BOTH modes — one brand, two skies.
   • The early-apply voice rides /js/theme-mode.js: the stored choice
     (localStorage "ams_theme_mode") wins, else the OS
     prefers-color-scheme answers, else the born dark — resolved BEFORE
     the first paint (the FOUC guard).
   • The birth bytes of the light family (the pale surfaces, the navy
     inks) ride HERE, under the Task-416 marker, so the light family's
     estate is one honest addressable home.
═══════════════════════════════════════════════════════════════════════════ */

/* Task-416: THE INK TRIPLET'S HOME — the companion -rgb voice (the
   amber/indigo/violet companion pattern): the born navy #0A0B1E's own
   triplet, so the light family's washes ride the var() form (the
   fallback stays VERBATIM — the t346 law: the form migrates, the pixel
   does not). */
:root {
  --bg-ink-rgb: 10, 11, 30;
  /* Task-417: THE CHROME TRIPLET — the nav/mobile-menu/input/modal chrome
     surfaces' own -rgb voice. Dark mode answers the born navy byte (the
     pixel is identical); LIGHT mode walks the chrome to white so the nav's
     token-voiced inks (which flip to dark ink) never sit on a hardcoded
     dark navy sheet — the black-on-black menu the census caught. The INK
     triplet above keeps its navy in BOTH modes (it is the ink identity,
     not a surface). */
  --bg-chrome-rgb: 10, 11, 30;
}

/* ─── The light sky — the token remap ──────────────────────────────────────
   THE SPECIFICITY LAW (the live-QA catch): the remap rides
   html[data-theme="light"] — specificity (0,1,1) — so it outranks the ds's
   `:root` (0,1,0) by STRUCTURE, never by load-order luck (the Task-330
   determinism doctrine): a page may include the sheets in any order and the
   light sky still answers. */
html[data-theme="light"] {
  color-scheme: light;

  /* the surface family flips — the deep navy walks to the pale day */
  --bg-900: #F5F6FA;
  --bg-800: #FFFFFF;
  --bg-700: #F1F3F9;
  --bg-600: #E9ECF4;
  --bg-550: #F3F5FA;
  --bg-500: #E3E7F0;
  --bg-400: #D9DDE9;
  --bg-300: #CBD0DF;
  --bg-glass: rgba(var(--bg-ink-rgb), 0.04);
  --bg-glass-hover: rgba(var(--bg-ink-rgb), 0.08);

  /* the ink family flips — the white ink walks to the born navy ink */
  --text-primary: #1A1B30;
  --text-secondary: rgba(var(--bg-ink-rgb), 0.78);
  --text-muted: rgba(var(--bg-ink-rgb), 0.56);
  --text-disabled: rgba(var(--bg-ink-rgb), 0.28);
  --text-soft: #101226;

  /* the walls' family flips — the white walls walk to navy-tinted walls */
  --border-subtle: rgba(var(--bg-ink-rgb), 0.08);
  --border-medium: rgba(var(--bg-ink-rgb), 0.14);
  --border-strong: rgba(var(--bg-ink-rgb), 0.24);

  /* Task-417: the chrome family walks to white — the nav, the mobile menu,
     the form inputs, the modal chrome ride rgba(var(--bg-chrome-rgb), X)
     and become pale glass in the day. */
  --bg-chrome-rgb: 255, 255, 255;
}

/* ─── The toggle's own dress (the button theme-mode.js injects) ────────────
   The floating sun/moon seat: bottom-LEFT (the growth-chat widget owns the
   bottom-right rung), 44px (the touch law), the token voices only. */
.ams-theme-toggle {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid var(--border-medium);
  background: var(--bg-800);
  color: var(--text-primary);
  cursor: pointer;
  z-index: var(--z-sidebar, 200);
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-fast, 0.15s ease),
              transform var(--transition-fast, 0.15s ease);
}
.ams-theme-toggle:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}
.ams-theme-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.ams-theme-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}
.ams-theme-toggle .ams-theme-icon-moon { display: none; }
[data-theme="light"] .ams-theme-toggle .ams-theme-icon-sun { display: none; }
[data-theme="light"] .ams-theme-toggle .ams-theme-icon-moon { display: block; }

/* the stilling: the reduced-motion rider keeps its breath (the family law) */
@media (prefers-reduced-motion: reduce) {
  .ams-theme-toggle { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Task-418: THE LIGHT-MODE INK LAWS — the white-on-white cure
══════════════════════════════════════════════════════════════════════════
   THE CENSUS: the white-ink estate audited wide (scripts/
   census-lightmode-contrast.js — every sheet, every inline <style> block,
   every style="" attribute, every JS-injected string; 239 unique
   signatures on the post-fix re-run) + the SECOND census (the
   continuation walk — scripts/census-body-hardbg.py): every page whose
   body sky is a hardcoded non-var literal, because the 418.a body-ink
   flip interacts with exactly those skies. The born-dark estate hardcoded
   white ink on token surfaces; the light sky flips those surfaces pale
   and the hardcoded ink stays white — the invisible desk.

   THE LAW (four verdicts, no exceptions):
   1. Ink riding the TOKEN voices → auto-flips with the sky. Never touched.
   2. Literal white ink on TOKEN/GLASS surfaces → re-voiced to the ink
      tokens HERE (the t346 law: the born dark sheet keeps NOT ONE MOVED
      BYTE — the cure rides this additive sheet only).
   3a. Literal white ink on SATURATED ACCENTS (buttons, badges, gradients,
       avatars — the brand voices, never remapped) → correct in BOTH skies.
       Never touched.
   3b. Token ink on HARDCODED-DARK surfaces (dialogs, the 404 sky, the
       whole fee desk) → the dark island keeps its born dress and its ink
       is pinned to the literal light, so dark never wears dark ink.
   4. INLINE style="" inks (the strongest author voice — only !important
       beats them): the #status-sub cure rides !important (418.l); the
       fee desk's ~55 inline whites keep their born bytes inside the
       418.m island (the born-dark verdict makes every one readable).

   THE SPECIFICITY: every override rides the html[data-theme="light"]
   (0,1,1) prefix so it outranks the page <style> blocks that load after
   this sheet — by STRUCTURE, never by order luck (the Task-330 doctrine).
   ───────────────────────────────────────────────────────────────────────── */

/* ── 418.a THE BODY INK — pages that re-declared body color:#fff over the
      token (checkout doors): the sky's ink answers ── */
html[data-theme="light"] body { color: var(--text-primary); }

/* ── 418.b THE CHROME — sidebar/topbar ride --bg-800 (white in the day):
      the born rgba(255,255,255,X) nav inks walk to the navy ink family ── */
html[data-theme="light"] .sidebar-section-label { color: var(--text-muted); }
html[data-theme="light"] .nav-item { color: var(--text-secondary); }
html[data-theme="light"] .nav-item:hover { color: var(--text-primary); }
html[data-theme="light"] .nav-item.active,
html[data-theme="light"] .nav-item.sa-nav-active { color: var(--text-primary); }
html[data-theme="light"] .currency-select {
  background-color: rgba(var(--bg-ink-rgb), 0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' viewBox='0 0 10 6'%3E%3Cpath stroke='rgba(10,11,30,0.6)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  border-color: var(--border-medium);
  color: var(--text-primary);
}

/* ── 418.c THE KPI FAMILY — the variant cards (green/purple/red/teal/blue)
      keep their dark gradients and their white ink; the bare .kpi-card
      rides the pale sky and speaks navy ── */
html[data-theme="light"] .kpi-card:not(.kpi-green):not(.kpi-purple):not(.kpi-red):not(.kpi-teal):not(.kpi-blue) { color: var(--text-primary); }
html[data-theme="light"] .kpi-card:not(.kpi-green):not(.kpi-purple):not(.kpi-red):not(.kpi-teal):not(.kpi-blue) .kpi-label { color: var(--text-muted); }
html[data-theme="light"] .kpi-card:not(.kpi-green):not(.kpi-purple):not(.kpi-red):not(.kpi-teal):not(.kpi-blue) .kpi-sub { color: var(--text-muted); }

/* ── 418.d THE SEARCH-CLEAR FAMILY — the primary-tinted hover wash turns
      pale lavender in the day; the white ink walks to the navy ink ── */
html[data-theme="light"] .tnt-search-clear:hover,
html[data-theme="light"] .cls-search-clear:hover,
html[data-theme="light"] .dep-search-clear:hover,
html[data-theme="light"] .crm-search-clear:hover,
html[data-theme="light"] .stu-search-clear:hover,
html[data-theme="light"] .stu-class-clear:hover,
html[data-theme="light"] .sub-search-clear:hover,
html[data-theme="light"] .tea-search-clear:hover,
html[data-theme="light"] .act-search-clear:hover,
html[data-theme="light"] .log-search-clear:hover,
html[data-theme="light"] .wor-search-clear:hover,
html[data-theme="light"] .bil-search-clear:hover,
html[data-theme="light"] .blg-search-clear:hover,
html[data-theme="light"] .pln-search-clear:hover,
html[data-theme="light"] .bk-search-clear:hover { color: var(--text-primary); }

/* ── 418.e THE DASHBOARD DESKS — ann desk / attendance heat-map / payment
      trail / word walls (student + teacher + worker; the t/w prefixes are
      the same grammar's per-role voices). The band mapping: born white
      ≥0.6 → text-secondary, 0.36–0.59 → text-muted, ≤0.35 → text-disabled. ── */
html[data-theme="light"] .ann-meta,
html[data-theme="light"] .ann-desk-foot,
html[data-theme="light"] .wl-row,
html[data-theme="light"] .wl-key b,
html[data-theme="light"] .pay-ref,
html[data-theme="light"] .pay-foot,
html[data-theme="light"] .att-dow,
html[data-theme="light"] .tmonth-dow,
html[data-theme="light"] .wmonth-dow,
html[data-theme="light"] .att-cell .d,
html[data-theme="light"] .tmonth-cell .d,
html[data-theme="light"] .wmonth-cell .d,
html[data-theme="light"] .tmonth-punch-head,
html[data-theme="light"] .wmonth-punch-head,
html[data-theme="light"] .tmonth-more,
html[data-theme="light"] .wmonth-more,
html[data-theme="light"] .att-foot,
html[data-theme="light"] .tmonth-foot,
html[data-theme="light"] .wmonth-foot,
html[data-theme="light"] .att-words-quiet,
html[data-theme="light"] .att-words-byline,
html[data-theme="light"] .words-byline,
html[data-theme="light"] .words-counter,
html[data-theme="light"] .words-pick-head,
html[data-theme="light"] .words-foot,
html[data-theme="light"] .words-status .words-none,
html[data-theme="light"] .words-gchip.g-zero,
html[data-theme="light"] .hmonth-meter-raw,
html[data-theme="light"] .hmonth-heat-legend,
html[data-theme="light"] .hmonth-fee,
html[data-theme="light"] .hmonth-foot,
html[data-theme="light"] .hmonth-heat-cell.hh-none { color: var(--text-muted); }
html[data-theme="light"] .wl-row b,
html[data-theme="light"] .wl-key:hover,
html[data-theme="light"] .pay-review-reason,
html[data-theme="light"] .hmonth-heat-cell.hh-zero { color: var(--text-secondary); }
html[data-theme="light"] .att-cell.future .d,
html[data-theme="light"] .tmonth-cell.future .d,
html[data-theme="light"] .wmonth-cell.future .d,
html[data-theme="light"] .adelta.flat,
html[data-theme="light"] .tdelta.flat,
html[data-theme="light"] .wdelta.flat,
html[data-theme="light"] .att-cell.unmarked .s,
html[data-theme="light"] .tmonth-cell.unmarked .s,
html[data-theme="light"] .wmonth-cell.unmarked .s { color: var(--text-disabled); }
html[data-theme="light"] .att-words-quiet { border-color: var(--border-medium); }
html[data-theme="light"] .words-btn.ghost { border-color: var(--border-medium); }
html[data-theme="light"] .ann-desk-readall { background: var(--bg-glass); }
/* the punch glyph trails + the spark bars: white washes on pale glass.
   418.o: the @media-640 voice sets the mobile arrow's COLOR at (0,2,1) —
   the border cure below outranks it but speaks only border-color, so the
   arrow ink gets its own day voice at the same (0,3,2) structure. */
html[data-theme="light"] .tmonth-prow .p-in::after,
html[data-theme="light"] .wmonth-prow .p-in::after {
  border-color: rgba(var(--bg-ink-rgb), 0.3);
  color: rgba(var(--bg-ink-rgb), 0.45);
}
/* the born-violet word-wall heading: pale-violet ink on the pale sky walks
   to the deep violet (the same invisibility class, one honest voice) */
html[data-theme="light"] .att-words-head { color: #5B54D6; }
/* the momentum month label: born pale-indigo, walks to the deep indigo */
html[data-theme="light"] .momo-month { color: #4F48C9; }
html[data-theme="light"] .momo-spark i { background: rgba(var(--bg-ink-rgb), 0.16); }
html[data-theme="light"] .dash-pulse-track { background: var(--bg-glass-hover); }
/* the admin dashboard's face legends scope their keys deeper than the
   generic voices — the deeper scope rides here so STRUCTURE outranks it */
html[data-theme="light"] .hface-classes-legend .wl-key b,
html[data-theme="light"] .hface-register-legend .wl-key b,
html[data-theme="light"] .hface-classes-legend .wl-key:hover,
html[data-theme="light"] .hface-register-legend .wl-key:hover { color: var(--text-secondary); }

/* ── 418.f THE FEE-CRM DESK — glass cards ride the body token and turn
      pale; the white-glass cards walk to the honest day card ── */
html[data-theme="light"] .shad-card { background: var(--bg-800); border-color: var(--border-subtle); }
html[data-theme="light"] .shad-btn-outline {
  border-color: var(--border-medium);
  background: var(--bg-glass);
  color: var(--text-secondary);
}
html[data-theme="light"] .fee-reason-hint,
html[data-theme="light"] .trust-edge,
html[data-theme="light"] .momo-head,
html[data-theme="light"] .momo-flat,
html[data-theme="light"] .momo-foot { color: var(--text-muted); }
html[data-theme="light"] .fee-tab.active { color: var(--text-primary); }
html[data-theme="light"] .shad-card thead th {
  color: var(--text-muted);
  background: var(--bg-700);
  border-bottom-color: var(--border-subtle);
}
/* 418.f-2: THE DARK DIALOGS KEEP THEIR DARK — modal-box/toast/dropdown keep
   the born-dark dress in the day, so every token ink inside them is pinned
   to the literal light ink (the dark sheet never wears dark ink) */
html[data-theme="light"] .modal-box .shad-input {
  color: #f1f5f9;
  border-color: rgba(255,255,255,0.18);
  background-color: rgba(255,255,255,0.08);
}
html[data-theme="light"] .shad-input option { background: #1e293b; color: #f1f5f9; }
html[data-theme="light"] .toast {
  background: #1e293b;
  border-color: rgba(255,255,255,0.1);
  color: #f1f5f9;
}

/* ── 418.g THE CHECKOUT DOORS + SUCCESS DESK ── */
html[data-theme="light"] .checkout-card { background: var(--bg-800); border-color: var(--border-subtle); }
html[data-theme="light"] .gateway-info p { color: var(--text-muted); }
html[data-theme="light"] .receipt-line { color: var(--text-secondary); }
html[data-theme="light"] .receipt-id { color: var(--text-primary); }
html[data-theme="light"] .detail-row { border-bottom-color: var(--border-subtle); }
html[data-theme="light"] .detail-row .k { color: var(--text-muted); }
html[data-theme="light"] .detail-row .v { color: var(--text-primary); }
html[data-theme="light"] .next-steps li { color: var(--text-secondary); }
html[data-theme="light"] .sandbox-note { color: var(--text-secondary); }
html[data-theme="light"] .sandbox-note .sn-title { color: var(--text-primary); }
html[data-theme="light"] .trust-line { color: var(--text-muted); }

/* ── 418.h THE VISITORS DESK + THE REGISTRATION GLASS ── */
html[data-theme="light"] .vh-stars-dim { color: rgba(var(--bg-ink-rgb), 0.3); }
html[data-theme="light"] .vis-photo { color: var(--text-primary); }
html[data-theme="light"] .section-card { background: var(--bg-glass); border-color: var(--border-subtle); }
html[data-theme="light"] .section-card:hover { border-color: var(--border-medium); }

/* ── 418.i THE GRAY STRIPS — born rgba(0,0,0,X) surfaces stay grayish in the
      day while their token inks flip navy; the strips walk to the day glass
      so the ink never sits on its own shadow ── */
html[data-theme="light"] .fee-tabs {
  background: rgba(var(--bg-ink-rgb), 0.06);
  border-color: var(--border-subtle);
}
html[data-theme="light"] .words-editor textarea {
  background: var(--bg-800);
  border-color: var(--border-medium);
}
html[data-theme="light"] .digest-notes-card textarea {
  background: var(--bg-800);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
html[data-theme="light"] .cls-lens { background: var(--bg-glass); }
/* the filter panel's dress rides a style="" attribute — the inline voice
   yields only to !important, and only the light sky speaks it */
html[data-theme="light"] #att-filters { background: var(--bg-glass) !important; }

/* ── 418.j THE REGISTRATION DOOR — the page-sky ink ────────────────────────
   THE CENSUS (the Layer-C walk): the door is the one page still speaking
   Tailwind utility inks — born white headline + slate subtitle + a white
   hover riding the PAGE SKY (outside the form's dark glass container,
   which keeps its born-dark dress in both skies — the 3b doctrine). In the
   day those page-sky members sat white-on-white. The laws scope the THREE
   page-sky members only: the header block (h1 + p) and the footer door —
   the form interior's white inks sit on the dark glass and stay. */
html[data-theme="light"] .text-center.mb-10 h1.text-white { color: var(--text-primary); }
html[data-theme="light"] .text-center.mb-10 p.text-slate-400 { color: var(--text-muted); }
html[data-theme="light"] a.text-slate-400 { color: var(--text-muted); }
html[data-theme="light"] a.text-slate-400:hover { color: var(--text-primary); }
/* the whisper footer's born white/20 walks to the navy family's own whisper */
html[data-theme="light"] .text-white\/20 { color: rgba(var(--bg-ink-rgb), 0.35); }

/* ── 418.k THE FEE-DESK GLASS WASHES + SKELETONS ───────────────────────────
   The reminders desk's stat cards, the rem/dash boards and the shimmer
   skeletons paint white washes (rgba(255,255,255,0.02–0.05)) — on the pale
   day card those surfaces vanish and the loading state reads as blank
   rows. The washes walk to the navy-ink wash family in the day (the same
   invisibility class the 418.e spark bars rode); the dark mode keeps the
   born bytes (this sheet is additive — no source byte moved). */
html[data-theme="light"] .rem-board,
html[data-theme="light"] .dash-watch { background: var(--bg-glass); }
html[data-theme="light"] .momo-row { background: rgba(var(--bg-ink-rgb), 0.03); }
html[data-theme="light"] .dash-skel {
  background: linear-gradient(90deg, rgba(var(--bg-ink-rgb), 0.05) 25%, rgba(var(--bg-ink-rgb), 0.10) 37%, rgba(var(--bg-ink-rgb), 0.05) 63%);
  background-size: 400% 100%;
}
html[data-theme="light"] .momo-skel {
  background: linear-gradient(90deg, rgba(var(--bg-ink-rgb), 0.05) 25%, rgba(var(--color-indigo-rgb, 129, 140, 248), 0.12) 50%, rgba(var(--bg-ink-rgb), 0.05) 75%);
  background-size: 200% 100%;
}

/* ── 418.l THE SUCCESS CARD + THE LEGEND KEYS ──────────────────────────────
   The checkout-success desk's subtitle rode a literal white 0.6 on the
   --bg-800 card (white in the day) — the light sky re-voices it; the
   teacher face's legend keys (A+·A / B / C·D / F / none) rode white 0.42
   on the pale sky — the same cure the admin face's own legend already
   speaks at source (var(--text-muted)). Both keep their born dark bytes. */
/* 418.l-2: the inline-style law — the status sub rides a style="" color
   attribute (the strongest author voice); only !important speaks over it */
html[data-theme="light"] #status-sub { color: var(--text-secondary) !important; }
html[data-theme="light"] .status-card { border-color: var(--border-subtle); }
html[data-theme="light"] .wl-key { color: var(--text-muted); }

/* ── 418.m THE FEE-DESK ISLAND — the born-dark workspace keeps its dress ──
   THE SECOND-CENSUS VERDICT: the fee desk speaks ~55 INLINE white inks
   (style="" attributes — the labels, the meta rows, the empty states, the
   icons) beyond its token voices. Inline styles are the strongest author
   voice; re-voicing each needs a page-scoped !important fleet — fragile,
   unmaintainable, and it fights the desk's born design (the white-wash
   glass cards were BORN for the dark mesh). THE 3b DOCTRINE AT DESK SCALE
   (the same law the dialogs already ride): the desk keeps its born-dark
   dress in the day. THE MECHANISM (the sheet's own trick, mirrored): the
   ds token table is RE-POINTED to its born dark bytes INSIDE the island,
   so every var() voice — including the 418.a body ink and the 418.f/418.k
   pale flips, which declare token forms — self-resolves dark again; only
   the overrides that declare LITERAL bytes need the born-byte pin-back.
   The sky rides .gradient-mesh (var(--bg-900)) and resolves dark with the
   same breath. ONE body hook on fee-crm-ui.html (fee-desk-3b), additive. */
html[data-theme="light"] body.fee-desk-3b {
  --bg-900: #0A0B1E;  --bg-800: #0F1024;  --bg-700: #141528;
  --bg-600: #1A1B30;  --bg-550: #171c2b;  --bg-500: #20213A;
  --bg-400: #272844;  --bg-300: #2F304F;
  --bg-glass: rgba(255,255,255,0.05);
  --bg-glass-hover: rgba(255,255,255,0.08);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255,255,255,0.78);
  --text-muted: rgba(255,255,255,0.56);
  --text-disabled: rgba(255,255,255,0.28);
  --text-soft: #F1F5F9;
  --border-subtle: rgba(255,255,255,0.06);
  --border-medium: rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.2);
}
/* the born glass + washes the token forms cannot re-voice (the overrides
   declare solid forms; the born bytes are the glass washes) — the island
   scope (0,3,2) outranks the pale flips (0,1,1) by STRUCTURE */
html[data-theme="light"] body.fee-desk-3b .shad-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
html[data-theme="light"] body.fee-desk-3b .fee-tabs {
  background: rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.08);
}
html[data-theme="light"] body.fee-desk-3b .rem-board {
  background: rgba(255,255,255,0.03);
  border-color: rgba(248,113,113,0.22);
}
html[data-theme="light"] body.fee-desk-3b .dash-watch {
  background: rgba(255,255,255,0.03);
  border-color: rgba(251,146,60,0.25);
}
html[data-theme="light"] body.fee-desk-3b .momo-row { background: rgba(255,255,255,0.02); }
html[data-theme="light"] body.fee-desk-3b .dash-skel {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.10) 37%, rgba(255,255,255,0.05) 63%);
  background-size: 400% 100%;
}
html[data-theme="light"] body.fee-desk-3b .momo-skel {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(var(--color-indigo-rgb, 129, 140, 248),0.12) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
}
html[data-theme="light"] body.fee-desk-3b .crm-search-clear:hover { color: #ffffff; }
html[data-theme="light"] body.fee-desk-3b .momo-month { color: rgba(199,210,254,0.75); }
html[data-theme="light"] body.fee-desk-3b .momo-spark i { background: rgba(255,255,255,0.16); }

/* ── 418.n THE 404 SKY PIN — the dark dead-end keeps its light ink ───────
   The 404 door's sky is a hardcoded #0a0b1e (no ds; the body rule speaks
   the literal). The 418.a body-ink flip would dress navy ink on that
   navy sky — the h1, the noscript and the rebuilt card all inherit. THE
   3b DOCTRINE: the sky keeps its born dark in both modes and the ink is
   pinned light (the island scope (0,2,2) outranks the 418.a (0,1,1)). */
html[data-theme="light"] body.pub-404-sky { color: #ffffff; }

/* ── 418.p THE DOCS SCROLLBAR — the white 0.08 thumb vanishes on pale ──── */
html[data-theme="light"] .docs-sidebar { scrollbar-color: rgba(var(--bg-ink-rgb), 0.18) transparent; }

/* ── 418.q THE REGISTRATION DAY — the public door's full-day walk ───────
   THE CENSUS (the continuation walk): the door's page sky is a HARDCODED
   #0A0B1E final stop inside .page-bg, while the 418.a body ink and the
   418.j page-sky voices answer a pale day — the door was the one wired
   page whose sky never completed the walk (navy ink on the navy sky).
   The card interiors ride Tailwind utility inks (24 text-white / 34
   text-slate-300, all inside the 418.h pale cards, none own-dark) — the
   page-scoped utility family re-voices them to the day-ink family. The
   dark-dressed islands keep their born dress (the 3b doctrine): the five
   bg-slate-900 selects, the bg-blue-600 saturated strips and buttons, the
   bg-blue-900/40 payment container — every ink inside them pinned to the
   literal light. The brand radial washes keep their bytes (the brand
   voices are never remapped — one brand, two skies). */
/* the day sky — the same brand washes, the pale final stop (0,1,1)
   outranks the page's .page-bg (0,1,0) */
html[data-theme="light"] .page-bg {
  background:
    radial-gradient(ellipse 70% 50% at 15% 15%, rgba(var(--color-primary-rgb, 108, 99, 255), 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 80%, rgba(0, 210, 211, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(var(--color-accent-amber-rgb, 247, 183, 49), 0.06) 0%, transparent 50%),
    #F5F6FA;
}
/* the decorative grid: the white 0.025 lines vanish on pale — the ink tint
   takes the voice */
html[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(var(--bg-ink-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--bg-ink-rgb), 0.05) 1px, transparent 1px);
}
/* the page-scope utility inks → the day-ink family (Tailwind utilities are
   (0,1,0); the scope rides (0,3,1) — structure, never order luck). The
   :not() guards keep the saturated/dark islands' whites white. */
html[data-theme="light"] .page-bg .text-white:not(.bg-blue-600):not(.bg-slate-900) { color: var(--text-primary); }
html[data-theme="light"] .page-bg .text-slate-300 { color: var(--text-secondary); }
html[data-theme="light"] .page-bg .text-slate-400 { color: var(--text-muted); }
html[data-theme="light"] .page-bg .text-slate-500 { color: var(--text-muted); }
html[data-theme="light"] .page-bg .text-slate-600 { color: var(--text-muted); }
/* the form fields: the born-white ink + white border walk to the day ink
   (the bg rides var(--bg-glass) and auto-flips pale with the sky) */
html[data-theme="light"] .page-bg .input-field {
  color: var(--text-primary);
  border-color: var(--border-medium);
}
/* the section-header wash: white 0.02 vanishes on the pale card — the ink
   tint takes the voice */
html[data-theme="light"] .page-bg .section-header {
  background: rgba(var(--bg-ink-rgb), 0.03);
  border-bottom-color: var(--border-subtle);
}
/* THE DARK ISLANDS KEEP THEIR LIGHT INK: the five slate-900 selects dress
   their born dark control byte ((0,3,2) outranks the .input-field flip
   (0,3,1)); the payment container's blue-900/40 chip keeps its born dark
   wash and every ink inside rides the literal light (the ID scope (1,2,x)
   outranks the utility flips by STRUCTURE). */
html[data-theme="light"] .page-bg select.bg-slate-900 {
  color: #ffffff;
  border-color: #334155;
}
html[data-theme="light"] .page-bg #payment-details-container,
html[data-theme="light"] .page-bg #payment-details-container .text-slate-300,
html[data-theme="light"] .page-bg #payment-details-container strong.text-white { color: #e2e8f0; }
