/* Misdir — playbill on paper. Bone pages and ink type by day; the stage (player, bar) always dark; vermilion for every action, gold for every moment that is marked. A dark house is one switch away. */
:root {
  /* the page and its layers */
  --paper: #f3f1ec;
  --stage: var(--paper);
  --shell: #ebe7df;
  --surface: #fbfaf7;
  --raised: #f1ede4;
  --field: #ffffff;
  --white: #ffffff;
  --hover: rgba(28, 27, 26, 0.05);
  --ink: #1c1b1a;
  --ink-soft: #3d3934;
  --muted: #5e5850;
  --dim: #6c665e;
  --line: rgba(28, 27, 26, 0.13);
  --line-strong: rgba(28, 27, 26, 0.38);
  /* the top bar and the band follow the page */
  --shell-ink: var(--ink);
  --shell-muted: var(--muted);
  --shell-dim: var(--dim);
  --shell-line: var(--line);
  --shell-line-strong: var(--line-strong);
  --shell-raised: var(--raised);
  /* the stage never changes: where a film or a page plays, the house lights are down */
  --stage-bg: #121010;
  --proscenium: #181515;
  --stage-surface: #1e1b1a;
  --stage-raised: #2b2625;
  --stage-ink: #efe8da;
  --stage-muted: #b3aa9b;
  --stage-dim: #8a8275;
  --stage-line: rgba(239, 233, 220, 0.14);
  --stage-line-strong: rgba(239, 233, 220, 0.38);
  /* accents */
  --vermilion: #d9432a;
  --vermilion-deep: #b8371f;
  --gold: #c99a3a;
  --gold-ink: #7e601c;
  --gold-tint: rgba(201, 154, 58, 0.16);
  --on-gold: #121010;
  /* the red that carries white text (4.9:1); --vermilion stays for the mark, the play button and large type */
  --action: #cc3d24;
  --action-deep: #b3331c;
  --velvet: var(--gold);
  --velvet-deep: var(--gold-ink);
  --velvet-tint: var(--gold-tint);
  --danger: #be3b24;
  --radius: 2px;
  --radius-sm: 2px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.08);
  --pattern: url(/pattern-light.svg);
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --narrow: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* rhythm and motion: one scale for spacing, three durations, two curves */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  --t-1: 120ms; --t-2: 220ms; --t-3: 420ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-stage: cubic-bezier(0.7, 0, 0.2, 1);
  color-scheme: light;
}
/* the dark house: the same layers, lights down */
:root[data-theme="dark"] {
  --paper: #121010;
  --shell: #181515;
  --surface: #1e1b1a;
  --raised: #2b2625;
  --field: #0d0b0b;
  --white: #1e1b1a;
  --hover: rgba(239, 233, 220, 0.06);
  --ink: #efe8da;
  --ink-soft: #d8d0c1;
  --muted: #b3aa9b;
  --dim: #968e81;
  --line: rgba(239, 233, 220, 0.14);
  --line-strong: rgba(239, 233, 220, 0.38);
  --vermilion: #e34a2f;
  --vermilion-deep: #c43d25;
  --gold: #d9b15c;
  --gold-ink: #e2c070;
  --gold-tint: rgba(217, 177, 92, 0.16);
  --danger: #e86952;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 14px 36px rgba(0, 0, 0, 0.4);
  --pattern: url(/pattern-dark.svg);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--paper) var(--pattern) center top / 480px auto repeat; }
