:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f1ea;
  color: #1f2a2e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
}

.map-panel {
  min-height: 100vh;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 520px;
  background: #d8ddd2;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  background: #fcfbf7;
  border-left: 1px solid #d7d1c4;
  overflow-y: auto;
}

.eyebrow,
.label {
  margin: 0 0 8px;
  color: #426455;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.lede {
  margin: 12px 0 0;
  color: #5b6468;
  line-height: 1.45;
}

form,
label {
  display: grid;
  gap: 9px;
}

form {
  gap: 18px;
}

label {
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c8c2b6;
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
  color: #1f2a2e;
}

textarea {
  resize: vertical;
}

.grid,
.actions,
.search-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.search-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

button {
  border: 1px solid #1f2a2e;
  border-radius: 6px;
  padding: 11px 12px;
  background: #1f2a2e;
  color: #fff;
  cursor: pointer;
}

button[type="button"] {
  background: transparent;
  color: #1f2a2e;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.search-results {
  display: grid;
  gap: 8px;
  min-height: 0;
  color: #5b6468;
  font-size: 13px;
}

.result-button {
  width: 100%;
  padding: 9px 10px;
  border-color: #c8c2b6;
  background: #fff;
  color: #1f2a2e;
  text-align: left;
}

.status-box {
  display: grid;
  gap: 10px;
}

code,
pre {
  display: block;
  width: 100%;
  margin: 0;
  border: 1px solid #d7d1c4;
  border-radius: 6px;
  padding: 12px;
  background: #f5f8f4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.note-marker {
  font-weight: 800;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 55vh;
  }

  .control-panel {
    border-left: 0;
    border-top: 1px solid #d7d1c4;
  }

  .search-row,
  .grid,
  .actions {
    grid-template-columns: 1fr;
  }
}
