/* Phase 1 Interactive Webinar — host prompter + live engagement feed. */
#webinarignition_console .wi-prompter-tab {
	padding: 20px;
	box-sizing: border-box;
	background: #fff;
	color: #1d2327;
}

.wi-prompter-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 20px;
	align-items: start;
}

@media (max-width: 1100px) {
	.wi-prompter-layout {
		grid-template-columns: 1fr;
	}
}

.wi-prompter-title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
}

.wi-prompter-hint {
	margin: 0 0 12px;
	font-size: 13px;
	color: #646970;
	line-height: 1.45;
}

.wi-prompter-toolbar {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 10px;
}

.wi-prompter-fireline-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	cursor: pointer;
	user-select: none;
}

.wi-prompter-browser-notice-wrap {
	margin-bottom: 12px;
}

.wi-prompter-browser-notice {
	margin: 0;
	padding: 10px 12px;
	font-size: 13px;
	line-height: 1.45;
	color: #7f2a00;
	background: #fff0e0;
	border: 1px solid #ffd8b0;
	border-left: 4px solid #f9844b;
	border-radius: 4px;
}

#wiPrompterSource {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 120px;
	max-height: 220px;
	resize: vertical;
	margin-bottom: 10px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	line-height: 1.5;
	padding: 10px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

/* Scrolling stage where the host reads; fire line sits at 40% from the top. */
.wi-prompter-view {
	position: relative;
	box-sizing: border-box;
	height: 60vh;
	min-height: 320px;
	overflow: auto;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fafafa;
	padding: 18px 20px 30px;
}

.wi-prompter-view:before {
	content: '';
	position: sticky;
	top: -2px;
	display: block;
	height: 2px;
	margin-top: -18px;
	margin-bottom: 16px;
	background: #e64f1d;
	opacity: .9;
	pointer-events: none;
	z-index: 5;
}

.wi-prompter-line {
	font-size: 17px;
	line-height: 1.6;
	color: #1d2327;
	margin: 0 0 12px;
	white-space: pre-wrap;
}

.wi-prompter-line.wi-prompter-timestamp {
	font-size: 13px;
	color: #787c82;
	font-weight: 600;
	margin-top: 18px;
}

.wi-prompter-line.wi-prompter-heading {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 8px;
}

/* A beat = one [TRIGGER:...] marker rendered as a card. */
.wi-prompter-beat {
	background: #fff;
	border: 1px solid #e64f1d;
	border-left: 4px solid #e64f1d;
	border-radius: 6px;
	padding: 10px 12px;
	margin: 14px 0;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.wi-prompter-beat.wi-prompter-fired {
	border-color: #c3c4c7;
	border-left-color: #46b450;
	opacity: .85;
}

.wi-prompter-beat.wi-prompter-current {
	border-left-color: #d22;
	box-shadow: 0 0 0 3px rgba(221, 34, 34, .12);
}

.wi-prompter-beat-label {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
	background: #e64f1d;
	border-radius: 3px;
	padding: 2px 7px;
	margin-right: 8px;
}

.wi-prompter-beat.wi-prompter-fired .wi-prompter-beat-label {
	background: #46b450;
}

.wi-prompter-beat.wi-prompter-beat-slide .wi-prompter-beat-label {
	background: #984a9c;
}

.wi-prompter-beat.wi-prompter-beat-poll .wi-prompter-beat-label {
	background: #8261d0;
}

.wi-prompter-beat.wi-prompter-beat-thumbs .wi-prompter-beat-label {
	background: #2c8a5c;
}

.wi-prompter-beat-text {
	font-size: 15px;
	margin: 6px 0 8px;
}

.wi-prompter-beat-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wi-prompter-beat-actions .button {
	margin: 0;
}

.wi-prompter-beat-status {
	font-size: 12px;
	color: #46b450;
}

/* Live "traffic" dot — size + colour show how much a topic is being engaged. */
.wi-prompter-heat {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e64f1d;
	transition: width .3s ease, height .3s ease, background .3s ease;
	vertical-align: middle;
}
.wi-heat-cold { background: #9aa0a6; }
.wi-heat-warm { background: #f5b301; box-shadow: 0 0 0 3px rgba(245, 179, 1, .25); }
.wi-heat-hot { background: #e23636; box-shadow: 0 0 0 4px rgba(226, 54, 54, .25); animation: wiHeatPulse 1.4s ease-in-out infinite; }
@keyframes wiHeatPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(226,54,54,.22); } 50% { box-shadow: 0 0 0 7px rgba(226,54,54,.12); } }

.wi-prompter-score-head .wi-prompter-heat {
	margin-left: auto;
	margin-right: 8px;
}

/* Sections left quickly (SKIP marker or cold after firing) are dimmed for the host. */
.wi-prompter-beat.wi-prompter-cold {
	opacity: .5;
	background: #f6f7f7;
	border-color: #dcdcde;
	border-left-color: #dcdcde;
}
.wi-prompter-beat.wi-prompter-beat-skip {
	border-style: dashed;
	border-color: #787c82;
	border-left-color: #787c82;
	background: #f6f7f7;
}
.wi-prompter-beat.wi-prompter-beat-skip .wi-prompter-beat-label {
	background: #787c82;
}
.wi-prompter-beat.wi-prompter-beat-skipped {
	opacity: .4;
}

.wi-prompter-speech {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.wi-prompter-mic {
	/* Icon + short label (Tobias 2026-11-07: "das Icon wirkt rot, auch wenn das Mikro aus ist").
	   The button says in words what it does and which state it is in, so nothing has to be
	   guessed from a colour. Off is neutral grey, never red. */
	width: auto;
	height: 28px;
	padding: 0 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #f6f7f7;
	color: #50575e;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}
.wi-prompter-mic:hover {
	color: #1d2327;
	border-color: #8c8f94;
	background: #f0f0f1;
}
.wi-prompter-mic[disabled] {
	cursor: not-allowed;
	opacity: .5;
}
.wi-prompter-mic-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.wi-prompter-mic-icon svg {
	width: 16px;
	height: 16px;
	display: block;
}
/* Two icons, one visible: crossed mic while off or blocked, filled mic while listening. */
.wi-prompter-mic .wi-mic-on { display: none; }
.wi-prompter-mic.is-active .wi-mic-off { display: none; }
.wi-prompter-mic.is-active .wi-mic-on { display: block; }
.wi-prompter-mic-label {
	display: inline-block;
}
.wi-prompter-lang {
	max-width: 110px;
	font-size: 12px;
	padding: 2px 6px;
	min-height: 28px;
}

/* ── Mode toggle (reading / editing) ───────────────────────────────────── */
.wi-prompter-mode-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.wi-prompter-mode-toggle .wi-prompter-mode-icon {
	display: inline-block;
	width: 14px;
	height: 14px;
	position: relative;
}
/* Icons ship with the plugin (images/icons/, Lucide ISC) and are masked in, so they take
   the surrounding text colour and never depend on emoji fonts or an external CDN. */
.wi-prompter-mode-toggle .wi-prompter-mode-icon::before {
	content: "";
	display: block;
	width: 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: url(../images/icons/book-open.svg) no-repeat center / contain;
	mask: url(../images/icons/book-open.svg) no-repeat center / contain;
}
.wi-prompter-mode-editing .wi-prompter-mode-toggle .wi-prompter-mode-icon::before {
	-webkit-mask-image: url(../images/icons/pencil.svg);
	mask-image: url(../images/icons/pencil.svg);
}
.wi-prompter-mode-editing .wi-prompter-mode-toggle .wi-prompter-mode-label {
	/* stays "Edit" in reading, "Read" in editing */
}

/* Follow-mode toggle + Wort-Markierung toggle (same switch look, Prüfer-Fund 3 2026-10-06) */
.wi-prompter-follow-toggle,
.wi-prompter-wordmark-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	cursor: pointer;
	user-select: none;
}
.wi-prompter-follow-toggle input[type="checkbox"],
.wi-prompter-wordmark-toggle input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	width: 34px;
	height: 20px;
	margin: 0;
	border-radius: 999px;
	background: #c3c4c7;
	border: 0;
	cursor: pointer;
	transition: background .15s ease;
	flex: none;
}
.wi-prompter-follow-toggle input[type="checkbox"]::after,
.wi-prompter-wordmark-toggle input[type="checkbox"]::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
	transition: transform .15s ease;
}
.wi-prompter-follow-toggle input[type="checkbox"]:checked,
.wi-prompter-wordmark-toggle input[type="checkbox"]:checked {
	background: #46b450;
}
.wi-prompter-follow-toggle input[type="checkbox"]:checked::after,
.wi-prompter-wordmark-toggle input[type="checkbox"]:checked::after {
	transform: translateX(14px);
}
.wi-prompter-follow-toggle input[type="checkbox"]:focus-visible,
.wi-prompter-wordmark-toggle input[type="checkbox"]:focus-visible {
	outline: 2px solid #e64f1d;
	outline-offset: 2px;
}

/* Mobile Leiste (Tobias 2026-10-09): nur auf dem Telefon sichtbar. Start / Pause / zwei Menüs. */
.wi-prompter-mobilebar {
	display: none;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}
.wi-prompter-mbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 40px;
	min-width: 44px;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	cursor: pointer;
}
.wi-prompter-mbtn--start {
	background: #e64f1d;
	border-color: #e64f1d;
	color: #fff;
	padding: 0 16px;
}
.wi-prompter-mbtn--start.is-on {
	background: #46b450;
	border-color: #46b450;
}
.wi-prompter-mbtn--start .wi-prompter-mbtn-icon {
	width: 14px; height: 14px; border-radius: 50%; background: currentColor; display: inline-block;
}
/* Pause-Symbol: zwei kleine senkrechte Striche (reines CSS, kein Icon-Font nötig). */
.wi-prompter-mbtn-icon--pause {
	display: inline-block;
	width: 12px;
	height: 14px;
	border-left: 4px solid currentColor;
	border-right: 4px solid currentColor;
	box-sizing: border-box;
}
.wi-prompter-mbtn.is-paused {
	background: #f0b429; border-color: #f0b429; color: #fff;
}
.wi-prompter-mbar-spacer { flex: 1 1 auto; }
.wi-prompter-mbtn--menu { font-size: 20px; line-height: 1; padding: 0; width: 44px; }

