/* Dark mode (generated by tools/make-dark.js from css/style.css; hand-made rules at the end). html.dark is set by js/theme.js. */
html.dark {
  --bg: #0f1613; --cream: #1b2520; --ink: #e8efe9; --ink-soft: #9fb0a6; --line: rgba(255, 255, 255, .1);
  --green-soft: #12301f; --gold-soft: #3a2f12; --rose-soft: #3b1a1c; --blue-soft: #152640; --violet-soft: #241c3d;
  --panel: rgba(22, 31, 27, .94); --surface: #18221d; --surface-2: #212d27;
  --shadow: 0 10px 34px rgba(0, 0, 0, .5); --shadow-sm: 0 3px 10px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
html.dark .panel { border: 1px solid rgba(255,255,255,.12); }
html.dark .chip.time { background: var(--surface); }
html.dark .sheet { background: var(--surface); }
html.dark .act:hover:not(:disabled) { background: var(--surface); }
html.dark .act .ai { background: var(--surface); }
html.dark .card.w { background: var(--surface); }
html.dark .who .av { background: var(--surface); }
html.dark .phone .screen { background: var(--surface); }
html.dark .homebar { background: var(--surface); }
html.dark .fullscreen { background: var(--surface); }
html.dark .roundbtn { background: var(--surface); }
html.dark .cform { background: var(--surface); }
html.dark .field:focus { background: var(--surface); }
html.dark .modal .box { background: var(--surface); }
html.dark .grad.A { background: var(--surface); }
html.dark .grad.B { background: var(--surface); }
html.dark .grad.C { background: var(--surface); }
html.dark .grad.D, html.dark .grad.E { background: var(--surface); }
html.dark .grad.F { background: var(--surface); color: var(--ink); }
html.dark #walletbar { background: var(--surface); }
html.dark #homebar { background: var(--surface); }
html.dark .walletcard { background: var(--surface); }
html.dark #shotbtn { background: var(--surface); }
html.dark .peerdot .pv { background: var(--surface); }
html.dark .csbtn { border: 1px solid var(--line, rgba(255,255,255,.12)); background: var(--surface); }
html.dark .chbtn { background: var(--surface); }
html.dark .csrow { border: 1px solid var(--line, rgba(255,255,255,.12)); background: var(--surface); }
html.dark .chatform { background: var(--surface); }
html.dark .chatform input:focus { background: var(--surface); }
html.dark .formrow input:focus { background: var(--surface); }
html.dark .tabs button.on { background: var(--surface); }
html.dark .irm { background: var(--surface); }
html.dark .irl { color: var(--ink); background: var(--surface); }
html.dark .isn { color: var(--ink); background: var(--surface); }
html.dark .iwho .av { background: var(--surface); }
html.dark .ped-card { background: var(--surface); }
html.dark .wfall .wf-sheet { background: var(--surface); }
html.dark .gd details { background: var(--surface); }
html.dark .ul-welcome .wc { background: var(--surface); }
html.dark #interior { background: var(--surface); }
html.dark .edpill { background: var(--surface); }
html.dark .int-edit { background: var(--surface); }
html.dark .chipb { background: var(--surface); }
html.dark .cat-tabs button { background: var(--surface); }
html.dark .cat-card { background: var(--surface); }
html.dark .dmbar { background: var(--surface); }
html.dark .dmpill.green { background: var(--surface); }
html.dark .dmpill.blue { background: var(--surface); }
html.dark .dmpill.gold { background: var(--surface); }
html.dark .dmpill.rose { background: var(--surface); color: var(--ink); }
html.dark .syscard { background: var(--surface); color: var(--ink); }
html.dark .syscard.food { background: var(--surface); color: var(--ink); }
html.dark .syscard.invite { background: var(--surface); color: var(--ink); }
html.dark .odd { background: var(--surface); }
html.dark .ped-sel + .ped-row.pcol, html.dark .ped-row.pcol { background: var(--surface); }
html.dark .stylechip { background: var(--surface); }
html.dark .msg.mine .voice .vp { background: var(--surface); }
html.dark .msg.mine .vwave i.on { background: var(--surface); }
html.dark .replybar { background: var(--surface); }
html.dark .replybar button { background: var(--surface); }
html.dark .chatform .mic { background: var(--surface); }
html.dark .recbar { background: var(--surface); }
html.dark .recbar .rcx { background: var(--surface); }
html.dark .syscard.money.pub { background: var(--surface); }
html.dark .syscard.howto { background: var(--surface); color: var(--ink); }
html.dark .howland { background: var(--surface); }
html.dark .howland .hl-bar { background: var(--surface); }
html.dark .stk { border: calc(var(--s, 112px) * .045) solid rgba(255,255,255,.12); }
html.dark .stkpanel { background: var(--surface); }
html.dark .stktabs button.on { background: var(--surface); }
html.dark .chatform .stkbtn { background: var(--surface); }
html.dark .shotflash { background: var(--surface); }
html.dark .chatform .attbtn { background: var(--surface); }
html.dark .rfount .rf-ring { border: 1.5px solid rgba(255,255,255,.12); }
html.dark .s3hud button { background: var(--surface); }
html.dark .gpost { background: var(--surface); }
html.dark .phone .pdots i.on { background: var(--surface); }
html.dark .phone .screen .pbtm { background: var(--surface); }
html.dark .phone .screen .pbtn { background: var(--surface); }
html.dark .phone .screen { background: var(--surface); color: var(--ink); }
html.dark .phone .screen .hd2 { background: var(--surface); }
html.dark .phone .screen .act { background: var(--surface); }
@media (max-width: 899px) { html.dark body.phone-open #shotbtn { background: var(--surface); } }
html.dark .wrow.mine { background: var(--surface); }
html.dark .qopt .qa { background: var(--surface); color: var(--ink); }
html.dark .qopt.qright { background: var(--surface) !important; }
html.dark .qopt.qwrong { background: var(--surface) !important; }
html.dark .saverpic { background: var(--surface); }
html.dark #clearbtn { background: var(--surface); }
html.dark .chatform .atbtn { background: var(--surface); color: var(--ink); }
html.dark .atpanel { background: var(--surface); }
html.dark .atm { color: var(--ink); background: var(--surface); }
html.dark .atm.me { background: var(--surface); }
html.dark .pinbar { background: var(--surface); border-bottom: 1px solid rgba(255,255,255,.12); }
html.dark .fkbox { background: var(--surface); color: var(--ink); }
html.dark .fkbox .fkbtn.ghost { background: var(--surface); color: var(--ink); }
html.dark .fkextra { background: var(--surface); }
html.dark .wcard { background: var(--surface); color: var(--ink); }
html.dark .wcard.back { border: 3px solid rgba(255,255,255,.12); }
html.dark .shp { border: 2px solid rgba(255,255,255,.12); background: var(--surface); }
html.dark .die { background: var(--surface); }
html.dark .chess .sq.l { background: var(--surface); }
html.dark .hs-card { background: var(--surface); }
html.dark .hs-feat { background: var(--surface); color: var(--ink); }
html.dark .hl-mine { background: var(--surface); }
html.dark .hl-tabs button { background: var(--surface); }
html.dark .hs-room { background: var(--surface); }
html.dark .ed-tool { background: var(--surface); }
html.dark .ed-tool::after { background: var(--surface); }
html.dark .et-row button { background: var(--surface); }
html.dark .st-poses button { background: var(--surface); }
html.dark .st-zoom { background: var(--surface); }
html.dark .st-sheet { background: var(--surface); }
html.dark .st-tabs button { background: var(--surface); }
html.dark .st-tile { background: var(--surface); }
html.dark .st-sws .sw.none { background: var(--surface); }
html.dark .st-chips button { background: var(--surface); }
html.dark .txlist { background: var(--surface); }
html.dark .actlive .al-tag i { background: var(--surface); }
html.dark .rc-card { background: var(--surface); }
html.dark .rc-card tr.me td { background: var(--surface); }
html.dark .carpic { background: var(--surface); }
html.dark .rm-joy { border: 2px solid rgba(255,255,255,.12); }
html.dark .toast.nb { background: var(--surface); color: var(--ink); }
html.dark .gsug button { background: var(--surface); }
html.dark .chkb .sq.l { background: var(--surface); }
html.dark.lite .toast.nb { background: var(--surface); }
html.dark .chatform { background: var(--surface); }
html.dark .chatform input { background: var(--surface); }
html.dark .chatform input:focus { background: var(--surface); }
html.dark .chatform .stkbtn:active, html.dark .chatform .atbtn:active, html.dark .chatform .attbtn:active, html.dark .chatform .mic:active { background: var(--surface); }
html.dark .rm-steer i { border: 2px solid rgba(255,255,255,.12); }
html.dark .rm-fz button { background: var(--surface); color: var(--ink); }
html.dark .pinrow.sugpin { background: var(--surface); }
html.dark .navcard { background: var(--surface); }
html.dark .navcard .nvh button { background: var(--surface); }
html.dark .navcard .nvp { background: var(--surface); }
html.dark .navcard .nvb button { background: var(--surface); }
html.dark .navcard .nvline button { background: var(--surface); }

/* hand-made: cards with light inline colours keep dark writing; fields; the phone's white screens */
html.dark [style*="background:linear-gradient(135deg,#f"], html.dark [style*="background:linear-gradient(135deg,#e"], html.dark [style*="background:linear-gradient(135deg,#d"],
html.dark [style*="background: linear-gradient(135deg, #f"], html.dark [style*="background:#fff"] { color: #17261e; }
html.dark [style*="background:linear-gradient(135deg,#f"] .mini, html.dark [style*="background:linear-gradient(135deg,#e"] .mini, html.dark [style*="background:linear-gradient(135deg,#d"] .mini { color: #44534a; }
html.dark input, html.dark select, html.dark textarea { background: var(--surface-2); color: var(--ink); border-color: rgba(255, 255, 255, .14); }
html.dark input::placeholder, html.dark textarea::placeholder { color: #7f9187; }
html.dark .card.w, html.dark .act { background: var(--surface-2); }
html.dark .phone .screen { --cream: #212d27; }
html.dark .act:hover:not(:disabled) { background: #26332c; }
html.dark .navcard { background: #18221d; color: var(--ink); }
html.dark .navcard .nvh button, html.dark .navcard .nvb button:not([data-n="show"]), html.dark .navcard .nvline button { background: #263229; color: var(--ink); }
html.dark .navcard .nvsay, html.dark .navcard .nvline .nvl { color: #93c5fd; }

/* hand-made (2026-10-18): the map's place labels and the notification banners read well in dark mode */
html.dark .pill { background: rgba(26, 36, 31, .95); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .1); }
html.dark .pill .dot { background: #6d7d74; }
html.dark .pill.sel { background: var(--green); color: #fff; }
html.dark .toast.nb .nb-body { color: var(--ink); }
html.dark .toast.nb .nb-top, html.dark .toast.nb .nb-top b { color: #9fb0a6; }
html.dark .chip.money, html.dark .edpill.money { color: #6fe0a4; }
html.dark .pstat, html.dark .ptime { color: #e8efe9; }
html.dark .walletcard .big { color: #c4b5fd; }
html.dark .seg.on { background: var(--green); color: #fff; }
html.dark [style*="background:var(--gold-soft)"] .mini, html.dark [style*="background:var(--gold-soft)"] [style*="color:#5a4300"] { color: #f3d58a !important; }

/* the chat: tags, the new messages line */
html.dark .newline { color: #6fe0a4; }
html.dark .newline::before, html.dark .newline::after { background: #6fe0a4; }
html.dark .newline span { background: rgba(111, 224, 164, .14); }
html.dark .tagbar { background: var(--surface); border-bottom: 1px solid rgba(255,255,255,.12); }
html.dark .tagbar .tagrow { color: var(--ink); }
html.dark .tagbar .tgs { color: #6fe0a4; }
html.dark .tagbar .tagx { color: var(--ink-soft); }
/* hangouts and the sat-nav (js/hangout.js, js/satnav.js) */
html.dark .ih-b:not(.inv):not(.on) { background: rgba(24, 34, 29, .94); color: var(--ink); border-color: rgba(255, 255, 255, .12); }
html.dark .hg-f { background: var(--surface-2); }
html.dark .hg-f.on { background: #12301f; }
html.dark .hg-c { border-color: rgba(255, 255, 255, .3); }
html.dark .hg-q { background: var(--surface-2); }
html.dark .hg-inv-av span { background: var(--surface-2); }
html.dark .sn-bar, html.dark .sn-app { background: #141c18; color: #e8efe9; }
html.dark .sn-fields, html.dark .sn-search, html.dark .sn-ri, html.dark .sn-x { background: #1f2a24; color: #e8efe9; }
html.dark .sn-in, html.dark .sn-swap { background: #141c18; }
html.dark .sn-in small, html.dark .sn-rt small, html.dark .sn-steps small, html.dark .sn-none, html.dark .sn-sum span { color: #9fb0a6; }
html.dark .sn-search input { color: #e8efe9; }
html.dark .sn-row:active, html.dark .sn-row:hover { background: #1f2a24; }
html.dark .sn-chips button { background: #172540; color: #93b4ff; }
html.dark .sn-sum b { color: #4ade80; }
html.dark .sn-eta { background: rgba(20, 28, 24, .96); color: #e8efe9; }
html.dark .sn-eta b { color: #4ade80; }
html.dark .sn-eta span { color: #9fb0a6; }

/* GAME BUTTONS in dark mode (css/style.css, end): darker colours, the same edge and press */
html.dark .btn.alt { --b1: #2c3a33; --b2: #24312b; --b3: #1e2a24; --lip: #0b110e; --glow: rgba(0, 0, 0, .5); color: var(--ink); text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
html.dark .btn.btn:disabled { --b1: #34403a; --b2: #2d3833; --b3: #27322c; --lip: #141b17; color: rgba(232, 239, 233, .5); text-shadow: none; }
html.dark .btn { --lip: #063d25; --glow: rgba(0, 0, 0, .55); }
html.dark { --card1: #222e28; --card2: #1c2722; --card-lip: #0b110e; --tile1: #2c3a33; --tile2: #243029; --tile-lip: rgba(0, 0, 0, .45);
  --bub1: #2a3832; --bub2: #202b26; --bub-lip: rgba(0, 0, 0, .5); --bub-glow: rgba(0, 0, 0, .45); }
html.dark .act { box-shadow: 0 2.5px 0 var(--card-lip), 0 6px 12px -8px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06); }
html.dark .act .ai { box-shadow: 0 2px 0 var(--tile-lip), inset 0 1px 0 rgba(255, 255, 255, .08); }
html.dark .roundbtn, html.dark .sheet .hd .x, html.dark #zoom button { background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, var(--bub1), var(--bub2)); box-shadow: 0 3px 0 var(--bub-lip), 0 7px 14px -6px var(--bub-glow), inset 0 1px 0 rgba(255, 255, 255, .1); color: var(--ink); }
html.dark .roundbtn:active, html.dark .sheet .hd .x:active, html.dark #zoom button:active { box-shadow: 0 1px 0 var(--bub-lip), inset 0 1px 0 rgba(255, 255, 255, .08); }
html.dark #dock button.on { box-shadow: 0 3px 0 #063d25, inset 0 1px 0 rgba(255, 255, 255, .35); }
html.dark .sn-x { box-shadow: 0 2px 0 rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08); }

html.dark .prv-q button:first-child { background: linear-gradient(180deg, #2c3a33, #1e2a24); color: var(--ink); box-shadow: 0 3px 0 #0b110e, inset 0 1px 0 rgba(255, 255, 255, .08); }
html.dark .prv-chip b { color: #6fe0a4; } html.dark .prv-chip.low b { color: #fb7185; }
html.dark .prv-item { box-shadow: 0 2.5px 0 var(--card-lip), inset 0 1px 0 rgba(255, 255, 255, .05); } html.dark .prv-item.on { box-shadow: 0 2.5px 0 var(--card-lip), inset 0 0 0 2px #22c55e; }
html.dark .prv-sum b { color: #6fe0a4; }

html.dark .mm-tabs button.on { background: linear-gradient(180deg, #2c3a33, #222e28); color: var(--ink); }
html.dark .mm-up { color: #4ade80; } html.dark .mm-dn { color: #fb7185; }
html.dark .mm-bag i.mm-up, html.dark .mm-rt i.mm-up, html.dark .mm-big i.mm-up { background: rgba(34, 197, 94, .16); } html.dark .mm-bag i.mm-dn, html.dark .mm-rt i.mm-dn, html.dark .mm-big i.mm-dn { background: rgba(244, 63, 94, .16); }
html.dark .mm-mine .kv b.mm-up { color: #4ade80; } html.dark .mm-mine .kv b.mm-dn { color: #fb7185; }

/* CHAT 2.0 in dark mode */
html.dark { --chat-paper: #0c1511; --chat-dot: rgba(255, 255, 255, .035); --bub-in: #1d2a24; --bub-in-ink: #e9efeb; --bub-out1: #13814f; --bub-out2: #0d6a40; --bub-time: rgba(233, 239, 235, .55); --chat-pill: #1a2621; --mm-card: #1d2a24; }
html.dark .chatlog .msg .nm { color: #4ade80; }
html.dark .chatform input { background: #1d2a24; color: var(--ink); box-shadow: none; }
html.dark .msgmenu .mmrx button.on { background: #12452f; }
html.dark .dmpill.green { color: #6fe0a4; } html.dark .dmpill.blue { color: #93b4ff; } html.dark .dmpill.gold { color: #fcd56b; } html.dark .dmpill.rose { color: #fda4af; }
html.dark .dmpill { box-shadow: 0 2px 0 rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .06); }
html.dark .chatlog .msg .rq { background: rgba(255, 255, 255, .06); }
/* the suggestion box card was light on a dark screen */
html.dark [data-p=opensuggest] { background: linear-gradient(135deg, #3a2f12, #172540) !important; }
html.dark [data-p=opensuggest] .at span { color: var(--ink-soft); }
html.dark .chatform .mic { background: linear-gradient(180deg, #1fae6f, #0e7a4c); color: #fff; box-shadow: 0 3px 0 #063d25, inset 0 1px 0 rgba(255, 255, 255, .3); }
/* the Style Studio (Characters 2.0, 2026-10-24): the title stays dark on the light stage; tabs and chips stand off the sheet, the chosen one is clearly lit */
html.dark .st-title b, html.dark .st-title small { color: #17261e; }
html.dark .st-tabs button, html.dark .st-chips button { background: var(--surface-2); }
html.dark .st-tabs button.on, html.dark .st-chips button.on { background: #6fe0a4; color: #0f1613; }

/* driving jobs list (js/drivejobs.js) */
html.dark .rm-jobsin { background: #1b2027; color: #f3f4f6; }
html.dark .rm-jobc { background: #232a33; border-color: #323b46; } html.dark .rm-jobc span { color: #9ca3af; } html.dark .rm-jobc em { color: #34d399; }

/* garage + driver rank (js/garage.js, js/drivejobs.js) */
html.dark .gr-opt { background: #232a33; border-color: #323b46; } html.dark .gr-opt em { color: #34d399; }
html.dark .rm-jobrk { background: #12301f; } html.dark .rm-jobrk small { color: #9ca3af; }
html.dark .rm-jobtop { background: #3a2f12; } html.dark .rm-jobtop div.me { color: #34d399; } html.dark .rm-jobtop i { color: #fbbf24; } html.dark .rm-jobtop em, html.dark .rm-jobtop p { color: #9ca3af; }

/* ===== CAR DEALERS (js/dealer.js) ===== */
html.dark .dl-specs div { background: rgba(255, 255, 255, .08); }
/* ⭐ Premium (js/premium.js) in dark mode */
html.dark .pmitem { background: var(--surface); border-color: var(--line); }
html.dark .pmitem-ic { background: linear-gradient(135deg, #3a2f12, #6b4f10); }
html.dark .pmitem-tx span { color: var(--ink-soft); }
html.dark .pmbal { color: #fde68a; }
html.dark .startxt { color: #fbbf24; }
html.dark .tag.pmhot { background: #3b1a1c; color: #fca5a5; }
/* (2026-11-06) the apartments' cards (js/kit-homes.js) */
html.dark .kh-hero { background: linear-gradient(135deg, #115e59, #164e63); }
html.dark .kh-prices { color: #e5e7eb; }
/* (2026-11-10, owner: "places with a bright background should have darker text") a box painted in a light colour (class onlight, put on
   every inline light background) keeps dark writing in dark mode too; buttons, fields and boxes inside it keep the dark-mode colours. */
html.dark .onlight, html.dark body.liquid.liquid.frosted .phone .onlight { --ink: #1c1917; --ink-soft: #4b4540; --lq-ink: #1c1917; --lq-soft: #4b4540; color: #1c1917; }
html.dark .onlight :is(button, .btn, input, select, textarea, .field, .card, .modal) { --ink: #e8efe9; --ink-soft: #9fb0a6; --lq-ink: #e9f1ec; --lq-soft: #9fb3a8; }
html.dark .onlight :is(.mini, small) { color: #4b4540; }
html.dark .onlight :is(button, .btn) .mini { color: inherit; }
/* the Premium Live Now cards: the Hype Drop look paints them white (light) or near-black (dark), so the writing follows its ink */
.pmhd .pmlive { color: var(--hd-ink); box-shadow: none; }
/* (2026-11-10 readability pass, found by handoff-tools/perf/text-scan.js) dark green / dark red / dark gold writing on dark boxes */
html.dark .act .ar, html.dark .mis-rw, html.dark .tag.g { color: #5fd99a; }
html.dark .act.locked .ar { color: #ff8a8f; }
html.dark .tag.y { color: #f5c451; }
html.dark .wm .rk { color: #b8bec7; }
html.dark .txa.out { color: #ff8a93; }
html.dark .txseg button.on { background: #e8efe9; color: #0f1613; }

/* (2026-11-11) Happening now, first picks, Real / NPC tags */
html.dark .hp-sp, html.dark .hp-path { background: rgba(255,255,255,.07); color: #eef2ef; }
html.dark .hp-sp i, html.dark .hp-list .hp-row .ar { color: #5fd49a; }
html.dark .who button em.tagr { background: rgba(95,212,154,.18); color: #8ff0bd; }
html.dark .who button em.tagn { background: rgba(255,255,255,.1); color: #c9c2b6; }

/* (2026-11-12) Campus News paper, This week, talk to NPCs */
html.dark .pp-paper { background: #1d2420; border-color: rgba(255,255,255,.1); color: #ece6da; }
html.dark .pp-mast { border-bottom-color: #ece6da; }
html.dark .pp-story { border-top-color: rgba(255,255,255,.1); }
html.dark .pp-day, html.dark .nt-box { background: rgba(255,255,255,.06); }
html.dark .nt-them { background: rgba(255,255,255,.1); color: #eef2ef; }

/* (2026-11-12) Lotto and Morning apps */
html.dark .lt-hero { background: linear-gradient(135deg, #3a2a12, #3b1f14); color: #f3e9d8; }
html.dark .lt-grid button, html.dark .mn-chips button { background: rgba(255,255,255,.08); color: #eef2ef; }
html.dark .lt-grid button.on { background: #d97706; color: #fff; }
html.dark .mn-chips button.on { background: #0f7b4f; color: #fff; }
/* (2026-11-12) the Voice button keeps its own colours in dark mode */

/* (2026-11-12) Feelings & wants */
html.dark .wt-hero { background: linear-gradient(135deg, #3a2f12, #3b1a2a); color: #f3eadb; }
html.dark .wt-pts { background: rgba(255,255,255,.1); color: #fbbf24; }
html.dark .wt-got { color: #5fd49a; }
