:root {
  --bg: #070a08; --panel: #0d120e; --panel2: #121913; --raise: #172019; --line: #243026; --line2: #32422f;
  --text: #dfe5d8; --muted: #8b9786; --dim: #5d695a; --amber: #ffb000; --amber2: #ffcf5c; --green: #7ee08a; --red: #ff5a4a;
  --A: #d9b84f; --N: #4d8cff; --F: #58d0f2; --M: #ff4f40; --C: #ff8a24; --S: #c4b3ff; --J: #93e06a; --X: #8b9786;
  --f-disp: 'Barlow Condensed', 'Arial Narrow', sans-serif; --f-body: 'Barlow', system-ui, sans-serif; --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --top: 78px; --left: 320px; --right: 460px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: var(--amber); text-decoration: none; } a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-disp); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--line2); } ::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.muted { color: var(--muted); } .mono { font-family: var(--f-mono); }
[hidden] { display: none !important; }
.only-mobile { display: none !important; }

#app { position: fixed; inset: 0; display: grid; grid-template-columns: var(--left) 1fr; grid-template-rows: 22px 56px 1fr; grid-template-areas: "strip strip" "top top" "filters map"; }

/* classification-style strip */
.strip { grid-area: strip; background: #1d3a1f; color: #b9f0b0; font: 600 11px/22px var(--f-mono); letter-spacing: .22em; text-align: center; white-space: nowrap; overflow: hidden; }
.strip .sep { margin: 0 .9em; opacity: .5; }

.topbar { grid-area: top; display: flex; align-items: center; gap: 18px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line); z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; flex: none; }
.brand-mark { width: 34px; height: 34px; color: var(--amber); }
.brand-text b { display: block; font: 700 24px/1 var(--f-disp); letter-spacing: .16em; }
.brand-text i { display: block; font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .08em; color: var(--muted); font-style: normal; text-transform: uppercase; margin-top: 3px; }
.search { position: relative; flex: 1; max-width: 560px; display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line2); height: 38px; padding: 0 10px; gap: 8px; }
.search:focus-within { border-color: var(--amber); }
.search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 15px var(--f-body); }
.search input::placeholder { color: var(--dim); }
.search kbd { font: 11px var(--f-mono); color: var(--dim); border: 1px solid var(--line2); padding: 0 5px; }
.suggest { position: absolute; left: -1px; right: -1px; top: 100%; background: var(--panel2); border: 1px solid var(--line2); max-height: min(70vh, 560px); overflow: auto; z-index: 50; box-shadow: 0 18px 40px #000a; }
.suggest h4 { font: 600 11px var(--f-mono); letter-spacing: .14em; color: var(--dim); padding: 10px 12px 4px; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 7px 12px; color: var(--text); text-decoration: none; }
.suggest a.sel, .suggest a:hover { background: var(--raise); }
.suggest a small { color: var(--muted); margin-left: auto; font: 11px var(--f-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.suggest .none { padding: 14px 12px; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { font: 600 15px var(--f-disp); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; border-bottom: 2px solid transparent; text-decoration: none; }
.nav a:hover { color: var(--text); } .nav a.on { color: var(--amber); border-color: var(--amber); }
.iconbtn { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line2); color: var(--text); flex: none; }
.iconbtn svg { width: 18px; height: 18px; } .iconbtn:hover { border-color: var(--amber); color: var(--amber); }

/* panels */
.panel { background: var(--panel); position: relative; }
.filters { grid-area: filters; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; z-index: 20; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 4px; }
.panel-head h2 { font-size: 13px; letter-spacing: .2em; color: var(--muted); flex: 1; }
.link { color: var(--amber); font: 12px var(--f-mono); }
.fgroup { padding: 8px 14px; }
.fgroup h3 { font: 600 11px var(--f-mono); letter-spacing: .16em; color: var(--dim); margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line2); font: 500 12.5px var(--f-body); color: var(--muted); background: transparent; line-height: 1.2; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; }
.chip b { font: 11px var(--f-mono); color: var(--dim); font-weight: 400; }
.chip.on { color: var(--text); border-color: var(--c, var(--amber)); background: color-mix(in srgb, var(--c, var(--amber)) 12%, transparent); }
.chips.small .chip { font-size: 12px; padding: 3px 7px; }
.seg { display: flex; border: 1px solid var(--line2); }
.seg button { flex: 1; padding: 6px 4px; font: 600 12.5px var(--f-disp); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button.on { background: var(--amber); color: #111; }
.seg.mini button { padding: 5px 9px; font-size: 12px; background: #0b0f0cdd; } .seg.mini button.on { background: var(--amber); }
select { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line2); padding: 7px 8px; font: 14px var(--f-body); border-radius: 0; }
.switch { position: relative; width: 30px; height: 16px; display: inline-block; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border: 1px solid var(--line2); background: var(--bg); }
.switch span::after { content: ''; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; background: var(--dim); transition: .15s; }
.switch input:checked + span::after { left: 16px; background: var(--amber); }
.year-read { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.year-read output { font: 600 22px var(--f-disp); letter-spacing: .08em; color: var(--amber); }
.year-read .iconbtn { width: 26px; height: 26px; font-size: 11px; }
.year.off { opacity: .45; } .year.off output { color: var(--muted); font-size: 15px; }
input[type=range] { width: 100%; accent-color: var(--amber); margin: 2px 0; }
.year-ticks { display: flex; justify-content: space-between; font: 10px var(--f-mono); color: var(--dim); }
.list-head { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px 8px; border-top: 1px solid var(--line); margin-top: 6px; }
.list-head #count { font: 600 22px var(--f-disp); color: var(--amber); letter-spacing: .04em; }
.list-head .muted { font: 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.list { flex: 1; overflow: auto; min-height: 80px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 10px 1fr auto; gap: 9px; align-items: center; padding: 7px 14px; border-bottom: 1px solid #161d17; color: var(--text); text-decoration: none !important; cursor: pointer; }
.row:hover, .row.sel { background: var(--raise); }
.row i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.row.closed i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.row b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.row small { color: var(--dim); font: 11px var(--f-mono); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row em { font: 11px var(--f-mono); color: var(--dim); font-style: normal; }
.more { display: block; width: 100%; padding: 12px; color: var(--amber); font: 12px var(--f-mono); letter-spacing: .1em; }

/* map */
#mapwrap { grid-area: map; position: relative; min-width: 0; background: #020304; }
#map { position: absolute; inset: 0; }
.maplibregl-canvas { outline: none; }
.maplibregl-ctrl-attrib { background: #0008 !important; color: var(--dim); font: 10px var(--f-mono); }
.maplibregl-ctrl-attrib a { color: var(--muted); }
.maplibregl-ctrl-group { background: #0b0f0cdd; border: 1px solid var(--line2); border-radius: 0; box-shadow: none; }
.maplibregl-ctrl-group button { width: 32px; height: 32px; } .maplibregl-ctrl-group button + button { border-top: 1px solid var(--line2); }
.maplibregl-ctrl-icon { filter: invert(1) brightness(.8); }
.hud { position: absolute; z-index: 5; display: flex; gap: 8px; pointer-events: none; } .hud > * { pointer-events: auto; }
.hud-tl { left: 12px; top: 12px; } .hud-tr { right: 12px; top: 12px; flex-direction: column; align-items: flex-end; } .hud-bl { left: 12px; bottom: 28px; }
.hud-box { font: 500 11.5px/1.5 var(--f-mono); color: var(--green); background: #0b0f0ccc; border: 1px solid var(--line); padding: 6px 9px; letter-spacing: .06em; min-width: 148px; }
.legend { display: grid; grid-template-columns: repeat(2, auto); gap: 3px 14px; background: #0b0f0ccc; border: 1px solid var(--line); padding: 8px 10px; font: 11px var(--f-mono); color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; } .legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.legend i.ring { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.tip { font: 13px var(--f-body); }
.maplibregl-popup-content { background: var(--panel2); color: var(--text); border: 1px solid var(--line2); border-radius: 0; padding: 8px 10px; box-shadow: 0 8px 24px #000a; }
.maplibregl-popup-tip { border-top-color: var(--line2) !important; border-bottom-color: var(--line2) !important; }
.tip b { font: 600 16px var(--f-disp); letter-spacing: .04em; text-transform: uppercase; display: block; }
.tip span { font: 11px var(--f-mono); color: var(--muted); }
.pulse { width: 46px; height: 46px; pointer-events: none; position: relative; }
.pulse::before, .pulse::after { content: ''; position: absolute; inset: 0; border: 1.5px solid var(--amber); border-radius: 50%; animation: pulse 2s ease-out infinite; }
.pulse::after { animation-delay: 1s; }
.pulse i { position: absolute; inset: 0; background: linear-gradient(var(--amber), var(--amber)) center/1px 100% no-repeat, linear-gradient(var(--amber), var(--amber)) center/100% 1px no-repeat; opacity: .55; -webkit-mask: radial-gradient(circle, transparent 9px, #000 10px); mask: radial-gradient(circle, transparent 9px, #000 10px); }
@keyframes pulse { from { transform: scale(.25); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.stop { width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #111; font: 600 11px/22px var(--f-mono); text-align: center; box-shadow: 0 0 0 3px #0009; cursor: pointer; }
.stop.her { background: #111; color: var(--amber); box-shadow: inset 0 0 0 1.5px var(--amber), 0 0 0 3px #0009; }
.trace-banner { position: absolute; left: 50%; transform: translateX(-50%); top: 12px; z-index: 6; background: #0b0f0cee; border: 1px solid var(--amber); padding: 7px 12px; font: 12px var(--f-mono); color: var(--amber2); display: flex; gap: 12px; align-items: center; max-width: calc(100% - 24px); }
.trace-banner button { color: var(--text); border-left: 1px solid var(--line2); padding-left: 12px; }

/* dossier */
.dossier { position: fixed; top: var(--top); right: 0; bottom: 0; width: var(--right); max-width: 100vw; border-left: 1px solid var(--line2); z-index: 25; overflow: auto; box-shadow: -20px 0 50px #0008; animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.d-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--panel); border-bottom: 1px solid var(--line); font: 11px var(--f-mono); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.d-bar span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-bar .iconbtn { width: 30px; height: 30px; }
.d-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--c, var(--amber)) 9%, transparent), transparent 80%); }
.d-head::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--amber)); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 2px 7px; border: 1px solid var(--line2); color: var(--muted); }
.tag.br { color: #0b0f0c; background: var(--c); border-color: var(--c); }
.tag.ok { color: var(--green); border-color: #2f5a36; } .tag.off { color: var(--red); border-color: #5a2f2a; }
.d-head h1 { font-size: 34px; line-height: 1.02; letter-spacing: .02em; font-weight: 700; }
.d-head .sub { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.d-head .coord { font: 12px var(--f-mono); color: var(--green); margin-top: 8px; letter-spacing: .05em; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line2); font: 600 13px var(--f-disp); letter-spacing: .1em; text-transform: uppercase; color: var(--text); text-decoration: none !important; }
.btn:hover { border-color: var(--amber); color: var(--amber); } .btn.pri { background: var(--amber); color: #111; border-color: var(--amber); } .btn.pri:hover { color: #111; background: var(--amber2); }
.emb-hero { display: flex; gap: 14px; align-items: center; }
.emb-hero .embs { display: flex; gap: 8px; flex: none; }
.emb-hero img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 4px 10px #000a); }
.motto { margin-top: 12px; padding: 9px 12px; border-left: 2px solid var(--amber); background: #ffb0000d; }
.motto q { font: 600 20px var(--f-disp); letter-spacing: .05em; text-transform: uppercase; color: var(--amber2); quotes: '“' '”'; }
.motto small { display: block; color: var(--muted); font: 11px var(--f-mono); letter-spacing: .08em; margin-top: 2px; }
.sec { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sec > h2 { font-size: 13px; letter-spacing: .22em; color: var(--amber); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.sec > h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sec > h2 small { font: 11px var(--f-mono); color: var(--dim); letter-spacing: .05em; }
.sec p { margin: 0 0 8px; color: #c5ccbe; }
.src { font: 11px var(--f-mono); color: var(--dim); } .src a { color: var(--muted); text-decoration: underline; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--panel); padding: 9px 11px; min-width: 0; }
.stat dt { font: 10.5px var(--f-mono); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.stat dd { margin: 2px 0 0; font: 600 19px/1.15 var(--f-disp); letter-spacing: .03em; overflow-wrap: anywhere; }
.stat dd.s { font: 500 14px/1.3 var(--f-body); letter-spacing: 0; }
.stat.w { grid-column: 1 / -1; }
.ulist { list-style: none; margin: 0; padding: 0; }
.ulist li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed #1c251d; }
.ulist li:last-child { border: 0; }
.ulist .ind { flex: none; width: calc(var(--d, 0) * 14px); border-bottom: 1px solid var(--line2); height: 12px; margin-right: -4px; }
.ulist img, .ulist .noemb { width: 30px; height: 30px; object-fit: contain; flex: none; }
.ulist .noemb { border: 1px dashed var(--line2); display: grid; place-items: center; color: var(--dim); font: 9px var(--f-mono); }
.ulist .t { flex: 1; min-width: 0; } .ulist .t a, .ulist .t b { font-weight: 500; color: var(--text); }
.ulist .t a { border-bottom: 1px solid var(--line2); text-decoration: none; } .ulist .t a:hover { color: var(--amber); border-color: var(--amber); }
.ulist .t small { display: block; color: var(--muted); font-size: 12.5px; }
.ulist .d { font: 11px var(--f-mono); color: var(--dim); white-space: nowrap; flex: none; padding-top: 3px; }
.ulist .grp { font: 600 12px var(--f-mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; padding-top: 12px; }
.eqchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.eqchip { font: 11px var(--f-mono); padding: 1px 6px; border: 1px solid #3d3415; color: var(--amber2); background: #ffb0000a; text-decoration: none !important; }
.eqchip:hover { border-color: var(--amber); }
.eqgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eq { display: block; border: 1px solid var(--line); background: #000; color: var(--text); text-decoration: none !important; position: relative; overflow: hidden; }
.eq:hover { border-color: var(--amber); }
.eq img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; background: #0a0d0b; }
.eq .cap { display: block; padding: 7px 9px 8px; background: var(--panel2); border-top: 1px solid var(--line); }
.eq .cap b { font: 600 16px/1.1 var(--f-disp); letter-spacing: .04em; text-transform: uppercase; display: block; }
.eq .cap small { display: block; margin-top: 2px; font: 10.5px var(--f-mono); color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.eq .ai { position: absolute; top: 6px; right: 6px; font: 9px var(--f-mono); letter-spacing: .1em; background: #000a; color: var(--muted); padding: 1px 5px; border: 1px solid #fff2; }
.tl { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--line2); }
.tl li { position: relative; padding: 0 0 12px 6px; }
.tl li::before { content: ''; position: absolute; left: -20.5px; top: 6px; width: 8px; height: 8px; background: var(--panel); border: 1.5px solid var(--amber); border-radius: 50%; }
.tl li.her::before { border-style: dashed; }
.tl .n { position: absolute; left: -27px; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #111; font: 600 11px/22px var(--f-mono); text-align: center; z-index: 1; }
.tl li.num::before { display: none; } .tl li.num { padding-left: 10px; }
.tl li.her .n { background: var(--panel); color: var(--amber); box-shadow: inset 0 0 0 1.5px var(--amber); }
.tl b { font-weight: 500; } .tl a { color: var(--text); border-bottom: 1px solid var(--line2); text-decoration: none; } .tl a:hover { color: var(--amber); }
.tl small { display: block; font: 11.5px var(--f-mono); color: var(--muted); }
.lines { margin: 0; padding: 0; list-style: none; } .lines li { padding: 3px 0 3px 14px; position: relative; color: #c5ccbe; font-size: 14px; }
.lines li::before { content: '▸'; position: absolute; left: 0; color: var(--dim); font-size: 11px; top: 5px; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; } .pill { border: 1px solid var(--line2); padding: 3px 8px; font-size: 13px; color: #c5ccbe; }
.pill.hon { border-color: #4a3d14; color: var(--amber2); }
.note { font-size: 13px; color: var(--muted); border: 1px dashed var(--line2); padding: 8px 10px; }
.expand { margin-top: 8px; color: var(--amber); font: 12px var(--f-mono); letter-spacing: .08em; }
.loading { padding: 40px 20px; color: var(--muted); font: 12px var(--f-mono); letter-spacing: .14em; }

/* overlays (equipment, stats, about) */
.overlay { position: fixed; top: var(--top); left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 28; overflow: auto; }
.page { max-width: 1240px; margin: 0 auto; padding: 34px 28px 80px; }
.page > header { margin-bottom: 26px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.page > header .kick { font: 600 12px var(--f-mono); letter-spacing: .22em; color: var(--amber); }
.page > header h1 { font-size: 54px; line-height: 1; font-weight: 700; margin: 6px 0 10px; }
.page > header p { max-width: 760px; color: #c5ccbe; font-size: 17px; margin: 0; }
.page h2 { font-size: 15px; letter-spacing: .22em; color: var(--amber); margin: 30px 0 14px; display: flex; gap: 10px; align-items: center; }
.page h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.page h2 small { color: var(--dim); font: 12px var(--f-mono); letter-spacing: .05em; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.kpi { background: var(--panel); padding: 16px 18px; }
.kpi b { display: block; font: 700 44px/1 var(--f-disp); letter-spacing: .02em; color: var(--amber); }
.kpi span { font: 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 150px 1fr 56px; gap: 10px; align-items: center; font-size: 14px; }
.bar span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .trk { height: 14px; background: var(--panel2); position: relative; display: flex; }
.bar .trk i { display: block; height: 100%; background: var(--c, var(--amber)); } .bar .trk i.cl { opacity: .35; }
.bar em { font: 12px var(--f-mono); color: var(--muted); font-style: normal; text-align: right; }
.hist { width: 100%; height: 220px; display: block; background: var(--panel); border: 1px solid var(--line); }
.prose { max-width: 780px; font-size: 16px; color: #c5ccbe; } .prose h2 { margin-top: 34px; } .prose li { margin-bottom: 6px; }
.eq-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.eq-hero img { width: 100%; border: 1px solid var(--line); display: block; }
.eq-hero figcaption { font: 11px var(--f-mono); color: var(--dim); margin-top: 6px; letter-spacing: .06em; }
.eq-hero figure { margin: 0; }
.blist { columns: 3 240px; column-gap: 24px; list-style: none; padding: 0; margin: 0; }
.blist li { break-inside: avoid; padding: 4px 0; border-bottom: 1px dashed #1c251d; font-size: 14px; }
.blist li small { color: var(--dim); font: 11px var(--f-mono); margin-left: 6px; }
.blist a { color: var(--text); } .blist a:hover { color: var(--amber); }
.back { font: 12px var(--f-mono); letter-spacing: .1em; }

/* boot */
.boot { position: fixed; inset: 0; background: var(--bg); z-index: 100; display: grid; place-content: center; justify-items: center; gap: 10px; transition: opacity .4s; }
.boot .brand-mark { width: 64px; height: 64px; animation: spin 6s linear infinite; }
.boot b { font: 700 34px var(--f-disp); letter-spacing: .3em; margin-right: -.3em; }
.boot span { font: 12px var(--f-mono); color: var(--muted); letter-spacing: .14em; }
@keyframes spin { to { transform: rotate(360deg); } }
#app:not(.booting) .boot { opacity: 0; pointer-events: none; }

/* responsive */
/* keep map controls clear of the open dossier */
@media (min-width: 861px) {
  #app:has(#dossier:not([hidden])) .hud-tr { right: calc(var(--right) + 12px); }
  #app:has(#dossier:not([hidden])) .trace-banner { left: calc((100% - var(--right)) / 2); max-width: max(240px, calc(100% - var(--right) - 360px)); top: 54px; }
  #app:has(#dossier:not([hidden])) .maplibregl-ctrl-bottom-right { right: var(--right); }
}
@media (max-width: 1180px) { :root { --left: 280px; --right: 420px; } .brand-text i { display: none; } }
@media (max-width: 860px) {
  :root { --top: 70px; }
  .only-mobile { display: inline-grid !important; }
  #app { grid-template-columns: 1fr; grid-template-rows: 18px 52px 1fr; grid-template-areas: "strip" "top" "map"; }
  .strip { font-size: 9px; line-height: 18px; letter-spacing: .14em; }
  .topbar { gap: 8px; padding: 0 10px; }
  .brand-text { display: none; } .brand-mark { width: 30px; height: 30px; }
  .search kbd { display: none; } .search { height: 36px; } .search input { font-size: 16px; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; background: var(--panel); border-top: 1px solid var(--line2); justify-content: space-around; padding-bottom: env(safe-area-inset-bottom); }
  .nav a { flex: 1; text-align: center; padding: 11px 4px; font-size: 14px; border-bottom: 0; border-top: 2px solid transparent; } .nav a.on { border-color: var(--amber); }
  .filters { position: fixed; top: var(--top); bottom: 44px; left: 0; width: min(88vw, 340px); transform: translateX(-102%); transition: transform .2s; box-shadow: 20px 0 50px #000a; z-index: 35; }
  .filters.open { transform: none; }
  #mapwrap { margin-bottom: 44px; }
  .hud-box { font-size: 10px; min-width: 0; padding: 4px 7px; } .hud-bl { display: none; }
  .dossier { top: var(--top); bottom: 44px; width: 100vw; border-left: 0; animation: rise .22s ease-out; }
  @keyframes rise { from { transform: translateY(30px); opacity: 0; } }
  .d-head { padding: 14px 16px 12px; } .d-head h1 { font-size: 28px; } .sec { padding: 14px 16px; }
  .emb-hero img { width: 72px; height: 72px; }
  .overlay { bottom: 44px; } .page { padding: 22px 16px 60px; } .page > header h1 { font-size: 38px; } .page > header p { font-size: 15.5px; }
  .cols, .eq-hero { grid-template-columns: 1fr; } .gal { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi b { font-size: 34px; } .bar { grid-template-columns: 110px 1fr 48px; font-size: 13px; }
  .trace-banner { top: auto; bottom: 10px; font-size: 11px; }
  .stat dt, .eq .cap small { font-size: 11px; } .src { font-size: 11.5px; }
  .suggest a { flex-wrap: wrap; gap: 2px 10px; } .suggest a small { margin-left: 0; white-space: normal; flex-basis: 100%; padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