/* Erkannt-Zeile: grüner Schieber rechts (Tobias 2026-10-09). */
.wi-prompter-heard-meter {
	flex: 0 0 auto;
	width: 70px;
	height: 8px;
	border-radius: 999px;
	background: #dfe3e6;
	overflow: hidden;
	align-self: center;
}
.wi-prompter-heard-meter-fill {
	display: block;
	height: 100%;
	width: 8%;
	background: #46b450;
	transition: width .18s ease;
}
.wi-prompter-heard-meter-fill.is-hot { background: #35a04a; }
.wi-prompter-heard-hide {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: #8d3011;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
}

/* Schriftgröße (Tobias 2026-10-08): − / Schieber / + neben den Schaltern. */
.wi-prompter-fontsize {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
}
.wi-prompter-fontsize-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	min-width: 30px;
	padding: 0;
	font-size: 18px;
	line-height: 1;
	font-weight: 700;
	color: #1d2327;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	cursor: pointer;
}
.wi-prompter-fontsize-btn:hover {
	border-color: #e64f1d;
	color: #8d3011;
}
.wi-prompter-fontsize-btn:focus-visible {
	outline: 2px solid #e64f1d;
	outline-offset: 2px;
}
.wi-prompter-fontsize-range {
	width: 96px;
	accent-color: #e64f1d;
	cursor: pointer;
}

/* STT status indicator */
.wi-prompter-stt-status {
	font-size: 12px;
	min-height: 18px;
	line-height: 18px;
	margin-bottom: 6px;
	color: #646970;
	transition: color .3s ease;
}

/* Lesefenster-Wrapper + Griffe (Tobias 2026-10-07): Breite/Höhe zieht der Host selbst. */
.wi-prompter-readbox {
	position: relative;
	display: block;
	min-width: 0;
}
.wi-prompter-resize {
	position: absolute;
	z-index: 4;
	opacity: 0;
	transition: opacity .15s ease;
	background: #e64f1d;
}
.wi-prompter-readbox:hover .wi-prompter-resize,
.wi-prompter-resize.is-dragging {
	opacity: .85;
}
.wi-prompter-resize-e {
	top: 0; right: -3px; width: 6px; height: 100%; cursor: ew-resize; border-radius: 3px;
}
.wi-prompter-resize-s {
	left: 0; bottom: -3px; height: 6px; width: 100%; cursor: ns-resize; border-radius: 3px;
}
.wi-prompter-resize-se {
	right: -3px; bottom: -3px; width: 14px; height: 14px; cursor: nwse-resize;
	border-radius: 3px;
}
body.wi-prompter-resizing { user-select: none; }
body.wi-prompter-resizing iframe { pointer-events: none; }

/* Live-Erkennungsanzeige (Tobias 2026-10-07): wörtlich, was das Web Speech gerade hört — zum
   Vergleichen beim Testen (falsch gelesen vs. falsch erkannt). Host-Fläche, read-only. */
