/* 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: #2271b1;
	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 #2271b1;
	border-left: 4px solid #2271b1;
	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: #2271b1;
	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: #2271b1;
	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 {
	width: 28px;
	height: 28px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #f6f6f6;
	cursor: pointer;
}
.wi-prompter-mic[disabled] {
	cursor: not-allowed;
	opacity: .5;
}
.wi-prompter-mic-icon {
	width: 14px;
	height: 14px;
	position: relative;
	display: block;
}
.wi-prompter-mic-icon::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 6px;
	height: 9px;
	border-radius: 3px;
	background: #1d2327;
}
.wi-prompter-mic-icon::after {
	content: "";
	position: absolute;
	left: 2px;
	top: 7px;
	width: 10px;
	height: 6px;
	border: 2px solid #1d2327;
	border-top: 0;
	border-radius: 0 0 6px 6px;
}
.wi-prompter-mic.is-active .wi-prompter-mic-icon::before,
.wi-prompter-mic.is-active .wi-prompter-mic-icon::after {
	background: #fff;
	border-color: #fff;
}
.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 */
.wi-prompter-follow-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	cursor: pointer;
	user-select: none;
}
.wi-prompter-follow-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 {
	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 {
	background: #46b450;
}
.wi-prompter-follow-toggle input[type="checkbox"]:checked::after {
	transform: translateX(14px);
}
.wi-prompter-follow-toggle input[type="checkbox"]:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

/* 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;
}
.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: #2271b1;
	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 {
	height: 4.5rem;
	min-height: 3.5rem;
	max-height: 4.5rem;
	overflow: hidden;
	padding: 6px 14px;
	font-size: 20px;
	line-height: 1.5;
	border: 2px solid #2271b1;
	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;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.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;
}
.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 left and right (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. The script is the middle column and the tallest
 * element; the toolbar sits LEFT of it, the touch bar RIGHT of it, and the video/participants stay
 * visible below the bar.
 * The room therefore:
 *   - drops the empty rail TRACK (the engagement rail stays off exactly as before),
 *   - lays the stage out as a 3-column grid: toolbar | script | touch bar,
 *   - 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;
}

.wi-prompter-tab--room .wi-prompter-stage {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 12px;
	row-gap: 8px;
	/* Clears the panel's ×, which is pinned to the bar's top-right corner. */
	padding-right: 34px;
	overflow: visible;
}

/* A browser notice (if ever shown) is its own full-width row above the controls. */
.wi-prompter-tab--room .wi-prompter-browser-notice-wrap {
	grid-column: 1 / -1;
	grid-row: 1;
	min-width: 0;
}

/* Left column: Load kit + Fire line. */
.wi-prompter-tab--room .wi-prompter-toolbar {
	grid-column: 1;
	grid-row: 2;
	flex-wrap: nowrap;
	gap: 10px;
	margin: 0;
	padding-right: 0;
}

/* Right column: Prev / Trigger / Next. */
.wi-prompter-tab--room .wi-prompter-touch-controls {
	grid-column: 3;
	grid-row: 2;
	flex-wrap: nowrap;
	gap: 6px;
	margin: 0;
}

.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 middle column — two 20px lines fit exactly (2 × 20 × 1.4 = 56
   + 12 padding = 68), anything more scrolls inside. Height is fixed (the mode's own 4.5rem is
   overridden) so the bar cannot grow with the window. */
.wi-prompter-tab--room.wi-prompter-mode-reading .wi-prompter-view {
	grid-column: 2;
	grid-row: 2;
	min-width: 0;
	height: 68px;
	min-height: 0;
	max-height: 68px;
	overflow: auto;
	padding: 6px 12px;
	line-height: 1.4;
}

.wi-prompter-tab--room.wi-prompter-mode-reading .wi-prompter-view .wi-prompter-line {
	line-height: 1.4;
	margin: 0;
}

