/* Live Polls shared styles: results visuals (lp-view), the phone page (lp-participant), the
   projector screen (lp-screen) and the printable report (lp-report). CSS-only visuals, no charts lib.

   Theming: each page receives the session look as five custom properties on :root
   (--lp-t-bg, --lp-t-text, --lp-t-accent, --lp-t-primary, --lp-t-on-accent, --lp-t-on-primary);
   everything else is derived here with color-mix so the layout never changes with the theme. */
:root {
  --lp-t-bg: #091A36;
  --lp-t-text: #EEF3FA;
  --lp-t-accent: #00C5A8;
  --lp-t-primary: #091A36;
  --lp-t-on-accent: #06122A;
  --lp-t-on-primary: #EEF3FA;

  --lp-font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --lp-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --lp-ink: #0D2447;
  --lp-muted: #5B6B82;
  --lp-bg: #F2F6FC;
  --lp-card: #ffffff;
  --lp-line: #DCE5F0;
  --lp-track: #E4EAF2;
  --lp-ok: #1F9D55;
  --lp-warn: #D97706;
  --lp-err: #C62828;
  --lp-slate: #5B6B82;
  --lp-primary: var(--lp-t-primary);
  --lp-accent: var(--lp-t-accent);
  --lp-ease: cubic-bezier(.16, 1, .3, 1);
}
body.lp-participant, body.lp-screen, body.lp-report { margin: 0; font-family: var(--lp-font); color: var(--lp-ink); background: var(--lp-bg); -webkit-text-size-adjust: 100%; line-height: 1.4; }
body.lp-participant [hidden], body.lp-screen [hidden], body.lp-report [hidden] { display: none !important; }
.lp-muted { color: var(--lp-muted); font-size: .9rem; }
.lp-kicker { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-muted); font-weight: 600; }
.lp-badge { display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; background: color-mix(in srgb, var(--lp-ink) 10%, white); color: var(--lp-ink); border-radius: 999px; padding: .2rem .6rem; font-weight: 600; }
.lp-pill { display: inline-flex; align-items: center; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: var(--lp-track); color: var(--lp-slate); white-space: nowrap; }
.lp-pill.is-open { background: var(--lp-t-accent); color: var(--lp-t-on-accent); }
.lp-pill.is-locked { background: color-mix(in srgb, var(--lp-slate) 22%, transparent); color: inherit; }
.lp-pill.is-revealed { background: var(--lp-ok); color: #fff; }
.lp-pill.is-idle { background: color-mix(in srgb, var(--lp-slate) 16%, transparent); color: inherit; }
.lp-btn { font: inherit; font-weight: 500; border: 1px solid var(--lp-line); background: #fff; color: var(--lp-ink); border-radius: 12px; padding: .8rem 1.2rem; cursor: pointer; min-height: 44px; }
.lp-btn-primary { background: var(--lp-t-primary); border-color: var(--lp-t-primary); color: var(--lp-t-on-primary); font-weight: 600; width: 100%; font-size: 1.05rem; }
.lp-btn:disabled { opacity: .55; cursor: default; }
.lp-btn:focus-visible, .lp-choice:focus-visible, .lp-rate:focus-visible, .lp-mini:focus-visible { outline: 3px solid color-mix(in srgb, var(--lp-t-accent) 70%, transparent); outline-offset: 2px; }
.lp-input { width: 100%; font: inherit; font-size: 1.05rem; padding: .8rem .9rem; border: 1.5px solid var(--lp-line); border-radius: 12px; margin: .35rem 0; background: #fff; color: var(--lp-ink); }
.lp-input:focus { outline: 2px solid var(--lp-t-accent); outline-offset: 1px; border-color: transparent; }
.lp-textarea { min-height: 6.5rem; resize: vertical; }
.lp-label { display: block; font-weight: 600; margin-top: .5rem; }
.lp-err { background: #fdecea; color: var(--lp-err); padding: .6rem .8rem; border-radius: 10px; margin: .6rem 0; }
.lp-done { display: flex; align-items: center; gap: .5rem; color: var(--lp-ok); font-weight: 500; font-size: .95rem; margin: .8rem 0 0; }
.lp-done::before { content: '✓'; width: 18px; height: 18px; border-radius: 50%; background: var(--lp-ok); color: #fff; font-size: .7rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lp-done span { color: var(--lp-muted); font-weight: 400; }
/* The status stays on one line; the note after it wraps under it instead of squeezing it into two. */
.lp-done { flex-wrap: wrap; column-gap: .4rem; row-gap: .1rem; }
.lp-done .t { color: inherit; font-weight: 500; white-space: nowrap; }
.lp-empty { color: var(--lp-muted); text-align: center; padding: 1.4rem .5rem; font-style: italic; }
.lp-toast { position: fixed; left: 50%; top: .6rem; transform: translateX(-50%); background: var(--lp-warn); color: #fff; padding: .35rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 20; }
.lp-pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--lp-t-accent); margin: .2rem auto .9rem; animation: lp-pulse 1.6s ease-in-out infinite; }
.lp-spinner { width: 34px; height: 34px; border: 4px solid var(--lp-line); border-top-color: var(--lp-t-accent); border-radius: 50%; margin: .5rem auto 1rem; animation: lp-spin 1s linear infinite; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: .5; } }
.lp-ring { --pct: 1; width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(var(--lp-t-accent) calc(var(--pct) * 100%), color-mix(in srgb, currentColor 18%, transparent) 0); display: inline-grid; place-items: center; flex: none; }
.lp-ring i { width: 20px; height: 20px; border-radius: 50%; background: var(--lp-ring-hole, var(--lp-t-bg)); display: grid; place-items: center; font-style: normal; font-size: .62rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-ring.is-urgent { background: conic-gradient(var(--lp-err) calc(var(--pct) * 100%), color-mix(in srgb, currentColor 18%, transparent) 0); }

/* ── results visuals (shared) ─────────────────────────────────────────────── */
/* Announcements for screen readers. The results themselves redraw many times a second, so they are
   never a live region; this carries only the transitions that matter (opened, closed, revealed). */
.lp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.lp-view { font-size: 1rem; }
.lp-bars { display: flex; flex-direction: column; gap: .7em; }
.lp-bar-head { display: flex; justify-content: space-between; gap: .75em; align-items: baseline; margin-bottom: .3em; }
.lp-bar-label { font-weight: 600; overflow-wrap: anywhere; }
.lp-bar-value { white-space: nowrap; color: var(--lp-muted); font-variant-numeric: tabular-nums; }
.lp-bar-value strong { color: var(--lp-ink); }
.lp-bar-track { height: .9em; background: var(--lp-track); border-radius: 999px; overflow: hidden; position: relative; }
.lp-bar-fill { height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--lp-t-primary) 65%, var(--lp-t-accent)), var(--lp-t-accent)); border-radius: 999px; transition: width .8s var(--lp-ease); }
.is-mine .lp-bar-label::after { content: 'you'; margin-left: .45em; font-size: .7em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lp-t-accent); background: color-mix(in srgb, var(--lp-t-accent) 14%, transparent); padding: .1em .5em; border-radius: 999px; vertical-align: middle; }
/* Long option lists ("top N" / "ranked"): a rank number leads each row, and one muted line stands in
   for the options past the cut. Compact rows keep sentence-length labels readable at fifteen deep. */
