/* Shared presentation for the two forecast workspaces. Map pixels retain their own styling. */
body.model-app,body.graphics-workspace {
  --ink:var(--ui-ink); --muted:var(--ui-muted); --teal:var(--ui-accent); --accent:var(--ui-navy);
  --line:var(--ui-line); --bg:var(--ui-bg); --workspace-selected:var(--ui-selected);
  background:var(--bg); text-transform:none;
}
:is(.model-app,.graphics-workspace) :is(button,input,select,textarea,option) { text-transform:none; }
:is(.model-app,.graphics-workspace) :is(button,a,input,select,summary):focus-visible { outline:3px solid var(--ui-focus); outline-offset:3px; }
:is(.model-app,.graphics-workspace) :is(input,select) { font-variant-numeric:tabular-nums; }
:is(.model-app,.graphics-workspace) :is(.sidebar,.library-sidebar,.viewer,.graphic-dialog[open]) { box-shadow:0 2px 8px #16364a04; border-color:var(--line); border-radius:12px; }
:is(.model-app,.graphics-workspace) .forecast-header .forecast-page-controls { text-transform:none; }
:is(.model-app,.graphics-workspace) .forecast-header .heading-actions .button,
.graphics-workspace .graphics-header-actions :is(button,a) { min-height:40px; height:40px; border-radius:8px; font-size:12px; font-weight:650; }
.model-app .heading-actions .button.primary,.graphics-workspace #graphic-save { background:var(--ui-navy); color:var(--ui-surface); border-color:var(--ui-navy); box-shadow:none; }
.model-app .heading-actions .button.primary:hover,.graphics-workspace #graphic-save:hover { background:var(--ui-accent-hover); }
.graphics-workspace :is(.graphics-topbar select,.graphics-region-button) { height:38px; min-height:38px; font-size:12px; text-transform:none; background:var(--ui-surface-muted); }
.graphics-workspace .graphics-topbar label>span,.model-app :is(.model-picker-label,.run-control>span,.region-control>span) { font-size:10px; letter-spacing:.04em; color:var(--muted); font-weight:650; }
.model-app .model-picker { background:var(--ui-surface-muted); border-color:var(--line); border-radius:8px; }
.model-app .model-picker strong { font-size:14px; font-weight:700; }
.model-app .model-bar { gap:12px; }
.model-app .model-bar :is(.run-control select,.region-picker-button) { height:34px; min-height:34px; font-size:12px; background:var(--ui-surface-muted); }
.model-app .heading-actions :is(.share-button,#refresh) { width:36px; min-width:36px; }
.model-app .heading-actions .compare-button { padding-inline:10px; }
.model-app .heading-actions .share-button>span { display:none; }
.graphics-workspace .graphics-header-actions { gap:8px; margin-left:auto; }
.graphics-workspace .graphics-header-actions #graphics-refresh { width:38px; }
.graphics-workspace .graphics-header-actions #graphic-share { display:inline-flex; align-items:center; gap:7px; }
.graphics-workspace .graphics-topbar { gap:18px; }
.graphics-workspace .graphics-selection { flex:0 1 240px; }
.workspace-page-title { display:grid; gap:1px; flex:0 1 260px; min-width:160px; }
.workspace-page-kicker { color:var(--muted); font-size:10px; line-height:1.4; }
.workspace-page-title strong { color:var(--ink); font-size:15px; line-height:1.5; font-weight:700; }

/* One quiet rail, one clear selection, and search that always has a way back. */
.model-app .sidebar,.graphics-workspace .library-sidebar,
.model-app .sidebar :is(button,input,select,option),
.graphics-workspace .library-sidebar :is(button,input,select,option) { text-transform:uppercase; }
.model-app .workspace { grid-template-columns:264px minmax(0,1fr); gap:14px; }
.graphics-workspace .library-workspace { grid-template-columns:264px minmax(0,1fr); gap:14px; }
.model-app .sidebar-head,.graphics-workspace .graphics-sidebar-heading { min-height:56px; padding:16px 16px 12px; }
.model-app .sidebar-head h2,.graphics-workspace .graphics-sidebar-heading h2 { font:700 14px/1.4 var(--font); letter-spacing:-.15px; }
.model-app #product-count,.graphics-workspace #graphics-sidebar-count { font-size:11px; color:var(--ui-muted); background:var(--ui-surface-muted); border-radius:5px; padding:2px 6px; font-variant-numeric:tabular-nums; }
.model-app .product-search,.graphics-workspace .library-sidebar .library-search { display:flex; align-items:center; gap:8px; min-height:42px; padding:7px 10px; margin:0 12px 12px; border:1px solid var(--ui-line); border-radius:8px; background:var(--ui-surface-muted); color:var(--ui-muted); }
.model-app .product-search:focus-within,.graphics-workspace .library-search:focus-within { border-color:var(--ui-focus); box-shadow:0 0 0 3px #238caa12; }
.model-app .product-search input,.graphics-workspace .library-sidebar .library-search input { width:100%; min-width:0; min-height:24px; font-size:12px; line-height:1.5; padding:0; outline:none; background:transparent; }
:is(.model-app .product-search,.graphics-workspace .library-search) kbd { flex:none; padding:0 5px; border:1px solid var(--ui-line); border-radius:4px; background:var(--ui-surface); color:var(--ui-subtle); font:11px/19px var(--font); }
:is(.model-app .product-search,.graphics-workspace .library-search):has(.workspace-search-clear:not([hidden])) kbd { display:none; }
:is(.model-app,.graphics-workspace) .workspace-search-clear { display:grid; place-items:center; flex:none; min-width:28px; width:28px; min-height:28px; height:28px; padding:0; background:transparent; border:0; border-radius:5px; color:var(--ui-muted); font-size:20px; line-height:1; }
.model-app .product-list { padding:0 10px 14px; }
.model-app .product-group { border:0; margin-bottom:5px; }
.model-app .product-group>summary { min-height:42px; padding:10px 9px; color:var(--ui-muted); border-bottom:0; font-size:11px; font-weight:700; letter-spacing:0; }
.model-app .product-button { position:relative; min-height:40px; padding:9px 12px; margin:2px 0; border-radius:7px; font-size:12px; line-height:1.5; color:var(--ui-muted); }
.model-app .product-button[aria-pressed=true] { background:var(--ui-selected); border-color:var(--ui-line); color:var(--ui-navy); font-weight:650; box-shadow:none; }
.model-app .product-button:hover:not([aria-pressed=true]) { background:var(--ui-surface-muted); border-color:transparent; }
.model-app .source-note,.graphics-workspace .library-sidebar-note { padding:12px 16px; background:var(--ui-surface-muted); border-top:1px solid var(--line); font-size:11px; }
.model-app .source-note :is(.source-label,p),.graphics-workspace .library-sidebar-note p { display:none; }
.model-app .source-note>a,.graphics-workspace .library-sidebar-note>a { color:var(--ui-muted); font-size:11px; }
.model-app .sidebar-request { min-height:32px; margin-top:10px; border-color:transparent; background:transparent; text-align:left; padding:3px 0; color:var(--ui-muted); font-size:11px; }

/* Graphics collections own their filters; the map toolbar only owns the map. */
.graphics-workspace .library-sidebar>.graphics-collection-control { display:grid; gap:5px; flex:none; padding:0 12px; margin:0 0 12px; max-width:none; }
.graphics-workspace .library-sidebar>.graphics-collection-control>span { font-size:10px; color:var(--muted); font-weight:600; }
.graphics-workspace .library-sidebar>.graphics-collection-control select { width:100%; min-height:38px; height:38px; border:1px solid var(--ui-line); border-radius:7px; padding:7px 28px 7px 10px; background:var(--ui-surface); color:var(--ink); font-size:12px; }
.graphics-workspace .sidebar-filter-panel { flex:none; margin:0 12px 8px; border:1px solid var(--line); border-radius:7px; }
.graphics-workspace .sidebar-filter-panel>summary { cursor:pointer; padding:9px 10px; color:var(--ui-muted); font-size:11px; font-weight:600; }
.graphics-workspace .sidebar-filters { display:grid; gap:10px; padding:2px 10px 10px; }
.graphics-workspace .sidebar-filters :is(label,.library-weather-options) { display:grid; gap:4px; margin:0; padding:0; }
.graphics-workspace .sidebar-filters label>span { font-size:10px; color:var(--muted); }
.graphics-workspace .sidebar-filters select { width:100%; min-height:36px; border:1px solid var(--line); border-radius:6px; background:var(--ui-surface-muted); color:var(--ink); font-size:12px; padding:5px 20px 5px 8px; }
.graphics-workspace .graphics-library-context { display:flex; align-items:center; justify-content:space-between; flex:none; gap:8px; min-height:34px; padding:4px 15px 8px; color:var(--ui-muted); font-size:10px; }
.graphics-workspace .graphics-library-context button { border:0; min-height:28px; padding:2px; background:transparent; color:var(--ui-muted); font-size:10px; white-space:nowrap; }
.graphics-workspace[data-graphics-searching] #graphics-collapse-groups { display:none; }
.graphics-workspace .library-sidebar #graphics-grid { padding:0 9px 14px; }
.graphics-workspace .graphics-product-group { border:0; padding:0; margin:0 0 5px; }
.graphics-workspace .graphics-product-group>summary { display:flex; align-items:center; gap:8px; min-height:42px; padding:9px 9px; border-radius:7px; color:var(--ui-muted); font-size:12px; font-weight:650; }
.graphics-workspace .graphics-product-group>summary:hover { background:var(--ui-surface-muted); }
.graphics-workspace .graphics-product-group>summary:after { content:'›'; display:block; margin-left:0; color:var(--ui-muted); font-size:19px; line-height:1; transition:transform .15s; }
.graphics-workspace .graphics-product-group[open]>summary:after { transform:rotate(90deg); }
.graphics-workspace .graphics-product-group:has([aria-pressed=true])>summary { color:var(--ui-navy); }
.graphics-workspace .graphics-group-count { margin-left:auto; padding:1px 6px; color:var(--ui-muted); background:var(--ui-surface-muted); border-radius:4px; font-size:10px; font-weight:500; font-variant-numeric:tabular-nums; }
.graphics-workspace .graphics-product-family { margin:0 0 7px 8px; padding-left:8px; border-left:1px solid var(--ui-line); }
.graphics-workspace .graphics-product-family h4 { margin:12px 9px 6px; color:var(--ui-muted); font:650 10px/1.5 var(--font); letter-spacing:.02em; }
.graphics-workspace .graphics-product-period { border:0; margin:0; padding:0; }
.graphics-workspace .graphics-product-period>summary { display:flex; align-items:center; justify-content:space-between; min-height:34px; padding:7px 10px; color:var(--ui-muted); cursor:pointer; list-style:none; font-size:11px; font-weight:650; }
.graphics-workspace .graphics-product-period>summary::-webkit-details-marker { display:none; }
.graphics-workspace .graphics-product-period>summary:after { content:'›'; color:var(--ui-muted); font-size:16px; }
.graphics-workspace .graphics-product-period[open]>summary:after { transform:rotate(90deg); }
.graphics-workspace .graphics-product-period>div { padding:0 0 5px 5px; }
.graphics-workspace .graphic-product-row { min-height:38px; margin:2px 0; padding:8px 10px; color:var(--ui-muted); border:1px solid transparent; border-radius:7px; background:transparent; }
.graphics-workspace .graphic-product-title { font-size:12px; line-height:1.5; font-weight:500; overflow-wrap:normal; }
.graphics-workspace .graphic-product-row:hover { background:var(--ui-surface-muted); border-color:transparent; }
.graphics-workspace .graphic-product-row[aria-pressed=true] { background:var(--ui-selected); border-color:var(--ui-line); color:var(--ui-navy); box-shadow:none; }
.graphics-workspace .graphic-product-row[aria-pressed=true] .graphic-product-title { font-weight:650; }
.graphics-workspace .graphic-product-selected { display:none; }
.graphics-workspace :is(.graphics-empty,.graphics-group-empty,.library-loading) { font-size:12px; line-height:1.7; padding:14px 9px; color:var(--muted); }

/* The viewer has a title, quiet status, and a generous uninterrupted map. */
.model-app .parameter-preload,.graphics-workspace .graphics-preload { min-height:30px; padding:4px 15px; gap:12px; background:var(--ui-surface-muted); font-size:10px; color:var(--ui-muted); }
.model-app .parameter-preload.complete { background:var(--ui-surface); }
#parameter-preload progress,#graphic-preload progress { accent-color:var(--ui-accent); }
#parameter-preload progress::-webkit-progress-value,#graphic-preload progress::-webkit-progress-value { background:var(--ui-accent); }
#parameter-preload progress::-moz-progress-bar,#graphic-preload progress::-moz-progress-bar { background:var(--ui-accent); }
.model-app .timeline-buffer .ready { background:#6e8eac; }
.model-app .parameter-preload button,.graphics-workspace .graphics-preload button { min-height:24px; padding:3px 7px; font-size:10px; border-color:var(--line); }
.model-app .map-stage,.graphics-workspace .graphic-viewer-stage { background:var(--ui-selected); }
.graphics-workspace .graphic-viewer-controls:has(>:not([hidden])) { padding:7px 14px; background:var(--ui-surface-muted); border-bottom:1px solid var(--line); }
.graphics-workspace .graphic-viewer-products { display:flex; flex-wrap:nowrap; gap:5px; overflow-x:auto; scrollbar-width:thin; max-width:100%; }
.graphics-workspace .graphic-viewer-products button,.graphics-workspace .graphic-viewer-modes button { flex:none; min-height:32px; padding:6px 11px; color:var(--ui-muted); border:1px solid transparent; border-radius:6px; background:transparent; font-size:11px; }
.graphics-workspace .graphic-viewer-products button[aria-pressed=true],.graphics-workspace .graphic-viewer-modes button[aria-pressed=true] { color:var(--ui-accent); border-color:var(--ui-selected-line); background:var(--ui-selected); font-weight:700; }
.graphics-workspace .graphic-viewer-toolbar { display:flex; flex-wrap:nowrap; align-items:center; min-height:46px; padding:6px 13px; }
.graphics-workspace .graphic-viewer-navigation .icon-button { width:34px; height:34px; min-height:34px; background:var(--ui-surface); }
.graphics-workspace #graphic-viewer-counter { min-width:50px; color:var(--ui-muted); font-size:11px; }
.graphics-workspace .viewer-action { min-height:32px; height:32px; padding:6px 10px; font-size:11px; }
.graphics-workspace .graphic-viewer-note { min-height:24px; padding:5px 14px; background:var(--ui-surface-muted); color:var(--ui-muted); font-size:10px; }
.graphics-workspace-meta,.graphics-workspace :is(.graphics-update,.graphics-count) { font-size:10px; color:var(--ui-muted); }
.graphics-workspace .library-footer { min-height:26px; font-size:9px; background:var(--bg); border-top:0; }
.graphics-workspace .library-footer a { font-size:10px; }
.model-app .map-meta { min-height:26px; padding-inline:14px; color:var(--ui-muted); font-size:10px; }
.model-app .graphic-actions :is(a,button) { font-size:10px; }
.model-app .timeline { border-top:1px solid var(--line); background:var(--ui-surface-muted); }
.model-app .forecast-validity .time-value strong { color:var(--ui-ink); font-size:12px; }
.model-app .forecast-validity .time-value>span { color:var(--ui-muted); font-size:10px; }
.model-app .time-label { font-size:9px; letter-spacing:.05em; }
.model-app .frame-badge { border-color:var(--ui-line); background:var(--ui-surface-muted); color:var(--ui-accent); font-size:11px; }
.model-app .display-options { min-height:36px; padding-inline:14px; border-top:1px solid var(--line); color:var(--ui-muted); gap:16px; }
.model-app .display-options label,.model-app .display-options .text-button { font-size:11px; }
.model-app .display-options>span { font-size:9px; color:var(--ui-subtle); letter-spacing:.04em; }
.model-app .placeholder { color:var(--muted); font-size:12px; line-height:1.7; padding:14px 8px; }

@media(min-width:1400px) {
  :is(.model-app,.graphics-workspace) .forecast-header-inner { min-height:68px; }
}
@media(max-width:1399px) {
  .model-app .forecast-header .site-head { height:62px; min-height:62px; }
  .graphics-workspace .forecast-header .library-header { padding:4px 0 10px; }
}
@media(min-width:1000px) and (max-width:1199px) {
  .model-app .workspace { grid-template-columns:224px minmax(0,1fr); gap:12px; }
  .graphics-workspace .library-workspace { grid-template-columns:244px minmax(0,1fr); gap:12px; }
  .model-app .forecast-validity { gap:10px; }
  .model-app .timeline { grid-template-columns:175px 220px minmax(0,1fr) 66px; gap:0 9px; }
}
@media(max-width:999px) {
  .model-app .workspace { display:flex; flex-direction:column; gap:10px; }
  .model-app .sidebar-head,.model-app .product-search,.model-app .product-list,.model-app .source-note { display:none; }
  .model-app .mobile-product { min-height:42px; padding:3px 12px; }
  .model-app .heading-actions .compare-button>span { display:none; }
  .model-app .heading-actions .compare-button { min-width:36px; width:36px; padding:8px; }
  .model-app .all-models { flex-basis:145px; }
  .model-app .run-control { flex:1 1 160px; }
  .model-app .model-bar>.region-control { flex:1 1 160px; }
  .model-app .heading-actions { gap:5px; }
  .model-app .display-options { gap:10px; padding-inline:10px; }
  .graphics-workspace .library-workspace { grid-template-columns:230px minmax(0,1fr); gap:12px; }
  .graphics-workspace .graphics-preload { grid-template-columns:minmax(0,1fr) 70px auto; gap:8px; }
  .graphics-workspace .graphics-preload>div { display:grid; gap:1px; }
}
@media(max-width:760px) {
  .graphics-workspace .graphics-topbar { display:flex; flex-wrap:nowrap; gap:10px; align-items:center; }
  .graphics-workspace .workspace-page-title { display:none; }
  .graphics-workspace .graphics-selection { display:flex; flex:1; min-width:0; }
  .graphics-workspace .graphics-region-label { min-width:0; flex:1; }
  .graphics-workspace .graphics-region-button { min-height:40px; height:40px; }
  .graphics-workspace .graphics-header-actions { flex:none; gap:5px; }
  .graphics-workspace .graphics-header-actions #graphic-share { display:none; }
  .graphics-workspace .graphics-header-actions #graphic-save { min-height:40px; padding:8px 12px; font-size:12px; }
  .graphics-workspace .graphics-header-actions #graphic-save svg { display:block; }
  .graphics-workspace .graphics-header-actions #graphics-refresh { width:36px; }
  .graphics-workspace .library-main { padding:8px; }
  .graphics-workspace .library-workspace { display:flex; }
  .graphics-workspace .graphics-product-toggle { min-height:44px; padding:10px 12px; font-size:12px; border-radius:8px; }
  .graphics-workspace .graphic-viewer-stage { padding:6px; }
  .graphics-workspace .graphic-viewer-controls:has(>:not([hidden])) { padding:6px 10px; }
  .graphics-workspace .graphic-viewer-toolbar { min-height:48px; padding:6px 10px; }
  .graphics-workspace .graphic-viewer-navigation { min-width:0; flex:1; gap:4px; }
  .graphics-workspace #graphic-viewer-counter { min-width:34px; }
  .graphics-workspace .viewer-action { padding-inline:7px; font-size:10px; white-space:nowrap; }
  .graphics-workspace .graphic-viewer-note { display:none; }
  .graphics-workspace .library-footer { display:none; }
  .graphics-workspace .graphics-workspace-meta { min-height:20px; }
  .graphics-workspace .graphics-count { display:none; }
  .graphics-workspace[data-products-open] .library-sidebar { inset:8px auto 8px 8px; width:min(340px,calc(100vw - 16px)); border-radius:12px; }
  .graphics-workspace .graphics-products-close { right:12px; top:12px; width:36px; height:36px; min-height:36px; }
  .graphics-workspace .library-sidebar .library-search { min-height:44px; }
  .graphics-workspace .library-sidebar .library-search input { min-height:26px; font-size:16px; }
  .graphics-workspace .graphics-product-group>summary,.graphics-workspace .graphic-product-row { min-height:44px; }
  .graphics-workspace .graphic-product-title { font-size:13px; }
  .graphics-workspace .graphics-library-context { min-height:38px; font-size:11px; }
  .graphics-workspace .graphics-library-context button { min-height:36px; }
  .graphics-workspace .library-sidebar>.graphics-collection-control select { min-height:42px; font-size:13px; }
}
@media(max-height:700px) and (min-width:651px) {
  .model-app .parameter-preload { min-height:25px; padding-block:2px; }
  .model-app .display-options { min-height:30px; }
}
@media(prefers-reduced-motion:reduce) {
  :is(.model-app,.graphics-workspace) *, :is(.model-app,.graphics-workspace) *::after { scroll-behavior:auto; transition:none; }
}
