:root {
  --paper:  #F7F4EE;
  --raised: #EFEBE2;
  --card:   #FDFCFA;
  --ink:    #17140F;
  --muted:  #6E6761;
  --faint:  #9B9490;
  --rule:   #E0DACF;
  --rule-2: #BFB8AB;

  --panel:       #15191D;
  --panel-ink:   #E8EDF1;
  --panel-bright:#F2F5F7;
  --panel-muted: #8A99A6;
  --panel-faint: #5C6B78;
  --panel-rule:  #2A3138;

  --accent:     #5546D8;
  --accent-ink: #3A2FA8;
  --accent-on:  #A79BFF;
  --alone:      #0F6E56;
  --alone-ink:  #0B5240;
  --alone-on:   #5FC6A8;
  --warn:       #9A3B2E;
  --gone:       #D97A68;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Geist', 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --s1: 0.75rem;
  --s2: 1.75rem;
  --s3: 3rem;
  --s4: clamp(3rem, 6vw, 5.5rem);

  --page: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 52ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
.anchor { display: block; height: 0; scroll-margin-top: 5rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.reveal { opacity: 0; transform: translateY(12px); }
.reveal.shown { opacity: 1; transform: none; transition: opacity 600ms ease, transform 600ms cubic-bezier(.22,.9,.3,1); }

.band { max-width: var(--page); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s3); }
.rail { max-width: var(--measure); }

.bar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.bar.lifted { border-bottom-color: var(--rule); }
.bar > .band {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.wordmark { font-family: var(--serif); font-size: 1.375rem; letter-spacing: -0.01em; }
.tabs { display: flex; align-items: center; gap: 0.15rem; }
.tabs a {
  font-size: 0.875rem; color: var(--muted); text-decoration: none;
  padding: 0.4rem 0.8rem; border-radius: 999px;
  transition: background 140ms ease, color 140ms ease;
}
.tabs a:hover { color: var(--ink); background: var(--card); }
.tabs a.here { color: var(--ink); background: var(--card); }
.tabs .go {
  margin-left: 0.6rem; background: var(--ink); color: var(--paper);
  font-weight: 500; padding: 0.42rem 1.05rem;
}
.tabs .go:hover { background: var(--ink); color: var(--paper); opacity: 0.86; }
.tabs .sections {
  display: flex; gap: 0.15rem; background: var(--raised);
  border-radius: 999px; padding: 0.2rem;
}
.opening, .group-head, .views, .checked {
  padding-top: var(--s4); padding-bottom: var(--s4);
}
.group-head, .views, .checked { border-top: 1px solid var(--rule); }
.group-head h2, .views h2, .checked h2 {
  font-family: var(--serif); font-size: 2rem; letter-spacing: -0.015em;
  line-height: 1.12; margin-bottom: var(--s1);
}
.legend i.tname, .coverage i.tname { font-style: italic; }
.opening { padding-top: calc(var(--s4) + 1rem); padding-bottom: var(--s4); }

.opening h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.03; letter-spacing: -0.025em; max-width: 16ch;
}
.opening .deck { margin-top: var(--s2); max-width: var(--measure); color: var(--muted); }
.opening .deck + .deck { margin-top: var(--s1); }
.opening-actions { display: flex; gap: 0.75rem; align-items: center; margin-top: var(--s3); }
.opening-actions .solid { font-size: 1rem; padding: 0.75rem 1.6rem; }
.lede { margin-top: var(--s1); max-width: var(--measure); color: var(--muted); }

.terms h4 { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.terms p { margin-top: 0.45rem; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }
.terms > div + div { margin-top: 1.25rem; }

.chapter { padding-top: var(--s4); border-top: 1px solid var(--rule); }
.chapter:first-child { border-top: 0; }
.chapter-title { display: flex; align-items: baseline; gap: 0.7rem; }
.chapter-title .num { color: var(--muted); font-weight: 500; font-size: 1rem; font-variant-numeric: tabular-nums; }
.chapter-title .where { font-family: var(--serif); font-size: 1.375rem; letter-spacing: -0.01em; color: var(--ink); }
.chapter-title .reading { padding: 0.05rem 0.4rem; border: 1px solid var(--rule); color: var(--muted); letter-spacing: 0; text-transform: none; }

.verdict-line { font-family: var(--serif); font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.022em; margin-top: 0.7rem; }

.figure {
  position: relative; margin-top: var(--s2);
  background: var(--panel); border-radius: 8px;
  padding: var(--s2) var(--s2) var(--s2);
  color: var(--panel-ink);
}

.sizes { display: flex; gap: 3px; margin-bottom: var(--s2); }
.sizes span {
  height: 3px; background: var(--panel-bright); min-width: 4px;
}

.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s2); align-items: start; }
.column { min-width: 0; }
.column-head { margin-bottom: 0.9rem; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.column-letter, .spend-letter, .stage span u {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em;
  font-style: normal; text-decoration: none;
  color: var(--panel); background: var(--panel-bright);
  width: 1.3rem; height: 1.3rem; border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.column-size { font-size: 1.0625rem; font-weight: 500; color: var(--panel-bright); font-variant-numeric: tabular-nums; }
.column-what { font-size: 0.875rem; color: var(--panel-muted); }

.film { display: block; padding: 0 0 0 0.7rem; margin-left: -0.8rem; border-left: 2px solid transparent; font-size: 0.9375rem; line-height: 1.35; color: var(--panel-ink); }
.film + .film { margin-top: 0.75rem; }
.film .origin { display: block; font-size: 0.8125rem; color: var(--panel-faint); margin-top: 0.1rem; }
.film .year { font-size: 0.8125rem; color: var(--panel-faint); margin-left: 0.3rem; }
.film .tag {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.04em;
  color: var(--panel-muted); border: 1px solid var(--panel-rule);
  border-radius: 3px; padding: 0.05rem 0.4rem;
  margin: 0.3rem 0 0 0.4rem;
}
.film.bridge { border-left-color: var(--accent-on); }
.film.bridge .tag { color: var(--accent-on); border-color: var(--accent-on); }
.film.alone { border-left-color: var(--alone-on); }
.film.alone .tag { color: var(--alone-on); border-color: var(--alone-on); }
.film.arriving { border-left-color: var(--panel-bright); }
.film.arriving .tag { color: var(--panel-bright); border-color: var(--panel-muted); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.spend { margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--panel-rule); }
.spend:empty { display: none; }
.spend-head { text-align: center; max-width: 78ch; margin: 0 auto var(--s2); }
.spend-head h4 { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -0.012em; color: var(--panel-bright); font-weight: 400; }
.spend-head p { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--panel-muted); }
.spend-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.6rem var(--s2); max-width: 60rem; margin: 0 auto; }
.spend-rows li { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.9375rem; color: var(--panel-muted); line-height: 1.5; }

.legend { margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--panel-rule); }
.legend:empty { display: none; }
.legend p { font-size: 0.9375rem; line-height: 1.6; color: var(--panel-muted); max-width: 72ch; }
.legend p + p { margin-top: 0.5rem; }

.view-tabs { display: flex; gap: 0; margin-top: var(--s2); border-bottom: 1px solid var(--rule); }
#view-body { margin-top: 0; }
.view-tabs button { font: inherit; font-size: 0.875rem; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 0.5rem 1rem; margin-bottom: -1px; cursor: pointer; }
.view-tabs button:first-child { padding-left: 0; }
.view-tabs button:hover { color: var(--ink); }
.view-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
#view-body .chapter { padding-top: var(--s2); border-top: 0; }

