:root{font-family:system-ui,sans-serif;color:#153f34;background:#f0f3ed;line-height:1.5}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}main{max-width:850px;margin:0 auto;padding:28px 22px 48px}.brand{font-size:12px;letter-spacing:.16em;font-weight:750}h1{font-size:clamp(28px,5vw,42px);line-height:1.12;margin:16px 0}header{margin-bottom:24px}label{display:block;margin:14px 0;font-weight:600}input,select{display:block;width:100%;margin-top:5px;padding:11px;border:1px solid #9caf9f;border-radius:7px;background:white;color:#173d33;font:inherit}button{border:1px solid #173d33;border-radius:7px;background:#173d33;color:white;padding:11px 17px;font:inherit;cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #efac36;outline-offset:3px}nav,.actions,.fields{display:flex;gap:12px}.fields>*{flex:1;min-width:0}nav button{flex:1;background:transparent;color:#173d33}nav button[aria-pressed=true]{background:#173d33;color:white}.notice{padding:12px 16px;border-left:4px solid #2c7356;background:#e1eadf}.export-guide{font-size:14px;padding:4px 18px;background:white;border-radius:8px}.export-guide li{margin:8px 0}a{color:#205c48}#map-placeholder{margin-top:20px;padding:18px;border:1px dashed #9caf9f;border-radius:8px}#map{height:430px;min-height:300px;margin-top:20px;border:1px solid #9caf9f;border-radius:10px;background:#dde4da}#results button{display:block;width:100%;text-align:left;background:white;color:#173d33;margin:6px 0}#preview{font-weight:600}#status{font-weight:700;white-space:pre-wrap}footer{border-top:1px solid #c1cec0;margin-top:30px;padding-top:14px;font-size:13px;color:#486154}.actions button{flex:1}.leaflet-control-attribution{font-size:11px!important}.leaflet-container{font:13px system-ui,sans-serif}@media(max-width:480px){main{padding:18px 15px 32px}#map{height:350px}.fields{gap:8px}.actions{flex-direction:column}}

.download-choice{display:block;width:100%;margin:14px 0;padding:22px;text-align:left;border:1px solid #acb9b0;background:white;color:#173d33;border-radius:12px}.download-choice strong{display:block;font-size:20px;line-height:1.3}.download-choice span{display:block;margin-top:9px;font-size:15px;line-height:1.5;color:#486154}
.app-link{display:inline-block;background:#173d33;color:white;padding:12px 18px;border-radius:7px;font-weight:650;text-decoration:none}.app-link:focus-visible{outline:3px solid #efac36;outline-offset:3px}

#search-results{margin:22px 0;scroll-margin-top:14px;padding:16px;border:1px solid #b7c5b9;border-radius:10px;background:#e8eee4}#results-heading{font-size:21px;line-height:1.25;margin:0 0 8px}#search-feedback{margin:0 0 12px}#results button{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 13px;border-color:#acb9b0}#results button[aria-pressed=true]{border:2px solid #246044;background:#d5e6ce;padding:14px 12px}.result-main{display:block;min-width:0}.result-name{display:block;font-size:17px;font-weight:750;overflow-wrap:anywhere}.result-context{display:block;color:#486154;font-size:14px;margin-top:3px;overflow-wrap:anywhere}.result-action{flex-shrink:0;white-space:nowrap;font-size:14px;line-height:1.35;font-weight:750}#selected-location{margin-top:14px}
@media(max-width:480px){#search-results{padding:13px}.result-action{max-width:82px;white-space:normal}#results button{gap:10px}}

.step-title{font-size:21px;line-height:1.3;margin:26px 0 8px}.centre-methods{display:flex;gap:10px}.centre-methods button{flex:1;background:white;color:#173d33}.centre-methods button[aria-pressed=true]{background:#173d33;color:white}.text-button{background:transparent;color:#205c48;border:0;padding:2px 0 10px;font-weight:700;text-decoration:underline}.map-help{margin:20px 0 12px;padding:12px 14px;background:#e1eadf;border-radius:7px}#map-section{scroll-margin-top:12px}#map-placeholder{margin-top:12px}#map{margin-top:12px}#manual-coordinates{margin:14px 0;color:#486154}#manual-coordinates summary{cursor:pointer;font-size:14px}#map-legend{font-size:13px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.legend-dot{display:inline-block;width:12px;height:12px;border:2px solid white;border-radius:50%;background:#9e2942;box-shadow:0 0 0 1px #9e2942}.legend-square{display:inline-block;width:15px;height:12px;border:2px dashed #125c39;margin-left:12px}.leaflet-container{cursor:crosshair}.leaflet-dragging .leaflet-container{cursor:grabbing}@media(max-width:480px){.centre-methods button{padding:12px 8px;font-size:15px}.step-title{font-size:20px}}

.legend-square.confirmed{border-style:solid}

.legend-item{display:inline-flex;align-items:center;gap:7px}.legend-square{margin-left:0}#map-legend{gap:16px}@media(max-width:480px){#area-options>.fields{flex-direction:column;gap:0}}

/* Preview only: optional support link after the download flow. */

.size-premium-note{display:flex;align-items:center;gap:16px;padding:15px 18px;margin:6px 0 20px;background:#e5eddf;border:1px solid #aebfa6;border-left:4px solid #315d43;border-radius:9px}.size-premium-note>div{flex:1}.size-premium-note strong{display:block;font-size:15px}.size-premium-note p{font-size:13px;line-height:1.5;margin:5px 0 0;color:#48604e}.size-premium-note a{font-size:13px;font-weight:700;white-space:nowrap}@media(max-width:520px){.size-premium-note{display:block;padding:14px}.size-premium-note a{display:inline-block;margin-top:10px}}

.map-tools{display:flex;align-items:center;gap:12px;margin-top:10px}.location-control{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:9px;flex-shrink:0;background:white;color:#173d33}.location-control:hover{background:#e1eadf}.map-tools #location-status{margin:0;font-size:14px}#check{background:transparent;color:#173d33}

#send-summary{align-self:center;font-weight:650}.send-bar{align-items:center;flex-wrap:wrap}#send-summary:empty{display:none}@media(max-width:600px){.send-bar{position:sticky;bottom:0;z-index:900;flex-direction:row;padding:12px;margin:0 -4px;background:#f0f3ed;border-top:1px solid #9caf9f;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}.send-bar #check{flex:0 0 100%;font-size:14px;padding:6px}.send-bar #send-summary{flex:1}.send-bar #send{flex:0 0 auto}.send-bar #check{order:3}}

.map-tools #map-legend{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:0;flex:1}.map-tools .location-control{margin-left:auto}#map-placeholder{margin-top:10px;padding:10px}

.picker-help{margin:8px 0 14px;font-size:14px}
.picker-help>summary{cursor:pointer;color:#173d33;font-weight:650;padding:8px 0;width:fit-content}
.picker-help>summary:focus-visible{outline:3px solid #efac36;outline-offset:3px}
.picker-help ul{margin:4px 0 12px;padding-left:22px}
.picker-help li+li{margin-top:6px}
.picker-help .map-help{margin:4px 0 0}
#preview:empty,#estimate:empty,#location-status:empty{display:none}

#grant-dialog{color:#153f34;background:#fff;border:1px solid #b7c9bb;border-radius:14px;width:min(29rem,calc(100% - 3rem));box-sizing:border-box;padding:1.5rem}#grant-dialog::backdrop{background:#14251cb3}#grant-dialog h2{margin:0 0 .75rem}#grant-text{overflow-wrap:anywhere}#grant-status:empty{display:none}

.area-detail{margin:12px 0;padding:12px 14px;border:1px solid #b7c5b9;border-radius:9px;background:#fff}
.area-detail label{display:flex;align-items:center;gap:10px;margin:0;min-height:30px}
.area-detail input{width:18px;height:18px;margin:0;padding:0;flex-shrink:0;accent-color:#205c48}
.area-detail p{margin:4px 0 0 28px;font-size:14px;color:#486154}
