/* Hawk Mesh 3D Workbench. Same brand tokens as the Field Test report
 * (hawk-test-viz/web/assets/style.css), so the two read as one product. */
:root {
  --char: #0a0a0a;
  --panel: #16161c;
  --panel-2: #1d1d25;
  --ink: #f5f3f0;
  --muted: #8c8c92;
  --line: rgba(255, 255, 255, .10);
  --red: #A81824;
  --red-bright: #c81f2e;
  --red-glow: rgba(168, 24, 36, .30);
  --warn: #d9a441;           /* the one non-brand hue: weak / clipped / over the limit */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 20px;
  --pill: 100px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --peek: 150px;
  --rb: 34px;                                   /* planner-version bar */
  --top: calc(var(--safe-t) + var(--rb));
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--char); color: var(--ink); font: 15px/1.45 var(--sans); overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
b { font-weight: 600; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }

#map { position: fixed; inset: 0; background: var(--char); }
#map::after { /* brand glow + edge vignette so chrome reads over busy terrain */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 24, 36, .16), transparent 55%),
    linear-gradient(to bottom, rgba(10,10,10,.75), transparent 18%, transparent 70%, rgba(10,10,10,.55));
}
.maplibregl-ctrl-attrib { background: rgba(10,10,10,.6) !important; color: var(--muted); font-size: 10px; }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1); }
.maplibregl-ctrl-bottom-right { bottom: calc(var(--peek) + var(--safe-b)); }

/* ── top bar ─────────────────────────────────────────── */
.topbar {
  position: fixed; z-index: 5; left: 0; right: 0; top: 0;
  padding: calc(var(--top) + 10px) 16px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 11px; letter-spacing: .34em; color: var(--ink); white-space: nowrap; flex: none; }
.brand img { height: 30px; width: auto; display: block; filter: drop-shadow(0 0 10px var(--red-glow)); }
.brand b { color: var(--red-bright); font-weight: 600; }
@media (max-width: 719px) { .brand span { display: none; } }

