/* Wayseer website. The page is a Wayseer window: tokens, chrome geometry and marks come
   from the app's own theme (see DESIGN.md). Dark by default; light follows the desktop. */

@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/JetBrainsMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/JetBrainsMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/Newsreader.ttf") format("truetype"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/Newsreader-Italic.ttf") format("truetype"); font-weight: 200 800; font-style: italic; font-display: swap; }

/* ---------- tokens: the app's dark theme ---------- */
:root {
  --bg: #0b0e14; --surface: #11151d; --raised: #181d28; --border: #262d3b;
  --edge: #8fa3c233; --edge-solid: #8fa3c2; --grid: #8fa3c229;
  --text: #d9dee7; --muted: #7d889b; --accent: #5cc8ff; --focus: #9edcff; --on-accent: #0b0e14;
  --ok: #35c486; --ok-dim: #1f7a55; --warn: #f5bf3a; --fail: #ff5a4f; --info: #7aa6ff; --unknown: #7b8496;
  --veil: #0b0e14; --scrim: #0b0e148c;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --r-s: 3px; --r-m: 6px; --r-l: 10px;
  --fast: 120ms; --normal: 220ms; --slow: 400ms; --ease: cubic-bezier(.2, .7, .2, 1);
  --chrome-h: 84px; --gutter: 24px; --max: 1240px;
  color-scheme: dark;
}
/* the app's light theme, when the desktop prefers it or the palette's >theme.set name=light */
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --bg: #eef1f5; --surface: #f7f8fa; --raised: #ffffff; --border: #cfd6e0; --edge: #3b4a664d; --edge-solid: #3b4a66; --grid: #3b4a6633; --text: #1a1f29; --muted: #5b6577; --accent: #0a6cb4; --focus: #1f7fcc; --on-accent: #ffffff; --ok: #0e7656; --ok-dim: #0e7656; --warn: #8a5800; --fail: #a31c1c; --info: #3f6ee0; --unknown: #646d7c; --veil: #eef1f5; --scrim: #3b4a6640; color-scheme: light; } }
:root[data-theme="light"] { --bg: #eef1f5; --surface: #f7f8fa; --raised: #ffffff; --border: #cfd6e0; --edge: #3b4a664d; --edge-solid: #3b4a66; --grid: #3b4a6633; --text: #1a1f29; --muted: #5b6577; --accent: #0a6cb4; --focus: #1f7fcc; --on-accent: #ffffff; --ok: #0e7656; --ok-dim: #0e7656; --warn: #8a5800; --fail: #a31c1c; --info: #3f6ee0; --unknown: #646d7c; --veil: #eef1f5; --scrim: #3b4a6640; color-scheme: light; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 0; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--serif); font-optical-sizing: auto; font-size: 18px; line-height: 1.55; overflow-x: hidden; }
main { padding-bottom: calc(var(--chrome-h) + 24px); }
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Links inside running text are underlined, so they don't rely on color alone. */
:where(p, li, td, dd, figcaption) a:not(.btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); }
:where(p, li, td, dd, figcaption) a:not(.btn):hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
section:focus { outline: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw, 64px); }
h2 { font-size: clamp(30px, 3.4vw, 40px); }
h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.15; margin-top: 28px; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); font-size: 0.86em; }
code { color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-s); padding: 0 5px; white-space: nowrap; }
kbd { display: inline-block; min-width: 1.6em; text-align: center; padding: 0 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: var(--r-s); background: var(--raised); color: var(--text); font-size: 0.8em; line-height: 1.6; vertical-align: 1px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--r-m); font-family: var(--mono); font-size: 13px; }
.skip:focus { left: 8px; }
.dim, .t-dim { color: var(--muted); }
.t-ink { color: var(--text); } .t-ok { color: var(--ok); } .t-warn { color: var(--warn); } .t-crit { color: var(--fail); }
.small { font-size: 15.5px; }
.prose { max-width: 62ch; color: var(--text); }
.prose.small { color: var(--muted); }
.prose code, .prose kbd { font-size: 0.8em; }
.mono { font-family: var(--mono); }
.road { display: inline-block; font-family: var(--mono); font-size: 11.5px; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: var(--r-s); padding: 0 6px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }
.noscript { font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 12px var(--gutter); }

/* status marks, as the app draws them: dot ok, ringed warn, square crit, hollow square down, hollow dot unknown */
.st { display: inline-block; vertical-align: middle; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; margin-right: 6px; }
.st.warn { background: transparent; border: 1.5px solid var(--warn); width: 8px; height: 8px; box-shadow: inset 0 0 0 1.5px var(--bg), inset 0 0 0 4px var(--warn); }
.st.crit, .st.error, .st.critical { background: var(--fail); border-radius: 1px; }
.st.down { background: transparent; border: 1.5px solid var(--fail); border-radius: 1px; }
.st.unknown { background: transparent; border: 1.5px solid var(--unknown); }
.st.info { background: var(--info); }
.st.live { background: var(--accent); margin: 0 4px 0 6px; }