#tests { max-width: 62rem; margin: 0 auto; }
.checked > h2 { max-width: 62rem; margin: 0 auto; }
.test { padding-top: var(--s4); }
.test:first-child { padding-top: var(--s3); }
.test + .test { border-top: 1px solid var(--rule); }
.test h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.14; letter-spacing: -0.015em; max-width: 44ch; }
.test h3 .num {
  font-family: var(--sans); font-size: 0.875rem; font-weight: 500;
  color: var(--paper); background: var(--ink);
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 0.7rem; vertical-align: 0.3rem;
}
.test p { margin-top: var(--s2); max-width: 68ch; color: var(--muted); font-size: 1rem; }
.test .closing-line { color: var(--ink); font-weight: 500; }
.test.sub { padding-top: var(--s3); border-top: 0; }
.test.sub h3 .num { display: none; }
.test .defs { margin-top: var(--s2); max-width: 68ch; }
.test .defs li { font-size: 1rem; color: var(--muted); margin-bottom: 0.3rem; }
.test .defs b { font-weight: 500; color: var(--ink); }
.control-figure { margin-top: var(--s2); }
.figure-block { margin-top: var(--s2); max-width: 46rem; }
.figure-label {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); font-weight: 500; margin-bottom: 0.6rem;
}
.test .columns { background: var(--panel); border-radius: 8px; padding: var(--s2); }
.test .columns .film { color: var(--panel-ink); }
.test .columns .column-size { color: var(--panel-bright); }
.test .columns .column-what { color: var(--panel-muted); }
.test .columns .column-letter { color: var(--panel); background: var(--panel-bright); }

.pairs, .bars-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.test > .figure-block > table { width: 100%; }
.pairs td, .bars-table td { padding: 0.4rem 1rem 0.4rem 0; vertical-align: baseline; }
.pairs td:last-child, .bars-table td:last-child { padding-right: 0; }
.pairs .d, .bars-table .d { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); width: 7rem; }
.pairs .pair { color: var(--ink); }
.pairs .r, .pairs .n { font-variant-numeric: tabular-nums; color: var(--faint); white-space: nowrap; text-align: right; width: 9rem; }
.pairs .strong { color: var(--ink); font-weight: 500; }
.pairs .head td, .bars-table .head td {
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule);
  color: var(--faint); font-size: 0.75rem; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 400;
}
.pairs .band td {
  padding-top: 1.1rem; padding-bottom: 0.2rem;
  color: var(--muted); font-size: 0.8125rem;
}
.bars-table .head td { text-align: left; }
.bars-table .head td.d { width: 7rem; }
.bars-table .who { white-space: nowrap; color: var(--muted); }
.bars-table .bar { width: 99%; }
.bars-table .bar span { display: block; height: 6px; background: var(--rule-2); }
.bars-table .win .who, .bars-table .win .d { color: var(--ink); font-weight: 500; }
.bars-table .win .bar span { background: var(--ink); }
.test code { display: block; margin-top: var(--s2); max-width: 68ch; padding: 0.5rem 0.7rem; background: var(--raised); font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); overflow-x: auto; }

.panel { border-top: 1px solid var(--rule); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: var(--s2) 0 var(--s1); }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: inherit; font-size: 0.875rem; background: var(--paper);
  color: var(--ink); border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.28rem 0.55rem;
}
.chip:hover { border-color: var(--rule-2); }
.chip-x {
  background: none; border: 0; font: inherit; color: var(--faint);
  cursor: pointer; padding: 0 0.1rem; line-height: 1;
}
.chip-x:hover { color: var(--warn); }
.audience-body { max-width: 70rem; }
.aud-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.8rem; margin-bottom: 1.6rem;
}
.aud-card {
  background: var(--card); border: 0.5px solid var(--rule-2);
  border-radius: 9px; padding: 0.9rem 1.1rem;
}
.aud-card-label {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 0.35rem;
}
.aud-card-name {
  font-size: 0.9375rem; color: var(--ink); overflow-wrap: anywhere;
  margin-bottom: 0.2rem;
}
.aud-card-tag {
  font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--faint); margin-left: 0.5rem;
}
.aud-card-said { font-size: 0.78125rem; color: var(--muted); line-height: 1.5; }
.aud-intro { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.6rem; }
.aud-table {
  width: 100%; border-collapse: collapse; table-layout: fixed;
  background: var(--card); border: 0.5px solid var(--rule-2);
  border-radius: 9px; overflow: hidden;
}
.aud-table th {
  font-size: 0.75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--faint); text-align: left;
  padding: 0.7rem 0.75rem; background: var(--raised);
  border-bottom: 0.5px solid var(--rule-2);
  vertical-align: middle; overflow-wrap: anywhere;
}
.aud-table th:first-child { width: 40%; }
.aud-table th:nth-child(2) { width: 35%; }
.aud-table td {
  padding: 0.7rem 0.75rem; border-bottom: 0.5px solid var(--rule);
  font-size: 0.875rem; line-height: 1.5; color: var(--ink);
  vertical-align: middle; overflow-wrap: anywhere;
}
.aud-table tbody tr:last-child td { border-bottom: 0; }
.aud-table th:first-child, .aud-table td:first-child { padding-left: 1.1rem; }
.aud-table th:last-child, .aud-table td:last-child { padding-right: 1.1rem; }
.aud-meta { font-size: 0.75rem; color: var(--faint); margin-left: 0.5rem; }
.aud-against { color: var(--muted); }
.aud-table .aud-number { text-align: right; font-variant-numeric: tabular-nums; }
.aud-counts th:first-child { width: 38%; }
.aud-counts th:nth-child(2) { width: 34%; }
.aud-counts th:nth-child(n+3) { width: 14%; }
.aud-evidence-toggle { font-size: 0.75rem; line-height: 1.5; text-align: left; }
.aud-no-evidence { font-size: 0.75rem; color: var(--muted); }
.aud-evidence[hidden] { display: none; }
.aud-table .aud-evidence td {
  background: var(--raised); padding: 0.85rem 1.1rem;
}
.aud-evidence-quote {
  font-size: 0.8125rem; line-height: 1.6; color: var(--muted);
  border-left: 2px solid var(--rule-2); padding-left: 0.8rem;
}
.aud-evidence-quote + .aud-evidence-quote { margin-top: 0.5rem; }
.aud-evidence-polarity { font-weight: 500; color: var(--ink); }
.aud-note { font-size: 0.75rem; line-height: 1.6; color: var(--muted); margin-top: 0.85rem; }
.aud-unused {
  margin-top: 1.4rem; border-top: 1px solid var(--rule);
  padding: 0.9rem 0 0.75rem;
}
.aud-unused summary { color: var(--muted); font-size: 0.8125rem; padding: 0.5rem 0; cursor: pointer; }
.aud-unused p { font-size: 0.8125rem; color: var(--muted); margin-top: 0.5rem; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .aud-table th { letter-spacing: 0.04em; }
  .aud-table th:first-child, .aud-table td:first-child { padding-left: 0.6rem; }
  .aud-table th:last-child, .aud-table td:last-child { padding-right: 0.6rem; }
  .aud-counts th:first-child, .aud-counts th:nth-child(2) { width: 32%; }
  .aud-counts th:nth-child(3) { width: 16%; }
  .aud-counts th:nth-child(4) { width: 20%; }
  .aud-table td { padding: 0.6rem 0.4rem; font-size: 0.8125rem; }
  .aud-meta { display: block; margin-left: 0; }
  .aud-evidence-toggle { min-height: 2.75rem; }
}
.chip-lock {
  display: inline-flex; align-items: center; background: none; border: 0;
  color: var(--rule-2); cursor: pointer; padding: 0 0.1rem; line-height: 1;
}
.chip-lock:hover { color: var(--ink); }
.chip.held { border-color: var(--ink); background: var(--raised); }
.chip.held .chip-lock { color: var(--ink); }
.chip-name { flex: 0 1 auto; min-width: 0; }
.chip.gone { opacity: 0.45; text-decoration: line-through; }
.linky { font: inherit; font-size: 0.8125rem; background: none; border: 0; border-bottom: 1px solid var(--rule-2); color: var(--ink); padding: 0 0 1px; cursor: pointer; }
.linky:hover { border-color: var(--ink); }
.fine { font-size: 0.9375rem; color: var(--faint); }

.solid, .ghost {
  display: inline-block; font: inherit; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; padding: 0.55rem 1.2rem; border-radius: 4px; text-decoration: none;
  transition: opacity 120ms ease, border-color 120ms ease;
}
.solid { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.ghost { background: var(--card); border: 1px solid var(--rule); color: var(--ink); }
.solid:hover { opacity: 0.86; }
.ghost:hover { border-color: var(--ink); }
.solid:disabled, .ghost:disabled { opacity: 0.4; cursor: default; }

.state { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); }
.problem { color: var(--warn); }
@keyframes breathe { 0%,100% { opacity: 0.2; } 50% { opacity: 1; } }