.wi-prompter-heard {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	line-height: 1.35;
	margin: 2px 0 8px;
	padding: 4px 8px;
	min-height: 0;
	background: #f6f7f7;
	border: 1px dashed #c3c4c7;
	border-radius: 4px;
}
/* Standardmäßig AN (Tobias 2026-10-09): die Zeile bleibt sichtbar, auch wenn gerade nichts erkannt
   wurde — man soll immer sehen, ob es ankommt. Ausblenden geht über das ×. */
.wi-prompter-heard-text {
	flex: 1 1 auto;
	min-width: 0;
	color: #1d2327;
}
.wi-prompter-heard-label {
	flex: 0 0 auto;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: #8d3011;
	font-weight: 600;
}
.wi-prompter-stt-status.is-active {
	color: #46b450;
	font-weight: 600;
}
.wi-prompter-stt-status.is-paused {
	color: #f0b429;
	font-weight: 600;
}
.wi-prompter-stt-status.is-error {
	color: #d63638;
	font-weight: 600;
}
.wi-prompter-stt-status.is-loading {
	color: #e64f1d;
	font-weight: 600;
}

/* ── Reading mode: compact teleprompter view ─────────────────────────── */
.wi-prompter-mode-reading #wiPrompterSource {
	display: none;
}
.wi-prompter-mode-reading .wi-prompter-editor-area {
	position: relative;
}
.wi-prompter-mode-reading .wi-prompter-view {
	/* KONSOLE = RAUM (Tobias 2026-10-09): gleiche Höhe, gleicher Umbruch, gleiches Aussehen.
	   Vorher war die Konsole nur 4.5rem hoch und schnitt jede Zeile mit "…" ab. */
	height: 190px;
	min-height: 96px;
	max-height: 60vh;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 6px 14px;
	font-size: 20px;
	line-height: 1.5;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	border: 2px solid #e64f1d;
	background: #fff;
	cursor: pointer;
	transition: height .3s ease, border-color .3s ease;
}
.wi-prompter-mode-reading .wi-prompter-view:before {
	display: none;
}
.wi-prompter-mode-reading .wi-prompter-view .wi-prompter-line {
	font-size: 20px;
	line-height: 1.5;
	margin: 0 0 4px;
	/* Kein "…" mehr (Tobias 2026-10-09) — der Text bricht um, wie im Raum. */
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}
.wi-prompter-mode-reading .wi-prompter-view .wi-prompter-beat {
	font-size: 16px;
	padding: 4px 8px;
	margin: 2px 0;
}
.wi-prompter-mode-reading .wi-prompter-view .wi-prompter-timestamp {
	font-size: 12px;
	margin: 0;
}
.wi-prompter-mode-reading .wi-prompter-side {
	display: none;
}
.wi-prompter-mode-reading .wi-prompter-hint {
	display: none;
}
.wi-prompter-mode-reading .wi-prompter-rating {
	display: none;
}
.wi-prompter-mode-reading .wi-prompter-beats {
	display: none;
}
.wi-prompter-mode-reading .wi-prompter-beat-actions {
	display: none;
}

/* Reading mode: active STT highlight line */
.wi-prompter-mode-reading .wi-prompter-view .wi-prompter-line.wi-stt-current {
	background: #e8f4fd;
	border-radius: 3px;
	padding: 0 2px;
}

/* ── KONSOLE = RAUM (Tobias 2026-10-09) ─────────────────────────────────────────────────────
   Dieselbe Anordnung wie im Raum: Werkzeuge links, Lesetext als feste Spalte in der MITTE,
   Prev/Trigger/Next rechts. Damit sieht der Prompter in der Live-Konsole genau so aus wie im
   Webinar — "gleicher Code, nur gespiegelt". Nur die Konsolen-Tür (nicht der Raum-Streifen). */
/* Konsole: DASSELBE saubere 2-Zeilen-Muster wie der Raum. Zeile 1 = Steuerleiste (flach),
   Zeile 2 = Text (mittig, so hoch wie möglich). Vorher lag der Text in einer eigenen Rasterspalte
   und schob sich über die Schalter (Screenshot-Fund 2026-10-09). */
.wi-prompter-tab:not(.wi-prompter-tab--room).wi-prompter-mode-reading .wi-prompter-stage {
	position: relative;
	display: grid;
	grid-template-columns: auto auto;
	grid-template-rows: auto minmax(0, 1fr) auto auto;
	justify-content: center;
	align-content: start;
	column-gap: 12px;
	row-gap: 6px;
}
.wi-prompter-tab:not(.wi-prompter-tab--room).wi-prompter-mode-reading .wi-prompter-toolbar {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: auto;
	max-width: none;
	margin: 0;
}
.wi-prompter-tab:not(.wi-prompter-tab--room).wi-prompter-mode-reading .wi-prompter-touch-controls {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	justify-self: start;
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	width: auto;
	margin: 0;
}
.wi-prompter-tab:not(.wi-prompter-tab--room).wi-prompter-mode-reading .wi-prompter-editor-area {
	grid-column: 1 / -1;
	grid-row: 2;
	justify-self: center;
	width: min(100%, 1000px);
	min-width: 0;
}
.wi-prompter-tab:not(.wi-prompter-tab--room).wi-prompter-mode-reading #wiPrompterSttStatus {
	grid-column: 1 / -1;
	grid-row: 3;
	justify-self: center;
	width: min(100%, 1000px);
	margin: 0;
}
.wi-prompter-tab:not(.wi-prompter-tab--room).wi-prompter-mode-reading #wiPrompterHeard {
	grid-column: 1 / -1;
	grid-row: 4;
	justify-self: center;
	width: min(100%, 1000px);
	margin: 4px 0 0;
}

/* Word mark (Tobias 2026-10-06): every word the speech recognition already matched is painted
   green, so the host sees at a glance what was heard — and how far along he is. The current line
   keeps its light background (above); the words inside it carry the stronger reading colour. */
.wi-prompter-view .wi-word {
	transition: background-color .12s ease, color .12s ease;
	border-radius: 3px;
	/* Lange Tokens (URLs, [TRIGGER:…]) dürfen die Zeile nicht breiter machen — immer umbrechen
	   (Tobias 2026-10-09: kein Links-Rechts-Scrollen). */
	overflow-wrap: anywhere;
	word-break: break-word;
}
.wi-prompter-view .wi-word.wi-stt-done {
	color: #1a7f37;
}
.wi-prompter-mode-reading .wi-prompter-view .wi-prompter-line.wi-stt-current .wi-word.wi-stt-done {
	color: #0a3622;
	font-weight: 600;
}
/* Toggle off: word spans stay (stable layout) but never show the paint. The selector must at
   least match the reading-mode rule above (Prüfer-Fund 7) — keep the same depth. */
