/* termilly.com as a Termilly window. Panes in a hairline frame, in the app's own black. Radius: frame and panes 0, the video and the fragments 6px, buttons and chips 4px. */
:root {
  --page: #050505;
  --pane: #0d0d0f;
  --pane-2: #131316;
  --sunk: #18181c;
  --line: #222226;
  --line-2: #36363d;
  --text: #ececee;
  --muted: #a1a1a9;
  --faint: #83838c;
  --accent: #9d90ff;
  --accent-ink: #0b0b0b;
  --accent-soft: rgba(139, 123, 255, 0.14);
  --solid: #ececee;
  --solid-ink: #0b0b0d;
  --ok: #7ee787;
  --attention: #f2cc60;
  --danger: #e5484d;
  --danger-text: #ff8a8d;
  --frag: #000;
  --frag-2: #0a0a0a;
  --frag-line: #1f1f23;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --sans: "Mona Sans", "Segoe UI", system-ui, sans-serif;
  --mono: Consolas, "Cascadia Mono", Menlo, "DejaVu Sans Mono", monospace;
  --bar: 52px;
  --edge: 0px;
  --pad: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --edge: 12px; --pad: 28px; } }
@media (min-width: 1200px) { :root { --edge: 18px; --pad: 40px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 20px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; padding: var(--edge); background: var(--page); color: var(--text); font: 400 16px/1.6 var(--sans); font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--text); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.ph { display: inline-block; width: 1em; height: 1em; font-size: 16px; flex: none; vertical-align: -0.125em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 14px; background: var(--solid); color: var(--solid-ink); transform: translateY(-160%); transition: transform 0.2s; }
.skip:focus { transform: none; }
code { padding: 1px 5px; border-radius: 4px; background: var(--sunk); font: 0.92em var(--mono); }
kbd { display: inline-block; min-width: 22px; padding: 0 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; background: var(--pane-2); color: var(--text); font: 500 12.5px/19px var(--mono); text-align: center; }
.keys { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.keys .or { margin: 0 4px; color: var(--faint); font-size: 13px; }

/* ---- Buttons and links ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: 4px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn .ph { font-size: 18px; }
.btn-solid { background: var(--solid); color: var(--solid-ink); }
.btn-solid:hover { background: color-mix(in srgb, var(--solid) 86%, var(--page)); }
.btn-line { border: 1px solid var(--line-2); }
.btn-line:hover { border-color: var(--text); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13.5px; }
.btn-xs { height: 30px; padding: 0 11px; font-size: 13px; }
.btn-off { border: 1px dashed var(--line-2); color: var(--faint); cursor: not-allowed; }
.link { color: var(--accent); font-weight: 550; text-decoration: underline; text-decoration-skip-ink: none; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.link:hover { text-decoration-color: currentColor; }

/* ---- The frame: a title bar, panes split by hairlines, a status bar ---- */
.frame { min-height: calc(100vh - 2 * var(--edge)); display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--line); }
@media (max-width: 719px) { .frame { border-width: 0; } }
.frame > main { flex: 1; background: var(--pane); }
.tbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 6px; height: var(--bar); padding: 0 10px 0 var(--pad); border-bottom: 1px solid var(--line); background: var(--pane-2); }
.brand { display: inline-flex; align-items: center; gap: 9px; margin-right: 14px; font-weight: 700; font-size: 15.5px; font-stretch: 112%; letter-spacing: -0.01em; }
.tnav { display: flex; gap: 2px; }
.tnav a { padding: 6px 10px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.tnav a:hover { color: var(--text); }
.tnav a[aria-current="page"] { color: var(--text); background: var(--sunk); box-shadow: inset 0 -2px var(--accent); }
.tbar-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.tbar-gh { width: 32px; padding: 0; }
.tbar-gh .ph { font-size: 22px; }
@media (max-width: 640px) {
  .tbar-dl { display: none; }
  .brand { margin-right: 4px; }
  .tbar { padding-left: var(--pad); }
}
@media (max-width: 380px) { .brand span { display: none; } }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.split > * { grid-column: 1 / -1; min-width: 0; }
.pane { display: flex; flex-direction: column; background: var(--pane); }
.pane-head { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 var(--pad); border-bottom: 1px solid var(--line); background: var(--pane-2); color: var(--muted); font-size: 13px; }
.pane-head > .ph { color: var(--faint); }
.pane-title { min-width: 0; padding: 8px 0; line-height: 1.35; }
.pane-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; padding-left: 8px; }
.pchip { padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--faint); font-size: 12px; white-space: nowrap; }
.pdot { width: 8px; height: 8px; flex: none; border-radius: 2px; background: var(--dot); }
.pane-body { flex: 1; padding: 28px var(--pad) 32px; }
@media (min-width: 560px) { .split > .w3 { grid-column: span 6; } }
@media (min-width: 1000px) {
  .split > .w3 { grid-column: span 3; }
  .split > .w5 { grid-column: span 5; }
  .split > .w7 { grid-column: span 7; }
}

.sbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; min-height: 40px; padding: 10px var(--pad); border-top: 1px solid var(--line); background: var(--pane-2); color: var(--faint); font-size: 13px; }
.sbar-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.sbar nav { display: flex; gap: 16px; }
.sbar a:hover { color: var(--text); }
.sbar-gh { display: inline-flex; align-items: center; gap: 6px; }
.sbar-gh .ph { font-size: 15px; }
.sbar-end { margin-left: auto; }

/* ---- GIFs ---- */
.gif { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 6px; background: #000; aspect-ratio: 16 / 10; cursor: zoom-in; }
.gif.gif-wide { aspect-ratio: 2 / 1; }
/* On the landing page the Git recording has the tour video's frame: the same width, shape, border and shadow. */
.claim-git .gif { width: 100%; max-width: 1282px; margin: 0 auto; border-color: #2a2a2e; box-shadow: var(--shadow); }
.gif img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* ---- Landing: hero ---- */
.hero .pane-body { padding-top: clamp(22px, 3vw, 44px); padding-bottom: clamp(26px, 3.2vw, 48px); }
.hero-in { display: grid; gap: 32px; }
.hero h1 span { display: block; }
.hero h1 { max-width: 13ch; font-size: clamp(42px, 6.8vw, 100px); font-weight: 800; font-stretch: 118%; line-height: 0.96; letter-spacing: -0.035em; text-wrap: balance; }
.lede { max-width: 46ch; color: var(--muted); font-size: 18px; line-height: 1.55; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-note { margin-top: 16px; color: var(--faint); font-size: 13.5px; }
@media (min-width: 1100px) {
  .hero-in { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: end; gap: 56px; }
}

/* ---- Facts ---- */
.fact .pane-body { padding-top: 24px; padding-bottom: 26px; }
.fact h3 { font-size: 16px; font-weight: 650; font-stretch: 108%; letter-spacing: -0.01em; }
.fact p { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---- Claims ---- */
.claim { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-content: start; height: 100%; }
.claim h2 { max-width: 20ch; font-size: clamp(26px, 2.6vw, 34px); font-weight: 750; font-stretch: 112%; line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
.claim-copy p:not(.claim-links) { max-width: 52ch; margin-top: 14px; color: var(--muted); font-size: 16px; }
.claim-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; font-size: 14.5px; }
@media (min-width: 1000px) { .claim-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; } }
/* Git: the headline beside the text, and the recording under both at the pane's full width. */
@media (min-width: 1000px) {
  .claim-git .claim-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 48px; align-items: start; }
  .claim-git .claim-copy h2 { grid-row: span 2; }
  .claim-git .claim-copy p:not(.claim-links) { margin-top: 0; }
}

/* ---- Fragments: small pieces of the app beside each claim ---- */
.frag { align-self: end; padding: 14px; border: 1px solid var(--frag-line); border-radius: 6px; background: var(--frag); font-size: 13.5px; }
.frag-note { margin-top: 12px; color: var(--muted); font-size: 13.5px; }
.frag-note .keys { margin-right: 4px; vertical-align: middle; }
.sh { display: inline-grid; place-items: center; flex: none; width: 20px; height: 16px; border-radius: 3px; background: #1d2a4a; color: #b9c9ff; font: 700 8.5px/1 var(--mono); }
.sh-cmd { background: #2a2a2a; color: #d0d0d0; }
.sh-bash { background: #3a2318; color: #ffb48a; }
.sh-ssh { background: #13322d; color: #8fe3cf; }
.sh-ubuntu { background: #4a2414; color: #ff9b66; }

.frag-setting { display: flex; align-items: center; gap: 14px; padding: 4px 2px 14px; border-bottom: 1px solid var(--frag-line); }
.frag-setting-text { display: grid; flex: 1; min-width: 0; }
.frag-setting b { font-weight: 600; font-size: 14px; }
.frag-setting small { color: var(--faint); font-size: 12.5px; }
.switch { position: relative; flex: none; width: 38px; height: 22px; border-radius: 11px; background: var(--line-2); transition: background 0.2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] span { transform: translateX(16px); }
.frag-list { display: grid; gap: 2px; margin-top: 10px; }
.frag-list li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.frag-list .st { margin-left: auto; color: var(--ok); font-size: 12.5px; }
.frag-host.off .st { color: var(--muted); }

.frag-agents { display: grid; gap: 4px; }
.ag { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border: 1px solid transparent; border-radius: 4px; }
.ag-main { display: grid; flex: 1; min-width: 0; }
.ag-main b { font-weight: 600; }
.ag-main small { overflow: hidden; color: var(--faint); font-size: 12.5px; text-overflow: clip; white-space: nowrap; }
.ag-state { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.ag-need { border-color: color-mix(in srgb, var(--attention) 70%, transparent); background: color-mix(in srgb, var(--attention) 8%, transparent); }
.ag-need small, .ag-need .ag-state { color: var(--attention); }
.ag-done .ph { width: 14px; color: var(--ok); font-size: 14px; }
.spin { display: inline-block; flex: none; width: 12px; height: 12px; border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
.ring-dot { display: inline-block; flex: none; width: 12px; height: 12px; border: 2px solid var(--attention); border-radius: 50%; background: color-mix(in srgb, var(--attention) 30%, transparent); }
@keyframes spin { to { transform: rotate(360deg); } }

.frag-prod { border-color: var(--danger); }
.mini-head { display: flex; align-items: center; gap: 9px; margin: -14px -14px 14px; padding: 7px 12px; border-bottom: 1px solid color-mix(in srgb, var(--danger) 50%, transparent); background: color-mix(in srgb, var(--danger) 9%, transparent); font-size: 13px; }
.chip-prodbadge, .chip-stgbadge { padding: 0 6px; border-radius: 3px; background: var(--danger); color: #fff; font: 700 10px/17px var(--sans); letter-spacing: 0.04em; }
.chip-stgbadge { background: #d9a03a; color: #1a1205; }
.paste { padding: 12px; border: 1px solid var(--frag-line); border-radius: 4px; background: var(--frag-2); }
.paste-q b { font-weight: 600; }
.paste pre { margin: 10px 0 12px; padding: 9px 10px; overflow-x: auto; border-radius: 4px; background: var(--frag); color: var(--danger-text); font: 13.5px/1.55 var(--mono); }
.paste-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.snip-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 8px; font-size: 13.5px; }
.snip-head .ph { color: var(--accent); }
.snip-head code { grid-column: 1 / -1; color: var(--muted); font: 13.5px/1.5 var(--mono); overflow-wrap: anywhere; }
.snip-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.snip-form label { display: grid; gap: 4px; color: var(--muted); font-size: 12.5px; }
.snip-form input { min-width: 0; height: 32px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 4px; outline: 0; background: var(--frag-2); color: var(--text); font: 14px var(--mono); }
.snip-form input:focus { border-color: var(--accent); }
.snip-out { margin: 10px 0 12px; padding: 9px 10px; overflow-x: auto; border-radius: 4px; background: var(--frag-2); color: var(--ok); font: 13.5px/1.55 var(--mono); }

.srch { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--frag-2); }
.srch:focus-within { border-color: var(--accent); }
.srch .ph { color: var(--faint); }
.srch input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: 14px var(--sans); }
.results { display: grid; gap: 2px; margin-top: 8px; }
.results li { display: grid; grid-template-columns: auto minmax(0, 9rem) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 4px; }
.results li[hidden] { display: none; }
.results li:not([hidden]) ~ li:not([hidden]) { background: none; }
.results li:not([hidden]) { background: var(--accent-soft); }
.r-main { display: grid; min-width: 0; line-height: 1.3; }
.r-main b { font-weight: 600; }
.r-main small { color: var(--faint); font-size: 12px; }
.r-line { overflow: hidden; padding: 0; background: none; color: var(--muted); font: 13px var(--mono); text-overflow: clip; white-space: nowrap; }
.r-state { color: var(--ok); font-size: 12px; white-space: nowrap; }
.r-closed { color: var(--faint); }
@media (max-width: 560px) {
  .results li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .r-line { grid-column: 2 / -1; grid-row: 2; }
}

.frag-term { padding: 0; background: #000; border-color: #1f1f23; }
.frag-term pre { margin: 0; color: #cfcfcf; font: 13.5px/1.5 var(--mono); white-space: pre; }
.frag-term pre { padding: 16px 18px; overflow-x: auto; }.m { color: #8a8a8a; } .g { color: #7ee787; } .c { color: #79c0ff; } .y { color: #f2cc60; } .r { color: #ff8a8d; } .o { color: #e8875b; } .v { color: #b3a8ff; } .b { color: #fff; font-weight: 700; }

/* ---- The tour ---- */
.tour-pane .pane-body { padding-top: 18px; }
.tour { position: relative; max-width: 1282px; margin: 0 auto; overflow: hidden; border: 1px solid #2a2a2e; border-radius: 6px; background: #000; aspect-ratio: 2 / 1; box-shadow: var(--shadow); }
.tour-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tour-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; background: rgba(0, 0, 0, 0.35); color: #fff; }
.tour-play[hidden] { display: none; }
.tour-play-dot { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 26px; }
.tour-full { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 4px; background: rgba(0, 0, 0, 0.62); color: #fff; }
.tour-full .ph { font-size: 17px; }
.tour-full:hover { background: rgba(0, 0, 0, 0.85); }
.tour-play:hover .tour-play-dot { background: color-mix(in srgb, var(--accent) 85%, #fff); }
.chapters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; max-width: 1282px; margin: 14px auto 0; border: 1px solid var(--line); background: var(--line); }
.chapter { position: relative; display: grid; gap: 2px; padding: 12px 14px 13px; background: var(--pane); color: var(--muted); font-size: 14px; font-weight: 550; text-align: left; transition: color 0.15s, background 0.15s; }
.chapter:hover { background: var(--sunk); color: var(--text); }
.chapter-time { color: var(--faint); font: 13px var(--mono); }
.chapter::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.chapter[aria-pressed="true"] { color: var(--text); background: var(--sunk); }
.chapter[aria-pressed="true"]::after { transform: scaleX(1); }
.chapter:focus-visible { outline-offset: -2px; }
@media (max-width: 760px) {
  .tour-pane .pane-body { padding-top: 16px; }
  .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
  .chapter { padding: 9px 12px 10px; font-size: 13.5px; }
}

/* ---- Download ---- */
.dl-in { display: grid; gap: 28px; }
.dl-copy img { margin-bottom: 16px; }
.dl h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 750; font-stretch: 112%; letter-spacing: -0.025em; }
.dl-copy p { max-width: 46ch; margin-top: 10px; color: var(--muted); }
.dl-copy .dl-meta { color: var(--faint); font-size: 13.5px; }
.dl-meta .link { white-space: nowrap; }
.dl-files { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--line); }
.dl-files li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 18px; background: var(--pane); }
.dl-what { flex: 1 1 260px; min-width: 0; }
.dl-name { font-weight: 600; }
.dl-os { margin-right: 10px; color: var(--faint); font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.dl-what p:not(.dl-name) { margin-top: 2px; color: var(--muted); font-size: 14.5px; }
.dl-files .btn { flex: none; }
@media (max-width: 520px) { .dl-files .btn { width: 100%; } }
.dl-side { display: grid; gap: 24px; min-width: 0; }
.dl-cmds h3 { margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.dl-cmds ul { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--line); }
.dl-cmds li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name copy' 'code code'; align-items: center; gap: 8px 12px; padding: 12px 18px; background: var(--pane); }
.dl-cmds .dl-name { grid-area: name; font-size: 14px; }
.dl-cmds code { grid-area: code; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--pane-2); font: 13px/20px var(--mono); overflow-wrap: anywhere; }
.dl-cmds .btn { grid-area: copy; width: 92px; }
.dl-cmds .dl-meta { margin-top: 10px; color: var(--faint); font-size: 13.5px; }
@media (min-width: 1000px) { .dl-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; gap: 48px; } }

/* ---- Features page ---- */
.page-head h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; font-stretch: 116%; line-height: 1; letter-spacing: -0.03em; }
.page-head > p { max-width: 58ch; margin-top: 14px; color: var(--muted); font-size: 17px; }
.filter { display: flex; align-items: center; gap: 9px; max-width: 420px; height: 40px; margin-top: 24px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--pane-2); }
.filter:focus-within { border-color: var(--accent); }
.filter .ph { color: var(--faint); }
.filter input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: 15px var(--sans); }
.filter input::placeholder { color: var(--faint); }
.filter-status { min-height: 1.5em; margin-top: 8px; color: var(--faint); font-size: 13.5px; }
.empty { margin-top: 24px; padding: 18px; border: 1px dashed var(--line-2); border-radius: 4px; color: var(--muted); }

.fx-side .pane-body { padding: 10px 8px; }
.gnav { display: grid; gap: 1px; }
.gnav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: var(--muted); font-size: 14px; }
.gnav a:hover { background: var(--sunk); color: var(--text); }
.gnav a.on { background: var(--sunk); color: var(--text); box-shadow: inset 2px 0 var(--accent); }
.gnav-name { min-width: 0; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.gnav a.zero { opacity: 0.45; }
.fx-main .pane-body { padding-bottom: 56px; }
.group { padding-top: 56px; }
.group[hidden] { display: none; }
/* A highlight: its recording beside the copy, alternating sides on wide screens. */
.hl { display: grid; gap: 22px; padding-top: 48px; margin-top: 48px; border-top: 1px solid var(--line); }
.page-head + .hl { margin-top: 32px; }
.hl-topic { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13.5px; letter-spacing: 0.01em; }
.hl-copy h2 { margin-top: 10px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 750; font-stretch: 110%; line-height: 1.15; letter-spacing: -0.022em; }
.hl-copy .keys { margin-top: 14px; }
.hl-copy > p:not(.hl-topic):not(.keys) { max-width: 54ch; margin-top: 14px; color: var(--muted); }
.hl-also { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hl-also a { display: inline-block; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--muted); font-size: 13.5px; }
.hl-also a:hover { border-color: var(--muted); color: var(--text); }
.hl-copy .link { display: inline-block; margin-top: 18px; font-size: 14.5px; }
@media (min-width: 1200px) {
  .hl { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .hl-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
  .hl-flip .hl-copy { order: -1; }
}

/* And also: every other feature by name, in columns per topic. */
.more { margin-top: 56px; border-top: 1px solid var(--line); }
.more-head h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 750; font-stretch: 112%; letter-spacing: -0.025em; line-height: 1.1; }
.more-head > p { max-width: 58ch; margin-top: 10px; color: var(--muted); }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 30px 36px; margin-top: 26px; }
.more-cat[hidden], .more-cat li[hidden] { display: none; }
.more-cat h3 { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 650; }
.more-cat ul { display: grid; gap: 2px; }
.more-cat a { display: block; padding: 4px 0; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.more-cat a:hover { color: var(--text); }

@media (min-width: 1000px) {
  .fx > .fx-side { grid-column: span 3; }
  .fx > .fx-main { grid-column: span 9; }
  .fx-side .pane-body { position: sticky; top: var(--bar); flex: none; }
}
@media (max-width: 999px) {
  .fx-side { position: fixed; top: calc(var(--bar) + 44px + var(--edge)); left: var(--edge); right: var(--edge); z-index: 24; display: none; max-height: calc(100vh - var(--bar) - 44px - var(--edge)); overflow-y: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .fx-side.open { display: flex; }
  .fx-side .pane-head, .fx-main .pane-head { display: none; }
  .gnav a { padding: 11px 12px; font-size: 15px; }
}

/* ---- Docs page ---- */
.page-bar { display: none; }
.dx-toc .pane-body { padding: 14px 10px; }
.dx-toc .filter { margin: 0 4px 10px; height: 36px; max-width: none; }
.toc-empty { padding: 4px 10px; color: var(--faint); font-size: 13.5px; }
.toc-group[hidden], .toc li[hidden] { display: none; }
.toc-head { padding: 14px 10px 4px; color: var(--faint); font-size: 12.5px; font-weight: 600; }
.toc a { display: block; padding: 4px 10px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.toc a:hover { color: var(--text); }
.toc a.on { background: var(--sunk); color: var(--text); box-shadow: inset 2px 0 var(--accent); }
.dx-onpage .pane-body { padding: 14px 12px; }
.dx-onpage a { display: block; padding: 4px 8px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.dx-onpage a:hover { color: var(--text); }
.dx-main .pane-body { padding-bottom: 72px; }

.prose { max-width: 70ch; font-size: 16.5px; line-height: 1.7; }
.prose .page-head { padding-bottom: 8px; }
.prose .page-head a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .doc-group { margin: 72px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); color: var(--faint); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.prose .doc { padding-top: 28px; }
.prose .doc > h2 { font-size: clamp(26px, 2.4vw, 32px); font-weight: 750; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1.15; }
.prose h3 { margin: 34px 0 8px; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.prose p, .prose ul, .prose ol, .prose table, .prose pre, .prose figure { margin: 14px 0 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--faint); }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-skip-ink: none; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { font-weight: 650; color: var(--text); }
.prose pre { padding: 14px 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--frag); }
.prose pre code { padding: 0; background: none; font-size: 13px; line-height: 1.6; }
.prose .note { padding: 12px 16px; border-left: 2px solid var(--accent); background: var(--accent-soft); color: var(--text); font-size: 15px; }
/* Tables share the column's width and wrap; a column of key combinations stays on one line and takes only what it
   needs. On phones each row stacks: the command or action, then what it does. */
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.prose th { color: var(--faint); font-weight: 600; font-size: 13px; }
.prose td code { overflow-wrap: anywhere; }
.prose code .nw { white-space: nowrap; }
.prose td:last-child:has(kbd) { width: 1%; white-space: nowrap; }
@media (max-width: 640px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: auto; }
  .prose thead { display: none; }
  .prose tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .prose td { padding: 2px 0; border-bottom: 0; }
  .prose td:last-child:has(kbd) { width: auto; white-space: normal; }
  .prose td:first-child { color: var(--text); font-weight: 600; }
}
.prose figure.gif { margin-top: 20px; }

@media (min-width: 1000px) {
  .dx > .dx-toc { grid-column: span 3; }
  .dx > .dx-main { grid-column: span 9; }
  .dx-toc .pane-body { position: sticky; top: var(--bar); flex: none; max-height: calc(100vh - var(--bar) - var(--edge)); overflow-y: auto; scrollbar-width: thin; }
  .dx-onpage { display: none; }
}
@media (min-width: 1360px) {
  .dx > .dx-toc { grid-column: span 3; }
  .dx > .dx-main { grid-column: span 7; }
  .dx > .dx-onpage { display: flex; grid-column: span 2; }
  .dx-onpage .pane-body { position: sticky; top: var(--bar); flex: none; }
}
@media (max-width: 999px) {
  .dx-onpage { display: none; }
  .page-bar { position: sticky; top: var(--bar); z-index: 25; display: block; border-bottom: 1px solid var(--line); background: var(--pane-2); }
  .toc-toggle { display: flex; align-items: center; gap: 9px; width: 100%; height: 44px; padding: 0 var(--pad); color: var(--muted); font-size: 14px; }
  .toc-toggle > span:first-of-type { color: var(--text); font-weight: 600; }
  .toc-current { min-width: 0; overflow: hidden; text-overflow: clip; white-space: nowrap; }
  .toc-toggle > .ph:last-child { margin-left: auto; transition: transform 0.2s; }
  .toc-toggle[aria-expanded="true"] > .ph:last-child { transform: rotate(180deg); }
  .dx-toc { position: fixed; top: calc(var(--bar) + 44px + var(--edge)); left: var(--edge); right: var(--edge); bottom: 0; z-index: 24; display: none; overflow-y: auto; border-top: 1px solid var(--line); }
  .dx-toc.open { display: flex; }
  .dx-toc .pane-head { display: none; }
  .dx-main .pane-head { display: none; }
}

/* ---- Full-size viewer ---- */
.viewer { width: min(1280px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 1px solid var(--line-2); border-radius: 6px; background: #000; }
.viewer::backdrop { background: rgba(0, 0, 0, 0.78); }
.viewer-body img { width: 100%; height: auto; }
.viewer-close { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: rgba(0, 0, 0, 0.7); color: #fff; }
.viewer-close .ph { font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

[data-dot="8b7bff"] { --dot: #8b7bff; }
[data-dot="4f9cf9"] { --dot: #4f9cf9; }
[data-dot="e8875b"] { --dot: #e8875b; }
[data-dot="e0b04a"] { --dot: #e0b04a; }
[data-dot="3fb8a6"] { --dot: #3fb8a6; }
[data-dot="e5484d"] { --dot: #e5484d; }
[data-dot="5fcf73"] { --dot: #5fcf73; }
[data-dot="c678dd"] { --dot: #c678dd; }
[data-dot="5fb3d4"] { --dot: #5fb3d4; }
[data-dot="9a9aa2"] { --dot: #9a9aa2; }
