/* ══ OVERSEER — measured against the reference at 1727 css px ══════════════ */
:root {
  --bg: #06070b;
  --panel: rgba(13,15,21,.88); --panel2: rgba(14,16,22,.97);
  --edge: rgba(255,255,255,.15); --edge2: rgba(255,255,255,.07); --hl: rgba(255,255,255,.20);
  --ink: #e9ebef; --dim: #9a9fa8; --faint: #5f646d;
  --red: #ff2b3d; --red2: #ff5061; --red3: #ff8b97; --link: #8fb4ff;
  --head: "Chakra Petch", "Inter", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace; --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: radial-gradient(ellipse at 50% 40%, #0d0f16 0%, #08090e 50%, #040407 100%); color: var(--ink); font: 12.5px/1.4 var(--body); overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
canvas { display: block; }
.muted { color: var(--faint); font-size: 11px; }
.ph, .ah span, .chips button, .tabs button, .st span, .rows .r span, .impact span, .pf, .tl-live, .legend, .bottom, .clock small, .tag3, .hstate { font-family: var(--head); text-transform: uppercase; letter-spacing: 1.6px; }

#globe { position: fixed; inset: 0; z-index: 0; }
#leader { position: fixed; inset: 0; z-index: 5; pointer-events: none; width: 100%; height: 100%; }
#leader path { fill: none; stroke: var(--red2); stroke-width: 1.2; filter: drop-shadow(0 0 4px rgba(255,43,61,.8)); }
#leader circle { fill: var(--red3); filter: drop-shadow(0 0 6px rgba(255,43,61,1)); }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(4,4,7,.7) 100%); }
.scan { display: none; }

/* ── panels: charcoal glass, hairline, top highlight ── */
.panel, .mini, .timeline { position: relative; background: var(--panel); border: 1px solid var(--edge); border-radius: 12px; backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 var(--hl), 0 12px 32px rgba(0,0,0,.6); }
.ph { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; color: var(--ink); padding: 11px 16px 8px; }
.ph .ico { width: 7px; height: 7px; border-radius: 50%; background: var(--red2); box-shadow: 0 0 8px var(--red2); }
.ah { display: flex; justify-content: space-between; font-size: 8.5px; color: var(--faint); padding: 8px 14px 3px; font-weight: 600; }
.ah em { font-style: normal; color: var(--red3); font: 9px var(--mono); }

/* ── top bar ── */
.top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 22px; background: linear-gradient(to bottom, rgba(6,7,11,.96), rgba(6,7,11,.4)); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 14px rgba(255,43,61,.55), 0 0 0 1px rgba(255,43,61,.35); }
.brand b { display: block; font: 700 22px var(--head); letter-spacing: 5px; line-height: 1; }
.brand small { display: block; font: 600 8px var(--head); letter-spacing: 3.6px; text-transform: uppercase; color: var(--faint); margin-top: 3px; }
.tabs { position: relative; display: flex; gap: 2px; padding: 0 26px; height: 60px; align-items: center; }
.tabs .frame { position: absolute; left: -10px; right: -10px; bottom: 4px; height: 22px; border: 1px solid rgba(255,255,255,.12); border-top: 0; border-radius: 0 0 18px 18px; pointer-events: none; }
.tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 11px; letter-spacing: 2px; color: var(--dim); padding: 12px 16px; }
.tabs button .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red2); box-shadow: 0 0 8px var(--red2); }
.tabs button .pip { width: 3px; height: 3px; border-radius: 50%; background: var(--ink); }
.tabs button:hover, .tabs button.on { color: #fff; }
.tabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--red2); box-shadow: 0 0 10px 2px rgba(255,43,61,.8); border-radius: 2px; }
.topright { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.tag3 { font-size: 8px; letter-spacing: 2.8px; color: var(--faint); text-align: right; line-height: 1.55; font-weight: 600; }
.slash { width: 1.5px; height: 34px; background: var(--red2); transform: skewX(-22deg); box-shadow: 0 0 8px var(--red2); }
.clock b { display: block; font: 500 13px var(--mono); letter-spacing: 1px; }
.clock small { display: block; font-size: 8px; letter-spacing: 2.6px; color: var(--faint); margin-top: 1px; }
.menu { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.2); display: grid; place-content: center; gap: 4px; border-radius: 6px; }
.menu span { width: 15px; height: 1.5px; background: var(--ink); }
.buy { background: var(--red); color: #fff; padding: 7px 14px; font: 600 10px var(--head); letter-spacing: 2.4px; text-transform: uppercase; border-radius: 4px; }

/* ── columns ── */
.col { position: fixed; z-index: 10; top: 72px; bottom: 50px; display: flex; flex-direction: column; gap: 12px; transition: transform .35s cubic-bezier(.2,.9,.2,1), opacity .3s; }
.col.left { left: 20px; width: 400px; }
.col.right { right: 20px; width: 424px; }
body.tab-map .col.left { opacity: 0; pointer-events: none; transform: translateX(-40px); }
body.tab-map .col.right .panel:not(.card) { opacity: 0; pointer-events: none; }
body.tab-map .col.right .card { top: 0 !important; }

/* stats — reference: 460×157 */
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 4px 4px 4px; flex: none; }
.st { padding: 12px 14px 10px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.st + .st:not(.wide) { border-left: 1px solid var(--edge2); }
.st.wide { grid-column: 1 / 3; border-top: 1px solid var(--edge2); }
.st.wide + .st { border-top: 1px solid var(--edge2); border-left: 1px solid var(--edge2); }
.st span { font-size: 9px; font-weight: 600; color: var(--dim); letter-spacing: 1.5px; white-space: nowrap; }
.st.hi span { color: var(--red3); }
.st b { font: 400 23px var(--mono); line-height: 1.05; display: flex; align-items: center; gap: 8px; color: #fff; }
.st b small { font-size: 13px; color: var(--dim); }
.st b.bump { animation: bump .5s cubic-bezier(.2,1.8,.4,1); color: var(--red3); }
@keyframes bump { 50% { transform: scale(1.1) } }
.st canvas { position: absolute; right: 16px; bottom: 14px; width: 54px; height: 16px; filter: drop-shadow(0 0 3px rgba(255,43,61,.9)); }
.st .bars { position: absolute; right: 16px; bottom: 15px; display: flex; gap: 3px; align-items: flex-end; height: 16px; }
.st .bars i { width: 5px; background: var(--red); box-shadow: 0 0 5px rgba(255,43,61,.7); }
.st .delta { position: absolute; right: 16px; bottom: 10px; font: 500 10px var(--mono); color: var(--red2); font-style: normal; text-align: right; }
.st .delta::before { content: ""; display: block; width: 38px; height: 3px; background: linear-gradient(90deg, var(--red), transparent); margin: 0 0 2px auto; }

/* feed — rows ~48px like the reference */
.feed, .analytics, .sources { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ph .srch { margin-left: auto; width: 26px; height: 26px; border: 1px solid var(--edge); border-radius: 6px; position: relative; }
.ph .srch::before { content: ""; position: absolute; left: 7px; top: 6px; width: 8px; height: 8px; border: 1.5px solid var(--dim); border-radius: 50%; }
.ph .srch::after { content: ""; position: absolute; left: 15px; top: 15px; width: 5px; height: 1.5px; background: var(--dim); transform: rotate(45deg); }
.ph .srch.on { border-color: var(--red2); }
.chipwrap { position: relative; }
.chipwrap::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 24px; background: linear-gradient(90deg, transparent, rgba(13,15,21,.95)); pointer-events: none; }
.chips { display: flex; gap: 6px; padding: 2px 16px 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; font-size: 9px; font-weight: 600; letter-spacing: 1.3px; color: var(--dim); padding: 5px 12px; border-radius: 4px; background: rgba(255,255,255,.07); }
.chips button.on { background: var(--red); color: #fff; box-shadow: 0 0 12px rgba(255,43,61,.6); }
.chips button.off { color: var(--faint); cursor: default; }
.q { margin: 0 16px 6px; font: 12px var(--body); color: var(--ink); background: rgba(255,255,255,.05); border: 1px solid var(--edge); border-radius: 5px; padding: 5px 9px; }
.list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 2px 12px 4px; }
.list::-webkit-scrollbar { display: none; }
.fi { display: grid; grid-template-columns: 30px 1fr auto; gap: 0 10px; padding: 7px 4px; border-radius: 6px; cursor: pointer; align-items: start; }
.fi:hover, .fi.on { background: rgba(255,255,255,.04); }
.fi.launch { box-shadow: inset 2px 0 0 var(--red); }
.fi .av { width: 30px; height: 30px; border-radius: 50%; background: #1a1c22; object-fit: cover; grid-row: 1 / 3; margin-top: 2px; }
.fi .who { font: 500 12px/1.2 var(--body); color: var(--ink); min-width: 0; }
.fi .who small { display: block; font: 9.5px/1.2 var(--body); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.fi .ago { font: 10px var(--body); color: var(--faint); grid-column: 3; white-space: nowrap; padding-top: 1px; }
.fi .tt { grid-column: 2 / 4; font: 11.5px/1.3 var(--body); color: #d9dce2; margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fi .tk { grid-column: 2 / 4; font: 500 9px var(--mono); color: var(--red3); letter-spacing: .8px; }
.pf { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--edge2); font-size: 8.5px; letter-spacing: 1.3px; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; }
.pf > span { flex: none; } .pf em { font-style: normal; display: flex; gap: 10px; overflow: hidden; } .pf em b { color: var(--dim); font-weight: 600; } .pf em i { color: var(--faint); font-style: normal; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 14px 12px; }
.tags i { font: 600 9px var(--head); letter-spacing: 1.3px; text-transform: uppercase; color: var(--red3); border: 1px solid rgba(255,43,61,.35); padding: 3px 7px; border-radius: 4px; font-style: normal; }
.tags i .n { color: var(--faint); margin-left: 5px; font-family: var(--mono); }
.analytics canvas { width: calc(100% - 28px); height: 50px; margin: 0 14px; }
.si { display: grid; grid-template-columns: 24px 1fr auto; gap: 9px; align-items: center; padding: 6px; border-radius: 6px; cursor: pointer; }
.si:hover { background: rgba(255,255,255,.04); }
.si img { width: 22px; height: 22px; border-radius: 50%; background: #1a1c22; }
.si b { font: 500 12px var(--body); } .si small { display: block; font: 9.5px var(--mono); color: var(--faint); } .si em { font: 500 11px var(--mono); color: var(--red3); font-style: normal; }

/* ── centre overlays ── */
.mini { position: fixed; z-index: 9; }
.mini.act { top: 72px; left: 434px; width: 210px; padding-bottom: 4px; }
.mini.act canvas { width: 182px; height: 44px; margin: 0 14px; }
.mini.act .axis { display: flex; justify-content: space-between; padding: 3px 14px 4px; font: 7.5px var(--mono); color: var(--faint); letter-spacing: 1px; }
.mini.legend { top: 72px; right: 458px; padding: 9px 12px; font-size: 8px; letter-spacing: 1.4px; color: var(--faint); font-weight: 600; display: grid; gap: 4px; }
.mini.legend div::before { content: "▪"; color: var(--red); margin-right: 7px; opacity: .45; }
.mini.legend div.on { color: var(--dim); } .mini.legend div.on::before { opacity: 1; }
.mini.coords { bottom: 118px; right: 458px; width: 170px; padding: 6px; display: grid; gap: 5px; }
.mini.coords canvas { width: 156px; height: 78px; margin: 0 auto; border-radius: 4px; }
.mini.coords .cv { display: flex; justify-content: space-between; font: 500 10px var(--mono); color: var(--ink); padding: 0 4px 2px; }
.timeline { position: fixed; z-index: 9; bottom: 58px; left: 434px; right: 458px; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: rgba(13,15,21,.5); }
.timeline .tl-live { display: inline-flex; align-items: center; gap: 7px; font-size: 9.5px; letter-spacing: 2.4px; color: var(--ink); font-weight: 600; }
.timeline .tl-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--red2); box-shadow: 0 0 10px var(--red2); }
.tl-wrap { flex: 1; min-width: 0; position: relative; height: 100%; }
.timeline canvas { width: 100%; height: 36px; margin-top: 3px; }
.timeline .tl-labels { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: space-between; font: 8px var(--mono); color: var(--faint); letter-spacing: 1px; pointer-events: none; }
.timeline .tl-labels b { color: var(--red2); }
body.tab-map .mini.act { left: 20px; } body.tab-map .mini.legend, body.tab-map .mini.coords { right: 20px; } body.tab-map .timeline { left: 20px; right: 20px; }

/* ── right column ── */
.strength { flex: none; }
.ph .hstate { display: none; }
.sg { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; padding: 0 18px 14px; }
.gauge { position: relative; width: 120px; height: 120px; }
.gauge svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 7; }
.gauge .bgc { stroke: rgba(255,255,255,.1); }
.gauge .fgc { stroke: var(--red); stroke-dasharray: 207; stroke-dashoffset: 207; transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 6px rgba(255,43,61,.8)); }
.gauge .num { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; gap: 1px; line-height: 1; padding-top: 44px; }
.gauge .num span { font: 400 32px var(--mono); color: #fff; }
.gauge .num small { font: 400 13px var(--mono); color: var(--dim); }
.rows .r { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--edge2); font-size: 10.5px; font-weight: 600; color: var(--dim); letter-spacing: 1.8px; }
.rows .r:last-child { border-bottom: 0; }
.rows .r em { font: 500 12.5px var(--mono); color: #fff; font-style: normal; }

/* the signal card */
.card { position: absolute; left: 0; right: 0; z-index: 6; max-height: calc(100% - 200px); overflow-y: auto; scrollbar-width: none; background: var(--panel2);
  border: 1.5px solid var(--red2); box-shadow: 0 0 22px rgba(255,43,61,.28), inset 0 1px 0 rgba(255,255,255,.1), 0 16px 40px rgba(0,0,0,.6); animation: cardin .3s cubic-bezier(.2,1.2,.3,1); }
@keyframes cardin { from { opacity: 0; transform: translateX(14px) } }
.card .ch { display: flex; align-items: center; gap: 8px; padding: 11px 16px 8px; font: 700 12.5px var(--head); letter-spacing: 1.3px; text-transform: uppercase; line-height: 1.2; }
.card .ch b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: #fff; }
.card .ch .flag { width: 16px; height: 11px; object-fit: cover; border-radius: 2px; flex: none; }
.card .ch em { font: 8.5px var(--mono); color: var(--faint); letter-spacing: 1px; font-style: normal; flex: none; }
.card .ch .bar { margin-left: auto; width: 2px; height: 12px; background: var(--red2); flex: none; }
.card .ch button { color: var(--ink); font-size: 16px; line-height: 1; font-weight: 300; flex: none; }
.card .cb { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 4px 16px 0; }
.card .av { width: 44px; height: 44px; border-radius: 8px; background: #fff; object-fit: cover; }
.card .cm { min-width: 0; }
.card .who { display: flex; justify-content: space-between; align-items: baseline; font: 400 12.5px var(--body); color: var(--dim); }
.card .who small { font: 10px var(--body); color: var(--faint); }
.card .ttl { font: 600 13.5px/1.35 var(--body); margin-top: 3px; overflow-wrap: anywhere; color: #fff; }
.card .lnk { display: inline-block; margin-top: 4px; font: 11px var(--body); color: var(--link); border-bottom: 1px solid rgba(143,180,255,.35); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .decode { margin: 10px 16px 0; height: 2px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.card .decode i { position: absolute; inset: 0; width: 35%; background: linear-gradient(90deg, transparent, var(--red3), transparent); animation: scanbar .8s linear infinite; }
@keyframes scanbar { from { left: -35% } to { left: 100% } }
.card .take { margin: 10px 16px 0; padding-top: 10px; border-top: 1px solid var(--edge2); font: 13px/1.5 var(--body); color: #d9dce2; overflow-wrap: anywhere; }
.card .take:empty { display: none; }
.card .take:not(.done)::after { content: "▍"; color: var(--red3); animation: blink .8s infinite; }
@keyframes blink { 50% { opacity: .2 } }
.card .ctags { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 16px 0; }
.card .ctags i { font: 600 9.5px var(--head); letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink); background: rgba(255,255,255,.08); padding: 5px 9px; border-radius: 4px; font-style: normal; opacity: 0; animation: tagin .25s forwards; }
@keyframes tagin { from { transform: translateY(6px) } to { opacity: 1 } }
.card .impact { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin: 12px 16px 0; padding-top: 10px; border-top: 1px solid var(--edge2); font-size: 10px; font-weight: 600; letter-spacing: 2px; color: var(--faint); }
.card .impact i { height: 4px; background: rgba(255,255,255,.09); border-radius: 3px; overflow: hidden; }
.card .impact i b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--red2)); box-shadow: 0 0 8px rgba(255,43,61,.9); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.card .impact em { font: 500 12px var(--mono); color: #fff; font-style: normal; }
.card .call { margin: 10px 16px 4px; padding: 8px 11px; font: 600 10.5px var(--head); letter-spacing: 2px; text-transform: uppercase; border-radius: 4px; }
.card .call.launch { background: var(--red); color: #fff; box-shadow: 0 0 16px rgba(255,43,61,.55); }
.card .call.pass { border: 1px dashed rgba(255,43,61,.35); color: var(--faint); }
.card .call small { display: block; font: 9.5px var(--mono); letter-spacing: 1px; text-transform: none; opacity: .8; margin-top: 2px; }
.card .call a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); }
.card .prog { display: block; margin: 6px 16px 10px; height: 2px; width: 56px; background: var(--ink); opacity: .7; }

/* hot regions: list + heat map side by side, like the reference */
.regions { flex: none; margin-top: auto; }
.rgwrap { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; padding: 2px 16px 12px; align-items: center; }
.rg { display: grid; gap: 6px; }
.rg .row { display: grid; grid-template-columns: 16px minmax(0, 1fr) 64px 24px; gap: 8px; align-items: center; font: 400 11.5px var(--body); }
.rg .row > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg .row .i { width: 16px; height: 16px; display: grid; place-items: center; font: 500 9px var(--mono); color: var(--dim); background: rgba(255,255,255,.08); border-radius: 3px; }
.rg .row .b { height: 4px; border-radius: 3px; }
.rg .row .b i { display: block; height: 100%; background: var(--red2); border-radius: 3px; box-shadow: 0 0 6px rgba(255,43,61,.7); }
.rg .row:first-child .b i { background: var(--red3); opacity: .85; }
.rg .row em { font: 400 11px var(--body); color: var(--dim); text-align: right; font-style: normal; }
#c-heat { width: 150px; height: 75px; border-radius: 4px; background: rgba(255,255,255,.03); border: 1px solid var(--edge2); }

/* ── bottom bar ── */
.bottom { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: 42px; display: flex; align-items: center; gap: 18px; padding: 0 22px; background: rgba(6,7,11,.95); border-top: 1px solid var(--edge2); font-size: 8.5px; letter-spacing: 2.4px; color: var(--faint); font-weight: 600; }
.bottom .v b { color: var(--ink); } .bottom .v i { color: var(--red); font-style: normal; margin: 0 6px; }
.bottom .tw { flex: 1; min-width: 0; overflow: hidden; position: relative; height: 100%; }
.bottom .track { position: absolute; white-space: nowrap; line-height: 42px; font: 500 11px var(--mono); letter-spacing: 0; }
.bottom .track a { margin-right: 22px; color: var(--red3); text-transform: none; } .bottom .track a small { color: var(--faint); margin-left: 6px; }
.bottom .track a.fresh { display: inline-block; animation: shout .7s ease-in-out 3; }
@keyframes shout { 50% { transform: scale(1.15); color: #fff } }
.bottom .r { display: flex; gap: 14px; } .bottom .r a:hover { color: var(--ink); }

/* ── effects ── */
#flash { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(255,140,150,.95), rgba(255,43,61,.45) 20%, transparent 55%); }
#flash.go { animation: flash .8s ease-out; } @keyframes flash { 0%{opacity:0} 10%{opacity:1} 100%{opacity:0} }
body.quake { animation: quake .45s ease-in-out; } @keyframes quake { 20%{transform:translate(-7px,4px)} 50%{transform:translate(6px,-5px)} 80%{transform:translate(-3px,2px)} }
#stamp { position: fixed; inset: 0; z-index: 35; pointer-events: none; display: grid; place-items: center; }
.stampbox { text-align: center; animation: stampin .95s cubic-bezier(.2,1.6,.3,1) both; }
.stampbox span { display: block; font: 700 96px var(--head); letter-spacing: 20px; color: var(--red3); text-shadow: 0 0 50px rgba(255,43,61,1), 0 0 4px #fff; }
.stampbox small { display: block; font: 600 14px var(--head); letter-spacing: 6px; color: var(--ink); text-transform: uppercase; }
@keyframes stampin { 0%{transform:scale(2.4);opacity:0;filter:blur(10px)} 35%{transform:scale(1);opacity:1;filter:none} 80%{opacity:1} 100%{opacity:0;transform:scale(1.06)} }
.reticle { width: 0; height: 0; position: relative; pointer-events: none; }
.reticle svg { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; }
.reticle .r1 { animation: spin 5s linear infinite; transform-origin: 50% 50%; } .reticle .r2 { animation: spin 8s linear infinite reverse; transform-origin: 50% 50%; }
.reticle.lock .r1, .reticle.lock .r2 { animation-duration: 1s; }
@keyframes spin { to { transform: rotate(360deg) } }
.citytag { position: absolute; left: 24px; top: -11px; white-space: nowrap; font: 600 10px var(--head); letter-spacing: 1.6px; text-transform: uppercase; color: #fff; background: rgba(13,15,21,.92); border: 1px solid rgba(255,255,255,.35); padding: 3px 8px; border-radius: 3px; pointer-events: none; }
.citytag::before { content: ""; position: absolute; left: -24px; top: 50%; width: 24px; height: 1px; background: rgba(255,255,255,.6); }
.citytag.small { left: 13px; top: -9px; font-size: 9px; padding: 2px 6px; color: var(--dim); border-color: rgba(255,255,255,.22); }
.citytag.small::before { left: -13px; width: 13px; }
.tip { font: 11px var(--mono); background: rgba(13,15,21,.95); border: 1px solid var(--edge); padding: 6px 9px; color: var(--ink); border-radius: 4px; } .tip b { color: var(--red3); }

/* ── boot / lore ── */
#boot { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: grid; place-items: center; transition: opacity .5s; }
#boot.out { opacity: 0; pointer-events: none; }
.bootbox { font: 12px var(--mono); color: var(--dim); letter-spacing: 1px; min-width: 360px; }
.bl div { opacity: 0; animation: bootline .2s forwards; } .bl div b { color: var(--red3); } .bl div.ok::after { content: "  OK"; color: var(--red3); }
@keyframes bootline { to { opacity: 1 } }
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.75); display: grid; place-items: center; padding: 24px; }
.modal-card { position: relative; width: 100%; max-width: 540px; background: var(--panel2); border: 1px solid var(--edge); border-radius: 12px; padding: 26px 28px; box-shadow: inset 0 1px 0 var(--hl); }
.modal-card h2 { margin: 0 0 12px; font: 700 22px var(--head); letter-spacing: 5px; } .modal-card p { margin: 0 0 12px; color: var(--dim); font-size: 13px; } .modal-card .fine { font-size: 11.5px; color: var(--faint); }
.modal-x { position: absolute; top: 12px; right: 16px; color: var(--dim); font-size: 22px; }
.ca { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--edge2); } .ca span { display: block; font: 600 9px var(--head); letter-spacing: 2px; text-transform: uppercase; color: var(--faint); } .ca code { font: 11.5px var(--mono); word-break: break-all; color: var(--red3); cursor: pointer; }

@media (max-width: 1400px) { .col.left { width: 350px; } .col.right { width: 350px; } .mini.act { left: 384px; } .timeline { left: 384px; right: 384px; } .mini.coords, .mini.legend { right: 384px; } .tag3, .slash { display: none; } }
@media (max-width: 900px) { .col.left, .mini, .timeline, .tabs { display: none; } .col.right { left: 12px; right: 12px; width: auto; top: auto; max-height: 55vh; } }

/* avatar with a letter fallback */
.avw { position: relative; width: 30px; height: 30px; grid-row: 1 / 3; margin-top: 2px; }
.avw.big { width: 44px; height: 44px; margin: 0; grid-row: auto; }
.avw img { position: absolute; inset: 0; width: 100%; height: 100%; }
.avw i { position: absolute; inset: 0; display: none; place-items: center; border-radius: 50%; background: #23262e; color: var(--dim); font: 600 12px var(--head); font-style: normal; }
.avw.big i { border-radius: 8px; font-size: 18px; }
.avw img.broken { visibility: hidden; } .avw img.broken + i { display: grid; }

/* lore: the terms */
.modal-card .voice { font: 500 15px/1.45 var(--body); color: var(--ink); margin-bottom: 14px; }
.modal-card h3 { margin: 18px 0 8px; font: 700 11px var(--head); letter-spacing: 3px; text-transform: uppercase; color: var(--red3); }
.terms { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.terms li { position: relative; padding-left: 16px; font-size: 13px; color: var(--dim); line-height: 1.5; }
.terms li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--red2); box-shadow: 0 0 8px var(--red2); }
.terms li b { color: var(--ink); font-weight: 600; }
.terms .txlink { display: block; margin-top: 2px; font: 11px var(--mono); color: var(--faint); }
.terms .txlink a { color: var(--link); border-bottom: 1px solid rgba(143,180,255,.35); }
.modal-card { max-width: 580px; max-height: 86vh; overflow-y: auto; }

/* contract strip in the bottom bar */
.cabar { display: inline-flex; align-items: center; gap: 10px; padding: 5px 10px 5px 12px; border: 1px solid rgba(255,43,61,.45); border-radius: 6px; background: rgba(255,43,61,.08); letter-spacing: 0; text-transform: none; }
.cabar .lbl { font: 600 9px var(--head); letter-spacing: 2px; text-transform: uppercase; color: var(--red3); }
.cabar code { font: 500 11.5px var(--mono); color: var(--ink); }
.cabar button, .cabar a { font: 600 9px var(--head); letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); padding: 3px 8px; border: 1px solid var(--edge); border-radius: 4px; }
.cabar button:hover, .cabar a:hover { color: var(--ink); border-color: var(--dim); }
.cabar a { background: var(--red); color: #fff; border-color: transparent; }
.cabar button.done { color: var(--red3); border-color: var(--red3); }
@media (max-width: 1400px) { .cabar code { font-size: 10px; } }
@media (max-width: 1100px) { .cabar { display: none; } }
