:root {
  --bg: #f4f1ea;
  --card: #fffdf8;
  --ink: #1d1d1d;
  --accent: #0f766e;
  --line: #d8d2c7;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff8eb, var(--bg));
}

.wrap {
  max-width: 980px;
  margin: 32px auto;
  padding: 0 16px;
}

h1 { margin: 0; }
.lead { color: #4b4b4b; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}

form { display: grid; gap: 10px; }
textarea, input, select { width: 100%; }
button {
  width: fit-content;
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

.row { display: flex; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.mode-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f5f3;
  color: #11574f;
  font-weight: 600;
}
.tab-btn {
  background: #dbe7e6;
  color: #123;
}
.tab-btn.active {
  background: var(--accent);
  color: #fff;
}
.dl-link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  background: #124c94;
  color: #fff;
}

#map {
  width: 100%;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  overflow: auto;
  max-height: 360px;
}

@media (max-width: 640px) {
  .grid2 { grid-template-columns: 1fr; }
  .row { flex-direction: column; }
}
