:root {
  --bg: #0d1716;
  --bg-2: #13211f;
  --card: #172826;
  --line: #2a403c;
  --ink: #e8f0ec;
  --muted: #93aba4;
  --gold: #e0a040;
  --teal: #22b3bd;
  --cut: #ff5a5f;
  --accent: #f1d58a;
  --radius: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif; }
small { display: block; font-size: 0.74em; font-weight: 400; line-height: 1.3; color: var(--muted); letter-spacing: 0.01em; }
button { font: inherit; color: inherit; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; cursor: pointer; line-height: 1.25; text-align: center; }
button:hover:not(:disabled) { border-color: #4e7a71; }
button:disabled { opacity: 0.4; cursor: default; }
button[aria-pressed="true"] { background: #e8f0ec; color: #0d1716; border-color: #e8f0ec; }
button[aria-pressed="true"] small { color: #3f5853; }
button.primary { background: var(--accent); color: #1c1a10; border-color: var(--accent); font-weight: 600; }
button.primary small { color: #5b5133; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.top { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--bg); }
.kicker { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; }
.kicker small { display: inline; }
h1 { margin: 2px 0 0; font-size: 19px; font-weight: 650; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
h1 small { display: inline; font-size: 12px; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.seg { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 11px; padding: 2px; background: var(--bg-2); }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 5px 12px; font-size: 13px; }
.seg button[aria-pressed="true"] { background: #e8f0ec; color: #0d1716; }

main { height: calc(100dvh - 64px); display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.viewer { position: relative; min-height: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 42%, #1c302d 0%, #0d1716 70%); }
#stage, #stage canvas, #labels { position: absolute; inset: 0; width: 100%; height: 100%; }
#stage canvas { touch-action: none; }
#labels { pointer-events: none; }
#labels svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#labels line { stroke: #cfe0da; stroke-width: 1; opacity: 0.55; }
#labels circle { fill: #f4f8f6; }
.tag { position: absolute; left: 0; top: 0; font-size: 13px; font-weight: 600; background: #0d1716d9; border: 1px solid #3a5650; border-radius: 7px; padding: 3px 8px; white-space: nowrap; text-align: center; will-change: transform; }
.tag small { font-size: 10px; }
.tag.now { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tag.cut { border-color: var(--cut); color: #ffd9da; }

.view-bar { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.view-bar button { font-size: 12px; padding: 5px 10px; background: #13211fe6; }
.view-bar button[aria-pressed="true"] { background: #e8f0ec; color: #0d1716; }
.legend { position: absolute; top: 14px; right: 14px; display: grid; gap: 4px; font-size: 12px; background: #0d1716cc; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; z-index: 2; pointer-events: none; }
.legend span { display: flex; gap: 7px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.legend small { display: inline; font-size: 10px; }

.load { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; background: #0d1716cc; z-index: 5; font-size: 15px; }
.load[hidden] { display: none; }
#toast { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); background: #2a1416; border: 1px solid var(--cut); color: #ffe3e3; padding: 8px 14px; border-radius: 10px; font-size: 14px; z-index: 3; text-align: center; }

.dock { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 8px; z-index: 2; }
.track { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.track li button { font-size: 12px; padding: 4px 9px; border-radius: 20px; background: #13211fe6; display: flex; gap: 6px; align-items: center; }
.track li button small { display: none; }
.track li button .n { font-size: 10px; color: var(--muted); }
.track li.done button { border-color: #4e7a71; background: #1f3632; }
.track li.current button { border-color: var(--accent); background: #3a3420; color: #fff6d8; }
.track li.blocked button { border-color: var(--cut); color: #ffc9cb; }
.playback { display: flex; gap: 8px; justify-content: center; }
.playback button { min-width: 92px; background: #13211fe6; }
.playback button:disabled { opacity: 0.55; }
.playback button.primary { background: var(--accent); min-width: 120px; }

.panel { overflow: auto; border-left: 1px solid var(--line); padding: 12px; display: grid; gap: 10px; align-content: start; background: var(--bg); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.card p { margin: 6px 0; font-size: 14px; line-height: 1.55; }
.card p small { font-size: 12px; margin-top: 2px; }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--accent); display: flex; gap: 6px; align-items: baseline; }
.eyebrow small { display: inline; font-size: 11px; }
.now-name { font-size: 17px !important; font-weight: 650; }
.senior-note { border-left: 3px solid #8c7bd6; padding-left: 9px; }
.senior-note::before { content: "拓展  "; font-size: 11px; color: #b9aef0; font-weight: 600; }
.q { font-weight: 600; margin: 10px 0 6px !important; }
.seg.wide { width: 100%; }
.seg.wide button { flex: 1; font-size: 12px; padding: 6px 4px; }
.lesions { display: grid; gap: 5px; }
.lesions button { text-align: left; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 7px 10px; }
.lesions button .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); flex: none; margin-top: 3px; }
.lesions button[aria-checked="true"] { border-color: var(--cut); background: #2a1a1b; }
.lesions button[aria-checked="true"] .dot { border-color: var(--cut); background: var(--cut); }
.lesions button[data-id="none"][aria-checked="true"] { border-color: #4e7a71; background: #1f3632; }
.lesions button[data-id="none"][aria-checked="true"] .dot { border-color: #8fd3b9; background: #8fd3b9; }
.badge { font-size: 10px; color: #cfc6ff; border: 1px solid #6f62b5; border-radius: 6px; padding: 0 5px; margin-left: 4px; }

.viewer .result { position: absolute; left: 12px; top: 58px; width: 228px; z-index: 2; background: #172826ee; padding: 10px 12px; max-height: calc(100% - 196px); overflow: auto; }
.result .views { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.result figure { margin: 0; text-align: center; font-size: 12px; }
.result figure.both { grid-column: 1 / -1; }
.result figure svg { width: 100%; height: auto; display: block; }
.result figure.both svg { max-width: 200px; margin: 0 auto; }
.result figcaption { margin-top: 3px; }
.result figcaption small { font-size: 10px; }
.verdict-card .term { color: #ffd2d4; font-weight: 600; }
.result .verdict { margin-top: 8px; padding: 8px 10px; border-radius: 9px; background: #0f1d1b; border: 1px solid var(--line); }
.result .term { color: #ffd2d4; font-weight: 600; }
.result .predict { text-align: center; padding: 14px 6px; color: var(--muted); }
.result .predict strong { color: var(--ink); display: block; font-size: 15px; margin-bottom: 4px; }
.linkish { background: none; border: 0; color: var(--accent); text-decoration: underline; padding: 4px; font-size: 13px; }

.sel-name { font-size: 16px !important; font-weight: 650; }
.sel-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sel-actions button { font-size: 12px; padding: 5px 9px; }
.zoom { margin-top: 8px; width: 100%; background: #2c2a1a; border-color: #7a6b3a; display: flex; gap: 10px; align-items: center; justify-content: center; }
[hidden] { display: none !important; }
.zoom::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--accent); border-radius: 50%; box-shadow: 6px 6px 0 -4px var(--accent); }

dialog { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; }
dialog::backdrop { background: #050a09b3; }
.info { max-width: 560px; padding: 20px 22px; }
.info h2 { margin-top: 0; font-size: 18px; }
.info p { line-height: 1.6; }
.info a { color: var(--accent); }
.lens { width: min(96vw, 1400px); height: min(92dvh, 900px); padding: 0; display: none; }
.lens[open] { display: grid; grid-template-rows: auto 1fr; }
.lens-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.crumbs span { color: var(--muted); }
.crumbs b { color: var(--ink); }
.lens iframe { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 0 0 14px 14px; }
.noscript { padding: 20px; }

@media (max-width: 980px) {
  .viewer .result { width: 170px; top: auto; bottom: 104px; padding: 8px; }
  .result .views figure:not(.both) { display: none; }
  main { grid-template-columns: 1fr; grid-template-rows: minmax(380px, 62dvh) auto; height: auto; }
  .panel { border-left: 0; border-top: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
  .top { height: auto; min-height: 64px; padding: 8px 12px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  h1 { font-size: 16px; }
  h1 small, .kicker small { display: none; }
  .top { gap: 6px; }
  main { grid-template-rows: minmax(340px, 70dvh) auto; }
  .tag { font-size: 11px; padding: 2px 5px; }
  .tag small { display: none; }
  .legend { top: 46px; bottom: auto; right: 8px; font-size: 10px; padding: 5px 7px; gap: 2px; }
  .legend small { display: none; }
  .track { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 2px; }
  .track li { flex: none; }
  .playback button small { display: none; }
  .panel .result { position: static; width: auto; max-height: none; }
  .panel .result .views figure:not(.both) { display: block; }
  .playback button { min-width: 0; flex: 1; padding: 6px 4px; font-size: 13px; }
  .track li button { font-size: 11px; padding: 3px 7px; }
  .view-bar button small { display: none; }
}

/* v0.2：选中说明浮在模型右侧；猜测按钮；图例说明；结果图例 */
.viewer .select { position: absolute; right: 12px; top: 128px; width: 250px; z-index: 3; background: #172826f2; }
.legend .note { font-size: 11px; color: var(--muted); max-width: 170px; display: block; border-top: 1px solid var(--line); padding-top: 4px; margin-top: 2px; }
.legend .note small { display: block; }
.stim-note { font-size: 12px !important; color: var(--muted); margin: -2px 0 6px !important; }
.stim-note small { display: inline; margin-left: 4px; }
.predict { text-align: left !important; padding: 2px 0 !important; }
.guesses { display: grid; gap: 4px; margin-top: 8px; }
.guesses button { text-align: left; font-size: 12px; padding: 5px 8px; }
.guesses button small { display: inline; margin-left: 4px; font-size: 10px; }
.predict .hint { font-size: 12px !important; color: var(--accent); min-height: 1em; margin: 6px 0 0 !important; }
.result .key { font-size: 11px !important; color: var(--muted); display: flex; gap: 6px; align-items: center; margin: 6px 0 0 !important; }
.result .key small { display: inline; }
.result .key .sw { width: 14px; height: 10px; background: repeating-linear-gradient(45deg, #121a19 0 3px, #3a1f22 3px 6px); border: 1px solid #5d7a73; }
.verdict-card .guess.ok { color: #9be3c3; font-weight: 600; }
.verdict-card .guess.no { color: #ffd2d4; font-weight: 600; }
.lesions button { padding: 5px 9px; }
.lesions button small { display: inline; margin-left: 4px; }
@media (max-width: 980px) {
  .viewer .select { top: auto; bottom: 104px; right: 8px; width: 210px; }
}

.result .verdict-card { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.result .verdict-card p { font-size: 13px; line-height: 1.5; margin: 4px 0; }
.result .verdict-card p small { font-size: 11px; }

/* v0.3：实验切换、视角按钮组、身体结果图 */
.exps { margin: 0 auto 0 18px; }
/* 12 个实验在 1000–1150 px 宽时放不下：实验栏自己横向滚动，不把整页撑出横向滚动条 */
.top .brand, .top .top-actions { flex: none; }
.top .exps { min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.top .exps button { flex: none; }
/* 从学习页/练习题点进来时，顶栏左上的小标题换成“回到刚才的课/题目”（backlink.js） */
.kicker .backlink { padding: 1px 9px; font-size: 12px; border-radius: 8px; }
.exps button { padding: 5px 16px; font-size: 14px; }
.views-btns { display: contents; }
.view-bar button[aria-pressed="true"] { background: #e8f0ec; color: #0d1716; }
.result .bodies { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
.result .bodies svg { max-width: 110px; margin: 0 auto; }
.result .chip { display: inline-flex; gap: 4px; align-items: center; margin-right: 8px; }
.result .chip i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.result .chip small { display: inline; }

/* v0.4：输入提示、术语行 */
.hint-input { font-size: 12px !important; color: #ffd9a8; margin-top: 8px !important; }
.hint-input button { display: block; width: 100%; margin-top: 4px; font-size: 12px; padding: 4px 8px; text-align: left; }
.hint-input button small { display: inline; margin-left: 4px; }
.term-line { display: block; margin-top: 6px; padding-left: 8px; border-left: 3px solid #8c7bd6; color: #cfc6ff; font-size: 13px; }

/* v0.5：左右成对的结果（鼻孔、耳朵） */
.result .pairs figure { grid-column: 1 / -1; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.pair-cell { background: #0f1d1b; border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; font-size: 13px; }
.pair-cell small { display: block; font-size: 11px; }
.pair-dot { display: block; width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 6px; border: 2px solid #0d1716; }

/* v0.6：清单式结果（反射） */
.checklist { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; }
.checklist li { display: grid; grid-template-columns: 26px minmax(6.5em, 1fr) auto; gap: 8px; align-items: center; background: #0f1d1b; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 13px; }
.checklist .pair-dot { width: 20px; height: 20px; margin: 0; }
.checklist b { font-size: 12px; text-align: right; }
.checklist b small { display: block; font-weight: 400; }

.timeline { margin: 0 0 8px; }
.timeline svg { width: 100%; height: auto; display: block; background: #0f1d1b; border: 1px solid var(--line); border-radius: 10px; }
.timeline figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.timeline .tl-key { display: block; color: var(--ink); margin-bottom: 2px; }
.timeline .tl-key i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin: 0 3px 0 0; vertical-align: middle; }
.tl-night { background: #46605b; } .tl-body { background: #c9a0ff; }

.toplink { color: var(--ink); text-decoration: none; font-size: 13px; border: 1px solid var(--line); border-radius: 10px; padding: 5px 10px; text-align: center; }
.trace { margin: 0 0 8px; }
.trace svg { width: 100%; height: auto; display: block; background: #0f1d1b; border: 1px solid var(--line); border-radius: 10px; }
.trace figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 颜色说明：宽屏放在图例里；窄屏图例只留色块，长说明移到“说明”区，免得盖住 3D。 */
#howto .howto-colornote { display: none; }
@media (max-width: 980px) {
  .legend .note { display: none; }
  #howto .howto-colornote { display: block; }
}

/* 结果卡很窄：清单每行改成上下两行（名称在上，状态在下），名称不被挤成五六行。 */
.viewer .result .checklist li { grid-template-columns: 20px 1fr; row-gap: 2px; }
.viewer .result .checklist li b { grid-column: 2; text-align: left; }
.viewer .result .checklist .pair-dot { width: 16px; height: 16px; }
@media (max-width: 980px) {
  /* 实验多了：窄屏时实验栏单独占一行，可以横向滑动，不把整页撑宽。 */
  .top .exps { order: 3; flex: 1 0 100%; margin: 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
  .top .exps button { flex: none; white-space: nowrap; padding: 4px 10px; font-size: 13px; }
}

/* 语言实验：病人可能说出的话（示意） */
.says { margin: 8px 0 0; padding: 8px 10px; border-radius: 12px 12px 12px 2px; background: #2a2320; border: 1px solid #5a4438; font-size: 15px; }
.says span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.says small { display: block; font-size: 11px; color: var(--muted); }
.kicker .backlink small { color: #5b5133; }
/* iPad 竖屏（980–1180 px）：长标题（如“协作”）会把右边按钮挤出屏幕。标题收成一行、去掉英文小字，放不下就省略号 */
@media (min-width: 981px) and (max-width: 1180px) {
  .top .brand { flex: 0 1 auto; min-width: 0; }
  .top h1 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top h1 small { display: none; }
}

/* ===== v0.7（2026-10-03）：中英切换、实验选择、一步一步 ===== */
/* 中英：一次只显示一种；结构名称（.dual：3D 标签、当前站名、选中结构名）两种都显示 */
html[data-lang="zh"] small.en { display: none !important; }
html[data-lang="en"] .zh { display: none !important; }
html[data-lang="en"] small.en { display: inline; font-size: inherit; color: inherit; letter-spacing: 0; margin: 0; }
html[data-lang] .dual .zh { display: inline !important; }
html[data-lang] .dual small.en { display: block !important; font-size: 0.74em; color: var(--muted); }
html[data-lang] .tag small.en { font-size: 10px; }
.lang { font-size: 13px; padding: 5px 12px; }

/* 实验选择：一个按钮，点开按课分组 */
.exp-pick { position: relative; margin: 0 auto 0 18px; }
.exp-btn { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; padding: 7px 14px; }
.exp-btn small { display: inline; }
.exp-btn .caret { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); margin-left: 2px; }
.exp-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; width: min(620px, 92vw); max-height: 75dvh; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 16px 40px #000a; display: grid; gap: 12px; }
.exp-menu h3 { margin: 0 0 6px; font-size: 12px; color: var(--accent); font-weight: 600; }
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.exp-grid button { text-align: left; display: grid; gap: 2px; padding: 8px 10px; }
.exp-grid button > b { font-size: 16px; color: var(--ink); }
.exp-grid button > span { font-size: 12px; color: var(--muted); }
.exp-grid button[aria-current="true"] { border-color: var(--accent); background: #2c2a1a; }

/* 一步一步：右边面板 */
.panel { font-size: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.st-head { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; border-radius: 0; background: transparent; padding: 10px 14px; font-size: 16px; }
.st-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; border: 2px solid var(--muted); color: var(--muted); }
.st-t { font-weight: 650; flex: none; }
.st-t small { display: inline; margin-left: 6px; }
.st-sum { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-sum small { display: inline; }
.st-body { display: none; padding: 0 14px 14px; }
.step.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.step.on .st-body { display: block; }
.step.on .st-n { background: var(--accent); border-color: var(--accent); color: #1c1a10; }
.step.done .st-n { border-color: #8fd3b9; color: #0d1716; background: #8fd3b9; font-size: 0; }
.step.done .st-n::before { content: "✓"; font-size: 14px; }
.step.done .st-head:hover .st-sum { color: var(--ink); }
.step.todo { opacity: 0.45; }
.step.todo .st-head { cursor: default; }
.step.skip { display: none; }
.st-q { font-size: 18px !important; font-weight: 650; margin: 2px 0 10px !important; line-height: 1.4; }
.st-q small { display: inline; margin-left: 6px; }
.st-cue { color: var(--accent); font-size: 15px !important; margin: 2px 0 8px !important; }
.st-cue:empty { display: none; }
.step .lesions button { font-size: 15px; padding: 9px 12px; }
.step .guesses { gap: 6px; margin: 0; }
.step .guesses button { font-size: 15px; padding: 10px 12px; }
.step .guesses button small { display: block; margin: 2px 0 0; font-size: 12px; }
.step .now p { margin: 6px 0; line-height: 1.6; font-size: 16px; }
.step .now .now-name { font-size: 19px !important; font-weight: 650; }
.step .now p:empty { display: none; }
.step #verdict p { font-size: 16px; line-height: 1.6; margin: 6px 0; }
.step .verdict-card .guess { font-size: 17px; }
.step .again { width: 100%; margin-top: 10px; padding: 10px; font-size: 15px; }
.step .again small { display: inline; margin-left: 6px; }
/* 手机上右下角“问一问 AI”是 48px 的圆钮（shared/assistant.css）：“换一种情况再试”右边让出位置，滚到哪里都点得到（v2.3 整站审查 L5）。 */
@media (max-width: 640px) { .step .again { width: calc(100% - 52px); } }
.more-in { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 8px; }
.more-in summary { cursor: pointer; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.more-in summary small { display: inline; }
.more-in summary .chg { color: var(--accent); text-decoration: underline; }
.more-in[open] .stim-note { margin-top: 8px !important; }
#skip-guess { margin-top: 8px; }
#skip-guess small { display: inline; margin-left: 4px; }
/* 第 3 步：提醒按播放 */
#play.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 #f1d58a99; } 50% { box-shadow: 0 0 0 8px #f1d58a00; } }
@media (prefers-reduced-motion: reduce) { #play.pulse { animation: none; outline: 3px solid var(--accent); } }
/* 3D 上的结果画面只在第 4 步出现 */
.viewer .result[hidden] { display: none !important; }
#st4-result .result { position: static; width: auto; max-height: none; margin-bottom: 8px; }
@media (max-width: 980px) {
  .exp-pick { order: 3; margin: 0; }
  .panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .exp-btn { font-size: 14px; padding: 6px 10px; }
  .st-t small { display: none; }
  .exp-menu { position: fixed; left: 4vw; top: 70px; }
}
.step .key-line { font-size: 18px !important; font-weight: 650; line-height: 1.5; color: #fff6d8; }
.step .more-read summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.step .more-read summary small { display: inline; }
@media (max-width: 980px) {
  /* 窄屏：标题占一整行、可以换行（英文标题很长）；右边按钮放不下就换行 */
  .top .brand { flex: 1 1 100%; min-width: 0; }
  .top .top-actions { flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 560px) {
  .top-actions .toplink, .top-actions button { font-size: 12px; padding: 5px 8px; }
}

/* 2026-10-03（续）：英文界面不留中文——结果图图例、左右成对结果的状态、“拓展”徽章、拓展说明的前缀 */
.timeline .tl-key > span { display: inline-flex; align-items: center; margin-right: 10px; }
.timeline .tl-cap { display: block; }
.pair-st { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.badge small { display: inline; font-size: inherit; color: inherit; }
html[data-lang="en"] .senior-note::before { content: "Senior  "; }
#sources small { display: block; margin-top: 4px; }

/* 可收起的图例（data.compactLegend，目前只有突触实验）：宽屏照常；窄屏默认只显示“图例 ▾”。
   2026-10-07 睡眠审查 L10：1024 左右的横屏（981–1180）画面也很挤，同样默认收起。 */
.legend .lg-head { display: none; }
@media (max-width: 560px), (min-width: 981px) and (max-width: 1180px) {
  .legend.compact { pointer-events: auto; }
  .legend.compact .lg-head { display: block; background: none; border: 0; color: inherit; font: inherit; padding: 0; text-align: left; cursor: pointer; }
  .legend.compact:not(.open) > span { display: none; }
}
/* 睡眠实验（2026-10-06）：结果卡里跳到别的实验的链接；站点说明下的小脑电波。 */
.lab-links { margin: 8px 0 0 !important; display: grid; gap: 6px; }
.lab-links a { display: block; color: var(--accent); font-size: 14px; text-decoration: underline; text-underline-offset: 2px; }
.lab-links a small { display: block; }
.trace.wave { margin: 6px 0 0; }
.trace.wave svg { background: #0f1d1b; }
/* 裂脑（2026-10-06）：结果卡上方左右两个半球的框；结论下面的“两个半球怎样分工”。 */
.hemis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 8px; }
.hemi { margin: 0; padding: 6px 8px; border-radius: 10px; background: #0f1d1b; border: 1px solid var(--line); font-size: 13px; }
.hemi figcaption { font-size: 11px; color: var(--muted); margin-bottom: 3px; line-height: 1.3; }
.hemi figcaption small { display: block; }
.hemi p { margin: 0; line-height: 1.4; }
.hemi p small { display: block; font-size: 11px; color: var(--muted); }
.hemi.on { border-color: #6d5a3a; background: #221d14; }
.facts { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: #0f1d1b; border: 1px solid var(--line); }
.facts .facts-h { margin: 0 0 4px; font-weight: 650; font-size: 14px; }
.facts .facts-h small { display: inline; margin-left: 6px; font-weight: 400; }
.facts ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }
.facts li small { display: block; color: var(--muted); font-size: 11px; }
/* 2026-10-07 裂脑审查 L6：结果清单名称一栏最窄 6.5em（见上面 .checklist li），很长的英文单词（例如 Acetylcholinesterase）在这一栏里折行，不撑出去。只在放不下时才折。 */
.checklist li > span:nth-child(2) { overflow-wrap: break-word; min-width: 0; }
