/* Pfizer Story Spin — design tokens taken from Story-Spin-Mockup.pdf */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url('/fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url('/fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 700; font-display: swap; src: url('/fonts/hanken-grotesk-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #F4F6FF;
  --navy: #0B1033;
  --ink: #0B1033;
  --blue: #0F1FD0;
  --blue-hover: #0B18A8;
  --blue-500: #2C5CFF;
  --blue-400: #4C7DFF;
  --navy-700: #0A1470;
  --muted: #565D87;
  --line: #C9CFF0;
  --track: #D9DEF7;
  --white: #FFFFFF;
  --danger: #B3261E;
  --ok: #1B7F4B;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 16, 51, .06), 0 8px 24px rgba(11, 16, 51, .06);
  --display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --text: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: 16px; line-height: 1.45;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

/* ---------- top bar (navy strip from the mockup) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 6px clamp(12px, 2.2vw, 22px);
  background: var(--navy); color: var(--line);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.topbar__brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__spacer { flex: 1; }
.topbar__code strong { color: var(--white); letter-spacing: .14em; }
.topbar__group { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 36px; height: 32px; padding: 0 10px;
  border: 1px solid rgba(201, 207, 240, .28); border-radius: 6px;
  background: transparent; color: var(--line); cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.icon-btn[aria-pressed="true"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn--danger:hover { background: #fff; color: var(--danger); }
.icon-btn .label { display: none; }
@media (min-width: 900px) { .icon-btn .label { display: inline; } }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 12px 28px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--blue); color: var(--white); cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: clamp(18px, 2vw, 24px); letter-spacing: .02em; text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(11, 16, 51, .08);
  transition: background-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease), opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover:not(:disabled) { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 31, 208, .22); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.99); box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn__key { font-family: var(--text); font-weight: 700; font-size: 12px; letter-spacing: .02em; text-transform: none; opacity: .9; }
.btn--block { width: 100%; }
.btn--secondary { background: var(--white); color: var(--navy); border: 1.5px solid var(--line); box-shadow: none; }
.btn--secondary:hover:not(:disabled) { background: var(--white); border-color: var(--blue); color: var(--blue); box-shadow: none; }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.btn--ghost { background: transparent; color: var(--muted); box-shadow: none; font-family: var(--text); font-weight: 700; font-size: 15px; text-transform: none; letter-spacing: 0; min-height: 44px; padding: 8px 14px; }
.btn--ghost:hover:not(:disabled) { background: rgba(15, 31, 208, .06); color: var(--blue); box-shadow: none; transform: none; }
.btn--danger { background: var(--danger); }
.btn--danger:hover:not(:disabled) { background: #8f1e18; box-shadow: none; }
.btn.is-busy { pointer-events: none; opacity: .7; }

/* ---------- typography ---------- */
.eyebrow { margin: 0; font-weight: 700; font-size: clamp(13px, 1.3vw, 15px); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eyebrow--blue { color: var(--blue); font-size: clamp(14px, 1.6vw, 18px); }
.display { margin: 0; font-family: var(--display); font-weight: 800; color: var(--ink); letter-spacing: -.01em; line-height: 1.02; }
.display--xl { font-size: clamp(40px, 6.4vw, 84px); }
.display--lg { font-size: clamp(32px, 4.6vw, 60px); }
.display--md { font-size: clamp(24px, 3.3vw, 44px); line-height: 1.14; }
.lead { margin: 0; font-size: clamp(17px, 2.1vw, 26px); color: var(--muted); line-height: 1.4; }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
.error-text { margin: 0; font-size: 14px; font-weight: 600; color: var(--danger); min-height: 1.4em; }

/* ---------- page container ---------- */
.page { width: 100%; max-width: 1360px; margin: 0 auto; padding: clamp(16px, 3vw, 36px) clamp(16px, 4vw, 48px) 56px; }

/* value colours: the four segment colours of the original Story Spin wheel */
.v-courage { --v: #0F1FD0; }
.v-excellence { --v: #2C5CFF; }
.v-equity { --v: #4C7DFF; }
.v-joy { --v: #0A1470; }

.panel { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 24px); }
.panel-enter { animation: panelIn .5s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }

/* ---------- topic chip, prompt, cards ---------- */
.topic-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 22px 10px 16px; border-radius: var(--radius-sm);
  background: var(--blue); color: var(--white);
  font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1;
}
.chip img { width: clamp(28px, 3vw, 40px); height: auto; }
.chip--sm { font-size: 20px; padding: 6px 14px 6px 10px; gap: 10px; }
.chip--sm img { width: 24px; }
.prompt { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3.3vw, 44px); line-height: 1.16; color: var(--ink); }

.card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.person-card { display: flex; align-items: center; gap: 14px; }
.icon-tile { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--blue); }
.icon-tile img { width: 26px; height: auto; }
.icon-tile--lg { width: 52px; height: 52px; }
.icon-tile--lg img { width: 30px; }
.icon-tile--muted { background: var(--line); }
.person-card__title { margin: 0; font-weight: 700; font-size: 20px; line-height: 1.2; }
.person-card__sub { margin: 0; color: var(--muted); font-size: 15px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.dot--off { background: #A9AFCF; }
.dot--live { animation: livePulse 1.8s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .35; } }

/* ---------- values wheel (mockup pages 1–5) ---------- */
.wheel { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 0 auto; filter: drop-shadow(0 10px 28px rgba(11, 16, 51, .14)); }
.wheel svg { width: 100%; height: 100%; overflow: visible; }
.wheel__label text { fill: #fff; font-family: var(--text); font-weight: 700; font-size: 15px; letter-spacing: .05em; }
.wheel__hub-text { fill: var(--blue); font-family: var(--display); font-weight: 800; font-size: 24px; }
.wheel__seg path { transition: filter .4s var(--ease), opacity .4s var(--ease); }
.wheel.has-winner .wheel__seg:not(.is-winner) path { opacity: .55; }
.wheel__seg.is-winner path { stroke-width: 6; }
.wheel__pointer {
  position: absolute; top: -6px; left: 50%; width: 40px; height: 34px; transform: translateX(-50%);
  background: var(--navy); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0;
}
.wheel.is-stopped .wheel__pointer { animation: pointerSettle .6s var(--ease); }
@keyframes pointerSettle { 0% { transform: translateX(-50%) rotate(0); } 30% { transform: translateX(-50%) rotate(-9deg); } 65% { transform: translateX(-50%) rotate(4deg); } 100% { transform: translateX(-50%) rotate(0); } }
.spin-area { display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* ---------- value picker (participant) ---------- */
.values-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.value-card {
  position: relative; width: 100%; min-height: 132px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 16px; border: 0; border-radius: var(--radius); cursor: pointer; text-align: left;
  background: var(--v, var(--blue)); color: var(--white);
  font-family: var(--display); font-weight: 800; font-size: clamp(20px, 5.4vw, 26px); line-height: 1.1;
  box-shadow: 0 1px 0 rgba(11, 16, 51, .08);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), opacity .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.value-card img { width: 40px; height: 40px; object-fit: contain; object-position: left center; }
.value-card:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 31, 208, .22); }
.value-card:active:not(:disabled) { transform: scale(.985); }
.value-card:disabled { cursor: default; }
.value-card__state { font-family: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .92; }
.value-card.is-done { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.value-card.is-done .value-card__icon { background: var(--v); border-radius: var(--radius-sm); padding: 6px; }
.value-card.is-done .value-card__state { color: var(--ok); opacity: 1; }
.value-card.is-locked { opacity: .45; }
.value-card__icon { display: grid; place-items: center; width: 44px; height: 44px; }
.value-card__icon img { width: 32px; height: 32px; }

.progress { display: flex; align-items: center; gap: 12px; }
.progress__bar { flex: 1; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.progress__fill { height: 100%; border-radius: inherit; background: var(--blue); transition: width .5s var(--ease); }
.progress__label { font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.chip--value { background: var(--v, var(--blue)); }
.back-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer; }
.back-link:hover { color: var(--blue); }

/* ---------- answers grouped by participant (dashboard + results) ---------- */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.p-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); animation: panelIn .45s var(--ease) both; min-width: 0; }
.p-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.p-card__name { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.p-card__meta { margin: 4px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.p-card__empty { margin: 0; color: var(--muted); font-style: italic; }
.answers { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ans { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding: 12px; border-radius: var(--radius-sm); background: var(--bg); }
.ans.is-new { animation: answerIn .8s var(--ease) both; }
@keyframes answerIn { from { opacity: 0; transform: translateY(8px); background: #DCE3FF; } to { opacity: 1; transform: none; background: var(--bg); } }
.ans__tile { grid-row: span 3; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--v, var(--blue)); }
.ans__tile img { width: 22px; height: 22px; object-fit: contain; }
.ans__value { margin: 0; font-weight: 800; font-family: var(--display); font-size: 17px; }
.ans__prompt { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.35; }
.ans__text { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge--progress { color: var(--blue); border-color: rgba(15, 31, 208, .35); background: #EEF1FF; }
.badge--done { color: var(--ok); border-color: rgba(27, 127, 75, .35); background: #EAF6EF; }
.icon-action { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.icon-action:hover { color: var(--danger); border-color: var(--danger); background: #FFF5F4; }
.icon-action svg { width: 18px; height: 18px; }

/* ---------- live stage (shared by host and participants) ---------- */
.stage-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
@media (min-width: 960px) { .stage-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.stage-grid .wheel { width: min(100%, 460px, 62dvh); }
.speaker { display: flex; flex-direction: column; gap: 10px; padding: clamp(16px, 2.4vw, 24px); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); animation: panelIn .45s var(--ease) both; }
.speaker__name { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; overflow-wrap: anywhere; }
.speaker.is-me { background: var(--blue); border-color: var(--blue); color: var(--white); }
.speaker.is-me .eyebrow, .speaker.is-me .speaker__name, .speaker.is-me .lead { color: var(--white); }
.speaker--pending .speaker__name { color: var(--muted); }
.dots::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* turn history */
.turns { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.turn { display: grid; grid-template-columns: 2.2em auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--track); animation: panelIn .35s var(--ease) both; }
.turn:first-child { border-top: 0; }
.turn__n { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.turn .ans__tile { width: 32px; height: 32px; grid-row: auto; }
.turn .ans__tile img { width: 20px; height: 20px; }
.turn__body { display: flex; flex-direction: column; min-width: 0; }
.turn__topic { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.turn__name { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.turn[data-status="skipped"] .turn__name { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.host-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* host meeting screen: keep topic, speaker and the two decision buttons above the fold at 720p */
.stage-grid--host .wheel { width: min(100%, 440px, calc(100dvh - 170px)); }
.stage-grid--host .prompt { font-size: clamp(20px, 2.2vw, 30px); }
.stage-grid--host .chip { font-size: clamp(22px, 2.4vw, 34px); padding-block: 6px; }
.stage-grid--host .speaker { padding: 14px 18px; gap: 4px; }
.stage-grid--host .speaker__name { font-size: clamp(28px, 3.4vw, 46px); }
.stage-grid--host .speaker .lead { font-size: clamp(15px, 1.4vw, 19px); }
.stage-grid--host .panel { gap: 14px; }
.name-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.name-list__item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 17px; animation: panelIn .35s var(--ease) both; overflow-wrap: anywhere; }

/* roster table (host) */
.roster { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.roster__row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--track); animation: panelIn .35s var(--ease) both; }
.roster__row:first-child { border-top: 0; }
.roster__name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.roster__value { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); }
.roster__value .ans__tile { width: 28px; height: 28px; grid-row: auto; }
.roster__value .ans__tile img { width: 18px; height: 18px; }
.roster__status { justify-self: end; }
@media (max-width: 640px) { .roster__row { grid-template-columns: minmax(0, 1fr) auto; } .roster__value { grid-column: 1; grid-row: 2; } .roster__status { grid-row: 1 / span 2; grid-column: 2; } }
.pending-note { margin: 0; font-weight: 700; color: var(--muted); }
.pending-note.is-ready { color: var(--ok); }

/* ---------- host dashboard ---------- */
.dash-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: clamp(20px, 3vw, 32px); }
@media (min-width: 1000px) { .dash-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 12px 14px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); }
.stat__n { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__l { margin: 6px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; }
.tab { min-height: 40px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--blue); color: var(--white); }
.round-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.round-status.is-open { color: var(--ok); }
.empty-state { padding: clamp(28px, 5vw, 56px); text-align: center; background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.input, .textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); font-size: 18px; font-weight: 600;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15, 31, 208, .14); }
.textarea { min-height: 160px; resize: vertical; font-weight: 400; line-height: 1.45; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.counter { font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* participant list (host) */
.people { display: flex; flex-direction: column; gap: 10px; }
.people__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.people__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 2px; list-style: none; max-height: 132px; overflow: auto; }
.share .btn--ghost { min-height: 32px; padding-top: 2px; padding-bottom: 2px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 600; animation: panelIn .35s var(--ease) both; }
.pill--done { color: var(--muted); background: transparent; }
.pill--current { border-color: var(--blue); color: var(--blue); }
.pill__tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* share card (host lobby) */
.panel--lobby { gap: clamp(12px, 1.8vw, 20px); }
.share { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; align-items: center; padding: 12px 16px; }
.share__qr { width: clamp(96px, 9vw, 124px); aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--white); padding: 6px; border: 1.5px solid var(--line); }
.share__qr img { width: 100%; height: 100%; }
.share__code { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); letter-spacing: .12em; }
.share__link { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.share__link--big { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 2vw, 26px); color: var(--ink); line-height: 1.2; }
/* big QR in the lobby so it scans easily from the back of a meeting room */
.share--big { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: clamp(14px, 2vw, 22px); }
.share--big .share__qr { width: min(100%, 340px, 46dvh); padding: 10px; }
.share--big .btn--ghost { padding-left: 12px !important; }
@media (min-width: 1000px) { .dash-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* live counters pinned at the top of the host's live screen */
.stats--top { margin-bottom: clamp(14px, 2vw, 22px); grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 700px) { .stats--top { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spins-field { max-width: 420px; }
.spins-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.spins-edit label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spins-edit .input { width: 96px; min-height: 44px; padding: 6px 12px; font-size: 18px; font-weight: 700; }
/* waiting room: participants as numbered tiles (no names) */
.num-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.num-list__item { position: relative; display: grid; place-items: center; min-width: 56px; height: 56px; padding: 0 12px; border-radius: var(--radius); background: var(--white); border: 1.5px solid var(--line); font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--navy); font-variant-numeric: tabular-nums; animation: panelIn .35s var(--ease) both; }
.num-list__item::after { content: ''; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.num-list__item.is-offline { color: var(--muted); }
.num-list__item.is-offline::after { background: var(--line); }
.spins-edit .error-text { flex-basis: 100%; min-height: 0; text-align: right; }
.spins-edit .error-text:empty { display: none; }
.spins-edit .btn--small { min-height: 44px; }
.spins-field .input { max-width: 160px; font-size: 22px; font-weight: 700; }
.stats--top .stat { padding: 10px 14px; }
.stats--top .stat__n { font-size: clamp(24px, 2.6vw, 32px); }

/* status badge (participant) */
.status { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.status--turn { background: var(--blue); border-color: var(--blue); color: var(--white); }
.status--done { color: var(--ok); }

/* toast + banner */
.toast-wrap { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 460px); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--navy); color: var(--white); font-weight: 600; font-size: 15px; box-shadow: var(--shadow); animation: panelIn .3s var(--ease) both; }
.toast--error { background: var(--danger); }
.banner { padding: 10px 16px; background: #FFF4D6; color: #5B4300; font-weight: 600; font-size: 14px; text-align: center; }

/* ---------- wrap-up / results (mockup 6/8) ---------- */
.results { width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(18px, 3vw, 40px) clamp(16px, 4vw, 48px) 56px; animation: panelIn .6s var(--ease) both; }
.results__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(18px, 3vw, 36px); }
.results__logo { height: clamp(26px, 3vw, 34px); width: auto; }
.results .board { margin-top: clamp(20px, 4vw, 40px); }
.page .results { max-width: none; padding: 8px 0 0; }
@media (min-width: 1200px) { .results .board { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); } }

/* ---------- landing ---------- */
.landing { display: grid; place-items: center; min-height: calc(100dvh - 44px); padding: 24px; }
.landing__card { width: min(100%, 520px); display: flex; flex-direction: column; gap: 20px; }
.brand-mark { width: 150px; height: auto; }

/* modal */
dialog { border: 0; border-radius: var(--radius); padding: 24px; width: min(92vw, 440px); box-shadow: 0 20px 60px rgba(11, 16, 51, .25); color: var(--ink); }
dialog::backdrop { background: rgba(11, 16, 51, .45); }
dialog h2 { margin: 0 0 8px; font-family: var(--display); font-size: 26px; }
dialog p { margin: 0 0 20px; color: var(--muted); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* small phones */
@media (max-width: 480px) {
  .btn { min-height: 54px; padding: 12px 20px; }
  .share { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
