@import url("/assets/serifsc.css");
/* 模拟国际谈判实验室 v0.8+ · 明场圆桌
   Light inversion of Dimension (frosted panels, pill controls, hairlines, amber→cobalt horizon,
   weight-500 display), with Dala's triangle constellation as the living centrepiece. Desktop-first. */

@font-face { font-family: "DM Sans"; src: url("/assets/fonts/dmsans-var.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jbmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jbmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #f4f4f2;
  --paper: #ffffff;
  --ink: #161616;
  --ink-2: #3d3d3f;
  --slate: #686868;
  --smoke: #a3a3a3;
  --line: #e5e5e5;
  --line-2: #d4d4d4;
  --glass: rgba(255, 255, 255, .66);
  --glass-2: rgba(255, 255, 255, .86);
  --violet: #6b62f2;
  --violet-soft: rgba(107, 98, 242, .1);
  --amber: #e8962a;
  --amber-soft: rgba(232, 150, 42, .12);
  --coral: #ff8f6b;
  --cobalt: #3a63ff;
  --green: #13866f;
  --green-soft: rgba(19, 134, 111, .1);

  --sans: "DM Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .75, .15, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --page: 1280px;
  --edge: 24px;
  --label: 220px;
  --silk: cubic-bezier(.16, 1, .3, 1);
  --out: cubic-bezier(.7, 0, .84, 0);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; min-width: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15.5px; line-height: 1.7; font-weight: 400; -webkit-font-smoothing: antialiased; }
::selection { background: var(--violet); color: #fff; }
a { color: inherit; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
a:hover { text-decoration-color: var(--violet); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 .8em; } p:last-child { margin: 0; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 110px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: -0.02em; }
.muted { color: var(--slate); } .faint { color: var(--smoke); } .small { font-size: 13.5px; line-height: 1.6; }
.preserve { white-space: pre-wrap; }
.prose { max-width: 46em; } .prose p { margin-bottom: .75em; }
ul.clean { margin: 0; padding: 0; list-style: none; }
ul.clean li { position: relative; padding-left: 18px; margin-bottom: .5em; }
ul.clean li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); opacity: .55; }

/* ---------- horizon + constellation backdrop ---------- */
.horizon { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.horizon::before, .horizon::after { content: ""; position: absolute; width: 70vw; height: 70vw; border-radius: 50%; filter: blur(90px); opacity: .55; }
.horizon::before { left: -18vw; top: -36vw; background: radial-gradient(circle, rgba(255, 160, 100, .75), rgba(255, 143, 107, 0) 65%); }
.horizon::after { right: -20vw; top: -30vw; background: radial-gradient(circle, rgba(70, 105, 255, .6), rgba(58, 99, 255, 0) 65%); }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(6vw, 4vw, 0) scale(1.08); } 100% { transform: translate3d(-4vw, 6vw, 0) scale(.96); } }
.art-frame { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.art-frame canvas { width: 100%; height: 100%; display: block; }
.app { position: relative; z-index: 1; }

/* ---------- floating pill nav ---------- */
.nav { position: sticky; top: 18px; z-index: 50; width: min(calc(100% - 48px), var(--page)); margin: 18px auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 7px 8px 7px var(--edge); border-radius: 20px; background: var(--glass); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(22,22,22,.05), 0 12px 32px -18px rgba(22,22,22,.25); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand svg { width: 24px; height: 24px; }
.tabs { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(22,22,22,.04); }
.tab-ind { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--ink); z-index: 0; }
.tab { position: relative; z-index: 1; padding: 7px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--slate); font-size: 14px; font-weight: 500; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: #fff; }
.nav-end { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.seat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.seat-chip b { display: grid; place-items: center; height: 26px; min-width: 38px; padding: 0 8px; border-radius: 999px; background: var(--violet); color: #fff; font: 500 10.5px var(--mono); }
.dot-badge { position: relative; }
.dot-badge[data-count]::after { content: attr(data-count); position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--amber); color: #fff; font: 500 10.5px/18px var(--mono); text-align: center; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- buttons ---------- */
.btn { --mx: 50%; --my: 50%; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font-size: 14.5px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(120px 80px at var(--mx) var(--my), rgba(107, 98, 242, .22), transparent 70%); }
.btn:hover::before { opacity: 1; }
.btn:hover { border-color: rgba(107,98,242,.5); }
.btn:active { transform: scale(.96); }
.btn svg { width: 16px; height: 16px; }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink::before { background: radial-gradient(140px 90px at var(--mx) var(--my), rgba(140, 125, 255, .9), transparent 70%); }
.btn-ink:hover { border-color: var(--ink); box-shadow: 0 10px 30px -10px rgba(107, 98, 242, .65); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--slate); }
.btn-ghost:hover { color: var(--ink); background: rgba(22,22,22,.04); border-color: transparent; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-xs { height: 28px; padding: 0 11px; font-size: 12.5px; }
.btn-icon { width: 38px; padding: 0; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { border: 0; background: none; padding: 0; color: var(--slate); font-size: 13px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.link:hover { color: var(--ink); text-decoration-color: var(--violet); }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(22,22,22,.05); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.chip-plain::before { display: none; }
.chip-support { background: var(--violet-soft); color: var(--violet); }
.chip-conditional { background: var(--amber-soft); color: #b86a08; }
.chip-oppose { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip-oppose::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); opacity: 1; }
.chip-fact { background: var(--green-soft); color: var(--green); }
.chip-sim { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip-pending { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip-reviewed, .chip-modified { background: var(--green-soft); color: var(--green); }
.chip-teacher { background: var(--amber-soft); color: #b86a08; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- cards with spotlight + tilt ---------- */
.card { --mx: -999px; --my: -999px; position: relative; border-radius: 24px; background: var(--glass-2); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 0 0 1px rgba(22,22,22,.06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(107, 98, 242, .1), transparent 45%); }
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1.5px; opacity: 0; background: radial-gradient(300px circle at var(--mx) var(--my), var(--violet), rgba(255, 143, 107, .7) 30%, transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { box-shadow: 0 0 0 1px rgba(22,22,22,.04), 0 24px 48px -30px rgba(40, 30, 120, .35); }
.card > * { position: relative; z-index: 1; }
.tilt { transform-style: preserve-3d; will-change: transform; }
.pad { padding: 26px 28px; } .pad-lg { padding: 36px 40px; }

/* ---------- type ---------- */
.display { font-size: clamp(56px, 6.2vw, 100px); font-weight: 500; line-height: 1.04; letter-spacing: -0.045em; margin: 0; }
.display .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.display .ln > span { display: inline-block; }
.display .ln:nth-child(2) > span { }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.h1 { font-size: 46px; font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }
.h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.025em; }
.h3 { font-size: 17px; font-weight: 500; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--slate); font-size: 13px; font-weight: 500; }
.kicker .mono { padding: 3px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }

/* ---------- page ---------- */
.page { width: min(calc(100% - 48px), var(--page)); margin: 0 auto; padding: 72px var(--edge) 96px; }
.page-enter { }
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.stagger > * { }
.stagger > *:nth-child(2) { } .stagger > *:nth-child(3) { } .stagger > *:nth-child(4) { } .stagger > *:nth-child(5) { } .stagger > *:nth-child(6) { } .stagger > *:nth-child(7) { } .stagger > *:nth-child(8) { } .stagger > *:nth-child(9) { } .stagger > *:nth-child(10) { }
.head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.block { margin-top: 88px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 18px; margin-bottom: 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; }
.notice.warn { border-color: rgba(232,150,42,.5); background: #fffaf1; }
.notice-stack { position: sticky; top: 92px; z-index: 30; }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--slate); }
.field-head { display: flex; align-items: center; justify-content: space-between; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; line-height: 1.6; }
textarea { resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(107,98,242,.14); }
textarea[readonly] { background: rgba(255,255,255,.5); border-style: dashed; }
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
::placeholder { color: var(--smoke); }
.counter { font: 11px var(--mono); color: var(--smoke); text-align: right; }

/* ---------- disclosure ---------- */
details > summary { list-style: none; cursor: pointer; } details > summary::-webkit-details-marker { display: none; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc > summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 44px 18px 4px; font-size: 16.5px; font-weight: 500; }
.acc > summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 1px solid var(--line-2); background: linear-gradient(var(--ink), var(--ink)) center/9px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.5px 9px no-repeat; }
.acc[open] > summary::after { transform: rotate(135deg); background-color: var(--paper); }
.acc > summary:hover { padding-left: 14px; color: var(--violet); }
.acc-body { padding: 0 4px 24px; }
.more { margin-top: 12px; }
.more > summary { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--violet); font-weight: 500; }
.more > summary::after { content: "+"; font-family: var(--mono); }
.more[open] > summary::after { transform: rotate(45deg); }
.more[open] > summary { margin-bottom: 10px; }
.src > summary { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 500; }
.src > summary:hover { transform: translateY(-1px); }
.src { margin-top: 12px; }
.src-list { display: grid; gap: 8px; margin-top: 10px; }
.src-item { padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: 13.5px; }
.src-item:hover { border-color: rgba(19,134,111,.45); transform: translateX(3px); }
.src-item .meta { color: var(--slate); font-size: 12px; margin-top: 4px; }

/* ---------- cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; border-radius: 50%; opacity: 0; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); }
.cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid rgba(22,22,22,.35); }
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-hover .cursor-ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: var(--violet); background: rgba(107,98,242,.08); }
.cursor-text .cursor-ring { width: 3px; height: 26px; margin: -13px 0 0 -1.5px; border-radius: 2px; border-color: transparent; background: var(--violet); }
.cursor-down .cursor-ring { transform: scale(.8); }

/* ---------- toast / boot ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 200; width: max-content; max-width: 560px; transform: translate(-50%, 24px) scale(.96); opacity: 0; pointer-events: none; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast.error { background: #b86a08; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spin { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--violet); }
@keyframes spin { to { transform: rotate(360deg); } }
.typing { display: inline-flex; gap: 4px; } .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); } .typing i:nth-child(2) { } .typing i:nth-child(3) { }
@keyframes blink { 0%, 80%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.empty { padding: 56px; text-align: center; color: var(--slate); border-radius: 24px; border: 1.5px dashed var(--line-2); }
.empty strong { display: block; color: var(--ink); font-size: 19px; font-weight: 500; margin-bottom: 8px; }

/* ==========================================================================
   ENTRANCE
   ========================================================================== */
.entrance { position: relative; min-height: 100vh; overflow: hidden; }
.entrance .art { position: absolute; inset: 0; z-index: 1; }
.entrance .art canvas { width: 100%; height: 100%; display: block; }
.entrance-top { position: absolute; z-index: 3; top: 26px; left: 48px; right: 48px; display: flex; justify-content: space-between; align-items: center; }
.entrance-grid { position: relative; z-index: 2; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: end; padding: 120px 48px 64px; pointer-events: none; }
.entrance-grid > * { pointer-events: auto; }
.entrance .lead { margin-top: 26px; }
.join { padding: 30px; border-radius: 28px; }
.join h2 { font-size: 26px; margin: 6px 0 18px; letter-spacing: -0.03em; }
.join .btn-ink { width: 100%; height: 50px; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { height: 4px; flex: 1; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.steps i.on::after { content: ""; position: absolute; inset: 0; background: var(--ink); }
@keyframes fill { from { transform: translateX(-100%); } to { transform: none; } }
.drawn { display: flex; align-items: center; gap: 18px; margin: 4px 0 20px; }
.drawn-code { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--ink); color: #fff; font: 500 15px var(--mono); box-shadow: 0 0 0 8px rgba(107,98,242,.12); }
.drawing .drawn-code { }
@keyframes drawBeat { to { box-shadow: 0 0 0 16px rgba(255,143,107,.18); background: var(--violet); } }
.drawn-name { font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.reveal { }
@keyframes revealPop { from { opacity: 0; transform: scale(.85) translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ==========================================================================
   BRIEFING
   ========================================================================== */
.hero { min-height: 72vh; display: grid; align-content: end; padding-bottom: 12px; }
.hero .lead { margin-top: 24px; }
.hero .chips { margin-top: 22px; }
.hero-actions { display: flex; gap: 10px; margin-top: 34px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { padding: 26px; min-height: 220px; display: flex; flex-direction: column; }
.fact .num { font: 500 12px var(--mono); color: var(--smoke); }
.fact h3 { font-size: 19px; margin: 14px 0 10px; letter-spacing: -0.02em; }
.fact p { color: var(--ink-2); font-size: 14.5px; }
.fact .src { margin-top: auto; padding-top: 14px; }
/* horizontal timeline */
.tl { position: relative; }
.tl-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding-top: 10px; }
.tl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 33px; height: 2px; background: var(--line); }
.tl-progress { position: absolute; left: 0; top: 33px; height: 2px; background: linear-gradient(90deg, var(--coral), var(--violet), var(--cobalt)); }
.tl-node { position: relative; display: grid; justify-items: start; gap: 10px; padding: 0 12px 0 0; border: 0; background: transparent; text-align: left; color: var(--slate); }
.tl-node .date { font: 500 11.5px var(--mono); }
.tl-node .pin { width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-2); }
.tl-node .t { font-size: 15px; font-weight: 500; color: var(--ink-2); line-height: 1.4; }
.tl-node:hover .pin { transform: scale(1.35); border-color: var(--violet); }
.tl-node[aria-selected="true"] .pin { background: var(--violet); border-color: var(--violet); transform: scale(1.5); box-shadow: 0 0 0 7px rgba(107,98,242,.15); }
.tl-node[aria-selected="true"] .t { color: var(--ink); }
.tl-node[aria-selected="true"] .date { color: var(--violet); }
.tl-panel { margin-top: 26px; padding: 28px 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
.tl-panel h3 { font-size: 22px; margin-bottom: 10px; letter-spacing: -0.025em; }
.swap { }
@keyframes swapIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
/* segmented */
.seg { display: inline-flex; position: relative; padding: 4px; border-radius: 999px; background: rgba(22,22,22,.05); gap: 2px; }
.seg .tab { font-size: 14px; }
.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.opt { padding: 26px; cursor: default; }
.opt .letter { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 500 12px var(--mono); margin-bottom: 18px; }
.opt:hover .letter { transform: rotate(-12deg) scale(1.1); background: var(--violet); }
.opt h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 10px; }
.opt p { font-size: 14px; color: var(--ink-2); }
.opt .cost { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); color: var(--slate); font-size: 13px; }

/* ==========================================================================
   DELEGATIONS
   ========================================================================== */
.ring-stage { position: relative; height: 430px; margin: -10px 0 8px; }
.ring-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-seat { position: absolute; z-index: 2; width: 20px; height: 20px; margin: -10px 0 0 -10px; padding: 0; border: 0; background: transparent; }
.ring-seat .d { position: absolute; inset: 3px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.ring-seat .l { position: absolute; white-space: nowrap; pointer-events: none; display: grid; gap: 0; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.ring-seat .l small { font: 10.5px var(--mono); color: var(--smoke); }
.ring-seat:hover .d { transform: scale(1.4); background: var(--violet); border-color: var(--violet); }
.ring-seat:hover .l { color: var(--violet); }
.ring-seat[aria-current="true"] .d { background: var(--ink); transform: scale(1.6); box-shadow: 0 0 0 8px rgba(107,98,242,.18); }
.ring-seat[aria-current="true"] .l { color: var(--ink); }
.ring-seat.mine .d { background: var(--violet); border-color: var(--violet); }
.pos-n .l { bottom: 26px; left: 50%; transform: translateX(-50%); justify-items: center; }
.pos-s .l { top: 26px; left: 50%; transform: translateX(-50%); justify-items: center; }
.pos-e .l { left: 28px; top: 50%; transform: translateY(-50%); }
.pos-w .l { right: 28px; top: 50%; transform: translateY(-50%); justify-items: end; text-align: right; }
.ring-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.ring-center .code { font: 500 64px/1 var(--mono); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.ring-center .nm { font-size: 30px; font-weight: 500; letter-spacing: -0.04em; margin-top: 6px; }
.profile { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 44px; align-items: start; }
.profile-side { position: sticky; top: 110px; display: grid; gap: 14px; }
.profile-side .card { padding: 22px; }
.profile-side .id { font-size: 14px; color: var(--ink-2); }
.vtabs { display: grid; gap: 2px; }
.vtab { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 12px; border: 0; background: transparent; color: var(--slate); font-size: 14.5px; font-weight: 500; text-align: left; }
.vtab .mono { color: var(--smoke); }
.vtab:hover { color: var(--ink); padding-left: 20px; }
.vtab[aria-selected="true"] { background: var(--ink); color: #fff; }
.vtab[aria-selected="true"] .mono { color: rgba(255,255,255,.6); }
.kb { padding: 28px 0; border-top: 1px solid var(--line); background: none; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.kb::before, .kb::after { display: none; }
.kb h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 12px; }
.kb .prose { color: var(--ink-2); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cols-2 > * { padding: 26px 28px 26px 0; border-bottom: 1px solid var(--line); }
.cols-2 > *:nth-child(odd) { border-right: 1px solid var(--line); }
.cols-2 > *:nth-child(even) { padding-left: 28px; }
.qa { display: grid; gap: 10px; }
.qa { gap: 0; border-top: 1px solid var(--line); }
.qa div { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); font-size: 16px; }
.qa div::before { content: "?"; position: absolute; left: 0; top: 16px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 500 11px var(--mono); color: var(--violet); box-shadow: inset 0 0 0 1px rgba(107,98,242,.4); }
.qa div:hover { padding-left: 44px; color: var(--violet); }
.qa div:hover::before { transform: rotate(-20deg) scale(1.15); }
.search { position: relative; margin-bottom: 14px; }
.search input, .search input:not([type=checkbox]):not([type=radio]) { padding-left: 42px; border-radius: 999px; }
.search svg { position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--slate); }

/* ==========================================================================
   ARENA
   ========================================================================== */
.arena { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; align-items: start; }
.arena-side { position: sticky; top: 104px; display: grid; gap: 14px; }
.table { position: relative; aspect-ratio: 1 / .92; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
.table::before, .table::after { display: none; }
.table canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.table-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.table-center .mono { color: var(--smoke); }
.table-center strong { display: block; font-size: 30px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.table-center .start { pointer-events: auto; margin-top: 14px; }
.table .seat { position: absolute; z-index: 2; width: 18px; height: 18px; margin: -9px 0 0 -9px; padding: 0; border: 0; background: transparent; }
.seat .d { position: absolute; inset: 2px; border-radius: 50%; background: #d9d9d9; border: 1.5px solid #bdbdbd; }
.seat .l { position: absolute; white-space: nowrap; pointer-events: none; display: grid; font-size: 12.5px; font-weight: 500; color: var(--ink-2); line-height: 1.25; }
.seat .l small { font-size: 10.5px; font-weight: 500; color: var(--smoke); }
.seat:hover .d { transform: scale(1.45); }
.seat.human .d { inset: 0; background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 6px rgba(22,22,22,.08); }
.seat.support .d { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 0 5px rgba(107,98,242,.16); }
.seat.support .l small { color: var(--violet); }
.seat.conditional .d { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 5px rgba(232,150,42,.18); }
.seat.conditional .l small { color: #b86a08; }
.seat.oppose .d { background: var(--paper); border: 2px solid var(--ink); }
.seat.flash .d { }
@keyframes seatFlash { 0% { transform: scale(1); } 40% { transform: scale(2); } 100% { transform: scale(1); } }
.legend { display: flex; gap: 16px; justify-content: center; font-size: 12.5px; color: var(--slate); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.l-you { background: var(--ink); } .l-sup { background: var(--violet); } .l-con { background: var(--amber); } .l-opp { box-shadow: inset 0 0 0 2px var(--ink); }
/* chat */
.chat { display: grid; gap: 30px; padding-bottom: 24px; }
.turn { display: grid; gap: 14px; }
.turn-meta { display: flex; align-items: center; gap: 10px; color: var(--smoke); font-size: 12px; }
.turn-meta::before, .turn-meta::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.me { justify-self: end; max-width: 78%; padding: 18px 22px; border-radius: 24px 24px 6px 24px; background: var(--ink); color: #fff; }
.me .who { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 6px; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.chair { padding: 2px 0 2px 16px; border-left: 2px solid var(--amber); font-size: 14px; color: var(--ink-2); max-width: 46em; }
.event { padding: 18px 22px; border-radius: 20px; background: #fffaf1; border: 1px solid rgba(232,150,42,.4); }
.event h4 { font-size: 16px; font-weight: 500; margin: 8px 0 6px; }
.replies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rc { --mx: -999px; --my: -999px; position: relative; display: grid; gap: 8px; align-content: start; min-height: 132px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); text-align: left; overflow: hidden; }
.rc::before { content: ""; position: absolute; inset: 0; opacity: 0; background: radial-gradient(220px circle at var(--mx) var(--my), rgba(107,98,242,.12), transparent 60%); }
.rc:hover::before { opacity: 1; }
.rc:hover { transform: translateY(-4px); border-color: rgba(107,98,242,.45); box-shadow: 0 16px 30px -22px rgba(60,40,160,.5); }
.rc > * { position: relative; }
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc-name { font-size: 15px; font-weight: 500; }
.rc-name .mono { color: var(--smoke); margin-right: 6px; }
.rc p { font-size: 13px; color: var(--slate); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.rc.support { border-top: 3px solid var(--violet); } .rc.conditional { border-top: 3px solid var(--amber); } .rc.oppose { border-top: 3px solid var(--ink); }
.rc.ghost { }
.rc.arrive { }
@keyframes arrive { from { opacity: 0; transform: translateY(18px) scale(.94) rotate(-1deg); } to { opacity: 1; transform: none; } }
.rc.wait { display: grid; place-items: center; min-height: 132px; }
.closure { padding: 30px 0 4px; border-top: 2px solid var(--ink); }
.closure .mono { color: var(--violet); }
.closure h2 { font-size: 34px; letter-spacing: -0.04em; margin: 8px 0 16px; }
.closure ol { list-style: none; margin: 0; padding: 0; counter-reset: st; border-top: 1px solid var(--line); }
.closure ol li { counter-increment: st; position: relative; padding: 14px 0 14px 46px; border-bottom: 1px solid var(--line); font-size: 15px; }
.closure ol li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 16px; font: 500 12px var(--mono); color: var(--smoke); }
.closure ol li:hover { padding-left: 54px; }
.closure ol li:hover::before { color: var(--violet); }
.closure .btn { margin-top: 22px; }
/* composer dock */
.dock { position: sticky; bottom: 20px; z-index: 20; margin-top: 8px; padding: 14px; border-radius: 26px; background: var(--glass-2); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 0 0 1px rgba(22,22,22,.06), 0 24px 50px -24px rgba(22,22,22,.35); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.dock-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 6px 10px; }
.dock-top h3 { font-size: 15.5px; }
.dock textarea { border: 0; background: transparent; padding: 6px 8px; min-height: 76px; max-height: 280px; resize: none; font-size: 16px; box-shadow: none; }
.dock textarea:focus { box-shadow: none; }
.dock-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.dock-bar .left { display: flex; gap: 6px; align-items: center; }
.dock-bar select { width: auto; height: 34px; padding: 0 34px 0 14px; border-radius: 999px; font-size: 13.5px; }
.intent-chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--amber-soft); color: #9a5800; font-size: 13px; font-weight: 500; }
.pop { margin: 6px 0 10px; padding: 16px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.pop .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pop .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--slate); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { transform: rotate(-14deg) scale(1.08); color: var(--violet); border-color: var(--violet); }
.icon-btn[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
/* hints */
.hints { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 4px 0 10px; }
.hint { padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); cursor: pointer; text-align: left; }
.hint:hover { transform: translateY(-3px); border-color: var(--amber); }
.hint .q { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.hint blockquote { margin: 0; color: var(--slate); font-size: 13px; }
.hint-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hint-bar select { width: auto; height: 32px; padding: 0 32px 0 12px; border-radius: 999px; font-size: 13px; }
/* drawer */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(244,244,242,0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); pointer-events: none; }
.scrim.open { background: rgba(244,244,242,.45); backdrop-filter: blur(8px) saturate(120%); -webkit-backdrop-filter: blur(8px) saturate(120%); pointer-events: auto; }
.drawer { position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 100; width: min(580px, calc(100vw - 24px)); overflow: auto; overscroll-behavior: contain; padding: 36px 40px; border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 1px rgba(22,22,22,.06), 0 40px 90px -40px rgba(22,22,22,.45); transform: translate3d(calc(100% + 40px), 0, 0) scale(.96); opacity: 0; visibility: hidden; }
.drawer.open { transform: none; opacity: 1; visibility: visible; }
.drawer.open .dr > * { }
.drawer.open .dr > *:nth-child(2) { } .drawer.open .dr > *:nth-child(3) { } .drawer.open .dr > *:nth-child(4) { } .drawer.open .dr > *:nth-child(5) { }
@keyframes drIn { from { opacity: 0; transform: translate3d(24px, 0, 0); } to { opacity: 1; transform: none; } }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.drawer-head .code { font: 500 12px var(--mono); color: var(--smoke); }
.drawer-head h2 { font-size: 34px; letter-spacing: -0.04em; margin-top: 4px; }
.cond { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: var(--amber-soft); }
.cond strong { display: block; font-weight: 500; color: #9a5800; font-size: 13px; margin-bottom: 4px; }
.an { margin-top: 18px; display: grid; gap: 12px; }
.an dt { font-size: 12.5px; color: var(--violet); font-weight: 500; }
.an dd { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.drawer-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
/* comments */
.tnote { padding: 14px 18px; border-radius: 18px; background: #fffaf1; border: 1px solid rgba(232,150,42,.45); font-size: 14px; }
.tnote-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #9a5800; font-size: 12.5px; font-weight: 500; margin-bottom: 4px; }

/* ==========================================================================
   WRITING
   ========================================================================== */
.writing { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.paper { padding: 40px 48px; border-radius: 28px; background: var(--paper); box-shadow: 0 0 0 1px rgba(22,22,22,.06), 0 30px 60px -40px rgba(22,22,22,.3); }
.paper textarea.doc { min-height: 480px; border: 0; padding: 0; font-size: 16.5px; line-height: 1.95; background: transparent; box-shadow: none; }
.paper textarea.ref { min-height: 160px; border: 0; padding: 0; background: transparent; box-shadow: none; font-size: 15.5px; }
.paper textarea:focus { box-shadow: none; }
.paper .title { font-size: 13px; color: var(--slate); font-weight: 500; }
.paper hr { border: 0; height: 1px; background: var(--line); margin: 28px 0; }
.stances { display: grid; gap: 0; }
.stances div { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.stances div:last-child { border-bottom: 0; }
.outcome { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.outcome > div { padding: 18px 20px; }

/* ==========================================================================
   TEACHER
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.stat { position: relative; padding: 26px 24px 22px 0; overflow: hidden; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--violet); transform: scaleX(0); transform-origin: left; }
.stat:hover::after { transform: none; }
.stat strong { display: block; font-size: 60px; font-weight: 500; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; font-size: 13.5px; color: var(--slate); }
.t-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--smoke); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: rgba(107,98,242,.05); }
.bar-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 24px; gap: 12px; align-items: center; padding: 7px 0; font-size: 14px; }
.bar { height: 8px; border-radius: 8px; background: rgba(22,22,22,.06); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--coral), var(--violet)); transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.bar-row:hover .bar i { background: linear-gradient(90deg, var(--violet), var(--cobalt)); }
.filters { display: flex; gap: 10px; margin-bottom: 18px; }
.filters input, .filters select { width: auto; flex: 1; height: 42px; padding-block: 0; border-radius: 999px; font-size: 14px; }
.split { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.list { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow: auto; display: grid; gap: 6px; padding: 2px; scrollbar-width: thin; }
.item { --mx: -999px; --my: -999px; position: relative; overflow: hidden; display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid transparent; background: rgba(255,255,255,.6); text-align: left; font-size: 13px; color: var(--slate); }
.item::before { content: ""; position: absolute; inset: 0; opacity: 0; background: radial-gradient(200px circle at var(--mx) var(--my), rgba(107,98,242,.12), transparent 60%); }
.item:hover::before { opacity: 1; }
.item:hover { transform: translateX(4px); border-color: var(--line); background: var(--paper); }
.item > * { position: relative; }
.item strong { color: var(--ink); font-size: 15px; font-weight: 500; }
.item[aria-current="true"] { background: var(--ink); color: rgba(255,255,255,.65); }
.item[aria-current="true"] strong { color: #fff; }
.item[aria-current="true"] .chip { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.t-turn { padding: 22px 0; border-top: 1px solid var(--line); }
.t-turn-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.read { padding: 18px 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); white-space: pre-wrap; font-size: 14.5px; }
.compose { margin-top: 12px; padding: 16px; border-radius: 20px; background: #fffaf1; border: 1px solid rgba(232,150,42,.45); }
.style-card { margin: 4px 0 18px; padding: 18px 20px; border-radius: 18px; background: var(--violet-soft); }
.style-card ol { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.steps-v { display: grid; gap: 10px; }
.step { border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.step[open] { border-color: rgba(107,98,242,.4); }
.step > summary { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 20px; font-weight: 500; }
.step > summary .mono { color: var(--smoke); }
.step[open] > summary .mono { color: var(--violet); }
.step-body { padding: 0 20px 20px 84px; display: grid; gap: 12px; }
.me.alt { justify-self: start; max-width: none; border-radius: 20px; }
.access { min-height: 100vh; display: grid; place-content: center; gap: 22px; max-width: 620px; margin: 0 auto; padding: 40px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-iteration-count: 1 !important; }
  .cursor-dot, .cursor-ring { display: none; }
}
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ==========================================================================
   v0.9 · film homepage, editorial rows, silky overlays
   ========================================================================== */
/* view transitions between pages */
@view-transition { navigation: none; }
::view-transition-old(root) { }
::view-transition-new(root) { }
::view-transition-group(nav) { }
@keyframes vtOut { to { opacity: 0; transform: translateY(-14px); filter: blur(4px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }
.nav { view-transition-name: nav; }

/* reveal on scroll */
.rv { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(6px); }
.rv.in { opacity: 1; transform: none; filter: none; }
.mask { display: block; overflow: hidden; padding-bottom: .08em; }
.mask > span { display: inline-block; transform: translate3d(0, 110%, 0); }
.in .mask > span, .mask.in > span { transform: none; }

/* collapsible (hint, conditions) */
.collapse { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(-8px); margin: 0; }
.collapse > .inner { min-height: 0; overflow: hidden; }
.collapse.open { grid-template-rows: 1fr; opacity: 1; transform: none; margin: 4px 0 10px; }

/* label + content grid shared by every scene for one alignment edge */
.sgrid { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); gap: 48px; align-items: start; }
.slabel { position: sticky; top: 120px; display: grid; gap: 6px; }
.slabel .mono { color: var(--violet); }
.slabel h2 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; }

/* film */
.film { margin-top: -72px; }
.scene { position: relative; min-height: 100vh; padding: 140px 0 100px; }
.scene-hero { display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; padding: 0 0 72px; min-height: 100vh; }
.scene-hero .display { font-size: clamp(64px, 7.4vw, 118px); line-height: .98; letter-spacing: -0.05em; }
.uline { position: relative; display: block; width: fit-content; }
.uline::after { content: ""; position: absolute; left: 0; bottom: .02em; height: 1.5px; width: 0; background: var(--ink); }
.in .uline::after { width: 38%; }
.scene-hero:hover .uline::after { width: 56%; }
.hero-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-top: 34px; }
.hero-meta .lead { margin: 0; }
.cue { position: absolute; right: 0; bottom: 72px; display: grid; justify-items: center; gap: 10px; color: var(--slate); }
.cue i { width: 1px; height: 64px; background: linear-gradient(var(--ink), transparent); transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.brief-art { position: fixed; inset: 0; z-index: 0; pointer-events: none; will-change: transform, opacity; }
.brief-art canvas { width: 100%; height: 100%; display: block; }

/* facts as statements */
.statements { border-top: 1px solid var(--ink); }
.stmt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.stmt h3 { font-size: 34px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.15; }
.stmt p { color: var(--ink-2); font-size: 16px; }
.stmt:hover h3 .mask > span { color: var(--violet); }

/* pinned horizontal timeline */
.pinwrap.timeline { position: relative; }
.pinwrap.timeline > .pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding: 130px 0 56px; }
.pinwrap.timeline .pin-head { display: flex; justify-content: space-between; align-items: end; }
.pinwrap.timeline .track { position: relative; display: flex; gap: 6vw; align-items: center; will-change: transform; padding-right: 30vw; }
.ev { flex: none; width: min(46vw, 620px); opacity: .28; transform: scale(.94); transform-origin: left center; }
.ev.active { opacity: 1; transform: none; }
.ev .when { font-size: clamp(56px, 6vw, 96px); font-weight: 500; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.ev .when small { display: block; font: 500 12px var(--mono); letter-spacing: 0; color: var(--slate); margin-bottom: 14px; }
.ev h3 { font-size: 26px; letter-spacing: -0.03em; margin: 22px 0 12px; }
.ev .prose { color: var(--ink-2); font-size: 15px; }
.rail { position: relative; height: 34px; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 1px; background: var(--line-2); }
.rail-fill { position: absolute; left: 0; top: 15px; height: 3px; border-radius: 3px; background: var(--ink); width: 0; }
.rail button { position: absolute; top: 9px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--bg); padding: 0; }
.rail button span { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 500 11px var(--mono); color: var(--slate); }
.rail button.on { background: var(--ink); transform: scale(1.25); }
.rail button:hover { transform: scale(1.4); background: var(--violet); border-color: var(--violet); }

/* issue switch + option rows */
.iswitch { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.iswitch button { position: relative; padding: 0 0 16px; border: 0; background: none; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; color: var(--smoke); }
.iswitch button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.iswitch button:hover { color: var(--ink-2); }
.iswitch button[aria-selected="true"] { color: var(--ink); }
.iswitch button[aria-selected="true"]::after { transform: none; }
.idesc { color: var(--slate); margin: 18px 0 8px; font-size: 15px; }
.orow { --mx: -999px; position: relative; display: grid; grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.orow::before { content: ""; position: absolute; inset: 0; opacity: 0; background: radial-gradient(420px 120px at var(--mx) 50%, rgba(107,98,242,.1), transparent 70%); pointer-events: none; }
.orow:hover::before { opacity: 1; }
.orow > * { position: relative; }
.orow .lt { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 500 13px var(--mono); box-shadow: inset 0 0 0 1.5px var(--ink); }
.orow:hover .lt { background: var(--ink); color: #fff; transform: rotate(-90deg); }
.orow h3 { font-size: 21px; letter-spacing: -0.03em; margin-bottom: 8px; }
.orow:hover h3 { transform: translateX(6px); }
.orow p { font-size: 14.5px; color: var(--ink-2); }
.orow .tr { font-size: 14px; color: var(--slate); padding-left: 20px; border-left: 1px solid var(--line); }
.swap-in { }
@keyframes swapIn2 { from { opacity: 0; transform: translate3d(0, 16px, 0); filter: blur(4px); } }

/* cta scene */
.scene-cta { display: grid; align-content: center; }
.scene-cta .display { font-size: clamp(64px, 8vw, 128px); line-height: .98; letter-spacing: -0.055em; }
.scene-cta .btn { margin-top: 40px; }

/* reply rows (replaces card grids) */
.rlist { border-top: 1px solid var(--ink); }
.rrow { --mx: -999px; position: relative; display: grid; grid-template-columns: 46px 112px 132px minmax(0, 1fr) 20px; gap: 14px; align-items: center; width: 100%; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 14.5px; overflow: hidden; }
.rrow::before { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(360px 70px at var(--mx) 50%, rgba(107,98,242,.12), transparent 70%); }
.rrow:hover::before { opacity: 1; }
.rrow > * { position: relative; }
.rrow:hover { padding-left: 14px; }
.rrow .code { font: 500 11px var(--mono); color: var(--smoke); }
.rrow .nm { font-weight: 500; font-size: 15.5px; }
.rrow .st { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--slate); white-space: nowrap; }
.rrow .st i { width: 9px; height: 9px; border-radius: 50%; background: #c4c4c4; flex: none; }
.rrow.support .st { color: var(--violet); } .rrow.support .st i { background: var(--violet); box-shadow: 0 0 0 4px rgba(107,98,242,.14); }
.rrow.conditional .st { color: #b86a08; } .rrow.conditional .st i { background: var(--amber); box-shadow: 0 0 0 4px rgba(232,150,42,.16); }
.rrow.oppose .st { color: var(--ink); } .rrow.oppose .st i { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.rrow .cd { color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.rrow svg { width: 16px; height: 16px; color: var(--smoke); }
.rrow:hover svg { transform: translateX(4px); color: var(--violet); }
.rrow.arrive { }
@keyframes rowIn { from { opacity: 0; transform: translate3d(-28px, 0, 0); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.rrow.wait .cd { display: flex; }
.turn .me { max-width: 82%; }

/* join panel: flat glass, 20px */
.join { border-radius: 20px; }
.join::before, .join::after { display: none; }

/* teacher flat surfaces */
.flat { padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
.flat::before, .flat::after { display: none; }
.dist { border-top: 1px solid var(--ink); padding-top: 12px; }
.editor { padding: 32px 36px; border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: 0 0 0 1px rgba(22,22,22,.06); }
body { overflow-x: clip; }
.pinwrap.timeline > .pin { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }
.film .scene-hero { margin-left: 0; }
.entrance .display { font-size: clamp(60px, 6.6vw, 108px); line-height: .98; letter-spacing: -0.05em; }
.pinwrap.timeline > .pin { grid-template-columns: minmax(0, 1fr); }
.pinwrap.timeline > .pin > * { min-width: 0; }
.scene-hero { padding-bottom: 96px; }

/* history list */
.hlist { border-top: 1px solid var(--ink); }
.hrow { --mx: -999px; position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 18px; gap: 14px; align-items: center; width: 100%; padding: 16px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; overflow: hidden; }
.hrow::before { content: ""; position: absolute; inset: 0; opacity: 0; background: radial-gradient(320px 70px at var(--mx) 50%, rgba(107,98,242,.12), transparent 70%); pointer-events: none; }
.hrow:hover::before { opacity: 1; }
.hrow > * { position: relative; }
.hrow:hover { padding-left: 14px; }
.hrow .mono { color: var(--smoke); }
.hrow strong { display: block; font-weight: 500; font-size: 15.5px; }
.hrow small { display: block; color: var(--slate); font-size: 12.5px; }
.hrow svg { width: 16px; height: 16px; color: var(--smoke); }
.hrow:hover svg { transform: translateX(4px); color: var(--violet); }
.hrow.on .mono { color: var(--violet); }
.hrow.on::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: var(--violet); }

/* modal */
.modal-wrap { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; pointer-events: none; visibility: hidden; }
.modal-wrap.open { pointer-events: auto; visibility: visible; }
.modal-scrim { position: absolute; inset: 0; background: rgba(244,244,242,0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
.modal-wrap.open .modal-scrim { background: rgba(244,244,242,.55); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); }
.modal { position: relative; width: min(520px, calc(100vw - 48px)); padding: 34px 36px 28px; border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 1px rgba(22,22,22,.06), 0 50px 100px -40px rgba(22,22,22,.45); opacity: 0; transform: translate3d(0, 28px, 0) scale(.94); filter: blur(6px); }
.modal-wrap.open .modal { opacity: 1; transform: none; filter: none; }
.modal-wrap.open .modal > * { }
.modal-wrap.open .modal > *:nth-child(2) { } .modal-wrap.open .modal > *:nth-child(3) { } .modal-wrap.open .modal > *:nth-child(4) { }
.modal h2 { font-size: 28px; letter-spacing: -0.035em; margin: 8px 0 22px; }
.modal-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.modal-stats > div { padding: 14px 0; }
.modal-stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.modal-stats strong { display: block; font-size: 20px; font-weight: 500; letter-spacing: -0.03em; }
.modal-stats span { font-size: 12px; color: var(--slate); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.filters[style*="column"] > * { flex: none; width: 100%; }

/* ==========================================================================
   v0.10 · 模拟国际谈判实验室 system home + topic library + seat page
   ========================================================================== */
.nav > .brand { justify-self: start; }
.nav-who { font-size: 13.5px; font-weight: 500; color: var(--slate); padding-right: 12px; }

/* A single centred masthead; the form stays below it in document flow. */
.home .home-hero { display: block; align-content: start; width: min(100%, calc(100vw - 96px)); padding: 0 0 72px; }
.home-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 48px; }
.home-title { width: 100%; padding-top: clamp(180px, calc(50svh - 150px), 400px); text-align: center; }
.wordmark-caption { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 0 22px; font-size: 10px; font-weight: 400; letter-spacing: .22em; color: var(--slate); }
.wordmark-caption::before, .wordmark-caption::after { content: ""; width: 48px; height: 1px; background: var(--line-2); }
.wordmark { margin: 0; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif; font-size: clamp(32px, 5.25vw, 76px); line-height: 1.2; font-weight: 600; letter-spacing: .075em; text-align: center; }
.wordmark .mask { padding: .06em 0 .1em; }
.wordmark-ink { padding-left: .075em; color: var(--ink); white-space: nowrap; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .wordmark-ink { background: linear-gradient(112deg, var(--ink) 12%, #34304d 40%, #625a91 58%, #282339 76%, var(--ink) 94%); background-clip: text; -webkit-background-clip: text; color: transparent; }
}
.home-panel { width: min(100%, 640px); padding: 24px 28px; }
.home-panel #join-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px; align-items: end; margin-top: 14px; }
.home-panel #join-form .field { margin-bottom: 0; }
.home-panel #join-form .btn { min-width: 108px; }
.home-panel h2 { font-size: 26px; margin: 4px 0 20px; letter-spacing: -0.03em; }
.home-panel .panel-title { font-size: 20px; line-height: 1.3; margin-bottom: 18px; }
.home-panel .btn-ink { width: 100%; height: 50px; }
.panel-k { color: var(--violet); }
.panel-kv { margin: 0 0 22px; border-top: 1px solid var(--ink); }
.panel-kv > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.panel-kv dt { font-size: 12.5px; color: var(--slate); }
.panel-kv dd { margin: 0; font-size: 14.5px; font-weight: 500; }
.panel-kv dd .mono { color: var(--violet); margin-right: 4px; }
.panel-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.panel-actions .btn-ghost { height: 50px; }

/* Topic library stays in document flow; only its own horizontal axis scrolls. */
.home-lib { --library-edge: max(48px, calc((100vw - var(--page)) / 2 + var(--edge))); min-height: auto; padding: 140px 0 80px; }
.home-lib .slabel { position: static; }
.library-content { min-width: 0; }
.library-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.library-arrows { display: flex; gap: 8px; }
.library-arrows .btn-icon { width: 44px; height: 44px; }
.library-prev svg { rotate: 180deg; }
.library-count { color: var(--slate); font-variant-numeric: tabular-nums; }
.topic-track { --topic-gap: clamp(24px, 4vw, 64px); --topic-width: min(72vw, calc(100% - clamp(92px, 8vw, 128px))); position: relative; display: flex; align-items: stretch; gap: var(--topic-gap); margin-right: calc(-1 * var(--library-edge)); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; overscroll-behavior-y: auto; scrollbar-width: none; scroll-behavior: auto; cursor: grab; }
.topic-track::-webkit-scrollbar { display: none; }
/* Preserve enough trailing space for the final slide to align at the same edge. */
.topic-track::after { content: ""; flex: 0 0 max(0px, calc(100% - var(--topic-width) - var(--topic-gap))); }
.topic-track:focus-visible { outline-offset: 6px; }
.topic-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.topic-track.is-dragging * { cursor: grabbing; user-select: none; }
.topic-slide { flex: 0 0 var(--topic-width); min-width: 0; scroll-snap-align: start; }
.ev.topic { width: 100%; height: 100%; display: grid; align-content: center; gap: 0; padding: 36px 0; border-top: 1px solid var(--ink); }
.library-rail { margin: 22px 22px 0; height: 54px; cursor: pointer; }
.library-rail button { top: -6px; width: 44px; height: 44px; margin-left: -22px; border: 0; background: transparent; }
.library-rail button::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--bg); }
.library-rail button.on, .library-rail button:hover { background: transparent; transform: none; }
.library-rail button.on::before { background: var(--ink); transform: scale(1.25); }
.library-rail button:hover::before { transform: scale(1.4); background: var(--violet); border-color: var(--violet); }
.library-rail button span { top: 37px; }
.topic-top { display: flex; align-items: center; gap: 14px; }
.topic-top .mono { font-size: 13px; color: var(--violet); }
.ev .topic-title { margin: 34px 0 30px; font-size: clamp(36px, 3.6vw, 56px); font-weight: 500; line-height: 1.02; letter-spacing: -0.05em; }
.topic-title .mask { white-space: normal; }
.topic-meta { display: flex; gap: 56px; margin: 0 0 14px; }
.topic-meta dt { font-size: 12.5px; color: var(--slate); }
.topic-meta dd { margin: 4px 0 0; font-size: 26px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.topic-codes { margin: 0 0 34px; font-size: 11.5px; color: var(--smoke); letter-spacing: .02em; }
.ev.active .topic-codes { color: var(--slate); }
.topic-act .btn { }
.ev.topic:not(.active) .topic-act .btn { opacity: .4; }
.topic-empty { align-content: center; }
.ev .topic-title.hollow { font-size: clamp(72px, 7vw, 112px); line-height: .95; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); margin-bottom: 0; }
.topic-empty:hover .hollow { -webkit-text-stroke-color: var(--violet); }

/* Closing invitation: one primary action alongside the currently open topics. */
.home-cta .display { text-wrap: balance; }
.home-cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px 32px; margin-top: 40px; }
.home-cta-actions .btn { margin-top: 0; min-height: 64px; padding-inline: 36px; font-size: 18px; }
.home-open-topics { flex: 1 1 280px; max-width: 36em; margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--slate); overflow-wrap: anywhere; }
.home-open-topics > span { display: block; }

/* four steps */
.home-steps, .home-records { min-height: auto; padding: 150px 0 110px; }
.four { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.four li { border-right: 1px solid var(--line); }
.four li:last-child { border-right: 0; }
.four li > div { padding: 24px 24px 44px; }
.four li:first-child > div { padding-left: 0; }
.four .mono { display: block; font-size: 13px; color: var(--smoke); }
.four strong { position: relative; display: block; width: fit-content; margin: 52px 0 12px; font-size: clamp(28px, 2.4vw, 38px); font-weight: 500; line-height: 1.08; letter-spacing: -0.045em; }
.four strong::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.four small { display: block; font-size: 14px; color: var(--slate); }
.four li:hover > div { transform: translate3d(0, -8px, 0); }
.four li:hover .mono { color: var(--violet); }
.four li:hover strong::after { transform: none; }
.four li:hover small { color: var(--ink-2); }

/* my records grouped by topic */
.rgroup + .rgroup { margin-top: 48px; }
.rgroup-t { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 14px; font-size: 22px; letter-spacing: -0.03em; }
.rgroup-t .mono { color: var(--smoke); font-size: 12px; }
.home-records .hrow { padding: 20px 4px; }
.home-records .hrow strong { font-size: 17px; }
.records-empty { padding: 18px 0; border-top: 1px solid var(--ink); }
.history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.history-row .hrow { min-width: 0; border-bottom: 0; }
.history-row-action { flex: none; }
.records-tools { display: flex; justify-content: flex-end; margin-top: 18px; }
.history-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.history-note { margin-bottom: 22px; }
.history-filters .btn[aria-pressed="true"] { border-color: var(--ink); }

/* seat page */
.entrance-top .brand { pointer-events: auto; }
.seat-anchor { display: block; margin-bottom: 22px; color: var(--violet); font-size: 12px; }
.seat .steps { margin-bottom: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .four li > div, .four strong::after, .topic-act .btn { }
}


/* v0.11–v0.12 · A / F12. Text and graphical accents have separate roles.
   Existing Dimension/Dala palette remains on marks, borders and particles.
   Informational type uses AA-safe colors; smoke is reserved for decoration,
   placeholders and disabled controls. F0 is informational, so it uses muted text. */
:root {
  --muted-text: #686868;
  --violet-text: #534acb;
  --amber-text: #935300;
  --green-text: #0d6d59;
}
.muted-text, .faint, .muted,
.counter, .fact .num, .ring-seat .l small, .vtab .mono,
.table-center .mono, .seat .l small, .turn-meta, .rc-name .mono,
.closure ol li::before, .drawer-head .code, .tbl th,
.step > summary .mono, .iswitch button, .rrow .code,
.hrow .mono, .topic-codes, .ev.active .topic-codes,
.four .mono, .rgroup-t .mono { color: var(--muted-text); }
.simulation-note, .simulation-disclosure { font-size: 12px; line-height: 1.6; color: var(--muted-text); }
.drawer .simulation-note, .drawer .simulation-disclosure { margin-top: 24px; }
.block-head > .simulation-note { flex: 0 1 auto; }
/* Each state stays readable against its own tinted surface. */
.chip-support, .more > summary, .tl-node[aria-selected="true"] .date,
.seat.support .l small, .closure .mono, .an dt, .slabel .mono,
.rrow.support .st, .step[open] > summary .mono,
.hrow.on .mono, .panel-k, .panel-kv dd .mono,
.topic-top .mono, .seat-anchor { color: var(--violet-text); }
.chip-conditional, .chip-teacher, .rrow.conditional .st,
.seat.conditional .l small, .intent-chip, .cond strong,
.tnote-head { color: var(--amber-text); }
.chip-fact, .chip-reviewed, .chip-modified, .src > summary { color: var(--green-text); }
.more > summary:hover, .acc > summary:hover,
.ring-seat:hover .l, .qa div:hover, .four li:hover .mono,
.closure ol li:hover::before { color: var(--violet-text); }
.qa div::before { color: var(--violet-text); }
/* Filled badges use the same hue at text-safe depth. */
.seat-chip b { background: var(--violet-text); }
.dot-badge[data-count]::after { background: var(--amber-text); }
/* Selected dark controls need light secondary text. */
.vtab[aria-selected="true"] .mono,
.item[aria-current="true"] .muted-text,
.item[aria-current="true"] .faint { color: #c7c7c7; }
/* Adjacent film panels retain their scale cue without washing out content. */
.ev { opacity: 1; }
.ev.topic:not(.active) .topic-act .btn:not(:disabled) { opacity: 1; }

/* A / R3 · Field-by-field work comparison keeps both versions readable. */
.modal:has(.conflict-fields) { width: min(880px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; }
.conflict-fields { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 2px 8px 2px 0; margin-bottom: 20px; }
.conflict-field { min-width: 0; margin: 0 0 20px; padding: 16px 20px 20px; border: 1px solid var(--line); border-radius: 12px; }
.conflict-field:last-child { margin-bottom: 0; }
.conflict-field legend { padding: 0 8px; font-size: 15px; font-weight: 500; }
.conflict-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.conflict-compare > div { min-width: 0; }
.conflict-compare > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.conflict-compare h3 { font-size: 13px; color: var(--muted-text); }
.conflict-compare pre { min-height: 4em; max-height: 24vh; margin: 10px 0 16px; overflow: auto; overscroll-behavior: contain; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--sans); }
.conflict-field select { max-width: 100%; }
.modal:has(.conflict-fields) > h2, .modal:has(.conflict-fields) > .modal-actions { flex: none; }


/* A / F12 · Horizon peaks and translucent hover surfaces require deeper text.
   The two radial centers are on opposite sides; their sampled peak alphas are
   .55 × .75 (amber) and .55 × .6 (blue). Graphical colors remain unchanged. */
:root {
  --muted-text: #4a4a4a;
  --slate: var(--muted-text);
  --violet-text: #4439aa;
  --amber-text: #774000;
  --green-text: #085442;
}

/* B · Shared rows, teaching tools and overlays. Components are demonstrated in
   styleguide.html before use in the student and teacher routes. */
:root { --dur-fast: 200ms; --dur-mid: 450ms; --dur-slow: 650ms; --dur-enter: 900ms; --dur-tour: 600ms; }
.styleguide { max-width: 1120px; padding-top: 72px; padding-bottom: 120px; }
.styleguide-section { padding: 44px 0; border-bottom: 1px solid var(--line); }
.styleguide-section > h2 { margin-bottom: 28px; }
.styleguide-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.styleguide-table { width: 400px; }
.styleguide-bubble { position: relative !important; width: 320px; margin-top: 24px; }
.styleguide-modal, .styleguide-drawer { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); padding: 36px; }
.styleguide-modal { width: 500px; }
.styleguide-drawer { margin: 12px 12px 12px auto; height: calc(100dvh - 24px); width: 520px; }
.styleguide-modal::backdrop, .styleguide-drawer::backdrop { background: rgba(244,244,242,.6); backdrop-filter: blur(4px); }
.turn-summary { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12.5px; color: var(--muted-text); min-width: 0; }
.turn-summary > span:first-child { flex: none; }
.turn-next { flex: 1; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.turn-summary > .btn { flex: none; margin-left: auto; }
.turn-correction .inner { display: flex; align-items: end; gap: 12px; }
.turn-correction select { min-width: 0; }
.draft-markers, .cite-actions, .writing-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.draft-markers { margin-bottom: 10px; }
.cite-actions { margin: 10px 0 16px; }
.writing-tools { margin-bottom: 18px; }
.self-check { border-top: 1px solid var(--ink); margin-bottom: 24px; max-height: 50vh; overflow: auto; }
.self-check > * { padding: 12px 0; margin: 0; border-bottom: 1px solid var(--line); }
.conditions { border-top: 1px solid var(--ink); min-width: 0; }
.condition-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 16px 0 8px; }
.condition-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.condition-title { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.condition-title .btn { padding-left: 0; color: var(--ink); }
.condition-text { font-size: 13.5px; line-height: 1.7; overflow-wrap: anywhere; }
.condition-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.condition-tools select { width: auto; height: 32px; max-width: 160px; font-size: 12px; padding: 0 30px 0 10px; }
.condition-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.condition-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--violet-text); }
.track-dots { display: inline-flex; align-items: center; gap: 6px; min-height: 18px; }
.track-dot { display: inline-block; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line-2); flex: none; }
button.track-dot { width: 14px; height: 14px; border: 3px solid var(--paper); box-sizing: content-box; }
.track-dot.support { background: var(--violet); }
.track-dot.conditional { background: var(--amber); }
.track-dot.oppose { background: var(--ink); border-radius: 2px; }
.track-dot.changed { outline: 1px solid var(--ink); outline-offset: 2px; }
.track-dot.missing { background: transparent; border: 1px dashed var(--muted-text); }
.seat .track-dots { margin-top: 4px; gap: 4px; }
.seat .track-dot { width: 5px; height: 5px; }
.export-menu { position: relative; display: inline-block; }
.export-menu > summary { list-style: none; cursor: pointer; }
.export-menu > summary::-webkit-details-marker { display: none; }
.export-options { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; min-width: 190px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 40px rgba(22,22,22,.1); }
.export-options .btn { justify-content: flex-start; }
.motion-toggle { position: fixed; bottom: 16px; right: 20px; z-index: 85; background: var(--glass-2); backdrop-filter: blur(4px); }
.motion-toggle[aria-pressed="true"] { border-color: var(--ink); }
.focus-mode .arena { grid-template-columns: minmax(0, 860px) minmax(150px, 210px); justify-content: center; }
.focus-mode .arena-side .table, .focus-mode .arena-side .legend, .focus-mode .art-frame, .focus-mode .horizon { display: none; }
.focus-mode .arena-side { max-height: calc(100vh - 130px); overflow: auto; }
.focus-mode .condition-row { padding: 10px 0; }
.focus-mode .condition-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.focus-mode .condition-row:focus-within .condition-text, .focus-mode .condition-row:hover .condition-text { display: block; }
.arena-focus-btn { margin-left: auto; }
.skeleton { position: relative; display: grid; gap: 18px; overflow: hidden; padding: 20px 0; }
.skeleton > i { display: block; border-radius: 5px; background: rgba(22,22,22,.07); }
.skeleton-title { width: 45%; height: 32px; }
.skeleton-line { width: 100%; height: 16px; }
.skeleton-line:nth-child(3) { width: 72%; }
.skeleton-circle { width: 160px; height: 160px; border-radius: 50% !important; justify-self: end; }
.connection-demo { padding-top: 8px; border-top: 2px solid var(--amber); font-size: 12px; color: var(--amber-text); }

/* B / F11 · Persistent cutout and bubble share the same movement rhythm. */
.tour-overlay { position: fixed; inset: 0; z-index: 250; isolation: isolate; opacity: 0; }
.tour-overlay.visible { opacity: 1; }
.tour-spotlight { position: fixed; z-index: 1; pointer-events: none; border: 1px solid var(--violet); box-shadow: 0 0 0 9999px rgba(244,244,242,.6), 0 0 0 4px rgba(107,98,242,.14); }
.tour-blur { position: fixed; z-index: 0; pointer-events: none; backdrop-filter: blur(1.5px); }
.tour-bubble { position: fixed; z-index: 2; width: 340px; padding: 24px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 48px -18px rgba(22,22,22,.22); }
.tour-bubble h2, .tour-bubble h3 { font-size: 20px; font-weight: 500; line-height: 1.3; margin: 0 0 10px; }
.tour-bubble p { font-size: 14px; margin: 0; color: var(--muted-text); }
.tour-copy { min-height: 62px; }
.tour-controls { display: grid; grid-template-columns: auto 1fr auto auto; gap: 5px; align-items: center; }
.tour-controls .btn { padding-inline: 12px; }
.tour-progress { display: flex; align-items: center; gap: 5px; margin: 16px 0 20px; min-height: 5px; }
.tour-progress i { display: block; width: 5px; height: 5px; border-radius: 999px; background: var(--line-2); }
.tour-progress i.current { width: 22px; background: var(--violet); }
.tour-target { outline: 1px solid var(--violet) !important; outline-offset: 5px; }
@keyframes tourBreathe { 0%,100% { outline-color: rgba(107,98,242,.4); } 50% { outline-color: var(--violet); } }
.motion-limited .horizon::before, .motion-limited .horizon::after,
.tour-paused .horizon::before, .tour-paused .horizon::after { animation-play-state: paused; }
.reduce-motion { scroll-behavior: auto !important; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { scroll-behavior: auto !important; }
.reduce-motion .rv, .reduce-motion .mask > *, .reduce-motion [data-reveal] { opacity: 1; transform: none; filter: none; }
.reduce-motion .cursor-dot, .reduce-motion .cursor-ring { display: none; }
.reduce-motion .tour-target { outline-color: var(--violet) !important; }
@media (prefers-reduced-motion: reduce) {
  .tour-target { outline-color: var(--violet) !important; }
  .tour-spotlight, .tour-bubble, .tour-blur, .tour-progress i { }
}

/* A / F12 · Error messages and primary-button hover text retain AA contrast. */
.toast.error { background: var(--amber-text); }
.btn-ink::before { background: radial-gradient(140px 90px at var(--mx) var(--my), var(--violet-text), transparent 70%); }

/* B2 / F32–F33 · Review controls follow the existing line-based layout. */
.review-shortcuts,.phrase-list,.phrase-add,.batch-review{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}
.phrase-add input{flex:1;min-width:160px}.phrase-remove{border:0;background:transparent;padding:4px;color:var(--muted-text)}
.new-turn-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--violet-text);margin-inline:7px}
.review-select-row{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;border-bottom:1px solid var(--line);gap:8px}
.review-select-row>input,.batch-review input{width:15px;height:15px;margin:0;accent-color:var(--violet-text)}
.review-select-row .item{border-bottom:0}.batch-review label{display:flex;gap:8px;align-items:center;font-size:13px}
.batch-result{border-top:1px solid var(--line);padding:12px 0;font-size:13px}.batch-result p{margin-top:8px}
.audit-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-block:16px;font-size:13px;overflow-wrap:anywhere}
.audit-comparison>section+section{border-left:1px solid var(--line);padding-left:24px}.audit-comparison h3{font-size:13px;color:var(--muted-text);margin-bottom:12px}
.review-shortcuts .key-label{font:11px var(--mono);color:var(--muted-text)}

/* B2 student components: use existing alignment and accent roles. */
.speech-checks{display:flex;gap:6px;flex-wrap:wrap;min-height:20px;margin:8px 0}.speech-checks .btn{color:var(--amber-text);font-size:12px}.mention-menu{position:absolute;bottom:100%;left:20px;z-index:35;width:280px;background:white;border:1px solid var(--line);border-radius:20px;padding:8px;box-shadow:0 14px 50px #16161614}.mention-menu button{width:100%;justify-content:space-between}.mention-menu button[aria-selected=true]{background:var(--violet-soft);color:var(--violet-text)}
.insert-undo{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:95;background:var(--ink);color:white;padding:10px 16px;border-radius:30px;display:flex;gap:16px;align-items:center}.insert-undo .btn{color:white;border-color:#ffffff66}.turn-map{position:fixed;right:18px;top:40%;z-index:10;display:grid;gap:8px}.turn-map button{width:28px;height:15px;border:1px solid transparent;background:transparent;padding:3px}.turn-map button[aria-current=true]{border-color:var(--ink)}.mini-stack{display:flex;width:100%;height:5px;overflow:hidden}.mini-stack i{height:100%;display:block}.mini-stack .support{background:var(--violet)}.mini-stack .conditional{background:var(--amber)}.mini-stack .oppose{background:var(--ink)}
.replay-controls{position:sticky;top:90px;z-index:12;background:var(--bg);display:flex;gap:9px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}.replay-controls input[type=range]{flex:1;min-width:120px}.replay-controls select{width:auto}.replay-phase{font-size:12px;color:var(--muted-text)}
.writing.split-writing{display:grid;grid-template-columns:minmax(360px,var(--writing-ratio,56%)) 10px minmax(300px,1fr);gap:16px}.writing-divider{padding:0;border:0;border-left:1px solid var(--line);background:transparent;cursor:col-resize;touch-action:none}.writing-divider:hover,.writing-divider:focus-visible{border-color:var(--violet)}.writing-reference{position:sticky;top:100px;max-height:calc(100vh - 120px);overflow:auto;min-width:0}.reference-tabs{display:flex;gap:10px;border-bottom:1px solid var(--line);padding-bottom:12px}.reference-tabs [aria-selected=true]{color:var(--violet-text)}.reference-turn{border-bottom:1px solid var(--line);padding:18px 0}.reference-turn>p{font-size:14px;line-height:1.8}.reference-turn details{font-size:13px}.writing-outline{display:flex;flex-wrap:wrap;gap:6px;border-block:1px solid var(--line);padding:8px 0;margin:12px 0}.writing-outline button{font-size:12px}.writing-outline small{color:var(--muted-text);margin-left:6px}.format-tools{display:flex;gap:4px;flex-wrap:wrap}.completion-sheet{max-width:640px;margin:auto;padding:40px 0;border-block:1px solid var(--ink);}.completion-sheet h2{font-size:34px;margin:12px 0}.completion-metrics{display:flex;gap:32px;margin:26px 0}.completion-metrics strong{display:block;font-size:36px;font-weight:500}.completion-metrics span{font-size:12px;color:var(--muted-text)}@keyframes completionFold{from{opacity:0;transform:perspective(900px) rotateX(12deg) scale(.94)}to{opacity:1;transform:none}}
.mini-table-link{display:flex;align-items:center;gap:16px;background:transparent;border:0;padding:0;cursor:pointer;text-align:left}.mini-table-link svg{width:160px;height:160px;flex:none;}.mini-table-link:hover svg{transform:rotate(5deg)}.mini-table-link small{display:block;color:var(--muted-text);margin-top:6px}.reply-compare{border-block:1px solid var(--line);padding:12px 0;margin-bottom:16px}.deep-link{font-size:12px;color:var(--muted-text)}

/* B2 / F25–F30 · Shared search, preferences, status and recovery. */
.nav-utilities { display: inline-flex; align-items: center; gap: 2px; }
.nav-utilities .btn { padding-inline: 10px; }
.ui-overlay { position: fixed; inset: 0; z-index: 220; display: grid; place-items: start center; padding: 15vh 24px 36px; background: rgba(244,244,242,.64); backdrop-filter: blur(5px); opacity: 0; }
.ui-overlay.open { opacity: 1; }
.ui-dialog { width: min(720px, calc(100vw - 48px)); max-height: 72vh; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 24px 70px -26px rgba(22,22,22,.25); transform: translateY(18px) scale(.96); }
.ui-overlay.open .ui-dialog { transform: none; }
.ui-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.ui-dialog-head h2 { font-size: 1.25rem; }
.command-input { font-size: 1.125rem; border-radius: 12px; }
.command-results { min-height: 80px; max-height: 48vh; overflow: auto; margin-top: 16px; overscroll-behavior: contain; }
.command-group { margin: 20px 0 6px; font-size: .75rem; color: var(--muted-text); font-weight: 500; }
.command-group:first-child { margin-top: 0; }
.command-result { display: grid; gap: 3px; width: 100%; padding: 12px 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-align: left; }
.command-result[aria-selected="true"] { background: var(--violet-soft); box-shadow: inset 2px 0 var(--violet-text); }
.command-result-title { font-size: .9375rem; font-weight: 500; }
.command-result-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-text); font-size: .8125rem; }
.command-result mark { background: transparent; color: var(--violet-text); font-weight: 600; }
.command-empty { padding: 28px 10px; color: var(--muted-text); font-size: .875rem; }
.command-footer { padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted-text); font-size: .75rem; }
.ui-settings { width: 390px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.setting-options { display: flex; gap: 4px; }
.setting-options .btn[aria-pressed="true"] { background: var(--ink); color: white; }
.setting-toggle { display: flex; align-items: center; gap: 8px; }
.setting-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--violet-text); }
.setting-system { font-size: .75rem; color: var(--muted-text); }
.connection-bar { position: fixed; left: 0; right: 0; top: 0; height: 2px; background: var(--amber-text); z-index: 300; opacity: 0; pointer-events: none; }
.connection-bar.disconnected { opacity: 1; }
.connection-bar span { position: absolute; right: 28px; top: 5px; padding: 3px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--amber-text); font-size: .75rem; }
.skeleton { pointer-events: none; overflow: hidden; }
.skeleton-line, .skeleton-title { display: block; background: var(--line); border-radius: 4px; position: relative; overflow: hidden; }
.skeleton-line::after, .skeleton-title::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); transform: translateX(-100%); }
.skeleton-title { height: 44px; width: 44%; margin-bottom: 32px; }
.skeleton-row { display: grid; grid-template-columns: 70px 1fr 110px; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.skeleton-line { height: 14px; }
.skeleton-line.short { width: 65%; }
.skeleton-table { width: 270px; height: 180px; border: 1px solid var(--line-2); border-radius: 50%; margin: 36px auto; }
.skeleton-columns { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 48px; }
.render-fallback { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 24px 0; border-top: 1px solid var(--amber-text); color: var(--ink); }
.ui-position-highlight { outline: 2px solid var(--violet-text); outline-offset: 5px; border-radius: 6px; }
@keyframes skeletonSweep { to { transform: translateX(100%); } }
@keyframes uiLocate { from { background-color: var(--violet-soft); } to { background-color: transparent; } }
.reduce-motion .skeleton-line::after, .reduce-motion .skeleton-title::after { display: none; }
.reduce-motion .ui-position-highlight { }
.styleguide-ui-dialog { position: relative; max-height: none; transform: none; width: 100%; box-shadow: none; }


/* B2 · F13–F16. Local reading aids; glyph and condition colors retain their roles. */
.role-peek { position: fixed; z-index: 180; width: 350px; max-height: min(620px, calc(100vh - 32px)); overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 48px -18px rgba(22,22,22,.22); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(5px) scale(.97); transform-origin: top left; }
.role-peek.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.role-peek[data-placement="top"] { transform-origin: bottom left; }
.role-peek header { display: flex; align-items: baseline; gap: 12px; }
.role-peek header .mono { color: var(--muted-text); font-size: 12px; }
.role-peek h2 { margin: 0; font-size: 22px; font-weight: 500; }
.role-peek-identity { margin: 10px 0 16px; font-size: 13px; line-height: 1.65; color: var(--muted-text); }
.role-peek-section { border-top: 1px solid var(--line); padding: 12px 0; }
.role-peek-section h3 { font-size: 12px; color: var(--muted-text); margin: 0 0 7px; font-weight: 500; }
.role-peek-section ul { padding-left: 17px; margin: 0; font-size: 13px; line-height: 1.65; }
.role-peek-section li + li { margin-top: 5px; }
.role-peek-partners { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; }
.role-peek-partners > span { color: var(--muted-text); }
.role-peek-partners p { margin: 0; }
.role-peek > .btn { margin-left: -12px; }
[data-reading-static-role="1"] { cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
[data-reading-static-role="1"]:hover { text-decoration-color: currentColor; }
[data-reading-static-role="1"]:focus-visible { outline: 2px solid var(--violet-text); outline-offset: 3px; border-radius: 3px; }
[data-read-dot] { display: inline-block; width: 6px; height: 6px; border: 1px solid var(--muted-text); border-radius: 50%; margin-left: 7px; vertical-align: middle; }
[data-read-dot].is-read { background: var(--ink); border-color: var(--ink); }
.ring-seat[data-read-ids].has-read .d { background: var(--ink); }
.ring-seat[data-read-ids] .d::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; background: conic-gradient(var(--violet) calc(var(--read-progress, 0) * 1turn), transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 0); mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 0); }
.text-diff { white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-add { color: var(--violet-text); background: rgba(107,98,242,.12); text-decoration: none; border-radius: 2px; }
.diff-remove { color: var(--muted-text); text-decoration: line-through; text-decoration-thickness: 1px; }
.selection-tools { position: fixed; z-index: 190; display: flex; align-items: center; padding: 5px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 12px 36px -15px rgba(22,22,22,.3); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(5px) scale(.97); transform-origin: bottom center; }
.selection-tools.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.selection-tools .btn + .btn { border-left: 1px solid var(--line); border-radius: 0 999px 999px 0; }
.styleguide-role-peek, .styleguide-selection-tools { position: relative; inset: auto; opacity: 1; visibility: visible; pointer-events: auto; transform: none; margin: 18px 0; }
.styleguide-reading-progress { display: flex; align-items: center; gap: 18px; }
@media (prefers-reduced-motion: reduce) { .role-peek, .selection-tools, [data-reading-static-role="1"] { transform: none; } }
.reduce-motion .role-peek, .reduce-motion .selection-tools { transform: none; }

/* v0.12 / F26 F35: shared scale and motion overrides (append-only). */
:root { --dur-idle: 1800ms; --dur-stagger: 60ms; --dur-ambient: 26000ms; --ease: var(--silk); --linear: linear; --loop-ease: ease-in-out; }
body { font-size: 0.96875rem; }
button, input, select, textarea { font: inherit; }
.mono { font-size: 0.6875rem; }
.small { font-size: 0.84375rem; }
.horizon::before, .horizon::after { animation: drift var(--dur-ambient) var(--loop-ease) infinite alternate; }
.horizon::after { animation-delay: calc(var(--dur-ambient) * -0.5); }
.art-frame { transition: opacity var(--dur-mid); }
.brand { font-size: 0.9375rem; }
.tab-ind { transition: transform var(--dur-mid) var(--spring), width var(--dur-mid) var(--spring); }
.tab { font-size: 0.875rem; }
.seat-chip { font-size: 0.84375rem; }
.seat-chip b { font: 500 0.65625rem var(--mono); }
.dot-badge[data-count]::after { font: 500 0.65625rem/1.125rem var(--mono); animation: pop var(--dur-mid) var(--spring); }
.btn { font-size: 0.90625rem; }
.btn::before { }
.btn svg { }
.btn-sm { font-size: 0.84375rem; }
.btn-xs { font-size: 0.78125rem; }
.btn-lg { font-size: 1rem; }
.link { font-size: 0.8125rem; }
.chip { font-size: 0.75rem; }
.card { transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid); }
.card::before { transition: opacity var(--dur-mid); }
.card::after { transition: opacity var(--dur-mid); }
.display { font-size: clamp(3.5rem, 6.2vw, 6.25rem); }
.display .ln > span { animation: rise var(--dur-enter) var(--ease) both; }
.display .ln:nth-child(2) > span { animation-delay: calc(var(--dur-stagger) * 2); }
.h1 { font-size: 2.875rem; }
.h2 { font-size: 1.625rem; }
.h3 { font-size: 1.0625rem; }
.lead { font-size: 1.1875rem; }
.kicker { font-size: 0.8125rem; }
.page-enter { }
.stagger > * { animation: pageIn var(--dur-slow) var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: calc(var(--dur-stagger) * 1); }
.stagger > *:nth-child(3) { animation-delay: calc(var(--dur-stagger) * 2); }
.stagger > *:nth-child(4) { animation-delay: calc(var(--dur-stagger) * 3); }
.stagger > *:nth-child(5) { animation-delay: calc(var(--dur-stagger) * 4); }
.stagger > *:nth-child(6) { animation-delay: calc(var(--dur-stagger) * 5); }
.stagger > *:nth-child(7) { animation-delay: calc(var(--dur-stagger) * 6); }
.stagger > *:nth-child(8) { animation-delay: calc(var(--dur-stagger) * 7); }
.stagger > *:nth-child(9) { animation-delay: calc(var(--dur-stagger) * 8); }
.stagger > *:nth-child(10) { animation-delay: calc(var(--dur-stagger) * 9); }
.notice { font-size: 0.875rem; animation: pageIn var(--dur-mid) var(--ease); }
.field > label, .label { font-size: 0.8125rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 0.9375rem; }
.counter { font: 0.6875rem var(--mono); }
.acc > summary { font-size: 1.03125rem; transition: padding var(--dur-mid) var(--ease), color var(--dur-fast); }
.acc > summary::after { transition: transform var(--dur-mid) var(--spring), background-color var(--dur-fast); }
.acc-body { animation: pageIn var(--dur-mid) var(--ease); }
.more > summary { font-size: 0.8125rem; }
.more > summary::after { transition: transform var(--dur-fast); }
.src > summary { font-size: 0.75rem; transition: transform var(--dur-fast) var(--spring); }
.src-item { font-size: 0.84375rem; transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease); }
.src-item .meta { font-size: 0.75rem; }
.cursor-dot, .cursor-ring { transition: opacity var(--dur-fast); }
.cursor-ring { transition: opacity var(--dur-fast), width var(--dur-mid) var(--spring), height var(--dur-mid) var(--spring), margin var(--dur-mid) var(--spring), border-color var(--dur-fast), background var(--dur-fast); }
.toast { font-size: 0.875rem; transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--spring); }
.spin { animation: spin var(--dur-enter) var(--linear) infinite; }
.typing i { animation: blink var(--dur-enter) infinite; }
.typing i:nth-child(2) { animation-delay: calc(var(--dur-stagger) * 2.5); }
.typing i:nth-child(3) { animation-delay: calc(var(--dur-stagger) * 5); }
.empty strong { font-size: 1.1875rem; }
.join h2 { font-size: 1.625rem; }
.steps i.on::after { animation: fill var(--dur-slow) var(--ease) both; }
.drawn-code { font: 500 0.9375rem var(--mono); }
.drawing .drawn-code { animation: drawBeat var(--dur-mid) var(--loop-ease) infinite alternate; }
.drawn-name { font-size: 2.5rem; }
.reveal { animation: revealPop var(--dur-enter) var(--spring) both; }
.fact .num { font: 500 0.75rem var(--mono); }
.fact h3 { font-size: 1.1875rem; }
.fact p { font-size: 0.90625rem; }
.tl-progress { transition: width var(--dur-slow) var(--ease); }
.tl-node .date { font: 500 0.71875rem var(--mono); }
.tl-node .pin { transition: transform var(--dur-mid) var(--spring), border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-mid); }
.tl-node .t { font-size: 0.9375rem; transition: color var(--dur-fast); }
.tl-panel h3 { font-size: 1.375rem; }
.swap { animation: swapIn var(--dur-mid) var(--ease) both; }
.seg .tab { font-size: 0.875rem; }
.opt .letter { font: 500 0.75rem var(--mono); transition: transform var(--dur-mid) var(--spring), background var(--dur-fast); }
.opt h3 { font-size: 1.125rem; }
.opt p { font-size: 0.875rem; }
.opt .cost { font-size: 0.8125rem; }
.ring-seat .d { transition: transform var(--dur-mid) var(--spring), background var(--dur-fast), box-shadow var(--dur-mid); }
.ring-seat .l { font-size: 0.84375rem; transition: color var(--dur-fast), transform var(--dur-mid) var(--spring); }
.ring-seat .l small { font: 0.65625rem var(--mono); }
.ring-center .code { font: 500 4rem/1 var(--mono); }
.ring-center .nm { font-size: 1.875rem; }
.profile-side .id { font-size: 0.875rem; }
.vtab { font-size: 0.90625rem; transition: background var(--dur-fast), color var(--dur-fast), padding var(--dur-mid) var(--ease); }
.kb h3 { font-size: 1.125rem; }
.qa div { font-size: 1rem; transition: padding var(--dur-mid) var(--silk), color var(--dur-fast); }
.qa div::before { font: 500 0.6875rem var(--mono); transition: transform var(--dur-mid) var(--spring); }
.table-center strong { font-size: 1.875rem; }
.seat .d { transition: transform var(--dur-mid) var(--spring), box-shadow var(--dur-mid), background var(--dur-mid); }
.seat .l { font-size: 0.78125rem; }
.seat .l small { font-size: 0.65625rem; }
.seat.flash .d { animation: seatFlash var(--dur-enter) var(--spring); }
.legend { font-size: 0.78125rem; }
.turn-meta { font-size: 0.75rem; }
.me { animation: bubbleIn var(--dur-mid) var(--spring) both; }
.me .who { font-size: 0.75rem; }
.chair { font-size: 0.875rem; }
.event h4 { font-size: 1rem; }
.rc { transition: transform var(--dur-mid) var(--spring), border-color var(--dur-fast), box-shadow var(--dur-mid); }
.rc::before { transition: opacity var(--dur-fast); }
.rc-name { font-size: 0.9375rem; }
.rc p { font-size: 0.8125rem; }
.rc.ghost { animation: none; }
.rc.arrive { animation: arrive var(--dur-slow) var(--spring) both; }
.closure h2 { font-size: 2.125rem; }
.closure ol li { font-size: 0.9375rem; transition: padding var(--dur-mid) var(--silk), background var(--dur-fast); }
.closure ol li::before { font: 500 0.75rem var(--mono); transition: color var(--dur-fast); }
.dock-top h3 { font-size: 0.96875rem; }
.dock textarea { font-size: 1rem; }
.dock-bar select { font-size: 0.84375rem; }
.intent-chip { font-size: 0.8125rem; }
.pop { animation: pageIn var(--dur-mid) var(--ease); }
.icon-btn { transition: transform var(--dur-mid) var(--spring), color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast); }
.hints { animation: pageIn var(--dur-mid) var(--ease); }
.hint { transition: transform var(--dur-mid) var(--spring), border-color var(--dur-fast); }
.hint .q { font-size: 0.875rem; }
.hint blockquote { font-size: 0.8125rem; }
.hint-bar select { font-size: 0.8125rem; }
.scrim { }
.drawer { }
.drawer.open { }
.drawer.open .dr > * { }
.drawer.open .dr > *:nth-child(2) { }
.drawer.open .dr > *:nth-child(3) { }
.drawer.open .dr > *:nth-child(4) { }
.drawer.open .dr > *:nth-child(5) { }
.drawer-head .code { font: 500 0.75rem var(--mono); }
.drawer-head h2 { font-size: 2.125rem; }
.cond strong { font-size: 0.8125rem; }
.an dt { font-size: 0.78125rem; }
.an dd { font-size: 0.875rem; }
.tnote { font-size: 0.875rem; animation: pageIn var(--dur-mid) var(--ease); }
.tnote-head { font-size: 0.78125rem; }
.paper textarea.doc { font-size: 1.03125rem; }
.paper textarea.ref { font-size: 0.96875rem; }
.paper .title { font-size: 0.8125rem; }
.stances div { font-size: 0.875rem; }
.stat::after { transition: transform var(--dur-slow) var(--silk); }
.stat strong { font-size: 3.75rem; }
.stat span { font-size: 0.84375rem; }
.tbl { font-size: 0.875rem; }
.tbl th { font-size: 0.78125rem; }
.tbl tbody tr { transition: background var(--dur-fast), transform var(--dur-mid) var(--ease); }
.bar-row { font-size: 0.875rem; }
.bar i { animation: grow var(--dur-enter) var(--ease) both; }
.filters input, .filters select { font-size: 0.875rem; }
.item { font-size: 0.8125rem; transition: transform var(--dur-mid) var(--spring), border-color var(--dur-fast), background var(--dur-fast); }
.item::before { transition: opacity var(--dur-fast); }
.item strong { font-size: 0.9375rem; }
.read { font-size: 0.90625rem; }
.compose { animation: pageIn var(--dur-mid) var(--ease); }
.style-card ol { font-size: 0.84375rem; }
.step { transition: border-color var(--dur-fast); }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: var(--dur-fast) !important; transition-duration: var(--dur-fast) !important; }
}
::view-transition-old(root) { animation: vtOut var(--dur-fast) var(--out) both; }
::view-transition-new(root) { animation: vtIn var(--dur-slow) var(--silk) both; }
::view-transition-group(nav) { animation-duration: var(--dur-mid); animation-timing-function: var(--silk); }
.rv { transition: opacity var(--dur-enter) var(--silk), transform var(--dur-enter) var(--silk), filter var(--dur-enter) var(--silk); transition-delay: var(--d, 0ms); }
.mask > span { transition: transform var(--dur-enter) var(--silk); transition-delay: var(--d, 0ms); }
.collapse { transition: grid-template-rows var(--dur-mid) var(--silk), opacity var(--dur-mid) var(--silk), transform var(--dur-mid) var(--silk), margin var(--dur-mid) var(--silk); }
.slabel h2 { font-size: 1.625rem; }
.uline::after { transition: width var(--dur-enter) var(--silk); transition-delay: calc(var(--d, 0ms) + calc(var(--dur-stagger) * 8.33333)); }
.cue i { animation: cue var(--dur-idle) var(--silk) infinite; }
.stmt h3 { font-size: 2.125rem; }
.stmt p { font-size: 1rem; }
.stmt:hover h3 .mask > span { transition: color var(--dur-mid), transform var(--dur-enter) var(--silk); }
.ev { transition: opacity var(--dur-mid) var(--silk), transform var(--dur-slow) var(--silk); }
.ev .when { font-size: clamp(3.5rem, 6vw, 6rem); }
.ev .when small { font: 500 0.75rem var(--mono); }
.ev h3 { font-size: 1.625rem; }
.ev .prose { font-size: 0.9375rem; }
.rail button { transition: transform var(--dur-mid) var(--spring), background var(--dur-fast); }
.rail button span { font: 500 0.6875rem var(--mono); }
.iswitch button { font-size: 1.375rem; transition: color var(--dur-fast); }
.iswitch button::after { transition: transform var(--dur-mid) var(--silk); }
.idesc { font-size: 0.9375rem; }
.orow::before { }
.orow .lt { font: 500 0.8125rem var(--mono); }
.orow h3 { font-size: 1.3125rem; }
.orow p { font-size: 0.90625rem; }
.orow .tr { font-size: 0.875rem; }
.swap-in { animation: swapIn2 var(--dur-slow) var(--silk) both; }
.scene-cta .display { font-size: clamp(4rem, 8vw, 8rem); }
.rrow { font-size: 0.90625rem; }
.rrow::before { }
.rrow .code { font: 500 0.6875rem var(--mono); }
.rrow .nm { font-size: 0.96875rem; }
.rrow .st { font-size: 0.8125rem; }
.rrow .cd { font-size: 0.875rem; }
.rrow svg { }
.rrow.arrive { }
.hrow { transition: padding var(--dur-mid) var(--silk); }
.hrow::before { transition: opacity var(--dur-fast); }
.hrow strong { font-size: 0.96875rem; }
.hrow small { font-size: 0.78125rem; }
.hrow svg { transition: transform var(--dur-mid) var(--spring), color var(--dur-fast); }
.modal-wrap { }
.modal-wrap.open { }
.modal-scrim { }
.modal { }
.modal-wrap.open .modal { }
.modal-wrap.open .modal > * { }
.modal-wrap.open .modal > *:nth-child(2) { }
.modal-wrap.open .modal > *:nth-child(3) { }
.modal-wrap.open .modal > *:nth-child(4) { animation-delay: calc(var(--dur-stagger) * 2.5); }
.modal h2 { font-size: 1.75rem; }
.modal-stats strong { font-size: 1.25rem; }
.modal-stats span { font-size: 0.75rem; }
.nav-who { font-size: 0.84375rem; }
.wordmark-caption { font-size: 0.625rem; }
.wordmark { font-size: clamp(2rem, 5.25vw, 4.75rem); }
.home-panel h2 { font-size: 1.625rem; }
.home-panel .panel-title { font-size: 1.25rem; }
.panel-kv dt { font-size: 0.78125rem; }
.panel-kv dd { font-size: 0.90625rem; }
.library-rail button::before { transition: transform var(--dur-mid) var(--spring), background var(--dur-fast); }
.topic-top .mono { font-size: 0.8125rem; }
.ev .topic-title { font-size: clamp(2.25rem, 3.6vw, 3.5rem); }
.topic-meta dt { font-size: 0.78125rem; }
.topic-meta dd { font-size: 1.625rem; }
.topic-codes { font-size: 0.71875rem; }
.topic-act .btn { transition: transform var(--dur-mid) var(--spring), border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-mid), opacity var(--dur-mid) var(--silk); }
.ev .topic-title.hollow { font-size: clamp(4.5rem, 7vw, 7rem); transition: -webkit-text-stroke-color var(--dur-mid) var(--silk); }
.home-cta-actions .btn { font-size: 1.125rem; }
.home-open-topics { font-size: 0.84375rem; }
.four li > div { transition: transform var(--dur-slow) var(--silk); }
.four .mono { font-size: 0.8125rem; transition: color var(--dur-mid); }
.four strong { font-size: clamp(1.75rem, 2.4vw, 2.375rem); }
.four strong::after { transition: transform var(--dur-slow) var(--silk); }
.four small { font-size: 0.875rem; transition: color var(--dur-mid); }
.rgroup-t { font-size: 1.375rem; }
.rgroup-t .mono { font-size: 0.75rem; }
.home-records .hrow strong { font-size: 1.0625rem; }
.seat-anchor { font-size: 0.75rem; }
@media (prefers-reduced-motion: reduce) {
.four li > div, .four strong::after, .topic-act .btn { transition: none; }
}
.simulation-note, .simulation-disclosure { font-size: 0.75rem; }
.conflict-field legend { font-size: 0.9375rem; }
.conflict-compare h3 { font-size: 0.8125rem; }
.styleguide-modal, .styleguide-drawer { animation: drIn var(--dur-slow) var(--silk); }
.turn-summary { font-size: 0.78125rem; }
.condition-row { animation: drIn var(--dur-slow) var(--silk); }
.condition-text { font-size: 0.84375rem; }
.condition-tools select { font-size: 0.75rem; }
.condition-check { font-size: 0.75rem; }
.export-options { }
.connection-demo { font-size: 0.75rem; }
.tour-overlay { transition: opacity var(--dur-mid) var(--silk); }
.tour-spotlight { transition: left var(--dur-tour) var(--silk), top var(--dur-tour) var(--silk), width var(--dur-tour) var(--silk), height var(--dur-tour) var(--silk), border-radius var(--dur-tour) var(--silk); }
.tour-blur { transition: left var(--dur-tour) var(--silk), top var(--dur-tour) var(--silk), width var(--dur-tour) var(--silk), height var(--dur-tour) var(--silk); }
.tour-bubble { transition: left var(--dur-tour) var(--silk), top var(--dur-tour) var(--silk), transform var(--dur-slow) var(--silk); }
.tour-bubble h2, .tour-bubble h3 { font-size: 1.25rem; }
.tour-bubble p { font-size: 0.875rem; }
.tour-progress i { transition: width var(--dur-mid) var(--spring), background var(--dur-fast); }
.tour-target { animation: tourBreathe var(--dur-idle) var(--loop-ease) infinite !important; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { }
@media (prefers-reduced-motion: reduce) {
.tour-target { animation: none !important; }
.tour-spotlight, .tour-bubble, .tour-blur, .tour-progress i { transition: none; }
}
.batch-review label { font-size: 0.8125rem; }
.batch-result { font-size: 0.8125rem; }
.audit-comparison { font-size: 0.8125rem; }
.audit-comparison h3 { font-size: 0.8125rem; }
.review-shortcuts .key-label { font: 0.6875rem var(--mono); }
.speech-checks .btn { font-size: 0.75rem; }
.replay-phase { font-size: 0.75rem; }
.reference-turn>p { font-size: 0.875rem; }
.reference-turn details { font-size: 0.8125rem; }
.writing-outline button { font-size: 0.75rem; }
.completion-sheet { animation: completionFold var(--dur-enter) var(--silk); }
.completion-sheet h2 { font-size: 2.125rem; }
.completion-metrics strong { font-size: 2.25rem; }
.completion-metrics span { font-size: 0.75rem; }
.mini-table-link svg { transition: transform var(--dur-slow) var(--silk); }
.deep-link { font-size: 0.75rem; }
.ui-overlay { }
.ui-dialog { }
.ui-dialog-head h2 { font-size: 1.25rem; }
.command-input { font-size: 1.125rem; }
.command-group { font-size: .75rem; }
.command-result-title { font-size: .9375rem; }
.command-result-text { font-size: .8125rem; }
.command-empty { font-size: .875rem; }
.command-footer { font-size: .75rem; }
.setting-row { font-size: .9375rem; }
.setting-system { font-size: .75rem; }
.connection-bar { transition: opacity var(--dur-mid) var(--silk); }
.connection-bar span { font-size: .75rem; }
.skeleton-line::after, .skeleton-title::after { animation: skeletonSweep var(--dur-idle, 1800ms) var(--silk) infinite; }
.ui-position-highlight { animation: uiLocate var(--dur-idle,1800ms) var(--silk); }
.reduce-motion .ui-position-highlight { animation: none; }
.role-peek { transition: opacity var(--dur-fast) var(--silk), transform var(--dur-mid) var(--silk), visibility var(--dur-fast); }
.role-peek header .mono { font-size: 0.75rem; }
.role-peek h2 { font-size: 1.375rem; }
.role-peek-identity { font-size: 0.8125rem; }
.role-peek-section h3 { font-size: 0.75rem; }
.role-peek-section ul { font-size: 0.8125rem; }
.role-peek-partners { font-size: 0.75rem; }
[data-reading-static-role="1"] { transition: text-decoration-color var(--dur-fast) var(--silk); }
.selection-tools { transition: opacity var(--dur-fast) var(--silk), transform var(--dur-mid) var(--silk), visibility var(--dur-fast); }
@media (prefers-reduced-motion: reduce) {
.role-peek, .selection-tools, [data-reading-static-role="1"] { transition: none; }
}
.reduce-motion .role-peek, .reduce-motion .selection-tools { transition: none; }
[style*="font-size:13.5px"], [style*="font-size: 13.5px"] { font-size: 0.84375rem !important; }
[style*="font-size:21px"], [style*="font-size: 21px"] { font-size: 1.3125rem !important; }
[style*="--d:.1s"], [style*="--d: .1s"] { --d: calc(var(--dur-stagger) * 1.66667); }
[style*="--d:.35s"], [style*="--d: .35s"] { --d: calc(var(--dur-stagger) * 5.83333); }
[style*="--d:.45s"], [style*="--d: .45s"] { --d: calc(var(--dur-stagger) * 7.5); }
[style*="--d:.6s"], [style*="--d: .6s"] { --d: calc(var(--dur-stagger) * 10); }
[style*="--d:.7s"], [style*="--d: .7s"] { --d: calc(var(--dur-stagger) * 11.6667); }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
/* CSS alone also remains static before the preference controller mounts. */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
/* F22: the empty separator must span the writing grid's full row. */
.writing-divider { align-self: stretch; min-height: 15rem; }
/* F13: delegation labels share the preview hit area with their seat. */
.ring-seat[data-role-id] .l, .seat[data-role-id] .l, .ring-center [data-role-id] { pointer-events: auto; }

/* C1: scenario scope and status review. */
.teacher-scope { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:0 0 24px; margin-bottom:24px; border-bottom:1px solid var(--line); }
.teacher-scope label { display:flex; align-items:center; gap:14px; color:var(--muted-text); font-size:.8125rem; white-space:nowrap; }
.teacher-scope select { width:min(450px,42vw); }
.scenario-management-row { display:flex; align-items:center; justify-content:space-between; gap:36px; padding:30px 0; border-bottom:1px solid var(--line); }
.scenario-management-row h2 { font-size:1.375rem; margin-bottom:10px; }
.scenario-status-options { display:flex; gap:4px; flex:none; }
.scenario-status-options [aria-pressed="true"] { background:var(--ink); color:white; }
.scenario-confirm { width:min(500px,90vw); padding:32px; border:1px solid var(--line); border-radius:20px; background:var(--paper); color:var(--ink); animation:drIn var(--dur-slow) var(--silk); }
.scenario-confirm::backdrop { background:rgba(244,244,242,.6); backdrop-filter:blur(5px); }
.scenario-confirm h2 { font-size:1.5rem; margin-bottom:18px; }
.scenario-confirm p { color:var(--muted-text); }
.scenario-confirm-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:24px; }

/* C1 extends the existing navigation and ruled record groups. */
.scenario-context { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-chip > .scenario-context { max-width: 7rem; }
.drawer .rgroup + .rgroup { margin-top: 2rem; }

/* C1: current topic shares the brand column without widening the navigation. */
.nav-identity{min-width:0}

/* C2 · classroom projection, extending the existing light roundtable. */
.projection-view { min-width: 960px; width: 100%; color: var(--ink); background: var(--bg); }
.projection-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.projection-kicker { display: block; color: var(--muted-text); font-size: .6875rem; margin-bottom: 6px; }
.projection-title { font-size: clamp(1.5rem, 2.5vw, 2.5rem); font-weight: 500; line-height: 1.2; max-width: 30em; text-wrap: balance; }
.projection-controls { display: flex; align-items: center; flex-shrink: 0; gap: 4px; }
.projection-status { padding: 8px 0; margin: 0; color: var(--amber-text); font-size: .875rem; }
.projection-main { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(220px, .75fr); column-gap: 56px; align-items: center; padding: 10px 0 22px; }
.projection-table { margin: 0; min-width: 0; }
.projection-table svg { width: 100%; height: auto; max-height: 25rem; overflow: visible; }
.projection-orbit { fill: none; stroke: var(--line-2); stroke-width: 1; }
.projection-constellation { fill: none; stroke: var(--muted-text); stroke-width: .7; opacity: .45; }
.projection-ring-base { fill: var(--bg); stroke: var(--line-2); stroke-width: 6; }
.projection-ring { fill: none; stroke-width: 6; stroke-linecap: butt; transition: stroke-dasharray var(--dur-slow) var(--silk), stroke-dashoffset var(--dur-slow) var(--silk); }
.projection-ring.support { stroke: var(--violet); }
.projection-ring.conditional { stroke: var(--amber); }
.projection-ring.reserved { stroke: var(--slate); }
.projection-code { fill: var(--ink-2); font: 11px var(--mono); }
.projection-role-name { fill: var(--ink); font: 500 17px var(--sans); }
.projection-table-caption { fill: var(--ink); font: 500 25px var(--sans); }
.projection-table-subcaption { fill: var(--muted-text); font: 14px var(--sans); }
.projection-legend { display: flex; gap: 24px; justify-content: center; color: var(--muted-text); font-size: .75rem; line-height: 1.4; }
.projection-legend span { display: inline-flex; align-items: center; gap: 7px; }
.projection-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--slate); }
.projection-legend i.support { background: var(--violet); }
.projection-legend i.conditional { background: var(--amber); }
.projection-metrics { margin: 0; display: grid; }
.projection-metrics > div { border-bottom: 1px solid var(--line); padding: 11px 0 14px; }
.projection-metrics > div:last-child { border-bottom: 0; }
.projection-metrics dt { color: var(--muted-text); font-size: .875rem; }
.projection-metrics dd { margin: 0; display: flex; align-items: baseline; gap: 13px; line-height: 1; }
.projection-metrics strong { font-size: clamp(3rem, 5.6vw, 5rem); font-weight: 500; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.projection-metrics dd > span { color: var(--muted-text); font-size: .75rem; }
.projection-conditions { border-top: 1px solid var(--ink); }
.projection-conditions > header { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 13px 0 9px; }
.projection-conditions h2 { font-size: 1.125rem; font-weight: 500; }
.projection-conditions-caption { color: var(--muted-text); font-size: .6875rem; }
.projection-conditions ol { margin: 0; padding: 0; list-style: none; }
.projection-condition { display: grid; grid-template-columns: 125px minmax(0, 1fr) 64px; align-items: baseline; gap: 18px; padding: .3rem 0; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.4; }
.projection-condition-role { color: var(--muted-text); }
.projection-condition-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.projection-condition-count { text-align: right; color: var(--muted-text); font-size: .75rem; }
.projection-condition-count small { font: inherit; margin-left: 6px; }
.projection-no-conditions { color: var(--muted-text); margin: 0; padding: 18px 0; font-size: .875rem; }
.projection-empty { min-height: 60vh; display: grid; place-items: center; }
.projection-student-url { font: 400 clamp(1.1rem, 2.7vw, 2.25rem) var(--mono); text-decoration-color: var(--line-2); overflow-wrap: anywhere; }
.projection-view:fullscreen { padding: 32px 48px; overflow: auto; }
.projection-view.is-reduced .projection-ring, .reduce-motion .projection-ring { transition: none; }
@media (prefers-reduced-motion: reduce) { .projection-ring { transition: none; } }
.styleguide-projection { margin-top: 28px; }

.projection-shell{max-width:var(--page);margin:0 auto;padding:3rem var(--edge)}
.projection-mode .horizon,.projection-mode .art-frame,.projection-mode .ui-overlay{display:none!important}
.projection-mode #app{padding:1.6rem 2rem;max-width:none}
.projection-mode .projection-view{min-width:0}

/* v0.12 C3 — one stance matrix across writing and review; classroom compact variant. */
.stance-track{max-width:100%;overflow:auto;padding:2px 3px 5px}.stance-track-table,.aggregate-track-table{width:100%;border-collapse:collapse;text-align:left}.stance-track-table caption,.aggregate-track-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.stance-track-table th,.stance-track-table td{border-bottom:1px solid var(--line);padding:9px 7px;white-space:nowrap}.stance-track-table thead th{color:var(--slate);font-size:0.6875rem;font-weight:500;text-align:center}.stance-track-table thead th:first-child{text-align:left}.stance-track-table tbody th{font-size:0.75rem;font-weight:500;max-width:150px;white-space:normal;min-width:90px}.stance-track-table td{text-align:center;min-width:30px}.stance-track-cell{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:18px;height:18px;padding:0;border:1px solid transparent;border-radius:4px;background:var(--slate);color:var(--slate);line-height:1;cursor:default}.stance-track-cell.support,.stance-track-legend i.support{background:#6b62f2}.stance-track-cell.conditional,.stance-track-legend i.conditional{background:#e8962a}.stance-track-cell.oppose,.stance-track-legend i.oppose{background:#161616}.stance-track-cell.missing{background:transparent;border-color:var(--line);font-size:0.6875rem}.stance-track-cell.changed{outline:1.5px solid var(--ink);outline-offset:2px}.stance-track-cell[data-action]{cursor:pointer}.stance-track-cell[data-action]:hover{transform:scale(1.12)}.stance-track-cell:focus-visible,.stance-track:focus-visible,.aggregate-track:focus-visible{outline:2px solid var(--violet);outline-offset:4px}.stance-track-legend{display:flex;gap:10px 14px;flex-wrap:wrap;align-items:center;padding:13px 0 2px;font-size:0.625rem;color:var(--slate)}.stance-track-legend>span{display:inline-flex;align-items:center;gap:5px}.stance-track-legend i{display:inline-block;width:7px;height:7px;border-radius:2px}.stance-track-legend i.changed{border:1px solid var(--ink);outline:1px solid var(--ink);outline-offset:1px}.track-empty{font-size:0.75rem;color:var(--slate);padding:14px 0}.aggregate-track{max-width:100%;overflow:auto;padding:2px 3px 4px}.aggregate-track-table{table-layout:fixed}.aggregate-track-table th,.aggregate-track-table td{padding:3px 4px;border-bottom:1px solid var(--line);height:18px;line-height:12px;font-size:0.625rem;text-align:center}.aggregate-track-table th:first-child{width:76px;text-align:left;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aggregate-track-table thead th{font-size:0.5625rem;color:var(--slate);font-weight:500}.aggregate-stack{display:flex;width:100%;min-width:11px;height:8px;overflow:hidden;border-radius:2px;background:transparent}.aggregate-stack i{display:block;height:100%;transition:width var(--dur-mid) var(--silk)}.aggregate-stack .support{background:#6b62f2}.aggregate-stack .conditional{background:#e8962a}.aggregate-stack .reserved{background:#161616}.aggregate-stack.changed{outline:1px solid var(--ink);outline-offset:1.5px}.aggregate-stack.missing{display:block;text-align:center;color:var(--slate);height:10px;line-height:8px}.projection-mode .aggregate-track{font-size:0.625rem}.projection-mode .aggregate-track-table th,.projection-mode .aggregate-track-table td{height:18px}.projection-mode .aggregate-track-table th:first-child{width:80px}.projection-mode .aggregate-track-table tbody th{font-size:0.625rem}@media(prefers-reduced-motion:reduce){.aggregate-stack i{transition:none}.stance-track-cell[data-action]:hover{transform:none}}

.projection-review{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:2rem;align-items:start}
.projection-track{border-top:1px solid var(--ink);padding-top:.75rem;min-width:0}
.projection-track h2{font-size:1.125rem;margin-bottom:.5rem}
.projection-review .projection-conditions{min-width:0}
.projection-review .projection-condition{grid-template-columns:5.6rem minmax(0,1fr) 2.8rem;gap:.65rem}
.projection-mode .aggregate-track-table th,.projection-mode .aggregate-track-table td{height:1.25rem;font-size:.8125rem;line-height:1.1}
.projection-mode .aggregate-track-table tbody th{font-size:.8125rem}
.projection-mode .aggregate-track-table th:first-child{width:6rem}
.projection-mode .aggregate-stack{height:.6rem}
.teacher-stance-track{margin:0 0 2rem;padding-top:1rem;border-top:1px solid var(--line)}
.teacher-stance-track>h3{margin-bottom:.7rem}
/* Keep the chart, ten-round matrix and top conditions within a 900px classroom view. */
.projection-mode #app{padding-block:1.2rem}
.projection-mode .projection-table svg{max-height:18rem}
.projection-mode .projection-metrics strong{font-size:4rem}
.projection-mode .projection-main{padding-top:.35rem;padding-bottom:.7rem}

/* v0.12 C4 — precise comments preserve the original text and its line breaks. */
.annotation-text{white-space:pre-wrap;overflow-wrap:anywhere}.annotation-mark{background:rgba(232,150,42,.22);color:inherit;border-radius:2px;padding:0;box-decoration-break:clone;-webkit-box-decoration-break:clone}.annotation-mark:hover{background:rgba(232,150,42,.34)}.annotation-mark:focus-visible{outline:2px solid var(--amber);outline-offset:2px}.annotation-fallback{font-size:11px;color:var(--slate);margin-top:6px}.annotation-view-tools{display:flex;align-items:center;gap:12px;margin-bottom:12px}.comment-selection-tools{position:fixed;z-index:145;display:flex;align-items:center;padding:3px;border:1px solid var(--line-2);border-radius:999px;background:var(--paper);box-shadow:0 8px 24px rgba(22,22,22,.1);opacity:0;transform:translateY(3px);transition:opacity var(--dur-fast) var(--silk),transform var(--dur-fast) var(--silk)}.comment-selection-tools.open{opacity:1;transform:translateY(0)}.comment-selection-tools .btn{white-space:nowrap}.annotation-demo-toolbar{position:static;display:inline-flex;opacity:1;transform:none;margin-top:12px}@media(prefers-reduced-motion:reduce){.comment-selection-tools{transition:none;transform:none}}
.annotation-document{min-height:480px;font-size:1.03125rem;line-height:1.95}
/* C4 typography follows the shared font-size preference. */
.annotation-fallback{font-size:.6875rem}.comment-quote-context{margin:10px 0;border-left:2px solid var(--amber);background:rgba(232,150,42,.08);padding:10px 14px;color:var(--ink-2);font-size:.875rem;white-space:pre-wrap;overflow-wrap:anywhere}

/* v013-reading · continuous text, a quiet section rail and sources on request. */
.reading-rail nav button,.role-name-button,.role-compare-add,.reading-source-link{appearance:none;border:0;background:transparent;border-radius:0;font-family:inherit;cursor:pointer}
.reading-rail nav button:focus-visible,.role-name-button:focus-visible,.role-compare-add:focus-visible,.reading-source-link:focus-visible{outline:2px solid var(--violet);outline-offset:3px}
.reading-layout{display:grid;grid-template-columns:9.5rem minmax(0,1fr) 15rem;gap:2.5rem;align-items:start}
.reading-main.film{margin:0;min-width:0}.reading-main>section{min-height:0;padding:0 0 3.5rem;margin-bottom:2rem;border-bottom:1px solid var(--line);scroll-margin-top:8rem}
.reading-main h1{font-size:clamp(2rem,3.2vw,3.2rem);font-weight:500;letter-spacing:-.04em;line-height:1.2;margin:.75rem 0 1.5rem;text-wrap:balance}
.reading-main h2{font-size:1.5rem;font-weight:500;margin:0 0 1.6rem;line-height:1.35}.reading-main h3{font-size:1.125rem;font-weight:500;line-height:1.45}
.reading-main p,.reading-main .prose{font-size:1rem;line-height:1.9}.reading-intro{font-size:1.125rem!important}.reading-kicker{display:flex;justify-content:space-between;gap:1rem;font-size:.75rem;color:var(--muted-text)}
.reading-rail,.reading-side,.role-reading-layout .profile-side{position:sticky;top:8rem;min-width:0;max-height:calc(100vh - 10rem);overflow:auto}
.reading-rail-head{display:grid;gap:.5rem;margin-bottom:1rem}.reading-rail-head [data-reading-current]{font-size:.75rem;color:var(--ink);line-height:1.5}.reading-rail-head .btn{justify-self:start;padding-left:0;color:var(--muted-text)}
.reading-rail nav{border-left:1px solid var(--line)}.reading-rail nav button{display:grid;grid-template-columns:1.3rem 1fr .5rem;gap:.35rem;align-items:baseline;width:100%;text-align:left;padding:.65rem .6rem;color:var(--muted-text);font-size:.8125rem;border-left:2px solid transparent;margin-left:-1px;line-height:1.5}.reading-rail nav button[aria-current]{border-left-color:var(--violet);color:var(--ink)}.reading-rail .mono{font-size:.625rem}.reading-rail.is-collapsed .reading-rail-head{border-left:2px solid var(--violet);padding-left:.75rem}
.reading-sources{display:flex;flex-wrap:wrap;gap:.25rem .75rem;align-items:baseline;margin-top:.75rem;font-size:.75rem;line-height:1.7}.reading-sources>span{color:var(--muted-text)}.reading-source-link{padding:0;text-align:left;color:var(--green-text);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:.25em}.reading-source-link:hover,.reading-source-link[aria-expanded=true]{text-decoration-color:currentColor}.reading-source-preview{border-top:1px solid var(--green-text);padding:1rem 0 1.5rem;font-size:.8125rem;overflow-wrap:anywhere}.reading-source-head{display:flex;align-items:center;justify-content:space-between;color:var(--green-text);font-size:.75rem;margin-bottom:1rem}.reading-source-preview h2{font-size:1.0625rem;font-weight:500;line-height:1.6;margin-bottom:1rem}.reading-source-preview h3{font-size:.75rem;color:var(--muted-text);margin:1rem 0 .5rem}.reading-source-preview .prose,.reading-source-preview p{font-size:.8125rem;line-height:1.8}.reading-source-meta{display:grid;gap:.45rem}.reading-source-meta>div{display:grid;grid-template-columns:3rem minmax(0,1fr);gap:.6rem}.reading-source-meta dt{color:var(--muted-text)}.reading-source-meta dd{margin:0}.reading-open-original{display:inline-block;color:var(--green-text);margin-top:1rem;text-decoration:underline;text-underline-offset:.3em}
.reading-facts .stmt{display:block;padding:0 0 1.7rem;margin:0 0 1.7rem;border-bottom:1px solid var(--line)}.reading-facts .stmt:last-child{margin:0;border:0;padding:0}.reading-facts .stmt h3{margin-bottom:.8rem}.reading-facts .stmt p{margin:0}.reading-cite-row{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.6rem}.reading-cite-row .cite-actions{margin:0}
.reading-timeline{list-style:none;margin:0;padding:0}.reading-timeline li{display:grid;grid-template-columns:6rem minmax(0,1fr);gap:1.4rem;padding:1.3rem 0;border-top:1px solid var(--line)}.reading-timeline time{font-family:var(--mono);font-size:.6875rem;line-height:1.8;color:var(--muted-text)}.reading-timeline small{display:block;font:inherit;margin-top:.4rem}.reading-timeline h3{margin-bottom:.6rem}.reading-timeline p{font-size:.9375rem}
.reading-main .iswitch{margin-bottom:1.8rem;gap:.7rem}.reading-main .iswitch button{font-size:.875rem;padding:.65rem 0}.reading-main .idesc{font-size:1rem;margin-bottom:1rem}.reading-main .orow{grid-template-columns:1.2rem 1fr;gap:1rem;padding:1.3rem 0;animation:none}.reading-main .orow .lt{font-size:.75rem}.reading-main .orow h3{font-size:1rem}.reading-main .orow p{font-size:.9375rem}.reading-main .orow .tr{grid-column:2;color:var(--muted-text);margin:0;font-size:.8125rem}.reading-main .orow .tr:empty{display:none}
.reading-main .acc{border-radius:0}.reading-main .acc>summary{padding:1rem 0;font-size:1rem}.reading-main .acc-body{padding:0 0 1.5rem}.reading-main .research-shelf{margin-top:1.8rem}.reading-main .kb{padding-top:1.5rem;margin-top:1.5rem}.reading-main .kb:first-child{margin-top:0;padding-top:0}.reading-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.7rem}
.delegations-title{display:flex;justify-content:space-between;gap:2rem;align-items:baseline;margin-bottom:1.5rem}.delegations-title h1{font-size:2rem;font-weight:500;letter-spacing:-.03em}.delegations-title p{font-size:.8125rem;color:var(--muted-text)}
.role-directory{display:flex;flex-wrap:wrap;border-block:1px solid var(--line);margin-bottom:2.5rem;gap:.25rem 1.25rem;padding:.65rem 0}.role-directory-item{display:flex;align-items:center;gap:.1rem}.role-name-button{padding:.5rem 0;font-size:.875rem;color:var(--muted-text);border-bottom:2px solid transparent}.role-name-button[aria-current=true]{color:var(--ink);border-bottom-color:var(--violet)}.role-name-button small{font-size:.625rem;margin-left:.35rem}.role-compare-add{width:1.6rem;height:1.6rem;color:var(--muted-text);font-size:.875rem;border-radius:0}.role-compare-add[aria-pressed=true]{color:var(--violet)}.role-compare-add:disabled{opacity:.35;cursor:default}
.role-reading-layout{grid-template-columns:9.5rem minmax(0,1fr) 15rem}.role-reading-layout .profile-side{display:block}.role-reading-layout .vtabs{gap:0}.role-reading-layout .vtab{display:grid;grid-template-columns:1fr 1rem;gap:.5rem;position:relative;padding:.7rem .5rem .7rem .75rem;font-size:.8125rem;border-radius:0;border-left:2px solid transparent}.role-reading-layout .vtab[aria-selected=true]{background:transparent;color:var(--ink);border-left-color:var(--violet)}.role-reading-layout .vtab .mono{display:none}.role-reading-layout .profile-side>.btn{margin:1.5rem 0 0;padding-left:.75rem;font-size:.75rem}.role-reading-layout #role-panel{min-width:0;animation:none}.role-profile-heading{padding-bottom:1.5rem;border-bottom:1px solid var(--line);margin-bottom:1.5rem}.role-profile-heading>div{display:flex;align-items:baseline;justify-content:space-between;gap:1rem}.role-profile-heading h2{font-size:1.75rem;margin:0}.role-profile-heading .mono{font-size:.75rem;color:var(--muted-text);margin-right:.6rem}.role-profile-heading .id{font-size:.875rem;color:var(--muted-text);margin-top:.7rem}.role-profile-heading .chip{font-size:.6875rem}.role-reading-layout .lead{font-size:1.0625rem;line-height:1.9;margin-bottom:1.8rem}.role-reading-layout .qa{display:block;margin-bottom:2rem}.role-reading-layout .qa>div{padding:.75rem 0;border-bottom:1px solid var(--line);font-size:.875rem}
.role-facts{margin:0}.role-facts>div{display:grid;grid-template-columns:5rem minmax(0,1fr);gap:1.2rem;padding:1.2rem 0;border-top:1px solid var(--line)}.role-facts dt{font-size:.8125rem;color:var(--muted-text)}.role-facts dd{margin:0;font-size:.9375rem;line-height:1.9}.role-facts ul{padding-left:1rem;margin:0}.role-facts li+li{margin-top:.6rem}.role-partners{margin-top:2rem;padding-top:1.2rem;border-top:1px solid var(--line)}.role-partners h3{font-size:.8125rem;color:var(--muted-text);margin-bottom:.8rem}.role-partners p{font-size:.9375rem;line-height:1.9}.role-partners ul{font-size:.9375rem;line-height:1.9;padding-left:1rem}
.role-compare-status{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 0;margin-bottom:1rem;border-bottom:1px solid var(--line);font-size:.8125rem;color:var(--muted-text)}.role-compare-wrap{overflow-x:auto}.role-compare-table{width:100%;table-layout:fixed;border-collapse:collapse;text-align:left;font-size:.875rem;line-height:1.85}.role-compare-table caption{text-align:left;font-size:1.5rem;color:var(--ink);padding-bottom:1rem}.role-compare-table th,.role-compare-table td{vertical-align:top;border-bottom:1px solid var(--line);padding:1rem .85rem}.role-compare-table th:first-child{width:4.5rem;font-size:.75rem;color:var(--muted-text);padding-left:0;font-weight:400}.role-compare-table thead th{font-weight:500;font-size:1.125rem;line-height:1.4}.role-compare-table th+th,.role-compare-table td{border-left:1px solid var(--line)}.role-compare-table select{display:block;width:100%;margin:.75rem 0 .5rem;padding:.35rem 0;font-size:.75rem;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0}.role-compare-table .btn{font-size:.6875rem;padding:.2rem 0}.role-compare-table ul{padding-left:1rem;margin:0}.role-compare-table li+li{margin-top:.65rem}.role-compare-table .prose{font-size:.875rem;line-height:1.85}.role-compare-table .reading-sources{font-size:.6875rem}.role-compare-table .kb h3{font-size:.9375rem}.role-compare-empty{color:var(--muted-text);font-size:.8125rem}.reading-demo .reading-rail,.reading-demo .reading-side{position:static;max-height:none}
@media(max-width:1150px){.reading-layout,.role-reading-layout{grid-template-columns:8rem minmax(0,1fr) 12rem;gap:1.5rem}.role-compare-table th,.role-compare-table td{padding:.8rem .5rem}.role-compare-table th:first-child{width:3.4rem}.role-compare-table{font-size:.8125rem}.role-compare-table thead th{font-size:1rem}.role-compare-table .prose{font-size:.8125rem}.reading-timeline li{grid-template-columns:5rem minmax(0,1fr);gap:1rem}}
@media(max-width:850px){.reading-layout,.role-reading-layout{grid-template-columns:7rem minmax(0,1fr);gap:1.5rem}.reading-side{grid-column:2;position:static;max-height:none}.reading-side:has(.reading-source-preview:not([hidden])){grid-row:1;position:sticky;top:6rem;max-height:50vh;z-index:4;background:var(--bg);overflow:auto;border-bottom:1px solid var(--line)}.reading-side:has(.reading-source-preview:not([hidden]))~*{grid-row:auto}.reading-main{grid-column:2}.reading-rail,.role-reading-layout .profile-side{grid-row:1/span 3;top:7rem}.role-reading-layout #role-panel{grid-column:2}.reading-main h1{font-size:2rem}.delegations-title{display:block}.delegations-title p{margin-top:.5rem}}
@media(max-width:600px){.reading-layout,.role-reading-layout{grid-template-columns:minmax(0,1fr);gap:1.5rem}.reading-rail,.role-reading-layout .profile-side{position:static;grid-row:auto;max-height:none}.reading-rail nav{display:flex;overflow:auto;border:0}.reading-rail nav button{width:auto;min-width:6rem;border-left:0;border-bottom:2px solid transparent}.reading-rail nav button[aria-current]{border-bottom-color:var(--violet)}.reading-rail-head{display:flex;justify-content:space-between}.reading-main,.reading-side,.role-reading-layout #role-panel{grid-column:1}.reading-side:has(.reading-source-preview:not([hidden])){grid-row:auto}.role-reading-layout .vtabs{display:flex;overflow:auto}.role-reading-layout .vtab{min-width:max-content;border-left:0;border-bottom:2px solid transparent}.role-reading-layout .vtab[aria-selected=true]{border-bottom-color:var(--violet)}.role-reading-layout .profile-side>.btn{margin-top:.5rem}.role-compare-table{min-width:32rem}.role-directory{gap:.25rem 1rem}.reading-main>section{padding-bottom:2rem}.reading-timeline li{grid-template-columns:1fr;gap:.5rem}.reading-timeline time small{display:inline;margin-left:1rem}}

/* v013-writing-records */
.writing-quiet{max-width:74rem;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 15rem;gap:2.25rem;align-items:start}.writing-quiet .paper{background:none;background-image:none;box-shadow:none;border:0;padding:0;min-width:0}.writing-quiet .paper:before,.writing-quiet .paper:after{display:none}.writing-quiet .doc,.writing-quiet .ref,.writing-quiet .annotation-document{background:transparent;border:0;border-radius:0;box-shadow:none;padding:.75rem 0;min-height:28rem;font-size:1.0625rem;line-height:1.95;resize:vertical}.writing-quiet .ref{min-height:9rem}.writing-quiet.split-writing{grid-template-columns:minmax(0,var(--writing-ratio)) .5rem minmax(15rem,1fr);gap:1rem}.writing-quiet .writing-divider{min-height:28rem;align-self:stretch}.writing-quiet .writing-margin{position:sticky;top:7rem;min-width:0;font-size:.8125rem}.writing-margin .tnote{margin:.75rem 0;padding:.75rem 0;border-top:1px solid var(--line);background:none}.writing-margin .tnote-head{font-size:.6875rem}.writing-margin .prose{font-size:.8125rem}.writing-title-line{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;max-width:74rem;margin:0 auto 1.5rem}.writing-title-line h1{font-size:1.75rem;line-height:1.3;margin:0}.writing-title-line .writing-status{font-size:.75rem;white-space:nowrap}.writing-text-menu{display:inline-block;position:relative}.writing-text-menu>summary{list-style:none;cursor:pointer;font-size:.8125rem;color:var(--slate)}.writing-text-menu[open]>.writing-menu-body{display:flex;flex-direction:column;align-items:flex-start;position:absolute;top:100%;right:0;min-width:11rem;padding:.5rem;background:var(--bg);border:1px solid var(--line);z-index:20}.writing-quiet .field-head{margin-top:1.5rem}.writing-title-actions,.writing-inline-tools{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.writing-inline-tools{border-bottom:1px solid var(--line);padding:.25rem 0}.writing-outline-fold{margin:.5rem 0;font-size:.75rem;color:var(--slate)}.writing-outline-fold .writing-outline{margin:.5rem 0}.writing-reference-fold{border-top:1px solid var(--line);margin-top:1.5rem;padding-top:.75rem}.writing-reference-fold>summary{cursor:pointer;font-size:.8125rem}.writing-margin .condition-panel{border:0;padding:0}.writing-margin .reference-tabs{flex-wrap:wrap}.writing-comment-count{display:block;font-size:.75rem;color:var(--slate);margin:.75rem 0}.record-directory{width:100%;min-width:0}.record-filters{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;margin:1rem 0}.record-filters label{display:flex;flex-direction:column;gap:.25rem;font-size:.6875rem;color:var(--slate)}.record-filters input,.record-filters select{font-size:.8125rem;padding:.375rem .5rem;border:0;border-bottom:1px solid var(--line);background:transparent;border-radius:0}.record-filters input[type=search]{min-width:15rem}.record-line{border-top:1px solid var(--line)}.record-line-head{display:grid;grid-template-columns:1.25rem minmax(12rem,2fr) minmax(7rem,1fr) 5rem 8rem 5rem 4rem;align-items:center;gap:.75rem;padding:1rem 0;font-size:.8125rem}.record-title{border:0;background:none;padding:0;text-align:left;font:inherit;font-weight:600;cursor:pointer}.record-title small{display:block;color:var(--slate);font-size:.6875rem;font-weight:400;margin-top:.25rem}.record-line-body{padding:.5rem 0 1.5rem 2rem}.record-line-tools{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.record-line-tools input{max-width:24rem;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0}.record-body-meta{font-size:.75rem;color:var(--slate);margin:.75rem 0}.record-document-preview{white-space:pre-wrap;max-width:46rem;font-size:.875rem;line-height:1.8;max-height:14rem;overflow:auto}.record-compare{margin:1.5rem 0;border-top:1px solid var(--ink);padding-top:1rem}.record-compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.75rem}.record-compare-col{min-width:0}.record-compare-col h3{font-size:1.125rem}.record-compare-section{margin-top:1.25rem;font-size:.8125rem;line-height:1.8}.record-compare-section h4{font-size:.75rem;color:var(--slate)}.record-compare-section pre{white-space:pre-wrap;font:inherit}.record-compare-section ol{padding-left:1.25rem}.record-compare-actions{display:flex;gap:.5rem;align-items:center;font-size:.75rem}.drawer:has(.record-directory){width:min(74rem,calc(100vw - 4rem))}.replay-fold{margin:.75rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:.5rem 0}.replay-fold>summary{font-size:.75rem;color:var(--slate);cursor:pointer}.replay-axis{display:flex;align-items:center;gap:.25rem;min-height:1.5rem;margin:.75rem 0}.replay-axis button{flex:1;border:0;border-top:1px solid var(--line-2);background:none;height:1.5rem;position:relative;cursor:pointer}.replay-axis button:before{content:'';position:absolute;left:50%;top:-.25rem;width:.4375rem;height:.4375rem;border-radius:50%;background:var(--slate)}.replay-axis button.has-condition:before{background:var(--amber)}.replay-axis button.has-event:before{border-radius:0;background:var(--green)}.replay-axis button.has-closure:before{background:var(--violet)}.replay-axis button[aria-current=true]{outline:1px solid var(--ink);outline-offset:.125rem}.replay-controls{display:flex;gap:.5rem;flex-wrap:wrap;background:none;border:0;padding:0}.replay-context{font-size:.8125rem;line-height:1.8;max-width:48rem;margin:1rem 0}.replay-context details{border-top:1px solid var(--line);padding:.5rem 0}.replay-context .text-diff{white-space:pre-wrap}.replay-context h3{font-size:.875rem}.record-line.is-new .record-title{color:var(--violet-text)}
@media(max-width:1100px){.record-line-head{grid-template-columns:1rem minmax(10rem,2fr) minmax(6rem,1fr) 3rem 6rem 4rem 3rem;gap:.5rem}.writing-quiet{gap:1.25rem;grid-template-columns:minmax(0,1fr) 13rem}}

/* v0.13 / stable page frame, topic directory and continuous transcript */
:root{--reading-width:43rem;--reading-gap:2rem}
body{background:var(--bg)}


.nav-identity{max-width:20rem}.nav-end .seat-chip>.scenario-context{display:none}
.home-directory{padding-bottom:4rem}.home-overview{display:grid;grid-template-columns:1.2fr 1fr;gap:3rem;align-items:center;min-height:33rem;padding:3.4rem 0 4rem}.home-overview h1{max-width:10em;font-size:clamp(3rem,4.4vw,4.2rem);line-height:1.2;font-weight:500;letter-spacing:-.04em;text-wrap:balance}.home-overview .wordmark-caption{font-size:.65rem;letter-spacing:.1em;margin-bottom:1.6rem}.home-progress{margin-top:2.5rem;max-width:38rem;min-height:7rem}.home-progress .panel-actions{display:flex;gap:1rem;align-items:center}.home-progress-line{margin:1rem 0 0;line-height:1.7;font-size:.85rem;color:var(--slate)}.home-progress-line strong{font-weight:500;color:var(--ink)}.home-progress .join-fields{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:26rem;margin-bottom:1rem}.home-progress .join-fields .field{margin:0}.home-progress input{background:transparent;border-radius:3px}.home-progress .drawn{margin:0 0 1rem;display:flex;align-items:baseline;gap:.8rem}.home-progress .drawn-code{font-size:1.7rem}.home-progress .drawn-name{font-size:1rem}
.home-constellation{position:relative;height:27rem;min-width:0}.home-constellation canvas{position:absolute;inset:0;width:100%;height:100%}.home-constellation-label{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;gap:.35rem;text-align:center;color:var(--slate)}.home-constellation-label>span{font-size:1.4rem;font-weight:400}.home-constellation-label small{font-size:.7rem}.home-seat{position:absolute;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:.3rem}.home-seat i{width:.5rem;height:.5rem;background:var(--bg);border:1px solid var(--slate);border-radius:50%}.home-seat b{font:500 .67rem var(--mono);letter-spacing:.05em;color:var(--slate)}.home-seat small{font-size:.68rem;color:var(--slate)}.home-seat.is-own i{background:var(--violet);border-color:var(--violet);box-shadow:0 0 0 4px #6b62f215}.home-seat.is-own b,.home-seat.is-own small{color:var(--violet)}
.directory-section-head{display:flex;gap:1.3rem;align-items:baseline;padding:1rem 0;border-top:1px solid var(--ink)}.directory-section-head h2{font-size:1.1rem;margin:0;flex:1}.directory-section-head>.mono{color:var(--slate)}.topic-directory-row{display:grid;grid-template-columns:3rem minmax(0,1fr) 8rem 3rem 5.2rem;gap:1.3rem;align-items:center;padding:1.8rem 0;border-bottom:1px solid var(--line)}.directory-number{font-size:.7rem;color:var(--slate)}.directory-title h3{font-size:1.5rem;line-height:1.4;font-weight:400}.directory-title [data-continuity]{display:inline-block;transition:transform var(--dur-fast) var(--out)}.directory-date,.directory-parties{font-size:.78rem;color:var(--slate)}.topic-enter{justify-self:end;padding:.5rem 0 .5rem .5rem;gap:.6rem;font-size:.8rem}.topic-enter svg{transition:transform var(--dur-fast) var(--out)}.topic-directory-row:has(.topic-enter:not(:disabled)):hover .directory-title [data-continuity]{transform:translateX(3px)}.topic-directory-row:hover .topic-enter:not(:disabled) svg{transform:translateX(3px)}.topic-directory-filters{display:flex;gap:1rem;padding:1rem 0}.topic-directory-filters label{font-size:.75rem;display:grid;gap:.3rem}.topic-directory-filters input{width:20rem}.topic-directory-filters select{width:9rem}.directory-empty{padding:2rem 0;color:var(--slate)}.home-record-directory{margin-top:5rem}

.arena.manuscript-arena{grid-template-columns:minmax(0,1fr) 17rem;gap:2.4rem;align-items:start}.manuscript-arena .chat{max-width:54rem}.manuscript-arena .turn{padding:1.7rem 0 2rem;border-bottom:1px solid var(--line);margin:0}.manuscript-arena .turn-meta{padding-left:6.2rem;gap:.7rem;font-size:.7rem;margin-bottom:1.2rem}.manuscript-arena .me{display:grid;grid-template-columns:5.2rem minmax(0,1fr);gap:1rem;background:none;color:var(--ink);border-radius:0;padding:0;margin:0 0 1.7rem;max-width:none}.manuscript-arena .me .who{display:grid;align-content:start;gap:.25rem;margin:0;font-size:.75rem;color:var(--slate)}.manuscript-arena .me .annotation-text{font-size:1rem;line-height:1.85}.manuscript-arena .rlist{border:0;margin:0}.transcript-reply{display:grid;grid-template-columns:5.2rem minmax(0,1fr);gap:1rem;padding:1.3rem 0;border-top:1px solid var(--line)}.transcript-party{display:grid;align-content:start;justify-items:start;gap:.3rem;font-size:.8rem}.transcript-party .code{font-size:.65rem;letter-spacing:.04em;color:var(--slate)}.transcript-reply-body{font-size:.95rem;line-height:1.8;min-width:0}.transcript-reply-body .prose{max-width:none}.transcript-reply-meta{display:flex;align-items:baseline;gap:1rem;margin-bottom:.65rem;font-size:.72rem;color:var(--slate)}.transcript-condition{margin:.8rem 0 0;border-left:1px solid var(--line);padding-left:1rem}.transcript-condition>span{display:block;font-size:.7rem;color:var(--slate);margin-bottom:.25rem}.transcript-actions{display:flex;gap:.7rem;align-items:center;margin-top:.5rem}.transcript-actions .btn{font-size:.72rem;padding:.2rem 0}.turn-summary-fold{margin:0 0 1.4rem 6.2rem;border-top:1px solid var(--line);padding-top:.7rem}.turn-summary-fold>summary{cursor:pointer;font-size:.78rem;color:var(--slate)}.turn-summary-body{padding:.7rem 0;font-size:.85rem;line-height:1.75}.turn-summary-body dl>div{display:grid;grid-template-columns:4.7rem 1fr;gap:.6rem;margin:.5rem 0}.turn-summary-body dt{color:var(--slate)}.turn-summary-body dd{margin:0}.system-reading{border-top:1px solid var(--line);padding:.6rem 0}.system-reading>summary{font-size:.75rem;cursor:pointer}.system-reading .turn-summary{background:none;border:0;padding:.7rem 0;margin:0;display:block}.system-reading .turn-correction{margin:0}.manuscript-arena .dock{position:sticky;bottom:0;background:var(--bg);border:0;border-top:1px solid var(--ink);border-radius:0;box-shadow:none;padding:1rem 0 .8rem;margin-top:2rem;backdrop-filter:none;z-index:5}.manuscript-arena .dock textarea{background:transparent;border:0;padding:.8rem 0;min-height:6rem}.manuscript-arena .dock-top h3{font-size:.9rem}.manuscript-arena .arena-side{position:sticky;top:6rem;font-size:.85rem}.arena-table-fold{border-top:1px solid var(--ink);padding:.8rem 0;margin-bottom:1.4rem}.arena-table-fold>summary{cursor:pointer;font-size:.85rem}.arena-table-fold .table{height:20rem}.arena-table-fold .legend{font-size:.65rem}.relationship-legend{font-size:.7rem;color:var(--slate);margin:.6rem 0;line-height:1.6}.manuscript-arena .condition-row{padding:.8rem 0}.manuscript-arena .condition-text{font-size:.8rem;line-height:1.7}.manuscript-arena .condition-tools{gap:.35rem}.manuscript-arena .condition-tools select{font-size:.7rem}.manuscript-arena .tnote{margin-left:6.2rem}.manuscript-arena .arena-side .tnote{margin-left:0}.manuscript-arena .closure{padding:1.2rem 0 2rem;margin-left:6.2rem;background:none;border-radius:0;box-shadow:none}.manuscript-arena .closure h2{font-size:1.45rem}.inline-citation-ledger{margin:1rem 0;padding:0;list-style:none}.inline-citation-ledger li{border-top:1px solid var(--line);padding:.6rem 0;display:grid;grid-template-columns:2.3rem 1fr;gap:.5rem;font-size:.75rem;line-height:1.65}.inline-citation-ledger .mono{color:var(--violet)}
@media(max-width:1150px){.nav .scenario-context{max-width:11rem}.home-overview{gap:1.5rem}.home-constellation{height:25rem}.topic-directory-row{grid-template-columns:2rem minmax(0,1fr) 7rem 2.5rem 4.5rem;gap:1rem}.manuscript-arena.arena{grid-template-columns:minmax(0,1fr) 15rem;gap:1.5rem}.transcript-reply,.manuscript-arena .me{grid-template-columns:4.3rem minmax(0,1fr);gap:.8rem}.manuscript-arena .turn-meta,.turn-summary-fold,.manuscript-arena .closure{margin-left:0;padding-left:0}.manuscript-arena .tnote{margin-left:5.1rem}}
.manuscript-arena .me{justify-self:stretch;max-width:none;animation:none}.manuscript-arena .turn-meta::before{display:none}.manuscript-arena .turn{display:block}.manuscript-arena .chat{display:block}.home-directory .directory-section-head,.home-directory .topic-directory-row,.home-directory .home-record-directory{scroll-margin-top:6rem}

/* v0.13 shared motion/status — default light, real objects, stationary reading. */
:root{--dur-fast:200ms;--dur-mid:450ms;--dur-slow:650ms;--dur-firstseat:900ms;--dur-enter:900ms;--dur-tour:600ms;--dur-idle:1800ms;--dur-stagger:60ms}
:root[data-motion="off"]{--dur-fast:0ms;--dur-mid:0ms;--dur-slow:0ms;--dur-firstseat:0ms;--dur-enter:0ms;--dur-tour:0ms;--dur-idle:0ms;scroll-behavior:auto}
:root:not([data-motion="full"]) .horizon::before,:root:not([data-motion="full"]) .horizon::after,:root[data-scene-motion="false"] .horizon::before,:root[data-scene-motion="false"] .horizon::after{animation:none!important}

:root[data-motion="off"] *,:root[data-motion="off"] *::before,:root[data-motion="off"] *::after{animation-duration:0ms!important;animation-delay:0ms!important;transition-property:opacity,color,background-color,border-color,outline-color,text-decoration-color,fill,stroke!important;transition-duration:var(--dur-rm,120ms)!important;transition-timing-function:linear!important;transition-delay:0ms!important;scroll-behavior:auto!important}

.nav-status{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;font-size:.6875rem;line-height:1.45;color:var(--slate);white-space:normal}.nav-status .status-success{color:var(--slate)}.nav-status .status-error{color:var(--ink);border-left:2px solid var(--amber);padding-left:7px}.nav-status .connection-bar{position:static;inset:auto;transform:none;display:inline;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--ink);font-size:inherit;opacity:1;animation:none;transition:none}.nav-status .connection-bar.disconnected{border-left:2px solid var(--amber);padding-left:7px}.projection-mode>.nav-status{position:fixed;right:24px;top:8px;z-index:150}.continuity-demo-stage{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:16px 0}.continuity-demo-object{border-bottom:1px solid var(--line);padding:14px 0;font-weight:500}.continuity-demo-object.at-end{grid-column:2}.motion-demo-options{display:flex;gap:8px;flex-wrap:wrap}.status-demo-line{display:flex;gap:16px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
@media(prefers-reduced-motion:reduce){:root{--dur-fast:0ms;--dur-mid:0ms;--dur-slow:0ms;--dur-firstseat:0ms;--dur-enter:0ms;--dur-tour:0ms;--dur-idle:0ms}*,*::before,*::after{animation-duration:0ms!important;animation-delay:0ms!important;transition-property:opacity,color,background-color,border-color,outline-color,text-decoration-color,fill,stroke!important;transition-duration:var(--dur-rm,120ms)!important;transition-timing-function:linear!important;transition-delay:0ms!important;scroll-behavior:auto!important}}

/* v0.13 visual verification fixes */

.transcript-speaker{display:grid;align-content:start;gap:.3rem;font-size:.8rem}.transcript-speaker .code{color:var(--slate);font-size:.65rem;letter-spacing:.04em}.transcript-body{min-width:0}.transcript-body .prose{font-size:1rem;line-height:1.85}.transcript-meta{display:block;font-size:.72rem;color:var(--slate);margin-bottom:.5rem}.condition-diff{font-size:.8rem;margin:.8rem 0}.condition-diff>summary{cursor:pointer;color:var(--slate)}.turn-summary-fold>p{font-size:.85rem;line-height:1.8}.system-reading{margin-left:6.2rem;margin-bottom:1rem}.system-reading>p{font-size:.85rem}.transcript-actions .cite-actions{display:flex;gap:.7rem;margin:0}.arena-start{max-width:48rem;margin:0 auto}.arena-start>h1{font-size:2rem}.arena-start .table{max-width:42rem;margin:auto}
html[data-page=arena] .replay-fold{position:fixed;bottom:0;left:3rem;right:3rem;margin:0;z-index:48;background:var(--bg);padding:.65rem 0;max-height:45vh;overflow:auto}html[data-page=arena] .replay-fold:not([open]){overflow:visible}html[data-page=arena] .manuscript-arena .dock{bottom:2.6rem}.replay-axis{max-width:60rem}.replay-axis button{min-width:1.2rem}
@media(max-width:1150px){html[data-page=arena] .replay-fold{left:2rem;right:2rem}.system-reading{margin-left:5.3rem}}

/* Verified compact auxiliary controls */
.arena-table-fold,.arena-table-fold #table-host{min-width:0;width:100%}.arena-table-fold .table{aspect-ratio:auto;width:100%;height:20rem}.arena-table-fold .table-center strong{font-size:1.25rem}.arena-table-fold .table-center .mono{font-size:.6rem}.arena-table-fold .seat .l{font-size:.65rem}.arena-table-fold .seat .l small{font-size:.6rem}.arena-table-fold .legend{flex-wrap:wrap;gap:.5rem;font-size:.65rem}.arena-table-fold .simulation-note{width:100%;line-height:1.6}.replay-controls{position:static;top:auto}.replay-controls input[type=range]{padding:0;height:1.5rem;border:0;border-radius:0;background:transparent;box-shadow:none;accent-color:var(--violet)}.replay-controls input[type=range]:focus-visible{outline:1px solid var(--violet);outline-offset:2px;box-shadow:none}.replay-controls select{font-size:.75rem;padding:.35rem;border-radius:0;background:transparent}.replay-axis button[aria-current=true]{outline:0;border-top-color:var(--violet)}.replay-axis button[aria-current=true]:before{box-shadow:0 0 0 3px var(--violet-wash)}
/* v013-writing-records: independently visible replay event types */
.replay-axis button:before{display:none}.replay-axis button{display:flex;align-items:flex-start;justify-content:center;gap:.1875rem;padding-top:.25rem}.replay-node{display:inline-block;flex:none;width:.3125rem;height:.3125rem;background:var(--slate);border-radius:50%}.replay-node-condition{background:var(--amber);border-radius:0}.replay-node-event{background:var(--green);border-radius:0;transform:rotate(45deg)}.replay-node-closure{background:var(--violet);border-radius:0;width:.1875rem;height:.5rem}.replay-node-legend{display:flex;gap:1rem;flex-wrap:wrap;color:var(--slate);font-size:.6875rem;margin:.375rem 0}.replay-node-legend span{display:inline-flex;align-items:center;gap:.375rem}

.insert-undo{position:static;transform:none;display:inline-flex;padding:0;background:none;color:var(--slate);border:0;border-radius:0;font-size:.7rem}.insert-undo .btn{color:var(--slate);border:0;background:none;font-size:.7rem;padding:0 .3rem}.nav-status{gap:.3rem}





/* Speech remains available while reading the chronological manuscript. */
.manuscript-arena #current-dock{position:fixed;left:max(3rem,calc((100vw - 1440px)/2 + 3rem));bottom:2.7rem;width:min(54rem,calc(100vw - 25.4rem));max-height:50vh;overflow:auto;background:var(--bg);z-index:40}.manuscript-arena #current-dock .dock{position:static;margin:0;padding:.8rem 0 .5rem;box-shadow:none}.manuscript-main:has(#current-dock) .chat{padding-bottom:24rem;min-height:18rem}.empty-transcript{padding:2rem 0;font-size:.9rem;color:var(--slate)}.manuscript-arena .dock .dock-top{padding-left:0}
@media(max-width:1150px){.manuscript-arena #current-dock{left:2rem;width:calc(100vw - 20.5rem)}}
@media(max-width:800px){.manuscript-arena.arena{grid-template-columns:1fr}.manuscript-arena #current-dock{left:2rem;right:2rem;width:auto}.manuscript-arena .arena-side{position:static}.manuscript-arena .arena-side:has(#conditions-arena){margin-top:1rem}.home-overview{grid-template-columns:1fr}.home-constellation{display:none}}

.record-line.history-row{display:block;border-bottom:0;min-width:0}.record-directory .record-filters input,.record-directory .record-filters select,.record-directory .record-line-tools input{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;font-size:.8125rem;padding:.375rem .5rem}.record-line-head .chip{border-radius:0;background:none;padding:0;font-size:.75rem}.record-line-head .chip:before{display:none}.record-line-head{grid-template-columns:1.25rem minmax(12rem,2fr) minmax(10rem,1.5fr) 3rem 6.5rem 6rem 3rem}.record-line-head>span{line-height:1.7}.record-line-body{border-top:1px solid var(--line);padding:1rem 0 1.5rem 2rem}.record-directory input:focus-visible{outline:1px solid var(--violet);outline-offset:2px}
@media(max-width:1150px){.record-line-head{grid-template-columns:1.25rem minmax(10rem,1.6fr) minmax(7rem,1.4fr) 2.5rem 5.5rem 6rem 2.5rem;gap:.5rem}}

.manuscript-arena .arena-side{max-height:calc(100vh - 10rem);overflow:auto;scrollbar-width:thin}.manuscript-arena .turn{scroll-margin-top:6rem}.inline-citation-ledger small{display:block;color:var(--slate);font-size:.65rem}html[data-motion=light]{scroll-behavior:auto}
@media(max-width:1150px){.manuscript-arena .arena-side{top:9rem;max-height:calc(100vh - 13rem)}.manuscript-arena .turn{scroll-margin-top:9rem}}

/* F9: share the focused manuscript geometry with its fixed speech composer. */
.focus-mode {
  --focus-edge:3rem;
  --focus-side-width:12rem;
  --focus-gap:1.5rem;
  --focus-main-width:min(860px,calc(min(100vw,1440px) - var(--focus-edge) - var(--focus-edge) - var(--focus-side-width) - var(--focus-gap)));
}
.focus-mode .arena.manuscript-arena { grid-template-columns:minmax(0,var(--focus-main-width)) var(--focus-side-width); gap:var(--focus-gap); justify-content:center; }
.focus-mode .manuscript-arena .manuscript-main,.focus-mode .manuscript-arena .arena-side { min-width:0; }
.focus-mode .manuscript-arena .chat { max-width:none; }
.focus-mode .manuscript-arena .arena-table-fold { display:none; }
.focus-mode .manuscript-arena #current-dock { left:calc((100vw - var(--focus-main-width) - var(--focus-side-width) - var(--focus-gap)) / 2); right:auto; width:var(--focus-main-width); }
.focus-mode .manuscript-arena .condition-head,.focus-mode .manuscript-arena .condition-title,.focus-mode .manuscript-arena .condition-tools { flex-wrap:wrap; }
.focus-mode .manuscript-arena .condition-tools select { max-width:100%; }
@media(max-width:1150px){.focus-mode { --focus-edge:2rem; }}


/* ==========================================================================
   v0.14 · 风格回归：浮动胶囊导航、环境星座、动效与大字号回到 v0.9 明场圆桌；
   之后版本的功能（多议题、阅读辅助、条件、轨迹、批注、记录）沿用同一视觉语言。
   ========================================================================== */
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
:root { --serif: "Yuan Serif", "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif; --latin: "Instrument Serif", "Times New Roman", serif; }

/* nav: floating frosted pill; the current topic sits under the brand */
.nav-identity { display: grid; gap: 1px; min-width: 0; justify-self: start; }
.nav-identity .scenario-context { max-width: 16rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .72rem; padding-left: 34px; }
.nav-end { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
@media (max-width: 1100px) {
  .app:not(.teacher-app) > .nav .tab { padding-inline: 12px; }
  .app:not(.teacher-app) > .nav .nav-end .btn-sm { padding-inline: 10px; }
}
@media (max-width: 960px) {
  .app:not(.teacher-app) > .nav:has(> .tabs) { grid-template-columns: auto minmax(0, 1fr); row-gap: 4px; }
  .app:not(.teacher-app) > .nav > .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .app:not(.teacher-app) > .nav:has(> .tabs) > .nav-end { flex-wrap: wrap; }
  .app:not(.teacher-app) > .nav .scenario-context { max-width: 12rem; }
}

/* ---------- home: 中轴圆桌 ---------- */
html[data-page=home] .art-frame { display: none; }
html[data-page=home] .nav { position: fixed; left: 0; right: 0; margin: 18px auto 0; }
html[data-page=home] .page { padding-top: 0; }
html[data-page=home] .nav .brand { font-size: 0; gap: 0; transition: font-size .01s; }
html[data-page=home] .nav .brand svg { width: 26px; height: 26px; }
html[data-page=home] .nav.show-brand .brand { font: 500 16px var(--serif); letter-spacing: .02em; gap: 10px; animation: hmFade var(--dur-slow) var(--silk) both; }
.hm { position: relative; z-index: 1; }
.hm-art { position: fixed; inset: 0; z-index: 0; pointer-events: none; will-change: opacity; }
.hm-art canvas { width: 100%; height: 100%; display: block; }
.hm-hero { position: relative; height: 100vh; min-height: 720px; display: grid; place-items: center; text-align: center; margin: 0 calc(50% - 50vw); }
.hm-center { position: relative; display: grid; justify-items: center; will-change: transform, opacity; }
.hm-latin { font-family: var(--latin); font-style: italic; font-size: 23px; letter-spacing: .01em; color: var(--ink-2); margin-bottom: 18px; animation: hmFade var(--dur-intro) var(--silk) var(--dur-micro) both; }
.hm-latin b { font-style: normal; font-weight: 400; color: var(--violet); }
.wm { margin: 0; font-family: var(--serif); font-size: clamp(64px, 8.6vw, 138px); line-height: 1.05; letter-spacing: .04em; font-weight: 500; white-space: nowrap; display: flex; justify-content: center; }
.wm .c { --w: 500; --y: 0px; display: inline-block; font-variation-settings: "wght" var(--w); transform: translate3d(0, var(--y), 0); transition: font-variation-settings var(--dur-mid) var(--silk), transform var(--dur-mid) var(--spring), color var(--dur-mid) var(--silk); animation: wmIn var(--dur-intro) var(--silk) both; animation-delay: calc(var(--i) * var(--dur-stagger) + var(--dur-ui)); }
.wm .c.hot { color: var(--violet); }
.wm .c.gap { margin-left: .35em; }
@keyframes wmIn { from { opacity: 0; transform: translate3d(0, .35em, 0); filter: blur(10px); font-variation-settings: "wght" 200; } to { opacity: 1; filter: none; } }
.hm-rule { width: 0; height: 1.5px; margin: 22px auto 0; background: var(--ink); animation: hmRule var(--dur-intro) var(--silk) var(--dur-enter) both; }
@keyframes hmRule { to { width: 120px; } }
@keyframes hmFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.home-progress { display: grid; justify-items: center; }
.pill-form { display: flex; align-items: center; gap: 6px; margin-top: 40px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.78); box-shadow: 0 0 0 1px rgba(22,22,22,.07), 0 24px 50px -30px rgba(22,22,22,.35); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: hmFade var(--dur-enter) var(--silk) var(--dur-intro) both; }
.pill-form input:not([type=checkbox]) { width: 170px; height: 44px; padding: 0 18px; border: 0 !important; border-radius: 999px; background: transparent; font-size: 15px; box-shadow: none; }
.pill-form input:not([type=checkbox]):focus { background: rgba(107,98,242,.07); box-shadow: none; }
.pill-form .sep { width: 1px; height: 22px; background: var(--line-2); flex: none; }
.pill-form .btn { height: 44px; }
.pill-state { padding-left: 22px; max-width: min(760px, 92vw); }
.pill-state .who { display: grid; text-align: left; font-weight: 500; font-size: 14.5px; line-height: 1.2; white-space: nowrap; }
.pill-state .who small { font-size: 11.5px; font-weight: 400; color: var(--slate); }
.pill-state .where { padding: 0 10px 0 6px; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pill-state .where b { font: 500 11px var(--mono); color: var(--violet); margin-right: 2px; }
.pill-alt { margin-top: 14px; font-size: 13px; color: var(--slate); animation: hmFade var(--dur-enter) var(--silk) calc(var(--dur-intro) + var(--dur-press)) both; }
.btn-link { height: auto; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; box-shadow: none; }
.btn-link::before { display: none; }
.btn-link:hover { color: var(--violet); text-decoration-color: currentColor; transform: none; }
.cue2 { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--slate); font-size: 12.5px; cursor: pointer; }
.cue2 i { width: 1px; height: 46px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: cue var(--dur-loop) var(--silk) infinite; }
.hm-sec { position: relative; padding: 140px 0 120px; scroll-margin-top: 0; }
.hm-head { text-align: center; margin-bottom: 56px; }
.hm-head .lt { display: block; font-family: var(--latin); font-style: italic; font-size: 22px; color: var(--slate); }
.hm-head h2 { font-family: var(--serif); font-weight: 600; font-size: 56px; letter-spacing: .06em; margin-top: 4px; }
.hm-head .count { display: inline-block; margin-top: 12px; font: 500 12px var(--mono); color: var(--slate); }
.deck { position: relative; margin: 0 calc(50% - 50vw); }
.deck-rail { display: flex; gap: 4vw; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding: 20px calc(50vw - min(31vw, 420px)); cursor: grab; outline: none; }
.deck-rail.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.deck-rail::-webkit-scrollbar { display: none; }
.dossier { --mx: -999px; --my: -999px; position: relative; flex: none; width: min(62vw, 840px); scroll-snap-align: center; text-align: center; padding: 56px 48px 48px; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line-2); opacity: .32; transform: scale(.92); filter: saturate(.4); transition: opacity var(--dur-slow) var(--silk), transform var(--dur-enter) var(--silk), filter var(--dur-slow) var(--silk); }
.dossier::before { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity var(--dur-micro) var(--silk); background: radial-gradient(420px 220px at var(--mx) var(--my), rgba(107,98,242,.09), transparent 70%); }
.dossier.on:hover::before { opacity: 1; }
.dossier.on { opacity: 1; transform: none; filter: none; }
.dossier > * { position: relative; }
.dossier .k { display: flex; justify-content: center; gap: 14px; align-items: center; font: 500 12px var(--mono); color: var(--slate); }
.dossier h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 3.6vw, 54px); line-height: 1.3; letter-spacing: .03em; margin: 26px auto 30px; max-width: 16em; text-wrap: balance; }
.dossier.empty h3 { color: transparent; -webkit-text-stroke: 1.2px var(--ink); font-size: clamp(56px, 6vw, 92px); letter-spacing: .2em; }
.meta3 { display: flex; justify-content: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 auto 30px; max-width: 560px; }
.meta3 div { flex: 1; padding: 14px 0; }
.meta3 div + div { border-left: 1px solid var(--line); }
.meta3 span { display: block; font-size: 12px; color: var(--slate); }
.meta3 strong { display: block; font-family: var(--latin); font-size: 30px; font-weight: 400; line-height: 1.1; margin-top: 4px; }
.meta3 strong.zh { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-top: 8px; }
.mini-ring { position: relative; width: 300px; height: 120px; margin: 0 auto 30px; }
.mini-ring i { position: absolute; transform: translate(-50%, -50%); font: 500 10px var(--mono); font-style: normal; color: var(--slate); transition: color var(--dur-micro) var(--silk), transform var(--dur-mid) var(--spring); }
.mini-ring i::before { content: ""; display: block; width: 7px; height: 7px; margin: 0 auto 4px; border-radius: 50%; background: var(--ink); opacity: .7; }
.dossier:hover .mini-ring i { transform: translate(-50%, -50%) scale(1.12); }
.mini-ring i:hover { color: var(--violet); }
.mini-ring svg { position: absolute; inset: 0; }
.dossier .topic-enter:disabled { opacity: .5; }
.deck-filters { display: flex; justify-content: center; gap: 10px; margin: -24px auto 30px; }
.deck-filters input, .deck-filters select { width: auto; min-width: 200px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.7); }
.deck .directory-empty { margin: 40px auto; text-align: center; color: var(--slate); }
.deck-nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 30px; }
.deck-dots { display: flex; gap: 8px; }
.deck-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); transition: width var(--dur-slow) var(--spring), background-color var(--dur-micro) var(--silk); }
.deck-dots button.on { width: 34px; background: var(--ink); }
.flow { position: relative; width: min(1100px, 90vw); margin: 0 auto; height: 300px; }
.flow svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow path { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset var(--dur-loop) var(--silk); }
.flow.in path { stroke-dashoffset: 0; }
.node { position: absolute; transform: translate(-50%, -7px); text-align: center; width: 180px; opacity: 0; transition: opacity var(--dur-enter) var(--silk), transform var(--dur-enter) var(--spring); transition-delay: var(--d); }
.flow.in .node { opacity: 1; }
.node .dot { width: 14px; height: 14px; margin: 0 auto 16px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); transition: background-color var(--dur-micro) var(--silk), transform var(--dur-slow) var(--spring), box-shadow var(--dur-ui) var(--silk); }
.node .n { font-family: var(--latin); font-style: italic; font-size: 30px; line-height: 1; color: var(--slate); transition: color var(--dur-micro) var(--silk); }
.node strong { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: .08em; margin-top: 6px; }
.node small { display: block; font-size: 13px; color: var(--slate); margin-top: 6px; }
.node:hover .dot { background: var(--violet); transform: scale(1.5); box-shadow: 0 0 0 8px rgba(107,98,242,.14); }
.node:hover .n { color: var(--violet); }
.home-record-directory > div { width: min(860px, 92vw); margin: 0 auto; }
.hm-end { height: 100vh; display: grid; place-items: center; text-align: center; }
.hm-end .big { font-family: var(--serif); font-weight: 600; font-size: clamp(64px, 7vw, 120px); letter-spacing: .04em; line-height: 1.1; }
.hm-end .big em { font-family: var(--latin); font-style: italic; font-weight: 400; color: var(--violet); letter-spacing: 0; padding-right: .08em; }
.hm-end .lt { font-family: var(--latin); font-style: italic; font-size: 22px; color: var(--slate); margin-top: 14px; }
.hm-end .btn { margin-top: 40px; }
.hm-foot { position: relative; z-index: 1; text-align: center; padding: 0 0 28px; font-size: 12px; color: var(--slate); }
.reveal-up { opacity: 0; transform: translate3d(0, 30px, 0); filter: blur(6px); transition: opacity var(--dur-enter) var(--silk), transform var(--dur-enter) var(--silk), filter var(--dur-enter) var(--silk); transition-delay: var(--d, 0s); }
.reveal-up.in { opacity: 1; transform: none; filter: none; }
:root:not([data-motion="full"]) .wm .c, :root:not([data-motion="full"]) .reveal-up, :root:not([data-motion="full"]) .node, :root:not([data-motion="full"]) .flow path, :root:not([data-motion="full"]) .pill-form, :root:not([data-motion="full"]) .pill-alt, :root:not([data-motion="full"]) .hm-latin, :root:not([data-motion="full"]) .hm-rule { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; stroke-dashoffset: 0 !important; }
:root:not([data-motion="full"]) .hm-rule { width: 120px; }

/* ---------- seat: entrance film ---------- */
.entrance.seat .entrance-top > div { display: flex; align-items: center; gap: 8px; }
.seat .seat-center { align-self: end; }
.seat .seat-identity { color: var(--slate); font-size: 14px; line-height: 1.7; margin: 0 0 18px; }
.seat .seat-profile { margin-top: 16px; }
.seat .seat-profile-body { max-height: 40vh; overflow: auto; padding-top: 10px; }
.seat-topic-title { margin-top: 6px; }

/* ---------- briefing: film hero + reading body ---------- */
.brief-hero { margin-top: -72px; position: relative; }
/* v0.23: the reading paper's top edge peeks ~56px above the fold so the page reads as continuing */
.brief-hero { min-height: calc(100vh - var(--brief-peek, 140px)); padding-bottom: 76px; }
.brief-hero .cue { right: 0; }
html[data-page=briefing] .art-frame { opacity: 0 !important; }
@media (max-width: 960px) {
  .app:not(.teacher-app) :is(.reading-rail, .reading-side, .profile-side) { top: 9rem; }
  .app:not(.teacher-app) .reading-main > section { scroll-margin-top: 9rem; }
}
.reading-layout { position: relative; z-index: 1; margin-top: 40px; }
.reading-main > section { padding: 0 0 64px; margin-bottom: 56px; }
.reading-main .slabel { position: static; margin-bottom: 22px; }
.reading-main .slabel h2 { font-size: 32px; margin: 0; }
.reading-main h3 { font-size: 19px; letter-spacing: -0.02em; }
.reading-main p, .reading-main .prose { font-size: 16px; line-height: 1.9; }
.reading-rail nav { border-left: 0; }
.reading-rail nav button { border-radius: 999px; padding: .55rem .8rem; }
.reading-rail nav button:hover { background: rgba(22,22,22,.04); color: var(--ink); padding-left: 1.05rem; }
.reading-rail nav button[aria-current=true], .reading-rail nav button[aria-current=location], .reading-rail nav button.on { background: var(--ink); color: #fff; }
.reading-facts .stmt { padding: 0 0 26px; margin: 0 0 26px; }
.reading-facts .stmt h3 { font-size: 24px; letter-spacing: -0.03em; }
.reading-timeline li { transition: padding var(--dur-mid) var(--silk); }
.reading-timeline li:hover { padding-left: 10px; }
.reading-timeline time { font: 500 clamp(22px, 2.2vw, 30px)/1 var(--font, inherit); letter-spacing: -0.04em; color: var(--ink); }
.reading-timeline time small { display: block; font: 500 11px var(--mono); color: var(--amber-text, var(--amber)); margin-top: 6px; letter-spacing: 0; }
.reading-main .iswitch button { font-size: 22px; padding: 6px 0; }
.reading-main .orow { padding: 22px 0; }
.reading-main .acc { border-radius: 20px; }
.reading-main .acc > summary { padding: 18px 44px 18px 4px; font-size: 17px; }

/* ---------- roles: ring stage above the reading body ---------- */
#delegations-reading .ring-stage { margin: 0 0 6px; }
#delegations-reading .role-directory { justify-content: center; border: 0; padding: 0; margin: 0 0 36px; }
#delegations-reading .role-name-button { font-size: 13px; padding: 6px 2px; color: var(--slate); }
#delegations-reading .role-name-button[aria-current] { color: var(--ink); }

/* ---------- arena: chat bubbles, reply rows, the table on the right ---------- */
.arena-main { min-width: 0; }
.arena-main .chat { display: grid; gap: 34px; }
.rrow .cd .delta { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 50%; background: rgba(232,150,42,.16); color: var(--amber-text, #9a5c0c); font: 600 10px var(--mono); vertical-align: 1px; }
.arena-tools { display: flex; gap: 8px; }
#current-dock { position: sticky; bottom: 20px; z-index: 20; }
#current-dock .dock { position: static; }
.arena-start { max-width: 760px; margin: 0 auto; }
.arena-side #table-host .legend .simulation-note { flex-basis: 100%; }
.me .transcript-meta { color: rgba(255,255,255,.55); font-size: 12px; margin-bottom: 6px; }
.me .who .code { font: 500 11px var(--mono); color: rgba(255,255,255,.5); }
.me .transcript-body .prose { color: #fff; font-size: 15.5px; line-height: 1.75; }
.focus-mode .arena { grid-template-columns: minmax(0, 860px); justify-content: center; }
.focus-mode .arena-side { display: none; }

/* ---------- writing: paper on the light table ---------- */
.writing-quiet .paper { padding: 40px 48px; border-radius: 28px; background: var(--paper); box-shadow: 0 0 0 1px rgba(22,22,22,.06), 0 30px 60px -40px rgba(22,22,22,.3); }
.arena-side { max-height: calc(100vh - 124px); overflow: auto; scrollbar-width: thin; padding-bottom: 12px; }
.arena-side .legend { flex-wrap: wrap; row-gap: 6px; }
.arena-side .legend span { white-space: nowrap; }
.arena-main .system-reading, .arena-main .turn-summary-fold { margin-left: 0; }
.arena-main .turn-meta { display: flex; align-items: center; gap: 12px; }
.reading-main .orow { grid-template-columns: 48px minmax(0, 1fr); gap: 22px; padding: 26px 0; }
.reading-main .orow .lt { font-size: 13px; }
.reading-main .orow h3 { font-size: 20px; }
.reading-main .orow .tr { grid-column: 2; padding-left: 16px; }
.flow { margin-bottom: 90px; }


/* ==========================================================================
   v0.15 · 可读性与质感：正文不再直接压在星座上；导航上方渐隐；会场底部不互相遮挡；
   细节质感（颗粒、玻璃高光、滚动进度、衬线标题、按钮光泽）。
   ========================================================================== */

/* 进场动画结束后不保留 transform/filter，否则页面内的 fixed 元素（回放条等）会跟着页面滚走 */
.page-enter { animation-fill-mode: backwards; }

/* 背景细颗粒：让明场不显得平 */
.horizon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .09 0 0 0 0 .09 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* 导航上方：滚动内容在胶囊之上渐隐模糊，不再露出半行字 */
.app::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 112px; z-index: 45; pointer-events: none; background: linear-gradient(rgba(244,244,242,.72), rgba(244,244,242,.38) 55%, rgba(244,244,242,0)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
html[data-page=home] .app::before { opacity: 0; transition: opacity var(--dur-mid) var(--silk); }
html[data-page=home]:has(.nav.show-brand) .app::before { opacity: 1; }
.projection-mode .app::before { display: none; }

/* 胶囊：玻璃高光 + 滚动进度细线 */
.nav { box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 1px rgba(22,22,22,.05), 0 18px 40px -22px rgba(22,22,22,.28); }
.nav::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; border-radius: 2px; pointer-events: none; background: linear-gradient(90deg, var(--violet), var(--cobalt) 55%, var(--amber)); transform-origin: left; transform: scaleX(0); opacity: 0; }
@supports (animation-timeline: scroll()) {
  .nav::after { animation: navProgress linear both; animation-timeline: scroll(root block); }
}
@keyframes navProgress { 0% { transform: scaleX(0); opacity: 0; } 4% { opacity: .9; } 100% { transform: scaleX(1); opacity: .9; } }

/* 入席页顶栏与其他页一致：磨砂胶囊 */
.entrance-top { top: 18px; left: max(24px, calc(50% - var(--page) / 2)); right: max(24px, calc(50% - var(--page) / 2)); padding: 8px 10px 8px 22px; border-radius: 20px; background: var(--glass); border: 1px solid rgba(255,255,255,.9); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 1px rgba(22,22,22,.05), 0 18px 40px -22px rgba(22,22,22,.28); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }

/* 阅读面：简报与代表团正文放在一整张磨砂纸面上，星座只在纸面外流动 */
.reading-layout, .role-reading-layout { isolation: isolate; }
.reading-layout::before, .role-reading-layout::before { content: ""; position: absolute; inset: -40px -36px -24px; z-index: -1; pointer-events: none; border-radius: 34px; background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(252,252,250,.7)); box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 0 0 1px rgba(22,22,22,.05), 0 50px 100px -60px rgba(22,22,22,.3); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); }
.role-reading-layout { position: relative; }

/* 章节标题：衬线，阅读进度点与标题同一行 */
.reading-main .slabel { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
.reading-main .slabel .mono { grid-column: 1 / -1; }
.reading-main .slabel h2 { font-family: var(--serif); font-weight: 600; letter-spacing: .02em; }
.reading-main .slabel [data-read-dot] { justify-self: start; margin: 0; width: 7px; height: 7px; transition: background var(--dur-mid) var(--silk), transform var(--dur-mid) var(--spring); }
.reading-main .slabel [data-read-dot].is-read { transform: scale(1.15); }

/* 影片式大标题：与主页同一衬线；下划线改为渐隐的笔触 */
.scene-hero .display, .entrance .display { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; line-height: 1.08; }
.entrance .display { font-size: clamp(56px, 6vw, 100px); }
.entrance-grid > header { container-type: inline-size; }
.entrance .seat-topic-title { font-size: min(clamp(56px, 6vw, 100px), 9.5cqi); }
.display .mask { overflow-wrap: anywhere; text-wrap: balance; line-break: strict; }
.uline::after { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ink), var(--violet) 65%, rgba(107,98,242,0)); }

/* 文书侧栏：同一磨砂底 */
.writing-margin { isolation: isolate; padding: 22px 22px 18px; }
.writing-margin::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 24px; pointer-events: none; background: rgba(255,255,255,.72); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,22,22,.05), 0 30px 60px -40px rgba(22,22,22,.25); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

/* 会场右栏：圆桌下方的条件清单有底，不与星座混在一起 */
#conditions-arena { position: relative; isolation: isolate; margin-top: 10px; padding: 4px 18px 14px; }
#conditions-arena::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 22px; pointer-events: none; background: rgba(255,255,255,.66); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,22,22,.05); }

/* 会场底部：回放条变成右栏下方的浮动胶囊，不再压住发言区 */
html[data-page=arena] .replay-fold { left: auto; right: calc((100vw - min(100vw - 48px, 1280px)) / 2 + 24px); bottom: 14px; width: 440px; padding: .55rem 1.2rem; border-radius: 22px; background: var(--glass-2); border: 1px solid rgba(255,255,255,.9); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,22,22,.06), 0 20px 44px -26px rgba(22,22,22,.35); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
html[data-page=arena] .page:has(.replay-fold) .arena-side { max-height: calc(100vh - 184px); }
.focus-mode .replay-fold { right: auto !important; left: 50% !important; transform: translateX(-50%); }

#current-dock .dock { background: rgba(255,255,255,.94); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,22,22,.06), 0 30px 60px -28px rgba(22,22,22,.38); }

/* 代表团：问题行的圆标不再压字 */
.role-reading-layout .qa > div { padding-left: 38px; }
.role-reading-layout .qa > div::before { top: .7rem; }
.role-reading-layout .qa > div:hover { padding-left: 46px; }

/* 主页：落在星座上的小字加一圈底色光晕；议题卷宗有一层薄纸 */
.pill-alt, .hm-end .lt, .hm-head .count, .hm-head .lt, .cue2, .node small, .node .n { text-shadow: 0 0 10px var(--bg), 0 0 3px var(--bg), 0 0 1px var(--bg); }
.hm-end > * { position: relative; isolation: isolate; }
.hm-end > *::before { content: ""; position: absolute; inset: -18% -12%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(244,244,242,.92), rgba(244,244,242,.6) 55%, rgba(244,244,242,0)); }
.dossier { border-radius: 0 0 30px 30px; }
.dossier.on { background: linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,255,255,.5)); box-shadow: 0 40px 80px -60px rgba(22,22,22,.3); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.dossier h3, .reading-main h1 { word-break: keep-all; overflow-wrap: anywhere; }

/* 主按钮：悬停时一道光泽扫过 */
.btn-ink { overflow: hidden; }
.btn-ink::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-18deg); transition: left 0s; }
.btn-ink:hover::after { left: 120%; transition: left var(--dur-enter) var(--silk); }
:root:not([data-motion="full"]) .btn-ink::after { display: none; }

/* 回应行：悬停时左侧一道紫色细线滑入 */
.rrow { background-image: linear-gradient(var(--violet), var(--violet)); background-repeat: no-repeat; background-size: 2px 0; background-position: 0 50%; }
.rrow:hover, .rrow:focus-visible { background-size: 2px 62%; }

/* 细滚动条 */
.arena-side, .drawer, .reading-rail, .seat-profile-body { scrollbar-width: thin; scrollbar-color: rgba(22,22,22,.18) transparent; }

/* 教师端：正文垫一整张磨砂纸面，星座只在外圈流动；代表团分布的议题名单行省略 */
.teacher-app > main.page { position: relative; isolation: isolate; margin-top: 40px; padding-top: 40px; padding-bottom: 56px; }
.teacher-app > main.page::before { content: ""; position: absolute; inset: 0 max(-32px, calc(50% - 50vw)); z-index: -1; pointer-events: none; border-radius: 34px; background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(252,252,250,.7)); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,22,22,.05), 0 50px 100px -60px rgba(22,22,22,.3); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); }
.projection-mode .teacher-app > main.page::before { display: none; }
.dist .bar-row { grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) 24px; }
.dist .bar-row > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist .bar-row > span:first-child small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; font-size: .72rem; }
.teacher-app .head .h1 { font-family: var(--serif); font-weight: 600; letter-spacing: .03em; }

/* ==========================================================================
   v0.15 · 投屏：明场柔光（静止）、衬线大标题、磨砂面板、大号数字、细线条件行。
   结构与匿名约束不变；画布与光斑在投屏中保持静止。
   ========================================================================== */
.projection-mode .horizon { display: block !important; }
.projection-mode .horizon::before, .projection-mode .horizon::after { animation: none !important; opacity: .42; }
.projection-mode body { background: var(--bg); }
.projection-mode #app { position: relative; z-index: 1; padding: 1.4rem 2.2rem 1.6rem; }
.projection-view { background: transparent; }
.projection-view:fullscreen { background: var(--bg); }

.projection-head { align-items: center; padding: 14px 14px 14px 28px; margin-bottom: 18px; border: 1px solid rgba(255,255,255,.9); border-radius: 26px; background: var(--glass); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,22,22,.05), 0 18px 40px -24px rgba(22,22,22,.28); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); }
.projection-kicker { font: italic 400 1rem var(--latin); letter-spacing: 0; color: var(--slate); margin-bottom: 2px; }
.projection-title { font-family: var(--serif); font-weight: 600; letter-spacing: .02em; font-size: clamp(1.75rem, 2.8vw, 2.9rem); line-height: 1.15; }
.projection-controls { gap: 6px; padding: 4px; border-radius: 999px; background: rgba(22,22,22,.04); }
.projection-controls .btn { border-radius: 999px; }

