:root {
  --ink:#22232b; --muted:#64665f; --line:#d7d8d1; --paper:#fff;
  --green:#24563d; --sage:#eaf3e9; --sage-line:#c1d7c2; --red:#a44634;
  --warm:#faf7ee; --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-family:Inter,"Helvetica Neue",Arial,sans-serif; color:var(--ink);
  -webkit-text-size-adjust:100%; text-size-adjust:100%; font-synthesis:none;
}
*{box-sizing:border-box}
body{margin:0; min-height:100vh; display:flex; flex-direction:column; background:#fafaf8}
main{flex:1; display:flex; flex-direction:column}
button,select{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid #528468;outline-offset:3px}
button:disabled{cursor:default}
.wrap{width:min(1540px,100%);margin-inline:auto;padding-inline:clamp(20px,4vw,68px)}
.mast,.setup,footer{background:var(--paper)}
.mast-inner{height:59px;display:flex;align-items:center;justify-content:space-between;position:relative}
.mast-inner::after{content:"";position:absolute;bottom:0;left:clamp(20px,4vw,68px);right:clamp(20px,4vw,68px);border-bottom:1px solid var(--line)}
.brand,.footer-brand{letter-spacing:-.085em;font-weight:760}
.brand{font-family:Arial,"Helvetica Neue",sans-serif;font-size:29px;font-weight:700;line-height:1}
.mast-center,.audience,.time-total,.section-meta,.foot-inner{font-size:13px}
.mast-center,.time-total{display:flex;align-items:center;gap:9px}
.mast-center{position:absolute;left:50%;transform:translateX(-50%)}
.status-dot,.legend-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--red)}
.audience,.section-meta,.foot-inner{color:var(--muted)}
.setup{border-bottom:1px solid var(--line);padding:23px 0 20px}
.title-row,.section-line,.panel-top,.branch-header,.foot-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
h1,h2,h3,h4,p,blockquote{margin:0}
h1{font-size:clamp(31px,3.2vw,49px);font-weight:490;line-height:1.08;letter-spacing:-.065em}
.slashes{letter-spacing:-.1em}
.time-total{color:var(--muted);white-space:nowrap}
.clock{width:15px;height:15px;border:1.4px solid currentColor;border-radius:50%;position:relative;display:inline-block}
.clock::after{content:"";position:absolute;left:6px;top:2px;width:3px;height:5px;border-left:1.2px solid currentColor;border-bottom:1.2px solid currentColor}
.filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:19px}
.filters label{min-width:0;display:grid;gap:6px;font-size:13px;color:var(--muted)}
.select-wrap{display:block;position:relative;min-width:0}
.select-wrap::after{content:"";position:absolute;right:16px;top:calc(50% - 4px);width:6px;height:6px;border:solid #44483f;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);pointer-events:none}
select{width:100%;height:42px;padding:0 34px 0 13px;border:1px solid #cdcec7;border-radius:4px;background:#fcfcfa;color:var(--ink);appearance:none;-webkit-appearance:none;cursor:pointer;font-size:15px}
select:hover{border-color:#989a90}
.map{flex:1;background-color:#f8f9f6;background-image:radial-gradient(#d9dcd3 .75px,transparent .85px);background-size:15px 15px;padding:25px 0 33px}
.map-layout{display:grid;grid-template-columns:minmax(228px,.33fr) minmax(0,1fr);gap:clamp(20px,2.4vw,38px);align-items:start}
.section-line{min-height:24px;margin-bottom:12px}
.section-line h2,.reader-caption{font-size:14px;font-weight:610;letter-spacing:-.012em}
.section-meta,.micro,.stage-num,.timing,.eyebrow,.mini-index{font-family:var(--mono);font-size:11px;line-height:1.4}
.stage-row{position:relative}
.stage-row + .stage-row{padding-top:17px}
.stage-row + .stage-row::before,.stage-row + .stage-row::after{content:"";position:absolute;left:25px;top:0;height:14px;border-left:1px solid #aeb2a6}
.stage-row + .stage-row::after{height:4px;width:4px;top:8px;left:23px;transform:rotate(-45deg);border-bottom:1px solid #aeb2a6}
.stage-btn{width:100%;display:grid;grid-template-columns:25px minmax(0,1fr) 18px;gap:9px;align-items:center;text-align:left;background:#fff;border:1px solid var(--line);border-radius:5px;min-height:62px;padding:12px 13px;transition:background .15s,border-color .15s}
.stage-btn:hover,.choice:hover,.close:hover{border-color:#969f91}
.stage-btn[aria-expanded=true]{background:#24252d;border-color:#24252d;color:#fff}
.stage-num{color:var(--red);font-size:12px}
.stage-btn[aria-expanded=true] .stage-num{color:#efad97}
.stage-title{font-size:16px;letter-spacing:-.025em;line-height:1.25}
.fold-symbol{border:1px solid #c2c7ba;height:16px;width:16px;display:inline-grid;place-items:center;border-radius:50%;color:#57765e;font-size:13px;line-height:1;font-family:Arial,sans-serif}
.stage-btn[aria-expanded=true] .fold-symbol{border-color:#74766f;color:#fff}
.workspace{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
.workspace.with-branch{grid-template-columns:minmax(0,1fr) minmax(0,.92fr)}
#reader-slot,#branch-slot{min-width:0}
#branch-slot:empty{display:none}
.reader-caption,.branch-caption{height:24px;display:flex;align-items:center;gap:8px;margin-bottom:12px}
.branch-caption{font-size:14px;font-weight:600}
.branch-caption::before{content:"↳";color:var(--green)}
.reader,.branch-panel{background:var(--paper);border:1px solid var(--line);border-radius:6px;min-width:0}
.reader{padding:clamp(18px,2.1vw,32px)}
.panel-top{align-items:flex-start;gap:8px;margin-bottom:15px}
.eyebrow{color:var(--red);margin-bottom:6px}
.reader h2{font-size:clamp(25px,2.25vw,37px);line-height:1.08;font-weight:500;letter-spacing:-.055em;overflow-wrap:break-word}
.timing{display:inline-block;color:var(--muted);white-space:nowrap;border:1px solid var(--line);padding:4px 8px;border-radius:20px}
.hint{color:#545750;line-height:1.5;font-size:14px;margin:0 0 18px;max-width:74ch}
.voice{border:1px solid var(--sage-line);border-radius:5px;background:var(--sage);padding:15px 17px;color:#244f37}
.voice blockquote{font-size:clamp(16px,1.35vw,21px);line-height:1.43;letter-spacing:-.022em;max-width:70ch;text-wrap:pretty}
.voice .voice-label{color:#3c694a;font-size:12px;display:flex;align-items:center;gap:6px;font-weight:600;margin-bottom:7px}
.voice-label::before{content:"";width:5px;height:5px;border-radius:50%;background:#64956b}
.voice + .voice{margin-top:8px}
.group,.reader-section{margin-top:20px}
.group h3,.reader-section h3{font-size:14px;letter-spacing:-.012em;font-weight:630;margin-bottom:9px;line-height:1.4}
.choices{display:flex;flex-wrap:wrap;align-items:flex-start;gap:7px}
.choice-unit{max-width:100%;min-width:0}
.choice{width:100%;min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:9px;text-align:left;padding:8px 11px;border:1px solid var(--line);background:#fff;border-radius:4px;font-size:14px;line-height:1.35;letter-spacing:-.01em}
.choice::after{content:"+";color:#607962;flex:none;font-family:var(--mono);font-size:14px}
.choice[aria-expanded=true]{color:#1d5137;border-color:#8bad8e;background:#e4efdf}
.choice[aria-expanded=true]::after{content:"−"}
.reader-foot,.branch-foot{display:flex;justify-content:flex-end;align-items:center;margin-top:20px;padding-top:15px;border-top:1px solid var(--line)}
.next,.branch-next{display:inline-flex;align-items:center;justify-content:center;gap:14px;line-height:1.35;text-align:left;font-size:14px;border-radius:3px;padding:10px 13px}
.next{background:var(--ink);border:1px solid var(--ink);color:#fff}
.next:hover{background:#3d3e43}
.branch-next{background:transparent;color:var(--green);border:1px solid #aebb9f}
.small-arrow{font-size:15px}
.branch-panel{position:relative;background:var(--warm);border-color:#d6d2c2;padding:clamp(17px,1.6vw,25px)}
.branch-panel::before{content:"";width:18px;border-top:1px solid #8aa087;position:absolute;left:-19px;top:32px}
.branch-header{align-items:flex-start;margin-bottom:18px}
.branch-header h3{font-size:clamp(21px,1.7vw,28px);font-weight:520;letter-spacing:-.045em;line-height:1.15;overflow-wrap:break-word}
.close{background:transparent;border:1px solid #c5c5b7;border-radius:50%;color:#54594d;flex:none;font-size:19px;font-weight:400;height:30px;width:30px;display:grid;place-items:center;line-height:1}
.reading-block + .reading-block{margin-top:16px}
.reading-block h4{font-size:13px;margin-bottom:7px;line-height:1.35}
.reader > .reading-block{padding:16px 18px;background:#fafaf7;border:1px solid var(--line);border-radius:5px}
.reader > .reading-block h3{margin-bottom:10px;font-size:16px;font-weight:600}
.reader > .reading-block li{padding-left:4px;max-width:64ch}
.reader > .reading-block li+li{margin-top:9px}
.reading-block p,.reader-section p,.reading-block li,.reader-section li{font-size:15px;line-height:1.5;overflow-wrap:break-word}
.reading-block ol,.reader-section ol{padding-left:1.3em;margin:0}
.reading-block li+li,.reader-section li+li{margin-top:6px}
.reading-block .voice{padding:10px 12px}
.reading-block .voice blockquote{font-size:16px}
.branch-foot{justify-content:space-between;flex-wrap:wrap;gap:6px}
.text-btn{border:0;background:transparent;padding:8px 0;color:#4b5647;font-size:13px;text-decoration:underline;text-underline-offset:3px}
.footer-brand{font-size:19px;color:#43453f}
footer{border-top:1px solid var(--line)}
.foot-inner{min-height:52px}
.legend-dot{background:#7fae89;vertical-align:middle;margin-right:4px}
.mobile-content:empty{display:none}
@media(min-width:1480px){.map-layout{grid-template-columns:300px minmax(0,1fr)}}
@media(min-width:941px) and (min-height:530px){.route{position:sticky;top:16px}}
@media(min-width:941px) and (max-width:1160px){.map-layout{grid-template-columns:213px minmax(0,1fr);gap:16px}.wrap{padding-inline:24px}.workspace.with-branch{gap:14px}.with-branch .reader,.branch-panel{padding:15px}.with-branch .panel-top{display:block}.with-branch .timing{margin-top:8px}.branch-panel::before{width:14px;left:-15px}}
@media(max-width:940px){
  .map-layout{display:block}.route{width:100%}.workspace{display:none}
  .wrap{max-width:760px;padding-inline:20px}.mast-inner::after{left:20px;right:20px}
  .mobile-content{padding-top:7px}
  .reader-caption{display:none}.reader{padding:20px}
  .stage-row+.stage-row{padding-top:14px}
  .choices{display:grid;grid-template-columns:1fr;width:100%}
  .choice{text-align:left;min-height:44px}
  .branch-caption{display:none}.branch-panel{margin:5px 0 4px;border-radius:4px}
  .branch-panel::before{display:none}.branch-header h3{font-size:22px}
  .branch-header{margin-bottom:14px}.close{width:36px;height:36px}
  .panel-top{align-items:center}
  .reader h2{font-size:27px}.reader-caption+.reader .panel-top h2{display:none}
  .reader .eyebrow{margin-bottom:0}.reader .panel-top{margin-bottom:10px}
}
@media(max-width:620px){
  .wrap{padding-inline:16px}.mast-inner{height:49px}.mast-inner::after{left:16px;right:16px}
  .mast-center{display:none}.brand{font-size:26px}.audience{font-size:12px}
  .setup{padding:15px 0}.title-row{gap:5px}
  h1{font-size:clamp(25px,6.6vw,36px);letter-spacing:-.055em}
  .time-total{font-size:11px;gap:5px}.clock{width:12px;height:12px}.clock::after{left:4px;top:1px;height:5px}
  .filters{display:flex;flex-direction:column;gap:6px;margin-top:14px}
  .filters label{grid-template-columns:55px minmax(0,1fr);align-items:center;font-size:12px;gap:5px}
  select{font-size:16px;height:39px;padding-left:10px}
  .map{padding:18px 0 24px}.section-line{margin-bottom:9px}
  .stage-btn{min-height:56px}.reader{padding:15px}.hint{margin-bottom:13px}
  .voice{padding:12px}.voice blockquote{font-size:17px}
  .reader-foot{justify-content:stretch}.next{width:100%;min-height:44px}
  .branch-panel{padding:13px}.branch-next,.text-btn{min-height:44px}
  .branch-header h3{font-size:20px}.close{height:40px;width:40px}
  .foot-inner{min-height:47px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
