:root {
  --paper: #f5f3ee;
  --white: #fffefa;
  --ink: #183633;
  --muted: #5f7068;
  --green: #174e45;
  --lime: #d7e79b;
  --line: #d8ddd2;
  --orange: #b87842;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; touch-action: manipulation; }
button:disabled { opacity: .38; cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { transition: color .2s, background .2s, border-color .2s, box-shadow .25s, transform .25s var(--ease); }
button:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.skip { position: fixed; left: 15px; top: -80px; z-index: 50; padding: 12px; background: white; }
.skip:focus { top: 10px; }
.topbar { min-height: 80px; padding: 15px 3.2vw; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: var(--white); }
.brand { display: flex; align-items: center; gap: 13px; font-size: 15px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--green); font: italic 28px/1 Georgia, serif; border-radius: 4px; }
.brand-divider { padding: 0 13px; font-weight: 300; color: #a8b4a7; }
.tools { display: flex; align-items: center; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-right: 4px; color: var(--muted); font-size: 11px; }
.status::before { content: ''; width: 5px; height: 5px; border: 1px solid #849686; border-radius: 50%; }
.status.live::before { background: var(--green); border-color: var(--green); }
.status.warn::before { background: var(--orange); border-color: var(--orange); }
.quiet, .outline, .primary { padding: 10px 17px; border-radius: 6px; font-size: 13px; white-space: nowrap; min-height: 42px; }
.quiet:hover { background: #e9eddf; }
.outline { border: 1px solid #b6c4af; }
.outline:hover { background: #edf1e4; border-color: var(--green); }
.primary { background: var(--green); color: white; box-shadow: 0 3px 8px #173d3210; }
.primary:hover { background: #0d3c33; box-shadow: 0 6px 14px #173d3220; transform: translateY(-1px); }
.shell { max-width: 1760px; margin: auto; display: grid; grid-template-columns: 230px minmax(0,1fr); min-height: calc(100svh - 160px); }
.sidebar { display: flex; flex-direction: column; padding: 38px 21px 27px; color: #eaf0dc; background: var(--ink); position: relative; isolation: isolate; }
.sidebar::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .14; background-image: linear-gradient(#a4b89833 1px,transparent 1px),linear-gradient(90deg,#a4b89833 1px,transparent 1px); background-size: 46px 46px; }
.rail-heading { padding: 0 14px 31px; border-bottom: 1px solid #ebf1ce28; margin-bottom: 30px; }
.rail-caption { font: 9px/1.7 Georgia, serif; letter-spacing: .14em; color: #b9c9ab; }
.rail-heading p { font: 25px/1.6 var(--serif); letter-spacing: .06em; margin-top: 17px; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .14em; font-weight: 600; }
.sidebar > .eyebrow { margin-left: 14px; color: #b7c9a9; font-size: 10px; }
nav { display: grid; gap: 7px; margin-top: 17px; }
nav button { display: flex; align-items: center; gap: 14px; padding: 15px 14px; text-align: left; border-radius: 5px; font-size: 13px; position: relative; white-space: nowrap; color: #cfdbbe; }
nav button b { font: italic 16px Georgia, serif; color: #9eb695; font-variant-numeric: tabular-nums; }
nav button:hover:not(.active) { background: #e3edd810; color: white; }
nav button.active { color: var(--ink); background: var(--lime); box-shadow: 0 4px 10px #051c1817; }
nav button.active b { color: var(--green); }
nav button.active::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--green); margin-left: auto; }
.rail-footer { margin-top: auto; padding: 55px 14px 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; font-size: 10px; line-height: 1.8; letter-spacing: .07em; color: #a9bea2; }
.rail-signature { color: var(--lime); font: italic 27px/1 Georgia, serif; letter-spacing: -.07em; }
main { min-width: 0; padding: 37px clamp(25px,4.3vw,70px) 32px; outline: 0; position: relative; }
.chapter-head { margin-bottom: 28px; }
.chapter-masthead { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #ccd3c5; padding-bottom: 12px; margin-bottom: 22px; }
.kicker { font-size: 11px; color: var(--green); letter-spacing: .15em; }
.chapter-edition { font: 9px/1.4 Georgia, serif; letter-spacing: .2em; color: #75846f; white-space: nowrap; }
h1 { font: 500 clamp(30px,2.9vw,45px)/1.45 var(--serif); letter-spacing: -.045em; max-width: 970px; text-wrap: balance; }
.subtitle { margin-top: 12px; max-width: 850px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.hero-question { position: relative; isolation: isolate; padding: 29px 34px 31px; background: var(--ink); color: var(--white); border-radius: 3px 15px 15px 15px; overflow: hidden; margin: 22px 0; box-shadow: 0 14px 30px #153e2910; }
.hero-question::after { content: ''; pointer-events: none; position: absolute; width: 180px; inset: 0 0 0 auto; z-index: -1; background: repeating-linear-gradient(90deg,transparent,transparent 29px,#e4ecc60c 29px,#e4ecc60c 30px); mask-image: linear-gradient(90deg,transparent,black); }
.hero-question .eyebrow { color: var(--lime); font-size: 10px; margin-bottom: 15px; font-weight: 400; letter-spacing: .17em; }
.hero-question h2 { font: 500 clamp(24px,2.15vw,34px)/1.65 var(--serif); letter-spacing: .015em; position: relative; z-index: 1; max-width: 940px; padding-right: 30px; text-wrap: balance; }
.question-rule { height: 2px; width: 34px; background: var(--lime); position: absolute; left: 0; top: 0; }
.question-index { position: absolute; right: 15px; bottom: -37px; font: italic 150px/1 Georgia, serif; letter-spacing: -.1em; color: #e5efc30b; pointer-events: none; z-index: -1; }
.choice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.choice { min-width: 0; position: relative; text-align: left; padding: 21px 24px 23px; border: 1px solid #d2d9c8; background: #fffef98c; border-radius: 9px; }
.choice-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.choice .mini { font: italic 24px/1 Georgia, serif; color: #8e9f81; }
.choice-arrow { display: grid; place-items: center; border: 1px solid #d4ddc9; border-radius: 50%; width: 25px; height: 25px; color: #6e855f; font-size: 14px; transition: transform .3s var(--ease),color .2s,background .2s; }
.choice h3 { font-size: 18px; line-height: 1.5; font-weight: 550; margin: 6px 0 8px; }
.choice p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.choice:hover { background: var(--white); border-color: #92a985; box-shadow: 0 12px 28px #1c473412; transform: translateY(-3px); }
.choice:hover .choice-arrow { transform: rotate(45deg); }
.choice.active { border-color: var(--green); background: #eaf0d9; box-shadow: inset 0 0 0 1px var(--green),0 8px 18px #1c473408; }
.choice.active .mini { color: var(--green); }
.choice.active .choice-arrow { color: var(--lime); background: var(--green); border-color: var(--green); }
.prompt-line { position: relative; margin-top: 24px; padding: 15px 20px 15px 25px; border-left: 2px solid var(--orange); background: linear-gradient(90deg,#cba7790d,transparent); font: 500 19px/1.8 var(--serif); min-height: 63px; }
.hint { font-size: 12px; color: #617357; margin-top: 14px; line-height: 1.9; }
.tabs { position: relative; display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; border: 1px solid #d7decc; padding: 4px; border-radius: 7px; background: #e8ecdf; margin: 19px 0 23px; }
.tabs button { position: relative; z-index: 1; padding: 8px 17px; border-radius: 4px; font-size: 12px; color: #63785b; min-height: 37px; }
.tabs button.active { color: var(--ink); }
.tabs button:hover:not(.active) { color: var(--ink); background: #fffef956; }
.tab-indicator { position: absolute; top: 4px; left: 4px; background: var(--white); border: 1px solid #d5dccb; box-shadow: 0 2px 5px #28442b0b; border-radius: 4px; pointer-events: none; transform-origin: left center; }
.story-steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; margin: 20px 0 26px; }
.story-step { text-align: left; padding: 12px 8px 18px; color: #7c8d73; border-bottom: 1px solid #cdd7c1; position: relative; font-size: 13px; }
.story-step::after { content: ''; position: absolute; height: 3px; inset: auto 0 -1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.story-step b { display: block; font: italic 24px/1.3 Georgia,serif; margin-bottom: 9px; font-weight: 400; color: #8b9e7e; }
.story-step:hover { color: var(--ink); background: #e7ecdc77; }
.story-step.active { color: var(--ink); background: linear-gradient(0deg,#e4eccf70,transparent); }
.story-step.active b { color: var(--green); }
.story-step.active::after, .story-step.passed::after { transform: scaleX(1); }
.story-step.passed::after { background: #acbc94; }
.clues { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.clue { padding: 8px 15px; font-size: 13px; border: 1px solid #d8dfcb; background: #fffefa66; border-radius: 4px; color: #63745a; }
.reveal-bar { margin-top: 23px; display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
.reveal-bar .hint { margin-top: 0; }
.toggle-mark { display: inline-block; margin-left: 12px; font-size: 17px; line-height: 1; transition: transform .3s var(--ease); vertical-align: -1px; }
.toggle-mark.opened { transform: rotate(45deg); }
.reveal-panel { height: 0; visibility: hidden; overflow: hidden; }
.reveal-panel.is-open { height: auto; visibility: visible; }
.reveal-copy { font: 500 21px/1.9 var(--serif); border-left: 2px solid #b2c58b; padding: 14px 23px; margin-top: 20px; background: #e9efdd; border-radius: 0 7px 7px 0; }
.layer-explainer { padding: 13px 18px; border-left: 2px solid #98ae74; color: #526746; font-size: 13px; background: #e9eedf; line-height: 1.9; }
.flow { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 24px; padding: 13px 0; margin: 20px 0; position: relative; isolation: isolate; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; pointer-events: none; }
.flow-track { fill: none; stroke: #bfcab2; stroke-width: 1.25; }
.flow-progress { fill: none; stroke: var(--green); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.flow-progress.lit { stroke-dashoffset: 0; opacity: 1; }
.node { padding: 15px 5px 18px; border: 1px solid #bdcbae; background: var(--white); text-align: center; border-radius: 7px; position: relative; }
.node .node-index { font: italic 19px/1.3 Georgia,serif; color: #82966e; margin: 0 0 9px; }
.node b { display: block; font-size: 17px; font-weight: 550; white-space: nowrap; }
.node span { display: block; font-size: 10px; color: #63745a; margin-top: 6px; white-space: nowrap; }
.node:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 10px 20px #21432d12; }
.node.active { background: var(--green); border-color: var(--green); color: var(--white); box-shadow: 0 9px 20px #194b3620; }
.node.active span { color: #d2dfa7; }
.node.active .node-index { color: var(--lime); }
.feedback-lines { display: flex; gap: 8px 23px; justify-content: center; flex-wrap: wrap; font-size: 11px; color: #596d48; margin: -7px 0 20px; padding: 10px 15px; border-top: 1px dashed #c8d2b8; border-bottom: 1px dashed #c8d2b8; }
.detail { padding: 25px 29px; border: 1px solid #d3dac7; border-radius: 9px; background: #fffefaa8; box-shadow: 0 9px 26px #143c2a05; margin-top: 20px; }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.detail h2 { font: 500 26px/1.5 var(--serif); letter-spacing: .025em; }
.detail .question { font-size: 19px; margin: 12px 0 24px; line-height: 1.7; }
.detail-cols { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
.detail-cols > div { border-top: 1px solid #d9dfd1; padding-top: 16px; }
.detail-cols .eyebrow { color: #778c62; }
.detail-cols p:not(.eyebrow) { margin-top: 9px; font-size: 14px; line-height: 1.9; }
.handoff { margin-top: 20px; border-top: 1px dashed #ccd7bd; padding-top: 15px; font-size: 12px; color: #63745a; line-height: 1.9; }
.tag { padding: 4px 8px; font-size: 10px; color: #64745b; border: 1px solid #dce1d3; border-radius: 3px; flex-shrink: 0; }
.scene-heading { margin: 20px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.scene-heading h2 { font: 500 27px/1.5 var(--serif); }
.sample-label { display: inline-block; padding: 4px 9px; font: 10px/1.7 "PingFang SC",sans-serif; color: #91652f; border: 1px solid #dccaaf; background: #f5ecd9; border-radius: 3px; white-space: nowrap; }
.source { margin-bottom: 23px; color: #63745a; font-size: 12px; line-height: 1.9; }
.comparison { display: grid; grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr); }
.workflow { padding: 23px 25px 29px; background: #fdfcf7; border: 1px solid #d5ddca; border-radius: 9px; }
.workflow-head { display: flex; align-items: center; gap: 13px; border-bottom: 1px solid #d8dfcd; margin-bottom: 22px; padding-bottom: 17px; }
.workflow-id { font: italic 28px/1 Georgia,serif; color: #97a782; }
.workflow h3 { font-size: 13px; font-weight: 550; }
.workflow ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 17px; }
.workflow li { display: flex; align-items: center; gap: 13px; font-size: 14px; line-height: 1.75; }
.workflow li span { border: 1px solid #d6deca; color: #78925f; border-radius: 50%; display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; font: 11px Georgia,serif; }
.workflow.assisted { background: var(--ink); color: #f5f6e9; border-color: var(--ink); box-shadow: 0 12px 24px #173c2912; }
.assisted .workflow-head { border-color: #e6e8c526; }
.assisted .workflow-id { color: var(--lime); }
.assisted li span { color: var(--lime); border-color: #aec08866; }
.compare-arrow { display: grid; place-items: center; }
.compare-arrow > span { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #bdcdae; border-radius: 50%; font-size: 19px; color: #6c8b55; }
.sample { margin-top: 22px; padding: 25px 28px; background: #fffdf6; border: 1px solid #d9d8c5; border-radius: 4px; position: relative; }
.sample::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #b3a779; }
.sample h3 { font: 500 21px/1.5 var(--serif); display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 14px; }
.sample-row { display: grid; grid-template-columns: 108px minmax(0,1fr); gap: 18px; padding: 15px 0; border-top: 1px solid #e4e4d7; font-size: 13px; line-height: 1.9; }
.sample-row strong { color: var(--green); font-weight: 500; }
.boundary { margin-top: 17px; color: #63745a; font-size: 12px; line-height: 1.9; }
.routes { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 23px 0; }
.route { text-align: left; padding: 16px 17px; border: 1px solid #ced9bf; background: #fefef890; border-radius: 6px; font-size: 13px; }
.route-number { display: block; margin-bottom: 8px; font: italic 20px/1 Georgia,serif; color: #96a780; }
.route.active { background: var(--green); border-color: var(--green); color: white; box-shadow: 0 5px 13px #194b3214; }
.route.active .route-number { color: var(--lime); }
.route:hover:not(.active) { border-color: #7d9b62; transform: translateY(-2px); }
.route-copy .eyebrow { margin-bottom: 10px; }
.route-copy h2 { font-size: 30px; }
.route-copy > p:not(.eyebrow) { margin-top: 9px; font-size: 13px; color: #64745b; }
.next-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 23px; margin-top: 24px; }
.next-step { padding-top: 17px; border-top: 1px solid #d7deca; }
.next-step span { font: italic 16px/1 Georgia,serif; color: var(--orange); }
.next-step p { margin-top: 9px; font-size: 15px; }
.closing { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.closing button { padding: 10px 15px; border: 1px solid #d1dcc1; border-radius: 5px; background: #fdfdf67a; font-size: 12px; }
.closing button.active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.closing button:hover:not(.active) { border-color: #92a776; background: #eef2df; }
.bottom { min-height: 80px; padding: 17px 3.2vw; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; background: var(--white); }
#chapter-count { font-size: 11px; letter-spacing: .1em; color: #63745a; }
.navigation { display: flex; gap: 13px; }
dialog { border: 1px solid #cbd7bd; border-radius: 13px; padding: 38px; max-width: 510px; width: calc(100% - 36px); color: var(--ink); background: var(--white); box-shadow: 0 26px 100px #102f2b33; }
dialog[open] { animation: dialog-enter .32s var(--ease); }
dialog::backdrop { background: #112d2a7d; backdrop-filter: blur(6px); }
dialog h2 { font: 32px/1.5 var(--serif); margin: 12px 0 17px; }
dialog p { margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.dialog-close { position: absolute; right: 15px; top: 10px; width: 35px; height: 35px; border-radius: 50%; font-size: 27px; line-height: 1; }
.dialog-close:hover { background: #e6eeda; transform: rotate(90deg); }
.small-note { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 21px; font-size: 11px; color: var(--muted); }
.link-text { display: block; word-break: break-all; font-size: 11px; padding: 12px; margin-top: 12px; background: var(--paper); }
.toast { position: fixed; z-index: 50; bottom: 98px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 12px 20px; border-radius: 7px; box-shadow: 0 8px 24px #102b2920; max-width: 90vw; font-size: 13px; }
[hidden] { display: none !important; }
@keyframes dialog-enter { from { opacity: 0; transform: translateY(13px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (min-width: 1600px) { main { padding-top: 45px; } .hero-question { padding: 37px 40px; } .choice { padding: 25px 29px; } .choice h3 { font-size: 20px; } }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 188px minmax(0,1fr); }
  .sidebar { padding: 33px 13px 24px; }
  .rail-heading { padding-left: 10px; padding-right: 10px; }
  .rail-heading p { font-size: 23px; }
  nav button { font-size: 12px; padding: 14px 10px; gap: 10px; }
  nav button b { font-size: 14px; }
  main { padding: 30px 28px; }
  .choice { padding: 17px; }
  .choice h3 { font-size: 16px; }
  .choice p { font-size: 11px; }
  .flow { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
  .node { padding: 11px 10px 15px; }
  .node .node-index { margin-bottom: 6px; }
  .detail { padding: 23px; }
  .workflow { padding: 20px 19px; }
  .workflow li { font-size: 13px; }
  .workflow-head { gap: 9px; }
  .routes { gap: 8px; }
  .route { padding: 14px 12px; font-size: 12px; }
  .chapter-edition { font-size: 8px; }
}
@media (max-width: 760px) {
  .topbar { min-height: 67px; padding: 12px 18px; gap: 10px; }
  .brand { font-size: 12px; gap: 9px; }
  .brand-mark { width: 29px; height: 29px; font-size: 24px; }
  .brand-divider { padding: 0 8px; }
  .tools { gap: 4px; }
  .tools button { padding: 7px 10px; font-size: 11px; min-height: 36px; }
  .status, .fullscreen { display: none; }
  .shell { display: block; min-height: calc(100svh - 146px); }
  .sidebar { padding: 12px 15px; display: block; }
  .sidebar::before, .rail-heading, .sidebar > .eyebrow, .rail-footer { display: none; }
  nav { display: flex; overflow-x: auto; margin: 0; gap: 5px; scrollbar-width: thin; }
  nav button { flex-shrink: 0; font-size: 11px; padding: 9px; gap: 7px; min-height: 38px; }
  nav button b { font-size: 12px; }
  nav button.active::after { display: none; }
  main { padding: 26px 20px 29px; }
  .chapter-masthead { margin-bottom: 19px; padding-bottom: 10px; }
  .kicker { font-size: 10px; }
  .chapter-edition { font-size: 8px; letter-spacing: .13em; }
  h1 { font-size: 29px; line-height: 1.55; }
  .subtitle { font-size: 12px; margin-top: 10px; }
  .chapter-head { margin-bottom: 23px; }
  .hero-question { padding: 24px 23px; margin: 20px 0; }
  .hero-question h2 { padding-right: 0; font-size: 25px; line-height: 1.65; }
  .hero-question .eyebrow { margin-bottom: 13px; }
  .question-index { font-size: 130px; right: 10px; }
  .choice-grid { grid-template-columns: 1fr; gap: 11px; }
  .choice { padding: 18px 21px; }
  .choice-top { float: right; margin: 4px 0 0 17px; gap: 16px; }
  .choice .mini { font-size: 25px; }
  .choice h3 { margin: 0 0 7px; font-size: 18px; }
  .choice p { font-size: 12px; }
  .choice-arrow { width: 23px; height: 23px; }
  .prompt-line { font-size: 18px; padding: 13px 17px 13px 21px; margin-top: 22px; }
  .tabs { margin-top: 15px; padding: 3px; gap: 3px; }
  .tabs button { font-size: 11px; padding: 8px 12px; min-height: 36px; }
  .story-step { font-size: 11px; padding: 9px 3px 16px; }
  .story-step b { font-size: 21px; margin-bottom: 8px; }
  .clues { gap: 8px; }
  .clue { font-size: 11px; padding: 8px 10px; }
  .reveal-copy { font-size: 20px; padding: 12px 18px; }
  .flow { gap: 22px 20px; margin: 18px 0; }
  .node b { font-size: 15px; }
  .node .node-index { font-size: 17px; }
  .node span { font-size: 9px; }
  .node { padding: 11px 5px 14px; }
  .layer-explainer { font-size: 11px; padding: 12px 15px; }
  .feedback-lines { gap: 7px 16px; padding: 11px 5px; font-size: 10px; }
  .detail { padding: 22px 20px; }
  .detail-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .tag { font-size: 9px; }
  .detail h2 { font-size: 25px; line-height: 1.6; }
  .detail .question { font-size: 18px; margin-bottom: 19px; }
  .detail-cols { grid-template-columns: 1fr; gap: 18px; }
  .detail-cols p:not(.eyebrow) { font-size: 13px; }
  .scene-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .scene-heading h2 { font-size: 25px; }
  .source { font-size: 11px; }
  .comparison { grid-template-columns: 1fr; gap: 10px; }
  .compare-arrow { height: 33px; }
  .compare-arrow > span { transform: rotate(90deg); width: 27px; height: 27px; font-size: 16px; }
  .workflow { padding: 24px; }
  .workflow h3 { font-size: 14px; }
  .workflow li { font-size: 14px; }
  .sample { padding: 23px 20px; }
  .sample h3 { font-size: 20px; }
  .sample-row { grid-template-columns: 1fr; gap: 4px; font-size: 13px; padding: 14px 0; }
  .routes { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .route { padding: 16px 18px; font-size: 13px; }
  .route-number { font-size: 21px; }
  .route-copy h2 { font-size: 28px; }
  .next-steps { grid-template-columns: 1fr; gap: 0; margin-top: 21px; }
  .next-step { display: flex; align-items: center; gap: 16px; padding: 15px 0; }
  .next-step p { margin: 0; font-size: 14px; }
  .closing { gap: 7px; }
  .closing button { font-size: 11px; padding: 10px 12px; }
  .bottom { padding: 15px 18px; min-height: 79px; }
  #chapter-count { font-size: 9px; max-width: 100px; line-height: 1.9; }
  .navigation { gap: 2px; }
  .navigation button { font-size: 11px; padding: 9px 12px; }
  .toast { font-size: 12px; bottom: 90px; }
}
@media (hover: none) { .choice:hover, .node:hover, .primary:hover, .route:hover:not(.active) { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .sidebar, .bottom, dialog, .toast { display: none !important; }
  body, .shell, main { display: block; padding: 0; background: white; }
  .hero-question, .workflow.assisted { background: white; color: var(--ink); border: 1px solid var(--line); }
  .hero-question .eyebrow, .workflow-id { color: var(--green); }
  .chapter-head, .detail, .comparison, .sample { break-inside: avoid; }
  .flow-lines { display: none; }
}
