/* SAFE V96 — stable desktop HOME grid and browser scroll anchoring.
   Preserve the existing mobile single-column layout and all click handlers. */
@media (min-width:768px) {
  #view-home .home-workspace {
    grid-template-areas:"today operating" "service operating";
    grid-template-rows:auto auto;
    align-content:start;
  }
  #view-home .home-workspace > .home-today-card {
    grid-area:today;
    grid-row:1;
  }
  #view-home .home-workspace > .home-service-card-safe-v40 {
    grid-area:service;
    grid-row:2;
  }
  #view-home .home-workspace > .home-operating-card {
    grid-area:operating;
    grid-column:2;
    grid-row:1 / span 2;
    align-self:start;
    min-width:0;
  }
  /* A hidden TODAY card must not reserve an empty row. */
  #view-home .home-workspace:not(:has(> .home-today-card:not(.hidden))) > .home-service-card-safe-v40:not(.hidden) {
    grid-row:1;
  }
}
body:has(#view-home.active),
body:has(#view-home.active) main,
#view-home,
#view-home .home-workspace {
  overflow-anchor:none;
}
