:root { font: 15px system-ui, sans-serif; color: #193036; background: #eff4ef; }
* { box-sizing: border-box; }
body { margin: 0; }
header { min-height: 54px; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #16383a; color: #fff; }
header strong { font-size: 1.2rem; }
header a { color: #fff; }
main { display: grid; grid-template-columns: 250px 1fr; height: calc(100dvh - 54px); }
aside { padding: 18px; overflow: auto; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; }
legend { font-weight: 700; margin-bottom: 8px; }
fieldset label { display: flex; gap: 7px; align-items: center; margin: 6px 0; }
.key { height: 9px; width: 9px; display: inline-block; border-radius: 50%; }
.earthquake { background: #7540a1; }
.wildfire { background: #b43e25; }
.flood { background: #146fa6; }
.dates { display: flex; flex-wrap: wrap; gap: 10px; }
.dates label { display: grid; gap: 4px; }
input { accent-color: #187473; }
input[type=date] { font: inherit; min-width: 135px; }
#map { min-height: 0; }
#status { min-height: 2em; }
#sources { padding-left: 18px; }
#sources li { margin: 6px 0; }
.maplibregl-popup-content { font: 14px system-ui, sans-serif; padding: 14px; }
.maplibregl-popup-content p { margin: 6px 0; }
@media (max-width: 680px) {
  main { grid-template-columns: 1fr; grid-template-rows: auto minmax(300px, 1fr); }
  aside { padding: 8px 12px; }
  fieldset { margin-bottom: 8px; }
  fieldset label { display: inline-flex; margin-right: 6px; }
  #status { min-height: 0; margin: 8px 0; }
}
