/* FNF (Fkn Normie Farm): a field sheet for one launch operation. Hyena's family (IBM Plex, light paper, hairline
   rules, mono figures, graphite bar, the same sign-in) with its own face: a furrow mark, and ONE hot red-orange that
   means only "launch imminent / just launched". Everything else stays ink on paper, so that colour is never noise. */

@font-face { font-family: 'Plex Sans'; src: url('/fonts/plex-sans.woff2') format('woff2'); font-weight: 100 700; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --paper-2: #f3f1ea;
  --card: #fffefa;
  --rule: #e4e0d5;
  --rule-strong: #cbc5b6;
  --ink: #1d1c19;
  --ink-2: #5c5950;
  --ink-3: #9a968a;
  --bar: #24221e;
  --bar-2: #34312b;
  --hot: #ff4d1a;                 /* the signal: launch imminent / just launched, nothing else */
  --hot-deep: #d93a0b;
  --hot-ink: #b42d06;
  --hot-wash: #fff0e8;
  --warn: #93600a;                /* handoff in flight */
  --warn-wash: #fbf3e1;
  --warn-rule: #e3c88e;
  --calm: #2f8a57;
  --pen: #2348c8;
  --sans: 'Plex Sans', system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, monospace;
  --rail: 400px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); font: 14px/1.4 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
