/* Palette drawn from H&E stain: haematoxylin violet for the brand, eosin pink for critical. */
:root {
  --paper: #F4F6F5;
  --surface: #FFFFFF;
  --ink: #15232B;
  --muted: #5B6A71;
  --faint: #8A979C;
  --line: #DDE4E2;
  --line-strong: #C6D0CD;
  --stain: #3F348C;
  --stain-mid: #B9B2E3;
  --stain-soft: #ECEAF8;
  --eosin: #D2426A;
  --eosin-soft: #FBE7ED;
  --ok: #2B7A50;
  --ok-soft: #E3F2EA;
  --warn: #A9670E;
  --warn-soft: #FBF0DD;
  --info: #2A639E;
  --info-soft: #E3EEF9;
  --wa: #1DA851;
  --wa-bg: #E9E2D8;
  --radius: 10px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--stain); }
.num, td.num, .kpi-val { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--stain); outline-offset: 2px; border-radius: 4px; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #D6DEE1; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 18px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--stain); display: grid; place-items: center; flex: none; }
.brand-name { font-weight: 700; color: #fff; font-size: 16px; line-height: 1.2; }
.brand-sub { font-size: 12px; color: #93A2A8; }
.nav-group { margin: 14px 8px 4px; font-size: 12px; color: #7F8F95; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: #D6DEE1; text-decoration: none; font-size: 14px; }
.nav a:hover { background: rgba(255,255,255,.06); }
.nav a.active { background: var(--stain); color: #fff; }
.nav a .cnt { margin-left: auto; background: rgba(255,255,255,.14); border-radius: 20px; padding: 0 7px; font-size: 12px; }
.nav a.active .cnt { background: rgba(255,255,255,.25); }
.nav svg { width: 17px; height: 17px; flex: none; opacity: .85; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top h1 { font-size: 19px; margin: 0; font-weight: 600; letter-spacing: -.01em; }
.top .sub { color: var(--muted); font-size: 13px; }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.btn.menu-btn { display: none; }
.content { padding: 22px 24px 60px; max-width: 1320px; width: 100%; }

/* ---------- Primitives ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); background: var(--surface); padding: 7px 13px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--stain); }
.btn.primary { background: var(--stain); border-color: var(--stain); color: #fff; }
.btn.primary:hover { background: #33297A; }
.btn.danger { color: var(--eosin); border-color: #EBB6C4; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 4px 9px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel h2 { font-size: 16px; margin: 0 0 4px; font-weight: 600; }
.panel h3 { font-size: 14px; margin: 0 0 8px; font-weight: 600; }
.panel .hint { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.panel-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.panel-head > div:first-child { flex: 1; }
.panel-head .hint { margin: 0; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-side { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); }
.g-reg { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, .9fr); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi-label { color: var(--muted); font-size: 13px; }
.kpi-val { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.kpi-delta { font-size: 13px; margin-top: 2px; }
.up { color: var(--ok); } .down { color: var(--eosin); }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 20px; background: var(--stain-soft); color: var(--stain); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.crit { background: var(--eosin-soft); color: var(--eosin); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.grey { background: #EEF1F0; color: var(--muted); }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; }
.t tr.click:hover td { background: #F8FAF9; }
.table-wrap { overflow-x: auto; }

label.f { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
label.f > span { display: block; margin-bottom: 4px; }
.in, select.in, textarea.in { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; background: #fff; font-size: 14px; color: var(--ink); }
.in:focus { outline: none; border-color: var(--stain); box-shadow: 0 0 0 3px var(--stain-soft); }
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.seg button { white-space: nowrap; border: 0; background: #fff; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button.on { background: var(--stain); color: #fff; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 9px 12px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--stain); border-color: var(--stain); font-weight: 500; }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); }

/* ---------- Charts ---------- */
.chart { width: 100%; height: auto; display: block; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-axis { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.ch-line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s ease-out forwards; }
.ch-band { fill: var(--ok-soft); }
.ch-dot { stroke: #fff; stroke-width: 1.5; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ch-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.ch-legend.col { flex-direction: column; gap: 6px; }
.ch-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ch-legend b { color: var(--ink); font-weight: 600; margin-left: 4px; }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut-num { font-size: 22px; font-weight: 600; fill: var(--ink); font-family: var(--font); }
.hbars { display: grid; gap: 9px; }
.hbar-row { display: grid; grid-template-columns: minmax(110px, 160px) 1fr 52px; gap: 10px; align-items: center; font-size: 13px; }
.hbar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 10px; background: #EEF1F0; border-radius: 6px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: 6px; }
.hbar-val { text-align: right; font-variant-numeric: tabular-nums; }
.lj-mean { stroke: var(--ok); stroke-width: 1.4; }
.lj-1 { stroke: var(--line-strong); stroke-dasharray: 3 4; }
.lj-2 { stroke: var(--warn); stroke-dasharray: 5 4; }
.lj-3 { stroke: var(--eosin); stroke-dasharray: 6 3; }
.lj-path { fill: none; stroke: var(--stain); stroke-width: 1.6; }
.lj-pt { fill: var(--stain); stroke: #fff; stroke-width: 1.5; }
.lj-pt.warn { fill: var(--warn); }
.lj-pt.rej { fill: var(--eosin); }
.barcode { width: 100%; height: 46px; display: block; }
.barcode rect { fill: #000; }

/* ---------- Insight list ---------- */
.insights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.insights li { display: grid; grid-template-columns: 8px 1fr; gap: 12px; font-size: 14px; }
.insights li::before { content: ''; width: 8px; border-radius: 4px; background: var(--stain-mid); }
.insights li.bad::before { background: var(--eosin); }
.insights li.good::before { background: var(--ok); }
.insights li.warn::before { background: var(--warn); }
.insights .act { margin-top: 6px; }

/* ---------- Pipeline / board ---------- */
.board { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.col-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; padding: 0 2px 8px; }
.col-head span { color: var(--muted); font-weight: 500; }
.col-body { display: grid; gap: 10px; align-content: start; min-height: 120px; background: #EBEFEE; border-radius: var(--radius); padding: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; font-size: 13px; }
.card .nm { font-weight: 600; font-size: 14px; }
.card .meta { color: var(--muted); }
.card .acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.card.tat-risk { border-color: var(--warn); box-shadow: inset 3px 0 0 var(--warn); }
.card.crit { border-color: var(--eosin); box-shadow: inset 3px 0 0 var(--eosin); }

.steps { display: flex; gap: 0; flex-wrap: wrap; font-size: 12px; margin: 6px 0 2px; }
.steps span { padding: 3px 9px; background: #EEF1F0; color: var(--muted); }
.steps span:first-child { border-radius: 20px 0 0 20px; }
.steps span:last-child { border-radius: 0 20px 20px 0; }
.steps span.done { background: var(--stain-soft); color: var(--stain); }
.steps span.now { background: var(--stain); color: #fff; }

/* ---------- Results ---------- */
.res-table td.val input { width: 110px; text-align: right; }
.res-table .flagcell { min-width: 230px; }
.flag-msg { font-size: 12.5px; margin-top: 3px; }
.flag-msg.crit { color: var(--eosin); }
.flag-msg.warn { color: var(--warn); }
.flag-msg.info { color: var(--info); }
.flag-msg button { font-size: 12px; padding: 1px 7px; margin-left: 4px; }
tr.row-crit td { background: #FFF6F8; }
tr.row-absurd td { background: #FFF8EC; }
.range-bar { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--warn-soft) 0 25%, var(--ok-soft) 25% 75%, var(--warn-soft) 75% 100%); width: 140px; }
.range-bar i { position: absolute; top: -3px; width: 4px; height: 14px; border-radius: 2px; background: var(--ink); transform: translateX(-2px); }
.hl { color: var(--eosin); font-weight: 600; }
.lo { color: var(--info); font-weight: 600; }

/* ---------- Analyzer log ---------- */
.term { background: #101A20; color: #C7E2D6; font: 12.5px/1.6 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; border-radius: var(--radius); padding: 14px; height: 340px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; }
.term .ctl { color: #F2C14E; }
.term .ok { color: #7EE0A4; }
.term .err { color: #FF8FAB; }
.term .dim { color: #6E8792; }
.led { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin-right: 6px; box-shadow: 0 0 0 3px var(--ok-soft); }
.led.busy { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); animation: blink 0.8s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- Report ---------- */
.report { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; max-width: 860px; }
.rep-head { display: flex; gap: 16px; align-items: center; border-bottom: 2px solid var(--stain); padding-bottom: 14px; }
.rep-head .lab { font-size: 22px; font-weight: 700; color: var(--stain); }
.rep-head .addr { font-size: 12.5px; color: var(--muted); }
.rep-pt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 20px; font-size: 13.5px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rep-pt b { font-weight: 600; }
.rep-dept { font-weight: 600; color: var(--stain); margin: 18px 0 4px; font-size: 14px; }
.rep-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 26px; gap: 20px; }
.sign { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 26px; color: var(--stain); line-height: 1; }
.qr-box { width: 104px; height: 104px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; padding: 6px; background: #fff; }
.qr-box svg, .qr-box img { width: 100%; height: 100%; }
.watermark-locked { border: 1px dashed var(--eosin); background: var(--eosin-soft); color: var(--eosin); border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.param-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.param-card .big { font-size: 26px; font-weight: 600; }
.sev { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.sev.green { background: var(--ok); } .sev.yellow { background: #D9B300; } .sev.orange { background: #E07B22; } .sev.red { background: var(--eosin); }

/* ---------- Phone frames (doctor app, patient app, WhatsApp) ---------- */
.phone { width: 360px; max-width: 100%; height: 700px; border-radius: 38px; background: #0F171C; padding: 12px; box-shadow: 0 18px 50px rgba(21,35,43,.22); flex: none; }
.phone-screen { height: 100%; border-radius: 28px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; position: relative; }
.phone-status { height: 28px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; font-size: 12px; font-weight: 600; }
.app-bar { padding: 10px 16px 12px; background: var(--stain); color: #fff; }
.app-bar .t1 { font-weight: 600; font-size: 16px; }
.app-bar .t2 { font-size: 12.5px; opacity: .8; }
.app-body { flex: 1; overflow-y: auto; padding: 12px; }
.app-tabs { display: flex; border-top: 1px solid var(--line); background: #fff; }
.app-tabs button { flex: 1; border: 0; background: none; padding: 9px 0 11px; font-size: 11.5px; color: var(--muted); cursor: pointer; display: grid; justify-items: center; gap: 2px; }
.app-tabs button.on { color: var(--stain); font-weight: 600; }
.app-tabs svg { width: 20px; height: 20px; }
.a-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; font-size: 13.5px; }
.a-card .nm { font-weight: 600; }

.demo-split { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.demo-notes { flex: 1; min-width: 260px; }

/* WhatsApp preview drawer */
.wa-drawer { position: fixed; right: 18px; bottom: 18px; z-index: 60; transform: translateY(calc(100% + 40px)); transition: transform .28s ease; }
.wa-drawer.open { transform: none; }
.wa-drawer .phone { height: min(700px, calc(100vh - 36px)); }
.wa-head { background: #075E54; color: #fff; padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.wa-head .av { width: 34px; height: 34px; border-radius: 50%; background: #128C7E; display: grid; place-items: center; font-weight: 600; flex: none; }
.wa-head .x { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; font-size: 20px; }
.wa-list { flex: 1; overflow-y: auto; background: #fff; }
.wa-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #F0F0F0; cursor: pointer; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; }
.wa-item:hover { background: #F6F6F6; }
.wa-item .av { width: 40px; height: 40px; border-radius: 50%; background: #DFE5E7; display: grid; place-items: center; font-weight: 600; color: #54656F; flex: none; }
.wa-item .nm { font-weight: 600; font-size: 14px; }
.wa-item .pv { font-size: 13px; color: #667781; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }
.wa-item .un { margin-left: auto; background: var(--wa); color: #fff; border-radius: 20px; font-size: 11px; padding: 1px 7px; align-self: center; }
.wa-chat { flex: 1; overflow-y: auto; background: var(--wa-bg); padding: 12px 10px; }
.bubble { background: #fff; border-radius: 10px; padding: 8px 10px 4px; margin: 0 30px 10px 0; font-size: 13.5px; box-shadow: 0 1px 0 rgba(0,0,0,.08); white-space: pre-wrap; word-break: break-word; }
.bubble.in { background: #D9FDD3; margin: 0 0 10px 30px; }
.bubble .meta { text-align: right; font-size: 11px; color: #667781; margin-top: 2px; }
.bubble .tpl { font-size: 11px; color: #667781; margin-bottom: 4px; }
.bubble a { color: #027EB5; }
.bubble .wa-btn { display: block; text-align: center; border-top: 1px solid #EEE; margin: 8px -10px -4px; padding: 7px; color: #027EB5; font-weight: 500; text-decoration: none; }
.wa-day { text-align: center; margin: 4px 0 12px; }
.wa-day span { background: #fff; border-radius: 8px; padding: 3px 10px; font-size: 12px; color: #54656F; }
.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 55; background: var(--wa); color: #fff; border: 0; border-radius: 30px; padding: 12px 18px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 24px rgba(29,168,81,.35); display: flex; gap: 8px; align-items: center; }
.wa-fab svg, .wa-head .av svg { width: 20px; height: 20px; }
.wa-fab .b { background: #fff; color: var(--wa); border-radius: 20px; padding: 0 7px; font-size: 12px; }
.wa-fab.pulse { animation: pulse .9s ease 2; }
@keyframes pulse { 50% { transform: scale(1.08); } }

/* ---------- Toasts, modal, skeleton ---------- */
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 26px rgba(0,0,0,.2); animation: tin .2s ease; max-width: 92vw; }
.toast.ok { background: var(--ok); } .toast.crit { background: var(--eosin); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.modal-bg { position: fixed; inset: 0; background: rgba(21,35,43,.45); z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: 14px; width: min(520px, 100%); max-height: 90vh; overflow-y: auto; padding: 22px; }
.modal.wide { width: min(780px, 100%); }
.modal h2 { margin: 0 0 6px; font-size: 18px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.skel { background: linear-gradient(90deg, #E8ECEB 0%, #F3F6F5 50%, #E8ECEB 100%); background-size: 200% 100%; animation: sh 1s infinite linear; border-radius: 10px; }
@keyframes sh { to { background-position: -200% 0; } }
.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.label-sticker { border: 1px dashed var(--line-strong); border-radius: 6px; padding: 8px 10px; font-size: 12px; }
.label-sticker b { font-size: 13px; }

.callout { border-left: 3px solid var(--stain); background: var(--stain-soft); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 14px; }
.callout.crit { border-color: var(--eosin); background: var(--eosin-soft); }
.callout.warn { border-color: var(--warn); background: var(--warn-soft); }
.callout.ok { border-color: var(--ok); background: var(--ok-soft); }

.cost-out { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.price-plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.price-plan.rec { border-color: var(--stain); box-shadow: 0 0 0 1px var(--stain); }
.price-plan .p { font-size: 24px; font-weight: 600; margin: 4px 0; }
.price-plan ul { padding-left: 18px; margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }

/* Public report (scanned from QR) */
.public { max-width: 900px; margin: 0 auto; padding: 18px 14px 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-wide { grid-template-columns: 1fr; }
  .g-reg { grid-template-columns: 1fr 1fr; }
  .g-reg > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 70; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .btn.menu-btn { display: inline-flex; }
  .g2, .g3, .g-side, .g-reg { grid-template-columns: 1fr; }
  .content { padding: 16px 16px 90px; }
  .top { padding: 10px 16px; }
  .top .sub, .hide-sm { display: none; }
  .rep-pt { grid-template-columns: 1fr 1fr; }
  .report { padding: 18px; }
  .wa-drawer { right: 0; left: 0; bottom: 0; display: flex; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ch-line { stroke-dashoffset: 0; }
}
@media print {
  .side, .top, .wa-fab, .wa-drawer, #toasts, .no-print { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .content { padding: 0; }
  .report { border: 0; padding: 0; max-width: none; }
}
