.mro-timer {
	--timer-navy: #00003d;
	--timer-panel: #143272;
	--timer-button-blue: #5194ed;
	--timer-button-blue-dark: #1e4173;
	--timer-button-border: #9fc9ff;
	--timer-start-red: #9d454d;
	--timer-text: #eee;
	--timer-muted: #c2d2ef;
	--timer-control-height: 44px;
	--timer-form-gap: 16px;
	--timer-field-gap: 8px;
	--timer-paragraph-gap: 14px;
	max-width: 600px;
	margin: 0 auto;
	color: var(--timer-text);
}

.mro-timer [hidden] { display: none !important; }
.mro-timer form,
.mro-timer fieldset { margin: 0; }
.mro-timer .mro-timer-config { display: grid; gap: var(--timer-form-gap); }
.mro-timer fieldset { border: 0; padding: 0; min-width: 0; }
.mro-timer legend { margin-bottom: var(--timer-field-gap); padding: 0; }
.mro-timer legend,
.mro-timer label,
.mro-timer summary { font-weight: 600; }
.mro-timer :is(legend, .mro-timer-field > label, .mro-timer-audio-settings > label, .mro-timer-prep-label > label, .mro-timer-check, .mro-timer-presets-hint) {
	color: #c6c8d2;
	font-size: .875em;
}

.mro-timer :is(.mro-timer-choices, .mro-timer-row) { display: flex; align-items: center; gap: 8px; }
.mro-timer .mro-timer-choices { position: relative; flex-wrap: wrap; }
.mro-timer .mro-timer-durations {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	align-items: stretch;
}
.mro-timer .mro-timer-durations label { padding-inline: 4px; }
.mro-timer .mro-timer-choices input,
.mro-timer .mro-timer-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.mro-timer button,
.mro-timer .mro-timer-choices label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--timer-control-height);
	margin: 0;
	padding: 7px 12px;
	border: 1px solid transparent;
	border-radius: 3px;
	font: inherit;
	font-size: .875em;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
}

