/* On Call: the look. Operations tooling at three in the morning: a deep, calm dark surface, one blue accent, the usual
   ok / warn / bad trio, and a terminal that behaves like a terminal. Everything is a token in :root; terminal themes are
   data-term="green|amber|modern" on the root (win.css adds "powershell"), sizes data-size="s|m|l", motion data-motion="full|calm".
   Calm is the visitor's choice (the page setting, then the site's), never the media query alone: --m is 1 or 0 and every
   decorative animation is multiplied by it. Terminal output itself never animates. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('/fonts/sora-latin.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #0a0d12; --bg-2: #0d1118; --surface: #121720; --surface-2: #19202a; --surface-3: #202a36; --paper: #141a23;
  --line: rgba(151,168,189,.12); --line-2: rgba(151,168,189,.26); --line-3: rgba(151,168,189,.4);
  --text: #e7ecf2; --muted: #9ba8b8; --dim: #687689;
  /* one accent: the blue the terminal already uses for a path. Not a status colour, so it can mean "selected" or "next" without lying */
  --acc: #79b8f0; --acc-2: #3d87c9; --acc-3: #2c6ca3; --acc-ink: #ffffff; --acc-soft: rgba(121,184,240,.12);
  --ok: #4fd37f; --warn: #f5be3f; --bad: #ff6b6b;
  --ok-soft: rgba(79,211,127,.14); --warn-soft: rgba(245,190,63,.14); --bad-soft: rgba(255,107,107,.14);
  --font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --display: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Cascadia Mono', 'Cascadia Code', Consolas, 'SF Mono', Menlo, 'DejaVu Sans Mono', 'Liberation Mono', ui-monospace, monospace;
  /* the terminal: neutral light output on near-black; green only on the prompt. The real ANSI colours below are their own */
  --term-bg: #0a0d11; --term-fg: #d3d9e0; --term-fg-bright: #f1f4f7; --term-dim: #7b8694; --term-err: #ff8f87; --term-prompt: #7ee787; --term-path: #8fcbff; --term-note: #9fb1c4; --term-sel: rgba(121,184,240,.2); --term-glow: transparent; --term-size: 13.5px; --term-lh: 1.42;
  --ansi-red: #ff8a80; --ansi-green: #5fe07c; --ansi-yellow: #f3d35f; --ansi-blue: #8db6ff; --ansi-magenta: #e5a3ff; --ansi-cyan: #7fe6e6;
  --bad-strip: #a8322b;   /* a severity strip: dark enough for white text */
  --radius: 3px; --radius-s: 2px; --shadow: none; --m: 1;
}
html[data-motion="calm"] { --m: 0; }
html[data-term="green"] { --term-bg: #0b100c; --term-fg: #c9f0c4; --term-fg-bright: #ecffe8; --term-dim: #75a070; --term-note: #9fd0ff; --term-sel: rgba(126,231,135,.22); }   /* the phosphor look stays a setting */
html[data-term="amber"] { --term-bg: #130e06; --term-fg: #f3cf8c; --term-fg-bright: #ffe9bd; --term-dim: #a3844f; --term-err: #ff9d80; --term-prompt: #ffb94f; --term-path: #a9d3ff; --term-note: #a9d3ff; --term-sel: rgba(255,185,79,.22); --term-glow: rgba(255,185,79,.2);
  --ansi-red: #ff8f70; --ansi-green: #b5e36c; --ansi-yellow: #ffe38f; --ansi-blue: #93c9ff; --ansi-magenta: #f1aaff; --ansi-cyan: #93e9e9; }
html[data-term="modern"] { --term-bg: #14171d; --term-fg: #dde3ea; --term-fg-bright: #ffffff; --term-dim: #7f8b9b; --term-err: #ff8f87; --term-prompt: #7ee787; --term-path: #79c0ff; --term-note: #e2c37a; --term-sel: rgba(108,196,255,.22); --term-glow: transparent;
  --ansi-red: #ff7b72; --ansi-green: #7ee787; --ansi-yellow: #f2cc60; --ansi-blue: #79c0ff; --ansi-magenta: #d2a8ff; --ansi-cyan: #76e3ea; }
html[data-size="s"] { --term-size: 12px; } html[data-size="l"] { --term-size: 15.5px; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow-x: hidden; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); display: flex; flex-direction: column; min-height: 100%; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--acc); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); padding: 1px 5px; border-radius: 2px; color: var(--text); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.25; margin: 0 0 .4em; letter-spacing: 0; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 30; }

