/* Orbit — Colt's dashboard (SPEC decision 17). Calm deep space every day; html[data-mode="mission"] is mission
   control. Only our own files: no outside fonts, images or scripts, and no inline styles (app.py DASHBOARD_CSP). */

/* ============================================================================================ tokens */
:root {
  color-scheme: dark;
  --void: #04060c;
  --deep: #070b16;
  --glass: rgba(14, 20, 38, .74);
  --glass-2: rgba(20, 28, 52, .86);
  --line: rgba(150, 178, 255, .13);
  --line-2: rgba(150, 178, 255, .22);
  --line-3: rgba(170, 196, 255, .38);
  --wash: rgba(150, 178, 255, .05);
  --wash-2: rgba(150, 178, 255, .1);
  --ink: #ebeffa;
  --ink-2: #b1bbd3;
  --ink-3: #7f8aa8;
  --ink-4: #59647f;
  --accent: #97b6ff;
  --accent-2: #b9a2ff;
  --accent-ink: #0a1024;
  --accent-glow: rgba(151, 182, 255, .42);
  --hud: #6ff3df;
  --ok: #5ef0a6;
  --warn: #ffc65c;
  --bad: #ff6b6b;
  --ice: #a9dcff;
  --live: #7df9ff;
  --beacon: #ffe39a;
  --sun: #ffcf6e;
  --r-sm: 9px;
  --r: 12px;
  --r-lg: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --bar-h: 62px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --btn-bg: linear-gradient(180deg, #b1c8ff, #97b6ff);
}
html[data-mode="mission"] {
  --btn-bg: linear-gradient(180deg, #a6fff1, #6ff3df);
  --accent: #6ff3df;
  --accent-2: #7cc8ff;
  --accent-ink: #032019;
  --accent-glow: rgba(111, 243, 223, .42);
  --line: rgba(111, 243, 223, .13);
  --line-2: rgba(111, 243, 223, .24);
  --line-3: rgba(111, 243, 223, .42);
  --wash: rgba(111, 243, 223, .045);
  --wash-2: rgba(111, 243, 223, .09);
}

/* Planet colour sets — the same as PALETTES in system.js: light, base, dark. */
.pal-0 { --pl: #d8d2ff; --pb: #8a7dff; --pd: #2d2380; }
.pal-1 { --pl: #c9e8ff; --pb: #3d9df5; --pd: #0d3a75; }
.pal-2 { --pl: #c3fff3; --pb: #27c9b0; --pd: #07574c; }
.pal-3 { --pl: #d6ffe0; --pb: #5fcf7f; --pd: #165c2e; }
.pal-4 { --pl: #ffd1e6; --pb: #f06fae; --pd: #7a1748; }
.pal-5 { --pl: #fff1d9; --pb: #d9b98c; --pd: #6b4f2a; }
.pal-6 { --pl: #ffd9c9; --pb: #c97b5a; --pd: #5c2a17; }
.pal-7 { --pl: #d4dbff; --pb: #5a6cff; --pd: #1c2380; }
.pal-8 { --pl: #f1dcff; --pb: #c58cf0; --pd: #5a237d; }
.pal-9 { --pl: #d5fff5; --pb: #7fe0c8; --pd: #1f6b5a; }

/* ============================================================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  color: var(--ink); background: transparent; font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(1100px 680px at 82% -12%, rgba(124, 92, 255, .17), transparent 62%),
    radial-gradient(900px 620px at -8% 108%, rgba(38, 168, 205, .13), transparent 60%),
    radial-gradient(760px 520px at 48% 46%, rgba(64, 84, 170, .07), transparent 72%),
    linear-gradient(180deg, #060915 0%, #04060c 100%);
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
main { flex: 1 0 auto; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--ink); letter-spacing: -.016em; }
h1 { font-size: 30px; font-weight: 680; line-height: 1.15; }
h2 { font-size: 17px; font-weight: 620; line-height: 1.3; }
h3 { font-size: 14px; font-weight: 620; line-height: 1.35; }
p { margin: 0 0 12px; }
b, strong { font-weight: 640; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: rgba(151, 182, 255, .32); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
svg.i .dot { fill: currentColor; stroke: none; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font: 600 11px/1.2 var(--mono);
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow .i { width: 14px; height: 14px; vertical-align: -2px; }
.lede { color: var(--ink-2); max-width: 72ch; font-size: 15.5px; margin-top: 8px; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.mono { font-family: var(--mono); font-size: .92em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 650; transition: top .2s; }
.skip:focus { top: 12px; text-decoration: none; }
[hidden] { display: none !important; }

/* the sky: a canvas drawn once (ui.js), a few twinkling stars, and the odd shooting star */
.tw { position: fixed; z-index: -2; width: 2px; height: 2px; border-radius: 50%; background: #fff; pointer-events: none;
  box-shadow: 0 0 6px 1px rgba(205, 220, 255, .85); opacity: .2; animation: twinkle var(--d, 5s) ease-in-out var(--delay, 0s) infinite; }
.shoot { position: fixed; z-index: -2; height: 1.5px; width: 150px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(220, 230, 255, 0), rgba(230, 238, 255, .95));
  transform-origin: 100% 50%; animation: shoot 1.25s cubic-bezier(.3, .6, .4, 1) forwards; }
.shoot::after { content: ""; position: absolute; right: -2px; top: -2.5px; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 3px rgba(200, 220, 255, .8); }

/* ============================================================================================ the bar */
.bar { position: sticky; top: 0; z-index: 40; height: var(--bar-h); display: flex; align-items: center; gap: 14px;
  padding: 0 max(20px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 9, 20, .88), rgba(6, 9, 20, .66));
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 680 18px/1 var(--display);
  letter-spacing: -.02em; flex: none; }
.brand:hover { text-decoration: none; }
.brand:hover .mark { transform: rotate(-14deg) scale(1.06); }
.mark { width: 30px; height: 30px; flex: none; transition: transform .5s var(--ease-out); }
.mark.sm { width: 14px; height: 14px; vertical-align: -2px; }
.mark.lg { width: 58px; height: 58px; margin-bottom: 18px; filter: drop-shadow(0 0 22px rgba(140, 130, 255, .45)); }
.mark-bg { fill: #0d1330; stroke: rgba(160, 170, 255, .28); stroke-width: 1; }
.mark-planet { fill: #7f74f6; }
.mark-shine { fill: #c4bdff; opacity: .55; }
.mark-ring { fill: none; stroke: #c9c1ff; stroke-width: 1.7; stroke-linecap: round; }
.mark-ring.back { opacity: .5; }
.mark-moon { fill: #7df9ff; }
html[data-mode="mission"] .mark-planet { fill: #2fc7b4; }
html[data-mode="mission"] .mark-shine { fill: #b9fff3; }
html[data-mode="mission"] .mark-ring { stroke: #8ff7e8; }
.nav { display: flex; gap: 2px; margin-left: 14px; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 560; white-space: nowrap;
  transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: var(--wash); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--wash-2); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px var(--accent-glow); }
.nav .i { width: 17px; height: 17px; }
.count { min-width: 19px; height: 19px; padding: 0 6px; border-radius: 10px; background: var(--bad); color: #210707;
  font: 750 11px/19px var(--font); text-align: center; box-shadow: 0 0 14px rgba(255, 107, 107, .6); }
.bar-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; min-height: 0;
  padding: 0 12px; margin: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--wash);
  color: var(--ink-2); font: 560 13.5px/1 var(--font); cursor: pointer; box-shadow: none; white-space: nowrap; }
.tool:hover { color: var(--ink); border-color: var(--line-2); background: var(--wash-2); text-decoration: none; transform: none;
  box-shadow: none; }
.tool .i { width: 17px; height: 17px; }
.tool kbd { margin-left: 2px; }
.tool.launch { color: var(--ink); border-color: var(--line-2); }
.signout { margin: 0; }
.signout .tool { padding: 0 10px; }
.mode-switch { display: inline-flex; align-items: center; gap: 10px; height: 38px; min-height: 0; padding: 0 12px 0 8px;
  margin: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--wash); color: var(--ink-2);
  font: 600 12.5px/1 var(--font); cursor: pointer; box-shadow: none; }
.mode-switch:hover { color: var(--ink); border-color: var(--line-2); background: var(--wash-2); transform: none; box-shadow: none; }
.mode-track { position: relative; width: 34px; height: 20px; border-radius: 10px; background: rgba(150, 178, 255, .14);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s; }
.mode-knob { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #b8c8ff 60%, #7d8fe0); box-shadow: 0 0 10px rgba(170, 190, 255, .8);
  transition: transform .35s var(--ease-out), background .3s; }
.mode-label::after { content: "Calm"; }
html[data-mode="mission"] .mode-track { background: rgba(111, 243, 223, .22); }
html[data-mode="mission"] .mode-knob { transform: translateX(14px);
  background: radial-gradient(circle at 35% 35%, #fff, #8ff7e8 60%, #24b7a4); box-shadow: 0 0 12px rgba(111, 243, 223, .9); }
html[data-mode="mission"] .mode-label::after { content: "Mission"; color: var(--hud); }
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px;
  border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--wash); color: var(--ink-2);
  font: 600 11px/1 var(--mono); }

/* ============================================================================================ layout */
.page { width: min(1240px, calc(100% - 40px)); margin: 26px auto 56px; }
.page.narrow { width: min(620px, calc(100% - 32px)); }
.page-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin: 4px 0 22px; }
.page-head > div:first-child { flex: 1 1 420px; }
.page-head .aside { display: flex; gap: 10px; align-items: center; }
.crumb { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--ink-3); font-size: 13.5px;
  font-weight: 560; }
.crumb:hover { color: var(--ink); text-decoration: none; }
.crumb .i { width: 15px; height: 15px; }
.foot { display: flex; gap: 10px; justify-content: center; align-items: center; padding: 26px 16px 34px;
  color: var(--ink-4); font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.foot .mark-ring.back { opacity: .35; }
main.auth ~ .foot { display: none; }
.tabbar { display: none; }

/* ============================================================================================ components */
.panel { position: relative; padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 30, 56, .74), rgba(11, 16, 32, .74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 26px 60px -32px rgba(0, 0, 0, .8); }
.panel + .panel { margin-top: 18px; }
.panel.flush { padding: 6px 8px; }
.panel-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.panel-head h2 { display: flex; align-items: center; gap: 10px; }
.panel-head h2 > .i { color: var(--accent); width: 19px; height: 19px; }
.panel-head .aside { margin-left: auto; }
.panel-head .aside .i { width: 15px; height: 15px; }
.sub-head { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; color: var(--ink); }
.sub-head .i { color: var(--accent); width: 16px; height: 16px; }
.tally { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px;
  background: var(--wash-2); color: var(--ink-2); font: 650 12px/1 var(--font); }
.tally.beacon { background: rgba(255, 227, 154, .14); color: var(--beacon); }
.empty { color: var(--ink-3); margin: 0; }

button, .btn { -webkit-appearance: none; appearance: none; position: relative; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; margin: 0; border-radius: 11px;
  border: 1px solid transparent; font: 640 14px/1.1 var(--font); letter-spacing: .005em; cursor: pointer;
  text-decoration: none; white-space: nowrap; color: var(--accent-ink);
  background: var(--btn-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px -12px var(--accent-glow);
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s, filter .2s; }
button:hover, .btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 32px -12px var(--accent-glow); }
button:active, .btn:active { transform: translateY(0) scale(.985); }
button .i, .btn .i { width: 17px; height: 17px; }
button.ghost, .btn.ghost { background: var(--wash); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
button.ghost:hover, .btn.ghost:hover { background: var(--wash-2); border-color: var(--line-3); filter: none; }
button.quiet, .btn.quiet { background: transparent; color: var(--ink-2); border-color: transparent; box-shadow: none; }
button.quiet:hover, .btn.quiet:hover { background: var(--wash); color: var(--ink); filter: none; }
button.danger, .btn.danger { background: linear-gradient(180deg, #ff8686, #e5484d); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 26px -12px rgba(255, 90, 90, .7); }
button.link { min-height: 0; padding: 0; background: none; border: 0; box-shadow: none; color: var(--accent);
  font: inherit; font-weight: 600; }
button.link:hover { transform: none; text-decoration: underline; filter: none; }
button.sm, .btn.sm { min-height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13px; }
button.sm .i, .btn.sm .i { width: 15px; height: 15px; }
button.wide, .btn.wide { width: 100%; min-height: 48px; font-size: 15px; }
button[disabled], button[disabled]:hover { opacity: .45; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }
button.armed { background: linear-gradient(180deg, #ff9b8a, #ef5b4f) !important; color: #fff !important;
  border-color: transparent !important; animation: armed 1s ease-in-out infinite; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.actions.tight { margin-top: 8px; gap: 6px; }
.actions.center { justify-content: center; margin-top: 22px; }
form { margin: 0; }
form.inline { display: inline; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.inline-form .grow { flex: 1 1 220px; min-width: 0; }   /* a long choice in a list can't widen the page */
.inline-form .grow label { margin-top: 0; }
.stack { margin: 14px 0; }
.stack p { margin: 6px 0 0; }

label { display: block; margin: 14px 0 6px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
label b { color: var(--ink); }
input, select, textarea { width: 100%; min-height: 42px; padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--line-2); background: rgba(4, 7, 16, .58); color: var(--ink); font: 15px/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s, background .15s; }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: rgba(4, 7, 16, .8);
  box-shadow: 0 0 0 3px rgba(151, 182, 255, .2); }
html[data-mode="mission"] input:focus, html[data-mode="mission"] select:focus, html[data-mode="mission"] textarea:focus {
  box-shadow: 0 0 0 3px rgba(111, 243, 223, .18); }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; max-width: 100%;
  background-image: url("chevron.svg"); background-repeat: no-repeat; background-position: right 12px center;
  background-size: 14px 14px; }
input[type="date"] { color-scheme: dark; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--accent);
  vertical-align: -3px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink-2); line-height: 1.45; }
label.check input { margin-top: 1px; flex: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.input-icon { position: relative; }
.input-icon > .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3);
  pointer-events: none; width: 17px; height: 17px; }
.input-icon input { padding-left: 40px; min-height: 48px; font-size: 16px; }
.code-input { font: 650 20px/1 var(--mono) !important; letter-spacing: .18em; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 14px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--wash); color: var(--ink-2); line-height: 1.5; }
.notice > .i { margin-top: 1px; width: 19px; height: 19px; color: var(--accent); }
.notice b { color: var(--ink); }
.notice > div { flex: 1; min-width: 0; }
.notice.bad { border-color: rgba(255, 107, 107, .42); background: linear-gradient(90deg, rgba(255, 107, 107, .15), rgba(255, 107, 107, .04)); }
.notice.bad > .i { color: var(--bad); }
.notice.warn { border-color: rgba(255, 198, 92, .4); background: linear-gradient(90deg, rgba(255, 198, 92, .13), rgba(255, 198, 92, .03)); }
.notice.warn > .i { color: var(--warn); }
.notice.good { border-color: rgba(94, 240, 166, .38); background: linear-gradient(90deg, rgba(94, 240, 166, .13), rgba(94, 240, 166, .03)); }
.notice.good > .i { color: var(--ok); }
.notice.ice { border-color: rgba(169, 220, 255, .42); background: linear-gradient(90deg, rgba(169, 220, 255, .14), rgba(169, 220, 255, .03)); }
.notice.ice > .i { color: var(--ice); }
.notice.key { border-color: rgba(255, 227, 154, .45); background: linear-gradient(90deg, rgba(255, 227, 154, .13), rgba(255, 227, 154, .03)); }
.notice.key > .i { color: var(--beacon); }
.notice.key .code { margin: 8px 0 6px; }
.flash { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; margin: 0 0 18px; border-radius: 14px;
  border: 1px solid rgba(94, 240, 166, .36); color: var(--ink);
  background: linear-gradient(90deg, rgba(94, 240, 166, .15), rgba(13, 20, 38, .9) 70%);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .8); animation: drop-in .5s var(--ease-out) both; }
.flash > .i { color: var(--ok); }
.flash > span { flex: 1; }
.flash button { margin-left: auto; }

.pill { display: inline-flex; align-items: center; gap: 7px; height: 25px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--wash); color: var(--ink-2); font: 620 12px/1 var(--font);
  white-space: nowrap; vertical-align: middle; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none;
  box-shadow: 0 0 8px currentColor; }
.pill.plain::before { display: none; }
.pill .i { width: 13px; height: 13px; }
a.pill:hover { text-decoration: none; filter: brightness(1.15); }
.pill.ok { color: var(--ok); border-color: rgba(94, 240, 166, .34); background: rgba(94, 240, 166, .08); }
.pill.warn { color: var(--warn); border-color: rgba(255, 198, 92, .36); background: rgba(255, 198, 92, .08); }
.pill.bad { color: var(--bad); border-color: rgba(255, 107, 107, .4); background: rgba(255, 107, 107, .09); }
.pill.ice { color: var(--ice); border-color: rgba(169, 220, 255, .38); background: rgba(169, 220, 255, .08); }
.pill.info { color: var(--accent); border-color: var(--line-3); background: var(--wash-2); }
.pill.live { color: var(--live); border-color: rgba(125, 249, 255, .4); background: rgba(125, 249, 255, .08); }
.pill.live::before { animation: live-dot 1.4s ease-in-out infinite; }
.pill.beacon { color: var(--beacon); border-color: rgba(255, 227, 154, .4); background: rgba(255, 227, 154, .08); }
.pill.beacon::before { animation: live-dot 2.4s ease-in-out infinite; }

.stats, .qstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat { padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line); background: var(--wash);
  transition: border-color .2s, background .2s; }
.stat:hover { border-color: var(--line-2); background: var(--wash-2); }
.stat-n { font: 680 21px/1.15 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere; }
.stat-l { margin-top: 4px; color: var(--ink-3); font-size: 12.5px; line-height: 1.35; }
dl.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
dl.facts div { padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--wash); }
dl.facts dt { color: var(--ink-3); font: 600 10.5px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
dl.facts dd { margin: 7px 0 0; font: 660 16px/1.2 var(--display); font-variant-numeric: tabular-nums; }
dl.facts dd .faint { font-weight: 500; font-size: 13px; }

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { padding: 10px 10px 9px; border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap;
  color: var(--ink-3); font: 600 10.5px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(150, 178, 255, .035); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.when { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.code { display: inline-block; max-width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--line-3);
  background: rgba(151, 182, 255, .08); color: var(--ink); font: 680 22px/1.2 var(--mono); letter-spacing: .08em;
  word-break: break-all; -webkit-user-select: all; user-select: all; }
.code.sm { padding: 7px 11px; border-radius: 10px; font-size: 13.5px; font-weight: 560; letter-spacing: .01em; }
.code-wrap { margin: 10px 0 8px; }
.code-wrap .code { font-size: 26px; padding: 14px 20px; box-shadow: 0 0 40px -12px var(--accent-glow); }
.copy-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; vertical-align: middle; }
.copy-row button.copied { color: var(--ok); border-color: rgba(94, 240, 166, .4); }
pre { margin: 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(4, 7, 16, .52);
  color: var(--ink); font: 13px/1.62 var(--mono); white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
pre.requests { border-color: rgba(255, 227, 154, .3); background: linear-gradient(180deg, rgba(255, 227, 154, .06), rgba(4, 7, 16, .5)); }
details.fold { margin-top: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(4, 7, 16, .25); }
details.fold > summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; list-style: none;
  color: var(--ink-2); font-weight: 600; font-size: 14px; border-radius: 12px; user-select: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-right: 1.6px solid var(--ink-3);
  border-bottom: 1.6px solid var(--ink-3); transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease); }
details.fold[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
details.fold > summary:hover { color: var(--ink); background: var(--wash); }
details.fold > summary .i { width: 16px; height: 16px; color: var(--accent); }
details.fold > form, details.fold > div { padding: 0 14px 14px; }
details.fold > form > label:first-child, details.fold > form > .row:first-of-type label { margin-top: 4px; }

/* ============================================================================================ Mission Control */
main.mission { width: 100%; }
.mc { position: relative; height: calc(100vh - var(--bar-h)); height: calc(100svh - var(--bar-h)); min-height: 560px;
  overflow: hidden; isolation: isolate; -webkit-user-select: none; user-select: none; touch-action: pan-y; }
.mc.dragging { cursor: grabbing; }
.system { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.mc.leaving .hud, .mc.leaving .tele, .mc.leaving .ticker, .mc.leaving .mc-hint { opacity: 0; transition: opacity .35s; }
.hud { position: absolute; z-index: 6; pointer-events: none; transition: opacity .35s; }
.hud > * { pointer-events: auto; }
.hud-tl { top: 22px; left: 24px; max-width: min(560px, calc(100% - 48px)); }
.hud-tl h1 { font-size: 30px; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.hud-tr { top: 22px; right: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  width: min(430px, calc(100% - 48px)); max-height: calc(100% - 110px); }
.hud-tr > .sig, .hud-tr > .flash { width: 100%; }
.hud-tr .tele { position: static; width: 252px; }
.hud-bl { left: 24px; bottom: 22px; }
.hud-br { right: 24px; bottom: 22px; }
.hud-center { top: 50%; left: 50%; transform: translate(-50%, 92px); text-align: center; width: min(420px, calc(100% - 48px)); }
.hud-center h2 { font-size: 22px; margin-bottom: 6px; }
.hud-center p { color: var(--ink-2); }
.hud-center .eyebrow { justify-content: center; }
.mc-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.mc-stat { padding: 9px 13px 8px; border-radius: 13px; border: 1px solid var(--line); background: rgba(8, 12, 26, .58);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mc-stat b { display: block; font: 680 18px/1.15 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mc-stat span { color: var(--ink-3); font-size: 11.5px; }
.sig { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 13px; color: var(--ink-2);
  font-size: 13.5px; line-height: 1.45; border: 1px solid rgba(255, 107, 107, .45);
  background: linear-gradient(90deg, rgba(255, 107, 107, .2), rgba(14, 12, 26, .88) 72%);
  box-shadow: 0 16px 40px -18px rgba(255, 70, 70, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: drop-in .6s var(--ease-out) both; }
.sig:hover { text-decoration: none; border-color: rgba(255, 107, 107, .7); }
.sig b { color: var(--ink); }
.sig > .i { color: var(--bad); margin-top: 1px; }
.hud-tr .flash { margin: 0; }
.legend { width: 262px; padding: 11px 13px; border-radius: 15px; border: 1px solid var(--line); background: rgba(8, 12, 26, .72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink-2); font-size: 12.5px; }
.legend summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; user-select: none;
  color: var(--ink-3); font: 600 10.5px/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.legend summary::-webkit-details-marker { display: none; }
.legend summary .i { width: 15px; height: 15px; }
.legend summary:hover { color: var(--ink); }
.legend ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.legend li { display: flex; align-items: center; gap: 9px; line-height: 1.3; font-size: 12px; }
.legend-note { margin: 10px 0 0; color: var(--ink-3); font-size: 12px; }
.sw { position: relative; width: 16px; height: 16px; flex: none; border-radius: 50%; }
.sw-sun { background: radial-gradient(circle, #fff6d8 0 22%, #ffcf6e 40%, rgba(255, 170, 60, .35) 62%, transparent 72%); }
.sw-glow { background: radial-gradient(circle at 38% 36%, #d8d2ff, #8a7dff 45%, #2d2380 70%, transparent 71%);
  box-shadow: 0 0 9px 2px rgba(138, 125, 255, .65); }
.sw-late { background: radial-gradient(circle at 38% 36%, #c9e8ff, #3d9df5 45%, #0d3a75 70%, transparent 71%);
  box-shadow: 0 0 0 2px rgba(255, 198, 92, .7), 0 0 10px 2px rgba(255, 198, 92, .6); }
.sw-missed { background: radial-gradient(circle at 38% 36%, #ffd9c9, #c97b5a 45%, #5c2a17 70%, transparent 71%);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, .75), 0 0 12px 3px rgba(255, 107, 107, .7); animation: orb-flicker 3.2s steps(1, end) infinite; }
.sw-frozen { background: radial-gradient(circle at 38% 36%, #f2fbff, #a9d6f2 45%, #3b6680 72%); box-shadow: 0 0 0 1.5px rgba(200, 235, 255, .6); }
.sw-moon { width: 6px; height: 6px; margin: 0 5px; background: #e8eeff; box-shadow: 0 0 6px rgba(232, 238, 255, .9); }
.sw-beacon { border: 1.5px solid var(--beacon); background: radial-gradient(circle, var(--beacon) 0 18%, transparent 22%); }
.sw-beacon::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--beacon);
  animation: beacon-css 2.6s ease-out infinite; }
.sw-stream { height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--live) 0 2px, transparent 2px 6px);
  box-shadow: 0 0 6px var(--live); }
.sw-ring { background: radial-gradient(circle, #c58cf0 0 28%, transparent 30%); }
.sw-ring::after { content: ""; position: absolute; left: -4px; right: -4px; top: 5px; height: 6px; border-radius: 50%;
  border: 1.5px solid #f1dcff; transform: rotate(-18deg); }
.ctl { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 13px; border: 1px solid var(--line);
  background: rgba(8, 12, 26, .74); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ctl button, .ctl .ctl-link { display: inline-grid; place-items: center; width: 36px; height: 36px; min-height: 0; padding: 0;
  border-radius: 9px; border: 0; background: transparent; color: var(--ink-2); box-shadow: none; }
.ctl button:hover, .ctl .ctl-link:hover { background: var(--wash-2); color: var(--ink); transform: none; filter: none; }
.ctl .sep { width: 1px; height: 22px; margin: 0 3px; background: var(--line-2); }
.mc-hint { position: absolute; z-index: 6; left: 50%; bottom: 78px; transform: translateX(-50%); margin: 0;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(8, 12, 26, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink-3); font-size: 12.5px;
  white-space: nowrap; transition: opacity .6s, transform .6s var(--ease-out); pointer-events: none; }
.mc-hint.gone { opacity: 0; transform: translate(-50%, 10px); }

/* the card that floats beside a planet (or the sun) */
.holo { position: absolute; left: 0; top: 0; z-index: 9; width: 296px; padding: 14px 16px 12px; border-radius: 17px;
  border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13px;
  background: linear-gradient(180deg, rgba(24, 33, 62, .93), rgba(10, 15, 31, .94));
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); pointer-events: none; opacity: 0;
  transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.96); transform-origin: var(--ox, 0) 50%;
  transition: opacity .2s ease, transform .25s var(--ease-out); }
.holo.show { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1); pointer-events: auto; }
.holo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.holo-head .orb { width: 34px; height: 34px; }
.holo-who { min-width: 0; }
.holo-who b { display: block; color: var(--ink); font: 660 15.5px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.holo-who small { display: block; color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.holo .pill { margin-bottom: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.holo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.holo-grid div { padding: 8px 10px; border-radius: 10px; background: var(--wash); border: 1px solid var(--line); }
.holo-grid b { display: block; color: var(--ink); font: 650 14px/1.2 var(--display); font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.holo-grid span { color: var(--ink-3); font-size: 11px; }
.holo-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.holo-flags .pill { margin: 0; height: 23px; font-size: 11.5px; }
.holo-moons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.holo-coords { margin: 10px 0 0; color: var(--hud); font: 600 10.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
html[data-mode="calm"] .holo-coords { display: none; }
.holo-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; }
.holo-foot a { display: inline-flex; align-items: center; gap: 4px; font-weight: 620; font-size: 12.5px; }
.holo-foot a .i { width: 14px; height: 14px; }
.sun-dot { width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: radial-gradient(circle, #fffbe8 0 18%, #ffd27a 42%, #ff9f43 70%, transparent 72%);
  box-shadow: 0 0 22px rgba(255, 190, 90, .8); }
.sun-dot.warn { background: radial-gradient(circle, #fff3dc 0 18%, #ffb35c 42%, #ff7f2a 70%, transparent 72%);
  box-shadow: 0 0 22px rgba(255, 160, 70, .9); }
.sun-dot.alarm { background: radial-gradient(circle, #ffe6dc 0 18%, #ff7a5c 42%, #e5382d 70%, transparent 72%);
  box-shadow: 0 0 26px rgba(255, 90, 70, .95); }
.health-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.health-mini li { display: grid; grid-template-columns: 10px 112px 1fr; gap: 8px; align-items: baseline; }
.health-mini i, .health-list i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink-4));
  box-shadow: 0 0 8px var(--c, transparent); transform: translateY(-1px); }
.health-mini span { color: var(--ink); font-weight: 600; }
.health-mini em { font-style: normal; color: var(--ink-3); }
.lvl-ok { --c: var(--ok); } .lvl-warn { --c: var(--warn); } .lvl-bad { --c: var(--bad); } .lvl-off { --c: var(--ink-4); }

/* mission control: telemetry, ticker, clock, frame */
.tele { position: absolute; z-index: 5; width: 232px; padding: 14px 15px 12px; border-radius: 15px; color: var(--ink-2);
  font: 12px/1.45 var(--mono); border: 1px solid rgba(111, 243, 223, .24);
  background: linear-gradient(180deg, rgba(6, 22, 26, .68), rgba(5, 14, 20, .6));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 40px -18px rgba(111, 243, 223, .35); }
.tele-left { left: 24px; bottom: 22px; }
.tele h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; color: var(--hud);
  font: 650 10.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.tele h3 span:last-child { color: var(--ink-3); letter-spacing: .1em; }
.tele dl { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; margin: 0; }
.tele dt { color: var(--ink-3); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; }
.tele dd { margin: 0; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.tele dd.bad, .tele dd.lvl-bad { color: var(--bad); }
.tele dd.warn, .tele dd.lvl-warn { color: var(--warn); }
.tele dd.lvl-ok { color: var(--ok); }
.tele dd.lvl-off { color: var(--ink-4); }
.lvl-word.calm { color: var(--ok) !important; }
.lvl-word.warn { color: var(--warn) !important; }
.lvl-word.alarm { color: var(--bad) !important; animation: blink 1.2s steps(2, start) infinite; }
.tele-foot { margin: 10px 0 0; color: var(--ink-4); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.meter { position: relative; height: 4px; margin-top: 12px; border-radius: 2px; background: rgba(111, 243, 223, .12); overflow: hidden; }
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, rgba(111, 243, 223, .4), var(--hud)); box-shadow: 0 0 10px var(--hud);
  transition: width 1.2s var(--ease-out); }
.ticker { position: absolute; z-index: 5; left: 290px; right: 222px; bottom: 24px; height: 32px; overflow: hidden;
  border-radius: 10px; border: 1px solid rgba(111, 243, 223, .2); background: rgba(5, 16, 20, .55);
  color: var(--ink-2); font: 12px/30px var(--mono);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ticker-track { display: inline-flex; white-space: nowrap; animation: ticker 70s linear infinite; }
.ticker-run { display: inline-flex; gap: 38px; padding-right: 38px; }
.ticker b { color: var(--hud); font-weight: 620; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.mclock { width: auto; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(111, 243, 223, .24); background: rgba(5, 16, 20, .55);
  color: var(--hud); font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-frame i { position: absolute; z-index: 4; width: 26px; height: 26px; border: 2px solid var(--hud); opacity: .55; pointer-events: none; }
.mc-frame i:nth-child(1) { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.mc-frame i:nth-child(2) { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.mc-frame i:nth-child(3) { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.mc-frame i:nth-child(4) { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
html[data-mode="calm"] .mission-only { display: none !important; }
html[data-mode="mission"] .calm-only { display: none !important; }
html[data-mode="mission"] .mc::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(2, 10, 12, .55) 100%); }
html[data-mode="mission"] .mc-hint { border-color: rgba(111, 243, 223, .24); color: var(--hud); font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .06em; }

/* ============================================================================================ the solar system (SVG) */
.system .orbit-line { fill: none; stroke: rgba(160, 186, 255, .1); stroke-width: 1; }
.system .orbit-line.near { stroke: rgba(160, 186, 255, .16); }
html[data-mode="mission"] .system .orbit-line { stroke: rgba(111, 243, 223, .2); stroke-dasharray: 1.5 7; }
.system .hud-ring { fill: none; stroke: rgba(111, 243, 223, .32); stroke-width: 1; transform-box: fill-box; transform-origin: center; }
.system .hud-ring.dash { stroke-dasharray: 2 10; animation: crawl 24s linear infinite; }
.system .hud-ring.dash.rev { stroke-dasharray: 18 6 2 6; stroke: rgba(111, 243, 223, .22); animation: crawl 16s linear infinite reverse; }
.system .tick { stroke: rgba(111, 243, 223, .38); stroke-width: 1; }
.system .tick-label { fill: rgba(111, 243, 223, .55); font: 600 9px var(--mono); letter-spacing: .1em; text-anchor: middle; }
.system .mission { display: none; }
html[data-mode="mission"] .system .mission { display: inline; }
.system .sweep, .system .orbits, .system .streams, .system .labels, .system .mission { pointer-events: none; }
/* only the solid sun and the solid planet discs answer the pointer: glows and rings would steal neighbours' hovers */
.system .sun-halo, .system .sun-glow, .system .sun-corona, .system .sun-flare, .system .sun-gran,
.system .planet .glow, .system .planet .beacon, .system .planet .warn-ring, .system .planet .scan, .system .planet .scan-tick,
.system .planet .ring, .system .planet .moons, .system .planet .alert-dot { pointer-events: none; }
.system .planet { cursor: pointer; outline: none; }
.system .planet .glow { transform-box: fill-box; transform-origin: center; animation: breathe 7s ease-in-out infinite; }
.system .planet.health-amber .glow { animation-duration: 2.8s; }
.system .planet.is-live .glow { animation: live-glow 1.8s ease-in-out infinite; }
.system .planet.health-red .glow { animation: flicker 3.4s steps(1, end) infinite; }
.system .planet.health-red .warn-ring { animation: flicker 3.4s steps(1, end) infinite; }
.system .planet .warn-ring { fill: none; stroke-width: 1.6; }
.system .planet .rim { fill: none; stroke-width: 1; opacity: .55; }
.system .planet .scan { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 3 6; opacity: 0;
  transform-box: fill-box; transform-origin: center; animation: spin 10s linear infinite; transition: opacity .3s; }
.system .planet .scan-tick { fill: var(--accent); opacity: 0; transition: opacity .3s; }
.system .planet.is-hover .scan, .system .planet:focus-visible .scan,
.system .planet.is-hover .scan-tick, .system .planet:focus-visible .scan-tick { opacity: .9; }
html[data-mode="mission"] .system .planet .scan { opacity: .35; }
.system .label { fill: var(--ink); font: 640 13px var(--font); opacity: 0; transition: opacity .3s;
  paint-order: stroke; stroke: rgba(3, 5, 12, .9); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.system .label-sub { fill: var(--ink-3); font: 600 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transition: opacity .3s; paint-order: stroke; stroke: rgba(3, 5, 12, .9); stroke-width: 3px;
  pointer-events: none; }
.system .label-g.is-hover .label { opacity: 1; }
html[data-mode="mission"] .system .label, html[data-mode="mission"] .system .label-sub { opacity: 1; }
html[data-mode="mission"] .system .label { fill: #dffcf7; }
html[data-mode="mission"] .system .label-sub { fill: var(--hud); }
.system .planet .beacon { fill: none; stroke: var(--beacon); stroke-width: 1.3; transform-box: fill-box; transform-origin: center;
  animation: beacon 3.2s ease-out infinite; }
.system .planet .beacon.b2 { animation-delay: 1.6s; }
.system .planet .alert-dot circle { stroke: rgba(3, 5, 12, .9); stroke-width: 2; }
.system .planet .alert-dot text { fill: #1d0606; font: 800 9px var(--font); text-anchor: middle; }
.system .planet.is-frozen .surface-anim { animation: none; }
.system .moon { transition: fill .4s; }
.system .moon.running { filter: drop-shadow(0 0 3px var(--live)); }
.system .stream { fill: none; stroke: var(--live); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: .1 10;
  animation: flow .8s linear infinite; }
.system .stream-glow { fill: none; stroke: var(--live); stroke-width: 7; stroke-linecap: round; opacity: .1; }
.system .sun { cursor: pointer; outline: none; }
.system .sun-corona { transform-box: fill-box; transform-origin: center; animation: spin 160s linear infinite; }
.system .sun-glow { transform-box: fill-box; transform-origin: center; animation: sun-breathe 6.5s ease-in-out infinite; }
.system .sun-gran { transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite reverse; }
.system .sun-flare { fill: none; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.system .sun.warn .sun-glow { animation-duration: 3.4s; }
.system .sun.alarm .sun-glow { animation-duration: 1.9s; }
.system .sun.alarm .sun-flare { animation: flare 2.4s ease-out infinite; }
.system .sun.alarm .sun-flare.f2 { animation-delay: 1.2s; }
.system .sun:focus-visible .sun-core { stroke: var(--accent); stroke-width: 2; }
.system .sun .s-a { stop-color: #fffbe9; } .system .sun .s-b { stop-color: #ffd27a; } .system .sun .s-c { stop-color: #ff9f43; }
.system .sun.warn .s-b { stop-color: #ffb45c; } .system .sun.warn .s-c { stop-color: #ff7a26; }
.system .sun.alarm .s-a { stop-color: #ffe9df; } .system .sun.alarm .s-b { stop-color: #ff8a64; } .system .sun.alarm .s-c { stop-color: #e5382d; }
.system .sun .h-a { stop-color: rgba(255, 196, 92, .34); } .system .sun .h-b { stop-color: rgba(255, 160, 60, .1); }
.system .sun.alarm .h-a { stop-color: rgba(255, 110, 80, .42); } .system .sun.alarm .h-b { stop-color: rgba(255, 70, 50, .12); }
.system .sun.warn .h-a { stop-color: rgba(255, 170, 70, .38); }
.system .sun .sun-flare { stroke: #ffb27a; }
.system .sun .ray { fill: rgba(255, 214, 130, .12); }
.system .sun.warn .ray { fill: rgba(255, 176, 92, .16); }
.system .sun.alarm .ray { fill: rgba(255, 120, 90, .2); }
.system .ghost-planet { fill: rgba(150, 178, 255, .05); stroke: rgba(150, 178, 255, .4); stroke-width: 1.5; stroke-dasharray: 4 5;
  transform-box: fill-box; transform-origin: center; animation: spin 30s linear infinite; }

/* ============================================================================================ the planet list */
.worlds-page { margin-top: 34px; }
.money { margin-top: 18px; }
.worlds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.world-link { display: grid; grid-template-columns: 44px minmax(150px, 1.2fr) minmax(170px, 1fr) minmax(210px, 1.3fr) 236px 18px;
  grid-template-areas: "orb who standing meta flags go" "orb who moons moons moons go"; align-items: center; gap: 4px 16px;
  padding: 13px 16px; border-radius: 15px; border: 1px solid var(--line); background: var(--wash); color: var(--ink);
  transition: border-color .2s, background .2s, transform .2s var(--ease-out); }
.world-link:hover { text-decoration: none; border-color: var(--line-3); background: var(--wash-2); transform: translateX(2px); }
.world-link .orb { grid-area: orb; width: 40px; height: 40px; }
.world-who { grid-area: who; min-width: 0; }
.world-who b { display: block; font: 650 15px/1.25 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.world-who small { display: block; color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.world-standing { grid-area: standing; min-width: 0; }
.world-standing .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.world-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-3); font-size: 12.5px; }
.world-meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.world-meta .i { width: 14px; height: 14px; }
.world-flags { grid-area: flags; display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.world-moons { grid-area: moons; display: flex; flex-wrap: wrap; gap: 5px; }
.world-go { grid-area: go; color: var(--ink-4); transition: color .2s, transform .2s; }
.world-link:hover .world-go { color: var(--accent); transform: translateX(3px); }
.moonchip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--ink-3); font: 560 11px/1 var(--mono); }
.moonchip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c, var(--ink-4)); box-shadow: 0 0 6px var(--c, transparent); }
.moonchip.m-ok { --c: #e8eeff; color: var(--ink-2); }
.moonchip.m-warn { --c: var(--warn); color: var(--warn); }
.moonchip.m-bad { --c: var(--bad); color: var(--bad); }
.moonchip.m-running { --c: var(--live); color: var(--live); }
.moonchip.m-none { border-style: dashed; }
.moonchip.m-none::before { display: none; }

.orb { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 33% 30%, var(--pl, #d8d2ff) 0%, var(--pb, #8a7dff) 44%, var(--pd, #2d2380) 100%);
  box-shadow: inset -6px -7px 12px rgba(2, 4, 12, .55), inset 2px 2px 6px rgba(255, 255, 255, .14), 0 0 18px -4px var(--pb, #8a7dff); }
.orb.ringed::after { content: ""; position: absolute; left: -32%; right: -32%; top: 39%; height: 24%; border-radius: 50%;
  border: 2px solid var(--pl, #d8d2ff); opacity: .75; transform: rotate(-18deg); }
.orb.health-amber { box-shadow: inset -6px -7px 12px rgba(2, 4, 12, .55), 0 0 0 2px rgba(255, 198, 92, .55), 0 0 18px rgba(255, 198, 92, .55); }
.orb.health-red { box-shadow: inset -6px -7px 12px rgba(2, 4, 12, .55), 0 0 0 2px rgba(255, 107, 107, .6), 0 0 20px rgba(255, 107, 107, .7);
  animation: orb-flicker 3.4s steps(1, end) infinite; }
.orb.health-frozen { background: radial-gradient(circle at 33% 30%, #f2fbff 0%, #a9d6f2 46%, #3b6680 100%);
  box-shadow: inset -6px -7px 12px rgba(2, 4, 12, .45), 0 0 0 2px rgba(169, 220, 255, .4); }
.orb.xl { width: 200px; height: 200px; margin: auto; }

/* ============================================================================================ a planet's page */
.hero { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: 34px; align-items: center; margin: 0 0 24px; }
.hero-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1.12; animation: hero-in 1.1s var(--ease-out) both; }
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-info h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.025em; }
.hero-biz { margin: 6px 0 0; color: var(--ink-2); font-size: 17px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.qstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tidy { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; line-height: 1.5; }
.tidy .i { color: var(--accent); width: 16px; height: 16px; margin-top: 2px; }
.subnav { position: sticky; top: calc(var(--bar-h) + 10px); z-index: 20; display: flex; gap: 4px; margin: 6px 0 18px; padding: 5px;
  overflow-x: auto; scrollbar-width: none; border-radius: 14px; border: 1px solid var(--line); background: rgba(8, 12, 26, .8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 16px 40px -24px rgba(0, 0, 0, .9); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 7px 12px; border-radius: 9px; color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background .2s, color .2s; }
.subnav a:hover, .subnav a.on { background: var(--wash-2); color: var(--ink); text-decoration: none; }
.subnav a.on { box-shadow: inset 0 0 0 1px var(--line-2); }
section[id], .notice[id] { scroll-margin-top: calc(var(--bar-h) + 76px); }
.cols { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.col-main > .panel + .panel, .col-side > .panel + .panel { margin-top: 18px; }
.moon-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.moon-list li { display: grid; grid-template-columns: 12px auto 1fr; gap: 10px; align-items: baseline; padding: 9px 12px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--wash); }
.moon-list i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ink-4)); box-shadow: 0 0 8px var(--c, transparent); }
.moon-list b { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.moon-list span { color: var(--ink-3); font-size: 12.5px; }
.moon-list .m-ok { --c: #e8eeff; } .moon-list .m-warn { --c: var(--warn); } .moon-list .m-bad { --c: var(--bad); }
.moon-list .m-running { --c: var(--live); }
.suggestions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.suggestions li { padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--wash); }
.danger-zone { border-color: rgba(255, 107, 107, .22); background: linear-gradient(180deg, rgba(40, 22, 36, .7), rgba(16, 12, 26, .74)); }
.danger-zone .panel-head h2 > .i { color: var(--bad); }
.hero.born .hero-visual { animation: born 1.6s var(--ease-out) both; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; line-height: 1.55; }
.steps li > div { padding-top: 4px; min-width: 0; }
.step-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-3);
  background: var(--wash-2); color: var(--ink); font: 700 13px/1 var(--mono); }
.launch-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.launch-preview { position: sticky; top: calc(var(--bar-h) + 18px); text-align: center; overflow: hidden; }
.preview-visual { position: relative; aspect-ratio: 1.12; margin: 0 auto; max-width: 340px; }
.preview-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.preview-name { margin: 6px 0 2px; font: 680 21px/1.25 var(--display); overflow-wrap: anywhere; }
.preview-biz { margin: 0; overflow-wrap: anywhere; }

/* ============================================================================================ Signals, Flight Log, Station, brains */
.signals { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.signal { --c: var(--accent); position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px;
  padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(90deg, rgba(151, 182, 255, .08), rgba(13, 19, 36, .78) 45%); }
.signal::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); box-shadow: 0 0 18px var(--c); }
.signal.urgent { --c: var(--bad); border-color: rgba(255, 107, 107, .36); background: linear-gradient(90deg, rgba(255, 107, 107, .13), rgba(13, 19, 36, .8) 50%); }
.signal.important { --c: var(--warn); border-color: rgba(255, 198, 92, .3); background: linear-gradient(90deg, rgba(255, 198, 92, .1), rgba(13, 19, 36, .8) 50%); }
.signal.seen { opacity: .78; }
.signal h2 { margin: 6px 0 4px; font-size: 16px; }
.signal p { margin: 0 0 4px; color: var(--ink-2); }
.signal-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.signal-planet { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.signal-planet .i { width: 15px; height: 15px; }
.signal-mark { position: relative; width: 28px; height: 28px; margin-top: 2px; }
.signal-mark i, .signal-mark::before { position: absolute; inset: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.signal-mark::before { content: ""; inset: 9px; background: none; border: 1.5px solid var(--c); animation: beacon-css 2.4s ease-out infinite; }
.signal.seen .signal-mark::before { animation: none; opacity: 0; }
.signal-act { align-self: center; }
.quiet-sky { display: grid; justify-items: center; text-align: center; padding: 40px 20px 30px; margin-bottom: 18px; }
.quiet-sky h2 { font-size: 20px; margin-top: 16px; }
.quiet-sky p { margin: 4px 0 0; }
.radar { position: relative; width: 150px; height: 150px; border-radius: 50%; border: 1px solid var(--line-2); overflow: hidden;
  background: radial-gradient(circle, rgba(151, 182, 255, .07), transparent 70%); }
.radar i { position: absolute; border-radius: 50%; border: 1px solid var(--line); inset: 25px; }
.radar i:nth-child(2) { inset: 50px; } .radar i:nth-child(3) { inset: 72px; background: var(--accent); border: 0; box-shadow: 0 0 12px var(--accent); }
.radar b { position: absolute; inset: 0; border-radius: 50%; animation: spin 4s linear infinite;
  background: conic-gradient(from 0deg, rgba(151, 182, 255, .35), rgba(151, 182, 255, 0) 70deg, transparent 360deg); }
table.log td { padding-top: 9px; padding-bottom: 9px; }
.log .act { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.actor { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line-2);
  color: var(--ink-2); font: 600 11px/1 var(--mono); letter-spacing: .04em; }
.actor.a-colt { color: var(--accent); border-color: var(--line-3); }
.actor.a-client { color: var(--ok); border-color: rgba(94, 240, 166, .3); }
.actor.a-watchdog { color: var(--warn); border-color: rgba(255, 198, 92, .3); }
.actor.a-stripe { color: #c4b1ff; border-color: rgba(196, 177, 255, .32); }
.actor.a-system { color: var(--ink-3); }
.health-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.health-list li { display: grid; grid-template-columns: 12px 170px 1fr; gap: 12px; align-items: baseline; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--wash); }
.health-list b { font-weight: 640; }
.health-list span { color: var(--ink-2); }
.files { list-style: none; margin: 0; padding: 4px; columns: 2 320px; column-gap: 14px; }
.files li { break-inside: avoid; }
.files a, .files li > .i { color: inherit; }
.files li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px; font: 13px/1.4 var(--mono); }
.files li:hover { background: var(--wash); }
.files a { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); }
.files .i { width: 15px; height: 15px; color: var(--ink-3); }
.files .dir { color: var(--ink-3); }
.files .fname { overflow-wrap: anywhere; }
h1.path { font: 650 22px/1.3 var(--mono); overflow-wrap: anywhere; }
pre.file-text { border: 0; background: transparent; padding: 16px 18px; font-size: 13.5px; }
.message h1 { margin-bottom: 4px; }

/* ============================================================================================ sign-in and confirm */
main.auth { position: relative; display: grid; place-items: center; padding: 48px 16px; overflow: hidden;
  min-height: calc(100vh - var(--bar-h)); min-height: calc(100svh - var(--bar-h)); }
.auth-card { position: relative; z-index: 2; width: min(430px, 100%); padding: 32px 30px 26px; border-radius: 24px;
  border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(24, 33, 62, .8), rgba(10, 15, 31, .86));
  box-shadow: 0 50px 110px -34px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); animation: rise .9s var(--ease-out) both; }
.auth-card h1 { font-size: 27px; }
.auth-card .lede { font-size: 15px; margin: 10px 0 16px; }
.auth-card .notice { margin: 0 0 12px; font-size: 14px; }
.auth-form label { margin-top: 4px; }
.auth-form button.wide { margin-top: 16px; }
.auth-alt { margin: 16px 0 0; color: var(--ink-3); font-size: 13.5px; text-align: center; }
.auth-alt a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.auth-alt a .i { width: 15px; height: 15px; }
.auth-badge { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 16px;
  border: 1px solid var(--line-3); background: var(--wash-2); color: var(--accent); box-shadow: 0 0 34px -8px var(--accent-glow); }
.auth-badge .i { width: 26px; height: 26px; }
.auth-badge.good { color: var(--ok); border-color: rgba(94, 240, 166, .4); background: rgba(94, 240, 166, .1);
  box-shadow: 0 0 34px -8px rgba(94, 240, 166, .5); }
.auth-scene { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 1; perspective: 1400px;
  animation: fade-in 1.4s .5s both; }
.auth-sun { position: absolute; width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 232, 170, .9) 0 9%, rgba(255, 196, 92, .45) 22%, rgba(255, 150, 60, .12) 46%, transparent 68%);
  animation: sun-breathe 7s ease-in-out infinite; }
.auth-scene.quiet .auth-sun { opacity: .55; width: 420px; height: 420px; }
.auth-plane { position: absolute; width: 1px; height: 1px; transform: rotateX(68deg) rotateZ(-14deg); transform-style: preserve-3d; }
.auth-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(160, 186, 255, .14);
  transform: translate(-50%, -50%); animation: spin var(--t) linear infinite; }
.auth-ring i { position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; }
.auth-ring.r1 { width: 560px; height: 560px; --t: 60s; }
.auth-ring.r2 { width: 800px; height: 800px; --t: 95s; animation-direction: normal; }
.auth-ring.r3 { width: 1060px; height: 1060px; --t: 140s; }
.auth-ring.r4 { width: 1340px; height: 1340px; --t: 200s; }
.auth-ring .p1 { background: radial-gradient(circle at 35% 35%, #d8d2ff, #8a7dff 55%, #2d2380); box-shadow: 0 0 18px rgba(138, 125, 255, .9); }
.auth-ring .p2 { width: 16px; height: 16px; top: -8px; background: radial-gradient(circle at 35% 35%, #c3fff3, #27c9b0 55%, #07574c); box-shadow: 0 0 18px rgba(39, 201, 176, .9); }
.auth-ring .p3 { width: 10px; height: 10px; top: -5px; background: radial-gradient(circle at 35% 35%, #ffd1e6, #f06fae 55%, #7a1748); box-shadow: 0 0 16px rgba(240, 111, 174, .9); }
.auth-ring .p4 { width: 14px; height: 14px; top: -7px; background: radial-gradient(circle at 35% 35%, #c9e8ff, #3d9df5 55%, #0d3a75); box-shadow: 0 0 16px rgba(61, 157, 245, .9); }

/* ============================================================================================ ⌘K */
dialog.palette { width: min(660px, calc(100% - 28px)); max-height: min(600px, 80vh); margin: 11vh auto auto; padding: 0;
  border-radius: 20px; border: 1px solid var(--line-2); color: var(--ink); overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 33, 62, .97), rgba(10, 15, 31, .98));
  box-shadow: 0 60px 140px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .03) inset; }
dialog.palette[open] { display: flex; flex-direction: column; animation: pop .26s var(--ease-out) both; }
dialog.palette::backdrop { background: rgba(2, 4, 10, .58); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.palette-form { position: relative; flex: none; border-bottom: 1px solid var(--line); }
.palette-glass { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 20px !important; height: 20px !important; }
.palette-input { min-height: 64px; padding: 18px 64px 18px 54px; border: 0; border-radius: 0; background: transparent; font-size: 17px; }
.palette-input:hover, .palette-input:focus { border: 0; background: transparent; box-shadow: none; }
.palette-esc { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); }
.palette-list { flex: 1 1 auto; list-style: none; margin: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; }
.palette-group { padding: 12px 12px 6px; color: var(--ink-4); font: 650 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); cursor: pointer; }
.palette-item .orb { width: 26px; height: 26px; }
.palette-item .pi { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--wash); color: var(--accent); }
.palette-item .pi .i { width: 15px; height: 15px; }
.palette-item .pt { min-width: 0; flex: 1; }
.palette-item .pt b { display: block; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-item .pt small { display: block; color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-item .ps { color: var(--ink-4); font-size: 12px; }
.palette-item[aria-selected="true"] { background: var(--wash-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.palette-item[aria-selected="true"] .ps { color: var(--accent); }
.palette-item mark { background: none; color: var(--accent); font-weight: 750; }
.palette-empty { padding: 26px 14px; color: var(--ink-3); text-align: center; }
.palette-foot { flex: none; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 12px; }
.palette-foot span { display: inline-flex; gap: 6px; align-items: center; }
.palette-count { margin-left: auto; }

/* ============================================================================================ mission control everywhere */
html[data-mode="mission"] body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(111, 243, 223, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(111, 243, 223, .045) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 82%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 82%); }
html[data-mode="mission"] .panel { background: linear-gradient(180deg, rgba(10, 30, 36, .74), rgba(6, 15, 22, .76)); }
html[data-mode="mission"] .panel::before, html[data-mode="mission"] .panel::after { content: ""; position: absolute; width: 16px; height: 16px;
  border: 1.5px solid var(--hud); opacity: .7; pointer-events: none; }
html[data-mode="mission"] .panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r-lg); }
html[data-mode="mission"] .panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r-lg); }
html[data-mode="mission"] .panel-head h2, html[data-mode="mission"] .sub-head { font-family: var(--mono); font-size: 12.5px;
  font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
html[data-mode="mission"] .eyebrow { color: var(--hud); }
html[data-mode="mission"] .danger-zone { background: linear-gradient(180deg, rgba(40, 18, 22, .74), rgba(18, 10, 14, .78)); }
html[data-mode="mission"] .stat { border-color: rgba(111, 243, 223, .16); }
html[data-mode="mission"] .stat-n { font-family: var(--mono); font-weight: 600; font-size: 19px; color: #dffcf7; }

/* ============================================================================================ motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .66; } 50% { opacity: 1; } }
@keyframes live-glow { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes flicker { 0% { opacity: .95; } 6% { opacity: .2; } 8% { opacity: .9; } 11% { opacity: .3; } 14% { opacity: .95; }
  47% { opacity: .9; } 49% { opacity: .12; } 53% { opacity: .85; } 79% { opacity: .95; } 82% { opacity: .35; } 85% { opacity: .95; } }
@keyframes orb-flicker { 0%, 14%, 53%, 85% { filter: none; } 6%, 11%, 49%, 82% { filter: brightness(.55) saturate(.7); } }
@keyframes beacon { from { transform: scale(1); opacity: .75; } to { transform: scale(2.25); opacity: 0; } }
@keyframes beacon-css { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: -10.1; } }
@keyframes crawl { to { stroke-dashoffset: -240; } }
@keyframes sun-breathe { 0%, 100% { transform: scale(1); opacity: .88; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes flare { from { transform: scale(1); opacity: .75; } to { transform: scale(2.6); opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes shoot { 0% { opacity: 0; transform: translateX(0) rotate(var(--rot)); }
  12% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--dist)) rotate(var(--rot)); } }
@keyframes live-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes armed { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, .55); } 50% { box-shadow: 0 0 0 6px rgba(255, 107, 107, 0); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hero-in { from { opacity: 0; transform: scale(.78); } to { opacity: 1; transform: none; } }
@keyframes born { 0% { opacity: 0; transform: scale(.2); filter: brightness(3) blur(6px); } 55% { opacity: 1; filter: brightness(1.4) blur(0); }
  100% { opacity: 1; transform: none; filter: none; } }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ============================================================================================ smaller screens */
@media (max-width: 1180px) {
  .ticker { display: none !important; }
  .nav a span:not(.count) { display: none; }
  .nav a { padding: 0 11px; }
  .nav a[aria-current="page"] span:not(.count) { display: inline; }
}
@media (max-width: 1080px) {
  .cols { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }   /* one column, in the order of
           the section bar; each panel the column's width, its tables scrolling inside it (2026-10-28: at 320 px
           they sized their panels and the whole page scrolled sideways) */
  .cols .panel { min-width: 0; }
  .col-main, .col-side { display: contents; }
  .cols .panel + .panel { margin-top: 0; }
  .cols #visits { order: 9; }
  .world-link { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.15fr) 200px 18px;
    grid-template-areas: "orb who standing flags go" "orb moons meta meta go"; }
  .launch-grid { grid-template-columns: minmax(0, 1.35fr) minmax(240px, 1fr); }
}
@media (max-width: 860px) {
  .launch-grid { grid-template-columns: minmax(0, 1fr); }
  .launch-preview { position: relative; top: 0; order: -1; display: grid; grid-template-columns: 150px minmax(0, 1fr);
    grid-template-areas: "vis eyebrow" "vis name" "vis biz"; align-items: center; column-gap: 16px; text-align: left; padding: 12px 18px; }
  .launch-preview .eyebrow { grid-area: eyebrow; align-self: end; margin: 0; }
  .preview-visual { grid-area: vis; width: 150px; max-width: none; margin: 0; }
  .preview-name { grid-area: name; margin: 2px 0; }
  .preview-biz { grid-area: biz; align-self: start; }
}
@media (max-width: 900px) {
  .tele { display: none !important; }
  .legend:not([open]) { width: auto; }
  .tool .label, .tool kbd { display: none; }
  .mode-switch .mode-label { display: none; }
  .mode-switch { padding: 0 8px; }
}
@media (max-width: 760px) {
  :root { --bar-h: 56px; }
  .nav { display: none; }
  .bar { gap: 8px; padding: 0 12px; }
  .tool.launch { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 45; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 20px; border: 1px solid var(--line-2);
    background: rgba(8, 12, 26, .88); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .9); }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 14px; color: var(--ink-3);
    font-size: 10.5px; font-weight: 650; }
  .tabbar a:hover { text-decoration: none; color: var(--ink); }
  .tabbar a[aria-current="page"] { color: var(--ink); background: var(--wash-2); }
  .tabbar .i { width: 20px; height: 20px; }
  .tabbar .count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px; font-size: 10px; line-height: 16px; }
  .tabbar .tab-launch { color: var(--accent); }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: 16px; }
  .page { width: calc(100% - 28px); margin-top: 18px; }
  h1 { font-size: 26px; }
  .panel { padding: 16px; border-radius: 16px; }
  button, .btn { max-width: 100%; white-space: normal; min-height: 40px; padding-top: 9px; padding-bottom: 9px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .world-link { grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 6px 12px; padding: 12px 14px;
    grid-template-areas: "orb who go" "orb standing go" "orb meta go" "orb flags go" "orb moons go"; }
  .world-flags { justify-content: flex-start; }
  .world-flags:empty { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero-visual { max-width: 330px; width: 100%; margin: 0 auto; }
  .hero-info { text-align: center; }
  .hero-pills { justify-content: center; }
  .qstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dl.facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mc { height: calc(100svh - var(--bar-h) - 84px); min-height: 480px; }
  .hud-tl { top: 14px; left: 14px; }
  .hud-tl h1 { font-size: 23px; }
  .mc-stats { gap: 6px; margin-top: 10px; }
  .mc-stat { padding: 7px 10px; }
  .mc-stat b { font-size: 15px; }
  .mc-stat:nth-child(n+3) { display: none; }
  .hud-bl { left: 12px; bottom: 12px; }
  .hud-br { right: 12px; bottom: 12px; }
  .hud-tr { top: 168px; right: 12px; width: calc(100% - 24px); }
  .hud-tr .sig:nth-of-type(n+3) { display: none; }         /* the rest are on Signals and in the list below */
  .sig { padding: 9px 12px; font-size: 13px; }
  .legend:not([open]) summary span { display: none; }
  .legend:not([open]) { padding: 11px 12px; }
  .legend { width: min(286px, calc(100vw - 150px)); }
  .legend:not([open]) { width: auto; }
  .mc-hint { display: none; }
  .holo { width: min(296px, calc(100vw - 24px)); }
  .health-list li { grid-template-columns: 12px minmax(0, 1fr); }
  .health-list li span { grid-column: 2; }
  .health-mini li { grid-template-columns: 10px 96px 1fr; }
  .signal { grid-template-columns: 22px minmax(0, 1fr); }
  .signal-act { grid-column: 2; justify-self: start; }
  .files { columns: 1; }
  main.auth { min-height: calc(100svh - var(--bar-h) - 84px); padding: 28px 14px; }
  .auth-card { padding: 26px 22px 22px; }
}
@media (hover: none) { .world-link:hover { transform: none; } }

/* ============================================================================================ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .tw, .shoot { display: none !important; }
  .system .planet .beacon { animation: none !important; opacity: .6; transform: scale(1.45); }   /* a still ring, not gone */
  .system .planet .beacon.b2 { display: none; }
  @view-transition { navigation: none; }
}
