/* Tap inspection is opt-in. The existing question panel remains an explicit tool. */
#caseDialog.ui3.scene-tap-enabled .scene-tap-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;flex:1 1 100%;padding:3px 0;color:#ead6ac;font:12px/1.35 Manrope,sans-serif}
#caseDialog.ui3.scene-tap-enabled .scene-tap-toolbar>span{flex:1 1 140px;font-weight:700;letter-spacing:.04em}
#caseDialog.ui3.scene-tap-enabled .scene-tap-toolbar button,#caseDialog.ui3.scene-tap-enabled .scene-tap-return{min-height:44px;padding:6px 12px;border:1px solid #b69b6580;border-radius:6px;background:#12293b;color:#f2dfb5;font:600 12px/1.3 Manrope,sans-serif;cursor:pointer}
#caseDialog.ui3.scene-tap-enabled .scene-tap-toolbar[hidden],#caseDialog.ui3.scene-tap-enabled .scene-tap-card[hidden],#caseDialog.ui3.scene-tap-enabled .scene-tap-cursor[hidden]{display:none!important}
#caseDialog.ui3.scene-tap-enabled .inline-scene-zoom-viewport #shellSceneImage[data-investigating=true]{cursor:crosshair}
#caseDialog.ui3.scene-tap-enabled .inline-scene-zoom-viewport[data-dragging=true] #shellSceneImage[data-investigating=true]{cursor:grabbing}
#caseDialog.ui3.scene-tap-enabled.patch1-shell .scene-evidence-markers{position:absolute;inset:0;display:block;z-index:2;pointer-events:none}
/* Keep saved collection marks small without shrinking their touch targets. */
#caseDialog.ui3.scene-tap-enabled .scene-evidence-marker{position:absolute;transform:translate(-50%,-50%);box-sizing:border-box;isolation:isolate;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#fff5d9;font:700 13px/1 system-ui,sans-serif;box-shadow:none;cursor:pointer;pointer-events:auto}
#caseDialog.ui3.scene-tap-enabled .scene-evidence-marker:before{content:'';position:absolute;z-index:-1;left:50%;top:50%;width:22px;height:22px;box-sizing:border-box;transform:translate(-50%,-50%);border:1.5px solid #f2d799;border-radius:50%;background:#213d32;box-shadow:0 0 0 2px #07111ac9;pointer-events:none}
#caseDialog.ui3.scene-tap-enabled .scene-evidence-marker[hidden]{display:none!important}
#caseDialog.ui3.scene-tap-enabled .scene-tap-cursor{position:absolute;width:22px;height:22px;border:1px solid #fff1c8;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 2px #07111acf;pointer-events:none}
#caseDialog.ui3.scene-tap-enabled .scene-tap-cursor:before,#caseDialog.ui3.scene-tap-enabled .scene-tap-cursor:after{content:'';position:absolute;background:#fff1c8;left:50%;top:50%;transform:translate(-50%,-50%)}
#caseDialog.ui3.scene-tap-enabled .scene-tap-cursor:before{width:30px;height:1px}#caseDialog.ui3.scene-tap-enabled .scene-tap-cursor:after{width:1px;height:30px}
#caseDialog.ui3.scene-tap-enabled.patch1-shell .shell-scene .scene-tap-card{position:absolute;z-index:8;right:16px;bottom:16px;width:fit-content;max-width:min(560px,calc(100% - 32px));min-height:44px;max-height:calc(100% - 32px);box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:12px 16px;border:1px solid #bca575;border-radius:8px;background:#091b29f5;box-shadow:0 6px 20px #0008,inset 0 0 0 3px #091b29,inset 0 0 0 4px #bca57538;color:#eff4f5;text-align:left;touch-action:pan-y}
#caseDialog.ui3.scene-tap-enabled.patch1-shell .shell-scene .scene-tap-card>button{position:absolute;right:0;top:0;min-width:44px;min-height:44px;border:0;background:transparent;color:#f1e4c7;font-size:22px;cursor:pointer}
#caseDialog.ui3.scene-tap-enabled.patch1-shell .shell-scene .scene-tap-description{display:block;position:static;max-width:none;max-height:none;height:auto;overflow:visible;white-space:pre-wrap;width:auto;margin:0;color:#eff4f5;font:15px/1.5 Manrope,sans-serif;overflow-wrap:anywhere;text-shadow:none;padding-right:28px}
#caseDialog.ui3.scene-tap-enabled .scene-tap-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px}
#caseDialog.ui3.scene-tap-enabled .scene-tap-actions:empty{display:none}
#caseDialog.ui3.scene-tap-enabled.patch1-shell .shell-scene .scene-tap-card[data-choice-menu=true]{width:560px;max-height:calc(100% - 32px)}
#caseDialog.ui3.scene-tap-enabled .scene-tap-card[data-choice-menu=true] .scene-tap-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;margin-top:8px;gap:6px}
#caseDialog.ui3.scene-tap-enabled .scene-tap-card[data-choice-menu=true] .scene-tap-actions button{min-height:44px;padding:8px 10px;font-size:14px;text-align:left;white-space:normal;overflow-wrap:anywhere}
#caseDialog.ui3.scene-tap-enabled .scene-tap-actions button{min-height:44px;padding:7px 10px;border:1px solid #d8bc80;border-radius:6px;background:#d8bc80;color:#14202a;font:700 13px/1.3 Manrope,sans-serif;cursor:pointer}
#caseDialog.ui3.scene-tap-enabled .scene-tap-actions span{color:#c1d3de;font:12px/1.4 Manrope,sans-serif}
#caseDialog.ui3.scene-tap-enabled .scene-tap-help{margin:6px 0 0;color:#ecdfc5;font:12px/1.45 Manrope,sans-serif}
#caseDialog.ui3.scene-tap-enabled .scene-tap-return{align-self:flex-start}
#caseDialog.ui3.scene-tap-enabled .scene-tap-toolbar button:focus-visible,#caseDialog.ui3.scene-tap-enabled .scene-tap-card button:focus-visible,#caseDialog.ui3.scene-tap-enabled .scene-evidence-marker:focus-visible{outline:3px solid #fff4cd;outline-offset:3px}
#caseDialog.ui3.scene-tap-enabled .scene-evidence-marker:focus-visible{outline-offset:-3px}
#caseDialog.ui3.scene-tap-enabled [data-shell-action=investigate][aria-pressed=true]{filter:drop-shadow(0 0 6px #e3bb79)}
#caseDialog.ui3.scene-tap-enabled .scene-tap-dock-content[hidden],#caseDialog.ui3.scene-tap-enabled .scene-tap-offered-actions[hidden],#caseDialog.ui3.scene-tap-enabled .scene-tap-dock-prompt[hidden],#caseDialog.ui3.scene-tap-enabled .scene-tap-result-review[hidden]{display:none!important}
#caseDialog.ui3.scene-tap-enabled .scene-tap-result-review{margin-top:12px;padding-top:8px;border-top:1px solid #b69b654d;color:#c1d3de;font:13px/1.45 Manrope,sans-serif;white-space:normal;overflow-wrap:anywhere}
#caseDialog.ui3.scene-tap-enabled .scene-tap-result-review summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:#f2dfb5;text-decoration:underline;text-underline-offset:3px}
#caseDialog.ui3.scene-tap-enabled .scene-tap-result-review strong{display:block;margin-top:8px;color:#f2dfb5;font-weight:600}
#caseDialog.ui3.scene-tap-enabled .scene-tap-result-review p{position:static;margin:4px 0 12px;max-height:none;white-space:pre-wrap;color:inherit;font:inherit;overflow:visible}
#caseDialog.ui3.scene-tap-enabled .scene-tap-result-review summary:focus-visible{outline:3px solid #fff4cd;outline-offset:2px}
#caseDialog.ui3.scene-tap-enabled .scene-tap-actions button[data-completed=true]{border-color:#9db4a8;background:#19362e;color:#e0eee7;opacity:1}
@media(max-width:767px){
 /* The same live card moves below the photo, into the caption/People Here
    region. Only its content scrolls; zoom, optional text and Done stay visible. */
 #caseDialog.ui3.scene-tap-enabled.patch1-shell.scene-tap-mode:not(.ipad-game) .scene-expand{display:none}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip[data-examination-dock=true]{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr);align-items:stretch;gap:4px 6px;min-height:0;max-height:min(60svh,500px,calc(100svh - 240px));padding:6px 8px;background:#091b29;overflow:hidden;white-space:normal;text-overflow:clip}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip[data-examination-dock=true]>#shellSceneDescription,
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip[data-examination-dock=true]~.scene-people-here{display:none!important}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip[data-examination-dock=true]>.inline-scene-zoom-controls{display:flex;grid-column:1;grid-row:1;justify-self:start;align-self:center;margin:0;gap:2px}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip[data-examination-dock=true]>.scene-tap-toolbar{grid-column:2;grid-row:1;justify-content:flex-end;align-self:center;flex-wrap:nowrap;gap:4px;width:auto;min-width:0;padding:0}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip[data-examination-dock=true]>.scene-tap-toolbar>span{display:none}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip[data-examination-dock=true]>.scene-tap-toolbar button{min-height:44px;padding:5px 7px;font-size:11px;white-space:normal}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip .scene-tap-card{position:relative;inset:auto;z-index:auto;width:100%;min-width:0;max-width:none;min-height:0;max-height:none;box-sizing:border-box;overflow:visible;padding:10px 12px;border:1px solid #bca575;border-radius:7px;background:#091b29;color:#eff4f5;text-align:left;touch-action:pan-y;box-shadow:none;scrollbar-width:thin}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip .scene-tap-dock-content{grid-column:1/-1;grid-row:2;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip .scene-tap-offered-actions{margin-top:4px;color:#c1d3de;font:13px/1.45 Manrope,sans-serif;white-space:normal}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip .scene-tap-card>button{position:absolute;right:0;top:0;min-width:44px;min-height:44px;border:0;background:transparent;color:#f1e4c7;font-size:22px;cursor:pointer}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip .scene-tap-description{display:block;position:static;width:auto;height:auto;max-width:none;max-height:none;margin:0;padding-right:26px;overflow:visible;white-space:pre-wrap;color:#eff4f5;font:14px/1.4 Manrope,sans-serif;overflow-wrap:anywhere;text-shadow:none}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip .scene-tap-card[data-choice-menu=true] .scene-tap-actions{gap:6px;margin-top:10px}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip .scene-tap-card[data-choice-menu=true] .scene-tap-actions button{min-height:44px;padding:8px 10px;font-size:13px}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip .scene-tap-mark-note{font-size:11px;line-height:1.35}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip .scene-tap-dock-prompt{min-height:44px;margin:0;padding:8px 4px;color:#c1d3de;font:13px/1.45 Manrope,sans-serif;white-space:normal}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip .scene-tap-dock-prompt::before{content:'Examination';display:block;margin-bottom:4px;color:#d4bc82;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
 /* The existing optional-text modal keeps its own backdrop. */
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .shell-tool-panel.investigate-open{background:rgba(2,8,17,.12)}
}
@media(max-width:360px){
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip[data-examination-dock=true]{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr)}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip[data-examination-dock=true]>.inline-scene-zoom-controls{justify-self:center}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip[data-examination-dock=true]>.scene-tap-toolbar{grid-column:1;grid-row:2;justify-content:center}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip[data-examination-dock=true]>.scene-tap-dock-content{grid-row:3}
}