.plan-pill {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto;
  min-height: 44px; padding: 0 12px 0 16px; border-radius: var(--pill);
  border: 1px solid var(--line); background: rgba(22, 22, 28, .9); cursor: pointer;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.plan-pill .plan-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-pill .plan-name .arrow { color: var(--red-bright); padding: 0 .3em; }
.plan-pill svg { width: 16px; height: 16px; flex: none; color: var(--muted); }

.icon-btn {
  width: 48px; height: 48px; border-radius: var(--pill); border: 1px solid var(--line);
  background: rgba(22, 22, 28, .9); flex: none;
  display: grid; place-items: center; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  transition: border-color .2s, background .2s, transform .1s;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn[aria-pressed="true"] { border-color: var(--red-bright); background: rgba(168, 24, 36, .28); }
.compass svg { width: 24px; height: 24px; transition: transform .1s linear; }

/* signal bars = modelled verdict of the active link, not a live radio */
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; flex: none; }
.bars i { width: 3px; border-radius: 1px; background: rgba(245,243,240,.18); }
.bars i:nth-child(1) { height: 4px; } .bars i:nth-child(2) { height: 7px; } .bars i:nth-child(3) { height: 10px; } .bars i:nth-child(4) { height: 14px; }
.bars[data-q="4"] i, .bars[data-q="3"] i:nth-child(-n+3), .bars[data-q="2"] i:nth-child(-n+2) { background: var(--ink); }
.bars[data-q="1"] i:nth-child(1) { background: var(--warn); }
.bars[data-q="0"].blocked i:nth-child(1) { background: var(--red-bright); }
.bars.busy i { animation: barwave 1.1s infinite ease-in-out; background: rgba(245,243,240,.45); }
.bars.busy i:nth-child(2) { animation-delay: .12s; } .bars.busy i:nth-child(3) { animation-delay: .24s; } .bars.busy i:nth-child(4) { animation-delay: .36s; }
@keyframes barwave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ── thumb toolbar ───────────────────────────────────── */
.toolbar {
  /* Anchored under the header + node strip (not centred): seven tools would
     otherwise ride up over the strip on a phone. */
  position: fixed; z-index: 5; right: 12px; top: calc(var(--top) + 76px);
  display: flex; flex-direction: column; gap: 6px; padding: 5px;
  border-radius: 34px; background: rgba(10, 10, 10, .35); border: 1px solid var(--line);
}

/* ── popovers (layers, search) ───────────────────────── */
.pop {
  position: fixed; z-index: 7; right: 76px; top: calc(var(--top) + 76px); max-height: calc(100dvh - var(--top) - 250px); overflow-y: auto;
  width: min(320px, calc(100vw - 96px)); padding: 6px 16px 14px;
  border-radius: var(--radius); background: rgba(20, 20, 26, .97); border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 40px rgba(168,24,36,.14);
}
#searchPop { padding-top: 16px; }
h3.section { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 14px 0 6px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; cursor: pointer; border-top: 1px solid var(--line); }
.switch-row:first-of-type { border-top: 0; }
.switch-row span { display: grid; }
.switch-row small { color: var(--muted); font-size: 12px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { flex: none; width: 48px; height: 28px; border-radius: var(--pill); background: rgba(255,255,255,.12); position: relative; transition: background .2s; }
.switch-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transition: transform .2s cubic-bezier(.22,1,.36,1); }
.switch-row input:checked + i { background: var(--red); }
.switch-row input:checked + i::after { transform: translateX(20px); }
.switch-row input:focus-visible + i { outline: 2px solid var(--red-bright); outline-offset: 2px; }

.lookup { display: flex; gap: 8px; }
.lookup input { flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font: 15px var(--sans); }
.lookup input:focus { outline: none; border-color: var(--red-bright); }
.results { display: grid; gap: 2px; margin: 8px 0; max-height: 40vh; overflow-y: auto; }
.results button { text-align: left; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 12px; background: none; cursor: pointer; font-size: 13px; }
.results button:hover, .results button:focus-visible { background: rgba(255,255,255,.05); outline: none; }
.results small { display: block; color: var(--muted); font-size: 11px; }

/* ── buttons ─────────────────────────────────────────── */
.btn { min-height: 48px; padding: 0 22px; border-radius: var(--pill); border: 0; background: var(--red); color: var(--ink); font-weight: 600; letter-spacing: .06em; cursor: pointer; text-decoration: none; display: inline-grid; place-items: center; }
.btn:hover { background: var(--red-bright); }
.btn.ghost { background: none; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--red-bright); }
.btn:disabled { opacity: .5; cursor: default; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.pill svg { width: 18px; height: 18px; }
.pill.primary { background: var(--red); border-color: var(--red); }
.pill.primary:hover { background: var(--red-bright); }
.pill.ghost { background: none; color: var(--muted); }
.pill.danger { background: none; color: var(--red-bright); }
.pill.wide { width: 100%; }
.pill:disabled { opacity: .5; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.row-btns .pill { flex: 1 1 auto; }

/* ── node markers ────────────────────────────────────── */
/* No `position` here: MapLibre's .maplibregl-marker must stay absolute. */
.node { width: 48px; height: 48px; display: grid; place-items: center; cursor: grab; padding: 0; border: 0; background: none; -webkit-appearance: none; appearance: none; touch-action: none; }
.node:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; border-radius: 50%; }
.node .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--char), 0 0 16px 4px var(--red-glow); transition: transform .2s; }
.node[data-role="tx"] .dot { background: var(--red-bright); box-shadow: 0 0 0 3px var(--char), 0 0 18px 5px rgba(200, 31, 46, .55); }
.node[data-role="rx"] .dot { background: var(--char); border: 3px solid var(--ink); }
.node .label {
  position: absolute; top: 42px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 9px; border-radius: var(--pill); background: rgba(10, 10, 10, .78); border: 1px solid var(--line);
  pointer-events: none;
}
.node .label em { font-style: normal; color: var(--red-bright); margin-right: 5px; font-family: var(--mono); }
.node.sel .dot { transform: scale(1.35); }
.node.sel .label { border-color: rgba(200,31,46,.7); }
.node::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; border: 2px solid var(--red-bright); opacity: 0; pointer-events: none; }
.node.ping::after { animation: ping .9s cubic-bezier(.2, .7, .3, 1); }
@keyframes ping { 0% { transform: scale(.6); opacity: .95; } 100% { transform: scale(3.2); opacity: 0; } }
.measure-tag { font: 600 11px/1 var(--mono); padding: 6px 10px; border-radius: var(--pill); background: var(--ink); color: var(--char); white-space: nowrap; pointer-events: none; }

