*{box-sizing:border-box}
[hidden]{display:none!important}
body{
  margin:0;
  background:#f3f5f3;
  color:#18241d;
  font:16px system-ui,-apple-system,sans-serif;
}
main{
  max-width:860px;
  margin:20px auto;
  padding:22px;
  background:white;
  border:1px solid #dfe5df;
  border-radius:14px;
}
h1{font-size:clamp(23px,5vw,32px);margin:0 0 24px}
h2{font-size:18px;margin:20px 0 10px}
label{display:block;font-weight:600;margin:16px 0 6px}
input,select,textarea{
  width:100%;
  padding:12px;
  border:1px solid #bec9c0;
  border-radius:7px;
  font:inherit;
  background:white;
}
textarea{resize:vertical}
#map{
  width:100%;
  height:440px;
  margin-top:18px;
  border:1px solid #ccd5ce;
  border-radius:9px;
  z-index:1;
}
#map.drawing{cursor:crosshair;touch-action:none}
.tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
button{
  border:0;
  background:#286342;
  color:white;
  padding:12px 15px;
  border-radius:7px;
  font:inherit;
  cursor:pointer;
  min-height:44px;
}
button:disabled{opacity:.5;cursor:default}
button.secondary{background:#edf1ee;color:#263a2d}
button.active{background:#d97706}
#draw-hint{font-size:14px;color:#58665d;min-height:20px}
.shape-row{
  display:flex;
  align-items:center;
  gap:12px;
  border-bottom:1px solid #e5e9e5;
  padding:10px 0;
}
.shape-name{flex:1}
.shape-delete{background:#fbe9e9;color:#a62626}
#totals{text-align:right;font-weight:600;padding:12px 0}
.consent{display:flex;gap:10px;font-weight:400;margin:20px 0}
.consent input{width:20px;height:20px;flex-shrink:0}
#submit{width:100%;font-weight:600}
#message,#access-message{margin-top:12px}
.error{color:#a32222}
@media(max-width:600px){
  main{margin:0;padding:16px;border:0;border-radius:0}
  #map{height:400px;height:48dvh;min-height:280px}
  .tools button{flex:1}
}
