:root { --top: calc(env(safe-area-inset-top, 0px) + 72px); }
@media (max-width: 640px) { :root { --top: calc(env(safe-area-inset-top, 0px) + 62px); } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg, #0e1117); color: var(--text, #eef2f8); font-family: 'DM Sans', system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
#app { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); padding-top: var(--top); }
#hud { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 8px 16px; border-bottom: 1px solid var(--border, rgba(255,255,255,.12)); background: var(--bg, #0e1117); z-index: 3; }
.when { display: flex; flex-direction: column; line-height: 1.2; min-width: 150px; }
.when b { font-size: .95rem; font-weight: 600; }
.when span { font-size: .8rem; color: var(--text-muted, rgba(238,242,248,.6)); }
.needs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 560px; justify-self: center; width: 100%; }
.need { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; color: var(--text-muted, rgba(238,242,248,.6)); }
.need i { display: block; height: 5px; border-radius: 3px; background: var(--surface, rgba(255,255,255,.1)); overflow: hidden; }
.need b { display: block; height: 100%; background: var(--accent, #0a84ff); transition: width .25s; }
.need.low { color: var(--accent-2, #ff9f0a); } .need.low b { background: var(--accent-2, #ff9f0a); }
.cash { font-size: 1.05rem; font-weight: 700; text-align: right; min-width: 70px; }
#stage { position: relative; min-height: 0; overflow: hidden; background: #bcd9ea; }
#gl, #ov { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#ov { pointer-events: none; }
#gl { touch-action: none; cursor: pointer; }
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lbl { position: absolute; transform: translate(-50%, -50%); font-weight: 700; font-size: 12px; color: #fff; text-shadow: 0 0 3px rgba(40,28,52,.95), 0 0 3px rgba(40,28,52,.95), 0 1px 2px rgba(40,28,52,.9); white-space: nowrap; }
.lbl.poi { display: flex; align-items: center; gap: 6px; background: rgba(29,22,36,.88); border: 1px solid #33263a; border-radius: 11px; padding: 2px 9px 2px 3px; text-shadow: none; }
.lbl.poi i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; background: var(--c, #888); border: 1px solid #33263a; }
.lbl.bus { display: flex; align-items: center; gap: 6px; background: rgba(29,22,36,.9); border: 1px solid #33263a; border-radius: 10px; padding: 2px 9px 2px 2px; font-size: 13px; text-shadow: none; pointer-events: none; }
.lbl.bus b { min-width: 28px; text-align: center; border-radius: 8px; padding: 1px 6px; color: #fff; text-shadow: 0 0 2px rgba(0,0,0,.7); }
.lbl.big { font-size: 16px; }
.lbl.street { font-size: 11px; color: #f0eaf8; opacity: .9; }
#cards { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; z-index: 4; max-width: min(360px, calc(100% - 24px)); }
.card { background: var(--surface, #1b2130); color: var(--text, #eef2f8); border: 1px solid var(--border, rgba(255,255,255,.14)); border-radius: 16px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); width: 100%; }
.card .who { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent, #0a84ff); margin-bottom: 4px; }
.card .txt { font-size: .92rem; margin-bottom: 8px; }
.card .opt { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px 10px; margin-top: 6px; border-radius: 11px; border: 1px solid var(--border, rgba(255,255,255,.14)); background: none; color: inherit; font: inherit; font-size: .9rem; cursor: pointer; }
.card .opt:hover:not(:disabled) { border-color: var(--accent, #0a84ff); }
.card .opt:disabled { opacity: .5; cursor: default; }
.card .opt kbd { font: inherit; font-size: .72rem; padding: 1px 7px; border: 1px solid currentColor; border-radius: 6px; opacity: .7; }
.card .opt small { margin-left: auto; color: var(--text-muted, rgba(238,242,248,.6)); font-size: .78rem; white-space: nowrap; }
.card .opt.first { background: var(--accent, #0a84ff); color: var(--wp-on-accent, #fff); border-color: transparent; } .card .opt.first small { color: inherit; opacity: .8; }
#prog { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); min-width: min(380px, 70%); background: var(--surface, #1b2130); border: 1px solid var(--border, rgba(255,255,255,.14)); border-radius: 14px; padding: 8px 12px; z-index: 4; font-size: .85rem; }
#prog i { display: block; height: 6px; border-radius: 3px; background: var(--bg, #0e1117); overflow: hidden; margin-top: 6px; } #prog b { display: block; height: 100%; width: 0; background: var(--accent, #0a84ff); }
#credit { position: absolute; right: 8px; bottom: 4px; font-size: 10px; color: rgba(255,255,255,.85); text-shadow: 0 0 3px rgba(0,0,0,.6); z-index: 2; }

#phoneBtn { margin-left: 8px; font: inherit; font-size: .8rem; font-weight: 700; color: var(--text, #eef2f8); background: var(--surface, #1b2130); border: 1px solid var(--border, rgba(255,255,255,.14)); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.sheet { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(8,10,16,.72); padding: 16px; }
.sheet .panel, .phone .pbody { background: var(--surface, #1b2130); color: var(--text, #eef2f8); border: 1px solid var(--border, rgba(255,255,255,.14)); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.sheet .panel { width: min(560px, 100%); max-height: 100%; overflow: auto; padding: 18px; }
.tabs { display: flex; gap: 14px; margin-bottom: 8px; font-size: .78rem; font-weight: 700; color: var(--text-muted, rgba(238,242,248,.5)); } .tabs .on { color: var(--accent, #0a84ff); }
h4 { margin: 14px 0 6px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, rgba(238,242,248,.6)); }
label { display: block; font-size: .8rem; font-weight: 600; } input, select, textarea { font: inherit; color: inherit; background: rgba(255,255,255,.06); border: 1px solid var(--border, rgba(255,255,255,.14)); border-radius: 10px; padding: 8px 10px; width: 100%; margin-top: 4px; }
.rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } .wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.ch { text-align: left; font: inherit; color: inherit; background: rgba(255,255,255,.05); border: 1px solid var(--border, rgba(255,255,255,.14)); border-radius: 12px; padding: 8px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; } .ch small { color: var(--text-muted, rgba(238,242,248,.6)); font-size: .72rem; } .ch i { width: 22px; height: 12px; border-radius: 6px; display: block; }
.ch.on { border-color: var(--accent, #0a84ff); background: rgba(10,132,255,.16); } .ch.off { opacity: .4; cursor: not-allowed; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; } .sw.on { border-color: var(--accent, #0a84ff); }
.nav { display: flex; justify-content: space-between; margin-top: 16px; gap: 8px; } .go { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 9px 20px; background: var(--accent, #0a84ff); color: var(--on-accent, #fff); cursor: pointer; } .go.ghost { background: rgba(255,255,255,.1); color: inherit; }
.note { font-size: .8rem; color: var(--text-muted, rgba(238,242,248,.6)); margin: 8px 0; } .err { color: var(--accent-2, #ff9f0a); font-size: .82rem; min-height: 1em; margin: 6px 0 0; }
.phone { position: fixed; right: 12px; bottom: 12px; top: calc(var(--top) + 56px); z-index: 25; width: min(380px, calc(100% - 24px)); display: flex; } .phone .pbody { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 12px; }
.ptop { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; } .ptop button, .phone nav button, .mhead button, .ck { font: inherit; font-size: .76rem; font-weight: 700; color: inherit; background: rgba(255,255,255,.08); border: 0; border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.phone nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; } .phone nav .on { background: var(--accent, #0a84ff); color: var(--on-accent, #fff); } .pscroll { overflow: auto; flex: 1; min-height: 0; }
.bar { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: center; font-size: .78rem; margin: 6px 0; } .bar i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; } .bar b { display: block; height: 100%; background: var(--accent, #0a84ff); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .84rem; margin-top: 10px; } .kv b { text-align: right; } .who2 { display: flex; flex-direction: column; margin-bottom: 8px; } .who2 span { font-size: .8rem; color: var(--text-muted, rgba(238,242,248,.6)); }
.it { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border, rgba(255,255,255,.08)); font-size: .84rem; } .it small { display: block; color: var(--text-muted, rgba(238,242,248,.6)); font-size: .72rem; } .it.done b { text-decoration: line-through; opacity: .5; } .it .ck:last-child { margin-left: auto; } .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.add { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 10px; } .add.col { grid-template-columns: 1fr; } .add input[type=date], .add select { grid-column: 1; }
.mhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .dow, .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: .72rem; } .day { position: relative; font: inherit; font-size: .8rem; color: inherit; background: rgba(255,255,255,.05); border: 0; border-radius: 8px; padding: 8px 0; cursor: pointer; } .day.today { outline: 2px solid var(--accent, #0a84ff); } .day u { position: absolute; right: 3px; top: 1px; font-size: .6rem; text-decoration: none; color: var(--accent-2, #ff9f0a); }
.notes { white-space: pre-wrap; font: inherit; font-size: .82rem; } .qa { background: rgba(255,255,255,.05); border-radius: 12px; padding: 10px; }
.rdmap { width: 100%; border-radius: 12px; background: #11151d; margin-top: 6px; cursor: crosshair; }

/* needs ride the header row as Sims-style rings, the date and time ride the pill's blob, the phone is a real phone */
#app { grid-template-rows: minmax(0, 1fr); padding-top: var(--top); }
#hud { position: fixed; z-index: 6; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; pointer-events: none; }
#hud .needs { display: flex; gap: 8px; max-width: none; width: auto; }
.need { --p: 50%; --ring: var(--accent, #0a84ff); position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text, #eef2f8); background: none; pointer-events: auto; }
.need::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--ring) var(--p), rgba(255,255,255,.18) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }   /* an outline ring: the arc is the level, the middle stays empty */
.need svg { position: relative; width: 20px; height: 20px; }
.need.low { --ring: var(--accent-2, #ff9f0a); color: var(--accent-2, #ff9f0a); }
#hud .cash { font-size: .92rem; font-weight: 700; min-width: 0; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
@media (max-width: 640px) { #hud { gap: 8px; } }
.phone { top: auto; bottom: 14px; right: 14px; height: min(720px, calc(100% - var(--top) - 24px)); width: min(360px, calc(100% - 20px)); }
.phone .pbody { border-radius: 42px; padding: 30px 14px 20px; border: 9px solid #0b0d12; box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 24px 70px rgba(0,0,0,.6); position: relative; }
.phone .pbody::before { content: ''; position: absolute; top: 8px; left: 50%; width: 84px; height: 20px; margin-left: -42px; border-radius: 12px; background: #0b0d12; }
.phone .pbody::after { content: ''; position: absolute; bottom: 7px; left: 50%; width: 110px; height: 4px; margin-left: -55px; border-radius: 3px; background: rgba(255,255,255,.35); }

.sheet .panel.wide { width: min(780px, 100%); }
.look { display: grid; grid-template-columns: 250px 1fr; gap: 14px; align-items: start; } .lopts { min-width: 0; max-height: 52vh; overflow: auto; }
.pvbox { border-radius: 16px; background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.1), rgba(255,255,255,.02)); border: 1px solid var(--border, rgba(255,255,255,.14)); display: grid; place-items: center; overflow: hidden; touch-action: none; } .pvbox.sm { width: 150px; }
.pv3d { display: block; cursor: grab; }
.ch.tb { padding: 5px 11px; flex-direction: row; } @media (max-width: 640px) { .look { grid-template-columns: 1fr; } .lopts { max-height: none; } }
.shoptop { display: flex; gap: 12px; align-items: center; } .snav { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; } .snav button { font: inherit; font-size: .74rem; font-weight: 700; color: inherit; background: rgba(255,255,255,.08); border: 0; border-radius: 999px; padding: 4px 10px; cursor: pointer; } .snav .on { background: var(--accent, #0a84ff); color: var(--on-accent, #fff); }
.it.col { flex-direction: column; align-items: stretch; gap: 6px; } .it .rw { display: flex; align-items: center; gap: 10px; } .sws { display: flex; gap: 6px; padding-left: 24px; } .sw.s { width: 20px; height: 20px; }
select { font: inherit; color: inherit; background: rgba(255,255,255,.06); border: 1px solid var(--border, rgba(255,255,255,.14)); border-radius: 10px; padding: 8px 10px; width: 100%; }

.homes { display: grid; gap: 8px; margin-top: 8px; } .hm { border: 1px solid var(--border, rgba(255,255,255,.14)); border-radius: 14px; padding: 9px 11px; display: grid; gap: 6px; } .hm small { display: block; color: var(--text-muted, rgba(238,242,248,.6)); font-size: .72rem; } .hm.on { border-color: var(--accent, #0a84ff); } .hm.off { opacity: .45; }
.hoods { max-height: 96px; overflow: auto; margin: 6px 0; } .sheet .panel { max-height: calc(100vh - 32px); }

#mini { position: absolute; left: 12px; bottom: 28px; z-index: 5; width: 240px; border-radius: 18px; overflow: hidden; border: 2px solid rgba(255,255,255,.22); box-shadow: 0 8px 26px rgba(0,0,0,.5); background: #1b1e26; cursor: pointer; }
#mini canvas { display: block; } #mini .mlab { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: .72rem; font-weight: 700; color: #fff; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.7)); text-shadow: 0 1px 3px rgba(0,0,0,.8); }
#mini { cursor: pointer; } #mini .mzoom { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; } #mini .mzoom::after { content: ''; position: absolute; right: 8px; top: 8px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); background: rgba(23,18,28,.55); box-sizing: border-box; } #mini:focus-visible { outline: 2px solid #ffd24a; outline-offset: 2px; }
@media (max-width: 640px) { #mini { width: 130px; left: 8px; bottom: 24px; } #mini canvas { width: 130px !important; height: 130px !important; } }
/* swap sides (controlSwap.js): html.ctl-swap puts the map and its zoom slider on the right and the joystick on the left; pills that stand above the controls stay on the right edge, now above the map */
#mini { left: max(12px, env(safe-area-inset-left)); } @media (max-width: 640px) { #mini { left: max(8px, env(safe-area-inset-left)); } }
#mini.ctl-lift { z-index: 9; border-color: rgba(255,255,255,.7); box-shadow: 0 22px 44px rgba(0,0,0,.6); }
.ctl-swap #mini { left: auto; right: max(12px, env(safe-area-inset-right)); } .ctl-swap #mobileJoystick { right: auto; left: max(20px, env(safe-area-inset-left)); }
.ctl-swap #doorStack { right: max(12px, env(safe-area-inset-right)) !important; bottom: calc(28px + 244px + 12px) !important; }
/* first-paint place for the slider before zoomControls.js measures the map */
.ctl-swap #yegZoom { left: auto; right: calc(max(12px, env(safe-area-inset-right)) + 248px); } @media (max-width: 640px) { .ctl-swap #yegZoom { right: calc(max(8px, env(safe-area-inset-right)) + 138px); } }
@media (max-width: 640px) { .ctl-swap #mini { right: max(8px, env(safe-area-inset-right)); } .ctl-swap #doorStack { right: max(8px, env(safe-area-inset-right)) !important; bottom: calc(24px + 134px + 12px) !important; } }
.txlog { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; max-height: 300px; overflow-y: auto; } .tx { max-width: 86%; font-size: .84rem; padding: 6px 10px; border-radius: 13px; background: rgba(255,255,255,.1); align-self: flex-start; } .tx.me { align-self: flex-end; background: var(--accent, #0a84ff); color: var(--on-accent, #fff); } .tx.sys { align-self: center; background: none; color: var(--text-muted, rgba(238,242,248,.6)); font-size: .74rem; }

/* paying with your hands */
#pay { position: fixed; z-index: 28; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(380px, calc(100vw - 24px)); display: grid; gap: 10px; justify-items: center; }
.pyreader { width: 100%; border-radius: 18px; padding: 12px 16px; background: #1a1d26; border: 2px solid rgba(255,255,255,.2); color: #fff; display: grid; gap: 2px; text-align: center; position: relative; overflow: hidden; transition: border-color .15s, background .15s; } .pyreader b { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); } .pyreader span { font-size: 1.1rem; font-weight: 700; }
.pyreader.hot { border-color: #ffd24a; background: #232736; } .pyreader.ok { border-color: #34c759; background: #143a22; } .pyreader.no { border-color: #ff453a; animation: pyshake .4s; } @keyframes pyshake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.pywallet { position: relative; width: 300px; height: 232px; border-radius: 16px 16px 22px 22px; background: linear-gradient(180deg,#5a3a24,#3f2716); box-shadow: 0 12px 28px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.08); overflow: visible; }
.pycards { position: absolute; left: 25px; right: 25px; top: 10px; bottom: 56px; }
.pycard { position: absolute; left: 0; right: 0; top: calc(var(--i) * 44px); height: 88px; border-radius: 14px; padding: 10px 14px; color: #fff; display: grid; align-content: start; gap: 3px; box-shadow: 0 -3px 10px rgba(0,0,0,.35); cursor: grab; touch-action: none; transition: transform .25s cubic-bezier(.2,.9,.3,1.2); z-index: calc(2 + var(--i)); } .pycard small { opacity: .75; } .pycard.drag { transition: none; cursor: grabbing; z-index: 30; }
.pyflap { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; border: 0; border-radius: 6px 6px 22px 22px; background: linear-gradient(180deg,#6b4630,#4a2f1c); color: #f3e3cf; font: inherit; font-weight: 700; cursor: pointer; z-index: 40; box-shadow: 0 -2px 8px rgba(0,0,0,.35); }
.pyflap::after { content: ''; position: absolute; left: 14px; right: 14px; top: 8px; bottom: 8px; border: 1.5px dashed rgba(255,235,205,.35); border-radius: 14px; pointer-events: none; }
.pywallet.open::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 66px; border-radius: 6px 6px 22px 22px; background: linear-gradient(180deg,#6b4630,#4a2f1c); z-index: 20; pointer-events: none; }
.pymsg { color: #fff; font-weight: 600; font-size: .9rem; text-shadow: 0 1px 6px rgba(0,0,0,.7); } .pyx { font: inherit; font-size: .78rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.12); border: 0; border-radius: 999px; padding: 5px 14px; cursor: pointer; }

/* ---- the phone, iOS style: status bar and island, home screen with a dock, app pages with a back button and a home bar ---- */
.phone { --i-bg: #000; --i-card: #1c1c1e; --i-card2: #2c2c2e; --i-sep: rgba(84,84,88,.55); --i-mut: rgba(235,235,245,.6); --i-blue: #0a84ff; --i-green: #30d158; --i-red: #ff453a; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif; width: min(342px, calc(100% - 20px)); }
.phone .pbody.ios { padding: 0; border-radius: 52px; border: 10px solid #0a0a0c; background: #000; color: #fff; overflow: hidden; position: relative; box-shadow: 0 0 0 1.5px #3d3d42, 0 0 0 3.5px #151518, 0 30px 80px rgba(0,0,0,.65); }
.phone .pbody.ios::before, .phone .pbody.ios::after { display: none; }
.phone .pwr { position: absolute; right: -4px; top: 128px; width: 4px; height: 72px; border-radius: 2px; background: #3a3a3f; cursor: pointer; }
.sbar { position: absolute; top: 0; left: 0; right: 0; height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 8px 26px 0 30px; font-size: 15px; font-weight: 600; z-index: 4; pointer-events: none; }
.sbar .isl { position: absolute; left: 50%; top: 11px; width: 94px; height: 28px; margin-left: -47px; border-radius: 16px; background: #000; }
.sbar .sr { display: flex; align-items: center; gap: 6px; }
.sbar .carrier { font-size: 10px; font-weight: 700; letter-spacing: .01em; opacity: .85; white-space: nowrap; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.phone .ios.home { display: flex; flex-direction: column; padding: 58px 16px 16px; background-size: cover; }
.hw { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.2); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-radius: 22px; padding: 14px 18px; }
.hw small { display: block; font-size: 12px; opacity: .85; font-weight: 500; } .hw b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; } .hw b i { font-size: 13px; font-style: normal; font-weight: 600; margin-left: 4px; opacity: .85; } .hw .hwr { text-align: right; min-width: 0; flex: 0 1 auto; } .hw .hwr b { font-size: 24px; white-space: nowrap; } .hw .hwc { flex: none; } .hw { gap: 10px; }
.hw2 { margin-top: 10px; justify-content: flex-start; gap: 12px; } .hw2 .wxi { width: 44px; height: 44px; flex: none; } .hw2 .wxm b { font-size: 34px; line-height: 1; } .hw2 .wxm small { margin-top: 3px; font-size: 13px; opacity: 1; } .hw2 .wxr { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.agrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 4px; margin-top: 20px; align-content: start; flex: 1; }
.app { background: none; border: 0; color: #fff; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; cursor: pointer; padding: 0; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.app:active .ai { transform: scale(.92); filter: brightness(.85); }
.ai { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .12s, filter .12s; }
.ai.cal { color: #111; display: flex; flex-direction: column; justify-content: center; gap: 0; } .ai .cdow { font-size: 9px; font-weight: 700; color: #ff3b30; line-height: 1.1; } .ai .cday { font-size: 29px; font-weight: 300; line-height: 1; letter-spacing: -.03em; }
.pdots { display: flex; justify-content: center; gap: 7px; margin: 10px 0; } .pdots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); } .pdots i.on { background: #fff; }
.dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: rgba(255,255,255,.22); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 32px; padding: 12px 10px; margin-bottom: 14px; } .dock .app span { display: none; }
.hbar { position: absolute; bottom: 5px; left: 50%; width: 150px; height: 24px; margin-left: -75px; background: none; border: 0; cursor: pointer; z-index: 4; padding: 0; }
.hbar::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 5px; border-radius: 3px; background: #fff; opacity: .85; }
.phone .ios.app { display: flex; flex-direction: column; align-items: stretch; padding: 50px 0 0; background: #000; animation: iosOpen .26s cubic-bezier(.2,.8,.2,1); }
@keyframes iosOpen { from { transform: scale(.93); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .phone .ios.app { animation: none; } }
.nbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 2px 12px 8px; min-height: 36px; }
.nbar .back { justify-self: start; display: flex; align-items: center; gap: 5px; background: none; border: 0; color: #0a84ff; font: inherit; font-size: 17px; cursor: pointer; padding: 4px 2px; }
.nbar b { font-size: 17px; font-weight: 600; }
.phone .ios .pscroll { width: 100%; box-sizing: border-box; padding: 4px 16px 52px; overflow: auto; flex: 1; min-height: 0; font-size: 15px; }
.phone .ios h4 { margin: 22px 14px 7px; font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; color: var(--i-mut); }
.phone .ios .note { color: var(--i-mut); font-size: 13px; margin: 8px 14px; line-height: 1.35; } .phone .ios .err { color: #ff9f0a; font-size: 13px; margin: 8px 14px 0; }
.phone .ios input, .phone .ios select, .phone .ios textarea { background: #1c1c1e; border: 0; border-radius: 10px; padding: 11px 12px; font-size: 16px; color: #fff; margin-top: 0; }
.phone .ios .go { border-radius: 12px; padding: 11px 18px; background: #0a84ff; color: #fff; font-weight: 600; font-size: 16px; } .phone .ios .go:disabled { opacity: .4; } .phone .ios .go.ghost { background: #2c2c2e; }
.phone .ios .ck { background: rgba(10,132,255,.18); color: #0a84ff; font-weight: 600; border-radius: 999px; padding: 6px 13px; font-size: 13px; } .phone .ios .ck.dis { background: #2c2c2e; color: rgba(235,235,245,.6); }
.phone .ios .it { background: #1c1c1e; padding: 12px 14px; border: 0; border-radius: 12px; margin-bottom: 6px; font-size: 15px; } .phone .ios .it small { color: var(--i-mut); font-size: 12px; margin-top: 2px; }
.phone .ios .kv { background: #1c1c1e; border-radius: 12px; padding: 12px 14px; gap: 10px 12px; font-size: 15px; } .phone .ios .kv span { color: var(--i-mut); }
.phone .ios .who2 { margin: 2px 2px 14px; } .phone .ios .who2 b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; } .phone .ios .who2 span { color: var(--i-mut); font-size: 14px; }
.phone .ios .bar { grid-template-columns: 62px 1fr; font-size: 13px; color: var(--i-mut); margin: 9px 4px; } .phone .ios .bar i { height: 8px; border-radius: 4px; background: #2c2c2e; } .phone .ios .bar b { background: #30d158; border-radius: 4px; }
.phone .ios .mhead button { background: none; color: #0a84ff; font-size: 16px; font-weight: 400; padding: 4px 6px; } .phone .ios .mhead b { font-size: 17px; }
.phone .ios .dow { color: var(--i-mut); font-size: 11px; margin-bottom: 4px; } .phone .ios .day { background: none; border-radius: 50%; padding: 0; width: 36px; height: 36px; margin: 0 auto; font-size: 17px; position: relative; }
.phone .ios .day.today { background: #ff3b30; outline: 0; color: #fff; font-weight: 600; } .phone .ios .day u { position: absolute; bottom: 1px; left: 50%; margin-left: -2px; width: 4px; height: 4px; border-radius: 50%; background: #0a84ff; font-size: 0; }
.phone .ios .txlog { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; } .phone .ios .tx { max-width: 78%; padding: 8px 13px; border-radius: 18px; font-size: 15px; line-height: 1.3; }
.phone .ios .tx.me { align-self: flex-end; background: #0a84ff; } .phone .ios .tx.them { align-self: flex-start; background: #2c2c2e; } .phone .ios .tx.sys { align-self: center; color: var(--i-mut); font-size: 12px; background: none; }
.phone .ios .rows { display: block; } .phone .ios .ch { background: #1c1c1e; border: 0; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; width: 100%; font-size: 15px; } .phone .ios .ch.on { background: rgba(10,132,255,.22); } .phone .ios .ch small { color: var(--i-mut); }
.phone .ios .snav { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0; padding-bottom: 2px; } .phone .ios .snav button { flex: none; background: #2c2c2e; color: #fff; border: 0; border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 13px; cursor: pointer; } .phone .ios .snav button.on { background: #0a84ff; }
.phone .ios .rdmap { border-radius: 14px; background: #11151d; }
.grp { background: #1c1c1e; border-radius: 12px; overflow: hidden; margin-bottom: 4px; }
.grp .row { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: none; border: 0; border-bottom: .5px solid rgba(84,84,88,.55); color: inherit; font: inherit; font-size: 15px; padding: 12px 14px; cursor: pointer; }
.grp .row:last-child { border-bottom: 0; } .grp .row > div { flex: 1; min-width: 0; } .grp .row small { display: block; color: rgba(235,235,245,.6); font-size: 12px; margin-top: 2px; } .grp .row.sel { background: rgba(10,132,255,.22); } .grp .row.static { cursor: default; }
.phone .ios .mut { color: rgba(235,235,245,.6); font-size: 14px; margin-left: auto; }
.tg { width: 51px; height: 31px; border-radius: 16px; background: #39393d; border: 0; position: relative; flex: none; cursor: pointer; transition: background .2s; padding: 0; }
.tg i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 2px 4px rgba(0,0,0,.3); } .tg.on { background: #30d158; } .tg.on i { left: 22px; }
.raceHost { height: 450px; border-radius: 16px; overflow: hidden; background: #000; }
.rgo { display: flex; justify-content: space-between; align-items: center; margin: 18px 4px 4px; } .rgo small { display: block; color: rgba(235,235,245,.6); font-size: 12px; } .rgo b { font-size: 24px; font-weight: 700; }
.rres { text-align: center; margin: 14px 0; } .rres .rplace { display: block; font-size: 60px; font-weight: 800; letter-spacing: -.03em; } .rres small { color: rgba(235,235,245,.6); font-size: 14px; }
.phone .ios .dot { width: 14px; height: 14px; }

.phone .ios .add { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; } .phone .ios .add.row { flex-direction: row; } .phone .ios .add.row input { flex: 1; min-width: 0; } .phone .ios .add select, .phone .ios .add input:not([type=file]) { width: 100%; box-sizing: border-box; height: 44px; } .phone .ios .add textarea { width: 100%; box-sizing: border-box; min-height: 96px; } .phone .ios .add .go { width: 100%; height: 46px; } .phone .ios .add.row .go { width: auto; flex: none; }
.phone .ios .dsel { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 6px; } .phone .ios .dsel select { height: 44px; grid-column: auto; }
.phone .ios input[type=file] { padding: 9px 12px; height: auto; font-size: 14px; }

/* Keep the game's phone and Servant side by side, including compact layouts. */
html.wp-in-game .wp-topright > #wpGameBlob { display: flex !important; order: 0; }
html.wp-in-game .wp-topright > .wp-notes-corner:not(#wpGameBlob) { display: flex !important; order: 1; }
html.wp-in-game .wp-topright > .wp-page-acts { order: 2; }
html.wp-in-game .wp-topright > .wp-search-btn { order: 3; }
html.wp-in-game .wp-topright > .wp-fs-btn { order: 4; }
/* ix */
#ix { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
#ix.off { display: none; }
.ixb { position: absolute; left: 0; top: 0; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; display: flex; align-items: flex-end; justify-content: center; pointer-events: auto; cursor: pointer; font: inherit; color: #2b2233; touch-action: manipulation; }
.ixb-p { display: flex; align-items: center; gap: 0; height: 36px; padding: 3px; border-radius: 999px; background: #fff; border: 2px solid #2b2233; box-shadow: 0 3px 0 rgba(43,34,51,.25); animation: ixbob 2.2s ease-in-out infinite; transition: gap .2s; }
.ixb-g { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--t, #ffd9e6); flex: none; }
.ixg { width: 17px; height: 17px; display: block; }
.ixb-l { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: 13px; transition: max-width .25s, padding .25s; }
.ixb.on .ixb-l { max-width: 180px; padding: 0 10px 0 7px; }
.ixb.on .ixb-p { box-shadow: 0 3px 0 rgba(43,34,51,.25), 0 0 0 3px rgba(255,255,255,.55); }
.ixb.still .ixb-p { animation: none; }
.ixb-beacon.on .ixb-l { max-width: min(320px, 70vw); }
.ixf.hint { background: #fff; color: #2b2233; border-color: #2b2233; font-size: 15px; font-weight: 700; }
.need.starving { --ring: #d65a5a; color: #d65a5a; }
@keyframes ixbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.ixf { position: absolute; left: 0; top: 0; font-weight: 800; font-size: 18px; color: #fff; padding: 2px 10px; border-radius: 999px; background: #2b2233; border: 2px solid #fff; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.ixf.cash { background: #2f7a49; }
.ix-card { position: absolute; left: 0; top: 0; width: min(250px, 70vw); padding: 12px 14px 10px; background: #fffaf0; color: #2b2233; border: 2px solid #2b2233; border-radius: 14px; box-shadow: 0 5px 0 rgba(43,34,51,.22); rotate: var(--tilt, 0deg); animation: ixcard .22s ease-out; transition: opacity .25s; }
.ix-card.out { opacity: 0; }
.ix-card b { display: block; font-size: 15px; margin-bottom: 4px; }
.ix-card p { margin: 3px 0; font-size: 13px; line-height: 1.35; }
.ix-card small { display: block; margin-top: 8px; padding-top: 6px; border-top: 2px dashed rgba(43,34,51,.3); font-size: 12px; font-weight: 700; }
@keyframes ixcard { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
.ix-beat { position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; pointer-events: auto; cursor: pointer; touch-action: none; user-select: none; background: rgba(255,255,255,.92); border: 2px solid #2b2233; border-radius: 18px; color: #2b2233; font-weight: 800; font-size: 13px; transition: opacity .25s; min-width: 120px; }
.ix-beat.out { opacity: 0; }
.ix-beat svg { width: 120px; height: 120px; display: block; }
.ix-beat .trk { fill: none; stroke: #d9d3de; stroke-width: 10; }
.ix-beat .win { fill: none; stroke: #8fd3a0; stroke-width: 12; stroke-linecap: round; }
.ix-beat .perf { fill: none; stroke: #3c9a59; stroke-width: 12; stroke-linecap: round; }
.ix-beat .ndl line { stroke: #2b2233; stroke-width: 3; stroke-linecap: round; } .ix-beat .ndl circle { fill: #2b2233; }
.ix-beat.perfect { background: #e3f6e8; } .ix-beat.good { background: #fff3cf; } .ix-beat.miss { background: #fbe0e0; }
.ix-beat .bar { position: relative; width: 200px; height: 20px; border-radius: 10px; background: #d9d3de; overflow: hidden; border: 2px solid #2b2233; }
.ix-beat .bar b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #2b2233; opacity: .8; } .ix-beat .zone { position: absolute; top: 0; bottom: 0; background: #8fd3a0; }
.ix-beat .tapc { position: relative; width: 140px; text-align: center; font-size: 26px; } .ix-beat .tapc i { display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: #3c9a59; }
.ix-beat .ch { display: flex; flex-direction: column; gap: 6px; } .ix-beat .ch button { display: flex; align-items: center; gap: 8px; font: inherit; color: inherit; background: #fff; border: 2px solid #2b2233; border-radius: 999px; padding: 8px 16px; min-height: 44px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ixb-p { animation: none; } .ix-card { animation: none; } .ixb-l, .ixb-p { transition: none; } }

/* Fullscreen resident onboarding */
html.resident-onboarding .wp-pill,html.resident-onboarding .wp-topleft,html.resident-onboarding .wp-topright{visibility:hidden!important}
#residentWelcome{position:fixed;inset:0;z-index:2147483646;display:grid;place-items:center;background:#fff;color:#111;font-family:'DM Sans',system-ui,sans-serif}
#residentWelcome .welcome-copy{text-align:center;padding:24px}
#residentWelcome h1{font-size:clamp(40px,7vw,72px);letter-spacing:-.055em;margin:0 0 32px;font-weight:800}
#residentWelcome button{font:600 16px 'DM Sans',sans-serif;background:#111;color:#fff;border:0;border-radius:999px;padding:17px 28px;cursor:pointer}
#creator.resident-studio{position:fixed;inset:0;z-index:2147483646;display:flex;flex-direction:column;background:#f5f7f6;color:#172722;padding:0;--text:#172722;--text-muted:#5f726a;--border:#d8e1dc;--accent:#226d50;--surface:#fff;font-family:'DM Sans',system-ui,sans-serif}
#creator .studio-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 32px;background:#fff;border-bottom:1px solid #d8e1dc}
#creator .studio-brand{font-size:12px;letter-spacing:.15em;text-transform:uppercase;color:#60746a}
#creator .studio-header h1{font-size:25px;letter-spacing:-.04em;margin:3px 0 0;color:#172722}
#creator .studio-tabs{display:flex;gap:8px;flex-wrap:wrap}
#creator .studio-tabs button{border:1px solid transparent;background:transparent;color:#66776f;border-radius:999px;padding:10px 16px;font:600 14px 'DM Sans',sans-serif;cursor:pointer}
#creator .studio-tabs button.on{background:#e1f0e8;color:#18563d;border-color:#bedaca}
#creator .studio-tabs button:disabled{opacity:.45;cursor:default}
#creator .studio-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,440px);flex:1;min-height:0}
#creator .studio-model{position:relative;min-height:0;background:radial-gradient(ellipse at 50% 38%,#fff 0%,#edf4f0 50%,#d9e8e0 100%);display:flex;flex-direction:column}
#creator .studio-model .pvbox{flex:1;min-height:0;border:0;border-radius:0;background:transparent;width:100%}
#creator .studio-model .pv3d{width:100%;height:100%;outline:none;touch-action:none}
#creator .model-tools{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;padding:14px 18px 8px}
#creator .model-tools button{background:#fff;color:#28543f;border:1px solid #bfd2c6;border-radius:999px;padding:9px 15px;font:600 13px 'DM Sans',sans-serif;cursor:pointer}
#creator .model-hint{text-align:center;font-size:12px;color:#62786a;margin:5px 0 18px}
#creator .studio-controls{background:#fff;border-left:1px solid #d8e1dc;min-height:0;overflow:auto;padding:26px 28px;overscroll-behavior:contain}
#creator .studio-controls h2{margin:0 0 5px;font-size:25px;letter-spacing:-.035em}
#creator .studio-subtitle{font-size:14px;color:#62756b;margin:0 0 24px}
#creator .studio-controls .look{display:block}
#creator .studio-controls .lopts{min-width:0}
#creator h4{color:#5f726a}
#creator input,#creator select{background:#f5f8f6;border-color:#ccd9d1;color:#172722;min-height:44px;font-size:16px}
#creator .ch{background:#f7f9f8;border-color:#d8e1dc;color:#263d30;min-height:44px}
#creator .ch.on{border-color:#226d50;background:#eaf5ee;box-shadow:0 0 0 1px #226d50}
#creator .ch small,#creator .note{color:#66776f}
#creator .sw{min-width:36px;min-height:36px}
#creator .sw.on{outline:3px solid #226d50;outline-offset:2px}
#creator .studio-footer{display:flex;align-items:center;gap:16px;padding:16px 32px;border-top:1px solid #d8e1dc;background:#fff}
#creator .studio-footer .err{flex:1;margin:0;color:#ad3a2f;font-size:14px}
#creator .studio-footer .go{background:#226d50;color:#fff;padding:13px 24px;border-radius:999px;border:1px solid #226d50;min-height:46px;font-weight:700;cursor:pointer}
#creator .studio-footer .ghost{background:#fff;color:#28543f;border-color:#cad9d0}
#creator button:focus-visible,#residentWelcome button:focus-visible{outline:3px solid #79b99c;outline-offset:3px}
#creator .rdmap{max-width:100%;height:auto;border-radius:12px}
@media(max-width:760px){#creator .studio-header{padding:14px 18px;gap:12px;flex-wrap:wrap}#creator .studio-header h1{font-size:20px}#creator .studio-tabs{gap:3px}#creator .studio-tabs button{padding:7px 11px}#creator .studio-body{grid-template-columns:1fr;grid-template-rows:minmax(190px,38vh) minmax(0,1fr)}#creator .studio-controls{border-left:0;border-top:1px solid #d8e1dc;padding:18px}#creator .studio-footer{padding:12px 18px;gap:8px}#creator .studio-footer .go{padding:11px 16px}#creator .model-tools{padding:6px;gap:5px}#creator .model-hint{display:none}#creator .model-tools button{padding:6px 10px;font-size:12px}}
@media(max-height:560px) and (min-width:761px){#creator .studio-header{padding:10px 24px}#creator .studio-footer{padding:10px 24px}}

#creator .studio-model,#creator .studio-controls,#creator .pvbox{min-width:0}
#creator .studio-controls .lopts{max-height:none;overflow:visible}
@media(max-width:760px){#creator .studio-body{grid-template-columns:minmax(0,1fr)}}

#creator .studio-model .pvbox{display:block}

/* the two rings stack in a column at the top left of the world, below the header, on every screen size */
#hud { top: calc(var(--top, 66px) + 10px); left: 10px; transform: none; max-width: none; justify-content: flex-start; align-items: flex-start; gap: 0; }
#hud .needs { flex-direction: column; gap: 6px; align-items: flex-start; }
.need svg { width: 20px; height: 20px; }
}

/* ---- the phone keeps a real iPhone's proportions (390 x 844, about 19.5:9) at every window size: one fixed design size, scaled to fit, so the dock and home bar can never be clipped ---- */
.phone { position: fixed; top: auto !important; bottom: 14px; right: 14px; width: 390px !important; height: 844px !important; max-height: none !important; transform: scale(var(--ps, 1)); transform-origin: bottom right; }
.phone .pbody.ios { width: 100%; height: 100%; box-sizing: border-box; }
.phone .ios.home { padding: 62px 18px 12px; }
.phone .ios.home .hw { padding: 12px 16px; border-radius: 22px; }
.phone .ios.home .hw2 { margin-top: 10px; }
.phone .ios.home .agrid { grid-template-columns: repeat(4, 1fr); gap: 20px 0; margin-top: 18px; align-content: start; flex: 1; min-height: 0; justify-items: center; }
.phone .ios.home .agrid.full { margin-top: 10px; gap: 22px 0; }
.phone .ios.home .app { width: 72px; gap: 7px; font-size: 11.5px; font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
.phone .ios.home .app > span:last-child { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.phone .ios.home .ai { width: 60px; height: 60px; border-radius: 14px; }
.phone .ios.home .pdots { min-height: 7px; margin: 12px 0 14px; gap: 9px; } .phone .ios.home .pdots i { cursor: pointer; }
.phone .ios.home .dock { margin: 0 0 22px; padding: 14px 12px; border-radius: 34px; flex: none; justify-items: center; gap: 0; }
.phone .ios.home .dock .app { width: 72px; } .phone .ios.home .dock .app span:last-child { display: none; }
.phone .ios.home .hbar { bottom: 6px; }
@media (max-width: 700px) { .phone { bottom: 8px; right: 8px; } }

/* Chat bubbles and the game bar over the 3D scene are fully opaque on every screen, never a faint tint (the pill's own bubbles are 12 to 18 percent alpha). */
@media all {
  html body .wp-nt-msg.bot { background: #262c3c; border-color: rgba(255,255,255,.16); -webkit-backdrop-filter: none; backdrop-filter: none; color: #f2f5fa; }
  html body .wp-nt-msg.user { background: #2f4f8f; border-color: rgba(255,255,255,.22); -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
  html body .wp-nt-gamebar { background: #1d2230; border-color: rgba(255,255,255,.16); }
  html.wp-theme-light body .wp-nt-msg.bot { background: #eef1f6; border-color: rgba(16,19,28,.18); color: #10131c; }
  html.wp-theme-light body .wp-nt-msg.user { background: #d6e4fb; border-color: rgba(59,111,212,.4); color: #10131c; }
  html.wp-theme-light body .wp-nt-gamebar { background: #f2f4f8; }
}

/* the phone's lock screen: notifications wait here (hand-written colours only, on the wallpaper) */
.phone .pbody.lock { display: flex; flex-direction: column; }
.lock .lk-clock { text-align: center; margin: 34px 0 18px; color: #fff; }
.lock .lk-clock small { display: block; font: 600 15px system-ui, sans-serif; opacity: .9; }
.lock .lk-clock b { display: block; font: 300 66px/1.05 system-ui, sans-serif; letter-spacing: -.02em; }
.lock .lk-list { flex: 1; min-height: 0; overflow: auto; padding: 0 14px; display: flex; flex-direction: column; gap: 8px; }
.lock .lk-n { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; padding: 11px 12px; border: 0; border-radius: 20px; background: #2b2f3a; color: #fff; font: inherit; cursor: pointer; }
.lock .lk-n i { flex: none; width: 34px; height: 34px; border-radius: 9px; background: #2f7df6; }
.lock .lk-n span { flex: 1; min-width: 0; display: block; position: relative; }
.lock .lk-n b { font: 700 13px system-ui, sans-serif; } .lock .lk-n small { position: absolute; right: 0; top: 0; font: 500 11px system-ui, sans-serif; color: #b6bcc8; }
.lock .lk-n em { display: block; font: 400 14px/1.3 system-ui, sans-serif; font-style: normal; margin-top: 2px; word-break: break-word; }
.lock .lk-none { text-align: center; color: #e9edf4; opacity: .8; font: 500 14px system-ui, sans-serif; margin-top: 20px; }
.lock .lk-clear { align-self: center; margin: 8px 0 0; padding: 7px 16px; border: 0; border-radius: 16px; background: #2b2f3a; color: #fff; font: 600 13px system-ui, sans-serif; cursor: pointer; }
.lock .lk-unlock { margin: 10px 0 18px; padding: 10px; border: 0; background: none; color: #fff; font: 600 14px system-ui, sans-serif; opacity: .9; cursor: pointer; }

