/**
 * Clean My Speaker — simplified cleaner styles.
 * One question, one round button, extras folded away. The card always
 * renders light because it sits on the dark hero.
 */

.fsc {
	--fsc-accent: #12909e;
	--fsc-accent-deep: #0b6e78;
	--fsc-accent-soft: #e3f4f5;
	--fsc-accent-line: #9ecfd4;
	--fsc-amber: #b4720f;
	--fsc-amber-soft: #fdf4e7;
	--fsc-ink: #0d1618;
	--fsc-ink-2: #445b60;
	--fsc-ink-3: #6f878c;
	--fsc-surface: #ffffff;
	--fsc-tint: #f1f7f7;
	--fsc-track: #e6edee;
	--fsc-line: #dde6e7;
	--fsc-progress: 0;

	background: var(--fsc-surface);
	color: var(--fsc-ink);
	border-radius: 22px;
	padding: 22px 20px 16px;
	max-width: 440px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-align: center;
	box-shadow:
		0 1px 2px rgba(7, 26, 31, 0.08),
		0 18px 40px -18px rgba(7, 26, 31, 0.55);
}

.fsc [hidden] {
	display: none !important;
}

.fsc .fms-ico {
	width: 22px;
	height: 22px;
	flex: none;
}

/* GeneratePress paints every <button> on hover/focus with a dark slab at
   (0,1,1). Controls here are scoped one class deeper so they outrank it. */

/* --- the one question ------------------------------------------------ */

.fsc__q {
	margin: 0;
	font-size: 1rem;
	font-weight: 650;
	color: var(--fsc-ink);
}

.fsc__choices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: -4px;
}