/* ---------- places ---------- */
.place { position: relative; padding: 0 var(--gutter) clamp(48px, 7vw, 96px); }
/* children align to the left edge of a centered 1240px column, so narrow blocks are not centered */
.place > * { max-width: var(--max); margin-left: max(0px, calc((100% - var(--max)) / 2)); margin-right: 0; }
/* grid children may shrink below their content, so nothing forces a horizontal scroll */
.incident-grid > *, .lens-grid > *, .session-grid > *, .author-grid > *, .install-grid > *, .notes-grid > *, .man-cols > *, .sources-list > *, .syn > *, .kv-big > * { min-width: 0; }
.lens-head { position: sticky; top: 0; z-index: 5; display: flex; gap: 10px; align-items: center; height: 40px; margin: 0 calc(-1 * var(--gutter)) clamp(28px, 4vw, 48px); padding: 0 var(--gutter); max-width: none; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 13px; letter-spacing: .01em; color: var(--text); white-space: nowrap; overflow: hidden; }
.lens-head .hd-text { overflow: hidden; text-overflow: ellipsis; }
.lens-name { color: var(--accent); }
.record { max-width: 62ch; }
.record.wide { max-width: none; }
.stamp { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; margin-bottom: 14px; }
.record h2 { margin-bottom: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 22px 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--r-m); background: var(--raised); color: var(--text); font-family: var(--mono); font-size: 13.5px; line-height: 1.3; cursor: pointer; transition: border-color var(--fast), background var(--fast); text-decoration: none; }
.btn:hover { border-color: var(--muted); text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { background: var(--focus); border-color: var(--focus); }
.btn:disabled { opacity: .45; cursor: default; }
.btn kbd { background: color-mix(in srgb, var(--on-accent) 12%, transparent); border-color: transparent; color: inherit; }
.foot-note { font-family: var(--mono); font-size: 12.5px; color: var(--muted); max-width: 84ch; margin-top: 18px; line-height: 1.5; }

/* ---------- the field ---------- */
.field { min-height: 100svh; padding-bottom: 0; display: flex; flex-direction: column; overflow: hidden; }
.field .lens-head { margin-bottom: 0; }
.field canvas { position: absolute; inset: 66px 0 0 0; width: 100%; height: calc(100% - 66px); max-width: none; margin: 0; }
.opening { position: relative; z-index: 2; margin: auto 0 calc(var(--chrome-h) + 32px) 0; max-width: 620px; padding: 26px 28px 22px; background: color-mix(in srgb, var(--raised) 92%, transparent); border: 1px solid var(--border); border-radius: var(--r-m); backdrop-filter: none; }
.eyeline { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--text); margin-bottom: 22px; flex-wrap: wrap; }
.eyeline img { border-radius: 5px; }
.eyeline .meta::before { content: "· "; }
.eyeline .meta span { white-space: nowrap; }
.eyeline .meta span + span::before { content: "· "; }
.opening h1 { margin-bottom: 18px; }
.opening .lede { font-size: 19px; }
.opening .lede.small { color: var(--muted); }
.opening .how { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.7; }
.opening .how kbd { font-size: 11px; }
.peek { position: absolute; z-index: 3; pointer-events: none; padding: 8px 10px; background: color-mix(in srgb, var(--raised) 92%, transparent); border: 1px solid var(--border); border-radius: var(--r-m); font-family: var(--mono); font-size: 11.5px; color: var(--muted); display: grid; gap: 2px; max-width: 220px; }
.peek b { color: var(--text); font-weight: 500; display: flex; align-items: center; }

