/* endlesscues.com
 *
 * The tokens below are the app's LAB theme (app/renderer/styles.css :root), copied verbatim:
 * the workshop table. Ink #0d0907, bone #efe4d2, copper #d39a6a. The copper tabletop is the
 * wash under every surface; the pewter one is the grain in the chrome ("slabs").
 * The same rule holds here: colour carries meaning, and only these four do.
 *   --go       running, GO
 *   --standby  standing by, loaded, paused, unsaved
 *   --danger   panic, broken, delete, clipping
 *   --accent   selected, focused, and the one call to action (copper)
 * Everything else is a warm grey from the surface ramp.
 *
 * No inline styles anywhere on the site: the CSP (_headers) is style-src 'self'.
 */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/Jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/Jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-stretch: 100%; font-display: swap; src: url('fonts/BricolageGrotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-stretch: 100%; font-display: swap; src: url('fonts/BricolageGrotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg-0: #0d0907;   /* the window (ink) */
  --bg-1: #15100c;   /* panels */
  --bg-2: #1e1712;   /* raised: headers, hovered rows */
  --bg-3: #281f18;   /* inputs, buttons */
  --bg-4: #3a2d22;   /* pressed, borders of controls */
  --line: #33271d;   /* hairlines: the table's scored lines */
  --line-soft: #231a13;
  --text-0: #efe4d2; /* bone */
  --text-1: #c2b099;
  --text-2: #8a7862;
  --text-3: #5f5140;

  --go: #a3c98f;       /* green, warmed to sit on bronze */
  --standby: #ecd25e;  /* yellow, clear of the copper */
  --danger: #e4604b;
  --accent: #d39a6a;   /* copper */
  --on-accent: #1c1008;
  --on-go: #0c1a08;

  --wash: 0.55;
  --wash-image: url('images/table-copper.webp');
  --wash-position: 50% 40%;
  --wash-filter: saturate(1.05) brightness(0.55) contrast(1.15);
  --slab-image: url('images/table-pewter.webp');
  --slab-mix: 88%;
  --sheet-mix: 84%;    /* how solid the cue list is over the wash */

  --go-wash: color-mix(in srgb, var(--go) 16%, var(--bg-1));
  --standby-wash: color-mix(in srgb, var(--standby) 11%, var(--bg-1));
  --danger-wash: color-mix(in srgb, var(--danger) 16%, var(--bg-1));
  --accent-wash: color-mix(in srgb, var(--accent) 17%, var(--bg-1));

  /* a cue's label colours (picked to stay apart for colour-blind eyes) */
  --c-red: #e5484d; --c-orange: #f08a3c; --c-yellow: #e6c229; --c-green: #46b56c; --c-teal: #2bb3a8;
  --c-blue: #4a8fe8; --c-purple: #9a6be0; --c-pink: #e069a8; --c-grey: #7b828c;

  --font: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --display: 'Bricolage Grotesque', var(--font);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --row: 30px;
  --radius: 7px;
  --radius-s: 5px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* the site's own (not the app's): the slab recipe as one value, and a more solid
     sheet for sections of long reading */
  --slab: linear-gradient(color-mix(in srgb, var(--bg-1) var(--slab-mix), transparent), color-mix(in srgb, var(--bg-1) var(--slab-mix), transparent)), var(--slab-image) center / 900px auto;
  --read-mix: 80%;

  /* the site's own measures (not colours) */
  --page: 1180px;
  --gutter: 28px;
}

