/* Multisight: control-room wall. Dark olive-grey, bone text, one muted signal-amber accent. */
:root {
  --bg: #1a1d19; --bg1: #1e221d; --bg2: #232822; --bg3: #2a3029; --bg4: #323930;
  --bone: #e8e4d8; --bone2: #c9c5b8; --mute: #9a9d8f; --dim: #6c7064;
  --line: rgba(232, 228, 216, .11); --line2: rgba(232, 228, 216, .2);
  --amber: #b8913f; --amber2: #cfa95a; --amberA: rgba(184, 145, 63, .16); --amberB: rgba(184, 145, 63, .32);
  --sans: 'IBM Plex Sans Condensed', 'Arial Narrow', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --r: 3px; --gut: clamp(16px, 3vw, 36px); --max: 1380px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--bone); font: 400 16px/1.55 var(--sans); overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px; opacity: .22; }
main, .foot { position: relative; z-index: 1; }
a { color: var(--bone); text-decoration-color: var(--line2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--amber); }
code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--bg3); padding: .08em .35em; border-radius: 2px; overflow-wrap: anywhere; }
.dim { color: var(--mute); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--amber); color: #111; padding: 8px 12px; }
.skip:focus { top: 10px; }
:focus-visible { outline: 2px solid var(--amber2); outline-offset: 2px; }
button { font: inherit; color: inherit; }

/* ---------- console (nav) ---------- */
.console { position: sticky; top: 0; z-index: 100; background: rgba(23, 26, 22, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.console__row { max-width: var(--max); margin: 0 auto; padding: 10px var(--gut); display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); margin: 0; }
.brand__mark { width: 26px; height: 26px; fill: none; stroke: var(--bone2); stroke-width: 1.4; }
.brand__mark circle { fill: var(--amber); stroke: none; }
.brand__word { font-weight: 600; letter-spacing: .02em; font-size: 19px; }
.chan { margin-left: auto; position: relative; }
.chan__list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.chan__list a { display: flex; align-items: baseline; gap: 6px; padding: 6px 10px; text-decoration: none; color: var(--bone2); font-size: 14px; letter-spacing: .03em; text-transform: uppercase; border-radius: var(--r); transition: background .2s, color .2s; }
.chan__list a i { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--dim); }
.chan__list a:hover, .chan__list a.is-cur { background: var(--bg3); color: var(--bone); }
.chan__list a.is-cur i { color: var(--amber); }
.xlink svg { width: 15px; height: 15px; fill: currentColor; }
.chan__toggle { display: none; background: none; border: 1px solid var(--line2); border-radius: var(--r); width: 38px; height: 34px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 16px; height: 1.5px; background: var(--bone); margin: 0 auto; position: relative; transition: transform .25s var(--ease); }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -5px; } .bars::after { top: 5px; }
.chan__toggle[aria-expanded="true"] .bars { background: transparent; }
.chan__toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.chan__toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
.console__clock { margin: 0; font: 500 12px var(--mono); color: var(--mute); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: rec 2.4s steps(1) infinite; }
@keyframes rec { 50% { opacity: .25; } }
.wallet-slot { flex: 0 0 auto; }

.strip { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: flex; border-top: 1px solid var(--line); overflow: hidden; }
.strip__cell { flex-shrink: 0; display: flex; gap: 8px; align-items: baseline; padding: 7px 18px 7px 0; margin-right: 18px; border-right: 1px solid var(--line); white-space: nowrap; min-width: 0; }
.strip__cell span { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.strip__cell b { font: 500 12.5px var(--mono); color: var(--bone2); transition: color .6s; }
.strip__cell b.flash { color: var(--amber2); transition: none; }
.strip__cell--grow { flex: 1 1 auto; flex-shrink: 1; border-right: 0; overflow: hidden; }
.strip__cell--grow b { overflow: hidden; text-overflow: ellipsis; }

/* ---------- wallet button ---------- */
.wb { position: relative; }
.wb-btn { font: 500 13px var(--mono); background: var(--amber); color: #15170f; border: 1px solid var(--amber); padding: 7px 13px; border-radius: var(--r); cursor: pointer; white-space: nowrap; transition: transform .12s, background .2s; }
.wb-btn:hover { background: var(--amber2); }
.wb-btn:active { transform: scale(.97); }
.wb-btn.is-on { background: var(--bg3); color: var(--bone); border-color: var(--line2); }
.wb-btn.is-on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-right: 8px; vertical-align: 1px; }
.wb-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 500; width: min(300px, calc(100vw - 32px)); background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r); padding: 8px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.wb-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: 2px; padding: 9px 10px; color: var(--bone); text-decoration: none; font-size: 14px; cursor: pointer; }
.wb-item:hover { background: var(--bg3); }
.wb-item img { width: 18px; height: 18px; border-radius: 3px; }
.wb-addr { font: 12px var(--mono); color: var(--bone2); padding: 8px 10px; word-break: break-all; border-bottom: 1px solid var(--line); }
.wb-bal { font: 500 13px var(--mono); color: var(--amber2); padding: 8px 10px; }
.wb-note { font-size: 12.5px; color: var(--mute); padding: 8px 10px; }