/* ---------- app panes (the incident, live) ---------- */
.app, .pane { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); overflow: hidden; font-family: var(--ui); font-size: 13px; color: var(--text); display: flex; flex-direction: column; }
.app:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.app-header, .pane-header { display: flex; gap: 10px; align-items: center; min-height: 40px; padding: 8px 14px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 13px; white-space: nowrap; overflow: hidden; }
.app-header .hd-text, .pane-header > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.app-header .readout { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.app-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 300px; }
.app-body:has(.detail-panel:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.app-body:has(.detail-panel:not([hidden])) .axis .odd { visibility: hidden; }
.app-body:has(.detail-panel:not([hidden])) .ro { display: none; }
.app-body:has(.detail-panel:not([hidden])) .lanes-live .lane { grid-template-columns: 120px minmax(0, 1fr); }
.app-body:has(.detail-panel:not([hidden])) .axis { grid-template-columns: 120px repeat(7, 1fr); }
.lanes-live { padding: 14px; overflow: hidden; }
.axis { display: grid; grid-template-columns: 150px repeat(7, 1fr); color: var(--muted); font-family: var(--mono); font-size: 10.5px; margin-bottom: 8px; }
.axis span { text-align: left; }
.lanes-live .lane { display: grid; grid-template-columns: 150px minmax(0, 1fr) 108px; gap: 10px; align-items: center; height: 30px; }
.lanes-live .nm { display: flex; align-items: center; gap: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; padding: 4px 6px; margin-left: -6px; border-radius: var(--r-s); cursor: pointer; text-align: left; }
.lanes-live .nm span { overflow: hidden; text-overflow: ellipsis; }
.lanes-live .nm:hover { color: var(--text); background: var(--raised); }
.lanes-live .lane.focus .nm { color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.lanes-live svg { width: 100%; height: 26px; }
.lanes-live .veil { fill: var(--veil); opacity: .62; }
.lanes-live .future { opacity: .3; }
.lanes-live .ro { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lanes-live .ro b { color: var(--text); font-weight: 500; }
.detail-panel { border-left: 1px solid var(--border); padding: 0 14px 14px; overflow: auto; max-height: 520px; font-size: 12.5px; }
.dp-head { display: flex; align-items: center; gap: 10px; height: 36px; margin: 0 -14px 10px; padding: 0 14px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 12px; }
.dp-head .x { margin-left: auto; }
.x { border: 1px solid var(--border); background: var(--raised); color: var(--muted); font-family: var(--mono); font-size: 11px; border-radius: var(--r-s); padding: 2px 8px; cursor: pointer; }
.x:hover { color: var(--text); }
.detail-panel .name, .detail .name { color: var(--text); font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.detail-panel h3, .detail h3, .obs-panel h3, .obs-wrap h3 { font-family: var(--mono); font-weight: 500; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; line-height: 1.55; margin: 0 0 6px; }
h3.gap { margin-top: 12px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 12px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--text); font-family: var(--mono); }
.evl { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 12px; }
.evl li { display: grid; grid-template-columns: 14px 44px 1fr; gap: 6px; align-items: center; }
.evl .t { color: var(--muted); font-family: var(--mono); }
.metric { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 12px; margin-bottom: 6px; font-family: var(--mono); }
.metric svg { width: 100%; height: 34px; grid-column: 1 / -1; }
.nbr { display: flex; flex-wrap: wrap; gap: 5px; }
.nbr span, .nbr button { border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; color: var(--text); display: inline-flex; align-items: center; background: none; font-family: var(--ui); cursor: default; }
.nbr button { cursor: pointer; background: var(--raised); }
.nbr button:hover { border-color: var(--accent); }
.nbr span.hl { border-color: var(--accent); }
.nbr .grp { width: 100%; border: 0; padding: 0; color: var(--muted); font-size: 10.5px; margin-top: 5px; font-family: var(--mono); }
.obs-panel { position: absolute; top: 12px; left: 12px; z-index: 4; width: min(420px, calc(100% - 24px)); padding: 12px 14px; background: color-mix(in srgb, var(--raised) 94%, transparent); border: 1px solid var(--border); border-radius: var(--r-m); }
.obs { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 12px; }
.obs li { display: block; }
.obs li button { width: 100%; text-align: left; display: grid; grid-template-columns: 14px 1fr auto; gap: 2px 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--r-s); background: none; color: inherit; font: inherit; cursor: pointer; }
.obs li button:hover { border-color: var(--accent); }
.obs .who { grid-column: 2 / -1; color: var(--muted); }
.obs-panel .small { font-size: 11px; margin: 8px 0 0; }
.app-controls { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--border); background: var(--bg); }
.app-controls button { border: 1px solid var(--border); background: var(--raised); color: var(--text); font-family: var(--mono); font-size: 11.5px; padding: 4px 9px; border-radius: var(--r-s); cursor: pointer; }
.app-controls button:hover { border-color: var(--muted); }
.app-status, .pane-status { display: flex; gap: 16px; align-items: center; height: 26px; padding: 0 12px; border-top: 1px solid var(--border); background: var(--surface); font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.app-status .right, .pane-status .right { margin-left: auto; }
.pane-status .news { color: var(--warn); }

/* the incident's layout */
.incident-grid { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.incident .app { position: sticky; top: 56px; }
.evidence { list-style: none; padding: 0; margin: 20px 0 14px; display: grid; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.evidence li { display: grid; grid-template-columns: 14px 46px 1fr; gap: 8px; align-items: baseline; transition: color var(--normal); }
.evidence li > span:last-child { min-width: 0; }
.evidence li b { font-weight: 500; color: var(--muted); }
.evidence li i { font-style: normal; color: var(--muted); }
.evidence .mk { width: 8px; height: 8px; border: 1.5px solid var(--unknown); border-radius: 50%; align-self: center; }
.evidence li.found { color: var(--text); }
.evidence li.found b { color: var(--accent); }
.evidence li.found .mk { background: var(--ok); border-color: var(--ok); }
.next { font-family: var(--mono); font-size: 12.5px; color: var(--text); border-left: 2px solid var(--accent); padding-left: 10px; line-height: 1.5; }
.verdict { scroll-margin: 56px 0 calc(var(--chrome-h) + 16px); margin-top: 24px; padding: 18px 20px; border: 1px solid var(--border); border-left: 3px solid var(--ok); border-radius: var(--r-m); background: var(--surface); }
.verdict .stamp { color: var(--ok); }
.verdict .prose:last-child { margin-bottom: 0; }

/* ---------- lenses ---------- */
.lens-grid { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.lens-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 2px; }
.lens-list button { width: 100%; display: grid; grid-template-columns: 30px auto 1fr; gap: 4px 10px; align-items: baseline; text-align: left; padding: 10px 10px; border: 1px solid transparent; border-radius: var(--r-m); background: none; color: var(--muted); font-family: var(--serif); font-size: 15.5px; line-height: 1.45; cursor: pointer; }
.lens-list button b { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--text); }
.lens-list button span { grid-column: 2 / -1; }
.lens-list button:hover { border-color: var(--border); }
.lens-list li.on button { border-color: var(--border); background: var(--surface); color: var(--text); }
.lens-list li.on button b { color: var(--accent); }
.pane-wrap.sticky { position: sticky; top: 56px; }

/* ---------- reconstruction panes ---------- */
.pane { min-height: 380px; }
.pane-body { flex: 1; position: relative; padding: 14px; min-height: 260px; overflow: hidden; }
.pane-body > *:not(.pane-hints) { animation: lod var(--fast) var(--ease) both; }
@keyframes lod { from { opacity: 0; } to { opacity: 1; } }
.pane-hints { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2; display: flex; gap: 14px; padding: 0 12px; height: 26px; align-items: center; background: color-mix(in srgb, var(--raised) 92%, transparent); border: 1px solid var(--border); border-radius: var(--r-m); font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; max-width: calc(100% - 28px); overflow: hidden; }
.pane-hints b { color: var(--text); font-weight: 400; }
.pane-timebar { position: relative; display: flex; align-items: center; height: 22px; padding: 0 12px; border-top: 1px solid var(--border); background: var(--surface); font-family: var(--mono); font-size: 10.5px; color: var(--muted); overflow: hidden; }
.pane-timebar .ticks { display: flex; flex: 1; gap: 0; }
.pane-timebar .ticks i { flex: 1; font-style: normal; border-left: 1px solid var(--border); padding-left: 4px; line-height: 12px; }
.pane-timebar .legend { margin-left: 16px; display: flex; align-items: center; white-space: nowrap; }
.pane-timebar .legend b { color: var(--text); font-weight: 400; margin-left: 4px; }
.pane-header .lens-name { color: var(--accent); }
.pane-header .dim { color: var(--muted); }
.pane-status .mods { display: flex; gap: 12px; }
.pane-wrap { min-width: 0; }

.gtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 3px; }
.gtile { aspect-ratio: 1.8; border-radius: var(--r-s); position: relative; overflow: hidden; }
.gtile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gtile .lbl { position: absolute; left: 4px; top: 3px; font-size: 9.5px; color: rgba(0,0,0,.75); font-weight: 500; }
.gtile .val { position: absolute; right: 4px; bottom: 2px; font-size: 9.5px; color: rgba(0,0,0,.75); }
.gtile.focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.lanes { display: grid; gap: 4px; }
.lanes .lane { display: grid; grid-template-columns: 128px 1fr; gap: 10px; align-items: center; height: 26px; }
.lanes .nm { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; font-size: 11.5px; }
.lanes .nm.focus { color: var(--text); }
.lanes svg { width: 100%; height: 26px; }
.pane .axis { grid-template-columns: 138px repeat(6, 1fr); }
.pane .axis span:first-child { grid-column: 2; }

.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; font-size: 12px; }
.detail .name { grid-column: 1 / -1; }

.tmap { position: relative; height: 250px; }
.tmap .tile { position: absolute; background: var(--raised); border: 1px solid var(--surface); overflow: hidden; }
.tmap .tile .fill { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--edge-solid); opacity: .5; }
.tmap .tile.warn { border-left: 3px solid var(--warn); }
.tmap .tile.crit { border-left: 3px solid var(--fail); }
.tmap .tile.focus { outline: 2px solid var(--accent); z-index: 2; }
.tmap .tile .lbl { position: absolute; left: 4px; top: 2px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.tmap .tile .mk { position: absolute; right: 3px; top: 3px; }

.cmp { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px 14px; font-size: 12px; align-items: center; font-family: var(--mono); }
.cmp .hd { color: var(--text); font-size: 13px; }
.cmp .diff { color: var(--muted); text-align: center; }
.cmp .diff.up { color: var(--warn); } .cmp .diff.dn { color: var(--accent); }
.cmp .lbl { grid-column: 1 / -1; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; margin-top: 8px; }
.cmp svg { width: 100%; height: 28px; }
.cmp .neq { color: var(--warn); }

.stream { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; font-size: 12px; }
.stream li { display: grid; grid-template-columns: 14px 44px 128px 1fr; gap: 8px; align-items: center; }
.stream .t { color: var(--muted); font-family: var(--mono); } .stream .e { color: var(--muted); }

.mpalette { position: absolute; inset: 14px 14px auto; background: color-mix(in srgb, var(--raised) 92%, transparent); border: 1px solid var(--border); border-radius: var(--r-m); overflow: hidden; z-index: 3; font-family: var(--mono); font-size: 12px; }
.mpalette .in { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text); display: flex; gap: 6px; }
.mpalette .in .caret { display: inline-block; width: 2px; height: 15px; background: var(--focus); }
.mpalette .row { display: flex; gap: 8px; padding: 6px 12px; align-items: center; }
.mpalette .row.sel { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); }
.mpalette .row .k { color: var(--muted); margin-left: auto; font-size: 11px; }
.mpalette .row.sel .k { color: var(--text); }
.mpalette .ans { padding: 8px 12px; color: var(--muted); border-top: 1px solid var(--border); }

