/* Auganix Speed Reader (RSVP) – styles. Every selector carries the auganix-rsvp- prefix. */

/* ---------- Launch button (under the headline) ---------- */
.auganix-rsvp-launch {
	margin: 0 0 1.25em;
	min-height: calc(2.33em + 4px); /* the button's height, reserved before the script reveals it */
	font-family: Glegoo, Georgia, serif;
}
/* Keep the space while hidden so nothing below shifts when the button appears (no layout shift). */
.auganix-rsvp-launch[hidden] {
	display: block;
	visibility: hidden;
}
@media (max-width: 760px) {
	.auganix-rsvp-launch {
		min-height: 48px;
	}
	.auganix-rsvp-launch-button {
		min-height: 48px; /* comfortable tap target on phones */
	}
}
.auganix-rsvp-launch-button {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	max-width: 100%;
	margin: 0;
	padding: 0.55em 1em 0.55em 0.8em;
	background: #f9f9f9;
	border: 2px solid #e0e0e0;
	border-left: 4px solid #0066cc;
	border-radius: 4px;
	box-shadow: none;
	color: #333;
	font: inherit;
	font-size: 0.95em;
	line-height: 1.35;
	text-align: left;
	text-transform: none;
	text-shadow: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}
.auganix-rsvp-launch-button:hover {
	background: #fff;
	border-color: #0066cc;
}
.auganix-rsvp-launch-button:focus {
	outline: none;
}
.auganix-rsvp-launch-button:focus-visible {
	outline: 2px solid #0066cc;
	outline-offset: 2px;
}
.auganix-rsvp-launch-icon {
	width: 2.2em;
	height: 1.15em;
	flex: none;
	color: #0066cc;
}
.auganix-rsvp-launch-label {
	font-weight: 700;
	color: #0066cc;
}
.auganix-rsvp-launch-estimate {
	color: #666;
}
.auganix-rsvp-launch-estimate:empty {
	display: none;
}
.auganix-rsvp-launch-estimate::before {
	content: "\2022"; /* a full-size bullet, in grey, between the label and the estimate */
	margin: 0 0.55em 0 0.1em;
	color: #999;
}

/* ---------- Page scroll lock (Focus mode only) ---------- */
html.auganix-rsvp-lock,
html.auganix-rsvp-lock body {
	overflow: hidden;
}
html.auganix-rsvp-lock body {
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
}

/* ---------- Shared root: colours, theme and focal colour ---------- */
.auganix-rsvp-root {
	--auganix-rsvp-bg: #fafafa;
	--auganix-rsvp-backdrop: rgba(255, 255, 255, 0.86); /* Focus mode: site faintly visible behind the card */
	--auganix-rsvp-fg: #111111;
	--auganix-rsvp-muted: #6b6b6b;
	--auganix-rsvp-line: #dcdcdc;
	--auganix-rsvp-ctrl: #ffffff;
	--auganix-rsvp-track: #d6d6d6;
	--auganix-rsvp-shade: rgba(255, 255, 255, 0.62);
	--auganix-rsvp-on-focal: #ffffff;
	--auganix-rsvp-focal: #0066cc;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2147483000;
	color: var(--auganix-rsvp-fg);
	font-family: Glegoo, Georgia, serif;
	font-size: 16px;
	line-height: 1.4;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}