/* ── the page ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg-0); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg-0); color: var(--text-1); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--text-0); text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--text-1); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
code, kbd, .mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
code { font-size: .875em; color: var(--text-0); }
strong, b { color: var(--text-0); font-weight: 600; }
.wrap { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--bg-3); color: var(--text-0); padding: 8px 12px; border-radius: var(--radius-s); z-index: 10; }
.skip:focus { top: 12px; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--slab); }
.site-head .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-0); font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; text-decoration: none; margin-right: auto; }
.brand img { width: 30px; height: 30px; flex: none; display: block; }
.brand .tag { font: 11px var(--mono); color: var(--text-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-weight: 400; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15.5px; }
.site-nav a { color: var(--text-1); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text-0); }

/* the calls to action. The main one is copper, the brand's emphasis; never green: green means GO. */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--bg-4); background: var(--bg-3); color: var(--text-0); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.cta:hover { background: var(--bg-4); }
.cta.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cta.primary:hover { background: var(--accent); filter: brightness(1.1); }
.cta.quiet { background: color-mix(in srgb, var(--bg-1) 70%, transparent); }
.cta.quiet:hover { background: var(--bg-2); }
.cta.small { height: 32px; padding: 0 12px; font-size: 14.5px; border-radius: var(--radius-s); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* small uppercase labels, as on the app's masthead */
.label { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 9px; font-weight: 500; }
.label .n { font-family: var(--mono); color: var(--text-3); letter-spacing: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; display: inline-block; }
.dot.go { background: var(--go); } .dot.standby { background: var(--standby); } .dot.danger { background: var(--danger); }
.label.standing { color: var(--standby); }
.kbd { font: 12px var(--mono); color: var(--text-1); border: 1px solid var(--bg-4); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--bg-2); white-space: nowrap; }

/* hero */
.hero { padding: 76px 0 0; }
.hero-copy { max-width: 800px; }
.hero h1 { color: var(--text-0); font-family: var(--display); font-size: clamp(36px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; margin: 18px 0 20px; text-wrap: balance; }
.hero .sub { color: var(--text-0); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; max-width: 62ch; color: var(--text-1); }
.hero .cta-row { margin-top: 30px; }
.hero .fine { margin-top: 14px; font-size: 14px; color: var(--text-1); }
.shot { margin: 56px 0 0; }
.shot figcaption { font-size: 13.5px; color: var(--text-1); padding: 12px 2px 0; display: flex; gap: 18px; flex-wrap: wrap; }
.shot figcaption .key { display: inline-flex; align-items: center; gap: 7px; }
.shot figcaption .cap-note { margin-left: auto; }

/* sections */
.sec { padding: 104px 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-0) var(--read-mix), transparent); }
.hero + .sec { margin-top: 96px; }
.sec-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.sec-grid.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.sec h2 { color: var(--text-0); font-family: var(--display); font-size: clamp(29px, 3.3vw, 40px); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; margin: 14px 0 16px; text-wrap: balance; }
.sec .lede { font-size: 18.5px; line-height: 1.6; max-width: 46ch; }
.sec .lede + .lede, .sec .lede + .aside { margin-top: 14px; }
.sec .aside { font-size: 15.5px; color: var(--text-2); max-width: 46ch; line-height: 1.6; }
.sec .aside b { color: var(--text-1); }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head .lede { max-width: 60ch; }

