@font-face { font-family: Onest; font-weight: 400 700; font-display: swap; src: url(/fonts/onest-latin-variable.woff2) format('woff2'); } /* one variable file covers every weight */

/* Themes. The host picks one per session; every session screen sets <html data-theme>.
   Bento tokens live in tokens.css. "paper" (Formal) is the default light look; "stage" (Fun) is the dark party look; "dark" is Formal in near-black.
   The old variable names below are ALIASES of Bento semantic tokens, so existing rules pick up the new look.
   New CSS should use the --color-*, --button-*, --input-* etc. tokens directly. */
:root, [data-theme] {
  --bg: var(--color-bg);
  --glow: none;
  --surface: var(--color-surface);
  --surface-2: var(--color-surface-sunken);
  --ink: var(--color-text);
  --ink-soft: var(--color-text-muted);
  --line: var(--color-border);
  --accent: var(--color-action-primary);
  --accent-deep: var(--color-action-primary-hover);
  --on-accent: var(--color-text-on-accent);
  --linkedin-blue: #0A66C2; /* LinkedIn's brand blue, for the Follow button only */
  --accent-soft: var(--color-surface-accent-soft);
  --hot: var(--color-danger);
  --pop: var(--color-text-accent);
  --pop-soft: var(--color-surface-accent-soft);
  --on-pop: var(--color-text-inverse);
  --good: var(--color-success);
  --good-soft: var(--color-success-soft);
  --on-good: #fff;
  --bad-soft: var(--color-danger-soft);
  --bad-ink: var(--color-danger);
  --warn: var(--pz-party);
  --team-red: #B42318; --team-blue: #1F5FA8; --team-green: #1F7A4D; --team-gold: #C28A00;
  --radius: var(--tile-radius-app);
  --radius-sm: var(--pz-radius-xl);
  --btn-radius: var(--pz-radius-lg);
  --shadow: var(--pz-shadow-md);
  --font: Onest, system-ui, "Segoe UI", sans-serif;
  --font-display: var(--font);
  --type-eyebrow: var(--pz-weight-medium) var(--pz-size-12)/1.3 var(--font);
  --type-eyebrow-tracking: var(--pz-tracking-wide);
}
/* Status colours that need a lighter value on the dark look. */
[data-theme="stage"], [data-theme="fun"], [data-theme="dark"] {
  --good: #4ADE9A; --good-soft: rgba(74, 222, 154, .14); --on-good: #0E0E0E;
  --bad-soft: rgba(255, 122, 110, .16); --bad-ink: #FF8A80; --hot: #FF6B5E;
  --warn: #FFD166;
  --team-red: #FF6B5E; --team-blue: #5FA8FF; --team-green: #4ADE9A; --team-gold: #FFD166;
}
/* Fun look: Bento layout, original Fun colours. Dark ink, orange accent, warm orange highlights, glowing gradient. */
[data-theme="stage"], [data-theme="fun"] {
  --color-bg: #07070B;
  --color-surface: #101018;
  --color-surface-muted: #171722;
  --color-surface-subtle: #101018;
  --color-surface-sunken: #171722;
  --color-surface-inverse: linear-gradient(135deg, #FF5B1F, #FF8A3D);
  --color-surface-inverse-raised: rgba(7, 7, 11, .14);
  --color-surface-accent: #FF5B1F;
  --color-surface-accent-soft: rgba(255, 91, 31, .16);
  --color-surface-accent-subtle: rgba(255, 91, 31, .10);
  --color-text: #F7F7FB;
  --color-text-muted: #9A9AB2;
  --color-text-placeholder: #7C7C96;
  --color-text-inverse: #07070B; /* the inverse tile is an orange gradient: white on it is under 3:1 */
  --color-text-on-accent: #07070B;
  --color-text-accent: #FF8A5C;
  --color-text-accent-inverse: #07070B; /* only used on the gradient inverse tile */
  --color-text-inverse-muted: rgba(7, 7, 11, .78);
  --button-neutral-fg: #07070B; /* neutral button stays light, so its text is dark */
  --color-border: #2A2A3A;
  --color-border-subtle: #22222F;
  --color-border-focus: #FF5B1F;
  --focus-ring: 0 0 0 3px rgba(255, 91, 31, .28);
  --color-action-primary: #FF5B1F;
  --color-action-primary-hover: #E64A10;
  --color-action-primary-strong: #E64A10;
  --color-action-disabled: #22222F; /* the light default left disabled buttons glaring on the dark look */
  --color-action-secondary: #171722;
  --color-action-secondary-hover: #1E1E2C;
  --color-live: #FF5B1F;
  --color-live-soft: rgba(255, 91, 31, .16);
  --color-live-text: #FF8A5C;
  --color-chart-leader: #FF5B1F;
  --color-chart-2: #FF8A3D;
  --color-chart-3: #FFB27A;
  --color-chart-4: #4DA3FF;
  --color-chart-track: #22222F;
  --color-reaction-flame: #FF8A5C;
  --color-reaction-heart: #FF7A93;
  --color-reaction-like: #F7F7FB;
  --divider: 1px solid #2A2A3A;
  --toggle-off: #2A2A3A;
  --glow: radial-gradient(900px 500px at 85% -10%, rgba(255, 138, 61, .2), transparent 60%), radial-gradient(700px 420px at -10% 110%, rgba(255, 91, 31, .18), transparent 60%);
  --pop: #FFB27A; --pop-soft: rgba(255, 138, 61, .16);
  --good: #2EE6A6; --good-soft: rgba(46, 230, 166, .14); --on-good: #07070B;
  --bad-soft: rgba(255, 122, 110, .16); --bad-ink: #FF8A80; --hot: #FF6B5E;
  --warn: #FFB020;
  --team-red: #FF6B5E; --team-blue: #4DA3FF; --team-green: #2EE6A6; --team-gold: #FFC83D;
}
/* Fun Light ("sun"): Fun's layout and orange on warm cream with white cards. Text on orange stays dark. */
[data-theme="sun"] {
  color-scheme: light;
  --color-bg: #FFF8F1; --color-surface: #FFFFFF; --color-surface-muted: #FFF1E5; --color-surface-subtle: #FFFFFF; --color-surface-sunken: #FFF1E5;
  --color-surface-inverse: linear-gradient(135deg, #FF5B1F, #FF8A3D); --color-surface-inverse-raised: rgba(28, 20, 17, .10);
  --color-surface-accent: #FF5B1F; --color-surface-accent-soft: rgba(255, 91, 31, .14); --color-surface-accent-subtle: rgba(255, 91, 31, .08);
  --color-text: #1C1411; --color-text-muted: #6F5C52; --color-text-placeholder: #8A766B;
  --color-text-inverse: #1C1411; --color-text-on-accent: #1C1411; --color-text-accent: #B93A08; --color-text-accent-inverse: #1C1411; --color-text-inverse-muted: rgba(28, 20, 17, .78);
  --button-neutral-fg: #FFFFFF; /* the neutral button is dark on this look, so its text is white */
  --color-border: #F3DFCF; --color-border-subtle: #F8EBDF; --color-border-focus: #D9480F; --focus-ring: 0 0 0 3px rgba(255, 91, 31, .28);
  --color-action-primary: #FF5B1F; --color-action-primary-hover: #E64A10; --color-action-primary-strong: #E64A10; --color-action-disabled: #F3DFCF;
  --color-action-secondary: #FFF1E5; --color-action-secondary-hover: #FBE8D9;
  --color-live: #FF5B1F; --color-live-soft: rgba(255, 91, 31, .14); --color-live-text: #B93A08;
  --color-chart-leader: #FF5B1F; --color-chart-2: #FF8A3D; --color-chart-3: #FFB27A; --color-chart-4: #2F7FD6; --color-chart-track: #FBE8D9;
  --color-reaction-flame: #E64A10; --color-reaction-heart: #D6336C; --color-reaction-like: #1C1411;
  --divider: 1px solid #F3DFCF; --toggle-off: #E3CFC0;
  --glow: radial-gradient(900px 500px at 88% -12%, rgba(255, 138, 61, .26), transparent 62%), radial-gradient(760px 500px at -4% 104%, rgba(255, 178, 122, .30), transparent 60%);
  --pop: #B93A08; --pop-soft: rgba(255, 138, 61, .16);
  /* Status colours for cream: darker than Fun's, so they read on white and cream. */
  --good: #1B7F4F; --good-soft: rgba(27, 127, 79, .12); --on-good: #FFFFFF;
  --bad-soft: rgba(180, 35, 24, .10); --bad-ink: #B42318; --hot: #C8321F;
  --warn: #9A5B00;
  --team-red: #C8321F; --team-blue: #1F5FA8; --team-green: #1B7F4F; --team-gold: #A06A00;
}
/* Dark look: Formal's calm layout on neutral near-black surfaces. Orange accent, no glow. */
[data-theme="dark"] {
  --color-bg: #0E0E10;
  --color-surface: #19191B;
  --color-surface-muted: #222225;
  --color-surface-subtle: #19191B;
  --color-surface-sunken: #2A2A2E;
  --color-surface-inverse: #2E2E33;
  --color-surface-inverse-raised: #38383E;
  --color-surface-accent: #FF5B1F;
  --color-surface-accent-soft: rgba(255, 91, 31, .18);
  --color-surface-accent-subtle: rgba(255, 91, 31, .10);
  --color-text: #F2F2F4;
  --color-text-muted: #A6A6AD;
  --color-text-placeholder: #8A8A92;
  --color-text-disabled: #6A6A72;
  --color-text-inverse: #F2F2F4;
  --color-text-inverse-muted: #A6A6AD;
  --color-text-accent: #FF8A5C;
  --color-text-accent-strong: #FFA37F;
  --color-text-on-accent: #111113; /* white on this orange is only 3.1:1; dark text is 6:1 */
  --color-text-on-accent-soft: #FFB18F;
  --color-text-accent-inverse: #FF8A5C;
  --button-neutral-fg: #111113;
  --color-action-neutral: #ECECEE;
  --color-action-neutral-hover: #FFFFFF;
  --color-border: #34343A;
  --color-border-subtle: #2A2A2F;
  --color-border-strong: #4A4A52;
  --color-border-dashed: #4A4A52;
  --color-border-danger: #6B3A2E;
  --color-border-focus: #FF5B1F;
  --focus-ring: 0 0 0 3px rgba(255, 91, 31, .32);
  --color-action-primary: #FF5B1F;
  --color-action-primary-hover: #FF7440;
  --color-action-primary-strong: #FF7440;
  --color-action-secondary: #2A2A2E;
  --color-action-secondary-hover: #34343A;
  --color-action-disabled: #2A2A2E;
  --color-live: #FF5B1F;
  --color-live-soft: rgba(255, 91, 31, .18);
  --color-live-text: #FF8A5C;
  --color-chart-leader: #FF5B1F;
  --color-chart-2: #FF8A3D;
  --color-chart-3: #FFB27A;
  --color-chart-4: #C9C9D0;
  --color-chart-5: #7A7A82;
  --color-chart-track: #2A2A2E;
  --color-chart-idle: #34343A;
  --color-reaction-like: #F2F2F4;
  --divider: 1px solid #2A2A2F;
  --toggle-off: #4A4A52;
  --pop: #FFB27A; --pop-soft: rgba(255, 138, 61, .16); --on-pop: #111113;
  --good: #4ADE9A; --good-soft: rgba(74, 222, 154, .14); --on-good: #0E0E10;
  --bad-soft: rgba(255, 122, 110, .16); --bad-ink: #FF8A80; --hot: #FF6B5E;
  --warn: #FFD166;
  --team-red: #FF6B5E; --team-blue: #5FA8FF; --team-green: #4ADE9A; --team-gold: #FFD166;
  color-scheme: dark;
}
/* Dark uses light status colours, so text sitting on them is dark (white on them is under 3:1). */
[data-theme="dark"] #gameBox.race-wait, [data-theme="dark"] #gameStage.race-wait, [data-theme="dark"] #gameBox.tug-red, [data-theme="dark"] #gameBox.tug-blue, [data-theme="dark"] .ws-lost.s2, [data-theme="dark"] .ws-lostbanner, [data-theme="dark"] .toast.bad { color: #111113; }
[data-theme="stage"] body, [data-theme="fun"] body, [data-theme="sun"] body { background: var(--glow), var(--color-bg); background-attachment: fixed; }
:root {
  font-family: var(--font);
  color: var(--ink);
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100dvh; } /* the glow and colour of the Fun looks reach the bottom of every page, not just the content */
body { font: var(--type-body-md); font-size: 15px; line-height: 1.5; padding-top: env(safe-area-inset-top, 0); padding-bottom: env(safe-area-inset-bottom, 0); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(26px, 6vw, 30px); font-weight: 700; letter-spacing: var(--type-heading-xl-tracking); }
h2 { font-size: 21px; font-weight: 600; letter-spacing: var(--type-heading-md-tracking); }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--color-text-accent); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
code, pre, kbd, samp, textarea, input { font-family: inherit; }
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: var(--accent); }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.hidden { display: none !important; }
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 18px 40px; }
.wrap-wide { max-width: 1100px; margin: 0 auto; padding: 20px 18px 40px; }
/* Live counts, percentages and stats use tabular figures. */
.bar .lbl b, .vote, .ws-stat b, .gb-score, .gb-rank, .gb-delta, .slider-num, .me-tile b, .me-card .big, .rail-code, .sc-table td.num, .team-row b, .team-row small, .stat, .timer { font-variant-numeric: tabular-nums; }
/* Eyebrows: Onest 12/500, +0.06em, uppercase. */
.eyebrow, .ws-label, .dt-now .kick, .dt-row.dt-th { font: var(--type-eyebrow); letter-spacing: var(--type-eyebrow-tracking); text-transform: uppercase; }