.auganix-rsvp-root[data-theme="dark"] {
	--auganix-rsvp-bg: #121212;
	--auganix-rsvp-backdrop: rgba(0, 0, 0, 0.86);
	--auganix-rsvp-fg: #f2f2f2;
	--auganix-rsvp-muted: #a9a9a9;
	--auganix-rsvp-line: #333333;
	--auganix-rsvp-ctrl: #1e1e1e;
	--auganix-rsvp-track: #3a3a3a;
	--auganix-rsvp-shade: rgba(0, 0, 0, 0.62);
	--auganix-rsvp-on-focal: #121212;
}
/* Focal colours: light shade, then the dark-theme shade */
.auganix-rsvp-root[data-focal="red"] { --auganix-rsvp-focal: #e0243c; }
.auganix-rsvp-root[data-focal="blue"] { --auganix-rsvp-focal: #0066cc; }
.auganix-rsvp-root[data-focal="green"] { --auganix-rsvp-focal: #008f2a; }
.auganix-rsvp-root[data-theme="dark"][data-focal="red"] { --auganix-rsvp-focal: #ff4d5e; }
.auganix-rsvp-root[data-theme="dark"][data-focal="blue"] { --auganix-rsvp-focal: #4da3ff; }
.auganix-rsvp-root[data-theme="dark"][data-focal="green"] { --auganix-rsvp-focal: #00ff41; }

.auganix-rsvp-root,
.auganix-rsvp-root *,
.auganix-rsvp-root *::before,
.auganix-rsvp-root *::after {
	box-sizing: border-box;
}

/* ---------- Shared: buttons ---------- */
.auganix-rsvp-button {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--auganix-rsvp-line);
	border-radius: 50%;
	background: var(--auganix-rsvp-ctrl);
	color: var(--auganix-rsvp-fg);
	box-shadow: none;
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
	touch-action: manipulation;
}
.auganix-rsvp-button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}
.auganix-rsvp-button:hover {
	border-color: var(--auganix-rsvp-focal);
}
.auganix-rsvp-button:focus {
	outline: none;
}
.auganix-rsvp-button:focus-visible {
	outline: 2px solid var(--auganix-rsvp-focal);
	outline-offset: 2px;
}

/* ---------- Shared: the word with its focal letter and guide ticks ---------- */
.auganix-rsvp-wordwrap {
	position: relative;
	width: 100%;
	padding: 26px 0;
}
.auganix-rsvp-tick {
	position: absolute;
	left: 50%;
	width: 2px;
	height: 14px;
	margin-left: -1px;
	background: var(--auganix-rsvp-focal);
	opacity: 0.75;
	pointer-events: none;
}
.auganix-rsvp-tick-top {
	top: 0;
}
.auganix-rsvp-tick-bottom {
	bottom: 0;
}
.auganix-rsvp-word {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: baseline;
	width: 100%;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-weight: 400;
	font-size: 9vw;
	font-size: clamp(2.4rem, 9vw, 5.25rem);
	line-height: 1.2;
	white-space: nowrap;
	color: var(--auganix-rsvp-fg);
}
.auganix-rsvp-word > span {
	white-space: pre;
}
.auganix-rsvp-pre {
	justify-self: end;
}
.auganix-rsvp-orp {
	color: var(--auganix-rsvp-focal);
	font-weight: 600;
}
.auganix-rsvp-post {
	justify-self: start;
}
.auganix-rsvp-word.auganix-rsvp-heading {
	font-weight: 600;
}

/* ---------- Shared: range sliders ---------- */
.auganix-rsvp-range {
	-webkit-appearance: none;
	appearance: none;
	flex: 1 1 auto;
	width: 100%;
	height: 28px;
	min-height: 0;
	margin: 0;
	padding: 0 !important;
	border: 0 !important; /* themes often box every <input>; sliders must stay bare */
	border-radius: 0;
	box-shadow: none !important;
	background: transparent !important;
	cursor: pointer;
	touch-action: pan-y;
}
.auganix-rsvp-range:focus {
	outline: none;
}
.auganix-rsvp-range::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 3px;
	background: var(--auganix-rsvp-track);
}
.auganix-rsvp-range::-moz-range-track {
	height: 6px;
	border-radius: 3px;
	background: var(--auganix-rsvp-track);
}
.auganix-rsvp-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 28px;
	height: 28px;
	margin-top: -11px;
	border: 2px solid var(--auganix-rsvp-focal);
	border-radius: 50%;
	background: var(--auganix-rsvp-ctrl);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.auganix-rsvp-range::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border: 2px solid var(--auganix-rsvp-focal);
	border-radius: 50%;
	background: var(--auganix-rsvp-ctrl);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.auganix-rsvp-range:focus-visible::-webkit-slider-thumb {
	outline: 2px solid var(--auganix-rsvp-focal);
	outline-offset: 2px;
}
.auganix-rsvp-range:focus-visible::-moz-range-thumb {
	outline: 2px solid var(--auganix-rsvp-focal);
	outline-offset: 2px;
}
.auganix-rsvp-range:disabled {
	opacity: 0.45;
	cursor: default;
}

/* Screen-reader-only live region */
.auganix-rsvp-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ================================================================== */
/* Focus mode: full-screen overlay                                     */
/* ================================================================== */
.auganix-rsvp-overlay {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--auganix-rsvp-backdrop);
}
.auganix-rsvp-panel {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background: var(--auganix-rsvp-bg);
	padding: 10px 16px 14px;
	padding-top: calc(10px + env(safe-area-inset-top));
	padding-right: calc(16px + env(safe-area-inset-right));
	padding-bottom: calc(14px + env(safe-area-inset-bottom));
	padding-left: calc(16px + env(safe-area-inset-left));
}
/* On large screens the reader is a centred card; tapping the space around it closes it. */
@media (min-width: 900px) and (min-height: 640px) {
	.auganix-rsvp-panel {
		width: 92vw;
		max-width: 1040px;
		height: 88vh;
		max-height: 820px;
		padding: 14px 28px 22px;
		border: 1px solid var(--auganix-rsvp-line);
		border-radius: 8px;
		box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	}
}
.auganix-rsvp-top {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
}
.auganix-rsvp-title {
	font-weight: 700;
	color: var(--auganix-rsvp-focal);
	white-space: nowrap;
}
.auganix-rsvp-remaining {
	color: var(--auganix-rsvp-fg); /* same colour as the wpm readout */
	font-size: 0.9em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.auganix-rsvp-top .auganix-rsvp-gear {
	margin-left: auto;
}
.auganix-rsvp-close,
.auganix-rsvp-gear {
	width: 44px;
	height: 44px;
	border-color: transparent;
	background: transparent;
	color: var(--auganix-rsvp-muted);
}
.auganix-rsvp-close:hover,
.auganix-rsvp-gear:hover,
.auganix-rsvp-gear[aria-expanded="true"] {
	color: var(--auganix-rsvp-fg);
	border-color: var(--auganix-rsvp-line);
}
.auganix-rsvp-stage {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}
.auganix-rsvp-stage:focus {
	outline: none;
}
.auganix-rsvp-stage:focus-visible {
	outline: 2px dashed var(--auganix-rsvp-line);
	outline-offset: -6px;
	border-radius: 8px;
}
.auganix-rsvp-status {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 4px;
	text-align: center;
	font-size: 0.85em;
	color: var(--auganix-rsvp-muted);
	pointer-events: none;
}
.auganix-rsvp-controls {
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 6px;
}
.auganix-rsvp-progress {
	position: relative;
	height: 28px; /* generous tap target; the visible bar is inside */
	cursor: pointer;
	touch-action: manipulation;
}
.auganix-rsvp-progress:focus {
	outline: none;
}
.auganix-rsvp-progress:focus-visible {
	outline: 2px solid var(--auganix-rsvp-focal);
	outline-offset: 2px;
	border-radius: 4px;
}
.auganix-rsvp-progress-track {
	position: absolute;
	left: 0;
	right: 0;
	top: 11px;
	height: 6px;
	border-radius: 3px;
	background: var(--auganix-rsvp-track);
	overflow: hidden;
}
.auganix-rsvp-progress-fill {
	height: 100%;
	width: 0;
	background: var(--auganix-rsvp-focal);
	transition: width 0.1s linear;
}
.auganix-rsvp-progress-lane {
	position: absolute;
	left: 8px;
	right: 8px;
	top: 0;
	bottom: 0;
	pointer-events: none;
}
.auganix-rsvp-progress-marker {
	position: absolute;
	top: 14px;
	left: 0;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: var(--auganix-rsvp-focal);
	border: 2px solid var(--auganix-rsvp-bg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: left 0.1s linear;
}
/* Play is the centre anchor: [restart, back] | play | [next] */
.auganix-rsvp-buttons {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
}
.auganix-rsvp-buttons-left,
.auganix-rsvp-buttons-right {
	display: flex;
	align-items: center;
	gap: 18px;
}
.auganix-rsvp-buttons-left {
	justify-content: flex-end;
	padding-right: 18px;
}
.auganix-rsvp-buttons-right {
	justify-content: flex-start;
	padding-left: 18px;
}
.auganix-rsvp-play {
	width: 64px;
	height: 64px;
	background: var(--auganix-rsvp-focal);
	border-color: var(--auganix-rsvp-focal);
	color: var(--auganix-rsvp-on-focal);
}
.auganix-rsvp-play svg {
	width: 28px;
	height: 28px;
}
.auganix-rsvp-play:hover {
	filter: brightness(1.1);
}
.auganix-rsvp-speed {
	display: flex;
	align-items: center;
	gap: 12px;
}
/* Desktop: a short slider centred under play, with the label and value either side */
@media (min-width: 761px) {
	.auganix-rsvp-speed {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 40% minmax(0, 1fr);
		gap: 0;
		align-items: center;
	}
	.auganix-rsvp-speed label {
		text-align: right;
		padding-right: 12px;
	}
	.auganix-rsvp-speed .auganix-rsvp-wpm-value {
		text-align: left; /* hugs the slider, mirroring the label on the left */
		padding-left: 12px;
		min-width: 0;
	}
}
.auganix-rsvp-speed label {
	flex: none;
	font-size: 0.9em;
	color: var(--auganix-rsvp-muted);
}
.auganix-rsvp-wpm-value {
	flex: none;
	min-width: 5.5em;
	text-align: right;
	font-variant-numeric: tabular-nums;
	font-size: 0.9em;
}
.auganix-rsvp-hint {
	margin: 0;
	text-align: center;
	font-size: 0.75em;
	color: var(--auganix-rsvp-muted);
}
.auganix-rsvp-hint kbd {
	font-family: inherit;
	font-size: inherit;
	padding: 0 4px;
	border: 1px solid var(--auganix-rsvp-line);
	border-radius: 3px;
	background: var(--auganix-rsvp-ctrl);
}
@media (pointer: coarse), (max-width: 760px) {
	.auganix-rsvp-hint {
		display: none;
	}
}
/* Phones: tighter transport row so "next" plus the time remaining fit beside play */
@media (max-width: 760px) {
	.auganix-rsvp-buttons-left,
	.auganix-rsvp-buttons-right {
		gap: 8px;
	}
	.auganix-rsvp-buttons-left {
		padding-right: 10px;
	}
	.auganix-rsvp-buttons-right {
		padding-left: 10px;
	}
	.auganix-rsvp-restart,
	.auganix-rsvp-back,
	.auganix-rsvp-fwd {
		width: 44px;
		height: 44px;
	}
	.auganix-rsvp-remaining {
		font-size: 0.8em; /* reads "0:36 left" on phones */
	}
	.auganix-rsvp-panel {
		padding-bottom: calc(29px + env(safe-area-inset-bottom)); /* clear of gesture bars */
	}
	.auganix-rsvp-progress-marker {
		width: 28px;
		height: 28px;
		margin: -14px 0 0 -14px;
	}
}

/* ================================================================== */
/* Minimal mode: a thin bar over the page                              */
/* ================================================================== */
.auganix-rsvp-mini {
	pointer-events: none; /* the page underneath stays usable and scrollable */
}
.auganix-rsvp-mini-shade {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: var(--auganix-rsvp-shade);
}
.auganix-rsvp-mini-dock {
	position: absolute;
	left: 0;
	right: 0;
	top: 40%;
	pointer-events: auto;
	padding-left: env(safe-area-inset-left);
	padding-right: env(safe-area-inset-right);
}
.auganix-rsvp-mini-bar {
	display: flex;
	align-items: stretch;
	height: 80px;
	background: var(--auganix-rsvp-bg);
	border-top: 1px solid var(--auganix-rsvp-line);
	border-bottom: 1px solid var(--auganix-rsvp-line);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.auganix-rsvp-mini-side {
	position: relative;
	z-index: 1; /* controls always sit above the word area, never under it */
	flex: none;
	width: 388px; /* both sides equal, so the word stays centred on screen */
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 0 6px;
}
.auganix-rsvp-mini-right {
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 0;
}
.auganix-rsvp-mini-transport {
	display: flex;
	align-items: center;
	gap: 6px; /* room for a focus outline without touching the next button */
	margin: 0 6px 0 4px;
}
/* A ring around play for as long as the reader is playing */
.auganix-rsvp-mini-bar[data-playing="true"] .auganix-rsvp-mini-play {
	border-color: var(--auganix-rsvp-focal) !important;
	box-shadow: inset 0 0 0 1px var(--auganix-rsvp-focal);
}
.auganix-rsvp-mini .auganix-rsvp-mini-small {
	width: 30px;
	height: 30px;
}
.auganix-rsvp-mini .auganix-rsvp-mini-small svg {
	width: 16px;
	height: 16px;
}
.auganix-rsvp-mini .auganix-rsvp-mini-range {
	width: 150px;
	height: 28px; /* tall hit area: anywhere in this strip moves the slider */
	flex: none;
	touch-action: pan-y;
}
.auganix-rsvp-mini .auganix-rsvp-mini-range::-webkit-slider-runnable-track {
	height: 4px;
}
.auganix-rsvp-mini .auganix-rsvp-mini-range::-moz-range-track {
	height: 4px;
}
.auganix-rsvp-mini .auganix-rsvp-mini-range::-webkit-slider-thumb {
	width: 14px;
	height: 14px;
	margin-top: -5px;
}
.auganix-rsvp-mini .auganix-rsvp-mini-range::-moz-range-thumb {
	width: 12px;
	height: 12px;
}
.auganix-rsvp-mini .auganix-rsvp-button {
	width: 40px;
	height: 40px;
	border-color: transparent;
	background: transparent;
	color: var(--auganix-rsvp-muted);
}
.auganix-rsvp-mini .auganix-rsvp-button svg {
	width: 20px;
	height: 20px;
}
.auganix-rsvp-mini .auganix-rsvp-button:hover,
.auganix-rsvp-mini .auganix-rsvp-gear[aria-expanded="true"] {
	color: var(--auganix-rsvp-fg);
	border-color: var(--auganix-rsvp-line);
}
.auganix-rsvp-mini-handle {
	width: 36px !important;
	height: 36px !important;
	cursor: ns-resize;
	touch-action: none;
}
.auganix-rsvp-mini-play {
	width: 36px !important;
	height: 36px !important;
	color: var(--auganix-rsvp-focal) !important;
}
.auganix-rsvp-mini-close {
	width: 36px !important;
	height: 36px !important;
}
.auganix-rsvp-mini-speed {
	position: relative; /* the slider centres with the buttons; the readout hangs below it */
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: none;
	width: 150px;
}
.auganix-rsvp-mini-meta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%; /* above the slider, so the cursor never covers it while dragging */
	margin-bottom: -4px;
	text-align: center;
	font-size: 11px;
	line-height: 1;
	color: var(--auganix-rsvp-muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.auganix-rsvp-mini-stage {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 12px; /* leaves a clear line under the lower tick for the caption */
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}
.auganix-rsvp-mini-stage:focus {
	outline: none;
}
.auganix-rsvp-mini-stage:focus-visible {
	outline: 2px dashed var(--auganix-rsvp-line);
	outline-offset: -4px;
	border-radius: 6px;
}
.auganix-rsvp-mini-wordwrap {
	padding: 8px 0;
}
.auganix-rsvp-mini-wordwrap .auganix-rsvp-tick {
	height: 6px;
}
.auganix-rsvp-mini-wordwrap .auganix-rsvp-word {
	font-size: 34px;
	line-height: 1.15;
}
.auganix-rsvp-mini-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 4px;
	text-align: center;
	font-size: 10px;
	line-height: 1;
	color: var(--auganix-rsvp-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}
.auganix-rsvp-mini-caption:empty {
	display: none;
}
.auganix-rsvp-mini-track {
	position: relative;
	height: 24px;
	cursor: pointer;
	touch-action: none;
}
.auganix-rsvp-mini-track:focus {
	outline: none;
}
.auganix-rsvp-mini-track:focus-visible .auganix-rsvp-mini-marker {
	outline: 2px solid var(--auganix-rsvp-focal);
	outline-offset: 2px;
}
.auganix-rsvp-mini-lane {
	position: absolute;
	left: 12px;
	right: 12px;
	top: 0;
	bottom: 0;
}
.auganix-rsvp-mini-line {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 4px;
	background: var(--auganix-rsvp-track);
	overflow: hidden;
}
.auganix-rsvp-mini-fill {
	height: 100%;
	width: 0;
	background: var(--auganix-rsvp-focal);
	transition: width 0.1s linear;
}
.auganix-rsvp-mini-marker {
	position: absolute;
	top: 2px;
	left: 0;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border-radius: 50%;
	background: var(--auganix-rsvp-focal);
	border: 2px solid var(--auganix-rsvp-bg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: left 0.1s linear;
	pointer-events: none;
}
@media (max-width: 760px) {
	.auganix-rsvp-mini-bar {
		height: 88px;
	}
	.auganix-rsvp-mini-side {
		width: 104px;
		padding: 0 4px;
	}
	.auganix-rsvp-mini-transport {
		display: none; /* on phones, tap the word and use the track instead */
	}
	.auganix-rsvp-mini-left {
		flex-direction: column; /* gear, with the time/wpm readout under it */
		align-items: flex-start;
		justify-content: center;
		gap: 0;
	}
	.auganix-rsvp-mini-speed {
		width: auto;
		align-items: flex-start;
	}
	.auganix-rsvp-mini .auganix-rsvp-mini-range {
		display: none; /* speed is set from the settings panel on phones */
	}
	.auganix-rsvp-mini-meta {
		position: static; /* no slider to hang under on phones: sits beneath the gear */
		margin-top: 0;
		padding-left: 4px;
		text-align: left;
	}
	.auganix-rsvp-mini .auganix-rsvp-button {
		width: 44px;
		height: 44px;
	}
	.auganix-rsvp-mini-close,
	.auganix-rsvp-mini-handle {
		width: 40px !important;
		height: 40px !important;
	}
	.auganix-rsvp-mini-wordwrap .auganix-rsvp-word {
		font-size: 28px;
	}
	.auganix-rsvp-mini-track {
		height: 32px;
	}
	.auganix-rsvp-mini-marker {
		width: 22px;
		height: 22px;
		margin: -11px 0 0 -11px;
	}
}

/* ================================================================== */
/* Settings panel (both modes)                                         */
/* ================================================================== */
.auganix-rsvp-settings {
	position: fixed;
	z-index: 2147483001;
	width: 300px;
	max-width: calc(100vw - 16px);
	max-height: calc(100vh - 16px);
	overflow: auto;
	padding: 6px 14px 14px;
	background: var(--auganix-rsvp-ctrl);
	color: var(--auganix-rsvp-fg);
	border: 1px solid var(--auganix-rsvp-line);
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	font-size: 14px;
	pointer-events: auto;
}
.auganix-rsvp-settings[hidden] {
	display: none;
}
.auganix-rsvp-settings-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}
.auganix-rsvp-settings-title {
	font-weight: 700;
	color: var(--auganix-rsvp-focal);
}
.auganix-rsvp-settings-close {
	width: 36px !important;
	height: 36px !important;
	border-color: transparent !important;
	background: transparent !important;
	color: var(--auganix-rsvp-muted) !important;
}
.auganix-rsvp-settings-close svg {
	width: 18px !important;
	height: 18px !important;
}
.auganix-rsvp-settings-group {
	margin-top: 12px;
}
.auganix-rsvp-settings-label {
	font-size: 12px;
	color: var(--auganix-rsvp-muted);
	margin-bottom: 6px;
}
.auganix-rsvp-seg {
	display: flex;
	border: 1px solid var(--auganix-rsvp-line);
	border-radius: 6px;
	overflow: hidden;
}
.auganix-rsvp-seg-button {
	-webkit-appearance: none;
	appearance: none;
	flex: 1 1 0;
	margin: 0;
	padding: 0;
	min-height: 40px;
	border: 0;
	border-left: 1px solid var(--auganix-rsvp-line);
	background: transparent;
	color: var(--auganix-rsvp-fg);
	font: inherit;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
}
.auganix-rsvp-seg-button:first-child {
	border-left: 0;
}
.auganix-rsvp-seg-button[aria-checked="true"] {
	background: var(--auganix-rsvp-focal);
	color: var(--auganix-rsvp-on-focal);
	font-weight: 700;
}
.auganix-rsvp-seg-button:focus {
	outline: none;
}
.auganix-rsvp-seg-button:focus-visible {
	outline: 2px solid var(--auganix-rsvp-focal);
	outline-offset: -3px;
}
.auganix-rsvp-swatches {
	display: flex;
	gap: 8px;
}
.auganix-rsvp-swatch {
	-webkit-appearance: none;
	appearance: none;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 8px 4px 6px;
	border: 1px solid var(--auganix-rsvp-line);
	border-radius: 6px;
	background: transparent;
	color: var(--auganix-rsvp-fg);
	font: inherit;
	font-size: 11px;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
}
.auganix-rsvp-swatch[aria-checked="true"] {
	border-color: var(--auganix-rsvp-focal);
	box-shadow: inset 0 0 0 1px var(--auganix-rsvp-focal);
	font-weight: 700;
}
.auganix-rsvp-swatch:focus {
	outline: none;
}
.auganix-rsvp-swatch:focus-visible {
	outline: 2px solid var(--auganix-rsvp-focal);
	outline-offset: 2px;
}
.auganix-rsvp-swatch-dot {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.15);
}
.auganix-rsvp-swatch[data-focal="red"] .auganix-rsvp-swatch-dot { background: #e0243c; }
.auganix-rsvp-swatch[data-focal="blue"] .auganix-rsvp-swatch-dot { background: #0066cc; }
.auganix-rsvp-swatch[data-focal="green"] .auganix-rsvp-swatch-dot { background: #008f2a; }
.auganix-rsvp-root[data-theme="dark"] .auganix-rsvp-swatch[data-focal="red"] .auganix-rsvp-swatch-dot { background: #ff4d5e; }
.auganix-rsvp-root[data-theme="dark"] .auganix-rsvp-swatch[data-focal="blue"] .auganix-rsvp-swatch-dot { background: #4da3ff; }
.auganix-rsvp-root[data-theme="dark"] .auganix-rsvp-swatch[data-focal="green"] .auganix-rsvp-swatch-dot { background: #00ff41; }

/* Toggle switch */
.auganix-rsvp-switch {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	cursor: pointer;
}
.auganix-rsvp-switch-input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	opacity: 0;
}
.auganix-rsvp-switch-track {
	position: relative;
	flex: none;
	width: 44px;
	height: 26px;
	border-radius: 13px;
	background: var(--auganix-rsvp-track);
	transition: background-color 0.15s;
}
.auganix-rsvp-switch-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: transform 0.15s;
}
.auganix-rsvp-switch-input:checked + .auganix-rsvp-switch-track {
	background: var(--auganix-rsvp-focal);
}
.auganix-rsvp-switch-input:checked + .auganix-rsvp-switch-track::after {
	transform: translateX(18px);
}
.auganix-rsvp-switch-input:focus-visible + .auganix-rsvp-switch-track {
	outline: 2px solid var(--auganix-rsvp-focal);
	outline-offset: 2px;
}
.auganix-rsvp-settings-row {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 36px;
}
.auganix-rsvp-settings-row.auganix-rsvp-disabled {
	opacity: 0.55;
}
.auganix-rsvp-settings-sublabel {
	flex: none;
	font-size: 12px;
	color: var(--auganix-rsvp-muted);
}
.auganix-rsvp-settings-value {
	flex: none;
	min-width: 3.4em;
	text-align: right;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}
.auganix-rsvp-range-small::-webkit-slider-thumb {
	width: 22px;
	height: 22px;
	margin-top: -8px;
}
.auganix-rsvp-range-small::-moz-range-thumb {
	width: 18px;
	height: 18px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.auganix-rsvp-root *,
	.auganix-rsvp-launch-button {
		transition: none !important;
		animation: none !important;
	}
}