/* Desktop Investigate uses the real scene/marker layer, with an uncropped
   viewport above the shared people/actions row. Phone/iPad stay intact. */
@media(min-width:768px){
 #caseDialog.ui3.scene-tap-enabled.patch1-shell.scene-tap-mode:not(.ipad-game) .active-investigation,
 #caseDialog.ui3.scene-tap-enabled.patch1-shell.scene-tap-mode:not(.ipad-game) .active-investigation.responsive-location-art{position:fixed;inset:var(--game-header-height,62px) 0 0;z-index:70;display:grid!important;width:auto;height:auto;min-width:0;min-height:0;max-height:none;margin:0;padding:0;overflow:hidden;align-content:stretch;background:#07121e}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell.scene-tap-mode:not(.ipad-game) .active-investigation>:not(.shell-scene):not(.room-scene-footer):not(.scene-caption-strip):not(.scene-people-here):not(.shell-controls){display:none!important}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell.scene-tap-mode:not(.ipad-game) .active-investigation>.shell-scene{position:relative;inset:auto;width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;overflow:hidden;z-index:auto}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell.scene-tap-mode:not(.ipad-game) .inline-scene-zoom-viewport #shellSceneImage{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center center}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell.scene-tap-mode:not(.ipad-game) .scene-expand{display:none}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell.scene-tap-mode:not(.ipad-game) .active-investigation .scene-caption-strip{display:flex;justify-content:flex-end;align-items:center;gap:4px 12px;padding:4px 14px;margin:0;min-height:0;max-height:112px;overflow-y:auto;background:#07121e}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell.scene-tap-mode:not(.ipad-game) .scene-caption-strip #shellSceneDescription{flex:1 1 200px;font-size:12px;line-height:1.4}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell.scene-tap-mode:not(.ipad-game) .scene-caption-strip .scene-tap-toolbar{flex:0 1 auto;justify-content:flex-end;width:auto;padding:0}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell.scene-tap-mode:not(.ipad-game) .scene-tap-toolbar>span{flex:0 1 auto}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell.scene-tap-mode:not(.ipad-game) .inline-scene-zoom-controls{display:flex;margin-left:0}
}