/* Brand mark: three poll bars rising like votes coming in. Size it with --s. Wordmark: Onest 700, 19px. */
.brand-logo { max-height: 40px; max-width: 160px; object-fit: contain; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; text-decoration: none; color: var(--color-text); }
.dot { --s: 16px; width: var(--s); height: var(--s); position: relative; display: inline-block; flex: none; }
.dot::before, .dot::after { content: ""; position: absolute; bottom: 0; width: calc(var(--s) / 4); height: 100%; border-radius: calc(var(--s) / 8); transform-origin: bottom; animation: bars 1.2s ease-in-out infinite; }
.dot::before { left: 0; background: var(--color-text); box-shadow: calc(var(--s) * .75) 0 0 var(--color-text); animation-delay: -.6s; }
.dot::after { left: calc(var(--s) * .375); background: var(--color-action-primary); }
@keyframes bars { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .dot::before, .dot::after { animation: none; } }

/* Controls. Heights 36 / 40 / 48 (sm / md / lg); radius 10, 12 for large. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--button-gap); min-height: 40px; padding: 0 16px; border-radius: var(--button-radius-md); border: 1px solid transparent; background: var(--button-neutral-bg); color: var(--button-neutral-fg); font: var(--button-font); transition: transform var(--pz-dur-instant), var(--button-transition); text-decoration: none; }
.btn:hover { background: var(--button-neutral-bg-hover); }
.btn:active { transform: scale(.97); }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.btn-primary { background: var(--button-primary-bg); color: var(--button-primary-fg); }
.btn-primary:hover { background: var(--button-primary-bg-hover); }
.btn-ghost { background: var(--button-secondary-bg); color: var(--button-secondary-fg); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--button-secondary-bg-hover); }
/* Highlight (peach) and destructive (peach, danger text) variants */
.btn-lime { background: var(--color-surface-accent-soft); color: var(--color-text-accent); }
.btn-lime:hover { background: color-mix(in srgb, var(--color-surface-accent-soft), var(--color-text-accent) 12%); }
.btn-coral { background: var(--color-surface-accent-soft); color: var(--bad-ink); border-color: var(--color-border-danger); }
.btn-coral:hover { background: color-mix(in srgb, var(--color-surface-accent-soft), var(--bad-ink) 12%); }
.btn-sm { min-height: 36px; padding: 0 12px; border-radius: var(--button-radius-sm); font-size: 14px; }
.btn-lg { min-height: 48px; padding: var(--button-pad-lg); border-radius: var(--button-radius-lg); }
.btn-block { width: 100%; }
.btn:disabled, .btn:disabled:hover { background: var(--button-disabled-bg); color: var(--button-disabled-fg); border-color: transparent; cursor: not-allowed; transform: none; }
@media (pointer: coarse) { .btn { min-height: 44px; } .btn-sm { min-height: 40px; } .btn-lg { min-height: 48px; } }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font: var(--input-label-font); margin-bottom: var(--input-label-gap); }
.input { width: 100%; min-height: var(--input-height); padding: 10px 12px; border-radius: var(--input-radius); border: var(--input-border); background: var(--input-bg); font: var(--input-font); outline: none; }
.input::placeholder { color: var(--input-placeholder); }
.input:focus-visible { border: var(--input-border-focus); background: var(--input-bg-focus); box-shadow: var(--input-ring-focus); }
@media (pointer: coarse) { .input { font-size: 16px; } }
.pw { position: relative; display: block; }
.pw .input { padding-inline-end: 52px; }
.pw .eye { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-soft); }
.pw .eye:hover { color: var(--ink); }
.pw:has(> .hidden) { display: none; }
textarea.input { min-height: 90px; resize: vertical; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack > * + * { margin-top: 12px; }

/* Tile: white, no border, no shadow, radius 16, padding 20 */
.card { background: var(--tile-bg); border: 0; border-radius: var(--tile-radius-app); padding: var(--tile-pad-md); }
.card-soft { background: var(--row-bg); }

/* Segmented control: 3px padded sunken track; the active item is a white chip with a hairline shadow. */
.seg { display: inline-flex; gap: 2px; padding: var(--segmented-pad); background: var(--segmented-bg); border-radius: var(--segmented-radius); }
.seg button { border: 0; background: transparent; min-height: 30px; padding: 0 12px; border-radius: var(--segmented-item-radius); font: var(--type-label-md); color: var(--ink-soft); transition: background-color var(--pz-dur-fast) var(--pz-ease-out); }
.seg button.on, .seg button[aria-pressed="true"] { background: var(--segmented-item-active-bg); color: var(--ink); box-shadow: var(--segmented-item-active-shadow); }

/* Toggle: 36x22 track, 18px knob, 120ms. On is orange, off is stone-200. Use class "switch" on a checkbox. */
.switch, .opt-row > input[type="checkbox"] { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: var(--toggle-w); height: var(--toggle-h); margin: 0; border-radius: 999px; background: var(--toggle-off); cursor: pointer; transition: background-color var(--pz-dur-fast) var(--pz-ease-out); }
.switch::after, .opt-row > input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: var(--toggle-knob); height: var(--toggle-knob); border-radius: 50%; background: #fff; box-shadow: var(--pz-shadow-xs); transition: transform var(--pz-dur-fast) var(--pz-ease-out); }
.switch:checked, .opt-row > input[type="checkbox"]:checked { background: var(--toggle-on); }
.switch:checked::after, .opt-row > input[type="checkbox"]:checked::after { transform: translateX(14px); }
.switch:disabled, .opt-row > input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }

