/* hud.css | /world HUD, panels, bottom sheet, lower thirds, scrubber, legend, 2D map frame. Owner: pixel-world.
   Every value reads a token (tokens.css, base.css). Panels are solid slabs: no blur, no backdrop-filter, no filter over the canvas (swift rule 4).
   Text-bearing surfaces are 100% opaque, the top bar 92% (Aegis B2). No fixed heights on text bands (Aegis MUST 15). */

/* ---------- page frame ---------- */
html, body.world { height: 100%; overflow: hidden; overscroll-behavior: none; }
body.world { --rail-w: var(--hud-rail); --panel-w: 0px; --bottom: var(--hud-ticker); font-size: var(--t-body); }
.world .skip { z-index: var(--z-skip); }
.stage { position: fixed; inset: 0; z-index: var(--z-canvas); background: var(--bg); }
.map2d, .gl, .gl canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map2d { touch-action: none; }
.gl { opacity: 0; transition: opacity 300ms linear; }
.is-3d .gl { opacity: 1; }
.is-3d .map2d { visibility: hidden; }
.gl canvas { touch-action: none; outline: none; }
.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: var(--z-pins); }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.tier-medium .grain { opacity: .03; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- shared HUD primitives ---------- */
.slab { background: var(--sf); box-shadow: var(--el-hud), inset 0 0 0 1px var(--ln2); --step: 3px; clip-path: var(--cut); }
.btn-hud {
  --step: 2px; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-block-size: 28px; padding: var(--s-2) var(--s-3);
  font: 500 var(--t-small)/var(--lh-ui) var(--sans); color: var(--fg); background: var(--sf2); border: 1px solid var(--c-control);
  clip-path: var(--cut); transition: background-color var(--d-fast) linear, color var(--d-fast) linear; white-space: nowrap;
}
.btn-hud.sq { inline-size: 28px; padding: 0; font-family: var(--mono); }
@media (hover: hover) { .btn-hud:hover { background: var(--sf3); } }
.btn-hud:active { background: var(--sf3); }
.btn-hud[aria-disabled="true"], .btn-hud:disabled { color: var(--mu); border-color: var(--mu2); cursor: not-allowed; }
.lnk.sm { font-size: var(--t-small); min-block-size: var(--hit-small); }
.tgl {
  display: inline-flex; align-items: center; gap: var(--s-3); min-block-size: 28px; padding: var(--s-1) var(--s-4) var(--s-1) var(--s-3);
  border: 1px solid var(--c-control); border-radius: var(--r-pill); background: var(--sf); color: var(--mu); font: 500 var(--t-small)/1.2 var(--sans);
  transition: background-color var(--d-fast) linear, border-color var(--d-fast) linear, color var(--d-fast) linear; text-align: left;
}
.tgl-sq { inline-size: 8px; block-size: 8px; flex: none; box-shadow: inset 0 0 0 1px currentColor; background: transparent; }
.tgl[aria-pressed="true"] { background: var(--sf3); color: var(--fg); border-color: var(--ac); }
.tgl[aria-pressed="true"] .tgl-sq { background: var(--sq, var(--ac)); box-shadow: none; }
@media (hover: hover) { .tgl:hover { border-color: var(--fgl); } }
.tgl:focus-visible { border-radius: var(--r-pill); }
.tgl-sm { min-block-size: 28px; }
.tip { position: absolute; z-index: var(--z-popover); max-inline-size: 280px; padding: var(--s-3) var(--s-4); background: var(--sf2); color: var(--fg); font: 400 var(--t-small)/1.45 var(--sans); box-shadow: var(--el-float), inset 0 0 0 1px var(--ln2); opacity: 0; pointer-events: none; transition: opacity var(--d-fast) linear; visibility: hidden; }
li:has(> .tgl:hover) > .tip, li:has(> .tgl:focus-visible) > .tip { opacity: 1; visibility: visible; transition-delay: 300ms; }
li:has(> .tgl:focus-visible) > .tip { transition-delay: 0ms; }
.pop { position: absolute; z-index: var(--z-popover); max-inline-size: 300px; padding: var(--s-4) var(--s-5); background: var(--sf2); color: var(--fg); font: 400 var(--t-small)/1.5 var(--sans); box-shadow: var(--el-float), inset 0 0 0 1px var(--ln2); }
.pop .lnk { margin-top: var(--s-3); font-size: var(--t-small); min-block-size: var(--hit-small); }
.seg { display: flex; gap: 0; }
.seg-b { --step: 2px; flex: 1; min-block-size: 28px; padding: var(--s-2) var(--s-3); font: 500 var(--t-small)/1.2 var(--sans); color: var(--mu); background: var(--sf); border: 1px solid var(--c-control); margin-inline-start: -1px; }
.seg-b:first-child { margin-inline-start: 0; }
.seg-b[aria-pressed="true"] { background: var(--sf3); color: var(--fg); border-color: var(--ac); position: relative; z-index: 1; }
.seg-b:focus-visible { position: relative; z-index: 2; }
kbd { display: inline-block; min-inline-size: 1.6em; padding: 1px 5px; font: 400 var(--t-chip)/1.4 var(--mono); color: var(--fg); background: var(--sf3); border: 1px solid var(--ln2); text-align: center; }
.small { font-size: var(--t-small); color: var(--mu); }
.hud-val { font-family: var(--mono); font-variant-numeric: tabular-nums slashed-zero; }

/* ---------- B1 top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-hud); min-block-size: var(--hud-top); display: flex; align-items: stretch; gap: var(--s-4);
  padding: 0 var(--hud-inset); background: rgba(14, 19, 36, .92); border-bottom: 1px solid var(--ln2);
}
.tb-brand { display: flex; align-items: center; gap: var(--s-3); white-space: nowrap; }
.tb-brand .wm { font-family: var(--head); font-weight: 800; font-size: 1.0625rem; letter-spacing: -.02em; }
.tb-world { font: 500 var(--t-ui)/1 var(--sans); color: var(--mu); }
.tb-stats { display: flex; align-items: stretch; margin-inline: var(--s-4) auto; }
.tb-stats li { display: flex; border-inline-start: 1px solid var(--ln); }
.stat { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--s-1); padding: var(--s-2) var(--s-4); text-align: left; min-inline-size: 7.5rem; }
.stat-l { font: 400 var(--t-chip)/1 var(--mono); color: var(--mu); letter-spacing: .01em; }
.stat-v { font: 500 var(--t-hud)/1.2 var(--mono); color: var(--fg); white-space: nowrap; }
@media (hover: hover) { .stat:hover .stat-v { color: var(--ac); } }
.tb-right { display: flex; align-items: center; gap: var(--s-4); }
.stat-clock { min-inline-size: 0; padding-inline: var(--s-2); }
.stat-clock time { font: 500 var(--t-hud)/1 var(--mono); color: var(--fgl); }
.badge {
  display: inline-flex; align-items: center; gap: var(--s-3); min-block-size: var(--hit-small); padding: var(--s-1) var(--s-3);
  background: var(--sf2); border: 1px solid var(--c-control); font: 400 var(--t-chip)/1.2 var(--mono); color: var(--fgl); white-space: nowrap;
}
.badge-dot { inline-size: 6px; block-size: 6px; background: var(--warn); flex: none; }
.tb-news { display: inline-flex; align-items: center; min-block-size: var(--hit-small); padding: 0 var(--s-2); font: 600 var(--t-ui)/1 var(--sans); color: var(--ac2); }
.tb-news:hover { color: var(--fg); }
.tb-filters { display: none; align-self: center; }
.tb-compact { display: none; }
.pop-badge { right: var(--hud-inset); top: calc(100% + 6px); }
#stat-pop { top: calc(100% + 6px); }
.roll { display: inline-block; }
.roll-d { display: inline-block; overflow: hidden; block-size: 1.2em; vertical-align: bottom; }
.roll-d > span { display: block; transition: transform var(--d-slow) var(--e-out); }

/* ---------- B4 left rail ---------- */
.rail {
  position: fixed; z-index: var(--z-hud); left: var(--hud-inset); top: calc(var(--hud-top) + var(--hud-gap)); bottom: calc(var(--bottom) + var(--hud-gap));
  inline-size: var(--rail-w); display: flex; flex-direction: column; background: var(--sf); box-shadow: var(--el-hud), inset 0 0 0 1px var(--ln2);
}
.rail-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5) var(--s-2); }
.rail-title { font: 600 var(--t-ui)/1.2 var(--sans); }
.rail-close { display: none; }
.rail-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-2) var(--s-5) var(--s-4); scroll-padding-bottom: 72px; scrollbar-width: thin; scrollbar-color: var(--ln2) transparent; }
.rail-sec { padding-block: var(--s-4); border-top: 1px solid var(--ln); position: relative; }
.rail-sec:first-child { border-top: 0; padding-top: var(--s-1); }
.sec-h { font: 600 var(--t-small)/1.2 var(--sans); color: var(--fgl); margin-bottom: var(--s-3); }
.toggles { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-2); margin-bottom: var(--s-3); position: relative; }
.toggles li { position: relative; }
.toggles .tip { left: 0; top: calc(100% + 4px); inline-size: 240px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.rail-foot { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--ln); }

