:root{
  --paper:#F3F2EE; --card:#FFFFFF;
  --ink:#101F1B; --ink-2:#3A4B46; --muted:#6C7C77; --faint:#93A19C;
  --line:#E4E5E0; --line-soft:#EFEFEB;
  --brand:#0B6B57; --brand-ink:#075243; --brand-soft:#E2EFEA;
  --amber:#9A6510; --amber-soft:#FAEEDA;
  --red:#AF2A20; --red-soft:#FBE8E5;
  --blue:#1B4E8F; --blue-soft:#E6EEF8;
  --r-lg:20px; --r-md:14px; --r-sm:10px;
  --shadow:0 1px 2px rgba(16,31,27,.05), 0 8px 24px rgba(16,31,27,.06);
}
*{box-sizing:border-box}
[hidden]{display:none !important}
html,body{margin:0;padding:0}
body{background:var(--paper);color:var(--ink);
  font-family:ui-sans-serif,-apple-system,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;line-height:1.5}

/* ---------- page header ---------- */
.page-head{max-width:900px;margin:0 auto;padding:52px 24px 8px;text-align:center}
.page-brand{display:inline-flex;align-items:center;gap:11px;margin-bottom:20px}
.page-brand .mark{width:38px;height:38px;flex:none}
.page-brand .wm{font-size:19px;font-weight:800;letter-spacing:-.025em}
.page-brand .wm i{font-style:normal;color:var(--brand)}
.page-head h1{font-size:clamp(28px,4vw,40px);line-height:1.15;letter-spacing:-.02em;margin:0 0 16px;font-weight:800}
.page-head p{margin:0 auto;max-width:668px;color:var(--ink-2);font-size:16.5px}

/* ---------- stage ---------- */
.stage{max-width:1180px;margin:0 auto;padding:34px 24px 80px;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:start}
@media (max-width:940px){.stage{grid-template-columns:1fr;gap:32px}}
.left-col{display:flex;flex-direction:column;align-items:center;gap:18px;position:sticky;top:28px}
@media (max-width:940px){.left-col{position:static}}

