Files
Plenario/webroot/css/plenario.css
T
gnilebeinandClaude Sonnet 5.5 fc28d158cb
CI / Deploy / PHP 8.4 (push) Successful in 1m12s
CI / Deploy / PHP 8.5 (push) Successful in 1m21s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped
Keep the present menu button at normal height
Enlarge only the arrow glyph, not the button.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 19:20:42 +01:00

837 lines
54 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* PlenarIO stylesheet – no framework, no build step.
* Sections: tokens · base · layout · components · forms · admin · participant · results · presenter
*/
/* ---------------------------------------------------------------- tokens */
:root {
--bg: #f5f6fb;
--surface: #ffffff;
--surface-2: #eef0f8;
--text: #1d1f33;
--muted: #5d6280;
--border: #dde0ee;
--primary: #4b3fe0;
--primary-ink: #ffffff;
--primary-soft: #ebe9fd;
--danger: #c42b4b;
--ok: #18865a;
--warn: #a86400;
--radius: 12px;
--shadow: 0 1px 2px rgba(20, 22, 50, .06), 0 4px 16px rgba(20, 22, 50, .05);
--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--c0: #4b3fe0;
--c1: #e0457b;
--c2: #12a08a;
--c3: #f29a1f;
--c4: #2f8fe0;
--c5: #8e44c9;
--qa: #1f6bb0; /* Q&A accent, AA contrast with white text */
--notice-bg: #fff6e0;
--notice-ink: #6b4a00;
--star: #d48500; /* star rating, 3:1 against light surfaces */
--star-empty: #c3c8da;
color-scheme: light;
}
/*
* Theme: data-theme="light|dark" on <html> (set by the theme switch, stored per browser),
* without it the system setting decides. Keep both dark blocks in sync.
*/
:root[data-theme="dark"] {
--bg: #12131d;
--surface: #1b1d2b;
--surface-2: #24263a;
--text: #eceefa;
--muted: #a1a6c3;
--border: #30334a;
--primary: #7f75ff;
--primary-soft: #2a2752;
--qa: #7cc4ff;
--shadow: none;
--notice-bg: #3a2f12;
--notice-ink: #f3d98f;
--star: #ffc233;
--star-empty: #464a66;
color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg: #12131d;
--surface: #1b1d2b;
--surface-2: #24263a;
--text: #eceefa;
--muted: #a1a6c3;
--border: #30334a;
--primary: #7f75ff;
--primary-soft: #2a2752;
--qa: #7cc4ff;
--shadow: none;
--notice-bg: #3a2f12;
--notice-ink: #f3d98f;
--star: #ffc233;
--star-empty: #464a66;
color-scheme: dark;
}
}
/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: var(--font);
line-height: 1.55;
-webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; margin-top: 1.6em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--primary); margin: 0 0 .4em; }
.eyebrow--poll { font-size: 1.35rem; letter-spacing: .05em; margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.hint { font-size: .875rem; color: var(--muted); margin: .25em 0 1em; }
.hint--error { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
/* Honeypot: off-screen instead of display:none, so bots still see and fill it. */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* ---------------------------------------------------------------- layout */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 32px; padding-bottom: 48px; min-height: calc(100vh - 140px); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand__mark { width: 22px; height: 22px; border-radius: 6px; background: conic-gradient(var(--c0) 0 40%, var(--c1) 0 65%, var(--c2) 0 85%, var(--c3) 0); }
.brand__io { color: var(--primary); }
.site-nav { display: flex; gap: 20px; font-size: .95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
/* Phone: brand and tools share the first row, the links sit centered below. */
@media (max-width: 640px) {
.site-header__inner { gap: 0 16px; }
.site-header__inner .header-tools { order: 2; }
.site-header__inner .site-nav { order: 3; flex-basis: 100%; justify-content: center; padding-bottom: 12px; }
}
.site-footer { padding: 24px 16px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--border);
display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--tight { gap: 0 16px; }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 900px) {
.grid--sidebar { grid-template-columns: 1fr; }
}
/* ---------------------------------------------------------------- components */
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 24px;
box-shadow: var(--shadow);
margin-bottom: 24px;
}
.card--narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.card--form { max-width: 720px; }
.card--accent { background: var(--primary-soft); border-color: transparent; }
.card--danger h2 { color: var(--danger); }
.hero { text-align: center; max-width: 760px; margin: 16px auto 40px; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.features-section { margin-top: 16px; }
.features-section h2 { text-align: center; }
.about { margin-top: 32px; max-width: 46rem; margin-inline: auto; text-align: center; color: var(--muted); }
.about h2 { color: inherit; font-size: 1.1rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
/* border colour per type: .type-card--{type} below */
.features__item { padding: 16px; border-radius: var(--radius); background: var(--surface-2); border-top: 4px solid var(--c0); }
.features strong { display: block; }
.features span { color: var(--muted); font-size: .9rem; }
.button {
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
padding: 10px 18px; border-radius: 8px; border: 1px solid var(--border);
background: var(--surface); color: var(--text); font: inherit; font-weight: 600;
text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap;
}
.button:hover { border-color: var(--primary); }
.button:disabled { opacity: .6; cursor: wait; }
.button--primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.button--primary:hover { filter: brightness(1.08); }
/* Split button: main action plus a menu with further views (Präsentieren ▾ → Referentenansicht). */
.split { position: relative; display: inline-flex; }
.split__main { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.split__toggle { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-color: rgba(255, 255, 255, .35); padding-inline: 8px; }
.split__toggle > span[aria-hidden] { font-size: 1.5em; line-height: 0; }
.split__menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; min-width: 260px; max-width: min(340px, 90vw); padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.split__menu[hidden] { display: none; }
.split__item { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.split__item:hover, .split__item:focus-visible { background: var(--primary-soft); }
.split__item small { display: block; margin-top: 2px; color: var(--muted); font-size: .8rem; }
.button--danger { color: var(--danger); }
.button--danger:hover { border-color: var(--danger); }
.button--ghost { border-color: transparent; background: transparent; }
.button--small { padding: 6px 10px; font-size: .85rem; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.button--block { width: 100%; padding: 14px; font-size: 1.05rem; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.badge--ok { background: #dff5ea; color: var(--ok); }
.badge--off { background: #fbe3e8; color: var(--danger); }
.badge--live { background: var(--c1); color: #fff; }
.badge--type-choice { background: #e9e7ff; color: #3a2fc4; }
.badge--type-wordcloud { background: #fde4ee; color: #b12a5d; }
.badge--type-open { background: #dcf5f0; color: #0b7766; }
.badge--type-scale { background: #fdeed8; color: #9a5a00; }
.badge--type-content { background: #e3eefb; color: #1f6bb0; }
.badge--type-quiz { background: #f1e3fb; color: #7a2fb0; }
.badge--type-youtube { background: #fde4e1; color: #b3261e; }
.badge--type-qa { background: #dff1fb; color: #0b5f8a; }
.badge--type-order { background: #e6f4dc; color: #3d6b12; }
.message { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; cursor: pointer; background: var(--surface-2); border-left: 4px solid var(--muted); }
.message.success { border-color: var(--ok); }
.message.error { border-color: var(--danger); }
.message.warning { border-color: var(--warn); }
.message.hidden { display: none; }
.notice { padding: 12px 16px; border-radius: 8px; background: var(--notice-bg); color: var(--notice-ink); margin-bottom: 24px; font-size: .95rem; }
.devnote { margin-top: 24px; padding: 16px; border: 2px dashed var(--warn); border-radius: var(--radius); }
.icon-circle { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: var(--primary-soft); color: var(--primary); }
.empty { padding: 24px; border: 2px dashed var(--border); border-radius: var(--radius); color: var(--muted); text-align: center; }
/* ---------------------------------------------------------------- forms */
form .input { margin-bottom: 16px; }
form .input label { display: block; font-weight: 600; margin-bottom: 6px; }
form .input.checkbox label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
form .input.checkbox input { margin-top: 5px; }
input[type=text], input[type=email], input[type=number], input[type=url], select, textarea {
width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
background: var(--surface); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus, .button:focus-visible { outline: 3px solid var(--primary-soft); border-color: var(--primary); }
textarea { resize: vertical; }
.input-short { max-width: 160px; }
.input-code { text-transform: uppercase; letter-spacing: .15em; font-weight: 700; }
.input-code--big { font-size: 2rem; text-align: center; padding: 16px; }
.error-message { color: var(--danger); font-size: .875rem; margin-top: 4px; }
.input.error input, .input.error textarea { border-color: var(--danger); }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
/* ---------------------------------------------------------------- admin */
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { margin-bottom: .2em; word-break: break-word; }
.admin-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.slide-list { list-style: none; padding: 0; margin: 0 0 16px; }
.slide-item {
display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; align-items: center;
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
padding: 14px 16px; margin-bottom: 10px;
}
.slide-item--current { border-color: var(--c1); box-shadow: 0 0 0 2px rgba(224, 69, 123, .15); }
.slide-item--hidden { border-style: dashed; background: var(--surface-2); }
.slide-item--hidden .slide-item__body { opacity: .75; }
.slide-item__pos {width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; }
.slide-item__lead { display: flex; align-items: center; gap: 4px; }
.slide-list__hint { font-size: .85rem; margin: 0 0 8px; }
.drag-handle {
width: 32px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px;
background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1;
cursor: grab; touch-action: none; user-select: none;
}
.drag-handle:hover { background: var(--surface-2); }
.drag-handle:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
.slide-list--sorting, .slide-list--sorting * { cursor: grabbing !important; user-select: none; }
.slide-item--dragging { position: relative; z-index: 2; opacity: .95; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); border-color: var(--c1); }
.slide-item--saving { transition: opacity .2s; opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
.slide-item { transition: box-shadow .15s; }
}
.slide-item__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .85rem; margin-bottom: 4px; }
.slide-item__title { font-weight: 600; color: var(--text); text-decoration: none; word-break: break-word; }
.slide-item__options { margin: 4px 0 0; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slide-embed { margin-top: 6px; font-size: .85rem; }
.slide-embed summary { cursor: pointer; color: var(--muted); width: max-content; }
.slide-embed summary:hover { color: var(--text); }
.slide-embed .copy-field { margin-top: 6px; }
.slide-embed input { min-width: 0; flex: 1; }
.slide-item__actions { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-start; }
.button--icon { min-width: 40px; min-height: 36px; padding: 6px 8px; font-size: 1.05rem; }
.type-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.type-card { display: block; padding: 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text); border-top: 4px solid var(--c0); }
.type-card:hover { border-color: var(--primary); }
.type-card strong { display: block; }
.type-card span { font-size: .85rem; color: var(--muted); }
.type-card--wordcloud { border-top-color: var(--c1); }
.type-card--open { border-top-color: var(--c2); }
.type-card--scale { border-top-color: var(--c3); }
.type-card--content { border-top-color: var(--c4); }
.type-card--quiz { border-top-color: var(--c5); }
.type-card--youtube { border-top-color: #d93025; }
.type-card--qa { border-top-color: #0b8bc9; }
/* ---------------------------------------------------------------- slide form: youtube */
.youtube-status { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.youtube-status:empty { display: none; }
.youtube-status.is-ok { color: var(--ok); }
.youtube-status.is-error { color: var(--danger); }
.youtube-preview { margin: 0 0 16px; }
.youtube-preview iframe, .stage__media iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; background: #000; }
.video-link { margin: 16px 0 12px; }
.share-field input { min-width: 0; }
/* ---------------------------------------------------------------- slide form: quiz answers */
.quiz-options { border: 0; padding: 0; margin: 0 0 16px; }
.quiz-options legend { font-weight: 600; margin-bottom: 4px; }
.quiz-options__list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.quiz-option { display: flex; gap: 10px; align-items: center; }
.quiz-option input[type=text] { flex: 1; margin: 0; }
.quiz-option__correct { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; padding: 8px 10px; border: 2px solid var(--border); border-radius: 8px; cursor: pointer; font-weight: 600; }
.quiz-option__correct:has(input:checked) { border-color: var(--ok); color: var(--ok); }
.quiz-option__correct input { width: 18px; height: 18px; margin: 0; accent-color: var(--ok); }
.quiz-options.error .quiz-options__list input[type=text] { border-color: var(--danger); }
/* ordering slide editor (rows in the correct order, sortable) */
.order-options { border: 0; padding: 0; margin: 0 0 16px; }
.order-options legend { font-weight: 600; margin-bottom: 4px; }
.order-options__list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.order-option { display: flex; gap: 6px; align-items: center; background: var(--surface); border-radius: 8px; }
.order-option input[type=text] { flex: 1; margin: 0; }
.order-option__pos { min-width: 2em; text-align: right; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.order-options.error .order-options__list input[type=text] { border-color: var(--danger); }
/* radio cards: PDF export (public/complete version), scale style (numbers/stars) */
.export-choice, .scale-style { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.export-choice legend, .scale-style legend { font-weight: 600; margin-bottom: 4px; }
.export-choice label, .scale-style label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 2px solid var(--border); border-radius: 8px; cursor: pointer; }
.export-choice label:has(input:checked), .scale-style label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.export-choice input, .scale-style input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.export-choice strong { display: block; }
.export-choice .hint { display: block; margin: 2px 0 0; }
/* shared by sortable form lists */
.is-sorting, .is-sorting * { cursor: grabbing !important; user-select: none; }
.is-dragging { position: relative; z-index: 2; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.join-code { font-size: 2rem; font-weight: 800; letter-spacing: .12em; text-align: center; margin: 0 0 12px; }
.qr { display: block; margin: 0 auto 16px; background: #fff; border-radius: 8px; padding: 6px; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-size: .85rem; }
/* ---------------------------------------------------------------- participant */
.participant .main { max-width: 640px; }
.participant .site-nav { display: none; }
/* Slide headings must read well on phones: bigger than the generic h1 on small screens. */
.participant-view h1 { font-size: clamp(1.75rem, 6vw, 2.4rem); line-height: 1.2; word-break: break-word; }
.choices { display: grid; gap: 10px; margin: 16px 0 20px; }
.choice { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: 500; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice input { width: 20px; height: 20px; accent-color: var(--primary); }
.word-input { margin-bottom: 10px; }
.word-entry .word-input { margin-bottom: 0; }
/* In the flow (not absolute) so it pushes message and button down instead of covering them. */
.suggestions { margin: 4px 0 0; padding: 4px; max-height: 50vh; overflow-y: auto; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.suggestion { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.suggestion:hover, .suggestion.is-active { background: var(--primary-soft); }
.suggestion.is-mine { cursor: default; opacity: .6; }
.suggestion__text { font-weight: 600; word-break: break-word; }
.suggestion__meta { font-size: .8rem; color: var(--muted); white-space: nowrap; align-self: center; }
.word-message { min-height: 1.4em; margin: 8px 0 0; font-size: .9rem; color: var(--ok); }
.word-message.is-error { color: var(--danger); }
.own-words { margin-top: 20px; }
.own-words__heading { font-size: 1rem; margin: 0 0 4px; }
.own-words__list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.own-words__item { display: inline-flex; align-items: center; gap: 2px; padding: 2px 2px 2px 12px; border-radius: 999px; background: var(--primary-soft); overflow-wrap: anywhere; }
.own-words__item.is-down { background: var(--surface-2); color: var(--muted); }
.own-words__remove { min-width: 36px; min-height: 36px; border: 0; border-radius: 999px; background: transparent; color: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.own-words__remove:hover, .own-words__remove:focus-visible { background: var(--border); }
.vote-form textarea { margin: 12px 0 16px; }
.vote-form .button { margin-top: 12px; }
.scale { display: flex; gap: 6px; margin: 20px 0 6px; }
.scale__step { flex: 1; }
.scale__step input { position: absolute; opacity: 0; }
.scale__step span { display: block; text-align: center; padding: 14px 0; border: 2px solid var(--border); border-radius: 8px; font-weight: 700; cursor: pointer; }
.scale__step input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }
.scale__step input:focus-visible + span { outline: 3px solid var(--primary-soft); }
.scale__labels { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
/* star rating: stars up to the checked (or hovered) one are filled; :has() keeps the DOM order 1..n for arrow keys */
.stars { display: flex; justify-content: center; margin: 20px 0 6px; }
.stars__star { position: relative; padding: 0 4px; cursor: pointer; font-size: clamp(2.4rem, 13vw, 3.4rem); line-height: 1; color: var(--star); }
.stars--many .stars__star { padding: 0 1px; font-size: clamp(1.5rem, 7.5vw, 2.4rem); }
.stars__star input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.stars__icon { display: block; transition: color .15s, transform .15s; }
/* :where() keeps these weaker than the hover preview below */
:where(.stars:not(:has(input:checked))) .stars__star, :where(.stars__star:has(input:checked)) ~ .stars__star { color: var(--star-empty); }
.stars__star:has(input:focus-visible) .stars__icon { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
@media (hover: hover) {
.stars:hover .stars__star { color: var(--star); }
.stars .stars__star:hover ~ .stars__star { color: var(--star-empty); }
.stars__star:hover .stars__icon { transform: scale(1.12); }
}
.done { font-size: 1.1rem; font-weight: 600; color: var(--ok); }
.waiting { padding: 48px 24px; }
.pulse { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); margin: 0 auto 24px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(75, 63, 224, .5); } 100% { box-shadow: 0 0 0 24px rgba(75, 63, 224, 0); } }
.prose { font-size: 1.1rem; }
/* slide texts with *bold*, _italic_, ~strike~ and lists (FormatHelper / Format in plenario.js) */
.muted.formatted { margin: 1em 0; }
.formatted ul { margin: .3em 0; padding-left: 1.3em; text-align: left; }
.formatted li + li { margin-top: .15em; }
.muted.formatted strong { color: var(--text); }
/* quiz (participant) */
.choice--quiz { border-left-width: 8px; border-left-color: var(--c0); font-size: 1.1rem; }
.choice--c1 { border-left-color: var(--c1); }
.choice--c2 { border-left-color: var(--c2); }
.choice--c3 { border-left-color: var(--c3); }
.choice--c4 { border-left-color: var(--c4); }
.choice--c5 { border-left-color: var(--c5); }
.choices--quiz { border: 0; padding: 0; }
.countdown { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 8px 0 0; color: var(--muted); }
.countdown__value { font-size: 2rem; font-variant-numeric: tabular-nums; color: var(--text); }
.countdown.is-urgent .countdown__value { color: var(--danger); }
.verdict { font-size: 1.6rem; font-weight: 800; margin: 12px 0 0; }
.verdict--correct { color: var(--ok); }
.verdict--wrong { color: var(--danger); }
/* ordering slide (participant) */
.order-list { list-style: none; padding: 0; margin: 16px 0 8px; display: grid; gap: 8px; }
.order-item {
display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 4px;
background: var(--surface); border: 2px solid var(--border); border-left: 8px solid var(--c0); border-radius: 10px;
}
.order-item.choice--c1 { border-left-color: var(--c1); }
.order-item.choice--c2 { border-left-color: var(--c2); }
.order-item.choice--c3 { border-left-color: var(--c3); }
.order-item.choice--c4 { border-left-color: var(--c4); }
.order-item.choice--c5 { border-left-color: var(--c5); }
.order-item.is-dragging { border-color: var(--primary); }
.order-item__pos { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: .9rem; }
.order-item__label { flex: 1; min-width: 0; font-weight: 600; word-break: break-word; }
.order-item__moves { display: flex; gap: 4px; flex: none; }
.order-move {
width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 8px;
background: var(--surface-2); color: var(--text); font-size: 1rem; cursor: pointer;
}
.order-move:hover { border-color: var(--primary); }
.order-move:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
.order-item:first-child .order-move[data-move=up], .order-item:last-child .order-move[data-move=down] { opacity: .35; }
.order-item .drag-handle { height: 44px; }
/* ---------------------------------------------------------------- results (shared) */
.results-empty { color: var(--muted); font-style: italic; }
.is-hidden { visibility: hidden; }
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "track track"; gap: 4px 12px; }
.bar__label { grid-area: label; font-weight: 600; word-break: break-word; }
.bar__value { grid-area: value; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar__track { grid-area: track; height: 14px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar__fill { height: 100%; border-radius: 99px; background: var(--c0); transition: width .6s ease; min-width: 2px; }
.bar--c1 .bar__fill { background: var(--c1); }
.bar--c2 .bar__fill { background: var(--c2); }
.bar--c3 .bar__fill { background: var(--c3); }
.bar--c4 .bar__fill { background: var(--c4); }
.bar--c5 .bar__fill { background: var(--c5); }
/* scale results: average and distribution (donut) side by side, one alone is centred */
.scale-results__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 16px; }
.scale-results__row > * { flex: 1 1 300px; min-width: 0; }
.scale-results__row--single > * { flex: 0 1 640px; }
.average { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 20px; background: var(--surface-2); border-radius: 14px; text-align: center; line-height: 1.1; }
.average__label { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; color: var(--muted); }
.average__value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.average__value strong { font-size: 4rem; font-weight: 800; color: var(--c1); }
.average__of { font-size: 1.6rem; font-weight: 600; color: var(--muted); }
.average__count { font-size: .85rem; color: var(--muted); }
.average__gauge { align-self: stretch; margin: 8px 0 4px; }
.average__track { position: relative; height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--bg), var(--c1)); box-shadow: inset 0 0 0 1px var(--border); }
.average__marker { position: absolute; top: 50%; width: 1.6em; height: 1.6em; margin: -.8em 0 0 -.8em; border-radius: 50%; background: var(--c1); border: .25em solid var(--bg); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: left .6s ease; }
.average__ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.star-meter { position: relative; display: inline-block; max-width: 100%; font-size: 2.6rem; line-height: 1; letter-spacing: .08em; white-space: nowrap; }
.star-meter__base { color: var(--star-empty); }
.star-meter__fill { position: absolute; top: 0; left: 0; overflow: hidden; color: var(--star); transition: width .6s ease; }
.donut { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; padding: 16px 20px; background: var(--surface-2); border-radius: 14px; }
.donut__chart { position: relative; flex: none; display: grid; place-items: center; width: 180px; aspect-ratio: 1; }
/* the hole is masked out, so the card background shows through (gaps between slices are transparent too) */
.donut__ring { position: absolute; inset: 0; border-radius: 50%; -webkit-mask: radial-gradient(farthest-side, transparent 60%, #000 calc(60% + 1px)); mask: radial-gradient(farthest-side, transparent 60%, #000 calc(60% + 1px)); }
.donut__ring--empty { background: var(--border); }
.donut__count { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin: 0; line-height: 1.1; color: var(--muted); font-size: .8rem; }
.donut__count strong { font-size: 2.2em; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.donut__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.donut__legend--wide { grid-template-columns: repeat(2, auto); column-gap: 24px; }
.donut__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.donut__item.is-empty { opacity: .5; }
.donut__swatch { width: .9em; height: .9em; border-radius: 3px; }
.donut__label { font-weight: 600; overflow-wrap: anywhere; }
.donut__value { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .2em .6em; line-height: 1.15; padding: 8px; }
.cloud__word { font-weight: 800; color: var(--c0); transition: font-size .6s ease; }
.cloud__word--c1 { color: var(--c1); }
.cloud__word--c2 { color: var(--c2); }
.cloud__word--c3 { color: var(--c3); }
.cloud__word--c4 { color: var(--c4); }
.cloud__word--c5 { color: var(--c5); }
.cloud__word { display: inline-flex; align-items: baseline; gap: .25em; }
.cloud__count { font-size: max(.75rem, .4em); font-weight: 600; color: var(--muted); white-space: nowrap; }
.cloud__count--up { color: var(--ok); }
.cloud__count--down { color: var(--danger); }
.stage .cloud__count { font-size: max(.9rem, .4em); }
/* Participant cloud: word (+) and − are separate buttons */
.cloud--interactive .cloud__word { gap: .1em; }
.cloud__vote { font: inherit; font-weight: inherit; color: inherit; line-height: 1.15; background: none; border: 2px solid transparent; border-radius: 10px; padding: .05em .3em; cursor: pointer; display: inline-flex; align-items: baseline; gap: .25em; }
.cloud__vote:hover:not(:disabled), .cloud__vote:focus-visible { border-color: currentColor; }
.cloud__vote:disabled { cursor: default; }
.cloud__vote--down { padding: .05em .25em; }
.cloud__word.is-mine .cloud__vote--up, .cloud__word.is-down .cloud__vote--down { background: var(--surface-2); }
.cloud__word.is-down .cloud__vote--up { opacity: .55; }
/* quiz results */
.quiz-status { color: var(--muted); font-style: italic; margin: 0 0 1em; }
.quiz-timer { margin: 0 0 .6em; font-size: 2.6em; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--c5); }
.quiz-timer.is-urgent { color: var(--danger); }
.quiz-timer.is-over { opacity: .5; }
.quiz-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.quiz-tile { padding: .8em 1em; border-radius: 10px; background: var(--surface-2); border-left: .4em solid var(--c0); font-weight: 700; word-break: break-word; }
.quiz-tile--c1 { border-left-color: var(--c1); }
.quiz-tile--c2 { border-left-color: var(--c2); }
.quiz-tile--c3 { border-left-color: var(--c3); }
.quiz-tile--c4 { border-left-color: var(--c4); }
.quiz-tile--c5 { border-left-color: var(--c5); }
.quiz-summary { margin: 0 0 1em; font-size: 1.2em; }
.quiz-summary strong { color: var(--ok); }
.bar--correct .bar__fill { background: var(--ok); }
.bar--correct .bar__label { color: var(--ok); }
.bar--wrong .bar__fill { background: var(--muted); opacity: .6; }
.bar.is-mine .bar__label { text-decoration: underline; text-underline-offset: 3px; }
/* quiz solution on the participant device (no counts) */
.quiz-solution { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.quiz-solution__item { padding: 8px 12px; border-radius: 8px; background: var(--surface-2); }
.quiz-solution__item.is-correct { color: var(--ok); font-weight: 700; }
.quiz-solution__item.is-wrong { color: var(--muted); }
.quiz-solution__item.is-mine { outline: 2px solid currentColor; outline-offset: -2px; }
.quiz-solution__mine { font-weight: 400; }
/* ordering results */
.order-solution { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.order-solution__pos { display: inline-block; min-width: 1.6em; color: var(--muted); font-variant-numeric: tabular-nums; }
.order-solution .bar__fill { background: var(--ok); }
.answers { list-style: none; padding: 0; margin: 0; columns: 280px; column-gap: 12px; }
.answer { break-inside: avoid; background: var(--surface-2); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; word-break: break-word; }
/* Q&A (participants + presenter) */
.qa-form__label { display: block; font-weight: 600; margin-bottom: 6px; }
.qa-message { min-height: 1.4em; margin: 8px 0; font-size: .9rem; color: var(--ok); }
.qa-message.is-error { color: var(--danger); }
.qa-heading { font-size: 1rem; margin: 16px 0 8px; }
.qa-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.qa-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.qa-item__text { flex: 1; min-width: 0; word-break: break-word; position: relative; }
.qa-item__bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--qa); border-radius: 0 4px 4px 0; transition: width .6s ease; }
.qa-item.is-mine { border-left: 4px solid var(--qa); }
.qa-item.is-upvoted { box-shadow: inset 0 0 0 2px var(--qa); }
.qa-item.is-done { opacity: .55; }
.qa-item.is-current { box-shadow: inset 0 0 0 2px var(--c1); }
.qa-votes { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--qa); position: relative; }
.qa-own { font-size: .85rem; color: var(--muted); white-space: nowrap; }
/* Own questions: text on its own row, label and edit/delete below it (otherwise the text gets squeezed on phones). */
.qa-item:has(.qa-own-actions) { flex-wrap: wrap; row-gap: 6px; }
.qa-item:has(.qa-own-actions) .qa-item__text { flex-basis: 100%; }
.qa-own-actions { flex: none; display: inline-flex; gap: 4px; margin-left: auto; }
.qa-own-actions .button { min-height: 36px; }
.qa-item.is-editing { display: block; }
.qa-edit textarea { width: 100%; }
.qa-edit__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.qa-stepper { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.qa-stepper__count { min-width: 3.2em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.qa-stepper.is-active .qa-stepper__count { color: var(--qa); }
/* Phones: voting controls below the question, so the text keeps the full width. */
@media (max-width: 700px) {
.qa-item:has(.qa-stepper) { flex-wrap: wrap; row-gap: 8px; }
.qa-item:has(.qa-stepper) .qa-item__text { flex-basis: 100%; }
.qa-item:has(.qa-stepper) { justify-content: center; }
}
.qa-upvote { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 2px solid var(--qa); background: var(--surface); color: var(--qa); font: inherit; font-size: 1.3rem; font-weight: 700; line-height: 1; cursor: pointer; }
.qa-upvote--up { background: var(--qa); color: var(--surface); }
.qa-upvote:disabled { opacity: .45; cursor: not-allowed; }
.qa-upvote:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.qa-budget { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.qa-budget strong { font-size: 1.4rem; color: var(--qa); }
.qa-budget__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--qa); }
.qa-budget__dot.is-used { background: transparent; box-shadow: inset 0 0 0 2px var(--border); }
.qa-budget__dot:first-of-type { margin-left: 6px; }
.qa-focus { padding: 16px 18px; margin: 0 0 16px; border-radius: 14px; background: var(--surface-2); border-left: 6px solid var(--c1); }
.qa-focus__meta { display: flex; gap: 16px; justify-content: space-between; margin: 0 0 6px; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.qa-focus__text { margin: 0; font-size: 1.3rem; font-weight: 700; word-break: break-word; }
.qa-focus__nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.qa-focus__nav:empty { display: none; }
.qa-list--compact .qa-item { padding: 8px 12px; }
.qa-summary { color: var(--muted); margin: 0 0 1em; }
.qa-vote-hint { text-align: center; padding: 8vh 16px 4vh; }
.qa-vote-hint__title { margin: 0 0 .3em; font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; color: var(--qa); }
.qa-vote-hint__text { margin: 0 auto 1.2em; max-width: 30em; font-size: clamp(1.1rem, 2.6vw, 1.6rem); }
.qa-steps { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: none; }
.qa-steps__step { display: inline-block; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--border); background: transparent; color: var(--muted); font: inherit; font-size: .85em; }
button.qa-steps__step { cursor: pointer; }
button.qa-steps__step:hover:not(:disabled) { color: var(--text); border-color: var(--text); }
.qa-steps .is-current .qa-steps__step { background: var(--qa); border-color: var(--qa); color: var(--surface); font-weight: 700; cursor: default; }
.private-summary { text-align: center; }
.private-summary p { margin: 0 0 .3em; }
.private-summary__count { font-size: 3em; font-weight: 800; line-height: 1; color: var(--c2); font-variant-numeric: tabular-nums; }
.private-summary__hint { color: var(--muted); font-size: .85em; }
.private-hint { margin-top: 8px; }
.answers-page { list-style: none; padding: 0; margin: 0; }
.answers-page li { padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; background: var(--surface); white-space: pre-line; overflow-wrap: anywhere; }
.answers-page time { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.scale-comment { display: block; margin-top: 16px; font-weight: 600; }
.own-comment__label { margin: 16px 0 4px; color: var(--muted); }
.own-comment { margin: 0; padding: 8px 12px; border-left: 3px solid var(--border); overflow-wrap: anywhere; }
.own-comment__edit { margin-top: 12px; }
.own-comment__edit summary { cursor: pointer; color: var(--muted); width: max-content; max-width: 100%; }
.own-comment__edit summary:hover { color: var(--text); }
.comments { position: relative; overflow: hidden; margin-top: 20px; padding: 16px 20px; background: var(--surface-2); border-radius: 14px; }
.comments__counter { margin: 0 0 6px; font-size: .85em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.comments__text { margin: 0; font-size: var(--comment-size); font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.comments__text::before { content: '„'; }
.comments__text::after { content: '“'; }
.comments__value { margin: 0 0 6px; color: var(--muted); font-size: .9em; }
/* all comments share one grid cell (invisible sizers): the box keeps the height of the longest one */
.comments__body { display: grid; }
.comments__body > * { grid-area: 1 / 1; min-width: 0; }
.comments__sizer { visibility: hidden; }
/* at most about 5 lines; longer comments are set smaller by Comments.fit() instead of being cut off */
.comments { --comment-size: 1.25em; --comment-max: 9.5em; }
.comments__sizer, .comments__current { max-height: var(--comment-max); overflow: hidden; }
/* progress until the next comment: the border of the box, two lines from opposite corners
(pathLength 100, dash pattern repeating every half perimeter) that meet when the time is up */
.comments__progress { position: absolute; inset: 0; pointer-events: none; }
.comments__progress[hidden] { display: block; visibility: hidden; } /* paused: no border */
.comments__progress svg { display: block; width: 100%; height: 100%; }
.comments__progress-fill {
x: 2px; y: 2px; width: calc(100% - 4px); height: calc(100% - 4px); rx: 12px;
fill: none; stroke: var(--primary); stroke-width: 4px; stroke-dasharray: 0 50;
}
@keyframes comment-progress {
from { stroke-dasharray: 0 50; }
to { stroke-dasharray: 50 0; }
}
.comments__nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.comments__button { min-width: 44px; min-height: 44px; }
@media (prefers-reduced-motion: no-preference) {
.comments__text.is-entering { animation: comment-in .4s ease-out; }
}
@keyframes comment-in {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: none; }
}
.scale-average { font-size: 1.2rem; margin: 0 0 1em; }
.scale-average strong { font-size: 1.6em; font-variant-numeric: tabular-nums; }
.scale-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.scale-table th, .scale-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.scale-table td:last-child { width: 50%; }
.scale-table__bar { display: block; height: 6px; min-width: 2px; margin-bottom: 4px; border-radius: 3px; background: var(--c2); }
.rating-stars { color: var(--star); letter-spacing: .05em; white-space: nowrap; }
/* ---------------------------------------------------------------- presenter */
/* Dark by default (beamer); the presenter's own switch can make it light (data-theme="light"). */
body.present {
--bg: #0f1020;
--surface-2: #1f2140;
--text: #f3f4ff;
--muted: #a3a7cf;
--tint: 255, 255, 255; /* overlays on the stage: rgba(var(--tint), alpha) */
--stage-glow: #2a1f6e;
--stage-ok: #3ddc97; /* brighter green for contrast on the dark stage */
--overlay-bg: rgba(8, 9, 20, .92);
--star: #ffc233;
--star-empty: #3a3d60;
background: radial-gradient(1200px 600px at 10% -10%, var(--stage-glow) 0%, transparent 60%), var(--bg);
color: var(--text);
overflow: hidden;
}
.stage { display: grid; grid-template-rows: auto 1fr auto; height: 100vh; padding: 20px 4vw; }
:root[data-theme="light"] body.present {
--bg: #f5f6fb;
--surface-2: #e4e7f4;
--text: #1d1f33;
--muted: #4f5473;
--tint: 20, 22, 50;
--stage-glow: #dcd8ff;
--stage-ok: var(--ok);
--overlay-bg: rgba(245, 246, 251, .95);
--star: #d48500;
--star-empty: #c3c8da;
}
/* Speaker view (second window): current slide left, preview of the next one right. */
.stage--speaker { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: auto 1fr auto; column-gap: 3vw; }
.stage--speaker > .stage__top, .stage--speaker > .stage__controls { grid-column: 1 / -1; }
.stage--speaker .stage__question { font-size: clamp(1.5rem, 3vw, 2.6rem); }
.stage--speaker .stage__description { font-size: clamp(1rem, 1.5vw, 1.3rem); }
.stage--speaker .stage__results { font-size: clamp(.9rem, 1.3vw, 1.2rem); }
.stage__next { align-self: center; max-height: 100%; overflow: auto; padding: 2vh 2vw; border: 1px dashed rgba(var(--tint), .3); border-radius: 12px; background: rgba(var(--tint), .05); }
.stage__next-label { text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; font-size: .85rem; margin: 0 0 .6em; }
.stage__next-question { font-size: clamp(1.2rem, 2.2vw, 2rem); margin: 0 0 .4em; }
.stage__next-description { color: var(--muted); font-size: clamp(.95rem, 1.3vw, 1.15rem); margin: 0 0 .8em; }
.stage__next-description:empty, .stage__next-options:empty, .stage__next-note:empty { display: none; }
.stage__next-options { margin: 0 0 .8em; padding-left: 1.2em; font-size: clamp(.95rem, 1.3vw, 1.15rem); }
.stage__next-note { margin: 0; font-size: .9rem; }
.stage__next--end .stage__next-question { color: var(--muted); font-weight: 400; }
@media (max-width: 800px) {
body.present:has(.stage--speaker) { overflow: auto; }
.stage--speaker { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; height: auto; min-height: 100vh; }
.stage__next { align-self: stretch; margin-bottom: 2vh; }
}
.stage__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: clamp(1rem, 1.6vw, 1.4rem); color: var(--muted); }
.stage__top strong { color: var(--text); }
.stage__code { letter-spacing: .12em; background: rgba(var(--tint), .1); padding: 2px 10px; border-radius: 8px; }
.stage__qr { border: 0; padding: 4px; background: #fff; border-radius: 8px; cursor: zoom-in; }
.stage__qr img { display: block; width: 72px; height: 72px; }
.stage__main { display: flex; flex-direction: column; justify-content: center; min-height: 0; overflow: auto; padding: 2vh 0; }
.stage__status { text-transform: uppercase; letter-spacing: .12em; color: var(--c1); font-weight: 700; margin: 0 0 .6em; }
.stage__status:empty { display: none; }
.stage--closed .stage__status { color: var(--muted); }
.stage__question { font-size: clamp(2rem, 4.5vw, 4rem); margin-bottom: .3em; }
.stage__description { font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--muted); margin: 0 0 1em; }
.stage__media { width: min(100%, calc(62vh * 16 / 9)); margin: 1vh auto 0; }
.stage--video .stage__question { font-size: clamp(1.5rem, 3vw, 2.6rem); }
.stage--video .stage__description { font-size: clamp(1rem, 1.6vw, 1.3rem); }
.stage--content .stage__description { color: var(--text); font-size: clamp(1.3rem, 2.6vw, 2.2rem); }
.stage__results { font-size: clamp(1rem, 1.8vw, 1.5rem); margin-top: 2vh; }
/* slide images: above the results (default), next to the text (side) or as large as possible (full) */
.stage__image { margin: 1vh auto 0; }
.stage__image img { display: block; max-width: 100%; max-height: 38vh; width: auto; height: auto; margin: 0 auto; object-fit: contain; border-radius: 8px; }
.stage--img-side .stage__main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-auto-rows: min-content; align-content: center; column-gap: 4vw; }
.stage--img-side .stage__main > * { grid-column: 2; }
.stage--img-side .stage__main > .stage__image { grid-column: 1; grid-row: 1 / span 5; align-self: center; margin: 0; }
.stage--img-side .stage__image img { max-height: 68vh; }
.stage--img-full .stage__image img { max-height: 66vh; }
.stage--img-full .stage__question { font-size: clamp(1.5rem, 3vw, 2.6rem); }
@media (max-width: 800px) {
.stage--img-side .stage__main { display: flex; }
.stage--img-side .stage__image img { max-height: 38vh; }
}
.stage .bar__track { height: 1.1em; }
/* scale on stage: big average next to a compact donut */
.stage .scale-results__row { gap: 2vw; }
.stage .average, .stage .donut { padding: 2.5vh 2.5vw; background: rgba(var(--tint), .06); }
.stage .average__value strong { font-size: clamp(4rem, 9vw, 9rem); }
.stage .average__of { font-size: clamp(1.6rem, 3vw, 3rem); }
.stage .average__label, .stage .average__count, .stage .average__ends { font-size: clamp(.95rem, 1.5vw, 1.4rem); }
.stage .average__track { height: 1em; box-shadow: none; background: linear-gradient(90deg, var(--surface-2), var(--c1)); }
.stage .star-meter { font-size: clamp(2.4rem, 4.5vw, 5rem); }
.stage .scale-results__row--single .star-meter { font-size: clamp(3rem, 7vw, 7rem); }
.stage .donut__chart { width: clamp(150px, 28vh, 340px); }
.stage .donut__count { font-size: clamp(.85rem, 1.3vw, 1.2rem); }
.stage .donut__legend { font-size: clamp(.9rem, 1.4vw, 1.3rem); }
.stage .cloud { font-size: clamp(1.4rem, 2.6vw, 2.6rem); }
.stage .answers { columns: 340px; }
.stage .quiz-timer { font-size: clamp(3rem, 7vw, 6rem); }
.stage .quiz-tile { font-size: clamp(1.2rem, 2.2vw, 2rem); }
.stage .quiz-summary strong, .stage .bar--correct .bar__label { color: var(--stage-ok); }
.stage .bar--correct .bar__fill { background: var(--stage-ok); }
.stage .order-solution .bar__fill { background: var(--stage-ok); }
.stage .qa-steps { font-size: .7em; }
.stage .qa-steps__step { border-color: rgba(var(--tint), .25); }
.stage .qa-item { background: rgba(var(--tint), .06); }
.stage { --qa: #7cc4ff; }
:root[data-theme="light"] .stage { --qa: #1f6bb0; }
.stage .qa-steps .is-current .qa-steps__step { color: var(--bg); }
.stage .qa-focus { background: rgba(var(--tint), .08); padding: 3vh 3vw; }
.stage .qa-focus__meta { font-size: .7em; }
.stage .qa-focus__text { font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.2; }
.stage .qa-list--compact { font-size: .75em; }
.stage--qa .stage__question { font-size: clamp(1.5rem, 3vw, 2.6rem); }
.stage__controls { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; opacity: .35; transition: opacity .2s; padding-top: 12px; }
.stage__controls:hover, .stage__controls:focus-within { opacity: 1; }
.ctrl { min-width: 44px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(var(--tint), .2); background: rgba(var(--tint), .06); color: var(--text); font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.ctrl:hover { background: rgba(var(--tint), .15); }
.ctrl { gap: 6px; }
/* Visible keyboard shortcuts – nobody hovers for tooltips during a talk. */
.ctrl__key { font: inherit; font-size: .8em; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.stage__qr { position: relative; }
.stage__qr .ctrl__key { display: block; margin-top: 2px; color: #444; text-align: center; }
.qr-overlay__hint { font-size: 1rem !important; color: var(--muted); }
@media (hover: none) and (pointer: coarse) {
.ctrl__key { display: none; } /* touch devices usually have no keyboard */
}
.live-indicator { font-size: .8em; color: var(--muted); white-space: nowrap; }
.live-indicator.is-live { color: var(--c1); font-weight: 700; }
/* Embedded slides are smaller than a beamer: keep the controls visible, they are the only ones. */
.stage--embed .stage__controls { opacity: .7; }
.ctrl-counter { color: var(--muted); min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.qr-overlay { position: fixed; inset: 0; background: var(--overlay-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; cursor: zoom-out; z-index: 10; }
.qr-overlay img { width: min(70vh, 80vw); height: auto; background: #fff; border-radius: 16px; padding: 16px; }
.qr-overlay p { font-size: 1.4rem; }
/* ---------------------------------------------------------------- theme switch */
.theme-switch { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.theme-switch:hover { border-color: var(--primary); }
.theme-switch[aria-pressed="true"] { border-color: var(--primary); color: var(--primary); }
.theme-switch[hidden] { display: none; }
.theme-switch__icon { font-size: 1.3em; line-height: 1; }
/* Slide form in a dialog (admin dashboard) */
/* The dialog itself does not scroll (overflow visible), so the close button can sit on its outer corner;
the inner panel carries border, background and scrolling. */
.modal { width: min(720px, calc(100vw - 24px)); padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.modal::backdrop { background: rgba(10, 12, 30, .55); }
.modal__panel {
max-height: calc(100dvh - 24px); overflow: auto;
border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.modal .card--form { max-width: none; margin: 0; border: 0; box-shadow: none; background: transparent; }
.modal__close {
position: absolute; top: -14px; right: -14px; z-index: 1; width: 36px; height: 36px; padding: 0;
display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%;
background: var(--surface); color: var(--text); font-size: 1rem; line-height: 1; cursor: pointer;
box-shadow: var(--shadow);
}
.modal__close:hover { background: var(--surface-2); }
.modal__close:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.modal .message { margin: 16px 16px 0; cursor: default; }
body:has(dialog[open]) { overflow: hidden; }
.slide-item__actions form { display: contents; }
.slide-item__actions button:disabled, .admin-head__actions button:disabled { opacity: .6; cursor: progress; }
/* slide images: participant page and slide form */
.slide-image { margin: 1em 0; }
.slide-image img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 8px; }
.image-fields, .image-fields__layout { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.image-fields > legend { font-weight: 600; padding: 0; margin-bottom: .5em; }
.image-fields__layout > legend { padding: 0; margin-bottom: .25em; }
.image-fields__current { margin: 0 0 .75em; }
.image-fields__current.is-removed img { opacity: .3; filter: grayscale(1); }
.image-fields__remove { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 1em; }
.image-fields__remove .button { display: inline-flex; align-items: center; gap: 6px; }
.image-fields__remove .hint { margin: 0; }
.image-fields__current img { display: block; max-width: 100%; max-height: 180px; width: auto; height: auto; border-radius: 6px; }