.fsc .fsc__choice {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-height: 88px;
	padding: 14px 8px 12px;
	font: inherit;
	border: 1.5px solid var(--fsc-line);
	border-radius: 16px;
	background: #f7fafa;
	color: var(--fsc-ink-2);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.fsc__choice .fms-ico {
	width: 26px;
	height: 26px;
	margin-bottom: 2px;
}

.fsc__choice-name {
	font-size: 0.95rem;
	font-weight: 650;
	line-height: 1.2;
}

.fsc__choice-time {
	font-size: 0.76rem;
	color: var(--fsc-ink-3);
}

@media (hover: hover) {
	.fsc .fsc__choice:hover:not(:disabled) {
		background: var(--fsc-tint);
		border-color: var(--fsc-accent-line);
		color: var(--fsc-ink);
	}
}

.fsc .fsc__choice[aria-checked="true"] {
	background: var(--fsc-accent-soft);
	border-color: var(--fsc-accent);
	color: var(--fsc-accent-deep);
}

.fsc .fsc__choice[aria-checked="true"] .fsc__choice-time {
	color: var(--fsc-accent-deep);
}

.fsc__choice:active:not(:disabled) {
	transform: scale(0.98);
}

.fsc .fsc__choice:disabled {
	cursor: default;
	opacity: 0.55;
}

/* Deep clean overrides both choices, so they step back and say so. */
.fsc.is-deep .fsc__choices {
	opacity: 0.45;
}

.fsc__choice:focus-visible,
.fsc__go:focus-visible,
.fsc__ack:focus-visible,
.fsc__seg button:focus-visible,
.fsc__share:focus-visible,
.fsc__more summary:focus-visible,
.fsc__hist-clear:focus-visible {
	outline: 3px solid rgba(18, 144, 158, 0.55);
	outline-offset: 2px;
}

/* --- the button ------------------------------------------------------- */

.fsc__stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.fsc .fsc__go {
	position: relative;
	width: 176px;
	height: 176px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	font: inherit;
	color: #ffffff;
	background-color: var(--fsc-accent-deep);
	background-image: radial-gradient(circle at 50% 30%, #18adbd 0%, var(--fsc-accent-deep) 72%);
	box-shadow:
		0 10px 26px -12px rgba(11, 110, 120, 0.95),
		inset 0 0 0 10px #ffffff;
	cursor: pointer;
	transition: transform 0.1s ease, box-shadow 0.15s ease, background-image 0.15s ease;
}

@media (hover: hover) {
	.fsc .fsc__go:hover {
		background-color: var(--fsc-accent-deep);
		background-image: radial-gradient(circle at 50% 30%, #1bb8c9 0%, #0a636d 72%);
		color: #ffffff;
	}
}

.fsc .fsc__go:focus {
	background-color: var(--fsc-accent-deep);
	color: #ffffff;
}

.fsc__go:active {
	transform: scale(0.97);
}

/* A teal ring on a teal button is invisible, so this one focuses dark. */
.fsc__go:focus-visible {
	outline-color: var(--fsc-ink);
}

.fsc__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
	pointer-events: none;
}

.fsc__ring-track,
.fsc__ring-fill {
	fill: none;
	stroke-width: 7;
}

.fsc__ring-track {
	stroke: var(--fsc-track);
}

.fsc__ring-fill {
	stroke: var(--fsc-accent);
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: calc(100 - var(--fsc-progress));
	opacity: 0;
	transition: opacity 0.2s ease;
}

.fsc[data-fsc-running] .fsc__ring-fill {
	opacity: 1;
}

.fsc__go-main {
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.fsc__go-sub {
	font-size: 0.8rem;
	font-weight: 500;
	opacity: 0.85;
	max-width: 120px;
	line-height: 1.3;
}

/* "Run again" is longer than "Start", so it steps down to fit the circle. */
.fsc.is-finished .fsc__go-main {
	font-size: 1.35rem;
}

/* While a cycle runs the button turns calm and shows the countdown. */
.fsc[data-fsc-running] .fsc__go {
	background-image: none;
	background-color: #ffffff;
	color: var(--fsc-ink);
	box-shadow: 0 6px 20px -12px rgba(7, 26, 31, 0.5);
}

.fsc[data-fsc-running] .fsc__go:hover,
.fsc[data-fsc-running] .fsc__go:focus {
	background-image: none;
	background-color: #ffffff;
	color: var(--fsc-ink);
}

.fsc[data-fsc-running] .fsc__go-sub {
	color: var(--fsc-ink-3);
	opacity: 1;
}

/* The scope only exists while something plays. */
.fsc__viz {
	display: none;
	width: 100%;
	max-width: 320px;
	height: 44px;
}

.fsc[data-fsc-running] .fsc__viz {
	display: block;
}

.fsc__status {
	margin: -4px auto 0;
	max-width: 34ch;
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--fsc-ink-2);
	min-height: 3em;
}

/* --- safety, shown once ---------------------------------------------- */

.fsc__safety {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 18px 16px;
	border-radius: 16px;
	background: var(--fsc-amber-soft);
	border: 1px solid #f0d6ab;
	color: #7c4e08;
}

.fsc__safety .fms-ico {
	width: 30px;
	height: 30px;
	color: var(--fsc-amber);
}

.fsc__safety p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
}

.fsc .fsc__ack {
	font: inherit;
	font-size: 1rem;
	font-weight: 650;
	min-height: 50px;
	min-width: 180px;
	padding: 12px 24px;
	border-radius: 999px;
	border: 0;
	background: var(--fsc-accent-deep);
	color: #ffffff;
	cursor: pointer;
}

.fsc .fsc__ack:hover,
.fsc .fsc__ack:focus {
	background: #0a636d;
	color: #ffffff;
}

/* --- result ----------------------------------------------------------- */

.fsc__result {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--fsc-accent-soft);
	border: 1px solid var(--fsc-accent-line);
}

.fsc__result p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--fsc-ink);
}

.fsc__ask {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	width: 100%;
}

.fsc .fsc__answer {
	font: inherit;
	font-size: 0.92rem;
	font-weight: 650;
	min-height: 48px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1.5px solid var(--fsc-accent-line);
	background: #ffffff;
	color: var(--fsc-accent-deep);
	cursor: pointer;
}

.fsc .fsc__answer:hover,
.fsc .fsc__answer:focus {
	background: var(--fsc-tint);
	border-color: var(--fsc-accent);
	color: var(--fsc-accent-deep);
}

.fsc .fsc__answer--deep {
	width: 100%;
	background: var(--fsc-accent-deep);
	border-color: var(--fsc-accent-deep);
	color: #ffffff;
}

.fsc .fsc__answer--deep:hover,
.fsc .fsc__answer--deep:focus {
	background: #0a636d;
	color: #ffffff;
}

.fsc__answer:focus-visible {
	outline: 3px solid rgba(18, 144, 158, 0.55);
	outline-offset: 2px;
}