.wi-prompter-mode-reading .wi-prompter-view.wi-no-wordmark .wi-prompter-line.wi-stt-current .wi-word.wi-stt-done,
.wi-prompter-view.wi-no-wordmark .wi-word.wi-stt-done {
	color: inherit;
	font-weight: inherit;
}
.wi-prompter-mode-reading .wi-prompter-view .wi-prompter-beat.wi-stt-current {
	border-left-color: #46b450;
	background: #e8f4fd;
}

/* ── Editing mode ─────────────────────────────────────────────────────── */
.wi-prompter-mode-editing .wi-prompter-editor-area {
	display: block;
}
.wi-prompter-mode-editing #wiPrompterSource {
	display: block;
}
.wi-prompter-mode-editing .wi-prompter-view {
	height: 60vh;
	min-height: 320px;
	overflow: auto;
}
.wi-prompter-mode-editing .wi-prompter-side {
	display: block;
}

/* Output rating barometer (self-improvement loop). */
.wi-prompter-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 4px;
	flex-wrap: wrap;
}
.wi-prompter-rating-label {
	font-weight: 600;
	font-size: 12px;
	color: #444;
}
.wi-prompter-stars {
	display: inline-flex;
	gap: 2px;
}
.wi-prompter-star {
	width: 14px;
	height: 14px;
	border-radius: 2px;
	background: #dcdcde;
	cursor: pointer;
	transition: background .12s;
}
.wi-prompter-star.is-on {
	background: #f0b429;
}
.wi-prompter-rating-note {
	min-width: 220px;
	max-width: 340px;
	font-size: 12px;
}

/* Current beat highlight shared with the scroll-fire line. */
.wi-prompter-beat.wi-prompter-current {
	border-left-color: #d22;
	box-shadow: 0 0 0 3px rgba(221, 34, 34, .12);
}
.wi-prompter-beat.wi-prompter-current:before {
	content: '▶';
	position: absolute;
	left: -16px;
	top: 10px;
	color: #d22;
	font-size: 13px;
}
.wi-prompter-beat {
	position: relative;
}
.wi-prompter-score-item.wi-prompter-current {
	border-color: #d22;
}

/* Side rail: beats list + live scores. */
.wi-prompter-side {
	position: sticky;
	top: 20px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #f6f7f7;
	padding: 16px;
}

.wi-prompter-beats {
	max-height: 65vh;
	overflow: auto;
}

.wi-prompter-beats-empty {
	font-size: 13px;
	color: #646970;
}

.wi-prompter-score-item {
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 10px;
}

.wi-prompter-score-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 600;
	color: #1d2327;
	margin-bottom: 6px;
}

.wi-prompter-score-head .wi-prompter-beat-label {
	margin: 0;
}

.wi-prompter-score-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 10px;
	font-size: 13px;
}

.wi-prompter-score-grid b {
	font-variant-numeric: tabular-nums;
}

.wi-prompter-score-grid .wi-prompter-score-total {
	grid-column: 1 / -1;
	border-top: 1px dashed #dcdcde;
	padding-top: 6px;
	margin-top: 2px;
}
/* ── Room host teleprompter strip (webinar-modern.php) ─────────────────────── */
/* D4 — die Kopf-Pille ist weg (webinar-prompter-room.php:46-47 hat nur noch #wiPrompterRoomBody,
   Öffner ist der (T)-Knopf im Cluster). Die Regeln für .wi-prompter-room-bar / -title / -status /
   -toggle sind damit toter Code ohne Markup und hier ersatzlos entfernt — nachgewiesen mit
   querySelectorAll('.wi-prompter-room-bar,.wi-prompter-room-toggle') = 0 im Host-Room. */
.wi-prompter-tab--room {
	position: relative;
	z-index: 60;
	background: #f6f7f7;
	border-bottom: 1px solid #dcdcde;
	margin: 0;
	border-radius: 0;
}

.wi-prompter-room-body {
	padding: 5px 10px;
	/* Containing block for the panel's close icon, in EVERY context: in the room the header rules
	   make this panel `position: fixed !important` anyway (and win over this), but if a room
	   variant ever renders the strip without them, the × still anchors to the panel instead of
	   jumping to the 45px-wide strip. */
	position: relative;
}

/* ── Room strip: full-width reading bar, controls around the script (Tobias 18.09.) ───────
 * The room panel is a bar pinned to the very top of the window (webinar-modern.css owns the
 * fixed/100% positioning), not a floating card. Layout, top to bottom:
 *   row 1: browser notice (only when shown)
 *   row 2: the control toolbar — Load kit, mic + language, Follow, Fire line (full width)
 *   row 3: the speech status line (only when it has text)
 *   row 4: the script (left) and the touch Prev/Fire/Next bar (right)
 * The video/participants stay visible below the bar.
 * The room therefore:
 *   - drops the empty rail TRACK (the engagement rail stays off exactly as before),
 *   - keeps every control at >= 32px height (touch target); the script stays a fixed low window
 *     that scrolls internally, so the bar cannot grow with the window.
 * Scoped to .wi-prompter-tab--room, so the WP-admin console tab is untouched. */
.wi-prompter-tab--room .wi-prompter-layout {
	display: block;
	max-height: none;
}

.wi-prompter-tab--room .wi-prompter-side {
	display: none;
}

/* Der Prompter steht IMMER mittig (Tobias 2026-10-07: "egal welche Größe"). Deshalb kein
   Raster mit ungleichen Randspalten mehr, sondern: die Mitte ist ein zentrierter Block
   (.wi-prompter-mid), die Werkzeuge und die Knöpfe stehen ABSOLUT links und rechts daneben.
   Absolute Seitenleisten verschieben die Mitte nie — die Mitte bleibt bei jeder Fensterbreite
   in der Fenstermitte. */
/* Drei Spalten, Mitte zentriert: `1fr | Text | 1fr` hält die Mitte IMMER in der Panelmitte,
   weil die beiden Randspalten gleich breit sind — egal wie groß das Fenster ist. Unter 900px
   fällt alles in EINE Spalte und der Text bleibt trotzdem zentriert (margin auto). */
/* ── ZWEI ZEILEN, SAUBER (Tobias 2026-10-09, Korrektur) ────────────────────────────────────
   Zeile 1: ALLE Steuerung zusammen in EINER flachen waagerechten Leiste (Werkzeuge links,
            darunter/neben ihnen Prev/Trigger/Next) — bricht bei engem Platz um, nie überlappend.
   Zeile 2: der Teleprompter — feste, MITTIGE Spalte, so hoch wie möglich.
   Ein 2-Zeilen-Raster hält die beiden strikt getrennt: nichts schiebt sich mehr übereinander,
   und die Steuerzeile bleibt flach (so wenig Höhe wie möglich). */