#app { height: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
a { color: var(--pen); }
b, strong { font-weight: 600; }
.none { color: var(--ink-3); }
.dim { color: var(--ink-3); }
.mono { font-family: var(--mono); }
.ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- wordmark: three furrows and the hot dot */
.wordmark { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 700; font-size: 46px; line-height: 1; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.mark { width: 0.82em; height: 0.82em; flex: none; }
.wordmark-small { font-size: 18px; gap: 8px; letter-spacing: -0.01em; color: #fff; }

/* ---- sign-in */
.gate { min-height: 100dvh; display: grid; place-content: center; padding: 24px; background: var(--paper); }
.gate-form { width: min(360px, calc(100vw - 48px)); display: grid; gap: 12px; }
.gate-sub { margin: -2px 0 0; font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.gate-lede { margin: 4px 0 20px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.gate-btn { height: 48px; border: 0; border-radius: 4px; background: var(--bar); color: #fff; font-weight: 600; font-size: 15px; transition: background 0.15s; }
.gate-btn:hover { background: #000; }
.gate-btn:disabled { opacity: 0.6; cursor: progress; }
.gate-msg { min-height: 40px; margin: 4px 0 0; color: var(--hot-ink); }

/* ---- frame: top bar, main column (next launch + map), feed rail */
.app { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100dvh; }
.body { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); min-height: 0; }
.main { min-width: 0; overflow: auto; padding: 18px 20px 32px; display: grid; gap: 24px; align-content: start; overscroll-behavior: contain; }
.rail { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--rule-strong); background: var(--paper); }
.slot-feed { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.topbar { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 0 16px; background: var(--bar); color: #fff; }
.tb-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.tb-sub { font: 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgb(255 255 255 / 0.45); }
.tb-right { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px; border-radius: 6px; background: var(--bar-2);
  font: 12px var(--mono); color: rgb(255 255 255 / 0.72); white-space: nowrap; min-width: 0; overflow: hidden; }
.chip b { font-weight: 500; color: #fff; }
.chip .sep { width: 1px; height: 12px; background: rgb(255 255 255 / 0.18); }
.dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #56d98c; box-shadow: 0 0 0 3px rgb(86 217 140 / 0.2); }
.chip.is-down { color: #ffc9b8; }
.chip.is-down .dot { background: #ff8a6f; box-shadow: 0 0 0 3px rgb(255 138 111 / 0.2); }
.chip.is-stale .dot { background: #e7b44f; box-shadow: 0 0 0 3px rgb(231 180 79 / 0.2); }
.tb-btn { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border: 1px solid rgb(255 255 255 / 0.16); border-radius: 6px;
  background: transparent; color: rgb(255 255 255 / 0.82); font: 500 12.5px var(--sans); white-space: nowrap; transition: border-color 0.12s, color 0.12s, background 0.12s; }
.tb-btn:hover { border-color: rgb(255 255 255 / 0.42); color: #fff; }
.tb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tb-btn[aria-pressed="true"] { border-style: dashed; color: rgb(255 255 255 / 0.6); }
.tb-btn[aria-expanded="true"] { background: var(--bar-2); color: #fff; }
.signout { border-color: transparent; color: rgb(255 255 255 / 0.66); }

/* ops menu */
.menu { position: relative; }
.menu-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 360px; max-height: min(80vh, 620px); overflow: auto; padding: 14px;
  border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: 0 16px 38px rgb(0 0 0 / 0.2); }
.menu-title { margin: 0 0 8px; font: 500 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.menu-title-2 { margin-top: 16px; }
.ops-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ops-item { display: grid; gap: 3px; padding: 9px 2px; border-bottom: 1px solid var(--rule); font-size: 13px; }
.ops-line.mono { font-size: 11.5px; color: var(--ink-2); }
.ops-form { display: grid; gap: 6px; }
.lbl { margin-top: 4px; font: 500 12px var(--sans); color: var(--ink-2); }
.inp { height: 34px; padding: 0 9px; border: 1px solid var(--rule-strong); border-radius: 4px; background: #fff; font: 13px var(--sans); color: var(--ink); }
.inp.mono { font: 12.5px var(--mono); }
.inp:focus { outline: 2px solid var(--pen); outline-offset: -1px; }
.form-msg { min-height: 18px; margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); }
.form-msg.is-err { color: var(--hot-ink); }
.form-hint { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.btn { height: 32px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--paper); font: 500 13px var(--sans); color: var(--ink); }
.btn:hover:not(:disabled) { background: #fff; border-color: var(--ink-3); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-primary { margin-top: 8px; height: 36px; border: 0; background: var(--bar); color: #fff; font-weight: 600; }
.btn-primary:hover:not(:disabled) { background: #000; }
.btn-small { height: 28px; margin-top: 8px; font-size: 12.5px; }

/* ---- section heads */
.sec-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 10px; min-height: 28px; }
.sec-h h2 { margin: 0; font: 500 11.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.sec-note { font: 12px var(--mono); color: var(--ink-3); }

/* ---- shared bits: addresses, copy, links, chips */
.addr { display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; max-width: 100%; }
.addr-btn { padding: 1px 3px; border: 0; border-radius: 3px; background: none; font: 12.5px var(--mono); color: var(--ink); white-space: nowrap; }
.addr-btn:hover { background: var(--paper-2); color: var(--pen); text-decoration: underline; text-underline-offset: 2px; }
.addr-txt { font: 12.5px var(--mono); }
.copy { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink-3); flex: none; }
.copy:hover { background: var(--paper-2); color: var(--ink); }
.copy .ico { width: 13px; height: 13px; }
.copy .ico + .ico { display: none; }
.copy.is-done .ico:first-child { display: none; }
.copy.is-done .ico + .ico { display: block; color: var(--calm); stroke-width: 2.4; }
.copy.is-fail { color: var(--hot-ink); }
.ext { display: inline-flex; align-items: center; gap: 4px; color: var(--pen); font: 12.5px var(--mono); text-decoration: none; white-space: nowrap; }
.ext:hover { text-decoration: underline; text-underline-offset: 2px; }
.ext .ico { width: 12px; height: 12px; }
.coin-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--paper);
  font: 500 12px var(--mono); color: var(--ink); white-space: nowrap; }
.coin-chip:hover { border-color: var(--ink-3); background: #fff; }
.coin-chip.is-hot { background: var(--hot); border-color: var(--hot); color: #fff; }
.chip-t { font-weight: 400; color: var(--ink-3); }
.attr { display: inline-block; padding: 0 6px; border: 1px solid var(--rule-strong); border-radius: 3px; font: 500 11px/18px var(--mono); color: var(--ink-2); }

/* ---- next launch */
.next-empty { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px dashed var(--rule-strong); border-radius: 8px; color: var(--ink-2); }
.next-empty p { margin: 0; }
.op-card { border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--card); overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s; }
.op-card + .op-card { margin-top: 14px; }
.op-card.is-imminent { border-color: var(--hot); box-shadow: 0 0 0 1px var(--hot), 0 12px 32px rgb(255 77 26 / 0.16); }
.op-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title timing" "meta timing"; gap: 5px 24px; padding: 14px 16px 12px; border-bottom: 1px solid var(--rule); }
.op-title { grid-area: title; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
.op-name { margin: 0; font: 600 19px/1.2 var(--sans); letter-spacing: -0.012em; }
.op-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font: 12px var(--mono); color: var(--ink-2); }
.op-meta .addr-btn { font-size: 12px; color: var(--ink-2); }
.op-hold { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 4px; font: 12px var(--mono); color: var(--ink-2); }
.op-hold .hold-l { text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; color: var(--ink-3, var(--ink-2)); }
.op-hold b { color: var(--ink); font-weight: 600; }
.op-hold .hold-n { opacity: .75; }
.dotsep::before { content: '·'; color: var(--ink-3); }
.op-timing { grid-area: timing; display: flex; align-items: center; gap: 22px; }
.tm { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.tm-k { font: 500 10.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.tm-v { font: 500 21px/1.15 var(--mono); letter-spacing: -0.02em; color: var(--ink); }
.imm-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 4px; background: var(--hot); color: #fff;
  font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

.bf { display: inline-flex; align-items: center; gap: 8px; font: 11.5px var(--mono); color: var(--ink-2); }
.bf-label { text-transform: uppercase; letter-spacing: 0.05em; font-size: 10.5px; color: var(--ink-3); }
.bf-bar { display: block; width: 90px; height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.bf-fill { display: block; height: 100%; background: var(--ink-2); transition: width 0.4s; }
.ops-item .bf-bar { width: 100%; margin-top: 3px; }

/* the last launch strip: calm normally, the hot banner for a minute after a launch */
.last { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; min-height: 44px; padding: 8px 16px; border-bottom: 1px solid var(--rule);
  background: var(--paper-2); font: 12.5px var(--mono); color: var(--ink-2); }
.last-k { min-width: 104px; font: 500 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.last-sym { padding: 0; border: 0; background: none; font: 600 17px/1 var(--sans); letter-spacing: -0.01em; color: var(--ink); }
.last-sym:hover { text-decoration: underline; text-underline-offset: 3px; }
.last-name { max-width: 240px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 13px var(--sans); color: var(--ink); }
.last-mint { display: inline-flex; align-items: center; gap: 2px; }
.last-lag { color: var(--ink); }
.last-when { margin-left: auto; color: var(--ink-2); }
.last.is-hot { background: var(--hot); border-bottom-color: var(--hot-deep); color: #fff; }
.last.is-hot .last-k { color: #fff; font-weight: 600; }
.last.is-hot .last-sym, .last.is-hot .last-name, .last.is-hot .last-lag, .last.is-hot .last-when { color: #fff; }
.last.is-hot .last-sym { font-size: 20px; }
.last.is-hot .copy, .last.is-hot .ext { color: #fff; }
.last.is-hot .copy:hover { background: rgb(0 0 0 / 0.14); }
.last.is-hot .attr { border-color: rgb(255 255 255 / 0.6); color: #fff; }

/* cycle and waves */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-bottom: 1px solid var(--rule); }
.flow-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 9px 16px; box-shadow: inset -1px 0 0 var(--rule); }
.flow-k { font: 500 10.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.flow-v { font: 12.5px/1.5 var(--mono); color: var(--ink-2); }
.flow-v b { font-weight: 500; color: var(--ink); }
.flow-v .addr-btn { font-size: 12.5px; }
.due { color: var(--ink); font-weight: 500; }

/* dev chains */
.ch-row { display: grid; grid-template-columns: minmax(270px, 2.2fr) minmax(150px, 1.1fr) 110px 112px minmax(140px, 1fr); align-items: center;
  min-height: 56px; border-bottom: 1px solid var(--rule); }
.ch-row:last-child { border-bottom: 0; }
.ch-row > * { min-width: 0; padding: 8px 12px; }
.ch-row > :first-child { padding-left: 16px; }
.ch-head { min-height: 30px; background: var(--paper); }
.ch-head > * { padding-block: 0; font: 500 10.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.ch-head > :nth-child(3), .ch-head > :nth-child(4), .c-bal, .c-since { text-align: right; }
.ch-empty { margin: 0; padding: 14px 16px; color: var(--ink-3); font: 12.5px var(--mono); }
.c-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.c-head .addr-btn { font-size: 13px; }
.sub { font: 11px var(--mono); color: var(--ink-3); }
.c-bal b { font: 500 16px var(--mono); letter-spacing: -0.01em; }
.unit { font: 11px var(--mono); color: var(--ink-3); }
.since { font: 500 16px var(--mono); letter-spacing: -0.01em; color: var(--ink); }
.c-coins { display: flex; flex-wrap: wrap; gap: 5px; }

.st { display: flex; align-items: center; gap: 11px; }
.st-body { display: grid; gap: 2px; min-width: 0; }
.st-line { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; min-width: 0; }
.st-word { font: 600 15.5px/1.2 var(--sans); }
.st-note { font: 12px var(--mono); color: var(--ink-3); }
.st-mark { width: 10px; height: 10px; flex: none; border-radius: 50%; }
.st-holding .st-mark { background: var(--calm); }
.st-holding .st-word { color: var(--ink); }
.st-handoff { color: var(--warn); }
.st-handoff .st-mark { border: 2px solid var(--warn); border-right-color: transparent; }
.st-handoff .addr-btn { font-size: 14px; font-weight: 500; color: var(--warn); }
.st-spent .st-mark { border: 1.5px solid var(--ink-3); }
.st-spent .st-word { color: var(--ink-3); font-weight: 500; }
.ch-row.is-handoff { background: var(--warn-wash); box-shadow: inset 4px 0 0 var(--warn); }
.ch-row.is-spent > * { opacity: 0.5; }
.ch-row.is-funded { background: var(--hot-wash); box-shadow: inset 5px 0 0 var(--hot); }
.st-funded .st-word { color: var(--hot-ink); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14.5px; }
.st-funded .addr-btn { font-size: 15px; font-weight: 500; color: var(--hot-ink); }
.st-sub { font: 13px var(--sans); color: var(--hot-ink); }
.st-sub strong { padding: 1px 7px; border-radius: 3px; background: var(--hot); color: #fff; font-weight: 600; letter-spacing: 0.02em; }
.beacon { width: 13px; height: 13px; flex: none; border-radius: 50%; background: var(--hot); }

/* ---- map */
.map-ops, .seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--paper); }
.seg-opt { height: 24px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-2); font: 500 12.5px var(--sans); white-space: nowrap; }
.seg-opt:hover { color: var(--ink); }
.seg-opt[aria-pressed="true"] { background: var(--bar); color: #fff; }
.map-meta { font: 12px var(--mono); color: var(--ink-3); }
.map-hint { margin-left: auto; font: 11px var(--mono); color: var(--ink-3); }
.map-wrap { position: relative; border: 1px solid var(--rule-strong); border-radius: 8px; overflow: hidden; background: var(--card); }
.map-msg { margin: 0; padding: 28px 18px; color: var(--ink-3); font: 12.5px var(--mono); }
.map-svg { display: block; width: 100%; user-select: none; -webkit-user-select: none; cursor: grab; touch-action: pan-y; }
.map-svg.is-drag { cursor: grabbing; }
.map-svg text { font-family: var(--mono); }
.lane-bg.a { fill: var(--card); }
.lane-bg.b { fill: #f8f6f0; }
.lane-rule, .gutter-rule { stroke: var(--rule); stroke-width: 1; }
.gutter-rule { stroke: var(--rule-strong); }
.lane-label { font: 500 12px var(--sans) !important; fill: var(--ink); }
.lane-sub { font-size: 10.5px; fill: var(--ink-3); }
.lane-sub.is-hot { fill: var(--hot-ink); font-weight: 500; }
.lane-sub.is-dim { opacity: 0.6; }
.lane-hot { fill: var(--hot); }
.grid { stroke: var(--rule); stroke-dasharray: 2 4; }
.tick { font-size: 10.5px; fill: var(--ink-3); }
.now-line { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.now-label { font-size: 10px; fill: var(--ink-2); }
.edge { fill: none; stroke: #8b8676; stroke-opacity: 0.45; stroke-linecap: round; pointer-events: none; }
.edge.is-hl { stroke: var(--ink); stroke-opacity: 0.95; }
.edge-hit { fill: none; stroke: transparent; stroke-width: 9; pointer-events: stroke; cursor: pointer; }
.hops { font-size: 10px; font-weight: 500; fill: var(--ink-2); paint-order: stroke; stroke: var(--card); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.node { cursor: pointer; }
.node rect { stroke-width: 1; }
.k-pool rect { fill: var(--ink); stroke: var(--ink); }
.k-sprayer rect { fill: #6b675c; stroke: #4a473f; }
.k-farm rect { fill: #ddd6c4; stroke: #8b8676; }
.k-bundlers rect { fill: #c9d1ef; stroke: var(--pen); }
.k-creator rect { fill: #fff; stroke: var(--ink); }
.k-relay rect { fill: var(--paper); stroke: var(--warn); stroke-dasharray: 2 2; }
.k-external rect { fill: none; stroke: var(--ink-3); stroke-dasharray: 4 3; }
.k-seed rect { fill: #fff; stroke: var(--pen); stroke-width: 1.6; }
.node:hover rect { stroke: var(--ink); stroke-width: 2; }
.node.is-hl rect { stroke-width: 2; }
.node.is-sel rect { stroke: var(--pen); stroke-width: 2.5; }
.node.is-next rect { fill: var(--hot); stroke: var(--hot-deep); stroke-width: 1.5; }
.nl { font-size: 10.5px; fill: var(--ink-2); pointer-events: none; }
.nl.in { fill: var(--ink); font-weight: 500; }
.coin { cursor: pointer; }
.coin-mk { fill: var(--ink); }
.coin-tk { font-size: 10.5px; font-weight: 500; fill: var(--ink); }
.coin:hover .coin-tk { fill: var(--pen); text-decoration: underline; }
.coin.is-hot .coin-mk { fill: var(--hot); }
.coin.is-hot .coin-tk { fill: var(--hot-ink); }
.map-tip { position: absolute; top: 0; left: 0; z-index: 5; display: grid; gap: 2px; max-width: 300px; padding: 9px 11px; border: 1px solid var(--rule-strong);
  border-radius: 6px; background: var(--paper); box-shadow: 0 12px 30px rgb(0 0 0 / 0.16); pointer-events: none; font: 12px/1.45 var(--mono); color: var(--ink-2); }
.map-tip strong { font: 600 13px var(--sans); color: var(--ink); }
.map-tip span { overflow-wrap: anywhere; }
.map-tip em { font-style: normal; color: var(--ink-3); font-size: 11px; }
.tip-hot { color: var(--hot-ink); font-weight: 500; }

/* ---- feed rail */
.feed { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.feed .sec-h { margin: 0; padding: 12px 16px 10px; border-bottom: 1px solid var(--rule-strong); }
.live { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font: 11.5px var(--mono); color: var(--ink-2); }
.live .dot { box-shadow: none; background: var(--calm); }
.live.is-down { color: var(--hot-ink); }
.live.is-down .dot { background: #ff8a6f; }
.feed-empty { margin: 0; padding: 18px 16px; color: var(--ink-3); font: 12.5px var(--mono); }
.feed-list { flex: 1; min-height: 0; margin: 0; padding: 0; list-style: none; overflow: auto; overscroll-behavior: contain; }
.ev-btn { display: grid; grid-template-columns: 62px 92px minmax(0, 1fr) 50px; align-items: start; gap: 8px; width: 100%; padding: 8px 14px 8px 16px;
  border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left; font: 12.5px/1.45 var(--sans); color: var(--ink-2); }
button.ev-btn:hover { background: #fff; }
.ev-t { padding-top: 1px; font: 11.5px var(--mono); color: var(--ink-3); white-space: nowrap; }
.badge { justify-self: start; padding: 0 6px; border: 1px solid var(--rule-strong); border-radius: 3px; font: 500 10.5px/18px var(--mono);
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.b-launch { border-color: var(--ink); background: var(--ink); color: #fff; }
.b-next_creator { border-color: var(--ink); color: var(--ink); }
.b-handoff { border-color: var(--warn-rule); background: var(--warn-wash); color: var(--warn); }
.b-farm_pick { border-color: var(--pen); color: var(--pen); }
.b-grad_watch, .b-graduated { border-color: var(--pen); color: var(--pen); }
.b-drain, .b-rotation, .b-cashout, .b-profit { border-color: var(--warn-rule); background: var(--warn-wash); color: var(--warn); }
.b-deploy, .b-skim, .b-payout, .b-swap_to_usdc { border-color: var(--pen); color: var(--pen); }
.b-op_added, .b-backfill_done { border-style: dashed; color: var(--ink-3); }
.ev-sum { min-width: 0; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ev-sum b { font-weight: 600; color: var(--ink); }
.ev-chain { margin-left: 6px; font: 11px var(--mono); color: var(--ink-3); }
.ev-op { margin-right: 6px; padding: 0 4px; border-radius: 3px; background: var(--paper-2); font: 11px var(--mono); color: var(--ink-2); }
.ev-lag { padding-top: 1px; text-align: right; font: 11.5px var(--mono); color: var(--ink-3); white-space: nowrap; }
.ev-lag.is-slow { color: var(--warn); }
/* a live launch / next creator keeps the hot badge for a minute; the colour steps back by itself */
.ev.is-hot .badge { animation: hot-badge 60s step-end; }
@keyframes hot-badge { 0% { background: var(--hot); border-color: var(--hot); color: #fff; } }

/* ---- side panel */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(480px, 100vw); overflow: auto; padding: 14px 18px 28px;
  border-left: 1px solid var(--rule-strong); background: var(--paper); box-shadow: -18px 0 40px rgb(0 0 0 / 0.12); }
.dr-top { display: flex; align-items: center; gap: 8px; }
.dr-titles { display: grid; flex: 1; min-width: 0; }
.dr-kind { font: 500 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.dr-title { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 19px/1.25 var(--sans); letter-spacing: -0.01em; }
.dr-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); }
.dr-icon:hover { background: var(--paper-2); color: var(--ink); }
.dr-icon .ico { width: 16px; height: 16px; }
.dr-name { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.dr-id { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 12px; padding: 9px 10px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.dr-addr { min-width: 0; font: 12.5px var(--mono); overflow-wrap: anywhere; }
.dr-links { display: inline-flex; gap: 12px; margin-left: auto; }
.roles { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.role { padding: 0 7px; border: 1px solid var(--rule-strong); border-radius: 3px; font: 500 11px/20px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
.role.r-head, .role.r-creator { border-color: var(--ink); color: var(--ink); }
.role.r-relay { border-color: var(--warn-rule); color: var(--warn); }
.dr-facts { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 7px 12px; margin: 14px 0 0; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 13px; }
.dr-facts dt { font: 500 10.5px/22px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.dr-facts dd { margin: 0; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; font: 12.5px/22px var(--mono); }
.dr-msg { margin: 16px 0 0; color: var(--ink-2); font: 12.5px var(--mono); }
.dr-msg.is-err { color: var(--hot-ink); }
.dr-sec { margin-top: 18px; }
.dr-sub { margin: 0 0 6px; font: 500 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.dr-table { width: 100%; border-collapse: collapse; font: 12px var(--mono); }
.dr-table th { position: sticky; top: -14px; z-index: 1; padding: 6px 6px; border-bottom: 1px solid var(--rule-strong); background: var(--paper); text-align: left;
  font: 500 10px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.dr-table td { padding: 4px 6px; border-bottom: 1px solid var(--rule); vertical-align: middle; white-space: nowrap; }
.dr-table .num { text-align: right; }
.dr-table .addr-btn { font-size: 12px; }
.dir { font-size: 11px; }
.dir.is-in { color: var(--calm); }
.dir.is-out { color: var(--ink-2); }
.memo { margin-left: 4px; padding: 0 4px; border: 1px solid var(--rule-strong); border-radius: 3px; font-size: 10px; color: var(--ink-3); }
.tx { font-size: 11.5px; }

/* ---- motion: the signal moves, nothing else does */
@media (prefers-reduced-motion: no-preference) {
  .beacon { animation: beacon 1.1s ease-out infinite; }
  .imm-pill { animation: blink 1.1s ease-in-out infinite alternate; }
  .st-handoff .st-mark { animation: spin 0.9s linear infinite; }
  .op-card.is-flash { animation: flash 1.8s ease-out both; }
  .node.is-next rect { animation: blink 0.8s ease-in-out infinite alternate; }
  .ev.is-new > .ev-btn { animation: arrive 2.4s ease-out; }
}
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgb(255 77 26 / 0.6); } 75%, 100% { box-shadow: 0 0 0 12px rgb(255 77 26 / 0); } }
@keyframes blink { from { opacity: 1; } to { opacity: 0.55; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--hot), 0 0 40px 6px rgb(255 77 26 / 0.55); } 100% { box-shadow: 0 0 0 0 rgb(255 77 26 / 0); } }
@keyframes arrive { from { background: var(--paper-2); } }
.ev.is-new.is-hot > .ev-btn { animation-name: arrive-hot; }
@keyframes arrive-hot { from { background: var(--hot-wash); } }

/* ---- narrower windows: the feed goes under the map */
@media (max-width: 1180px) {
  :root { --rail: 340px; }
  .ev-btn { grid-template-columns: 58px 84px minmax(0, 1fr); }
  .ev-lag { grid-column: 3; text-align: left; padding: 0; }
}
@media (max-width: 1000px) {
  .app { height: auto; min-height: 100dvh; }
  .body { display: block; }
  .main { overflow: visible; }
  .rail { border-left: 0; border-top: 1px solid var(--rule-strong); }
  .feed-list { max-height: 70vh; }
  .ev-btn { grid-template-columns: 62px 92px minmax(0, 1fr) 50px; }
  .ev-lag { grid-column: auto; text-align: right; padding-top: 1px; }
  .map-hint { display: none; }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 8px 10px; padding: 8px 12px; }
  .tb-sub, .tb-text, .chip .wide { display: none; }
  .chip { order: 3; flex-basis: 100%; }
  .main { padding: 14px 12px 24px; }
  .op-head { grid-template-columns: 1fr; grid-template-areas: "title" "meta" "timing"; }
  .op-timing { justify-content: flex-start; }
  .tm { align-items: flex-start; }
  .ch-head { display: none; }
  .ch-row { grid-template-columns: 1fr auto; grid-template-areas: "state state" "head bal" "coins since"; padding: 6px 0; }
  .ch-row > * { padding: 4px 12px; }
  .ch-row > :first-child { padding-left: 12px; }
  .c-state { grid-area: state; } .c-head { grid-area: head; } .c-bal { grid-area: bal; } .c-since { grid-area: since; } .c-coins { grid-area: coins; }
  .last-when { margin-left: 0; }
  .menu-panel { position: fixed; top: 96px; left: 8px; right: 8px; width: auto; }
  .ev-btn { grid-template-columns: 56px 84px minmax(0, 1fr); padding-left: 12px; }
  .ev-lag { grid-column: 3; text-align: left; padding: 0; }
}
.c-since .eta { display: block; margin-top: 2px; }
.c-since .eta.conf-low { opacity: .7; }
.c-since .eta.is-hot { color: var(--hot, #ff4d1a); font-weight: 600; }