.projection-main, .projection-review > * { position: relative; isolation: isolate; }
.projection-main::before, .projection-review > *::before { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(252,252,250,.66)); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,22,22,.05), 0 40px 80px -56px rgba(22,22,22,.3); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); }
.projection-main { padding: 14px 32px 16px; margin-bottom: 18px; }
.projection-main::before { inset: 0; }
.projection-review { gap: 18px; }
.projection-review > * { padding: 4px 24px 14px; border-top: 0 !important; }
.projection-review > *::before { inset: 0; }
.projection-review > *::after { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1.5px; background: var(--ink); border-radius: 2px; }

/* 圆桌 */
.projection-orbit { stroke: rgba(22,22,22,.14); stroke-dasharray: 2 5; }
.projection-constellation { stroke: var(--violet); opacity: .35; }
.projection-ring-base { fill: #fff; stroke: rgba(22,22,22,.07); }
.projection-seat { filter: drop-shadow(0 6px 10px rgba(22,22,22,.10)); }
.projection-ring.support { filter: drop-shadow(0 0 6px rgba(107,98,242,.35)); }
.projection-ring.conditional { filter: drop-shadow(0 0 6px rgba(232,150,42,.35)); }
.projection-role-name { font: 600 17px var(--serif); }
.projection-code { font-weight: 500; }
.projection-table-caption { font: 600 28px var(--serif); letter-spacing: .04em; }
.projection-table-subcaption { font: italic 15px var(--latin); }
.projection-legend { font-size: .85rem; }
.projection-legend i { width: 9px; height: 9px; box-shadow: 0 0 0 3px rgba(22,22,22,.04); }

/* 数字 */
.projection-metrics > div { padding: 12px 0 14px; }
.projection-metrics dt { font-size: .9rem; color: var(--slate); }
.projection-metrics strong { font-family: var(--latin); font-weight: 400; letter-spacing: -.02em; font-size: clamp(3.4rem, 6vw, 5.4rem) !important; }
.projection-metrics > div:first-child strong { color: var(--violet); }
.projection-metrics dd > span { font-size: .85rem; }

/* 轨迹与条件 */
.projection-track h2, .projection-conditions h2 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: .03em; }
.projection-conditions > header { padding: 14px 0 8px; }
.projection-conditions-caption { font: italic .9rem var(--latin); }
.projection-review .projection-condition { padding: .42rem 0; font-size: .95rem; align-items: center; }
.projection-condition-role { font-family: var(--serif); font-weight: 600; color: var(--ink); }
.projection-condition-count { font-size: .8rem; }
.projection-mode .aggregate-stack { border-radius: 999px; overflow: hidden; }
.projection-mode .aggregate-track-table tbody th { font-family: var(--serif); font-weight: 600; }
.projection-mode .aggregate-track-table tbody tr { transition: background var(--dur-fast); }
.projection-mode .aggregate-track-table tbody tr:hover { background: rgba(107,98,242,.05); }