.wi-prompter-tab--room .wi-prompter-stage {
	position: relative;
	display: grid;
	/* Zwei Spalten: Zeile 1 hat links die Werkzeuge, rechts die Prev/Trigger/Next (beide in EINER
	   flachen Zeile). Zeile 2 = der Prompter über die volle Breite, so hoch wie möglich. */
	grid-template-columns: auto auto;
	grid-template-rows: auto minmax(0, 1fr) auto auto;
	justify-content: center;
	align-content: stretch;
	column-gap: 12px;
	row-gap: 6px;
	overflow: visible;
	min-height: 0;
}
/* Die Leiste (layout) füllt die Panelfläche, damit der Prompter „maximale Höhe“ bekommt. */
.wi-prompter-tab--room .wi-prompter-layout {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	min-height: 0;
	height: 100%;
}

/* Zeile 1, Spalte 1: die Werkzeuge (waagerecht, flach). */
.wi-prompter-tab--room .wi-prompter-toolbar {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	margin: 0;
	padding: 0;
	max-width: none;
}

/* Zeile 1, Spalte 2: Prev/Trigger/Next (waagerecht). Beide zusammen = die flache Steuerzeile. */
.wi-prompter-tab--room .wi-prompter-touch-controls {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	justify-self: start;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	width: auto;
	margin: 0;
}

/* Zeile 2 (volle Breite): der Teleprompter, mittig, so hoch wie möglich. */
.wi-prompter-tab--room .wi-prompter-readbox {
	grid-column: 1 / -1;
	grid-row: 2;
	justify-self: center;
	width: min(100%, 1000px);
	min-width: 0;
}
.wi-prompter-tab--room #wiPrompterSttStatus  { grid-column: 1 / -1; grid-row: 3; justify-self: center; width: min(100%, 1000px); margin: 4px 0 0; }
.wi-prompter-tab--room #wiPrompterSttStatus:empty { display: none; }
.wi-prompter-tab--room #wiPrompterHeard      { grid-column: 1 / -1; grid-row: 4; justify-self: center; width: min(100%, 1000px); margin: 4px 0 0; }
.wi-prompter-tab--room .wi-prompter-browser-notice-wrap { grid-column: 1 / -1; grid-row: 5; }

/* ── TELEFON (Tobias 2026-10-09) ────────────────────────────────────────────────────────────
   Oben steht NUR die mobile Leiste (Start / Pause / zwei Menüs). Die volle Werkzeugleiste ist
   eingeklappt, bis Menü A sie öffnet. Der Text ist flach, damit die Leute darunter sichtbar
   bleiben. Eine Spalte, alles zentriert. */
@media (max-width: 900px) {
	.wi-prompter-tab--room .wi-prompter-mobilebar { display: flex; }

	/* Text-Spalte unter der mobilen Leiste (Raster bleibt, nur schmaler). */
	.wi-prompter-tab--room .wi-prompter-stage {
		row-gap: 6px;
	}
	/* Werkzeugleiste: standardmäßig ZU auf dem Telefon. Menü A klappt sie auf. */
	.wi-prompter-tab--room .wi-prompter-toolbar {
		grid-row: 1;
		display: none;
		max-width: none;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}
	.wi-prompter-tab--room.wi-mbar-open-tools .wi-prompter-toolbar { display: flex; }
	/* Schriftgröße: standardmäßig ZU. Menü B klappt sie auf. */
	.wi-prompter-tab--room .wi-prompter-fontsize { display: none; }
	.wi-prompter-tab--room.wi-mbar-open-size .wi-prompter-fontsize { display: inline-flex; }

	.wi-prompter-tab--room .wi-prompter-readbox { width: min(100%, 760px); }
	.wi-prompter-tab--room #wiPrompterSttStatus { width: min(100%, 760px); }
	.wi-prompter-tab--room #wiPrompterHeard     { width: min(100%, 760px); }
	.wi-prompter-tab--room .wi-prompter-touch-controls {
		grid-row: 1;
		justify-self: center;
		flex-direction: row;
	}
	/* FLACH auf dem Telefon (Tobias: "man muss die Leute darunter sehen"). */
	.wi-prompter-tab--room.wi-prompter-mode-reading .wi-prompter-view {
		height: 132px;
		max-height: 38vh;
	}
	.wi-prompter-tab--room #wiPrompterHeard {
		font-size: 12px;
	}
	.wi-prompter-tab--room .wi-prompter-heard-meter { width: 54px; }
}

/* Desktop: mobile Leiste aus. */
@media (min-width: 901px) {
	.wi-prompter-mobilebar { display: none !important; }
}

.wi-prompter-tab--room .wi-prompter-touch-btn {
	flex: 0 0 auto;
	min-width: 78px;
	height: 32px;
	min-height: 32px;
	padding: 0 12px;
	font-size: 13px;
}

/* Reading mode: the script is the left column. Four 20px lines fit (4 × 20 × 1.4 = 112 + 12
   padding ≈ 124), anything more scrolls inside. Height is fixed (the mode's own 4.5rem is
   overridden) so the bar cannot grow with the window. Tobias 2026-10-01: two lines were too few
   to read along during a live webinar — four give enough context without covering the stage. */
/* Die view füllt die (zentrierte) readbox und scrollt innen. Breite/Höhe bestimmt der Host per
   Griff (Inline-Styles) — hier nur die Grundwerte. */
.wi-prompter-tab--room.wi-prompter-mode-reading .wi-prompter-view {
	min-width: 0;
	width: 100%;
	/* HÖHE = MAXIMAL (Tobias 2026-10-09: "Der Teleprompter ist die maximale Höhe, alles andere
	   links und rechts drumherum"). Der Prompter füllt seine Rasterzeile ganz aus; die Steuerung
	   oben kostet nur ihre flache Zeile. */
	height: 100%;
	min-height: 96px;
	max-height: 72vh;
	/* NUR senkrecht scrollen (Tobias 2026-10-09: "Es gibt kein Links-Rechts-Scrollen beim
	   Teleprompter"). overflow-x:hidden verhindert den waagerechten Balken; der Text bricht um. */
	overflow-y: auto;
	overflow-x: hidden;
	padding: 6px 12px;
	line-height: 1.5;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.wi-prompter-tab--room.wi-prompter-mode-reading .wi-prompter-view .wi-prompter-line {
	line-height: 1.5;
	margin: 0;
	/* KEIN "…" (Tobias 2026-10-07): Die Basis-Regel setzt white-space:nowrap + text-overflow:ellipsis.
	   Beim Vorlesen ist ein abgeschnittener Satz ("Der Cur…") wertlos — man kann ihn nicht lesen.
	   Der Raum bricht stattdessen um und scrollt; die feste Fensterhöhe bleibt, es geht kein Text
	   verloren. */
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

/* Editing fallback (the room has no edit toggle, but a leftover console mode must not overlap):
   the textarea and the preview take their own full-width rows under the controls row. The host may
   pull the textarea larger (resize: vertical stays). */
.wi-prompter-tab--room #wiPrompterSource {
	min-height: 72px;
	max-height: 160px;
	margin-bottom: 0;
	resize: vertical;
}

.wi-prompter-tab--room #wiPrompterSource {
	order: 2;                 /* im Flex-Stage: unter der Steuerung, volle Breite */
	flex: 0 0 100%;
	width: min(100%, 900px);
	margin: 0 auto 6px;
}