/* search (B5) */
.search { position: relative; }
.search input {
  inline-size: 100%; min-block-size: 36px; padding: var(--s-3) 2.2rem var(--s-3) var(--s-4); border-radius: var(--r2); border: 1px solid var(--c-control);
  background: var(--bg); color: var(--fg); font: 400 var(--t-small)/1.2 var(--sans);
}
.search input::placeholder { color: var(--mu); opacity: 1; }
.search input:focus-visible { border-color: var(--ac); }
.search-kbd { position: absolute; right: var(--s-3); top: 9px; }
.search-list { position: absolute; z-index: var(--z-popover); left: 0; right: 0; top: calc(100% + 4px); padding: var(--s-2); border-radius: var(--r2); background: var(--sf2); box-shadow: var(--el-float), inset 0 0 0 1px var(--ln2); max-block-size: 320px; overflow-y: auto; }
.search-list li { display: flex; align-items: center; gap: var(--s-3); min-block-size: 32px; padding: var(--s-2) var(--s-3); font: 400 var(--t-small)/1.3 var(--sans); cursor: pointer; border-radius: 6px; }
.search-list li[aria-selected="true"] { background: var(--sf3); outline: 1px solid var(--ac); }
.search-list .face { inline-size: 24px; block-size: 21px; }
.search-empty { margin-top: var(--s-3); font-size: var(--t-small); color: var(--mu); }
.sw { inline-size: 8px; block-size: 8px; flex: none; background: var(--sw, var(--n-commons)); }

/* scrubber (B6) */
.scrub { position: relative; margin-block: var(--s-4) var(--s-2); }
.scrub-ticks { display: block; inline-size: 100%; block-size: 14px; }
.scrub-range { -webkit-appearance: none; appearance: none; display: block; inline-size: 100%; block-size: 24px; margin: 0; background: transparent; cursor: pointer; --p: 100%; }
.scrub-range::-webkit-slider-runnable-track { block-size: 4px; background: linear-gradient(90deg, var(--ac) var(--p), var(--mu2) var(--p)); }
.scrub-range::-moz-range-track { block-size: 4px; background: linear-gradient(90deg, var(--ac) var(--p), var(--mu2) var(--p)); }
.scrub-range::-webkit-slider-thumb { -webkit-appearance: none; inline-size: 14px; block-size: 14px; margin-top: -5px; background: var(--ac); border: 0; border-radius: 0; box-shadow: 0 0 0 1px var(--bg); }
.scrub-range::-moz-range-thumb { inline-size: 14px; block-size: 14px; background: var(--ac); border: 0; border-radius: 0; }
.scrub-range:active::-webkit-slider-thumb { background: var(--ac-h); }
.scrub-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); margin-block: var(--s-2); }
.scrub-time { font: 500 var(--t-mono)/1.2 var(--mono); color: var(--fg); }
.scrub-tag { font: 400 var(--t-chip)/1.2 var(--mono); color: var(--ac2); }
#speeds { margin-block: var(--s-2) var(--s-3); }

