:root { font-family: system-ui, sans-serif; color: #183326; background: #eef2ed; }
* { box-sizing: border-box; }
html, body, #map { height: 100%; margin: 0; }
body { display: grid; grid-template-rows: auto 1fr auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #244b38; color: #fff; z-index: 1000; }
.topbar strong, .topbar span { display: block; }
.topbar span { font-size: 12px; opacity: .78; margin-top: 2px; }
button, label { font: inherit; }
button { border: 1px solid rgba(255,255,255,.45); border-radius: 5px; padding: 7px 10px; background: #fff; color: #244b38; cursor: pointer; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 9px 12px; background: rgba(255,255,255,.96); box-shadow: 0 -2px 10px rgba(0,0,0,.12); z-index: 1000; font-size: 13px; }
.legend label { white-space: nowrap; }
.legend button { margin-left: auto; border-color: #244b38; }
.basemap { display: inline-flex; gap: 4px; }
.basemap button { margin: 0; padding: 5px 8px; border-color: #c4cec7; }
.basemap button.active { background: #244b38; color: #fff; border-color: #244b38; }
.load-status { position: fixed; inset: 70px 16px auto; z-index: 2000; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: #fff4d8; border: 1px solid #c9a84a; border-radius: 5px; color: #513e08; }
.load-status[hidden] { display: none; }
.load-status button { border-color: #806a1c; color: #513e08; padding: 4px 8px; }
.zone-watermark { border: 0 !important; background: transparent !important; box-shadow: none !important; color: #59635d !important; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(255,255,255,.92), 0 -1px 1px rgba(255,255,255,.82); }
.zone-watermark::before { display: none !important; }
@media (max-width: 520px) { .legend { gap: 7px; font-size: 12px; } .legend button { width: 100%; margin-left: 0; } }
@media print {
  @page { size: A4 landscape; margin: 0; }
  html, body { height: 100%; background: #fff; }
  body { display: block; }
  .topbar, .legend, .leaflet-control-zoom, .leaflet-control-attribution { display: none !important; }
  #map { position: fixed; inset: 0; height: 100vh; }
  .zone-watermark { color: #4d554f !important; opacity: .82 !important; }
  .load-status { display: none !important; }
}