/* (Lesehöhe setzt die Regel im Lesemodus oben; hier kein zweiter Deckel mehr, der ihn wieder
   klein machte — Tobias 2026-10-07: der Text soll nach unten wachsen dürfen.) */

.wi-prompter-tab--room.wi-prompter-mode-editing .wi-prompter-view {
	height: auto;
	min-height: 0;
	max-height: 60vh;
}

/* ── Panel close icon (top right) ────────────────────────────────────────
 * Fixed to the viewport corner: the bar is pinned at top:0, so this is the bar's top-right, and
 * because the panel itself scrolls (`overflow:auto`, max-height 46vh) an absolutely placed × would
 * scroll away with the content on a short window — the host would be stuck in editing mode.
 * 32×32 hit area, focus ring for keyboard use; it only fires wi:prompter:close (the partial owns
 * the state). */
.wi-prompter-tab--room .wi-prompter-close-slot {
	position: fixed;
	top: 4px;
	right: 4px;
	width: 32px;
	height: 32px;
	z-index: 3;
}

.wi-prompter-tab--room .wi-prompter-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	margin: 0;
	padding: 0;
	font-size: 20px;
	line-height: 1;
	color: #1d2327;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	cursor: pointer;
}

.wi-prompter-tab--room .wi-prompter-close:hover {
	color: #8d3011;
	background: #f0f6fc;
	border-color: #e64f1d;
}

.wi-prompter-tab--room .wi-prompter-close:focus-visible {
	outline: 2px solid #e64f1d;
	outline-offset: 2px;
}

@media (max-width: 782px) {
	/* Phones: everything already stacks via the 900px rule above (one column, text centered).
	   Only the touch bar and the reading height need small phone tweaks here. */
	.wi-prompter-tab--room .wi-prompter-touch-controls {
		flex-wrap: wrap;
	}
	.wi-prompter-tab--room.wi-prompter-mode-reading .wi-prompter-view {
		height: 180px;
		max-height: 50vh;
	}
}

/* ── Cohesive prompter control system ────────────────────────────────────
 * The prompter renders in two contexts: the WP-admin console tab (plugin) and
 * the host room strip on the public webinar page (frontend). In the frontend
 * the WP-admin `.button` styles are NOT loaded, so the controls fall back to
 * raw browser defaults and look broken/unfinished next to the styled shell.
 * Everything here is scoped to `.wi-prompter-*` and re-asserts a single,
 * self-contained look so both contexts render identically.
 */
.wi-prompter-toolbar {
	flex-wrap: wrap;
}

/* Unified control height + baseline so the row never looks ragged. */
.wi-prompter-toolbar .wi-prompter-speech,
.wi-prompter-toolbar .wi-prompter-fireline-toggle,
.wi-prompter-toolbar .wi-prompter-follow-toggle,
.wi-prompter-toolbar .wi-prompter-wordmark-toggle,
.wi-prompter-toolbar > .button,
.wi-prompter-toolbar > button {
	min-height: 32px;
	box-sizing: border-box;
}

/* Primary action: "Load launch kit script". */
.wi-prompter-toolbar #wiPrompterLoadKit {
	height: 32px;
	line-height: 30px;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: #e64f1d;
	border: 1px solid #ba3f17;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s ease;
}
.wi-prompter-toolbar #wiPrompterLoadKit:hover {
	background: #ba3f17;
}

/* Voice mic: icon plus short label, same height as the rest. The width follows the label
   (Tobias 2026-11-07: the button has to say what it does), so it is no longer a square. */
.wi-prompter-toolbar .wi-prompter-mic {
	width: auto;
	min-width: 32px;
	height: 32px;
	padding: 0 10px;
	gap: 6px;
	border-radius: 6px;
	border: 1px solid #c3c4c7;
	background: #fff;
}
.wi-prompter-toolbar .wi-prompter-mic:hover {
	border-color: #8c8f94;
	background: #f0f0f1;
}

/* The console's cream skin paints EVERY button in the brand colour with !important
   (body#webinarignition_console button, inc/lp/css/wi-console-cream.css). That rule is more
   specific than .wi-prompter-mic.is-active, so the mic stayed brand-red in every state — the
   button looked "on" while the microphone was off. Measured on QA 2026-11-07. The four states
   are re-asserted here with the same id in the selector so they win, and only the error state
   keeps red. The room strip (no body id) is unaffected and uses the plain rules above. */
body#webinarignition_console .wi-prompter-mic {
	background: #fff !important;
	border-color: #c3c4c7 !important;
	color: #50575e !important;
}
body#webinarignition_console .wi-prompter-mic:hover {
	background: #f0f0f1 !important;
	border-color: #8c8f94 !important;
}
body#webinarignition_console .wi-prompter-mic.is-loading {
	background: #fdf6e9 !important;
	border-color: #dba617 !important;
	color: #8a5300 !important;
}
body#webinarignition_console .wi-prompter-mic.is-active,
body#webinarignition_console .wi-prompter-mic.is-active:hover {
	background: #0f7a3d !important;
	border-color: #0f7a3d !important;
	color: #fff !important;
}
body#webinarignition_console .wi-prompter-mic.is-error {
	background: #d63638 !important;
	border-color: #d63638 !important;
	color: #fff !important;
}

/* Language dropdown: styled to match, not the raw browser select. */
.wi-prompter-toolbar .wi-prompter-lang {
	height: 32px;
	min-height: 32px;
	line-height: 30px;
	font-size: 13px;
	padding: 0 8px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}
.wi-prompter-toolbar .wi-prompter-lang:hover {
	border-color: #e64f1d;
}