/* society list (Aegis MUST 6) */
.society { display: flex; flex-direction: column; gap: 1px; max-block-size: 260px; overflow-y: auto; padding: 4px; margin: -4px; }
.society button { display: flex; align-items: center; gap: var(--s-3); inline-size: 100%; min-block-size: 28px; padding: var(--s-1) var(--s-3); font: 400 var(--t-small)/1.3 var(--sans); color: var(--fgl); text-align: left; }
.society button[aria-current="true"] { background: var(--sf3); color: var(--fg); }
@media (hover: hover) { .society button:hover { background: var(--sf2); color: var(--fg); } }
.society .s-st { margin-inline-start: auto; font: 400 var(--t-chip)/1 var(--mono); color: var(--mu); }
.society .s-group { font: 400 var(--t-chip)/1 var(--mono); color: var(--mu); padding: var(--s-3) var(--s-3) var(--s-1); }

/* ---------- free canvas region: everything that must stay off the brain's centre ---------- */
.free {
  position: fixed; z-index: var(--z-hud); pointer-events: none; outline: none;
  top: calc(var(--hud-top) + var(--hud-gap)); bottom: calc(var(--bottom) + var(--hud-gap));
  left: calc(var(--hud-inset) + var(--rail-w) + var(--hud-gap)); right: calc(var(--hud-inset) + var(--panel-w));
}
.free > * { pointer-events: auto; }
.free > .loading { pointer-events: none; }
body.world.rail-collapsed { --rail-w: 0px; }
.rail-collapsed .rail { display: none; }

/* director pill (B8) */
.dir { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; justify-content: center; max-inline-size: 100%; }
.dir-pill { display: inline-flex; align-items: center; gap: var(--s-3); min-block-size: 32px; padding: var(--s-1) var(--s-5) var(--s-1) var(--s-4); border-radius: var(--r-pill); background: var(--sf); border: 1px solid var(--c-control); font: 600 var(--t-small)/1 var(--sans); color: var(--fg); }
.dir-dot { inline-size: 8px; block-size: 8px; box-shadow: inset 0 0 0 1px var(--mu); }
.dir-on .dir-dot { background: var(--ac); box-shadow: none; }
.dir-pill:focus-visible { border-radius: var(--r-pill); }
.dir-tag { display: inline-flex; gap: var(--s-3); align-items: baseline; padding: var(--s-2) var(--s-4); background: var(--sf); box-shadow: inset 0 0 0 1px var(--ln2); font: 400 var(--t-chip)/1.2 var(--mono); color: var(--mu); }
.dir-tag b { font-weight: 500; color: var(--ac); }
.dir-replay { color: var(--ac2); }

/* safety banner (B14) */
.banners { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); inline-size: min(var(--hud-banner-max), 100%); display: flex; flex-direction: column; gap: var(--s-3); }
.banner { --step: 3px; clip-path: var(--cut); background: var(--c-pause-sf); box-shadow: inset 0 0 0 1px var(--warn); padding: var(--s-4) var(--s-5); display: grid; grid-template-columns: 24px 1fr; gap: var(--s-1) var(--s-4); animation: bannerIn var(--d-panel) var(--e-out) both; }
.banner .face { inline-size: 24px; block-size: 21px; grid-row: span 3; }
.banner-t { font: 600 var(--t-ui)/1.3 var(--sans); color: var(--warn); }
.banner-b { font: 400 var(--t-small)/1.45 var(--sans); color: var(--fg); }
.banner-m { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-2); font: 400 var(--t-chip)/1.2 var(--mono); color: var(--warn); }
.banner-m .pill { padding: 3px var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--warn); color: var(--fg); font-family: var(--sans); }
.banner .btn-hud { background: transparent; }
.banner-ended { box-shadow: inset 0 0 0 1px var(--ln2); }
.banner-ended .banner-t { color: var(--fg); }
.banner-more { font: 400 var(--t-chip)/1 var(--mono); color: var(--warn); text-align: center; }
.banner-sum { display: none; }
@keyframes bannerIn { from { opacity: 0; transform: translateY(-12px); } }

/* freeze chip (B15) */
.freeze-chip { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); padding: var(--s-3) var(--s-5); background: var(--sf); box-shadow: inset 0 0 0 1px var(--ac); text-align: center; animation: chipIn var(--d-fast) var(--e-out) both; }
.freeze-chip p { font: 400 var(--t-mono)/1.4 var(--mono); color: var(--fg); }
.freeze-chip .freeze-help { font: 400 var(--t-small)/1.4 var(--sans); color: var(--mu); }
.is-frozen .banners { top: 112px; }
@keyframes chipIn { from { opacity: 0; transform: translate(-50%, 4px); } }

/* 2D note (B18) */
.note2d { position: absolute; top: 48px; left: 0; max-inline-size: min(380px, 100%); padding: var(--s-4) var(--s-5); background: var(--sf); box-shadow: inset 0 0 0 1px var(--ln2); font: 400 var(--t-small)/1.45 var(--sans); color: var(--fgl); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.try3d-m { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); }

