:root{--ink:#05080d;--paper:#eef2f6;--blue:#2699ff;--amber:#c99b51;--muted:#a7b1bd;--line:rgba(223,232,240,.18)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--ink);color:var(--paper);font-family:Manrope,system-ui,sans-serif;min-height:100vh;overflow-x:hidden}
.noise{position:fixed;inset:0;pointer-events:none;opacity:.045;z-index:9;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E")}
.topbar{height:92px;display:flex;align-items:center;justify-content:space-between;padding:0 4.5vw;border-bottom:1px solid var(--line);position:relative;z-index:3;background:rgba(5,8,13,.92)}
.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font:500 11px/1.2 DM Mono;letter-spacing:.12em}.brand b{color:var(--blue);font-weight:500}.brand img{width:56px;height:56px;object-fit:cover;filter:drop-shadow(0 0 14px rgba(38,153,255,.22))}
.nav-links{display:flex;gap:34px}.nav-links a{color:var(--muted);font:500 12px DM Mono;text-decoration:none;letter-spacing:.08em}.nav-links a:hover{color:var(--paper)}
button{font:500 12px DM Mono;letter-spacing:.06em;cursor:pointer}.status-pill{background:transparent;color:var(--paper);border:1px solid var(--line);border-radius:99px;padding:11px 16px}.status-pill i,.live i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--blue);margin-right:7px;box-shadow:0 0 12px var(--blue)}
.hero{min-height:calc(100vh - 92px);display:grid;grid-template-columns:1.04fr .96fr}.hero-copy{padding:11vh 4vw 7vh 8vw;position:relative;background:radial-gradient(circle at 70% 20%,rgba(38,153,255,.08),transparent 30%)}
.eyebrow{font:500 12px DM Mono;letter-spacing:.11em;color:var(--blue);margin:0 0 24px}.eyebrow span{color:var(--muted)}
h1{font-size:clamp(3.8rem,7.2vw,8.6rem);line-height:.84;letter-spacing:-.075em;margin:0;max-width:880px;font-weight:700}h1 em{font-family:Georgia,serif;font-weight:400;color:var(--amber)}
.lede{max-width:610px;color:#bec5cf;font-size:clamp(1rem,1.35vw,1.25rem);line-height:1.65;margin:42px 0}.hero-actions{display:flex;gap:26px;align-items:center}
.primary{background:linear-gradient(135deg,#b98539,#e4c381);color:#11100d;border:0;padding:17px 21px;transition:.2s transform,.2s box-shadow}.primary:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(201,155,81,.22)}.primary span{margin-left:28px}
.text-button{color:var(--paper);background:transparent;border:0;border-bottom:1px solid var(--line);padding:16px 4px}.text-button span{margin-left:14px;color:var(--blue)}
.case-visual{position:relative;overflow:hidden;border-left:1px solid var(--line);background:linear-gradient(180deg,rgba(3,7,12,.08),rgba(3,7,12,.36)),url('assets/valen-estate-carrow-mobile.jpeg') center/cover no-repeat}.case-visual:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 79px,rgba(255,255,255,.025) 80px),repeating-linear-gradient(0deg,transparent 0 79px,rgba(255,255,255,.02) 80px)}
.scan-line{position:absolute;z-index:4;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,var(--blue),transparent);box-shadow:0 0 18px var(--blue);animation:scan 7s linear infinite}@keyframes scan{from{top:8%}to{top:90%}}
.case-stamp{position:absolute;right:7%;top:8%;border:1px solid var(--amber);color:var(--amber);padding:12px 15px;transform:rotate(3deg);font:500 11px DM Mono;letter-spacing:.14em;text-align:center;background:rgba(5,8,13,.62);backdrop-filter:blur(8px)}.case-stamp span{font-size:24px}
.visual-meta{position:absolute;left:6%;right:6%;bottom:4%;display:flex;justify-content:space-between;font:400 10px DM Mono;color:#c1cbd4;letter-spacing:.08em;text-shadow:0 1px 8px #000}
.case-section{display:grid;grid-template-columns:.15fr .7fr .85fr;gap:4vw;padding:9vw 8vw 5vw;border-top:1px solid var(--line);background:linear-gradient(180deg,#09111a,#060b11)}.section-number{font:500 12px DM Mono;color:var(--blue)}
.case-heading h2,.method h2,dialog h2{font-size:clamp(2.8rem,5vw,6rem);line-height:.94;letter-spacing:-.055em;margin:0;font-weight:600}.brief-card{border-top:1px solid var(--paper)}
.brief-row{padding:22px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:120px 1fr;gap:20px}.brief-row span{font:500 11px DM Mono;color:var(--blue);letter-spacing:.08em}.brief-row strong{font-weight:500;color:#cfd5dc}.wide{width:100%;margin-top:28px;text-align:left;display:flex;justify-content:space-between}
.scene-card{grid-column:2/4;margin:4vw 0 0;position:relative;min-height:440px;overflow:hidden;border:1px solid var(--line)}.scene-card img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center 44%}.scene-card:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,8,13,.74),transparent 55%),linear-gradient(0deg,rgba(4,8,13,.58),transparent 40%)}.scene-card figcaption{position:absolute;z-index:2;left:30px;bottom:26px;display:grid;gap:6px;font-family:DM Mono}.scene-card figcaption span{color:var(--blue);font-size:11px;letter-spacing:.12em}.scene-card figcaption strong{font-size:1.5rem;letter-spacing:.08em}.scene-card figcaption small{color:var(--muted);font-size:10px;letter-spacing:.1em}
.arrival{display:grid;grid-template-columns:1fr .72fr 1fr;min-height:620px;background:#05080d}.arrival-image{background-size:cover;background-position:center}.arrival-image.gate{background-image:linear-gradient(rgba(3,6,10,.12),rgba(3,6,10,.25)),url('assets/valen-estate-gate.png')}.arrival-image.scene{background-image:url('assets/people/ryan-brasko.jpeg');background-size:contain;background-repeat:no-repeat;background-color:#030405}.arrival-copy{padding:7vw 4vw;display:flex;flex-direction:column;justify-content:center;background:radial-gradient(circle at 50% 25%,rgba(38,153,255,.09),transparent 42%)}.arrival-copy h2{font-size:clamp(2.3rem,3.8vw,4.7rem);line-height:.96;letter-spacing:-.05em;margin:0}.arrival-copy>p:last-child{color:var(--muted);line-height:1.7;margin:32px 0 0}
.method{padding:10vw 8vw;background:var(--paper);color:var(--ink)}.method-intro{display:grid;grid-template-columns:.45fr 1fr .7fr;gap:4vw;align-items:end;margin-bottom:7vw}.method-intro .eyebrow{align-self:start}.method-intro p:last-child{color:#4d575f;line-height:1.65;margin:0}.method-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #aeb3bd}.method-grid article{padding:30px 30px 10px 0;border-right:1px solid #c5cbd1;min-height:220px}.method-grid article+article{padding-left:30px}.method-grid span{font:500 11px DM Mono;color:#5a626a}.method-grid h3{font-size:1.6rem;margin:50px 0 14px}.method-grid p{color:#56606a;line-height:1.5;font-size:.95rem}
footer{padding:30px 4.5vw;display:flex;justify-content:space-between;gap:20px;font:500 10px DM Mono;color:#737e88;letter-spacing:.08em}
dialog{width:min(780px,calc(100% - 30px));background:#0d141d;color:var(--paper);border:1px solid #42505d;padding:clamp(28px,5vw,56px);box-shadow:0 30px 100px rgba(0,0,0,.65)}dialog::backdrop{background:rgba(2,5,8,.82);backdrop-filter:blur(8px)}.close{position:absolute;right:18px;top:14px;background:none;border:0;color:var(--paper);font:300 30px Manrope}.dialog-kicker{font:500 11px DM Mono;color:var(--blue);letter-spacing:.1em;margin-bottom:20px}.dialog-lede{color:#bdc5ce;line-height:1.65;max-width:640px}.dispatch{margin-top:32px;border:1px solid var(--line);background:#060b11;padding:22px}.dispatch-head{display:flex;justify-content:space-between;font:500 10px DM Mono;color:#87919b;letter-spacing:.1em}.live{color:var(--blue)}#dispatchText{font:500 1.05rem/1.6 Manrope;min-height:54px}.commands{display:flex;flex-wrap:wrap;gap:9px}.commands button{background:transparent;border:1px solid #3b4956;color:#cbd1d7;padding:10px 12px}.commands button:hover{border-color:var(--blue);color:var(--blue)}.availability{text-align:center;font:500 10px DM Mono;color:#7e8993;letter-spacing:.1em;margin:25px 0 0}
@media(max-width:900px){.nav-links{display:none}.hero{grid-template-columns:1fr}.hero-copy{padding:9vh 7vw}.case-visual{min-height:620px;border-left:0;border-top:1px solid var(--line)}.case-section{grid-template-columns:1fr;padding:90px 7vw}.section-number{display:none}.scene-card{grid-column:auto;margin-top:28px}.arrival{grid-template-columns:1fr 1fr}.arrival-copy{grid-column:1/3;grid-row:1;padding:80px 7vw}.arrival-image{min-height:430px}.method{padding:90px 7vw}.method-intro{grid-template-columns:1fr}.method-grid{grid-template-columns:1fr 1fr}.method-grid article:nth-child(2){border-right:0}.method-grid article{border-bottom:1px solid #c5cbd1}footer{flex-direction:column}}
@media(max-width:560px){.topbar{height:76px;padding:0 20px}.brand img{width:44px;height:44px}.status-pill{font-size:0}.status-pill i{margin:0}.hero{min-height:auto}.hero-copy{padding:70px 24px 78px}h1{font-size:3.75rem}.lede{margin:30px 0}.hero-actions{align-items:stretch;flex-direction:column;gap:8px}.primary,.text-button{width:100%}.case-visual{min-height:450px}.visual-meta span:nth-child(2){display:none}.case-section,.method{padding:72px 24px}.brief-row{grid-template-columns:88px 1fr}.scene-card{min-height:380px}.arrival{grid-template-columns:1fr}.arrival-copy{grid-column:auto;padding:72px 24px}.arrival-image{min-height:360px}.method-grid{grid-template-columns:1fr}.method-grid article,.method-grid article+article{padding:24px 0;border-right:0;min-height:auto}.method-grid h3{margin:28px 0 10px}footer{padding:28px 24px}.commands{display:grid}.commands button{text-align:left}}

/* Provisional Estate playtest */
dialog{width:min(920px,calc(100% - 30px));max-height:92vh;overflow:auto}
.game-status{display:flex;justify-content:space-between;border-block:1px solid var(--line);padding:12px 0;margin-top:26px;font:500 10px DM Mono;letter-spacing:.08em;color:#84909b}
.game-status b{color:var(--blue);font-weight:500}
.transcript{height:330px;overflow:auto;margin-top:18px;border:1px solid var(--line);background:#060b11;padding:20px;scroll-behavior:smooth}
.message{padding:0 0 18px;margin:0 0 18px;border-bottom:1px solid rgba(223,232,240,.09)}
.message:last-child{margin-bottom:0}
.message span{display:block;font:500 9px DM Mono;letter-spacing:.12em;color:#74818d;margin-bottom:8px}
.message.player span{color:var(--amber)}
.message div{white-space:pre-wrap;font:500 15px/1.58 Manrope;color:#d7dde3}
.message.player div{color:#dcbc7e}
.quick-actions{margin-top:12px}
.action-form{margin-top:18px}
.action-form label{display:block;font:500 9px DM Mono;letter-spacing:.12em;color:#7e8993;margin-bottom:8px}
.action-form>div{display:flex}
.action-form input{min-width:0;flex:1;background:#05080d;color:var(--paper);border:1px solid #3b4956;border-right:0;padding:15px;font:500 14px Manrope;outline:none}
.action-form input:focus{border-color:var(--blue)}
.action-form button{background:var(--blue);color:#04101a;border:0;padding:0 18px}
@media(max-width:560px){.transcript{height:300px}.action-form>div{display:grid}.action-form input{border-right:1px solid #3b4956}.action-form button{padding:14px}}

/* The catalog preview opens directly into the playable case, without exposing
   the retired standalone marketing page behind it. */
body.direct-play{height:100dvh;overflow:hidden;background:radial-gradient(circle at 18% 20%,rgba(38,153,255,.16),transparent 35%),radial-gradient(circle at 82% 80%,rgba(201,155,81,.11),transparent 34%),#05080d}
body.direct-play>main,body.direct-play>footer,body.direct-play>.noise{display:none}
body.direct-play dialog{width:min(1040px,calc(100% - 32px));max-height:calc(100vh - 32px);margin:auto}

/* Investigation workspace */
#caseDialog{width:min(1540px,calc(100% - 28px));height:min(940px,calc(100dvh - 28px));max-height:calc(100dvh - 28px);padding:0;overflow:hidden;background:#071019;border:1px solid rgba(117,153,184,.32);box-shadow:0 35px 130px rgba(0,0,0,.78),0 0 60px rgba(25,132,225,.07)}
#caseDialog::backdrop{background:rgba(1,4,8,.94);backdrop-filter:blur(13px)}
.workspace-header{height:76px;display:grid;grid-template-columns:238px minmax(360px,1fr) auto 44px;align-items:center;border-bottom:1px solid rgba(164,192,215,.18);background:linear-gradient(90deg,#07111b,#09131d 64%,#071019);position:relative}
.workspace-header:after{content:"";position:absolute;bottom:-1px;left:238px;width:32%;height:1px;background:linear-gradient(90deg,var(--blue),transparent);box-shadow:0 0 11px rgba(38,153,255,.5)}
.workspace-brand{height:100%;display:flex;align-items:center;gap:10px;padding:0 17px;border-right:1px solid rgba(164,192,215,.16);font:500 10px/1.5 DM Mono;letter-spacing:.12em;color:#c5d0da}.workspace-brand img{width:45px;height:45px;object-fit:cover;filter:drop-shadow(0 0 11px rgba(38,153,255,.25))}.workspace-brand b{display:block;color:var(--blue);font-weight:500}
.case-identity{padding:0 24px;display:flex;flex-direction:column;gap:5px}.case-identity span{font:500 9px DM Mono;letter-spacing:.13em;color:#7890a3}.case-identity strong{font:600 19px Manrope;letter-spacing:-.02em;color:#edf3f8}
.workspace-status{display:flex;gap:24px;padding:0 20px;font:500 9px DM Mono;letter-spacing:.08em;color:#728494}.workspace-status span{display:flex;flex-direction:column;gap:5px}.workspace-status b{font-size:10px;font-weight:500;color:#3ca9ff}.workspace-header .close{position:static;width:44px;height:44px;color:#8493a0;font-size:25px;transition:.2s color,.2s background}.workspace-header .close:hover{color:#fff;background:rgba(255,255,255,.05)}
.mobile-case-file-button,.mobile-drawer-header,.latest-response-button{display:none}
.investigation-workspace{height:calc(100% - 76px);display:grid;grid-template-columns:238px minmax(460px,1fr) minmax(280px,340px);min-height:0}
.case-file-nav,.case-viewer{min-height:0;background:linear-gradient(180deg,#08131e,#050c13);position:relative}.case-file-nav{border-right:1px solid rgba(164,192,215,.17);display:flex;flex-direction:column}.case-viewer{border-left:1px solid rgba(164,192,215,.17);overflow:auto}
.pane-label{height:49px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid rgba(164,192,215,.14);font:500 9px DM Mono;letter-spacing:.12em;color:#718596}.pane-label span{color:#a9bac8}.pane-label small{font:500 8px DM Mono;color:#3b9ce9;letter-spacing:.1em}
.case-file-nav nav{padding:14px 0}.file-nav-item{width:100%;height:48px;border:0;border-left:2px solid transparent;background:transparent;color:#9aa9b5;display:grid;grid-template-columns:31px 1fr auto;align-items:center;text-align:left;padding:0 18px 0 16px;font:500 13px Manrope;letter-spacing:0;transition:.18s background,.18s color,.18s border-color}.file-nav-item>span{font:500 8px DM Mono;color:#4e6374;letter-spacing:.1em}.file-nav-item>b{min-width:20px;height:20px;display:grid;place-items:center;border:1px solid #324554;border-radius:50%;font:500 8px DM Mono;color:#6ba9d8}.file-nav-item:hover{color:#e4ebf1;background:rgba(39,143,225,.055)}.file-nav-item.active{color:#f1f5f8;border-left-color:var(--blue);background:linear-gradient(90deg,rgba(38,153,255,.14),rgba(38,153,255,.025))}.file-nav-item.active>span{color:var(--blue)}
.file-classification{margin:auto 18px 18px;padding:14px;border:1px solid rgba(106,142,170,.2);background:#060d14;display:grid;grid-template-columns:12px 1fr;gap:5px 8px;font:500 8px DM Mono;letter-spacing:.1em;color:#8192a0}.file-classification i{width:7px;height:7px;border-radius:50%;background:#46df78;box-shadow:0 0 10px rgba(70,223,120,.8);align-self:center}.file-classification small{grid-column:2;color:#526575;font-size:7px}
.active-investigation{min-width:0;min-height:0;display:grid;grid-template-rows:49px minmax(0,1fr) auto;position:relative;background:#08111a;overflow:hidden}.scene-header{display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid rgba(164,192,215,.13);background:rgba(5,13,21,.92);position:relative;z-index:2}.scene-header>div{display:flex;align-items:center;gap:14px}.scene-header span,.scene-header small{font:500 8px DM Mono;color:#658096;letter-spacing:.12em}.scene-header strong{font:500 10px DM Mono;letter-spacing:.11em;color:#d7e3ed}.scene-header small{color:var(--amber)}
.scene-wash{position:absolute;z-index:0;left:0;right:0;top:49px;height:155px;background:linear-gradient(180deg,rgba(5,11,17,.14),#08111a 92%),linear-gradient(90deg,rgba(1,7,12,.5),rgba(1,7,12,.1)),url('assets/valen-study-crime-scene.png') center 43%/cover no-repeat;opacity:.44;filter:saturate(.72);pointer-events:none}.scene-wash:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(21,116,205,.11),transparent 48%,rgba(201,155,81,.07))}
.active-investigation .transcript{position:relative;z-index:1;height:auto;min-height:0;overflow-y:auto;margin:0;border:0;background:linear-gradient(180deg,transparent 0 105px,#08111a 170px);padding:132px clamp(24px,4vw,58px) 34px;scrollbar-width:thin;scrollbar-color:#29465d transparent}.message{position:relative;margin:0;padding:0 0 27px 28px;border:0;max-width:830px}.message+.message{padding-top:6px}.message:before{content:"";position:absolute;left:2px;top:5px;width:7px;height:7px;border-radius:50%;border:1px solid var(--blue);box-shadow:0 0 12px rgba(38,153,255,.4)}.message.player{margin-left:clamp(15px,5vw,80px);padding:15px 20px 16px;border-left:2px solid var(--amber);background:linear-gradient(90deg,rgba(201,155,81,.095),transparent 85%)}.message.player:before{display:none}.message span{margin:0 0 9px;font:500 8px DM Mono;letter-spacing:.15em;color:#4f9cd6}.message.player span{color:var(--amber)}.message div{font:400 15px/1.72 Manrope;color:#d2dbe3;white-space:pre-wrap}.message.player div{color:#e8d7bd;font-size:14px;line-height:1.55}
.active-investigation .action-form{position:relative;z-index:3;margin:0;padding:17px 22px 15px;border-top:1px solid rgba(164,192,215,.18);background:linear-gradient(180deg,#091521,#071019);box-shadow:0 -20px 45px rgba(1,5,9,.45)}.active-investigation .action-form label{display:block;margin:0 0 9px;font:500 10px DM Mono;letter-spacing:.13em;color:#c99b51}.command-row{display:flex;height:51px}.active-investigation .action-form input{min-width:0;flex:1;border:1px solid #405365;border-right:0;background:#050b11;color:#eef4f8;padding:0 17px;font:400 15px Manrope;outline:0;box-shadow:inset 0 0 24px rgba(0,0,0,.3)}.active-investigation .action-form input:focus{border-color:#268fe6;box-shadow:inset 0 0 24px rgba(0,0,0,.3),0 0 0 1px rgba(38,153,255,.14)}.active-investigation .action-form input::placeholder{color:#637381}.active-investigation .action-form button[type="submit"]{border:0;background:linear-gradient(135deg,#b98539,#e4c381);color:#0d1114;padding:0 20px;font:600 10px DM Mono;letter-spacing:.09em}.active-investigation .action-form button[type="submit"] span{margin-left:17px}.quick-actions{display:flex;gap:6px;margin-top:9px}.quick-actions button{border:0;border-right:1px solid #2c3e4c;background:transparent;color:#738798;padding:5px 11px 5px 4px;font:500 8px DM Mono;letter-spacing:.1em;transition:.18s color}.quick-actions button:hover{color:#44aaff}.quick-actions button:last-child{border-right:0;color:#b58239}.quick-actions button:disabled{opacity:.35;cursor:wait}
.viewer-content{padding:28px 24px 36px;animation:file-in .22s ease-out}.viewer-kicker{margin:0 0 10px;font:500 8px DM Mono;letter-spacing:.15em;color:var(--blue)}.viewer-content h3{margin:0 0 26px;font:600 clamp(2rem,2.5vw,2.7rem)/.96 Manrope;letter-spacing:-.055em;color:#edf3f7}.viewer-facts{margin:0}.viewer-facts>div{display:grid;grid-template-columns:72px 1fr;gap:10px;padding:12px 0;border-top:1px solid rgba(164,192,215,.15)}.viewer-facts dt{font:500 8px DM Mono;text-transform:uppercase;letter-spacing:.1em;color:#60778a}.viewer-facts dd{margin:0;font:500 12px Manrope;color:#cbd5dd}.viewer-note{margin:24px 0 0;padding:16px;border-left:2px solid rgba(201,155,81,.74);background:rgba(201,155,81,.045);font:400 12px/1.65 Manrope;color:#8999a6}.viewer-list{list-style:none;padding:0;margin:0}.viewer-list li{padding:13px 0;border-top:1px solid rgba(164,192,215,.14);display:flex;justify-content:space-between;gap:10px}.viewer-list b{font:500 12px Manrope;color:#d6dfe6}.viewer-list span{font:500 8px DM Mono;color:#617587;text-transform:uppercase;letter-spacing:.07em}.empty-file{padding:24px 0;border-block:1px solid rgba(164,192,215,.14);font:400 12px/1.6 Manrope;color:#718393}.timeline-list{list-style:none;margin:0;padding:0}.timeline-list li{display:grid;grid-template-columns:72px 1fr;gap:12px;padding:14px 0;border-top:1px solid rgba(164,192,215,.14)}.timeline-list time{font:500 8px DM Mono;color:var(--amber);letter-spacing:.08em}.timeline-list span{font:400 12px/1.5 Manrope;color:#c8d1d9}@keyframes file-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
body.direct-play #caseDialog{width:100%;height:100dvh;max-height:100dvh;border:0;margin:0}
@media(min-width:641px){#caseDialog{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0}}
@media(max-width:1100px){.workspace-header{grid-template-columns:190px 1fr auto 44px}.workspace-brand{padding-inline:12px}.workspace-brand img{width:38px;height:38px}.investigation-workspace{grid-template-columns:190px minmax(430px,1fr) 280px}.workspace-header:after{left:190px}.workspace-status span:first-child{display:none}.case-file-nav .pane-label,.file-nav-item{padding-inline:12px}}
@media(min-width:821px) and (max-width:1100px){body.direct-play{height:var(--mobile-vh,100dvh)}body.direct-play #caseDialog{position:fixed;inset:0;top:var(--mobile-top,0);height:var(--mobile-vh,100dvh);max-height:none}.investigation-workspace{grid-template-columns:170px minmax(0,1fr) 250px}.workspace-header{grid-template-columns:170px minmax(0,1fr) auto 44px}.workspace-header:after{left:170px}.active-investigation .action-form{padding:12px 14px 11px}.quick-actions{gap:3px}.quick-actions button{padding-inline:3px}.keyboard-open .workspace-header{height:48px}.keyboard-open .investigation-workspace{height:calc(100% - 48px)}.keyboard-open .workspace-brand img{width:31px;height:31px}.keyboard-open .case-identity span,.keyboard-open .workspace-status{display:none}.keyboard-open .active-investigation{grid-template-rows:38px minmax(80px,1fr) auto}.keyboard-open .scene-wash{display:none}.keyboard-open .active-investigation .transcript{padding-top:18px;background:#08111a}.keyboard-open .active-investigation .action-form{padding-block:7px}.keyboard-open .quick-actions{margin-top:5px}.keyboard-open .quick-actions button{padding-block:3px}}
@media(max-width:820px){
  html,body{width:100%;max-width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
  #caseDialog,body.direct-play #caseDialog{position:fixed;inset:0;top:var(--mobile-top,0);width:100%;max-width:100vw;height:var(--mobile-vh,100dvh);max-height:none;margin:0;border:0;border-radius:0;overflow:hidden}
  .workspace-header{height:62px;grid-template-columns:minmax(0,1fr) auto 44px;padding-top:env(safe-area-inset-top);background:linear-gradient(100deg,#07131e,#08111a 72%,#050c13)}
  .workspace-header:after{left:16px;width:52%;bottom:-1px}
  .workspace-brand{position:absolute;left:13px;top:max(5px,env(safe-area-inset-top));height:24px;border:0;padding:0;gap:7px}.workspace-brand img{display:none}.workspace-brand div{display:block;font-size:8px;line-height:1.2}.workspace-brand b{display:none}
  .case-identity{min-width:0;padding:18px 8px 3px 14px;gap:0}.case-identity span{display:none}.case-identity strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.15;letter-spacing:-.025em}
  .workspace-status{display:none}
  .mobile-case-file-button{display:block;min-width:72px;height:42px;padding:0 10px;border:1px solid rgba(70,145,201,.34);background:rgba(18,69,107,.12);color:#c0cfda;font:500 9px DM Mono;letter-spacing:.08em;touch-action:manipulation}.mobile-case-file-button span{color:var(--blue)}
  .workspace-header .close{width:44px;height:44px;font-size:24px;touch-action:manipulation}
  .investigation-workspace{height:calc(100% - 62px);display:block;position:relative;overflow:hidden}
  .active-investigation{width:100%;height:100%;display:grid;grid-template-rows:42px minmax(0,1fr) auto;overflow:hidden}
  .scene-header{height:42px;padding:0 14px;background:rgba(5,13,21,.96)}.scene-header>div{gap:0}.scene-header span{display:none}.scene-header strong{font-size:9px;letter-spacing:.08em}.scene-header small{font-size:8px}
  .scene-wash{top:42px;height:112px;opacity:.39;background-position:center 43%}
  .active-investigation .transcript{width:100%;max-width:100%;height:auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding:92px 17px 22px;background:linear-gradient(180deg,transparent 0 70px,#08111a 124px);scroll-padding:12px 0;overscroll-behavior-y:contain}
  .message{max-width:100%;padding-left:22px;padding-bottom:22px;overflow-wrap:anywhere}.message:before{left:1px}.message.player{margin-left:9px;padding:13px 14px 14px}.message div{max-width:100%;font-size:15px;line-height:1.62;overflow-wrap:anywhere;word-break:break-word}.message.player div{font-size:14px}
  .latest-response-button{position:absolute;z-index:8;right:12px;bottom:calc(var(--command-height,150px) + 10px);min-height:40px;padding:0 13px;border:1px solid rgba(38,153,255,.42);background:rgba(5,15,24,.94);color:#91caff;font:500 8px DM Mono;letter-spacing:.1em;box-shadow:0 8px 24px rgba(0,0,0,.4);opacity:0;pointer-events:none;transform:translateY(5px);transition:.18s opacity,.18s transform}.latest-response-button.visible{display:block;opacity:1;pointer-events:auto;transform:none}.latest-response-button span{margin-left:8px;color:var(--amber)}
  .active-investigation .action-form{width:100%;max-width:100%;min-width:0;padding:11px 12px max(10px,env(safe-area-inset-bottom));box-shadow:0 -12px 32px rgba(1,5,9,.7)}
  .active-investigation .action-form label{margin-bottom:7px;font-size:9px}
  .command-row{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;max-width:100%;height:48px;min-width:0}.active-investigation .action-form input{display:block;width:100%;max-width:100%;min-width:0;flex:1 1 auto;padding:0 12px;font-size:16px;border-radius:0;overflow:hidden;text-overflow:clip}.active-investigation .action-form button[type="submit"]{flex:0 0 auto;min-width:91px;max-width:110px;padding:0 10px;font-size:9px;white-space:nowrap;touch-action:manipulation}.active-investigation .action-form button[type="submit"] span{margin-left:7px}
  .quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:100%;gap:5px;margin-top:7px;overflow:visible}.quick-actions button{min-width:0;height:35px;padding:0 4px;border:1px solid rgba(78,103,124,.38);background:rgba(4,10,16,.32);font-size:8px;text-align:center;touch-action:manipulation}.quick-actions button:last-child{border:1px solid rgba(181,130,57,.35)}
  .case-file-nav,.case-viewer{display:block;position:absolute;z-index:20;left:0;right:0;width:100%;max-width:100%;transform:translateX(-102%);transition:transform .25s cubic-bezier(.2,.75,.2,1);border:0;background:linear-gradient(145deg,#091725,#050c13 72%)}
  .case-file-nav{top:0;height:222px;box-shadow:16px 0 55px rgba(0,0,0,.68)}
  .case-viewer{top:222px;bottom:0;overflow-y:auto;-webkit-overflow-scrolling:touch;border-top:1px solid rgba(164,192,215,.17)}
  .case-file-open .case-file-nav,.case-file-open .case-viewer{transform:translateX(0)}
  .mobile-drawer-header{display:flex;height:49px;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid rgba(164,192,215,.17);font:500 10px DM Mono;color:#d4e0e8;letter-spacing:.12em}.mobile-drawer-header button{width:44px;height:44px;border:0;background:transparent;color:#a9b7c2;font:300 25px Manrope}
  .case-file-nav>.pane-label,.file-classification{display:none}.case-file-nav nav{display:grid;grid-template-columns:repeat(2,1fr);padding:8px 10px;gap:3px}.file-nav-item{height:50px;padding:0 12px;grid-template-columns:24px 1fr auto;border-left-width:2px;font-size:13px;touch-action:manipulation}.file-nav-item>span{font-size:8px}.file-nav-item>b{width:20px;height:20px}
  .case-viewer .pane-label{height:43px;padding:0 15px}.viewer-content{padding:22px 18px calc(28px + env(safe-area-inset-bottom))}.viewer-content h3{font-size:2.2rem;margin-bottom:22px}.viewer-facts>div{padding:11px 0}.viewer-list li{min-height:48px;align-items:center}
  .keyboard-open .workspace-header{display:none}.keyboard-open .investigation-workspace{height:100%}.keyboard-open .active-investigation{grid-template-rows:34px minmax(90px,1fr) auto}.keyboard-open .scene-header{height:34px;padding-inline:12px}.keyboard-open .scene-header strong{font-size:8px}.keyboard-open .scene-header small{font-size:8px}.keyboard-open .scene-wash{display:none}.keyboard-open .active-investigation .transcript{padding:12px 14px 8px;background:#08111a;scroll-padding-top:8px}.keyboard-open .message{padding-bottom:14px}.keyboard-open .message.player{padding:10px 12px}.keyboard-open .active-investigation .action-form{padding:7px 10px max(6px,env(safe-area-inset-bottom));box-shadow:0 -8px 24px rgba(1,5,9,.72)}.keyboard-open .active-investigation .action-form label{margin-bottom:5px}.keyboard-open .command-row{height:46px}.keyboard-open .quick-actions{display:flex;width:100%;gap:4px;margin-top:5px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.keyboard-open .quick-actions::-webkit-scrollbar{display:none}.keyboard-open .quick-actions button{flex:0 0 auto;min-width:72px;height:36px;padding:0 9px;white-space:nowrap}.keyboard-open .latest-response-button{bottom:calc(var(--command-height,104px) + 6px)}
  .notes-keyboard-open .case-file-nav{display:none}.notes-keyboard-open .case-viewer{top:0}.notes-keyboard-open .case-viewer .pane-label{position:sticky;top:0;z-index:2;background:#07131e}.notes-keyboard-open .viewer-content{padding-top:16px}.notes-keyboard-open .viewer-content h3{font-size:1.7rem;margin-bottom:14px}.notes-keyboard-open .notes-editor{min-height:clamp(120px,42dvh,250px)}
}
@media(max-width:820px) and (orientation:landscape){.workspace-header{height:56px}.investigation-workspace{height:calc(100% - 56px)}.workspace-brand{top:max(4px,env(safe-area-inset-top))}.case-identity{padding-top:15px}.case-file-nav{height:164px}.case-viewer{top:164px}.case-file-nav nav{grid-template-columns:repeat(3,1fr);padding-block:6px}.file-nav-item{height:45px}.active-investigation .action-form{padding-block:8px}.quick-actions button{height:31px}.keyboard-open .active-investigation{grid-template-rows:30px minmax(64px,1fr) auto}.keyboard-open .scene-header{height:30px}.keyboard-open .active-investigation .action-form{padding-block:5px}.keyboard-open .active-investigation .action-form label{display:none}}

/* Case 001 cinematic opening */
.case-cinematic[hidden]{display:none!important}.case-cinematic{position:absolute;z-index:50;inset:0;overflow:hidden;background:#02060a;opacity:1;transition:opacity .65s ease}.case-cinematic.is-ending{opacity:0;pointer-events:none}.cinematic-shot{position:absolute;inset:0;margin:0;opacity:0;pointer-events:none;transition:opacity 1.05s ease}.cinematic-shot.is-active{z-index:2;opacity:1;pointer-events:auto}.cinematic-shot:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(1,5,9,.79) 0%,rgba(1,5,9,.34) 52%,rgba(1,5,9,.4) 100%),linear-gradient(0deg,rgba(1,5,9,.84) 0%,transparent 58%,rgba(1,5,9,.35) 100%)}.cinematic-shot img{width:100%;height:100%;object-fit:cover;object-position:center;transform:scale(1);transition:transform 10s linear;filter:saturate(.82) brightness(.83)}.cinematic-shot.is-active img{transform:scale(1.025)}.cinematic-shot figcaption{position:absolute;z-index:2;left:clamp(28px,7vw,104px);right:clamp(28px,7vw,104px);bottom:clamp(46px,10vh,118px);max-width:760px;color:#f0f4f7;text-shadow:0 2px 20px rgba(0,0,0,.82)}.cinematic-meta{display:flex;gap:18px;margin:0 0 24px;font:500 clamp(11px,1vw,14px) DM Mono;letter-spacing:.18em;color:#92a9ba}.cinematic-meta span+span{color:#45aaff}.cinematic-statement,.cinematic-line,.cinematic-meta,.cinematic-enter{opacity:0;transform:translateY(5px)}.cinematic-statement{margin:0;max-width:760px;font:500 clamp(2rem,4.5vw,5.2rem)/1.03 Manrope;letter-spacing:-.045em}.cinematic-line{margin:22px 0 0;font:400 clamp(1rem,1.7vw,1.35rem)/1.5 Manrope;color:#d2dbe3}.cinematic-shot.is-active .cinematic-meta,.cinematic-shot.is-active .cinematic-statement{animation:cinematic-text .65s .35s ease forwards}.cinematic-shot.is-active .cinematic-line{animation:cinematic-text .65s 1.25s ease forwards}.cinematic-enter{display:block;margin:28px 0 0;padding:13px 0;border:0;border-bottom:1px solid rgba(201,155,81,.65);background:transparent;color:#c99b51;font:500 clamp(10px,1vw,13px) DM Mono;letter-spacing:.13em;text-align:left}.cinematic-enter span{margin-left:13px}.cinematic-shot.is-active .cinematic-enter{animation:cinematic-text .65s 2.15s ease forwards}.cinematic-skip{position:absolute;z-index:5;right:max(24px,env(safe-area-inset-right));top:max(22px,env(safe-area-inset-top));min-width:82px;min-height:42px;border:1px solid rgba(181,204,222,.28);background:rgba(2,7,11,.45);color:#aebdca;font:500 9px DM Mono;letter-spacing:.12em;backdrop-filter:blur(8px)}.cinematic-skip span{margin-left:8px;color:#3ca9ff}@keyframes cinematic-text{to{opacity:1;transform:none}}
@media(max-width:820px){.cinematic-shot:after{background:linear-gradient(0deg,rgba(1,5,9,.91) 0%,rgba(1,5,9,.28) 64%,rgba(1,5,9,.38) 100%)}.cinematic-shot:nth-of-type(1) img{object-position:50% center}.cinematic-shot:nth-of-type(2) img{object-position:60% center}.cinematic-shot:nth-of-type(3) img{object-position:41% center}.cinematic-shot figcaption{left:max(22px,env(safe-area-inset-left));right:max(22px,env(safe-area-inset-right));bottom:max(42px,calc(env(safe-area-inset-bottom) + 28px));max-width:560px}.cinematic-meta{margin-bottom:18px;font-size:10px}.cinematic-statement{font-size:clamp(1.8rem,9vw,3.15rem);line-height:1.04}.cinematic-line{margin-top:17px;font-size:1rem;line-height:1.42}.cinematic-enter{min-height:45px;margin-top:22px;font-size:10px}.cinematic-skip{right:max(14px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));min-width:76px}}
@media(prefers-reduced-motion:reduce){.cinematic-shot,.case-cinematic{transition-duration:.25s}.cinematic-shot img,.cinematic-shot.is-active img{transform:none;transition:none}.cinematic-statement,.cinematic-line,.cinematic-meta,.cinematic-enter{transform:none}.cinematic-shot.is-active .cinematic-meta,.cinematic-shot.is-active .cinematic-statement,.cinematic-shot.is-active .cinematic-line,.cinematic-shot.is-active .cinematic-enter{animation-duration:.25s}}

/* Local case continuity controls */
.cinematic-shot.is-active .cinematic-line-late{animation-delay:2.35s}.cinematic-final-line{color:#c99b51;font-family:DM Mono;letter-spacing:.08em;text-transform:uppercase}.cinematic-hold:after{background:linear-gradient(90deg,rgba(1,5,9,.82),rgba(1,5,9,.48)),linear-gradient(0deg,rgba(1,5,9,.86),transparent 58%,rgba(1,5,9,.42))}.cinematic-skip{min-width:112px}.case-tools{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 18px 16px}.case-tools button{min-height:38px;border:1px solid rgba(83,119,148,.3);background:rgba(6,14,22,.75);color:#8fa4b4;padding:0 7px;font:500 7px DM Mono;letter-spacing:.08em}.case-tools button:hover{border-color:#2699ff;color:#d8e8f4}.case-tools button:first-child{color:#e2ae5e;border-color:rgba(201,155,81,.3)}.case-tools span{grid-column:1/-1;min-height:11px;text-align:center;font:500 7px DM Mono;letter-spacing:.09em;color:#55bbff}.file-classification{margin-bottom:8px}.resume-prompt[hidden]{display:none!important}.resume-prompt{position:absolute;z-index:55;inset:0;display:grid;place-items:center;padding:32px;background:linear-gradient(rgba(2,7,12,.9),rgba(2,7,12,.96)),url('assets/valen-opening-estate.png') center/cover no-repeat}.resume-panel{width:min(560px,100%);padding:clamp(28px,5vw,52px);border:1px solid rgba(108,151,184,.35);background:linear-gradient(145deg,rgba(8,21,33,.97),rgba(4,10,16,.98));box-shadow:0 30px 90px rgba(0,0,0,.65)}.resume-kicker{margin:0 0 17px;font:500 10px DM Mono;letter-spacing:.14em;color:#2699ff}.resume-panel h2{margin:0;font:600 clamp(2rem,4vw,3.5rem)/1 Manrope;letter-spacing:-.045em;color:#eef4f8}.resume-panel>p:not(.resume-kicker){margin:21px 0 8px;font:400 15px/1.55 Manrope;color:#aebbc6}.resume-panel small{display:block;min-height:16px;font:500 8px DM Mono;letter-spacing:.09em;color:#647b8d}.resume-actions{display:flex;gap:10px;margin-top:30px}.resume-actions button{min-height:48px;padding:0 17px;font:500 9px DM Mono;letter-spacing:.09em}.resume-primary{border:0;background:linear-gradient(135deg,#b98539,#e4c381);color:#0d1114}.resume-primary span{margin-left:14px}.resume-secondary{border:1px solid rgba(130,159,183,.35);background:transparent;color:#99aab7}
@media(max-width:820px){.cinematic-shot[data-cinematic-shot="0"] img,.cinematic-shot[data-cinematic-shot="4"] img{object-position:50% center}.cinematic-shot[data-cinematic-shot="1"] img{object-position:39% center}.cinematic-shot[data-cinematic-shot="2"] img,.cinematic-shot[data-cinematic-shot="3"] img{object-position:55% center}.cinematic-shot[data-cinematic-shot="5"] img{object-position:54% center}.case-file-nav{height:276px}.case-viewer{top:276px}.case-file-nav nav{padding-block:5px}.file-nav-item{height:43px}.case-tools{margin:0 10px 8px;gap:5px}.case-tools button{min-height:38px}.case-tools span{min-height:8px}.resume-prompt{padding:max(20px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}.resume-panel{padding:28px 22px}.resume-panel h2{font-size:2rem}.resume-actions{display:grid}.resume-actions button{width:100%}}
@media(max-width:820px) and (orientation:landscape){.case-file-nav{height:200px}.case-viewer{top:200px}.case-file-nav nav{padding-block:3px}.file-nav-item{height:38px}.case-tools{position:absolute;right:8px;bottom:5px;width:calc(66.666% - 16px);margin:0}.case-tools span{display:none}}
.notes-label{display:block;margin:0 0 9px;font:500 8px DM Mono;letter-spacing:.1em;color:#617b8e}.notes-editor{display:block;width:100%;min-width:0;min-height:170px;resize:vertical;border:1px solid rgba(106,142,170,.28);background:#040b11;color:#d6e0e7;padding:14px;font:400 16px/1.55 Manrope;outline:0;scroll-margin:72px 0}.notes-editor:focus{border-color:#2699ff;box-shadow:0 0 0 1px rgba(38,153,255,.12)}.notes-editor::placeholder{color:#536879}

/* Shared investigation shell. All case-specific display values come from cases.js. */
#caseDialog:not([open]){display:none}
#caseDialog[open],body.direct-play #caseDialog[open]{display:flex;flex-direction:column}
.workspace-header{flex:0 0 76px;height:76px;display:flex;justify-content:space-between;gap:16px;padding:0 22px;min-width:0}
.workspace-header:after{left:22px;width:35%}
.workspace-brand{height:auto;flex:0 1 auto;min-width:0;padding:0;border:0;white-space:nowrap;font:500 11px/1.2 DM Mono;letter-spacing:.09em}
.workspace-brand img{width:52px;height:52px}
.workspace-brand span{color:#edf2f6}.workspace-brand b{color:#2699ff;font-weight:500}
.workspace-public-nav{display:flex;align-items:center;gap:clamp(12px,2vw,30px);margin:auto;white-space:nowrap}
.workspace-public-nav a{font:500 11px DM Mono;color:#a7b1bd;letter-spacing:.05em}.workspace-public-nav a:hover{color:#eef2f6}
.workspace-public-nav .workspace-play-link{color:#c99b51;border:1px solid rgba(201,155,81,.55);padding:9px 13px}
.workspace-header-actions{display:flex;align-items:center;gap:12px;min-width:0}.workspace-service{font:500 9px DM Mono;letter-spacing:.07em;color:#68d98e;white-space:nowrap}.workspace-header .close{flex:0 0 44px}
.workspace-mobile-nav{display:none}
.case-status-bar{height:62px;flex:0 0 62px;min-width:0;display:flex;align-items:center;gap:20px;padding:0 22px;border-bottom:1px solid rgba(164,192,215,.2);background:linear-gradient(90deg,#0b1a28,#08111b)}
.case-status-identity{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.case-status-identity small,.case-location-control small{font:500 9px DM Mono;letter-spacing:.12em;color:#609dc8}.case-status-identity strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 15px Manrope;color:#e9f1f6}
.case-location-control{flex:0 1 245px;min-width:0;min-height:48px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-content:center;column-gap:10px;text-align:left;padding:5px 12px;border:1px solid rgba(74,137,184,.4);background:rgba(32,112,179,.075);cursor:pointer}.case-location-control:hover,.case-location-control:focus-visible{border-color:#2699ff}.case-location-control small{grid-column:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.case-location-control strong{grid-column:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 11px DM Mono;color:#e4edf5}.case-location-control>span{grid-column:2;grid-row:1/3;align-self:center;color:#c99b51}
.case-status-facts{display:flex;gap:18px;white-space:nowrap}.case-status-facts span{display:flex;flex-direction:column;gap:4px;font:500 8px DM Mono;letter-spacing:.08em;color:#738b9d}.case-status-facts b{max-width:160px;overflow:hidden;text-overflow:ellipsis;font-size:10px;font-weight:500;color:#b8dfff}.header-save-status{min-width:66px;text-align:right;font:500 9px DM Mono;color:#77c9fd;white-space:nowrap}
.investigation-workspace{height:auto;flex:1 1 auto;min-height:0;grid-template-columns:210px minmax(0,1fr) minmax(250px,305px)}
.active-investigation:not(.has-scene-image) .scene-wash{display:none}.active-investigation:not(.has-scene-image) .transcript{padding-top:28px;background:#08111a}
.case-file-nav{overflow-y:auto}.case-tools{margin-top:auto}.scene-wash{background-size:cover;background-position:center 43%}
.active-investigation .action-form input{font-size:16px}.active-investigation .transcript{scrollbar-width:thin}.message.movement{margin:0 0 18px;padding:9px 14px;border-left:2px solid #477394;background:rgba(38,153,255,.045)}.message.movement:before{display:none}.message.movement span{font-size:9px}.message.movement div{font-size:13px;color:#a6bbc9}
.viewer-records{display:grid}.viewer-record{width:100%;min-width:0;text-align:left;display:flex;flex-direction:column;gap:6px;min-height:55px;padding:13px 0;border:0;border-top:1px solid rgba(164,192,215,.15);background:transparent;cursor:pointer}.viewer-record strong{font:600 13px Manrope;color:#e1ebf2;overflow-wrap:anywhere}.viewer-record span{font:400 12px/1.5 Manrope;color:#8da1af;overflow-wrap:anywhere}.viewer-record:hover strong{color:#64b8ff}.viewer-back{min-height:38px;margin-bottom:19px;padding:0 9px;border:1px solid rgba(115,157,188,.3);background:transparent;color:#8fc8f3;font:500 9px DM Mono;cursor:pointer}.viewer-image{display:block;width:100%;height:auto;margin:0 0 16px;border:1px solid rgba(118,155,182,.27)}
.note-form{display:grid;gap:9px}.note-form label{font-size:10px}.note-form .notes-editor{min-height:120px;max-height:240px}.note-save{justify-self:start;min-height:40px;padding:0 16px;border:0;background:linear-gradient(135deg,#b98539,#e4c381);color:#0d1114;font:600 10px DM Mono;cursor:pointer}.note-list{display:grid;gap:12px;margin-top:20px}.saved-note{padding:15px;border:1px solid rgba(106,142,170,.24);background:#07131e;overflow-wrap:anywhere}.saved-note time{font:500 9px DM Mono;color:#67a8d4}.saved-note p{margin:11px 0 15px;font:400 13px/1.6 Manrope;color:#d0dce5;white-space:pre-wrap}.note-controls{display:flex;gap:8px}.note-controls button{min-height:36px;padding:0 10px;border:1px solid rgba(118,155,182,.35);background:transparent;color:#a9c8df;font:500 9px DM Mono;cursor:pointer}
.command-save-status{display:none;position:absolute;top:18px;right:22px;color:#77c9fd;font:500 9px DM Mono;letter-spacing:.06em}
.move-panel[hidden]{display:none}.move-panel{position:absolute;z-index:58;inset:0;display:flex;flex-direction:column;align-items:center;overflow:auto;padding:clamp(18px,5vh,60px) 18px;background:rgba(2,6,11,.92);backdrop-filter:blur(8px)}.move-panel-header,.move-list{width:min(620px,100%)}.move-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;border:1px solid rgba(126,165,197,.33);border-bottom:0;background:#0b1b29;color:#76bbec;font:500 11px DM Mono;letter-spacing:.08em}.move-panel-header button{width:42px;height:42px;border:0;background:transparent;color:#e4edf5;font-size:24px;cursor:pointer}.move-list{padding:15px;border:1px solid rgba(126,165,197,.33);background:#07131e}.move-item{display:flex;align-items:center;gap:14px;width:100%;min-height:76px;margin-bottom:8px;padding:9px;border:1px solid rgba(108,151,184,.35);background:#0b1c2b;text-align:left;cursor:pointer}.move-item:last-child{margin-bottom:0}.move-item:hover:not(:disabled){border-color:#2699ff}.move-item:disabled{opacity:.62;cursor:default}.move-item img{width:74px;height:54px;object-fit:cover}.move-item span{display:flex;flex-direction:column;min-width:0;gap:7px}.move-item strong{font:600 14px Manrope;color:#e5eef5}.move-item small{font:500 9px DM Mono;color:#8eaac0;line-height:1.5}
@media(max-width:1100px){.workspace-header{gap:9px;padding-inline:12px}.workspace-brand{font-size:9px}.workspace-brand img{width:40px;height:40px}.workspace-public-nav{gap:13px}.workspace-public-nav a{font-size:10px}.workspace-service{font-size:8px}.investigation-workspace{grid-template-columns:174px minmax(0,1fr) 246px}.case-status-bar{padding-inline:12px;gap:10px}.case-status-facts{gap:8px}.header-save-status{min-width:0}.case-location-control{flex-basis:200px}}
@media(min-width:821px) and (max-width:1100px){body.direct-play #caseDialog{height:var(--mobile-vh,100dvh)}.investigation-workspace{height:auto}.keyboard-open .workspace-header{height:48px;flex-basis:48px}.keyboard-open .case-status-bar{height:36px;flex-basis:36px}.keyboard-open .investigation-workspace{height:auto}.keyboard-open .workspace-public-nav,.keyboard-open .workspace-service{display:none}}
@media(max-width:820px){
  #caseDialog,body.direct-play #caseDialog{width:100%;max-width:100vw;height:var(--mobile-vh,100dvh);max-height:none}
  .workspace-header{height:68px;flex-basis:68px;display:flex;align-items:center;padding:max(4px,env(safe-area-inset-top)) 12px 4px;gap:7px}.workspace-header:after{left:12px}
  .workspace-brand{position:static;height:auto;flex:0 1 auto;min-width:0;gap:7px;overflow:hidden}.workspace-brand img{display:block;width:40px;height:40px;flex:none}.workspace-brand span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.workspace-brand b{display:inline;font-weight:500}
  .workspace-public-nav{display:flex;gap:9px;margin-left:auto}.workspace-public-nav a{font-size:9px}.workspace-public-nav .workspace-play-link{padding:7px 9px}.workspace-service{display:none}.workspace-header-actions{gap:1px}.workspace-header .close{width:44px;height:44px}
  .case-status-bar{height:61px;flex-basis:61px;padding:5px 12px;gap:8px}.case-status-identity{flex:1;min-width:0}.case-status-identity small{font-size:8px}.case-status-identity strong{font-size:11px}.case-location-control{flex:0 1 185px;min-height:45px;padding:5px 8px}.case-location-control small{font-size:7px}.case-location-control strong{font-size:9px}.case-status-facts,.header-save-status{display:none}.mobile-case-file-button{display:block;min-width:75px;flex:0 0 auto;height:44px}
  .investigation-workspace{height:auto;flex:1 1 auto;min-height:0;display:block}.active-investigation{height:100%}.scene-header{min-height:42px}.scene-header span{display:block;font-size:8px}.scene-header strong{font-size:10px}
  .case-file-nav{height:222px;overflow:visible}.case-viewer{top:222px}.case-file-nav .case-tools{display:none}.case-viewer .viewer-content{padding-bottom:calc(30px + env(safe-area-inset-bottom))}
  .quick-actions{grid-template-columns:repeat(5,minmax(0,1fr))}.quick-actions button{font-size:7px;min-height:38px}.quick-actions button:last-child{color:#c99b51}
  .keyboard-open .workspace-header{display:none}.keyboard-open .case-status-bar{height:36px;flex-basis:36px;padding-block:2px}.keyboard-open .case-status-identity,.keyboard-open .mobile-case-file-button{display:none}.keyboard-open .case-location-control{flex:1;min-height:30px;border:0;background:transparent;padding:0}.keyboard-open .case-location-control small{display:none}.keyboard-open .case-location-control strong{font-size:9px}.keyboard-open .investigation-workspace{height:auto}.keyboard-open .quick-actions{display:flex;overflow-x:auto;overflow-y:hidden}.keyboard-open .quick-actions button{min-width:84px;min-height:36px}.notes-keyboard-open .case-viewer{top:0}
}
@media(max-width:560px){.workspace-public-nav{display:none}.workspace-mobile-nav{display:block;position:relative}.workspace-mobile-nav summary{width:44px;height:44px;display:grid;place-items:center;list-style:none;cursor:pointer}.workspace-mobile-nav summary::-webkit-details-marker{display:none}.workspace-hamburger,.workspace-hamburger:before,.workspace-hamburger:after{display:block;width:20px;height:2px;background:#cbd8e2;position:relative}.workspace-hamburger:before,.workspace-hamburger:after{content:"";position:absolute;left:0}.workspace-hamburger:before{top:-6px}.workspace-hamburger:after{top:6px}.workspace-mobile-nav[open] .workspace-hamburger{background:transparent}.workspace-mobile-nav[open] .workspace-hamburger:before{transform:translateY(6px) rotate(45deg)}.workspace-mobile-nav[open] .workspace-hamburger:after{transform:translateY(-6px) rotate(-45deg)}.workspace-mobile-nav nav{position:absolute;z-index:61;top:49px;right:0;width:min(260px,calc(100vw - 26px));display:grid;padding:8px;border:1px solid rgba(166,190,211,.35);background:#07131d;box-shadow:0 20px 48px rgba(0,0,0,.6)}.workspace-mobile-nav nav a,.workspace-mobile-nav nav span{display:flex;align-items:center;min-height:45px;padding:0 12px;border-bottom:1px solid rgba(223,232,240,.12);color:#cbd9e2;font:500 11px DM Mono;text-transform:uppercase}.workspace-mobile-nav nav a:nth-of-type(4){color:#c99b51}.workspace-mobile-nav nav span{border:0;color:#8cafc5}.workspace-header{height:70px;flex-basis:70px}.case-status-identity{display:none}.case-location-control{flex:1}.header-save-status{display:block;position:absolute;right:92px;top:70px;min-width:0;font-size:8px}.case-status-bar{position:relative}.quick-actions{grid-template-columns:repeat(5,minmax(0,1fr))}.quick-actions button{font-size:6.5px;letter-spacing:0}.keyboard-open .header-save-status{display:none}}
@media(max-width:400px){.quick-actions{gap:3px}.quick-actions button{font-size:6px}.workspace-brand span{font-size:8px}.case-location-control strong{font-size:8px}}
@media(max-width:820px) and (orientation:landscape){.workspace-header{height:54px;flex-basis:54px}.case-status-bar{height:47px;flex-basis:47px}.case-file-nav{height:194px}.case-viewer{top:194px}.keyboard-open .case-status-bar{height:32px;flex-basis:32px}.keyboard-open .case-viewer{top:0}}
@media(max-width:820px){.command-save-status{display:block;top:12px;right:12px}.quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.quick-actions button{font-size:9px;letter-spacing:.03em;height:39px}.quick-actions button:last-child{grid-column:span 2}.keyboard-open .quick-actions button:last-child{min-width:84px}}
@media(max-width:820px){.mobile-case-file-button{min-width:93px;white-space:nowrap}.mobile-case-file-button b{margin-left:4px;color:#71bfff;font:500 10px DM Mono}}
@media(max-width:560px){.header-save-status{display:none}}

/* Phone investigation presentation. The desktop and tablet workspace stays intact. */
.scene-intro{display:none}
.quick-actions button>span{display:none}
.viewer-meta{margin:10px 0;color:#80aecd;font:500 10px/1.5 DM Mono;letter-spacing:.06em}
.file-nav-item[data-count]:not([data-count=""]):after{content:attr(data-count);min-width:19px;height:19px;display:grid;place-items:center;border:1px solid rgba(73,146,199,.4);border-radius:50%;color:#80c6f5;font:500 9px DM Mono}
.file-nav-item[data-view="evidence"]:after{display:none}
@media(max-width:560px){
  .workspace-header{height:65px;flex-basis:65px;padding-inline:14px}.workspace-brand img{width:42px;height:42px}.workspace-brand span{font-size:clamp(8px,2.35vw,10px)}
  .case-status-bar{height:137px;flex-basis:137px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:51px 70px;gap:5px 0;padding:8px 12px 9px;background:linear-gradient(135deg,#0a1926,#07111b)}
  .case-status-identity{display:flex;grid-column:1;grid-row:1;gap:4px;align-self:center}.case-status-identity small{font-size:0}.case-status-identity small:after{content:attr(data-mobile);font:500 10px DM Mono;letter-spacing:.12em;color:#75bdf1}.case-status-identity strong{font-size:clamp(13px,3.9vw,17px);font-weight:700;letter-spacing:-.015em;text-transform:uppercase;line-height:1.15}
  .mobile-case-file-button{grid-column:2;grid-row:1;min-width:100px;height:44px;padding:0 9px;margin-left:7px;border-radius:6px;font-size:9px;color:#dbe6ef}.mobile-case-file-button>span{font-size:21px;vertical-align:-2px;margin-right:3px}.mobile-case-file-button b{display:none}
  .case-location-control{grid-column:1;grid-row:2;flex:none;width:100%;height:70px;min-height:0;padding:9px 9px 8px;border-radius:6px 0 0 6px;border-color:rgba(111,154,185,.33);background:#0b1d2c}.case-location-control small{font-size:8px;color:#8ba9bc}.case-location-control strong{font:600 12px Manrope;color:#d8b46f}.case-location-control>span{font-size:18px}
  .case-status-facts{display:grid;grid-column:2;grid-row:2;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);width:clamp(184px,52vw,235px);height:70px;gap:0;white-space:normal}.case-status-facts span{display:flex;justify-content:center;min-width:0;padding:8px 6px;border:1px solid rgba(111,154,185,.33);border-left:0;background:#0b1d2c;font-size:8px;letter-spacing:0;color:#8ba9bc}.case-status-facts span:last-child{border-radius:0 6px 6px 0}.case-status-facts b{max-width:100%;white-space:nowrap;font:600 11px Manrope;color:#8cc9f9}.case-status-facts span:last-child b{color:#e6edf4}
  .active-investigation{grid-template-rows:0 minmax(0,1fr) auto}.scene-header{height:0;min-height:0;overflow:hidden;border:0}.scene-wash{display:none}
  .active-investigation .transcript,.active-investigation:not(.has-scene-image) .transcript{padding:0 12px 16px;background:#08111a;scroll-padding-top:8px}.scene-intro:not([hidden]){display:block;padding:12px 0 4px}.scene-intro img{display:block;width:100%;max-height:clamp(155px,27dvh,230px);aspect-ratio:2/1;object-fit:cover;object-position:center 43%;border:1px solid rgba(136,174,198,.27);border-radius:8px}.scene-intro img[hidden],.scene-intro p[hidden]{display:none}.scene-intro p{margin:12px 3px 6px;font:400 14px/1.55 Manrope;color:#c2d0dd}
  .message{padding:0;margin:0 0 10px;border:1px solid rgba(93,136,166,.18);border-radius:7px;background:#132434;overflow-wrap:anywhere}.message+.message{padding-top:0}.message:before{display:none}.message span{margin:0 0 5px;font-size:9px;color:#8fcaff}.message div{font-size:14px;line-height:1.56}.message.system{padding:13px 14px}.message.player{margin:0 0 10px;padding:12px 14px;border:1px solid rgba(45,135,203,.18);background:#103251}.message.player span{color:#8fcaff}.message.player div{font-size:14px;color:#e8f0f6}.message.movement{margin:0 0 10px;padding:10px 13px;border:1px solid rgba(83,141,183,.26);border-left:2px solid #77b9e5;background:#0b1c2a}.message.discovery{border-left:2px solid #c99b51;background:#192633}.message.discovery span{color:#e2c48d}
  .active-investigation .action-form{padding:10px 12px max(10px,env(safe-area-inset-bottom));background:#0a1723}.active-investigation .action-form label{margin-bottom:7px}.command-row{height:48px}.active-investigation .action-form button[type="submit"]{min-width:56px;max-width:56px;padding:0;font-size:0}.active-investigation .action-form button[type="submit"] span{margin:0;font-size:25px;line-height:1}.quick-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:9px}.quick-actions button,.quick-actions button:last-child{grid-column:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;height:55px;min-height:44px;padding:3px 1px;border:1px solid rgba(103,146,178,.36);border-radius:6px;background:#0d1d2c;color:#d3e1ed;font:500 clamp(7px,2vw,9px)/1.1 DM Mono;letter-spacing:0;white-space:normal}.quick-actions button>span{display:block;font:400 21px/1 Manrope;color:#a8cdeb}.quick-actions button:last-child{border-color:rgba(201,155,81,.45);color:#d8b46f}.quick-actions button:last-child>span{color:#d8b46f}
  .case-file-nav{height:153px;overflow:hidden}.case-viewer{top:153px}.case-file-nav nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:4px 7px}.file-nav-item{height:49px;min-width:0;padding:0 4px;grid-template-columns:19px minmax(0,1fr) auto;font-size:11px;overflow:hidden}.file-nav-item>b{display:none}.file-nav-item>span{font-size:8px}.file-nav-item[data-count]:not([data-count=""]):after,.file-nav-item[data-view="evidence"][data-count]:not([data-count=""]):after{display:grid;font-size:8px;min-width:17px;height:17px}
  .keyboard-open .case-status-bar{height:36px;flex-basis:36px;display:flex;padding:2px 12px}.keyboard-open .case-location-control{height:32px;min-height:0;border:0;background:transparent}.keyboard-open .case-location-control strong{font:500 10px DM Mono;color:#c8dbe9}.keyboard-open .case-status-facts{display:none}.keyboard-open .active-investigation{grid-template-rows:34px minmax(90px,1fr) auto}.keyboard-open .scene-header{height:34px;min-height:34px;overflow:visible;border-bottom:1px solid rgba(164,192,215,.13)}.keyboard-open .scene-intro{display:none}.keyboard-open .active-investigation .transcript{padding:8px 12px}.keyboard-open .quick-actions{display:flex;gap:4px}.keyboard-open .quick-actions button,.keyboard-open .quick-actions button:last-child{flex:0 0 auto;min-width:76px;height:36px;font-size:9px}.keyboard-open .quick-actions button>span{display:none}
}
@media(max-width:560px) and (orientation:landscape){.case-status-bar{height:106px;flex-basis:106px;grid-template-rows:39px 52px;padding-block:5px}.case-location-control,.case-status-facts{height:52px}.scene-intro img{max-height:150px}.keyboard-open .case-status-bar{height:32px;flex-basis:32px}}

/* In-app navigation and final phone readability adjustments. */
.workspace-header a,.workspace-mobile-nav a{text-decoration:none}.workspace-header a:hover,.workspace-header a:focus-visible,.workspace-mobile-nav a:hover,.workspace-mobile-nav a:focus-visible{text-decoration:none}
@media(max-width:560px){
  .case-status-bar{height:auto;min-height:148px;flex:0 0 auto;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(53px,auto) minmax(77px,auto);row-gap:7px;align-content:center;padding-block:8px 10px}
  .case-status-identity{overflow:visible}.case-status-identity strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;max-width:100%;line-height:1.18}
  .mobile-case-file-button{align-self:center;border-color:rgba(116,165,199,.4);background:linear-gradient(135deg,#102b40,#0a1a28);box-shadow:inset 0 1px rgba(255,255,255,.045)}
  .case-location-control{height:100%;min-height:77px;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-content:center;padding:9px 8px 9px 10px}.case-location-control strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:11px;line-height:1.28}.case-location-control>span{font-size:18px}
  .case-status-facts{height:100%;min-height:77px;width:clamp(184px,51vw,232px)}.case-status-facts span{align-items:flex-start;justify-content:center;padding:9px 5px 8px}.case-status-facts b{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:10px;line-height:1.25}
  .scene-intro:not([hidden]){padding-top:12px}.scene-intro strong{display:block;margin:11px 3px 3px;color:#80c4f4;font:500 10px DM Mono;letter-spacing:.1em;text-transform:uppercase}.scene-intro p{margin:4px 3px 12px}.scene-intro p[hidden]{display:none}
  .message{margin-bottom:12px;box-shadow:0 7px 20px rgba(0,0,0,.11)}.message.system{background:linear-gradient(135deg,#172a3a,#101f2e);border-color:rgba(119,155,180,.18)}.message.player{background:linear-gradient(135deg,#103756,#102b43);border-color:rgba(79,159,214,.2)}.message.movement{background:#0c1c29;box-shadow:none}.message.discovery{background:linear-gradient(135deg,#263344,#182736);border-color:rgba(201,155,81,.28)}
  .active-investigation .action-form{border-top-color:rgba(124,165,194,.24);box-shadow:0 -10px 27px rgba(0,0,0,.5)}.active-investigation .action-form input{border-radius:5px 0 0 5px}.active-investigation .action-form button[type="submit"]{border-radius:0 5px 5px 0;box-shadow:0 2px 15px rgba(201,155,81,.12)}
  .quick-actions button,.quick-actions button:last-child{border-color:rgba(91,145,181,.18);background:linear-gradient(180deg,#183146,#102638);box-shadow:inset 0 1px rgba(185,219,242,.07),0 4px 11px rgba(0,0,0,.12)}.quick-actions button:last-child{border-color:rgba(201,155,81,.25);background:linear-gradient(180deg,#263140,#192634)}.quick-actions button:active{background:#205071}
  .keyboard-open .case-status-bar{height:36px;min-height:36px;flex-basis:36px;display:flex;padding-block:2px}.keyboard-open .case-location-control{height:32px;min-height:32px}.keyboard-open .case-location-control strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.keyboard-open .quick-actions button,.keyboard-open .quick-actions button:last-child{box-shadow:none}
}
@media(max-width:560px) and (orientation:landscape){.case-status-bar{min-height:106px;grid-template-rows:minmax(39px,auto) minmax(52px,auto)}.case-location-control,.case-status-facts{min-height:52px}.keyboard-open .case-status-bar{min-height:32px;height:32px;flex-basis:32px}}

/* Mobile control and keyboard pass. */
.case-status-facts button{display:flex;flex-direction:column;gap:4px;padding:0;border:0;background:transparent;text-align:left;font:500 8px DM Mono;letter-spacing:.08em;color:#738b9d;cursor:pointer}.case-status-facts button b{font-size:10px;font-weight:500;color:#b8dfff}.case-file-backdrop,.dismiss-keyboard{display:none}
@media(max-width:560px){
  .workspace-header{height:58px;flex-basis:58px;padding-block:2px}.workspace-brand img{width:38px;height:38px}
  .case-status-bar{min-height:126px;grid-template-rows:minmax(43px,auto) minmax(67px,auto);row-gap:5px;padding-block:6px 8px}.case-status-identity strong{font-size:clamp(11px,3.35vw,14px);line-height:1.15;overflow-wrap:normal}.case-status-identity small:after{font-size:9px}
  .mobile-case-file-button{min-width:0;width:90px;height:44px;margin-left:4px;padding:0 4px;font-size:8px;letter-spacing:0;white-space:nowrap}.mobile-case-file-button>span{font-size:17px;margin-right:1px}.mobile-case-file-button[aria-expanded="true"]{border-color:#63b6f0;background:#123d5c}
  .case-location-control,.case-status-facts{min-height:67px}.case-status-facts{width:clamp(179px,49vw,212px)}.case-status-facts span,.case-status-facts button{min-width:0;justify-content:center;align-items:flex-start;padding:6px 5px;border:1px solid rgba(111,154,185,.33);border-left:0;background:#0b1d2c;font:500 8px DM Mono;letter-spacing:0;color:#8ba9bc}.case-status-facts button{height:100%;border-radius:0 6px 6px 0;touch-action:manipulation}.case-status-facts button b{font:600 11px Manrope;color:#e6edf4}.case-status-facts button:active,.case-status-facts button:focus-visible{border-color:#68b9f4;background:#113450}.case-status-facts span:last-child{border-radius:0}.case-location-control:active{background:#123b57}
  .active-investigation .transcript{padding-bottom:max(34px,calc(env(safe-area-inset-bottom) + 16px))}
  .quick-actions{margin-top:6px}.quick-actions button,.quick-actions button:last-child{height:46px;min-height:44px;gap:1px}.quick-actions button>span{font-size:18px}.quick-actions button.is-saved{color:#b6ecd1;background:#153e3b;border-color:#56a78d}.quick-actions button.is-saved>span{color:#b6ecd1}
  .case-file-backdrop{display:block;position:absolute;z-index:19;inset:0;background:rgba(1,5,9,.62);opacity:0;pointer-events:none;transition:opacity .2s}.case-file-open .case-file-backdrop{opacity:1;pointer-events:auto}.case-file-open .case-file-nav,.case-file-open .case-viewer{box-shadow:0 12px 36px rgba(0,0,0,.48)}
  .keyboard-open .workspace-header{display:flex;height:58px;flex-basis:58px}.keyboard-open .case-status-bar{display:grid;height:auto;min-height:126px;flex:0 0 auto;grid-template-rows:minmax(43px,auto) minmax(67px,auto);padding-block:6px 8px}.keyboard-open .case-status-identity{display:flex}.keyboard-open .mobile-case-file-button{display:block}.keyboard-open .case-location-control{height:100%;min-height:67px;padding:9px 8px 9px 10px;border:1px solid rgba(111,154,185,.33);background:#0b1d2c}.keyboard-open .case-location-control small{display:block}.keyboard-open .case-location-control strong{font:600 11px/1.28 Manrope;color:#d8b46f;white-space:normal;overflow:visible;text-overflow:clip}.keyboard-open .case-status-facts{display:grid}
  .keyboard-open .active-investigation{grid-template-rows:0 minmax(0,1fr) auto}.keyboard-open .scene-header{display:none}.keyboard-open .active-investigation .transcript{padding:8px 12px 24px}.keyboard-open .quick-actions button,.keyboard-open .quick-actions button:last-child{height:36px;min-height:36px}
  .dismiss-keyboard{position:absolute;z-index:2;top:1px;right:10px;width:52px;height:39px;padding:0;border:0;background:transparent;color:#8bcafa;font:500 10px DM Mono}.keyboard-open .dismiss-keyboard{display:block}.keyboard-open .command-save-status{display:none}
}
@media(max-width:560px) and (orientation:landscape){.case-status-bar,.keyboard-open .case-status-bar{min-height:106px;grid-template-rows:minmax(38px,auto) minmax(52px,auto);padding-block:3px}.case-location-control,.case-status-facts,.keyboard-open .case-location-control{min-height:52px}.workspace-header,.keyboard-open .workspace-header{height:50px;flex-basis:50px}}
/* Desktop and wide tablet shell polish; phone layout remains unchanged. */
@media (min-width:821px){
  .workspace-header{gap:clamp(14px,2vw,28px)}
  .workspace-brand{flex:0 0 auto}
  .workspace-brand b{display:inline}
  .workspace-public-nav{flex:1;justify-content:center;margin:0}
  .workspace-header-actions{flex:0 0 auto;margin-left:auto}
  .case-status-bar{gap:clamp(12px,1.8vw,24px)}
  .case-status-identity{flex:1 1 190px}
  .case-location-control{flex:0 1 clamp(170px,22vw,260px)}
  .case-status-facts{flex:0 0 auto;gap:clamp(12px,1.8vw,24px)}
  .case-tools{grid-template-columns:1fr;gap:8px}
  .case-tools button{min-height:44px;padding:0 12px;text-align:left;font-size:9px;letter-spacing:.06em;cursor:pointer}
  .case-tools button:before{display:inline-block;width:20px;font:500 16px/1 Manrope;vertical-align:-1px}
  .case-tools #saveProgress:before{content:'↓'}
  .case-tools #replayIntro:before{content:'↺'}
  .case-tools span{grid-column:1}
  .quick-actions #quickSave{display:none}
  .file-nav-item[data-view="evidence"]:after{display:none}
}
@media (min-width:768px) and (max-width:820px){
  .workspace-brand b{display:inline}
  .file-nav-item[data-view="evidence"]:after{display:none}
}

/* Shared investigation actions and separate world controls. */
.active-investigation .quick-actions{display:flex;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:none}
.active-investigation .quick-actions::-webkit-scrollbar{display:none}
.active-investigation .quick-actions button,.active-investigation .quick-actions button:last-child{flex:1 0 auto;min-width:0;height:34px;min-height:34px;grid-column:auto;padding:0 5px;border:1px solid rgba(78,131,166,.25);border-radius:3px;background:#0c1e2d;color:#b4cfe2;font:500 9px DM Mono;letter-spacing:.045em;white-space:nowrap}
.active-investigation .quick-actions button:active{background:#173a52}
.world-dock{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:8px;padding-top:8px;border-top:1px solid rgba(132,174,202,.2)}
.active-investigation .world-dock button{min-width:0;min-height:43px;display:flex;align-items:center;justify-content:center;gap:6px;padding:3px 5px;border:1px solid rgba(99,142,170,.32);border-radius:4px;background:linear-gradient(180deg,#12293b,#0a1a28);color:#c4d4df;font:500 9px DM Mono;letter-spacing:.06em}
.active-investigation .world-dock button:hover,.active-investigation .world-dock button:focus-visible{border-color:#3ba2e8;color:#fff}
.world-dock button span{font:400 18px Manrope;color:#86bde5}
.world-dock #dockSave{border-color:rgba(201,155,81,.38)}.world-dock #dockSave span{color:#d8b46f}
.case-tools{display:none}
.phone-panel,.options-panel{position:absolute;z-index:50;inset:0;display:grid;place-items:center;padding:16px;background:rgba(2,7,12,.78)}
.phone-panel[hidden],.options-panel[hidden],.phone-call[hidden],.phone-contacts[hidden]{display:none!important}
.phone-shell,.options-shell{width:min(540px,100%);max-height:min(780px,calc(100% - 14px));min-height:0;display:flex;flex-direction:column;border:1px solid rgba(119,170,203,.4);background:linear-gradient(155deg,#0a1c2c,#050e17);box-shadow:0 28px 90px rgba(0,0,0,.65)}
.phone-shell>header,.options-shell>header{flex:0 0 55px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid rgba(119,170,203,.24);font:500 11px DM Mono;color:#8fcaff;letter-spacing:.09em}
.phone-shell>header button,.options-shell>header button{height:44px;width:44px;border:0;background:transparent;color:#e0e9f1;font:300 26px Manrope}
.phone-contacts{padding:12px 16px;overflow:auto;min-height:100px}.phone-contact{width:100%;min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;text-align:left;border:1px solid rgba(119,170,203,.28);background:#0d2233;color:#e4eef5;margin-bottom:8px}.phone-contact strong{font:600 15px Manrope}.phone-contact small{font:500 9px DM Mono;color:#7fa9c4}
.phone-call{display:flex;flex-direction:column;min-height:0;flex:1}.phone-call-status{padding:12px 16px;color:#65d4a0;font:500 10px DM Mono;letter-spacing:.1em}.phone-history{min-height:120px;flex:1;overflow-y:auto;padding:0 16px 12px}.phone-entry{padding:11px 13px;margin-bottom:9px;border-left:2px solid #268fe6;background:#102437;overflow-wrap:anywhere}.phone-entry.player{border-left-color:#c99b51;background:#192737}.phone-entry small{color:#78bcec;font:500 9px DM Mono}.phone-entry p{margin:6px 0 0;color:#dce7ee;font:400 14px/1.55 Manrope;white-space:pre-wrap}
.phone-form{padding:10px 16px;border-top:1px solid rgba(119,170,203,.25)}.phone-form label{display:block;margin-bottom:6px;color:#c99b51;font:500 9px DM Mono}.phone-form>div{display:grid;grid-template-columns:minmax(0,1fr) 86px}.phone-form input{width:100%;min-width:0;height:46px;padding:0 12px;border:1px solid #436074;background:#050e17;color:#fff;font:400 16px Manrope}.phone-form button{border:0;background:#d3ac67;color:#10161d}
.end-call{min-height:44px;margin:0 16px 16px;border:1px solid rgba(201,155,81,.38);background:transparent;color:#d8b46f}.options-shell{padding-bottom:16px}.options-shell>button{margin:12px 16px 0;min-height:46px;border:1px solid rgba(119,170,203,.3);background:#0d2233;color:#c4dcec;text-align:left;padding-left:16px}
@media(min-width:821px){.active-investigation .quick-actions #quickSave{display:none}.active-investigation .world-dock button{min-height:39px}}
@media(max-width:820px){
  .active-investigation .quick-actions{display:flex;gap:5px;margin-top:7px;overflow-x:auto}
  .active-investigation .quick-actions button,.active-investigation .quick-actions button:last-child{flex:1 0 auto;height:36px;min-height:36px;font-size:clamp(8px,2vw,10px);padding-inline:5px;box-shadow:none}
  .world-dock{gap:4px;margin-top:6px;padding-top:6px}.active-investigation .world-dock button{flex-direction:column;gap:1px;min-height:48px;padding:2px 0;font-size:clamp(7px,1.9vw,9px);letter-spacing:0}.world-dock button span{font-size:16px}
  .phone-panel,.options-panel{position:fixed;top:var(--mobile-top,0);height:var(--mobile-vh,100dvh);bottom:auto;padding:0;align-items:end}.phone-shell,.options-shell{width:100%;max-height:calc(100% - env(safe-area-inset-top) - 12px);height:min(620px,calc(100% - env(safe-area-inset-top) - 12px));border-radius:12px 12px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  .phone-history{overscroll-behavior:contain}.phone-form input{font-size:16px}
  .keyboard-open .active-investigation .world-dock{display:none!important}.keyboard-open .active-investigation .quick-actions{display:flex;overflow-x:auto}.keyboard-open .active-investigation .quick-actions button{flex:0 0 auto;min-width:78px}
}
@media(max-width:390px){.active-investigation .quick-actions button,.active-investigation .quick-actions button:last-child{font-size:8px;padding:0 3px}}

.active-investigation .quick-actions[hidden],.active-investigation .interview-session[hidden],.action-feedback[hidden]{display:none!important}
.active-investigation .quick-actions.attention{outline:1px solid rgba(201,155,81,.65);outline-offset:3px}
.interview-session{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0;margin-bottom:9px;padding:5px 8px;border:1px solid rgba(94,168,213,.34);background:#102c40;color:#9dd0f3;font:500 10px DM Mono}
.interview-session span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.active-investigation .interview-session button{flex:0 0 auto;min-height:44px;padding:0 9px;border:1px solid rgba(201,155,81,.5);background:#1a2833;color:#e2c48d;font:500 9px DM Mono}
.action-feedback{margin:7px 0 0;color:#dcbc85;font:400 12px/1.4 Manrope;overflow-wrap:anywhere}
@media(min-width:561px){.active-investigation .world-dock{grid-template-columns:repeat(4,minmax(0,1fr))}.active-investigation .world-dock #dockCaseFile{display:none}}
@media(max-width:820px){.keyboard-open .interview-session{margin-bottom:4px;padding-block:2px}.keyboard-open .active-investigation .interview-session button{min-height:32px}}

/* Phone investigation shell. Tablet and desktop rules above remain untouched. */
.message-icon,.message>time,.message-evidence{display:none}
@media(max-width:560px){
  #caseDialog,#caseDialog[open]{overflow:hidden;background:#06111b}
  .workspace-header,.keyboard-open .workspace-header{display:flex;flex:0 0 62px;height:62px;min-height:0;padding:2px max(12px,env(safe-area-inset-right)) 2px max(12px,env(safe-area-inset-left));gap:6px;background:#06121e}
  .workspace-header:after{left:0;width:100%;height:1px;background:rgba(96,145,178,.24);box-shadow:none}
  .workspace-brand{gap:8px;flex:1;min-width:0;letter-spacing:.11em;text-decoration:none!important}
  .workspace-brand img{width:43px;height:43px;object-fit:contain}
  .workspace-brand span{font-size:clamp(9px,2.65vw,11px);white-space:nowrap;text-overflow:clip}
  .workspace-header-actions{margin-left:auto}
  .workspace-header .close{display:none}
  .workspace-mobile-nav nav{top:48px}
  .workspace-mobile-nav nav button{display:flex;align-items:center;width:100%;min-height:45px;padding:0 12px;border:0;border-bottom:1px solid rgba(223,232,240,.12);background:transparent;color:#cbd9e2;font:500 11px DM Mono;text-transform:uppercase;text-align:left}
  .case-status-bar,.keyboard-open .case-status-bar{position:relative;isolation:isolate;flex:0 0 141px;height:141px;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.87fr);grid-template-rows:78px 54px;gap:0;padding:0 12px 8px;align-content:start;background:#081522;overflow:hidden}
  .case-status-bar:before{content:"";position:absolute;z-index:-1;inset:0 0 54px 27%;background:linear-gradient(90deg,#081522 2%,rgba(6,16,27,.46) 68%,rgba(6,16,27,.29)),linear-gradient(0deg,#081522,transparent 70%),var(--case-scene-image) center 42%/cover no-repeat;opacity:.7;pointer-events:none}
  .case-status-identity,.keyboard-open .case-status-identity{display:flex;grid-column:1/-1;grid-row:1;justify-content:center;gap:4px;padding:8px 0 7px;min-width:0}
  .case-status-identity small{font-size:0}
  .case-status-identity small:after{content:attr(data-mobile);font:500 10px DM Mono;letter-spacing:.15em;color:#72baff}
  .case-status-identity strong{max-width:100%;font:800 clamp(16px,5.25vw,23px)/1.12 Manrope;letter-spacing:-.04em;text-transform:uppercase;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:normal}
  .mobile-case-file-button,.keyboard-open .mobile-case-file-button{display:none}
  .case-location-control,.keyboard-open .case-location-control{grid-column:1;grid-row:2;width:100%;height:54px;min-height:0;padding:7px 8px 7px 28px;display:grid;grid-template-columns:minmax(0,1fr) 8px;grid-template-rows:auto auto;align-content:center;gap:2px 1px;border:1px solid rgba(84,145,190,.35);border-radius:6px 0 0 6px;background:rgba(5,18,30,.87);text-align:left}
  .case-location-control:before{content:'⌖';position:absolute;left:8px;top:50%;transform:translateY(-50%);font:500 20px Manrope;color:#51b1ff}
  .case-location-control small,.keyboard-open .case-location-control small{display:block;grid-column:1;font-size:8px;line-height:1.1;color:#8fa7b9;letter-spacing:.05em}
  .case-location-control strong,.keyboard-open .case-location-control strong{grid-column:1;min-width:0;font:600 10px/1.2 Manrope;color:#e8f1f8;white-space:normal;overflow:hidden;text-overflow:ellipsis;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .case-location-control>span{grid-column:2;grid-row:1/3;align-self:center;font-size:0}
  .case-location-control>span:after{content:'›';font:400 18px Manrope;color:#9bb6c7}
  .case-status-facts,.keyboard-open .case-status-facts{display:contents}
  .case-status-facts span,.case-status-facts button{position:relative;min-width:0;width:100%;height:54px;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:6px 9px 6px 31px;border:1px solid rgba(84,145,190,.35);border-left:0;border-radius:0;background:rgba(5,18,30,.87);font:500 8px/1.1 DM Mono;color:#8fa7b9;letter-spacing:.02em;text-align:left}
  .case-status-facts span{grid-column:2;grid-row:2;cursor:default}
  .case-status-facts button{grid-column:3;grid-row:2;border-radius:0 6px 6px 0;cursor:pointer}
  .case-status-facts span:before,.case-status-facts button:before{position:absolute;left:8px;top:50%;transform:translateY(-50%);font:400 19px Manrope;color:#c99b51}
  .case-status-facts span:before{content:'◷'}
  .case-status-facts button:before{content:'▤';color:#4baaff}
  .case-status-facts span b,.case-status-facts button b{max-width:100%;font:600 10px/1.2 Manrope;color:#f0f4f8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .case-status-facts button:after{content:'›';position:absolute;right:4px;top:50%;transform:translateY(-50%);color:#8eb1c9}
  .case-status-facts button{padding-right:11px}
  .case-status-facts button:active,.case-location-control:active{background:#173a53}
  .header-save-status{display:none}
  .investigation-workspace{flex:1 1 auto;min-height:0;height:auto;overflow:hidden}
  .active-investigation,.keyboard-open .active-investigation{height:100%;min-height:0;grid-template-rows:minmax(0,1fr) auto;background:#06121e}
  .active-investigation .scene-header,.keyboard-open .active-investigation .scene-header{display:none}
  .active-investigation .scene-wash{display:none}
  .active-investigation .transcript,.active-investigation:not(.has-scene-image) .transcript,.keyboard-open .active-investigation .transcript{min-height:0;padding:5px 12px 18px;background:linear-gradient(180deg,#081827,#06121e 82%);overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-top:8px;scrollbar-width:none}
  .active-investigation .transcript::-webkit-scrollbar{display:none}
  .scene-intro:not([hidden]){padding:4px 0 6px}
  .scene-intro img{max-height:106px;aspect-ratio:3.5/1;border-radius:5px;object-fit:cover}
  .scene-intro strong{margin:7px 1px 2px;font-size:9px}
  .scene-intro p{margin:2px 1px 8px;font-size:12px;line-height:1.4}
  .message,.message.player,.message.system,.message.movement,.message.discovery,.keyboard-open .message,.keyboard-open .message.player{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr) auto;column-gap:10px;row-gap:2px;min-width:0;max-width:none;margin:0;padding:10px 2px 13px;border:0;border-bottom:1px solid rgba(121,169,196,.16);border-radius:0;background:transparent;box-shadow:none;overflow-wrap:anywhere}
  .message+.message{padding-top:10px}
  .message-icon{grid-column:1;grid-row:1/3;align-self:start;width:32px;height:32px;display:grid;place-items:center;border:1px solid #3ba0ec;border-radius:50%;box-shadow:0 0 10px rgba(39,135,226,.13);color:#67beff;font-style:normal}
  .message-icon:before{content:'♙';font:400 21px/1 Manrope}
  .message.system .message-icon,.message.discovery .message-icon{border-color:#c99b51;color:#d8b46f;box-shadow:0 0 11px rgba(201,155,81,.12)}
  .message.system .message-icon:before,.message.discovery .message-icon:before{content:'⌕';font-size:25px}
  .message.movement .message-icon:before{content:'⌖'}
  .message span,.message.player span,.message.discovery span{grid-column:2;grid-row:1;margin:2px 0 0;color:#6dbafa;font:500 9px/1.3 DM Mono;letter-spacing:.11em}
  .message.system span,.message.discovery span{color:#d8b46f}
  .message>time{display:block;grid-column:3;grid-row:1;align-self:center;color:#8296a8;font:400 9px DM Mono;white-space:nowrap}
  .message>div,.message.player>div,.message.movement>div{grid-column:2/4;grid-row:2;min-width:0;color:#e2e9ef;font:400 13px/1.5 Manrope;white-space:pre-wrap}
  .message-evidence{grid-column:2/4;min-width:0;margin-top:6px;padding:8px 10px;border:1px solid rgba(100,154,188,.38);border-radius:5px;background:#0b2132;text-align:left;display:grid;gap:3px}
  .message-evidence small{color:#69b6f3;font:500 8px DM Mono;letter-spacing:.12em}
  .message-evidence strong{color:#e8f1f7;font:600 12px Manrope}
  .message .message-evidence span{display:block;grid-column:1;grid-row:auto;margin:0;color:#99b0c1;font:400 11px/1.35 Manrope;letter-spacing:0}
  .active-investigation .action-form,.keyboard-open .active-investigation .action-form{flex:none;margin:0;padding:8px 12px max(8px,env(safe-area-inset-bottom));border-top:1px solid rgba(99,154,190,.3);background:#06121e;box-shadow:0 -12px 22px rgba(0,0,0,.25)}
  .active-investigation .action-form>label,.keyboard-open .active-investigation .action-form>label,.active-investigation .dismiss-keyboard{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0;padding:0}
  .active-investigation .command-row,.keyboard-open .command-row{display:flex;align-items:stretch;width:100%;height:46px;min-width:0}
  .active-investigation .action-form input{width:100%;min-width:0;flex:1 1 auto;padding:0 12px;border:1px solid #42637d;border-radius:6px 0 0 6px;background:#081521;color:#e9f2f8;font-size:16px}
  .active-investigation .action-form button[type="submit"]{flex:0 0 46px;min-width:46px;max-width:46px;height:46px;border-radius:6px;margin-left:-1px;background:linear-gradient(135deg,#c99b51,#e5c789);box-shadow:0 0 16px rgba(201,155,81,.2)}
  .active-investigation .action-form button[type="submit"] span{font-size:23px}
  .active-investigation .quick-actions,.keyboard-open .active-investigation .quick-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;width:100%;margin-top:7px;overflow:visible}
  .active-investigation .quick-actions button,.active-investigation .quick-actions button:last-child,.keyboard-open .active-investigation .quick-actions button,.keyboard-open .active-investigation .quick-actions button:last-child{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:2px;flex:none;width:100%;min-width:0;height:34px;min-height:34px;padding:0 1px;border:1px solid rgba(76,149,206,.52);border-radius:5px;background:#091d2e;color:#c6d9e9;font:500 clamp(6.6px,1.85vw,8px)/1 DM Mono;letter-spacing:-.04em;white-space:nowrap;box-shadow:none}
  .active-investigation .quick-actions button:before{font:400 13px Manrope;color:#55b7ff}
  .active-investigation .quick-actions button:nth-child(1):before{content:'⌕'}
  .active-investigation .quick-actions button:nth-child(2):before{content:'♙';color:#cda45f}
  .active-investigation .quick-actions button:nth-child(3):before{content:'▤'}
  .active-investigation .quick-actions button:nth-child(4):before{content:'⌁';color:#cda45f}
  .active-investigation .quick-actions button:nth-child(5):before{content:'▣'}
  .active-investigation .quick-actions button:nth-child(6):before{content:'?';color:#cda45f}
  .active-investigation .world-dock,.keyboard-open .active-investigation .world-dock{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:6px;padding-top:7px;border-top:1px solid rgba(104,154,185,.21)}
  .active-investigation .world-dock button{display:flex;flex-direction:column;gap:3px;min-width:0;min-height:57px;padding:2px 0 0;border:0;background:transparent;color:#d8e3eb;font:500 8px/1 DM Mono;letter-spacing:.03em}
  .world-dock button span{width:min(40px,100%);height:36px;display:grid;place-items:center;border:1px solid rgba(101,149,183,.42);border-radius:6px;background:#0a1b2a;color:#dbeafa;font-size:19px}
  .world-dock #dockSave{border:0}.world-dock #dockSave span{color:#dbeafa}
  .world-dock #dockCaseFile[aria-expanded="true"] span{border-color:#cda45f;color:#cda45f;background:#241e18;box-shadow:0 0 14px rgba(201,155,81,.16)}
  .keyboard-open .case-status-bar{flex-basis:64px;height:64px;grid-template-columns:minmax(130px,1.8fr) repeat(3,minmax(0,1fr));grid-template-rows:1fr;padding:0 8px 3px}
  .keyboard-open .case-status-bar:before{inset:0 0 0 25%;opacity:.4}
  .keyboard-open .case-status-identity{grid-column:1;grid-row:1;align-self:center;padding:0 6px 0 2px}
  .keyboard-open .case-status-identity small:after{font-size:8px}
  .keyboard-open .case-status-identity strong{font-size:clamp(10px,2.9vw,12px);line-height:1.12}
  .keyboard-open .case-location-control{grid-column:2;grid-row:1;border-radius:0;padding:4px 2px;display:flex;align-items:center;justify-content:center}
  .keyboard-open .case-location-control:before,.keyboard-open .case-location-control small,.keyboard-open .case-location-control>span{display:none}
  .keyboard-open .case-location-control strong{display:block;width:100%;text-align:center;font-size:9px;-webkit-line-clamp:2}
  .keyboard-open .case-status-facts span,.keyboard-open .case-status-facts button{height:100%;padding:4px 1px;align-items:center;text-align:center;gap:2px}
  .keyboard-open .case-status-facts span{grid-column:3;grid-row:1}
  .keyboard-open .case-status-facts button{grid-column:4;grid-row:1}
  .keyboard-open .case-status-facts span:before,.keyboard-open .case-status-facts button:before{position:static;transform:none;font-size:16px}
  .keyboard-open .case-status-facts span b,.keyboard-open .case-status-facts button b{font-size:8px;white-space:normal;line-height:1.1}
  .keyboard-open .case-status-facts button:after{display:none}
  .keyboard-open .case-status-facts span,.keyboard-open .case-status-facts button{font-size:0}
  .keyboard-open .scene-intro{display:none}
  .keyboard-open .active-investigation .transcript{padding-top:2px}
}
@media(max-width:560px) and (orientation:landscape){.case-status-bar{flex-basis:95px;height:95px;grid-template-rows:45px 45px;padding-bottom:5px}.keyboard-open .case-status-bar{flex-basis:50px;height:50px;grid-template-rows:1fr}.active-investigation .world-dock button{min-height:46px}.world-dock button span{height:28px}}

/* Shared phone shell: case controls replace the site header inside the game. */
.phone-utility,.mobile-drawer-summary,.mobile-drawer-links,.phone-viewer-header,.phone-overflow-menu{display:none}
.phone-overflow-menu[hidden]{display:none!important}
@media(max-width:560px){
  #caseDialog[open]{isolation:isolate}
  #caseDialog .workspace-header,#caseDialog.keyboard-open .workspace-header{display:none!important}
  #caseDialog .case-status-bar,#caseDialog.keyboard-open .case-status-bar{flex:0 0 42px;height:42px;min-height:42px;display:flex;align-items:center;gap:5px;padding:0 10px;background:#071522;border-bottom:1px solid rgba(82,139,180,.25);overflow:hidden}
  .case-status-bar:before{display:none}
  #caseDialog .case-status-identity{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex:1 1 auto;gap:5px;padding:0;min-width:0}
  .case-status-identity small{flex:none;white-space:nowrap}
  .case-status-identity small:after{font:500 9px DM Mono;letter-spacing:.02em}
  .case-status-identity strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 clamp(10px,2.6vw,12px)/1.2 Manrope;letter-spacing:0}
  .case-status-identity strong:before{content:'· ';color:#88a6bb}
  #caseDialog .case-location-control{display:none}
  #caseDialog .case-status-facts{display:flex;flex:0 0 auto;gap:6px;width:auto;height:auto;align-items:center}
  .case-status-facts span,.case-status-facts button{width:auto;height:32px;min-height:32px;padding:0 3px;border:0;background:transparent;font-size:0}
  .case-status-facts span b{display:none}
  .case-status-facts span:before,.case-status-facts button:before{position:static;transform:none;font-size:18px}
  .case-status-facts button{flex-direction:row;align-items:center;gap:3px}
  .case-status-facts button b{font:500 11px Manrope;color:#73c0f7}
  .case-status-facts button:after{display:none}
  #caseDialog .phone-utility{flex:0 0 46px;height:46px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;align-items:center;padding:2px 12px 4px;background:#071421;border-bottom:1px solid rgba(87,145,184,.27)}
  .phone-utility button{min-width:0;min-height:40px;display:grid;place-items:center;border:0;border-radius:5px;background:transparent;color:#d9e8f2;touch-action:manipulation}
  .phone-utility button span{font:500 23px/1 Manrope}
  .phone-utility button svg{width:23px;height:23px}
  .phone-utility #phoneSave{position:relative}
  .phone-utility #phoneSave.is-saved{color:#86dba9}
  .phone-utility #phoneSave.is-saved:after{content:'SAVED';position:absolute;z-index:2;top:100%;left:50%;transform:translateX(-50%);padding:4px 6px;border:1px solid rgba(134,219,169,.4);border-radius:3px;background:#081b23;color:#a7e9c1;font:500 9px DM Mono;letter-spacing:.07em;pointer-events:none}
  .phone-utility #phoneFileToggle{border:1px solid rgba(201,155,81,.65);background:rgba(201,155,81,.1);color:#d8b46f}
  .phone-utility button:active,.phone-utility button:focus-visible{background:#16354a;outline:1px solid #5baee8}
  .phone-utility #phoneOverflowToggle{display:none}
  #caseDialog .investigation-workspace{flex:1 1 auto;min-height:0;height:auto;overflow:hidden}
  #caseDialog .active-investigation,#caseDialog.keyboard-open .active-investigation{min-height:0;grid-template-rows:minmax(0,1fr) auto}
  #caseDialog .active-investigation .transcript,#caseDialog.keyboard-open .active-investigation .transcript{min-height:0;padding:5px 12px 12px;overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-top:8px}
  .message,.message.player,.message.system,.message.movement,.message.discovery,.keyboard-open .message{padding-top:9px;padding-bottom:11px}
  .message>div,.message.player>div,.message.movement>div{font-size:calc(14px * var(--phone-text-scale,1));line-height:1.52}
  .scene-intro p{font-size:calc(13px * var(--phone-text-scale,1))}
  .message span,.message.player span,.message.discovery span{font-size:10px}
  #caseDialog .latest-response-button.visible{display:grid;place-items:center;right:12px;bottom:calc(var(--command-height,100px) + 8px);width:39px;height:39px;min-height:39px;padding:0;border-radius:50%;font-size:0;background:#0a1e30;color:#e1eef7;box-shadow:0 5px 19px rgba(0,0,0,.5)}
  #caseDialog .latest-response-button span{margin:0;font:500 23px Manrope;color:#d4a865}
  #caseDialog .active-investigation .action-form,#caseDialog.keyboard-open .active-investigation .action-form{padding:6px 10px max(7px,env(safe-area-inset-bottom))}
  #caseDialog .active-investigation .command-row{height:45px}
  #caseDialog .active-investigation .action-form button[type="submit"]{height:45px;min-width:45px;max-width:45px}
  #caseDialog .active-investigation .quick-actions,#caseDialog.keyboard-open .active-investigation .quick-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-top:6px;overflow:visible}
  #caseDialog .active-investigation .quick-actions button,#caseDialog .active-investigation .quick-actions button:last-child{width:100%;min-width:0;height:43px;min-height:43px;padding:0;font-size:0;line-height:0}
  #caseDialog .active-investigation .quick-actions button:before{font-size:23px;line-height:1}
  #caseDialog .active-investigation .world-dock{display:none!important}
  #caseDialog.keyboard-open .case-status-bar{flex-basis:40px;height:40px;padding-left:104px;padding-right:76px}
  #caseDialog.keyboard-open .case-status-identity{min-width:0}
  #caseDialog.keyboard-open .case-status-identity small:after{content:attr(data-mode);font:500 clamp(8px,2.3vw,10px) DM Mono;letter-spacing:0;white-space:nowrap}
  #caseDialog.keyboard-open .case-status-identity strong,#caseDialog.keyboard-open .case-status-facts{display:none}
  #caseDialog.keyboard-open .phone-utility{position:static;flex:0 0 0;height:0;min-height:0;display:block;padding:0;border:0}
  #caseDialog.keyboard-open .phone-utility button{position:absolute;z-index:12;top:2px;width:34px;min-height:36px;height:36px;padding:0;background:transparent;border:0}
  #caseDialog.keyboard-open .phone-utility button span{font-size:18px}
  #caseDialog.keyboard-open #phoneFileToggle{left:5px;color:#d4a865}
  #caseDialog.keyboard-open #phoneMove{left:39px}
  #caseDialog.keyboard-open #phoneContact{left:73px}
  #caseDialog.keyboard-open #phoneHelp{right:41px}
  #caseDialog.keyboard-open #phoneOverflowToggle{display:grid;right:5px}
  #caseDialog.keyboard-open #phoneSave,#caseDialog.keyboard-open #phoneOptions{display:none}
  #caseDialog.keyboard-open .active-investigation .action-form{padding-bottom:4px}
  #caseDialog.keyboard-open .active-investigation .quick-actions button,#caseDialog.keyboard-open .active-investigation .quick-actions button:last-child{height:34px;min-height:34px;min-width:0;flex:none;padding:0;font-size:0}
  #caseDialog.keyboard-open .active-investigation .quick-actions button:before{font-size:19px}
  #caseDialog .phone-overflow-menu:not([hidden]){position:absolute;z-index:55;right:7px;top:39px;width:min(195px,calc(100vw - 20px));display:grid;padding:6px;border:1px solid rgba(116,166,199,.42);border-radius:8px;background:#091a29;box-shadow:0 16px 42px rgba(0,0,0,.72)}
  .phone-overflow-menu button{min-height:42px;padding:0 13px;border:0;border-bottom:1px solid rgba(107,151,179,.14);background:transparent;color:#d9e6ee;text-align:left;font:500 11px Manrope}
  .phone-overflow-menu button:last-child{border:0;color:#f37c72}
  .phone-overflow-menu button:active{background:#15354a}
  #caseDialog .case-file-backdrop{position:fixed;inset:0;z-index:25;background:rgba(1,5,9,.7)}
  #caseDialog .case-file-nav,#caseDialog .case-viewer{position:fixed;z-index:30;left:0;right:auto;top:var(--mobile-top,0);bottom:auto;width:min(84vw,350px);max-width:350px;height:var(--mobile-vh,100dvh);max-height:var(--mobile-vh,100dvh);overflow-y:auto;-webkit-overflow-scrolling:touch;transform:translateX(-105%);border-right:1px solid rgba(104,156,190,.28);box-shadow:14px 0 38px rgba(0,0,0,.48)}
  #caseDialog.case-file-open .case-file-nav{transform:translateX(0)}
  #caseDialog.case-file-open .case-viewer{transform:translateX(-105%)}
  #caseDialog.case-file-open.phone-file-detail .case-file-nav{transform:translateX(-105%)}
  #caseDialog.case-file-open.phone-file-detail .case-viewer{transform:translateX(0)}
  #caseDialog.case-file-open .phone-utility #phoneFileToggle{position:fixed;z-index:35;top:calc(var(--mobile-top,0px) + 4px);left:6px;width:40px;height:40px;min-height:40px;border:0;background:transparent}
  #caseDialog.case-file-open .mobile-drawer-header{padding-left:52px}
  .mobile-drawer-header{position:sticky;top:0;z-index:2;background:#081725;height:48px}
  #caseDialog .mobile-drawer-summary{display:grid;gap:5px;padding:13px 16px 11px}
  .mobile-drawer-summary small{font:500 10px DM Mono;color:#56b3f5}
  .mobile-drawer-summary strong{font:700 clamp(15px,4vw,18px)/1.1 Manrope;text-transform:uppercase}
  .mobile-drawer-summary img{width:100%;height:84px;object-fit:cover;border-radius:5px;margin-top:6px}
  .mobile-drawer-summary img[hidden]{display:none}
  .mobile-drawer-summary p{display:grid;margin:3px 0 0;color:#b7cbd9;font:400 11px/1.4 Manrope}
  #caseDialog .case-file-nav nav{display:grid;grid-template-columns:1fr;gap:0;padding:5px 11px;border-top:1px solid rgba(112,156,185,.2)}
  #caseDialog .file-nav-item{height:40px;min-height:40px;display:grid;grid-template-columns:30px 1fr auto;padding:0 12px;border:0;background:transparent;font-size:13px}
  #caseDialog .file-nav-item.active{border-left:2px solid #279cff;background:#113047}
  .file-nav-item>span,.file-nav-item>b{display:none!important}
  .file-nav-item:before{font:500 16px Manrope;color:#c3d9e8}
  .file-nav-item[data-view="overview"]:before{content:'▣'}
  .file-nav-item[data-view="people"]:before{content:'♙'}
  .file-nav-item[data-view="evidence"]:before{content:'▤'}
  .file-nav-item[data-view="map"]:before{content:'⌖'}
  .file-nav-item[data-view="timeline"]:before{content:'◷'}
  .file-nav-item[data-view="notes"]:before{content:'▧'}
  #caseDialog .file-nav-item[data-count]:not([data-count=""]):after{display:grid!important;content:attr(data-count);min-width:22px;height:22px;border-radius:50%;background:#22394c;color:#d2e6f5}
  #caseDialog .mobile-drawer-links{display:grid;gap:0;padding:9px 15px 22px;border-top:1px solid rgba(112,156,185,.2)}
  #caseDialog .case-file-nav>.pane-label,#caseDialog .case-file-nav>.file-classification,#caseDialog .case-file-nav>.case-tools{display:none}
  .mobile-drawer-links small{margin:8px 0 4px;color:#8faac0;font:500 10px DM Mono;letter-spacing:.1em}
  .mobile-drawer-links button,.mobile-drawer-links a{min-height:39px;display:flex;align-items:center;padding:0 8px;border:0;background:transparent;color:#d3e2ed;text-decoration:none;text-align:left;font:400 13px Manrope}
  .mobile-drawer-links [data-drawer-tool="exit"]{color:#f18579}
  .mobile-drawer-links button:active,.mobile-drawer-links a:active{background:#14364b}
  #caseDialog .phone-viewer-header{position:sticky;top:0;z-index:2;height:48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(112,156,185,.25);background:#081725;color:#e1edf5;font:500 11px DM Mono;letter-spacing:.1em}
  #caseDialog .phone-viewer-header button{flex:0 0 48px;width:48px;height:48px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:#a2cde9;font:400 27px Manrope;touch-action:manipulation}
  #caseDialog .phone-viewer-header button:active{background:#15364b}
  #caseDialog .case-viewer>.pane-label{display:none}
  #caseDialog.case-file-open.phone-file-detail .phone-utility #phoneFileToggle{display:none}
  #caseDialog .case-viewer .viewer-content{padding:17px 15px max(25px,env(safe-area-inset-bottom))}
  #caseDialog.notes-keyboard-open .case-viewer{top:var(--mobile-top,0)}
  #caseDialog.phone-soft-mode .active-investigation,#caseDialog.phone-soft-mode .active-investigation .transcript{background:#112637}
  #caseDialog.phone-soft-mode .action-form,#caseDialog.phone-soft-mode .case-status-bar{background:#122a3d}
}
@media(max-width:560px) and (orientation:landscape){#caseDialog .case-status-bar,#caseDialog.keyboard-open .case-status-bar{flex-basis:36px;height:36px;min-height:36px}#caseDialog .phone-utility{flex-basis:40px;height:40px}#caseDialog.keyboard-open .phone-utility{flex-basis:0;height:0}.phone-utility button{min-height:34px}}

/* Active Leads share one state driven view across the two layouts. */
.active-leads-panel,.game-desktop-masthead,.game-menu-backdrop,.desktop-file-tabs,.mobile-active-leads{display:none}
.game-menu-backdrop[hidden]{display:none!important}
.leads-content{display:grid;align-content:start;gap:22px}
.lead-section h3{margin:0 0 11px;color:#c5a36c;font:600 10px DM Mono;letter-spacing:.13em}
.lead-entry{display:grid;gap:4px;padding:9px 0;border-top:1px solid rgba(140,179,204,.12)}
.lead-entry strong{color:#dce8f0;font:600 12px/1.45 Manrope}
.lead-entry small,.lead-empty{margin:0;color:#8397a8;font:400 11px/1.5 Manrope}

@media(min-width:641px){
  #caseDialog.patch1-shell .investigation-workspace,#caseDialog.patch1-shell.alpha-no-leads .investigation-workspace{grid-template-columns:minmax(0,1fr)}
  #caseDialog.patch1-shell .shell-context,#caseDialog.patch1-shell .active-leads-panel{display:none}
  #caseDialog.patch1-shell .active-investigation{grid-column:1;grid-row:1}
  #caseDialog .workspace-header,#caseDialog.keyboard-open .workspace-header{display:block;position:relative;flex:0 0 clamp(98px,8vw,132px);height:clamp(98px,8vw,132px);min-height:0;padding:0;border-bottom:1px solid rgba(139,174,205,.3);background:radial-gradient(ellipse at 50% 65%,rgba(23,58,83,.37),transparent 56%),linear-gradient(105deg,#050d16,#091927 48%,#050c15)}
  #caseDialog .workspace-header:after{display:none}
  #caseDialog .workspace-brand,#caseDialog .workspace-public-nav,#caseDialog .workspace-header .close,#caseDialog .workspace-mobile-nav{display:none!important}
  .game-desktop-masthead{display:flex;position:absolute;inset:0;align-items:center;justify-content:center}
  .game-desktop-masthead:before{content:"";position:absolute;inset:0;opacity:.12;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
  .game-header-tape{position:absolute;left:0;right:0;top:50%;height:clamp(36px,3vw,49px);transform:translateY(-50%);overflow:hidden;display:flex;align-items:center;justify-content:center;gap:clamp(32px,4vw,78px);white-space:nowrap;border-block:1px solid rgba(220,174,98,.45);background:repeating-linear-gradient(112deg,transparent 0 28px,rgba(55,37,20,.06) 29px 31px,transparent 32px 64px),linear-gradient(180deg,#9b713b,#bd8c49 48%,#8a6334);box-shadow:0 5px 22px rgba(0,0,0,.48),inset 0 2px 6px rgba(35,25,14,.27);color:#1d2427}
  .game-header-tape:after{content:"";position:absolute;inset:0;opacity:.37;mix-blend-mode:multiply;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.24' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
  .game-header-tape span{flex:none;font:700 clamp(18px,1.7vw,26px)/1 'Barlow Condensed',Arial,sans-serif;letter-spacing:.025em}
  .game-header-logo{position:relative;z-index:1;width:clamp(90px,7.2vw,112px);height:100%;display:grid;place-items:center;background:radial-gradient(ellipse,rgba(3,10,18,.72) 15%,rgba(3,10,18,.28) 57%,transparent 73%)}
  .game-header-logo img{display:block;width:100%;max-height:94%;object-fit:contain;filter:drop-shadow(0 5px 11px rgba(0,0,0,.8))}
  .game-menu-trigger{position:absolute;z-index:2;right:clamp(16px,3.5vw,96px);top:50%;transform:translateY(-50%);width:44px;height:44px;border:1px solid rgba(139,174,205,.32);border-radius:3px;background:#081725;color:#d7e2e9;font-size:22px}
  #caseDialog .workspace-header-actions{position:static}
  #workspaceService{position:fixed;z-index:24;right:16px;bottom:13px;padding:7px 10px;border:1px solid rgba(104,160,132,.3);background:rgba(5,14,19,.92);font-size:8px;color:#68d98e;pointer-events:none}
  .game-menu-backdrop{position:fixed;inset:0;z-index:45;display:flex;justify-content:flex-end;background:rgba(1,6,11,.72)}
  .game-menu-drawer{width:min(390px,calc(100vw - 24px));height:100%;overflow:auto;border-left:1px solid rgba(201,155,81,.55);background:linear-gradient(155deg,#0a1b2a,#050d15 75%);box-shadow:-24px 0 70px rgba(0,0,0,.55);animation:game-drawer-in .22s ease-out}
  .game-menu-top{min-height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid rgba(139,174,205,.24);color:#d5b478;font:500 11px DM Mono;letter-spacing:.12em}
  .game-menu-top button{width:40px;height:40px;border:1px solid rgba(139,174,205,.28);background:transparent;color:#d7e2e9;font-size:23px}
  .game-menu-drawer nav{display:grid;padding:18px 24px 36px}.game-menu-drawer nav small{margin:24px 0 9px;padding-bottom:10px;border-bottom:1px solid rgba(139,174,205,.2);color:#d0a76d;font:500 10px DM Mono;letter-spacing:.17em}
  .game-menu-drawer nav a,.game-menu-drawer nav span,.game-menu-drawer nav button{min-height:47px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 7px;border:0;border-bottom:1px solid rgba(139,174,205,.1);background:transparent;color:#e9eff2;text-decoration:none;text-align:left;font:500 15px Barlow,Arial,sans-serif}
  .game-menu-drawer nav span{color:#8494a2}.game-menu-drawer nav em{color:#ab936f;font:500 9px DM Mono;font-style:normal;white-space:nowrap}
  .game-menu-drawer nav button{color:#d5b478;cursor:pointer}
  @keyframes game-drawer-in{from{transform:translateX(100%)}to{transform:none}}
  #caseDialog .investigation-workspace{display:grid;position:relative;grid-template-columns:clamp(148px,17vw,255px) minmax(0,1fr) clamp(205px,24vw,365px);height:auto;flex:1 1 auto;min-height:0;overflow:hidden}
  #caseDialog .case-file-nav{display:none}
  #caseDialog .case-file-backdrop{display:none}
  #caseDialog .active-leads-panel{display:flex;flex-direction:column;min-width:0;min-height:0;overflow-y:auto;padding:0 17px 22px;border-right:1px solid rgba(164,192,215,.17);background:linear-gradient(180deg,#08131e,#050c13)}
  .leads-heading{display:grid;gap:4px;padding:20px 0 17px;border-bottom:1px solid rgba(164,192,215,.18)}.leads-heading span{font:600 13px DM Mono;letter-spacing:.09em;color:#e0eaf1}.leads-heading small{font:500 8px DM Mono;letter-spacing:.1em;color:#648fb0}
  #caseDialog .active-leads-panel .leads-content{padding-top:17px}
  #caseDialog .active-investigation{min-width:0;height:100%;grid-template-rows:49px minmax(0,1fr) auto}
  #caseDialog .active-investigation .scene-header{display:flex;height:49px;min-height:49px;overflow:visible;padding-inline:clamp(15px,2vw,27px)}
  #caseDialog .active-investigation .transcript{min-height:0;padding-inline:clamp(18px,2vw,33px)}
  #caseDialog .active-investigation .action-form{padding:17px clamp(16px,2vw,27px) 16px}
  #caseDialog .active-investigation .quick-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
  #caseDialog .active-investigation .quick-actions button{min-width:0;border-color:rgba(113,154,183,.28);background:rgba(11,29,43,.55);font-size:clamp(8px,.73vw,10px)}
  #caseDialog .case-viewer{display:block;position:relative;top:auto;left:auto;right:auto;bottom:auto;width:auto;max-width:none;height:100%;max-height:none;transform:none;overflow-y:auto;border-left:1px solid rgba(164,192,215,.17)}
  #caseDialog .case-viewer>.pane-label{display:flex}
  #caseDialog .case-viewer .viewer-content{padding:23px clamp(15px,2vw,28px) 36px}
  .desktop-file-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;padding:9px;background:#091725;border-bottom:1px solid rgba(164,192,215,.18)}
  .desktop-file-tabs .file-nav-item{display:block;min-width:0;height:35px;padding:0 3px;border:0;background:rgba(255,255,255,.025);color:#8da7b9;text-align:center;text-transform:uppercase;font:500 clamp(7px,.62vw,9px) DM Mono;letter-spacing:.02em}
  .desktop-file-tabs .file-nav-item.active{background:rgba(201,155,81,.12);color:#d9b677;box-shadow:inset 0 -2px #c99b51}
  .desktop-file-tabs .file-nav-item:after{display:none!important}
  #caseDialog .active-leads-panel{scrollbar-width:thin;scrollbar-color:#45657c transparent}
  .mobile-active-leads{display:none}
}
@media(min-width:641px) and (max-width:820px){
  #caseDialog .investigation-workspace{grid-template-columns:148px minmax(0,1fr) 205px}
  #caseDialog .active-leads-panel{padding-inline:12px}
  #caseDialog .case-status-bar{display:flex;height:62px;flex-basis:62px;gap:8px;padding-inline:12px}
  #caseDialog .case-status-identity{display:flex;flex-direction:column;flex:1;min-width:0;gap:4px;padding:0}
  #caseDialog .case-status-identity small{display:block}
  #caseDialog .case-location-control{display:grid;flex:0 1 150px;min-width:0}
  #caseDialog .case-status-facts{display:flex;gap:5px}
  #caseDialog .case-status-facts span,#caseDialog .case-status-facts button{height:auto;width:auto;min-height:0;font-size:8px}
  #caseDialog .case-status-facts span b{display:block}
  #caseDialog .case-status-facts span:before,#caseDialog .case-status-facts button:before{display:none}
  #caseDialog .mobile-case-file-button{display:none}
  #caseDialog .active-investigation{width:auto;overflow:hidden}
  #caseDialog .active-investigation .transcript{padding-top:24px;background:#08111a}
  #caseDialog .active-investigation .action-form{padding:10px 12px}
  #caseDialog .active-investigation .quick-actions button{font-size:7px;height:32px;padding:0 2px}
  #caseDialog .active-investigation .quick-actions button:before{display:none}
  #caseDialog .active-investigation .world-dock{display:none}
  #caseDialog .case-viewer .phone-viewer-header{display:none}
}
@media(max-width:640px){
  #caseDialog .mobile-active-leads{display:block;position:relative;z-index:3;min-width:0;max-height:min(46dvh,270px);overflow-y:auto;border-block:1px solid rgba(139,174,205,.23);background:#0a1c2b}
  #caseDialog .mobile-active-leads summary{min-height:36px;display:flex;align-items:center;justify-content:space-between;padding:0 13px;cursor:pointer;list-style:none;color:#d4b478;font:600 10px DM Mono;letter-spacing:.08em}
  #caseDialog .mobile-active-leads summary::-webkit-details-marker{display:none}
  #caseDialog .mobile-active-leads summary:after{content:'⌄';margin-left:12px;color:#8cb8d6}
  #caseDialog .mobile-active-leads[open] summary:after{transform:rotate(180deg)}
  #caseDialog .mobile-active-leads summary span{margin-left:auto;color:#8cb8d6;font-size:9px}
  #caseDialog .mobile-active-leads .leads-content{gap:13px;padding:7px 14px 16px}
  #caseDialog .mobile-active-leads .lead-section h3{margin-bottom:5px}
  #caseDialog .mobile-active-leads .lead-entry{padding:6px 0}
  #caseDialog .active-investigation,#caseDialog.keyboard-open .active-investigation{grid-template-rows:minmax(0,1fr) auto}
  #caseDialog .active-investigation .action-form,#caseDialog.keyboard-open .active-investigation .action-form{grid-row:2;min-height:0;position:relative;z-index:3}
  #caseDialog .active-investigation .transcript,#caseDialog.keyboard-open .active-investigation .transcript{grid-row:1;min-height:0;overflow-y:auto}
}

/* Discovered people use the supplied portrait cards at their native proportions. */
.viewer-record:has(.viewer-person-thumb){display:grid;grid-template-columns:72px minmax(0,1fr);align-items:start;column-gap:12px}
.viewer-person-thumb{display:block;width:72px;height:auto;aspect-ratio:3/4;object-fit:contain;background:#050b11}
.viewer-person-copy{min-width:0;display:grid;gap:5px}
.viewer-person-role{display:block;margin:0 0 12px;color:#c99b51;font:500 10px/1.5 'DM Mono',monospace;letter-spacing:.05em}
.viewer-person-copy .viewer-person-role{margin:0}
.case-viewer .viewer-image[src*="/people/"]{width:min(100%,260px);max-height:none;object-fit:contain}
.person-note-form{margin-top:22px}
.person-links-heading{margin-top:22px}
.viewer-person-link{margin:9px 0;color:#bdd0df;font:500 12px/1.5 Manrope}
.cinematic-shot[data-cinematic-shot="5"] img{object-fit:contain;background:#02060a}
/* Estate map: only known nodes are rendered; the unused surface is fog. */
.estate-map-panel[hidden]{display:none!important}.estate-map-panel{position:absolute;z-index:62;inset:0;overflow:auto;padding:clamp(15px,3vw,32px);background:rgba(2,7,12,.97);color:#e7eced}.estate-map-shell{max-width:960px;margin:auto;border:1px solid rgba(150,176,195,.28);background:linear-gradient(150deg,#0b1b29,#040b13 75%);box-shadow:0 24px 75px #0009}.estate-map-shell>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px clamp(18px,3vw,32px);border-bottom:1px solid #b896632d}.estate-map-shell>header div{display:grid;gap:5px}.estate-map-shell>header small,.estate-map-shell>header strong{font:500 11px 'DM Mono',monospace;letter-spacing:.15em;color:#c7a66e}.estate-map-shell>header strong{font-size:18px;color:#f2e8d6}.estate-map-shell>header button{border:0;background:transparent;color:#e7eced;font-size:30px;cursor:pointer}.estate-map-hint{margin:0;padding:16px clamp(18px,3vw,32px);font:13px/1.6 Manrope,sans-serif;color:#9caeba}.estate-map-groups{padding:0 clamp(18px,3vw,32px);min-height:230px;background:radial-gradient(ellipse at 48% 30%,#17304450,transparent 75%),#050d15}.estate-map-floor{padding:15px 0 22px;border-top:1px solid #7892a22d}.estate-map-floor h3{margin:0 0 13px;color:#cbaa75;font:500 11px 'DM Mono',monospace;letter-spacing:.14em}.estate-map-nodes{display:flex;flex-wrap:wrap;gap:10px}.estate-map-node{min-width:145px;max-width:220px;flex:1 1 145px;min-height:70px;display:grid;align-content:center;gap:7px;padding:12px 14px;border:1px solid #7196af62;background:#102435;color:#e9eef1;text-align:left;cursor:pointer}.estate-map-node.unvisited{border-color:#667b8969;background:#101b25;color:#a7b4ba}.estate-map-node.current,.estate-map-node[aria-pressed=true]{border-color:#c2a06b;box-shadow:inset 0 0 0 1px #c2a06b35}.estate-map-node strong{font:600 14px Manrope,sans-serif}.estate-map-node small,.estate-map-paths{color:#93a8b7;font:10px/1.5 'DM Mono',monospace;letter-spacing:.06em}.estate-map-paths{margin:13px 0 0}.estate-map-selection{display:flex;align-items:center;gap:18px;min-height:116px;padding:18px clamp(18px,3vw,32px);border-top:1px solid #b8966347;background:#0a1925}.estate-map-selection img{width:104px;height:76px;object-fit:cover}.estate-map-selection>div{flex:1;min-width:0;display:grid;gap:6px}.estate-map-selection strong{font:600 17px Manrope,sans-serif}.estate-map-selection small{color:#c7a66e;font:10px 'DM Mono',monospace}.estate-map-selection p{margin:0;color:#9dabb5;font:13px/1.5 Manrope,sans-serif}.estate-map-selection button{min-width:115px;padding:12px;border:1px solid #a8916b;background:#203343;color:#f2e8d6;font:11px 'DM Mono',monospace;cursor:pointer}.estate-map-selection button:disabled{opacity:.55;cursor:default}@media(max-width:640px){.estate-map-panel{padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}.estate-map-shell{min-height:100%;border-width:0}.estate-map-selection{flex-wrap:wrap}.estate-map-selection>div{flex-basis:calc(100% - 130px)}.estate-map-selection button{width:100%}}

/* Case file context and estate map refinements. */
.viewer-bio{margin:14px 0;border-top:1px solid #7892a22d;padding-top:12px}.viewer-bio summary{cursor:pointer;color:#c7a66e;font:11px 'DM Mono',monospace;letter-spacing:.12em;list-style:none}.viewer-bio summary:after{content:' ▸'}.viewer-bio[open] summary:after{content:' ▾'}.viewer-bio summary::-webkit-details-marker{display:none}
.viewer-image.unvisited,.estate-map-selection img.unvisited{filter:brightness(.55) saturate(.55)}
.estate-map-panel .estate-map-groups{background:repeating-linear-gradient(90deg,transparent 0 19%,#b7a98509 19.15% 19.4%,transparent 19.55% 32%),radial-gradient(ellipse at 48% 30%,#17304450,transparent 75%),#050d15}.estate-map-panel .estate-map-paths{color:#b4c7d3}

/* The room roster sits beside Location and uses one panel on every screen. */
.people-location-control{flex:0 1 245px;min-width:0;min-height:48px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-content:center;gap:5px 8px;text-align:left;padding:5px 12px;border:1px solid rgba(74,137,184,.4);background:rgba(32,112,179,.075);cursor:pointer}
.people-location-control:hover,.people-location-control:focus-visible{border-color:#2699ff}.people-location-control small{grid-column:1;white-space:nowrap;color:#609dc8;font:500 9px DM Mono;letter-spacing:.1em}.people-location-control strong{grid-column:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e4edf5;font:500 11px DM Mono}.people-location-control>span{grid-column:2;grid-row:1/3;align-self:center;color:#c99b51}
.people-panel[hidden]{display:none!important}.people-panel{position:absolute;z-index:59;inset:0;display:flex;flex-direction:column;align-items:center;overflow:auto;padding:clamp(18px,5vh,60px) 18px;background:rgba(2,6,11,.92);backdrop-filter:blur(8px)}
.people-panel .move-panel-header,.people-at-location-list{width:min(620px,100%)}.people-at-location-list{padding:15px;border:1px solid rgba(126,165,197,.33);background:#07131e}.present-person{width:100%;min-height:68px;display:flex;align-items:center;gap:13px;margin-bottom:8px;padding:9px 13px;border:1px solid rgba(108,151,184,.35);background:#0b1c2b;text-align:left;color:#e5eef5;cursor:pointer}.present-person:last-child{margin-bottom:0}.present-person:hover{border-color:#2699ff}.present-person img{width:40px;height:50px;object-fit:cover}.present-person strong{flex:1;font:600 14px Manrope}.present-person small{color:#bfa577;font:500 9px DM Mono}.ambient-person{background:#10202d}
@media(min-width:641px) and (max-width:820px){#caseDialog .people-location-control{display:grid;flex:0 1 145px;min-width:0;min-height:46px;padding:5px 8px}#caseDialog .people-location-control small{font-size:8px}#caseDialog .people-location-control strong{font-size:9px}}
@media(max-width:640px){#caseDialog .people-location-control{min-width:0;min-height:54px;padding:7px 6px}.people-location-control strong{font-size:9px}.people-location-control small{font-size:8px}}
@media(max-width:560px){#caseDialog .people-location-control{display:none}#caseDialog .phone-utility{grid-template-columns:repeat(7,minmax(0,1fr))}#caseDialog .phone-utility #phonePeople{color:#a7cfea}#caseDialog .phone-utility button small{font:500 7px DM Mono;letter-spacing:0;color:#9ab6c8}#caseDialog .phone-utility button:has(small){align-content:center;gap:0}#caseDialog .phone-utility button:has(small) span{font-size:19px}#caseDialog.keyboard-open .phone-utility button small{display:none}#caseDialog.keyboard-open #phoneMove{left:5px}#caseDialog.keyboard-open #phonePeople{left:39px}#caseDialog.keyboard-open #phoneContact{left:73px}#caseDialog.keyboard-open #phoneFileToggle{left:107px}#caseDialog.keyboard-open .case-status-bar{padding-left:143px}#caseDialog.case-file-open .phone-utility #phoneFileToggle{left:6px}#caseDialog .people-panel{position:fixed;top:var(--mobile-top,0);height:var(--mobile-vh,100dvh);padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}}
#caseDialog.alpha-no-leads .active-leads-panel,#caseDialog.alpha-no-leads .mobile-active-leads,#caseDialog.alpha-no-leads [data-menu-view="leads"]{display:none}
@media(min-width:641px){#caseDialog.alpha-no-leads .investigation-workspace{grid-template-columns:minmax(0,1fr) clamp(205px,24vw,365px)}}
@media(min-width:641px){
  #caseDialog .investigation-workspace{grid-template-columns:clamp(185px,21vw,280px) minmax(0,1fr) clamp(160px,18vw,245px)}
  #caseDialog .case-viewer{grid-column:1;grid-row:1;border-left:0;border-right:1px solid rgba(164,192,215,.17)}
  #caseDialog .active-investigation{grid-column:2;grid-row:1}
  #caseDialog .active-leads-panel{grid-column:3;grid-row:1;border-right:0;border-left:1px solid rgba(164,192,215,.17)}
  #caseDialog.alpha-no-leads .investigation-workspace{grid-template-columns:clamp(185px,21vw,280px) minmax(0,1fr)}
}
@media(max-width:560px){#caseDialog .phone-utility #phonePeople small{font-size:6px;line-height:1.05;white-space:normal}}

/* Police Radio shares the existing Phone panel language. */
.world-dock{grid-template-columns:repeat(6,minmax(0,1fr))}
.radio-trigger{position:relative}
.radio-trigger.radio-unread:after{content:'';position:absolute;top:4px;right:5px;width:6px;height:6px;border-radius:50%;background:#d3ac67;box-shadow:0 0 8px rgba(211,172,103,.65)}
.radio-panel{position:absolute;z-index:55;inset:0;display:grid;place-items:center;padding:16px;background:rgba(2,7,12,.78)}
.radio-panel[hidden]{display:none!important}
.radio-shell{width:min(540px,100%);height:min(650px,calc(100% - 14px));min-height:0;display:flex;flex-direction:column;border:1px solid rgba(119,170,203,.4);background:linear-gradient(155deg,#0a1c2c,#050e17);box-shadow:0 28px 90px rgba(0,0,0,.65)}
.radio-shell>header{flex:0 0 69px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid rgba(119,170,203,.24)}
.radio-shell>header div{display:grid;gap:5px}.radio-shell>header small{color:#c99b51;font:500 9px DM Mono;letter-spacing:.08em}.radio-shell>header strong{color:#8fcaff;font:500 13px DM Mono;letter-spacing:.1em}
.radio-shell>header button{width:44px;height:44px;border:0;background:transparent;color:#e0e9f1;font:300 26px Manrope}
.radio-history{min-height:0;flex:1;overflow:auto;padding:16px;overscroll-behavior:contain}
.radio-entry{padding:11px 13px;margin-bottom:9px;border-left:2px solid #268fe6;background:#102437;overflow-wrap:anywhere}.radio-entry.player{border-left-color:#c99b51;background:#192737}.radio-entry small{color:#78bcec;font:500 9px DM Mono}.radio-entry p{margin:6px 0 0;color:#dce7ee;font:400 14px/1.55 Manrope;white-space:pre-wrap}
.radio-form{padding:10px 16px;border-top:1px solid rgba(119,170,203,.25)}.radio-form label{display:block;margin-bottom:6px;color:#c99b51;font:500 9px DM Mono}.radio-form>div{display:grid;grid-template-columns:minmax(0,1fr) 105px}.radio-form input{width:100%;min-width:0;height:46px;padding:0 12px;border:1px solid #436074;background:#050e17;color:#fff;font:400 16px Manrope}.radio-form button{border:0;background:#d3ac67;color:#10161d;font:500 10px DM Mono}
@media(max-width:820px){.active-investigation .world-dock{grid-template-columns:repeat(6,minmax(0,1fr))}.radio-panel{position:fixed;top:var(--mobile-top,0);height:var(--mobile-vh,100dvh);bottom:auto;padding:0}.radio-shell{width:100%;height:100%;max-height:100%;border-radius:0;padding-bottom:env(safe-area-inset-bottom)}}
@media(max-width:560px){#caseDialog .phone-utility{grid-template-columns:repeat(8,minmax(0,1fr))}#caseDialog.keyboard-open #phoneRadio{display:none}#caseDialog .phone-utility #phoneRadio span{font-size:19px}}

@media(min-width:641px){
  #caseDialog .workspace-header,#caseDialog.keyboard-open .workspace-header{flex-basis:clamp(66px,5.2vw,84px);height:clamp(66px,5.2vw,84px)}
  #caseDialog .game-header-tape{height:clamp(26px,2.2vw,34px)}
  #caseDialog .game-header-tape span{font-size:clamp(15px,1.25vw,20px)}
  #caseDialog .game-header-logo{width:clamp(64px,5.5vw,78px)}
  #caseDialog .game-menu-trigger{width:38px;height:38px;font-size:19px}
  #caseDialog .active-investigation .world-dock{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:center;width:min(100%,590px);gap:6px;margin-inline:auto}
  #caseDialog .active-investigation .world-dock button{flex:0 1 104px;min-height:42px;padding:4px 7px;font-size:9px;white-space:nowrap}
  #caseDialog .active-investigation .world-dock #dockOptions{flex-basis:82px}
  #caseDialog .world-dock .desktop-phone-art,#caseDialog .world-dock .desktop-radio-art{flex:none;display:block;width:29px;height:34px;border:0;background-repeat:no-repeat;background-size:71px 35.5px;font-size:0}
  #caseDialog .world-dock .desktop-phone-art{background-position:-11px -1px}
  #caseDialog .world-dock .desktop-radio-art{background-position:-42px -1px}
}

/* Patch 1: a scene-led presentation over the existing investigation engine. */
#caseDialog.patch1-shell .case-status-bar,#caseDialog.patch1-shell .phone-utility,#caseDialog.patch1-shell .phone-overflow-menu{display:none!important}
#caseDialog.patch1-shell .scene-header,#caseDialog.patch1-shell .scene-wash,#caseDialog.patch1-shell .transcript,#caseDialog.patch1-shell .latest-response-button{display:none!important}
#caseDialog.patch1-shell .shell-header-identity{position:absolute;z-index:2;left:clamp(95px,9vw,140px);display:grid;gap:4px;color:#8cb6d0;font:500 10px 'DM Mono',monospace;letter-spacing:.1em}
#caseDialog.patch1-shell .shell-header-identity b{color:#e9e5db;font:600 14px Manrope,sans-serif;letter-spacing:0}
#caseDialog.patch1-shell .shell-context{min-width:0;min-height:0;overflow:auto;padding:20px 16px;background:linear-gradient(180deg,#0b1b28,#06111b);border-right:1px solid #7896a436}
#caseDialog.patch1-shell .shell-context>small,.shell-context-copy span,.shell-context-known>span{display:block;color:#bca57a;font:500 10px 'DM Mono',monospace;letter-spacing:.1em}
#caseDialog.patch1-shell .shell-context>img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;margin:15px 0;border:1px solid #66839b57}
#caseDialog.patch1-shell .shell-context>img[hidden]{display:none}
#caseDialog.patch1-shell .shell-context-copy{display:grid;gap:6px;padding:0 0 16px;border-bottom:1px solid #7896a436}
#caseDialog.patch1-shell .shell-context-copy strong{color:#f0e5d3;font:600 15px Manrope,sans-serif}
#caseDialog.patch1-shell .shell-context-known{padding-top:17px}
#caseDialog.patch1-shell .shell-context-known ul{list-style:none;padding:0;margin:11px 0 0}
#caseDialog.patch1-shell .shell-context-known li{padding:9px 4px;border-bottom:1px solid #7896a421;color:#a9becb;font:500 11px Manrope,sans-serif}
#caseDialog.patch1-shell .shell-context-known li.current{color:#dec190;background:#c99b511a}
#caseDialog.patch1-shell .active-investigation,#caseDialog.patch1-shell.keyboard-open .active-investigation{display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:0;min-width:0;min-height:0;height:100%;overflow:hidden;background:#06111b}
#caseDialog.patch1-shell .shell-scene{min-height:0;position:relative;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;background:#0c1d2a}
#caseDialog.patch1-shell .shell-scene:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#06111bed 0%,#06111b70 25%,transparent 57%),linear-gradient(90deg,#06111b9c,transparent 55%);pointer-events:none}
#caseDialog.patch1-shell .shell-scene img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 46%}
#caseDialog.patch1-shell .shell-scene img[hidden]{display:none}
#caseDialog.patch1-shell .shell-scene-heading,#caseDialog.patch1-shell .shell-scene p{position:relative;z-index:1;margin-left:clamp(16px,2vw,32px);margin-right:clamp(16px,2vw,32px);text-shadow:0 2px 9px #020609}
#caseDialog.patch1-shell .shell-scene-heading{display:grid;gap:4px;margin-bottom:12px}
#caseDialog.patch1-shell .shell-scene-heading span{color:#d6be8d;font:500 11px 'DM Mono',monospace;letter-spacing:.14em}
#caseDialog.patch1-shell .shell-scene-heading strong{color:#f5f2eb;font:600 clamp(21px,2.1vw,34px) Manrope,sans-serif;text-transform:uppercase;line-height:1.1}
#caseDialog.patch1-shell .shell-scene p{max-width:850px;margin-top:0;margin-bottom:18px;color:#e0e8ee;font:400 clamp(12px,1.05vw,15px)/1.5 Manrope,sans-serif}
#caseDialog.patch1-shell .shell-recent{min-height:0;max-height:clamp(112px,19vh,185px);overflow:auto;padding:13px clamp(16px,2vw,32px);border-top:1px solid #7896a436;background:#081725}
#caseDialog.patch1-shell .shell-recent h2{margin:0 0 9px;color:#c9ac77;font:500 10px 'DM Mono',monospace;letter-spacing:.12em}
#caseDialog.patch1-shell .shell-recent ol{margin:0;padding:0;list-style:none}
#caseDialog.patch1-shell .shell-recent li{display:flex;gap:12px;align-items:baseline;padding:5px 0;border-top:1px solid #7896a424;color:#d0dce5;font:400 11px/1.4 Manrope,sans-serif}
#caseDialog.patch1-shell .shell-recent li time{flex:none;color:#78a8c8;font:500 9px 'DM Mono',monospace}
#caseDialog.patch1-shell .shell-recent li strong{flex:none;color:#d5bb8e;font:500 9px 'DM Mono',monospace}
#caseDialog.patch1-shell .shell-recent li span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#caseDialog.patch1-shell .shell-controls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;padding:10px clamp(10px,1.4vw,22px) max(10px,env(safe-area-inset-bottom));border-top:1px solid #7896a43c;background:#07121e}
#caseDialog.patch1-shell .shell-controls button{min-width:0;min-height:clamp(74px,11vh,112px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 3px;border:1px solid #577a988a;border-radius:4px;background:linear-gradient(155deg,#0d293d,#061523);color:#ead4aa;cursor:pointer;font:600 clamp(9px,.85vw,12px) 'DM Mono',monospace;letter-spacing:.055em;transition:background .15s,border-color .15s,transform .15s}
#caseDialog.patch1-shell .shell-controls button:hover,#caseDialog.patch1-shell .shell-controls button:focus-visible{border-color:#d7b778;background:#15364d;transform:translateY(-2px)}
#caseDialog.patch1-shell .shell-controls button:active{transform:translateY(0)}
#caseDialog.patch1-shell .shell-action-icon{display:block;width:clamp(43px,5.2vw,71px);aspect-ratio:1;background-repeat:no-repeat;background-size:700% auto;background-position-y:7%}
#caseDialog.patch1-shell .icon-move{background-position-x:2.8%}#caseDialog.patch1-shell .icon-speak{background-position-x:21.7%}#caseDialog.patch1-shell .icon-examine{background-position-x:40.6%}#caseDialog.patch1-shell .icon-collect{background-position-x:59.6%}#caseDialog.patch1-shell .icon-notes{background-position-x:78.6%}#caseDialog.patch1-shell .icon-case-file{background-position-x:97.6%}
#caseDialog.patch1-shell .shell-tool-panel[hidden]{display:none!important}
#caseDialog.patch1-shell .shell-tool-panel{position:absolute;z-index:34;inset:0;display:grid;place-items:center;padding:16px;background:#020811dc;backdrop-filter:blur(6px)}
#caseDialog.patch1-shell .shell-tool-content{width:min(680px,100%);max-height:100%;overflow:auto;border:1px solid #b69b6b75;background:linear-gradient(145deg,#0e2535,#07121d);box-shadow:0 25px 70px #000a}
#caseDialog.patch1-shell .shell-tool-content>header{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid #7896a43c;color:#e4c28b;font:600 13px 'DM Mono',monospace;letter-spacing:.1em}
#caseDialog.patch1-shell .shell-tool-content>header button{border:0;background:transparent;color:#e3e9ed;font-size:28px;cursor:pointer}
#caseDialog.patch1-shell #shellToolBody{padding:16px}
#caseDialog.patch1-shell .shell-tool-shortcut{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px;color:#c6d7e2;font:13px/1.5 Manrope,sans-serif}
#caseDialog.patch1-shell .shell-tool-shortcut button{min-height:42px;padding:8px 11px;border:1px solid #7392aa76;background:#0b2030;color:#e6d0a9;cursor:pointer;font:500 10px 'DM Mono',monospace}
#caseDialog.patch1-shell #actionForm[hidden]{display:none!important}
#caseDialog.patch1-shell .shell-tool-panel .action-form{display:block;position:relative;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
#caseDialog.patch1-shell .shell-tool-panel .quick-actions,#caseDialog.patch1-shell .shell-tool-panel .world-dock{display:none!important}
#caseDialog.patch1-shell .shell-tool-panel .action-form label{display:block;margin:0 0 9px;color:#d3b57f;font:500 10px 'DM Mono',monospace}
#caseDialog.patch1-shell .shell-tool-panel .command-row{display:flex;height:48px}
#caseDialog.patch1-shell .shell-tool-panel .command-row input{flex:1;min-width:0;padding:0 12px;border:1px solid #557790;background:#05111b;color:#e9eff3;font:16px Manrope,sans-serif}
#caseDialog.patch1-shell .shell-tool-panel .command-row button{padding:0 16px;border:0;background:#c9a568;color:#08131e;font:600 10px 'DM Mono',monospace}
@media(min-width:641px){
  #caseDialog.patch1-shell .workspace-header,#caseDialog.patch1-shell.keyboard-open .workspace-header{height:62px;flex-basis:62px}
  #caseDialog.patch1-shell .game-header-logo{position:absolute;left:16px;width:62px}
  #caseDialog.patch1-shell .game-header-tape{height:25px;opacity:.55}
  #caseDialog.patch1-shell .game-header-tape span{font-size:14px}
  #caseDialog.patch1-shell .investigation-workspace{grid-template-columns:clamp(165px,17vw,240px) minmax(0,1fr) clamp(160px,16vw,225px)}
  #caseDialog.patch1-shell.alpha-no-leads .investigation-workspace{grid-template-columns:clamp(165px,17vw,240px) minmax(0,1fr)}
  #caseDialog.patch1-shell .shell-context{display:block;grid-column:1;grid-row:1}
  #caseDialog.patch1-shell .active-investigation{grid-column:2;grid-row:1}
  #caseDialog.patch1-shell .active-leads-panel{grid-column:3;grid-row:1}
  #caseDialog.patch1-shell .case-viewer{display:none}
  #caseDialog.patch1-shell.shell-file-open .case-viewer{display:block;position:absolute;z-index:32;top:0;left:auto;right:0;bottom:0;width:min(470px,80vw);max-height:none;overflow:auto;border-left:1px solid #b79d7370;box-shadow:-20px 0 70px #000b;background:#081722}
  #caseDialog.patch1-shell.shell-file-open .case-viewer .phone-viewer-header{display:flex;position:sticky;top:0;z-index:2;background:#0b2232}
  #caseDialog.patch1-shell.shell-file-open .case-viewer .phone-viewer-back{display:none}
}
@media(max-width:820px) and (min-width:641px){#caseDialog.patch1-shell .investigation-workspace{grid-template-columns:138px minmax(0,1fr) 145px}#caseDialog.patch1-shell.alpha-no-leads .investigation-workspace{grid-template-columns:138px minmax(0,1fr)}#caseDialog.patch1-shell .shell-context{padding:15px 10px}#caseDialog.patch1-shell .shell-controls{gap:4px;padding-inline:8px}#caseDialog.patch1-shell .shell-controls button{min-height:75px;font-size:8px}#caseDialog.patch1-shell .shell-action-icon{width:43px}}
@media(max-width:640px){
  #caseDialog.patch1-shell .workspace-header,#caseDialog.patch1-shell.keyboard-open .workspace-header{display:block;position:relative;flex:0 0 calc(58px + env(safe-area-inset-top));height:calc(58px + env(safe-area-inset-top));min-height:0;padding:env(safe-area-inset-top) 0 0;background:#07131f}
  #caseDialog.patch1-shell .workspace-header:after,#caseDialog.patch1-shell .workspace-brand,#caseDialog.patch1-shell .workspace-public-nav,#caseDialog.patch1-shell .workspace-header-actions{display:none!important}
  #caseDialog.patch1-shell .game-desktop-masthead{display:flex;position:relative;inset:auto;height:58px;align-items:center;justify-content:flex-start;padding-left:12px}
  #caseDialog.patch1-shell .game-header-tape{display:none}
  #caseDialog.patch1-shell .game-header-logo{position:relative;flex:0 0 52px;width:52px;height:55px;display:grid;place-items:center;background:none}
  #caseDialog.patch1-shell .game-header-logo img{display:block;width:52px;height:52px;max-width:100%;object-fit:contain;filter:drop-shadow(0 2px 5px #000a)}
  #caseDialog.patch1-shell .shell-header-identity{position:relative;left:auto;min-width:0;margin-left:8px;margin-right:58px;font-size:8px;gap:2px}
  #caseDialog.patch1-shell .shell-header-identity b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
  #caseDialog.patch1-shell .game-menu-trigger{display:block;right:12px;width:38px;height:38px}
  #caseDialog.patch1-shell .game-menu-backdrop{position:fixed;inset:0;z-index:45;display:flex;justify-content:flex-end;background:#01060bba}
  #caseDialog.patch1-shell .game-menu-drawer{width:min(350px,86vw);height:100%;overflow:auto;background:#071725;border-left:1px solid #b6996977}
  #caseDialog.patch1-shell .game-menu-top{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid #7896a436;color:#d7b984}
  #caseDialog.patch1-shell .game-menu-drawer nav{display:grid;padding:12px 18px 28px}
  #caseDialog.patch1-shell .game-menu-drawer nav small{margin:16px 0 7px;color:#d4b377;font:500 10px 'DM Mono',monospace}
  #caseDialog.patch1-shell .game-menu-drawer nav a,#caseDialog.patch1-shell .game-menu-drawer nav button,#caseDialog.patch1-shell .game-menu-drawer nav span{display:flex;min-height:42px;align-items:center;padding:8px 4px;border:0;border-bottom:1px solid #7896a42b;background:transparent;color:#dce7ee;text-align:left;text-decoration:none;font:13px Manrope,sans-serif}
  #caseDialog.patch1-shell .investigation-workspace,#caseDialog.patch1-shell.alpha-no-leads .investigation-workspace{display:block;height:auto;min-height:0;flex:1;overflow:hidden}
  #caseDialog.patch1-shell .shell-context,#caseDialog.patch1-shell .active-leads-panel{display:none!important}
  #caseDialog.patch1-shell .active-investigation,#caseDialog.patch1-shell.keyboard-open .active-investigation{height:100%;grid-template-rows:minmax(0,1fr) auto auto}
  #caseDialog.patch1-shell .shell-scene{min-height:160px}
  #caseDialog.patch1-shell .shell-scene-heading{margin-bottom:6px}
  #caseDialog.patch1-shell .shell-scene-heading span{font-size:9px}
  #caseDialog.patch1-shell .shell-scene-heading strong{font-size:clamp(18px,5vw,25px)}
  #caseDialog.patch1-shell .shell-scene p{max-height:3.1em;overflow:hidden;margin-bottom:12px;font-size:11px;line-height:1.55}
  #caseDialog.patch1-shell .shell-recent{max-height:clamp(110px,19dvh,165px);padding:10px 14px}
  #caseDialog.patch1-shell .shell-recent h2{font-size:10px;margin-bottom:7px}
  #caseDialog.patch1-shell .shell-recent li{gap:7px;font-size:12.5px;line-height:1.45;padding:6px 0}
  #caseDialog.patch1-shell .shell-recent li time{font-size:10px}
  #caseDialog.patch1-shell .shell-recent li strong{font-size:10px}
  #caseDialog.patch1-shell .shell-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:9px 12px max(12px,env(safe-area-inset-bottom))}
  #caseDialog.patch1-shell .shell-controls button{min-height:clamp(80px,11dvh,96px);padding:0 2px;font-size:9px;gap:0}
  #caseDialog.patch1-shell .shell-action-icon{width:clamp(75px,22vw,92px)}
  #caseDialog.patch1-shell .shell-tool-panel{position:fixed;top:var(--mobile-top,0);height:var(--mobile-vh,100dvh);padding:max(12px,env(safe-area-inset-top)) 10px max(12px,env(safe-area-inset-bottom));z-index:55}
  #caseDialog.patch1-shell .shell-tool-content{max-height:100%}
}
@media(max-width:560px){#caseDialog.patch1-shell .workspace-header,#caseDialog.patch1-shell.keyboard-open .workspace-header{display:block!important}}
@media(max-width:640px){#caseDialog.patch1-shell .game-menu-trigger{position:absolute;top:50%;transform:translateY(-50%);border:1px solid #7794a464;border-radius:4px;background:#0a1c2b;color:#e6dfd2;font-size:20px}#caseDialog.patch1-shell .game-menu-top button{width:40px;height:40px;border:1px solid #7896a44a;background:transparent;color:#e8e5da;font-size:24px}}
#caseDialog.patch1-shell .shell-tool-latest{margin:0 16px 16px;padding:12px 14px;border-left:2px solid #bba071;background:#102434;color:#dce8ef;white-space:pre-wrap;font:13px/1.55 Manrope,sans-serif}
#caseDialog.patch1-shell .shell-tool-latest[hidden]{display:none!important}

/* Patch 2: MOVE uses the established location and route state. */
#caseDialog.patch1-shell .move-panel[hidden],#caseDialog.patch1-shell .move-map-view[hidden],#caseDialog.patch1-shell .move-locations-view[hidden]{display:none!important}
#caseDialog.patch1-shell .move-panel{position:absolute;z-index:58;inset:0;display:flex;align-items:stretch;justify-content:center;padding:clamp(10px,2vw,24px);overflow:hidden;background:rgba(2,7,13,.96);backdrop-filter:blur(10px)}
#caseDialog.patch1-shell .move-shell{width:min(1280px,100%);height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #7897aa63;background:linear-gradient(155deg,#0c2030,#06111b 70%);box-shadow:0 25px 80px #000b}
#caseDialog.patch1-shell .move-panel-header{width:100%;min-height:66px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:7px 18px;border:0;border-bottom:1px solid #7897aa45;background:#081725}
#caseDialog.patch1-shell .move-brand{display:flex;align-items:center;gap:11px;min-width:0}
#caseDialog.patch1-shell .move-brand img{width:48px;height:48px;object-fit:contain}
#caseDialog.patch1-shell .move-brand span{display:grid;gap:4px}
#caseDialog.patch1-shell .move-brand small{color:#83badf;font:500 9px 'DM Mono',monospace;letter-spacing:.1em}
#caseDialog.patch1-shell .move-brand strong{color:#e8d1a5;font:600 18px Manrope,sans-serif;letter-spacing:.1em}
#caseDialog.patch1-shell .move-panel-header>button{flex:0 0 44px;width:44px;height:44px;border:1px solid #7897aa54;border-radius:4px;background:#0c2334;color:#e8eff3;font-size:25px}
#caseDialog.patch1-shell .move-tabs{display:flex;gap:4px;flex:0 0 auto;padding:9px 16px 0;border-bottom:1px solid #7897aa43;background:#081725}
#caseDialog.patch1-shell .move-tabs button{min-width:128px;min-height:43px;padding:8px 18px;border:1px solid transparent;border-bottom:0;background:#102437;color:#a6c1d2;cursor:pointer;font:600 11px 'DM Mono',monospace;letter-spacing:.1em}
#caseDialog.patch1-shell .move-tabs button[aria-selected="true"]{border-color:#bba3758c;background:#142e40;color:#e9c787;box-shadow:inset 0 2px #c6a66e}
#caseDialog.patch1-shell .move-body{flex:1;min-height:0;overflow:auto;padding:14px 18px 20px;overscroll-behavior:contain}
#caseDialog.patch1-shell .move-map-view{display:flex;flex-direction:column;align-items:center;gap:12px;min-height:0}
#caseDialog.patch1-shell .move-map-surface{position:relative;width:min(100%,calc((100dvh - 260px)*1.5));min-width:0;aspect-ratio:3/2;overflow:hidden;border:1px solid #9ab4c456;background:#071621;box-shadow:0 12px 40px #0008}
#caseDialog.patch1-shell .move-map-surface>img{display:block;width:100%;height:100%;object-fit:contain}
#caseDialog.patch1-shell .move-map-surface:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#06111b27,transparent 30% 75%,#06111b20)}
#caseDialog.patch1-shell .move-map-markers{position:absolute;z-index:1;inset:0;pointer-events:none}
#caseDialog.patch1-shell .move-map-marker{position:absolute;display:flex;flex-direction:column;align-items:center;gap:3px;transform:translate(-50%,-50%);padding:2px;border:0;background:transparent;color:#e8edf0;cursor:pointer;pointer-events:auto;filter:drop-shadow(0 2px 4px #000)}
#caseDialog.patch1-shell .move-pin{width:22px;height:22px;display:block;border:2px solid #b9d5e9;border-radius:50%;background:#0a304bbf;box-shadow:0 0 0 3px #04111dc4,0 0 12px #117fca8c}
#caseDialog.patch1-shell .move-marker-label{max-width:112px;padding:3px 6px;border:1px solid #a4bed17d;border-radius:3px;background:#051420e8;color:#ecf1f2;text-align:center;font:600 10px/1.2 Manrope,sans-serif;white-space:normal}
#caseDialog.patch1-shell .move-map-marker.current .move-pin{border-color:#f2d28f;background:#b88535;box-shadow:0 0 0 3px #22190dd9,0 0 14px #f5b95fb0}
#caseDialog.patch1-shell .move-map-marker.current .move-marker-label{border-color:#dfbd78;background:#302414ed;color:#ffe0a3}
#caseDialog.patch1-shell .move-map-marker.selected:not(.current) .move-pin,#caseDialog.patch1-shell .move-map-marker:focus-visible .move-pin{border-color:#f2d28f;box-shadow:0 0 0 4px #d0a86188}
#caseDialog.patch1-shell .move-map-selection{width:min(100%,840px);min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border:1px solid #8daabb5c;background:#0b2131}
#caseDialog.patch1-shell .move-selection-info{min-width:0;display:grid;gap:4px}
#caseDialog.patch1-shell .move-selection-info small{color:#8db6ce;font:500 9px 'DM Mono',monospace;letter-spacing:.08em}
#caseDialog.patch1-shell .move-selection-info strong{color:#eff2f1;font:600 16px Manrope,sans-serif}
#caseDialog.patch1-shell .move-selection-info span{color:#e2bf7e;font:500 9px 'DM Mono',monospace}
#caseDialog.patch1-shell .move-map-selection>button{min-width:116px;min-height:45px;padding:8px 15px;border:1px solid #bf9e66;background:#c4a16b;color:#081523;cursor:pointer;font:600 11px 'DM Mono',monospace}
#caseDialog.patch1-shell .move-map-selection>button:disabled{opacity:.52;cursor:default}
#caseDialog.patch1-shell .move-locations-view{width:min(880px,100%);margin:auto}
#caseDialog.patch1-shell .move-list{width:100%;padding:0;border:0;background:transparent}
#caseDialog.patch1-shell .move-item{min-height:78px;display:flex;gap:15px;align-items:center;padding:10px 14px;margin-bottom:9px;border:1px solid #7295ac61;background:#0b2232}
#caseDialog.patch1-shell .move-item.current{border-color:#bda16e8c;background:#30291c5c}
#caseDialog.patch1-shell .move-item img{flex:0 0 100px;width:100px;height:66px;object-fit:cover;border:1px solid #89a6b15e}
#caseDialog.patch1-shell .move-item-copy{flex:1;min-width:0;display:grid;gap:6px}
#caseDialog.patch1-shell .move-item-copy small{color:#8bb4d0;font:500 9px 'DM Mono',monospace;letter-spacing:.06em}
#caseDialog.patch1-shell .move-item-copy strong{color:#edf0ee;font:600 15px Manrope,sans-serif}
#caseDialog.patch1-shell .move-item>b{flex:none;color:#e0bd80;font:600 10px 'DM Mono',monospace;white-space:nowrap}
#caseDialog.patch1-shell .move-item:disabled{opacity:.7}
@media(max-width:640px){
  #caseDialog.patch1-shell .move-panel{position:fixed;top:var(--mobile-top,0);height:var(--mobile-vh,100dvh);bottom:auto;padding:0;z-index:59}
  #caseDialog.patch1-shell .move-shell{width:100%;height:100%;border:0;padding-bottom:env(safe-area-inset-bottom)}
  #caseDialog.patch1-shell .move-panel-header{min-height:calc(56px + env(safe-area-inset-top));padding:max(4px,env(safe-area-inset-top)) 12px 4px}
  #caseDialog.patch1-shell .move-brand img{width:43px;height:43px}
  #caseDialog.patch1-shell .move-brand small{font-size:8px}
  #caseDialog.patch1-shell .move-brand strong{font-size:15px}
  #caseDialog.patch1-shell .move-tabs{padding:5px 10px 0}
  #caseDialog.patch1-shell .move-tabs button{flex:1;min-width:0;min-height:46px}
  #caseDialog.patch1-shell .move-body{padding:12px 10px max(16px,env(safe-area-inset-bottom));overflow-x:hidden}
  #caseDialog.patch1-shell .move-map-surface{width:100%;aspect-ratio:3/2}
  #caseDialog.patch1-shell .move-pin{width:18px;height:18px}
  #caseDialog.patch1-shell .move-marker-label{max-width:70px;padding:2px 3px;font-size:8px;line-height:1.1}
  #caseDialog.patch1-shell .move-map-selection{min-height:76px;padding:10px 12px}
  #caseDialog.patch1-shell .move-selection-info strong{font-size:14px}
  #caseDialog.patch1-shell .move-selection-info small{font-size:8px}
  #caseDialog.patch1-shell .move-map-selection>button{min-width:92px;min-height:46px;padding:7px 10px}
  #caseDialog.patch1-shell .move-item{min-height:78px;padding:9px 10px;gap:10px}
  #caseDialog.patch1-shell .move-item img{flex-basis:78px;width:78px;height:58px}
  #caseDialog.patch1-shell .move-item-copy strong{font-size:13px}
  #caseDialog.patch1-shell .move-item-copy small,#caseDialog.patch1-shell .move-item>b{font-size:8px}
}

/* Patch 3: SPEAK presents the existing interview, call and radio state. */
#caseDialog.patch1-shell .shell-tool-panel.speak-open{z-index:55;padding:clamp(8px,1.4vw,20px)}
#caseDialog.patch1-shell .speak-open .shell-tool-content{width:min(1280px,100%);height:min(850px,100%);max-height:100%;display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(145deg,#0b2030,#040d17 70%)}
#caseDialog.patch1-shell .speak-open #shellToolBody{display:flex;flex-direction:column;flex:1;min-height:0;padding:0}
.speak-mode-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:8px 12px;border-bottom:1px solid #607d9440;background:#061420}
.speak-mode-tabs button{min-width:0;min-height:40px;border:1px solid #5c7b9359;background:#0a2031;color:#b7cfdf;cursor:pointer;font:500 11px 'DM Mono',monospace;letter-spacing:.05em}
.speak-mode-tabs button.active{border-color:#c7a26b;background:#243449;color:#f1d49d;box-shadow:inset 0 -2px #c7a26b}
.speak-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(190px,26%) minmax(0,1fr)}
.speak-roster{min-height:0;overflow:auto;border-right:1px solid #7793a547;background:linear-gradient(#0b1a28de,#06111dec),url('/game/assets/valen-opening-desk.png') center/cover}
.speak-roster-heading{padding:16px;color:#dbc395;font:500 12px/1.4 'DM Mono',monospace;text-transform:uppercase}
.speak-person{width:calc(100% - 20px);min-height:69px;display:flex;align-items:center;gap:10px;margin:0 10px 8px;padding:8px;border:1px solid #668baa69;background:#0a1c2bdd;color:#e7eff4;text-align:left;cursor:pointer}
.speak-person:hover,.speak-person.active{border-color:#d6b474;background:#183248}
.speak-person img{width:45px;height:52px;object-fit:cover;flex:none}
.speak-person span{display:grid;gap:5px;min-width:0}.speak-person strong{font:600 13px/1.3 Manrope,sans-serif}.speak-person small{font:500 10px/1.3 'DM Mono',monospace;color:#92b4cc}
.speak-empty{margin:20px;color:#a8bece;font:14px/1.5 Manrope,sans-serif}
.speak-conversation-view{min-width:0;min-height:0;display:flex;flex-direction:column;background:radial-gradient(circle at 75% 5%,#15304965,transparent 55%),#06121d}
.speak-conversation-heading{min-height:70px;display:flex;align-items:center;gap:12px;padding:10px 17px;border-bottom:1px solid #68889d42}
.speak-conversation-heading img{width:46px;height:48px;object-fit:cover;border:1px solid #ad966f7a}.speak-conversation-heading span{display:grid;gap:4px;flex:1;min-width:0}.speak-conversation-heading strong{color:#f0ece4;font:600 17px Manrope,sans-serif}.speak-conversation-heading small{color:#84b4d8;font:500 11px 'DM Mono',monospace}.speak-conversation-heading button{border:1px solid #7897aa6a;background:#0c2130;color:#d2b780;cursor:pointer}.speak-conversation-heading .speak-back{display:none;width:40px;height:44px;font:26px Manrope}.speak-view-person{padding:8px 10px;font:500 10px 'DM Mono',monospace}
.speak-transcript{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:18px;overscroll-behavior:contain}
.speak-bubble{flex:none;min-width:0;max-width:min(78%,580px);padding:12px 15px;border-radius:12px;color:#f0f4f7;font:1rem/1.55 Manrope,sans-serif;overflow-wrap:anywhere}.speak-bubble.npc{align-self:flex-start;background:#20282e;border:1px solid #52606a}.speak-bubble.player{align-self:flex-end;background:#204766;border:1px solid #5686a4}
.speak-bubble .conversation-speaker{display:block;margin:0 0 6px;color:#e3c28b;font:500 .875rem/1.4 'DM Mono',monospace;letter-spacing:.04em}.speak-bubble.player .conversation-speaker{color:#bfdef5}.speak-bubble .conversation-text{margin:0;white-space:pre-wrap}
#caseDialog.patch1-shell .speak-open .action-form{flex:none;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid #7797a347;background:#071722}
#caseDialog.patch1-shell .speak-open .action-form label,#caseDialog.patch1-shell .speak-open .interview-session,#caseDialog.patch1-shell .speak-open .dismiss-keyboard,#caseDialog.patch1-shell .speak-open .command-save-status{display:none!important}
#caseDialog.patch1-shell .speak-open .command-row{height:48px}
#caseDialog.patch1-shell .speak-open .command-row button{min-width:92px}
.phone-panel,.radio-panel{z-index:60}
.phone-panel .phone-shell,.radio-panel .radio-shell{width:min(980px,100%);height:min(780px,calc(100% - 8px));max-height:100%;background:radial-gradient(circle at 70% 0,#19405b52,transparent 45%),#061420}
.phone-entry-art{display:flex;align-items:center;gap:13px;padding:15px 20px 6px;color:#d6bc8b;font:500 12px 'DM Mono',monospace;letter-spacing:.1em}
.speak-asset{width:54px;height:54px;display:block;background-repeat:no-repeat;background-size:850% auto}
.speak-asset-phone{background-position:41.3% 84.5%}.speak-asset-radio{background-position:58.2% 84.5%}
.phone-panel .phone-contacts{flex:1;min-height:0;padding:12px 20px 20px}.phone-panel .phone-contact{justify-content:flex-start;min-height:78px;padding:8px 12px;cursor:pointer}.phone-contact img{width:48px;height:56px;object-fit:cover}.phone-contact-copy{display:grid;gap:5px;flex:1}.phone-panel .phone-contact small{font-size:11px;color:#94b9cd}.phone-contact-call{display:grid;place-items:center;width:39px;height:39px;border:1px solid #bba273a3;border-radius:50%;color:#ddb772;font-size:22px}
.phone-panel.call-active .speak-mode-tabs,.phone-panel.call-active .phone-entry-art{display:none}
.phone-panel.call-active .phone-shell{width:min(520px,100%);background:#07121b}
.phone-panel.call-active .phone-call{position:relative;isolation:isolate;overflow:hidden;align-items:stretch}
.call-portrait{position:absolute;z-index:-1;inset:0;background-position:center 25%;background-size:cover;filter:saturate(.8)}
.call-identity{padding:24px 16px 0;text-align:center;color:#f3eee5;font:600 20px Manrope;text-shadow:0 2px 6px #000}
.phone-panel.call-active .phone-call-status{text-align:center;color:#b7d3e4}
.call-visual-controls{display:flex;justify-content:center;gap:24px;color:#e8eef1;text-align:center}.call-visual-controls>span{display:block;width:62px;height:62px;padding:11px 3px;border:1px solid #9bb2c160;border-radius:50%;background:#0b1b29ba;font:21px Manrope}.call-visual-controls small{font:9px 'DM Mono',monospace}
.phone-panel.call-active .phone-history{margin:12px 16px;min-height:60px;padding:10px;background:#061421c7;border:1px solid #6a8ba75c}
.phone-panel.call-active .end-call{order:2;align-self:center;width:60px;height:60px;min-height:60px;margin:9px auto 18px;border:0;border-radius:50%;background:#b82c32;color:white;font:600 10px 'DM Mono',monospace}
.phone-panel.call-active .phone-form{background:#07121bd9}
.radio-panel .radio-shell{width:min(1050px,100%);background:repeating-linear-gradient(0deg,#67b9e005 0 1px,transparent 1px 5px),linear-gradient(150deg,#071d30,#030c17)}
.radio-shell>header{flex-basis:65px}.radio-shell>header strong{font-size:15px}
.dispatch-banner{height:clamp(105px,21vh,195px);display:flex;align-items:center;justify-content:center;gap:clamp(8px,4vw,44px);overflow:hidden;border-bottom:1px solid #5b92b658;background:radial-gradient(ellipse at center,#19416e88,transparent 65%)}
.dispatch-banner img{display:block;width:clamp(100px,17vh,174px);height:clamp(100px,17vh,174px);object-fit:cover;clip-path:circle(46%);filter:drop-shadow(0 0 11px #509ad555)}
.dispatch-wave{width:min(25%,230px);height:70px;opacity:.8;background:repeating-linear-gradient(90deg,transparent 0 5px,#3094d3 6px 8px,transparent 9px 13px);clip-path:polygon(0 48%,5% 44%,10% 62%,15% 25%,20% 75%,25% 14%,30% 83%,35% 38%,40% 68%,45% 11%,50% 92%,55% 23%,60% 74%,65% 35%,70% 63%,75% 20%,80% 76%,85% 42%,90% 58%,95% 44%,100% 50%,100% 100%,0 100%)}
.dispatch-channel{display:flex;justify-content:space-between;gap:12px;padding:10px 17px;border-bottom:1px solid #4c82a853;color:#91bee0;font:500 11px 'DM Mono',monospace}.dispatch-channel strong{color:#54d9aa;font-size:10px}.dispatch-channel i{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#37dba0;box-shadow:0 0 7px #37dba0}
.radio-panel .radio-history{background:linear-gradient(90deg,#0d345122 1px,transparent 1px) 0 0/34px 100%}.radio-panel .radio-entry{max-width:85%;border-left-width:3px}.radio-panel .radio-entry.player{margin-left:auto}.radio-panel .radio-entry small{font-size:10px}.radio-panel .radio-form{background:#061521}
@media(max-width:1100px){
  #caseDialog.patch1-shell .speak-open{position:fixed;top:var(--mobile-top,0);height:var(--mobile-vh,100dvh);bottom:auto;padding:0;z-index:65}
  #caseDialog.patch1-shell .speak-open .shell-tool-content{width:100%;height:100%;max-height:100%;border:0}
  #caseDialog.patch1-shell .speak-open #shellToolBody{min-height:0}
  .phone-panel,.radio-panel{position:fixed;top:var(--mobile-top,0);height:var(--mobile-vh,100dvh);bottom:auto;padding:0;z-index:66}
  .phone-panel .phone-shell,.radio-panel .radio-shell{width:100%;height:100%;max-height:100%;border:0;padding-bottom:env(safe-area-inset-bottom)}
  #caseDialog.keyboard-open:has(.speak-talking) .workspace-header,#caseDialog.keyboard-open:has(.phone-panel:not([hidden])) .workspace-header,#caseDialog.keyboard-open:has(.radio-panel:not([hidden])) .workspace-header{display:none!important}
  #caseDialog.patch1-shell .speak-talking .shell-tool-content>header,#caseDialog.patch1-shell .speak-talking .speak-mode-tabs{display:none}
  #caseDialog.patch1-shell .speak-talking .speak-layout{display:block;min-height:0}
  #caseDialog.patch1-shell .speak-talking .speak-roster{display:none}
  #caseDialog.patch1-shell .speak-talking .speak-conversation-view{height:100%}
  .speak-conversation-heading .speak-back{display:block}
  #caseDialog.patch1-shell .speak-open .action-form{padding-bottom:max(10px,env(safe-area-inset-bottom))}
  #caseDialog.keyboard-open .phone-panel .phone-shell,#caseDialog.keyboard-open .radio-panel .radio-shell{padding-bottom:0}
}
@media(max-width:640px){
  #caseDialog.patch1-shell .speak-open .shell-tool-content>header{padding-top:max(8px,env(safe-area-inset-top));min-height:52px}
  #caseDialog.patch1-shell .speak-talking .speak-conversation-heading{padding-top:max(9px,env(safe-area-inset-top));min-height:calc(60px + env(safe-area-inset-top))}
  #caseDialog.patch1-shell .speak-open .speak-layout{display:block;overflow:auto}
  #caseDialog.patch1-shell .speak-open .speak-roster{border:0;background:#081825;min-height:100%}
  #caseDialog.patch1-shell .speak-open .speak-person{display:inline-flex;vertical-align:top;width:calc(50% - 15px);min-height:105px;flex-direction:column;align-items:flex-start}
  #caseDialog.patch1-shell .speak-open .speak-person img{width:46px;height:49px}
  #caseDialog.patch1-shell .speak-open .speak-conversation-view{display:none}
  #caseDialog.patch1-shell .speak-talking .speak-layout{overflow:hidden}
  #caseDialog.patch1-shell .speak-talking .speak-conversation-view{display:flex}
  #caseDialog.patch1-shell .speak-open .speak-transcript{padding:12px}
  .speak-bubble{max-width:86%}
  .speak-mode-tabs{padding:5px;gap:3px}.speak-mode-tabs button{font-size:9px;min-height:43px}
  .phone-panel.call-active .phone-shell>header{display:none}
  .phone-panel.call-active .phone-call{padding-top:max(16px,env(safe-area-inset-top))}
  .phone-panel .phone-shell>header,.radio-panel .radio-shell>header{padding-top:env(safe-area-inset-top);min-height:calc(56px + env(safe-area-inset-top))}
  .dispatch-banner{height:132px}.dispatch-banner img{width:112px;height:112px}.dispatch-wave{height:50px}
  .radio-panel .radio-entry{max-width:94%}
}
.dispatch-banner>.speak-asset-radio{position:absolute;left:clamp(10px,3vw,30px);top:clamp(88px,16vh,130px);width:42px;height:42px;opacity:.75}
@media(max-width:640px){.dispatch-banner>.speak-asset-radio{top:calc(115px + env(safe-area-inset-top));left:8px;width:34px;height:34px}}
@media(min-width:641px) and (max-width:1100px){
  #caseDialog.patch1-shell .speak-open:not(.speak-talking) .speak-layout{display:block;overflow:auto}
  #caseDialog.patch1-shell .speak-open:not(.speak-talking) .speak-roster{min-height:100%;border:0;background:#081825}
  #caseDialog.patch1-shell .speak-open:not(.speak-talking) .speak-person{display:inline-flex;vertical-align:top;width:calc(33.333% - 17px);min-height:100px}
  #caseDialog.patch1-shell .speak-open:not(.speak-talking) .speak-conversation-view{display:none}
}

/* Speak overlays use the measured visual viewport while the software keyboard is open. */
@media(max-width:1100px), (pointer:coarse) and (max-width:1366px){
  #caseDialog.keyboard-open .phone-panel.call-active .phone-shell,
  #caseDialog.keyboard-open .radio-panel .radio-shell{overflow:hidden;min-height:0}
  #caseDialog.keyboard-open .phone-panel.call-active .phone-shell>header,
  #caseDialog.keyboard-open .radio-panel .radio-shell>header{
    display:flex;flex:0 0 auto;height:calc(36px + env(safe-area-inset-top));min-height:0;
    padding:env(safe-area-inset-top) 12px 0;background:#061521ec;
    color:#e9e4d9;font:500 11px 'DM Mono',monospace;letter-spacing:.02em
  }
  #caseDialog.keyboard-open .phone-panel.call-active .phone-shell>header button,
  #caseDialog.keyboard-open .radio-panel .radio-shell>header button{display:none}
  #caseDialog.keyboard-open .phone-panel.call-active #phoneHeading:after{content:' · Phone Call';color:#8fcaff}
  #caseDialog.keyboard-open .phone-panel.call-active .phone-call{
    display:grid;grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:minmax(0,1fr) auto;min-height:0;padding:0
  }
  #caseDialog.keyboard-open .phone-panel.call-active .call-portrait{filter:saturate(.8) brightness(.58)}
  #caseDialog.keyboard-open .phone-panel.call-active .call-identity,
  #caseDialog.keyboard-open .phone-panel.call-active .phone-call-status,
  #caseDialog.keyboard-open .phone-panel.call-active .conversation-attitude,
  #caseDialog.keyboard-open .phone-panel.call-active .call-visual-controls{display:none}
  #caseDialog.keyboard-open .phone-panel.call-active .phone-history{
    grid-column:1/-1;min-height:0;margin:0;padding:10px 12px;
    overflow-y:auto;overscroll-behavior:contain;background:#0614218c;border:0
  }
  #caseDialog.keyboard-open .phone-panel.call-active .phone-form{
    grid-column:1;grid-row:2;min-width:0;padding:6px 0 6px 8px;border-top:1px solid #6a8ba75c
  }
  #caseDialog.keyboard-open .phone-panel.call-active .phone-form label,
  #caseDialog.keyboard-open .radio-panel .radio-form label{display:none}
  #caseDialog.keyboard-open .phone-panel.call-active .phone-form>div{grid-template-columns:minmax(0,1fr) 68px}
  #caseDialog.keyboard-open .phone-panel.call-active .phone-form input,
  #caseDialog.keyboard-open .radio-panel .radio-form input{height:42px}
  #caseDialog.keyboard-open .phone-panel.call-active .end-call{
    grid-column:2;grid-row:2;order:initial;align-self:stretch;width:54px;height:auto;min-height:42px;
    margin:6px 8px 6px 0;border-radius:4px;background:#b82c32;font-size:0
  }
  #caseDialog.keyboard-open .phone-panel.call-active .end-call::after{content:'END';font:600 10px 'DM Mono',monospace}
  #caseDialog.keyboard-open .radio-panel .radio-shell>header::before{content:'DISPATCH · CHANNEL 1 · OPEN'}
  #caseDialog.keyboard-open .radio-panel .radio-shell>header div,
  #caseDialog.keyboard-open .radio-panel .speak-mode-tabs,
  #caseDialog.keyboard-open .radio-panel .dispatch-banner,
  #caseDialog.keyboard-open .radio-panel .dispatch-channel{display:none}
  #caseDialog.keyboard-open .radio-panel .radio-history{
    flex:1;min-height:0;padding:10px 12px;overflow-y:auto;overscroll-behavior:contain
  }
  #caseDialog.keyboard-open .radio-panel .radio-form{flex:0 0 auto;padding:6px 8px;border-top:1px solid #4c82a853}
}
.radio-panel .radio-form>div{grid-template-columns:minmax(0,1fr) 105px 58px;gap:5px}
.radio-panel .radio-form #endRadio{background:#b82c32;color:#fff;border-radius:3px}
@media(min-width:1101px) and (max-width:1366px) and (pointer:coarse){
  #caseDialog.keyboard-open .shell-tool-panel.speak-open,
  #caseDialog.keyboard-open .phone-panel,
  #caseDialog.keyboard-open .radio-panel{position:fixed;top:var(--mobile-top,0);height:var(--mobile-vh,100dvh);bottom:auto;padding:0}
  #caseDialog.keyboard-open .speak-open .shell-tool-content,
  #caseDialog.keyboard-open .phone-panel .phone-shell,
  #caseDialog.keyboard-open .radio-panel .radio-shell{width:100%;height:100%;max-height:100%;border:0;padding-bottom:0}
  #caseDialog.keyboard-open .workspace-header,
  #caseDialog.keyboard-open .speak-talking .shell-tool-content>header,
  #caseDialog.keyboard-open .speak-talking .speak-mode-tabs,
  #caseDialog.keyboard-open .speak-talking .speak-roster{display:none!important}
  #caseDialog.keyboard-open .speak-talking .speak-layout{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:1100px), (pointer:coarse) and (max-width:1366px){#caseDialog.keyboard-open .radio-panel .radio-form>div{grid-template-columns:minmax(0,1fr) 92px 54px}}
@media(max-width:1100px), (pointer:coarse) and (max-width:1366px){
  #caseDialog.patch1-shell .speak-talking .command-row button{flex:0 0 72px;min-width:72px;max-width:72px;padding:0 10px;font-size:0}
  #caseDialog.patch1-shell .speak-talking .command-row button span{display:none}
  #caseDialog.patch1-shell .speak-talking .command-row button::after{content:'SEND';font:600 11px 'DM Mono',monospace}
  #caseDialog.patch1-shell.keyboard-open .speak-talking,
  #caseDialog.patch1-shell.keyboard-open .speak-talking .shell-tool-content,
  #caseDialog.patch1-shell.keyboard-open .speak-talking #shellToolBody{overflow:hidden}
  #caseDialog.patch1-shell.keyboard-open .speak-talking .speak-layout{
    flex:1 1 auto;height:100%;min-height:0;overflow:hidden
  }
  #caseDialog.patch1-shell.keyboard-open .speak-talking .speak-conversation-view{
    display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden
  }
  #caseDialog.patch1-shell.keyboard-open .speak-talking .speak-conversation-heading{flex:0 0 auto}
  #caseDialog.patch1-shell.keyboard-open .speak-talking .speak-transcript{
    flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y
  }
  #caseDialog.patch1-shell.keyboard-open .speak-talking .action-form{flex:0 0 auto}
}

/* Patch 3D: one desktop/tablet frame around the active game screen. */
#caseDialog.patch1-shell .icon-here{background:url('/game/assets/here-doorway.svg') center/contain no-repeat}
.speak-tab-icon{display:none}
@media(max-width:640px){#caseDialog.patch1-shell #workspaceService{display:none!important}}
@media(min-width:641px){
  .speak-mode-tabs button{display:flex;align-items:center;justify-content:center;gap:7px}
  .speak-mode-tabs .speak-tab-icon{display:block;flex:none;width:27px;height:27px;background-repeat:no-repeat;background-size:850% auto}
  .speak-mode-tabs .speak-tab-icon.icon-here{background-image:url('/game/assets/here-doorway.svg');background-size:contain;background-position:center}
  #caseDialog.patch1-shell{--game-header-height:62px;--game-footer-height:82px}
  #caseDialog.patch1-shell .workspace-header,#caseDialog.patch1-shell.keyboard-open .workspace-header{position:relative;z-index:90;height:var(--game-header-height);flex:0 0 var(--game-header-height)}
  #caseDialog.patch1-shell .game-header-tape{opacity:.8;mask-image:linear-gradient(90deg,rgba(0,0,0,.18),rgba(0,0,0,.55) 45%,#000 100%);-webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.18),rgba(0,0,0,.55) 45%,#000 100%)}
  #caseDialog.patch1-shell .game-menu-backdrop{top:var(--game-header-height);bottom:var(--game-footer-height);z-index:85}
  #caseDialog.patch1-shell #workspaceService{position:static;min-height:35px;padding:8px 7px;border:0;border-bottom:1px solid rgba(139,174,205,.1);background:transparent;color:#68d98e;font:500 10px 'DM Mono',monospace;letter-spacing:.06em}
  #caseDialog.patch1-shell .investigation-workspace,#caseDialog.patch1-shell.alpha-no-leads .investigation-workspace{grid-template-columns:minmax(0,1fr);flex:1 1 auto;height:auto;min-height:0}
  #caseDialog.patch1-shell .shell-context,#caseDialog.patch1-shell .active-leads-panel{display:none!important}
  #caseDialog.patch1-shell .active-investigation,#caseDialog.patch1-shell.keyboard-open .active-investigation{grid-column:1;grid-row:1;grid-template-rows:minmax(0,1fr) auto}
  #caseDialog.patch1-shell.shell-file-open .case-viewer{left:0;right:0;width:100%;border-left:0;box-shadow:none}
  #caseDialog.patch1-shell>.shell-controls{position:relative;z-index:80;flex:0 0 var(--game-footer-height);height:var(--game-footer-height);min-height:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;padding:6px 12px}
  #caseDialog.patch1-shell>.shell-controls button{height:100%;min-height:0;gap:0;font-size:clamp(8px,.7vw,11px)}
  #caseDialog.patch1-shell>.shell-controls .shell-action-icon,#caseDialog.patch1-shell>.shell-controls .speak-asset{width:clamp(34px,3.5vw,51px);height:clamp(34px,3.5vw,51px)}
  #caseDialog.patch1-shell .move-panel,#caseDialog.patch1-shell .phone-panel,#caseDialog.patch1-shell .radio-panel,#caseDialog.patch1-shell .options-panel,#caseDialog.patch1-shell .estate-map-panel,#caseDialog.patch1-shell .people-panel{top:var(--game-header-height);bottom:var(--game-footer-height);left:0;right:0;height:auto;min-height:0}
  #caseDialog.patch1-shell .phone-panel,#caseDialog.patch1-shell .radio-panel{position:absolute}
  #caseDialog.patch1-shell .speak-open{position:absolute;top:0;bottom:0;height:auto}
  #caseDialog.patch1-shell .shell-tool-panel{padding:0;backdrop-filter:none;background:#06111b}
  #caseDialog.patch1-shell .shell-tool-content,#caseDialog.patch1-shell .speak-open .shell-tool-content{width:100%;height:100%;max-height:100%;border:0;box-shadow:none}
  #caseDialog.patch1-shell .phone-panel,#caseDialog.patch1-shell .radio-panel{padding:0;backdrop-filter:none;background:#06111b}
  #caseDialog.patch1-shell .phone-panel .phone-shell,#caseDialog.patch1-shell .radio-panel .radio-shell,#caseDialog.patch1-shell .phone-panel.call-active .phone-shell{width:100%;height:100%;max-height:100%;border:0}
  #caseDialog.patch1-shell .move-panel{display:flex;padding:0;background:#06111b;backdrop-filter:none}
  #caseDialog.patch1-shell .move-shell{width:100%;height:100%;border:0;box-shadow:none}
  #caseDialog.patch1-shell .move-panel-header{min-height:46px;padding:4px 18px}
  #caseDialog.patch1-shell .move-brand img,#caseDialog.patch1-shell .move-brand small,#caseDialog.patch1-shell #closeMove{display:none}
  #caseDialog.patch1-shell .move-tabs{padding-top:3px}
  #caseDialog.patch1-shell .move-body{overflow:auto;padding:10px 16px 16px}
  #caseDialog.patch1-shell .move-map-view{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,300px);align-items:center;gap:16px;width:100%;height:100%}
  #caseDialog.patch1-shell .move-map-surface{width:min(100%,calc((100dvh - 230px)*1.5));max-height:100%;margin:auto;aspect-ratio:3/2}
  #caseDialog.patch1-shell .move-map-selection{width:100%;min-height:118px;flex-direction:column;align-items:stretch;justify-content:center}
  #caseDialog.patch1-shell .move-map-selection>button{width:100%}
  #caseDialog.patch1-shell .move-locations-view{width:min(1300px,100%)}
}
@media(min-width:641px) and (max-width:1000px){
  #caseDialog.patch1-shell>.shell-controls{gap:3px}
  #caseDialog.patch1-shell>.shell-controls button{font-size:8px}
  #caseDialog.patch1-shell .move-map-view{grid-template-columns:minmax(0,1fr) 220px;gap:8px}
}
@media(min-width:641px) and (max-width:900px) and (orientation:portrait){
  #caseDialog.patch1-shell .move-map-view{display:flex;flex-direction:column;justify-content:center}
  #caseDialog.patch1-shell .move-map-surface{flex:0 1 auto;max-height:calc(100% - 104px);width:min(100%,calc((100dvh - 285px)*1.5))}
  #caseDialog.patch1-shell .move-map-selection{flex:0 0 auto;min-height:74px;flex-direction:row;align-items:center}
  #caseDialog.patch1-shell .move-map-selection>button{width:auto}
}
@media(min-width:641px) and (max-width:1100px), (min-width:641px) and (max-width:1366px) and (pointer:coarse){
  #caseDialog.patch1-shell.keyboard-open .workspace-header,#caseDialog.patch1-shell.keyboard-open>.shell-controls{display:none!important}
  #caseDialog.patch1-shell.keyboard-open .investigation-workspace{height:var(--mobile-vh,100dvh)}
  #caseDialog.patch1-shell.keyboard-open .speak-open{position:fixed;top:var(--mobile-top,0);bottom:auto;height:var(--mobile-vh,100dvh)}
  #caseDialog.patch1-shell.keyboard-open .phone-panel,#caseDialog.patch1-shell.keyboard-open .radio-panel{position:fixed;top:var(--mobile-top,0);bottom:auto;height:var(--mobile-vh,100dvh)}
}

/* Patch 3F: desktop/tablet investigation dashboard. Mobile keeps the six-tile shell. */
#caseDialog.patch1-shell .shell-board,#caseDialog.patch1-shell .dashboard-map-toggle,#caseDialog.patch1-shell .scene-evidence-markers{display:none}
@media(min-width:641px){
  #caseDialog.patch1-shell .active-investigation,#caseDialog.patch1-shell.keyboard-open .active-investigation{grid-template-columns:minmax(0,65fr) minmax(0,35fr);grid-template-rows:minmax(0,1fr) minmax(135px,185px)}
  #caseDialog.patch1-shell .shell-scene{grid-column:1;grid-row:1/3;justify-content:flex-start;padding-top:clamp(22px,4vh,58px);border-right:1px solid #7896a44a}
  #caseDialog.patch1-shell .shell-scene:after{background:linear-gradient(180deg,#06111bda,transparent 35%,#06111b91 100%),linear-gradient(90deg,#06111b7a,transparent 70%)}
  #caseDialog.patch1-shell .shell-scene-heading,#caseDialog.patch1-shell .shell-scene p{max-width:min(80%,800px)}
  #caseDialog.patch1-shell .shell-board{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;background:linear-gradient(145deg,#0c2131,#07121d)}
  #caseDialog.patch1-shell .shell-board h2{flex:none;margin:0;padding:15px 18px 12px;color:#d5b880;font:600 13px 'DM Mono',monospace;letter-spacing:.1em}
  #caseDialog.patch1-shell .shell-board nav{flex:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:0 12px 10px;border-bottom:1px solid #7896a43c}
  #caseDialog.patch1-shell .shell-board nav button{min-width:0;min-height:38px;padding:3px;border:1px solid #6c8da64f;background:#0a1b29;color:#a6bdcc;cursor:pointer;font:600 clamp(8px,.7vw,11px) 'DM Mono',monospace}
  #caseDialog.patch1-shell .shell-board nav button.active{border-color:#c4a574;background:#1a3040;color:#e8c688}
  #caseDialog.patch1-shell .shell-board-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px;display:grid;align-content:start;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  #caseDialog.patch1-shell .board-person,#caseDialog.patch1-shell .board-record{min-width:0;display:flex;align-items:center;gap:10px;min-height:55px;padding:7px;border:1px solid #6387a35a;background:#0b2030;color:#e8edf0;text-align:left;cursor:pointer;font:500 12px/1.35 Manrope,sans-serif}
  #caseDialog.patch1-shell .board-person img{width:42px;height:48px;flex:none;object-fit:cover}
  #caseDialog.patch1-shell .board-person span{min-width:0;overflow-wrap:anywhere}
  #caseDialog.patch1-shell .board-record,#caseDialog.patch1-shell .board-note,#caseDialog.patch1-shell .board-empty{grid-column:1/-1}
  #caseDialog.patch1-shell .board-note,#caseDialog.patch1-shell .board-empty{margin:0;padding:9px 11px;border-bottom:1px solid #7896a436;color:#c8d9e4;font:12px/1.45 Manrope,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere}
  #caseDialog.patch1-shell .shell-recent{grid-column:2;grid-row:2;height:100%;max-height:none;padding:10px 14px;overflow-y:auto}
  #caseDialog.patch1-shell .shell-recent li{display:block;padding:0}
  #caseDialog.patch1-shell .shell-recent summary{display:flex;align-items:baseline;gap:8px;min-height:30px;padding:6px 0;cursor:pointer;list-style:none}
  #caseDialog.patch1-shell .shell-recent summary::-webkit-details-marker{display:none}
  #caseDialog.patch1-shell .shell-recent summary:before{content:'›';color:#c6a86d;font-size:15px}
  #caseDialog.patch1-shell .shell-recent details[open] summary:before{transform:rotate(90deg)}
  #caseDialog.patch1-shell .recent-full{margin:2px 0 9px;padding:8px 10px;background:#102536;color:#d6e2e9;font:12px/1.5 Manrope,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere}
  #caseDialog.patch1-shell .recent-record-link{padding:6px 9px;margin-bottom:9px;border:1px solid #ad946a;background:#132a3a;color:#e6c997;cursor:pointer;font:10px 'DM Mono',monospace}
  #caseDialog.patch1-shell .dashboard-map-toggle{position:absolute;z-index:3;left:16px;bottom:16px;display:flex;flex-direction:column;overflow:hidden;width:clamp(145px,17vw,235px);padding:0;border:1px solid #d2ae758c;border-radius:3px;background:#081724;color:#e7cf9f;text-align:left;cursor:pointer;box-shadow:0 12px 35px #000b}
  #caseDialog.patch1-shell .dashboard-map-toggle img{width:100%;height:clamp(65px,9vh,105px);object-fit:cover;filter:saturate(.7) brightness(.78)}
  #caseDialog.patch1-shell .shell-scene .dashboard-map-toggle img{position:static;inset:auto}
  #caseDialog.patch1-shell .dashboard-map-toggle span{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:7px 9px;font:600 9px 'DM Mono',monospace;letter-spacing:.04em}
  #caseDialog.patch1-shell .dashboard-map-toggle b{font-weight:500;white-space:nowrap;color:#95c6e7}
  #caseDialog.patch1-shell .scene-evidence-markers{position:absolute;z-index:2;inset:0;display:block;pointer-events:none}
  #caseDialog.patch1-shell .scene-evidence-marker{position:absolute;width:22px;height:22px;transform:translate(-50%,-50%);border:2px solid #ead09b;border-radius:50%;background:#9d793da6;box-shadow:0 0 0 4px #07111ab0,0 0 14px #d1a457;cursor:pointer;pointer-events:auto}
  #caseDialog.patch1-shell>.shell-controls{grid-template-columns:repeat(4,minmax(0,1fr))}
  #caseDialog.patch1-shell>.shell-controls [data-shell-action="move"],#caseDialog.patch1-shell>.shell-controls [data-shell-action="notes"]{display:none}
  #caseDialog.patch1-shell .move-panel{right:auto;width:65%;box-shadow:16px 0 40px #000a}
  #caseDialog.patch1-shell #closeMove{display:block;width:42px;height:42px}
  #caseDialog.patch1-shell .move-map-view{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;min-height:0;height:100%}
  #caseDialog.patch1-shell .move-map-surface{width:auto;max-width:100%;height:min(calc(100% - 82px),calc((65vw - 32px)/1.5));max-height:none;flex:none;aspect-ratio:3/2}
  #caseDialog.patch1-shell .move-map-selection{width:min(100%,560px);min-height:62px;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px}
  #caseDialog.patch1-shell .move-selection-info{gap:2px}
  #caseDialog.patch1-shell .move-selection-info strong{font-size:14px}
  #caseDialog.patch1-shell .move-map-selection>button{width:auto;min-width:92px;min-height:40px;padding:6px 12px}
}
@media(min-width:641px) and (max-width:900px){
  #caseDialog.patch1-shell .shell-board-content{grid-template-columns:minmax(0,1fr)}
}

/* Final investigation shell; the existing panels remain authoritative. */
#caseDialog.patch1-shell{min-height:100dvh;overflow:hidden}
#caseDialog.patch1-shell .case-status-bar,#caseDialog.patch1-shell .phone-utility,#caseDialog.patch1-shell .shell-board,#caseDialog.patch1-shell .shell-recent,#caseDialog.patch1-shell .shell-context,#caseDialog.patch1-shell .active-leads-panel{display:none!important}
#caseDialog.patch1-shell .game-header-tools{position:absolute;right:65px;top:50%;transform:translateY(-50%);display:flex;gap:5px;z-index:3}
#caseDialog.patch1-shell .game-header-tools button{display:grid;place-items:center;width:40px;height:40px;border:1px solid #6888a06e;border-radius:3px;background:#091b2bd9;color:#e6c98f;cursor:pointer}
#caseDialog.patch1-shell .game-header-tools span{display:block;width:29px;height:29px;background-repeat:no-repeat;background-position:center;background-size:contain}
#caseDialog.patch1-shell .game-header-tools .shell-action-icon{background-size:700% auto;background-position:97.6% 7%}
#caseDialog.patch1-shell .game-header-tools .speak-asset-phone,#caseDialog.patch1-shell .game-header-tools .speak-asset-radio{background-size:400% auto;background-position-y:96%}
#caseDialog.patch1-shell .game-header-tools .speak-asset-phone{background-position-x:47%}
#caseDialog.patch1-shell .game-header-tools .speak-asset-radio{background-position-x:69%}
#caseDialog.patch1-shell .shell-header-identity{left:50%;transform:translateX(-50%);margin:0;text-align:center}
#caseDialog.patch1-shell .investigation-workspace,#caseDialog.patch1-shell.alpha-no-leads .investigation-workspace{display:grid;grid-template-columns:minmax(0,62fr) minmax(310px,38fr);flex:1 1 auto;min-height:0;height:auto;overflow:hidden}
#caseDialog.patch1-shell .active-investigation,#caseDialog.patch1-shell.keyboard-open .active-investigation{grid-column:1;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;height:100%;min-height:0;overflow:hidden}
#caseDialog.patch1-shell .shell-scene{grid-column:1;grid-row:1;min-height:0;justify-content:flex-end;padding:0;border-right:0}
#caseDialog.patch1-shell .shell-scene:after{background:linear-gradient(0deg,#06111bf2,transparent 48%)}
#caseDialog.patch1-shell .shell-scene-heading,#caseDialog.patch1-shell .shell-scene p{max-width:min(80%,730px)}
#caseDialog.patch1-shell .scene-expand{position:absolute;right:15px;top:15px;z-index:4;min-width:44px;min-height:44px;border:1px solid #a2b3be8a;background:#071724a8;color:#e9d4aa;font-size:24px;cursor:pointer}
#caseDialog.patch1-shell.scene-expanded .shell-scene{position:fixed;inset:var(--game-header-height,62px) 0 0;z-index:72}
#caseDialog.patch1-shell.scene-expanded .scene-expand{position:fixed;top:calc(var(--game-header-height,62px) + 12px);right:12px}
#caseDialog.patch1-shell .shell-controls{grid-column:1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:9px 13px;border-top:1px solid #7896a43c;background:#07121e}
#caseDialog.patch1-shell .shell-controls [data-shell-action="case-file"]{display:none}
#caseDialog.patch1-shell .shell-controls button{min-height:66px;height:auto;flex-direction:row;gap:8px;font-size:13px;justify-content:center;text-align:left}
#caseDialog.patch1-shell .shell-controls button>span:last-child{display:grid;gap:3px}
#caseDialog.patch1-shell .shell-controls small{display:block;color:#9eb8cb;font:400 10px/1.3 Manrope,sans-serif;letter-spacing:0}
#caseDialog.patch1-shell .shell-controls .shell-action-icon{width:47px;height:47px;flex:none}
#caseDialog.patch1-shell .scene-command{grid-column:1;grid-row:3;min-width:0;padding:8px 13px max(10px,env(safe-area-inset-bottom));border-top:1px solid #7896a43c;background:#07121e}
#caseDialog.patch1-shell .scene-command .action-form{display:block;position:static;margin:0;padding:0;border:0;background:none;box-shadow:none}
#caseDialog.patch1-shell .scene-command .action-form>label,#caseDialog.patch1-shell .scene-command .interview-session,#caseDialog.patch1-shell .scene-command .quick-actions,#caseDialog.patch1-shell .scene-command .world-dock,#caseDialog.patch1-shell .scene-command .dismiss-keyboard,#caseDialog.patch1-shell .scene-command .command-save-status{display:none!important}
#caseDialog.patch1-shell .scene-command .command-row{display:flex;height:48px;gap:5px}
#caseDialog.patch1-shell .scene-command input{flex:1;min-width:0;padding:0 14px;border:1px solid #6687a16e;background:#081a29;color:#f1f3f2;font:16px Manrope,sans-serif}
#caseDialog.patch1-shell .scene-command button[type="submit"]{min-width:80px;border:1px solid #d3ad70;background:#cba668;color:#08131e;font:700 11px 'DM Mono',monospace}
#caseDialog.patch1-shell .case-viewer,#caseDialog.patch1-shell.shell-file-open .case-viewer{display:flex;position:relative;z-index:1;grid-column:2;grid-row:1;flex-direction:column;width:auto;min-width:0;height:100%;max-height:none;overflow:hidden;border-left:1px solid #9baabd58;box-shadow:none;background:#081722}
#caseDialog.patch1-shell .case-viewer .phone-viewer-header{display:none!important}
#caseDialog.patch1-shell .case-viewer .desktop-file-tabs{display:grid;flex:none;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 7px;gap:2px;border-bottom:1px solid #7896a43c}
#caseDialog.patch1-shell .case-viewer .desktop-file-tabs button{min-width:0;min-height:44px;padding:5px 2px;font-size:clamp(9px,.76vw,12px)}
#caseDialog.patch1-shell .case-viewer .viewer-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px}
#caseDialog.patch1-shell .case-viewer .pane-label{flex:none}
.case-questions{display:grid;gap:9px;margin:17px 0 0}
.case-question{display:grid;gap:5px;padding:10px 12px;border:1px solid #6685a15c;background:#102737;color:#dbe6ec;font:14px/1.35 Manrope,sans-serif}
.case-question strong{color:#dbbd83;font:700 12px 'DM Mono',monospace;letter-spacing:.1em}
.case-question textarea{width:100%;min-height:52px;resize:vertical;padding:8px 10px;border:1px solid #64839b81;border-radius:2px;background:#071927;color:#f1f4f2;font:15px/1.4 Manrope,sans-serif}
.case-accuse{min-height:46px;margin:8px 0;padding:9px;border:1px solid #d5af73;background:#c5a36e;color:#08121c;font:700 12px 'DM Mono',monospace;cursor:pointer}
.case-accuse:disabled{border-color:#677c8b;background:#223746;color:#a7b3bb;cursor:not-allowed}
#caseDialog.patch1-shell .shell-tool-panel{left:0;right:38%;top:0;bottom:0;z-index:35;padding:0;background:#071521}
#caseDialog.patch1-shell .shell-tool-content{display:flex;flex-direction:column;width:100%;height:100%;max-height:100%;min-height:0;overflow:hidden;border:0;box-shadow:none}
#caseDialog.patch1-shell #shellToolBody{display:flex;flex:1;flex-direction:column;min-height:0;padding:0;overflow:hidden}
#caseDialog.patch1-shell .speak-open .speak-layout{flex:1;min-height:0}
#caseDialog.patch1-shell .speak-open .speak-conversation-view{min-height:0}
#caseDialog.patch1-shell .investigate-context{flex:none;position:relative;display:grid;align-content:end;min-height:140px;max-height:36%;padding:18px;color:#f2ebdb;background:#102535;overflow:hidden}
#caseDialog.patch1-shell .investigate-context img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.42}
#caseDialog.patch1-shell .investigate-context strong,#caseDialog.patch1-shell .investigate-context p{position:relative;z-index:1;margin:2px 0;text-shadow:0 2px 6px #000}
#caseDialog.patch1-shell .investigate-targets{display:flex;flex:none;gap:6px;overflow-x:auto;padding:8px 12px;border-bottom:1px solid #607f9a5a}
#caseDialog.patch1-shell .investigate-targets button{flex:none;min-height:44px;padding:7px 12px;border:1px solid #607f9a7a;background:#0c2536;color:#dae8ef;font:12px 'DM Mono',monospace;cursor:pointer}
#caseDialog.patch1-shell .investigate-targets button.active{border-color:#d4b475;color:#f0d7a9;background:#1a3444}
#caseDialog.patch1-shell .investigate-history{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:15px 18px}
.investigate-entry{max-width:90%;margin:7px 0;padding:9px 12px;border:1px solid #54759157;border-radius:5px;background:#10293a;color:#e6edf2;font:14px/1.5 Manrope,sans-serif;white-space:pre-wrap}
.investigate-entry.player{margin-left:auto;background:#18344a;border-color:#9bb4ca55}
#caseDialog.patch1-shell .investigate-open .action-form{flex:none;padding:10px 13px max(12px,env(safe-area-inset-bottom));border-top:1px solid #64819a50}
#caseDialog.patch1-shell .investigate-open .action-form label,#caseDialog.patch1-shell .investigate-open .shell-tool-latest{display:none}
#caseDialog.patch1-shell .move-panel{right:38%;width:62%;box-shadow:none}
#caseDialog.patch1-shell .move-map-surface{height:min(calc(100% - 82px),calc((62vw - 32px)/1.5))}
@media(min-width:1024px){#caseDialog.patch1-shell>.shell-controls{display:none!important}#caseDialog.patch1-shell .case-viewer{display:flex!important}}
@media(min-width:768px) and (max-width:1023px){
  #caseDialog.patch1-shell .investigation-workspace,#caseDialog.patch1-shell.alpha-no-leads .investigation-workspace{grid-template-columns:minmax(0,1fr)}
  #caseDialog.patch1-shell .case-viewer{display:none}
  #caseDialog.patch1-shell.shell-file-open .case-viewer{display:flex;position:absolute;inset:0;z-index:40;width:100%;height:100%}
  #caseDialog.patch1-shell.shell-file-open .case-viewer .phone-viewer-header{display:flex!important;flex:none;min-height:45px}
  #caseDialog.patch1-shell .shell-tool-panel{right:0}
  #caseDialog.patch1-shell .move-panel{right:0;width:100%}
  #caseDialog.patch1-shell .move-map-surface{height:min(calc(100% - 82px),calc((100vw - 32px)/1.5))}
  #caseDialog.patch1-shell .shell-controls [data-shell-action="case-file"]{display:flex}
  #caseDialog.patch1-shell .shell-controls{grid-template-columns:repeat(4,minmax(0,1fr))}
  #caseDialog.patch1-shell .shell-controls button{font-size:11px}
  #caseDialog.patch1-shell .shell-controls small{font-size:9px}
}
@media(max-width:767px){
  #caseDialog.patch1-shell .workspace-header{flex:0 0 calc(58px + env(safe-area-inset-top));height:calc(58px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
  #caseDialog.patch1-shell .shell-header-identity{position:relative;left:auto;transform:none;margin-left:8px;margin-right:54px;text-align:left}
  #caseDialog.patch1-shell .game-header-tools{display:none}
  #caseDialog.patch1-shell .investigation-workspace,#caseDialog.patch1-shell.alpha-no-leads .investigation-workspace{display:block;flex:1;min-height:0}
  #caseDialog.patch1-shell .active-investigation,#caseDialog.patch1-shell.keyboard-open .active-investigation{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto auto}
  #caseDialog.patch1-shell .shell-scene{grid-column:1;grid-row:1;min-height:0}
  #caseDialog.patch1-shell .shell-scene p{font-size:15px;line-height:1.4;max-height:4.2em}
  #caseDialog.patch1-shell .shell-controls{grid-column:1;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px 10px}
  #caseDialog.patch1-shell .shell-controls [data-shell-action="case-file"]{display:flex}
  #caseDialog.patch1-shell .shell-controls button{min-height:60px;justify-content:flex-start;padding:5px 7px;font-size:11px}
  #caseDialog.patch1-shell .shell-controls .shell-action-icon{width:43px;height:43px}
  #caseDialog.patch1-shell .shell-controls small{display:none}
  #caseDialog.patch1-shell .scene-command{grid-column:1;grid-row:3;padding:8px 10px max(10px,env(safe-area-inset-bottom))}
  #caseDialog.patch1-shell .scene-command .command-row{height:48px}
  #caseDialog.patch1-shell .scene-command button[type="submit"]{min-width:66px}
  #caseDialog.patch1-shell .case-file-nav,#caseDialog.patch1-shell .case-file-backdrop{display:none!important}
  #caseDialog.patch1-shell .case-viewer{display:none!important}
  #caseDialog.patch1-shell.case-file-open .case-viewer{display:flex!important;position:fixed;inset:var(--mobile-top,0) 0 auto;z-index:55;width:100%;height:var(--mobile-vh,100dvh);max-height:none}
  #caseDialog.patch1-shell .case-viewer .desktop-file-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))}
  #caseDialog.patch1-shell.case-file-open .case-viewer .phone-viewer-header{display:flex!important;flex:none;min-height:45px}
  #caseDialog.patch1-shell .case-viewer .viewer-content{padding:14px}
  #caseDialog.patch1-shell .shell-tool-panel{position:fixed;inset:var(--mobile-top,0) 0 auto;right:0;width:100%;height:var(--mobile-vh,100dvh);padding:0}
  #caseDialog.patch1-shell .shell-tool-content{height:100%;max-height:none}
  #caseDialog.patch1-shell .investigate-context{max-height:28%;min-height:112px}
  #caseDialog.patch1-shell .move-panel{position:fixed;inset:var(--mobile-top,0) 0 auto;right:0;width:100%;height:var(--mobile-vh,100dvh)}
  #caseDialog.patch1-shell .move-map-surface{height:auto;width:min(100%,calc((var(--mobile-vh,100dvh) - 255px)*1.5))}
  #caseDialog.patch1-shell .move-map-view{min-height:0}
  #caseDialog.patch1-shell .move-body{overflow-y:auto}
  #caseDialog.patch1-shell.keyboard-open .workspace-header{display:none!important}
  #caseDialog.patch1-shell.keyboard-open .shell-tool-panel{top:var(--mobile-top,0);height:var(--mobile-vh,100dvh)}
  #caseDialog.patch1-shell.keyboard-open .investigate-context{display:none}
  #caseDialog.patch1-shell.keyboard-open .investigate-targets{display:none}
  #caseDialog.patch1-shell.keyboard-open .investigate-open .shell-tool-content>header{min-height:44px;padding-top:env(safe-area-inset-top)}
  #caseDialog.patch1-shell.keyboard-open .investigate-open .action-form{padding:6px 8px max(6px,env(safe-area-inset-bottom))}
}
@media(min-width:641px) and (max-width:767px){
  #caseDialog.patch1-shell .game-desktop-masthead{display:flex;align-items:center;padding-left:12px}
  #caseDialog.patch1-shell .game-header-logo{position:relative;left:auto;flex:0 0 52px;width:52px;height:54px}
  #caseDialog.patch1-shell .game-header-logo img{width:52px;height:52px;object-fit:contain}
  #caseDialog.patch1-shell .game-header-tape{display:none}
}
@media(min-width:768px) and (max-width:1100px), (pointer:coarse) and (min-width:768px) and (max-width:1366px){
  #caseDialog.patch1-shell.keyboard-open .investigate-context,#caseDialog.patch1-shell.keyboard-open .investigate-targets{display:none}
  #caseDialog.patch1-shell.keyboard-open .investigate-open{position:fixed;top:var(--mobile-top,0);bottom:auto;right:0;height:var(--mobile-vh,100dvh)}
}

/* Recovery: keep navigation above focused workspaces and the mobile file on-screen. */
#caseDialog.patch1-shell .game-menu-backdrop{z-index:120}
#caseDialog.patch1-shell .scene-people-here[hidden]{display:none!important}
#caseDialog.patch1-shell .scene-people-here{grid-column:1;grid-row:2;min-width:0;padding:8px 13px;border-top:1px solid #7896a43c;background:#091b29}
#caseDialog.patch1-shell .scene-people-here h2{margin:0 0 6px;color:#d8bb83;font:600 10px 'DM Mono',monospace;letter-spacing:.1em}
#caseDialog.patch1-shell .scene-people-list{display:flex;gap:8px;overflow-x:auto}
#caseDialog.patch1-shell .scene-person{display:flex;align-items:center;gap:7px;min-height:44px;flex:0 0 auto;padding:3px 9px 3px 3px;border:1px solid #6687a16e;background:#0d293a;color:#e5edf1;font:600 11px Manrope,sans-serif;cursor:pointer}
#caseDialog.patch1-shell .scene-person img{width:36px;height:36px;object-fit:cover}
#caseDialog.patch1-shell .scene-person-empty{margin:3px 0;color:#a9bdc9;font:12px Manrope,sans-serif}
#caseDialog.patch1-shell .active-investigation,#caseDialog.patch1-shell.keyboard-open .active-investigation{grid-template-rows:minmax(0,1fr) auto auto auto}
#caseDialog.patch1-shell .shell-controls{grid-row:3}
#caseDialog.patch1-shell .scene-command{grid-row:4}
@media(min-width:768px) and (max-width:1023px){#caseDialog.patch1-shell.shell-file-open .case-viewer{transform:none!important}}
@media(max-width:767px){
  #caseDialog.patch1-shell .active-investigation,#caseDialog.patch1-shell.keyboard-open .active-investigation{grid-template-rows:minmax(145px,35dvh) auto auto auto;align-content:start}
  #caseDialog.patch1-shell .shell-scene{min-height:0}
  #caseDialog.patch1-shell .shell-scene-heading,#caseDialog.patch1-shell .shell-scene p{margin-left:13px;margin-right:13px}
  #caseDialog.patch1-shell .shell-scene p{font-size:13px;line-height:1.35}
  #caseDialog.patch1-shell .scene-people-here{padding:7px 10px}
  #caseDialog.patch1-shell .scene-people-list{gap:6px}
  #caseDialog.patch1-shell .shell-controls button{min-height:55px}
  #caseDialog.patch1-shell.case-file-open .case-viewer{transform:none!important;left:0;right:0;overflow-y:hidden}
  #caseDialog.patch1-shell.keyboard-open .active-investigation{display:flex;flex-direction:column;justify-content:flex-end;height:var(--mobile-vh,100dvh)}
  #caseDialog.patch1-shell.keyboard-open .shell-scene,#caseDialog.patch1-shell.keyboard-open .scene-people-here,#caseDialog.patch1-shell.keyboard-open .shell-controls{display:none}
  #caseDialog.patch1-shell.keyboard-open .scene-command{flex:0 0 auto;width:100%}
}

/* One workspace beside the persistent scene. The existing tool panels supply its content. */
#caseDialog.patch1-shell .dashboard-map-toggle{display:none!important}
#caseDialog.patch1-shell .mobile-case-title{display:none}
#caseDialog.patch1-shell .shell-controls [data-shell-action="case-file"]{display:flex}
#caseDialog.patch1-shell .scene-command #openSystemInput{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:0 13px;border:1px solid #6687a16e;background:#081a29;color:#c7d8e2;text-align:left;font:15px Manrope,sans-serif;cursor:text}
#caseDialog.patch1-shell .scene-command #openSystemInput span{align-self:stretch;display:grid;place-items:center;margin:-1px -14px -1px 12px;padding:0 15px;border:1px solid #d3ad70;background:#cba668;color:#08131e;font:700 11px 'DM Mono',monospace;cursor:pointer}
#caseDialog.patch1-shell .case-viewer .desktop-file-tabs{grid-template-columns:repeat(7,minmax(0,1fr))}
#caseDialog.patch1-shell .case-viewer .desktop-file-tabs [hidden],#caseDialog.patch1-shell .case-viewer .viewer-content[hidden],#caseDialog.patch1-shell .case-viewer .system-workspace[hidden]{display:none!important}
#caseDialog.patch1-shell .case-viewer .system-workspace{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}
#caseDialog.patch1-shell .system-workspace .transcript{display:flex;flex:1;flex-direction:column;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px}
#caseDialog.patch1-shell .system-workspace .scene-intro{display:none!important}
#caseDialog.patch1-shell .system-workspace .action-form{display:block;flex:none;margin:0;padding:10px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom));border-top:1px solid #7896a43c;background:#07121e}
#caseDialog.patch1-shell .system-workspace .action-form>label,#caseDialog.patch1-shell .system-workspace .quick-actions,#caseDialog.patch1-shell .system-workspace .world-dock,#caseDialog.patch1-shell .system-workspace .interview-session,#caseDialog.patch1-shell .system-workspace .dismiss-keyboard,#caseDialog.patch1-shell .system-workspace .command-save-status{display:none!important}
#caseDialog.patch1-shell .system-workspace .command-row{display:flex;gap:5px;min-height:48px}
#caseDialog.patch1-shell .system-workspace .command-row input{flex:1;min-width:0;padding:0 12px;font-size:16px}
#caseDialog.patch1-shell .system-workspace .command-row button{min-width:65px}
@media(min-width:768px){
  #caseDialog.patch1-shell .investigation-workspace,#caseDialog.patch1-shell.alpha-no-leads .investigation-workspace{position:relative;grid-template-columns:minmax(0,62fr) minmax(310px,38fr)}
  #caseDialog.patch1-shell .case-viewer{display:flex!important;grid-column:2;grid-row:1}
  #caseDialog.patch1-shell[data-workspace="interview"] .case-viewer,#caseDialog.patch1-shell[data-workspace="investigate"] .case-viewer,#caseDialog.patch1-shell[data-workspace="map"] .case-viewer,#caseDialog.patch1-shell[data-workspace="phone"] .case-viewer,#caseDialog.patch1-shell[data-workspace="radio"] .case-viewer{display:none!important}
  #caseDialog.patch1-shell .shell-tool-panel{left:62%;right:0;top:0;bottom:0;width:auto;z-index:40}
  #caseDialog.patch1-shell .move-panel,#caseDialog.patch1-shell .phone-panel,#caseDialog.patch1-shell .radio-panel{position:absolute;left:62%;right:0;top:var(--game-header-height,62px);bottom:0;width:38%;height:auto;max-height:none;z-index:40;box-shadow:none}
  #caseDialog.patch1-shell .phone-shell,#caseDialog.patch1-shell .radio-shell{width:100%;height:100%;max-height:none}
  #caseDialog.patch1-shell .move-map-surface{width:100%;height:auto;max-height:55%;aspect-ratio:3/2}
  #caseDialog.patch1-shell .shell-controls{grid-template-columns:repeat(5,minmax(0,1fr))}
  #caseDialog.patch1-shell .shell-controls button{min-width:0;gap:5px;padding:5px;font-size:clamp(9px,.8vw,12px)}
  #caseDialog.patch1-shell .shell-controls .shell-action-icon{width:38px;height:38px}
  #caseDialog.patch1-shell .game-desktop-masthead{justify-content:flex-start}
  #caseDialog.patch1-shell .shell-header-identity{position:relative;left:auto;transform:none;margin:0 0 0 12px;text-align:left}
  #caseDialog.patch1-shell .case-viewer .desktop-file-tabs button{font-size:clamp(8px,.63vw,10px)}
}
@media(min-width:768px) and (max-width:1100px){
  #caseDialog.patch1-shell .investigation-workspace,#caseDialog.patch1-shell.alpha-no-leads .investigation-workspace{grid-template-columns:minmax(0,55fr) minmax(0,45fr)}
  #caseDialog.patch1-shell .shell-tool-panel{left:55%;right:0}
  #caseDialog.patch1-shell .move-panel,#caseDialog.patch1-shell .phone-panel,#caseDialog.patch1-shell .radio-panel{left:55%;width:45%}
}
@media(max-width:767px){
  #caseDialog.patch1-shell .desktop-case-title{display:none}
  #caseDialog.patch1-shell .mobile-case-title{display:block}
  #caseDialog.patch1-shell .shell-controls{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}
  #caseDialog.patch1-shell .shell-controls button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:58px;gap:1px;padding:3px 1px;text-align:center;font-size:clamp(8px,2.1vw,10px)}
  #caseDialog.patch1-shell .shell-controls .shell-action-icon{width:32px;height:32px}
  #caseDialog.patch1-shell .case-viewer .desktop-file-tabs{grid-template-columns:repeat(7,minmax(0,1fr))!important;overflow-x:auto}
  #caseDialog.patch1-shell .case-viewer .desktop-file-tabs button{font-size:8px;min-height:44px}
  #caseDialog.patch1-shell.keyboard-open.case-file-open[data-workspace="system"] .workspace-header,#caseDialog.patch1-shell.keyboard-open.case-file-open[data-workspace="system"] .case-viewer .desktop-file-tabs,#caseDialog.patch1-shell.keyboard-open.case-file-open[data-workspace="system"] .case-viewer .pane-label{display:none!important}
  #caseDialog.patch1-shell.keyboard-open.case-file-open[data-workspace="system"] .case-viewer{top:var(--mobile-top,0);height:var(--mobile-vh,100dvh)}
}

/* Surgical gameplay corrections: the scene composer uses the existing action form. */
#caseDialog.patch1-shell .active-investigation,#caseDialog.patch1-shell.keyboard-open .active-investigation{grid-template-rows:minmax(0,1fr) auto auto auto auto}
#caseDialog.patch1-shell .scene-description-line{grid-column:1;grid-row:2;min-width:0;margin:0;padding:9px 14px;border-top:1px solid #7896a43c;background:#091b29;color:#dce6e9;font:14px/1.4 Manrope,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#caseDialog.patch1-shell .scene-people-here{grid-row:3}
#caseDialog.patch1-shell .shell-controls{grid-row:4}
#caseDialog.patch1-shell .scene-command{grid-row:5}
#caseDialog.patch1-shell .shell-controls button{min-height:58px;flex-direction:column;gap:0;padding:3px}
#caseDialog.patch1-shell .shell-controls .shell-action-icon{width:clamp(38px,4vw,52px);height:clamp(38px,4vw,52px);flex:none}
#caseDialog.patch1-shell .shell-controls .icon-phone-device,#caseDialog.patch1-shell .shell-controls .icon-radio-mic{background-size:auto 112%;background-position:11% 50%}
#caseDialog.patch1-shell .shell-controls .icon-radio-mic{background-position:96% 50%}
#caseDialog.patch1-shell .shell-controls [data-shell-action] .shell-action-icon{background-size:contain;background-position:center}
#caseDialog.patch1-shell .shell-controls [data-shell-action="investigate"] .shell-action-icon{}
#caseDialog.patch1-shell .shell-controls [data-shell-action="move"] .shell-action-icon{}
#caseDialog.patch1-shell .shell-controls [data-shell-action="phone"] .shell-action-icon{}
#caseDialog.patch1-shell .shell-controls [data-shell-action="radio"] .shell-action-icon{}
#caseDialog.patch1-shell .shell-controls [data-shell-action="case-file"] .shell-action-icon{}
#caseDialog.patch1-shell .investigate-context{min-height:0;max-height:none;align-content:center;padding:14px 18px;background:#102535}
#caseDialog.patch1-shell .investigate-open .interview-session{display:none!important}
#caseDialog.patch1-shell .investigate-open .quick-actions,#caseDialog.patch1-shell .investigate-open .world-dock{display:none!important}
@media(min-width:768px){
  #caseDialog.patch1-shell .game-desktop-masthead{padding-left:clamp(12px,2vw,26px);padding-right:72px;gap:clamp(12px,1.6vw,24px)}
  #caseDialog.patch1-shell .game-header-logo{flex:none}
  #caseDialog.patch1-shell .shell-header-identity{flex:none;max-width:calc(100% - 180px);margin:0;min-width:0}
  #caseDialog.patch1-shell .game-menu-trigger{right:14px}
}
@media(max-width:767px){
  #caseDialog.patch1-shell .active-investigation,#caseDialog.patch1-shell.keyboard-open .active-investigation{grid-template-rows:minmax(145px,35dvh) auto auto auto auto}
  #caseDialog.patch1-shell .shell-controls .shell-action-icon{width:clamp(36px,10vw,45px);height:clamp(36px,10vw,45px)}
  #caseDialog.patch1-shell.keyboard-open .scene-description-line{display:none}
}

/* UI cleanup: action icons end the scene pane; shared composer stays in tools. */
#caseDialog.patch1-shell .scene-command{display:none!important}
#caseDialog.patch1-shell .active-investigation,#caseDialog.patch1-shell.keyboard-open .active-investigation{grid-template-rows:minmax(0,1fr) auto auto auto}
@media(min-width:768px){
  #caseDialog.patch1-shell .game-header-logo{position:relative;left:auto;transform:none;flex:0 0 auto}
  #caseDialog.patch1-shell .shell-header-identity{position:relative;left:auto;transform:none;margin:0;flex:1;min-width:0;max-width:none;text-align:left}
}
@media(max-width:767px){
  #caseDialog.patch1-shell .active-investigation,#caseDialog.patch1-shell.keyboard-open .active-investigation{grid-template-rows:minmax(145px,35dvh) auto auto auto}
}

/* Dedicated location artwork keeps its composition outside fullscreen mode. */
#caseDialog.patch1-shell:not(.scene-expanded) .active-investigation.responsive-location-art{grid-template-rows:auto auto auto auto;align-content:start;overflow-y:auto}
#caseDialog.patch1-shell:not(.scene-expanded) .responsive-location-art .shell-scene{width:100%;height:auto;min-height:0;aspect-ratio:16/9}
#caseDialog.patch1-shell:not(.scene-expanded) .responsive-location-art .shell-scene img{object-fit:cover;object-position:center center}
@media(max-width:767px){
  #caseDialog.patch1-shell:not(.scene-expanded) .responsive-location-art .shell-scene{aspect-ratio:9/16;height:min(177.7778vw,55svh);max-height:55svh;flex:none}
}

/* Mobile scene consumes the viewport space left by the existing header and content rows. */
@media(max-width:767px){
  #caseDialog.patch1-shell:not(.scene-expanded):not(.keyboard-open) .active-investigation,
  #caseDialog.patch1-shell:not(.scene-expanded):not(.keyboard-open) .active-investigation.responsive-location-art{height:100%;min-height:0;grid-template-rows:minmax(0,1fr) auto auto auto;align-content:stretch;overflow:hidden}
  #caseDialog.patch1-shell:not(.scene-expanded):not(.keyboard-open) .active-investigation .shell-scene{width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto}
  #caseDialog.patch1-shell:not(.scene-expanded):not(.keyboard-open) .shell-scene img{width:100%;height:100%;object-fit:cover;object-position:center center}
}

/* Keep the desktop map geometry; portrait layout applies only to phones. */
#caseDialog.patch1-shell .move-map-surface>picture{display:block;width:100%;height:100%}
#caseDialog.patch1-shell .move-map-surface>picture img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:767px){
  #caseDialog.patch1-shell .move-panel{height:var(--mobile-vh,100dvh);max-height:100dvh}
  #caseDialog.patch1-shell .move-body{display:flex;flex-direction:column;gap:6px;overflow:hidden;padding:6px 8px}
  #caseDialog.patch1-shell .move-map-view{flex:1;min-height:0;height:auto;width:100%;gap:0}
  #caseDialog.patch1-shell .move-map-surface{flex:1;width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;margin:0;border:0;box-shadow:none}
  #caseDialog.patch1-shell .move-locations-view{flex:1;min-height:0;overflow-y:auto;width:100%}
  #caseDialog.patch1-shell .move-map-selection{flex:none;width:100%;min-height:0;padding:7px 10px;gap:8px}
  #caseDialog.patch1-shell .move-map-selection>button{min-height:40px;min-width:78px}
  #caseDialog.patch1-shell .move-selection-info{gap:2px}
  #caseDialog.patch1-shell .move-selection-info>span{display:none}
  #caseDialog.patch1-shell .move-map-marker{width:22px;height:22px;padding:0;gap:0;overflow:visible}
  #caseDialog.patch1-shell .move-pin{flex:none}
  #caseDialog.patch1-shell .move-marker-label{position:absolute;width:max-content;max-width:96px;padding:2px 4px;font-size:9px;line-height:1.2}
}

/* Show location artwork without the game's dark scene overlay. */
#caseDialog.patch1-shell .shell-scene:after{display:none}
@media(max-width:767px){
  #caseDialog.patch1-shell .investigate-open .dismiss-keyboard{display:none!important}
}
@media(min-width:768px){
  #caseDialog.patch1-shell .move-panel{left:var(--map-left,0px);right:auto;top:var(--map-top,var(--game-header-height,62px));bottom:var(--map-bottom,85px);width:var(--map-width,62%);height:auto}
  #caseDialog.patch1-shell #closeMove{display:block}
  #caseDialog.patch1-shell .move-body{display:flex;min-height:0;overflow:hidden;padding:6px 12px}
  #caseDialog.patch1-shell .move-map-view{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;height:100%;gap:6px}
  #caseDialog.patch1-shell .move-map-surface{flex:1;min-height:0;width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:auto;margin:0}
  #caseDialog.patch1-shell .move-map-selection{flex:none;width:100%;min-height:62px;flex-direction:row;align-items:center;padding:8px 12px}
  #caseDialog.patch1-shell .move-map-selection>button{width:auto}
  #caseDialog.patch1-shell .move-locations-view{width:100%;overflow:auto}
  #caseDialog.patch1-shell .move-map-marker{width:22px;height:22px;padding:0;gap:0;overflow:visible}
  #caseDialog.patch1-shell .move-pin{flex:none}
  #caseDialog.patch1-shell .move-marker-label{position:absolute;width:max-content}
}
.scene-map-footer{display:none}
#caseDialog.patch1-shell .move-map-marker:before{content:'';position:absolute;left:11px;top:11px;width:var(--label-line-length,0px);height:1px;background:#a4bed1b0;transform:rotate(var(--label-line-angle,0deg));transform-origin:0 50%;pointer-events:none}
#caseDialog.patch1-shell .move-pin{position:relative;z-index:1}
#caseDialog.patch1-shell .move-marker-label{z-index:1;padding:2px 4px;line-height:1.1}
@media(min-width:768px){
  #caseDialog.patch1-shell .move-panel-header{position:absolute;right:8px;top:6px;z-index:3;width:auto;min-height:0;padding:0;border:0;background:transparent}
  #caseDialog.patch1-shell .move-brand{display:none}
  #caseDialog.patch1-shell .move-body{padding:0}
  #caseDialog.patch1-shell .scene-map-footer{display:flex;flex:none;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:8px 12px;border-top:1px solid #7896a43c;background:#07121e}
  #caseDialog.patch1-shell .scene-map-current{flex:1;color:#b8dfff;font:500 10px 'DM Mono',monospace}
  #caseDialog.patch1-shell .scene-map-footer .move-tabs{flex:none;padding:0;border:0}
  #caseDialog.patch1-shell .scene-map-footer .move-map-selection{flex:0 0 100%;min-height:0;padding:0;border:0;background:transparent}
  #caseDialog.patch1-shell .scene-map-footer .move-selection-info small,#caseDialog.patch1-shell .scene-map-footer .move-selection-info>span{display:none}
  #caseDialog.patch1-shell .scene-map-footer .move-selection-info strong{font-size:12px}
  #caseDialog.patch1-shell .scene-map-footer .move-map-selection>button{min-height:30px;padding:4px 10px}
}

.day-three-cue{color:#f6ead0;background:#101923;border:1px solid #b58b46;border-radius:12px;padding:clamp(24px,5vw,60px);text-align:center;max-width:min(520px,90vw)}
.day-three-cue::backdrop{background:rgba(0,0,0,.8)}
.day-three-cue h2{font-size:clamp(32px,7vw,64px);margin:18px 0;color:#d8b773}
.day-three-cue p{font-size:17px;line-height:1.5;max-width:38ch}
.day-three-cue button{margin-top:20px;padding:14px 22px;border:1px solid #b58b46;background:#243445;color:#fff;border-radius:6px}
#countyMapScope{min-height:40px;padding:8px 14px;border:1px solid #b58b46;color:#e9c17b;background:#132234;border-radius:5px;font-size:14px}

/* Observable character opening; outside testimony and scrolling conversation. */
.conversation-attitude{flex:0 0 auto;margin:0;padding:10px 17px;color:#cbd3da;background:#1e252b;border-bottom:1px solid #58636c;font:italic 14px/1.5 Manrope,sans-serif;overflow-wrap:anywhere}
.phone-call .conversation-attitude{margin:0 16px 8px;padding:9px 12px;border:1px solid #68889d32;border-radius:4px}
@media(max-width:767px){.conversation-attitude{padding:8px 12px}.phone-call .conversation-attitude{margin:0 8px 6px}}
.conversation-attitude small{display:block;margin-bottom:4px;color:#b5c2cc;font:500 .875rem/1.4 'DM Mono',monospace;letter-spacing:.04em}.conversation-attitude p{margin:0}

/* Unanswered calls retain the handset view without a conversation composer. */
.phone-panel .phone-form[hidden],.phone-panel .phone-history[hidden]{display:none!important}
.phone-panel.call-active .phone-form[hidden]~.end-call{margin-top:auto}

#caseDialog #nightOneProgression[hidden]{display:none!important}

/* Authored Leads actions share the normal movement and investigation handlers. */
button.lead-entry.lead-action{width:100%;min-height:48px;box-sizing:border-box;text-align:left;font:inherit;border:1px solid #536f81;border-radius:8px;padding:12px 14px;margin:6px 0;background:#112c3d;cursor:pointer;color:#dce8f0;touch-action:manipulation}
button.lead-entry.lead-action:hover:not(:disabled){background:#1d4156;border-color:#c5a36c}
button.lead-entry.lead-action:focus-visible{outline:3px solid #8dc8f2;outline-offset:2px}
button.lead-entry.lead-action:disabled{opacity:.55;cursor:wait}

/* Optional Guided reply questions stay beside the free-text composer. */
#caseDialog .guided-chat-choices{display:block;min-width:0;margin-top:8px}
#caseDialog .guided-chat-choices[hidden]{display:none!important}
#caseDialog .guided-chat-choice-hint,#caseDialog .guided-chat-choice-status{margin:0 0 6px;color:#b2c6d5;font:400 11px/1.4 Manrope,sans-serif;letter-spacing:0}
#caseDialog .guided-chat-choice-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#caseDialog .guided-chat-choices .guided-chat-choice{min-width:0;min-height:44px;height:auto;padding:10px 12px;border:1px solid #59758a;border-radius:8px;background:#102a3c;color:#e5edf3;font:500 13px/1.4 Manrope,sans-serif;letter-spacing:0;text-align:left;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation;cursor:pointer}
#caseDialog .guided-chat-choices .guided-chat-choice:hover:not(:disabled){background:#1d4058;border-color:#d1b17a}
#caseDialog .guided-chat-choices .guided-chat-choice:focus-visible{outline:3px solid #9cd6ff;outline-offset:2px}
#caseDialog .guided-chat-choices .guided-chat-choice:disabled{opacity:.55;cursor:wait}
#caseDialog .guided-chat-choice-status{margin:6px 0 0}
#caseDialog .guided-chat-choice-hint{font-weight:600;margin-bottom:5px}
#caseDialog .guided-chat-clarification{grid-column:1/-1;display:flex;flex-direction:column;gap:2px}
#caseDialog .guided-chat-clarify-label{font-size:11px;line-height:1.3;color:#d1b17a;font-weight:600}
#caseDialog .guided-chat-clarify-question{display:block}
@media(max-width:560px){#caseDialog .guided-chat-choice-buttons{grid-template-columns:minmax(0,1fr)}#caseDialog .guided-chat-choices .guided-chat-choice{padding:8px 10px}}

/* Day 3 threat: presentation only; no timed input locks or story-state changes. */
.day-three-cue.day-three-knock,.day-three-cue.day-three-threat{box-sizing:border-box;width:min(580px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 32px);overflow-y:auto;overflow-x:hidden;padding:clamp(22px,5vw,44px);box-shadow:0 24px 90px #000b;text-wrap:pretty}
.day-three-cue.day-three-knock{background:linear-gradient(180deg,rgba(5,12,19,.76),rgba(5,12,19,.97)),url('/game/assets/story/detective-condo-entry.webp') center/cover no-repeat;border-color:#92703c}
.day-three-cue.day-three-threat{background:linear-gradient(155deg,#15212b,#090e15);border-color:#78503f}
.day-three-cue .threat-kicker{display:block;color:#d6bd8b;font-size:12px;letter-spacing:.2em;font-weight:700}
.day-three-cue.day-three-knock h2,.day-three-cue.day-three-threat h2{font-size:clamp(28px,6vw,44px);line-height:1.12;max-width:15ch;margin:24px auto;color:#f7edd9;overflow-wrap:break-word}
.day-three-cue .threat-context{color:#e2dacc;margin:18px auto;font-size:clamp(15px,3.8vw,17px);line-height:1.6}
.day-three-cue .threat-envelope{display:block;width:min(230px,72%);max-height:23dvh;object-fit:contain;margin:18px auto;border-radius:5px}
.day-three-cue .threat-warning{box-sizing:border-box;margin:22px 0;padding:22px 16px;border-block:1px solid #ad594b;background:#2c1417;color:#fff0de;font-size:clamp(24px,6vw,38px);font-weight:800;letter-spacing:.025em;line-height:1.25;overflow-wrap:anywhere;animation:day-three-warning-reveal .45s ease-out both}
.day-three-cue.day-three-threat button,.day-three-cue.day-three-knock button{min-height:44px;max-width:100%;white-space:normal;margin:12px 5px 0}
.day-three-cue.day-three-threat button:last-child,.day-three-cue.day-three-knock button:last-child{background:#b18a4d;color:#101923;font-weight:700}
@keyframes day-three-warning-reveal{from{opacity:.65;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.day-three-cue .threat-warning{animation:none}}
@media(max-width:380px){.day-three-cue.day-three-threat button{display:block;width:100%;margin:10px 0 0}.day-three-cue .threat-warning{padding:18px 10px}}

/* Preserve every reviewed Day3 character, including 2:3 station mobile art. */
#caseDialog.patch1-shell .shell-scene img.day3-presence-art,#caseDialog.patch1-shell:not(.scene-expanded) .responsive-location-art .shell-scene img.day3-presence-art,#caseDialog.patch1-shell:not(.scene-expanded):not(.keyboard-open) .shell-scene img.day3-presence-art{object-fit:contain;object-position:center center}

/* Recorded help lives in the user-opened Leads app, not a persistent sidebar. */
#caseDialog .active-leads-panel,#caseDialog .mobile-active-leads{display:none!important}

/* A named person actually present, other than the selected character. */