/* "Fire line" — promote the raw checkbox to a clean on/off switch. */
.wi-prompter-fireline-toggle input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	width: 34px;
	height: 20px;
	margin: 0;
	border-radius: 999px;
	background: #c3c4c7;
	border: 0;
	cursor: pointer;
	transition: background .15s ease;
	flex: none;
}
.wi-prompter-fireline-toggle input[type="checkbox"]::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
	transition: transform .15s ease;
}
.wi-prompter-fireline-toggle input[type="checkbox"]:checked {
	background: #46b450;
}
.wi-prompter-fireline-toggle input[type="checkbox"]:checked::after {
	transform: translateX(14px);
}
.wi-prompter-fireline-toggle input[type="checkbox"]:focus-visible {
	outline: 2px solid #e64f1d;
	outline-offset: 2px;
}
.wi-prompter-fireline-toggle span {
	font-weight: 600;
}

/* Mic states: off (neutral grey, the base rule), loading (orange, pulsing), active (green),
   error (red). Tobias 2026-11-07: red is the ERROR state only. An idle mic must never look
   active, and an active one must never look like a warning. */
.wi-prompter-mic.is-loading {
	color: #8a5300 !important;
	background: #fdf6e9 !important;
	border-color: #dba617 !important;
	animation: wiMicPulse 1s ease-in-out infinite;
}
@keyframes wiMicPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(219, 166, 23, .35); }
	50% { box-shadow: 0 0 0 6px rgba(219, 166, 23, .12); }
}
.wi-prompter-mic.is-active {
	color: #fff !important;
	background: #0f7a3d !important;
	border-color: #0f7a3d !important;
}
.wi-prompter-mic.is-error {
	color: #fff !important;
	background: #d63638 !important;
	border-color: #d63638 !important;
}
@media (prefers-reduced-motion: reduce) {
	.wi-prompter-mic.is-loading { animation: none; }
}
.wi-prompter-mic[disabled] {
	cursor: not-allowed;
	opacity: .5;
}

/* Rating submit — primary small action. */
.wi-prompter-rating #wiPrompterRateSubmit {
	height: 30px;
	line-height: 28px;
	padding: 0 12px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: #e64f1d;
	border: 1px solid #ba3f17;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s ease;
}
.wi-prompter-rating #wiPrompterRateSubmit:hover {
	background: #ba3f17;
}

/* Beat actions ("Trigger again" / "Skip") inside each beat card. */
.wi-prompter-beat-actions .button,
.wi-prompter-beat-actions .wi-prompter-fire-btn,
.wi-prompter-beat-actions .wi-prompter-skip-btn {
	height: 28px;
	line-height: 26px;
	padding: 0 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 5px;
	cursor: pointer;
	transition: background .15s ease;
}
.wi-prompter-beat-actions .wi-prompter-fire-btn {
	color: #fff;
	background: #e64f1d;
	border: 1px solid #ba3f17;
}
.wi-prompter-beat-actions .wi-prompter-fire-btn:hover {
	background: #ba3f17;
}
.wi-prompter-beat-actions .wi-prompter-skip-btn {
	color: #50575e;
	background: #fff;
	border: 1px solid #c3c4c7;
}
.wi-prompter-beat-actions .wi-prompter-skip-btn:hover {
	background: #f0f0f1;
	border-color: #9aa0a6;
}

/* Touch-friendly Prev / Fire / Next bar (console tab + room strip).
 * Web Speech runs only in Chromium; on touch devices (iPad) this is the fallback
 * control — big enough to hit with a thumb, never below 36px. */
.wi-prompter-touch-controls {
	display: flex;
	gap: 8px;
	margin: 8px 0;
}
.wi-prompter-touch-btn {
	flex: 1 1 0;
	min-height: 40px;
	height: 40px;
	padding: 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-appearance: none;
	appearance: none;
	transition: background .15s ease, border-color .15s ease;
}
.wi-prompter-touch-btn:hover {
	border-color: #e64f1d;
	background: #f0f6fc;
}
.wi-prompter-touch-btn:active {
	background: #e8f4fd;
}
.wi-prompter-touch-btn.wi-prompter-touch-fire {
	color: #fff;
	background: #e64f1d;
	border-color: #ba3f17;
}
.wi-prompter-touch-btn.wi-prompter-touch-fire:hover {
	background: #ba3f17;
}

/*
 * Zeitzonen-Suche in der Konsole (assets/wi-tz-search.js): ein Suchfeld ueber der
 * Auswahlliste, die Liste darunter als eigene Ebene. Gleiche Bedienung wie im Dashboard.
 */
.wi-tz-search-wrap {
	display: inline-block;
	position: relative;
	width: 100%;
	max-width: 320px;
	vertical-align: middle;
}
.wi-tz-search-input {
	width: 100%;
	box-sizing: border-box;
	padding: 5px 8px;
	font-size: 13px;
	color: #1d1d1d;
	-webkit-text-fill-color: #1d1d1d;
	background: #fff;
	border: 1px solid #aeaeae;
	border-radius: 4px;
}
.wi-tz-search-input:focus {
	outline: 2px solid #e64f1d;
	outline-offset: 0;
}
/* Das Select bleibt als Wertespeicher im DOM, ist aber nicht mehr sichtbar. */
.wi-tz-search-native {
	display: none !important;
}
.ui-autocomplete.wi-tz-search-list {
	position: absolute;
	color: #1d1d1d;
	-webkit-text-fill-color: #1d1d1d;
	z-index: 100050;
	max-height: 260px;
	min-width: 220px;
	margin: 2px 0 0;
	padding: 4px 0;
	overflow-y: auto;
	list-style: none;
	background: #fff;
	border: 1px solid #aeaeae;
	border-radius: 4px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
.wi-tz-search-list .ui-menu-item {
	margin: 0;
	padding: 0;
}
.wi-tz-search-list .ui-menu-item-wrapper {
	display: block;
	padding: 6px 10px;
	font-size: 13px;
	cursor: pointer;
	/* Die Konsole erbt in der dunklen/creme Haut eine helle Textfarbe. Auf der weissen
	   Vorschlagsliste war der Wert damit weiss auf weiss und nicht lesbar (gemessen
	   2026-11-08 an der Zeitzone im Formular "Registrants hinzufuegen"). Die Liste setzt
	   ihre Farbe deshalb selbst, samt text-fill, weil das die color-Angabe uebermalen kann. */
	color: #1d1d1d;
	-webkit-text-fill-color: #1d1d1d;
}
.wi-tz-search-list .ui-state-active,
.wi-tz-search-list .ui-menu-item-wrapper:hover {
	background: #f1f1f1;
	color: #111111;
	-webkit-text-fill-color: #111111;
}

/* ── Registrants hinzufuegen: drei Reiter (inc/lp/console/lead.php) ────────────
 * Ein Panel (#importLeads oeffnet es) mit den Reitern "By hand", "CSV" und
 * "CSV file". Alles hier ist eigenstaendig: keine Abhaengigkeit von WP-Admin-
 * Button-Styles, weil die Konsole auch als eigene Seite laeuft.
 */
#importLeads.wi-add-open {
	color: #fff;
	background: #e64f1d;
	border-color: #ba3f17;
}