/* ---------- buttons, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 15px var(--sans); letter-spacing: .02em; padding: 11px 18px; border-radius: var(--r); border: 1px solid var(--line2); background: transparent; color: var(--bone); text-decoration: none; cursor: pointer; transition: transform .12s var(--ease), background .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn--amber { background: var(--amber); border-color: var(--amber); color: #15170f; }
.btn--amber:hover { background: var(--amber2); }
.btn--ghost:hover { background: var(--bg3); border-color: var(--bone2); }
.btn--sm { padding: 8px 13px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: progress; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--bone); text-decoration: underline; text-decoration-color: var(--line2); cursor: pointer; font: inherit; }
.field { width: 100%; min-width: 0; font: 14px var(--mono); color: var(--bone); background: var(--bg1); border: 1px solid var(--line2); border-radius: var(--r); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amberA); }
.field--sm { padding: 8px 10px; font-size: 13px; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.ctl { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ctl > span:first-child { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.ctl--grow { flex: 1; }
.range { display: flex; align-items: center; gap: 10px; }
.range output { font: 500 13px var(--mono); color: var(--amber2); min-width: 44px; text-align: right; }
input[type=range] { flex: 1; min-width: 0; accent-color: var(--amber); }

/* ---------- shimmer ---------- */
.shimmer { height: 14px; border-radius: 2px; background: linear-gradient(90deg, var(--bg3) 0%, var(--bg4) 40%, var(--bg3) 80%); background-size: 200% 100%; animation: sh 1.4s linear infinite; }
.shimmer--block { height: 120px; }
.sh:empty::after, b.sh.is-load { color: transparent; }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .shimmer { animation: none; } }

