/* Vox: one light theme for participants, admin and the projector. */
:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --line: #e3e6ef;
  --ink: #1b1f3b;
  --ink-2: #4a4f6a;
  --muted: #7b8098;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --accent-soft: #eceafd;
  --good: #14804a;
  --good-soft: #e3f5ea;
  --warn: #a15c00;
  --warn-soft: #fff3dc;
  --bad: #c0362c;
  --bad-soft: #fde8e6;
  /* Categorical order for chart series, never cycled. */
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --s5: #e87ba4;
  --s6: #008300;
  --s7: #6250d6;
  --s8: #e34948;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 31, 59, 0.06), 0 4px 16px rgba(27, 31, 59, 0.06);
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 1.75rem;
}
h2 {
  font-size: 1.35rem;
}
h3 {
  font-size: 1.05rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--accent);
}
small,
.muted {
  color: var(--muted);
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95em;
}

/* Controls */
button,
.button {
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.6em 1.1em;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  min-height: 44px;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.05s;
}
button:hover,
.button:hover {
  background: #4338ca;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.secondary,
.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
button.secondary:hover,
.button.secondary:hover {
  background: var(--surface-2);
}
button.ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: transparent;
}
button.ghost:hover {
  background: var(--surface-2);
}
button.danger {
  background: var(--surface);
  color: var(--bad);
  border-color: var(--line);
}
button.danger:hover {
  background: var(--bad-soft);
}
button.small {
  min-height: 34px;
  padding: 0.3em 0.75em;
  font-size: 0.9rem;
}
button.icon {
  min-height: 34px;
  min-width: 34px;
  padding: 0.2em;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6em 0.8em;
  min-height: 44px;
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 6em;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-2);
}
label > input,
label > select,
label > textarea {
  margin-top: 0.3em;
  font-weight: 400;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
}
.check input {
  width: auto;
  min-height: 0;
  accent-color: var(--accent);
}
.segmented {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
}
.segmented button {
  background: transparent;
  color: var(--ink-2);
  min-height: 36px;
  padding: 0.3em 0.9em;
  font-weight: 600;
}
.segmented button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.badge.open {
  background: var(--good-soft);
  color: var(--good);
}
.badge.closed {
  background: var(--bad-soft);
  color: var(--bad);
}
.badge.shown {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge.live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
.status {
  min-height: 1.5em;
  color: var(--ink-2);
}
.status.error,
.error {
  color: var(--bad);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.7em 1.2em;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 50;
  max-width: calc(100vw - 32px);
}
.toast.error {
  background: var(--bad);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo svg {
  width: 1.5em;
  height: 1.5em;
}

/* Participant page */
.vote-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}
.vote-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 20px;
  gap: 12px;
}
.vote-top .poll-title {
  color: var(--muted);
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.join {
  text-align: center;
  padding-top: 10vh;
}
.join h1 {
  font-size: 2.2rem;
}
.join form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 24px auto 0;
}
.join input {
  font-size: 2rem;
  text-align: center;
  letter-spacing: 0.25em;
  font-weight: 700;
  padding: 0.4em;
}
.join button {
  font-size: 1.1rem;
  min-height: 54px;
}
.question {
  margin-bottom: 20px;
}
.question h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25em;
}
.question .hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1em;
}
.choices {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.85em 1em;
  font-weight: 600;
  min-height: 56px;
}
.choice:hover {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.choice .mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
}
.choice.multi .mark {
  border-radius: 6px;
}
.choice[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.choice[aria-pressed='true'] .mark {
  border-color: var(--accent);
  background: var(--accent);
}
.choice[aria-pressed='true'] .mark::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
}
.scale-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
}
.scale-row button {
  padding: 0;
  min-height: 52px;
  font-size: 1.15rem;
}
.scale-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 6px 0 16px;
  gap: 12px;
}
.scale-labels span:last-child {
  text-align: right;
}
.word-inputs {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.rank-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}
.rank-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.5em 0.6em 0.5em 0.9em;
  font-weight: 600;
}
.rank-list .pos {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}
.rank-list .label {
  flex: 1;
}
.rank-list .moves {
  display: flex;
  gap: 4px;
}
.send {
  width: 100%;
  min-height: 54px;
  font-size: 1.1rem;
}
.thanks {
  text-align: center;
  padding: 28px 16px;
}
.thanks .tick {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--good-soft);
  color: var(--good);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 2rem;
  font-weight: 800;
}
.waiting {
  text-align: center;
  padding: 18vh 16px;
  color: var(--ink-2);
}
.dots {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 16px;
}
.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.2s infinite ease-in-out;
}
.dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.dots span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
.results-block {
  margin-top: 18px;
}
.results-block > h3 {
  color: var(--ink-2);
}