/* hero + lower third (B13): ivory plates, bottom left of the free canvas */
.plate { background: var(--ac); color: var(--ac-fg); box-shadow: var(--el-plate); --step: 3px; }
.hero, .lt { position: absolute; left: 0; bottom: 0; max-inline-size: min(var(--hud-third-max), calc(100% - var(--hud-minimap) - 48px)); }
.hero { padding: var(--s-6) var(--s-7) var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.hero-h { font: 800 var(--t-h1)/var(--lh-display) var(--head); letter-spacing: var(--tr-display); }
.hero-sub { font: 400 var(--t-body)/1.5 var(--sans); max-inline-size: 52ch; }
.hero-act { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-2); }
.hero .btn.pri { background: var(--ac-fg); color: var(--ac); }
.hero .btn.pri:hover { background: #2E2712; }
.hero-hint { font: 400 var(--t-chip)/1.4 var(--mono); color: var(--c-text-plate-mu); }
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-touch { display: inline; } .hint-pointer { display: none; } }
.hero.is-collapsed { position: absolute !important; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lt { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); animation: ltIn var(--d-third) var(--e-out) both; }
.lt.is-out { animation: ltOut var(--d-third-out) var(--e-in) both; }
.lt-face { inline-size: 40px; block-size: 40px; display: grid; place-items: center; background: var(--ac2); }
.lt-face svg { inline-size: 32px; block-size: 28px; filter: none; }
.lt-face:empty { display: none; }
.lt-1 { font: 700 var(--t-h4)/1.25 var(--head); letter-spacing: -.01em; text-wrap: balance; }
.lt-2 { font: 400 var(--t-mono)/1.4 var(--mono); color: var(--c-text-plate-mu); margin-top: var(--s-1); overflow-wrap: anywhere; }
.lt-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-3); padding-inline-end: 6px; }
.lt-why { font: 400 var(--t-chip)/1.3 var(--mono); color: var(--c-text-plate-mu); text-align: right; max-inline-size: 14rem; }
.lt-act { display: flex; gap: var(--s-2); }
.btn-plate { display: inline-flex; align-items: center; min-block-size: var(--hit-small); padding: var(--s-1) var(--s-3); font: 600 var(--t-small)/1.2 var(--sans); color: var(--ac-fg); border: 1px solid var(--c-text-plate-mu); background: transparent; }
.btn-plate:hover { background: var(--ac2); }
.btn-plate:focus-visible { outline-color: var(--ac-fg); box-shadow: 0 0 0 2px var(--ac); }
.lt[data-variant="pause"] { box-shadow: var(--el-plate), inset 4px 0 0 var(--warn); padding-inline-start: calc(var(--s-5) + 4px); }
.lt[data-variant="refusal"] { box-shadow: var(--el-plate), inset 4px 0 0 var(--bad); padding-inline-start: calc(var(--s-5) + 4px); }
@keyframes ltIn { from { clip-path: inset(0 100% 0 0); opacity: 0; } to { clip-path: var(--cut); opacity: 1; } }
@keyframes ltOut { to { opacity: 0; transform: translateY(6px); } }

/* map controls + minimap (B7, B8) */
.mapctl { position: absolute; right: var(--hud-gap); bottom: 0; display: flex; align-items: flex-end; gap: var(--s-3); }
.zoom { display: flex; flex-direction: column; gap: var(--s-2); }
.minimap { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-2); }
.minimap-c { inline-size: var(--hud-minimap); block-size: var(--hud-minimap); border-radius: var(--r-disk); cursor: pointer; }
.mm-legend { font: 400 var(--t-chip)/1.2 var(--mono); color: var(--mu); background: var(--sf); padding: 2px var(--s-2); white-space: nowrap; }
.capital-m { display: none; }

/* loading (B19) */
.loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: var(--s-4); }
.loading p { font: 400 var(--t-mono)/1.4 var(--mono); color: var(--mu); background: var(--bg); padding: 2px 6px; }
.loading-dot { inline-size: 10px; block-size: 10px; border-radius: var(--r-disk); background: var(--ac); box-shadow: 0 0 18px 6px var(--glow2); animation: breathe 2s var(--e-in-out) infinite; }
.is-ready .loading { display: none; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .8; } }

/* 2D reduced-motion list of latest records (layouts 1.5) */
.list2d { position: absolute; left: 0; bottom: 0; inline-size: min(420px, 100%); max-block-size: 40%; overflow-y: auto; padding: var(--s-4) var(--s-5); background: var(--sf); box-shadow: inset 0 0 0 1px var(--ln2); }
.list2d-ev li { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); align-items: baseline; padding-block: var(--s-2); border-top: 1px solid var(--ln); font: 400 var(--t-mono)/1.45 var(--mono); color: var(--fgl); }
.list2d-ev li:first-child { border-top: 0; }

