:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #203329;
  background: #f3f5ef;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main {
  max-width: 1240px;
  margin: auto;
  padding: 28px;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #d8dfd1;
}
h1 {
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -1px;
  margin: 8px 0;
}
h2 {
  font-size: 21px;
  margin: 0 0 8px;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.5;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #587363;
  margin: 0;
}
.muted,
small {
  color: #526556;
  font-size: 13px;
}
button,
.button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 11px 16px;
  border: 1px solid #bbcbbd;
  border-radius: 9px;
  background: #fff;
  color: #234432;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.primary {
  background: #215c3c;
  color: white;
}
button:hover,
.button:hover {
  background: #e9f1e6;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #cb9519;
  outline-offset: 3px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0;
}
.metrics article {
  background: #fff;
  border: 1px solid #d8dfd1;
  padding: 20px;
  border-radius: 14px;
}
.metrics span {
  font-size: 13px;
  font-weight: 600;
}
.metrics strong {
  display: block;
  font-size: 32px;
  margin: 12px 0;
  letter-spacing: -1px;
}
.metrics small {
  display: block;
}
.panel,
#locked {
  padding: 24px;
  border: 1px solid #d8dfd1;
  border-radius: 14px;
  background: #fff;
  margin-bottom: 20px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.section-heading p {
  margin: 5px 0 16px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 14px 0 22px;
}
label {
  font-size: 12px;
  font-weight: 650;
  display: grid;
  gap: 7px;
  min-width: 155px;
}
.filters label:first-child {
  flex: 1;
}
input,
select {
  padding: 12px;
  border: 1px solid #b9c9bc;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: #203329;
  min-width: 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 11px;
  color: #587363;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 10px;
  border-bottom: 2px solid #dce5d7;
}
td {
  padding: 16px 10px;
  border-bottom: 1px solid #e4eade;
  font-size: 13px;
}
td small {
  display: block;
  font-size: 12px;
  margin-top: 5px;
}
td button {
  border: 0;
  padding: 0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.badge {
  display: inline-block;
  background: #ebf4e8;
  color: #295c36;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
}
.offline {
  background: #f2f0e7;
  color: #70582d;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.day {
  padding: 12px;
  background: #f4f7f0;
  border-radius: 8px;
}
.day strong,
.day small {
  display: block;
  margin: 6px 0;
}
.day progress {
  display: block;
  width: 100%;
  height: 8px;
  accent-color: #3a7950;
}
.day time {
  font-size: 12px;
}
.locations {
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.locations li {
  font-size: 13px;
  background: #f4f7f0;
  padding: 12px;
  border-radius: 8px;
}
dialog {
  width: min(830px, 95vw);
  max-height: 90dvh;
  overflow: auto;
  padding: 26px;
  border: 1px solid #b9c9bc;
  border-radius: 16px;
  color: inherit;
}
dialog::backdrop {
  background: #192a22a6;
}
.collection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.pokemon {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dde5d8;
  border-radius: 8px;
}
.pokemon img {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}
.pokemon small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}
#status {
  font-size: 13px;
}
#detail-info {
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  header,
  main {
    padding: 18px;
  }
  header {
    align-items: start;
    flex-direction: column;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .metrics article {
    padding: 15px;
  }
  .metrics strong {
    font-size: 25px;
  }
  .panel {
    padding: 16px;
  }
  .days {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }
  .day:last-child {
    grid-column: 1/-1;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .filters label {
    flex: 1;
  }
  .collection {
    grid-template-columns: 1fr;
  }
}

.town-auto-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.town-auto-label input {
  width: auto;
}
.town-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.town-list article {
  padding: 16px;
  border: 1px solid #dde5d8;
  border-radius: 10px;
}
.town-list small {
  display: block;
  margin-top: 8px;
}
.town-art {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.town-art figure {
  margin: 0;
  padding: 12px;
  background: #eef3e8;
  border-radius: 10px;
}
.town-art img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}
.town-art figcaption {
  font-weight: 700;
}
#town-review-map {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 16px auto;
  image-rendering: pixelated;
}
#town-review-dialog {
  width: min(920px, calc(100% - 32px));
}
#town-review-map[hidden] {
  display: none;
}
#town-review-sources {
  overflow-wrap: anywhere;
}
#town-review-reason {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0;
}
.town-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
