/* House style tokens. Per-session theming (later) overrides these and nothing else. */
:root {
  --bg: #121417;
  --surface: #1c1f24;
  --surface-2: #262a31;
  --line: #343943;
  --text: #ececec;
  --text-quiet: #a3a9b4;
  --accent: #5b8def;
  --accent-ink: #0d1320;
  --good: #49b37c;
  --warn: #d9a441;
  --bad: #d4645c;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --accent-line: var(--accent);
  --radius-sm: 8px;
  /* Stage (presentation mode and outputs). A session theme overrides these. */
  --s-bg: #101216; --s-text: #eeeeee; --s-quiet: #a9b0bb; --s-quiet-2: #c9ced6; --s-track: #23272e;
  --s-plate: #1a1d22; --s-accent: #6b93e6; --s-panel: #101216; --s-font: var(--font);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.4; }
button, input, select, textarea { font: inherit; color: inherit; }
button {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 14px; cursor: pointer;
}
/* Hover only where there is a real pointer: on a phone a tapped button stays
   "hovered", which would paint over the selection. */
@media (hover: hover) { button:hover:not(:disabled) { border-color: var(--text-quiet); } }
button:disabled { opacity: 0.45; cursor: default; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button.danger { color: var(--bad); }
input[type=text], input[type=search], textarea, select {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%;
}
a { color: var(--accent); }
.quiet { color: var(--text-quiet); }
.mono { font-family: var(--mono); font-size: 0.9em; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); margin-right: 6px; }
.dot.on { background: var(--good); }

/* ---- participant ------------------------------------------------------- */
/* Fixed height, internal scroll: works in any iframe with no host script. */
.participant { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.participant header { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.participant header .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.participant main { flex: 1; overflow-y: auto; padding: 20px 16px 32px; max-width: 640px; width: 100%; margin: 0 auto; }
.prompt { font-size: 1.35rem; font-weight: 650; margin: 0 0 16px; }
.choices { display: grid; gap: 10px; margin-bottom: 16px; }
.choice {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--line);
}
button.choice.selected { border-color: var(--accent-line); background: var(--surface-2); }
.choice .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--text-quiet); flex: none; }
.choice.multi .tick { border-radius: 6px; }
.choice.selected .tick { background: var(--accent); border-color: var(--accent); }
.submit { width: 100%; padding: 14px; font-size: 1.05rem; }
.message { text-align: center; padding: 48px 12px; }
.message h2 { margin: 0 0 8px; font-size: 1.4rem; }
.notice { margin-top: 12px; text-align: center; }

/* ---- display (dev view; broadcast styling arrives in step 5) ------------- */
.display { min-height: 100vh; padding: 5vh 6vw; }
.display h1 { font-size: 4vh; margin: 0 0 4vh; }
.bar-row { margin: 2.2vh 0; }
.bar-label { display: flex; justify-content: space-between; font-size: 2.6vh; font-weight: 600; margin-bottom: 0.8vh; }
.bar { height: 3.4vh; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); transition: width 400ms cubic-bezier(.2,.7,.2,1); }