/* 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.wi-prompter-mode-editing #wiPrompterSource {
	grid-column: 1 / -1;
	grid-row: 3;
}

.wi-prompter-tab--room .wi-prompter-view {
	max-height: 34vh;
}

.wi-prompter-tab--room.wi-prompter-mode-editing .wi-prompter-view {
	grid-column: 1 / -1;
	grid-row: 4;
	height: auto;
	min-height: 0;
	max-height: 34vh;
}

/* ── 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: #135e96;
	background: #f0f6fc;
	border-color: #2271b1;
}

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

@media (max-width: 782px) {
	/* Phones: no room for three columns — the script stays on top, the controls wrap below it. */
	.wi-prompter-tab--room .wi-prompter-stage {
		grid-template-columns: minmax(0, 1fr);
	}
	.wi-prompter-tab--room.wi-prompter-mode-reading .wi-prompter-view {
		grid-column: 1;
		grid-row: 2;
	}
	.wi-prompter-tab--room .wi-prompter-toolbar {
		grid-column: 1;
		grid-row: 3;
		flex-wrap: wrap;
	}
	.wi-prompter-tab--room .wi-prompter-touch-controls {
		grid-column: 1;
		grid-row: 4;
		flex-wrap: wrap;
	}
	/* Editing on a phone: the textarea and the preview get their own rows AFTER the controls,
	   otherwise they would land in the same cells as the toolbar/touch rows and overlap. */
	.wi-prompter-tab--room.wi-prompter-mode-editing #wiPrompterSource {
		grid-column: 1;
		grid-row: 5;
	}
	.wi-prompter-tab--room.wi-prompter-mode-editing .wi-prompter-view {
		grid-column: 1;
		grid-row: 6;
	}
}

/* ── 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 > .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: #2271b1;
	border: 1px solid #1e5f97;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s ease;
}
.wi-prompter-toolbar #wiPrompterLoadKit:hover {
	background: #1e5f97;
}

/* Voice mic: square icon control, same height as the rest. */
.wi-prompter-toolbar .wi-prompter-mic {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	border: 1px solid #c3c4c7;
	background: #fff;
}
.wi-prompter-toolbar .wi-prompter-mic:hover {
	border-color: #2271b1;
	background: #f0f6fc;
}

/* 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: #2271b1;
}

/* "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 #2271b1;
	outline-offset: 2px;
}
.wi-prompter-fireline-toggle span {
	font-weight: 600;
}

/* Mic states: loading, active, error, unavailable */
.wi-prompter-mic.is-loading {
	background: #f0f6fc !important;
	border-color: #2271b1 !important;
	animation: wiMicPulse 1s ease-in-out infinite;
}
@keyframes wiMicPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(34, 113, 177, .3); }
	50% { box-shadow: 0 0 0 6px rgba(34, 113, 177, .1); }
}
.wi-prompter-mic.is-active {
	background: #46b450 !important;
	border-color: #46b450 !important;
}
.wi-prompter-mic.is-error {
	background: #d63638 !important;
	border-color: #d63638 !important;
}
.wi-prompter-mic.is-error .wi-prompter-mic-icon::before,
.wi-prompter-mic.is-error .wi-prompter-mic-icon::after {
	background: #fff;
	border-color: #fff;
}
.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: #2271b1;
	border: 1px solid #1e5f97;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s ease;
}
.wi-prompter-rating #wiPrompterRateSubmit:hover {
	background: #1e5f97;
}

/* 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: #2271b1;
	border: 1px solid #1e5f97;
}
.wi-prompter-beat-actions .wi-prompter-fire-btn:hover {
	background: #1e5f97;
}
.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: #2271b1;
	background: #f0f6fc;
}
.wi-prompter-touch-btn:active {
	background: #e8f4fd;
}
.wi-prompter-touch-btn.wi-prompter-touch-fire {
	color: #fff;
	background: #2271b1;
	border-color: #1e5f97;
}
.wi-prompter-touch-btn.wi-prompter-touch-fire:hover {
	background: #1e5f97;
}
