:root {
  font-family: Inter, ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17211a;
  background: #f5f8f5;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }

.poll-page { min-height: 100dvh; }
.poll-shell { min-height: 100dvh; display: flex; flex-direction: column; padding: clamp(24px, 6vw, 72px); }
.eyebrow { margin: 0 0 12px; color: #3e5343; font-size: .82rem; font-weight: 800; letter-spacing: .12em; }
h1 { max-width: 900px; margin: 0; font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1.07; letter-spacing: -.045em; }
.vote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); flex: 1; align-content: center; margin: clamp(32px, 7vh, 80px) 0; }
.vote-card { min-height: min(38vh, 330px); border: 0; border-radius: 28px; color: #fff; cursor: pointer; font-size: clamp(1.55rem, 4vw, 3.4rem); font-weight: 900; letter-spacing: .02em; box-shadow: 0 8px 0 rgb(0 0 0 / .12); transition: transform .12s ease, filter .12s ease; }
.vote-card:active { transform: translateY(6px); box-shadow: 0 2px 0 rgb(0 0 0 / .12); }
.vote-card:focus-visible, .primary-button:focus-visible { outline: 5px solid #17211a; outline-offset: 4px; }
.yes { background: #138a45; }.no { background: #c72c3b; }.unsure { background: #e58117; }
.connection-status { margin: 0; color: #55635a; font-size: .95rem; text-align: center; }
.overlay { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 24px; }
.overlay[hidden] { display: none; }
.activation { background: rgb(245 248 245 / .98); }
.dialog { width: min(100%, 480px); padding: 32px; background: #fff; border-radius: 24px; box-shadow: 0 12px 60px rgb(0 0 0 / .16); }
.dialog h2 { margin: 0 0 12px; font-size: 2rem; }.dialog label { display: block; margin-top: 24px; font-weight: 700; }.dialog input { width: 100%; margin: 8px 0 16px; padding: 15px; border: 2px solid #b8c4ba; border-radius: 12px; font-size: 1.15rem; text-transform: uppercase; }
.primary-button { width: 100%; padding: 15px; border: 0; border-radius: 12px; background: #0b6b35; color: #fff; font-weight: 800; cursor: pointer; }.form-error { min-height: 1.25em; margin: 14px 0 0; color: #a81728; }
.thank-you { background: #138a45; color: #fff; }.thank-you h2 { font-size: clamp(2.5rem, 8vw, 6rem); text-align: center; }
.admin-shell { width: min(100% - 32px, 1000px); margin: 0 auto; padding: 48px 0; }.admin-dialog { margin: 40px 0; }.admin-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 28px 0 18px; }.secondary-button { padding: 10px 14px; border: 2px solid #0b6b35; border-radius: 10px; background: #fff; color: #0b6b35; font-weight: 700; cursor: pointer; }.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }.result { min-height: 180px; padding: 22px; border-radius: 20px; color: #fff; display: flex; flex-direction: column; }.result.total { background: #26382a; }.result span { font-size: .78rem; font-weight: 800; letter-spacing: .06em; }.result strong { margin-top: auto; font-size: clamp(2rem, 5vw, 3.5rem); }.result b { font-size: 1.1rem; }.device-codes { margin-top: 32px; padding: 28px; border-radius: 20px; background: #e6eee7; }.device-codes h2 { margin-top: 0; }.device-codes output { display: block; margin-top: 16px; font-size: 1.55rem; font-weight: 900; letter-spacing: .07em; }

@media (max-width: 640px) { .poll-shell { padding: 24px 18px; }.vote-grid { grid-template-columns: 1fr; margin: 24px 0; }.vote-card { min-height: 18vh; border-radius: 20px; } }
@media (max-width: 760px) { .result-grid { grid-template-columns: repeat(2, 1fr); }.admin-shell { padding-top: 28px; } }
