/* Corporate Wrapped 2026
   The call chrome stays quiet (graphite). The shared slide is the one loud thing. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Call chrome */
  --graphite: #2A2C31;
  --panel: #3A3D44;
  --panel-raised: #474B54;
  --chrome-ink: #F2F3F5;
  --chrome-dim: #B9BDC6;
  --leave: #C9302C;

  /* Office-supply slide colours */
  --navy: #17193B;
  --synergy-blue: #2F3BFF;
  --highlighter: #F4EF3E;
  --conflict-red: #D93A2B;
  --spreadsheet-green: #22B566;
  --sticky-pink: #FF9DC4;
  --paper: #FFFFFF;

  --font: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --gap: 12px;
}

/* Slide themes: background + ink. Contrast is checked by tests/content.test.js. */
.theme-blue   { --bg: #2F3BFF; --ink: #FFFFFF; }
.theme-yellow { --bg: #F4EF3E; --ink: #17193B; }
.theme-red    { --bg: #D93A2B; --ink: #FFFFFF; }
.theme-green  { --bg: #22B566; --ink: #17193B; }
.theme-pink   { --bg: #FF9DC4; --ink: #17193B; }
.theme-paper  { --bg: #FFFFFF; --ink: #17193B; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--graphite);
  color: var(--chrome-ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

button { font: inherit; color: inherit; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--highlighter);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1.0625rem;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--synergy-blue); color: #fff; }
.btn-primary:hover { background: #2430E0; }
.btn-quiet { background: var(--panel-raised); color: var(--chrome-ink); }
.btn-quiet:hover { background: #555A64; }
.btn-leave { background: var(--leave); color: #fff; }
.btn-leave:hover { background: #B02824; }
.btn-ink { background: var(--navy); color: #fff; }
.btn-ink:hover { background: #262A5C; }
.btn-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-outline:hover { background: rgba(23, 25, 59, 0.06); }

/* ── Lobby (pre-join) ────────────────────────────────────────────────────── */

.lobby {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.lobby-inner {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.preview { margin: 0; }

.preview-video {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
.preview-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(20, 22, 26, 0.78);
  font-size: 0.875rem;
}

.join-title {
  margin: 0 0 16px;
  font-size: clamp(3.25rem, 9vw, 6.5rem);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.join-lede {
  margin: 0 0 12px;
  max-width: 34ch;
  font-size: 1.25rem;
  line-height: 1.35;
}
.join-meta {
  margin: 0 0 28px;
  color: var(--chrome-dim);
}
.fineprint {
  margin: 20px 0 0;
  max-width: 44ch;
  color: var(--chrome-dim);
  font-size: 0.875rem;
}

/* ── Call layout ─────────────────────────────────────────────────────────── */

.call {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.call-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  font-size: 0.9375rem;
}
.call-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.call-clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--chrome-dim);
  font-variant-numeric: tabular-nums;
}
.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF5A52;
}

.call-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(150px, 16vw, 220px);
  gap: var(--gap);
  padding: 0 var(--gap);
  min-height: 0;
}

.stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  container-type: size;
}

.screen {
  position: relative;
  width: min(100cqw, 100cqh * 16 / 9);
  height: min(100cqh, 100cqw * 9 / 16);
  container-type: size;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}
.screen:focus-visible { outline-offset: 3px; }

.presenting {
  position: absolute;
  top: 10px;
  left: 50%;
  translate: -50% 0;
  margin: 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(20, 22, 26, 0.82);
  color: #fff;
  font-size: 0.8125rem;
  pointer-events: none;
}

/* ── Participant tiles ───────────────────────────────────────────────────── */

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  justify-content: center;
  min-height: 0;
}

.tile {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile-initials {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--chrome-ink);
}
.tile-no-photo .tile-initials { display: grid; }
.tile-no-photo .tile-initials span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--panel-raised);
}

.tile-name {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  z-index: 1;
  margin: 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(20, 22, 26, 0.8);
  font-size: 0.8125rem;
  line-height: 1.25;
}
.tile-who { display: block; font-weight: 650; }
.tile-status { display: block; color: var(--chrome-dim); }

/* The AI notetaker: a bot avatar with a little voice meter. */
.bot-avatar {
  position: absolute;
  inset: 0 0 auto;
  height: 48%;
  display: grid;
  place-items: center;
}
.bot-face {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--synergy-blue);
  color: #fff;
  font-weight: 800;
  font-stretch: 80%;
}
.bot-meter {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 14px;
}
.bot-meter span {
  width: 3px;
  height: 40%;
  border-radius: 2px;
  background: var(--spreadsheet-green);
  animation: meter 1.1s ease-in-out infinite;
}
.bot-meter span:nth-child(2) { animation-delay: -0.35s; }
.bot-meter span:nth-child(3) { animation-delay: -0.7s; }
@keyframes meter {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

/* ── Credits and toolbar ─────────────────────────────────────────────────── */

.credits {
  margin: 0;
  color: var(--chrome-dim);
  font-size: 0.8125rem;
}
.credits a { color: var(--chrome-ink); }
.preview .credits { margin-top: 8px; }
.call-credits { padding: 8px 16px 0; text-align: center; }

.toolbar {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px max(12px, env(safe-area-inset-bottom));
}

.tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  color: var(--chrome-ink);
  cursor: pointer;
}
.tool:hover:not(:disabled) { background: var(--panel-raised); }
.tool:disabled { opacity: 0.45; cursor: default; }
.tool-primary { background: var(--synergy-blue); color: #fff; }
.tool-primary:hover:not(:disabled) { background: #2430E0; }
.tool-leave { background: var(--leave); color: #fff; }
.tool-leave:hover:not(:disabled) { background: #B02824; }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.tool-leave .icon { fill: currentColor; stroke: none; }

.icon-mic-off { display: none; }
#mic[aria-pressed='true'] { background: var(--leave); color: #fff; }
#mic[aria-pressed='true'] .icon-mic { display: none; }
#mic[aria-pressed='true'] .icon-mic-off { display: block; }

.mute-pill {
  position: fixed;
  left: 50%;
  bottom: 84px;
  translate: -50% 0;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--leave);
  color: #fff;
  font-weight: 650;
  font-size: 0.9375rem;
  pointer-events: none;
}
.mute-pill:empty { display: none; }

/* ── Slides: shared ──────────────────────────────────────────────────────── */

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7cqh 6cqw 11cqh;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}
.slide :focus-visible { outline-color: var(--ink); }
.theme-blue :focus-visible, .theme-red :focus-visible { outline-color: var(--highlighter); }

.slide :where(p, h2, ol, ul) { margin: 0; }

.lead {
  font-size: clamp(1rem, 4.6cqh, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 30ch;
  text-wrap: balance;
}

/* The big number: ultra-condensed and sized by its character count. */
.big {
  font-size: min(calc(90cqw / (var(--chars, 4) * 0.46)), 40cqh);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  margin: 1.5cqh 0 1cqh -0.04em;
  white-space: nowrap;
}

.label {
  font-size: clamp(1rem, 4.6cqh, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 30ch;
  text-wrap: balance;
}

.quip {
  margin-top: 3.5cqh;
  max-width: 46ch;
  font-size: clamp(0.95rem, 3.4cqh, 1.6rem);
  line-height: 1.35;
  text-wrap: pretty;
}

.title {
  font-size: clamp(2rem, 13cqh, 7rem);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.01em;
  max-width: 16ch;
  text-wrap: balance;
}
.title-xl { font-size: clamp(2.4rem, 17cqh, 9rem); }

.citation {
  margin-top: 2.5cqh;
  font-size: clamp(0.8rem, 2.4cqh, 1rem);
}
.citation a {
  position: relative;
  z-index: 1;
  text-underline-offset: 3px;
}

.slide-foot {
  position: absolute;
  left: 6cqw;
  right: 6cqw;
  bottom: 3.5cqh;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 1.2cqh;
  border-top: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  font-size: clamp(0.7rem, 2.2cqh, 0.9375rem);
}

/* ── Top 5 ───────────────────────────────────────────────────────────────── */

.ranking {
  margin-top: 3cqh;
  padding: 0;
  list-style: none;
  counter-reset: rank;
  display: grid;
  gap: 1.2cqh;
}
.ranking li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 1.4em 1fr auto;
  align-items: baseline;
  gap: 0 0.6em;
  font-size: clamp(1rem, 4.4cqh, 2.2rem);
  line-height: 1.15;
}
.ranking li::before {
  content: counter(rank);
  font-stretch: 62%;
  font-weight: 900;
}
.ranking .count {
  font-size: 0.7em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── Summary ─────────────────────────────────────────────────────────────── */

.summary {
  justify-content: flex-start;
  gap: 1.6cqh;
  padding-top: 6cqh;
  cursor: default;
}
.summary-kicker { font-size: clamp(0.85rem, 2.6cqh, 1.1rem); font-weight: 600; }
.summary-title {
  font-size: clamp(1.6rem, 8cqh, 4rem);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.92;
  max-width: 22ch;
  text-wrap: balance;
}
.summary-persona { font-size: clamp(1rem, 3.6cqh, 1.6rem); font-weight: 650; }
.summary-stats {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5cqw;
}
.summary-stats li {
  padding: 1.6cqh 1.4cqw;
  border-radius: 6px;
  background: var(--stat-bg, var(--highlighter));
  color: var(--navy);
  font-size: clamp(0.8rem, 2.5cqh, 1.05rem);
  line-height: 1.2;
}
.summary-stats li:nth-child(2) { --stat-bg: var(--sticky-pink); }
.summary-stats li:nth-child(3) { --stat-bg: var(--spreadsheet-green); }
.summary-stats strong {
  display: block;
  font-size: clamp(1.6rem, 7cqh, 3.2rem);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.summary-line { font-size: clamp(0.9rem, 2.9cqh, 1.25rem); max-width: 60ch; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 0.6cqh; }
.summary-actions .btn { min-height: 44px; }
.share-status { min-height: 1.4em; font-size: 0.9375rem; }
.share-status input {
  width: min(100%, 36ch);
  margin-left: 6px;
  padding: 4px 8px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  font: inherit;
}

/* ── Spreadsheet screen ──────────────────────────────────────────────────── */

.sheet {
  --sheet-line: #D5DBD7;
  --bg: #FFFFFF;
  --ink: #1B2A20;
  padding: 0;
  justify-content: flex-start;
}
.sheet-bar {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 1.4cqh 2cqw;
  border-bottom: 1px solid var(--sheet-line);
  background: #F3F6F4;
  font-size: clamp(0.8rem, 3cqh, 1.15rem);
  white-space: nowrap;
  overflow: hidden;
}
.sheet-ref {
  padding: 0.3cqh 1.4cqw;
  border: 1px solid var(--sheet-line);
  background: #fff;
}
.sheet-fx { font-style: italic; color: #5B6B60; }
.sheet-formula { overflow: hidden; text-overflow: ellipsis; }

.sheet-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 4cqw repeat(5, 1fr);
  grid-template-rows: 5cqh repeat(6, 1fr);
  font-size: clamp(0.7rem, 2.6cqh, 1rem);
  color: #8A968E;
}
.sheet-grid span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.8cqw;
  border-right: 1px solid var(--sheet-line);
  border-bottom: 1px solid var(--sheet-line);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.sheet-grid .sheet-head { justify-content: center; background: #F3F6F4; color: #5B6B60; }
.sheet-grid .sheet-error { color: #C0392B; font-weight: 600; }

/* The selected cell, zoomed in to hold the big number. */
.sheet-cell {
  position: absolute;
  left: 12cqw;
  top: 19cqh;
  width: 58cqw;
  padding: 3cqh 3cqw;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 0 0 3px var(--spreadsheet-green), 0 10px 30px rgba(23, 25, 59, 0.18);
}
.sheet-cell::after {
  content: '';
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 9px;
  height: 9px;
  background: var(--spreadsheet-green);
  border: 2px solid #fff;
}
.sheet-cell .big { font-size: min(calc(52cqw / (var(--chars, 4) * 0.46)), 30cqh); }
.sheet-cell .lead, .sheet-cell .label { font-size: clamp(0.95rem, 3.8cqh, 1.9rem); }

.sheet-note {
  position: absolute;
  right: 5cqw;
  top: 26cqh;
  width: 26cqw;
  padding: 2cqh 1.6cqw;
  background: #FFF6A8;
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(23, 25, 59, 0.16);
  font-size: clamp(0.85rem, 3cqh, 1.25rem);
  line-height: 1.3;
}
.sheet-note::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 10px;
  border: 7px solid transparent;
  border-right-color: #FFF6A8;
}
.sheet .slide-foot {
  background: #F3F6F4;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.2cqh 2cqw;
  color: #5B6B60;
  border-top: 1px solid var(--sheet-line);
}

/* ── Leave dialog ────────────────────────────────────────────────────────── */

.leave-dialog {
  max-width: min(420px, calc(100vw - 32px));
  padding: 24px;
  border: 0;
  border-radius: 12px;
  background: var(--panel);
  color: var(--chrome-ink);
}
.leave-dialog::backdrop { background: rgba(10, 11, 14, 0.6); }
.leave-dialog p { margin: 0 0 20px; font-size: 1.125rem; line-height: 1.4; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.noscript { padding: 24px; text-align: center; }

/* ── Small screens ───────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .lobby-inner { grid-template-columns: 1fr; gap: 28px; }
  .preview { order: 2; }

  .call-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    padding: 0 8px;
  }
  .tiles {
    order: -1;
    flex-direction: row;
    gap: 6px;
  }
  .tile { flex: 1; aspect-ratio: auto; height: 58px; }
  .tile-name { left: 4px; right: 4px; bottom: 4px; padding: 2px 6px; font-size: 0.6875rem; }
  .tile-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bot-avatar { inset: 0; place-items: start; padding: 4px 6px; }
  .bot-face { width: 22px; height: 22px; border-radius: 6px; font-size: 0.625rem; }
  .tile-no-photo .tile-initials { display: none; }

  .screen { width: 100cqw; height: 100cqh; }
  .slide { padding: 8cqh 7cqw 12cqh; }
  .big { font-size: min(calc(86cqw / (var(--chars, 4) * 0.46)), 24cqh); }
  .lead, .label { font-size: clamp(1.05rem, 3.4cqh, 1.6rem); }
  .quip { font-size: clamp(1rem, 2.7cqh, 1.25rem); }
  .title { font-size: clamp(2.2rem, 8cqh, 4rem); }
  .title-xl { font-size: clamp(2.6rem, 10cqh, 5rem); }
  .ranking li { font-size: clamp(1rem, 3cqh, 1.4rem); }

  .summary { padding: max(44px, 5cqh) 6cqw 9cqh; gap: 1cqh; overflow-y: auto; }
  .summary-kicker { font-size: 0.8125rem; }
  .summary-title { font-size: clamp(1.5rem, 4.6cqh, 2.4rem); }
  .summary-persona { font-size: 1rem; }
  .summary-stats { grid-template-columns: 1fr; gap: 5px; }
  .summary-stats li { display: flex; align-items: baseline; gap: 8px; padding: 5px 10px; font-size: 0.875rem; }
  .summary-stats strong { display: inline; flex: none; font-size: 1.4rem; }
  .summary-line { font-size: 0.9375rem; line-height: 1.3; }
  .summary-actions { gap: 8px; }
  .summary-actions .btn { flex: 1; min-height: 42px; padding: 0 10px; font-size: 0.9375rem; white-space: nowrap; }
  .summary-actions .btn-ink { flex-basis: 100%; }
  .share-status { min-height: 0; }

  .sheet-cell { left: 6cqw; top: 16cqh; width: 88cqw; }
  .sheet-cell .big { font-size: min(calc(76cqw / (var(--chars, 4) * 0.46)), 18cqh); }
  .sheet-note { left: 6cqw; right: 6cqw; top: auto; bottom: 10cqh; width: auto; }
  .sheet-note::before { left: 20px; top: -14px; border-right-color: transparent; border-bottom-color: #FFF6A8; }
  .sheet-grid { grid-template-columns: 8cqw repeat(5, 1fr); }

  .call-credits { padding: 6px 12px 0; font-size: 0.6875rem; }
  .toolbar { gap: 6px; padding: 8px 8px max(10px, env(safe-area-inset-bottom)); }
  .tool { padding: 0 14px; }
  .tool .tool-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tool-primary { flex: 1; justify-content: center; max-width: 220px; }
  .tool-primary .tool-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .mute-pill { bottom: 76px; }
  .presenting { top: 8px; font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Lobby: tailored wraps ───────────────────────────────────────────────── */

.join-tailored {
  margin: 0 0 12px;
  max-width: 40ch;
  font-weight: 600;
  color: var(--highlighter);
}

/* ── /custom/: the mandatory pre-meeting survey ──────────────────────────── */

.survey-page {
  min-height: 100dvh;
  display: grid;
  justify-items: center;
  padding: 40px 20px 56px;
}

.survey {
  width: min(720px, 100%);
  display: grid;
  gap: 28px;
}

.survey-title {
  margin: 0 0 12px;
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.survey-intro {
  margin: 0;
  max-width: 46ch;
  font-size: 1.125rem;
  color: var(--chrome-dim);
}

.question {
  margin: 0;
  padding: 20px;
  border: 0;
  border-radius: 12px;
  background: var(--panel);
}
.question legend {
  float: left;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  font-size: 1.1875rem;
  font-weight: 650;
}
.question-hint {
  clear: both;
  margin: -8px 0 12px;
  color: var(--chrome-dim);
  font-size: 0.9375rem;
}

.choices {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* The input stays in the accessibility tree and keeps native validation; the pill is its face. */
.choice { position: relative; display: inline-flex; }
.choice input {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--panel-raised);
  cursor: pointer;
  user-select: none;
}
.choice span:hover { background: #555A64; }
.choice input:checked + span { background: var(--highlighter); color: var(--navy); font-weight: 650; }
.choice-check input:checked + span { background: var(--spreadsheet-green); }
.choice-check input:checked + span::before { content: '✓'; font-weight: 800; }
.choice input:focus-visible + span { outline: 3px solid var(--highlighter); outline-offset: 2px; }

.survey-foot { display: grid; justify-items: start; gap: 4px; }

@media (max-width: 760px) {
  .survey-page { padding: 28px 14px 40px; }
  .survey { gap: 16px; }
  .question { padding: 16px; }
  .survey-foot .btn { width: 100%; }
}

/* ── Wrapped-style slides ────────────────────────────────────────────────── */

.ranking-genres li { font-size: clamp(1.2rem, 6.4cqh, 3rem); font-stretch: 80%; font-weight: 750; }

.aura {
  margin-top: 4cqh;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 3cqh;
}
.aura li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3cqw;
}
.aura-swatch {
  width: clamp(48px, 15cqh, 120px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 55%, transparent);
}
.aura-text { font-size: clamp(1rem, 3.6cqh, 1.6rem); line-height: 1.3; max-width: 40ch; }
.aura-name {
  font-size: 1.6em;
  font-stretch: 62%;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 760px) {
  .ranking-genres li { font-size: clamp(1.3rem, 4.4cqh, 2rem); }
  .aura li { grid-template-columns: 1fr; gap: 1.5cqh; }
  .aura-swatch { width: clamp(44px, 9cqh, 80px); }
}
