/* Phone taps and the corner toggle enlarge the same live scene. The image,
   evidence checkmarks and pinch/pan layer never leave their original parent. */
@media(max-width:767px){
 #caseDialog.ui3.patch1-shell:not(.ipad-game).mobile-scene-expanded .shell-scene{height:auto;max-height:none;aspect-ratio:auto;overflow:hidden}
 #caseDialog.ui3.patch1-shell:not(.ipad-game).mobile-scene-expanded .inline-scene-zoom-controls{display:none}
 /* Evidence is hosted inside the scene; hiding that ancestor blurs its note
    editor as soon as the native keyboard changes the viewport. */
 #caseDialog.ui3.patch1-shell:not(.ipad-game).keyboard-open .shell-scene:has(.ui3-evidence:not([hidden])){display:block}
 /* The older keyboard layout hides .shell-scene. Typed Investigate is a
    transparent overlay, so keep its real image/markers visible independently
    of the keyboard's flex/grid reflow. Match the measured visual viewport. */
 #caseDialog.ui3.patch1-shell:not(.ipad-game).keyboard-open:has(.shell-tool-panel.investigate-open:not([hidden])) .shell-scene{display:block;position:fixed;inset:var(--mobile-top,0) 0 auto;width:100%;height:var(--mobile-vh,100dvh);min-height:0;max-height:none;aspect-ratio:auto;z-index:1;overflow:hidden}
 #caseDialog.ui3.patch1-shell:not(.ipad-game).keyboard-open:has(.shell-tool-panel.investigate-open:not([hidden])) .scene-caption-strip,
 #caseDialog.ui3.patch1-shell:not(.ipad-game).keyboard-open:has(.shell-tool-panel.investigate-open:not([hidden])) .scene-people-here,
 #caseDialog.ui3.patch1-shell:not(.ipad-game).keyboard-open:has(.shell-tool-panel.investigate-open:not([hidden])) .shell-controls{display:none!important}
}