/* ---------- reveal / load choreography ---------- */
.ld { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.is-ready .ld { opacity: 1; transform: none; }
.ld--1 { transition-delay: .05s; } .ld--3 { transition-delay: .65s; } .ld--4 { transition-delay: .85s; } .ld--5 { transition-delay: 1.3s; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.split .wi { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(.2s + var(--i) * 55ms); }
.is-ready .split .wi { transform: none; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ld, .reveal, .split .wi { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- wall (hero) ---------- */
.wall { max-width: var(--max); margin: 0 auto; padding: 22px var(--gut) 10px; }
.wall__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(198px, auto); gap: 10px; }
.mon { position: relative; background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.mon::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px); opacity: .5; }
.mon--master { grid-column: span 2; grid-row: span 2; background: linear-gradient(180deg, var(--bg2), var(--bg1)); }
.mon__bar { display: flex; justify-content: space-between; gap: 10px; padding: 7px 11px; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--mute); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.mon__bar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon__rec { color: var(--amber2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mon__rec::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: rec 2.4s steps(1) infinite; }
.mon__master { padding: clamp(22px, 3.2vw, 46px); display: flex; flex-direction: column; justify-content: center; flex: 1; position: relative; z-index: 2; }
.eyebrow { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--amber2); margin: 0 0 18px; }
.display { font-weight: 600; font-size: clamp(38px, 5.2vw, 76px); line-height: .98; letter-spacing: -.012em; margin: 0 0 22px; }
.display em { font-style: italic; font-weight: 400; color: var(--bone2); }
.lede { font-size: clamp(16px, 1.25vw, 18.5px); color: var(--bone2); max-width: 52ch; margin: 0 0 26px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ca-chip { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; border: 1px solid var(--line2); padding: 6px 8px 6px 10px; border-radius: var(--r); margin: 0 0 18px; align-self: flex-start; }
.ca-chip__lbl { font: 600 10px var(--mono); color: var(--amber2); }
.ca-chip code { background: none; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; min-width: 0; }

.mon--cam { cursor: pointer; transition: border-color .25s, transform .25s var(--ease); text-align: left; padding: 0; font: inherit; color: inherit; }
.mon--cam:hover { border-color: var(--amberB); }
.mon--cam:active { transform: scale(.985); }
.mon--cam.is-flash { border-color: var(--amber); }
.mon__view { position: relative; flex: 1; min-height: 120px; }
.mon__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mon__osd { position: absolute; left: 11px; right: 11px; bottom: 9px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; pointer-events: none; }
.mon__bal { font: 600 22px var(--mono); line-height: 1; letter-spacing: -.02em; }
.mon__bal small { font-size: 11px; color: var(--mute); font-weight: 500; margin-left: 3px; }
.mon__usd { font: 11px var(--mono); color: var(--mute); margin-top: 4px; }
.mon__side { text-align: right; font: 10.5px var(--mono); color: var(--mute); line-height: 1.5; white-space: nowrap; }
.mon__side b { color: var(--bone2); font-weight: 500; }
.mon__top { position: absolute; top: 9px; left: 11px; z-index: 2; display: flex; flex-direction: column; gap: 2px; font: 10.5px var(--mono); pointer-events: none; }
.mon__ts { color: var(--bone2); }
.mon__info { color: var(--dim); }
.master-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(26px, 4vh, 48px); }
.master-kpis:empty { display: none; }
.master-kpis .kpi { border: 0; border-radius: 0; background: var(--bg1); padding: 10px 12px; }
.master-kpis .kpi b { font-size: 19px; }
.master-kpis .kpi span { font-size: 9.5px; }
.mon--feed { grid-column: span 1; }
.feed { list-style: none; margin: 0; padding: 6px 0; font: 11.5px var(--mono); position: relative; z-index: 2; flex: 1; }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 4px 11px; color: var(--mute); align-items: baseline; }
.feed li.is-new { animation: newrow 2.4s var(--ease); }
.feed__t { color: var(--dim); }
.feed__s { color: var(--bone2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.feed__s:hover { text-decoration: underline; }
.feed__r { color: var(--dim); font-size: 10px; text-transform: uppercase; }
.mon--skel .mon__view { background: linear-gradient(90deg, var(--bg1) 0%, var(--bg2) 40%, var(--bg1) 80%); background-size: 200% 100%; animation: sh 1.6s linear infinite; }
.mon--err .mon__view { display: grid; place-items: center; font: 12px var(--mono); color: var(--mute); }
.wall__cap { font-size: 13.5px; color: var(--mute); margin: 14px 0 0; max-width: 110ch; }
.tag { font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #15170f; background: var(--amber); padding: 2px 6px; border-radius: 2px; margin-right: 6px; }
.tag--q { background: var(--bg4); color: var(--bone2); }

/* ---------- sections ---------- */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 110px) var(--gut) 0; }
.sec__head { display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 24px; margin-bottom: 28px; border-top: 1px solid var(--line2); padding-top: 18px; }
.sec__no { font: 500 12px var(--mono); color: var(--amber2); letter-spacing: .1em; margin: 6px 0 0; grid-row: span 2; }
.h2 { font-weight: 600; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 12px; }
.sec__lede { color: var(--bone2); max-width: 70ch; margin: 0; font-size: 17px; }
.status { font: 13px var(--mono); color: var(--mute); min-height: 1.4em; margin: 10px 0; }
.status.is-err { color: var(--amber2); }
.status .retry { margin-left: 10px; }

.probe { display: flex; gap: 10px; max-width: 880px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font: 12px var(--mono); background: var(--bg2); border: 1px solid var(--line); color: var(--bone2); padding: 6px 10px; border-radius: 2px; cursor: pointer; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--amberB); }
.chip.is-on { border-color: var(--amber); background: var(--amberA); color: var(--bone); }
.chip b { color: var(--amber2); font-weight: 500; margin-left: 6px; }

/* panels */
.panel { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; position: relative; }
.panel__bar { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.panel__meta { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; text-transform: none; letter-spacing: 0; }
.insp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px; margin-top: 16px; }
.cfg { padding: 16px; }
.cfg__big { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.cfg__ring { width: 96px; height: 96px; flex: 0 0 auto; }
.cfg__ring circle { fill: none; stroke-width: 7; }
.cfg__ring .trk { stroke: var(--bg3); }
.cfg__ring .arc { stroke: var(--amber); stroke-linecap: butt; transition: stroke-dashoffset 1.2s var(--ease); }
.cfg__ring text { fill: var(--bone); font: 600 22px var(--mono); text-anchor: middle; }
.cfg__thr { font-size: 30px; font-weight: 600; line-height: 1; }
.cfg__thr span { display: block; font-size: 14px; font-weight: 400; color: var(--mute); margin-top: 6px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--mute); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.kv dd { margin: 0; font-family: var(--mono); font-size: 12.5px; word-break: break-all; color: var(--bone2); }
.kv dd b { color: var(--bone); font-weight: 500; }
.badge { display: inline-block; font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 2px; border: 1px solid var(--line2); color: var(--bone2); vertical-align: 1px; word-break: normal; }
.badge--a { border-color: var(--amber); color: var(--amber2); }
.badge--you { background: var(--amber); border-color: var(--amber); color: #15170f; }
.tablewrap { overflow-x: auto; max-width: 100%; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--dim); text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: var(--bg2); }
.tbl tr.is-you { background: var(--amberA); }
.addr { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.perm { display: inline-flex; gap: 3px; }
.perm i { font-style: normal; font: 600 10px var(--mono); width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--line2); color: var(--dim); border-radius: 2px; }
.perm i.on { border-color: var(--amber); color: var(--amber2); background: var(--amberA); }
.copyb { background: none; border: 0; color: var(--mute); cursor: pointer; padding: 0 0 0 6px; font: 11px var(--mono); }
.copyb:hover { color: var(--amber2); }
.copyb.is-done { color: var(--amber2); }

.vaults { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.vault { background: var(--bg1); padding: 13px 14px; min-width: 0; cursor: pointer; border: 0; text-align: left; color: inherit; font: inherit; transition: background .2s; }
.vault:hover { background: var(--bg2); }
.vault.is-on { background: var(--bg2); box-shadow: inset 2px 0 0 var(--amber); }
.vault__n { font: 500 10.5px var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .07em; }
.vault__bal { font: 600 20px var(--mono); margin: 4px 0 2px; }
.vault__addr { font: 11px var(--mono); color: var(--dim); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vault--empty .vault__bal { color: var(--dim); }
.port { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 16px; align-items: start; }
.donut { width: 150px; height: 150px; }
.donut circle { fill: none; stroke-width: 15; transition: stroke-dasharray 1.1s var(--ease); }
.donut text { fill: var(--bone); font-family: var(--mono); text-anchor: middle; }
.port__list { min-width: 0; }
.prow { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.prow:last-child { border-bottom: 0; }
.prow__sw { width: 10px; height: 10px; border-radius: 1px; }
.prow__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow__name small { color: var(--dim); font-family: var(--mono); margin-left: 6px; }
.prow__v { font-family: var(--mono); font-size: 12.5px; text-align: right; white-space: nowrap; }
.prow__v small { display: block; color: var(--dim); font-size: 11px; }
.port__total { font: 600 26px var(--mono); margin: 0 0 8px; }
.port__total small { font: 400 12px var(--sans); color: var(--mute); display: block; margin-top: 3px; }
.empty { color: var(--mute); font-size: 14px; padding: 6px 0; }

/* queue */
.queue-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.queue-head p { margin: 0; font-size: 13px; }
.queue { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.prop { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; min-width: 0; position: relative; overflow: hidden; }
.prop::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--bg4); }
.prop--Active::before, .prop--Approved::before { background: var(--amber); }
.prop__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.prop__idx { font: 600 18px var(--mono); }
.prop__st { font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--bone2); }
.prop--Active .prop__st, .prop--Approved .prop__st { color: var(--amber2); }
.prop__bar { height: 4px; background: var(--bg3); margin: 12px 0 8px; position: relative; overflow: hidden; border-radius: 1px; }
.prop__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--amber); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.prop__bar u { position: absolute; top: -2px; bottom: -2px; width: 1px; background: var(--bone); }
.prop__votes { font: 12px var(--mono); color: var(--mute); display: flex; justify-content: space-between; gap: 8px; }
.prop__dots { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 10px; }
.prop__dots span { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line2); }
.prop__dots .ap { background: var(--amber); border-color: var(--amber); }
.prop__dots .rj { background: var(--bone2); border-color: var(--bone2); }
.prop__when { font: 11px var(--mono); color: var(--dim); margin-top: 10px; }
.prop__addr { font: 11px var(--mono); color: var(--dim); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop--closed { opacity: .62; }
.prop__wait { font: 600 10px var(--mono); text-transform: uppercase; color: #15170f; background: var(--amber); padding: 2px 6px; border-radius: 2px; margin-top: 10px; display: inline-block; }

/* alerts */
.alert-ctl { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.alert-ctl .ctl:first-child { min-width: 230px; flex: 1 1 260px; max-width: 460px; }
.alert-ctl .ctl:nth-child(2) { width: 150px; }
.toggle { gap: 9px; }
.toggle__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); transition: background .2s; }
.toggle[aria-pressed="true"] { border-color: var(--amber); }
.toggle[aria-pressed="true"] .toggle__dot { background: var(--amber); animation: rec 1.6s steps(1) infinite; }
.alert-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.alert-sum:empty { display: none; }
.kpi { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-width: 0; }
.kpi span { display: block; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--mute); }
.kpi b { display: block; font: 600 22px var(--mono); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi small { color: var(--dim); font: 11px var(--mono); }
.kpi--a b { color: var(--amber2); }
.log { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r); font-family: var(--mono); font-size: 12.5px; max-height: 560px; overflow: auto; }
.log__empty { color: var(--mute); padding: 18px; margin: 0; }
.lrow { display: grid; grid-template-columns: 150px 74px minmax(0, 1fr) auto; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); align-items: baseline; }
.lrow:last-child { border-bottom: 0; }
.lrow.is-new { animation: newrow 2.4s var(--ease); }
@keyframes newrow { from { background: var(--amberB); } to { background: transparent; } }
.lrow.is-alert { background: var(--amberA); box-shadow: inset 2px 0 0 var(--amber); }
.lrow__t { color: var(--mute); white-space: nowrap; }
.lrow__d { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.lrow__d.out { color: var(--amber2); }
.lrow__d.in { color: var(--bone2); }
.lrow__d.nil { color: var(--dim); }
.lrow__m { min-width: 0; color: var(--bone2); overflow-wrap: anywhere; }
.lrow__m small { color: var(--dim); display: block; }
.lrow__s { white-space: nowrap; }

/* bytes */
.bytes { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; }
.bytes__grid { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; font: 11.5px var(--mono); min-width: 0; align-content: start; }
.by { text-align: center; padding: 3px 0; border-radius: 2px; color: var(--dim); background: var(--bg2); cursor: default; transition: background .2s, color .2s, transform .2s; opacity: 0; transform: translateY(4px); }
.bytes.is-in .by { opacity: 1; transform: none; transition: opacity .4s, transform .4s, background .2s, color .2s; transition-delay: calc(var(--k, 0) * 2ms); }
.by[data-f] { color: var(--bone2); }
.by.f-disc { background: rgba(232, 228, 216, .09); }
.by.f-key { background: rgba(232, 228, 216, .05); }
.by.f-num { background: var(--amberA); color: var(--amber2); }
.by.f-mem { background: rgba(232, 228, 216, .07); }
.by.f-perm { background: var(--amberB); color: var(--bone); }
.by.f-pad { background: transparent; color: #4b4f46; }
.by.is-hl { background: var(--amber) !important; color: #15170f !important; }
.bytes__key { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 0; font-size: 13px; max-height: 620px; overflow: auto; min-width: 0; }
.fk { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 8px 14px; color: inherit; font: inherit; cursor: pointer; border-left: 2px solid transparent; }
.fk:hover, .fk.is-hl { background: var(--bg2); border-left-color: var(--amber); }
.fk__off { font: 11px var(--mono); color: var(--dim); }
.fk__name { font-weight: 600; }
.fk__val { display: block; font: 11.5px var(--mono); color: var(--bone2); word-break: break-all; margin-top: 2px; }

/* pinned quorum */
.pin { position: relative; height: 360vh; margin-top: clamp(64px, 8vw, 110px); }
.pin__stage { position: sticky; top: 92px; height: calc(100vh - 92px); max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; }
.pin__text { border-top: 1px solid var(--line2); padding-top: 18px; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 12px 0 12px 44px; color: var(--dim); border-bottom: 1px solid var(--line); transition: color .4s; font-size: 16px; }
.steps li::before { content: "0" counter(s); position: absolute; left: 0; top: 13px; font: 500 12px var(--mono); color: var(--dim); transition: color .4s; }
.steps li b { color: inherit; font-weight: 600; }
.steps li.is-on { color: var(--bone); }
.steps li.is-on::before { color: var(--amber2); }
.pin__note { font-size: 12px; color: var(--mute); margin-top: 16px; }
.pin__art { min-width: 0; display: grid; place-items: center; }
.pin__art svg { width: min(100%, 560px, calc(100vh - 150px)); height: auto; }
.q-ring { fill: none; stroke: var(--line2); stroke-width: 1; }
.q-arc { fill: none; stroke: var(--amber); stroke-width: 3; }
.q-node circle { fill: var(--bg2); stroke: var(--line2); stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.q-node.is-ap circle { fill: var(--amber); stroke: var(--amber); }
.q-node.is-init circle { stroke: var(--amber2); stroke-width: 2.5; }
.q-node text { fill: var(--mute); font: 10px var(--mono); text-anchor: middle; }
.q-link { stroke: var(--amber); stroke-width: 1.3; fill: none; }
.q-vault rect { fill: var(--bg2); stroke: var(--bone2); stroke-width: 1.4; }
.q-vault text, .q-label { fill: var(--bone); font-family: var(--mono); text-anchor: middle; }
.q-sub { fill: var(--mute); font: 11px var(--mono); text-anchor: middle; }
.q-clock { fill: none; stroke: var(--amber2); stroke-width: 2; }
.q-out { stroke: var(--amber2); stroke-width: 2; fill: none; stroke-dasharray: 4 6; }

/* threshold */
.thr { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 14px; }
.thr__in { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.thr__out { min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.chart { margin: 0; background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 10px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart figcaption { font: 11.5px var(--mono); color: var(--mute); margin-top: 6px; }
.lg { display: inline-block; width: 14px; height: 2px; vertical-align: 3px; margin: 0 6px 0 0; }
.lg--a { background: var(--amber); } .lg--b { background: var(--bone2); margin-left: 12px; }
.ch-grid line { stroke: var(--line); }
.ch-ax { fill: var(--dim); font: 10px var(--mono); }
.ch-a { fill: none; stroke: var(--amber); stroke-width: 2; }
.ch-b { fill: none; stroke: var(--bone2); stroke-width: 2; stroke-dasharray: 5 4; }
.ch-sel { stroke: var(--bone); stroke-width: 1; stroke-dasharray: 2 3; }
.ch-dot-a { fill: var(--amber); } .ch-dot-b { fill: var(--bone2); }
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .draw { animation: none; stroke-dashoffset: 0; } }

/* pda */
.pda { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; max-width: 880px; }
.pda .ctl:nth-child(2) { width: 110px; }
.pda-out { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 10px; }
.pda-out:empty { display: none; }
.seeds, .tries { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; min-width: 0; font: 12px var(--mono); }
.seed { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.seed span { color: var(--mute); }
.seed code { background: none; padding: 0; color: var(--bone2); }
.try { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; padding: 5px 0; color: var(--mute); opacity: 0; transform: translateX(-6px); animation: tryin .4s var(--ease) forwards; }
.try code { background: none; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; }
.try.is-win { color: var(--amber2); }
@keyframes tryin { to { opacity: 1; transform: none; } }
.pda-res { grid-column: 1 / -1; background: var(--bg2); border: 1px solid var(--amberB); border-radius: var(--r); padding: 14px 16px; font: 13px var(--mono); word-break: break-all; }
.pda-res b { color: var(--amber2); font-weight: 500; }

/* seats */
.seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.seat { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.seat h3 { margin: 0 0 4px; font-size: 20px; font-weight: 600; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.seat__addr { font: 11.5px var(--mono); color: var(--dim); word-break: break-all; margin: 0 0 12px; }
.seat__row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 6px 0; border-top: 1px solid var(--line); }
.seat__row span { color: var(--mute); }
.seat__row b { font-family: var(--mono); font-weight: 500; font-size: 13px; text-align: right; }
.seat__acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* my wall */
.mywall { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-top: 8px; }
.mywall .mon { min-height: 200px; }
.mon__x { position: absolute; top: 4px; right: 6px; z-index: 3; background: none; border: 0; color: var(--mute); font: 14px var(--mono); cursor: pointer; padding: 2px 6px; }
.mon__x:hover { color: var(--amber2); }
.mywall__empty { color: var(--mute); font-size: 14px; border: 1px dashed var(--line2); border-radius: var(--r); padding: 22px; grid-column: 1 / -1; }

/* method + faq */
.method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.method li { background: var(--bg); padding: 22px; min-width: 0; }
.method__n { font: 500 12px var(--mono); color: var(--amber2); }
.method h3 { margin: 8px 0 8px; font-size: 20px; font-weight: 600; }
.method p { margin: 0; color: var(--bone2); font-size: 15px; }
.faq { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-size: 19px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 22px var(--mono); color: var(--amber2); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--bone2); max-width: 72ch; }

/* footer */
.foot { max-width: var(--max); margin: clamp(80px, 9vw, 130px) auto 0; padding: 30px var(--gut) 34px; border-top: 1px solid var(--line2); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 40px; }
.brand--foot { margin-bottom: 14px; }
.foot__honest { color: var(--bone2); font-size: 14.5px; max-width: 76ch; margin: 0; }
.foot__links p { margin: 0 0 8px; font-size: 14px; }
.foot__base { color: var(--dim); font-size: 11.5px; margin: 26px 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .chan__list a i { display: none; }
  .console__clock { display: none; }
}
@media (max-width: 1020px) {
  .wall__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mon--master { grid-column: span 3; grid-row: auto; min-height: 420px; }
  .mon--feed { grid-column: span 2; }
  .insp, .bytes, .thr, .pda-out { grid-template-columns: minmax(0, 1fr); }
  .bytes__key { max-height: 340px; }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pin { height: auto; }
  .pin__stage { position: relative; top: 0; height: auto; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pin__art svg { width: min(100%, 520px); }
}
@media (max-width: 880px) {
  .chan__toggle { display: block; }
  .chan__list { display: none; position: absolute; right: 0; top: calc(100% + 12px); flex-direction: column; background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r); padding: 6px; min-width: 210px; z-index: 400; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
  .chan__list.is-open { display: flex; }
  .chan__list a { padding: 10px 12px; }
  .chan__list a i { display: inline; }
  .chan { order: 2; margin-left: auto; }
  .wallet-slot { order: 3; }
  .console__row { gap: 10px; }
  .alert-sum, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lrow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .lrow__t { grid-column: 1; }
  .lrow__d { grid-column: 2; text-align: right; }
  .lrow__m { grid-column: 1 / -1; }
  .lrow__s { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .brand__word { font-size: 17px; }
  .wall__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); gap: 8px; }
  .mon--master { grid-column: span 2; min-height: 0; }
  .mon--cam:nth-of-type(n+6) { display: none; }
  .mon--feed { grid-column: span 2; }
  .master-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mon__bal { font-size: 17px; }
  .mon__side { display: none; }
  .sec__head { grid-template-columns: minmax(0, 1fr); }
  .sec__no { grid-row: auto; margin-bottom: 8px; }
  .probe { flex-direction: column; }
  .port { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .port__list { width: 100%; }
  .vaults { grid-template-columns: minmax(0, 1fr); }
  .method { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bytes__grid { grid-template-columns: repeat(8, minmax(0, 1fr)); padding: 10px; }
  .strip__cell:nth-child(3), .strip__cell:nth-child(4), .strip__cell:nth-child(5) { display: none; }
  .strip__cell { padding-right: 12px; margin-right: 12px; }
  .seats { grid-template-columns: minmax(0, 1fr); }
  .seed { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tbl th, .tbl td { padding: 8px 10px; }
  .tbl th:nth-child(4), .tbl td:nth-child(4) { display: none; }
  .wb-btn { padding: 7px 10px; font-size: 12px; }
}
