/* Tablet workspace: reserve reading space without hiding navigation labels. */
@media (min-width:768px) and (max-width:1366px) and (orientation:portrait) {
  #app .page-container--today {
    --today-content-width:100%;
    max-width:100% !important;
    --today-content-gutter:0px;
    padding-inline:0 !important;
    width:100%;
    margin-inline:0;
  }
  #app #screen[data-screen="home"] { padding-inline:16px; }
  #app .page-container--today .dj-split { grid-template-columns:minmax(0,1fr); }
  #app .page-container--today .dj { gap:18px; }
}
@media (min-width:768px) and (max-width:1366px) {
  #app.app-shell:not(.app-shell--auth):not(.app-shell--immersive) .app-sidebar {
    width:104px;
    padding:12px 8px;
    height:100vh;
    height:100dvh;
  }
  #app.app-shell:not(.app-shell--auth):not(.app-shell--immersive) .app-shell__main {
    margin-left:104px;
    width:calc(100% - 104px);
    min-width:0;
  }
  #app .app-sidebar__brand { justify-content:center; padding:0; margin-bottom:10px; }
  #app .app-sidebar__brand-copy { display:none; }
  #app .app-sidebar__item { flex-direction:column; justify-content:center; gap:5px; min-height:62px; padding:8px 3px; }
  #app .app-sidebar__label {
    position:static; width:auto; height:auto; overflow:visible; clip:auto;
    white-space:normal; text-align:center; font-size:11px; line-height:1.25;
  }
  #app .app-sidebar__section { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); }
  #app .app-sidebar__nav { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
  #app .app-sidebar__logout { justify-content:center; padding:8px 3px; min-height:48px; margin:8px 0 0; }
  #app .app-sidebar__logout span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  #app .app-topbar { gap:12px; padding:12px 18px; flex-wrap:wrap; }
  #app .app-topbar__identity,.app-topbar__contest { min-width:0; }
  #app #screen { padding:20px 18px 32px; min-width:0; }
  #app .page-container { width:100%; max-width:100%; padding-inline:0; min-width:0; }
  #app .page-container--home .dash-quick { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #app .performance-top-grid,#app .performance-middle-grid,#app .performance-bottom-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #app .performance-overview { grid-column:1/-1; }
  #app .performance-middle-grid--single { grid-template-columns:minmax(0,1fr); }
  #app .performance-desktop-header { flex-wrap:wrap; gap:16px; }
  #app .performance-desktop-header>div:last-child { flex-wrap:wrap; }
  #app #screen[data-screen="performance"] { height:auto; overflow-y:visible; }
  #app .desktop-grid--3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #app .section-header { flex-wrap:wrap; gap:12px; }
  #app :is(.stats-panel,.desktop-grid--2,.desktop-grid--3,.performance-top-grid,.performance-middle-grid,.performance-bottom-grid)>* { min-width:0; }
  #app :is(button,.btn,input,select) { min-height:44px; }
  #app .ds-modal { max-width:calc(100vw - 40px); max-height:calc(100dvh - 40px); overflow-y:auto; }
}
@media (min-width:768px) and (max-width:1000px) {
  #app .page-container--home .dash-hero-row,#app .page-container--home .dash-duo,
  #app .page-container--profile,#app .performance-middle-grid,#app .performance-bottom-grid {
    grid-template-columns:minmax(0,1fr);
  }
}

