/* Reuse Guidance's existing preparation meter in comparison mode. */
[data-hrrr-viewer].is-comparison-mode>.outlook-hrrr-timeline .outlook-hrrr-cache-meter{display:block!important}
[data-hrrr-viewer].is-comparison-mode>.outlook-hrrr-timeline [data-hrrr-cache-label]{display:block!important}

[data-hrrr-viewer].is-comparison-mode>.outlook-hrrr-timeline .outlook-hrrr-cache-meter i{background-color:transparent!important;background-image:var(--comparison-loaded-track,none)!important}

/* Comparison takes ownership on click, before its first weather frame paints.
   Keep the old map as the backdrop, but never expose its overlapping controls. */
html body [data-hrrr-viewer].is-comparison-mode>.outlook-hrrr-image-wrap :is(.ff-guidance-compare,.ff-model-dock-toggle,.outlook-hrrr-phone-draw-dock,.ff-guidance-projection,.ff-model-globe-discovery,.ff-guidance-shortcuts,.ff-phone-observation-tools),
html body [data-hrrr-viewer].is-comparison-mode>.outlook-hrrr-image-wrap :is(.ff-guidance-compare,.ff-model-dock-toggle,.outlook-hrrr-phone-draw-dock,.ff-guidance-projection,.ff-model-globe-discovery,.ff-guidance-shortcuts,.ff-phone-observation-tools) *{visibility:hidden!important;pointer-events:none!important}

/* Only Compare owns the product card, including the first-frame loading interval. */
html body [data-hrrr-viewer].is-comparison-mode>.outlook-hrrr-image-wrap [data-hrrr-hud],
html body [data-hrrr-viewer].is-comparison-mode>.outlook-hrrr-image-wrap [data-hrrr-hud] *{visibility:hidden!important;pointer-events:none!important}

/* Accepted Models section layout within comparison. */
#comparison-parameters .ff-parameter-section{display:block;margin:12px 0 5px;padding-left:12px;color:#bfc5c7;font:600 10px/1.4 Inter,"Segoe UI",sans-serif;text-transform:uppercase}
#comparison-parameters .ff-parameter-items>button{display:block;width:100%;text-align:left}
#comparison-parameters .ff-parameter-items{padding:0 0 8px 12px}

/* Keep the existing shared Models toolbar fixed above the scrolling Compare fields. */
body.has-shared-guidance-chrome main[data-hrrr-viewer]>.controls{margin-top:var(--comparison-shared-tools-height,140px)!important;height:calc(100% - var(--comparison-shared-tools-height,140px))!important}
body.has-shared-guidance-chrome main[data-hrrr-viewer]>.controls>:is(.comparison-workspace-navigation,.blend-tools){display:none!important}

/* Compare uses the same existing pen glyph and readable size as Guidance. */
@layer ff-phone-controls {
html body.is-embedded main[data-hrrr-viewer] .blend-tools [data-draw] :is(.comparison-phone-tool-icon,.workspace-draw-icon){display:inline-flex!important;align-items:center;justify-content:center;width:20px;height:20px;overflow:hidden;font-size:20px!important;font-weight:400!important;line-height:20px!important;}
html body.is-embedded main[data-hrrr-viewer] .blend-tools .workspace-tool[data-workspace-icon="draw"]{padding:3px!important;}
html body.is-embedded main[data-hrrr-viewer] .comparison-workspace-navigation{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;}
html body.is-embedded main[data-hrrr-viewer] .comparison-workspace-navigation>button{grid-column:span 2;min-width:0!important;}
html body.is-embedded main[data-hrrr-viewer] .comparison-workspace-navigation>button:nth-child(-n+2){grid-column:span 3;}
body.is-embedded.has-shared-guidance-chrome main[data-hrrr-viewer]>.controls>.comparison-workspace-navigation{display:none!important;}
}

/* Reserve the same Weather Desk trigger space as ordinary Guidance. The shared
   card's typography, colors and internal layout remain owned by product-card. */
@layer ff-product-card { @media(min-width:900px) and (min-height:621px){
html body.is-embedded main[data-hrrr-viewer] .comparison-product-card.ff-product-card{width:min(var(--ff-product-width,520px),calc(100% - 172px))!important;max-width:calc(100% - 172px)!important;}
} }

/* The outer Guidance viewport owns embedded desktop chrome. Its border can
   make the iframe two pixels narrower at the 900px breakpoint. */