#caseDialog.ui3 .room-examination-actions{display:flex;flex-wrap:wrap;gap:6px;width:100%;padding:4px 0}
#caseDialog.ui3 .room-examination-actions[hidden]{display:none!important}
#caseDialog.ui3 .room-examination-actions button{min-height:44px;white-space:normal;border:1px solid #b69b6580;border-radius:6px;background:#12293b;color:#f2dfb5;padding:6px 12px}

#caseDialog.ui3.scene-tap-enabled .scene-tap-actions button:disabled{cursor:default;opacity:.65}

#caseDialog.ui3.scene-tap-enabled .scene-tap-description[data-detail-source]:not([data-detail-source=""])::before{content:attr(data-detail-source);display:block;margin-bottom:7px;color:#d4bc82;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}

#caseDialog.ui3.scene-tap-enabled .room-examination-feedback{flex:1 1 100%;width:100%;margin:6px 0;color:#eff4f5;font:14px/1.45 Manrope,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere}
#caseDialog.ui3.scene-tap-enabled .room-examination-feedback[hidden]{display:none!important}

/* Exact scene artwork and text share a compact row. Strong selectors prevent
   scene-wide absolute image rules from stretching the thumbnail. */
#caseDialog.ui3.scene-tap-enabled .scene-tap-summary{display:flex;align-items:flex-start;gap:14px;min-width:0;padding-right:22px}
#caseDialog.ui3.scene-tap-enabled .scene-tap-copy{flex:1 1 0;min-width:0}
#caseDialog.ui3.scene-tap-enabled .scene-tap-title{position:static;margin:0 0 8px;padding:0;color:#f2dfb5;font:600 21px/1.2 Georgia,serif;letter-spacing:.03em;overflow-wrap:anywhere}
#caseDialog.ui3.scene-tap-enabled .scene-tap-title[hidden]{display:none!important}
#caseDialog.ui3.scene-tap-enabled.patch1-shell .scene-tap-card .scene-tap-summary>img.scene-tap-snip{display:block;position:static;inset:auto;transform:none;flex:0 0 112px;box-sizing:border-box;width:112px;min-width:0;max-width:30%;height:112px;max-height:16svh;object-fit:contain;object-position:center;aspect-ratio:auto;border:1px solid #bca57580;border-radius:5px;margin:0;background:#101820}
#caseDialog.ui3.scene-tap-enabled .scene-tap-snip[hidden]{display:none!important}
#caseDialog.ui3.scene-tap-enabled .scene-tap-summary .scene-tap-description[data-detail-source]::before{display:none}
#caseDialog.ui3.scene-tap-enabled.patch1-shell .shell-scene .scene-tap-summary .scene-tap-description{padding-right:0;font-size:14px;line-height:1.45}
#caseDialog.ui3.scene-tap-enabled .scene-tap-more summary{min-height:44px;display:flex;align-items:center;color:#f2dfb5;font:600 13px/1.4 Manrope,sans-serif;cursor:pointer}
#caseDialog.ui3.scene-tap-enabled .scene-tap-more summary::after{content:' +';margin-left:6px}
#caseDialog.ui3.scene-tap-enabled .scene-tap-more[open] summary::after{content:' −'}
#caseDialog.ui3.scene-tap-enabled .scene-tap-more summary:focus-visible{outline:3px solid #fff4cd;outline-offset:2px}
#caseDialog.ui3.scene-tap-enabled .scene-tap-more>button{margin:0 6px 6px 0}
#caseDialog.ui3.scene-tap-enabled .scene-tap-actions button:not(.scene-tap-move){background:#12293b;color:#f2dfb5;border-color:#b69b6580}
#caseDialog.ui3.scene-tap-enabled .scene-tap-actions .scene-tap-move{background:#d8bc80;color:#14202a;border-color:#d8bc80}
/* Results share the available width instead of stacking every secondary choice
   underneath the new snip. Notes/reviews still read across the full card.
   Overflow remains on the desktop card / phone dock for long or enlarged text. */