.obs-wrap { max-width: 420px; }
.topo { width: 100%; height: 100%; }
.topo text { font-family: var(--mono); font-size: 10px; fill: var(--text); }
.topo text.dim { fill: var(--muted); }
.topo text.ink { fill: var(--text); font-size: 12px; }
.topo text.reason { fill: var(--fail); }
.topo text.reason.warn { fill: var(--warn); }
.topo.geo text.big { font-size: 22px; }
.topo.flow text { font-size: 9.5px; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }

/* ---------- sessions ---------- */
.session { margin-top: clamp(32px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--border); }
.session-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 20px; }
.session-head .num { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.session-head h3 { margin: 0; }
.session-head .who { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
.session-grid { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.step { width: 100%; text-align: left; display: grid; grid-template-columns: 28px 1fr; gap: 4px 10px; padding: 10px 10px; border: 1px solid transparent; border-radius: var(--r-m); background: none; color: var(--muted); font: inherit; font-size: 15.5px; line-height: 1.45; cursor: pointer; }
.step:hover { border-color: var(--border); }
.step[aria-current="step"] { border-color: var(--border); background: var(--surface); color: var(--text); }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.step .do { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.step .say { margin: 0; grid-column: 2; }
.step .say code { font-size: .8em; }
.stepper { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.stepper .count { color: var(--muted); font-family: var(--mono); font-size: 12px; margin-left: auto; }
.session .pane-wrap { position: sticky; top: 56px; }

/* ---------- palette place, man-page style ---------- */
.man .record { margin-bottom: 28px; }
.syn { display: grid; grid-template-columns: 90px 1fr; gap: 10px 20px; margin: 0 0 32px; font-size: 16px; align-items: baseline; max-width: 900px; }
.syn dt { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.syn dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.try { font-family: var(--mono); font-size: 12.5px; color: var(--accent); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-s); padding: 2px 8px; cursor: pointer; }
.try:hover { border-color: var(--accent); }
.man-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 64px); }
.man-cols h3:first-child { margin-top: 0; }
.man-cols h3 { font-size: 20px; margin-top: 26px; margin-bottom: 8px; }
.lines { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; font-size: 14px; }
.facts { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 15.5px; }
.facts li { margin: 4px 0; }

/* ---------- sources ---------- */
.sources-list { display: grid; grid-template-columns: 220px 1fr; gap: 14px 24px; margin: 28px 0 0; max-width: 980px; border-top: 1px solid var(--border); padding-top: 18px; }
.sources-list dt { font-family: var(--mono); font-size: 13.5px; color: var(--text); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.sources-list dd { margin: 0; color: var(--muted); font-size: 16px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.sources-list .kind { font-size: 11px; color: var(--muted); }

/* ---------- author ---------- */
.author-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.kv-big { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; margin: 8px 0 0; font-size: 15px; color: var(--muted); align-items: baseline; }
.kv-big dt { font-family: var(--mono); font-size: 22px; color: var(--text); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.kv-big dd { margin: 0; border-bottom: 1px solid var(--border); padding-bottom: 12px; }

/* ---------- install ---------- */
.install-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.steps-plain { padding-left: 1.2em; margin: 0; display: grid; gap: 12px; font-size: 16.5px; color: var(--muted); }
.steps-plain b { color: var(--text); font-weight: 500; }
/* the end-user license: long legal text, so section headings stay small and paragraphs spaced */
.legal { max-width: 72ch; }
/* The checkout form: who the license is for, the seats and the two boxes, before Paddle's form opens. */
.buy-form { display: grid; gap: 18px; margin-top: 24px; align-content: start; }
.buy-form [hidden] { display: none; }
.buy-form fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.buy-form legend, .buy-form .entry > span:first-child { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.buy-form .entry { display: grid; gap: 6px; align-content: start; justify-items: start; }
.buy-form .entry input { width: 100%; max-width: 36ch; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--r-m); background: var(--raised); color: var(--text); font: inherit; }
.buy-form .entry input[type="number"] { max-width: 10ch; }
.buy-form .entry input:focus-visible, .buy-form input[type="radio"]:focus-visible, .buy-form input[type="checkbox"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.buy-form .hint { font-size: 14px; color: var(--muted); }
.buy-form .check a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.buy-form .choice, .buy-form .check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; cursor: pointer; }
.buy-form .choice input, .buy-form .check input { margin: 5px 0 0; width: 16px; height: 16px; accent-color: var(--accent); }
.buy-form .form-note { margin: 0; min-height: 1.4em; }
.buy-form .form-note.error { color: var(--fail); }
.legal h1 { margin-bottom: 22px; }
.legal h2 { font-size: clamp(22px, 2vw, 26px); line-height: 1.15; margin: 36px 0 12px; scroll-margin-top: 56px; }
.legal p, .legal li { margin: 0 0 12px; }
.legal ul { padding-left: 1.2em; margin: 0 0 12px; }
.legal b { font-weight: 600; }
.steps-plain::marker, .steps-plain li::marker { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.tbl { width: 100%; border-collapse: collapse; margin-bottom: 26px; font-size: 15.5px; }
.tbl caption { text-align: left; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-bottom: 8px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 9px 0; border-top: 1px solid var(--border); }
.tbl th { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--text); white-space: nowrap; padding-right: 16px; width: 1%; }
.tbl td { color: var(--muted); }

/* ---------- notes ---------- */
.notes-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.qa { margin: 0; display: grid; gap: 14px; }
.qa dt { font-family: var(--serif); font-size: 19px; color: var(--text); }
.qa dd { margin: 4px 0 0; color: var(--muted); font-size: 16px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.notes .record h3 { margin-top: 0; font-size: 20px; }
.roadmap { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.roadmap li { display: flex; align-items: flex-start; gap: 4px; line-height: 1.5; }
.roadmap li .st { margin-top: 6px; }

/* ---------- release ---------- */
.colophon { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.colophon span:first-child { display: flex; align-items: center; gap: 8px; color: var(--text); }

/* ---------- the window chrome, fixed along the bottom ---------- */
.chrome { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.hintbar { display: flex; gap: 16px; align-items: center; height: 26px; width: max-content; max-width: calc(100% - 24px); margin: 0 auto 8px; padding: 0 12px; background: color-mix(in srgb, var(--raised) 92%, transparent); border: 1px solid var(--border); border-radius: var(--r-m); white-space: nowrap; overflow: hidden; }
.hintbar b { color: var(--text); font-weight: 400; }
.timebar { position: relative; display: flex; align-items: center; height: 22px; padding: 0 12px; background: var(--surface); border-top: 1px solid var(--border); }
.timebar .track { position: relative; flex: 1; height: 100%; overflow: hidden; }
.timebar .track i { position: absolute; top: 5px; bottom: 5px; border-left: 1px solid var(--border); padding-left: 4px; font-style: normal; line-height: 12px; }
.timebar .track i b { font-weight: 400; }
.timebar .track em { position: absolute; bottom: 0; width: 3px; height: 3px; background: var(--accent); }
.timebar .track u { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--focus); text-decoration: none; margin-left: -1px; }
.timebar.scrubs .track { cursor: ew-resize; }
.timebar .scrub { position: absolute; left: 12px; right: 190px; top: 0; height: 100%; opacity: 0; }
.timebar .scrub input { width: 100%; height: 100%; margin: 0; cursor: ew-resize; }
.timebar .scrub input:disabled { cursor: default; }
.timebar .scrub input:focus-visible { opacity: 1; }
.timebar .legend { margin-left: 16px; display: flex; align-items: center; white-space: nowrap; min-width: 150px; justify-content: flex-end; }
.timebar .legend b { color: var(--text); font-weight: 400; margin-left: 4px; }
.statusbar { display: flex; gap: 16px; align-items: center; height: 26px; padding: 0 12px; background: var(--surface); border-top: 1px solid var(--border); white-space: nowrap; overflow: hidden; }
.statusbar .news { color: var(--muted); display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; }
.statusbar .news.warn { color: var(--warn); } .statusbar .news.crit { color: var(--fail); } .statusbar .news.said { color: var(--text); }
.statusbar .mods { display: flex; align-items: center; }
.statusbar .right { margin-left: auto; }
.theme-btn { display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 7px; border: 1px solid var(--border); border-radius: var(--r-s); background: none; color: var(--muted); font: inherit; cursor: pointer; }
.theme-btn::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.theme-btn:hover { color: var(--text); border-color: var(--muted); }
.keys-btn::before { content: none; }
.touchbar { display: none; }

/* ---------- palette dialog ---------- */
.palette-dialog { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.pal { width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; background: color-mix(in srgb, var(--raised) 96%, transparent); border: 1px solid var(--border); border-radius: var(--r-m); overflow: hidden; font-family: var(--mono); font-size: 13px; }
.pal .in { display: flex; align-items: center; height: 40px; border-bottom: 1px solid var(--border); padding: 0 12px; gap: 8px; }
.pal input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; color: var(--text); font: inherit; caret-color: var(--focus); }
.pal input:focus { outline: none; }
.pal input::placeholder { color: var(--muted); }
.pal .close { display: none; }
.pal .rows { overflow: auto; padding: 4px; }
.pal .grp { color: var(--muted); font-size: 11px; padding: 8px 8px 4px; }
.pal .row { display: flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border-radius: var(--r-s); color: var(--text); cursor: pointer; }
.pal .row[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.pal .row .t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pal .row .k { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; padding-left: 12px; }
.pal .foot { padding: 8px 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; line-height: 1.5; }
.pal .foot code { white-space: normal; overflow-wrap: anywhere; }
.pal .keys { display: flex; gap: 14px; padding: 6px 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.pal .keys b { color: var(--text); font-weight: 400; margin-right: 4px; }
body.palette-open { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .incident-grid, .lens-grid, .session-grid, .author-grid, .install-grid { grid-template-columns: 1fr; }
  .incident .app, .pane-wrap.sticky, .session .pane-wrap { position: static; }
  .notes-grid { grid-template-columns: 1fr; }
  .incident-grid .app { order: -1; }
  .field canvas { opacity: .85; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --chrome-h: 92px; }
  code, .road { white-space: normal; overflow-wrap: anywhere; }
  .tbl th { white-space: normal; }
  body { font-size: 17px; }
  h1 { font-size: 40px; } h2 { font-size: 30px; }
  .opening { margin: 48px 0 calc(var(--chrome-h) + 16px); padding: 20px 18px 16px; }
  .eyeline .meta { flex-basis: 100%; }
  .eyeline .meta::before { content: none; }
  .opening .lede { font-size: 17px; }
  .field canvas { inset: 66px -10% 0 -10%; width: 120%; }
  .hintbar { display: none; }
  .touchbar { display: flex; gap: 6px; padding: 6px 8px; background: var(--surface); border-top: 1px solid var(--border); }
  .touchbar button { flex: 1; height: 34px; border: 1px solid var(--border); background: var(--raised); color: var(--text); font-family: var(--mono); font-size: 12px; border-radius: var(--r-s); }
  .timebar .legend { min-width: 0; }
  .timebar .scrub { right: 120px; }
  .statusbar .mods { display: none; }
  .app-body:has(.detail-panel:not([hidden])) { grid-template-columns: 1fr; }
  .detail-panel { border-left: 0; border-top: 1px solid var(--border); max-height: none; }
  .lanes-live .lane { grid-template-columns: 112px minmax(0, 1fr); }
  .lanes-live .nm { font-size: 11px; }
  .lanes-live .ro { display: none; }
  .axis { grid-template-columns: 112px repeat(7, 1fr); }
  .app-body:has(.detail-panel:not([hidden])) .lanes-live .lane { grid-template-columns: 112px minmax(0, 1fr); }
  .app-body:has(.detail-panel:not([hidden])) .axis { grid-template-columns: 112px repeat(7, 1fr); }
  .axis .odd { visibility: hidden; }
  .man-cols { grid-template-columns: 1fr; }
  .syn { grid-template-columns: 1fr; gap: 4px 0; }
  .syn dt { margin-top: 10px; }
  .sources-list { grid-template-columns: 1fr; gap: 6px; }
  .sources-list dd { padding-bottom: 12px; margin-bottom: 8px; }
  .kv-big { grid-template-columns: 1fr; gap: 2px; }
  .kv-big dd { padding-bottom: 10px; margin-bottom: 10px; }
  .pal { max-height: 76vh; }
  .pal .close { display: inline-block; border: 1px solid var(--border); background: none; color: var(--muted); font: inherit; font-size: 11px; padding: 2px 8px; border-radius: var(--r-s); }
  .pal .keys { display: none; }
  .palette-dialog { padding: 8vh 8px 8px; }
  .evidence li { grid-template-columns: 14px 1fr; }
  .evidence li b { grid-column: 2; }
  .evidence li .mk { grid-row: 1 / span 2; }
  .detail, .stream li { grid-template-columns: 1fr; }
  .stream li { grid-template-columns: 14px 44px 1fr; } .stream .e { display: none; }
  .lanes .lane { grid-template-columns: 92px 1fr; } .pane .axis { grid-template-columns: 102px repeat(6, 1fr); }
  .lens-head { font-size: 12px; }
  .lens-head .hd-text .dim { display: none; }
}
@media (max-width: 480px) {
  h1 { font-size: 34px; } h2 { font-size: 27px; }
  .app-controls button { font-size: 11px; padding: 4px 7px; }
  .pane-hints { display: none; }
  .actions .btn { width: 100%; justify-content: center; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pane-body > *:not(.pane-hints) { animation: none; }
  .btn, .evidence li { transition: none; }
}

/* Actions: the confirm panel over a dimmed Detail, as the app draws it. */
.cf-behind { opacity: .28; pointer-events: none; }
.confirm { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(360px, calc(100% - 28px)); padding: 14px 16px 12px; background: var(--raised); border: 1px solid var(--accent); border-radius: var(--r-m); font-family: var(--mono); font-size: 12px; color: var(--muted); display: grid; gap: 8px; }
.cf-title { color: var(--text); font-size: 14px; }
.cf-by { color: var(--accent); }
.cf-facts { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 0; }
.cf-facts dt { color: var(--muted); } .cf-facts dd { margin: 0; color: var(--text); }
.cf-param { display: flex; gap: 12px; align-items: center; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--r-s); }
.cf-step { display: inline-flex; gap: 8px; } .cf-step b { color: var(--accent); font-weight: 400; }
.cf-keys { border-top: 1px solid var(--border); padding-top: 8px; }
.caption { margin: 10px 2px 0; font-size: 13px; color: var(--muted); font-family: var(--ui); }

/* ---------- the lens bar, as the app draws it across the top ---------- */
.lens-bar { container-type: inline-size; display: flex; gap: 16px; align-items: stretch; flex: none; height: 26px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.lens-bar .lb { position: relative; display: inline-flex; gap: 5px; align-items: center; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.lens-bar span.lb { cursor: default; }
.pane .lens-bar span.lb { cursor: pointer; }
.lens-bar .lb b { color: var(--text); font-weight: 400; }
.lens-bar .lb i { font-style: normal; }
.lens-bar .lb:hover i, .lens-bar .lb.on i { color: var(--text); }
.lens-bar .lb.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--focus); }
.lens-bar .lb.off b { color: var(--muted); }
/* Narrow bars show only the digits; each stays a 24px target, and the negative margin offsets the bar's 16px gap. */
@container (max-width: 500px) { .lens-bar .lb { min-width: 24px; justify-content: center; margin-inline: -6px; } .lens-bar .lb i { display: none; } }
.field .lens-bar { max-width: none; position: relative; z-index: 4; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.topo.far text.ink { font-size: 9px; }
.topo.far text.dim { font-size: 7.5px; }

/* ---------- pages: the strip's page links, and what the install and license pages add ---------- */
.statusbar .pages { display: flex; gap: 10px; }
.statusbar .pages a { color: var(--muted); }
.statusbar .pages a:hover { color: var(--text); text-decoration: none; }
.statusbar .pages a[aria-current] { color: var(--text); box-shadow: inset 0 -2px var(--focus); }
a.lens-name:hover { text-decoration: none; color: var(--focus); }
.lens-head .crumb { color: var(--muted); margin: 0 -4px; }
.place.sub h1 { margin-bottom: 18px; }
.place.sub h2 .road, .place.sub h1 .road { font-family: var(--mono); letter-spacing: 0; }
.place.sub .record h3:first-child { margin-top: 0; }
.place.sub .steps-plain { margin-top: 18px; }
pre.shell { margin: 12px 0; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); overflow-x: auto; color: var(--text); line-height: 1.6; }
pre.shell code { background: none; border: 0; padding: 0; white-space: pre; font-size: 13px; }
.tbl.paths td { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 10px; align-items: baseline; }
.tbl.paths td span { font-family: var(--mono); font-size: 12px; }
.tbl.paths code { justify-self: start; white-space: normal; overflow-wrap: anywhere; }
.tbl.tiers th { font-weight: 400; }
.tbl.tiers tr.key td { color: var(--text); }

/* A key's life drawn as the time bar draws a window: lanes over one axis. */
.lifetime { margin-top: 8px; margin-bottom: clamp(28px, 4vw, 44px); padding: 18px 0 30px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lt-lane { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; height: 34px; }
.lt-track { position: relative; height: 100%; border-left: 1px solid var(--border); }
.lt-year { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--border); }
.lt-band { position: absolute; top: 7px; bottom: 7px; display: flex; align-items: center; padding: 0 8px; background: color-mix(in srgb, var(--accent) 22%, transparent); border-left: 2px solid var(--accent); color: var(--text); white-space: nowrap; }
.lt-track .rel { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; transform: rotate(45deg); }
.rel.ok { background: var(--ok); }
.rel.no { border: 1.5px solid var(--unknown); }
.lt-note { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 12px; white-space: nowrap; }
.lt-run { position: absolute; top: 50%; right: 0; height: 2px; background: var(--ok); }
.lt-run::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.lt-run::after { content: ""; position: absolute; right: 0; top: -4px; border: 5px solid transparent; border-left-color: var(--ok); border-right: 0; }
.lt-run > span { position: absolute; left: 14px; bottom: 6px; color: var(--text); white-space: nowrap; }
.lt-axis { position: relative; height: 16px; margin-left: 132px; }
.lt-axis i { position: absolute; top: 4px; height: 6px; border-left: 1px solid var(--muted); }
.lt-axis b { position: absolute; top: 8px; left: -2px; font-weight: 400; white-space: nowrap; }
@media (max-width: 720px) {
  .lt-lane { grid-template-columns: 1fr; height: auto; }
  .lt-label { padding: 8px 0 2px; }
  .lt-track { height: 30px; }
  .lt-axis { margin-left: 0; }
  .lt-note { display: none; }
  .lifetime { font-size: 11px; }
  .lt-band { padding: 0 5px; }
  .lt-run > span { left: auto; right: 0; }
  .statusbar .right, .statusbar .left { display: none; }
  .statusbar .pages { margin-left: auto; }
}
.place.sub:last-of-type { min-height: calc(100vh - var(--chrome-h)); }

/* The site's own links, top right of every page, over the sticky lens heads. */
.site-nav { position: fixed; top: 0; right: var(--gutter); z-index: 30; display: flex; align-items: center; gap: 18px; height: 40px; font-family: var(--mono); font-size: 13px; }
.site-nav a { color: var(--muted); }
.site-nav a:not(.buy-btn) { display: flex; align-items: center; height: 100%; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current] { color: var(--text); box-shadow: inset 0 -2px var(--focus); }
.site-nav .buy-btn { display: inline-flex; align-items: center; height: 24px; padding: 0 12px; border-radius: var(--r-s); background: var(--accent); color: var(--on-accent); }
.site-nav .buy-btn:hover { background: var(--focus); color: var(--on-accent); }
/* Over the field, the top bar is the 26px lens bar: the links take its height and type. */
body[data-place="field"] .site-nav { height: 26px; gap: 16px; font-size: 11.5px; }
body[data-place="field"] .site-nav .buy-btn { height: 24px; padding: 0 10px; }
.lens-head { padding-right: calc(var(--gutter) + 300px); }
.field .lens-bar { padding-right: calc(var(--gutter) + 240px); }
.field .lens-bar ~ .lens-head { padding-right: var(--gutter); }

/* The buy box on the pricing page. */
.buy { margin: 26px 0; padding: 18px 20px 4px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-m); background: var(--raised); outline: none; }
.buy p { margin: 0 0 8px; }
.buy-what { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.buy-price { font-family: var(--serif); font-size: 28px; color: var(--text); }
.buy-gets { color: var(--muted); font-size: 16px; }
.buy:target, .buy:focus { border-color: var(--focus); }
@media (max-width: 720px) {
  .site-nav { gap: 12px; font-size: 12px; }
  .site-nav a:first-child, .site-nav a[href="install.html"] { display: none; }
  .lens-head { padding-right: calc(var(--gutter) + 130px); }
  .field .lens-bar { padding-right: calc(var(--gutter) + 130px); }
}