/* 空态：学生入口网址 */
.projection-empty { position: relative; isolation: isolate; }
.projection-student-url { font-family: var(--latin); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 3rem); color: var(--ink); }
/* 投屏一屏放下 */
.projection-mode #app { padding: 1rem 1.8rem 1rem; }
.projection-head { padding: 10px 12px 10px 26px; margin-bottom: 12px; }
.projection-main { padding: 4px 28px 6px; margin-bottom: 12px; }
.projection-mode .projection-table svg { max-height: 16rem; }
.projection-metrics > div { padding: 6px 0 8px; }
.projection-metrics strong { font-size: clamp(2.8rem, 4.4vw, 4.2rem) !important; }
.projection-review > * { padding: 12px 24px 10px; }
.projection-track h2 { margin: 2px 0 .4rem; }
.projection-conditions > header { padding: 2px 0 6px; }
.projection-review .projection-condition { padding: .3rem 0; }
.projection-review > *::after { left: 24px; right: auto; width: 36px; top: 0; height: 3px; background: linear-gradient(90deg, var(--violet), var(--cobalt)); border-radius: 0 0 3px 3px; }
.projection-mode #app { padding-block: .8rem; }
.projection-review .projection-condition { padding: .24rem 0; }
@media (min-height: 1000px) { .projection-mode .projection-table svg { max-height: 22rem; } .projection-review .projection-condition { padding: .4rem 0; } }
@media (max-height: 780px) {
  .projection-title { font-size: clamp(1.4rem, 2.2vw, 2rem); }
  .projection-kicker { font-size: .85rem; }
  .projection-mode .projection-table svg { max-height: 12.5rem; }
  .projection-metrics strong { font-size: 2.6rem !important; }
  .projection-metrics > div { padding: 3px 0 5px; }
  .projection-review .projection-condition { padding: .12rem 0; font-size: .82rem; }
  .projection-mode .aggregate-track-table th, .projection-mode .aggregate-track-table td { height: 1rem; font-size: .72rem; }
  .projection-mode .aggregate-track-table tbody th { font-size: .72rem; }
  .projection-track h2, .projection-conditions h2 { font-size: 1.1rem; }
}

