/* Station theme — shared by every page.
   Ink line work on the page colour; one signal colour for "needs you".
   Loaded after site-theme.css (and site-index.css on the homepage) and
   overrides their indigo accent, glow backdrops and pill styling.
   `:not(#_)` raises specificity above the theme's own token blocks. */

/* Typefaces, served from this site (no third-party requests).
   Space Grotesk for headings: the parent studio's face, with the mechanical
   quirks that sit well beside the line art. IBM Plex Mono for labels and code,
   loaded so every visitor sees it, not only those who have it installed.
   Both SIL Open Font License; see fonts/LICENSE-*.txt. */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root:not(#_) {
  --display: 'Space Grotesk', system-ui, sans-serif;
  --accent: var(--text);
  --accent-lit: var(--text);
  --accent-dim: color-mix(in srgb, var(--text) 28%, transparent);
  --accent-glow: color-mix(in srgb, var(--text) 6%, transparent);
  --ink: var(--text);
  --rule: color-mix(in srgb, var(--text) 22%, transparent);
  --signal: #fbbf24;
  --signal-ink: #1c1400;
}
html[data-theme='light']:not(#_) { --signal: #b45309; --signal-ink: #fff; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]):not(#_) { --signal: #b45309; --signal-ink: #fff; }
}

/* Backdrop: keep the stars in dark mode, drop the glows, grid and scanlines. */
.backdrop-crt-grid, .backdrop-scanlines, .backdrop-nebula,
.supernova-radial, .supernova-edge, .supernova-glow, .hero-art-aura { display: none !important; }
.backdrop-stars { filter: grayscale(1); opacity: 0.55; }
.backdrop-vignette { opacity: 0.6; }

