/* Independent forecast-map workspace; site shell and baseline typography stay shared. */
body.forecast-map-page.unified-page .forecast-map-main{box-sizing:border-box;width:100%;max-width:1920px;margin:0 auto;padding:19px 22px 30px}
.forecast-map-heading{display:flex;align-items:end;min-height:64px;margin:0 0 11px;border-bottom:1px solid var(--rule,#d0dcdd)}
.forecast-map-heading .page-title-row{display:flex;align-items:baseline;gap:18px;width:100%;padding:0 0 13px}
.forecast-map-heading h1{margin:0;font-size:28px;font-weight:620;line-height:1.2;white-space:nowrap}
.forecast-map-heading .page-title-note{font-size:13px;line-height:1.5;color:#667d80}
.forecast-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:20px;align-items:stretch}
.forecast-map-workspace{min-width:0}
.forecast-map-controls{display:flex;flex-wrap:wrap;align-items:center;gap:9px 14px;min-height:44px;margin:0 0 8px}
.forecast-map-control{display:flex;align-items:center;gap:7px;min-width:0;color:#647c80;font-size:12px;white-space:nowrap}
.forecast-map-control>span{font-size:12px}
.forecast-map-control select{height:36px;max-width:210px;padding:0 9px;border:1px solid #c3d2d3;border-radius:0;background:#fff;color:#233b41;font:400 13px MiSans,sans-serif}
.forecast-map-control #forecast-map-step{max-width:225px}
.forecast-map-segment{display:inline-flex;max-width:100%;vertical-align:middle}
.forecast-map-segment button{box-sizing:border-box;min-height:36px;margin-left:-1px;padding:6px 11px;border:1px solid #c3d2d3;border-radius:0;background:#fff;color:#405963;font:400 13px MiSans,sans-serif;white-space:nowrap;cursor:pointer}
.forecast-map-segment button:first-child{margin-left:0}
.forecast-map-segment button[aria-pressed=true]{position:relative;border-color:#bd4235;background:#bd4235;color:#fff}
.forecast-map-segment button:focus-visible,.forecast-map-control select:focus-visible{outline:2px solid #157d88;outline-offset:2px}
.forecast-map-segment button:not([aria-pressed=true]):hover{background:#f8eae4;color:#9c332d}
.forecast-map-timeline{min-height:31px;display:flex;align-items:center;gap:8px;margin:0 0 7px;color:#527077;font-size:12px;line-height:1.45}
.forecast-map-frame{position:relative;overflow:hidden;border:1px solid #c8d6d7;background:#e8f0ee}
#forecast-map{height:clamp(440px,calc(100svh - 290px),820px);min-height:440px;width:100%;cursor:crosshair}
.forecast-map-frame .leaflet-container{background:#e8f0ee}
.forecast-map-loading{position:absolute;top:12px;left:50%;z-index:700;max-width:calc(100% - 24px);padding:8px 13px;transform:translateX(-50%);border:1px solid #c1d0d0;background:rgba(255,255,255,.94);color:#425b62;font-size:12px;pointer-events:none}
.forecast-map-loading[hidden]{display:none}
.forecast-map-legend{display:grid;grid-template-columns:150px minmax(0,1fr);gap:6px 13px;align-items:center;padding:9px 0 0;color:#62777b;font-size:11px}
.forecast-map-legend>span{grid-row:span 2;font-size:12px}
.forecast-map-colorbar{height:12px;border:1px solid rgba(32,63,72,.14)}
.forecast-map-colorbar[data-product=upper]{background:linear-gradient(90deg,#6541af,#385bd1,#27a8df,#79d6a0,#f5d345,#ee7335,#d82c53,#b31668)}
.forecast-map-colorbar[data-product=surface]{background:linear-gradient(90deg,#dceef1,#59c1dc,#2969ba,#9460bd,#e66862,#ee9a3e,#f3ce46)}
.forecast-map-ticks{display:flex;justify-content:space-between;gap:4px;font:10px MiSans,sans-serif}
.forecast-map-credit{margin:8px 0 0;color:#77898b;font-size:10px;line-height:1.6}
.forecast-map-sidebar{display:flex;flex-direction:column;min-width:0;padding:4px 0 0 18px;border-left:1px solid #cedadb}
.forecast-map-sidebar h2{margin:0 0 16px;font-size:22px;font-weight:610;line-height:1.3}
.forecast-map-sidebar>p{margin:0 0 16px;color:#667d80;font-size:13px;line-height:1.75}
.forecast-map-point-mode{padding:15px 0;border-top:1px solid #d5e0e0;border-bottom:1px solid #d5e0e0}
.forecast-map-point-mode>span{display:block;margin-bottom:10px;color:#647c80;font-size:12px}
.forecast-map-point-mode .forecast-map-segment{display:flex}
.forecast-map-point-mode button{flex:1;padding-inline:5px}
.forecast-map-sidebar .forecast-map-selection{margin:16px 0 4px;color:#293f46;font-size:14px;font-weight:550}
.forecast-map-sidebar .forecast-map-query-status{min-height:2.2em;margin:0 0 16px;color:#a45736;font-size:12px;line-height:1.6}
.forecast-map-sidebar-links{display:flex;flex-direction:column;gap:8px}
.forecast-map-sidebar-links a{width:max-content;max-width:100%;color:#366b92;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.forecast-map-sidebar .forecast-map-ready{margin-top:auto;padding-top:17px;border-top:1px solid #d5e0e0;font-size:12px}
.forecast-series-dialog{box-sizing:border-box;position:fixed;width:min(calc(100vw - 24px),1560px);max-width:none;max-height:calc(100dvh - 24px);padding:17px;border:1px solid #bdccce;border-radius:0;background:#fff;box-shadow:0 24px 70px #22384444;overflow:auto}
.forecast-series-dialog::backdrop{background:rgba(31,46,49,.39)}
.forecast-series-dialog header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:9px}
.forecast-series-dialog header h2{margin:0;font-size:22px}
.forecast-series-dialog header p:last-child{margin:5px 0;color:#657a7e;font-size:12px}
.forecast-series-dialog header button{min-width:62px;min-height:35px;border:1px solid #bfcdcf;background:#fff;color:#344d54;cursor:pointer}
.forecast-series-chart-wrap{overflow:auto}
#forecast-series-chart{display:block;width:100%;min-width:820px;height:auto}
@media(max-width:1160px){.forecast-map-layout{grid-template-columns:minmax(0,1fr) 240px;gap:13px}.forecast-map-control--product{flex-basis:100%}.forecast-map-sidebar{padding-left:13px}}
@media(max-width:820px){body.forecast-map-page.unified-page .forecast-map-main{padding:14px 13px 26px}.forecast-map-heading .page-title-row{flex-wrap:wrap;gap:4px 10px}.forecast-map-heading h1{font-size:25px}.forecast-map-heading .page-title-note{font-size:12px}.forecast-map-layout{grid-template-columns:1fr}.forecast-map-controls{gap:8px}.forecast-map-control--product{flex-basis:auto}.forecast-map-sidebar{padding:13px 0 0;border-left:0;border-top:1px solid #cedadb}.forecast-map-sidebar h2{margin-bottom:7px;font-size:19px}.forecast-map-sidebar .forecast-map-ready{margin-top:15px}.forecast-map-point-mode .forecast-map-segment{max-width:330px}#forecast-map{height:62svh;min-height:390px}.forecast-map-legend{grid-template-columns:1fr}.forecast-map-legend>span{grid-row:auto}body.forecast-map-page.unified-page .profile-view{grid-template-columns:1fr}.forecast-series-dialog{padding:12px}}
@media(max-width:480px){.forecast-map-control{flex-wrap:wrap}.forecast-map-control select{max-width:175px}.forecast-map-segment button{font-size:12px;padding-inline:8px}.forecast-map-timeline{font-size:11px}#forecast-map{min-height:360px;height:58svh}.forecast-map-credit{font-size:9px}}

/* v4.3.1: forecast charts use the analysis page's actual grid, panel and image skeleton. */
body.forecast-map-page.analysis-page.unified-page .forecast-map-main{width:min(100%,1800px);max-width:none;margin:0 auto;padding:0 clamp(14px,2vw,28px) 12px;grid-template-columns:minmax(0,1fr) 250px;gap:18px}
body.forecast-map-page.analysis-page.unified-page .forecast-map-workspace{min-width:0;display:block}
body.forecast-map-page.analysis-page.unified-page .panel-heading{align-items:center;min-height:45px;margin:0 0 12px;padding:0 0 6px;border-bottom:1px solid var(--rule)}
.forecast-map-page .panel-heading .page-title-row{min-width:0;display:flex;align-items:baseline;gap:14px}
.forecast-map-page .panel-heading .page-title-row h1{white-space:nowrap}
.forecast-map-page .panel-heading .page-title-note{font-size:12px;line-height:1.4;white-space:normal}
.forecast-map-page .forecast-map-time-picker.archive-picker{display:grid;flex:0 0 auto}
body.forecast-map-page.home-controls .weather-region-dock.forecast-map-primary{display:grid!important;grid-template-columns:146px auto minmax(0,1fr) auto;column-gap:10px;align-items:center;min-height:36px;margin:0 0 4px!important}
.forecast-map-page .forecast-map-primary .scope-picker{grid-column:1;grid-row:1;margin:0}
.forecast-map-page .forecast-map-primary #weather-product-categories{grid-column:2;grid-row:1}
.forecast-map-page .forecast-map-step-picker{grid-column:3;grid-row:1;justify-self:end;display:flex;align-items:center;gap:6px;color:var(--ink-soft);font-size:12px;white-space:nowrap}
.forecast-map-page .forecast-map-step-picker select{box-sizing:border-box;height:36px;min-width:180px;max-width:215px;padding:3px 9px;border:1px solid #c7d5d6;border-radius:0;background:#fff;color:var(--ink);font:var(--product-control-font,400 13px MiSans,sans-serif)}
.forecast-map-page .forecast-map-primary #forecast-map-export-jpg{grid-column:4;grid-row:1;box-sizing:border-box;height:36px;min-height:36px;padding:5px 12px;border:1px solid #c8d1d2;border-radius:0;background:#fff;color:#53636a;font:var(--product-control-font,400 13px MiSans,sans-serif);cursor:pointer}
.forecast-map-page .forecast-map-primary #forecast-map-export-jpg:hover{color:#9d3c31;text-decoration:underline;text-underline-offset:4px}
.forecast-map-page #weather-product-categories button:disabled{opacity:.5;cursor:not-allowed}
body.forecast-map-page.home-controls #weather-product-browser{box-sizing:border-box;position:relative;display:flex!important;align-items:center;width:100%;height:46px;min-height:46px;margin:0;padding:6px 236px 6px 0;gap:8px}
.forecast-map-page .forecast-map-analysis-choices,.forecast-map-page .forecast-map-element-choices{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
.forecast-map-page [data-category-panel][hidden]{display:none!important}
.forecast-map-page .forecast-map-analysis-choices>span{margin-left:auto;color:#647f82;font-size:11px;white-space:nowrap}
html[lang=en] .forecast-map-page .forecast-map-analysis-choices>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.forecast-map-page .forecast-map-element-choices label{display:flex;align-items:center;gap:5px;color:#647f82;font-size:12px;white-space:nowrap}
.forecast-map-page .forecast-map-element-choices select{min-width:100px;border:1px solid #c7d5d6;background:#fff;color:#344e55}
.forecast-map-page #forecast-map-element-name{margin-left:auto;color:#647f82;font-size:11px}
.forecast-map-page .forecast-map-display-controls{position:absolute;right:0;top:50%;display:flex;gap:5px;transform:translateY(-50%)}
body.forecast-map-page.analysis-page.unified-page .forecast-map-stage{aspect-ratio:1.606;margin:0;background:#fff}
.forecast-map-page .forecast-map-canvas{position:absolute;inset:0}
.forecast-map-page #forecast-map-image{object-fit:fill}
.forecast-map-page .forecast-map-stations{position:absolute;top:0;left:0;z-index:5;width:100%;height:80.30%;pointer-events:none;overflow:hidden}
.forecast-map-page .forecast-map-stations[hidden]{display:none!important}
.forecast-map-page #forecast-map-image[hidden]+.forecast-map-stations{display:none}
.forecast-map-page .forecast-map-station{position:absolute;width:0;height:0;pointer-events:none}
.forecast-map-page .forecast-map-station svg{position:absolute;left:0;top:0;display:block;width:var(--station-model-size,60px);height:var(--station-model-size,60px);overflow:visible;transform:translate(-50%,-50%);filter:drop-shadow(0 0 .6px #fff)}
.forecast-map-page .forecast-map-station svg>circle{stroke:#fff;stroke-width:3;paint-order:stroke fill}
.forecast-map-page #forecast-map-hit{position:absolute;top:0;left:0;z-index:4;display:block;width:100%;height:80.30%;margin:0;padding:0;border:0;border-radius:0;background:transparent;cursor:crosshair}
.forecast-map-page #forecast-map-hit:hover,.forecast-map-page #forecast-map-hit:focus-visible{background:transparent}
.forecast-map-page #forecast-map-marker{position:absolute;width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:#c72330;box-shadow:0 0 0 1px #831720;transform:translate(-50%,-50%);pointer-events:none}
.forecast-map-page #forecast-map-marker[hidden]{display:none}
.forecast-map-page .forecast-map-loading{z-index:6;top:12px}
.forecast-map-page .map-attribution{min-height:20px;margin:0;padding:6px 0 0;text-align:right;font-size:10px;color:var(--ink-soft)}
.forecast-map-page .forecast-map-credit{margin:4px 0 0;color:var(--ink-soft);font-size:10px}
body.forecast-map-page.analysis-page.unified-page .forecast-map-sidebar{box-sizing:border-box;display:flex;flex-direction:column;min-height:620px;padding:3px 0 0 18px;border-left:1px solid var(--rule)!important}
.forecast-map-page.analysis-page.unified-page .forecast-map-sidebar h2{margin:0;font-size:24px!important;font-weight:500;line-height:1.5}
.forecast-map-page .forecast-map-sidebar>p{font-size:12px;line-height:1.65}
.forecast-map-page .forecast-map-sidebar .side-panel__top{margin-bottom:18px}
.forecast-map-page .forecast-map-point-mode{padding:12px 0}
.forecast-map-page .forecast-map-point-mode .forecast-map-segment{width:100%}
.forecast-map-page .forecast-map-point-mode .forecast-map-segment button{min-height:35px;font:400 12px MiSans,"Microsoft YaHei",sans-serif}
.forecast-map-page .forecast-map-point-mode .forecast-map-segment button[aria-pressed=true]{border-color:#d4ad56;background:var(--ui-yellow,#ffe38d);color:#51432d}
/* Match the actual homepage export/control type (12 px at current breakpoints). */
.forecast-map-page{--product-control-font:400 12px MiSans,"Microsoft YaHei",sans-serif}
.forecast-map-page .forecast-map-step-picker,.forecast-map-page .forecast-map-step-picker select,.forecast-map-page .forecast-map-primary #forecast-map-export-jpg{font:var(--product-control-font)}
.forecast-map-page .forecast-map-step-picker{gap:8px}

.forecast-map-page.home-controls #weather-product-browser .forecast-map-display-controls button[aria-pressed="true"],.forecast-map-page.home-controls #weather-product-browser .forecast-map-display-controls button[aria-pressed="true"]:hover{background:#f6e7e2!important;border-color:#ce9a8f!important;color:#9d3c31!important}
.forecast-map-page .forecast-map-viewer-settings{margin-top:15px}
.forecast-map-page .forecast-map-viewer-settings>span{display:block;margin-bottom:8px;color:#647c80;font-size:12px}
.forecast-map-page .forecast-map-viewer-settings .viewer-switch button{min-height:35px;border-radius:0;font:400 12px MiSans,"Microsoft YaHei",sans-serif}
.forecast-map-page .forecast-map-viewer-settings .viewer-switch button.is-active{background:var(--ui-yellow,#ffe38d);border-color:#d4ad56;color:#51432d}
.forecast-map-page .forecast-map-viewer-settings[hidden]{display:none!important}
.forecast-map-page .forecast-map-query-button{box-sizing:border-box;width:100%;min-height:40px;margin:5px 0 12px;border:1px solid #bd4235;border-radius:0;background:#bd4235;color:#fff;font:400 12px MiSans,"Microsoft YaHei",sans-serif;cursor:pointer}
.forecast-map-page .forecast-map-query-button:hover:not(:disabled){background:#a7352a}
.forecast-map-page .forecast-map-query-button:disabled{border-color:#c8d1d2;background:#edf0f0;color:#71868a;cursor:not-allowed}
/* All forecast controls use the same type size as the live analysis workbench. */
body.forecast-map-page.home-controls .forecast-map-primary .scope-picker select,
body.forecast-map-page.home-controls #weather-product-categories button,
body.forecast-map-page.home-controls #weather-product-browser [data-product],
body.forecast-map-page.home-controls #weather-product-browser [data-forecast-toggle]{font:var(--product-control-font)!important}
@media(min-width:1101px) and (max-height:1100px) and (min-aspect-ratio:16/10){
 body.forecast-map-page.analysis-page.unified-page{padding-top:64px}
 body.forecast-map-page.analysis-page.unified-page .panel-heading{min-height:35px;margin-bottom:2px;padding-bottom:0}
 body.forecast-map-page.home-controls .weather-region-dock.forecast-map-primary{grid-template-columns:146px auto minmax(0,1fr) auto;margin-bottom:2px!important}
 body.forecast-map-page.home-controls #weather-product-browser{height:32px;min-height:32px;padding:1px 236px 1px 0}
 .forecast-map-page .forecast-map-analysis-choices>span,.forecast-map-page #forecast-map-element-name{font-size:10px}
 .forecast-map-page .forecast-map-primary .scope-picker,.forecast-map-page .forecast-map-primary .scope-picker select,.forecast-map-page .forecast-map-step-picker select,.forecast-map-page .forecast-map-primary #forecast-map-export-jpg{height:32px;min-height:32px}
}
@media(max-width:900px){
 body.forecast-map-page.analysis-page.unified-page .forecast-map-main{grid-template-columns:1fr;gap:14px}
 body.forecast-map-page.analysis-page.unified-page .forecast-map-sidebar{min-height:0;padding:15px 0 0;border-left:0!important;border-top:1px solid var(--rule)!important}
}
@media(max-width:650px){
 .forecast-map-page.analysis-page.unified-page .forecast-map-sidebar h2{font-size:22px!important}
 .forecast-map-page .forecast-map-station:not([data-station-priority]){display:none}
 .forecast-map-page .panel-heading .page-title-row{flex-wrap:wrap;gap:3px 8px}
 .forecast-map-page .panel-heading .page-title-note{font-size:11px}
 .forecast-map-time-picker{width:100%}
 body.forecast-map-page.home-controls .weather-region-dock.forecast-map-primary{grid-template-columns:1fr auto;row-gap:6px}
 .forecast-map-page .forecast-map-primary .scope-picker{grid-column:1;grid-row:1}
 .forecast-map-page .forecast-map-primary #forecast-map-export-jpg{grid-column:2;grid-row:1}
 .forecast-map-page .forecast-map-primary #weather-product-categories{grid-column:1/-1;grid-row:2}
 .forecast-map-page .forecast-map-step-picker{grid-column:1/-1;grid-row:3;justify-self:start}
 body.forecast-map-page.home-controls #weather-product-browser{height:auto;min-height:70px;padding:6px 0 36px}
 .forecast-map-page .forecast-map-display-controls{right:0;top:auto;bottom:2px;transform:none}
 .forecast-map-page .forecast-map-analysis-choices{flex-wrap:wrap}
 .forecast-map-page .forecast-map-analysis-choices>span{flex:1 1 100%;text-align:right;white-space:normal}
 .forecast-map-page .forecast-map-element-choices{flex-wrap:wrap}
 .forecast-map-page #forecast-map-element-name{display:none}
 body.forecast-map-page.analysis-page.unified-page .forecast-map-stage{aspect-ratio:auto;min-height:340px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
 body.forecast-map-page.analysis-page.unified-page .forecast-map-canvas{position:relative;inset:auto;width:max(100%,600px);min-height:340px;overflow:visible}
 body.forecast-map-page.analysis-page.unified-page #forecast-map-image{position:relative;inset:auto;display:block;width:100%;height:auto;object-fit:contain}
 body.forecast-map-page.analysis-page.unified-page #forecast-map-image[hidden]{display:none}
}


/* Keep the forecast heading and paired control rows identical to the live page. */
body.forecast-map-page.analysis-page.unified-page .panel-heading h1{font-size:clamp(21px,1.7vw,24px);font-weight:680;line-height:1.1}
body.forecast-map-page.home-controls #weather-product-browser .forecast-map-display-controls [data-forecast-toggle]{box-sizing:border-box;height:32px;min-height:32px;padding:4px 9px}
@media(max-width:620px){body.forecast-map-page.analysis-page.unified-page .panel-heading h1{font-size:22px}}
@media(min-width:651px) and (max-width:1300px){body.forecast-map-page.home-controls #weather-product-browser .forecast-map-display-controls [data-forecast-toggle]{padding-inline:6px}}
@media(min-width:1101px) and (max-height:1100px) and (min-aspect-ratio:16/10){body.forecast-map-page.home-controls #weather-product-browser .forecast-map-display-controls [data-forecast-toggle]{height:28px;min-height:28px;padding:2px 6px}}