/* 代表团目录：每方一枚胶囊，右侧"对比"按钮常驻可见；已选对比的胶囊描紫边 */
#delegations-reading .role-directory { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin: 0 auto 40px; }
#delegations-reading .role-directory-item { display: inline-flex; align-items: center; gap: 2px; padding: 3px 3px 3px 14px; border-radius: 999px; background: rgba(255,255,255,.72); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,22,22,.07); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow var(--dur-fast), background var(--dur-fast), transform var(--dur-mid) var(--spring); }
#delegations-reading .role-directory-item:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,22,22,.12), 0 10px 22px -14px rgba(22,22,22,.3); }
#delegations-reading .role-name-button { padding: 5px 6px 5px 0; font-size: 14px; color: var(--ink-2); border: 0; white-space: nowrap; }
#delegations-reading .role-name-button small { display: inline-grid; place-items: center; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 10.5px; background: var(--ink); color: #fff; vertical-align: 1px; }
#delegations-reading .role-directory-item:has(.role-name-button[aria-current]) { background: var(--ink); box-shadow: 0 10px 24px -14px rgba(22,22,22,.5); }
#delegations-reading .role-directory-item:has(.role-name-button[aria-current]) .role-name-button { color: #fff; }
#delegations-reading .role-directory-item:has(.role-name-button[aria-current]) .role-name-button small { background: var(--violet); }
#delegations-reading .role-compare-add { display: inline-flex; align-items: center; gap: 0; height: 28px; min-width: 28px; width: auto; padding: 0 7px; border-radius: 999px; font-size: 12px; color: var(--violet-text, var(--violet)); background: rgba(107,98,242,.1); transition: background var(--dur-fast), color var(--dur-fast), gap var(--dur-mid) var(--spring); }
#delegations-reading .role-compare-add i { font-style: normal; font-weight: 600; width: 14px; text-align: center; line-height: 1; }
#delegations-reading .role-compare-add span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width var(--dur-mid) var(--spring); }
#delegations-reading .role-compare-add:hover:not(:disabled), #delegations-reading .role-compare-add:focus-visible, #delegations-reading .role-compare-add[aria-pressed=true] { gap: 4px; }
#delegations-reading .role-compare-add:hover:not(:disabled) span, #delegations-reading .role-compare-add:focus-visible span, #delegations-reading .role-compare-add[aria-pressed=true] span { max-width: 4em; }
#delegations-reading .role-compare-add:hover:not(:disabled) { background: var(--violet); color: #fff; }
#delegations-reading .role-compare-add[aria-pressed=true] { background: var(--violet); color: #fff; }
#delegations-reading .role-directory-item.is-compared { box-shadow: inset 0 1px 0 #fff, 0 0 0 1.5px var(--violet); }
#delegations-reading .role-directory-item:has(.role-name-button[aria-current]) .role-compare-add:not([aria-pressed=true]) { background: rgba(255,255,255,.14); color: #fff; }
#delegations-reading .role-compare-add:disabled { opacity: .3; }


