:root {
	--text: #1a1a1a;
	--bg: #ffffff;
	--link: #1a0dab;
	--border: #757575;
	--focus: #4a6fd4;
	--muted: #3d3d3d;
	--draft: #5f6368;
	--review: #a35f08;
	--publish: #137333;
	--surface: #f8f9fa;
	--danger: #c5221f;
}

* { box-sizing: border-box; }

html { font-size: 125%; }

body {
	font-family: system-ui, -apple-system, sans-serif;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	max-width: 40rem;
	margin: 0 auto;
	padding: 1rem;
}

.skip-link {
	position: absolute;
	top: -10rem;
	left: 0;
	background: var(--link);
	color: white;
	padding: 0.5rem 1rem;
	z-index: 100;
}
.skip-link:focus { top: 0; }

*:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

/* Visually hidden but available to screen readers (e.g. table captions).
   The print block later hides these with display:none. */
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

h1 { font-size: 1.75rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.5rem; margin: 1.5rem 0 0.5rem; }
h1 a { color: inherit; text-decoration: none; }

/* Header */
header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-bottom: 0;
	margin-bottom: 0.5rem;
}

header nav { display: flex; gap: 1rem; align-items: baseline; font-size: 1rem; }
header nav a { color: var(--link); }

/* Search */
.search-box { margin-bottom: 1.5rem; }
.search-box input {
	width: 100%;
	font-size: 1.5rem;
	font-weight: 500;
	padding: 0.875rem;
	border: 3px solid #555;
	border-radius: 4px;
	background: var(--bg);
	color: var(--text);
	-webkit-appearance: none;
	appearance: none;
}
.search-box input:focus {
	border-color: var(--focus);
	outline: 4px solid var(--focus);
	outline-offset: 2px;
	box-shadow: 0 0 0 4px rgba(74, 111, 212, 0.35);
}
.search-box input:-webkit-autofill,
.search-box input:autofill {
	border: 3px solid #555;
	-webkit-text-fill-color: var(--text);
	box-shadow: 0 0 0 30px var(--bg) inset;
}

/* Event list */
.event-list { list-style: none; padding: 0; margin: 0; }
.event-item {
	border: 1px solid var(--border);
	padding: 1rem;
	margin-bottom: 0.5rem;
	border-radius: 4px;
}

.event-item:hover { background: var(--surface); }
.event-item > a { text-decoration: none; color: inherit; display: block; }
.event-item > a .event-title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}
.event-item > a:focus { outline: none; }
.event-item > a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Public list: event cards. */
.event-item .event-text a { color: var(--link); }

/* One calendar control per event: a native disclosure (summary + two links).
   The menu overlays the next card, right-aligned to the summary. */
.calendar-menu { position: relative; display: inline-block; }
.calendar-menu > summary {
	list-style: none;
	cursor: pointer;
}
.calendar-menu > summary::-webkit-details-marker { display: none; }
.calendar-menu > summary::marker { content: ""; }
.calendar-menu > summary::after {
	content: " ▾";
	font-size: 0.8em;
}
.calendar-menu[open] > summary::after { content: " ▴"; }
.calendar-menu-list {
	position: absolute;
	right: 0;
	z-index: 20;
	margin: 0.25rem 0 0;
	padding: 0.25rem 0;
	min-width: min(15rem, calc(100vw - 4rem));
	max-width: min(20rem, calc(100vw - 4rem));
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	box-shadow: 0 4px 18px -2px rgb(0 0 0 / 12%);
}
.calendar-menu-list a {
	display: block;
	padding: 0.6rem 0.9rem;
	color: var(--text);
	text-decoration: none;
	font-size: 1rem;
	line-height: 1.4;
	white-space: normal;
	overflow-wrap: anywhere;
}
.calendar-menu-list a:hover { background: var(--bg); }
.calendar-menu-compact > summary {
	font-size: 0.75rem;
	padding: 0.15rem 0.4rem;
	min-height: 2.25rem;
}