html, body { margin: 0; color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
a.link, button.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a.link:hover, button.link:hover { text-decoration-color: var(--gold-ink); color: var(--gold-ink); }
.page { max-width: 820px; margin: 0 auto; padding: 36px 20px 96px; }
body.wide .page { max-width: 1000px; }
main:focus { outline: none; }
h1 { font-family: var(--display); font-weight: 600; font-size: 2.3rem; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 8px; }
/* the band: the page title sits on the stage under the top bar; the paper begins under a gold rule.
   On a material page the band stays open and the proscenium (stage + bar) continues it to full width. */
.band { background: var(--shell); color: var(--shell-ink); border-bottom: 2px solid var(--gold); }
.band.open { border-bottom: 0; }
.band-inner { max-width: 820px; margin: 0 auto; padding: 30px 20px 28px; }
body.wide .band-inner { max-width: 1000px; }
.band .eyebrow { color: var(--gold-ink); }
.band h1 { margin: 0; color: var(--shell-ink); }
.band .lead { margin: 10px 0 0; color: var(--shell-muted); max-width: 640px; font-size: 1.02rem; line-height: 1.5; }
.band-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.band-text { min-width: 0; }
.band-actions { display: flex; gap: 10px; align-items: center; }
.band-actions .button.secondary, .band-actions button.secondary { background: transparent; color: var(--shell-ink); border-color: var(--shell-line-strong); }
.band-actions .button.secondary:hover, .band-actions button.secondary:hover { background: var(--shell-raised); border-color: var(--shell-ink); }
.band .crumbs { color: var(--shell-muted); margin: 0 0 12px; }
.band .crumbs a { color: var(--shell-muted); }
.band .crumbs a:hover { color: var(--gold-ink); }
.band .crumbs .sep { color: var(--shell-dim); }
.band .back { color: var(--shell-muted); margin-bottom: 10px; }
.band .back:hover { color: var(--gold-ink); }
.band .muted { color: var(--shell-muted); }
/* the top bar is the first dark band: the mark, the wordmark, the person */
.top { display: flex; justify-content: space-between; align-items: center; height: 60px; padding: 0 24px; background: var(--shell); color: var(--shell-ink); border-bottom: 1px solid var(--shell-line); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--shell-ink); }
.brand svg { flex: none; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1; letter-spacing: -0.02em; }
.stage-badge { margin-left: 10px; font-family: var(--narrow); font-stretch: 75%; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--on-gold); background: var(--gold); padding: 2px 7px; border-radius: 999px; }
.top button.link, .top a.link { color: var(--shell-ink); text-decoration-color: var(--shell-line-strong); }
.top button.link:hover, .top a.link:hover { color: var(--gold-ink); text-decoration-color: var(--gold-ink); }
.who { display: inline-flex; align-items: center; gap: 8px; color: var(--shell-ink); }
.inline { display: inline; }
.avatar { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 600; font-size: 0.78rem; align-items: center; justify-content: center; flex: none; }
.eyebrow { margin: 0 0 8px; font-family: var(--narrow); font-stretch: 75%; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.error { color: var(--danger); font-weight: 500; }
.dev a { word-break: break-all; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.panel.narrow { max-width: 420px; margin-left: auto; margin-right: auto; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.panel-head h1 { margin-bottom: 0; }
.panel-head p.muted { margin: 6px 0 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }
input, textarea { width: 100%; padding: 11px 13px; background: var(--field); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
:is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--dim); }
select { color: var(--ink); background: var(--field); }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: var(--action); color: #fff; border: 1px solid var(--action); border-radius: var(--radius-sm); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
button:hover, .button:hover { background: var(--action-deep); border-color: var(--action-deep); }
button:active, .button:active { transform: translateY(1px); }
button.link { background: none; border: 0; color: var(--ink); padding: 0; font-weight: 400; }
button.link:hover { background: none; }
button.link.danger { color: var(--danger); text-decoration-color: color-mix(in srgb, var(--danger) 45%, transparent); }
button:disabled { opacity: 0.45; cursor: default; }
ul, ol { list-style: none; padding: 0; margin: 0; }
.ico { flex: none; }
/* spaces as cards */
.spaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-rows: 1fr; gap: 14px; }
.spaces li a { display: flex; flex-direction: column; gap: 6px; height: 184px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; overflow: hidden; transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.spaces li a:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--raised); box-shadow: var(--shadow); }
.spaces .name { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spaces .desc { color: var(--muted); font-size: 0.9rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spaces .open { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; font-family: var(--narrow); font-stretch: 75%; font-size: 0.82rem; color: var(--dim); }
.spaces .open b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gold-ink); }
.spaces li.new a { border-style: dashed; align-items: center; justify-content: center; color: var(--muted); background: transparent; }
.spaces li.new a:hover { color: var(--gold-ink); border-color: var(--gold-ink); background: var(--hover); }
/* materials */
.materials li { display: flex; gap: 14px; align-items: center; padding: 13px 10px; margin: 0 -10px; border-top: 1px solid var(--line); border-radius: var(--radius-sm); }
.materials li:first-child { border-top: 0; }
.materials li:hover { background: var(--hover); }
.materials li[data-status="uploading"], .materials li[data-status="processing"] { opacity: 0.55; }
.materials .cell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.materials .title { font-weight: 500; text-decoration: none; }
.materials a.title:hover { color: var(--gold-ink); }
.materials .meta { color: var(--muted); font-size: 0.84rem; }
.tag { font-family: var(--narrow); font-stretch: 75%; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; padding: 4px 8px; border-radius: 999px; flex: none; background: var(--raised); color: var(--ink-soft); border: 1px solid var(--line-strong); }
.tag.video { color: var(--gold-ink); }
.tag.pdf { color: var(--ink); }
.tag.epub { color: var(--ink-soft); }
.tag.audio { color: var(--danger); }
.tag.text { color: var(--muted); }
.dropzone { margin-top: 22px; padding: 22px; border: 1px dashed var(--line-strong); border-radius: var(--radius); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--paper); transition: border-color 0.15s, background 0.15s; }
.dropzone.over { border-color: var(--gold-ink); background: var(--gold-tint); }
.uploads li { padding: 10px 0; border-top: 1px solid var(--line); }
.uploads .row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.uploads progress { width: 100%; height: 6px; accent-color: var(--gold-ink); margin-top: 6px; }
.uploads .err { color: var(--danger); }
/* work page: the stage and its bar are the dark instrument on the page */
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.back:hover { color: var(--gold-ink); }
.stage { position: relative; background: #000; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; box-shadow: var(--shadow); }
.stage-video { aspect-ratio: 16 / 9; }
.stage-video video { width: 100%; height: 100%; display: block; background: #000; }
.bigplay { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--vermilion); color: #fff; border: 0; padding: 0 0 0 3px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.bigplay:hover { background: var(--vermilion-deep); }
.bigplay.hidden { display: none; }
.stage-pdf { background: #0d0b0b; height: min(68vh, 820px); overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 18px; touch-action: pan-x pan-y; }
.stage-pdf canvas { background: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); max-width: 100%; }
.stage-epub { background: var(--white); height: min(68vh, 820px); }
#epub-view { height: 100%; }
.bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--stage-surface); color: var(--stage-ink); border: 1px solid var(--stage-line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.ctl { padding: 6px 10px; min-width: 36px; height: 36px; background: transparent; color: var(--ink); border-color: var(--line-strong); font-size: 0.9rem; font-weight: 500; }
.ctl:hover { background: var(--raised); border-color: var(--ink); }
a.ctl { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; height: 36px; box-sizing: border-box; }
.pdf-search .ctl { background: var(--stage-surface); color: var(--stage-ink); border-color: var(--stage-line); }
.pdf-search .ctl:hover { background: var(--stage-raised); border-color: var(--stage-line-strong); }
.bar .ctl { background: transparent; color: var(--stage-ink); border-color: transparent; }
.bar .ctl:hover { background: var(--stage-raised); border-color: transparent; }
.bar #play { width: 38px; min-width: 38px; height: 38px; padding: 0 0 0 2px; border-radius: 50%; background: var(--vermilion); border-color: var(--vermilion); color: #fff; }
.bar #play.playing { padding: 0; }
.bar #play:hover { background: var(--vermilion-deep); border-color: var(--vermilion-deep); }
.bar .ctl-wrap, .bar #loop { border: 1px solid var(--stage-line-strong); border-radius: 999px; padding: 0 12px; }
.bar .ctl-wrap { padding: 0 10px 0 0; }
.bar .ctl-wrap select { padding-left: 12px; }
.bar #loop.on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.bar #loop.on .key { background: rgba(18, 16, 16, 0.12); color: var(--on-gold); border-color: rgba(18, 16, 16, 0.3); }
.bar #help, .bar #fs, .bar a.ctl { color: var(--stage-muted); }
.bar #help:hover, .bar #fs:hover, .bar a.ctl:hover { color: var(--stage-ink); }
.bar .ctl .key { background: transparent; border-color: var(--stage-line); }
.bar [data-skip] { font-family: var(--narrow); font-stretch: 75%; }
#play .i-pause, #play.playing .i-play { display: none; }
#play.playing .i-pause { display: block; }
.time { font-family: var(--narrow); font-stretch: 75%; font-variant-numeric: tabular-nums; font-size: 0.84rem; color: var(--stage-muted); white-space: nowrap; min-width: 84px; }
.tl { position: relative; flex: 1; height: 46px; cursor: pointer; touch-action: none; outline: none; }
.tl:focus-visible .tl-track { box-shadow: 0 0 0 3px var(--gold-tint); }
.tl-track { position: absolute; left: 0; right: 0; top: 25px; height: 6px; background: var(--stage-line-strong); border-radius: 3px; overflow: hidden; }
.tl-fill { height: 100%; width: 0; background: var(--gold); }
.tl-head { position: absolute; top: 21px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--stage-surface); border: 3px solid var(--gold); left: 0; pointer-events: none; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.tl-markers { position: absolute; left: 0; right: 0; top: 0; height: 22px; }
.mk { position: absolute; top: 0; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-size: 0.68rem; font-weight: 600; display: flex; align-items: center; justify-content: center; border: 2px solid var(--stage-surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); cursor: pointer; transition: transform 0.12s; }
.mk:hover, .mk.active { transform: scale(1.2); z-index: 2; }
.mk.private { background: var(--stage-surface); color: var(--gold); border-color: var(--gold); }
.mk .tip { display: none; position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); min-width: 190px; max-width: 280px; padding: 9px 11px; background: var(--ink); color: var(--stage); font-size: 0.8rem; font-weight: 400; line-height: 1.4; border-radius: var(--radius-sm); white-space: normal; pointer-events: none; z-index: 5; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.mk .tip b { color: var(--vermilion-deep); font-weight: 600; }
.mk:hover .tip { display: block; }
.composer { display: flex; gap: 10px; align-items: center; margin: 20px 0 10px; }
.composer input[name="body"] { flex: 1; }
.composer .lock { display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; color: var(--muted); white-space: nowrap; cursor: pointer; }
.composer .lock input { width: 15px; height: 15px; accent-color: var(--gold-ink); margin: 0; }
.composer .lock input:checked + span { color: var(--gold-ink); font-weight: 600; }
.notes { margin-top: 6px; }
.notes li { display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 12px; align-items: start; padding: 13px 10px; margin: 0 -10px; border-top: 1px solid var(--line); border-radius: var(--radius-sm); transition: background 0.2s; }
.notes li.active { background: var(--gold-tint); }
.notes li.muted, .notes li.error { display: block; }
.notes .head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted); }
.notes .head .name { color: var(--ink); font-weight: 600; }
.notes .jump { font-family: var(--narrow); font-stretch: 75%; color: var(--gold-ink); background: var(--gold-tint); padding: 1px 7px; border-radius: 999px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.notes .jump:hover { background: var(--gold); color: var(--on-gold); }
.notes .body { grid-column: 2; margin: 0; white-space: pre-wrap; color: var(--ink-soft); }
.notes .del { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 0.85rem; }
.notes .only-me { font-family: var(--narrow); font-stretch: 75%; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; border: 1px solid var(--line-strong); padding: 1px 6px; border-radius: 999px; }
@media (max-width: 640px) {
  .top { padding: 0 16px; }
  .band-inner { padding: 22px 16px 20px; }
  .wordmark, .who-name { display: none; }
  .page { padding-top: 24px; }
  h1 { font-size: 1.75rem; }
  .panel { padding: 20px; }
  .time { min-width: 0; }
  .bar { flex-wrap: wrap; }
  .tl { flex-basis: 100%; order: 10; }
  .composer { flex-wrap: wrap; }
  .composer input[name="body"] { flex-basis: 100%; order: -1; }
  .notes li { grid-template-columns: 28px 1fr; }
  .notes .del { grid-column: 2; grid-row: auto; justify-self: start; }
}

/* ---- landing: paper, a big claim, the stage as a product shot */
body.plain .page { max-width: 960px; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 22px; }
.hero-note { display: flex; gap: 16px; align-items: flex-start; max-width: 640px; padding: 18px 20px; background: var(--gold-tint); border: 1px solid var(--gold); border-left-width: 5px; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-note .ico { flex: none; color: var(--gold-ink); margin-top: 3px; }
.hero-note b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; margin-bottom: 6px; color: var(--ink); }
.hero-note span { display: block; font-size: 1.02rem; line-height: 1.55; color: var(--ink-soft); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 4px 0 22px; }
.learners, .how { padding: 56px 0 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 12px; }
.pillars li { border-top: 1px solid var(--line-strong); padding: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.pillars span { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
.facts li { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); line-height: 1.55; }
.facts b { display: block; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin-bottom: 4px; }
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--ink-soft); line-height: 1.55; }
.steps li::before { content: counter(step); width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-family: var(--narrow); font-stretch: 75%; font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; }
.steps b { color: var(--ink); }
.steps.big { max-width: 640px; gap: 16px; }
.steps.big li { font-size: 1.02rem; }
.apply { margin-top: 56px; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.3fr); gap: 28px; }
.apply-text h2 { margin-bottom: 8px; }
.apply-form .error { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.landing-foot { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.foot-claim { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin: 0 0 8px; }
.fine { color: var(--dim); font-size: 0.85rem; }
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; gap: 20px; }
  .facts { grid-template-columns: 1fr; }
  .apply { grid-template-columns: 1fr; }
  .learners, .how { padding-top: 40px; }
}
/* ---- shared bits */
.button.secondary, button.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); font-weight: 500; }
.button.secondary:hover, button.secondary:hover { background: var(--raised); border-color: var(--ink); }
.notice { background: var(--gold-tint); color: var(--ink); padding: 10px 14px; border-left: 3px solid var(--gold); border-radius: var(--radius-sm); margin: 0 0 16px; }
.quote { margin: 0 0 14px; padding: 0 0 0 14px; border-left: 3px solid var(--gold); font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--ink-soft); }
.plain-list { margin: 0 0 18px; padding-left: 18px; list-style: disc; }
.chip { font-family: var(--narrow); font-stretch: 75%; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; border: 1px solid var(--line-strong); padding: 1px 6px; border-radius: 999px; color: var(--muted); vertical-align: middle; }
h2 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.005em; margin: 0 0 14px; }
h3 { font-family: var(--narrow); font-stretch: 75%; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 26px 0 10px; font-weight: 600; }
/* ---- manage block on a space */
.manage { margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.manage summary { cursor: pointer; padding: 10px 14px; color: var(--muted); font-size: 0.92rem; }
.manage-body { padding: 4px 14px 14px; font-size: 0.92rem; }
.copyable { display: inline-block; background: var(--field); border: 1px solid var(--line); padding: 4px 8px; border-radius: var(--radius-sm); font-size: 0.82rem; margin: 6px 6px 6px 0; user-select: all; }
/* ---- people */
.invite .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.invite .row input { flex: 1; min-width: 200px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; cursor: pointer; }
.check input { width: 15px; height: 15px; margin: 0; accent-color: var(--gold-ink); }
.check.all { flex-basis: 100%; }
.invite textarea { margin-bottom: 10px; }
.rows li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rows li:first-child { border-top: 0; }
.rows .cell { flex: 1; min-width: 220px; display: flex; flex-direction: column; }
.rows .meta { color: var(--muted); font-size: 0.84rem; }
.table-wrap { overflow: auto; }
.grid { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.grid th { text-align: center; font-family: var(--narrow); font-stretch: 75%; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); font-size: 0.75rem; padding: 6px 8px; border-bottom: 1px solid var(--line-strong); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid th:first-child { text-align: left; }
.grid td { text-align: center; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.grid td.person { text-align: left; display: flex; gap: 10px; align-items: center; }
.grid td.person .meta { display: block; color: var(--muted); font-size: 0.82rem; }
.grid input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--gold-ink); margin: 0; }

/* ---- material rows: reorder and rename */
.materials .handle { color: var(--dim); cursor: grab; display: inline-flex; user-select: none; }
.materials .actions .link { color: var(--muted); }
.materials li:hover .actions .link { color: var(--ink); }
.materials li:hover .actions .link.danger { color: var(--danger); }
.materials li:hover .handle { color: var(--muted); }
.materials li.dragging { opacity: 0.4; }
.materials li.moved { background: var(--gold-tint); }
.materials .actions { display: flex; gap: 10px; align-items: center; flex: none; }
.ctl.mini { min-width: 28px; height: 28px; padding: 2px 6px; font-size: 0.8rem; color: var(--muted); border-color: var(--line); }
.materials .rename { padding: 6px 8px; font-weight: 500; max-width: 420px; }
@media (max-width: 640px) { .materials li { flex-wrap: wrap; } .materials .actions { flex-basis: 100%; justify-content: flex-end; } }

/* ---- nested spaces */
.crumbs { margin: 0 0 8px; font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; padding: 2px 4px; border-radius: var(--radius-sm); }
.crumbs a:hover { color: var(--gold-ink); text-decoration: underline; }
.crumbs .sep { display: inline-flex; color: var(--dim); }
.subspaces { margin-bottom: 6px; }
.subspaces .folder { color: var(--gold-ink); display: inline-flex; flex: none; }
.subspaces li .title { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: 0; }
.drop-over { background: var(--gold-tint) !important; outline: 2px dashed var(--gold-ink); outline-offset: -2px; border-radius: var(--radius-sm); }
.materials li.moved-away { opacity: 0.5; }
.move-select { padding: 4px 6px; font-size: 0.85rem; max-width: 260px; }
.inline-label { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-label select { padding: 6px 8px; font: inherit; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--field); color: var(--ink); }

/* ---- the bell and the activity page */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: var(--shell-muted); text-decoration: none; }
.bell:hover { background: var(--shell-raised); color: var(--shell-ink); }
.bell.has-new { color: var(--shell-ink); }
.bell .badge { position: absolute; top: 1px; right: -2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--action); color: #fff; font-size: 0.68rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--shell); }
.activity li { border-top: 1px solid var(--line); }
.activity li:first-child { border-top: 0; }
.activity li a { display: flex; gap: 12px; padding: 14px 10px; margin: 0 -10px; text-decoration: none; border-radius: var(--radius-sm); }
.activity li a:hover { background: var(--hover); }
.activity li.fresh a { background: var(--gold-tint); }
.activity li.fresh a:hover { background: rgba(217, 177, 92, 0.32); }
.act-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.act-head { font-size: 0.86rem; display: flex; gap: 8px; align-items: baseline; }
.act-text { color: var(--ink); }
.act-where { font-size: 0.84rem; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.act-where .jump { font-family: var(--narrow); font-stretch: 75%; color: var(--gold-ink); background: var(--white); border: 1px solid var(--line); padding: 0 6px; border-radius: 999px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip.new { background: var(--action); color: #fff; border-color: var(--action); }

.row-actions { display: flex; gap: 14px; align-items: center; }

/* ---- audio and text stages */
.stage-audio { background: linear-gradient(135deg, #1b1817, #2a1d1a); min-height: 260px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding: 22px 24px; gap: 14px; }
.stage-audio .muted { color: var(--stage-muted); }
.stage-audio .bigplay { position: static; align-self: center; margin-top: 4px; width: 64px; height: 64px; }
.stage-text { background: var(--white); height: min(68vh, 820px); overflow: auto; padding: 32px 40px; }
.text-view { margin: 0 auto; max-width: 720px; white-space: pre-wrap; word-wrap: break-word; font: 105%/1.7 Georgia, "Times New Roman", serif; color: var(--ink); }
#viewer:fullscreen .stage-text, #viewer.is-full .stage-text { height: auto; }
#viewer:fullscreen .stage-audio, #viewer.is-full .stage-audio { min-height: 0; }

/* ---- loop range, speed select, help */
.tl-loop { position: absolute; top: 0; height: 100%; background: rgba(217, 177, 92, 0.3); display: none; }
/* ---- learnable controls: the key on each button, a flash over the picture, a first-visit line of advice */
.ctl .key { margin-left: 6px; font-family: var(--narrow); font-stretch: 75%; font-size: 0.75rem; line-height: 1.3; color: var(--stage-muted); background: var(--stage-bg); border: 1px solid var(--stage-line); border-radius: 3px; padding: 1px 5px; vertical-align: 1px; }
#loop.on .key { background: var(--stage-bg); color: var(--gold); border-color: var(--gold); }
.ctl-wrap { display: inline-flex; align-items: center; height: 36px; padding: 0 8px 0 0; border: 1px solid var(--stage-line); border-radius: var(--radius-sm); }
.ctl-wrap select { border: 0; background: transparent; padding: 6px 2px 6px 10px; font: inherit; font-size: 0.9rem; color: var(--stage-ink); appearance: none; -webkit-appearance: none; cursor: pointer; }
.ctl-wrap select option { color: var(--ink); background: var(--white); }
.ctl-wrap select:focus { outline: none; }
.ctl-wrap:focus-within { border-color: var(--stage-line-strong); }
.ctl .ico { flex: none; }
.touch-only { display: none; }
@media (hover: none) and (pointer: coarse) {
  .keys-only, .ctl .key { display: none; }
  .touch-only { display: revert; }
}
@media (max-width: 760px) { .ctl .key { display: none; } }
.stage-video video { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.flash { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 6px); z-index: 4; max-width: 86%; padding: 7px 14px; border-radius: 999px; background: rgba(18, 16, 16, 0.82); border: 1px solid var(--stage-line); color: var(--stage-ink); font-size: 0.88rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity 0.18s, transform 0.18s; pointer-events: none; }
.flash.show { opacity: 1; transform: translate(-50%, 0); }
/* the audio stage keeps its play button at the bottom, so the flash goes to the top right corner */
.stage-audio .flash { left: auto; right: 14px; bottom: auto; top: 14px; transform: translate(0, -6px); max-width: 60%; }
.stage-audio .flash.show { transform: translate(0, 0); }
.coach { display: flex; gap: 10px; align-items: baseline; margin: 12px 0 0; padding: 10px 14px; background: var(--gold-tint); border-radius: var(--radius-sm); font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft); }
.coach[hidden] { display: none; }
.coach b { color: var(--gold-ink); font-weight: 600; }
.coach kbd { font-family: var(--narrow); font-stretch: 75%; font-size: 0.74rem; background: var(--field); border: 1px solid var(--line-strong); border-radius: 3px; padding: 0 5px; white-space: nowrap; }
.coach button { margin-left: auto; white-space: nowrap; font-size: 0.85rem; }
.help-box section + section { margin-top: 0; }
@media (max-width: 640px) { .coach { flex-wrap: wrap; } .coach button { margin-left: 0; } }
#loop.on { background: var(--gold-tint); border-color: var(--gold); color: var(--gold); }
.help { position: fixed; inset: 0; z-index: 80; background: rgba(18, 16, 16, 0.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.help[hidden] { display: none; }
.help-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; max-width: 420px; width: 100%; box-shadow: var(--shadow); }
.help-box dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 18px; }
.help-box dt { font-family: var(--narrow); font-stretch: 75%; font-size: 0.82rem; background: var(--field); border: 1px solid var(--line-strong); border-radius: 3px; padding: 2px 8px; text-align: center; white-space: nowrap; }
.help-box dd { margin: 0; align-self: center; color: var(--ink-soft); }

/* ---- resume chip and toast */
.materials .resume { color: var(--gold-ink); font-weight: 600; }

/* ---- pdf text layer, search, pinch */
.pdf-wrap { position: relative; flex: none; background: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
.pdf-wrap canvas { display: block; box-shadow: none; }
.textLayer { position: absolute; inset: 0; overflow: hidden; line-height: 1; text-align: initial; text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; z-index: 1; }
.textLayer span, .textLayer br { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; }
.textLayer .endOfContent { display: block; position: absolute; inset: 100% 0 0; z-index: -1; cursor: default; user-select: none; }
.textLayer ::selection { background: rgba(227, 74, 47, 0.35); color: transparent; }
.textLayer span.hit { background: rgba(217, 177, 92, 0.6); border-radius: 2px; }
.pdf-search { position: absolute; top: 10px; right: 10px; z-index: 4; display: flex; gap: 6px; align-items: center; background: var(--stage-surface); border: 1px solid var(--stage-line); border-radius: var(--radius-sm); padding: 6px 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); color: var(--stage-ink); }
.pdf-search[hidden] { display: none; }
.pdf-search input { width: 200px; padding: 6px 9px; background: var(--field); color: var(--stage-ink); border-color: var(--stage-line); }
.pdf-search input:focus { border-color: var(--gold); }
.pdf-search .muted { color: var(--stage-muted); }
.pdf-search .ctl { min-width: 30px; height: 30px; padding: 4px 6px; }
@media (max-width: 640px) { .pdf-search { left: 10px; right: 10px; } .pdf-search input { width: auto; flex: 1; min-width: 0; } }

/* ---- waveform and scrub preview */
.wave { position: relative; min-height: 110px; }
.wave-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--stage-muted); }
.tl-preview { position: absolute; bottom: 48px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; z-index: 6; }
.tl-preview[hidden] { display: none; }
.tl-preview img { width: 160px; height: 90px; object-fit: cover; border-radius: var(--radius); background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); border: 2px solid var(--stage-ink); }
.tl-preview.no-image img { display: none; }
.tl-preview span { background: var(--stage-ink); color: var(--stage-bg); font-family: var(--narrow); font-stretch: 75%; font-size: 0.78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }

/* ---- notes header with sort toggle */
.notes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0 2px; font-size: 0.84rem; }
.notes-head .sort { display: inline-flex; gap: 8px; align-items: baseline; }
.notes-head button.link { font-size: 0.84rem; color: var(--muted); text-decoration: none; }
.notes-head button.link.on { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---- stats */
.grid.stats th { text-align: left; }
.grid.stats td { text-align: left; vertical-align: middle; }
.grid.stats td.person { display: flex; }
a.plain { text-decoration: none; }
a.plain:hover { text-decoration: underline; }
.chip.private { background: var(--paper); border-color: var(--line-strong); color: var(--ink-soft); }
.activity li.private a { border-left: 3px solid var(--line-strong); }

/* ---- space trees and the access panel */
.picker { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin: 6px 0 10px; background: var(--paper); }
.picker-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.picker-head .check.all { flex: 1; }
.tree-search, .list-search { max-width: 240px; padding: 7px 10px; font-size: 0.9rem; }
.tree, .tree-children { list-style: none; margin: 0; padding: 0; }
.tree-children { margin-left: 22px; border-left: 1px solid var(--line-strong); padding-left: 6px; }
.tree-row { display: flex; align-items: center; gap: 6px; padding: 4px 4px; border-radius: var(--radius-sm); }
.tree-row:hover { background: var(--hover); }
.tree-row.on { background: var(--gold-tint); }
.tree-row .check { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.tree-row .meta { color: var(--muted); font-size: 0.8rem; }
.tree-note { font-size: 0.78rem; }
.tw, .tw-empty { width: 20px; height: 20px; flex: none; }
.tw { background: none; border: 0; color: var(--muted); padding: 0; font-size: 0.85rem; cursor: pointer; justify-content: center; }
.tw:hover { color: var(--ink); background: none; }
.picker.all-on .tree { opacity: 0.45; pointer-events: none; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--field); }
.seg-btn { background: transparent; color: var(--muted); border: 0; padding: 6px 14px; font-size: 0.85rem; font-weight: 500; }
.seg-btn.on { background: var(--gold); color: var(--on-gold); }
.seg-btn:hover { background: var(--hover); color: var(--ink); }
.seg-btn.on:hover { background: var(--gold); color: var(--on-gold); }
.access { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 18px; align-items: start; }
.access-left { border-right: 1px solid var(--line); padding-right: 14px; }
.pick-list { margin-top: 8px; max-height: 520px; overflow: auto; }
.pick { display: flex; gap: 10px; align-items: center; justify-content: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 400; }
.pick:active { transform: none; }
.pick .avatar { flex: none; }
.pick-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick:hover { background: var(--hover); }
.pick.on { background: var(--gold-tint); }
.pick-text { display: flex; flex-direction: column; min-width: 0; }
.pick-text .meta { color: var(--muted); font-size: 0.8rem; }
.people-rows li { padding: 8px 0; }
.people-rows .check { display: inline-flex; align-items: center; gap: 8px; }
.people-rows input[type=checkbox] { accent-color: var(--gold-ink); }
#space-pick .tree-name { cursor: pointer; }
#space-pick .tree-name:hover { text-decoration: underline; }
@media (max-width: 760px) { .access { grid-template-columns: 1fr; } .access-left { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; } }

/* ---- products: the user's gate and page, the creator's panel */
.gate .step { margin: 0 0 6px; font-family: var(--narrow); font-stretch: 75%; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-ink); font-weight: 600; }
.gate h2 { margin-bottom: 6px; }
.powered { margin: 22px 0 0; display: flex; align-items: center; gap: 6px; }
.wordmark-small { font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.015em; color: var(--muted); }
.continue { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; color: var(--gold-ink); }
.sections li a { display: grid; grid-template-columns: 22px 1fr auto 16px; gap: 4px 14px; align-items: center; padding: 16px 18px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--gold-ink); transition: background 0.15s, border-color 0.15s; }
.sections li a:hover { background: var(--raised); border-color: var(--line-strong); }
.sections .cell { min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.sections .title { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: 0; }
.sections .meta { color: var(--muted); font-size: 0.88rem; }
.sections .count { font-family: var(--narrow); font-stretch: 75%; font-size: 0.8rem; color: var(--dim); white-space: nowrap; }
.sections li a > svg:last-child { color: var(--dim); }
.group { margin: 6px 0 0; }
.chip.status-live { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.chip.status-draft { color: var(--ink-soft); }
.chip.status-archived { color: var(--dim); }
.band-actions .chip { margin-right: 4px; }
.form-labels label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.form-labels label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
.form-labels input, .form-labels textarea, .form-labels select { font-size: 1rem; color: var(--ink); }
.form-labels select { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; }
.spaces.products .name { color: var(--ink); }

/* ---- chapters: the list under the player, ticks on the bar */
.chapters { margin: 18px 0 0; }
.chapters[hidden] { display: none; }
.chapters-tools { display: inline-flex; gap: 12px; align-items: center; font-size: 0.85rem; }
.chapter-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chapter-form[hidden] { display: none; }
.chapter-form input { flex: 1 1 240px; }
.chapter-form textarea { flex-basis: 100%; width: 100%; font-family: var(--narrow); font-size: 0.9rem; }
.chapter-list { margin: 8px 0 0; display: flex; flex-direction: column; }
.chapter-list li { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.chapter-list li:first-child { border-top: 0; }
.chapter-list li.empty { padding: 8px 0; border: 0; display: block; }
.chapter-go { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; background: none; border: 0; padding: 10px 8px; margin: 0 -8px; border-radius: var(--radius-sm); color: var(--ink); text-align: left; font-weight: 400; }
.chapter-go:hover { background: var(--hover); }
.chapter-list li.on .chapter-go { background: var(--gold-tint); }
.chapter-go .num { font-family: var(--narrow); font-stretch: 75%; font-size: 0.8rem; color: var(--dim); font-weight: 600; }
.chapter-list li.on .num { color: var(--gold-ink); }
.chapter-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-at { font-family: var(--narrow); font-stretch: 75%; font-size: 0.82rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chapter-tools { display: inline-flex; gap: 10px; font-size: 0.82rem; flex: none; }
.tl-chapters { position: absolute; left: 0; right: 0; top: 22px; height: 12px; pointer-events: none; }
.tl-chapters .tick { position: absolute; top: 0; width: 2px; height: 12px; margin-left: -1px; background: var(--ink); opacity: 0.55; border-radius: 1px; }
@media (max-width: 640px) { .chapter-go { grid-template-columns: 24px 1fr; } .chapter-go .chapter-at { grid-column: 2; } .chapter-list li { flex-wrap: wrap; } .chapter-tools { flex-basis: 100%; padding: 0 0 8px 32px; } }
.chapter-list li.empty code { font-family: var(--narrow); font-stretch: 75%; background: var(--field); border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; }
.chapters-tools .ctl { height: 32px; font-size: 0.85rem; }
.subspaces li.is-hidden .title, .subspaces li.is-hidden .folder { color: var(--dim); }
.section-add { margin-top: 14px; flex-wrap: wrap; }
.section-add input { flex: 1 1 200px; width: auto; padding: 8px 10px; font-size: 0.92rem; }
.subspaces .actions form.inline { display: inline-flex; }
.materials .cell .chip { margin-left: 8px; vertical-align: 2px; }
.chip.draft { color: var(--gold-ink); border-color: var(--gold); }
.chip.previous { color: var(--dim); }
.materials li[data-status="ready"] .cell > span:first-child { display: inline-flex; align-items: center; flex-wrap: wrap; }
button.link.publish { color: var(--gold-ink); font-weight: 600; }
.previous-versions { margin-top: 14px; }
.previous-versions summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; padding: 8px 0; }
.previous-versions .materials li { opacity: 0.75; }
.band .lead .chip { margin-right: 6px; }

/* ---- updates and faq */
.latest { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.92rem; color: var(--gold-ink); }
.latest-text { flex: 1 1 auto; min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sections.builtin { margin-top: 14px; }
.updates { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.update { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.update-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 0.92rem; }
.update-head b { font-size: 1.05rem; }
.update-head form { margin-left: auto; }
.update p { margin: 8px 0 0; color: var(--ink-soft); line-height: 1.55; }
.update .update-link { margin-top: 6px; }
.update-form { margin-bottom: 6px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
.faq summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--gold-ink); border-bottom: 1.5px solid var(--gold-ink); transform: rotate(-45deg); transition: transform 0.15s; flex: none; }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq-answer { padding: 0 0 16px 17px; color: var(--ink-soft); line-height: 1.6; }
.faq-list { margin-bottom: 18px; }
.faq-list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.faq-list li:first-child { border-top: 0; }
.faq-list .cell { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.faq-list .meta { color: var(--muted); font-size: 0.86rem; }
.faq-list .actions { display: flex; gap: 10px; align-items: center; flex: none; }
.faq-list .actions form.inline { display: inline-flex; }
.avatar.update { background: var(--raised); color: var(--gold); }

/* ---- community contributions */
.contribs { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contrib { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.contrib-head { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.contrib-head:hover b { text-decoration: underline; }
.contrib-title { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.contrib-title .muted { font-size: 0.85rem; }
.contrib p { margin: 10px 0 0; color: var(--ink-soft); }
.contrib-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.contrib-files .file { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: inherit; text-decoration: none; font-size: 0.9rem; }
.contrib-files .file:hover { border-color: var(--line-strong); }
.contribs.compact { gap: 0; margin-top: 6px; }
.contribs.compact li { padding: 8px 0; border-top: 1px solid var(--line); }
.contribs.compact li:first-child { border-top: 0; }
.contribs.compact a { color: inherit; text-decoration: none; }
.contribs.compact a:hover b { text-decoration: underline; }
.contrib-list li.empty { color: var(--muted); padding: 10px; }
.contrib-body { white-space: normal; }
.contrib-actions { margin-top: 18px; }
.chip.status-pending { border-color: var(--gold-ink); color: var(--gold-ink); }
.chip.status-fix { border-color: var(--danger); color: var(--danger); }
.chip.status-rejected { color: var(--muted); }
.chip.community { background: var(--gold-tint); border-color: var(--gold-ink); color: var(--gold-ink); }
.review-note { padding: 10px 14px; border-left: 2px solid var(--gold); background: var(--raised); }
.community-banner b { color: var(--ink); }

/* ---- creator role on the People page */
.creator-row { margin: 0 0 12px; padding: 10px 12px; background: var(--raised); border: 1px solid var(--line); }
.creator-row .plan-line { display: block; margin: 8px 0 0 26px; font-size: 0.92rem; }
.creator-row label.plan-line { display: flex; }
.creator-row .plan-line b, .check.all b { white-space: nowrap; }
.creator-check { display: flex; align-items: flex-start; gap: 8px; }
.creator-check input { margin-top: 3px; }

/* ---- creator usage and guide, owner limits */
.usage { margin: 12px 4px 0; }
.usage b { color: var(--ink); }
.limits { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.limits input { width: 3.6em; padding: 4px 6px; text-align: right; }
.guide h2 { margin-bottom: 10px; }
.guide p, .guide li { color: var(--ink-soft); line-height: 1.55; }
.guide li { margin: 6px 0; }
.guide b { color: var(--ink); }

/* ---- the theme switch: a moon on paper, a sun in the dark house */
.theme { width: 34px; height: 34px; border-radius: 50%; background: transparent; border: 0; color: var(--shell-muted); padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.theme:hover { background: var(--shell-raised); color: var(--shell-ink); }
.theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; }
:root[data-theme="dark"] .theme .i-moon { display: none; }

/* ---- empty states that show what the panel can do */
.welcome-head { max-width: 640px; margin-bottom: 18px; }
.welcome-head h2 { margin-bottom: 6px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 22px; }
.features li { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); color: var(--gold-ink); }
.features b { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.features span { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* ---- legal pages, notices before activation, the footer on every page */
.legal-doc article > h1 { display: none; }
.legal-doc article > p:first-of-type { color: var(--muted); }
.legal-doc h2 { font-size: 1.2rem; margin: 26px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--ink-soft); line-height: 1.6; }
.legal-doc ul, .legal-doc ol { padding-left: 20px; margin: 8px 0 14px; }
.legal-doc ul { list-style: disc; }
.legal-doc ol { list-style: decimal; }
.legal-doc table { border-collapse: collapse; width: 100%; font-size: 0.92rem; margin: 10px 0 16px; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.legal-doc th { font-family: var(--narrow); font-stretch: 75%; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.legal-doc code { font-size: 0.9em; background: var(--raised); padding: 1px 5px; border-radius: 3px; }
.legal-doc a { color: var(--ink); }
.legal-scroll { max-height: 62vh; overflow: auto; }
.legal-index { margin: 6px 4px 0; }
.legal-ident, .legal-stats { margin: 16px 0; padding: 12px 14px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.92rem; line-height: 1.5; }
.legal-ident p, .legal-stats p { margin: 0; }
.legal-ident .eyebrow, .legal-stats .eyebrow { margin-bottom: 4px; }
.legal-check { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; font-size: 0.95rem; line-height: 1.5; }
.legal-check input { margin-top: 4px; }
.legal-submit { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.person-tools { display: flex; gap: 14px; align-items: center; margin: 0 0 12px; font-size: 0.9rem; }
.site-foot { max-width: 1000px; margin: 0 auto; padding: 24px 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.site-foot p { margin: 0 0 8px; }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.site-foot-links a { color: var(--ink-soft); text-decoration: none; }
.site-foot-links a:hover { text-decoration: underline; }
.agreement .form-labels label { margin-bottom: 4px; }

/* ---- the creator's signature under a product, compact notices before activation */
.creator-sign { margin: 18px 0 0; }
.creator-sign b { color: var(--ink); }
.legal-ident, .legal-stats { display: block; }
.legal-ident .eyebrow, .legal-stats .eyebrow { display: block; margin-bottom: 4px; }
.site-foot-links .site-foot-op { color: var(--ink-soft); font-weight: 600; }

/* ---- the account page, the creator privacy page, the owner's plans */
a.who { text-decoration: none; }
a.who:hover .who-name { text-decoration: underline; text-underline-offset: 3px; }
.leave-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 12px; }
.leave-grid h3 { margin: 0 0 6px; }
.leave-grid form { margin-top: 10px; }
.creator-privacy h2:first-child { margin-top: 0; }
.limits input[type="date"] { width: auto; text-align: left; }
.limits input[name="reason"] { width: 14em; text-align: left; }
.legal-stats .muted { display: block; margin-top: 6px; }
.legal-fold { margin: 4px 0 8px; }
.legal-fold > summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }
.legal-fold .legal-scroll { margin-top: 10px; padding: 12px 14px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); max-height: 50vh; }

/* ================================================================================================
   2026-10 redesign · R0 · the shell
   One bar, one menu, one way to say "done" and one way to ask "sure?". Everything below is additive;
   the rules it retires were removed above (.top nav, .navlink, .toast).
   ================================================================================================ */
.skip { position: absolute; left: 12px; top: -56px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); text-decoration: none; font-weight: 600; transition: top var(--t-1) var(--ease-out); }
.skip:focus { top: 8px; }
h1, h2, .lead, .section-title { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* the top bar: where you are is underlined in gold; who you are opens the menu */
.top { position: relative; z-index: 30; height: 56px; gap: 8px; }
.top .primary { display: flex; align-items: stretch; align-self: stretch; gap: 2px; margin: 0 auto 0 16px; }
.navlink { position: relative; display: inline-flex; align-items: center; padding: 0 12px; font-size: 0.94rem; text-decoration: none; color: var(--shell-muted); }
.navlink:hover { color: var(--shell-ink); }
.navlink[aria-current="page"] { color: var(--shell-ink); font-weight: 600; }
.navlink[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--gold); }
.top-end { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.top-end > .navlink { height: 40px; }
.top .bell, .top .theme { width: 40px; height: 40px; }
.bell[aria-current="page"] { color: var(--shell-ink); background: var(--shell-raised); }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px 4px 6px; border-radius: 999px; color: var(--shell-ink); font-size: 0.94rem; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: var(--shell-raised); }
.menu > summary .ico { color: var(--shell-muted); transition: transform var(--t-1) var(--ease-out); }
.menu[open] > summary .ico { transform: rotate(180deg); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 248px; padding: 8px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.menu[open] > .menu-pop { animation: rise var(--t-2) var(--ease-out); }
.menu-id { margin: 0 0 4px; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.menu-id span { color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
.menu-item { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px; background: none; border: 0; border-radius: var(--radius-sm); color: var(--ink); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.menu-item:hover { background: var(--hover); border: 0; }
.menu-item[aria-current="page"] { background: var(--gold-tint); }
.menu-item .ico { color: var(--muted); }
.menu-nav { display: none; flex-direction: column; margin-bottom: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.menu-nav .navlink { min-height: 44px; padding: 8px 10px; color: var(--ink); border-radius: var(--radius-sm); }
.menu-nav .navlink:hover { background: var(--hover); }
.menu-nav .navlink[aria-current="page"]::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
@media (max-width: 720px) {
  .top .primary { display: none; }
  .menu-nav { display: flex; }
  .menu > summary { padding: 4px; }
  .menu > summary .ico { display: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(-6px); } }

/* toasts: every "done" and every "that failed" speaks from the same place */
.toasts { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90; transform: translateX(-50%); width: min(92vw, 520px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 14px; max-width: 100%; padding: 11px 16px; background: var(--ink); color: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 0.94rem; font-weight: 500; opacity: 0; transform: translateY(10px); transition: opacity var(--t-2) var(--ease-out), transform var(--t-2) var(--ease-out); pointer-events: auto; }
.toast.show { opacity: 1; transform: none; }
.toast.error { background: var(--danger); color: #fff; }
:root[data-theme="dark"] .toast.error { color: #121010; }
.toast button { background: none; border: 0; padding: 4px 2px; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.toast button:hover { background: none; }

/* the one dialog: a question, what it will do, two answers */
dialog.ask { width: min(92vw, 440px); padding: 24px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
dialog.ask::backdrop { background: rgba(18, 16, 16, 0.55); }
dialog.ask[open] { animation: rise var(--t-2) var(--ease-out); }
dialog.ask h2 { margin: 0 0 8px; font-size: 1.3rem; }
dialog.ask p { margin: 0; color: var(--ink-soft); }
dialog.ask input { margin-top: 14px; }
dialog.ask .row-actions { justify-content: flex-end; margin-top: 22px; }
button.danger:not(.link):not(.secondary) { background: var(--danger); border-color: var(--danger); }
:root[data-theme="dark"] button.danger:not(.link):not(.secondary) { color: #121010; }

/* motion: pages cross-fade, the bar stays put; anyone who asked for less motion gets none */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; animation-timing-function: var(--ease-out); }
  .top { view-transition-name: top-bar; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* fingers: 44 px to hit, 16 px to type (below that iOS zooms the page on focus) */
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* a hidden label inside a table that scrolls sideways must stay inside the scroller, or it widens the whole page */
.table-wrap { position: relative; }
/* the line under a row belongs to the row: the person cell lays itself out as a flex box and drew its own line a pixel or two above the others */
.grid td { border-bottom: 0; }
.grid tbody tr { border-bottom: 1px solid var(--line); }
/* the smallest things a pointer has to hit: 24 px, with room around them */
.tw, .tw-empty { width: 24px; height: 24px; }
.tree-row input[type="checkbox"], .people-rows input[type="checkbox"], .grid input[type="checkbox"], .check input[type="checkbox"] { width: 20px; height: 20px; margin: 2px; accent-color: var(--gold-ink); flex: none; }
/* the way home and the menu are full-size targets on every screen; the mark itself stays its size */
.brand { min-width: 44px; min-height: 44px; }
.top .who { min-width: 44px; min-height: 44px; justify-content: center; }
@media (pointer: coarse) {
  .ctl, .bell, .theme { min-width: 44px; min-height: 44px; }
  .site-foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
  .site-foot-links { gap: 0 10px; }
  .work .stage-head .back { min-height: 44px; }
  .ctl.mini { min-width: 40px; height: 40px; }
  a.link, button.link { padding-block: 8px; }
  input, textarea, select { font-size: 16px !important; }
}

/* ================================================================================================
   2026-10 redesign · R1 · the programme
   A product is a playbill: a poster, whose it is, and the whole bill on one page with your place in it.
   ================================================================================================ */
/* posters: set in type, six inks, one prop. Sizes are in container units, so the same markup is a shelf tile or a page-side poster. */
.poster { container-type: inline-size; position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--radius); background: var(--p-bg); color: var(--p-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 10px 28px rgba(0, 0, 0, 0.14); }
.poster-in { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 11cqw 10cqw 10cqw; }
.poster-in::before { content: ""; position: absolute; inset: 4cqw; border: 1px solid currentColor; opacity: 0.32; pointer-events: none; }
.poster-kind { font-family: var(--narrow); font-stretch: 75%; font-weight: 650; font-size: 4.8cqw; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase; color: var(--p-kind); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-rule { flex: none; height: 1.6cqw; margin: 3.6cqw 0 5cqw; border-top: 0.55cqw solid currentColor; border-bottom: 0.25cqw solid currentColor; }
.poster-title { font-family: var(--display); font-weight: 600; font-size: calc(var(--fs, 12) * 1cqw); line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; position: relative; z-index: 1; }
.poster-emblem { position: absolute; right: 8cqw; bottom: 16cqw; width: 58cqw; height: 58cqw; stroke: var(--p-emblem); stroke-width: 1.5px; opacity: 0.9; }
.poster-by { margin-top: auto; font-size: 4.6cqw; line-height: 1.2; font-weight: 500; position: relative; z-index: 1; max-width: 70%; }
/* a small poster keeps its title and its prop; the small print would be too small to be print */
@container (max-width: 190px) { .poster-kind, .poster-by { display: none; } .poster-rule { margin-top: 0; } }
.ink-stage { --p-bg: #151212; --p-ink: #efe8da; --p-kind: #d9b15c; --p-emblem: #d9b15c; }
.ink-bone { --p-bg: #ece4d3; --p-ink: #1c1b1a; --p-kind: #a8301a; --p-emblem: #c8442b; }
.ink-vermilion { --p-bg: #c93b22; --p-ink: #fff6e8; --p-kind: #fff6e8; --p-emblem: #2a0f09; }
.ink-gold { --p-bg: #c99a3a; --p-ink: #121010; --p-kind: #121010; --p-emblem: #121010; }
.ink-midnight { --p-bg: #1c2540; --p-ink: #efe8da; --p-kind: #d9b15c; --p-emblem: #d9b15c; }
.ink-bottle { --p-bg: #16362d; --p-ink: #efe8da; --p-kind: #e2b566; --p-emblem: #e2b566; }
:root[data-theme="dark"] .poster { box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, 0.5); }

/* the doodles live in the margins: under anything a person reads, the paper is plain */
.page { background: var(--paper); box-shadow: 0 0 40px 28px var(--paper); }
body.landing .page { max-width: 1120px; }

/* the programme: the bill on the left, the poster and what belongs to it on the right */
.programme { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 40px 56px; align-items: start; }
.programme-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }
.programme-poster { width: 100%; }
@media (max-width: 860px) {
  .programme { grid-template-columns: minmax(0, 1fr); }
  .programme-side { position: static; display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 12px 18px; align-items: start; padding-top: 28px; border-top: 1px solid var(--line-strong); }
  .programme-poster { grid-row: span 3; }
  .programme-side > :not(.programme-poster) { grid-column: 2; }
}

/* ex libris: whose copy this is */
.exlibris { margin: 0; padding: 12px 14px 13px; display: flex; flex-direction: column; gap: 1px; text-align: center; background: var(--surface); border: 1px solid var(--line-strong); outline: 1px solid var(--line-strong); outline-offset: 3px; margin-inline: 4px; }
.exlibris-label { font-family: var(--narrow); font-stretch: 75%; font-weight: 650; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); }
.exlibris b { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; overflow-wrap: anywhere; }
.exlibris-since { color: var(--muted); font-size: 0.8125rem; }
@media (prefers-reduced-motion: no-preference) {
  .exlibris.is-new { animation: stamp var(--t-3) var(--ease-stage) 320ms both; }
  @keyframes stamp { from { opacity: 0; transform: scale(1.12) rotate(-2deg); } 60% { opacity: 1; transform: scale(0.98) rotate(0.4deg); } to { transform: none; } }
}
.side-links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.side-links a { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; min-height: 44px; padding: 8px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.side-links a:hover { color: var(--gold-ink); }
.side-links .ico { color: var(--gold-ink); }
.side-links small { display: block; color: var(--muted); font-size: 0.8125rem; }
.side-links .n { font-family: var(--narrow); font-stretch: 75%; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.875rem; }
.programme-side .creator-sign, .programme-side .powered { margin: 0; }

/* the card that takes you back */
.resume-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 22px 20px; margin-bottom: 14px; background: var(--stage-bg); color: var(--stage-ink); border-radius: var(--radius); text-decoration: none; overflow: hidden; transition: transform var(--t-1) var(--ease-out), box-shadow var(--t-2) var(--ease-out); }
.resume-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.resume-play { width: 52px; height: 52px; border-radius: 50%; background: var(--vermilion); color: #fff; display: inline-flex; align-items: center; justify-content: center; padding-left: 3px; flex: none; }
.resume-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.resume-card .eyebrow { margin: 0; color: var(--gold); }
:root[data-theme="dark"] .resume-card { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.resume-card b { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-meta { color: var(--stage-muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.resume-go { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--action); color: #fff; font-weight: 600; border-radius: var(--radius-sm); white-space: nowrap; }
.resume-card:hover .resume-go { background: var(--action-deep); }
.resume-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--stage-line); }
.resume-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--gold); }
@media (max-width: 560px) { .resume-card { grid-template-columns: auto minmax(0, 1fr); padding: 16px; } .resume-go { grid-column: 1 / -1; justify-content: center; } .resume-card b { white-space: normal; } }

/* the newest word from the creator */
a.latest { text-decoration: none; margin-bottom: 0; }
a.latest:hover { border-color: var(--line-strong); }
.latest-when { color: var(--muted); font-size: 0.875rem; white-space: nowrap; }

/* acts and their lessons */
.act { margin-top: 36px; scroll-margin-top: 76px; }
.act:target .act-top { border-bottom-color: var(--gold); }
.act-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 10px; border-bottom: 3px double var(--line-strong); }
.act-top h2 { margin: 0; font-size: 1.5rem; }
.act-top p { margin: 4px 0 0; color: var(--muted); font-size: 0.94rem; }
.act-count { font-family: var(--narrow); font-stretch: 75%; font-size: 0.875rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lessons { counter-reset: lesson; }
.lesson { border-bottom: 1px solid var(--line); }
.lesson a { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 64px; padding: 12px 10px; margin: 0 -10px; text-decoration: none; color: var(--ink); border-radius: var(--radius-sm); transition: background var(--t-1); }
.lesson a:hover { background: var(--hover); }
.lesson-kind { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink-soft); }
.lesson a:hover .lesson-kind { border-color: var(--gold-ink); color: var(--gold-ink); }
.lesson-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lesson-title { font-weight: 600; font-size: 1.02rem; }
.lesson-meta { color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.lesson-state { display: inline-flex; align-items: center; gap: 6px; font-family: var(--narrow); font-stretch: 75%; font-size: 0.875rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lesson-state.is-going { color: var(--gold-ink); background: var(--gold-tint); padding: 3px 10px; border-radius: 999px; }
.lesson-state.is-done { color: var(--muted); font-weight: 500; }
.lesson.is-done .lesson-kind { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.lesson-bar { position: absolute; left: 54px; right: 10px; bottom: 5px; height: 2px; background: var(--line); }
.lesson-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--gold); }
.lesson.is-current a { background: var(--gold-tint); }
@media (max-width: 560px) { .lesson a { grid-template-columns: 30px minmax(0, 1fr); } .lesson-state { grid-column: 2; justify-self: start; } .act-top { flex-direction: column; gap: 4px; } }

/* ================================================================================================
   2026-10 redesign · R3 · the library
   A shelf of posters; the way back to where you stopped stands above it.
   ================================================================================================ */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 32px 28px; }
.shelf-item { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); }
.shelf-item .poster { margin-bottom: 10px; transition: transform var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease-out); }
.shelf-item:hover .poster, .shelf-item:focus-visible .poster { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.14), 0 18px 40px rgba(0, 0, 0, 0.2); }
.shelf-name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.shelf-meta { color: var(--muted); font-size: 0.875rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.shelf-label { margin: 0 0 14px; }
.shelf + .shelf-label, .resume-card + .shelf-label { margin-top: 40px; }
.resume-card + .shelf { margin-top: 28px; }
@media (max-width: 480px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
.empty-shelf { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 36px; align-items: center; max-width: 720px; margin: 8px auto 0; }
.empty-art .poster { transform: rotate(-3deg); opacity: 0.9; }
.empty-text h2 { margin-bottom: 8px; }
.empty-text p { color: var(--ink-soft); margin: 0 0 14px; max-width: 46ch; }
@media (max-width: 560px) { .empty-shelf { grid-template-columns: 1fr; } .empty-art { width: 132px; } }
.page { clip-path: inset(0 -120px 0 -120px); }
body.landing .page, body.work .page { clip-path: none; }

/* ================================================================================================
   2026-10 redesign · R2 · the lesson: a stage and a prompt book
   One screen to practise on. The stage and its transport on the left, always dark; beside it the
   prompt book (chapters, notes, the other lessons) on paper, with the note field always at hand.
   Wide screens fit the whole workspace into the window; narrow ones stack it and pin the picture.
   ================================================================================================ */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.work .page { max-width: none; padding: 0; background: none; box-shadow: none; }
.work .reader { --book: clamp(320px, 27vw, 420px); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--book); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "head book" "main book"; height: max(560px, calc(100dvh - 56px)); background: var(--proscenium); color: var(--stage-ink); border-bottom: 2px solid var(--gold); }
.stage-head { grid-area: head; padding: 14px 24px 12px; min-width: 0; }
.stage-head .back { margin: 0 0 2px; color: var(--stage-muted); font-size: 0.875rem; min-height: 24px; }
.stage-head .back:hover { color: var(--gold); }
.stage-head h1 { margin: 0; font-size: 1.5rem; line-height: 1.2; color: var(--stage-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-note { margin: 6px 0 0; color: var(--stage-muted); font-size: 0.9rem; }
.stage-note b, .stage-note .link { color: var(--stage-ink); }
.stage-note .chip { color: var(--gold); border-color: var(--gold); background: none; margin-right: 6px; }
.work .reader-main { grid-area: main; min-width: 0; min-height: 0; padding: 0 24px; }
.work .proscenium { container-type: size; height: 100%; display: flex; flex-direction: column; min-height: 0; }
.work .stage { flex: none; border-radius: 0; box-shadow: none; margin: auto; }
.work .stage-video { width: 100%; width: min(100cqw, calc((100cqh - 122px) * 16 / 9)); aspect-ratio: 16 / 9; }
.work .stage-pdf, .work .stage-epub, .work .stage-text { width: 100%; height: auto; flex: 1 1 auto; min-height: 0; }
.work .stage-audio { width: 100%; flex: 1 1 auto; min-height: 220px; margin: 0; justify-content: center; background: none; padding: 16px 0; }
.work .stage-audio .wave { flex: none; }
.work .stage-audio .bigplay { margin: 4px 0 0; } /* the shared play button centres itself with auto margins; here that would push the waveform to the top of a tall stage */
.wave-note { color: var(--stage-muted); }
video.mirrored { transform: scaleX(-1); }

/* what the stage says about itself: mirrored, rehearsing, counting down */
.stage-chips { position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.stage-chip { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; background: rgba(18, 16, 16, 0.8); border: 1px solid var(--stage-line-strong); border-radius: 999px; color: var(--stage-ink); font-family: var(--narrow); font-stretch: 75%; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.stage-chip button { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.stage-chip button:hover { background: none; color: var(--stage-ink); }
.countdown { position: absolute; inset: 0; z-index: 4; margin: auto; width: 136px; height: 136px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: rgba(18, 16, 16, 0.84); border: 2px solid var(--gold); border-radius: 50%; color: var(--stage-ink); pointer-events: none; }
.countdown[hidden] { display: none; }
.countdown b { font-family: var(--display); font-weight: 600; font-size: 3.4rem; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.countdown span { font-family: var(--narrow); font-stretch: 75%; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stage-muted); }

/* the transport: the line of the piece on top, the controls under it */
.transport { position: relative; flex: none; width: 100%; padding: 2px 0 12px; container: transport / inline-size; }
/* the key hints teach the shortcuts where there is room for them; on a narrower transport the buttons keep their names */
/* on a laptop the bar has room for one key hint: the loop's, because its key changes with each step ([ then ] then \). The rest are in the tooltips, the first tip and the shortcuts sheet; a wide screen shows them all. */
@container transport (max-width: 1240px) { .work .bar .ctl .key { display: none; } .work .bar #loop .key { display: inline-block; } .work .bar #help .lbl { display: none; } }
@container transport (max-width: 940px) { .work .bar #loop .key { display: none; } }
@container transport (max-width: 860px) { .work .bar #rehearse-btn .lbl, .work .bar #mirror .lbl, .work .bar #cc .lbl { display: none; } .now-title { max-width: 18ch; } }
/* what gives way as the bar narrows, in this order: the key hints, the labels, the arrows beside the chapter name, and on the smallest phones the name itself. The time never does. */
@container transport (max-width: 900px) { .now .ctl.mini { display: none; } }
@container transport (max-width: 335px) { .work .bar .now { display: none; } }
@container transport (max-width: 400px) { .work[data-type="pdf"] .bar .now, .work[data-type="epub"] .bar .now { display: none; } } /* two page arrows lead this bar, so the name runs out of room sooner */
.work .tl { display: block; width: 100%; height: 58px; flex: none; }
.work .tl-track { top: 42px; height: 8px; border-radius: 1px; background: rgba(239, 233, 220, 0.24); overflow: hidden; transition: height var(--t-1), top var(--t-1); }
.work .tl:hover .tl-track, .tl-slider:focus-visible + .tl-track { top: 41px; height: 10px; }
.tl-slider { position: absolute; left: 0; right: 0; top: 34px; height: 24px; outline: none; }
.tl-slider:focus-visible + .tl-track { overflow: visible; box-shadow: 0 0 0 2px var(--proscenium), 0 0 0 4px var(--gold); }
.work .tl-loop { background: rgba(217, 177, 92, 0.34); }
.work .tl-head { top: 38px; width: 16px; height: 16px; margin-left: -8px; background: var(--gold); border: 3px solid var(--proscenium); box-shadow: 0 0 0 1px var(--gold); }
/* chapters cut the line into parts */
.work .tl-chapters { top: 41px; height: 10px; }
.work .tl-chapters .tick { top: 0; width: 3px; height: 10px; margin-left: -1.5px; background: var(--proscenium); opacity: 1; border-radius: 0; }
/* notes stand on the line as pins; neighbours step up a row instead of covering each other */
.work .tl-markers { top: 14px; height: 24px; }
.work .mk { top: calc(var(--row, 0) * -15px); width: 24px; height: 24px; min-width: 0; padding: 0; margin-left: -12px; border: 2px solid var(--proscenium); font-size: 0.75rem; line-height: 1; }
.work .mk:hover { background: var(--gold); }
.work .mk.private:hover { background: var(--proscenium); }
.work .mk:active { transform: scale(1.1); }
.work .mk::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: calc(4px + var(--row, 0) * 15px); background: var(--gold); opacity: 0.7; }
.work .mk.private { background: var(--proscenium); }
.work .mk:focus-visible { outline: 2px solid var(--stage-ink); outline-offset: 2px; transform: scale(1.2); z-index: 2; }
.work .mk .tip { bottom: 32px; background: var(--stage-ink); color: var(--stage-bg); }
.work .mk:focus-visible .tip { display: block; }
.work .tl-preview { bottom: 26px; }
.work .tl-preview span { white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.work .bar { display: flex; align-items: center; gap: 8px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; flex-wrap: nowrap; }
.bar-start, .bar-tools, .bar-end { display: flex; align-items: center; gap: 4px; min-width: 0; }
.bar-start { flex: 1 1 auto; gap: 10px; }
.bar-tools { flex: none; }
.bar-end { flex: none; padding-left: 6px; margin-left: 2px; border-left: 1px solid var(--stage-line); }
.work .bar #play { width: 44px; min-width: 44px; height: 44px; }
.work .bar .ctl { height: 40px; min-width: 40px; }
.work .bar .ctl .lbl { margin-left: 2px; }
.work .bar .ctl .in-more { display: none; }
.work .bar .ctl[aria-pressed="true"], .work .bar #loop.on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.work .bar .ctl[aria-pressed="true"] .key, .work .bar #loop.on .key { background: rgba(18, 16, 16, 0.12); color: var(--on-gold); border-color: rgba(18, 16, 16, 0.3); }
.work .bar #loop, .work .bar #mirror, .work .bar #rehearse-btn { border: 1px solid var(--stage-line-strong); border-radius: 999px; padding: 0 12px; }
.work .bar #rehearse-btn[aria-expanded="true"] { background: var(--stage-raised); }
.work .bar #help, .work .bar #fs, .work .bar #more { color: var(--stage-muted); }
.work .bar #help:hover, .work .bar #fs:hover, .work .bar #more:hover { color: var(--stage-ink); }
.work .bar .more-toggle { display: none; }
.work .time { flex: none; min-width: 0; font-size: 0.9rem; color: var(--stage-ink); } /* the time never gives way: the chapter name beside it is the part that shortens */
.now { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.now[hidden] { display: none; }
.now .ctl.mini { color: var(--stage-muted); border-color: transparent; min-width: 32px; height: 32px; }
.now-title { min-width: 0; max-width: 30ch; padding: 4px 6px; background: none; border: 0; color: var(--stage-muted); font: inherit; font-size: 0.9rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.now-title:hover { background: none; color: var(--gold); }

/* rehearse: a small sheet over the transport */
.rehearse { position: absolute; right: 0; bottom: calc(100% - 44px); z-index: 8; width: min(380px, 100%); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; background: var(--stage-surface); color: var(--stage-ink); border: 1px solid var(--stage-line-strong); border-radius: var(--radius); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55); }
.rehearse[hidden] { display: none; }
.rehearse h2 { margin: 0; font-size: 1.25rem; }
.rehearse .fine { margin: -6px 0 0; color: var(--stage-muted); }
.rehearse fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; }
.rehearse legend, .rehearse-row label { padding: 0; margin-bottom: 4px; font-family: var(--narrow); font-stretch: 75%; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stage-muted); }
.rehearse-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rehearse-row label { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.rehearse select { width: 100%; padding: 9px 10px; background: var(--stage-bg); color: var(--stage-ink); border: 1px solid var(--stage-line-strong); border-radius: var(--radius-sm); font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; font-stretch: 100%; }
.rehearse .check { align-items: flex-start; color: var(--stage-ink); font-size: 0.94rem; line-height: 1.4; }
.rehearse .check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.rehearse .muted { color: var(--stage-muted); }
.rehearse button.secondary { color: var(--stage-ink); border-color: var(--stage-line-strong); }
.rehearse button.secondary:hover { background: var(--stage-raised); border-color: var(--stage-ink); }

/* the prompt book */
.promptbook { grid-area: book; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-left: 1px solid var(--stage-line); margin: 0; }
.pb-tabs { flex: none; display: flex; gap: 2px; padding: 0 10px; background: var(--shell); border-bottom: 1px solid var(--line-strong); }
.pb-tabs [role="tab"] { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin-bottom: -1px; padding: 15px 10px 13px; color: var(--muted); font-weight: 500; font-size: 0.94rem; }
.pb-tabs [role="tab"]:hover { background: none; color: var(--ink); }
.pb-tabs [role="tab"][aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--gold); }
.pb-tabs [role="tab"][hidden] { display: none; }
.pb-tabs .n { min-width: 22px; padding: 1px 7px; background: var(--raised); border-radius: 999px; font-family: var(--narrow); font-stretch: 75%; font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pb-tabs .n:empty { display: none; }
.pb-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 6px 16px 18px; }
.pb-panel[hidden] { display: none; }
.pb-more { margin: 14px 0 0; font-size: 0.9rem; }
.work .chapters { margin: 0; }
.work .chapters-tools { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 0 4px; }
.work .chapter-form { background: var(--surface); }
.work .chapter-go { grid-template-columns: 22px minmax(0, 1fr) auto; min-height: 48px; padding: 8px; }
.work .chapter-title { white-space: normal; }
.work .chapter-list li.on .chapter-go { background: var(--gold-tint); box-shadow: inset 2px 0 0 var(--gold); }
.work .chapter-list li { flex-wrap: wrap; }
.work .chapter-tools { display: none; flex-basis: 100%; padding: 0 0 8px 38px; gap: 14px; }
.work .chapter-list li.on .chapter-tools, .work .chapter-list li:focus-within .chapter-tools { display: flex; }
@media (hover: hover) { .work .chapter-list li:hover .chapter-tools { display: flex; } }
.work .chapter-at b { font-weight: 600; color: var(--ink-soft); }
.work .notes-head { justify-content: flex-end; padding: 10px 0 0; }
.work .notes li { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 8px; margin: 0 -8px; }
.work .notes li.now { box-shadow: inset 2px 0 0 var(--gold); }
.work .notes .jump { border: 0; cursor: pointer; font-size: 0.82rem; line-height: 1.5; }
.work .notes .del { grid-row: auto; font-size: 0.82rem; }
.work .notes .only-me { display: inline-flex; align-items: center; gap: 4px; }
.work .composer { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; margin: 0; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line-strong); }
.work .composer input[name="body"] { grid-column: 1 / -1; }
.work .composer .lock { justify-self: start; min-height: 32px; }
.work .composer .lock .ico { color: var(--muted); }
.work .composer .lock input:checked ~ .ico { color: var(--gold-ink); }
.lessons.compact .lesson a { min-height: 56px; padding: 9px 8px; margin: 0 -8px; gap: 12px; }
.lessons.compact .lesson-title { font-size: 0.96rem; }
.lessons.compact .lesson-state.is-going { padding: 2px 8px; font-size: 0.8125rem; }
.lessons.compact .lesson-state.is-done span { display: none; }
.lessons.compact .lesson-bar { left: 50px; right: 8px; bottom: 4px; }

/* on this page a toast speaks from the top, so it never covers the controls */
body.work .toasts { bottom: auto; top: 68px; }
body.work .toast { transform: translateY(-10px); }
body.work .toast.show { transform: none; }

/* under the workspace, on paper */
.below { max-width: 1000px; margin: 0 auto; padding: 22px 20px 72px; }
.promptbook .coach { flex-wrap: wrap; margin: 10px 0 6px; }
.promptbook .coach button { margin-left: 0; }
.lesson-about { max-width: 68ch; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; margin: 0 0 22px; white-space: pre-line; }
.around { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.around a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color var(--t-1), background var(--t-1); }
.around a:hover { border-color: var(--line-strong); background: var(--raised); }
.around .ico { color: var(--gold-ink); }
.around span { display: flex; flex-direction: column; min-width: 0; }
.around small { font-family: var(--narrow); font-stretch: 75%; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.around-next { justify-content: flex-end; text-align: right; }

/* a narrower window: the workspace stacks; the picture stays in sight while you read beside it */
@media (max-width: 1099px) {
  .work .reader { display: flex; flex-direction: column; height: auto; }
  .work .reader-main { padding: 0 16px; }
  .work .proscenium { container-type: normal; height: auto; display: block; }
  .work .stage-video { width: 100%; }
  .work .stage-pdf, .work .stage-epub, .work .stage-text { height: min(68dvh, 820px); }
  .promptbook { border-left: 0; border-top: 2px solid var(--gold); }
  .pb-body { overflow: visible; min-height: 240px; }
  .work .composer { position: sticky; bottom: 0; z-index: 4; }
  .stage-head { padding: 12px 16px 10px; }
  .stage-head h1 { font-size: 1.25rem; white-space: normal; }
}
@media (max-width: 1099px) and (min-height: 520px) {
  .work[data-type="video"] .reader-main, .work[data-type="video"] .proscenium { display: contents; }
  .work[data-type="video"] .stage-video { position: sticky; top: 0; z-index: 6; }
  .work[data-type="video"] .transport { padding: 2px 16px 10px; }
}
@media (max-width: 720px) {
  .row-actions { flex-wrap: wrap; } /* a note beside a button goes under it instead of breaking the button's label */
  .work .bar { gap: 4px; }
  .work .bar .more-toggle { display: inline-flex; }
  .work .bar #help { display: none; }
  /* the practice tools open as a second row under the bar: nothing is laid over the timeline or the picture */
  .work .bar { flex-wrap: wrap; }
  .work .bar .bar-start { flex: 1 1 0; gap: 8px; }
  .bar-tools { display: none; order: 3; flex: 1 1 100%; flex-wrap: wrap; gap: 8px; padding: 10px 0 4px; }
  .bar-tools.open { display: flex; }
  .bar-tools .ctl { flex: 1 1 40%; justify-content: center; border: 1px solid var(--stage-line-strong) !important; border-radius: var(--radius-sm) !important; min-height: 44px; }
  .work .bar .bar-tools .ctl .lbl { display: inline !important; }
  .work .composer { grid-template-columns: minmax(0, 1fr) auto; }
  .work .composer input[name="body"] { grid-column: 1; }
  .work .composer .lock { grid-row: 2; display: none; }
  .work .composer:focus-within .lock, .work .composer .lock:has(input:checked) { display: inline-flex; }
  .bar-end { border-left: 0; margin-left: auto; padding-left: 0; }
  .now-title { max-width: 22ch; }
  .now .ctl.mini { display: none; }
  .rehearse { left: 8px; right: 8px; width: auto; bottom: calc(100% - 52px); }
  .around { grid-template-columns: 1fr; }
}

/* full screen: the picture alone, or with the prompt book beside it */
.fs-hud, .fs-zone { display: none; }
.reader:fullscreen, .reader.is-full { position: fixed; inset: 0; z-index: 60; width: 100vw; height: 100vh; height: 100dvh; margin: 0; border: 0; background: #0b0a09; display: flex; flex-direction: row; overflow: hidden; }
.reader:fullscreen .stage-head, .reader.is-full .stage-head { display: none; }
.reader:fullscreen .reader-main, .reader.is-full .reader-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding: 0; }
.reader:fullscreen .proscenium, .reader.is-full .proscenium { container-type: normal; flex: 1 1 auto; min-height: 0; height: auto; display: flex; flex-direction: column; }
.reader:fullscreen .stage, .reader.is-full .stage { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; height: auto; max-height: none; aspect-ratio: auto; margin: 0; }
.reader:fullscreen .stage-video video, .reader.is-full .stage-video video { width: 100%; height: 100%; object-fit: contain; }
.reader:fullscreen .stage-video .bigplay, .reader.is-full .stage-video .bigplay { display: none; }
.reader:fullscreen .stage-pdf, .reader.is-full .stage-pdf { background: #0b0a09; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); align-items: center; }
.reader:fullscreen .stage-epub, .reader.is-full .stage-epub, .reader:fullscreen .stage-text, .reader.is-full .stage-text { background: var(--white); }
.reader:fullscreen .stage-text, .reader.is-full .stage-text { padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); }
.reader:fullscreen:not(.with-notes) .transport, .reader.is-full:not(.with-notes) .transport,
.reader:fullscreen:not(.with-notes) .promptbook, .reader.is-full:not(.with-notes) .promptbook { display: none; }
.reader:fullscreen.with-notes .transport, .reader.is-full.with-notes .transport { display: block; padding: 2px 16px 10px; }
.reader:fullscreen.with-notes .stage-video .bigplay, .reader.is-full.with-notes .stage-video .bigplay { display: inline-flex; }
.reader:fullscreen.with-notes .promptbook, .reader.is-full.with-notes .promptbook { display: flex; flex: 0 0 min(440px, 32%); border-left: 1px solid var(--stage-line); border-top: 0; }
.reader:fullscreen.with-notes .pb-body, .reader.is-full.with-notes .pb-body { overflow: auto; }
.reader:fullscreen .fs-zone, .reader.is-full .fs-zone { display: block; position: absolute; top: 0; bottom: 0; width: 28%; z-index: 2; cursor: pointer; }
.reader:fullscreen .fs-prev, .reader.is-full .fs-prev { left: 0; }
.reader:fullscreen .fs-next, .reader.is-full .fs-next { right: 0; }
.reader:fullscreen .fs-hud, .reader.is-full .fs-hud { display: flex; position: absolute; top: max(10px, env(safe-area-inset-top)); left: 0; right: 0; z-index: 5; justify-content: space-between; align-items: center; padding: 0 14px; opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.reader:fullscreen .fs-hud.show, .reader.is-full .fs-hud.show, .reader:fullscreen.with-notes .fs-hud, .reader.is-full.with-notes .fs-hud { opacity: 1; pointer-events: auto; }
.reader:fullscreen .stage-chips, .reader.is-full .stage-chips { top: 58px; }
.reader:fullscreen .flash, .reader.is-full .flash { bottom: 72px; }
.fs-hud-right { display: flex; gap: 8px; align-items: center; }
.fs-status { background: rgba(18, 16, 16, 0.78); border: 1px solid var(--stage-line); color: var(--stage-ink); font-family: var(--narrow); font-stretch: 75%; font-size: 0.85rem; padding: 5px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.fs-status:empty { display: none; }
.fs-exit { width: 44px; height: 44px; border-radius: 50%; background: rgba(18, 16, 16, 0.78); color: var(--stage-ink); border: 1px solid var(--stage-line); padding: 0; justify-content: center; }
.fs-notes { height: 44px; border-radius: 999px; background: rgba(18, 16, 16, 0.78); color: var(--stage-ink); border: 1px solid var(--stage-line); padding: 0 16px; font-size: 0.9rem; }
.fs-notes.on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.fs-exit:hover, .fs-notes:hover { background: var(--action); border-color: var(--action); color: #fff; }
@media (max-width: 760px) {
  .reader:fullscreen.with-notes, .reader.is-full.with-notes { flex-direction: column; }
  .reader:fullscreen.with-notes .reader-main, .reader.is-full.with-notes .reader-main { flex: 1 1 56%; }
  .reader:fullscreen.with-notes .promptbook, .reader.is-full.with-notes .promptbook { flex: 0 0 44%; border-left: 0; border-top: 2px solid var(--gold); }
}


/* ==========================================================================
   2026-10 redesign · R4 · admission
   The gate is a ticket: its head is the product in its own ink, the tear line parts it from the three steps.
   No band above it and nothing beside it: one thing to do on this page.
   ========================================================================== */
body.entrance .page { background: none; box-shadow: none; clip-path: none; padding-top: clamp(20px, 6vh, 64px); }
.ticket { max-width: 460px; margin: 0 auto 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 18px 48px rgba(0, 0, 0, 0.10); }
.ticket-stub { position: relative; overflow: hidden; padding: 26px 28px 24px; min-height: 148px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--p-bg); color: var(--p-ink); border-radius: var(--radius) var(--radius) 0 0; }
.ticket-stub::before { content: ""; position: absolute; inset: 8px; border: 1px solid currentColor; opacity: 0.28; pointer-events: none; }
.stub-kind { margin: 0 0 auto; padding-bottom: 18px; font-family: var(--narrow); font-stretch: 75%; font-weight: 650; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--p-kind); position: relative; z-index: 1; max-width: 62%; }
.ticket-stub h1 { margin: 0; font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.375rem); line-height: 1.02; letter-spacing: -0.02em; color: inherit; text-wrap: balance; max-width: 78%; position: relative; z-index: 1; overflow-wrap: anywhere; }
.stub-by { margin: 8px 0 0; font-size: 0.9375rem; font-weight: 500; color: inherit; opacity: 0.92; position: relative; z-index: 1; }
.stub-emblem { position: absolute; right: 18px; top: 50%; width: 132px; height: 132px; transform: translateY(-50%) rotate(-8deg); stroke: var(--p-emblem); stroke-width: 1.5px; opacity: 0.55; }
/* the tear: a dashed line and a notch bitten out of each edge */
.ticket-tear { position: relative; height: 0; border-top: 1px dashed var(--line-strong); }
.ticket-tear::before, .ticket-tear::after { content: ""; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.ticket-tear::before { left: -10px; clip-path: inset(0 0 0 50%); }
.ticket-tear::after { right: -10px; clip-path: inset(0 50% 0 0); }
.ticket-body { padding: 22px 28px 24px; }
.ticket-body h2 { margin: 0 0 6px; font-size: 1.375rem; line-height: 1.2; }
.ticket-body > .muted { margin: 0 0 16px; }
.ticket-body .error { margin: 0 0 14px; }
.ticket-body form { margin-bottom: 14px; }
.ticket-body form button[type="submit"] { min-height: 48px; }
.ticket-body .powered { margin: 18px 0 0; }
.gate-closed { margin: 0; font-size: 1.0625rem; }

/* three named steps: done, now, to come */
.stepper { list-style: none; display: flex; gap: 6px 14px; flex-wrap: wrap; padding: 0; margin: 0 0 18px; font-family: var(--narrow); font-stretch: 75%; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.stepper li { display: inline-flex; align-items: center; gap: 7px; }
.stepper li + li::before { content: ""; width: 14px; height: 1px; background: var(--line-strong); margin-right: 7px; }
.stepper-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 0.6875rem; letter-spacing: 0; line-height: 1; font-variant-numeric: tabular-nums; }
.stepper .is-now { color: var(--ink); }
.stepper .is-now .stepper-n { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.stepper .is-done { color: var(--gold-ink); }
.stepper .is-done .stepper-n { border-color: var(--gold); color: var(--gold-ink); }

/* what a person copies from paper is shown as typed, in an even hand; a code is set wide */
input.as-typed { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.0625rem; letter-spacing: 0.04em; }
input.otp { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.5rem; letter-spacing: 0.32em; text-align: center; padding-left: 0.32em; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .stepper { gap: 6px 8px; letter-spacing: 0.08em; }
  .stepper li { gap: 5px; }
  .stepper li + li::before { width: 8px; margin-right: 3px; }
  body.entrance .page { padding-top: 14px; }
  .ticket { margin-inline: -4px; }
  .ticket-stub { padding: 22px 22px 20px; min-height: 132px; }
  .ticket-body { padding: 20px 22px 22px; }
  .stub-emblem { width: 108px; height: 108px; right: 10px; }
}


/* ==========================================================================
   2026-10 redesign · R6 · the creator's workspace
   One product, six panels. The tabs stand on the band's gold rule; the open one is cut from the page's own paper.
   ========================================================================== */
.worktabs { display: flex; gap: 2px; margin: 22px -6px -28px; padding: 0 0 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.worktabs::-webkit-scrollbar { display: none; }
.worktabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; font-size: 0.9375rem; color: var(--shell-muted); text-decoration: none; border: 1px solid transparent; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; white-space: nowrap; }
.worktabs a:hover { color: var(--shell-ink); background: var(--hover); }
.worktabs a[aria-current] { color: var(--ink); font-weight: 600; background: var(--paper); border-color: var(--gold); box-shadow: 0 2px 0 var(--paper); }
.worktabs .n { font-family: var(--narrow); font-stretch: 75%; font-weight: 600; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.worktabs .n.is-marked { color: var(--on-gold); background: var(--gold); padding: 1px 7px; border-radius: 999px; }
body:not(.has-worktabs) .worktabs a:first-child { color: var(--ink); }
body.workspace .page { padding-top: 28px; }
.workpanel[hidden] { display: none; }
.workpanel { scroll-margin-top: 72px; }
/* overview: what is left to do on the left, what to ship on the right */
.launch { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.launch > .panel { margin-bottom: 0; }
.launch-title { margin: 0; }
.launch-state { margin: 4px 0 0; }
.checklist { list-style: none; margin: 14px 0 0; padding: 0; }
.checklist .is-note .check-mark { border-style: dashed; color: var(--gold-ink); }
.checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.check-mark { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: inline-grid; place-items: center; }
.checklist .is-done .check-mark { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.check-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.check-text b { font-weight: 600; }
.check-text span { color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
.checklist .is-done .check-text b { color: var(--ink-soft); font-weight: 500; }
.check-action { white-space: nowrap; }
.check-action button { min-height: 40px; }
.kit h2 { margin: 0 0 4px; }
.kit > .muted { margin: 0 0 14px; font-size: 0.9375rem; }
.kit-ticket { border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 10px 24px rgba(0, 0, 0, 0.10); margin-bottom: 16px; }
.kit-ticket .ticket-stub { min-height: 124px; padding: 20px 22px 18px; border-radius: 0; }
.kit-ticket .ticket-tear { display: none; }
.stub-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.625rem; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; max-width: 76%; position: relative; z-index: 1; overflow-wrap: anywhere; }
.kit-ticket .stub-emblem { width: 104px; height: 104px; }
.kit-rows { margin: 0; }
.kit-rows > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.kit-rows dt { font-family: var(--narrow); font-stretch: 75%; font-weight: 650; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); }
.kit-rows dd { margin: 0; display: flex; gap: 10px; align-items: center; min-width: 0; }
.kit-rows code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.kit-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: 0.9375rem; }
.kit-links .link { display: inline-flex; align-items: center; gap: 6px; }
/* the product at a glance: four numbers that are also the way to their panels */
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.glance a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color var(--t-1) var(--ease-out), transform var(--t-1) var(--ease-out); }
.glance a:hover { border-color: var(--gold); transform: translateY(-1px); }
.glance b { font-family: var(--display); font-weight: 600; font-size: 1.75rem; line-height: 1; font-variant-numeric: tabular-nums; }
.glance span { color: var(--muted); font-size: 0.875rem; }
.glance a.is-marked { border-color: var(--gold); background: var(--gold-tint); }
.leaving { margin-top: 8px; }
@media (max-width: 860px) { .launch { grid-template-columns: minmax(0, 1fr); } .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  /* six tabs do not fit a phone: the strip scrolls, and its right edge fades to say there is more */
  .worktabs { margin: 18px -16px -20px; padding-inline: 12px 48px; scroll-padding-inline: 12px 48px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .checklist li { grid-template-columns: 26px minmax(0, 1fr); }
  .check-action { grid-column: 2; }
  /* a row's actions wrap under it instead of running off the page */
  .materials .actions { flex-wrap: wrap; justify-content: flex-start; gap: 4px 14px; padding-left: 0; }
  .materials .actions .link, .faq-list .actions .link { white-space: nowrap; }
  .faq-list li { flex-wrap: wrap; }
  .faq-list .actions { flex-basis: 100%; flex-wrap: wrap; }
  .section-add { flex-direction: column; align-items: stretch; }
  .section-add input { flex: none; width: 100%; } /* in a column the 200 px basis would become a height */
  /* a panel's title keeps its line; the note about it goes underneath */
  .workpanel .panel-head { flex-direction: column; gap: 6px; }
  .workpanel .grid th, .workpanel .grid td { padding-inline: 6px; }
  .workpanel .grid td.person .meta { overflow-wrap: anywhere; }
}


/* ==========================================================================
   2026-10 redesign · R7 · the practice mirror
   The teacher on the left, your own hands on the right, at the same size. Your side is flipped, as a mirror is.
   ========================================================================== */
.selfview[hidden] { display: none; }
.work .stage-video.with-self { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; gap: 2px; aspect-ratio: 32 / 9; width: min(100cqw, calc((100cqh - 122px) * 32 / 9)); background: var(--stage-bg); }
.work .stage-video.with-self > video { min-width: 0; min-height: 0; aspect-ratio: 16 / 9; object-fit: contain; }
.work .stage-video.with-self > #video { grid-area: 1 / 1; }
.work .stage-video .selfview { grid-area: 1 / 2; transform: scaleX(-1); object-fit: cover; }
.self-note { grid-area: 1 / 2; align-self: end; justify-self: start; z-index: 3; margin: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(18, 16, 16, 0.78); border: 1px solid var(--stage-line-strong); color: var(--stage-ink); font-family: var(--narrow); font-stretch: 75%; font-weight: 600; font-size: 0.8125rem; line-height: 1.4; pointer-events: none; }
.self-note[hidden] { display: none; }
.work .stage-video.with-self .bigplay { right: 50%; }
.work .bar #camera { border: 1px solid var(--stage-line-strong); border-radius: 999px; padding: 0 12px; }
.work .bar #camera[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.work .bar #camera[hidden] { display: none; }
.work .bar #cc[hidden] { display: none; }
@container transport (max-width: 980px) { .work .bar #camera .lbl { display: none; } }
/* on a narrow screen the two pictures stack: the teacher above, you below */
@media (max-width: 1099px) {
  .work .stage-video.with-self { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; aspect-ratio: auto; width: 100%; }
  .work .stage-video .selfview, .self-note { grid-area: 2 / 1; }
  .work .stage-video.with-self .bigplay { right: 0; bottom: 50%; }
}
.reader:fullscreen .stage-video.with-self, .reader.is-full .stage-video.with-self { width: 100%; height: 100%; aspect-ratio: auto; align-content: center; }
.reader:fullscreen .stage-video.with-self > video, .reader.is-full .stage-video.with-self > video { height: auto; }
@media (orientation: portrait) {
  .reader:fullscreen .stage-video.with-self, .reader.is-full .stage-video.with-self { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
  .reader:fullscreen .stage-video .selfview, .reader.is-full .stage-video .selfview, .reader:fullscreen .self-note, .reader.is-full .self-note { grid-area: 2 / 1; }
}


/* ==========================================================================
   2026-10 redesign · R8 · the front of house
   The landing on paper: a wall of playbills beside the claim, the lesson as it now looks, and what stays yours.
   ========================================================================== */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px 48px; align-items: center; padding: 44px 0 30px; }
.lp-hero .eyebrow { color: var(--gold-ink); }
.lp-hero h1 { font-size: clamp(2.75rem, 1.2rem + 5.4vw, 5.25rem); line-height: 0.98; margin: 14px 0 24px; letter-spacing: -0.02em; font-weight: 600; }
.lp-hero h1 em { font-style: italic; color: var(--vermilion); font-weight: 500; }
.lp-hero .lead { font-size: 1.22rem; line-height: 1.5; max-width: 34em; color: var(--ink-soft); margin: 0 0 26px; }
.lp-hero .hero-actions { margin: 0; }
/* three playbills, pinned a little askew */
.lp-wall { position: relative; height: clamp(260px, 27vw, 340px); }
.lp-wall-item { position: absolute; top: 50%; width: 35%; transition: transform var(--t-3) var(--ease-stage); }
.lp-wall-item.is-left { left: 0; transform: translateY(-56%) rotate(-5deg); }
.lp-wall-item.is-mid { left: 32.5%; transform: translateY(-47%) rotate(1.5deg); z-index: 2; }
.lp-wall-item.is-right { left: 65%; transform: translateY(-55%) rotate(6deg); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lp-wall:hover .is-left { transform: translateY(-58%) rotate(-7deg); }
  .lp-wall:hover .is-mid { transform: translateY(-50%) rotate(0deg); }
  .lp-wall:hover .is-right { transform: translateY(-57%) rotate(8deg); }
}
body.landing .hero-note { grid-column: 1 / -1; max-width: 720px; margin: 6px 0 0; }

/* the lesson, in miniature: the same stage and prompt book a user gets */
.lp-show { margin: 52px 0 0; }
.lp-stage { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 30%, 320px); background: var(--proscenium); border: 1px solid var(--stage-line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 28px 70px rgba(0, 0, 0, 0.22); color: var(--stage-ink); }
.lp-stage-main { min-width: 0; padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.lp-stage-head { display: flex; flex-direction: column; gap: 2px; }
.lp-crumb { font-size: 0.8125rem; color: var(--stage-muted); }
.lp-title { font-family: var(--display); font-weight: 600; font-size: 1.375rem; line-height: 1.15; }
.lp-video { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(ellipse at 62% 38%, #3a2b24 0%, #1a1413 55%, #0b0a09 100%); display: grid; place-items: center; }
.lp-playbig { width: 68px; height: 68px; border-radius: 50%; background: var(--vermilion); color: #fff; display: inline-grid; place-items: center; padding-left: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.lp-chip { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--stage-line-strong); background: rgba(18, 16, 16, 0.8); font-family: var(--narrow); font-stretch: 75%; font-weight: 600; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.lp-tl { position: relative; display: flex; gap: 3px; padding-top: 26px; }
.lp-tl i { height: 6px; background: var(--stage-line-strong); position: relative; }
.lp-tl i.is-done { background: var(--gold); }
.lp-tl i.is-now b { position: absolute; inset: 0 55% 0 0; background: var(--gold); }
.lp-tl i.is-now b::after { content: ""; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--proscenium); }
.lp-pin { position: absolute; top: 0; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-size: 0.75rem; font-weight: 600; line-height: 1; display: inline-grid; place-items: center; }
.lp-pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 6px; background: var(--gold); }
.lp-pin.is-mine { background: var(--proscenium); color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.lp-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lp-play { width: 34px; height: 34px; border-radius: 50%; background: var(--vermilion); color: #fff; display: inline-grid; place-items: center; flex: none; }
.lp-time { font-family: var(--narrow); font-stretch: 75%; font-size: 0.875rem; font-variant-numeric: tabular-nums; color: var(--stage-muted); white-space: nowrap; }
.lp-now { font-size: 0.875rem; color: var(--stage-ink); margin-right: auto; white-space: nowrap; }
.lp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--stage-line-strong); border-radius: 999px; font-size: 0.8125rem; color: var(--stage-ink); white-space: nowrap; }
.lp-pill.is-on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 600; }
.lp-book { background: var(--paper); color: var(--ink); border-left: 1px solid var(--stage-line); display: flex; flex-direction: column; min-width: 0; }
.lp-tabs { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--line-strong); font-size: 0.875rem; color: var(--muted); }
.lp-tabs span { padding: 8px 9px 10px; }
.lp-tabs .is-on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); }
.lp-notes { list-style: none; margin: 0; padding: 6px 12px; flex: 1; }
.lp-notes li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 0.875rem; line-height: 1.5; }
.lp-notes li.is-now { background: var(--gold-tint); box-shadow: inset 3px 0 0 var(--gold); }
.lp-notes li.is-now .jump { background: var(--surface); }
.lp-notes .avatar { flex: none; }
.lp-notes .avatar.is-mine { background: var(--surface); color: var(--gold-ink); box-shadow: inset 0 0 0 1.5px var(--gold); }
.lp-notes .jump { font-family: var(--narrow); font-stretch: 75%; color: var(--gold-ink); background: var(--gold-tint); padding: 0 6px; border-radius: 999px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lp-compose { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 12px 12px; padding: 8px 8px 8px 12px; border: 1px solid var(--line-strong); background: var(--field); color: var(--muted); font-size: 0.875rem; }
.lp-compose b { background: var(--action); color: #fff; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-sm); }
.lp-caption { margin: 16px 0 0; color: var(--muted); font-size: 1rem; text-align: center; }

.lp-block { padding: 72px 0 0; }
.lp-block .section-title { margin-bottom: 26px; }
.lp-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px double var(--line-strong); }
.lp-facts li { padding: 22px 22px 24px 0; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.55; }
.lp-facts li:nth-child(3n+2), .lp-facts li:nth-child(3n+3) { padding-left: 22px; border-left: 1px solid var(--line); }
.lp-facts .ico, .lp-keeps .ico { color: var(--gold-ink); margin-bottom: 6px; }
.lp-facts b, .lp-keeps b { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.1875rem; line-height: 1.25; }
.lp-how { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px 56px; align-items: center; }
.lp-ticket { max-width: 360px; justify-self: end; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 18px 48px rgba(0, 0, 0, 0.12); transform: rotate(2deg); }
.lp-ticket .ticket-stub { min-height: 128px; padding: 22px 24px 20px; }
.lp-ticket-body { padding: 18px 24px 22px; display: grid; gap: 8px; }
.lp-field-label { font-size: 0.875rem; color: var(--muted); }
.lp-field { padding: 11px 12px; border: 1px solid var(--line-strong); background: var(--field); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.lp-field-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; background: var(--action); color: #fff; font-weight: 600; border-radius: var(--radius-sm); }
.lp-keeps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.lp-keeps li { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--line-strong); color: var(--muted); line-height: 1.55; }
body.landing .apply { margin-top: 72px; }
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  /* on a phone the buyers' note comes before the poster wall, so it is on the first screen */
  .lp-hero .hero-note { order: 2; margin-top: 0; }
  .lp-hero .lp-wall { order: 3; }
  .lp-wall { height: clamp(200px, 58vw, 330px); max-width: 560px; width: 100%; margin: 0 auto; }
  .lp-stage { grid-template-columns: minmax(0, 1fr); }
  .lp-book { border-left: 0; border-top: 1px solid var(--stage-line); }
  .lp-notes li:nth-child(3) { display: none; }
  .lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-facts li:nth-child(n) { padding-left: 0; border-left: 0; }
  .lp-facts li:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .lp-how { grid-template-columns: minmax(0, 1fr); }
  .lp-ticket { justify-self: start; }
  .lp-keeps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lp-block { padding-top: 52px; }
}
@media (max-width: 560px) {
  .lp-facts { grid-template-columns: minmax(0, 1fr); }
  .lp-facts li:nth-child(n) { padding-left: 0; border-left: 0; }
  .lp-stage-main { padding: 14px 14px 12px; }
  .lp-now { display: none; }
  .lp-caption { text-align: left; }
}


/* ==========================================================================
   2026-10 redesign · R9 · the access card
   Poker size, 63 × 88 mm. On screen the two sides lie next to each other; on paper each sheet is a page.
   Sizes inside a card are in millimetres, so the print is the design.
   ========================================================================== */
.card-tools { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 26px; }
.card-tools .fine { flex-basis: 100%; margin: 0; max-width: 78ch; }
.card-tools .seg-btn { text-decoration: none; }
.kit-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 0; }
.card-pages { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.sheet { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 14px 40px rgba(0, 0, 0, 0.16); }
.sheet-single { width: 63mm; height: 88mm; border-radius: 3mm; overflow: hidden; }
.sheet.sheet-a4 { width: 210mm; height: 297mm; display: grid; grid-template-columns: repeat(3, 63mm); grid-auto-rows: 88mm; justify-content: center; align-content: center; zoom: 0.5; }
.sheet-a4 .card { outline: 0.1mm dashed #9a948a; }
.card { position: relative; width: 63mm; height: 88mm; overflow: hidden; color: #1c1b1a; background: #fbfaf7; font-family: var(--body, "Archivo", sans-serif); }
.card-in { position: absolute; inset: 0; padding: 7mm 6mm 6mm; display: flex; flex-direction: column; }
.card-front { background: var(--p-bg); color: var(--p-ink); }
.card-front .card-in::before { content: ""; position: absolute; inset: 2.6mm; border: 0.2mm solid currentColor; opacity: 0.32; }
.card p { margin: 0; }
.card-kind { font-family: var(--narrow); font-stretch: 75%; font-weight: 650; font-size: 7.4pt; letter-spacing: 0.16em; text-transform: uppercase; color: var(--p-kind); }
.card-rule { height: 1mm; margin: 2.2mm 0 3.2mm !important; border-top: 0.35mm solid currentColor; border-bottom: 0.15mm solid currentColor; }
.card-title { font-family: var(--display); font-weight: 600; font-size: 21pt; line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: anywhere; position: relative; z-index: 1; }
.card-emblem { position: absolute; right: 5mm; bottom: 13mm; width: 36mm; height: 36mm; stroke: var(--p-emblem); stroke-width: 1.4px; opacity: 0.9; }
.card-by { margin-top: auto !important; font-size: 8pt; font-weight: 500; position: relative; z-index: 1; }
.card-back .card-in { padding: 6.5mm 6mm 5mm; align-items: center; text-align: center; }
.card-eyebrow { font-family: var(--narrow); font-stretch: 75%; font-weight: 650; font-size: 7pt; letter-spacing: 0.18em; text-transform: uppercase; color: #7e601c; }
.card-lead { font-size: 8pt; line-height: 1.35; margin: 1.6mm 0 0 !important; color: #3d3934; }
.card-qr { width: 27mm; height: 27mm; margin: 3.4mm 0 2mm; }
.card-qr .qr { width: 100%; height: 100%; display: block; }
.card-link { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 7.2pt; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.card-pass { margin: 3mm 0 0 !important; padding: 1.6mm 3mm 1.8mm; border: 0.3mm solid #1c1b1a; display: flex; flex-direction: column; gap: 0.4mm; min-width: 34mm; }
.card-pass span { font-family: var(--narrow); font-stretch: 75%; font-weight: 650; font-size: 6pt; letter-spacing: 0.18em; text-transform: uppercase; color: #5e5850; }
.card-pass b { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 10.5pt; font-weight: 600; letter-spacing: 0.03em; overflow-wrap: anywhere; }
.card-pass.is-blank b { min-height: 5mm; }
.card-steps { margin-top: auto !important; padding-top: 2.2mm; font-size: 6.4pt; line-height: 1.4; color: #5e5850; }
.card-powered { margin-top: 1.4mm !important; font-size: 6pt; color: #6c665e; }
.card-powered span { font-family: var(--display); font-weight: 600; color: #3d3934; }
@media print {
  .top, .band, footer, .toasts, .skip, .no-print { display: none !important; }
  html, body { background: #fff !important; }
  body.cardpage main, body.cardpage .page { margin: 0; padding: 0; max-width: none; background: none; box-shadow: none; clip-path: none; }
  .card-pages { display: block; }
  .sheet { box-shadow: none; border-radius: 0; break-after: page; }
  .sheet:last-child { break-after: auto; }
  .sheet.sheet-a4 { zoom: 1; }
  .card, .card-front { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* each kind of sheet names its own paper, so only these pages lose the browser's margins */
@page card { size: 63mm 88mm; margin: 0; }
@page cardsheet { size: 210mm 297mm; margin: 0; }
.sheet-single { page: card; }
.sheet.sheet-a4 { page: cardsheet; }


/* ==========================================================================
   2026-10 redesign · R2+ · found by checking the open states
   ========================================================================== */
/* the shortcuts sheet is paper laid over the stage: it takes the page's ink, not the stage's */
.work .help-box { color: var(--ink); }
.work .help-box h2 { color: var(--ink); }
.work .help-box dt { color: var(--ink); align-self: start; }
/* "Continue at" on the row that is already marked as the current one */
.lesson.is-current .lesson-state.is-going { background: var(--surface); }

/* ---- the sample library: the buyers' note, in the programme column */
.sample-note { max-width: none; margin: 0 0 18px; }

/* ---- captions: the line over the picture, the transcript in the prompt book, the creator's captions block */
.captions { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); z-index: 3; max-width: 86%; padding: 5px 12px; background: rgba(18, 16, 16, 0.82); color: #efe8da; font-size: clamp(0.8rem, 1.1vw + 0.55rem, 1.35rem); line-height: 1.35; text-align: center; border-radius: var(--radius-sm); pointer-events: none; text-wrap: balance; }
.captions[hidden] { display: none; }
/* with the camera on, the line sits in the film's cell of the grid, beside or above the self view, never over it */
.stage.with-self .captions { grid-area: 1 / 1 / 2 / 2; }
.transcript-tools { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; }
.transcript-tools input { flex: 1 1 auto; min-width: 0; padding: 7px 10px; font-size: 0.95rem; }
.transcript-tools .muted { flex: none; white-space: nowrap; }
.transcript { display: flex; flex-direction: column; }
.transcript li[hidden] { display: none; }
.transcript-line { display: flex; gap: 10px; align-items: flex-start; justify-content: flex-start; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 8px 6px; color: var(--ink-soft); font-weight: 400; line-height: 1.45; }
.transcript li:first-child .transcript-line { border-top: 0; }
.transcript-line:hover { background: var(--hover); color: var(--ink); }
.transcript-line .t { flex: none; min-width: 3.4em; font-family: var(--narrow); font-stretch: 75%; font-variant-numeric: tabular-nums; font-size: 0.82rem; color: var(--gold-ink); padding-top: 2px; }
.transcript li.on .transcript-line { background: var(--gold-tint); color: var(--ink); }
.captions-manage { padding: 10px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.captions-manage .row-actions { flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.captions-manage .row-actions[hidden] { display: none; }
.captions-manage .inline-label { display: inline-flex; align-items: center; gap: 6px; }
.captions-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.captions-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.92rem; }
.captions-list .actions { margin-left: auto; display: inline-flex; gap: 12px; }
.chip.status-error { color: var(--danger); }
