@font-face { font-family:var(--f-body); src:url('fonts/urbanist-n-100_900-latin.woff2') format('woff2'); font-weight:100 900; font-display:swap; }
@font-face { font-family:var(--f-num); src:url('fonts/inter-tight-n-100_900-latin.woff2') format('woff2'); font-weight:100 900; font-display:swap; }
/* VulkHub Panorama's system, measured from its corridor.css: dark stage, glass panels, Urbanist with Inter Tight, 18 px radius. Blue tokens are the VULK dark-surface values. */
:root { --w:255,255,255; --bg:#0b0b0c; --panel:rgba(var(--w),.045); --line:rgba(var(--w),.07); --ink:#eef1f6; --ink-2:rgba(238,241,246,.66); --ink-3:rgba(238,241,246,.42);
  --strong:#fff; --cell:#101113; --cell-off:#0d0e0f; --sheet:rgba(22,23,25,.94); --opt:#17181a; --top-bg:linear-gradient(rgba(11,11,12,.88),rgba(11,11,12,.55));
  --ok-t:#7fe3a4; --warn-t:#f8b77e; --bad-t:#ff8f86; --scrim:rgba(4,5,8,.5); --glass-blur:22px;
  --f-display:'Inter Tight','Urbanist',sans-serif; --f-body:'Urbanist',system-ui,sans-serif; --f-num:'Inter Tight',sans-serif;
  --blue:#79afff; --ring:#5097ff; --fill:#1a46d4; --ok:#3fcf74; --warn:#f59a4b; --bad:#f2483d; --glass:rgba(28,29,31,.56); --glass-line:rgba(var(--w),.09);
  --map-land:#0e1420; --map-water:#0a1a33; --map-park:#101d24; --map-road:#1c2636; --map-road-major:#2a3a56; --map-road-casing:#141c2a; --map-building:#161f2e; --map-label:#8fa3c0; --map-halo:#0b111c; --map-water-label:#4f78b0; --accent:var(--blue); --neg:var(--bad); --pos:var(--ok);
  --left:338px; --top:72px; --r:18px; --ease:cubic-bezier(.22,1,.36,1); color-scheme:dark; }