.lp-leaders .lp-bar-head { justify-content: flex-start; }
.lp-bar-rank { flex: none; min-width: 1.6em; height: 1.6em; border-radius: .45em; display: inline-grid; place-items: center; font-size: .8em; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--lp-track); color: var(--lp-muted); }
.lp-leaders .is-leader .lp-bar-rank { background: var(--lp-t-accent); color: var(--lp-t-on-accent); }
.lp-leaders .lp-bar-label { flex: 1; min-width: 0; }
.lp-leaders.is-compact { gap: .45em; }
.lp-leaders.is-compact .lp-bar-label { font-weight: 500; font-size: .92em; line-height: 1.25; }
.lp-leaders.is-compact .lp-bar-track { height: .45em; }
.lp-leaders.is-compact .lp-bar-head { margin-bottom: .2em; }
.lp-bar-more { color: var(--lp-muted); font-size: .9em; padding-left: 2.2em; font-style: italic; }
.is-correct .lp-bar-fill, .is-correct .lp-col-fill { background: var(--lp-ok); }
.is-correct .lp-bar-label::after, .is-correct .lp-col-label::after, .is-correct .lp-legend-label::after { content: "✓ correct"; margin-left: .45em; font-size: .7em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lp-ok); }
.is-revealed .lp-bar-row:not(.is-correct), .is-revealed .lp-col:not(.is-correct) { opacity: .55; }
.lp-columns { display: flex; align-items: flex-end; gap: .6em; height: 14em; padding-top: 1.4em; }
.lp-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.lp-col-track { flex: 1; width: 100%; max-width: 6em; display: flex; align-items: flex-end; background: var(--lp-track); border-radius: 10px 10px 4px 4px; overflow: hidden; }
.lp-col-fill { width: 100%; background: linear-gradient(180deg, var(--lp-t-accent), color-mix(in srgb, var(--lp-t-primary) 65%, var(--lp-t-accent))); transition: height .8s var(--lp-ease); }
.lp-col-value { font-size: .85em; color: var(--lp-muted); margin-bottom: .3em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp-col-label { font-size: .9em; margin-top: .4em; text-align: center; overflow-wrap: anywhere; }
/* Chart palette (PollChartPalette, a per-question setting). Default: the leading answer keeps the
   accent and the rest go muted, so an ordinary poll says what the room chose without becoming a
   colour chart. .lp-pal-option gives each option the colour it holds in the donut. No palette class
   means every bar in the accent, which is the original look. Every rule excludes .is-correct rather
   than relying on source order: a revealed correct answer stays green under all three. */
.lp-pal-leader .lp-bar-row:not(.is-correct) .lp-bar-fill,
.lp-pal-leader .lp-col:not(.is-correct) .lp-col-fill { background: color-mix(in srgb, var(--lp-muted) 42%, transparent); }
.lp-pal-leader .lp-bar-row.is-leader:not(.is-correct) .lp-bar-fill { background: linear-gradient(90deg, color-mix(in srgb, var(--lp-t-primary) 65%, var(--lp-t-accent)), var(--lp-t-accent)); }
.lp-pal-leader .lp-col.is-leader:not(.is-correct) .lp-col-fill { background: linear-gradient(180deg, var(--lp-t-accent), color-mix(in srgb, var(--lp-t-primary) 65%, var(--lp-t-accent))); }
.lp-pal-option .lp-bar-row:not(.is-correct) .lp-bar-fill { background: linear-gradient(90deg, color-mix(in srgb, var(--lp-c) 58%, transparent), var(--lp-c)); }
.lp-pal-option .lp-col:not(.is-correct) .lp-col-fill { background: linear-gradient(180deg, var(--lp-c), color-mix(in srgb, var(--lp-c) 58%, transparent)); }
/* Ranking takes the same setting. The rules above are scoped to .lp-bar-row/.lp-col, and a ranking
   row is neither, so it needs its own — and under the option palette the position chip takes the
   item's colour too, which is the part that actually reads as "coloured rankings" from the back. */
.lp-pal-leader .lp-rank-row:not(.is-leader) .lp-bar-fill { background: color-mix(in srgb, var(--lp-muted) 42%, transparent); }
.lp-pal-leader .lp-rank-row:not(.is-leader) .lp-rank-n { background: color-mix(in srgb, var(--lp-muted) 42%, transparent); color: var(--lp-ink); }
.lp-pal-option .lp-rank-row .lp-bar-fill { background: linear-gradient(90deg, color-mix(in srgb, var(--lp-c) 58%, transparent), var(--lp-c)); }
/* Outlined, not filled: the option set runs from a pale yellow to a deep blue, so no single text
   colour is readable on all eight. The ring carries the colour; the numeral keeps the surface's. */
.lp-pal-option .lp-rank-row .lp-rank-n { background: color-mix(in srgb, var(--lp-c) 22%, transparent); border: 2px solid var(--lp-c); color: var(--lp-ink); }
/* Option colours: one per option by position, following it across every chart that uses them. The
   first is the session accent; the rest stay distinct under deuteranopia/protanopia and hold 3:1 on
   their surface -- one set for dark surfaces, one for light (renderDonut picks via .lp-pal-light). */
.lp-c1 { --lp-c: var(--lp-t-accent); }
.lp-c2 { --lp-c: #F2A33A; } .lp-c3 { --lp-c: #6E8CFF; } .lp-c4 { --lp-c: #F0647D; } .lp-c5 { --lp-c: #C9A0FF; }
.lp-c6 { --lp-c: #E8E07A; } .lp-c7 { --lp-c: #E05FB0; } .lp-c8 { --lp-c: #9BE3F7; }
.lp-pal-light .lp-c2 { --lp-c: #C0650A; } .lp-pal-light .lp-c3 { --lp-c: #2F5BD6; } .lp-pal-light .lp-c4 { --lp-c: #C8364F; }
.lp-pal-light .lp-c5 { --lp-c: #9B6BDF; } .lp-pal-light .lp-c6 { --lp-c: #4A5568; } .lp-pal-light .lp-c7 { --lp-c: #B03C8C; } .lp-pal-light .lp-c8 { --lp-c: #1F7FA8; }
.lp-donut-wrap { display: flex; gap: 1.5em; align-items: center; flex-wrap: wrap; }
.lp-donut { width: 11em; height: 11em; position: relative; flex: none; }
.lp-donut-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.lp-donut-track { fill: none; stroke: var(--lp-track); stroke-width: 6; }
.lp-donut-seg { fill: none; stroke: var(--lp-c); stroke-width: 6; transition: stroke-dasharray .8s var(--lp-ease), stroke-dashoffset .8s var(--lp-ease), opacity .4s ease, stroke-width .4s ease; }
/* Reveal: the right answer keeps its colour and the rest step back. */
.lp-donut.is-revealed .lp-donut-seg:not(.is-correct) { opacity: .28; }
.lp-donut.is-revealed .lp-donut-seg.is-correct { stroke-width: 7.5; }
.lp-donut.is-revealing .lp-donut-seg.is-correct { animation: lp-seg-reveal 1.1s var(--lp-ease) 1; }
@keyframes lp-seg-reveal { 30% { stroke-width: 10; } }
.lp-donut-hole { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; pointer-events: none; }
.lp-donut-hole .n { font-size: 2.2em; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-donut-hole .u { font-size: .6em; color: var(--lp-muted); margin-top: .35em; letter-spacing: .04em; }
.lp-legend { display: flex; flex-direction: column; gap: .4em; min-width: 12em; }
.lp-legend-item { display: flex; align-items: center; gap: .5em; transition: opacity .4s ease; }
.lp-donut.is-revealed + .lp-legend .lp-legend-item:not(.is-correct) { opacity: .55; }
.lp-legend-swatch { width: 1em; height: 1em; border-radius: 3px; flex: none; background: var(--lp-c); }
.lp-legend-value { margin-left: auto; color: var(--lp-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.is-mine .lp-legend-label::after { content: 'you'; margin-left: .45em; font-size: .7em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lp-t-accent); background: color-mix(in srgb, var(--lp-t-accent) 14%, transparent); padding: .1em .5em; border-radius: 999px; vertical-align: middle; }
.lp-rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7em; }
.lp-rank-row { display: flex; gap: .8em; align-items: center; transition: transform .45s var(--lp-ease); }
.lp-rank-n { width: 2em; height: 2em; border-radius: 50%; background: var(--lp-t-primary); color: var(--lp-t-on-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; font-variant-numeric: tabular-nums; }
.lp-rank-body { flex: 1; min-width: 0; }
/* Packed word cloud: the renderer positions each .lp-word-slot absolutely (centre point + font size) and
   scales the pack to the stage. Slots glide between packings; the word inside pops in and drifts. */
/* isolate: .is-lead carries z-index 2, and without its own stacking context that lifts the lead word
   into an ancestor's, where it can paint over sibling card content. */
.lp-cloud { position: relative; width: 100%; overflow: hidden; line-height: 1; isolation: isolate; }
.lp-cloud-meter { position: absolute; visibility: hidden; pointer-events: none; white-space: nowrap; left: -9999px; top: 0; line-height: 1; }
.lp-cloud-meter .lp-word { animation: none; display: inline-block; padding: 0 .05em; }
.lp-word-slot { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; transition: left .9s var(--lp-ease), top .9s var(--lp-ease), font-size .9s var(--lp-ease), opacity .4s ease; }
.lp-word-slot.is-lead { color: var(--lp-t-accent); z-index: 2; }
.lp-word-slot.is-second { color: var(--lp-ink); }
.lp-word-slot.is-tail { color: var(--lp-muted); }
.lp-word-slot.is-gone { opacity: 0; }
.lp-word-slot.is-gone .lp-word { animation: none; transform: scale(.5); transition: transform .4s ease; }
/* Each word scales in once, then drifts on its own loop; --dur/--delay/--dx/--dy/--rot are set per word by the renderer. */
.lp-word { display: inline-block; font-weight: 700; padding: 0 .05em; animation: lp-word-in .7s var(--lp-ease) both, lp-drift var(--dur, 8s) ease-in-out var(--delay, 0s) infinite alternate; }
.lp-word-slot.is-lead .lp-word { animation: lp-word-in .7s var(--lp-ease) both, lp-drift var(--dur, 8s) ease-in-out var(--delay, 0s) infinite alternate, lp-breathe 4.5s ease-in-out infinite; }
@keyframes lp-word-in { 0% { opacity: 0; scale: .3; } 60% { scale: 1.1; } 100% { opacity: 1; scale: 1; } }
@keyframes lp-drift { 0% { translate: 0 0; rotate: 0deg; } 50% { translate: var(--dx, 4px) var(--dy, -3px); rotate: var(--rot, .6deg); } 100% { translate: calc(var(--dx, 4px) * -.7) calc(var(--dy, -3px) * -.8); rotate: calc(var(--rot, .6deg) * -1); } }
@keyframes lp-breathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
/* Reveal: the correct bar/column/region pulses once when correctness first appears (.is-revealing is added for ~1.4s). */
@keyframes lp-reveal { 0% { transform: scale(1); filter: brightness(1); } 30% { transform: scale(1.035); filter: brightness(1.3); } 100% { transform: scale(1); filter: brightness(1); } }
.is-revealing .is-correct { animation: lp-reveal 1s var(--lp-ease) 1; transform-origin: left center; }
@keyframes lp-region-reveal { 0% { fill-opacity: .9; stroke-width: 6px; } 100% { fill-opacity: 1; stroke-width: 3px; } }
.lp-region-svg.is-revealing .lp-region.is-correct { animation: lp-region-reveal 1.2s ease-out 2; }
.lp-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(16em, 1fr)); gap: .7em; }
.lp-wall-card { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 12px; padding: .8em .9em; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .5s var(--lp-ease); }
.lp-wall-text { overflow-wrap: anywhere; white-space: pre-wrap; }
.lp-wall-name { color: var(--lp-muted); font-size: .85em; margin-top: .35em; }
.lp-qa { display: flex; flex-direction: column; gap: .6em; }
.lp-qa-row { display: flex; gap: .8em; background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 12px; padding: .7em .8em; transition: transform .5s var(--lp-ease); }
.lp-qa-row.is-pinned { border-color: var(--lp-t-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--lp-t-accent) 30%, transparent); }
.lp-qa-row.is-answered { opacity: .45; }
.lp-qa-row.is-answered .lp-qa-text { text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.lp-qa-done { color: var(--lp-ok); margin-left: .5em; }
/* Screen: the pinned question takes the floor above the list. */
.lp-qa-spot { background: color-mix(in srgb, var(--lp-t-accent) 12%, var(--lp-card)); border: 2px solid var(--lp-t-accent); border-radius: 16px; padding: 1em 1.2em; margin-bottom: .8em; animation: lp-word-in .5s var(--lp-ease) both; }
.lp-qa-spot-text { font-size: 1.45em; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; white-space: pre-wrap; text-wrap: balance; }
.lp-qa-spot .lp-pin { margin-bottom: .4em; }
.lp-qa-votes { display: flex; flex-direction: column; align-items: center; gap: .1em; flex: none; min-width: 2.6em; }
.lp-qa-score { font-weight: 700; font-variant-numeric: tabular-nums; }
/* The sign lives in CSS so the number itself can tween: tween() writes a bare integer. */
.lp-qa-score.is-pos::before { content: "+"; }
.lp-qa-tags:empty { display: none; }
/* A new answer or question landing. Accent ring that fades, so the eye finds it without it shouting. */
@keyframes lp-arrive {
  0% { opacity: 0; translate: 0 -.6em; scale: .92; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-t-accent) 70%, transparent); }
  55% { opacity: 1; translate: 0 0; scale: 1.02; }
  100% { opacity: 1; scale: 1; box-shadow: 0 0 0 0 transparent; }
}
.is-arriving { animation: lp-arrive .8s var(--lp-ease) both; }
.lp-vote { font: inherit; border: 0; background: transparent; color: var(--lp-muted); cursor: pointer; padding: .1rem .4rem; font-size: 1rem; min-width: 32px; min-height: 28px; }
.lp-vote.is-on { color: var(--lp-t-accent); }
.lp-qa-body { flex: 1; min-width: 0; }
.lp-qa-text { overflow-wrap: anywhere; white-space: pre-wrap; }
.lp-pin { display: inline-block; font-size: .7em; text-transform: uppercase; letter-spacing: .05em; color: var(--lp-t-accent); font-weight: 700; margin-bottom: .2em; }
.lp-rating-head { display: flex; align-items: baseline; gap: .6em; margin-bottom: .6em; }
.lp-rating-mean { font-size: 2.6em; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.lp-rating-sub { color: var(--lp-muted); }
/* The wrap must be exactly the image's size: every overlay (regions, pins, badges) is positioned as
   a percentage of it. In a flex column the default stretch made the wrap wider than the image. */
.lp-image-wrap { position: relative; display: inline-block; width: fit-content; max-width: 100%; align-self: flex-start; }
.lp-image { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.lp-pin-layer { position: absolute; inset: 0; }
.lp-pin-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--lp-t-accent); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); opacity: .85; }
.lp-pin-mine { background: var(--lp-err); width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.lp-region-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lp-region { fill: color-mix(in srgb, var(--lp-t-accent) 14%, transparent); stroke: var(--lp-t-accent); stroke-width: 2px; }
.lp-region.is-correct { fill: color-mix(in srgb, var(--lp-ok) 22%, transparent); stroke: var(--lp-ok); stroke-width: 3px; stroke-dasharray: 6 4; }
/* Its own colours, not tokens. --lp-ink is the theme's TEXT colour on the projector and the console
   preview (near-white on the dark default), so a chip painted with it put white numerals on a white
   pill. The chip also sits over arbitrary photography, so it carries its own light hairline. */
.lp-region-badge { position: absolute; transform: translate(-50%, -50%); background: rgba(9, 18, 33, .88); color: #fff; border: 1px solid rgba(255,255,255,.7); font-size: .75em; font-weight: 700; border-radius: 999px; padding: .1em .5em; min-width: 1.7em; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.45); font-variant-numeric: tabular-nums; }
.lp-region-badge.is-correct { background: color-mix(in srgb, var(--lp-ok) 88%, #04121f); }
.lp-region-list { list-style: none; margin: .6em 0 0; padding: 0; display: flex; flex-direction: column; gap: .3em; font-size: .92em; }
.lp-region-row { display: flex; justify-content: space-between; gap: .6em; }
.lp-region-row.is-correct .lp-region-name { color: var(--lp-ok); font-weight: 600; }
.lp-region-row.is-outside { color: var(--lp-muted); }
.lp-region-count { color: var(--lp-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ls-results .lp-region-badge { font-size: .75em; }
.ls-results .lp-region-list { font-size: .8em; }

/* region editor (authoring): shapes in an svg stretched to the image, handles in an HTML layer above it */
.lpr-tools { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; margin-bottom: .5rem; }
.lpr-tool.is-active { background: var(--lp-navy, #0D2447); color: #fff; border-color: var(--lp-navy, #0D2447); }
.lpr-wrap { position: relative; display: inline-block; max-width: 100%; user-select: none; -webkit-user-select: none; outline: none; }
.lpr-wrap:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-teal, #00C5A8) 60%, transparent); border-radius: 8px; }
.lpr-wrap img { display: block; max-width: 100%; max-height: 60vh; height: auto; border-radius: 8px; }
.lpr-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; touch-action: none; cursor: crosshair; }
.lpr-svg.tool-select { cursor: default; }
.lpr-svg.is-readonly { pointer-events: none; }
.lpr-shape { fill: rgba(0,197,168,.16); stroke: #00C5A8; stroke-width: 2px; cursor: move; }
.lpr-shape.is-correct { stroke: #1F9D55; fill: rgba(31,157,85,.2); }
.lpr-shape.is-selected { stroke: #0D2447; stroke-width: 3px; }
.lpr-shape.is-draft { fill: rgba(0,197,168,.08); stroke-dasharray: 6 4; pointer-events: none; }
.lpr-layer { position: absolute; inset: 0; pointer-events: none; }
.lpr-layer > * { pointer-events: auto; }
.lpr-label { position: absolute; transform: translate(-50%, -50%); font-size: .72rem; font-weight: 600; background: rgba(13,36,71,.85); color: #fff; padding: .05rem .45rem; border-radius: 999px; white-space: nowrap; pointer-events: none !important; }
.lpr-label.is-correct { background: #1F9D55; }
.lpr-handle, .lpr-vertex { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 3px; background: #fff; border: 2px solid #0D2447; box-shadow: 0 1px 3px rgba(0,0,0,.3); touch-action: none; }
.lpr-vertex { border-radius: 50%; cursor: grab; }
.lpr-vertex.is-first { border-color: #00C5A8; cursor: pointer; }
.lpr-handle-nw, .lpr-handle-se { cursor: nwse-resize; }
.lpr-handle-ne, .lpr-handle-sw { cursor: nesw-resize; }
.lpr-list { display: flex; flex-direction: column; gap: .35rem; margin-top: .6rem; }
.lpr-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .5rem; align-items: center; padding: .3rem .5rem; border: 1px solid var(--lp-line); border-radius: 8px; cursor: pointer; }
.lpr-row.is-selected { border-color: var(--lp-navy, #0D2447); background: #f6f8fb; }
.lpr-key { width: 24px; height: 24px; border-radius: 6px; background: #F2F6FC; color: var(--lp-muted); display: grid; place-items: center; font-size: .8rem; }
.lp-leaderboard, .lp-lb-row { list-style: none; margin: 0; padding: 0; }
.lp-lb-row { display: flex; align-items: center; gap: 1rem; padding: .6rem .8rem; border-bottom: 1px solid var(--lp-line); font-size: 1.1em;
  border-radius: .5em; transition: transform .45s var(--lp-ease), background-color .45s var(--lp-ease); }
.lp-lb-rank { min-width: 2em; display: flex; align-items: center; gap: .3em; font-weight: 800; color: var(--lp-t-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-lb-name { flex: 1; overflow-wrap: anywhere; }
.lp-lb-points { font-weight: 700; font-variant-numeric: tabular-nums; }
/* The top three carry the weight; everyone below stays quiet so the podium reads from the back row.
   Rank is never colour alone — the medal is a glyph and the row is bigger. */
.lp-lb-row.is-podium { background: color-mix(in srgb, var(--lp-t-accent) 8%, transparent); border-bottom-color: transparent; font-weight: 600; }
.lp-lb-row.is-podium .lp-lb-rank::before { font-size: 1.1em; line-height: 1; }
.lp-lb-row.is-rank-1 { font-size: 1.5em; background: color-mix(in srgb, var(--lp-t-accent) 18%, transparent); }
.lp-lb-row.is-rank-1 .lp-lb-rank::before { content: "🥇"; }
.lp-lb-row.is-rank-2 { font-size: 1.28em; }
.lp-lb-row.is-rank-2 .lp-lb-rank::before { content: "🥈"; }
.lp-lb-row.is-rank-3 { font-size: 1.15em; }
.lp-lb-row.is-rank-3 .lp-lb-rank::before { content: "🥉"; }
/* flash() adds .is-revealing for ~1.4s; on a leaderboard row that means "this person just climbed". */
.lp-lb-row.is-revealing { background: color-mix(in srgb, var(--lp-t-accent) 26%, transparent); }

/* ── phone page ───────────────────────────────────────────────────────────── */
.lp-participant { --lp-ring-hole: var(--lp-t-bg); }
/* The phone page loads no reset stylesheet, so width:100% inputs with padding overflowed the card.
   Scoped to the phone body: this file is also loaded by the admin SPA, which has Bootstrap's reset. */
.lp-participant *, .lp-participant *::before, .lp-participant *::after { box-sizing: border-box; }
.lp-participant .lp-input { min-width: 0; max-width: 100%; }
.lp-participant .lp-head { background: var(--lp-t-bg); color: var(--lp-t-text); padding: .85rem 1rem .75rem; padding-top: max(.85rem, env(safe-area-inset-top)); border-bottom: 1px solid color-mix(in srgb, var(--lp-t-text) 12%, transparent); }
.lp-head-row { display: flex; align-items: center; gap: .8rem; }
.lp-participant .lp-logo { max-height: 26px; max-width: 120px; }
.lp-app { font-size: .68rem; opacity: .75; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; flex: 1; }
.lp-title { font-size: 1rem; margin: .25rem 0 0; font-weight: 600; overflow-wrap: anywhere; line-height: 1.25; }
/* Scored sessions only: your own place, carried in the header so it survives between questions. */
.lp-standing { margin-top: .45rem; display: inline-flex; align-items: center; gap: .45em; font-size: .85rem; font-weight: 600;
  padding: .2rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--lp-t-accent) 18%, transparent); color: var(--lp-t-text); font-variant-numeric: tabular-nums; }
.lp-standing .muted { opacity: .75; font-weight: 500; }
/* "You and 61 others" -- the room forming around your answer. Works on any poll, scored or not. */
.lp-you { display: flex; align-items: center; gap: .55em; margin: .1rem 0 .8rem; padding: .6rem .75rem; border-radius: 12px;
  background: color-mix(in srgb, var(--lp-t-accent) 10%, var(--lp-card, #fff)); color: var(--lp-ink); font-size: .95rem; line-height: 1.35; }
.lp-you .dot { flex: none; width: .6em; height: .6em; border-radius: 50%; background: var(--lp-t-accent); }
.lp-you strong { font-weight: 700; }
.lp-you .n { font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-answered .n { font-variant-numeric: tabular-nums; }
/* Always present, and now a button: it is the only place on the phone that says who the room thinks
   you are, and the only way to change it. */
.lp-me { font: inherit; font-size: .8rem; background: color-mix(in srgb, var(--lp-t-text) 14%, transparent); color: inherit; border: 0; padding: .2rem .65rem; border-radius: 999px; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.lp-me:hover, .lp-me:focus-visible { background: color-mix(in srgb, var(--lp-t-text) 24%, transparent); outline: none; }
.lp-me.is-anon { opacity: .8; font-style: italic; }
.lp-me.is-known::before { content: '✓ '; color: var(--lp-t-accent); font-style: normal; }
/* "Continue as ..." on the join card, above the name box. */
.lp-account { margin-bottom: .9rem; }
.lp-account .lp-btn { width: 100%; }
.lp-account-or { text-align: center; font-size: .8rem; margin-top: .6rem; }
/* Identity sheet: a plain centred dialog, not a drawer — it is short and has two inputs. */
.lp-sheet { position: fixed; inset: 0; z-index: 40; background: rgba(9,18,33,.45); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.lp-sheet-card { background: var(--lp-card); color: var(--lp-ink); border-radius: 16px; padding: 1.1rem 1.1rem 1.2rem; width: 100%; max-width: 26rem; max-height: 90vh; overflow: auto; box-shadow: 0 12px 40px rgba(9,18,33,.3); }
.lp-sheet-card h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.lp-sheet-who { font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.lp-sheet-card .lp-btn { width: 100%; }
.lp-sheet-card #lp-sheet-account { margin: .8rem 0 .2rem; }
.lp-sheet-acts { display: flex; gap: .5rem; margin-top: 1rem; }
.lp-prog { display: flex; align-items: center; gap: .55rem; margin-top: .6rem; font-size: .74rem; opacity: .95; }
.lp-dots { display: flex; gap: 3px; }
.lp-dots i { width: 14px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--lp-t-text) 25%, transparent); }
.lp-dots i.is-done { background: var(--lp-t-accent); }
.lp-dots i.is-cur { background: var(--lp-t-text); }
.lp-prog .lp-pill { margin-left: auto; }
.lp-prog .lp-pill.is-locked { background: color-mix(in srgb, var(--lp-t-text) 18%, transparent); color: var(--lp-t-text); }
#lp-main { max-width: 640px; margin: 0 auto; padding: .9rem .9rem 1rem; }
body.lp-participant.has-sticky #lp-main { padding-bottom: 6rem; }
.lp-card { background: var(--lp-card); border-radius: 16px; padding: 1rem 1rem 1.1rem; box-shadow: 0 1px 3px rgba(13,36,71,.06); margin-bottom: .8rem; }
.lp-hold { text-align: center; padding: 1.6rem 1rem; }
.lp-hold h2 { margin: 0 0 .3rem; font-size: 1.15rem; }
.lp-card h2 { margin: .2rem 0 .4rem; font-size: 1.25rem; }
.lp-gate-code { font-size: .85rem; color: var(--lp-muted); margin: .3rem 0 .9rem; }
.lp-gate-code b { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .18em; color: var(--lp-ink); }
.lp-gate-code .lp-ok { color: var(--lp-ok); font-weight: 600; }
.lp-prompt { font-size: 1.2rem; margin: .25rem 0 .8rem; line-height: 1.25; overflow-wrap: anywhere; font-weight: 600; }
.lp-choices { display: flex; flex-direction: column; gap: .5rem; }
.lp-choice { font: inherit; font-size: 1rem; font-weight: 500; text-align: left; padding: .7rem .8rem; border: 1.5px solid var(--lp-line); background: #fff; border-radius: 12px; cursor: pointer; color: var(--lp-ink); overflow-wrap: anywhere; display: flex; align-items: center; gap: .65rem; min-height: 48px; transition: background .15s, border-color .15s; }
.lp-key { width: 26px; height: 26px; border-radius: 8px; background: var(--lp-bg); color: var(--lp-muted); font-size: .78rem; font-weight: 700; display: grid; place-items: center; flex: none; }
.lp-choice-label { flex: 1; }
.lp-choice .lp-check { display: none; margin-left: auto; font-size: .9rem; }
.lp-choice.is-on { background: var(--lp-t-primary); border-color: var(--lp-t-primary); color: var(--lp-t-on-primary); }
.lp-choice.is-on .lp-key { background: var(--lp-t-accent); color: var(--lp-t-on-accent); }
.lp-choice.is-on .lp-check { display: inline; }
.lp-choice:disabled { opacity: .7; cursor: default; }
.lp-sticky { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--lp-line); padding: .7rem .9rem; padding-bottom: max(.9rem, env(safe-area-inset-bottom)); z-index: 10; }
.lp-sticky > * { max-width: 640px; margin: 0 auto; display: block; }
.lp-answered { padding: 1.1rem 1rem; }
.lp-big { font-size: 1.05rem; font-weight: 600; margin-bottom: .15rem; font-variant-numeric: tabular-nums; }
.lp-results-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .7rem; }
.lp-rank-edit { list-style: none; margin: .5rem 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.lp-rank-item { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1.5px solid var(--lp-line); border-radius: 12px; padding: .5rem .6rem .5rem .7rem; touch-action: manipulation; }
.lp-rank-edit.is-sorting { user-select: none; -webkit-user-select: none; }
.lp-rank-item { transition: transform .18s var(--lp-ease), box-shadow .18s ease; }
.lp-rank-item.is-dragging { transition: none; opacity: 1; border-color: var(--lp-t-accent); box-shadow: 0 12px 28px rgba(13,36,71,.24); position: relative; z-index: 3; }
.lp-rank-item.is-settling { position: relative; z-index: 2; }
.lp-rank-item .lp-rank-n { width: 24px; height: 24px; font-size: .78rem; }
.lp-rank-label { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
/* touch-action: none on the handle only, so a finger on the label still scrolls the page */
.lp-grip { color: var(--lp-muted); font-size: 1.1rem; letter-spacing: -2px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; padding: .7rem .55rem; margin: -.5rem 0; }
.lp-grip:active { cursor: grabbing; }
.lp-mini { font: inherit; font-size: .7rem; border: 1px solid var(--lp-line); background: #fff; border-radius: 6px; width: 30px; height: 26px; cursor: pointer; color: var(--lp-muted); }
.lp-mini:disabled { opacity: .35; cursor: default; }
.lp-arrows { display: flex; flex-direction: column; gap: 2px; }
.lp-counter { text-align: right; }
.lp-rating-row { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.lp-rate { font: inherit; font-size: 1.15rem; font-weight: 700; width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid var(--lp-line); background: #fff; cursor: pointer; color: var(--lp-ink); }
.lp-rate.is-on { background: var(--lp-t-primary); color: var(--lp-t-on-primary); border-color: var(--lp-t-primary); }
.lp-rating-labels { display: flex; justify-content: space-between; color: var(--lp-muted); font-size: .85rem; margin-top: .4rem; }
.lp-image-tap { cursor: crosshair; width: 100%; }
.lp-image-tap .lp-image { width: 100%; }

/* Organization question: search, pick, and what is picked. */
.lp-org-picked { display: flex; align-items: center; gap: .55rem; padding: .7rem .8rem; border-radius: 12px; background: var(--lp-t-primary); color: var(--lp-t-on-primary); font-weight: 600; margin-bottom: .5rem; overflow-wrap: anywhere; }
.lp-org-check { width: 24px; height: 24px; border-radius: 7px; background: var(--lp-t-accent); color: var(--lp-t-on-accent); display: grid; place-items: center; font-size: .8rem; flex: none; }
.lp-org-status { min-height: 1.3em; margin: .1rem 0 .4rem; }
.lp-org-status:empty { display: none; }
.lp-org-list { display: flex; flex-direction: column; gap: .4rem; }
.lp-org-opt { flex-direction: column; align-items: flex-start; gap: .1rem; }
.lp-org-place { font-size: .82rem; font-weight: 400; color: var(--lp-muted); }
.lp-org-none { width: 100%; margin-top: .7rem; font-size: .92rem; color: var(--lp-muted); }

/* Self-paced: the phone's own list of questions. */
.lp-qlist { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.lp-q { font: inherit; width: 100%; text-align: left; display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; min-height: 52px; border: 1.5px solid var(--lp-line); background: #fff; border-radius: 12px; cursor: pointer; color: var(--lp-ink); }
.lp-q-n { width: 28px; height: 28px; border-radius: 8px; background: var(--lp-bg); color: var(--lp-muted); font-size: .8rem; font-weight: 700; display: grid; place-items: center; flex: none; }
.lp-q-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lp-q-p { font-weight: 600; overflow-wrap: anywhere; }
.lp-q-t small { color: var(--lp-muted); font-size: .8rem; margin-top: .1rem; }
.lp-q.is-answered .lp-q-n { background: var(--lp-t-accent); color: var(--lp-t-on-accent); }
.lp-q.is-closed:not(.is-answered) { opacity: .7; }
.lp-back { font: inherit; font-size: .88rem; border: 0; background: transparent; color: var(--lp-muted); padding: .2rem 0; margin: -.2rem 0 .3rem; cursor: pointer; min-height: 32px; }
.lp-next-q { width: 100%; margin-top: .9rem; font-weight: 600; }

/* ── projector screen ─────────────────────────────────────────────────────── */
.lp-screen {
  --ls-hi: color-mix(in srgb, var(--lp-t-bg) 86%, var(--lp-t-text));
  --ls-lo: color-mix(in srgb, var(--lp-t-bg) 90%, black);
  --lp-ink: var(--lp-t-text);
  --lp-muted: color-mix(in srgb, var(--lp-t-text) 62%, var(--lp-t-bg));
  --lp-line: color-mix(in srgb, var(--lp-t-text) 14%, transparent);
  --lp-track: color-mix(in srgb, var(--lp-t-text) 10%, transparent);
  --lp-panel: color-mix(in srgb, var(--lp-t-text) 5%, transparent);
  --lp-card: color-mix(in srgb, var(--lp-t-text) 6%, var(--lp-t-bg));
  --lp-ring-hole: var(--lp-t-bg);
  --lp-bg: var(--lp-t-bg);
  /* A projector and a PowerPoint slide are both fixed boxes: the page must fit, never scroll. The
     stage is scaled to fit by fitStage() in live-poll-screen.js, which drives --ls-fit. */
  min-height: 100vh; height: 100dvh; overflow: hidden; font-size: clamp(14px, 1.1vw, 22px);
}
body.lp-screen { background: radial-gradient(120% 140% at 100% 0%, var(--ls-hi) 0%, var(--lp-t-bg) 55%, var(--ls-lo) 100%) fixed; color: var(--lp-t-text); }
html:has(> body.lp-screen) { height: 100%; overflow: hidden; }
.ls-root { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 100vh; height: 100%; }
.ls-head { display: flex; align-items: center; gap: 1.4vw; padding: 1.2vw 2.4vw; border-bottom: 1px solid var(--lp-line); font-size: clamp(.9rem, 1.35vw, 1.6rem); }
.ls-brand { display: flex; align-items: center; gap: .8vw; }
.ls-logo { max-height: 2.6vw; max-width: 14vw; }
.ls-app { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .75em; color: var(--lp-muted); }
.ls-session { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-count { display: flex; align-items: center; gap: .6vw; color: var(--lp-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ls-pulse { width: .8vw; height: .8vw; border-radius: 50%; background: var(--lp-t-accent); box-shadow: 0 0 0 .3vw color-mix(in srgb, var(--lp-t-accent) 25%, transparent); animation: lp-pulse 2s ease-in-out infinite; }
.ls-main { display: grid; grid-template-columns: minmax(0, 1fr) 24vw; gap: 2.4vw; padding: 2vw 2.4vw 2.4vw; min-height: 0; }
/* The waiting room carries its own code and QR, and ?join=0 turns the panel off: either way the stage
   takes the whole width instead of leaving an empty strip where the panel was. */
.ls-main:has(> .ls-join[hidden]) { grid-template-columns: minmax(0, 1fr); }
.ls-stage { min-width: 0; display: flex; flex-direction: column; min-height: 0; position: relative; }
/* The activity wrapper has to carry the stage's height down to .ls-results. Without this it is a
   plain block that sizes to its content, so `.ls-results { flex: 1; min-height: 0 }` did nothing and
   a tall chart simply overflowed the frame — which is what made the screen scroll in the first place. */
.ls-act { flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* Everything on the stage is sized in em off .ls-prompt / .ls-results, and those two are the only
   things measured against the viewport. fitStage() then scales both with --ls-fit until the stage
   fits its box — which is why nothing below may use vw or vh: a vw metric would stay put while the
   type around it shrank. */
/* Uppercase and tracked, like .ls-recap-kicker and .ls-join-label: the room needs a band above the
   prompt that is unmistakably chrome, so the prompt reads as the question and what follows it reads
   as the answers. Size and spacing are unchanged — nothing here may add height to the fit chain. */
.ls-status { display: flex; align-items: center; gap: .9em; font-size: calc(clamp(.85rem, 1.25vw, 1.5rem) * var(--ls-fit, 1)); color: var(--lp-muted); margin-bottom: .8em; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.ls-status .lp-pill { letter-spacing: .06em; }
.ls-status .lp-pill { font-size: .8em; padding: .3em .9em; }
.ls-status .lp-ring { width: 2em; height: 2em; }
/* Percentages, not em: the hole must stay a fixed fraction of the ring, whose own font-size differs. */
.ls-status .lp-ring i { width: 75%; height: 75%; font-size: .64em; color: var(--lp-t-text); }
/* Weight 700, and the answer labels below are muted (see .ls-results .lp-bar-label): size alone did
   not separate the question from the answers, because --ls-fit scales both by the same factor, so a
   short frame never widened the ratio — and the answer figures were the heaviest type on the slide. */
.ls-prompt { font-size: calc(clamp(1.6rem, 4.1vw, 5rem) * var(--ls-fit, 1)); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .4em; overflow-wrap: anywhere; text-wrap: balance; }
/* What the room concluded, once a question locks. Sized off the same --ls-fit knob as everything on the
   stage, so a tall chart and a headline still share a short frame. */
.ls-headline { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1em .35em; margin: 0 0 .5em;
  font-size: calc(clamp(1.1rem, 2.3vw, 2.9rem) * var(--ls-fit, 1)); color: var(--lp-muted); line-height: 1.1; }
.ls-headline .big { font-size: 2.1em; font-weight: 800; color: var(--lp-t-accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ls-headline strong { color: var(--lp-t-text); font-weight: 700; overflow-wrap: anywhere; }
@keyframes ls-land { 0% { opacity: 0; translate: 0 .4em; scale: .96; } 60% { opacity: 1; scale: 1.02; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
.ls-headline.is-landing { animation: ls-land .7s var(--lp-ease) both; transform-origin: left center; }
/* overflow:hidden is the backstop, not the plan: fitStage() should always make the content fit. It
   only bites in a frame too short for any readable size, where clipping beats painting over the
   join strip below. */
.ls-results { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; overflow: hidden; font-size: calc(clamp(1rem, 2.1vw, 2.6rem) * var(--ls-fit, 1)); }
.ls-results .lp-view { font-size: 1em; }
/* A slide frame is wide and short. Before shrinking the type towards unreadable, flow long stacks
   into balanced columns — fitStage() raises --ls-cols until the stage fits. Multi-column balances on
   its own when the height is auto, and break-inside keeps a bar and its label together. */
.ls-results .lp-bars, .ls-results .lp-rank-list, .ls-results .lp-qa { display: block; columns: var(--ls-cols, 1); column-gap: 1.6em; }
.ls-results .lp-bar-row, .ls-results .lp-rank-row, .ls-results .lp-qa-row { break-inside: avoid; margin: 0 0 .57em; }
.ls-results .lp-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: .76em; row-gap: .19em; align-items: center; }
/* Only a bar row's head dissolves into the grid above. A ranking row reuses .lp-bar-head inside
   .lp-rank-body, which is not a grid, so `display: contents` there dropped the flex that separates
   the label from its figures and printed "Staffing8 first · avg #1.42". */
.ls-results .lp-bar-row > .lp-bar-head { display: contents; }
/* Answer text sits a step back from the prompt: same family and size, less presence. The figures
   keep full strength — they are the point — so the row still reads number-first. */
.ls-results .lp-bar-label, .ls-results .lp-rank-row .lp-bar-label { grid-column: 1; grid-row: 1; font-weight: 500; color: color-mix(in srgb, var(--lp-t-text) 78%, var(--lp-t-bg)); }
.ls-results .lp-bar-value { grid-column: 2; grid-row: 1 / span 2; text-align: right; line-height: 1; color: var(--lp-t-text); }
.ls-results .lp-bar-value strong { display: block; font-size: 1.25em; font-weight: 700; color: var(--lp-t-text); }
.ls-results .lp-bar-pct { display: block; font-size: .55em; color: var(--lp-muted); margin-top: .3em; }
.ls-results .lp-bar-track { grid-column: 1; grid-row: 2; height: 1.3em; border-radius: .38em; background: var(--lp-track); }
.ls-results .lp-bar-fill { border-radius: .38em; position: relative; }
.ls-results .lp-bar-fill::after { content: attr(data-pct); position: absolute; right: .7em; top: 50%; transform: translateY(-50%); font-size: .6em; font-weight: 700; color: var(--lp-t-on-accent); }
.ls-results .lp-bar-fill[data-pct="0%"]::after { content: ''; }
/* The rank takes its own column on the screen's bar grid (the head is display: contents there). */
.ls-results .lp-leaders .lp-bar-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.ls-results .lp-leaders .lp-bar-rank { grid-column: 1; grid-row: 1 / span 2; align-self: center; font-size: .7em; }
.ls-results .lp-leaders .lp-bar-label, .ls-results .lp-leaders .lp-bar-track { grid-column: 2; }
.ls-results .lp-leaders .lp-bar-value { grid-column: 3; }
.ls-results .lp-leaders.is-compact .lp-bar-row { margin-bottom: .4em; row-gap: .12em; }
.ls-results .lp-leaders.is-compact .lp-bar-track { height: .5em; }
.ls-results .lp-leaders.is-compact .lp-bar-value strong { font-size: 1em; }
.ls-results .lp-bar-more { break-inside: avoid; padding-left: 2.6em; margin-top: .2em; }
/* The percentage sits inside the fill, coloured for the accent behind it. A muted bar is grey, so it
   needs the page's text colour instead — on-accent navy over grey is barely readable from the back. */
.ls-results .lp-pal-leader .lp-bar-row:not(.is-leader):not(.is-correct) .lp-bar-fill::after { color: var(--lp-t-text); }
.ls-results .is-mine .lp-bar-label::after { content: none; }
.ls-results .lp-rank-n { width: 1.8em; height: 1.8em; font-size: .7em; }
.ls-results .lp-rank-row .lp-bar-track { height: .67em; }
.ls-results .lp-word-slot.is-second { color: var(--lp-t-text); }
.ls-results .lp-word-slot.is-tail { color: color-mix(in srgb, var(--lp-t-text) 62%, var(--lp-t-bg)); }
.ls-results .lp-wall-card, .ls-results .lp-qa-row { background: var(--lp-panel); border-color: var(--lp-line); }
.ls-results .lp-col-value { color: var(--lp-muted); }
.ls-results .lp-columns { height: 11em; }
/* A clickable image is width-bound, so shrinking the type will not save it in a short frame. */
.ls-results .lp-image-wrap { min-height: 0; max-height: 100%; }
.ls-results .lp-image { max-height: 100%; }
.ls-results .lp-rating-mean { font-size: 3.2em; }
/* Answers that did not fit, after fitStage() has shrunk as far as it will go. */
.lp-more { align-self: flex-start; margin-top: .5em; padding: .25em .8em; border-radius: 999px; background: var(--lp-track); color: var(--lp-muted); font-size: .7em; font-weight: 600; white-space: nowrap; }
.lp-more-dots { display: flex; gap: .35em; align-items: center; }
.lp-more-dot { width: .4em; height: .4em; border-radius: 50%; background: var(--lp-muted); opacity: .35; transition: opacity .3s ease; }
.lp-more-dot.is-on { opacity: 1; background: var(--lp-t-accent); }
.ls-collecting { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .6vw; color: var(--lp-muted); font-size: clamp(1rem, 1.6vw, 2rem); }
.ls-collecting-n { font-size: min(clamp(2.4rem, 7vw, 9rem), 22vh); font-weight: 700; color: var(--lp-t-text); line-height: 1; font-variant-numeric: tabular-nums; }
.ls-collecting-n small { font-size: .32em; color: var(--lp-muted); font-weight: 500; margin-left: .3em; }
.ls-idle { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.2vw; flex: 1; padding: 2vw; }
/* Moving to the next question used to be a hard cut. The old question lifts away, then the new one
   comes in in reading order -- where it is in the session, the prompt, then the results. */
.ls-stage > .is-leaving { animation: ls-leave .22s ease-in both; }
@keyframes ls-leave { to { opacity: 0; translate: 0 -.5em; } }
.ls-act.is-entering .ls-status { animation: ls-enter .5s var(--lp-ease) both; }
.ls-act.is-entering .ls-prompt { animation: ls-enter .65s var(--lp-ease) .07s both; }
.ls-act.is-entering .ls-results, .ls-act.is-entering .ls-collecting { animation: ls-enter-fade .6s ease .2s both; }
@keyframes ls-enter { from { opacity: 0; translate: 0 .7em; } }
@keyframes ls-enter-fade { from { opacity: 0; } }
/* The end of the session: what the room did, then every question it was shown, on a loop. */
.ls-recap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: min(1.4vw, 2.4vh); padding: 2vw; }
.ls-recap-kicker { font-size: min(clamp(.8rem, 1.2vw, 1.5rem), 4vh); letter-spacing: .16em; text-transform: uppercase; color: var(--lp-t-accent); font-weight: 700; }
.ls-recap-title { font-family: var(--lp-serif); font-size: min(clamp(1.8rem, 3.6vw, 4.4rem), 12vh); line-height: 1.1; text-wrap: balance; }
.ls-recap-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: min(5vw, 8vh); margin: min(1vw, 2vh) 0; }
.ls-recap-stat b { display: block; font-size: min(clamp(2.4rem, 7vw, 8rem), 20vh); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ls-recap-stat.is-lead b { color: var(--lp-t-accent); }
.ls-recap-stat span { display: block; margin-top: .3em; color: var(--lp-muted); font-size: min(clamp(.9rem, 1.4vw, 1.7rem), 5vh); }
.ls-recap-thanks { color: var(--lp-muted); font-size: min(clamp(.9rem, 1.4vw, 1.7rem), 5vh); }
.ls-recap.is-entering > * { animation: ls-enter .65s var(--lp-ease) both; }
.ls-recap.is-entering > :nth-child(2) { animation-delay: .06s; }
.ls-recap.is-entering > :nth-child(3) { animation-delay: .14s; }
.ls-recap.is-entering > :nth-child(4) { animation-delay: .24s; }
.ls-leaderboard.is-entering { animation: ls-enter .6s var(--lp-ease) both; }
/* Self-paced board: counts beside the join panel. Sized in vh as well as vw so a short frame never
   pushes the last row off the bottom; the grid divides the stage height evenly among its rows. */
.ls-board { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ls-board.is-entering > * { animation: ls-enter .6s var(--lp-ease) both; }
.ls-board-h { font-size: min(clamp(.85rem, 1.25vw, 1.5rem), 3.2vh); letter-spacing: .1em; text-transform: uppercase; color: var(--lp-muted); font-weight: 600; margin-bottom: min(1vw, 1.8vh); }
.ls-board-more { color: var(--lp-muted); font-size: min(clamp(.8rem, 1.1vw, 1.3rem), 3vh); margin-top: .6em; text-align: right; }
.ls-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--ls-grid-cols, 3), minmax(0, 1fr)); grid-template-rows: repeat(var(--ls-grid-rows, 2), minmax(0, 1fr)); gap: min(1vw, 1.8vh); }
.ls-tile { position: relative; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: .35em; background: var(--lp-panel); border: 1px solid var(--lp-line); border-radius: min(1vw, 1.6vh); padding: .7em .8em .9em;
  font-size: min(clamp(.75rem, 1.15vw, 1.5rem), calc(18vh / var(--ls-grid-rows, 2))); }
.ls-tile.is-closed { opacity: .6; }
.ls-tile-n { font-size: .78em; font-weight: 700; color: var(--lp-muted); letter-spacing: .06em; }
.ls-tile-p { font-weight: 600; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; flex: 1; min-height: 0; }
.ls-tile-f { display: flex; align-items: baseline; gap: .35em; }
.ls-tile-f .n { font-size: 2em; font-weight: 800; line-height: 1; color: var(--lp-t-accent); font-variant-numeric: tabular-nums; }
.ls-tile-f .l { color: var(--lp-muted); }
.ls-tile-tag { margin-left: auto; font-size: .75em; text-transform: uppercase; letter-spacing: .08em; color: var(--lp-muted); font-weight: 600; }
.ls-tile-bar { position: absolute; left: 0; right: 0; bottom: 0; height: .3em; background: color-mix(in srgb, var(--lp-t-text) 12%, transparent); }
.ls-tile-bar i { display: block; height: 100%; width: 0; background: var(--lp-t-accent); transition: width .6s var(--lp-ease); }
.ls-board.is-slide { justify-content: center; gap: min(1.2vw, 2.2vh); }
.ls-slide-k { font-size: min(clamp(.85rem, 1.25vw, 1.5rem), 3.4vh); letter-spacing: .1em; text-transform: uppercase; color: var(--lp-muted); font-weight: 600; }
.ls-slide-p { font-size: min(clamp(1.6rem, 3.8vw, 4.6rem), 11vh); font-weight: 700; line-height: 1.12; margin: 0; overflow-wrap: anywhere; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ls-slide-count { display: flex; align-items: baseline; gap: .4em; font-size: min(clamp(1rem, 1.8vw, 2.2rem), 5vh); color: var(--lp-muted); }
.ls-slide-count .n { font-size: 3.2em; font-weight: 800; line-height: 1; color: var(--lp-t-accent); font-variant-numeric: tabular-nums; }
.ls-slide-bar { height: min(.8vw, 1.4vh); border-radius: 999px; background: color-mix(in srgb, var(--lp-t-text) 12%, transparent); overflow: hidden; max-width: 60vw; }
.ls-slide-bar i { display: block; height: 100%; width: 0; background: var(--lp-t-accent); border-radius: inherit; transition: width .6s var(--lp-ease); }
.ls-slide-of { color: var(--lp-muted); font-size: min(clamp(.85rem, 1.2vw, 1.4rem), 3.2vh); }
.ls-slide-dots { display: flex; gap: .4vw; flex-wrap: wrap; margin-top: min(1vw, 2vh); }
.ls-slide-dots i { width: min(.7vw, 1.2vh); height: min(.7vw, 1.2vh); border-radius: 50%; background: color-mix(in srgb, var(--lp-t-text) 25%, transparent); }
.ls-slide-dots i.is-on { background: var(--lp-t-accent); }
/* Auto-advancing content needs a way to stop it (WCAG 2.2.2): visible to everyone, quiet until used. */
/* The recap's nav floats over the bottom of the stage; reserve its height so the fit ladder sizes a
   long chart to the space above it instead of letting its last row sit under the buttons. */
body.lp-screen:has(> #ls-recap-nav:not([hidden])) .ls-main { padding-bottom: calc(2.4vw + 2.2em); }
.ls-recap-nav { position: fixed; left: 50%; bottom: 1.2vw; transform: translateX(-50%); display: flex; align-items: center; gap: .5vw; background: color-mix(in srgb, var(--lp-t-bg) 92%, black); border: 1px solid var(--lp-line); border-radius: 999px; padding: .4vw .7vw; opacity: .35; transition: opacity .2s; z-index: 5; }
.ls-recap-nav:hover, .ls-recap-nav:focus-within { opacity: 1; }
.ls-recap-nav button { font: inherit; font-size: clamp(.75rem, 1vw, 1.2rem); background: transparent; color: var(--lp-t-text); border: 0; border-radius: 999px; padding: .35vw .9vw; cursor: pointer; }
.ls-recap-nav button:focus-visible { outline: 2px solid var(--lp-t-accent); }
.ls-recap-dots { display: flex; gap: .45vw; align-items: center; }
.ls-recap-dots i { width: .5vw; height: .5vw; min-width: 6px; min-height: 6px; border-radius: 50%; background: var(--lp-muted); opacity: .4; transition: opacity .3s ease, background-color .3s ease; }
.ls-recap-dots i.is-on { opacity: 1; background: var(--lp-t-accent); }
/* The phone gets the entrance but not the exit: nobody should wait to answer. */
.lp-card.is-entering { animation: ls-enter .45s var(--lp-ease) both; }
/* The waiting room fills up as people join: one dot per phone, gathered around the join code rather
   than over it. Behind the content (isolation keeps z-index -1 inside the panel), never interactive. */
.ls-idle { position: relative; isolation: isolate; }
.ls-room { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ls-room-dot { position: absolute; width: var(--sz, 10px); height: var(--sz, 10px); margin: calc(var(--sz, 10px) / -2) 0 0 calc(var(--sz, 10px) / -2); border-radius: 50%;
  background: var(--lp-t-accent); opacity: var(--op, .5); box-shadow: 0 0 calc(var(--sz, 10px) * 1.4) color-mix(in srgb, var(--lp-t-accent) 55%, transparent);
  animation: lp-drift var(--dur, 9s) ease-in-out var(--delay, 0s) infinite alternate; }
.ls-room-dot.is-alt { background: var(--lp-t-text); box-shadow: none; }
.ls-room-dot.is-arriving { animation: ls-dot-in 1s var(--lp-ease) both, lp-drift var(--dur, 9s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes ls-dot-in { 0% { scale: 0; opacity: 0; } 45% { scale: 2.4; opacity: 1; } 100% { scale: 1; opacity: var(--op, .5); } }
/* Arrivals, when the session opted in (PollSession.ShowJoinerNames). A feed, not a roster: the last
   few names ride up and fade, so the screen never turns into an attendance list. */
.ls-joiners { display: none; }
/* Switched on for the whole session, not per chip: the band keeps its height so the idle screen does
   not jump every time somebody walks in. */
.ls-joiners.is-on { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: .5em; min-height: 2.4em; font-size: min(clamp(.8rem, 1.2vw, 1.5rem), 4.5vh); }
.ls-joiner { display: inline-block; padding: .25em .8em; border-radius: 999px; line-height: 1.3;
  background: color-mix(in srgb, var(--lp-t-accent) 14%, transparent); color: var(--lp-t-text);
  border: 1px solid color-mix(in srgb, var(--lp-t-accent) 34%, transparent); transition: opacity .5s ease, transform .5s var(--lp-ease); }
.ls-joiner.is-arriving { animation: ls-joiner-in .6s var(--lp-ease) both; }
.ls-joiner.is-leaving { opacity: 0; transform: translateY(-.6em); }
@keyframes ls-joiner-in { 0% { opacity: 0; transform: translateY(.8em) scale(.9); } 100% { opacity: 1; transform: none; } }
.ls-idle-hint .n { display: inline-block; font-size: 1.5em; font-weight: 700; color: var(--lp-t-text); font-variant-numeric: tabular-nums; }
.ls-idle-hint .n.is-bump { animation: ls-bump .5s var(--lp-ease); }
@keyframes ls-bump { 0% { scale: 1; } 40% { scale: 1.3; color: var(--lp-t-accent); } 100% { scale: 1; } }
/* The idle panel stacks five things; in a short frame each has to answer to the height as well. */
.ls-idle-title { font-family: var(--lp-serif); font-size: min(clamp(1.8rem, 3.4vw, 4.2rem), 11vh); line-height: 1.1; text-wrap: balance; }
.ls-idle-hint { font-size: min(clamp(.9rem, 1.4vw, 1.7rem), 5vh); color: var(--lp-muted); }
.ls-idle-url { font-size: min(clamp(1.1rem, 2.2vw, 2.6rem), 7vh); font-weight: 500; }
.ls-idle-url span { color: var(--lp-muted); }
.ls-idle-code { font-size: min(clamp(3rem, 9vw, 11rem), 26vh); font-weight: 700; letter-spacing: .24em; margin-left: .24em; color: var(--lp-t-accent); line-height: 1; font-variant-numeric: tabular-nums; }
.ls-idle-qr { width: min(clamp(120px, 16vw, 260px), 34vh); border-radius: 1vw; background: #fff; padding: .8vw; }
/* container-type: the code and QR size off the PANEL, not the viewport. Both used to scale with vw while
   the panel is only 24vw wide, so the tracked six-letter code overflowed it at every screen size. */
.ls-join { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8vw; background: var(--lp-panel); border: 1px solid var(--lp-line); border-radius: 1.4vw; padding: 2vw 1.6vw; text-align: center; min-height: 0; min-width: 0; container-type: inline-size; }
.ls-join-label { font-size: clamp(.7rem, 1.05vw, 1.3rem); letter-spacing: .12em; text-transform: uppercase; color: var(--lp-muted); font-weight: 600; }
.ls-join-url { font-size: clamp(.85rem, 1.35vw, 1.6rem); font-weight: 500; overflow-wrap: anywhere; }
.ls-join-url span { color: var(--lp-muted); }
/* The upper bound; fitJoinCode() in live-poll-screen.js shrinks it further for a wide code (W, M). The
   trailing letter-space is balanced by an equal margin-left so the code centres optically. */
.ls-join-code { font-size: min(5.6rem, 19cqi); font-weight: 700; letter-spacing: .16em; margin-left: .16em; white-space: nowrap; color: var(--lp-t-accent); font-variant-numeric: tabular-nums; line-height: 1; }
.ls-qr { width: min(78cqi, 36vh); border-radius: 1vw; background: #fff; padding: .8vw; margin-top: .4vw; }
.ls-join-resp { margin-top: .6vw; padding-top: .8vw; border-top: 1px solid var(--lp-line); width: 60%; font-size: clamp(.8rem, 1.3vw, 1.5rem); color: var(--lp-muted); font-variant-numeric: tabular-nums; }
.ls-join-resp b { display: block; color: var(--lp-t-text); font-size: 1.6em; line-height: 1; }
.ls-leaderboard { flex: 1; min-height: 0; display: flex; flex-direction: column; font-size: calc(clamp(1rem, 2.1vw, 2.6rem) * var(--ls-fit, 1)); }
.ls-leaderboard h2 { font-size: 1.6em; margin: 0 0 .6em; }
/* The winner is the payoff of the whole session and used to be an ordinary first row. */
.ls-winner { font-size: 1.9em; font-weight: 700; margin: 0 0 .5em; color: var(--lp-t-accent); text-wrap: balance; }
.ls-winner .n { color: var(--lp-t-text); }
/* The burst sits over everything and is never interactive. */
.lp-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 40; }
.ls-leaderboard ol { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: .25em; }
.ls-toolbar { position: fixed; left: 50%; bottom: 1.2vw; transform: translateX(-50%); display: flex; gap: .4vw; background: color-mix(in srgb, var(--lp-t-bg) 92%, black); border: 1px solid var(--lp-line); border-radius: 999px; padding: .5vw .7vw; opacity: .25; transition: opacity .2s; z-index: 5; }
.ls-toolbar:hover, .ls-toolbar:focus-within { opacity: 1; }
.ls-toolbar button { font: inherit; font-size: clamp(.8rem, 1.15vw, 1.3rem); background: transparent; color: var(--lp-t-text); border: 0; border-radius: 999px; padding: .45vw 1.1vw; cursor: pointer; }
.ls-toolbar button.is-primary { background: var(--lp-t-accent); color: var(--lp-t-on-accent); font-weight: 600; }
.ls-toolbar button:focus-visible { outline: 2px solid var(--lp-t-accent); }
.ls-compact .ls-head { display: none; }
/* With the header gone, .ls-main is the only grid item and would land in the `auto` row above —
   sizing to its content and leaving the bottom of the slide empty. Give it the one row it needs. */
.ls-compact .ls-root { grid-template-rows: minmax(0, 1fr); }
.ls-compact .ls-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 1.6vw 2.4vw 2vw; gap: 1.2vw; }
.ls-compact .ls-join { flex-direction: row; justify-content: flex-start; gap: 2vw; padding: 1.2vw 1.6vw; text-align: left; border-radius: 1.2vw; }
.ls-compact .ls-join-label { display: none; }
.ls-compact .ls-join-url::before { content: 'Join at'; display: block; font-size: .65em; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-muted); }
/* The join strip is below the stage, not on it, so it may use the viewport — but a PowerPoint frame
   is often far wider than it is tall, and a width-only size ate a third of it. Bound it by height too. */
.ls-compact .ls-qr { width: min(7vw, 15vh); margin: 0; padding: .4vw; border-radius: .6vw; }
.ls-compact .ls-join-url { font-size: min(clamp(.9rem, 1.6vw, 1.8rem), 4.5vh); }

.ls-compact .ls-join-code { font-size: min(clamp(1.6rem, 3.4vw, 3.6rem), 9vh); margin-left: auto; }
.ls-compact .ls-join-resp { display: none; }
.ls-compact .ls-join { padding: min(1.2vw, 2vh) 1.6vw; }
.ls-compact .ls-prompt { font-size: calc(clamp(1.3rem, 3.2vw, 3.4rem) * var(--ls-fit, 1)); margin-bottom: .35em; }
.ls-compact .ls-idle { padding: 1vw; gap: min(1.2vw, 2vh); }
.ls-compact .ls-idle-code { font-size: min(clamp(2.4rem, 7vw, 8rem), 24vh); }
@media (max-width: 820px) { .ls-main { grid-template-columns: 1fr; } .ls-join { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4vw; padding: 3vw; } .ls-join-resp { margin: 0; padding-top: 0; border-top: 0; width: auto; } .lp-screen { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .ls-joiner, .lp-bar-fill, .lp-col-fill, .lp-word, .lp-word-slot, .lp-rank-row, .lp-rank-item, .lp-wall-card, .lp-qa-row, .lp-lb-row, .lp-donut-seg, .lp-legend-item { transition: none !important; } .lp-pulse, .ls-pulse, .lp-spinner, .lp-word, .lp-qa-spot, .ls-room-dot, .ls-idle-hint .n, .is-leaving, .is-entering, .is-entering > *, .is-entering .ls-status, .is-entering .ls-prompt, .is-entering .ls-results, .is-entering .ls-collecting, .is-revealing .is-correct, .lp-donut-seg, .lp-region-svg.is-revealing .lp-region, .is-arriving, .ls-headline.is-landing { animation: none !important; } }

/* ── report ───────────────────────────────────────────────────────────────── */
.lp-report .lp-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; background: #fff; border-bottom: 1px solid var(--lp-line); }
.lp-report .lp-logo { max-height: 40px; }
.lp-report .lp-head-text { flex: 1; }
.lp-report .lp-title { font-family: var(--lp-serif); font-size: 1.7rem; font-weight: 400; color: var(--lp-ink); }
.lp-report .lp-app { color: var(--lp-muted); flex: none; }
.lp-print { width: auto; }
#lp-report { max-width: 900px; margin: 0 auto; padding: 1rem; }
.lp-report-card { break-inside: avoid; }
.lp-report-card .lp-report-n { font-size: .8rem; font-weight: 700; color: var(--lp-t-accent); letter-spacing: .08em; text-transform: uppercase; }
.lp-report-card .lp-prompt { margin-top: .2rem; }
@media print { .lp-print { display: none; } body { background: #fff; } .lp-card { box-shadow: none; border: 1px solid #ddd; } }

/* ── inside the Blazor admin app ──────────────────────────────────────────── */
.lp-view-host { min-height: 3rem; }
.lp-join-card .lp-join-qr { width: 112px; height: 112px; border: 1px solid var(--lp-line); border-radius: 8px; background: #fff; flex: none; }
.lp-join-code-big { font-size: 2rem; font-weight: 700; letter-spacing: .18em; color: var(--lp-navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.lp-console-prompt { font-size: 1.35rem; font-weight: 600; }
.lp-timer-chip { font-variant-numeric: tabular-nums; font-weight: 700; }

/* presenter console: run of show · stage · room drawer */
.lpc-top { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.lpc-meta { display: flex; align-items: center; gap: .6rem; color: var(--lp-muted); font-size: .9rem; margin-top: .35rem; flex-wrap: wrap; }
.lpc-code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-weight: 600; letter-spacing: .12em; color: var(--lp-ink); background: #fff; border: 1px solid var(--lp-line); border-radius: 6px; padding: .1rem .5rem; cursor: pointer; }
.lpc-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 991px) { .lpc-body { grid-template-columns: 1fr; } }
.lpc-rail { display: flex; flex-direction: column; gap: .15rem; }
.lpc-rail-hd { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-muted); font-weight: 600; padding: .2rem .6rem .5rem; display: flex; justify-content: space-between; }
.lpc-step { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .55rem .6rem; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.lpc-step:hover { background: color-mix(in srgb, var(--lp-ink) 4%, transparent); }
.lpc-step .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 600; color: var(--lp-muted); border: 1px solid var(--lp-line); background: #fff; }
.lpc-step .q { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; font-size: .92rem; }
.lpc-step .q small { display: block; font-size: .74rem; color: var(--lp-muted); }
.lpc-step .dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--lp-line); }
.lpc-step.is-done .n { background: var(--lp-navy); color: #fff; border-color: var(--lp-navy); }
.lpc-step.is-done .dot { background: var(--lp-slate); border-color: var(--lp-slate); }
.lpc-step.is-selected:not(.is-cur) { border-color: var(--lp-line); background: #fff; }
.lpc-step.is-cur { background: #fff; border-color: var(--lp-line); box-shadow: 0 2px 8px rgba(13,36,71,.08); }
.lpc-step.is-cur .n { background: var(--lp-teal); border-color: var(--lp-teal); color: #06122A; }
.lpc-step.is-cur .dot { background: var(--lp-teal); border-color: var(--lp-teal); box-shadow: 0 0 0 3px rgba(0,197,168,.25); }
.lpc-stage { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.lpc-now { display: flex; align-items: center; gap: .6rem; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-muted); font-weight: 600; flex-wrap: wrap; }
.lpc-now .r { margin-left: auto; letter-spacing: 0; text-transform: none; font-weight: 500; font-size: .9rem; font-variant-numeric: tabular-nums; }
.lpc-q { font-size: 1.5rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.lpc-bar { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.lpc-quiet { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.lpc-quiet button { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--lp-navy); text-decoration: underline; text-decoration-color: var(--lp-line); text-underline-offset: .3em; cursor: pointer; }
.lpc-quiet button:hover { text-decoration-color: var(--lp-navy); }
.lpc-more { margin-left: auto; display: flex; align-items: center; gap: .8rem; font-size: .85rem; color: var(--lp-muted); }
.lpc-more kbd, .lpc-keys kbd, .lpc-help kbd { font-family: inherit; background: #fff; border: 1px solid var(--lp-line); border-bottom-width: 2px; border-radius: 5px; padding: 0 .4rem; color: var(--lp-navy); font-weight: 600; }
/* "On the screen" must mean it. The console sets --lp-t-bg/text/accent inline from the session's own
   look; everything else is derived here exactly as .lp-screen derives it, so a light or custom theme
   previews in its real colours instead of the navy this rule used to hard-code. */
.lpc-prev { background: var(--lp-t-bg); border-radius: 14px; padding: 1rem 1.25rem 1.1rem; color: var(--lp-t-text); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); gap: .7rem 1.6rem; min-height: 300px;
  --lp-t-bg: #091A36; --lp-t-text: #EEF3FA; --lp-t-accent: var(--lp-teal);
  --lp-ink: var(--lp-t-text);
  --lp-muted: color-mix(in srgb, var(--lp-t-text) 62%, var(--lp-t-bg));
  --lp-line: color-mix(in srgb, var(--lp-t-text) 14%, transparent);
  --lp-track: color-mix(in srgb, var(--lp-t-text) 10%, transparent);
  --lp-card: color-mix(in srgb, var(--lp-t-text) 6%, var(--lp-t-bg)); }
.lpc-prev .h { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-muted); }
.lpc-prev .h i { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-t-accent); }
.lpc-prev .h .sp { flex: 1; }
.lpc-prev .body { min-width: 0; display: flex; flex-direction: column; justify-content: center; font-size: 1.05rem; }
.lpc-prev .side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding-left: 1.4rem; border-left: 1px solid var(--lp-line); }
.lpc-prev .side .code { font-size: 1.5rem; font-weight: 700; letter-spacing: .2em; color: var(--lp-t-accent); font-variant-numeric: tabular-nums; }
.lpc-prev .side img { width: 84px; height: 84px; border-radius: 8px; background: #fff; padding: 4px; }
.lpc-prev .side .u { font-size: .75rem; color: var(--lp-muted); text-align: center; }
.lpc-prev .lp-empty, .lpc-prev .lp-rating-sub, .lpc-prev .lp-col-value, .lpc-prev .lp-wall-name { color: var(--lp-muted); }
.lpc-prev .lp-bar-value strong, .lpc-prev .lp-rating-mean { color: var(--lp-t-text); }
@media (max-width: 767px) { .lpc-prev { grid-template-columns: 1fr; } .lpc-prev .side { border-left: 0; padding-left: 0; flex-direction: row; } }
.lpc-next { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; background: #fff; border: 1px solid var(--lp-line); border-radius: 12px; flex-wrap: wrap; }
.lpc-next .lbl { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-muted); font-weight: 600; }
.lpc-next .q { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.lpc-next .q small { color: var(--lp-muted); font-weight: 400; }
.lpr-filter { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .6rem .9rem; background: #fff; border: 1px solid var(--lp-line); border-radius: 12px; }
.lpc-layout { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: .75rem; }
.lpc-layout .lbl { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-muted); font-weight: 600; margin-right: .35rem; }
.lpc-layout .text-muted { margin-left: .35rem; }
.lpc-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; box-shadow: -8px 0 32px rgba(13,36,71,.15); z-index: 1045; display: flex; flex-direction: column; }
.lpc-drawer .hd { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--lp-line); }
.lpc-drawer .bd { padding: 1rem 1.2rem; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 1.2rem; }
.lpc-backdrop { position: fixed; inset: 0; background: rgba(13,36,71,.25); z-index: 1040; }
.lpc-people { max-height: 40vh; overflow: auto; }
.lpc-people .p { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; border-top: 1px solid var(--lp-line); font-size: .92rem; }
.lpc-people .p i { width: 26px; height: 26px; border-radius: 50%; background: var(--lp-bg); color: var(--lp-navy); display: grid; place-items: center; font-size: .7rem; font-weight: 600; font-style: normal; flex: none; }
.lpc-people .p .sp { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpc-help { position: fixed; inset: 0; background: rgba(13,36,71,.5); z-index: 1050; display: grid; place-items: center; }
.lpc-help .card { width: min(420px, 92vw); }
.lpc-help td:first-child { width: 3.5rem; }

/* session editor: questions list, type picker, look card */
.lpe-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.25rem; align-items: start; }
@media (max-width: 991px) { .lpe-body { grid-template-columns: 1fr; } }
.lpe-main { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.lpe-side { display: flex; flex-direction: column; gap: .8rem; }
.lpe-side .card-body h6 { font-weight: 600; margin-bottom: .6rem; }
.lpe-save { color: var(--lp-muted); }
.lpe-act { background: #fff; border: 1px solid var(--lp-line); border-radius: 12px; }
.lpe-act.is-open { border-color: var(--lp-navy); }
.lpe-act.is-live { border-color: var(--lp-teal); }
.lpe-act-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .7rem .9rem; cursor: pointer; }
.lpe-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--lp-bg); color: var(--lp-navy); display: grid; place-items: center; font-weight: 700; font-size: .95rem; flex: none; }
.lpe-act-q { font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.lpe-act-m { font-size: .82rem; color: var(--lp-muted); }
.lpe-act-acts { display: flex; gap: .25rem; }
.lpe-act-editor { border-top: 1px solid var(--lp-line); padding: .5rem .5rem .5rem 2.9rem; }
.lpe-act-editor .card { border: 0; }
.lpe-act-editor .card-body { padding: .5rem .4rem .8rem; }
.lpe-key { width: 26px; height: 26px; border-radius: 7px; background: var(--lp-bg); color: var(--lp-muted); font-size: .72rem; font-weight: 700; display: grid; place-items: center; flex: none; }
.lpe-correct { white-space: nowrap; font-size: .75rem; }
/* "How the results look": the controls on the left, a live preview of them on the right, drawn in
   the session's own colours (--lp-t-* come in as an inline style from the session editor). */
.lpe-look-block { border-top: 1px solid var(--lp-line); padding-top: .8rem; }
/* The fields column must fit "Leading answer only" plus the chevron gutter, or the select clips its
   own text under the chevron — a select truncates, it does not ellipsize. */
.lpe-look-grid { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: .9rem; align-items: start; }
@media (max-width: 767.98px) { .lpe-look-grid { grid-template-columns: minmax(0, 1fr); } }
/* Wide enough for the longest option plus the chevron gutter: "Leading answer only" was being
   clipped under the chevron at 11rem. */
.lpe-look-fields select { width: 100%; max-width: 14.5rem; }
.lpe-look-preview { background: var(--lp-t-bg); color: var(--lp-t-text); border-radius: 12px; padding: .7rem .9rem .9rem; font-size: .85rem; min-height: 7.5rem;
  --lp-ink: var(--lp-t-text);
  --lp-muted: color-mix(in srgb, var(--lp-t-text) 62%, var(--lp-t-bg));
  --lp-track: color-mix(in srgb, var(--lp-t-text) 10%, transparent); }
.lpe-look-preview .h { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-muted); margin-bottom: .5rem; }
.lpe-picker-card { border-style: dashed; }
.lpe-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.lpe-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; text-align: left; font: inherit; background: #fff; border: 1px solid var(--lp-line); border-radius: 10px; padding: .7rem .8rem; cursor: pointer; color: var(--lp-ink); }
.lpe-tile:hover, .lpe-tile:focus-visible { border-color: var(--lp-navy); outline: none; box-shadow: 0 2px 8px rgba(13,36,71,.08); }
.lpe-tile b { font-size: .95rem; }
.lpe-tile span:last-child { font-size: .8rem; color: var(--lp-muted); line-height: 1.3; }
.lpe-tile .lpe-ico { width: 28px; height: 28px; }
.lpe-tile.is-ai { border-color: #0A9A86; background: #D8F5F0; }
.lpe-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.lpe-preset { font: inherit; font-size: .8rem; color: var(--lp-muted); background: #fff; border: 1.5px solid var(--lp-line); border-radius: 10px; padding: .45rem; display: flex; flex-direction: column; gap: .4rem; cursor: pointer; text-align: left; }
.lpe-preset.is-on { border-color: #0A9A86; color: var(--lp-ink); font-weight: 500; }
.lpe-preset:disabled { cursor: default; }
.lpe-preset .sw { height: 34px; border-radius: 6px; display: flex; align-items: flex-end; padding: 5px; gap: 3px; }
.lpe-preset .sw i { display: block; height: 7px; border-radius: 2px; flex: 1; }
.lpe-colors { display: grid; grid-template-columns: minmax(0, 1fr) 36px 110px; gap: .4rem .6rem; align-items: center; font-size: .9rem; }
.lpe-colors label { margin: 0; }
.lpe-colors label small { display: block; color: var(--lp-muted); font-size: .76rem; }
.lpe-colors input[type=color] { width: 36px; height: 30px; padding: 0; border: 1px solid var(--lp-line); border-radius: 6px; background: none; cursor: pointer; }
.lpe-hex { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; text-transform: uppercase; }
.lpe-preview { border-radius: 10px; padding: .6rem .8rem; display: flex; flex-direction: column; gap: .35rem; }
.lpe-preview-code { font-weight: 700; letter-spacing: .2em; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.lpe-preview-bar { display: block; height: 8px; border-radius: 4px; background: rgba(127,127,127,.25); overflow: hidden; }
.lpe-preview-bar i { display: block; height: 100%; border-radius: 4px; }
.lpe-logo { max-height: 40px; max-width: 160px; border: 1px solid var(--lp-line); border-radius: 6px; padding: 3px; background: #fff; }
.lpe-set { padding: .35rem 0; }
.lpe-set small { display: block; color: var(--lp-muted); font-size: .78rem; margin-left: 2.5em; margin-top: -.15rem; }

/* session editor: summary strip · tabs · settings as headed sections (not cards) */
.lpe-summary { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.lpe-chip { font: inherit; font-size: .78rem; line-height: 1.2; display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--lp-line); background: #fff; color: var(--lp-ink); border-radius: 999px; padding: .2rem .65rem .2rem .5rem; cursor: pointer; max-width: 22rem; }
.lpe-chip i { color: var(--lp-teal); font-size: .85rem; }
.lpe-chip.is-off { color: var(--lp-muted); background: transparent; }
.lpe-chip.is-off i { color: var(--lp-line); }
.lpe-chip:hover { border-color: var(--lp-navy); }
.lpe-chip:focus-visible { outline: 2px solid var(--lp-teal); outline-offset: 2px; }
.lpe-tabs { display: flex; gap: 1.75rem; border-bottom: 1px solid var(--lp-line); margin: .75rem 0 1.25rem; }
.lpe-tab { font: inherit; font-weight: 500; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: .6rem 0; color: var(--lp-muted); cursor: pointer; }
.lpe-tab:hover { color: var(--lp-ink); }
.lpe-tab.is-active { color: var(--lp-ink); font-weight: 600; border-bottom-color: var(--lp-teal); }
.lpe-tab:focus-visible { outline: 2px solid var(--lp-teal); outline-offset: -2px; border-radius: 4px; }
.lpe-tab-n { font-size: .72rem; font-weight: 600; background: var(--lp-track); color: var(--lp-slate); border-radius: 999px; padding: 0 .45rem; margin-left: .4rem; vertical-align: 1px; }
.lpe-questions { max-width: 920px; display: flex; flex-direction: column; gap: .6rem; }
.lpe-share { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3.5rem; align-items: start; }
@media (max-width: 991px) { .lpe-share { grid-template-columns: 1fr; } }
/* Settings: one column, ordered by importance; folded groups carry their current values in the header. */
/* Two columns on wide screens (Essentials left, the folded groups stacked right), one below 992px. */
.lpe-settings { max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem 1.5rem; align-items: start; }
@media (max-width: 991px) { .lpe-settings { grid-template-columns: 1fr; max-width: 620px; } }
.lpe-stack { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.lpe-group { background: #fff; border: 1px solid var(--lp-line); border-radius: 12px; }
.lpe-group-h { display: flex; align-items: baseline; gap: .75rem; padding: .8rem 1rem; font-weight: 650; color: var(--lp-ink); list-style: none; }
.lpe-group-h::-webkit-details-marker { display: none; }
.lpe-group-h small { margin-left: auto; font-weight: 400; font-size: .8rem; color: var(--lp-muted); text-align: right; min-width: 0; }
.lpe-group-h .bi { color: var(--lp-muted); font-size: .8rem; flex: none; transition: transform .15s ease; }
details.lpe-group > .lpe-group-h { cursor: pointer; }
details.lpe-group > .lpe-group-h:hover { color: var(--lp-navy); }
details.lpe-group > .lpe-group-h:focus-visible { outline: 2px solid var(--lp-teal); outline-offset: -2px; border-radius: 12px; }
details.lpe-group[open] > .lpe-group-h .bi { transform: rotate(180deg); }
details.lpe-group[open] > .lpe-group-h, section.lpe-group > .lpe-group-h { border-bottom: 1px solid var(--lp-line); }
.lpe-group-b { padding: .1rem 1rem 1rem; }
.lpe-field { margin-top: .9rem; }
.lpe-lbl { display: block; font-size: .85rem; font-weight: 600; color: var(--lp-ink); margin-bottom: .3rem; text-transform: none; letter-spacing: 0; }
.lpe-help { font-size: .78rem; color: var(--lp-muted); margin-top: .3rem; }
.lpe-sub-h { font-size: .9rem; font-weight: 650; color: var(--lp-ink); margin: 1.4rem 0 .5rem; display: flex; align-items: baseline; }
.lpe-sub-h small { margin-left: auto; font-weight: 400; font-size: .76rem; color: var(--lp-muted); }
.lpe-look-row { display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.lpe-look-sw { width: 36px; height: 24px; border-radius: 6px; border: 1px solid var(--lp-line); display: inline-flex; align-items: flex-end; gap: 2px; padding: 3px; flex: none; }
.lpe-look-sw i { display: block; flex: 1; height: 5px; border-radius: 2px; }
/* A switch next to a label that wraps must keep its own size, not stretch to the label's height. */
.lpe-group-b .form-switch .form-check-input { flex: none; align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .lpe-group-h .bi { transition: none; } }
.lpe-col { display: flex; flex-direction: column; gap: 1.9rem; min-width: 0; }
.lpe-sec { max-width: 540px; }
.lpe-sec-h { font-size: .95rem; font-weight: 650; color: var(--lp-ink); margin: 0 0 .65rem; padding-bottom: .4rem; border-bottom: 1px solid var(--lp-line); display: flex; align-items: baseline; }
.lpe-sec-h small { margin-left: auto; font-weight: 400; font-size: .76rem; color: var(--lp-muted); }
/* Phones: the prompt keeps the full width and the four row actions drop underneath it, right-aligned. */
@media (max-width: 575px) {
  .lpe-act-row { grid-template-columns: auto minmax(0, 1fr); row-gap: .4rem; }
  .lpe-act-acts { grid-column: 1 / -1; justify-content: flex-end; }
  .lpe-questions-hint { display: none; }
}

/* results page */
.lpr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 767px) { .lpr-stats { grid-template-columns: repeat(2, 1fr); } }
.lpr-stats .v { font-size: 1.8rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.lpr-stats .l { font-size: .82rem; color: var(--lp-muted); margin-top: .3rem; }
.lpr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; align-items: start; }
@media (max-width: 991px) { .lpr-grid { grid-template-columns: 1fr; } }

