/* NEXTCAN · direction B, THE CAN. See DESIGN.md. One family (Archivo, variable), black ground,
   colour only when it means something: champagne = fine, amber = limits, red = danger. */

@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-latin.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #000; --ink: #fff; --dim: rgba(255,255,255,.5); --faint: rgba(255,255,255,.3); --line: rgba(255,255,255,.16);
  --panel: #0e0e0e; --panel2: #161616;
  --champ: #E9D9A6; --amber: #FFB21A; --red: #FF3B30;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); color: var(--ink); }
html.locked, html.locked body { overflow: hidden; }
body { font-family: 'Archivo', system-ui, sans-serif; font-variation-settings: 'wdth' 100; font-weight: 500; font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: hidden; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .45; cursor: default; }
button:active:not(:disabled), .btn:active { transform: scale(.97); }
:focus-visible { outline: 2px solid var(--champ); outline-offset: 2px; }
a { color: inherit; }
.defs { position: absolute; }

/* type roles */
.label { display: block; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--dim); font-variation-settings: 'wdth' 125; text-transform: uppercase; }
.label.sub { margin: 18px 0 8px; }
.brand { font-weight: 900; font-variation-settings: 'wdth' 125; font-size: 14px; letter-spacing: .08em; }
h1 { font-weight: 900; font-variation-settings: 'wdth' 125; letter-spacing: -.03em; line-height: .95; font-size: 34px; }
h2 { font-weight: 900; font-variation-settings: 'wdth' 125; letter-spacing: -.01em; font-size: 20px; line-height: 1.05; }
.hint, .lead { color: var(--dim); font-size: 15px; }
.lead { font-size: 17px; margin: 10px 0 18px; color: rgba(255,255,255,.75); }
.err { color: var(--red); font-weight: 700; margin: 10px 0; }

/* buttons */
.btn { height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px;
  font-weight: 800; font-size: 17px; font-variation-settings: 'wdth' 100; text-decoration: none; transition: transform .08s; white-space: nowrap; }