.mro-timer :is(.mro-timer-choices label, .mro-timer-primary) { color: var(--timer-navy); background: var(--timer-button-blue); }
.mro-timer .mro-timer-choices label { border-width: 2px; }
.mro-timer :is(.mro-timer-choices label, select, input[name="customMinutes"]),
.mro-timer .mro-timer-presets :is(input[type="text"], button) {
	box-sizing: border-box;
	block-size: var(--timer-control-height);
	padding-block: 0;
}
.mro-timer :is(.mro-timer-choices input:checked + label, .mro-timer-secondary) {
	color: #fff;
	background: var(--timer-button-blue-dark);
	border-color: var(--timer-button-border);
}
.mro-timer :is([data-preview], [data-soundscape-preview]) { flex: 0 0 var(--timer-control-height); padding: 0; }
.mro-timer [data-pause] { inline-size: 8em; }
.mro-timer .mro-timer-preview-icon {
	display: block;
	border-block: 7px solid transparent;
	border-inline-start: 11px solid currentColor;
}
.mro-timer [data-preview-state="playing"] .mro-timer-preview-icon {
	width: 12px;
	height: 12px;
	border: 0;
	background: currentColor;
}
.mro-timer :is(button:not(:disabled), .mro-timer-choices label):hover { filter: brightness(1.15); }
.mro-timer :disabled { opacity: .6; cursor: default; }
.mro-timer :focus-visible,
.mro-timer .mro-timer-choices input:focus-visible + label { outline: 2px solid #fef4bc; outline-offset: 3px; }

.mro-timer .mro-timer-settings {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: var(--timer-form-gap);
}
.mro-timer .mro-timer-audio-settings { row-gap: var(--timer-field-gap); }
.mro-timer .mro-timer-audio-settings > label { grid-column: 1 / -1; }
.mro-timer .mro-timer-prep-label { display: flex; align-items: center; gap: 6px; }
.mro-timer .mro-timer-prep-help { display: inline-flex; position: relative; }
.mro-timer .mro-timer-help-button {
	width: 20px;
	min-height: 20px;
	padding: 0;
	border-color: var(--timer-button-border);
	border-radius: 50%;
	background: transparent;
	color: var(--timer-button-border);
	font-size: .75em;
}
.mro-timer #mro-timer-prep-hint {
	position: absolute;
	z-index: 1;
	top: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
	max-width: min(200px, 60vw);
	padding: 8px 10px;
	border: 1px solid #6587bf;
	border-radius: 4px;
	background: var(--timer-panel);
	box-shadow: 0 4px 12px rgb(0 0 0 / 35%);
}
.mro-timer .mro-timer-time-preview {
	padding: 16px;
	border-radius: 5px;
	background: rgb(255 255 255 / 7%);
}
.mro-timer .mro-timer-time-preview p { margin: 0; }
.mro-timer [data-preview-duration] {
	font-size: 1.5em;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.mro-timer [data-preview-settings] { color: var(--timer-muted); font-size: .8em; }

.mro-timer .mro-timer-field { display: grid; gap: var(--timer-field-gap); min-width: 0; }
.mro-timer .mro-timer-custom .mro-timer-field {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	width: min(100%, 140px);
}
.mro-timer :is(select, input[type="text"], input[type="number"]) {
	appearance: auto;
	color-scheme: dark;
	width: 100%;
	min-width: 0;
	min-height: var(--timer-control-height);
	padding-inline: 9px;
	border: 1px solid #6587bf;
	border-radius: 3px;
	background: #0c205b;
	color: var(--timer-text);
	font: inherit;
}

.mro-timer input[name="customMinutes"]:focus { background-color: #343844; }
.mro-timer .mro-timer-row > :is(select, input) { flex: 1; }
.mro-timer .mro-timer-volume {
	--timer-thumb-size: 16px;
	--timer-slider-accent: #7aafff;
	--timer-slider-track: #3a3c51;
	--timer-volume-position: calc(var(--timer-thumb-size) / 2 + (100% - var(--timer-thumb-size)) * var(--timer-volume-ratio, .7));
	position: relative;
	direction: ltr;
}
.mro-timer .mro-timer-volume::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: calc(var(--timer-control-height) / 2 - 4px);
	height: 8px;
	border-radius: 8px;
	background: linear-gradient(to right, var(--timer-slider-accent) var(--timer-volume-position), var(--timer-slider-track) var(--timer-volume-position));
	pointer-events: none;
}
.mro-timer .mro-timer-volume input[type="range"] {
	position: relative;
	display: block;
	appearance: none;
	box-sizing: border-box;
	width: 100%;
	height: var(--timer-control-height);
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.mro-timer .mro-timer-volume input::-webkit-slider-runnable-track { height: var(--timer-thumb-size); background: transparent; }
.mro-timer .mro-timer-volume input::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: var(--timer-thumb-size);
	height: var(--timer-thumb-size);
	border-radius: 50%;
	background: var(--timer-slider-accent);
}
.mro-timer .mro-timer-volume input::-moz-range-track { background: transparent; }
.mro-timer .mro-timer-volume input::-moz-range-thumb {
	width: var(--timer-thumb-size);
	height: var(--timer-thumb-size);
	border: 0;
	border-radius: 50%;
	background: var(--timer-slider-accent);
}
.mro-timer .mro-timer-volume-value {
	position: absolute;
	left: var(--timer-volume-position);
	top: calc(var(--timer-control-height) / 2 + var(--timer-thumb-size) / 2 + 3px);
	transform: translateX(-50%);
	color: var(--timer-muted);
	font-size: .6875rem;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	pointer-events: none;
}
.mro-timer input[type="checkbox"] { accent-color: #7aafff; }
.mro-timer .mro-timer-check { display: flex; gap: 7px; align-items: center; min-height: var(--timer-control-height); margin: 0; }
.mro-timer small,
.mro-timer .mro-timer-account,
.mro-timer .mro-timer-context,
.mro-timer .mro-timer-message { color: var(--timer-muted); font-size: .875em; font-weight: 400; }

.mro-timer details { border-top: 1px solid transparent; }
.mro-timer .mro-timer-custom { border: 0; margin-top: 8px; }
.mro-timer details > summary {
	display: flex;
	align-items: center;
	gap: 10px;
	list-style: none;
	min-height: var(--timer-control-height);
	padding: 10px 0;
	cursor: pointer;
}
.mro-timer details > summary::-webkit-details-marker { display: none; }
.mro-timer details > summary::before {
	content: "";
	width: 8px;
	height: 8px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(-45deg);
}
.mro-timer details[open] > summary::before { transform: rotate(45deg); }
.mro-timer :is(.mro-timer-custom, .mro-timer-presets) > summary {
	display: inline-flex;
	padding-block-end: 0;
	color: #9ec6ff;
	font-size: .875em;
	font-weight: 400;
}
.mro-timer :is(.mro-timer-custom, .mro-timer-presets) > summary::before { content: none; }
.mro-timer :is(.mro-timer-custom, .mro-timer-presets) > summary:hover { text-decoration: underline; }
.mro-timer .mro-timer-presets > summary > span:last-child {
	display: inline-flex;
	align-items: center;
	gap: .25em;
}
.mro-timer .mro-timer-presets[open] { padding-bottom: 20px; }
.mro-timer details p { margin: 0 0 8px; }
.mro-timer .mro-timer-note { color: var(--timer-muted); margin: 0; }
.mro-timer .mro-timer-presets { margin-bottom: 16px; }
.mro-timer .mro-timer-presets .mro-timer-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) min(13rem, 45%);
}
.mro-timer .mro-timer-presets form { margin-top: 8px; }
.mro-timer .mro-timer-start {
	display: flex;
	justify-content: center;
	padding-block: 20px 16px;
}
.mro-timer .mro-timer-start button {
	color: #fff;
	background: var(--timer-start-red);
	font-size: 1.125em;
	padding: 14px 30px;
}
.mro-timer > p { margin: var(--timer-paragraph-gap) 0 0; }
.mro-timer .mro-timer-account { padding: 16px 20px; }
.logged-in .mro-timer > .mro-timer-feedback,
.mro-timer .mro-timer-account:not([hidden]) ~ .mro-timer-feedback {
	margin-top: calc(20px + var(--timer-paragraph-gap));
}
.mro-timer a { color: #9ec6ff; text-decoration: underline; }

.mro-timer .mro-timer-dialog {
	box-sizing: border-box;
	width: min(600px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	margin: auto;
	border: 0;
	border-radius: 5px;
	padding: 0;
	background: var(--timer-panel);
	color: inherit;
}
.mro-timer .mro-timer-dialog::backdrop {
	background: rgb(0 0 30 / 55%);
	backdrop-filter: blur(7px);
}
.mro-timer .mro-timer-active { padding: clamp(16px, 5vw, 40px); }
.mro-timer .mro-timer-state { font-size: 1.3em; margin: 0; }
.mro-timer .mro-timer-context { margin: 5px 0 0; }
.mro-timer .mro-timer-clock {
	font: 400 clamp(42px, 13vw, 106px)/1.16 "Courier New", Courier, monospace;
	font-variant-numeric: tabular-nums;
	margin: 12px 0 16px;
}
.mro-timer .mro-timer-clock[data-loading-soundscape] { position: relative; visibility: hidden; }

.mro-timer .mro-timer-session-actions { justify-content: center; flex-wrap: wrap; }
.mro-timer .mro-timer-message { margin: 8px 0 0; }
.mro-timer .mro-timer-message:empty { margin: 0; }
.mro-timer .mro-timer-field .mro-timer-message { margin: 0; }
.mro-timer .mro-timer-field .mro-timer-message:empty { position: absolute; }
.mro-timer [data-preset-message][data-processing] {
	display: flex;
	align-items: center;
	gap: 8px;
}
.mro-timer [data-preset-count][data-processing] {
	display: inline-flex;
	align-items: center;
	font-size: 0;
}
.mro-timer [data-preset-count][data-processing]::after {
	margin-inline-start: 4px;
	font-size: .75rem;
}
.mro-timer [data-preset-message][data-processing]::before,
.mro-timer [data-preset-count][data-processing]::after,
.mro-timer .mro-timer-clock[data-loading-soundscape]::after { content: ""; }
.mro-timer [data-preset-message][data-processing]::before,
.mro-timer [data-preset-count][data-processing]::after,
.mro-timer [data-preview-state="loading"] .mro-timer-preview-icon,
.mro-timer .mro-timer-clock[data-loading-soundscape]::after {
	box-sizing: border-box;
	width: 1em;
	height: 1em;
	border: 2px solid currentColor;
	border-inline-end-color: transparent;
	border-radius: 50%;
	animation: mro-timer-spin .8s linear infinite;
}
.mro-timer .mro-timer-clock[data-loading-soundscape]::after {
	position: absolute;
	inset: 0;
	width: 44px;
	height: 44px;
	margin: auto;
	visibility: visible;
}
@keyframes mro-timer-spin {
	to { transform: rotate(1turn); }
}
.mro-timer .mro-timer-active:is(:fullscreen, .is-expanded) {
	display: grid;
	align-content: center;
	background: var(--timer-navy);
	overflow: auto;
}

.mro-timer .mro-timer-dialog:has(.is-expanded) {
	width: 100%;
	max-width: none;
	max-height: none;
	border-radius: 0;
}
.mro-timer .mro-timer-active.is-expanded {
	box-sizing: border-box;
	min-height: 100dvh;
}

@media (max-width: 560px) {
	.mro-timer .mro-timer-durations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mro-timer .mro-timer-settings { grid-template-columns: 1fr; }
	.mro-timer .mro-timer-presets .mro-timer-row { grid-template-columns: minmax(0, 1fr); }
}

@media (forced-colors: active) {
	.mro-timer .mro-timer-volume { --timer-slider-accent: Highlight; --timer-slider-track: GrayText; }
	.mro-timer .mro-timer-volume::before { forced-color-adjust: none; }
	.mro-timer .mro-timer-volume input::-webkit-slider-thumb { forced-color-adjust: none; }
	.mro-timer .mro-timer-volume input::-moz-range-thumb { forced-color-adjust: none; }
}

@media (prefers-reduced-motion: reduce) {
	.mro-timer :is(button, .mro-timer-choices label) { transition: none; }
	.mro-timer [data-preset-message][data-processing]::before,
	.mro-timer [data-preset-count][data-processing]::after,
	.mro-timer [data-preview-state="loading"] .mro-timer-preview-icon,
	.mro-timer .mro-timer-clock[data-loading-soundscape]::after { animation: none; }
}