.roles{display:inline-flex;background:#E7E7E2;border-radius:999px;padding:4px;gap:2px}
.role-btn{border:0;background:transparent;cursor:pointer;font:inherit;font-size:13.5px;font-weight:650;
  color:var(--muted);padding:9px 18px;border-radius:999px;transition:.15s}
.role-btn:hover{color:var(--ink)}
.role-btn[aria-selected="true"]{background:var(--card);color:var(--ink);box-shadow:0 1px 3px rgba(16,31,27,.14)}

/* ---------- phone ---------- */
.phone{width:392px;height:830px;background:#0C0C0C;border-radius:52px;padding:11px;
  box-shadow:0 2px 6px rgba(0,0,0,.18), 0 30px 70px rgba(16,31,27,.22);flex:none}
@media (max-width:440px){.phone{width:100%;max-width:392px;height:770px;border-radius:44px}}
.screen{width:100%;height:100%;background:#FBFBF9;border-radius:42px;overflow:hidden;
  display:flex;flex-direction:column;position:relative}
.statusbar{flex:none;height:42px;display:flex;align-items:center;justify-content:space-between;
  padding:0 26px 0 30px;font-size:14px;font-weight:650;letter-spacing:-.01em}
.statusbar .sb-right{display:flex;align-items:center;gap:6px}

.brandbar{flex:none;display:flex;align-items:center;gap:9px;padding:2px 18px 10px;border-bottom:1px solid var(--line-soft)}
.brandbar .mark{width:27px;height:27px;flex:none}
.brandbar .wm{font-size:15px;font-weight:800;letter-spacing:-.025em;line-height:1}
.brandbar .wm i{font-style:normal;color:var(--brand)}
.brandbar .role-tag{margin-left:auto;font-size:9.5px;font-weight:800;letter-spacing:.11em;
  text-transform:uppercase;color:var(--muted);background:#EDEDE8;padding:4px 8px;border-radius:6px}

.viewport{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:0 0 12px}
.viewport::-webkit-scrollbar{width:5px}
.viewport::-webkit-scrollbar-thumb{background:#D6D8D3;border-radius:9px}
.homebar{flex:none;height:22px;display:flex;align-items:center;justify-content:center;background:#FBFBF9}
.homebar span{width:132px;height:5px;border-radius:3px;background:#101F1B;opacity:.85}

.tabbar{flex:none;display:flex;background:rgba(251,251,249,.94);backdrop-filter:blur(8px);
  border-top:1px solid var(--line-soft);padding:9px 6px 3px}
.tab{flex:1;border:0;background:transparent;cursor:pointer;font:inherit;position:relative;
  display:flex;flex-direction:column;align-items:center;gap:4px;
  font-size:10.5px;font-weight:650;color:var(--faint);padding:4px 0;letter-spacing:.01em}
.tab svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tab[aria-selected="true"]{color:var(--brand)}
.tab .dot{position:absolute;top:2px;right:calc(50% - 19px);min-width:16px;height:16px;border-radius:9px;
  background:var(--red);border:1.5px solid #FBFBF9;color:#fff;font-size:9.5px;font-weight:800;
  line-height:13px;text-align:center;padding:0 3px}

/* ---------- app chrome ---------- */
.app-head{display:flex;align-items:center;gap:11px;padding:12px 18px 14px}
.avatar{width:38px;height:38px;border-radius:11px;background:var(--brand-soft);flex:none;
  display:flex;align-items:center;justify-content:center;color:var(--brand-ink)}
.avatar svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.app-head .who{flex:1;min-width:0}
.app-head .who b{display:block;font-size:15px;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-head .who span{display:block;font-size:12.5px;color:var(--muted)}
.pill{flex:none;display:inline-flex;align-items:center;gap:5px;background:#EDEDE8;border-radius:999px;
  padding:8px 12px;font-size:12.5px;font-weight:650;cursor:pointer;border:0;font-family:inherit;color:var(--ink);max-width:132px}
.pill span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pill:hover{background:#E4E4DE}
.pill svg{width:11px;height:11px;flex:none;stroke:currentColor;fill:none;stroke-width:2.4}

.sec{padding:0 18px}
.sec-title{font-size:15.5px;font-weight:750;letter-spacing:-.01em;margin:22px 0 10px;
  display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.sec-title small{font-size:11.5px;font-weight:600;color:var(--faint);letter-spacing:0}

.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:16px;box-shadow:var(--shadow)}
.label{font-size:10.5px;font-weight:750;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.metric{display:flex;align-items:baseline;gap:6px;margin:6px 0 10px}
.metric b{font-size:46px;font-weight:800;letter-spacing:-.035em;line-height:1}
.metric span{font-size:14.5px;color:var(--muted);font-weight:600}
.delta{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 12px;font-size:12.5px;font-weight:700}
.delta.up{background:var(--brand-soft);color:var(--brand-ink)}
.delta.down{background:var(--red-soft);color:var(--red)}
.delta.flat{background:#EDEDE8;color:var(--ink-2)}
.divider{height:1px;background:var(--line-soft);margin:15px -16px}
.subline{font-size:19px;font-weight:750;letter-spacing:-.015em;margin:0 0 4px}
.subnote{font-size:13px;color:var(--brand-ink);font-weight:650;margin:0}
.subnote.warn{color:var(--amber)} .subnote.bad{color:var(--red)}
.strip{display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:#F4F5F2;border-radius:var(--r-md);padding:12px 14px;margin-top:14px}
.strip b{font-size:15.5px;letter-spacing:-.01em}

/* ---------- line chart with datapoints ---------- */
.chart{margin-top:14px}
.chart svg{width:100%;height:auto;display:block;overflow:visible}
.chart .pt{cursor:pointer}
.chart .pt circle{transition:r .12s}
.chart .pt:hover circle.hit{r:7}
.chart-read{display:flex;align-items:baseline;gap:7px;margin-top:8px;font-size:11.5px;
  color:var(--muted);font-weight:650;min-height:17px}
.chart-read b{font-size:13px;color:var(--ink);font-weight:750}
.chart-read i{font-style:normal;color:var(--brand-ink);font-weight:750}

.btn{display:block;width:100%;border:0;border-radius:var(--r-md);padding:14px;font:inherit;font-size:15.5px;
  font-weight:700;cursor:pointer;margin-top:14px;background:var(--brand);color:#fff;letter-spacing:-.01em}
.btn:hover{background:var(--brand-ink)}
.btn.ghost{background:transparent;color:var(--ink-2);font-size:14px;font-weight:650;margin-top:8px;padding:9px}
.btn.ghost:hover{background:#F0F0EC}
.btn.outline{background:#fff;color:var(--ink);border:1.5px solid var(--line);margin-top:9px}
.btn.outline:hover{background:#F6F6F3}
.btn.sm{padding:11px;font-size:14px;margin-top:10px}
.btn:disabled{background:#DEDFDA;color:#96A09C;cursor:not-allowed}
.btn.outline:disabled{background:#F4F4F1;color:#A9B2AE;border-color:var(--line)}
.btn-row{display:flex;gap:9px}

.banner{display:flex;gap:11px;align-items:flex-start;border-radius:var(--r-md);padding:14px;
  font-size:13.5px;font-weight:650;line-height:1.4;margin-top:16px;width:100%;text-align:left}
.banner svg{width:18px;height:18px;flex:none;margin-top:1px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.banner.warn{background:var(--amber-soft);color:var(--amber)}
.banner.bad{background:var(--red-soft);color:var(--red)}
.banner.good{background:var(--brand-soft);color:var(--brand-ink)}
.banner.info{background:var(--blue-soft);color:var(--blue)}
button.banner{border:0;font-family:inherit;cursor:pointer}
button.banner:hover{filter:brightness(.97)}

.chip{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:700}
.chip.good{background:var(--brand-soft);color:var(--brand-ink)}
.chip.warn{background:var(--amber-soft);color:var(--amber)}
.chip.bad{background:var(--red-soft);color:var(--red)}
.chip.neutral{background:#EDEDE8;color:var(--ink-2)}
.chip.info{background:var(--blue-soft);color:var(--blue)}
.chip.lock{background:#EDEDE8;color:var(--muted)}
.chip svg{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round}

.row{display:flex;gap:12px;align-items:flex-start;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r-md);padding:13px 14px;margin-bottom:9px;width:100%;text-align:left}
button.row{font-family:inherit;cursor:pointer}
button.row:hover{border-color:#CFD2CC;background:#FCFCFA}
.row .thumb{width:42px;height:42px;border-radius:10px;flex:none;display:flex;align-items:center;justify-content:center;background:#EFF0EC;color:var(--ink-2)}
.row .thumb svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.row .body{flex:1;min-width:0}
.row .body b{display:block;font-size:14px;letter-spacing:-.01em;margin-bottom:2px}
.row .body p{margin:0;font-size:12px;color:var(--muted)}
.row .body .meta{margin-top:7px;display:flex;gap:6px;flex-wrap:wrap}
.row .side{flex:none;text-align:right;font-size:11.5px;color:var(--faint);font-weight:650}

/* ---------- accordion (Track / Result lists) ---------- */
.acc{background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);margin-bottom:9px;overflow:hidden}
.acc.open{border-color:#CBD2CF;box-shadow:var(--shadow)}
.acc-hd{display:flex;gap:12px;align-items:center;width:100%;text-align:left;background:transparent;
  border:0;font-family:inherit;padding:13px 14px;cursor:pointer}
.acc-hd:hover{background:#FAFAF7}
.acc-hd .thumb{width:40px;height:40px;border-radius:10px;flex:none;display:flex;align-items:center;
  justify-content:center;background:#EFF0EC;color:var(--ink-2)}
.acc-hd .thumb svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.acc-hd .body{flex:1;min-width:0}
.acc-hd .body b{display:block;font-size:13.8px;letter-spacing:-.01em;margin-bottom:2px}
.acc-hd .body p{margin:0;font-size:11.5px;color:var(--muted)}
.acc-hd .body .meta{margin-top:6px;display:flex;gap:5px;flex-wrap:wrap}
.acc-hd .chev{flex:none;width:16px;height:16px;stroke:var(--faint);fill:none;stroke-width:2.4;
  stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.acc.open .acc-hd .chev{transform:rotate(180deg)}
.acc-bd{padding:2px 14px 15px;border-top:1px solid var(--line-soft);margin-top:2px}
.acc-bd .sub-h{font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
  color:var(--muted);margin:15px 0 9px}
.acc-bd .sub-h:first-child{margin-top:13px}
.kv{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;padding:6px 0;border-bottom:1px solid var(--line-soft)}
.kv:last-child{border-bottom:0}
.kv span{color:var(--muted);font-weight:600}
.kv b{font-weight:700}

/* ---------- camera ---------- */
.viewfinder{position:relative;border-radius:var(--r-lg);overflow:hidden;height:250px;
  background:radial-gradient(120% 80% at 50% 20%, #6E7A72 0%, #3E4844 55%, #262E2B 100%);border:1px solid #2A322F}
.viewfinder.shot{background:radial-gradient(90% 80% at 45% 62%, #6A756E 0%, #3A423E 65%, #232927 100%)}
.vf-grid{position:absolute;inset:0;background:
  linear-gradient(to right,rgba(255,255,255,.10) 1px,transparent 1px) 0 0/33.33% 100%,
  linear-gradient(to bottom,rgba(255,255,255,.10) 1px,transparent 1px) 0 0/100% 33.33%}
.vf-scene{position:absolute;left:14%;right:14%;top:44%;bottom:16%;
  background:radial-gradient(60% 70% at 50% 55%, #171C1A 0%, #2C3532 70%, transparent 100%);
  border-radius:50%/40%;filter:blur(1px)}
.viewfinder.fixed .vf-scene{background:radial-gradient(60% 70% at 50% 55%, #6C776F 0%, #49524D 70%, transparent 100%)}
.vf-reticle{position:absolute;left:50%;top:56%;transform:translate(-50%,-50%);width:132px;height:96px;
  border:2px solid rgba(255,255,255,.9);border-radius:8px}
.vf-reticle::after{content:attr(data-tag);position:absolute;left:-2px;top:-24px;background:rgba(255,255,255,.92);
  color:#101F1B;font-size:9.5px;font-weight:800;letter-spacing:.05em;padding:3px 7px;border-radius:5px;white-space:nowrap}
.vf-top{position:absolute;top:12px;left:12px;right:12px;display:flex;justify-content:space-between;gap:8px}
.vf-tag{background:rgba(10,14,13,.62);color:#fff;font-size:10px;font-weight:700;letter-spacing:.04em;
  padding:5px 9px;border-radius:7px;backdrop-filter:blur(4px);display:inline-flex;align-items:center;gap:5px}
.vf-tag i{width:6px;height:6px;border-radius:50%;background:#37D39A;display:inline-block}
.vf-watermark{position:absolute;left:12px;bottom:12px;right:12px;background:rgba(10,14,13,.60);
  backdrop-filter:blur(6px);border-radius:9px;padding:9px 11px;color:rgba(255,255,255,.94);
  font-size:10px;line-height:1.55;font-weight:600;letter-spacing:.02em;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.shutter{width:66px;height:66px;border-radius:50%;border:3.5px solid var(--ink);background:#fff;
  margin:16px auto 0;display:block;cursor:pointer;box-shadow:inset 0 0 0 4px #fff, inset 0 0 0 30px var(--brand)}
.shutter:disabled{border-color:#C3C7C2;box-shadow:inset 0 0 0 4px #fff, inset 0 0 0 30px #D6D9D4;cursor:not-allowed}

.meta-list{margin-top:14px;border-radius:var(--r-md);border:1px solid var(--line);overflow:hidden;background:var(--card)}
.meta-list div{display:flex;justify-content:space-between;gap:10px;padding:10px 13px;font-size:12.5px;border-bottom:1px solid var(--line-soft)}
.meta-list div:last-child{border-bottom:0}
.meta-list span{color:var(--muted);font-weight:600}
.meta-list b{font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}

.steps{display:flex;gap:5px;padding:0 18px 4px}
.steps i{flex:1;height:3.5px;border-radius:2px;background:#E2E3DE}
.steps i.on{background:var(--brand)}

.timeline{position:relative;padding-left:26px;margin-top:6px}
.timeline::before{content:"";position:absolute;left:7px;top:8px;bottom:10px;width:2px;background:var(--line)}
.tl{position:relative;padding-bottom:15px}
.tl:last-child{padding-bottom:0}
.tl::before{content:"";position:absolute;left:-26px;top:3px;width:15px;height:15px;border-radius:50%;background:#fff;border:2px solid var(--line)}
.tl.done::before{background:var(--brand);border-color:var(--brand)}
.tl.now::before{background:#fff;border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-soft)}
.tl.fail::before{background:var(--red);border-color:var(--red)}
.tl b{display:block;font-size:13px;letter-spacing:-.01em}
.tl span{font-size:11px;color:var(--muted)}
.tl.now b{color:var(--brand-ink)} .tl.fail b{color:var(--red)}
.tl.todo b{color:var(--faint);font-weight:650}

.checks{margin-top:12px;display:flex;flex-direction:column;gap:9px}
.checks.tight{margin-top:0;gap:8px}
.check{display:flex;align-items:center;gap:9px;font-size:12.5px;font-weight:600}
.check i{width:18px;height:18px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;
  font-style:normal;font-size:10.5px;font-weight:900;color:#fff}
.check.pass i{background:var(--brand)}
.check.fail i{background:var(--red)}
.check.wait i{background:#C9CBC5}
.check.fail span{color:var(--red)}

.ba{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
.ba figure{margin:0}
.ba .img{height:104px;border-radius:var(--r-sm);position:relative;overflow:hidden;
  background:radial-gradient(90% 80% at 40% 60%, #5D6862 0%, #333B38 70%, #232927 100%)}
.ba .img.sm{height:78px}
.ba .img.after{background:radial-gradient(90% 80% at 40% 60%, #7C877F 0%, #4A544E 70%, #2E3532 100%)}
.ba .img::after{content:"";position:absolute;left:20%;right:20%;top:52%;bottom:18%;border-radius:50%/40%;
  background:rgba(10,12,11,.72);filter:blur(2px)}
.ba .img.after::after{background:rgba(70,80,74,.35);filter:blur(4px)}
.ba .img.empty{background:#EEEFEB;border:1.5px dashed #CDD1CB;display:flex;align-items:center;justify-content:center}
.ba .img.empty::after{display:none}
.ba .img.empty svg{width:24px;height:24px;stroke:#9AA39E;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ba figcaption{font-size:10.5px;font-weight:700;color:var(--muted);margin-top:6px;letter-spacing:.04em;text-transform:uppercase}

.geo{height:170px;border-radius:var(--r-lg);position:relative;overflow:hidden;margin-top:4px;background:#EAEDE8;
  background-image:linear-gradient(rgba(255,255,255,.85) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.85) 1px,transparent 1px);
  background-size:34px 34px;border:1px solid var(--line)}
.geo .road{position:absolute;background:#DDE1DA}
.geo .r1{left:0;right:0;top:56%;height:16px}
.geo .r2{top:0;bottom:0;left:32%;width:13px}
.geo .ring{position:absolute;left:56%;top:48%;transform:translate(-50%,-50%);width:118px;height:118px;
  border-radius:50%;background:rgba(11,107,87,.13);border:2px dashed rgba(11,107,87,.55)}
.geo.out .ring{background:rgba(175,42,32,.10);border-color:rgba(175,42,32,.5)}
.geo .dot{position:absolute;left:56%;top:48%;transform:translate(-50%,-50%);width:13px;height:13px;
  border-radius:50%;background:var(--red);border:2.5px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.geo .me{position:absolute;left:46%;top:60%;transform:translate(-50%,-50%);width:15px;height:15px;border-radius:50%;
  background:var(--blue);border:3px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.3);transition:.45s}
.geo.out .me{left:14%;top:84%}
.geo .legend{position:absolute;left:10px;bottom:10px;background:rgba(255,255,255,.94);border-radius:8px;
  padding:6px 10px;font-size:10.5px;font-weight:700;color:var(--ink-2)}

/* ---------- heat map with named zones ---------- */
.heat{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-top:12px}
.heat button{aspect-ratio:1;border-radius:4px;display:block;border:1.5px solid transparent;padding:0;cursor:pointer}
.heat button:hover,.heat button.sel{border-color:var(--ink);transform:scale(1.12);z-index:2;position:relative}
.h0{background:#E8EAE5}.h1{background:#CFE2D8}.h2{background:#9CC9B6}.h3{background:#E7C89A}.h4{background:#D89A7E}.h5{background:#B85C48}
.heat-legend{display:flex;align-items:center;gap:7px;margin-top:11px;font-size:10.5px;font-weight:700;color:var(--muted);letter-spacing:.04em}
.heat-legend i{width:15px;height:9px;border-radius:2px;display:inline-block}
.zone-read{margin-top:12px;background:#F4F5F2;border-radius:var(--r-md);padding:11px 13px;min-height:62px}
.zone-read b{display:block;font-size:14px;letter-spacing:-.01em;margin-bottom:4px}
.zone-read p{margin:0;font-size:12px;color:var(--muted)}
.zone-read .meta{margin-top:7px;display:flex;gap:6px;flex-wrap:wrap}
.zone-read .hint{color:var(--faint);font-size:12px;font-weight:600}

.bar-row{margin-bottom:14px}
.bar-row:last-child{margin-bottom:0}
.bar-row .t{display:flex;justify-content:space-between;font-size:13px;font-weight:650;margin-bottom:6px}
.bar-row .t span{color:var(--muted);font-weight:650;font-size:12px}
.track{height:8px;border-radius:5px;background:#EAEBE6;overflow:hidden}
.track i{display:block;height:100%;border-radius:5px;background:var(--brand);transition:width .5s}
.track i.warn{background:#D9A441} .track i.bad{background:#C0574A}

.cats{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:4px}
.cat{border:1.5px solid var(--line);background:var(--card);border-radius:var(--r-md);padding:14px 12px;
  cursor:pointer;font:inherit;text-align:left;display:flex;flex-direction:column;gap:9px}
.cat svg{width:21px;height:21px;stroke:var(--ink-2);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cat b{font-size:13.5px;letter-spacing:-.01em}
.cat[aria-pressed="true"]{border-color:var(--brand);background:var(--brand-soft)}
.cat[aria-pressed="true"] svg{stroke:var(--brand-ink)}
.cat[aria-pressed="true"] b{color:var(--brand-ink)}

.empty{text-align:center;padding:40px 26px}
.empty .ic{width:56px;height:56px;border-radius:17px;background:#EFF0EC;margin:0 auto 16px;
  display:flex;align-items:center;justify-content:center}
.empty .ic svg{width:26px;height:26px;stroke:var(--faint);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.empty b{display:block;font-size:16px;letter-spacing:-.015em;margin-bottom:7px}
.empty p{margin:0;font-size:13.5px;color:var(--muted);line-height:1.5}

.wave{display:flex;align-items:center;gap:3px;height:44px;justify-content:center;margin:6px 0}
.wave i{width:3px;border-radius:2px;background:var(--brand);opacity:.5;height:60%;transform-origin:center}
.wave i:nth-child(1){height:30%}.wave i:nth-child(2){height:55%}.wave i:nth-child(3){height:80%}
.wave i:nth-child(4){height:100%}.wave i:nth-child(5){height:70%}.wave i:nth-child(6){height:45%}.wave i:nth-child(7){height:25%}
.wave.live i{opacity:1;animation:wave-pulse 1s ease-in-out infinite}
.wave.live i:nth-child(2n){animation-delay:.12s}
.wave.live i:nth-child(3n){animation-delay:.2s}
@keyframes wave-pulse{0%,100%{transform:scaleY(.5)}50%{transform:scaleY(1)}}

/* ---------- rating (citizen satisfaction) ---------- */
.stars{display:flex;gap:8px;justify-content:center;margin:14px 0 6px}
.star{border:0;background:transparent;cursor:pointer;padding:2px;line-height:0}
.star svg{width:38px;height:38px;stroke:#CFD3CD;fill:none;stroke-width:1.6;stroke-linejoin:round}
.star.on svg{stroke:#C99A2E;fill:#F0C45A}
.star:hover svg{stroke:#C99A2E}
.rate-label{text-align:center;font-size:13.5px;font-weight:700;color:var(--ink-2);min-height:20px;margin-bottom:4px}
.tags{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin:12px 0 2px}
.tagbtn{border:1.5px solid var(--line);background:#fff;border-radius:999px;padding:7px 12px;
  font:inherit;font-size:12px;font-weight:650;cursor:pointer;color:var(--ink-2)}
.tagbtn[aria-pressed="true"]{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-ink)}

/* ---------- cost entry ---------- */
.cost{margin-top:13px}
.cost .in{display:flex;align-items:center;gap:9px;border:1.5px solid var(--line);border-radius:var(--r-md);
  padding:11px 13px;background:#fff}
.cost .in span{font-size:16px;font-weight:750;color:var(--muted)}
.cost .in input{flex:1;min-width:0;border:0;outline:0;font:inherit;font-size:16px;font-weight:750;
  letter-spacing:-.01em;color:var(--ink);background:transparent}
.cost .in input:disabled{color:var(--muted)}
.cost .hint{font-size:11.5px;color:var(--faint);font-weight:600;margin-top:7px}
.rate-card{margin-top:9px;display:flex;gap:6px;flex-wrap:wrap}
.rate-card button{border:1.5px solid var(--line);background:#fff;border-radius:8px;padding:6px 10px;
  font:inherit;font-size:11.5px;font-weight:650;cursor:pointer;color:var(--ink-2)}
.rate-card button:hover{border-color:var(--brand);color:var(--brand-ink)}

/* ---------- cost derivation ---------- */
.calc{margin-top:11px;border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;background:#fff}
.calc .cr{display:flex;justify-content:space-between;gap:10px;padding:9px 12px;font-size:12px;border-bottom:1px solid var(--line-soft)}
.calc .cr span{color:var(--muted);font-weight:600}
.calc .cr b{font-weight:750;font-variant-numeric:tabular-nums}
.calc .cr.tot{background:var(--brand-soft);border-bottom:0}
.calc .cr.tot span,.calc .cr.tot b{color:var(--brand-ink);font-weight:800}
.calc .cr.sub{background:#FAFAF7}

.toast{position:absolute;left:16px;right:16px;bottom:78px;z-index:60;background:#101F1B;color:#fff;
  border-radius:var(--r-md);padding:13px 15px;font-size:13.5px;font-weight:650;line-height:1.4;
  box-shadow:0 10px 26px rgba(0,0,0,.25);display:flex;gap:10px;align-items:flex-start;
  opacity:0;transform:translateY(10px);transition:.24s;pointer-events:none}
.toast.on{opacity:1;transform:translateY(0)}
.toast svg{width:17px;height:17px;flex:none;margin-top:1px;stroke:#6FE3B8;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

.sheet-wrap{position:absolute;inset:0;z-index:40;display:flex;flex-direction:column;justify-content:flex-end}
.scrim{position:absolute;inset:0;background:rgba(16,31,27,.34);border:0;padding:0;cursor:pointer}
.sheet{position:relative;background:#FBFBF9;border-radius:24px 24px 42px 42px;padding:8px 0 22px;
  max-height:82%;display:flex;flex-direction:column;box-shadow:0 -8px 30px rgba(16,31,27,.18)}
.sheet .grab{width:38px;height:4px;border-radius:3px;background:#D5D8D2;margin:8px auto 4px}
.sheet h4{margin:8px 20px 4px;font-size:16.5px;font-weight:750;letter-spacing:-.015em}
.sheet .sub{margin:0 20px 10px;font-size:12.5px;color:var(--muted)}
.sheet .opts{overflow-y:auto;padding:4px 12px 0}
.opt{display:flex;align-items:center;gap:11px;width:100%;border:0;background:transparent;font:inherit;
  padding:13px 10px;border-radius:var(--r-md);cursor:pointer;text-align:left}
.opt:hover{background:#F0F1ED}
.opt .t{flex:1;min-width:0}
.opt .t b{display:block;font-size:14.5px;font-weight:650;letter-spacing:-.01em}
.opt .t span{font-size:11.5px;color:var(--faint)}
.opt .rd{width:19px;height:19px;border-radius:50%;border:2px solid #CFD2CC;flex:none;position:relative}
.opt[aria-checked="true"] .rd{border-color:var(--brand)}
.opt[aria-checked="true"] .rd::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--brand)}
.opt[aria-checked="true"] .t b{color:var(--brand-ink)}
.custom-range{padding:4px 22px 0}
.custom-range .f{display:flex;gap:9px;margin-bottom:10px}
.custom-range label{flex:1;font-size:10.5px;font-weight:750;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.custom-range input{display:block;width:100%;margin-top:6px;font:inherit;font-size:13.5px;padding:10px;
  border:1.5px solid var(--line);border-radius:var(--r-sm);background:#fff;color:var(--ink)}
.sheet .foot-btn{padding:6px 20px 0}

/* ---------- explainer panel ---------- */
.panel{background:var(--card);border:1px solid var(--line);border-radius:26px;padding:30px 30px 8px;box-shadow:var(--shadow)}
.panel h2{font-size:20px;font-weight:750;letter-spacing:-.02em;margin:0 0 6px}
.panel .lede{color:var(--muted);font-size:14.5px;margin:0 0 20px}
.try{background:var(--brand-soft);border-radius:var(--r-md);padding:16px 18px;margin-bottom:4px}
.try>b{display:block;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--brand-ink);margin-bottom:8px}
.try ol{margin:0;padding-left:18px;font-size:13.5px;color:var(--brand-ink);line-height:1.65}
.try li{margin-bottom:3px}
.try li b{font-weight:750}
.panel .ex-block{display:none}
.panel .ex-block.on{display:block}
.panel h3{font-size:15.5px;font-weight:750;letter-spacing:-.01em;margin:0 0 7px}
.panel p{font-size:14.5px;color:var(--ink-2);margin:0}
.ex-item{border-top:1px solid var(--line-soft);padding:22px 0}
.ex-item:first-of-type{border-top:0;padding-top:24px}
.ex-tag{display:inline-block;font-size:10.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--brand);margin-bottom:14px}
.foot{border-top:1px solid var(--line-soft);padding:18px 0 22px;font-size:13px;color:var(--faint)}
.foot code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;background:#F2F3EF;padding:2px 5px;border-radius:4px}
