/* Space Force edge-routing demo — constellation board.
   Deep-space ground, one monospace voice: this is a telemetry console. The
   globe is the signature; everything else is quiet furniture around it. */

:root {
  color-scheme: dark;

  /* ground */
  --bg:        #050e17;
  --surface:   #0c1f2e;
  --surface-2: #102a3c;
  --line:      #1c4963;

  /* ink */
  --text:      #eff8ff;
  --text-dim:  #9ec6dc;
  --text-mute: #6f96ad;

  /* accents, each with one meaning */
  --accent:    #57dcff;   /* the data lane, this demo's hue        */
  --ok:        #a5f3c4;   /* delivered, in contact                 */
  --warn:      #ffb454;   /* priority, retuning, pending           */
  --err:       #ff9b9b;   /* tripwire, failing destination         */
  --ctl:       #8fb6ff;   /* control plane                         */

  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: var(--mono);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 12% 8%, rgba(87, 220, 255, .10), transparent 62%),
    radial-gradient(900px 560px at 88% 22%, rgba(165, 243, 196, .07), transparent 60%),
    #050e17;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.45;
}

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--surface-2); color: var(--text); padding: 8px 12px; border-radius: 4px;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--warn); outline-offset: 3px; }

.kicker {
  color: var(--accent); font-size: 13px; letter-spacing: .16em; display: block;
}

/* ------------------------------------------------------------------ header */

header {
  align-items: center;
  display: flex;
  gap: 18px;
  padding: 12px 3vw;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--accent), var(--ok)) 1;
  background: rgba(8, 22, 33, .82);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand { display: flex; align-items: baseline; gap: 14px; }
header strong { color: var(--accent); letter-spacing: .16em; font-size: 14px; }
header .sub { color: var(--text-dim); font-size: 13px; letter-spacing: .14em; }

.tabs { display: flex; gap: 4px; margin-left: 14px; }
.tabs button {
  background: transparent; border: 1px solid transparent; border-radius: 4px;
  color: var(--text-dim); cursor: pointer; font: inherit; font-size: 13px;
  letter-spacing: .08em; padding: 6px 14px;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] {
  background: rgba(87, 220, 255, .1); border-color: rgba(87, 220, 255, .35);
  color: var(--accent);
}

.orchestrated {
  color: var(--ctl); font-size: 13px; letter-spacing: .14em; margin: 0 0 0 auto;
}

/* The console strip. Quiet on camera: it is the operator's hand, not the
   subject of the shot, so it sits below the header at header weight. */
.console {
  align-items: center;
  background: rgba(8, 22, 33, .55);
  border-bottom: 1px solid rgba(87, 220, 255, .12);
  display: flex;
  gap: 8px;
  padding: 8px 3vw;
}
.ctl {
  background: transparent; border: 1px solid rgba(87, 220, 255, .3);
  border-radius: 4px; color: var(--accent); cursor: pointer;
  font: inherit; font-size: 13px; letter-spacing: .06em; padding: 6px 13px;
}
.ctl:hover { background: rgba(87, 220, 255, .12); border-color: var(--accent); }
.ctl.lead { border-color: rgba(74, 222, 128, .45); color: var(--ok); }
.ctl.lead:hover { background: rgba(74, 222, 128, .12); border-color: var(--ok); }
.ctl.lead[data-armed="stop"] { border-color: rgba(255, 180, 84, .45); color: var(--warn); }
.ctl.lead[data-armed="stop"]:hover { background: rgba(255, 180, 84, .12); border-color: var(--warn); }
.ctl.quiet { border-color: rgba(111, 150, 173, .3); color: var(--text-dim); margin-left: 6px; }
.ctl.quiet:hover { background: rgba(111, 150, 173, .12); color: var(--text); }
.ctl[disabled] { opacity: .4; pointer-events: none; }
.ctl-status {
  color: var(--text-dim); font-size: 13px; letter-spacing: .04em;
  margin-left: auto; text-align: right;
}
.ctl-status[data-state="failed"] { color: var(--warn); }
.ctl-status[data-state="running"] { color: var(--accent); }