/* ==========================================================================
   v0.16 · 主页一屏 + 议题库独立页；朱雀仿宋字标；柔光扫字；轻量光标
   ========================================================================== */
@font-face { font-family: "Yuan Fangsong"; src: url("/assets/fonts/zhuque-subset.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root { --fangsong: "Yuan Fangsong", var(--serif); }

/* 品牌字：全站同一仿宋 */
.brand-text { font-family: var(--fangsong); font-weight: 400; letter-spacing: .08em; display: inline-block; }
.nav .brand { font-size: 16px; }

/* ---------- 主页：一屏，不滚动 ---------- */
html[data-page=home], html[data-page=home] body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.hm-one .hm-hero { height: 100vh; min-height: 0; }
.hm-one .hm-center { gap: 0; }
.hm-one .wm { position: relative; font-family: var(--fangsong); font-weight: 400; font-size: clamp(60px, 7.6vw, 124px); letter-spacing: .16em; line-height: 1.1; margin-right: -.16em; --lx: 50%; --ly: 50%; --lr: 0px; }
.hm-one .wm .c { font-variation-settings: normal; transform: none; transition: none; color: transparent;
  background-image: radial-gradient(circle calc(var(--lr) + .1px) at var(--lx) var(--ly), #7a70f6 0%, #9b7fe8 28%, #e8962a 62%, rgba(232,150,42,0) 100%), linear-gradient(var(--ink), var(--ink));
  background-size: var(--ww, 100%) var(--wh, 100%), 100% 100%; background-position: calc(var(--ox, 0px) * -1) calc(var(--oy, 0px) * -1), 0 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; animation: wmRise var(--dur-intro) var(--silk) both; animation-delay: calc(var(--i) * var(--dur-stagger) + var(--dur-fast)); }
.hm-one .wm .c.gap { margin-left: .5em; }
.hm-one .wm.from-brand .c { animation: none; }
@keyframes wmRise { from { opacity: 0; filter: blur(12px); transform: translate3d(0, .25em, 0); } to { opacity: 1; filter: none; transform: none; } }
.hm-one .hm-rule { margin: 30px auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--ink) 20%, var(--ink) 80%, transparent); }
@keyframes hmRule { to { width: 220px; } }
.hm-one .hm-latin { order: 0; display: flex; justify-content: center; gap: .9em; margin: 20px 0 0; font-family: var(--latin); font-style: normal; font-size: 13px; letter-spacing: .38em; text-transform: uppercase; color: var(--slate); animation: hmFade var(--dur-intro) var(--silk) var(--dur-intro) both; }
.hm-one .hm-latin em { font-style: italic; text-transform: none; letter-spacing: .04em; font-size: 19px; line-height: 13px; color: var(--violet); }
.hm-one .home-progress { margin-top: 42px; }
.hm-one .pill-form { margin-top: 0; }
.hm-one .pill-alt { display: none; }

/* 入口：两条细线行，悬停时箭头滑出 */
.hm-entries { display: flex; justify-content: center; gap: 18px; margin-top: 46px; animation: hmFade var(--dur-enter) var(--silk) calc(var(--dur-intro) + var(--dur-ui)) both; }
.hm-entry { --mx: -999px; --my: -999px; position: relative; display: grid; grid-template-columns: auto auto; grid-template-areas: "lt arr" "st arr" "sm arr"; align-items: center; column-gap: 26px; min-width: 230px; padding: 16px 22px 16px 24px; text-align: left; border: 0; border-radius: 22px; cursor: pointer; color: var(--ink); background: rgba(255,255,255,.62); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,22,22,.06), 0 24px 50px -36px rgba(22,22,22,.35); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.hm-entry .lt { grid-area: lt; font: italic 15px var(--latin); color: var(--slate); }
.hm-entry strong { grid-area: st; font-family: var(--fangsong); font-weight: 400; font-size: 26px; letter-spacing: .12em; line-height: 1.25; }
.hm-entry small { grid-area: sm; font-size: 12px; color: var(--slate); }
.hm-entry small em { font: italic 15px var(--latin); color: var(--violet); margin-right: 2px; }
.hm-entry .arr { grid-area: arr; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(22,22,22,.05); transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-mid) var(--spring); }
.hm-entry .arr svg { width: 16px; height: 16px; }
.hm-entry:hover, .hm-entry:focus-visible { transform: translateY(-3px); background: rgba(255,255,255,.82); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(107,98,242,.25), 0 30px 60px -34px rgba(22,22,22,.4); }
.hm-entry:hover .arr, .hm-entry:focus-visible .arr { background: var(--ink); color: #fff; transform: translateX(4px); }
.hm-one + .hm-foot, .hm-one .hm-foot { position: fixed; left: 0; right: 0; bottom: 18px; padding: 0; }
:root:not([data-motion="full"]) .hm-one .wm .c, :root:not([data-motion="full"]) .hm-entries, :root:not([data-motion="full"]) .hm-one .hm-latin { animation: none !important; opacity: 1 !important; filter: none !important; }
:root:not([data-motion="full"]) .hm-one .hm-rule { width: 220px; }

/* ---------- 议题库：独立页 ---------- */
html[data-page=library] .art-frame { display: none; }
.lib { position: relative; z-index: 1; padding-top: 10px; }
.lib-head { display: grid; justify-items: center; text-align: center; }
.lib-head .lt { font: italic 22px var(--latin); color: var(--slate); }
.lib-title { font-family: var(--fangsong); font-weight: 400; font-size: 60px; letter-spacing: .2em; margin: 2px -.2em 0 0; line-height: 1.15; outline: none; }
.lib-head .count { margin-top: 8px; font: 500 12px var(--mono); color: var(--slate); }
.lib-flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); width: min(760px, 86vw); margin: 34px auto 26px; padding: 0; list-style: none; }
.lib-flow::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 6px; height: 1px; background: linear-gradient(90deg, var(--ink), var(--line-2)); }
.lib-flow li { position: relative; display: grid; justify-items: center; gap: 2px; text-align: center; }
.lib-flow i { width: 13px; height: 13px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--smoke); margin-bottom: 8px; transition: transform var(--dur-mid) var(--spring), box-shadow var(--dur-fast), background var(--dur-fast); }
.lib-flow li.on i { background: var(--violet); box-shadow: 0 0 0 5px rgba(107,98,242,.16); }
.lib-flow li:hover i { transform: scale(1.3); box-shadow: inset 0 0 0 1.5px var(--violet); }
.lib-flow .n { font: italic 16px var(--latin); color: var(--slate); }
.lib-flow strong { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: .1em; }
.lib-flow small { font-size: 11.5px; color: var(--slate); }
.lib .deck { margin-top: 6px; }
.lib .dossier { padding: 40px 48px 36px; }
.lib .dossier h3 { margin: 18px auto 22px; }
.lib .meta3, .lib .mini-ring { margin-bottom: 22px; }
.lib .deck-nav { margin-top: 18px; }
.lib .hm-foot { margin-top: 36px; }

