:root {
  font-family: system-ui, sans-serif;
  color: #172c2b;
  background: #f4f7f7;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #bccdcc;
  background: white;
  flex-wrap: wrap;
}
h1 {
  font-size: 1.3rem;
  margin: 0;
}
h2 {
  font-size: 1.15rem;
}
a {
  color: #115d59;
}
button,
input {
  font: inherit;
  min-height: 44px;
  border: 1px solid #7e9694;
  border-radius: 4px;
  padding: 0.5rem 0.8rem;
  background: white;
  color: inherit;
}
button {
  cursor: pointer;
}
button:hover {
  background: #e4efed;
}
button:focus-visible,
input:focus-visible,
canvas:focus-visible,
a:focus-visible {
  outline: 3px solid #006fca;
  outline-offset: 3px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
#status,
main {
  margin: 1rem 1.5rem;
}
#filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.65rem;
}
#coverage,
.legend {
  font-size: 0.9rem;
  color: #435d5a;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 1rem;
}
.map-panel,
.list-panel,
#detail {
  background: white;
  border: 1px solid #bccdcc;
  padding: 1rem;
  min-width: 0;
}
#map {
  display: block;
  width: 100%;
  height: 55vh;
  min-height: 350px;
  touch-action: none;
  background: #edf3f2;
}
.legend {
  margin-bottom: 0;
}
.list-panel {
  max-height: 65vh;
  overflow: auto;
}
ul {
  list-style: none;
  padding: 0;
}
li button {
  width: 100%;
  text-align: left;
  margin-bottom: 0.5rem;
}
#detail {
  margin-top: 1rem;
}
#images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
figure {
  margin: 0;
  min-width: 0;
}
figure img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  image-rendering: auto;
  background: #182522;
}
figcaption {
  padding: 0.5rem 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#login {
  max-width: 360px;
  margin: 3rem auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  header,
  #status,
  main {
    padding: 0.75rem;
    margin: 0;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  #map {
    height: 48vh;
    min-height: 280px;
  }
  .list-panel {
    max-height: 40vh;
  }
  #images {
    grid-template-columns: 1fr;
  }
  #filters {
    margin-top: 1rem;
  }
  h1 {
    font-size: 1.1rem;
  }
}
