/* Final assessment layout overrides, loaded after the legacy stylesheet. */
.zefi-map-legend{position:absolute;left:12px;bottom:40px;z-index:750;display:block;box-sizing:border-box;width:320px;max-width:calc(100% - 24px);min-width:0;background:rgba(255,255,255,.96);color:#173129;border:1px solid #bad0c3;border-radius:7px;box-shadow:0 3px 14px #0003;padding:0;line-height:1.5}
.zefi-map-legend>summary{display:list-item;cursor:pointer;padding:8px 11px;font-size:13px;font-weight:700;line-height:20px}
.zefi-map-legend>.legend-details-body{position:static!important;display:block!important;float:none!important;width:auto!important;height:auto!important;box-sizing:border-box;padding:5px 11px 11px;margin:0;max-height:42vh;overflow:auto}
.zefi-map-legend #legendTitle,.zefi-map-legend .legend-details-body>b{position:static!important;display:block!important;font-size:12px;line-height:19px;margin:0 0 7px}
.zefi-map-legend #legendRamp{display:none!important}
.zefi-map-legend[data-legend-layer="density"] #legendRamp,.zefi-map-legend[data-legend-layer="weibull"] #legendRamp{display:block!important;height:16px!important;margin:6px 0}
.zefi-map-legend[data-legend-layer="density"] .legend-details-body>div:has(>#legendMin),.zefi-map-legend[data-legend-layer="weibull"] .legend-details-body>div:has(>#legendMin){display:flex!important;justify-content:space-between}
.zefi-map-legend .legend-details-body>div:has(>#legendMin){display:none!important}
.zefi-map-legend #windLegendTicks,.zefi-map-legend .legend-class-list{position:static!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:minmax(24px,auto);gap:6px 12px!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important;font-size:12px!important;line-height:20px!important}
.zefi-map-legend #windLegendTicks[hidden]{display:none!important}
.zefi-map-legend #windLegendTicks>span,.zefi-map-legend .legend-class-list>span{position:static!important;display:flex!important;float:none!important;align-items:center;gap:8px!important;min-width:0;width:100%;height:24px!important;margin:0;padding:0;white-space:nowrap;font-size:12px!important;line-height:20px!important}
.zefi-map-legend #windLegendTicks i,.zefi-map-legend .legend-class-list i{position:static!important;display:block!important;width:25px!important;min-width:25px!important;max-width:25px!important;height:14px!important;flex:0 0 25px!important;border:1px solid #0002;border-radius:2px;margin:0;padding:0}
.point-card-tooltip.leaflet-tooltip{width:300px!important;max-width:300px!important;min-width:300px!important;box-sizing:border-box;white-space:normal!important;padding:12px!important;border-radius:9px;border:1px solid #8fb4cf;background:#102538f5;color:#f1f7ff;font-family:"Microsoft YaHei",sans-serif;line-height:1.5;box-shadow:0 6px 22px #0004}
.point-card-heading{display:flex;flex-direction:column;gap:3px;margin:0 0 9px;white-space:nowrap}.point-card-heading b{font-size:13px;line-height:20px}.point-card-heading>span{font-size:11px;line-height:17px;opacity:.8}
.point-card-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.point-card-values>div{min-width:0;padding:7px 9px;border-radius:5px;border-left:3px solid currentColor;background:#ffffff0b}.point-card-values>div>span{display:block;font-size:11px;line-height:18px;white-space:nowrap}.point-card-values strong{display:block;font-size:18px;line-height:25px;white-space:nowrap}.point-card-values small{font-size:10px;font-weight:400}.point-value-wind{color:#5ecbff}.point-value-k{color:#ddb3ff}.point-value-density{color:#6ce3b9}.point-value-hours{color:#ffdb78}.nearest-summary-popup .point-value-wind{color:#126ea4}.nearest-summary-popup .point-value-k{color:#7b37ae}.nearest-summary-popup .point-value-density{color:#137450}.nearest-summary-popup .point-value-hours{color:#986210}
.map-hint{display:none!important}
.legend-details{width:330px!important;min-width:0!important;max-width:calc(100% - 20px)!important}
.legend-details:not([open]){width:auto!important}
.legend-details>summary{font-size:13px;line-height:1.5}
.legend-details .legend-ramp{height:16px!important;width:100%;gap:0}
.legend-details .legend-ramp>span{flex:1!important;min-width:0}
.legend-details .wind-legend-classes,.legend-details .legend-class-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));font-size:12px;line-height:1.5;gap:7px 10px}
.legend-details .wind-legend-classes[hidden]{display:none!important}
.legend-details .wind-legend-classes>span,.legend-details .legend-class-list>span{display:flex;align-items:center;justify-content:flex-start;gap:6px;white-space:nowrap;min-width:0}
.legend-details .wind-legend-classes i,.legend-details .legend-class-list i{width:18px;min-width:18px;height:12px;flex:none}
.legend-details-body{max-height:42vh;overflow:auto}
@media(max-width:980px){
 .nearest-point-summary:not([hidden]){bottom:7px!important;padding:7px 10px!important}
 .map-dark-tools .legend-details{bottom:calc(var(--point-summary-height,0px) + 18px)!important}
 .map-dark-tools .legend-details[open]{width:min(330px,calc(100% - 20px))!important}
 .map-dark-tools .legend-details .wind-legend-classes,.map-dark-tools .legend-details .legend-class-list{font-size:11px;gap:5px 8px}
 .map-dark-tools .legend-details-body{max-height:32dvh}
 .nearest-point-tooltip{display:none!important}
 .zefi-map-legend{left:10px;bottom:calc(var(--point-summary-height,0px) + 18px)!important}
 .zefi-map-legend>.legend-details-body{max-height:30dvh}
 .nearest-point-summary .point-card-heading{margin-bottom:5px;flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 8px}
 .nearest-point-summary .point-card-heading b{font-size:11px;line-height:17px}.nearest-point-summary .point-card-heading>span{font-size:10px}
 .nearest-point-summary .point-card-values{gap:5px}.nearest-point-summary .point-card-values>div{padding:3px 7px}.nearest-point-summary .point-card-values>div>span{font-size:10px;line-height:15px}.nearest-point-summary .point-card-values strong{font-size:15px;line-height:21px}
}

/* Compact v18: category list keeps exact labels without occupying 8 rows. */
.zefi-map-legend.legend-details{width:282px!important}
.zefi-map-legend.legend-details:not([open]){width:auto!important}
.zefi-map-legend>summary{font-size:12px;line-height:17px;padding:5px 8px}
.zefi-map-legend>.legend-details-body{padding:3px 8px 7px}
.zefi-map-legend #legendTitle,.zefi-map-legend .legend-details-body>b{font-size:10px;line-height:16px;margin:0 0 4px}
.zefi-map-legend #windLegendTicks,.zefi-map-legend .legend-class-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:19px;gap:3px 5px!important;font-size:10px!important;line-height:16px!important}
.zefi-map-legend #windLegendTicks>span,.zefi-map-legend .legend-class-list>span{height:19px!important;gap:4px!important;font-size:10px!important;line-height:16px!important}
.zefi-map-legend #windLegendTicks i,.zefi-map-legend .legend-class-list i{width:16px!important;min-width:16px!important;max-width:16px!important;flex:0 0 16px!important;height:10px!important}
.point-card-tooltip.leaflet-tooltip{width:210px!important;min-width:210px!important;max-width:210px!important;padding:8px!important;border-radius:7px}
.point-card-tooltip .point-card-heading{gap:1px;margin-bottom:5px}.point-card-tooltip .point-card-heading b{font-size:11px;line-height:16px}.point-card-tooltip .point-card-heading>span{font-size:9px;line-height:14px}.point-card-tooltip .point-card-values{gap:5px}.point-card-tooltip .point-card-values>div{padding:4px 5px;border-left-width:2px}.point-card-tooltip .point-card-values>div>span{font-size:9px;line-height:15px}.point-card-tooltip .point-card-values strong{font-size:14px;line-height:20px}.point-card-tooltip .point-card-values small{font-size:8px}
.mobile-title-layers{display:none}
@media(max-width:980px){
 .topbar.resource-mobile-header{display:flex;gap:5px;padding:0 8px;height:56px;min-height:56px}
 .resource-mobile-header .topbar-title{gap:5px;flex:none;min-width:0}.resource-mobile-header .topbar-title h1{font-size:15px;white-space:nowrap;line-height:20px}.resource-mobile-header .topbar-title small{display:none}.resource-mobile-header .mobile-menu{width:29px;height:31px;min-width:29px;padding:4px}.resource-mobile-header .top-actions{display:none}
 .resource-mobile-header .mobile-title-layers{display:flex;min-width:0;margin-left:auto}.mobile-title-layers #layerSwitch{display:flex!important;width:auto!important;gap:0;min-width:0;margin:0;padding:2px}
 .mobile-title-layers #layerSwitch button{height:29px;min-height:29px;padding:0 5px!important;flex:none!important;width:auto!important;white-space:nowrap;font-size:10px;line-height:14px}
 #view-map .map-toolbar{display:grid!important;grid-template-columns:minmax(115px,.9fr) minmax(165px,1.1fr);gap:5px;align-items:center;flex-wrap:nowrap;margin-bottom:4px}
 #view-map .map-toolbar>.layer-transparency{order:0!important;grid-column:1;width:100%!important;min-width:0;min-height:31px;height:31px;gap:4px;padding:3px 5px;font-size:10px}
 #view-map .map-toolbar>.layer-transparency>span{font-size:0}#view-map .map-toolbar>.layer-transparency>span:after{content:"透明度";font-size:10px}
 #view-map .map-toolbar .layer-transparency input[type=range]{min-width:25px;width:36px;flex:1}#view-map .map-toolbar .layer-transparency output{min-width:25px;font-size:10px}
 #view-map .map-toolbar>.coord-search{order:0!important;grid-column:2;width:100%;min-width:0;max-width:none;height:31px;padding:0 3px;display:flex;gap:3px}#view-map .coord-search>svg{display:none}#view-map .coord-search input{width:0;flex:1;min-width:0;font-size:10px;padding:0 3px;height:29px}#view-map .coord-search button{font-size:10px;padding:0 6px;min-width:32px;height:25px}
 #view-map .map-drawer-buttons #locateMe{position:static;display:flex;align-items:center;justify-content:center;gap:4px;width:auto;min-height:31px;padding:5px 8px;font-size:10px;background:#112333db!important;color:#e8f5ff!important;border:1px solid #a2bdd747;border-radius:8px;box-shadow:0 5px 18px #0003}
 #view-map .map-drawer-buttons #locateMe span{display:inline!important;font-size:0}#view-map .map-drawer-buttons #locateMe span:after{content:"GPS";font-size:10px}#view-map .map-drawer-buttons #locateMe svg{width:13px;height:13px}
 .map-dark-tools .zefi-map-legend.legend-details[open]{width:282px!important}.zefi-map-legend>.legend-details-body{max-height:25dvh}
}
@media(max-width:359px){.resource-mobile-header .topbar-title h1{font-size:13px}.mobile-title-layers #layerSwitch button{font-size:9px;padding:0 4px!important}#view-map .map-toolbar{grid-template-columns:minmax(100px,.85fr) minmax(150px,1.15fr)}}