/* ---------- 光标：只留小点；移到可点元素上才放大成柔和光圈 ---------- */
.cursor-ring { width: 8px; height: 8px; margin: -4px 0 0 -4px; border: 0; background: rgba(107,98,242,0); }
.cursor-on .cursor-ring { opacity: 0; }
.cursor-on.cursor-hover .cursor-ring { opacity: 1; width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(107,98,242,.12); box-shadow: 0 0 0 1px rgba(107,98,242,.22); }
.cursor-hover .cursor-dot { background: var(--violet); }
.cursor-on.cursor-text .cursor-ring { opacity: 1; width: 2px; height: 22px; margin: -11px 0 0 -1px; border-radius: 2px; background: var(--violet); box-shadow: none; }
.cursor-down .cursor-ring { transform: scale(.85); }

/* 聚光减半 */
.btn::before { opacity: 0; }
.btn:hover::before { opacity: .5; }
.rrow:hover::before, .dossier.on:hover::before { opacity: .5; }
.hm-one .home-progress { min-height: 0; max-width: none; align-content: start; }
.hm-one .wm .c { background-image: radial-gradient(circle calc(var(--lr) + .1px) at var(--lx) var(--ly), #f0a640 0%, #e8962a 18%, #a77fe6 46%, #6b62f2 66%, var(--ink) 100%), linear-gradient(var(--ink), var(--ink)); }
.hm-one .hm-center::before { content: ""; position: absolute; inset: -6% -8% -4%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(244,244,242,.86), rgba(244,244,242,.55) 60%, rgba(244,244,242,0)); }
.hm-one .hm-center { isolation: isolate; }
.hm-entry { background: rgba(255,255,255,.86); }
.hm-entry:hover, .hm-entry:focus-visible { background: rgba(255,255,255,.96); }
#delegations-reading .role-directory { max-width: min(1260px, 100%); gap: 8px; }
#delegations-reading .role-directory-item { padding-left: 12px; }
.role-profile-heading [data-action=compare-role] { margin-top: 10px; padding: 6px 14px 6px 12px; border-radius: 999px; color: var(--violet-text, var(--violet)); background: rgba(107,98,242,.1); box-shadow: inset 0 0 0 1px rgba(107,98,242,.2); }
.role-profile-heading [data-action=compare-role]::after { content: " +"; font-weight: 600; }
.role-profile-heading [data-action=compare-role]:hover { background: var(--violet); color: #fff; }

/* v0.16.1 · 字标与品牌字改用得意黑子集（OFL，因保留字体名改名为 Yuan Display） */
@font-face { font-family: "Yuan Display"; src: url("/assets/fonts/yuan-display-subset.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root { --display-zh: "Yuan Display", var(--sans); }
.hm-one .wm { font-family: var(--display-zh); font-size: clamp(72px, 9vw, 148px); letter-spacing: .03em; margin-right: -.03em; line-height: 1.05; }
.hm-one .wm .c.gap { margin-left: .32em; }
.brand-text { font-family: var(--display-zh); letter-spacing: .02em; font-size: 1.12em; }

/* 三议题首屏：沿用品牌与星座，细线入口直接进入同一套实训流程。 */
#home-topic-slot { width: min(820px, calc(100vw - 128px)); }
.home-topics { margin-top: 26px; text-align: left; border-top: 1px solid rgba(22,22,22,.14); }
.home-topic { position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr) 88px 24px; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 10px 14px; color: var(--ink); border-bottom: 1px solid rgba(22,22,22,.14); background: rgba(255,255,255,.54); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); text-align: left; transition: background var(--dur-fast), color var(--dur-fast); }
.home-topic-number { font-size: 11px; color: var(--slate); }
.home-topic-title { font-family: var(--serif); font-weight: 600; font-size: clamp(17px,1.5vw,21px); line-height: 1.5; text-wrap: pretty; }
.home-topic-meta { display: grid; gap: 2px; text-align: right; font-size: 11px; color: var(--slate); }
.home-topic-meta span { font-family: var(--mono); font-size: 10px; }
.home-topic-arrow { display: grid; place-items: center; transition: transform var(--dur-mid) var(--spring); }
.home-topic-arrow svg { width: 18px; height: 18px; }
.home-topic:hover, .home-topic:focus-visible, .home-topic[aria-current=true] { color: var(--violet); background: rgba(255,255,255,.9); }
.home-topic:hover .home-topic-arrow, .home-topic:focus-visible .home-topic-arrow { transform: translateX(5px); }
.home-topic[aria-current=true]::before { content: ""; position: absolute; left: 0; width: 3px; top: 12px; bottom: 12px; border-radius: 3px; background: var(--violet); }
.hm-one .hm-secondary { margin-top: 14px; gap: 28px; }
.hm-secondary .hm-entry { display: flex; align-items: center; min-width: 0; padding: 7px 2px; gap: 9px; border-radius: 0; box-shadow: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hm-secondary .hm-entry .lt { display: none; }
.hm-secondary .hm-entry strong { font: 500 13px var(--sans); letter-spacing: .02em; }
.hm-secondary .hm-entry small { font-size: 11px; }
.hm-secondary .hm-entry .arr { width: 23px; height: 23px; background: transparent; }
.hm-secondary .hm-entry .arr svg { width: 13px; height: 13px; }
.hm-secondary .hm-entry:hover, .hm-secondary .hm-entry:focus-visible { transform: none; box-shadow: none; background: transparent; color: var(--violet); }
.hm-secondary .hm-entry:hover .arr, .hm-secondary .hm-entry:focus-visible .arr { color: var(--violet); background: transparent; }
.role-authority { margin: 24px 0 0; }
.role-authority .role-facts { margin-top: 12px; }
:root:not([data-motion="full"]) .home-topic-arrow { transition: none; }
@media (max-height: 780px) {
  .hm-one .home-progress { margin-top: 24px; }
  .hm-one .hm-rule { margin-top: 20px; }
  .hm-one .hm-latin { margin-top: 14px; }
  .home-topics { margin-top: 18px; }
  .home-topic { min-height: 54px; padding-block: 7px; }
  .hm-one .hm-secondary { margin-top: 9px; }
}

/* 窄桌面的教师导航分两行，保留全部栏目和操作。 */
@media (max-width: 1100px) {
  .teacher-app > .nav { grid-template-columns: auto minmax(0, 1fr); row-gap: 4px; }
  .teacher-app > .nav > .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: center; max-width: 100%; }
  .teacher-app > .nav > .nav-end { min-width: 0; flex-wrap: wrap; }
  .teacher-app > .nav .nav-status { max-width: 100%; overflow-wrap: anywhere; }
}

/* 窗口缩放：页面随窗口宽度流动，不再固定 1024 画布；纸面两侧留出边距。 */
.teacher-app > main.page::before { inset: 0 max(-32px, calc(50% - 50vw + 12px)); }
.stat strong { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
.t-grid > section { min-width: 0; overflow-x: auto; }
@media (max-width: 1100px) {
  .split { grid-template-columns: minmax(15rem, 34%) minmax(0, 1fr); }
  .stat { padding-right: 16px; }
  .stat + .stat { padding-left: 16px; }
}
@media (max-width: 900px) {
  .t-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .teacher-scope { flex-wrap: wrap; gap: 12px 24px; }
  .teacher-scope select { width: min(450px, 60vw); }
}
@media (max-width: 760px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .stat span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ==========================================================================
   v0.21 · 动效令牌与交互反馈（docs/optimization-plan.xml）
   新增样式只引用令牌；颜色全部沿用既有变量与既有 rgba 值。
   ========================================================================== */
:root { --dur-press: 90ms; --dur-micro: 160ms; --dur-ui: 240ms; --dur-exit: 180ms; --dur-page: 380ms; --dur-rm: 120ms; --dur-intro: 1300ms; --dur-loop: 2200ms;
  --press: cubic-bezier(.3, 0, .5, 1); --exit: cubic-bezier(.4, 0, 1, 1); --spring-soft: var(--spring); }
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring-soft: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077 24.1%, 1.088, 1.081 30.6%, 1.019 40.8%, .997 49.1%, 1.001 66.9%, 1); }
}

/* ---- 大面积转场不再插值模糊半径（D06）；同名关键帧以最后一处为准 ---- */
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes swapIn2 { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
@keyframes drIn { from { opacity: 0; transform: translate3d(16px, 0, 0); } to { opacity: 1; transform: none; } }
.page-enter { animation: pageIn var(--dur-page) var(--silk) backwards; }

/* ---- 原生页面转场（D05）：主体离场快、入场稳；导航不重播；共享元素按连续对象命名 ---- */
/* 只在转场期间命名：常驻的 view-transition-name 会让 main 成为 backdrop root，发言区磨砂失效 */
:root.vt-running main.page { view-transition-name: page; }
::view-transition { pointer-events: none; }
::view-transition-group(*) { animation-duration: var(--dur-page); animation-timing-function: var(--silk); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(nav), ::view-transition-old(nav), ::view-transition-new(nav) { animation: none; }
::view-transition-old(nav) { opacity: 0; }
::view-transition-old(page) { animation: vtPageOut var(--dur-exit) var(--exit) both; }
::view-transition-new(page) { animation: vtPageIn var(--dur-page) var(--silk) both; }
:root[data-vt-dir="forward"]::view-transition-new(page) { animation-name: vtPageInFwd; }
:root[data-vt-dir="back"]::view-transition-new(page) { animation-name: vtPageInBack; }
@keyframes vtPageOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vtPageIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes vtPageInFwd { from { opacity: 0; transform: translate(18px, 6px); } }
@keyframes vtPageInBack { from { opacity: 0; transform: translate(-18px, 6px); } }
@keyframes vtFadeOut { to { opacity: 0; } }
@keyframes vtFadeIn { from { opacity: 0; } }
:root[data-motion="off"]::view-transition-group(*) { animation: none; }
:root[data-motion="off"]::view-transition-old(page) { animation: vtFadeOut var(--dur-rm) linear both; }
:root[data-motion="off"]::view-transition-new(page) { animation: vtFadeIn var(--dur-rm) linear both; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*) { animation: none !important; }
  ::view-transition-old(page) { animation: vtFadeOut var(--dur-rm) linear both !important; }
  ::view-transition-new(page) { animation: vtFadeIn var(--dur-rm) linear both !important; }
}

/* ---- 按压：按下 90ms 跟手，松开回弹；键盘 Enter 由 .is-pressed 同效 ---- */
.btn { transition: transform var(--dur-ui) var(--spring), translate var(--dur-ui) var(--silk), border-color var(--dur-micro) var(--silk), background-color var(--dur-micro) var(--silk), color var(--dur-micro) var(--silk), box-shadow var(--dur-ui) var(--silk); }
.btn:active, .btn.is-pressed { transform: scale(.97); transition-duration: var(--dur-press); transition-timing-function: var(--press); }
.btn::before { transition: opacity var(--dur-micro) var(--silk); }
.btn svg { transition: transform var(--dur-ui) var(--spring); }
.tab, .chip, .seat-chip, .icon-btn, .hm-entry .arr, .deck-dots button, .home-topic, .vtab, .role-directory-item { transition-property: color, background-color, border-color, box-shadow, transform, scale, translate; transition-duration: var(--dur-micro), var(--dur-micro), var(--dur-micro), var(--dur-ui), var(--dur-ui), var(--dur-ui), var(--dur-ui); transition-timing-function: var(--silk), var(--silk), var(--silk), var(--silk), var(--spring), var(--spring), var(--silk); }
:is(.tab, .chip, .seat-chip, .icon-btn, .deck-dots button):is(:active, .is-pressed) { scale: .94; transition-duration: var(--dur-press); transition-timing-function: var(--press); }
:is(.hm-entry, .home-topic, .role-directory-item, .deck-rail [data-action="enter-topic"]):is(:active, .is-pressed) { scale: .98; transition-duration: var(--dur-press); transition-timing-function: var(--press); }
.hm-entry { transition: transform var(--dur-ui) var(--spring), scale var(--dur-ui) var(--spring), box-shadow var(--dur-ui) var(--silk), background-color var(--dur-micro) var(--silk); }
:is(.rrow, .orow, .record-line, .rec, .topic-directory-row, .item):is(:active, .is-pressed) > :not(svg) { translate: 0 1px; transition-duration: var(--dur-press); }

/* ---- 涟漪（仅完整动效档；颜色沿用 --paper 与 --violet-soft） ---- */
.fx-ripple { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, var(--violet-soft) 0, transparent 62%); }
.btn-ink > .fx-ripple { z-index: 0; mix-blend-mode: soft-light; background: radial-gradient(circle, var(--paper) 0, transparent 62%); }
.hm-entry, .deck-rail [data-action="enter-topic"] { isolation: isolate; overflow: hidden; }

/* ---- 悬停不再改 padding（不触发布局、不挤动文字） ---- */
.rrow { transition: background-size var(--dur-ui) var(--spring); }
.rrow:hover { padding-left: 4px; }
.rrow > :not(svg) { transition: translate var(--dur-ui) var(--silk); }
.rrow:hover > :not(svg), .rrow:focus-visible > :not(svg) { translate: 10px 0; }
.rrow::before { transition: opacity var(--dur-micro) var(--silk); }
.rrow svg { transition: transform var(--dur-ui) var(--spring), color var(--dur-micro) var(--silk); }
.rrow.arrive { animation: rowIn var(--dur-page) var(--silk) both; }
.vtab:hover { padding-left: 14px; translate: 6px 0; }
.orow h3 { transition: transform var(--dur-ui) var(--silk); }
.orow .lt { transition: background-color var(--dur-micro) var(--silk), color var(--dur-micro) var(--silk), transform var(--dur-ui) var(--spring); }
.orow::before { transition: opacity var(--dur-micro) var(--silk); }

/* ---- 焦点：滚动容器内用内描边，不被裁切；与悬停同节奏 ---- */
:is(.arena-side, .drawer, .deck-rail, .reading-rail, .role-directory, .record-directory, .seat-profile-body, .writing-reference) :focus-visible { outline-offset: -2px; }
:focus-visible { transition: outline-offset var(--dur-micro) var(--silk); }
input:not([type=checkbox]):not([type=radio]):focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
input:not([type=checkbox]):not([type=radio]), select, textarea { transition: border-color var(--dur-micro) var(--silk), box-shadow var(--dur-micro) var(--silk); }

/* ---- 导航指示器：整条底块 + clip-path 移动（只绘制，不布局；可中断） ---- */
.tabs .tab-ind { left: 0; right: 0; width: auto; transform: none; clip-path: inset(0 50% 0 50% round 999px); transition: clip-path var(--dur-ui) var(--spring); }
.tabs .tab-ind.no-anim { transition: none; }
.tab { transition: color var(--dur-micro) var(--silk), scale var(--dur-ui) var(--spring); }

/* ---- 遮罩：模糊固定为终值，只淡入淡出 ---- */
.scrim { background: rgba(244,244,242,.45); backdrop-filter: blur(8px) saturate(120%); -webkit-backdrop-filter: blur(8px) saturate(120%); opacity: 0; visibility: hidden; transition: opacity var(--dur-exit) var(--exit), visibility 0ms linear var(--dur-exit); }
.scrim.open { opacity: 1; visibility: visible; transition: opacity var(--dur-page) var(--silk), visibility 0ms; }
.modal-scrim { background: rgba(244,244,242,.55); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); opacity: 0; transition: opacity var(--dur-exit) var(--exit); }
.modal-wrap.open .modal-scrim { opacity: 1; transition: opacity var(--dur-page) var(--silk); }