/* ── the site header ── */
.top { border-bottom: 1px solid var(--line-2); background: var(--bg-2); position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 8px; min-height: 42px; max-width: none; padding-inline: 20px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font: 500 13px var(--mono); white-space: nowrap; }
.brand img { width: 22px; height: 22px; } .brand span { display: inline; } .sep { color: var(--dim); margin-right: 8px; }
.crumb { white-space: nowrap; font: 500 13px var(--mono); } .linkish { background: none; border: 0; padding: 0; color: var(--text); font-weight: 500; }
.top-actions { margin-left: auto; display: flex; gap: 2px; }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 1px solid transparent; border-radius: 3px; color: var(--muted); transition: background .15s, color .15s; }
.icon-btn:hover, .icon-btn:focus-visible { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.ic { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
main { flex: 1 0 auto; display: flex; flex-direction: column; outline: none; min-height: 0; }
.foot { padding-block: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--dim); font: 12px var(--mono); border-top: 1px solid var(--line-2); margin-top: 28px; max-width: none; padding-inline: 20px; } .foot a { color: var(--muted); }
#scrCheat.wrap, #scrNotebook.wrap { max-width: none; padding-inline: 20px; } #scrCheat h1, #scrNotebook h1 { font: 600 20px var(--font); } #scrCheat > .muted, #scrNotebook > .muted { font-size: 13.5px; margin: 0 0 10px; } #scrNotebook h2, #scrCheat h2 { font: 500 12px var(--mono); color: var(--muted); padding-bottom: 5px; border-bottom: 1px solid var(--line-2); margin: 22px 0 8px; }

/* ── buttons, cards, small words ── */
/* buttons: flat tool buttons in mono; one primary at most on a screen */
.btn { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 3px; padding: 6px 12px; font: 500 12.5px/1.3 var(--mono); color: var(--text); transition: border-color .12s, background .12s; }
.btn:hover, .btn:focus-visible { border-color: var(--line-3); background: var(--surface-3); }
.btn.primary { background: var(--acc-2); border-color: var(--acc-2); color: var(--acc-ink); }
.btn.primary:hover, .btn.primary:focus-visible { background: var(--acc-3); border-color: var(--acc-3); }
.btn.big { padding: 9px 18px; font-size: 13.5px; }
.btn.small { padding: 3px 9px; font-size: 12px; }
.btn.ghost { background: none; } .btn.ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .45; cursor: default; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .okc { color: var(--ok); } .badc { color: var(--bad); } .warnc { color: var(--warn); }
.card { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 3px; padding: 12px 14px; }
.screen { padding-block: 16px; }
.screen:not([hidden]) { animation: screen-in calc(var(--m) * .18s) ease-out both; }
@keyframes screen-in { from { opacity: 0; } to { opacity: 1; } }

/* ── the board's shared rows (the home, the track pages and the first start are laid out in academy.css) ── */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.board-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 22px 0 8px; } .board-h h2 { font-size: 15px; margin: 0; } .board-h .muted { font-size: 12.5px; }
.lessons { display: grid; gap: 0; margin-top: 4px; }
.lesson-b { position: relative; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 8px 0; font-size: 13.5px; text-align: left; line-height: 1.35; }
.lesson-b .dim { display: block; margin-top: 2px; font-size: 12px; font-family: var(--mono); }
.lesson-b:hover, .lesson-b:focus-visible { background: var(--surface); outline: none; }
.board { display: grid; gap: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; background: none; border-top: 1px solid var(--line); padding: 9px 0; }
.row:first-child { border-top: 0; }
.row:hover { background: var(--surface); }
.row h3 { font: 500 13.5px var(--font); margin: 0; } .row p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.modes { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.mode-b { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line-2); border-radius: 2px; padding: 3px 9px; font: 500 12px var(--mono); color: var(--text); transition: border-color .12s, background .12s; }
.mode-b:hover, .mode-b:focus-visible { border-color: var(--acc); background: var(--surface-2); outline: none; }
.stars { font-size: 11.5px; letter-spacing: 1px; color: var(--warn); font-weight: 400; white-space: nowrap; } .stars .off { color: var(--dim); opacity: .7; }
.lvl { font: 500 11.5px var(--mono); color: var(--muted); letter-spacing: 0; }
.nodes-note { font-size: 12px; color: var(--dim); margin-top: 12px; }
/* which world a row belongs to: a small mark before the level, so the board reads at a glance */
.row[data-track="windows"] .lvl::before, .row[data-track="mixed"] .lvl::before { content: 'PS'; display: inline-block; margin-right: 8px; padding: 0 4px; border-radius: 2px; border: 1px solid var(--line-3); color: var(--muted); font: 500 10px/14px var(--mono); letter-spacing: 0; vertical-align: 1px; }
.row[data-track="mixed"] .lvl::before { content: '$ ⇄ PS'; }

/* ── the run ── */
.runscreen { padding: 0; flex: 1 1 0; display: flex; flex-direction: column; min-height: 0; }
body.inrun { height: 100dvh; overflow: hidden; background-image: none; } body.inrun .foot { display: none; } body.inrun main { flex: 1 1 0; min-height: 0; overflow: hidden; }
/* the bar across the top of a run: a status line. Fields in mono, separated by hairlines; the buttons flat, one primary */
.runbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; padding: 0 10px; min-height: 38px; background: var(--bg-2); border-bottom: 1px solid var(--line-2); font: 12.5px var(--mono); color: var(--muted); }
.runbar > * { padding: 6px 12px 6px 0; }
.runbar > .tag, .runbar > .stat { padding: 6px 12px; border-left: 1px solid var(--line-2); }
.runbar h2 { font: 500 12.5px var(--mono); color: var(--text); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; letter-spacing: 0; }
.tag { font: 12.5px var(--mono); letter-spacing: 0; border: 0; border-radius: 0; padding: 0; color: var(--muted); white-space: nowrap; }
.stat { white-space: nowrap; color: var(--muted); } .stat b { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 500; }
.runbar .stat.okc, .runbar .stat.badc { font-weight: 500; }
.runbar .stat.okc { color: var(--ok); } .runbar .stat.badc { color: var(--bad); }
.runbar .stat.badc { animation: stat-blink calc(var(--m) * 1.2s) steps(2, end) infinite; }
@keyframes stat-blink { 50% { color: var(--text); } }
.runbar .spacer { flex: 1; padding: 0; }
.runbar .btn { padding: 4px 10px; margin-left: 6px; } .runbar .btn.small { font-size: 12px; }
.rungrid { flex: 1 1 0; display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w, minmax(320px, 390px)); grid-template-rows: minmax(0, 1fr); min-height: 0; }

