/* MyWeatha v50: finished iPhone-style universal widgets. */
.wa-ios-status-shield{display:none!important}
body.wa-edit-mode>.wa-ios-status-shield{
 display:block!important;
 position:fixed!important;
 top:0!important;left:0!important;right:0!important;
 height:max(105px,calc(env(safe-area-inset-top,0px) + 42px))!important;
 pointer-events:auto!important;
 z-index:2147483637!important;
 background:linear-gradient(180deg,rgba(10,30,62,.94),rgba(14,44,83,.80) 63%,rgba(14,44,83,0))!important;
 -webkit-backdrop-filter:blur(5px);
 backdrop-filter:blur(5px);
}
body.wa-edit-mode>#waDone{
 /* One reliable bottom action, safely away from iOS clock / notch. */
 top:auto!important;
 bottom:max(168px,calc(env(safe-area-inset-bottom,0px) + 150px))!important;
 right:17px!important;
 z-index:2147483639!important;
 min-height:43px!important;
}
body.wa-edit-mode .wa-ios-size-menu,
.wa-ios-size-menu{
 bottom:max(228px,calc(env(safe-area-inset-bottom,0px) + 213px))!important;
 max-height:min(270px,42vh)!important;
}
/* Actual miniature weather widgets: no enormous empty panels. */
#home .content>[data-wa-block].wa-compact-summary:not(.wa-hidden){
 max-width:100%!important;
 overflow:hidden!important;
 height:auto!important;
 contain:layout;
}
/* A 1x1 / 2x1 compact widget has a restrained, repeatable height. */
#home .content>[data-wa-block].wa-compact-summary[data-wa-grid-size="small"]:not(.wa-hidden){
 height:158px!important;min-height:158px!important;max-height:158px!important;
}
#home .content>[data-wa-block].wa-compact-summary[data-wa-grid-size="wide"]:not(.wa-hidden){
 min-height:174px!important;
 max-height:195px!important;
 height:174px!important;
}
#home .content>[data-wa-block].wa-compact-summary[data-wa-grid-size="tall"]:not(.wa-hidden){
 height:304px!important;min-height:304px!important;max-height:304px!important;
}
#home .content>.mast.wa-compact-summary[data-wa-grid-size="wide"]{
 height:194px!important;min-height:194px!important;max-height:194px!important;
}
/* Weather descriptions remain readable on narrow phones. */
#home .content>[data-wa-block].wa-compact-summary>.wa-widget-mini{
 overflow:hidden!important;
 min-width:0!important;
 flex:1 1 auto!important;
}
#home .content>[data-wa-block].wa-compact-summary .wa-mini-reading{
 overflow-wrap:anywhere!important;
}
/* "Details" opens the original content fully without losing the chosen preset. */
#home .content>[data-wa-block]>.wa-widget-details-toggle{display:none!important}
#home .content>[data-wa-block].wa-widget-expanded:not(.wa-compact-summary)>.wa-widget-details-toggle{
 display:inline-flex!important;
 position:relative!important;
 margin:12px 0 0 4px!important;
 padding:8px 14px!important;
 min-height:34px!important;
 max-width:max-content!important;
 border-radius:18px!important;
 border:1px solid rgba(204,247,255,.8)!important;
 background:linear-gradient(110deg,#137cbb,#536bc7)!important;
 color:white!important;
 font-size:11px!important;
 font-weight:700!important;
 align-items:center;justify-content:center;
}
body.wa-edit-mode #home .content>[data-wa-block]>.wa-widget-details-toggle{display:none!important}
#home .content>[data-wa-block].wa-widget-expanded:not(.wa-compact-summary){height:auto!important;max-height:none!important;overflow:visible!important}
#home .content>[data-wa-block].wa-widget-expanded:not(.wa-compact-summary)>.wa-widget-mini{display:none!important}
/* Keep native edit remove and resize actions on the card, but never in the
   system-status overlay; only the bottom Done control floats outside. */
@media(max-width:355px){
 body.wa-edit-mode>#waDone{bottom:156px!important;right:12px!important}
 .wa-ios-size-menu{bottom:215px!important}
}
@media(prefers-reduced-motion:reduce){
 #home .content>[data-wa-block].wa-compact-summary,
 #home .content>[data-wa-block].wa-widget-expanded{transition:none!important}
}
