/* The desktop shell in a NARROW desktop window (Seth 2026-10-31: the
   scrunched-up window still drew the legacy phone interface).

   Since 2026-10-31 "phone" means a touch phone (`(pointer: coarse)` in
   PHONE_QUERY, js/mobile/mobile.js), so a desktop window under 900px keeps the
   shell. What the shell gets wrong there: it reserves 200px on the left and
   340px on the right, which on a 570px window leaves a 30px page. Here neither
   sidebar reserves room — both float OVER the page, Sunsama's way when its
   window is small — and the page keeps the full width minus the right
   sidebar's 52px icon gutter. `desktop_shell.js` starts the right sidebar
   closed at this width so an arrival lands on the page, not the panel. */
@media (max-width: 900px) {
  html[data-desktop-shell] .app-shell,
  html[data-desktop-shell] .app-shell.app-shell-chat-open,
  html[data-desktop-shell][data-shell-right='closed'] .app-shell {
    padding-left: 0 !important;
    padding-right: var(--shell-gutter-width) !important;
  }
  html[data-desktop-shell] .app-shell > header.topbar { padding-left: 52px; }
  html[data-desktop-shell][data-shell-left='open'] #desktop-navigation,
  html[data-desktop-shell]:not([data-shell-right='closed']) #context-sidebar {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
  /* The open right sidebar may not take the whole window: leave a strip of the
     page showing so it reads as a panel over the page, and so a press there can
     reach the page's own controls. */
  html[data-desktop-shell] #context-sidebar {
    max-width: calc(100vw - 48px);
  }
}