/* ---------- B9 right panel / B10 bottom sheet ---------- */
.panel {
  position: fixed; z-index: var(--z-panel); right: var(--hud-inset); top: calc(var(--hud-top) + var(--hud-gap)); bottom: calc(var(--bottom) + var(--hud-gap));
  inline-size: var(--hud-panel); display: flex; flex-direction: column; background: var(--sf); box-shadow: var(--el-float), inset 0 0 0 1px var(--ln2);
  animation: panelIn var(--d-panel) var(--e-out) both;
}
.panel.is-out { animation: panelOut var(--d-panel-out) var(--e-in) both; }
@keyframes panelIn { from { opacity: 0; transform: translateX(16px); } }
@keyframes panelOut { to { opacity: 0; transform: translateX(16px); } }
body.world.panel-open { --panel-w: calc(var(--hud-panel) + var(--hud-gap)); }
.sheet-grab, .sheet-expand { display: none; }
.panel-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-3); }
.panel-title { flex: 1; font: 700 var(--t-h3)/1.2 var(--head); letter-spacing: -.015em; outline-offset: 4px; }
.panel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--s-5) var(--s-5); scroll-padding-bottom: 96px; }
.panel-body > * + * { margin-top: var(--s-5); }
.p-hero { display: flex; gap: var(--s-4); align-items: center; }
.p-ring { position: relative; inline-size: 56px; block-size: 56px; flex: none; }
.p-ring svg.ring { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.p-ring .face { position: absolute; inset: 12px 10px; }
.p-ring .face svg { inline-size: 36px; block-size: 32px; }
.p-sub { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; font: 400 var(--t-mono)/1.3 var(--mono); color: var(--mu); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--ln2); font: 400 var(--t-small)/1.2 var(--sans); color: var(--fgl); background: var(--sf2); }
.pill-glyph { inline-size: 6px; block-size: 6px; flex: none; }
.st-thinking .pill-glyph { background: var(--ac); animation: pulse 1.2s steps(2) infinite; }
.st-awake .pill-glyph { box-shadow: inset 0 0 0 1px var(--ac); border-radius: 50%; }
.st-asleep .pill-glyph { block-size: 2px; background: var(--mu); }
.st-paused { background: var(--c-pause-sf); border-color: var(--warn); }
.st-paused .pill-glyph { background: var(--warn); }
.st-memorial .pill-glyph { box-shadow: inset 0 0 0 1px var(--mu); }
@keyframes pulse { 50% { opacity: .35; } }
.p-help { font: 400 var(--t-small)/1.45 var(--sans); color: var(--fgl); }
.facts { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: var(--s-3) var(--s-4); }
.facts dt { font: 400 var(--t-chip)/1.5 var(--mono); color: var(--mu); }
.facts dd { font: 400 var(--t-small)/1.45 var(--sans); color: var(--fg); overflow-wrap: anywhere; }
.facts dd.num, .facts .mono { font-family: var(--mono); }
.facts .paused { background: var(--c-pause-sf); box-shadow: -8px 0 0 var(--c-pause-sf), 8px 0 0 var(--c-pause-sf); color: var(--warn); }
.quote { background: var(--sf2); padding: var(--s-4); box-shadow: inset 0 0 0 1px var(--ln); }
.quote h3 { font: 400 var(--t-chip)/1.2 var(--mono); color: var(--mu); margin-bottom: var(--s-2); }
.quote blockquote { font: 400 var(--t-body)/1.5 var(--sans); color: var(--fgl); }
.quote .meta { margin-top: var(--s-3); font: 400 var(--t-chip)/1.3 var(--mono); color: var(--mu); }
.p-actions { position: sticky; bottom: calc(-1 * var(--s-5)); margin-inline: calc(-1 * var(--s-5)); padding: var(--s-4) var(--s-5) var(--s-5); background: var(--sf); border-top: 1px solid var(--ln); display: flex; flex-direction: column; gap: var(--s-3); }
.p-actions .btn { inline-size: 100%; }
.p-actions .row { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.p-actions .row .btn { inline-size: auto; flex: 1; }
.p-note { font: 400 var(--t-small)/1.45 var(--sans); color: var(--mu); }
.panel.is-paused { box-shadow: var(--el-float), inset 0 0 0 1px var(--ln2), inset 3px 0 0 var(--warn); }
.receipt-refused { background: var(--c-refuse-sf); padding: var(--s-4); }
.receipt-refused .rule { color: var(--bad); }
.legend-list { display: grid; gap: var(--s-3); }
.legend-list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-1) var(--s-3); align-items: start; }
.legend-list .lg-v { font: 600 var(--t-small)/1.3 var(--sans); color: var(--fg); }
.legend-list .lg-d { grid-column: 2; font: 400 var(--t-small)/1.45 var(--sans); color: var(--fgl); }
.lg-sw { inline-size: 20px; block-size: 20px; grid-row: span 2; }
.inflight { display: flex; flex-direction: column; gap: 1px; }
.inflight button { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); inline-size: 100%; min-block-size: 32px; padding: var(--s-2) var(--s-3); text-align: left; font: 400 var(--t-mono)/1.4 var(--mono); color: var(--fgl); background: var(--sf2); }
.inflight button:hover { background: var(--sf3); }
.strata-list li { display: flex; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-2); border-top: 1px solid var(--ln); font: 400 var(--t-mono)/1.4 var(--mono); }
.members li { display: flex; align-items: center; gap: var(--s-3); padding-block: var(--s-1); font-size: var(--t-small); }
.members .face svg { inline-size: 24px; block-size: 21px; }

/* ---------- B12 ticker ---------- */
.ticker {
  position: fixed; z-index: var(--z-hud); inset: auto 0 0 0; min-block-size: var(--hud-ticker); display: flex; align-items: stretch;
  background: var(--sf); border-top: 1px solid var(--ln2);
}
.ticker-lbl { display: flex; align-items: center; flex: none; padding: 0 var(--s-5); border-right: 1px solid var(--ln); font: 500 var(--t-chip)/1 var(--mono); color: var(--ac2); text-transform: none; letter-spacing: 0; }
.ticker-list { flex: 1; display: flex; align-items: center; gap: 0; overflow: hidden; padding: 4px; min-inline-size: 0; }
.ticker-list li { display: flex; align-items: center; gap: var(--s-3); flex: none; padding: 0 var(--s-5); border-right: 1px solid var(--ln); font: 400 var(--t-mono)/1.3 var(--mono); color: var(--fgl); white-space: nowrap; animation: tickIn var(--d-base) var(--e-out) both; }
.ticker-list time { color: var(--mu); }
.ticker-list .show { font: 600 var(--t-small)/1 var(--sans); color: var(--ac2); min-block-size: var(--hit-small); padding: 0 var(--s-2); }
.ticker-list .show:hover { color: var(--fg); }
.is-frozen .ticker-list li { color: var(--mu); }
.ticker .btn-hud { align-self: center; margin-inline-end: var(--s-3); }
.ticker-empty { color: var(--mu); }
@keyframes tickIn { from { transform: translateX(-24px); opacity: 0; } }
.glyph { inline-size: 10px; block-size: 10px; flex: none; color: var(--ac); }
.glyph svg { inline-size: 100%; block-size: 100%; fill: currentColor; }
.g-vote { color: var(--vote); } .g-grant { color: var(--ok); } .g-pause { color: var(--warn); } .g-refuse { color: var(--bad); } .g-trade { color: var(--mu); }