/* ── radial menu ─────────────────────────────────────── */
.radial { position: fixed; z-index: 8; width: 0; height: 0; }
.radial::before { content: ""; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 0 4px rgba(10,10,10,.7), 0 0 24px 6px var(--red-glow); }
.radial button {
  position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(20,20,26,.96); cursor: pointer;
  display: grid; place-items: center; align-content: center; gap: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
  transform: translate(var(--x), var(--y)) scale(1); transition: transform .28s cubic-bezier(.22,1.3,.36,1), opacity .2s;
}
.radial.opening button { transform: translate(0, 0) scale(.3); opacity: 0; }
.radial button b { font: 700 15px/1 var(--mono); color: var(--ink); }
.radial button span { font-size: 9px; line-height: 1.1; color: var(--muted); max-width: 56px; text-align: center; margin-top: 3px; }
.radial button[data-act="tx"] { border-color: rgba(200,31,46,.7); }
.radial button[data-act="tx"] b { color: var(--red-bright); }
.radial button:active { background: var(--red); }
.radial button[disabled] { opacity: .35; }

/* ── armed-mode banner ───────────────────────────────── */
.banner {
  position: fixed; z-index: 6; left: 50%; top: calc(var(--top) + 72px); transform: translateX(-50%);
  transition: top .25s;
  display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 18px; max-width: calc(100vw - 32px);
  border-radius: var(--pill); background: rgba(20,20,26,.96); border: 1px solid rgba(200,31,46,.6);
  box-shadow: 0 0 30px rgba(168,24,36,.25); font-size: 13px; font-weight: 600;
}
.banner button { min-height: 40px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 12px; font-weight: 600; }

/* ── bottom sheet (side panel on desktop) ────────────── */
.sheet {
  position: fixed; z-index: 6; left: 0; right: 0; bottom: 0;
  height: 92dvh; max-height: calc(100dvh - var(--top) - 70px);
  /* Solid, not frosted: a backdrop blur over a live 3D map is re-computed every
     frame the map draws, which on a phone cost more than the map itself. */
  background: rgba(20, 20, 26, .975);
  border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -18px 50px rgba(0,0,0,.55), 0 -1px 0 rgba(200, 31, 46, .35) inset;
  transform: translateY(calc(100% - var(--peek) - var(--safe-b)));
  transition: transform .44s cubic-bezier(.22, 1, .36, 1);
  display: flex; flex-direction: column; touch-action: none; will-change: transform;
  contain: layout paint;
}
.sheet[data-state="half"] { transform: translateY(46%); }
.sheet[data-state="full"] { transform: translateY(0); }
.sheet.dragging { transition: none; }
.sheet-grip { flex: none; height: 26px; display: grid; place-items: center; cursor: grab; }
.sheet-grip span { width: 40px; height: 5px; border-radius: var(--pill); background: rgba(245, 243, 240, .28); }
.sheet-body { flex: 1; overflow: hidden; overscroll-behavior: contain; padding: 0 18px calc(28px + var(--safe-b)); touch-action: none; }
.sheet:not([data-state="peek"]) .sheet-body { overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
/* half: controls only; full: controls + analytics */
.sheet[data-state="peek"] #editor, .sheet[data-state="peek"] #analytics,
.sheet[data-state="half"] #analytics { display: none; }

@media (min-width: 900px) {
  :root { --peek: 0px; }
  .sheet, .sheet[data-state] {
    left: 16px; right: auto; top: calc(76px + var(--rb)); bottom: 16px; width: 400px; height: auto; max-height: none;
    border-radius: var(--radius); border-bottom: 1px solid var(--line); transform: none;
  }
  .sheet-grip { display: none; }
  .sheet-body { padding-top: 18px; overflow-y: auto !important; touch-action: pan-y !important; }
  .sheet[data-state] #editor, .sheet[data-state] #analytics { display: block !important; }
  .banner { left: calc(50% + 208px); }
}

/* ── sheet content ───────────────────────────────────── */
.eyebrow { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--red-bright); margin: 0 0 6px; }
.title { font-size: clamp(22px, 6vw, 28px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin: 0; }
.title .arrow { color: var(--red-bright); padding: 0 .2em; }
.sub { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; min-width: 0; }
.stat .k { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.stat .v { font: 600 20px/1.2 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .v small { font: 500 11px var(--sans); color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.stat .v.ok { color: var(--ink); } .stat .v.warn { color: var(--warn); } .stat .v.bad { color: var(--red-bright); }
.stat.status .v { font-size: 15px; line-height: 1.6; letter-spacing: .02em; }
.stat.status { border-color: rgba(200,31,46,.45); background: linear-gradient(180deg, rgba(168,24,36,.18), var(--panel-2)); }
.stat.status.warn { border-color: rgba(217,164,65,.45); background: linear-gradient(180deg, rgba(217,164,65,.12), var(--panel-2)); }
.stat.status.bad { border-color: var(--line); background: var(--panel-2); }

.empty { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 4px 0 0; }
.empty b { display: block; font-size: 16px; letter-spacing: -.01em; }
.empty span { color: var(--muted); font-size: 13px; }

.node-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 16px -18px 0; padding: 0 18px 2px; scrollbar-width: none; }
.node-tabs::-webkit-scrollbar { display: none; }
.node-tab { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line); background: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.node-tab em { font: 700 10px/1 var(--mono); font-style: normal; letter-spacing: .08em; padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--ink); }
.node-tab[data-role="tx"] em { background: var(--red); }
.node-tab[aria-pressed="true"] { color: var(--ink); border-color: rgba(200,31,46,.7); background: rgba(168,24,36,.16); }

.node-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 18px 0 0; }
.node-head .name { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; border: 0; background: none; padding: 0; text-align: left; cursor: text; }
.node-head .meta { color: var(--muted); font: 12px var(--mono); margin-top: 4px; }
.role-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--pill); padding: 3px; flex: none; }
.role-seg button { border: 0; background: none; min-height: 38px; min-width: 44px; padding: 0 12px; border-radius: var(--pill); color: var(--muted); cursor: pointer; font: 700 11px var(--mono); letter-spacing: .1em; }
.role-seg button[aria-pressed="true"] { background: var(--red); color: var(--ink); }

