/* Map first on phone portrait; preserve the established wider layouts. */
.map-first-preview-note{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:5px 12px;background:#edf8f0;color:#315b46;font:12px/1.6 Tahoma,system-ui,sans-serif}
.map-first-preview-note a{color:#235b43;text-underline-offset:3px;padding:5px 0}
.map-first-canvas{position:relative;container-type:inline-size}
html body[data-map-first-layout] .map-selection-summary{position:absolute;left:48%;right:1.5%;top:59%;z-index:2;box-sizing:border-box;padding:clamp(7px,2cqi,14px);border:1px solid #c9dfcf;border-radius:clamp(12px,3cqi,20px);background:linear-gradient(145deg,#fffffffa,#f0f9f2f5);box-shadow:0 5px 14px #173d4326;color:#25543c;text-align:left;line-height:1.35}
html body[data-map-first-layout] .map-selection-summary h3{margin:0 0 5px;font-size:clamp(12px,3.7cqi,21px);line-height:1.35;color:#20583e;font-weight:800}
.map-selection-area{padding:0 0 5px;border-bottom:1px solid #dceadd}
.map-selection-area>span{display:block;font-size:clamp(9px,2.6cqi,14px);color:#537564}
.map-selection-area strong{font-size:clamp(19px,5.6cqi,33px);line-height:1.2;font-weight:800;color:#2f7553;white-space:nowrap}
.map-selection-area small{font-size:clamp(9px,2.5cqi,13px)}
.map-selection-counts{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:6px 0 0}
.map-selection-counts>div{min-width:0;background:#ffffffcc;border:1px solid #e0ebe2;border-radius:8px;padding:4px 3px;text-align:center}
.map-selection-counts span,.map-selection-counts small{display:block;font-size:clamp(9px,2.4cqi,13px);line-height:1.3;white-space:nowrap}
.map-selection-counts strong{display:block;font-size:clamp(18px,5.2cqi,29px);line-height:1.15;font-weight:800;color:#2f7553}
@media(max-width:599px) and (orientation:portrait){
 html body[data-map-first-layout][data-balanced-layout][data-map-layout] .grid>.col>.balanced-map{grid-column:1!important;grid-row:1!important;align-self:start!important}
 html body[data-map-first-layout][data-balanced-layout][data-map-layout] .grid>.col>.balanced-overview{grid-column:1!important;grid-row:2!important}
 html body[data-map-first-layout] .shell{padding-top:4px!important}
 html body[data-map-first-layout] .monitor-compact-toolbar{margin-bottom:8px!important}
 html body[data-map-first-layout] .map{width:100%!important;min-height:0!important}
 html body[data-map-first-layout] .map svg{display:block!important;width:100%!important;height:auto!important;max-height:none!important;margin:0 auto!important}
 html body[data-map-first-layout] .map .maphead{margin:0 0 6px!important;text-align:center;justify-content:center}
 html body[data-map-first-layout] .map .attribution{position:relative!important;font-size:10px!important;padding:5px 8px!important}
 html body[data-map-first-layout] .monitor-compact-toolbar .scope select{font-size:13px!important;letter-spacing:-.25px}
}