@layer ff-phone-controls {
html body.is-embedded.has-shared-guidance-chrome main[data-hrrr-viewer]{grid-template-columns:var(--comparison-controls-width,250px) minmax(0,1fr) var(--comparison-desk-width,0px)!important;}
html body.is-embedded.has-shared-guidance-chrome.comparison-controls-hidden main[data-hrrr-viewer]{grid-template-columns:0 minmax(0,1fr) var(--comparison-desk-width,0px)!important;}
html body.is-embedded.has-shared-guidance-chrome main[data-hrrr-viewer]>#comparison-models.controls{position:static!important;inset:auto!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;transform:none!important;max-height:none!important;border-radius:0!important;box-shadow:none!important;background:var(--ff-chrome)!important;margin:var(--comparison-shared-tools-height,140px) 0 0!important;height:calc(100% - var(--comparison-shared-tools-height,140px))!important;padding:12px!important;}
html body.is-embedded.has-shared-guidance-chrome.comparison-controls-hidden main[data-hrrr-viewer]>#comparison-models.controls{display:none!important;}
html body.is-embedded.has-shared-guidance-chrome main[data-hrrr-viewer] .comparison-models-heading{display:none!important;}
html body.is-embedded.has-shared-guidance-chrome main[data-hrrr-viewer] #comparison-models #comparison-parameters:not([hidden]){display:grid!important;}
html body.is-embedded.has-shared-guidance-chrome main[data-hrrr-viewer] #comparison-models #product[hidden]{display:none!important;}
html body.is-embedded.has-shared-guidance-chrome main[data-hrrr-viewer] #comparison-models :is(#pair,#erun,#grun){text-align:left!important;}
html body.is-embedded.has-shared-guidance-chrome main[data-hrrr-viewer] .comparison-navigation-dock{position:absolute!important;left:12px!important;bottom:70px!important;z-index:40;display:flex!important;align-items:center;gap:6px;}
html body.is-embedded.has-shared-guidance-chrome main[data-hrrr-viewer] .comparison-navigation-dock>button{position:relative!important;inset:auto!important;display:inline-flex!important;visibility:visible!important;align-items:center;justify-content:center;gap:6px;height:34px;width:34px;min-width:34px;padding:6px;border:1px solid #9e8647!important;border-radius:999px!important;background:#171a19!important;color:#f0f0e9!important;font:600 10px Inter,"Segoe UI",system-ui,sans-serif!important;}
html body.is-embedded.has-shared-guidance-chrome main[data-hrrr-viewer] .comparison-navigation-dock>#return-guidance{width:96px!important;min-width:96px!important;}
html body.is-embedded.has-shared-guidance-chrome main[data-hrrr-viewer] .comparison-navigation-dock svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;}
html body.is-embedded.has-shared-guidance-chrome main[data-hrrr-viewer] .comparison-navigation-dock>#return-guidance>span{display:inline!important;}
}
@layer ff-product-card {
html body.is-embedded.has-shared-guidance-chrome main[data-hrrr-viewer] .comparison-product-card.ff-product-card{width:min(var(--ff-product-width,520px),calc(100% - 172px))!important;max-width:calc(100% - 172px)!important;}
}

@layer ff-phone-controls { html body.is-embedded.has-shared-guidance-chrome main[data-hrrr-viewer]>#comparison-models.controls>*{flex:none!important;min-width:0;box-sizing:border-box;} }

/* Embedded comparison owns these controls from the first visible frame. */
html body [data-hrrr-viewer].is-comparison-mode .ff-guidance-projection{visibility:hidden!important;pointer-events:none!important}
html body.ff-unified-model-comparison .controls>.export-buttons:has(>button:only-child[hidden]){display:none!important}

/* Two complete maps use one existing product card and one shared timeline. */
#pair{color:#edf0f1}
#pair option{background:#161a1d;color:#edf0f1;font:inherit;font-weight:900}
.maparea.has-comparison-panes #comparemap{inset:0 50% 0 0!important;width:50%!important;height:100%!important;clip-path:none!important;pointer-events:auto!important;border-right:1px solid #56606a;box-sizing:border-box}
.maparea.has-comparison-panes #map{inset:0 0 0 50%!important;width:50%!important;height:100%!important}
.comparison-pane-model{position:absolute;z-index:12;right:16px;bottom:75px;pointer-events:none;color:#f5cc61;font:900 22px/1.1 Inter,"Segoe UI",sans-serif;letter-spacing:.04em;text-shadow:0 2px 4px #000,0 0 6px #000}
.comparison-pane-model[data-pane="left"]{right:calc(50% + 16px)}
.comparison-pane-model[hidden]{display:none}
@layer ff-product-card{
.maparea.has-comparison-panes .comparison-product-card .ff-product-card-source>i{display:none!important}
.maparea.has-comparison-panes .comparison-product-card .ff-product-card-source>b{font-size:22px!important;line-height:1.15!important}
}
@media(max-width:599px){
.maparea.has-comparison-panes #comparemap{inset:0 0 50% 0!important;width:100%!important;height:50%!important;border-right:0;border-bottom:1px solid #56606a}
.maparea.has-comparison-panes #map{inset:50% 0 0 0!important;width:100%!important;height:50%!important}
.comparison-pane-model{font-size:18px;right:12px;bottom:116px}
.comparison-pane-model[data-pane="left"]{right:12px;bottom:calc(50% + 12px)}
}