/* Navigation and links */
.nav-link:hover, .nav-link.is-active {
  color: var(--text); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.prose-link, .prose a, .guide a:not(.nav-link) {
  color: var(--text); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.prose-link:hover { text-decoration-thickness: 2px; }

/* Buttons: ink fill, ink outline. No glow. */
.btn-download {
  background: var(--text) !important; color: var(--bg) !important;
  border: 1.5px solid var(--text) !important; box-shadow: none !important;
  border-radius: 2px !important;
}
.btn-download:hover { background: transparent !important; color: var(--text) !important; }
.btn-guide {
  border: 1.5px solid var(--text) !important; color: var(--text) !important;
  background: transparent !important; border-radius: 2px !important; box-shadow: none !important;
}
.btn-guide:hover { background: var(--accent-glow) !important; }
.alt-link:hover { color: var(--text); text-decoration: underline; }

/* Shared station components work outside the homepage wrapper too. */
.st, .st-page { color: var(--text); }

.ink {
  background-color: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
  width: 100%;
}

.st a:not(.btn-download):not(.btn-guide):not(.alt-link),
.st-page a:not(.btn-download):not(.btn-guide):not(.nav-link) {
  color: inherit; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.st a:not(.btn-download):not(.btn-guide):not(.alt-link):hover,
.st-page a:not(.btn-download):not(.btn-guide):not(.nav-link):hover { text-decoration-thickness: 2px; }
.st kbd, .st-page kbd {
  font-family: var(--mono); font-size: 0.86em;
  padding: 1px 6px; border: 1px solid var(--rule); border-radius: 2px;
}

/* ── Hero ─────────────────────────────────────── */
.st-hero { padding: 56px 0 0; }
.st-hero-copy { max-width: 720px; }
.st-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 6.2vw, 76px); font-weight: 700;
  line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance;
}
.st-lead { margin: 0 0 28px; max-width: 56ch; font-size: 18px; line-height: 1.6; color: var(--muted); }
.st-facts { margin: 6px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.st-hero-art { margin: 8px 0 0; }

/* ── The board ────────────────────────────────── */
.st-board-wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px;
  align-items: start; padding: 56px 0 88px;
}
.st-board-copy h2, .st-body h2 {
  margin: 0 0 14px; font-size: clamp(24px, 3vw, 34px); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance;
}
.st-board-copy p, .st-body p { margin: 0 0 14px; max-width: 58ch; font-size: 16px; line-height: 1.65; color: var(--muted); }
.st-works { font-size: 14px !important; }

.st-board {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: 13px;
  border: 1.5px solid var(--ink);
}
.st-board caption {
  caption-side: top; text-align: left; padding: 9px 12px;
  background: var(--ink); color: var(--bg);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
.st-board caption span { float: right; opacity: 0.7; }
.st-board th {
  text-align: left; padding: 7px 12px; font-weight: 400;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1.5px solid var(--ink);
}
.st-board td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-transform: uppercase; letter-spacing: 0.04em; }
.st-board tr:last-child td { border-bottom: none; }
.st-board td:first-child { width: 4.5em; }
.st-flag { display: inline-block; padding: 2px 8px; background: var(--signal); color: var(--signal-ink); font-weight: 600; }

/* ── Tracks ───────────────────────────────────── */
.st-track {
  display: grid; grid-template-columns: 148px minmax(0, 1fr); column-gap: 40px;
  padding: 64px 0; border-top: 1.5px solid var(--ink);
}
.st-no {
  margin: 0; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.st-no span {
  display: block; margin-bottom: 6px; color: var(--text);
  font-size: 44px; line-height: 1; letter-spacing: -0.02em; font-weight: 500;
}
.st-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.st-art { margin-top: 28px; }
.st-split .st-art { margin-top: 0; }
.st-keys { font-size: 14px !important; }
.st-asks { margin: 0 0 16px; padding: 0 0 0 1.2em; max-width: 58ch; font-size: 16px; line-height: 1.6; color: var(--text); }
.st-asks li { margin-bottom: 6px; }

.st-clearance { border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 13px; }
.st-clearance p { margin: 0; max-width: none; color: var(--text); font-size: 13px; line-height: 1.5; }
.st-clearance-head {
  padding: 9px 12px; background: var(--signal); color: var(--signal-ink) !important;
  font-size: 11px !important; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
}
.st-clearance-who { padding: 14px 12px 0; }
.st-clearance-where { padding: 2px 12px 0; color: var(--muted) !important; font-size: 11px !important; }
.st-clearance pre {
  margin: 12px; padding: 10px 12px; border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.st-clearance-actions { display: flex; flex-wrap: wrap; border-top: 1.5px solid var(--ink); }
.st-clearance-actions span { padding: 9px 12px; border-right: 1px solid var(--rule); font-size: 12px; }
.st-clearance-actions .is-default { background: var(--ink); color: var(--bg); }

.st-fuel td:first-child { width: auto; }
.st-gauge {
  display: inline-block; vertical-align: middle; width: 72px; height: 8px; margin-right: 10px;
  border: 1px solid var(--ink);
  background: linear-gradient(to right, var(--ink) var(--v), transparent var(--v));
}
.st-fuel .is-waiting .st-gauge { border-color: var(--signal); background: linear-gradient(to right, var(--signal) var(--v), transparent var(--v)); }
.st .ccm-disclaimer { font-size: 12px !important; text-align: left; margin: 0; }

.st-for .st-no { color: var(--text); line-height: 1.6; }
.st-for { border-bottom: 1.5px solid var(--ink); margin-bottom: 72px; }

@media (max-width: 900px) {
  .st-hero { padding-top: 36px; }
  .st-board-wrap { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 64px; }
  .st-track { grid-template-columns: 1fr; row-gap: 18px; padding: 48px 0; }
  .st-no span { display: inline; margin-right: 10px; font-size: 28px; vertical-align: -3px; }
  .st-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .st-board { font-size: 12px; }
  .st-board th, .st-board td { padding-left: 8px; padding-right: 8px; }
  .st-board th:nth-child(3), .st-board td:nth-child(3) { display: none; }
  .st-fuel th:nth-child(3), .st-fuel td:nth-child(3) { display: table-cell; }
  .st-fuel th:nth-child(2), .st-fuel td:nth-child(2) { display: none; }
  .st-gauge { width: 48px; }
}

/* Wide screens: the drawing's sky rises behind the last lines of the hero
   copy so the station is on screen without scrolling. */
@media (min-width: 1100px) {
  .st-hero { position: relative; }
  .st-hero-copy { position: relative; z-index: 1; }
  .st-hero-art { margin-top: 12px; }
}

/* Download and guide buttons share a row; the platform notes sit under them. */
.st-hero .download-area { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
.st-hero .download-area > :not(.primary-btn-row):not(.btn-guide) { flex-basis: 100%; }
@media (max-width: 900px) { .st-hero .download-area { justify-content: flex-start; } .st-hero, .st-hero .hero { text-align: left; } }
.st-hero .other-platforms, .st-hero .hero-meta { justify-content: flex-start; }
.st-hero .mac-note { text-align: left; }

/* Conductor track: prompt and command side by side, then clearance and MCP. */
.st-body h3 {
  margin: 0 0 10px; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text);
}
.st-body p + h3 { margin-top: 26px; }
.st-body code {
  font-family: var(--mono); font-size: 0.9em; padding: 1px 5px;
  border: 1px solid var(--rule); border-radius: 2px; color: var(--text);
}
.st-split-top { align-items: start; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--rule); }
.st-split .st-asks { margin-bottom: 0; }
.st-cli {
  margin: 0; padding: 14px 16px; border: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--text);
  white-space: pre; overflow-x: auto;
}
.st-cli .c { color: var(--muted); }
.st-body > .st-art { margin-top: 40px; }
.st-art-tight { margin: 0 0 18px; }
.st-mark { width: 150px; aspect-ratio: 272 / 113; margin-top: 28px; }
.st-split > *, .st-body { min-width: 0; }

/* Departure (homepage download) */
.st-depart {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px;
  align-items: start; padding: 0 0 80px;
}
.st-depart h2 {
  margin: 8px 0 14px; font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.03em;
}
.st-depart p { margin: 0 0 18px; max-width: 54ch; font-size: 16px; line-height: 1.65; color: var(--muted); }
.st-depart .dl-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 18px; }
.st-small { font-size: 14px !important; }
.st-depart .whats-new-card {
  background: transparent !important; box-shadow: none !important;
  border: 1.5px solid var(--ink) !important; border-radius: 0 !important;
}
.st-depart .wn-dot { background: var(--ink) !important; box-shadow: none !important; }
.st-depart .wn-link { color: var(--text) !important; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .st-depart { grid-template-columns: 1fr; gap: 32px; } }

