/* Xionia 33.7.4: compact navigation and touch-friendly weather tools. */
html body nav.home-related[data-shortcuts-version]{
  --xn-paper:#f2f7fb;--xn-card:#fff;--xn-ink:#173f58;--xn-line:#c0d3df;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px;
  box-sizing:border-box;width:100%;max-width:100%;margin:14px 0;padding:12px;
  border:1px solid var(--xn-line);border-radius:14px;background:var(--xn-paper);
  text-align:center;font:600 13px/1.4 system-ui,sans-serif;
}
html body.xionia-dark nav.home-related[data-shortcuts-version],
html[data-theme=dark] body nav.home-related[data-shortcuts-version]{
  --xn-paper:#132f42;--xn-card:#1b3b52;--xn-ink:#eaf5fc;--xn-line:#496b83;
}
html body nav.home-related[data-shortcuts-version]>a{
  display:inline-flex;flex:0 1 auto;align-items:center;justify-content:center;gap:6px;
  box-sizing:border-box;width:auto;max-width:100%;min-width:0;min-height:44px;margin:0;
  padding:8px 12px;border:1px solid var(--xn-line);border-radius:10px;
  background:var(--xn-card);color:var(--xn-ink)!important;font:inherit;
  text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;box-shadow:none;
}
html body nav.home-related[data-shortcuts-version]>a[data-xn-tool]{border-inline-start:3px solid #3891b6}
html body nav.home-related[data-shortcuts-version]>a:hover{border-color:#3891b6;text-decoration:underline;text-underline-offset:3px}
html body nav.home-related[data-shortcuts-version]>a:focus-visible{outline:3px solid #d99d2d;outline-offset:2px}
html body .xn-home-tools>nav.home-related[data-shortcuts-version]{margin:0;padding:0;border:0;border-radius:0;background:transparent}
html body .xn-home-tools .xn-home-jumps{gap:6px}
html body .xn-home-tools .xn-home-jumps a{text-decoration:none;font-weight:550}
html body .xn-home-tools .xn-nav-context{max-width:none;width:100%;margin:0 0 10px;color:inherit;opacity:.88;font:400 12px/1.6 system-ui,sans-serif;text-align:start}
/* Higher specificity stops generic legacy header layout from stacking the dialog title/actions. */
html body dialog.xn-tool-dialog>header{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;
  flex:none;box-sizing:border-box;width:100%;max-width:none;min-height:64px;height:auto;
  margin:0;padding:8px 12px;gap:8px;text-align:start;
}
html body dialog.xn-tool-dialog>header h2{width:auto;max-width:none;font-size:16px;overflow-wrap:anywhere}
html body dialog.xn-tool-dialog>header a,html body dialog.xn-tool-dialog>header button{width:auto;max-width:none;white-space:normal}

.xm-meteogram .xm-model-picker{margin:12px 0;border:1px solid var(--xm-line);border-radius:12px;background:var(--xm-soft)}
.xm-meteogram .xm-model-picker>summary{cursor:pointer;padding:11px 12px;min-height:44px;box-sizing:border-box;font-weight:650;font-size:13px;color:var(--xm-ink)}
.xm-meteogram .xm-model-picker>.xm-models{margin:0;padding:0 10px 10px}
.xm-meteogram .xm-model-picker>.xm-models legend{padding:0 0 5px}
.xm-meteogram .xm-model-picker:not([open])>.xm-models{display:none}
.xm-meteogram .xm-model-picker>summary:focus-visible{outline:3px solid #d99d2d;outline-offset:2px}
.xm-scene-scroll,.xe-plot-panel .xc-plot,.xm-chart-details .xc-plot{scrollbar-width:auto;scrollbar-color:var(--xm-muted,#648499) var(--xm-soft,#eaf1f6);overscroll-behavior-x:contain}
.xe-plot-panel .xc-plot,.xm-chart-details .xc-plot{overflow-x:auto;max-width:100%;min-width:0;-webkit-overflow-scrolling:touch}
.xm-scene-scroll::-webkit-scrollbar,.xe-plot-panel .xc-plot::-webkit-scrollbar,.xm-chart-details .xc-plot::-webkit-scrollbar{height:12px}
.xm-scene-scroll::-webkit-scrollbar-thumb,.xe-plot-panel .xc-plot::-webkit-scrollbar-thumb,.xm-chart-details .xc-plot::-webkit-scrollbar-thumb{border:3px solid var(--xm-soft,#eaf1f6);border-radius:9px;background:var(--xm-muted,#648499)}
.xm-scene-scroll::-webkit-scrollbar-track,.xe-plot-panel .xc-plot::-webkit-scrollbar-track,.xm-chart-details .xc-plot::-webkit-scrollbar-track{background:var(--xm-soft,#eaf1f6)}
.xm-scroll-tools{display:flex;align-items:center;gap:7px;min-width:0;margin:8px 0;color:var(--xm-muted,#536c7d);font:12px/1.4 system-ui,sans-serif}
.xm-scroll-tools[hidden]{display:none!important}
.xm-meteogram .xm-scroll-tools button{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:44px;min-height:44px;padding:6px;font-size:20px;line-height:1}
.xm-scroll-tools span{flex:1;min-width:0;text-align:center}
.xm-meteogram .xm-scroll-tools button:disabled{opacity:.4;cursor:default}
.xm-meteogram [role=slider]{touch-action:pan-x pan-y pinch-zoom}
@media(min-width:701px){
  .xm-meteogram .xm-model-picker{border:0;background:none;margin:0}
  .xm-meteogram .xm-model-picker>summary{display:none}
  .xm-meteogram .xm-model-picker>.xm-models{padding:0;margin:14px 0}
}
@media(max-width:700px){
  html body nav.home-related[data-shortcuts-version]{gap:6px;padding:10px}
  html body nav.home-related[data-shortcuts-version]>a{padding:8px 10px;font-size:13px}
  html body .xn-home-tools{padding:10px;border-radius:12px}
  html body .xn-home-tools h2{font-size:15px}
  html body .xn-home-jumps>span{width:100%}
  html body .xn-home-tools .xn-home-jumps a{font-size:12px;padding:7px 9px}
  html body dialog.xn-tool-dialog{width:100vw;height:100vh;height:100dvh;border:0;border-radius:0}
  html body dialog.xn-tool-dialog>header{padding:6px 8px;padding-top:max(6px,env(safe-area-inset-top));min-height:58px;gap:6px}
  html body dialog.xn-tool-dialog>header h2{font-size:14px;line-height:1.3}
  html body dialog.xn-tool-dialog>header a{max-width:88px;font-size:11px;padding:6px}
  html body dialog.xn-tool-dialog>header button{padding:6px;font-size:12px}
  html body dialog.xn-tool-dialog iframe{padding-bottom:env(safe-area-inset-bottom);box-sizing:border-box}
  .xm-meteogram.xm-studio,.xm-meteogram.xe-studio{padding:12px 10px;margin:12px 0;border-radius:12px}
  body[data-widget=true] main{padding:4px;min-width:0}
  body[data-widget=true] .xm-meteogram{margin:0;border-radius:10px}
  .xm-meteogram .xm-header{display:flex;align-items:stretch;gap:10px;width:100%;max-width:none;margin:0;padding:0 0 10px;text-align:start}
  .xm-meteogram .xm-header>div:first-child{flex:1 1 100%;min-width:0}
  .xm-meteogram h1,.xm-meteogram h2{font-size:21px;line-height:1.3;overflow-wrap:anywhere}
  .xm-meteogram .xm-share-actions{display:flex;width:100%;gap:6px;flex-wrap:wrap}
  .xm-meteogram .xm-share-actions button{flex:1 1 auto;min-width:0;font-size:12px;min-height:44px;padding:7px}
  .xm-meteogram .xm-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0;padding:10px;min-width:0}
  .xm-meteogram .xm-controls label{min-width:0;max-width:100%;font-size:12px;align-content:start}
  .xm-meteogram .xm-controls select{width:100%;max-width:100%;min-width:0;font-size:16px;padding:7px;min-height:44px}
  .xm-meteogram .xm-controls .xm-more-toggle{grid-column:1/-1;min-height:44px;padding:0;gap:8px}
  .xm-meteogram .xm-controls .xa-appearance{grid-column:1/-1;border-top:1px solid var(--xm-line);padding-top:8px}
  .xm-meteogram .xa-appearance input[type=color],.hz-satellite .xa-appearance input[type=color]{min-width:44px;min-height:44px;height:44px}
  .xm-meteogram .xa-appearance button,.hz-satellite .xa-appearance button{min-height:44px}
  .xm-meteogram .xm-models{gap:6px}
  .xm-meteogram .xm-models label{box-sizing:border-box;min-height:44px;font-size:12px;padding:8px 10px;gap:7px}
  .xm-meteogram .xm-models input{width:18px;height:18px}
  .xm-meteogram .xm-readout{margin:12px 0;padding:10px;gap:10px}
  .xm-meteogram .xm-readout-time>svg{width:42px;height:42px;flex-basis:42px}
  .xm-meteogram .xm-readout-time strong{font-size:14px}
  .xm-meteogram .xm-readout-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .xm-meteogram .xm-readout-values strong{font-size:20px}
  .xm-meteogram .xm-day-nav{margin:8px 0;scrollbar-width:auto;gap:6px;scroll-snap-type:x proximity}
  .xm-meteogram .xm-day-nav button{min-height:44px;scroll-snap-align:start;font-size:12px}
  .xm-meteogram .xm-time-control{gap:6px;margin:10px 0;flex-wrap:wrap}
  .xm-meteogram .xm-time-control input{flex-basis:100%;width:100%;min-height:44px}
  .xm-meteogram .xm-note{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
  .xm-meteogram .xm-table-wrap tr>th:first-child{min-width:115px;width:115px;max-width:130px;font-size:11px}
  .xm-meteogram .xe-plot-panel{padding:12px 4px 8px}
  .xm-meteogram .xe-plot-panel>header{display:block;width:100%;max-width:none;margin:0;padding:0 6px 6px}
  .xm-meteogram .xe-plot-panel h3{font-size:15px;margin:0 0 4px}
  .xm-meteogram .xe-links{gap:8px;margin:12px 0}
  .xm-meteogram .xe-links>a{display:inline-flex;align-items:center;min-height:44px;font-size:13px}
  .xm-meteogram .xe-family-status{gap:5px}
  .xm-meteogram .xe-family-status span{font-size:11px}
  .hz-satellite .hz-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;padding:10px}
  .hz-satellite .hz-controls>label{min-width:0;width:100%;grid-column:1/-1}
  .hz-satellite .hz-controls select{width:100%;max-width:100%;min-width:0;font-size:16px;min-height:44px}
  .hz-satellite .hz-controls>button{min-width:0;min-height:44px;padding:8px;font-size:13px}
  .hz-satellite .hz-controls>.xa-appearance{grid-column:1/-1}
  .hz-satellite .hz-map{height:clamp(300px,55vh,480px);height:clamp(300px,55svh,480px);min-height:300px}
  .hz-satellite .hz-timeline{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}
  .hz-satellite .hz-timeline button,.hz-satellite .hz-timeline input{min-height:44px;min-width:0}
  .hz-satellite .hz-timeline output{grid-column:1/-1;min-width:0}
  .hz-satellite .leaflet-control-zoom a{min-width:44px;min-height:44px;line-height:44px}
  .hz-satellite details>summary{min-height:44px;box-sizing:border-box}
}
@media(prefers-reduced-motion:reduce){.xm-scroll-tools~*{scroll-behavior:auto!important}}
