:root {
  color-scheme: light;
  --ink: #1f2937;
  --muted: #5b6472;
  --line: #d7dde5;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --warn: #b45309;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  border: 1px solid var(--accent-dark);
  border-radius: 6px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
  min-height: 42px;
  padding: 0 16px;
}

button:hover {
  background: var(--accent-dark);
}

.shell {
  width: min(960px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--accent-dark);
  font-weight: 700;
  margin: 0 0 8px;
}

h1 {
  font-size: 34px;
  line-height: 1.18;
  margin: 0;
}

.status {
  display: grid;
  gap: 8px;
  color: var(--muted);
  min-width: 220px;
  text-align: right;
}

.vote-panel {
  display: grid;
  gap: 12px;
}

.option,
.results,
.toolbar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.option strong {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #e6fffb;
  color: var(--accent-dark);
  margin-right: 10px;
}

.option span {
  color: var(--muted);
}

.results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
}

.results div {
  display: grid;
  gap: 6px;
  padding: 20px;
  text-align: center;
}

.results span {
  color: var(--muted);
}

.results strong {
  font-size: 32px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
}

#message {
  color: var(--warn);
  min-height: 24px;
}

@media (max-width: 700px) {
  .header,
  .option,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .status {
    text-align: left;
  }

  .results {
    grid-template-columns: 1fr;
  }
}