.ctl { margin: 20px 0 0; }
.ctl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ctl-head label, .ctl-head .k { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ctl-head output { font: 600 18px var(--mono); font-variant-numeric: tabular-nums; }
.ctl-head output small { font: 500 11px var(--sans); color: var(--muted); margin-left: 3px; }

/* big thumb slider */
input[type="range"].big { -webkit-appearance: none; appearance: none; width: 100%; height: 48px; background: none; margin: 0; cursor: pointer; touch-action: pan-y; --fill: 30%; }
input[type="range"].big::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.12) var(--lo, 0%), var(--red) var(--lo, 0%), var(--red) var(--fill), rgba(255,255,255,.12) var(--fill)); }
input[type="range"].big::-moz-range-track { height: 8px; border-radius: 8px; background: rgba(255,255,255,.12); }
input[type="range"].big::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--red); }
input[type="range"].big::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 0 0 6px rgba(200,31,46,.35), 0 4px 14px rgba(0,0,0,.5); }
input[type="range"].big::-moz-range-thumb { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 0 0 6px rgba(200,31,46,.35), 0 4px 14px rgba(0,0,0,.5); }
input[type="range"].big:focus-visible { outline: none; }
input[type="range"].big:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px var(--red-bright); }
.ticks { display: flex; justify-content: space-between; font: 10px var(--mono); color: var(--muted); padding: 0 6px; margin-top: -4px; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip {
  flex: none; scroll-snap-align: start; min-height: 48px; padding: 0 16px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; text-align: left;
  display: inline-grid; align-content: center; font-size: 13px; font-weight: 600; color: var(--ink);
}
.chip small { font: 500 11px var(--mono); color: var(--muted); }
.chip[aria-pressed="true"] { border-color: var(--red-bright); background: rgba(168,24,36,.22); }
.chip.hawk small::before { content: "HAWK · "; color: var(--red-bright); }
.chip.pow { min-width: 76px; text-align: center; justify-items: center; font-family: var(--mono); }

.note { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 13px; color: var(--muted); }
.note b { color: var(--ink); }
.note.warn { border-color: rgba(217, 164, 65, .45); background: rgba(217,164,65,.06); }
.note.warn b { color: var(--warn); }

/* aim: compass dial + tilt */
.aim { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; }
.dial { width: 132px; height: 132px; border-radius: 50%; position: relative; touch-action: none; cursor: grab;
  background: radial-gradient(circle, var(--panel-2) 0 58%, transparent 59%), conic-gradient(from 0deg, rgba(255,255,255,.08), rgba(255,255,255,.02), rgba(255,255,255,.08));
  border: 1px solid var(--line); }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial .readout { position: absolute; inset: 0; display: grid; place-items: center; font: 600 17px var(--mono); pointer-events: none; }
.dial .readout small { display: block; font: 500 10px var(--sans); color: var(--muted); letter-spacing: .2em; text-align: center; }
.aim .tilt { display: grid; gap: 4px; }
.aim.omni { grid-template-columns: 1fr; }

/* ── analytics (full state) ──────────────────────────── */
.profile { background: var(--char); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px 4px; margin-top: 4px; touch-action: none; }
.profile svg { display: block; width: 100%; height: auto; cursor: crosshair; }
.profile .readline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font: 12px var(--mono); color: var(--muted); padding: 6px 8px 8px; }
.profile .readline b { color: var(--ink); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); padding: 8px 4px 0; }
.legend i { display: inline-block; width: 14px; height: 3px; vertical-align: 3px; margin-right: 5px; border-radius: 2px; }