.waiting { display: flex; align-items: flex-start; gap: 0.75rem; padding: var(--s2) 0; max-width: var(--measure); }
.waiting p { font-size: 0.875rem; color: var(--muted); }

.status { max-width: var(--measure); margin-top: var(--s2); padding-left: 1rem; border-left: 2px solid var(--rule-2); }
.status h4 { font-family: var(--serif); font-size: 1.375rem; letter-spacing: -0.01em; }
.status p { margin-top: 0.45rem; font-size: 0.875rem; color: var(--muted); }
.status .row { display: flex; gap: 0.75rem; margin-top: var(--s1); flex-wrap: wrap; }
.status.wait { border-left-color: var(--ink); }
.status.broken { border-left-color: var(--warn); }
.status.broken h4 { color: var(--warn); }

.coverage {
  max-width: 52rem; margin: var(--s2) auto 0;
  padding: var(--s2); background: var(--raised); border-radius: 10px;
}
.coverage h4 { font-size: 1rem; font-weight: 500; }
.coverage p { margin-top: 0.7rem; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }
.coverage b { font-weight: 500; color: var(--ink); }

.to-top {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 40;
  width: 38px; height: 38px; padding: 0; cursor: pointer;
  box-shadow: 0 4px 14px rgba(23, 20, 15, 0.18);
  background: var(--ink); border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 120ms ease;
}
.to-top:hover { opacity: 0.84; }
.to-top svg { width: 15px; height: 15px; fill: none; stroke: var(--paper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.foot {
  border-top: 1px solid var(--rule); background: var(--raised);
  padding-top: var(--s3); padding-bottom: var(--s2);
}
.foot-top {
  display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, auto);
  gap: var(--s2) var(--s4); justify-content: space-between;
  padding-bottom: var(--s3);
}
.foot-brand .wordmark {
  display: block; font-size: 1.5rem; margin-bottom: 0.5rem;
}
.foot-brand p {
  font-size: 0.875rem; line-height: 1.6; color: var(--muted); max-width: 34ch;
}
.foot .wordmark { color: var(--ink); }
.foot h4 {
  font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--faint); font-weight: 500; margin-bottom: 0.8rem;
}
.foot-top a {
  display: block; font-size: 0.875rem; color: var(--muted);
  text-decoration: none; margin-bottom: 0.5rem; white-space: nowrap;
}
.foot-top a:hover { color: var(--ink); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap; padding-top: var(--s1);
  border-top: 1px solid var(--rule-2); font-size: 0.8125rem;
  color: var(--faint);
}

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: var(--s2); }
  .tabs { display: none; }
  .columns, .spend-rows { grid-template-columns: 1fr; }
  .column + .column { padding-top: var(--s2); border-top: 1px solid var(--panel-rule); }
  .foot-top { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@keyframes card-fly {
  0%, 10%  { transform: translate(0, 0) rotate(var(--r0)); opacity: 0.6; }
  44%, 90% { transform: translate(var(--tx), var(--ty)) rotate(var(--r1)); opacity: 1; }
  100%     { transform: translate(0, 0) rotate(var(--r0)); opacity: 0.6; }
}
@keyframes card-slot { 0%, 4% { opacity: 0; } 18%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes card-span {
  0%, 34%  { border-color: var(--panel-rule); background: var(--card-face); }
  48%, 90% { border-color: var(--accent-on); background: linear-gradient(160deg, #3A3366, #2A2450); }
  100%     { border-color: var(--panel-rule); background: var(--card-face); }
}
@keyframes card-apart {
  0%, 36%  { border-color: var(--panel-rule); background: var(--card-face); }
  50%, 90% { border-color: var(--alone-on); background: linear-gradient(160deg, #1E4239, #15302A); }
  100%     { border-color: var(--panel-rule); background: var(--card-face); }
}

:root { --card-face: linear-gradient(160deg, #27313A 0%, #1C242B 100%); }

.stage-hold { display: flex; align-items: center; }
.stage {
  position: relative; height: 420px; width: 100%; overflow: hidden;
  background: var(--panel); border-radius: 10px;
}
.stage.small { height: 250px; margin-bottom: var(--s2); }

.stage s {
  position: absolute; display: block; border: 1px dashed #333E47;
  border-radius: 7px; opacity: 0;
  animation: card-slot var(--loop) ease-in-out infinite;
}
.stage span {
  position: absolute; display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8125rem; color: var(--panel-muted); opacity: 0;
  animation: card-slot var(--loop) ease-in-out infinite;
}
.stage span em {
  font-style: normal; font-size: 0.75rem; color: var(--panel-muted);
}
.stage i {
  position: absolute; left: 0; top: 0; display: block;
  width: 76px; height: 104px; border-radius: 6px;
  background: var(--card-face); border: 1px solid #3B464F;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
  animation: card-fly var(--loop) cubic-bezier(.4,.02,.14,1) infinite;
}
.stage.small i { width: 52px; height: 72px; border-radius: 5px; box-shadow: 0 8px 18px rgba(0,0,0,.45); }
.stage i::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 12px;
  height: 4px; border-radius: 2px; background: #55626C;
}
.stage i::after {
  content: ""; position: absolute; left: 10px; top: 22px;
  width: 50%; height: 3px; border-radius: 2px; background: #3C4850;
}
.stage.small i::before { left: 8px; right: 8px; top: 10px; height: 3px; }
.stage.small i::after { left: 8px; top: 19px; height: 3px; }
.stage i.span { animation: card-fly var(--loop) cubic-bezier(.4,.02,.14,1) infinite,
                           card-span var(--loop) ease-in-out infinite; }
.stage i.apart { animation: card-fly var(--loop) cubic-bezier(.4,.02,.14,1) infinite,
                            card-apart var(--loop) ease-in-out infinite; }

.terms { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s3); }
.terms > div + div { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .stage i { animation: none; opacity: 1; transform: translate(var(--tx), var(--ty)) rotate(var(--r1)); }
  .stage i.span { border-color: var(--accent-on); }
  .stage i.apart { border-color: var(--alone-on); }
  .stage s, .stage span { animation: none; opacity: 1; }
}

@media (max-width: 960px) {
  .stage { height: 340px; }
  .stage.small { height: 230px; }
  .terms { grid-template-columns: 1fr; }
}

.agent { padding-top: var(--s4); padding-bottom: var(--s4); border-top: 1px solid var(--rule); }
.agent h2 {
  font-family: var(--serif); font-size: clamp(1.875rem, 3.2vw, 2.5rem);
  line-height: 1.1; letter-spacing: -0.02em;
}
#agent-body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s3); }
.agent-case { background: var(--panel); border-radius: 8px; padding: var(--s2); }
.agent-where {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--panel-muted); margin-bottom: var(--s1);
}
.agent-shape { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.012em; color: var(--panel-bright); }
.agent-shape b { font-weight: 400; }
.agent-case .why { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--panel-muted); }
.agent-case .swaps { margin-top: var(--s2); }
.agent-case .swaps li { padding: 0.8rem 0; border-top: 1px solid var(--panel-rule); }
.agent-case .out { color: var(--panel-faint); text-decoration: line-through; }
.agent-case .arrow { color: var(--panel-faint); margin: 0 0.5rem; }
.agent-case .in { color: var(--panel-bright); font-weight: 500; }
.agent-case .rejects-head {
  margin-top: var(--s2); padding-top: var(--s1); border-top: 1px solid var(--panel-rule);
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--panel-faint);
}
.agent-case .rejects li { margin-top: 0.4rem; font-size: 0.875rem; color: var(--panel-muted); }
.agent-case .rejects .out { text-decoration: none; color: var(--panel-ink); }

@media (max-width: 960px) {
  #agent-body { grid-template-columns: 1fr; }
}

.taken:not([hidden]) {
  display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap;
  margin-top: var(--s2); padding-top: var(--s2);
  border-top: 1px solid var(--panel-rule);
}
.taken-head {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gone); flex: none;
}
.taken-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.taken-film {
  font: inherit; font-size: 0.9375rem; cursor: pointer;
  background: none; border: 0; padding: 0;
  color: var(--panel-muted); text-decoration: line-through;
  text-decoration-color: var(--gone); text-decoration-thickness: 1px;
}
.taken-film:hover { color: var(--panel-bright); }

.opening-actions .solid { font-size: 1rem; padding: 0.75rem 1.6rem; }

#own-result { margin-top: var(--s3); }
#own-result .chapter { padding-top: 0; border-top: 0; }
#own-result .panel {
  border-top: 0; padding-top: var(--s3); padding-bottom: 0;
}

.tablist {
  display: flex; gap: 0; margin-top: var(--s3);
  border-bottom: 1px solid var(--rule);
}
.tab {
  font: inherit; font-size: 0.9375rem; background: none; border: 0;
  border-bottom: 2px solid transparent; color: var(--muted);
  padding: 0.6rem 1.1rem; margin-bottom: -1px; cursor: pointer;
}
.tab:first-child { padding-left: 0; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] {
  color: var(--ink); border-bottom-color: var(--ink); font-weight: 500;
}

.versions { margin-top: var(--s2); }
.version {
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding: 0.6rem 0; border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.version:first-child { border-top: 0; }
.version-when { color: var(--ink); min-width: 10rem; }
.version-what { color: var(--muted); flex: 1; min-width: 9rem; }

.asks { padding-top: var(--s4); padding-bottom: var(--s4);
  border-top: 1px solid var(--rule); }
.asks h2 {
  font-family: var(--serif); font-size: 2rem; letter-spacing: -0.015em;
  line-height: 1.12; margin-bottom: var(--s1);
}
.path-cards {
  display: grid; gap: var(--s2); margin: var(--s3) 0;
}
.path-card {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--s2); min-width: 0;
  background: var(--card); border: 0.5px solid var(--rule-2);
  border-radius: 10px; padding: var(--s2);
}
.path-card h3 {
  font-family: var(--serif); font-size: 1.875rem; color: var(--ink);
  line-height: 1.1; letter-spacing: -0.015em; max-width: 12ch;
  margin: 0;
}
.path-eyebrow {
  display: block; font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  margin-bottom: 1rem;
}
.path-copy { border-left: 1px solid var(--rule); padding-left: var(--s2); }
.path-card p {
  font-size: 0.9375rem; color: var(--muted); line-height: 1.65;
}
.path-card p + p { margin-top: 0.6rem; }
.asks-intro { margin-top: var(--s3); }
.ask-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--s2) var(--s3); margin-top: var(--s3);
}
.ask-list h4 {
  font-size: 1rem; font-weight: 500; color: var(--ink);
  margin-bottom: 0.3rem;
}
.ask-list p {
  font-size: 0.9375rem; line-height: 1.6; color: var(--muted);
  max-width: 44ch;
}
.asks-foot { margin-top: var(--s3); }

