/* BioSense UI: base, shell and components. Tokens live in theme.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); font-weight: 750; }
h2 { font-size: 1.12rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0; }
a { color: var(--primary); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--primary); color: var(--on-primary); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .86rem; } .tiny { font-size: .78rem; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .row.between { justify-content: space-between; }
.grow { flex: 1 1 0; min-width: 0; }
.stack { display: grid; gap: 16px; } .stack.sm { gap: 10px; } .stack.lg { gap: 24px; }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.sidebar { display: none; }
.main-col { min-width: 0; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .brand-sm { display: flex; align-items: center; gap: 8px; font-weight: 750; text-decoration: none; color: var(--text); }
.topbar .brand-sm img { width: 30px; height: 30px; border-radius: 9px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.main { padding: 18px 16px 32px; max-width: 1120px; margin: 0 auto; width: 100%; outline: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; text-decoration: none; color: var(--text); padding: 6px 8px 18px; }
.brand img { width: 36px; height: 36px; border-radius: 11px; }
.nav { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 600; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.nav-link[aria-current="page"] .i { color: var(--primary); }
.sidebar-foot { margin-top: auto; padding: 14px 8px 0; color: var(--faint); font-size: .8rem; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 650; border-radius: 12px; cursor: pointer; }
.tabbar .i { width: 22px; height: 22px; }
.tabbar [aria-current="page"] { color: var(--primary); background: var(--surface-2); }
.more-sheet { position: fixed; inset: 0; z-index: 40; background: rgba(10,16,34,.5); display: flex; align-items: flex-end; }
.more-sheet nav { background: var(--surface); width: 100%; border-radius: 22px 22px 0 0; padding: 14px 14px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 4px; }
@media (min-width: 900px) {
  .shell { grid-template-columns: 248px 1fr; }
  .sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--bg); }
  .tabbar { display: none; }
  .main-col { padding-bottom: 0; }
  .topbar .brand-sm { display: none; }
  .main { padding: 28px 32px 48px; }
}

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 650; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.plus { background: linear-gradient(135deg, #6A4FD8, #3D5AF1); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.danger { color: var(--high-text); border-color: var(--high-line); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--indigo); color: #fff; font-weight: 700; cursor: pointer; }
.user-menu { position: relative; }
.pop { position: absolute; right: 0; top: 48px; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px; z-index: 50; }
.pop a, .pop button { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; }
.pop a:hover, .pop button:hover { background: var(--surface-2); }
.pop .who { padding: 8px 12px 10px; display: grid; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pop .who span { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); }
.input:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
.ff { display: grid; gap: 6px; } .ff > label, .ff .lbl { font-weight: 650; font-size: .92rem; }
.hint { color: var(--muted); font-size: .85rem; } .err { color: var(--high-text); font-size: .86rem; min-height: 0; } .err:empty { display: none; }
.ff.invalid .input { border-color: var(--high); }
.form-grid { display: grid; gap: 16px; } @media (min-width: 700px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.switch-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.switch-row:first-child { border-top: 0; }
.switch-row .txt { flex: 1; min-width: 0; } .switch-row .txt b { display: block; }
.toggle { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; flex: none; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.toggle:checked { background: var(--low-text); } .toggle:checked::after { transform: translateX(20px); }
.toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
input[type=range] { width: 100%; accent-color: var(--primary); height: 32px; }
.range-val { font-weight: 750; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-weight: 650; color: var(--muted); cursor: pointer; min-height: 40px; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; cursor: pointer; min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: transparent; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.card-head .sub { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.split { grid-template-columns: 1.4fr 1fr; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.crumbs { color: var(--muted); font-size: .88rem; margin-bottom: 6px; display: flex; gap: 6px; }
.banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 14px; }
.banner.warn { background: var(--mod-bg); border-color: var(--mod-line); color: var(--text); }
.banner.bad { background: var(--high-bg); border-color: var(--high-line); }
.banner.info { background: var(--surface-2); }
.banner > .i { width: 22px; height: 22px; }
.banner.warn > .i { color: var(--mod-text); } .banner.bad > .i { color: var(--high-text); }
.empty { text-align: center; padding: 36px 16px; display: grid; gap: 10px; justify-items: center; }
.empty .big { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); }
.empty .big .i { width: 30px; height: 30px; } .empty p { color: var(--muted); max-width: 42ch; }
.skel { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.toasts { position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); display: grid; gap: 8px; pointer-events: none; }
@media (min-width: 900px) { .toasts { left: auto; right: 24px; bottom: 24px; width: 380px; } }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow-lg); }
.toast.bad { background: #8B1F1F; } .toast .body { flex: 1; } .toast a { color: #fff; font-weight: 700; } .toast .x { background: none; border: 0; color: #fff; cursor: pointer; }
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(10,16,34,.55); display: flex; align-items: flex-end; justify-content: center; }
.dialog { background: var(--surface); width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; border-radius: 24px 24px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: rise .25s ease-out; }
.dialog.wide { max-width: 720px; }
.dialog .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
@media (min-width: 640px) { .scrim { align-items: center; } .dialog { border-radius: 24px; padding-bottom: 20px; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* ---------- risk language: colour + icon + word, always ---------- */
.lvl { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px; font-weight: 700; font-size: .82rem; letter-spacing: .02em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; }
.lvl .i { width: 15px; height: 15px; stroke-width: 2.4; }
.lvl-low { background: var(--low-bg); color: var(--low-text); border-color: var(--low-line); }
.lvl-moderate { background: var(--mod-bg); color: var(--mod-text); border-color: var(--mod-line); }
.lvl-high { background: var(--high-bg); color: var(--high-text); border-color: var(--high-line); }
.lvl-none { background: var(--none-bg); color: var(--muted); border-color: var(--line); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 650; background: var(--surface-2); color: var(--muted); }
.badge.plus { background: var(--plus-bg); color: var(--plus); }
.badge.ok { background: var(--low-bg); color: var(--low-text); } .badge.bad { background: var(--high-bg); color: var(--high-text); } .badge.warn { background: var(--mod-bg); color: var(--mod-text); }
.plan-badge { text-decoration: none; }

