:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1b2333;
  --muted: #5d6679;
  --accent: #1f4e9c;
  --accent-text: #ffffff;
  --border: #d5dae5;
  --error: #b3261e;
  --ok: #1b7a43;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151f; --card: #1a2030; --text: #e8ebf3; --muted: #9aa3b7;
    --accent: #6fa0ee; --accent-text: #0b1020; --border: #2c3550;
    --error: #ff8a80; --ok: #6fd69a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
header.site { padding: 20px 16px 4px; max-width: 1400px; margin: 0 auto; }
header.site h1 { margin: 0; font-size: 1.6rem; }
header.site p { margin: 4px 0 0; color: var(--muted); }
main { max-width: 1400px; margin: 0 auto; padding: 16px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { main { grid-template-columns: 3fr 2fr; align-items: start; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.card h2 { margin-top: 0; font-size: 1.2rem; }
.logos { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 16px; }
.logos img { width: 96px; height: 96px; object-fit: contain; border-radius: 50%; }
.viewer { width: 100%; height: 70vh; min-height: 420px; border: 1px solid var(--border); border-radius: 8px; }
label { display: block; font-weight: 600; margin: 14px 0 4px; }
input[type=text], input[type=email] {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
}
input:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hint { color: var(--muted); font-size: .875rem; margin-top: 4px; }
.field-error { color: var(--error); font-size: .875rem; min-height: 1.2em; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 16px; }
.agree input { margin-top: 5px; }
button.primary {
  margin-top: 16px; width: 100%; padding: 12px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: var(--accent-text); border: 0; border-radius: 8px;
}
button.primary:disabled { opacity: .6; cursor: wait; }
.ac { position: relative; }
.ac ul {
  position: absolute; z-index: 10; left: 0; right: 0; margin: 2px 0 0; padding: 0; list-style: none;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px; max-height: 260px; overflow-y: auto;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.ac li { padding: 9px 12px; cursor: pointer; }
.ac li[aria-selected=true], .ac li:hover { background: var(--accent); color: var(--accent-text); }
.ac li.empty { cursor: default; color: var(--muted); }
.picked { color: var(--ok); font-size: .875rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success { text-align: center; }
.success .tick { font-size: 3rem; color: var(--ok); }
[hidden] { display: none !important; }

/* map page */
body.map-page { height: 100vh; display: flex; flex-direction: column; }
.map-bar {
  display: flex; align-items: center; gap: 16px; padding: 10px 16px;
  background: var(--card); border-bottom: 1px solid var(--border);
}
.map-bar h1 { font-size: 1.1rem; margin: 0; flex: 1; }
.map-bar .total { font-weight: 700; font-size: 1.2rem; }
#map { flex: 1; min-height: 300px; }
.display .map-bar { padding: 14px 28px; }
.display .map-bar h1 { font-size: 2rem; }
.display .map-bar .total { font-size: 2.4rem; }
.display .map-bar a, .display .map-bar .status { display: none; }
.pin {
  background: var(--accent); color: var(--accent-text); border: 2px solid #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.pin.cluster { background: #c2410c; color: #fff; }
