@charset "UTF-8";
:root{--ink:#253d36;--green:#224d41;--deep:#19382f;--muted:#627169;--paper:#f6f3e9;--line:#d5d6c5;--gold:#e9bf65;--cream:#fffcf3;--shadow:0 4px 0 #1b2d2420;font-family:"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button{border:0;background:none}button:disabled{cursor:not-allowed;opacity:.48}button:not(:disabled),a,summary{transition:background-color .15s,color .15s,box-shadow .15s}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,[tabindex="0"]:focus-visible{outline:3px solid #b57f22;outline-offset:3px}main:focus{outline:none}svg{flex-shrink:0;vertical-align:middle}h1,h2,h3,p{margin-top:0}p{line-height:1.65}h1,h2,h3{line-height:1.18}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:400}button,a{text-decoration:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;left:12px;top:-100px;background:var(--cream);padding:14px;z-index:200}.skip-link:focus{top:12px}.full{width:100%}
.site-header{border-bottom:1px solid var(--line);background:#fbf8ef}.header-inner{max-width:1320px;min-height:86px;margin:auto;padding:12px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;text-align:left;gap:14px;padding:0}.brand-mark{background:var(--green);color:#fff9dc;display:flex;flex-direction:column;justify-content:center;font-weight:900;font-size:24px;letter-spacing:1px;line-height:.9;padding:8px 7px;box-shadow:3px 3px 0 #cbd2b9}.brand-mark span{color:var(--gold)}.brand-name{font-size:10px;font-weight:700;letter-spacing:1.3px}.brand-name>span{display:block;letter-spacing:0;font-size:12px;font-weight:400;margin-top:8px;color:var(--muted)}nav{display:flex;align-items:center;gap:12px}.nav-item{display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 12px;min-height:44px;font-size:14px}.nav-item:hover{background:#e9eddf}.progress-nav{border-left:1px solid var(--line);padding-left:22px}.progress-dots{display:flex;gap:3px}.progress-dots i{width:6px;height:17px;background:#d8deca}.progress-dots i.filled{background:#58745e}.site-footer{max-width:1264px;margin:38px auto 0;padding:22px 0 30px;border-top:1px solid var(--line);display:flex;gap:15px;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted)}.site-footer>span:first-child{order:2}.site-footer button{display:flex;align-items:center;gap:7px;padding:8px;min-height:44px}.sep{padding:0 6px}.storage-notice{margin:12px auto;padding:16px;max-width:1264px;background:#fff0c3;line-height:1.5}
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:14px 19px;min-height:49px;font-weight:600;font-size:15px;border:1px solid var(--green);border-radius:3px}.primary{background:var(--green);color:#fffdf0;box-shadow:0 3px 0 #102e27}.primary:hover:not(:disabled){background:#306454}.primary:active:not(:disabled){transform:translateY(1px);box-shadow:0 2px 0 #102e27}.secondary{background:#fffdf5}.secondary:hover{background:#e8edde}.text-button,.back-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 0;font-size:14px}.text-button:hover,.back-link:hover{color:#956315}.eyebrow,.small-label{display:block;letter-spacing:1.6px;font-family:"Courier New",monospace;font-size:11px;font-weight:700;line-height:1.5}.eyebrow{color:var(--green)}.live-dot{display:inline-block;width:7px;height:7px;background:#c8d49f;box-shadow:0 0 0 3px #ffffff16;margin-right:8px}
.home-main{max-width:1264px;margin:auto;padding:34px 0 0}.welcome{display:grid;grid-template-columns:.88fr 1.12fr;min-height:400px;background:var(--deep);color:#fff8e4;border:1px solid #132c24;box-shadow:var(--shadow)}.welcome-copy{padding:46px 40px}.welcome .eyebrow{color:#d6dcbc;margin-bottom:24px}.welcome h1{font-size:clamp(36px,3.8vw,56px);line-height:1.08;letter-spacing:-1.5px;margin:0 0 20px}.welcome h1 em{color:var(--gold);font-style:normal}.welcome p{color:#d7dfce;font-size:17px;margin-bottom:24px}.welcome .primary{background:var(--gold);color:#22382c;border-color:var(--gold);box-shadow:0 3px 0 #aa813b}.welcome .primary:hover{background:#f6d791}.hero-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:#d1d9c8;margin-top:18px}.hero-scene{position:relative;overflow:hidden;display:flex;flex-direction:column}.room-art{width:100%;height:100%;min-height:340px;object-fit:cover;image-rendering:pixelated;display:block}.scene-label{position:absolute;top:17px;left:17px;right:17px;background:#203c33e8;box-shadow:3px 3px 0 #102b2355;padding:10px 12px;display:flex;align-items:center;gap:4px;font-family:monospace;letter-spacing:1px;font-size:11px;z-index:1}.scene-label>span:last-child{margin-left:auto;color:#eac26e}.scene-caption{position:absolute;bottom:15px;right:15px;background:#f5efdb;box-shadow:3px 3px 0 #22392a66;color:var(--ink);padding:10px 14px;font-size:12px;display:flex;gap:24px;align-items:center}.tiny-cross{margin-right:8px;color:var(--gold)}
.patient-section{padding-top:38px}.section-title{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:19px}.section-title h2{font-size:30px;margin:7px 0 0}.saved-note{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}.filters{display:flex;gap:7px;margin:0 0 20px;flex-wrap:wrap}.filter{padding:10px 15px;min-height:44px;border:1px solid var(--line);font-size:13px;background:#fffdf5}.filter[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:#fff9e5}.filter:hover:not([aria-pressed="true"]){background:#e8edde}.patient-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.patient-card{padding:20px 22px 0;background:#fffdf6;border:1px solid var(--line);box-shadow:var(--shadow)}.card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.level{display:inline-flex;align-items:center;gap:6px;background:#e8ecdc;color:#3f5944;font-size:11px;padding:5px 8px;font-weight:600}.case-number{color:var(--muted);font-family:monospace;letter-spacing:1px;font-size:10px}.level-bars{display:none}.patient-identity{display:flex;align-items:center;gap:12px;min-height:87px}.patient-identity h3{font-family:Georgia,serif;font-weight:400;font-size:23px;margin-bottom:6px}.patient-identity h3 span{font-family:"Segoe UI",sans-serif;font-size:13px;color:var(--muted);white-space:nowrap}.patient-detail{font-size:12px;line-height:1.5;color:var(--muted)}.portrait-tile{background:#e8dbc3;padding:0 3px}.peach .portrait-tile{background:#efdbca}.lavender .portrait-tile{background:#e3deed}.sage .portrait-tile{background:#dce4d4}.portrait{display:inline-block;flex:0 0 auto;width:66px;height:76px;background-image:url('./assets/patients.png');background-size:300% auto;background-repeat:no-repeat;background-position:0% 40%;image-rendering:pixelated}.portrait-samira{background-position:50% 40%}.portrait-bosse{background-position:100% 40%}.card-quote{font-size:15px;line-height:1.6;min-height:50px;margin:14px 0 18px}.card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);margin:0 0 15px}.card-meta span{display:flex;align-items:center;gap:5px}.card-button{display:flex;justify-content:space-between;align-items:center;width:calc(100% + 44px);margin-left:-22px;padding:16px 22px;border-top:1px solid var(--line);font-size:14px;font-weight:600;min-height:52px}.card-button:hover{background:#e9eddf}.empty-state{grid-column:1/-1;padding:35px;border:1px dashed var(--line);text-align:center}.how-strip{display:flex;align-items:center;gap:20px;padding:22px 26px;margin-top:28px;background:#e9eddf;border:1px solid #d4dcc6}.how-strip strong{font-family:Georgia,serif;font-size:19px;font-weight:400}.how-strip p{margin:4px 0 0;font-size:13px}.how-icon{color:var(--green)}.how-strip>.text-button{margin-left:auto;white-space:nowrap}.home-bottom{display:flex;justify-content:center;gap:32px;margin-top:26px;font-size:12px;color:var(--muted)}.home-bottom span{display:flex;align-items:center;gap:7px}
.game-main{max-width:1320px;margin:auto;padding:14px 28px 0}.visit-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.save-label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}.clinic-shell{border:1px solid #304c40;box-shadow:4px 4px 0 #cfcebd}.clinic-status{background:#213e33;color:#ece6cc;padding:12px 17px;font-family:"Courier New",monospace;font-size:12px;letter-spacing:1px;display:flex;align-items:center;justify-content:space-between;gap:12px}.clinic-status>span{display:flex;align-items:center;gap:8px}.status-divider{color:#a1ab8f;margin:0 6px}.visit-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(340px,1fr);align-items:stretch}.scene-column{min-width:0;background:#e6e6d8;border-right:1px solid #8a9b84}.clinic-stage{position:relative;aspect-ratio:3/2;width:100%;overflow:hidden;background:#52624c;isolation:isolate}.scene-fallback,.clinic-canvas{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated}.scene-fallback{object-fit:contain}.clinic-canvas canvas{display:block;image-rendering:pixelated}.scene-ready .scene-fallback{visibility:hidden}.object-hotspot{position:absolute;top:73%;height:23%;border:2px solid transparent;display:flex;align-items:end;justify-content:center;padding:0 0 2%;min-height:44px;z-index:3;border-radius:3px}.object-journal{left:1%;width:30%}.object-meds{left:33%;width:21%}.object-book{left:57%;width:31%}.object-hotspot>span,.scene-patient>span{display:flex;align-items:center;justify-content:center;white-space:nowrap;gap:5px;font-size:12px;font-weight:600;letter-spacing:.1px;padding:9px 10px;background:#fff9e7;color:#263e32;border:1px solid #635f3d;box-shadow:2px 2px 0 #17291c99;min-height:37px}.object-hotspot i{font-style:normal;color:#275839}.object-hotspot:hover,.object-hotspot:focus-visible{border-color:#f4ce6a;background:#f5d98621}.object-hotspot.is-read>span{background:#e2ebcc}.scene-patient{position:absolute;left:38%;top:19%;width:24%;height:50%;min-width:44px;z-index:2;display:flex;justify-content:center;align-items:start;padding-top:3%;border:2px solid transparent}.scene-patient>span{transform:translateY(-55%);font-size:11px;background:#fff8df}.scene-patient:hover,.scene-patient:focus-visible{border-color:#f4ce6a;background:#f5d9860a}.coffee-hotspot{position:absolute;left:88%;top:67%;width:12%;height:19%;min-width:44px;min-height:44px;z-index:3;border:2px solid transparent}.coffee-hotspot:hover,.coffee-hotspot:focus-visible{border-color:#f4ce6a}.desk-instruction{display:flex;gap:8px;align-items:center;padding:12px 17px;font-size:12px;background:#d7ddc8;border-top:1px solid #b9c0a5;border-bottom:1px solid #bdc5ae;color:#3f5645}.evidence-tray{padding:17px 20px}.tray-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-family:monospace;font-size:12px;color:#506345}.evidence-checks{display:flex;gap:8px;flex-wrap:wrap}.evidence-checks button{padding:9px 12px;min-height:44px;display:flex;align-items:center;gap:7px;background:#f4f1e5;border:1px solid #b8c1a5;color:#5d6655;font-size:12px}.evidence-checks .done{background:#d2dfbf;color:#2a5038;border-color:#8ea47f}.notebook{margin-top:14px;border-top:1px solid #bbc4ab;padding-top:9px;font-size:13px}.notebook summary{display:flex;align-items:center;gap:7px;cursor:pointer;min-height:44px}.notebook summary>span{margin-left:auto}.notebook ul{padding-left:20px;line-height:1.6;margin-bottom:0}
.conversation{display:flex;flex-direction:column;background:#faf7ed;min-width:0;min-height:640px;scroll-margin-top:15px}.conversation-header{display:flex;align-items:center;gap:10px;padding:15px 19px;border-bottom:1px solid #d5d3c0;background:#f4efdf}.conversation-header .portrait{width:44px;height:51px}.conversation-header h1{font-size:25px;margin-bottom:4px}.conversation-header h1 span{font-family:"Segoe UI",sans-serif;font-size:13px;color:var(--muted)}.conversation-header p{font-size:11px;color:var(--muted);margin:0}.conversation-tag{font-family:monospace;font-size:10px;letter-spacing:1px;margin-left:auto;align-self:start;padding-top:3px;color:var(--muted)}.dialogue-history{height:260px;min-height:180px;flex:1 1 260px;overflow:auto;padding:18px 20px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#aeb7a3 transparent;background:repeating-linear-gradient(to bottom,transparent 0,transparent 29px,#b6bca817 29px,#b6bca817 30px)}.dialogue-date{text-align:center;font-size:10px;letter-spacing:1.5px;color:#7b8374;font-family:monospace;margin:0 0 18px}.bubble{padding:13px 15px;border:1px solid #c7c7b3;margin-bottom:14px;max-width:94%;border-radius:2px;position:relative}.bubble>span{font-size:11px;letter-spacing:.2px;font-weight:700;color:#667157;display:block;margin-bottom:5px}.bubble p{font-size:16px;line-height:1.6;margin:0}.bubble.patient{background:#efecdf;border-left:3px solid #859875;margin-right:auto}.bubble.player{margin-left:auto;background:#e3eadb;border-color:#bcc9ad}.bubble.player>span{color:#43644c}.bubble small{display:flex;align-items:center;gap:5px;font-size:11px;margin-top:10px;padding-top:7px;border-top:1px dashed #bec4ac;color:#576748}.dialogue-controls{padding:13px 19px 18px;border-top:1px solid #d0d2be;background:#f8f5ea}.control-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:5px}.control-heading>span{font-family:monospace;font-size:10px;letter-spacing:1px;color:#6a765e}.control-heading .text-button{font-size:12px}.dialogue-options{display:flex;flex-direction:column;gap:8px}.dialogue-choice{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;padding:13px 14px;border:1px solid #a4b19a;background:#fdfbef;min-height:49px;line-height:1.5;font-size:15px;box-shadow:0 2px 0 #cbd1bc}.dialogue-choice svg{color:#738769}.dialogue-choice:hover{background:#e5ecd9;border-color:#5c7d50}.next-step{margin-top:15px}.next-step p{font-size:12px;color:#66765a;margin:0 0 8px}.next-step .primary{font-size:14px}.decision-content{padding:23px 22px;flex:1}.decision-content .eyebrow{font-size:10px;margin-bottom:10px}.decision-content h2{font-size:25px;line-height:1.22;margin:0 0 12px}.decision-intro{font-size:13px;color:var(--muted);margin:0 0 20px}.choices{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}.choice{display:flex;position:relative;align-items:center;gap:12px;cursor:pointer;padding:14px 12px;border:1px solid #adb99d;background:#fffdf4;min-height:58px;font-size:15px;line-height:1.55}.choice:hover{background:#e9efde}.choice.chosen{border-color:#365f3e;background:#dfead3;box-shadow:inset 3px 0 #365f3e}.choice input{position:absolute;opacity:0;left:5px}.choice:has(input:focus-visible){outline:3px solid #ba862c;outline-offset:3px}.choice-letter{display:none}.radio-visual{width:16px;height:16px;flex:0 0 16px;border:1px solid #9aad8c;border-radius:50%;margin-left:auto}.chosen .radio-visual{border:4px solid #42623e;background:#edf5e4}.decision-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px}.decision-tools .text-button{font-size:12px}.hint-box{display:flex;gap:10px;padding:13px;background:#eee3bd;margin-top:13px;font-size:13px}.hint-box strong{display:block;margin-bottom:4px}.hint-box p{margin:0}.visit-actions{padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #d1d3c0;background:#f0efdf}.visit-actions .primary{font-size:14px;padding:12px 14px}.visit-actions .back-link{font-size:12px}
.modal{border:1px solid #536a50;border-radius:3px;padding:0;max-width:650px;width:calc(100% - 32px);max-height:calc(100dvh - 40px);overflow:auto;color:var(--ink);background:#fffdf4;box-shadow:6px 6px 0 #12271f66}.modal::backdrop{background:#102b24b0;backdrop-filter:blur(2px)}.modal-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 25px;background:#f0eedf;border-bottom:1px solid var(--line)}.modal-header h2{font-size:27px;margin:0}.icon-button{width:44px;height:44px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border:1px solid #b9c1aa;background:#fbf9ef}.icon-button:hover{background:#dee6d1}.modal-body{padding:24px 27px 28px}.modal-body h3{font-size:18px;margin:24px 0 9px}.modal-body p{font-size:15px}.modal-intro{color:var(--muted);margin-bottom:20px}.search-label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}input[type="search"]{width:100%;min-height:48px;padding:12px;border:1px solid #a9b59b;background:#fffef8;border-radius:2px;font-size:16px}.book-entry{border-bottom:1px solid var(--line);padding:25px 0}.book-entry h3{font-family:Georgia,serif;font-size:23px;margin:6px 0 10px}.book-entry p{margin-bottom:10px}.book-entry a,.source-details a{font-size:13px;text-decoration:underline;text-underline-offset:3px;line-height:1.5}.source-note{font-size:12px!important;color:var(--muted);line-height:1.6;margin:19px 0 0}.paper-modal{border:5px solid #b0945b;background:#fbf3db;box-shadow:3px 3px 0 #4f4529,8px 8px 0 #16271c66}.paper-modal .modal-header{background:#ede3c3;border-bottom:1px solid #c8bc96}.paper-heading{border-bottom:2px solid #b7af8c;padding-bottom:18px;margin-bottom:20px}.paper-heading h3{font-family:Georgia,serif;font-size:26px;margin:0 0 6px}.paper-heading p{margin-bottom:0;font-size:13px}.paper-stamp{float:right;font-family:monospace;color:#6e7757;letter-spacing:1px;border:1px solid #9b9f7e;padding:7px 8px;font-size:11px}.journal-data{margin:0}.journal-data>div{padding:13px 0;border-bottom:1px dashed #cec5a3}.journal-data dt{font-family:monospace;letter-spacing:.7px;text-transform:uppercase;color:#73765b;font-size:11px;margin-bottom:7px}.journal-data dd{margin:0;font-size:16px;line-height:1.65}.document-foot{color:#777b63;font-size:11px!important;margin:20px 0}.medication{display:flex;gap:14px;padding:20px 0;border-bottom:1px dashed #b9bea4}.medication>svg{margin-top:4px;color:#667a56}.medication h3{margin:0 0 6px;font-size:21px}.medication p{margin:3px 0}.medication .med-type{font-size:12px;color:var(--muted)}.medications{margin-bottom:24px}.how-steps{padding-left:23px}.how-steps li{padding:5px 0 10px 8px}.how-steps strong{font-size:17px}.how-steps p{margin:7px 0}.progress-list>div{display:flex;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}.progress-list p{margin:5px 0 0;font-size:13px}.hint-text{font-size:18px!important;font-family:Georgia,serif;line-height:1.7}
.result-main{max-width:820px;margin:22px auto 0;padding:0 20px}.result-card{border:1px solid #adb89d;margin-top:15px;background:#fffdf5;box-shadow:var(--shadow)}.result-banner{padding:30px;display:flex;align-items:center;gap:25px;background:#e0e8d0;border-bottom:1px solid #b1c09e}.result-banner .portrait{width:90px;height:100px;background-position-y:35%}.result-banner h1{font-size:36px;margin:8px 0 14px}.result-status{font-size:13px;display:flex;align-items:center;gap:7px}.result-body{padding:30px}.takeaway{padding:22px 25px;background:#f1e7c8;border-left:4px solid #b79c55;margin-bottom:28px}.takeaway p{font-family:Georgia,serif;font-size:24px;line-height:1.4;margin:9px 0 0}.feedback{margin:25px 0 30px}.feedback-label{display:flex;align-items:center;gap:10px}.feedback-label h2{font-size:23px;margin:0}.feedback-label.good{color:#3e663c}.feedback-label.revisit{color:#8b6329}.your-choice{color:var(--muted);font-size:13px;margin-top:12px}.feedback p{font-size:15px;line-height:1.7}.better-answer{padding:18px;background:#e9eddf;border-left:3px solid #93a87e}.better-answer p:last-child{margin-bottom:0}.patient-closing{display:flex;gap:16px;padding:23px 0;border-block:1px solid var(--line);align-items:center}.patient-closing p{font-family:Georgia,serif;font-size:19px;line-height:1.5;margin:7px 0}.source-details{margin-top:20px}.source-details summary{min-height:44px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-size:14px}.source-details p{font-size:14px}.result-actions{display:flex;justify-content:space-between;gap:12px;margin-top:28px;flex-wrap:wrap}
@media(min-width:1400px){.conversation{min-height:690px}.dialogue-history{flex-basis:300px}}
@media(max-width:1320px){.home-main{padding:28px 28px 0}.site-footer{margin-left:28px;margin-right:28px}.welcome-copy{padding:35px 30px}.patient-identity h3{font-size:21px}.patient-card{padding-left:18px;padding-right:18px}.card-button{width:calc(100% + 36px);margin-left:-18px;padding-inline:18px}}
@media(max-width:1000px){.visit-layout{grid-template-columns:minmax(0,1.3fr) minmax(330px,1fr)}.conversation-tag{display:none}.patient-grid{gap:12px}.patient-identity{gap:8px}.patient-identity h3 span{display:block;margin-top:5px}.patient-card .portrait{width:54px;height:67px}.card-meta{flex-wrap:wrap}.hero-scene .room-art{object-position:43%}.object-hotspot>span{font-size:11px;padding:7px 5px}.object-hotspot svg{display:none}.evidence-tray{padding:13px}.desk-instruction{font-size:11px}.welcome h1{font-size:42px}.home-bottom{gap:20px}}
@media(max-width:760px){.header-inner{padding:10px 18px;min-height:76px}.brand-name{font-size:9px;letter-spacing:1px}.brand-name>span{font-size:11px}.nav-item{padding:8px;gap:5px}.nav-item>span:not(.progress-dots){display:none}.progress-nav>span:last-child{display:inline}.progress-nav{padding-left:12px}.header-inner nav{gap:4px}.brand{gap:10px}.brand-mark{font-size:21px}.home-main{padding:20px 18px 0}.welcome{grid-template-columns:1fr}.welcome-copy{padding:30px}.welcome h1{font-size:43px}.welcome-copy .eyebrow{margin-bottom:18px}.welcome p{font-size:16px}.hero-scene{max-height:240px}.room-art{min-height:0;aspect-ratio:3/2;object-fit:cover;object-position:center 70%}.scene-label{display:none}.scene-caption{bottom:10px;right:10px;font-size:11px}.patient-grid{grid-template-columns:1fr}.patient-section{padding-top:28px}.section-title h2{font-size:28px}.saved-note{font-size:11px}.patient-card{padding:17px 20px 0}.patient-identity h3{font-size:25px}.patient-identity h3 span{display:inline;font-size:14px}.patient-card .portrait{width:66px;height:76px}.patient-identity{gap:15px;min-height:74px}.card-quote{min-height:0;margin-top:12px;margin-bottom:15px}.card-button{margin-left:-20px;width:calc(100% + 40px);padding:15px 20px}.card-meta{font-size:12px}.card-top{margin-bottom:7px}.how-strip{padding:20px;gap:12px;flex-wrap:wrap}.how-strip>div{flex:1}.how-strip .text-button{margin-left:38px}.home-bottom{gap:10px;flex-direction:column;align-items:center}.site-footer{margin:28px 18px 0;flex-wrap:wrap;justify-content:center;text-align:center;gap:0}.site-footer>span{flex-basis:100%;font-size:11px}.site-footer>span:first-child{order:0;margin-bottom:6px}.game-main{padding:6px 12px 0}.visit-top{margin-bottom:4px}.save-label{font-size:11px}.visit-layout{grid-template-columns:1fr}.clinic-status{font-size:10px;padding:11px;letter-spacing:.7px;gap:5px}.clinic-status>span{gap:3px}.status-divider{margin:0 3px}.clinic-status svg{display:none}.scene-column{border-right:0}.clinic-stage{aspect-ratio:3/2}.object-hotspot>span{min-height:44px;font-size:12px;padding:8px 9px}.scene-patient>span{min-height:36px;font-size:11px}.desk-instruction{padding:9px 12px;font-size:11px}.evidence-tray{padding:9px 12px 11px}.tray-heading{display:none}.evidence-checks{gap:6px}.evidence-checks button{min-height:38px;padding:7px 10px;font-size:11px;flex:1;justify-content:center}.notebook{margin-top:8px;padding-top:1px;font-size:12px}.notebook summary{min-height:38px}.notebook ul{margin-top:6px}.conversation{min-height:0;border-top:2px solid #49664c;scroll-margin-top:8px}.conversation-header{padding:12px 16px}.conversation-header h1{font-size:25px}.conversation-header p{font-size:12px}.conversation-tag{display:block}.dialogue-history{flex:0 1 auto;height:auto;max-height:340px;min-height:130px;padding:15px 16px;overscroll-behavior:auto}.bubble p{font-size:16px}.dialogue-date{margin-bottom:14px}.bubble{padding:12px 13px}.dialogue-controls{padding:10px 16px 18px}.dialogue-choice{font-size:15px;min-height:50px}.control-heading>span{font-size:10px}.decision-content{padding:23px 18px}.decision-content h2{font-size:27px}.choice{font-size:16px;padding:14px 12px}.visit-actions{padding:18px}.visit-actions .primary{font-size:14px}.scene-patient{top:18%}.modal{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}.modal-header{padding:14px 17px}.modal-header h2{font-size:25px}.modal-body{padding:20px}.modal-body p{font-size:16px}.paper-heading h3{font-size:25px}.paper-stamp{font-size:10px;padding:6px}.result-main{padding:0 14px}.result-banner{padding:22px 18px;gap:15px}.result-banner .portrait{width:66px;height:82px}.result-banner h1{font-size:29px}.result-banner .eyebrow{font-size:10px}.result-body{padding:22px 18px}.takeaway{padding:18px}.takeaway p{font-size:23px}.patient-closing{gap:12px}.patient-closing .portrait{width:53px;height:68px}.patient-closing p{font-size:18px}.result-actions>*{flex:1;min-width:140px}.feedback p{font-size:16px}}
@media(max-width:380px){.brand-name{display:none}.header-inner{padding:10px 14px}.game-main{padding-inline:8px}.clinic-status{font-size:9px;letter-spacing:0}.object-hotspot>span{padding:7px 6px;font-size:11px}.object-journal{left:0;width:31%}.object-meds{left:31%;width:26%}.object-book{left:57%;width:32%}.conversation-header{gap:8px}.conversation-tag{display:none}.visit-actions{padding:15px 12px}.visit-actions .primary{gap:8px;font-size:13px}.section-title{gap:10px}.section-title h2{font-size:25px}.saved-note{max-width:80px}.welcome-copy{padding:27px 23px}.welcome h1{font-size:39px}.scene-caption{left:10px;font-size:10px;justify-content:space-between}.conversation-header h1{font-size:24px}.decision-tools{gap:6px}.decision-tools .text-button{font-size:11px}}
.scene-patient>span{position:absolute;left:100%;top:28%;transform:translate(-5%,0)}
/* The room is the application: quiet chrome, direct interaction, no tutorial strips. */
[hidden]{display:none!important}
.header-inner{min-height:62px;padding-block:8px}
.brand-mark{font-size:18px;padding:6px;box-shadow:2px 2px 0 #cbd2b9}
.brand-name{font-family:Georgia,serif;font-size:18px;letter-spacing:0;font-weight:400}
.nav-item{min-width:44px}
.game-main{padding-top:18px;padding-bottom:28px}
.clinic-shell{border:0;box-shadow:none}
.visit-layout{grid-template-columns:minmax(0,1.65fr) minmax(350px,1fr);align-items:stretch;gap:18px}
.scene-column{border:0;background:none;min-width:0}
.clinic-stage{border:1px solid #556347;box-shadow:0 3px 0 #243a2a24}
.conversation{height:0;min-height:100%;border:1px solid #c5cbb7;box-shadow:0 3px 0 #243a2a14;overflow:hidden}
.conversation-header{padding:13px 17px}
.conversation-header .portrait{width:36px;height:42px}
.conversation-header h1{font-size:24px}
.conversation-header p{font-size:12px}
.dialogue-history{height:auto;min-height:90px;flex:1 1 100px;padding:18px}
.bubble{padding:11px 14px;margin-bottom:12px}
.bubble p{font-size:16px;line-height:1.55}
.bubble>span.sr-only{margin:0}
.dialogue-controls{padding:13px 17px 16px}
.dialogue-choice{box-shadow:none;padding:11px 13px;min-height:46px}
.conversation-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}
.conversation-actions .primary{padding:11px 18px;min-height:44px;font-size:14px}
.hint-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;border-radius:50%;color:#53694a}
.hint-button:hover{background:#e3e8d8}
.decision-content{overflow:auto;min-height:0;flex:1;padding:20px 18px}
.decision-content h2{font-size:25px;margin-bottom:20px}
.choices{gap:9px}
.choice{min-height:55px;padding:12px;font-size:15px;line-height:1.5}
.decision-tools{margin-top:9px}
.visit-actions{flex-shrink:0;padding:13px 17px;background:#f5f2e5}
.review-content{overflow:auto;min-height:0;flex:1;padding:23px 20px}
.review-content>h2{font-size:28px;margin-bottom:15px}
.review-takeaway{font-size:17px;font-family:Georgia,serif;line-height:1.5;margin:0 0 25px}
.review-content .feedback{margin:0 0 24px}
.feedback h3{font-family:inherit;font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px;margin:0 0 10px}
.review-content .feedback p{font-size:14px}
.review-content .your-choice{margin:0 0 10px;font-size:13px;color:#5e6c58}
.review-content .better-answer{padding:12px 14px;font-size:14px}
.better-answer summary{min-height:28px;cursor:pointer}
.review-content .source-details{font-size:13px}
.review-content .bubble{max-width:100%}
.desk-home{max-width:1320px}
.desk-home .clinic-stage{width:min(100%,calc((100svh - 110px) * 1.5));margin-inline:auto}
.lobby-stage .object-journal>span{background:#eed18a;border-color:#907547;color:#293d2a}
.scene-resume{position:absolute;left:50%;top:58%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:12px 16px;background:#fff6da;border:1px solid #635f3d;box-shadow:2px 2px 0 #17291c66;font-size:14px;z-index:3;white-space:nowrap}
.scene-resume:hover{background:#f4dfaa}
.patient-section{max-width:1126px;margin:0 auto;padding-top:26px;scroll-margin-top:20px}
.section-title{align-items:center;margin-bottom:18px}
.section-title h2{margin:0;font-size:29px}
.section-title h2:focus{outline:none}
.section-title .icon-button{border:0;background:none}
.patient-grid{gap:16px;padding-bottom:20px}
.patient-card{display:block;width:100%;text-align:left;padding:19px 22px;background:#fffdf6;border:1px solid #bac5ab;box-shadow:0 3px 0 #bbc6ab55;border-radius:3px;transition:background-color .15s,border-color .15s,transform .15s}
.patient-card:hover{background:#edf1e3;border-color:#466444;transform:translateY(-2px);box-shadow:0 5px 0 #bbc6ab55}
.patient-card:active{transform:translateY(1px);box-shadow:none}
.patient-card:focus-visible{outline:3px solid #b57f22;outline-offset:4px}
.patient-card .card-top{margin-bottom:14px}
.patient-card .card-top>svg{color:#57764c}
.patient-name{display:block;font-family:Georgia,serif;font-size:24px;line-height:1.2;margin-bottom:6px}
.patient-name>span{font-family:"Segoe UI",sans-serif;font-size:13px;color:var(--muted);white-space:nowrap}
.patient-card .patient-detail{display:block}
.patient-card .card-quote{display:block;min-height:52px}
.patient-card .card-meta{margin-bottom:0}
.paper-heading{padding-bottom:16px;margin-bottom:10px}
.modal-body .paper-heading h3{margin:0;font-size:24px}
.medications{margin-top:0}
.medication:first-child{padding-top:0}
@media(max-width:1100px){
 .visit-layout{grid-template-columns:1fr;gap:16px;max-width:760px;margin:auto}
 .conversation{height:auto;min-height:0}
 .dialogue-history{flex:auto;max-height:340px;min-height:130px}
 .decision-content,.review-content{overflow:visible}
 .patient-name{font-size:22px}
 .patient-name>span{display:block;margin-top:3px}
}
@media(max-width:760px){
 .header-inner{min-height:58px;padding:8px 14px}
 .brand-name{display:block;font-size:17px}
 .brand-mark{font-size:18px}
 .game-main{padding:12px 12px 24px}
 .desk-home .clinic-stage{width:100%}
 .desk-home:not(:has(#patient-list:not([hidden]))){padding-top:clamp(12px,12svh,110px)}
 .patient-section{padding-top:23px;scroll-margin-top:12px}
 .patient-grid{gap:13px}
 .patient-card{padding:18px 20px}
 .patient-name{font-size:24px}
 .patient-name>span{display:inline;margin:0;font-size:14px}
 .patient-card .card-quote{min-height:0}
 .conversation{border-top:1px solid #c5cbb7}
 .conversation-header{padding:13px 16px}
 .dialogue-history{padding:16px;max-height:340px}
 .dialogue-controls{padding:12px 16px 16px}
 .dialogue-choice{font-size:16px;min-height:50px}
 .decision-content,.review-content{padding:23px 18px}
 .choice{font-size:16px;min-height:58px}
 .decision-content h2{font-size:27px}
 .review-content .feedback p{font-size:16px}
 .visit-actions{padding:16px}
 .object-hotspot>span{min-height:44px}
 .scene-resume{font-size:12px;padding:10px 12px}
}
@media(max-width:380px){
 .game-main{padding-inline:8px}
 .brand-name{display:block;font-size:16px}
 .object-hotspot>span{font-size:11px;padding:7px 6px}
 .patient-name{font-size:23px}
 .patient-name>span{font-size:12px}
 .visit-actions .primary{font-size:13px;padding:11px 13px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* One self-contained game surface: all controls and paper panels live in the room. */
html,body{min-height:100%;background:#23372f}
body{margin:0}
#app{min-height:100dvh;display:grid;place-items:center;padding:10px}
.game-main,.desk-home,.desk-home:not(:has(#patient-list:not([hidden]))){padding:0;max-width:none;width:min(1320px,calc((100dvh - 20px)*1.5));margin:0}
.clinic-shell,.visit-layout,.scene-column{display:contents}
.clinic-stage,.desk-home .clinic-stage{width:100%;height:auto;aspect-ratio:3/2;margin:0;border:2px solid #9e8251;box-shadow:0 8px 36px #0006;isolation:isolate}
.clinic-stage .site-header{position:absolute;inset:0 0 auto;z-index:6;background:#203b32ee;border-bottom:1px solid #e4cf9555;color:#f7eed6}
.header-inner{min-height:44px;height:44px;padding:0 14px;max-width:none}
.brand{gap:9px;color:inherit}.brand-mark{font-size:14px;padding:3px 5px;box-shadow:none;border:0}.brand-name{font-size:16px;color:inherit}
.header-inner .nav-item{color:#f7eed6;min-height:44px}.header-inner nav{gap:4px}
.clinic-stage .conversation{position:absolute;z-index:5;top:8%;right:2%;bottom:26%;width:35%;height:auto;min-height:0;margin:0;border:2px solid #a59162;box-shadow:4px 5px 0 #19271a66;background:#faf5e5;overflow:hidden}
.conversation-header{flex-shrink:0;padding:10px 14px;background:#eee5cc}.conversation-header h1{font-size:23px}.conversation-header .portrait{display:none}
.conversation-header p{font-size:11px}
.dialogue-history{flex:1 1 90px;min-height:65px;max-height:none;padding:13px;overscroll-behavior:contain}
.dialogue-controls{padding:10px 12px;flex-shrink:0}.dialogue-choice{font-size:15px;padding:8px 11px;min-height:44px}.dialogue-options{gap:6px}.conversation-actions{margin-top:8px}
.decision-content,.review-content{overflow:auto;min-height:0;padding:16px;overscroll-behavior:contain}
.decision-content h2{font-size:23px;margin-bottom:15px}.choice{font-size:15px;min-height:50px}
.visit-actions{padding:10px 12px}.visit-actions .primary{padding:10px 12px}
.scene-patient{left:38%;width:24%;top:24%;height:44%;align-items:center;justify-content:start;padding:0}
.scene-patient>span{transform:none;position:absolute;left:-35%;top:20%}
.clinic-stage .patient-section{position:absolute;z-index:8;inset:10% 4% 7%;max-width:none;margin:0;padding:25px;overflow:auto;background:#f5efdb;border:3px solid #9e8251;box-shadow:6px 6px 0 #19271a66;overscroll-behavior:contain}
.patient-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding:0;gap:13px}
.patient-card{padding:18px}.patient-name{font-size:23px}.patient-name>span{display:block;margin-top:4px}
.patient-section .section-title{margin-bottom:16px}.patient-section .filters{margin-bottom:20px}
.clinic-stage:has(dialog[open])::after,.choosing-patient::after{content:'';position:absolute;inset:44px 0 0;background:#16271d55;z-index:7;pointer-events:none}
#overlay{position:relative;z-index:12}
.modal{position:fixed;margin:0!important;right:auto;bottom:auto;border:3px solid #9e8251;border-radius:2px;box-shadow:7px 7px 0 #19271a77;background:#faf5e5}
.modal::backdrop{background:transparent}
.storage-notice{position:absolute;bottom:0;left:0;right:0;z-index:15;margin:0}
@media(max-width:1050px) and (min-width:761px){
 .game-main,.desk-home{width:100%}.clinic-stage,.desk-home .clinic-stage{aspect-ratio:auto;height:calc(100dvh - 20px);min-height:570px}
 .clinic-stage .conversation{width:39%;top:55px;bottom:24%}.dialogue-choice{font-size:14px}
 .patient-grid{grid-template-columns:1fr}.patient-section .patient-card{padding:15px}.patient-card .card-quote{min-height:0}
}
@media(max-width:760px){
 #app{padding:0;min-height:100dvh;display:block}
 .game-main,.desk-home,.desk-home:not(:has(#patient-list:not([hidden]))){width:100%;padding:0}
 .clinic-stage,.desk-home .clinic-stage{--room-height:min(34dvh,66.667vw);height:100dvh;min-height:560px;width:100%;aspect-ratio:auto;border:0;background:#253c30 url('./assets/clinic.png') center/cover;box-shadow:none}
 .clinic-canvas,.scene-fallback{top:44px;bottom:auto;height:var(--room-height);width:100%}
 .lobby-stage .clinic-canvas,.lobby-stage .scene-fallback{top:44px;height:calc(100% - 44px)}
 .lobby-stage{background:#253c30}
 .clinic-stage .conversation{top:calc(44px + var(--room-height));right:0;bottom:0;width:100%;border:0;border-top:3px solid #9e8251;box-shadow:none}
 .conversation-header{padding:9px 14px}.conversation-header h1{font-size:22px}.conversation-header p{display:none}
 .dialogue-history{padding:12px 14px;min-height:58px;flex:1 1 80px;max-height:none}.bubble p{font-size:16px}
 .dialogue-controls{padding:8px 12px 10px}.dialogue-choice{min-height:44px;font-size:16px;line-height:1.4;padding:8px 11px}
 .conversation-actions{margin-top:6px}.conversation-actions .primary{min-height:44px}
 .in-visit .object-hotspot{top:calc(44px + var(--room-height) - 49px);bottom:auto;height:46px;min-height:44px;padding:0;z-index:6}
 .in-visit .object-journal{left:1%;width:29%}.in-visit .object-meds{left:31%;width:29%}.in-visit .object-book{left:62%;width:37%}
 .object-hotspot>span{font-size:12px;min-height:44px;padding:8px}.object-hotspot svg{display:none}
 .in-visit .scene-patient{top:60px;left:35%;width:30%;height:calc(var(--room-height) - 70px)}
 .scene-patient>span{display:none}.in-visit .coffee-hotspot{display:none}
 .lobby-stage .object-hotspot{top:auto;bottom:16%;height:12%}.lobby-stage .scene-resume{top:48%;font-size:14px}
 .header-inner{padding:0 10px;min-height:44px}.brand-name{font-size:16px}.brand-mark{font-size:14px}
 .clinic-stage .patient-section{inset:54px 10px 12px;padding:16px;border-width:2px}
 .patient-grid{grid-template-columns:1fr;gap:12px}.patient-card{padding:15px}.patient-card .card-quote{min-height:0;margin:12px 0}.patient-name>span{display:inline}
 .patient-section .section-title h2{font-size:26px}.patient-section .filters{gap:5px;flex-wrap:wrap}
 .decision-content,.review-content{padding:16px;overflow:auto}.decision-content h2{font-size:24px}.choice{font-size:16px;padding:12px}
 .visit-actions{padding:10px 12px}.modal-header{padding:10px 14px}.modal-body{padding:16px}
}
#announcement{position:fixed;top:0;left:0}
@media(min-width:761px){#app{height:100dvh;min-height:0}}
@media(max-width:760px){
 .lobby-stage .clinic-canvas{visibility:hidden}
 .lobby-stage .scene-fallback{visibility:visible;object-fit:cover;object-position:center}
 .lobby-stage{background:#253c30}
}
/* Pixel dialogue and explicit learning feedback. Body text stays readable. */
.clinic-stage .conversation{border:4px solid #3b4b37;box-shadow:4px 0 #b9a36a,-4px 0 #b9a36a,0 4px #b9a36a,0 -4px #b9a36a,8px 8px #19271a99;background:#dce0c9}
.conversation-header{background:#304d40;color:#fff3cf;border-bottom:4px solid #bb9b5b}
.conversation-header h1{font-family:'Courier New',monospace;font-weight:bold;font-size:22px}.conversation-header h1 span,.conversation-header p{color:#e2e7ce}
.dialogue-history{background:#dce0c9;padding:18px 17px}
.bubble{border:2px solid #4c5a40!important;border-radius:0;box-shadow:3px 3px 0 #79866655;margin-bottom:20px;padding:12px 14px;max-width:95%}
.bubble.patient{background:#fff8e4;border-left-width:2px}.bubble.player{background:#c0d5bf;border-color:#4c5a40}
.bubble::after{content:'';position:absolute;bottom:-9px;left:10px;width:10px;height:10px;background:#fff8e4;border-left:2px solid #4c5a40;border-bottom:2px solid #4c5a40;clip-path:polygon(0 0,100% 0,100% 40%,60% 40%,60% 70%,30% 70%,30% 100%,0 100%)}
.bubble.player::after{left:auto;right:10px;transform:scaleX(-1);background:#c0d5bf}
.dialogue-controls{background:#ece7ce;border-top:3px solid #879272}.dialogue-choice{border:2px solid #7d896c;box-shadow:2px 2px #a7b295;border-radius:0}.dialogue-choice:hover{border-color:#304d40;background:#f6d98b}
.conversation .primary{border:2px solid #173f30;border-radius:0;box-shadow:3px 3px #132d2388}.conversation .primary:active{box-shadow:none;transform:translate(2px,2px)}
.result-verdict{padding:15px;margin:-4px -4px 20px;border:3px solid;box-shadow:4px 4px #0002}
.result-verdict.success{color:#194731;background:#deefd7;border-color:#3b7453}.result-verdict.failure{color:#7b251d;background:#fbe3d5;border-color:#ab4635}
.pixel-verdict{font:bold 22px 'Courier New',monospace;letter-spacing:2px}.result-verdict h2{font:700 19px 'Segoe UI',sans-serif;margin:8px 0}.result-verdict p{font-size:15px;margin:0;line-height:1.5}
.review-content .feedback{padding:13px;border:2px solid;margin-bottom:16px}.answer-correct{border-color:#608365!important;background:#eff5e6}.answer-wrong{border-color:#ac5543!important;background:#fff1e7}.answer-wrong h3{color:#8c2e22}.answer-correct h3{color:#245f37}
.correct-answer{border-top:2px solid #b57c5b;padding-top:12px;margin-top:12px}.correct-answer>strong{color:#284f31}.review-content .your-choice{font-size:14px;color:#384b40}
.card-stars{font-size:16px;letter-spacing:2px;color:#80611c;margin-left:auto}.xp-counter{font-family:'Courier New',monospace;font-weight:bold;color:#f9d77e!important;white-space:nowrap}
.points-total{font:bold 29px 'Courier New',monospace;color:#37563d}.points-total span{display:block;font:14px 'Segoe UI',sans-serif;margin:6px 0 16px}.reward-rules{font-size:14px!important;line-height:1.6}
.badge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:20px 0}.badge{border:2px solid #a8ac97;padding:12px 6px;text-align:center;background:#e5e6db;color:#5c6257;display:flex;flex-direction:column;gap:5px}.badge>span{font-size:32px}.badge.earned{background:#f4df9b;color:#654b15;border-color:#967322;box-shadow:3px 3px #b59b61}.badge small{font-size:12px}
.room-styles{display:flex;gap:10px;flex-wrap:wrap}.room-styles button{flex:1;display:flex;flex-direction:column;gap:6px;min-width:125px}.room-styles .selected{outline:2px solid #8e6b20;background:#f1e0a9}.room-styles small{font-size:12px}
.clinic-stage[data-room-style='brass']{border-color:#e5bc59;box-shadow:0 0 0 4px #76531e,0 8px 36px #0006}.clinic-stage[data-room-style='brass'] .site-header,.clinic-stage[data-room-style='brass'] .conversation-header{background:#654b25;color:#fff1c0}
.clinic-stage[data-room-style='night']{border-color:#b5a4d5;box-shadow:0 0 0 4px #36314e,0 8px 36px #0006}.clinic-stage[data-room-style='night'] .site-header,.clinic-stage[data-room-style='night'] .conversation-header{background:#39324e;color:#f1e9ff}
@media(max-width:760px){.clinic-stage .conversation{border:0;border-top:4px solid #ba995b;box-shadow:none}.header-inner{padding:0 8px}.brand-name{display:none}.header-inner nav{gap:0}.header-inner .nav-item{padding:7px}.dialogue-history{padding:14px}.bubble{max-width:96%;padding:10px 12px}.result-verdict{margin:0 0 18px}.badge-grid{gap:5px}.badge{padding:10px 3px}}

.portrait-ingrid{background-image:url('./assets/patients-extra.png');background-size:500% 200%;background-position:0% 0%}
.portrait-nora{background-image:url('./assets/patients-extra.png');background-size:500% 200%;background-position:25% 0%}
.portrait-astrid{background-image:url('./assets/patients-extra.png');background-size:500% 200%;background-position:50% 0%}
.portrait-tomas{background-image:url('./assets/patients-extra.png');background-size:500% 200%;background-position:75% 0%}
.portrait-rolf{background-image:url('./assets/patients-extra.png');background-size:500% 200%;background-position:100% 0%}
.portrait-leila{background-image:url('./assets/patients-extra.png');background-size:500% 200%;background-position:0% 100%}
.portrait-henrik{background-image:url('./assets/patients-extra.png');background-size:500% 200%;background-position:25% 100%}
.portrait-siv{background-image:url('./assets/patients-extra.png');background-size:500% 200%;background-position:50% 100%}
.portrait-amir{background-image:url('./assets/patients-extra.png');background-size:500% 200%;background-position:75% 100%}
.portrait-rut{background-image:url('./assets/patients-extra.png');background-size:500% 200%;background-position:100% 100%}
/* A room and a full-height dialogue share one game frame. */
.room-surface{position:relative;width:100%;aspect-ratio:3/2;isolation:isolate}
.clinic-stage,.desk-home .clinic-stage{aspect-ratio:auto;height:auto;min-height:0;padding-top:44px}
.game-main:has(.in-visit){width:min(1480px,calc((100dvh - 72px)*2.25))}
.in-visit .room-surface{width:66%}
.clinic-stage.in-visit .conversation{top:44px;right:0;bottom:0;width:34%;border:0;border-left:4px solid #aa8b51;box-shadow:inset 3px 0 #f0d99b;height:auto}
.room-surface .clinic-canvas,.room-surface .scene-fallback{inset:0;width:100%;height:100%;visibility:visible}
.scene-ready .room-surface .scene-fallback{visibility:hidden}
.clinic-stage .conversation-header h1,.modal h2,.modal h3,.decision-content h2,.patient-section h2,.patient-name,.brand-name{font-family:'Courier New',monospace;font-weight:700}
.conversation-header{padding:13px 16px}
.decision-content h2{font-size:22px;line-height:1.3}
.room-surface .object-hotspot{border-radius:0;padding-bottom:1%;cursor:pointer}
.object-hotspot>span,.scene-patient>span,.scene-resume,.next-patient>span{border:2px solid #524b32;border-radius:0;background:#f9e7ae;box-shadow:inset 2px 2px #fff8dc,inset -2px -2px #b29a5b,3px 3px #1e342bcc;min-height:44px;font-weight:700}
.object-hotspot>span{font-size:14px;padding:8px 10px}
.room-surface .object-hotspot::before{content:'';position:absolute;inset:0 7% 25%;border:2px dashed #ffdf8b9c;pointer-events:none}
.object-hotspot:hover>span,.object-hotspot:focus-visible>span,.next-patient:hover>span,.next-patient:focus-visible>span{background:#ffdc79;transform:translateY(-2px)}
.object-hotspot:hover::before,.object-hotspot:focus-visible::before{border-style:solid;border-color:#ffe49e;background:#ffe49e15}
.next-patient{position:absolute;left:36%;top:20%;width:28%;height:49%;z-index:3;display:flex;align-items:end;justify-content:center;cursor:pointer}
.unknown-patient{position:absolute;inset:0;width:100%;height:100%;opacity:.9;filter:blur(2px);image-rendering:pixelated;pointer-events:none}
.next-patient>span{position:relative;display:flex;align-items:center;gap:8px;white-space:nowrap;padding:9px 13px;font:700 16px 'Courier New',monospace}
.lobby-stage .scene-resume{left:17%;top:88%;font-size:13px;white-space:normal;text-align:center;max-width:28%;padding:8px 12px}
.coffee-reaction{position:absolute;z-index:4;right:2%;top:62%;font:700 15px 'Courier New',monospace;color:#fff4d1;text-shadow:2px 2px #2c281a;pointer-events:none}
.coffee-reaction:empty{display:none}
.modal,.modal.paper-modal{border:4px solid #4e5a40;border-radius:0;box-shadow:0 0 0 3px #d3b573,7px 7px 0 3px #14281c99;background:#f4edcf}
.modal::backdrop{backdrop-filter:none}
.modal-header,.paper-modal .modal-header{background:#304d40;color:#fff2cb;border-bottom:4px solid #bb9b5b;padding:12px 18px}
.modal-header h2{font-size:24px;line-height:1.25}
.modal-body{background:repeating-linear-gradient(0deg,transparent 0 31px,#7969440a 31px 32px);padding:20px}
.modal-body p,.journal-data dd{font-size:16px;line-height:1.6}
.modal-body h3,.modal-body .paper-heading h3{font-size:21px}
.medication,.journal-data>div,.book-entry{border-bottom:2px dashed #a8a382}
.journal-data dt,.small-label{font:bold 12px 'Courier New',monospace;color:#526048}
.medication>svg{color:#385a43}.medication .med-type{font-size:13px}
.primary,.secondary,.icon-button,.filter,.dialogue-choice,.choice,.patient-card,input[type='search']{border-radius:0;border:2px solid #68775a;box-shadow:2px 2px #4c5c3b55}
.primary{border-color:#193c2d;box-shadow:inset 2px 2px #ffffff19,3px 3px #173c2d66}
.icon-button{background:#f9edc9;color:#314c3c}
.choice{padding:12px;background:#fff9e6;line-height:1.5}
.choice.chosen{background:#cfdfbe;border-color:#355b3b;box-shadow:inset 4px 0 #355b3b,2px 2px #4c5c3b55}
.radio-visual{border-radius:0;border:2px solid #7b8b67;width:18px;height:18px;flex-basis:18px}
.chosen .radio-visual{border:2px solid #355b3b;background:#355b3b;box-shadow:inset 0 0 0 3px #e9efdb}
.patient-card{background:#f8f0d8}.patient-name{font-size:22px}.patient-card:hover{background:#f6dfa3}
.clinic-stage .patient-section{border:4px solid #4e5a40;box-shadow:0 0 0 3px #d3b573,7px 7px #14281c88}
.hint-button{border-radius:0}.hint-text,.review-takeaway{font-family:inherit}
@media(min-width:901px) and (max-width:1100px){
 .in-visit .room-surface{width:60%}.clinic-stage.in-visit .conversation{width:40%}
 .dialogue-controls{max-height:58%;overflow:auto}.conversation-header{padding:8px 12px}
 .object-hotspot>span{font-size:12px;padding:6px}.object-hotspot svg{display:none}
}
@media(max-width:900px){
 #app{padding:0;display:block;height:auto;min-height:100dvh}
 .game-main,.game-main:has(.in-visit),.desk-home,.desk-home:not(:has(#patient-list:not([hidden]))){width:100%;padding:0}
 .clinic-stage,.desk-home .clinic-stage{--room-height:min(34dvh,66.667vw);width:100%;height:100dvh;min-height:560px;padding-top:44px;border:0;background:#23372f;box-shadow:none}
 .room-surface,.in-visit .room-surface{width:min(100%,51dvh);margin-inline:auto;aspect-ratio:3/2}
 .clinic-stage.in-visit .conversation{top:calc(44px + var(--room-height));width:100%;right:0;bottom:0;border:0;border-top:4px solid #bb9b5b;box-shadow:none}
 .in-visit .room-surface .object-hotspot{top:auto;bottom:3px;height:46px;padding:0}
 .in-visit .object-journal{left:1%;width:29%}.in-visit .object-meds{left:31%;width:29%}.in-visit .object-book{left:62%;width:37%}
 .room-surface .object-hotspot::before{display:none}.object-hotspot>span{font-size:12px;padding:8px 5px}.object-hotspot svg{display:none}
 .in-visit .room-surface .scene-patient{top:18%;left:36%;width:28%;height:50%}.scene-patient>span{display:none}
 .in-visit .coffee-hotspot{display:none}
 .conversation-header{padding:9px 14px}.conversation-header p{display:none}
 .dialogue-choice{font-size:16px}.dialogue-controls{padding:8px 12px 10px}.dialogue-history{min-height:58px;padding:14px;max-height:none}
 .clinic-stage .patient-section{inset:54px 10px 12px;padding:16px}.patient-grid{grid-template-columns:1fr}.patient-name>span{display:inline}
 .lobby-stage .room-surface{width:100%;height:calc(100% - 44px);aspect-ratio:auto;overflow:hidden}
 .lobby-stage .room-surface .clinic-canvas{visibility:hidden}
 .lobby-stage .room-surface .scene-fallback{visibility:visible;object-fit:cover}
 .lobby-stage .next-patient{left:25%;width:50%;top:23%;height:44%}
 .lobby-stage .scene-resume{top:72%;left:50%;max-width:80%;white-space:nowrap}
 .lobby-stage .object-hotspot{top:auto;bottom:10px;height:48px}
 .lobby-stage .object-meds{left:2%;width:43%}.lobby-stage .object-book{left:47%;width:51%}
 .lobby-stage .coffee-hotspot{left:auto;right:0;top:76%;width:20%;height:12%}
 .lobby-stage .coffee-reaction{top:74%;right:3%}
 .header-inner{height:44px;min-height:44px;padding:0 8px}.header-inner .nav-item{padding:7px}.brand-name{display:none}
 .modal-header h2{font-size:21px}.modal-body{padding:16px}.decision-content h2{font-size:21px}
 .decision-content,.review-content{overflow:auto}.choice{font-size:16px}.visit-actions{padding:10px 12px}
}
.game-main:has(.in-visit){width:min(100%,1480px,calc((100dvh - 72px)*2.25))}
@media(min-width:901px){
 .game-main.desk-home{width:min(100%,1320px,calc((100dvh - 68px)*1.5))}
}
@media(max-width:900px){
 .lobby-stage .room-surface{height:100%}
 .lobby-stage .coffee-hotspot{display:none}
}
/* One readable typeface; the room, frames and objects carry the pixel style. */
:root{--ui-font:"Segoe UI",Arial,sans-serif}
#app,#app *,#overlay,#overlay *{font-family:var(--ui-font);letter-spacing:normal}
.clinic-stage .conversation-header h1{font-size:23px;font-weight:650}
.modal-header h2,.patient-section .section-title h2{font-size:25px;font-weight:650;line-height:1.25}
.modal-body h3,.modal-body .paper-heading h3{font-size:20px;font-weight:650}
.decision-content h2{font-size:23px;font-weight:650;line-height:1.3}
.patient-name{font-size:23px;font-weight:650}.next-patient>span{font-size:16px}
.review-content p,.review-content .feedback p,.review-content .your-choice,.review-takeaway{font-size:16px;line-height:1.6}
.review-content .feedback h3{font-size:16px;font-weight:650}.result-verdict h2{font-size:20px}.pixel-verdict{font-size:22px;font-weight:750}
.room-surface .object-hotspot::before{display:none}
.room-surface .object-hotspot,.room-surface .object-hotspot:hover,.room-surface .object-hotspot:focus-visible,.scene-patient:hover,.scene-patient:focus-visible{border-color:transparent;background:transparent;outline:none}
.object-hotspot:focus-visible>span{outline:3px solid #ffe49e;outline-offset:3px}
.scene-patient{cursor:pointer}.scene-patient:focus-visible{outline:2px dashed #ffe49e;outline-offset:-6px}
.hint-button{width:auto;min-width:44px;gap:6px;padding:8px;font-size:14px;white-space:nowrap}
.decision-tools{justify-content:flex-end}
.dialogue-choice:disabled{opacity:.55;cursor:default}.bubble.waiting{width:64px;min-height:44px;padding:8px 15px}
.reply-dots{font-size:25px;font-weight:700;line-height:1;letter-spacing:3px!important}
.next-patient{left:39%;top:28%;width:22%;height:40%;align-items:center}
.unknown-patient{opacity:.75;filter:blur(.65px)}
.next-patient>span{position:absolute;top:65%;padding:10px 14px;min-height:44px}
.med-list-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:2px solid #8b9479;padding-bottom:8px;margin-bottom:0}
.med-list-heading strong{font-size:18px}.med-list-heading>span{font-size:13px;color:#526048}
.med-list{border-collapse:collapse;width:100%;table-layout:fixed;margin:0 0 10px;text-align:left;background:#fffdf0}
.med-list thead{background:#e4e6d4}.med-list th,.med-list td{padding:7px 10px;border-bottom:1px solid #a9b198;vertical-align:top;font-size:15px;line-height:1.45}
.med-list thead th{font-weight:650;font-size:13px;color:#405541}.med-list th:first-child{width:43%}
.med-list tbody th{font-weight:400;border-right:1px solid #d5dac6}
.substance-link{display:flex;align-items:center;gap:7px;text-align:left;min-height:44px;width:100%;color:#204e3a;text-decoration:none;font-size:17px;font-weight:650;overflow-wrap:anywhere;line-height:1.35}
.med-list-name{text-decoration:underline;text-underline-offset:3px}
.substance-link svg{flex-shrink:0}.substance-link:hover{color:#8b5b0e}
.med-list-type{display:block;color:#526048;font-size:13px;font-weight:400;margin-top:2px;line-height:1.35}
.book-patient h3{margin-top:0}.substance-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.substance-shortcuts .secondary{min-height:44px;padding:10px 12px}
.book-scope{font-size:13px!important;color:#526048;margin:12px 0}
.drug-index-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;text-align:left;min-height:64px;padding:12px 8px;border-bottom:1px solid #adb69b;background:#fff9e955}
.drug-index-row:hover{background:#e1e8cd}.drug-index-row strong{font-size:17px;font-weight:650}.drug-index-row small{display:block;font-size:13px;color:#526048;margin-top:4px}.drug-index-row svg{flex-shrink:0}
.drug-class{margin-top:0;padding:0 0 15px;border-bottom:2px solid #a5af93;color:#526048}
.drug-notes section{margin-bottom:22px}.drug-notes h3{margin-top:14px}.drug-notes a,.reference-links a{font-size:14px;text-decoration:underline;text-underline-offset:3px}
.reference-links{display:flex;flex-wrap:wrap;gap:8px 20px;padding-top:12px;border-top:1px solid #a5af93;margin-top:20px}.reference-links a{display:inline-flex;align-items:center;min-height:44px;line-height:1.5}
@media(max-width:900px){
 .lobby-stage .next-patient{left:29%;width:42%;top:29%;height:36%}
 .lobby-stage .next-patient>span{top:66%}
 .med-list th,.med-list td{padding:7px 8px;font-size:15px}.med-list th:first-child{width:44%}
 .substance-link{font-size:16px;gap:4px}.substance-link svg{display:none}.med-list-heading{align-items:start;flex-direction:column;gap:4px}
 .modal-header h2,.decision-content h2{font-size:22px}.patient-section .section-title h2{font-size:24px}
 .conversation-header h1{font-size:22px}
}
@media(min-width:901px){
 .game-main.desk-home,.game-main.desk-home:not(:has(#patient-list:not([hidden]))){width:min(100%,1320px,calc((100dvh - 68px)*1.5))}
}
@media(max-width:480px){
 .med-list,.med-list tbody{display:block}
 .med-list thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .med-list tbody tr{display:grid;grid-template-columns:minmax(0,1fr);border-bottom:1px solid #a9b198}
 .med-list tbody th,.med-list tbody td{display:block;width:100%;border:0;padding:5px 10px}
 .med-list tbody th{padding-bottom:0}.med-list tbody td{padding-top:3px;padding-bottom:8px;font-size:16px;line-height:1.45}
 .substance-link{font-size:17px;overflow-wrap:normal}.med-list-type{font-size:13px}
}
@media(max-width:480px){.med-list tbody th:first-child{width:100%}}

/* Compact journal: narrative, observations and laboratory results stay distinct. */
.modal:has(.patient-journal,.med-list,.drug-notes) .modal-header{padding:6px 14px}
.modal:has(.patient-journal,.med-list,.drug-notes) .modal-body{padding:12px 16px}
.patient-journal{margin-bottom:8px}
.patient-journal .paper-heading{padding-bottom:8px;margin-bottom:0}
.patient-journal .journal-data>div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:10px;padding:8px 0;border-bottom:1px solid #b9bea4}
.patient-journal .journal-data dt{margin:2px 0 0;font-size:12px;line-height:1.5;text-transform:none;font-weight:650}
.patient-journal .journal-data dd{font-size:15px;line-height:1.5}
.journal-observations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#b9bea4;border:1px solid #b9bea4;margin:10px 0}
.journal-observations>div{padding:6px 10px;background:#f8f3dc}
.journal-observations dt{font-size:12px;color:#526048;margin-bottom:3px}
.journal-observations dd{margin:0;font-variant-numeric:tabular-nums;font-size:17px}
.journal-observations dd>span{font-size:13px}.journal-observations small{display:block;font-size:12px;color:#526048;margin-top:3px}
.journal-labs{width:100%;border-collapse:collapse;table-layout:fixed;margin:10px 0 0;background:#fffbee;text-align:left;font-variant-numeric:tabular-nums}
.journal-labs caption{text-align:left;font-size:16px;font-weight:650;padding:0 0 5px}
.journal-labs th,.journal-labs td{padding:6px 8px;border-bottom:1px solid #bdc3ab;vertical-align:top;font-size:15px;line-height:1.4}
.journal-labs thead th{background:#e0e4ce;color:#42543c;font-size:12px;font-weight:650;border-top:1px solid #a1aa8e}
.journal-labs th:first-child{width:47%}.journal-labs th:nth-child(2){width:23%}.journal-labs th:nth-child(3){width:30%}
.journal-labs tbody th{font-weight:600;overflow-wrap:anywhere}
.journal-labs small{display:block;font-size:12px;font-weight:400;line-height:1.4;color:#526048;margin-top:1px}
.journal-labs .lab-result{white-space:nowrap}.lab-reference>span{white-space:nowrap}.lab-reference small{font-size:11px}
.lab-flag{color:#984120;font-weight:750}.lab-result .lab-flag{font-size:15px;margin-left:3px;line-height:0}
.patient-journal .lab-legend{font-size:12px;margin:5px 0 0}.patient-journal .lab-pending{font-size:14px;margin:8px 0}
.lab-sources{margin-top:6px;border-top:1px solid #bdc3ab;font-size:13px}
.lab-sources summary{cursor:pointer;min-height:44px;padding:12px 0;color:#40563d}
.patient-journal .lab-sources p{font-size:13px;line-height:1.5;margin:0 0 10px}
.lab-sources ul{list-style:none;padding:0;margin:0}.lab-sources li{padding:8px 0;border-bottom:1px solid #d1d4bd}
.lab-sources a{text-decoration:underline;text-underline-offset:3px;display:inline-block;padding:5px 0;line-height:1.5}
.lab-sources small{display:block;font-size:11px;color:#526048;line-height:1.5}
@media(max-width:480px){
 .modal:has(.patient-journal,.med-list,.drug-notes) .modal-body{padding:10px 12px}
 .patient-journal .journal-data>div{display:block;padding:7px 0}
 .patient-journal .journal-data dt{margin:0 0 2px}
 .patient-journal .journal-data dd{font-size:16px;line-height:1.45}
 .journal-labs th,.journal-labs td{padding:6px 5px;font-size:14px}
 .journal-labs th:first-child{width:45%}.journal-labs th:nth-child(2){width:24%}.journal-labs th:nth-child(3){width:31%}
 .journal-labs small{font-size:11px}.journal-labs .lab-reference small{font-size:10px}
 .journal-observations>div{padding:6px 8px}.journal-observations dt{overflow-wrap:anywhere}
}
/* Substance cards retain complete text; spacing follows the compact documents. */
.modal:has(.drug-notes) .drug-class{padding-bottom:8px;margin:0 0 8px;font-size:14px;line-height:1.4}
.drug-notes section{margin-bottom:10px}
.modal-body .drug-notes h3{font-size:17px;line-height:1.35;margin:0 0 3px}
.modal-body .drug-notes p{font-size:16px;line-height:1.45;margin:0}
.modal:has(.drug-notes) .reference-links{margin-top:10px;padding-top:4px;gap:0 16px}
.modal:has(.drug-notes) .reference-links a{font-size:13px;min-height:44px}
.modal:has(.drug-notes) .source-note{margin:6px 0 10px;font-size:12px!important;line-height:1.4}
.theme-filters{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}.theme-filters .filter{min-height:44px;padding:8px 12px;font-size:14px}.theme-filters [aria-pressed="true"]{background:#254e40;color:#fff5da}.theme-filters+.filters{border-top:1px solid #aab399;padding-top:10px}
@media(max-width:480px){.theme-filters{gap:5px}.theme-filters .filter{font-size:13px;padding:7px 9px}}

.decision-content .decision-context{font:inherit;font-size:16px;line-height:1.5;margin:0 0 12px}
.case-purpose{margin:.4rem 0;font-size:.9rem;line-height:1.4}

.mobile-filters{display:none}

/* Keep the entire illustrated desktop in frame in a portrait browser. */
@media (max-width:900px) and (orientation:portrait) {
  .desk-home .lobby-stage {
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    overflow-y:auto;
    background:#f5efdb;
    height:100dvh;
    min-height:0;
    padding:0 0 env(safe-area-inset-bottom);
  }
  .desk-home .lobby-stage .site-header {
    position:relative;
    flex:none;
    order:-1;
    width:100%;
    margin-inline:auto;
    background:#203b32;
  }
  .lobby-stage .room-surface {
    flex:none;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px 8px;
    width:100%;
    height:auto;
    margin-inline:auto;
    padding-bottom:12px;
    background:#2c4439;
    border-bottom:2px solid #85734e;
    overflow:visible;
  }
  .lobby-stage .room-surface .scene-fallback {
    position:static;
    grid-area:1 / 1 / 2 / -1;
    width:100%;
    height:auto;
    aspect-ratio:3/2;
    object-fit:contain;
  }
  .lobby-stage .next-patient {
    grid-area:1 / 1 / 2 / -1;
    left:33%;top:23%;width:34%;height:45%;
  }
  .lobby-stage .next-patient>span {top:auto;bottom:0}
  .lobby-stage .scene-resume,
  .lobby-stage .room-surface .object-hotspot {
    position:static;
    width:auto;height:auto;max-width:none;min-height:44px;
    transform:none;margin:0;padding:0;
  }
  .lobby-stage .scene-resume {grid-column:1 / -1;margin-inline:12px}
  .lobby-stage .room-surface .object-hotspot>span {width:100%;font-size:14px}
  .lobby-stage .room-surface .object-meds {margin-left:12px}
  .lobby-stage .room-surface .object-book {margin-right:12px}
  .lobby-stage .brand-name {display:inline}
  .lobby-stage .patient-section {
    position:static;flex:none;width:100%;overflow:visible;
    border:0;box-shadow:none;padding:18px 14px;
  }
  .lobby-stage.choosing-patient::after,
  .lobby-stage .patient-section .icon-button,
  .lobby-stage .theme-filters,.lobby-stage .filters {display:none}
  .lobby-stage .mobile-filters {
    display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);
    gap:12px;margin:12px 0 16px;
  }
  .mobile-filters label {font-weight:600;font-size:13px}
  .mobile-filters select {
    display:block;width:100%;min-height:44px;margin-top:4px;padding:6px;
    color:var(--ink);background:#fff9e9;border:1px solid #7f896c;font:inherit;font-size:16px;
  }
  .lobby-stage .section-title {margin-bottom:4px}
}

.scene-patient .mobile-talk {display:none}
@media (max-width:900px) and (orientation:portrait) {
  .clinic-stage.in-visit {
    display:flex;flex-direction:column;height:100dvh;min-height:0;
    padding:44px 0 env(safe-area-inset-bottom);overflow:hidden;
  }
  .in-visit .room-surface {
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;
    flex:none;width:100%;aspect-ratio:auto;padding:4px 6px;background:#2c4439;
  }
  .in-visit .room-surface .scene-fallback,
  .in-visit .room-surface .clinic-canvas {visibility:hidden;pointer-events:none}
  .in-visit .room-surface .scene-patient,
  .in-visit .room-surface .object-hotspot {
    position:static;width:auto;height:auto;min-width:0;min-height:44px;
    padding:0;border:0;display:flex;align-items:stretch;
  }
  .in-visit .scene-patient .mobile-talk,.in-visit .object-hotspot>span {
    position:static;flex:1;display:flex;align-items:center;justify-content:center;
    position:static;transform:none;font-size:clamp(12px,3.3vw,15px);padding:3px 0;
  }
  .clinic-stage.in-visit .conversation {
    position:static;flex:1;display:flex;flex-direction:column;
    min-height:0;width:100%;border:0;
  }
  .in-visit .conversation-header {display:flex;align-items:center;gap:12px;padding:4px 12px;border-bottom-width:2px}
  .in-visit .conversation-header .portrait {display:block;width:48px;height:54px;flex:none}
  .in-visit .conversation-header h1 {font-size:21px;margin:0}
  .in-visit .conversation-header p {display:block;font-size:12px;margin:2px 0 0}
  .in-visit .dialogue-history {flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;padding:10px 12px}
  .in-visit .dialogue-controls {
    display:flex;flex-direction:column;flex:0 0 auto;min-height:0;
    max-height:66%;overflow:visible;padding:6px 8px;
  }
  .in-visit .dialogue-options {overflow-y:auto;min-height:0;gap:4px;padding:0 3px 3px 0;overscroll-behavior:contain}
  .in-visit .dialogue-choice {flex:none;min-height:44px;padding:6px 9px;font-size:15px;line-height:1.3}
  .in-visit .conversation-actions {flex:none;margin-top:4px}
  .in-visit .decision-content,.in-visit .review-content {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
  .in-visit .visit-actions {flex:none}
}

.feedback>summary {cursor:pointer;line-height:1.4}
.feedback-choice {display:block;margin:4px 0;font-size:15px}
.feedback[open]>summary {margin-bottom:8px}
@media (max-width:900px) and (orientation:portrait) {
  .in-visit .decision-content {
    display:flex;flex-direction:column;overflow:hidden;padding:10px 10px 4px;
  }
  .in-visit .decision-content h2 {
    flex:none;font-size:18px;line-height:1.23;margin:0 0 8px;
  }
  .in-visit .decision-context {flex:none;font-size:15px;line-height:1.3;margin:0 0 6px}
  .in-visit .choices {min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;gap:5px;margin:0;padding:1px 3px 4px 1px}
  .in-visit .choice {flex:none;min-height:44px;padding:6px 9px;font-size:15px;line-height:1.3}
  .in-visit .visit-actions {padding:5px 8px;gap:4px;align-items:center}
  .in-visit .decision-actions button {min-height:44px;padding:5px;font-size:13px;gap:3px}
  .in-visit .decision-actions .primary {padding-inline:9px}
  .in-visit .review-content {padding:9px 10px}
  .in-visit .result-verdict {margin:0 0 9px;padding:8px 10px;box-shadow:none}
  .in-visit .result-verdict h2 {font-size:17px;margin:2px 0}
  .in-visit .result-verdict p,.in-visit .feedback-choice {font-size:15px;line-height:1.35}
  .in-visit .result-verdict p {margin:4px 0 0}
  .in-visit .pixel-verdict {font-size:16px}
  .in-visit .review-content .feedback {padding:5px 9px;margin:0 0 6px}
  .in-visit .feedback>summary {min-height:44px;padding:4px 0}
  .in-visit .review-takeaway {margin:10px 0}
}

@media (max-width:900px) and (max-height:600px) and (orientation:portrait) {
  .in-visit .conversation:has(.decision-content,.review-content) .conversation-header {padding-block:2px}
  .in-visit .conversation:has(.decision-content,.review-content) .conversation-header .portrait {width:30px;height:34px}
  .in-visit .conversation:has(.decision-content,.review-content) .conversation-header p {display:none}
}
