/* V799cf — authoritative iPad/tablet layout owner.
   Four explicit states: portrait split, portrait full-height list, landscape panel
   open and landscape panel closed. Phone, desktop and Touchscreen are excluded. */

html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode){
  --expo-planit-tablet-control-w-v799cf:60px;
  --expo-planit-tablet-control-h-v799cf:42px;
}

/* Structural ownership. The plan and final tab shell become the only grid items.
   Legacy splitters, the original wide toggle and obsolete control strips cannot
   create implicit tracks or the white strip previously seen below the plan. */
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) #leftCol{
  display:contents!important;
}
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) #adminSide,
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) #viewerSide,
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) #publicSide{
  display:contents!important;
}
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) #adminSideSplitter,
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) #viewerSideSplitter,
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) #publicSideSplitter,
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) #planKeySplitter,
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) #planKeyCard.expoPlanitControlStrip,
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) #keyCard.expoPlanitControlStrip,
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) #publicPlanControlStrip,
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) > .responsiveWorkspaceToggle,
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) .responsiveWorkspaceToggle{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  width:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  pointer-events:none!important;
}

/* All tablet page roles share the authored header's horizontal edges. Viewer and
   Public main already sit inside the 16px page shell; Admin receives the same inset. */
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) .pageShell > main{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  padding-left:0!important;
  padding-right:0!important;
}
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f.adminHeaderControlsMode:not(.touchscreenMode) > main{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  padding-left:16px!important;
  padding-right:16px!important;
}
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) #planCard{
  box-sizing:border-box!important;
  min-width:0!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* PORTRAIT SPLIT — one full-width plan row and one full-width list row. Removing
   layout transitions makes full-height selection return to its final geometry in
   the same paint; V799bt's proven stand-ID camera then starts from that stable Fit. */
html.expoPlanitTabletPortraitV799bm body.v795gqPortraitManaged.responsiveWorkspaceV799f:not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) main{
  display:grid!important;
  height:var(--v795gq-main-h)!important;
  min-height:var(--v795gq-main-h)!important;
  max-height:var(--v795gq-main-h)!important;
  overflow:hidden!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,calc(54% - 5px)) minmax(0,calc(46% - 5px))!important;
  gap:10px!important;
  padding-top:8px!important;
  padding-bottom:0!important;
  transition:none!important;
}
html.expoPlanitTabletPortraitV799bm body.responsiveWorkspaceV799f:not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) #planCard{
  grid-column:1!important;
  grid-row:1!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  transition:none!important;
}
html.expoPlanitTabletPortraitV799bm body.responsiveWorkspaceV799f:not(.responsiveWorkspacePanelCollapsed):not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) #adminWorkspaceShell,
html.expoPlanitTabletPortraitV799bm body.responsiveWorkspaceV799f:not(.responsiveWorkspacePanelCollapsed):not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) #viewerWorkspaceShell,
html.expoPlanitTabletPortraitV799bm body.responsiveWorkspaceV799f:not(.responsiveWorkspacePanelCollapsed):not(.expoPlanitTabPanelExpandedV799f).publicDirectoryMode:not(.touchscreenMode) #publicDirectoryShell{
  grid-column:1!important;
  grid-row:2!important;
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  transition:none!important;
}
html.expoPlanitTabletPortraitV799bm body.v795gqPortraitManaged.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed:not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) main{
  grid-template-rows:minmax(0,1fr) 0!important;
  gap:0!important;
  padding-top:8px!important;
  padding-bottom:0!important;
}
html.expoPlanitTabletPortraitV799bm body.v795gqPortraitManaged.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed:not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) #planCard,
html.expoPlanitTabletPortraitV799bm body.v795gqPortraitManaged.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed:not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) #planCard > .adminPlanSurface,
html.expoPlanitTabletPortraitV799bm body.v795gqPortraitManaged.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed:not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) #planCard > .cardSurface,
html.expoPlanitTabletPortraitV799bm body.v795gqPortraitManaged.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed:not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) #zoomWrap{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
}
html.expoPlanitTabletPortraitV799bm body.v795gqPortraitManaged.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed:not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) #adminSide,
html.expoPlanitTabletPortraitV799bm body.v795gqPortraitManaged.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed:not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) #viewerSide,
html.expoPlanitTabletPortraitV799bm body.v795gqPortraitManaged.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed.publicDirectoryMode:not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) #publicSide,
html.expoPlanitTabletPortraitV799bm body.v795gqPortraitManaged.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed:not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) #adminWorkspaceShell,
html.expoPlanitTabletPortraitV799bm body.v795gqPortraitManaged.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed:not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) #viewerWorkspaceShell,
html.expoPlanitTabletPortraitV799bm body.v795gqPortraitManaged.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed.publicDirectoryMode:not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) #publicDirectoryShell{
  display:none!important;
}

/* PORTRAIT FULL LIST — keep V799bt's fixed full-height shell and make its close
   instantaneous at the layout layer. Only the plan camera itself animates. */
