/* 三觉循环引擎 · 演示站（2026-10-23 改版：对话为主；同日下午换成甲方 AINEM 的视觉）
   设计说明：engine/service/design/2026-10-23-demo-ux-redesign.html；视觉令牌取自 engine/service/design/reference-ainem-growth/。
   原则：#fbfcff 底、深藏青文字、蓝色主强调、紫色辅助（研究一类）；衬线标题、Inter 式正文；胶囊主按钮；白底卡片 + 1px 淡边 + 极淡阴影；
   8 的倍数留白；阴影只有两层；动效克制，尊重 prefers-reduced-motion 与设置里的「动效」开关。CSP：只用类名切换样式。 */

:root {
  /* AINEM 令牌：ink #182244、blue #2448b8、blue2 #4d6fe7、violet #8757df、mint #dff4ee、wash #f5f7fd、line #e5e9f4、muted #65708c */
  --bg: #fbfcff;
  --surface: #ffffff;
  --raised: #ffffff;
  --wash: #f5f7fd;
  --sunken: #f2f4fb;
  --well: #e8ecf8;
  --ink: #182244;
  --ink-2: #3a4566;
  --muted: #65708c;
  --faint: #8e98b0;
  --line: #e5e9f4;
  --line-2: #d5dcec;
  --blue: #2448b8;
  --blue2: #4d6fe7;
  --violet: #8757df;
  --mint: #dff4ee;
  --accent: #2448b8;
  --accent-ink: #ffffff;
  --accent-hover: #1c3a9c;
  --accent-soft: rgba(36, 72, 184, .07);
  --accent-15: rgba(36, 72, 184, .16);
  --primary: #182244;
  --primary-hover: #30488e;
  --violet-soft: rgba(135, 87, 223, .09);
  --visitor: #eaf0ff;
  --visitor-ink: #273d85;
  --danger: #b4344a;
  --danger-soft: rgba(180, 52, 74, .08);
  --warn: #93680f;
  --warn-soft: rgba(147, 104, 15, .09);
  --ok: #1d7a63;
  /* 七个环节：A 蓝、D 紫、R 青绿（mint 的深色）、C 靛、B 深蓝、O 蓝灰、F 藏青；环、色条、时间线、架构图同一套 */
  --st-A: #2448b8;
  --st-D: #8757df;
  --st-R: #23806a;
  --st-C: #4f52c4;
  --st-B: #1b3480;
  --st-O: #5f6f94;
  --st-F: #26345f;
  --st-track: #e7ebf5;
  --st: var(--accent);
  --shadow-1: 0 1px 2px rgba(24, 34, 68, .04);
  --shadow-2: 0 18px 50px rgba(50, 63, 120, .08);
  --shadow-12: 0 1px 2px rgba(24, 34, 68, .04), 0 18px 50px rgba(50, 63, 120, .08);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --serif: ui-serif, Georgia, "Noto Serif SC", "Songti SC", "Source Han Serif SC", "STSong", serif;
  --sans: Inter, "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-card: 240ms;
  --t-arc: 600ms;
  --t-drawer: 280ms;
  --topbar: 64px;
  --measure: 40em;
}

.st-A { --st: var(--st-A); }
.st-D { --st: var(--st-D); }
.st-R { --st: var(--st-R); }
.st-C { --st: var(--st-C); }
.st-B { --st: var(--st-B); }
.st-O { --st: var(--st-O); }
.st-F { --st: var(--st-F); }

/* ---------------------------------------------------------------- 基础 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
::selection { background: var(--accent-15); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #91aaff; outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; line-height: 1.55; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.measure { max-width: var(--measure); }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--raised); padding: 8px 16px; border-radius: var(--r-sm); box-shadow: var(--shadow-2); z-index: 100; }
.skip-link:focus { top: 8px; }

/* ---------------------------------------------------------------- 按钮与小部件 */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 18px; border: 0; border-radius: var(--r-pill);
  background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: var(--wash); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; transform: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(24, 34, 68, .14); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-primary:disabled:hover { background: var(--primary); transform: none; }
.btn-quiet { background: transparent; color: var(--ink-2); box-shadow: none; }
.btn-quiet:hover { background: var(--wash); }
.btn-line { background: var(--raised); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { background: var(--raised); color: var(--blue); box-shadow: inset 0 0 0 1px #aab5dc; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: none; }
.btn-danger:hover { background: #962a3d; }
.btn-lg { min-height: 48px; padding: 13px 24px; font-size: 16px; }
.btn-sm { min-height: 32px; padding: 4px 13px; font-size: 14px; }
.link {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 2px; border: 0; background: none;
  color: var(--muted); font-size: 14px; text-decoration: underline; text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
}
.link:hover { color: var(--ink); text-decoration-color: currentColor; }
.link-accent { color: var(--accent); text-decoration-color: var(--accent-15); font-weight: 600; }
.link-danger { color: var(--danger); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; min-width: 36px; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-2); font-size: 14px;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.icon-btn:hover { background: var(--wash); color: var(--blue); }
.icon-btn.is-on { background: var(--accent-soft); color: var(--accent); }
.icon-btn.pill { border-radius: var(--r-pill); padding: 0 13px; box-shadow: inset 0 0 0 1px #dfe4f1; color: #566484; }
.icon-btn.pill:hover { box-shadow: inset 0 0 0 1px #aab5dc; background: transparent; color: #2849a8; }
.icon-btn.round { border-radius: 50%; }
.research-toggle.is-on { background: var(--violet-soft); color: var(--violet); box-shadow: inset 0 0 0 1px rgba(135, 87, 223, .32); }
.icon-btn:disabled { opacity: .4; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  min-height: 32px; padding: 5px 12px; border: 0; border-radius: var(--r-pill);
  background: var(--raised); color: #3e4b70; font-size: 14px; line-height: 1.4; text-align: left; box-shadow: inset 0 0 0 1px #dce3f5;
  transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease), color 160ms var(--ease);
}
button.chip:hover { box-shadow: inset 0 0 0 1px #8b9ce0; color: #2b48a5; }
.chip.is-on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-15); }
.chip-dashed { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
button.chip-dashed:hover { background: var(--raised); color: var(--ink); }
.chip .chip-x { color: var(--faint); margin-left: 2px; }
.chip-text { overflow-wrap: anywhere; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st); flex: none; display: inline-block; }
.dot-done { background: var(--blue); }
.dot-preview { background: var(--violet); }
.dot-off { background: #b6bdcf; }
.pill-note {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-pill);
  background: var(--wash); color: var(--muted); font-size: 13px; box-shadow: inset 0 0 0 1px var(--line);
}
.info {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 2px 4px; border: 0; background: none;
  color: var(--faint); font-size: 13px; border-radius: 6px;
}
.info:hover { color: var(--blue); background: var(--wash); }
.info .icon { width: 15px; height: 15px; }

/* 表单：去掉浏览器缺省样式 */
.input, .textarea {
  width: 100%; border: 0; border-radius: var(--r-md); background: var(--raised); color: var(--ink);
  padding: 10px 14px; font-size: 15px; line-height: 1.55;
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 160ms var(--ease), background-color 160ms var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .textarea:focus { background: var(--raised); box-shadow: inset 0 0 0 1px #8b9ce0, 0 0 0 3px var(--accent-soft); }
.input:focus-visible, .textarea:focus-visible { outline: none; }
.textarea { resize: none; min-height: 44px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 13px; color: var(--muted); }
.toggle {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink-2); font-size: 14px; box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease), color 160ms var(--ease);
}
.toggle .box {
  width: 18px; height: 18px; border-radius: 6px; background: var(--raised); box-shadow: inset 0 0 0 1.5px var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; color: transparent;
}
.toggle .box .icon { width: 14px; height: 14px; stroke-width: 2; }
.toggle.is-on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-15); }
.toggle.is-on .box { background: var(--accent); box-shadow: none; color: #fff; }
.toggle-strong { font-weight: 500; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.seg button {
  border: 0; background: transparent; padding: 6px 14px; border-radius: var(--r-pill); font-size: 14px; color: var(--muted);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: var(--raised); color: var(--blue); font-weight: 600; box-shadow: 0 1px 3px rgba(24, 34, 68, .1); }
.seg button:disabled { opacity: .45; }

/* ---------------------------------------------------------------- 外壳与顶栏 */

.app { min-height: 100vh; display: flex; flex-direction: column; }
.loading { padding: 96px 24px; text-align: center; color: var(--muted); }
.topbar.app-bar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar);
  display: flex; align-items: center; gap: 28px; padding: 0 24px;
  background: rgba(251, 252, 255, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(229, 233, 244, .9);
}
.brand { display: inline-flex; align-items: center; border: 0; background: none; padding: 0; color: var(--ink); flex: none; }
/* 甲方标志是白底图：正片叠底让它落在浅色底上（与甲方站点同一做法） */
.brand-logo { display: block; height: 40px; width: auto; max-width: none; mix-blend-mode: multiply; }
.nav { display: flex; gap: 4px; }
.nav button {
  border: 0; background: transparent; padding: 7px 14px; border-radius: var(--r-pill); color: #48536e; font-size: 14.5px; white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.nav button:hover { color: var(--blue); }
.nav button.is-on { color: var(--ink); font-weight: 650; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.topbar-spacer { flex: 1; }
.topbar-tools { display: flex; align-items: center; gap: 6px; }
.topbar-tools .label { font-size: 13.5px; }


.banner {
  display: flex; align-items: flex-start; gap: 12px; margin: 16px auto 0; padding: 12px 16px; max-width: 760px;
  border-radius: var(--r-md); background: #fdf8ec; color: #66470b; font-size: 14px; line-height: 1.55; box-shadow: inset 0 0 0 1px #f1e3bf;
}
.banner .icon { color: var(--warn); margin-top: 1px; }
.banner p { flex: 1; }
.banner .icon-btn { height: 28px; min-width: 28px; padding: 0 6px; color: #7a5a17; }
.banner.is-ok { background: #effaf6; color: #1f5a4b; box-shadow: inset 0 0 0 1px #cdeee2; }
.banner.is-ok .icon, .banner.is-ok .icon-btn { color: var(--ok); }

.toast {
  position: fixed; left: 50%; top: calc(var(--topbar) + 16px); transform: translateX(-50%); z-index: 80;
  max-width: min(560px, calc(100vw - 32px)); padding: 11px 18px; border-radius: 18px;
  background: #202b4d; color: #fff; font-size: 14px; box-shadow: var(--shadow-2);
  display: flex; gap: 12px; align-items: center; animation: rise var(--t-card) var(--ease) both;
}
.toast.is-error { background: #7d2234; }
.toast .link { color: rgba(255, 255, 255, .8); white-space: nowrap; }

/* 勋章：与环、卡片共用 A / D / R 色；没有数值或完成度表达。 */
.award-mark {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px;
  color: #fff; background: var(--st); border: 1px solid var(--st); border-radius: 16px;
}
.award-mark .icon { width: 24px; height: 24px; }
.award-mark.is-outline { background: transparent; color: var(--st); }
.toast.is-award { width: min(540px, calc(100vw - 32px)); align-items: flex-start; padding: 18px 20px; animation-name: award-in; }
@keyframes award-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translateX(-50%); } }
.toast.is-award > .link { flex: none; margin-top: 3px; }
.award-notice { flex: 1; min-width: 0; }
.award-notice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.award-notice-list > li { display: flex; gap: 12px; align-items: flex-start; }
.award-notice .award-mark { width: 38px; height: 38px; border-radius: 12px; }
.award-notice .award-mark .icon { width: 21px; height: 21px; }
.award-notice-copy { min-width: 0; overflow-wrap: anywhere; }
.award-notice-name { margin: 0 0 3px; font-weight: 650; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.award-origin { font-size: 11px; font-weight: 400; color: #d8deef; }
.award-notice-description { margin: 0; font-size: 13px; color: #e4e8f4; line-height: 1.7; }
.award-growth-link { margin-top: 12px; }
.round-awards { margin: 16px 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--wash); }
.round-awards .quote-label { margin: 0 0 8px; }
.round-awards ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; color: var(--ink); font-weight: 600; }
.growth-page { width: min(1160px, 100%); margin: 0 auto; padding: 56px 32px 80px; flex: 1; }
.growth-heading { margin-bottom: 36px; }
.growth-heading .eyebrow { color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.growth-heading h1 { font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); margin: 10px 0 12px; }
.growth-heading > p:last-child { color: var(--muted); }
.growth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.growth-award { min-width: 0; padding: 26px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--raised); overflow-wrap: anywhere; }
.growth-award.is-acquired { box-shadow: var(--shadow-1); }
.growth-award-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.growth-award-head h2 { font-size: 23px; margin: 0; color: var(--st); }
.growth-remembers { font-size: 14px; line-height: 1.9; margin: 0; color: var(--muted); }
.growth-description { margin: 18px 0 0; line-height: 1.8; font-size: 15px; }
.award-toggle { margin-top: 22px; color: var(--st); display: inline-flex; gap: 6px; align-items: center; text-align: left; }
.award-toggle[aria-expanded=true] .icon { transform: rotate(90deg); }
.award-occurrences { list-style: none; padding: 0; margin: 22px 0 0; }
.award-occurrence { padding: 22px 0 0; border-top: 1px solid var(--line); }
.award-occurrence + .award-occurrence { margin-top: 24px; }
.award-opening { font-size: 14px; line-height: 1.9; margin: 8px 0 16px; }
.growth-evidence { list-style: none; margin: 0 0 20px; padding: 0 0 0 12px; border-left: 2px solid var(--st); font-size: 13px; color: var(--muted); }
.growth-evidence li { line-height: 1.9; }
.growth-evidence li + li { margin-top: 12px; }
.award-revisit { display: inline-flex; align-items: center; gap: 6px; color: var(--st); }
.growth-error { padding: 24px; border: 1px solid var(--line); border-radius: 18px; }
@media (max-width: 800px) and (min-width: 641px) {
  .growth-page { padding: 40px 24px 64px; }
  .growth-grid { gap: 12px; }
  .growth-award { padding: 22px 16px; }
  .growth-award-head { gap: 10px; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .growth-page { padding: 32px 20px 48px; }
  .growth-heading { margin-bottom: 24px; }
  .growth-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .growth-award { padding: 24px; }
  .toast.is-award { padding: 16px; gap: 8px; }
}
/* 641–900（含 768 档）：顶栏下面第一行是环点行（44px）加对话头（「新的一件事」那行，约 56px）。
   勋章 toast 往下留出这两行的垂直空间，不再贴着 / 压着右上主按钮；只动 toast，不改按钮。 */
@media (max-width: 900px) and (min-width: 641px) {
  .toast.is-award { top: calc(var(--topbar) + 44px + 64px); }
}
@media (min-width: 901px) {
  .toast.is-award { top: calc(var(--topbar) + 64px); }
}

/* ---------------------------------------------------------------- 连不上服务时的说明页 */

.login { flex: 1; display: grid; place-items: center; padding: 48px 16px; }
.login-card { width: min(440px, 100%); padding: 32px; border-radius: 22px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); }
.login-lead { margin-top: 16px; color: var(--muted); font-size: 15px; }
.login-form { margin-top: 24px; display: grid; gap: 12px; }

/* ---------------------------------------------------------------- 访问码框（入口页上要用工作台、架构图时弹出） */

.modal-backdrop.access-backdrop { align-items: center; padding: 24px; background: rgba(17, 25, 54, .46); }
.modal.access { width: min(420px, 100%); padding: 20px 27px 27px; border-radius: 22px; background: var(--raised); box-shadow: 0 30px 90px rgba(9, 19, 53, .27); }
.access-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-logo.is-access { height: 40px; }
.access-title { margin-top: 12px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.access-lead { margin-top: 8px; color: #6d7891; font-size: 14px; line-height: 1.65; }
.access-lead.faint { color: var(--faint); font-size: 13px; }
.access-form { margin-top: 18px; display: grid; gap: 10px; }
.access-status { min-height: 20px; color: var(--danger); font-size: 13.5px; }
.access-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------------------------------------------------------------- 工作台布局 */

.bench { --rail: 300px; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr) 44px; flex: 1; min-height: calc(100vh - var(--topbar)); }
.rail {
  position: sticky; top: var(--topbar); align-self: start; height: calc(100vh - var(--topbar));
  overflow-y: auto; padding: 32px 24px 24px; background: var(--wash); box-shadow: 1px 0 0 var(--line); scrollbar-width: thin;
}
.stagecol { min-width: 0; display: flex; flex-direction: column; }
.handle {
  position: sticky; top: var(--topbar); align-self: start; height: calc(100vh - var(--topbar));
  display: flex; align-items: center; justify-content: center; border: 0; background: var(--wash); box-shadow: -1px 0 0 var(--line); color: var(--muted);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.handle:hover { background: var(--violet-soft); color: var(--violet); }
.handle-inner { writing-mode: vertical-rl; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .08em; }
.handle .icon { transform: rotate(90deg); }

/* 环（左栏主视觉） */
.ring-wrap { position: relative; width: 236px; max-width: 100%; margin: 0 auto; }
.ring { width: 100%; height: auto; display: block; overflow: visible; }
.ring-track { fill: none; stroke: var(--st-track); stroke-width: 20; }
.arc { fill: none; stroke-width: 20; stroke-linecap: butt; stroke: var(--st-track);
  transition: stroke var(--t-arc) var(--ease), stroke-width var(--t-arc) var(--ease), opacity var(--t-arc) var(--ease); }
.arc.is-past { stroke: var(--st); opacity: .38; }
.arc.is-now { stroke: var(--st); stroke-width: 26; opacity: 1; stroke-dasharray: 100 100; animation: arc-in var(--t-arc) var(--ease) both; }
.arc-letter { font: 600 13px var(--sans); fill: var(--faint); text-anchor: middle; dominant-baseline: central; transition: fill var(--t-arc) var(--ease); }
.arc-letter.is-now { fill: #fff; }
.arc-letter.is-past { fill: rgba(24, 34, 68, .55); }
.ring-marker { transition: transform var(--t-arc) var(--ease); transform-origin: 120px 120px; }
.ring-marker circle { fill: var(--raised); stroke: var(--accent); stroke-width: 2; }
.ring-spin { transform-origin: 120px 120px; }
.ring-spin.is-spinning { animation: spin 900ms var(--ease) both; }
.pos-A { transform: rotate(25.7deg); } .pos-D { transform: rotate(77.1deg); } .pos-R { transform: rotate(128.6deg); }
.pos-C { transform: rotate(180deg); } .pos-B { transform: rotate(231.4deg); } .pos-O { transform: rotate(282.9deg); }
.pos-F { transform: rotate(334.3deg); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.ring-stage { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.ring-sub { margin-top: 4px; font-size: 13px; color: var(--muted); max-width: 120px; line-height: 1.45; }
.ring-center.swap .ring-stage, .ring-center.swap .ring-sub { animation: fade-in 420ms var(--ease) both; }
.ring.tone-safety .arc.is-now { stroke: var(--danger); }
.ring.tone-quiet .arc.is-now { opacity: .55; }

.rail-block { margin-top: 32px; }
.rail-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 650; color: var(--ink); }
.feed { margin-top: 12px; display: grid; gap: 8px; }
.feed-item {
  position: relative; padding: 8px 12px 8px 15px; border-radius: 10px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13.5px; line-height: 1.55; color: var(--ink-2);
}
.feed-item:first-child { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); color: var(--ink); }
.feed-item::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--st); }
.feed-item.tone-candidate::before { opacity: .45; }
.feed-item.tone-degraded::before { background: var(--warn); }
.feed-item.tone-safety::before { background: var(--danger); }
.feed-item.tone-label { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.feed-item.is-new { animation: rise var(--t-card) var(--ease) both; }
.feed-empty { margin-top: 12px; color: var(--faint); font-size: 13px; }
.rail-foot { margin-top: 16px; display: flex; gap: 6px; color: var(--faint); font-size: 12.5px; line-height: 1.5; }
.rail-foot .icon { width: 14px; height: 14px; margin-top: 2px; }
.feed-more { margin-top: 8px; }

/* 手机：环收成顶部七个点 */
.dots-bar { display: none; }
.dots { display: inline-flex; align-items: center; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--st-track); transition: background-color var(--t-arc) var(--ease), transform var(--t-arc) var(--ease); }
.dots i.is-past { background: var(--st); opacity: .5; }
.dots i.is-now { background: var(--st); transform: scale(1.35); }
.dots.tone-safety i.is-now { background: var(--danger); }

/* ---------------------------------------------------------------- 对话流 */

.conv-head {
  position: sticky; top: var(--topbar); z-index: 12; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; max-width: 776px; margin: 0 auto; padding: 14px 28px 10px; background: linear-gradient(var(--bg) 70%, rgba(251, 252, 255, 0));
}
.conv-head-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.conv-head-right { display: flex; align-items: center; gap: 4px; }
.conv { width: 100%; max-width: 776px; margin: 0 auto; padding: 8px 28px 24px; display: flex; flex-direction: column; gap: 24px; flex: 1; }
.round-rule { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.round-rule::before, .round-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.turn { animation: rise var(--t-card) var(--ease) both; }
.current { display: flex; flex-direction: column; gap: 24px; }
.turn.is-static { animation: none; }

.engine {
  position: relative; padding: 20px 24px 18px 28px; border-radius: var(--r-lg); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
.engine::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 5px; border-radius: 0 5px 5px 0; background: var(--st); }
.engine-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.engine-title { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.engine-title .verb { color: var(--muted); font-weight: 400; }
.engine-status { font-size: 13px; color: var(--muted); }
.engine-body { margin-top: 8px; max-width: var(--measure); color: var(--ink); }
.engine-body p + p { margin-top: 6px; }
.engine-body .caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--st); animation: blink 1s steps(2, start) infinite; }
.engine-foot { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.engine-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.engine.is-quiet .engine-body { color: var(--ink-2); }
.engine.is-pending { box-shadow: inset 0 0 0 1px var(--line); }
.thinking { margin-top: 8px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.thinking .dots { display: inline-flex; gap: 4px; }
.thinking .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--st); animation: breathe 1.2s ease-in-out infinite; }
.thinking .dots i:nth-child(2) { animation-delay: .2s; }
.thinking .dots i:nth-child(3) { animation-delay: .4s; }
.visitor.is-pending .bubble { opacity: .72; }
.engine-pop { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--wash); font-size: 14px; color: var(--ink-2); display: grid; gap: 8px; }
.engine-pop .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* 对话编排 v3：当前环节的候选区放进最新那张引擎卡（先一句接话，再给候选区；一个环节一张卡） */
.engine-slot { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--line); }
.engine-slot:empty { display: none; }
.slot-body { position: relative; }
.slot-body > .card-hint:first-child { display: block; margin-top: 14px; }
.slot-body .ask { display: block; margin-bottom: 0; font-size: 15px; color: var(--ink); }
/* 成长叙事（v3 第 2 步）：开场回顾、原话 vs 新理解、这像上次、与在意的事的关系 */
.review-rows { display: grid; gap: 10px; }
.review-row { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; align-items: baseline; }
.review-k { font-size: 13px; color: var(--muted); }
.review-v { color: var(--ink); line-height: 1.6; overflow-wrap: anywhere; }
.rethink .quote.is-new { background: rgba(35, 128, 106, .06); box-shadow: inset 0 0 0 1px rgba(35, 128, 106, .22); }
.turn-mark { background: rgba(35, 128, 106, .18); color: var(--ink); border-radius: 4px; padding: 1px 2px; }
.turning-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.turning-actions { display: inline-flex; gap: 8px; }
.similar { padding: 14px 16px; border-radius: var(--r-md); background: rgba(135, 87, 223, .05); box-shadow: inset 0 0 0 1px rgba(135, 87, 223, .2); }
.similar .card-sec-title { color: var(--violet); }
.similar .quote { background: var(--raised); }
.similar-why { margin-top: 8px; color: var(--ink-2); }
.similar-foot { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.rel-note { display: block; margin-top: 10px; }
.option-rel { font-size: 13.5px; color: var(--ink-2); padding: 4px 8px; border-radius: 8px; background: rgba(79, 82, 196, .07); }

.visitor { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.visitor-who { font-size: 12.5px; color: var(--faint); padding-right: 6px; }
.bubble {
  max-width: min(560px, 88%); padding: 12px 18px; border-radius: 18px 18px 5px 18px; background: var(--visitor); color: var(--visitor-ink);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.bubble-rows { display: grid; gap: 6px; white-space: normal; }
.bubble-row { display: flex; gap: 8px; font-size: 14px; line-height: 1.55; }
.bubble-row .k { flex: none; color: var(--muted); min-width: 4em; }
.bubble-more { align-self: flex-end; }
.num-note { color: var(--faint); font-size: 12.5px; margin-left: 4px; }

/* 当前环节的卡片（点选为主） */
.card {
  position: relative; padding: 22px 24px 20px; border-radius: var(--r-lg); background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); animation: rise var(--t-card) var(--ease) both;
}
.card-kicker { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.card-kicker .dot { width: 6px; height: 6px; }
.card-title { margin-top: 4px; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.card-lead { margin-top: 6px; color: var(--ink-2); max-width: var(--measure); }
.card-sec { margin-top: 18px; }
.card-sec-title { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.card-actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.card-hint { font-size: 13px; color: var(--muted); }
.card-hint.is-warn { color: var(--warn); }
.card-errors { margin-top: 14px; padding: 10px 14px; border-radius: var(--r-md); background: var(--danger-soft); color: var(--danger); font-size: 14px; display: grid; gap: 4px; }
.card-foot { margin-top: 16px; display: flex; align-items: flex-start; gap: 6px; color: var(--faint); font-size: 12.5px; line-height: 1.55; }
.card-foot .icon { width: 14px; height: 14px; margin-top: 2px; }
.card-fold { margin-top: 14px; }
.card-fold > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; padding: 2px 0; }
.card-fold > summary::-webkit-details-marker { display: none; }
.card-fold > summary .icon { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.card-fold[open] > summary .icon { transform: rotate(90deg); }
.card-fold-body { margin-top: 12px; display: grid; gap: 12px; }

.cat-rows { display: grid; gap: 12px; }
.cat-row { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 12px; align-items: start; }
.cat-name { padding-top: 6px; font-size: 13px; color: var(--muted); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 32px; }
.cat-empty { padding-top: 6px; font-size: 13px; color: var(--faint); }
.cat-thought .chip { background: rgba(135, 87, 223, .07); box-shadow: inset 0 0 0 1px rgba(135, 87, 223, .22); }
.cat-emotion .chip { background: rgba(35, 128, 106, .07); box-shadow: inset 0 0 0 1px rgba(35, 128, 106, .22); }
.cat-guess .chip { background: rgba(79, 82, 196, .06); box-shadow: inset 0 0 0 1px rgba(79, 82, 196, .2); }
.chip-menu {
  position: absolute; z-index: 20; min-width: 168px; padding: 6px; border-radius: var(--r-md); background: var(--raised);
  box-shadow: var(--shadow-12); display: grid; gap: 2px; animation: rise 160ms var(--ease) both;
}
.chip-wrap { position: relative; display: inline-flex; max-width: 100%; }
.chip-wrap > .chip-menu { top: calc(100% + 6px); left: 0; }
.chip-menu button { border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.chip-menu button:hover { background: var(--wash); }
.chip-menu button.is-on { color: var(--accent); font-weight: 600; }
.chip-menu .sep { height: 1px; background: var(--line); margin: 4px 6px; }

.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-radius: var(--r-md);
  background: var(--raised); text-align: left; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  transition: box-shadow 160ms var(--ease), background-color 160ms var(--ease);
}
.option:hover { box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-2); }
.option.is-on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.option-mark { width: 18px; height: 18px; flex: none; margin-top: 3px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: transparent; }
.option.is-on .option-mark { background: var(--accent); box-shadow: none; color: #fff; }
.option-mark .icon { width: 12px; height: 12px; stroke-width: 2.5; }
.option-body { display: grid; gap: 4px; min-width: 0; }
.option-text { font-size: 15px; color: var(--ink); }
.option-meta { font-size: 13px; color: var(--muted); }
.option-own { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); border-style: dashed; }
.option-own.is-dashed { box-shadow: none; outline: 1.5px dashed var(--line-2); outline-offset: -1.5px; }
.options-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.options-3 .option { flex-direction: column; gap: 10px; height: 100%; }
.options-3 .option-mark { margin-top: 0; }

.quote { padding: 10px 14px; border-radius: var(--r-md); background: var(--wash); color: var(--ink-2); font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); }
.quote-label { display: block; font-size: 12.5px; color: var(--faint); margin-bottom: 2px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: end; }
.pair-arrow { padding-bottom: 12px; color: var(--faint); }
.compare-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare-2 .quote { height: 100%; }
.hint-list { display: grid; gap: 6px; }
.hint-list li { display: flex; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hint-list li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--violet); flex: none; }

.help { padding: 28px; border-radius: 20px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); }
.help-title { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.help-texts { margin-top: 12px; display: grid; gap: 8px; }
.help-text { color: var(--ink-2); }
.help-tag { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: var(--r-pill); background: var(--warn-soft); color: var(--warn); font-size: 12.5px; }

.endcard { text-align: center; padding: 28px 24px; }
.endcard .card-title { font-size: 20px; }
.endcard .card-actions { justify-content: center; }

/* 底部输入条 */
.composer-wrap { position: sticky; bottom: 0; z-index: 10; width: 100%; max-width: 776px; margin: 0 auto; padding: 12px 28px 20px; background: linear-gradient(rgba(251, 252, 255, 0), var(--bg) 28%); }
.composer {
  display: flex; align-items: flex-end; gap: 6px; padding: 8px 8px 8px 16px; border-radius: 22px; background: var(--raised);
  box-shadow: var(--shadow-12), inset 0 0 0 1px var(--line); transition: box-shadow 160ms var(--ease);
}
.composer:focus-within { box-shadow: var(--shadow-12), inset 0 0 0 1px #8b9ce0, 0 0 0 4px var(--accent-soft); }
.composer textarea { flex: 1; min-width: 0; border: 0; background: transparent; resize: none; padding: 8px 0; max-height: 168px; line-height: 1.55; font-size: 16px; }
.composer textarea::placeholder { color: var(--faint); }
.composer textarea:focus-visible { outline: none; }
.composer textarea:disabled { background: transparent; color: var(--faint); }
.composer .icon-btn { height: 40px; min-width: 40px; padding: 0; border-radius: 50%; color: var(--muted); }
.send { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background-color 160ms var(--ease), opacity 160ms var(--ease); }
.send:hover { background: var(--accent-hover); }
.send:disabled { opacity: .3; }
.composer-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding: 0 6px; font-size: 13px; color: var(--faint); min-height: 20px; }
/* 建议气泡（2026-10-23 晚）：输入条上方两三个可点的开头与建议；模型给的、已有的候选带小字「建议」 */
.suggest-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 4px 8px; }
.suggest-bar[hidden] { display: none; }
.sg-bubble { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 12px; border: 0; border-radius: var(--r-pill);
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); color: var(--ink-2); font-size: 13.5px; line-height: 1.4;
  text-align: left; cursor: pointer; transition: box-shadow 160ms var(--ease), color 160ms var(--ease); }
.sg-bubble:hover, .sg-bubble:focus-visible { box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-1); color: var(--ink); }
.sg-bubble .sg-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-label { flex: none; padding: 1px 6px; border-radius: var(--r-pill); background: var(--violet-soft); color: var(--violet); font-size: 11px; }
.composer-meta .live { color: var(--accent); }
.composer-meta .demo-note { color: var(--faint); }
.file-input { display: none; }
.icon-btn.is-disabled { opacity: .4; pointer-events: none; }

.demo-bar { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: var(--r-pill); background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.demo-bar .icon-btn { height: 32px; min-width: 32px; border-radius: var(--r-pill); }
.demo-state { padding: 0 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
/* ---------------------------------------------------------------- 自动演示（2026-10-23 节奏重做，autoplay.js） */
.bench.is-autoplay { --t-arc: 700ms; }
.bench.is-autoplay .conv { padding-bottom: 42vh; }            /* 让当前卡能停在视窗上三分之一 */
.demo-bar { flex-wrap: wrap; }
.seg.seg-sm { padding: 2px; }
.seg.seg-sm button { padding: 4px 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.demo-jump { height: 32px; border: 0; border-radius: var(--r-pill); background: var(--raised); color: var(--ink-2); font-size: 13px;
  padding: 0 10px; box-shadow: inset 0 0 0 1px var(--line); max-width: 11em; }
.conv-head { flex-wrap: wrap; }
.conv-head-right .label { white-space: nowrap; }
.narr { flex-basis: 100%; display: flex; align-items: baseline; gap: 10px; padding: 8px 14px; border-radius: var(--r-md);
  background: rgba(245, 247, 253, .96); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }
.narr[hidden] { display: none; }
.narr-k { flex: none; font-size: 12px; color: var(--muted); }
.narr-t { min-width: 0; text-align: left; animation: rise 320ms var(--ease) both; }
.ap-overlay { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; pointer-events: none;
  animation: fade-in 260ms var(--ease) both; padding: 16px; }
.ap-overlay.is-leaving { animation: fade-out 260ms var(--ease) both; }
.ap-title { background: rgba(251, 252, 255, .88); }
.ap-card { max-width: 560px; padding: 32px 36px; border-radius: var(--r-lg); background: var(--raised); text-align: center;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-12); }
.ap-kicker { font-size: 13px; letter-spacing: .04em; color: var(--violet); }
.ap-head { margin-top: 8px; font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.ap-sub { margin-top: 8px; font-size: 17px; color: var(--ink-2); }
.ap-note { margin-top: 10px; font-size: 13px; color: var(--faint); }
.ap-caption { align-items: flex-start; padding-top: 34vh; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink);
  text-shadow: 0 1px 0 #fff; background: radial-gradient(ellipse at 50% 36%, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 62%); }
.ap-caption > .ap-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--st); margin: 11px 12px 0 0; flex: none; }
/* 播放中候选区照样能点：一点就接管（bench.js grab）；输入条只读，点一下也接管 */
.composer textarea.is-demo-input { cursor: pointer; }
.demo-bar.is-done { gap: 6px; padding: 3px 4px 3px 3px; }
.demo-bar.is-done .btn-sm { min-height: 32px; }
.new-thing { white-space: nowrap; }
.option.is-hover { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow-1); background: var(--accent-soft); }
.chip.is-hover, .quote.is-hover { box-shadow: inset 0 0 0 2px var(--accent); }
.btn.is-pressed, .chip.is-pressed, .toggle.is-pressed, .send.is-pressed { animation: press 220ms var(--ease) both; filter: brightness(.92); }
.composer textarea.is-typing { caret-color: var(--accent); }
.summary { text-align: left; }
.summary .card-kicker { justify-content: center; }
.summary .card-title, .summary > .card-lead { text-align: center; }
.summary .card-lead { margin-left: auto; margin-right: auto; }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch; }
.flow-cell { padding: 10px 12px; border-radius: var(--r-md); background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.flow-arrow { display: flex; align-items: center; color: var(--faint); }
/* 带走的一句话：当事人自己说出的学习点，原样引用、不加评价 */
.takeaway { margin-top: 16px; padding: 14px 18px; border-radius: var(--r-md); background: var(--mint); text-align: center; }
.takeaway-k { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--st-R); }
.takeaway-v { margin-top: 6px; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); }
.takeaway-note { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
/* 思考中卡：写明引擎在做的事，带呼吸动效；回执到了在原位换成引擎卡 */
.engine.is-thinking .thinking { color: var(--ink-2); }
.engine.is-thinking .breath { width: 12px; height: 12px; border-radius: 50%; background: var(--st); flex: none; animation: breath-dot 1.6s ease-in-out infinite; }
.thinking-tag { color: var(--st); }
.thinking-note { margin-top: 6px; font-size: 12.5px; color: var(--faint); }


/* ---------------------------------------------------------------- 体验优化（2026-10-23）：引导气泡、两步回报、降级的一句话 */
.bench { position: relative; }
.ob-bubble { position: fixed; z-index: 46; width: min(320px, calc(100vw - 32px)); padding: 16px 18px 14px; border-radius: var(--r-lg);
  background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-12); animation: rise 260ms var(--ease) both; }
.ob-kicker { display: flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .04em; color: var(--violet); }
.ob-kicker .icon { width: 14px; height: 14px; }
.ob-title { margin-top: 6px; font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.ob-text { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.ob-actions { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ob-arrow { position: absolute; width: 14px; height: 14px; background: var(--raised); transform: rotate(45deg); }
.ob-target { box-shadow: 0 0 0 4px var(--accent-15) !important; border-radius: var(--r-lg); transition: box-shadow 200ms var(--ease); }
/* 桌面：环在左栏顶上 → 气泡在左栏右边，箭头朝左 */
.ob-at-ring { left: calc(var(--rail) + 16px); top: calc(var(--topbar) + 96px); }
.ob-at-ring .ob-arrow { left: -7px; top: 30px; box-shadow: -1px 1px 0 var(--line-2); }
/* 手机：环收成顶上的一排点 → 气泡在它下面，箭头朝上 */
.ob-at-dots { left: 16px; top: calc(var(--topbar) + 58px); }
.ob-at-dots .ob-arrow { left: 30px; top: -7px; box-shadow: -1px -1px 0 var(--line-2); }
/* 输入条 → 气泡在它上面，箭头朝下 */
.ob-at-composer { left: calc(var(--rail) + 40px); bottom: 132px; }
.ob-at-composer .ob-arrow { left: 34px; bottom: -7px; box-shadow: 1px 1px 0 var(--line-2); }
/* 研究入口：桌面是右边那一竖条 → 气泡在它左边，箭头朝右；窄屏是顶栏的「研究」→ 气泡在它下面 */
.ob-at-handle { right: 60px; top: calc(var(--topbar) + 30vh); }
.ob-at-handle .ob-arrow { right: -7px; top: 30px; box-shadow: 1px -1px 0 var(--line-2); }
.ob-at-toolbar { right: 12px; top: calc(var(--topbar) + 10px); }
.ob-at-toolbar .ob-arrow { right: 137px; top: -7px; box-shadow: -1px -1px 0 var(--line-2); }
.ob-bubble:not([class*="ob-at-"]) { left: 50%; top: calc(var(--topbar) + 96px); transform: translateX(-50%); }
.ob-bubble:not([class*="ob-at-"]) .ob-arrow { display: none; }

.light-report .quick .cat-chips { margin-top: 6px; }
.degraded-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.degraded-line .card-hint { margin: 0; }
.degraded-line .card-actions { margin-top: 0; }
.card-hint.said { margin-top: 2px; }

/* 对比剧场：两栏同一个拍子打完之后，差异标签逐个淡入，四行对照随后淡入 */
@keyframes tag-in { from { opacity: 0; transform: translateY(4px) scale(.96); } to { opacity: 1; transform: none; } }
.th-tags.is-in .th-tag { animation: tag-in 420ms var(--ease) both; }
.th-tags.is-in .th-tag:nth-child(2) { animation-delay: 160ms; }
.th-tags.is-in .th-tag:nth-child(3) { animation-delay: 320ms; }
.th-tags.is-in .th-tag:nth-child(4) { animation-delay: 480ms; }
.th-rows.is-in { animation: fade-in 420ms var(--ease) 560ms both; }

/* ---------------------------------------------------------------- 研究抽屉（内部量，只在研究开关打开时挂载） */

.drawer-scrim { position: fixed; inset: var(--topbar) 0 0 0; z-index: 38; background: transparent; pointer-events: none; }
.drawer {
  position: fixed; top: var(--topbar); right: 0; bottom: 0; z-index: 40; width: min(720px, 60vw);
  display: flex; flex-direction: column; background: var(--bg); box-shadow: -1px 0 0 var(--line), var(--shadow-2);
  animation: drawer-in var(--t-drawer) var(--ease) both;
}
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 24px; box-shadow: 0 1px 0 var(--line); }
.drawer-title { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.drawer-title::before { content: "RESEARCH"; display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 750; letter-spacing: .16em; color: var(--violet); }
.drawer-notice { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.drawer-notice .icon { width: 15px; height: 15px; flex: none; color: var(--violet); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px 40px; display: grid; gap: 16px; align-content: start; }
.rd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.rd-block { padding: 18px 20px; border-radius: var(--r-lg); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); min-width: 0; }
.rd-block-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 600; }
.rd-block-title .sub { font-size: 12.5px; font-weight: 400; color: var(--faint); }
.rd-note { margin-top: 2px; font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.rd-stats { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.rd-stat { display: grid; gap: 2px; }
/* v3 第 3 步：人在主导吗 · 有没有在变 */
.mon-rows { display: grid; gap: 10px; }
.mon-row { padding: 10px 12px; border-radius: var(--r-md); background: var(--wash); }
.mon-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mon-name { font-size: 14px; color: var(--ink); }
.mon-val { font-size: 15px; color: var(--ink); white-space: nowrap; }
.mon-row.is-empty .mon-val { color: var(--faint); font-family: inherit; font-size: 13px; }
.mon-detail { margin-top: 2px; font-size: 12.5px; color: var(--ink-2); }
.mon-def { margin-top: 2px; font-size: 12px; color: var(--faint); line-height: 1.5; }
.mon-sub { margin-top: 14px; }
.mon-scroll { overflow-x: auto; max-width: 100%; }
.mon-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.mon-rows.mon-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mon-table td, .mon-table th { white-space: nowrap; }
/* 演示卖点 · AI 适度介入：「人在主导吗」与剧场的四行对照并排（2026-10-23） */
.rd-modes { justify-self: start; }
.sc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 12px; }
.sc-col { min-width: 0; display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: var(--r-md); background: var(--wash); }
.sc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.sc-head .sub { font-size: 12px; font-weight: 400; color: var(--faint); }
.sc-human { display: grid; gap: 10px; }
.mon-rows.mon-compact { gap: 6px; }
.mon-compact .mon-row { padding: 8px 10px; background: var(--raised); }
.mon-compact .mon-name { font-size: 13px; }
.mon-compact .mon-val { font-size: 14px; }
.mon-compact .mon-def { display: none; }
.sc-rows { display: grid; gap: 8px; }
.sc-row { padding: 8px 10px; border-radius: var(--r-sm); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.sc-k { font-size: 13px; font-weight: 600; color: var(--ink); }
.sc-v { margin-top: 3px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.sc-v.is-adr { color: var(--ink); }
.sc-who { display: inline-block; margin-right: 6px; font-size: 11.5px; color: var(--faint); }
.sc-v.is-adr .sc-who { color: var(--violet); }
.sc-col .card-actions { margin-top: 2px; }
.sheet-grab { display: none; }
.mon-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 12.5px; }
.mon-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.mon-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mon-table td:first-child { font-family: inherit; white-space: nowrap; }
.rd-stat .k { font-size: 12.5px; color: var(--muted); }
.rd-stat .v { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.rd-empty { margin-top: 12px; font-size: 13px; color: var(--faint); }
.rd-loading { padding: 32px 0; text-align: center; color: var(--faint); font-size: 13px; }

.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--sans); font-size: 11px; fill: var(--muted); }
.chart .null-label { fill: #b6bdcf; }
.chart .num { font-family: var(--mono); font-size: 10.5px; fill: var(--ink-2); }
.chart .grid { fill: none; stroke: rgba(24, 34, 68, .08); stroke-width: 1; }
.chart .axis { stroke: rgba(24, 34, 68, .12); stroke-width: 1; }
.chart .area { fill: var(--accent-15); stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
.chart .pt { fill: var(--raised); stroke: var(--accent); stroke-width: 1.5; }
.chart .pt-null { fill: var(--raised); stroke: var(--faint); stroke-width: 1; stroke-dasharray: 2 2; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .bar-bg { fill: rgba(24, 34, 68, .05); }
.chart .bar-from { fill: rgba(24, 34, 68, .15); }
.chart .bar-to { fill: var(--st); }
.chart .line { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.st-A { stroke: var(--st-A); } .chart .line.st-D { stroke: var(--st-D); } .chart .line.st-R { stroke: var(--st-R); }
.chart.radar { max-width: 360px; margin: 4px auto 0; }
.radar-tip { margin-top: 8px; min-height: 40px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.radar-tip b { color: var(--ink-2); font-weight: 600; }
.delta-list { margin-top: 12px; display: grid; gap: 10px; }
.delta-row { display: grid; gap: 4px; }
.delta-name { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); }
.delta-name .mono { font-size: 12px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend i { width: 10px; height: 2px; border-radius: 2px; background: var(--st); display: inline-block; }

.tl { margin-top: 12px; display: grid; gap: 2px; }
.tl-item {
  display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; padding: 8px 8px 8px 6px; border: 0; border-radius: 10px;
  background: none; text-align: left; transition: background-color 160ms var(--ease);
}
.tl-item:hover { background: var(--wash); }
.tl-item.is-on { background: var(--accent-soft); }
.tl-dot { width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--st); }
.tl-item.tone-candidate .tl-dot { background: transparent; box-shadow: inset 0 0 0 2px var(--st); }
.tl-item.tone-degraded .tl-dot { background: var(--warn); }
.tl-item.tone-safety .tl-dot { background: var(--danger); }
.tl-item.tone-calc .tl-dot { background: transparent; box-shadow: inset 0 0 0 2px var(--faint); }
.tl-text { font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.tl-id { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); overflow-wrap: anywhere; }
.tl-sep { margin: 10px 0 4px; font-size: 12px; color: var(--faint); }

.src { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; margin-top: 14px; }
.src-fig { align-self: start; border: 0; padding: 0; background: var(--wash); border-radius: var(--r-md); min-height: 120px; display: flex; flex-direction: column; overflow: hidden; cursor: zoom-in; }
.src-fig img { display: block; width: 100%; height: auto; background: #fff; }
.src-fig .cap { padding: 8px 12px; font-size: 12px; color: var(--muted); text-align: left; }
.src-nofig { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--faint); font-size: 13px; cursor: default; }
.src-meta { display: grid; gap: 10px; align-content: start; font-size: 14px; color: var(--ink-2); min-width: 0; }
.src-meta h4 { font-size: 15px; font-weight: 600; color: var(--ink); }
.src-meta .k { font-size: 12.5px; color: var(--muted); }
.src-formula { font-family: var(--mono); font-size: 12.5px; padding: 8px 10px; border-radius: 8px; background: var(--wash); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.src-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--warn-soft); color: var(--warn); font-size: 12px; justify-self: start; }
.src-params { display: grid; gap: 4px; font-size: 13px; }
.src-params .mono { font-size: 12px; }
.src-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.yaml { margin: 12px 0 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink-2); white-space: pre; overflow: auto; max-height: 420px; }
.rd-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.rd-fold > summary::-webkit-details-marker { display: none; }
.rd-fold > summary .icon { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.rd-fold[open] > summary .icon { transform: rotate(90deg); }
.rd-fold .seg { margin-top: 12px; flex-wrap: wrap; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(17, 25, 54, .76); display: flex; align-items: center; justify-content: center; padding: 32px; animation: fade-in 200ms var(--ease) both; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 8px; }
.lightbox img { max-height: calc(100vh - 120px); width: auto; max-width: 100%; object-fit: contain; background: #fff; border-radius: 8px; box-shadow: var(--shadow-2); }
.lightbox figcaption { color: rgba(255, 255, 255, .85); font-size: 13px; text-align: center; }
.lightbox .icon-btn { position: absolute; top: 16px; right: 16px; color: #fff; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------------------------------------------------------------- 弹层：剧场、设置 */

.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(17, 25, 54, .4); display: flex; align-items: flex-start; justify-content: center; padding: 72px 24px 24px; overflow-y: auto; animation: fade-in 200ms var(--ease) both; }
.modal { position: relative; width: min(1040px, 100%); border-radius: 24px; background: var(--bg); box-shadow: 0 30px 90px rgba(9, 19, 53, .22); animation: rise 260ms var(--ease) both; }
.modal-sm { width: min(640px, 100%); }
.modal-head { display: flex; align-items: flex-start; gap: 16px; padding: 24px 28px 8px; }
.modal-title { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.modal-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.modal-head .grow { flex: 1; min-width: 0; }
.modal-body { padding: 16px 28px 28px; display: grid; gap: 16px; }

.th-event { padding: 12px 16px; border-radius: var(--r-md); background: var(--visitor); font-size: 15px; color: var(--visitor-ink); }
.th-event .k { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.th-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.th-col { position: relative; padding: 20px 22px; border-radius: var(--r-lg); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.th-col.is-engine::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.th-col-head { display: grid; gap: 2px; }
.th-col-title { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.th-col-setup { font-size: 12.5px; color: var(--faint); }
.th-text { font-size: 15px; line-height: 1.7; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.th-text.is-notice { color: var(--muted); }
.th-text .stage-k { color: var(--muted); font-size: 13px; margin-right: 6px; }
.th-text p + p { margin-top: 8px; }
.th-text.caret::after, .th-text .caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--accent); animation: blink 1s steps(2, start) infinite; }
.modal-body-tail { display: grid; gap: 16px; }
.th-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; }
.th-tag { padding: 3px 10px; border-radius: var(--r-pill); font-size: 12.5px; background: var(--wash); color: var(--muted); animation: rise 220ms var(--ease) both; }
.th-tag.good { background: var(--accent-soft); color: var(--accent); }
.th-tag.warn { background: var(--danger-soft); color: var(--danger); }
.th-rows { border-radius: var(--r-lg); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); overflow: hidden; animation: rise 260ms var(--ease) both; }
.th-row { display: grid; grid-template-columns: 9em minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 12px 20px; font-size: 14px; }
.th-row + .th-row { box-shadow: 0 -1px 0 var(--line); }
.th-row .k { color: var(--muted); }
.th-row.head { font-size: 12.5px; color: var(--faint); background: var(--wash); }
.th-foot { font-size: 12.5px; color: var(--faint); display: grid; gap: 4px; }

.set-sec { padding: 18px 20px; border-radius: var(--r-lg); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); display: grid; gap: 12px; }
.set-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.set-note { font-size: 13px; color: var(--muted); line-height: 1.55; }
.set-rows { display: grid; gap: 10px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.set-row .k { font-size: 14px; color: var(--ink-2); }
.set-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.set-confirm { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); background: var(--danger-soft); font-size: 14px; color: var(--danger); }
.set-internal { padding: 12px 14px; border-radius: var(--r-md); background: var(--violet-soft); font-size: 13px; color: var(--ink-2); display: grid; gap: 6px; }
.set-msg { font-size: 13px; color: var(--accent); }
.set-msg.is-error { color: var(--danger); }

/* ---------------------------------------------------------------- 架构图 */

.atlas { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 40px 32px 24px; }
.atlas-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.atlas-title { font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: -.025em; }
.atlas-en { margin-top: 4px; font-size: 12px; font-weight: 750; color: #566ab2; letter-spacing: .16em; text-transform: uppercase; }
.atlas-lead { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 46em; }
.atlas-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.atlas-legend span { display: inline-flex; align-items: center; gap: 6px; }
.atlas-main { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.map { padding: 16px; border-radius: 24px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), 0 18px 50px rgba(50, 63, 120, .06); }
.map svg { display: block; width: 100%; height: auto; }
.map text { font-family: var(--sans); }
.ly-box { fill: var(--wash); stroke: var(--line); stroke-width: 1; }
.ly-name { font-family: var(--serif); font-size: 15px; font-weight: 600; fill: var(--ink); }
.ly-en { font-size: 10.5px; fill: var(--faint); }
.mod { cursor: pointer; outline: none; }
.mod-box { fill: var(--raised); stroke: #dbe1ef; stroke-width: 1; transition: fill 160ms var(--ease), stroke 160ms var(--ease); }
.mod:hover .mod-box, .mod:focus-visible .mod-box { stroke: var(--accent); stroke-width: 1.5; }
.mod.is-on .mod-box { fill: #eef2ff; stroke: var(--accent); stroke-width: 2; }
.mod-name { font-size: 13px; font-weight: 600; fill: var(--ink); }
.mod-en { font-size: 10px; fill: var(--faint); }
.mod-dot.done { fill: var(--blue); } .mod-dot.preview { fill: var(--violet); } .mod-dot.placeholder { fill: #b6bdcf; }
.mod.is-placeholder .mod-box { fill: rgba(255, 255, 255, .6); stroke-dasharray: 4 3; }
.mod.is-placeholder .mod-name { fill: var(--muted); }
.stage-node .mod-box { stroke: var(--st); stroke-width: 1.25; }
.stage-node .mod-letter { font-family: var(--serif); font-size: 15px; font-weight: 600; fill: var(--st); }
.core-node .mod-box { fill: var(--primary); stroke: none; }
.core-node .mod-name { fill: #fff; font-family: var(--serif); font-size: 16px; }
.core-node .mod-en, .core-node .mod-sub { fill: rgba(255, 255, 255, .75); font-size: 10.5px; }
.core-node.is-on .mod-box, .core-node:hover .mod-box { fill: var(--primary-hover); }
.flow { fill: none; stroke: rgba(24, 34, 68, .22); stroke-width: 1.25; }
.flow-loop { fill: none; stroke: rgba(24, 34, 68, .16); stroke-width: 1.25; stroke-dasharray: 3 4; }
.user-col .mod-name { font-size: 13px; }
.panel { position: sticky; top: calc(var(--topbar) + 16px); padding: 22px 22px 20px; border-radius: 22px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); max-height: calc(100vh - var(--topbar) - 32px); overflow-y: auto; }
.panel-empty { color: var(--muted); font-size: 14px; display: grid; gap: 10px; }
.panel-kicker { font-size: 12.5px; color: var(--faint); }
.panel-title { margin-top: 4px; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.panel-en { font-size: 12.5px; color: var(--faint); }
.panel-status { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.panel-text { margin-top: 12px; font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.panel-sec { margin-top: 18px; }
.panel-sec-title { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.panel-parts { display: grid; gap: 8px; }
.panel-part { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; font-size: 14px; color: var(--ink-2); }
.panel-part .dot { margin-top: 7px; }
.panel-part .note { display: block; font-size: 12.5px; color: var(--faint); }
.panel-lines { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.panel-lines li { padding-left: 14px; position: relative; }
.panel-lines li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.panel-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.panel-live { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.panel-live .k { font-size: 12.5px; color: var(--muted); }
.panel-research { margin-top: 16px; }
.inspector {
  position: fixed; z-index: 30; top: calc(var(--topbar) + 16px); right: 24px; width: min(400px, calc(100vw - 48px));
  max-height: calc(100vh - var(--topbar) - 32px); animation: drawer-in var(--t-drawer) var(--ease) both;
}
.inspector.dock-left { right: auto; left: 24px; animation-name: fade-in; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -6px -6px 0 0; }
.mod-mini .mod-name { font-size: 11px; font-weight: 500; }
.mod-mini .mod-dot { r: 2.5; }
.atlas-stack { display: none; }
.stack-layer { padding: 16px; border-radius: var(--r-lg); background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.stack-layer + .stack-layer { margin-top: 12px; }
.stack-name { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.stack-name .en { font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--faint); margin-left: 6px; }
.stack-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stack-mod { position: relative; display: grid; gap: 2px; padding: 10px 26px 10px 12px; border: 0; border-radius: 12px; background: var(--raised); text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.stack-mod.is-on { box-shadow: inset 0 0 0 1.5px var(--accent); }
.stack-mod .n { font-size: 14px; font-weight: 600; }
.stack-mod .e { font-size: 11.5px; color: var(--faint); }
.stack-mod .dot { position: absolute; right: 10px; top: 14px; }
.atlas-notes { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.atlas-note { padding: 18px 20px; border-radius: var(--r-lg); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }
.atlas-note h3 { font-size: 15px; margin-bottom: 8px; }

/* ---------------------------------------------------------------- 入口页（甲方 AINEM 站点的版式与视觉；文案是我们自己的） */

.lp { min-height: 100vh; background: var(--bg); color: var(--ink); }
.lp-wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.topbar.lp-nav { position: relative; z-index: 4; height: 78px; border-bottom: 1px solid rgba(229, 233, 244, .8); background: var(--bg); }
.lp-nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.lp-nav .brand-logo { height: 50px; }
.lp-links { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.lp-links a { color: #48536e; }
.lp-links a:hover { color: var(--blue); }
.lp-nav-right { display: flex; align-items: center; gap: 10px; }
.lp-ghost {
  border: 1px solid #dfe4f1; border-radius: var(--r-pill); padding: 8px 14px; background: transparent; color: #566484; font-size: 13px; line-height: 1.2;
  white-space: nowrap; transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.lp-ghost:hover { border-color: #aab5dc; color: #2849a8; }
.lp-navcta { min-height: 42px; padding: 10px 21px; }

.lp-hero {
  padding: 78px 0 66px; overflow-x: clip;
  background: radial-gradient(ellipse at 82% 28%, #eff1ff 0, rgba(248, 249, 255, .35) 33%, transparent 62%), linear-gradient(180deg, #fbfcff, #f8faff);
}
.lp-hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 64px; }
.lp-eyebrow { display: inline-flex; gap: 10px; align-items: center; color: #52659e; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lp-eyebrow::before { content: ""; width: 25px; height: 1px; background: #7888bf; }
.lp-hero h1 {
  margin: 21px 0 19px; max-width: 610px; font-family: var(--serif); font-size: clamp(40px, 4.4vw, 52px); line-height: 1.2;
  letter-spacing: -.035em; font-weight: 600;
}
.lp-hero h1 span { background: linear-gradient(100deg, #2448b8 7%, #8060dc 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { max-width: 520px; color: #626d89; font-size: 18px; line-height: 1.85; }
.lp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 30px; }
.lp-textlink {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none;
  color: #495675; font-size: 14px; font-weight: 650; transition: color 160ms var(--ease);
}
.lp-textlink:hover { color: var(--blue); }
.lp-note { margin-top: 18px; color: #8490aa; font-size: 13px; }

/* 「一次 ADR 成长体验」卡：真入口 */
.lp-demo {
  position: relative; width: 100%; max-width: 490px; margin-left: auto; padding: 12px; border: 1px solid #e4e8f4; border-radius: 26px;
  background: rgba(255, 255, 255, .86); box-shadow: 0 25px 75px rgba(46, 59, 118, .12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.lp-demo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 13px 18px; border-bottom: 1px solid #edf0f7; }
.lp-demo-title { font-weight: 700; font-size: 14px; }
.lp-demo-sub { font-size: 12px; color: #8390aa; }
.lp-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border: 1px solid #e2e6f2; border-radius: 99px;
  background: #fafbff; color: #64708e; font-size: 11px; white-space: nowrap; cursor: help;
}
.lp-badge .icon { width: 13px; height: 13px; }
.lp-strip { display: flex; gap: 6px; padding: 17px 13px 2px; }
.lp-strip span { flex: 1; height: 3px; border-radius: 9px; background: var(--st); opacity: .16; }
.lp-strip span.is-now { opacity: 1; }
.lp-stage { display: flex; align-items: center; gap: 8px; padding: 12px 13px 5px; color: #66718b; font-size: 12px; }
.lp-stage .dot { width: 6px; height: 6px; }
.lp-chat { min-height: 214px; padding: 7px 13px 13px; display: flex; flex-direction: column; gap: 13px; }
.lp-bubble { max-width: 92%; padding: 12px 14px; border-radius: 16px; border-top-left-radius: 5px; background: #f2f4fb; color: #2e3858; font-size: 14px; line-height: 1.7; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chip {
  padding: 7px 12px; border: 1px solid #dce3f5; border-radius: 99px; background: #fff; color: #52618b; font-size: 12.5px; line-height: 1.4; text-align: left;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.lp-chip:hover { border-color: #8b9ce0; color: #2b48a5; }
.lp-inputrow { display: flex; gap: 8px; padding: 12px 9px 5px; border-top: 1px solid #edf0f7; }
.lp-input { flex: 1; min-width: 0; padding: 10px 9px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.lp-input::placeholder { color: #9aa4ba; }
.lp-send {
  width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%;
  background: var(--blue); color: #fff; transition: background-color 160ms var(--ease);
}
.lp-send:hover { background: var(--accent-hover); }
.lp-card-status { padding: 4px 13px 0; color: var(--danger); font-size: 12.5px; }
.lp-card-status:empty { display: none; }
.lp-demo-foot { padding: 6px 13px 9px; color: #8993a8; font-size: 11.5px; line-height: 1.6; }
.lp-orbit { position: absolute; width: 90px; height: 90px; right: -25px; top: -31px; border: 1px solid rgba(97, 106, 181, .24); border-radius: 50%; pointer-events: none; }
.lp-orbit::before, .lp-orbit::after { content: ""; position: absolute; inset: 14px -5px; border: 1px solid rgba(123, 91, 202, .32); border-radius: 50%; transform: rotate(48deg); }
.lp-orbit::after { inset: -4px 18px; border-color: rgba(53, 87, 183, .29); transform: rotate(-34deg); }

.lp-trust { border-top: 1px solid #ebeff7; border-bottom: 1px solid #ebeff7; background: #fff; }
.lp-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px 0; }
.lp-trust-item { display: flex; align-items: center; justify-content: center; gap: 11px; color: #66718b; font-size: 13px; }
.lp-trust-item + .lp-trust-item { border-left: 1px solid #edf0f6; }
.lp-trust-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #dfe5f4; border-radius: 9px; color: #5269bd; }

.lp-section { padding: 88px 0; }
.lp-soft { background: var(--wash); }
.lp-head { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.lp-kicker { color: #566ab2; font-size: 12px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.lp-section h2 { margin: 12px 0; font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.28; letter-spacing: -.025em; }
.lp-head p { color: var(--muted); font-size: 16px; }

.lp-cycle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.lp-cycle-card {
  position: relative; min-height: 219px; padding: 24px 24px 22px; border: 1px solid #e7eaf3; border-top: 3px solid var(--st); border-radius: 20px;
  background: #fff; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.lp-cycle-card:hover { transform: translateY(-3px); box-shadow: 0 15px 38px rgba(33, 53, 120, .08); }
.lp-letter { color: #7e8aaa; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.lp-cycle-card h3 { margin: 14px 0 4px; font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--st); }
.lp-cycle-sub { color: #8590a9; font-size: 12.5px; letter-spacing: .06em; }
.lp-cycle-text { max-width: 300px; margin-top: 13px; color: #626e89; font-size: 14px; line-height: 1.7; }
.lp-cycle-bottom { margin-top: 27px; text-align: center; color: #53617f; font-size: 14px; }
.lp-loopline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 13px; margin-top: 10px; font-weight: 700; letter-spacing: .03em; }
.lp-loopline span { color: var(--st); }
.lp-loopline small { color: #98a1b6; font-weight: 400; }

.lp-flow-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 55px; align-items: center; }
.lp-flow-copy h2 { font-size: clamp(32px, 3.8vw, 46px); line-height: 1.25; margin: 12px 0 17px; }
.lp-flow-copy > p { max-width: 460px; color: var(--muted); }
.lp-checks { margin-top: 26px; display: grid; gap: 13px; }
.lp-checks li { display: flex; align-items: center; gap: 12px; color: #4f5c7b; font-size: 14px; }
.lp-check { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #e8edff; color: #3c58b8; }
.lp-check .icon { width: 13px; height: 13px; stroke-width: 2.2; }
.lp-flow-card { padding: 28px; border: 1px solid #e4e8f2; border-radius: 24px; background: #fff; box-shadow: 0 18px 50px rgba(50, 63, 120, .06); }
.lp-flow-row { display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: start; padding: 14px 0; }
.lp-flow-row + .lp-flow-row { border-top: 1px solid #eff1f7; }
.lp-flow-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #dfe5f3; border-radius: 13px; color: #4760b5; }
.lp-flow-row h3 { margin: 0 0 4px; font-size: 16px; }
.lp-flow-row p { color: #77829a; font-size: 13px; line-height: 1.65; }

.lp-scenarios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lp-scenario {
  display: flex; flex-direction: column; gap: 6px; min-height: 214px; padding: 22px 19px 18px; border: 1px solid #e5e9f3; border-radius: 18px;
  background: #fff; color: var(--ink); text-align: left; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.lp-scenario:hover { transform: translateY(-3px); border-color: #cfd7ee; box-shadow: 0 15px 38px rgba(33, 53, 120, .08); }
.lp-scenario-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #f0f2ff; color: #475db4; }
.lp-scenario-title { margin-top: 10px; font-size: 16px; font-weight: 700; }
.lp-scenario-text { color: #758099; font-size: 13px; line-height: 1.65; }
.lp-scenario-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lp-tag { padding: 2px 9px; border-radius: 99px; background: var(--wash); color: #64708e; font-size: 11.5px; }
.lp-go { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: 12.5px; font-weight: 600; }
.lp-more { margin-top: 18px; text-align: center; }

.lp-promise { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lp-promise-card { padding: 25px; border: 1px solid #e3e8f2; border-radius: 19px; background: #fff; }
.lp-promise-card h3 { margin: 0 0 9px; font-size: 17px; }
.lp-promise-card p { color: #69758e; font-size: 14px; line-height: 1.75; }
.lp-promise-card strong { color: #2f468f; }

.lp-cta-wrap { padding: 0 0 70px; }
.lp-cta {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; padding: 45px 48px; border-radius: 26px;
  background: linear-gradient(115deg, #18264f, #253c80 55%, #5d4c9c); color: #fff;
}
.lp-cta::after {
  content: ""; position: absolute; right: 22%; top: -120px; width: 250px; height: 250px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, .035), 0 0 0 48px rgba(255, 255, 255, .025); pointer-events: none;
}
.lp-cta h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: -.02em; }
.lp-cta p { color: #d2d9f2; font-size: 14px; }
.lp-cta-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border: 0; border-radius: 999px;
  background: #fff; color: #25396e; font-weight: 700; white-space: nowrap; transition: background-color 160ms var(--ease);
}
.lp-cta-btn:hover { background: #eef2ff; }

/* 页脚（入口页与架构图页共用） */
.lp-footer { padding: 33px 0 28px; color: #78839c; font-size: 12px; background: var(--bg); }
.lp-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid #e8ebf3; }
.brand-logo.is-footer { height: 42px; }
.lp-foot-links { display: flex; flex-wrap: wrap; gap: 13px 21px; }
.lp-foot-links a, .lp-foot-btn { padding: 0; border: 0; background: none; color: #78839c; font-size: 12px; }
.lp-foot-links a:hover, .lp-foot-btn:hover { color: var(--blue); }
.lp-footer-bottom { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; padding-top: 16px; }
.lp-footer-note { margin-top: 10px; color: #98a1b6; line-height: 1.6; }

@media (max-width: 900px) {
  .lp-hero { padding-top: 58px; }
  .lp-hero-grid { gap: 34px; }
  .lp-links { gap: 19px; }
  .lp-demo { max-width: 450px; }
  .lp-scenarios { grid-template-columns: repeat(2, 1fr); }
  .lp-flow-grid { gap: 32px; }
}
@media (max-width: 760px) {
  .lp-wrap { width: min(100% - 32px, 560px); }
  .topbar.lp-nav { height: 64px; }
  .lp-nav .brand-logo { height: 38px; }
  .lp-links { display: none; }
  .lp-hero { padding: 44px 0 40px; }
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .lp-hero h1 { font-size: 38px; }
  .lp-lead { font-size: 16px; }
  .lp-demo { max-width: 520px; margin: 0 auto; }
  .lp-orbit { right: -9px; }
  .lp-trust-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 17px 0; }
  .lp-trust-item { justify-content: flex-start; padding: 0 9px; }
  .lp-trust-item + .lp-trust-item { border: 0; }
  .lp-section { padding: 64px 0; }
  .lp-head { margin-bottom: 27px; }
  .lp-cycle { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .lp-cycle-card { min-height: 0; padding: 21px; }
  .lp-cycle-text { max-width: none; }
  .lp-flow-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lp-flow-card { padding: 20px; }
  .lp-scenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lp-scenario { min-height: 0; padding: 17px 14px; }
  .lp-promise { grid-template-columns: minmax(0, 1fr); }
  .lp-cta { display: block; padding: 32px 24px; }
  .lp-cta h2 { font-size: 28px; }
  .lp-cta-btn { margin-top: 22px; }
  .lp-footer-top { flex-direction: column; align-items: flex-start; }
  .lp-footer-bottom { flex-direction: column; }
}
@media (max-width: 420px) {
  .lp-nav .brand-logo { height: 32px; }
  .lp-nav-right { gap: 6px; }
  .lp-ghost { padding: 7px 10px; }
  .lp-navcta { min-height: 36px; padding: 8px 14px; font-size: 14px; }
  .lp-hero h1 { font-size: 34px; }
  .lp-scenarios { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- 互动短剧（2026-11-08）：AINEM《下一集，由你决定》小酒馆式固定场景舞台
   2026-11-09 回合制舞台重构（负责人实机反馈：人物和场景脱节、台词和人物割裂）：
   - 剧场 .drama-theatre 是一张共享网格。列：边距 / 林夏 / 中间景深 / 陈默 / 边距；行：场景签与旁白 / 人物 / 回合对话框 /
     控制条 / 面板。舞台（底图、光影、人物）与互动坞（回合框、控制条、各拍面板）都用 subgrid 继承这套行列，
     所以人物正下方就是他自己的回合框：说话的一侧亮起，另一侧留着上一回合的余音，左右一来一回；
   - 立绘是透明通道半身像：不套卡片框，下沿羽化进回合框与前景光雾；按场景给贴合轮廓的 drop-shadow 环境受光与色温；
     说话的人上前一步、泛环节色轮廓光，倾听的人退入暗部半步；
   - 这一页把全站令牌换成深暖剧场夜色（通用按钮、胶囊、输入框、开关随之变成暗底暖字），各拍面板与弹层都是暖夜毛玻璃。
   视觉状态全部是类名切换（CSP 不允许内联 style）；用户层没有数字、没有计量条。 */

.public-drama, .app.view-drama {
  --lamp: #f0c48a;
  --lamp-strong: #e6a95e;
  --lamp-soft: rgba(240, 196, 138, .16);
  --cast-a: #b4613b;
  --cast-b: #33669b;
  --cast-a-edge: rgba(240, 176, 136, .66);
  --cast-b-edge: rgba(166, 198, 240, .6);
  --cast-a-glow: rgba(236, 148, 98, .34);
  --cast-b-glow: rgba(120, 166, 230, .32);
  color: #e9ecf8;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(150, 100, 190, .22), rgba(150, 100, 190, 0) 70%),
    radial-gradient(900px 480px at 50% 108%, rgba(240, 180, 110, .14), rgba(240, 180, 110, 0) 70%),
    linear-gradient(180deg, #1c1a33 0%, #161427 55%, #110e1d 100%);
}
.drama-host { flex: 1; display: flex; min-width: 0; }
.drama {
  /* 深暖剧场夜色令牌：这一页里的通用按钮、胶囊、输入框、开关与链接随之变成暗底暖字 */
  --ink: #f5efe6;
  --ink-2: #e0d7c9;
  --muted: #c5bfd6;
  --faint: #a29bb3;
  --line: rgba(240, 214, 176, .16);
  --line-2: rgba(240, 214, 176, .3);
  --wash: rgba(255, 244, 228, .06);
  --raised: rgba(255, 244, 228, .07);
  --sunken: rgba(8, 6, 16, .42);
  --accent: #f0c48a;
  --accent-soft: rgba(240, 196, 138, .14);
  --accent-15: rgba(240, 196, 138, .38);
  --blue: #f3d2a2;
  --violet: #cdb6ff;
  --violet-soft: rgba(182, 156, 240, .17);
  --danger: #ff9fac;
  --danger-soft: rgba(255, 112, 132, .14);
  --warn: #f6cb76;
  --warn-soft: rgba(246, 203, 118, .12);
  --ok: #82e3bf;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .24);
  --shadow-2: 0 22px 60px rgba(0, 0, 0, .42);
  --panel-bg: linear-gradient(180deg, rgba(34, 28, 46, .95) 0%, rgba(22, 18, 32, .96) 100%);
  --panel-edge: rgba(240, 196, 138, .26);
  --card: rgba(255, 244, 228, .045);
  --card-hover: rgba(255, 244, 228, .085);
  --card-edge: rgba(240, 214, 176, .17);
  --st-lite: #93abff;
  --st-glow: rgba(147, 171, 255, .42);
  width: min(1240px, 100%); margin: 0 auto; padding: 18px 28px 14px; display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 0;
  color: var(--ink);
}
/* 七个环节色在暗底上的亮色版本：文字、描边与轮廓光用它；实底徽章仍用原色配白字 */
.drama .st-A { --st-lite: #93abff; --st-glow: rgba(147, 171, 255, .42); }
.drama .st-D { --st-lite: #c6a8ff; --st-glow: rgba(198, 168, 255, .42); }
.drama .st-R { --st-lite: #71d9b7; --st-glow: rgba(113, 217, 183, .38); }
.drama .st-C { --st-lite: #a9abff; --st-glow: rgba(169, 171, 255, .42); }
.drama .st-B { --st-lite: #93abf4; --st-glow: rgba(147, 171, 244, .42); }
.drama .st-O { --st-lite: #bcc6e0; --st-glow: rgba(188, 198, 224, .36); }
.drama .st-F { --st-lite: #a8b6e8; --st-glow: rgba(168, 182, 232, .4); }
.drama ::selection { background: rgba(240, 196, 138, .32); }
.drama :focus-visible { outline-color: #f0c48a; }

/* 剧目栏：剧名与故事、工具胶囊；下面一行是七集航标 */
.drama-head { display: grid; gap: 10px; }
.drama-head-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
.drama-brand { flex: 1 1 280px; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.drama-mark { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--lamp); }
.drama-story { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.drama-story-title { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.01em; color: #fff; overflow-wrap: anywhere; }
.drama-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 0; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06); color: #d8d2e6; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.drama-switch:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .6); }
.drama-privacy-note {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 11px; border-radius: var(--r-pill);
  background: var(--lamp-soft); color: #f8dcae; font-size: 12.5px; font-weight: 650; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .45);
}
.drama-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.drama-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 13px; border: 0; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .05); color: #d8d2e6; font-size: 13.5px; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: background-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.drama-tool:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.drama-tool.is-on { background: var(--lamp-soft); color: #f9ddb0; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .55); }
.drama-tool.is-unsupported { opacity: .45; cursor: not-allowed; }
.drama-nav {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; padding: 8px 14px;
  border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.drama-ep { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; font-size: 14px; color: #e6e1ee; }
.drama-ep .dot { box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.drama-ep-label { font-weight: 650; }
.drama-ep-title { font-family: var(--serif); color: #f6e7cf; }
.drama-dots { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.drama-dots-group { display: inline-flex; align-items: center; gap: 7px; }
.drama-dots-cycle { margin-right: 2px; font-size: 12px; color: rgba(230, 225, 238, .62); }
.drama-dot {
  display: inline-flex; align-items: center; justify-content: center; min-width: 12px; height: 12px; padding: 0; border: 0; border-radius: var(--r-pill);
  background: var(--st); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); opacity: .9;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), opacity 200ms var(--ease);
}
button.drama-dot:not(:disabled):hover { transform: scale(1.25); box-shadow: 0 0 0 3px rgba(240, 196, 138, .55); }
.drama-dot:disabled { cursor: default; }
.drama-dot.is-current { height: 22px; padding: 0 10px; opacity: 1; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 18px var(--st-lite); }
.drama-dot-name { color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.drama-dot.is-locked { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); opacity: .7; }

/* 剧场：一张共享网格（缺省是收矮的舞台 + 下沿浮起的面板；对话拍是一整屏的回合制舞台） */
.drama-theatre {
  --gut: 22px;
  --mid: clamp(96px, 12%, 210px);
  --top-h: 54px;
  --cast-min: clamp(170px, calc(100vh - 690px), 270px);
  --turn-min: 0px;
  --tuck: 26px;
  --lift: 40px;
  /* 场景光影（缺省街角小酒馆）：人物色温、轮廓受光、说话人身后的暖光；前景的顶部灯晕、中段空气、吧台柔影 */
  --char-tone: sepia(.12) saturate(1.06) hue-rotate(-4deg);
  --rim: rgba(255, 186, 112, .72);
  --spot: rgba(255, 176, 98, .3);
  --haze-top: rgba(255, 186, 112, .2);
  --haze-mist: rgba(255, 200, 150, .035);
  --haze-floor-soft: rgba(38, 18, 10, .34);
  --haze-floor: rgba(18, 10, 8, .84);
  position: relative; display: grid; min-width: 0;
  grid-template-columns: [full-start] var(--gut) [a-start] minmax(0, 1fr) [a-end mid-start] var(--mid) [mid-end b-start] minmax(0, 1fr) [b-end] var(--gut) [full-end];
  grid-template-rows: [stage-start top-start] minmax(var(--top-h), auto) [top-end cast-start] minmax(var(--cast-min), 1fr)
                      [cast-end turn-start] minmax(var(--turn-min), auto) [turn-end hud-start] auto [hud-end stage-end panel-start] auto [panel-end];
}
.drama[data-beat="dialogue"] .drama-theatre {
  --top-h: 84px; --cast-min: 220px; --turn-min: 158px;
  min-height: clamp(540px, calc(100vh - 262px), 720px);
}
.drama[data-beat="question"] .drama-theatre { --cast-min: clamp(190px, calc(100vh - 650px), 300px); --lift: 0px; }
/* 茶水间露台：傍晚霞光与城市暮色；深夜客厅：暖黄落地灯；雨后长椅：清冷路灯与雾气 */
.drama-theatre[data-scene="pantry"] {
  --char-tone: sepia(.06) saturate(1.04) hue-rotate(-8deg); --rim: rgba(255, 198, 152, .68); --spot: rgba(255, 186, 150, .26);
  --haze-top: rgba(196, 164, 255, .15); --haze-mist: rgba(255, 220, 200, .04); --haze-floor-soft: rgba(22, 18, 42, .34); --haze-floor: rgba(13, 11, 27, .86);
}
.drama-theatre[data-scene="living"] {
  --char-tone: sepia(.15) saturate(1.02) hue-rotate(-2deg); --rim: rgba(255, 214, 140, .74); --spot: rgba(255, 208, 136, .3);
  --haze-top: rgba(255, 214, 150, .14); --haze-mist: rgba(255, 220, 160, .03); --haze-floor-soft: rgba(30, 20, 12, .34); --haze-floor: rgba(16, 12, 10, .86);
}
.drama-theatre[data-scene="office"] {
  --char-tone: saturate(.91) hue-rotate(-6deg); --rim: rgba(158, 228, 235, .68); --spot: rgba(93, 187, 193, .24);
  --haze-top: rgba(241, 181, 104, .16); --haze-mist: rgba(132, 212, 224, .08);
  --haze-floor-soft: rgba(14, 27, 43, .38); --haze-floor: rgba(9, 16, 28, .84);
}
.drama-backdrop[data-scene="office"], .drama-scene-card[data-scene="office"] .drama-scene-thumb, .lp-drama-scene[data-scene="office"] .lp-drama-thumb {
  background: radial-gradient(ellipse at 32% 50%, rgba(117, 222, 213, .45), transparent 50%), linear-gradient(135deg, #21384b, #2d252c);
}
.drama-theatre[data-scene="park"] {
  --char-tone: sepia(.02) saturate(.9) hue-rotate(10deg); --rim: rgba(190, 210, 255, .62); --spot: rgba(170, 196, 255, .22);
  --haze-top: rgba(160, 186, 255, .16); --haze-mist: rgba(176, 196, 236, .1); --haze-floor-soft: rgba(10, 20, 30, .36); --haze-floor: rgba(8, 14, 22, .88);
}

/* 固定场景舞台：底图 + 暗角 + 说话人身后的暖光 + 透明立绘 + 前景光雾 + 场景签与旁白 */
.drama-stage {
  grid-column: full; grid-row: stage; position: relative; z-index: 0; isolation: isolate; overflow: hidden; min-width: 0;
  display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid;
  border-radius: 26px; background: #1d1a2b;
  box-shadow: 0 0 0 1px rgba(240, 196, 138, .22), 0 0 0 7px rgba(255, 255, 255, .025), 0 30px 80px rgba(0, 0, 0, .45);
}
.drama-stage.is-compact .drama-haze { opacity: .94; }
.drama-backdrop { position: absolute; inset: 0; z-index: 0; background: linear-gradient(160deg, #4a3226, #1e1720); }
.drama-backdrop[data-scene="tavern"], .drama-scene-card[data-scene="tavern"] .drama-scene-thumb, .lp-drama-scene[data-scene="tavern"] .lp-drama-thumb {
  background: radial-gradient(ellipse at 28% 22%, rgba(240, 170, 96, .55), rgba(240, 170, 96, 0) 55%),
              radial-gradient(ellipse at 74% 40%, rgba(90, 110, 170, .45), rgba(90, 110, 170, 0) 55%), linear-gradient(160deg, #4a3226, #1e1720);
}
.drama-backdrop[data-scene="pantry"], .drama-scene-card[data-scene="pantry"] .drama-scene-thumb, .lp-drama-scene[data-scene="pantry"] .lp-drama-thumb {
  background: radial-gradient(ellipse at 70% 30%, rgba(250, 190, 140, .5), rgba(250, 190, 140, 0) 55%), linear-gradient(160deg, #56648a, #232a40);
}
.drama-backdrop[data-scene="living"], .drama-scene-card[data-scene="living"] .drama-scene-thumb, .lp-drama-scene[data-scene="living"] .lp-drama-thumb {
  background: radial-gradient(ellipse at 30% 30%, rgba(245, 200, 120, .55), rgba(245, 200, 120, 0) 55%), linear-gradient(160deg, #4b3a2a, #1f1a1c);
}
.drama-backdrop[data-scene="park"], .drama-scene-card[data-scene="park"] .drama-scene-thumb, .lp-drama-scene[data-scene="park"] .lp-drama-thumb {
  background: radial-gradient(ellipse at 60% 25%, rgba(250, 210, 140, .4), rgba(250, 210, 140, 0) 50%), linear-gradient(160deg, #2c4a52, #141f2a);
}
.drama-backdrop-img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 46%; opacity: 0; transform: scale(1.04);
  transition: opacity 700ms var(--ease), transform 1600ms var(--ease), filter 460ms var(--ease);
}
.drama-backdrop-img.is-loaded { opacity: 1; transform: none; }
.drama-backdrop-img.is-missing { display: none; }
.drama-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(12, 10, 24, 0) 48%, rgba(12, 10, 24, .5) 100%),
              linear-gradient(180deg, rgba(12, 10, 24, .34) 0%, rgba(12, 10, 24, 0) 22%, rgba(12, 10, 24, 0) 60%, rgba(12, 10, 24, .4) 100%);
}
.drama-stage.is-held .drama-backdrop-img { filter: grayscale(.6) brightness(.55); }
.drama-ambience { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.drama-ambience::before, .drama-ambience::after {
  content: ""; position: absolute; top: 4%; bottom: 0; width: 58%; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(50% 58% at 50% 60%, var(--spot), rgba(0, 0, 0, 0) 74%);
  transition: opacity 620ms var(--ease);
}
.drama-ambience::before { left: -8%; }
.drama-ambience::after { right: -8%; }
.drama-theatre.is-turn-a .drama-ambience::before, .drama-theatre.is-turn-b .drama-ambience::after { opacity: 1; }
.drama-haze {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(64% 40% at 50% -4%, var(--haze-top), rgba(0, 0, 0, 0) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 28%, var(--haze-mist) 52%, rgba(0, 0, 0, 0) 76%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 54%, var(--haze-floor-soft) 76%, var(--haze-floor) 100%);
  transition: opacity 460ms var(--ease);
}

/* 舞台顶部：毛玻璃场景签；对话拍在它旁边放电影旁白条（第一句完整、之后收成一行），下面是上集承接胶囊 */
.drama-topline {
  grid-column: a-start / b-end; grid-row: top; position: relative; z-index: 4; align-self: start; min-width: 0; padding: 14px 0 8px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 6px 12px;
}
.drama-narration { display: contents; }
.drama-scene-tag {
  grid-column: 1; grid-row: 1; justify-self: start; max-width: min(420px, 44vw); padding: 5px 13px; border-radius: var(--r-pill);
  background: rgba(18, 15, 30, .52); color: #f4efe6; font-size: 13px; line-height: 1.45; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
.drama-scene-k { color: var(--lamp); font-weight: 700; }
.drama-hook {
  grid-column: 2; grid-row: 1 / span 2; justify-self: start; display: flex; align-items: flex-start; gap: 8px; min-width: 0; max-width: 860px;
  margin: 0; padding: 6px 14px 7px; border: 0; border-radius: 14px; text-align: left;
  background: linear-gradient(90deg, rgba(14, 11, 24, .68), rgba(14, 11, 24, .44)); color: #efe5d4;
  font-family: var(--serif); font-size: 14px; line-height: 1.6; letter-spacing: .01em;
  box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.drama-hook .icon { flex: none; margin-top: 4px; color: var(--lamp); }
.drama-hook-text { min-width: 0; }
.drama-hook.is-brief {
  cursor: pointer; background: rgba(14, 11, 24, .42); color: rgba(239, 229, 212, .8);
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.drama-hook.is-brief:hover { background: rgba(14, 11, 24, .62); color: #f6eddf; }
.drama-hook.is-brief .drama-hook-text { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.drama-hook.is-brief.is-open { background: rgba(14, 11, 24, .8); color: #f6eddf; }
.drama-hook.is-brief.is-open .drama-hook-text { display: block; overflow: visible; }
.drama-carry { grid-column: 1; grid-row: 2; justify-self: start; position: relative; }
.drama-carry > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, rgba(22, 78, 63, .76), rgba(72, 58, 24, .64)); color: #dcf6ea; font-size: 12.5px; font-weight: 650; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(150, 226, 194, .38), 0 6px 16px rgba(0, 0, 0, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.drama-carry > summary::-webkit-details-marker { display: none; }
.drama-carry > summary .icon { color: #a2e9cb; }
.drama-carry-chev { margin-left: auto; transition: transform 200ms var(--ease); }
.drama-carry[open] .drama-carry-chev { transform: rotate(90deg); }
.drama-carry-list {
  position: absolute; z-index: 8; top: calc(100% + 6px); left: 0; width: min(460px, calc(100vw - 48px)); display: grid; gap: 6px; padding: 10px 14px 12px;
  border-radius: 14px; background: rgba(12, 34, 29, .95); box-shadow: inset 0 0 0 1px rgba(150, 226, 194, .3), 0 18px 40px rgba(0, 0, 0, .45);
}
.drama-carry-list li { display: flex; gap: 8px; color: #e8f8f1; font-size: 13.5px; line-height: 1.6; }
.drama-carry-list .icon { flex: none; margin-top: 3px; color: #86e4c0; }

/* 透明立绘：直接立在场景里——没有底色、外框、圆角裁剪与矩形阴影；下沿羽化，压进回合框与吧台柔影的后方 */
.drama-cast {
  grid-column: full; grid-row: stage; position: relative; z-index: 2; pointer-events: none;
  display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid;
}
.drama-char {
  grid-row: cast; position: relative; min-width: 0; min-height: 0; margin: 0 0 calc(-1 * var(--tuck)); background: none; overflow: visible;
  transform-origin: 50% 100%; transition: transform 520ms var(--ease), opacity 520ms var(--ease);
}
.drama-char.is-a { grid-column: a; }
.drama-char.is-b { grid-column: b; }
.drama-char-img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 74%, rgba(0, 0, 0, .55) 88%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 74%, rgba(0, 0, 0, .55) 88%, rgba(0, 0, 0, 0) 100%);
  /* 三层 drop-shadow 贴着人体轮廓：场景色轮廓受光、环节色微光、落在场景里的影子（各态函数顺序一致，过渡才平滑） */
  filter: var(--char-tone) brightness(.86) saturate(.94) drop-shadow(0 0 0 rgba(0, 0, 0, 0)) drop-shadow(0 0 0 rgba(0, 0, 0, 0))
          drop-shadow(0 16px 26px rgba(8, 6, 14, .5));
  transition: filter 520ms var(--ease);
}
.drama-char.is-speaking, .drama-char.is-asking { z-index: 2; transform: translateY(-6px) scale(1.04); }
.drama-char.is-speaking .drama-char-img, .drama-char.is-asking .drama-char-img {
  filter: var(--char-tone) brightness(1.05) saturate(1.05) drop-shadow(0 0 1.5px var(--rim)) drop-shadow(0 0 20px var(--st-glow))
          drop-shadow(0 20px 30px rgba(8, 6, 14, .55));
}
.drama-char.is-listening { transform: translateY(6px) scale(.95); }
.drama-char.is-listening .drama-char-img {
  filter: var(--char-tone) brightness(.68) saturate(.84) drop-shadow(0 0 0 rgba(0, 0, 0, 0)) drop-shadow(0 0 0 rgba(0, 0, 0, 0))
          drop-shadow(0 14px 28px rgba(8, 7, 16, .65));
}
.drama-char.is-idle { transform: none; }
/* 提问的人：身后一圈呼吸的环节色柔光（圆形渐变，不是方框） */
.drama-char.is-asking::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 4%; width: min(78%, 360px); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, var(--st-glow), rgba(0, 0, 0, 0)); pointer-events: none;
  animation: drama-ask 2.6s ease-in-out infinite;
}
.drama-char.is-swap .drama-char-img { animation: drama-swap 420ms var(--ease) both; }
.drama-char.is-missing .drama-char-img { visibility: hidden; }
.drama-char.is-missing::before {
  content: ""; position: absolute; left: 50%; bottom: var(--tuck); width: min(56%, 220px); height: 82%; transform: translateX(-50%);
  border-radius: 48% 48% 18px 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0));
}
/* 不在对话拍时，人物脚下一枚轻巧的状态铭牌（名字 · 神态）；对话拍与提问拍里名字直接写在回合框的头部 */
.drama-nameplate {
  position: absolute; left: 50%; bottom: calc(var(--tuck) + var(--lift) + 12px); z-index: 1; transform: translateX(-50%);
  display: inline-flex; align-items: baseline; gap: 6px; max-width: calc(100% - 12px); padding: 3px 12px; border-radius: var(--r-pill);
  background: rgba(14, 12, 26, .6); color: #fff; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity 260ms var(--ease);
}
.drama-name { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.drama-mood { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: #f2d4a8; }
.drama-mood:empty { display: none; }
.drama[data-beat="dialogue"] .drama-nameplate, .drama[data-beat="question"] .drama-nameplate { opacity: 0; visibility: hidden; }
.drama-title-card {
  position: absolute; z-index: 6; left: 50%; top: 38%; max-width: calc(100% - 48px); padding: 16px 28px; border-radius: 18px; text-align: center;
  background: rgba(12, 10, 26, .62); color: #fff; pointer-events: none; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(240, 196, 138, .35), 0 20px 50px rgba(0, 0, 0, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: drama-card 2.8s var(--ease) both;
}
.drama-title-k { font-size: 13px; letter-spacing: .12em; color: var(--lamp); }
.drama-title-v { margin-top: 6px; font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -.01em; }

/* 互动坞：叠在舞台之上、继承同一套行列；只有回合框、控制条与面板接收点击，空白处点下去落在舞台上（推进下一句） */
.drama-dock {
  grid-column: full; grid-row: stage-start / panel-end; position: relative; z-index: 5; min-width: 0; pointer-events: none;
  display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; overflow-wrap: anywhere;
}
.drama.is-busy .drama-dock { cursor: progress; }
.drama-dock-body.is-enter { animation: drama-in 380ms var(--ease) both; }
.drama-dialogue, .drama-question {
  grid-column: full; grid-row: stage-start / panel-end; position: relative; min-width: 0; pointer-events: none;
  display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid;
}
.drama-dialogue > *, .drama-question > * { pointer-events: auto; }
.drama-dialogue.is-enter, .drama-question.is-enter { animation: fade-in 260ms var(--ease) both; }
/* 面板：深暖夜色毛玻璃，从舞台下沿浮起（顶上一道暖金细光） */
.drama-panel, .drama-respond {
  position: relative; padding: 20px 26px 18px; border-radius: 22px; background: var(--panel-bg); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--panel-edge), inset 0 1px 0 rgba(255, 255, 255, .05), 0 26px 70px rgba(4, 3, 12, .55);
  backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15);
}
.drama-panel::before, .drama-respond::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(240, 196, 138, 0), rgba(240, 196, 138, .7), rgba(240, 196, 138, 0));
}
.drama-panel { grid-column: full; grid-row: panel; justify-self: center; width: min(960px, calc(100% - 48px)); margin-top: calc(-1 * var(--lift)); pointer-events: auto; }
.drama-respond { grid-column: full; grid-row: panel; justify-self: center; width: min(960px, calc(100% - 48px)); margin-top: 14px; }
.drama-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--lamp); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; }
.drama-lead { margin-top: 6px; color: #e4dccf; font-size: 15px; line-height: 1.75; }
.drama-hint { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.drama-hint .icon { margin-top: 2px; }
.drama-sub-title { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #e9dfcf; font-size: 13px; font-weight: 650; }
.drama-err {
  margin-top: 12px; padding: 8px 12px; border-radius: var(--r-md); background: rgba(255, 112, 132, .12); color: #ffc0c9; font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 140, 156, .3);
}
.drama-actions { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.drama-actions.is-end { justify-content: flex-end; }
.drama-actions-gap { flex: 1; }
.drama-tag {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .07); color: #ddd4c6;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .18);
}
.drama-tag.is-violet { background: rgba(182, 156, 240, .17); color: #d9c8ff; box-shadow: inset 0 0 0 1px rgba(196, 170, 255, .3); }
.drama-tag.is-warm { background: rgba(240, 196, 138, .16); color: #f6d6a6; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .36); }
.drama-tag.is-warn { background: rgba(255, 112, 132, .14); color: #ffb6c1; box-shadow: inset 0 0 0 1px rgba(255, 140, 156, .3); }
.drama-badge {
  display: inline-flex; flex: none; align-items: center; padding: 2px 10px; border-radius: var(--r-pill); color: #fff;
  background: linear-gradient(180deg, #c4724a, #9c5031); font-size: 13px; font-weight: 700; letter-spacing: .06em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 2px 8px rgba(0, 0, 0, .25);
}
.drama-badge.is-b { background: linear-gradient(180deg, #4277ad, #2a5484); }

/* 回合对话框：人物正下方。当前说话人的框亮起（暖木夜色窗、双线描边、指向他的尖角、句末推进标），另一侧是上一回合余音或倾听签 */
.drama-turn { grid-row: turn; align-self: start; justify-self: stretch; position: relative; min-width: 0; margin: 0; }
.drama-turn.is-a { grid-column: a; --turn-edge: var(--cast-a-edge); --turn-glow: var(--cast-a-glow); --turn-ink: #f4c19d; }
.drama-turn.is-b { grid-column: b; --turn-edge: var(--cast-b-edge); --turn-glow: var(--cast-b-glow); --turn-ink: #bcd4f5; }
.drama-turn.is-active {
  z-index: 2; padding: 13px 18px 15px; border-radius: 18px; cursor: pointer; color: #f7f1e6;
  background: linear-gradient(180deg, rgba(31, 25, 40, .9), rgba(19, 15, 27, .9));
  box-shadow: inset 0 0 0 1px var(--turn-edge), inset 0 0 0 4px rgba(19, 15, 27, .55), inset 0 0 0 5px rgba(240, 196, 138, .14),
              0 0 30px var(--turn-glow), 0 22px 48px rgba(4, 3, 10, .55);
  backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15);
}
.drama-turn.is-active::before, .drama-turn.is-active::after {
  content: ""; position: absolute; width: 0; height: 0; border-style: solid; pointer-events: none;
}
.drama-turn.is-active::before { top: -12px; left: calc(50% - 11px); border-width: 0 11px 12px; border-color: transparent transparent var(--turn-edge); }
.drama-turn.is-active::after { top: -10px; left: calc(50% - 10px); border-width: 0 10px 11px; border-color: transparent transparent rgba(31, 25, 40, .96); }
.drama-turn-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.drama-turn-mood { font-size: 12.5px; font-weight: 600; color: var(--turn-ink, #f2d4a8); letter-spacing: .04em; }
.drama-direction { color: #cbbfa9; font-size: 13.5px; font-style: italic; }
.drama-say {
  margin-top: 8px; min-height: calc(3 * 1.72em); color: #f7f1e6; font-family: var(--serif); font-size: 19px; line-height: 1.72; letter-spacing: .01em;
}
.drama-say.is-typing::after {
  content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--turn-edge, var(--lamp));
  animation: blink 1s steps(2, start) infinite;
}
/* 打完一句：句末一枚呼吸的推进小三角（点框、点舞台或按「下一句」继续） */
.drama-turn.is-active .drama-say:not(.is-typing):not(:empty)::after {
  content: ""; display: inline-block; width: 0; height: 0; margin-left: 8px; vertical-align: .05em;
  border-style: solid; border-width: 8px 6px 0; border-color: var(--lamp) transparent transparent;
  animation: drama-cue 1.2s ease-in-out infinite;
}
.drama-turn.is-echo {
  padding: 10px 15px 12px; border-radius: 16px; cursor: pointer; color: rgba(232, 224, 210, .8);
  background: rgba(16, 13, 26, .58); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 30px rgba(0, 0, 0, .3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.drama-turn.is-echo:hover { background: rgba(20, 16, 30, .74); color: #f1e9db; }
.drama-turn.is-echo .drama-badge { opacity: .8; box-shadow: none; }
.drama-turn.is-echo .drama-turn-mood { color: rgba(220, 210, 196, .62); font-weight: 500; }
.drama-turn-text {
  margin-top: 6px; font-family: var(--serif); font-size: 15px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.drama-turn.is-quiet {
  justify-self: center; display: inline-flex; align-items: baseline; gap: 6px; margin-top: 14px; padding: 5px 13px; border-radius: var(--r-pill);
  background: rgba(14, 12, 24, .5); color: rgba(232, 224, 210, .82); font-size: 12.5px; letter-spacing: .03em; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.drama-turn.is-quiet .drama-turn-mood { color: rgba(232, 224, 210, .72); font-weight: 500; }
.drama-turn-name { font-weight: 700; color: #fff; }
.drama-turn.is-new { animation: drama-turn-up 340ms var(--ease) both; }
.drama-turn.is-settle { animation: drama-turn-settle 480ms var(--ease) both; }

/* 舞台底沿的控制条：左边上一句 / 本集台词单 / 自动播放，右边暖金主按钮 */
.drama-controls {
  grid-column: a-start / b-end; grid-row: hud; z-index: 3; align-self: end; min-width: 0; margin: 12px 0 14px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 6px 8px 6px 10px;
  border-radius: 16px; background: rgba(14, 11, 22, .66);
  box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .16), 0 14px 34px rgba(0, 0, 0, .35);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
}
.drama-controls-side { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.drama-controls .btn-quiet { position: relative; color: #e7dfd2; }
.drama-controls .btn-quiet:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.drama-controls .btn-quiet.is-on { background: rgba(240, 196, 138, .16); color: #f6d6a6; }
.drama-auto {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 13px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: #e7dfd2; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .26);
  transition: background-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.drama-auto:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .5); }
.drama-auto.is-on { background: rgba(240, 196, 138, .16); color: #f6d6a6; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .5); }
.drama-next { min-width: 128px; }
.drama-next.is-ready { animation: drama-ready 2s ease-in-out infinite; }
/* 本集台词单：舞台里展开的回看层（林夏靠左、陈默靠右） */
.drama-script {
  position: absolute; grid-column: a-start / b-end; grid-row: cast-start / turn-end; inset: auto 0 8px; z-index: 6; max-height: calc(100% - 16px);
  display: flex; flex-direction: column; min-height: 0; padding: 12px 16px 14px; border-radius: 18px;
  background: rgba(14, 11, 22, .9); box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .2), 0 24px 60px rgba(0, 0, 0, .55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: drama-in 260ms var(--ease) both;
}
.drama-script-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drama-script-head .drama-sub-title { margin: 0; }
.drama-script-close { height: 30px; min-width: 30px; }
.drama-script ul { margin-top: 8px; display: grid; gap: 10px; min-height: 0; overflow-y: auto; padding-right: 4px; }
.drama-script-line { display: flex; align-items: baseline; gap: 10px; max-width: 86%; color: #d9d0c2; font-size: 14px; line-height: 1.65; }
.drama-script-line.is-b { margin-left: auto; flex-direction: row-reverse; text-align: right; }
.drama-script-line.is-now { color: #fff; }
.drama-script-text { min-width: 0; }
.drama-script .drama-badge { padding: 1px 8px; font-size: 12px; }

/* 提问拍：提问人正下方的提问框（同一种回合框）+ 舞台下沿的「你的回合」：四张回应卡、自由输入 + 语音输入 */
.drama-turn.drama-ask { margin-bottom: 16px; cursor: default; }
.drama-ask-prompt { margin-top: 8px; color: #f7f1e6; font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.6; letter-spacing: -.005em; }
.drama-presets { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.drama-preset, .drama-choice {
  display: grid; align-content: start; gap: 4px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--card); color: var(--ink);
  text-align: left; box-shadow: inset 0 0 0 1px var(--card-edge);
  transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease);
}
.drama-preset:hover, .drama-choice:hover { background: var(--card-hover); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .42); }
.drama-preset.is-picked, .drama-choice.is-picked {
  background: rgba(240, 196, 138, .13); box-shadow: inset 0 0 0 1.5px var(--lamp), 0 0 22px rgba(240, 196, 138, .16);
}
.drama-preset.is-fictional { background: rgba(182, 156, 240, .06); }
.drama-preset.is-fictional.is-picked { background: rgba(182, 156, 240, .16); box-shadow: inset 0 0 0 1.5px #c3a8ff, 0 0 22px rgba(182, 156, 240, .18); }
.drama-preset.is-skip { background: transparent; box-shadow: none; outline: 1.5px dashed rgba(240, 214, 176, .3); outline-offset: -1.5px; }
.drama-preset.is-skip.is-picked { background: rgba(255, 255, 255, .06); outline-color: rgba(240, 214, 176, .7); }
.drama-preset-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drama-preset-label, .drama-choice-title { color: #f7f1e6; font-size: 15px; font-weight: 650; }
.drama-preset-text, .drama-choice-text { color: #c9c2d6; font-size: 13px; line-height: 1.6; }
.drama-own {
  margin-top: 12px; display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 18px; background: rgba(8, 6, 16, .45);
  box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .22); transition: box-shadow 160ms var(--ease);
}
.drama-own:focus-within { box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .7), 0 0 0 4px rgba(240, 196, 138, .12); }
.drama-input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: transparent; color: var(--ink); font-size: 15px; line-height: 1.6; resize: none; }
.drama-input::placeholder { color: #9e97b0; }
.drama-input:focus-visible { outline: none; }
.drama-input:disabled { color: var(--faint); }
.drama-mic { flex: none; color: #d9d0c2; }
.drama-mic.is-on { background: rgba(255, 112, 132, .16); color: #ffb6c1; animation: breathe 1.4s ease-in-out infinite; }
.drama-mic.is-unsupported { opacity: .4; }
.drama-toggle { font-size: 13.5px; }

/* 暗底上的通用部件：主按钮暖金、线框按钮暖描边、胶囊与开关暖色选中 */
.drama .btn-primary {
  background: linear-gradient(180deg, #f6d29c, #e6a95e); color: #2a1a0d;
  box-shadow: 0 8px 22px rgba(232, 168, 92, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.drama .btn-primary:hover { background: linear-gradient(180deg, #f9dcae, #ebb46e); }
.drama .btn-primary:disabled, .drama .btn-primary:disabled:hover {
  opacity: 1; background: rgba(240, 196, 138, .16); color: rgba(246, 226, 196, .58); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .28);
}
.drama .btn-line:hover { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .55); }
.drama .btn-danger { background: #c4414f; color: #fff; }
.drama .btn-danger:hover { background: #d24d5b; }
.drama .chip { background: rgba(255, 255, 255, .05); color: #e6ddcf; box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .22); }
.drama button.chip:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .55); }
.drama .chip.is-on { background: rgba(240, 196, 138, .16); color: #f6d6a6; box-shadow: inset 0 0 0 1.5px var(--lamp); }
.drama .toggle.is-on { color: #f6d6a6; }
.drama .toggle.is-on .box { color: #2a1a0d; }
.drama .input:focus, .drama .textarea:focus { background: rgba(8, 6, 16, .5); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .7), 0 0 0 3px rgba(240, 196, 138, .12); }
.drama .input, .drama .textarea { background: rgba(8, 6, 16, .42); }
.drama .set-confirm { box-shadow: inset 0 0 0 1px rgba(255, 140, 156, .28); }

/* 回映拍：暂定阶段、依据、不确定性；你的确认（需要修正时展开七个阶段）；本集个人微练习 */
.drama-rrows { margin-top: 10px; display: grid; gap: 10px; }
.drama-rrow { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; align-items: baseline; }
.drama-rk { color: #b9b2c9; font-size: 13px; }
.drama-rv { min-width: 0; display: grid; gap: 6px; color: var(--ink); line-height: 1.7; }
.drama-rv.is-soft { color: #ddd4c6; font-size: 14px; }
.drama-stage-badge {
  justify-self: start; display: inline-flex; padding: 2px 12px; border-radius: var(--r-pill); background: var(--st); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; box-shadow: 0 0 0 1px var(--st-lite), 0 0 16px var(--st-glow);
}
.drama-confirm-sec { margin-top: 14px; }
.drama-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.drama-pill { font-weight: 600; }
.drama-revise { margin-top: 10px; display: grid; gap: 8px; }
.drama-stage-pill {
  min-height: 32px; padding: 4px 14px; border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .04); color: var(--st-lite);
  font-size: 14px; font-weight: 650; box-shadow: inset 0 0 0 1.5px var(--st-lite); transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.drama-stage-pill:hover { background: rgba(255, 255, 255, .09); }
.drama-stage-pill.is-on { background: var(--st); color: #fff; box-shadow: inset 0 0 0 1.5px var(--st-lite), 0 0 16px var(--st-glow); }
.drama-practice { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 244, 228, .04); box-shadow: inset 0 0 0 1px var(--card-edge); }
.drama-practice-prompt { margin-bottom: 10px; color: #e0d7c9; font-size: 14px; line-height: 1.65; }
.drama-practice.is-skipped .drama-own { opacity: .55; }
.drama-practice-foot { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.drama-practice-notice { margin-bottom: 8px; }
.drama-suggest .icon { color: var(--lamp); }

/* 共同编剧拍：结尾钩子、三步（焦点 / 场景 / 一句想法）、草稿回执 */
.drama-cw-hook {
  margin-top: 8px; padding: 10px 14px; border-left: 3px solid var(--lamp); border-radius: 0 12px 12px 0; background: rgba(240, 196, 138, .08);
  color: #f4e3c8; font-family: var(--serif); font-size: 16px; line-height: 1.7;
}
.drama-step { margin-top: 14px; }
.drama-focus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.drama-scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.drama-scenes.is-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.drama-scene-card {
  display: grid; align-content: start; gap: 4px; padding: 6px 6px 10px; border: 0; border-radius: 14px; background: var(--card); color: var(--ink);
  text-align: left; box-shadow: inset 0 0 0 1px var(--card-edge); transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.drama-scene-card:hover { background: var(--card-hover); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .42); }
.drama-scene-card.is-picked { background: rgba(240, 196, 138, .13); box-shadow: inset 0 0 0 1.5px var(--lamp), 0 0 22px rgba(240, 196, 138, .16); }
.drama-scene-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; }
.drama-scene-thumb img, .lp-drama-thumb img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.drama-scene-thumb img.is-missing, .lp-drama-thumb img.is-missing { visibility: hidden; }
.drama-scene-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; padding: 0 4px; color: #f5efe6; font-size: 14px; font-weight: 650; }
.drama-scene-amb { padding: 0 4px; color: #bdb6cc; font-size: 12px; }
.drama-receipt-title { margin-top: 8px; color: #fff6ea; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.drama-receipt-scene { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: #c9c2d6; font-size: 13.5px; }
.drama-receipt-hook {
  margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--lamp); border-radius: 0 12px 12px 0; background: rgba(240, 196, 138, .08);
  color: #f4e3c8; font-family: var(--serif); line-height: 1.7;
}
/* 共创回执：「你的哪些输入影响了下一集」——深翡翠暖光底板配浅绿白字 */
.drama-impact {
  margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(26, 92, 74, .44), rgba(16, 62, 50, .5));
  box-shadow: inset 0 0 0 1px rgba(120, 222, 182, .32), 0 0 26px rgba(70, 190, 150, .1);
}
.drama-impact .drama-sub-title { color: #b2f2d8; }
.drama-impact ul { display: grid; gap: 6px; }
.drama-impact li { display: flex; gap: 8px; color: #e4f7ef; font-size: 14px; line-height: 1.6; }
.drama-impact .icon { flex: none; margin-top: 3px; color: #86e4c0; }
.drama-echo { margin-top: 10px; color: #c9c2d6; font-size: 13px; line-height: 1.6; }

/* 安全暂停：同一座剧场里的求助卡——暗红暖光底板、清楚的警示色，正文保持高对比 */
.drama-hold .help {
  padding: 20px 22px 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(76, 28, 38, .62), rgba(40, 16, 26, .72));
  box-shadow: inset 0 0 0 1px rgba(255, 150, 162, .38), 0 0 30px rgba(220, 80, 100, .12);
}
.drama-hold .card-kicker { color: #ffbcc5; font-weight: 700; letter-spacing: .06em; }
.drama-hold .help-title { color: #fff4f0; }
.drama-hold .help-text { color: #f3e6e2; line-height: 1.75; }
.drama-hold .field-label { color: #ead7d6; }
.drama-hold .card-hint.is-warn { color: #ffd38a; }
.drama-hold .card-foot { color: #d8c4c6; }
.drama-hold .textarea { background: rgba(10, 6, 12, .5); }

/* 剧目单（还没有在看的短剧）与续看 */
.drama-picker-title { margin-top: 6px; color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.drama-picker-sub { margin-top: 4px; color: #c9c2d6; font-size: 14px; }
.drama-stories { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.drama-stories.is-stack { margin-top: 0; grid-template-columns: minmax(0, 1fr); }
.drama-story-card {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--card-edge); transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.drama-story-card:hover, .drama-story-card:focus-within {
  background: var(--card-hover); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .45), 0 12px 30px rgba(0, 0, 0, .28);
}
.drama-story-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.drama-story-scene { display: inline-flex; align-items: center; gap: 4px; color: #bdb6cc; font-size: 12px; }
.drama-story-name { color: #fff6ea; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.drama-story-sum { color: #ddd4c6; font-size: 13.5px; line-height: 1.65; }
.drama-story-hook { color: #bdb6cc; font-size: 13px; line-height: 1.6; }
.drama-story-card .btn { align-self: flex-start; margin-top: auto; }
.drama-picker-foot { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.drama-cast-notes { margin-top: 14px; border-radius: var(--r-md); background: rgba(255, 244, 228, .04); box-shadow: inset 0 0 0 1px var(--card-edge); }
.drama-cast-notes > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: #e9dfcf; font-size: 13.5px; font-weight: 650;
}
.drama-cast-notes > summary::-webkit-details-marker { display: none; }
.drama-cast-notes[open] .drama-carry-chev { transform: rotate(90deg); }
.drama-cast-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 12px 12px; }
.drama-cast-note { display: grid; justify-items: start; gap: 4px; color: #ddd4c6; font-size: 13.5px; line-height: 1.6; }
.drama-cast-limit { color: #bdb6cc; font-size: 13px; }
.drama-runs { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.drama-runs ul { display: grid; gap: 8px; }
.drama-run { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 244, 228, .045); }
.drama-run.is-here { background: rgba(240, 196, 138, .12); box-shadow: inset 0 0 0 1.5px rgba(240, 196, 138, .4); }
.drama-run-main { min-width: 0; }
.drama-run-title { color: #fff6ea; font-size: 14.5px; font-weight: 650; }
.drama-run-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: #bdb6cc; font-size: 12.5px; }
.drama-run-here { color: var(--lamp); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.drama-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 0; color: #d9d0c2; }
.drama-loading .dots i { width: 6px; height: 6px; background: var(--lamp); animation: breathe 1.2s ease-in-out infinite; }
.drama-loading .dots i:nth-child(2) { animation-delay: .2s; }
.drama-loading .dots i:nth-child(3) { animation-delay: .4s; }
.drama-foot { color: rgba(223, 218, 236, .52); font-size: 12px; line-height: 1.6; text-align: center; }

/* 弹层：换故事、切换场景、剧集手记（桌面从右侧滑出，手机从底部升起）——同一套深暖夜色 */
.drama-sheet-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; background: rgba(6, 5, 14, .56); animation: fade-in 200ms var(--ease) both; }
.drama-sheet {
  display: flex; flex-direction: column; width: min(480px, 100%); height: 100%; overflow-y: auto; color: var(--ink);
  background: linear-gradient(180deg, #211b2d 0%, #17131f 100%);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .5), inset 1px 0 0 rgba(240, 196, 138, .18); animation: drawer-in var(--t-drawer) var(--ease) both; overflow-wrap: anywhere;
}
.drama-sheet-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 12px;
  background: rgba(33, 27, 45, .96); box-shadow: 0 1px 0 rgba(240, 214, 176, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.drama-sheet-heading { min-width: 0; }
.drama-sheet-title { color: #fff6ea; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.drama-sheet-lead { margin-top: 4px; color: #c9c2d6; font-size: 13.5px; line-height: 1.6; }
.drama-sheet-body { display: grid; align-content: start; gap: 14px; padding: 16px 22px 28px; }
.drama-sheet-body .drama-picker-foot { margin-top: 0; }
.drama-sheet-body .drama-runs { margin-top: 0; }
.drama-notes { display: grid; gap: 12px; }
.drama-note { display: grid; justify-items: start; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-edge); }
.drama-note-title { display: flex; flex-wrap: wrap; gap: 4px 8px; color: #fff6ea; font-size: 14.5px; font-weight: 650; }
.drama-note-ep { color: #c9c2d6; font-family: var(--serif); font-weight: 500; }
.drama-note-rows { display: grid; gap: 6px; width: 100%; }
.drama-note-row { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 8px; font-size: 13.5px; line-height: 1.6; }
.drama-note-k { color: #b9b2c9; }
.drama-note-v { color: var(--ink); }
.drama-empty { padding: 8px 0; color: #c9c2d6; font-size: 14px; }
.drama-sheet-danger { display: grid; justify-items: start; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.drama-confirm { flex-wrap: wrap; }

/* 小提示在短剧页保持水平居中（通用的 rise 动画结束时会把 translateX 覆盖掉；只在这一页换成保留居中的淡入） */
body:has(.app.view-drama) .toast:not(.is-award) { animation-name: drama-toast; }
@keyframes drama-toast { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes drama-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drama-swap { from { opacity: .3; } to { opacity: 1; } }
@keyframes drama-ask { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes drama-cue { 0%, 100% { opacity: .35; transform: translateY(-1px); } 50% { opacity: 1; transform: translateY(2px); } }
@keyframes drama-turn-up { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes drama-turn-settle { from { filter: brightness(1.45); transform: translateY(-3px); } to { filter: none; transform: none; } }
@keyframes drama-ready {
  0%, 100% { box-shadow: 0 8px 22px rgba(232, 168, 92, .28), 0 0 0 0 rgba(240, 196, 138, 0); }
  50% { box-shadow: 0 8px 22px rgba(232, 168, 92, .28), 0 0 0 6px rgba(240, 196, 138, .34); }
}
@keyframes drama-card {
  0% { opacity: 0; transform: translate(-50%, -40%); }
  14% { opacity: 1; transform: translate(-50%, -50%); }
  78% { opacity: 1; transform: translate(-50%, -50%); }
  100% { opacity: 0; transform: translate(-50%, -56%); }
}

/* 入口页：首屏的「进入互动短剧」胶囊与中部的独立板块卡（预览舞台同样是透明立绘融在酒馆里、人物下方一来一回） */
.lp-drama-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 20px; border: 1px solid #efd9b8; border-radius: var(--r-pill);
  background: #fff6ea; color: #8a4f22; font-size: 15px; font-weight: 700; white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.lp-drama-btn:hover { background: #fdebd2; border-color: #e3bf8a; transform: translateY(-1px); }
.lp-drama { padding: 72px 0; background: linear-gradient(180deg, #fbfcff, #f6f3ff); }
.lp-drama-card {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 40px; padding: 36px; overflow: hidden;
  border-radius: 28px; color: #eef0fa; box-shadow: 0 30px 80px rgba(27, 31, 58, .22);
  background: radial-gradient(700px 360px at 85% 10%, rgba(240, 180, 110, .18), rgba(240, 180, 110, 0) 70%),
              linear-gradient(135deg, #1b1f3a, #261c3f 60%, #3a2733);
}
.lp-drama .lp-kicker { color: #f0c48a; }
.lp-drama-card h2 { margin: 12px 0 6px; color: #fff; font-size: clamp(28px, 3.2vw, 40px); }
.lp-drama-card h2 span { white-space: nowrap; }
.lp-drama-sub { color: #f0c48a; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.lp-drama-lead { margin-top: 14px; color: #d6daf0; font-size: 16px; line-height: 1.85; }
.lp-drama-beats { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: #cfd4ec; font-size: 13px; }
.lp-drama-beats span {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.lp-drama-beats small { color: rgba(207, 212, 236, .55); }
.lp-drama-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lp-drama-go {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border: 0; border-radius: var(--r-pill); background: #f0c48a; color: #2a1a0d;
  font-size: 15px; font-weight: 700; box-shadow: 0 10px 26px rgba(240, 196, 138, .3); transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.lp-drama-go:hover { background: #f6d3a2; transform: translateY(-1px); }
.lp-drama-more { color: #e3e7f7; }
.lp-drama-more:hover { color: #fff; }
.lp-drama-note { margin-top: 16px; color: rgba(214, 218, 240, .72); font-size: 12.5px; line-height: 1.7; }
.lp-drama-stage {
  position: relative; isolation: isolate; aspect-ratio: 16 / 10.5; overflow: hidden; border-radius: 20px; background: linear-gradient(160deg, #4a3226, #1e1720);
  box-shadow: 0 0 0 1px rgba(240, 196, 138, .3), 0 24px 60px rgba(0, 0, 0, .4);
}
.lp-drama-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(64% 40% at 50% -4%, rgba(255, 186, 112, .2), rgba(0, 0, 0, 0) 72%),
              radial-gradient(ellipse at 50% 40%, rgba(12, 10, 24, 0) 50%, rgba(12, 10, 24, .42) 100%),
              linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(38, 18, 10, .36) 74%, rgba(16, 9, 7, .86) 100%);
}
.lp-drama-backdrop { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.lp-drama-backdrop.is-missing, .lp-drama-char img.is-missing { visibility: hidden; }
.lp-drama-tagline {
  position: absolute; z-index: 3; left: 12px; top: 12px; max-width: calc(100% - 24px); padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(20, 18, 34, .5); color: #f4efe6; font-size: 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
/* 预览里的人物：透明立绘，无外框；林夏在听（退入暗部），陈默在问（上前一步、暖色轮廓光） */
.lp-drama-char { position: absolute; z-index: 1; bottom: 17%; height: 66%; aspect-ratio: 537 / 720; background: none; transform-origin: 50% 100%; }
.lp-drama-char.is-a { left: 8%; transform: translateY(4px) scale(.95); }
.lp-drama-char.is-b { right: 8%; transform: translateY(-4px) scale(1.04); }
.lp-drama-char img {
  display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0, 0, 0, 0) 100%);
  filter: sepia(.12) saturate(1.06) hue-rotate(-4deg) brightness(.7) saturate(.86) drop-shadow(0 12px 22px rgba(8, 7, 16, .6));
}
.lp-drama-char.is-b img {
  filter: sepia(.12) saturate(1.06) hue-rotate(-4deg) brightness(1.05) drop-shadow(0 0 1.5px rgba(255, 186, 112, .72))
          drop-shadow(0 0 16px rgba(147, 171, 255, .4)) drop-shadow(0 16px 24px rgba(8, 6, 14, .55));
}
/* 预览里人物正下方的迷你回合框：林夏那句已经落音（余音），陈默这句正亮着（尖角指向他） */
.lp-drama-say {
  position: absolute; z-index: 3; bottom: 5%; width: 41%; display: grid; justify-items: start; gap: 4px; padding: 8px 12px 9px; border-radius: 12px;
  font-family: var(--serif); font-size: 12.5px; line-height: 1.5; text-align: left;
}
.lp-drama-say b {
  padding: 0 8px; border-radius: var(--r-pill); color: #fff; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .06em;
  background: linear-gradient(180deg, #c4724a, #9c5031);
}
.lp-drama-say.is-a { left: 4%; color: rgba(232, 224, 210, .82); background: rgba(16, 13, 26, .64); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.lp-drama-say.is-a b { opacity: .82; }
.lp-drama-say.is-b {
  right: 4%; color: #f7f1e6; background: linear-gradient(180deg, rgba(31, 25, 40, .93), rgba(19, 15, 27, .93));
  box-shadow: inset 0 0 0 1px rgba(166, 198, 240, .6), 0 0 22px rgba(120, 166, 230, .3), 0 12px 28px rgba(0, 0, 0, .45);
}
.lp-drama-say.is-b b { background: linear-gradient(180deg, #4277ad, #2a5484); }
.lp-drama-say.is-b::before, .lp-drama-say.is-b::after { content: ""; position: absolute; width: 0; height: 0; border-style: solid; }
.lp-drama-say.is-b::before { top: -9px; left: calc(50% - 8px); border-width: 0 8px 9px; border-color: transparent transparent rgba(166, 198, 240, .6); }
.lp-drama-say.is-b::after { top: -7px; left: calc(50% - 7px); border-width: 0 7px 8px; border-color: transparent transparent rgba(31, 25, 40, .96); }
.lp-drama-scenes { margin-top: 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.lp-drama-scene {
  display: grid; align-content: start; gap: 4px; padding: 8px 8px 12px; border: 1px solid #e5e9f3; border-radius: 16px; background: #fff;
  color: var(--ink); text-align: left; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.lp-drama-scene:hover { transform: translateY(-3px); border-color: #e7cfae; box-shadow: 0 15px 38px rgba(33, 53, 120, .08); }
.lp-drama-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; }
.lp-drama-scene-name { padding: 2px 4px 0; font-size: 15px; font-weight: 700; }
.lp-drama-scene-text { padding: 0 4px; color: var(--muted); font-size: 12.5px; }

@media (max-width: 900px) {
  .drama { padding: 14px 18px 12px; }
  .drama-tool { width: 38px; padding: 0; }
  .drama-tool-label { display: none; }
  .drama-theatre { --gut: 14px; --mid: 26px; --tuck: 20px; }
  /* 平板：旁白第一句常要三行，预留够高；动作描写单独一行，回合框高度在各句之间保持一致 */
  .drama[data-beat="dialogue"] .drama-theatre { --top-h: 100px; --turn-min: 170px; }
  .drama-turn.is-active .drama-direction { flex-basis: 100%; }
  .drama-scene-tag { max-width: 46vw; }
  .drama-hook { font-size: 13.5px; }
  .drama-turn.is-active { padding: 12px 15px 14px; }
  .drama-say { font-size: 17px; line-height: 1.68; min-height: calc(3 * 1.68em); }
  .drama-turn-text { font-size: 14px; }
  .drama-direction { font-size: 13px; }
  .drama-panel, .drama-respond { width: calc(100% - 28px); }
  .drama-focus, .drama-stories { grid-template-columns: minmax(0, 1fr); }
  .drama-scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-drama-card { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px; }
  .lp-drama-scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .drama { padding: 10px; gap: 10px; }
  .drama-head { gap: 8px; }
  .drama-tool { width: 36px; height: 34px; }
  .drama-story-title { font-size: 18px; }
  .drama-nav { padding: 8px 10px; }
  .drama-ep { font-size: 13px; }
  /* 手机：两位人物仍一左一右立在场景里；当前说话人的框横跨在两人正下方，尖角对准说话的一侧；
     另一位的余音缩成一行，靠在他那一侧的立绘下沿 */
  .drama-theatre { --gut: 10px; --mid: 8px; --tuck: 14px; --lift: 24px; --top-h: 46px; --cast-min: clamp(150px, 24vh, 210px); }
  .drama[data-beat="dialogue"] .drama-theatre { --top-h: 134px; --cast-min: clamp(160px, 23vh, 220px); --turn-min: 0px; min-height: 0; }
  .drama[data-beat="question"] .drama-theatre { --cast-min: clamp(150px, 23vh, 210px); }
  .drama-stage { border-radius: 18px; }
  /* 顶部：场景签（对话拍里只留场景名）与承接胶囊同一行，旁白占下一整行；第一句的四行旁白也预留在顶部行里 */
  .drama-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0 6px; }
  .drama-scene-tag { max-width: 100%; padding: 4px 10px; font-size: 11.5px; }
  .drama[data-beat="dialogue"] .drama-scene-tag-amb { display: none; }
  .drama-hook { flex: 1 1 100%; order: 3; max-width: 100%; padding: 5px 11px 6px; font-size: 12.5px; line-height: 1.5; }
  .drama-carry > summary { padding: 3px 10px; font-size: 12px; }
  .drama-nameplate { padding: 2px 8px; }
  .drama-name { font-size: 12px; }
  .drama-mood { font-size: 11px; }
  .drama-title-card { padding: 12px 16px; }
  .drama-title-v { font-size: 19px; }
  .drama-turn.is-active { grid-column: a-start / b-end; padding: 11px 14px 13px; border-radius: 16px; }
  .drama-turn.is-active.is-a {
    box-shadow: inset 3px 0 0 var(--turn-edge), inset 0 0 0 1px var(--turn-edge), inset 0 0 0 4px rgba(19, 15, 27, .55), 0 0 24px var(--turn-glow), 0 18px 40px rgba(4, 3, 10, .55);
  }
  .drama-turn.is-active.is-b {
    box-shadow: inset -3px 0 0 var(--turn-edge), inset 0 0 0 1px var(--turn-edge), inset 0 0 0 4px rgba(19, 15, 27, .55), 0 0 24px var(--turn-glow), 0 18px 40px rgba(4, 3, 10, .55);
  }
  /* 尖角对准说话人那一列的中线：列宽 =（框宽 − 中缝）÷ 2，中线在列宽的一半 */
  .drama-turn.is-active.is-a::before { left: calc((100% - var(--mid)) / 4 - 11px); }
  .drama-turn.is-active.is-a::after { left: calc((100% - var(--mid)) / 4 - 10px); }
  .drama-turn.is-active.is-b::before { left: auto; right: calc((100% - var(--mid)) / 4 - 11px); }
  .drama-turn.is-active.is-b::after { left: auto; right: calc((100% - var(--mid)) / 4 - 10px); }
  .drama-turn.is-echo, .drama-turn.is-quiet { grid-row: cast; grid-column: a-start / b-end; align-self: end; z-index: 3; max-width: 66%; margin: 0 0 8px; }
  .drama-turn.is-echo.is-a, .drama-turn.is-quiet.is-a { justify-self: start; }
  .drama-turn.is-echo.is-b, .drama-turn.is-quiet.is-b { justify-self: end; }
  .drama-turn.is-echo { display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: var(--r-pill); }
  .drama-turn.is-echo .drama-turn-head { flex: none; }
  .drama-turn.is-echo .drama-turn-mood { display: none; }
  .drama-turn.is-echo .drama-badge { padding: 1px 8px; font-size: 11.5px; }
  .drama-turn.is-echo .drama-turn-text { display: block; min-width: 0; margin: 0; overflow: hidden; font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
  .drama-turn.is-quiet { padding: 3px 10px; font-size: 11.5px; }
  .drama-say { margin-top: 6px; font-size: 16px; line-height: 1.66; min-height: calc(3 * 1.66em); }
  .drama-direction { font-size: 12.5px; }
  .drama-ask-prompt { font-size: 17px; }
  .drama-turn.drama-ask { margin-bottom: 12px; }
  /* 控制条：三个次要按钮只留图标（名字仍在，读屏照读），主按钮占满余下的宽度 */
  .drama-controls { flex-wrap: nowrap; gap: 6px; margin: 8px 0 10px; padding: 5px; border-radius: 14px; }
  .drama-controls-side { flex: none; flex-wrap: nowrap; gap: 2px; }
  .drama-controls .btn-quiet, .drama-auto { width: 38px; min-height: 38px; padding: 0; justify-content: center; box-shadow: none; }
  .drama-hud-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .drama-next { flex: 1 1 auto; min-width: 0; padding-left: 12px; padding-right: 12px; }
  .drama-script { inset: auto 0 6px; padding: 10px 12px 12px; }
  .drama-script-line { max-width: 94%; font-size: 13.5px; }
  .drama-panel, .drama-respond { width: calc(100% - 8px); padding: 16px 14px 14px; border-radius: 18px; }
  .drama-respond { margin-top: 10px; }
  .drama-presets, .drama-cast-grid { grid-template-columns: minmax(0, 1fr); }
  .drama-rrow { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .drama-actions .btn-primary { flex: 1 1 auto; }
  .drama-sheet-backdrop { align-items: flex-end; }
  .drama-sheet { width: 100%; height: auto; max-height: 88vh; border-radius: 20px 20px 0 0; animation-name: sheet-in; }
  .drama-sheet-head { padding: 16px 16px 10px; }
  .drama-sheet-body { padding: 14px 16px 24px; }
  .drama-scenes.is-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-drama { padding: 56px 0; }
  .lp-drama-btn { min-height: 44px; padding: 10px 16px; }
  .lp-drama-card { padding: 22px 18px; border-radius: 22px; }
  .lp-drama-stage { aspect-ratio: 4 / 3.3; }
  .lp-drama-char { bottom: 23%; height: 60%; }
  .lp-drama-char.is-a { left: 4%; }
  .lp-drama-char.is-b { right: 4%; }
  .lp-drama-say { bottom: 4%; width: 47%; padding: 6px 9px 7px; font-size: 11px; }
  .lp-drama-say.is-a { left: 3%; }
  .lp-drama-say.is-b { right: 3%; }
  .lp-drama-scenes { gap: 8px; }
}

/* ---------------------------------------------------------------- 动效 */

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes arc-in { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes target-pulse { 0% { box-shadow: 0 0 0 0 var(--accent-15); } 40% { box-shadow: 0 0 0 6px var(--accent-15); } 100% { box-shadow: 0 0 0 0 rgba(36, 72, 184, 0); } }
.nav-target { animation: target-pulse 1.2s var(--ease) 2; border-radius: var(--r-md); }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes breath-dot { 0%, 100% { transform: scale(.72); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }
@keyframes press { 0% { transform: scale(1); } 45% { transform: scale(.94); } 100% { transform: scale(1); } }
.breathing { animation: breathe 2.4s ease-in-out infinite; }

.motion-off *, .motion-off *::before, .motion-off *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 1ms !important; }
.motion-off .engine-body .caret::after { display: none; }
.motion-off .toast.is-award { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .engine-body .caret::after { display: none; }
  .toast.is-award { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 1180px) {
  .bench { --rail: 260px; }
  .ring-wrap { width: 208px; }
  .atlas-main { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1023px) {
  .map { display: none; }
  .atlas-stack { display: block; margin-top: 24px; }
  .atlas-notes { grid-template-columns: minmax(0, 1fr); }
  .inspector { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 72vh; border-radius: 20px 20px 0 0; animation-name: sheet-in; }
}
@media (max-width: 900px) {
  .topbar.app-bar { gap: 16px; padding: 0 20px; }
  .app-bar .brand-logo { height: 32px; }
  .topbar-tools .label { display: none; }
  .bench { grid-template-columns: minmax(0, 1fr); }
  .dots-bar {
    position: sticky; top: var(--topbar); z-index: 14; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 24px; background: rgba(245, 247, 253, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line);
  }
  .dots-stage { font-family: var(--serif); font-weight: 700; font-size: 16px; }
  .dots-sub { font-size: 12.5px; color: var(--muted); }
  .dots-left { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .conv-head { top: calc(var(--topbar) + 44px); }
  .rail { position: relative; top: 0; height: auto; display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 8px 20px; padding: 20px 24px; align-items: start; }
  .ring-wrap { width: 148px; }
  .ring-stage { font-size: 21px; }
  .ring-sub { font-size: 12px; max-width: 92px; }
  .rail-block { margin-top: 0; }
  .feed-item:nth-child(n+4) { display: none; }
  .rail-foot { grid-column: 1 / -1; margin-top: 4px; }
  .handle { display: none; }
  .drawer { width: min(720px, 92vw); }
  .options-3 { grid-template-columns: minmax(0, 1fr); }
  .th-cols { grid-template-columns: minmax(0, 1fr); }
  .rd-grid { grid-template-columns: minmax(0, 1fr); }
  .mon-cols, .mon-rows.mon-three { grid-template-columns: minmax(0, 1fr); }
  .sc-cols { grid-template-columns: minmax(0, 1fr); }
  /* 环在页面顶上的一行里（不再是左栏）：气泡跟着页面走，放在环的右边 */
  .ob-at-ring { position: absolute; left: 188px; top: 24px; }
  .ob-at-composer { left: 16px; }
}
@media (max-width: 720px) {
  .atlas { padding: 24px 16px 16px; }
  .src { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-arrow { justify-content: center; transform: rotate(90deg); height: 18px; }
  .demo-bar { border-radius: var(--r-md); }
  .ap-head { font-size: 24px; }
  .ap-card { padding: 24px 20px; }
  .ap-caption { font-size: 19px; }
  :root { --topbar: 56px; }
  .topbar.app-bar { gap: 8px; padding: 0 12px; }
  .app-bar .brand-logo { height: 30px; }
  .nav { gap: 0; }
  .nav button { padding: 6px 9px; font-size: 14px; }
  .topbar-tools .label { display: none; }
  .topbar-tools { gap: 2px; }
  .icon-btn { min-width: 34px; padding: 0 7px; }
  .icon-btn.pill { padding: 0 8px; box-shadow: none; }
  .rail { display: none; }
  .dots-bar { padding: 10px 16px; }
  .conv-head { padding: 10px 16px 8px; }
  .conv { padding: 4px 16px 16px; gap: 20px; }
  .current { gap: 20px; }
  .composer-wrap { padding: 10px 12px 14px; }
  .engine { padding: 16px 16px 14px 20px; }
  .card { padding: 18px 16px 16px; }
  .bubble { max-width: 92%; }
  .cat-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cat-name { padding-top: 0; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .review-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .compare-2.rethink { grid-template-columns: minmax(0, 1fr); }
  .pair-arrow { display: none; }
  .compare-2 { grid-template-columns: minmax(0, 1fr); }
  .drawer-scrim { pointer-events: auto; background: rgba(17, 25, 54, .2); animation: fade-in var(--t-drawer) var(--ease) both; }
  .drawer { top: auto; left: 0; right: 0; width: auto; height: calc(100vh - var(--topbar) - 24px); border-radius: 20px 20px 0 0; animation-name: sheet-in; }
  .drawer-head { padding: 4px 16px 12px; flex-wrap: wrap; touch-action: none; }
  .drawer-body { padding: 16px; }
  /* 底部上拉的抽屉：顶端把手上拉展开、下拉收小；收到最小只留标题栏，对话照常能用（输入条让到它上面） */
  .drawer { transition: height var(--t-drawer) var(--ease); }
  .sheet-grab { display: flex; justify-content: center; align-items: center; width: 100%; height: 24px; padding: 0; border: 0;
    background: transparent; touch-action: none; cursor: grab; }
  .grab-bar { width: 44px; height: 5px; border-radius: var(--r-pill); background: var(--line-2); }
  .research-root.is-half .drawer { height: 58vh; }
  .research-root.is-peek .drawer { height: 84px; }
  .research-root.is-peek .drawer-notice, .research-root.is-peek .drawer-body { display: none; }
  .research-root.is-peek .drawer-scrim { pointer-events: none; background: transparent; animation: none; }
  body.has-sheet-peek .composer-wrap { bottom: 84px; }
  .ob-at-composer { bottom: 142px; }
  .ob-at-toolbar .ob-arrow { right: 78px; }
  .composer-meta { flex-wrap: wrap; row-gap: 4px; }
  /* 空输入框的长提示保持单行；开始输入后恢复文本框原有的换行与滚动。 */
  .composer textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .suggest-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 8px; padding-bottom: 2px; }
  .suggest-bar::-webkit-scrollbar { display: none; }
  .sg-bubble { flex: none; max-width: 78vw; }
  .composer-meta .link { white-space: nowrap; }
  .modal-backdrop { padding: 16px 8px; }
  .modal-head { padding: 20px 18px 4px; }
  .modal-body { padding: 12px 16px 20px; }
  .th-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .th-row.head { display: none; }
  .th-row .v-plain::before { content: "普通 AI："; color: var(--faint); }
  .th-row .v-adr::before { content: "三觉循环引擎："; color: var(--faint); }
  .banner { margin: 12px 12px 0; }
  .login-card { padding: 28px 22px; }
  .modal.access { padding: 18px 20px 22px; }
  .stack-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .set-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .set-row .seg { align-self: flex-start; }
  .lightbox { padding: 12px; }
}
@media (max-width: 640px) {
  :root { --topbar: 96px; }
  .topbar.app-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; padding: 8px 12px; }
  .app-bar .brand-logo { height: 24px; }
  .app-bar .nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  .app-bar .topbar-spacer { display: none; }
  .app-bar .topbar-tools { justify-self: end; }
  .nav button { padding: 6px 8px; }
  .topbar-tools .icon-btn { min-width: 32px; padding: 0 6px; }
}

/* 《饭凉了》写实微电影暗场剧场：16:9 原声短片、同步电影字幕与原位毛玻璃首问衔接。 */
.dinner-entry { max-width: 1040px; margin: clamp(25px, 6vw, 72px) auto; display: grid; grid-template-columns: 1.18fr 1fr;
  min-width: 0; overflow: hidden; border-radius: 20px; background: #191516; color: #fff2db;
  border: 1px solid #3c312b; box-shadow: 0 20px 56px #0d0b0c66; }
.dinner-cover { position: relative; min-height: 260px; cursor: pointer;
  background: #141112 url('./dinner-poster.jpg') center / cover no-repeat;
  display: grid; place-items: center; overflow: hidden; }
.dinner-cover::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, #120e0f1a 0%, #120e0f80 100%); transition: opacity .25s ease; }
.dinner-cover:hover::after { opacity: .65; }
.dinner-play-badge { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 4px; font-size: 22px; color: #fff4e0;
  background: #1c1615bf; border: 1.5px solid #e7bd86cc; box-shadow: 0 8px 28px #00000080;
  transition: transform .2s ease, background .2s ease; }
.dinner-cover:hover .dinner-play-badge { transform: scale(1.06); background: #e7bd86; color: #1e1716; }
.dinner-intro { padding: clamp(26px, 4vw, 52px); align-self: center; min-width: 0; }
.dinner-intro h2 { margin: 8px 0; font: 500 clamp(32px, 5vw, 56px)/1.13 var(--serif); color: #fff2db; }
.dinner-intro p { color: #e5d9c9; line-height: 1.72; }
.dinner-intro .dinner-format { color: #e7b981; letter-spacing: .1em; font-size: 13px; margin: 0; }
.dinner-watch, .dinner-close, .dinner-ctrl, .dinner-ghost {
  border: 1px solid #8c7253; border-radius: 24px; padding: 8px 16px; color: #fff2db;
  background: #261f1ecc; font: inherit; font-size: 14px; cursor: pointer; }
.dinner-watch { margin-top: 14px; padding: 10px 22px; border-color: #e7bd86; background: #e7bd86; color: #221a18; font-weight: 650; }
.dinner-dialog.dinner-cinema { color: #f7ecda; padding: 0; width: min(920px, 95vw); max-width: 95vw; max-height: 94dvh;
  overflow-y: auto; overflow-x: hidden; margin: auto; border: 1px solid #3f342d; border-radius: 18px;
  background: #120f10; box-shadow: 0 28px 96px #000000bf; }
.dinner-cinema [hidden] { display: none !important; }
.dinner-dialog::backdrop { background: #09080be0; }
.dinner-dialog-top, .dinner-bar-head, .dinner-controls, .dinner-media-btns, .dinner-options, .dinner-reflection-actions, .dinner-chapters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.dinner-dialog-top { justify-content: space-between; background: #191416; color: #fff3de; padding: 12px 20px;
  border-bottom: 1px solid #2e2521; }
.dinner-top-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; min-width: 0; }
.dinner-top-brand strong { font-size: 15px; letter-spacing: .03em; color: #fff4e2; }
.dinner-top-sub { font-size: 13px; color: #bfa98e; }
.dinner-close { padding: 5px 14px; border-color: #5e4e3e; background: transparent; }
.dinner-stage { display: grid; grid-template-areas: "stack"; position: relative; width: 100%;
  background: #0c0a0b; overflow: hidden; }
.dinner-video { grid-area: stack; width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover;
  background: #0c0a0b; cursor: pointer; transition: filter .35s ease; }
.dinner-stage.is-question .dinner-video { height: 100%; min-height: 100%; filter: brightness(.42) saturate(.88); cursor: default; }
.dinner-subtitle { grid-area: stack; align-self: end; justify-self: center; z-index: 2; pointer-events: none;
  width: min(92%, 760px); margin: 0 auto clamp(14px, 3vw, 28px); padding: 8px 16px; text-align: center;
  border-radius: 10px; background: linear-gradient(180deg, #0d0a0b8c, #0d0a0bcc); }
.dinner-subtitle p { margin: 2px 0; color: #fff8ec; font-size: clamp(15px, 2.1vw, 19px); line-height: 1.55;
  letter-spacing: .02em; text-shadow: 0 2px 8px #000000eb; }
.dinner-subtitle.is-center { align-self: center; margin: 0 auto; padding: 18px 24px;
  background: radial-gradient(ellipse at center, #120e0fd9 0%, #120e0f80 72%, transparent 100%); }
.dinner-subtitle.is-center p { font: 500 clamp(18px, 2.7vw, 25px)/1.6 var(--serif); color: #fff3dc; }
.dinner-cinema-bar { display: grid; gap: 10px; padding: 14px clamp(14px, 3vw, 24px) 16px;
  background: #171314; border-top: 1px solid #2d2420; }
.dinner-bar-head { justify-content: space-between; }
.dinner-chapter-title { margin: 0; font: 500 clamp(16px, 2.2vw, 19px)/1.35 var(--serif); color: #f6dec0; }
.dinner-ctrl, .dinner-ghost { padding: 6px 13px; font-size: 13px; border-color: #5b4b3d; background: #241e1f; color: #efe0cb; }
.dinner-ctrl:hover, .dinner-ghost:hover { border-color: #c6a16f; color: #fff7ea; }
.dinner-begin-btn, .dinner-enter-bench { background: #e7bd86; border-color: #e7bd86; color: #231a18; font-weight: 650; }
.dinner-chapters { gap: 6px; padding-top: 2px; }
.dinner-step-pill { border: 1px solid #3d332d; border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12px;
  background: #1e191a; color: #b7a48e; cursor: pointer; }
.dinner-step-pill.is-past { border-color: #69543e; color: #dfc6a6; }
.dinner-step-pill.is-active { border-color: #e7bd86; background: #332821; color: #fff3dc; font-weight: 600; }
.dinner-reflection { grid-area: stack; z-index: 3; display: grid; place-items: center;
  padding: clamp(16px, 3.5vw, 32px); background: linear-gradient(180deg, #0e0b0ca6 0%, #120e10e6 100%); }
.dinner-reflection-card { width: min(640px, 100%); padding: clamp(18px, 3.5vw, 28px); border-radius: 16px;
  background: #1d1718eb; border: 1px solid #574638; box-shadow: 0 20px 56px #00000099; display: grid; gap: 12px; }
.dinner-reflection-kicker { margin: 0; font-size: 12px; letter-spacing: .1em; color: #e7b981; }
.dinner-question-title { margin: 0; font: 500 clamp(18px, 2.6vw, 23px)/1.48 var(--serif); color: #fff4e0; }
.dinner-options { margin: 2px 0; }
.dinner-cinema .dinner-chip { border: 1px solid #6f5b46; border-radius: 999px; padding: 7px 15px; background: #2a2223; color: #f6e7d2; font: inherit; font-size: 14px; cursor: pointer; }
.dinner-cinema .dinner-chip.is-selected, .dinner-cinema .dinner-chip:hover { border-color: #e7bd86; background: #e7bd86; color: #221a18; font-weight: 650; }
.dinner-reflection-card textarea { width: 100%; border: 1px solid #5c4c3e; padding: 10px 12px; border-radius: 10px;
  font: inherit; color: #fff5e6; background: #141011cc; resize: vertical; }
.dinner-reflection-card textarea::placeholder { color: #a79682; }
.dinner-branch-hint { margin: 0; font-size: 13px; line-height: 1.55; color: #c8b69f; }
.dinner-reflection-actions { justify-content: flex-end; margin-top: 2px; }
@media (max-width: 650px) {
  .dinner-entry { grid-template-columns: minmax(0,1fr); }
  .dinner-cover { min-height: 0; aspect-ratio: 16/9; }
  .dinner-dialog-top { padding: 10px 14px; }
  .dinner-cinema-bar { padding: 12px 14px; }
  .dinner-controls, .dinner-reflection-actions { justify-content: flex-start; }
}

.public-drama { padding: clamp(12px, 2vw, 24px); border-radius: 20px; color: #fff2db; }
.public-drama-head, .public-drama-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.public-drama-head { justify-content: space-between; }
.public-drama-head .dinner-format { color: #f0c691; margin: 0; font-size: 13px; letter-spacing: .08em; }
.public-drama-head h1 { margin: 3px 0; font: 500 clamp(21px,3vw,32px)/1.3 var(--serif); color: #fff4e1; }
.public-drama select, .public-drama-control { max-width: 100%; border: 1px solid #787078; border-radius: 14px; font: inherit;
  line-height: 1.35; font-size: 14px; background: #30303b; color: #fff0dc; padding: 7px 10px; }
.public-drama-panel { display: grid; gap: 10px; }
.public-drama-panel h2 { color: #fff4e1; font: 500 clamp(19px,3vw,28px)/1.45 var(--serif); }
.public-drama-panel label { display: grid; gap: 5px; margin-top: 8px; min-width: 0; }
.public-drama-panel .drama-input { padding: 10px; background: var(--sunken); border-radius: 8px; }
.public-drama-panel select { width: 100%; }
.public-drama-panel [aria-pressed="true"] { background: var(--lamp-soft); box-shadow: inset 0 0 0 2px var(--lamp); }
.public-drama .drama-turn { text-align: start; }
.public-drama .drama-foot { margin: 0; }
@media (max-width:650px) { .public-drama-tools { gap: 6px; } }

/* ---------------------------------------------------------------- 2026-11-20 情景对话沉浸化：公开短剧的暗场剧场
   五景氛围层（光影呼吸与天气，在底图之上、人物之后，不接收点击）、人物在场微动态、电影字幕式分句渐显、
   七集章回条、一键声景、剧中导演台（心声卡、微练习便签、剧情走向签卡、五景明信片、分镜预告卡）。
   全部是类名与无数字 data-* 的切换；减少动效时由全局规则把动画收成静止的终态。 */
.drama-weather, .drama-lightpool { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.drama-weather i { position: absolute; inset: 0; display: block; opacity: 0; }
.drama-lightpool { mix-blend-mode: screen; }
.drama-lightpool::before, .drama-lightpool::after { content: ""; position: absolute; opacity: 0; border-radius: 50%; }

/* 街角小酒馆：窗外斜落的细雨丝 + 吊灯与吧台的琥珀暖光呼吸 */
.drama-theatre[data-scene="tavern"] .drama-weather i:nth-child(1) {
  opacity: .8;
  -webkit-mask-image: radial-gradient(ellipse 30% 40% at 66% 33%, #000 0%, rgba(0, 0, 0, .55) 58%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(ellipse 30% 40% at 66% 33%, #000 0%, rgba(0, 0, 0, .55) 58%, rgba(0, 0, 0, 0) 100%);
}
.drama-theatre[data-scene="tavern"] .drama-weather i:nth-child(1)::before,
.drama-theatre[data-scene="tavern"] .drama-weather i:nth-child(1)::after {
  content: ""; position: absolute; inset: -20%; transform: rotate(11deg);
  background: repeating-linear-gradient(180deg, rgba(222, 232, 255, 0) 0 46px, rgba(222, 232, 255, .46) 46px 72px, rgba(222, 232, 255, 0) 72px 128px);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 1px, rgba(0, 0, 0, 0) 1px 19px);
  mask-image: repeating-linear-gradient(90deg, #000 0 1px, rgba(0, 0, 0, 0) 1px 19px);
  animation: drama-rain .8s linear infinite;
}
.drama-theatre[data-scene="tavern"] .drama-weather i:nth-child(1)::after {
  opacity: .7;
  background: repeating-linear-gradient(180deg, rgba(222, 232, 255, 0) 0 92px, rgba(222, 232, 255, .3) 92px 112px, rgba(222, 232, 255, 0) 112px 170px);
  -webkit-mask-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0 9px, #000 9px 10px, rgba(0, 0, 0, 0) 10px 27px);
  mask-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0 9px, #000 9px 10px, rgba(0, 0, 0, 0) 10px 27px);
  animation: drama-rain-far 1.25s linear infinite;
}
.drama-theatre[data-scene="tavern"] .drama-lightpool::before {
  left: 54%; top: -6%; width: 34%; height: 54%; opacity: .62;
  background: radial-gradient(closest-side, rgba(255, 184, 96, .5), rgba(255, 184, 96, 0)); animation: drama-lamp 6.4s ease-in-out infinite;
}
.drama-theatre[data-scene="tavern"] .drama-lightpool::after {
  left: -8%; top: 30%; width: 56%; height: 62%; opacity: .5;
  background: radial-gradient(closest-side, rgba(255, 170, 88, .34), rgba(255, 170, 88, 0)); animation: drama-lamp 8.2s ease-in-out -3s infinite;
}

/* 雨后街心长椅：贴地缓流的夜雾 + 路灯暖晕的明暗 + 石板路上的雨后微光 */
.drama-theatre[data-scene="park"] .drama-weather i:nth-child(1) {
  inset: 38% -30% -4% -30%; opacity: .7; filter: blur(6px);
  background: radial-gradient(ellipse 30% 42% at 30% 62%, rgba(196, 210, 240, .26), rgba(196, 210, 240, 0) 72%),
              radial-gradient(ellipse 34% 38% at 72% 70%, rgba(196, 210, 240, .2), rgba(196, 210, 240, 0) 72%);
  animation: drama-fog 24s ease-in-out infinite alternate;
}
.drama-theatre[data-scene="park"] .drama-weather i:nth-child(2) {
  inset: 54% -40% -8% -20%; opacity: .5; filter: blur(9px);
  background: radial-gradient(ellipse 44% 48% at 50% 56%, rgba(182, 200, 238, .22), rgba(182, 200, 238, 0) 72%);
  animation: drama-fog 32s ease-in-out -11s infinite alternate-reverse;
}
.drama-theatre[data-scene="park"] .drama-weather i:nth-child(3) {
  inset: 60% 0 0 30%; opacity: .55;
  background: radial-gradient(circle at 18% 40%, rgba(255, 238, 200, .8) 0 1.4px, rgba(255, 238, 200, 0) 3px),
              radial-gradient(circle at 46% 70%, rgba(255, 238, 200, .7) 0 1.2px, rgba(255, 238, 200, 0) 2.6px),
              radial-gradient(circle at 63% 52%, rgba(255, 238, 200, .7) 0 1.6px, rgba(255, 238, 200, 0) 3.2px),
              radial-gradient(circle at 82% 78%, rgba(255, 238, 200, .6) 0 1.2px, rgba(255, 238, 200, 0) 2.6px),
              radial-gradient(circle at 34% 88%, rgba(255, 238, 200, .6) 0 1.4px, rgba(255, 238, 200, 0) 3px);
  animation: drama-glint 4.6s ease-in-out infinite;
}
.drama-theatre[data-scene="park"] .drama-lightpool::before {
  left: 70%; top: -8%; width: 40%; height: 62%; opacity: .6;
  background: radial-gradient(closest-side, rgba(255, 214, 148, .44), rgba(255, 214, 148, 0)); animation: drama-lamp 5.6s ease-in-out infinite;
}
.drama-theatre[data-scene="park"] .drama-lightpool::after {
  left: 18%; bottom: -10%; width: 74%; height: 34%; opacity: .45;
  background: radial-gradient(closest-side, rgba(255, 222, 172, .24), rgba(255, 222, 172, 0)); animation: drama-lamp 9s ease-in-out -2s infinite;
}

/* 科技办公室：屏幕冷青微光缓缓扫过 + 落地窗外城市夜色的散景柔光 */
.drama-theatre[data-scene="office"] .drama-weather i:nth-child(1) {
  right: auto; width: 36%; opacity: .6; mix-blend-mode: screen;
  background: linear-gradient(100deg, rgba(120, 230, 235, 0) 0%, rgba(140, 236, 240, .12) 40%, rgba(196, 250, 252, .24) 50%,
                                      rgba(140, 236, 240, .12) 60%, rgba(120, 230, 235, 0) 100%);
  animation: drama-sweep 12s ease-in-out infinite;
}
.drama-theatre[data-scene="office"] .drama-weather i:nth-child(2),
.drama-theatre[data-scene="office"] .drama-weather i:nth-child(3) {
  inset: 10% 30% 42% 18%; opacity: .7; filter: blur(1.4px);
  background: radial-gradient(circle at 8% 32%, rgba(255, 214, 150, .7) 0 2px, rgba(255, 214, 150, 0) 6px),
              radial-gradient(circle at 22% 58%, rgba(150, 220, 255, .6) 0 1.6px, rgba(150, 220, 255, 0) 5px),
              radial-gradient(circle at 37% 24%, rgba(255, 226, 170, .6) 0 2.2px, rgba(255, 226, 170, 0) 7px),
              radial-gradient(circle at 51% 64%, rgba(160, 230, 255, .55) 0 1.8px, rgba(160, 230, 255, 0) 5px),
              radial-gradient(circle at 66% 36%, rgba(255, 210, 140, .6) 0 2px, rgba(255, 210, 140, 0) 6px),
              radial-gradient(circle at 81% 54%, rgba(150, 220, 255, .55) 0 1.6px, rgba(150, 220, 255, 0) 5px),
              radial-gradient(circle at 93% 28%, rgba(255, 220, 160, .5) 0 2px, rgba(255, 220, 160, 0) 6px);
  animation: drama-glint 6.2s ease-in-out infinite;
}
.drama-theatre[data-scene="office"] .drama-weather i:nth-child(3) {
  inset: 16% 34% 46% 22%; opacity: .5; transform: scale(-1, 1); animation-duration: 7.8s; animation-delay: -3s;
}
.drama-theatre[data-scene="office"] .drama-lightpool::before {
  left: -6%; top: 28%; width: 34%; height: 46%; opacity: .55;
  background: radial-gradient(closest-side, rgba(110, 214, 222, .34), rgba(110, 214, 222, 0)); animation: drama-lamp 7s ease-in-out infinite;
}
.drama-theatre[data-scene="office"] .drama-lightpool::after {
  right: -8%; top: 30%; width: 30%; height: 44%; opacity: .45;
  background: radial-gradient(closest-side, rgba(120, 222, 232, .3), rgba(120, 222, 232, 0)); animation: drama-lamp 8.6s ease-in-out -4s infinite;
}

/* 茶水间露台：傍晚暮色的天际渐变 + 杯口热饮的轻雾缓升 */
.drama-theatre[data-scene="pantry"] .drama-weather i:nth-child(1) {
  bottom: 42%; opacity: .8; mix-blend-mode: soft-light;
  background: linear-gradient(180deg, rgba(150, 112, 214, .5) 0%, rgba(255, 158, 122, .38) 62%, rgba(255, 158, 122, 0) 100%);
  animation: drama-dusk 14s ease-in-out infinite alternate;
}
.drama-theatre[data-scene="pantry"] .drama-weather i:nth-child(2),
.drama-theatre[data-scene="pantry"] .drama-weather i:nth-child(3) {
  inset: auto auto 36% 60%; width: 54px; height: 130px; opacity: .4; filter: blur(9px);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 246, 236, .5), rgba(255, 246, 236, 0) 72%);
  animation: drama-steam 6.6s ease-out infinite;
}
.drama-theatre[data-scene="pantry"] .drama-weather i:nth-child(3) { left: 66%; width: 42px; animation-delay: -3.3s; }
.drama-theatre[data-scene="pantry"] .drama-lightpool::before {
  left: 66%; top: -2%; width: 30%; height: 46%; opacity: .6;
  background: radial-gradient(closest-side, rgba(255, 196, 128, .42), rgba(255, 196, 128, 0)); animation: drama-lamp 6.8s ease-in-out infinite;
}
.drama-theatre[data-scene="pantry"] .drama-lightpool::after {
  left: 10%; top: 30%; width: 60%; height: 30%; opacity: .4;
  background: radial-gradient(closest-side, rgba(255, 170, 130, .3), rgba(255, 170, 130, 0)); animation: drama-lamp 11s ease-in-out -5s infinite;
}

/* 深夜客厅：落地灯的暖黄光池呼吸 + 灯下空气里的微尘 */
.drama-theatre[data-scene="living"] .drama-lightpool::before {
  left: 66%; top: -4%; width: 44%; height: 70%; opacity: .7;
  background: radial-gradient(closest-side, rgba(255, 210, 132, .48), rgba(255, 210, 132, 0)); animation: drama-lamp 7.2s ease-in-out infinite;
}
.drama-theatre[data-scene="living"] .drama-lightpool::after {
  left: 24%; bottom: -6%; width: 64%; height: 40%; opacity: .5;
  background: radial-gradient(closest-side, rgba(255, 200, 124, .3), rgba(255, 200, 124, 0)); animation: drama-lamp 9.4s ease-in-out -4s infinite;
}
.drama-theatre[data-scene="living"] .drama-weather i:nth-child(1),
.drama-theatre[data-scene="living"] .drama-weather i:nth-child(2) {
  inset: -10% -6% 20% 52%; opacity: .7;
  background-image: radial-gradient(circle, rgba(255, 236, 200, .75) 0 1px, rgba(255, 236, 200, 0) 1.8px),
                    radial-gradient(circle, rgba(255, 228, 186, .55) 0 .8px, rgba(255, 228, 186, 0) 1.6px);
  background-size: 88px 104px, 61px 77px; background-position: 0 0, 30px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 62% 45%, #000 0%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(ellipse 60% 60% at 62% 45%, #000 0%, rgba(0, 0, 0, 0) 100%);
  animation: drama-dust 26s linear infinite;
}
.drama-theatre[data-scene="living"] .drama-weather i:nth-child(2) { opacity: .45; background-size: 120px 140px, 73px 91px; animation-duration: 38s; animation-direction: reverse; }

@keyframes drama-rain { from { background-position: 0 0; } to { background-position: 0 128px; } }
@keyframes drama-rain-far { from { background-position: 0 0; } to { background-position: 0 170px; } }
@keyframes drama-lamp { 0%, 100% { opacity: .42; transform: scale(.97); } 50% { opacity: .86; transform: scale(1.03); } }
@keyframes drama-fog { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
@keyframes drama-glint { 0%, 100% { opacity: .22; } 50% { opacity: .85; } }
@keyframes drama-sweep { 0% { transform: translateX(-110%); } 60%, 100% { transform: translateX(300%); } }
@keyframes drama-dusk { from { opacity: .55; } to { opacity: .95; } }
@keyframes drama-steam { 0% { opacity: 0; transform: translateY(24px) scale(.8); } 30% { opacity: .55; } 100% { opacity: 0; transform: translateY(-76px) scale(1.5); } }
@keyframes drama-dust { from { background-position: 0 0, 30px 40px; } to { background-position: 44px -208px, 60px -114px; } }

/* 人物在场：说话的一方带柔和的边缘暖光、微微前倾；倾听的一方退入景深，带极克制的呼吸起伏 */
.public-drama .drama-char-img { transform-origin: 50% 100%; transition: filter 520ms var(--ease), transform 620ms var(--ease); }
.public-drama .drama-char.is-speaking.is-a .drama-char-img { transform: rotate(.7deg) translateX(3px); }
.public-drama .drama-char.is-speaking.is-b .drama-char-img { transform: rotate(-.7deg) translateX(-3px); }
.public-drama .drama-char.is-speaking::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 2%; width: min(84%, 380px); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, var(--spot), rgba(0, 0, 0, 0)); pointer-events: none;
  animation: drama-presence 4.6s ease-in-out infinite;
}
.public-drama .drama-char.is-listening .drama-char-img { animation: drama-listen 6s ease-in-out infinite; }
.public-drama .drama-char.is-listening.is-swap .drama-char-img { animation: drama-swap 420ms var(--ease) both, drama-listen 6s ease-in-out infinite; }
@keyframes drama-presence { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes drama-listen { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2px) scale(1.008); } }

/* 七集章回条：纯汉字胶囊，当前一集暖金点亮，已历的几集留一枚小灯 */
.drama-chapters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.drama-chapter {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .035);
  color: rgba(233, 224, 208, .58); font-size: 12.5px; letter-spacing: .04em; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .14);
  transition: background-color 260ms var(--ease), color 260ms var(--ease), box-shadow 260ms var(--ease);
}
.drama-chapter-stage { margin-left: .4em; }
.drama-chapter.is-past { color: #ead6b2; background: rgba(240, 196, 138, .07); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .3); }
.drama-chapter.is-past::before { content: ""; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #f0c48a; opacity: .85; }
.drama-chapter.is-current {
  color: #2a1a0d; font-weight: 700; background: linear-gradient(180deg, #f6d29c, #e6a95e);
  box-shadow: 0 0 0 1px rgba(255, 230, 190, .5), 0 0 20px rgba(240, 196, 138, .38);
}

/* 剧目栏的一键沉浸声景：暖金描边，开着时整枚点亮 */
.public-drama-control.drama-soundscape {
  display: inline-flex; align-items: center; gap: 6px; border-color: rgba(240, 196, 138, .62); font-weight: 650; color: #fbe3bb;
  background: linear-gradient(180deg, rgba(240, 196, 138, .22), rgba(240, 196, 138, .08));
}
.public-drama-control.drama-soundscape.is-on {
  border-color: #f0c48a; color: #2a1a0d; background: linear-gradient(180deg, #f6d29c, #e6a95e); animation: drama-sound 3.2s ease-in-out infinite;
}
.public-drama-control:disabled { opacity: .5; cursor: not-allowed; }
@keyframes drama-sound { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 196, 138, 0); } 50% { box-shadow: 0 0 0 5px rgba(240, 196, 138, .2); } }

/* 对白：整句一次性在 DOM 里，回合框像电影字幕一样浮起，分句依次由浅转实；说话人名牌泛起一圈微光 */
.public-drama .drama-turn.is-active.is-enter { animation: drama-subtitle 460ms var(--ease) both; }
.public-drama .drama-turn.is-active .drama-clause { animation: drama-clause 640ms var(--ease) both; }
.public-drama .drama-turn.is-active .drama-clause:nth-child(2) { animation-delay: 170ms; }
.public-drama .drama-turn.is-active .drama-clause:nth-child(3) { animation-delay: 340ms; }
.public-drama .drama-turn.is-active .drama-clause:nth-child(4) { animation-delay: 510ms; }
.public-drama .drama-turn.is-active .drama-clause:nth-child(5) { animation-delay: 680ms; }
.public-drama .drama-turn.is-active .drama-clause:nth-child(n+6) { animation-delay: 850ms; }
.public-drama .drama-turn.is-active .drama-badge { animation: drama-name 1.1s var(--ease) both; }
.public-drama .drama-turn.is-active.is-a .drama-badge { --name-glow: rgba(236, 148, 98, .6); }
.public-drama .drama-turn.is-active.is-b .drama-badge { --name-glow: rgba(120, 166, 230, .6); }
@keyframes drama-subtitle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drama-clause { from { opacity: .12; } to { opacity: 1; } }
@keyframes drama-name { 0% { box-shadow: 0 0 0 0 var(--name-glow, rgba(240, 196, 138, .5)); } 45% { box-shadow: 0 0 16px 3px var(--name-glow, rgba(240, 196, 138, .5)); } 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 2px 8px rgba(0, 0, 0, .25); } }
.drama-keyhint { margin-left: auto; color: rgba(231, 223, 210, .52); font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.public-drama .drama-controls .btn-quiet.is-on { background: rgba(240, 196, 138, .18); color: #f6d6a6; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .45); }

/* 提问拍：角色转向你，暖色聚光的引号卡；预设回应是带呼吸感的心声卡 */
.public-drama .drama-turn.drama-ask {
  box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .6), inset 0 0 0 4px rgba(19, 15, 27, .55), inset 0 0 0 5px rgba(240, 196, 138, .18),
              0 0 54px rgba(240, 196, 138, .24), 0 22px 48px rgba(4, 3, 10, .55);
}
.drama-ask-quote { position: absolute; right: 14px; top: -10px; color: rgba(240, 196, 138, .34); font-family: var(--serif); font-size: 66px; line-height: 1; pointer-events: none; }
.drama-gaze { margin-top: 8px; color: #ebcb98; font-size: 13px; letter-spacing: .03em; }
.drama-respond-lead { margin: 6px 0 0; color: #d9cfbf; font-size: 13.5px; line-height: 1.6; }
.drama-preset-kicker {
  justify-self: start; padding: 0 8px; border-radius: var(--r-pill); background: rgba(240, 196, 138, .14); color: #f3cf98;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
}
.drama-preset.is-fictional .drama-preset-kicker { background: rgba(182, 156, 240, .18); color: #ddd0ff; }
.public-drama .drama-preset { animation: drama-heart 5.4s ease-in-out infinite; }
.public-drama .drama-preset:nth-child(2) { animation-delay: -1.3s; }
.public-drama .drama-preset:nth-child(3) { animation-delay: -2.6s; }
.public-drama .drama-preset:nth-child(4) { animation-delay: -3.9s; }
.public-drama .drama-preset.is-picked { animation: none; }
@keyframes drama-heart {
  0%, 100% { box-shadow: inset 0 0 0 1px var(--card-edge), 0 0 0 rgba(240, 196, 138, 0); }
  50% { box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .34), 0 0 22px rgba(240, 196, 138, .1); }
}

/* 回映拍：剧中微练习便签（一角胶带、略微倾斜的纸片）与带状态微光的确认签 */
.drama-memo {
  position: relative; margin: 6px 2px; padding: 16px 16px 12px; border-radius: 4px 16px 16px 16px; transform: rotate(-.35deg);
  background: linear-gradient(180deg, rgba(250, 226, 170, .15), rgba(250, 226, 170, .07)); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .3), 0 14px 30px rgba(0, 0, 0, .25);
}
.drama-memo::before { content: ""; position: absolute; left: 24px; top: -7px; width: 58px; height: 14px; border-radius: 2px; background: rgba(240, 196, 138, .34); transform: rotate(-3deg); }
.drama-memo-k { display: flex; align-items: center; gap: 6px; margin: 0; color: #f3cf98; font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.drama-memo-lead { margin: 4px 0 8px; color: #d9cfbf; font-size: 13px; }
.drama-memo ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.drama-memo li { position: relative; padding-left: 20px; color: #f6ecdc; font-family: var(--serif); font-size: 15px; line-height: 1.65; }
.drama-memo li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #f0c48a; }
.drama-confirms { gap: 8px 10px; }
.public-drama .drama-confirm-tag { position: relative; min-height: 40px; padding: 6px 16px 6px 30px; border-radius: 10px var(--r-pill) var(--r-pill) 10px; }
.public-drama .drama-confirm-tag::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: rgba(240, 214, 176, .32); transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.public-drama .drama-confirm-tag.is-on::before { background: #f0c48a; box-shadow: 0 0 10px #f0c48a; }
.public-drama .drama-confirm-tag:active { transform: translateY(1px) scale(.98); }

/* 共同编写下一集：剧情走向签卡、五景明信片（点一下舞台就换成那一景的预览），快速切换的两个下拉与卡片双向同步 */
.public-drama-panel { grid-template-columns: minmax(0, 1fr); }
.public-drama-panel .drama-step { min-width: 0; margin-top: 2px; }
.public-drama-panel .drama-sub-title { margin-bottom: 8px; }
.drama-choice-kicker { justify-self: start; color: #f3cf98; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.public-drama .drama-plots .drama-choice { min-height: 100%; }
.public-drama .drama-postcards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.public-drama .drama-postcards .drama-scene-card { transition: transform 220ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.public-drama .drama-postcards .drama-scene-card:nth-child(odd) { transform: rotate(-.8deg); }
.public-drama .drama-postcards .drama-scene-card:nth-child(even) { transform: rotate(.7deg); }
.public-drama .drama-postcards .drama-scene-card:hover,
.public-drama .drama-postcards .drama-scene-card.is-picked { transform: translateY(-3px) rotate(0deg); }
.drama-quick {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 10px; border-radius: 12px;
  background: rgba(8, 6, 16, .35); box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .14);
}
.drama-quick-k { color: #c9c2d6; font-size: 12.5px; letter-spacing: .08em; }
.public-drama-panel .drama-quick select { flex: 1 1 12rem; width: auto; min-width: 0; }

/* 共创回执：下一集分镜预告卡——氛围画幅、你的回应如何改写剧本、带名牌的首句预演 */
.drama-storyboard { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: stretch; }
.drama-storyboard-frame {
  position: relative; min-height: 210px; margin: 0; overflow: hidden; border-radius: 14px; background: #120f18;
  box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .3), 0 18px 40px rgba(0, 0, 0, .4);
}
.drama-storyboard-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: saturate(.94);
  animation: drama-kenburns 18s ease-in-out infinite alternate;
}
.drama-storyboard-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 5, 10, .9) 0 7%, rgba(6, 5, 10, 0) 7% 52%, rgba(10, 8, 16, .86) 93%, rgba(6, 5, 10, .9) 93%);
}
.drama-storyboard-frame figcaption { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12%; color: #f2e4cc; font-size: 13px; line-height: 1.5; }
.drama-storyboard-frame figcaption b { color: #fff; font-family: var(--serif); font-size: 17px; }
.drama-storyboard-body { display: grid; align-content: start; gap: 10px; min-width: 0; }
.drama-storyboard-body .drama-sub-title { margin: 0; }
.public-drama .drama-echo {
  margin: 0; padding: 10px 14px; border-left: 3px solid rgba(240, 196, 138, .55); border-radius: 0 12px 12px 0;
  background: rgba(255, 244, 228, .05); color: #e8dfd0; font-size: 14px; line-height: 1.7;
}
.drama-storyboard-body .drama-impact { margin-top: 0; }
.drama-storyboard-line { display: flex; align-items: flex-start; gap: 10px; }
.drama-storyboard-line .drama-badge { margin-top: 12px; }
.drama-storyboard-line .drama-receipt-hook { flex: 1; min-width: 0; margin-top: 0; }
.drama-prologue { display: grid; gap: 8px; }
.drama-prologue-line { display: flex; align-items: baseline; gap: 10px; margin: 0; color: #f4e3c8; font-family: var(--serif); line-height: 1.7; }
@keyframes drama-kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }

@media (max-width: 900px) {
  /* 平板与手机：剧目栏的工具胶囊收成一条可横向滑动的细轨，章回胶囊只给当前一集写出环节名，舞台更早露出来 */
  .public-drama-head { gap: 6px; }
  .public-drama-tools {
    flex: 1 1 100%; flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 88%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 88%, rgba(0, 0, 0, 0) 100%);
  }
  .public-drama-tools::-webkit-scrollbar { display: none; }
  .public-drama-tools > * { flex: none; }
  .drama-chapter { padding: 4px 10px; }
  .drama-chapter:not(.is-current) .drama-chapter-stage { display: none; }
  .drama-keyhint { display: none; }
  .public-drama .drama-postcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .drama-storyboard { grid-template-columns: minmax(0, 1fr); }
  .drama-storyboard-frame { min-height: 0; aspect-ratio: 16 / 7; }
}
@media (max-width: 640px) {
  .public-drama-tools select, .public-drama-tools .public-drama-control { padding: 6px 10px; font-size: 13px; }
  .drama-chapters { flex-wrap: nowrap; gap: 4px; }
  .drama-chapter { padding: 3px 9px; font-size: 12px; }
  .drama-chapter:not(.is-current) :is(.drama-chapter-pre, .drama-chapter-post) { display: none; }
  .drama-chapter.is-past::before { margin-right: 4px; }
  .public-drama .drama-postcards {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 46%); overflow-x: auto;
    scroll-snap-type: x mandatory; padding: 4px 2px 8px; scrollbar-width: thin;
  }
  .public-drama .drama-postcards .drama-scene-card { scroll-snap-align: start; }
  .drama-ask-quote { font-size: 48px; top: -6px; }
  .drama-memo li { font-size: 14px; }
}

/* ---------------------------------------------------------------- 2026-11-20 六大模块：微动态实景层与剧中人实时回响
   静态底图之上叠一层静音循环的实景短片，真正开始播放（playing）才挂 .is-ready 柔和淡入；没有短片、加载失败或
   减弱动效时只留静态图与 CSS 光效。剧中人实时回响卡挂在作答区与回映拍里，名牌、神态签、动作描写与诚实小字齐全。 */
.drama-backdrop-video {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 46%;
  opacity: 0; pointer-events: none; transition: opacity 1100ms var(--ease);
}
.drama-backdrop-video.is-ready { opacity: 1; }
.drama-stage.is-held .drama-backdrop-video { filter: grayscale(.6) brightness(.55); }
@media (prefers-reduced-motion: reduce) { .drama-backdrop-video { display: none; } }

.drama-live-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; }
.drama-live-ask {
  display: inline-flex; align-items: center; gap: 8px; border-color: rgba(240, 196, 138, .55); color: #ffe7c2;
  background: linear-gradient(180deg, rgba(240, 196, 138, .16), rgba(240, 196, 138, .06));
}
.drama-live-ask:hover:not(:disabled) { background: rgba(240, 196, 138, .24); color: #fff3df; }
.drama-live-promise { color: #cbbda5; font-size: 12.5px; line-height: 1.5; }
.drama-live-slot:empty { display: none; }
.drama-live-slot { margin-top: 12px; }
.drama-live {
  position: relative; display: grid; gap: 6px; padding: 14px 16px 12px 18px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(42, 33, 60, .92), rgba(24, 19, 34, .94));
  box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .3), 0 14px 34px rgba(0, 0, 0, .34);
  animation: drama-live-in 520ms var(--ease) both;
}
.drama-live::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, #f0c48a, rgba(240, 196, 138, .2));
}
.drama-live.is-a::before { background: linear-gradient(180deg, #f3b7c2, rgba(243, 183, 194, .2)); }
.drama-live-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.drama-live-tag {
  margin-left: auto; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; letter-spacing: .08em; color: #f6d9a4;
  background: rgba(240, 196, 138, .12); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .3);
}
.drama-live-say { margin: 0; color: #fff3e0; font-family: var(--serif); font-size: 17px; line-height: 1.75; }
.drama-live .drama-direction { margin: 0; }
.drama-live-note { margin: 2px 0 0; color: #b9ab94; font-size: 12px; line-height: 1.5; }
.drama-live-k { display: flex; align-items: center; gap: 8px; margin: 0; color: #f0d2a2; font-size: 13.5px; }
.drama-live.is-pending { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.drama-live.is-hold { background: linear-gradient(160deg, rgba(64, 30, 38, .92), rgba(34, 18, 24, .94)); box-shadow: inset 0 0 0 1px rgba(255, 168, 180, .4); }
.drama-live-dots i { background: #f0c48a; }
@keyframes drama-live-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html:lang(en) .drama-chapter-pre { margin-right: .28em; }
@media (max-width: 640px) {
  .drama-live { padding: 12px 12px 10px 14px; }
  .drama-live-say { font-size: 16px; }
  .drama-live-tag { margin-left: 0; }
}
/* 四语剧目栏：任何语言的章回胶囊在窄屏都收进一条可横滑的细轨，标题块允许收缩，不撑宽页面 */
.public-drama-head > div { min-width: 0; }
@media (max-width: 640px) {
  .drama-chapters { min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; contain: inline-size; }
  .public-drama-tools { contain: inline-size; }
  .drama-chapters::-webkit-scrollbar { display: none; }
  .drama-chapter { flex: none; }
}

/* ==== 2026-11-21 剧场章回与切剧深化 ==== */
/* 七集章回：解锁过的几集是可点的胶囊（回看或从那一集重新选择分支），还没解锁的几集落一把小锁、暗下去；当前一集仍是暖金。 */
.drama-chapter-item { display: inline-flex; flex: none; min-width: 0; }
button.drama-chapter { margin: 0; border: 0; }
.drama-chapter.is-open { cursor: pointer; }
.drama-chapter.is-open:not(.is-past) { color: #ead6b2; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .3); }
.drama-chapter.is-open:not(.is-past)::before {
  content: ""; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px #f0c48a;
}
.drama-chapter.is-open:hover {
  color: #fff3df; background: rgba(240, 196, 138, .16); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .6), 0 0 14px rgba(240, 196, 138, .18);
}
.drama-chapter.is-open:active { transform: translateY(1px); }
.drama-chapter.is-locked { color: rgba(233, 224, 208, .4); background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .08); }
.drama-chapter .drama-chapter-lock { width: 10px; height: 10px; margin-left: 5px; opacity: .75; }

/* 剧目栏：剧名下面一行「换一部短剧」「从头重演」；从头重演要再点一次才真正清空进度 */
.drama-heading { display: grid; justify-items: start; gap: 2px; }
.drama-reel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.drama-reel-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border: 0; border-radius: var(--r-pill);
  background: rgba(255, 244, 228, .05); color: #e8dccb; font-size: 12.5px; letter-spacing: .04em; box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .2);
  transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.drama-reel-btn:hover:not(:disabled) { background: rgba(240, 196, 138, .14); color: #fff3df; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .5); }
.drama-reel-btn.is-on { background: rgba(240, 196, 138, .18); color: #f6d6a6; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .55); }
.drama-reel-btn.is-armed, .drama-reel-btn.is-armed:hover:not(:disabled) {
  background: rgba(255, 112, 132, .14); color: #ffd0d7; box-shadow: inset 0 0 0 1px rgba(255, 140, 156, .45);
}
.drama-reel-btn:disabled { opacity: .55; }

/* 剧目架：不离开暗场，四部短剧并排成海报卡；正在上演的一部点亮，其余写着从哪一集接着看 */
.drama-shelf {
  display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: var(--panel-bg);
  box-shadow: inset 0 0 0 1px var(--panel-edge), 0 18px 44px rgba(0, 0, 0, .38); animation: drama-in 260ms var(--ease) both;
}
.drama-shelf[hidden] { display: none; }
.drama-shelf-note { margin: 0; color: #c9c2d6; font-size: 12.5px; line-height: 1.6; }
.drama-shelf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.drama-shelf-card {
  display: grid; align-content: start; gap: 5px; min-width: 0; padding: 6px 6px 10px; border: 0; border-radius: 14px;
  background: var(--card); color: var(--ink); text-align: start; box-shadow: inset 0 0 0 1px var(--card-edge);
  transition: transform 220ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.drama-shelf-card:hover:not(:disabled) {
  transform: translateY(-3px); background: var(--card-hover); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .45), 0 12px 28px rgba(0, 0, 0, .3);
}
.drama-shelf-card.is-current { cursor: default; background: rgba(240, 196, 138, .12); box-shadow: inset 0 0 0 1.5px var(--lamp), 0 0 22px rgba(240, 196, 138, .16); }
.drama-shelf-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: linear-gradient(160deg, #2a2236, #15111d); }
.drama-shelf-thumb img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 600ms var(--ease); }
.drama-shelf-card:hover:not(:disabled) .drama-shelf-thumb img { transform: scale(1.05); }
.drama-shelf-title { padding: 0 4px; color: #fff4e1; font-family: var(--serif); font-size: 15px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.drama-shelf-state { padding: 0 4px; color: #bdb6cc; font-size: 12px; }
.drama-shelf-card.is-current .drama-shelf-state { color: #f6d6a6; }

/* 一行安静的状态：接上次看到的地方、正在换剧、换剧没载入 */
.drama-notice {
  display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin: 0; padding: 6px 12px; border-radius: 12px;
  color: #f2e4cc; font-size: 13px; line-height: 1.5; background: rgba(240, 196, 138, .1); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .28);
  animation: drama-in 320ms var(--ease) both;
}
.drama-notice:empty { display: none; }
.drama-notice::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #f0c48a; box-shadow: 0 0 8px #f0c48a; }
.drama-notice.is-busy::before { animation: drama-presence 1.2s ease-in-out infinite; }
.drama-notice.is-error { color: #ffd0d7; background: rgba(255, 112, 132, .1); box-shadow: inset 0 0 0 1px rgba(255, 140, 156, .3); }
.drama-notice.is-error::before { background: #ff9fac; box-shadow: none; }

/* 顶栏声景：主胶囊一键同开同关，紧随其后的细分组里是环境音与台词朗读两枚小开关；手机上只留图标（名字仍在，读屏照读） */
.drama-sound {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px; border-radius: 16px;
  background: rgba(8, 6, 16, .35); box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .14);
}
.drama-sound-fine { display: inline-flex; align-items: center; gap: 2px; padding-left: 4px; border-left: 1px solid rgba(240, 214, 176, .16); }
.drama-sound .public-drama-control.drama-sound-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 0; border-radius: 11px; background: transparent;
  color: #d8cfc0; font-size: 12.5px; transition: background-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.drama-sound .public-drama-control.drama-sound-chip:hover:not(:disabled) { background: rgba(255, 244, 228, .08); color: #fff3df; }
.drama-sound .public-drama-control.drama-sound-chip.is-on { background: rgba(240, 196, 138, .16); color: #f6d6a6; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .42); }

/* 本集台词单：正在播的这一句暖金高亮；任意一句点一下，就跳过去重听、重看 */
.drama-script ul { gap: 4px; }
.drama-script-line > .drama-script-jump {
  display: flex; align-items: baseline; gap: 10px; flex: 1 1 auto; min-width: 0; padding: 6px 10px; border: 0; border-radius: 12px;
  background: transparent; color: inherit; text-align: inherit; transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.drama-script-line.is-b > .drama-script-jump { flex-direction: row-reverse; }
.drama-script-line > .drama-script-jump:hover { background: rgba(255, 244, 228, .07); }
.drama-script-line.is-now > .drama-script-jump { color: #fff; background: rgba(240, 196, 138, .14); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .45); }
.drama-script-line.is-now .drama-script-text { font-weight: 600; }

@media (max-width: 900px) {
  .drama-shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .drama-reel-btn { min-height: 28px; padding: 3px 10px; font-size: 12px; }
  .drama-shelf { padding: 10px; border-radius: 16px; }
  .drama-shelf-grid { gap: 8px; }
  .drama-shelf-title { font-size: 14px; }
  .drama-chapter .drama-chapter-lock { margin-left: 3px; }
  .drama-sound-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .drama-sound .public-drama-control.drama-sound-chip { width: 34px; height: 34px; padding: 0; justify-content: center; }
}

/* 全站轻提示稳稳水平居中：通用 rise 动画结束时会把 translateX(-50%) 覆盖掉，这里换成保留居中的淡入（勋章另有 award-in） */
.toast:not(.is-award) { animation-name: toast-rise; }
@keyframes toast-rise { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translateX(-50%); } }

/* ==== 2026-11-21 九景舞台光影与剧场四玩法 ==== */
/* 新增四景各有一套舞台光：深夜书房的暖铜台灯与靛蓝书架暗角、午后咖啡馆斜射的百叶窗光束与空气微尘、暮色天台的紫金天光与晚风、
   雨夜车内的仪表盘暖光与前窗雨丝下流动的城市霓虹。仍然只靠剧场的 data-scene 换景；减弱动效时由全站规则收成静止的终态。 */
.drama-theatre[data-scene="study"] {
  --char-tone: sepia(.1) saturate(1.02) hue-rotate(-3deg); --rim: rgba(255, 196, 120, .72); --spot: rgba(255, 184, 108, .28);
  --haze-top: rgba(122, 132, 220, .14); --haze-mist: rgba(255, 214, 160, .03); --haze-floor-soft: rgba(24, 20, 40, .36); --haze-floor: rgba(12, 10, 22, .88);
}
.drama-theatre[data-scene="cafe"] {
  --char-tone: sepia(.08) saturate(1.06) hue-rotate(-6deg); --rim: rgba(255, 216, 150, .82); --spot: rgba(255, 204, 136, .26);
  --haze-top: rgba(255, 224, 164, .2); --haze-mist: rgba(255, 236, 200, .05); --haze-floor-soft: rgba(48, 28, 12, .46); --haze-floor: rgba(24, 14, 8, .92);
}
.drama-theatre[data-scene="rooftop"] {
  --char-tone: sepia(.04) saturate(1.03) hue-rotate(-10deg); --rim: rgba(255, 192, 162, .72); --spot: rgba(238, 170, 200, .24);
  --haze-top: rgba(178, 142, 255, .18); --haze-mist: rgba(255, 198, 172, .05); --haze-floor-soft: rgba(26, 20, 46, .36); --haze-floor: rgba(14, 11, 28, .88);
}
.drama-theatre[data-scene="car"] {
  --char-tone: saturate(.9) hue-rotate(4deg); --rim: rgba(255, 172, 122, .64); --spot: rgba(206, 124, 222, .2);
  --haze-top: rgba(150, 112, 232, .14); --haze-mist: rgba(124, 182, 255, .06); --haze-floor-soft: rgba(10, 10, 24, .42); --haze-floor: rgba(6, 6, 16, .9);
}
/* 缺图时同色系渐变兜底（舞台、九景明信片与入口页小景共用） */
.drama-backdrop[data-scene="study"], .drama-scene-card[data-scene="study"] .drama-scene-thumb, .lp-drama-scene[data-scene="study"] .lp-drama-thumb {
  background: radial-gradient(ellipse at 14% 40%, rgba(255, 190, 110, .55), rgba(255, 190, 110, 0) 50%), linear-gradient(160deg, #2a2440, #141222);
}
.drama-backdrop[data-scene="cafe"], .drama-scene-card[data-scene="cafe"] .drama-scene-thumb, .lp-drama-scene[data-scene="cafe"] .lp-drama-thumb {
  background: radial-gradient(ellipse at 80% 18%, rgba(255, 218, 146, .62), rgba(255, 218, 146, 0) 55%), linear-gradient(160deg, #8a5a32, #3a2618);
}
.drama-backdrop[data-scene="rooftop"], .drama-scene-card[data-scene="rooftop"] .drama-scene-thumb, .lp-drama-scene[data-scene="rooftop"] .lp-drama-thumb {
  background: linear-gradient(180deg, #2c2a5c 0%, #6c4a7c 42%, #e09a6e 64%, #2a2238 100%);
}
.drama-backdrop[data-scene="car"], .drama-scene-card[data-scene="car"] .drama-scene-thumb, .lp-drama-scene[data-scene="car"] .lp-drama-thumb {
  background: radial-gradient(ellipse at 62% 28%, rgba(222, 122, 204, .4), rgba(222, 122, 204, 0) 55%),
              radial-gradient(ellipse at 30% 62%, rgba(255, 170, 100, .3), rgba(255, 170, 100, 0) 45%), linear-gradient(160deg, #1c1a30, #0b0a14);
}

/* 深夜书房：书桌台灯的暖铜光晕与漫向右下地板的琥珀光池 + 靛蓝静谧的书架暗角 + 灯下微尘 + 杯口热气 */
.drama-theatre[data-scene="study"] .drama-lightpool::before {
  left: -6%; top: 16%; width: 36%; height: 54%; opacity: .68;
  background: radial-gradient(closest-side, rgba(255, 190, 106, .52), rgba(255, 190, 106, 0)); animation: drama-lamp 7.6s ease-in-out infinite;
}
.drama-theatre[data-scene="study"] .drama-lightpool::after {
  right: -8%; bottom: -10%; width: 62%; height: 40%; opacity: .5;
  background: radial-gradient(closest-side, rgba(255, 182, 104, .3), rgba(255, 182, 104, 0)); animation: drama-lamp 10.4s ease-in-out -4s infinite;
}
.drama-theatre[data-scene="study"] .drama-weather i:nth-child(1) {
  left: 56%; opacity: .85;
  background: linear-gradient(90deg, rgba(34, 36, 98, 0) 0%, rgba(30, 32, 92, .32) 46%, rgba(20, 20, 70, .52) 100%),
              radial-gradient(ellipse 60% 70% at 100% 10%, rgba(16, 16, 54, .5), rgba(16, 16, 54, 0) 72%);
  animation: drama-dusk 16s ease-in-out infinite alternate;
}
.drama-theatre[data-scene="study"] .drama-weather i:nth-child(2) {
  inset: 6% 52% 24% -4%; opacity: .7;
  background-image: radial-gradient(circle, rgba(255, 228, 182, .75) 0 1px, rgba(255, 228, 182, 0) 1.8px),
                    radial-gradient(circle, rgba(255, 214, 160, .5) 0 .8px, rgba(255, 214, 160, 0) 1.6px);
  background-size: 76px 92px, 53px 67px; background-position: 0 0, 26px 34px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 40% 45%, #000 0%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(ellipse 60% 60% at 40% 45%, #000 0%, rgba(0, 0, 0, 0) 100%);
  animation: drama-dust 30s linear infinite;
}
.drama-theatre[data-scene="study"] .drama-weather i:nth-child(3) {
  inset: auto auto 44% 18%; width: 38px; height: 104px; opacity: .36; filter: blur(8px);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 244, 230, .5), rgba(255, 244, 230, 0) 72%);
  animation: drama-steam 7.4s ease-out infinite;
}

/* 午后街角咖啡馆：斜射的暖金百叶窗光束 + 阳光里浮游的微尘 + 吧台手冲的热雾；窗边日光一呼一吸 */
.drama-theatre[data-scene="cafe"] .drama-weather i:nth-child(1) {
  inset: -12% -16% -12% 18%; opacity: .78; mix-blend-mode: screen;
  background: repeating-linear-gradient(118deg, rgba(255, 216, 146, 0) 0 26px, rgba(255, 216, 146, .2) 26px 34px, rgba(255, 216, 146, 0) 34px 60px);
  -webkit-mask-image: linear-gradient(205deg, #000 8%, rgba(0, 0, 0, .45) 46%, rgba(0, 0, 0, 0) 78%);
  mask-image: linear-gradient(205deg, #000 8%, rgba(0, 0, 0, .45) 46%, rgba(0, 0, 0, 0) 78%);
  animation: drama-beam 11s ease-in-out infinite alternate;
}
.drama-theatre[data-scene="cafe"] .drama-weather i:nth-child(2) {
  inset: -10% -6% 10% 30%; opacity: .75;
  background-image: radial-gradient(circle, rgba(255, 240, 206, .8) 0 1px, rgba(255, 240, 206, 0) 1.9px),
                    radial-gradient(circle, rgba(255, 226, 176, .55) 0 .9px, rgba(255, 226, 176, 0) 1.7px);
  background-size: 92px 108px, 64px 80px; background-position: 0 0, 30px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 60% 40%, #000 0%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(ellipse 70% 65% at 60% 40%, #000 0%, rgba(0, 0, 0, 0) 100%);
  animation: drama-dust 34s linear infinite;
}
.drama-theatre[data-scene="cafe"] .drama-weather i:nth-child(3) {
  inset: auto auto 40% 12%; width: 48px; height: 128px; opacity: .4; filter: blur(9px);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 248, 238, .55), rgba(255, 248, 238, 0) 72%);
  animation: drama-steam 6.8s ease-out infinite;
}
.drama-theatre[data-scene="cafe"] .drama-lightpool::before {
  right: -10%; top: -12%; width: 54%; height: 70%; opacity: .7;
  background: radial-gradient(closest-side, rgba(255, 228, 160, .5), rgba(255, 228, 160, 0)); animation: drama-lamp 9.6s ease-in-out infinite;
}
.drama-theatre[data-scene="cafe"] .drama-lightpool::after {
  left: 28%; bottom: -12%; width: 62%; height: 36%; opacity: .5;
  background: radial-gradient(closest-side, rgba(255, 204, 132, .28), rgba(255, 204, 132, 0)); animation: drama-lamp 12s ease-in-out -5s infinite;
}
/* 咖啡馆底图最亮：暗角、场景签、旁白条、回合框与控制条的底色各加深一层，白字与暖金字的对比依旧清楚 */
.drama-theatre[data-scene="cafe"] .drama-vignette {
  background: radial-gradient(ellipse at 50% 40%, rgba(24, 14, 8, 0) 44%, rgba(24, 14, 8, .5) 100%),
              linear-gradient(180deg, rgba(24, 14, 8, .46) 0%, rgba(24, 14, 8, 0) 24%, rgba(24, 14, 8, 0) 56%, rgba(24, 14, 8, .5) 100%);
}
.drama-theatre[data-scene="cafe"] .drama-scene-tag { background: rgba(22, 14, 10, .72); }
.drama-theatre[data-scene="cafe"] .drama-hook:not(.is-brief) { background: linear-gradient(90deg, rgba(22, 14, 10, .84), rgba(22, 14, 10, .66)); }
.drama-theatre[data-scene="cafe"] .drama-turn.is-active { background: linear-gradient(180deg, rgba(31, 25, 40, .95), rgba(19, 15, 27, .96)); }
.drama-theatre[data-scene="cafe"] .drama-turn.is-echo, .drama-theatre[data-scene="cafe"] .drama-turn.is-quiet { background: rgba(22, 16, 22, .8); }
.drama-theatre[data-scene="cafe"] .drama-controls { background: rgba(18, 12, 14, .84); }

/* 暮色天台：紫金晚霞的天光 + 缓缓掠过天际的晚风云影 + 两侧串灯的明灭 + 甲板上方一道风过的柔光 */
.drama-theatre[data-scene="rooftop"] .drama-lightpool::before {
  left: 16%; top: 12%; width: 68%; height: 46%; opacity: .62;
  background: radial-gradient(closest-side, rgba(255, 178, 122, .44), rgba(255, 178, 122, 0)); animation: drama-lamp 11s ease-in-out infinite;
}
.drama-theatre[data-scene="rooftop"] .drama-lightpool::after {
  left: -12%; top: -34%; width: 124%; height: 64%; opacity: .5;
  background: radial-gradient(closest-side, rgba(172, 132, 255, .3), rgba(172, 132, 255, 0)); animation: drama-dusk 15s ease-in-out infinite alternate;
}
.drama-theatre[data-scene="rooftop"] .drama-weather i:nth-child(1) {
  inset: -4% -30% 52% -30%; opacity: .55; filter: blur(10px);
  background: radial-gradient(ellipse 22% 30% at 22% 46%, rgba(236, 206, 255, .22), rgba(236, 206, 255, 0) 72%),
              radial-gradient(ellipse 26% 26% at 62% 30%, rgba(255, 214, 196, .18), rgba(255, 214, 196, 0) 72%),
              radial-gradient(ellipse 20% 24% at 88% 56%, rgba(214, 190, 255, .18), rgba(214, 190, 255, 0) 72%);
  animation: drama-breeze 34s ease-in-out infinite alternate;
}
.drama-theatre[data-scene="rooftop"] .drama-weather i:nth-child(2) {
  opacity: .8;
  background: radial-gradient(circle at 3% 30%, rgba(255, 214, 140, .9) 0 1.6px, rgba(255, 214, 140, 0) 6px),
              radial-gradient(circle at 8% 34%, rgba(255, 214, 140, .85) 0 1.4px, rgba(255, 214, 140, 0) 5px),
              radial-gradient(circle at 13% 37%, rgba(255, 220, 150, .8) 0 1.6px, rgba(255, 220, 150, 0) 6px),
              radial-gradient(circle at 17% 40%, rgba(255, 214, 140, .8) 0 1.4px, rgba(255, 214, 140, 0) 5px),
              radial-gradient(circle at 86% 32%, rgba(255, 214, 140, .85) 0 1.6px, rgba(255, 214, 140, 0) 6px),
              radial-gradient(circle at 91% 36%, rgba(255, 220, 150, .8) 0 1.4px, rgba(255, 220, 150, 0) 5px),
              radial-gradient(circle at 96% 30%, rgba(255, 214, 140, .85) 0 1.6px, rgba(255, 214, 140, 0) 6px);
  animation: drama-glint 5.2s ease-in-out infinite;
}
.drama-theatre[data-scene="rooftop"] .drama-weather i:nth-child(3) {
  top: 34%; bottom: 30%; right: auto; width: 42%; opacity: .55; mix-blend-mode: screen;
  background: linear-gradient(98deg, rgba(255, 226, 214, 0) 0%, rgba(255, 226, 214, .1) 45%, rgba(255, 236, 226, .16) 52%, rgba(255, 226, 214, 0) 100%);
  animation: drama-sweep 18s ease-in-out infinite;
}

/* 雨夜车内：前窗雨丝缓缓滑落 + 窗外流动的城市霓虹光晕 + 一盏盏掠过的街灯 + 仪表盘与中控的幽微暖光 */
.drama-theatre[data-scene="car"] .drama-weather i:nth-child(1) {
  opacity: .75;
  -webkit-mask-image: radial-gradient(ellipse 40% 24% at 50% 32%, #000 0%, rgba(0, 0, 0, .6) 62%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(ellipse 40% 24% at 50% 32%, #000 0%, rgba(0, 0, 0, .6) 62%, rgba(0, 0, 0, 0) 100%);
}
.drama-theatre[data-scene="car"] .drama-weather i:nth-child(1)::before {
  content: ""; position: absolute; inset: -20%; transform: rotate(4deg);
  background: repeating-linear-gradient(180deg, rgba(214, 226, 255, 0) 0 34px, rgba(214, 226, 255, .34) 34px 58px, rgba(214, 226, 255, 0) 58px 96px);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 1px, rgba(0, 0, 0, 0) 1px 23px);
  mask-image: repeating-linear-gradient(90deg, #000 0 1px, rgba(0, 0, 0, 0) 1px 23px);
  animation: drama-streak 2.6s linear infinite;
}
.drama-theatre[data-scene="car"] .drama-weather i:nth-child(2) {
  inset: 12% 14% 50% 16%; opacity: .7; filter: blur(7px); mix-blend-mode: screen;
  background: radial-gradient(ellipse 12% 30% at 18% 52%, rgba(255, 176, 96, .5), rgba(255, 176, 96, 0) 72%),
              radial-gradient(ellipse 10% 34% at 46% 40%, rgba(236, 110, 210, .42), rgba(236, 110, 210, 0) 72%),
              radial-gradient(ellipse 12% 30% at 72% 48%, rgba(110, 196, 255, .4), rgba(110, 196, 255, 0) 72%),
              radial-gradient(ellipse 9% 26% at 88% 36%, rgba(255, 120, 150, .36), rgba(255, 120, 150, 0) 72%);
  animation: drama-neon 13s ease-in-out infinite alternate;
}
.drama-theatre[data-scene="car"] .drama-weather i:nth-child(3) {
  top: 12%; bottom: 50%; right: auto; width: 30%; opacity: .5; mix-blend-mode: screen;
  background: linear-gradient(100deg, rgba(255, 210, 150, 0) 0%, rgba(255, 214, 160, .16) 46%, rgba(255, 230, 190, .26) 50%,
                                      rgba(255, 214, 160, .16) 54%, rgba(255, 210, 150, 0) 100%);
  animation: drama-sweep 6.4s ease-in infinite;
}
.drama-theatre[data-scene="car"] .drama-lightpool::before {
  left: 16%; top: 44%; width: 32%; height: 30%; opacity: .6;
  background: radial-gradient(closest-side, rgba(255, 168, 88, .42), rgba(255, 168, 88, 0)); animation: drama-lamp 6.2s ease-in-out infinite;
}
.drama-theatre[data-scene="car"] .drama-lightpool::after {
  left: 38%; top: 58%; width: 26%; height: 24%; opacity: .45;
  background: radial-gradient(closest-side, rgba(126, 190, 255, .26), rgba(126, 190, 255, 0)); animation: drama-lamp 8.8s ease-in-out -3s infinite;
}
@keyframes drama-beam { from { opacity: .55; transform: translateX(-1.5%); } to { opacity: .95; transform: translateX(1.5%); } }
@keyframes drama-breeze { from { transform: translateX(-7%); } to { transform: translateX(7%); } }
@keyframes drama-neon { from { opacity: .5; transform: translateX(-3%); } to { opacity: .88; transform: translateX(3%); } }
@keyframes drama-streak { from { background-position: 0 0; } to { background-position: 0 96px; } }

/* 潜台词透镜：舞台控制条里的一枚开关（提问拍在作答面板的标题旁）；剧场潜台词手札在舞台下方以行高从零展开的过渡浮现与收起 */
.drama-respond-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.drama-respond .drama-lens-toggle {
  min-height: 30px; padding: 4px 12px; gap: 6px; border-radius: var(--r-pill); color: #f3d9ad; font-size: 12.5px; font-weight: 650;
  background: rgba(240, 196, 138, .08); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .36);
}
.drama-respond .drama-lens-toggle:hover { background: rgba(240, 196, 138, .16); color: #fff0d6; }
.drama-respond .drama-lens-toggle.is-on {
  background: rgba(240, 196, 138, .22); color: #fff3df; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .7), 0 0 14px rgba(240, 196, 138, .2);
}
.drama-subtext {
  display: grid; grid-template-rows: 0fr; min-width: 0; opacity: 0; visibility: hidden;
  transition: grid-template-rows 480ms var(--ease), opacity 320ms var(--ease), margin 480ms var(--ease), visibility 0s linear 480ms;
}
.drama-subtext.is-open {
  grid-template-rows: 1fr; opacity: 1; visibility: visible;
  transition: grid-template-rows 480ms var(--ease), opacity 420ms var(--ease) 80ms, margin 480ms var(--ease), visibility 0s;
}
.drama-dialogue > .drama-subtext { grid-column: full; grid-row: panel; justify-self: center; width: min(960px, calc(100% - 48px)); }
.drama-dialogue > .drama-subtext.is-open { margin-top: 12px; }
.drama-respond .drama-subtext.is-open { margin: 12px 0 2px; }
.drama-subtext-card {
  min-height: 0; overflow: hidden; border-radius: 18px; color: #f4ead8;
  background: linear-gradient(165deg, rgba(250, 226, 180, .15), rgba(240, 196, 138, .06) 55%, rgba(182, 156, 240, .07));
  box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .3), 0 18px 40px rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1);
}
.drama-subtext-k {
  display: flex; align-items: center; gap: 7px; margin: 0; padding: 12px 18px 0; color: var(--lamp);
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
}
.drama-subtext-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin: 0; padding: 10px 18px 16px; }
.drama-subtext-row { display: grid; align-content: start; gap: 4px; min-width: 0; padding-left: 11px; border-left: 2px solid rgba(240, 196, 138, .55); }
.drama-subtext-row.is-a { border-left-color: var(--cast-a-edge); }
.drama-subtext-row.is-b { border-left-color: var(--cast-b-edge); }
.drama-subtext-row dt { color: #f3cf98; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.drama-subtext-row.is-a dt { color: #f4c19d; }
.drama-subtext-row.is-b dt { color: #bcd4f5; }
.drama-subtext-row dd { margin: 0; color: #f6eddf; font-family: var(--serif); font-size: 15px; line-height: 1.7; }

/* 平行支线对照：上一集结尾的几个共创方向各自怎样开场；正在上演的一条点亮，其余可以原地换走、从这一集第一句重演 */
.drama-branches {
  display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: var(--panel-bg);
  box-shadow: inset 0 0 0 1px var(--panel-edge), 0 18px 44px rgba(0, 0, 0, .38); animation: drama-in 260ms var(--ease) both;
}
.drama-branches[hidden] { display: none; }
.drama-branches-head { display: grid; gap: 4px; }
.drama-branches-k { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--lamp); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.drama-branches-note { margin: 0; color: #c9c2d6; font-size: 12.5px; line-height: 1.6; }
.drama-branches-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.drama-branch {
  display: grid; align-content: start; gap: 8px; min-width: 0; padding: 12px 14px 14px; border-radius: 14px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--card-edge);
}
.drama-branch.is-current { background: rgba(240, 196, 138, .1); box-shadow: inset 0 0 0 1.5px var(--lamp), 0 0 22px rgba(240, 196, 138, .14); }
.drama-branch-tag {
  justify-self: start; margin: 0; padding: 1px 9px; border-radius: var(--r-pill); background: rgba(182, 156, 240, .14); color: #ddd0ff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
}
.drama-branch.is-current .drama-branch-tag { background: rgba(240, 196, 138, .2); color: #f8dcae; }
.drama-branch-title { margin: 0; color: #fff4e1; font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.45; }
.drama-branch-toward { margin: 0; color: #bdb6cc; font-size: 12.5px; line-height: 1.6; }
.drama-branch-lines { display: grid; gap: 6px; margin: 0; padding: 8px 0 0; list-style: none; border-top: 1px dashed rgba(240, 214, 176, .16); }
.drama-branch-line { display: flex; align-items: baseline; gap: 8px; color: #ece3d4; font-family: var(--serif); font-size: 14px; line-height: 1.65; }
.drama-branch-line .drama-badge { padding: 1px 8px; font-size: 11.5px; }
.drama-branch-say { min-width: 0; }
.drama-branch-go { justify-self: start; gap: 6px; min-height: 34px; margin-top: 2px; padding: 6px 14px; font-size: 13.5px; }

/* 上台前先排练一句：作答面板下沿的折叠抽屉；排练回响卡上半是对方可能的第一反应，下半是温和的听感镜映 */
.drama-rehearse { margin-top: 14px; border-radius: 16px; background: rgba(8, 6, 16, .3); box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .16); }
.drama-rehearse > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px 14px;
  border-radius: 16px; color: #f3e2c6; font-size: 14px; font-weight: 650;
}
.drama-rehearse > summary::-webkit-details-marker { display: none; }
.drama-rehearse > summary::after {
  content: ""; width: 7px; height: 7px; margin-left: auto; border-right: 2px solid rgba(240, 196, 138, .8); border-bottom: 2px solid rgba(240, 196, 138, .8);
  transform: rotate(45deg); transition: transform 200ms var(--ease);
}
.drama-rehearse[open] > summary::after { transform: rotate(-135deg); }
.drama-rehearse > summary:hover { background: rgba(255, 244, 228, .04); }
.drama-rehearse > summary .icon { color: var(--lamp); }
.drama-rehearse-tag {
  padding: 1px 9px; border-radius: var(--r-pill); background: rgba(182, 156, 240, .16); color: #ddd0ff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
}
.drama-rehearse[open] > summary { border-radius: 16px 16px 0 0; box-shadow: inset 0 -1px 0 rgba(240, 214, 176, .14); }
.drama-rehearse-box { display: grid; gap: 4px; padding: 10px 14px 14px; animation: drama-in 260ms var(--ease) both; }
.drama-rehearse-lead { margin: 0; color: #d9cfbf; font-size: 13px; line-height: 1.65; }
.drama-rehearse-own { padding-right: 14px; }
.drama-rehearse-input {
  flex: 1; min-width: 0; min-height: 3.2em; padding: 8px 0; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; line-height: 1.6; resize: vertical;
}
.drama-rehearse-input::placeholder { color: #9e97b0; }
.drama-rehearse-input:focus-visible { outline: none; }
.drama-rehearse-slot:empty { display: none; }
.drama-rehearse-slot { margin-top: 10px; }
.drama-rehearse-reply {
  display: grid; overflow: hidden; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .3), 0 14px 34px rgba(0, 0, 0, .34);
  animation: drama-live-in 520ms var(--ease) both;
}
.drama-rehearse-half { display: grid; gap: 6px; padding: 12px 16px; }
.drama-rehearse-half.is-reaction { background: linear-gradient(160deg, rgba(42, 33, 60, .94), rgba(24, 19, 34, .95)); }
.drama-rehearse-reply.is-a .drama-rehearse-half.is-reaction { box-shadow: inset 3px 0 0 rgba(243, 183, 194, .7); }
.drama-rehearse-reply.is-b .drama-rehearse-half.is-reaction { box-shadow: inset 3px 0 0 rgba(166, 198, 240, .7); }
.drama-rehearse-half.is-mirror { background: linear-gradient(160deg, rgba(26, 72, 60, .7), rgba(16, 48, 40, .74)); box-shadow: inset 0 1px 0 rgba(150, 226, 194, .28); }
.drama-rehearse-k { display: flex; align-items: center; gap: 6px; margin: 0; color: #f0d2a2; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; }
.drama-rehearse-half.is-mirror .drama-rehearse-k { color: #a8ecd0; }
.drama-rehearse-say { margin: 0; color: #fff3e0; font-family: var(--serif); font-size: 17px; line-height: 1.75; }
.drama-rehearse-half .drama-direction { margin: 0; }
.drama-rehearse-mirror { margin: 0; color: #e4f7ef; font-family: var(--serif); font-size: 15.5px; line-height: 1.75; }
.drama-rehearse-reply > .drama-live-note { margin: 0; padding: 8px 16px 11px; background: rgba(12, 10, 20, .72); }
.drama-rehearse-reply.is-pending {
  grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(24, 19, 34, .9);
}
.drama-rehearse-reply.is-hold {
  gap: 6px; padding: 14px 16px; background: linear-gradient(160deg, rgba(64, 30, 38, .92), rgba(34, 18, 24, .94));
  box-shadow: inset 0 0 0 1px rgba(255, 168, 180, .4);
}

/* 保存本集剧场手札：与「今日微行动书签」同一种只在本机生成的纯文本；生成后在按钮旁留一行说明 */
.drama-notes-save { gap: 6px; }
.drama-notes-note:empty { display: none; }
.drama-notes-note { flex-basis: 100%; color: #bfe0cc; }

/* 剧场里的换剧架：八部短剧按四个主题筛选，每张海报左上角落一枚主题签；筛选只在原处显隐 */
.drama-shelf-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.drama-shelf-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.drama-shelf-filter {
  min-height: 30px; padding: 4px 13px; border: 0; border-radius: var(--r-pill); background: rgba(255, 244, 228, .05); color: #e8dccb;
  font-size: 12.5px; letter-spacing: .04em; box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .2);
  transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.drama-shelf-filter:hover { background: rgba(240, 196, 138, .14); color: #fff3df; }
.drama-shelf-filter.is-on { background: linear-gradient(180deg, #f6d29c, #e6a95e); color: #2a1a0d; font-weight: 700; box-shadow: 0 0 14px rgba(240, 196, 138, .3); }
.drama-shelf-grid { min-width: 0; }
.drama-shelf-card[hidden] { display: none; }
.drama-shelf-thumb { position: relative; }
.drama-shelf-theme {
  position: absolute; left: 6px; top: 6px; padding: 1px 8px; border-radius: var(--r-pill); background: rgba(14, 11, 24, .72); color: #f6d6a6;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .34);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* 首页：八部互动短剧主题策展架与九景舞台速览条——一块暗场剧场底的策展厅，海报卡、主题胶囊与一条可横滑的九景小景 */
#public-drama .pub-curation {
  margin-bottom: clamp(22px, 3vw, 36px); padding: clamp(18px, 2.6vw, 30px); border-radius: 22px; color: #f3ead9;
  background: radial-gradient(900px 360px at 88% -10%, rgba(240, 180, 110, .16), rgba(240, 180, 110, 0) 70%),
              radial-gradient(700px 320px at 0% 110%, rgba(150, 104, 196, .18), rgba(150, 104, 196, 0) 70%),
              linear-gradient(150deg, #191527 0%, #221a35 56%, #30222e 100%);
  box-shadow: 0 26px 70px -34px rgba(27, 31, 58, .7), inset 0 0 0 1px rgba(240, 196, 138, .18);
}
#public-drama .pub-curation :focus-visible { outline-color: #f0c48a; }
#public-drama .pub-curation .pub-kicker { color: #f0c48a; }
.pub-curation-head { display: grid; gap: 6px; max-width: 760px; }
#public-drama .pub-curation-head h3 {
  color: #fff4e1; font-family: var(--serif); font-size: clamp(21px, 2.2vw, 28px); font-weight: 600; line-height: 1.35; letter-spacing: -.01em;
}
#public-drama .pub-curation-lead { color: #d6cbe0; font-size: 14.5px; line-height: 1.75; }
.pub-shelf-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 14px; }
.pub-shelf-filter {
  min-height: 34px; padding: 5px 15px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255, 244, 228, .06); color: #eadfcc;
  font-size: 13.5px; font-weight: 600; letter-spacing: .04em; box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .24);
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.pub-shelf-filter:hover { background: rgba(240, 196, 138, .14); color: #fff3df; }
.pub-shelf-filter.is-on { background: linear-gradient(180deg, #f6d29c, #e6a95e); color: #2a1a0d; box-shadow: 0 6px 18px rgba(240, 196, 138, .28); }
.pub-shelf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.pub-shelf-card {
  display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; border-radius: 16px; background: rgba(255, 244, 228, .05);
  box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .16); transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}
.pub-shelf-card[hidden] { display: none; }
.pub-shelf-card:hover, .pub-shelf-card:focus-within {
  transform: translateY(-3px); background: rgba(255, 244, 228, .08); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .5), 0 18px 40px rgba(0, 0, 0, .35);
}
.pub-shelf-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(160deg, #2a2236, #15111d); }
#public-drama .pub-shelf-thumb img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 700ms ease; }
.pub-shelf-card:hover .pub-shelf-thumb img { transform: scale(1.05); }
.pub-shelf-thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14, 11, 24, 0) 52%, rgba(14, 11, 24, .6) 100%);
}
.pub-shelf-theme {
  position: absolute; z-index: 1; left: 10px; top: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(14, 11, 24, .72); color: #f6d6a6;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .36);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pub-shelf-body { display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 12px 14px 14px; min-width: 0; }
#public-drama .pub-shelf-scene { color: #e7c48e; font-size: 12px; line-height: 1.5; letter-spacing: .03em; }
#public-drama .pub-shelf-title { color: #fff4e1; font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
#public-drama .pub-shelf-intro { color: #cfc4d8; font-size: 13.5px; line-height: 1.7; }
#public-drama .pub-shelf-go {
  justify-self: start; gap: 6px; min-height: 36px; margin-top: 6px; padding: 7px 16px; font-size: 14px; color: #2a1a0d;
  background: linear-gradient(180deg, #f6d29c, #e6a95e); box-shadow: 0 8px 20px rgba(232, 168, 92, .26);
}
#public-drama .pub-shelf-go:hover { background: linear-gradient(180deg, #f9dcae, #ebb46e); }
.pub-stage-strip { display: grid; gap: 10px; min-width: 0; margin-top: clamp(22px, 2.6vw, 32px); padding-top: clamp(16px, 2vw, 22px); border-top: 1px solid rgba(240, 214, 176, .14); }
.pub-stage-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
#public-drama .pub-stage-lead { color: #cfc4d8; font-size: 13.5px; }
.pub-stage-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(156px, 19.2%, 212px); gap: 12px; min-width: 0; padding: 4px 2px 10px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(240, 196, 138, .4) transparent;
}
#public-drama .pub-stage-rail > .pub-scene-links { display: contents; }
#public-drama .pub-stage-tile {
  display: grid; grid-template-rows: auto 1fr; min-width: 0; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: rgba(255, 244, 228, .05); color: #f3ead9; text-align: start; scroll-snap-align: start; box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .16);
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}
#public-drama .pub-stage-tile:hover, #public-drama .pub-stage-tile:focus-visible {
  transform: translateY(-3px); background: rgba(255, 244, 228, .09); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .55), 0 14px 30px rgba(0, 0, 0, .32);
}
.pub-stage-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(160deg, #2a2236, #15111d); }
#public-drama .pub-stage-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; object-fit: cover; }
.pub-stage-video {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity 600ms ease;
}
.pub-stage-video.is-ready { opacity: 1; }
#public-drama .pub-stage-tile .pub-story-body { display: grid; align-content: start; gap: 4px; padding: 10px 12px 12px; }
#public-drama .pub-stage-tile .pub-story-body strong { color: #fff4e1; font-size: 14px; font-weight: 650; line-height: 1.45; }
#public-drama .pub-stage-tile .pub-story-body > span {
  display: -webkit-box; overflow: hidden; color: #cbbfd6; font-size: 12.5px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

@media (max-width: 900px) {
  .drama-branches-grid { grid-template-columns: minmax(0, 1fr); }
  .pub-shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* 手机：控制条多了一枚透镜开关，主按钮占满余下的宽度、长标签换行而不撑出页面；手札三行竖排；
     换剧架与首页海报架都收成一条可横滑的海报轨，不把舞台和页面挤长 */
  .drama-controls > .btn-primary { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px; white-space: normal; text-align: center; line-height: 1.25; }
  .drama-dialogue > .drama-subtext { width: calc(100% - 8px); }
  .drama-subtext-k { padding: 10px 14px 0; }
  .drama-subtext-rows { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px 14px 14px; }
  .drama-subtext-row dd { font-size: 14.5px; }
  .drama-branches { padding: 10px; border-radius: 16px; }
  .drama-shelf-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 44%); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; padding: 2px 2px 6px; scrollbar-width: thin; }
  .drama-shelf-card { scroll-snap-align: start; }
  .drama-shelf-filter { min-height: 28px; padding: 3px 11px; font-size: 12px; }
  .drama-rehearse > summary { padding: 9px 12px; font-size: 13.5px; }
  .drama-rehearse-box { padding: 8px 12px 12px; }
  .drama-rehearse-half { padding: 11px 13px; }
  .drama-rehearse-say { font-size: 16px; }
  .drama-theatre[data-scene="study"] .drama-lightpool::before { left: -16%; width: 42%; opacity: .5; }
  .drama-theatre[data-scene="rooftop"] .drama-weather i:nth-child(2) { opacity: .45; }
  #public-drama .pub-curation { padding: 16px 14px 18px; border-radius: 18px; }
  .pub-shelf-filters { gap: 6px; margin: 14px 0 12px; }
  .pub-shelf-filter { min-height: 32px; padding: 4px 12px; font-size: 13px; }
  .pub-shelf-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; padding: 4px 2px 8px; }
  .pub-shelf-card { scroll-snap-align: start; }
}

/* ==== 2026-11-22 三十五毫米真人实景同框：双缓冲流切、随台词运镜与下三分之一神态名牌 ==== */
/* 实景层压在暗角之下、空镜底图与微动态短片之上：首帧剧照垫底，两段静音循环的表演轮流上台——新的一段在上层由透明叠到不透明，
   旧的一段留着最后一帧垫在下面，叠化走完才退下，所以换句时不黑场、不闪。舞台挂上 .is-live-cinema 之后：镜头按 data-cam 慢推慢摇、
   左右主光随说话人起落；天气与光池让位给实景；两位人物收成舞台左右下沿的神态名牌（节点与类名不变）；动作描写成了随句入场的场记签。
   没有实景素材时这些规则一条都不生效，空镜与透明立绘的舞台原样不动。 */
.drama-live-cinema {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; visibility: hidden;
  transform: scale(1.01) translate(0, 0); transform-origin: 50% 44%;
  transition: opacity 420ms var(--ease), visibility 0s linear 420ms, transform 900ms cubic-bezier(.33, .08, .22, 1);
}
.drama-stage.is-live-cinema .drama-live-cinema { opacity: 1; visibility: visible; transition-delay: 0s; }
.drama-act-poster, .drama-act-video {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 42%;
  transition: opacity 420ms var(--ease), object-position 900ms cubic-bezier(.33, .08, .22, 1);
}
.drama-act-poster { z-index: 0; opacity: 0; }
.drama-act-poster.is-ready { opacity: 1; }
.drama-act-video { z-index: 1; opacity: 0; }
.drama-act-video.is-leaving { z-index: 2; opacity: 1; transition: none; }
.drama-act-video.is-active { z-index: 3; opacity: 1; }
/* 镜头：双人同框微推、给到说话人一侧的中景、推近到微表情的特写、松一口气时拉回全景（舞台 overflow: hidden，推拉不出框） */
.drama-stage.is-live-cinema[data-cam="two-shot"] .drama-live-cinema { transform: scale(1.01) translate(0, 0); }
.drama-stage.is-live-cinema[data-cam="focus-a"] .drama-live-cinema { transform: scale(1.055) translate(2.2%, -1%); }
.drama-stage.is-live-cinema[data-cam="focus-b"] .drama-live-cinema { transform: scale(1.055) translate(-2.2%, -1%); }
.drama-stage.is-live-cinema[data-cam="close-a"] .drama-live-cinema { transform: scale(1.085) translate(3.4%, -1.6%); }
.drama-stage.is-live-cinema[data-cam="close-b"] .drama-live-cinema { transform: scale(1.085) translate(-3.4%, -1.6%); }
.drama-stage.is-live-cinema[data-cam="exhale-wide"] .drama-live-cinema { transform: scale(1) translate(0, 0); }
/* 主光：说话人一侧的暖光微微提起、另一侧落进柔和的暗角；拉回全景时两侧的光影一起铺开 */
.drama-live-cinema::before, .drama-live-cinema::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity 900ms var(--ease);
}
.drama-live-cinema::before {
  background: radial-gradient(42% 62% at 27% 44%, rgba(255, 196, 132, .22), rgba(255, 196, 132, 0) 72%),
              linear-gradient(90deg, rgba(10, 8, 18, 0) 48%, rgba(10, 8, 18, .5) 100%);
}
.drama-live-cinema::after {
  background: radial-gradient(42% 62% at 73% 44%, rgba(255, 196, 132, .22), rgba(255, 196, 132, 0) 72%),
              linear-gradient(270deg, rgba(10, 8, 18, 0) 48%, rgba(10, 8, 18, .5) 100%);
}
.drama-stage.is-live-cinema[data-cam="two-shot"] .drama-live-cinema::before,
.drama-stage.is-live-cinema[data-cam="two-shot"] .drama-live-cinema::after { opacity: .3; }
.drama-stage.is-live-cinema[data-cam="focus-a"] .drama-live-cinema::before,
.drama-stage.is-live-cinema[data-cam="focus-b"] .drama-live-cinema::after { opacity: .8; }
.drama-stage.is-live-cinema[data-cam="close-a"] .drama-live-cinema::before,
.drama-stage.is-live-cinema[data-cam="close-b"] .drama-live-cinema::after { opacity: 1; }
.drama-stage.is-live-cinema[data-cam="exhale-wide"] .drama-live-cinema::before,
.drama-stage.is-live-cinema[data-cam="exhale-wide"] .drama-live-cinema::after { opacity: .14; }
/* 空镜的天气与光池让位给实景，前景光雾收薄一层；实景层淡出时它们一起回来 */
.drama-weather, .drama-lightpool { transition: opacity 420ms var(--ease); }
.drama-stage.is-live-cinema .drama-weather, .drama-stage.is-live-cinema .drama-lightpool { opacity: 0; }
.drama-stage.is-live-cinema .drama-haze { opacity: .82; }

/* 下三分之一神态名牌：真人已经在实景里同框表演，立绘收成舞台左右下沿的一枚圆形神态特写 + 名字 · 神态，不挡画面中上部的脸与手；
   说话的一方亮起琥珀金边与呼吸光圈，倾听的一方半透明退后半步 */
.drama-stage.is-live-cinema .drama-cast { z-index: 4; }
.drama-stage.is-live-cinema .drama-topline { z-index: 5; }
.drama-stage.is-live-cinema .drama-char {
  align-self: end; justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%;
  margin: 0 0 16px; padding: 4px 16px 4px 4px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, rgba(14, 11, 24, .8), rgba(14, 11, 24, .52));
  box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .2), 0 12px 30px rgba(4, 3, 10, .4);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  transform: none; transform-origin: 0 100%;
  transition: opacity 420ms var(--ease), transform 420ms var(--ease), box-shadow 420ms var(--ease);
  animation: drama-cameo-in 520ms var(--ease) backwards;
}
.drama-stage.is-live-cinema .drama-char.is-b { justify-self: end; flex-direction: row-reverse; padding: 4px 4px 4px 16px; transform-origin: 100% 100%; }
.drama-stage.is-live-cinema .drama-char.is-speaking, .drama-stage.is-live-cinema .drama-char.is-asking {
  transform: none; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .55), 0 0 26px rgba(240, 196, 138, .2), 0 12px 30px rgba(4, 3, 10, .4);
}
.drama-stage.is-live-cinema .drama-char.is-listening { opacity: .74; transform: scale(.94); }
.drama-stage.is-live-cinema .drama-char.is-idle { opacity: .86; transform: none; }
.drama-stage.is-live-cinema .drama-char.is-a .drama-char-img, .drama-stage.is-live-cinema .drama-char.is-b .drama-char-img {
  position: relative; inset: auto; flex: none; width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; object-position: 50% 12%; object-view-box: inset(4% 16% 44% 16%);
  -webkit-mask-image: none; mask-image: none;
  background: radial-gradient(circle at 50% 32%, rgba(255, 228, 190, .2), rgba(24, 19, 34, .94) 74%);
  filter: var(--char-tone) brightness(.88) saturate(.92);
  box-shadow: 0 0 0 2px rgba(240, 196, 138, .26), 0 4px 12px rgba(0, 0, 0, .4);
  transform: none; animation: none; transition: filter 420ms var(--ease), box-shadow 420ms var(--ease);
}
.drama-stage.is-live-cinema .drama-char.is-swap.is-a .drama-char-img,
.drama-stage.is-live-cinema .drama-char.is-swap.is-b .drama-char-img { animation: drama-swap 420ms var(--ease) both; }
.drama-stage.is-live-cinema .drama-char.is-speaking .drama-char-img, .drama-stage.is-live-cinema .drama-char.is-asking .drama-char-img {
  filter: var(--char-tone) brightness(1.06) saturate(1.06); box-shadow: 0 0 0 2px #f0c48a, 0 0 18px rgba(240, 196, 138, .5);
}
.drama-stage.is-live-cinema .drama-char.is-speaking::after, .drama-stage.is-live-cinema .drama-char.is-asking::after {
  content: ""; position: absolute; z-index: -1; left: -4px; right: auto; top: 50%; width: 62px; aspect-ratio: 1; transform: translateY(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 196, 138, .5), rgba(240, 196, 138, 0)); pointer-events: none;
  animation: drama-presence 2.8s ease-in-out infinite;
}
.drama-stage.is-live-cinema .drama-char.is-b.is-speaking::after, .drama-stage.is-live-cinema .drama-char.is-b.is-asking::after { left: auto; right: -4px; }
.drama-stage.is-live-cinema .drama-char.is-missing .drama-char-img { display: none; }
.drama-stage.is-live-cinema .drama-char.is-missing::before {
  position: relative; left: auto; bottom: auto; flex: none; width: 46px; height: 46px; transform: none; border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04));
}
.drama .drama-stage.is-live-cinema .drama-nameplate {
  position: static; z-index: auto; display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; max-width: none; overflow: hidden;
  padding: 0; transform: none; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  opacity: 1; visibility: visible;
}
.drama-stage.is-live-cinema .drama-name { flex: none; font-size: 14px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.drama-stage.is-live-cinema .drama-mood { font-size: 12.5px; letter-spacing: .03em; color: rgba(232, 224, 210, .8); }
.drama-stage.is-live-cinema .drama-mood::before { content: "·"; margin-right: 6px; color: rgba(240, 214, 176, .55); }
.drama-stage.is-live-cinema .drama-char.is-speaking .drama-mood, .drama-stage.is-live-cinema .drama-char.is-asking .drama-mood { color: #f6d29c; }
/* 这一句带动作时，说话人的名牌轻轻一跳（两套同样的关键帧轮流用，连着几句也能每句都跳） */
.drama-stage.is-live-cinema[data-pulse="tick"] .drama-char.is-speaking .drama-nameplate { animation: drama-hop-tick 560ms var(--ease); }
.drama-stage.is-live-cinema[data-pulse="tock"] .drama-char.is-speaking .drama-nameplate { animation: drama-hop-tock 560ms var(--ease); }
/* 还没开口的一方：名牌上已经写着「名字 · 静静倾听」，回合行里那枚同样的倾听签就不再压在实景人物身上（节点与读屏文字都还在名牌里） */
.drama-stage.is-live-cinema ~ .drama-dock .drama-turn.is-quiet { visibility: hidden; }
/* 实景层淡出、回到空镜时，透明立绘轻轻浮回原位 */
.drama-stage.is-cinema-out .drama-char { animation: drama-cameo-in 520ms var(--ease) backwards; }
@keyframes drama-cameo-in { from { opacity: 0; translate: 0 8px; } }
@keyframes drama-hop-tick { 0%, 100% { transform: none; } 40% { transform: translateY(-3px); } }
@keyframes drama-hop-tock { 0%, 100% { transform: none; } 40% { transform: translateY(-3px); } }

/* 场记签：实景同框时，回合框与回响卡里的动作描写是一枚胶片场记签——左端一块会「打板」的斜纹小板，随每一句由左向右揭开 */
.drama-stage.is-live-cinema ~ .drama-dock :is(.drama-turn, .drama-live, .drama-rehearse-half) .drama-direction {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; padding: 3px 11px 3px 5px; border-radius: 8px;
  background: linear-gradient(90deg, rgba(240, 196, 138, .14), rgba(240, 196, 138, .03)); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .22);
  color: #e8dac2; font-style: normal; font-size: 13px; line-height: 1.5; letter-spacing: .02em;
  animation: drama-slate 640ms var(--ease) both;
}
.drama-stage.is-live-cinema ~ .drama-dock :is(.drama-turn, .drama-live, .drama-rehearse-half) .drama-direction::before {
  content: ""; flex: none; width: 17px; height: 11px; border-radius: 2px; transform-origin: 0 100%;
  background: repeating-linear-gradient(135deg, #f0c48a 0 3px, #241c2e 3px 6px); box-shadow: 0 0 0 1px rgba(240, 196, 138, .4);
  animation: drama-clap 640ms var(--ease) both;
}
.drama-stage.is-live-cinema ~ .drama-dock .drama-turn > .drama-direction { margin-top: 8px; }
@keyframes drama-slate { from { opacity: 0; clip-path: inset(0 100% 0 0 round 8px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 8px); } }
@keyframes drama-clap { 0% { transform: rotate(-26deg); } 55% { transform: rotate(5deg); } 100% { transform: none; } }

/* 平板与手机：画幅变窄时镜头按九景真人站位横摇对焦，舞台中段留足实景呼吸窗；名牌收为左右上沿精致圆形神态章（文字留给读屏与下方回合框头部，零压脸、零截断） */
.drama-theatre { --act-ax: 33%; --act-bx: 65%; }
.drama-theatre[data-scene="pantry"] { --act-ax: 44%; --act-bx: 71%; }
.drama-theatre[data-scene="living"] { --act-ax: 33%; --act-bx: 66%; }
.drama-theatre[data-scene="park"] { --act-ax: 49%; --act-bx: 58%; }
.drama-theatre[data-scene="office"] { --act-ax: 33%; --act-bx: 70%; }
.drama-theatre[data-scene="study"] { --act-ax: 41%; --act-bx: 76%; }
.drama-theatre[data-scene="cafe"] { --act-ax: 39%; --act-bx: 70%; }
.drama-theatre[data-scene="rooftop"] { --act-ax: 38%; --act-bx: 67%; }
.drama-theatre[data-scene="car"] { --act-ax: 32%; --act-bx: 68%; }
@media (min-width: 901px) {
  .drama[data-beat="dialogue"] .drama-theatre:has(.drama-stage.is-live-cinema) { --cast-min: 368px; --turn-min: 108px; }
  .drama[data-beat="question"] .drama-theatre:has(.drama-stage.is-live-cinema) { --cast-min: 320px; }
  .drama-stage.is-live-cinema :is(.drama-act-poster, .drama-act-video) { object-position: 50% 86%; }
  .drama-theatre[data-scene="office"] .drama-stage.is-live-cinema :is(.drama-act-poster, .drama-act-video) { object-position: 50% 98%; }
  .drama-stage.is-live-cinema ~ .drama-dock .drama-turn.is-active { padding: 10px 16px 11px; }
  .drama-stage.is-live-cinema ~ .drama-dock .drama-say { margin-top: 5px; min-height: calc(2 * 1.58em); font-size: 17px; line-height: 1.58; }
  .drama-stage.is-live-cinema ~ .drama-dock .drama-turn.is-echo { padding: 8px 14px 10px; }
  .drama-stage.is-live-cinema ~ .drama-dock .drama-turn.is-echo .drama-turn-text { -webkit-line-clamp: 2; font-size: 14px; line-height: 1.52; }
  .drama-stage.is-live-cinema ~ .drama-dock .drama-turn > .drama-direction { margin-top: 6px; }
}
@media (min-width: 641px) {
  .drama-stage.is-live-cinema ~ .drama-dock .drama-controls { gap: 6px 8px; padding: 5px 8px; }
  .drama-stage.is-live-cinema ~ .drama-dock .drama-controls .btn-quiet,
  .drama-stage.is-live-cinema ~ .drama-dock .drama-controls .drama-auto { padding-inline: 10px; font-size: 13px; }
}
@media (max-width: 900px) {
  .drama[data-beat="dialogue"] .drama-theatre:has(.drama-stage.is-live-cinema) { --cast-min: clamp(250px, 31vh, 312px); --turn-min: 142px; }
  .drama-stage.is-live-cinema[data-cam$="-a"] :is(.drama-act-poster, .drama-act-video) { object-position: var(--act-ax) 38%; }
  .drama-stage.is-live-cinema[data-cam$="-b"] :is(.drama-act-poster, .drama-act-video) { object-position: var(--act-bx) 38%; }
  .drama-stage.is-live-cinema .drama-char,
  .drama-stage.is-live-cinema .drama-char.is-b { align-self: start; gap: 0; margin: 5px 0 0; padding: 2px; border-radius: 50%; }
  .drama-stage.is-live-cinema .drama-char.is-a .drama-char-img,
  .drama-stage.is-live-cinema .drama-char.is-b .drama-char-img,
  .drama-stage.is-live-cinema .drama-char.is-missing::before { width: 34px; height: 34px; }
  .drama-stage.is-live-cinema .drama-char.is-speaking::after,
  .drama-stage.is-live-cinema .drama-char.is-asking::after { left: -4px; right: auto; width: 46px; }
  .drama-stage.is-live-cinema .drama-char.is-b.is-speaking::after,
  .drama-stage.is-live-cinema .drama-char.is-b.is-asking::after { left: auto; right: -4px; }
  .drama .drama-stage.is-live-cinema .drama-nameplate { display: none; }
}
@media (max-width: 640px) {
  .drama[data-beat="dialogue"] .drama-theatre:has(.drama-stage.is-live-cinema),
  .drama[data-beat="question"] .drama-theatre:has(.drama-stage.is-live-cinema) { --cast-min: clamp(232px, 29vh, 288px); }
  .drama-stage.is-live-cinema[data-cam$="-a"] :is(.drama-act-poster, .drama-act-video) { object-position: var(--act-ax) 36%; }
  .drama-stage.is-live-cinema[data-cam$="-b"] :is(.drama-act-poster, .drama-act-video) { object-position: var(--act-bx) 36%; }
  .drama-stage.is-live-cinema .drama-char,
  .drama-stage.is-live-cinema .drama-char.is-b { margin: 6px 0 0; padding: 2px; }
  .drama-stage.is-live-cinema .drama-char.is-a .drama-char-img,
  .drama-stage.is-live-cinema .drama-char.is-b .drama-char-img,
  .drama-stage.is-live-cinema .drama-char.is-missing::before { width: 34px; height: 34px; }
  .drama-stage.is-live-cinema .drama-char.is-speaking::after,
  .drama-stage.is-live-cinema .drama-char.is-asking::after { width: 46px; }
  .drama-stage.is-live-cinema ~ .drama-dock :is(.drama-turn, .drama-live, .drama-rehearse-half) .drama-direction { font-size: 12.5px; }
}
/* 减弱动效：不放表演短片、只留首帧剧照；镜头不推拉、名牌不跳、场记签不揭不打板（站内「减弱动效」开关同样收住镜头） */
@media (prefers-reduced-motion: reduce) {
  .drama-live-cinema, .drama-stage.is-live-cinema[data-cam] .drama-live-cinema { transform: none; transition: none; }
  .drama-act-video { display: none; }
  .drama-act-poster { transition: none; }
  .drama-stage.is-live-cinema .drama-char.is-a, .drama-stage.is-live-cinema .drama-char.is-b,
  .drama-stage.is-cinema-out .drama-char { transform: none; transition: none; animation: none; }
  .drama-stage.is-live-cinema[data-pulse] .drama-char.is-speaking .drama-nameplate { animation: none; }
  .drama-stage.is-live-cinema ~ .drama-dock :is(.drama-turn, .drama-live, .drama-rehearse-half) .drama-direction,
  .drama-stage.is-live-cinema ~ .drama-dock :is(.drama-turn, .drama-live, .drama-rehearse-half) .drama-direction::before { animation: none; }
}
.motion-off .drama-stage.is-live-cinema[data-cam] .drama-live-cinema { transform: none; }

/* 2026-11-22 U1 首页交互：顶栏滚动路标与浮动快捷坞、三觉实景推演台、两种路径现场对照、论坛章内速跳与练习引导卡、
   剧目卡实景微动态；内部演示入口页（?demo=1）的台词试听与三觉卡片实景示例。
   整块只用类名与属性选择器、不依赖与其它块的先后。public_landing.css 在 app.css 之后加载，所以凡与它同名的首页规则
   都多带一级 .pub-home 或 #public-drama，保证合入 app.css 后仍然生效。块内不写 640px 断点（测试以最后一个 640px
   断点定位剧场手机样式），也不引外部资源、不用计数器。 */

/* ---- 顶栏滚动路标：板块经过视口上部时，顶栏对应链接点亮（顶栏保持原来的随页滚动，不吸顶：吸顶条会被长截图画进
   板块中部、压在剧照人脸上；滚动中始终可见的路标由快捷坞的章节罗盘承担）。首页显示时，页面底部留出快捷坞的高度，
   键盘聚焦与「滚到可见」都停在它上面，不被遮住 ---- */
html:has(.pub-home > .pub-header) { scroll-padding-bottom: 84px; }
.pub-home main > .pub-section:focus { outline: none; }
.pub-home .pub-article-body :is(section, aside) > :first-child { scroll-margin-top: 24px; }
.pub-home .pub-nav nav a { position: relative; transition: color 180ms ease; }
.pub-home .pub-nav nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; pointer-events: none;
  background: currentColor; transform: scaleX(0); transition: transform 220ms ease;
}
.pub-home .pub-nav nav a.is-current { color: var(--accent); }
.pub-home .pub-nav nav a.is-current::after { transform: scaleX(1); }
.pub-home .pub-nav nav a.is-current:hover { text-decoration: none; }

/* ---- 浮动快捷坞：离开首屏后浮现在右下角；有剧照、海报或影片经过它所在的角落时淡出让开，角落空出来再回来；
   键盘进入时总在。窄屏只留图标，名称仍给读屏 ---- */
.pub-home .pub-float-dock {
  position: fixed; z-index: 35; right: clamp(12px, 2.4vw, 28px); bottom: clamp(12px, 2.4vw, 28px);
  display: grid; justify-items: end; gap: 10px; max-width: calc(100vw - 24px); pointer-events: none;
  animation: pub-float-in 320ms cubic-bezier(.2, .7, .2, 1) backwards;
  transition: opacity 240ms ease, transform 240ms ease;
}
.pub-home .pub-float-dock[hidden] { display: none; }
.pub-home .pub-float-dock > * { pointer-events: auto; }
.pub-home .pub-float-dock.is-shy { opacity: 0; transform: translateY(14px); }
.pub-home .pub-float-dock.is-shy > * { pointer-events: none; }
.pub-home .pub-float-dock.is-shy:focus-within { opacity: 1; transform: none; }
.pub-home .pub-float-dock.is-shy:focus-within > * { pointer-events: auto; }
.pub-home .pub-float-bar {
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; color: #f4f6ff;
  background: rgba(24, 34, 68, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 36px -18px rgba(18, 28, 60, .75), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.pub-home .pub-float-bar button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 13px; border: 0; border-radius: 999px;
  background: transparent; color: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.pub-home .pub-float-bar button:hover { background: rgba(255, 255, 255, .12); }
.pub-home .pub-float-bar button:focus-visible { outline: 2px solid #f0c48a; outline-offset: 1px; }
.pub-home .pub-float-compass::after {
  content: ""; flex: none; width: 1px; height: 18px; margin-inline-start: 7px; background: rgba(255, 255, 255, .22);
}
.pub-home .pub-float-dock.is-open .pub-float-compass { background: rgba(240, 196, 138, .18); color: #ffe4bd; }
.pub-home .pub-float-name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.pub-home .pub-float-top .icon { transform: rotate(-90deg); }
.pub-home .pub-float-menu {
  display: grid; gap: 2px; min-width: 200px; max-width: min(300px, calc(100vw - 24px)); max-height: min(60vh, 420px); overflow-y: auto;
  padding: 8px; border-radius: 16px; border: 1px solid var(--paper-line); background: #fff; color: var(--ink);
  box-shadow: 0 22px 48px -22px rgba(24, 40, 80, .45); animation: pub-float-in 220ms ease backwards;
}
.pub-home .pub-float-menu[hidden] { display: none; }
.pub-home .pub-float-menu-title { padding: 4px 10px 6px; color: #5a6b88; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pub-home .pub-float-item {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 10px;
  background: transparent; color: #24365c; font-size: 14px; line-height: 1.4; text-align: start; cursor: pointer;
}
.pub-home .pub-float-item::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #c3cee0;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.pub-home .pub-float-item:hover { background: #f1f5fc; }
.pub-home .pub-float-item.is-current { color: var(--accent); font-weight: 650; background: #eef3ff; }
.pub-home .pub-float-item.is-current::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(36, 72, 166, .16); }
/* 页尾留出快捷坞的高度，最后一行文字可以滚到它上面 */
.pub-home > .pub-footer { padding-bottom: 96px; }
@keyframes pub-float-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- 三觉实景推演台（「什么是 ADR？」下方）：同一句心里话，按觉知、觉察、觉悟三步换一种光 ---- */
.pub-home .pub-prism {
  --prism: #6279a4; --prism-glow: rgba(98, 121, 164, .2);
  margin-top: clamp(22px, 2.6vw, 34px); padding: clamp(18px, 2.4vw, 30px); border-radius: 20px;
  border: 1px solid var(--paper-line); background: #fff; box-shadow: 0 22px 50px -32px rgba(32, 58, 103, .45);
}
.pub-home .pub-prism[data-step="discern"] { --prism: #657f7b; --prism-glow: rgba(101, 127, 123, .2); }
.pub-home .pub-prism[data-step="realize"] { --prism: #8a74a3; --prism-glow: rgba(138, 116, 163, .2); }
.pub-home .pub-prism-head, .pub-home .pub-contrast-head { display: grid; gap: 6px; max-width: 70ch; }
.pub-home :is(.pub-prism-title, .pub-contrast-title) { color: var(--ink); font: 650 clamp(20px, 2vw, 26px)/1.35 var(--serif); text-wrap: balance; }
.pub-home :is(.pub-prism-lead, .pub-contrast-lead) { color: var(--muted); font-size: 15px; }
.pub-home :is(.pub-prism-cases, .pub-contrast-topics) { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pub-home :is(.pub-prism-case, .pub-contrast-topic) {
  min-height: 36px; padding: 6px 15px; border: 1px solid #cbd7ea; border-radius: 999px; background: #f5f8fd; color: #2e4b78;
  font-size: 14px; font-weight: 600; line-height: 1.4; text-align: start; cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.pub-home :is(.pub-prism-case, .pub-contrast-topic):hover { border-color: #738bb7; background: #edf3fe; }
.pub-home :is(.pub-prism-case, .pub-contrast-topic).is-on {
  border-color: #284998; background: #284998; color: #fff; box-shadow: 0 8px 18px -10px rgba(40, 73, 152, .8);
}
.pub-home .pub-prism-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.pub-home .pub-prism-steps::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 22px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, #6279a4, #657f7b 50%, #8a74a3); opacity: .3;
}
.pub-home .pub-prism-tab {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; padding: 12px 10px 13px;
  border: 1px solid transparent; border-radius: 14px; background: transparent; color: #4c5d76; text-align: center; cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.pub-home .pub-prism-tab:hover { background: #f5f8fd; }
.pub-home .pub-prism-dot {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #c3cee0;
  transition: background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.pub-home .pub-prism-tab-name { color: #24365c; font-size: 16px; font-weight: 700; line-height: 1.4; }
.pub-home .pub-prism-tab-meaning { color: #5a6b88; font-size: 12.5px; line-height: 1.45; }
.pub-home .pub-prism-tab.is-past .pub-prism-dot { background: #e3e9f4; box-shadow: inset 0 0 0 2px #9fb0cc; }
.pub-home .pub-prism-tab.is-on { border-color: var(--paper-line); background: #f6f8fd; box-shadow: 0 10px 24px -18px rgba(32, 58, 103, .6); }
.pub-home .pub-prism-tab.is-on .pub-prism-dot { background: var(--prism); box-shadow: 0 0 0 5px var(--prism-glow); transform: scale(1.06); }
.pub-home .pub-prism-tab.is-on .pub-prism-tab-name { color: var(--prism); }
.pub-home .pub-prism-panel {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(14px, 2vw, 24px); margin-top: 14px;
  padding: clamp(16px, 2vw, 24px); border-radius: 16px; border: 1px solid #e3e9f4; background: linear-gradient(135deg, #f7f9fe, #fbfaff);
}
.pub-home .pub-prism-origin {
  display: grid; align-content: start; gap: 8px; min-width: 0; padding: 14px 16px; border-radius: 14px; border: 1px dashed #cdd7e8; background: #fff;
}
.pub-home .pub-prism-tag {
  justify-self: start; padding: 1px 10px; border-radius: 999px; background: #eef2fa; color: #4a5f86; font-size: 12px; font-weight: 700; letter-spacing: .06em;
}
.pub-home .pub-prism-said { color: #2a3550; font: 500 17px/1.85 var(--serif); }
.pub-home .pub-prism-seg { transition: opacity 260ms ease, color 260ms ease; }
.pub-home .pub-prism-words { border-radius: 3px; text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: background-color 260ms ease; }
.pub-home .pub-prism[data-step="aware"] .pub-prism-seg.is-fact .pub-prism-words {
  background: linear-gradient(transparent 58%, rgba(98, 121, 164, .24) 58%); -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.pub-home .pub-prism[data-step="aware"] .pub-prism-seg.is-guess { opacity: .5; }
.pub-home .pub-prism[data-step="discern"] .pub-prism-seg.is-guess .pub-prism-words {
  background: rgba(101, 127, 123, .1); text-decoration-line: underline; text-decoration-style: dashed; text-decoration-color: #657f7b;
}
.pub-home .pub-prism[data-step="realize"] .pub-prism-seg.is-guess { color: #8b93a7; }
.pub-home .pub-prism[data-step="realize"] .pub-prism-seg.is-guess .pub-prism-words { text-decoration-line: line-through; text-decoration-color: rgba(138, 116, 163, .8); }
.pub-home .pub-prism-mark {
  display: inline-block; margin-inline-start: 4px; padding: 0 7px; border-radius: 999px; font: 700 11px/1.7 var(--sans);
  letter-spacing: .04em; vertical-align: 2px; background: rgba(98, 121, 164, .14); color: #3f5a8c;
}
.pub-home .pub-prism-mark:empty { display: none; }
.pub-home .pub-prism[data-step="discern"] .pub-prism-mark { background: rgba(101, 127, 123, .16); color: #3f5f5a; }
.pub-home .pub-prism[data-step="realize"] .pub-prism-mark { background: rgba(138, 116, 163, .15); color: #6a5487; }
.pub-home .pub-prism-now { display: grid; align-content: start; gap: 8px; min-width: 0; }
.pub-home .pub-prism-step { color: var(--prism); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.pub-home .pub-prism-voice {
  padding-inline-start: 14px; border-inline-start: 3px solid var(--prism); color: #1f2c4a; font: 500 clamp(17px, 1.5vw, 19px)/1.75 var(--serif);
  transition: border-color 260ms ease;
}
.pub-home .pub-prism-hint { color: var(--muted); font-size: 14px; }
.pub-home .pub-prism-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.pub-home .pub-prism-next[hidden] { display: none; }
.pub-home .pub-prism-panel.is-turn .pub-prism-now { animation: pub-prism-turn 420ms ease both; }
.pub-home .pub-prism-panel.is-turn-alt .pub-prism-now { animation: pub-prism-turn-again 420ms ease both; }
@keyframes pub-prism-turn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pub-prism-turn-again { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- 两种路径现场对照（ADR 循环一节）：左普通问答、右 ADR 伴行；换困惑时两栏重新入场，右栏问答依次浮现 ---- */
.pub-home .pub-contrast {
  margin-top: clamp(20px, 2.4vw, 30px); padding: clamp(18px, 2.4vw, 30px); border-radius: 20px; border: 1px solid var(--paper-line);
  background: linear-gradient(160deg, #f6f8fd, #fbfaff 60%, #f7f5fc);
}
.pub-home .pub-contrast-ask {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 16px; padding: 12px 16px;
  border-radius: 14px 14px 14px 4px; border: 1px solid #dce4f1; background: #fff; color: #1f2c4a; font-weight: 600;
}
.pub-home .pub-contrast-ask b, .pub-home .pub-contrast-after b, .pub-home .pub-contrast-step b { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.pub-home .pub-contrast-ask b { color: #5a6b88; }
.pub-home .pub-contrast-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: 14px; }
.pub-home .pub-contrast-lane {
  display: grid; align-content: start; gap: 12px; min-width: 0; padding: clamp(16px, 1.8vw, 22px); border-radius: 16px;
  border: 1px solid #e1e5ec; background: #f7f8fa;
}
.pub-home .pub-contrast-lane.is-adr {
  border-color: #d9d2ea; background: linear-gradient(170deg, #fff, #f3f1fb); box-shadow: 0 18px 40px -30px rgba(90, 70, 140, .5);
}
.pub-home .pub-contrast-lane-head { display: flex; align-items: flex-start; gap: 10px; }
.pub-home .pub-contrast-lane-head > span:last-child { display: grid; gap: 2px; min-width: 0; }
.pub-home .pub-contrast-lane-head strong { color: #1f2c4a; font-size: 16px; }
.pub-home .pub-contrast-lane-head span span { color: #5a6b88; font-size: 13px; line-height: 1.5; }
.pub-home .pub-contrast-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e9edf3; color: #55627a; }
.pub-home .pub-contrast-lane.is-adr .pub-contrast-icon { background: #ece6f8; color: #6b52a0; }
.pub-home .pub-contrast-reply {
  display: grid; gap: 6px; padding: 12px 14px; border-radius: 4px 14px 14px 14px; border: 1px solid #e1e5ec; background: #fff; color: #3a4660; font-size: 14.5px;
}
.pub-home .pub-contrast-tips { display: grid; gap: 4px; margin: 0; padding-inline-start: 1.2em; list-style: disc; }
.pub-home .pub-contrast-tips li::marker { color: #9aa5b8; }
.pub-home .pub-contrast-after { display: grid; gap: 2px; color: #5a6b88; font-size: 14px; }
.pub-home .pub-contrast-after b { color: #3a4660; }
.pub-home .pub-contrast-turns { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pub-home .pub-contrast-turn { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid #e6e1f2; background: rgba(255, 255, 255, .85); }
.pub-home .pub-contrast-stage {
  justify-self: start; padding: 0 9px; border-radius: 999px; background: rgba(98, 121, 164, .14); color: #3f5a8c;
  font-size: 12px; font-weight: 700; line-height: 1.7;
}
.pub-home .pub-contrast-turn:nth-child(2) .pub-contrast-stage { background: rgba(101, 127, 123, .16); color: #3f5f5a; }
.pub-home .pub-contrast-turn:nth-child(3) .pub-contrast-stage { background: rgba(138, 116, 163, .15); color: #6a5487; }
.pub-home .pub-contrast-q { color: #24365c; font-size: 14.5px; font-weight: 600; }
.pub-home .pub-contrast-a { display: flex; align-items: baseline; gap: 8px; color: #3a4660; font-size: 14.5px; }
.pub-home .pub-contrast-you {
  flex: none; padding: 0 8px; border-radius: 999px; background: #eef2fa; color: #4a5f86; font-size: 11.5px; font-weight: 700; line-height: 1.8;
}
.pub-home .pub-contrast-step { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid #cfe7dd; background: #e9f5f0; color: #1f4a3d; font-weight: 600; }
.pub-home .pub-contrast-step b { color: #2f6b58; }
.pub-home .pub-contrast-actions { display: flex; margin-top: 16px; }
.pub-home .pub-contrast-grid.is-swap :is(.pub-contrast-lane, .pub-contrast-turn) { animation: pub-contrast-in 440ms ease both; }
.pub-home .pub-contrast-grid.is-swap-alt :is(.pub-contrast-lane, .pub-contrast-turn) { animation: pub-contrast-in-again 440ms ease both; }
.pub-home .pub-contrast-grid:is(.is-swap, .is-swap-alt) .pub-contrast-lane.is-adr { animation-delay: 90ms; }
.pub-home .pub-contrast-grid:is(.is-swap, .is-swap-alt) .pub-contrast-turn:nth-child(2) { animation-delay: 200ms; }
.pub-home .pub-contrast-grid:is(.is-swap, .is-swap-alt) .pub-contrast-turn:nth-child(3) { animation-delay: 320ms; }
@keyframes pub-contrast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pub-contrast-in-again { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- 论坛：展开后正文上方的章内速跳签、正文下方的「带进工作台」引导卡；跳到的小节标题轻闪一下 ---- */
.pub-home .pub-article-jumps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 81ch; margin: 14px auto 2px; padding: 10px 12px;
  border-radius: 12px; border: 1px solid #dfe6f1; background: #f4f7fc;
}
.pub-home .pub-article-jumps-label { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 2px; color: #4a5f86; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; }
.pub-home .pub-article-jump {
  max-width: 100%; padding: 4px 11px; border: 1px solid #cdd8ea; border-radius: 999px; background: #fff; color: #2b4572;
  font-size: 13px; line-height: 1.5; text-align: start; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease;
}
.pub-home .pub-article-jump:hover { border-color: #7d93bd; background: #eef3fd; }
.pub-home .pub-article-body [tabindex="-1"]:focus { outline: none; }
.pub-home .pub-article-body .is-reached { border-radius: 6px; animation: pub-reach 1.2s ease both; }
.pub-home .pub-article-body .is-reached-alt { border-radius: 6px; animation: pub-reach-again 1.2s ease both; }
@keyframes pub-reach { from { background-color: rgba(84, 119, 192, .2); } to { background-color: rgba(84, 119, 192, 0); } }
@keyframes pub-reach-again { from { background-color: rgba(84, 119, 192, .2); } to { background-color: rgba(84, 119, 192, 0); } }
.pub-home .pub-article-practice {
  display: flex; align-items: center; gap: 14px; max-width: 81ch; margin: 6px auto 4px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid #d8def0; background: linear-gradient(115deg, #eef2fd, #f6f1fc);
}
.pub-home .pub-article-practice-mark {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: #5b4c9a;
  box-shadow: inset 0 0 0 1px #dcd5f0;
}
.pub-home .pub-article-practice-copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pub-home .pub-article-practice-copy strong { color: #2b2f5e; font-size: 15.5px; }
.pub-home .pub-article-practice-copy span { color: #4c5d76; font-size: 14px; line-height: 1.65; }
.pub-home .pub-article-practice-go { flex: none; }

/* ---- 剧目卡：悬停或聚焦时，实景首帧上淡入那一幕的短片（与九景速览共用 .pub-stage-video），随卡片一起微微放大 ---- */
#public-drama .pub-shelf-thumb .pub-stage-video { transition: opacity 600ms ease, transform 700ms ease; }
#public-drama .pub-shelf-card:hover .pub-shelf-thumb .pub-stage-video { transform: scale(1.05); }

/* ---- 内部演示入口页：台词试听（三组对白，舞台随之换景、换神态、换光）与三觉卡片的实景示例 ---- */
.lp-drama-lines { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: #cfd4ec; font-size: 13px; }
.lp-drama-lines small { color: rgba(207, 212, 236, .55); }
.lp-drama-line {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 4px 12px 4px 5px; border: 0; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .07); color: #e3e7f7; font-size: 13px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: background-color 180ms var(--ease), box-shadow 180ms var(--ease), color 180ms var(--ease);
}
.lp-drama-line b {
  padding: 0 8px; border-radius: var(--r-pill); background: rgba(240, 196, 138, .16); color: #f6d6a6; font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; line-height: 1.8;
}
.lp-drama-line:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.lp-drama-line.is-on { background: rgba(240, 196, 138, .16); color: #fff3df; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .62), 0 0 18px rgba(240, 196, 138, .16); }
.lp-drama-line.is-on b { background: #f0c48a; color: #2a1a0d; }
.lp-drama-line:focus-visible { outline: 2px solid #f0c48a; outline-offset: 2px; }
.lp-drama-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: soft-light;
  transition: opacity 700ms var(--ease);
}
.lp-drama-stage[data-tone="amber"]::before { opacity: .55; background: radial-gradient(70% 60% at 28% 22%, rgba(255, 176, 96, .55), rgba(255, 176, 96, 0) 70%); }
.lp-drama-stage[data-tone="lamp"]::before {
  opacity: .7; background: radial-gradient(60% 70% at 72% 30%, rgba(255, 214, 150, .6), rgba(255, 214, 150, 0) 70%), linear-gradient(180deg, rgba(40, 26, 60, .18), rgba(40, 26, 60, 0));
}
.lp-drama-stage[data-tone="dusk"]::before { opacity: .7; background: linear-gradient(160deg, rgba(255, 150, 110, .5), rgba(120, 90, 200, .24) 70%); }
.lp-drama-stage.is-relit::before { animation: lp-relight 900ms var(--ease) both; }
.lp-drama-stage.is-relit-alt::before { animation: lp-relight-again 900ms var(--ease) both; }
@keyframes lp-relight { from { opacity: 0; } }
@keyframes lp-relight-again { from { opacity: 0; } }
/* 林夏的受光随三拍渐亮：滤镜与原有立绘滤镜同一串函数，换景时平滑过渡 */
.lp-drama-stage .lp-drama-char img { transition: filter 800ms var(--ease); }
.lp-drama-stage[data-tone="lamp"] .lp-drama-char.is-a img { filter: sepia(.1) saturate(1.04) hue-rotate(-4deg) brightness(.86) saturate(.94) drop-shadow(0 12px 22px rgba(8, 7, 16, .55)); }
.lp-drama-stage[data-tone="dusk"] .lp-drama-char.is-a img { filter: sepia(.08) saturate(1.08) hue-rotate(-6deg) brightness(1) saturate(1) drop-shadow(0 12px 22px rgba(8, 6, 14, .5)); }
.lp-drama-stage .lp-drama-say.is-fresh { animation: lp-say-in 520ms var(--ease) both; }
.lp-drama-stage .lp-drama-say.is-fresh-alt { animation: lp-say-in-again 520ms var(--ease) both; }
.lp-drama-stage .lp-drama-char.is-fresh img { animation: lp-face-in 700ms var(--ease) both; }
.lp-drama-stage .lp-drama-char.is-fresh-alt img { animation: lp-face-in-again 700ms var(--ease) both; }
@keyframes lp-say-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes lp-say-in-again { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes lp-face-in { from { opacity: .2; } to { opacity: 1; } }
@keyframes lp-face-in-again { from { opacity: .2; } to { opacity: 1; } }
.lp-section .lp-cycle { align-items: start; }
.lp-cycle-card { cursor: pointer; }
.lp-cycle-card.is-open { box-shadow: 0 15px 38px rgba(33, 53, 120, .1); }
.lp-cycle-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 16px; padding: 10px 2px 0;
  border: 0; border-top: 1px dashed #dfe4f0; background: none; color: var(--st); font-size: 13px; font-weight: 700; letter-spacing: .02em; cursor: pointer;
}
.lp-cycle-toggle .icon { transform: rotate(90deg); transition: transform 220ms var(--ease); }
.lp-cycle-card.is-open .lp-cycle-toggle .icon { transform: rotate(-90deg); }
.lp-cycle-toggle:focus-visible { outline: 2px solid var(--st); outline-offset: 3px; border-radius: 6px; }
.lp-cycle-example {
  margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #f6f8fd; box-shadow: inset 3px 0 0 var(--st);
  animation: lp-unfold 320ms var(--ease) both; cursor: auto;
}
.lp-cycle-example[hidden] { display: none; }
.lp-cycle-example-k { color: #7e8aaa; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; }
.lp-cycle-example dl { display: grid; gap: 8px; margin: 8px 0 0; }
.lp-cycle-example dl > div { display: grid; gap: 1px; }
.lp-cycle-example dt { color: var(--st); font-size: 12px; font-weight: 700; }
.lp-cycle-example dd { margin: 0; color: #3f4a66; font-size: 14px; line-height: 1.65; }
@keyframes lp-unfold { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---- 断点：平板收窄推演台、对照两栏改上下；手机只留图标、按钮占满一行（不用 640px，见块首说明） ---- */
@media (max-width: 1180px) {
  html:has(.pub-home > .pub-header) { scroll-padding-bottom: 72px; }
  .pub-home .pub-nav nav a::after { bottom: -3px; }
  .pub-home .pub-float-bar button { min-width: 40px; min-height: 40px; padding: 0 10px; justify-content: center; }
  .pub-home .pub-float-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .pub-home > .pub-footer { padding-bottom: 76px; }
}
@media (max-width: 860px) {
  .pub-home .pub-prism-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pub-home .pub-contrast-grid { grid-template-columns: minmax(0, 1fr); }
  .pub-home .pub-float-name { max-width: 6.5em; }
}
@media (max-width: 600px) {
  .pub-home :is(.pub-prism, .pub-contrast) { padding: 16px 14px; border-radius: 16px; }
  .pub-home .pub-prism-steps { gap: 4px; }
  .pub-home .pub-prism-steps::before { top: 20px; }
  .pub-home .pub-prism-tab { padding: 10px 4px; }
  .pub-home .pub-prism-tab-meaning { display: none; }
  .pub-home .pub-prism-panel { padding: 14px; }
  .pub-home .pub-prism-said { font-size: 16px; }
  .pub-home :is(.pub-prism-actions, .pub-contrast-actions) .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .pub-home .pub-article-practice { flex-wrap: wrap; }
  .pub-home .pub-article-practice-go { flex: 1 1 100%; white-space: normal; text-align: center; }
  .pub-home .pub-article-jumps { padding: 9px 10px; }
  .lp-drama-line { font-size: 12.5px; }
}
.lp-drama-stage.is-live-still .lp-drama-char { opacity: 0; visibility: hidden; pointer-events: none; }
.lp-drama-stage.is-live-still .lp-drama-backdrop { object-position: 50% 38%; }
.lp-drama-thumb { position: relative; }
.lp-drama-thumb .lp-scene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .pub-home .pub-float-dock, .pub-home .pub-float-menu, .pub-home .pub-prism-panel :is(.pub-prism-now),
  .pub-home .pub-contrast-grid :is(.pub-contrast-lane, .pub-contrast-turn), .pub-home .pub-article-body :is(.is-reached, .is-reached-alt),
  .lp-drama-stage::before, .lp-drama-stage :is(.lp-drama-say, .lp-drama-char img), .lp-cycle-example { animation: none; }
  .pub-home .pub-nav nav a::after, #public-drama .pub-shelf-thumb .pub-stage-video, .lp-drama-stage .lp-drama-char img { transition: none; }
  #public-drama .pub-shelf-card:hover .pub-shelf-thumb .pub-stage-video { transform: none; }
  .lp-drama-thumb .lp-scene-video { display: none; }
}

/* ==== 2026-11-22 U2 · ADR 工作台：前序线索对照条、思考切角签、推测词提示、本机听写与草稿小工具、键盘提示签、本轮成长手记导出 ====
   合入说明：本段放进 app.css（index.html 里先于 public_workspace.css 加载），所以公开工作台的规则一律带 .public-bench 前缀，
   以压过 public_workspace.css 里 .public-card details / summary / .btn 这些通用规则；内部演示站的对照条挂在 .composer-wrap 下。
   不含 .is-flow 规则，不改一问一答的折叠样式；所有 [hidden] 的显隐都显式写出（作者样式的 display 会盖过浏览器默认的 hidden）。 */

/* 前序线索对照条（公开工作台：书房纸色，默认展开，可折叠） */
.public-bench details.bench-anchor {margin:1rem 0 0;padding:0;border:0;border-radius:1rem;overflow:hidden;
  background:linear-gradient(180deg,#f8f2e6,#f3ead9);box-shadow:inset 0 0 0 1px #e2cfab,0 .5rem 1.2rem rgba(92,64,28,.06)}
.public-bench .bench-anchor > summary {position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:.2rem .75rem;
  padding:.7rem 2.6rem .7rem 1rem;list-style:none;cursor:pointer;color:#5b4a2c;font-weight:700}
.public-bench .bench-anchor > summary::-webkit-details-marker {display:none}
.public-bench .bench-anchor > summary::after {content:"";position:absolute;right:1.1rem;top:50%;width:.5rem;height:.5rem;margin-top:-.4rem;
  border-right:2px solid #a07a44;border-bottom:2px solid #a07a44;transform:rotate(45deg);transition:transform .2s}
.public-bench .bench-anchor[open] > summary::after {margin-top:-.12rem;transform:rotate(-135deg)}
.public-bench .bench-anchor > summary:focus-visible {outline:2px solid #c08a46;outline-offset:-2px;border-radius:1rem}
.bench-anchor-k {display:inline-flex;align-items:center;gap:.4rem;letter-spacing:.06em}
.bench-anchor-hint {color:#8f7d62;font-size:.78rem;font-weight:500;letter-spacing:0}
.bench-anchor-list {display:grid;gap:.45rem;margin:0;padding:0 1rem .9rem;list-style:none}
.bench-anchor-item {--tone:#2b4a41;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.15rem .9rem;margin:0;
  padding:.55rem .8rem .6rem .95rem;border-radius:.8rem;background:#fffdf8;box-shadow:inset 3px 0 0 var(--tone),inset 0 0 0 1px #eadcc4}
.bench-anchor-item[data-stage="D"] {--tone:#7a5a2c}
.bench-anchor-item[data-stage="R"] {--tone:#5a4a78}
.bench-anchor-item[data-stage="C"] {--tone:#3d5a80}
.bench-anchor-item[data-stage="B"] {--tone:#8a5236}
.bench-anchor-item[data-stage="O"] {--tone:#4f6f64}
.bench-anchor-tag {grid-column:1;color:var(--tone);font-size:.74rem;font-weight:700;letter-spacing:.08em}
.bench-anchor-line {grid-column:1;min-width:0;color:#36322a;font-family:var(--serif);line-height:1.65;overflow-wrap:anywhere;white-space:pre-line}
.public-bench .bench-anchor-use {grid-column:2;grid-row:1 / span 2;justify-self:end;padding:.32rem .85rem;border:0;border-radius:999px;
  background:#f3e8d4;color:#5b4a2c;font:inherit;font-size:.78rem;font-weight:600;white-space:nowrap;cursor:pointer;
  box-shadow:inset 0 0 0 1px #dcc49b;transition:background-color .2s,box-shadow .2s}
.public-bench .bench-anchor-use:hover {background:#efe0c4;box-shadow:inset 0 0 0 1.5px #c08a46}
.public-bench .bench-anchor-use:focus-visible {outline:2px solid #c08a46;outline-offset:2px}

/* 思考切角签：回应手记卡顶部的一排启发式切角，只给角度、不替访客下结论 */
.bench-lenses {display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .7rem}
.bench-lenses-k {display:inline-flex;align-items:center;gap:.35rem;color:#7a5a2c;font-size:.78rem;font-weight:700;letter-spacing:.1em}
.bench-lenses-note {margin-left:auto;color:#8f7d62;font-size:.74rem}
.bench-lens-row {order:2;display:flex;flex:1 1 100%;flex-wrap:wrap;gap:.4rem}
.public-bench .bench-lens {display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:.1rem .45rem;max-width:100%;padding:.42rem .9rem;border:0;
  border-radius:999px;background:#fffdf7;color:#4a3d26;font:inherit;font-size:.84rem;line-height:1.45;text-align:start;cursor:pointer;
  box-shadow:inset 0 0 0 1px #dcc49b;transition:background-color .2s,box-shadow .2s,transform .2s}
.public-bench .bench-lens:hover {background:#fff6e6;box-shadow:inset 0 0 0 1.5px #c08a46;transform:translateY(-1px)}
.public-bench .bench-lens:focus-visible {outline:2px solid #c08a46;outline-offset:2px}
.bench-lens-to {color:#9a7f55;font-size:.7rem;font-weight:700;letter-spacing:.06em}

/* 客观镜头里的推测词提示：温和一句，不改访客写下的字 */
.public-bench .bench-split {position:relative;margin:0;padding:.55rem .9rem .55rem 1.9rem;border-radius:.8rem;background:#fff5e3;color:#6b4e22;
  font-size:.84rem;line-height:1.6;box-shadow:inset 0 0 0 1px #ecd2a4}
.public-bench .bench-split::before {content:"";position:absolute;left:.85rem;top:.95rem;width:.45rem;height:.45rem;border-radius:50%;
  background:#d39a4c;box-shadow:0 0 0 .2rem rgba(211,154,76,.18)}
.public-bench .bench-split:empty {display:none}

/* 回应手记卡的小工具：本机听写、两步清空草稿、草稿与听写的状态小字 */
.bench-tools {display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .6rem}
.bench-tools:not(:has(> :not([hidden]):not(:empty))) {display:none}
.public-bench .bench-tool {display:inline-flex;align-items:center;gap:.35rem;min-height:2.2rem;padding:.3rem .85rem;border:0;border-radius:999px;
  background:#f3e8d4;color:#5b4a2c;font:inherit;font-size:.8rem;font-weight:600;cursor:pointer;box-shadow:inset 0 0 0 1px #dcc49b;
  transition:background-color .2s,box-shadow .2s,color .2s}
.public-bench .bench-tool:hover {background:#efe0c4}
.public-bench .bench-tool:focus-visible {outline:2px solid #c08a46;outline-offset:2px}
.public-bench .bench-tool[hidden] {display:none}
.public-bench .bench-dictate.is-on {background:#2b4a41;color:#f6ecd8;box-shadow:0 0 0 .25rem rgba(43,74,65,.16)}
.public-bench .bench-dictate.is-on .icon {animation:bench-listen 1.4s ease-in-out infinite}
.public-bench .bench-wipe.is-armed {background:#fbe4d8;color:#8a3b1f;box-shadow:inset 0 0 0 1.5px #d9906c}
.bench-tool-note {color:#7a6a50;font-size:.78rem;line-height:1.5}
.bench-tool-note:empty {display:none}
@keyframes bench-listen {0%,100%{opacity:.5}50%{opacity:1}}

/* 发送按钮旁的键盘提示签（只在有实体键盘的设备上出现） */
.bench-send {display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem}
.public-card .bench-send .btn {margin:0}
.bench-kbd {display:inline-flex;align-items:center;gap:.3rem;color:#8f7d62;font-size:.76rem}
.bench-kbd kbd {display:inline-block;min-width:1.7em;padding:.08rem .45rem;border-radius:.4rem;background:#fffdf7;color:#5b4a2c;font:inherit;
  font-weight:700;text-align:center;box-shadow:inset 0 -2px 0 #e2d3b8,inset 0 0 0 1px #dcc49b}
.bench-kbd-plus {color:#b8a27c}
@media (pointer:coarse) {.bench-kbd {display:none}}

/* 本轮成长小结：保存本轮成长手记（本机生成的纯文本） */
.bench-keep {display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .9rem;margin:.1rem 0 .8rem}
.public-card .bench-keep .btn {display:inline-flex;align-items:center;gap:.4rem;margin:0}
.public-bench .bench-keep-note {margin:0;color:#356a58;font-size:.84rem}
.public-bench .bench-keep-note:empty {display:none}

/* 内部演示站：输入条上方的前序线索对照条（默认折起；展开后限高可滚动，不挤掉对话） */
.bench-anchor-slot {margin:0 4px 8px}
.bench-anchor-slot[hidden] {display:none}
.composer-wrap .bench-anchor {border-radius:var(--r-lg);background:var(--raised);box-shadow:inset 0 0 0 1px var(--line-2),var(--shadow-1)}
.composer-wrap .bench-anchor > summary {position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;padding:8px 36px 8px 14px;
  list-style:none;cursor:pointer;color:var(--ink-2);font-size:13.5px;font-weight:600}
.composer-wrap .bench-anchor > summary::-webkit-details-marker {display:none}
.composer-wrap .bench-anchor > summary::after {content:"";position:absolute;right:16px;top:50%;width:7px;height:7px;margin-top:-2px;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(-135deg);transition:transform 160ms var(--ease)}
.composer-wrap .bench-anchor[open] > summary::after {margin-top:-6px;transform:rotate(45deg)}
.composer-wrap .bench-anchor > summary:focus-visible {outline:2px solid var(--accent);outline-offset:-2px;border-radius:var(--r-lg)}
.composer-wrap .bench-anchor-hint {color:var(--faint);font-size:12.5px;font-weight:400}
.composer-wrap .bench-anchor-list {max-height:30vh;overflow:auto;gap:6px;padding:0 10px 10px}
.composer-wrap .bench-anchor-item {--tone:var(--st-A);gap:2px 12px;padding:7px 10px 8px 12px;border-radius:var(--r-md);background:var(--wash);
  box-shadow:inset 3px 0 0 var(--tone)}
.composer-wrap .bench-anchor-item[data-stage="D"] {--tone:var(--st-D)}
.composer-wrap .bench-anchor-item[data-stage="R"] {--tone:var(--st-R)}
.composer-wrap .bench-anchor-item[data-stage="C"] {--tone:var(--st-C)}
.composer-wrap .bench-anchor-item[data-stage="B"] {--tone:var(--st-B)}
.composer-wrap .bench-anchor-item[data-stage="O"] {--tone:var(--st-O)}
.composer-wrap .bench-anchor-tag {font-size:12px;letter-spacing:.04em}
.composer-wrap .bench-anchor-line {color:var(--ink);font-family:inherit;font-size:14px;line-height:1.55}
.composer-wrap .bench-anchor-use {grid-column:2;grid-row:1 / span 2;padding:4px 12px;border:0;border-radius:var(--r-pill);background:var(--raised);
  color:var(--accent);font-size:12.5px;font-weight:600;white-space:nowrap;cursor:pointer;box-shadow:inset 0 0 0 1px var(--accent-15)}
.composer-wrap .bench-anchor-use:hover {background:var(--accent-soft)}
.composer-wrap .bench-anchor-use:focus-visible {outline:2px solid var(--accent);outline-offset:2px}

@media (max-width:650px){
  .bench-anchor-hint {display:none}
  .public-bench .bench-anchor-item,.composer-wrap .bench-anchor-item {grid-template-columns:minmax(0,1fr)}
  .public-bench .bench-anchor-use,.composer-wrap .bench-anchor-use {grid-column:1;grid-row:auto;justify-self:start;margin-top:.2rem}
  .bench-lenses-note {display:none}
  .bench-lens-row {gap:.35rem}
  .public-bench .bench-lens {padding:.38rem .8rem;font-size:.82rem}
}
@media (prefers-reduced-motion:reduce){
  .public-bench .bench-dictate.is-on .icon {animation:none}
  .public-bench .bench-lens:hover {transform:none}
  .public-bench .bench-anchor > summary::after,.composer-wrap .bench-anchor > summary::after {transition:none}
}

/* ==== 2026-11-22 剧场节拍直达轨、触屏轻滑翻句、操控速查卡、排练试演签与面板拍实景静帧 ==== */
/* 公开剧场（public_drama.js）与内部演示短剧（drama.js）共用。合入时整块放在 app.css 末尾声景块之前（声景块须保持最后一块）。
   节拍直达轨：对白拍嵌在控制条中段，宽屏与平板都与按钮同一行、不加高控制条（平板的次要按钮收成图标）；手机收成控制条顶上
   一条不高于 22px 的细轨（手机舞台本就按内容长高，回合框不会因此被抬高）；提问拍落在提问框与作答面板之间。一句一枚圆润节拍点：林夏暖琥珀、陈默静蓝灰、本集提问
   一枚柔金星点；台上这一句舒展拉长，看过的几句微亮。悬停或键盘聚焦时在点的上方浮出「说话人 · 台词开头」的微浮签，平时不占版面、
   不撑宽页面；靠左三分之一的点向右展开、靠右三分之一的点向左展开。 */
.drama-beat-rail {
  position: relative; display: flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 3px; min-width: 0; max-width: 460px;
  height: 22px; margin: 0 auto; padding: 0 9px; border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(8, 6, 16, .46), rgba(8, 6, 16, .26)); box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .12);
}
/* 胶片齿孔：轨的上下沿各一排细细的暗金孔 */
.drama-beat-rail::before, .drama-beat-rail::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px; pointer-events: none; opacity: .55;
  background: repeating-linear-gradient(90deg, rgba(240, 214, 176, .26) 0 4px, rgba(240, 214, 176, 0) 4px 9px);
}
.drama-beat-rail::before { top: 2px; }
.drama-beat-rail::after { bottom: 2px; }
.drama-beat-dot {
  --bead: #f0b47c;
  position: relative; flex: 0 1 18px; min-width: 7px; height: 22px; margin: 0; padding: 0; border: 0; border-radius: var(--r-pill);
  background: transparent; transition: flex-basis 320ms var(--ease);
}
.drama-beat-dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: var(--r-pill); transform: translate(-50%, -50%);
  background: var(--bead); opacity: .38; box-shadow: 0 0 0 1px rgba(10, 8, 18, .55);
  transition: width 320ms var(--ease), height 320ms var(--ease), opacity 220ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease);
}
.drama-beat-dot.is-a { --bead: #f0b47c; }
.drama-beat-dot.is-b { --bead: #9db4d2; }
.drama-beat-dot.is-question { --bead: #f6d29c; filter: drop-shadow(0 0 4px rgba(246, 210, 156, .42)); }
.drama-beat-dot.is-question::before {
  width: 12px; height: 12px; border-radius: 0; box-shadow: none;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.drama-beat-dot.is-past::before { opacity: .74; }
.drama-beat-dot.is-current { flex-basis: 30px; min-width: 22px; cursor: default; }
.drama-beat-dot.is-current::before { width: 22px; opacity: 1; box-shadow: 0 0 0 1px rgba(255, 244, 228, .55), 0 0 12px var(--bead); }
.drama-beat-dot.is-question.is-current::before { width: 15px; height: 15px; box-shadow: none; }
.drama-beat-dot:not(.is-current):hover::before, .drama-beat-dot:not(.is-current):focus-visible::before {
  opacity: 1; transform: translate(-50%, -50%) scale(1.3);
}
.drama-beat-dot:focus-visible { outline: 2px solid var(--lamp); outline-offset: 1px; }
.drama-beat-dot:disabled { opacity: .55; cursor: default; }
.drama-beat-tip {
  position: absolute; z-index: 9; bottom: calc(100% + 7px); left: 50%; display: none; width: max-content; max-width: min(250px, 72vw);
  padding: 6px 11px 7px; border-radius: 10px; transform: translateX(-50%); pointer-events: none;
  background: rgba(14, 11, 24, .95); color: #f6eddf; font-size: 12.5px; font-weight: 500; line-height: 1.5; letter-spacing: .02em;
  text-align: start; white-space: normal; overflow-wrap: anywhere;
  box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .34), 0 12px 28px rgba(0, 0, 0, .45);
}
.drama-beat-dot.is-start .drama-beat-tip { left: 0; transform: none; max-width: min(232px, calc(100vw - 56px)); }
.drama-beat-dot.is-end .drama-beat-tip { left: auto; right: 0; transform: none; max-width: min(232px, calc(100vw - 56px)); }
.drama-beat-dot:focus-visible .drama-beat-tip { display: block; animation: drama-tip-in 200ms var(--ease) both; }
@media (hover: hover) {
  .drama-beat-rail:has(.drama-beat-dot:hover) .drama-beat-dot:not(:hover) .drama-beat-tip { display: none; }
  .drama-beat-dot:hover .drama-beat-tip { display: block; animation: drama-tip-in 200ms var(--ease) both; }
}
@keyframes drama-tip-in { from { opacity: 0; translate: 0 4px; } }
/* 提问拍：轨落在提问框与作答面板之间（剧场网格的控制条一行），居中、比对白拍略窄 */
.drama-question > .drama-beat-rail { grid-column: a-start / b-end; grid-row: hud; justify-self: center; width: min(420px, 100%); margin: 12px 0 0; }
@media (min-width: 901px) {
  .drama-theatre .drama-dock .drama-controls:has(> .drama-beat-rail) { flex-wrap: nowrap; }
}
@media (max-width: 1520px) {
  /* 控制条中段让给节拍轨：翻句的键位提示收进操控速查卡，确保英文宽屏控制条始终稳守单行 */
  .drama-controls > .drama-beat-rail ~ .drama-keyhint { display: none; }
}
@media (min-width: 641px) and (max-width: 900px) {
  /* 平板：舞台按最小高度排版，控制条每高一行回合框就被抬高一行。所以这里不另起一行：次要按钮收成图标（名字仍在，读屏照读、
     悬停有提示），节拍轨与按钮同一行 */
  .drama-theatre .drama-dock .drama-controls:has(> .drama-beat-rail) { flex-wrap: nowrap; }
  .drama-theatre .drama-dock .drama-controls:has(> .drama-beat-rail) .drama-controls-side { flex: none; flex-wrap: nowrap; gap: 2px; }
  .drama-theatre .drama-dock .drama-controls:has(> .drama-beat-rail) :is(.btn-quiet, .drama-auto) {
    width: 38px; min-height: 38px; padding: 0; justify-content: center; box-shadow: none;
  }
  .drama-controls:has(> .drama-beat-rail) .drama-hud-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}
@media (max-width: 640px) {
  /* 手机：舞台按内容长高，节拍轨在控制条顶上单独一条细轨，回合框不会因此被抬高 */
  .drama-controls > .drama-beat-rail { order: -1; flex: 1 1 100%; max-width: none; margin: 0; }
  .drama-controls:has(> .drama-beat-rail) { flex-wrap: wrap; row-gap: 5px; }
  .drama-beat-rail { height: 20px; padding: 0 7px; }
  .drama-beat-dot { height: 20px; }
  .drama-question > .drama-beat-rail { margin-top: 8px; }
}

/* 触屏轻滑翻句：舞台画面上竖向照常滚动页面，横向的一划交给脚本翻句（双指缩放不受影响）；舞台上的图片不被拖走 */
.drama-stage { touch-action: pan-y pinch-zoom; }
.drama-stage img { -webkit-user-drag: none; }

/* 剧场操控速查：顶栏一枚小圆键（问号键同样打开），速查卡浮在剧场右上角——键位、作用与触屏、节拍轨、台词单的小提示 */
.drama-keys-toggle {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .05); color: #f3dcb6; box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .3);
  transition: background-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.public-drama .public-drama-control.drama-keys-toggle {
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 244, 228, .05); color: #f3dcb6;
}
.drama-keys-toggle:hover, .public-drama .public-drama-control.drama-keys-toggle:hover {
  background: rgba(240, 196, 138, .14); color: #fff3df; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .55);
}
.drama-keys-toggle.is-on, .public-drama .public-drama-control.drama-keys-toggle.is-on {
  background: linear-gradient(180deg, #f6d29c, #e6a95e); color: #2a1a0d; box-shadow: 0 0 14px rgba(240, 196, 138, .3);
}
.drama-keys-glyph { font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1; }
@media (max-width: 900px) {
  /* 平板起顶栏工具已是一条可横滑的细轨：再多一枚小圆键也只在轨里滑动，不把剧目栏与整页撑宽（手机原本就这样收住） */
  .public-drama-tools { contain: inline-size; }
}
.drama-keys-pop {
  position: absolute; z-index: 12; top: 12px; right: 12px; width: min(360px, calc(100% - 24px)); padding: 12px 14px 14px; border-radius: 18px;
  background: rgba(14, 11, 24, .95); color: #f4ead8;
  box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .3), 0 24px 60px rgba(0, 0, 0, .55);
  backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15);
  animation: drama-in 260ms var(--ease) both;
}
.drama-keys-pop[hidden] { display: none; }
.drama-keys-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drama-keys-k { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--lamp); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; }
.drama-keys-close {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .06); color: #e8dccb; box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .2);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.drama-keys-close:hover { background: rgba(240, 196, 138, .16); color: #fff3df; }
.drama-keys-list { display: grid; gap: 7px; margin: 10px 0 0; }
.drama-keys-row { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr); align-items: center; gap: 12px; }
.drama-keys-row dt { display: flex; flex-wrap: wrap; gap: 4px; }
.drama-keys-row dd { margin: 0; color: #e8dfd0; font-size: 13px; line-height: 1.5; }
.drama-keys-pop kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 244, 228, .14), rgba(255, 244, 228, .05)); color: #fff3df;
  font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(240, 214, 176, .3);
}
.drama-keys-tips { display: grid; gap: 6px; margin: 12px 0 0; padding: 10px 0 0; list-style: none; border-top: 1px dashed rgba(240, 214, 176, .18); }
.drama-keys-tips li { display: flex; align-items: flex-start; gap: 8px; color: #d9cfbf; font-size: 12.5px; line-height: 1.6; }
.drama-keys-tips .icon { flex: none; margin-top: 3px; color: var(--lamp); }
@media (max-width: 640px) {
  .drama-tools .drama-keys-toggle { width: 34px; height: 34px; }
  .drama-keys-pop { top: 8px; right: 8px; width: calc(100% - 16px); padding: 10px 12px 12px; border-radius: 16px; }
  .drama-keys-row { grid-template-columns: minmax(72px, auto) minmax(0, 1fr); gap: 10px; }
}

/* 排练室「换种说法试试」：输入框上方三枚试演签，签名是语气、下面一行是点一下就填进排练框的那句话；选中的一枚亮起暖金描边 */
.drama-rehearse-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.drama-rehearse-chips-k {
  flex: 1 1 100%; display: flex; align-items: center; gap: 6px; margin: 0; color: #f3cf98; font-size: 12px; font-weight: 700; letter-spacing: .1em;
}
.drama-rehearse-chip {
  display: grid; align-content: start; gap: 2px; flex: 1 1 12rem; min-width: 0; margin: 0; padding: 8px 14px 9px; border: 0; border-radius: 16px;
  background: rgba(255, 244, 228, .05); color: #e8dccb; text-align: start; box-shadow: inset 0 0 0 1px rgba(240, 214, 176, .2);
  transition: background-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}
.drama-rehearse-chip:hover:not(:disabled) { background: rgba(240, 196, 138, .12); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .5); transform: translateY(-1px); }
.drama-rehearse-chip.is-picked { background: rgba(240, 196, 138, .16); box-shadow: inset 0 0 0 1.5px var(--lamp), 0 0 16px rgba(240, 196, 138, .14); }
.drama-rehearse-chip:disabled { opacity: .55; cursor: default; }
.drama-rehearse-chip-k { color: #f6d6a6; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.drama-rehearse-chip-say { color: #efe6d6; font-family: var(--serif); font-size: 13.5px; line-height: 1.55; }
@media (max-width: 640px) {
  .drama-rehearse-chip { flex-basis: 100%; padding: 7px 12px 8px; }
}

/* 面板拍实景静帧留驻：回映、共创与回执拍里，舞台留着这一景的真人同框静帧（最近演过的那一幕，没有就是敞开的双人同框）——
   暗化、柔焦，轻轻放大一点免得柔焦露边；两段表演已经停下放掉，半身立绘收起不再悬在面板上方，空镜的天气与光池也不回来。
   只在静帧真正载入（.is-live-cinema）之后生效：载不出来时仍是空镜与立绘；安全暂停时脚本整层退出，不进静帧。 */
.drama-act-poster { transition: opacity 420ms var(--ease), object-position 900ms cubic-bezier(.33, .08, .22, 1), filter 900ms var(--ease); }
.drama-cast { transition: opacity 420ms var(--ease), visibility 0s; }
.drama-stage.is-live-cinema.is-cinema-still .drama-live-cinema { transform: scale(1.035); }
.drama-stage.is-live-cinema.is-cinema-still .drama-act-poster { filter: brightness(.58) saturate(.86) blur(1.6px); }
.drama-stage.is-live-cinema.is-cinema-still .drama-live-cinema::before,
.drama-stage.is-live-cinema.is-cinema-still .drama-live-cinema::after { opacity: .18; }
.drama-stage.is-live-cinema.is-cinema-still .drama-cast { opacity: 0; visibility: hidden; transition: opacity 420ms var(--ease), visibility 0s linear 420ms; }
.drama-stage.is-live-cinema.is-cinema-still .drama-haze { opacity: .92; }
.motion-off .drama-stage.is-live-cinema.is-cinema-still .drama-live-cinema { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .drama-stage.is-live-cinema.is-cinema-still .drama-live-cinema { transform: none; }
  .drama-act-poster, .drama-cast, .drama-beat-dot, .drama-beat-dot::before { transition: none; }
  .drama-beat-dot .drama-beat-tip, .drama-keys-pop { animation: none; }
}

/* ==== 2026-11-22 U4 跨页续接胶囊、内页顶栏窄屏人体工学与个人中心七环节轨迹星图 ==== */
/* 合入说明（给 U5）：
   1. 整段放在 app.css 里「2026-11-21 内部演示短剧的一键沉浸声景」标记之前——本段含 @media，而 test_wave2_cross_seams 要求那个标记之后没有 @media。
   2. app.css 先于 public_landing.css、public_workspace.css 载入，同权重时后者获胜；所以本段凡是改写既有规则的选择器都刻意加高了权重
      （.app .public-bar .public-bar-inner > nav …、.account-sheet .account-loop-card .account-loop-foot …），合入时请勿简化。
   3. 新增类名：public-resume-*、constellation-*、journal-* 与星图根类 account-stage-constellation（U5 合入时改回 public_account.js 里的字面类名，
      test_workspace_css_styles_every_new_class 同时查 public_workspace.css 与本表）。 */

/* ---- 内页顶栏：窄屏下五个入口收成一条可横滑的单行，当前入口一道暖金底线，边缘渐隐提示还有入口 ---- */
@media (max-width: 640px) {
  .app .public-bar .public-bar-inner { gap: .35rem .5rem; padding: .55rem clamp(.85rem, 4vw, 1.2rem) .3rem; }
  .app .public-bar .public-bar-inner > .brand { width: 6.9rem; }
  .app .public-bar .public-bar-inner > nav {
    order: 2; flex: 1 1 100%; width: 100%; flex-wrap: nowrap; gap: .15rem; padding: .2rem .1rem .35rem;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 1.6rem;
    scrollbar-width: none;
  }
  .app .public-bar .public-bar-inner > nav::-webkit-scrollbar { display: none; }
  .app .public-bar .public-bar-inner > nav.is-more-after {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.2rem), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 2.2rem), transparent);
  }
  .app .public-bar .public-bar-inner > nav.is-more-before {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.2rem);
    mask-image: linear-gradient(90deg, transparent, #000 2.2rem);
  }
  .app .public-bar .public-bar-inner > nav.is-more-before.is-more-after {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.2rem, #000 calc(100% - 2.2rem), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 2.2rem, #000 calc(100% - 2.2rem), transparent);
  }
  .app .public-bar .public-bar-inner > nav > .btn {
    position: relative; flex: none; min-height: 2.75rem; padding: .4rem .8rem .5rem; border-radius: .75rem;
    background: transparent; box-shadow: none; font-size: .92rem; scroll-snap-align: center; -webkit-tap-highlight-color: transparent;
  }
  .app .public-bar .public-bar-inner > nav > .btn.is-active[aria-current="page"] { background: rgba(201, 164, 106, .14); box-shadow: none; color: #4a3516; font-weight: 700; }
  .app[data-shell="study"] .public-bar .public-bar-inner > nav > .btn.is-active[aria-current="page"] { background: rgba(201, 164, 106, .2); color: #5b4321; }
  .app[data-shell="theatre"] .public-bar .public-bar-inner > nav > .btn.is-active[aria-current="page"] { background: rgba(240, 196, 138, .12); color: #fff3dd; }
  .app .public-bar .public-bar-inner > nav > .btn.is-active[aria-current="page"]::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 2px; border-radius: 2px; pointer-events: none;
    background: linear-gradient(90deg, #c9a46a, #f0c48a 55%, #d9a55c); box-shadow: 0 0 6px rgba(240, 196, 138, .5);
    transform-origin: center; animation: public-tab-mark .32s var(--ease, ease-out) backwards;
  }
  .app .public-bar .public-bar-inner > .public-round { order: 3; padding: .2rem .65rem; font-size: .76rem; }
}
@keyframes public-tab-mark { from { transform: scaleX(.25); opacity: 0; } }

/* ---- 换到另一个板块时主内容轻轻浮入；同页重绘、换语言不动。剧场有自己的开场，不叠加 ---- */
.app > .public-work.is-entering { animation: public-work-in .38s var(--ease, ease-out) backwards; }
.app[data-shell="theatre"] > .public-work.is-entering { animation: none; }
@keyframes public-work-in { from { opacity: 0; transform: translateY(.55rem); } }
/* 收起续接胶囊后焦点交给页面本身，主区域不画焦点框 */
.app main[tabindex="-1"]:focus { outline: none; }

/* ---- 「回到刚才的现场」续接胶囊：贴在视口底部的一枚松墨暖金胶囊，整块可点重返，右侧一键收起 ---- */
.public-resume-pill {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); margin-inline: auto;
  display: flex; align-items: center; gap: .15rem; width: fit-content; max-width: min(44rem, calc(100% - 2rem)); padding: .3rem;
  border-radius: 999px; color: #f4ead6;
  background: radial-gradient(120% 160% at 0% 0%, rgba(240, 196, 138, .22), rgba(240, 196, 138, 0) 55%), linear-gradient(160deg, #2b4a41 0%, #1b302a 100%);
  box-shadow: 0 1rem 2.4rem rgba(20, 34, 30, .3), 0 .2rem .6rem rgba(20, 34, 30, .18), inset 0 0 0 1px rgba(240, 196, 138, .36);
  animation: public-resume-rise .5s var(--ease, ease-out) backwards;
}
.public-resume-go {
  display: flex; align-items: center; gap: .7rem; flex: 1 1 auto; min-width: 0; min-height: 3rem; padding: .3rem .85rem .3rem .3rem;
  border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer;
  transition: background-color .16s;
}
.public-resume-go:hover { background: rgba(240, 196, 138, .1); }
.public-resume-mark {
  display: grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: #2a1a0d;
  background: linear-gradient(180deg, #f6d29c, #e2a95f); box-shadow: 0 0 0 4px rgba(240, 196, 138, .16), 0 0 1rem rgba(240, 196, 138, .35);
}
.public-resume-pill[data-scene="bench"] .public-resume-mark {
  color: #1d342d; background: linear-gradient(180deg, #f3efe2, #c9dccd); box-shadow: 0 0 0 4px rgba(201, 220, 205, .16), 0 0 1rem rgba(201, 220, 205, .3);
}
.public-resume-text { display: grid; gap: .08rem; min-width: 0; }
.public-resume-text strong, .public-resume-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-resume-text strong { color: #fff4e2; font-family: var(--serif); font-size: .98rem; font-weight: 700; line-height: 1.3; }
.public-resume-text small { color: #d9c9a8; font-size: .78rem; line-height: 1.3; }
.public-resume-arrow {
  display: grid; place-items: center; flex: none; width: 1.7rem; height: 1.7rem; margin-left: auto; border-radius: 50%;
  color: #f0c48a; background: rgba(240, 196, 138, .14); transition: transform .2s var(--ease, ease-out);
}
.public-resume-go:hover .public-resume-arrow { transform: translateX(2px); }
.public-resume-close {
  display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
  background: transparent; color: #d9c9a8; cursor: pointer; transition: background-color .16s, color .16s;
}
.public-resume-close:hover { background: rgba(255, 255, 255, .08); color: #fff4e2; }
.public-resume-pill :focus-visible { outline: 2px solid #f0c48a; outline-offset: 2px; }
/* 胶囊在场时页尾多留一段，最后一行内容总能滚到胶囊上方 */
.app:has(> .public-resume-pill) { padding-bottom: 5.5rem; }
@keyframes public-resume-rise { from { opacity: 0; transform: translateY(1.2rem) scale(.97); } }
@media (max-width: 640px) {
  .public-resume-pill { left: .75rem; right: .75rem; bottom: calc(env(safe-area-inset-bottom, 0px) + .75rem); width: auto; max-width: none; }
  /* 窄屏上主句最多折成两行，不再被省略号截断；副句仍是一行 */
  .public-resume-text strong { display: -webkit-box; font-size: .92rem; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  /* 手机上正在输入时先让开，免得压住输入框或跟着软键盘浮起 */
  .app:has(:is(input:not([type="checkbox"]):not([type="radio"]), textarea):focus) > .public-resume-pill {
    opacity: 0; visibility: hidden; transform: translateY(1rem); transition: opacity .18s, transform .18s, visibility 0s .18s;
  }
}
@media print { .public-resume-pill { display: none; } }

/* ---- 七环节三觉轨迹星图：宣纸夜空上七颗星，走过的点亮成暖金，此刻停驻的一颗带呼吸光环；无数字、无进度条 ---- */
.account-stage-constellation {
  --dot: .62rem; --lane: 1.1rem; --cap: 1.05rem;
  display: grid; gap: .45rem; min-width: 0; padding: .7rem .75rem .6rem;
  border-radius: .85rem; color: #5b4a2c;
  background:
    radial-gradient(1.5px 1.5px at 9% 24%, rgba(201, 164, 106, .7), transparent 70%),
    radial-gradient(1px 1px at 31% 82%, rgba(201, 164, 106, .6), transparent 70%),
    radial-gradient(1.5px 1.5px at 56% 16%, rgba(201, 164, 106, .55), transparent 70%),
    radial-gradient(1px 1px at 78% 74%, rgba(201, 164, 106, .6), transparent 70%),
    radial-gradient(1.5px 1.5px at 94% 30%, rgba(201, 164, 106, .5), transparent 70%),
    linear-gradient(180deg, #fbf5e9 0%, #f5ead6 100%);
  box-shadow: inset 0 0 0 1px #ecdcbd;
}
/* 在档案卡标题行里另起一整行，排在折叠箭头之后，箭头仍留在第一行右端 */
.account-loop-head > .account-stage-constellation { order: 1; flex: 1 1 100%; margin-top: .1rem; }
.constellation-stars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: start; min-width: 0; }
.constellation-star { position: relative; display: grid; grid-template-rows: var(--lane) auto; justify-items: center; row-gap: .3rem; min-width: 0; }
/* 每颗星向左连一段线：两端都走过是暖金实线，还没走到是浅金虚线 */
.constellation-star + .constellation-star::before {
  content: ""; position: absolute; top: calc(var(--lane) / 2 - 1px); right: 50%; width: 100%; height: 2px; pointer-events: none;
  background: repeating-linear-gradient(90deg, #dccaa6 0 .3rem, transparent .3rem .55rem);
}
.constellation-star:is(.is-walked, .is-here) + .constellation-star:is(.is-walked, .is-here)::before {
  background: linear-gradient(90deg, #d9b47a, #c9a46a); box-shadow: 0 0 .4rem rgba(240, 196, 138, .45);
}
.constellation-dot {
  position: relative; z-index: 1; grid-row: 1; align-self: center; width: var(--dot); height: var(--dot); border-radius: 50%;
  background: #fffdf8; box-shadow: inset 0 0 0 1.5px #d6c19b;
}
.constellation-star.is-walked .constellation-dot {
  background: radial-gradient(circle at 35% 30%, #fff4dc 0, #f0c48a 45%, #c08a46 100%);
  box-shadow: 0 0 0 3px rgba(240, 196, 138, .18), 0 0 .6rem rgba(240, 196, 138, .55);
}
.constellation-star.is-here .constellation-dot {
  --dot: .95rem;
  background: radial-gradient(circle at 35% 30%, #4c7a6b 0, #2b4a41 60%, #1d342d 100%);
  box-shadow: 0 0 0 2px #f0c48a, 0 0 0 5px rgba(240, 196, 138, .22), 0 0 .9rem rgba(240, 196, 138, .6);
}
.constellation-star.is-here .constellation-dot::after {
  content: ""; position: absolute; inset: -.45rem; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 1.5px rgba(240, 196, 138, .7); animation: constellation-halo 2.6s ease-out infinite;
}
@keyframes constellation-halo { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.account-stage-constellation[data-state="paused"] .constellation-star.is-here .constellation-dot {
  background: radial-gradient(circle at 35% 30%, #ffe6c2 0, #e0a04f 55%, #b8722c 100%); box-shadow: 0 0 0 2px #e7b46e, 0 0 0 5px rgba(208, 138, 58, .18);
}
.account-stage-constellation[data-state="ended"] .constellation-star.is-here .constellation-dot {
  background: #d9cdb6; box-shadow: inset 0 0 0 1.5px #a8977a;
}
.account-stage-constellation:is([data-state="paused"], [data-state="ended"]) .constellation-star.is-here .constellation-dot::after { display: none; }
.account-stage-constellation[data-state="done"] .constellation-star:last-child .constellation-dot {
  box-shadow: 0 0 0 3px rgba(240, 196, 138, .24), 0 0 1rem rgba(240, 196, 138, .8);
}
.constellation-name {
  grid-row: 2; max-width: 100%; color: #a8977a; font-size: .72rem; line-height: 1.25; text-align: center;
  overflow-wrap: normal; word-break: keep-all; hyphens: auto;
}
.constellation-star.is-walked .constellation-name { color: #6b5733; }
.constellation-star.is-here .constellation-name { color: #2b4a41; font-weight: 700; }
.constellation-note { color: #4d4330; font-family: var(--serif); font-size: .84rem; line-height: 1.5; }
/* 名字上下交错：窄屏与概览卡里每个名字可以借用相邻一格的宽度，长名字也不挤 */
.account-stage-constellation.is-compact .constellation-star { grid-template-rows: var(--cap) var(--lane) var(--cap); row-gap: .15rem; }
.account-stage-constellation.is-compact .constellation-dot { grid-row: 2; }
.account-stage-constellation.is-compact .constellation-name { grid-row: 3; max-width: none; white-space: nowrap; font-size: .7rem; }
.account-stage-constellation.is-compact .constellation-star:nth-child(even) .constellation-name { grid-row: 1; }
.account-stage-constellation.is-compact .constellation-star + .constellation-star::before { top: calc(var(--cap) + .15rem + var(--lane) / 2 - 1px); }
@media (max-width: 640px) {
  .account-stage-constellation { padding: .6rem .6rem .5rem; }
  .account-stage-constellation .constellation-star { grid-template-rows: var(--cap) var(--lane) var(--cap); row-gap: .15rem; }
  .account-stage-constellation .constellation-dot { grid-row: 2; }
  .account-stage-constellation .constellation-name { grid-row: 3; max-width: none; white-space: nowrap; font-size: .68rem; }
  .account-stage-constellation .constellation-star:nth-child(even) .constellation-name { grid-row: 1; }
  .account-stage-constellation .constellation-star + .constellation-star::before { top: calc(var(--cap) + .15rem + var(--lane) / 2 - 1px); }
}

/* ---- 循环档案：状态筛选签、本页即时查找、命中高亮与单轮手记导出 ---- */
.journal-filter { display: grid; gap: .5rem; margin-top: .85rem; padding: .75rem .85rem; border-radius: .9rem; background: #fffdf8; box-shadow: inset 0 0 0 1px #e6d5b8; }
.journal-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; }
.journal-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.journal-chip {
  min-height: 2.5rem; padding: .3rem .9rem; border: 0; border-radius: 999px; background: #f6ecdb; color: #5b4a2c;
  font: inherit; font-size: .86rem; font-weight: 600; line-height: 1.2; cursor: pointer; box-shadow: inset 0 0 0 1px #e1cda8;
  transition: background-color .16s, color .16s, box-shadow .16s;
}
.journal-chip:hover { box-shadow: inset 0 0 0 1.5px #c08a46; }
.journal-chip[aria-pressed="true"] { background: #2b4a41; color: #fbf3e3; box-shadow: inset 0 0 0 1px #2b4a41, 0 .3rem .8rem rgba(43, 74, 65, .18); }
.journal-search { position: relative; display: block; flex: 1 1 15rem; min-width: 0; margin: 0; }
.journal-search::before {
  content: ""; position: absolute; left: .9rem; top: 50%; width: .6rem; height: .6rem; margin-top: -.42rem; border: 1.6px solid #8a6430;
  border-radius: 50%; pointer-events: none;
}
.journal-search::after {
  content: ""; position: absolute; left: 1.45rem; top: 50%; width: .38rem; height: 1.6px; margin-top: .2rem; border-radius: 1px;
  background: #8a6430; transform: rotate(45deg); transform-origin: left center; pointer-events: none;
}
.journal-search-input {
  width: 100%; min-height: 2.5rem; padding: .35rem .9rem .35rem 2.2rem; border: 1px solid #d3c5ab; border-radius: 999px;
  background: #fffefb; color: #36322a; font: inherit; font-size: .92rem; -webkit-appearance: none; appearance: none;
}
.journal-search-input::placeholder { color: #a8977a; }
.journal-hint { margin: 0; color: #8a7a5e; font-size: .78rem; line-height: 1.5; }
.journal-status { margin: 0; color: #2b4a41; font-size: .82rem; font-weight: 600; }
.journal-status:empty { display: none; }
.journal-empty { display: grid; justify-items: start; gap: .55rem; margin-top: .85rem; padding: 1rem 1.1rem; border-radius: 1rem; background: #fffdf8; box-shadow: inset 0 0 0 1px #e6d5b8; }
.journal-empty p { margin: 0; color: #5b4f3c; }
.account-sheet .journal-empty .btn { margin: 0; }
mark.journal-hit { padding: 0 .08em; border-radius: .2em; background: rgba(240, 196, 138, .55); color: inherit; box-shadow: 0 0 0 1px rgba(201, 164, 106, .35); }
.account-sheet .account-loop-card .account-loop-foot { flex-wrap: wrap; align-items: center; gap: .5rem; }
.journal-export-note { flex: 1 1 100%; margin: 0; color: #2f7a62; font-size: .8rem; text-align: end; }
.journal-export-note:empty { display: none; }
@media (max-width: 640px) {
  /* 三枚筛选签在手机上并成一排等宽分段，不再折成两行 */
  .journal-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .journal-chip { padding: .3rem .4rem; font-size: .8rem; white-space: normal; }
  .journal-search { flex-basis: 100%; }
  .account-sheet .account-loop-card .account-loop-foot .btn { flex: 1 1 100%; }
  .journal-export-note { text-align: start; }
}

/* ---- 个人中心概览：「循环档案」卡上看一眼最近一轮的星图 ---- */
.journal-trail { display: grid; gap: .45rem; padding: .7rem .75rem .75rem; border-radius: .85rem; background: #fbf4e6; box-shadow: inset 0 0 0 1px #ecdcbd; }
.journal-trail-k { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; color: #8a6430; font-size: .74rem; font-weight: 700; letter-spacing: .12em; }
.journal-trail-k span { min-width: 0; color: #2e3a33; font-family: var(--serif); font-size: .95rem; letter-spacing: 0; overflow-wrap: anywhere; }
.journal-trail .account-stage-constellation { margin: 0; padding: .35rem .15rem .2rem; background: none; box-shadow: none; }
.account-sheet .journal-trail .btn { justify-self: start; margin: 0; }

/* ---- 减弱动效（系统设置与站内开关）：不浮入、不升起、星环不呼吸 ---- */
@media (prefers-reduced-motion: reduce) {
  .app > .public-work.is-entering, .public-resume-pill, .constellation-star.is-here .constellation-dot::after,
  .app .public-bar .public-bar-inner > nav > .btn.is-active[aria-current="page"]::after { animation: none; }
}
.motion-off .app > .public-work.is-entering, .motion-off .public-resume-pill, .motion-off .constellation-star.is-here .constellation-dot::after { animation: none; }

/* ==== 2026-11-22 实景口型演播与逐字蹦词同步 ==== */
/* 公开剧场（public_drama.js）与内部演示短剧（drama.js）共用 drama_speech.js：
   - 台词、提问与剧中人刚接的一句，挂载的第一帧就是整句（一粒一枚 .drama-tok）：没吐出的字透明，吐出的一粒在原位柔和浮现
     （只渐变透明度，不上下跳），刚蹦出的那一粒带一点很淡的暖色（下一粒蹦出时移交）。节奏全部由脚本切换类名驱动：
     系统减弱动效把过渡压成一瞬时，字照样一粒一粒出来；
   - 剧场根节点默认挂 .is-live-perform：系统偏好减弱动效（远程桌面常这样上报）时照常放实景口型短片，镜头不动（实景层块的
     减弱动效一节照旧）；站内减弱动效或「静止剧照」开着时脚本不放短片；
   - 2026-11-22 克制微表演（任务单 restrained-acting-voice-sync）：实景演播时镜头收成定机位的微呼吸——每句只在极小的幅度里
     慢慢推近或松开，过渡放缓到一拍长呼吸（实景层块的推拉规则原样不动，由这里更具体的规则在演播时覆盖）；舞台上不再挂近景
     特写圆窗，说话人的神态章与对白框也不再逐粒闪烁。块内不写 640px 断点。 */
.drama-tok {
  position: relative; top: 0; opacity: 0;
  transition: opacity 160ms var(--ease), color 420ms var(--ease);
}
.drama-tok.is-spoken { top: 0; opacity: 1; }
.drama-tok.is-pop { color: #fbe6c6; }
/* 说话中：一道呼吸的光标跟在刚蹦出的那一粒后面（绝对定位，不挤动后面还没吐出的字；整句末尾不再另挂打字光标）；
   整句吐完收起，对白框露出原有的句末推进小三角 */
:is(.drama-say, .drama-ask-prompt, .drama-live-say, .drama-rehearse-say).is-speech.is-typing::after { content: none; }
:is(.drama-say, .drama-ask-prompt, .drama-live-say, .drama-rehearse-say).is-speech.is-typing .drama-tok.is-pop::after {
  content: ""; position: absolute; top: .18em; bottom: .08em; right: -5px; width: 2px; border-radius: 1px; pointer-events: none;
  background: var(--lamp, #f0c48a); box-shadow: 0 0 6px rgba(240, 196, 138, .45); animation: drama-caret-breathe 1.4s ease-in-out infinite;
}
@keyframes drama-caret-breathe { 0%, 100% { opacity: .4; } 50% { opacity: .85; } }

/* 实景演播不随系统的减弱动效偏好停下：表演短片照常显示（站内减弱动效与静止剧照由脚本直接不放） */
@media (prefers-reduced-motion: reduce) {
  .drama.is-live-perform:not(.is-still-only) .drama-act-video { display: block; }
}

/* 定机位微呼吸：双人同框几乎不动、给到说话人一侧时只轻推一点、特写也只再近一分，松一口气时回到原画幅；
   换句时的镜头过渡放慢到一拍长呼吸，频繁翻句画幅也稳（只改镜头这一项的时长与缓动，淡入淡出的节奏不变） */
@media (prefers-reduced-motion: no-preference) {
  .drama.is-live-perform:not(.is-still-only) .drama-live-cinema {
    transition-property: opacity, visibility, transform; transition-duration: 420ms, 0s, 1800ms;
    transition-timing-function: var(--ease), linear, cubic-bezier(.25, .1, .25, 1);
  }
  .drama.is-live-perform:not(.is-still-only) .drama-stage.is-live-cinema[data-cam="two-shot"] .drama-live-cinema { transform: scale(1.004); }
  .drama.is-live-perform:not(.is-still-only) .drama-stage.is-live-cinema[data-cam="focus-a"] .drama-live-cinema { transform: scale(1.012) translate(.35%, 0); }
  .drama.is-live-perform:not(.is-still-only) .drama-stage.is-live-cinema[data-cam="focus-b"] .drama-live-cinema { transform: scale(1.012) translate(-.35%, 0); }
  .drama.is-live-perform:not(.is-still-only) .drama-stage.is-live-cinema[data-cam="close-a"] .drama-live-cinema { transform: scale(1.018) translate(.55%, -.2%); }
  .drama.is-live-perform:not(.is-still-only) .drama-stage.is-live-cinema[data-cam="close-b"] .drama-live-cinema { transform: scale(1.018) translate(-.55%, -.2%); }
  .drama.is-live-perform:not(.is-still-only) .drama-stage.is-live-cinema[data-cam="exhale-wide"] .drama-live-cinema { transform: scale(1); }
}

/* 近景口型特写圆窗：两座剧场不再挂进舞台（正对镜头的棚拍特写会打破两人对话的第四面墙），万一挂进来也不显示；
   神态章保持原来那枚安静的静态圆形立绘 */
.drama-cameo { display: none; }
.drama.is-still-only .drama-act-video { display: none; }
.drama.is-still-only .drama-live-cinema, .drama.is-still-only .drama-stage.is-live-cinema[data-cam] .drama-live-cinema { transform: none; transition: none; }

/* 「静止剧照」开关：公开剧场在剧目栏声景分组之后，是一枚安静的胶囊（手机上只留图标，名字仍在、读屏照读）；
   内部演示短剧在工具条里，与工具胶囊同一种样式（独立的类名，工具胶囊的文案清单不变）。开着时暖金点亮 */
.public-drama .public-drama-control.drama-still-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-color: rgba(240, 214, 176, .24);
  background: rgba(8, 6, 16, .35); color: #d8cfc0; font-size: 12.5px;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.public-drama .public-drama-control.drama-still-toggle:hover { background: rgba(255, 244, 228, .08); color: #fff3df; }
.public-drama .public-drama-control.drama-still-toggle.is-on { background: rgba(240, 196, 138, .16); border-color: rgba(240, 196, 138, .55); color: #f6d6a6; }
@media (max-width: 650px) {
  .drama-still-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.drama-tools .drama-still-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 13px; border: 0; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .05); color: #d8d2e6; font-size: 13.5px; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: background-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.drama-tools .drama-still-toggle:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.drama-tools .drama-still-toggle.is-on { background: var(--lamp-soft); color: #f9ddb0; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .55); }
@media (max-width: 900px) { .drama-tools .drama-still-toggle { width: 38px; padding: 0; } }

/* ==== 2026-11-22 P1 写实微电影放映厅：对白节拍轨、本片台词单、三档字幕、键位速查、触屏轻滑与选片卡静音预览 ==== */
/* app.css 先于 public_landing.css 载入：与 public_landing.css 里同名元素相关的规则都带 .dinner-cinema 前缀抬高权重，不要简化；
   放映厅是暗场，不在剧场令牌（--lamp 等）的作用域里，颜色一律写成字面值。 */

/* ---- 对白节拍轨：画面正下方一条胶片，一句台词一枚圆点；当前一句舒展点亮，已播的几句微亮，两张收尾字卡是菱形 ---- */
.dinner-cinema .dinner-cue-rail {
  position: relative; display: flex; align-items: center; min-width: 0; height: 30px; margin: 0; padding: 0 10px;
  border-radius: 999px; background: linear-gradient(180deg, #0b090a, #151112); box-shadow: inset 0 0 0 1px #30261f;
}
.dinner-cinema .dinner-cue-rail::before, .dinner-cinema .dinner-cue-rail::after {
  content: ""; position: absolute; left: 14px; right: 14px; height: 3px; pointer-events: none; opacity: .62;
  background: repeating-linear-gradient(90deg, rgba(234, 217, 191, .3) 0 5px, rgba(234, 217, 191, 0) 5px 11px);
}
.dinner-cinema .dinner-cue-rail::before { top: 3px; }
.dinner-cinema .dinner-cue-rail::after { bottom: 3px; }
.dinner-cinema .dinner-cue-dot {
  position: relative; flex: 1 1 0; min-width: 0; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: inherit; cursor: pointer; transition: flex-grow .32s cubic-bezier(.2, .7, .2, 1);
}
/* 新一镜开始的那一句前面留一道细刻痕，九枚圆点按镜头自然分组 */
.dinner-cinema .dinner-cue-dot.is-shot { box-shadow: inset 1px 0 0 rgba(234, 217, 191, .18); }
.dinner-cinema .dinner-cue-dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 999px; transform: translate(-50%, -50%);
  background: #e7bd86; opacity: .3; box-shadow: 0 0 0 1px rgba(10, 8, 9, .6);
  transition: width .32s cubic-bezier(.2, .7, .2, 1), opacity .22s ease, box-shadow .22s ease, transform .22s ease;
}
.dinner-cinema .dinner-cue-dot.is-card::before { width: 8px; height: 8px; border-radius: 2px; transform: translate(-50%, -50%) rotate(45deg); }
.dinner-cinema .dinner-cue-dot.is-past::before { opacity: .72; }
.dinner-cinema .dinner-cue-dot.is-current { flex-grow: 1.9; cursor: default; }
.dinner-cinema .dinner-cue-dot.is-current::before {
  width: 30px; opacity: 1; background: linear-gradient(90deg, #f6d29c, #e6a95e);
  box-shadow: 0 0 0 1px rgba(255, 238, 210, .55), 0 0 14px rgba(240, 196, 138, .55);
}
.dinner-cinema .dinner-cue-dot.is-card.is-current::before { width: 12px; height: 12px; }
.dinner-cinema .dinner-cue-dot:not(.is-current):hover::before, .dinner-cinema .dinner-cue-dot:not(.is-current):focus-visible::before {
  opacity: 1; transform: translate(-50%, -50%) scale(1.35);
}
.dinner-cinema .dinner-cue-dot.is-card:not(.is-current):hover::before,
.dinner-cinema .dinner-cue-dot.is-card:not(.is-current):focus-visible::before { transform: translate(-50%, -50%) rotate(45deg) scale(1.35); }
.dinner-cinema .dinner-cue-dot:focus-visible { outline: 2px solid #e7bd86; outline-offset: -3px; }
/* 悬停或键盘聚焦浮出这一句的台词（最多三行），首尾三分之一的圆点把浮签往里收，不越出放映厅 */
.dinner-cinema .dinner-cue-tip {
  position: absolute; z-index: 6; bottom: calc(100% + 6px); left: 50%; width: max-content; max-width: min(18rem, 70vw);
  padding: 7px 12px 8px; border-radius: 10px; transform: translate(-50%, 4px); pointer-events: none;
  background: rgba(20, 16, 17, .96); color: #fff3df; font-size: 12.5px; font-weight: 500; line-height: 1.5; letter-spacing: .02em;
  text-align: start; white-space: normal; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(231, 189, 134, .36), 0 12px 28px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.dinner-cinema .dinner-cue-dot.is-start .dinner-cue-tip { left: 0; transform: translate(0, 4px); }
.dinner-cinema .dinner-cue-dot.is-end .dinner-cue-tip { left: auto; right: 0; transform: translate(0, 4px); }
.dinner-cinema .dinner-cue-dot:focus-visible .dinner-cue-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.dinner-cinema .dinner-cue-dot.is-start:focus-visible .dinner-cue-tip,
.dinner-cinema .dinner-cue-dot.is-end:focus-visible .dinner-cue-tip { transform: none; }
@media (hover: hover) {
  .dinner-cinema .dinner-cue-dot:hover .dinner-cue-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
  .dinner-cinema .dinner-cue-dot.is-start:hover .dinner-cue-tip, .dinner-cinema .dinner-cue-dot.is-end:hover .dinner-cue-tip { transform: none; }
  .dinner-cinema .dinner-cue-rail:has(.dinner-cue-dot:hover) .dinner-cue-dot:not(:hover) .dinner-cue-tip { opacity: 0; visibility: hidden; }
}

/* ---- 三档字幕：单语 → 双语对照（次行柔和的第二语言）→ 收起；控制条上的按钮随档位换名与底色 ---- */
.dinner-cinema .dinner-sub-mode.is-pair, .dinner-cinema .dinner-script-toggle.is-on {
  border-color: #e7bd86; background: #332821; color: #fff3dc; box-shadow: 0 0 0 3px rgba(231, 189, 134, .14);
}
.dinner-cinema .dinner-sub-mode.is-off { border-style: dashed; color: #b3a089; }
.dinner-cinema .dinner-subtitle .dinner-sub-pair {
  margin: 3px 0 0; color: #ead9bf; font-size: clamp(12.5px, 1.7vw, 15px); line-height: 1.5; letter-spacing: .01em; opacity: .88;
}
.dinner-cinema .dinner-subtitle.is-center .dinner-sub-pair { font: 400 clamp(13px, 1.9vw, 16px)/1.55 var(--serif); color: #e6d3b5; }
.dinner-cinema .dinner-subtitle.is-pair { padding-bottom: 10px; }

/* ---- 本片台词单：宽屏是叠在画面右侧的半透明暗场抽屉（不撑高画面），手机落在画面下方；当前一句高亮，点哪句跳哪句 ---- */
.dinner-cinema .dinner-stage { touch-action: pan-y pinch-zoom; }
.dinner-cinema .dinner-transcript {
  grid-area: stack; z-index: 3; justify-self: end; align-self: stretch; position: relative; contain: size;
  width: min(23rem, 46%); overflow-y: auto; overscroll-behavior: contain; padding: 12px 12px 14px;
  background: linear-gradient(180deg, rgba(16, 12, 13, .92), rgba(16, 12, 13, .84));
  box-shadow: inset 1px 0 0 rgba(231, 189, 134, .22), -18px 0 40px rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px) saturate(1.1); -webkit-backdrop-filter: blur(8px) saturate(1.1);
  scrollbar-width: thin; scrollbar-color: rgba(231, 189, 134, .35) transparent;
  animation: dinner-drawer-in .32s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes dinner-drawer-in { from { opacity: 0; translate: 14px 0; } }
.dinner-cinema .dinner-transcript-head {
  position: sticky; top: -12px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: -12px -12px 0; padding: 12px 12px 6px; background: rgba(16, 12, 13, .96);
}
.dinner-cinema .dinner-transcript-title { margin: 0; color: #e7b981; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.dinner-cinema .dinner-transcript-close, .dinner-cinema .dinner-help-close {
  flex: none; padding: 4px 12px; border: 1px solid #5e4e3e; border-radius: 999px; background: transparent; color: #efe0cb;
  font: inherit; font-size: 12px; line-height: 1.4; cursor: pointer; transition: border-color .2s ease, color .2s ease;
}
.dinner-cinema .dinner-transcript-close:hover, .dinner-cinema .dinner-help-close:hover { border-color: #c6a16f; color: #fff7ea; }
/* 暗场里的焦点环与放映厅其他控件同一束暖金，不用浏览器默认的蓝 */
.dinner-cinema .dinner-transcript-close:focus-visible, .dinner-cinema .dinner-help-close:focus-visible,
.dinner-cinema .dinner-sub-mode:focus-visible, .dinner-cinema .dinner-script-toggle:focus-visible { outline: 2px solid #e7bd86; outline-offset: 2px; }
.dinner-cinema .dinner-transcript-hint { margin: 2px 0 8px; color: #a99580; font-size: 12px; line-height: 1.5; }
.dinner-cinema .dinner-transcript-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.dinner-cinema .dinner-transcript-shot { margin: 9px 0 2px; padding-inline-start: 10px; color: #c9a878; font-size: 11.5px; letter-spacing: .1em; }
.dinner-cinema .dinner-transcript-shot:first-child { margin-top: 0; }
.dinner-cinema .dinner-transcript-line {
  display: grid; gap: 2px; width: 100%; margin: 0; padding: 7px 10px 8px; border: 0; border-radius: 10px; background: transparent;
  color: #e9dcc8; font: inherit; font-size: 13.5px; line-height: 1.55; text-align: start; cursor: pointer;
  box-shadow: inset 2px 0 0 rgba(231, 189, 134, 0); transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.dinner-cinema .dinner-transcript-line:hover { background: rgba(231, 189, 134, .08); color: #fff3df; }
.dinner-cinema .dinner-transcript-line.is-current { background: rgba(231, 189, 134, .15); color: #fff6e6; box-shadow: inset 2px 0 0 #e7bd86; }
.dinner-cinema .dinner-transcript-line:focus-visible { outline: 2px solid #e7bd86; outline-offset: -2px; }
.dinner-cinema .dinner-transcript-say { display: block; }
.dinner-cinema .dinner-transcript-line.is-card .dinner-transcript-say { font-family: var(--serif); color: #f6e2c2; }
.dinner-cinema .dinner-transcript-pair { display: block; color: #bda98f; font-size: 12.5px; }
@media (min-width: 641px) {
  /* 抽屉打开时，字幕与居中字卡让到画面左侧，不压在抽屉底下：宽度扣掉抽屉，右侧留出与左边距同宽的一道缝 */
  .dinner-cinema .dinner-stage.has-script .dinner-subtitle {
    justify-self: start; width: min(calc(100% - min(23rem, 46%) - 2 * clamp(12px, 3%, 28px)), 30rem);
    margin-inline-start: clamp(12px, 3%, 28px);
  }
}
@media (max-width: 640px) {
  .dinner-cinema .dinner-stage.has-script { grid-template-areas: "stack" "script"; }
  .dinner-cinema .dinner-transcript {
    grid-area: script; justify-self: stretch; width: auto; contain: none; max-height: min(46vh, 22rem);
    box-shadow: inset 0 1px 0 rgba(231, 189, 134, .22); animation-name: dinner-drawer-up;
  }
}
@keyframes dinner-drawer-up { from { opacity: 0; translate: 0 10px; } }

/* ---- 放映厅键位速查：顶栏关闭键旁一枚小圆键（问号键同样打开），速查卡浮在视口正中 ---- */
.dinner-cinema .dinner-help-toggle {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid #5e4e3e; border-radius: 50%; background: transparent; color: #f3dcb6; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.dinner-cinema .dinner-help-toggle:hover { border-color: #c6a16f; color: #fff7ea; }
.dinner-cinema .dinner-help-toggle.is-on { border-color: #e7bd86; background: linear-gradient(180deg, #f6d29c, #e6a95e); color: #2a1a0d; }
.dinner-cinema .dinner-help-toggle:focus-visible { outline: 3px solid #e7bd86; outline-offset: 2px; }
.dinner-cinema .dinner-help-glyph { font-family: var(--serif); font-size: 15px; font-weight: 700; line-height: 1; }
.dinner-cinema .dinner-help {
  position: fixed; z-index: 8; top: 50%; left: 50%; width: min(25rem, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto;
  padding: 14px 16px 16px; border-radius: 18px; transform: translate(-50%, -50%);
  background: #151112; color: #f4ead8;
  box-shadow: inset 0 0 0 1px rgba(231, 189, 134, .32), 0 28px 70px rgba(0, 0, 0, .6);
  animation: dinner-help-in .26s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes dinner-help-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); } }
.dinner-cinema .dinner-help-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dinner-cinema .dinner-help-title { margin: 0; color: #e7b981; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; }
.dinner-cinema .dinner-help-list { display: grid; gap: 7px; margin: 12px 0 0; }
.dinner-cinema .dinner-help-row { display: grid; grid-template-columns: minmax(5.4rem, auto) minmax(0, 1fr); align-items: center; gap: 12px; }
.dinner-cinema .dinner-help-row dt { display: flex; flex-wrap: wrap; gap: 4px; }
.dinner-cinema .dinner-help-row dd { margin: 0; color: #e8dfd0; font-size: 13px; line-height: 1.5; }
.dinner-cinema .dinner-help kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 244, 228, .14), rgba(255, 244, 228, .05)); color: #fff3df;
  font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(231, 189, 134, .3);
}
.dinner-cinema .dinner-help-tips {
  display: grid; gap: 6px; margin: 12px 0 0; padding: 10px 0 0; list-style: none; border-top: 1px dashed rgba(231, 189, 134, .2);
}
.dinner-cinema .dinner-help-tips li { position: relative; padding-inline-start: 14px; color: #d9cfbf; font-size: 12.5px; line-height: 1.6; }
.dinner-cinema .dinner-help-tips li::before {
  content: ""; position: absolute; left: 2px; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: #e7bd86;
}
.dinner-cinema .dinner-keys-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-width: 0; }
.dinner-cinema .dinner-keys-more { margin: 0; color: #8f7d6a; font-size: 12px; line-height: 1.5; letter-spacing: .02em; }
@media (hover: none) and (pointer: coarse) { .dinner-cinema .dinner-keys-row { display: none; } }
@media (max-width: 640px) {
  .dinner-cinema .dinner-help-row { grid-template-columns: minmax(4.6rem, auto) minmax(0, 1fr); gap: 10px; }
  .dinner-cinema .dinner-cue-rail { height: 28px; padding: 0 6px; }
  .dinner-cinema .dinner-cue-dot { height: 28px; }
}

/* ---- 选片卡与主海报的静音预览：悬停或键盘聚焦时在缩略图里淡入首镜，移开即撤下（减弱动效时从不出现） ---- */
.dinner-gallery-frame .dinner-preview, .dinner-cover .dinner-preview {
  position: absolute; left: 0; width: 100%; object-fit: cover; pointer-events: none; opacity: 0; transition: opacity .45s ease;
}
.dinner-gallery-frame .dinner-preview { top: 8px; height: calc(100% - 16px); border-radius: 2px; }
.dinner-cover .dinner-preview { top: 0; height: 100%; }
.dinner-gallery-frame .dinner-preview.is-live, .dinner-cover .dinner-preview.is-live { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .dinner-cinema .dinner-cue-dot, .dinner-cinema .dinner-cue-dot::before, .dinner-cinema .dinner-cue-tip,
  .dinner-cinema .dinner-transcript-line, .dinner-gallery-frame .dinner-preview, .dinner-cover .dinner-preview { transition: none; }
  .dinner-cinema .dinner-transcript, .dinner-cinema .dinner-help { animation: none; }
  .dinner-gallery-frame .dinner-preview, .dinner-cover .dinner-preview { display: none; }
}

/* ==== 2026-11-22 P1 互动剧场：八剧专属试演签的语气小签、章回已走集数的回响浮签 ==== */
/* 试演签三行：语气小签（说出感受 / 询问处境 / 立住边界）、这部剧里的那一步、点一下填进排练框的那句话 */
.drama-rehearse-chip-tone {
  justify-self: start; padding: 0 8px; border-radius: 999px; background: rgba(240, 196, 138, .1); color: #e9bd84;
  font-size: 11px; font-weight: 600; line-height: 1.7; letter-spacing: .06em; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .24);
}
.drama-rehearse-chip.is-picked .drama-rehearse-chip-tone { background: rgba(240, 196, 138, .22); color: #fbe3bd; }

/* 章回胶囊的回响浮签：走过的那一集，悬停或聚焦时在胶囊下方浮出本集阶段、你选过的走向与你的心声 */
.drama-chapter-item { position: relative; }
.drama-chapters:has(.drama-chapter-echo) { position: relative; z-index: 8; }
.drama-chapter-echo {
  position: absolute; z-index: 1; top: calc(100% + 8px); left: 0; display: grid; gap: 3px; width: max-content; max-width: min(18rem, 76vw);
  padding: 8px 12px 9px; border-radius: 12px; pointer-events: none; text-align: start; white-space: normal;
  background: rgba(14, 11, 24, .96); color: #f1e7d7; font-size: 12.5px; line-height: 1.5; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .32), 0 14px 32px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.drama-chapter-item:nth-last-child(-n+3) > .drama-chapter-echo { left: auto; right: 0; }
.drama-chapter-echo-k { color: #f3cf98; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; }
.drama-chapter-echo-line { overflow-wrap: anywhere; }
.drama-chapter-echo-go { color: #bfb3a2; font-size: 11.5px; }
.drama-chapter-item:focus-within > .drama-chapter-echo { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) {
  .drama-chapter-item:hover > .drama-chapter-echo { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
/* 手机上章回条是一条可横滑的细轨，点胶囊就直接回看：浮签不出现，读屏仍从胶囊的说明里读到回响 */
@media (max-width: 640px), (hover: none) { .drama-chapter-echo { display: none; } }
@media (prefers-reduced-motion: reduce) { .drama-chapter-echo { transition: none; } }

/* ==== 2026-11-22 第二轮 P2 · 成长计划节奏向导与透明对照、个人中心轮次口径与成长记忆、工作台引子状态、首页快捷坞收折 ====
   app.css 先于 public_workspace.css 加载，所以公开内页的规则一律带 .account-sheet / .public-bench 前缀，压过后者的通用规则
   （.public-card details、.public-card summary、.btn 等）；首页规则带 .pub-home 前缀。窄屏断点只用 650px，与 public_workspace.css
   一致；不引用外部资源，不用计数器，所有 [hidden] 显隐都显式写出。 */

/* ---- 成长计划 · 「此刻哪种节奏适合你？」三情境向导：宣纸卡面上的三枚情境签，点亮一枚后在下方给出坦诚的建议 ---- */
.account-sheet .account-plans-compass {
  display: grid; gap: .8rem; margin: .2rem 0 1.25rem; padding: 1rem clamp(.9rem, 2.4vw, 1.3rem) 1.1rem; border-radius: 1.1rem;
  background: linear-gradient(180deg, #fbf3e4, #f6ead4); box-shadow: inset 0 0 0 1px #e1c89b;
}
.account-sheet .account-plans-compass-head { display: grid; gap: .3rem; }
.account-sheet .account-plans-compass-head h2 { margin: 0; font-size: 1.15rem; }
.account-sheet .account-plans-paces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.account-sheet .account-plans-pace {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .6rem; min-height: 4.4rem; margin: 0;
  padding: .75rem .85rem; border: 0; border-radius: .95rem; background: #fffdf8; color: #36322a; font: inherit; text-align: start;
  cursor: pointer; box-shadow: inset 0 0 0 1px #e3d2b3, 0 .3rem .9rem rgba(92, 64, 28, .06);
  transition: box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.account-sheet .account-plans-pace:hover { box-shadow: inset 0 0 0 1.5px #c79b5c, 0 .6rem 1.3rem rgba(92, 64, 28, .12); }
.account-sheet .account-plans-pace[aria-pressed="true"] {
  background: #2b4a41; color: #fbf3e3; box-shadow: inset 0 0 0 1px #2b4a41, 0 .6rem 1.4rem rgba(43, 74, 65, .22);
}
.account-sheet .account-plans-pace-mark {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #f3e7d2; color: #2b4a41;
}
.account-sheet .account-plans-pace[aria-pressed="true"] .account-plans-pace-mark { background: rgba(240, 196, 138, .2); color: #f0c48a; }
.account-sheet .account-plans-pace-copy { display: grid; gap: .2rem; min-width: 0; }
.account-sheet .account-plans-pace-copy strong { font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.account-sheet .account-plans-pace-copy small { color: #7a6a50; font-size: .8rem; line-height: 1.5; }
.account-sheet .account-plans-pace[aria-pressed="true"] .account-plans-pace-copy small { color: #dccfb6; }
.account-sheet .account-plans-answer {
  display: grid; gap: .5rem; padding: .85rem 1rem; border-radius: .9rem; background: #fffdf8; box-shadow: inset 0 0 0 1px #e6d5b8;
}
.account-sheet .account-plans-answer p { margin: 0; color: #4a4336; line-height: 1.7; }
.account-sheet .account-plans-answer .account-plans-answer-title { color: #2b4a41; font-family: var(--serif); font-size: 1.02rem; font-weight: 700; }
.account-sheet .account-plans-answer .account-plans-answer-hint { color: #7a6a50; font-size: .9rem; }
.account-sheet .account-plans-answer .account-plans-answer-more { color: #87561b; font-size: .88rem; }
.account-sheet .account-plans-answer .account-actions { margin-top: .15rem; }
.account-sheet .account-plans-steps { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.account-sheet .account-plans-steps li { position: relative; padding-left: 1.5rem; color: #4a4336; line-height: 1.6; }
.account-sheet .account-plans-steps li::before {
  content: ""; position: absolute; left: .28rem; top: .5em; width: .5rem; height: .5rem; border-radius: 50%;
  background: #8a6430; box-shadow: 0 0 0 3px rgba(138, 100, 48, .16);
}
.account-sheet .account-plans-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: .52rem; top: calc(.5em + .7rem); bottom: -.55rem; width: 1px; background: #dcc49a;
}
/* 被情境点亮的方案卡：同色描边加深、轻轻浮起，右上角一枚「最贴近你此刻的节奏」签（窄屏改到卡片顶部一行） */
.account-sheet .account-plan { transition: box-shadow .25s ease, transform .25s ease; }
.public-plans .public-section.account-plan.is-recommended {
  box-shadow: inset 0 0 0 2px var(--tone), 0 1rem 2.4rem rgba(92, 64, 28, .18); transform: translateY(-2px);
}
.account-sheet .account-plan-ribbon {
  position: absolute; top: .95rem; right: .9rem; display: inline-flex; align-items: center; gap: .3rem; max-width: calc(100% - 5rem);
  padding: .16rem .62rem; border-radius: 999px; background: var(--tone); color: #fbf3e3; font-size: .74rem; font-weight: 700;
  letter-spacing: .04em; line-height: 1.4;
}

/* ---- 成长计划 · 服务边界与透明对照（默认折叠）：三栏包含什么，底部一条全平台共同坚守的边界 ---- */
.account-sheet details.account-plans-matrix {
  margin: 1.2rem 0 0; padding: 0; border: 0; border-radius: 1rem; overflow: hidden; background: #fffdf8;
  box-shadow: inset 0 0 0 1px #e6d5b8, 0 .5rem 1.3rem rgba(92, 64, 28, .07);
}
.account-sheet .account-plans-matrix > summary {
  position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; padding: .85rem 2.8rem .85rem 1.1rem;
  list-style: none; cursor: pointer;
}
.account-sheet .account-plans-matrix > summary::-webkit-details-marker { display: none; }
.account-sheet .account-plans-matrix > summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 1.2rem; width: .5rem; height: .5rem; border-right: 2px solid #b08a55;
  border-bottom: 2px solid #b08a55; transform: rotate(45deg); transition: transform .2s ease;
}
.account-sheet .account-plans-matrix[open] > summary::after { transform: translateY(.2rem) rotate(-135deg); }
.account-sheet .account-plans-matrix > summary:hover { background: #fdf6ea; }
.account-sheet .account-plans-matrix-k {
  display: inline-flex; align-items: center; gap: .4rem; color: #2e3a33; font-family: var(--serif); font-size: 1.02rem; font-weight: 700;
}
.account-sheet .account-plans-matrix-k .icon { color: #2b4a41; }
.account-sheet .account-plans-matrix-hint { color: #7a6a50; font-size: .84rem; font-weight: 400; }
.account-sheet .account-plans-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; padding: .2rem 1.1rem 0; }
.account-sheet .account-plans-col {
  display: grid; align-content: start; gap: .5rem; min-width: 0; margin: 0; padding: .9rem .9rem 1rem; border: 0; border-radius: .9rem;
  background: #fbf6ec; box-shadow: inset 0 0 0 1px #ecdcbd, inset 0 .25rem 0 var(--tier, #8a6430);
}
.account-sheet .account-plans-col[data-tier="free"] { --tier: #2f7a62; }
.account-sheet .account-plans-col[data-tier="personal"] { --tier: #3f6b8e; }
.account-sheet .account-plans-col[data-tier="pilot"] { --tier: #8a6430; }
.account-sheet .account-plans-col .account-plans-col-title {
  display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--tier, #8a6430); font-size: 1rem;
}
.account-sheet .account-plans-col ul, .account-sheet .account-plans-never ul { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.account-sheet .account-plans-col li { position: relative; padding-left: 1.3rem; color: #4a4336; font-size: .9rem; line-height: 1.6; }
.account-sheet .account-plans-col li::before { content: "\2713"; position: absolute; left: 0; color: var(--tier, #8a6430); font-weight: 700; }
.account-sheet .account-plans-never {
  display: grid; gap: .55rem; margin: .8rem 1.1rem 1.1rem; padding: .85rem .95rem; border-radius: .9rem; background: #f6ecdb;
  box-shadow: inset 0 0 0 1px #e7d6b9;
}
.account-sheet .account-plans-never-k {
  display: flex; align-items: center; gap: .4rem; margin: 0; color: #8a6430; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
}
.account-sheet .account-plans-never ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1.2rem; }
.account-sheet .account-plans-never li { position: relative; padding-left: 1.2rem; color: #5b4a2c; font-size: .88rem; line-height: 1.55; }
.account-sheet .account-plans-never li::before {
  content: ""; position: absolute; left: .15rem; top: .55em; width: .42rem; height: .42rem; border-radius: 50%;
  box-shadow: inset 0 0 0 2px #2b4a41;
}

/* ---- 成长计划 · 常见疑问手风琴：一次展开一条 ---- */
.account-sheet .account-plans-faq { display: grid; gap: .5rem; }
.account-sheet .account-plans-faq .account-section-title { margin: 1.4rem 0 .2rem; }
.account-sheet details.account-plans-qa {
  margin: 0; padding: 0; border: 0; border-radius: .9rem; background: #fffdf8; box-shadow: inset 0 0 0 1px #e6d5b8;
}
.account-sheet .account-plans-qa > summary {
  position: relative; padding: .75rem 2.6rem .75rem 1rem; list-style: none; cursor: pointer; color: #2e3a33; font-weight: 600; line-height: 1.55;
}
.account-sheet .account-plans-qa > summary::-webkit-details-marker { display: none; }
.account-sheet .account-plans-qa > summary::after {
  content: ""; position: absolute; right: 1.1rem; top: 1.05rem; width: .45rem; height: .45rem; border-right: 2px solid #b08a55;
  border-bottom: 2px solid #b08a55; transform: rotate(45deg); transition: transform .2s ease;
}
.account-sheet .account-plans-qa[open] > summary::after { transform: translateY(.2rem) rotate(-135deg); }
.account-sheet .account-plans-qa > summary:hover { color: #2b4a41; }
.account-sheet .account-plans-qa[open] { box-shadow: inset 0 0 0 1.5px #c08a46, 0 .5rem 1.2rem rgba(92, 64, 28, .08); }
.account-sheet .account-plans-qa > p { margin: 0; padding: 0 1rem .8rem; color: #4a4336; line-height: 1.75; }

/* ---- 个人中心 · 轮次口径：「已走完第几轮」签、筛选签下的一句说明 ---- */
.account-state-chip.is-lap { background: #f6ebd2; color: #7a5a1c; box-shadow: inset 0 0 0 1px #ead3a4; }
.journal-trail-k .account-state-chip.is-lap { font-family: inherit; letter-spacing: .04em; }
.account-sheet .journal-legend {
  margin: 0; padding: .45rem .7rem; border-radius: .7rem; background: #fbf4e6; color: #6f5a36; font-size: .8rem; line-height: 1.6;
  box-shadow: inset 0 0 0 1px #ecdcbd;
}

/* ---- 个人成长记忆 · 记忆提炼切角签与导出备份 ---- */
.account-sheet .account-memory-angles { display: grid; gap: .45rem; }
.account-sheet .account-memory-angles-k {
  display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin: 0; color: #8a6430; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em;
}
.account-sheet .account-memory-angles-note { color: #9a8a6c; font-size: .76rem; font-weight: 400; letter-spacing: 0; }
.account-sheet .account-memory-angle-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.account-sheet .account-memory-angle {
  margin: 0; padding: .35rem .85rem; border: 0; border-radius: 999px; background: #fbf3e4; color: #5b4a2c; font: inherit; font-size: .86rem;
  line-height: 1.45; text-align: start; cursor: pointer; box-shadow: inset 0 0 0 1px #e1c89b; transition: background-color .2s ease, box-shadow .2s ease;
}
.account-sheet .account-memory-angle:hover { background: #fff6e6; box-shadow: inset 0 0 0 1.5px #c08a46; }
.account-sheet .account-memory-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: -.2rem 0 .85rem; }
.account-sheet .account-memory-tools .btn { margin: 0; }
.account-sheet .account-memory-tools .journal-export-note { flex: 1 1 12rem; text-align: start; }

/* ---- 工作台 · 一问一答：只有起笔引子的一问，收起时和其他收起的一问同样一行，状态签换成琥珀色「已选引子 · 待续写」 ---- */
.public-bench .bench-compose.is-flow:not(.is-all) .bench-step.is-primed {
  grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: .6rem; row-gap: .25rem; padding: .5rem .75rem;
  font-size: .9rem; cursor: text; background: #fbf3e3; box-shadow: inset 0 0 0 1px #e8c995;
}
.public-bench .bench-compose.is-flow:not(.is-all) .bench-step.is-primed textarea {
  grid-column: 1 / -1; box-sizing: border-box; height: calc(1.5em + .8rem + 2px); min-height: 0; resize: none; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis; line-height: 1.5; padding: .4rem .6rem; background: rgba(255, 254, 250, .7);
  box-shadow: inset 0 0 0 1px #ead7b4;
}
.public-bench .bench-compose.is-flow:not(.is-all) .bench-step.is-primed .bench-step-state {
  display: inline-block; grid-row: 1; grid-column: 3; justify-self: end; color: #9a6a24; font-size: .74rem; white-space: nowrap;
}
.public-bench .bench-compose.is-flow:not(.is-all) .bench-step.is-primed .bench-step-state::before { content: "\270E"; margin-right: .3rem; }

/* ---- 首页 · 浮动快捷坞的收折角标：展开时是坞条最右的一枚小圆钮，收起后只剩右下角一枚极简小圆章 ---- */
.pub-home .pub-float-bar .pub-float-fold {
  width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 0; justify-content: center; flex: none;
}
.pub-home .pub-float-dock:not(.is-tucked) .pub-float-fold { position: relative; margin-inline-start: 7px; color: #c9d2ec; }
.pub-home .pub-float-dock:not(.is-tucked) .pub-float-fold::before {
  content: ""; position: absolute; left: -5px; top: 50%; width: 1px; height: 18px; margin-top: -9px; background: rgba(255, 255, 255, .22);
}
.pub-home .pub-float-dock:not(.is-tucked) .pub-float-fold:hover { color: #fff; }
.pub-home .pub-float-dock.is-tucked .pub-float-bar { padding: 4px; }
.pub-home .pub-float-dock.is-tucked .pub-float-fold { color: #f0c48a; box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .55); }
.pub-home .pub-float-dock.is-tucked .pub-float-fold:hover { background: rgba(240, 196, 138, .16); color: #ffe4bd; }

/* ---- 断点：窄屏三枚情境签与三栏对照改为上下排，推荐签落到卡片顶部一行 ---- */
@media (max-width: 860px) {
  .account-sheet .account-plans-paces { grid-template-columns: minmax(0, 1fr); }
  .account-sheet .account-plans-pace { min-height: 0; }
  .account-sheet .account-plans-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .account-sheet .account-plans-never ul { grid-template-columns: minmax(0, 1fr); }
  .account-sheet .account-plan-ribbon { position: static; justify-self: start; max-width: none; }
  .account-sheet .account-memory-tools .btn { flex: 1 1 100%; }
  .public-bench .bench-compose.is-flow:not(.is-all) .bench-step.is-primed { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; font-size: 0; }
  .public-bench .bench-compose.is-flow:not(.is-all) .bench-step.is-primed > * { font-size: .85rem; }
  .public-bench .bench-compose.is-flow:not(.is-all) .bench-step.is-primed textarea { flex: 1 1 100%; order: 3; }
  .public-bench .bench-compose.is-flow:not(.is-all) .bench-step.is-primed .bench-step-state { order: 2; margin-left: auto; font-size: .72rem; }
}
/* 减弱动效（系统设置与站内开关）：被点亮的方案卡不浮起，向导与手风琴不做过渡 */
@media (prefers-reduced-motion: reduce) {
  .public-plans .public-section.account-plan.is-recommended { transform: none; }
  .account-sheet :is(.account-plan, .account-plans-pace, .account-memory-angle) { transition: none; }
  .account-sheet :is(.account-plans-matrix, .account-plans-qa) > summary::after { transition: none; }
}
.motion-off .public-plans .public-section.account-plan.is-recommended { transform: none; }
.motion-off .account-sheet :is(.account-plan, .account-plans-pace, .account-memory-angle),
.motion-off .account-sheet :is(.account-plans-matrix, .account-plans-qa) > summary::after { transition: none; }

/* ---- U1 × U4 跨席接缝：当底部「回到刚才的现场」续接胶囊在场时，首页右下角浮动快捷坞整体升到胶囊上方让位，窄屏与宽屏均零重叠。
   宽屏胶囊只有一行；窄屏（≤640px）主句最多折成两行、胶囊更高，快捷坞再多升一段，两档都留出一指宽的呼吸间距。
   键盘聚焦与「滚到可见」同样停在升起后的快捷坞上方；收起胶囊后快捷坞平滑落回原位（减弱动效时随全站一起免去过渡） ---- */
.app .pub-home .pub-float-dock { transition: opacity 240ms ease, transform 240ms ease, bottom 280ms ease; }
.app:has(> .public-resume-pill) .pub-home .pub-float-dock { bottom: calc(env(safe-area-inset-bottom, 0px) + 5.2rem); }
/* 有剧照经过时快捷坞原地淡出，不再往下沉进胶囊里 */
.app:has(> .public-resume-pill) .pub-home .pub-float-dock.is-shy { transform: none; }
html:has(.app > .public-resume-pill):has(.pub-home > .pub-header) { scroll-padding-bottom: 148px; }
@media (max-width: 640px) {
  .app:has(> .public-resume-pill) .pub-home .pub-float-dock { bottom: calc(env(safe-area-inset-bottom, 0px) + 6.2rem); }
  html:has(.app > .public-resume-pill):has(.pub-home > .pub-header) { scroll-padding-bottom: 168px; }
}

.public-card .bench-records-drawer, .bench-knowledge, .account-reset {
  margin-block: 1rem;
  padding: .85rem 1rem;
  border: 1px solid #d7c8ac;
  border-radius: .8rem;
  background: #faf6ed;
  overflow-wrap: anywhere;
}
.bench-records-drawer summary, .bench-knowledge summary { cursor: pointer; font-weight: 600; }
.bench-record, .bench-knowledge article { margin-block-start: .75rem; border-block-start: 1px solid #ded4c1; padding-block-start: .6rem; }
.bench-record p, .bench-knowledge blockquote { white-space: pre-wrap; }
.bench-actions .btn { white-space: normal; }
.bench-actions .is-armed { border-color: #8c4c36; color: #713c2a; background: #fbf1ec; }
.journal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem 1.1rem .9rem; }
.journal-actions .account-loop-foot { flex-wrap: wrap; margin-inline-start: auto; gap: .5rem; padding: 0; }
.account-reset h2, .account-reset-receipt h1 { color: #2b4a41; }
.policy-guide { display: grid; gap: .4rem; border-block-end: 1px solid #d7c8ac; padding-block-end: .6rem; }

/* ==== 2026-11-21 内部演示短剧的一键沉浸声景 ==== */
/* 工具条里的「沉浸声景」与公开剧场同一束暖琥珀金：平时暖金描边，开着时整枚点亮、缓缓呼吸（减弱动效时随全站一起停下） */
.drama-tool.drama-soundscape { color: #fbe3bb; font-weight: 650; background: linear-gradient(180deg, rgba(240, 196, 138, .22), rgba(240, 196, 138, .08)); box-shadow: inset 0 0 0 1px rgba(240, 196, 138, .62); }
.drama-tool.drama-soundscape:hover { color: #fff3df; background: linear-gradient(180deg, rgba(240, 196, 138, .3), rgba(240, 196, 138, .12)); }
.drama-tool.drama-soundscape.is-on { color: #2a1a0d; background: linear-gradient(180deg, #f6d29c, #e6a95e); box-shadow: inset 0 0 0 1px #f0c48a; animation: drama-tool-glow 3.2s ease-in-out infinite; }
@keyframes drama-tool-glow { 0%, 100% { box-shadow: inset 0 0 0 1px #f0c48a, 0 0 0 0 rgba(240, 196, 138, 0); } 50% { box-shadow: inset 0 0 0 1px #f0c48a, 0 0 0 5px rgba(240, 196, 138, .2); } }
