/* Restore existing controls in the states reported by the owner. */
/* Give the existing title and valid-period values the full Builder sidebar. */
html body .outlook-builder-dialog.is-guidance-builder-preview .outlook-builder-controls>.outlook-fields{grid-template-columns:minmax(0,1fr)!important;}
@media(min-width:900px) and (min-height:621px){
 html body .outlook-builder-dialog.is-guidance-builder-preview .outlook-hrrr-controls .outlook-adjustments{grid-template-columns:minmax(0,1fr)!important;}
}
/* The original date-field focus treatment follows the existing editor when it
   is lifted out of a clipped scrolling sheet. */
.outlook-builder-dialog>.outlook-valid-popover input:focus{border-color:#69d3ef!important;box-shadow:0 0 0 3px rgba(105,211,239,.1)!important;}
@media(max-width:359px){
 .outlook-builder-dialog .outlook-valid-popover .outlook-valid-dates{grid-template-columns:minmax(0,1fr);}
}
@media(max-width:899px),(orientation:landscape) and (max-height:620px){
 html body [data-hrrr-viewer] .ff-desk-tabs>.ff-desk-layer>.ff-desk-select{display:none!important;}
 html body [data-hrrr-viewer] .ff-desk-tabs>.ff-desk-layer>.ff-desk-product-rail{display:grid!important;grid-template-columns:1fr!important;gap:1px!important;}
 html body [data-hrrr-viewer] .ff-desk-tabs>button{position:relative;padding-right:28px!important;}
 html body [data-hrrr-viewer] .ff-desk-tabs>button::after{content:''!important;position:absolute;right:12px;top:50%;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-50%) rotate(-45deg);}
 html body [data-hrrr-viewer] .ff-desk-tabs>button[aria-expanded=true]::after{transform:translateY(-70%) rotate(45deg);}
}
@layer ff-product-card {
  html body .outlook-builder-dialog.is-guidance-standalone [data-hrrr-viewer] .ff-radar-product-card.ff-product-card.is-collapsed{width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important;padding:0!important;gap:0!important;border-radius:50%!important;}
  html body .outlook-builder-dialog.is-guidance-standalone [data-hrrr-viewer] .ff-radar-product-card.ff-product-card.is-collapsed>:not(.ff-product-card-reopen){display:none!important;}
  html body .outlook-builder-dialog.is-guidance-standalone [data-hrrr-viewer] .ff-radar-product-card.ff-product-card.is-collapsed>.ff-product-card-reopen{display:grid!important;place-items:center;width:34px!important;height:34px!important;}
}
/* The existing stream editor stays below the measured original camera header. */
html body [data-hrrr-viewer] .ff-camera-slot > .ff-camera-url{top:calc(var(--ff-camera-header-height,54px) + 6px);}
@layer ff-phone-controls {
 @media(max-width:1199px),(orientation:landscape) and (max-height:620px){
  html body .outlook-builder-dialog.is-guidance-standalone [data-hrrr-viewer] .ff-weather-panel-header.ff-desk-header-complete>.ff-weather-panel-close{border-radius:6px!important;}
 }
 @media(max-width:899px),(orientation:landscape) and (max-height:620px){
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance) [data-hrrr-viewer].ff-outlook-view .ff-guidance-shortcuts{left:calc(10px + 3 * var(--ff-compact-stride,36px))!important;right:auto!important;}
  html body .outlook-builder-dialog.is-guidance-standalone [data-hrrr-viewer] .ff-weather-panel-header.ff-desk-header-complete{flex-basis:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;}
  html body .outlook-builder-dialog.is-guidance-standalone [data-hrrr-viewer] .ff-weather-panel-header.ff-desk-header-complete .ff-desk-masthead{box-sizing:border-box;height:36px!important;min-height:36px!important;padding:4px 8px!important;align-items:center!important;}
  html body .outlook-builder-dialog.is-guidance-standalone [data-hrrr-viewer] .ff-weather-panel-header.ff-desk-header-complete .ff-desk-scan{box-sizing:border-box;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;max-width:24px!important;max-height:24px!important;align-self:center!important;}
 }
}
@media(orientation:landscape) and (max-height:620px){
 html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance) [data-hrrr-viewer].ff-outlook-only{grid-template-rows:46px minmax(0,1fr) 0!important;}
}
@media(orientation:portrait) and (max-width:899px){
 html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance) [data-hrrr-viewer].ff-outlook-only{grid-template-rows:54px minmax(0,1fr) 0!important;}
}
@layer ff-phone-controls {
 @media(orientation:portrait) and (max-width:899px){
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance) [data-hrrr-viewer].ff-observations-active{grid-template-rows:54px minmax(0,1fr)!important;}
 }
}
@layer ff-phone-controls {
 @media(max-width:899px),(orientation:landscape) and (max-height:620px){
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance) [data-hrrr-viewer] .outlook-hrrr-image-wrap .ff-weather-desk-surface{top:8px!important;bottom:8px!important;height:calc(100% - 16px)!important;min-height:0!important;max-height:calc(100% - 16px)!important;}
 }
}
@layer ff-phone-controls {
 html body .outlook-builder-dialog.is-guidance-standalone .outlook-map-stage.is-guidance-active>[data-hrrr-viewer]{height:100%!important;max-height:100%!important;min-height:0!important;}
}
@layer ff-phone-controls {
 @media(max-width:899px),(orientation:landscape) and (max-height:620px){
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance) [data-hrrr-viewer]:not(.is-comparison-mode) .outlook-hrrr-image-wrap :is(.outlook-hrrr-phone-draw-dock,.ff-phone-observation-tools,.ff-guidance-compare,.ff-guidance-shortcuts,.outlook-hrrr-mobile-controls-toggle,.outlook-map-quick-tools){bottom:8px!important;}
 }
 @media(orientation:portrait) and (max-width:899px){
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance) [data-hrrr-viewer]:not(.is-comparison-mode) .outlook-hrrr-image-wrap .ff-alert-trigger{bottom:8px!important;}
 }
}