#caseDialog.ui3.scene-tap-enabled .scene-tap-card[data-choice-menu=true] .scene-tap-actions>span,
#caseDialog.ui3.scene-tap-enabled .scene-tap-card[data-choice-menu=true] .scene-tap-actions>details{grid-column:1/-1}
#caseDialog.ui3.scene-tap-enabled .scene-tap-card[data-choice-menu=true] .scene-tap-actions>button{min-width:0}
@media(max-width:767px){
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-tap-card .scene-tap-summary>img.scene-tap-snip{flex-basis:72px;width:72px;height:72px;max-height:12svh}
}
@media(max-width:360px){
 #caseDialog.ui3.scene-tap-enabled .scene-tap-card[data-choice-menu=true] .scene-tap-actions{grid-template-columns:minmax(0,1fr)}
}

@media(max-width:767px){
 #caseDialog.ui3.scene-tap-enabled .scene-tap-summary{gap:10px;padding-right:22px}
 #caseDialog.ui3.scene-tap-enabled .scene-tap-title{font-size:18px;margin-bottom:5px}
 #caseDialog.ui3.scene-tap-enabled.patch1-shell:not(.ipad-game) .scene-caption-strip .scene-tap-summary .scene-tap-description{padding-right:0;font-size:13px;line-height:1.4}
}