/* Page hero for inner pages: title, lead, one drawing. */
.st-page-hero { padding: 48px 0 8px; }
.st-page-hero h1 {
  margin: 0 0 18px; font-size: clamp(36px, 5.4vw, 64px); font-weight: 700;
  line-height: 1; letter-spacing: -0.035em; text-wrap: balance;
}
.st-page-hero .st-lead { margin-bottom: 0; }
.st-page-hero .ink { margin-top: 28px; }
.st-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px !important; }
.st-cta-row .btn-download, .st-cta-row .btn-guide { display: inline-flex; align-items: center; padding: 11px 18px; font-family: var(--mono); font-size: 13px; text-decoration: none !important; }

/* Inner pages */
.st-hero-strip { margin-top: 28px; }
.st-hero-strip--small { max-width: 560px; }
.st-h3 {
  margin: 0 0 10px; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text);
}
.guide .st-page-hero, .doc-hero.st-page-hero { padding-top: 24px; margin-bottom: 36px; }
.guide .st-page-hero h1, .doc-hero.st-page-hero h1, .landing-page > h1 {
  font-size: clamp(36px, 5.4vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -0.035em; text-wrap: balance;
}
.guide-toc a { color: var(--muted); }
.guide-toc a:hover { color: var(--text); }

/* Pull every inner page onto the same ruled, square-cornered surface. */
.guide h2, .prose h2, .changelog-entry h2 { letter-spacing: -0.02em; }
.landing-figure .ink, .contribute-art .ink { width: 100%; }
.contribute-art-aura, .landing-figure-aura { display: none !important; }
.landing-stack-logos li, .landing-stack-logos img { filter: grayscale(1); }
.landing-flow-card, .landing-flow-col, .faq-item, .shortcuts-table, .changelog-entry,
.content, .whats-new-card, .sp-mockup, .amount-btn, .mode-toggle {
  border-radius: 0 !important; box-shadow: none !important;
}
.mode-btn.active, .amount-btn.selected, .amount-btn[aria-pressed='true'] {
  background: var(--text) !important; color: var(--bg) !important; border-color: var(--text) !important;
}
.st-page-hero .st-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.st-page-hero .st-cli { font-size: 12px; }
@media (max-width: 900px) { .st-page-hero .st-split { grid-template-columns: 1fr; } }
.landing-flow-col, .landing-flow-col--after, .landing-flow-col--before { background: transparent !important; }
.landing-flow-col--after, .landing-flow-card .landing-flow-col:last-child { border-left: 1.5px solid var(--ink) !important; }

/* AI coding page: before/after panes, tool tiles, call to action. */
.landing-page .landing-flow-pane { background: transparent !important; border-radius: 0 !important; border: 1px solid var(--rule) !important; }
.landing-page .landing-flow-pane--fix { border: 1.5px solid var(--ink) !important; }
.landing-page .landing-flow-pane-label { color: var(--muted) !important; }
.landing-page .landing-flow-pane--fix .landing-flow-pane-label { color: var(--text) !important; }
.landing-page .landing-flow-tools li, .landing-page .landing-stack-logos li {
  background: transparent !important; border: 1px solid var(--rule) !important; border-radius: 0 !important; box-shadow: none !important;
}
.landing-page .landing-flow-tools img, .landing-page .landing-stack-logos img { filter: grayscale(1) contrast(1.2); }
.landing-page .landing-status-chip { background: transparent !important; border: 1px solid var(--signal) !important; border-radius: 0 !important; color: var(--signal) !important; }
.landing-page .scenario-dot--wait { background: var(--signal) !important; box-shadow: none !important; }
.landing-page .landing-cta-bar { background: transparent !important; border: 1.5px solid var(--ink) !important; border-radius: 0 !important; box-shadow: none !important; }
.landing-page .landing-cta-btn { background: var(--text) !important; color: var(--bg) !important; border: 1.5px solid var(--text) !important; border-radius: 2px !important; box-shadow: none !important; text-decoration: none !important; }
.landing-page .landing-cta-btn:hover { background: transparent !important; color: var(--text) !important; }
.landing-page .landing-flow-rail::after, .landing-page .landing-flow-rail { background-color: var(--rule) !important; }
.faq-item, .landing-page .landing-faq-item { background: transparent !important; border-radius: 0 !important; }
/* Tool logos are white glyphs: dark ink on the light page. */
html[data-theme='light'] .landing-page .landing-flow-tools img, html[data-theme='light'] .landing-page .landing-stack-logos img { filter: grayscale(1) invert(1); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .landing-page .landing-flow-tools img, :root:not([data-theme]) .landing-page .landing-stack-logos img { filter: grayscale(1) invert(1); }
}

/* Headings in the display face. Body text stays in the system face. */
h1, h2, .sp-title, .st-board-copy h2, .st-body h2, .wn-title, .footer-brand {
  font-family: var(--display); font-weight: 700;
}
h1 { letter-spacing: -0.04em; }
h3:not(.st-h3):not(.landing-flow-card-head h3) { font-family: var(--display); font-weight: 500; }
.st-art-portrait { max-width: 460px; justify-self: end; }
.st-depart-art { margin-top: 36px; }
@media (max-width: 900px) { .st-art-portrait { justify-self: start; max-width: 100%; } }

/* Indigo, dark mode only: the colour of the space the station sits in.
   The sky (--bg) is already a deep indigo-black; stars and line art take a
   slight indigo cast. Controls, links and labels never use indigo. Light
   mode has no indigo apart from the logo. */
html[data-theme='dark'] .ink, html[data-theme='dark'] .st-hero-strip { background-color: #dcdcff; }
html[data-theme='dark'] .backdrop-stars { filter: none; opacity: 0.7; }
html[data-theme='dark']:not(#_) { --faint: #8a8a96; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .ink { background-color: #dcdcff; }
  :root:not([data-theme]) .backdrop-stars { filter: none; opacity: 0.7; }
  :root:not([data-theme]):not(#_) { --faint: #8a8a96; }
}

/* Focus rings in ink, everywhere. */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--text); outline-offset: 3px;
}
.st-kicker { margin: 0 0 14px !important; color: var(--text) !important; }

/* ── The app, drawn: toolbar, grouped sidebar, tiled grid ──────────────
   Follows the real UnionTerminal window (src/renderer): sessions grouped in
   the sidebar with a status dot, tiled panes each with a tab header. Ink
   lines only; amber marks the one session waiting for you. */
.st-board-wrap--app { grid-template-columns: 1fr; gap: 28px; }
.st-board-wrap--app .st-board-copy p { max-width: 70ch; }
.ut-app {
  margin: 0; border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 12px;
  color: var(--text); background: color-mix(in srgb, var(--bg) 92%, var(--text) 8%);
}
.ut-bar {
  display: flex; align-items: center; gap: 14px; padding: 8px 12px;
  border-bottom: 1.5px solid var(--ink); font-size: 11px;
}
.ut-brand { font-weight: 600; }
.ut-brand em { font-style: normal; color: var(--muted); font-weight: 400; }
.ut-btn { padding: 3px 9px; border: 1px solid var(--ink); }
.ut-layouts { display: inline-flex; gap: 4px; }
.ut-layouts i { width: 14px; height: 11px; border: 1px solid var(--rule); }
.ut-layouts i.on { border-color: var(--ink); background: var(--rule); }
.ut-tool { color: var(--muted); }
.ut-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 330px; }
.ut-side { border-right: 1.5px solid var(--ink); padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; }
.ut-side-h { margin: 0 4px 2px; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ut-side-sub { margin-top: 6px; }
.ut-group { border-left: 2px solid var(--ink); padding-left: 6px; display: flex; flex-direction: column; gap: 4px; }
.ut-group-h { margin: 0 0 2px; display: flex; justify-content: space-between; font-size: 11px; }
.ut-group-h span { color: var(--muted); }
.ut-row { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border: 1px solid var(--rule); }
.ut-row.is-waiting { border-color: var(--signal); }
.ut-row-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ut-row-text b { font-weight: 500; font-size: 11.5px; }
.ut-row-text i { font-style: normal; font-size: 10px; color: var(--muted); }
.ut-row.is-waiting .ut-row-text i { color: var(--signal); }
.ut-ps { font-size: 8px; padding: 1px 3px; border: 1px solid var(--rule); color: var(--muted); flex-shrink: 0; }
.ut-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex-shrink: 0; }
.ut-dot--wait { background: var(--signal); animation: hmpulse 1.6s ease-in-out infinite; }
.ut-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ut-pane { grid-column: span 2; min-width: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; }
.ut-pane:nth-child(3) { border-right: none; }
.ut-pane:nth-child(4), .ut-pane:nth-child(5) { grid-column: span 3; border-bottom: none; }
.ut-pane:nth-child(5) { border-right: none; }
.ut-tab { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); font-size: 11.5px; }
.ut-pane.is-waiting .ut-tab { border-top-color: var(--signal); }
.ut-time { margin-left: auto; color: var(--muted); font-size: 10px; }
.ut-term { padding: 10px 10px 14px; font-size: 11px; line-height: 1.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ut-term .t-p { color: var(--muted); } .ut-term .t-o { color: var(--muted); }
.ut-term .t-ok { color: var(--text); } .ut-term .t-w { color: var(--signal); font-weight: 600; }
.ut-pane.is-waiting { background: color-mix(in srgb, var(--signal) 6%, transparent); }
@media (max-width: 900px) {
  .ut-body { grid-template-columns: 160px minmax(0, 1fr); }
  .ut-pane, .ut-pane:nth-child(4), .ut-pane:nth-child(5) { grid-column: span 3; }
  .ut-pane:nth-child(3) { border-right: 1px solid var(--rule); }
  .ut-pane:nth-child(even) { border-right: none; }
  .ut-pane:nth-child(5) { display: none; }
  .ut-tool { display: none; }
}
@media (max-width: 560px) {
  .ut-body { grid-template-columns: 1fr; }
  .ut-side { border-right: none; border-bottom: 1.5px solid var(--ink); }
  .ut-pane:nth-child(n) { grid-column: span 6; border-right: none; }
  .ut-pane:nth-child(n+3) { display: none; }
  .ut-layouts { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ut-dot--wait { animation: none; } }

/* Session colours in the app drawing: subtle, the way the app shows them.
   Groups and their sessions carry a colour (indigo, green); ungrouped
   sessions have none. Amber still marks only the one waiting for you. */
.ut-app { --ut-indigo: #4f52e8; --ut-green: #059669; }
html[data-theme='dark'] .ut-app { --ut-indigo: #818cf8; --ut-green: #34d399; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .ut-app { --ut-indigo: #818cf8; --ut-green: #34d399; } }
.ut-group[style*='--c'] { border-left-color: var(--c); }
.ut-group[style*='--c'] .ut-group-h { color: var(--c); }
.ut-group[style*='--c'] .ut-row { box-shadow: inset 2px 0 0 var(--c); }
.ut-pane[style*='--c'] .ut-tab { border-top-color: var(--c); }
.ut-pane.is-waiting[style*='--c'] .ut-tab { border-top-color: var(--c); }

/* ═══ Composition ═══════════════════════════════════════════════════════
   One sheet, like a page of panels.
   - Every page uses the same sheet width.
   - Text is always flush left. Section labels hang in a narrow left gutter;
     headings and body share one axis to the right of it. Nothing is centred.
   - Pictures sit in ink-framed panels in exactly two positions: "inset"
     (right of the text, top-aligned with the heading) or "wide" (the full
     content width, under the text). Frames make every crop deliberate.
   - Prose never runs wider than about 68 characters. */
.page:not(#_) { max-width: 1280px; padding-left: clamp(20px, 3.5vw, 48px); padding-right: clamp(20px, 3.5vw, 48px); text-align: left; }
.prose-measure, .st-body > p, .st-body > ul, .st-board-copy p { max-width: 68ch; }

.panel { border: 1.5px solid var(--ink); padding: clamp(10px, 1.6vw, 20px); min-width: 0; }
.panel > .ink { display: block; margin: 0; }
.panel--flush { padding: 0; }

.st-split { align-items: start; }
.st-split > .panel { margin-top: 6px; }
.st-body > .panel, .st-page-hero > .panel { margin-top: 36px; }
.st-hero > .panel { margin-top: 28px; }
.st-art-portrait { max-width: none; justify-self: stretch; }

/* Plain section labels in the gutter (no numerals). */
.st-no { padding-top: 10px; color: var(--muted); }
.st-track { padding: 72px 0; }
.st-board-wrap { padding: 72px 0; }
.st-asks, .st-asks li, .guide li, .prose li { color: var(--muted); }

/* Download section: text left, release notes right, drawing full width below. */
.st-depart { padding-top: 72px; border-top: 1.5px solid var(--ink); }
.st-depart .dl-cta-row { justify-content: flex-start; }
.st-depart > .panel { grid-column: 1 / -1; }
.st-for { border-bottom: none; margin-bottom: 0; }

/* Readable signal colours on paper. */
html[data-theme='light']:not(#_) { --signal: #9c4a08; }
html[data-theme='light'] .ut-app { --ut-green: #047857; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]):not(#_) { --signal: #9c4a08; }
  :root:not([data-theme]) .ut-app { --ut-green: #047857; }
}
/* Running sessions show the app's green dot; waiting stays amber. */
.ut-dot { background: var(--ut-green, var(--ink)); }
.ut-dot--wait { background: var(--signal); }
.ut-term .t-ok { color: var(--ut-green, var(--text)); }

/* What's new card: one size, one weight, same as body labels. */
.st-depart .whats-new-card { padding: 18px 20px; }
.st-depart .wn-text strong { font-weight: 500; }
.st-depart .wn-text, .st-depart .wn-more { font-size: 14px; line-height: 1.5; }
.st-depart .wn-more { margin: 10px 0 0; color: var(--muted); max-width: none; }
.st-depart .wn-text code { font-family: var(--mono); font-size: 0.92em; }
.st-depart .st-small a, .st-depart a:not(.btn-download):not(.btn-guide) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.st-hero .st-facts { flex-basis: 100%; margin: 2px 0 0; }
.st-clearance-actions span:last-child { border-right: none; }

/* Overview and Download follow the same label-gutter axis as every track. */
.st-track .ut-app { margin-top: 32px; }
.st-track.st-depart { display: grid; grid-template-columns: 148px minmax(0, 1fr); column-gap: 40px; padding: 72px 0 80px; }
.st-depart .st-split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.st-depart h2 { margin-top: 0; }
.st-clearance-actions span { border-bottom: 1px solid var(--rule); margin-bottom: -1px; }
@media (max-width: 900px) {
  .st-track.st-depart { grid-template-columns: 1fr; row-gap: 18px; padding: 48px 0 64px; }
  .st-depart .st-split { grid-template-columns: 1fr; }
  .st-no { padding-top: 0; }
}
.st-body .ut-app p { max-width: none; line-height: 1.3; }
.st-body .ut-side-h { margin: 0 4px 2px; font-size: 9.5px; color: var(--muted); }
.st-body .ut-group-h { margin: 0 0 2px; font-size: 11px; color: var(--c, var(--text)); }
.st-body .ut-group-h span { color: var(--muted); }
.st-track.st-depart > .st-no { font-size: 11px; margin: 0; max-width: none; line-height: inherit; }
.st-depart h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 14px; }

/* Navigation: the same six links on every page. On phones the logo and the
   theme switch share the first row and the links scroll sideways on one line
   instead of wrapping into a block. */
@media (max-width: 720px) {
  nav { flex-wrap: wrap; row-gap: 10px; position: relative; }
  .nav-links {
    order: 3; flex: 1 0 100%; display: flex; flex-wrap: nowrap; gap: 18px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding: 2px 0 6px; border-bottom: 1px solid var(--rule);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links .nav-link { white-space: nowrap; flex: 0 0 auto; }
  .nav-links .theme-toggle { position: absolute; top: 0; right: 0; }
}
/* The logo keeps a visible edge on the dark sky. */
html[data-theme='dark'] .nav-logo img { outline: 1px solid color-mix(in srgb, var(--text) 45%, transparent); outline-offset: 1px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .nav-logo img { outline: 1px solid color-mix(in srgb, var(--text) 45%, transparent); outline-offset: 1px; border-radius: 4px; } }
