/* Layout at every window size (Kam, Nov 25 – item 3, pictures approved). Look A's own variables only (no colour here – a test checks it). Loaded after phone.css.
   Five sizes: wide ≥ 1440 (left menu, three columns) · 1320–1439 (left menu, two columns) · 1024–1319 (icon rail, two columns) ·
   761–1023 tablet (menu behind the ☰ button, two panes) · ≤ 760 phone (phone.css). The top bar is ONE line from 761 px up, Paste order always on it. */
@media (min-width: 761px) {
  .pd .top { flex-wrap: nowrap; row-gap: 0; }
  .pd .top > div:first-child { min-width: 0; flex: 1 1 auto; }
  .pd .top .sp { display: none; }
  .pd .top h1, .pd .top .when { white-space: nowrap; }
  .pd .top .sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pd .top .search { flex: 0 1 230px; width: auto; min-width: 150px; }
  .pd .top > .btn, .pd .top > .ibtn { flex: none; }
}
/* 1024–1319: the left menu is an icon rail (the names are in each button's tooltip and accessible name) */
@media (min-width: 1024px) and (max-width: 1319px) {
  .pd .app { grid-template-columns: 72px minmax(0, 1fr); }
  .pd .side { padding: 16px 0; align-items: center; gap: 4px; }
  .pd .side .brand { padding: 2px 0 14px; justify-content: center; }
  .pd .side .brand > div:last-child { display: none; }
  .pd .side .nl { display: none; }
  .pd .side .nav { width: 48px; padding: 0; justify-content: center; position: relative; }
  .pd .side .nav > span:not(.n) { display: none; }
  .pd .side .nav .n { position: absolute; top: 3px; right: 1px; margin: 0; font-size: 10px; min-width: 16px; text-align: center; padding: 0 4px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
  .pd .side .sp { flex: 1 1 auto; }
  .pd .side .stat { width: 48px; padding: 12px 0; justify-content: center; }
  .pd .side .stat > div { display: none; }
  .pd .side .stat.ai { font-size: 0; }
  .pd .side .me { width: 48px; padding: 8px 0; flex-direction: column; gap: 8px; }
  .pd .side .me > div:not(.av):not(.sp) { display: none; }
  .pd .side .me .sp { display: none; }
  .pd .top #holdText { display: none; }
}
/* 761–1023 tablet: the menu is the ☰ button's side panel; drivers and live routes side by side, the map and the order queue full width under them */
@media (min-width: 761px) and (max-width: 1023px) {
  .pd .app { grid-template-columns: minmax(0, 1fr); }
  .pd .side { display: none; }
  .pd #phoneMenuBtn { display: grid; }
  .pd .top #holdText, .pd .top .when { display: none; }
  .pd .main { padding: 18px 20px 24px; }
  .cols3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cols3 .col-right { display: flex; flex-direction: column; grid-column: 2; grid-row: 1; }
  .cols3 .col-mid { grid-column: 1 / -1; grid-row: 2; }
  .pd .psheet-back { align-items: stretch; justify-content: flex-end; }
  .pd .psheet { width: 380px; max-width: 92vw; max-height: none; height: 100%; border-radius: 24px 0 0 24px; }
  .pd .psheet .grab { display: none; }
}
/* touch screens (a tablet): every button in the top bar is a 44 px target */
@media (min-width: 761px) and (max-width: 1023px) and (pointer: coarse) {
  .pd .top .ibtn, .pd .top .btn { min-height: 44px; min-width: 44px; }
  .pd .top .search { height: 44px; }
}
/* the StatLanes mark (the lane S icon, Kam Nov 24) in the left menu and on the sign-in page – a picture, so none of the tile's own background shows */
.pd .brand img.logo.mark, .lg .login-hero-brand img.logo.mark { display: block; flex: none; object-fit: cover; border-radius: 22%; background: none; padding: 0; box-shadow: none; }
.pd .brand img.logo.mark { width: 36px; height: 36px; }
.lg .login-hero-brand img.logo.mark { width: 40px; height: 40px; }
