/* Alpha 3: physical investigation on the left; calls and apps on the right. */
/* Read-only home progress stays in the phone's scroll flow, below its header. */
#caseDialog.ui3 .ui3-guided-progress{flex:none;min-width:0;margin:0 2px;padding:10px;border:1px solid #69859a66;border-radius:14px;background:#071928dc;color:#eef4f8}
#caseDialog.ui3 .ui3-guided-progress[hidden]{display:none!important}
#caseDialog.ui3 .ui3-guided-phase{margin:0 0 9px;font:600 12px/1.3 Arial,sans-serif;color:#ccdae5}
#caseDialog.ui3 .ui3-progress-note{margin:9px 0 0;font:11px/1.35 Arial,sans-serif;color:#bbcedc}
#caseDialog.ui3 .ui3-guided-meters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#caseDialog.ui3 .ui3-guided-meter{display:flex;flex-direction:column;min-width:0;gap:4px}
#caseDialog.ui3 .ui3-guided-label{font:600 12px/1.2 Arial,sans-serif;overflow-wrap:anywhere}
#caseDialog.ui3 .ui3-guided-meter strong{font:600 20px/1.1 Arial,sans-serif;font-variant-numeric:tabular-nums;color:#f0d49b}
#caseDialog.ui3 .ui3-guided-meter small{font:11px/1.25 Arial,sans-serif;color:#bbcedc;overflow-wrap:anywhere}
#caseDialog.ui3 .ui3-guided-meter progress{display:block;width:100%;height:5px;border:0;border-radius:5px;overflow:hidden;appearance:none;background:#31495a;accent-color:#e5bf75}
#caseDialog.ui3 .ui3-guided-meter progress::-webkit-progress-bar{background:#31495a;border-radius:5px}
#caseDialog.ui3 .ui3-guided-meter progress::-webkit-progress-value{background:#e5bf75;border-radius:5px}
#caseDialog.ui3 .ui3-guided-meter progress::-moz-progress-bar{background:#e5bf75;border-radius:5px}
#caseDialog.ui3 .ui3-guided-next{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:7px;align-items:center;width:100%;min-height:40px;margin:8px 0 0;padding:8px 0 0;border:0;border-top:1px solid #69859a66;border-radius:0;background:transparent;color:#f3f6f9;text-align:left;font:12px/1.35 Arial,sans-serif;overflow-wrap:anywhere}
#caseDialog.ui3 .ui3-guided-next>span:first-child{font-size:10px;letter-spacing:.06em;color:#f0d49b}
#caseDialog.ui3 .ui3-guided-next:focus-visible{outline:2px solid #f0d49b;outline-offset:3px}
@media(max-height:650px){#caseDialog.ui3 .ui3-guided-progress{padding:8px}#caseDialog.ui3 .ui3-guided-phase{margin-bottom:6px}#caseDialog.ui3 .ui3-guided-meter strong{font-size:18px}}
/* iPad direct play owns one measured viewport; only the inner panels scroll. */
html.ipad-game,body.direct-play.ipad-game{position:fixed;inset:0;width:100%;height:var(--ipad-vh,100dvh)!important;min-height:0;overflow:hidden;overscroll-behavior:none;scroll-behavior:auto}
#caseDialog.ipad-game.ui3.patch1-shell{position:fixed;left:var(--tablet-viewport-left,0);right:auto;top:var(--tablet-viewport-top,0);bottom:auto;margin:0;border:0;width:var(--tablet-width,100vw)!important;max-width:none!important;height:var(--tablet-height,100dvh)!important;max-height:none!important;min-height:0;z-index:100;scroll-behavior:auto;transform-origin:0 0;transform:scale(var(--tablet-scale,1));overflow:hidden}
@media(min-width:0px){
 /* One bounded workspace: scene takes the space left by its intrinsic rows. */
 #caseDialog.ipad-game.ui3.patch1-shell[open]{display:block}
 #caseDialog.ipad-game.ui3.patch1-shell>.investigation-workspace{position:absolute;inset:var(--game-header-height,62px) 0 0;height:auto;max-height:none;min-height:0;grid-template-rows:minmax(0,1fr)}
 #caseDialog.ipad-game.ui3.patch1-shell.keyboard-open>.investigation-workspace{top:0}
 #caseDialog.ipad-game.ui3.patch1-shell.keyboard-open>.phone-panel{top:0!important}
 #caseDialog.ipad-game.ui3.patch1-shell:not(.scene-expanded) .active-investigation,
 #caseDialog.ipad-game.ui3.patch1-shell:not(.scene-expanded) .active-investigation.responsive-location-art{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(96px,1fr) auto auto auto!important;align-content:stretch;align-self:stretch;min-height:0;height:auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
 #caseDialog.ipad-game.ui3.patch1-shell:not(.scene-expanded) .active-investigation .shell-scene,
 #caseDialog.ipad-game.ui3.patch1-shell:not(.scene-expanded) .active-investigation.responsive-location-art .shell-scene{grid-row:1;min-height:0!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;align-self:stretch}
 #caseDialog.ipad-game.ui3.patch1-shell #shellSceneImage{touch-action:pan-y pinch-zoom}
 #caseDialog.ipad-game.ui3.patch1-shell .scene-description-line{grid-row:2}
 #caseDialog.ipad-game.ui3.patch1-shell .scene-people-here{grid-row:3}
 #caseDialog.ipad-game.ui3.patch1-shell .shell-controls{grid-row:4}
}
/* iPad expands the real scene within its scaled canvas, not a cloned lightbox.
   Opening Talk collapses this surface first, exposing the adjacent right pane. */
#caseDialog.ipad-game.ui3.patch1-shell.mobile-scene-expanded .shell-scene{position:fixed;inset:var(--game-header-height,62px) 0 0;width:auto;height:auto;min-height:0;max-height:none;aspect-ratio:auto;overflow:hidden}
#caseDialog.ipad-game.ui3.patch1-shell.mobile-scene-expanded .inline-scene-zoom-controls{display:none}
/* Tablet canvas retains its desktop arrangement even in a narrow iPad window. */
#caseDialog.ipad-game.ui3.patch1-shell{--game-header-height:62px}
#caseDialog.ipad-game.ui3.patch1-shell>.workspace-header{display:flex;height:62px;min-height:62px}
#caseDialog.ipad-game.ui3.patch1-shell>.investigation-workspace{display:grid;grid-template-columns:minmax(0,100fr) minmax(0,0fr)!important}
#caseDialog.ipad-game.ui3.patch1-shell.ui3-right-open>.investigation-workspace{grid-template-columns:minmax(0,62fr) minmax(0,38fr)!important}
#caseDialog.ipad-game.ui3.patch1-shell .shell-controls button{height:auto;min-height:44px;max-height:none;aspect-ratio:5/2}
#caseDialog.ipad-game.ui3.patch1-shell .shell-controls img{width:100%;height:100%;object-fit:fill}
/* Landscape iPad: spend height on the scene, not width-sized action artwork.
   Keep the real buttons (also used by the tutorial) and the existing scene grid.
   The canvas can be scaled down: 44 / scale preserves a 44px rendered hit area.
   Keyboard opening keeps these bounded controls rather than expanding the artwork. */
@media(min-width:768px) and (orientation:landscape){
 #caseDialog.ipad-game.ui3.patch1-shell .shell-controls button{
  height:max(72px,calc(44px / var(--tablet-scale,1)));
  min-height:calc(44px / var(--tablet-scale,1));
  max-height:max(80px,calc(44px / var(--tablet-scale,1)));
  aspect-ratio:auto;
 }
 #caseDialog.ipad-game.ui3.patch1-shell .shell-controls img{object-fit:contain}
}
#caseDialog.ipad-game.ui3.patch1-shell>.phone-panel{position:absolute!important;inset:62px 0 0 auto!important;width:38%!important;height:auto!important;padding:10px!important}
#caseDialog.ipad-game.ui3.patch1-shell .ui3-evidence{position:absolute;inset:0;height:auto}
#caseDialog.ipad-game.ui3.patch1-shell .shell-tool-panel.investigate-open,
#caseDialog.ipad-game.ui3.patch1-shell .shell-tool-panel.speak-open{position:absolute;left:auto!important;right:0!important;top:0;bottom:0;width:38%!important;height:auto}
#caseDialog.ipad-game.ui3.patch1-shell .ui3-portrait-frame>img{max-width:calc(var(--tablet-width,100vw) - 32px);max-height:calc(var(--tablet-height,100dvh) - 32px)}
#caseDialog.ipad-game.ui3.patch1-shell :is(#sheriffTransition,#officeDayClosed){height:100%;max-height:100%}
#caseDialog.ipad-game.ui3.patch1-shell .move-panel{left:var(--map-left,0px);right:auto;top:var(--map-top,62px);bottom:var(--map-bottom,85px);width:var(--map-width,62%);height:auto;max-height:none}
@media(min-width:768px) and (any-pointer:coarse){
 /* Reserve browser chrome space from the first frame, even before WebKit resizes. */
 html:has(body.direct-play),body.direct-play{position:fixed;inset:0;width:100%;height:100svh;min-height:0;overflow:hidden;overscroll-behavior:none}
 #caseDialog.ui3.patch1-shell{position:fixed;top:var(--mobile-top,0);bottom:auto;height:min(var(--mobile-vh,100svh),100svh);max-height:min(var(--mobile-vh,100svh),100svh);min-height:0;overflow:hidden}
 #caseDialog.ui3.patch1-shell .investigation-workspace{flex:1 1 0;grid-template-rows:minmax(0,1fr);min-height:0;max-height:100%;overflow:hidden}
 #caseDialog.ui3.patch1-shell:not(.scene-expanded) .active-investigation{min-height:0;grid-template-rows:minmax(0,1fr) auto auto auto;overflow:hidden}
 #caseDialog.ui3.patch1-shell .shell-controls{padding-bottom:max(24px,env(safe-area-inset-bottom))}
 #caseDialog.ui3.patch1-shell{overscroll-behavior:none}
 /* Static game chrome must not drag the document; app/chat scrollers stay native. */
 #caseDialog.ui3.patch1-shell .workspace-header,
 #caseDialog.ui3.patch1-shell #shellSceneImage,
 #caseDialog.ui3.patch1-shell .scene-expand,
 #caseDialog.ui3.patch1-shell .scene-description-line,
 #caseDialog.ui3.patch1-shell .shell-controls{touch-action:pinch-zoom}
 #caseDialog.ui3.patch1-shell .scene-people-here{touch-action:pan-x pinch-zoom}
}
#caseDialog.ui3 .case-file-nav,#caseDialog.ui3 .case-file-backdrop,#caseDialog.ui3 .case-viewer,#caseDialog.ui3.case-file-open .case-viewer,#caseDialog.ui3 .phone-utility,#caseDialog.ui3 .world-dock,#caseDialog.ui3 .mobile-case-file-button,#caseDialog.ui3 .desktop-file-tabs,#caseDialog.ui3 .active-leads-panel{display:none!important}
#caseDialog.ui3 .shell-controls{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
#caseDialog.ui3 .shell-controls button{display:flex!important;min-height:62px;padding:2px!important;background:transparent;border:0}
#caseDialog.ui3 .shell-controls img{width:clamp(48px,5vw,66px);height:clamp(48px,5vw,66px);object-fit:contain}
#caseDialog.ui3 .shell-scene{position:relative}
#caseDialog.ui3 .ui3-evidence{position:absolute;inset:0;z-index:8;display:flex;flex-direction:column;background:#0b1b27;color:#edf2f5;overflow:hidden;text-align:left}
#caseDialog.ui3 .ui3-evidence[hidden]{display:none}
#caseDialog.ui3 .ui3-evidence>header{flex:none;display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid #9c804b}
#caseDialog.ui3 .ui3-evidence>header button{min-width:44px;min-height:44px;background:none;color:inherit;border:0;font-size:26px}
#caseDialog.ui3 .ui3-evidence .viewer-content{flex:1;min-height:0;overflow:auto;padding:18px}
#caseDialog.ui3 .ui3-evidence img{position:static;width:100%;height:auto;object-fit:contain}
#caseDialog.ui3 .phone-panel{position:absolute!important;inset:var(--game-header-height,62px) 0 0 auto!important;width:38%!important;height:auto!important;max-height:none!important;padding:10px!important;z-index:25;background:#06121b!important;display:flex;justify-content:center;align-items:stretch;overflow:hidden}
#caseDialog.ui3 .phone-panel[hidden]{display:none!important}
#caseDialog.ui3 .phone-shell{position:relative;display:flex;flex-direction:column;width:min(100%,430px);height:100%;max-height:none;margin:0;padding:10px 10px 14px;border:6px solid #252a2e;border-radius:38px;box-shadow:0 0 0 2px #9ca5ac,0 6px 20px #0005;background:#e6f0fa url('/game/assets/ui3/wallpaper-forest.png') center/cover;color:#172c3e;overflow:hidden;font-family:Arial,sans-serif}
#caseDialog.ui3 .ui3-phone-status{display:flex;flex:none;justify-content:space-between;align-items:center;padding:8px 13px;color:#263e50;font:600 15px/1.2 Arial,sans-serif}
#caseDialog.ui3 .phone-shell>header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:8px;background:transparent;border:0;color:#183044;padding:4px;min-height:40px}
#caseDialog.ui3 .phone-shell>header button{color:#245178;background:transparent;border:0;min-width:40px;min-height:40px;font-size:24px}
#caseDialog.ui3 #phoneHeading{font:600 16px Arial,sans-serif;letter-spacing:0}
#caseDialog.ui3 .phone-shell>.speak-mode-tabs,#caseDialog.ui3 .phone-entry-art,#caseDialog.ui3 .call-visual-controls{display:none!important}
#caseDialog.ui3 .ui3-phone-home{display:flex;flex:1;min-height:0;flex-direction:column;overflow:auto;padding:8px 2px 16px;gap:20px}
#caseDialog.ui3 .ui3-phone-home[hidden],#caseDialog.ui3 .ui3-app-view[hidden]{display:none!important}
#caseDialog.ui3 .ui3-app-grid{display:grid;flex:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 5px;align-items:start}
#caseDialog.ui3 .ui3-app{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;border:0;padding:0;background:transparent;box-shadow:none;color:#172b3d;min-width:0;font:13px/1.2 Arial,sans-serif;letter-spacing:0;text-transform:none;text-align:center;cursor:pointer}
#caseDialog.ui3 .ui3-app img{display:block;width:100%;max-width:76px;aspect-ratio:1;object-fit:contain}
#caseDialog.ui3 .ui3-app span{min-height:32px;overflow-wrap:normal;white-space:normal}
#caseDialog.ui3 .ui3-weather{position:relative;flex:none;margin:0 9px;padding:18px;border:1px solid #fff;border-radius:22px;background:#f2f7fcbd;box-shadow:0 4px 18px #2844610b;display:grid;grid-template-columns:1fr auto;gap:8px;color:#213e56}
#caseDialog.ui3 .ui3-weather>div{font-size:24px;font-weight:600}
#caseDialog.ui3 .ui3-weather>span{font-size:17px;grid-column:1}
#caseDialog.ui3 .ui3-weather-icon{grid-column:2;grid-row:1/3;font-size:58px;align-self:center;color:#efb833;line-height:1}
#caseDialog.ui3 .ui3-weather.rainy .ui3-weather-icon{font-size:34px;color:#758fac}
#caseDialog.ui3 .ui3-weather.rainy:after{content:'╱ ╱ ╱';position:absolute;right:24px;bottom:10px;color:#3ba3ed}
#caseDialog.ui3 .ui3-app-view{flex:1;min-height:0;overflow:auto;border-radius:12px;background:#f8fbffed;color:#24394a}
#caseDialog.ui3 .ui3-app-view .viewer-content{padding:15px;overflow:visible}
#caseDialog.ui3 .ui3-app-view :is(p,span,small,label,dt,dd,h2,strong,summary,time){color:inherit}
#caseDialog.ui3 .ui3-app-view .viewer-record,#caseDialog.ui3 .ui3-app-view .saved-note,#caseDialog.ui3 .ui3-app-view .case-question{background:#fff;border:1px solid #d4e0e8;border-radius:10px;color:#21394c}
#caseDialog.ui3 .ui3-app-view :is(input,textarea){background:#fff;color:#203748;border:1px solid #adbfce;font:16px/1.4 Arial,sans-serif}
#caseDialog.ui3 .ui3-app-view :is(button,.note-save){min-height:40px;color:#194e7a}
#caseDialog.ui3 .ui3-app-view .viewer-record{display:flex;width:100%;text-align:left;padding:12px;margin-bottom:8px}
#caseDialog.ui3 .ui3-app-view .viewer-record>div{min-width:0}
#caseDialog.ui3 .ui3-app-view .viewer-record span{display:block;font-size:14px;line-height:1.4}
#caseDialog.ui3 .ui3-app-view .viewer-person-thumb{width:48px;height:60px;object-fit:cover}
#caseDialog.ui3 .ui3-app-view .viewer-image{width:100%;max-height:210px;object-fit:contain}
#caseDialog.ui3 #phoneContacts{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;background:#f6faffee;border-radius:12px;padding:5px}
#caseDialog.ui3 #phoneContacts[hidden]{display:none!important}
#caseDialog.ui3 .phone-contact{display:flex;align-items:center;gap:10px;min-height:68px;padding:10px;border:0;border-bottom:1px solid #d4e0e8;background:transparent;color:#173449;border-radius:0;text-align:left;width:100%}
#caseDialog.ui3 .phone-contact img{width:42px;height:48px;object-fit:cover;border-radius:8px}
#caseDialog.ui3 .phone-contact :is(strong,small,span){color:inherit;letter-spacing:0}
#caseDialog.ui3 .phone-contact-copy{flex:1;min-width:0}
#caseDialog.ui3 .phone-contact-copy strong{font-size:15px}
#caseDialog.ui3 .phone-contact-copy small{font-size:12px}
#caseDialog.ui3 .ui3-dispatch img{object-fit:contain}
#caseDialog.ui3 .phone-call{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;border-radius:14px;overflow:hidden;background:#163348;color:#fff;padding:10px}
#caseDialog.ui3 .phone-call[hidden]{display:none!important}
#caseDialog.ui3 .call-portrait{position:absolute;inset:0;opacity:.5;pointer-events:none;background-size:cover;background-position:center}
#caseDialog.ui3 .call-identity,#caseDialog.ui3 .phone-call-status,#caseDialog.ui3 .phone-history,#caseDialog.ui3 .phone-form{position:relative;z-index:1}
#caseDialog.ui3 .call-identity{flex:none;font-size:15px;padding:6px}
#caseDialog.ui3 .phone-call-status{font-size:11px;min-height:20px}
#caseDialog.ui3 .phone-history{flex:1;min-height:0;overflow:auto;padding:4px}
#caseDialog.ui3 .phone-entry{background:#12283ace;border-radius:10px;margin-bottom:8px;padding:10px;color:#fff}
#caseDialog.ui3 .phone-entry.player{background:#286ba2dc}
#caseDialog.ui3 .phone-entry p{font:15px/1.45 Arial,sans-serif;color:#fff}
#caseDialog.ui3 .phone-form{flex:none;padding:5px 0;background:transparent}
#caseDialog.ui3 .phone-form>label{display:none}
#caseDialog.ui3 .phone-form>div{display:flex;gap:4px;align-items:stretch}
#caseDialog.ui3 .phone-form input{min-width:0;flex:1;background:#fff;color:#173449;font-size:16px;padding:10px;border:0;border-radius:8px}
#caseDialog.ui3 .phone-form button{flex:none;width:auto;min-width:42px;padding:8px;margin:0;font-size:11px;border-radius:8px}
#caseDialog.ui3 .phone-form .end-call{background:#a9343b;color:#fff}
#caseDialog.ui3 .phone-shell .radio-panel{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;flex:1;min-height:0;padding:0!important;background:#f7fbff!important;box-shadow:none;border-radius:12px;overflow:hidden}
#caseDialog.ui3 .radio-panel[hidden]{display:none!important}
#caseDialog.ui3 .radio-shell{display:flex;flex-direction:column;height:100%;width:100%;max-width:none;max-height:none;margin:0;border:0;background:#f7fbff;color:#20374a;padding:10px}
#caseDialog.ui3 .radio-shell>header,#caseDialog.ui3 .radio-shell .speak-mode-tabs,#caseDialog.ui3 .dispatch-banner,#caseDialog.ui3 .dispatch-channel{display:none!important}
#caseDialog.ui3 .radio-history{flex:1;min-height:0;overflow:auto}
#caseDialog.ui3 .radio-entry{background:#e3edf5;color:#193347;border-radius:10px;padding:10px;margin-bottom:8px}
#caseDialog.ui3 .radio-entry p,#caseDialog.ui3 .radio-entry small{color:inherit;font-family:Arial,sans-serif}
#caseDialog.ui3 .radio-form{flex:none;padding:4px;background:transparent}
#caseDialog.ui3 .radio-form input{background:#fff;color:#21374c;min-width:0;font-size:16px}
#caseDialog.ui3 .radio-form>div{display:flex;gap:4px}
#caseDialog.ui3 .radio-form button{padding:8px;min-width:42px;width:auto}
#caseDialog.ui3 .speak-open .speak-mode-tabs{display:none!important}
#caseDialog.ui3 .investigate-open{left:0!important;right:auto!important;width:62%!important}
#caseDialog.ui3 .speak-open{left:auto!important;right:0!important;width:38%!important}
#caseDialog.ui3 .speak-layout{grid-template-columns:1fr!important}
#caseDialog.ui3 .speak-talking .speak-roster{display:none}
#caseDialog.ui3 .speak-heading{flex-wrap:wrap}
#caseDialog.ui3 .speak-person-portrait{max-height:180px}
@media(max-width:767px){
 #caseDialog.ui3 .phone-panel{position:fixed!important;inset:var(--mobile-top,0) 0 auto!important;width:100%!important;height:var(--mobile-vh,100dvh)!important;padding:0!important;background:#e7f0f8!important}
 #caseDialog.ui3 .phone-shell{width:100%;border:0;border-radius:0;box-shadow:none;padding:env(safe-area-inset-top) 10px max(10px,env(safe-area-inset-bottom));max-width:none}
 #caseDialog.ui3 .ui3-app-grid{gap:20px 8px}
 #caseDialog.ui3 .ui3-app img{max-width:84px}
 #caseDialog.ui3 .ui3-app{font-size:14px}
 #caseDialog.ui3 .ui3-phone-home{gap:14px;overscroll-behavior:contain}
 #caseDialog.ui3 .ui3-evidence{position:fixed;inset:var(--mobile-top,0) 0 auto;height:var(--mobile-vh,100dvh);z-index:20}
 #caseDialog.ui3 .investigate-open,#caseDialog.ui3 .speak-open{width:100%!important;left:0!important;right:0!important}
 #caseDialog.ui3 .shell-controls img{width:52px;height:52px}
}
@media(max-height:650px){#caseDialog.ui3 .ui3-phone-home{gap:12px}#caseDialog.ui3 .ui3-app-grid{gap:8px 4px}#caseDialog.ui3 .ui3-app img{max-width:60px}#caseDialog.ui3 .ui3-weather{padding:10px}#caseDialog.ui3 .ui3-weather>div{font-size:20px}}
#caseDialog.ui3.keyboard-open .phone-shell{border-radius:0;border-width:0;padding:3px}
#caseDialog.ui3.keyboard-open .ui3-phone-status{display:none}
#caseDialog.ui3.keyboard-open .phone-shell>header{min-height:34px}
#caseDialog.ui3.keyboard-open .phone-shell>header button{min-height:32px}
#caseDialog.ui3 .investigate-context{display:flex;flex-direction:column;padding:0;gap:8px;max-height:42%;overflow:hidden;flex:none}
#caseDialog.ui3 .ui3-examine-scene{width:100%;height:220px;max-height:32vh;object-fit:contain;background:#071521}
#caseDialog.ui3 .investigate-context strong{padding:0 12px 8px}
#caseDialog.ui3.keyboard-open .ui3-examine-scene{display:none}
/* Requested visual refinements: shared wallpaper/status, wide action tiles, desktop Examine right. */
#caseDialog.ui3 .phone-shell{background-image:url('/game/assets/ui3/wallpaper-forest.png');background-color:#101e2b}
#caseDialog.ui3 .ui3-phone-status,#caseDialog.ui3 .phone-shell>header,#caseDialog.ui3 .phone-shell>header button,#caseDialog.ui3 .ui3-app{color:#f2f5f8}
#caseDialog.ui3 .ui3-app span{text-shadow:0 1px 3px #000b}
#caseDialog.ui3 .ui3-status-icons{display:flex;align-items:center;gap:7px;line-height:1}
#caseDialog.ui3 .ui3-status-icons svg{display:block;width:20px;height:18px;flex:none;overflow:visible}
#caseDialog.ui3 .ui3-status-icons svg:last-child{width:27px}
#caseDialog.ui3 .ui3-weather{background:#142638df;border-color:#849aad55;color:#f0f4f7;box-shadow:none}
#caseDialog.ui3 .shell-controls{gap:10px;padding:10px 12px}
#caseDialog.ui3 .shell-controls button{border:1px solid #997d495e;border-radius:10px;background:#102637;min-height:90px;justify-content:center;padding:5px!important}
#caseDialog.ui3 .shell-controls button:hover,#caseDialog.ui3 .shell-controls button:focus-visible{background:#1b384d;border-color:#c9a45f}
#caseDialog.ui3 .shell-controls img{width:100%;height:82px;max-width:150px;object-fit:contain}
@media(min-width:768px){
 #caseDialog.ui3 .investigate-open{left:auto!important;right:0!important;width:38%!important}
 #caseDialog.ui3 .investigate-open .ui3-examine-scene{display:none}
}
@media(max-width:767px){
 #caseDialog.ui3 .shell-controls{gap:6px;padding:8px}
 #caseDialog.ui3 .shell-controls button{min-height:72px;border-radius:8px}
 #caseDialog.ui3 .shell-controls img{width:100%;height:64px;max-width:110px}
}
/* Phone app surfaces share the dark wallpaper and readable high-contrast controls. */
#caseDialog.ui3 .ui3-app-view,#caseDialog.ui3 #phoneContacts,#caseDialog.ui3 .phone-shell .radio-panel,#caseDialog.ui3 .radio-shell{background:rgba(7,21,33,.94)!important;color:#e9f0f5!important}
#caseDialog.ui3 .ui3-app-view :is(p,span,small,label,dt,dd,h2,h3,strong,summary,time){color:inherit}
#caseDialog.ui3 .ui3-app-view .viewer-record,#caseDialog.ui3 .ui3-app-view .saved-note,#caseDialog.ui3 .ui3-app-view .case-question,#caseDialog.ui3 .radio-entry{background:#142d40;color:#edf3f7;border:1px solid #3a5365;border-radius:10px}
#caseDialog.ui3 .ui3-app-view :is(input,textarea),#caseDialog.ui3 .radio-form input{background:#0b1c2a;color:#f0f5f8;border:1px solid #587284;font:16px/1.5 Arial,sans-serif}
#caseDialog.ui3 .ui3-app-view :is(input,textarea)::placeholder,#caseDialog.ui3 .radio-form input::placeholder{color:#a7bbca;opacity:1}
#caseDialog.ui3 .ui3-app-view button,#caseDialog.ui3 .ui3-contact-link{background:#203f54;color:#eef4f8;border:1px solid #557286;border-radius:7px;padding:9px 12px}
#caseDialog.ui3 .ui3-app-view .note-save{background:#c6a05e;color:#101b24;border-color:#c6a05e;font-weight:700}
#caseDialog.ui3 .phone-contact{border-bottom-color:#3b5363;color:#edf3f7}
#caseDialog.ui3 .phone-contact-call{background:#173347;color:#f0f5f8;border-color:#688397}
#caseDialog.ui3 .ui3-app-view .viewer-content{font:16px/1.5 Arial,sans-serif;padding:14px}
#caseDialog.ui3 .ui3-app-view .viewer-note,#caseDialog.ui3 .ui3-app-view .empty-file,#caseDialog.ui3 .ui3-app-view .viewer-facts dd,#caseDialog.ui3 .ui3-app-view .saved-note p{font-size:15px;line-height:1.55;color:#e5edf3}
#caseDialog.ui3 .ui3-app-view .viewer-facts dt,#caseDialog.ui3 .ui3-app-view .notes-label,#caseDialog.ui3 .ui3-app-view .viewer-kicker{font-size:12px;line-height:1.4;color:#b9ccd9}
#caseDialog.ui3 .ui3-app-view .viewer-record:has(.viewer-person-thumb){display:grid!important;grid-template-columns:96px minmax(0,1fr)!important;align-items:center;gap:14px;padding:12px!important}
#caseDialog.ui3 .ui3-app-view .viewer-record .viewer-person-thumb{width:96px!important;height:128px!important;max-width:none;max-height:none;object-fit:cover;border-radius:7px;grid-column:1;grid-row:1}
#caseDialog.ui3 .ui3-app-view .viewer-person-copy{display:grid;grid-column:2;grid-row:1;gap:7px;min-width:0;text-align:left}
#caseDialog.ui3 .ui3-app-view .viewer-person-copy strong{font:600 16px/1.3 Arial,sans-serif}
#caseDialog.ui3 .ui3-app-view .viewer-person-copy .viewer-person-role{font:14px/1.4 Arial,sans-serif;color:#bacbd8}
#caseDialog.ui3 .ui3-app-view .viewer-record .viewer-person-copy span{font:14px/1.4 Arial,sans-serif;color:#d9e4ec}
#caseDialog.ui3 .ui3-app-view .leads-content,#caseDialog.ui3 .radio-entry p,#caseDialog.ui3 .radio-entry small{color:#eaf1f6}
/* Artwork is composed for the whole rectangular action tile. */
#caseDialog.ui3 .shell-controls button{position:relative;display:block!important;padding:0!important;overflow:hidden;border:0;border-radius:10px;height:clamp(72px,6.8vw,106px);min-height:0;background:#0b1d2b}
#caseDialog.ui3 .shell-controls img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center}
#caseDialog.ui3 .shell-controls button:hover,#caseDialog.ui3 .shell-controls button:focus-visible{outline:2px solid #d5b675;outline-offset:2px}
@media(max-width:767px){#caseDialog.ui3 .shell-controls button{height:56px;min-height:0;border-radius:7px}#caseDialog.ui3 .shell-controls img{height:100%;width:100%;max-width:none}}
#caseDialog.ui3 .ui3-app-view button:not(.note-save){color:#eef4f8!important}
#caseDialog.ui3 .ui3-app-view .note-save{color:#101b24!important}
/* Show the complete authored gold frame rather than cropping wide artwork. */
#caseDialog.ui3 .shell-controls button{height:auto;min-height:44px;aspect-ratio:5/2;border:1px solid #c6a25e;border-radius:8px}
#caseDialog.ui3 .shell-controls img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;max-width:none}
@media(max-width:767px){
 #caseDialog.ui3 .shell-controls button{height:auto;min-height:56px;max-height:80px;aspect-ratio:5/3;border-radius:7px}
 #caseDialog.ui3 .shell-controls img{object-fit:contain}
 #caseDialog.ui3.patch1-shell .scene-description-line{white-space:normal;text-overflow:clip;overflow-wrap:anywhere;line-height:1.45}
}
/* Desktop/iPad scene uses the empty tool space until a right-hand tool opens. */
@media(min-width:768px){
 #caseDialog.ui3 .investigation-workspace,#caseDialog.ui3.alpha-no-leads .investigation-workspace{grid-template-columns:minmax(0,100fr) minmax(0,0fr)!important;transition:grid-template-columns .18s ease}
 #caseDialog.ui3.ui3-right-open .investigation-workspace,#caseDialog.ui3.ui3-right-open.alpha-no-leads .investigation-workspace{grid-template-columns:minmax(0,62fr) minmax(0,38fr)!important}
}
@media(prefers-reduced-motion:reduce){#caseDialog.ui3 .investigation-workspace{transition:none}}
/* Known Persons portrait viewer and remembered biography disclosure. */
#caseDialog.ui3 .move-map-surface{cursor:zoom-in}
#caseDialog.ui3 .ui3-map-zoom{position:fixed;inset:0;z-index:160;display:flex;align-items:center;justify-content:center;padding:16px;background:#02070df5;overflow:hidden}
#caseDialog.ui3 .ui3-map-zoom[hidden]{display:none!important}
#caseDialog.ui3.patch1-shell .ui3-map-zoom .move-map-surface{width:100%!important;height:100%!important;max-width:100%;max-height:100%!important;min-height:0;aspect-ratio:auto!important;flex:none;margin:0;border:0;box-shadow:none;cursor:zoom-out}
#caseDialog.ui3 .ui3-map-zoom-close{position:absolute;z-index:3;top:16px;right:16px;width:44px;height:44px;border:1px solid #ceb475;border-radius:50%;background:#0a1a27e8;color:#f4dfb3;font:28px/1 Arial,sans-serif;cursor:pointer}
#caseDialog.ui3 .ui3-expandable-portrait{cursor:zoom-in}
#caseDialog.ui3 .ui3-expandable-portrait:focus-visible{outline:2px solid #d5b675;outline-offset:3px}
#caseDialog.ui3 .ui3-portrait-overlay{position:fixed;inset:0;z-index:150;display:flex;align-items:center;justify-content:center;padding:16px;background:#02070df2;overflow:hidden}
#caseDialog.ui3 .ui3-portrait-overlay[hidden]{display:none!important}
#caseDialog.ui3 .ui3-portrait-frame{position:relative;display:flex;align-items:center;justify-content:center;max-width:100%;max-height:100%}
#caseDialog.ui3 .ui3-portrait-frame>img{display:block;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);width:auto;height:auto;object-fit:contain;cursor:zoom-out;border-radius:8px}
#caseDialog.ui3 .ui3-portrait-collapse{position:absolute;top:8px;right:8px;width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid #ceb475;border-radius:50%;background:#0a1a27e8;color:#f4dfb3;font:700 32px/1 Arial,sans-serif;cursor:pointer;padding:0}
/* Adaptive-width daytime scenes must stay inside their grid row. */
@media(min-width:768px){
 #caseDialog.ui3.patch1-shell:not(.scene-expanded) .active-investigation.responsive-location-art{grid-template-rows:minmax(0,1fr) auto auto auto auto!important;align-content:stretch;overflow:hidden}
 #caseDialog.ui3.patch1-shell:not(.scene-expanded) .active-investigation.responsive-location-art .shell-scene{height:100%!important;max-height:100%;min-height:0;aspect-ratio:auto!important;overflow:hidden}
}

/* Evidence locker: one title, visual records and readable item details. */
#caseDialog.ui3 .case-overview-brief h4{font:700 14px/1.4 Arial,sans-serif;letter-spacing:.09em;color:#d6b879;margin:24px 0 12px}
#caseDialog.ui3 .case-overview-brief p{font-size:16px;line-height:1.65;margin:0 0 16px;overflow-wrap:anywhere}
#caseDialog.ui3 .case-overview-brief .overview-assignment{font-weight:700;color:#f0d29b}
#caseDialog.ui3 .ui3-evidence{background:radial-gradient(ellipse at top,#183042 0,#0a1722 75%)}
#caseDialog.ui3 .ui3-evidence>header{background:#0b1925;letter-spacing:.1em;border-bottom:1px solid #a68146}
#caseDialog.ui3 .ui3-evidence .viewer-content{padding:clamp(14px,2vw,26px);text-align:left;color:#e9edf1}
#caseDialog.ui3 .ui3-evidence-summary{margin:0 0 18px;color:#bfcbd4;font-size:14px}
#caseDialog.ui3 .ui3-evidence-navigation{flex:none;max-height:45%;overflow:auto;background:#0b1925}
#caseDialog.ui3 .ui3-evidence-navigation[hidden]{display:none}
#caseDialog.ui3 .ui3-evidence-group-navigation{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid #77613e;margin:0;padding:10px clamp(14px,2vw,26px)}
#caseDialog.ui3 .ui3-evidence-group-link{flex:1 1 auto;min-width:0;min-height:44px;padding:10px 8px;border:0;border-radius:4px;background:#183042;color:#f3d69c;font:600 14px/1.4 Manrope,sans-serif;cursor:pointer}
#caseDialog.ui3 .ui3-evidence-group-link:focus-visible,#caseDialog.ui3 .ui3-evidence-group:focus-visible{outline:3px solid #edc477;outline-offset:2px}
#caseDialog.ui3 .ui3-evidence-group{min-width:0;margin:0 0 28px;scroll-margin-block-start:12px}
#caseDialog.ui3 .ui3-evidence-group-heading{font:700 18px/1.4 Manrope,sans-serif;letter-spacing:.03em;color:#f3d69c;margin:0 0 16px}
#caseDialog.ui3 .ui3-evidence-group>.viewer-meta{margin:0 0 16px;line-height:1.5;overflow-wrap:anywhere}
#caseDialog.ui3 .ui3-evidence-followup-archive{margin-top:20px}
#caseDialog.ui3 .evidence-pending-people .evidence-personal-lead{margin:0 8px 8px 0;max-width:100%}
#caseDialog.ui3 .ui3-evidence-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:16px}
#caseDialog.ui3 .ui3-evidence-card{display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden;border:1px solid #77613e;border-radius:12px;background:#102331;color:#edf2f6;text-align:left;cursor:pointer;box-shadow:0 5px 18px #0004}
#caseDialog.ui3 .ui3-evidence-card:hover,#caseDialog.ui3 .ui3-evidence-card:focus-visible{border-color:#e4b45f;outline:2px solid #e4b45f;outline-offset:2px}
#caseDialog.ui3 .ui3-evidence-art{display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse,#263944,#0a1721);overflow:hidden;aspect-ratio:1.6}
#caseDialog.ui3 .ui3-evidence .ui3-evidence-marker{position:static!important;display:block;width:100%!important;height:100%!important;max-height:280px;object-fit:contain!important;filter:none!important;opacity:1!important;transform:none!important}
#caseDialog.ui3 .ui3-evidence-card-copy{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:15px;width:100%;box-sizing:border-box}
#caseDialog.ui3 .ui3-evidence-card-copy strong{font-size:17px;line-height:1.35;font-family:inherit;color:#f1f3f4;overflow-wrap:anywhere}
#caseDialog.ui3 .ui3-evidence-status{display:inline-block;border:1px solid #647c91;border-radius:5px;padding:4px 8px;color:#d4e4f4;background:#20394b;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
#caseDialog.ui3 .ui3-evidence-status.is-collected{border-color:#a9894e;color:#f3d69c;background:#3b321f}
#caseDialog.ui3 .ui3-evidence-location{color:#bdcbd5;font-size:14px;line-height:1.4;margin:0}
#caseDialog.ui3 .ui3-evidence-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:24px;margin:18px 0 24px;align-items:start}
#caseDialog.ui3 .ui3-evidence-detail .ui3-evidence-art{border:1px solid #806740;border-radius:12px;aspect-ratio:1.2}
#caseDialog.ui3 .ui3-evidence-copy h2{font-family:inherit;font-size:24px;line-height:1.2;letter-spacing:0;margin:14px 0;color:#f1eee6}
#caseDialog.ui3 .ui3-evidence-description{font-size:16px;line-height:1.65;color:#e0e7ed;margin:16px 0}
#caseDialog.ui3 .ui3-evidence .viewer-back{min-height:44px;color:#e5be79;border:1px solid #82683d;border-radius:6px;background:#142735;padding:8px 12px;font-size:14px}
#caseDialog.ui3 .ui3-evidence .notes-label{color:#d6b879;font-size:14px}
#caseDialog.ui3 .ui3-evidence .notes-editor{background:#081722;color:#edf2f7;border:1px solid #526878;font-size:16px;min-height:100px;width:100%;box-sizing:border-box}
#caseDialog.ui3 .ui3-evidence .note-save{background:#d3ae68;color:#101b23;min-height:44px;border:0;border-radius:6px;padding:10px 16px}
@media(max-width:767px){
 #caseDialog.ui3 .ui3-evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #caseDialog.ui3 .ui3-evidence-card-copy{padding:12px;gap:8px}
 #caseDialog.ui3 .ui3-evidence-card-copy strong{font-size:16px}
 #caseDialog.ui3 .ui3-evidence-detail{grid-template-columns:1fr;gap:18px}
 #caseDialog.ui3 .ui3-evidence-detail .ui3-evidence-art{aspect-ratio:1.6;max-height:230px}
}
@media(max-width:340px){#caseDialog.ui3 .ui3-evidence-grid{grid-template-columns:1fr}}

@media(min-width:768px){
 #caseDialog.ui3 .ui3-evidence>header{flex:none}
 #caseDialog.ui3 .ui3-evidence .viewer-content{min-width:0;padding:14px 18px;overscroll-behavior:contain}
 #caseDialog.ui3 .ui3-evidence .viewer-back{margin-bottom:0}
 #caseDialog.ui3 .ui3-evidence-detail{grid-template-columns:minmax(0,min(30%,260px)) minmax(0,1fr);gap:20px;margin:12px 0 16px}
 #caseDialog.ui3 .ui3-evidence-detail .ui3-evidence-art{aspect-ratio:auto;height:clamp(120px,22dvh,220px);min-width:0}
 #caseDialog.ui3 .ui3-evidence-copy{min-width:0;overflow-wrap:anywhere}
 #caseDialog.ui3 .ui3-evidence-copy h2{margin:10px 0}
 #caseDialog.ui3 .ui3-evidence-description{margin:10px 0}
}


#caseDialog .estate-departure{position:fixed;inset:auto 16px max(20px,env(safe-area-inset-bottom));z-index:10000;max-width:540px;margin:auto;background:#0e2332;color:#eff3f6;border:1px solid #c7a065;border-radius:12px;padding:22px;box-shadow:0 12px 60px #000b;text-align:center}
#caseDialog .estate-departure p{font-size:18px;line-height:1.5}
#caseDialog .estate-departure button{min-height:46px;margin:6px;padding:10px 18px;border:1px solid #bc995b;border-radius:6px;background:#203b4e;color:#f2e2bf;font:inherit}
#caseDialog.sheriff-playing>:not(#sheriffTransition):not(#officeDayClosed){visibility:hidden!important;pointer-events:none!important}
#caseDialog :is(#sheriffTransition,#officeDayClosed){position:fixed;inset:0;width:100%;height:100dvh;z-index:2147483647;background:#050b11;color:white;overflow:hidden}
:is(#sheriffTransition,#officeDayClosed) picture{display:block;width:100%;height:100%}
#caseDialog :is(#sheriffTransition,#officeDayClosed) img{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;animation:sheriff-arrival 4.5s ease-out both;filter:none!important}
:is(#sheriffTransition,#officeDayClosed) .sheriff-caption{position:absolute;inset:auto 0 0;padding:40px 20px max(30px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#050b11ed);text-align:center;text-shadow:0 2px 6px #000}
:is(#sheriffTransition,#officeDayClosed) .sheriff-caption p{font-size:clamp(18px,3vw,28px);letter-spacing:.12em}
:is(#sheriffTransition,#officeDayClosed) .sheriff-caption h2{font-size:clamp(22px,4vw,40px);line-height:1.3;letter-spacing:.08em;color:white}
:is(#sheriffTransition,#officeDayClosed) .sheriff-caption a,:is(#sheriffTransition,#officeDayClosed) .sheriff-caption button{display:inline-block;padding:14px 20px;color:#f3d69c;background:#0e2332;border:1px solid #bc995b;border-radius:6px;font:inherit}
:is(#sheriffTransition,#officeDayClosed) .sheriff-caption .arrival-end{font-size:14px;letter-spacing:.04em;color:#d6e0e8}
@keyframes sheriff-arrival{from{opacity:0;transform:scale(1.04)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){#caseDialog :is(#sheriffTransition,#officeDayClosed) img{animation:none}}

/* Map navigation uses the same logical tablet canvas in narrow windows. */
  #caseDialog.ipad-game.ui3.patch1-shell #closeMove{display:block}
  #caseDialog.ipad-game.ui3.patch1-shell .move-body{display:flex;min-height:0;overflow:hidden;padding:6px 12px}
  #caseDialog.ipad-game.ui3.patch1-shell .move-map-view{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;height:100%;gap:6px}
  #caseDialog.ipad-game.ui3.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.ipad-game.ui3.patch1-shell .move-map-selection{flex:none;width:100%;min-height:62px;flex-direction:row;align-items:center;padding:8px 12px}
  #caseDialog.ipad-game.ui3.patch1-shell .move-map-selection>button{width:auto}
  #caseDialog.ipad-game.ui3.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.ipad-game.ui3.patch1-shell .scene-map-current{flex:1;color:#b8dfff;font:500 10px 'DM Mono',monospace}
  #caseDialog.ipad-game.ui3.patch1-shell .scene-map-footer .move-tabs{flex:none;padding:0;border:0}
  #caseDialog.ipad-game.ui3.patch1-shell .scene-map-footer .move-map-selection{flex:0 0 100%;min-height:0;padding:0;border:0;background:transparent}
  #caseDialog.ipad-game.ui3.patch1-shell .scene-map-footer .move-selection-info small,#caseDialog.ipad-game.ui3.patch1-shell .scene-map-footer .move-selection-info>span{display:none}
  #caseDialog.ipad-game.ui3.patch1-shell .scene-map-footer .move-selection-info strong{font-size:12px}
  #caseDialog.ipad-game.ui3.patch1-shell .scene-map-footer .move-map-selection>button{min-height:30px;padding:4px 10px}
/* A full-frame opening, with deliberately sparse captions. */
#caseDialog .case-cinematic.cinema-v2{position:absolute;inset:0;z-index:300;background:#020509;overflow:hidden}
#caseDialog.cinema-active>.workspace-header{visibility:hidden}
#caseDialog .cinema-v2 .cinematic-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#020509}
#caseDialog .cinema-controls{position:absolute;z-index:7;top:max(16px,env(safe-area-inset-top));right:18px;display:flex;gap:10px}
#caseDialog .cinema-controls button{position:static;min-height:42px;padding:10px 15px;border:1px solid #ccb27666;border-radius:5px;background:#04101abb;color:#e0e8ed;font:500 12px Manrope,sans-serif;letter-spacing:.04em}
#caseDialog .cinema-start{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(#02070c88,#02070cbf),url(/game/assets/cinematic/lake-valen-opening-v2.webp) center/cover;text-align:center;padding:24px}
#caseDialog .cinema-start[hidden]{display:none}
#caseDialog .cinema-start p{font:500 12px 'DM Mono',monospace;letter-spacing:.25em;color:#dbbd7d}
#caseDialog .cinema-start h2{font:500 clamp(30px,5vw,64px)/1.1 Manrope,sans-serif;color:#f1f3f6;margin:12px 0 30px}
#caseDialog .cinema-start button{min-height:48px;padding:12px 40px;border:1px solid #c7a76b;background:#081827bd;color:#f2dfbd;font:600 16px Manrope,sans-serif;cursor:pointer}
#caseDialog .cinema-start small{margin-top:18px;font:13px Manrope,sans-serif;color:#c5ced7}
#caseDialog #officeDayClosed img{filter:brightness(.35)!important}

#caseDialog .interrogation-chooser{max-height:85dvh;overflow:auto}
#caseDialog .interrogation-chooser::backdrop{background:#0009}
#caseDialog .interrogation-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
#caseDialog .interrogation-choices button{margin:5px;overflow-wrap:anywhere}

@media(max-width:767px){#officeDayClosed.press-conference .sheriff-caption{inset:0 0 auto;padding:max(28px,env(safe-area-inset-top)) 20px 40px;background:linear-gradient(#050b11b0,transparent)}}

.final-confirmation{background:#101923;color:#eef1f3;border:1px solid #bd9253;border-radius:12px;padding:24px;max-width:min(90vw,520px)}.final-confirmation button,.case-finale button{background:#ba8c48;color:#10151c;border:0;border-radius:5px;padding:12px 18px;margin:8px;font:600 16px system-ui}.final-confirmation::backdrop,.case-finale::backdrop{background:#000c}.case-finale{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#000;color:white;overflow:hidden}.case-finale-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity .45s;transform:scale(1)}.case-finale-caption{position:absolute;left:5%;right:5%;bottom:100px;padding:18px;background:#050a10d9;text-align:center;font:500 clamp(17px,2.1vw,28px)/1.5 system-ui;transition:opacity .45s}.case-finale-caption:empty{display:none}.case-finale-controls{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));right:5%}.case-finale-image.fountain-zoom{animation:finale-fountain-zoom 4s linear forwards}.case-finale-image.finale-logo{padding:15%;box-sizing:border-box;object-fit:contain}@keyframes finale-fountain-zoom{to{transform:scale(1.06)}}

/* Preserve the square briefing and its baked-in captions at every viewport. */
#caseDialog .study-intro .cinema-start{background:linear-gradient(#02070c99,#02070cdd),url(/game/assets/cinematic/ryan-study-briefing-v1.jpg) center/contain no-repeat #020509}
/* Preserve the full portrait press-conference frame and its baked-in captions. */
#officeDayClosed .office-conference-player{position:absolute;inset:0;z-index:2;background:#000;display:grid;grid-template-rows:minmax(0,1fr) auto}
#officeDayClosed .office-conference-player video{width:100%;height:100%;min-height:0;object-fit:contain;background:#000}
#officeDayClosed .office-conference-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:center;padding:10px 16px max(10px,env(safe-area-inset-bottom));background:#07121d;color:#fff}
#officeDayClosed .office-conference-controls p{margin:0;font-size:14px}
#officeDayClosed .office-conference-controls button{min-height:44px;padding:10px 16px;background:#142638;color:#fff;border:1px solid #b99a60;border-radius:4px;font:inherit;cursor:pointer}
#officeDayClosed [hidden]{display:none!important}
/* The submission app has one page scroller, compact answers and a visible primary action. */
#caseDialog.ui3 .ui3-app-view:has(.accusation-page){overflow-y:auto;overflow-x:hidden;scroll-padding-block:14px;overscroll-behavior:contain}
#caseDialog.ui3 .ui3-app-view .accusation-page{height:auto;max-height:none;min-height:0;overflow:visible;padding:14px;container-type:inline-size}
#caseDialog.ui3 .accusation-intro{margin:0 0 14px;font:14px/1.45 Arial,sans-serif;color:#cedee8}
#caseDialog.ui3 .accusation-form{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0;max-height:none;overflow:visible}
#caseDialog.ui3 .accusation-form .case-question{min-width:0;gap:5px;padding:10px;background:#112a3b;border:1px solid #3a5365;border-radius:8px}
#caseDialog.ui3 .accusation-form .case-question strong{font:700 12px/1.3 'DM Mono',monospace;color:#e0bd78;text-transform:uppercase;letter-spacing:.06em}
#caseDialog.ui3 .accusation-form .accusation-hint{font:13px/1.35 Arial,sans-serif;color:#bdcfda}
#caseDialog.ui3 .accusation-form :is(select,textarea){box-sizing:border-box;width:100%;min-width:0;border:1px solid #668195;border-radius:5px;background:#091d2b;color:#f0f5f8;font:16px/1.4 Arial,sans-serif;padding:9px 10px}
#caseDialog.ui3 .accusation-form select{min-height:44px;white-space:normal}
#caseDialog.ui3 .accusation-form textarea{min-height:62px;max-height:180px;resize:vertical}
#caseDialog.ui3 .accusation-form :is(select,textarea):focus-visible{outline:2px solid #e0bd78;outline-offset:2px}
#caseDialog.ui3 .accusation-form [aria-invalid=true]{border:2px solid #efa89c}
#caseDialog.ui3 .accusation-form .accusation-field-error{font:13px/1.4 Arial,sans-serif;color:#ffd2c9}
#caseDialog.ui3 .accusation-form .accusation-legacy{margin:0;font:13px/1.4 Arial,sans-serif;overflow-wrap:anywhere;color:#e2c28b}
#caseDialog.ui3 .accusation-attachments{display:grid;gap:5px;margin-top:5px;min-width:0}
#caseDialog.ui3 .accusation-attachment-label{font:12px/1.4 Arial,sans-serif;color:#c0d2df}
#caseDialog.ui3 .accusation-chips{display:flex;flex-wrap:wrap;gap:5px;min-width:0}
#caseDialog.ui3 .ui3-app-view .accusation-chip{min-height:36px;max-width:100%;padding:5px 8px;font:12px/1.35 Arial,sans-serif;text-align:left;overflow-wrap:anywhere}
#caseDialog.ui3 .accusation-actions{display:flex;flex-wrap:wrap;gap:8px;grid-column:1/-1;padding:5px 0 12px}
#caseDialog.ui3 .ui3-app-view .accusation-form .case-accuse{flex:1 1 190px;min-height:46px;margin:0;background:#d2ad68;border-color:#ebcb90;color:#10202b!important;font:700 14px/1.4 Arial,sans-serif;cursor:pointer}
#caseDialog.ui3 .ui3-app-view .accusation-form .case-accuse:disabled{background:#2a4151;border-color:#5b7180;color:#bccad2!important;cursor:not-allowed}
#caseDialog.ui3 .ui3-app-view .accusation-save{min-height:46px;font:14px/1.4 Arial,sans-serif}
#caseDialog.ui3 .accusation-readiness,#caseDialog.ui3 .accusation-status{grid-column:1/-1;margin:0;font:13px/1.5 Arial,sans-serif;overflow-wrap:anywhere}
#caseDialog.ui3 .accusation-status{padding:10px;background:#162f40;border-left:3px solid #d2ad68}
#caseDialog.ui3 .accusation-form [hidden]{display:none!important}
@container (min-width:560px){#caseDialog.ui3 .accusation-form{grid-template-columns:repeat(2,minmax(0,1fr))}#caseDialog.ui3 .accusation-form :is(.accusation-who,.accusation-where,.accusation-how){grid-column:1/-1}}

/* Zoom is presentation-only and available inside expanded scenes/maps. */
.expanded-zoom-viewport{position:relative;overflow:hidden;touch-action:none;overscroll-behavior:contain;user-select:none;min-width:0;min-height:0}
.expanded-zoom-content{transform-origin:center center;will-change:transform;user-select:none;-webkit-user-drag:none}
.expanded-zoom-viewport[data-zoomed="true"],#caseDialog.ui3.patch1-shell .expanded-zoom-viewport[data-zoomed="true"] .move-map-surface{cursor:grab}
.expanded-zoom-viewport[data-dragging="true"],#caseDialog.ui3.patch1-shell .expanded-zoom-viewport[data-dragging="true"] .move-map-surface{cursor:grabbing}
.expanded-zoom-controls{position:absolute;z-index:4;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:6px;border:1px solid #ceb475;border-radius:12px;background:#0a1a27f5;color:#f4dfb3;box-shadow:0 4px 24px #0008;white-space:nowrap}
.expanded-zoom-controls button{display:grid;place-items:center;min-width:44px;height:44px;padding:0 10px;border:1px solid #ceb47577;border-radius:7px;background:#daba7930;color:#f4dfb3;font:600 20px/1 Arial,sans-serif;cursor:pointer;touch-action:manipulation}
.expanded-zoom-controls button:last-child{font-size:15px}
.expanded-zoom-controls button:disabled{opacity:.4;cursor:default}
.expanded-zoom-controls output{min-width:44px;text-align:center;font:13px/1.2 Arial,sans-serif}
.expanded-zoom-controls button:focus-visible,.expanded-zoom-viewport:focus-visible{outline:2px solid #f4dfb3;outline-offset:2px}
#caseDialog.ui3 .ui3-scene-zoom-frame{width:100%;height:100%;padding:48px 0 76px}
#caseDialog.ui3 .ui3-scene-zoom-viewport{width:100%;height:100%}
#caseDialog.ui3 .ui3-scene-zoom-viewport>img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}
#caseDialog.ui3 .ui3-scene-zoom-frame .ui3-portrait-collapse{z-index:4}
#caseDialog.ui3 .ui3-map-zoom{padding:64px 16px 92px}
#caseDialog.ui3 .ui3-map-zoom-viewport{width:100%;height:100%}
#caseDialog.ui3.patch1-shell .ui3-map-zoom .move-map-surface{cursor:default}

/* Normal scene view: caption-left, zoom-right, above People Here. */
#caseDialog.ui3.patch1-shell .scene-caption-strip{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;padding:4px 10px;overflow:visible;white-space:normal}
#caseDialog.ui3.patch1-shell .scene-caption-strip #shellSceneDescription{flex:1 1 240px;min-width:0;margin:0;overflow-wrap:anywhere}
#caseDialog.ui3 .inline-scene-zoom-controls{position:static;transform:none;flex:0 0 auto;margin-left:auto;padding:0;gap:4px;border:0;box-shadow:none;background:transparent}
#caseDialog.ui3 .inline-scene-zoom-controls button{min-width:44px;height:44px;padding:0 8px;font-size:19px}
#caseDialog.ui3 .inline-scene-zoom-controls button:last-child{font-size:13px}
#caseDialog.ui3 .inline-scene-zoom-controls output{min-width:40px;font-size:12px}
#caseDialog.ui3 .inline-scene-zoom-viewport{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;touch-action:none}
#caseDialog.ui3 .inline-scene-zoom-content{position:relative;width:100%;height:100%}
#caseDialog.ui3.patch1-shell .inline-scene-zoom-viewport #shellSceneImage{touch-action:none}
#caseDialog.ui3 .inline-scene-zoom-viewport[data-zoomed="true"] #shellSceneImage{cursor:grab}
#caseDialog.ui3 .inline-scene-zoom-viewport[data-dragging="true"] #shellSceneImage{cursor:grabbing}
@media(max-width:767px){#caseDialog.ui3.patch1-shell .scene-caption-strip{gap:2px 8px;padding:4px 8px}#caseDialog.ui3.patch1-shell .scene-caption-strip #shellSceneDescription{flex-basis:180px;font-size:12px}}

/* Structured Case Theory uses the same Known Persons and Evidence surfaces. */
.structured-theory .case-question h3{margin:0;font-size:16px;color:#edd7ac}
.structured-theory .case-question{display:block}
.theory-chosen-card{display:flex;align-items:center;gap:10px;min-width:0}
.theory-chosen-card img{width:68px;height:72px;object-fit:cover;border-radius:6px;flex:none}
.theory-chosen-card strong{font-size:13px;overflow-wrap:anywhere}
.theory-choose{margin-top:12px;width:100%;min-height:42px}
.theory-route{display:grid;gap:10px}.theory-route-slot,.theory-route-fixed{border:1px solid #586571;border-radius:8px;padding:10px;background:#14222e}
.theory-route-slot summary{cursor:pointer;list-style:none}.theory-route-slot summary small,.theory-route-fixed small{display:block;color:#c9b48b;margin-bottom:6px}
.theory-location-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;max-height:340px;overflow:auto}
.theory-location-choice{padding:8px;min-width:0;background:#1f3241;border:2px solid transparent;border-radius:8px;color:#e7eced}
.theory-location-choice .theory-chosen-card{flex-direction:column}.theory-location-choice img{width:100%;height:82px}
.theory-location-choice[aria-pressed=true],.viewer-record[aria-pressed=true],.ui3-evidence-card[aria-pressed=true]{border:2px solid #d2ad68;box-shadow:inset 0 0 0 1px #d2ad68}
.viewer-record[aria-pressed=true]::after,.ui3-evidence-card[aria-pressed=true]::after{content:'✓';color:#efd18a;font-weight:bold}
.theory-evidence-selected{display:grid;gap:8px}.theory-evidence-count{color:#ecd196}.theory-legacy{padding:12px;border:1px solid #526474;border-radius:8px}.theory-legacy p{white-space:pre-wrap;overflow-wrap:anywhere}
.theory-picker-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;position:sticky;top:0;z-index:3;background:#10202e;border-bottom:1px solid #d2ad68}
.theory-picker-controls strong{flex:1 1 100%;color:#efd18a}.theory-picker-controls button{min-height:40px}.theory-evidence-view{min-height:40px;align-self:center}.ui3-evidence-card:disabled{opacity:.55;cursor:not-allowed}
.structured-theory select{width:100%;margin-top:8px;min-height:42px}.structured-theory button:focus-visible,.theory-route-slot summary:focus-visible{outline:3px solid #efd18a;outline-offset:3px}

/* Subtle scene controls: compact visual treatment, unchanged 44px touch targets. */
#caseDialog.ui3 .inline-scene-zoom-controls{gap:0;color:#c7b586}
#caseDialog.ui3 .inline-scene-zoom-controls button{position:relative;isolation:isolate;min-width:44px;height:44px;padding:0 5px;border:0;background:transparent;color:#d9c18f;font-size:16px;font-weight:500}
#caseDialog.ui3 .inline-scene-zoom-controls button:before{content:'';position:absolute;z-index:-1;inset:8px 7px;border:1px solid #b79b663b;border-radius:5px;background:#daba7910;pointer-events:none}
#caseDialog.ui3 .inline-scene-zoom-controls button:last-child{font-size:11px;min-width:48px}
#caseDialog.ui3 .inline-scene-zoom-controls output{min-width:33px;font-size:10px;color:#bda97d}
#caseDialog.ui3 .inline-scene-zoom-controls button:hover:before{background:#daba792a;border-color:#b79b6670}
#caseDialog.ui3 .inline-scene-zoom-viewport[data-pannable="true"] #shellSceneImage{cursor:grab}
#caseDialog.ui3 .inline-scene-zoom-viewport[data-dragging="true"] #shellSceneImage{cursor:grabbing}
#caseDialog.ui3 .shell-header-identity b{white-space:normal;overflow-wrap:anywhere;line-height:1.2}

/* Phone Investigate: translucent text blocks sit over the gently dimmed real scene.
   The open panel still intercepts input, so scrolling cannot activate evidence. */
@media(max-width:767px){
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .shell-tool-panel.investigate-open{background:rgba(2,8,17,.12);backdrop-filter:none;-webkit-backdrop-filter:none}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .investigate-open>.shell-tool-content,
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .investigate-open #shellToolBody,
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .investigate-open .investigate-history{background:transparent}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .investigate-open .shell-tool-content>header{flex:none;min-height:44px;padding:max(4px,env(safe-area-inset-top)) 12px 4px;background:rgba(7,21,33,.68);text-shadow:0 1px 3px #000}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .investigate-open .shell-tool-content>header button{min-width:44px;min-height:44px}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .investigate-open .action-form{background:rgba(7,21,33,.4);box-shadow:none}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .investigate-open .action-form input{background:rgba(5,17,27,.64);color:#f2f4f5;text-shadow:0 1px 2px #000}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .investigate-open .action-form input::placeholder{color:#d5dce0;opacity:1}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .investigate-open .investigate-context{min-height:0;max-height:none;padding:8px 12px;background:transparent;color:#fff;font-size:15px;font-weight:500;line-height:1.6;text-shadow:-1px -1px 1px #071018,1px -1px 1px #071018,-1px 1px 1px #071018,1px 1px 1px #071018,0 2px 4px #000,0 0 8px #000}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .investigate-open .investigate-context>.ui3-examine-scene{display:none}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .investigate-open .investigate-context>strong{align-self:flex-start;margin:0;padding:4px 8px;border:0;border-radius:6px;background:rgba(4,12,20,.6);color:inherit;text-shadow:inherit}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .investigate-open .investigate-context>p{padding:8px 10px;border-radius:6px;background:rgba(4,12,20,.6);color:inherit;font-size:15px;font-weight:500;line-height:1.6;text-shadow:inherit}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .investigate-open .scene-tap-return{background:rgba(4,12,20,.6);box-shadow:none;text-shadow:inherit}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .investigate-open .investigate-history{padding:10px 12px}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .investigate-open .investigate-entry{width:fit-content;max-width:100%;box-sizing:border-box;padding:8px 10px;background:rgba(4,12,20,.6);color:#fff;font-size:15px;font-weight:500;line-height:1.6;border:0;border-radius:6px;box-shadow:none;overflow-wrap:anywhere;text-shadow:-1px -1px 1px #071018,1px -1px 1px #071018,-1px 1px 1px #071018,1px 1px 1px #071018,0 2px 4px #000,0 0 8px #000}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .investigate-open .investigate-entry.player{background:rgba(4,12,20,.6);color:#ffe1a3;font-weight:700}
}
/* Evidence follow-up controls remain text-first and usable on narrow screens. */
#caseDialog.ui3 .evidence-followup{margin-top:18px;padding:14px;border:1px solid #74623d;border-radius:9px;background:#10202c}
#caseDialog.ui3 .evidence-followup h3{margin:0 0 8px;color:#ead4a1;font-size:15px}
#caseDialog.ui3 .evidence-followup p{font-size:14px;line-height:1.55;overflow-wrap:anywhere}
#caseDialog.ui3 .evidence-followup button,#caseDialog.ui3 .study-document-actions button{min-height:44px;padding:10px 14px;margin:4px 8px 4px 0;white-space:normal;border:1px solid #a88b54;border-radius:6px;background:#263748;color:#fff;text-align:left;font:inherit;cursor:pointer}
#caseDialog.ui3 .evidence-followup button:disabled,#caseDialog.ui3 .study-document-actions button:disabled{opacity:.65;cursor:default}
#caseDialog.ui3 .evidence-followup button:focus-visible,#caseDialog.ui3 .study-document-actions button:focus-visible{outline:3px solid #f2d28b;outline-offset:3px}
#caseDialog.ui3 .evidence-action-reason{color:#d1d9e0;margin:4px 0 10px}
#caseDialog.ui3 .evidence-action-feedback:empty{display:none}
#caseDialog.ui3 .evidence-action-feedback{white-space:pre-wrap;color:#f0e0b9;max-height:150px;overflow-y:auto}
#caseDialog.ui3 .evidence-card-followup{display:block;font-size:12px;color:#e7ce95;margin-top:6px}
#caseDialog.ui3 .study-document-actions{flex:1 0 100%;min-width:0;font-size:13px}
#caseDialog.ui3 .study-document-actions[hidden]{display:none!important}

/* Day 1 atmosphere shares the exact image box and zoom transform. Markers and
   investigation remain above this inert, transparent canvas. */
#caseDialog.ui3 .study-atmosphere{pointer-events:none!important;display:block;user-select:none;z-index:1}
#caseDialog.ui3 .study-atmosphere[hidden]{display:none!important}
#caseDialog.ui3 .study-expanded-scene-content{position:relative;width:100%;height:100%}
#caseDialog.ui3 .study-expanded-scene-content>img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}
@media(prefers-reduced-motion:reduce){html:not([data-scene-animations="on"]) #caseDialog.ui3 .study-atmosphere{display:none!important}}

/* A local presentation preference, separate from case progress. */
#caseDialog .scene-animation-setting{margin:12px 16px;flex:0 0 auto;padding:12px 0;border-block:1px solid #ffffff26;text-align:left}
#caseDialog .scene-animation-setting label{display:block;margin-bottom:7px;font-size:14px;color:#e9edf1}
#caseDialog .scene-animation-setting select{width:100%;min-height:44px;padding:8px 10px;border:1px solid #a28c5f;border-radius:5px;background:#10202e;color:#f4f2ea;font:inherit}
#caseDialog .scene-animation-setting p{margin:8px 0 0;font-size:12px;line-height:1.5;color:#c4d2df}
#caseDialog .scene-animation-setting button[hidden]{display:none!important}

#caseDialog .options-shell{overflow-y:auto}

/* The canonical image remains the accessible input/inspection surface; WebGL
   supplies pixels without owning a competing pointer gesture stream. */
#caseDialog.ui3 .study-panorama-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#caseDialog.ui3 .study-panorama-canvas[hidden]{display:none}
#caseDialog.ui3 #shellSceneImage.study-panorama-source{opacity:0;object-fit:fill}
#caseDialog.ui3 .study-room-controls{display:flex;gap:8px;flex-wrap:wrap;padding:6px 0}
#caseDialog.ui3 .study-room-controls[hidden]{display:none!important}
#caseDialog.ui3 .study-room-controls button{min-height:44px}

#caseDialog.ui3 .study-panorama-loading{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:12px;background:#0b111a;color:#f0e4c7;pointer-events:none}
#caseDialog.ui3 .study-panorama-loading[hidden]{display:none}

/* Approved reverse-view crop is always retained, including portrait phones. */
#caseDialog.ui3.patch1-shell .shell-scene #shellSceneImage.study-desk-source{object-fit:contain!important;object-position:center center!important}

#caseDialog.ui3 .scene-caption-strip .study-room-controls{flex-basis:100%;justify-content:center}

/* Evidence reveal audio is explicit opt-in and presentation-only. */
#caseDialog .evidence-sound-setting button{width:100%;min-height:44px;padding:8px 10px;border:1px solid #a28c5f;border-radius:5px;background:#10202e;color:#f4f2ea;font:inherit;text-align:left;cursor:pointer}
#caseDialog .evidence-sound-setting button:focus-visible{outline:3px solid #fff0bb;outline-offset:2px}
#caseDialog .evidence-sound-setting button[aria-pressed="true"]{border-color:#f4c86a;color:#f4c86a}
/* Dispatch is a separate phone app; progress is derived, never a new gate. */
#caseDialog.ui3 .dispatch-tabs{display:flex;gap:6px;flex:none;padding:0 0 10px}
#caseDialog.ui3 .dispatch-tabs button{flex:1;min-height:44px;border:1px solid #698396;border-radius:8px;background:#132f43;color:#edf5fa;font-size:12px}
#caseDialog.ui3 .dispatch-tabs button[aria-pressed=true]{background:#31536a;border-color:#adc8d9}
#caseDialog.ui3 .dispatch-objectives{flex:1;min-height:0;overflow:auto;padding:2px 3px 14px;overscroll-behavior:contain}
#caseDialog.ui3 .dispatch-objectives h2{font-size:18px;margin:4px 0 14px}
#caseDialog.ui3 .dispatch-objectives h3{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#b5cbd9;margin:16px 0 8px}
#caseDialog.ui3 .dispatch-objective{padding:12px;margin:0 0 9px;border:1px solid #496477;border-radius:9px;background:#142b3c}
#caseDialog.ui3 .dispatch-objective strong{font-size:14px;line-height:1.4}
#caseDialog.ui3 .dispatch-objective p,#caseDialog.ui3 .dispatch-objectives>p{font:13px/1.5 Arial,sans-serif;color:#d3e0e8;margin:7px 0 0}
#caseDialog.ui3 .dispatch-objective.is-complete{border-color:#539875;background:#163e30}
#caseDialog.ui3 .dispatch-objective.is-complete strong{color:#a4e7be}
#caseDialog.ui3 .dispatch-completed summary{cursor:pointer;min-height:44px;padding:12px 0;color:#a4e7be;font-weight:700}
#caseDialog.ui3 .ui3-add-contact{display:block;width:100%;min-height:44px;padding:12px;margin:0 0 8px;border:1px solid #8f794e;border-radius:8px;background:#173247;color:#f2e5c5;font:600 14px/1.4 Arial,sans-serif;text-align:left;white-space:normal}

#caseDialog.ui3 .dispatch-tabs button{min-width:0;white-space:normal;overflow-wrap:normal;line-height:1.3;padding:8px 5px}

#caseDialog.ui3 .dispatch-objective small{display:block;margin-bottom:5px;line-height:1.4}

/* Keep desktop/fallback and expanded views complete. The normal portrait office
   fills its scene frame; native image coordinates and 100% panning stay intact. */
#caseDialog.ui3.patch1-shell .shell-scene #shellSceneImage.detective-desk-source{object-fit:contain!important;object-position:center center!important}
/* A scene-sized query avoids cropping the desk in short investigation frames.
   This viewport is already absolute/inset:0 with explicit 100% dimensions. */
#caseDialog.ui3 .inline-scene-zoom-viewport:has(#shellSceneImage.detective-desk-source[src*="-mobile-v1.png"]){container-type:size;container-name:office-scene-fit}
@container office-scene-fit (min-aspect-ratio:941/1672) and (max-aspect-ratio:28/25){
 #caseDialog.ui3.patch1-shell:not(.scene-expanded) .shell-scene #shellSceneImage.detective-desk-source[src*="-mobile-v1.png"]{object-fit:cover!important;object-position:50% 55%!important}
}
#caseDialog.ui3 .office-desk-stand{min-width:44px;min-height:44px;padding:8px 14px;border:1px solid #a28c5f;border-radius:6px;background:#10202e;color:#f4f2ea;font:inherit}
#caseDialog.ui3 .office-desk-stand[hidden]{display:none!important}

/* The detective's computer is a full desktop workspace, not handset chrome. */
#caseDialog.ui3 .office-computer:not([open]){display:none}
#caseDialog.ui3 .office-computer[open]{position:fixed;inset:0;display:grid;grid-template-columns:200px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);width:min(1280px,calc(100vw - 32px));height:min(900px,calc(100dvh - 32px));max-width:none;max-height:none;box-sizing:border-box;margin:auto;padding:0;border:1px solid #587084;border-radius:8px;background:#091723;color:#eff4f5;font:14px/1.5 Manrope,sans-serif;box-shadow:0 20px 80px #000b;overflow:hidden}
#caseDialog.ui3 .office-computer::backdrop{background:#02070ccf}
#caseDialog.ui3 .office-computer *{box-sizing:border-box}
#caseDialog.ui3 .office-computer-header{grid-column:1/-1;display:flex;gap:24px;align-items:center;padding:12px 20px;border-bottom:1px solid #587084;background:linear-gradient(120deg,#101e2d,#06111b)}
#caseDialog.ui3 .office-computer-brand{display:flex;gap:12px;align-items:center;min-width:0}
#caseDialog.ui3 .office-computer-brand img{width:42px;height:50px;object-fit:contain}
#caseDialog.ui3 .office-computer-brand strong{font:700 19px/1.2 Georgia,serif;color:#f4e9d1}
#caseDialog.ui3 .office-computer-header h2{margin:0;padding-left:24px;border-left:1px solid #587084;font:15px/1.3 Georgia,serif;letter-spacing:.12em}
#caseDialog.ui3 .office-computer button{min-width:44px;min-height:44px;padding:9px 14px;border:1px solid #bca575;border-radius:3px;background:#0b1a27;color:#f5e6c8;font:inherit;cursor:pointer;white-space:normal}
#caseDialog.ui3 .office-computer button:disabled{opacity:.5;cursor:default}
#caseDialog.ui3 .office-computer button:focus-visible,#caseDialog.ui3 .office-computer input:focus-visible{outline:3px solid #fff0b4;outline-offset:3px}
#caseDialog.ui3 .office-computer .office-computer-close{margin-left:auto;font-size:12px;flex-shrink:0}
#caseDialog.ui3 .office-computer-sidebar{display:flex;flex-direction:column;gap:4px;padding-top:16px;border-right:1px solid #425c71;min-height:0;overflow:auto;background:linear-gradient(120deg,#102030,#081522)}
#caseDialog.ui3 .office-computer-sidebar button{border:0;border-left:5px solid transparent;border-radius:0;background:transparent;text-align:left;color:#b9cddc;padding:14px 16px;font:17px/1.25 Georgia,serif}
#caseDialog.ui3 .office-computer-sidebar button[aria-current=page]{border-left-color:#d4bc82;background:#213345;color:#fff2d2}
#caseDialog.ui3 .office-computer-sidebar .office-computer-return{margin-top:auto;border-top:1px solid #425c71}
#caseDialog.ui3 .office-computer-main{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px 26px;scrollbar-width:thin}
#caseDialog.ui3 .office-computer h3{margin:0;font:700 25px/1.2 Georgia,serif;color:#f4efdf}
#caseDialog.ui3 .office-computer h4{font:700 20px/1.3 Georgia,serif;margin:14px 0 8px}
#caseDialog.ui3 .office-computer p{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 14px;color:#c0d3e2}
#caseDialog.ui3 .office-computer .office-computer-page-title{font-size:32px}
#caseDialog.ui3 .office-computer .office-computer-subtitle{margin:6px 0 18px}
#caseDialog.ui3 .office-computer-ready,#caseDialog.ui3 .office-computer-review{border:1px solid #527086;border-radius:4px;overflow:hidden;margin-bottom:18px}
#caseDialog.ui3 .office-computer-section-heading,#caseDialog.ui3 .office-computer-review>h3{padding:14px 18px;background:#122331}
#caseDialog.ui3 .office-computer-section-heading p{margin:5px 0 0}
#caseDialog.ui3 .office-computer-submit-card{display:grid;grid-template-columns:44px 50px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:72px;padding:10px 16px;border-top:1px solid #30495d;cursor:pointer}
#caseDialog.ui3 .office-computer-submit-card input{width:28px;height:28px;accent-color:#d4bc82;cursor:pointer}
#caseDialog.ui3 .office-computer-submit-card>span{display:flex;flex-direction:column;gap:4px;min-width:0}
#caseDialog.ui3 .office-computer-submit-card strong{font:700 17px/1.3 Georgia,serif;overflow-wrap:anywhere}
#caseDialog.ui3 .office-computer-submit-card small{color:#a9c0d2;font-size:12px}
#caseDialog.ui3 .office-computer .office-computer-ready-status{font:700 15px Georgia,serif;color:#e9c878}
#caseDialog.ui3 .office-computer-art{width:44px;height:48px;object-fit:contain;background:#08131d;border-radius:3px}
#caseDialog.ui3 .office-computer-submit-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 18px;border-top:1px solid #527086}
#caseDialog.ui3 .office-computer .office-computer-primary{min-width:200px;background:linear-gradient(#edcd89,#c79a4b);border-color:#f3dba2;color:#17140d;font-weight:800}
#caseDialog.ui3 .office-computer .office-computer-note{font-size:12px;margin:0;padding:6px 16px 12px;color:#a8becf}
#caseDialog.ui3 .office-computer .office-computer-empty{padding:16px;margin:0}
#caseDialog.ui3 .office-computer .office-computer-record{display:grid;grid-template-columns:42px minmax(0,1.8fr) minmax(100px,1fr) 80px;align-items:center;gap:12px;width:100%;min-height:64px;border:0;border-top:1px solid #30495d;border-radius:0;text-align:left;background:#0b1925;color:#eae9e0}
#caseDialog.ui3 .office-computer-record strong{font:16px/1.3 Georgia,serif;overflow-wrap:anywhere}
#caseDialog.ui3 .office-computer-record-status{color:#b7cddd;font-size:12px}
#caseDialog.ui3 .office-computer-record-open{display:block;border:1px solid #bca575;text-align:center;padding:6px;border-radius:3px;color:#f1dba4}
#caseDialog.ui3 .office-computer-detail{display:grid;grid-template-columns:minmax(120px,30%) minmax(0,1fr);gap:22px;margin-top:20px}
#caseDialog.ui3 .office-computer-detail>.office-computer-art{width:100%;height:auto;max-height:320px;min-height:140px}
#caseDialog.ui3 .office-computer-detail button{margin:6px 8px 6px 0}
#caseDialog.ui3 .office-computer-feedback{border-left:3px solid #d4bc82;background:#203444;padding:10px 14px;margin:0 0 16px;color:#f3e6c8}
#caseDialog.ui3 .office-computer-feedback:empty{display:none}
#caseDialog.ui3 .office-computer-saved-note{padding:14px;border:1px solid #425c71;border-radius:3px}
@media(max-width:767px){
 #caseDialog.ui3 .office-computer[open]{width:100vw;height:100dvh;border-radius:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
 #caseDialog.ui3 .office-computer-header{gap:8px;padding:8px 12px;flex-wrap:wrap}
 #caseDialog.ui3 .office-computer-brand{flex:1;gap:8px}
 #caseDialog.ui3 .office-computer-brand img{width:28px;height:36px}
 #caseDialog.ui3 .office-computer-brand strong{font-size:14px}
 #caseDialog.ui3 .office-computer-header h2{order:3;flex-basis:100%;border:0;padding:0;font-size:11px;letter-spacing:.06em}
 #caseDialog.ui3 .office-computer .office-computer-close{font-size:11px;padding:7px 9px}
 #caseDialog.ui3 .office-computer-sidebar{flex-direction:row;gap:0;padding:0;border-right:0;border-bottom:1px solid #425c71;overflow:auto}
 #caseDialog.ui3 .office-computer-sidebar button{font-size:12px;padding:8px;flex:1;white-space:nowrap;border-left:0;border-bottom:3px solid transparent}
 #caseDialog.ui3 .office-computer-sidebar button[aria-current=page]{border-bottom-color:#d4bc82}
 #caseDialog.ui3 .office-computer-sidebar .office-computer-return{display:none}
 #caseDialog.ui3 .office-computer-main{padding:14px 10px}
 #caseDialog.ui3 .office-computer .office-computer-page-title{font-size:27px}
 #caseDialog.ui3 .office-computer h3{font-size:23px}
 #caseDialog.ui3 .office-computer-section-heading,#caseDialog.ui3 .office-computer-review>h3{padding:12px}
 #caseDialog.ui3 .office-computer-submit-card{grid-template-columns:32px 40px minmax(0,1fr);gap:8px;padding:10px}
 #caseDialog.ui3 .office-computer-submit-card strong{font-size:15px}
 #caseDialog.ui3 .office-computer .office-computer-ready-status{display:none}
 #caseDialog.ui3 .office-computer-submit-bar{padding:10px;font-size:12px}
 #caseDialog.ui3 .office-computer .office-computer-primary{min-width:0;padding:10px 14px}
 #caseDialog.ui3 .office-computer .office-computer-record{grid-template-columns:36px minmax(0,1fr) 60px;gap:8px;padding:10px}
 #caseDialog.ui3 .office-computer-record .office-computer-art{grid-row:1/3;width:32px;height:40px}
 #caseDialog.ui3 .office-computer-record-status{grid-column:2;grid-row:2}
 #caseDialog.ui3 .office-computer-record-open{grid-column:3;grid-row:1/3;font-size:12px}
 #caseDialog.ui3 .office-computer-record strong{font-size:15px}
 #caseDialog.ui3 .office-computer-detail{grid-template-columns:minmax(0,1fr)}
 #caseDialog.ui3 .office-computer-detail>.office-computer-art{height:160px;min-height:0}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip[data-examination-dock=true]>.office-desk-stand{grid-column:1/-1;grid-row:3;justify-self:end}
}
@media(max-width:360px){#caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip[data-examination-dock=true]>.office-desk-stand{grid-row:4}}

/* Desktop, tablet and expanded station views retain the complete landscape scene. */
#caseDialog.ui3.patch1-shell .shell-scene #shellSceneImage.station-full-scene{object-fit:contain!important;object-position:center center!important}
/* Match the full-height phone scene used by the other rooms. The existing inline
   zoom reveals the full source at 100% by dragging; no source pixels are removed. */
@media(max-width:767px){
 #caseDialog.ui3.patch1-shell:not(.ipad-game):not(.scene-expanded) .shell-scene #shellSceneImage.station-full-scene{object-fit:cover!important;object-position:50% 50%!important}
 /* Keep the chairs and side table in the first view, rather than the empty wall. */
 #caseDialog.ui3.patch1-shell:not(.ipad-game):not(.scene-expanded) .shell-scene #shellSceneImage.station-full-scene[src="/api/media/station-private-waiting-v1.jpeg"]{object-position:65% 50%!important}
}

/* Mobile maps keep pinch/drag, without the floating zoom toolbar. */
#caseDialog.ui3 .ui3-map-zoom .expanded-zoom-controls[hidden]{display:none!important}
#caseDialog.ui3 .ui3-map-zoom.mobile-map-no-toolbar{padding-bottom:max(16px,env(safe-area-inset-bottom))}

/* iPad keyboard: retain readable input size even in a scaled tablet canvas.
   Safari must not zoom the page to focus a visually sub-16px text field. */
#caseDialog.ipad-game.ui3.patch1-shell :is(input,textarea,[contenteditable=true]){
 font-size:max(16px,calc(16px / var(--tablet-scale,1)))!important;
}
/* Readable authored facts accompany earned document art; never ambient scenes. */
#caseDialog.ui3 .evidence-document-text{box-sizing:border-box;width:100%;padding:14px 18px;background:#f3eee2;color:#202b32;border:1px solid #a89c82;border-radius:6px;text-align:left;font-size:14px;line-height:1.5}
#caseDialog.ui3 .evidence-document-text h3{margin:0 0 8px;font-size:17px;color:inherit}
#caseDialog.ui3 .evidence-document-text p{margin:6px 0;color:inherit}
#caseDialog.ui3 .evidence-document-text .evidence-document-entry{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums}
#caseDialog.ui3 .ui3-portrait-frame.evidence-document-expanded{flex-direction:column;gap:10px;max-height:calc(100dvh - 32px);overflow:auto}
#caseDialog.ui3 .ui3-portrait-frame.evidence-document-expanded>img{max-height:65dvh;min-height:0;flex-shrink:1}
#caseDialog.ui3 .evidence-document-expanded .evidence-document-text{width:min(680px,calc(100vw - 32px));flex-shrink:0}
/* Evidence review owns the surface until closed; background photo controls
   must not cover canonical art or its readable document details. */
#caseDialog.ui3:has(.ui3-evidence:not([hidden])) .inline-scene-zoom-controls,
#caseDialog.ui3:has(.ui3-evidence:not([hidden])) .scene-tap-toolbar,
#caseDialog.ui3:has(.ui3-evidence:not([hidden])) .scene-tap-card{display:none!important}
@media(max-width:767px){
 #caseDialog.ui3:has(.ui3-evidence:not([hidden]))>.workspace-header,
 #caseDialog.ui3:has(.ui3-evidence:not([hidden]))>.case-status-bar{visibility:hidden;pointer-events:none}
}

/* In-world office login: only the reviewed monitor face, inside scene zoom. */
.office-login-display{position:absolute;overflow:hidden;pointer-events:none;z-index:1}
.office-login-display[hidden]{display:none!important}
.office-login-display .office-login-screen,
#caseDialog.ui3 .office-login-display .office-login-screen{position:absolute;inset:0 auto auto 0;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:640px;height:400px;min-width:0;min-height:0;margin:0;padding:29px 44px 22px;border:0;border-radius:0;transform-origin:0 0;background:radial-gradient(ellipse at 50% 30%,#183448 0%,#0d2131 50%,#08141e 100%);color:#f0e7d1;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;text-align:center;line-height:1.15;box-shadow:inset 0 0 38px #020b13;opacity:1;overflow:hidden;text-shadow:none;gap:0}
.office-login-display button.office-login-screen{pointer-events:auto;cursor:pointer;touch-action:inherit}
.office-login-display button.office-login-screen:disabled{cursor:default;pointer-events:none}
.office-login-display .office-login-screen:focus-visible{outline:0;box-shadow:inset 0 0 0 6px #f8d995,inset 0 0 40px #020b13}
.office-login-display .office-login-brand{display:block;font-size:17px;font-weight:600;letter-spacing:3px;color:#d5c194}
.office-login-display .office-login-seal{display:grid;place-items:center;width:66px;height:66px;margin:21px 0 10px;border:2px solid #b69a64;border-radius:50%;font-size:43px;line-height:1;color:#dac289}
.office-login-display .office-login-title{display:block;margin:0 0 22px;font:500 52px/1.1 ui-sans-serif,system-ui,sans-serif;letter-spacing:1px;color:#f6efde}
.office-login-display .office-login-prompt{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;box-sizing:border-box;padding:14px 10px;border:1px solid #637273;border-radius:3px;background:#07141c;font-size:29px;line-height:1.3;color:#eee4ca;white-space:nowrap}
.office-login-display .office-login-cursor{display:inline-block;flex:0 0 14px;width:14px;height:30px;background:#e3c98a;animation:office-login-caret 1.15s steps(1,end) infinite}
.office-login-display .office-login-footer{display:block;margin-top:17px;font-size:15px;letter-spacing:4px;color:#b6b8ac}
.office-login-display[data-paused=true] .office-login-cursor{animation:none;opacity:1}
@keyframes office-login-caret{0%,48%{opacity:1}49%,100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.office-login-display .office-login-cursor{animation:none;opacity:1}}

/* The successful finale is a full-frame film followed by Case Closed. */
.case-finale [hidden]{display:none!important}
.case-finale-video{position:absolute;inset:0 0 94px;width:100%;height:calc(100% - 94px);object-fit:contain;background:#000}
.case-finale-controls{left:4%;right:4%;z-index:3;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.case-finale-controls button{margin:0;min-height:44px}
.case-finale-close{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:4;font-size:14px!important;padding:9px 12px!important;background:#151515e6!important;color:#f6e8ce!important;border:1px solid #8c7855!important}
.case-finale-status{position:absolute;left:5%;right:5%;bottom:104px;z-index:3;margin:0;padding:12px;text-align:center;background:#000e;color:#fff;font:500 16px/1.5 system-ui}
.case-finale-status:empty{display:none}
.case-finale-end-card{position:absolute;inset:55px 0 100px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:20px;background:#000}
.case-finale-end-logo{display:block;width:min(60vw,400px);height:min(55vh,400px);height:min(55dvh,400px);max-height:max(48px,calc(100dvh - 270px));min-height:0;object-fit:contain}
.case-finale-end-card h2{margin:0;color:#f3e2bb;font:500 clamp(22px,4vw,40px)/1.2 Georgia,serif;letter-spacing:.18em;text-transform:uppercase;text-align:center}
.case-finale button:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:600px){.case-finale-controls{justify-content:center}.case-finale-controls button{font-size:14px;padding:10px 13px}.case-finale-end-logo{width:min(72vw,330px)}.case-finale-status{font-size:14px}}

/* Closed case records are immutable; only known interior review navigation remains. */
.closed-case-review-notice{padding:12px 16px;border:1px solid #b59a5a;border-radius:9px;background:#111b22;color:#f0e7d1;max-width:100%;font-size:14px;line-height:1.45}
.closed-case-review-notice p{margin:6px 0 10px}
.closed-case-review-actions{display:flex;flex-wrap:wrap;gap:8px}
.closed-case-review-actions button{padding:8px 11px;border:1px solid #a88d55;border-radius:6px;background:#1d2b34;color:#fff;min-height:42px;font:inherit;cursor:pointer}
.closed-case-review [data-shell-action="investigate"],.closed-case-review [data-shell-action="move"],.closed-case-review #scenePeopleHere,.closed-case-review #nightOneProgression,.closed-case-review #optionsDayStatus,.closed-case-review .note-form,.closed-case-review .note-controls{display:none!important}
@media(max-width:767px){.closed-case-review-notice{padding:9px 11px;font-size:12px}.closed-case-review-actions{gap:5px}.closed-case-review-actions button{font-size:12px;min-height:40px;padding:7px 9px}}