/* ---------- canvas labels (B15): pointer-only layer, 100% opaque chips (Aegis B2, MUST 5) ---------- */
.lbl { position: absolute; left: 0; top: 0; pointer-events: auto; white-space: nowrap; will-change: transform; transform: translate3d(-9999px, -9999px, 0); }
.lbl[hidden] { display: none; }
.lbl-nation { display: inline-flex; align-items: center; gap: 6px; padding: 3px var(--s-3); background: var(--sf); box-shadow: inset 0 0 0 1px var(--ln2); font: 600 var(--t-small)/1.2 var(--sans); color: var(--fg); translate: -50% -50%; }
.lbl-nation .flag { display: grid; gap: 0; }
.lbl-dev { padding: 2px 6px; background: var(--sf); font: 500 var(--t-chip)/1.2 var(--sans); color: var(--fg); translate: -50% 12px; pointer-events: none; }
.lbl-dev.is-focus { box-shadow: inset 0 0 0 1px var(--ac); }
.lbl-pin { display: flex; flex-direction: column; align-items: center; translate: -50% -100%; }
.lbl-pin .pin-b { --step: 2px; clip-path: var(--cut); max-inline-size: 15rem; padding: 4px var(--s-3); background: var(--sf); box-shadow: inset 0 0 0 1px var(--ln2); text-align: left; font: 400 var(--t-chip)/1.3 var(--mono); color: var(--fg); overflow: hidden; text-overflow: ellipsis; }
.lbl-pin .pin-b b { font: 500 var(--t-bug)/1 var(--mono); letter-spacing: var(--tr-bug); color: var(--ac); margin-inline-end: 6px; }
.lbl-pin .pin-stem { inline-size: 1px; background: var(--ac); }
.lbl-pin { animation: pinIn var(--d-base) var(--e-out) both; }
@keyframes pinIn { from { opacity: 0; scale: .6; } }
.lbl-dome { padding: 2px 6px; background: var(--c-pause-sf); box-shadow: inset 0 0 0 1px var(--warn); font: 400 var(--t-chip)/1.2 var(--mono); color: var(--warn); translate: -50% -100%; pointer-events: none; }
.lbl-wall { padding: 2px 6px; background: var(--c-refuse-sf); box-shadow: inset 0 0 0 1px var(--bad); font: 400 var(--t-chip)/1.3 var(--mono); color: var(--bad); translate: -50% -130%; pointer-events: none; text-align: center; }
.lbl-wall small { display: block; color: var(--fgl); font-family: var(--sans); }
.lbl-beacon { padding: 2px 6px; background: var(--ac); color: var(--ac-fg); font: 500 var(--t-chip)/1.2 var(--mono); translate: -50% -100%; pointer-events: none; }
.lbl-grantee { padding: 1px 5px; background: var(--sf); font: 400 var(--t-chip)/1.2 var(--mono); color: var(--fgl); translate: -50% 10px; }
.lbl-art { padding: 1px 4px; background: var(--sf); font: 400 var(--t-chip)/1.2 var(--mono); color: var(--ac2); pointer-events: none; translate: -50% -50%; }
.lbl-rec { inline-size: 24px; block-size: 24px; translate: -50% -50%; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ac); background: transparent; }
.lbl-rec:hover { box-shadow: inset 0 0 0 2px var(--ac-h); }
.lbl-tip { padding: 3px 8px; background: var(--sf2); box-shadow: inset 0 0 0 1px var(--ln2); font: 500 var(--t-small)/1.2 var(--sans); color: var(--fg); translate: -50% calc(-100% - 14px); pointer-events: none; }

/* ---------- intro (B3) ---------- */
.intro { position: fixed; inset: 0; z-index: var(--z-intro); display: grid; place-items: center; pointer-events: none; }
.intro.is-black { background: var(--bg); }
.intro-cap { font: 500 var(--t-hud)/1.4 var(--mono); color: var(--fg); background: var(--bg); padding: 2px 8px; text-align: center; }
.intro-skip { position: fixed; right: var(--hud-inset); bottom: calc(var(--bottom) + var(--hud-gap)); z-index: var(--z-skip); pointer-events: auto; }
.intro-cap.typing { animation: typeIn 1s var(--e-step) both; }
@keyframes typeIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.is-intro .topbar, .is-intro .rail, .is-intro .ticker, .is-intro .free, .is-intro .bottombar { opacity: 0; }
.hud-in .topbar, .hud-in .rail, .hud-in .ticker, .hud-in .free > .mapctl, .hud-in .bottombar { animation: hudIn var(--d-panel) var(--e-out) both; }
.hud-in .rail { animation-delay: 60ms; }
.hud-in .ticker, .hud-in .bottombar { animation-delay: 120ms; }
.hud-in .rail { --from: -12px 0; } .hud-in .ticker { --from: 0 12px; } .hud-in .topbar { --from: 0 -12px; }
@keyframes hudIn { from { opacity: 0; translate: var(--from, 0 0); } }

/* ---------- dialogs (B17, B20) ---------- */
.dlg { max-inline-size: min(560px, calc(100vw - 32px)); max-block-size: calc(100dvh - 32px); padding: var(--s-7); border: 0; background: var(--sf); color: var(--fg); box-shadow: var(--el-float), inset 0 0 0 1px var(--ln2); }
.dlg::backdrop { background: var(--scrim); }
.dlg h2 { font: 700 var(--t-h3)/1.2 var(--head); margin-bottom: var(--s-5); outline-offset: 4px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-5); }
.keys dt { font-size: var(--t-small); color: var(--fgl); }
.keys dd { font-size: var(--t-small); }
.keys.is-off dt, .keys.is-off dd, .keys.is-off kbd { color: var(--mu); }
.keys-opt { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-block: var(--s-3); }
.dlg > .btn, .dlg .btn-row { margin-top: var(--s-5); }
.share-img { inline-size: 100%; block-size: auto; aspect-ratio: 1200 / 630; background: var(--bg); box-shadow: inset 0 0 0 1px var(--ln2); }
.dlg-close { position: absolute; top: var(--s-5); right: var(--s-5); }
.dlg-share { position: fixed; }

/* ---------- toasts (A8) ---------- */
.toasts { position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(var(--bottom) + 72px); transform: translateX(-50%); display: flex; flex-direction: column; gap: var(--s-2); align-items: center; pointer-events: none; }
.toast { --step: 3px; clip-path: var(--cut); pointer-events: auto; max-inline-size: min(440px, calc(100vw - 32px)); padding: var(--s-3) var(--s-5); background: var(--sf2); box-shadow: inset 0 0 0 1px var(--ln2); font: 400 var(--t-small)/1.45 var(--sans); color: var(--fg); animation: chipIn2 var(--d-base) var(--e-out) both; display: flex; gap: var(--s-4); align-items: center; }
@keyframes chipIn2 { from { opacity: 0; transform: translateY(6px); } }

/* ---------- bottom bar (B11) ---------- */
.bottombar { display: none; }