@keyframes working { 0%, 100% { opacity: 1; } 50% { opacity: 0.72; } }
.solid.busy {
  animation: working 1.5s ease-in-out infinite; cursor: default;
}
.solid.busy:hover { opacity: 1; }

body.workbench { background: var(--paper); }

:root {
  --w1: 0.4rem;
  --w2: 0.75rem;
  --w3: 1.25rem;
  --w4: 2rem;
  --w5: 3rem;
  --rail: 300px;
}

.door-top { margin-bottom: var(--w4); }
.deskbar-paths {
  display: inline-flex; margin-left: auto; background: var(--raised);
  border: 0.5px solid var(--rule-2); border-radius: 999px; padding: 4px;
}
.door-path {
  font-family: var(--sans); font-size: 0.90625rem; color: var(--muted);
  background: none; border: 0; border-radius: 999px;
  padding: 0.55rem 1.5rem; cursor: pointer; white-space: nowrap;
}
.door-path:hover { color: var(--ink); }
.door-path.on {
  color: var(--ink); font-weight: 500; background: var(--card);
  box-shadow: 0 1px 3px rgba(23, 20, 15, 0.12);
}

.door-audience { width: 100%; margin: 0 auto; }
.door > [hidden], .audience-entry [hidden] { display: none !important; }
.audience-entry {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--w5); align-items: start; max-width: 60rem; margin: 0 auto;
}
.audience-entry-form { min-width: 0; }
.audience-entry .aswitch { display: flex; margin-bottom: var(--w3); }
.audience-entry .aswitch-half { flex: 1; min-height: 2.75rem; padding: 0.6rem; }
.audience-entry-label {
  display: block; font-size: 0.9375rem; font-weight: 500; color: var(--ink);
  margin-bottom: 0.4rem;
}
.audience-entry .aguide { margin-bottom: 1rem; }
.audience-entry .afield {
  display: block; min-height: 9rem; background: var(--card); color: var(--ink);
  border: 1px solid var(--rule-2); font: 1rem/1.7 var(--sans); resize: vertical;
}
.audience-entry .afield:focus {
  border-color: var(--ink); outline: 2px solid var(--rule); outline-offset: 1px;
}
.audience-entry-upload {
  text-align: center; border: 1px dashed var(--rule-2); border-radius: 10px;
  background: var(--card); padding: 1.75rem 1rem;
}
.audience-entry-upload p { font-size: 0.8125rem; color: var(--muted); margin-top: 0.6rem; }
.audience-entry-samples-label {
  font-size: 0.8125rem; color: var(--muted); margin: 1.25rem 0 0.6rem;
}
.audience-entry-samples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.audience-entry .acard { min-width: 0; }
.audience-entry .acard-why { color: var(--muted); }
.audience-entry .solid { margin-top: 0.35rem; }
.audience-entry .achosen-head { align-items: start; }
.audience-entry .achosen-name { min-width: 0; overflow-wrap: anywhere; }
.audience-entry .atag { display: block; margin: 0.25rem 0 0; letter-spacing: 0; text-transform: none; }
.audience-entry-guide { border-left: 1px solid var(--rule); padding-left: 1.8rem; }
.audience-entry-eyebrow {
  color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 1.4rem;
}
.audience-entry-guide h2 { font: 1.5rem/1.2 var(--serif); margin-bottom: 0.6rem; }
.audience-entry-guide section > p, .audience-entry-purpose {
  font-size: 0.875rem; line-height: 1.65; color: var(--muted);
}
.audience-entry-guide section + section {
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--rule);
}
.audience-entry-required { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.8rem; }
.audience-entry-columns { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.audience-entry-columns code {
  font: 0.75rem/1.5 var(--mono); background: var(--raised); color: var(--ink);
  padding: 0.25rem 0.45rem; border-radius: 4px; overflow-wrap: anywhere;
}
.audience-entry-purpose { border-top: 1px solid var(--rule); margin-top: 1.6rem; padding-top: 1.3rem; }
@media (max-width: 720px) {
  .audience-entry { grid-template-columns: minmax(0, 1fr); gap: var(--w4); max-width: 37rem; }
  .audience-entry-guide { border-left: 0; border-top: 1px solid var(--rule); padding: var(--w4) 0 0; }
  .path-card { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .path-card h3 { max-width: none; }
  .path-copy { border-left: 0; border-top: 1px solid var(--rule); padding: var(--s2) 0 0; }
}
@media (max-width: 440px) {
  .audience-entry-samples { grid-template-columns: minmax(0, 1fr); }
}
.flow-over {
  position: fixed; inset: 0; z-index: 70; display: flex;
  align-items: center; justify-content: center; padding: var(--w4);
  background: rgba(23, 20, 15, 0.42);
}
.flow-box {
  width: min(42rem, 100%); max-height: 100%; display: flex;
  flex-direction: column; background: var(--card); border-radius: 12px;
  border: 0.5px solid var(--rule-2);
  box-shadow: 0 20px 56px rgba(23, 20, 15, 0.16); overflow: hidden;
}
.flow-head {
  padding: 1.1rem var(--w4) 0.9rem; border-bottom: 1px solid var(--rule);
}
.flow-bars { display: flex; gap: 4px; margin-bottom: 0.65rem; }
.flow-bars span {
  flex: 1; height: 3px; border-radius: 2px; background: var(--rule);
}
.flow-bars span.done { background: var(--rule-2); }
.flow-bars span.now { background: var(--ink); }
.flow-where {
  display: flex; align-items: center; justify-content: space-between;
}
.flow-at { font-size: 0.75rem; color: var(--faint); }
.flow-shut {
  background: none; border: 0; color: var(--faint); font-size: 1.0625rem;
  line-height: 1; cursor: pointer; padding: 0.2rem;
}
.flow-shut:hover { color: var(--ink); }
.flow-body {
  padding: var(--w4); overflow-y: auto; flex: 1 1 auto; min-height: 0;
}
.flow-title {
  font-family: var(--serif); font-size: 1.5rem; color: var(--ink);
  letter-spacing: -0.01em; margin-bottom: 0.4rem;
}
.flow-said {
  font-size: 0.84375rem; color: var(--muted); line-height: 1.6;
  margin-bottom: var(--w3); max-width: 60ch;
}
.flow-note {
  font-size: 0.78125rem; color: var(--faint); line-height: 1.55;
  margin-top: 0.6rem;
}
.flow-foot {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--w3); padding: 1rem var(--w4); border-top: 1px solid var(--rule);
  background: var(--raised);
}
.flow-foot > [hidden] { display: none !important; }
.flow-foot > .ghost { grid-column: 1; }
.flow-foot > .solid { grid-column: 3; }
.flow-foot > .ghost, .flow-foot > .solid {
  display: inline-flex; align-items: center; justify-content: center;
  height: 3rem; margin: 0; padding: 0 1.4rem; line-height: 1;
  font-size: 0.9375rem; white-space: nowrap;
}
.flow-why {
  grid-column: 2; grid-row: 1; text-align: center; min-width: 0;
  font-size: 0.78125rem; color: var(--muted);
}
.flow-foot .solid:disabled {
  background: var(--rule); border-color: var(--rule); color: var(--muted);
  cursor: not-allowed; opacity: 1;
}
.flow-body > .row { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.flow-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--w3) var(--w4);
}
@media (max-width: 640px) {
  .flow-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.flow-kind {
  font-size: 0.75rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 0.7rem;
}
.flow-ref {
  display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.2rem;
  min-width: 0;
}
.flow-ref-name {
  font-size: 0.875rem; color: var(--ink); min-width: 0;
  overflow-wrap: anywhere;
}
.flow-ref.out .flow-ref-name {
  opacity: 0.4; text-decoration: line-through;
}
.flow-ref-off {
  margin-left: auto; flex: none; background: none; border: 0;
  color: var(--rule-2); font-size: 0.8125rem; line-height: 1;
  cursor: pointer; padding: 0.35rem; border-radius: 5px;
}
.flow-ref-off:hover { color: var(--warn); background: var(--raised); }
.flow-aside {
  border-top: 1px solid var(--rule); margin-top: var(--w4);
  padding-top: var(--w3);
}
.flow-out { margin-top: var(--w3); }
.flow-stepper {
  display: flex; align-items: center; gap: 1.1rem; margin-bottom: var(--w4);
}
.flow-step-btn {
  width: 2.2rem; height: 2.2rem; border-radius: 7px; font-family: var(--sans);
  border: 0.5px solid var(--rule-2); background: var(--card);
  color: var(--ink); font-size: 1.0625rem; line-height: 1; cursor: pointer;
}
.flow-step-btn:disabled { color: var(--rule-2); cursor: not-allowed; }
.flow-count {
  font-family: var(--serif); font-size: 2.625rem; color: var(--ink);
  line-height: 1; min-width: 2.6rem; text-align: center;
}
.flow-range { font-size: 0.8125rem; color: var(--faint); }
.flow-share { display: flex; gap: 3px; margin-bottom: 0.7rem; }
.flow-share span { height: 5px; border-radius: 3px; background: var(--ink); }
.flow-share span.spare { background: var(--rule); }
.flow-modes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch; gap: 1rem; margin-top: 1.4rem;
}
.flow-mode {
  display: flex; flex-direction: column; min-width: 0;
  text-align: left; font-family: var(--sans);
  background: var(--card); border: 1px solid var(--rule-2);
  border-radius: 10px; padding: 1.4rem; cursor: pointer;
}
.flow-mode.on { border-color: var(--ink); background: var(--raised); }
.flow-mode-heading {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.85rem;
}
.flow-mode-dot {
  width: 1rem; height: 1rem; flex: none; margin: 0;
  accent-color: var(--ink); cursor: pointer;
}
.flow-mode-name {
  display: block; font-size: 1.0625rem; font-weight: 500; color: var(--ink);
}
.flow-mode-why {
  display: block; font-size: 0.875rem; color: var(--ink); line-height: 1.6;
}
.flow-mode-explanation {
  display: block; font-size: 0.8125rem; color: var(--muted); line-height: 1.6;
  margin-top: 0.75rem;
}
@media (max-width: 620px) {
  .flow-over { padding: 0.75rem; }
  .flow-head { padding-left: 1.25rem; padding-right: 1.25rem; }
  .flow-body { padding: 1.25rem; }
  .flow-modes { grid-template-columns: minmax(0, 1fr); }
  .flow-mode { padding: 1.1rem; }
  .flow-stepper { flex-wrap: wrap; }
  .flow-foot {
    grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem;
    padding: 1rem 1.25rem;
  }
  .flow-foot > .ghost { grid-column: 1; grid-row: 2; justify-self: start; }
  .flow-foot > .solid { grid-column: 2; grid-row: 2; justify-self: end; }
  .flow-why { grid-column: 1 / -1; grid-row: 1; }
  .flow-why:empty { display: none; }
  .flow-foot > .solid, .flow-foot > .ghost { padding: 0 1rem; font-size: 0.875rem; }
  .flow-foot > .solid { max-width: 100%; white-space: normal; line-height: 1.2; }
}
.aswitch {
  display: inline-flex; background: var(--raised); border-radius: 8px;
  padding: 3px; margin-bottom: var(--w3);
}
.aswitch-half {
  font-family: var(--sans); font-size: 0.8125rem; color: var(--muted);
  background: none; border: 0; border-radius: 6px;
  padding: 0.4rem 0.9rem; cursor: pointer;
}
.aswitch-half.on {
  color: var(--ink); background: var(--card);
  box-shadow: 0 1px 2px rgba(23, 20, 15, 0.06);
}
.aguide {
  font-size: 0.84375rem; color: var(--muted); line-height: 1.6;
  margin-bottom: 0.7rem; max-width: 58ch;
}
.aguide p + p { margin-top: 0.5rem; }
.aguide code {
  font-family: var(--mono); font-size: 0.78125rem; color: var(--ink);
  background: var(--raised); border-radius: 4px; padding: 0.05rem 0.3rem;
}
.afield {
  width: 100%; min-height: 6.5rem; margin-bottom: var(--w3);
  padding: 0.85rem 1rem; border-radius: 9px;
}
.ahidden { display: none; }
.acards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.7rem; margin-bottom: var(--w3);
}
.acard {
  font-family: var(--sans); text-align: left; background: var(--card);
  border: 0.5px solid var(--rule-2); border-radius: 9px;
  padding: 0.9rem 1rem; cursor: pointer;
}
.acard.dashed { background: none; border-style: dashed; }
.acard:hover { border-color: var(--ink); }
.acard-name {
  display: block; font-size: 0.875rem; color: var(--ink);
  margin-bottom: 0.2rem;
}
.acard-why {
  display: block; font-size: 0.78125rem; color: var(--faint);
  line-height: 1.45;
}
.achosen {
  background: var(--card); border: 0.5px solid var(--rule-2);
  border-radius: 9px; padding: 0.85rem 1rem; margin-bottom: var(--w3);
}
.achosen-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.achosen-name { font-size: 0.875rem; color: var(--ink); }
.achosen-acts { display: flex; gap: 0.9rem; }
.atag {
  font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--faint); margin-left: 0.5rem;
}