@media(min-width:480px){
 #caseDialog.ui3.scene-tap-enabled .scene-tap-card[data-choice-menu=true] .scene-tap-actions:has(>.scene-tap-move){grid-template-columns:repeat(3,minmax(0,1fr))}
}

#caseDialog.ui3.scene-tap-enabled .scene-tap-close{position:absolute;top:12px;right:12px;z-index:14;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid #b69b6580;border-radius:6px;background:#091b29eF;color:#f2dfb5;font:28px/1 sans-serif;cursor:pointer}
#caseDialog.ui3.scene-tap-enabled .scene-tap-close[hidden]{display:none!important}
#caseDialog.ui3.scene-tap-enabled .scene-tap-close:focus-visible{outline:2px solid #f6cf84;outline-offset:2px}
@media(min-width:768px){#caseDialog.ui3.scene-tap-enabled.patch1-shell.scene-tap-mode:not(.ipad-game) .active-investigation .scene-caption-strip{overflow:visible;max-height:none}}

/* Earned follow-up stays directly beneath its result at either viewport size. */
#caseDialog.ui3.scene-tap-enabled .room-examination-followup{display:flex;flex-wrap:wrap;flex:1 1 100%;grid-column:1/-1;width:100%;gap:6px;margin:0 0 6px}
#caseDialog.ui3.scene-tap-enabled .room-examination-followup[hidden]{display:none!important}
#caseDialog.ui3.scene-tap-enabled .room-examination-followup button{min-height:44px;white-space:normal}
#caseDialog.ui3.scene-tap-enabled .room-examination-feedback{grid-column:1/-1}