/* ---------- dashboard ---------- */
.today { position: relative; overflow: hidden; border-radius: 26px; padding: 22px 18px; color: #fff; background: radial-gradient(120% 140% at 85% -10%, color-mix(in srgb, var(--risk, var(--low)) 55%, transparent), transparent 55%), linear-gradient(160deg, var(--hero-1), var(--hero-2)); box-shadow: var(--shadow-lg); display: grid; gap: 18px; }
.today[data-level="LOW"] { --risk: #12B5A6; } .today[data-level="MODERATE"] { --risk: #F5A524; } .today[data-level="HIGH"] { --risk: #EF5B5B; }
.today h1 { color: #fff; font-size: clamp(1.35rem, 4.2vw, 1.9rem); font-weight: 700; line-height: 1.25; }
.today .when { color: rgba(255,255,255,.78); font-size: .9rem; }
.today-main { display: grid; gap: 16px; justify-items: start; }
.ring-wrap { position: relative; width: 168px; height: 168px; flex: none; }
.ring-wrap svg { width: 100%; height: 100%; }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num b { font-size: 3rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.ring-num span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-top: 4px; }
.today .lvl { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.today-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.today .btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.today .btn:hover { background: rgba(255,255,255,.22); }
.today .btn.light { background: #fff; color: var(--ink); border-color: #fff; }
@media (min-width: 700px) { .today { padding: 28px; grid-template-columns: auto 1fr; align-items: center; gap: 28px; } .ring-wrap { width: 200px; height: 200px; } }
.dayrow { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.daychip { flex: 0 0 auto; min-width: 84px; scroll-snap-align: start; border-radius: 14px; padding: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; justify-items: center; text-align: center; cursor: pointer; }
.daychip[aria-current="true"] { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.daychip .d { font-size: .8rem; font-weight: 650; color: var(--muted); } .daychip b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.daychip .lvl { font-size: .66rem; padding: 2px 8px 2px 6px; }
.triggers { display: grid; gap: 12px; }
@media (min-width: 700px) { .triggers { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }
.trig { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); border-left-width: 5px; }
.trig[data-sev="LOW"] { border-left-color: var(--low); } .trig[data-sev="MODERATE"] { border-left-color: var(--mod); } .trig[data-sev="SEVERE"], .trig[data-sev="HIGH"] { border-left-color: var(--high); }
.trig .ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); }
.trig .ico .i { width: 22px; height: 22px; }
.trig h3 { font-size: .98rem; } .trig .peak { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; margin-top: 6px; font-size: .9rem; }
.trig .detail { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font: 11px var(--font); }
.chart .grid-l { stroke: var(--grid); stroke-width: 1; }
.chart .p-line { fill: none; stroke: var(--pressure); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.chart .p-area { fill: var(--pressure); opacity: .08; }
.chart .band-low { fill: var(--low); opacity: .0; } .chart .band-mod { fill: var(--mod); opacity: .16; } .chart .band-high { fill: var(--high); opacity: .2; }
.chart .now-l { stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 3 3; }
.chart .dot { fill: var(--surface); stroke: var(--pressure); stroke-width: 2.5; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; border-radius: 10px; overflow: hidden; }
.strip i { display: block; height: 34px; }
.strip i[data-l="LOW"] { background: var(--low); } .strip i[data-l="MODERATE"] { background: var(--mod); } .strip i[data-l="HIGH"] { background: var(--high); }
.strip i[data-l="LOW"] { opacity: .75; }
.strip-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .76rem; margin-top: 4px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; } .legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-low { background: var(--low); } .lg-mod { background: var(--mod); } .lg-high { background: var(--high); }
.windows { display: grid; gap: 10px; }
.win { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--low-bg); border: 1px solid var(--low-line); }
.win .t { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; } .win .i { color: var(--low-text); width: 22px; height: 22px; }
.pbars { display: grid; gap: 12px; }
.pbar { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; font-size: .92rem; }
.pbar .track { height: 12px; border-radius: 999px; background: var(--surface-2); position: relative; overflow: hidden; }
.pbar .fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.pbar[data-band="LOW"] .fill { background: var(--low); } .pbar[data-band="MODERATE"] .fill { background: var(--mod); } .pbar[data-band="HIGH"] .fill, .pbar[data-band="SEVERE"] .fill { background: var(--high); }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { padding: 12px; border-radius: 14px; background: var(--surface-2); } .metric small { color: var(--muted); display: block; font-size: .78rem; } .metric b { font-size: 1.25rem; font-variant-numeric: tabular-nums; } .metric span { font-size: .78rem; color: var(--muted); }
.gauge-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.playbook { white-space: pre-line; line-height: 1.65; }
.playbook-note { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; }
.checks { display: grid; gap: 8px; margin-top: 10px; }
.check-i { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; } .check-i .i { margin-top: 3px; }
.check-i.ok .i { color: var(--low-text); } .check-i.fail .i { color: var(--high-text); }
.locked { position: relative; overflow: hidden; border-radius: 14px; }
.locked > .blur { filter: blur(7px) saturate(.8); opacity: .75; pointer-events: none; user-select: none; }
.locked .gate { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 16px; background: color-mix(in srgb, var(--surface) 62%, transparent); }
.gate .badge { box-shadow: var(--shadow); }
.sheet-q { display: grid; gap: 10px; }
.feel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } @media (min-width: 480px) { .feel { grid-template-columns: repeat(3, 1fr); } }
.feel button { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 650; min-height: 84px; }
.feel button:hover { background: var(--surface-2); } .feel button[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.feel .i { width: 26px; height: 26px; color: var(--primary); }
.place-switch { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 14px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; font-weight: 650; cursor: pointer; min-height: 40px; }
.place-switch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.list { display: grid; gap: 10px; }
.li { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; color: inherit; flex-wrap: wrap; }
a.li:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.li .mini-ring { width: 54px; height: 54px; flex: none; }
.li .t { min-width: 0; flex: 1 1 160px; } .li .t b { display: block; } .li .t span { color: var(--muted); font-size: .88rem; }
.kv { display: grid; gap: 0; } .kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); } .kv > div:first-child { border-top: 0; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 650; text-align: right; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; } .stat3 b { font-size: 1.6rem; display: block; font-variant-numeric: tabular-nums; } .stat3 span { color: var(--muted); font-size: .82rem; }
.planbox { padding: 18px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); display: grid; gap: 10px; }
.planbox.plus { border-color: var(--plus); background: linear-gradient(180deg, var(--plus-bg), var(--surface)); }
.ticks { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; } .ticks li { display: flex; gap: 10px; align-items: flex-start; } .ticks .i { color: var(--low-text); margin-top: 3px; }
.ticks li.off { color: var(--faint); } .ticks li.off .i { color: var(--faint); }
.shot-card { position: relative; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .tabbar, .sidebar, .topbar { display: none; } }
.cmp { width: 100%; border-collapse: collapse; } .cmp th, .cmp td { text-align: left; padding: 12px 8px; border-top: 1px solid var(--line); vertical-align: top; font-size: .92rem; } .cmp thead th { border-top: 0; font-size: .85rem; color: var(--muted); } .cmp tbody th { font-weight: 600; }
