/* WIT Cars prototype v2 · "Night Bay". Tokens mirror ../BRAND-GUIDE.md and ../../design-tokens.json v2. */
@font-face { font-family: "Archivo"; src: url(assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(assets/fonts/dm-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(assets/fonts/dm-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #000; --ivory: #F2EFE8; --blue: #2D3192; --blue-deep: #1E2170; --gold: #D1AA4E;
  --font: "Archivo", system-ui, -apple-system, sans-serif; --mono: "DM Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px;
  --gx: 20px;
}
[data-theme="dark"] {
  --bg: #000; --g1: #0E0E10; --g2: #17171A; --g3: #222226;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --text: #F2EFE8; --fog: #A6A49F; --ash: #807E79;
  --accent: var(--gold); --pbg: #F2EFE8; --pfg: #000;
  --ok: #46B67F; --due: #E2A33B; --bad: #EE5D55; --info: #8E93E6;
  --sel: rgba(242,239,232,.06); --focus: #F2EFE8; --scrim: rgba(0,0,0,.6);
  --mark: url(assets/img/wit-mark.png);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F6F4EF; --g1: #FFFFFF; --g2: #EFECE6; --g3: #E4E1DA;
  --line: rgba(0,0,0,.08); --line2: rgba(0,0,0,.14);
  --text: #0B0B0D; --fog: #55534F; --ash: #6B6964;
  --accent: var(--blue); --pbg: #0B0B0D; --pfg: #F2EFE8;
  --ok: #17784B; --due: #9A5B00; --bad: #C2322A; --info: #2D3192;
  --sel: rgba(45,49,146,.06); --focus: #2D3192; --scrim: rgba(0,0,0,.42);
  --mark: url(assets/img/wit-mark-ink.png);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #000; color: #F2EFE8; font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overflow: hidden; font-feature-settings: "ss01"; }
::selection { background: var(--gold); color: #000; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--focus, #F2EFE8); outline-offset: 3px; border-radius: 8px; }
input::placeholder, textarea::placeholder { color: var(--ash); }
input { caret-color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .01em; font-size: .92em; }
* { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 6px; }

/* ---------- stage ---------- */
.stage { height: 100%; display: flex; align-items: center; justify-content: center; gap: 80px; padding: 24px; background: #050506; }
.side { width: 280px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; color: #F2EFE8; }
.side-lock { display: flex; align-items: center; gap: 12px; }
.side-lock img { height: 26px; width: auto; }
.side-lock span { font-weight: 500; font-stretch: 112%; font-size: 22px; letter-spacing: -.01em; }
.side-h { font-weight: 300; font-size: 34px; line-height: 1.1; letter-spacing: -.025em; }
.side-p { color: #A6A49F; font-size: 15px; line-height: 1.6; }
.side-links { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.side-links a, .side-links button { color: #F2EFE8; font-size: 14px; text-decoration: underline; text-decoration-color: rgba(242,239,232,.3); text-underline-offset: 4px; }
.side-fine { color: #807E79; font-size: 12.5px; }
.phone { position: relative; width: 390px; height: 844px; max-height: calc(100vh - 48px); border-radius: 54px; overflow: hidden; background: var(--bg); color: var(--text); box-shadow: 0 0 0 9px #111113, 0 0 0 10px rgba(255,255,255,.1), 0 50px 90px -30px rgba(0,0,0,.9); isolation: isolate; }
.sbar { position: absolute; top: 0; left: 0; right: 0; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 8px 32px 0 38px; z-index: 30; font-weight: 600; font-size: 15px; pointer-events: none; color: var(--text); }
.sbar.on-dark { color: #F2EFE8; }
.sbar-i { display: flex; gap: 6px; align-items: center; }
:root { --top: 52px; --bot: 22px; }
@media (max-width: 600px) {
  .stage { padding: 0; gap: 0; background: var(--bg, #000); }
  .side { display: none; }
  .phone { width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; }
  .sbar { display: none; }
  :root { --top: max(env(safe-area-inset-top), 12px); --bot: max(env(safe-area-inset-bottom), 14px); }
}

/* ---------- screen shell ---------- */
.view { position: absolute; inset: 0; }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--text); padding-top: var(--top); }
.scr.enter { animation: enter .38s var(--ease) both; }
.scr.enter-back { animation: enterBack .38s var(--ease) both; }
.scr.fade { animation: fadeIn .4s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateX(22px); } }
@keyframes enterBack { from { opacity: 0; transform: translateX(-22px); } }
@keyframes fadeIn { from { opacity: 0; } }
.body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px var(--gx) 32px; overscroll-behavior: contain; }
.foot { padding: 12px var(--gx) calc(var(--bot) + 4px); display: flex; flex-direction: column; gap: 8px; background: var(--bg); box-shadow: 0 -1px 0 var(--line); }
.foot.row { flex-direction: row; }
.foot.clear { box-shadow: none; background: transparent; }
.with-tabs .body { padding-bottom: 40px; }
.with-tabs .foot { padding-bottom: 12px; }

/* nav bar */
.nav { height: 52px; display: flex; align-items: center; gap: 4px; padding: 0 8px; flex: none; position: relative; }
.nav-t { position: absolute; left: 64px; right: 64px; text-align: center; font-weight: 600; font-size: 16px; font-stretch: 104%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.nav .sp { flex: 1; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; color: var(--text); flex: none; }
.icon-btn:active { background: var(--sel); }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-s { width: 18px; height: 18px; } .ic-xs { width: 15px; height: 15px; stroke-width: 1.9; } .ic-l { width: 26px; height: 26px; stroke-width: 1.4; }
.lt { padding: 6px var(--gx) 14px; display: flex; align-items: flex-end; gap: 12px; flex: none; }
.lt h1 { flex: 1; font-weight: 600; font-stretch: 108%; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.lt .icon-btn { margin-right: -10px; }

/* type */
.display { font-weight: 600; font-stretch: 110%; font-size: 34px; line-height: 1.12; letter-spacing: -.022em; text-wrap: balance; }
.title { font-weight: 600; font-stretch: 108%; font-size: 26px; line-height: 1.18; letter-spacing: -.018em; text-wrap: balance; }
.head { font-weight: 600; font-stretch: 104%; font-size: 19px; line-height: 1.28; letter-spacing: -.01em; }
.sub { font-weight: 600; font-size: 16px; line-height: 1.35; }
.lede { font-size: 16px; line-height: 1.55; color: var(--fog); text-wrap: pretty; }
.callout { font-size: 15px; line-height: 1.5; color: var(--fog); }
.cap { font-size: 13px; line-height: 1.4; color: var(--fog); }
.fine { font-size: 12.5px; line-height: 1.45; color: var(--ash); }
.fig-xl { font-weight: 300; font-size: 56px; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums lining-nums; }
.fig-l { font-weight: 300; font-size: 40px; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; }
.fig-m { font-weight: 400; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }
.fig-xl small, .fig-l small, .fig-m small { font-size: .42em; letter-spacing: 0; color: var(--fog); font-weight: 400; margin-left: 4px; }
.t-ok { color: var(--ok); } .t-due { color: var(--due); } .t-bad { color: var(--bad); } .t-fog { color: var(--fog); } .t-ash { color: var(--ash); } .t-gold { color: var(--gold); } .t-text { color: var(--text); }
a, .link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link { font-size: 14px; font-weight: 500; }

/* utilities */
.row-x { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; } .g2 { gap: 2px; } .g4 { gap: 4px; } .g6 { gap: 6px; } .g8 { gap: 8px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g20 { gap: 20px; } .g24 { gap: 24px; }
.grow { flex: 1; min-width: 0; }
.m4 { margin-top: 4px; } .m8 { margin-top: 8px; } .m12 { margin-top: 12px; } .m16 { margin-top: 16px; } .m20 { margin-top: 20px; } .m24 { margin-top: 24px; } .m32 { margin-top: 32px; }
.center { text-align: center; }
.hr { height: 1px; background: var(--line); margin: 20px 0; }
.nowrap { white-space: nowrap; }

/* buttons */
.btn { height: 54px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 16px; font-stretch: 104%; padding: 0 22px; width: 100%; transition: transform .16s var(--ease), opacity .2s; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .35; pointer-events: none; }
.btn-p { background: var(--pbg); color: var(--pfg); }
.btn-2 { background: var(--g2); color: var(--text); }
.btn-gold { background: var(--gold); color: #000; }
.btn-line { box-shadow: inset 0 0 0 1px var(--line2); color: var(--text); }
.btn-danger { background: transparent; box-shadow: inset 0 0 0 1px var(--bad); color: var(--bad); }
.btn-sm { height: 38px; border-radius: var(--r-sm); font-size: 14px; padding: 0 14px; width: auto; }
.btn-xs { height: 32px; border-radius: 9px; font-size: 13px; padding: 0 12px; width: auto; }
.btn-text { font-weight: 500; font-size: 15px; color: var(--text); padding: 10px; align-self: center; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 5px; }
.btn .ic { width: 20px; height: 20px; }

/* section headers */
.sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 30px 0 12px; }
.sec h2 { font-weight: 600; font-size: 17px; font-stretch: 104%; letter-spacing: -.005em; }
.sec button, .sec a { font-size: 14px; color: var(--fog); font-weight: 500; }
.sec.first { padding-top: 12px; }

/* grouped list */
.grp { background: var(--g1); border-radius: var(--r-lg); overflow: hidden; }
[data-theme="light"] .grp { box-shadow: 0 0 0 1px var(--line); }
.r { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px; position: relative; width: 100%; text-align: left; }
.r + .r::before { content: ""; position: absolute; top: 0; right: 0; left: 52px; height: 1px; background: var(--line); }
.r.noic + .r::before, .r.noic::before { left: 16px; }
.r:is(button, a):active { background: var(--sel); }
.r > .ic { color: var(--fog); width: 22px; }
.r-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.r-t { font-size: 15.5px; font-weight: 500; line-height: 1.3; }
.r-s { font-size: 13px; color: var(--fog); line-height: 1.35; }
.r-v { text-align: right; font-size: 14.5px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.r-v small { font-size: 12px; color: var(--ash); }
.r .chev { color: var(--ash); width: 16px; height: 16px; margin-right: -4px; }
.r.flat { padding-left: 0; padding-right: 0; }
.flat-list .r { padding-left: 0; padding-right: 0; }
.flat-list .r + .r::before { left: 36px; }
.flat-list .r.noic + .r::before { left: 0; }

/* status */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; flex: none; }
.st.ok { color: var(--ok); } .st.due { color: var(--due); } .st.bad { color: var(--bad); } .st.info { color: var(--fog); } .st.gold { color: var(--gold); }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--g2); color: var(--fog); font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag.gold { background: rgba(209,170,78,.13); color: var(--gold); }
[data-theme="light"] .tag.gold { background: rgba(209,170,78,.2); color: #6E5414; }
.tag.demo { background: transparent; box-shadow: inset 0 0 0 1px var(--line2); color: var(--ash); }

/* proof levels */
.proof { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--fog); white-space: nowrap; }
.proof .ic { width: 15px; height: 15px; stroke-width: 1.8; }
.proof.v { color: var(--gold); }
[data-theme="light"] .proof.v { color: #7A5C12; }
.proof.p { color: var(--text); }

/* cards */
.card { background: var(--g1); border-radius: var(--r-lg); padding: 18px; }
[data-theme="light"] .card { box-shadow: 0 0 0 1px var(--line); }
.card.tight { padding: 14px 16px; }
.card-blue { background: var(--blue-deep); color: #F2EFE8; border-radius: var(--r-lg); padding: 20px; position: relative; overflow: hidden; }
.card-blue .cap, .card-blue .fine, .card-blue .lede { color: rgba(242,239,232,.72); }
.note { display: flex; gap: 12px; align-items: flex-start; background: var(--g1); border-radius: var(--r-md); padding: 14px 16px; }
[data-theme="light"] .note { box-shadow: 0 0 0 1px var(--line); }
.note > .ic { color: var(--fog); margin-top: 1px; width: 20px; height: 20px; }
.note p { font-size: 14px; line-height: 1.5; color: var(--fog); }
.note b { color: var(--text); font-weight: 600; }

/* vehicle hero */
.veh { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #0A0A0B; height: 236px; }
.veh img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.veh::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.82) 100%); }
.veh-on { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #F2EFE8; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.veh-name { font-weight: 600; font-stretch: 106%; font-size: 21px; letter-spacing: -.01em; }
.veh-meta { font-size: 13px; color: rgba(242,239,232,.74); margin-top: 3px; }
.plate { font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: .06em; padding: 4px 8px; border-radius: 5px; background: #F2EFE8; color: #000; white-space: nowrap; }
.veh-top { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2; display: flex; justify-content: space-between; }
.glass { height: 32px; padding: 0 12px; border-radius: 10px; background: rgba(0,0,0,.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #F2EFE8; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.lightbar { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; z-index: 1; background: linear-gradient(90deg, transparent, rgba(209,170,78,.22), transparent); mix-blend-mode: screen; animation: sweep 2.4s var(--ease) .3s 1 both; pointer-events: none; }
@keyframes sweep { from { transform: translateX(-110%); } to { transform: translateX(360%); } }
.dots { display: flex; gap: 6px; justify-content: center; padding-top: 12px; }
.dots i { width: 6px; height: 6px; border-radius: 9px; background: var(--line2); } .dots i.on { background: var(--text); width: 18px; }

/* health strip */
.health { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--g1); border-radius: var(--r-lg); }
[data-theme="light"] .health { box-shadow: 0 0 0 1px var(--line); }
.health button { padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.health button + button::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--line); }
.health .fig-m { font-size: 28px; }
.health .st { font-size: 12.5px; }

/* quick actions */
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qa button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border-radius: var(--r-md); background: var(--g1); font-size: 12.5px; font-weight: 500; color: var(--text); }
[data-theme="light"] .qa button { box-shadow: 0 0 0 1px var(--line); }
.qa .ic { color: var(--text); }

/* ask bar */
.ask { display: flex; align-items: center; gap: 12px; height: 56px; border-radius: var(--r-lg); background: var(--g1); padding: 0 8px 0 10px; width: 100%; }
[data-theme="light"] .ask { box-shadow: 0 0 0 1px var(--line); }
.ask span.ph { flex: 1; color: var(--fog); font-size: 15px; }

/* WITSI */
.witsi { display: block; flex: none; border-radius: 50%; }
.witsi svg { width: 100%; height: 100%; overflow: visible; }
.witsi .wl { transform-box: fill-box; transform-origin: center; }
.witsi .wg { transform-box: fill-box; transform-origin: center; }
.witsi.idle .wl { animation: wIdle 4s ease-in-out infinite; }
.witsi.thinking .wg { animation: wThink 1.4s var(--ease) infinite; }
.witsi.speaking .wl { animation: wSpeak .9s ease-in-out infinite; }
.witsi.found .wl { animation: wFound .6s var(--ease) 2; fill: var(--due); }
.witsi.done .wl { animation: wDone .7s var(--ease) both; }
@keyframes wIdle { 50% { opacity: .78; } }
@keyframes wThink { 0% { transform: translateX(-12px); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateX(12px); opacity: 0; } }
@keyframes wSpeak { 0%, 100% { transform: scaleX(.55); } 25% { transform: scaleX(.95); } 50% { transform: scaleX(.7); } 75% { transform: scaleX(1); } }
@keyframes wFound { 50% { transform: scaleY(2.2); } }
@keyframes wDone { 0% { transform: scaleX(.6); } 60% { transform: scaleX(1.18); } 100% { transform: none; } }

/* quiz */
.prog { height: 2px; flex: 1; background: var(--line2); border-radius: 2px; overflow: hidden; margin: 0 8px; }
.prog i { display: block; height: 100%; background: var(--text); transform-origin: left; transition: transform .5s var(--ease); }
.q-head { padding-top: 12px; }
.opts { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; }
.opt { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 16px; border-radius: var(--r-md); background: var(--g1); font-size: 16px; font-weight: 500; width: 100%; transition: box-shadow .2s var(--ease), background .2s; }
[data-theme="light"] .opt { box-shadow: inset 0 0 0 1px var(--line); }
.opt > .ic { color: var(--fog); }
.opt .grow small { display: block; font-size: 13px; color: var(--fog); font-weight: 400; margin-top: 2px; }
.opt .tick { width: 22px; height: 22px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line2); display: grid; place-items: center; flex: none; }
.opt .tick .ic { width: 14px; height: 14px; stroke-width: 2.4; opacity: 0; color: var(--pfg); }
.opt[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--text); background: var(--g2); }
.opt[aria-pressed="true"] .tick { background: var(--text); box-shadow: none; }
.opt[aria-pressed="true"] .tick .ic { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gx) * -1); padding: 0 var(--gx); }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { height: 36px; padding: 0 14px; border-radius: 10px; background: var(--g1); font-size: 14px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--text); }
[data-theme="light"] .chip { box-shadow: inset 0 0 0 1px var(--line); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); box-shadow: none; }
.chip .ic { width: 16px; height: 16px; }
.say { display: flex; gap: 12px; align-items: center; }
.say p { font-size: 14.5px; color: var(--fog); line-height: 1.45; }

/* form */
.field { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
.label { font-size: 13px; color: var(--fog); font-weight: 500; }
.input { height: 54px; width: 100%; border-radius: var(--r-md); background: var(--g1); border: 0; box-shadow: inset 0 0 0 1px var(--line); padding: 0 16px; font-size: 16px; font-weight: 500; color: var(--text); outline: none; transition: box-shadow .2s; }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--text); }
.input.mono { font-family: var(--mono); letter-spacing: .06em; }
.in-row { display: flex; gap: 8px; }
.in-unit { position: relative; } .in-unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ash); font-size: 14px; }
.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--g1); gap: 2px; }
[data-theme="light"] .seg { background: var(--g2); }
.seg button { flex: 1; text-align: center; height: 36px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--fog); }
.seg button[aria-pressed="true"] { background: var(--g3); color: var(--text); }
[data-theme="light"] .seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tog { width: 50px; height: 30px; border-radius: 99px; background: var(--g3); position: relative; flex: none; transition: background .2s; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 99px; background: #F2EFE8; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.tog[aria-checked="true"] { background: var(--ok); }
.tog[aria-checked="true"]::after { transform: translateX(20px); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
.range::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--text) var(--p, 50%), var(--line2) var(--p, 50%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 99px; background: #F2EFE8; margin-top: -12px; box-shadow: 0 2px 10px rgba(0,0,0,.45); }
.range::-moz-range-track { height: 2px; background: var(--line2); } .range::-moz-range-progress { height: 2px; background: var(--text); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 99px; background: #F2EFE8; border: 0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ash); font-size: 13px; padding: 22px 0 6px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* steps */
.steps { display: flex; gap: 4px; padding: 0 var(--gx) 4px; flex: none; }
.steps i { flex: 1; height: 2px; border-radius: 2px; background: var(--line2); } .steps i.on { background: var(--text); }
.step-l { padding: 10px var(--gx) 0; font-size: 13px; color: var(--fog); flex: none; }

/* timeline */
.tl { position: relative; padding-left: 28px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line2); }
.tl-i { position: relative; padding-bottom: 22px; }
.tl-i:last-child { padding-bottom: 0; }
.tl-i::before { content: ""; position: absolute; left: -26px; top: 5px; width: 11px; height: 11px; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ash); }
.tl-i.done::before { background: var(--text); box-shadow: none; }
.tl-i.now::before { background: var(--gold); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--gold); }
.tl-i.v::before { background: var(--gold); box-shadow: none; }
.tl-t { font-weight: 500; font-size: 15.5px; }
.tl-s { font-size: 13px; color: var(--fog); margin-top: 2px; }
.tl-i.todo .tl-t { color: var(--ash); }
.month { font-size: 13px; color: var(--ash); font-weight: 500; padding: 4px 0 14px; margin-left: -28px; }

/* passport entry card */
.pe { display: block; width: 100%; text-align: left; background: var(--g1); border-radius: var(--r-md); padding: 14px 16px; margin-top: 8px; }
[data-theme="light"] .pe { box-shadow: 0 0 0 1px var(--line); }

/* key-value */
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; }
.kv > div { background: var(--g1); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kv dt, .kv .k { font-size: 12.5px; color: var(--fog); } .kv .v { font-size: 15.5px; font-weight: 500; }
.lines { display: flex; flex-direction: column; }
.ln { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.ln span:last-child { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.ln.tot { border-bottom: 0; font-weight: 600; font-size: 17px; padding-top: 14px; }
.ln.mut { color: var(--fog); font-size: 14px; }

/* photo */
.photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #0A0A0B; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.8)); }
.photo .on { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #F2EFE8; }

/* membership card */
.mcard { position: relative; aspect-ratio: 1.586; border-radius: 20px; overflow: hidden; padding: 20px; color: #F2EFE8; display: flex; flex-direction: column; justify-content: space-between; background: #0B0C2E; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 24px 40px -20px rgba(0,0,0,.8); }
.mcard.platinum { background: #111114; }
.mcard::before { content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 1px; background: linear-gradient(90deg, transparent, rgba(209,170,78,.7), transparent); }
.mcard .mk { height: 18px; width: auto; }
.mcard .tier { font-weight: 500; font-stretch: 112%; font-size: 13px; letter-spacing: .14em; color: var(--gold); }
.mcard .nm { font-size: 15px; font-weight: 500; }
.mcard .fine { color: rgba(242,239,232,.6); }

/* plan picker */
.plan { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: var(--r-md); background: var(--g1); box-shadow: inset 0 0 0 1px var(--line); text-align: left; position: relative; }
.plan[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--text); }
.plan .radio { width: 22px; height: 22px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line2); flex: none; display: grid; place-items: center; }
.plan[aria-checked="true"] .radio { box-shadow: inset 0 0 0 7px var(--text); }
.plan .flag { position: absolute; top: -11px; right: 14px; }
.plan .flag .tag { background: var(--gold); color: #000; }

/* slots */
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { height: 44px; border-radius: 10px; background: var(--g1); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
[data-theme="light"] .slot { box-shadow: inset 0 0 0 1px var(--line); }
.slot[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.slot:disabled { opacity: .3; text-decoration: line-through; }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gx) * -1); padding: 0 var(--gx); }
.day { flex: none; width: 58px; height: 70px; border-radius: 12px; background: var(--g1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
[data-theme="light"] .day { box-shadow: inset 0 0 0 1px var(--line); }
.day small { font-size: 12px; color: var(--fog); } .day b { font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; }
.day[aria-pressed="true"] { background: var(--text); color: var(--bg); } .day[aria-pressed="true"] small { color: var(--bg); opacity: .7; }

/* tabs */
.tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(var(--bot) - 4px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 -1px 0 var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 2px; font-size: 11px; font-weight: 500; color: var(--ash); }
.tab .ic { width: 23px; height: 23px; }
.tab[aria-current="page"] { color: var(--text); }
.with-tabs { padding-bottom: calc(60px + var(--bot)); }

/* sheets & modal */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--g1); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 8px var(--gx) calc(var(--bot) + 10px); display: flex; flex-direction: column; max-height: 86%; box-shadow: 0 -20px 50px rgba(0,0,0,.5); }
[data-theme="light"] .sheet { background: #fff; }
.handle { width: 36px; height: 4px; border-radius: 4px; background: var(--line2); align-self: center; margin-bottom: 14px; flex: none; }
.modal { position: absolute; inset: 0; z-index: 45; background: var(--scrim); animation: fadeIn .2s ease both; }
.modal .sheet { animation: up .38s var(--ease) both; }
@keyframes up { from { transform: translateY(100%); } }

/* map */
.map { position: absolute; inset: 0; background: #0B0C10; overflow: hidden; }
[data-theme="light"] .map { background: #E9E7E1; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pin b { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--g2); color: var(--text); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.pin.wit b { background: var(--gold); color: #000; }
.pin i { width: 2px; height: 8px; background: currentColor; opacity: .5; }
.me-dot { position: absolute; width: 16px; height: 16px; border-radius: 99px; background: #6C72F0; box-shadow: 0 0 0 4px rgba(108,114,240,.25), 0 0 0 2px #fff inset; transform: translate(-50%, -50%); }
.map-sheet { position: absolute; left: 0; right: 0; bottom: 0; top: 50%; background: var(--bg); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 8px var(--gx) 0; display: flex; flex-direction: column; box-shadow: 0 -16px 40px rgba(0,0,0,.4); }
.map-sheet .list { overflow-y: auto; flex: 1; padding-bottom: 80px; }

/* camera */
.cam { background: #000; color: #F2EFE8; }
.cam-view { position: relative; flex: 1; margin: 0 14px; border-radius: var(--r-xl); overflow: hidden; background: #121214; }
.cam-corners { position: absolute; inset: 24px; }
.cam-corners i { position: absolute; width: 30px; height: 30px; border: 2px solid #F2EFE8; }
.cam-corners i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.cam-corners i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.cam-corners i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.cam-corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.bill { position: absolute; left: 50%; top: 50%; width: 66%; transform: translate(-50%, -50%) rotate(-2.5deg); background: #EFEBE2; color: #222; border-radius: 4px; padding: 16px 14px; font-family: var(--mono); font-size: 10.5px; line-height: 1.75; box-shadow: 0 24px 40px rgba(0,0,0,.6); }
.bill .bl { display: flex; justify-content: space-between; gap: 8px; }
.scanbar { position: absolute; left: 0; right: 0; height: 2px; background: var(--gold); animation: scan 1.4s var(--ease) infinite alternate; }
@keyframes scan { from { top: 10%; } to { top: 88%; } }
.shutter { width: 74px; height: 74px; border-radius: 99px; box-shadow: inset 0 0 0 3px #F2EFE8; display: grid; place-items: center; }
.shutter i { width: 60px; height: 60px; border-radius: 99px; background: #F2EFE8; transition: transform .2s var(--ease); }
.shutter:active i { transform: scale(.9); }
.dmg { position: absolute; border: 1.5px solid var(--due); border-radius: 8px; }
.dmg span { position: absolute; left: -1.5px; top: -26px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--due); color: #000; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; }

/* chat */
.msgs { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.msg { max-width: 86%; font-size: 15.5px; line-height: 1.5; }
.msg.me { align-self: flex-end; background: var(--g2); padding: 10px 14px; border-radius: 18px 18px 6px 18px; }
.msg.her { align-self: flex-start; display: flex; gap: 10px; }
.msg.her .bub { padding-top: 2px; }
.msg .cite { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.composer { display: flex; gap: 8px; align-items: center; padding: 10px var(--gx) 10px; box-shadow: 0 -1px 0 var(--line); background: var(--bg); }
.composer .input { height: 46px; border-radius: 99px; }
.send { width: 46px; height: 46px; border-radius: 99px; background: var(--pbg); color: var(--pfg); display: grid; place-items: center; flex: none; }

/* charts */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars i { width: 100%; border-radius: 4px 4px 2px 2px; background: var(--g3); }
.bars div.on i { background: var(--text); }
.bars small { font-size: 11px; color: var(--ash); }
.stackbar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; gap: 2px; }
.stackbar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; font-size: 13px; color: var(--fog); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* compare */
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 11px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.cmp th { font-weight: 600; font-size: 14px; } .cmp td:first-child, .cmp th:first-child { color: var(--fog); font-weight: 400; padding-left: 0; width: 30%; }
.cmp .best { color: var(--ok); }

/* checklist */
.chk { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.chk .box { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line2); display: grid; place-items: center; flex: none; margin-top: 1px; }
.chk .box .ic { width: 14px; height: 14px; stroke-width: 2.4; opacity: 0; color: var(--pfg); }
.chk[aria-checked="true"] .box { background: var(--text); box-shadow: none; } .chk[aria-checked="true"] .box .ic { opacity: 1; }
.chk[aria-checked="true"] .chk-t { color: var(--fog); text-decoration: line-through; text-decoration-color: var(--ash); }
.chk-t { font-size: 15px; font-weight: 500; } .chk-s { font-size: 13px; color: var(--fog); margin-top: 2px; }
.res { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.res.pass { color: var(--ok); } .res.att { color: var(--due); } .res.fail { color: var(--bad); }

/* calc lines */
.calc { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(242,239,232,.45); transition: color .3s; }
.calc .ic { width: 18px; height: 18px; opacity: 0; transition: opacity .3s; }
.calc.done { color: #F2EFE8; } .calc.done .ic { opacity: 1; color: var(--gold); }

/* full-bleed */
.scr.night { background: #000; color: #F2EFE8; --text: #F2EFE8; --fog: #A6A49F; --ash: #807E79; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.16); --g1: #0E0E10; --g2: #17171A; --g3: #222226; --pbg: #F2EFE8; --pfg: #000; --sel: rgba(242,239,232,.06); --focus: #F2EFE8; }
.scr.bay { padding-top: 0; }
.scr.bay .bgimg { position: absolute; inset: 0 0 auto 0; width: 100%; height: 66%; object-fit: cover; }
.scr.bay .bgfade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,.25) 42%, #000 66%); }

/* empty */
.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 24px 32px 60px; }
.empty .ic-l { color: var(--ash); width: 34px; height: 34px; stroke-width: 1.2; margin-bottom: 8px; }
.empty .lede { font-size: 15px; max-width: 290px; }

/* skeleton */
.sk { background: var(--g1); border-radius: 10px; position: relative; overflow: hidden; }
.sk { animation: skpulse 1.6s ease-in-out infinite; }
@keyframes skpulse { 50% { opacity: .55; } }

/* feed */
.feed-i { display: block; width: 100%; text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); }
.feed-i:last-child { border-bottom: 0; }
.feed-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ash); }
.feed-t { font-size: 16px; font-weight: 600; margin-top: 6px; line-height: 1.35; }
.feed-s { font-size: 14px; color: var(--fog); margin-top: 4px; line-height: 1.5; }
.feed-img { margin-top: 12px; height: 160px; border-radius: var(--r-md); overflow: hidden; } .feed-img img { width: 100%; height: 100%; object-fit: cover; }

/* misc */
.avatar { width: 56px; height: 56px; border-radius: 99px; background: var(--g2); display: grid; place-items: center; font-weight: 500; font-size: 22px; flex: none; }
.toast { position: absolute; left: 16px; right: 16px; bottom: calc(var(--bot) + 84px); z-index: 60; background: #F2EFE8; color: #000; padding: 13px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 14px 30px rgba(0,0,0,.45); animation: up .3s var(--ease); }
.idx-dot { position: absolute; z-index: 40; left: 0; top: 46%; width: 12px; height: 44px; border-radius: 0 8px 8px 0; background: rgba(242,239,232,.18); }
@media (min-width: 601px) { .idx-dot { display: none; } }
.index { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.85); backdrop-filter: blur(10px); display: flex; justify-content: center; overflow-y: auto; color: #F2EFE8; }
.index-in { width: min(820px, 100%); padding: 32px 20px 60px; }
.index-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; position: sticky; top: 0; }
.index-top h2 { font-weight: 300; font-size: 30px; letter-spacing: -.02em; }
.idx-g { padding-top: 22px; }
.idx-g h3 { font-size: 13px; color: #A6A49F; font-weight: 500; padding-bottom: 10px; }
.idx-list { display: flex; flex-wrap: wrap; gap: 6px; }
.idx-list button { height: 34px; padding: 0 12px; border-radius: 9px; background: #17171A; font-size: 13px; color: #F2EFE8; }
.idx-list button:hover, .idx-list button.cur { box-shadow: inset 0 0 0 1px #F2EFE8; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .lightbar, .scanbar { display: none; }
}