/* Radar uses the same existing Globe control: reserve its slot before utilities. */
html body [data-hrrr-viewer].ff-radar-active:not(.ff-satellite-active,.ff-observations-active) .outlook-hrrr-image-wrap>.ff-model-globe-discovery{left:56px!important;}
@layer ff-phone-controls {
 @media(max-width:899px),(orientation:landscape) and (max-height:620px){
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance,.is-guidance-builder-preview) [data-hrrr-viewer].ff-radar-active:not(.ff-satellite-active,.ff-observations-active) .outlook-hrrr-image-wrap .ff-phone-observation-tools{left:calc(10px + 4 * var(--ff-compact-stride,36px))!important;}
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance,.is-guidance-builder-preview) [data-hrrr-viewer].ff-radar-active:not(.ff-satellite-active,.ff-observations-active) .outlook-hrrr-image-wrap .ff-guidance-shortcuts{left:calc(10px + 7 * var(--ff-compact-stride,36px))!important;right:auto!important;}
 }
 @media(max-width:899px),(orientation:landscape) and (max-height:620px){
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance,.is-guidance-builder-preview) [data-hrrr-viewer]:not(.ff-radar-active,.ff-satellite-active,.ff-observations-active):has(.outlook-hrrr-phone-draw-dock>.ff-guidance-projection:not([hidden])) .ff-guidance-compare{left:calc(10px + 4 * var(--ff-compact-stride,36px))!important;}
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance,.is-guidance-builder-preview) [data-hrrr-viewer]:not(.ff-radar-active,.ff-satellite-active,.ff-observations-active):has(.outlook-hrrr-phone-draw-dock>.ff-guidance-projection:not([hidden])) .ff-guidance-shortcuts{left:calc(10px + 5 * var(--ff-compact-stride,36px))!important;right:auto!important;}
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance,.is-guidance-builder-preview) [data-hrrr-viewer].ff-satellite-active:not(.ff-observations-active) .ff-phone-observation-tools{left:calc(10px + 4 * var(--ff-compact-stride,36px))!important;}
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance,.is-guidance-builder-preview) [data-hrrr-viewer].ff-satellite-active:not(.ff-observations-active) .ff-guidance-shortcuts{left:calc(10px + 5 * var(--ff-compact-stride,36px))!important;right:auto!important;}
 }
 @media(min-width:360px) and (max-width:459px) and (orientation:portrait){
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance,.is-guidance-builder-preview) [data-hrrr-viewer]{--ff-compact-tool:30px;--ff-compact-gap:2px;--ff-compact-stride:32px;}
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance,.is-guidance-builder-preview) [data-hrrr-viewer] :is(.outlook-hrrr-phone-draw-dock,.ff-phone-observation-tools,.ff-guidance-shortcuts){gap:var(--ff-compact-gap)!important;height:var(--ff-compact-tool)!important;align-items:center!important;}
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance,.is-guidance-builder-preview) [data-hrrr-viewer] :is(.outlook-hrrr-phone-draw-dock>button,.ff-phone-observation-tools>button,.ff-guidance-shortcuts>button,.ff-guidance-compare,.ff-alert-trigger){box-sizing:border-box!important;width:var(--ff-compact-tool)!important;min-width:var(--ff-compact-tool)!important;max-width:var(--ff-compact-tool)!important;height:var(--ff-compact-tool)!important;min-height:var(--ff-compact-tool)!important;max-height:var(--ff-compact-tool)!important;flex-basis:var(--ff-compact-tool)!important;padding:0!important;}
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance,.is-guidance-builder-preview) [data-hrrr-viewer] .outlook-hrrr-mobile-controls-toggle{height:var(--ff-compact-tool)!important;min-height:var(--ff-compact-tool)!important;max-height:var(--ff-compact-tool)!important;}
 }
}
@layer ff-phone-controls {
 @media(max-width:359px) and (orientation:portrait){
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance,.is-guidance-builder-preview) [data-hrrr-viewer].ff-radar-active:not(.ff-satellite-active,.ff-observations-active){--ff-compact-gap:1px;--ff-compact-stride:25px;}
 }
}