/* the terminal */
.termwrap { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--term-bg); position: relative; }
.termwrap::before { content: none; }
.term { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 12px 16px 8px; font: var(--term-size)/var(--term-lh) var(--mono); color: var(--term-fg); cursor: text; text-shadow: 0 0 5px var(--term-glow); scrollbar-width: thin; scrollbar-color: var(--term-dim) transparent; font-variant-ligatures: none; }
.term::-webkit-scrollbar { width: 8px; } .term::-webkit-scrollbar-thumb { background: var(--term-dim); border-radius: 4px; border: 2px solid var(--term-bg); } .term::-webkit-scrollbar-track { background: transparent; }
.ln { white-space: pre-wrap; word-break: break-word; min-height: calc(var(--term-lh) * 1em); }
.ln.cmd { color: var(--term-fg-bright); } .ln.cmd:not(:first-child) { margin-top: .12em; }
.ln.err { color: var(--term-err); box-shadow: inset 2px 0 0 color-mix(in srgb, var(--term-err) 40%, transparent); padding-left: 8px; margin-left: -8px; }   /* a traceback's lines share one quiet red rule, and the text stays where it was */
.ln.err + .ln.err { margin-top: 0; }
.ln.note { color: var(--term-note); border-left: 2px solid var(--term-dim); padding: 1px 0 1px 8px; margin: 3px 0; }
/* a system note inside the terminal: a thin rule and a dim label, not a box */
.ln.sys { color: var(--term-fg); font: 13px/1.45 var(--font); margin: 4px 0 10px; padding: 2px 0 2px 10px; border: 0; border-left: 2px solid var(--term-dim); border-radius: 0; background: none; max-width: 80ch; text-shadow: none; }
.ln.sys::before { content: 'system'; display: block; font: 500 10.5px/1.4 var(--mono); letter-spacing: .06em; color: var(--term-dim); margin-bottom: 1px; }
.ln.learn { cursor: help; } .ln.learn:hover { background: var(--term-sel); box-shadow: -16px 0 0 var(--term-sel), 16px 0 0 var(--term-sel); }
.ln.sel { background: var(--term-sel); }
.term ::selection, #cmd::selection { background: var(--term-sel); } ::selection { background: var(--acc-soft); }
.pr, .inputrow .pr { color: var(--term-prompt); white-space: pre-wrap; }
.pr-user { color: var(--term-prompt); font-weight: 700; } .pr-path { color: var(--term-path); font-weight: 700; }
.a-red { color: var(--ansi-red); } .a-green { color: var(--ansi-green); } .a-yellow { color: var(--ansi-yellow); } .a-blue { color: var(--ansi-blue); } .a-magenta { color: var(--ansi-magenta); } .a-cyan { color: var(--ansi-cyan); }
.a-bold { font-weight: 700; color: var(--term-fg-bright); } .a-bold.a-red { color: var(--ansi-red); } .a-bold.a-green { color: var(--ansi-green); } .a-bold.a-yellow { color: var(--ansi-yellow); } .a-bold.a-blue { color: var(--ansi-blue); } .a-bold.a-magenta { color: var(--ansi-magenta); } .a-bold.a-cyan { color: var(--ansi-cyan); }
.a-dim { color: var(--term-dim); } .a-onbg { color: var(--term-bg); text-shadow: none; } .a-bggreen { background: var(--ansi-green); } .a-bgdark { background: rgba(0,0,0,.45); }
.inputrow { display: flex; align-items: baseline; font: var(--term-size)/var(--term-lh) var(--mono); color: var(--term-fg); flex-wrap: wrap; margin-top: 0; }
#cmd { flex: 1 1 8ch; min-width: 8ch; background: none; border: 0; outline: 0; color: var(--term-fg-bright); font: inherit; padding: 0; caret-color: var(--term-fg); text-shadow: inherit; }
.screenov { position: absolute; inset: 0; background: var(--term-bg); color: var(--term-fg); font: var(--term-size)/var(--term-lh) var(--mono); padding: 4px 8px; overflow: hidden; white-space: pre; cursor: text; z-index: 3; text-shadow: 0 0 5px var(--term-glow); font-variant-ligatures: none; }
.sl { display: block; height: calc(var(--term-lh) * 1em); overflow: hidden; } .sl.inv { background: var(--term-fg); color: var(--term-bg); text-shadow: none; } .sl.dim { color: var(--term-dim); } .sl.err { color: var(--term-err); } .sl.hit { background: var(--term-sel); } .sl.bold { font-weight: 700; color: var(--term-fg-bright); }
.cur { background: var(--term-fg); color: var(--term-bg); text-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 3px; padding: 4px 8px; background: var(--bg-2); border-top: 1px solid var(--line-2); max-height: 112px; overflow-y: auto; scrollbar-width: thin; }
.chip { flex: none; background: none; border: 1px solid var(--line-2); border-radius: 2px; padding: 2px 8px; font: 12.5px var(--mono); color: var(--text); white-space: nowrap; transition: border-color .12s, background .12s; }
.chip:hover, .chip:focus-visible { border-color: var(--acc); background: var(--surface-2); outline: none; }
.chip.key { color: var(--warn); }