.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.metric { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.metric .k { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.metric .v { font: 600 17px var(--mono); font-variant-numeric: tabular-nums; }
.metric .v small { font: 500 11px var(--sans); color: var(--muted); margin-left: 2px; }
.metric .h { font-size: 11px; color: var(--muted); }

.links { list-style: none; margin: 0; padding: 0; position: relative; }
.link-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; min-height: 56px; padding: 6px 10px; border-radius: 14px; cursor: pointer; border: 1px solid transparent; }
.link-row:hover, .link-row:focus-visible { background: rgba(255,255,255,.04); outline: none; }
.link-row[aria-current="true"] { border-color: rgba(200,31,46,.55); background: rgba(168,24,36,.1); }
.link-row .nm { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.link-row .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-row .meta { display: block; font: 12px var(--mono); color: var(--muted); }
.link-row .rt { text-align: right; font: 600 14px var(--mono); }
.link-row .rt.ok { color: var(--ink); } .link-row .rt.warn { color: var(--warn); } .link-row .rt.bad { color: var(--red-bright); }
.link-row .rt small { display: block; font: 500 10px var(--sans); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

.fine { font-size: 11px; color: var(--muted); margin: 18px 0 0; line-height: 1.5; }
.fine a { color: var(--ink); }

/* ── modal ───────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: end center; background: rgba(0,0,0,.55); }
@media (min-width: 600px) { .modal { place-items: center; } }
.modal-card { position: relative; width: min(460px, 100vw); max-height: 88dvh; overflow-y: auto; padding: 26px 20px calc(24px + var(--safe-b));
  border-radius: var(--radius) var(--radius) 0 0; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 -20px 60px rgba(0,0,0,.6), 0 0 60px rgba(168,24,36,.14); }
@media (min-width: 600px) { .modal-card { border-radius: var(--radius); } }
.modal-x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 22px; line-height: 1; }
.field { display: grid; gap: 6px; margin: 14px 0 0; }
.field span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input { min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font: 15px var(--sans); }
.field input:focus { outline: none; border-color: var(--red-bright); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin: 0; }
.cards { display: grid; gap: 8px; margin-top: 18px; }
.card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 14px 16px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; text-align: left; }
.card:hover { border-color: rgba(200,31,46,.6); }
.card b { display: block; }
.card .when { color: var(--muted); font-size: 12px; }
.card .del { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 20px; }
.card .del:hover { color: var(--red-bright); }
.err { color: var(--red-bright); font-size: 13px; margin: 10px 0 0; min-height: 1em; }

.toast { position: fixed; z-index: 11; left: 50%; bottom: calc(var(--peek) + var(--safe-b) + 16px); transform: translate(-50%, 20px); opacity: 0; padding: 10px 18px; border-radius: var(--pill); background: var(--ink); color: var(--char); font-weight: 600; font-size: 13px; transition: .25s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { left: calc(50% + 208px); } }

/* Loading card: shown while terrain for the path loads. */
.preflight { position: fixed; z-index: 7; left: 50%; top: 40%; transform: translate(-50%, -50%);
  display: grid; gap: 12px; justify-items: center; padding: 18px 24px; min-width: 240px;
  border-radius: var(--radius); background: rgba(20,20,26,.94); border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 40px rgba(168,24,36,.18); font-size: 13px; transition: opacity .35s; pointer-events: none; }
.preflight .bar { width: 200px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.preflight .bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--red), var(--red-bright)); animation: slide 1.1s infinite ease-in-out; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.preflight.done { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* gating */
.stat.locked { text-align: left; cursor: pointer; font: inherit; color: inherit; border-style: dashed; }
.stat.locked .v small { font-size: 12px; color: var(--red-bright); font-weight: 600; margin: 0; }
.note.lock { border-color: rgba(200,31,46,.45); background: linear-gradient(180deg, rgba(168,24,36,.12), transparent); }
.credits { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.credits b { color: var(--ink); }
.credits.low b { color: var(--warn); }
.linkish { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; }

.rx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; border-top: 1px solid var(--line); }
.rx-row span { display: grid; }
.rx-row small { color: var(--muted); font-size: 12px; }
.rx-row .role-seg button { font: 600 11px var(--sans); letter-spacing: .02em; padding: 0 10px; }

/* ── node strip ──────────────────────────────────────── */
.node-strip {
  position: fixed; z-index: 5; left: 0; right: 0; top: calc(var(--top) + 68px);
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; scrollbar-width: none;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
}
.node-strip::-webkit-scrollbar { display: none; }
.strip-chip {
  flex: none; scroll-snap-align: center; display: flex; align-items: center; gap: 10px;
  min-height: 52px; max-width: 230px; padding: 6px 14px 6px 6px; border-radius: var(--pill);
  border: 1px solid var(--line); background: rgba(22, 22, 28, .92); cursor: pointer; text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: border-color .2s, background .2s, transform .1s;
}
.strip-chip:active { transform: scale(.97); }
.strip-chip em {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font: 700 11px var(--mono); font-style: normal; letter-spacing: .06em;
  background: rgba(255,255,255,.08); color: var(--ink);
}
.strip-chip[data-role="tx"] em { background: var(--red); box-shadow: 0 0 14px var(--red-glow); }
.strip-chip[data-role="rx"] em { background: var(--char); border: 2px solid var(--ink); }
.strip-chip span { display: grid; min-width: 0; }
.strip-chip b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-chip small { font: 11px var(--mono); color: var(--muted); white-space: nowrap; }
.strip-chip[aria-pressed="true"] { border-color: var(--red-bright); background: rgba(52, 16, 22, .95); }
.strip-chip.add { border-style: dashed; background: rgba(10,10,10,.6); }
.strip-chip.add em { background: none; border: 1px dashed rgba(245,243,240,.4); font-size: 18px; }
.strip-chip.add small { font-family: var(--sans); }
body.has-strip .banner { top: calc(var(--top) + 130px); }
@media (min-width: 900px) {
  .node-strip { left: 432px; top: calc(76px + var(--rb)); }
}

/* ── account button ──────────────────────────────────── */
.top-right { display: flex; gap: 8px; flex: none; }
.acct-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px 0 12px;
  border-radius: var(--pill); border: 1px solid rgba(200,31,46,.6); background: var(--red);
  color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .02em; cursor: pointer; flex: none;
}
.acct-btn svg { width: 20px; height: 20px; }
.acct-btn:hover { background: var(--red-bright); }
/* Signed in: a quiet avatar with the initial, not a call to action. */
.acct-btn.in { width: 48px; padding: 0; justify-content: center; background: rgba(22,22,28,.9); border-color: var(--line); }
.acct-btn.in svg { display: none; }
.acct-btn.in span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); font: 700 14px var(--sans); text-transform: uppercase; box-shadow: 0 0 12px var(--red-glow); }
@media (max-width: 420px) {
  .acct-btn:not(.in) { width: 48px; padding: 0; justify-content: center; }
  .acct-btn:not(.in) span { display: none; }
  .topbar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .brand img { height: 26px; }
}

.pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pub-row { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; }
.pub-row span { color: var(--muted); }
.pub-row span b { color: var(--ink); }
.pub-row small { color: var(--muted); font-size: 12px; }
.pub-row small .mono { color: var(--ink); }

/* strip: each chip carries a remove X in its corner */
.strip-item { position: relative; flex: none; scroll-snap-align: center; padding: 6px 6px 0 0; }
.strip-item .strip-chip { scroll-snap-align: none; }
.strip-x {
  position: absolute; top: 0; right: 0; width: 24px; height: 24px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; line-height: 1; cursor: pointer;
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
/* Bigger invisible hit area than the 24 px dot, for a thumb. */
.strip-x::before { content: ""; position: absolute; inset: -10px; }
.strip-x:hover, .strip-x:focus-visible { color: var(--ink); background: var(--red); border-color: var(--red); outline: none; }
.node-strip { cursor: grab; padding-top: 0; }
.node-strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.node-strip.dragging .strip-chip { pointer-events: none; }
.toast.actionable { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding-right: 8px; }
.toast .undo { border: 0; border-radius: var(--pill); background: var(--char); color: var(--ink); font: 600 12px var(--sans); padding: 6px 12px; cursor: pointer; }

/* ── prospecting ─────────────────────────────────────── */
.tool-card { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 12px; margin: 0 0 8px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; }
.tool-card:hover, .tool-card:focus-visible { border-color: rgba(200,31,46,.6); outline: none; }
.tool-card em { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(168,24,36,.25); }
.tool-card em svg { width: 22px; height: 22px; fill: currentColor; }
.tool-card span { display: grid; gap: 2px; }
.tool-card b { font-size: 14px; }
.tool-card small { color: var(--muted); font-size: 12px; line-height: 1.4; }

.pick { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.pick span { min-width: 26px; height: 26px; padding: 0 6px; border-radius: var(--pill); display: grid; place-items: center;
  font: 700 12px var(--mono); background: var(--red); color: var(--ink); border: 2px solid var(--ink);
  box-shadow: 0 0 0 3px rgba(10,10,10,.6), 0 0 16px var(--red-glow); }
.pick.top span { background: var(--ink); color: var(--char); }
.pick.highest span { border-color: var(--warn); }
.pick.on-air span { background: var(--char); color: var(--ink); }
.pick.end span { background: var(--char); color: var(--ink); border-color: var(--red-bright); }
.pick.sel span { transform: scale(1.25); }

.pros-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 16px 0 8px; }
.pros-head h3 { margin: 0; }
.pros-sum { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.pros-sum b { color: var(--ink); }
.pros-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pros-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 8px 8px 8px 10px;
  border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; }
.pros-row[aria-current="true"] { border-color: rgba(200,31,46,.6); }
.pros-row .rk { font: 700 13px var(--mono); color: var(--red-bright); }
.pros-row b { font-size: 14px; }
.pros-row small { display: block; font-size: 12px; color: var(--muted); }
.pros-row .sc { font: 600 13px var(--mono); text-align: right; }
.pros-row .sc small { font: 500 10px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.pros-row .add { min-height: 40px; padding: 0 14px; border-radius: var(--pill); border: 1px solid rgba(200,31,46,.6); background: rgba(168,24,36,.2); color: var(--ink); font: 600 12px var(--sans); cursor: pointer; }
.leg-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); }
.leg-row:first-child { border-top: 0; }
.leg-row .n { font: 700 12px var(--mono); color: var(--muted); }
.leg-row .m { font: 600 13px var(--mono); }
.leg-row .m.ok { color: var(--ink); } .leg-row .m.warn { color: var(--warn); }
.pros-peek { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 0; padding: 8px 8px 8px 14px;
  border-radius: 14px; border: 1px solid rgba(200,31,46,.45); background: rgba(168,24,36,.12); font-size: 13px; }