/* ---- admin ------------------------------------------------------------- */
.admin { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.admin aside { border-right: 1px solid var(--line); padding: 16px; background: var(--surface); }
.admin aside h1 { font-size: 1rem; margin: 0 0 12px; }
.admin aside .row { display: flex; gap: 8px; margin-bottom: 16px; }
.admin aside ul { list-style: none; padding: 0; margin: 0; }
.admin aside li button { width: 100%; text-align: left; margin-bottom: 6px; background: transparent; }
.admin aside li button.current { border-color: var(--accent); }
.admin main { padding: 20px 28px 60px; max-width: 1100px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.panel h2 { font-size: 0.95rem; margin: 0 0 12px; color: var(--text-quiet); text-transform: uppercase; letter-spacing: 0.06em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.links .link { display: grid; grid-template-columns: 110px 1fr auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.links .link input { font-family: var(--mono); font-size: 0.85em; }
.qr { display: flex; gap: 16px; align-items: center; }
.qr img { width: 150px; height: 150px; background: #fff; border-radius: 8px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.acts { list-style: none; margin: 0; padding: 0; }
.act { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.act.showing { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.act .head { display: flex; gap: 10px; align-items: baseline; }
.act .type { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-quiet); }
.act .title { font-weight: 600; flex: 1; }
.act .tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.act .mini { margin-top: 8px; }
.act .mini .bar { height: 10px; }
.act .mini .bar-label { font-size: 0.85rem; font-weight: 400; margin: 4px 0 2px; }
.badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.badge.open { color: var(--good); border-color: var(--good); }
.field { margin-bottom: 10px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-quiet); margin-bottom: 4px; }
.checks label { display: block; margin: 4px 0; }
.status { font-size: 0.85rem; }
.error { color: var(--bad); }

/* ---- join -------------------------------------------------------------- */
.join { max-width: 360px; margin: 18vh auto 0; padding: 0 16px; text-align: center; }
.join input { font-size: 1.6rem; text-align: center; letter-spacing: 0.2em; font-family: var(--mono); margin: 16px 0; }

/* ---- participant: tabs and Q&A ---------------------------------------- */
/* Questions over whatever is live: a button at the bottom, a sheet on top. */
.participant { position: relative; }
.participant main.has-fab { padding-bottom: 96px; }
.qa-open { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  padding: 13px 22px; font-size: 1rem; font-weight: 650; border-radius: 999px; box-shadow: 0 6px 22px rgba(0,0,0,.35); white-space: nowrap; z-index: 2; }
.qa-open[hidden] { display: none; }
.sheet { position: absolute; inset: 0; z-index: 3; background: var(--bg); display: flex; flex-direction: column;
  transform: translateY(100%); visibility: hidden; transition: transform 260ms cubic-bezier(.2,.7,.2,1), visibility 0s linear 260ms; }
.sheet.open { transform: none; visibility: visible; transition: transform 260ms cubic-bezier(.2,.7,.2,1); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 1.1rem; }
.sheet-body { flex: 1; overflow-y: auto; padding: 16px 16px 32px; overflow-anchor: none; }
.sheet-body > .qa { max-width: 640px; margin: 0 auto; }
.sheet-alert { padding: 10px 16px 0; }
.sheet-alert button { width: 100%; text-align: left; padding: 12px 14px; border-color: var(--accent-line); background: var(--surface-2); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.sheet-alert .go { margin-left: auto; color: var(--accent-line); font-weight: 700; }
.qa-status { margin: 0 0 14px; }
.hold-logo.small { max-height: 56px; margin: 0 auto 16px; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet.open { transition: none; } }
.participant main { overflow-anchor: none; }   /* our own anchor; the browser's would fight it */
.small { font-size: 0.875rem; margin: 6px 0 0; }
.good { color: var(--good); }
.ask textarea { resize: vertical; min-height: 84px; }
.ask-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.ask-row .primary { min-width: 96px; }
.qa section { margin-top: 24px; }
.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.list-head h3 { margin: 0; font-size: 1rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; padding: 6px 12px; background: transparent; color: var(--text-quiet); }
.seg button.on { background: var(--surface-2); color: var(--text); font-weight: 600; }
.qlist { list-style: none; margin: 0; padding: 0; }
.q { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); background: var(--bg); position: relative; }
.q-body { flex: 1; min-width: 0; }
.q-text { margin: 0; overflow-wrap: anywhere; }
.q-meta { margin: 4px 0 0; font-size: 0.85rem; }
.q-meta:empty { display: none; }
.up { flex: none; min-width: 64px; padding: 8px 10px; border-radius: 999px; font-weight: 600; font-variant-numeric: tabular-nums; }
.up.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.up.static { border: 1px solid var(--line); text-align: center; color: var(--text-quiet); }
.empty { padding: 16px 0; }
[hidden] { display: none !important; }

/* ---- moderator ---------------------------------------------------------- */
.mod { min-height: 100vh; display: flex; flex-direction: column; }
.mod-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 2; }
.mod-title { font-weight: 700; }
.waiting { text-align: center; font-size: 1.05rem; }
.waiting .big { font-size: 1.8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.waiting.busy .big { color: var(--warn); }
.mod-tools { display: flex; gap: 12px; justify-content: flex-end; align-items: center; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 20px; background: var(--surface-2); font-size: 0.85rem; }
.mod-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 16px 20px 80px; flex: 1; }
.col h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-quiet); margin: 0 0 10px; }
.mlist { list-style: none; margin: 0; padding: 0; }
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; cursor: default; }
.mcard.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.mcard.draggable { cursor: grab; }
.mcard.ghost { opacity: 0.4; }
.mcard.over { border-top: 3px solid var(--accent); }
.mtext { margin: 0 0 6px; font-size: 1.02rem; overflow-wrap: anywhere; }
.mmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 0.85rem; }
.mtools { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.mtools button { padding: 6px 12px; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font-size: 0.85rem; }
.badge.warn { color: var(--warn); border-color: var(--warn); }
.collapsed { margin-top: 18px; }
.collapsed summary { cursor: pointer; color: var(--text-quiet); margin-bottom: 8px; }
.collapsed .mcard { opacity: 0.8; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
@media (max-width: 820px) { .mod-cols { grid-template-columns: 1fr; } .mod-head { grid-template-columns: 1fr auto; } .mod-tools { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---- chair comfort screen ------------------------------------------------ */
.comfort-body { background: #0b0c0e; }
.comfort { min-height: 100vh; padding: 3vh 4vw; }
.comfort header { display: flex; justify-content: space-between; font-size: 2.2vh; margin-bottom: 2.5vh; color: var(--text-quiet); }
.comfort-list { list-style: none; margin: 0; padding: 0; }
.comfort-list li { display: flex; gap: 2.4vw; align-items: baseline; padding: 1.6vh 0; border-bottom: 1px solid #23262c; }
.c-body { flex: 1; min-width: 0; }
.c-text { margin: 0; font-size: 3.6vh; line-height: 1.25; font-weight: 600; color: #eeeeee; overflow-wrap: anywhere; }
.c-meta { margin: 0.8vh 0 0; font-size: 2.3vh; color: var(--text-quiet); display: flex; gap: 2vw; }
.c-up { font-variant-numeric: tabular-nums; color: #cfd5df; font-weight: 700; }
.comfort-empty { font-size: 3vh; }

/* ---- approved questions for air -------------------------------------------- */
.questions-body { margin: 0; overflow: hidden; width: 100vw; height: 100vh; }
.questions-body.bg-black { background: #000; }
.questions-body.bg-alpha { background: transparent; }
.questions-body.bg-green { background: #00b140; }
.stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: 50% 50%;  font-family: var(--s-font); }
/* Title-safe: text inside the central 80%. */
.safe { position: absolute; inset: 108px 192px; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; }
.plate { background: var(--s-plate); border-left: 12px solid var(--s-accent); border-radius: 6px; padding: 32px 44px; }
.plate-text { margin: 0; color: var(--s-text); font-weight: 800; letter-spacing: 0.01em; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.qs-l .plate-text { font-size: 60px; }
.qs-m .plate-text { font-size: 50px; }
.qs-s .plate-text { font-size: 42px; }
.plate-name { margin: 16px 0 0; color: var(--s-quiet-2); font-weight: 700; font-size: 34px; letter-spacing: 0.02em; }

.debug { padding: 6px 12px; font: 12px/1.4 var(--mono); color: var(--text-quiet); border-top: 1px solid var(--line); background: var(--surface); }

/* ---- stage: presentation mode and results display ------------------------ */
.present-body, .display-body { margin: 0; overflow: hidden; width: 100vw; height: 100vh; background: #000; }
.display-body.bg-alpha { background: transparent; }
.display-body.bg-green { background: #00b140; }
.slide, .soverlay, .sblank { position: absolute; inset: 0; }
.slide { background: var(--s-bg); }
.display-body .slide { background: transparent; }
/* Title-safe: text inside the central 80% (192px / 108px margins on 1920×1080). */
.spoll, .sqa, .shold { position: absolute; inset: 108px 192px; display: flex; flex-direction: column; }
.sprompt { margin: 0 0 40px; color: var(--s-text); font-weight: 800; line-height: 1.15; letter-spacing: 0.005em; }
.sp-l { font-size: 76px; } .sp-m { font-size: 62px; } .sp-s { font-size: 50px; }
.sarea { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.srows { display: flex; flex-direction: column; justify-content: center; }
.srow { display: grid; grid-template-columns: 520px 1fr 240px; align-items: center; gap: 32px; }
.slabel { color: var(--s-text); font-size: 40px; font-weight: 700; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.strack { height: 56%; max-height: 64px; background: var(--s-track); border-radius: 6px; overflow: hidden; }
.sfill { display: block; height: 100%; width: 0; background: var(--s-accent); transition: width 450ms cubic-bezier(.2,.7,.2,1); }
.svalue { color: var(--s-text); font-size: 46px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.srows.ranked .srow { grid-template-columns: 520px 1fr; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.sfoot, .squiet { color: var(--s-quiet); font-size: 32px; font-weight: 600; }
.sfoot { margin-top: 24px; }
/* Inside title-safe, on the same line as the response count. */
.sjoin { position: absolute; bottom: 108px; right: 192px; color: var(--s-quiet-2); font-size: 32px; font-weight: 600; line-height: 1.2; }
.sjoin b { color: var(--s-text); }
.scode-sm { font-family: var(--mono); letter-spacing: 0.12em; }
.shold { justify-content: center; }
.stitle { color: var(--s-text); font-size: 56px; font-weight: 800; margin: 0 0 48px; }
.sjoinbig { display: flex; align-items: center; justify-content: space-between; gap: 80px; }
.sjoinbig p { margin: 0; }
.shost { color: var(--s-text); font-size: 84px; font-weight: 800; margin: 8px 0 28px !important; }
.scode { color: var(--s-text); font-family: var(--mono); font-size: 150px; font-weight: 800; letter-spacing: 0.14em; line-height: 1; margin-top: 12px !important; }
.sqr { width: 420px; height: 420px; background: #fff; border-radius: 16px; padding: 12px; }
.ssmall { margin-top: 56px; font-size: 30px; }
.sbig { color: var(--s-text); font-size: 120px; font-weight: 800; margin: 0 0 24px; }
.sqa .splate { background: var(--s-plate); border-left: 12px solid var(--s-accent); border-radius: 6px; padding: 26px 40px; margin-bottom: 22px; }
.splate .plate-name:empty { display: none; }
.soverlay { background: rgba(10, 11, 14, 0.94); }
.soverlay[hidden], .sblank[hidden] { display: none; }
.sblank { background: #000; }
.snote { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #23272e; color: #eeeeee; padding: 12px 18px; border-radius: 10px; font: 600 16px/1.3 var(--font); z-index: 5; }
.shelp { position: fixed; right: 24px; top: 24px; background: #23272e; color: #eeeeee; padding: 14px 18px; border-radius: 10px; font: 15px/1.5 var(--font); z-index: 5; }
.shelp p { margin: 2px 0; }
.present-body.offline .slide::after { content: 'Reconnecting…'; position: absolute; right: 24px; bottom: 18px; color: #a9b0bb; font: 600 22px var(--font); }

/* ---- phone remote ---------------------------------------------------------- */
.remote { max-width: 560px; margin: 0 auto; padding: 0 0 40px; }
.remote header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.remote header .name { font-weight: 700; }
.remote section, .remote .rnav, .remote h3, .remote .rlist, .remote > p, .remote .rconfirm { margin-left: 16px; margin-right: 16px; }
.rnow { padding: 16px 0 4px; }
.rnow p { margin: 4px 0; }
.rtitle { font-size: 1.25rem; font-weight: 700; }
.rnav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.rnav button { padding: 14px; font-size: 1rem; }
.rbig { padding: 26px 14px !important; font-size: 1.2rem !important; font-weight: 700; }
.rconfirm { background: var(--surface-2); border: 1px solid var(--warn); border-radius: 10px; padding: 12px; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rconfirm p { width: 100%; margin: 0 0 4px; }
.remote h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-quiet); margin-top: 24px; }
.rlist { list-style: none; padding: 0; }
.rlist button { width: 100%; text-align: left; margin-bottom: 6px; padding: 12px; background: var(--surface); }
.rlist button.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

/* ---- admin: authoring and lock --------------------------------------------- */
.flash { border-color: var(--accent); }
.lockbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 0.9rem; }
.lockbar.open { border-color: var(--warn); color: var(--warn); }
.act .form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.remote-pop { position: relative; }
.remote-pop summary { cursor: pointer; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); list-style: none; }
.remote-pop[open] > .qr { position: absolute; z-index: 3; top: 44px; left: 0; width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }

/* ---- step 5: columns, donut, keying backgrounds ----------------------------- */
.scols { display: flex; gap: 28px; align-items: stretch; height: 620px; }
.scol { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.scol .svalue { text-align: center; min-height: 56px; }
.scoltrack { flex: 1; width: 100%; max-width: 200px; background: var(--s-track); border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.scolfill { display: block; width: 100%; height: 0; background: var(--s-accent); transition: height 450ms cubic-bezier(.2,.7,.2,1); }
.scollabel { text-align: center; font-size: 34px; min-height: 80px; }
.sdonutwrap { display: flex; align-items: center; gap: 80px; height: 600px; }
.sdonut { width: 540px; height: 540px; flex: none; transform: rotate(-90deg); }
.sdtrack { fill: none; stroke: var(--s-track); stroke-width: 36; }
.sdseg { fill: none; stroke-width: 36; transition: stroke-dasharray 450ms cubic-bezier(.2,.7,.2,1), stroke-dashoffset 450ms cubic-bezier(.2,.7,.2,1); }
.slegend { flex: 1; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.slegrow { display: grid; grid-template-columns: 36px 1fr 220px; gap: 22px; align-items: center; }
.sswatch { width: 36px; height: 36px; border-radius: 6px; }
.slegrow .slabel { font-size: 36px; }
.slegrow .svalue { font-size: 40px; }

/* Luma key: brightness is transparency, so everything that is not the graphic
   must be pure black. Tracks go black; only bars, text and segments are bright. */
.display-body.bg-luma { --s-bg: #000; --s-track: #000; --s-text: #eeeeee; --s-quiet: #a9b0bb; --s-quiet-2: #c9ced6; }
.display-body.bg-luma .slide { background: #000; }
.display-body.bg-luma .strack, .display-body.bg-luma .scoltrack { background: #000; }
.display-body.bg-luma .sdtrack { stroke: #000; }
/* Alpha: transparent frame, the graphic on an opaque panel inside action-safe,
   so it reads over any picture. */
.display-body.bg-alpha .spoll { background: var(--s-panel); border-radius: 16px; padding: 56px 64px; inset: 54px 96px; }
/* Chroma: green frame; nothing on the panel is green, tracks included, so
   nothing on it can key out. */
.display-body.bg-green .slide { background: #00b140; }
.display-body.bg-green .spoll { background: var(--s-panel); border-radius: 16px; padding: 56px 64px; inset: 54px 96px; }

/* ---- participant: ranked and scale ------------------------------------------ */
.choice.rank .tick { border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--accent-ink); }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 8px; }
.scale.ten { grid-template-columns: repeat(5, 1fr); }
.point { padding: 16px 0; font-size: 1.2rem; font-weight: 700; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--line); }
.point.selected { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.scale-ends { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 16px; }
.ask input[type=text] { font-size: 1.1rem; padding: 12px; }

/* ---- step 6: scale, wordcloud, open-text wall ------------------------------------ */
.savg { margin: 0 0 26px; color: var(--s-text); font-size: 44px; font-weight: 700; }
.savgnum { font-size: 72px; font-weight: 800; font-variant-numeric: tabular-nums; }
.savgof { color: var(--s-quiet); font-size: 36px; }
.sscale { height: 520px; }
.send { display: block; color: var(--s-quiet); font-size: 26px; font-weight: 600; margin-top: 6px; }
.scloud { position: relative; width: 1536px; flex: 1; min-height: 0; margin: 10px 0 20px; }
.sword { position: absolute; left: 0; top: 0; font-size: 100px; font-weight: 800; line-height: 1.15; white-space: nowrap;
  transform-origin: 0 0; transition: transform 450ms cubic-bezier(.2,.7,.2,1); }
.swall { position: relative; width: 1536px; flex: 1; min-height: 0; margin-bottom: 20px; }
.swallp { position: absolute; left: 0; top: 0; width: 496px; box-sizing: border-box; margin: 0 !important;
  padding: 22px 28px !important; transform-origin: 50% 50%; transition: transform 450ms cubic-bezier(.2,.7,.2,1); overflow: hidden; }
.swallp .plate-text { font-size: 30px !important; font-weight: 700; -webkit-line-clamp: 4; }
.swallp { background: var(--s-plate); border-left: 12px solid var(--s-accent); border-radius: 6px; }
.display-body.bg-luma .swallp { background: #000; }

/* ---- moderator: responses ------------------------------------------------------- */
.responses { margin: 16px 20px 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.responses h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-quiet); margin: 0 0 4px; }
.rlist2 { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-height: 360px; overflow: auto; }
.rword, .rentry { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px 6px 12px; }
.rentry { width: 100%; }
.rentry .rtext { flex: 1; }
.rword.hidden .rtext, .rentry.hidden .rtext { text-decoration: line-through; color: var(--text-quiet); }
.rword.filtered, .rentry.filtered { border-color: var(--warn); }
.rword button, .rentry button { padding: 4px 10px; }

/* admin: data panel */
a.button { display: inline-block; text-decoration: none; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
a.button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.erase-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 420px; overflow: auto; }
.erase-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow-wrap: anywhere; }

/* load test */
.lt { max-width: 1400px; margin: 0 auto; padding: 16px 20px 60px; }
.lt-head h1 { margin: 0 0 4px; font-size: 1.5rem; }
.lt-head p { margin: 0 0 14px; }
.lt-grid { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(420px, 1.3fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .lt-grid { grid-template-columns: 1fr; } }
.lt-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 10px 0 12px; }
.lt-num { display: grid; grid-template-columns: 1fr 76px 66px; gap: 8px; align-items: center; }
.lt-num > span:last-child { white-space: nowrap; font-size: 0.875rem; }
.lt-num input { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; width: 100%; }
.lt-acts { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.lt-acts li { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.lt-acts li.on { border-color: var(--accent); background: var(--surface-2); }
.lt-verdict { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.lt-verdict li { padding: 8px 12px; border-radius: 8px; border-left: 4px solid var(--line); background: var(--surface); }
.lt-verdict .lt-good { border-left-color: var(--good); }
.lt-verdict .lt-warn { border-left-color: var(--warn); }
.lt-verdict .lt-bad { border-left-color: var(--bad); }
.lt-verdict .lt-idle { color: var(--text-quiet); }
.lt-counts { display: flex; flex-wrap: wrap; gap: 18px; margin: 4px 0 10px; }
.lt-counts b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.lt-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lt-table th, .lt-table td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.lt-table th:first-child { text-align: left; font-weight: 600; }
.lt-table thead th { color: var(--text-quiet); font-weight: 600; font-size: 0.875rem; }
.lt-table td.bad { color: var(--bad); text-align: right; max-width: 220px; }
.lt-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.lt-metric { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.lt-big { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lt-spark { display: block; width: 100%; height: 40px; margin-top: 6px; }

/* ---- theming ---------------------------------------------------------------- */
.participant header .brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.participant header .logo { max-height: 28px; max-width: 120px; object-fit: contain; flex: none; }
.hold-logo { display: block; max-width: 60%; max-height: 96px; object-fit: contain; margin: 24px auto 0; }
.slogo { max-height: 120px; max-width: 520px; object-fit: contain; align-self: flex-start; margin-bottom: 40px; }
.display-body.bg-brand { background: var(--s-bg); }
button { border-radius: var(--radius-sm); }
.look { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .look { grid-template-columns: 1fr; } }
.look h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-quiet); margin: 18px 0 8px; }
.look select { width: auto; }
.field.colour .row { display: flex; gap: 8px; align-items: center; }
.field.colour input[type=color] { width: 44px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); flex: none; }
.field.colour input[type=text] { width: 120px; font-family: var(--mono); }
.logo-box { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 8px; border: 1px dashed var(--line); border-radius: 8px; }
.logo-box img { max-height: 48px; max-width: 200px; object-fit: contain; padding: 6px; border-radius: 6px; }
.logo-box.on-light img { background: #f5f6f8; }
.logo-box.on-dark img { background: #101216; }
.warnings { margin: 12px 0 0; padding: 10px 14px 10px 30px; border: 1px solid var(--warn); border-radius: 8px; color: var(--warn); }
.warnings li { margin: 4px 0; }
.phone-preview { width: 340px; height: 640px; border: 8px solid #2a2e35; border-radius: 28px; background: #000; display: block; }

/* ---- join QR on demand (J in presentation mode) ------------------------------ */
/* The slide's content scales to 70% into the left of title-safe and the card
   takes the freed right column. Transform only: nothing reflows, results keep
   updating, and nothing is faded (a fade would break a luma key). */
.slide > .spoll, .slide > .sqa { transform-origin: 0 0; transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.slide.joinqr-on > .spoll, .slide.joinqr-on > .sqa { transform: translateY(15%) scale(0.7); }
.slide.joinqr-on .sjoin { display: none; }   /* the card says it all */
.sjoincard { position: absolute; right: 192px; top: 50%; width: 400px; box-sizing: border-box; padding: 26px 20px 22px;
  background: var(--s-plate); border-radius: 18px; text-align: center; font-family: var(--s-font);
  transform: translate(calc(100% + 260px), -50%); transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.sjoincard.on { transform: translate(0, -50%); }
.sjoincard p { margin: 0; }
.sjc-label { color: var(--s-text); font-size: 34px; font-weight: 800; margin-bottom: 18px !important; }
.sjc-qr { display: block; width: 360px; height: 360px; box-sizing: border-box; padding: 16px; margin: 0 auto; background: #fff; border-radius: 12px; }
.sjc-host { color: var(--s-quiet); font-size: 26px; font-weight: 600; margin-top: 18px !important; overflow-wrap: anywhere; line-height: 1.25; }
.sjc-code { color: var(--s-text); font-family: var(--mono); font-size: 64px; font-weight: 800; letter-spacing: 0.14em; line-height: 1.1; margin-top: 6px !important; }
/* Keyed outputs sit inside action-safe; keep the card clear of their wider panel. */
.display-body.bg-alpha .sjoincard, .display-body.bg-green .sjoincard { right: 96px; }
button.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.backups { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 12px; }
.backups h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-quiet); margin: 0 0 6px; }
.backups p { margin: 4px 0; padding-left: 14px; position: relative; overflow-wrap: anywhere; }
.backups p::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 8px; height: 8px; border-radius: 50%; }
.backups .b-good::before { background: var(--good); }
.backups .b-warn::before { background: var(--warn); }
.backups .b-bad { color: var(--bad); }
.backups .b-bad::before { background: var(--bad); }

/* ---- gathering: voters as dots crowding round their answer ------------------ */
.sgather { position: relative; width: 1536px; flex: 1; min-height: 0; }
.sglabel { position: absolute; left: 0; top: 0; height: 124px; box-sizing: border-box; padding: 0 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; text-align: center; }
.sglabel .slabel { font-size: 34px; line-height: 1.15; }
.sglabel .svalue { font-size: 34px; text-align: center; }
.sgswatch { display: inline-block; width: 22px; height: 22px; border-radius: 50%; margin-right: 12px; vertical-align: 2px; }
.sgdot { position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; transform-origin: 50% 50%;
  transition: transform 1100ms cubic-bezier(.2,.7,.2,1); will-change: transform; }

/* ---- answer pictures on screen ---------------------------------------------- */
.sthumb { display: block; object-fit: contain; background: var(--s-plate); border: 4px solid; border-radius: 10px; box-sizing: border-box; flex: none; }
.slabelwrap { display: flex; align-items: center; gap: 20px; min-width: 0; height: 100%; }
.sbarthumb { height: calc(100% - 8px); max-height: 120px; aspect-ratio: 4 / 3; }
.scolthumb { width: min(100%, 220px); aspect-ratio: 4 / 3; }
.slegthumb { width: 72px; height: 54px; border-width: 3px; }
.slegrow:has(.slegthumb) { grid-template-columns: 72px 1fr 220px; }
.sgthumb { width: 200px; height: 150px; margin-bottom: 6px; }
.sgthumb.small { width: 120px; height: 90px; }

/* ---- answer pictures on the phone ------------------------------------------- */
.choices.pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices.pics .choice { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 8px 10px; padding: 8px 8px 12px; text-align: left; }
.choices.pics .pic { grid-column: 1 / -1; display: block; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - 4px); overflow: hidden; background: var(--surface-2); }
.choices.pics .pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.choices.pics .choice-label { font-size: 0.95rem; line-height: 1.25; overflow-wrap: anywhere; }
.choices.pics .tick { margin: 0; }
@media (min-width: 640px) { .choices.pics { grid-template-columns: repeat(3, 1fr); } }
.pictures .pic-row { display: grid; grid-template-columns: 96px minmax(120px, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.pictures .pic-row img, .pictures .pic-empty { width: 96px; height: 72px; object-fit: contain; border-radius: 6px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--text-quiet); }
.pictures .pic-name { overflow-wrap: anywhere; }

/* ---- quiz question ---------------------------------------------------------------- */
.squiz .sprompt { margin-bottom: 28px; }
.sqclock { display: flex; align-items: center; gap: 28px; height: 64px; margin: 0 0 30px; }   /* fixed: the tiles never move when the seconds go */
.sqclocktrack { flex: 1; height: 18px; background: var(--s-track); border-radius: 9px; overflow: hidden; }
.sqclockfill { display: block; height: 100%; width: 100%; background: var(--s-accent); transform-origin: 0 50%; transform: scaleX(0); }
.squiz.low .sqclockfill { background: #e0a458; }
.sqsecs { width: 110px; text-align: right; color: var(--s-text); font-size: 64px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.squiz .sarea { justify-content: center; }
.sqgrid { display: grid; gap: 24px; flex: 1; max-height: 620px; grid-auto-rows: minmax(0, 1fr); }
.sqgrid.r1 { max-height: 300px; }
.sqgrid.pics.r1 { max-height: 420px; }
.sqgrid.c2 { grid-template-columns: 1fr 1fr; }
.sqgrid.c3 { grid-template-columns: 1fr 1fr 1fr; }
.sqtile { background: var(--s-plate); border-left: 12px solid var(--s-accent); border-radius: 8px; padding: 22px 30px 22px 26px; display: flex; flex-direction: column;
  justify-content: space-between; min-height: 0; overflow: hidden; transition: transform 450ms cubic-bezier(.2,.7,.2,1); }
.sqtile.right { transform: scale(1.025); }
.sqtile.wrong .sqlabel, .sqtile.wrong .sqvalue { color: var(--s-quiet); }
.sqtop { display: flex; align-items: center; gap: 24px; min-height: 0; flex: 1; }
.sqbadge { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #101216; font-size: 40px; font-weight: 800; line-height: 1; }
.sqlabel { flex: 1; font-size: 44px; }
.sqgrid.c3 .sqlabel { font-size: 38px; }
.sqvalue { flex: none; font-size: 44px; }
.sqthumb { height: 100%; max-height: 190px; width: auto; aspect-ratio: 4 / 3; }
.sqgrid.r1 .sqthumb { max-height: 300px; }
.sqbar { display: block; flex: none; height: 16px; background: var(--s-track); border-radius: 8px; overflow: hidden; margin-top: 18px; }
.sqbarfill { display: block; height: 100%; width: 0; transition: width 450ms cubic-bezier(.2,.7,.2,1); }

/* ---- leaderboard -------------------------------------------------------------------- */
.sboardwrap .sarea { justify-content: flex-start; }
.sboard { display: flex; flex-direction: column; gap: 8px; }
.sbrow { display: grid; grid-template-columns: 100px 600px 1fr 230px; align-items: center; gap: 28px; background: var(--s-plate); border-radius: 8px; padding: 0 30px;
  transition: transform 650ms cubic-bezier(.2,.7,.2,1); }
.sbrank { color: var(--s-quiet-2); font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sbrow.first .sbrank { color: var(--s-accent); }
.sbname { color: var(--s-text); font-size: 44px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbtrack { height: 22px; background: var(--s-track); border-radius: 11px; overflow: hidden; }
.sbfill { display: block; height: 100%; width: 0; background: var(--s-accent); transition: width 700ms cubic-bezier(.2,.7,.2,1); }
.sbpts { text-align: right; color: var(--s-text); font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sboard.dense .sbrank, .sboard.dense .sbname, .sboard.dense .sbpts { font-size: 34px; }
.sboardempty { font-size: 44px; }

/* ---- quiz on the phone ------------------------------------------------------------- */
.qz-clock { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin: -4px 0 16px; }
.qz-clockfill { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; }
.qz-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qz-tiles.many { grid-template-columns: 1fr 1fr; }
.qz-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 112px; padding: 12px 14px;
  border: 3px solid transparent; border-radius: var(--radius); color: #101216; text-align: left; font-weight: 750; font-size: 1.05rem; line-height: 1.25; }
.qz-tile:active { transform: scale(0.98); }
.qz-tile.selected { border-color: var(--text); }
.qz-tile:disabled { cursor: default; }
.qz-tile .pic { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - 6px); overflow: hidden; background: rgba(0,0,0,0.12); }
.qz-tile .pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qz-letter { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(16,18,22,0.85); color: #eeeeee; font-size: 0.95rem; font-weight: 800; flex: none; }
.qz-label { overflow-wrap: anywhere; }
.qz-picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 10px auto; max-width: 420px; border: 3px solid; border-radius: var(--radius);
  background: var(--surface-2); font-weight: 700; text-align: left; }
.qz-picked .qz-letter { color: #101216; }
.qz-locked, .qz-result { text-align: center; padding: 36px 8px 12px; }
.qz-locked h2, .qz-result h2 { margin: 0 0 8px; font-size: 1.6rem; }
.qz-result.right h2 { color: var(--good, #7fc29b); }
.qz-points { font-size: 2.6rem; font-weight: 800; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.qz-standing { text-align: center; font-size: 1.15rem; margin: 18px 0 8px; }
.qz-me { text-align: center; padding: 20px 8px 8px; }
.qz-me p { margin: 2px 0; }
.qz-rank { font-size: 3rem; font-weight: 800; line-height: 1.1; }
.qz-board { list-style: none; padding: 0; margin: 8px 0 0; }
.qz-board li { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); margin-bottom: 6px; }
.qz-board li.me { outline: 2px solid var(--accent); }
.qz-brank { font-weight: 800; color: var(--text-quiet); font-variant-numeric: tabular-nums; }
.qz-bname { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-bpts { font-weight: 800; font-variant-numeric: tabular-nums; }
.center { text-align: center; }

/* ---- feedback forms on the phone ----------------------------------------------------- */
.fb-bar { padding: 8px 16px 0; }
.fb-bar button { width: 100%; text-align: left; padding: 12px 14px; border-color: var(--accent-line); background: var(--surface-2);
  display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.fb-bar .go { margin-left: auto; color: var(--accent-line); font-weight: 700; }
.fb-back { margin: 0 0 12px; }
.fb-back button { padding: 6px 10px; }
.fb-intro { margin-top: -8px; }
.fb-q { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.fb-q legend { font-weight: 650; margin-bottom: 8px; padding: 0; }
.fb-q textarea { width: 100%; box-sizing: border-box; }
.fb-stars { display: flex; gap: 6px; }
.fb-star { flex: 1; font-size: 1.9rem; line-height: 1; padding: 8px 0; color: var(--text-quiet); background: var(--surface); }
.fb-star.on { color: #e0a458; border-color: #e0a458; }
.checks.sub { margin-left: 22px; }
.checks.sub.off { opacity: 0.5; }

/* ---- content slides and the feedback slide on the stage ------------------------------ */
.sslide { position: absolute; inset: 108px 192px; display: grid; grid-template-columns: 1fr; align-items: center; gap: 72px; }
.sslide.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sslide.withjoin { grid-template-columns: minmax(0, 1fr) 520px; }
.ssl-text { min-width: 0; }
.ssl-title { margin: 0 0 32px; color: var(--s-text); font-weight: 800; line-height: 1.1; letter-spacing: 0.005em; }
.ssl-title.sp-l { font-size: 96px; } .ssl-title.sp-m { font-size: 76px; } .ssl-title.sp-s { font-size: 60px; }
.ssl-body { margin: 0; color: var(--s-quiet-2); font-size: 44px; font-weight: 600; line-height: 1.3; white-space: pre-line;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; }
.ssl-img { display: block; max-width: 100%; max-height: 864px; object-fit: contain; justify-self: center; }
.sslide.only-img .ssl-img { max-height: 864px; width: 100%; height: 864px; }
.ssl-img.small { max-height: 220px; max-width: 520px; margin-bottom: 36px; justify-self: start; }
.ssl-logo { display: block; max-height: 110px; max-width: 420px; margin-bottom: 40px; }
.ssl-join { background: var(--s-plate); border-radius: 18px; padding: 40px; text-align: center; }
.ssl-join img { width: 100%; display: block; background: #fff; border-radius: 10px; }
.ssl-join .sjc-host { font-size: 30px; }
.ssl-join .sjc-code { font-size: 72px; }
.ssl-foot { position: absolute; left: 0; bottom: 0; color: var(--s-quiet); font-size: 32px; font-weight: 600; }
.slide > .sslide { transform-origin: 0 0; transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.slide.joinqr-on > .sslide { transform: translateY(15%) scale(0.7); }

/* ---- admin: slides and feedback ---------------------------------------------------------- */
.fb-edit { display: grid; gap: 10px; margin: 10px 0; }
.fb-qrow { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.fb-qrow .toolbar input[type=text] { flex: 1; min-width: 12em; }
.fb-qrow textarea { width: 100%; box-sizing: border-box; }
.fb-opt { margin-left: 12px; }
.fb-resp { border-top: 1px solid var(--line); padding: 8px 0; }
.fb-resp p { margin: 2px 0; }
.pre { white-space: pre-wrap; }
.slide-mini { display: flex; gap: 12px; align-items: center; }
.slide-mini img { height: 48px; width: auto; border-radius: 4px; background: var(--surface-2); }
/* A poll's revealed answer: the tick and the greyed rest (colour only, no fades). */
.slabel.swrong { color: var(--s-quiet); }
.stick { font-weight: 800; }
.qz-result.plain { padding-top: 24px; }
