/* Use the actual viewport; the sidebar and dialogs keep their own scrolling. */
body{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.topbar{height:64px;min-height:64px;flex-shrink:0;padding:0 24px;gap:16px}
.brand-icon{height:38px;width:35px}
.navigation{height:44px;min-height:44px;flex-shrink:0;padding:0 24px}
.nav-tabs{gap:24px;min-width:0}
.offline-banner{flex-shrink:0}
.layout{flex:1;min-height:0;height:auto!important;overflow:hidden}
.workspace{min-height:0}
.map-heading{top:16px;left:24px}
.map-heading h2{font-size:26px;margin:0 0 5px}
.map-heading p{margin:0;font-size:12px}
.map-stats{top:82px!important;left:24px}
.weather-card{top:18px!important;right:20px!important}
.maplibregl-ctrl-top-right{top:100px!important}
.map-footer{bottom:28px;left:24px;right:66px}
.legend{max-width:none;display:flex;flex-wrap:wrap;gap:6px 12px;padding:9px 12px;font-size:12px}
/* The weather view opens close to the graphics rather than spending a screen on its summary. */
dialog[data-view="weather"] .dialog-header{padding:16px 20px 14px}
dialog[data-view="weather"] .dialog-body{padding:16px 20px 22px}
dialog[data-view="weather"] .weather-primary{font-size:32px;margin:8px 0}
dialog[data-view="weather"] .dialog-body>p{margin:8px 0}
dialog[data-view="weather"] .meteo-dashboard{margin-top:16px}
dialog[data-view="weather"] .meteo-section-title{margin:12px 0 6px!important}
@media(max-width:1180px){.refresh-info{display:none}.navigation{overflow-x:auto;scrollbar-width:thin}.nav-tabs{flex-shrink:0}}
@media(max-width:800px){
  .topbar{height:60px;min-height:60px;padding:0 14px;gap:12px}
  .navigation{height:44px;min-height:44px;padding:0 14px;scrollbar-width:none}
  .nav-tabs{gap:22px}
  .nav-tab{font-size:12px}
  .map-stats{top:12px!important;left:12px}
  .weather-card{top:12px!important;right:12px!important}
  .map-tools{top:120px;left:12px}
  .maplibregl-ctrl-top-right{top:112px!important;right:12px!important}
  #auto-switch{bottom:64px;right:12px}
  #live-feed{bottom:136px}
  .map-footer{bottom:64px;left:12px;right:144px}
  .legend{font-size:11px;padding:8px 10px}
}
@media(max-height:560px){
  #live-feed{bottom:100px}
  #feed-items{max-height:38px}
}
@media(max-height:500px){#live-feed{display:none}}
@media(max-width:800px) and (max-height:620px){#live-feed{display:none}}
@media(max-width:800px) and (max-height:500px){
  .topbar{height:52px;min-height:52px}
  .navigation{height:40px;min-height:40px}
  .map-stats{min-height:0}
  .map-stats>div{padding:7px 10px}
  .map-stats strong{font-size:24px;margin:2px 0}
  .map-tools{top:94px}
  .maplibregl-ctrl-top-right{top:84px!important}
  #live-feed{display:none}
}
