/* ============================================================
   HELIOFOX // THEME LAYER
   Light / dark / auto. Loaded after tech.css.
   ============================================================ */

/* ---------- theme switch ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(95, 230, 255, .035);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.theme-toggle:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(95, 230, 255, .07);
  box-shadow: 0 0 20px rgba(47, 159, 255, .1);
}
.theme-toggle:focus-visible { outline: 1px solid var(--tech); outline-offset: 3px; }
.theme-toggle__glyph {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(95, 230, 255, .42);
  background: linear-gradient(90deg, var(--tech) 0 50%, transparent 50% 100%);
  box-shadow: 0 0 10px rgba(95, 230, 255, .2);
}
.theme-toggle[data-mode="light"] .theme-toggle__glyph {
  background: var(--tech);
  box-shadow: 0 0 12px rgba(95, 230, 255, .45);
}
.theme-toggle[data-mode="dark"] .theme-toggle__glyph {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(95, 230, 255, .28);
}
.theme-toggle[data-mode="auto"] .theme-toggle__glyph {
  background: linear-gradient(90deg, var(--tech) 0 50%, transparent 50% 100%);
}
.theme-toggle__label { white-space: nowrap; }
html[data-theme="dark"] .theme-toggle {
  color: rgba(214, 250, 255, .86);
  border-color: rgba(95, 230, 255, .24);
  background: rgba(95, 230, 255, .065);
}
html[data-theme="dark"] .theme-toggle:hover {
  color: #eafcff;
  border-color: rgba(95, 230, 255, .45);
  background: rgba(95, 230, 255, .1);
}
html[data-theme="dark"] .theme-toggle__glyph { border-color: rgba(95, 230, 255, .55); }
.nav__sheet-theme { padding: 16px 0 4px; }
.nav__sheet-theme .theme-toggle { width: 100%; height: 38px; justify-content: center; }

.auth-theme {
  position: absolute;
  top: 28px;
  right: var(--gutter);
  z-index: 2;
}
.admin-top__actions .theme-toggle { flex: none; }

/* ---------- light palette ---------- */
html[data-theme="light"] {
  --paper: #f3f9fc;
  --paper-2: #e9f4f9;
  --surface: #ffffff;
  --ink: #0a2734;
  --ink-2: #244956;
  --muted: #5d7683;
  --muted-2: #8399a4;
  --line: rgba(8, 104, 131, .16);
  --line-strong: rgba(6, 128, 158, .34);
  --night: #edf7fb;
  --night-2: #e4f2f8;
  --night-line: rgba(8, 104, 131, .16);
  --night-muted: #5c7682;
  --solar: #078ba9;
  --solar-2: #035c73;
  --solar-soft: rgba(7, 139, 169, .1);
  --ok: #0a8a64;
  --warn: #9a6207;
  --danger: #c0334f;
  --tech: #078ba9;
  --tech-2: #1d6fce;
  --tech-soft: rgba(7, 139, 169, .08);
  --panel-bg: linear-gradient(180deg, #ffffff, #f7fcfe);
  --panel-border: rgba(8, 110, 140, .17);
  --panel-border-hot: rgba(7, 139, 169, .44);
  --glow-cyan: 0 12px 32px rgba(14, 70, 94, .07);
  --glow-cyan-strong: 0 0 0 1px rgba(7, 139, 169, .1), 0 16px 44px rgba(14, 70, 94, .1);
  --surface-deep: #eef7fb;
}

html[data-theme="light"],
html[data-theme="light"] body {
  background-color: #f3f9fc;
}
html[data-theme="light"] { background: #f3f9fc; }

html[data-theme="light"] body {
  background-image:
    radial-gradient(900px 600px at 82% -8%, rgba(47, 159, 255, .12), transparent 66%),
    radial-gradient(700px 500px at 8% 4%, rgba(95, 230, 255, .1), transparent 68%),
    linear-gradient(rgba(8, 102, 129, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 102, 129, .045) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  background-position: center top, left top, left top, left top;
  background-attachment: scroll, scroll, fixed, fixed;
  color: var(--ink);
}
html[data-theme="light"] body::before {
  background: repeating-linear-gradient(180deg, rgba(8, 90, 112, .028) 0 1px, transparent 1px 4px);
  opacity: .45;
}
html[data-theme="light"] ::selection { background: #b7f0fa; color: #042a37; }
html[data-theme="light"] :focus-visible {
  box-shadow: 0 0 0 3px rgba(7, 139, 169, .16);
}

/* ---------- light type + links ---------- */

html[data-theme="light"] .eyebrow,
html[data-theme="light"] .eyebrow--light { color: rgba(5, 104, 130, .72); }
html[data-theme="light"] .eyebrow--dot::before { background: var(--tech); box-shadow: 0 0 8px rgba(7, 139, 169, .5); }
html[data-theme="light"] .section__lede,
html[data-theme="light"] .pagehead__lede,
html[data-theme="light"] .hero__lede { color: var(--muted); }
html[data-theme="light"] .price-note { color: var(--muted); }

/* ---------- light announce + nav + sysrail ---------- */

html[data-theme="light"] .announce {
  background: linear-gradient(90deg, #e3f5fb, #effbff);
  border-bottom: 1px solid rgba(8, 104, 131, .14);
  color: #274957;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
}
html[data-theme="light"] .announce__dot { background: var(--tech); box-shadow: 0 0 8px rgba(7, 139, 169, .45); }
html[data-theme="light"] .announce__link { color: #066a86; }
html[data-theme="light"] .announce__close { color: #5f7c88; }

html[data-theme="light"] .nav {
  background: rgba(250, 254, 255, .82);
  border-bottom: 1px solid rgba(8, 104, 131, .12);
  box-shadow: 0 10px 36px rgba(14, 70, 94, .06);
}
html[data-theme="light"] .brand__mark,
html[data-theme="light"] .footer__mark,
html[data-theme="light"] .aside-card__mark .mark,
html[data-theme="light"] .auth-brand__mark,
html[data-theme="light"] .admin-brand__mark,
html[data-theme="light"] .cta__mark .mark {
  filter: none;
  opacity: .88;
}
html[data-theme="light"] .brand__latin { color: rgba(8, 102, 129, .52); }
html[data-theme="light"] .nav__link { color: rgba(24, 68, 84, .72); }
html[data-theme="light"] .nav__link:hover,
html[data-theme="light"] .nav__link.is-active { color: var(--ink); }
html[data-theme="light"] .nav__link::after { background: linear-gradient(90deg, var(--tech), rgba(29, 111, 206, .45)); box-shadow: 0 0 8px rgba(7, 139, 169, .35); }
html[data-theme="light"] .nav__account,
html[data-theme="light"] .nav__bag { color: rgba(25, 70, 86, .74); }
html[data-theme="light"] .nav__account:hover,
html[data-theme="light"] .nav__bag:hover { color: var(--ink); }
html[data-theme="light"] .nav__count { background: var(--tech); color: #fff; box-shadow: 0 0 12px rgba(7, 139, 169, .3); }
html[data-theme="light"] .nav__toggle span { background: var(--ink-2); }
html[data-theme="light"] .nav__sheet {
  background: rgba(249, 254, 255, .98);
  border-top: 1px solid rgba(8, 104, 131, .12);
  box-shadow: 0 20px 40px rgba(14, 70, 94, .12);
}
html[data-theme="light"] .nav__sheet a { border-bottom-color: rgba(8, 104, 131, .1); color: var(--ink-2); }
html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, .7);
  border-color: rgba(8, 110, 140, .22);
  color: #315b6b;
}
html[data-theme="light"] .theme-toggle:hover { background: #fff; color: var(--ink); border-color: var(--line-strong); }
html[data-theme="light"] .theme-toggle__glyph { border-color: rgba(7, 139, 169, .38); box-shadow: none; }

html[data-theme="light"] .sysrail {
  background: rgba(237, 248, 252, .9);
  border-bottom: 1px solid rgba(8, 104, 131, .1);
}
html[data-theme="light"] .sysrail__live { color: #0b7f95; }
html[data-theme="light"] .sysrail__live i { background: var(--ok); box-shadow: 0 0 8px rgba(10, 138, 100, .35); }
html[data-theme="light"] .sysrail__item { color: rgba(31, 78, 94, .62); border-left-color: rgba(8, 104, 131, .14); }
html[data-theme="light"] .sysrail__end { color: rgba(31, 78, 94, .48); }

/* ---------- light buttons ---------- */

html[data-theme="light"] .btn--primary {
  background: linear-gradient(105deg, #0b9cba 0%, #0785a6 48%, #1c71cf 100%);
  border-color: rgba(6, 106, 131, .35);
  color: #f5feff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 28px rgba(8, 112, 145, .18);
}
html[data-theme="light"] .btn--primary:hover {
  background: linear-gradient(105deg, #0aa9c8 0%, #078ba9 45%, #1f7fdd 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 14px 34px rgba(8, 112, 145, .24);
}
html[data-theme="light"] .btn--primary::after { background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .32) 48%, transparent 70%); }
html[data-theme="light"] .btn--line,
html[data-theme="light"] .btn--ghost {
  background: rgba(255, 255, 255, .6);
  border-color: rgba(8, 104, 131, .2);
  color: var(--ink);
}
html[data-theme="light"] .btn--line:hover,
html[data-theme="light"] .btn--ghost:hover { background: #fff; border-color: var(--line-strong); box-shadow: 0 0 22px rgba(7, 139, 169, .1); }
html[data-theme="light"] .btn--light { background: #0a2734; color: #f3fbff; border-color: rgba(10, 39, 52, .25); }
html[data-theme="light"] .btn--light:hover { background: #103b4d; box-shadow: 0 0 28px rgba(7, 139, 169, .16); }
html[data-theme="light"] .textlink { color: var(--ink); }
html[data-theme="light"] .textlink::after { background: var(--tech); box-shadow: none; }
html[data-theme="light"] .linkbtn { color: var(--ink); text-decoration-color: rgba(7, 139, 169, .35); }

html[data-theme="light"] .pill { background: #edf8fc; color: var(--ink-2); border-color: rgba(8, 110, 140, .12); }
html[data-theme="light"] .pill--paid,
html[data-theme="light"] .pill--fulfilled,
html[data-theme="light"] .pill--published,
html[data-theme="light"] .pill--active { background: #e7f8f1; color: #087052; border-color: rgba(8, 138, 100, .18); }
html[data-theme="light"] .pill--pending { background: #fff7e6; color: #8b5907; border-color: rgba(154, 98, 7, .18); }
html[data-theme="light"] .pill--refunded,
html[data-theme="light"] .pill--cancelled,
html[data-theme="light"] .pill--hidden,
html[data-theme="light"] .pill--draft { background: #fff0f3; color: #a52a44; border-color: rgba(192, 51, 79, .16); }
html[data-theme="light"] .pill--admin { background: #e5f7fc; color: var(--tech); border-color: rgba(7, 139, 169, .2); }
html[data-theme="light"] .pill--tech { background: #f1fbfe; color: var(--muted); }

/* ---------- light hero + stage ---------- */

html[data-theme="light"] .hero {
  border-bottom-color: rgba(8, 104, 131, .1);
}
html[data-theme="light"] .hero__wash {
  background:
    radial-gradient(42% 42% at 75% 20%, rgba(47, 159, 255, .1), transparent 68%),
    radial-gradient(38% 38% at 50% 2%, rgba(95, 230, 255, .1), transparent 70%),
    radial-gradient(32% 34% at 18% 18%, rgba(255, 175, 76, .06), transparent 72%);
}
html[data-theme="light"] .hero__wash span { border-color: rgba(8, 120, 150, .14); box-shadow: none; }
html[data-theme="light"] .hero__wash span::after { border-color: rgba(8, 120, 150, .1); }
html[data-theme="light"] .hero__title { color: var(--ink); text-shadow: 0 10px 40px rgba(14, 70, 94, .06); }
html[data-theme="light"] .hero__title-soft {
  background: linear-gradient(100deg, #092c3d 0%, #087c99 52%, #1d6fce 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 22px rgba(7, 110, 140, .1));
}
html[data-theme="light"] .hero__lede { color: var(--muted); }
html[data-theme="light"] .hero__sys { color: rgba(29, 82, 100, .65); }
html[data-theme="light"] .hero__sys i { background: var(--ok); box-shadow: 0 0 8px rgba(10, 138, 100, .3); }
html[data-theme="light"] .hero__sys b { color: rgba(7, 139, 169, .24); }
html[data-theme="light"] .hero__facts { border-top-color: rgba(8, 104, 131, .16); }
html[data-theme="light"] .hero__facts > div { border-left-color: rgba(8, 104, 131, .14); }
html[data-theme="light"] .hero__facts dt { color: var(--ink); text-shadow: none; }
html[data-theme="light"] .hero__facts dd { color: rgba(32, 83, 99, .64); }

html[data-theme="light"] .hero__stage {
  background: linear-gradient(155deg, rgba(255, 255, 255, .72), rgba(228, 245, 251, .58));
  border: 1px solid rgba(8, 110, 140, .12);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(14, 70, 94, .08), inset 0 1px 0 #fff;
  overflow: hidden;
}
html[data-theme="light"] .stage__sun {
  background: radial-gradient(circle at 38% 36%, rgba(231, 255, 255, .98), rgba(95, 230, 255, .52) 36%, rgba(29, 111, 206, .16) 62%, transparent 72%);
  box-shadow: 0 0 70px rgba(7, 139, 169, .12);
}
html[data-theme="light"] .stage__grid {
  background-image:
    linear-gradient(rgba(7, 120, 150, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 120, 150, .1) 1px, transparent 1px);
}
html[data-theme="light"] .stage__hud { color: rgba(7, 111, 136, .48); }
html[data-theme="light"] .oswin {
  background: linear-gradient(180deg, #ffffff, #f3fbff);
  border-color: rgba(8, 110, 140, .2);
  box-shadow: 0 28px 70px rgba(14, 70, 94, .14), 0 0 0 1px rgba(255, 255, 255, .8) inset;
}
html[data-theme="light"] .oswin__bar {
  background: rgba(7, 139, 169, .035);
  border-bottom-color: rgba(8, 104, 131, .12);
  color: #3c6070;
}
html[data-theme="light"] .oswin__dots i { background: rgba(7, 120, 150, .24); }
html[data-theme="light"] .oswin__dots i:first-child { background: var(--tech); box-shadow: 0 0 6px rgba(7, 139, 169, .32); }
html[data-theme="light"] .oswin__side { border-right-color: rgba(8, 104, 131, .1); background: rgba(245, 252, 255, .65); }
html[data-theme="light"] .oswin__item { color: #5e7d89; }
html[data-theme="light"] .oswin__item.is-active {
  background: #e5f7fc;
  box-shadow: inset 2px 0 0 var(--tech);
  color: #0a4054;
}
html[data-theme="light"] .oswin__brand .mark { filter: none; opacity: .7; }
html[data-theme="light"] .oswin__main { color: #234957; }
html[data-theme="light"] .oswin__title { color: #4f7382; }
html[data-theme="light"] .oswin__time { color: #7c9aa5; }
html[data-theme="light"] .oswin__metric span { color: #6b8894; }
html[data-theme="light"] .oswin__metric b { color: #0d3d4d; }
html[data-theme="light"] .oswin__tile span { color: #6b8894; }
html[data-theme="light"] .oswin__tile b { color: #0d3d4d; }
html[data-theme="light"] .oswin__tile.is-accent b { color: #067e97; }
html[data-theme="light"] .oswin__head strong { color: #123a49; }
html[data-theme="light"] .oswin__chip { border-color: rgba(8, 120, 150, .2); background: #eaf8fc; color: #137f96; }
html[data-theme="light"] .oswin__metric i { background: linear-gradient(90deg, #1d6fce, #078ba9); box-shadow: 0 0 8px rgba(7, 139, 169, .2); }
html[data-theme="light"] .oswin__tile { background: rgba(255, 255, 255, .75); border-color: rgba(8, 120, 150, .16); }
html[data-theme="light"] .oswin__tile.is-accent { background: #eaf9fd; border-color: rgba(7, 139, 169, .24); }
html[data-theme="light"] .oswin::after { background: linear-gradient(180deg, transparent, rgba(7, 139, 169, .055), transparent); }

html[data-theme="light"] .stage__card--kernel,
html[data-theme="light"] .stage__card--license {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(8, 120, 150, .2);
  box-shadow: 0 20px 50px rgba(14, 70, 94, .1), 0 0 0 1px rgba(255, 255, 255, .8) inset;
}
html[data-theme="light"] .stage__label { color: rgba(7, 111, 136, .58); }
html[data-theme="light"] .stage__mono { color: var(--ink); text-shadow: none; }
html[data-theme="light"] .stage__fine { color: var(--muted); }
html[data-theme="light"] .stage__spark i { background: linear-gradient(180deg, #b0f0ff, #078ba9 55%, #1d6fce); box-shadow: 0 0 8px rgba(7, 139, 169, .15); }

/* ---------- light surfaces + cards ---------- */

html[data-theme="light"] .section + .section { border-top-color: rgba(8, 104, 131, .1); }
html[data-theme="light"] .section--stack {
  background: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(234, 247, 252, .45));
}
html[data-theme="light"] .stack-list { border-top-color: rgba(8, 120, 150, .16); }
html[data-theme="light"] .stack-row { border-bottom-color: rgba(8, 104, 131, .12); }
html[data-theme="light"] .stack-row:hover { background: rgba(7, 139, 169, .045); }
html[data-theme="light"] .stack-row__no { color: #0b8399; }
html[data-theme="light"] .stack-row__name { color: var(--ink); }
html[data-theme="light"] .stack-row__name em { color: rgba(32, 83, 99, .6); }
html[data-theme="light"] .stack-row__desc { color: var(--muted); }
html[data-theme="light"] .stack-row__meta { color: #0b8399; }
html[data-theme="light"] .stack-row__arrow { color: #0b8399; }

html[data-theme="light"] .product-card,
html[data-theme="light"] .store-card,
html[data-theme="light"] .panel,
html[data-theme="light"] .stat,
html[data-theme="light"] .aside-card,
html[data-theme="light"] .note,
html[data-theme="light"] .summary,
html[data-theme="light"] .pay__main,
html[data-theme="light"] .pay__side,
html[data-theme="light"] .quick,
html[data-theme="light"] .buy--locked,
html[data-theme="light"] .store-note,
html[data-theme="light"] .paymethod,
html[data-theme="light"] .tier,
html[data-theme="light"] .panel--note,
html[data-theme="light"] .about-letter {
  background: var(--panel-bg);
  border-color: var(--panel-border);
  box-shadow: 0 16px 42px rgba(14, 70, 94, .075), inset 0 1px 0 #fff;
}
html[data-theme="light"] .product-card::before,
html[data-theme="light"] .store-card::before,
html[data-theme="light"] .panel::before,
html[data-theme="light"] .stat::before,
html[data-theme="light"] .aside-card::before,
html[data-theme="light"] .note::before,
html[data-theme="light"] .summary::before,
html[data-theme="light"] .pay__main::before,
html[data-theme="light"] .pay__side::before,
html[data-theme="light"] .quick::before {
  background: linear-gradient(90deg, transparent, rgba(7, 139, 169, .45), transparent);
  opacity: .5;
}
html[data-theme="light"] .product-card:hover,
html[data-theme="light"] .store-card:hover {
  border-color: rgba(7, 139, 169, .38);
  box-shadow: 0 20px 54px rgba(14, 70, 94, .12), 0 0 0 1px rgba(7, 139, 169, .05);
}
html[data-theme="light"] .product-card__art,
html[data-theme="light"] .store-card__art,
html[data-theme="light"] .product__art,
html[data-theme="light"] .bag-item__art {
  background: #07131f;
  border-bottom-color: rgba(8, 120, 150, .16);
  filter: invert(1) hue-rotate(180deg) saturate(.88) brightness(1.04);
}
html[data-theme="light"] .mini {
  background: linear-gradient(135deg, #1a7d99, #084356);
  border-color: rgba(7, 120, 150, .24);
}
html[data-theme="light"] .mini--os { background: linear-gradient(135deg, #2a9aba, #0b4c63); }
html[data-theme="light"] .mini--cns { background: linear-gradient(135deg, #0e7b8e, #06303f); }
html[data-theme="light"] .mini--dock { background: linear-gradient(135deg, #5fb3c7, #1c5f76); }
html[data-theme="light"] .mini--clean { background: linear-gradient(135deg, #7ccfe0, #2b7b90); }
html[data-theme="light"] .mini--vault { background: linear-gradient(135deg, #6b7fb8, #273b72); }
html[data-theme="light"] .mini::after { border-color: rgba(225, 251, 255, .26); }
html[data-theme="light"] .mini::before {
  content: "";
  position: absolute;
  z-index: 2;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .08em;
  color: #e8fdff;
  text-shadow: 0 1px 8px rgba(2, 35, 48, .35);
}
html[data-theme="light"] .mini--os::before { content: "OS"; }
html[data-theme="light"] .mini--cns::before { content: "CN"; }
html[data-theme="light"] .mini--dock::before { content: "FD"; }
html[data-theme="light"] .mini--clean::before { content: "CL"; }
html[data-theme="light"] .mini--vault::before { content: "FV"; }
html[data-theme="light"] .mini:has(.mini__code)::before { content: none; }
html[data-theme="light"] .product-card__badge,
html[data-theme="light"] .store-card__seats { color: #0b8399; }
html[data-theme="light"] .product-card__name,
html[data-theme="light"] .store-card h2 { color: var(--ink); }
html[data-theme="light"] .product-card__sub,
html[data-theme="light"] .store-card__sub,
html[data-theme="light"] .store-note { color: var(--ink-2); }
html[data-theme="light"] .store-note__fine { color: var(--muted); }

/* ---------- light night section + desktop demo ---------- */

html[data-theme="light"] .section--night {
  background:
    radial-gradient(50% 60% at 78% 8%, rgba(47, 159, 255, .1), transparent 66%),
    radial-gradient(40% 50% at 8% 80%, rgba(95, 230, 255, .08), transparent 70%),
    #eaf6fb;
  border-top-color: rgba(8, 104, 131, .1);
  border-bottom-color: rgba(8, 104, 131, .1);
}
html[data-theme="light"] .section--night::before { background: radial-gradient(circle, rgba(7, 139, 169, .12), transparent 64%); }
html[data-theme="light"] .section__head--night .eyebrow { color: rgba(5, 104, 130, .7); }
html[data-theme="light"] .section__head--night h2 { color: var(--ink); }
html[data-theme="light"] .section--night .section__lede { color: var(--muted); }
html[data-theme="light"] .desktop {
  background: #eaf6fb;
  color: var(--ink);
  border-color: rgba(8, 120, 150, .22);
  box-shadow: 0 36px 90px rgba(14, 70, 94, .14), 0 0 0 1px rgba(255, 255, 255, .8) inset;
}
html[data-theme="light"] .desktop__wall {
  background:
    radial-gradient(58% 68% at 78% 18%, rgba(47, 159, 255, .3), transparent 62%),
    radial-gradient(50% 60% at 15% 100%, rgba(95, 230, 255, .12), transparent 64%),
    linear-gradient(140deg, #d7eff8, #f1fbff 66%);
}
html[data-theme="light"] .desktop__wall::after,
html[data-theme="light"] .desktop__wall::before {
  background-image:
    linear-gradient(rgba(7, 120, 150, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 120, 150, .1) 1px, transparent 1px);
}
html[data-theme="light"] .desktop__top {
  background: rgba(255, 255, 255, .44);
  border-bottom-color: rgba(8, 104, 131, .12);
  color: #224b5b;
}
html[data-theme="light"] .desktop__logo .mark { filter: none; opacity: .7; }
html[data-theme="light"] .desktop__icons span { color: #2c5666; }
html[data-theme="light"] .desktop__folder {
  background: linear-gradient(180deg, #9ceeff, #1d6fce);
  box-shadow: 0 0 12px rgba(7, 139, 169, .2);
}
html[data-theme="light"] .desktop__folder::before { background: #fff; }
html[data-theme="light"] .desktop__folder.is-alt { background: linear-gradient(180deg, #5f9fb8, #2b5d75); }
html[data-theme="light"] .desktop__folder.is-alt::before { background: #eaf8fc; }
html[data-theme="light"] .desktop__doc { background: #fff; border-color: rgba(8, 104, 131, .2); box-shadow: 0 4px 14px rgba(14, 70, 94, .1); }
html[data-theme="light"] .desktop__doc::before { background: rgba(7, 139, 169, .3); }
html[data-theme="light"] .desktop__win {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(8, 120, 150, .2);
  box-shadow: 0 20px 60px rgba(14, 70, 94, .14), 0 0 0 1px rgba(255, 255, 255, .7) inset;
}
html[data-theme="light"] .desktop__winbar {
  background: rgba(7, 139, 169, .04);
  border-bottom-color: rgba(8, 104, 131, .1);
  color: #315b6b;
}
html[data-theme="light"] .desktop__winmeta { color: rgba(7, 111, 136, .38); }
html[data-theme="light"] .desktop__kicker { color: #0b8399; }
html[data-theme="light"] .desktop__pane { color: var(--ink-2); }
html[data-theme="light"] .desktop__pane h4 { color: var(--ink); }
html[data-theme="light"] .desktop__tasks li { color: var(--ink-2); border-top-color: rgba(8, 104, 131, .1); }
html[data-theme="light"] .desktop__focus strong { color: var(--ink); }
html[data-theme="light"] .desktop__focus span { color: var(--muted); }
html[data-theme="light"] .desktop__bars i { background: rgba(7, 139, 169, .2); border-color: rgba(7, 139, 169, .14); }
html[data-theme="light"] .desktop__bars i:nth-child(3n) { background: rgba(7, 139, 169, .55); }
html[data-theme="light"] .desktop__dock {
  background: rgba(255, 255, 255, .62);
  border-color: rgba(8, 120, 150, .18);
  box-shadow: 0 12px 30px rgba(14, 70, 94, .1);
}
html[data-theme="light"] .desktop__app { background: rgba(7, 139, 169, .08); border-color: rgba(7, 139, 169, .14); }
html[data-theme="light"] .desktop__app.is-a { background: linear-gradient(135deg, #c4f8ff, #1d6fce); }
html[data-theme="light"] .desktop__app.is-b { background: rgba(29, 111, 206, .28); border-color: rgba(7, 120, 150, .24); }
html[data-theme="light"] .desktop__app.is-c { background: rgba(7, 139, 169, .18); border-color: rgba(7, 120, 150, .18); }
html[data-theme="light"] .desktop__app.is-d { background: rgba(7, 139, 169, .06); border-color: rgba(7, 120, 150, .12); }
html[data-theme="light"] .desktop::before,
html[data-theme="light"] .desktop::after { color: rgba(7, 111, 136, .5); }
html[data-theme="light"] .feature-row { border-top-color: rgba(8, 120, 150, .16); }
html[data-theme="light"] .feature-row > div { border-left-color: rgba(8, 104, 131, .12); }
html[data-theme="light"] .feature-row__no { color: #0b8399; }
html[data-theme="light"] .feature-row h3 { color: var(--ink); }
html[data-theme="light"] .feature-row p { color: var(--muted); }

/* ---------- light principles + letter ---------- */

html[data-theme="light"] .section--principles {
  background:
    radial-gradient(44% 58% at 84% 20%, rgba(47, 159, 255, .07), transparent 68%),
    linear-gradient(180deg, rgba(243, 251, 254, .9), rgba(228, 245, 250, .8));
  border-top-color: rgba(8, 104, 131, .1);
  border-bottom-color: rgba(8, 104, 131, .1);
}
html[data-theme="light"] .principles__intro h2 { color: var(--ink); }
html[data-theme="light"] .principles__intro .section__lede { color: var(--muted); }
html[data-theme="light"] .principles__list {
  background:
    radial-gradient(44% 58% at 84% 20%, rgba(47, 159, 255, .08), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(237, 248, 252, .62));
  border-color: rgba(8, 110, 140, .14);
  box-shadow: 0 18px 50px rgba(14, 70, 94, .07), inset 0 1px 0 #fff;
}
html[data-theme="light"] .principles__list::before { background: linear-gradient(90deg, transparent, rgba(7, 139, 169, .55), transparent); }
html[data-theme="light"] .principle { border-bottom-color: rgba(8, 104, 131, .1); }
html[data-theme="light"] .principle > span { color: #0b8399; text-shadow: none; }
html[data-theme="light"] .principle h3 { color: var(--ink); }
html[data-theme="light"] .principle p { color: var(--muted); }
html[data-theme="light"] .principle:hover { background: linear-gradient(90deg, rgba(7, 139, 169, .05), transparent 72%); }
html[data-theme="light"] .section--letter {
  background:
    radial-gradient(38% 48% at 16% 36%, rgba(7, 139, 169, .08), transparent 70%),
    #eff9fc;
  border-top-color: rgba(8, 104, 131, .1);
}
html[data-theme="light"] .letter__sign { color: var(--ink); }
html[data-theme="light"] .letter__loc { color: rgba(7, 120, 145, .58); }
html[data-theme="light"] .letter__body h2 { color: var(--ink); }
html[data-theme="light"] .letter__body p { color: var(--ink-2); }
html[data-theme="light"] .letter__portrait {
  background:
    radial-gradient(circle at 68% 74%, rgba(7, 139, 169, .14), transparent 58%),
    rgba(255, 255, 255, .7);
  border-color: rgba(8, 120, 150, .18);
  box-shadow: inset 0 0 30px rgba(7, 139, 169, .04), 0 10px 30px rgba(14, 70, 94, .08);
}
html[data-theme="light"] .letter__portrait::after { color: rgba(7, 111, 136, .36); border-color: rgba(8, 104, 131, .14); }
html[data-theme="light"] .letter__line { background: var(--tech); box-shadow: 0 0 10px rgba(7, 139, 169, .2); }

/* ---------- light forms ---------- */

html[data-theme="light"] .field > span { color: rgba(34, 81, 97, .7); }
html[data-theme="light"] .field input,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .field select {
  background: rgba(255, 255, 255, .85);
  border-color: rgba(8, 110, 140, .18);
  color: var(--ink);
}
html[data-theme="light"] .field input::placeholder,
html[data-theme="light"] .field textarea::placeholder { color: rgba(76, 111, 125, .55); }
html[data-theme="light"] .field input:focus,
html[data-theme="light"] .field textarea:focus,
html[data-theme="light"] .field select:focus {
  border-color: rgba(7, 139, 169, .5);
  box-shadow: 0 0 0 3px rgba(7, 139, 169, .1), 0 0 18px rgba(7, 139, 169, .06);
}
html[data-theme="light"] .field input:disabled { background: #eef7fb; color: var(--muted-2); }
html[data-theme="light"] select option { background: #fff; color: var(--ink); }
html[data-theme="light"] .check span { color: var(--muted); }
html[data-theme="light"] .check a { color: var(--ink); }
html[data-theme="light"] .check input[type="checkbox"] {
  border-color: rgba(7, 120, 150, .28);
  background: #fff;
}
html[data-theme="light"] .form-error { background: #fff0f3; color: #a52a44; border-color: rgba(192, 51, 79, .24); }
html[data-theme="light"] .form-ok { background: #e9f9f2; color: #086b4e; border-color: rgba(10, 138, 100, .22); }
html[data-theme="light"] .flash { background: rgba(255, 255, 255, .9); border-color: rgba(8, 110, 140, .16); color: var(--ink-2); }
html[data-theme="light"] .flash--ok { background: #eaf9f2; border-color: rgba(10, 138, 100, .22); color: #086b4e; }
html[data-theme="light"] .flash--error { background: #fff0f3; border-color: rgba(192, 51, 79, .22); color: #a52a44; }
html[data-theme="light"] .flash--info { background: #fff8e8; border-color: rgba(154, 98, 7, .22); color: #835506; }
html[data-theme="light"] .notice { background: #fff9eb; border-color: rgba(154, 98, 7, .22); }
html[data-theme="light"] .notice p { color: #775620; }

/* ---------- light store + product ---------- */

html[data-theme="light"] .chip { background: #f4fbfe; border-color: rgba(8, 110, 140, .18); color: var(--muted); }
html[data-theme="light"] .chip:hover { border-color: var(--line-strong); color: var(--ink); }
html[data-theme="light"] .chip.is-active { background: var(--tech); border-color: var(--tech); color: #fff; box-shadow: 0 6px 18px rgba(7, 139, 169, .18); }
html[data-theme="light"] .search { border-bottom-color: rgba(8, 110, 140, .2); }
html[data-theme="light"] .search input { color: var(--ink); }
html[data-theme="light"] .search input::placeholder { color: rgba(76, 111, 125, .55); }
html[data-theme="light"] .search button { color: #0b8399; }
html[data-theme="light"] .crumb { color: var(--muted); }
html[data-theme="light"] .product__sub { color: var(--ink-2); }
html[data-theme="light"] .product__tagline { color: var(--muted); }
html[data-theme="light"] .product__visual-foot { color: #0b8399; }
html[data-theme="light"] .tiers__legend { color: #0b8399; }
html[data-theme="light"] .tier { background: rgba(255, 255, 255, .72); border-color: rgba(8, 110, 140, .18); }
html[data-theme="light"] .tier:hover { border-color: rgba(7, 139, 169, .34); }
html[data-theme="light"] .tier.is-selected {
  background: #eaf9fd;
  border-color: rgba(7, 139, 169, .55);
  box-shadow: 0 0 0 1px rgba(7, 139, 169, .06), 0 10px 28px rgba(7, 139, 169, .1);
}
html[data-theme="light"] .tier__radio { border-color: rgba(7, 120, 150, .3); }
html[data-theme="light"] .tier__check { color: transparent; border-color: rgba(7, 120, 150, .3); }
html[data-theme="light"] .tier.is-selected .tier__check { color: #fff; }
html[data-theme="light"] .tier__price { color: var(--ink); }
html[data-theme="light"] .buy__tax { color: var(--muted); }
html[data-theme="light"] .buy__meta { border-top-color: rgba(8, 104, 131, .12); }
html[data-theme="light"] .buy__meta li { border-bottom-color: rgba(8, 104, 131, .1); }
html[data-theme="light"] .buy__meta strong { color: #0b8399; }
html[data-theme="light"] .buy__meta span { color: var(--ink-2); }
html[data-theme="light"] .buy--locked { color: var(--ink); }
html[data-theme="light"] .locked__label { color: #0b8399; }
html[data-theme="light"] .locked__text { color: var(--ink-2); }
html[data-theme="light"] .buybar {
  background: rgba(248, 254, 255, .94);
  border-top-color: rgba(8, 110, 140, .18);
  box-shadow: 0 -14px 40px rgba(14, 70, 94, .08);
}
html[data-theme="light"] .buybar__price span { color: var(--muted); }
html[data-theme="light"] .buybar__price strong { color: var(--ink); }

/* ---------- light prose + content ---------- */

html[data-theme="light"] .prose p,
html[data-theme="light"] .prose li { color: var(--ink-2); }
html[data-theme="light"] .prose h1,
html[data-theme="light"] .prose h2,
html[data-theme="light"] .prose h3,
html[data-theme="light"] .prose strong { color: var(--ink); }
html[data-theme="light"] .prose ul li::before { background: var(--tech); box-shadow: none; }
html[data-theme="light"] .prose blockquote { background: rgba(7, 139, 169, .05); color: var(--ink-2); }
html[data-theme="light"] .prose hr { border-top-color: rgba(8, 104, 131, .12); }
html[data-theme="light"] .prose a { color: #0a7f9b; text-decoration-color: rgba(7, 139, 169, .4); }
html[data-theme="light"] .prose code { background: #eaf8fc; color: #0a657b; border-color: rgba(8, 110, 140, .14); }
html[data-theme="light"] .section--specs { background: #eef8fc; }
html[data-theme="light"] .spec-table tr,
html[data-theme="light"] .faq__item { border-color: rgba(8, 104, 131, .1); }
html[data-theme="light"] .spec-table th { color: var(--muted); }
html[data-theme="light"] .spec-table td { color: var(--ink-2); }
html[data-theme="light"] .aside-card__title { color: var(--ink); }
html[data-theme="light"] .aside-card__text { color: var(--muted); }
html[data-theme="light"] .aside-card--plain a { color: var(--ink-2); }
html[data-theme="light"] .aside-card__label { color: rgba(7, 120, 145, .6); }
html[data-theme="light"] .aside-card__updated { color: var(--muted-2); }
html[data-theme="light"] .about-letter {
  background:
    radial-gradient(50% 80% at 85% 0%, rgba(47, 159, 255, .1), transparent 65%),
    linear-gradient(180deg, #ffffff, #f1fafd);
  border-color: rgba(8, 120, 150, .18);
}
html[data-theme="light"] .about-letter__sign { color: var(--ink); }
html[data-theme="light"] .about-letter__loc,
html[data-theme="light"] .about-letter__mail { color: var(--muted); }
html[data-theme="light"] .about-letter__body p { color: var(--ink-2); }
html[data-theme="light"] .note-list--full { border-top-color: rgba(8, 120, 150, .16); }
html[data-theme="light"] .note-list--full .note { border-bottom-color: rgba(8, 104, 131, .1); background: transparent; box-shadow: none; }
html[data-theme="light"] .note__date { color: #0b8399; }
html[data-theme="light"] .note h2,
html[data-theme="light"] .note h3 { color: var(--ink); }
html[data-theme="light"] .note p { color: var(--muted); }
html[data-theme="light"] .note__pin { color: #0a7f9b; background: #e9f9fd; border-color: rgba(7, 139, 169, .18); }

/* ---------- light commerce ---------- */

html[data-theme="light"] .bag__head { border-bottom-color: rgba(8, 104, 131, .14); }
html[data-theme="light"] .bag__head h1 span { color: #0b8399; }
html[data-theme="light"] .bag-item { border-bottom-color: rgba(8, 104, 131, .1); }
html[data-theme="light"] .bag-item__tier { color: var(--ink-2); }
html[data-theme="light"] .bag-item__meta { color: var(--muted); }
html[data-theme="light"] .bag-item__qty select { background: #fff; border-color: rgba(8, 110, 140, .18); color: var(--ink); }
html[data-theme="light"] .bag-item__price { color: var(--ink); }
html[data-theme="light"] .bag__foot { color: var(--muted); }
html[data-theme="light"] .summary__head { border-bottom-color: rgba(8, 104, 131, .12); }
html[data-theme="light"] .summary__head span { color: #0b8399; }
html[data-theme="light"] .summary__rows { border-top-color: rgba(8, 104, 131, .12); }
html[data-theme="light"] .summary__total { border-top-color: rgba(8, 110, 140, .18); }
html[data-theme="light"] .summary__total dd { text-shadow: none; }
html[data-theme="light"] .summary__fine .ico { color: #0b8399; }
html[data-theme="light"] .mini { border-color: rgba(8, 110, 140, .2); }
html[data-theme="light"] .mini::after { border-color: rgba(8, 110, 140, .2); }
html[data-theme="light"] .mini__code { color: #eafdff; text-shadow: 0 1px 8px rgba(2, 35, 48, .4); }
html[data-theme="light"] .mini b { color: #e2fbff; }
html[data-theme="light"] .empty .state-icon,
html[data-theme="light"] .state-icon--mail { background: #e9f9fd; border-color: rgba(7, 139, 169, .18); color: #0b8399; }
html[data-theme="light"] .state-icon--ok { background: #e9f9f2; color: #086b4e; border-color: rgba(10, 138, 100, .2); }
html[data-theme="light"] .state-icon--warn { background: #fff7e5; color: #835506; border-color: rgba(154, 98, 7, .2); }
html[data-theme="light"] .checkout__grid { border-top-color: rgba(8, 104, 131, .12); }
html[data-theme="light"] .formblock__head span { color: #0b8399; }
html[data-theme="light"] .formblock__head p,
html[data-theme="light"] .formblock__note { color: var(--muted); }
html[data-theme="light"] .formblock__note .ico { color: #0b8399; }
html[data-theme="light"] .paymethod { background: rgba(255, 255, 255, .72); border-color: rgba(8, 110, 140, .16); }
html[data-theme="light"] .paymethod:hover { border-color: rgba(7, 139, 169, .3); }
html[data-theme="light"] .paymethod:has(input:checked),
html[data-theme="light"] .paymethod.is-selected {
  background: #eaf9fd;
  border-color: rgba(7, 139, 169, .5);
  box-shadow: 0 0 0 1px rgba(7, 139, 169, .05), 0 8px 26px rgba(7, 139, 169, .1);
}
html[data-theme="light"] .paymethod__icon { background: #eaf9fd; color: #0b8399; border-color: rgba(8, 110, 140, .14); }
html[data-theme="light"] .paymethod__radio { border-color: rgba(7, 120, 150, .28); }
html[data-theme="light"] .pay__slot {
  background:
    linear-gradient(rgba(7, 139, 169, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 139, 169, .06) 1px, transparent 1px),
    rgba(255, 255, 255, .82);
  background-size: 18px 18px;
  border-color: rgba(7, 139, 169, .24);
}
html[data-theme="light"] .pay__slot-icon { background: #e9f9fd; color: #0b8399; border-color: rgba(8, 110, 140, .14); }
html[data-theme="light"] .pay__amount { border-bottom-color: rgba(8, 104, 131, .12); }
html[data-theme="light"] .pay__amount span { color: #0b8399; }
html[data-theme="light"] .pay__amount strong { text-shadow: none; }
html[data-theme="light"] .pay__method { border-bottom-color: rgba(8, 104, 131, .12); }
html[data-theme="light"] .pay__side h2 { border-bottom-color: rgba(8, 104, 131, .12); }
html[data-theme="light"] .order-hero__icon.is-paid { background: #e9f9f2; color: #086b4e; border-color: rgba(10, 138, 100, .2); box-shadow: none; }
html[data-theme="light"] .order-hero__icon.is-pending { background: #fff7e5; color: #835506; border-color: rgba(154, 98, 7, .2); }
html[data-theme="light"] .panel--note {
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(47, 159, 255, .1), transparent 60%),
    linear-gradient(180deg, #ffffff, #f1fafd);
  border-color: rgba(8, 120, 150, .18);
}
html[data-theme="light"] .keys { border-top-color: rgba(8, 104, 131, .12); }
html[data-theme="light"] .keys__label { color: #0b8399; }
html[data-theme="light"] .key { background: #f4fbfe; border-color: rgba(8, 120, 150, .2); color: var(--ink); box-shadow: none; }
html[data-theme="light"] .key code { color: #0a657b; text-shadow: none; }
html[data-theme="light"] .key__copy { background: #eaf9fd; border-color: rgba(8, 120, 150, .18); color: #0b8399; }
html[data-theme="light"] .detail-grid dt,
html[data-theme="light"] .detail-list dt { color: rgba(7, 120, 145, .55); }
html[data-theme="light"] .timeline__step > span { border-color: rgba(7, 120, 150, .25); background: #fff; }
html[data-theme="light"] .timeline__step::before { background: rgba(8, 110, 140, .14); }
html[data-theme="light"] .timeline__step p { color: var(--muted); }
html[data-theme="light"] .order-row { border-top-color: rgba(8, 104, 131, .1); }
html[data-theme="light"] .order-row:hover { background: rgba(7, 139, 169, .04); }
html[data-theme="light"] .order-row__no strong { color: #0a657b; }
html[data-theme="light"] .stat__label { color: #0b8399; }
html[data-theme="light"] .stat strong { text-shadow: none; }
html[data-theme="light"] .tabs { border-bottom-color: rgba(8, 104, 131, .12); }
html[data-theme="light"] .tab::after { box-shadow: none; }

/* ---------- light auth ---------- */

html[data-theme="light"] .page--auth {
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(47, 159, 255, .08), transparent 70%),
    #f3f9fc;
}
html[data-theme="light"] .auth-aside {
  background:
    radial-gradient(65% 55% at 82% 8%, rgba(47, 159, 255, .12), transparent 64%),
    radial-gradient(55% 45% at 15% 95%, rgba(95, 230, 255, .12), transparent 70%),
    linear-gradient(180deg, #effbff, #e3f3f9);
  border-right-color: rgba(8, 104, 131, .14);
  color: var(--ink);
}
html[data-theme="light"] .auth-aside::before { background: radial-gradient(circle, rgba(7, 139, 169, .12), transparent 62%); }
html[data-theme="light"] .auth-aside::after {
  background-image:
    linear-gradient(rgba(7, 120, 150, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 120, 150, .08) 1px, transparent 1px);
}
html[data-theme="light"] .auth-brand span { color: var(--ink); }
html[data-theme="light"] .auth-aside__body h2 { color: var(--ink); text-shadow: none; }
html[data-theme="light"] .auth-aside__note { color: var(--muted); }
html[data-theme="light"] .auth-aside__foot { color: rgba(46, 91, 106, .48); }
html[data-theme="light"] .auth-main {
  background:
    radial-gradient(60% 50% at 70% 0%, rgba(47, 159, 255, .07), transparent 68%),
    rgba(247, 252, 254, .72);
}
html[data-theme="light"] .auth-back { color: var(--muted); }
html[data-theme="light"] .auth-card {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(8, 110, 140, .16);
  box-shadow: 0 24px 60px rgba(14, 70, 94, .1), 0 0 0 1px rgba(255, 255, 255, .7) inset;
}
html[data-theme="light"] .auth-card::before { background: linear-gradient(90deg, transparent, rgba(7, 139, 169, .55), transparent); }
html[data-theme="light"] .auth-card__head h1 { color: var(--ink); }
html[data-theme="light"] .auth-card__head > p:last-child { color: var(--muted); }
html[data-theme="light"] .auth-card__head strong { color: #0b8399; }
html[data-theme="light"] .auth-alt { border-top-color: rgba(8, 104, 131, .12); color: var(--muted); }
html[data-theme="light"] .auth-alt a { color: var(--ink); text-decoration-color: rgba(7, 139, 169, .35); }
html[data-theme="light"] .auth-helpers p { color: var(--muted); }
html[data-theme="light"] .auth-legal { color: var(--muted-2); }
html[data-theme="light"] .auth-legal a { color: var(--ink-2); }
html[data-theme="light"] .demo-hint { background: #f8fcfd; border-color: rgba(8, 110, 140, .14); }
html[data-theme="light"] .demo-hint code { color: #0a7f9b; }

/* ---------- light admin ---------- */

html[data-theme="light"] .page--admin {
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(47, 159, 255, .1), transparent 64%),
    #f2f9fc;
}
html[data-theme="light"] .admin-side {
  background:
    radial-gradient(70% 40% at 20% 0%, rgba(47, 159, 255, .08), transparent 65%),
    #f8fcfd;
  border-right-color: rgba(8, 104, 131, .12);
}
html[data-theme="light"] .admin-brand strong { color: var(--ink); }
html[data-theme="light"] .admin-brand em { color: rgba(38, 85, 101, .6); }
html[data-theme="light"] .admin-nav__item { color: rgba(34, 79, 94, .7); }
html[data-theme="light"] .admin-nav__item:hover {
  background: rgba(7, 139, 169, .05);
  color: var(--ink);
}
html[data-theme="light"] .admin-nav__item.is-active {
  background: #e6f7fc;
  color: var(--ink);
  box-shadow: inset 2px 0 0 var(--tech);
}
html[data-theme="light"] .admin-nav__dot { background: var(--tech); box-shadow: none; }
html[data-theme="light"] .admin-side__foot { border-top-color: rgba(8, 104, 131, .1); }
html[data-theme="light"] .admin-user__avatar { background: #e6f7fc; color: #0b8399; border-color: rgba(7, 139, 169, .16); }
html[data-theme="light"] .admin-user span,
html[data-theme="light"] .admin-side__links a,
html[data-theme="light"] .admin-side__links button { color: var(--muted); }
html[data-theme="light"] .admin-top__eyebrow { color: #0b8399; }
html[data-theme="light"] .admin-body .panel { background: var(--panel-bg); }
html[data-theme="light"] .quick > span { background: #e7f8fc; color: #0b8399; border-color: rgba(7, 139, 169, .14); }
html[data-theme="light"] .table th {
  color: rgba(7, 96, 122, .82);
  border-bottom-color: rgba(8, 104, 131, .14);
}
html[data-theme="light"] .panel__meta { color: #527f8f; }
html[data-theme="light"] .table td {
  border-bottom-color: rgba(8, 104, 131, .1);
  color: var(--ink-2);
}
html[data-theme="light"] .table tr:hover td { background: rgba(7, 139, 169, .035); }
html[data-theme="light"] .table__actions a,
html[data-theme="light"] .table__link { color: #0a7f9b; }
html[data-theme="light"] .chart__track i {
  background: linear-gradient(180deg, #b8f3ff, #078ba9 42%, #1d6fce);
  box-shadow: 0 0 10px rgba(7, 139, 169, .12);
}
html[data-theme="light"] .rank li { border-top-color: rgba(8, 104, 131, .1); }
html[data-theme="light"] .admin-form .field textarea,
html[data-theme="light"] .admin-form .field input,
html[data-theme="light"] .admin-form .field select { background: rgba(255, 255, 255, .82); }
html[data-theme="light"] .textarea--code { background: #f2fafd !important; color: #0a5367 !important; }
html[data-theme="light"] .tier-editor__row,
html[data-theme="light"] .announce-editor { background: #f6fcfd; border-color: rgba(8, 110, 140, .14); }
html[data-theme="light"] .save-note { color: #086b4e; }

/* ---------- light CTA + footer ---------- */

html[data-theme="light"] .cta {
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(47, 159, 255, .12), transparent 68%),
    linear-gradient(180deg, #e6f5fa, #f6fcfe);
  border-top-color: rgba(8, 104, 131, .12);
  border-bottom-color: rgba(8, 104, 131, .12);
}
html[data-theme="light"] .cta::before { background: radial-gradient(circle, rgba(7, 139, 169, .12), transparent 65%); }
html[data-theme="light"] .cta .eyebrow { color: #0b8399; }
html[data-theme="light"] .cta__actions .btn--ghost { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: rgba(8, 110, 140, .18); }
html[data-theme="light"] .footer {
  background:
    radial-gradient(70% 80% at 85% 0%, rgba(47, 159, 255, .08), transparent 64%),
    linear-gradient(180deg, #f4fbfd, #e9f5fa);
  border-top-color: rgba(8, 104, 131, .14);
  color: var(--night-muted);
}
html[data-theme="light"] .footer::before {
  background-image:
    linear-gradient(rgba(8, 104, 131, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 104, 131, .04) 1px, transparent 1px);
}
html[data-theme="light"] .footer__lockup { color: var(--ink); }
html[data-theme="light"] .footer__lockup em { color: rgba(38, 85, 101, .6); }
html[data-theme="light"] .footer__brand p { color: var(--muted); }
html[data-theme="light"] .footer__mail { color: #0a7f9b; border-bottom-color: rgba(7, 139, 169, .25); }
html[data-theme="light"] .footer__label { color: #0b8399; }
html[data-theme="light"] .footer__col a { color: var(--muted); }
html[data-theme="light"] .footer__col a:hover { color: var(--ink); }
html[data-theme="light"] .footer__bottom { border-top-color: rgba(8, 104, 131, .1); }
html[data-theme="light"] .footer__note { color: rgba(7, 120, 145, .48); }

.bag-picks {
  width: 100%;
  align-self: stretch;
  margin-top: 66px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.bag-picks__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.bag-picks__head .eyebrow { margin: 0; }
.bag-picks__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.bag-pick {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.bag-pick:hover { border-color: var(--line-strong); background: rgba(95, 230, 255, .06); transform: translateY(-2px); }
.bag-pick .mini { grid-row: 1; }
.bag-pick__body { min-width: 0; }
.bag-pick__body strong { display: block; font-size: 14px; line-height: 1.3; color: var(--ink); }
.bag-pick__body span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bag-pick > b { grid-column: 3; grid-row: 1; color: var(--accent-text); font-family: var(--mono); font-size: 12px; font-weight: 500; text-align: right; white-space: nowrap; }
.bag-pick > b small { color: var(--muted); font-size: 10px; }

html[data-theme="light"] .bag-pick { background: #fff; border-color: rgba(8, 110, 140, .16); }
html[data-theme="light"] .bag-pick:hover { border-color: rgba(7, 139, 169, .38); background: #f6fcfe; }

@media (max-width: 700px) {
  .theme-toggle__label {
    display: inline;
    font-size: 9px;
    letter-spacing: .06em;
  }
  .theme-toggle { padding: 0 8px; gap: 5px; }
  .auth-theme { top: 20px; }
  .admin-top { position: relative; padding-right: 68px; }
  .admin-top .theme-toggle { position: absolute; top: 0; right: 0; }
  .admin-top__actions { width: 100%; }
  .bag-picks { margin-top: 46px; }
  .bag-picks__grid { grid-template-columns: 1fr; }
  .bag-picks__head { align-items: center; }
  .bag-pick { padding: 13px 14px; }

  .stack-row {
    grid-template-columns: 32px 1fr 24px;
    row-gap: 7px;
    align-items: start;
    padding: 22px 0;
  }
  .stack-row__no { grid-column: 1; grid-row: 1 / span 2; }
  .stack-row__name { grid-column: 2; grid-row: 1; font-size: 19px; }
  .stack-row__desc {
    display: block;
    grid-column: 2;
    grid-row: 2;
    font-size: 12.5px;
    line-height: 1.65;
    margin-top: 2px;
    color: var(--muted);
  }
  .stack-row__meta { display: none; }
  .stack-row__arrow { grid-column: 3; grid-row: 1; align-self: center; }
}