/* ---- 抽屉：从被点击行所在的高度展开（--dt/--db 由脚本写入），关闭收回原处 ---- */
.drawer { clip-path: inset(var(--dt, 30%) 0 var(--db, 30%) 0 round 20px); transform: translate3d(28px, 0, 0); opacity: 0; visibility: hidden;
  transition: clip-path var(--dur-ui) var(--exit), transform var(--dur-ui) var(--exit), opacity var(--dur-exit) var(--exit), visibility 0ms linear var(--dur-ui); }
.drawer.open { clip-path: inset(0 0 0 0 round 20px); transform: none; opacity: 1; visibility: visible;
  transition: clip-path var(--dur-page) var(--spring-soft), transform var(--dur-page) var(--silk), opacity var(--dur-micro) var(--silk), visibility 0ms; }
.drawer.open .dr > * { animation: drIn var(--dur-page) var(--silk) both; }
.drawer.open .dr > *:nth-child(2) { animation-delay: calc(var(--dur-stagger) * .8); }
.drawer.open .dr > *:nth-child(3) { animation-delay: calc(var(--dur-stagger) * 1.6); }
.drawer.open .dr > *:nth-child(4) { animation-delay: calc(var(--dur-stagger) * 2.4); }
.drawer.open .dr > *:nth-child(5) { animation-delay: calc(var(--dur-stagger) * 3.2); }
.drawer.open .dr > *:nth-child(n+6) { animation-delay: calc(var(--dur-stagger) * 4); }

/* ---- 模态：从触发点展开（--origin 由脚本写入），离场更快 ---- */
.modal-wrap { transition: visibility 0ms linear var(--dur-exit); }
.modal-wrap.open { transition: visibility 0ms; }
.modal { filter: none; transform-origin: var(--origin, 50% 50%); transform: translate3d(0, 8px, 0) scale(.94); transition: opacity var(--dur-exit) var(--exit), transform var(--dur-exit) var(--exit); }
.modal-wrap.open .modal { filter: none; transform: none; transition: opacity var(--dur-micro) var(--silk), transform var(--dur-page) var(--spring-soft); }
.modal-wrap.open .modal > * { animation: drIn var(--dur-page) var(--silk) both; }
.modal-wrap.open .modal > *:nth-child(2) { animation-delay: calc(var(--dur-stagger) * .8); }
.modal-wrap.open .modal > *:nth-child(3) { animation-delay: calc(var(--dur-stagger) * 1.6); }
.modal-wrap.open .modal > *:nth-child(n+4) { animation-delay: calc(var(--dur-stagger) * 2.4); }

/* ---- 设置 / 搜索对话框 ---- */
.ui-overlay { transition: opacity var(--dur-exit) var(--exit); }
.ui-overlay.open { transition: opacity var(--dur-ui) var(--silk); }
.ui-dialog { transform-origin: var(--origin, 50% 0); transform: translateY(8px) scale(.95); opacity: 0; transition: transform var(--dur-exit) var(--exit), opacity var(--dur-exit) var(--exit); }
.ui-overlay.open .ui-dialog { transform: none; opacity: 1; transition: transform var(--dur-page) var(--spring-soft), opacity var(--dur-micro) var(--silk); }