/* a list of facts: a name, then what it does. 1px lines, nothing else. */
.rows { border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows dt { color: var(--text-0); font-weight: 600; font-size: 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rows dd { font-size: 16px; line-height: 1.55; }
.rows dd .kbd { margin: 0 1px; }

/* cue types: the glyphs the app uses */
.types { margin-top: 36px; }
.types h3 { margin-bottom: 12px; }
.types ul { display: flex; flex-wrap: wrap; gap: 6px; }
.types li { height: 28px; padding: 0 10px 0 8px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--slab); color: var(--text-1); font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.types li i { font-style: normal; color: var(--text-2); width: 16px; text-align: center; font-size: 13px; }

/* the show file */
.code { background: var(--slab); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.code .bar { height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--text-2); }
.code .bar b { color: var(--text-1); font-weight: 500; }
.code .bar span:last-child { margin-left: auto; }
.code pre { padding: 14px 16px 16px; overflow-x: auto; font: 12.5px/1.62 var(--mono); color: var(--text-1); tab-size: 2; }
.code pre .k { color: var(--text-0); }
.code pre .c { color: var(--text-3); }
.tree { font: 13px/1.9 var(--mono); color: var(--text-1); background: var(--slab); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.tree div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; }
.tree .d1 b, .tree .d1 > span:first-child { padding-left: 18px; }
.tree b { font-weight: 500; color: var(--text-0); }
.tree span + span, .tree b + span { color: var(--text-2); font-family: var(--font); font-size: 14.5px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack h3 { margin-bottom: -6px; }

/* modules */
.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mod { border: 1px solid var(--line); border-radius: var(--radius); background: var(--slab); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.mod h3 { color: var(--text-0); font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.mod p { font-size: 16px; line-height: 1.55; }
.mod .urls { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); font: 12px/1.7 var(--mono); color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod .urls span { color: var(--text-3); }
.road { margin-top: 44px; border: 1px dashed var(--bg-4); border-radius: var(--radius); padding: 20px 22px 22px; }
.road p { font-size: 16px; margin: 8px 0 16px; max-width: 70ch; }
.road ul { display: flex; flex-wrap: wrap; gap: 6px; }
.road li { font-size: 14.5px; color: var(--text-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 3px 10px; }

/* three plain facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 22px 28px 4px 0; }
.facts > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.facts h3 { color: var(--text-0); font-family: var(--display); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.facts p { font-size: 16px; line-height: 1.55; }
.facts .os { font: 12px var(--mono); color: var(--text-2); margin-top: 10px; }

.origin p { font-size: 20px; line-height: 1.6; max-width: 58ch; color: var(--text-1); }
.origin p + p { margin-top: 14px; }

.final { text-align: left; }
.final h2 { font-size: clamp(32px, 4.4vw, 52px); max-width: 18ch; }
.final .cta-row { margin-top: 28px; }
.final .fine { margin-top: 14px; font-size: 14px; color: var(--text-2); }

.site-foot { border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 14.5px; color: var(--text-2); background: var(--slab); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; }
.site-foot nav { display: flex; gap: 20px; margin-left: auto; }
.site-foot a { color: var(--text-1); text-decoration: none; }
.site-foot a:hover { color: var(--text-0); }
.site-foot .tm { flex-basis: 100%; color: var(--text-2); font-size: 13px; max-width: 90ch; }

/* ── docs ─────────────────────────────────────────────────────────────── */
.doc { display: grid; grid-template-columns: 200px minmax(0, 720px); gap: 64px; padding-top: 64px; padding-bottom: 96px; }
.doc aside { position: sticky; top: 24px; align-self: start; font-size: 15px; }
.doc aside ol { margin-top: 12px; border-left: 1px solid var(--line); }
.doc aside a { display: block; padding: 5px 14px; color: var(--text-1); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.doc aside a:hover { color: var(--text-0); border-left-color: var(--text-2); }
.doc h1 { color: var(--text-0); font-family: var(--display); font-size: 44px; line-height: 1.06; letter-spacing: -.03em; font-weight: 700; margin: 14px 0 14px; }
.doc .lede { font-size: 19px; max-width: 60ch; }
.doc h2 { color: var(--text-0); font-family: var(--display); font-size: 26px; letter-spacing: -.02em; font-weight: 700; margin: 60px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h3 { color: var(--text-0); font-family: var(--display); font-size: 18px; font-weight: 600; margin: 26px 0 6px; }
.doc p { margin: 0 0 12px; font-size: 17px; }
.doc article ul { margin: 0 0 14px; }
.doc article li { font-size: 17px; padding-left: 18px; position: relative; margin-bottom: 6px; }
.doc article li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 5px; height: 1px; background: var(--text-2); }
.callout { border: 1px solid color-mix(in srgb, var(--standby) 35%, var(--line)); background: var(--standby-wash); border-radius: var(--radius); padding: 11px 14px; font-size: 15.5px; color: var(--text-0); margin: 18px 0; }
.callout .label { color: var(--standby); margin-bottom: 3px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; margin: 8px 0 14px; }
.tbl th { text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); font-weight: 500; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-soft); vertical-align: baseline; }
.tbl td:first-child { white-space: nowrap; width: 1%; padding-right: 28px; color: var(--text-0); }
.tbl td code { font-size: 13px; }
.tbl-scroll { overflow-x: auto; }

/* 404 */
.lost { min-height: 62vh; display: grid; align-content: center; padding-top: 80px; padding-bottom: 80px; }
.lost h1 { color: var(--text-0); font-family: var(--display); font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; line-height: 1.06; margin: 16px 0 12px; font-weight: 700; }
.lost p { max-width: 50ch; margin-bottom: 26px; }

/* ══ the mock of the app window ════════════════════════════════════════
 * Drawn with the app's own class names and rules (app/renderer/styles.css),
 * scoped under .win so they cannot leak into the page. It is a picture:
 * nothing in it is a control, so nothing has a hover or a pointer.
 */
.win { position: relative; isolation: isolate; font: 13.5px/1.35 var(--font); color: var(--text-0); background: var(--bg-0); border: 1px solid var(--bg-4); border-radius: 11px; box-shadow: var(--shadow); overflow: hidden; user-select: none; cursor: default; text-align: left; }
.win .num, .win .mono { font-size: 12px; }
.win .dim { color: var(--text-2); }
.win .grow { flex: 1; min-width: 0; }
.win .btn { height: 26px; padding: 0 10px; border-radius: var(--radius-s); border: 1px solid var(--bg-4); background: var(--bg-3); color: var(--text-0); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.win .btn.ghost { background: transparent; border-color: transparent; color: var(--text-1); }
.win .btn.go { background: var(--go); border-color: var(--go); color: var(--on-go); font-weight: 600; }
.win .btn.danger { color: var(--danger); }
.win .btn.small { height: 22px; padding: 0 7px; font-size: 12px; }
.win .btn.icon { width: 26px; padding: 0; justify-content: center; }
.win .btn.on { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 50%, var(--bg-4)); }
.win .chip { height: 22px; padding: 0 8px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-1); display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; white-space: nowrap; }
.win .chip.warn { color: var(--standby); border-color: color-mix(in srgb, var(--standby) 35%, var(--line)); }
.win .seg { display: inline-flex; background: var(--bg-3); border-radius: var(--radius-s); padding: 2px; gap: 2px; }
.win .seg span { color: var(--text-1); height: 22px; padding: 0 10px; border-radius: 4px; font-size: 12px; display: inline-flex; align-items: center; }
.win .seg span.on.show { background: var(--standby-wash); color: var(--standby); box-shadow: 0 0 0 1px color-mix(in srgb, var(--standby) 40%, var(--bg-4)); }

.win .titlebar { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--line); }
.win .lights { display: flex; gap: 8px; margin-right: 10px; }
.win .lights i { width: 12px; height: 12px; border-radius: 50%; background: var(--bg-4); }
.win .titlebar .title { font-family: var(--display); font-size: 14px; font-weight: 600; white-space: nowrap; }
.win .btn.ghost.small { font-size: 14px; }
.win .titlebar .btn.small { font-size: 12px; }
.win .modebar { margin-left: 6px; }

.win .masthead { display: grid; grid-template-columns: 148px 1fr auto; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: stretch; }
.win .go-btn { font-family: var(--display); border: 2px solid var(--go); background: var(--go-wash); color: var(--go); border-radius: 12px; font-size: 34px; font-weight: 750; letter-spacing: .06em; height: 84px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.win .go-btn .sub { font-family: var(--font); display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; color: var(--text-2); margin-top: -2px; }
.win .standby { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 2px; }
.win .standby .label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); display: flex; gap: 10px; align-items: center; }
.win .standby .cue { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.win .standby .cue .n { font: 600 26px var(--mono); color: var(--standby); letter-spacing: -.02em; flex: none; }
.win .standby .cue .name { font-family: var(--display); font-size: 25px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em; }
.win .standby .notes { color: var(--text-1); font-size: 13px; max-height: 2.8em; overflow: hidden; }
.win .transport { display: grid; grid-template-columns: repeat(2, auto); gap: 6px; align-content: center; }
.win .transport .btn { height: 28px; justify-content: center; min-width: 84px; }
.win .transport .clock { grid-column: 1 / -1; text-align: right; color: var(--text-1); font: 500 18px var(--mono); letter-spacing: -.02em; padding-right: 2px; }
.win .transport .clock small { font: 10.5px var(--font); color: var(--text-2); letter-spacing: .1em; text-transform: uppercase; margin-right: 8px; }

.win .work { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.win .centre { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.win .list { background: color-mix(in srgb, var(--bg-0) var(--sheet-mix), transparent); }
.win .list table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.win .list thead th { color: var(--text-2); font-weight: 500; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; text-align: left; height: 24px; padding: 0 8px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.win .list th.r, .win .list td.r { text-align: right; }
.win .list tbody tr { height: var(--row); border-bottom: 1px solid var(--line-soft); position: relative; }
.win .list td { padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win .list tr.head td:first-child { box-shadow: inset 3px 0 var(--standby); }
.win .list tr.head { background: var(--standby-wash); }
.win .list tr.child td { color: var(--text-1); }
.win .list tr.done td { color: var(--text-1); }
.win .c-status { width: 34px; }
.win .c-type { width: 26px; color: var(--text-2); text-align: center; font-size: 13px; padding: 0 !important; }
.win td.c-type { color: var(--text-2) !important; }
.win .c-num { width: 62px; font: 600 12.5px var(--mono); }
.win .c-target { width: 150px; color: var(--text-2) !important; }
.win .c-time { width: 74px; }
.win .c-cont { width: 34px; text-align: center; color: var(--text-2); position: static; }
.win .c-name .indent { display: inline-block; width: 18px; }
.win .c-name .caret { display: inline-block; width: 16px; color: var(--text-2); font-size: 9px; text-align: center; }
.win .c-name .tag { margin-left: 8px; font-size: 10.5px; color: var(--text-2); border: 1px solid var(--line); padding: 0 5px; border-radius: 3px; }
.win .swatch { position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 0 2px 2px 0; }
.win .swatch.blue { background: var(--c-blue); } .win .swatch.green { background: var(--c-green); } .win .swatch.orange { background: var(--c-orange); }
.win .swatch.grey { background: var(--c-grey); } .win .swatch.red { background: var(--c-red); }
.win .st { display: inline-flex; width: 100%; justify-content: center; align-items: center; gap: 2px; }
.win .st .play { color: var(--go); font-size: 10px; }
.win .st .ph { color: var(--standby); font-size: 11px; }
.win .live-t { color: var(--go); }
.win .progress { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--go); pointer-events: none; width: 36%; }

.win .playing { border-top: 1px solid var(--line); padding: 8px 12px 10px; }
.win .playing .head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.win .playing .head .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win .playing .head .t { font: 500 13px var(--mono); color: var(--text-1); white-space: nowrap; }
.win .wave { position: relative; height: 84px; background: color-mix(in srgb, var(--bg-0) 85%, transparent); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.win .wave svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.win .wave .mid { stroke: var(--line); }
.win .wave .pk { stroke: var(--bg-4); } .win .wave .rm { stroke: var(--text-2); }
.win .wave .played .pk { stroke: var(--go); opacity: .35; } .win .wave .played .rm { stroke: var(--go); opacity: .95; }
.win .wave .cursor { position: absolute; top: 0; bottom: 0; left: 36%; width: 1px; background: var(--text-0); box-shadow: 0 0 6px rgba(255,255,255,.5); }
.win .wave .marker { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--text-3); }
.win .wave .marker span { position: absolute; top: 2px; left: 4px; font-size: 10px; color: var(--text-2); white-space: nowrap; }
.win .lane { position: relative; height: 18px; margin-bottom: 4px; }
.win .lane .loop { position: absolute; top: 0; height: 18px; width: calc(25% - 2px); border-radius: 4px; border: 1px solid var(--bg-4); background: var(--bg-2); color: var(--text-2); font-size: 10.5px; padding: 0 6px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.win .lane .loop.holding { background: var(--standby); border-color: var(--standby); color: #1c1503; font-weight: 600; }
.win .at-0 { left: 0; } .win .at-25 { left: 25%; } .win .at-50 { left: 50%; } .win .at-75 { left: 75%; }

.win .side { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.win .tabs { height: 30px; flex: none; display: flex; align-items: stretch; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.win .tabs span { color: var(--text-0); padding: 0 10px; font-size: 12px; position: relative; display: flex; align-items: center; }
.win .tabs span::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 1px; }
.win .side-body { display: flex; flex-direction: column; flex: 1; }
.win .section { padding: 10px 12px; border-top: 1px solid var(--line); }
.win .section h4 { margin: 0 0 8px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.win .act { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); }
.win .act .top { display: flex; gap: 8px; align-items: baseline; }
.win .act .top .n { font: 600 11.5px var(--mono); color: var(--text-1); flex: none; }
.win .act .top .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win .act .top .t { font: 12px var(--mono); color: var(--text-1); flex: none; }
.win .act .bar { height: 4px; border-radius: 2px; background: var(--bg-3); margin-top: 6px; overflow: hidden; }
.win .act .bar i { display: block; height: 100%; width: 36%; background: var(--go); border-radius: 2px; }
.win .act .ctl { display: flex; gap: 4px; margin-top: 6px; align-items: center; }
.win .act .ctl .lvl { margin-left: auto; color: var(--text-2); font: 11.5px var(--mono); }
.win .side .fill { flex: 1; }
.win .sent { font: 11px var(--mono); color: var(--text-2); padding: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win .strip { display: grid; grid-template-columns: 74px 1fr 48px; gap: 8px; align-items: center; height: 30px; }
.win .strip .nm { color: var(--text-1); font-size: 12px; }
.win .strip .val { text-align: right; font: 11.5px var(--mono); color: var(--text-1); }
.win .strip.master .nm { color: var(--text-0); font-weight: 600; }
.win .fader { position: relative; height: 22px; }
.win .fader .meter { position: absolute; left: 0; right: 0; top: 8px; height: 6px; border-radius: 3px; background: var(--bg-0); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.win .fader .meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--go) 0 78%, var(--standby) 78% 94%, var(--danger) 94%); background-size: 146px 100%; }
.win .fader .meter.two { height: 3px; } .win .fader .meter.two.b { top: 12px; }
.win .fader .m-music i { width: 52%; } .win .fader .m-l i { width: 50%; } .win .fader .m-r i { width: 47%; }
.win .fader .zero { position: absolute; top: 4px; bottom: 4px; left: 66.9%; width: 1px; background: var(--text-3); }
.win .fader .thumb { position: absolute; top: 1px; left: calc(66.9% - 5px); width: 10px; height: 20px; border-radius: 3px; background: var(--text-0); box-shadow: 0 1px 4px rgba(0,0,0,.6), inset 0 0 0 1px rgba(0,0,0,.2); }
.win .limit { font-size: 10px; letter-spacing: .08em; color: var(--text-3); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }
.win .footer { height: 26px; display: flex; align-items: center; gap: 14px; padding: 0 12px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.win .footer .mode { color: var(--standby); }

/* the assistant drawer, on its own */
.win.drawer { max-width: 440px; width: 100%; margin-left: auto; }
.win .drawer-head { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.win .drawer-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.win .msg { max-width: 92%; padding: 8px 11px; border-radius: 12px; line-height: 1.45; font-size: 13px; }
.win .msg.user { align-self: flex-end; background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-bottom-right-radius: 4px; }
.win .msg.assistant { align-self: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.win .review { border: 1px solid color-mix(in srgb, var(--standby) 40%, var(--line)); background: var(--standby-wash); border-radius: var(--radius); overflow: hidden; }
.win .review .rh { padding: 9px 12px; display: flex; flex-direction: column; gap: 3px; }
.win .review .rh .k { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--standby); }
.win .review .rh .s { font-weight: 600; }
.win .review .rb { background: var(--bg-1); border-top: 1px solid var(--line); }
.win .review .rf { padding: 8px 12px; display: flex; gap: 8px; justify-content: flex-end; align-items: center; border-top: 1px solid var(--line); background: var(--bg-1); }
.win .review .rf .dim { font-size: 11.5px; }
.win .change { padding: 6px 12px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; display: grid; grid-template-columns: 16px 1fr; gap: 6px; }
.win .change:last-child { border-bottom: 0; }
.win .change .sign { font: 700 13px var(--mono); }
.win .change.added .sign { color: var(--go); } .win .change.removed .sign { color: var(--danger); } .win .change.changed .sign { color: var(--standby); }
.win .change .f { color: var(--text-1); font-size: 12px; margin-top: 2px; }
.win .change .f del { color: var(--text-2); text-decoration-color: color-mix(in srgb, var(--danger) 70%, transparent); }
.win .change .f ins { color: var(--text-0); text-decoration: none; }
.win .compose { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.win .compose .field { min-height: 44px; background: var(--bg-3); border-radius: var(--radius-s); padding: 6px 8px; color: var(--text-3); }
.win .compose .rowf { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.win .compose .btn { opacity: .35; background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }

/* versions, as the Versions drawer draws them */
.win.versions { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.win .version { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 9px 11px; display: flex; flex-direction: column; gap: 5px; }
.win .version.cur { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.win .version .vt { display: flex; gap: 8px; align-items: baseline; }
.win .version .vt .id { font: 600 11.5px var(--mono); color: var(--text-1); }
.win .version .vt .when { color: var(--text-2); font-size: 11.5px; margin-left: auto; }
.win .version .va { display: flex; gap: 6px; align-items: center; }
.win .version .va .dim { font-size: 11.5px; }
.win .badge { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 8px; background: var(--bg-3); color: var(--text-1); }
.win .diffbox { border: 1px solid var(--line); border-radius: 5px; background: var(--bg-1); margin-top: 3px; }
.win .diffbox .from { padding: 6px 12px; font-size: 11.5px; border-bottom: 1px solid var(--line); color: var(--text-2); }

/* ── narrower ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .sec-grid, .sec-grid.even { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sec .lede, .sec .aside { max-width: 62ch; }
  .win.drawer { margin-left: 0; }
  .win .work { grid-template-columns: minmax(0, 1fr) 248px; }
  .win .fader .meter i { background-size: 94px 100%; }
  .win .c-target { width: 118px; }
  .win th.c-time.pw, .win td.c-time.pw { display: none; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .sec { padding: 76px 0; }
  .hero + .sec { margin-top: 72px; }
  .mods, .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div, .facts > div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 44px; padding-bottom: 72px; }
  .doc aside { display: none; }
  .win .transport { display: none; }
  .win .masthead { grid-template-columns: 148px 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 48px; }
  .shot { margin-top: 40px; }
  .site-nav .hide-s { display: none; }
  .brand .tag { display: none; }
  .rows > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .tree div { grid-template-columns: 124px minmax(0, 1fr); }
  .tree { padding: 12px; font-size: 12.5px; }
  .shot figcaption .cap-note { margin-left: 0; flex-basis: 100%; }
  .origin p { font-size: 17px; }
  .doc h1 { font-size: 32px; }
  /* the window, simplified: the list, GO, and what is playing */
  .win .work { grid-template-columns: minmax(0, 1fr); }
  .win .side, .win .c-target, .win .c-time.pw, .win .c-cont, .win .hide-s, .win .lights { display: none; }
  .win .titlebar { padding-left: 12px; }
  .win .masthead { grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 12px; }
  .win .go-btn { height: 68px; font-size: 26px; border-radius: 10px; }
  .win .standby .cue { gap: 8px; }
  .win .standby .cue .n { font-size: 19px; }
  .win .standby .cue .name { font-size: 17px; }
  .win .standby .notes { font-size: 12px; }
  .win .c-status { width: 26px; }
  .win .c-num { width: 46px; }
  .win .c-time { width: 68px; }
  .win .c-name .tag.opt { display: none; }
  .win .wave { height: 64px; }
  .win .review .rf { flex-wrap: wrap; }
  .win .review .rf .dim { flex-basis: 100%; }
}
@media (max-width: 420px) {
  .cta-row .cta { flex: 1 1 100%; }
  .site-head .wrap { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print {
  .win { box-shadow: none; }
}

/* late additions */
.rows.gap { margin-top: 36px; }
.aside.qlab { margin-top: 44px; max-width: 76ch; font-size: 15px; padding-left: 16px; border-left: 1px solid var(--bg-4); }
.win .centre { grid-template-columns: minmax(0, 1fr); }
.win .playing .head .name { min-width: 0; flex: 0 1 auto; }
@media (max-width: 720px) {
  .win .c-status { width: 24px; }
  .win .c-type { width: 22px; }
  .win .c-num { width: 58px; }
  .win .list thead th { letter-spacing: .04em; }
  .win .list td, .win .list thead th { padding: 0 6px; }
}
.origin p.label { font-size: 11.5px; line-height: 1.6; color: var(--text-2); }
.aside.qlab { color: var(--text-1); }
.doc p.label { font-size: 11.5px; margin: 0; }
.doc .callout p.label { margin-bottom: 3px; }

/* ── the wash and the slabs, as in the app ────────────────────────────────
 * One image under everything (fixed, with the vignette). The header, footer and cards are
 * slabs (--slab). Sections of reading sit on a sheet (.sec, --read-mix), more solid than the
 * app's cue list because paragraphs are longer than cue names. */
.wash { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--wash-image) var(--wash-position) / cover no-repeat; opacity: var(--wash); filter: var(--wash-filter); }
.wash::after { content: ''; position: absolute; inset: 0; background: radial-gradient(115% 115% at 50% 38%, transparent 38%, var(--bg-0) 96%); }
body > *:not(.wash) { position: relative; z-index: 1; }
body > .skip { position: absolute; z-index: 10; }
.doc article { background: color-mix(in srgb, var(--bg-0) 88%, transparent); border: 1px solid var(--line); border-radius: 11px; padding: 36px 40px 28px; }
.doc aside { background: var(--slab); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.road { background: color-mix(in srgb, var(--bg-1) 55%, transparent); }

/* the mock window has the wash inside it too: the app draws it under its own surfaces */
.win::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--wash-image) var(--wash-position) / cover no-repeat; opacity: var(--wash); filter: var(--wash-filter); }
.win .titlebar, .win .masthead, .win .side, .win .playing, .win .footer, .win .list thead th, .win.drawer > div, .win.versions { background: var(--slab); }
.win.versions::before { display: none; }

/* a real screenshot */
.real { margin-top: 64px; }
.real img { display: block; width: 100%; height: auto; border: 1px solid var(--bg-4); border-radius: 11px; box-shadow: var(--shadow); background: var(--bg-1); }
.real figcaption { font-size: 13.5px; color: var(--text-1); padding: 12px 2px 0; }
@media (max-width: 720px) {
  .doc article { padding: 22px 18px 14px; }
  .real { margin-top: 44px; }
}
/* cards that hold a lot of small text are a little more solid than the app's chrome */
.code, .mod, .tree { background: linear-gradient(color-mix(in srgb, var(--bg-1) 94%, transparent), color-mix(in srgb, var(--bg-1) 94%, transparent)), var(--slab-image) center / 900px auto; }