.event-date {
	font-size: 1.125rem;
	color: var(--text);
	margin-bottom: 0.25rem;
}
.event-title { font-weight: 600; font-size: 1.125rem; margin-bottom: 0.25rem; }
.event-venue {
	font-size: 1rem;
	color: var(--muted);
	margin-bottom: 0.25rem;
}
.event-preview {
	font-size: 1.125rem;
	color: var(--text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Status badges */
.badge {
	display: inline-block;
	padding: 0.125rem 0.625rem;
	border-radius: 1rem;
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.badge-draft   { background: var(--badge-draft-bg, #f1f3f4); color: var(--badge-draft-color, var(--draft)); }
.badge-review  { background: var(--badge-review-bg, #fef7e0); color: var(--badge-review-color, var(--review)); }
.badge-publish { background: var(--badge-publish-bg, #e6f4ea); color: var(--badge-publish-color, var(--publish)); }
.badge-canceled { background: var(--badge-canceled-bg, #fce8e6); color: var(--badge-canceled-color, var(--danger)); border: 1px solid var(--danger); }

/* Warning icon left of the status badge for unpublished events about to
   enter the public window (see SendUnpublishedWarnings). */
.warn-icon {
	margin-right: 0.4rem;
	vertical-align: middle;
}

/* Muted-speaker icon left of the status badge for review events whose
   current version has not been listened to yet ("À écouter", see
   eventListenedSinceMod). Amber matches the review/À-écouter theme. */
.listen-icon {
	margin-right: 0.4rem;
	vertical-align: middle;
	color: var(--review);
}

/* Detail page */
.event-detail { margin-top: 1rem; }
.event-detail .event-meta {
	font-size: 1.125rem;
	color: var(--text);
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
}
.event-detail .event-text {
	white-space: pre-wrap;
	line-height: 1.7;
	margin-bottom: 2rem;
}
.event-detail .event-text a { color: var(--link); }

/* Forms */
form { margin-top: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.form-group .help-text { font-size: 1rem; color: var(--text); margin-top: 0.125rem; }
.form-group .error-text { font-size: 1rem; color: var(--error-color, var(--danger)); margin-top: 0.125rem; }

input, textarea, select {
	font-size: 1rem;
	font-family: inherit;
	padding: 0.625rem;
	border: 3px solid var(--border);
	border-radius: 4px;
	width: 100%;
	background: var(--bg);
	color: var(--text);
}
input:focus, textarea:focus, select:focus {
	border-color: var(--focus);
	outline: 4px solid var(--focus);
	outline-offset: 2px;
	box-shadow: 0 0 0 4px rgba(74, 111, 212, 0.3);
}
textarea { min-height: 8rem; resize: vertical; }

input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 2rem !important;
	height: 2rem !important;
	min-width: 2rem;
	min-height: 2rem;
	padding: 0;
	border: 3px solid var(--text);
	border-radius: 4px;
	cursor: pointer;
	vertical-align: middle;
	margin-right: 0.5rem;
	background: var(--bg);
	position: relative;
}
input[type="checkbox"]:checked {
	background: var(--publish);
	border-color: var(--publish);
}
input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 45%;
	width: 6px;
	height: 10px;
	border: solid white;
	border-width: 0 3px 3px 0;
	transform: translate(-50%, -50%) rotate(45deg);
}
input[type="checkbox"]:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

button, .btn {
	--_btn-bg: var(--btn-default-bg, var(--surface));
	font-size: 1rem;
	font-family: inherit;
	padding: 0.625rem 1.25rem;
	border: 2px solid;
	border-radius: 4px;
	background: var(--_btn-bg);
	color: var(--text);
	cursor: pointer;
	font-weight: 500;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	/* Keep the label (e.g. "▶ Écouter") on a single line so buttons stay a
	   uniform height when placed side by side. */
	white-space: nowrap;
	flex-shrink: 0;

	/* Normal border: lighter than background on dark bg buttons,
	   darker on the default light-surface button. */
	border-color: color-mix(in srgb, var(--_btn-bg) 82%, white);
}

/* Variants — only set the local colour token; border/background inherit from above. */
button.primary, .btn.primary { --_btn-bg: var(--btn-primary-bg, var(--link)); color: white; }
button.draft,   .btn.draft   { --_btn-bg: var(--btn-draft-bg,   var(--draft));   color: white; }
button.review,  .btn.review  { --_btn-bg: var(--btn-review-bg,  var(--review));  color: white; }
button.publish, .btn.publish { --_btn-bg: var(--btn-publish-bg, var(--publish)); color: white; }
button.danger,  .btn.danger  { --_btn-bg: var(--btn-danger-bg,  var(--danger));  color: white; }

/* At narrow widths (phone, 200 % text) let a long button label wrap instead
   of forcing a horizontal scroll. The desktop layout keeps nowrap. */
@media (max-width: 30rem) {
	button, .btn {
		white-space: normal;
		max-width: 100%;
		flex-shrink: 1;
	}
}

/* Hover: darker background, lighter border. */
button:hover, .btn:hover {
	background: color-mix(in srgb, var(--_btn-bg) 80%, black);
	border-color: color-mix(in srgb, var(--_btn-bg) 55%, white);
	box-shadow: none;
}

/* Focus-visible: darkest background, lightest border + outline ring. */
button:focus-visible, .btn:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
	background: color-mix(in srgb, var(--_btn-bg) 75%, black);
	border-color: color-mix(in srgb, var(--_btn-bg) 30%, white);
	box-shadow: none;
}

/* Light-mode default (surface) button: border darker than light background. */
@media (prefers-color-scheme: light) {
	button:not([class]), .btn:not([class]) {
		border-color: color-mix(in srgb, var(--_btn-bg) 85%, black);
	}
	button:not([class]):hover, .btn:not([class]):hover {
		background: color-mix(in srgb, var(--_btn-bg) 90%, white);
		border-color: color-mix(in srgb, var(--_btn-bg) 70%, black);
	}
	button:not([class]):focus-visible, .btn:not([class]):focus-visible {
		background: color-mix(in srgb, var(--_btn-bg) 85%, white);
		border-color: color-mix(in srgb, var(--_btn-bg) 55%, black);
	}
}

/* Bouton « Ajouter au calendrier » — native <details> disclosure.
   The summary uses .btn; the list is styled by .calendar-menu-list above.
   Compact summaries match the compact icon button in the public list. */

.form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 1.5rem; }
	.form-actions form { margin-top: 0; display: inline-flex; }
.form-save-note { margin: 0 0 1rem; font-size: 1rem; color: var(--muted); }

/* Messages */
.message {
	padding: 0.75rem 1rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}
.message-info    { background: var(--msg-info-bg, #e8f0fe); color: var(--msg-info-color, #174ea6); }
.message-success { background: var(--msg-success-bg, #e6f4ea); color: var(--msg-success-color, var(--publish)); }
.message-error   { background: var(--msg-error-bg, #fce8e6); color: var(--msg-error-color, var(--danger)); }
.message-warning { background: #fef7e0; color: var(--review); }

/* "Add an Evento shortcut" banner (profile page). It is rendered hidden and
   revealed by /static/install.js only when the page is not already running as
   the installed app. The long French label must wrap on a phone, unlike the
   other .btn labels. */
.install-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
}
.install-banner[hidden] { display: none; }
.install-banner [data-install-pwa] {
	white-space: normal;
	text-align: left;
	flex-shrink: 1;
	max-width: 100%;
}
.install-banner .install-dismiss {
	font-size: 0.875rem;
	padding: 0.35rem 0.75rem;
}
.install-status { flex-basis: 100%; margin: 0; font-size: 1rem; }
.install-status:empty { display: none; }

/* Cancel / reschedule banners (public page) */
.cancel-banner {
	background: var(--msg-error-bg, #fce8e6);
	color: var(--msg-error-color, var(--danger));
	border: 2px solid var(--danger);
	border-radius: 6px;
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	font-size: 1.125rem;
}
.cancel-banner p { margin: 0.25rem 0; }
.cancel-badge {
	background: var(--msg-error-bg, #fce8e6);
	color: var(--msg-error-color, var(--danger));
	border: 1px solid var(--danger);
	border-radius: 4px;
	padding: 0.25rem 0.5rem;
	margin-bottom: 0.35rem;
	font-weight: 600;
	display: inline-block;
}

/* "Nouveau" badge / banner for an event published inside the public window —
   green, distinct from the amber/red reschedule warnings. */
.new-badge {
	background: var(--msg-success-bg, #e6f4ea);
	color: var(--msg-success-color, var(--publish, #0d652d));
	border: 1px solid var(--publish, #0d652d);
	border-radius: 4px;
	padding: 0.25rem 0.5rem;
	margin-bottom: 0.35rem;
	font-weight: 600;
	display: inline-block;
}
.new-banner {
	background: var(--msg-success-bg, #e6f4ea);
	color: var(--msg-success-color, var(--publish, #0d652d));
	border: 2px solid var(--publish, #0d652d);
	border-radius: 6px;
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	font-size: 1.125rem;
}
.new-banner p { margin: 0.25rem 0; }

/* Monthly list-update note: end of the public list, before the conclusion. */
.window-update {
	list-style: none;
	margin: 1.25rem 0 0.5rem;
	padding: 0.75rem 1rem;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.95rem;
}
.window-update p { margin: 0; }

/* Lock indicator */
.lock-info {
	font-size: 1rem;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}
.lock-info.foreign  { background: var(--lock-foreign-bg, #fce8e6); color: var(--lock-foreign-color, var(--danger)); }

/* Editor dashboard */
.dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

/* User management */
.user-list { list-style: none; padding: 0; }
.user-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--border);
}

/* Empty state */
.empty { text-align: center; color: var(--text); padding: 2rem 0; font-size: 1.25rem; }

/* Breadcrumb */
.breadcrumb { font-size: 1rem; margin-bottom: 0.75rem; color: var(--text); }
.breadcrumb a { color: var(--link); }
.breadcrumb .sep { margin: 0 0.375rem; color: var(--text); }

/* Footer */
footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 1rem; color: var(--text); text-align: right; }
.footer-links { display: flex; gap: 1rem; justify-content: flex-end; flex-wrap: wrap; }

/* HTMX */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline; }
.htmx-settling { opacity: 0.5; transition: opacity 0.1s; }

/* Collapsible help text */
.help-details { margin-top: 0.25rem; font-size: 1rem; color: var(--text); }
.help-details summary { cursor: pointer; color: var(--link); font-size: 1rem; }
.help-details summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.help-details .help-text { margin-top: 0.25rem; }

/* Intro / Footer */
.intro-item { background: var(--surface); }
.intro-item .intro-title { font-size: 1.15rem; margin: 0 0 0.5rem; }
.footer-item { background: var(--surface); }
.event-text { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Long e-mail addresses and URLs must reflow at 200 % text without
   forcing a horizontal scroll; break only when the word does not fit. */
.event-detail .event-text, .help-text, .form-group { overflow-wrap: anywhere; }
.empty-query { font-size: 1.75rem; text-align: center; color: var(--text); padding: 2rem 0; font-weight: 600; }
audio { width: 100%; height: 3.5rem; margin: 0.5rem 0; background: transparent; border: 1px solid #999; border-radius: 4px; }

@media (prefers-color-scheme: dark) {
	:root {
		color-scheme: dark;
		--text: #e8e6e3;
		--bg: #1a1a2e;
		--link: #8ab4f8;
		--border: #7a7f85;
		--focus: #6a9ff8;
		--muted: #9aa0a6;
		--draft: #5f6368;
		--review: #f0a04b;
		--publish: #0d7a2e;
		--surface: #252540;
		--danger: #c5221f;
		--btn-default-bg: #5f6368;
		--btn-primary-bg: #4a6fd4;
		--btn-draft-bg: #5f6368;
		--btn-review-bg: #b85c00;
		--btn-publish-bg: #0d7a2e;
		--btn-danger-bg: #c5221f;
		--badge-draft-bg: #4a4f55; --badge-draft-color: #c4c9cf;
		--badge-review-bg: #5c4218; --badge-review-color: #f7bc78;
		--badge-publish-bg: #1f4a2c; --badge-publish-color: #5cc47a;
		--badge-canceled-bg: #442a2a; --badge-canceled-color: #f5a3a3;
		--msg-info-bg: #1e3a5f; --msg-info-color: #d2e3fc;
		--msg-success-bg: #2a442a; --msg-success-color: #7ddf90;
		--msg-error-bg: #442a2a; --msg-error-color: #f5a3a3;
		--error-color: #f28b82;
		--lock-foreign-bg: #3a2e1e; --lock-foreign-color: #f5a3a3;
	}
	.skip-link { color: #1a1a2e; }
	.lock-info { background: #252540; }

	input, textarea, select { background: #2d2d44; color: var(--text); border-color: #b0b5c0; }
	input:focus, textarea:focus, select:focus { border-color: var(--focus); outline: 4px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(106, 159, 248, 0.4); }
	.search-box input { background: #2d2d44; color: var(--text); border-color: #b0b5c0; }
	.search-box input:focus { border-color: var(--focus); outline: 4px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(106, 159, 248, 0.4); }
	.search-box input:-webkit-autofill,
	.search-box input:autofill { border: 3px solid #b0b5c0; -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 30px #2d2d44 inset; }
	.help-details { background: #252540; }
	::placeholder { color: var(--muted); opacity: 1; }
	audio { color-scheme: dark; }
}

/* --- print styles --- */
@media print {
	/* Force black on white, strip backgrounds and shadows. */
	*, *::before, *::after {
		background: #fff !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}
	:root {
		--text: #000;
		--bg: #fff;
		--muted: #333;
		--border: #ccc;
	}
	body {
		font-size: 12pt;
		line-height: 1.5;
		max-width: none;
		padding: 0;
	}

	/* Show URLs after links. */
	a[href]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555 !important; }
	a[href^="#"]::after,
	a[href^="javascript"]::after { content: ""; }

	/* Hide non-content. */
	.skip-link,
	header[role="banner"],
	footer[role="contentinfo"],
	nav,
	.search-box,
	.breadcrumb,
	.form-actions,
	.help-details,
	.no-print { display: none !important; }
	audio,
	.lock-info,
	.visually-hidden { display: none !important; }

	/* Full-width readable content. */
	main {
		max-width: none !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	/* Events print cleanly. */
	.event-list { padding-left: 0; list-style: none; }
	.event-item {
		break-inside: avoid;
		border-bottom: 1px solid #ccc;
		padding: 0.75rem 0;
		margin: 0;
	}
	.event-item a { color: #000 !important; text-decoration: none; }
	.event-item a::after { content: ""; }
	.event-title { font-size: 1.1em; font-weight: 700; }
	.event-date { font-size: 0.9em; color: #333 !important; margin-bottom: 0.25rem; }
	.event-text { white-space: pre-wrap; font-size: 11pt; }

	.intro-item, .footer-item {
		break-inside: avoid;
		border-bottom: 1px solid #ccc;
		padding: 0.75rem 0;
	}

	/* Avoid page breaks inside events. */
	h1, h2 { break-after: avoid; page-break-after: avoid; }

	/* Keep search filter heading visible so user knows what they printed. */
	h2 { font-size: 1.2em; margin-top: 0.5rem; }
}

/* --- reusable table styles --- */
.stats-table { width: auto; border-collapse: collapse; font-size: 0.875rem; }
.stats-table th { border-bottom: 2px solid var(--border); text-align: left; padding: 0.5rem; font-weight: 600; }
.stats-table td { border-bottom: 1px solid var(--border); padding: 0.5rem; }
.stats-table td:first-child { text-align: right; padding-right: 0.75rem; white-space: nowrap; }
.stats-table td:last-child, .stats-table th:last-child { text-align: left; }

/* Health page key/value metrics: a definition list, not a layout table. */
.stats-list {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.25rem 0.75rem;
	margin: 1rem 0;
	font-size: 0.875rem;
}
.stats-list dt { font-weight: 600; text-align: right; }
.stats-list dd { margin: 0; }
.stats-list dd.metric-warning { color: var(--review); font-weight: 700; }
.stats-list dd.metric-critical { color: var(--danger); font-weight: 700; }
@media (max-width: 40rem) {
	.stats-list { grid-template-columns: 1fr; gap: 0.125rem; }
	.stats-list dt { text-align: left; margin-top: 0.5rem; }
}

/* --- reusable flex rows --- */
.flex-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; }
.flex-row-center { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.section-gap { margin: 1.5rem 0; }
.notes-box { margin: 1.5rem 0; padding: 1rem; background: var(--surface); border-radius: 4px; }
.notes-box .notes-text { white-space: pre-wrap; }

/* --- button states --- */
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Square icon-only button (e.g. play next to "Ajouter"): 3rem matches the
   full calendar summary height (1rem line box + 2×0.625rem padding + 2×2px
   border), so the two sit at the same height in a flex row. */
.btn-icon {
	box-sizing: border-box;
	width: 3rem;
	height: 3rem;
	padding: 0;
	justify-content: center;
}

/* Compact icon button (public list): matches the compact calendar summary
   height (2.25rem, including its minimum). */
.btn-icon.btn-icon-compact {
	width: 2.25rem;
	height: 2.25rem;
	font-size: 0.75rem;
}
/* The pause glyph (U+23F8) is visually smaller than the play triangle at the
   same font size: enlarge it only while playing so both icons match. */
.btn-icon.btn-icon-compact.is-playing .btn-icon-glyph {
	font-size: 1.25rem;
	line-height: 1;
}

/* --- link button --- */
.link-btn { background: none; border: none; color: var(--link); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.link-btn:hover { color: var(--text); }

/* Health metric thresholds */
.metric-warning td:last-child { color: var(--review); font-weight: 700; }
.metric-critical td:last-child { color: var(--danger); font-weight: 700; }

.voice-selected { background: var(--publish); color: white; }
.voice-selected td:first-child { font-weight: 700; }

@media (prefers-color-scheme: dark) {
	.voice-selected { background: #0d7a2e; }
}

@media (prefers-reduced-motion: reduce) {
	*, ::before, ::after {
		animation-delay: -1ms !important;
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0s !important;
	}
}