header output {
  align-items: center;
  display: flex;
  font-weight: 600;
  gap: 9px;
  letter-spacing: .12em;
  font-size: 13px;
  min-width: 150px;
}
header output::before { border-radius: 50%; content: ""; height: 9px; width: 9px; flex: none; }
header output[data-state="live"] { color: var(--ok); }
header output[data-state="live"]::before { background: #4ade80; animation: pulse 1.1s ease-in-out infinite; }
header output[data-state="stopped"] { color: var(--warn); }
header output[data-state="stopped"]::before { background: #f59e0b; }
header output[data-state="down"] { color: var(--text-dim); }
header output[data-state="down"]::before { background: #6f96ad; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

/* ------------------------------------------------------------------- popup */

.popup {
  position: fixed; z-index: 40; max-width: calc(100vw - 32px); pointer-events: none;
  background: rgba(6, 17, 27, .97); border: 1px solid rgba(87, 220, 255, .38);
  border-radius: 8px; padding: 16px 18px;
  box-shadow: 0 26px 60px -20px rgba(0, 0, 0, .95);
  opacity: 0; transform: translateX(-4px); transition: opacity .12s ease, transform .12s ease;
}
.popup[data-open="true"] { opacity: 1; transform: translateX(0); }
/* Never wrap a record line and never crop one: app.js sets column-count and
   width from the record's own longest line. `overflow: auto` is the safety
   net for a record taller than any column layout can hold. */
.popup pre {
  color: #dbeeff; font-size: 13px; line-height: 1.5; margin: 0;
  white-space: pre;
  max-height: calc(100vh - 72px); overflow: auto;
}
.popup .key  { color: #9fd7ff; }
.popup .str  { color: #b7f5c8; }
.popup .num  { color: #ffd9a0; }
.popup .bool { color: #d9c2ff; }
.popup .null { color: #9fb3c8; font-style: italic; }
.popup .punc { color: #6f96ad; }

/* ------------------------------------------------------------------- stage */

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 560px minmax(0, 1fr) 360px;
  gap: 18px 4%;
  padding: 18px 3vw 14px;
  align-items: start;
}
#flow { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.globe-col, .nodes-col, .fabric-col { position: relative; z-index: 1; min-width: 0; }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.card h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 4px 0 4px; }
.card .meta, .card .note { color: var(--text-dim); font-size: 13px; margin: 0; }
.card .note { color: var(--text-mute); margin-top: 2px; }

/* globe */
.globe-wrap { position: relative; width: 560px; height: 560px; }
#globe { display: block; width: 560px; height: 560px; }

.orbit-strip {
  display: grid; gap: 14px; margin-top: 8px;
  padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface);
}
.orbit-clock {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline;
}
.orbit-clock strong { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.orbit-clock .orbit-time { margin-left: auto; color: var(--text-dim); font-size: 14px; font-variant-numeric: tabular-nums; }
.orbit-clock .orbit-meta { flex-basis: 100%; color: var(--text-dim); font-size: 13px; }
body[data-downlink="off"] .orbit-clock strong { color: var(--text-dim); }
.contact-history { min-width: 0; border-top: 1px solid var(--line); padding-top: 10px; }
.contact-history h2 { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--text-dim); }
.handoffs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.handoffs li {
  color: var(--text-dim); font-size: 13px; display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px;
  align-items: baseline; font-variant-numeric: tabular-nums;
}
.handoffs li b { color: var(--text); font-weight: 500; white-space: nowrap; }
.handoffs li .route { min-width: 0; overflow-wrap: anywhere; }
.handoffs li .to { color: var(--ok); }
.handoffs li[data-contact="lost"] .to { color: var(--warn); }
.handoffs li .when { color: var(--text-dim); white-space: nowrap; }
.handoffs li.fresh { animation: arrive 1.2s ease-out; }
.handoffs li.empty { display: block; }

/* nodes column */
.nodes-col { display: grid; gap: 14px; }
.orchestrator { text-align: center; justify-self: center; width: 100%; max-width: 420px; }
.orchestrator .kicker { color: var(--ctl); }
.orchestrator h2 { margin-top: 2px; }
.nodes { display: grid; gap: 14px; }

/* One node card = the base station on the left, the Edge that runs there
   on the right. That adjacency IS the architectural claim: compute at the
   station, not somewhere the data has to travel to. */
.node {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 14px; padding: 0; overflow: hidden;
  border-color: rgba(87, 220, 255, .5);
  transition: box-shadow .3s ease, border-color .3s ease, opacity .3s ease;
}
.node > div { padding: 12px 14px; min-width: 0; }
.node .station { border-right: 1px dashed rgba(87, 220, 255, .28); }
.node h3 { font-size: 18px; font-weight: 600; margin: 2px 0 2px; line-height: 1.15; letter-spacing: -.01em; }
.node .meta { color: var(--text-dim); font-size: 13px; margin: 0; }
.node .contact { margin: 10px 0 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.node .contact b { color: var(--ok); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.node .contact b:empty::before { content: "no contact"; color: var(--text-mute); font-size: 14px; }
.node .contact span { color: var(--text-dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.node .edge { text-align: left; }
.node .edge-head { display: flex; align-items: center; gap: 10px; }
.node .logo {
  width: 40px; height: auto; display: block; flex: none;
  background: #f4f8fb; border-radius: 4px; padding: 4px 6px;
}
.node .edge-head .kicker { font-size: 13px; letter-spacing: .14em; }
.node .edge h3 { margin: 0; }
/* Three bars, no words: receipts, picture, alerts, each against its own
   ceiling. The colours are the tier colours the fabric column uses. */
.rates { display: grid; gap: 4px; margin-top: 10px; width: 150px; }
.rates i { display: block; height: 4px; border-radius: 2px; background: rgba(158, 198, 220, .14); overflow: hidden; }
.rates b { display: block; height: 100%; width: 0; border-radius: 2px; transition: width .4s ease; }
.rates i[data-tier="raw"] b { background: var(--accent); }
.rates i[data-tier="aggregate"] b { background: var(--ok); }
.rates i[data-tier="priority"] b { background: var(--warn); }
/* The node that just made a call. */
.node.alert { animation: nodeAlert 1.4s ease-out; }
@keyframes nodeAlert {
  0% { border-color: #ff6b6b; background: rgba(255, 107, 107, .14); }
  100% { border-color: var(--line); }
}
.node .off { display: none; color: var(--warn); font-size: 13px; letter-spacing: .1em; margin: 10px 0 0; }
.node[data-running="false"] { opacity: .45; filter: grayscale(.85); border-color: var(--line); }
.node[data-running="false"] .off { display: block; }
.node[data-running="false"] .contact b { color: var(--text-dim); }
body[data-state="live"] .node[data-running="true"][data-contact="true"] {
  box-shadow: 0 0 0 1px rgba(87, 220, 255, .28), 0 22px 60px -30px rgba(87, 220, 255, .7);
}
/* A handoff flashes the card that just gained a spacecraft, so the moment is
   unmistakable from across a room. */
.node.gain { animation: gain 1.4s ease-out; }
@keyframes gain {
  0%   { border-color: var(--ok); box-shadow: 0 0 0 2px rgba(165, 243, 196, .55); }
  100% { border-color: rgba(87, 220, 255, .5); box-shadow: 0 0 0 1px rgba(87, 220, 255, .28); }
}
body[data-state="stopped"] .node .edge,
body[data-state="down"] .node .edge { opacity: .6; filter: grayscale(.8); }

/* fabric column */
.fabric-col { display: grid; gap: 10px; }
.fabric-head { display: flex; align-items: baseline; gap: 10px; padding: 2px 2px 0; }
.fabric-head .kicker { color: var(--ok); }
.fabric-sub { color: var(--text-mute); font-size: 13px; }
.destinations { display: grid; gap: 10px; }

.dest {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: help; transition: border-color .15s, transform .15s;
}
.dest:hover { transform: translateX(2px); }
.dest[data-channel="raw"] { border-left-color: var(--accent); }
.dest[data-channel="aggregate"] { border-left-color: var(--ok); }
.dest[data-channel="priority"] { border-left-color: var(--warn); }
.dest[data-channel="tripwire"] { border-left-color: var(--err); }
.dest .title { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--text); display: flex; align-items: center; }
.dest-sub { color: var(--text-dim); font-size: 13px; margin: 2px 0 6px; }
.dest-nums { align-items: baseline; display: flex; gap: 10px; flex-wrap: wrap; }
.dest-nums strong { font-size: 24px; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.dest[data-channel="aggregate"] .dest-nums strong { color: var(--ok); }
.dest[data-channel="priority"] .dest-nums strong { color: var(--warn); }
.dest[data-channel="tripwire"] .dest-nums strong { color: var(--err); }
.dest-nums span { color: var(--text-dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.dest-nums .bw { color: var(--text-mute); }
/* One bar per tier, three segments: each station's share by count. */
.dest-nodes { display: flex; gap: 2px; margin-top: 8px; height: 4px; border-radius: 2px; overflow: hidden; }
.dest-nodes i { display: block; height: 100%; flex-basis: 0; }

.pill {
  border-radius: 9999px; font-size: 13px; font-style: normal; letter-spacing: .08em;
  margin-left: 8px; padding: 1px 8px; vertical-align: middle; border: 1px solid currentColor;
}
.pill:empty { display: none; }
.pill[data-health="failing"] { color: var(--err); }
.pill[data-health="slow"] { color: var(--warn); }
.dest:has(.pill[data-health="failing"]) { border-left-color: #ef4444; }

.savings { display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto auto; gap: 8px 14px; align-items: center; }
#ring { grid-row: 1 / span 2; width: 120px; height: 120px; display: block; }
.savings div { display: grid; gap: 2px; }
.savings span { color: var(--text); font-size: 24px; font-variant-numeric: tabular-nums; }
.savings small { color: var(--text-mute); font-size: 13px; letter-spacing: .08em; }
.savings .save span { color: var(--ok); }
.savings .lead span { color: var(--warn); }

/* No pipeline. The constellation keeps transmitting; only what the pipeline
   drives is drained of colour. */
body[data-state="stopped"] .dest,
body[data-state="down"] .dest { opacity: .38; filter: grayscale(1); }
body[data-state="stopped"] .savings span,
body[data-state="down"] .savings span { color: var(--text-dim); }

/* ------------------------------------------------------------------ panels */

main { display: block; }
main[hidden] { display: none; }
.panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.panel-signals { margin: 4px 3vw 40px; }
.panel-head { align-items: baseline; display: flex; gap: 12px; margin-bottom: 8px; }
.panel-head h3 { font-size: 14px; font-weight: 600; margin: 0; letter-spacing: .02em; }
.panel-head .hint { color: var(--text-dim); font-size: 13px; margin-left: auto; }

.feed {
  list-style: none; margin: 0; padding: 0; height: 300px; overflow: hidden;
  column-count: 2; column-gap: 34px;
}
.feed.paused { outline: 1px solid rgba(87, 220, 255, .3); outline-offset: 4px; border-radius: 4px; }
.feed li {
  border-bottom: 1px solid rgba(28, 73, 99, .4);
  color: #c9e8f8; cursor: crosshair; font-size: 14px;
  padding: 6px 4px; display: flex; gap: 12px;
  white-space: nowrap; overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.feed li.fresh { animation: arrive 1s ease-out; }
@keyframes arrive {
  0%   { background: rgba(87, 220, 255, .30); color: #fff; }
  100% { background: transparent; }
}
.feed li .age { color: var(--text-mute); min-width: 96px; }
.feed li .who { color: var(--text-dim); min-width: 150px; }
.feed li .who b { color: var(--ok); font-weight: 500; }
.feed li .elset { color: var(--text-mute); }
.feed li .anom { margin-left: auto; padding-left: 10px; font-size: 13px; letter-spacing: .04em; flex: 0 0 auto; color: var(--warn); font-weight: 600; }
.feed li .miss { margin-left: auto; padding-left: 10px; font-size: 13px; flex: 0 0 auto; color: var(--text-mute); }
.feed li:hover, .feed li.active { background: rgba(87, 220, 255, .1); color: var(--text); }
.feed li.empty {
  color: var(--warn); cursor: default;
  white-space: normal; overflow: visible;
  column-span: all; display: block; padding: 10px 4px; line-height: 1.5;
}

.yaml {
  color: #dbeeff; font-size: 14px; line-height: 1.62; margin: 0;
  overflow-x: auto; white-space: pre;
}
.yaml .k { color: #9fd7ff; }
.yaml .c { color: #6f8fa6; font-style: italic; }
.yaml .v { color: #ffd9a0; }
.yaml .s { color: #b7f5c8; }
.yaml .n { color: #ffd9a0; }
.yaml .b { color: #d9c2ff; }
.panel-pipeline { max-width: 1180px; margin: 12px auto 60px; }

/* ------------------------------------------------------- escalation console */

.panel-escalation { padding: 22px 3vw 40px; }
.sim-note {
  background: rgba(255, 180, 84, .07);
  border: 1px solid rgba(255, 180, 84, .3);
  border-radius: 4px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 74ch;
  padding: 11px 14px;
}
.sim-note b { color: var(--warn); letter-spacing: .04em; }

.incidents { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.incident {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-left: 3px solid var(--err);
  border-radius: 8px;
  display: grid;
  gap: 4px 22px;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  padding: 15px 18px;
}
.incident[data-analysed="false"] { border-left-color: var(--warn); }
.incident-head { align-items: baseline; display: flex; flex-wrap: wrap; gap: 10px; grid-column: 1 / -1; }
.incident-head strong { font-size: 14px; letter-spacing: .02em; }
.incident-head .where { color: var(--ok); font-size: 13px; }
.incident-head .sev {
  border: 1px solid currentColor; border-radius: 4px; font-size: 13px;
  letter-spacing: .1em; padding: 1px 7px; font-style: normal;
}
.incident-head .sev[data-level="CRITICAL"] { color: var(--err); }
.incident-head .sev[data-level="ELEVATED"] { color: var(--warn); }
.incident-head .sev[data-level="pending"] { color: var(--text-dim); }
.incident-head .ttl { color: var(--text-dim); font-size: 13px; margin-left: auto; font-variant-numeric: tabular-nums; }
.incident dl { display: grid; gap: 2px 10px; grid-template-columns: auto 1fr; margin: 6px 0 0; }
.incident dt { color: var(--text-mute); font-size: 13px; }
.incident dd { color: var(--text); font-size: 13px; margin: 0; font-variant-numeric: tabular-nums; }
.incident dd.dim { color: var(--text-dim); }
.recipients { display: flex; flex-direction: column; gap: 5px; margin: 6px 0 0; }
.recipient { align-items: center; color: var(--text-dim); display: flex; font-size: 13px; gap: 8px; }
.recipient::before { background: var(--ok); border-radius: 50%; content: ""; height: 6px; width: 6px; flex: none; }
.recipient span { color: var(--text-mute); font-size: 13px; margin-left: auto; }
.incidents .empty { color: var(--text-dim); font-size: 14px; padding: 18px 0; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 1400px) {
  .stage { grid-template-columns: 460px minmax(0, 1fr) 320px; }
  .globe-wrap, #globe { width: 460px; height: 460px; }
}
@media (max-width: 1100px) {
  .stage { grid-template-columns: 1fr; }
  .globe-wrap, #globe { width: 100%; max-width: 560px; height: auto; aspect-ratio: 1; margin: 0 auto; }
  #flow { display: none; }
  .feed { column-count: 1; }
}
@media (prefers-reduced-motion: reduce) {
  header output[data-state="live"]::before { animation: none; }
  .node.gain, .feed li.fresh, .handoffs li.fresh { animation-duration: .4s; }
}

/* Where the tiers land. One line for the bucket, one for what is in it, one
   for the hop after it -- named, and marked not connected, so the story can
   be told without the board implying it already happened. */
.landing {
  display: block; line-height: 1.5;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); font-size: 13px;
}
.landing[hidden] { display: none; }
.landing span { display: inline; }
.landing .landing-count, .landing .landing-next { display: block; }
.landing-kicker { color: var(--ok); letter-spacing: .14em; margin-right: 8px; }
.landing-where { color: var(--text); font-variant-numeric: tabular-nums; }
.landing-where b { color: var(--ok); font-weight: 500; }
.landing-count { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.landing-next { color: var(--text-dim); }
.landing-next b { color: var(--warn); font-weight: 500; }
.dest-remote { color: var(--text-dim); font-size: 13px; margin: 4px 0 0; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- v2 */

/* Two pipelines per station, as two chips: lit when running, dim when not. */
.pipes { display: flex; gap: 6px; margin-top: 6px; }
.pipes i {
  font-style: normal; font-size: 13px; letter-spacing: .06em; padding: 1px 7px;
  border-radius: 4px; border: 1px solid var(--line); color: var(--text-mute);
}
.pipes i[data-on="true"] { color: var(--ok); border-color: var(--ok); }
.pipes i[data-pipe="batch"][data-on="true"] { color: var(--accent); border-color: var(--accent); }

/* Where a tier sits on the clock. */
.dest .latency {
  margin-left: auto; font-style: normal; font-weight: 500; font-size: 13px;
  letter-spacing: .04em; color: var(--text-mute); border: 1px solid var(--line);
  border-radius: 4px; padding: 0 6px;
}
.dest .latency[data-class="real-time"] { color: var(--ok); border-color: var(--ok); }
.dest .latency[data-class="near-real-time"] { color: var(--warn); border-color: var(--warn); }

/* Quarantine is a count under the tiers, amber only when it is not zero. */
.quarantine { margin: 0; font-size: 13px; color: var(--text-mute); padding: 0 2px; }
.quarantine[data-level="warn"] { color: var(--warn); }

/* Two landing zones, one line each. */
.landing .landing-buckets { display: block; }
.landing .landing-bucket { display: block; color: var(--text); font-variant-numeric: tabular-nums; }
.landing-bucket b { color: var(--ok); font-weight: 500; }
.landing-bucket[data-role="partner"] b { color: var(--accent); }
.landing-bucket em { font-style: normal; color: var(--text-mute); letter-spacing: .06em; margin-right: 6px; }

/* An element set in the feed: ground cadence, tinted so it reads apart from
   the per-second collections around it. */
.feed li.elset-row { color: var(--warn); }
.feed li.elset-row .who b { color: var(--warn); }

/* An orbit change is an amber incident; a fire stays red. */
.incident.orbit { border-left-color: var(--warn); }
.incident.orbit dd b { color: var(--warn); font-weight: 600; margin-left: 6px; }

/* The lineage trail sits above the record in the inspector. */
.popup .lead { color: var(--ok); }

/* Hidden operator controls must stay hidden in the public viewer. */
[hidden] { display: none !important; }

/* Display controls adjust presentation, never source timing or measurements. */
.display-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  padding: 14px 3%; background: var(--surface); border-bottom: 1px solid var(--line); }
.display-caption { display: grid; gap: 4px; color: var(--text-dim); font-size: 13px; }
.display-caption strong { color: var(--accent); letter-spacing: .12em; }
.display-controls label { display: grid; grid-template-columns: 1fr auto;
  gap: 6px 12px; flex: 1 1 135px; min-width: 0; font-size: 13px; }
.display-controls output { color: var(--accent); font-variant-numeric: tabular-nums; }
.display-controls input { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--accent); }
.display-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.event-notices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 12px; padding: 16px 3%; }
.event-notice { border-left: 6px solid var(--warn); background: var(--surface-2); padding: 20px 24px; min-width: 0; }
.event-notice[data-event="sensor"] { border-color: var(--err); }
.event-notice strong { display: block; font-size: 26px; line-height: 1.25; color: var(--warn); }
.event-notice[data-event="sensor"] strong { color: var(--err); }
.event-notice p { font-size: 15px; line-height: 1.5; margin: 8px 0 0; }
.event-notice .event-proof { color: var(--ok); }