/* ---- 小浮层：同一套进出 ---- */
.role-peek, .selection-tools { transition: opacity var(--dur-exit) var(--exit), transform var(--dur-exit) var(--exit), visibility 0ms linear var(--dur-exit); }
.role-peek.open, .selection-tools.open { transition: opacity var(--dur-micro) var(--silk), transform var(--dur-ui) var(--spring-soft), visibility 0ms; }
.export-options { transform-origin: top right; animation: menuIn var(--dur-ui) var(--spring-soft) both; }
.mention-menu { transform-origin: bottom left; animation: menuIn var(--dur-ui) var(--spring-soft) both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---- 折叠：箭头与内容 ---- */
details > summary::after { transition: transform var(--dur-ui) var(--spring); }
details.fx-closing > :not(summary) { opacity: 0; transition: opacity var(--dur-exit) var(--exit); }

/* ---- 状态与数字：不抖动 ---- */
.nav-status, [data-save-status], [data-count-to], .projection-shell strong, .completion-metrics strong, .tab-count, .counter { font-variant-numeric: tabular-nums; }
.nav-status [data-status-message] { display: inline-flex; align-items: center; gap: 7px; }
.nav-status .status-success::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.nav-status .status-error::before { content: none; }

/* ---- 骨架：线性扫光，无停顿 ---- */
.skeleton-line::after, .skeleton-title::after { animation-timing-function: var(--linear); }

.rrow .cd .delta { animation: pop var(--dur-ui) var(--spring) both; }

/* ---- 抽签定格：一次光环 ---- */
.fx-halo { position: absolute; inset: -18%; border-radius: 50%; pointer-events: none; border: 1px solid currentColor; animation: haloOut var(--dur-slow) var(--silk) both; }
@keyframes haloOut { from { opacity: .55; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }

/* ---- 列表离场幽灵节点 ---- */
.fx-ghost { box-sizing: border-box; overflow: hidden; }

/* ---- 关闭档与系统减少动效：保留 120ms 淡入淡出，浮层离场同样可见 ---- */
:root[data-motion="off"] :is(.drawer, .scrim, .modal-wrap, .ui-overlay, .role-peek, .selection-tools) { transition-property: opacity, visibility !important; }
:root[data-motion="off"] .drawer, :root[data-motion="off"] .modal, :root[data-motion="off"] .ui-dialog { transform: none !important; clip-path: none !important; }
:root[data-motion="off"] .fx-ripple, :root[data-motion="off"] .fx-halo { display: none; }
@media (prefers-reduced-motion: reduce) {
  :is(.drawer, .scrim, .modal-wrap, .ui-overlay, .role-peek, .selection-tools) { transition-property: opacity, visibility !important; }
  .drawer, .modal, .ui-dialog { transform: none !important; clip-path: none !important; }
  .fx-ripple, .fx-halo { display: none; }
}
@media print { *, *::before, *::after { animation: none !important; transition: none !important; } }
#draw-code { position: relative; }
.fx-halo { color: var(--violet); }
.skeleton-home { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 28px; }
.skeleton-home .skeleton-title { width: min(560px, 60vw); height: 72px; margin: 0; }
.skeleton-home .skeleton-line { width: 420px; height: 52px; border-radius: 999px; }
section.skeleton-library, section.skeleton-reading { width: min(calc(100% - 48px), var(--page)); margin: 0 auto; padding: 120px var(--edge) 0; }
.skeleton-deck { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.skeleton-deck .skeleton-line { height: 380px; border-radius: 28px; }
.skeleton-cols { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 48px; }
/* 关闭档与系统减少动效：悬停、按压不产生位移或缩放，只保留颜色与描边变化 */
:root[data-motion="off"] :is(.btn, .icon-btn, .tab, .chip, .seat-chip, .hm-entry, .home-topic, .role-directory-item, .rrow, .orow, .card, .vtab, .deck-dots button, .record-line, .src-item):is(:hover, :active, :focus-visible, .is-pressed),
:root[data-motion="off"] :is(.btn, .icon-btn, .hm-entry, .home-topic, .rrow, .orow, .mini-table-link):is(:hover, :focus-visible) :is(svg, .arr, h3, .lt, .home-topic-arrow),
:root[data-motion="off"] :is(.rrow, .orow, .record-line, .rec, .topic-directory-row, .item):is(:hover, :focus-visible, :active, .is-pressed) > * { transform: none !important; translate: none !important; scale: none !important; }
@media (prefers-reduced-motion: reduce) {
  :is(.btn, .icon-btn, .tab, .chip, .seat-chip, .hm-entry, .home-topic, .role-directory-item, .rrow, .orow, .card, .vtab, .deck-dots button, .record-line, .src-item):is(:hover, :active, :focus-visible, .is-pressed),
  :is(.btn, .icon-btn, .hm-entry, .home-topic, .rrow, .orow, .mini-table-link):is(:hover, :focus-visible) :is(svg, .arr, h3, .lt, .home-topic-arrow),
  :is(.rrow, .orow, .record-line, .rec, .topic-directory-row, .item):is(:hover, :focus-visible, :active, .is-pressed) > * { transform: none !important; translate: none !important; scale: none !important; }
}
/* v0.21 · 简报第二节起在离开视口时跳过渲染；auto 记住实际高度，回滚不跳动 */
.reading-main > section[id^="brief-"] + section[id^="brief-"] { content-visibility: auto; contain-intrinsic-size: auto 820px; }
@media print { .reading-main > section[id^="brief-"] { content-visibility: visible; } }
/* v0.21 · 简报章节导轨：一枚墨色胶囊在章节间滑动 */
.reading-rail nav.has-slider { position: relative; }
.reading-rail-slider { position: absolute; left: 0; right: 0; top: 0; z-index: 0; border-radius: 999px; background: var(--ink); pointer-events: none; transition: transform var(--dur-ui) var(--spring), height var(--dur-ui) var(--silk); }
.reading-rail-slider.no-anim { transition: none; }
.reading-rail nav.has-slider button { position: relative; z-index: 1; }
.reading-rail nav.has-slider button[aria-current=location] { background: transparent; }
.reading-rail nav button { transition: background-color var(--dur-micro) var(--silk), color var(--dur-micro) var(--silk), translate var(--dur-ui) var(--silk); }
.reading-rail nav button:hover { padding-left: .8rem; }
.reading-rail nav button:not([aria-current]):hover { translate: 4px 0; }
:root[data-motion="off"] .reading-rail nav button:hover { translate: none; }
@media (prefers-reduced-motion: reduce) { .reading-rail nav button:hover { translate: none; } }
/* v0.21 · 教师端保存后，被改动的那一行亮一下（沿用 --green-soft） */
.fx-done { animation: doneGlow var(--dur-idle) var(--silk); }
@keyframes doneGlow { from { background-color: var(--green-soft); box-shadow: inset 2px 0 0 var(--green); } to { background-color: transparent; box-shadow: inset 2px 0 0 transparent; } }
/* 关闭档：浮层打开时立即可见（便于焦点进入），关闭时仍保留 120ms 淡出 */
:root[data-motion="off"] :is(.drawer.open, .scrim.open, .modal-wrap.open, .ui-overlay.open, .role-peek.open, .selection-tools.open) { transition-property: opacity !important; }
@media (prefers-reduced-motion: reduce) { :is(.drawer.open, .scrim.open, .modal-wrap.open, .ui-overlay.open, .role-peek.open, .selection-tools.open) { transition-property: opacity !important; } }

/* ==========================================================================
   v0.21 · 主页议题：卷宗叠放，靠近时扇形摊开（用户选定方案 D，2026-11-17）
   颜色、阴影、描边全部沿用既有值；位移用独立的 translate / rotate / scale 属性。
   ========================================================================== */
.hm-one #home-topic-slot { width: min(1000px, calc(100vw - 96px)); }
.dossier-stack { --card-w: clamp(244px, 27vw, 300px); --card-h: 150px; --gap: 18px; --lift: 14px;
  position: relative; height: calc(var(--card-h) + 46px); margin-top: 22px; border-top: 0; isolation: isolate; }
.dossier-stack .home-topic { position: absolute; left: 50%; top: 12px; width: var(--card-w); height: var(--card-h); margin-left: calc(var(--card-w) / -2);
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: "num meta" "title title" "arrow arrow"; align-items: start; gap: 8px 12px;
  min-height: 0; padding: 16px 18px 14px; border: 1px solid rgba(255,255,255,.9); border-bottom: 1px solid rgba(255,255,255,.9); border-radius: 18px;
  background: var(--glass-2); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(22,22,22,.06), 0 18px 48px -18px rgba(22,22,22,.22); text-align: left; cursor: pointer;
  translate: var(--sx) var(--sy); rotate: var(--sr); scale: var(--ss); z-index: var(--sz);
  transition: translate var(--dur-page) var(--spring-soft), rotate var(--dur-page) var(--spring-soft), scale var(--dur-ui) var(--spring), box-shadow var(--dur-ui) var(--silk), color var(--dur-micro) var(--silk), background-color var(--dur-micro) var(--silk);
  animation: dossierIn var(--dur-enter) var(--silk) backwards; animation-delay: calc(var(--dur-intro) + var(--dur-stagger) * var(--k, 0)); }
@keyframes dossierIn { from { opacity: 0; transform: translateY(28px); } }
.dossier-stack .home-topic-number { grid-area: num; }
.dossier-stack .home-topic-meta { grid-area: meta; display: flex; justify-content: flex-end; gap: 8px; align-items: baseline; text-align: right; }
.dossier-stack .home-topic-title { grid-area: title; align-self: center; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
.dossier-stack .home-topic-arrow { grid-area: arrow; justify-self: end; }
.dossier-stack .home-topic[aria-current=true]::before { top: 18px; bottom: 18px; }
/* 叠放：第一份在上，其余两份错开露边 */
.dossier-stack .home-topic:nth-child(1) { --k: 0; --sx: 0px; --sy: 0px; --sr: 0deg; --ss: 1; --sz: 3; }
.dossier-stack .home-topic:nth-child(2) { --k: 1; --sx: 16px; --sy: 9px; --sr: 3deg; --ss: .97; --sz: 2; }
.dossier-stack .home-topic:nth-child(3) { --k: 2; --sx: -16px; --sy: 16px; --sr: -3.5deg; --ss: .94; --sz: 1; }
.dossier-stack .home-topic[aria-current=true] { --sz: 4; }
/* 扇开：悬停整叠、键盘聚焦或首次进入时的一次示意 */
.dossier-stack:is(:hover, :focus-within, .is-dealing) .home-topic { --ss: 1; box-shadow: 0 0 0 1px rgba(22,22,22,.06), 0 24px 70px -26px rgba(22,22,22,.25); }
.dossier-stack:is(:hover, :focus-within, .is-dealing) .home-topic:nth-child(1) { --sx: calc(-1 * (var(--card-w) + var(--gap))); --sy: 8px; --sr: -2.5deg; }
.dossier-stack:is(:hover, :focus-within, .is-dealing) .home-topic:nth-child(2) { --sx: 0px; --sy: 0px; --sr: 0deg; }
.dossier-stack:is(:hover, :focus-within, .is-dealing) .home-topic:nth-child(3) { --sx: calc(var(--card-w) + var(--gap)); --sy: 8px; --sr: 2.5deg; }
.dossier-stack[data-count="2"]:is(:hover, :focus-within, .is-dealing) .home-topic:nth-child(1) { --sx: calc(-1 * (var(--card-w) + var(--gap)) / 2); }
.dossier-stack[data-count="2"]:is(:hover, :focus-within, .is-dealing) .home-topic:nth-child(2) { --sx: calc((var(--card-w) + var(--gap)) / 2); --sr: 2deg; --sy: 6px; }
/* 摊开后指向的那一份抬起、摆正、放到最上层 */
.dossier-stack:is(:hover, :focus-within, .is-dealing) .home-topic:nth-child(n):is(:hover, :focus-visible) { --sy: calc(-1 * var(--lift)); --sr: 0deg; --ss: 1.04; --sz: 5; color: var(--violet); background-color: var(--paper); }
.dossier-stack .home-topic:is(:active, .is-pressed) { scale: .99; }
.dossier-stack:not(:hover):not(:focus-within) .home-topic { transition-delay: var(--dur-micro), var(--dur-micro), 0ms, 0ms, 0ms, 0ms; }
@media (max-height: 780px) { .dossier-stack { --card-h: 132px; margin-top: 16px; } .dossier-stack .home-topic { padding-block: 12px 10px; } }
/* 关闭档与系统减少动效：直接平铺三份，不叠放、不旋转、不位移 */
:root[data-motion="off"] .dossier-stack { display: flex; justify-content: center; gap: var(--gap); height: auto; padding-top: 12px; }
:root[data-motion="off"] .dossier-stack .home-topic { position: relative; left: auto; top: auto; margin: 0; translate: none; rotate: none; scale: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .dossier-stack { display: flex; justify-content: center; gap: var(--gap); height: auto; padding-top: 12px; }
  .dossier-stack .home-topic { position: relative; left: auto; top: auto; margin: 0; translate: none !important; rotate: none !important; scale: none !important; animation: none; }
}
/* 带逗号的标题在逗号后换行，不在词中间断开 */
.dossier-stack .home-topic-title.phrased { word-break: keep-all; text-wrap: wrap; }

/* ==========================================================================
   v0.21 · 第五轮：更多“高光时刻”（2026-11-17）。颜色全部沿用既有变量。
   ========================================================================== */
/* 1 · 主页卷宗：指针处一团柔光（随指针移动），配合轻微倾斜 */
.dossier-stack .home-topic { --mx: -999px; --my: -999px; overflow: hidden; }
.dossier-stack .home-topic::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--dur-micro) var(--silk); background: radial-gradient(240px 150px at var(--mx) var(--my), var(--violet-soft), transparent 70%); }
.dossier-stack .home-topic:hover::after { opacity: 1; }
.dossier-stack .home-topic { isolation: isolate; }

/* 2 · 议题库：卷宗随横向滚动转向、后退，形成立体翻页 */
.deck-rail { perspective: 1600px; }
.deck-rail .dossier { rotate: y var(--cf-r, 0deg); scale: var(--cf-s, 1); translate: 0 0 var(--cf-z, 0px); transform-style: preserve-3d; }

/* 3 · 简报 / 入席影片标题：入场后一道紫—琥珀光扫过字面，字形不动 */
:root[data-motion="full"] :is(.scene-hero, .entrance) .display .uline {
  background: linear-gradient(100deg, var(--ink) 40%, var(--violet) 49%, var(--amber) 53%, var(--ink) 62%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: titleSweep var(--dur-loop) var(--silk) calc(var(--dur-enter) + var(--d, 0s)) both; }
@keyframes titleSweep { from { background-position: 100% 0; } to { background-position: 0% 0; } }

/* 4 · 会场：指向回应行时，圆桌上对应席位放大；新回应的立场点落定 */
#table .seat { transition: scale var(--dur-ui) var(--spring); }
#table .seat.is-linked { scale: 1.35; z-index: 2; }
.rrow.arrive .st i { animation: stanceLand var(--dur-slow) var(--spring) calc(var(--arrive, 0ms) + var(--dur-ui)) backwards; }
@keyframes stanceLand { from { scale: 2.4; opacity: 0; } 60% { opacity: 1; } }

/* 8 · 导航：指示器落位后，一道光泽扫过当前标签 */
.tabs .tab-ind::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: linear-gradient(100deg, transparent 35%, var(--paper) 50%, transparent 65%) 100% 0 / 250% 100% no-repeat; }
.tabs .tab-ind.sheen::after { animation: indSheen var(--dur-slow) var(--silk) var(--dur-ui) both; }
@keyframes indSheen { from { opacity: .32; background-position: 100% 0; } to { opacity: 0; background-position: -60% 0; } }

/* 关闭档与系统减少动效：以上全部静止 */
:root:not([data-motion="full"]) .deck-rail .dossier { rotate: none; scale: none; translate: none; }
:root:not([data-motion="full"]) .tabs .tab-ind::after, :root:not([data-motion="full"]) .dossier-stack .home-topic::after { display: none; }
:root[data-motion="off"] #table .seat.is-linked { scale: none; }
@media (prefers-reduced-motion: reduce) { .deck-rail .dossier { rotate: none; scale: none; translate: none; } #table .seat.is-linked { scale: none; } .rrow.arrive .st i { animation: none; } }

/* ==========================================================================
   v0.21.2 · 卷宗扇开手感（2026-11-17）
   实测：卡片上的背景模糊在每次扇开的头几帧造成 130–300ms 卡顿（去掉模糊或背景画布即恢复 60fps）。
   改为近实底白面（沿用发言区的 .94 白），阴影不再过渡；收起不再等待；三份错开起步。
   ========================================================================== */
.dossier-stack .home-topic { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.94); will-change: translate, rotate;
  box-shadow: 0 0 0 1px rgba(22,22,22,.06), 0 18px 48px -18px rgba(22,22,22,.22);
  transition: translate var(--dur-page) var(--spring-soft) var(--fan-d, 0ms), rotate var(--dur-page) var(--spring-soft) var(--fan-d, 0ms), scale var(--dur-ui) var(--spring-soft), color var(--dur-micro) var(--silk), background-color var(--dur-micro) var(--silk); }
.dossier-stack:is(:hover, :focus-within, .is-dealing) .home-topic { box-shadow: 0 0 0 1px rgba(22,22,22,.06), 0 18px 48px -18px rgba(22,22,22,.22); }
/* 展开：两侧先动、中间稍后，像从叠里抽出；收起：一起、更快 */
.dossier-stack:is(:hover, :focus-within, .is-dealing) .home-topic:nth-child(2) { --fan-d: var(--dur-press); }
.dossier-stack:not(:hover):not(:focus-within):not(.is-dealing) .home-topic { transition-duration: var(--dur-ui), var(--dur-ui), var(--dur-ui), var(--dur-micro), var(--dur-micro); transition-timing-function: var(--silk); transition-delay: 0ms; }

/* ==========================================================================
   v0.23 · 分幕投屏：一屏一事（圆桌 / 条件 / 轨迹），等待幕、更新时间、控件静置淡出、选例讲评。
   画布保持静止；数据变化只做一次性过渡。保留统一为 --ink（与学生端空心"保留"一致）。
   ========================================================================== */
.projection-mode #app { min-height: 100vh; }
.projection-view { display: flex; flex-direction: column; min-height: calc(100vh - 3rem); }
.projection-view:fullscreen { min-height: 100vh; }
.projection-head-end { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.projection-scenes { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(22,22,22,.04); }
.projection-scene-tab { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--slate); font: 500 .9rem var(--sans); cursor: pointer; transition: background var(--dur-micro) var(--silk), color var(--dur-micro) var(--silk), transform var(--dur-press) var(--press); }
.projection-scene-tab .mono { font-size: .72rem; opacity: .6; }
.projection-scene-tab:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.projection-scene-tab[aria-pressed="true"] { background: var(--ink); color: #fff; }
.projection-scene-tab:active { transform: scale(.96); }
.projection-updated { font-size: .78rem; color: var(--smoke); white-space: nowrap; }
.projection-updated.is-stale { color: var(--amber); }
.projection-view.is-autoplay [data-projection-action="autoplay"] { color: var(--violet); }
.projection-controls { transition: opacity var(--dur-ui) var(--silk); }
.projection-view.controls-idle .projection-controls { opacity: 0; pointer-events: none; }
.projection-view.controls-idle { cursor: none; }
.projection-statusbar { display: flex; align-items: center; gap: 12px; min-height: 0; }
.projection-statusbar:has(.projection-status:not([hidden])) { padding: 0 6px 10px; }
.projection-data { flex: 1; display: flex; flex-direction: column; min-height: 0; transition: opacity var(--dur-ui) var(--silk), filter var(--dur-ui) var(--silk); }
.projection-view.is-loading .projection-data, .projection-view.is-loading .projection-empty { opacity: .3; filter: grayscale(1); }
.projection-review { display: contents; }

/* 一屏一事：只显示当前幕 */
.projection-view[data-scene] [data-scene-panel] { display: none; }
.projection-view[data-scene="table"] [data-scene-panel="table"],
.projection-view[data-scene="conditions"] [data-scene-panel="conditions"],
.projection-view[data-scene="track"] [data-scene-panel="track"] { display: block; flex: 1; min-height: 0; }
.projection-view[data-scene="table"] .projection-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 40px; }

/* 圆桌幕 */
.projection-mode .projection-table svg, .projection-table svg { max-height: calc(100vh - 13rem) !important; }
.projection-center-number { fill: var(--violet); font: 400 68px var(--latin); letter-spacing: -.02em; }
.projection-table-caption { font: 600 20px var(--serif) !important; fill: var(--slate) !important; letter-spacing: .1em; }
.projection-role-name { font: 600 19px var(--serif) !important; }
.projection-code { font: 500 13px var(--mono) !important; }
.projection-share { font: 500 13px var(--mono); fill: var(--slate); }
.projection-share .support { fill: var(--violet); }
.projection-share .conditional { fill: var(--amber); }
.projection-share .reserved { fill: var(--ink); }
.projection-share .sep { fill: var(--smoke); }
.projection-ring.reserved { stroke: var(--ink); }
.projection-legend i.reserved { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.projection-legend i.conditional { background: repeating-linear-gradient(45deg, var(--amber) 0 2px, #f6c27e 2px 4px); }
.projection-legend { font-size: 1rem !important; gap: 32px; }
.projection-view[data-scene="table"] .projection-metrics { gap: 0; min-width: 11rem; }
.projection-view[data-scene="table"] .projection-metrics dt { font-size: 1rem; }

/* 条件幕：按代表团分组，全文两行，横条表示频次 */
.projection-view[data-scene="conditions"] .projection-conditions { padding: 18px 40px 24px; }
.projection-view[data-scene="conditions"] .projection-conditions > header { padding: 10px 0 18px; }
.projection-view[data-scene="conditions"] .projection-conditions h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.projection-view[data-scene="conditions"] .projection-condition { grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr) 11rem; gap: 1.6rem; align-items: center; padding: .9rem 0; font-size: clamp(1.25rem, 1.95vw, 1.75rem); line-height: 1.35; }
.projection-view[data-scene="conditions"] .projection-condition.is-continued { border-top-color: transparent; padding-top: .2rem; }
.projection-condition.is-continued .projection-condition-role { visibility: hidden; }
.projection-condition-role { font-family: var(--serif); font-weight: 600; color: var(--ink) !important; }
.projection-view .projection-condition-text { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: clip; }
.projection-condition-count { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; font-size: .95em !important; color: var(--ink) !important; }
.projection-condition-count small { color: var(--slate); font-size: .7em; margin: 0 !important; }
.projection-condition-bar { display: inline-block; height: .5rem; width: calc(var(--share, 0) * 7rem); min-width: 2px; border-radius: 999px; background: var(--amber); transition: width var(--dur-slow) var(--silk); }
.projection-view.is-reduced .projection-condition-bar { transition: none; }

/* 轨迹幕 */
.projection-view[data-scene="track"] .projection-track { padding: 18px 40px 24px; }
.projection-view[data-scene="track"] .projection-track h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 1rem; }
.projection-view[data-scene="track"] .aggregate-track-table th, .projection-view[data-scene="track"] .aggregate-track-table td { height: 2.4rem; font-size: clamp(1rem, 1.4vw, 1.3rem) !important; }
.projection-view[data-scene="track"] .aggregate-track-table th:first-child { width: 10rem !important; font-family: var(--serif); font-weight: 600; }
.projection-view[data-scene="track"] .aggregate-stack { height: 1rem !important; border-radius: 3px; }
.aggregate-stack .support { background: var(--violet) !important; }
.aggregate-stack .conditional { background: repeating-linear-gradient(45deg, var(--amber) 0 3px, #f6c27e 3px 6px) !important; }
.aggregate-stack .reserved { background: var(--ink) !important; }

/* 等待幕 */
.projection-empty { flex: 1; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 0 !important; }
.projection-empty[hidden] { display: none !important; }
.projection-wait { width: min(100%, 1100px); max-height: calc(100vh - 14rem); }
.projection-wait-seat circle { fill: #fff; stroke: rgba(22,22,22,.12); stroke-width: 6; }
.projection-wait-seat .projection-role-name { fill: var(--slate); }
.projection-wait-caption { font: 600 30px var(--serif); fill: var(--smoke); letter-spacing: .14em; }

/* 选例讲评 */
.projection-case-body { flex: 1; display: grid; align-content: center; gap: 2.4rem; padding: 2rem 4rem; }
.projection-case-panel[hidden] { display: none; }
.projection-case-context, .projection-case-follow { margin: 0 auto; max-width: 52rem; font: 400 clamp(1.4rem, 2.2vw, 2rem)/1.55 var(--serif); color: var(--ink); }
.projection-case-follow { color: var(--slate); border-top: 1px solid var(--line); padding-top: 1.6rem; }
.projection-case-excerpts { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 2rem; }
.projection-case-excerpt { margin: 0; padding: 1.6rem 2rem; border-radius: 28px; background: rgba(255,255,255,.78); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,22,22,.05), 0 30px 60px -40px rgba(22,22,22,.3); }
.projection-case-excerpt .mono { display: block; color: var(--violet); font-size: .9rem; margin-bottom: .6rem; }
.projection-case-excerpt p { margin: 0; font: 500 clamp(1.4rem, 2.2vw, 2rem)/1.5 var(--serif); }
@media (prefers-reduced-motion: reduce) { .projection-scene-tab, .projection-controls, .projection-data, .projection-condition-bar { transition: none; } }
.projection-head > div:first-child { flex: 1; min-width: 0; }
.projection-head .projection-title { max-width: none; overflow-wrap: anywhere; line-break: strict; }
.projection-legend { margin-top: .9rem; }
.projection-view[data-scene="conditions"] .projection-condition { font-size: clamp(1.05rem, min(1.95vw, 3.3vh), 1.75rem); padding: .7rem 0; }
.projection-view[data-scene="conditions"] .projection-conditions { padding-top: 6px; padding-bottom: 14px; }
.projection-view[data-scene="conditions"] .projection-conditions > header { padding: 8px 0 10px; }
.projection-view[data-scene="conditions"] .projection-condition { font-size: clamp(1.05rem, min(1.95vw, 3vh), 1.75rem); padding: .55rem 0; }
.projection-view[data-scene="track"] .aggregate-track-table th, .projection-view[data-scene="track"] .aggregate-track-table td { height: min(2.4rem, 5vh); padding-block: 0; }
.projection-view[data-scene="track"] .projection-track h2 { margin-bottom: .4rem; }
.projection-view[data-scene] .projection-scene { overflow: hidden; }
.projection-head { gap: 28px; }
@media (max-width: 960px) {
  .projection-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .projection-head-end { flex-wrap: wrap; gap: 8px; }
}
.projection-mode .projection-table svg, .projection-table svg { max-height: calc(100vh - 15rem) !important; }

/* ==========================================================================
   v0.23 · 会场与文书：发言区空闲收起、右栏圆桌在首轮后收小、条件核对、计数与状态芯片。
   ========================================================================== */
/* 发言区：失焦且为空、没有标记时收成一行 */
#current-dock .dock-top, #current-dock #speech-checks, #current-dock .draft-markers { transition: opacity var(--dur-ui) var(--silk); }
#current-dock:not(:focus-within):has(#speech-text:placeholder-shown):has(#draft-markers:empty) .dock-top,
#current-dock:not(:focus-within):has(#speech-text:placeholder-shown):has(#draft-markers:empty) #speech-checks,
#current-dock:not(:focus-within):has(#speech-text:placeholder-shown):has(#draft-markers:empty) #hint-text,
#current-dock:not(:focus-within):has(#speech-text:placeholder-shown):has(#draft-markers:empty) #cond-panel { display: none; }
#current-dock:not(:focus-within):has(#speech-text:placeholder-shown):has(#draft-markers:empty) #speech-text { height: 2.6rem !important; min-height: 0; resize: none; }
.manuscript-main:has(#current-dock:not(:focus-within) #speech-text:placeholder-shown) .chat { padding-bottom: 10rem; }
#current-dock:focus-within .dock { animation: dock-open var(--dur-ui) var(--spring-soft); }
@keyframes dock-open { from { transform: translateY(6px); } to { transform: none; } }
#speech-text[readonly] { opacity: .6; }

/* 右栏：有发言后圆桌收小，条件清单上移 */
.arena-side.has-turns .table { height: auto; aspect-ratio: 1 / .62; transition: aspect-ratio var(--dur-mid) var(--silk); }
.arena-side.has-turns #arena-notes summary { padding-block: .4rem; }

/* 回应这条 */
.chip-respond { background: rgba(107,98,242,.1); color: var(--violet); }
.responds-to { margin-left: .5rem; color: var(--violet) !important; }
.condition-tools [data-action="respond-to"] { color: var(--violet); }

/* 条件核对 */
.chip-mentioned { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 1px var(--line); }
.chip-check { background: rgba(19,134,111,.1); color: var(--green); }
.chip-check-conditional { background: rgba(232,150,42,.12); color: #a8651a; }
.chip-check-rejected { background: rgba(22,22,22,.06); color: var(--ink); }
.chip-check-pending { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 1px var(--smoke); }
.condition-row.is-checked { border-left: 2px solid var(--green); padding-left: .6rem; }
.check-condition-text { display: grid; gap: .3rem; margin: .4rem 0 1rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(22,22,22,.035); line-height: 1.6; }
.check-condition-text b { font-family: var(--serif); }
.check-status { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0 0 1rem; }
.check-status label { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background var(--dur-micro) var(--silk), box-shadow var(--dur-micro) var(--silk); }
.check-status label:has(input:checked) { background: var(--ink); color: #fff; box-shadow: none; }
.check-status input { position: absolute; opacity: 0; pointer-events: none; }
.check-status label:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.check-field { display: grid; gap: .3rem; margin-bottom: .8rem; font-size: .85rem; color: var(--slate); }
.check-field input, .check-field textarea { font: inherit; color: var(--ink); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

/* 文书：计数与提交状态 */
.count-ok { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); vertical-align: middle; }
.chip-state { color: var(--amber) !important; }
#writing-margin-comments:empty { display: none; }
/* 记录抽屉：复盘、修订、短题、真人纪要 */
.record-teaching { display: grid; gap: 1.2rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.record-teaching > h3 { margin: 0; }
.teach-block h4, .teach-quiz h4, .teach-note h4 { font: 600 .95rem var(--serif); margin: 0 0 .5rem; }
.teach-form { display: grid; gap: .55rem; padding: .8rem; border-radius: 16px; background: rgba(22,22,22,.03); }
.teach-field { display: grid; gap: .25rem; font-size: .78rem; color: var(--slate); }
.teach-field textarea, .teach-field input, .teach-field select, .teach-form > textarea, .teach-form > input { font: inherit; font-size: .9rem; color: var(--ink); }
.teach-form .btn { justify-self: start; }
.teach-saved { padding: .6rem .8rem; border-left: 2px solid var(--green); margin-bottom: .6rem; font-size: .88rem; }
.teach-saved ol { margin: .3rem 0 0; padding-left: 1.2rem; }
.teach-comment { display: grid; gap: .5rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.teach-comment blockquote { margin: 0; padding-left: .8rem; border-left: 2px solid var(--amber); color: var(--slate); font-size: .85rem; }
.teach-comment-text { margin: 0; font-size: .9rem; }
.teach-diff { display: grid; gap: .3rem; font-size: .88rem; }
.teach-diff del { color: var(--smoke); }
.teach-diff ins { text-decoration: none; background: rgba(19,134,111,.08); padding: .2rem .4rem; border-radius: 6px; }
.teach-kinds { display: flex; flex-wrap: wrap; gap: .4rem .9rem; border: 0; padding: 0; margin: 0; font-size: .82rem; }
.teach-kinds legend { float: left; margin-right: .6rem; color: var(--slate); }
.teach-analysis { padding: .6rem .8rem; border-radius: 12px; background: rgba(107,98,242,.06); }
.live-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.live-table th, .live-table td { text-align: left; padding: .4rem .3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.live-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--line); }
.live-row input, .live-row select { font-size: .82rem; min-width: 0; }
.live-row:has([data-live="label"] option[value="own"]:checked) [data-live="confirmedBy"],
.live-row:has([data-live="label"] option[value="own"]:checked) [data-live="confirmedAt"] { display: none; }
.teach-actions { display: flex; gap: .5rem; }
/* 教师端：证据链、评价、需要关注、课堂任务、短题与讲评选例 */
.evidence-chain { margin: 0 0 1.6rem; }
.evidence-chain ol { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: 0; }
.chain-step { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .8rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.chain-step > .mono { color: var(--violet); font-size: .8rem; padding-top: .15rem; }
.chain-step h4 { margin: 0 0 .35rem; font: 600 .95rem var(--serif); }
.chain-step p { margin: .2rem 0; font-size: .9rem; line-height: 1.6; }
.chain-check { padding: .4rem 0; }
.chain-check blockquote { margin: .3rem 0; padding-left: .8rem; border-left: 2px solid var(--green); font-size: .88rem; }
.grade-panel { margin: 0 0 1.6rem; padding: 1rem 1.2rem; border-radius: 20px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line); }
.grade-row { display: grid; grid-template-columns: 6.5rem 6.5rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .35rem 0; }
.grade-row.is-focus span { color: var(--violet); font-weight: 600; }
.grade-row select, .grade-row input { height: 34px; font-size: .85rem; }
.attention { margin-bottom: 1.6rem; }
.attention-group { border-top: 1px solid var(--line); }
.attention-group summary { display: flex; justify-content: space-between; padding: .55rem 0; cursor: pointer; font-size: .9rem; list-style: none; }
.attention-group summary::-webkit-details-marker { display: none; }
.attention-group[data-empty] summary { color: var(--smoke); }
.attention-group b { color: var(--violet); }
.attention-group[data-empty] b { color: var(--smoke); }
.attention-group > div { display: flex; flex-wrap: wrap; gap: .3rem; padding-bottom: .6rem; }
.teach-topics { margin-top: 2.4rem; }
.teach-topic-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.teach-panel { display: grid; gap: 1.2rem; }
.teach-section { padding: 1.2rem 1.4rem; border-radius: 22px; background: rgba(255,255,255,.72); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,22,22,.05); }
.teach-section .h3 { margin-bottom: .8rem; }
.teach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem; }
.teach-grid label, .teach-wide { display: grid; gap: .3rem; font-size: .82rem; color: var(--slate); margin-bottom: .6rem; }
.teach-check { display: inline-flex; gap: .4rem; align-items: center; font-size: .88rem; margin: .2rem 0 .8rem; }
.teach-quiz-row, .teach-case-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.teach-quiz-row > details { flex-basis: 100%; }
.quiz-answer { padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.case-editor label { display: grid; gap: .3rem; margin-bottom: .7rem; font-size: .82rem; color: var(--slate); }
.case-editor, .case-preview { width: min(40rem, 92vw); }
.case-preview blockquote { margin: .6rem 0; padding: .8rem 1rem; border-radius: 14px; background: rgba(22,22,22,.04); }
.projection-mode #app { box-sizing: border-box; }

/* v0.24.1 · 简报结尾：居中衬线落款，与主页字标同一中轴；去掉粗黑体与下划线 */
.scene-cta { display: grid; place-items: center; text-align: center; padding: 120px 0; }
.scene-cta .cta-stage { position: relative; display: grid; justify-items: center; isolation: isolate; padding: 64px 96px 56px; }
.scene-cta .cta-stage::before { content: ""; position: absolute; inset: -12% -18%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(244,244,242,.92), rgba(244,244,242,.6) 55%, rgba(244,244,242,0)); }
.scene-cta .display { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 4.6vw, 76px); line-height: 1.32; letter-spacing: .16em; text-indent: .16em; }
.scene-cta .display .uline { margin-inline: auto; }
.scene-cta .display .uline::after { display: none; }
.scene-cta .display .mask:first-child .uline { color: var(--slate); }
.scene-cta .cta-rule { display: block; width: 120px; height: 1px; margin: 40px 0 36px; background: linear-gradient(90deg, transparent, var(--smoke), transparent); transform-origin: center; }
.scene-cta .btn { margin-top: 0; }
:root[data-motion="full"] .scene-cta .cta-rule.rv { transform: scaleX(.2); transition: transform var(--dur-enter) var(--silk) var(--d, 0s), opacity var(--dur-enter) var(--silk) var(--d, 0s); }
:root[data-motion="full"] .scene-cta .cta-rule.rv.in { transform: none; }
:root[data-motion="full"] .scene-cta .display .mask:last-child .uline {
  background: linear-gradient(100deg, var(--ink) 40%, var(--violet) 49%, var(--amber) 53%, var(--ink) 62%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: titleSweep var(--dur-loop) var(--silk) calc(var(--dur-enter) + var(--d, 0s)) both; animation-play-state: paused; }
:root[data-motion="full"] .scene-cta .display .mask.in:last-child .uline { animation-play-state: running; }
/* CTA-VARIANTS-TEMP：供用户比选，选定后删去 */
/* B · 左对齐编辑排版：与首屏标题同一左缘，首行小、次行大，按钮落在次行基线右侧 */
.scene-cta[data-cta="b"] { place-items: end start; text-align: left; padding: 0 0 120px; }
.scene-cta[data-cta="b"] .cta-stage { grid-template-columns: auto auto; align-items: end; justify-items: start; column-gap: 56px; padding: 0; }
.scene-cta[data-cta="b"] .cta-stage::before { display: none; }
.scene-cta[data-cta="b"] .display { grid-column: 1; letter-spacing: .02em; text-indent: 0; line-height: 1.12; font-size: clamp(64px, 7.4vw, 118px); }
.scene-cta[data-cta="b"] .display .uline { margin-inline: 0; }
.scene-cta[data-cta="b"] .display .mask:first-child .uline { font-size: .42em; letter-spacing: .12em; margin-bottom: .3em; }
.scene-cta[data-cta="b"] .cta-rule { display: none; }
.scene-cta[data-cta="b"] .cta-stage > div { grid-column: 2; padding-bottom: 1.6em; }
/* C · 一句即入口：整句衬线放进一枚大胶囊，悬停时箭头推进 */
.scene-cta[data-cta="c"] .cta-stage::before { display: none; }
.scene-cta[data-cta="c"] .display { font-size: clamp(22px, 1.8vw, 28px); letter-spacing: .2em; color: var(--slate); line-height: 1.6; }
.scene-cta[data-cta="c"] .display .mask { display: inline-block; }
.scene-cta[data-cta="c"] .display .mask:first-child .uline::after { display: inline; content: "·"; position: static; background: none; width: auto; height: auto; margin: 0 .5em; }
.scene-cta[data-cta="c"] .display .mask .uline { color: var(--slate) !important; background: none !important; animation: none !important; -webkit-text-fill-color: var(--slate); }
.scene-cta[data-cta="c"] .cta-rule { display: none; }
.scene-cta[data-cta="c"] .cta-stage > div { margin-top: 28px; }
.scene-cta[data-cta="c"] .btn { height: 88px; padding: 0 56px; font: 600 clamp(28px, 2.6vw, 40px) var(--serif); letter-spacing: .12em; border-radius: 999px; }
/* D · 磨砂纸面收尾：接住上方阅读纸面，两行衬线与按钮同在一张纸上 */
.scene-cta[data-cta="d"] .cta-stage { padding: 72px 120px 64px; border-radius: 32px; background: rgba(255,255,255,.66); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(22,22,22,.05), 0 40px 80px -50px rgba(22,22,22,.3); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.scene-cta[data-cta="d"] .cta-stage::before { display: none; }
.scene-cta[data-cta="d"] .display { font-size: clamp(40px, 4vw, 64px); }

/* v0.25 统一入口：主页胶囊内的学生 / 教师切换 */
.pill-form .pill-switch { height: 44px; padding: 0 14px 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--slate); font: inherit; font-size: 13px; letter-spacing: .04em; cursor: pointer; transition: color var(--dur-micro) var(--silk), background-color var(--dur-micro) var(--silk), transform var(--dur-press) var(--press); }
.pill-form .pill-switch:hover { color: var(--violet); background: rgba(107,98,242,.07); }
.pill-form .pill-switch:active { transform: scale(.96); }
.pill-form .pill-switch:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.pill-teacher input[type=password] { width: 260px; letter-spacing: .08em; }
.pill-teacher, .pill-form.pill-swap { animation: none; }
:root[data-motion="full"] .pill-teacher, :root[data-motion="full"] .pill-form.pill-swap { animation: pillSwap var(--dur-ui) var(--spring-soft) both; }
@keyframes pillSwap { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
