/* =========================================================
   Modern Writing Lab: dark mode
   On when Settings says Dark (or "Match my device" and the device
   is dark): js/prefs.js sets <html data-theme="dark"> before paint.
   The page tokens flip here; the colored pieces (lime, sky, pink,
   night panels...) keep their light-mode look as "light islands",
   listed in the generated half below (scripts/dark.js).
   ========================================================= */
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171816;
  --paper-2: #232521;
  --card: #1F211E;
  --ink: #ECE8DF;
  --ink-2: #B4B0A7;
  --line: #ECE8DF;
  --hair: rgba(236, 232, 223, .16);
  --blue: #7D8CFF;
  --shadow-hard: 4px 4px 0 #000;
  --shadow-soft: 0 18px 40px -18px rgba(0, 0, 0, .7);
}
html[data-theme="dark"] body { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] :focus-visible { outline-color: var(--lime); }
html[data-theme="dark"] ::selection { background: #3D4A12; color: #fff; }
/* night panels sit a little apart from the night-colored page */
html[data-theme="dark"] .exhibit.dark { box-shadow: 0 0 0 2px #2E302C; }
/* photos and drawings: a touch dimmer so they don't glare */
html[data-theme="dark"] main img:not(.xm-art) { filter: brightness(.92); }

/* Night screens: the big dark panels (output screens, answer boxes, the footer,
   pop-ups) stay dark with light text, like in light mode, instead of flipping to a
   light slab. Same light tokens as the islands below, so everything inside keeps
   its light-mode colors; a thin ring keeps them apart from the dark page. */
html[data-theme="dark"] :is(.foot, .answer, .sort-result, .vs-ai .vs-out, .term-pop, .toast, .sticker[aria-pressed="true"],
  .mini-out, .mm-model, .vb-code, .ag-agent .ag-out, .race-l, .reveal-card, .pr-done, .callout-ink, .hh-q, .tt-p) {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #0E0F0D; --ink-2: #514E48; --line: #0E0F0D; --hair: rgba(243, 239, 230, .2); --blue: #7D8CFF;
}
html[data-theme="dark"] :is(.foot, .answer, .sort-result, .vs-ai .vs-out, .term-pop, .toast, .mini-out, .vb-code, .ag-agent .ag-out, .reveal-card, .pr-done, .callout-ink, .hh-q) {
  box-shadow: 0 0 0 1.5px #3A3D37;
}
html[data-theme="dark"] .callout-ink { border-color: #3A3D37; }
/* tinted colors mixed with the card on a piece that isn't an island itself: mix with the light card */
html[data-theme="dark"] .s-tang, html[data-theme="dark"] .players > .player:nth-child(6n) { --c: color-mix(in srgb, var(--tang) 30%, #FBF9F4); }
html[data-theme="dark"] .c-tang, html[data-theme="dark"] .player[data-c="tang"] { --c: color-mix(in srgb, var(--tang) 34%, #FBF9F4); }
html[data-theme="dark"] :is(.sc-society, .c-society) { --c: color-mix(in srgb, var(--lime) 42%, #FBF9F4); }

/* score bars that sit behind light text (Predict, the n-gram table): a deep tint of the color, so the words stay readable */
html[data-theme="dark"] .opt::before { background: color-mix(in srgb, var(--sky) 34%, #1F211E); }
html[data-theme="dark"] .opt:nth-child(1)::before { background: color-mix(in srgb, var(--lime) 40%, #1F211E); }

/* Calm (Settings: motion): nothing animates, nothing glides */
html.calm *, html.calm *::before, html.calm *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
  transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
}
html.calm { scroll-behavior: auto !important; }

/* ---------- first look (js/prefs.js): the first time a page opens in a visit,
   main waits a moment so its scroll-in animations can play from the start ---------- */
html.first-look:not(.first-done) main { opacity: 0; }

/* ---------- the site update box and list (js/prefs.js, UPDATE) ---------- */
.cl-box { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 2px solid var(--ink); border-radius: var(--r-l, 28px); background: var(--card, #fff); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.cl-box::-webkit-scrollbar { display: none; }
.cl-box::backdrop { background: rgba(20, 20, 20, .5); }
.cl-in { padding: 24px 22px 22px; }
.cl-k { margin: 0; font-family: var(--f-mono, monospace); font-size: 12.5px; color: var(--ink-2); }
.cl-h:focus { outline: none; }
.cl-h { margin: 4px 0 4px; font-size: clamp(26px, 5vw, 34px); letter-spacing: -.035em; line-height: 1.05; }
.cl-lede { margin: 0 0 14px; color: var(--ink-2); }
.cl-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cl-list li { padding: 10px 12px 10px 38px; position: relative; border: 1.5px solid var(--hair); border-radius: 12px; }
.cl-list li::before { content: "✓"; position: absolute; left: 11px; top: 9px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--lime, #D7F64A); color: #141414; font-size: 11px; font-weight: 800; border: 1.5px solid #141414; }
.cl-list b { display: block; font-size: 16px; }
.cl-list span { display: block; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.cl-safe { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: #DFF5E7; color: #0E3B23; font-size: 15px; line-height: 1.45; border: 1.5px solid #0E3B23; }
.cl-tokens { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.cl-tokens b { color: var(--ink); font-family: var(--f-mono, monospace); }
.cl-tokens span { display: block; font-size: 12.5px; }
.cl-where { margin: 12px 0 16px; font-size: 14.5px; line-height: 1.45; }
.cl-where a { color: var(--ink); font-weight: 700; text-decoration-color: var(--blue); text-underline-offset: 3px; }
.cl-ok { width: 100%; justify-content: center; }
@media (min-width: 700px) {
  .cl-in { padding: 28px 30px 24px; }
  .cl-box { width: min(760px, calc(100vw - 48px)); }
  .cl-list { grid-template-columns: 1fr 1fr; }
  .cl-list li:first-child { grid-column: 1 / -1; }
  .cl-list li { padding: 8px 12px 8px 38px; }
  .cl-list li::before { top: 8px; }
  .cl-list span { font-size: 14px; line-height: 1.38; }
  .cl-lede { margin-bottom: 10px; }
  .cl-safe { margin-top: 10px; padding: 8px 12px; font-size: 14.5px; }
  .cl-where { margin: 8px 0 12px; }
}
/* holiday dress (html.xmas): a candy-cane ribbon across the top with a bow, holly and a present */
.cl-box.cl-xmas { border-color: #141414; background: #FBF9F4; color: #141414; --ink: #141414; --ink-2: #514E48; --hair: rgba(20, 20, 20, .14); --card: #FBF9F4; --paper: #F3EFE6; --blue: #2340FF; }
.cl-xmas .cl-deco { position: relative; height: 34px; background: repeating-linear-gradient(-45deg, #D62A2A 0 12px, #fff 12px 24px); border-bottom: 2px solid #141414; }
.cl-xmas .cl-deco svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cl-xmas .cl-bow { position: absolute; left: 50%; top: 2px; width: 70px; height: 52px; margin-left: -35px; z-index: 1; }
.cl-xmas .cl-holly { position: absolute; left: 14px; top: 26px; width: 46px; height: 40px; z-index: 1; }
.cl-xmas .cl-gift { position: absolute; right: 16px; top: 34px; width: 54px; height: 48px; z-index: 1; }
.cl-xmas .cl-in { padding-top: 34px; }
.cl-xmas .cl-k { color: #1C7A3E; font-weight: 500; }
.cl-xmas .cl-h { color: #B3201F; font-size: clamp(32px, 6vw, 44px); }
.cl-xmas .cl-list li::before { background: #1C7A3E; color: #fff; content: "★"; font-size: 10px; }
.cl-xmas .cl-ok { background: #D62A2A; color: #fff; }
@media (min-width: 700px) { .cl-xmas .cl-in { padding-top: 24px; } .cl-xmas .cl-h { font-size: clamp(32px, 4.2vw, 42px); } }
html[data-theme="dark"] .cl-box.cl-xmas { box-shadow: 0 0 0 2px #3A3D37, 6px 6px 0 #000; }
@media (prefers-reduced-motion: no-preference) { html:not(.calm) .cl-box[open] { animation: cl-in .3s cubic-bezier(.2, .8, .2, 1); } @keyframes cl-in { from { opacity: 0; transform: translateY(14px) scale(.97); } } }

/* ===== GENERATED by scripts/dark.js (npm run dark): do not edit below ===== */
/* 404.css */
html[data-theme="dark"] .nf-code b:nth-child(1),
html[data-theme="dark"] .nf-code b:nth-child(3),
html[data-theme="dark"] .nf-claim.busted,
html[data-theme="dark"] .nf-tokens span,
html[data-theme="dark"] .nf-pred:hover,
html[data-theme="dark"] .nf-pred[aria-pressed="true"],
html[data-theme="dark"] .nf-ctx-list li:nth-child(even),
html[data-theme="dark"] .nf-ctx-list li.lost,
html[data-theme="dark"] .nf-dots li.on {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
html[data-theme="dark"] .nf-code b:nth-child(1),
html[data-theme="dark"] .nf-code b:nth-child(3),
html[data-theme="dark"] .nf-tokens span,
html[data-theme="dark"] .nf-pred:hover,
html[data-theme="dark"] .nf-pred[aria-pressed="true"],
html[data-theme="dark"] .nf-ctx-list li:nth-child(even),
html[data-theme="dark"] .nf-ctx-list li.lost,
html[data-theme="dark"] .nf-dots li.on { color: var(--ink); }

/* about.css */
html[data-theme="dark"] .badge-top,
html[data-theme="dark"] .portrait img,
html[data-theme="dark"] .portrait img,
html[data-theme="dark"] .spec-hot,
html[data-theme="dark"] .glaze,
html[data-theme="dark"] .glaze-bar i,
html[data-theme="dark"] .glaze.maxed .glaze-bar i,
html[data-theme="dark"] .cred,
html[data-theme="dark"] .robo {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
html[data-theme="dark"] .portrait img,
html[data-theme="dark"] .portrait img,
html[data-theme="dark"] .spec-hot,
html[data-theme="dark"] .glaze,
html[data-theme="dark"] .glaze-bar i,
html[data-theme="dark"] .cred,
html[data-theme="dark"] .robo { color: var(--ink); }

/* events.css */
html[data-theme="dark"] .ce-chip::before,
html[data-theme="dark"] .tl-arrow:hover,
html[data-theme="dark"] .tl-pic,
html[data-theme="dark"] .tl-date b,
html[data-theme="dark"] .tl-item.read .tl-node,
html[data-theme="dark"] .tl-now b,
html[data-theme="dark"] .tl-pic.tl-logo,
html[data-theme="dark"] .ev-shot.logo img,
html[data-theme="dark"] .ev-video .yt-btn,
html[data-theme="dark"] .qotw-in,
html[data-theme="dark"] .qotw-btn,
html[data-theme="dark"] .tips li::before,
html[data-theme="dark"] .ev-photo.logo img,
html[data-theme="dark"] .ev-nav-end .ev-next:hover,
html[data-theme="dark"] .ev-scene,
html[data-theme="dark"] .q-o.pick,
html[data-theme="dark"] .q-o.right,
html[data-theme="dark"] .rng output,
html[data-theme="dark"] .g-real,
html[data-theme="dark"] .g-real::after,
html[data-theme="dark"] .steps li.now,
html[data-theme="dark"] .yrs i,
html[data-theme="dark"] .vol-hot i,
html[data-theme="dark"] .pass li.on,
html[data-theme="dark"] .haiku,
html[data-theme="dark"] .sw[aria-pressed="true"] i,
html[data-theme="dark"] .sat-rules li,
html[data-theme="dark"] .sat-rules li.ok,
html[data-theme="dark"] .plug-bot,
html[data-theme="dark"] .plug.new .plug-net,
html[data-theme="dark"] .plug:not(.new) .plug-net,
html[data-theme="dark"] .dots i.cut,
html[data-theme="dark"] .vote-out .hbar.mine .hbar-t i,
html[data-theme="dark"].xmas .tl-item:nth-child(4n+1) .tl-node,
html[data-theme="dark"].xmas .tl-item:nth-child(4n+2) .tl-node,
html[data-theme="dark"].xmas .tl-item:nth-child(4n+3) .tl-node,
html[data-theme="dark"].xmas .tl-item:nth-child(4n) .tl-node,
html[data-theme="dark"].xmas .tl-item.read .tl-node {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
html[data-theme="dark"] .ce-chip::before,
html[data-theme="dark"] .tl-arrow:hover,
html[data-theme="dark"] .tl-pic,
html[data-theme="dark"] .tl-date b,
html[data-theme="dark"] .tl-pic.tl-logo,
html[data-theme="dark"] .ev-shot.logo img,
html[data-theme="dark"] .ev-video .yt-btn,
html[data-theme="dark"] .ev-photo.logo img,
html[data-theme="dark"] .ev-nav-end .ev-next:hover,
html[data-theme="dark"] .ev-scene,
html[data-theme="dark"] .q-o.pick,
html[data-theme="dark"] .q-o.right,
html[data-theme="dark"] .rng output,
html[data-theme="dark"] .steps li.now,
html[data-theme="dark"] .vol-hot i,
html[data-theme="dark"] .pass li.on,
html[data-theme="dark"] .sw[aria-pressed="true"] i,
html[data-theme="dark"] .sat-rules li,
html[data-theme="dark"] .sat-rules li.ok,
html[data-theme="dark"] .plug.new .plug-net,
html[data-theme="dark"] .plug:not(.new) .plug-net,
html[data-theme="dark"] .dots i.cut,
html[data-theme="dark"].xmas .tl-item:nth-child(4n+1) .tl-node,
html[data-theme="dark"].xmas .tl-item:nth-child(4n+2) .tl-node,
html[data-theme="dark"].xmas .tl-item:nth-child(4n+3) .tl-node,
html[data-theme="dark"].xmas .tl-item:nth-child(4n) .tl-node { color: var(--ink); }
@media (hover: hover) {
html[data-theme="dark"] .q-o:not([disabled]):hover {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
html[data-theme="dark"] .q-o:not([disabled]):hover { color: var(--ink); }
}

/* future.css */
html[data-theme="dark"] .lm-bar i,
html[data-theme="dark"] .fu-route a.got,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .duel-opt:not([disabled]):hover,
html[data-theme="dark"] .duel-opt.win,
html[data-theme="dark"] .duel-opt.win .duel-bar i b,
html[data-theme="dark"] .job-t i,
html[data-theme="dark"] .guess-l b,
html[data-theme="dark"] .waffle i.on,
html[data-theme="dark"] .wk-legend .k-pay::before,
html[data-theme="dark"] .hbar-hot .hbar-t i,
html[data-theme="dark"] .pl-face,
html[data-theme="dark"] .poll-g b,
html[data-theme="dark"] .poll-res .is-b .hbar-t i,
html[data-theme="dark"] .sp-a,
html[data-theme="dark"] .sp-b,
html[data-theme="dark"] .sort-b:hover:not([disabled]),
html[data-theme="dark"] .sort-item.right,
html[data-theme="dark"] .sort-item.wrong,
html[data-theme="dark"] .rc-bar[aria-pressed="true"],
html[data-theme="dark"] .rc-bar[aria-pressed="true"] .rc-t i,
html[data-theme="dark"] .reality,
html[data-theme="dark"] .reality .hbar-t,
html[data-theme="dark"] .reality .hbar-hot .hbar-t i,
html[data-theme="dark"] .partner {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
html[data-theme="dark"] .lm-bar i,
html[data-theme="dark"] .fu-route a.got,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .duel-opt:not([disabled]):hover,
html[data-theme="dark"] .duel-opt.win,
html[data-theme="dark"] .guess-l b,
html[data-theme="dark"] .pl-face,
html[data-theme="dark"] .poll-g b,
html[data-theme="dark"] .poll-res .is-b .hbar-t i,
html[data-theme="dark"] .sp-b,
html[data-theme="dark"] .sort-b:hover:not([disabled]),
html[data-theme="dark"] .sort-item.right,
html[data-theme="dark"] .sort-item.wrong,
html[data-theme="dark"] .rc-bar[aria-pressed="true"],
html[data-theme="dark"] .reality .hbar-hot .hbar-t i,
html[data-theme="dark"] .partner { color: var(--ink); }
html[data-theme="dark"] input.fu-range::-webkit-slider-thumb {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
html[data-theme="dark"] input.fu-range::-moz-range-thumb {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}

/* games.css */
html[data-theme="dark"] .gf:hover,
html[data-theme="dark"] .gc-mode.m-team::before,
html[data-theme="dark"] .gc-mode.m-both::before,
html[data-theme="dark"] .gcard.s-done .gc-link,
html[data-theme="dark"] .gcard.s-going .ac-status,
html[data-theme="dark"] .gc-over,
html[data-theme="dark"] .gc-cover,
html[data-theme="dark"] .cv-fair,
html[data-theme="dark"] .cv-ball,
html[data-theme="dark"] .cv-flag i,
html[data-theme="dark"] .cv-grid i.r0,
html[data-theme="dark"] .gc-link:hover .cv-grid i.r1,
html[data-theme="dark"] .gcard.open .cv-grid i.r1,
html[data-theme="dark"] .gc-link:hover .cv-grid i.r2,
html[data-theme="dark"] .gcard.open .cv-grid i.r2,
html[data-theme="dark"] .cv-chat i.fk,
html[data-theme="dark"] .gc-link:hover .cv-chat i.fk,
html[data-theme="dark"] .gcard.open .cv-chat i.fk,
html[data-theme="dark"] .gc-link:hover .cv-locks i,
html[data-theme="dark"] .gcard.open .cv-locks i,
html[data-theme="dark"] .tt-name span::before,
html[data-theme="dark"] .tt-team.on,
html[data-theme="dark"] .tt-team.on .tt-ts,
html[data-theme="dark"] .wd-course,
html[data-theme="dark"] .wd-green,
html[data-theme="dark"] .wd-flag i,
html[data-theme="dark"] .wd-shot.best,
html[data-theme="dark"] .wd-w:not(:disabled):hover,
html[data-theme="dark"] .wd-w.hit,
html[data-theme="dark"] .wd-why,
html[data-theme="dark"] .wd-card li.on,
html[data-theme="dark"] .cn-tab.done,
html[data-theme="dark"] .cn-tile:hover,
html[data-theme="dark"] .cn-solved.g0,
html[data-theme="dark"] .cn-solved.g1,
html[data-theme="dark"] .cn-solved.g2,
html[data-theme="dark"] .cn-solved.g3,
html[data-theme="dark"] .tt-stage,
html[data-theme="dark"] .tt-slot,
html[data-theme="dark"] .tt-slot.open,
html[data-theme="dark"] .tt-x.on,
html[data-theme="dark"] .hh-s:not(:disabled):hover,
html[data-theme="dark"] .hh-s.fake,
html[data-theme="dark"] .hh-s.fake::before,
html[data-theme="dark"] .hh-clock,
html[data-theme="dark"] .hh-clock.low span,
html[data-theme="dark"] .hh-why,
html[data-theme="dark"] .ph-loot,
html[data-theme="dark"] .ph-L,
html[data-theme="dark"] .ph-card:hover,
html[data-theme="dark"] .ph-card.q-g,
html[data-theme="dark"] .ph-card.q-v,
html[data-theme="dark"] .ph-card.q-x,
html[data-theme="dark"] .ph-prompt,
html[data-theme="dark"] .ph-lock.q-g,
html[data-theme="dark"] .ph-lock.q-v,
html[data-theme="dark"] .ph-lock.q-x {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
html[data-theme="dark"] .gf:hover,
html[data-theme="dark"] .gc-mode.m-team::before,
html[data-theme="dark"] .gc-mode.m-both::before,
html[data-theme="dark"] .gcard.s-done .gc-link,
html[data-theme="dark"] .gc-over,
html[data-theme="dark"] .gc-cover,
html[data-theme="dark"] .cv-fair,
html[data-theme="dark"] .cv-ball,
html[data-theme="dark"] .cv-flag i,
html[data-theme="dark"] .cv-grid i.r0,
html[data-theme="dark"] .gc-link:hover .cv-grid i.r1,
html[data-theme="dark"] .gcard.open .cv-grid i.r1,
html[data-theme="dark"] .gc-link:hover .cv-grid i.r2,
html[data-theme="dark"] .gcard.open .cv-grid i.r2,
html[data-theme="dark"] .cv-chat i.fk,
html[data-theme="dark"] .gc-link:hover .cv-chat i.fk,
html[data-theme="dark"] .gcard.open .cv-chat i.fk,
html[data-theme="dark"] .gc-link:hover .cv-locks i,
html[data-theme="dark"] .gcard.open .cv-locks i,
html[data-theme="dark"] .tt-name span::before,
html[data-theme="dark"] .wd-course,
html[data-theme="dark"] .wd-green,
html[data-theme="dark"] .wd-flag i,
html[data-theme="dark"] .wd-shot.best,
html[data-theme="dark"] .wd-w:not(:disabled):hover,
html[data-theme="dark"] .wd-why,
html[data-theme="dark"] .wd-card li.on,
html[data-theme="dark"] .cn-tab.done,
html[data-theme="dark"] .cn-tile:hover,
html[data-theme="dark"] .cn-solved.g0,
html[data-theme="dark"] .cn-solved.g1,
html[data-theme="dark"] .cn-solved.g2,
html[data-theme="dark"] .cn-solved.g3,
html[data-theme="dark"] .hh-s:not(:disabled):hover,
html[data-theme="dark"] .hh-s.fake,
html[data-theme="dark"] .hh-clock,
html[data-theme="dark"] .hh-why,
html[data-theme="dark"] .ph-L,
html[data-theme="dark"] .ph-card:hover,
html[data-theme="dark"] .ph-prompt,
html[data-theme="dark"] .ph-lock.q-g,
html[data-theme="dark"] .ph-lock.q-v { color: var(--ink); }

/* grade.css */
html[data-theme="dark"] .ov-meter i,
html[data-theme="dark"] .rseg,
html[data-theme="dark"] .nx-k,
html[data-theme="dark"] .rc-side,
html[data-theme="dark"] .ck.some,
html[data-theme="dark"] .some > .ck,
html[data-theme="dark"] .tchip > a:hover,
html[data-theme="dark"] .qa-row dd b,
html[data-theme="dark"] .wipe-ask {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
html[data-theme="dark"] .nx-k,
html[data-theme="dark"] .rc-side,
html[data-theme="dark"] .ck.some,
html[data-theme="dark"] .some > .ck,
html[data-theme="dark"] .tchip > a:hover { color: var(--ink); }

/* lab.css */
html[data-theme="dark"] .lm-bar i,
html[data-theme="dark"] .ac-link::before,
html[data-theme="dark"] .s-going .ac-status,
html[data-theme="dark"] .s-done .ac-link,
html[data-theme="dark"] .pl-back:hover,
html[data-theme="dark"] .pl-head,
html[data-theme="dark"] .pl-step.on,
html[data-theme="dark"] .pl-done,
html[data-theme="dark"] .ck-item.solved,
html[data-theme="dark"] .word-chip.got,
html[data-theme="dark"] .bc b,
html[data-theme="dark"] .tr-tag,
html[data-theme="dark"] .trail li.right,
html[data-theme="dark"] .pr-sentence .pw,
html[data-theme="dark"] .ng-q b,
html[data-theme="dark"] .ng-table .opt::before,
html[data-theme="dark"] .ng-table .opt:nth-child(1)::before,
html[data-theme="dark"] .c-hit,
html[data-theme="dark"] .c-next,
html[data-theme="dark"] .em-near li:first-child,
html[data-theme="dark"] .ed-tab em,
html[data-theme="dark"] .ed-line[class*=" m-"] .ed-s,
html[data-theme="dark"] .ed-tag,
html[data-theme="dark"] .ed-m,
html[data-theme="dark"] .ed-sw,
html[data-theme="dark"] .tool,
html[data-theme="dark"] .lab-report li,
html[data-theme="dark"] .roll-bar i,
html[data-theme="dark"] .roll-row:first-of-type .roll-bar i,
html[data-theme="dark"] .ed-key-big li,
html[data-theme="dark"] .ed-key .ed-sw,
html[data-theme="dark"] .up-step.bad,
html[data-theme="dark"] .up-screen,
html[data-theme="dark"] .up-safe,
html[data-theme="dark"] .tl li:nth-child(odd)::before,
html[data-theme="dark"] .hf-list li::before {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
html[data-theme="dark"] .lm-bar i,
html[data-theme="dark"] .ac-link::before,
html[data-theme="dark"] .s-done .ac-link,
html[data-theme="dark"] .pl-back:hover,
html[data-theme="dark"] .pl-head,
html[data-theme="dark"] .pl-done,
html[data-theme="dark"] .ck-item.solved,
html[data-theme="dark"] .word-chip.got,
html[data-theme="dark"] .bc b,
html[data-theme="dark"] .tr-tag,
html[data-theme="dark"] .trail li.right,
html[data-theme="dark"] .pr-sentence .pw,
html[data-theme="dark"] .ng-q b,
html[data-theme="dark"] .ng-table .opt::before,
html[data-theme="dark"] .ng-table .opt:nth-child(1)::before,
html[data-theme="dark"] .c-hit,
html[data-theme="dark"] .c-next,
html[data-theme="dark"] .em-near li:first-child,
html[data-theme="dark"] .ed-line[class*=" m-"] .ed-s,
html[data-theme="dark"] .ed-tag,
html[data-theme="dark"] .ed-m,
html[data-theme="dark"] .ed-sw,
html[data-theme="dark"] .tool,
html[data-theme="dark"] .lab-report li,
html[data-theme="dark"] .roll-bar i,
html[data-theme="dark"] .roll-row:first-of-type .roll-bar i,
html[data-theme="dark"] .ed-key-big li,
html[data-theme="dark"] .ed-key .ed-sw,
html[data-theme="dark"] .up-step.bad,
html[data-theme="dark"] .up-safe,
html[data-theme="dark"] .tl li:nth-child(odd)::before { color: var(--ink); }

/* settings.css */
html[data-theme="dark"] .sw[aria-checked="true"],
html[data-theme="dark"] .sw-knob,
html[data-theme="dark"] .st-note,
html[data-theme="dark"] .st-stage,
html[data-theme="dark"] .st-ground,
html[data-theme="dark"] .st-flake,
html[data-theme="dark"] .th-opt[aria-checked="true"],
html[data-theme="dark"] .th-sw-light,
html[data-theme="dark"] .th-sw-light i,
html[data-theme="dark"] .th-sw-dark,
html[data-theme="dark"] .th-sw-dark i,
html[data-theme="dark"] .th-sw-auto,
html[data-theme="dark"] .th-sw-auto i,
html[data-theme="dark"] .st-look,
html[data-theme="dark"] .st-look.dark,
html[data-theme="dark"] .lk-sun,
html[data-theme="dark"] .st-look.dark .lk-sun,
html[data-theme="dark"] .lk-win,
html[data-theme="dark"] .lk-bar,
html[data-theme="dark"] .lk-bar i,
html[data-theme="dark"] .lk-h,
html[data-theme="dark"] .lk-c,
html[data-theme="dark"] .lk-lime,
html[data-theme="dark"] .st-look.dark .lk-win,
html[data-theme="dark"] .st-look.dark .lk-bar,
html[data-theme="dark"] .st-look.dark .lk-h,
html[data-theme="dark"] .st-look.dark .lk-c,
html[data-theme="dark"] .scrooge,
html[data-theme="dark"] .scrooge-in,
html[data-theme="dark"] .scrooge-btns .btn {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
html[data-theme="dark"] .sw[aria-checked="true"],
html[data-theme="dark"] .sw-knob,
html[data-theme="dark"] .st-note,
html[data-theme="dark"] .st-ground,
html[data-theme="dark"] .st-flake,
html[data-theme="dark"] .th-sw-light,
html[data-theme="dark"] .th-sw-dark i,
html[data-theme="dark"] .th-sw-auto,
html[data-theme="dark"] .th-sw-auto i,
html[data-theme="dark"] .st-look,
html[data-theme="dark"] .lk-sun,
html[data-theme="dark"] .st-look.dark .lk-sun,
html[data-theme="dark"] .lk-win,
html[data-theme="dark"] .lk-bar,
html[data-theme="dark"] .lk-bar i,
html[data-theme="dark"] .lk-c,
html[data-theme="dark"] .lk-lime,
html[data-theme="dark"] .st-look.dark .lk-h,
html[data-theme="dark"] .scrooge-in { color: var(--ink); }

/* site.css */
html[data-theme="dark"] .wm-l,
html[data-theme="dark"] .wm-caret,
html[data-theme="dark"] .notes-btn:hover,
html[data-theme="dark"] .rooms-btn:hover,
html[data-theme="dark"] .notes-dot,
html[data-theme="dark"] .rooms-btn:hover,
html[data-theme="dark"] .term[aria-expanded="true"],
html[data-theme="dark"] .tp-split span,
html[data-theme="dark"] .chip:hover,
html[data-theme="dark"] .chip.dragging,
html[data-theme="dark"] .pb-ghost::after,
html[data-theme="dark"] .pb-send,
html[data-theme="dark"] .pb-send:hover,
html[data-theme="dark"] .exhibit.dark,
html[data-theme="dark"] .placard-dark .placard-no,
html[data-theme="dark"] .ex-editor .ex-title em,
html[data-theme="dark"] .tk,
html[data-theme="dark"] .meter-hot,
html[data-theme="dark"] .pcard.active,
html[data-theme="dark"] .model,
html[data-theme="dark"] .model-layers i::after,
html[data-theme="dark"] .out .cursor,
html[data-theme="dark"] .nw[aria-pressed="true"],
html[data-theme="dark"] .mood-bar,
html[data-theme="dark"] .mood-bar i,
html[data-theme="dark"] .pred-sentence .w-new,
html[data-theme="dark"] .opt::before,
html[data-theme="dark"] .opt:nth-child(1)::before,
html[data-theme="dark"] .btn,
html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .btn-ghost[aria-pressed="true"],
html[data-theme="dark"] .pc-text mark,
html[data-theme="dark"] .sticker,
html[data-theme="dark"] .sus.flagged,
html[data-theme="dark"] .sus.cleared,
html[data-theme="dark"] .note,
html[data-theme="dark"] .goal-tag,
html[data-theme="dark"] .room,
html[data-theme="dark"] .room:hover .rt-games i:nth-child(3n+1),
html[data-theme="dark"] .room:hover .rt-games i:nth-child(5),
html[data-theme="dark"] .rt-future i:nth-child(4),
html[data-theme="dark"] .map-room,
html[data-theme="dark"] .map-room:nth-of-type(2),
html[data-theme="dark"] .map-room:nth-of-type(3),
html[data-theme="dark"] .map-room:nth-of-type(4),
html[data-theme="dark"] .map-room:nth-of-type(5),
html[data-theme="dark"] .scard.lean-yes,
html[data-theme="dark"] .scard.lean-no,
html[data-theme="dark"] .scard.v-right,
html[data-theme="dark"] .scard.v-wrong,
html[data-theme="dark"] .v-wrong .v-mark,
html[data-theme="dark"] .loop-step[aria-selected="true"],
html[data-theme="dark"] .lp-bar i,
html[data-theme="dark"] .lp-typed .cursor,
html[data-theme="dark"] .lp-sugg button:first-child,
html[data-theme="dark"] .vs-ai .cursor {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
html[data-theme="dark"] .wm-l,
html[data-theme="dark"] .notes-btn:hover,
html[data-theme="dark"] .rooms-btn:hover,
html[data-theme="dark"] .notes-dot,
html[data-theme="dark"] .chip:hover,
html[data-theme="dark"] .chip.dragging,
html[data-theme="dark"] .pb-send,
html[data-theme="dark"] .ex-editor .ex-title em,
html[data-theme="dark"] .pcard.active,
html[data-theme="dark"] .model-layers i::after,
html[data-theme="dark"] .mood-bar i,
html[data-theme="dark"] .pred-sentence .w-new,
html[data-theme="dark"] .opt::before,
html[data-theme="dark"] .opt:nth-child(1)::before,
html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .btn-ghost[aria-pressed="true"],
html[data-theme="dark"] .sticker,
html[data-theme="dark"] .sus.flagged,
html[data-theme="dark"] .sus.cleared,
html[data-theme="dark"] .note,
html[data-theme="dark"] .goal-tag,
html[data-theme="dark"] .room,
html[data-theme="dark"] .room:hover .rt-games i:nth-child(3n+1),
html[data-theme="dark"] .map-room,
html[data-theme="dark"] .map-room:nth-of-type(2),
html[data-theme="dark"] .map-room:nth-of-type(3),
html[data-theme="dark"] .map-room:nth-of-type(4),
html[data-theme="dark"] .map-room:nth-of-type(5),
html[data-theme="dark"] .scard.lean-yes,
html[data-theme="dark"] .scard.lean-no,
html[data-theme="dark"] .scard.v-right,
html[data-theme="dark"] .scard.v-wrong,
html[data-theme="dark"] .lp-bar i,
html[data-theme="dark"] .lp-sugg button:first-child,
html[data-theme="dark"] .vs-ai .cursor { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
html[data-theme="dark"] .term:hover {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
}
html[data-theme="dark"] input[type="range"]::-webkit-slider-runnable-track {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
html[data-theme="dark"] input[type="range"]::-webkit-slider-runnable-track { color: var(--ink); }
html[data-theme="dark"] input[type="range"]::-moz-range-track {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
html[data-theme="dark"] input[type="range"]::-moz-range-track { color: var(--ink); }

/* terms.css */
html[data-theme="dark"] .st-dots i.on,
html[data-theme="dark"] .station.done,
html[data-theme="dark"] .station.done .st-n,
html[data-theme="dark"] .rail-stop.on .rail-n,
html[data-theme="dark"] .rail-stop.done .rail-n,
html[data-theme="dark"] .rail-terms a.got::before,
html[data-theme="dark"] a.race-k:hover,
html[data-theme="dark"] .kt-tag,
html[data-theme="dark"] .toy-badge,
html[data-theme="dark"] .w-new,
html[data-theme="dark"] .pick:hover,
html[data-theme="dark"] .pick.right,
html[data-theme="dark"] .pick.wrong,
html[data-theme="dark"] .seg-b[aria-pressed="true"],
html[data-theme="dark"] .so-verdict,
html[data-theme="dark"] .so-verdict.no,
html[data-theme="dark"] .so-bin:hover:not(:disabled),
html[data-theme="dark"] .so-bin.right,
html[data-theme="dark"] .so-bin.wrong,
html[data-theme="dark"] .ta[aria-pressed="true"],
html[data-theme="dark"] .checked .ta.right,
html[data-theme="dark"] .checked .ta.wrong,
html[data-theme="dark"] .ml-bar i,
html[data-theme="dark"] .nw-in[aria-pressed="true"],
html[data-theme="dark"] .scale,
html[data-theme="dark"] .scale i,
html[data-theme="dark"] .llm-b::before,
html[data-theme="dark"] .ng-s span.in,
html[data-theme="dark"] .emb-w.on,
html[data-theme="dark"] .emb-w.near,
html[data-theme="dark"] .cw-m.you,
html[data-theme="dark"] .tw-b i,
html[data-theme="dark"] .tw-b:first-child i,
html[data-theme="dark"] .pt-shelf i,
html[data-theme="dark"] .pt-shelf i:nth-child(3n),
html[data-theme="dark"] .pt-shelf i:nth-child(4n),
html[data-theme="dark"] .pt-shelf i:nth-child(5n),
html[data-theme="dark"] .mm-b[aria-pressed="true"],
html[data-theme="dark"] .show-instr .pp-instr,
html[data-theme="dark"] .show-frame .pp-frame,
html[data-theme="dark"] .show-cons .pp-cons,
html[data-theme="dark"] .pp-b-instr[aria-pressed="true"],
html[data-theme="dark"] .pp-b-frame[aria-pressed="true"],
html[data-theme="dark"] .pp-b-cons[aria-pressed="true"],
html[data-theme="dark"] .ch-p span,
html[data-theme="dark"] .ch-chip.keep,
html[data-theme="dark"] .sy-switch[aria-pressed="true"] .sy-dot,
html[data-theme="dark"] .hl-c i,
html[data-theme="dark"] .hl-s.caught,
html[data-theme="dark"] .hl-s.ok,
html[data-theme="dark"] .dw-ava,
html[data-theme="dark"] .agi-r b,
html[data-theme="dark"] .agi.dream .agi-r b,
html[data-theme="dark"] .got-btn .notes-dot,
html[data-theme="dark"] .rl-terms a.got {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
html[data-theme="dark"] .station.done,
html[data-theme="dark"] .rail-stop.done .rail-n,
html[data-theme="dark"] a.race-k:hover,
html[data-theme="dark"] .kt-tag,
html[data-theme="dark"] .toy-badge,
html[data-theme="dark"] .w-new,
html[data-theme="dark"] .pick:hover,
html[data-theme="dark"] .pick.right,
html[data-theme="dark"] .pick.wrong,
html[data-theme="dark"] .so-verdict,
html[data-theme="dark"] .so-verdict.no,
html[data-theme="dark"] .so-bin:hover:not(:disabled),
html[data-theme="dark"] .so-bin.right,
html[data-theme="dark"] .so-bin.wrong,
html[data-theme="dark"] .ta[aria-pressed="true"],
html[data-theme="dark"] .checked .ta.right,
html[data-theme="dark"] .checked .ta.wrong,
html[data-theme="dark"] .nw-in[aria-pressed="true"],
html[data-theme="dark"] .scale i,
html[data-theme="dark"] .llm-b::before,
html[data-theme="dark"] .ng-s span.in,
html[data-theme="dark"] .emb-w.near,
html[data-theme="dark"] .tw-b:first-child i,
html[data-theme="dark"] .pt-shelf i,
html[data-theme="dark"] .pt-shelf i:nth-child(3n),
html[data-theme="dark"] .pt-shelf i:nth-child(4n),
html[data-theme="dark"] .pt-shelf i:nth-child(5n),
html[data-theme="dark"] .show-instr .pp-instr,
html[data-theme="dark"] .show-frame .pp-frame,
html[data-theme="dark"] .show-cons .pp-cons,
html[data-theme="dark"] .ch-chip.keep,
html[data-theme="dark"] .sy-switch[aria-pressed="true"] .sy-dot,
html[data-theme="dark"] .hl-s.caught,
html[data-theme="dark"] .hl-s.ok,
html[data-theme="dark"] .dw-ava,
html[data-theme="dark"] .agi.dream .agi-r b,
html[data-theme="dark"] .rl-terms a.got { color: var(--ink); }
@media (min-width: 1000px) {
html[data-theme="dark"] .station:hover .st-n,
html[data-theme="dark"] .station.done .st-n {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
html[data-theme="dark"] .station:hover .st-n { color: var(--ink); }
}

/* xmas.css */
html[data-theme="dark"] .xm-lights i,
html[data-theme="dark"] .xm-lights i::before,
html[data-theme="dark"] .xm-lights i::after,
html[data-theme="dark"] .xm-hang .xm-j::before,
html[data-theme="dark"] .xm-note,
html[data-theme="dark"].xmas ::selection,
html[data-theme="dark"].xmas .btn:not(.btn-ghost):not(:disabled),
html[data-theme="dark"].xmas .btn-ghost:hover,
html[data-theme="dark"].xmas .btn-ghost[aria-pressed="true"] {
  --paper: #F3EFE6; --paper-2: #E8E1D2; --card: #FBF9F4; --ink: #141414; --ink-2: #514E48; --line: #141414; --hair: rgba(20, 20, 20, .14); --blue: #2340FF;
}
html[data-theme="dark"] .xm-lights i,
html[data-theme="dark"] .xm-lights i::after,
html[data-theme="dark"].xmas ::selection,
html[data-theme="dark"].xmas .btn-ghost:hover,
html[data-theme="dark"].xmas .btn-ghost[aria-pressed="true"] { color: var(--ink); }