.fsc .fsc__share {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--fsc-accent-line);
	background: #ffffff;
	color: var(--fsc-accent-deep);
	cursor: pointer;
}

.fsc .fsc__share:hover,
.fsc .fsc__share:focus {
	background: var(--fsc-tint);
	color: var(--fsc-accent-deep);
}

.fsc__share .fms-ico {
	width: 15px;
	height: 15px;
}

/* --- more options ----------------------------------------------------- */

.fsc__more {
	border-top: 1px solid var(--fsc-line);
	padding-top: 4px;
	text-align: left;
}

.fsc__more summary {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--fsc-ink-2);
	cursor: pointer;
	border-radius: 10px;
}

.fsc__more summary::-webkit-details-marker {
	display: none;
}

.fsc__more summary::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s ease;
}

.fsc__more[open] summary::after {
	transform: translateY(2px) rotate(-135deg);
}

.fsc__more summary:hover {
	color: var(--fsc-ink);
}

.fsc__opts {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 4px 0 6px;
}

.fsc__opt {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 4px;
	border-bottom: 1px solid var(--fsc-track);
	cursor: pointer;
}

.fsc__opt input[type="checkbox"] {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	accent-color: var(--fsc-accent-deep);
	cursor: pointer;
}

.fsc__opt-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 auto;
}

.fsc__opt-text strong {
	font-size: 0.9rem;
	font-weight: 650;
	color: var(--fsc-ink);
}

.fsc__opt-text small {
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--fsc-ink-3);
}

.fsc__opt.is-off {
	cursor: default;
}

.fsc__opt.is-off strong {
	color: var(--fsc-ink-3);
}

.fsc__opt--side {
	flex-wrap: wrap;
	align-items: center;
	cursor: default;
}

.fsc__seg {
	display: inline-grid;
	grid-template-columns: repeat(3, auto);
	gap: 2px;
	padding: 3px;
	border-radius: 11px;
	background: var(--fsc-track);
}

.fsc .fsc__seg button {
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	min-height: 38px;
	padding: 6px 14px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--fsc-ink-2);
	cursor: pointer;
}

.fsc .fsc__seg button:hover,
.fsc .fsc__seg button:focus {
	background: rgba(255, 255, 255, 0.6);
	color: var(--fsc-ink);
}

.fsc .fsc__seg button[aria-checked="true"] {
	background: #ffffff;
	color: var(--fsc-accent-deep);
	box-shadow: 0 1px 3px rgba(7, 26, 31, 0.15);
}

/* --- history ---------------------------------------------------------- */

.fsc__hist {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 4px 4px;
}

.fsc__hist-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 0.85rem;
}

.fsc .fsc__hist-clear {
	font: inherit;
	font-size: 0.78rem;
	color: var(--fsc-ink-3);
	background: none;
	border: 0;
	padding: 4px 2px;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.fsc .fsc__hist-clear:hover,
.fsc .fsc__hist-clear:focus {
	background: none;
	color: var(--fsc-ink-2);
}

.fsc__hist small {
	font-size: 0.76rem;
	line-height: 1.45;
	color: var(--fsc-ink-3);
}

.fsc__hist svg {
	display: block;
	width: 100%;
	height: auto;
}

.fsc__bar { fill: var(--fsc-accent-deep); }
.fsc__bar--latest { fill: var(--fsc-accent); }
.fsc__base { stroke: var(--fsc-line); stroke-width: 1; }
.fsc__lbl { fill: var(--fsc-ink-3); font-size: 9px; font-family: inherit; }
.fsc__val { fill: var(--fsc-ink); font-size: 10px; font-weight: 700; font-family: inherit; }

.fsc__more-link {
	margin: 10px 0 0;
	text-align: center;
	font-size: 0.85rem;
}

.fsc__more-link a {
	color: var(--fsc-accent-deep);
	font-weight: 600;
	text-underline-offset: 3px;
}

@media (max-width: 380px) {
	.fsc {
		padding: 18px 14px 12px;
		border-radius: 18px;
	}
	.fsc .fsc__go {
		width: 156px;
		height: 156px;
	}
	.fsc__choice-name {
		font-size: 0.88rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fsc *,
	.fsc *::after {
		transition: none !important;
	}
	.fsc__go:active,
	.fsc__choice:active:not(:disabled) {
		transform: none;
	}
}