/* Charts */
.chart {
  width: 100%;
}
.chart .empty {
  color: var(--muted);
  text-align: center;
  padding: 2em 1em;
}
.bars {
  display: grid;
  gap: 14px;
}
.bar-row .bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  margin-bottom: 5px;
}
.bar-row .bar-head .value {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bar-track {
  height: 22px;
  background: var(--surface-2);
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: var(--s1);
  min-width: 2px;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bar-row.correct .bar-head .label::after {
  content: ' ✓';
  color: var(--good);
}
.bar-row.correct .bar-fill {
  background: var(--good);
}
.bar-row.wrong .bar-fill {
  opacity: 0.35;
}
.pie-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.pie-wrap svg {
  width: min(280px, 70vw);
  height: auto;
  flex: none;
}
.pie-wrap path {
  stroke: var(--surface);
  stroke-width: 2;
  transition: opacity 0.15s;
}
.pie-wrap path:hover {
  opacity: 0.85;
}
.pie-center {
  font-weight: 800;
  fill: var(--ink);
}
.pie-center-label {
  fill: var(--muted);
}
.legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  min-width: 180px;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.legend .swatch {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.legend .label {
  flex: 1;
  font-weight: 600;
}
.legend .value {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.cloud svg {
  width: 100%;
  height: auto;
  display: block;
}
.cloud text {
  font-weight: 800;
  transition: opacity 0.2s;
}
.cloud text.hideable {
  cursor: pointer;
}
.cloud text.hideable:hover {
  opacity: 0.45;
  text-decoration: line-through;
}
.scale-chart {
  display: grid;
  gap: 8px;
}
.columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: end;
  gap: 6px;
  height: 180px;
}
.column {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 4px;
}
.column .count {
  font-size: 0.85rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.column .col-fill {
  width: 100%;
  max-width: 64px;
  border-radius: 4px 4px 0 0;
  background: var(--s1);
  min-height: 2px;
  transition: height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.column-labels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  text-align: center;
  font-weight: 700;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.scale-summary {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.stat {
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}
.texts {
  columns: 260px;
  column-gap: 12px;
}
.text-card {
  break-inside: avoid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--s1);
  border-radius: 10px;
  padding: 0.7em 0.9em;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
  position: relative;
}
.text-card button {
  position: absolute;
  top: 4px;
  right: 4px;
}
.text-card.has-remove {
  padding-right: 2.6em;
}
.rank-chart .bar-head .label .place {
  display: inline-grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  margin-right: 0.5em;
}

/* Admin */
.admin-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.admin-top .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-top nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.admin-top nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  padding: 0.45em 0.8em;
  border-radius: 10px;
}
.admin-top nav a[aria-current='page'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
main.admin {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
.login {
  max-width: 400px;
  margin: 10vh auto;
}
.login form {
  display: grid;
  gap: 14px;
}
.login-or {
  text-align: center;
  color: var(--muted);
  margin: 14px 0;
}
#passkey-login button {
  width: 100%;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.row.end {
  justify-content: flex-end;
}
.spacer {
  flex: 1;
}
.poll-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.poll-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.1s,
    box-shadow 0.15s;
}
.poll-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(27, 31, 59, 0.06),
    0 10px 28px rgba(27, 31, 59, 0.1);
}
.poll-card h3 {
  margin: 0;
}
.poll-card .meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.poll-card.archived {
  opacity: 0.6;
}
.code {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.new-poll {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.new-poll input {
  flex: 1;
  min-width: 200px;
}
.poll-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
.poll-head .title-input {
  font-size: 1.6rem;
  font-weight: 800;
  border-color: transparent;
  background: transparent;
  padding: 0.15em 0.3em;
  margin-left: -0.3em;
}
.poll-head .title-input:hover,
.poll-head .title-input:focus {
  border-color: var(--line);
  background: var(--surface);
}
.join-box {
  display: flex;
  gap: 14px;
  align-items: center;
}
.join-box img {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.join-box .code {
  font-size: 1.6rem;
  display: block;
}
.join-box .url {
  color: var(--muted);
  font-size: 0.9rem;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 20px;
  align-items: start;
}
.q-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}
.q-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.6em 0.5em 0.6em 0.75em;
  cursor: pointer;
}
.q-item:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.q-item[aria-current='true'] {
  border-color: var(--accent);
}
.q-item .num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.q-item.current .num {
  background: var(--accent);
  color: #fff;
}
.q-item .q-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.q-item .q-meta {
  display: flex;
  gap: 6px;
  margin-top: 3px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}
.q-item .moves {
  display: flex;
  flex-direction: column;
}
.q-item .moves button {
  min-height: 22px;
  min-width: 28px;
  padding: 0;
  font-size: 0.8rem;
}
.type-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.type-picker button {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
  padding: 0.7em 0.8em;
}
.type-picker button small {
  font-weight: 500;
}
.panel {
  display: grid;
  gap: 16px;
}
.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.live-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.live-head .counts {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.editor {
  display: grid;
  gap: 14px;
}
.editor .options {
  display: grid;
  gap: 8px;
}
.editor .option-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}
.editor .option-row .swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.editor .grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
details.editor-box > summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
details.editor-box > summary::before {
  content: '▸';
  transition: transform 0.15s;
}
details.editor-box[open] > summary::before {
  transform: rotate(90deg);
}
details.editor-box[open] > summary {
  margin-bottom: 14px;
}
.menu {
  position: relative;
}
.menu-items {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: grid;
  min-width: 220px;
  z-index: 20;
}
.menu-items button {
  justify-content: flex-start;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
}
.menu-items button:hover {
  background: var(--surface-2);
}
.menu-items button.danger {
  border: 0;
}
.settings {
  max-width: 720px;
  display: grid;
  gap: 20px;
}
.passkey-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.passkey-row small {
  display: block;
}
#two-factor-qr {
  width: 200px;
  height: 200px;
}
#two-factor-codes {
  background: var(--surface-2);
  padding: 12px;
  border-radius: 10px;
}
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .poll-head {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .editor .grid2,
  .type-picker {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 1.45rem;
  }
}

/* Projector */
body.present {
  background: var(--bg);
  overflow: hidden;
}
.stage {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 2.2vw 3vw 1.5vw;
  gap: 2vh;
}
.stage-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: clamp(16px, 1.6vw, 30px);
  color: var(--ink-2);
}
.stage-top .join-hint strong {
  color: var(--ink);
}
.stage-top img {
  height: clamp(70px, 9vw, 160px);
  width: auto;
  border-radius: 10px;
  background: #fff;
}
.stage-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.stage-main h1 {
  font-size: clamp(28px, 3.6vw, 72px);
  margin-bottom: 3vh;
}
.stage-main .chart {
  flex: 1;
  min-height: 0;
  font-size: clamp(16px, 1.6vw, 32px);
}
.stage-main .bar-track {
  height: 1.6em;
}
.stage-main .bars {
  gap: 1.1em;
}
.stage-main .columns {
  height: 45vh;
}
.stage-main .pie-wrap svg {
  width: min(52vh, 40vw);
}
.stage-main .cloud svg {
  max-height: 62vh;
}
.stage-wait {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
}
.stage-wait .big {
  font-size: clamp(60px, 10vw, 200px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stage-wait .sub {
  font-size: clamp(16px, 1.8vw, 34px);
  color: var(--ink-2);
}
.stage-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0.25;
  transition: opacity 0.2s;
}
.stage-bar:hover,
.stage-bar:focus-within {
  opacity: 1;
}
.stage-bar kbd {
  font: inherit;
  font-size: 0.8em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 0.35em;
}
.qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(246, 247, 251, 0.97);
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 30;
  font-size: clamp(20px, 2.4vw, 48px);
}
.qr-overlay img {
  height: 62vh;
  width: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.qr-overlay .code {
  font-size: 1.6em;
}
.mt {
  margin-top: 14px;
}
.align-end {
  align-items: end;
}
.grow {
  flex: 1;
}
.big-qr {
  height: 48vh;
  width: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin: 2vh 0;
}
