/* Desktop shares one bottom row between the people strip and roomy actions.
   Keep the existing sibling nodes: syncGameShell and the tutorial reuse them. */
@media(min-width:768px){
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .active-investigation,
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .active-investigation.responsive-location-art{
  /* Use the marked right half; retain the four-button floor in narrow panes. */
  grid-template-columns:minmax(0,1fr) max(224px,50%);
  grid-template-rows:minmax(0,1fr) auto auto!important;
 }
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .active-investigation>.shell-scene{grid-column:1 / -1;grid-row:1}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .active-investigation>.scene-caption-strip,
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .active-investigation>.scene-description-line{grid-column:1 / -1;grid-row:2}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .active-investigation>.scene-people-here{
  grid-column:1;grid-row:3;display:flex;flex-direction:column;justify-content:center;align-self:stretch;
  min-width:0;padding:8px 12px max(8px,env(safe-area-inset-bottom));box-sizing:border-box;background:#091b29;
 }
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .scene-people-list{
  /* Four 160px cards and three 8px gaps; smaller panes show fewer, never tiny cards. */
  width:100%;max-width:664px;min-width:0;gap:8px;overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:thin;
  scrollbar-color:#bda26c #07121e;
 }
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .scene-people-list>.scene-person{
  flex:0 0 160px;width:160px;min-width:0;min-height:52px;box-sizing:border-box;
  display:grid;grid-template-columns:36px minmax(0,1fr);grid-template-rows:auto auto;
  gap:2px 7px;padding:4px;text-align:left;scroll-snap-align:start;
 }
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .scene-people-list>.scene-person img{grid-column:1;grid-row:1 / 3}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .scene-people-list>.scene-person span,
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .scene-people-list>.scene-person small{grid-column:2;min-width:0;white-space:normal;overflow-wrap:anywhere}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .scene-people-list>.scene-person:not(:has(img)) :is(span,small){grid-column:1 / -1}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .scene-person-empty{display:flex;align-items:center;min-height:44px;white-space:normal;overflow-wrap:anywhere}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .scene-people-here>#nightOneProgression{
  flex:none;align-self:flex-start;max-width:100%;min-height:44px;margin-top:6px;padding:6px 10px;
  box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;text-align:left;
 }
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .active-investigation>.shell-controls{
  grid-column:2;grid-row:3;align-self:stretch;align-content:center;min-width:0;width:100%;
  box-sizing:border-box;gap:6px;padding:8px 12px max(8px,env(safe-area-inset-bottom)) 4px;
  margin:0;border-top:1px solid #7896a43c;background:#091b29;
 }
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .shell-controls button{
  /* Wide artwork grows with each tile, with a height cap that fits the existing people row. */
  width:100%;min-width:44px;min-height:44px;height:auto;max-height:80px;aspect-ratio:5/2;border-radius:7px;
 }
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .shell-controls img{width:100%;height:100%;max-height:none;object-fit:contain}
 #caseDialog.ui3.patch1-shell:not(.ipad-game) .scene-person:focus-visible{outline:2px solid #f4dfb3;outline-offset:-3px}
}
