/* [theme] Office Land UI theme: Filter Kaapi. Loaded LAST from index.html (after the inline <style>). Remove the <link> to roll back to the old navy look. */
/* Warm cream paper, coffee-brown ink, terracotta for action. Fonts (Fraunces, Source Sans 3, IBM Plex Mono) come from the Google Fonts <link> in index.html.
   --ink keeps its two old jobs: the page base, and the text colour on accent fills (it is near-white here, so every accent fill is dark enough for it).
   Rules for styles that JS injects at load are prefixed with html: those <style> tags land after this file, so they need the extra specificity. */
:root{
  color-scheme:light;
  --surface:#FBF5EA; --raised:#FFFDF8; --raised-h:#FFF4E4; --inset:#F1E7D6; --stage:radial-gradient(ellipse at 50% 70%,#F3E6D0 0,#FBF5EA 70%);
  --line:#E3D4BC; --line-strong:#C9B596; --pane-line:rgba(120,84,50,.18);
  --fg:#2A1C12; --dim:#6B5443;
  --note:#A8401F; --note-text:#A8401F; --note-soft:#F6DFD2; --ink:#FFFDF8;
  --good:#2E7A4C; --warn:#E3A33A; --on-warn:#2A1C12; --bad:#B3261E; --cool:#1E6A73;
  --focus:#1E6A73; --focus-soft:rgba(30,106,115,.22);
  --panel:rgba(251,245,234,.94); --blur:blur(6px); --scrim:rgba(42,28,18,.42);
  --btn-bg:#FFFDF8; --btn-shadow:0 1px 0 rgba(120,84,50,.12); --accent-shadow:0 2px 0 #7A2C14;
  --shadow-sm:0 1px 0 rgba(255,255,255,.8) inset,0 6px 18px -6px rgba(58,34,16,.35);
  --shadow-lg:0 1px 0 rgba(255,255,255,.8) inset,0 24px 50px -16px rgba(58,34,16,.55);
  --r-lg:14px; --r-md:10px; --r-sm:7px;
  --card-top:1px solid var(--line);
  --display:'Fraunces',Georgia,serif; --body:'Source Sans 3',system-ui,sans-serif; --mono:'IBM Plex Mono',ui-monospace,monospace;
  --h2:650; --h2-track:-.01em; --logo-w:700; --logo-track:-.02em; --logo:#2A1C12;
  --name-bg:rgba(42,28,18,.78); --name-fg:#FBF5EA; --npc-bg:#EADCC5; --npc-fg:#2A1C12; --bub:#FFFDF8; --bub-fg:#2A1C12;
  --bezel:#2B221C; --bezel-edge:#6B5443; --wallpaper:radial-gradient(circle at 20% 10%,#7A3418 0,transparent 55%),radial-gradient(circle at 85% 85%,#134A50 0,transparent 50%),linear-gradient(160deg,#3A2618,#1A110B);
  --auth-bg:radial-gradient(ellipse at 10% 0%,#FFF8EC 0,transparent 60%),linear-gradient(160deg,#F7EDDC 0%,#EFE1CA 100%);
}
/* ===== shared structure: every hard-coded navy surface in index.html / phonekit / cars mapped onto theme tokens ===== */
body{background:var(--ink);color:var(--fg);font:14px/1.45 var(--body);font-feature-settings:"tnum" 0}
h3{font:700 11.5px var(--body);letter-spacing:.09em;text-transform:uppercase;color:var(--note-text)}
.sub{color:var(--dim)}
.err{color:var(--bad)}
.fld{font:600 12px var(--body);color:var(--dim);letter-spacing:.01em}
input:not([type=checkbox]){background:var(--inset);border:1px solid var(--line-strong);color:var(--fg);border-radius:var(--r-sm)}
input[type=range],input[type=checkbox]{accent-color:var(--note)}
button:focus-visible,input:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
#chatIn:focus{outline:2px solid var(--focus);box-shadow:0 0 0 4px var(--focus-soft)}
#mwrap{background:var(--scrim)}

/* buttons */
.hb{background:var(--btn-bg);color:var(--fg);border:1px solid var(--line-strong);border-radius:var(--r-sm);padding:7px 12px;font:600 13px var(--body);box-shadow:var(--btn-shadow)}
.hb:hover{border-color:var(--note);background:var(--raised-h)}
.hb.sel{background:var(--note);color:var(--ink);border-color:var(--note);box-shadow:var(--accent-shadow)}
.hb:disabled{opacity:.5}
.opt{background:var(--raised);border:1px solid var(--line);border-radius:var(--r-md)}
.opt:hover:not(:disabled){border-color:var(--note)}
.opt.sel{background:var(--note-soft);border-color:var(--note)}
.opt span{color:var(--dim)}
.opt.go{background:var(--note);color:var(--ink);border-color:var(--note);box-shadow:var(--accent-shadow)}
.opt.key{font-family:var(--mono)}
.ghost{color:var(--dim);font:500 13px var(--body)}
.swatch{outline-color:var(--line-strong)}.swatch.sel{border-color:var(--fg)}

/* cards and dialogs */
.card{background-color:var(--surface);color:var(--fg);border:1px solid var(--line);border-top:var(--card-top);border-radius:var(--r-lg);box-shadow:var(--shadow-lg)}
.card h2{font:var(--h2) 24px/1.15 var(--display);letter-spacing:var(--h2-track);color:var(--fg)}
.pick-opt{background:var(--raised);border:1px solid var(--line);border-radius:var(--r-md);box-shadow:var(--btn-shadow)}
.pick-opt:hover:not(:disabled){border-color:var(--note);background:var(--raised-h)}
.pick-opt kbd{background:var(--note-soft);color:var(--note-text);font:700 13px var(--body);border-radius:var(--r-sm)}
.pick-opt b{font-weight:700}.pick-opt span{color:var(--dim)}
.card.pick .say{background:var(--raised);border-left-color:var(--cool)}
.talk{background:var(--surface);border:1px solid var(--line);border-top:var(--card-top);border-radius:var(--r-lg);color:var(--fg);box-shadow:var(--shadow-lg)}
.talk-who{background:var(--raised)}.talk-cv{background:var(--inset)}.talk-who b{font-family:var(--display)}.talk-role,.talk-tx small,.talk-who small{color:var(--dim)}
.talk-act{background:var(--raised);border-color:var(--line)}.talk-act:hover:not(:disabled){background:var(--raised-h)}
#quizPill{background:var(--raised);border:1px solid var(--cool);box-shadow:var(--shadow-sm)}#quizPill button{color:var(--fg)}#quizPill .qp-x{color:var(--dim);border-left-color:var(--line)}#quizPill button:hover{color:var(--cool)}
#quiz{background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--cool);border-radius:var(--r-lg);box-shadow:var(--shadow-lg)}
.qz-opt,.day,.seq span,.cell,.vine,.hrt-row,.who-row,.mile,.cal-d,.card .wk-acts button{background:var(--raised);border-color:var(--line)}
.mi-tile{background:var(--raised);border-color:var(--line)}
.mlog,.draft,.bar,.tbar,.heat,#dayBar,#needs .nb,.lookcv{background:var(--inset)}
.mlog,.draft,.lookcv,.bar{border-color:var(--line)}
td,th{border-bottom-color:var(--line)}
#more{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow-lg)}
.wk-score,.fb,.big,.mscore,.oname,#edTop h2,.mach-head b{font-family:var(--display)}
.day b,.pinbox b,#banner b,.urge-seq span,.urge-k{font-family:var(--body)}

/* car showroom card */
html .car-card .cc-specs div{background:var(--raised);border:1px solid var(--line);border-radius:var(--r-sm)}
html .car-card .cc-specs span{color:var(--dim);font-size:11.5px}
html .car-card .cc-specs b{font:700 15px var(--body);font-variant-numeric:tabular-nums}
html .car-card .cc-fin{background:var(--raised);border:1px solid var(--line);border-radius:var(--r-md);color:var(--fg)}
html .car-card .cc-sw{background:var(--raised);border-color:var(--line)}html .car-card .cc-chip.on{box-shadow:0 0 0 3px var(--raised),0 0 0 5px var(--note),0 4px 10px rgba(0,0,0,.25)}
html .car-card .cc-pic{background:var(--stage);border-radius:var(--r-md);padding:6px 0}

/* HUD over the 3D scene */
.pane{background:var(--panel);border:1px solid var(--pane-line);border-radius:var(--r-md);box-shadow:var(--shadow-sm);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);color:var(--fg)}
#status{border-color:var(--pane-line)}
#oName{font:var(--h2) 22px/1.1 var(--display);color:var(--fg);letter-spacing:var(--h2-track)}
#oMeta,#simSub{color:var(--dim)}
#simClock{font:700 24px var(--body);color:var(--note-text);font-variant-numeric:tabular-nums}
#simHours{color:var(--fg)}
#dayNow{background:var(--note)}
#needs{font:600 11.5px var(--body);color:var(--dim)}
#needs em{color:var(--fg);font:600 11px var(--body);font-variant-numeric:tabular-nums}
#needs .nb i{background:var(--good)}#needs .nb i.low{background:var(--bad)}
#jobs li{color:var(--dim)}#jobs li.cur{color:var(--fg)}#jobs li.cur::before{color:var(--note-text)}#jobs li.done{color:var(--good)}
#jobs h3 small{color:var(--dim)}
#chatLog b{color:var(--cool)}#chatLog .sys,#chatLog .sys b{color:var(--dim)}
.toast{background:var(--panel);border:1px solid var(--pane-line);color:var(--fg);border-radius:var(--r-sm);box-shadow:var(--shadow-sm);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);font-size:13px}
#prompt{background:var(--note);color:var(--ink);border-radius:var(--r-md);font:700 14px var(--body);box-shadow:var(--accent-shadow)}
#prompt kbd{background:var(--ink);color:var(--note-text);font:600 12px var(--mono)}
#prompt2{background:var(--cool);color:var(--ink);border-radius:var(--r-md)}#prompt2 kbd{background:var(--ink);color:var(--cool)}
#banner{background:var(--surface);color:var(--fg);border:1px solid var(--line);border-left:6px solid var(--bad);box-shadow:var(--shadow-lg)}#banner.ok{border-left-color:var(--good)}
.chip{font:700 11px var(--body);background:var(--bad);color:#fff;border-radius:var(--r-sm)}.chip.warn{background:var(--warn);color:var(--on-warn)}
#joy{background:var(--panel);border-color:var(--pane-line)}
.tag .nm{font:600 11px var(--body);background:var(--name-bg);color:var(--name-fg);border-radius:4px;padding:1px 7px}
.tag.me .nm{background:var(--note);color:var(--ink)}.tag.peer .nm{background:var(--cool);color:var(--ink)}.tag.peer.npc .nm{background:var(--npc-bg);color:var(--npc-fg)}
.tag.desk .nm{background:var(--name-bg);color:var(--name-fg);opacity:.8}
.tag .bub{background:var(--bub);color:var(--bub-fg);font:500 12.5px var(--body);box-shadow:0 2px 8px rgba(0,0,0,.25)}
html #tkHud{background:var(--panel);color:var(--fg);border:1px solid var(--pane-line);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);font:12.5px var(--body);border-radius:var(--r-md)}
html #tkHud .tk-x{color:var(--dim)}html #tkHud .tk-bar{background:var(--inset)}html #tkHud .tk-bar em{background:var(--line-strong)}

/* phone shell: apps keep their own brand colours; the shell and type follow the theme */
body.phone-on #mwrap{border-color:var(--bezel);box-shadow:0 0 0 2px var(--bezel-edge),0 30px 80px rgba(0,0,0,.55)}
.ph-home{background:var(--wallpaper)!important}

/* sign in */
#auth{background:var(--auth-bg)}
#side{background:var(--surface);border-color:var(--line)}#side h1{font:var(--logo-w) 32px var(--display);color:var(--logo)}#side .where{font:700 12px var(--body);color:var(--cool)}
#myOffice,#finder{background:var(--raised);border-color:var(--line)}
/* signature: the bill. A short terracotta tab at the top-left of every card, and a dashed "tear here" rule under the title */
.card,.talk{background-image:linear-gradient(var(--note),var(--note));background-size:64px 4px;background-repeat:no-repeat;background-position:18px 0}
.card>h2:first-child{padding:6px 0 10px;border-bottom:1.5px dashed var(--line-strong)}
.card>h2:first-child + .sub{margin-top:2px}
#oName{color:var(--fg)}
.pick-opt kbd{border-radius:50%}

/* ===== navy-era leftovers: rules in index.html and JS-injected styles that assumed a dark card ===== */
/* --ink as text on light or coloured fills meant "dark text": keep that meaning where the fill is light */
.pal i,.padb{color:var(--fg)}
.pal.sel{background:var(--note-soft)}
.citypin.open{color:var(--ink);border-color:var(--fg);box-shadow:0 0 0 4px rgba(168,64,31,.25),0 6px 14px rgba(42,28,18,.3)}
.sorry-btn{background:var(--note);color:var(--ink)}
/* conduct score */
.cnd-n.ex,.cnd-row.yes b{color:var(--good)}.cnd-n.ok{color:#4B7A1F}.cnd-n.warn{color:#8F5A00}.cnd-n.bad,.cnd-row.no b{color:var(--bad)}
.cnd-bar{background:var(--inset)}.cnd-bar i.ex{background:var(--good)}.cnd-bar i.ok{background:#6E9F3A}.cnd-bar i.warn{background:var(--warn)}.cnd-bar i.bad{background:var(--bad)}
.cnd-row.on{background:var(--note-soft);outline-color:rgba(168,64,31,.45)}
/* calendar card */
.cal-d.we{background:var(--inset)}.cal-d.mine{background:#DDEFE3;border-color:#5E9E76}.cal-d.today{border-color:var(--note);box-shadow:0 0 0 1px rgba(168,64,31,.2)}.cal-d.can:hover{border-color:var(--note)}
.cal-h.we{color:var(--dim)}.k.today{border-color:var(--note)}.k.we{background:var(--inset)}
/* badges, milestones, hearts, quiz, grapevine, chat DMs */
.mi-pts{color:var(--note-text)}.mi-tile.got{border-color:var(--line-strong)}.mi-tile.on{border-color:var(--note);box-shadow:0 0 0 1px var(--note) inset}.mi-tile.got:hover{box-shadow:0 6px 18px rgba(58,34,16,.2)}
.mi-meta.bronze{color:#8F4F1F}.mi-meta.silver{color:#5A616B}.mi-meta.gold{color:#7E5F00}.mi-meta.platinum{color:#1D627A}
.mile.got{background:var(--note-soft);border-color:var(--note)}.mile em{color:var(--note-text)}
.hrt-row.s2,.hrt-row.s3{background:#FBEAF0}.hrt-h i{color:var(--line-strong)}.hrt-h i.on{color:#C2185B}#needs .lv{color:#B0285E}
.qz-opt.right{background:#DFF0E5;border-color:var(--good)}.qz-opt.wrong{background:#F8E1DD;border-color:var(--bad)}.qz-board li.me{background:var(--note-soft);color:var(--fg)}.qz-board li:first-child b{color:var(--note-text)}
#quiz .qz-h{color:var(--cool)}.qz-opt kbd{background:rgba(30,106,115,.12);color:var(--cool)}
#chatLog .dm{color:#7E2F8E}#chatLog .dm b{color:#6A1F7A}
.card.pick.flirt.t2{background:#FBEFF2}.card.pick.flirt .pick-opt kbd{color:#B0285E;background:rgba(176,40,94,.12)}.card.pick.flirt .say{border-left-color:#C2185B}
/* conversation panel: section colours on cream */
.talk-sec.good{--c:#2E7A4C}.talk-sec.note{--c:#A8401F}.talk-sec.cool{--c:#1E6A73}.talk-sec.rose{--c:#B0285E}
.talk-feel{background:#DDEFE3;color:#22603B}.talk-act kbd{color:var(--dim)}
/* the market exchange */
.mk .mk-row{border-bottom-color:var(--line)}.mk .mk-row:hover{background:var(--raised-h)}.mk .mk-up{color:var(--good)}.mk .mk-dn{color:var(--bad)}
/* the city map: pins and labels sit on the light map tiles */
.dlabel{color:#7A4E00;opacity:.8}.dlabel.area{color:#0F4F7A}
.pinbox{box-shadow:0 3px 0 rgba(42,28,18,.25)}
.pinbox.homepin{border-color:#6B4FB0}.pinbox.homepin b{color:#5A3F9E}.pinbox.homepin.pg{border-color:#A0502A}.pinbox.homepin.pg b{color:#8A421F}.pinbox.homepin.mine{border-color:var(--note)}.pinbox.homepin.mine b{color:var(--note-text)}
.pinbox.venue.mall{border-color:#A8337A}.pinbox.venue.mall b{color:#93296A}
.mpin.mine>i{border-color:var(--note);box-shadow:0 0 0 4px rgba(168,64,31,.3),0 3px 10px rgba(0,0,0,.35)}
/* desk monitor: its title bar stays dark, so its label keeps the old yellow */
.wk-bar b{color:#F4B93E}
/* SVG charts and rings drawn by main.js read their colours from these */
.bs-ref{stroke:var(--note)}.bs-ref-t{fill:var(--note-text)}.bs-ring-bg{stroke:var(--inset)}.bs-ring{stroke:var(--note)}

/* ===== dark islands: things that are meant to be dark (an arcade cabinet, a trek mini-game screen, a coffee and a vending machine).
   They get the old light-on-dark tokens back inside them, so the shared rules (card titles, --fg, --dim) still read. ===== */
html .card.arc,html #mwrap .card.tg,.mach.coffee,.mach.vending{--fg:#EEF1F8;--dim:#A9B4CF;--line:#2F3A5C;--line-strong:#3E4A70;--raised:#1C2440;--raised-h:#222C4E;--inset:#0C1020;--btn-bg:#1C2440;--note-soft:rgba(244,185,62,.18);--note-text:#F4B93E}
html .card.arc{background-color:#141A2B;background-image:none;color:var(--fg);border-color:#2F3A5C;border-top:4px solid #D65FA8}
html #mwrap .card.tg{background-image:none}
.mach .mach-price{color:#F4B93E}

/* ===== game chrome injected by JS: same cream panel language as the HUD ===== */
/* food business HUD pill and menu (business.js) */
html .bz-hud{background:var(--panel);border-color:var(--pane-line);color:var(--fg);box-shadow:var(--shadow-sm);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur)}
html .bz-hud span,html .bz-hud .sub{color:var(--dim)}html .bz-hud .st{color:var(--note-text)}
html .bz-hud button{background:var(--note);color:var(--ink)}html .bz-hud button.g{background:var(--raised);color:var(--fg);box-shadow:inset 0 0 0 1px var(--line-strong)}
html .card.bz{border-top:4px solid var(--note)}
html .bz-dish{background:var(--raised);border-color:var(--line)}html button.bz-dish:hover:not(:disabled){border-color:var(--note)}
html .bz-dish .pr{color:var(--note-text)}
html .bz-chips i{background:var(--inset);color:var(--fg)}html .bz-chips i.c{background:#F6E3C6;color:#6B4A14}
/* trek bar (trek.js) */
html .trk-bar{background:var(--panel);color:var(--fg);border-color:var(--pane-line);box-shadow:var(--shadow-sm);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur)}
html .trk-bar b{color:var(--good)}html .trk-bar .warn{color:#8F5A00}html .trk-bar .bad{color:var(--bad)}
html .trk-bar button{background:var(--raised);border-color:var(--line-strong);color:var(--fg)}html .trk-bar button.help{background:var(--note);border-color:var(--note);color:var(--ink)}
/* car trip card (cars.js) */
html #carTrip{background:var(--surface);color:var(--fg);border:1px solid var(--line);box-shadow:var(--shadow-lg)}
html #carTrip small{color:var(--dim)}html #carTrip .ct-bar{background:var(--inset)}html #carTrip .ct-bar i{background:var(--note)}
html #carTrip button{background:var(--raised);color:var(--fg);box-shadow:inset 0 0 0 1px var(--line-strong)}html #carTrip button:hover{background:var(--raised-h)}
.bs-ring-t{fill:var(--fg)}.bs-ring-s{fill:var(--dim)}

/* [theme] the left HUD column never pushes Floor chat off a short screen. The needs panel and Floor chat keep their size;
   "Your first day" and "Your jobs today" give up height first and scroll inside themselves; if even that is not enough the
   column scrolls, with the chat pane pinned to its bottom edge so the input is always reachable. Short windows also get a
   tighter column: needs in two columns and a shorter chat log. */
#left{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;border-radius:var(--r-md)}
#left>*{flex-shrink:0}
#left>#jobs,#left>#firstday{flex-shrink:1;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}
#left>#jobs{min-height:72px}#left>#firstday{min-height:46px}
#left>#chat{position:sticky;bottom:0;z-index:1;background:var(--surface);box-shadow:0 -10px 18px -12px rgba(58,34,16,.45),var(--shadow-sm)}
@media (min-width:861px) and (max-height:780px){
  #needs{grid-template-columns:auto minmax(0,1fr) 20px auto minmax(0,1fr) 20px;gap:4px 6px}
  #firstday{padding:5px 10px}
  #chatLog{max-height:58px}
}
@media (min-width:861px) and (max-height:680px){
  #chatLog{max-height:40px}
  #chat label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  #chatIn{padding:7px 10px}
}
/* [legal] the policy links under the sign-in screen */
#legalFoot{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px 16px;align-items:baseline;justify-content:center;padding:14px 0 4px;border-top:1.5px dashed var(--line-strong);font:600 13px var(--body)}
#legalFoot a{color:var(--dim);text-decoration:none}#legalFoot a:hover{color:var(--note)}#legalFoot span{color:var(--dim);font-weight:400;font-size:12px;flex-basis:100%;text-align:center}
/* [lane-ui] the left HUD is ONE card with tabs (hudkit.js adds .deck and the tab strip). The clock, alerts, status and a slim
   strip of the needs stay on every tab; the tab picks Needs (day bar, hours, needs in full), Jobs (first day + jobs) or Chat. */
#left.deck{position:relative;background:var(--panel);border:1px solid var(--pane-line);border-radius:var(--r-md);box-shadow:var(--shadow-sm);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur);padding:9px 11px 10px;gap:6px;width:256px;max-width:256px}
#left.deck>.pane{background:none;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;padding:0;border-radius:0}
#left.deck>#simPane{display:contents}
#left.deck>*{order:20}
#left.deck #simClock{order:1;font-size:21px}#left.deck #simSub{order:2;margin:0}#left.deck #simChips{order:3;margin:0}
#left.deck>#status{order:4;background:var(--raised);border:1px solid var(--cool);border-radius:var(--r-sm);padding:6px 8px}
#left.deck #needs{order:5}#left.deck>.ltabs{order:6}#left.deck #dayBar{order:7}#left.deck #simHours{order:8;margin:0}#left.deck[data-tab=needs] #needs{order:9}
#left.deck>#firstday{order:10;min-height:0}#left.deck>#jobs{order:11;min-height:0}#left.deck>#chat{order:12;position:static;box-shadow:none;background:none}
#left.deck:not([data-tab=needs]) #dayBar,#left.deck:not([data-tab=needs]) #simHours,#left.deck:not([data-tab=jobs])>#jobs,#left.deck:not([data-tab=jobs])>#firstday,#left.deck:not([data-tab=chat])>#chat{display:none!important}
#left.deck:not([data-tab=needs]) #needs{grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}#left.deck:not([data-tab=needs]) #needs span,#left.deck:not([data-tab=needs]) #needs em{display:none!important}
#left.deck[data-tab=needs] #needs{grid-template-columns:auto minmax(0,1fr) 20px auto minmax(0,1fr) 20px;gap:4px 6px}
#left.deck #chat h3,#left.deck #chat label{display:none}#left.deck #chatLog{max-height:150px}#left.deck #jobs h3{font-size:10.5px}
.ltabs{display:flex;gap:2px;border-bottom:1.5px dashed var(--line-strong);margin:2px 0 3px}
.ltabs button{flex:1;background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-1.5px;padding:5px 2px;font:700 10.5px var(--body);letter-spacing:.07em;text-transform:uppercase;color:var(--dim);cursor:pointer;white-space:nowrap}
.ltabs button:hover{color:var(--fg)}.ltabs button.on{color:var(--note-text);border-bottom-color:var(--note)}.ltabs button[hidden]{display:none}
.pick-opt .why-off{display:block;color:var(--bad);font-size:12px;margin-top:2px}
@media (max-width:700px){
  #left.deck{width:min(300px,calc(100vw - 32px));max-width:none}
  #office:not(.hud-open) #left.deck{width:auto;max-width:170px;padding:6px 8px}
  #office:not(.hud-open) #left.deck>.ltabs,#office:not(.hud-open) #left.deck>#firstday,#office:not(.hud-open) #left.deck>#jobs,#office:not(.hud-open) #left.deck>#chat{display:none!important}
  #office.hud-open #left.deck{max-height:52vh}
}
/* [lane-ui] touch screens: a bottom action bar instead of a column of top buttons; the Saath card sits clear of the action buttons */
#abar{display:none}
html.touchy #hud{grid-template-rows:auto minmax(0,1fr) auto auto}
html.touchy #abar{grid-column:1/-1;grid-row:4;display:flex;gap:4px;background:var(--panel);border:1px solid var(--pane-line);border-radius:var(--r-md);padding:4px;box-shadow:var(--shadow-sm);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur)}
#abar button{flex:1;min-height:48px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:none;border:0;border-radius:var(--r-sm);font:600 11px var(--body);color:var(--fg);padding:2px}
#abar button:active{background:var(--raised-h)}#abar i{font-style:normal;font-size:18px;line-height:1}
html.touchy #office #btns>.hb{display:none}html.touchy #office #btns>#bBell{display:inline-flex}
html.touchy #tkHud{top:64px;bottom:auto;right:10px;width:min(200px,50vw);font-size:11px;padding:6px 8px}
html.touchy #joy{width:96px;height:96px}html.touchy #knob{left:28px;top:28px}html.touchy #spacer{width:96px!important}
@media (max-width:860px){#left.deck #needs{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:3px}}
html.touchy body.hudopen #tkHud{display:none}
html.touchy #toasts .toast:not(.tk-call):nth-last-child(n+3){display:none}
/* [lane-ui] landing: the trailer's own HUD and subtitles never show through the hero copy. The pitch sits on a blurred dark scrim,
   and the bottom band (where the trailer's subtitles run) is shaded under the policy links. */
html #trailer .tr-shade{background:linear-gradient(90deg,rgba(26,17,11,.9) 0%,rgba(26,17,11,.72) 40%,rgba(26,17,11,.4) 64%,rgba(26,17,11,.55) 100%),linear-gradient(0deg,rgba(26,17,11,.95) 0%,rgba(26,17,11,.55) 22%,rgba(26,17,11,0) 42%)}
@media (max-width:860px){html #trailer .tr-shade{background:linear-gradient(180deg,rgba(26,17,11,.88) 0%,rgba(26,17,11,.7) 40%,rgba(26,17,11,.86) 100%)}}
/* [lane2-b] plain toasts: one line, newest wins, a +N count for the ones it replaced; tap to read the whole line. Action toasts (.tk-call) keep their own look. */
#toasts .toast.tk-one{display:flex;align-items:center;gap:8px;max-width:min(560px,92vw);white-space:nowrap;cursor:pointer;text-align:left}
#toasts .toast.tk-one .tx{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
#toasts .toast.tk-one.open{white-space:normal}#toasts .toast.tk-one.open .tx{overflow:visible}
#toasts .toast.tk-one .tmore{flex:none;background:var(--note);color:var(--ink);border-radius:999px;padding:0 7px;font:700 11px/18px var(--body)}
/* [lane2-b] a resident's want shows only within about 4 m of you (world.js sets .lf-far) */
#labels .tag.lf-far .tg-want{display:none!important}
/* [lane2-b] the sticky "Walk away" / "Close" bar on small screens was navy (#141a2b) under brown text: now the card's own paper and ink (about 15:1, WCAG AA needs 4.5:1) */
html .talk>div:last-child>.ghost:last-child,html #mwrap .card>.ghost:last-child{background:var(--surface);color:var(--fg);border-top:1px solid var(--line)}
html .ghost{color:var(--dim)}
/* [lane2-b] landing, for good: the trailer is footage of the game, HUD and all, so it is blurred and dimmed as a whole behind the hero and the sign-in card
   (an opaque-enough scrim over everything, not only behind the copy). Its baked-in HUD text can no longer be read through. */
html #auth.has-trailer #trailer{background-color:#1A110B;filter:blur(10px) saturate(.8) brightness(.8);transform:scale(1.06)}
html #trailer .tr-shade{background:linear-gradient(90deg,rgba(26,17,11,.9) 0%,rgba(26,17,11,.78) 45%,rgba(26,17,11,.62) 100%),linear-gradient(0deg,rgba(26,17,11,.95) 0%,rgba(26,17,11,.55) 22%,rgba(26,17,11,0) 42%)}
@media (max-width:860px){html #trailer .tr-shade{background:linear-gradient(180deg,rgba(26,17,11,.9) 0%,rgba(26,17,11,.78) 40%,rgba(26,17,11,.9) 100%)}}
/* [round3] the More menu stays on top: the Saath card steps aside while it is open (it overlapped the menu's top on a 390 px phone) */
body.moreopen #tkHud{display:none}
#btns{z-index:25}#more{z-index:26}
/* [home2] the "At home" button: your own flat only (homelife.js) */
#homeLifeBtn{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:30;display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:999px;font-weight:700;box-shadow:0 6px 18px rgba(0,0,0,.25)}
#homeLifeBtn[hidden]{display:none}
@media (max-width:700px){#homeLifeBtn{bottom:calc(env(safe-area-inset-bottom,0px) + 132px);padding:9px 14px}}
/* [rot1] the "turn your phone sideways" card (rotate.js): only on a touch phone held upright, and only over the city and the office (html.ingame) */
#rotGate{display:none}
@media (pointer:coarse) and (orientation:portrait) and (max-width:699px){html.ingame #rotGate{display:flex}}
#rotGate{position:fixed;inset:0;z-index:2147483000;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:max(24px,env(safe-area-inset-top,0px)) 28px max(24px,env(safe-area-inset-bottom,0px));background:var(--wallpaper);color:#FBF5EA;text-align:center;touch-action:none;overscroll-behavior:contain;user-select:none;-webkit-user-select:none}
#rotGate .rg-ph{display:inline-flex;line-height:0;color:#F4C9A8;margin-bottom:10px;animation:rgTurn 2.6s cubic-bezier(.6,0,.3,1) infinite}
@keyframes rgTurn{0%,18%{transform:rotate(0)}48%,78%{transform:rotate(-90deg)}100%{transform:rotate(0)}}
#rotGate h2{font:700 27px/1.15 var(--display);letter-spacing:-.01em;text-wrap:balance}
#rotGate p{font:500 16px/1.4 var(--body);color:rgba(251,245,234,.82);max-width:300px}
#rotGate .rg-go{margin-top:12px;min-height:48px;padding:12px 26px;border:0;border-radius:999px;background:var(--note);color:var(--ink);font:700 16px var(--body);box-shadow:0 3px 0 #5E200E}
#rotGate .rg-note{font-size:14px;color:#F4C9A8}
@media (prefers-reduced-motion:reduce){#rotGate .rg-ph{animation:none;transform:rotate(-90deg)}}

/* [rot1] phones held sideways (a touch screen no taller than 500 px). The 3D view stays the main thing: the name and a slim clock card top left,
   the bell top right, the joystick bottom left, the action bar a rail on the right edge, prompts and toasts in the middle at the bottom.
   Panels opens the full left card; dialogs, the phone and the guide fit the short screen and scroll inside. Desktop is untouched. */
@media (pointer:coarse) and (orientation:landscape) and (max-height:500px){
  html #hud{padding:max(8px,env(safe-area-inset-top,0px)) max(10px,env(safe-area-inset-right,0px)) max(8px,env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));gap:6px}
  html.touchy #hud{grid-template-rows:auto minmax(0,1fr) auto}
  #head{padding:5px 10px;max-width:min(360px,46vw)}
  #oName{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #oMeta{font-size:11px;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #office:not(.hud-open) #oMeta{display:none}
  #left{gap:5px}
  #left.deck{padding:7px 9px 8px;width:min(270px,38vw);max-width:none}
  #left.deck #simClock{font-size:17px}#left.deck #simSub,#left.deck #simHours{font-size:11.5px;line-height:1.3}
  #left.deck #needs{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:3px}#left.deck #needs span,#left.deck #needs em{display:none!important}
  #office:not(.hud-open) #left.deck{width:auto;max-width:170px;padding:5px 8px}
  #office:not(.hud-open) #left.deck>.ltabs,#office:not(.hud-open) #left.deck>#firstday,#office:not(.hud-open) #left.deck>#jobs,#office:not(.hud-open) #left.deck>#chat,#office:not(.hud-open) #simSub,#office:not(.hud-open) #simHours,#office:not(.hud-open) #dayBar,#office:not(.hud-open) #simChips{display:none!important}
  #office.hud-open #left.deck{max-height:100%}
  .ltabs button{padding:8px 2px;font-size:11px}
  #left.deck:not([data-tab=needs]) #simSub{display:none}
  #left.deck #chatLog{max-height:72px}#chatIn{padding:8px 10px;font-size:16px}
  #office.hud-open #jobs li{min-height:36px;align-items:center}
  html.touchy #abar{grid-column:2;grid-row:2/4;justify-self:end;align-self:end;flex-direction:column;width:64px;gap:2px;padding:3px}
  html.touchy #abar button{flex:none;min-height:46px;font-size:10.5px}
  html.touchy #joy{width:92px;height:92px}html.touchy #knob{left:26px;top:26px}html.touchy #spacer{width:64px!important}
  #mid{gap:4px}#prompt{padding:9px 14px;font-size:13.5px}#prompt2{padding:6px 11px;font-size:12.5px}
  #toasts .toast.tk-one{max-width:min(460px,calc(100vw - 260px))}
  #doing{min-width:180px}
  #banner{top:max(8px,env(safe-area-inset-top,0px));max-width:min(440px,calc(100vw - 300px))}
  html #gwNudge{top:max(8px,env(safe-area-inset-top,0px));bottom:auto;max-width:min(440px,calc(100vw - 380px));padding:5px 7px 5px 11px;font-size:12.5px;gap:8px}
  html #gwNudge .gw-btn{min-height:34px;padding:5px 11px}
  html body.hudopen #gwNudge,html body.phone-on #gwNudge{display:none}
  #quizPill{top:calc(max(8px,env(safe-area-inset-top,0px)) + 52px);bottom:auto;right:max(10px,env(safe-area-inset-right,0px));max-width:min(300px,36vw)}
  #quiz{right:calc(max(10px,env(safe-area-inset-right,0px)) + 74px);bottom:max(8px,env(safe-area-inset-bottom,0px));width:min(340px,44vw);max-height:calc(100dvh - 16px);overflow:auto;padding:10px 12px;gap:6px}
  /* More opens beside the rail, two columns, scrolling inside */
  #more{top:0;right:70px;margin-top:0;max-height:calc(100dvh - 16px);overflow-y:auto;display:grid;grid-template-columns:repeat(2,minmax(140px,1fr));align-content:start;gap:5px;padding:6px}
  #more .hb{min-height:42px;padding:8px 10px;font-size:12.5px}
  /* dialogs: the whole screen height, scrolling inside, the way out pinned at the bottom */
  #mwrap{padding:6px max(10px,env(safe-area-inset-right,0px)) 6px max(10px,env(safe-area-inset-left,0px))}
  #mwrap>*{max-height:calc(100dvh - 12px);overflow:auto}
  .card{padding:12px 16px;gap:8px}.card h2{font-size:19px}
  .card.pick .say{font-size:14px;padding:8px 10px}
  .pick-opt{min-height:44px;padding:7px 11px}
  #mwrap .card>button:last-child{position:sticky;bottom:0;z-index:2;box-shadow:0 -10px 14px -6px rgba(42,28,18,.25)}
  #mwrap .card>.ghost:last-child{position:sticky;bottom:-12px;margin:0 -16px -12px;padding:12px 16px;display:block;align-self:stretch;width:auto;text-align:center;z-index:2}
  .talk{max-height:calc(100dvh - 12px);grid-template-columns:150px minmax(0,1fr)}.talk-cv{width:96px;height:120px}
  .talk>div:last-child>.ghost:last-child{position:sticky;bottom:0;display:block;width:100%;margin:0;padding:12px 0;z-index:2}
  /* the phone: full height, beside the action rail; a shorter status bar and lock-screen clock */
  body.phone-on #mwrap{inset:max(6px,env(safe-area-inset-top,0px)) calc(max(10px,env(safe-area-inset-right,0px)) + 72px) max(6px,env(safe-area-inset-bottom,0px)) auto;width:min(400px,calc(100vw - 210px));max-height:none;border-width:7px;border-radius:28px}
  body.phone-on #mwrap::before{top:5px;width:64px;height:16px;border-radius:9px}
  body.phone-on #mwrap .ph-status{height:26px;padding:0 20px 3px;font-size:12px}
  body.phone-on #mwrap .ph-nav{height:32px}
  body.phone-on #mwrap .ph-now{margin:0 0 8px}body.phone-on #mwrap .ph-now b{font-size:32px}body.phone-on #mwrap .ph-now span{font-size:12px}
  body.phone-on #mwrap .ph-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px 4px}body.phone-on #mwrap .ph-ic{width:46px;height:46px;border-radius:13px}
  body.phone-on #mwrap .ph-dock{margin-top:8px;padding:6px}
  /* the city: the side card beside the map, not above it */
  #city{grid-template-columns:minmax(250px,34%) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
  #side{border-right:1px solid var(--line);border-bottom:0;padding:10px 12px 12px max(12px,env(safe-area-inset-left,0px));gap:9px}
  #side h1{font-size:22px}
  #meCard .who{flex:1 1 calc(100% - 30px)}#meCard .hb{min-height:38px;padding:7px 12px}
  #office:not(.hud-open) #left .gd-chip{margin-top:4px;padding:5px 8px}#office:not(.hud-open) #left .gd-chip span{display:none}
}
/* [m3] the money statement is a long list: its Close sticks to the bottom of the card, so it is always on screen (laptop and phone) */
#mwrap .card.stmt>.opt.go:last-child{position:sticky;bottom:0;z-index:2;box-shadow:0 24px 0 var(--panel),0 -10px 14px -4px var(--panel)}
