:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101016;
  color: #f4f1e9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #aaa6b4;
  --line: #393643;
  --accent: #d4a63c;
  --surface: #191820;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at top, #282133 0, #101016 50rem);
}

.page {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 48px 0 28px;
}

.brand { margin-bottom: 24px; }
.eyebrow { color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 10px 0 8px; font-family: Georgia, serif; font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.12; }
.brand p { margin: 0; color: var(--muted); }

.panel {
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 18px 70px #0005;
}

.muted, .hint { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.muted { margin: 0 0 6px; }
.results { display: grid; gap: 10px; margin: 22px 0 28px; }
.result-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.result-card h2 { margin: 0 0 8px; font-size: 1rem; }
.result-counts { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .85rem; }
.count-available { color: #a9dfb7; }
.count-maybe { color: #f0d38b; }

.vote-form { display: grid; gap: 10px; }
label, legend { font-weight: 650; }
select, button { min-height: 46px; border-radius: 8px; font: inherit; }
select { width: 100%; padding: 0 12px; border: 1px solid var(--line); background: #101016; color: inherit; }
.hint { margin: 0 0 8px; }
.availability { display: grid; gap: 12px; min-width: 0; margin: 8px 0 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.availability legend { padding: 0 6px; }
.slot { padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.slot-title { display: block; margin-bottom: 10px; font-weight: 650; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.choices label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 450; }
input[type="radio"] { accent-color: var(--accent); }
button { padding: 0 18px; border: 0; background: var(--accent); color: #17130b; cursor: pointer; font-weight: 750; }
button:hover { filter: brightness(1.08); }
button:disabled { cursor: wait; opacity: .65; }
.form-message { min-height: 1.3em; margin: 0; color: #a9dfb7; font-size: .9rem; }
.form-message.error, #poll-status.error { color: #ffaaa3; }
footer { padding: 18px 2px; color: var(--muted); font-size: .78rem; text-align: center; }

@media (max-width: 480px) {
  .page { padding-top: 30px; }
  .choices { display: grid; grid-template-columns: 1fr; }
}