.deskbar-mode {
  font-size: 0.75rem; letter-spacing: 0.04em; color: var(--muted);
  border: 1px solid var(--rule-2); border-radius: 999px;
  padding: 0.14rem 0.6rem; margin-left: 0.7rem; white-space: nowrap;
}
.film-lock {
  display: inline-flex; align-items: center; vertical-align: -0.05em;
  color: var(--panel-ink); margin-right: 0.4rem; cursor: help;
}
.film-lock > svg { flex: none; }
.film-lock-tip {
  display: block; position: fixed; z-index: 80; pointer-events: none;
  width: max-content; max-width: calc(100vw - 1rem);
  padding: 0.45rem 0.65rem; border-radius: 5px;
  background: var(--panel-bright); color: var(--panel);
  font: 0.75rem/1.5 var(--sans); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.deskbar {
  display: flex; align-items: center; gap: var(--w3);
  padding: 0.8rem var(--w4);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
}
.deskbar-mark {
  font-family: var(--serif); font-size: 1.25rem; color: var(--ink);
  text-decoration: none; letter-spacing: -0.01em; flex: none;
}
.deskbar-here { flex: 1; min-width: 0; display: flex; align-items: center; }
.deskbar-end {
  display: flex; align-items: center; gap: var(--w2); flex: none;
  position: relative;
}
.deskbar-end .ghost { font-size: 0.8125rem; padding: 0.3rem 0.7rem; }
.deskbar-end .solid { font-size: 0.8125rem; padding: 0.45rem 1.1rem; }

.deskbar-name {
  font: inherit; font-size: 1rem; color: var(--ink); background: none;
  border: 0; border-radius: 4px; padding: 0.2rem 0.4rem; margin-left: -0.4rem;
  cursor: text; max-width: 32rem; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; transition: background 120ms ease;
}
.deskbar-name:hover { background: var(--raised); }
.deskbar-counts {
  font-size: 0.8125rem; color: var(--faint); font-variant-numeric: tabular-nums;
  margin-right: var(--w4);
}
.deskbar-counts .over { color: var(--warn); }

.door {
  max-width: 72rem; margin: 0 auto; padding: var(--w5) var(--w4) var(--w4);
}
.door-title {
  font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.375rem);
  line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 0.7rem;
  text-align: center;
}
.door-ask > [hidden] { display: none; }
.door-lede {
  font-size: 0.9375rem; line-height: 1.6; color: var(--muted);
  max-width: 54ch; margin: 0 auto var(--w4); text-align: center;
}
.door-pair {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--w5); align-items: stretch;
}
.door-ask { display: flex; flex-direction: column; }
.door-show { display: flex; flex-direction: column; }
.door-ask textarea {
  flex: 1; width: 100%; min-height: 15.5rem; display: block;
  font-family: var(--sans); font-size: 0.9375rem; line-height: 1.75;
  padding: 0.85rem 1rem; border: 1px solid var(--rule-2); border-radius: 8px;
  background: var(--card); color: var(--ink); resize: vertical;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}
