:root {
  --bg: #0b1220; --surface: #131c2e; --surface2: #1b2740; --line: #26334f; --text: #eef3fb; --muted: #94a3bb; --faint: #62718c;
  --accent: #5cc8ff; --accent-ink: #04202f; --good: #3ddc97; --warn: #ffc94d; --bad: #ff6b6b; --cold: #7fb6ff;
  --green: #2fb86b; --blue: #3b8cf0; --black: #0c0d10; --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f5fa; --surface: #ffffff; --surface2: #e9eef6; --line: #d9e0ec; --text: #0e1a2c; --muted: #58677f; --faint: #8794a8;
    --accent: #0a7fd4; --accent-ink: #ffffff; --good: #0f9d63; --warn: #b97a00; --bad: #d63c3c; --cold: #2f6fd0;
    --shadow: 0 10px 30px rgba(20, 40, 80, .16); color-scheme: light;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overscroll-behavior: none; }
body { background: var(--bg); color: var(--text); font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
input { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

#app { height: 100dvh; display: flex; flex-direction: column; }
#top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(var(--sat) + 8px) 16px 8px; background: var(--bg); z-index: 5; }
.brand { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand .bn { display: flex; flex-direction: column; line-height: 1.05; }
.brand .bn small { font-size: 10.5px; font-weight: 650; color: var(--muted); letter-spacing: .02em; margin-top: 2px; }
.listhead { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 2px 8px; } .listhead b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.wxline { font-size: 12.5px; gap: 2px 14px; }
.brand svg { width: 24px; height: 24px; color: var(--accent); }
main { flex: 1; position: relative; min-height: 0; }
.view { position: absolute; inset: 0; display: none; }
.view.on { display: block; }
.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px 28px; }
#tabs { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(var(--sab) + 6px); z-index: 5; }
#tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--faint); padding: 4px 0; position: relative; }
#tabs button svg { width: 24px; height: 24px; }
#tabs button.on { color: var(--accent); }
#tabs .dot { position: absolute; top: 2px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--good); border: 2px solid var(--surface); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 17px; background: var(--surface2); font-weight: 600; font-size: 13px; white-space: nowrap; flex: none; }
#homechip { max-width: 58vw; } #homechip span { overflow: hidden; text-overflow: ellipsis; }
.chip.on { background: var(--accent); color: var(--accent-ink); }
.chip svg { width: 15px; height: 15px; flex: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.floatchips { position: absolute; top: 10px; left: 0; right: 0; z-index: 500; display: flex; gap: 8px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.floatchips::-webkit-scrollbar { display: none; }
.floatchips .chip { background: var(--surface); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.floatchips .chip.on { background: var(--accent); }

/* ---------- map ---------- */
#map { position: absolute; inset: 0; background: var(--surface2); }
.leaflet-container { font: inherit; background: var(--surface2); }
.leaflet-control-attribution { font-size: 10px; line-height: 1.45; background: rgba(0, 0, 0, .55) !important; color: #e3e9f2 !important; max-width: calc(100vw - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.leaflet-control-attribution.open { white-space: normal; }
.leaflet-control-attribution a { color: #cfd8e6 !important; }
.mkwrap { overflow: visible; }
.mk { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: baseline; gap: 2px; padding: 4px 8px; border-radius: 14px; background: #e6eef8; color: #0e1a2c; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .5); font-weight: 800; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; transition: transform .15s; }
.mk small { font-size: 9px; font-weight: 700; opacity: .7; }
.mk.md { font-size: 13px; padding: 5px 9px; } .mk.lg { font-size: 15px; padding: 6px 11px; }
.mk.t2, .ramp .t2 { background: #9fcdf6; } .mk.t3, .ramp .t3 { background: #2f8fe6; } .mk.t4, .ramp .t4 { background: #0b4a9e; } .ramp .t1 { background: #e6eef8; }
.mk.t3, .mk.t4 { color: #fff; } .mk.to { background: #2bc47c; color: #052416; }
.mk .od, .ramp .odk { position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%; background: #2bc47c; border: 2px solid #fff; }
.mk.sel { z-index: 999; transform: translate(-50%, -50%) scale(1.22); box-shadow: 0 0 0 4px #5cc8ff, 0 4px 14px rgba(0, 0, 0, .55); }
.tiles-sat { filter: saturate(1.15) brightness(.82); }
#mapctl { position: absolute; left: 12px; right: 12px; bottom: 22px; z-index: 450; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; pointer-events: none; }
#mapctl > * { pointer-events: auto; }
.mapkey { background: var(--surface); border-radius: 14px; padding: 6px; box-shadow: 0 3px 12px rgba(0, 0, 0, .35); }
.mapkey .seg { display: flex; } .mapkey .seg button { flex: 1; }
.ramp { display: flex; align-items: center; gap: 4px; padding: 7px 6px 3px; font-size: 10.5px; font-weight: 650; color: var(--muted); }
.ramp i { width: 14px; height: 9px; border-radius: 3px; } .ramp span:nth-child(6) { margin-right: 8px; }
.ramp .odk { position: static; width: 10px; height: 10px; border-radius: 50%; border-width: 1.5px; }
.layerbtn { width: 44px; height: 44px; background: var(--surface); box-shadow: 0 3px 12px rgba(0, 0, 0, .35); }
.layerbtn svg { width: 22px; height: 22px; }
.homepin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; border: 3px solid var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.homepin svg { width: 15px; height: 15px; }
#peek { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 600; transform: translateY(140%); transition: transform .25s ease; }
#peek.on { transform: none; }
.maplegend { position: absolute; left: 12px; bottom: 12px; z-index: 450; display: flex; gap: 10px; padding: 6px 10px; border-radius: 10px; background: var(--surface); font-size: 11px; color: var(--muted); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.maplegend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; border: 2px solid var(--faint); }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: 18px; padding: 16px; margin-bottom: 12px; }
.card.tap { display: block; width: 100%; text-align: left; }
.card h3 { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.sec { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 18px 2px 8px; }
.sub { color: var(--muted); font-size: 13px; }
.tiny { color: var(--faint); font-size: 11.5px; line-height: 1.35; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.card.tap.rc { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: start; }
.rc .name { font-size: 17px; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc .vert { text-align: right; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.rc .vert small { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .05em; margin-top: 3px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 8px; color: var(--muted); font-size: 13px; grid-column: 1 / -1; align-items: center; }
.meta b { color: var(--text); font-weight: 650; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11.5px; font-weight: 700; background: var(--surface2); color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.pill.open, .pill.ok { color: var(--good); } .pill.risk { color: var(--warn); } .pill.late { color: var(--bad); }
.key3 span { margin-right: 10px; white-space: nowrap; color: var(--muted); font-weight: 650; }
.key3 i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.key3 .ok { background: var(--good); } .key3 .risk { background: var(--warn); } .key3 .late { background: var(--bad); }
.bar { height: 8px; border-radius: 4px; background: var(--surface2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.bar.good > i { background: var(--good); }

/* ---------- sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 2000; background: var(--bg); transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(var(--sab) + 24px); visibility: hidden; }
.sheet.on { transform: none; visibility: visible; }
.shead { position: sticky; top: 0; z-index: 800; display: flex; align-items: center; gap: 10px; padding: calc(var(--sat) + 10px) 12px 10px; background: var(--bg); }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; background: var(--surface2); display: grid; place-items: center; flex: none; }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn.fav.on { color: var(--warn); }
.shead h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbody { padding: 0 16px; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; margin-bottom: 12px; }
.hero .card { margin: 0; }
.big { font-size: 40px; font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.big small { font-size: 15px; font-weight: 700; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.lab { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
.stats div b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.stats div span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.mix { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; margin: 14px 0 6px; }
.mix i { display: block; }
.mixleg { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.mixleg i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 750; font-size: 15px; width: 100%; }
.btn.ghost { background: var(--surface2); color: var(--text); }
.btn.danger { background: transparent; color: var(--bad); height: 40px; font-weight: 650; }
.btn.sm { height: 40px; font-size: 14px; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.links a { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--surface2); color: var(--text); font-weight: 650; font-size: 14px; }
.links a::after { content: "↗"; color: var(--faint); }

/* forecast strip */
.fc { display: flex; gap: 4px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.fc::-webkit-scrollbar { display: none; }
.fcd { flex: none; width: 50px; padding: 8px 0 6px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; }
.fcd.sel { background: var(--surface2); }
.fcd .dow { font-weight: 700; } .fcd .md { font-size: 10.5px; color: var(--faint); }
.fcd .ic { font-size: 19px; line-height: 1.2; }
.fcd .col { height: 62px; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.fcd .col.flat { height: 6px; }
.fcd .col b { font-size: 10.5px; font-weight: 750; }
.fcd .col i { display: block; width: 18px; border-radius: 4px 4px 0 0; background: var(--accent); min-height: 0; }
.fcd .hi { font-weight: 700; } .fcd .lo { color: var(--muted); }
.fcd .sm { width: 26px; height: 5px; border-radius: 3px; background: var(--surface2); overflow: hidden; margin-top: 3px; }
.fcd.sel .sm { background: var(--line); }
.fcd .sm i { display: block; height: 100%; background: var(--cold); border-radius: 3px; }
.fcinfo { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface2); font-size: 13px; }
.keyline { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.keyline i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* official resort links (trail map, lift status, snow report) */
.olinks { padding: 4px 16px; }
.olink { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 0; color: var(--text); text-decoration: none; }
.olink + .olink { border-top: 1px solid var(--line); }
.olink .oic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface2); color: var(--accent); }
.olink .oic svg { width: 21px; height: 21px; }
.olink b { display: block; font-size: 16px; font-weight: 750; }
.olink .sub { display: block; font-size: 13px; }
.olink > svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.olink:first-child .oic { background: var(--accent); color: var(--accent-ink); }
.olink:active { opacity: .6; }
.dotsep { margin: 0 7px; color: var(--faint); }
.seg { display: inline-flex; background: var(--surface2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 650; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.minimap { height: 260px; border-radius: 14px; overflow: hidden; background: var(--surface2); }
/* outlook */
.note b { display: block; font-size: 15px; margin-bottom: 3px; }
.note + .note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.tl:first-of-type { border-top: 0; padding-top: 0; }
.tl .n { font-weight: 700; font-size: 15px; } .tl .d { font-weight: 800; font-size: 15px; text-align: right; }
.tl .bar { grid-column: 1 / -1; margin-top: 6px; height: 6px; }
.heat { display: grid; gap: 3px; align-items: center; font-size: 11px; }
.heat .hn { font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
.heat .hd { text-align: center; color: var(--faint); font-size: 10px; font-weight: 700; }
.heat .hc { height: 26px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 10.5px; background: var(--surface2); color: var(--text); position: relative; overflow: hidden; }
.heat .hc i { position: absolute; inset: 0; background: var(--cold); }
.heat .hc span { position: relative; }
.pw { display: grid; grid-template-columns: 118px 1fr 44px; gap: 8px; align-items: center; padding: 6px 0; font-size: 13.5px; width: 100%; text-align: left; }
.pw .n { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pw .v { text-align: right; font-weight: 800; }
.noaa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.noaa figure { margin: 0; background: #fff; border-radius: 10px; overflow: hidden; }
.noaa img { display: block; width: 100%; min-height: 60px; }
.noaa figcaption { font-size: 11px; font-weight: 700; color: #334; padding: 5px 8px; background: #eef2f7; }

/* ride */
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--good); margin-right: 7px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.speed { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 14px; }
.speed b { font-size: 76px; font-weight: 850; letter-spacing: -.04em; line-height: .9; font-variant-numeric: tabular-nums; }
.speed span { font-size: 17px; font-weight: 700; color: var(--muted); }
.gmap { height: 300px; border-radius: 14px; overflow: hidden; background: var(--surface2); margin: 12px 0; position: relative; }
.gmap .recenter { position: absolute; right: 10px; top: 10px; z-index: 500; background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.fm { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; pointer-events: auto; }
.fm .arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); display: grid; place-items: center; color: #08121f; font-weight: 800; font-size: 13px; position: relative; }
.fm .arrow::before { content: ""; position: absolute; left: 50%; top: -9px; margin-left: -6px; border: 6px solid transparent; border-bottom: 9px solid #fff; border-top: 0; transform-origin: 6px 26px; transform: rotate(var(--h, 0deg)); }
.fm.nohd .arrow::before { display: none; }
.fm span { margin-top: 3px; padding: 1px 7px; border-radius: 8px; background: rgba(8, 14, 26, .82); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.fm.stale { opacity: .5; }
.fm.me .arrow { border-color: var(--accent); }
.meetpin { position: absolute; transform: translate(-50%, -100%); font-size: 30px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.mem { display: grid; grid-template-columns: 38px 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.mem .av { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: #08121f; display: grid; place-items: center; font-weight: 800; }
.mem .n { font-weight: 700; } .mem .r { text-align: right; font-weight: 800; }
.mem .s { color: var(--muted); font-size: 12.5px; } .mem .s2 { text-align: right; color: var(--muted); font-size: 12.5px; }
.pings { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.pings::-webkit-scrollbar { display: none; }
.feed { font-size: 13px; color: var(--muted); padding: 6px 0; border-top: 1px solid var(--line); }
.feed b { color: var(--text); }
.code { font: 800 26px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; }
.conn { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-right: 6px; }
.conn.on { background: var(--good); }
.hist { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.hist:first-of-type { border-top: 0; }
.tapday { width: 100%; text-align: left; }
.native .webonly, .native [data-act="demo"] { display: none !important; }
.fab { position: fixed; right: 16px; bottom: calc(var(--sab) + 84px); z-index: 900; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.fab svg { width: 26px; height: 26px; }
.askentry { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 14px; margin-bottom: 12px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; text-align: left; }
.askentry svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.askentry span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asksheet { z-index: 2500; display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.askbody { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.askintro { text-align: center; padding: 26px 10px 6px; } .askintro svg { width: 34px; height: 34px; color: var(--accent); } .askintro b { display: block; font-size: 19px; font-weight: 800; margin: 8px 0 6px; letter-spacing: -.01em; }
.asksugs { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.asksug { text-align: left; padding: 13px 14px; border-radius: 14px; background: var(--surface); font-weight: 600; font-size: 14.5px; }
.bub { max-width: 88%; padding: 11px 14px; border-radius: 18px; background: var(--surface); font-size: 15px; line-height: 1.45; align-self: flex-start; }
.bub.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.bub.err { color: var(--muted); border: 1.5px dashed var(--line); background: transparent; }
.bub p + p, .bub ul + p, .bub p + ul { margin-top: 8px; } .bub ul { margin: 0; padding-left: 18px; } .bub li + li { margin-top: 4px; }
.bub.typing { display: flex; gap: 5px; padding: 15px 16px; } .bub.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: pulse 1.1s infinite; } .bub.typing i:nth-child(2) { animation-delay: .18s; } .bub.typing i:nth-child(3) { animation-delay: .36s; }
.askbar { display: flex; gap: 8px; padding: 8px 12px 4px; }
.askbar input { flex: 1; min-width: 0; height: 46px; border-radius: 23px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 16px; font-size: 16px; outline: none; }
.askbar input:focus { border-color: var(--accent); }
.askbar .send { width: 46px; height: 46px; background: var(--accent); color: var(--accent-ink); }
.askfoot { text-align: center; padding: 2px 16px calc(var(--sab) + 8px); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 3px solid transparent; }
.swatches button.on { border-color: var(--text); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 4000; background: rgba(3, 7, 14, .62); display: none; align-items: flex-end; justify-content: center; }
.modal.on { display: flex; }
.mbox { width: 100%; max-width: 520px; background: var(--surface); border-radius: 22px 22px 0 0; padding: 20px 18px calc(var(--sab) + 18px); max-height: 92dvh; overflow-y: auto; }
.mbox h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.mbox p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em; }
.field input { width: 100%; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); padding: 0 14px; font-size: 16px; outline: none; }
.field input:focus { border-color: var(--accent); }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.sr { text-align: center; padding: 10px 0 4px; }
.sr .count { font-size: 120px; font-weight: 850; line-height: 1; }
.sr .mphbig { font-size: 104px; font-weight: 850; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.sr .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.sr .trio b { display: block; font-size: 22px; font-weight: 800; } .sr .trio span { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 12px; background: var(--warn); color: #1c1400; font-weight: 800; font-size: 12.5px; margin-bottom: 8px; }
.switch { width: 52px; height: 32px; border-radius: 16px; background: var(--surface2); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch.on { background: var(--good); } .switch.on::after { transform: translateX(20px); }

#pocket { position: fixed; inset: 0; z-index: 5000; background: #000; color: #2c3a4f; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; user-select: none; -webkit-user-select: none; }
#pocket.on { display: flex; }
#pocket b { font-size: 64px; font-weight: 800; color: #3d4f6b; font-variant-numeric: tabular-nums; }
#toasts { position: fixed; left: 12px; right: 12px; top: calc(var(--sat) + 10px); z-index: 6000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; animation: drop .25s ease; }
.toast b { color: var(--accent); }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }
.demo-banner { background: var(--warn); color: #1c1400; font-weight: 750; font-size: 12.5px; text-align: center; padding: 6px 12px; border-radius: 10px; margin-bottom: 10px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
@media (min-width: 760px) { .scroll, .sbody { max-width: 640px; margin: 0 auto; } .sheet { left: 50%; right: auto; width: 640px; margin-left: -320px; box-shadow: var(--shadow); } }
body.noask .askentry { display: none; }