html.expoPlanitTabletPortraitV799bm body.responsiveWorkspaceV799f.expoPlanitTabPanelExpandedV799f:not(.touchscreenMode) main{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  gap:0!important;
  padding:0!important;
  transition:none!important;
}
html.expoPlanitTabletPortraitV799bm body.responsiveWorkspaceV799f.expoPlanitTabPanelExpandedV799f:not(.touchscreenMode) #planCard{
  display:none!important;
  transition:none!important;
}
html.expoPlanitTabletPortraitV799bm body.responsiveWorkspaceV799f.expoPlanitTabPanelExpandedV799f:not(.touchscreenMode) #adminWorkspaceShell,
html.expoPlanitTabletPortraitV799bm body.responsiveWorkspaceV799f.expoPlanitTabPanelExpandedV799f:not(.touchscreenMode) #viewerWorkspaceShell,
html.expoPlanitTabletPortraitV799bm body.responsiveWorkspaceV799f.expoPlanitTabPanelExpandedV799f.publicDirectoryMode:not(.touchscreenMode) #publicDirectoryShell{
  display:flex!important;
  flex-direction:column!important;
  transition:none!important;
}

/* LANDSCAPE PANEL OPEN — two columns only. There is no dedicated 72px rail;
   the permanent controls are overlaid, so the plan and list use the full header width. */
html.expoPlanitTabletLandscapeV799bm body.responsiveWorkspaceV799f:not(.responsiveWorkspacePanelCollapsed):not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) main{
  display:grid!important;
  grid-template-columns:minmax(0,1.62fr) minmax(330px,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  gap:10px!important;
  padding-top:8px!important;
  padding-bottom:8px!important;
  overflow:hidden!important;
}
html.expoPlanitTabletLandscapeV799bm body.responsiveWorkspaceV799f:not(.responsiveWorkspacePanelCollapsed):not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) #planCard{
  grid-column:1!important;
  grid-row:1!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  z-index:1!important;
}
html.expoPlanitTabletLandscapeV799bm body.responsiveWorkspaceV799f:not(.responsiveWorkspacePanelCollapsed):not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) #adminWorkspaceShell,
html.expoPlanitTabletLandscapeV799bm body.responsiveWorkspaceV799f:not(.responsiveWorkspacePanelCollapsed):not(.expoPlanitTabPanelExpandedV799f):not(.touchscreenMode) #viewerWorkspaceShell,
html.expoPlanitTabletLandscapeV799bm body.responsiveWorkspaceV799f:not(.responsiveWorkspacePanelCollapsed):not(.expoPlanitTabPanelExpandedV799f).publicDirectoryMode:not(.touchscreenMode) #publicDirectoryShell{
  grid-column:2!important;
  grid-row:1!important;
  display:flex!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
}

/* LANDSCAPE PANEL CLOSED — exactly one full-width plan track. Hide the side
   container as well as its shell so display:contents cannot leave implicit tracks. */
html.expoPlanitTabletLandscapeV799bm body.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed:not(.touchscreenMode) main{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  gap:0!important;
  padding-top:8px!important;
  padding-bottom:8px!important;
  overflow:hidden!important;
}
html.expoPlanitTabletLandscapeV799bm body.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed:not(.touchscreenMode) #planCard{
  grid-column:1!important;
  grid-row:1!important;
  display:block!important;
  position:relative!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  z-index:1!important;
}
html.expoPlanitTabletLandscapeV799bm body.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed:not(.touchscreenMode) #adminSide,
html.expoPlanitTabletLandscapeV799bm body.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed:not(.touchscreenMode) #viewerSide,
html.expoPlanitTabletLandscapeV799bm body.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed.publicDirectoryMode:not(.touchscreenMode) #publicSide,
html.expoPlanitTabletLandscapeV799bm body.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed:not(.touchscreenMode) #adminWorkspaceShell,
html.expoPlanitTabletLandscapeV799bm body.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed:not(.touchscreenMode) #viewerWorkspaceShell,
html.expoPlanitTabletLandscapeV799bm body.responsiveWorkspaceV799f.responsiveWorkspacePanelCollapsed.publicDirectoryMode:not(.touchscreenMode) #publicDirectoryShell,
html.expoPlanitTabletLandscapeV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) .expoPlanitTabHeightToggleV799f{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  width:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  pointer-events:none!important;
}

/* Equal tablet controls. All are fixed above the plan; no plan or card can cover them. */
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) #expoPlanitPanelToggleProxyV799f,
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) .expoPlanitPhonePlanNavV799f{
  position:fixed!important;
  z-index:2147483644!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:var(--expo-planit-tablet-control-w-v799cf)!important;
  min-width:var(--expo-planit-tablet-control-w-v799cf)!important;
  max-width:var(--expo-planit-tablet-control-w-v799cf)!important;
  height:var(--expo-planit-tablet-control-h-v799cf)!important;
  min-height:var(--expo-planit-tablet-control-h-v799cf)!important;
  max-height:var(--expo-planit-tablet-control-h-v799cf)!important;
  margin:0!important;
  padding:0 7px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.98)!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  isolation:isolate!important;
}
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) #expoPlanitPanelToggleProxyV799f[hidden],
html.expoPlanitTabletV799bm body.responsiveWorkspaceV799f:not(.touchscreenMode) .expoPlanitPhonePlanNavV799f[hidden]{
  display:none!important;
}