.door-ask textarea:focus {
  border-color: var(--ink); outline: 2px solid var(--rule); outline-offset: 1px;
}
.door-ask .row {
  display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center;
  margin-top: var(--w3);
}
.door-said:not(:empty) {
  margin-top: var(--w3); font-size: 0.875rem; color: var(--muted);
}
.door-said.refused {
  font-size: 0.9375rem; color: var(--warn);
}
.door-caption {
  font-size: 0.8125rem; color: var(--faint); text-align: center;
  margin-top: var(--w3);
}

.taste {
  flex: 1; background: var(--panel); border-radius: 12px; padding: var(--w3);
  box-shadow: 0 16px 42px rgba(21, 25, 29, 0.13);
}
.taste-bar { display: flex; gap: 3px; margin-bottom: var(--w3); }
.taste-bar span { height: 3px; background: var(--panel-muted); }
.taste-bar span.lead { background: var(--panel-bright); }
.taste-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.taste-head { font-size: 0.75rem; color: var(--panel-muted); margin-bottom: 0.65rem; }
.taste-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.05rem; height: 1.05rem; border-radius: 3px; margin-right: 0.3rem;
  background: var(--panel-bright); color: var(--panel);
  font-size: 0.75rem; font-weight: 600;
}
.taste-n { color: var(--panel-bright); font-size: 0.8125rem; }
.taste-film {
  font-size: 0.8125rem; color: var(--panel-ink); line-height: 1.35;
  margin-bottom: 0.4rem; padding-left: 0.5rem; margin-left: -0.6rem;
  border-left: 2px solid transparent;
}
.taste-film.bridge { border-left-color: var(--accent-on); }
.taste-film.alone { border-left-color: var(--alone-on); }
.taste-year { color: var(--panel-faint); margin-left: 0.3rem; font-size: 0.75rem; }
.taste-tag {
  display: inline-block; font-size: 0.75rem; border-radius: 3px;
  padding: 1px 4px; border: 1px solid currentColor;
}
.taste-tag.bridge { color: var(--accent-on); }
.taste-tag.alone { color: var(--alone-on); }
.taste-more { font-size: 0.75rem; color: var(--panel-faint); }

.taste-links {
  border-top: 1px solid var(--panel-rule); margin-top: var(--w3);
  padding-top: var(--w3);
}
.taste-links-head {
  font-family: var(--serif); font-size: 1.125rem; color: var(--panel-bright);
  text-align: center; margin-bottom: 0.9rem;
}
.taste-link {
  border-left: 2px solid var(--accent-on); padding-left: 0.8rem;
  max-width: 15rem; margin: 0 auto;
}
.taste-link .taste-film {
  padding-left: 0; margin-left: 0; border-left: 0; margin-bottom: 0.4rem;
}

.door-none { font-size: 0.875rem; color: var(--faint); }

.door-band {
  border-top: 1px solid var(--rule); background: var(--raised);
  padding: var(--w4) var(--w4) var(--w5);
}
.door-band-in {
  max-width: 72rem; margin: 0 auto; padding: 0 var(--w4);
}
.door-head {
  font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-bottom: var(--w3);
}
.door-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: var(--w2);
}
.door-card {
  position: relative; background: var(--card); border: 1px solid var(--rule);
  border-radius: 10px; transition: border-color 120ms ease;
}
.door-card:hover { border-color: var(--rule-2); }
.door-card-open {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 0 var(--w3) var(--w3); cursor: pointer; font: inherit;
}
.door-card-head {
  display: flex; align-items: center; gap: 0.9rem;
  padding: var(--w3) var(--w3) 0.85rem;
}
.door-card-bar { display: flex; gap: 2px; flex: 1; min-width: 0; }
.door-card-bar span { height: 3px; border-radius: 2px; background: var(--rule-2); }
.door-card-bar span.lead { background: var(--ink); }
.door-card-name { font-size: 0.9375rem; color: var(--ink); margin-bottom: 0.2rem; }
.door-card-what { font-size: 0.8125rem; color: var(--faint); }
.door-card-when { font-size: 0.8125rem; color: var(--rule-2); margin-top: 0.15rem; }
.door-card-more {
  display: flex; flex-direction: column; align-items: center; gap: 3.5px;
  flex: none; background: none; border: 0; cursor: pointer;
  padding: 0.3rem 0.35rem; border-radius: 5px;
}
.door-card-more span {
  width: 4px; height: 4px; border-radius: 50%; background: var(--ink);
}
.door-card-more:hover, .door-card-more[aria-expanded="true"] {
  background: var(--raised);
}
.door-card .space-menu { top: 2.8rem; right: 0.9rem; }

@media (max-width: 920px) {
  .door { grid-template-columns: 1fr; gap: var(--w4); padding: var(--w4) var(--w3); }
  .door-show { order: -1; }
  .door-band { padding: var(--w4) var(--w3); }
}

.space-menu {
  position: absolute; right: var(--w2); top: 3.2rem; z-index: 10;
  background: var(--card); border: 1px solid var(--rule); border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10); min-width: 10rem;
  padding: var(--w1);
}
.space-menu button {
  display: block; width: 100%; text-align: left; font: inherit;
  font-size: 0.875rem; padding: 0.5rem 0.65rem; background: none;
  border: 0; cursor: pointer; color: var(--ink); border-radius: 5px;
}
.space-menu button:hover { background: var(--raised); }
.space-menu .danger { color: var(--warn); }