.wi-add-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 14px;
	padding: 0 0 10px;
	border-bottom: 1px solid #dcdcde;
}

.wi-add-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 28px;
	color: #1d2327;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 999px;
	cursor: pointer;
}

.wi-add-tab:hover {
	border-color: #e64f1d;
	color: #ba3f17;
}

.wi-add-tab--active,
.wi-add-tab--active:hover {
	color: #fff;
	background: #e64f1d;
	border-color: #ba3f17;
}

/* Nur der offene Reiter ist sichtbar; die Auswahl setzt das JS. */
.importCSVArea [data-wi-tab-panel] {
	display: none;
}

.importCSVArea [data-wi-tab-panel].is-active {
	display: block;
}

.importCSVArea #importCSV {
	width: 100%;
	min-height: 140px;
	padding: 8px;
	font-family: Menlo, Consolas, monospace;
	font-size: 13px;
	line-height: 1.5;
	background: #fff;
	border: 1px solid #aeaeae;
	border-radius: 4px;
	box-sizing: border-box;
}

.importCSVArea .wi-import-tz-wrap {
	margin: 10px 0 0;
	font-size: 13px;
}

.importCSVArea .wi-import-tz-wrap label {
	display: inline-block;
	margin-right: 8px;
	font-weight: 600;
}

/* Kontakt-Kasten: eine Karte, oben die vier Pflichtfelder, darunter die
 * Zusatzfelder der Kampagne. */
.wi-lead-add-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 12px 0 0;
}

.wi-lead-add-line {
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
}

.wi-lead-add-main {
	display: grid;
	grid-template-columns: 1.1fr 1.3fr 1fr 1.4fr auto;
	gap: 8px;
	align-items: center;
}

.wi-lead-add-main input,
.wi-lead-add-main select,
.wi-lead-add-extra-row input,
.wi-lead-add-extra-row select,
.wi-lead-add-extra-row textarea {
	width: 100%;
	min-height: 30px;
	padding: 4px 8px;
	font-size: 13px;
	color: #1d2327;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-sizing: border-box;
}

.wi-lead-add-main input:focus,
.wi-lead-add-main select:focus,
.wi-lead-add-extra-row input:focus,
.wi-lead-add-extra-row select:focus,
.wi-lead-add-extra-row textarea:focus {
	border-color: #e64f1d;
	outline: 1px solid #e64f1d;
	outline-offset: 0;
}

.wi-lead-add-remove {
	font-size: 12px;
	white-space: nowrap;
	color: #b32d2e;
	text-decoration: none;
}

.wi-lead-add-remove:hover {
	text-decoration: underline;
}

/* Zusatzfelder: ein Feld je Spalte, nur sichtbar wenn der Schalter oben an ist. */
.wi-lead-add-extra-row {
	display: none;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 8px 12px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #dcdcde;
}

.wi-lead-add-area.wi-lead-add-extra .wi-lead-add-extra-row {
	display: grid;
}

.wi-lead-add-extra-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.wi-lead-add-extra-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #646970;
}

/* stream.css setzt "… .importCSVArea textarea { height: 150px }"; die Zusatzfelder
 * sollen aber klein bleiben, darum hier hoehere Spezifitaet statt !important. */
.importCSVArea .wi-lead-add-line .wi-lead-add-extra-row textarea {
	height: auto;
	min-height: 44px;
	resize: vertical;
}

.wi-lead-add-head {
	margin: 0;
}

.wi-lead-add-extra-toggle {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-size: 13px;
	color: #2271b1;
	text-decoration: none;
}

.wi-lead-add-extra-toggle:hover {
	text-decoration: underline;
}

.wi-lead-add-extra-sign {
	font-weight: 700;
}

.wi-lead-add-extra-count {
	color: #646970;
}

.wi-lead-add-foot,
.wi-add-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.wi-lead-add-foot .wi-lead-add-sendmail-wrap,
.wi-add-foot .wi-import-sendmail-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	margin: 0;
	/* Eigene Farbe, damit die Beschriftung nicht die Schriftfarbe der Umgebung erbt
	   (weiss auf creme war nicht lesbar, gemessen 2026-11-08). */
	color: #3c2f26;
	-webkit-text-fill-color: #3c2f26;
}

.wi-lead-add-status,
.wi-lead-add-limit {
	font-size: 12px;
	color: #646970;
}

/* Schritte im Datei-Reiter. */
.wi-add-step {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 0 8px;
	font-size: 13px;
}

.wi-add-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: #e64f1d;
	border-radius: 50%;
}

.wi-add-step-label {
	font-weight: 600;
	color: #1d2327;
}

#csv-upload-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #f6f7f7;
	border: 1px dashed #aeaeae;
	border-radius: 6px;
}

/* Der Knopf des Formulars bleibt im DOM (Enter, Klick ohne JS), sichtbar ist
 * aber der Schritt darunter. */
.wi-add-native-submit {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Gesperrter Knopf: sichtbar, aber nicht klickbar (JS prueft zusaetzlich). */
.wi-btn-locked,
.wi-btn-locked:hover {
	color: #a7aaad;
	background: #f0f0f1;
	border-color: #dcdcde;
	cursor: not-allowed;
	box-shadow: none;
}

.wi-add-foot-file .wi-add-example-btn {
	margin-left: auto;
	padding: 0;
	font-size: 12px;
	color: #646970;
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
}

.wi-add-foot-file .wi-add-example-btn:hover {
	color: #ba3f17;
}

#mapping-container {
	margin: 8px 0 0;
}

#mapping-container:empty {
	margin: 0;
}

@media screen and (max-width: 782px) {
	.wi-lead-add-main {
		grid-template-columns: 1fr;
	}
	.wi-add-foot,
	.wi-lead-add-foot {
		gap: 8px;
	}
	.wi-add-foot-file .wi-add-example-btn {
		margin-left: 0;
	}
}

/* Ereignis-Zeitzone im Kopf des Registranten-Blocks (eine Zeile, kein eigener Absatz). */
.wi-console-event-tz {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	color: #666;
}
.wi-console-event-tz b {
	font-weight: 600;
	color: #333;
}
