:root{color-scheme:light;--ink:#202d46;--muted:#687389;--blue:#3d53cb;--blue-light:#edf0ff;--line:#e2e6ef;--surface:#fff;--page:#f7f8fc;--radius:20px;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink);font-size:16px;line-height:1.5}button,a,input{ -webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #bd6b25;outline-offset:4px}button{touch-action:manipulation}a{color:var(--blue)}svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px;flex:none}.skip{position:fixed;top:-80px;left:20px;padding:12px;background:white;z-index:99}.skip:focus{top:10px}.app-header{height:92px;padding:0 36px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-size:21px;font-weight:750;text-decoration:none;letter-spacing:.02em}.brand small{display:block;color:var(--muted);font-size:11px;font-weight:400;letter-spacing:.1em;margin-top:1px}.brand-mark{display:grid;place-items:center;background:var(--blue);color:#fff;width:42px;height:42px;border-radius:13px}.brand-mark svg{fill:#fff;stroke:var(--blue);width:27px;height:27px}.role-switch{display:flex;padding:5px;background:#f0f2f7;border-radius:13px}.role-switch button{padding:10px 24px;border-radius:9px;min-height:44px;color:var(--muted);background:none;font-size:15px;font-weight:650;transition:background .2s,color .2s,box-shadow .2s}.role-switch button[aria-pressed=true]{color:var(--blue);background:white;box-shadow:0 2px 6px #1c2a4010}.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 10px;color:var(--muted);background:transparent;border-radius:9px;font-size:14px}.icon-button:hover{background:#eef1f7;color:var(--ink)}.action-open b{display:grid;place-items:center;width:23px;height:23px;border-radius:7px;color:var(--blue);background:var(--blue-light);font-size:12px}.app-layout{display:grid;grid-template-columns:220px minmax(0,1fr);max-width:1680px;margin:auto;min-height:calc(100svh - 92px)}.case-nav{border-right:1px solid var(--line);padding:32px 15px 24px;background:#fcfcfe;display:flex;flex-direction:column}.nav-label{font-size:11px;color:var(--muted);padding:0 12px;margin-bottom:18px;letter-spacing:.06em}.case-pick{width:100%;background:transparent;display:flex;align-items:center;gap:11px;text-align:left;padding:14px 12px;min-height:54px;border-radius:10px;color:var(--muted);font-size:14px;line-height:1.3;margin-bottom:5px}.case-pick .case-num{font-size:11px;opacity:.65;font-variant-numeric:tabular-nums}.case-pick .case-name{flex:1}.case-pick b{font-size:10px;font-weight:500;white-space:nowrap}.case-pick[aria-current=true]{background:var(--blue-light);color:var(--blue);font-weight:700}.case-pick:hover{background:#edf0f6}.nav-bottom{margin-top:auto;padding:40px 12px 0;font-size:11px;color:var(--muted)}.nav-bottom .text-button{display:block;margin-top:12px;font-size:11px;padding:0;min-height:35px}.text-button{background:none;color:var(--blue);font-size:13px;padding:5px 0;min-height:44px}.text-button:hover{text-decoration:underline}main{padding:30px 32px 20px;min-width:0}.case-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.eyebrow{font-size:11px;letter-spacing:.08em;color:var(--blue);font-weight:650;margin:0 0 8px}h1{font-size:clamp(24px,2.15vw,34px);line-height:1.3;letter-spacing:-.025em;margin:0;font-weight:750}.context{font-size:14px;color:var(--muted);margin:9px 0 0}.secondary{background:white;border:1px solid var(--line);padding:9px 12px;border-radius:10px;min-height:44px;color:var(--ink);font-size:13px}.case-menu{display:none;white-space:nowrap}.workbench{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:26px;align-items:stretch}.story-player{background:white;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);min-width:0;align-self:start}.stage-wrap{position:relative;background:#ecefeb;aspect-ratio:16/9;overflow:hidden}canvas{display:block;width:100%;height:100%}.stage-badge,.step-badge{position:absolute;top:18px;left:20px;background:#ffffffea;padding:7px 11px;border-radius:8px;font-size:11px;color:#4d586d;pointer-events:none;max-width:calc(100% - 85px)}.step-badge{left:auto;right:20px;font-variant-numeric:tabular-nums;font-size:11px}.dialogue{padding:21px 24px 18px;display:flex;gap:14px;align-items:flex-start;min-height:104px}.speaker{white-space:nowrap;color:var(--blue);background:var(--blue-light);padding:5px 8px;border-radius:7px;font-size:12px;font-weight:650;margin-top:3px}.dialogue p{margin:0;font-size:19px;font-weight:650;line-height:1.55;min-height:2.7em}.timeline{display:flex;padding:0 24px;gap:6px}.timeline button{padding:7px 0;background:none;flex:1;height:21px;border-radius:4px}.timeline button i{display:block;height:3px;background:#e7eaf3;border-radius:3px;overflow:hidden}.timeline button[aria-current=step] i{background:var(--blue)}.timeline button.completed i{background:#aab4e7}.playback{display:flex;align-items:center;gap:8px;padding:11px 20px 14px}.play-button{background:var(--blue-light);color:var(--blue);display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;min-height:44px;border-radius:10px;font-size:13px;font-weight:700}.playback-spacer{flex:1}.playback .icon-button{font-size:12px;padding:8px}.playback svg{width:18px;height:18px}.voice-note{font-size:11px;color:var(--muted);padding:0 24px 15px;margin:0}.choice-panel{display:flex;flex-direction:column;min-width:0;padding-top:5px}.choice-heading h2{font-size:18px;margin:0;font-weight:700}.choice-heading p{font-size:12px;color:var(--muted);margin:6px 0 17px}.choices{display:grid;gap:10px}.choice{display:flex;align-items:center;gap:12px;min-height:81px;text-align:left;padding:13px 16px;border:1px solid var(--line);border-radius:13px;background:white;color:var(--ink);transition:background .2s,border-color .2s,transform .2s}.choice .choice-icon{width:34px;height:34px;display:grid;place-items:center;color:#6f7da6;background:#f2f4f9;border-radius:10px;flex:none}.choice svg{width:19px;height:19px}.choice strong{display:block;font-size:15px;line-height:1.4;font-weight:650}.choice small{display:block;font-size:11px;color:var(--muted);margin-top:4px;line-height:1.5}.choice:hover{border-color:#99a4df;transform:translateY(-1px)}.choice[aria-pressed=true]{border-color:var(--blue);background:var(--blue-light);box-shadow:inset 0 0 0 1px var(--blue)}.choice[aria-pressed=true] .choice-icon{color:var(--blue);background:#fff}.compare-link{font-size:12px;text-align:left;margin-top:5px}.follow-area{margin-top:auto;padding-top:18px}.follow-area p{font-size:12px;color:var(--muted);margin:0 0 10px;min-height:18px}.primary{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;background:var(--blue);color:white;border-radius:11px;min-height:48px;padding:12px 18px;font-size:14px;font-weight:650}.primary:hover{background:#2c40af}.primary:disabled{opacity:1;color:#949bb1;background:#e9ecf4}.below-player{display:flex;gap:18px;align-items:center;margin-top:12px;color:var(--muted);font-size:11px;flex-wrap:wrap}.below-player .text-button{font-size:11px}.fiction{margin-left:auto;color:#6d778a;font-size:10px}dialog{border:1px solid var(--line);border-radius:22px;box-shadow:0 30px 100px #18254725;padding:27px;width:min(600px,calc(100% - 32px));max-height:88vh;max-height:88svh;color:var(--ink);background:white;overflow:auto}dialog::backdrop{background:#18213970;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:18px}.dialog-head h2{font-size:23px;line-height:1.4;margin:0;letter-spacing:-.02em}.close{font-size:28px;color:var(--muted);background:#f3f5f9;border-radius:10px;min-width:44px;height:44px;line-height:1}.dialog-intro{font-size:13px;color:var(--muted);margin:0 0 23px}.case-dialog-list{display:grid;gap:5px}.case-dialog-list .case-pick{padding:15px;min-height:56px}.compare-item{padding:18px 0;border-top:1px solid var(--line)}.compare-item h3{font-size:16px;margin:0 0 8px}.compare-item p{font-size:13px;line-height:1.6;margin:4px 0;color:var(--muted)}.compare-item p strong{font-weight:500;color:var(--ink);margin-right:8px}.compare-item button{margin-top:8px;font-size:13px;min-height:36px}.method-item{border-top:1px solid var(--line);padding:15px 0}.method-item summary{font-size:15px;cursor:pointer}.method-item p{font-size:13px;margin:12px 0;color:var(--muted)}.method-item a{font-size:12px}.method-note{font-size:11px;color:var(--muted);margin-top:18px}.practice-field{border:0;margin:0 0 19px;padding:0;min-width:0}.practice-field legend{font-size:13px;font-weight:650;margin-bottom:10px;display:flex;align-items:center;gap:9px}.practice-field legend span{font-size:11px;color:var(--blue);background:var(--blue-light);border-radius:5px;min-width:22px;text-align:center;padding:2px 4px}.practice-options{display:flex;gap:7px;flex-wrap:wrap}.practice-options label{cursor:pointer;display:block}.practice-options input{position:absolute;opacity:0;width:1px;height:1px}.practice-options label span{display:block;border:1px solid var(--line);border-radius:9px;padding:10px 12px;font-size:12px;min-height:42px;transition:background .15s}.practice-options input:checked+span{background:var(--blue-light);color:var(--blue);border-color:var(--blue)}.practice-options input:focus-visible+span{outline:3px solid #bd6b25;outline-offset:3px}.save-action{margin-top:24px}.local-note{font-size:10px;color:var(--muted);text-align:center;margin:12px 0 0}.empty-action{text-align:center;padding:45px 10px}.empty-action svg{width:46px;height:46px;color:#8593b8}.empty-action p{font-size:14px;margin:16px 0 5px}.empty-action small{font-size:12px;color:var(--muted)}.plan-card{border-top:1px solid var(--line);padding:22px 0}.plan-card h3{font-size:17px;margin:0 0 7px}.plan-meta{font-size:11px;color:var(--muted);margin:0 0 13px}.plan-card dl{margin:0;display:grid;grid-template-columns:70px 1fr;gap:9px;font-size:13px}.plan-card dt{color:var(--muted)}.plan-card dd{margin:0}.plan-tools{display:flex;gap:16px;align-items:center;margin-top:15px}.plan-tools button{font-size:12px}.done-toggle{color:var(--blue);border:1px solid var(--line);border-radius:8px;padding:8px 12px;background:white;min-height:42px}.done-toggle[aria-pressed=true]{background:var(--blue-light);border-color:#aab4e7}.plan-card.is-done h3{color:var(--muted)}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:100;background:var(--ink);color:white;border-radius:12px;padding:13px 20px;font-size:13px;max-width:calc(100% - 32px);text-align:center;transition:opacity .2s,transform .2s}#toast.visible{opacity:1;transform:translate(-50%,0)}[hidden]{display:none!important}@media(min-width:1500px){.workbench{grid-template-columns:minmax(0,1fr) 350px;gap:32px}.choice{min-height:90px}.choice strong{font-size:16px}.choice small{font-size:12px}main{padding:35px 42px}.case-heading{margin-bottom:28px}}@media(max-width:1200px){.app-layout{grid-template-columns:188px minmax(0,1fr)}.case-nav{padding-left:10px;padding-right:10px}.case-pick{font-size:12px;padding:13px 9px;gap:8px}.workbench{grid-template-columns:minmax(0,1fr) 270px;gap:19px}main{padding:26px 24px}.dialogue{padding:18px;min-height:113px}.dialogue p{font-size:17px}.choice{padding:12px;min-height:76px;gap:9px}.choice strong{font-size:14px}.choice .choice-icon{width:30px;height:30px}.playback{padding:10px 13px}.app-header{padding:0 25px}}@media(max-width:1000px){.app-layout{display:block}.case-nav{display:none}.case-menu{display:block}main{max-width:960px;margin:auto}.app-header{height:80px}.brand small{display:none}.brand{font-size:18px}.role-switch button{padding:9px 15px}.workbench{grid-template-columns:minmax(0,1fr) 280px}.stage-badge,.step-badge{top:12px;left:13px;padding:6px 8px}.step-badge{left:auto;right:13px}.dialogue{min-height:112px}.follow-area{padding-top:10px}.fiction{width:100%;margin:0}}@media(max-width:760px){.app-header{height:auto;min-height:115px;display:grid;grid-template-columns:1fr auto;padding:14px 19px 12px;gap:13px}.brand{font-size:18px;gap:9px}.brand-mark{width:31px;height:31px;border-radius:9px}.brand-mark svg{width:21px;height:21px}.action-open{font-size:12px;padding:0;gap:6px}.action-open svg{width:19px;height:19px}.role-switch{grid-column:1/-1;grid-row:2;justify-self:stretch;padding:4px}.role-switch button{width:50%;font-size:14px;min-height:40px;padding:8px}.case-heading{margin-bottom:17px;align-items:flex-start}.case-heading h1{font-size:26px}.context{font-size:12px;line-height:1.6;margin-top:7px;max-width:29em}.eyebrow{font-size:10px;margin-bottom:7px}.case-menu{font-size:11px;padding:8px 9px;min-height:38px;margin-top:20px}main{padding:21px 19px 17px}.workbench{display:block}.story-player{border-radius:15px}.stage-badge,.step-badge{font-size:10px;top:10px;padding:5px 7px}.dialogue{padding:16px 16px 10px;gap:10px;min-height:90px}.dialogue p{font-size:17px;min-height:2.65em;line-height:1.5}.speaker{font-size:10px;padding:4px 6px;margin-top:2px}.timeline{padding:0 16px}.playback{padding:7px 10px 11px;gap:5px}.playback .icon-button{font-size:11px}.play-button{padding:9px 12px;min-height:40px;font-size:12px}.choice-panel{padding-top:20px}.choice-heading{display:flex;align-items:baseline;gap:12px;justify-content:space-between}.choice-heading h2{font-size:16px}.choice-heading p{font-size:10px;margin:0 0 12px}.choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.choice{gap:8px;padding:12px 10px;min-height:83px;border-radius:11px;align-items:flex-start}.choice .choice-icon{width:24px;height:27px;background:transparent;border-radius:7px;margin-top:0}.choice svg{width:18px;height:18px}.choice strong{font-size:13px;line-height:1.5}.choice small{font-size:10px;margin-top:4px;line-height:1.6}.compare-link{font-size:11px;margin-top:4px;min-height:36px}.follow-area{display:grid;grid-template-columns:1fr auto;gap:15px;align-items:center;padding-top:8px}.follow-area p{font-size:11px;margin:0;line-height:1.6}.follow-area .primary{width:auto;min-height:45px;gap:18px;font-size:12px;padding:11px 15px}.below-player{gap:5px 15px;margin-top:12px;font-size:10px}.below-player .text-button{font-size:10px;min-height:33px}.fiction{font-size:9px}.voice-note{font-size:10px;padding:0 16px 11px}dialog{padding:22px 19px;border-radius:18px;width:calc(100% - 24px);max-height:90vh;max-height:90svh}.dialog-head h2{font-size:21px}.dialog-intro{font-size:12px}.practice-options label span{font-size:11px;padding:10px}.dialog-head{gap:10px}.case-dialog-list .case-pick{font-size:14px}}@media(max-width:360px){.app-header{padding-left:14px;padding-right:14px}main{padding-left:13px;padding-right:13px}.case-heading h1{font-size:23px}.context{max-width:23em}.brand{font-size:17px}.action-open span{font-size:11px}.case-menu{padding:8px 7px}.choice{gap:5px;padding:10px 7px}.choice strong{font-size:12px}.choice small{font-size:10px}.choice .choice-icon{width:19px}.choice-heading{gap:5px}.choice-heading h2{font-size:14px}.choice-heading p{font-size:9px}.dialogue{gap:8px}.dialogue p{font-size:16px}.follow-area{gap:8px}.follow-area .primary{padding:10px 12px;font-size:11px;gap:10px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}@media(min-resolution:1.5dppx){canvas{image-rendering:auto}}

/* Keep the player controls in reach and the phone choices readable. */
@media (min-width:1001px) and (max-height:800px){.app-header{height:78px}.app-layout{min-height:calc(100svh - 78px)}main{padding-top:22px}.case-heading{margin-bottom:18px}.stage-wrap{aspect-ratio:2/1}.dialogue{min-height:88px;padding-top:17px;padding-bottom:12px}.choice{min-height:74px}.choice-heading p{margin-bottom:13px}.follow-area{padding-top:10px}}
@media(max-width:760px){.choice strong{font-size:14px}.choice small{font-size:12px}.choice-heading p{font-size:12px}.choice .choice-icon{display:none}.speaker{font-size:12px}.playback .icon-button{font-size:12px}.context{font-size:13px}.follow-area p{font-size:12px}.follow-area .primary{font-size:13px}.practice-options label span{font-size:13px;min-height:44px}.voice-note{font-size:12px}}
@media(max-width:360px){.choice strong{font-size:13px}.choice small{font-size:12px}.choice-heading{display:block}.choice-heading p{margin-top:4px}.follow-area{display:block}.follow-area .primary{width:100%;margin-top:10px;font-size:14px}.dialogue p{font-size:16px}}

@media(max-width:760px){.stage-wrap{aspect-ratio:4/3}.dialogue{min-height:80px}}
