@font-face { font-family: "Gabarito"; src: url("../fonts/gabarito-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gabarito"; src: url("../fonts/gabarito-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
/* ---------- screen ---------- */
html.board-page, html.board-page body { height: 100%; overflow: hidden; }
.screen {
  position: fixed; inset: 0; overflow: hidden; background: #a8e6ff;
  background-size: cover; background-position: center; user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.screen .stage { position: absolute; inset: 0; }
.screen { --wa: #6c5ce7; --wa-ink: #5442d6; --wa-soft: #f0eefe; --wa-soft2: #e2ddff; --wa-track: #ecebfb;
  /* text and lines inside widgets (checked by bin/check-contrast.php) */
  --w-ink: #1d2140; --w-muted: #5f6485; --w-line: #e4e6f0; --w-star: #946600; --w-bad: #b4232c; --w-ok-soft: #dcf5e8; }
.screen.look-calm { --wa: #3f5bd8; --wa-ink: #2f47b8; --wa-soft: #e9eefb; --wa-soft2: #dce4fa; --wa-track: #e6eaf2; }

/* ---------- widget frame ---------- */
.widget {
  position: absolute; display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .96); border-radius: clamp(10px, 1.4vmin, 22px);
  box-shadow: 0 2px 4px rgba(20, 24, 60, .08), 0 12px 32px rgba(20, 24, 60, .16);
  color: #1d2140; transition: box-shadow .15s, outline-color .15s;
  outline: 3px solid transparent; outline-offset: 2px;
}
.widget.dragging { box-shadow: 0 4px 10px rgba(20, 24, 60, .12), 0 30px 70px rgba(20, 24, 60, .3); cursor: grabbing; transition: none; }
.widget.selected { outline-color: rgba(108, 92, 231, .7); }
.widget.flat { background: transparent; box-shadow: none; }
.widget-body {
  flex: 1; min-height: 0; position: relative; overflow: hidden; border-radius: inherit;
  container-type: size; display: flex; flex-direction: column;
}
.owner .widget { cursor: grab; }
.owner .widget :is(button, input, textarea, select, a, [data-nodrag]) { cursor: pointer; }
.owner .widget { -webkit-touch-callout: none; }
/* Touch long press: the widget lifts slightly once the press is held, then follows the finger. */
.widget.arming { transition: scale .38s ease-in; scale: .985; }
.widget.dragging { scale: 1.015; }
.widget-tools .widget-grip { cursor: grab; touch-action: none; color: #6c5ce7; }
.widget-tools .widget-grip:active { cursor: grabbing; }
.widget-resize { touch-action: none; }

.widget-tools {
  position: absolute; top: -18px; right: 10px; display: flex; gap: 4px; z-index: 3;
  opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; pointer-events: none;
}
.owner .widget:hover .widget-tools, .owner .widget.selected .widget-tools { opacity: 1; transform: none; pointer-events: auto; }
.widget-tools button {
  width: 32px; height: 32px; border-radius: 50%; border: none; background: #fff; color: #1d2140; cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 24, 60, .2); display: grid; place-items: center; font-size: 14px;
}
.widget-tools button:hover { background: var(--wa); color: #fff; }
.widget-tools .i { width: 16px; height: 16px; }
.w-btn .i { width: 1.1em; height: 1.1em; }
.w-placeholder .i.big { width: 2.2em; height: 2.2em; color: #b4b8d4; }
.widget-resize {
  position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; cursor: nwse-resize; z-index: 3;
  opacity: 0; transition: opacity .15s;
}
.widget-resize::after {
  content: ""; position: absolute; right: 6px; bottom: 6px; width: 10px; height: 10px;
  border-right: 3px solid var(--wa); border-bottom: 3px solid var(--wa); border-radius: 0 0 4px 0;
}
.owner .widget:hover .widget-resize, .owner .widget.selected .widget-resize { opacity: 1; }
.is-idle .widget-tools, .is-idle .widget-resize { opacity: 0 !important; pointer-events: none !important; }

/* ---------- shared widget pieces (sizes follow the widget via container units) ---------- */
.w-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4cqmin; min-height: 0; }
.w-title { font-weight: 800; font-size: max(13px, 7cqmin); color: #4b5072; margin: 0 0 2cqmin; }
.w-actions { display: flex; gap: 2.5cqmin; justify-content: center; flex-wrap: wrap; margin-top: 3cqmin; }
.w-btn {
  border: none; background: var(--wa-soft); color: var(--wa-ink); font-weight: 800; border-radius: 999px; cursor: pointer;
  padding: .45em 1em; font-size: max(13px, 6cqmin); display: inline-flex; align-items: center; gap: .35em;
  transition: transform .1s, background .1s;
}
.w-btn:hover { background: var(--wa-soft2); }
.w-btn:active { transform: scale(.95); }
.w-btn.primary { background: var(--wa); color: #fff; }
.w-btn.round { width: 2.2em; height: 2.2em; padding: 0; justify-content: center; }
.w-placeholder { color: #8a8fb0; font-weight: 700; font-size: max(13px, 6cqmin); padding: 6cqmin; text-align: center; }
.w-hover-only { opacity: 0; transition: opacity .15s; }
.widget:hover .w-hover-only, .widget:focus-within .w-hover-only { opacity: 1; }
.is-idle .w-hover-only { opacity: 0 !important; }

/* clock */
.clock-digital { font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.02em; font-size: min(30cqh, 24cqw); }
.clock-digital .sec { font-size: .45em; color: #8a8fb0; margin-left: .1em; }
.clock-date { font-weight: 700; color: #6b7091; font-size: max(11px, min(8cqh, 6cqw)); margin-top: 2cqmin; white-space: nowrap; }
.clock-analog { width: min(84cqh, 92cqw); height: min(84cqh, 92cqw); }
.clock-both .clock-analog { width: min(66cqh, 90cqw); height: min(66cqh, 90cqw); }
.clock-both .clock-digital { font-size: min(14cqh, 18cqw); margin-top: 2cqmin; }

/* timer */
.timer { gap: 1cqmin; }
.timer-label { font-weight: 800; color: #6b7091; font-size: max(12px, min(9cqh, 8cqw)); }
.timer-face { position: relative; display: grid; place-items: center; }
.timer-ring { width: min(62cqh, 80cqw); height: min(62cqh, 80cqw); }
.timer-ring circle { fill: none; stroke-width: 9; }
.timer-ring .track { stroke: var(--wa-track); }
.timer-ring .prog { stroke: var(--wa); stroke-linecap: round; transition: stroke-dashoffset .25s linear, stroke .3s; transform: rotate(-90deg); transform-origin: 50% 50%; }
.timer-time { font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.02em; }
.timer-ring + .timer-time { position: absolute; font-size: min(15cqh, 17cqw); }
.timer.style-bar .timer-time, .timer.style-hourglass .timer-time { font-size: min(26cqh, 22cqw); }
.timer-bar { width: 88cqw; height: max(10px, 7cqh); border-radius: 999px; background: var(--wa-track); overflow: hidden; margin-top: 3cqh; }
.timer-bar > div { height: 100%; background: var(--wa); border-radius: inherit; transition: width .25s linear, background .3s; }
.timer-hourglass { height: min(56cqh, 60cqw); }
.timer-row { display: flex; align-items: center; gap: 5cqw; }
.timer.warn .prog { stroke: #f2a516; } .timer.warn .timer-bar > div { background: #f2a516; }
.timer.done .prog { stroke: #ec5f67; } .timer.done .timer-bar > div { background: #ec5f67; }
.timer.done .timer-time { color: #ec5f67; animation: pulse 1s ease-in-out infinite; }
.timer-presets { display: flex; gap: 1.5cqmin; flex-wrap: wrap; justify-content: center; }
.timer-presets button { border: 1px solid #e4e6f0; background: #fff; border-radius: 999px; padding: .2em .65em; font-weight: 800; font-size: max(11px, 4.6cqmin); cursor: pointer; color: #4b5072; }
.timer-presets button:hover { border-color: var(--wa); color: var(--wa); }
/* Own colour (Farbe/Hintergrund in the settings): digits in the accent; on dark cards light text. */
.accent-own :is(.clock-digital, .timer-time) { color: var(--wa); }
.color-dark :is(.clock-digital, .timer-time) { color: #fff; }
.color-dark :is(.clock-date, .timer-label, .clock-digital .sec) { color: #c9cbe0; }
@keyframes pulse { 50% { transform: scale(1.06); } }

/* text */
.text-widget { flex: 1; display: flex; align-items: center; padding: 5cqmin 6cqmin; overflow: hidden; }
.text-widget .content { width: 100%; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; white-space: pre-wrap; }
.text-widget.align-center { text-align: center; justify-content: center; }
.text-widget.size-s .content { font-size: max(12px, min(11cqh, 6cqw)); }
.text-widget.size-m .content { font-size: max(14px, min(16cqh, 8cqw)); }
.text-widget.size-l .content { font-size: max(16px, min(24cqh, 11cqw)); }
.text-widget.size-xl .content { font-size: max(18px, min(36cqh, 14cqw)); font-weight: 800; letter-spacing: -.01em; }
/* "Passend" (size-fit): text.js sets the font size; words are not broken, the size shrinks instead. */
.text-widget.size-fit .content { overflow-wrap: normal; }
.text-widget.size-fit { align-items: center; }
/* Schriftart of the note (settings) – wins over the screen look. */
.screen .text-widget.font-round :is(.content, textarea) { font-family: "Fredoka", var(--font); font-weight: 600; }
.screen .text-widget.font-clear :is(.content, textarea) { font-family: "Nunito", var(--font); }
.screen .text-widget.font-bold :is(.content, textarea) { font-family: "Gabarito", var(--font); font-weight: 800; letter-spacing: -.01em; }
.screen .text-widget.font-serif :is(.content, textarea) { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.screen .text-widget.font-mono :is(.content, textarea) { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 600; }
.text-widget textarea { position: absolute; inset: 0; width: 100%; height: 100%; border: none; outline: none; resize: none; padding: 5cqmin 6cqmin; font: inherit; font-weight: 700; background: inherit; border-radius: inherit; }
.color-yellow { background: #fff6c4; } .color-green { background: #dcf7e3; } .color-blue { background: #dcecff; }
.color-pink { background: #ffe0ec; } .color-purple { background: #ebe5ff; } .color-dark { background: #1d2140; color: #fff; }
.text-hint { position: absolute; bottom: 1.5cqmin; right: 3cqmin; font-size: 11px; color: #8a8fb0; font-weight: 700; }

/* traffic light */
.traffic { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5cqw 0; gap: 2cqh; }
.traffic-box { background: #2b2f45; border-radius: 999px; padding: 6cqw; display: flex; flex-direction: column; gap: 5cqw; box-shadow: inset 0 -6px 0 rgba(0,0,0,.25); }
.traffic-box :is(button, .lamp) { display: block; width: min(56cqw, 22cqh); height: min(56cqw, 22cqh); border-radius: 50%; border: none; cursor: pointer; opacity: .22; transition: opacity .2s, box-shadow .2s; }
.traffic-box .red { background: #ff4d4f; } .traffic-box .yellow { background: #ffc53d; } .traffic-box .green { background: #39d353; }
.traffic-box :is(button, .lamp).on { opacity: 1; box-shadow: 0 0 22px 4px currentColor; }
.traffic-box .red.on { color: rgba(255, 77, 79, .7); } .traffic-box .yellow.on { color: rgba(255, 197, 61, .7); } .traffic-box .green.on { color: rgba(57, 211, 83, .7); }
.traffic-label { font-weight: 800; text-align: center; font-size: max(11px, min(14cqw, 5cqh)); line-height: 1.15; padding: 0 2cqw; }

/* work symbols */
.symbol { gap: 3cqmin; }
.symbol-disc {
  width: min(64cqh, 80cqw); height: min(64cqh, 80cqw); flex: none; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: var(--sc); color: #fff; display: grid; place-items: center;
  box-shadow: inset 0 -.35em 0 rgba(0, 0, 0, .12), 0 6px 18px color-mix(in srgb, var(--sc) 40%, transparent);
  font-size: min(64cqh, 80cqw); transition: transform .15s;
}
.symbol-disc:hover { transform: scale(1.03); }
.symbol-disc .i { width: 58%; height: 58%; stroke-width: 1.9; }
.symbol-label { font-weight: 800; font-size: max(13px, min(12cqh, 12cqw)); line-height: 1.15; color: color-mix(in srgb, var(--sc, #1d2140) 70%, #1d2140); }
.symbol-picker { position: absolute; inset: 0; background: rgba(255,255,255,.98); display: grid; grid-template-columns: repeat(auto-fill, minmax(max(64px, 24cqmin), 1fr)); gap: 2cqmin; padding: 3cqmin; overflow: auto; z-index: 2; border-radius: inherit; }
.symbol-picker button { border: 2px solid transparent; background: #f7f7fc; border-radius: 14px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; font-weight: 700; font-size: 11px; color: #4b5072; line-height: 1.15; }
.symbol-picker button .i { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--sc); color: #fff; box-sizing: content-box; }
.symbol-picker button:hover, .symbol-picker button.on { border-color: var(--sc); background: #fff; }

/* noise */
.noise-gauge { width: min(86cqw, 120cqh); }
.noise-gauge .track { stroke: #eceef6; }
.noise-gauge .level { stroke: #22b07d; transition: stroke .2s; }
.noise[data-zone=yellow] .level { stroke: #f2a516; }
.noise[data-zone=red] .level { stroke: #ec5f67; }
.noise-gauge .limit { stroke: #1d2140; }
.noise-state { font-weight: 800; font-size: max(13px, min(11cqh, 9cqw)); }
.noise[data-zone=green] .noise-state { color: #16a34a; }
.noise[data-zone=yellow] .noise-state { color: #d97706; }
.widget:has(.noise.loud) { background: #ffe3e5 !important; box-shadow: 0 0 0 4px #ec5f67, 0 12px 32px rgba(236, 95, 103, .45) !important; transition: background .2s, box-shadow .2s; }
.noise.loud .noise-state { color: #e11d48; font-size: max(16px, min(15cqh, 12cqw)); }
.noise.loud { animation: shake .35s ease-in-out 2; }
@keyframes shake { 25% { transform: translateX(-1.5%); } 75% { transform: translateX(1.5%); } }

/* name picker */
.picker-name { font-weight: 900; font-size: min(30cqh, 16cqw); line-height: 1.1; letter-spacing: -.01em; color: var(--wa-ink); overflow-wrap: anywhere; }
.picker-name.rolling { color: #8a8fb0; }
.picker-name.landed { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.picker-meta { font-size: max(11px, 5cqmin); color: #8a8fb0; font-weight: 700; margin-top: 1cqmin; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

/* groups */
.groups { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 3cqmin; gap: 2cqmin; }
.groups-head { display: flex; align-items: center; gap: 2cqmin; flex-wrap: wrap; }
.groups-head .w-title { margin: 0; flex: 1; text-align: left; }
.groups-grid { flex: 1; min-height: 0; display: grid; gap: 2cqmin; grid-template-columns: repeat(auto-fit, minmax(max(110px, 22cqw), 1fr)); overflow: auto; align-content: start; }
.group-card { border-radius: 12px; padding: 2.2cqmin 2.8cqmin; background: #f7f7fc; border-top: 5px solid var(--gc, var(--wa)); }
.group-card b { display: block; font-size: max(12px, 4.4cqmin); margin-bottom: .4em; }
.group-card b small { color: #8a8fb0; font-weight: 700; }
.group-card, .groups-pool { transition: background .12s, box-shadow .12s; }
.drop-target.over { box-shadow: 0 0 0 3px var(--gc, var(--wa)); background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 1.2cqmin; }
.name-chip {
  display: inline-flex; align-items: center; gap: .35em; padding: .25em .7em .25em .5em; border-radius: 999px; background: #fff;
  font-weight: 700; font-size: max(20px, 5cqmin); cursor: grab; touch-action: none; user-select: none; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.name-chip::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--gc); }
.name-chip.lifted { opacity: .35; }
.name-chip.ghost { position: fixed; z-index: 5000; pointer-events: none; transform: translate(-50%, -60%) rotate(-3deg) scale(1.1); box-shadow: 0 10px 24px rgba(0,0,0,.25); cursor: grabbing; }
.groups-pool { border-radius: 12px; padding: 2cqmin 2.5cqmin; background: #f1f2f8; border: 2px dashed #d7d9e8; }
.groups-pool > b { display: block; font-size: max(11px, 3.8cqmin); color: #6b7091; margin-bottom: .4em; }
.stepper { display: inline-flex; align-items: center; background: var(--wa-soft); border-radius: 999px; font-weight: 800; color: var(--wa-ink); font-size: max(12px, 4.4cqmin); }
.stepper button { border: none; background: transparent; color: inherit; font-weight: 900; cursor: pointer; padding: .3em .7em; font-size: 1em; }

/* dice (3D) */
.dice-row { display: flex; gap: 8cqmin; justify-content: center; align-items: center; flex: 1; cursor: pointer; perspective: 900px; }
.die3d { --s: min(46cqh, calc(62cqw / var(--n))); width: var(--s); height: var(--s); position: relative; }
.die3d .tilt { width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(-42deg) rotateY(-32deg); }
.cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; }
.cube .face {
  position: absolute; inset: 0; border-radius: 18%; background: #fff; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  padding: 15%; box-shadow: inset 0 0 0 1px #e4e6f0, inset 0 -6px 12px rgba(20, 24, 60, .08); backface-visibility: hidden;
}
.cube .face i { width: 74%; aspect-ratio: 1; border-radius: 50%; background: #1d2140; place-self: center; box-shadow: inset 0 2px 2px rgba(0,0,0,.35); }
.cube .f1 { transform: translateZ(calc(var(--s) / 2)); }
.cube .f6 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube .f2 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); background: #f7f7fb; }
.cube .f5 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); background: #f7f7fb; }
.cube .f3 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: #fcfcff; }
.cube .f4 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); background: #efeff6; }
.cube .f1 i { background: #e5484d; }
.cube .f3 { background: #fff; } .cube .f1 { background: #f7f7fb; } .cube .f2, .cube .f5 { background: #ecedf5; }
.die-shadow { position: absolute; left: 10%; right: 10%; bottom: -16%; height: 12%; border-radius: 50%; background: radial-gradient(rgba(20,24,60,.28), transparent 70%); }
.die3d.jump .tilt { animation: die-jump 1.1s cubic-bezier(.3,.7,.3,1); }
.die3d.jump .die-shadow { animation: die-shadow 1.1s cubic-bezier(.3,.7,.3,1); }
@keyframes die-jump { 0% { translate: 0 0; } 25% { translate: 0 -38%; } 55% { translate: 0 0; } 70% { translate: 0 -10%; } 85%, 100% { translate: 0 0; } }
@keyframes die-shadow { 25% { transform: scale(.6); opacity: .5; } 55% { transform: none; opacity: 1; } 70% { transform: scale(.85); } }

/* qr */
.qr-img { width: min(76cqh, 90cqw); aspect-ratio: 1; image-rendering: pixelated; }
.qr-caption { font-weight: 800; font-size: max(12px, min(8cqh, 9cqw)); margin-top: 1cqmin; }
.qr-url { font-size: max(10px, min(5cqh, 5cqw)); color: #8a8fb0; overflow-wrap: anywhere; }

/* schedule */
.schedule { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 4cqmin 5cqmin; }
.schedule .w-title { text-align: center; }
.schedule ol { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; }
.schedule li { display: flex; align-items: center; gap: 3cqw; padding: 2.2cqmin 0; border-top: 1px solid #eceef6; min-height: 0; }
.schedule li:first-child { border-top: none; }
.schedule .ico { font-size: max(18px, 9cqw); width: 1.4em; text-align: center; flex: none; line-height: 1; }
.schedule .num { width: max(24px, 8cqw); height: max(24px, 8cqw); border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--wa-soft); color: var(--wa-ink); font-weight: 800; font-size: max(12px, 4cqw); }
.schedule .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2em; }
.schedule .t { font-weight: 800; font-size: max(13px, 6cqw); line-height: 1.2; overflow-wrap: break-word; }
.schedule .when { display: flex; align-items: center; gap: 2cqw; font-size: max(11px, 4.4cqw); color: #6b7091; font-weight: 700; }
.schedule .bar { flex: 1; height: 5px; background: #ecebfb; border-radius: 9px; overflow: hidden; }
.schedule .bar > div { height: 100%; background: #f28c38; border-radius: inherit; }
.schedule li.now .num { background: var(--wa); color: #fff; }
.schedule li.done { opacity: .5; }
.schedule li.done .t::after { content: " ✓"; color: #f28c38; }
.schedule li.now { background: #fff4e8; margin: 0 -5cqmin; padding-left: 5cqmin; padding-right: 5cqmin; }

/* image */
.image-widget { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.image-widget img { flex: 1; min-height: 0; width: 100%; object-fit: contain; display: block; }
.image-widget.fit-cover img { object-fit: cover; }
.image-widget figcaption { text-align: center; font-weight: 800; padding: 1.5cqmin; font-size: max(12px, 5cqmin); }

/* poll */
.poll { flex: 1; display: flex; flex-direction: column; padding: 4cqmin 5cqmin 3cqmin; min-height: 0; }
.poll .w-title { text-align: center; font-size: max(13px, min(8cqh, 6cqw)); color: #1d2140; }
.poll-bars { flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: space-around; gap: 3cqw; padding-bottom: 2cqh; }
.poll-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 1cqh; max-width: 18cqw; }
.poll-col .bar { width: 64%; border-radius: 8px 8px 4px 4px; min-height: 5px; transition: height .4s cubic-bezier(.3, 1.4, .5, 1); }
.poll-col .n { font-weight: 800; font-size: max(11px, 5cqmin); color: #6b7091; }
.poll-opts { display: flex; justify-content: space-around; gap: 3cqw; }
.poll-opts button { flex: 1; max-width: 18cqw; border: none; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; padding: 0; }
.poll-opts .emo { font-size: max(20px, min(15cqh, 10cqw)); line-height: 1.1; transition: transform .12s; }
.poll-opts button:hover .emo { transform: scale(1.15); }
.poll-opts button:active .emo { transform: scale(.9); }
.poll-opts .lbl { font-size: max(10px, min(4.5cqh, 3.6cqw)); font-weight: 700; color: #6b7091; }

/* ---------- chrome: name chip, dock, panels ---------- */
.board-chip {
  position: fixed; top: 14px; left: 14px; z-index: 1000; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border-radius: 999px; padding: 6px 8px 6px 6px;
  box-shadow: 0 4px 16px rgba(20, 24, 60, .15); transition: opacity .3s, transform .3s; font-weight: 800; color: #1d2140;
}
.board-chip a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #6c5ce7; color: #fff; text-decoration: none; font-size: 15px; }
.board-chip .name { border: none; background: transparent; font-weight: 800; padding: 2px 6px; border-radius: 8px; width: auto; min-width: 4ch; field-sizing: content; max-width: 40vw; }
.board-chip .name:focus { outline: 2px solid #6c5ce7; background: #fff; }
.board-chip .cls { font-size: .85em; background: #f0eefe; color: #5442d6; border-radius: 999px; padding: 3px 10px; border: none; cursor: pointer; }

.dock {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1000;
  display: flex; align-items: center; gap: 2px; padding: 8px 10px; max-width: calc(100vw - 24px); overflow-x: auto;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-radius: 22px;
  box-shadow: 0 6px 24px rgba(20, 24, 60, .2); transition: opacity .3s, transform .3s; scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }
.dock button {
  flex: none; border: none; background: transparent; cursor: pointer; border-radius: 14px; width: 54px; height: 54px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #4b5072; transition: background .12s, transform .12s;
}
.dock button:hover { background: #f0eefe; transform: translateY(-2px); }
.dock button.on { background: #6c5ce7; color: #fff; }
.dock .ico { width: 25px; height: 25px; }
.dock .lbl { font-size: 9.5px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; max-width: 52px; overflow: hidden; text-overflow: ellipsis; }
.dock .sep { width: 1px; height: 36px; background: #e4e6f0; margin: 0 6px; flex: none; }
.is-idle .dock, .is-idle .board-chip { opacity: 0; pointer-events: none; }
.is-idle .dock { transform: translate(-50%, 20px); }
.is-idle .screen { cursor: none; }

.panel {
  position: fixed; z-index: 1001; background: #fff; color: #1d2140; border-radius: 20px; box-shadow: 0 20px 60px rgba(20, 24, 60, .3);
  padding: 18px; max-height: calc(100vh - 140px); overflow: auto;
}
.panel h3 { margin: 0 0 12px; font-size: 1.05em; display: flex; align-items: center; gap: 8px; }
.panel h3 .close { margin-left: auto; }
.panel.bottom { left: 50%; bottom: 96px; transform: translateX(-50%); width: min(620px, calc(100vw - 24px)); }
.panel.side { top: 14px; right: 14px; bottom: 14px; width: min(360px, calc(100vw - 24px)); max-height: none; }
.panel .field > span { font-size: .88em; }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.bg-swatch { border: 3px solid transparent; border-radius: 14px; aspect-ratio: 16/10; cursor: pointer; position: relative; overflow: hidden; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.bg-swatch i { position: absolute; left: 0; top: 0; width: 400%; height: 400%; transform: scale(.25); transform-origin: 0 0; }
.bg-swatch.on { border-color: #6c5ce7; }
.bg-swatch span { position: absolute; left: 5px; bottom: 5px; font-size: 10.5px; font-weight: 800; color: #1d2140; background: rgba(255,255,255,.88); border-radius: 999px; padding: 1px 7px; }
.panel-row { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.panel-row input[type=color] { width: 44px; height: 38px; border: none; padding: 0; background: none; cursor: pointer; }
.panel-row input[type=url] { flex: 1; min-width: 160px; }
.tpl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tpl-list button { text-align: left; border: 2px solid #e4e6f0; background: #fff; border-radius: 14px; padding: 10px 12px; cursor: pointer; }
.tpl-list button:hover { border-color: #6c5ce7; background: #f6f4ff; }
.tpl-list b { display: block; } .tpl-list small { color: #6b7091; line-height: 1.3; display: block; }

.empty-hint {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); text-align: center; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.25); pointer-events: none;
}
.empty-hint h2 { font-size: clamp(1.5em, 4vw, 2.6em); margin: 0 0 .2em; }
.empty-hint p { font-size: 1.15em; font-weight: 700; margin: 0; }

/* Notices move aside while the settings drawer is open on the right. */
@media (min-width: 760px) {
  html.board-page body:has(.panel.side) .toast-stack { right: calc(min(360px, 100vw - 24px) + 28px); }
}
.done-overlay {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(circle, rgba(236, 95, 103, .0) 30%, rgba(236, 95, 103, .35) 100%);
  animation: flash 1.2s ease-in-out 3;
}
@keyframes flash { 50% { opacity: .2; } }

@media (max-width: 700px) {
  .dock button { width: 48px; height: 50px; }
  .dock .ico { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- looks: playful (primary school) vs calm (secondary) ---------- */
.look-playful .widget {
  font-family: "Fredoka", var(--font); border-radius: clamp(18px, 2.8vmin, 34px);
  border: 4px solid #fff; background: var(--pw, #fff);
  box-shadow: 0 7px 0 color-mix(in srgb, var(--pw, #fff) 55%, #1d2140 18%), 0 18px 40px rgba(20, 24, 60, .22);
}
.look-playful .widget.flat { border-color: transparent; }
.look-playful .widget[data-type=clock] { --pw: #e3f1ff; }
.look-playful .widget[data-type=timer] { --pw: #ebe5ff; }
.look-playful .widget[data-type=noise] { --pw: #ebe5ff; }
.look-playful .widget[data-type=traffic_light] { --pw: #fff6d9; }
.look-playful .widget[data-type=work_symbols] { --pw: #ffffff; }
.look-playful .widget[data-type=name_picker] { --pw: #d9f5e6; }
.look-playful .widget[data-type=groups] { --pw: #fff1dc; }
.look-playful .widget[data-type=dice] { --pw: #ffe1ea; }
.look-playful .widget[data-type=qr] { --pw: #ffffff; }
.look-playful .widget[data-type=schedule] { --pw: #fbdcb6; }
.look-playful .widget[data-type=timetable] { --pw: #fff3cf; }
.look-playful .widget[data-type=poll] { --pw: #ffffff; }
.look-playful .widget[data-type=scoreboard] { --pw: #dff3ff; }
.look-playful .widget[data-type=countdown] { --pw: #ffe6f1; }
.look-playful .widget[data-type=text] { --pw: #fffdf6; }
.look-playful .widget[data-type=schedule] li { border-color: rgba(120, 70, 20, .12); }
.look-playful .widget[data-type=schedule] li.now { background: rgba(255, 255, 255, .55); }
.look-playful :is(.clock-digital, .timer-time, .picker-name, .w-title, .symbol-label, .traffic-label, .noise-state, .schedule .t, .tt-subject, .tt-s, .score-n, .cd-n) { font-family: "Fredoka", var(--font); font-weight: 600; letter-spacing: 0; }
.look-playful .w-title { color: var(--wa-ink); font-size: max(14px, 8cqmin); }
.look-playful .text-widget .content { font-family: "Fredoka", var(--font); font-weight: 600; }
.look-playful .w-btn { font-family: "Fredoka", var(--font); font-weight: 600; box-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.look-playful .group-card { background: #fff; border-radius: 16px; }
.look-playful .groups-pool { background: rgba(255, 255, 255, .6); }
.look-playful .timer-ring circle { stroke-width: 11; }
.look-playful .tt-list li.now { background: #fff; }
.look-playful .tt-week td:not(:empty) { background: #fff; }

.look-calm .widget { border-radius: clamp(10px, 1.2vmin, 16px); background: rgba(255, 255, 255, .93); border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 28px rgba(15, 23, 42, .10); backdrop-filter: blur(10px); }
.look-calm .widget.flat { border-color: transparent; backdrop-filter: none; }
.look-calm :is(.clock-digital, .timer-time) { font-weight: 700; letter-spacing: -.03em; }
.look-calm .w-title { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: max(11px, 5cqmin); color: #64748b; }
.look-calm .group-card { background: #f5f7fb; border-radius: 10px; }
.look-calm .schedule li.now { background: #eef2ff; }
.look-calm .schedule .bar > div { background: var(--wa); }
.look-calm .schedule li.done .t::after { color: var(--wa); }

/* text styles */
.text-widget.style-rainbow { padding: 0; }
.text-widget.style-rainbow .content {
  font-family: "Fredoka", var(--font); font-weight: 700; line-height: 1.05; letter-spacing: .01em; white-space: normal;
  text-shadow: .045em 0 0 #fff, -.045em 0 0 #fff, 0 .045em 0 #fff, 0 -.045em 0 #fff, .035em .035em 0 #fff, -.035em .035em 0 #fff, .035em -.035em 0 #fff, -.035em -.035em 0 #fff, 0 .1em .06em rgba(0, 0, 0, .25);
}
.text-widget.style-rainbow.size-xl .content { font-size: max(24px, min(70cqh, 15cqw)); }
.text-widget.style-rainbow.size-l .content { font-size: max(20px, min(50cqh, 11cqw)); }
.widget.sticky { border-radius: 6px 6px 18px 6px; transform: rotate(-1.2deg); }
.widget.sticky::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 32%; height: 24px; z-index: 2;
  transform: translateX(-50%) rotate(2deg); background: rgba(255, 255, 255, .6); box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.look-calm .widget.sticky { transform: none; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 2px solid #e4e6f0; background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
.seg button.on { border-color: #6c5ce7; background: #f0eefe; color: #5442d6; }
.board-chip a .i { width: 17px; height: 17px; }
.panel .close .i { width: 18px; height: 18px; }
.screen .widget.flat { background: transparent; box-shadow: none; border-color: transparent; backdrop-filter: none; }

/* traffic light: noise mode */
.traffic-auto { width: 86%; display: grid; gap: 1.5cqh; }
.traffic-meter { position: relative; height: max(6px, 1.6cqh); background: var(--wa-track); border-radius: 9px; overflow: visible; }
.traffic-meter i { display: block; height: 100%; border-radius: inherit; background: var(--wa); transition: width .1s; }
.traffic-meter::after { content: ""; position: absolute; left: var(--limit); top: -3px; bottom: -3px; width: 3px; border-radius: 2px; background: #1d2140; }
.traffic-auto-row { display: flex; align-items: center; gap: 4px; justify-content: center; flex-wrap: wrap; }
.traffic-auto-row input { width: 100%; accent-color: var(--wa); }
.w-btn.small { font-size: max(12px, min(4.2cqmin, 18px)); padding: .35em .75em; white-space: nowrap; }
.traffic-auto-row .w-btn.small { font-size: max(12px, 10cqw); }

.timer-mode { position: absolute; top: 2.5cqmin; left: 50%; transform: translateX(-50%); display: flex; background: var(--wa-soft); border-radius: 999px; padding: 2px; z-index: 1; }
.timer-mode button { border: none; background: transparent; border-radius: 999px; padding: .25em .8em; font-weight: 800; font-size: max(11px, 4.2cqmin); color: var(--wa-ink); cursor: pointer; font-family: inherit; }
.timer-mode button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* timetable */
.tt { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 4cqmin 5cqmin; }
.tt .w-title { text-align: center; }
.tt-now { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 2cqh; border-radius: 14px; }
.tt-kicker { font-weight: 800; font-size: max(12px, min(9cqh, 7cqw)); color: var(--sc); text-transform: uppercase; letter-spacing: .05em; }
.tt-subject { font-weight: 800; font-size: max(18px, min(24cqh, 14cqw)); line-height: 1.05; hyphens: auto; overflow-wrap: break-word; max-width: 100%; }
.tt-subject.long { font-size: max(16px, min(17cqh, 10cqw)); }
.tt-now.idle .tt-subject { font-size: max(16px, min(18cqh, 12cqw)); }
.tt-meta { font-weight: 700; color: #6b7091; font-size: max(12px, min(8cqh, 6cqw)); }
.tt-bar { width: 80%; height: max(6px, 4cqh); background: #eceef6; border-radius: 99px; overflow: hidden; }
.tt-bar i { display: block; height: 100%; background: var(--sc, var(--wa)); border-radius: inherit; }
.tt-list { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; }
.tt-list li { display: grid; grid-template-columns: 2.1em 1fr auto; align-items: center; gap: 3cqw; padding: 1.8cqmin 2cqmin; border-radius: 12px; font-size: max(13px, 6.5cqw); }
.tt-list li + li { margin-top: 1cqmin; }
.tt-n { width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; background: var(--sc); color: #fff; font-weight: 800; font-size: .8em; }
.tt-s { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tt-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-s .tt-bar { width: 100%; height: 5px; margin-top: 4px; }
.tt-t { color: #8a8fb0; font-weight: 700; font-size: .78em; font-variant-numeric: tabular-nums; }
.tt-list li.tt-break { padding-block: .4cqmin; font-size: max(12px, 4.4cqw); color: #6b7091; background: none; border-top: 2px dashed #dcdff0; border-radius: 0; }
.tt-list li.tt-break .tt-s { font-weight: 700; }
/* Settings: subjects, colours and times of the class plan. */
.tt-plan h4 { margin: 1.2em 0 .5em; }
.tt-plan-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tt-plan-row b { width: 2em; text-align: right; }
.tt-plan-row input[type="text"] { flex: 1; min-width: 0; }
.tt-plan-row input[type="color"] { width: 44px; height: 44px; padding: 2px; border-radius: 10px; flex: none; cursor: pointer; }
.tt-plan-row input[type="time"] { width: 7.2em; }
.tt-plan-row.break { padding-left: 2.6em; color: var(--muted, #6b7091); font-size: .92em; }
.tt-plan-row.break input { width: 5em; }
.tt-plan small { display: block; margin-top: 10px; color: var(--muted, #6b7091); }
.tt-list li.now { background: color-mix(in srgb, var(--sc) 14%, #fff); box-shadow: inset 4px 0 0 var(--sc); }
.tt-list li.past { opacity: .45; }
.tt-week { width: 100%; height: 100%; border-collapse: separate; border-spacing: 1cqmin; table-layout: fixed; }
.tt-week th { font-size: max(11px, 3.4cqw); color: #6b7091; font-weight: 800; }
.tt-week th.today { color: var(--wa); }
.tt-week tbody th { width: 9%; text-align: center; line-height: 1.1; }
.tt-week tbody th small { display: block; font-weight: 600; font-size: .75em; color: #a0a4c0; }
.tt-week td { border-radius: 8px; text-align: center; font-weight: 700; font-size: max(10px, 2.9cqw); padding: .3em .2em; background: #f6f7fb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-week td span { color: color-mix(in srgb, var(--sc) 75%, #1d2140); }
.tt-week td:not(:empty) { background: color-mix(in srgb, var(--sc) 13%, #fff); }
.tt-week td.today { outline: 2px solid color-mix(in srgb, var(--wa) 25%, transparent); }
.tt-week td.now { background: var(--sc); }
.tt-week td.now span { color: #fff; }
.screen.dropping::after { content: "Bild hier ablegen"; position: absolute; inset: 16px; border: 4px dashed rgba(255,255,255,.9); border-radius: 24px; display: grid; place-items: center; font-size: 2em; font-weight: 800; color: #fff; background: rgba(108,92,231,.25); text-shadow: 0 2px 8px rgba(0,0,0,.3); pointer-events: none; z-index: 900; }
.panel .copy-row { display: flex; gap: 8px; }
.panel .copy-row input { flex: 1; min-width: 0; }

/* thought of the day */
.thought { flex: 1; display: flex; min-height: 0; position: relative; --tc: #6c5ce7; --tb: #f3f0ff; background: var(--tb); }
.tc-blue { --tc: #2563eb; --tb: #eaf2ff; } .tc-green { --tc: #15925f; --tb: #e7f7ef; } .tc-orange { --tc: #e07a1f; --tb: #fff3e6; }
.tc-pink { --tc: #d63f8c; --tb: #ffedf5; } .tc-dark { --tc: #c4b5fd; --tb: #1d2140; color: #fff; }
.thought-img { background-size: cover; background-position: center; flex: none; }
.layout-side .thought-img { width: 42%; }
.layout-top { flex-direction: column; }
.layout-top .thought-img { height: 46%; }
.layout-background .thought-img { position: absolute; inset: 0; }
.layout-background .thought-text { position: relative; margin-top: auto; width: 100%; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72) 45%); padding-top: 14cqh; }
.layout-background .thought-title { color: #fff; opacity: .85; }
.thought-text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 5cqmin 6cqmin; gap: 2cqmin; overflow: hidden; }
.thought-title { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: max(11px, 4.2cqmin); color: var(--tc); }
.thought blockquote { margin: 0; padding-left: .85em; font-weight: 700; line-height: 1.25; font-size: max(14px, min(9cqh, 6.5cqw)); position: relative; overflow-wrap: break-word; hyphens: auto; }
.thought blockquote::before { content: "“"; position: absolute; left: -.05em; top: -.12em; font-size: 2.1em; line-height: 1; color: var(--tc); opacity: .5; font-family: Georgia, serif; }
.layout-text blockquote { font-size: max(15px, min(12cqh, 8cqw)); }
.thought-author { font-weight: 700; opacity: .7; font-size: max(12px, 4.5cqmin); }
.thought-add { position: absolute; top: 3cqmin; right: 3cqmin; border: none; border-radius: 50%; width: 36px; height: 36px; background: #fff; color: var(--tc); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); display: grid; place-items: center; z-index: 1; }
.look-playful .thought blockquote { font-family: "Fredoka", var(--font); font-weight: 600; }
.panel .field-preview { width: 100%; max-height: 140px; object-fit: contain; border-radius: 10px; background: #f4f5fb; margin-bottom: 8px; display: block; }
.panel .copy-row .btn { flex: none; }

/* scoreboard */
.score { flex: 1; display: flex; padding: 3cqmin; min-height: 0; }
.score-grid { flex: 1; display: grid; grid-template-columns: repeat(min(var(--n), 4), 1fr); gap: 2.5cqmin; min-height: 0; }
.score-team { border-radius: 16px; background: color-mix(in srgb, var(--tc) 10%, #fff); border-top: 6px solid var(--tc); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 2cqmin 1cqmin; min-width: 0; position: relative; }
.score-team.lead::after { content: "★"; position: absolute; top: 1cqmin; right: 2cqmin; color: #f5a524; font-size: max(14px, 5cqmin); }
.score-name { font-weight: 800; font-size: max(12px, min(7cqh, calc(14cqw / var(--n)))); color: var(--tc); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.score-hit { border: none; background: none; cursor: pointer; padding: 0; color: #1d2140; flex: 1; display: grid; place-items: center; width: 100%; }
.score-n { font-weight: 800; font-variant-numeric: tabular-nums; font-size: max(24px, min(34cqh, calc(40cqw / var(--n)))); line-height: 1; }
.score-n.pop { animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.score-btns { display: flex; gap: 2cqmin; }
.score-btns button { width: max(30px, 9cqmin); height: max(30px, 9cqmin); border-radius: 50%; border: none; background: #fff; color: var(--tc); font-weight: 900; font-size: max(16px, 5cqmin); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.score-btns button:hover { background: var(--tc); color: #fff; }

/* countdown */
.cd { gap: .5cqh; }
.cd-kicker { font-weight: 800; font-size: max(13px, min(10cqh, 9cqw)); color: var(--wa-ink); }
.cd-pre, .cd-unit { font-weight: 700; color: #6b7091; font-size: max(12px, min(9cqh, 8cqw)); line-height: 1; }
.cd-n { font-weight: 800; font-size: max(28px, min(40cqh, 34cqw)); line-height: 1; font-variant-numeric: tabular-nums; color: #1d2140; }
.cd-n.done { color: var(--wa); font-size: max(24px, min(28cqh, 22cqw)); }
.cd-date { font-size: max(11px, min(6cqh, 5cqw)); color: #8a8fb0; font-weight: 700; margin-top: 1cqh; }

/* camera */
.cam { position: absolute; inset: 0; background: #111; border-radius: inherit; overflow: hidden; }
.cam video, .cam-still { width: 100%; height: 100%; object-fit: contain; display: block; }
.cam-bar { position: absolute; left: 50%; bottom: 3cqmin; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; background: rgba(255,255,255,.92); padding: 5px; border-radius: 999px; }
.cam-select { border: none; background: #f0eefe; border-radius: 999px; padding: 6px 10px; font-weight: 700; max-width: 220px; }

/* drawing */
.draw { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.draw canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.paper-white { background: #fff; }
.paper-grid { background: linear-gradient(#e4e9f2 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, #e4e9f2 1px, transparent 1px) 0 0 / 24px 24px, #fff; }
.paper-lines { background: linear-gradient(transparent 31px, #dfe5ef 32px) 0 8px / 100% 32px, #fff; }
.paper-chalk { background: radial-gradient(ellipse at 30% 20%, #3d6b56 0%, #24473a 70%); }
.paper-transparent { background: transparent; }
.draw-tools { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); display: flex; gap: 4px; align-items: center; background: rgba(255,255,255,.95); padding: 4px 6px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.15); cursor: grab; }
.draw-tools button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; background: transparent; cursor: pointer; display: grid; place-items: center; color: #4b5072; }
.draw-tools button .i { width: 16px; height: 16px; }
.draw-tools .pen i { width: 16px; height: 16px; border-radius: 50%; background: var(--pc); display: block; }
.draw-tools .pen i.marker { border-radius: 4px; height: 10px; width: 18px; opacity: .7; }
.draw-tools .pen.on { border-color: var(--pc); }
.draw-tools .sep { width: 1px; height: 20px; background: #e4e6f0; margin: 0 2px; }
.screen .widget.flat .draw-tools { opacity: .3; transition: opacity .15s; }
.screen .widget.flat:hover .draw-tools { opacity: 1; }
.screen .widget.flat:hover { outline: 2px dashed rgba(108, 92, 231, .5); }

/* stack switcher (like desktops) */
.switcher {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-radius: 999px; padding: 4px 6px;
  box-shadow: 0 4px 16px rgba(20, 24, 60, .15); transition: opacity .3s, transform .3s; color: #1d2140;
}
.sw-arrow { width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent; cursor: pointer; color: #4b5072; display: grid; place-items: center; }
.sw-arrow .i { width: 22px; height: 22px; }
.sw-arrow:hover:not(:disabled) { background: #f0eefe; color: #5442d6; }
.sw-arrow:disabled { opacity: .25; cursor: default; }
.sw-mid { display: grid; justify-items: center; gap: 3px; padding: 0 6px; min-width: 120px; }
.sw-name { font-size: 12.5px; white-space: nowrap; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
.sw-name span { color: #8a8fb0; font-weight: 700; }
.sw-dots { display: flex; gap: 5px; }
.sw-dots button { position: relative; width: 9px; height: 9px; border-radius: 99px; border: none; padding: 0; background: #d5d7e6; cursor: pointer; transition: width .2s, background .2s; }
.sw-dots button::before { content: ""; position: absolute; inset: -18px -6px; } /* invisible 44 px hit area */
.sw-dots button.on { width: 22px; background: #6c5ce7; }
.sw-add { width: 44px; height: 44px; border-radius: 50%; border: none; background: #f0eefe; color: #5442d6; cursor: pointer; display: grid; place-items: center; margin-left: 2px; }
.sw-add .i { width: 16px; height: 16px; }
.is-idle .switcher { opacity: 0; pointer-events: none; transform: translate(-50%, -10px); }
.screen.preview { cursor: default; }
.screen.preview .widget { pointer-events: none; }
.tpl-save { margin-bottom: 14px; }
.tpl-sub { font-weight: 800; font-size: .8em; text-transform: uppercase; letter-spacing: .06em; color: #8a8fb0; margin: 12px 0 8px; }
.tpl-own { position: relative; display: flex; flex-direction: column; }
.tpl-own > button { flex: 1; border-color: #d9d3ff !important; background: #faf9ff !important; }
.tpl-actions { display: flex; gap: 4px; margin-top: 4px; }
.tpl-actions button { border: none; background: #f0eefe; color: #5442d6; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 3px 9px; cursor: pointer; display: grid; place-items: center; }
.tpl-actions .i { width: 13px; height: 13px; }
.tpl-empty { font-size: .9em; margin: 0; }

/* tasks widget */
.tw { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 4cqmin 5cqmin 3cqmin; }
.tw-head { display: flex; align-items: center; gap: 2cqw; margin-bottom: 2cqmin; }
.tw-title { flex: 1; font-weight: 800; font-size: max(14px, min(8cqh, 7.5cqw)); color: var(--wa-ink); line-height: 1.15; }
.tw-pick { border: 1px solid #e4e6f0; border-radius: 999px; padding: 3px 8px; font-weight: 700; font-size: 12px; background: #fff; max-width: 45%; }
.tw-items { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 1.6cqmin; }
.tw-items li { display: flex; gap: 3cqw; align-items: flex-start; background: #f6f7fb; border-radius: 12px; padding: 2.2cqmin 3cqmin; }
.tw-dot { width: max(10px, 3cqw); height: max(10px, 3cqw); border-radius: 50%; flex: none; margin-top: .35em; }
.tw-main { display: flex; flex-direction: column; gap: .2em; min-width: 0; }
.tw-t { font-weight: 700; font-size: max(13px, 6cqw); line-height: 1.25; overflow-wrap: break-word; }
.tw-meta { display: flex; gap: 2.5cqw; flex-wrap: wrap; font-size: max(11px, 4.2cqw); font-weight: 700; color: #6b7091; }
.tw-due.soon { color: #b26a00; } .tw-due.over { color: #d0343e; }
.tw-foot { display: flex; justify-content: flex-end; min-height: 0; }
.tw-open { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--wa-ink); text-decoration: none; margin-top: 2cqmin; }
.tw-open .i { width: 14px; height: 14px; }
.look-playful .widget[data-type=tasks] { --pw: #e5f6ec; }
.look-playful .tw-items li { background: rgba(255, 255, 255, .8); }
.look-playful .tw-t, .look-playful .tw-title { font-family: "Fredoka", var(--font); font-weight: 600; }

/* poll: phone voting */
.poll-head { display: flex; align-items: center; gap: 2cqw; }
.poll-head .w-title { flex: 1; min-width: 0; }
.poll-tools { display: flex; gap: 4px; flex: none; }
.poll-live { display: flex; align-items: center; gap: 3cqw; margin-top: 2cqmin; padding: 1.5cqmin 2cqmin; border-radius: 12px; background: var(--wa-soft); }
.poll-live .poll-qr { width: max(48px, 16cqmin); height: max(48px, 16cqmin); image-rendering: pixelated; border-radius: 6px; background: #fff; padding: 3px; }
.pl-url { font-weight: 900; font-size: max(13px, 5cqmin); color: var(--wa-ink); letter-spacing: .03em; }
.pl-count { font-size: max(11px, 3.8cqmin); font-weight: 700; color: #6b7091; }
.pl-count::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: #22b07d; margin-right: .4em; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.poll-overlay { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; background: rgba(20, 22, 50, .55); backdrop-filter: blur(6px); animation: fade .25s ease-out; padding: 2vmin; }
@keyframes fade { from { opacity: 0; } }
.poll-overlay-card { background: #fff; color: #1d2140; border-radius: 32px; padding: 3.5vmin 4.5vmin; width: min(1100px, 96vw); max-height: 96vh; box-shadow: 0 30px 80px rgba(0,0,0,.35); text-align: center; overflow: auto; }
.po-kicker { font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: #6c5ce7; font-size: clamp(14px, 2.2vmin, 22px); }
.poll-overlay-card h2 { font-size: clamp(24px, 5vmin, 54px); margin: 1vmin 0 3vmin; line-height: 1.15; }
.po-body { display: flex; gap: 5vmin; align-items: center; justify-content: center; flex-wrap: wrap; }
.po-body .poll-qr { width: min(52vmin, 460px); height: min(52vmin, 460px); image-rendering: pixelated; border-radius: 18px; box-shadow: 0 0 0 10px #f0eefe; }
.po-side { display: grid; gap: 2.4vmin; text-align: left; font-size: clamp(16px, 2.8vmin, 30px); font-weight: 700; }
.po-step { display: flex; align-items: center; gap: 1.6vmin; flex-wrap: wrap; }
.po-step > b { width: 1.8em; height: 1.8em; border-radius: 50%; background: #6c5ce7; color: #fff; display: grid; place-items: center; flex: none; font-size: .8em; }
.po-url { font-family: ui-monospace, Menlo, Consolas, monospace; background: #f0eefe; border-radius: 10px; padding: .15em .5em; color: #4b5072; }
.po-url strong { color: #5442d6; font-size: 1.25em; letter-spacing: .06em; }
.po-count { font-size: 1.1em; color: #4b5072; padding-top: 1vmin; border-top: 2px solid #f0eefe; }
.po-count strong { font-size: 1.8em; color: var(--ok-ink); }
.po-actions { display: flex; gap: 12px; justify-content: center; margin-top: 3vmin; }
.po-actions .btn { font-size: clamp(14px, 2vmin, 20px); }
.is-idle .po-actions { opacity: 0; transition: opacity .3s; }
.po-body { flex-wrap: nowrap; }
.po-body .poll-qr { width: min(46vmin, 420px); height: min(46vmin, 420px); flex: none; }
.po-side { flex: 1; min-width: 0; }
.po-url { word-break: break-all; }
@media (max-aspect-ratio: 1/1) { .po-body { flex-wrap: wrap; } }

/* pair dialog */
.pair-dialog { width: min(560px, calc(100vw - 24px)); }
.pair-grid { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 10px 0 16px; }
.pair-step { color: #6b7091; font-weight: 700; font-size: .9em; }
.pair-host { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; font-size: 1.1em; margin: 2px 0 10px; }
.pair-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 900; font-size: 2.6em; letter-spacing: .18em; color: #5442d6; }
.pair-qr { width: 180px; height: 180px; image-rendering: pixelated; border-radius: 12px; box-shadow: 0 0 0 8px #f0eefe; }

/* ---------- touch boards & Unterrichtsmodus (review P1-2) ---------- */
/* No hover on touch screens: controls that normally appear on hover stay visible. */
@media (hover: none), (pointer: coarse) {
  .w-hover-only { opacity: 1; }
  .owner .widget.selected .widget-tools { opacity: 1; pointer-events: auto; transform: none; }
  .widget-tools { top: -26px; gap: 8px; }
  .widget-tools button { width: 48px; height: 48px; }
  .widget-tools .i { width: 20px; height: 20px; }
  .widget-resize { width: 40px; height: 40px; right: -12px; bottom: -12px; }
  .owner .widget.selected .widget-resize { opacity: 1; }
  .w-btn { min-height: 44px; min-width: 44px; }
  .timer-presets button { min-height: 40px; min-width: 44px; font-size: max(14px, 4.6cqmin); }
  .timer-mode button { min-height: 40px; }
  .dock button { width: 60px; height: 60px; }
  .dock .lbl { font-size: 11px; }
  .sw-arrow { width: 48px; height: 48px; }
}
/* Locked layout: nothing can be moved or removed by accident; widgets themselves still work. */
.locked .widget-tools, .locked .widget-resize { display: none !important; }
.locked .owner .widget { cursor: default; }
.locked .dock button:not([data-dock="lock"]):not([data-dock="fullscreen"]) { display: none; }
.locked .dock .sep { display: none; }
/* Locked = layout locked: nothing moves, resizes or disappears, no swiping, no new screens – but the teacher's
   controls inside widgets (timer presets, poll tools, sliders) stay usable. */
.locked .sw-add { display: none !important; }
/* Hold-to-unlock: a ring fills while the button is held. */
.dock-lock { position: relative; }
.dock-lock::after { content: ""; position: absolute; inset: 3px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(currentColor var(--p, 0%), transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); opacity: 0; }
.dock-lock.holding::after { opacity: 1; animation: hold-ring var(--hold-ms, 1.5s) linear forwards; }
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes hold-ring { to { --p: 100%; } }
.dock-lock.on { background: #fff4e5; color: #b26a00; }
.dock-lock.on:hover { background: #ffe9cc; }

/* Inputs & Hilfe (review P1-4) */
.inp { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 3cqmin 3.5cqmin; gap: 2cqmin; }
.inp-title { text-align: left; margin: 0; }
.inp-cols { flex: 1; min-height: 0; display: grid; gap: 3cqmin; }
.inp-cols.two { grid-template-columns: 3fr 2fr; }
@container (max-aspect-ratio: 1/1) { .inp-cols.two { grid-template-columns: 1fr; grid-template-rows: 3fr 2fr; } }
.inp-col { min-height: 0; display: flex; flex-direction: column; gap: 1.6cqmin; overflow: auto; }
.inp-col h4 { margin: 0; display: flex; align-items: center; gap: 6px; font-size: max(12px, 3.6cqmin); text-transform: uppercase; letter-spacing: .05em; color: #6b7091; }
.inp-col h4 .i { width: 1.2em; height: 1.2em; }
.inp-list, .inp-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4cqmin; }
.inp-slot { background: #f6f7fb; border-radius: 14px; padding: 1.8cqmin 2.2cqmin; display: grid; gap: 1.2cqmin; }
.inp-slot-head { display: flex; align-items: center; gap: 2cqmin; }
.inp-slot-head .grow { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: max(13px, 3.8cqmin); }
.inp-time { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--wa-ink); font-size: max(14px, 4.2cqmin); }
.inp-level { font-size: .72em; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.lv-grundlegend { background: #dcf5e8; color: #157347; } .lv-erweitert { background: #e6f0ff; color: #2b5fd9; } .lv-vertieft { background: #f3e8ff; color: #7e3fd0; }
.inp-seats { font-weight: 800; font-size: max(12px, 3.4cqmin); color: #6b7091; }
.inp-seats.full { color: #d0343e; }
.inp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.inp-chip, .inp-join { border: none; border-radius: 999px; padding: .45em .9em; font-weight: 700; font-size: max(13px, 3.4cqmin); cursor: pointer; min-height: 40px; }
.inp-chip { background: #fff; color: #1d2140; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.inp-join { background: var(--wa-soft); color: var(--wa-ink); display: inline-flex; align-items: center; gap: 4px; }
.inp-join .i { width: 1em; height: 1em; }
.inp-help-btn { border: none; border-radius: 16px; padding: .7em 1em; font-weight: 800; font-size: max(14px, 4cqmin); background: #f28c38; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; box-shadow: 0 3px 0 #c96d22; }
.inp-help-btn .i { width: 1.3em; height: 1.3em; }
.inp-queue li { display: flex; align-items: center; gap: 2cqmin; background: #fff4e8; border-radius: 12px; padding: 1.2cqmin 1.8cqmin; }
.inp-queue .grow { flex: 1; display: grid; font-size: max(13px, 3.8cqmin); }
.inp-queue small { color: #8a8fb0; font-weight: 700; }
.inp-pos { width: 1.9em; height: 1.9em; border-radius: 50%; background: #f28c38; color: #fff; display: grid; place-items: center; font-weight: 900; flex: none; }
.inp-empty { color: #8a8fb0; font-weight: 700; margin: 0; font-size: max(12px, 3.4cqmin); }
.inp-picker { position: absolute; inset: 0; z-index: 5; background: rgba(255,255,255,.98); border-radius: inherit; padding: 3cqmin; display: flex; flex-direction: column; gap: 2cqmin; }
.inp-picker-head { display: flex; justify-content: space-between; align-items: center; font-size: max(15px, 4.4cqmin); }
.inp-names { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(max(110px, 22cqmin), 1fr)); gap: 1.6cqmin; align-content: start; }
.inp-names button { min-height: 52px; border-radius: 14px; border: 2px solid #e4e6f0; background: #fff; font-weight: 800; font-size: max(15px, 4cqmin); cursor: pointer; color: #1d2140; }
.inp-names button:hover { border-color: var(--wa); background: var(--wa-soft); }
.inp-names button.taken { background: var(--wa-soft); color: var(--w-muted); text-decoration: line-through; }
.look-playful .widget[data-type=inputs] { --pw: #fff8ec; }

/* Wunschbox widget */
.wb { flex: 1; display: flex; flex-direction: column; gap: 2cqmin; padding: 4cqmin; min-height: 0; text-align: center; }
.wb-qr-box { display: grid; justify-items: center; gap: 1cqmin; }
.wb-qr { width: min(52cqw, 34cqh); aspect-ratio: 1; image-rendering: pixelated; }
.wb-qr-box small { color: #6b7091; font-weight: 700; font-size: max(11px, 3.4cqmin); }
.wb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4cqmin; text-align: left; overflow: auto; flex: 1; }
.wb-list li { background: #f6f7fb; border-radius: 12px; padding: 1.6cqmin 2.2cqmin; font-weight: 600; font-size: max(13px, 3.8cqmin); line-height: 1.3; }
.wb-list li b { display: block; font-size: .72em; text-transform: uppercase; letter-spacing: .05em; color: var(--wa-ink); }
.wb-list li.cat-liked { background: #e8f9f0; } .wb-list li.cat-bother { background: #fff4e5; }
.look-playful .widget[data-type=wishbox] { --pw: #fdeef6; }
.poll-bars.covered { align-items: center; justify-content: center; }
.poll-covered { display: grid; justify-items: center; gap: 1cqmin; color: #6b7091; font-weight: 700; font-size: max(12px, 4cqmin); }
.poll-covered b { font-size: 1.6em; color: #1d2140; }
.poll-bars { overflow: hidden; }
.poll-covered { overflow: hidden; max-height: 100%; }
.poll-covered .w-btn { position: relative; z-index: 1; }
.widget:focus-visible { outline: 3px solid #5a4bd6; outline-offset: 3px; }

/* Large displays (4K boards, 1440p+ projectors): the controls around the screen grow with it, so the dock,
   labels and panels stay readable from the board. Widgets already scale with the screen (cq units). */
@media (min-width: 2200px) and (min-height: 1300px) {
  .dock, .switcher, .board-chip, .panel, .toast-stack { zoom: 1.4; }
}
@media (min-width: 3000px) and (min-height: 1800px) {
  .dock, .switcher, .board-chip, .panel, .toast-stack { zoom: 1.9; }
}
.dock .lbl { font-size: 10.5px; }
.sw-name { font-size: 13.5px; }

/* Kinder-Rechte (settings panel) and controls that exist only where allowed */
.kids-rights { border: 1px solid #e4e6f0; border-radius: 12px; padding: 10px 14px 6px; margin: 14px 0 0; }
.kids-rights legend { font-weight: 800; padding: 0 4px; }
.kids-rights small { display: block; margin: 0 0 8px; }
.poll-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.w-btn.hold { position: relative; overflow: hidden; }
.w-btn.hold::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: currentColor; }
.w-btn.hold.holding::after { width: 100%; transition: width 1.5s linear; }
.update-chip { position: fixed; right: 14px; bottom: 14px; z-index: 1200; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: #1d2140; color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25); }

/* Ablauf (lesson phases) */
.lesson { display: flex; flex-direction: column; height: 100%; padding: 3cqmin 4cqmin; gap: 2cqmin; }
.lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4cqmin; flex: 1; align-content: start; overflow: auto; }
.lesson-list li { display: flex; align-items: center; gap: 2.5cqmin; padding: 1.8cqmin 2.5cqmin; border-radius: 2.5cqmin; font-size: max(13px, 5cqmin); font-weight: 700; color: var(--w-muted); }
.lesson-list li.now { background: var(--wa); color: #fff; font-size: max(15px, 6.4cqmin); box-shadow: 0 1cqmin 3cqmin rgba(108, 92, 231, .35); }
.lesson-list li.done { color: var(--w-muted); text-decoration: line-through; }
.lesson-n { width: 7cqmin; height: 7cqmin; min-width: 22px; min-height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.06); font-size: .8em; flex: none; }
.lesson-list li.now .lesson-n { background: rgba(255,255,255,.25); }
.lesson-n .i, .lesson-sym { width: 1em; height: 1em; }
.lesson-t { flex: 1; }
.lesson-left { text-align: center; font-weight: 800; color: var(--w-muted); min-height: 1.2em; }
.lesson-left.over { color: var(--w-bad); }
.widget.phase-hidden { opacity: .35; outline: 2px dashed var(--w-muted); }

/* Reflexion */
.refl { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqmin; height: 100%; padding: 3cqmin; text-align: center; }
.w-btn.big { font-size: max(15px, 6cqmin); padding: 2cqmin 5cqmin; }
.refl-count { color: var(--w-muted); font-weight: 700; }
.refl-form { display: flex; flex-direction: column; gap: 10px; }
.refl-prompts, .refl-scale { display: flex; flex-wrap: wrap; gap: 6px; }
.refl-prompts button, .refl-scale button { min-height: 44px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--w-line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.refl-scale button { font-size: 26px; width: 56px; padding: 0; }
.refl-prompts button.on, .refl-scale button.on { border-color: var(--wa); background: var(--wa-soft); }
.refl-form textarea { width: 100%; font: inherit; border: 2px solid var(--w-line); border-radius: 12px; padding: 8px 10px; }
/* Lernaufgaben */
.lt { display: flex; flex-direction: column; height: 100%; padding: 3cqmin; gap: 2cqmin; }
.lt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2cqmin; overflow: auto; }
.lt-task { border: 2px solid var(--w-line); border-radius: 2.5cqmin; padding: 2cqmin 2.5cqmin; display: grid; gap: 1.2cqmin; background: #fff; }
.lt-task.required { border-color: var(--wa-soft2); }
.lt-head { display: flex; align-items: center; gap: 2cqmin; font-size: max(13px, 4.4cqmin); }
.lt-head b { flex: 1; }
.lt-level { color: var(--w-star); letter-spacing: .05em; }
.lt-kind { font-size: .75em; font-weight: 800; text-transform: uppercase; color: #5f6485; }
.lt-material { display: flex; align-items: center; gap: 2cqmin; }
.lt-qr { width: 14cqmin; min-width: 56px; image-rendering: pixelated; }
.lt-state { display: flex; gap: 3cqmin; font-weight: 700; color: var(--w-muted); }
.lt-names { display: flex; flex-wrap: wrap; gap: 4px; }
.lt-names .chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--wa-soft); display: inline-flex; align-items: center; gap: 3px; }
.lt-names .chip.done { background: var(--w-ok-soft); }
.lt-names .chip .i { width: 12px; height: 12px; }
/* Ämter */
.duty { display: flex; flex-direction: column; height: 100%; padding: 3cqmin 4cqmin; gap: 2cqmin; }
.duty-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6cqmin; overflow: auto; }
.duty-list li { display: flex; align-items: center; gap: 2.5cqmin; font-size: max(13px, 5cqmin); }
.duty-icon { font-size: 1.3em; }
.duty-title { flex: 1; color: var(--w-muted); font-weight: 700; }
.duty-who { font-size: 1.05em; }

/* Dock "Alle" panel */
.all-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.all-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 76px; padding: 10px 6px; border: 1px solid var(--w-line); border-radius: 14px; background: #fff; color: var(--w-ink); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.all-item:hover { background: var(--wa-soft); }
.all-item .ico { width: 24px; height: 24px; }
.refl-qr { display: grid; justify-items: center; gap: 1cqmin; }
.refl-qr img { width: 40cqmin; max-width: 220px; image-rendering: pixelated; }
.refl-url { font-weight: 800; font-size: max(13px, 4cqmin); }
.refl-err { color: var(--w-bad); font-weight: 700; margin: 0; }

/* Lehrkraft-Zugang (PIN, 2 minutes) */
.teacher-chip { position: fixed; left: 14px; bottom: 14px; z-index: 1300; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--w-ink); color: #fff; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.teacher-chip .i { width: 18px; height: 18px; }
/* Outside any widget (no container): fixed sizes – cqw would mean the viewport here (R2). */
.teacher-chip .w-btn { min-height: 48px; font-size: 15px; padding: 0 14px; }
.pin-input { width: 100%; font-size: 2em; letter-spacing: .6em; text-align: center; padding: .3em; border-radius: 14px; border: 2px solid var(--w-muted); }
.locked .dock button:not([data-dock="lock"]):not([data-dock="fullscreen"]) { display: none; }
/* rows editor (settings panel) */
.rows-editor { display: grid; gap: 10px; }
.row-card { border: 1px solid var(--w-line); border-radius: 12px; padding: 8px 10px; display: grid; gap: 6px; background: #fff; }
.row-head { display: flex; align-items: center; gap: 4px; }
.row-head b { flex: 1; }
.row-field { display: grid; gap: 3px; font-size: .88em; }
.row-field span { font-weight: 700; color: var(--w-muted); }
.row-field input, .row-field select { min-height: 40px; border: 1px solid var(--w-muted); border-radius: 10px; padding: 0 10px; font: inherit; }
.type-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.type-chip { min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--w-line); background: #fff; font: inherit; font-size: .85em; cursor: pointer; }
.type-chip.on { background: var(--wa-soft); border-color: var(--wa-ink); color: var(--wa-ink); font-weight: 700; }
.rows-error { color: var(--w-bad); font-weight: 700; }
.duty-icon.i { width: 1.3em; height: 1.3em; color: var(--wa-ink); }
.kids-presets { margin: 4px 0 8px; }
.kids-rows { display: grid; gap: 6px; }
.kids-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kids-row span { flex: 1; }
.dock-favs { display: contents; }
.all-search { width: 100%; min-height: 44px; border: 1px solid #858aac; border-radius: 12px; padding: 0 12px; font: inherit; margin-bottom: 8px; }
.all-widgets h4 { margin: 12px 0 6px; font-size: .85em; text-transform: uppercase; letter-spacing: .04em; color: var(--w-muted, #5f6485); }
/* min-width: 0 + height: 100% – long names (Dokumentenkamera) wrap inside the tile, all tiles in a row are equally tall. */
.all-item { position: relative; padding: 0; border: 0; background: none; min-height: 0; min-width: 0; }
.all-add { width: 100%; height: 100%; min-width: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 84px; padding: 10px 6px; border: 1px solid #e4e6f0; border-radius: 14px; background: #fff; color: #1d2140; font: inherit; font-size: 13px; cursor: pointer; }
.all-add b { max-width: 100%; padding: 0 2px; text-align: center; line-height: 1.2; hyphens: auto; overflow-wrap: anywhere; }
.all-add small { max-width: 100%; color: #5f6485; font-size: 11px; text-align: center; hyphens: auto; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.all-add:hover { background: #f0eefe; }
.all-star { position: absolute; top: 2px; right: 2px; width: 32px; height: 32px; border: 0; background: none; color: #c9cbe0; cursor: pointer; display: grid; place-items: center; }
.all-star::before { content: ""; position: absolute; inset: -6px; }
.all-star.on { color: #946600; }
.all-star.on .i { fill: currentColor; }

/* Projector link renewed ("Beamer trennen"): only this hint stays on screen. */
.display-off { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .4em; text-align: center; color: #fff; background: #1d2140; }
.display-off .i { width: 64px; height: 64px; }
.display-off h1 { font-size: clamp(1.6em, 4vw, 2.8em); margin: 0; }
.display-off p { font-size: 1.2em; font-weight: 700; margin: 0; }

/* Touch targets at the board: at least 48 px (README) – children tap from below, often two at once. */
.widget-body :is(.w-btn, .inp-chip, .inp-join, .timer-presets button) { min-height: 48px; }
.widget-body .w-btn.round { min-width: 48px; min-height: 48px; }
.widget-body .name-chip.absent { opacity: .55; text-decoration: line-through; }
.widget-body .name-chip.absent small { text-decoration: none; font-weight: 700; }

/* Learning tasks compact (S27): "Arbeite dran / Fertig" beside the task, so three tasks fit without scrolling.
   Narrow widgets keep them below the title. */
.lt-task { grid-template-columns: 1fr auto; align-items: center; column-gap: 2cqmin; }
.lt-task > :not(.w-actions) { grid-column: 1; }
.lt-task > .w-actions { grid-column: 2; grid-row: 1 / span 3; margin: 0; flex-wrap: nowrap; gap: 1.5cqmin; }
.lt-task .w-btn { font-size: max(14px, 3.6cqmin); padding: .3em .8em; white-space: nowrap; }
@container (max-width: 460px) {
  .lt-task { grid-template-columns: 1fr; }
  .lt-task > .w-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}

/* Readable from the back of the room (R7): on the projector every text children read in inputs, learning tasks
   and groups is at least 18 px; the widgets' own scaling stays above that. */
.screen.display :is(.inp-col h4, .inp-seats, .inp-chip, .inp-join, .inp-empty) { font-size: max(18px, 3.4cqmin); }
.screen.display :is(.inp-slot-head .grow, .inp-queue .grow) { font-size: max(18px, 3.8cqmin); }
.screen.display .inp-time { font-size: max(18px, 4.2cqmin); }
.screen.display :is(.inp-level, .lt-kind) { font-size: max(18px, .75em); }
.screen.display :is(.lt-head, .group-card b) { font-size: max(18px, 4.4cqmin); }
.screen.display :is(.lt-state, .lt-task .w-btn, .groups-pool > b) { font-size: max(18px, 3.6cqmin); }
.traffic-box .lamp { cursor: default; }

/* Groups that do not fit (R7): a visible hint below the grid, which scrolls. */
.groups-more { flex: none; text-align: center; font-weight: 800; font-size: max(16px, 3.6cqmin); color: var(--wa-ink); background: var(--wa-soft); border-radius: 999px; padding: .2em .8em; }
.screen.display :is(.groups-head .w-title, .groups-head > b) { font-size: max(18px, 7cqmin); }
.screen.display .groups-more { font-size: max(18px, 3.6cqmin); }
/* R7/R15: the rest of groups and "Wer ist dran?" on the projector – counters, hints, buttons – is at least 18 px too. */
.screen.display .group-card b small { font-size: 1em; }
.screen.display .widget[data-type=groups] :is(.stepper, .w-btn, .w-placeholder, .muted) { font-size: max(18px, 4.4cqmin); }
.screen.display .widget[data-type=name_picker] .picker-meta { font-size: max(18px, 5cqmin); }
.screen.display .widget[data-type=name_picker] .w-btn { font-size: max(20px, 6cqmin); }
/* ---------- Wort-Duell (word_duel): two team towers, the word, a letter keyboard ---------- */
/* Team colours: --tc as text on white / on --tc-soft and as fill under white text – bin/check-contrast.php checks them. */
.duel-c-blue { --tc: #1d64d8; --tc-soft: #eaf1fc; }
.duel-c-orange { --tc: #b23a0a; --tc-soft: #fbefe9; }
.duel-c-green { --tc: #12703a; --tc-soft: #e8f4ec; }
.duel-c-purple { --tc: #7034e0; --tc-soft: #f1ebfc; }
.duel-c-pink { --tc: #be185d; --tc-soft: #fbeaf1; }
.duel-c-teal { --tc: #0f766e; --tc-soft: #e6f3f2; }
.wd { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr) minmax(0, 1fr); gap: 2.5cqmin; padding: 2.5cqmin; min-height: 0; }
.wd-team { display: flex; flex-direction: column; align-items: center; gap: 1.2cqmin; min-height: 0; padding: 2cqmin 1.5cqmin; border-radius: 16px;
  background: var(--tc-soft); border: 4px solid transparent; color: var(--w-ink); transition: border-color .2s, box-shadow .2s; }
.wd-team.active { border-color: var(--tc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tc) 22%, transparent); }
.wd-head { border: 0; background: none; padding: 0 .3em; font: inherit; font-weight: 800; color: var(--tc); text-align: center; max-width: 100%;
  font-size: max(14px, 4.4cqmin); line-height: 1.15; overflow-wrap: anywhere; min-height: var(--hit, 44px); display: grid; place-items: center; border-radius: 10px; }
button.wd-head { cursor: pointer; }
button.wd-head:hover { background: color-mix(in srgb, var(--tc) 12%, transparent); }
.wd-pill { background: var(--tc); color: #fff; font-weight: 800; border-radius: 999px; padding: .15em .8em; font-size: max(12px, 3cqmin); }
.wd-wins { display: inline-flex; align-items: center; gap: .3em; font-weight: 800; font-size: max(14px, 4cqmin); font-variant-numeric: tabular-nums; }
.wd-wins .i { color: var(--w-star); fill: currentColor; }
.wd-tower { flex: 1; min-height: 0; width: 100%; color: var(--tc); overflow: visible; }
.wd-block { fill: currentColor; }
.wd-gone { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 4 3; }
.wd-flag { fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.wd-fall { animation: wd-fall 1s ease-in forwards; transform-box: fill-box; transform-origin: center; }
@keyframes wd-fall { to { transform: translate(30px, 60px) rotate(40deg); opacity: 0; } }
.look-playful .wd-tower rect { rx: 4px; }
.look-calm .wd-tower rect { rx: 1px; }
.look-calm .wd-flag { display: none; }
.wd-left { font-weight: 700; font-size: max(12px, 3cqmin); text-align: center; }
.wd-team .w-btn { font-size: max(12px, 3.2cqmin); min-height: var(--hit, 44px); }
.wd-miss { background: #fff; color: var(--w-bad); box-shadow: inset 0 0 0 2px currentColor; }
.wd-miss:hover { background: #fff; }
.wd-solve { background: #fff; color: var(--tc); box-shadow: inset 0 0 0 2px currentColor; }
.wd-solve:hover { background: #fff; }
.wd-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqmin; min-width: 0; min-height: 0; text-align: center; color: var(--w-ink); }
.wd-hint { font-weight: 700; color: var(--wa-ink); background: var(--wa-soft); border-radius: 999px; padding: .2em 1em; font-size: max(13px, 3.6cqmin); }
.wd-word { display: flex; flex-wrap: wrap; justify-content: center; gap: .25em .9em; font-weight: 800; line-height: 1;
  font-size: max(20px, min(12cqh, calc(62cqw / (var(--len) + 1)))); }
.wd-group { display: inline-flex; gap: .16em; }
.wd-slot { display: inline-grid; place-items: end center; width: .95em; height: 1.2em; padding-bottom: .06em; border-bottom: .1em solid var(--w-ink); color: var(--w-ink); }
.wd-slot.open { animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.wd-sym { display: inline-grid; place-items: end center; height: 1.2em; padding-bottom: .1em; color: var(--w-ink); }
.wd-status { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3em .8em; font-size: max(14px, 4cqmin); }
.wd-winner { display: inline-flex; align-items: center; gap: .3em; color: var(--wa-ink); font-size: 1.2em; }
.wd-winner .i { color: var(--w-star); fill: currentColor; }
.wd-keys { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 1cqmin; width: 100%; max-width: 110cqh; }
.wd-key { min-height: max(var(--hit, 44px), 7cqh); border: 2px solid var(--w-line); background: #fff; color: var(--w-ink); border-radius: 10px;
  font: inherit; font-weight: 800; font-size: max(16px, 3.6cqmin); cursor: pointer; padding: 0; touch-action: manipulation; }
.wd-key:hover:not(:disabled) { border-color: var(--wa); background: var(--wa-soft); }
.wd-key:active:not(:disabled) { transform: scale(.94); }
.wd-key:disabled { cursor: default; }
.wd-key.hit { background: var(--wa); border-color: var(--wa); color: #fff; }
.wd-key.miss { background: #eef0f6; color: var(--w-muted); text-decoration: line-through 2px; }
.wd-key:focus-visible, .wd-head:focus-visible, .wd-team .w-btn:focus-visible { outline: 3px solid var(--wa-ink); outline-offset: 2px; }
.wd-tools { display: flex; flex-wrap: wrap; gap: 1.5cqmin; justify-content: center; align-items: center; }
.wd-tools .w-btn { font-size: max(13px, 3.4cqmin); min-height: var(--hit, 44px); }
.wd-queue { color: var(--w-muted); font-weight: 700; font-size: max(12px, 3cqmin); }
.look-calm .wd-team { border-radius: 10px; }
.look-calm .wd-key { border-radius: 6px; }
/* Tall or narrow widget: the teams sit side by side above the word. */
@container (max-aspect-ratio: 1/1) {
  .wd { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .wd-mid { grid-column: 1 / -1; grid-row: 2; }
  .wd-tower { max-height: 22cqh; }
}

/* Timetable "Ein Tag": teacher flips the day on the widget */
.tt-day { display: flex; align-items: center; gap: 1.5cqmin; }
.tt-day > span { flex: 1; min-width: 0; }
.tt-other { font-weight: 700; opacity: .65; font-size: .8em; }
.tt-flip { border: none; background: rgba(0,0,0,.05); color: inherit; border-radius: 999px; min-width: 32px; height: 32px; padding: 0 8px; display: grid; place-items: center; cursor: pointer; font: inherit; font-size: max(12px, .8em); font-weight: 800; }
.tt-flip:hover { background: rgba(0,0,0,.1); }
.tt-flip .i { width: 18px; height: 18px; }
.tt-flip:disabled { opacity: .3; cursor: default; }

/* ---------- trial screen (/ausprobieren): intro, hint bar, „Mit Konto“ in the widget list ---------- */
.trial-intro {
  position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px;
  background: rgba(14, 31, 25, .55); backdrop-filter: blur(6px); overflow-y: auto;
}
.trial-card {
  width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; color: #0e1f19;
  border-radius: 24px; padding: clamp(20px, 4vw, 36px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); font-family: "Nunito", system-ui, sans-serif;
}
.trial-kicker { margin: 0 0 6px; font-weight: 800; font-size: .85em; letter-spacing: .04em; text-transform: uppercase; color: #17604a; }
.trial-card h1 { font-family: "Gabarito", "Nunito", sans-serif; font-weight: 800; font-size: clamp(1.5rem, 4.2vw, 2.25rem); line-height: 1.12; margin: 0 0 12px; }
.trial-card h2 { font-family: "Gabarito", "Nunito", sans-serif; font-size: 1.1rem; margin: 26px 0 10px; }
.trial-lead { font-size: 1.08em; line-height: 1.5; margin: 0 0 18px; color: #2b3a33; }
.trial-start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trial-go {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 12px 16px; border-radius: 16px;
  border: 2px solid #ffcb2e; background: #ffcb2e; color: #1f1600; font: inherit; text-align: left; cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.trial-go b { font-size: 1.05em; }
.trial-go small { font-size: .85em; font-weight: 600; color: #3d3000; }
.trial-go.ghost { background: #fff; border-color: #c9d6cf; color: #0e1f19; }
.trial-go.ghost small { color: #47574f; }
.trial-go:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4); }
.trial-go:focus-visible, .trial-bar a:focus-visible, .trial-bar button:focus-visible { outline: 3px solid #17604a; outline-offset: 2px; }
.trial-go:disabled { cursor: progress; opacity: .7; }
.trial-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.trial-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; font-size: .95em; color: #2b3a33; }
.trial-list .i { flex: none; width: 22px; height: 22px; margin-top: 1px; color: #17604a; }
.trial-list b { display: block; color: #0e1f19; }
.trial-foot { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid #e3e9e5; font-size: .92em; line-height: 1.5; color: #47574f; }
.trial-foot a, .trial-note a { color: #17604a; font-weight: 800; }
.trial-note { margin: 12px 0 0; font-weight: 700; }

.trial-bar {
  position: fixed; top: 14px; right: 14px; z-index: 1000; display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 28px);
  padding: 6px 6px 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(20, 24, 60, .15); color: #1d2140; font-size: 14px; transition: opacity .3s, transform .3s;
}
.trial-bar-text { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.trial-bar-text > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trial-bar-text .i { flex: none; width: 16px; height: 16px; color: #5f6485; }
.trial-bar-long { font-weight: 600; color: #5f6485; }
.trial-bar-cta .trial-bar-long { color: inherit; }
.trial-bar-info { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #4b5072; cursor: pointer; }
.trial-bar-info:hover { background: #f0eefe; }
.trial-bar-info .i { width: 20px; height: 20px; }
.trial-bar-cta {
  flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: #ffcb2e; color: #1f1600; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.trial-bar-cta:hover { box-shadow: 0 0 0 3px rgba(255, 203, 46, .3); }
.is-idle .trial-bar { opacity: 0; pointer-events: none; transform: translateY(-10px); }
:fullscreen .trial-bar { display: none; }
.trial-page .board-chip .cls { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.all-account h4 { display: flex; align-items: center; gap: 6px; }
.all-account .all-add { background: #f7f7fb; color: #5f6485; }
.all-account .all-add small { display: inline-flex; align-items: center; gap: 3px; }
.all-account .all-add small .i { width: 11px; height: 11px; }
.trial-class textarea { width: 100%; resize: vertical; font: inherit; }
.trial-info-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.trial-info-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.trial-info-list .i { flex: none; width: 20px; height: 20px; margin-top: 2px; }

@media (max-width: 1599px) { .trial-bar-long { display: none; } }
@media (max-width: 700px) {
  .trial-start { grid-template-columns: 1fr; }
  .trial-list { grid-template-columns: 1fr; }
  .trial-go { min-height: 54px; }
  /* Phones: below the name chip, so neither covers the other. */
  .trial-bar { top: 70px; left: 14px; right: auto; font-size: 13px; }
}

/* "Vorlage verbessert – neu anwenden?": quiet, top centre, teacher's unlocked view only (never locked or in fullscreen). */
.tpl-notice { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1100; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 32px); padding: 6px 8px 6px 14px; border-radius: 14px; background: rgba(255,255,255,.94); color: #1d2140; font-weight: 700; font-size: .9rem; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.tpl-notice[hidden], html.locked .tpl-notice, :root:fullscreen .tpl-notice { display: none; }
.tpl-notice .btn.small { min-height: 36px; }

/* ---------- Sitzplan (seating): desks in rows, group tables or a U; names ≥ 20 px for the back row ---------- */
.seating { flex: 1; display: flex; flex-direction: column; gap: 1.6cqmin; padding: 2.5cqmin; min-height: 0; }
.seat-head { display: flex; align-items: center; gap: 1.5cqmin; flex-wrap: wrap; }
.seat-head .w-title { margin: 0; flex: 1; text-align: left; }
.seat-tools { display: flex; gap: 1.2cqmin; flex-wrap: wrap; }
.seat-front { align-self: center; padding: .2em 2.4em; border-radius: 8px; border: 2px solid var(--w-ink); background: #fff; color: var(--w-ink); font-weight: 800; font-size: max(16px, 2.6cqmin); }
.seat-room { flex: 1; min-height: 0; display: grid; gap: 1.4cqmin; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); }
.seat { display: grid; place-items: center; align-content: center; min-width: 0; min-height: 0; padding: .2em .3em; border: 2px solid var(--w-line); border-radius: 10px; background: #fff; text-align: center; overflow: hidden; transition: background .12s, box-shadow .12s; touch-action: none; }
.seat-name { font-size: max(20px, 3.4cqmin); font-weight: 800; color: var(--w-ink); line-height: 1.1; overflow-wrap: anywhere; }
.seat-no { font-size: max(14px, 2.2cqmin); font-weight: 700; color: var(--w-muted); }
.seat small { font-size: max(14px, 1.8cqmin); font-weight: 700; color: var(--w-muted); }
.seat.taken { border-color: color-mix(in srgb, var(--wa) 45%, var(--w-line)); cursor: grab; }
.seat.absent { border-style: dashed; border-color: var(--w-line); }
.seat.absent .seat-name { color: var(--w-muted); font-weight: 700; }
.seat.selected, .seating .name-chip.selected { outline: 4px solid var(--wa); outline-offset: 2px; }
.seat.target { border-style: dashed; border-color: var(--wa); cursor: pointer; }
.seat.over, .seat-pool.over { background: var(--wa-soft); box-shadow: inset 0 0 0 3px var(--wa); }
.seat-table { display: flex; flex-direction: column; gap: .8cqmin; padding: 1cqmin; border-radius: 14px; background: #f1f2f8; min-height: 0; min-width: 0; }
.seat-table-no { font-size: max(13px, 1.8cqmin); font-weight: 700; color: var(--w-muted); text-align: center; }
.seat-table-seats { flex: 1; min-height: 0; display: grid; gap: .8cqmin; grid-template-columns: repeat(var(--per), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
.seat-hint { padding: .4em .8em; border-radius: 10px; background: var(--wa-soft); color: var(--wa-ink); font-weight: 700; font-size: max(16px, 2.4cqmin); }
.seat-pool { border-radius: 12px; padding: 1.4cqmin 2cqmin; background: #f1f2f8; border: 2px dashed #d7d9e8; max-height: 30%; overflow: auto; }
.seat-pool > b { display: block; font-size: max(14px, 2.4cqmin); color: #5f6485; margin-bottom: .4em; }
.seat-pool .name-chip { cursor: grab; touch-action: none; }
.look-playful .seat { border-radius: 14px; }

/* ---------- Buzzer-Runde (buzzer): scores, the question, the fastest team huge, one pad per team ---------- */
.bz { flex: 1; display: flex; flex-direction: column; gap: 2cqmin; padding: 2.5cqmin; min-height: 0; }
.bz-scores { display: flex; gap: 1.6cqmin; flex-wrap: wrap; }
.bz-score { flex: 1 1 0; min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: .5em; padding: .4em .8em; border-radius: 12px; background: var(--tc-soft); border-top: 6px solid var(--tc); }
.bz-score span { color: var(--tc); font-weight: 800; font-size: max(18px, 3.2cqmin); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-score b { color: var(--w-ink); font-weight: 900; font-size: max(24px, 5cqmin); font-variant-numeric: tabular-nums; }
.bz-score.lead b::before { content: "★ "; color: var(--w-star); }
.bz-score.out { border-top-style: dashed; }
.bz-stage { flex: 1; min-height: 0; display: grid; place-items: center; text-align: center; overflow: auto; }
.bz-msg { display: grid; gap: 1.6cqmin; justify-items: center; font-size: max(22px, 4.6cqmin); font-weight: 800; color: var(--w-ink); }
.bz-question { font-size: max(26px, 6cqmin); font-weight: 800; color: var(--w-ink); line-height: 1.2; overflow-wrap: anywhere; }
.bz-go b { color: var(--wa-ink); }
.bz-dots { font-size: max(48px, 14cqmin); line-height: .6; color: var(--wa-ink); animation: pop .3s ease-out infinite alternate; }
.bz-winner { width: 100%; display: grid; gap: 1.4cqmin; justify-items: center; padding: 3cqmin 4cqmin; border-radius: 22px; background: var(--tc); color: #fff; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.bz-first { font-size: max(20px, 4cqmin); font-weight: 800; }
.bz-team { font-size: max(44px, 13cqmin); font-weight: 900; line-height: 1; overflow-wrap: anywhere; }
.bz-q-small { font-size: max(18px, 3cqmin); font-weight: 700; }
.bz-time { display: grid; gap: .8cqmin; justify-items: center; font-size: max(32px, 9cqmin); font-weight: 900; font-variant-numeric: tabular-nums; width: 60%; }
.bz-bar { display: block; width: 100%; height: max(8px, 1.4cqmin); border-radius: 99px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.bz-bar::after { content: ""; display: block; height: 100%; width: calc(var(--f) * 100%); background: #fff; transition: width .2s linear; }
.bz-time.up { width: auto; padding: .1em .7em; border-radius: 999px; background: #fff; color: var(--w-bad); font-size: max(30px, 7cqmin); }
.bz-done { gap: 2cqmin; }
.bz-right { display: inline-flex; align-items: center; gap: .4em; padding: .3em .9em; border-radius: 999px; background: var(--tc); color: #fff; font-size: max(26px, 6cqmin); }
.bz-solution { padding: .3em .9em; border-radius: 14px; background: var(--w-ok-soft); color: var(--w-ink); font-size: max(28px, 7cqmin); font-weight: 900; overflow-wrap: anywhere; }
.bz-pads { display: grid; gap: 2cqmin; grid-template-columns: repeat(min(var(--n), 3), minmax(0, 1fr)); }
.bz-pads[hidden] { display: none; }
.bz-pad { display: grid; gap: .2em; place-items: center; min-height: max(76px, 16cqmin); padding: .4em; border: 0; border-radius: 20px; background: var(--tc); color: #fff; font: inherit; font-weight: 900; font-size: max(22px, 5cqmin); cursor: pointer; box-shadow: 0 6px 0 color-mix(in srgb, var(--tc) 60%, #000); touch-action: manipulation; }
.bz-pad small { font-size: .6em; font-weight: 800; letter-spacing: .06em; }
.bz-pad:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--tc) 60%, #000); }
.bz-pad:disabled { background: #fff; color: var(--w-muted); border: 3px dashed var(--w-line); box-shadow: none; cursor: default; }
.bz-foot { display: flex; align-items: center; justify-content: space-between; gap: 2cqmin; flex-wrap: wrap; }
.bz-tools { display: flex; align-items: center; gap: 1.2cqmin; flex-wrap: wrap; margin-left: auto; }
.bz-tools .w-btn { font-size: max(16px, 2.8cqmin); }
.widget-body .bz-ok { background: #12703a; color: #fff; }
.widget-body .bz-no { background: #b4232c; color: #fff; }
.bz-left, .bz-secret { color: var(--w-muted); font-weight: 700; font-size: max(14px, 2.2cqmin); display: inline-flex; align-items: center; gap: .3em; }
.bz-devices { display: flex; align-items: center; gap: 1.4cqmin; color: var(--w-ink); font-weight: 700; font-size: max(16px, 2.4cqmin); }
.bz-devices[hidden] { display: none; }
.bz-qr { width: max(84px, 14cqmin); height: auto; image-rendering: pixelated; border-radius: 6px; background: #fff; }
.bz-url { font-size: max(18px, 3cqmin); }
.bz-url strong { letter-spacing: .08em; }