/* the side panel */
.side { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--surface); border-left: 1px solid var(--line); position: relative; }
/* the line between terminal and side panel: a quiet handle that lights when you take it */
/* the split: the Browser or the desktop sits on top of the terminal, with a sash between them like two real windows one above the other */
@media (min-width: 861px) {
  .rungrid.term-split .wb, .rungrid.term-split .rdp { position: relative; inset: auto; flex: 0 0 62%; order: -1; border-bottom: 1px solid var(--line-3); z-index: 6; }
  .rungrid.term-split .termwrap > .termbar { position: relative; margin-top: 0; padding-top: 5px; padding-bottom: 5px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
  .rungrid.term-split .termwrap > .termbar::before { content: ''; position: absolute; left: 50%; top: 50%; width: 36px; height: 3px; margin: -1px 0 0 -18px; border-radius: 1px; background: var(--line-3); }
  .rungrid.term-split .termwrap > .termbar .btn[data-split] { border-color: var(--acc-2); color: var(--acc); }
}
@media (max-width: 860px) { button.split-btn.split-btn { display: none; } }
.side-grip { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 4; touch-action: none; }
.side-grip::before { content: ''; position: absolute; left: 3px; top: 0; bottom: 0; width: 2px; transition: background .15s; }
.side-grip::after { content: ''; position: absolute; left: 1.5px; top: 50%; width: 5px; height: 38px; margin-top: -19px; border-radius: 3px; background: var(--line-3); opacity: .7; transition: background .15s, opacity .15s; }
.side-grip:hover::before, .side-grip.on::before, .side-grip:focus-visible::before { background: var(--acc); }
.side-grip:hover::after, .side-grip.on::after, .side-grip:focus-visible::after { background: var(--acc); opacity: 1; }
.side-grip:focus-visible { outline: none; }
/* a chart from the narrow side panel, across the whole window */
.big-row { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.big-row .btn { position: relative; padding: 3px 10px 3px 27px; font-size: 12px; color: var(--muted); background: none; }
.big-row .btn::before { content: ''; position: absolute; left: 10px; top: 50%; width: 11px; height: 11px; margin-top: -6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ba8b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3H3v6M15 21h6v-6M21 9V3h-6M3 15v6h6M3 3l6 6M21 21l-6-6M21 3l-6 6M3 21l6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.big-row .btn:hover { color: var(--text); background: var(--surface-2); }
.bigview { background: var(--bg-2); border: 1px solid var(--line-3); border-radius: 3px; box-shadow: none; padding: 10px 16px 14px; width: min(1560px, 100%); height: calc(100dvh - 32px); display: flex; flex-direction: column; min-width: 0; animation: dlg-in calc(var(--m) * .15s) ease-out both; }
.big-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); } .big-head h3 { margin: 0; font: 500 12.5px var(--mono); color: var(--muted); display: flex; align-items: center; gap: 10px; }
.big-head h3::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: var(--acc); }
.big-body { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
.big-stage { min-width: 0; min-height: 0; overflow: auto; display: flex; flex-direction: column; } .big-side { min-height: 0; overflow-y: auto; font-size: 14px; padding-right: 2px; }
.big-side .card { background: var(--bg); border-color: var(--line-2); } .big-side #nodeBox h4 { font: 500 13px var(--mono); color: var(--text); } .big-side .side-note { margin-top: 0; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 3px; }
#nodeBox h4 { font: 500 12.5px var(--mono); color: var(--text); }
.big-map .map { flex: 1 1 0; min-height: 0; width: 100%; height: auto; } .big-map .map-say { flex: none; font-size: 15px; margin-bottom: 0; }
.big-flow .flow { flex: none; width: 100%; height: auto; min-width: 0; }
.tabs { display: flex; flex-wrap: nowrap; gap: 0; padding: 0 4px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; background: var(--bg-2); }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 9px 8px 7px; font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; margin-bottom: -1px; transition: color .12s, border-color .12s; }
/* seven or more tabs share the row and need no scrolling at a desktop's widths: the gaps give first, then the letters at the narrowest panel */
@media (min-width: 861px) { .tabs:has(> .tab:nth-child(7)) { container-type: inline-size; padding: 0 2px; } .tabs:has(> .tab:nth-child(7)) .tab { flex: 1 1 auto; padding-left: 2px; padding-right: 2px; } @container (max-width: 350px) { .tabs:has(> .tab:nth-child(8)) .tab { font-size: 11px; } } }
.tab:hover { color: var(--text); } .tab.on { color: var(--text); border-bottom-color: var(--acc); }
.tab .dot { display: inline-block; width: 6px; height: 6px; background: var(--warn); border-radius: 1px; margin-left: 6px; vertical-align: 1px; animation: blink calc(var(--m) * 1.2s) steps(2, end) infinite; }
.pane { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px 12px 12px; font-size: 13.5px; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.pane h4 { margin: 0 0 6px; font: 500 12px var(--mono); color: var(--muted); }
/* the chat: a compact log. A name in mono, the words beneath, a hairline between entries */
.chat { display: flex; flex-direction: column; gap: 0; }
.msg { background: none; border-radius: 0; border-top: 1px solid var(--line); padding: 7px 0 8px; line-height: 1.45; font-size: 13.5px; animation: msg-in calc(var(--m) * .2s) ease-out both; }
.msg:first-child { border-top: 0; }
@keyframes msg-in { from { opacity: 0; } to { opacity: 1; } }
.msg .who { font: 500 11px var(--mono); letter-spacing: .04em; color: var(--acc); display: block; margin-bottom: 1px; }
.msg.you { background: none; border-top: 1px solid var(--line); border-radius: 0; padding-left: 10px; box-shadow: inset 2px 0 0 var(--line-3); } .msg.you .who { color: var(--muted); }
.msg.jo .who, .msg.finance .who { color: var(--warn); } .msg.priya .who, .msg.dana .who, .msg.ola .who { color: #c9a7ff; }
.msg.alerts { font-family: var(--mono); font-size: 12px; background: none; border-left: 0; border-radius: 0; padding-left: 10px; box-shadow: inset 2px 0 0 var(--warn); } .msg.alerts .who { color: var(--warn); }
.msg.hint { border-left: 0; border-radius: 0; padding-left: 10px; box-shadow: inset 2px 0 0 var(--ok); }
.msg code { cursor: pointer; background: var(--surface-2); } .msg code:hover { outline: 1px solid var(--acc); }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.goals li { position: relative; padding: 5px 0 5px 22px; line-height: 1.4; border-top: 1px solid var(--line); } .goals li:first-child { border-top: 0; }
.goals li::before { content: ''; position: absolute; left: 1px; top: .72em; width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--dim); }
.goals li.done { color: var(--muted); } .goals li.done::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%230a0d12' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px no-repeat; }
.goals li.opt { font-style: italic; }
.explain { border: 1px solid var(--line-2); border-left: 2px solid var(--acc); border-radius: 0 2px 2px 0; padding: 8px 10px; margin-bottom: 10px; background: var(--bg-2); animation: msg-in calc(var(--m) * .2s) ease-out both; }
.explain h4 { margin: 0 0 6px; font: 500 12.5px var(--mono); color: var(--text); padding-right: 24px; } .explain .x { float: right; background: none; border: 0; color: var(--muted); border-radius: 2px; width: 24px; height: 24px; margin: -4px -6px 0 0; } .explain .x:hover { background: var(--surface-2); color: var(--text); }
.term-link { background: none; border: 0; padding: 0; color: var(--acc); text-decoration: underline dotted; font-size: inherit; margin-right: 8px; }
.term-link.inline { color: inherit; text-decoration: underline dotted var(--acc); margin: 0; font: inherit; }
.careful { color: var(--warn); font-size: 13px; } .careful::before { content: '⚠ '; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 13px; margin: 8px 0 0; } .kv dt { color: var(--muted); font: 12px var(--mono); } .kv dd { margin: 0; font-family: var(--mono); font-size: 12.5px; }
.side-note { font-size: 12px; color: var(--dim); margin-top: 8px; }
/* the ticket panel: a severity line in mono, the ticket beneath */
.pane > .sev { margin: 0 0 6px; font: 500 12px var(--mono); padding: 4px 0 4px 10px; box-shadow: inset 2px 0 0 var(--bad); }

/* ── charts ── */
.chart { display: block; width: 100%; height: auto; }
.chart .lnc { fill: none; stroke: var(--acc); stroke-width: 1.8; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw calc(var(--m) * 1.4s) ease-out both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.chart .area { fill: var(--acc); opacity: .1; animation: fadein calc(var(--m) * 1.2s) ease-out both; }   /* a flat fill; the gradient the drawing defines stays unused */
@keyframes fadein { from { opacity: 0; } to { opacity: .1; } }
.chart .bad { fill: var(--bad); opacity: .14; } .chart .badl { stroke: var(--bad); stroke-width: 1; opacity: .5; }
.chart text { fill: var(--muted); font: 10.5px var(--mono); } .chart .grid { stroke: var(--line); } .chart .axis { stroke: var(--line-2); }
.chart .mark { stroke: var(--warn); stroke-width: 1.2; } .chart .markd { fill: var(--warn); } .chart .cap { fill: var(--dim); font-size: 10px; } .chart .legend { font-size: 10.5px; }
.chart .fixat { stroke: var(--ok); stroke-dasharray: 3 3; } .chart .fixt { fill: var(--ok); font-weight: 600; }
.dash { display: grid; gap: 8px; }
.dash .big { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 3px; padding: 6px 10px 6px; }
.dash h4 { margin: 0 0 4px; font: 500 12px var(--mono); color: var(--muted); letter-spacing: 0; display: flex; justify-content: space-between; align-items: baseline; }
.dash h4 span { font: 500 16px var(--mono); color: var(--text); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.dash .big.hot h4 span { color: var(--bad); }
.hostrow { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 58px); gap: 3px 8px; align-items: center; font-size: 12px; }
.hostrow .h { font-family: var(--mono); font-size: 12px; color: var(--text); } .hostrow > .dim { font: 500 11px var(--mono); letter-spacing: 0; }
.hostrow .pct { font: 10.5px var(--mono); color: var(--dim); text-align: right; margin-top: 2px; } .hostrow .pct.badc { color: var(--bad); font-weight: 700; }
.hostrow .spark { height: 16px; } .hostrow > div { padding-bottom: 4px; }
.spark { width: 100%; height: 22px; display: block; } .spark .l { fill: none; stroke: var(--acc); stroke-width: 1.3; } .spark .a { fill: var(--acc); opacity: .14; }
.spark.hot .l { stroke: var(--bad); } .spark.hot .a { fill: var(--bad); opacity: .16; }
.dash .big .spark { height: 44px; } .dash .big .spark .l { stroke-width: 1.6; }

/* ── the infrastructure map ── */
.map { width: 100%; height: auto; display: block; animation: fadein-full calc(var(--m) * .35s) ease-out both; }
@keyframes fadein-full { from { opacity: 0; } to { opacity: 1; } }
.map .paper { fill: var(--bg-2); rx: 3px; } .map .gridp { fill: url(#ocGrid); rx: 3px; } .map .dotp { fill: var(--line-2); }
.map .cloud .box { rx: 3px; } .map .ring { rx: 4px; } .map .wband { rx: 3px; } .map .wband-tab { rx: 2px; } .map .node .bar { rx: 1px; }
.map .edge { stroke: var(--line-3); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.map .edge.ok { stroke: var(--ok); stroke-width: 2; }
.map .edge.bad { stroke: var(--bad); stroke-width: 2; stroke-dasharray: 5 4; animation: march calc(var(--m) * 1.2s) linear infinite; }
@keyframes march { to { stroke-dashoffset: -18; } }
.map .node { cursor: pointer; }
.map .node .box { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1; rx: 2px; transition: stroke .2s, fill .2s; }
.map .node:hover .box, .map .node:focus .box { stroke: var(--acc); } .map .node:focus { outline: none; }
.map .node.sel .box { stroke: var(--acc); stroke-width: 1.5; fill: var(--surface-3); }
.map .node .bar { fill: var(--line-3); } .map .node.ok .bar { fill: var(--ok); } .map .node.bad .bar { fill: var(--bad); }
.map .node.ok .box { stroke: rgba(79,211,127,.55); } .map .node.bad .box { stroke: var(--bad); fill: color-mix(in srgb, var(--bad) 12%, var(--surface-2)); }
.map .node .ico { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; } .map .node.ok .ico { stroke: var(--ok); } .map .node.bad .ico { stroke: var(--bad); }
.map .node .ico .f { fill: var(--muted); stroke: none; } .map .node.ok .ico .f { fill: var(--ok); } .map .node.bad .ico .f { fill: var(--bad); }
.map text { fill: var(--text); font: 500 9.5px var(--mono); text-anchor: start; pointer-events: none; } .map text.sub { fill: var(--muted); font: 8.5px var(--mono); }
.map .cloud .box { fill: var(--surface); stroke: var(--line-2); } .map .cloud text { font-family: var(--font); font-size: 10.5px; }
.map .hl { fill: var(--acc); pointer-events: none; } .map .hl.ok { fill: var(--ok); } .map .hl.bad { fill: var(--bad); }   /* the dot and the lights are driven by attributes, which the drawing animates */
.map .ring { fill: none; stroke: var(--bad); stroke-width: 1.5; opacity: 0; animation: ring calc(var(--m) * 1.8s) ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { 0% { opacity: .8; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
.map .stop .bg { fill: var(--bad); } .map .stop text { fill: #fff; font: 700 9px var(--font); text-anchor: middle; }
.map .winmark { fill: var(--win-mark, #6cb6ff); } .map .winmark-t { fill: #04131d; font: 700 7px var(--font); text-anchor: middle; }
.map-say { margin: 8px 0 10px; font-size: 13px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.map-say::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 1px; margin-top: 6px; background: var(--dim); }
.map-say.ok::before { background: var(--ok); } .map-say.bad::before { background: var(--bad); animation: blink calc(var(--m) * 1.2s) steps(2, end) infinite; }
.map-say.wiki { color: var(--muted); font-style: italic; } .map-say.wiki::before { background: var(--warn); }
.wiki-note { font-size: 12px; color: var(--dim); font-style: italic; }

/* ── runbook flowcharts ── */
.flow-scroll { overflow-x: auto; margin: 0 -12px 10px; padding: 0 12px; scrollbar-width: thin; }
.flow { width: 100%; height: auto; display: block; margin-bottom: 4px; min-width: 520px; }
.flow .paper { fill: var(--bg-2); stroke: var(--line); rx: 3px; }
.flow .box { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.2; rx: 3px; transition: stroke .2s, fill .2s; }
.flow .lblbg { rx: 2px; }
.flow .node { cursor: pointer; } .flow .node:hover .box, .flow .node:focus .box { stroke: var(--acc); } .flow .node:focus { outline: none; }
.flow .known .box { stroke: var(--ok); } .flow .known.start .box { fill: color-mix(in srgb, var(--ok) 10%, var(--surface-2)); }
.flow .locked .box { stroke-dasharray: 4 3; fill: var(--surface); }
.flow text { fill: var(--text); font: 500 12.5px var(--font); text-anchor: middle; pointer-events: none; }
.flow .how { font: 11px var(--mono); fill: var(--muted); font-weight: 400; } .flow .locked text { fill: var(--dim); font-weight: 500; }
.flow .lbl { fill: var(--muted); font: 500 10.5px var(--mono); } .flow .lblbg { fill: var(--bg-2); stroke: var(--line-2); }
.flow .edge { stroke: var(--line-3); fill: none; stroke-width: 1.5; } .flow .edge.lit { stroke: var(--ok); }
.flow .arrow { fill: var(--line-3); } .flow .arrow.lit { fill: var(--ok); }
.flow .tick .bg { fill: var(--ok); } .flow .tick path { fill: none; stroke: #06202f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow .lock { fill: none; stroke: var(--dim); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.flow-note { font-size: 13px; margin: 0 0 14px; min-height: 1.5em; } .flow-note code { font-size: 12.5px; }

/* ── the postmortem ── */
/* the postmortem: a document, left-aligned, running heads in mono, numbers in a ruled grid */
.pm { max-width: 820px; margin: 0; background: none; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; padding: 18px 0 24px; box-shadow: none; position: relative; }
.pm > .dim:first-child { font: 500 11.5px var(--mono); letter-spacing: .02em; color: var(--dim); margin: 0 0 8px; }
.pm h1 { font: 600 22px/1.25 var(--font); margin-bottom: 4px; } .pm h1 + .muted { font: 12.5px var(--mono); margin: 0 0 14px; }
/* section headings: a document's running heads. No text-transform here, on purpose: the check scripts read innerText */
.pm h2 { font: 500 12px var(--mono); letter-spacing: .02em; color: var(--muted); margin: 26px 0 8px; padding-bottom: 5px; border-bottom: 1px solid var(--line-2); }
.pm .big-stars { font-size: 22px; color: var(--warn); letter-spacing: 3px; line-height: 1; margin: 6px 0 6px; }
.pm .big-stars span { display: inline-block; animation: star-land calc(var(--m) * .3s) ease-out both; }
.pm .big-stars span:nth-child(2) { animation-delay: calc(var(--m) * .15s); } .pm .big-stars span:nth-child(3) { animation-delay: calc(var(--m) * .3s); }
@keyframes star-land { from { opacity: 0; } to { opacity: 1; } }
.pm .big-stars .off { color: var(--dim); opacity: .6; }
.pm ul, .pm ol { padding-left: 22px; margin: 4px 0; } .pm li { margin: 4px 0; }
.pm .starlist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 2px; font: 12.5px var(--mono); } .pm .starlist li { padding-left: 20px; position: relative; color: var(--muted); } .pm .starlist li::before { content: '☆'; position: absolute; left: 0; color: var(--dim); } .pm .starlist li.got { color: var(--text); } .pm .starlist li.got::before { content: '★'; color: var(--warn); }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin-block: 8px; background: var(--line-2); border: 1px solid var(--line-2); }
.pm-num { background: var(--bg); border: 0; border-radius: 0; padding: 10px 12px; } .pm-num b { display: block; font: 500 18px var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; } .pm-num span { font: 11.5px var(--mono); color: var(--muted); }
.cmdlist { font: 12.5px/1.6 var(--mono); list-style: none; padding: 0; margin: 0; counter-reset: cmd; } .cmdlist li { padding: 3px 0 3px 30px; position: relative; border-bottom: 1px solid var(--line); } .cmdlist li::before { counter-increment: cmd; content: counter(cmd); position: absolute; left: 0; top: 4px; font-size: 11px; color: var(--dim); width: 20px; text-align: right; } .cmdlist span { color: var(--muted); margin-right: 12px; }
.damage { border-left: 2px solid var(--bad); padding: 2px 0 2px 12px; background: none; border-radius: 0; }
#scrPost.wrap { max-width: none; padding-inline: 20px; }

/* ── tables ── */
table.plain { width: 100%; border-collapse: collapse; font-size: 13.5px; } table.plain th { text-align: left; font: 500 11.5px var(--mono); letter-spacing: .02em; color: var(--muted); border-bottom-color: var(--line-2); } table.plain td, table.plain th { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } table.plain td:first-child, table.plain th:first-child { padding-left: 0; }
table.plain tbody tr:hover td { background: rgba(151,168,189,.04); }

/* ── overlays ── */
.overlay { position: fixed; inset: 0; background: rgba(5,7,10,.78); display: grid; place-items: center; z-index: 20; padding: 16px; overflow-y: auto; animation: fadein-full calc(var(--m) * .15s) ease-out both; }
.dlg { background: var(--bg-2); border: 1px solid var(--line-3); border-radius: 3px; padding: 16px 18px; width: min(560px, 100%); max-height: 90dvh; overflow-y: auto; box-shadow: none; animation: dlg-in calc(var(--m) * .15s) ease-out both; }
@keyframes dlg-in { from { opacity: 0; } to { opacity: 1; } }
.dlg h2 { font: 600 16px var(--font); } .dlg p { margin: 8px 0; font-size: 13.5px; }
.dlg > p[style] { margin: 0 !important; padding: 4px 0; border-top: 1px solid var(--line); font-size: 13px; } .dlg > p[style] b { font-weight: 500; }
.dlg .actions { margin-top: 14px; }
/* the pager: a flat alert panel. A hard severity strip with the timestamp, the alert, the ticket as fields, one plain button */
.pager { border-color: var(--line-3); padding-top: 0; box-shadow: none; animation: dlg-in calc(var(--m) * .15s) ease-out both; }
.pager .sev { color: #fff; font: 500 12px var(--mono); letter-spacing: .04em; margin: 0 -18px 14px; padding: 7px 18px; background: var(--bad-strip); border: 0; border-radius: 0; display: flex; align-items: center; gap: 10px; }
.pager .sev::before { content: ''; width: 8px; height: 8px; border-radius: 1px; background: #fff; animation: blink calc(var(--m) * 1s) steps(2, end) infinite; }
.pager h2 { font: 600 16px var(--font); margin-bottom: 6px; }
.pager .muted { background: none; border: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 8px 0; margin: 12px 0; font: 12.5px/1.5 var(--mono); color: var(--muted); } .pager .muted b { color: var(--text); font-weight: 500; }
.pager .dim { font: 12px var(--mono); }
.pager .btn.primary { background: var(--acc-2); border-color: var(--acc-2); box-shadow: none; }
.pager .btn.primary:hover, .pager .btn.primary:focus-visible { background: var(--acc-3); border-color: var(--acc-3); }
#doneCard { border-color: var(--line-3); } #doneCard h2 { padding-left: 22px; position: relative; }
#doneCard h2::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--ok); font: 500 15px var(--mono); }
.setting { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.setting:last-of-type { border-bottom: 0; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; background: var(--bg-2); } .seg button { background: none; border: 0; padding: 4px 11px; font: 500 12.5px var(--mono); color: var(--muted); transition: background .12s, color .12s; } .seg button:hover { color: var(--text); } .seg button.on { background: var(--acc-2); color: var(--acc-ink); }
input[type="range"] { accent-color: var(--acc-2); }
details summary { cursor: pointer; color: var(--acc); }
.toasts { pointer-events: none; position: fixed; right: 14px; bottom: 14px; display: grid; gap: 6px; z-index: 40; max-width: min(340px, calc(100vw - 28px)); }
.toast { background: var(--bg-2); border: 1px solid var(--line-3); border-left: 2px solid var(--warn); border-radius: 2px; padding: 8px 12px 8px 30px; font-size: 13px; color: var(--muted); box-shadow: none; position: relative; animation: toast-in calc(var(--m) * .2s) ease-out both; }
.toast::before { content: '★'; position: absolute; left: 11px; top: 8px; color: var(--warn); font-size: 13px; }
.toast b { display: block; color: var(--text); font-weight: 500; }
@keyframes toast-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

/* ── phones and narrow windows ── */
@media (max-width: 860px) {
  .rungrid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); }
  .side { border-left: 0; border-top: 1px solid var(--line); } .side-grip { display: none; }
  .big-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; } .big-side { max-height: 34dvh; }
  .big-map .map, .big-flow .flow { flex: none; width: 760px; max-width: none; height: auto; }   /* on a phone: readable size, and it scrolls inside this window */
  .brand span { display: none; } .top .wrap { min-height: 46px; }
  .screen:not(.runscreen) { padding-block: 16px; }   /* the run screen keeps its zero: a padded run bar left a blank band above it */
  .lessons { grid-template-columns: 1fr; }
  .row { grid-template-columns: minmax(0, 1fr); padding: 9px 0; } .modes { justify-content: flex-start; }
  .mode-b { flex: 1 1 88px; min-width: 0; padding-inline: 6px; justify-content: center; }
  .runbar { gap: 2px 0; padding: 0 8px; font-size: 12px; } .runbar > * { padding: 5px 8px 5px 0; } .runbar > .tag, .runbar > .stat { padding: 5px 8px; } .runbar h2 { max-width: 55vw; } .runbar .btn { margin-left: 4px; } .runbar .btn.small { padding: 3px 8px; font-size: 11.5px; }
  .term { padding: 10px 10px 6px; } .ln.sys { font-size: 12.5px; }
  .top .wrap { padding-inline: 14px; }
  .pane { padding: 10px; } .tabs { flex-wrap: nowrap; padding-right: 18px; } .tab { padding: 10px 9px 8px; }
  /* more tabs than fit: the strip scrolls, and the fade at its edge says so */
  .tabs { -webkit-mask: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
  .pm { padding: 14px 0 20px; } .pm h1 { font-size: 19px; } #scrPost.wrap { padding-inline: 14px; }
  .flow-scroll { margin-inline: -10px; padding-inline: 10px; }
  .dlg { padding: 14px 14px; } .pager { padding-top: 0; } .pager .sev { margin: 0 -14px 12px; padding: 7px 14px; }
  :root { --term-size: 12.5px; }
}
@media (max-width: 480px) { .runbar .tag { display: none; } .runbar h2 { max-width: 60vw; } .tab { padding: 10px 7px 8px; font-size: 12.5px; } .tabs { padding-left: 2px; } }
/* a phone with the keyboard up: keep the terminal, and one strip of Sam */
@media (max-width: 860px) and (max-height: 520px) {
  .runbar .btn, .runbar .tag { display: none; }
  .rungrid { grid-template-rows: minmax(0, 1fr) 84px; }
  .tabs { display: none; }
  .pane { padding: 4px 8px; font-size: 13px; }
  .chips { max-height: 38px; flex-wrap: nowrap; overflow-x: auto; }
  .top { display: none; }
}

/* ── calm motion: everything decorative stands still, nothing is lost ── */
html[data-motion="calm"] .screen, html[data-motion="calm"] .msg, html[data-motion="calm"] .explain, html[data-motion="calm"] .dlg, html[data-motion="calm"] .pager, html[data-motion="calm"] .toast, html[data-motion="calm"] .toast::before, html[data-motion="calm"] .map, html[data-motion="calm"] .map .ring, html[data-motion="calm"] .map .edge.bad, html[data-motion="calm"] .map-say::before, html[data-motion="calm"] .chart .lnc, html[data-motion="calm"] .chart .area, html[data-motion="calm"] .big-stars span, html[data-motion="calm"] #doneCard h2::before, html[data-motion="calm"] .hero-art .steam, html[data-motion="calm"] .hero-art .light, html[data-motion="calm"] .tab .dot, html[data-motion="calm"] .runbar .stat.badc, html[data-motion="calm"] .pager .sev::before, html[data-motion="calm"] .overlay { animation: none !important; }
html[data-motion="calm"] .map .ring { opacity: .7; }
html[data-motion="calm"] .ln.sys, html[data-motion="calm"] .msg, html[data-motion="calm"] .pm .big-stars span, html[data-motion="calm"] .tab .dot, html[data-motion="calm"] .runbar .stat.badc { animation: none !important; }
html[data-motion="calm"] * { transition-duration: 0s !important; }

/* ── paper ── */
@media print {
  .top, .foot, .runbar, .noprint, .toasts, .overlay, .flow-note:empty { display: none !important; }
  html, body { background: #fff !important; color: #000; height: auto; overflow: visible; }
  .screen, .pm { animation: none !important; }
  .pm { background: #fff; border: 0; box-shadow: none; padding: 0; max-width: none; color: #000; } .pm::before { display: none; } .pm h2 { color: #333; border-color: #bbb; } .pm .muted, .pm .dim, .muted, .dim { color: #444 !important; }
  .pm .big-stars, .stars, .pm .starlist li.got::before { color: #000 !important; } .pm .starlist li, .pm .starlist li.got { color: #000; } .pm .starlist li::before { color: #777; } .pm-num, .card { border-color: #999; background: #fff; color: #000; } .pm-num span { color: #444; }
  .cmdlist li { border-color: #ccc; } .cmdlist span { color: #555; } .damage { background: none; border-color: #000; }
  .chart .lnc { stroke: #000; animation: none !important; stroke-dasharray: none; } .chart .area { display: none; } .chart text { fill: #333; } .chart .grid { stroke: #ddd; } .chart .bad { fill: #d33; opacity: .2; } .chart .mark { stroke: #000; } .chart .markd { fill: #000; } .chart .fixat { stroke: #090; } .chart .fixt { fill: #060; }
  table.plain td, table.plain th { border-color: #999; color: #000; } table.plain th { color: #333; } code { background: #eee; color: #000; } .careful { color: #7a5a00; }
  h1, h2, h3 { color: #000; } a { color: #000; text-decoration: none; }
  .flow-scroll { overflow: visible; margin: 0; padding: 0; } .flow { min-width: 0; page-break-inside: avoid; }
  .flow .paper { fill: #fff; stroke: none; } .flow .box { fill: #fff; stroke: #333; } .flow .known .box, .flow .known.start .box { fill: #f1f8f2; stroke: #080; } .flow .locked .box { stroke: #999; }
  .flow text { fill: #000; } .flow .how { fill: #333; } .flow .locked text { fill: #777; } .flow .lbl { fill: #333; } .flow .lblbg { fill: #fff; stroke: #999; } .flow .edge { stroke: #555; } .flow .edge.lit { stroke: #080; } .flow .arrow { fill: #555; } .flow .arrow.lit { fill: #080; } .flow .tick .bg { fill: #080; } .flow .lock { stroke: #999; }
  .wrap { max-width: none; padding: 0; }
}
