:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #637067;
  --line: #d8ded9;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --green: #22744c;
  --blue: #225f91;
  --amber: #b46d16;
}

* { box-sizing: border-box; }

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

button, input, textarea { font: inherit; }

button {
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: white;
  cursor: pointer;
  min-height: 42px;
  padding: 0 16px;
}

button.secondary { background: var(--blue); width: 100%; }
button:disabled { cursor: not-allowed; opacity: 0.55; }

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 12px;
}

textarea { min-height: 112px; resize: vertical; }
.shell { min-height: 100vh; padding: 24px; }
.stage { max-width: 1180px; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.status { border: 1px solid var(--line); border-radius: 999px; color: var(--muted); padding: 6px 10px; font-size: 14px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: end; padding: 36px 0 28px; }
.eyebrow { color: var(--amber); font-weight: 700; margin: 0 0 12px; text-transform: uppercase; font-size: 13px; }
h1 { max-width: 800px; margin: 0; font-size: 52px; line-height: 1.02; letter-spacing: 0; }
h2 { margin: 0; font-size: 18px; }
.session-card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.session-card label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.join-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 10px; }
.live { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.hidden { display: none; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.tools button { background: #e8efe9; color: var(--ink); padding: 0 10px; }
.tools button.active { background: var(--green); color: white; }
.results { grid-column: 1 / -1; }
.question { min-height: 48px; color: var(--ink); }
.choices { display: grid; gap: 8px; margin-bottom: 10px; }
.choice { background: #eef3f7; color: var(--ink); text-align: left; }
.result-item { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.bar { flex: 1; min-width: 80px; height: 12px; border-radius: 999px; background: #e6ebe7; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--green); }

@media (max-width: 860px) {
  .shell { padding: 16px; }
  .hero, .live { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
  .tools { grid-template-columns: 1fr; }
}