.desk { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
.desk-rail {
  border-right: 1px solid var(--rule); padding: var(--w4) var(--w3);
  min-height: calc(100vh - 3.4rem);
}
.desk-rail-head {
  font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--faint); font-weight: 500; margin-bottom: var(--w2);
}
.desk-rail-gap {
  margin-top: var(--w4); padding-top: var(--w3);
  border-top: 1px solid var(--rule);
}
.desk-rail-what { font-size: 0.8125rem; color: var(--ink); margin: 0 0 0.3rem; }
.desk-rail-slots { margin-top: var(--w3); }
.desk-rail input[type="text"], .desk-rail input[type="number"],
.desk-rail select {
  width: 100%; font-family: var(--sans); font-size: 0.8125rem;
  padding: 0.45rem 0.6rem; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--card); color: var(--ink);
}
.desk-rail .narrow { width: 4.5rem; }
.work-form .narrow { width: 5rem; }
.desk-rail .chips { margin-bottom: var(--w2); gap: 0.3rem; }
.desk-rail .chip {
  font-size: 0.8125rem; padding: 0.25rem 0.5rem; background: var(--card);
}

.ask {
  display: block; width: 100%; text-align: left; font: inherit;
  font-size: 0.8125rem; line-height: 1.4; color: var(--ink);
  background: var(--card); border: 1px solid var(--rule); border-radius: 8px;
  padding: 0.65rem 0.75rem; margin-bottom: 0.45rem; cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.ask:hover { border-color: var(--rule-2); }
.ask.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.work { padding: var(--w4); min-width: 0; }
.work-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--w3); margin-bottom: var(--w3);
}
.work-title {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1.2;
  letter-spacing: -0.015em; color: var(--ink);
}
.work-lede {
  font-size: 0.9375rem; line-height: 1.6; color: var(--muted);
  max-width: 58ch; margin-bottom: var(--w3);
}
.work-form {
  display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap;
  margin: var(--w3) 0 var(--w4);
}
.work-form .solid { margin-left: 0.4rem; }
.work-form .linky { margin-left: 0.3rem; }
.work-form input[type="text"] {
  flex: 0 1 26rem; min-width: 14rem; font-family: var(--sans);
  font-size: 0.9375rem; padding: 0.55rem 0.75rem;
  border: 1px solid var(--rule-2); border-radius: 7px;
  background: var(--card); color: var(--ink);
}
.work-form select {
  font-family: var(--sans); font-size: 0.875rem; padding: 0.5rem 0.55rem;
  border: 1px solid var(--rule-2); border-radius: 7px; background: var(--card);
  color: var(--ink);
}
.work-form textarea {
  width: 100%; font-family: var(--sans); font-size: 0.875rem;
  line-height: 1.7; padding: 0.6rem 0.75rem; border: 1px solid var(--rule-2);
  border-radius: 7px; background: var(--card); color: var(--ink);
  resize: vertical;
}
.work-form .fine { flex: none; font-size: 0.875rem; color: var(--muted); }
.compare-box {
  width: 100%; max-width: 34rem; display: block; font-family: var(--sans);
  font-size: 0.9375rem; line-height: 1.75; padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule-2); border-radius: 7px;
  background: var(--card); color: var(--ink); resize: vertical;
  margin-top: 0.45rem;
}
.compare-box:focus {
  border-color: var(--ink);
  outline: 2px solid var(--ink); outline-offset: -1px;
}

.deskbar-slash { color: var(--rule-2); }

.out-when {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); margin-bottom: var(--w2);
}
.ask-what { display: block; }
.ask-why {
  display: block; font-size: 0.75rem; color: var(--faint);
  margin-top: 0.15rem; line-height: 1.35;
}
.ask.on .ask-why { color: var(--rule-2); }

.work-answer {
  font-family: var(--serif); font-size: 1.1875rem; line-height: 1.4;
  color: var(--ink); margin-bottom: 0.4rem;
}
.work-nothing {
  font-family: var(--serif); font-size: 1.375rem; color: var(--ink);
  margin-bottom: 0.5rem;
}
.work-swap {
  display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap;
  margin-bottom: var(--w3);
}
.work-swap-out {
  font-family: var(--serif); font-size: 1.5rem; color: var(--muted);
  text-decoration: line-through; text-decoration-thickness: 1px;
}
.work-swap-arrow { font-size: 1.1rem; color: var(--rule-2); }
.work-swap-in { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }

.work-split {
  display: grid; grid-template-columns: minmax(0, 1fr) 21rem;
  gap: var(--w5); align-items: start; margin-top: var(--w4);
}
.work-split.ranked { grid-template-columns: minmax(0, 1fr) 26rem; }
.work-split > div:only-child { grid-column: 1 / -1; }

.aside-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  padding: var(--w3);
}
.aside-head {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); margin-bottom: var(--w2);
}
.aside-line {
  font-size: 0.875rem; line-height: 1.55; color: var(--ink);
  margin-bottom: 0.45rem;
}
.aside-line.dim { color: var(--muted); }
.aside-note {
  font-size: 0.75rem; color: var(--faint); line-height: 1.55;
  margin-top: var(--w2);
}
.aside-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.aside-table td { padding: 0.3rem 0; }
.aside-table tr + tr td { border-top: 1px solid var(--rule); }
.aside-table .head td {
  color: var(--faint); font-size: 0.75rem; letter-spacing: 0.05em;
  text-transform: uppercase; border-top: 0; padding-bottom: 0.25rem;
}
.aside-table .head + tr td { border-top: 1px solid var(--rule-2); }
.aside-table .win td { color: var(--ink); }
.aside-table i.tname { font-style: normal; }
.aside-table .d {
  text-align: right; font-variant-numeric: tabular-nums; width: 4.5rem;
  color: var(--muted);
}

.work-figure .chapter { padding-top: 0; border-top: 0; }
.out .chapter, .work-body > .chapter { padding-top: 0; border-top: 0; }
.work-feet {
  display: flex; align-items: center; gap: var(--w3); margin-top: var(--w3);
}
.work-feet .ghost { font-size: 0.8125rem; padding: 0.42rem 0.9rem; }
.work-status {
  margin-top: var(--w3); font-size: 0.75rem; color: var(--faint);
  min-height: 1em;
}

.desk-versions .version {
  display: flex; align-items: baseline; gap: var(--w2); margin-bottom: var(--w1);
}
.desk-versions .version-when {
  flex: 1; font-size: 0.8125rem; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.desk-versions .linky { font-size: 0.8125rem; }
.desk-versions .fine { margin-top: var(--w2); font-size: 0.75rem; }

.version-row {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  gap: var(--w3); align-items: center; padding: var(--w2) 0;
  border-top: 1px solid var(--rule);
}
.version-row:last-child { border-bottom: 1px solid var(--rule); }
.version-row .version-when {
  font-size: 0.875rem; font-variant-numeric: tabular-nums; color: var(--ink);
}
.version-shape { display: flex; align-items: center; gap: var(--w2); }
.version-bar { display: flex; gap: 2px; width: 5.5rem; flex: none; }
.version-bar span { height: 3px; border-radius: 2px; background: var(--rule-2); }
.version-bar span.lead { background: var(--ink); }
.version-row .version-what { font-size: 0.875rem; color: var(--muted); }
.version-row .ghost { font-size: 0.8125rem; padding: 0.4rem 0.85rem; }

.said { margin-bottom: var(--w4); }
.said-head {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); margin-bottom: var(--w1);
}
.said-line {
  font-size: 1rem; line-height: 1.65; color: var(--ink);
  max-width: 62ch; margin-bottom: 0.3rem;
}
.said-line i.tname { font-style: italic; }
.said-line:last-child { margin-bottom: 0; }
.out .row { margin-top: var(--w3); display: flex; gap: var(--w2); }

@media (max-width: 1040px) {
  :root { --rail: 248px; }
  .work-split { grid-template-columns: 1fr; gap: var(--w4); }
}

@media (max-width: 880px) {
  .desk { grid-template-columns: 1fr; }
  .desk-rail {
    border-right: 0; border-bottom: 1px solid var(--rule); min-height: 0;
    padding: var(--w3);
  }
  .work { padding: var(--w3); }
}