/* Option buttons (participant answers): min-height 58, radius 14, stone-50; selected gets a 1.5px orange border. */
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--answer-min-h); padding: 12px 16px; margin-bottom: 10px; border-radius: var(--answer-radius); border: 1.5px solid transparent; background: var(--answer-bg); text-align: start; font-weight: 500; transition: border-color var(--pz-dur-fast), transform var(--pz-dur-instant), background-color var(--pz-dur-fast); }
.opt .k { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--color-surface); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.opt:active { transform: scale(.98); }
.opt.on { border-color: var(--answer-selected-border); }
.opt.on .k { background: var(--accent); color: var(--on-accent); }
.opt.right { border-color: var(--good); background: var(--good-soft); }
.opt.wrong { border-color: var(--hot); background: var(--bad-soft); }
/* True / False: two big side-by-side buttons */
.tf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.opt-tf { flex-direction: column; justify-content: center; text-align: center; min-height: 120px; margin-bottom: 0; font-size: 20px; font-weight: 700; }
.opt-tf .tf-mark { font-size: 40px; line-height: 1; }
.opt-tf:first-child { border-color: var(--good); background: var(--good-soft); }
.opt-tf:last-child { border-color: var(--hot); background: var(--bad-soft); }
.opt-tf.on { outline: 3px solid var(--accent); outline-offset: 2px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale.ten { grid-template-columns: repeat(5, 1fr); }
.scale button { min-height: 54px; border-radius: var(--answer-radius); border: 1.5px solid transparent; background: var(--answer-bg); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.scale button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.scale.stars button { font-size: 28px; color: var(--ink-soft); }
.scale.stars button.on { background: transparent; color: var(--warn); border-color: var(--warn); }
.scale.emojis button { font-size: 26px; }

/* Status pill / badge. Live: peach pill, orange-700 text, 6px orange dot pulsing 1.4s. */
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: var(--badge-height); padding: var(--badge-pad); border-radius: var(--badge-radius); font: var(--badge-font); background: var(--badge-neutral-bg); color: var(--badge-neutral-fg); }
.pill.live { background: var(--badge-live-bg); color: var(--badge-live-fg); }
.pill.live::before { content: ""; width: var(--live-dot-size); height: var(--live-dot-size); border-radius: 50%; background: var(--color-live); animation: blink var(--pz-dur-pulse) infinite; }
.pill.closed { background: var(--bad-soft); color: var(--bad-ink); }
.fbp-hold { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-block: 4px; }
.pill.ended { background: var(--badge-neutral-bg); color: var(--ink-soft); }
@keyframes blink { 50% { opacity: .35; } }

/* Results bars: track stone-100 (stage #2A2A2A); the leader is orange, the others lighter orange; width eases over 600ms. */
.bars { display: grid; gap: 10px; }
.bar { position: relative; min-height: 50px; border-radius: 10px; background: var(--poll-track); overflow: hidden; }
.bar .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--color-chart-2); transition: width var(--poll-transition); border-radius: 10px; }
.bar .fill.on { background: var(--color-chart-leader); }
.bar.quiz .fill { background: var(--color-chart-3); } /* a quiz never highlights the leader */
/* Dark looks: the bright chart colours under white text read at 1.6 to 2.9:1, so the fills are mixed toward the surface (7:1 or better). */
[data-theme="dark"] .bar .fill, [data-theme="stage"] .bar .fill { background: color-mix(in srgb, var(--color-chart-2) 38%, var(--surface)); }
[data-theme="dark"] .bar .fill.on, [data-theme="stage"] .bar .fill.on { background: color-mix(in srgb, var(--color-chart-leader) 42%, var(--surface)); }
[data-theme="dark"] .bar.quiz .fill, [data-theme="stage"] .bar.quiz .fill { background: color-mix(in srgb, var(--color-chart-3) 28%, var(--surface)); }
[data-theme] .bar.right .fill, [data-theme] .bar.right .fill.on { background: color-mix(in srgb, var(--good) 34%, var(--surface)); } /* light enough for normal text, which may sit half on the fill and half on the track */
.bar.right { box-shadow: inset 4px 0 0 var(--good); }
.bar.right .lbl svg, .bar.right .lbl > span:first-child { color: var(--ink); }
.bar .lbl { position: relative; display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 50px; padding: 8px 14px; font-weight: 600; }
.bar .lbl b { font-size: 18px; font-variant-numeric: tabular-nums; }

