/* Desktop: sidebar starts below the header; statistics remain above the map.
   Keep the existing mobile layout and semantic main element unchanged. */
@media (min-width: 861px) {
  @supports (grid-template-rows: subgrid) {
    .app-shell {
      display: grid;
      grid-template-columns: minmax(390px, 36%) minmax(0, 1fr);
      grid-template-rows: auto auto minmax(0, 1fr);
      height: 100vh;
      height: 100dvh;
      min-height: 0;
    }
    .app-shell > .topbar {
      grid-column: 1 / -1;
      grid-row: 1;
    }
    .app-shell > .stats-ribbon {
      grid-column: 2;
      grid-row: 2;
      min-width: 0;
      justify-content: flex-start;
    }
    .app-shell > .workspace {
      grid-column: 1 / -1;
      grid-row: 2 / 4;
      grid-template-columns: subgrid;
      grid-template-rows: subgrid;
      height: auto;
      min-height: 0;
    }
    .workspace > .sidebar-shell {
      grid-column: 1;
      grid-row: 1 / 3;
      min-height: 0;
    }
    .workspace > .map-panel {
      grid-column: 2;
      grid-row: 2;
      min-width: 0;
    }
  }
}