.pros-peek button { min-height: 36px; padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font: 600 12px var(--sans); cursor: pointer; }

/* ── planner-version bar ─────────────────────────────── */
.ui-switch {
  position: fixed; z-index: 8; left: 0; right: 0; top: 0; height: calc(var(--rb) + var(--safe-t));
  padding: var(--safe-t) 12px 0; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #120a0c; border-bottom: 1px solid rgba(200,31,46,.35); font-size: 12px; color: var(--muted);
}
.ui-switch .us-note b { color: var(--red-bright); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; margin-right: 4px; }
.us-seg { display: inline-flex; padding: 2px; border-radius: var(--pill); border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.us-seg a { min-height: 26px; min-width: 64px; padding: 0 12px; border-radius: var(--pill); display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; cursor: pointer; }
.us-seg a[aria-current="page"] { background: var(--red); color: var(--ink); cursor: default; }
.us-seg a:not([aria-current]):hover { color: var(--ink); }

body.has-strip .toolbar, body.has-strip .pop { top: calc(var(--top) + 134px); }
.toolbar .icon-btn { width: 46px; height: 46px; }
@media (min-width: 900px) { body.has-strip .toolbar, body.has-strip .pop { top: calc(var(--rb) + 140px); } }

/* cookie choice */
.consent3d { position: fixed; z-index: 12; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 12px); max-width: 560px; margin: 0 auto;
  padding: 14px 16px; border-radius: var(--radius); background: rgba(20,20,26,.98); border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 40px rgba(168,24,36,.14); font-size: 13px; color: var(--muted); }
.consent3d p { margin: 0 0 10px; line-height: 1.5; }
.consent3d div { display: flex; gap: 8px; justify-content: flex-end; }
.consent3d .pill { min-height: 44px; }
@media (min-width: 900px) { .consent3d { left: 432px; right: 16px; } }

