/* Prevent fieldset min-content sizing from widening the entire edit dialog. */
#edit-form{min-width:0;max-width:100%}
#edit-form fieldset{min-inline-size:0;min-width:0;max-width:100%;margin-inline:0}
#edit-form legend{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.profile-scenery-grid{width:100%;max-width:100%;min-width:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 10px}
.profile-scenery-option{min-width:0;margin:6px 0!important;text-align:center;overflow-wrap:anywhere}
.profile-scenery-circle{width:min(80px,100%);height:auto;aspect-ratio:1;flex:none}
@media(max-width:600px){
 .profile-scenery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .profile-scenery-picker{padding:12px}
 .profile-scenery-circle{width:min(68px,100%)}
}
@media(max-width:340px){.profile-scenery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* One compact navigation row, with an explicitly labelled feedback destination. */
#primary-ribbon .nav-icons>a[href="#feedback"]{display:flex;flex-direction:column;gap:0;justify-content:center;align-items:center}
#primary-ribbon .nav-icons>a[href="#feedback"] svg{width:23px;height:23px}
#primary-ribbon .nav-beta-label{display:block;font-size:10px;font-weight:800;line-height:12px;letter-spacing:.3px}
body:not(.map-expanded):not(.onboarding-open) #app{padding-top:calc(67px + env(safe-area-inset-top))!important}
body.has-walk-indicator:not(.map-expanded):not(.onboarding-open) #app{padding-top:calc(119px + env(safe-area-inset-top))!important}
body:not(.map-immersive) #active-walk-indicator{top:calc(69px + env(safe-area-inset-top))!important}
@media(min-width:801px){
body.map-expanded:not(.map-immersive) .map-shell{top:calc(58px + env(safe-area-inset-top))!important;height:calc(100dvh - 58px - env(safe-area-inset-top))!important}
body.map-expanded:not(.map-immersive) .map-shell>.detail{top:calc(58px + env(safe-area-inset-top))!important}
}
@media(max-width:800px){
html body.map-expanded:not(.map-immersive) .map-shell,html body.map-expanded.map-immersive .map-shell{top:0!important;bottom:0!important;height:100dvh!important}
}