/* Restore the existing floating timeline over the map, rather than an empty
   phone grid row. Toolbar offsets are the original floating-timeline offsets
   from guidance-comparison-controls.css; artwork and chrome stay unchanged. */
@layer ff-phone-controls {
 @media(max-width:899px),(orientation:landscape) and (max-height:620px){
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance,.is-guidance-builder-preview) [data-hrrr-viewer]:not(.is-comparison-mode,.ff-observations-active,.ff-outlook-only){grid-template-rows:54px minmax(0,1fr) 0!important;}
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance,.is-guidance-builder-preview) [data-hrrr-viewer]:not(.is-comparison-mode,.ff-observations-active,.ff-outlook-only) .outlook-hrrr-image-wrap :is(.outlook-hrrr-phone-draw-dock,.ff-phone-observation-tools,.ff-guidance-compare,.ff-guidance-shortcuts,.outlook-hrrr-mobile-controls-toggle,.outlook-map-quick-tools,.ff-alert-trigger){bottom:calc(max(10px,env(safe-area-inset-bottom)) + 60px)!important;}
 }
 @media(orientation:landscape) and (max-height:620px){
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance,.is-guidance-builder-preview) [data-hrrr-viewer]:not(.is-comparison-mode,.ff-observations-active,.ff-outlook-only){grid-template-rows:46px minmax(0,1fr) 0!important;}
 }
}

/* Radar/Satellite transport overlays the map on phones; reserve its 50px
   height plus the outer inset and an 8px separation for the Desk footer. */
@layer ff-phone-controls {
 @media(max-width:899px),(orientation:landscape) and (max-height:620px){
  html body .outlook-builder-dialog.is-guidance-standalone:not(.ff-expanded-guidance) [data-hrrr-viewer]:is(.ff-radar-active,.ff-satellite-active) .outlook-hrrr-image-wrap .ff-weather-desk-surface{
   bottom:calc(58px + max(10px,env(safe-area-inset-bottom)))!important;
   height:calc(100% - 66px - max(10px,env(safe-area-inset-bottom)))!important;
   max-height:calc(100% - 66px - max(10px,env(safe-area-inset-bottom)))!important;
  }
 }
}

/* Camera playback is supported only in the desktop fine-pointer workspace. */
@media(max-width:899px),(pointer:coarse){
 html body .outlook-builder-dialog.is-guidance-standalone [data-hrrr-viewer] :is(#ff-forecast-desk,#ff-active-alerts,.ff-desk-settings,.ff-camera-desk)>.ff-weather-audio-footer>div>button.ff-footer-cameras{display:none!important;}
 html body .outlook-builder-dialog.is-guidance-standalone [data-hrrr-viewer] :is(#ff-forecast-desk,#ff-active-alerts,.ff-desk-settings,.ff-camera-desk)>.ff-weather-audio-footer>div{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
