@charset "UTF-8";
:root{--paper:#f5f0e7;--white:#fffdf8;--ink:#262f2c;--muted:#73786e;--line:#ddd9cd;--green:#2b6658;--green-soft:#e0ece2;--orange:#c36640;--orange-soft:#f7e2cf;--gold:#ceab65;--radius:23px;--shadow:0 8px 28px #454c3d0a;font-family:ui-rounded,"Avenir Next",Avenir,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.46}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--orange);outline-offset:3px}button{touch-action:manipulation}h1,h2,h3,p{margin-top:0}p{line-height:1.65}h1,h2,.serif{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.035em}h1{font-size:clamp(38px,5vw,68px);line-height:1.04}h2{font-size:34px;line-height:1.14}h3{font-size:17px;line-height:1.35}small{font-size:12px}a{color:var(--green)}[hidden]{display:none!important}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;font-weight:750;letter-spacing:.16em;font-size:10px;line-height:1.4}.icon{width:20px;height:20px;flex:none;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--line);border-radius:14px;background:var(--white);flex:none;font-size:25px}.btn{min-height:48px;padding:12px 20px;border:1px solid var(--line);border-radius:14px;background:var(--white);font-weight:650;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none}.btn.primary{background:var(--green);color:#fff;border-color:var(--green)}.btn.warm{background:var(--orange);border-color:var(--orange);color:white}.btn.soft{background:var(--green-soft);border-color:transparent;color:var(--green)}.text-btn{border:0;background:none;color:var(--green);padding:12px;min-height:44px;font-size:13px;font-weight:700}.pill{border:1px solid var(--line);border-radius:99px;padding:7px 11px;font-size:11px;line-height:1.2;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.pill.green{background:var(--green-soft);border-color:#c6d9ca;color:var(--green)}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.stack{display:grid;gap:12px}.skip-link{position:fixed;top:-60px;left:15px;z-index:100;padding:14px;background:var(--white)}.skip-link:focus{top:10px}.portrait{display:block;flex:none;border-radius:18px;overflow:hidden;background:#dedfd1;width:58px;height:64px}.portrait svg{width:100%;height:100%;display:block}.portrait.small{width:44px;height:48px;border-radius:13px}.portrait.large{width:86px;height:94px;border-radius:21px}.progress-track{height:5px;background:#e2e2d5;border-radius:5px;overflow:hidden}.progress-track i{height:100%;background:var(--green);display:block;border-radius:5px}.divider{height:1px;background:var(--line);margin:22px 0}
/* Chapter desk */
#home{max-width:1180px;margin:0 auto;padding:0 32px 45px}.home-nav{height:90px;display:flex;align-items:center;justify-content:space-between;gap:15px}.brand{display:flex;align-items:center;gap:10px;font-weight:720;letter-spacing:-.04em;font-size:21px}.brand-mark{background:var(--green);color:#f5ebd9;display:grid;place-items:center;width:37px;height:41px;border-radius:16px 16px 16px 4px}.home-links{display:flex;gap:8px}.hero{display:grid;grid-template-columns:.95fr 1.05fr;align-items:center;gap:25px;padding:38px 0 44px}.hero .eyebrow{color:var(--orange);margin-bottom:19px}.hero h1{margin-bottom:20px}.hero p{max-width:385px;font-size:15px;color:#626e65}.hero-actions{display:flex;align-items:center;gap:17px;margin:24px 0 0}.hero-art{background:#e4e9dc;border:1px solid #d8dece;border-radius:38px;overflow:hidden;position:relative;min-height:350px}.hero-art svg{display:block;width:100%;height:350px}.art-caption{position:absolute;bottom:15px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:.09em;color:#4c6a5b;font-weight:700;text-transform:uppercase}.chapter-top{margin-bottom:20px;display:flex;align-items:end;justify-content:space-between;gap:20px}.chapter-top h2{margin:8px 0 0;font-size:30px}.chapter-progress{width:185px}.chapter-progress .row{font-size:12px;justify-content:space-between;margin-bottom:10px}.case-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.case-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:19px;background:var(--white);border:1px solid var(--line);border-radius:20px;min-height:192px;box-shadow:var(--shadow);transition:transform .15s,border-color .15s}.case-card:hover{transform:translateY(-3px);border-color:#a1b6a0}.case-card .card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.case-no{font-size:12px;letter-spacing:.07em;color:var(--muted)}.case-card h3{font-family:Georgia,serif;font-weight:500;font-size:22px;letter-spacing:-.03em;margin:0 0 7px}.case-card p{font-size:12px;color:var(--muted);margin:0}.case-card .card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:16px;gap:10px;font-size:10px;color:var(--muted)}.case-card .mini-line{width:50px;height:3px;border-radius:3px;background:#e3e5d9;overflow:hidden}.case-card .mini-line i{display:block;height:100%;background:var(--green)}.home-note{margin-top:30px;padding-top:20px;border-top:1px solid var(--line);display:flex;gap:18px;justify-content:space-between;align-items:center}.home-note p{font-size:11px;color:var(--muted);max-width:650px;margin:0}.chapter-filter{display:flex;gap:5px;margin-top:15px}.chapter-filter button{min-height:44px;border-radius:99px;border:1px solid var(--line);background:transparent;padding:8px 16px;font-size:12px}.chapter-filter button.active{background:var(--green-soft);color:var(--green);border-color:#adc6b1}
/* The case workspace */
body.playing{overflow:hidden}#play{height:100dvh;min-height:450px;display:flex;flex-direction:column;padding:0 24px 22px;max-width:1440px;margin:0 auto}#play-header{height:85px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:14px}.play-heading{flex:1;min-width:0}.play-heading h1{font-family:inherit;font-size:19px;letter-spacing:-.035em;line-height:1.2;font-weight:700;margin:4px 0 0}.play-heading .eyebrow{color:var(--muted);font-size:9px}.header-actions{display:flex;gap:6px}.play-body{display:grid;grid-template-columns:minmax(0,1.24fr) minmax(340px,1fr);gap:22px;min-height:0;flex:1}.world{border-radius:26px;overflow:hidden;background:#e6eadc;border:1px solid #d0d8c8;min-height:0;display:flex;flex-direction:column;position:relative}.room-bar{display:flex;gap:5px;position:relative;z-index:2;padding:13px;flex:none}.room-tab{background:transparent;border:1px solid transparent;border-radius:12px;padding:9px 12px;min-height:44px;font-size:12px;font-weight:650;flex:1;color:#687666;white-space:normal}.room-tab.active{background:var(--white);color:var(--green);border-color:#d0d7c6;box-shadow:0 2px 4px #4d583407}.room-tab span{display:inline-block;margin-left:5px;font-size:10px;opacity:.65}.scene-wrap{position:relative;flex:1;min-height:0}#scene{width:100%;height:100%;min-height:100px;position:relative;outline:none}#scene canvas{display:block}.camera-bar{position:absolute;right:12px;bottom:12px;display:flex;gap:5px;z-index:5}.camera-bar .icon-btn{background:#fffdf4e8;border-color:#cad2be;width:44px;height:44px;border-radius:14px;font-size:18px}.world-foot{padding:15px 20px;background:#f9fbf1c9;border-top:1px solid #d2dbc9;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#697362;flex:none}.world-foot .text-btn{padding:0 4px;font-size:11px}.case-panel{display:flex;flex-direction:column;min-height:0;background:var(--white);border:1px solid var(--line);border-radius:26px;overflow:hidden;box-shadow:var(--shadow)}#patient-bar{padding:20px 20px 17px;flex:none}.patient-info{min-width:0;flex:1}.patient-info h2{font-family:inherit;font-size:19px;font-weight:700;margin:0 0 4px;letter-spacing:-.03em}.patient-info p{font-size:11px;line-height:1.4;margin:0;color:var(--muted)}.evidence-meter{color:var(--green);text-align:right;font-size:11px}.evidence-meter strong{font-size:21px;letter-spacing:-.05em;display:block}.panel-tabs{display:flex;padding:0 15px;gap:5px;border-bottom:1px solid var(--line);flex:none}.panel-tabs button{min-height:48px;flex:1;background:transparent;border:0;border-bottom:3px solid transparent;display:flex;justify-content:center;align-items:center;gap:6px;font-size:12px;color:var(--muted);padding:9px 2px}.panel-tabs button.active{color:var(--green);font-weight:750;border-bottom-color:var(--green)}.panel-tabs .icon{width:17px;height:17px}.panel-content{overflow-y:auto;overscroll-behavior:contain;padding:22px 20px;flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:#c8d0bf transparent}.panel-content h3{font-size:16px;margin-bottom:7px}.panel-intro{color:var(--muted);font-size:12px;line-height:1.6;margin-bottom:18px}.notice{background:var(--green-soft);border-radius:14px;padding:13px 15px;font-size:12px;line-height:1.55;color:#3c6351;margin-bottom:18px}.notice.warm{background:#f8eadb;color:#855c34}.notice .eyebrow{margin-bottom:6px;display:block}.record-btn,.question-btn{width:100%;display:flex;align-items:center;gap:12px;min-height:68px;padding:13px 14px;background:#faf8f1;border:1px solid var(--line);border-radius:14px;text-align:left;margin-bottom:9px}.record-btn .record-icon,.question-btn .record-icon{background:#efe7d8;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;color:#8b744f;flex:none}.record-btn.read .record-icon,.question-btn.read .record-icon{background:var(--green-soft);color:var(--green)}.record-btn strong,.question-btn strong{display:block;font-size:13px;font-weight:650;line-height:1.35}.record-btn small,.question-btn small{color:var(--muted);font-size:10px;display:block;margin-top:4px}.record-btn>span:nth-child(2),.question-btn>span:nth-child(2){flex:1}.record-btn>.icon,.question-btn>.icon{width:15px;height:15px;color:var(--muted)}.staff-note{display:flex;gap:10px;border-top:1px solid var(--line);padding-top:16px;margin-top:18px}.staff-note p{font-size:12px;line-height:1.6;margin:0}.staff-note strong{font-size:11px;display:block;margin-bottom:6px}.reading .back-reading{padding:0;min-height:44px;display:flex;gap:8px;align-items:center;border:0;background:none;font-size:12px;color:var(--green);margin:-8px 0 12px}.reading h2{font-size:26px;margin-bottom:17px}.reading .eyebrow{color:var(--orange);margin-bottom:9px}.reading p{font-size:14px;line-height:1.75}.reading .quote{padding-left:15px;border-left:3px solid #bdceb5}.reading footer{margin-top:20px;display:flex;align-items:center;gap:8px;justify-content:space-between}.reading footer .pill{font-size:10px}.case-footer{padding:13px 20px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;background:var(--white)}.case-footer .btn{flex:1;padding:11px 12px;min-width:0}.case-footer .text-btn{padding:8px 4px;white-space:nowrap}.case-footer .icon-btn{width:44px;height:46px;font-size:16px}.review-card{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fbfaf5;margin-bottom:10px}.review-card h3{font-size:13px;margin:0 0 6px}.review-card p{font-size:12px;color:#667163;line-height:1.55;margin:0 0 12px}.review-card .row{gap:6px}.mark{display:flex;align-items:center;justify-content:center;gap:3px;min-height:44px;border:1px solid #deded3;background:var(--white);border-radius:9px;padding:7px 5px;flex:1;font-size:10px;white-space:nowrap}.mark.active{background:#e2ecdf;border-color:#94b5a1;color:var(--green);font-weight:750}.mark.against.active{background:#f3e1d8;border-color:#d8ae97;color:#99593e}.mark.clarify.active{background:#eee6cc;border-color:#c9b787;color:#7c6935}.mark .icon{width:13px;height:13px}.review-top{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:12px}.review-top h3{margin:0}.reading-link{border:0;background:none;text-align:left;padding:0;min-height:44px;font-size:11px;color:var(--green)}.followup-btn{border-style:dashed;margin-top:18px;background:#f5f0e8}.followup-label{background:#eee6d9;color:#89724f;padding:4px 6px;font-size:9px;border-radius:5px;display:inline-block;margin-bottom:5px}.empty-panel{text-align:center;padding:20px 10px}.empty-panel>.icon{width:40px;height:40px;color:#b4c7ae;margin-bottom:15px}
/* Dialogs, case notes, and assessment */
dialog{border:1px solid var(--line);border-radius:26px;background:var(--white);color:var(--ink);padding:0;width:min(600px,calc(100vw - 28px));max-height:90dvh;overflow:auto;box-shadow:0 35px 100px #142a3040}dialog::backdrop{background:#16282066;backdrop-filter:blur(3px)}.dialog-top{position:sticky;top:0;background:var(--white);padding:12px 20px 8px;display:flex;justify-content:space-between;align-items:center;z-index:3}.dialog-top .icon-btn{border-color:transparent;background:#f2efe5;font-size:25px;width:44px;height:44px}#dialog-body{padding:5px 26px 28px}#dialog-body h2{margin:6px 0 18px;font-size:34px}#dialog-body p{font-size:14px;line-height:1.7}#dialog-body .small-copy{font-size:12px;color:var(--muted)}.dialog-bottom{position:sticky;bottom:-28px;margin:22px -26px -28px;background:var(--white);padding:15px 26px 22px;border-top:1px solid var(--line);display:flex;gap:8px}.dialog-bottom .btn{flex:1}.choice{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--line);border-radius:13px;margin-bottom:9px;background:#fbfaf5;min-height:54px;cursor:pointer}.choice input{width:18px;height:18px;margin:1px 0 0;accent-color:var(--green);flex:none}.choice:has(input:checked){border-color:var(--green);background:#eaf1e5}.choice span{font-size:13px;line-height:1.5}.choice .choice-index{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#eee9dc;font-size:11px;font-weight:700;flex:none}.form-section{margin:25px 0 15px;display:flex;align-items:center;gap:10px}.form-section .step{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--green);color:#fff;font-size:11px}.form-section h3{margin:0;font-size:15px}.reason-choice input:disabled{opacity:.45}.feedback{padding:16px 18px;border-radius:14px;background:#f8eada;color:#825b32;font-size:13px;line-height:1.6;margin:18px 0}.success-seal{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:#dcebdc;color:var(--green);margin:8px auto 18px}.success-seal .icon{width:32px;height:32px}.success-heading{text-align:center}.success-heading .eyebrow{color:var(--green)}.answer-reveal{border:1px solid #baceb6;border-radius:16px;padding:20px;background:#edf3e8;margin:18px 0;text-align:center}.answer-reveal h3{font-family:Georgia,serif;font-size:26px;font-weight:500;color:var(--green);margin:5px 0 10px}.answer-reveal p{font-size:12px!important;margin:0}.debrief-block{padding-top:10px}.debrief-block h3{font-size:14px}.source-details{margin:20px 0;border:1px solid var(--line);border-radius:12px;padding:12px 15px;font-size:12px}.source-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.source-details ul{padding-left:20px}.source-details li{margin:9px 0;line-height:1.5}.guide-step{display:flex;gap:15px;align-items:flex-start;border-bottom:1px solid var(--line);padding:15px 0}.guide-step>.icon{color:var(--green);margin-top:3px}.guide-step h3{margin:0 0 5px;font-size:14px}.guide-step p{font-size:12px!important;margin:0}.cast-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cast-person{padding:15px;border:1px solid var(--line);border-radius:17px;background:#faf8f2}.cast-person h3{font-size:14px;margin:11px 0 4px}.cast-person .role{color:var(--green);font-size:10px;line-height:1.5;min-height:30px;margin:0 0 8px}.cast-person p{font-size:11px!important;line-height:1.65!important;margin:0}.cast-person .pronouns{font-size:10px;color:var(--muted);margin-bottom:8px}.inline-tags{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.inline-tags .pill{font-size:10px}.team-filter{display:flex;gap:6px;margin:0 0 18px}.team-filter .btn{font-size:12px;padding:8px 15px;min-height:44px}.identity-line{display:flex;align-items:center;gap:12px;margin-bottom:20px}.identity-line h3{margin:0 0 4px}.identity-line p{margin:0;font-size:12px!important;color:var(--muted)}#toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%) translateY(15px);max-width:calc(100vw - 30px);width:max-content;padding:13px 20px;background:#293f35;color:#fff;border-radius:14px;font-size:12px;box-shadow:0 4px 16px #253e3430;z-index:20;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.fallback-scene{height:100%;display:flex;align-items:center;justify-content:center;padding:30px;text-align:center;color:var(--green);font-size:14px;line-height:1.6}
@media(min-width:1000px){.case-card{min-height:210px}.hero-art svg{height:385px}.hero-art{min-height:385px}.hero{padding-top:40px}.panel-content{padding:24px}.case-panel #patient-bar{padding:22px 24px}.play-heading h1{font-size:22px}}
@media(max-width:760px){#home{padding:0 18px 28px}.home-nav{height:72px}.brand{font-size:18px}.home-links .btn{min-height:44px;padding:9px 12px;font-size:12px}.home-links .btn span{display:none}.hero{grid-template-columns:1fr;gap:24px;padding:18px 0 30px}.hero h1{font-size:48px;max-width:340px}.hero p{font-size:13px;max-width:100%;margin-bottom:12px}.hero .eyebrow{font-size:9px;margin-bottom:15px}.hero-art{min-height:225px;border-radius:25px}.hero-art svg{height:225px}.hero-actions{margin-top:18px}.hero-actions .btn{flex:1}.hero-actions .small-copy{font-size:11px}.chapter-top{align-items:center;gap:15px}.chapter-top h2{font-size:26px}.chapter-top .eyebrow{font-size:9px}.chapter-progress{width:110px}.chapter-progress .row{font-size:10px;margin-bottom:8px}.case-grid{grid-template-columns:1fr 1fr;gap:10px}.case-card{padding:14px;min-height:193px;border-radius:18px}.case-card h3{font-size:20px}.case-card .card-foot{font-size:9px}.case-card .portrait{width:44px;height:48px;border-radius:12px}.case-card p{font-size:11px}.home-note{display:block}.home-note .text-btn{padding-left:0}.home-note p{font-size:10px}.case-no{font-size:10px}.case-card .pill{padding:5px 7px;font-size:9px}
 #play{padding:0 10px 8px;min-height:380px;height:100dvh;padding-top:env(safe-area-inset-top);padding-bottom:max(8px,env(safe-area-inset-bottom))}#play-header{height:62px;gap:10px}.play-heading h1{font-size:16px;margin-top:2px}.play-heading .eyebrow{font-size:8px;letter-spacing:.1em}.header-actions{gap:3px}.header-actions .icon-btn{border:0;background:transparent}.header-actions .optional-header{display:none}#play-header>.icon-btn{width:44px;height:44px;border-radius:13px}.play-body{display:flex;flex-direction:column;gap:9px;min-height:0}.world{height:32dvh;min-height:200px;max-height:350px;flex:none;border-radius:19px}.room-bar{padding:6px 7px 0;gap:3px}.room-tab{padding:7px 5px;font-size:10px;min-height:44px;border-radius:10px}.room-tab span{font-size:9px;margin-left:4px}.camera-bar{right:7px;bottom:6px;gap:3px}.camera-bar .icon-btn{width:44px;height:44px;border-radius:12px}.world-foot{display:none}.case-panel{flex:1;min-height:0;border-radius:19px}#patient-bar{padding:10px 13px 8px}.patient-info h2{font-size:16px}.patient-info p{font-size:10px}.patient-info .mobile-hide{display:none}.patient-info .portrait{width:43px;height:47px}#patient-bar .portrait{width:43px;height:47px;border-radius:12px}#patient-bar .row{gap:10px}.evidence-meter{font-size:9px}.evidence-meter strong{font-size:19px}.panel-tabs{padding:0 10px}.panel-tabs button{min-height:44px;font-size:11px;padding:7px 2px}.panel-content{padding:15px 13px}.panel-intro{font-size:11px;margin-bottom:12px}.panel-content h3{font-size:14px}.record-btn,.question-btn{min-height:62px;padding:10px 12px;margin-bottom:8px}.record-btn strong,.question-btn strong{font-size:12px}.record-btn small,.question-btn small{font-size:10px}.case-footer{padding:8px 12px;gap:8px}.case-footer .btn{min-height:44px;font-size:12px;padding:9px 10px}.case-footer .text-btn{font-size:11px;min-height:44px}.case-footer .icon-btn{height:44px}.reading h2{font-size:23px}.reading p{font-size:13px}.reading footer{margin-top:14px}.notice{font-size:11px;padding:11px 13px;margin-bottom:12px}.review-card{padding:12px}.review-card p{font-size:11px}.mark{font-size:10px;padding:8px 3px}.staff-note{margin-top:14px;padding-top:14px}.staff-note p{font-size:11px}.reading .back-reading{margin-bottom:8px}.dialog-top{padding:10px 17px 7px}#dialog-body{padding:4px 19px 23px}#dialog-body h2{font-size:29px}#dialog-body p{font-size:13px}.dialog-bottom{margin:18px -19px -23px;bottom:-23px;padding:13px 19px 18px}.dialog-bottom .btn{font-size:12px}dialog{width:calc(100vw - 20px);max-height:94dvh;border-radius:22px}.cast-person{padding:12px}.cast-person h3{font-size:12px}.cast-list{gap:9px}.hero-actions .pill{font-size:10px}}
@media(max-width:370px){.world{height:28dvh;min-height:175px}.play-heading h1{font-size:14px}#play-header{height:58px}.patient-info h2{font-size:14px}.case-card h3{font-size:18px}.mark .icon{display:none}.case-card{padding:12px}.home-links{gap:3px}.brand{font-size:17px}.hero h1{font-size:44px}}
@media(max-height:540px) and (orientation:landscape){#play{padding:0 10px 7px;min-height:330px}#play-header{height:54px}.play-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,.95fr);gap:10px}.world{height:auto;min-height:0;max-height:none}.world-foot{display:none}#patient-bar{padding:8px 12px}.patient-info .portrait,#patient-bar .portrait{width:37px;height:41px}.patient-info h2{font-size:14px}.panel-tabs button{min-height:44px;font-size:10px}.panel-content{padding:12px}.case-footer{padding:7px 10px}.room-bar{padding:5px}.room-tab{font-size:10px;padding:6px}.case-panel{border-radius:18px}.world{border-radius:18px}.play-heading h1{font-size:15px}.header-actions .optional-header{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* The mobile casebook can fold away to make room for exploration. */
.patient-name{font:inherit;font-weight:inherit;letter-spacing:inherit;line-height:1.2;display:block;text-align:left;padding:4px 0;min-height:44px;border:0;background:none}.patient-info h2{margin:0}.panel-toggle{display:none}
@media(max-width:760px) and (orientation:portrait){.panel-toggle{display:inline-flex}.panel-collapsed .case-panel{flex:none}.panel-collapsed .panel-tabs,.panel-collapsed .panel-content{display:none}.panel-collapsed .world{height:auto;max-height:none;flex:1}.reading p{font-size:15px}.panel-collapsed .patient-name{font-size:inherit}}
/* Optional voice-over, kept beside the text it reads. */
#voice-dock{display:flex;align-items:center;gap:8px;min-height:60px;flex:none;padding:7px 13px;border-bottom:1px solid var(--line);background:#eef2e7;color:var(--green);width:100%}#voice-dock button{display:grid;place-items:center;min-width:44px;width:44px;height:44px;padding:0;border:1px solid #c6d4bd;border-radius:12px;background:#fffdf7;color:var(--green);font-size:16px;flex:none}#voice-dock .voice-play{background:var(--green);color:white;border-color:var(--green)}#voice-dock svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.voice-status{flex:1;min-width:0}.voice-status strong{display:block;font-size:12px;line-height:1.4}.voice-status span{display:block;font-size:11px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#voice-dock[data-status="error"] .voice-status span{white-space:normal;color:#8f542e}#home>#voice-dock{max-width:520px;border:1px solid #cbd7bf;border-radius:16px;margin:6px 0 8px auto}.dialog-top{flex-wrap:wrap}.dialog-top>#voice-dock{border:1px solid #cbd7bf;border-radius:13px;flex-basis:100%;margin-top:7px}.voice-reading{outline:2px solid #9cb794;outline-offset:3px;border-radius:4px;background-color:#e8efdf80}.interview-prompt{font-style:italic;color:var(--green);padding:9px 12px;background:#edf1e5;border-radius:10px}#voice-settings{z-index:50}#voice-settings::backdrop{background:#16282055}.voice-settings-top{position:sticky;top:0;background:var(--white);padding:13px 20px;display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:6px;z-index:3}.voice-settings-top h2{font-size:28px;margin:0}.voice-settings-top>#voice-dock{border:1px solid #cbd7bf;border-radius:13px;flex-basis:100%}.voice-settings-body{padding:8px 24px 24px}.voice-settings-body p{font-size:13px;line-height:1.6}.voice-settings-body .small-copy{font-size:11px;color:var(--muted);margin-top:16px}.voice-check{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:13px;margin:14px 0;min-height:50px;font-size:13px}.voice-check input{width:20px;height:20px;flex:none;accent-color:var(--green)}.voice-check small{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:5px}.voice-setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:58px;font-size:13px}.voice-setting-row input[type="range"]{width:50%;height:44px;accent-color:var(--green)}.voice-settings-body select{max-width:100%;min-height:44px;background:#f4f2e8;color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:8px 10px;font-size:13px}.voice-select-label{display:block;margin:12px 0 7px;font-size:12px;font-weight:700}#voice-person,#voice-choice{width:100%}.voice-profile{color:var(--green);margin:12px 0;font-size:12px!important}.voice-setting-actions{display:flex;gap:8px;margin:16px 0}.voice-setting-actions .btn{flex:1;padding:10px;font-size:12px}.voice-full-screen{width:100%}.voice-availability{background:var(--green-soft);border-radius:12px;padding:12px}.voice-settings-body h3{margin:16px 0 8px}
@media(max-width:760px){#voice-dock{min-height:56px;padding:5px 10px;gap:6px}#home>#voice-dock{max-width:none;margin:3px 0 8px}#voice-dock .voice-status strong{font-size:11px}#voice-dock .voice-status span{font-size:10px}.voice-settings-body{padding:6px 18px 20px}.voice-settings-top{padding:10px 16px}.voice-settings-body p{font-size:13px}.voice-check{font-size:12px}}

@media(max-height:540px) and (orientation:landscape){.world>#voice-dock{border-top:1px solid var(--line);border-bottom:0;min-height:56px;padding:5px 10px}}