/* Results columns (frames 05/06): fixed-height chart, each column grows from the bottom; leader orange, then orange-300, then orange-200. */
.cols { --cols-h: 260px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; height: var(--cols-h); }
.col { display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 0; text-align: center; container-type: inline-size; }
.col-pct { font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.col-track { flex: 1; min-height: 0; position: relative; overflow: hidden; border-radius: var(--poll-column-radius); background: var(--poll-track); }
.col-fill { position: absolute; inset: auto 0 0 0; height: 0; background: var(--color-chart-3); border-radius: var(--poll-column-radius) var(--poll-column-radius) 0 0; transition: height var(--poll-transition), background-color var(--poll-transition); }
.col.second .col-fill { background: var(--color-chart-2); }
.col.lead .col-fill { background: var(--color-chart-leader); }
.col.right .col-fill { background: var(--good); }
.col-lbl { font-size: max(11px, min(14px, 17cqi)); font-weight: 600; line-height: 1.25; min-width: 0; } /* a long word shrinks to fit its column instead of breaking mid-word */
.col-lbl span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.col-lbl small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
#results.awaiting .col-pct, #results.awaiting .bar .lbl b { visibility: hidden; } /* options only while people vote: a 0% must never show */
#results.awaiting .col-lbl small { display: none; }
#waitAns.vote-total { font-size: clamp(28px, 3.6vw, 56px) !important; font-weight: 700; color: var(--ink); font-variant-numeric: proportional-nums; margin-top: 12px; }
.bigscreen .cols { --cols-h: clamp(240px, 46vh, 560px); gap: 16px; }
.bigscreen .col-track { border-radius: var(--poll-column-radius-stage); }
.bigscreen .col-fill { border-radius: var(--poll-column-radius-stage) var(--poll-column-radius-stage) 0 0; }
.bigscreen .col-pct { font-size: clamp(28px, 3.4vw, 48px); }
.bigscreen .col-lbl { font-size: max(12px, min(clamp(16px, 1.8vw, 22px), 17cqi)); }
.bigscreen .col-pct, .big-num { font-variant-numeric: proportional-nums; } /* big display numbers: tabular digits look gappy at this size */
.bigscreen .col-lbl small { font-size: clamp(13px, 1.3vw, 16px); }
html.embed .cols { --cols-h: 130px; gap: 8px; }
html.embed .col-pct { font-size: 18px; }
html.embed .col-lbl { font-size: max(11px, min(13px, 17cqi)); }
html.embed .col-lbl span { -webkit-line-clamp: 2; }
html.embed .col-lbl small { display: none; }

/* Phone extras: submitted words as chips (09c), ended view tiles (09e) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--color-surface-accent-soft); color: var(--color-text-accent); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.end-tiles { display: grid; gap: 10px; margin-top: 12px; text-align: start; }
.end-hero { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--tile-radius-stage); background: var(--color-surface-inverse); color: var(--color-text-inverse); }
.end-hero b { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
.end-eye { font: var(--type-eyebrow); text-transform: uppercase; color: var(--color-text-accent-inverse); }
.end-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.end-stat { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--tile-radius-stage); background: var(--color-surface-muted); }
.end-stat.peach { background: var(--color-surface-accent-soft); color: var(--color-text-accent); }
.end-stat b { font-size: 28px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.end-stat span { font-size: 13px; }
.wait.ended .pdots, .wait.ended h3 { display: none; }

/* Toasts: neutral black tile with white text; errors use the danger colours. */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--pz-stone-900); color: #fff; border: 1px solid var(--pz-stone-750); padding: 12px 18px; border-radius: var(--pz-radius-xl); box-shadow: var(--pz-shadow-md); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity var(--pz-dur-slow), transform var(--pz-dur-slow); z-index: 50; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: var(--good); color: var(--on-good); border-color: transparent; }
.toast.bad { background: var(--color-danger); color: #fff; border-color: transparent; }
.banner { position: fixed; top: 0; left: 0; right: 0; padding: 8px 14px; text-align: center; font-weight: 600; font-size: 14px; background: var(--warn); color: #141414; z-index: 40; transform: translateY(-100%); transition: .3s; }
.banner.show { transform: none; }

/* Q&A list: rows are stone-50 chips, radius 12, no border. */
.qa { display: grid; gap: 10px; }
.qa-item { display: flex; gap: 12px; align-items: flex-start; padding: var(--row-pad); padding-block: 12px; background: var(--row-bg); border-radius: var(--row-radius); }
.qa-item[aria-current="true"] { background: var(--color-surface-accent-subtle); box-shadow: inset 0 0 0 1.5px var(--accent); }
.qa-item .you-tag { align-self: center; font-size: .75em; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--accent); color: var(--on-accent); }
.qa-item.live { background: var(--color-surface-accent-subtle); box-shadow: inset 0 0 0 1.5px var(--accent); }
.qa-item.answered { opacity: .6; }
.qa-item .txt { flex: 1; font-weight: 500; }
.qa-by { display: block; font-size: .75em; font-weight: 600; color: var(--ink-soft); }
.vote { flex: none; display: grid; place-items: center; min-width: 44px; min-height: var(--upvote-h); border-radius: var(--upvote-radius); border: 0; background: var(--upvote-bg); font-weight: 700; line-height: 1; gap: 2px; }
.vote.on { background: var(--upvote-active-bg); color: var(--upvote-active-fg); }
.vote small { font-size: 11px; font-weight: 600; }

/* Reactions */
.react-bar { display: flex; gap: 8px; justify-content: space-between; margin-top: 12px; }
.react-bar button { flex: 1; min-height: 56px; border-radius: var(--pz-radius-3xl); border: 0; background: var(--row-bg); font-size: 22px; }
.react-bar button:active { transform: scale(1.15); }
.react-bar button.sent { animation: pop .35s; }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* Live screen (projector): same theme, bigger type */
.bigscreen { min-height: 100vh; min-height: 100dvh; }
.bigscreen .wrap-wide { padding: 28px 40px; }
.bigscreen h1 { font-size: clamp(32px, 4.5vw, 64px); }
.bigscreen .bar { min-height: 72px; }
.bigscreen .bar .lbl { min-height: 72px; font-size: clamp(18px, 2.2vw, 30px); padding: 12px 22px; }
.bigscreen .bar .lbl b { font-size: clamp(22px, 2.6vw, 36px); }
/* Slider results: a one-line summary and a compact histogram, so ten bins fit on one screen. */
.slider-sum { margin: 0 0 12px; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bigscreen .slider-sum { font-size: clamp(22px, 2.4vw, 40px); }
.bars.hist { gap: 6px; }
.bigscreen .bars.hist .bar, .bigscreen .bars.hist .bar .lbl { min-height: 0 !important; }
.bigscreen .bars.hist .bar .lbl { padding: 5px 16px; font-size: clamp(14px, 1.4vw, 20px); }
.bigscreen .bars.hist .bar .lbl b { font-size: clamp(15px, 1.5vw, 22px); }
.bigscreen .qa-item { font-size: clamp(16px, 1.8vw, 24px); }
.float { position: fixed; bottom: -60px; font-size: 44px; pointer-events: none; animation: rise 3s ease-out forwards; z-index: 30; }
@keyframes rise { 0% { transform: translateY(0) scale(.7); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(-90vh) translateX(var(--drift, 0)) scale(1.25); opacity: 0; } }
.cloud { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: baseline; justify-content: center; padding: 16px 0; }
.cloud span { font-weight: 700; line-height: 1; color: var(--accent); }
/* Light looks: every word is full strength and uses the dark orange text colour (5.7:1 on white, at least 3:1 needed for large text); the pale orange at reduced opacity was hard to read. */
[data-theme="paper"] .cloud span, [data-theme="sun"] .cloud span { opacity: 1 !important; color: var(--color-text-accent); }
[data-theme="paper"] .bigscreen .cloud span:nth-child(3n+2), [data-theme="sun"] .bigscreen .cloud span:nth-child(3n+2) { color: var(--ink); }
[data-theme="paper"] .bigscreen .cloud span:nth-child(3n), [data-theme="sun"] .bigscreen .cloud span:nth-child(3n) { color: var(--ink-soft); }
.big-num { font-size: clamp(60px, 10vw, 140px); font-weight: 700; line-height: 1; letter-spacing: -.03em; }

/* Countdown bar for timed questions */
.timer { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 6px 0 14px; }
.timer i { display: block; height: 100%; background: var(--accent); transform-origin: left; }
.timer.low i { background: var(--hot); }
.bigscreen .timer { height: 16px; }

/* Podium: 3rd, then 2nd, then 1st rise in. With reduced motion the global rule removes the animation and they simply show. */
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 18px; margin: 28px auto; max-width: 900px; text-align: center; }
.podium .place { animation: rise-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.podium .place .name { font-weight: 700; font-size: clamp(18px, 2.4vw, 32px); }
.podium .place .score { color: var(--ink-soft); font-weight: 600; }
.podium .step { margin-top: 10px; border-radius: var(--radius) var(--radius) 0 0; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: clamp(36px, 5vw, 72px); display: grid; place-items: center; }
.podium .p1 { order: 2; animation-delay: 1.8s; } .podium .p1 .step { height: 260px; }
.podium .p2 { order: 1; animation-delay: .9s; }  .podium .p2 .step { height: 190px; }
.podium .p3 { order: 3; animation-delay: 0s; }   .podium .p3 .step { height: 140px; }
@keyframes rise-in { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 640px) { .bigscreen .wrap-wide { padding: 18px; } .scale.ten { grid-template-columns: repeat(5, 1fr); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* One focus rule for buttons, inputs and links: 1px orange border plus a 3px peach ring. */
:focus-visible { outline: 1px solid var(--color-border-focus); outline-offset: 0; box-shadow: var(--focus-ring); }

/* Big screen: left rail (QR + join info) and one big card */
.bigscreen .wrap-wide { max-width: none; padding: 0; }
.stage { display: grid; grid-template-columns: minmax(220px, 22vw) 1fr; gap: 14px; min-height: 100dvh; padding: 14px; }
.stage.idle { grid-template-columns: 1fr; }
.stage.idle .rail { display: none; }
.rail { background: var(--surface); border-radius: var(--tile-radius-stage); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 24px; }
.rail p { margin: 0; }
.rail-qr { width: 100%; max-width: 260px; background: #fff; padding: 12px; border-radius: var(--radius-sm); }
.rail-join { font-size: clamp(18px, 1.8vw, 26px); text-align: center; }
.rail-code { font-size: clamp(36px, 4vw, 64px); font-weight: 700; letter-spacing: var(--type-code-tracking); color: var(--color-text-accent); }
.rail-count { color: var(--ink-soft); }
.stage-main { min-width: 0; }
.stage-main #main { background: var(--surface); border-radius: var(--tile-radius-stage); padding: clamp(20px, 3vw, 44px); }
@media (max-width: 999px) {
  .stage { grid-template-columns: 1fr; padding: 12px; }
  .rail { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; text-align: left; }
  .rail-qr { width: 96px; }
}

/* Presenter bar: only the host sees it */
.presenter { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-wrap: nowrap; gap: 4px; align-items: center; background: var(--surface); border: 0; border-radius: 999px; padding: 6px; box-shadow: var(--pz-shadow-md); z-index: 40; width: max-content; max-width: min(720px, calc(100vw - 24px)); transition: opacity .2s, visibility 0s; }
.presenter.is-idle { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
@media (prefers-reduced-motion: reduce) { .presenter, .presenter.is-idle { transition: none; } }
.presenter > * { flex: none; }
.presenter > select { flex: 0 1 200px; min-width: 90px; width: 200px; }
.presenter button { min-height: 42px; padding: 6px 12px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.presenter button:hover:not(:disabled) { background: var(--surface-2); }
.presenter button:disabled { opacity: .4; }
.presenter-menu { position: absolute; right: 6px; bottom: calc(100% + 8px); display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 210px; padding: 8px; background: var(--surface); border-radius: 18px; box-shadow: var(--pz-shadow-md); }
.presenter-menu.hidden { display: none; }
.presenter-menu button { justify-content: flex-start; border-radius: 12px; }
.presenter-menu button.hidden { display: none; }
.presenter select { min-height: 42px; max-width: 220px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--ink); padding: 6px 12px; }
#pStop { color: var(--hot); }

/* Host app shell: shared by dashboard, settings and analytics */
.shell { display: grid; grid-template-columns: var(--pz-sidebar) 1fr; min-height: 100vh; }
.side { display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; background: transparent; }
.side .grow { flex: 1; }
.side .nav { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--nav-item-height); text-align: left; padding: var(--nav-item-pad); border: 0; border-radius: var(--nav-item-radius); font: var(--type-label-md); text-decoration: none; color: var(--nav-item-fg); background: transparent; }
.side .nav:hover { background: var(--color-action-secondary-hover); }
.side .nav.on { background: var(--nav-item-active-bg); color: var(--nav-item-active-fg); }
.side .nav:disabled { color: var(--ink-soft); cursor: not-allowed; }
.side .who { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--tile-bg); border-radius: var(--pz-radius-xl); overflow-wrap: anywhere; min-width: 0; }
.side a.who { text-decoration: none; color: inherit; }
.side a.who:hover { background: var(--color-surface-muted); }
.who .av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--color-surface-accent-soft); color: var(--color-text-accent); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.who .wn { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.who .wn b { font-size: 13px; font-weight: 500; }
.who .wn span { font-size: 12px; color: var(--ink-soft); }
.side .brand { padding: 0 8px; margin-bottom: 8px; }
.side .btn-new { width: 100%; min-height: 38px; margin-bottom: 8px; }
/* Look picker (P.lookPicker): Settings and Account. The preview colours are the looks' own, so each card shows its look whatever the page wears. */
.themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } /* 4 in a row when the card is wide, 2 x 2 when it is narrow (P.lookPicker adds .two from its own width) */
.themes.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.theme { text-align: left; padding: 6px; border: 0; border-radius: var(--radius); background: transparent; box-shadow: inset 0 0 0 1px var(--color-border, rgba(127,127,127,.25)); overflow: hidden; cursor: pointer; }
.theme[aria-pressed="true"] { background: var(--color-surface-muted); box-shadow: inset 0 0 0 2px var(--accent); }
.theme:focus-visible { box-shadow: var(--focus-ring); }
.theme .prev { display: block; padding: 16px; border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font-family: var(--font); }
.theme .prev b { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 8px; }
.theme .prev i { display: block; height: 10px; border-radius: 999px; background: var(--accent); width: 60%; margin-bottom: 6px; }
.theme .prev i + i { background: var(--line); width: 85%; }
.theme .prev em { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: var(--btn-radius); background: var(--accent); color: var(--on-accent); font-size: 12px; font-style: normal; font-weight: 600; }
/* The Formal preview stays light even when the page itself is dark. */
.theme .prev[data-theme="paper"] { --bg: #F2F1EC; --ink: #141414; --line: #E6E4DC; }
.theme .prev[data-theme="stage"] { background: radial-gradient(120% 90% at 85% 0%, #FF5B1F66, transparent 60%), radial-gradient(90% 80% at 0% 100%, #FF8A3D33, transparent 60%), var(--bg); }
.theme .prev[data-theme="stage"] em { box-shadow: 0 0 18px #FF5B1F99; }
.theme .prev[data-theme="stage"] i:first-of-type { box-shadow: 0 0 12px #FF5B1F88; }
.theme .prev[data-theme="sun"] { --bg: #FFF8F1; --ink: #1C1411; --line: #F3DFCF; --accent: #FF5B1F; --on-accent: #1C1411; background: radial-gradient(120% 90% at 85% 0%, #FF8A3D44, transparent 60%), var(--bg); }
.theme .prev[data-theme="sun"] em { box-shadow: 0 0 14px #FF5B1F66; }
.theme .cap { display: block; padding: 10px 8px 6px; font-weight: 600; color: var(--ink); }
.theme .cap small { display: block; font-weight: 400; color: inherit; opacity: .75; }
/* Inline rename (P.renameInline) */
.rename { display: grid; gap: 4px; min-width: 0; flex: 1 1 auto; }
.rename-row { display: flex; gap: 6px; align-items: center; }
.rename-row .input { min-width: 0; flex: 1 1 auto; }
.rename-err { color: var(--bad-ink); }
.rename-err:empty { display: none; }
.ws-top .rename { flex: 0 1 380px; }
.ws-rename { flex: none; }
.main { padding: 20px 20px 56px 8px; width: 100%; min-width: 0; }
.main > .inner { max-width: none; margin: 0 auto; }
/* Mobile top row: the menu button opens the sidebar as a drawer (pulse.js toggles .open on .shell). */
.m-top { display: none; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; inset: 0 auto 0 0; width: var(--pz-sidebar); overflow-y: auto; background: var(--color-bg); transform: translateX(-100%); visibility: hidden; transition: transform var(--pz-dur-slow) var(--pz-ease-out), visibility 0s var(--pz-dur-slow); }
  .shell.open .side { transform: none; visibility: visible; box-shadow: var(--pz-shadow-xl); transition: transform var(--pz-dur-slow) var(--pz-ease-out); }
  .shell.open::after { content: ""; position: fixed; inset: 0; z-index: 20; background: rgba(20, 20, 20, .35); }
  .m-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .main { padding: 12px 12px 40px; }
}


/* ---------- Dashboard: sessions table (plan 010) ---------- */
.dt-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin: 0; padding: 4px 4px 8px; }
.dt-head h1 { margin: 0; font: var(--type-heading-lg); letter-spacing: var(--type-heading-lg-tracking); }
.dt-head .dt-new { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex: 0 1 auto; justify-content: flex-end; }
.dt-head form { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 280px; max-width: 460px; }
.dt-head form .input { flex: 1 1 180px; }
.dt-now { background: var(--color-surface-inverse); color: var(--color-text-inverse); margin: 0; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px; align-items: stretch; justify-content: flex-start; padding: var(--tile-pad-md) 22px; min-height: 150px; border-radius: var(--tile-radius-app); }
.dt-now .kick { display: flex; justify-content: space-between; gap: 8px; opacity: 1; font: 600 12px/1.3 var(--font); letter-spacing: 0; text-transform: none; color: var(--color-text-accent-inverse); }
.dt-now h2 { margin: 0; overflow-wrap: anywhere; font: var(--type-heading-md); letter-spacing: var(--type-heading-md-tracking); }
.dt-now .sub { overflow-wrap: anywhere; font-size: 13px; color: var(--color-text-inverse-muted); opacity: 1; }
.dt-now .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; justify-content: space-between; }
.dt-now .btn-ghost { background: var(--color-surface-inverse-raised); color: var(--color-text-inverse); border-color: transparent; } /* the banner inverts the theme, so its ghost button must too */
.dt-tabs { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 14px; }
.dt-tab { appearance: none; border: 0; background: none; font: var(--type-label-sm); color: var(--ink-soft); padding: 5px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; }
.dt-tab[aria-pressed="true"] { background: var(--color-surface-sunken); color: var(--ink); }
.dt-tabs .input { margin-left: auto; max-width: 280px; min-height: 40px; }
.dt-table { padding: 0; overflow: visible; }
.dt-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 84px 104px 272px; gap: 12px 14px; align-items: center; min-height: 56px; padding: 8px 20px; border-top: var(--divider); }
.dt-row:first-child { border-top: 0; }
.dt-row.dt-th { color: var(--ink-soft); min-height: 34px; background: var(--color-surface-subtle); padding-block: 0; font-size: 12px; border-bottom: var(--divider); }
.dt-title { font-weight: 700; overflow-wrap: anywhere; }
.dt-title small { font-weight: 500; color: var(--ink-soft); margin-left: 6px; }
.dt-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.dt-menu { position: relative; }
.dt-menu > summary { list-style: none; cursor: pointer; }
.dt-menu > summary::-webkit-details-marker { display: none; }
.dt-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; display: grid; gap: 2px; padding: 8px; background: var(--surface); border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.dt-pop a, .dt-pop button { display: block; text-align: left; padding: 8px 12px; border: 0; background: none; font: inherit; color: var(--ink); border-radius: 8px; cursor: pointer; text-decoration: none; }
.dt-pop a:hover, .dt-pop button:hover { background: var(--color-action-secondary); }
.dt-pop .danger { color: var(--bad-ink); }
@media (max-width: 800px) {
  .dt-row.dt-th { display: none; }
  .dt-row > :first-child { grid-column: 1 / -1; }
  .dt-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .dt-tabs .input { margin-left: 0; max-width: none; flex: 1 1 100%; }
  .dt-head .dt-new { justify-content: flex-start; }
}

/* ---------- Host workspace (plan 010) ---------- */
.ws { display: grid; grid-template-rows: var(--pz-topbar) minmax(0, 1fr); gap: var(--pz-grid-gap); padding: var(--pz-app-pad); height: 100vh; height: 100dvh; background: var(--bg); }
.ws-top { display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--surface); border-radius: var(--tile-radius-app); min-width: 0; min-height: var(--pz-topbar); }
.ws-top .ws-title { margin: 0; font: var(--type-heading-sm); font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.ws-top .spacer { flex: 1; }
.ws-body { display: grid; grid-template-columns: 280px minmax(0, 1fr) 380px; gap: var(--pz-grid-gap); min-height: 0; }
.ws-rail, .ws-room { overflow: auto; padding: var(--tile-pad-md, 20px); min-height: 0; background: var(--surface); border-radius: var(--tile-radius-app); }
.ws-rail { display: flex; flex-direction: column; gap: 10px; }
.ws-room { display: flex; flex-direction: column; gap: 12px; }
.ws-centre { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; min-width: 0; background: var(--surface); border-radius: var(--tile-radius-app); overflow: hidden; }
.ws-panel { overflow: auto; padding: 28px 32px; min-height: 0; }
.ws-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-cards, .ws-special { display: grid; gap: 8px; }
.ws-card { position: relative; border: 0; border-radius: var(--radius-sm); background: var(--row-bg); }
.ws-card.live { box-shadow: inset 0 0 0 1.5px var(--accent); }
.ws-card.sel { background: var(--color-surface-accent-subtle); }
.ws-card-main { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; color: var(--ink); padding: 10px 52px 10px 12px; cursor: pointer; border-radius: var(--radius-sm); }
.ws-card-kind { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.ws-card-kind b { color: var(--accent); }
.ws-card-text { font-weight: 700; overflow-wrap: anywhere; }
.ws-set { margin: 0 8px 8px; padding: 12px; border: 1.5px dashed var(--color-border-dashed); border-radius: var(--radius-sm); }
.ws-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 24px; border-top: var(--divider); background: var(--surface); }
.ws-ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-bar .spacer { flex: 1; }
.ws-next { display: flex; gap: 12px; align-items: center; }
.ws-next .btn { min-height: 56px; padding: 10px 28px; font-size: 18px; }
.ws-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.ws-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 0; border-radius: var(--radius-sm); background: var(--surface-2); }
.ws-screen iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 720px; border: 0; transform-origin: 0 0; transform: scale(var(--k, .25)); pointer-events: none; }
.ws-phone { width: min(300px, 100%); margin: 0 auto; border: 10px solid var(--ink); border-radius: 36px; overflow: hidden; background: var(--surface-2); }
.ws-phone-in { position: relative; aspect-ratio: 390 / 844; overflow: hidden; }
.ws-phone-in iframe { position: absolute; top: 0; left: 0; width: 390px; height: 844px; border: 0; transform-origin: 0 0; transform: scale(var(--k, .7)); }
.ws-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ws-stat { padding: 10px; text-align: center; border: 0; border-radius: var(--radius-sm); background: var(--row-bg); }
.ws-stat b { display: block; font-size: 24px; }
.ws-stat span { font-size: 12px; color: var(--ink-soft); }
.ws-stat.hot b { color: var(--bad-ink); }
.ws-rq { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--row-bg); border: 0; border-radius: 12px; padding: 10px 12px; cursor: pointer; overflow-wrap: anywhere; }
.ws-pop { position: relative; }
.ws-pop > summary { list-style: none; cursor: pointer; }
.ws-pop > summary::-webkit-details-marker { display: none; }
.ws-popbody { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; display: grid; gap: 8px; padding: 12px; background: var(--surface); border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.ws-popbody .btn { justify-content: flex-start; }
.ws-share .ws-popbody img { width: 160px; height: 160px; border-radius: 12px; }
dialog.ws-dlg { width: min(640px, 94vw); }
.ws-opts { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 4px; }
@media (max-width: 1199px) { .ws-body { grid-template-columns: 280px minmax(0, 1fr); } .ws-room { display: none; } }
@media (max-width: 799px) {
  .ws { display: block; height: auto; min-height: 100dvh; padding: 8px; }
  .ws > * + * { margin-top: 8px; }
  .ws-top { flex-wrap: wrap; height: auto; padding: 10px 16px; }
  .ws-top .spacer { display: none; }
  .ws-body { display: flex; flex-direction: column; }
  .ws-rail { flex-direction: row; overflow-x: auto; }
  .ws-rail .ws-tools, .ws-rail .ws-cards, .ws-rail .ws-special { display: flex; flex: none; }
  .ws-rail .ws-card { min-width: 220px; }
  .ws-rail #qCountBox { display: none; }
  .ws-panel { padding: 16px; }
  .ws-bar { position: sticky; bottom: 0; padding: 10px 16px; }
  .ws-popbody { right: auto; left: 0; max-width: calc(100vw - 32px); }
}

/* ---- Plan 011: leaderboard and awards steps ---- */
.gb { padding: 2vh 0; }
.gb h1 { margin: 0 0 4vh; }
.gb h1 small { color: var(--ink-soft); font-size: .5em; font-weight: 600; margin-left: 12px; }
.gb-rows { display: grid; gap: 14px; }
.gb-row { display: grid; grid-template-columns: 2ch minmax(0, 1fr) auto 7ch; align-items: center; gap: 18px; font-size: clamp(18px, 2.2vw, 34px); }
.gb-rank { font-weight: 700; color: var(--ink-soft); }
.gb-row.first .gb-rank { color: var(--warn); }
.gb-bar { position: relative; height: clamp(44px, 6vh, 70px); border-radius: var(--radius-sm); background: var(--poll-track); overflow: hidden; }
.gb-fill { position: absolute; inset: 0 auto 0 0; background: var(--c, var(--accent)); transform-origin: left; animation: gb-grow var(--pz-dur-chart) var(--pz-ease-out) both; }
/* On the dark looks the light bar colours leave white names under 4.5:1; dimming the fill brings them to about 4.7:1 or better. */
[data-theme="dark"] .gb-fill, [data-theme="stage"] .gb-fill { opacity: .7; }
.gb-name { position: relative; display: flex; align-items: center; gap: 12px; height: 100%; padding: 0 20px; font-weight: 700; color: var(--ink); }
.gb-name .pill { font-size: .55em; background: var(--surface-2); color: var(--ink); }
.gb-score { font-weight: 700; text-align: right; }
.gb-delta { font-weight: 700; color: var(--ink-soft); }
.gb-delta.up { color: var(--good); }
.gb-delta.down { color: var(--hot); }
.gb-pills { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4vh; font-size: clamp(16px, 1.6vw, 24px); }
.gb-pill { padding: 8px 16px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-weight: 700; }
.gb-pill.good { background: var(--good-soft); color: var(--good); }
.gb-pill.warn { background: var(--surface-2); color: var(--warn); }
.aw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 899px) { .aw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.aw-card { display: flex; align-items: center; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--c, var(--accent)); border-radius: var(--radius); }
.aw-ring { flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; border: 3px solid var(--c, var(--accent)); background: var(--surface-2); }
.aw-card .aw-title { color: var(--c, var(--accent)); font-weight: 700; }
.aw-card .aw-name { font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; overflow-wrap: anywhere; }
.aw-card .aw-detail { color: var(--ink-soft); }
@keyframes gb-grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .gb-fill { animation: none; } }

/* phone cards for the same two steps */
.me-card { display: grid; gap: 14px; text-align: center; }
.me-card .big { font-size: 64px; font-weight: 700; line-height: 1; }
.me-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.me-tile { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px; }
.me-tile b { display: block; font-size: 26px; }
.me-tile span { color: var(--ink-soft); font-size: 13px; }
.me-won { font-size: 56px; line-height: 1.1; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.badge { opacity: .35; }
.badge.on { opacity: 1; }
.badge i { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; font-style: normal; font-size: 24px; border: 1.5px dashed var(--color-border-dashed); }
.badge.on i { border-style: solid; background: var(--surface-2); }
.badge span { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

/* feedback summary (analytics, report) */
.fb-top { display: flex; align-items: center; gap: 14px; }
.fb-avg { font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.fb-stars { color: var(--warn); font-size: 22px; letter-spacing: 2px; }
.fb-stars.sm { font-size: 14px; letter-spacing: 1px; margin-right: 8px; white-space: nowrap; }
.fb-dist { display: grid; gap: 6px; margin: 14px 0; }
.fb-row { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.fb-track { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.fb-track i { display: block; height: 100%; background: var(--warn); }
.fb-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fb-comments li { padding: 8px 0; border-top: var(--divider); overflow-wrap: anywhere; }
/* phone feedback card */
.fbp-controls { display: grid; gap: 10px; margin-bottom: 14px; }
.fbp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.fbp-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.fbp-row > .input { flex: 2 1 200px; width: auto; min-width: 0; }
.fbp-f { display: grid; gap: 2px; flex: 1 1 140px; min-width: 0; }
.fbp-f .input { width: 100%; }
.fbp-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.fbp-list li { display: grid; gap: 4px; }
/* analytics scores */
.sc-table { width: 100%; border-collapse: collapse; }
.sc-table th, .sc-table td { text-align: left; padding: 8px 10px; border-bottom: var(--divider); }
.sc-table td.num, .sc-table th.num { text-align: right; }
.sc-qs { display: grid; gap: 10px; margin-top: 10px; }
.sc-q .sc-track { height: 10px; border-radius: 5px; background: var(--surface-2); margin-top: 4px; overflow: hidden; }
.sc-q .sc-track i { display: block; height: 100%; background: var(--good); }
.sc-awards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.sc-awards .aw-card { padding: 10px 14px; gap: 10px; }
.sc-awards .aw-ring { width: 40px; height: 40px; font-size: 20px; border-width: 2px; }
.sc-awards .aw-name { font-size: 16px; }

/* Danger dialog (P.confirmDanger) */
dialog { background: var(--surface); color: var(--ink); border: 0; border-radius: var(--pz-radius-4xl); box-shadow: var(--pz-shadow-xl); }
dialog.danger-dialog { width: min(440px, 94vw); padding: 24px; }
dialog.danger-dialog::backdrop { background: rgba(0, 0, 0, .5); }
.danger-dialog h2 { margin: 0 0 8px; }
.danger-dialog p { margin: 0 0 16px; color: var(--ink-soft); }
.danger-ack { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; color: var(--bad-ink); font-weight: 600; cursor: pointer; }
.danger-ack input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.danger-row { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* Share links (P.linkPanel) */
.link-panel { display: grid; gap: 10px; }
.link-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.link-row input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.link-row small { display: block; color: var(--ink-soft); }
.link-out { display: grid; gap: 8px; justify-items: start; }
.link-out .row { width: 100%; }
.link-out .input { min-width: 0; }

/* My templates: one saved template is a header row plus its questions */
.tpl-group { display: grid; gap: 8px; }
.tpl-ghead .t { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.tpl-card .t { min-width: 0; overflow-wrap: anywhere; }

/* Music volume slider (workspace top bar and presenter bar) */
.vol-range { width: 90px; }
.vol-range:disabled { opacity: .4; }
.ws-top button:disabled { opacity: .4; }
@media (max-width: 800px) { .vol-range { display: none; } }

/* Plan 022: question images, slider, put-in-order */
.q-img-big { display: block; max-height: 40vh; max-width: 100%; object-fit: contain; border-radius: var(--radius-sm); margin: 0 0 12px; }
.q-img-phone { display: block; width: 100%; max-height: 30vh; object-fit: contain; border-radius: var(--radius-sm); margin: 0 0 12px; }
.q-thumb { display: block; width: 56px; height: 40px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.q-thumb-lg { width: 160px; height: 100px; object-fit: contain; }
.slide-host { display: block; width: 100%; max-height: 50vh; object-fit: contain; border-radius: var(--radius-sm); }
.slider-num { font-size: 44px; font-weight: 700; text-align: center; line-height: 1.1; margin: 4px 0 10px; }
.slider { width: 100%; height: 44px; accent-color: var(--accent); margin: 0; }
.slider::-webkit-slider-thumb { width: 32px; height: 32px; }
.slider::-moz-range-thumb { width: 32px; height: 32px; }
.order-pick, .order-list { list-style: none; margin: 0 0 10px; padding: 0; }
.order-pick li, .order-list li { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px; margin-bottom: 8px; border: 0; border-radius: var(--radius-sm); background: var(--row-bg); }
.order-pick .k { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.order-pick .txt, .order-list li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.order-pick button { min-width: 44px; min-height: 44px; }
.order-pick .order-arrow { min-width: 32px; min-height: 32px; padding: 0 6px; font-size: 12px; }
.order-grip { flex: none; width: 36px; height: 44px; display: grid; place-items: center; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.order-pick li { transition: transform .12s; }
.order-pick li.dragging { transition: none; position: relative; z-index: 2; box-shadow: var(--shadow); }
.order-pick.is-dragging { user-select: none; -webkit-user-select: none; }
.order-list li b { flex: none; }

/* Fill in the blanks: text boxes inline in the sentence on a phone, lines on the big screen, marks after the reveal. */
.blank-sentence { font-size: 20px; font-weight: 600; line-height: 2.4; overflow-wrap: anywhere; }
.blank-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.blank-sentence .blank-in, .blank-row .blank-in { display: inline-block; width: min(9em, 100%); min-height: 44px; padding: 6px 10px; vertical-align: middle; text-align: start; font-weight: 500; font-size: 17px; }
.blank-line { display: inline-block; min-width: 4.5ch; padding: 0 .3em; border-bottom: 3px solid currentColor; line-height: 1.2; text-align: center; vertical-align: baseline; overflow-wrap: anywhere; }
.blank-line.right { color: var(--good); } .blank-line.wrong { color: var(--bad-ink); }
.blank-fix { font-size: .7em; font-weight: 600; color: var(--ink-soft); margin-inline: .3em; }
.blank-mark { margin-inline-start: .2em; }

/* Team mode: a coloured dot plus the team name; bars on the big screen. The dot is plain CSS, so it needs no icon in the Formal look. */
.team-dot { display: inline-block; width: .8em; height: .8em; border-radius: 50%; background: var(--c, var(--ink-soft)); vertical-align: -.05em; margin-inline-end: .45em; flex: none; }
.team-badge { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.team-row { display: grid; grid-template-columns: minmax(80px, 22%) 1fr auto auto; align-items: center; gap: 12px; font-weight: 600; }
.team-row .tn { display: flex; align-items: center; }
.team-row .tt { height: 18px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.team-row .tt i { display: block; height: 100%; border-radius: 9px; background: var(--c); transition: width .5s ease; }
.team-row small { color: var(--ink-soft); font-weight: 500; }
.team-win { grid-column: 1 / -1; text-align: center; font-weight: 700; font-size: clamp(22px, 3vw, 40px); }
@media (max-width: 480px) { .team-row { grid-template-columns: minmax(70px, 30%) 1fr auto; } .team-row small { display: none; } }
.ws-stats#cTeams { grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); margin-top: 8px; }
.survey-list { display: grid; gap: 12px; }
.survey-card { min-width: 0; overflow-wrap: anywhere; }

/* Host announcement strip (phone top, big-screen top) */
.announce { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 10px 14px; border-radius: var(--row-radius, 12px); background: var(--color-surface-accent-soft); color: var(--color-text-accent); font-weight: 600; overflow-wrap: anywhere; }
.announce .ico { flex: none; }
.bigscreen .announce { flex: none; margin: 0; font-size: clamp(16px, 1.8vw, 26px); }
html.embed .announce { padding: 4px 10px; font-size: 14px; }
/* Q&A label pill and host reply */
.qa-label { margin-inline-end: 6px; }
.qa-reply { margin-top: 6px; margin-inline-start: 12px; padding-inline-start: 10px; border-inline-start: 2px solid var(--line, currentColor); color: var(--ink-soft); font-weight: 400; font-size: .92em; overflow-wrap: anywhere; }
.qa-reply b { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips button[aria-pressed="true"] { background: var(--color-surface-accent-soft); color: var(--color-text-accent); }

/* Host card (big screen and phone views) */
.hostcard { display: block; width: 100%; max-width: 420px; margin: 0 auto; text-align: center; min-width: 0; background: var(--hc-bg, var(--surface)); color: var(--hc-ink, var(--ink)); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.hostcard .hc-photo { border-radius: 50%; object-fit: cover; flex: none; display: block; }
.hostcard .hc-initials { display: grid; place-items: center; font-weight: 700; background: linear-gradient(var(--color-surface-accent-soft), var(--color-surface-accent-soft)), var(--surface); color: var(--color-text-accent); }
.hostcard .hc-name { display: block; font-size: 26px; font-weight: 800; line-height: 1.12; overflow-wrap: anywhere; }
.hostcard .hc-headline { display: block; margin-top: 4px; color: var(--hc-ink-soft, var(--ink-soft)); overflow-wrap: anywhere; }
.hostcard .hc-qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hostcard .hc-qr img { width: 140px; height: 140px; background: #fff; padding: 6px; border-radius: 12px; border: 1px solid var(--line); box-sizing: content-box; }
.hostcard .hc-qr figcaption, .hostcard .hc-scan { font-size: 14px; font-weight: 600; color: var(--hc-ink-soft, var(--ink-soft)); }
.hostcard .hc-follow { display: inline-block; padding: 11px 18px; border-radius: 999px; background: var(--linkedin-blue); color: #fff; font-weight: 700; text-decoration: none; }
/* Profile: accent banner, photo overlapping its lower edge */
.hc-profile { text-align: left; }
.hc-profile .hc-banner { height: 110px; }
.hc-banner { background: linear-gradient(135deg, var(--hc-accent, var(--accent)), color-mix(in srgb, var(--hc-accent, var(--accent)) 55%, #000)); }
/* Built-in cover pictures (plan 102): pure CSS, no images. Ids mirror CARD_COVERS (server) and COVERS (pulse.js). */
.hc-cover-auto { background: linear-gradient(135deg, var(--hc-accent, var(--accent)), color-mix(in srgb, var(--hc-accent, var(--accent)) 55%, #000)); }
.hc-cover-dusk { background: radial-gradient(circle at 78% 70%, #ffd29a 0 7%, rgba(255,210,154,0) 22%), linear-gradient(180deg, #2b2a6b 0%, #7a3f8f 48%, #e0708a 78%, #f6a56b 100%); }
.hc-cover-ocean { background: radial-gradient(120% 60% at 20% 112%, #0b4f7a 0 45%, rgba(11,79,122,0) 46%), radial-gradient(110% 55% at 85% 118%, #0a6a95 0 48%, rgba(10,106,149,0) 49%), linear-gradient(180deg, #7fd0ee 0%, #2f8fc4 60%, #14608f 100%); }
.hc-cover-forest { background: radial-gradient(70% 90% at 12% 110%, #0e3b24 0 55%, rgba(14,59,36,0) 56%), radial-gradient(60% 80% at 60% 115%, #14532d 0 55%, rgba(20,83,45,0) 56%), radial-gradient(70% 90% at 95% 112%, #0b2f1d 0 55%, rgba(11,47,29,0) 56%), linear-gradient(180deg, #a7d8a0 0%, #3f8f5a 100%); }
.hc-cover-sunrise { background: radial-gradient(circle at 30% 100%, #fff3b0 0 12%, rgba(255,243,176,0) 34%), linear-gradient(180deg, #ff8a5c 0%, #ffb36b 45%, #ffe29a 100%); }
.hc-cover-aurora { background: radial-gradient(60% 80% at 25% 40%, rgba(80,255,190,.55), rgba(80,255,190,0) 70%), radial-gradient(55% 70% at 72% 30%, rgba(150,110,255,.55), rgba(150,110,255,0) 70%), linear-gradient(180deg, #0a1a33 0%, #0e2e4a 100%); }
.hc-cover-slate { background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, rgba(255,255,255,0) 14px 28px), linear-gradient(135deg, #3b4756, #1f2733); }
.hc-cover-rose { background: radial-gradient(circle at 15% 30%, rgba(255,255,255,.35) 0 10%, rgba(255,255,255,0) 11%), radial-gradient(circle at 80% 75%, rgba(255,255,255,.25) 0 14%, rgba(255,255,255,0) 15%), linear-gradient(135deg, #f58aa8, #c2406f); }
.hc-cover-citrus { background: radial-gradient(circle at 20% 120%, #ffe45c 0 28%, rgba(255,228,92,0) 29%), radial-gradient(circle at 90% -10%, #9bdc3f 0 30%, rgba(155,220,63,0) 31%), linear-gradient(135deg, #ffb02e, #ff7a1a); }
.hc-cover-midnight { background: radial-gradient(circle at 20% 30%, #fff 0 1px, rgba(255,255,255,0) 2px), radial-gradient(circle at 55% 20%, #fff 0 1px, rgba(255,255,255,0) 2px), radial-gradient(circle at 80% 45%, #fff 0 1.5px, rgba(255,255,255,0) 2.5px), radial-gradient(circle at 38% 65%, #fff 0 1px, rgba(255,255,255,0) 2px), linear-gradient(160deg, #0b1030, #1b1f5c); }
.hc-cover-mint { background: radial-gradient(90% 70% at 10% 0%, rgba(255,255,255,.5), rgba(255,255,255,0) 60%), linear-gradient(135deg, #7fe0c0, #2a9d8f); }
.hc-cover-dunes { background: radial-gradient(130% 70% at 25% 125%, #c98a4b 0 50%, rgba(201,138,75,0) 51%), radial-gradient(120% 60% at 90% 125%, #a8672f 0 52%, rgba(168,103,47,0) 53%), linear-gradient(180deg, #f9d9a0 0%, #f2b872 100%); }
/* Own banner (plan 116): an <img> cropped by the banner box; no URL ever goes into CSS. */
.hc-banner-custom { position: relative; overflow: hidden; }
.hc-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-profile .hc-body { padding: 0 22px 24px; display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.hc-profile .hc-body > .hc-qr { align-self: center; }
.hc-profile .hc-id { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; max-width: 100%; }
.hc-profile .hc-photo { width: 112px; height: 112px; margin-top: -56px; border: 4px solid var(--hc-bg, var(--surface)); box-sizing: border-box; font-size: 38px; margin-bottom: 8px; }
.hc-profile .hc-follow { margin-top: 12px; }
/* Speaker: photo panel on top (phone) or on the left (big screen) */
.hc-speaker .hc-pic { height: 200px; }
.hc-speaker .hc-photo { width: 100%; height: 100%; border-radius: 0; font-size: 72px; }
.hc-speaker .hc-info { padding: 20px 22px 24px; text-align: left; min-width: 0; }
.hc-speaker .hc-kicker { display: block; color: var(--hc-kicker, var(--hc-accent, var(--accent))); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.hc-speaker .hc-contact { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.hc-speaker .hc-qr img { width: 112px; height: 112px; }
.hc-speaker .hc-contact-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
/* Big screen: sizes follow the screen height so nothing scrolls on a projector */
.hostcard.hc-big { max-width: none; border-radius: 28px; }
.hc-big .hc-name { font-size: clamp(30px, 6.4vh, 46px); letter-spacing: -.02em; }
.hc-big .hc-name.hc-long { font-size: clamp(22px, 4.4vh, 32px); }
.hc-big .hc-headline { font-size: clamp(17px, 3.3vh, 24px); }
.hc-big .hc-qr img { width: min(26vh, 190px); height: min(26vh, 190px); }
.hc-big .hc-qr figcaption, .hc-big .hc-scan { font-size: clamp(15px, 2.2vh, 20px); }
.hc-big .hc-follow { font-size: clamp(15px, 2.8vh, 20px); padding: 1.6vh 3vh; }
.hc-profile.hc-big { width: min(860px, 82vw); }
.hc-profile.hc-big .hc-banner { height: min(24vh, 200px); }
.hc-profile.hc-big .hc-body { flex-direction: row; justify-content: space-between; align-items: flex-end; padding: 3vh 5vh 4vh; gap: 4vh; }
.hc-profile.hc-big .hc-body > .hc-qr { align-self: auto; }
.hc-profile.hc-big .hc-photo { width: min(24vh, 172px); height: min(24vh, 172px); margin-top: calc(min(24vh, 172px) / -2); font-size: min(9vh, 64px); }
.hc-profile.hc-big:not(:has(.hc-qr)) .hc-body { justify-content: center; }
.hc-profile.hc-big:not(:has(.hc-qr)) .hc-id { align-items: center; text-align: center; }
.hc-speaker.hc-big { width: min(1000px, 86vw); max-width: none; display: grid; grid-template-columns: 40% 1fr; min-height: min(480px, 62vh); }
.hc-speaker.hc-big .hc-pic { height: auto; }
.hc-speaker.hc-big .hc-photo { font-size: min(14vh, 120px); }
.hc-speaker.hc-big .hc-info { padding: 5vh 5vh 4.5vh; display: flex; flex-direction: column; min-width: 0; }
.hc-speaker.hc-big .hc-kicker { font-size: clamp(15px, 2.5vh, 18px); }
.hc-speaker.hc-big .hc-contact { margin-top: auto; padding-top: 3vh; gap: 2.5vh; }
.hc-speaker.hc-big .hc-qr img { width: min(18vh, 132px); height: min(18vh, 132px); }
.hc-speaker.hc-big .hc-contact-text { gap: 1vh; }
.cs-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.cs-opt { display: grid; gap: 6px; justify-items: center; padding: 8px; min-width: 96px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cs-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--color-surface-accent-soft); }
.cs-mini { position: relative; display: block; width: 72px; height: 46px; border-radius: 6px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.cs-mini i { position: absolute; display: block; }
.cs-profile .cs-b { inset: 0 0 auto 0; height: 16px; background: var(--accent); }
.cs-profile .cs-p { left: 50%; top: 8px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--ink-soft); border: 2px solid var(--bg); box-sizing: border-box; }
.cs-profile .cs-l { left: 18px; right: 18px; top: 32px; height: 4px; border-radius: 2px; background: var(--ink-soft); }
.cs-speaker .cs-p { inset: 0 auto 0 0; width: 28px; background: var(--ink-soft); }
.cs-speaker .cs-l { left: 36px; right: 8px; top: 12px; height: 4px; border-radius: 2px; background: var(--ink-soft); }
.cs-speaker .cs-l + .cs-l { top: 22px; right: 22px; background: var(--accent); }
.hc-edit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hc-edit .hc-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--color-surface-accent-soft); color: var(--color-text-accent); font-weight: 600; }
.who .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* Hype-meter flames: --heat (0 to 1) sets height, speed and brightness. Tokens only, no images. */
.flames { --heat: 0; display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: calc(40px + var(--heat) * 140px); width: 100%; pointer-events: none; transition: height .25s; }
.flame { display: block; flex: none; width: calc(14px + var(--heat) * 22px); height: calc(30% + var(--heat) * 70% - var(--i) * 4% * (1 - var(--heat))); border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%; transform-origin: 50% 100%;
  background: linear-gradient(to top, var(--hot), var(--warn)); opacity: calc(.35 + var(--heat) * .65); filter: saturate(calc(.8 + var(--heat) * .6)); animation: flicker calc(1.3s - var(--heat) * .8s) ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.23s); }
.flames.heat-1 .flame { box-shadow: 0 0 14px var(--warn); }
.flames.heat-2 .flame { box-shadow: 0 0 26px var(--warn), 0 0 10px var(--hot); }
.flames.heat-3 .flame { box-shadow: 0 0 44px var(--warn), 0 0 22px var(--hot); }
@keyframes flicker { from { transform: scaleY(.88) skewX(-4deg); } to { transform: scaleY(1.08) skewX(4deg); } }
@media (prefers-reduced-motion: reduce) { .flame { animation: none; transform: none; } }
.hc-cta { margin-top: 8px; align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; }

/* Talk timer (plan 055): host console, presenter bar and phone remote. Colour follows data-level, set by P.speakerTimer. */
.speaker-timer { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--ink); }
.speaker-timer .ico, .speaker-timer svg { align-self: center; }
.speaker-timer small { font-size: .6em; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); }
.speaker-timer[data-level="warn"] { color: var(--warn); }
.speaker-timer[data-level="bad"], .speaker-timer[data-level="over"] { color: var(--bad-ink); }

/* Pages with a title, cards and lists of people (team, admin) */
.page-head { padding: 4px 4px 12px; }
.page-head h1 { margin: 0; font: var(--type-heading-lg); letter-spacing: var(--type-heading-lg-tracking); overflow-wrap: anywhere; }
.card.page-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; min-width: 0; }
.list-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: var(--divider); min-width: 0; }
.list-row:first-of-type { border-top: 0; }
.list-row .who { flex: 1 1 200px; min-width: 0; }
.list-row .who b, .list-row .who span { display: block; overflow-wrap: anywhere; }
.list-row .who span { font-size: 13px; color: var(--ink-soft); }
.btn-peach { background: var(--color-surface-accent-soft); color: var(--color-text-accent); }

.cs-wrap { display: flex; flex-direction: column; gap: 10px; }
.cs-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 8px; }
.cs-cover { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 4px; padding: 4px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-align: center; }
.cs-cover[aria-pressed="true"] { border-color: var(--accent); background: var(--color-surface-accent-soft); }
.cs-cover .cs-thumb { display: block; width: 100%; aspect-ratio: 16 / 5; border-radius: 4px; background-size: cover; }
.cs-cover .cs-thumb-custom { overflow: hidden; background: var(--line); }
.cs-cover .cs-thumb-custom img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-sub { font-weight: 600; font-size: 14px; margin: 4px 0 0; }
.cs-colours { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cs-colour { display: inline-flex; align-items: center; gap: 6px; }
.cs-colour input[type=color] { width: 40px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
