/* Location editing sits beside the primary city and disappears with idle controls. */
.location-city-row{display:flex;align-items:center;justify-content:flex-end;gap:6px;max-width:100%;}
.location-city-row #primary-weather-location{min-width:0;}
header .location-control{position:relative;inset:auto;flex:0 0 auto;width:clamp(116px,9vw,174px);max-width:none;margin:0;padding:3px;border-radius:5px;font:12px/1.2 Arial,sans-serif;z-index:30;}
header .location-fields{gap:3px;}header .location-control input{padding:4px;width:55px;}header .location-control button{padding:4px;font-size:10px;}
header #location-status,header #location-results{position:absolute;right:0;width:260px;max-width:70vw;margin:0;padding:5px 8px;background:#032653fa;border:1px solid #66caff;border-radius:5px;color:#fff;text-align:left;}
header #location-status{top:calc(100% + 4px);}header #location-results{top:calc(100% + 31px);display:grid;gap:5px;}header #location-status:empty,header #location-results:empty{display:none;}
body.controls-idle header .location-control{display:none;}header .location-control:focus-within{display:block!important;opacity:1!important;pointer-events:auto!important;}
@media(max-width:800px){header .location-control{width:116px;}header .location-city-row{gap:3px;}}

/* Reserve width, never extra header height, for the compact editor. */
header .location-city-row{position:relative;display:block;padding-right:calc(clamp(116px,9vw,174px) + 6px);box-sizing:border-box;}
header .location-control{position:absolute;left:auto;right:0;top:50%;bottom:auto;transform:translateY(-50%);}
body.controls-idle header .location-city-row{padding-right:0;}