/* ---------- tablet: rail drawer, panel as bottom sheet ---------- */
@media (max-width: 1023.98px) {
  body.world { --rail-w: 0px; }
  .tb-filters { display: inline-flex; }
  .stat-wide { display: none; }
  .rail { left: 0; top: 0; bottom: 0; inline-size: min(320px, 88vw); z-index: var(--z-sheet); transform: translateX(-104%); visibility: hidden; transition: transform var(--d-panel) var(--e-out), visibility 0s linear var(--d-panel); }
  .rail-open .rail { transform: none; visibility: visible; transition: transform var(--d-panel) var(--e-out); }
  .rail-close { display: inline-flex; }
  .scrim { position: fixed; inset: 0; z-index: calc(var(--z-sheet) - 1); background: var(--scrim); }
  body.world.panel-open { --panel-w: 0px; }
  .panel {
    left: 0; right: 0; top: auto; bottom: 0; inline-size: auto; block-size: var(--sheet-h, 38dvh); z-index: var(--z-sheet);
    border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--el-sheet), inset 0 0 0 1px var(--ln2); animation: sheetIn var(--d-sheet) var(--e-settle) both;
    transition: block-size var(--d-sheet) var(--e-settle); padding-bottom: env(safe-area-inset-bottom);
  }
  .panel.is-expanded { --sheet-h: 86dvh; }
  .p-actions { position: static; margin-inline: 0; padding-inline: 0; }
  .panel.is-out { animation: sheetOut var(--d-panel-out) var(--e-in) both; }
  .sheet-grab { display: block; inline-size: 32px; block-size: 4px; margin: var(--s-3) auto 0; background: var(--mu2); touch-action: none; cursor: grab; }
  .sheet-expand { display: inline-flex; }
  .panel-head { padding-top: var(--s-3); }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  @keyframes sheetOut { to { transform: translateY(100%); } }
}

/* ---------- mobile ---------- */
@media (max-width: 767.98px) {
  body.world { --bottom: calc(var(--hud-ticker-strip) + var(--hud-bottombar) + env(safe-area-inset-bottom)); }
  .topbar { flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); padding-block: var(--s-2); }
  .tb-stats { display: none; }
  .tb-filters { display: none; }
  .tb-brand .wm { font-size: .95rem; }
  .tb-compact { display: block; order: 5; flex-basis: 100%; font: 400 var(--t-chip)/1.3 var(--mono); color: var(--fgl); }
  .tb-right { margin-inline-start: auto; gap: var(--s-2); }
  .stat-clock { display: none; }
  .mapctl .minimap, .mapctl .zoom { display: none; }
  .capital-m { display: inline-flex; }
  .ticker { bottom: calc(var(--hud-bottombar) + env(safe-area-inset-bottom)); min-block-size: var(--hud-ticker-strip); }
  .ticker-lbl { padding-inline: var(--s-3); }
  .ticker-list li:not(:first-child) { display: none; }
  .ticker-list li { padding-inline: var(--s-3); white-space: normal; overflow: hidden; }
  .ticker-pause { display: none; }
  .bottombar {
    position: fixed; z-index: var(--z-hud); inset: auto 0 0 0; display: grid; grid-template-columns: repeat(5, 1fr);
    min-block-size: var(--hud-bottombar); padding-bottom: env(safe-area-inset-bottom); background: var(--sf); border-top: 1px solid var(--ln2);
  }
  .bottombar button { min-block-size: var(--hit-min); font: 500 var(--t-small)/1.1 var(--sans); color: var(--fgl); border-left: 1px solid var(--ln); }
  .bottombar button:first-child { border-left: 0; }
  .bottombar button[aria-expanded="true"] { color: var(--ac); background: var(--sf3); }
  .rail { inset: auto 0 0 0; inline-size: auto; max-block-size: 70dvh; transform: translateY(104%); border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
  .rail-open .rail { transform: none; }
  .rail[data-only] .rail-sec:not([data-only-match]) { display: none; }
  .rail[data-only] .rail-sec { border-top: 0; }
  .rail[data-only] .rail-foot { display: none; }
  .hero, .lt { left: 0; right: 0; max-inline-size: none; }
  .hero { padding: var(--s-5); }
  .lt { grid-template-columns: auto 1fr; padding: var(--s-3) var(--s-4); }
  .lt-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .lt-why { text-align: left; }
  .free { left: var(--s-3); right: var(--s-3); }
  .mapctl { bottom: 0; right: 0; }
  .hero, .lt { bottom: 52px; }
  .note2d { font-size: var(--t-chip); }
  .toasts { bottom: calc(var(--bottom) + 16px); }
  .banners { top: 40px; }
  /* aegis N3: the Director row stays one line under 768 (pill, "Replay 60x", Now 1x), so it ends above the banners and the 2D note at 40/48;
     the "today so far" detail stays for screen readers only */
  .dir { flex-wrap: nowrap; gap: var(--s-2); inline-size: max-content; }
  .dir-pill, .dir-tag, .dir-live { flex: none; }
  #dir-sub { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .banner { grid-template-columns: 1fr; padding: var(--s-3) var(--s-4); }
  .banner .face { display: none; }
  .banner-b, .banner-m { display: none; }
  .banner.is-open .banner-b, .banner.is-open .banner-m { display: flex; }
  .banner.is-open .banner-b { display: block; }
  .banner-sum { display: inline-flex; justify-self: start; }
  .list2d { max-block-size: 30%; }
}
@media (max-width: 479.98px) { .tb-news { display: none; } }
@media (max-width: 767.98px) and (pointer: coarse) { .banners, .note2d { top: 52px; } } /* 44 px Director row on touch (N3) */
@media (pointer: coarse) {
  .btn-hud, .tgl, .seg-b, .society button, .search-list li, .ticker-list .show, .btn-plate, .badge, .tb-news, .lnk.sm, .inflight button { min-block-size: var(--hit-min); }
  .btn-hud.sq { inline-size: var(--hit-min); }
}

/* ---------- reduced motion: tokens already collapse durations; kill loops ---------- */
@media (prefers-reduced-motion: reduce) {
  .loading-dot, .st-thinking .pill-glyph { animation: none; }
  .ticker-list li, .lbl-pin, .banner, .lt, .panel, .freeze-chip, .toast { animation-name: fadeOnly; }
}
.rm .loading-dot, .rm .st-thinking .pill-glyph { animation: none; }
.rm .ticker-list li, .rm .lbl-pin, .rm .banner, .rm .lt, .rm .panel, .rm .freeze-chip, .rm .toast { animation-name: fadeOnly; }
@keyframes fadeOnly { from { opacity: 0; } }

