/* mirofish-next — "data cinema" HUD skin (active with body.hud, i.e. dark theme).
   Near-black canvas, hairline panels, SECTION / TITLE mono micro-labels, mode palette via --mode. */
:root{--mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;--mode:#FF5FA2;--mode-hi:#FF2E88;--mode-2:#FFB6DE;--hud-top:56px;--instr:252px}
.mk{font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);direction:ltr;unicode-bidi:isolate;white-space:nowrap}
#hud-top,#hud-instr,#hud-log,#hud-lead,#hud-boxes,#lens,#burst{display:none}

body.hud{
  --bg:#050607;--glass:rgba(7,8,10,.86);--glass-2:rgba(9,10,13,.94);--solid:rgba(255,255,255,.025);--solid-2:#090A0D;
  --hair:rgba(255,255,255,.10);--hair-2:rgba(255,255,255,.06);
  --ink:#ECEEF2;--ink-2:#B4BAC4;--ink-3:#868D98;
  --fill:rgba(255,255,255,.045);--fill-2:rgba(255,255,255,.09);
  --accent:var(--mode);--accent-ink:var(--mode-2);--accent-tint:rgba(255,255,255,.07);--on-accent:#050607;
  --shadow:none;--shadow-lg:0 30px 80px rgba(0,0,0,.6);
  --r-xl:10px;--r-lg:8px;--r-md:6px;--r-sm:5px;
  background:#050607;
}
body.hud .num{font-family:var(--mono);font-feature-settings:"tnum" 1,"zero" 1;letter-spacing:-.01em;word-spacing:-.3em} /* mono NBSP group separator is a full 0.6em cell: halve it */
body.hud .glass{-webkit-backdrop-filter:blur(14px) saturate(120%);backdrop-filter:blur(14px) saturate(120%);box-shadow:none}
body.hud .maplibregl-ctrl-attrib{background:rgba(5,6,8,.86)!important;color:#C9CED6}
/* 25 Nov 2026: attribution text and the compact «i» button were MapLibre's default black on near-black (≈1.3:1) */
body.hud .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-inner,body.hud .maplibregl-ctrl-attrib a{color:#C9CED6!important}
body.hud .maplibregl-ctrl-attrib-button{filter:invert(1) brightness(.85)}
body.hud .maplibregl-ctrl-attrib.maplibregl-compact{color:#C9CED6}

/* ── header KPIs ── */
body.hud #hud-top{display:flex;position:fixed;z-index:25;top:0;inset-inline:0;height:var(--hud-top);align-items:stretch;background:rgba(5,6,8,.9);border-bottom:1px solid var(--hair);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.ht-brand{display:flex;align-items:center;gap:10px;padding:0 16px;border-inline-end:1px solid var(--hair);flex-shrink:0}
.ht-brand .mk{color:var(--mode-2)}
.ht-brand h1{font-size:16px;font-weight:700}
.ht-brand .badge{font-size:10.5px;font-weight:600;color:#fff;background:#C8102E;padding:1px 7px;border-radius:3px}
.ht-sub{font-size:12px;color:var(--ink-3)}
.ht-kpis{display:flex;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}
.kpi{display:flex;flex-direction:column;justify-content:center;gap:1px;padding:0 16px;border-inline-end:1px solid var(--hair-2);min-width:118px;position:relative}
.kpi-k{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--ink-3);white-space:nowrap}
.kpi-k .pill{font-size:9.5px;padding:0 5px}
.kpi-v{font-size:21px;font-weight:600;color:var(--ink);line-height:1.15}
.kpi-s{font-size:10.5px;color:var(--ink-3)}
.kpi-link{position:absolute;inset-inline-end:10px;bottom:4px;font-size:11px;color:var(--mode-2);min-height:24px;text-decoration:underline;text-underline-offset:3px}
#k-al{color:#FF5A6E}
#k-clock{color:var(--mode-2)}
.ht-mode{display:flex;flex-direction:column;justify-content:center;padding:0 16px;border-inline-start:1px solid var(--hair);min-width:150px}
.ht-mode b{font-size:13px;color:var(--mode-2)}

/* ── layout offsets under the header ── */
body.hud #rail{top:calc(var(--hud-top) + 10px);bottom:10px;--rail:388px;width:388px;inset-inline-start:10px}
body.hud #brand{display:none}
body.hud #controls{top:calc(var(--hud-top) + 10px);inset-inline-end:calc(var(--instr) + 20px)}
body.hud #topcenter{top:calc(var(--hud-top) + 10px);inset-inline-start:calc(388px + 20px);inset-inline-end:calc(var(--instr) + 84px)}
body.hud #map::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:2;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:64px 64px;mask-image:radial-gradient(ellipse at 50% 45%,#000 40%,transparent 85%)}
body.hud #dock{display:none}
body.hud #legend{inset-inline-end:calc(var(--instr) + 84px);bottom:192px}
body.hud #briefing{top:calc(var(--hud-top) + 70px)}
/* centre the briefing in the free map area between the instrument rail/controls and the side rail */
@media (min-width:1001px){body.hud:not(.embed) #briefing{left:calc((var(--instr) + 84px + 100vw - 408px) / 2);width:min(520px,calc(100vw - var(--instr) - 516px))}}
body.hud .pop{top:calc(var(--hud-top) + 10px);inset-inline-end:calc(var(--instr) + 80px);max-height:calc(100vh - var(--hud-top) - 20px)}

/* ── instrument rail ── */
body.hud #hud-instr{display:block;position:fixed;z-index:15;top:calc(var(--hud-top) + 10px);bottom:10px;inset-inline-end:10px;width:var(--instr);overflow-y:auto;scrollbar-width:none;background:rgba(6,7,9,.95);border:1px solid var(--hair);border-radius:8px;padding:0 0 8px}
.in-h{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;border-bottom:1px solid var(--hair);font-size:12px;color:var(--ink-2);position:sticky;top:0;background:rgba(6,7,9,.96);z-index:1}
.in-h .mk{color:var(--mode-2)}
.ins{padding:9px 10px 8px;border-bottom:1px solid var(--hair-2)}
.ins-h{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11.5px;color:var(--ink-2);margin-bottom:6px}
.ins-h .pill{font-size:9.5px;padding:0 5px}
.hist{width:100%;height:64px;display:block}
.hist .ax{stroke:var(--hair)}
.hist rect:hover{opacity:.75}
.ins-ax{display:flex;justify-content:space-between;font-size:10px;color:var(--ink-3);margin-top:2px;font-family:var(--mono)}
.mtx{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.cell{aspect-ratio:1;border-radius:2px;min-height:26px;border:1px solid rgba(255,255,255,.05);transition:transform .15s}
.cell:hover,.cell:focus-visible{transform:scale(1.12);outline:1px solid #fff;outline-offset:0}
.spk{display:grid;grid-template-columns:70px 1fr 26px;align-items:center;gap:6px;width:100%;min-height:28px;font-size:11.5px;text-align:start;border-radius:4px}
.spk:hover{background:var(--fill)}
.spk-n{color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spk svg{width:100%;height:20px}
.spk .cur{stroke:#fff;stroke-width:.8;opacity:.6}
.spk-v{font-size:11px;color:#FF7A8A;text-align:end}
.gauges{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.gauge{display:flex;flex-direction:column;align-items:center;font-size:10.5px;color:var(--ink-3)}
.gauge svg{width:100%;height:auto}
.gauge .g-bg{fill:none;stroke:rgba(255,255,255,.1);stroke-width:4;stroke-linecap:round}
.gauge .g-v{fill:none;stroke-width:4;stroke-linecap:round;filter:drop-shadow(0 0 3px var(--mode))}
.gauge b{font-size:13px;color:var(--ink);font-weight:600;margin-top:-4px}
.stack{display:flex;height:10px;gap:2px;border-radius:2px;overflow:hidden}
.stack span{background:var(--mode)}
.stack-l{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:6px;font-size:11px;color:var(--ink-3)}
.stack-l b{color:var(--ink-2)}
.big2{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-bottom:0}
.big2>div{display:flex;flex-direction:column;gap:0}
.big2 b{font-size:30px;font-weight:500;line-height:1.1;color:var(--ink)}
.big2 span:last-child{font-size:11px;color:var(--ink-3)}

/* ── terminal log ── */
body.hud #hud-log{display:flex;flex-direction:column;position:fixed;z-index:15;bottom:10px;height:172px;inset-inline-start:calc(388px + 20px);inset-inline-end:calc(var(--instr) + 20px);background:rgba(5,6,8,.95);border:1px solid var(--hair);border-radius:8px;overflow:hidden}
.hl-h{display:flex;align-items:center;gap:10px;padding:0 10px;min-height:52px;border-bottom:1px solid var(--hair);font-size:12px;color:var(--ink-2);flex-shrink:0}
.hl-h .mk{color:var(--mode-2)}
.hl-slot{flex:1;display:flex;justify-content:flex-end;min-width:0}
.hl-b{flex:1;overflow-y:auto;padding:4px 0;font-size:12px;scrollbar-width:thin}
.ll{display:flex;gap:8px;align-items:baseline;width:100%;text-align:start;padding:3px 10px;line-height:1.55;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;animation:llIn .3s ease-out}
button.ll{min-height:24px}
button.ll:hover{background:var(--fill)}
.ll b{color:var(--ink);font-weight:600}
.ll .t{color:var(--ink-3);font-size:11px;flex-shrink:0}
.ll .k{font-family:var(--mono);font-size:10px;letter-spacing:.06em;padding:0 5px;border:1px solid var(--hair);border-radius:2px;color:var(--ink-2);flex-shrink:0;direction:ltr}
.ll .k-al{color:#FF7A8A;border-color:rgba(255,90,110,.45)}
.ll .k-ev{color:var(--mode-2);border-color:var(--mode)}
@keyframes llIn{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none}}
.hl-f{flex-shrink:0;border-top:1px solid var(--hair)}
body.hud .hl-f #stats{border-radius:0;border:0;padding:5px 10px;justify-content:flex-start;gap:16px;font-size:11.5px;background:transparent}
body.hud .hl-slot .timeline{width:min(460px,100%);padding:3px 6px;border-radius:6px;background:transparent;border:0;-webkit-backdrop-filter:none;backdrop-filter:none}
body.hud .timeline .play{width:40px;height:40px;border-radius:6px;background:#1739A8;color:#fff}
body.hud .timeline .tl-time{font-family:var(--mono);font-size:15px}
body.hud .range{accent-color:var(--mode)}

/* ── rail / panel skin ── */
body.hud #panel,body.hud #search{background:rgba(6,7,9,.88)}
body.hud #search .field{border-radius:6px;background:rgba(255,255,255,.05);border:1px solid var(--hair-2)}
body.hud #q{font-size:15px}
body.hud .sec,body.hud .disc{background:transparent;border:1px solid var(--hair-2);border-radius:6px}
body.hud .sec-h{font-size:13.5px;font-weight:600;letter-spacing:0;border-bottom:1px solid var(--hair-2);padding-bottom:7px}
body.hud .sec-h .ic{color:var(--mode)}
body.hud .tile{background:transparent;border:1px solid var(--hair-2);border-radius:4px;text-align:start;padding:8px 10px}
body.hud .tile .tv{font-family:var(--mono);font-weight:500;--fs:19px}
body.hud .tile .tl{font-size:11px}
body.hud .tile.t-red{border-color:rgba(255,90,110,.45);background:rgba(255,46,90,.06)}
body.hud .tile.t-amber{border-color:rgba(255,170,80,.4);background:rgba(255,160,60,.05)}
body.hud .tile.t-green{border-color:rgba(80,230,140,.35);background:rgba(60,220,130,.04)}
body.hud .tile.t-blue{border-color:rgba(100,170,255,.4);background:rgba(90,160,255,.05)}
body.hud .exec{background:transparent;border-inline-start:2px solid var(--mode);border-radius:0;font-size:14px}
body.hud .btn{border-radius:5px;background:rgba(255,255,255,.05);border:1px solid var(--hair)}
body.hud .btn.primary{background:#1739A8;color:#fff;border:0}
body.hud .pill{border-radius:3px}
body.hud .ph-t{font-size:24px}
body.hud .ph-k{color:var(--mode-2)}
body.hud .li{border-radius:4px}
body.hud .li-bar{height:3px}
body.hud .quick .qk{border-radius:5px;background:transparent;border:1px solid var(--hair-2)}
body.hud .qk .ic{color:var(--mode)}
body.hud .narr{background:transparent;border:1px solid var(--hair-2)}
body.hud .mbox{background:#07080A;border:1px solid var(--hair);border-radius:12px}
body.hud #modal-stats{background:transparent;border-color:var(--hair)}
body.hud .seg{border-radius:6px}
body.hud .seg button{border-radius:4px}
body.hud .seg button[aria-pressed="true"]{background:#1739A8;color:#fff;box-shadow:none}
body.hud .cbtn{border-radius:6px}
body.hud .cbtn[aria-pressed="true"]{background:#1739A8;color:#fff}
body.hud .cgroup{border-radius:8px}
body.hud #legend{border-radius:6px;background:rgba(6,7,9,.88)}
body.hud #legend .sw{box-shadow:0 0 8px currentColor;border-radius:2px}
body.hud #alert-pill{border-radius:6px;background:rgba(40,6,14,.82);border-color:rgba(255,80,100,.4)}
body.hud #alert-pill .txt b{color:#FF7A8A}
body.hud .charts .cc{background:transparent;border:1px solid var(--hair-2)}
body.hud .chart .dot{stroke:#050607}
body.hud #tip{border-radius:4px}
body.hud .al{background:rgba(255,46,90,.07)}
body.hud .al-warn{background:rgba(255,160,60,.06)}
body.hud .al-score{background:transparent;border:1px solid var(--hair)}
body.hud .now{background:rgba(255,255,255,.03);border-color:#A5B7EF}
body.hud .now-k{color:var(--mode-2)}
body.hud .live-dot{background:var(--mode)}
body.hud .deep{background:transparent;border:1px solid var(--mode);color:var(--ink)}
body.hud .deep .ic{color:var(--mode)}
body.hud .cmdk,body.hud .help{border-radius:10px;background:#08090C;border:1px solid var(--hair)}
body.hud #briefing{border-radius:10px;background:rgba(6,7,9,.95);border:1px solid var(--hair)}
body.hud .br-i{background:transparent;border:1px solid var(--hair-2);border-radius:4px}
body.hud .br-v{font-family:var(--mono);font-weight:500}
body.hud .br-bar span{background:var(--mode)}
body.hud .home-title{font-family:var(--font)}

/* ── leader lines ── */
body.hud #hud-lead{display:block;position:fixed;inset:0;width:100vw;height:100vh;z-index:12;pointer-events:none;overflow:visible}
.ld{fill:none;stroke:rgba(255,255,255,.55);stroke-width:1}
.ld.sel{stroke:#A5B7EF}
.ld.call{stroke:rgba(255,255,255,.35)}
.ldp{fill:none;stroke:#fff;stroke-width:1}
.ldp.sel{stroke:#A5B7EF}
body.hud #hud-boxes{display:block;position:fixed;inset:0;z-index:13;pointer-events:none}
.lb{position:absolute;display:flex;flex-direction:column;gap:0;padding:5px 9px;background:rgba(4,5,6,.9);border:1px solid rgba(255,255,255,.35);border-radius:2px;font-size:12.5px;line-height:1.35;max-width:260px;white-space:nowrap}
.lb b{font-size:13.5px}
.lb .num{font-size:12px;color:var(--mode-2)}
.lb.sel{border-color:#A5B7EF;box-shadow:0 0 0 1px rgba(0,0,0,.6),0 0 18px -4px #A5B7EF}
.lb.hov .tt{font-weight:700}.lb.hov .tv{font-family:var(--mono);color:var(--mode-2);font-size:16px}.lb.hov .ts{color:var(--ink-2);font-size:11.5px}
.lb .mk{font-size:9.5px}

/* ── lens (inverting magnifier) ── */
body.hud.lens-on #lens{display:block;position:fixed;z-index:14;left:0;top:0;width:190px;height:190px;border-radius:50%;pointer-events:none;border:1.5px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.7),0 0 40px rgba(255,255,255,.15);-webkit-backdrop-filter:invert(1) grayscale(1) contrast(1.35);backdrop-filter:invert(1) grayscale(1) contrast(1.35)}
.lens-x{position:absolute;inset:0}
.lens-x::before,.lens-x::after{content:"";position:absolute;background:rgba(0,0,0,.55)}
.lens-x::before{left:50%;top:30%;bottom:30%;width:1px}
.lens-x::after{top:50%;left:30%;right:30%;height:1px}
.lens-r{display:flex;flex-direction:column;align-items:center;gap:1px;position:absolute;top:100%;left:50%;transform:translate(-50%,8px);background:#000;border:1px solid #fff;padding:3px 8px;font-size:12px;white-space:nowrap;color:#fff;border-radius:2px}
.lens-r .num{color:var(--mode-2)}

/* ── starburst transition ── */
body.hud #burst{display:block;position:fixed;z-index:70;left:50%;top:50%;width:260px;height:260px;margin:-130px 0 0 -130px;pointer-events:none;opacity:0}
#burst svg{width:100%;height:100%;overflow:visible}
#burst svg{color:var(--accent,#3FE0D0)}#burst .ray{stroke:currentColor;stroke-width:2.2;stroke-linecap:round;filter:drop-shadow(0 0 6px currentColor)}#burst .o{fill:rgba(255,255,255,.08);stroke:#fff;stroke-width:3;stroke-linejoin:miter;filter:drop-shadow(0 0 10px currentColor)}#burst .i{fill:none;stroke:currentColor;stroke-width:2;filter:drop-shadow(0 0 6px currentColor)}#burst .c{fill:#fff;filter:drop-shadow(0 0 12px #fff)}
#burst.go{animation:burst .55s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes burst{0%{opacity:0;transform:scale(.15) rotate(-22.5deg)}20%{opacity:1}65%{opacity:1}100%{opacity:0;transform:scale(1.2) rotate(22.5deg)}}

/* ── phone: HUD panels collapse into swipeable sheet pages ── */
#sheet-tabs{display:none}
@media (max-width:767px){
  body.hud{--hud-top:52px}
  body.hud .ht-brand{padding:0 10px;gap:6px}
  body.hud .ht-brand h1{font-size:14px}
  body.hud .ht-brand .badge,body.hud .ht-sub,body.hud .ht-brand .mk,body.hud .ht-mode{display:none}
  body.hud .kpi{min-width:0;flex:1 1 auto;padding:0 8px}
  body.hud .kpi-v{font-size:15px}
  body.hud .kpi-k{font-size:10.5px}
  body.hud .kpi-link{display:none}
  body.hud .kpi .pill,body.hud .kpi-k .mk{display:none}
  body.hud .kpi:nth-child(3),body.hud .kpi:nth-child(4){display:none}
  body.hud .cg-more,body.hud [data-act="reset-north"]{display:none}
  body.hud .cbtn{width:42px;height:42px}
  body.hud #legend{max-width:calc(100vw - 80px)}
  body.hud #legend .lg-sub{display:none}
  body.hud #rail{top:auto;inset-inline:0;width:auto;bottom:0}
  body.hud #controls{top:calc(var(--hud-top) + 8px);inset-inline-end:var(--gut)}
  /* sheet raised: drop the zoom group (pinch-zoom exists) so the tool buttons stay above the sheet */
  body.sheet-high #controls>.cgroup:first-child,body.sheet-high #controls>.cg-more{display:none}  /* share/theme stay reachable in the layers popover */
  #controls{max-height:calc(100dvh - var(--sheet-h,168px) - var(--hud-top,0px) - 24px);overflow-y:auto;scrollbar-width:none}
  body.hud #topcenter{top:calc(var(--hud-top) + 8px);inset-inline-start:var(--gut);inset-inline-end:calc(58px + var(--gut)*2)}
  body.hud #legend{inset-inline-end:var(--gut);bottom:calc(var(--sheet-h,168px) + 10px)}
  body.hud #sheet-tabs{display:flex;margin:0 12px 6px;flex-shrink:0}
  body.hud #sheet-tabs button{min-height:36px;font-size:12.5px}
  body.hud #hud-instr,body.hud #hud-log{position:static;width:auto;height:auto;border:0;border-radius:0;background:transparent;inset:auto}
  body.hud #rail .pages{display:flex;flex:1;min-height:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none}
  body.hud #rail .pages>*{flex:0 0 100%;scroll-snap-align:start;min-height:0;overflow-y:auto}
  body.hud #hud-log .hl-b{max-height:none}
  body.hud .pop{top:auto;inset-inline:var(--gut);bottom:var(--gut);width:auto;max-height:78vh}
  body.hud #hud-log .ll{white-space:normal;flex-wrap:wrap;row-gap:0}
}
@media (min-width:768px){#rail .pages{display:contents}}
/* ── tablet / small laptop (768–1180): instrument rail collapses to a 60px strip
      (heat-matrix + two big numerals); the expand button opens it as a full-width drawer over the map ── */
.in-x{display:none}
@media (min-width:768px) and (max-width:1180px){
  body.hud{--instr:60px}
  body.hud #hud-log{inset-inline-end:calc(var(--instr) + 84px)}
  body.hud .ht-mode,body.hud .ht-sub,body.hud .ht-brand .mk,body.hud .ht-brand .badge{display:none}
  body.hud .kpi{min-width:0;padding:0 12px}
  body.hud .kpi-v{font-size:18px}
  body.hud #hud-instr{transition:width .3s var(--spring,ease)}
  .in-x{display:grid;place-items:center;width:36px;height:36px;border-radius:6px;color:var(--mode-2);flex-shrink:0}
  .in-x:hover{background:var(--fill)}
  .in-x .ic{width:18px;height:18px;transition:transform .3s}
  body.hud:not(.instr-open) #hud-instr .in-h{justify-content:center;padding:6px 0}
  body.hud:not(.instr-open) #hud-instr .in-h>span,
  body.hud:not(.instr-open) #hud-instr .ins:not(.ins-mtx):not(.big2){display:none}
  body.hud:not(.instr-open) #hud-instr .ins{padding:8px 6px}
  body.hud:not(.instr-open) #hud-instr .ins-h{justify-content:center}
  body.hud:not(.instr-open) #hud-instr .ins-h>span:not(.mk){display:none}
  body.hud:not(.instr-open) #hud-instr .ins-h .mk{font-size:8.5px;letter-spacing:.02em}
  body.hud:not(.instr-open) #hud-instr .mtx{grid-template-columns:repeat(2,1fr);gap:2px}
  body.hud:not(.instr-open) #hud-instr .cell{aspect-ratio:auto;min-height:15px}
  body.hud:not(.instr-open) #hud-instr .big2{grid-template-columns:1fr;gap:10px;text-align:center}
  body.hud:not(.instr-open) #hud-instr .big2 b{font-size:17px}
  body.hud:not(.instr-open) #hud-instr .big2 .mk{font-size:8.5px}
  body.hud:not(.instr-open) #hud-instr .big2 span:last-child{display:none}
  body.hud.instr-open #hud-instr{width:252px;z-index:27;box-shadow:0 20px 60px rgba(0,0,0,.7)}
  body.hud.instr-open .in-x .ic{transform:scaleX(-1)}
}
@media (min-width:768px) and (max-width:1000px){
  body.hud #rail{width:340px}
  body.hud #topcenter,body.hud #hud-log{inset-inline-start:calc(340px + 20px)}
  body.hud #legend{max-width:250px;min-width:0}
  body.hud .hl-h>span:not(.hl-slot){display:none}
  body.hud .hl-h{padding:0 4px}
  body.hud #rail .tbl{font-size:12px}
  body.hud #rail .tbl th{font-size:10.5px}
  body.hud #rail .tbl td,body.hud #rail .tbl th{padding-inline:3px}
}
@media (prefers-reduced-motion:reduce){#burst{display:none!important}.ll{animation:none}}

/* embed: chrome-light even in HUD */
body.embed #hud-top,body.embed #hud-instr,body.embed #hud-log,body.embed #hud-boxes,body.embed #hud-lead{display:none!important}
body.embed.hud #controls{top:12px;inset-inline-end:12px}
body.embed.hud #legend{bottom:12px;inset-inline-end:auto;inset-inline-start:12px}
body.embed #embed-open{z-index:30}
