:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #172d28;
  background: #f0f4ed;
  --line: #dbe4db;
  --muted: #455d55;
  --ink: #115a49;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header, main { max-width: 1510px; margin-inline: auto; }
header {
  display: flex; justify-content: space-between; align-items: end;
  gap: 16px; padding: 26px clamp(14px, 4vw, 54px) 20px;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.45rem); letter-spacing: -.06em; line-height: 1.04; }
h2 { font-size: 1.15rem; letter-spacing: -.025em; }
h3 { font-size: .97rem; }
.eyebrow { color: var(--ink); font-size: .72rem; font-weight: 750; letter-spacing: .13em; margin-bottom: 6px; }
.subtitle { margin-top: 7px; color: var(--muted); }
.badge {
  padding: 7px 11px; background: #dceee0; border-radius: 999px; color: #174e3c;
  font-size: .8rem; font-weight: 650; white-space: nowrap;
}
main {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 415px);
  gap: 16px; padding: 0 clamp(14px, 4vw, 54px) 30px; align-items: start;
}
.map-panel, aside { border: 1px solid var(--line); border-radius: 15px; background: #fff; overflow: hidden; }
.map-toolbar {
  padding: 13px 16px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.map-title p { margin-top: 3px; font-size: .83rem; color: var(--muted); }
#map { height: clamp(455px, 66vh, 800px); background: #e8ece5; }
.map-legend { display: flex; flex-wrap: wrap; gap: 7px 16px; padding: 12px 16px; font-size: .79rem; color: var(--muted); }
.mark, .swatch { display: inline-block; width: .78em; height: .78em; margin-right: .35em; border-radius: 2px; }
.mark.measured { background: #19705a; }
.mark.outline { border: 1.5px solid #566861; background: #e1e9e5; }
.mark.review { background: #fff4db; border: 1.5px dashed #996016; }
.picker, .profile, details { padding: 15px 17px; }
.picker, .profile { border-bottom: 1px solid var(--line); }
label { display: block; margin: 10px 0 4px; font-size: .8rem; font-weight: 600; }
input, select, button {
  min-height: 38px; border: 1px solid #aabeb3; border-radius: 7px;
  background: #fff; padding: 7px 9px; color: inherit; font: inherit;
}
input, select { width: 100%; }
.suggestions {
  margin: 5px 0 0; padding: 3px; list-style: none; max-height: 205px; overflow-y: auto;
  border: 1px solid #aabeb3; border-radius: 7px; background: #fff;
}
.suggestions li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 8px; border-radius: 4px; cursor: pointer; font-size: .87rem;
}
.suggestions li:hover, .suggestions [aria-selected="true"] { background: #e0efe4; }
.suggestions small { color: var(--muted); white-space: nowrap; }
.no-results { margin-top: 6px; color: var(--muted); font-size: .82rem; }
button { color: #194e40; background: #f3f8f4; font-size: .82rem; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid #136b57; outline-offset: 2px; }
.profile h2 { font-size: 1.4rem; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 11px 0; }
.metrics div { background: #f0f6f0; padding: 8px 10px; border-radius: 7px; }
dt { font-size: .75rem; color: var(--muted); }
dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.notice {
  padding: 8px 10px; margin: 8px 0; border-radius: 6px;
  color: #634813; background: #fbf3df; font-size: .82rem;
}
.map-panel > .notice { margin: 0 16px 12px; }
#composition { margin-top: 14px; }
.bar {
  display: flex; overflow: hidden; height: 12px; border-radius: 5px;
  margin: 8px 0; background: #e7eae7;
}
table { width: 100%; border-collapse: collapse; font-size: .83rem; }
th, td { padding: 6px 3px; border-bottom: 1px solid var(--line); text-align: right; }
th:first-child, td:first-child { text-align: left; }
td { font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
summary { color: var(--ink); font-size: .85rem; font-weight: 650; cursor: pointer; }
details p { color: var(--muted); font-size: .82rem; margin-top: 8px; line-height: 1.5; }
@media (max-width: 780px) {
  main { grid-template-columns: 1fr; }
  #map { height: clamp(300px, 51vh, 500px); }
}
@media (max-width: 360px) {
  header { align-items: start; flex-direction: column; }
}