@media (max-width: 620px) {
  .deskbar { flex-wrap: wrap; gap: var(--w2); padding: 0.7rem var(--w2); }
  .deskbar-here { order: 3; flex-basis: 100%; }
  .deskbar-end { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
  .deskbar-counts { margin-right: 0; }
  .deskbar-end .ghost, .deskbar-end .solid { padding: 0.5rem 0.7rem; }
  .work { padding: var(--w2); }
  .desk-rail { padding: var(--w2); }
  .work-figure, .out .chapter { overflow-x: auto; }
  .work-figure .columns, .out .columns { min-width: 32rem; }
  .work-form { flex-direction: column; align-items: stretch; }
  .work-form input[type="text"] { min-width: 0; }
  .out .row { flex-direction: column; }
  .out .row .solid, .out .row .ghost { width: 100%; }
  .version-row { flex-wrap: wrap; gap: var(--w1) var(--w2); }
  .version-row .version-when { min-width: 0; flex: 1; }
  .solid, .ghost { padding: 0.65rem 1.1rem; }
  .desk-rail .ghost, .desk-rail .solid { padding: 0.55rem 0.8rem; }
  .chip { padding: 0.4rem 0.6rem; }
}

.work-figure.thinking { animation: desk-breathe 1600ms ease-in-out infinite; }
@keyframes desk-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .work-figure.thinking { animation: none; opacity: 0.6; }
}

.bones {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--w4);
  background: var(--panel); border-radius: 10px; padding: var(--w4);
}
.bone-col span {
  display: block; height: 0.85rem; border-radius: 3px; margin-bottom: 0.7rem;
  background: linear-gradient(90deg, #232a31 25%, #2d353d 50%, #232a31 75%);
  background-size: 300% 100%;
  animation: sweep 1400ms ease-in-out infinite;
}
.bone-col span:nth-child(2) { width: 82%; }
.bone-col span:nth-child(3) { width: 64%; }
.bone-col span:nth-child(4) { width: 76%; }
.bone-col span:nth-child(5) { width: 58%; }
@keyframes sweep {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bone-col span { animation: none; background: #262d34; }
}

.nothing {
  border: 1px dashed var(--rule-2); border-radius: 10px;
  padding: var(--w4) var(--w3); max-width: 46rem;
}
.nothing-head {
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.3;
  color: var(--ink); margin-bottom: var(--w2);
}
.nothing-why {
  font-size: 0.9375rem; line-height: 1.6; color: var(--muted);
  max-width: 58ch; margin-bottom: var(--w1);
}

.figure-when {
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); margin-bottom: var(--w2);
}

body.held { overflow: hidden; }
.paper-over {
  position: fixed; inset: 0; z-index: 60; display: flex;
  align-items: center; justify-content: center; padding: var(--w4);
  background: rgba(23, 20, 15, 0.42);
}
.paper {
  width: min(56rem, 100%); max-height: 100%; display: flex;
  flex-direction: column; border-radius: 12px; overflow: hidden;
  background: var(--card); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.26);
}
.paper-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--w3); padding: var(--w2) var(--w3);
  border-bottom: 1px solid var(--rule); flex: none;
}
.paper-head .aside-head { margin-bottom: 0; }
.paper-acts { display: flex; gap: var(--w2); }
.paper-acts .solid, .paper-acts .ghost {
  font-size: 0.8125rem; padding: 0.42rem 0.9rem;
}
.paper-frame { flex: 1; min-height: 24rem; width: 100%; border: 0;
  background: #fff; }
.paper .aside-note { padding: 0 var(--w3) var(--w2); flex: none; }
.paper .aside-note:empty { display: none; }

@media (max-width: 620px) {
  .paper-frame { height: 26rem; }
  .paper-head { flex-wrap: wrap; }
}

.desk-rail .chip.lost {
  color: var(--warn); border-color: var(--warn);
  text-decoration: line-through; text-decoration-color: var(--warn);
}

.links:empty { display: none; }
.links {
  margin-top: var(--s2); padding-top: var(--s2);
  border-top: 1px solid var(--panel-rule);
}
.links-head { text-align: center; margin-bottom: var(--s2); }
.links-head h4 {
  font-family: var(--serif); font-size: 1.625rem; font-weight: normal;
  color: var(--panel-bright); margin-bottom: 0.55rem;
}
.links-head p {
  font-size: 0.875rem; line-height: 1.6; color: var(--panel-muted);
  max-width: 72ch; margin: 0 auto;
}
.links-rows {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s2) var(--s2);
}
.link { border-left: 2px solid var(--accent-on); padding-left: 0.9rem; }
.link-name { font-size: 0.875rem; color: var(--panel-ink); line-height: 1.35; }
.link-name .year { color: var(--panel-faint); margin-left: 0.35rem; }
.link-where {
  font-size: 0.8125rem; color: var(--panel-faint); margin-top: 0.1rem;
}
.link-spans {
  display: inline-block; margin-top: 0.45rem; font-size: 0.75rem;
  color: var(--accent-on); border: 1px solid var(--accent-on);
  border-radius: 3px; padding: 2px 6px; letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  .links-rows { grid-template-columns: 1fr; }
}

.deskbar-end .save-version {
  display: inline-grid; grid-template-areas: "label";
  align-items: center; justify-items: center;
}
.save-version-label, .save-version-confirmation { grid-area: label; }
.save-version-confirmation { visibility: hidden; }
.save-version.is-saved .save-version-label { visibility: hidden; }
.save-version.is-saved .save-version-confirmation { visibility: visible; }
.deskbar-said {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.fold {
  display: inline-block; background: none; border: 0; color: var(--muted);
  font: inherit; font-size: 0.8125rem; cursor: pointer;
  border-bottom: 1px solid var(--rule-2); padding: 0 0 1px;
  margin-top: var(--w2);
}
.fold:hover { color: var(--ink); }
.desk-rail .fold { margin: 0 0 var(--w2); }

.turned { padding: 0.55rem 0; border-top: 1px solid var(--rule); }
.turned:first-child { padding-top: 0; border-top: 0; }
.turned-name { font-size: 0.875rem; color: var(--ink); margin-bottom: 0.1rem; }
.turned-why {
  font-size: 0.8125rem; color: var(--muted); line-height: 1.5;
}

.out .row.aligned, .work-body .row.aligned { margin-top: var(--w3); }

.work-note {
  font-size: 0.9375rem; line-height: 1.6; color: var(--ink);
  max-width: 62ch; margin-bottom: var(--w3);
}
.audience-entry .work-note {
  margin-top: var(--w3); margin-bottom: 0; max-width: 100%;
}
.aside-table.wide .d { width: 4rem; }
.aside-table.wide .pair, .aside-table.wide td:first-child { white-space: normal; }

.mixed-lede {
  font-size: 0.875rem; color: var(--panel-ink); line-height: 1.5;
  margin-bottom: 0.3rem;
}
.mixed-why {
  font-size: 0.8125rem; color: var(--panel-muted); line-height: 1.55;
  margin-bottom: var(--w3);
}
.mixed-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--w3) 1.4rem;
  border-top: 1px solid var(--panel-rule); padding-top: var(--w3);
}
.mixed-head {
  font-size: 0.75rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--panel-muted); margin-bottom: 0.7rem;
}
.mixed-use {
  margin-top: 0.6rem; font-size: 0.8125rem; font-family: var(--sans);
  background: var(--panel-bright); color: var(--panel); border: 0;
  border-radius: 6px; padding: 0.4rem 0.9rem; font-weight: 500;
  cursor: pointer;
}
.mixed-short {
  margin-top: 0.6rem; font-size: 0.75rem; color: var(--panel-faint);
}

.ask-over {
  position: fixed; inset: 0; z-index: 70; display: flex;
  align-items: center; justify-content: center; padding: var(--w4);
  background: rgba(23, 20, 15, 0.42);
}
.ask-box {
  width: min(24rem, 100%); background: var(--card); border-radius: 10px;
  border: 0.5px solid var(--rule-2); padding: var(--w4);
  box-shadow: 0 18px 48px rgba(23, 20, 15, 0.22);
}
.ask-title {
  font-family: var(--voice); font-size: 1.375rem; color: var(--ink);
  letter-spacing: -0.01em; margin-bottom: 0.6rem;
}
.ask-said {
  font-size: 0.875rem; color: var(--muted); line-height: 1.6;
  margin-bottom: var(--w4);
}
.ask-acts { display: flex; gap: 0.6rem; justify-content: flex-end; }
.ask-acts .solid.warn { background: var(--warn); }

.deskbar.bare .deskbar-here {
  display: flex; align-items: center; justify-content: flex-end;
  order: 0; flex: 1; min-width: 0;
}
.deskbar.bare .deskbar-end:empty { display: none; }
.deskbar.bare .deskbar-mark { margin: 0; }