.btn.primary { background: linear-gradient(180deg, #f7f7f7, #bdbdbd); color: #000; box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0,0,0,.25); }
.btn.dark { background: var(--panel2); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.btn.danger { background: #2a0b09; color: var(--red); }
.btn.call { background: var(--red); color: #fff; font-size: 20px; }
.btn.full { width: 100%; margin-top: 16px; }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 16px; }

.boot { min-height: 100dvh; display: grid; place-items: center; }

/* ================================================================ NOW */
.now { max-width: 480px; margin: 0 auto; padding: calc(10px + var(--safe-t)) 18px calc(110px + var(--safe-b)); min-height: 100dvh; }
.top { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.top nav { margin-left: auto; display: flex; gap: 4px; }
.nav { font-size: 13px; font-weight: 800; letter-spacing: .12em; font-variation-settings: 'wdth' 115; color: var(--dim); padding: 10px 8px; }
.nav:hover { color: #fff; }
.sync { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--amber); font-variation-settings: 'wdth' 115; }

.big { margin-top: 18px; }
.big .n { font-weight: 900; font-size: clamp(88px, 30vw, 128px); line-height: .84; letter-spacing: -.045em; font-variation-settings: 'wdth' 125; margin-top: 6px; font-variant-numeric: tabular-nums; }
.big .n small { font-size: 26px; letter-spacing: 0; margin-left: 6px; font-variation-settings: 'wdth' 110; }

.rising { margin-top: 10px; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--dim); font-variation-settings: 'wdth' 115; }
.rising b { color: var(--champ); }
.vline { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 18px; }
.vline .label { line-height: 1.15; }
.vline .w { font-weight: 900; font-size: 44px; line-height: .9; letter-spacing: -.02em; font-variation-settings: 'wdth' 125; color: var(--champ); }
.vline .t { display: flex; flex-direction: column; min-width: 0; }
.vline .t b { font-size: 15px; font-weight: 800; letter-spacing: .03em; font-variation-settings: 'wdth' 110; }
.vline .t i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--dim); }
.v-wait .w, .v-no .w { color: var(--amber); }
.v-stop .w, .v-emergency .w { color: var(--red); }

.banner { display: block; width: 100%; text-align: left; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #1c0605; border: 1.5px solid var(--red); }
.banner b { display: block; color: var(--red); font-weight: 900; font-variation-settings: 'wdth' 115; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; }
.banner span { font-size: 14px; color: rgba(255,255,255,.8); }

.gauge-wrap { margin: 14px -6px 0; }
svg.gauge { width: 100%; height: auto; display: block; overflow: visible; }
.gauge .halo { opacity: .35; }
.gauge .liquid { transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.gauge .lq1 { stop-color: #fff6d8; } .gauge .lq2 { stop-color: var(--champ); } .gauge .lq3 { stop-color: #8a7a4a; }
.gauge .sf1 { fill: #fff3cc; opacity: .9; } .gauge .sf2 { fill: var(--champ); }
.gauge .halo { fill: var(--champ); }
.gauge.st-caution .lq1 { stop-color: #ffe0a0; } .gauge.st-caution .lq2 { stop-color: var(--amber); } .gauge.st-caution .lq3 { stop-color: #8c5a00; }
.gauge.st-caution .sf1 { fill: #ffd98a; } .gauge.st-caution .sf2, .gauge.st-caution .halo { fill: var(--amber); }
.gauge.st-danger .lq1 { stop-color: #ffb0a8; } .gauge.st-danger .lq2 { stop-color: var(--red); } .gauge.st-danger .lq3 { stop-color: #7a120c; }
.gauge.st-danger .sf1 { fill: #ff9a90; } .gauge.st-danger .sf2, .gauge.st-danger .halo { fill: var(--red); }
.gauge .bubbles circle { fill: #fff; opacity: .5; animation: rise linear infinite; }
@keyframes rise { from { transform: translateY(0); opacity: 0; } 15% { opacity: .55; } to { transform: translateY(var(--rise)); opacity: 0; } }
.gauge.pour .surface { animation: wave .7s ease-out 2; }
@keyframes wave { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-3px) scaleY(1.7); } }
.gauge .in-bed { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 5 4; opacity: .8; }
.gauge .in-safe { stroke: #fff; stroke-width: 1; stroke-dasharray: 2 4; opacity: .45; }
.gauge .topline { stroke: #fff; stroke-opacity: .55; stroke-width: 1.2; }
.gauge.is-over .topline { stroke: var(--red); stroke-opacity: 1; stroke-width: 2; }
.gauge .ring { cursor: pointer; }
.mark .tick { stroke: #fff; stroke-opacity: .4; stroke-width: 1; }
.mark .rule { fill: none; stroke: var(--line); stroke-width: 1; }
.mark .mn { fill: #fff; font-size: 28px; font-weight: 900; font-variation-settings: 'wdth' 110; letter-spacing: -.01em; }
.mark .mt { fill: var(--dim); font-size: 12.5px; font-weight: 800; letter-spacing: .1em; font-variation-settings: 'wdth' 115; }
.m-now .rule { stroke: #fff; stroke-width: 1.5; } .m-now .mn { font-size: 32px; }
.m-over .mn, .m-over .mt { fill: var(--red); }
.m-bed .rule { stroke: rgba(255,178,26,.8); stroke-dasharray: 5 3; }
.m-bed.m-warn .mn { fill: var(--amber); }
.m-safe .mn { fill: rgba(255,255,255,.7); font-size: 22px; }
.m-line .mn { font-size: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 16px; }
.tabs { display: flex; align-items: center; gap: 3px; margin-right: 4px; padding: 4px 2px; }
.tabs .tab { width: 11px; height: 15px; border: 2px solid #cfcfcf; border-radius: 6px 6px 5px 5px; position: relative; }
.tabs .tab::after { content: ''; position: absolute; left: 1px; right: 1px; top: 2px; height: 4px; border-radius: 3px; background: #000; border: 1px solid #8a8a8a; }
.tabs b { font-weight: 900; font-size: 15px; margin-left: 4px; }
.tabs span { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--dim); font-variation-settings: 'wdth' 115; }
.chip { border: 1.5px solid var(--line); border-radius: 99px; padding: 7px 11px; font-size: 13px; font-weight: 800; letter-spacing: .02em; font-variation-settings: 'wdth' 100; white-space: nowrap; }
.chip.lv-caution { border-color: rgba(255,178,26,.55); color: var(--amber); }
.chip.lv-danger { border-color: rgba(255,59,48,.7); color: var(--red); }
.chip.lv-info { color: rgba(255,255,255,.75); }
.chip.setup { border-color: var(--champ); color: var(--champ); }
.chip.calm { color: var(--dim); }

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px;
  padding: 12px max(12px, calc(50vw - 228px)) calc(14px + var(--safe-b)); background: linear-gradient(180deg, transparent, #000 30%); }

/* ================================================================ PAGES */
.page { max-width: 560px; margin: 0 auto; padding: calc(10px + var(--safe-t)) 18px calc(40px + var(--safe-b)); }
.page-head { display: flex; align-items: center; gap: 14px; min-height: 52px; margin-bottom: 10px; }
.page-head h1 { font-size: 26px; }
.back { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--dim); padding: 10px 4px; font-variation-settings: 'wdth' 110; }
.saved { margin-left: auto; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--champ); }
.steps { margin-left: auto; color: var(--dim); font-weight: 800; font-size: 13px; }
.page section { margin-top: 26px; }
.page .shelf { margin-top: 10px; }

/* history */
.shelf { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; }
.mini { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.mini svg { width: 100%; max-width: 44px; height: auto; }
.mini .mini-liq { fill: var(--champ); }
.mini.high .mini-liq { fill: var(--amber); }
.mini.over .mini-liq { fill: var(--red); }
.mini b { font-weight: 900; font-size: 14px; font-variation-settings: 'wdth' 110; }
.mini span { font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--dim); }
.mini i { font-style: normal; font-size: 12px; color: var(--faint); font-weight: 700; min-height: 14px; }
.mini.today span { color: #fff; }
.shelf-note { font-size: 13px; color: var(--dim); margin-top: 10px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 14px 10px 14px 0; }
.stats div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.stats b { display: block; font-weight: 900; font-size: 34px; line-height: 1; font-variation-settings: 'wdth' 125; letter-spacing: -.03em; }
.stats span { display: block; margin-top: 6px; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--dim); line-height: 1.3; }
.stats .warn b { color: var(--amber); }

.strip { position: relative; }
.strip .bars { display: flex; align-items: flex-end; gap: 2px; height: 90px; }
.strip .bar { flex: 1; background: rgba(233,217,166,.7); border-radius: 2px 2px 0 0; min-width: 0; }
.strip .bar.high { background: var(--amber); } .strip .bar.over { background: var(--red); }
.strip .limit { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255,255,255,.5); margin-bottom: 22px; pointer-events: none; }
.strip-legend { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--dim); margin-top: 8px; }

.plan { background: var(--panel); border-radius: 20px; padding: 18px; }
.plan h2 { margin: 6px 0 12px; }
.plan ol { list-style: none; }
.plan li { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); align-items: baseline; }
.plan li b { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--dim); }
.plan li span { font-weight: 800; }
.plan li em { font-style: normal; color: var(--dim); font-size: 14px; }
.plan p { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 10px; }

.week .meter { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.week .meter:first-of-type { margin-top: 8px; }
.meter b { font-weight: 800; font-size: 13px; letter-spacing: .08em; }
.meter span { font-weight: 900; font-size: 20px; font-variation-settings: 'wdth' 110; }
.meter i { font-style: normal; color: var(--dim); font-size: 13px; }
.meter.warn span { color: var(--amber); }

.days .day { margin-top: 22px; scroll-margin-top: 20px; }
.days h3 { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--dim); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.days h3 b { color: #fff; } .days h3 b.over { color: var(--red); }
.entry { display: grid; grid-template-columns: 52px 1fr auto auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.entry time { color: var(--dim); font-size: 14px; font-variant-numeric: tabular-nums; }
.entry b { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.entry em { font-style: normal; font-weight: 800; }
.entry.ev b { color: rgba(255,255,255,.75); }
.entry.ev.lv-urgent b, .entry.ev.lv-watch b { color: var(--amber); }
.entry.ev.lv-emergency b { color: var(--red); }
.entry .x { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--dim); padding: 6px 0 6px 8px; }
.tag { font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: .08em; padding: 3px 6px; border-radius: 6px; }
.tag.red { background: #2a0b09; color: var(--red); }
.empty { color: var(--dim); }

/* profile */
.numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.numbers .label { grid-column: 1 / -1; padding: 12px 0 4px; }
.numbers div { padding: 12px 10px 14px 0; border-bottom: 1px solid var(--line); }
.numbers div:nth-of-type(even) { padding-left: 12px; border-left: 1px solid var(--line); }
.numbers b { display: block; font-weight: 900; font-size: 32px; line-height: 1; font-variation-settings: 'wdth' 125; letter-spacing: -.03em; }
.numbers span { display: block; margin-top: 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--dim); line-height: 1.3; }

.form h2 { margin: 28px 0 12px; }
.form h2:first-child { margin-top: 0; }
.form .hint { margin: -4px 0 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; min-width: 0; }
.field.wide { margin-bottom: 12px; }
.field > span { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--dim); font-variation-settings: 'wdth' 115; }
.field input, .words, .ai textarea { width: 100%; min-width: 0; background: var(--panel2); border-radius: 14px; padding: 14px; font-size: 17px; font-weight: 600; border: 1.5px solid transparent; }
.field input:focus, .words:focus, .ai textarea:focus { border-color: rgba(233,217,166,.6); outline: none; }
.field i { position: absolute; right: 14px; bottom: 16px; font-style: normal; color: var(--dim); font-size: 14px; pointer-events: none; }
.field input[type=time], .field input[type=datetime-local] { color-scheme: dark; }
.stepper > div { display: grid; grid-template-columns: 48px 1fr auto 48px; align-items: center; background: var(--panel2); border-radius: 14px; margin-top: 6px; height: 56px; }
.stepper button { height: 100%; font-size: 24px; font-weight: 600; color: var(--champ); }
.stepper input { width: 100%; min-width: 0; text-align: right; font-size: 22px; font-weight: 900; font-variation-settings: 'wdth' 110; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { display: none; }
.stepper i { font-style: normal; color: var(--dim); padding-left: 4px; }
.trow { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.trow span { flex: 1; }
.trow i { width: 46px; height: 28px; border-radius: 99px; background: #2a2a2a; position: relative; flex: none; transition: background .15s; }
.trow i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #9a9a9a; transition: transform .15s, background .15s; }
.trow.on i { background: var(--champ); } .trow.on i::after { transform: translateX(18px); background: #000; }
.trow.red.on i { background: var(--red); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.check { padding: 11px 14px; border-radius: 12px; background: var(--panel2); font-size: 15px; font-weight: 700; border: 1.5px solid transparent; text-align: left; }
.check.on { background: rgba(233,217,166,.14); border-color: var(--champ); color: var(--champ); }
.check.lv-emergency.on { background: rgba(255,59,48,.16); border-color: var(--red); color: #fff; }
.check.lv-urgent.on { background: rgba(255,178,26,.14); border-color: var(--amber); color: #fff; }
h3.label { margin: 20px 0 8px; }
h3.label.lv-emergency { color: var(--red); } h3.label.lv-urgent { color: var(--amber); }

.links { border-top: 1px solid var(--line); }
.linkrow { display: flex; flex-direction: column; width: 100%; text-align: left; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.linkrow b { font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.linkrow span { color: var(--dim); font-size: 14px; }
.disclaimer { color: var(--faint); font-size: 13px; margin-top: 24px; }
.sources article { padding: 16px 0; border-top: 1px solid var(--line); }
.sources a { font-weight: 800; text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.sources p { color: rgba(255,255,255,.7); font-size: 15px; margin-top: 6px; }

.onboard { padding-bottom: calc(110px + var(--safe-b)); }
.onboard h1 { font-size: 34px; margin-top: 16px; }
.onboard .grid2 + .grid2 { margin-top: 12px; }

.login { max-width: 420px; margin: 0 auto; padding: calc(30px + var(--safe-t)) 22px 40px; min-height: 100dvh; display: flex; flex-direction: column; }
.login h1 { font-size: 40px; margin: auto 0 28px; }
.login form { margin-bottom: 20px; }

/* ================================================================ SHEETS */
.sheet-back { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 30; animation: fade .28s ease-out; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; max-width: 560px; margin: 0 auto; max-height: 92dvh; display: flex; flex-direction: column;
  background: #0b0b0b; border-radius: 26px 26px 0 0; box-shadow: 0 -1px 0 rgba(255,255,255,.12); animation: up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.grab { padding: 10px 0 4px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.grab i { width: 40px; height: 5px; border-radius: 3px; background: #444; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 18px 10px; }
.sheet-head h2 { font-size: 22px; }
.close { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--dim); padding: 10px 0 10px 12px; }
.sheet-body { overflow-y: auto; padding: 4px 18px calc(24px + var(--safe-b)); overscroll-behavior: contain; }

.ai { background: var(--panel2); border-radius: 18px; padding: 6px; border: 1.5px solid rgba(233,217,166,.25); }
.ai.busy { border-color: var(--champ); }
.ai textarea { background: transparent; resize: none; padding: 10px; font-size: 16px; min-height: 92px; }
.ai-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 4px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 800; color: rgba(255,255,255,.8); background: #222; }
.send { padding: 11px 18px; border-radius: 12px; background: var(--champ); color: #000; font-weight: 900; font-size: 15px; }
.thumb { display: flex; align-items: center; gap: 10px; padding: 6px; }
.thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.thumb button { font-size: 13px; font-weight: 800; color: var(--dim); letter-spacing: .08em; }
.answer { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--panel); }
.answer .q { color: var(--dim); font-size: 14px; margin: 4px 0 8px; }
.answer .a { white-space: pre-wrap; font-size: 16px; }
.proposal { margin-top: 14px; }
.reply { color: rgba(255,255,255,.8); margin-bottom: 8px; }
.prop { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--panel); margin-bottom: 6px; }
.prop input { width: 22px; height: 22px; accent-color: var(--champ); margin-top: 2px; flex: none; }
.prop span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prop b { font-weight: 800; }
.prop small { color: var(--dim); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.prop em { font-style: normal; color: var(--amber); font-size: 13px; font-weight: 700; }
.prop.check { border: 1.5px solid rgba(255,178,26,.45); }
.prop.off { opacity: .45; }
.prop.ev.lv-emergency b { color: var(--red); } .prop.ev.lv-urgent b { color: var(--amber); }

.when { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.seg { position: relative; padding: 10px 12px; border-radius: 12px; background: var(--panel2); font-size: 13px; font-weight: 800; letter-spacing: .02em; cursor: pointer; }
.seg.on { background: #fff; color: #000; }
.seg input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; color-scheme: dark; }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tog { padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 800; }
.tog.on { border-color: var(--champ); color: var(--champ); }
.tog.on.red { border-color: var(--red); color: var(--red); }

.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick { text-align: left; padding: 14px; border-radius: 16px; background: var(--panel2); display: flex; flex-direction: column; gap: 4px; min-height: 76px; }
.pick b { font-weight: 800; line-height: 1.2; }
.pick span { color: var(--dim); font-size: 13px; font-weight: 700; }
.list { border-top: 1px solid var(--line); }
.list .row { display: grid; grid-template-columns: 1fr auto 70px; gap: 10px; width: 100%; text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.list .row b { font-weight: 700; }
.list .row span { color: var(--dim); font-size: 14px; }
.list .row em { font-style: normal; font-weight: 800; text-align: right; }
.more { display: block; width: 100%; padding: 16px; margin-top: 12px; border-radius: 14px; border: 1.5px solid var(--line); font-weight: 800; font-size: 14px; letter-spacing: .02em; }

.verdict-card { padding: 20px; border-radius: 20px; background: var(--panel); margin-top: 6px; }
.verdict-card b { display: block; font-weight: 900; font-variation-settings: 'wdth' 125; font-size: 24px; line-height: 1.05; letter-spacing: -.01em; }
.verdict-card p { margin: 10px 0 0; color: rgba(255,255,255,.8); }
.verdict-card .btn { margin-top: 16px; }
.verdict-card.lv-emergency { background: #1c0605; } .verdict-card.lv-emergency b { color: var(--red); }
.verdict-card.lv-urgent b, .verdict-card.lv-watch b { color: var(--amber); }
.flag-detail { font-size: 17px; line-height: 1.5; }
.flag-detail.lv-danger, .flag-detail.lv-emergency { color: #ffd5d2; }
.source { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.source a { display: block; margin: 6px 0; font-weight: 800; }
.source p { color: var(--dim); font-size: 14px; }

/* toast */
.toast { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(88px + var(--safe-b)); max-width: 460px; margin: 0 auto;
  display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 16px; border-radius: 16px; background: #1d1d1d; box-shadow: 0 10px 30px rgba(0,0,0,.6); animation: up .2s ease-out; }
.toast span { flex: 1; font-weight: 700; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.toast button { padding: 10px 12px; font-weight: 900; font-size: 13px; letter-spacing: .06em; color: var(--champ); }

/* help takeover */
.help { position: fixed; inset: 0; z-index: 50; background: var(--red); color: #fff; display: flex; flex-direction: column; gap: 14px;
  padding: calc(40px + var(--safe-t)) 22px calc(24px + var(--safe-b)); overflow-y: auto; }
.help .label { color: rgba(255,255,255,.8); }
.help h1 { font-size: clamp(56px, 18vw, 96px); line-height: .85; }
.help p { font-size: 18px; font-weight: 600; max-width: 30em; }
.help .btn.call { background: #fff; color: var(--red); margin-top: auto; height: 72px; font-size: 24px; }
.help .btn.dark { background: rgba(0,0,0,.25); }

@media (min-width: 720px) {
  .now { max-width: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gauge .bubbles { display: none; }
}