/* ── talk to us ──────────────────────────────────────── */
.icon-btn { position: relative; }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--red-bright); box-shadow: 0 0 0 2px var(--char), 0 0 10px var(--red-bright); }
.field textarea { min-height: 96px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink); font: 15px/1.5 var(--sans); resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--red-bright); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.use-chips .chip { min-height: 42px; font-size: 12.5px; padding: 0 14px; }
.thread { display: grid; gap: 10px; max-height: 42dvh; overflow-y: auto; margin: 14px 0 4px; padding-right: 4px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.msg p { margin: 0; overflow-wrap: anywhere; }
.msg small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.msg.me { justify-self: end; background: rgba(168,24,36,.28); border: 1px solid rgba(200,31,46,.4); border-bottom-right-radius: 6px; }
.msg.them { justify-self: start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }

/* Eight tools: on a short screen the toolbar scrolls rather than running under the drawer. */
.toolbar { max-height: calc(100dvh - var(--top) - 76px - var(--peek) - var(--safe-b) - 20px); overflow-y: auto; scrollbar-width: none; }
.toolbar::-webkit-scrollbar { display: none; }
body.has-strip .toolbar { max-height: calc(100dvh - var(--top) - 134px - var(--peek) - var(--safe-b) - 20px); }
@media (min-width: 900px) { .toolbar, body.has-strip .toolbar { max-height: calc(100dvh - var(--rb) - 160px); } }

/* save prompt for anonymous planners */
.nudge { position: fixed; z-index: 7; left: 12px; right: 12px; bottom: calc(var(--peek) + var(--safe-b) + 14px); max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 20px;
  background: rgba(20,20,26,.98); border: 1px solid rgba(200,31,46,.55); box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 30px rgba(168,24,36,.2);
  font-size: 13px; color: var(--muted); animation: nudgein .4s cubic-bezier(.22,1,.36,1); }
.nudge span { flex: 1; }
.nudge b { color: var(--ink); }
.nudge .pill { min-height: 42px; flex: none; }
.nudge-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; flex: none; }
@keyframes nudgein { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 900px) { .nudge { left: 432px; right: 90px; bottom: 24px; } }

/* Continue with Google / Apple. Each button keeps its owner's colours. */
.oauth { display: grid; gap: 10px; margin: 16px 0 0; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border-radius: 100px; border: 1px solid var(--line); font: 600 15px var(--sans); cursor: pointer; }
.oauth-btn:disabled { opacity: .6; cursor: default; }
.oauth-google { background: #fff; color: #1f1f1f; border-color: #fff; }
.oauth-apple { background: #000; color: #fff; border-color: rgba(255,255,255,.28); }
.oauth-btn:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }
.oauth-err { color: var(--red-bright); font-size: 13px; margin: 0; }
.oauth-or { display: flex; align-items: center; gap: 12px; margin: 6px 0 -4px; color: var(--muted);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.oauth-or::before, .oauth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ── public repeaters: what each is doing right now ─────────────────────── */
.maplibregl-popup.rp { z-index: 4; }
.rp .maplibregl-popup-content { background: rgba(22, 22, 28, .97); color: var(--ink); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; box-shadow: 0 12px 34px rgba(0,0,0,.6); font: 13px/1.4 var(--sans); min-width: 190px; }
.rp .maplibregl-popup-tip { border-top-color: rgba(22, 22, 28, .97) !important; border-bottom-color: rgba(22, 22, 28, .97) !important; }
.rp .maplibregl-popup-close-button { color: var(--muted); font-size: 18px; padding: 2px 8px; }
.rp-hover { pointer-events: none; }
.rp-name { font-weight: 600; font-size: 14px; margin: 0 14px 6px 0; overflow-wrap: anywhere; }
.rp-state { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.rp-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--muted); }
.rp-dot[data-level="live"] { background: var(--red-bright); animation: rp-beat 1.6s infinite; }
.rp-dot[data-level="active"] { background: var(--red-bright); }
.rp-dot[data-level="today"] { background: #8a5a5f; }
@keyframes rp-beat { 0% { box-shadow: 0 0 0 0 rgba(200,31,46,.7); } 70% { box-shadow: 0 0 0 9px rgba(200,31,46,0); } 100% { box-shadow: 0 0 0 0 rgba(200,31,46,0); } }
.rp-detail { color: var(--muted); font-size: 12px; margin: 3px 0 0 17px; }
.rp-link { display: inline-block; margin: 9px 0 0; color: var(--ink); font-weight: 600; font-size: 12.5px; text-decoration: none; border-bottom: 1px solid var(--red-bright); }
.rp-hint { margin: 8px 0 0; color: var(--muted); font-size: 11.5px; }
.rp-hint:empty { display: none; }
.rp-inline { display: block; margin-top: 8px; font-size: 12.5px; }
/* Link to the live page, in the version bar. Only shown where the feed covers this area. */
.us-live { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; padding: 0 12px; min-height: 26px; border-radius: var(--pill);
  border: 1px solid rgba(200,31,46,.5); background: rgba(168,24,36,.18); color: var(--ink); font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.us-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright); animation: rp-beat 1.6s infinite; }
@media (max-width: 480px) { .ui-switch .us-note { display: none; } }