html[data-scheme=light] { --w:12,24,48; --bg:#eef2f8; --ink:#101826; --ink-2:rgba(16,24,38,.68); --ink-3:rgba(16,24,38,.48); --strong:#0b1220; --cell:#fff; --cell-off:#f2f5fa; --sheet:rgba(255,255,255,.97); --opt:#fff; --top-bg:linear-gradient(rgba(238,242,248,.92),rgba(238,242,248,.6)); --ok-t:#0f7a3c; --warn-t:#a85a12; --bad-t:#c22a20; --blue:#1a46d4; --glass:rgba(255,255,255,.72); --glass-line:rgba(12,24,48,.1); --scrim:rgba(20,30,50,.28);
  --map-land:#e8edf5; --map-water:#bcd2ee; --map-park:#d9e6e4; --map-road:#fbfcfe; --map-road-major:#ffffff; --map-road-casing:#ccd5e3; --map-building:#dbe2ec; --map-label:#47566e; --map-halo:#f4f7fb; --map-water-label:#4b76ad; }
* { box-sizing:border-box; }
html,body { margin:0; min-height:100%; background:var(--bg); color:var(--ink); }
body { font:400 13.5px/1.4 var(--f-body); -webkit-font-smoothing:antialiased; overflow-x:hidden; }
button,input,select,textarea { font:inherit; color:inherit; }
button { background:none; border:0; padding:0; cursor:pointer; }
h1,h2,h3,p { margin:0; font-weight:400; }
.ic { width:17px; height:17px; flex:none; }
.dim { color:var(--ink-3); }
.num { font-family:var(--f-num); font-feature-settings:'tnum'; }
/* a key the visitor presses shows the ring (proto.js sets data-kbd); a click or the tour never does, and a field shows its caret */
:root[data-kbd] :focus-visible:not(input,textarea) { outline:1.5px solid var(--ring); outline-offset:2px; border-radius:8px; }
:root:not([data-kbd]) :focus { outline:none; }
.app { min-height:100dvh; display:flex; flex-direction:column; background:radial-gradient(1100px 620px at 72% -8%,rgba(32,70,160,.20),transparent 62%),var(--bg); }

/* top bar */
.top { position:sticky; top:0; z-index:20; height:var(--top); display:flex; align-items:center; gap:18px; padding:0 18px; background:var(--top-bg); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.brand { display:flex; align-items:center; gap:10px; min-width:calc(var(--left) - 34px); }
.brand i { width:30px; height:30px; border-radius:10px; display:grid; place-items:center; background:linear-gradient(160deg,#2a5cf0,#1a46d4); box-shadow:inset 0 1px 0 rgba(var(--w),.28),0 6px 16px rgba(26,70,212,.35); font:600 15px var(--f-num); font-style:normal; }
.brand .mk { display:grid; place-items:center; flex:none; color:var(--blue); }
.brand .mk svg { display:block; height:30px; width:auto; }
.brand { color:inherit; text-decoration:none; }
.brand b { font:500 16px var(--f-num); letter-spacing:-.01em; }
.brand small { display:block; font-size:11px; color:var(--ink-3); margin-top:-1px; }
.nav { display:flex; align-items:center; gap:2px; height:40px; padding:3px; border-radius:20px; background:var(--panel); border:1px solid var(--line); overflow-x:auto; scrollbar-width:none; }
.nav::-webkit-scrollbar { display:none; }
.nav a { height:32px; display:inline-flex; align-items:center; padding:0 15px; border-radius:16px; color:var(--ink-2); text-decoration:none; white-space:nowrap; transition:color .18s,background .25s var(--ease); }
.nav a:hover { color:var(--ink); }
.nav a[aria-current=page] { color:var(--ink); background:rgba(var(--w),.1); }
.actions { margin-left:auto; display:flex; align-items:center; gap:6px; }
.round { width:38px; height:38px; border-radius:50%; display:grid; place-items:center; color:var(--ink-2); border:1px solid transparent; transition:background .18s,transform .12s,color .18s; }
.round:hover { background:rgba(var(--w),.08); color:var(--ink); }
.round:active { transform:scale(.94); }
.round.lit { color:var(--blue); border-color:rgba(121,175,255,.32); background:rgba(80,151,255,.1); }
.find { display:flex; align-items:center; gap:8px; height:38px; min-width:184px; padding:0 13px; border-radius:19px; border:1px solid var(--glass-line); background:var(--panel); color:var(--ink-3); }
.find:hover { border-color:rgba(var(--w),.2); color:var(--ink-2); }
.find kbd { margin-left:auto; font:400 11.5px var(--f-body); opacity:.7; }
.who { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:rgba(var(--w),.1); font:500 12px var(--f-num); }

/* panorama */
.main { flex:1; padding:6px 16px 16px; min-width:0; }
.pano { display:grid; grid-template-columns:calc(var(--left) - 16px) minmax(0,1fr); gap:14px; min-height:calc(100dvh - var(--top) - 24px); }
.pano-side { display:flex; flex-direction:column; gap:12px; min-width:0; }
.pano-right { display:flex; flex-direction:column; gap:12px; min-width:0; }
.pano-head { display:flex; align-items:flex-end; gap:16px; padding:6px 4px 2px; flex-wrap:wrap; }
.title { font:300 34px/1.08 var(--f-display); letter-spacing:-.012em; color:var(--strong); }
.sub { color:var(--ink-2); margin-top:5px; max-width:64ch; }
.head-acts { margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }
.stage { position:relative; flex:1; min-height:420px; border-radius:var(--r); border:1px solid var(--line); overflow:hidden; background:radial-gradient(760px 420px at 50% 42%,rgba(40,92,210,.13),transparent 70%),linear-gradient(180deg,rgba(var(--w),.022),rgba(var(--w),.008)); }
.stage-in { position:relative; height:100%; padding:16px; overflow:auto; }
.glass { background:var(--glass); border:1px solid var(--glass-line); border-radius:var(--r); backdrop-filter:blur(var(--glass-blur)) saturate(1.2); -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(1.2); }
.card { padding:14px 15px; min-width:0; }
.card > header { display:flex; align-items:center; gap:8px; margin-bottom:9px; }
.card > header h2 { font-size:13.5px; font-weight:500; }
.card > header .go { margin-left:auto; color:var(--ink-3); }
.card > header .go:hover { color:var(--ink); }
.kpis { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.kpi { padding:12px 13px; text-align:left; display:block; width:100%; transition:border-color .18s,transform .12s; }
button.kpi:hover { border-color:rgba(var(--w),.2); }
button.kpi:active { transform:scale(.985); }
.kpi span { display:block; color:var(--ink-2); font-size:12px; }
.kpi b { display:block; font:300 26px/1.1 var(--f-num); letter-spacing:-.01em; margin-top:7px; }
.kpi small { display:block; color:var(--ink-3); font-size:11px; margin-top:3px; }
.kpi.ok b { color:var(--ok); } .kpi.warn b { color:var(--warn); } .kpi.bad b { color:var(--bad-t); } .kpi.blue b { color:var(--blue); }
.prov { display:flex; align-items:center; gap:7px; color:var(--ink-3); font-size:11px; margin-top:9px; }
.prov::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 3px rgba(63,207,116,.14); }
.row { display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:8px 7px; border-radius:11px; transition:background .15s; }
.row:hover { background:rgba(var(--w),.055); }
.row .t { min-width:0; flex:1; }
.row .t b { display:block; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row .t small { display:block; color:var(--ink-3); font-size:11.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row .v { color:var(--ink-2); white-space:nowrap; }
.foot { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:12px; }

/* pills and buttons */
.pill { display:inline-flex; align-items:center; gap:5px; height:21px; padding:0 8px; border-radius:11px; font-size:11.5px; white-space:nowrap; background:rgba(var(--w),.08); color:var(--ink-2); }
.pill.ok { background:rgba(63,207,116,.13); color:var(--ok-t); } .pill.warn { background:rgba(245,154,75,.14); color:var(--warn-t); } .pill.bad { background:rgba(242,72,61,.15); color:var(--bad-t); } .pill.blue { background:rgba(80,151,255,.15); color:var(--blue); }
.btn { height:38px; display:inline-flex; align-items:center; gap:7px; padding:0 15px; border-radius:19px; border:1px solid var(--glass-line); background:var(--panel); color:var(--ink); white-space:nowrap; transition:background .18s,border-color .18s,transform .12s; }
.btn:hover { background:rgba(var(--w),.09); border-color:rgba(var(--w),.18); }
.btn:active { transform:scale(.97); }
.btn.go { color:#fff; border-color:rgba(var(--w),.14); background:linear-gradient(180deg,#2453e4,#1a46d4); box-shadow:inset 0 1px 0 rgba(var(--w),.26),0 8px 20px rgba(26,70,212,.32); }
.btn.go:hover { background:linear-gradient(180deg,#2c5df0,#1f4cde); }
.btn.danger { color:var(--bad-t); }
.btn.sm { height:30px; padding:0 11px; font-size:12.5px; }
.seg { display:inline-flex; padding:3px; gap:2px; border-radius:19px; background:var(--panel); border:1px solid var(--line); }
.seg button { height:30px; padding:0 11px; display:inline-flex; align-items:center; gap:6px; border-radius:15px; color:var(--ink-2); }
.seg button[aria-pressed=true] { background:rgba(var(--w),.1); color:var(--ink); }

/* records */
.bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.bar .q { display:flex; align-items:center; gap:8px; height:38px; padding:0 12px; min-width:220px; border-radius:19px; border:1px solid var(--glass-line); background:var(--panel); color:var(--ink-3); }
.bar .q input { background:none; border:0; outline:0; color:var(--ink); width:100%; }
.bar .q:focus-within { border-color:rgba(var(--w),.24); }
.bar .sp { margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }
.chip { height:30px; padding:0 11px; border-radius:15px; border:1px solid var(--line); color:var(--ink-2); }
.chip:hover { color:var(--ink); border-color:rgba(var(--w),.16); }
.chip[aria-pressed=true] { color:var(--ink); background:rgba(80,151,255,.14); border-color:rgba(121,175,255,.36); }
.tw { overflow-x:auto; border-radius:var(--r); }
table { width:100%; border-collapse:collapse; }
th { text-align:left; font-weight:400; font-size:12px; color:var(--ink-3); padding:11px 13px; white-space:nowrap; border-bottom:1px solid var(--line); position:sticky; top:0; }
th button { display:inline-flex; align-items:center; gap:5px; color:inherit; }
th button:hover { color:var(--ink); }
th .ic { width:12px; height:12px; }
td { padding:10px 13px; border-bottom:1px solid rgba(var(--w),.045); white-space:nowrap; max-width:280px; overflow:hidden; text-overflow:ellipsis; }
tbody tr[data-open] { cursor:pointer; transition:background .14s; }
tbody tr:hover { background:rgba(var(--w),.04); }
tbody tr:last-child td { border-bottom:0; }
.empty { padding:42px 18px; text-align:center; color:var(--ink-2); }
.empty .btn { margin-top:12px; }
.kb { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(236px,1fr); gap:12px; overflow-x:auto; padding-bottom:6px; }
.kb section { min-width:0; border-radius:var(--r); background:var(--panel); border:1px solid var(--line); padding:10px; transition:border-color .18s,background .18s; }
.kb section.over { border-color:var(--ring); background:rgba(80,151,255,.08); }
.kb h3 { display:flex; gap:8px; align-items:baseline; padding:3px 5px 9px; font-size:13px; font-weight:500; }
.kb h3 small { color:var(--ink-3); font-weight:400; }
.kb h3 em { margin-left:auto; font-style:normal; font-size:12px; color:var(--ink-2); }
.tick { display:block; width:100%; text-align:left; padding:10px 11px; margin-bottom:8px; border-radius:13px; background:rgba(var(--w),.05); border:1px solid var(--line); cursor:grab; transition:transform .12s,border-color .18s; }
.tick:hover { border-color:rgba(var(--w),.18); }
.tick:active { transform:scale(.985); }
.tick b { display:block; font-weight:500; }
.tick small { display:block; color:var(--ink-3); margin-top:2px; }
.cal { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:1px; background:var(--line); border-radius:var(--r); overflow:hidden; }
.cal div { background:var(--cell); min-height:96px; padding:7px; min-width:0; }
.cal div.off { background:var(--cell-off); color:var(--ink-3); }
.cal div.head { min-height:0; color:var(--ink-3); font-size:11.5px; }
.cal div.today > span { color:var(--blue); }
.cal button { display:block; width:100%; text-align:left; margin-top:4px; padding:3px 6px; border-radius:7px; background:rgba(80,151,255,.14); font-size:11.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* sheet, dialogs, toast */
.scrim { position:fixed; inset:0; z-index:40; background:var(--scrim); animation:fade .18s; }
.sheet { position:fixed; z-index:41; top:10px; right:10px; bottom:10px; width:min(460px,calc(100vw - 20px)); display:flex; flex-direction:column; animation:slide .28s var(--ease); overflow:hidden; background:var(--sheet); }
.dialog { position:fixed; z-index:42; left:50%; top:50%; transform:translate(-50%,-50%); width:min(560px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); display:flex; flex-direction:column; animation:pop .22s var(--ease); background:var(--sheet); }
.dialog.wide { width:min(760px,calc(100vw - 24px)); }
.sh-head { display:flex; align-items:flex-start; gap:10px; padding:16px 16px 12px; border-bottom:1px solid var(--line); }
.sh-head h2 { font:300 22px/1.15 var(--f-num); }
.sh-head p { color:var(--ink-2); margin-top:3px; }
.sh-head .round { margin:-6px -6px 0 auto; }
.sh-body { padding:14px 16px; overflow:auto; flex:1; }
.sh-foot { display:flex; gap:8px; padding:12px 16px; border-top:1px solid var(--line); }
.sh-foot .r { margin-left:auto; display:flex; gap:8px; }
.kv { display:grid; grid-template-columns:128px minmax(0,1fr); gap:9px 12px; }
.kv dt { color:var(--ink-3); } .kv dd { margin:0; min-width:0; overflow-wrap:anywhere; }
.sect { margin-top:18px; }
.sect h3 { display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--ink-2); margin-bottom:6px; }
.sect h3 button { margin-left:auto; color:var(--blue); font-size:12px; }
.log { border-left:1px solid var(--line); margin-left:5px; padding-left:13px; }
.log p { padding:3px 0; color:var(--ink-2); font-size:12.5px; }
.log small { color:var(--ink-3); margin-left:6px; }
form .f { display:block; margin-bottom:11px; }
form .f span { display:block; color:var(--ink-2); font-size:12px; margin-bottom:4px; }
form .f span i { color:var(--blue); font-style:normal; }
.in { width:100%; height:38px; padding:0 11px; border-radius:11px; border:1px solid var(--glass-line); background:rgba(var(--w),.04); outline:0; }
textarea.in { height:88px; padding:9px 11px; resize:vertical; }
.in:focus { border-color:rgba(var(--w),.24); }
select.in option { background:var(--opt); color:var(--ink); }
.toast { position:fixed; z-index:60; left:50%; bottom:22px; transform:translateX(-50%); display:flex; gap:8px; align-items:center; padding:10px 15px; border-radius:21px; animation:pop2 .24s var(--ease); max-width:calc(100vw - 24px); background:var(--sheet); }
.toast .ic { color:var(--ok); }
.menu { position:fixed; z-index:45; top:66px; right:14px; width:236px; padding:6px; animation:pop2 .18s var(--ease); background:var(--sheet); }
.menu button { display:flex; gap:9px; align-items:center; width:100%; padding:9px 10px; border-radius:10px; text-align:left; }
.menu button:hover { background:rgba(var(--w),.07); }
.menu small { display:block; padding:6px 10px 4px; color:var(--ink-3); }
.list { list-style:none; margin:0; padding:0; }
.list li { display:flex; gap:9px; padding:5px 0; color:var(--ink-2); }
.list li .ic { color:var(--blue); margin-top:1px; }
.steps { display:flex; gap:6px; flex-wrap:wrap; }
.steps span { display:inline-flex; gap:7px; align-items:center; padding:5px 11px 5px 6px; border-radius:15px; background:var(--panel); color:var(--ink-2); }
.steps span b { width:20px; height:20px; border-radius:50%; display:grid; place-items:center; background:rgba(80,151,255,.16); color:var(--blue); font:500 11px var(--f-num); }
.mt { margin-top:14px; }
@keyframes fade { from { opacity:0; } }
@keyframes slide { from { transform:translateX(24px); opacity:0; } }
@keyframes pop { from { transform:translate(-50%,-48%) scale(.98); opacity:0; } }
@keyframes pop2 { from { transform:translateX(-50%) translateY(8px); opacity:0; } }
.menu { animation-name:fade; }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }
@media (max-width:1080px) {
  :root { --top:60px; }
  .top { background:var(--bg); backdrop-filter:none; -webkit-backdrop-filter:none; }
  .brand { min-width:0; } .brand small,.find span,.find kbd { display:none; } .find { min-width:0; width:38px; padding:0; justify-content:center; border-radius:50%; }
  .nav { position:fixed; z-index:30; left:10px; right:10px; bottom:10px; height:48px; border-radius:24px; background:var(--sheet); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
  .main { padding-bottom:72px; }
  .pano { grid-template-columns:minmax(0,1fr); }
  .pano-right { order:-1; }
  .stage { min-height:360px; }
  .foot { grid-auto-flow:row; }
  .title { font-size:27px; }
  .kb { grid-auto-columns:minmax(232px,82vw); }
  .cal div { min-height:64px; padding:4px; }
}

@media (max-width:1360px) and (min-width:1081px) {
  .shell-top .find { min-width:0; width:38px; padding:0; justify-content:center; border-radius:50%; }
  .shell-top .find span,.shell-top .find kbd { display:none; }
}
@media (max-width:560px) { .top { gap:10px; padding:0 12px; } }
@media (max-width:400px) { .brand .wd { display:none; } .shell-rail .brand .wd { display:none; } }

/* charts */
.ch { position:relative; display:flex; }
.ch-grid { position:absolute; inset:0 0 22px 0; pointer-events:none; }
.ch-grid i { position:absolute; left:0; right:0; border-top:1px solid rgba(var(--w),.055); font-style:normal; }
.ch-grid em { position:absolute; left:0; top:-7px; font:400 10.5px var(--f-body); color:var(--ink-3); font-style:normal; background:transparent; }
.ch-plot { position:absolute; inset:0 0 0 46px; display:flex; gap:2%; align-items:stretch; }
.ch-plot svg { position:absolute; left:0; right:0; top:0; height:calc(100% - 22px); width:100%; overflow:visible; }
.ch-x { position:absolute; left:0; right:0; bottom:0; display:flex; justify-content:space-between; color:var(--ink-3); font-size:11px; }
.ch-col { flex:1; min-width:0; display:flex; flex-direction:column; }
.ch-bars { flex:1; display:flex; gap:3px; align-items:flex-end; justify-content:center; }
.ch-bars b { flex:1; max-width:18px; border-radius:5px 5px 2px 2px; background:linear-gradient(180deg,#79afff,#3f7fd6); min-height:1px; transition:filter .15s; }
.ch-bars b:hover { filter:brightness(1.25); }
.ch-bars b.dim { background:rgba(238,241,246,.17); }
.ch-bars b.ok { background:var(--ok); } .ch-bars b.bad { background:var(--bad); } .ch-bars b.warn { background:var(--warn); }
.ch-col > span { height:22px; line-height:26px; padding:0 2px; text-align:center; color:var(--ink-3); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ch-key { display:flex; gap:14px; margin-top:9px; color:var(--ink-2); font-size:12px; flex-wrap:wrap; }
.ch-key.mb { margin:0 0 8px; }
.ch-key i { display:inline-block; width:9px; height:9px; border-radius:3px; margin-right:6px; background:#79afff; }
.ch-key i.dim { background:rgba(238,241,246,.3); } .ch-key i.bad { background:var(--bad); } .ch-key i.ok { background:var(--ok); } .ch-key i.warn { background:var(--warn); }
.spl { display:grid; grid-template-columns:46px minmax(0,1fr) minmax(0,1fr) 46px; gap:2px 6px; align-items:center; padding:5px 0; font-size:12.5px; }
.spl > span { grid-column:1/-1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.spl em { font:400 11.5px var(--f-num); color:var(--ink-3); font-style:normal; }
.spl em:nth-of-type(1) { text-align:right; }
.spl .l { display:flex; justify-content:flex-end; } .spl .l b,.spl .r b { display:block; height:9px; border-radius:3px; background:#79afff; } .spl .l b.bad { background:var(--bad); }
.mtr { padding:6px 0; }
.mtr > div:first-child { display:flex; justify-content:space-between; gap:10px; font-size:12.5px; margin-bottom:5px; }
.mtr em { color:var(--ink-3); font-style:normal; white-space:nowrap; }
.tr { height:7px; border-radius:4px; background:rgba(var(--w),.07); overflow:hidden; }
.tr b { display:block; height:100%; border-radius:4px; background:linear-gradient(90deg,#3f7fd6,#79afff); }
.tr b.ok { background:var(--ok); } .tr b.warn { background:var(--warn); } .tr b.bad { background:var(--bad); }
.fnl > div { display:grid; grid-template-columns:96px minmax(0,1fr) 62px; gap:10px; align-items:center; padding:5px 0; font-size:12.5px; }
.fnl .tr { height:13px; border-radius:5px; } .fnl .tr b { border-radius:5px; }
.fnl em { color:var(--ink-2); font-style:normal; text-align:right; font:400 12px var(--f-num); }
.dnt { display:flex; align-items:center; gap:16px; }
.ring { width:112px; height:112px; flex:none; border-radius:50%; display:grid; place-items:center; -webkit-mask:radial-gradient(circle 41px,transparent 98%,#000); mask:radial-gradient(circle 41px,transparent 98%,#000); }
.dnt ul { list-style:none; margin:0; padding:0; flex:1; min-width:0; }
.dnt li { display:flex; align-items:center; gap:7px; padding:3px 0; color:var(--ink-2); font-size:12.5px; }
.dnt li i { width:8px; height:8px; border-radius:3px; flex:none; }
.dnt li em { margin-left:auto; font:400 12px var(--f-num); font-style:normal; }

/* lists that act */
.check { display:flex; gap:10px; align-items:flex-start; width:100%; text-align:left; padding:8px 4px; border-bottom:1px solid var(--line); }
.check:last-child { border-bottom:0; }
.check i { flex:none; width:18px; height:18px; margin-top:1px; border-radius:6px; border:1px solid rgba(var(--w),.26); display:grid; place-items:center; color:transparent; transition:background .15s,border-color .15s; }
.check:hover i { border-color:var(--ring); }
.check[data-done] i { background:var(--fill); border-color:var(--fill); color:#fff; }
.check[data-done] b { color:var(--ink-3); text-decoration:line-through; }
.check b { display:block; font-weight:500; } .check small { display:block; color:var(--ink-3); font-size:11.5px; }
.check i .ic { width:12px; height:12px; }
.bulk { position:fixed; z-index:30; left:50%; bottom:20px; transform:translateX(-50%); display:flex; align-items:center; gap:8px; padding:7px 8px 7px 15px; border-radius:24px; animation:pop2 .22s var(--ease); background:var(--sheet); max-width:calc(100vw - 20px); flex-wrap:wrap; }
.bulk select { height:32px; border-radius:16px; }
td.sel,th.sel { width:34px; padding-right:0; }
td.sel input,th.sel input { width:15px; height:15px; accent-color:var(--fill); }
.vw { display:flex; gap:5px; flex-wrap:wrap; }
.tabs { display:flex; gap:2px; padding:3px; border-radius:19px; background:var(--panel); border:1px solid var(--line); width:fit-content; margin-bottom:14px; flex-wrap:wrap; }
.tabs button { height:32px; padding:0 13px; border-radius:16px; color:var(--ink-2); }
.tabs button[aria-pressed=true] { background:rgba(var(--w),.1); color:var(--ink); }
.set { max-width:880px; }
.set .rowline { display:flex; gap:12px; align-items:center; padding:10px 14px; border-bottom:1px solid var(--line); }
.set .rowline:last-child { border-bottom:0; }
.set .rowline div { min-width:0; flex:1; } .set .rowline small { display:block; color:var(--ink-3); }
.sw { width:36px; height:21px; border-radius:11px; background:rgba(var(--w),.14); position:relative; flex:none; transition:background .18s; }
.sw::after { content:''; position:absolute; top:3px; left:3px; width:15px; height:15px; border-radius:50%; background:#fff; transition:transform .2s var(--ease); }
.sw[aria-checked=true] { background:var(--fill); } .sw[aria-checked=true]::after { transform:translateX(15px); }
.note { padding:9px 11px; border-radius:11px; background:rgba(var(--w),.045); margin-bottom:6px; }
.note small { display:block; color:var(--ink-3); margin-top:3px; }
.inline { display:flex; gap:6px; margin-bottom:8px; }
.inline .in { height:34px; }
.grid2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.rep-grid { align-items:start; } /* the chart keeps its own height beside a long table */
.rep-lines { display:grid; gap:2px; padding:2px 0; }
.grid3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
@media (max-width:1080px) { .grid2,.grid3 { grid-template-columns:minmax(0,1fr); } }

.lnk { color:var(--ink); border-bottom:1px solid rgba(121,175,255,.45); padding:0; } .lnk:hover { color:#79afff; }
.empty.big { padding:64px 24px; text-align:center; border-radius:var(--r); display:grid; justify-items:center; gap:10px; } .empty.big .sub { max-width:560px; } .empty.big .head-acts { justify-content:center; flex-wrap:wrap; display:flex; gap:8px; }

.odonto { display:grid; gap:10px; max-width:1040px; margin:0 auto; padding-top:4px; }
.arch { display:grid; grid-template-columns:repeat(16,minmax(0,1fr)); gap:5px; } .arch > div { text-align:center; display:grid; gap:3px; } .arch > div:nth-child(8) { box-shadow:3px 0 0 -2px rgba(var(--w),.1); } .arch small { font-size:10.5px; }
@media (max-width:720px) { .arch { grid-template-columns:repeat(8,minmax(0,1fr)); } .arch > div:nth-child(8) { box-shadow:none; } }

/* —— the stage: the business fills the screen and the interface floats over it —— */
#backdrop { position:fixed; inset:0; z-index:0; background:var(--bg); overflow:hidden; transition:filter .4s var(--ease),opacity .4s var(--ease); }
#backdrop canvas { display:block; width:100%; height:100%; touch-action:none; }
.staged .app { position:relative; z-index:1; background:none; pointer-events:none; }
.staged .top { pointer-events:auto; }
.staged .main { pointer-events:none; }
.staged .main > * { pointer-events:auto; }
.staged .main.page { pointer-events:auto; }
.staged.over #backdrop { filter:blur(14px) saturate(.75) brightness(.55); }
html[data-scheme=light].staged.over #backdrop { filter:blur(14px) saturate(.8) brightness(1.04) opacity(.5); }
.staged.over .main { background:none; }
.hud { position:fixed; inset:0; z-index:2; pointer-events:none; display:grid; padding:var(--hud-pad,84px 16px 16px); grid-template-columns:var(--hud-l,330px) minmax(0,1fr) var(--hud-r,330px); grid-template-rows:auto minmax(0,1fr) auto; gap:12px; }
.staged .main > .hud { pointer-events:none; }
.hud > * { min-width:0; }
.hud-t { grid-column:1 / -1; grid-row:1; display:flex; gap:10px; align-items:flex-start; flex-wrap:wrap; pointer-events:none; }
.hud-t > * { pointer-events:auto; }
.hud-l { grid-column:1; grid-row:2 / 4; display:flex; flex-direction:column; gap:10px; overflow:auto; scrollbar-width:none; pointer-events:none; }
.hud-r { grid-column:3; grid-row:2 / 4; display:flex; flex-direction:column; gap:10px; overflow:auto; scrollbar-width:none; pointer-events:none; }
.hud-l > *,.hud-r > * { pointer-events:auto; flex:none; }
.hud-l::-webkit-scrollbar,.hud-r::-webkit-scrollbar { display:none; }
.hud-b { grid-column:2; grid-row:3; display:flex; gap:10px; align-items:flex-end; justify-content:center; flex-wrap:wrap; pointer-events:none; }
.hud-b > * { pointer-events:auto; }
.hud h1.title { text-shadow:0 1px 18px rgba(0,0,0,.45); }
html[data-scheme=light] .hud h1.title { text-shadow:none; }
.scene-flags { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.flag { position:absolute; left:0; top:0; display:inline-flex; align-items:center; gap:6px; height:25px; padding:0 9px; border-radius:13px; font:500 11.5px var(--f-num); white-space:nowrap; background:var(--glass); border:1px solid var(--glass-line); color:var(--ink); pointer-events:auto; cursor:pointer; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); will-change:transform; transition:border-color .15s; }
.flag::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--flag,var(--blue)); }
.flag.ok { --flag:var(--ok); } .flag.warn { --flag:var(--warn); } .flag.bad { --flag:var(--bad); }
.flag:hover { border-color:var(--ring); }
.flag[hidden] { display:none; }
.scene-tip { position:absolute; z-index:2; left:0; top:0; padding:5px 9px; border-radius:9px; font-size:12px; background:var(--sheet); border:1px solid var(--glass-line); pointer-events:none; white-space:nowrap; }
.pin { display:grid; place-items:center; min-width:30px; height:30px; padding:0 8px; border-radius:15px; font:500 12px var(--f-num); color:#fff; background:var(--fill); border:2px solid rgba(255,255,255,.85); box-shadow:0 6px 16px rgba(0,0,0,.35); cursor:pointer; transition:transform .15s var(--ease); }
.pin:hover { transform:scale(1.08); }
.pin.ok { background:#1f9d57; } .pin.warn { background:#c9731f; } .pin.bad { background:#d3362c; } .pin.dim { background:#3a4150; }
.maplibregl-ctrl-attrib { font-size:10px; }

/* —— navigation forms: the same sections, seven different ways of getting around —— */
.nav a { gap:7px; }
.nav a .ic { width:16px; height:16px; }
.shell-top .nav a .ic { display:none; }
.shell-top .brand { min-width:min(calc(var(--left) - 34px),17vw); }

.shell-hud .top { position:fixed; left:14px; right:14px; top:12px; height:58px; padding:0 8px 0 16px; border-radius:20px; background:var(--glass); border:1px solid var(--glass-line); backdrop-filter:blur(22px) saturate(1.2); -webkit-backdrop-filter:blur(22px) saturate(1.2); z-index:20; }
.shell-hud .brand { min-width:0; margin-right:6px; }
.shell-hud .brand small { display:none; }
.shell-hud .nav { background:none; border:0; }
.shell-hud .nav a .ic { display:none; }
.shell-hud .main { padding:86px 16px 16px; }

.shell-rail { padding-left:76px; }
.shell-rail .top { position:fixed; left:10px; top:10px; bottom:10px; width:58px; height:auto; flex-direction:column; align-items:center; padding:12px 0; gap:14px; border-radius:20px; background:var(--glass); border:1px solid var(--glass-line); backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px); z-index:20; }
.shell-rail .brand { min-width:0; } .shell-rail .brand .wd { display:none; }
.shell-rail .nav { flex-direction:column; height:auto; flex:1; background:none; border:0; gap:4px; padding:0; overflow:visible; }
.shell-rail .nav a { width:40px; height:40px; padding:0; justify-content:center; border-radius:13px; position:relative; }
.shell-rail .nav a .ic { width:19px; height:19px; }
.shell-rail .nav a .lb { position:absolute; left:50px; top:50%; transform:translateY(-50%) translateX(-4px); padding:6px 10px; border-radius:9px; background:var(--sheet); border:1px solid var(--glass-line); opacity:0; pointer-events:none; transition:opacity .15s,transform .2s var(--ease); white-space:nowrap; color:var(--ink); }
.shell-rail .nav a:hover .lb,.shell-rail .nav a:focus-visible .lb { opacity:1; transform:translateY(-50%); }
.shell-rail .actions { margin:0; flex-direction:column; }
.shell-rail .find { width:38px; min-width:0; padding:0; justify-content:center; border-radius:50%; border:0; background:none; }
.shell-rail .find span,.shell-rail .find kbd { display:none; }
.shell-rail .main { padding-top:16px; }
.staged .shell-rail ~ * { }
.shell-rail { --hud-rail:76px; }
.shell-rail .hud { padding:14px 14px 14px 84px; }

.shell-dock .top { position:fixed; left:0; right:0; top:0; height:64px; padding:0 18px; background:none; backdrop-filter:none; -webkit-backdrop-filter:none; z-index:20; pointer-events:none; }
.shell-dock .top > * { pointer-events:auto; }
.shell-dock .brand { min-width:0; }
.shell-dock .brand small { display:none; }
.shell-dock .nav { position:fixed; left:50%; bottom:14px; transform:translateX(-50%); height:62px; padding:6px; gap:2px; border-radius:22px; background:var(--glass); border:1px solid var(--glass-line); backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px); z-index:21; max-width:calc(100vw - 24px); }
.shell-dock .nav a { height:50px; min-width:66px; padding:0 10px; flex-direction:column; justify-content:center; gap:3px; border-radius:16px; font-size:11px; }
.shell-dock .nav a .ic { width:19px; height:19px; }
.shell-dock .main { padding:70px 16px 92px; }
.shell-dock .hud { padding:70px 16px 92px; }

.shell-corner .top { position:fixed; left:0; right:0; top:0; height:76px; padding:0 22px; background:none; backdrop-filter:none; -webkit-backdrop-filter:none; z-index:20; pointer-events:none; }
.shell-corner .top > * { pointer-events:auto; }
.shell-corner .brand { min-width:0; }
.shell-corner .brand b { font:600 21px var(--f-display); letter-spacing:-.02em; }
.shell-corner .nav { margin-left:auto; background:none; border:0; gap:16px; padding:0; }
.shell-corner .nav a { padding:0 2px; height:30px; border-radius:0; background:none!important; border-bottom:1.5px solid transparent; }
.shell-corner .nav a .ic { display:none; }
.shell-corner .nav a[aria-current=page] { border-bottom-color:var(--ring); }
.shell-corner .actions { margin-left:10px; }
.shell-corner .find { width:38px; min-width:0; padding:0; justify-content:center; border-radius:50%; }
.shell-corner .find span,.shell-corner .find kbd { display:none; }
.shell-corner .main { padding:84px 22px 18px; }
.shell-corner .hud { padding:84px 20px 18px; }

.shell-ribbon .top { position:sticky; top:0; height:auto; flex-wrap:wrap; gap:0 18px; padding:10px 18px 0; background:var(--sheet); border-bottom:1px solid var(--line); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
.shell-ribbon .brand { min-width:0; }
.shell-ribbon .brand small { display:inline; margin:0 0 0 8px; }
.shell-ribbon .brand .wd { display:flex; align-items:baseline; }
.shell-ribbon .nav { order:3; flex:0 0 100%; height:38px; margin-top:6px; background:none; border:0; border-radius:0; padding:0; gap:18px; }
.shell-ribbon .nav a { height:38px; padding:0 2px; border-radius:0; background:none!important; border-bottom:2px solid transparent; }
.shell-ribbon .nav a .ic { width:15px; height:15px; }
.shell-ribbon .nav a[aria-current=page] { border-bottom-color:var(--ring); color:var(--strong); }
.shell-ribbon .main { padding-top:14px; }
.shell-ribbon .hud { padding:112px 14px 14px; }

.shell-drawer { padding-right:176px; }
.shell-drawer .top { position:fixed; right:10px; top:10px; bottom:10px; width:158px; height:auto; flex-direction:column; align-items:stretch; padding:14px 8px 10px; gap:14px; border-radius:20px; background:var(--glass); border:1px solid var(--glass-line); backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px); z-index:20; }
.shell-drawer .brand { min-width:0; padding:0 7px; }
.shell-drawer .brand small { display:none; }
.shell-drawer .nav { flex-direction:column; align-items:stretch; height:auto; flex:1; background:none; border:0; padding:0; gap:2px; border-radius:0; overflow:visible; }
.shell-drawer .nav a { height:38px; justify-content:flex-start; padding:0 11px; border-radius:11px; }
.shell-drawer .nav a[aria-current=page] { box-shadow:inset 3px 0 0 var(--ring); }
.shell-drawer .actions { margin:0; flex-wrap:wrap; justify-content:center; }
.shell-drawer .find { min-width:0; width:38px; padding:0; justify-content:center; border-radius:50%; }
.shell-drawer .find span,.shell-drawer .find kbd { display:none; }
.shell-drawer .hud { padding:14px 180px 14px 14px; }

.shell-book .top { position:static; height:auto; padding:22px 26px 0; flex-wrap:wrap; align-items:flex-end; gap:6px 18px; background:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
.shell-book .brand { min-width:0; }
.shell-book .brand b { font:600 clamp(28px,3.4vw,44px)/1 var(--f-display); letter-spacing:-.025em; }
.shell-book .brand small { margin-top:5px; font-size:12.5px; }
.shell-book .nav { order:3; flex:0 0 100%; height:40px; margin-top:12px; padding:0; gap:3px; background:none; border:0; border-radius:0; border-bottom:1px solid var(--line); }
.shell-book .nav a { height:39px; padding:0 15px; border-radius:11px 11px 0 0; border:1px solid transparent; border-bottom:0; }
.shell-book .nav a .ic { display:none; }
.shell-book .nav a[aria-current=page] { background:var(--cell)!important; border-color:var(--line); color:var(--strong); }
.shell-book .main { padding:16px 26px 26px; }

.main.page { min-height:calc(100dvh - var(--top)); }
.staged .main.page { position:relative; }

/* the tour */
.tour-veil { position:fixed; inset:0; z-index:70; cursor:default; }
.tour-cursor { position:fixed; left:0; top:0; z-index:75; width:22px; height:26px; pointer-events:none; will-change:transform; filter:drop-shadow(0 2px 3px rgba(0,0,0,.45)); transition:scale .09s; }
.tour-cursor.down { scale:.86; }
.tour-ripple { position:fixed; z-index:74; width:34px; height:34px; margin:-17px 0 0 -17px; border-radius:50%; background:rgba(80,151,255,.3); pointer-events:none; animation:ripple .5s var(--ease) forwards; }
@keyframes ripple { from { transform:scale(.3); opacity:.9; } to { transform:scale(1.4); opacity:0; } }
.tour-spot { position:fixed; z-index:72; border-radius:12px; box-shadow:none; /* the cursor and the caption point; no ring is drawn round what they point at (owner, 02/11) */ pointer-events:none; transition:all .34s var(--ease); }
.tour-cap { position:fixed; z-index:76; max-width:min(420px,calc(100vw - 24px)); pointer-events:none; transition:left .34s var(--ease),top .34s var(--ease); }
.tour-cap p { font-size:15.5px; line-height:1.42; color:var(--ink); }
.tour-cap small { display:block; color:var(--ink-3); font-size:12px; margin-bottom:5px; }
.tour-card { padding:14px 16px; border-radius:16px; background:var(--sheet); border:1px solid var(--glass-line); box-shadow:0 18px 44px rgba(0,0,0,.35); }
.tour-strip { left:0!important; right:0; top:auto!important; bottom:0; max-width:none; padding:20px clamp(18px,8vw,120px) 72px; background:linear-gradient(transparent,rgba(5,8,14,.86) 38%); }
.tour-strip p { color:#fff; font-size:19px; max-width:64ch; } .tour-strip small { color:rgba(255,255,255,.66); }
.tour-sub { left:50%!important; top:auto!important; bottom:78px; transform:translateX(-50%); width:min(760px,calc(100vw - 24px)); max-width:none; text-align:center; }
.tour-sub p { display:inline; padding:5px 10px; font-size:18px; line-height:1.75; color:#fff; background:rgba(8,10,15,.78); border-radius:7px; -webkit-box-decoration-break:clone; box-decoration-break:clone; }
.tour-sub small { display:none; }
.tour-bar { position:fixed; z-index:77; left:50%; bottom:14px; transform:translateX(-50%); display:flex; align-items:center; gap:8px; padding:6px 8px 6px 14px; border-radius:22px; background:var(--sheet); border:1px solid var(--glass-line); max-width:calc(100vw - 16px); }
.tour-bar .track { width:min(180px,26vw); height:4px; border-radius:2px; background:rgba(var(--w),.14); overflow:hidden; }
.tour-bar .track b { display:block; height:100%; background:var(--blue); transition:width .3s var(--ease); }
.tour-bar span { color:var(--ink-2); font-size:12.5px; white-space:nowrap; }
.tour-end { z-index:78; }

@media (max-width:1080px) {
  .shell-rail,.shell-drawer { padding:0; }
  .shell-rail .top,.shell-drawer .top,.shell-hud .top,.shell-dock .top,.shell-corner .top,.shell-ribbon .top,.shell-book .top { position:sticky; left:auto; right:auto; top:0; bottom:auto; width:auto; height:60px; flex-direction:row; align-items:center; padding:0 12px; gap:10px; border-radius:0; border:0; background:var(--bg); backdrop-filter:none; -webkit-backdrop-filter:none; flex-wrap:nowrap; }
  .shell-rail .brand .wd { display:block; } .brand small { display:none!important; }
  .shell-book .brand b,.shell-corner .brand b { font:600 19px var(--f-display); }
  .shell-rail .nav,.shell-drawer .nav,.shell-hud .nav,.shell-dock .nav,.shell-corner .nav,.shell-ribbon .nav,.shell-book .nav { position:fixed; z-index:30; left:10px; right:10px; bottom:10px; top:auto; transform:none; width:auto; height:48px; flex-direction:row; flex:none; margin:0; padding:3px; border-radius:24px; border:1px solid var(--glass-line); background:var(--sheet); overflow-x:auto; gap:2px; order:0; }
  .shell-rail .nav a,.shell-dock .nav a,.shell-drawer .nav a,.shell-corner .nav a,.shell-ribbon .nav a,.shell-book .nav a { width:auto; min-width:0; height:40px; padding:0 13px; flex-direction:row; border:0; border-radius:20px; box-shadow:none; font-size:13px; }
  .nav a .ic { display:none; } .shell-rail .nav a .lb { position:static; opacity:1; transform:none; padding:0; background:none; border:0; }
  .nav a[aria-current=page] { background:rgba(var(--w),.1)!important; }
  .shell-rail .actions,.shell-drawer .actions { flex-direction:row; margin-left:auto; flex-wrap:nowrap; }
  .main,.shell-hud .main,.shell-dock .main,.shell-corner .main,.shell-ribbon .main,.shell-book .main { padding:6px 12px 72px; }
  #backdrop { bottom:auto; height:46dvh; }
  .staged .app { min-height:0; }
  .hud,.shell-rail .hud,.shell-dock .hud,.shell-corner .hud,.shell-ribbon .hud,.shell-drawer .hud { position:relative; inset:auto; display:flex; flex-direction:column; padding:calc(46dvh - 50px) 12px 76px; gap:10px; pointer-events:none; }
  .hud-l,.hud-r,.hud-b,.hud-t { overflow:visible; }
  .staged.over #backdrop { display:none; }
  .tour-sub { bottom:66px; } .tour-sub p { font-size:15px; }
  .tour-strip p { font-size:16px; }
}

button.pill { border:0; cursor:pointer; font:inherit; font-size:11.5px; }
button.pill:hover { background:rgba(var(--w),.16); }
