/* ไฟล์นี้สร้างอัตโนมัติจาก style.css — อย่าแก้ตรงนี้ · แก้ที่ tools/dark-base.css แล้วรัน: node tools/gen-dark.js */
@media screen {
  /* ---------- ค่าสีหลักโทนมืด ---------- */
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0d0e1c;
    --bg-2: #14162b;
    --surface: #171a2e;
    --surface-2: #1d2037;
    --surface-3: #242842;
    --ink: #e8e9f7;
    --ink-2: #b5b8d8;
    --ink-3: #8186aa;
    --line: #2a2e4a;
    --line-2: #373c5e;
  
    --primary: #7c6cff;
    --primary-2: #9a7dff;
    --primary-ink: #b9afff;
    --primary-soft: #26224f;
    --grad-soft: linear-gradient(135deg, #1d2046 0%, #271f47 100%);
  
    --navy: #0a0c22;
    --navy-2: #121539;
    --navy-3: #1c2150;
  
    --success-soft: #0f3529; --success-ink: #6ee7b7;
    --warn-soft: #3a2b0c;    --warn-ink: #fcd34d;
    --danger-soft: #401a1f;  --danger-ink: #fca5a5;
    --info-soft: #152647;    --info-ink: #93c5fd;
    --pink-soft: #3d1630;    --pink-ink: #f9a8d4;
  
    --m-soft: #0c2d42; --m-ink: #7dd3fc;
    --a-soft: #3d230f; --a-ink: #fdba74;
    --n-soft: #29205a; --n-ink: #c4b5fd;
    --o-soft: #24273a; --o-ink: #a3a8bd;
  
    --sh-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --sh: 0 12px 32px -14px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
    --sh-lg: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 8px 18px -8px rgba(0, 0, 0, .4);
    --sh-glow: 0 10px 30px -8px rgba(124, 108, 255, .45);
  }

  /* ---------- สีจาก style.css (แปลงอัตโนมัติ) ---------- */
  @keyframes eqFlash--dk { from { background: #183b24; } to { background: transparent; } }
  @keyframes kpiBlink--dk { 0%, 100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, .45), var(--sh-sm); background: #171a2e; } 50% { box-shadow: 0 0 0 8px rgba(236, 72, 153, 0), 0 10px 26px rgba(236, 72, 153, .25); background: #371223; } }
  @keyframes mcToday--dk { 0%, 100% { background: #4f471a; } 50% { background: #76641e; } }
  @keyframes eqBlinkDown--dk { 0%, 100% { background: var(--surface-2); box-shadow: inset 4px 0 0 #dc2626, 0 0 0 0 rgba(220, 38, 38, .55); } 50% { background: #3b1515; box-shadow: inset 4px 0 0 #dc2626, 0 0 0 5px rgba(220, 38, 38, .18); } }
  @keyframes eqBlinkUp--dk { 0%, 100% { background: var(--surface-2); box-shadow: inset 4px 0 0 #16a34a, 0 0 0 0 rgba(22, 163, 74, .5); } 50% { background: #183b24; box-shadow: inset 4px 0 0 #16a34a, 0 0 0 5px rgba(22, 163, 74, .18); } }
  @keyframes eqBlinkFlap--dk { 0%, 100% { background: var(--surface-2); box-shadow: inset 4px 0 0 #f59e0b, 0 0 0 0 rgba(245, 158, 11, .5); } 50% { background: #443b18; box-shadow: inset 4px 0 0 #f59e0b, 0 0 0 5px rgba(245, 158, 11, .2); } }
  :where(html[data-theme="dark"]) body { color: var(--ink); background: var(--bg); }
  :where(html[data-theme="dark"]) a { color: var(--primary); }
  :where(html[data-theme="dark"]) ::selection { background: #1b1641; }
  :where(html[data-theme="dark"]) .bg-fx { background: radial-gradient(1200px 600px at 100% -10%, #1e153e 0%, transparent 60%),
  radial-gradient(900px 500px at -10% 110%, #141d3d 0%, transparent 60%), var(--bg); }
  :where(html[data-theme="dark"]) .bg-fx span { animation: float 18s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .bg-fx span:nth-child(1) { background: #23194a; }
  :where(html[data-theme="dark"]) .bg-fx span:nth-child(2) { background: #182848; }
  :where(html[data-theme="dark"]) .bg-fx span:nth-child(3) { background: #411f3e; }
  :where(html[data-theme="dark"]) .btn { border: 1px solid transparent; color: var(--ink); background: var(--surface); }
  :where(html[data-theme="dark"]) .btn.primary { color: #fff; background: var(--grad); }
  :where(html[data-theme="dark"]) .btn.soft { background: var(--primary-soft); color: var(--primary-ink); }
  :where(html[data-theme="dark"]) .btn.soft:hover { background: #19143d; }
  :where(html[data-theme="dark"]) .btn.ghost { background: transparent; border-color: var(--line-2); color: var(--ink-2); }
  :where(html[data-theme="dark"]) .btn.ghost:hover { background: var(--surface); border-color: #383552; color: var(--ink); }
  :where(html[data-theme="dark"]) .btn.outline { background: var(--surface); border-color: var(--line); }
  :where(html[data-theme="dark"]) .btn.danger { background: var(--danger-soft); color: var(--danger-ink); }
  :where(html[data-theme="dark"]) .btn.danger:hover { background: #411616; }
  :where(html[data-theme="dark"]) .btn.success { background: linear-gradient(135deg, #10b981, #14b8a6); color: #fff; }
  :where(html[data-theme="dark"]) .ripple { background: currentColor; animation: ripple .6s ease-out; }
  :where(html[data-theme="dark"]) .icon-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
  :where(html[data-theme="dark"]) .icon-btn:hover { color: var(--primary); border-color: #29225a; }
  :where(html[data-theme="dark"]) .icon-btn.plain { border-color: transparent; background: transparent; }
  :where(html[data-theme="dark"]) .icon-btn.pin-on { color: var(--primary-ink); background: var(--primary-soft); }
  :where(html[data-theme="dark"]) .spinner { border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
  :where(html[data-theme="dark"]) .spin-once { animation: spin .6s ease; }
  :where(html[data-theme="dark"]) .field > label,
  :where(html[data-theme="dark"]) .lbl { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .field .hint { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .input,
  :where(html[data-theme="dark"]) input[type=text],
  :where(html[data-theme="dark"]) input[type=password],
  :where(html[data-theme="dark"]) input[type=email],
  :where(html[data-theme="dark"]) input[type=date],
  :where(html[data-theme="dark"]) input[type=month],
  :where(html[data-theme="dark"]) input[type=tel],
  :where(html[data-theme="dark"]) input[type=search],
  :where(html[data-theme="dark"]) select,
  :where(html[data-theme="dark"]) textarea { color: var(--ink); background: var(--surface-2); border: 1.5px solid var(--line); outline: none; }
  :where(html[data-theme="dark"]) select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238c90b2' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }
  :where(html[data-theme="dark"]) .input:focus,
  :where(html[data-theme="dark"]) input:focus,
  :where(html[data-theme="dark"]) select:focus,
  :where(html[data-theme="dark"]) textarea:focus { border-color: var(--primary-2); background: #171a2e; }
  :where(html[data-theme="dark"]) .input-ic > .ic { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .check { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .switch span { background: #292739; }
  :where(html[data-theme="dark"]) .switch span::before { background: #171a2e; }
  :where(html[data-theme="dark"]) .switch input:checked + span { background: var(--primary); }
  :where(html[data-theme="dark"]) .seg { background: var(--surface-3); border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .seg button { border: 0; background: transparent; color: var(--ink-2); }
  :where(html[data-theme="dark"]) .seg button:hover { color: var(--ink); }
  :where(html[data-theme="dark"]) .seg button.active { background: var(--surface); color: var(--primary-ink); }
  :where(html[data-theme="dark"]) .seg.swap-mode .count { background: var(--danger, #892323); color: #fff; }
  :where(html[data-theme="dark"]) .chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); }
  :where(html[data-theme="dark"]) .chip:hover { border-color: #29235b; color: var(--primary-ink); }
  :where(html[data-theme="dark"]) .chip.active { border-color: transparent; background: var(--grad); color: #fff; }
  :where(html[data-theme="dark"]) .chip .cnt { background: rgba(0, 0, 0, .08); }
  :where(html[data-theme="dark"]) .chip.active .cnt { background: rgba(255, 255, 255, .25); }
  :where(html[data-theme="dark"]) .eq-rt-ic { background: var(--brand-soft, #1b1538); color: var(--brand, #a77de8); }
  :where(html[data-theme="dark"]) .eq-rt-total { background: #3b1515; color: #eb7e7e; }
  :where(html[data-theme="dark"]) .eq-rt-total.ok { background: #183b24; color: #a5f0c1; }
  :where(html[data-theme="dark"]) .eq-mini-chip { background: var(--surface-2, #1e1c2e); border: 1px solid var(--line); color: var(--ink-2, #c7c7c7); }
  :where(html[data-theme="dark"]) .eq-mini-chip b { color: #eb7e7e; }
  :where(html[data-theme="dark"]) button.eq-kf:hover { border-color: var(--brand, #6d28d9); }
  :where(html[data-theme="dark"]) .eq-mini-chip.active { background: var(--brand, #6d28d9); border-color: var(--brand, #6d28d9); color: #fff; }
  :where(html[data-theme="dark"]) .eq-mini-chip.active b { color: #fff; }
  :where(html[data-theme="dark"]) .eq-mini-chip.zero b { color: inherit; }
  :where(html[data-theme="dark"]) .eqh-step { border: 1px solid var(--line); background: var(--surface-2); }
  :where(html[data-theme="dark"]) .eqh-n { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
  :where(html[data-theme="dark"]) .eqh-b > b svg { color: var(--primary); }
  :where(html[data-theme="dark"]) .eqh-b p { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .eqh-b p.eqh-why { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .eqh-how { color: var(--ink); }
  :where(html[data-theme="dark"]) .eqh-how li::marker { color: var(--primary); }
  :where(html[data-theme="dark"]) .eqh-box { background: var(--primary-soft); }
  :where(html[data-theme="dark"]) .eqh-box > b { color: var(--primary-ink); }
  :where(html[data-theme="dark"]) .eqh-box kbd { border: 1px solid var(--line-2); background: var(--surface); }
  :where(html[data-theme="dark"]) .eq-rp-note { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .eq-live.flash { animation: eqFlash--dk 1.6s ease-out; }
  :where(html[data-theme="dark"]) .eq-kind { color: var(--ink); }
  :where(html[data-theme="dark"]) .eq-kind .count { background: #3b1515; color: #eb7e7e; }
  :where(html[data-theme="dark"]) .seg .count { background: rgba(137, 35, 35, 0.12); color: #eb7e7e; }
  :where(html[data-theme="dark"]) .eq-code { background: #361215; color: #f27a97; border: 1px solid #582329; }
  :where(html[data-theme="dark"]) .eq-code.fixed { background: #173527; color: #adfbe4; border-color: #2f5f49; }
  :where(html[data-theme="dark"]) .eq-sync-h { color: var(--ink); }
  :where(html[data-theme="dark"]) .eq-sync-h .count { background: #3b1515; color: #eb7e7e; }
  :where(html[data-theme="dark"]) .eq-sync-h .count.ok { background: #183b24; color: #a5f0c1; }
  :where(html[data-theme="dark"]) .eq-sync-all { color: var(--ink-3, #bfbfbf); }
  :where(html[data-theme="dark"]) .eq-sync-sus { border: 1px dashed var(--line); background: var(--surface-2, #1c182f); }
  :where(html[data-theme="dark"]) .eq-sync-sus summary { color: var(--ink-2, #c7c7c7); }
  :where(html[data-theme="dark"]) .eq-help { background: #122237; border: 1px solid #243d5c; color: #9eb2ea; }
  :where(html[data-theme="dark"]) .eq-help .eq-chg-st.dn { background: #dc2626; }
  :where(html[data-theme="dark"]) .eq-help .eq-chg-st.up { background: #16a34a; }
  :where(html[data-theme="dark"]) .eq-dot.r { background: #dc2626; }
  :where(html[data-theme="dark"]) .eq-dot.y { background: #ca8a04; }
  :where(html[data-theme="dark"]) .eq-dot.o { background: #ea580c; }
  :where(html[data-theme="dark"]) .eq-dot.g { background: #64748b; }
  :where(html[data-theme="dark"]) .eq-chg-pill { background: var(--surface-2, #1e1c2e); border: 1px solid var(--line); color: var(--ink-2, #c7c7c7); }
  :where(html[data-theme="dark"]) .eq-chg-pill.red { background: #3b1515; border-color: #632828; color: #eb7e7e; }
  :where(html[data-theme="dark"]) .eq-chg-pill.green { background: #183b24; border-color: #336947; color: #a5f0c1; }
  :where(html[data-theme="dark"]) .eq-chg { border: 1.5px solid; }
  :where(html[data-theme="dark"]) .eq-chg.red { background: #341515; border-color: #632828; }
  :where(html[data-theme="dark"]) .eq-chg.green { background: #173320; border-color: #336947; }
  :where(html[data-theme="dark"]) .eq-chg.yellow { background: #383515; border-color: #facc15; }
  :where(html[data-theme="dark"]) .eq-chg.yellow .eq-chg-st { background: #ca8a04; }
  :where(html[data-theme="dark"]) .eq-chg.gray { background: #1f242d; border-color: #3b434c; }
  :where(html[data-theme="dark"]) .eq-chg.gray .eq-chg-st { background: #64748b; }
  :where(html[data-theme="dark"]) .eq-chg-chip.red.gray { background: #1f242d; border-color: #3b434c; color: #b6bfcd; }
  :where(html[data-theme="dark"]) .eq-chg.orange { background: #382713; border-color: #fb923c; }
  :where(html[data-theme="dark"]) .eq-chg.orange .eq-chg-st { background: #ea580c; }
  :where(html[data-theme="dark"]) .eq-chg-chip.red.yellow { background: #383515; border-color: #facc15; color: #f9ce8f; }
  :where(html[data-theme="dark"]) .eq-chg-chip.red.orange { background: #382713; border-color: #fb923c; color: #f79c77; }
  :where(html[data-theme="dark"]) .eq-chg.info { background: var(--surface-2, #1c182f); border-color: var(--line); }
  :where(html[data-theme="dark"]) .eq-chg-st { color: #fff; background: #454e5c; }
  :where(html[data-theme="dark"]) .eq-chg.red .eq-chg-st { background: #dc2626; }
  :where(html[data-theme="dark"]) .eq-chg.green .eq-chg-st { background: #16a34a; }
  :where(html[data-theme="dark"]) .eq-chg-meta { color: var(--ink-2, #c7c7c7); }
  :where(html[data-theme="dark"]) .eq-chg-tag { background: #171a2e; border: 1px solid #632828; color: #eb7e7e; }
  :where(html[data-theme="dark"]) .eq-chg-sub { color: var(--muted, #b0b0b0); }
  :where(html[data-theme="dark"]) .eq-chg-chip { border: 1.5px solid; }
  :where(html[data-theme="dark"]) .eq-chg-chip.red { background: #341515; border-color: #632828; color: #eb7e7e; }
  :where(html[data-theme="dark"]) .eq-chg-chip.green { background: #173320; border-color: #336947; color: #a5f0c1; }
  :where(html[data-theme="dark"]) .eq-last-none { background: #173320; color: #a5f0c1; }
  :where(html[data-theme="dark"]) .card { background: var(--surface); border: 1px solid rgba(51, 48, 69, 0.9); }
  :where(html[data-theme="dark"]) .card.glass { background: rgba(23, 26, 46, 0.72); }
  :where(html[data-theme="dark"]) .card-head .sub { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .card-head .link { color: var(--primary); }
  :where(html[data-theme="dark"]) .h-ic { background: var(--primary-soft); color: var(--primary); }
  :where(html[data-theme="dark"]) .muted { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .empty { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .empty .e-ic { background: var(--grad-soft); color: var(--primary-2); }
  :where(html[data-theme="dark"]) .empty b { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .badge::before { background: currentColor; }
  :where(html[data-theme="dark"]) .b-pending { background: var(--warn-soft); color: var(--warn-ink); }
  :where(html[data-theme="dark"]) .b-approved { background: var(--success-soft); color: var(--success-ink); }
  :where(html[data-theme="dark"]) .b-rejected { background: var(--danger-soft); color: var(--danger-ink); }
  :where(html[data-theme="dark"]) .b-cancelled { background: var(--o-soft); color: var(--o-ink); }
  :where(html[data-theme="dark"]) .b-news { background: var(--primary-soft); color: var(--primary-ink); }
  :where(html[data-theme="dark"]) .b-alert { background: var(--warn-soft); color: var(--warn-ink); }
  :where(html[data-theme="dark"]) .b-incident { background: var(--danger-soft); color: var(--danger-ink); }
  :where(html[data-theme="dark"]) .b-hol { background: var(--pink-soft); color: var(--pink-ink); }
  :where(html[data-theme="dark"]) .b-team { background: var(--navy); color: #fff; }
  :where(html[data-theme="dark"]) .role-admin { background: #402915; color: #f8b581; }
  :where(html[data-theme="dark"]) .role-sup { background: var(--primary-soft); color: var(--primary-ink); }
  :where(html[data-theme="dark"]) .role-op { background: #1f3736; color: #acf4ef; }
  :where(html[data-theme="dark"]) .role-user { background: var(--o-soft); color: var(--o-ink); }
  :where(html[data-theme="dark"]) .role-otm { background: #463c17; color: #fadca3; }
  :where(html[data-theme="dark"]) .role-lvm { background: #1f372f; color: #aaf5db; }
  :where(html[data-theme="dark"]) .team-tag { color: #fff; }
  :where(html[data-theme="dark"]) .team-A { background: linear-gradient(135deg, #20227c, #3c1f7e); }
  :where(html[data-theme="dark"]) .team-B { background: linear-gradient(135deg, #0ea5e9, #3b82f6); }
  :where(html[data-theme="dark"]) .team-C { background: linear-gradient(135deg, #10b981, #14b8a6); }
  :where(html[data-theme="dark"]) .team-D { background: linear-gradient(135deg, #f59e0b, #f97316); }
  :where(html[data-theme="dark"]) .avatar { color: #fff; }
  :where(html[data-theme="dark"]) .avatar img { background: #171a2e; }
  :where(html[data-theme="dark"]) .pf-cam { border: 3px solid #28283e; background: var(--grad); color: #fff; }
  :where(html[data-theme="dark"]) .person .p-sub { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .chip-shift small,
  :where(html[data-theme="dark"]) .hero .h-box .v .chip-shift small { color: inherit; }
  :where(html[data-theme="dark"]) .chip-shift.s-morning { background: var(--m-soft); color: var(--m-ink); }
  :where(html[data-theme="dark"]) .chip-shift.s-afternoon { background: var(--a-soft); color: var(--a-ink); }
  :where(html[data-theme="dark"]) .chip-shift.s-night { background: #1b1538; color: #a880e8; }
  :where(html[data-theme="dark"]) .chip-shift.s-off { background: var(--o-soft); color: var(--o-ink); }
  :where(html[data-theme="dark"]) .chip-shift.s-ma { background: linear-gradient(90deg, var(--m-soft), var(--a-soft)); color: var(--a-ink); }
  :where(html[data-theme="dark"]) .chip-shift.s-an { background: linear-gradient(90deg, var(--a-soft), #1b1538); color: #bd89e8; }
  :where(html[data-theme="dark"]) .chip-shift.s-mn { background: linear-gradient(90deg, var(--m-soft), #1b1538); color: #a880e8; }
  :where(html[data-theme="dark"]) .chip-shift.s-none { background: transparent; color: var(--ink-3); }
  :where(html[data-theme="dark"]) .chip-shift.swapped::after { background: #872556; border: 2px solid #28283e; }
  :where(html[data-theme="dark"]) .ot-dot { background: linear-gradient(135deg, #f59e0b, #892323); color: #fff; }
  :where(html[data-theme="dark"]) .alert-box.ok { background: var(--success-soft); color: var(--success-ink); }
  :where(html[data-theme="dark"]) .alert-box.err { background: var(--danger-soft); color: var(--danger-ink); }
  :where(html[data-theme="dark"]) .alert-box.warn { background: var(--warn-soft); color: var(--warn-ink); }
  :where(html[data-theme="dark"]) .alert-box.info { background: var(--primary-soft); color: var(--primary-ink); }
  :where(html[data-theme="dark"]) .tabs { border-bottom: 1.5px solid var(--line); }
  :where(html[data-theme="dark"]) .tab { border: 0; background: none; color: var(--ink-3); }
  :where(html[data-theme="dark"]) .tab:hover { color: var(--ink); }
  :where(html[data-theme="dark"]) .tab.active { color: var(--primary-ink); }
  :where(html[data-theme="dark"]) .tab.active::after { background: var(--grad); }
  :where(html[data-theme="dark"]) .tab .count { background: var(--surface-3); color: var(--ink-2); }
  :where(html[data-theme="dark"]) .tab.active .count { background: var(--primary); color: #fff; }
  :where(html[data-theme="dark"]) .progress { background: var(--surface-3); }
  :where(html[data-theme="dark"]) .progress > i { background: var(--grad); }
  :where(html[data-theme="dark"]) .progress > i::after { background: linear-gradient(90deg, transparent, rgba(23, 26, 46, 0.5), transparent); animation: shimmer 2s infinite; }
  :where(html[data-theme="dark"]) .live-dot { background: #22c55e; }
  :where(html[data-theme="dark"]) .live-dot::after { background: inherit; animation: pulse 1.8s ease-out infinite; }
  :where(html[data-theme="dark"]) .table-wrap { border: 1px solid var(--line); background: var(--surface); }
  :where(html[data-theme="dark"]) table.tbl th { color: var(--ink-3); background: var(--surface-2); border-bottom: 1px solid var(--line); }
  :where(html[data-theme="dark"]) table.tbl td { border-bottom: 1px solid var(--line); }
  :where(html[data-theme="dark"]) table.tbl tr:last-child td { border-bottom: 0; }
  :where(html[data-theme="dark"]) table.tbl tbody tr:hover { background: var(--surface-2); }
  :where(html[data-theme="dark"]) table.tbl tr.me td { background: #1b1236; }
  :where(html[data-theme="dark"]) .skel { background: linear-gradient(90deg, #211e30 25%, #1c182f 50%, #211e30 75%); animation: skel 1.3s infinite; }
  :where(html[data-theme="dark"]) .fade-up { animation: fadeUp .5s var(--ease) both; }
  :where(html[data-theme="dark"]) .stagger > * { animation: fadeUp .55s var(--ease) both; }
  :where(html[data-theme="dark"]) .sidebar { background: linear-gradient(180deg, var(--navy) 0%, #191e55 55%, #1c2160 100%); color: #cfd3f5; }
  :where(html[data-theme="dark"]) .sidebar::before { background: radial-gradient(circle, rgba(49, 31, 122, 0.45), transparent 70%); }
  :where(html[data-theme="dark"]) .logo-orb.fx::before { background: conic-gradient(from var(--lg-a), #22d3ee, #512080, #872556, #20227c, #22d3ee); animation: logoSpin 4s linear infinite; }
  :where(html[data-theme="dark"]) .logo-orb.fx::after { background: linear-gradient(115deg, transparent 30%, rgba(23, 26, 46, 0.5) 48%, transparent 66%) no-repeat, var(--grad); animation: logoShine 3.6s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .logo-orb.fx .ic { animation: logoPan 4.5s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .logo-orb.fx .live-dot { background: #22c55e; border: 2px solid #28283e; animation: logoLive 1.6s ease-out infinite; }
  @media (prefers-reduced-motion: no-preference) {
    :where(html[data-theme="dark"]) .page.no-anim .logo-orb.fx .ic { animation: logoPan 4.5s ease-in-out infinite !important; }
  }
  :where(html[data-theme="dark"]) .logo-orb { color: #fff; background: var(--grad); animation: orb 5s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .sb-brand b { color: #fff; }
  :where(html[data-theme="dark"]) .sb-brand small { color: #9aa0d6; }
  :where(html[data-theme="dark"]) .sb-sec { color: #6f76b5; }
  :where(html[data-theme="dark"]) .nav-item { color: #c3c8ee; }
  :where(html[data-theme="dark"]) .nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
  :where(html[data-theme="dark"]) .nav-item.active { color: #fff; background: linear-gradient(135deg, rgba(37, 31, 124, 0.95), rgba(60, 31, 126, 0.85)); }
  :where(html[data-theme="dark"]) .nav-item .nav-badge { background: #892323; color: #fff; animation: pop .4s var(--ease); }
  :where(html[data-theme="dark"]) .sb-live { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
  :where(html[data-theme="dark"]) .sb-live .t { color: #9aa0d6; }
  :where(html[data-theme="dark"]) .sb-live .v { color: #fff; }
  :where(html[data-theme="dark"]) .sb-live .v small { color: #9aa0d6; }
  :where(html[data-theme="dark"]) .sb-live .progress { background: rgba(255, 255, 255, .1); }
  :where(html[data-theme="dark"]) .wave path { animation: waveMove 3s linear infinite; }
  :where(html[data-theme="dark"]) .sb-user { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
  :where(html[data-theme="dark"]) .sb-user:hover { background: rgba(255, 255, 255, .1); }
  :where(html[data-theme="dark"]) .sb-user .person .p-name { color: #fff; }
  :where(html[data-theme="dark"]) .sb-user .person .p-sub { color: #9aa0d6; }
  :where(html[data-theme="dark"]) .sb-user .icon-btn { background: transparent; border-color: rgba(255, 255, 255, .12); color: #c3c8ee; }
  :where(html[data-theme="dark"]) .sb-user .icon-btn:hover { color: #fff; background: rgba(123, 31, 49, 0.25); border-color: transparent; }
  :where(html[data-theme="dark"]) .topbar { background: rgba(23, 26, 46, 0.75); border: 1px solid rgba(40, 40, 62, 0.9); }
  :where(html[data-theme="dark"]) .tb-title p { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .tb-search input { background: var(--surface-2); }
  :where(html[data-theme="dark"]) .tb-search .ic { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .bell-dot { background: linear-gradient(135deg, #7b1f31, #892323); color: #fff; border: 2px solid #28283e; animation: pop .4s var(--ease); }
  :where(html[data-theme="dark"]) .icon-btn.ring .ic { animation: ring 1s ease; }
  :where(html[data-theme="dark"]) .site-tag { background: var(--primary-soft, #1b1538); color: var(--primary-ink, #8981e4); }
  :where(html[data-theme="dark"]) .demo-pill { background: var(--warn-soft); color: var(--warn-ink); }
  :where(html[data-theme="dark"]) .page { animation: pageIn .45s var(--ease) both; }
  :where(html[data-theme="dark"]) .notif-panel { background: var(--surface); border: 1px solid var(--line); animation: panelIn .25s var(--ease); }
  :where(html[data-theme="dark"]) .notif-panel .np-head { border-bottom: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .notif-item:hover { background: var(--surface-2); }
  :where(html[data-theme="dark"]) .notif-item.unread { background: #181235; }
  :where(html[data-theme="dark"]) .notif-item.unread::after { background: var(--primary); }
  :where(html[data-theme="dark"]) .notif-item p { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .notif-item time { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .toast { background: rgba(23, 26, 46, 0.95); border: 1px solid var(--line); animation: toastIn .4s var(--ease); }
  :where(html[data-theme="dark"]) .toast.out { animation: toastOut .3s ease forwards; }
  :where(html[data-theme="dark"]) .toast .t-ic { background: var(--primary-soft); color: var(--primary); }
  :where(html[data-theme="dark"]) .toast.t-success .t-ic { background: var(--success-soft); color: var(--success); }
  :where(html[data-theme="dark"]) .toast.t-error .t-ic { background: var(--danger-soft); color: var(--danger); }
  :where(html[data-theme="dark"]) .toast.t-warn .t-ic { background: var(--warn-soft); color: var(--warn); }
  :where(html[data-theme="dark"]) .toast .t-body { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .toast .t-body b { color: var(--ink); }
  :where(html[data-theme="dark"]) .toast .t-x { border: 0; background: none; color: var(--ink-3); }
  :where(html[data-theme="dark"]) .toast .t-x:hover { background: var(--surface-3); color: var(--ink); }
  :where(html[data-theme="dark"]) .modal-back { background: rgba(21, 25, 71, .38); }
  :where(html[data-theme="dark"]) .modal { background: var(--surface); }
  :where(html[data-theme="dark"]) .modal-head { border-bottom: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .modal-foot { border-top: 1px solid var(--line); background: var(--surface-2); }
  :where(html[data-theme="dark"]) .confirm-msg { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .auth-hero { color: #fff; background: radial-gradient(900px 500px at 80% 10%, rgba(81, 32, 128, 0.55), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(59, 130, 246, .45), transparent 60%), linear-gradient(160deg, #141846 0%, #1d2270 60%, #2b2393 100%); }
  :where(html[data-theme="dark"]) .auth-hero .brand small { color: #aab0e8; }
  :where(html[data-theme="dark"]) .auth-hero h1 span { background: linear-gradient(90deg, #1d264f, #2a1540, #461c4d); color: transparent; }
  :where(html[data-theme="dark"]) .auth-hero p { color: #c3c8f0; }
  :where(html[data-theme="dark"]) .auth-hero .feat { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
  :where(html[data-theme="dark"]) .auth-hero .feat .ic { color: #c4b5fd; }
  :where(html[data-theme="dark"]) .orbit { border: 1px solid rgba(255, 255, 255, .1); }
  :where(html[data-theme="dark"]) .orbit.o1 { animation: spin 40s linear infinite; }
  :where(html[data-theme="dark"]) .orbit.o2 { animation: spin 60s linear infinite reverse; }
  :where(html[data-theme="dark"]) .orbit::before { background: #2e1a6a; }
  :where(html[data-theme="dark"]) .orbit.o2::before { background: #1f487b; }
  :where(html[data-theme="dark"]) .float-card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); animation: bob 6s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .float-card small { color: #c3c8f0; }
  :where(html[data-theme="dark"]) .auth-card { background: rgba(23, 26, 46, 0.82); border: 1px solid #28283e; animation: fadeUp .6s var(--ease) both; }
  :where(html[data-theme="dark"]) .auth-card .lead { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .pw-wrap .pw-ic { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .pw-wrap button { border: 0; background: none; color: var(--ink-3); }
  :where(html[data-theme="dark"]) .demo-box { background: var(--grad-soft); border: 1px dashed #2a225b; }
  :where(html[data-theme="dark"]) .demo-box .t { color: var(--primary-ink); }
  :where(html[data-theme="dark"]) .hero { color: #fff; background: radial-gradient(600px 300px at 100% 0%, rgba(135, 37, 86, 0.35), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(59, 130, 246, .35), transparent 60%), linear-gradient(135deg, #3b2fd6 0%, #5b3df0 45%, #4d2389 100%); }
  :where(html[data-theme="dark"]) .hero::before,
  :where(html[data-theme="dark"]) .hero::after { border: 1px solid rgba(255, 255, 255, .15); }
  :where(html[data-theme="dark"]) .hero::after { border-color: rgba(255, 255, 255, .1); }
  :where(html[data-theme="dark"]) .hero .hello { color: #dcd6ff; }
  :where(html[data-theme="dark"]) .hero .date { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); }
  :where(html[data-theme="dark"]) .hero .h-box { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); }
  :where(html[data-theme="dark"]) .hero .h-box .k { color: #d8d2ff; }
  :where(html[data-theme="dark"]) .hero .h-box .v small { color: #e4dfff; }
  :where(html[data-theme="dark"]) .hero .progress { background: rgba(255, 255, 255, .18); }
  :where(html[data-theme="dark"]) .hero .progress > i { background: linear-gradient(90deg, #171a2e, #2a1540); }
  :where(html[data-theme="dark"]) .hero .chip-shift.s-night { background: #1b1538; color: #a880e8; }
  :where(html[data-theme="dark"]) .hero .h-box .k { color: #fff; }
  :where(html[data-theme="dark"]) .hero .h-box .v small { color: #fff; }
  :where(html[data-theme="dark"]) .kpi .kpi-val small { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .kpi .kpi-label { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .kpi .kpi-split b { color: var(--ink); }
  :where(html[data-theme="dark"]) .ic-violet { background: linear-gradient(135deg, #1a1339, #1e153f); color: #6d4df2; }
  :where(html[data-theme="dark"]) .ic-blue { background: linear-gradient(135deg, #14233c, #152440); color: #739bf2; }
  :where(html[data-theme="dark"]) .ic-amber { background: linear-gradient(135deg, #403315, #4a3a19); color: #f7b76e; }
  :where(html[data-theme="dark"]) .ic-green { background: linear-gradient(135deg, #1a3a2d, #1f4032); color: #98fadb; }
  :where(html[data-theme="dark"]) .ic-pink { background: linear-gradient(135deg, #381728, #3d1a2c); color: #e97cac; }
  :where(html[data-theme="dark"]) .ic-red { background: linear-gradient(135deg, #3b1414, #411616); color: #ea7b7b; }
  :where(html[data-theme="dark"]) .sn-card { background: var(--surface-2); border: 1.5px solid var(--line); }
  :where(html[data-theme="dark"]) .sn-card:hover { background: #171a2e; }
  :where(html[data-theme="dark"]) .sn-card.live { background: #171a2e; border-color: transparent; }
  :where(html[data-theme="dark"]) .sn-card .sn-live { color: #8df0b1; background: #183b24; }
  :where(html[data-theme="dark"]) .ws-day { background: var(--surface-2); border: 1.5px solid transparent; }
  :where(html[data-theme="dark"]) .ws-day:hover { background: #171a2e; }
  :where(html[data-theme="dark"]) .ws-day.today { border-color: var(--primary-2); background: #171a2e; }
  :where(html[data-theme="dark"]) .ws-day.hol { background: var(--pink-soft); }
  :where(html[data-theme="dark"]) .ws-day .d1 { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .list-item { border-bottom: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .list-item:last-child { border-bottom: 0; }
  :where(html[data-theme="dark"]) .list-item.click:hover { background: var(--surface-2); }
  :where(html[data-theme="dark"]) .li-main span { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .date-box { background: #171a2e; border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .date-box .m { background: var(--grad); color: #fff; }
  :where(html[data-theme="dark"]) .legend { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .matrix-wrap { border: 1px solid var(--line); background: var(--surface); }
  :where(html[data-theme="dark"]) table.matrix th,
  :where(html[data-theme="dark"]) table.matrix td { border-bottom: 1px solid var(--line); }
  :where(html[data-theme="dark"]) table.matrix thead th { background: var(--surface-2); color: var(--ink-3); }
  :where(html[data-theme="dark"]) table.matrix thead th:hover { background: var(--primary-soft); }
  :where(html[data-theme="dark"]) table.matrix thead th .dn { color: var(--ink); }
  :where(html[data-theme="dark"]) table.matrix thead th.we .dw { color: #ee7791; }
  :where(html[data-theme="dark"]) table.matrix thead th.hol { background: var(--pink-soft); }
  :where(html[data-theme="dark"]) table.matrix thead th.hol .dn { color: var(--pink-ink); }
  :where(html[data-theme="dark"]) table.matrix thead th.today { background: var(--grad); }
  :where(html[data-theme="dark"]) table.matrix thead th.today .dw,
  :where(html[data-theme="dark"]) table.matrix thead th.today .dn { color: #fff; }
  :where(html[data-theme="dark"]) table.matrix th.name-h,
  :where(html[data-theme="dark"]) table.matrix td.name-cell { background: var(--surface); border-right: 1px solid var(--line); }
  :where(html[data-theme="dark"]) table.matrix th.name-h { background: var(--surface-2); color: var(--ink-2); }
  :where(html[data-theme="dark"]) table.matrix td.cell.hol { background: rgba(56, 23, 40, 0.45); }
  :where(html[data-theme="dark"]) table.matrix td.cell.today { background: rgba(49, 31, 122, 0.07); }
  :where(html[data-theme="dark"]) table.matrix tr.me td.name-cell { background: #1b1236; }
  :where(html[data-theme="dark"]) table.matrix tr.me td.name-cell::before { background: var(--grad); }
  :where(html[data-theme="dark"]) table.matrix tr.team-row td { background: var(--surface-3); color: var(--ink-2); }
  :where(html[data-theme="dark"]) table.matrix tbody tr:not(.team-row):hover td { background-color: #171134; }
  :where(html[data-theme="dark"]) table.matrix tbody tr:not(.team-row):hover td.name-cell { background: #1a1237; }
  :where(html[data-theme="dark"]) .cal { background: var(--surface); border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .cal-dow { color: var(--ink-3); background: var(--surface-2); border-bottom: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .cal-dow.we { color: #ee7791; }
  :where(html[data-theme="dark"]) .cal-day { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .cal-day:nth-child(7n) { border-right: 0; }
  :where(html[data-theme="dark"]) .cal-day:hover { background: var(--surface-2); }
  :where(html[data-theme="dark"]) .cal-day.other { background: #18182d; }
  :where(html[data-theme="dark"]) .blk.cover-with { color: #f8b581; background: linear-gradient(135deg, rgba(245, 158, 11, .16), rgba(137, 35, 35, 0.13)); }
  :where(html[data-theme="dark"]) .lv-dot { background: #361829; color: #ee7aaa; }
  :where(html[data-theme="dark"]) .cal-day.today .dn { background: linear-gradient(135deg, #872556, #db2777); color: #fff; }
  :where(html[data-theme="dark"]) .cal-day.today { background: #351223 !important; }
  :where(html[data-theme="dark"]) .cal-day.today::before { background: #361829; color: #ee7aaa; }
  :where(html[data-theme="dark"]) .cal-day.hol { background: linear-gradient(180deg, #371223, #171a2e); }
  :where(html[data-theme="dark"]) .cal-day .hol-name { color: var(--pink-ink); }
  :where(html[data-theme="dark"]) .cal-day .blk { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .day-shift { border: 1.5px solid var(--line); background: var(--surface-2); }
  :where(html[data-theme="dark"]) .post-social { border-top: 1px solid var(--line, #312d44); }
  :where(html[data-theme="dark"]) .ps-link { background: none; border: 0; color: var(--ink-3); }
  :where(html[data-theme="dark"]) .ps-link:hover:not(:disabled) { color: var(--primary); }
  :where(html[data-theme="dark"]) .ps-link b { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .ps-emo-sm { background: linear-gradient(135deg, #443b18, #fbbf24); }
  :where(html[data-theme="dark"]) .ps-actions { border-top: 1px solid var(--line, #312d44); }
  :where(html[data-theme="dark"]) .ps-btn { border: 0; background: transparent; color: var(--ink-2); }
  :where(html[data-theme="dark"]) .ps-btn:hover { background: var(--surface-2, #1c1732); }
  :where(html[data-theme="dark"]) .ps-btn.ack.on { color: #f8b581; background: linear-gradient(135deg, #383113, #443b18); }
  :where(html[data-theme="dark"]) .ps-btn.ack.pop .ps-emo { animation: ackPop .7s cubic-bezier(.34, 1.56, .64, 1); }
  :where(html[data-theme="dark"]) .ps-btn.on-c { color: var(--primary); }
  :where(html[data-theme="dark"]) .ps-comments { border-top: 1px solid var(--line, #312d44); }
  :where(html[data-theme="dark"]) .pc-bubble { background: var(--surface-2, #1c1732); }
  :where(html[data-theme="dark"]) .pc-meta { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .pc-meta button { background: none; border: 0; color: var(--ink-3); }
  :where(html[data-theme="dark"]) .pc-meta button:hover { color: #ef4444; }
  :where(html[data-theme="dark"]) .pc-input { background: var(--surface-2, #1c1732); border: 1px solid transparent; }
  :where(html[data-theme="dark"]) .pc-input:focus-within { border-color: var(--primary-2, #38306e); background: #171a2e; }
  :where(html[data-theme="dark"]) .pc-input input { border: 0 !important; background: transparent !important; outline: none; }
  :where(html[data-theme="dark"]) .pc-input button { border: 0; background: var(--grad); color: #fff; }
  :where(html[data-theme="dark"]) .h-energy .en-team { color: #fff; }
  :where(html[data-theme="dark"]) .h-energy .en-role { color: #ece8ff; }
  :where(html[data-theme="dark"]) .h-energy .en-av .avatar { border: 3px solid rgba(40, 40, 62, 0.85); }
  :where(html[data-theme="dark"]) .h-energy .en-av .team-tag { border: 2px solid #28283e; }
  :where(html[data-theme="dark"]) .h-energy .en-name { color: #fff; }
  :where(html[data-theme="dark"]) .h-energy .en-state { color: #fff; }
  :where(html[data-theme="dark"]) .h-energy .en-track { background: rgba(12, 10, 48, .55); }
  :where(html[data-theme="dark"]) .h-energy .en-track i { background: linear-gradient(90deg, var(--en-a), var(--en-b)); }
  :where(html[data-theme="dark"]) .h-energy .en-knob { background: linear-gradient(135deg, var(--en-a), var(--en-b)); color: #fff; }
  :where(html[data-theme="dark"]) .h-energy .en-knob svg { fill: #fff; }
  :where(html[data-theme="dark"]) .h-energy .en-left { color: #fff; }
  :where(html[data-theme="dark"]) .h-energy .en-sub { color: #e4dfff; }
  :where(html[data-theme="dark"]) .swap-card .swap-row + .swap-row { border-top: 1px dashed var(--line, #333045); }
  :where(html[data-theme="dark"]) .feed-item { border-bottom: 1px dashed var(--line, #333045); }
  :where(html[data-theme="dark"]) .feed-item:last-child { border-bottom: 0; }
  :where(html[data-theme="dark"]) .feed-ic { color: #fff; border: 2px solid #28283e; background: var(--primary); }
  :where(html[data-theme="dark"]) .f-ok .feed-ic { background: #22c55e; }
  :where(html[data-theme="dark"]) .f-no .feed-ic { background: #892323; }
  :where(html[data-theme="dark"]) .f-cancel .feed-ic { background: #454e5c; }
  :where(html[data-theme="dark"]) .feed-main time { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .feed-state.fs-wait { background: #1b1538; color: #a880e8; }
  :where(html[data-theme="dark"]) .feed-state.fs-now { background: #183b24; color: #b8f0cd; }
  :where(html[data-theme="dark"]) .feed-state.fs-done { background: #1e262d; color: #adadc2; }
  :where(html[data-theme="dark"]) .ds-round.s-morning { background: var(--m-soft); color: var(--m-ink); }
  :where(html[data-theme="dark"]) .ds-round.s-afternoon { background: var(--a-soft); color: var(--a-ink); }
  :where(html[data-theme="dark"]) .ds-round.s-night { background: #1b1538; color: #a880e8; }
  :where(html[data-theme="dark"]) .off-line { background: var(--o-soft); color: var(--o-ink); }
  :where(html[data-theme="dark"]) .rule { background: var(--surface-2); border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .rule span { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .step:not(:last-child)::before { background: linear-gradient(var(--line-2), transparent); }
  :where(html[data-theme="dark"]) .step-num { background: var(--grad); color: #fff; }
  :where(html[data-theme="dark"]) .step-body > .lbl { color: var(--ink); }
  :where(html[data-theme="dark"]) .pick { background: var(--surface-2); border: 1.5px solid var(--line); }
  :where(html[data-theme="dark"]) .pick:hover { border-color: #29235b; }
  :where(html[data-theme="dark"]) .pick.active { border-color: var(--primary-2); background: #171a2e; }
  :where(html[data-theme="dark"]) .pick .d1 { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .pp { border: 1.5px solid var(--line); background: var(--surface-2); }
  :where(html[data-theme="dark"]) .pp:hover { border-color: #29235b; background: #171a2e; }
  :where(html[data-theme="dark"]) .pp.active { border-color: var(--primary-2); background: #171a2e; }
  :where(html[data-theme="dark"]) .owe-strip { background: linear-gradient(135deg, #382713, #3b1417); border: 1.5px solid #72502d; color: #f2ab93; }
  :where(html[data-theme="dark"]) .owe-strip b { color: #f2bba8; }
  :where(html[data-theme="dark"]) .owe-strip .owe-n { background: #ea580c; color: #fff; }
  :where(html[data-theme="dark"]) .owe-strip .small { color: #f2ab93; }
  :where(html[data-theme="dark"]) .pv-col { background: var(--surface-2); border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .pv-row .dt { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .pv-arrow { color: var(--primary-2); animation: nudge 1.4s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .swap-parties .x-ic { background: var(--grad-soft); color: var(--primary); }
  :where(html[data-theme="dark"]) .swap-card.pending .x-ic .ic { animation: spin 6s linear infinite; }
  :where(html[data-theme="dark"]) .swap-detail .sd { background: var(--surface-2); }
  :where(html[data-theme="dark"]) .swap-reason { color: var(--ink-2); border-left: 3px solid #2a2158; background: #171134; }
  :where(html[data-theme="dark"]) .composer .cp-fake { background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink-3); }
  :where(html[data-theme="dark"]) .composer .cp-fake:hover { border-color: #29235b; background: #171a2e; }
  :where(html[data-theme="dark"]) .dropzone { border: 2px dashed var(--line-2); color: var(--ink-3); background: var(--surface-2); }
  :where(html[data-theme="dark"]) .dropzone:hover,
  :where(html[data-theme="dark"]) .dropzone.over { border-color: var(--primary-2); background: var(--primary-soft); color: var(--primary-ink); }
  :where(html[data-theme="dark"]) .file-chip { background: var(--surface); border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .file-chip button { border: 0; background: none; color: var(--ink-3); }
  :where(html[data-theme="dark"]) .post .p-strip { background: var(--grad); }
  :where(html[data-theme="dark"]) .post.cat-alert .p-strip { background: linear-gradient(90deg, #f59e0b, #f97316); }
  :where(html[data-theme="dark"]) .post.cat-incident .p-strip { background: linear-gradient(90deg, #892323, #872556); }
  :where(html[data-theme="dark"]) .post-body { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .pinned-tag { color: var(--primary-ink); background: var(--primary-soft); }
  :where(html[data-theme="dark"]) .post.is-pinned { border-color: var(--primary); }
  :where(html[data-theme="dark"]) .pg-btn { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); }
  :where(html[data-theme="dark"]) .pg-btn:hover:not(:disabled):not(.active) { border-color: var(--primary); color: var(--primary-ink); }
  :where(html[data-theme="dark"]) .pg-btn.active { border-color: transparent; background: var(--grad); color: #fff; }
  :where(html[data-theme="dark"]) .pg-gap { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .pg-info { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .post.is-pinned .p-strip { background: linear-gradient(90deg, #f59e0b, #eab308); }
  :where(html[data-theme="dark"]) .att-img { background: var(--surface-3); border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .att-file { background: var(--surface-2); border: 1px solid var(--line); color: inherit; }
  :where(html[data-theme="dark"]) .att-file:hover { border-color: #29235b; background: #171a2e; }
  :where(html[data-theme="dark"]) .att-file .fx { color: #fff; background: var(--grad); }
  :where(html[data-theme="dark"]) .att-file .fx.pdf { background: linear-gradient(135deg, #892323, #f97316); }
  :where(html[data-theme="dark"]) .att-file .fx.doc,
  :where(html[data-theme="dark"]) .att-file .fx.docx { background: linear-gradient(135deg, #2563eb, #3b82f6); }
  :where(html[data-theme="dark"]) .att-file .fx.xls,
  :where(html[data-theme="dark"]) .att-file .fx.xlsx { background: linear-gradient(135deg, #059669, #10b981); }
  :where(html[data-theme="dark"]) .att-file .fn small { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .att-grid.collage .att-img { border: 0; }
  :where(html[data-theme="dark"]) .att-img[data-extra]::after { background: rgba(15, 12, 40, .5); color: #fff; }
  :where(html[data-theme="dark"]) .lb-stage { background: #0d0b1a; }
  :where(html[data-theme="dark"]) .lb-spin { color: #fff; }
  :where(html[data-theme="dark"]) .lb-nav { border: 0; background: rgba(255, 255, 255, .16); color: #fff; }
  :where(html[data-theme="dark"]) .lb-nav:hover { background: rgba(255, 255, 255, .3); }
  :where(html[data-theme="dark"]) .lb-count { color: var(--ink-3); background: var(--surface-3); }
  :where(html[data-theme="dark"]) .chat-side { border-right: 1px solid var(--line); background: rgba(25, 21, 49, 0.6); }
  :where(html[data-theme="dark"]) .chat-side .cs-head { border-bottom: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .conv:hover { background: #171a2e; }
  :where(html[data-theme="dark"]) .conv.active { background: #171a2e; }
  :where(html[data-theme="dark"]) .conv.active::before { background: var(--grad); }
  :where(html[data-theme="dark"]) .conv .c-top time { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .conv .c-last { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .conv.unread .c-last { color: var(--ink); }
  :where(html[data-theme="dark"]) .conv .c-badge { background: #892323; color: #fff; }
  :where(html[data-theme="dark"]) .cs-sec { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .chat-main { background: linear-gradient(180deg, #171a2e, #181133); }
  :where(html[data-theme="dark"]) .chat-head { border-bottom: 1px solid var(--line); background: rgba(23, 26, 46, 0.85); }
  :where(html[data-theme="dark"]) .day-sep { color: var(--ink-3); background: var(--surface-3); }
  :where(html[data-theme="dark"]) .msg { animation: msgIn .3s var(--ease) both; }
  :where(html[data-theme="dark"]) .msg-sys { background: linear-gradient(135deg, rgba(60, 31, 126, 0.1), rgba(59, 130, 246, .10)); border: 1px dashed rgba(139, 92, 246, .35); color: var(--ink-2); animation: msgIn .3s var(--ease) both; }
  :where(html[data-theme="dark"]) .msg-sys small { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .msg-sys .sys-who { color: var(--primary); }
  :where(html[data-theme="dark"]) .sw-cal .cal-day.sel { background: var(--primary-soft, #1b1538); }
  :where(html[data-theme="dark"]) .on-dot { background: #22c55e; border: 2px solid var(--surface, #28283e); animation: onPulse 2s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .on-dot.static { animation: none; }
  :where(html[data-theme="dark"]) .on-txt { color: #8df0b1; }
  :where(html[data-theme="dark"]) .msg .bubble { background: #171a2e; border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .msg.me .bubble { background: var(--grad); color: #fff; border-color: transparent; }
  :where(html[data-theme="dark"]) .msg.me .bubble a { color: #fff; }
  :where(html[data-theme="dark"]) .msg .meta { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .msg .meta .read { color: var(--primary); }
  :where(html[data-theme="dark"]) .msg .bubble .att-file { background: rgba(23, 26, 46, 0.9); color: var(--ink); }
  :where(html[data-theme="dark"]) .chat-compose { border-top: 1px solid var(--line); background: #171a2e; }
  :where(html[data-theme="dark"]) .chat-empty { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .chat-empty .big { background: var(--grad); color: #fff; animation: bob 5s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .hol-item { border-bottom: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .hol-item:last-child { border-bottom: 0; }
  :where(html[data-theme="dark"]) .hol-item.next { background: linear-gradient(90deg, #371223, transparent); }
  :where(html[data-theme="dark"]) .hol-item .date-box .m { background: linear-gradient(135deg, #872556, #8a2334); }
  :where(html[data-theme="dark"]) .ot-hours { color: var(--primary-ink); }
  :where(html[data-theme="dark"]) .team-card { background: var(--surface-2); border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .rot-preview .h { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .report-stage { background: #242231; }
  :where(html[data-theme="dark"]) .report-paper { background: #171a2e; color: #e6e6e6; }
  :where(html[data-theme="dark"]) .report-paper .rp-org { color: #d6d6d6; }
  :where(html[data-theme="dark"]) .report-paper .rp-logo { background: #1e2466; color: #fff; }
  :where(html[data-theme="dark"]) .report-paper th,
  :where(html[data-theme="dark"]) .report-paper td { border: 1px solid #444; }
  :where(html[data-theme="dark"]) .report-paper th { background: #1f1f2d; }
  :where(html[data-theme="dark"]) .report-paper .rp-stamp { border: 3px solid #16a34a; color: #8df0b1; }
  :where(html[data-theme="dark"]) .report-paper .rp-foot { color: #b8b8b8; border-top: 1px solid #32324f; }
  :where(html[data-theme="dark"]) .export-host { background: #171a2e; }
  :where(html[data-theme="dark"]) .page.no-anim,
  :where(html[data-theme="dark"]) .page.no-anim * { animation: none !important; }
  @media (max-width: 900px) {
    :where(html[data-theme="dark"]) .sb-overlay { background: rgba(21, 25, 71, .4); }
    :where(html[data-theme="dark"]) body::before { background: rgba(28, 24, 52, 0.92); }
    :where(html[data-theme="dark"]) .bottom-nav { background: rgba(23, 26, 46, 0.9); border: 1px solid #28283e; }
    :where(html[data-theme="dark"]) .bn-item { color: var(--ink-3); background: none; border: 0; }
    :where(html[data-theme="dark"]) .bn-item.active { color: var(--primary); }
    :where(html[data-theme="dark"]) .bn-item .nav-badge { background: #892323; border: 2px solid #28283e; color: #fff; }
    :where(html[data-theme="dark"]) .bn-fab .fab { background: var(--grad); color: #fff; border: 3px solid #28283e; }
  }
  @media (max-width: 640px) {
    :where(html[data-theme="dark"]) .cal-day.hol::after { background: var(--pink); }
    :where(html[data-theme="dark"]) .tbl-cards tr { border-bottom: 1px solid var(--line); }
    :where(html[data-theme="dark"]) .tbl-cards td { border: 0 !important; }
    :where(html[data-theme="dark"]) .tbl-cards td[data-l]::before { color: var(--ink-3); }
  }
  :where(html[data-theme="dark"]) .b-general { background: var(--primary-soft); color: var(--primary-ink); }
  :where(html[data-theme="dark"]) .b-equipment { background: var(--warn-soft); color: var(--warn-ink); }
  :where(html[data-theme="dark"]) .b-activity { background: var(--success-soft); color: var(--success-ink); }
  :where(html[data-theme="dark"]) .post.cat-equipment .p-strip { background: linear-gradient(90deg, #f59e0b, #f97316); }
  :where(html[data-theme="dark"]) .post.cat-activity .p-strip { background: linear-gradient(90deg, #10b981, #14b8a6); }
  :where(html[data-theme="dark"]) .post-time { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .post-time .ic { color: var(--primary-2); }
  :where(html[data-theme="dark"]) .cat-card { border: 1.5px solid var(--line); background: var(--surface-2); }
  :where(html[data-theme="dark"]) .cat-card:hover { background: #171a2e; border-color: #29235b; }
  :where(html[data-theme="dark"]) .cat-card.active { background: #171a2e; border-color: var(--primary-2); }
  :where(html[data-theme="dark"]) .lv-personal { background: var(--info-soft); color: var(--info-ink); }
  :where(html[data-theme="dark"]) .lv-sick { background: var(--pink-soft); color: var(--pink-ink); }
  :where(html[data-theme="dark"]) .lv-vacation { background: var(--warn-soft); color: var(--warn-ink); }
  :where(html[data-theme="dark"]) .lv-rules { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .chip-shift.s-work { background: var(--success-soft); color: var(--success-ink); }
  :where(html[data-theme="dark"]) .leave-cal .cal-day.day-off { background: repeating-linear-gradient(135deg, #1b1b32 0 6px, #20202e 6px 12px); }
  :where(html[data-theme="dark"]) .leave-cal .cal-day.day-off .dn { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .leave-cal .cal-day.has-leave { background: linear-gradient(180deg, #132139, #171a2e); }
  :where(html[data-theme="dark"]) .leave-cal .cal-day.has-leave.lv-s { background: linear-gradient(180deg, #371224, #171a2e); }
  :where(html[data-theme="dark"]) .leave-cal .cal-day.has-leave.lv-v { background: linear-gradient(180deg, #3b2d14, #171a2e); }
  :where(html[data-theme="dark"]) .leave-cal .cal-day.sel { background: #191237; }
  :where(html[data-theme="dark"]) .leave-cal .cal-day.sel::after { background: var(--grad); color: #fff; animation: pop .3s var(--ease); }
  :where(html[data-theme="dark"]) .leave-cal .cal-day:not(.day-off):hover { background: #181235; }
  :where(html[data-theme="dark"]) .leave-cal .cal-day.past:not(.day-off):not(.has-leave):hover { background: #171a2e; }
  :where(html[data-theme="dark"]) .cf-day { background: var(--surface-2); border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .cf-tag { background: var(--primary-soft); color: var(--primary-ink); }
  :where(html[data-theme="dark"]) .cf-tag.ret { background: var(--pink-soft); color: var(--pink-ink); }
  :where(html[data-theme="dark"]) .info-list dt { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .info-list dd { color: var(--ink); }
  :where(html[data-theme="dark"]) .hr-banner a { color: inherit; }
  :where(html[data-theme="dark"]) .mc-img { border: 1px solid var(--line); background: var(--surface-3); }
  :where(html[data-theme="dark"]) .sheet-box { border: 1px solid var(--line); background: var(--surface-2); }
  :where(html[data-theme="dark"]) .sheet-wrap { border: 1px solid var(--line); background: #171a2e; }
  :where(html[data-theme="dark"]) .sheet-wrap td,
  :where(html[data-theme="dark"]) .sheet-wrap th { border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .sheet-wrap tr:first-child td { background: var(--surface-3); }
  :where(html[data-theme="dark"]) .expire-pill { background: var(--warn-soft); color: var(--warn-ink); }
  :where(html[data-theme="dark"]) .swap-cal .cal-day.pickable:hover { background: #191237; }
  :where(html[data-theme="dark"]) .swap-cal .cal-day.is-d1 { outline: 2px dashed var(--primary-2); }
  :where(html[data-theme="dark"]) .swap-cal .cal-day.d1-cover { background: #371223; }
  :where(html[data-theme="dark"]) .kpi .kpi-arrow { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .kpi.kpi-link:hover .kpi-arrow { color: var(--primary); }
  :where(html[data-theme="dark"]) .kpi.kpi-alert { border: 1.5px solid #713253; animation: kpiBlink--dk 1.4s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .kpi.kpi-alert .kpi-ic { animation: kpiShake 1.4s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .kpi.kpi-alert .kpi-val { color: #e97cac; }
  :where(html[data-theme="dark"]) .kpi .kpi-new { background: linear-gradient(135deg, #872556, #db2777); color: #fff; animation: kpiBadge 1.4s ease-in-out infinite; }
  @media (prefers-reduced-motion: reduce) {
    :where(html[data-theme="dark"]) .kpi.kpi-alert,
    :where(html[data-theme="dark"]) .kpi.kpi-alert .kpi-ic,
    :where(html[data-theme="dark"]) .kpi .kpi-new { animation: none; }
  }
  :where(html[data-theme="dark"]) .new-posts-badge { background: linear-gradient(135deg, #872556, #db2777); color: #fff; animation: kpiBadge 1.4s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .card:has(.new-posts-badge) { border: 1.5px solid #713253; animation: kpiBlink--dk 1.4s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .list-item.is-new { background: #371223; }
  :where(html[data-theme="dark"]) .list-item.is-new .li-main b::after { background: #db2777; color: #fff; }
  @media (prefers-reduced-motion: reduce) {
    :where(html[data-theme="dark"]) .card:has(.new-posts-badge),
    :where(html[data-theme="dark"]) .new-posts-badge { animation: none; }
  }
  @media (prefers-reduced-motion: no-preference) {
    :where(html[data-theme="dark"]) .page.no-anim .kpi.kpi-alert,
    :where(html[data-theme="dark"]) .page.no-anim .card:has(.new-posts-badge) { animation: kpiBlink--dk 1.4s ease-in-out infinite !important; }
    :where(html[data-theme="dark"]) .page.no-anim .kpi.kpi-alert .kpi-ic { animation: kpiShake 1.4s ease-in-out infinite !important; }
    :where(html[data-theme="dark"]) .page.no-anim .kpi .kpi-new,
    :where(html[data-theme="dark"]) .page.no-anim .new-posts-badge { animation: kpiBadge 1.4s ease-in-out infinite !important; }
  }
  :where(html[data-theme="dark"]) .hero .orb.o1 { background: #1f487b; }
  :where(html[data-theme="dark"]) .hero .orb.o2 { background: #461c4d; }
  :where(html[data-theme="dark"]) .hero .orb.o3 { background: #2e1a6a; }
  :where(html[data-theme="dark"]) .hero .sweep { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent); }
  :where(html[data-theme="dark"]) .hero .spark { background: #171a2e; }
  :where(html[data-theme="dark"]) .hero .h-box:hover { background: rgba(255, 255, 255, .19); }
  @media (prefers-reduced-motion: no-preference) {
    :where(html[data-theme="dark"]) .hero,
    :where(html[data-theme="dark"]) .page.no-anim .hero { animation: heroShift 16s ease-in-out infinite !important; }
    :where(html[data-theme="dark"]) .hero::before,
    :where(html[data-theme="dark"]) .page.no-anim .hero::before { animation: heroRing 9s ease-in-out infinite !important; }
    :where(html[data-theme="dark"]) .hero::after,
    :where(html[data-theme="dark"]) .page.no-anim .hero::after { animation: heroRing 7s ease-in-out infinite reverse !important; }
    :where(html[data-theme="dark"]) .hero .orb.o1,
    :where(html[data-theme="dark"]) .page.no-anim .hero .orb.o1 { animation: heroFloat1 12s ease-in-out infinite !important; }
    :where(html[data-theme="dark"]) .hero .orb.o2,
    :where(html[data-theme="dark"]) .page.no-anim .hero .orb.o2 { animation: heroFloat2 14s ease-in-out infinite !important; }
    :where(html[data-theme="dark"]) .hero .orb.o3,
    :where(html[data-theme="dark"]) .page.no-anim .hero .orb.o3 { animation: heroFloat3 10s ease-in-out infinite !important; }
    :where(html[data-theme="dark"]) .hero .sweep,
    :where(html[data-theme="dark"]) .page.no-anim .hero .sweep { animation: heroSweep 7s ease-in-out infinite !important; }
    :where(html[data-theme="dark"]) .hero .spark,
    :where(html[data-theme="dark"]) .page.no-anim .hero .spark { animation: heroTwinkle 3.6s ease-in-out infinite !important; }
    :where(html[data-theme="dark"]) .hero .wave-hand,
    :where(html[data-theme="dark"]) .page.no-anim .hero .wave-hand { animation: heroWave 2.8s ease-in-out infinite !important; }
    :where(html[data-theme="dark"]) .hero .h-box { animation: heroRise .6s var(--ease) both; }
  }
  :where(html[data-theme="dark"]) .cal-owner { background: var(--primary-soft); border: 1px solid #2a2156; }
  :where(html[data-theme="dark"]) .cal-owner b { color: var(--primary-ink); }
  :where(html[data-theme="dark"]) .swap-cal .cal-day.sel { background: #1c1339; }
  :where(html[data-theme="dark"]) .shift-report { background: #171a2e; color: #e6e6e6; }
  :where(html[data-theme="dark"]) .shift-report th,
  :where(html[data-theme="dark"]) .shift-report td { border: 1px solid #222; }
  :where(html[data-theme="dark"]) .mc-form { background: #171a2e; border: 1px solid var(--line); color: #e6e6e6; }
  :where(html[data-theme="dark"]) .mcf-update { color: #c7c7c7; }
  :where(html[data-theme="dark"]) .mcf-table th,
  :where(html[data-theme="dark"]) .mcf-table td { border: 1px solid #333; }
  :where(html[data-theme="dark"]) .mcf-table th { background: #1d1d36; }
  :where(html[data-theme="dark"]) .mcf-table tr.is-past td { color: #9a9aa8; }
  :where(html[data-theme="dark"]) .mcf-table tr.is-today td { background: #4f471a; color: #e6e6e6; animation: mcToday--dk 2.4s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .mcf-table .today-tag { background: #892323; color: #fff; animation: mcTag 1.6s ease-out infinite; }
  @media (prefers-reduced-motion: reduce) {
    :where(html[data-theme="dark"]) .mcf-table tr.is-today td,
    :where(html[data-theme="dark"]) .mcf-table .today-tag { animation: none; }
  }
  :where(html[data-theme="dark"]) .mcf-table .mtb { background: #213326; color: #aff2c5; }
  :where(html[data-theme="dark"]) .mcf-legend { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .mcf-legend span::before { border: 1px solid #383857; }
  :where(html[data-theme="dark"]) .mcf-legend .lg-today::before { background: #4f471a; border-color: #f59e0b; }
  :where(html[data-theme="dark"]) .mcf-legend .lg-past::before { background: #171a2e; border-color: #3d3d5f; }
  :where(html[data-theme="dark"]) .eq-ph-latest { border: 1px solid var(--line); background: var(--surface-2, #1c182f); }
  :where(html[data-theme="dark"]) .eq-ph-img { background: #0b0b0f; }
  :where(html[data-theme="dark"]) .eq-ph-cap { color: var(--ink-2, #c7c7c7); }
  :where(html[data-theme="dark"]) .eq-ph-note { color: var(--ink, #dedede); }
  :where(html[data-theme="dark"]) .eq-ph-empty { color: var(--muted, #999); border: 1.5px dashed var(--line); }
  :where(html[data-theme="dark"]) .eq-ph-hist summary { color: var(--ink-2, #c7c7c7); }
  :where(html[data-theme="dark"]) .eq-ph-tag { background: rgba(0,0,0,.65); color: #fff; }
  :where(html[data-theme="dark"]) .eq-ph-del { background: rgba(23, 26, 46, 0.9) !important; }
  :where(html[data-theme="dark"]) .eq-ph-by { color: var(--muted, #b0b0b0); }
  :where(html[data-theme="dark"]) .eq-ph-drop { border: 2px dashed var(--line); background: var(--surface-2, #1c182f); }
  :where(html[data-theme="dark"]) .eq-ph-drop.active,
  :where(html[data-theme="dark"]) .eq-ph-drop.over { border-color: var(--brand, #6d28d9); }
  :where(html[data-theme="dark"]) .eq-ph-drop.has { background: #0b0b0f; }
  :where(html[data-theme="dark"]) .eq-ph-prev { color: var(--muted, #b0b0b0); }
  :where(html[data-theme="dark"]) .eq-sy-ph { border: 1px solid var(--line); background: var(--surface-2, #1c182f); }
  :where(html[data-theme="dark"]) .eq-sy-ph-imgs img { background: #000; }
  :where(html[data-theme="dark"]) .eq-sy-ph-imgs figcaption { background: rgba(0,0,0,.65); color: #fff; }
  :where(html[data-theme="dark"]) .eq-chg-crop { background: #0b0b0f; }
  :where(html[data-theme="dark"]) .eq-chg-crop .muted { color: #aaa; }
  :where(html[data-theme="dark"]) .eq-sf-hr { border: 0; border-top: 1px dashed var(--line); }
  :where(html[data-theme="dark"]) .eq-selbar { background: var(--surface-2, #1c182f); border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .eq-dir { color: #fff; }
  :where(html[data-theme="dark"]) .eq-dir.up { background: #16a34a; }
  :where(html[data-theme="dark"]) .eq-dir.down { background: #dc2626; }
  :where(html[data-theme="dark"]) .eq-sf-tile { border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .eq-sf-shot { background: #0b0b0f; color: #aaa; }
  :where(html[data-theme="dark"]) .eq-sf-shot .muted { color: #aaa; }
  :where(html[data-theme="dark"]) .eq-sf-prog { border: 1px solid #232e59; background: #121b37; color: #928ddd; }
  :where(html[data-theme="dark"]) .eq-sf-prog.ok { border-color: #336947; background: #173320; color: #a5f0c1; }
  :where(html[data-theme="dark"]) .eq-sf-prog.warn { border-color: #6b5e2a; background: #383113; color: #f5bc99; }
  :where(html[data-theme="dark"]) .eq-sf-prog-b { background: rgba(0,0,0,.08); }
  :where(html[data-theme="dark"]) .eq-sf-prog-b i { background: currentColor; }
  :where(html[data-theme="dark"]) .eq-bm-tip summary { color: var(--ink-2, #c7c7c7); }
  :where(html[data-theme="dark"]) .eq-bm-tip code { background: var(--surface-2, #1e1c2e); }
  :where(html[data-theme="dark"]) .eq-ls-grp { border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .eq-ls-grp.green { background: #173320; border-color: #336947; }
  :where(html[data-theme="dark"]) .eq-ls-grp.red { background: #341515; border-color: #632828; }
  :where(html[data-theme="dark"]) .eq-ls-grp.green .eq-chg-st { background: #16a34a; }
  :where(html[data-theme="dark"]) .eq-ls-grp.red .eq-chg-st { background: #dc2626; }
  :where(html[data-theme="dark"]) .eq-ls-h .count { background: #171a2e; border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .eq-ls-items .eq-chg-chip { background: #171a2e; }
  :where(html[data-theme="dark"]) .eq-ls-done { color: #a5f0c1; }
  :where(html[data-theme="dark"]) .eq-chg-hero { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; }
  :where(html[data-theme="dark"]) .eq-chg-hero .eq-chg-pill { background: rgba(23, 26, 46, 0.95); border-color: transparent; }
  :where(html[data-theme="dark"]) .eq-chg-sec.red { background: #3b1515; color: #ec9494; }
  :where(html[data-theme="dark"]) .eq-chg-sec.red .eq-chg-st { background: #dc2626; }
  :where(html[data-theme="dark"]) .eq-chg-sec.green { background: #183b24; color: #b8f0cd; }
  :where(html[data-theme="dark"]) .eq-chg-sec.green .eq-chg-st { background: #16a34a; }
  :where(html[data-theme="dark"]) .eq-chg-sec .count { background: #171a2e; }
  :where(html[data-theme="dark"]) .eq-search { background: var(--surface, #171a2e); border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .eq-search input { border: 0; outline: 0; background: transparent; }
  :where(html[data-theme="dark"]) .eq-code.ok { background: #183b24 !important; color: #a5f0c1 !important; border-color: #336947 !important; }
  :where(html[data-theme="dark"]) .eq-kind .count.ok { background: #183b24; color: #a5f0c1; }
  :where(html[data-theme="dark"]) .eq-st.down { background: #3b1515; color: #eb7e7e; }
  :where(html[data-theme="dark"]) .eq-st.ok { background: #183b24; color: #a5f0c1; }
  :where(html[data-theme="dark"]) .eq-sf-shot.na { background: #1c232a; color: #b6bfcd; border: 1.5px dashed #3b434c; }
  :where(html[data-theme="dark"]) .eq-sel-find { border: 2px solid var(--brand, #6d28d9); background: var(--surface, #171a2e); }
  :where(html[data-theme="dark"]) .eq-sel-find input { border: 0; outline: 0; background: transparent; }
  :where(html[data-theme="dark"]) .eq-sel-chip { background: #1b1538; color: #a880e8; }
  :where(html[data-theme="dark"]) .eq-sel-chip button { border: 0; background: rgba(91,33,182,.15); color: inherit; }
  :where(html[data-theme="dark"]) .eq-list-q:focus-within { border-color: var(--brand, #6d28d9); }
  :where(html[data-theme="dark"]) .ic-orange { background: linear-gradient(135deg, #402e15, #4e361b); color: #f79d6e; }
  :where(html[data-theme="dark"]) .ic-teal { background: linear-gradient(135deg, #1a4139, #1a6556); color: #97f6ee; }
  :where(html[data-theme="dark"]) .eq-watch-st { background: var(--success-soft); color: var(--success-ink); }
  :where(html[data-theme="dark"]) .eq-watch-st.warn { background: var(--warn-soft); color: var(--warn-ink); }
  :where(html[data-theme="dark"]) .eq-watch-st.wait { background: var(--info-soft); color: var(--info-ink); }
  :where(html[data-theme="dark"]) .eq-wstack { background: var(--surface); border: 1px solid var(--line-2); animation: fadeUp .25s ease; }
  :where(html[data-theme="dark"]) .eq-wstack.has-new { border-color: #632828; }
  :where(html[data-theme="dark"]) .eq-wstack-h { background: var(--grad); color: #fff; }
  :where(html[data-theme="dark"]) .eq-wstack.has-new .eq-wstack-h { background: linear-gradient(135deg, #dc2626, #f97316); animation: eqHeadBlink 1s steps(2, start) infinite; }
  :where(html[data-theme="dark"]) .eq-wstack-h .count { background: #171a2e; color: #eb7e7e; }
  :where(html[data-theme="dark"]) .eq-wstack-h .icon-btn { color: #fff; }
  :where(html[data-theme="dark"]) .eq-wcard { border: 1px solid var(--line); background: var(--surface-2); }
  :where(html[data-theme="dark"]) .eq-wcard.down .eq-chg-st { background: #dc2626; }
  :where(html[data-theme="dark"]) .eq-wcard.up .eq-chg-st { background: #16a34a; }
  :where(html[data-theme="dark"]) .eq-wcard.new.down { animation: eqBlinkDown--dk 1s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .eq-wcard.new.up { animation: eqBlinkUp--dk 1s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .eq-wcard-s { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .eq-wstack.min .eq-wstack-h { animation: none; }
  :where(html[data-theme="dark"]) .db-eq-alert { border: 1.5px solid #632828; background: linear-gradient(180deg, #351212, var(--surface) 60%); }
  :where(html[data-theme="dark"]) .db-eq-alert.has-new { animation: dbEqPulse 1.2s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .db-eq-alert-ic { background: var(--danger-soft) !important; color: var(--danger) !important; }
  :where(html[data-theme="dark"]) .db-eq-alert .t-down { color: #ea7b7b; }
  :where(html[data-theme="dark"]) .db-eq-alert .t-up { color: #8df0b1; }
  :where(html[data-theme="dark"]) .db-eq-chip { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
  :where(html[data-theme="dark"]) .db-eq-chip.down .eq-chg-st { background: #dc2626; }
  :where(html[data-theme="dark"]) .db-eq-chip.up .eq-chg-st { background: #16a34a; }
  :where(html[data-theme="dark"]) .db-eq-chip.new.down { animation: eqBlinkDown--dk 1s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .db-eq-chip.new.up { animation: eqBlinkUp--dk 1s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .db-eq-chip:hover { border-color: var(--line-2); }
  :where(html[data-theme="dark"]) .db-eq-tx-h { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .db-eq-pre { background: var(--surface-2); border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .db-eq-img { background: #0b0b12 center / contain no-repeat; border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .eq-dir.other { background: #64748b; color: #fff; }
  :where(html[data-theme="dark"]) .eq-st-dev { border: 1px solid var(--line); background: var(--surface-2); }
  :where(html[data-theme="dark"]) .eq-st-now { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .eq-st-chip { border: 1px solid var(--line-2); background: var(--surface); }
  :where(html[data-theme="dark"]) .eq-st-chip button { border: 0; background: none; color: var(--ink-2); }
  :where(html[data-theme="dark"]) .eq-st-chip .eq-st-x { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .eq-st-chip .eq-st-x:hover { color: var(--danger); }
  :where(html[data-theme="dark"]) .eq-st-chip.up button:first-child { color: #a5f0c1; }
  :where(html[data-theme="dark"]) .eq-st-chip.down button:first-child { color: #ea7b7b; }
  :where(html[data-theme="dark"]) .eq-st-chip.active { background: var(--primary); border-color: var(--primary); }
  :where(html[data-theme="dark"]) .eq-st-chip.active button { color: #fff !important; }
  :where(html[data-theme="dark"]) .eq-st-chip.up.active { background: #16a34a; border-color: #16a34a; }
  :where(html[data-theme="dark"]) .eq-st-chip.down.active { background: #dc2626; border-color: #dc2626; }
  :where(html[data-theme="dark"]) .eq-st-hint { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
  :where(html[data-theme="dark"]) .eq-st-hint .warn { color: var(--danger-ink); }
  :where(html[data-theme="dark"]) .eq-ac { background: var(--surface); border: 1px solid var(--line-2); }
  :where(html[data-theme="dark"]) .eq-ac-h { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .eq-ac-it { border: 0; background: none; color: var(--ink); }
  :where(html[data-theme="dark"]) .eq-ac-it:hover,
  :where(html[data-theme="dark"]) .eq-ac-it.hi { background: var(--primary-soft); }
  :where(html[data-theme="dark"]) .eq-ac-m { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .eq-ac-st.open { background: var(--danger-soft); color: var(--danger-ink); }
  :where(html[data-theme="dark"]) .eq-ac-st.normal { background: var(--success-soft); color: var(--success-ink); }
  :where(html[data-theme="dark"]) .eq-ac-new { color: var(--ink-3); border-top: 1px dashed var(--line); }
  :where(html[data-theme="dark"]) .eq-picked { border: 1.5px solid var(--primary); background: var(--primary-soft); }
  :where(html[data-theme="dark"]) .eq-picked .t-down { color: #ea7b7b; }
  :where(html[data-theme="dark"]) .eq-picked .t-up { color: #8df0b1; }
  :where(html[data-theme="dark"]) .eq-form-note { color: var(--ink-2); background: var(--info-soft); }
  :where(html[data-theme="dark"]) .eq-form-note .ic { color: var(--info); }
  :where(html[data-theme="dark"]) .eq-picked.bad { border-color: #ef4444; background: var(--danger-soft); }
  :where(html[data-theme="dark"]) .eq-ac-it.off:hover { background: var(--danger-soft); }
  :where(html[data-theme="dark"]) .pe-tag { background: #1b1538; color: #a880e8; border-left: 3px solid #8b5cf6; }
  :where(html[data-theme="dark"]) .pe-more { color: #a77de8; }
  @media (max-width: 900px) {
    :where(html[data-theme="dark"]) .pe-dot { background: #3c1f7e; color: #fff; }
  }
  :where(html[data-theme="dark"]) .pe-private { color: #a77de8; background: #181236; border: 1px dashed #32265e; }
  :where(html[data-theme="dark"]) .pe-time { color: #a77de8; background: #1b1538; }
  :where(html[data-theme="dark"]) .pe-item.editing { background: #181236; }
  :where(html[data-theme="dark"]) .pe-form { border: 1px solid var(--line); background: var(--surface-2); }
  :where(html[data-theme="dark"]) .cal-day.pe-sel { background: #1b1538 !important; }
  :where(html[data-theme="dark"]) .cal-day.pe-sel .dn::after { color: #fff; background: #3c1f7e; }
  :where(html[data-theme="dark"]) .pe-selbar { color: var(--ink-2); background: var(--surface); border: 1px dashed #32265e; }
  :where(html[data-theme="dark"]) .pe-selbar.on { border-color: #8b5cf6; background: #181236; color: #a880e8; }
  :where(html[data-theme="dark"]) .file-chip.pe-full small { color: var(--danger-ink); }
  :where(html[data-theme="dark"]) .pe-multi { color: #a77de8; background: #181236; }
  :where(html[data-theme="dark"]) .pe-all { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .eq-ph-auto { border: 1px solid var(--line); background: var(--surface-2); }
  :where(html[data-theme="dark"]) .eq-vms-ask { color: #f5bc99; background: #383113; border: 1px dashed #f59e0b; }
  :where(html[data-theme="dark"]) .eq-vms-ask .ic { color: #f7b76e; }
  :where(html[data-theme="dark"]) .eq-chg.vms-check.vms-ok { border-color: #ef4444; }
  :where(html[data-theme="dark"]) .eq-chg.vms-check.vms-ok .eq-vms-st { color: #eb7e7e; }
  :where(html[data-theme="dark"]) .eq-chg.vms-check.vms-skip .eq-vms-st { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .db-eq-vms { color: #f5bc99; background: #443b18; }
  :where(html[data-theme="dark"]) .eq-wcard.flap .eq-chg-st,
  :where(html[data-theme="dark"]) .db-eq-chip.flap .eq-chg-st { background: #f59e0b; }
  :where(html[data-theme="dark"]) .eq-wcard.new.flap { animation: eqBlinkFlap--dk 1s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .db-eq-chip.new.flap { animation: eqBlinkFlap--dk 1s ease-in-out infinite; }
  :where(html[data-theme="dark"]) .btn.eq-flap-btn { background: #f59e0b; color: #fff; border-color: #f59e0b; }
  :where(html[data-theme="dark"]) .btn.eq-flap-btn:hover { background: #d97706; }
  :where(html[data-theme="dark"]) .db-eq-alert .t-flap { color: #f7b76e; }
  :where(html[data-theme="dark"]) .eq-step { color: #f5bc99; background: #443b18; }
  :where(html[data-theme="dark"]) .eq-st-opt { border: 1.5px solid var(--line); background: var(--surface); }
  :where(html[data-theme="dark"]) .eq-st-opt.on { border-color: var(--primary); background: var(--primary-soft); }
  :where(html[data-theme="dark"]) .eq-st-opt.down.on { border-color: #ef4444; background: #341515; }
  :where(html[data-theme="dark"]) .eq-st-opt.up.on { border-color: #16a34a; background: #173320; }
  :where(html[data-theme="dark"]) .eq-st-opt-r { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .eq-st-k.line { background: #183b24; color: #a5f0c1; }
  :where(html[data-theme="dark"]) .eq-st-k.rep { background: #464218; color: #f9ce8f; }
  :where(html[data-theme="dark"]) .eq-st-head { border-bottom: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .eq-info-btn { border: 1px solid var(--line-2); background: var(--surface); color: var(--primary); }
  :where(html[data-theme="dark"]) .eq-info-btn:hover { background: var(--primary-soft); }
  :where(html[data-theme="dark"]) .eq-info-btn.on { background: var(--primary); color: #fff; border-color: var(--primary); }
  :where(html[data-theme="dark"]) .eq-howto { background: var(--info-soft); color: var(--ink-2); }
  :where(html[data-theme="dark"]) .eq-howto-i b { color: var(--ink); }
  :where(html[data-theme="dark"]) .eq-howto-i > div > b.a { color: #4f46e5; }
  :where(html[data-theme="dark"]) .eq-howto-i > div > b.b { color: #e97cac; }
  :where(html[data-theme="dark"]) .eq-howto-i > div > b.c { color: #f79d6e; }
  :where(html[data-theme="dark"]) .eq-howto-n { color: #fff; }
  :where(html[data-theme="dark"]) .eq-howto-n.a { background: #4f46e5; }
  :where(html[data-theme="dark"]) .eq-howto-n.b { background: #db2777; }
  :where(html[data-theme="dark"]) .eq-howto-n.c { background: #ea580c; }
  :where(html[data-theme="dark"]) .eq-cam { border: 1px dashed var(--line-2); background: var(--surface-2); }
  :where(html[data-theme="dark"]) .eq-cam.bad { border: 1px solid #632828; background: #341515; }
  :where(html[data-theme="dark"]) .eq-cam-ic { background: #16273d; color: #739bf2; }
  :where(html[data-theme="dark"]) .eq-cam.bad .eq-cam-ic { background: #3b1515; color: #ea7b7b; }
  :where(html[data-theme="dark"]) .eq-cam-t { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .eq-cam-seg { border: 1px solid var(--line-2); background: var(--surface); }
  :where(html[data-theme="dark"]) .eq-cam-seg button { border: 0; background: none; color: var(--ink-3); }
  :where(html[data-theme="dark"]) .eq-cam-seg button + button { border-left: 1px solid var(--line-2); }
  :where(html[data-theme="dark"]) .eq-cam-seg button[data-camv="1"].on { background: #16a34a; color: #fff; }
  :where(html[data-theme="dark"]) .eq-cam-seg button[data-camv="0"].on { background: #dc2626; color: #fff; }
  :where(html[data-theme="dark"]) .eq-cam-st { color: #a5f0c1; }
  :where(html[data-theme="dark"]) .eq-cam.bad .eq-cam-st { color: #eb7e7e; }
  :where(html[data-theme="dark"]) .eq-cam-by { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .eq-cam-cnt { color: #eb7e7e; background: #3b1515; }
  :where(html[data-theme="dark"]) .eq-cam-chg { border: 1px solid #336947; background: #173320; }
  :where(html[data-theme="dark"]) .eq-cam-chg.bad { border-color: #632828; background: #341515; }
  :where(html[data-theme="dark"]) .eq-cam-chg.bad .eq-cam-ic { background: #3b1515; color: #ea7b7b; }
  :where(html[data-theme="dark"]) .eq-cam-chg .t-up { color: #a5f0c1; }
  :where(html[data-theme="dark"]) .eq-cam-chg .t-down { color: #eb7e7e; }
  :where(html[data-theme="dark"]) .eq-cam-opt { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .eq-cam-manual { color: #f5bc99; background: #443b18; }
  :where(html[data-theme="dark"]) .eq-cam-opt.eq-cam-plan { background: var(--info-soft); color: var(--info-ink); }
  :where(html[data-theme="dark"]) .eqx-demo { color: #f5bc99; background: #443b18; border: 1px solid #6b5e2a; }
  :where(html[data-theme="dark"]) .eqx-title { background: #ffff00; color: #ededed; border: 1px solid #000; }
  :where(html[data-theme="dark"]) .eqx-tbl th,
  :where(html[data-theme="dark"]) .eqx-tbl td { border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .eqx-tbl th { background: #28445e; color: #ededed; }
  :where(html[data-theme="dark"]) .eqx-tbl.cam th { background: #548135; color: #fff; }
  :where(html[data-theme="dark"]) .eqx-tbl td.pos { background: #444444; color: #ededed; }
  :where(html[data-theme="dark"]) .eqx-tbl td.pos.sign { background: #ffff00; }
  :where(html[data-theme="dark"]) .eqx-tbl td.bad { background: #ff0000; color: #ededed; }
  :where(html[data-theme="dark"]) .eqx-tbl td[contenteditable]:focus { outline: 2px solid var(--brand, #2563eb); }
  :where(html[data-theme="dark"]) .eqx-tbl .nx { background: transparent; }
  :where(html[data-theme="dark"]) .eqx-tbl th.nx { background: var(--surface-3); color: var(--ink-2); }
  :where(html[data-theme="dark"]) .eq-tool { border: 1px solid var(--line); background: var(--surface-2); }
  :where(html[data-theme="dark"]) .eq-tool-h { color: var(--ink); }
  :where(html[data-theme="dark"]) .eq-tool-h svg { color: var(--primary); }
  :where(html[data-theme="dark"]) .eq-tool-h span { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .eq-tbtn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
  :where(html[data-theme="dark"]) .eq-tbtn:hover { border-color: var(--primary); }
  :where(html[data-theme="dark"]) .eq-tbtn-ic { background: var(--primary-soft); color: var(--primary); }
  :where(html[data-theme="dark"]) .eq-tbtn-t small { color: var(--ink-3); }
  :where(html[data-theme="dark"]) .eq-tbtn.dl .eq-tbtn-ic { background: var(--primary); color: #fff; }
  :where(html[data-theme="dark"]) .eq-tbtn.up .eq-tbtn-ic { background: #16a34a; color: #fff; }
  :where(html[data-theme="dark"]) .eq-tbtn.up:hover { border-color: #16a34a; }
  :where(html[data-theme="dark"]) .eq-pill.dn { background: #3b1515; color: #eb7e7e; }
  :where(html[data-theme="dark"]) .eq-pill.ok { background: #183b24; color: #a5f0c1; }
  :where(html[data-theme="dark"]) .eq-rp-hd { background: var(--surface-2); border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .eq-rp-hd-l svg { color: var(--primary); }
  :where(html[data-theme="dark"]) .eqx-err { background: #3b1515; color: #ec9494; }
  :where(html[data-theme="dark"]) .eqx-imp-grp { border: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .eqx-imp-gh { border-bottom: 1px dashed var(--line); }
  :where(html[data-theme="dark"]) .eqx-imp-det { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .sb-upd { border: 1px dashed rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: inherit; }
  :where(html[data-theme="dark"]) .sb-upd:hover { background: rgba(255,255,255,.12); }
  :where(html[data-theme="dark"]) .upd-blk + .upd-blk { border-top: 1px solid var(--line); }
  :where(html[data-theme="dark"]) .upd-date { background: var(--primary-soft); color: var(--primary-ink); }
  :where(html[data-theme="dark"]) .upd-sec { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .upd-sec.todo { color: var(--primary); }
  :where(html[data-theme="dark"]) .upd-news { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .upd-none { background: var(--success-soft); color: var(--success-ink); }
  :where(html[data-theme="dark"]) .upd-go { color: var(--primary); }
  :where(html[data-theme="dark"]) .eq-ren-note { background: var(--info-soft); color: var(--ink-2); }
  :where(html[data-theme="dark"]) .eq-ren-warn { background: var(--warn-soft, #443b18); color: #f5bc99; }
  :where(html[data-theme="dark"]) .eq-ren-list summary { color: var(--ink-2); }
  :where(html[data-theme="dark"]) .eq-ren-it { border-bottom: 1px dashed var(--line); }

  /* ---------- ปรับเอง (tools/dark-base.css) ---------- */
  /* ส่วนที่ต้องปรับเอง (อยู่ท้ายไฟล์ ทับค่าที่แปลงอัตโนมัติ) */
  :where(html[data-theme="dark"]) ::selection { background: #3d3480; }
  :where(html[data-theme="dark"]) .bg-fx span { opacity: .18; }
  :where(html[data-theme="dark"]) input, :where(html[data-theme="dark"]) select, :where(html[data-theme="dark"]) textarea { color-scheme: dark; }
  :where(html[data-theme="dark"]) img { color-scheme: normal; }
}