/* ---------- forced colors (Aegis MUST 15): real borders survive ---------- */
@media (forced-colors: active) {
  .slab, .rail, .panel, .banner, .lt, .hero, .note2d, .freeze-chip, .dir-tag, .toast, .lbl-nation, .lbl-pin .pin-b, .badge, .dlg { border: 1px solid CanvasText; }
  .tgl-sq, .sw, .pill-glyph, .badge-dot, .dir-dot { forced-color-adjust: none; }
}

/* ---------- DNN news dock and dev chatter (owner: pixel-world, 2026-10-10 owner feedback) ---------- */
.newsdock { position: absolute; top: 0; right: 0; inline-size: min(300px, 100%); max-block-size: calc(100% - var(--hud-minimap) - var(--hud-gap) * 2); display: flex; flex-direction: column; background: var(--sf); box-shadow: var(--el-hud), inset 0 0 0 1px var(--ln2); --step: 3px; }
.nd-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); }
.nd-title { font: 600 var(--t-small)/1.25 var(--sans); color: var(--fg); }
.nd-bug { font: 500 var(--t-bug)/1 var(--mono); letter-spacing: var(--tr-bug); color: var(--ac); margin-inline-end: var(--s-2); }
.newsbox { display: flex; flex-direction: column; min-block-size: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--s-4) var(--s-4); scrollbar-width: thin; scrollbar-color: var(--ln2) transparent; }
.news-collapsed .newsdock .newsbox { display: none; }
.news-collapsed .newsdock .nd-head { padding-block: var(--s-2); }
.nb-tabs { margin-block-end: var(--s-3); }
.nb-note { font: 400 var(--t-chip)/1.4 var(--mono); color: var(--mu); margin-block: var(--s-2) var(--s-3); }
.nb-list { display: flex; flex-direction: column; }
.nb-list > li { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-3); align-items: start; padding-block: var(--s-3); border-top: 1px solid var(--ln); }
.nb-list > li:first-child { border-top: 0; }
.nb-hd { grid-column: 1; text-align: start; font: 500 var(--t-small)/1.35 var(--sans); color: var(--fg); min-block-size: var(--hit-small); padding: 0; }
@media (hover: hover) { .nb-hd:hover { color: var(--ac); } }
.nb-read { grid-column: 2; grid-row: 1; font: 600 var(--t-chip)/1 var(--sans); color: var(--ac2); padding: var(--s-2) 0; min-block-size: var(--hit-small); display: inline-flex; align-items: center; white-space: nowrap; }
.nb-meta { grid-column: 1 / -1; font: 400 var(--t-chip)/1.3 var(--mono); color: var(--mu); }
.nb-foot { margin-block-start: var(--s-3); font-size: var(--t-small); }
.ch-line { grid-column: 1 / -1; font: 400 var(--t-small)/1.4 var(--sans); color: var(--fgl); }
.ch-line b { font-weight: 600; color: var(--fg); margin-inline-end: var(--s-2); }
.ch-open { grid-column: 1 / -1; justify-self: start; font: 600 var(--t-chip)/1 var(--sans); color: var(--ac2); min-block-size: var(--hit-small); padding: 0; }
.rail-news { display: none; }
/* iris r2 R2: with a dev panel open the canvas is narrow (1280: about 340 px). DNN folds to its header, and the event card keeps 320 px and stands above the minimap, never over it or the panel */
body.panel-open .newsdock .newsbox, body.panel-open .newsdock .nd-toggle { display: none; }
body.panel-open .newsdock .nd-head { padding-block: var(--s-2); }
@media (min-width: 768px) and (max-width: 1599.98px) {
  body.world.panel-open .lt { min-inline-size: min(320px, 100%); max-inline-size: 100%; grid-template-columns: auto 1fr; bottom: calc(var(--hud-minimap) + var(--s-8)); }
  body.world.panel-open .lt .lt-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  body.world.panel-open .lt .lt-why { text-align: start; }
}
@media (max-width: 767.98px) {
  .newsdock { display: none; }
  .rail-news { display: block; }
  .bottombar { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 768px) { body:not(.news-collapsed) .banners { inline-size: min(var(--hud-banner-max), calc(100% - 340px)); left: calc(50% - 160px); } }

.chatter { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: var(--z-pins); }
.rm .chatter, .no-chatter .chatter { display: none; }
.bubble { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; translate: -50% calc(-100% - 14px); opacity: 0; transition: opacity 300ms linear; pointer-events: none; }
.bubble.is-in { opacity: 1; }
.bubble[hidden] { display: none; }
.bub-b { --step: 2px; pointer-events: auto; clip-path: var(--cut); max-inline-size: 16rem; padding: 5px var(--s-3); background: var(--sf); box-shadow: inset 0 0 0 1px var(--ln2); text-align: start; font: 400 var(--t-chip)/1.35 var(--sans); color: var(--fg); cursor: pointer; }
@media (hover: hover) { .bub-b:hover { background: var(--sf3); } }
.bub-n { font: 500 var(--t-chip)/1 var(--mono); color: var(--ac); margin-inline-end: var(--s-2); }
.bub-tail { inline-size: 1px; block-size: 10px; background: var(--ac); }
.xmark { display: inline-block; inline-size: 12px; block-size: 12px; margin-inline-start: var(--s-2); vertical-align: -2px; color: var(--fgl); }
.xmark svg { display: block; inline-size: 100%; block-size: 100%; fill: currentColor; }
a.xmark:hover { color: var(--ac); }
@media (forced-colors: active) { .bub-b, .newsdock { border: 1px solid CanvasText; } }
.chat { margin-block: var(--s-4); }
.chat h3 { font: 600 var(--t-small)/1.2 var(--sans); color: var(--fgl); margin-bottom: var(--s-2); }
.chat-list > li { padding-block: var(--s-3); border-top: 1px solid var(--ln); }
.chat-list > li.is-focus { box-shadow: inset 2px 0 0 var(--ac); padding-inline-start: var(--s-3); }
.chat .ch-line { display: block; }
