:root{color-scheme:light}
.imap-theme{margin-inline-start:auto;display:flex;align-items:center;gap:.55rem;flex:0 0 auto;font-size:.86rem;color:#e2ede6}
.imap-theme select{width:auto;min-height:44px;border-color:#668579;background:#203d31;color:#fff}
.imap-theme select:focus-visible{outline-color:#9cd8ff}
@media(max-width:520px){
  header .brand-caption{display:none}
}

:root[data-theme="dark"]{
  color-scheme:dark;
  color:#edf4ef;
  background:#111b17;
  --border:#40544a;
  --muted:#b6c8bf;
  --green:#23845f;
}
[data-theme="dark"] header{background:#101e18;border-bottom:1px solid var(--border)}
[data-theme="dark"] .panel{background:#192821;box-shadow:0 2px 8px #0003}
[data-theme="dark"] :is(button,input,select,textarea){
  background:#22352b;border-color:#657d70;color:#edf4ef;
}
[data-theme="dark"] :is(input,textarea)::placeholder{color:#a9bfb2}
[data-theme="dark"] button:hover:not(:disabled){background:#2c4538}
[data-theme="dark"] button.primary{background:#1b7351;border-color:#398767;color:#fff}
[data-theme="dark"] button.primary:hover:not(:disabled){background:#236b52}
[data-theme="dark"] :focus-visible{outline-color:#8dd4f1}
[data-theme="dark"] th{background:#23382e}
[data-theme="dark"] #form-status{color:#ffb8af}
[data-theme="dark"] :is(#map,#edit-map){background:#24392f}
[data-theme="dark"] .leaflet-tile-pane{filter:brightness(.78) saturate(.82)}
[data-theme="dark"] :is(.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-bar a){
  background:#192821;color:#edf4ef;
}
[data-theme="dark"] :is(.leaflet-bar a:hover,.leaflet-bar a.leaflet-disabled){
  background:#294136;color:#becfc4;
}
[data-theme="dark"] :is(.leaflet-container a.leaflet-popup-close-button,.leaflet-container .leaflet-control-attribution){
  color:#edf4ef;
}
[data-theme="dark"] .leaflet-container .leaflet-control-attribution{background:#17281fec}
[data-theme="dark"] .leaflet-control-attribution a{color:#a6dbfa}
