.fbt-check {
	--fbt-accent: #d5532f;
	--fbt-accent-dark: #963b23;
	--fbt-accent-dark: color-mix(in srgb, var(--fbt-accent) 78%, #171d21);
	--fbt-ink: #172026;
	--fbt-muted: #5c6870;
	--fbt-line: #dbe1e4;
	--fbt-soft: #f3f6f6;
	--fbt-warm: #fbf6f2;
	--fbt-good: #26775d;
	--fbt-radius: 16px;
	color: var(--fbt-ink);
	font-size: 17px;
	line-height: 1.62;
	margin: 32px auto;
	max-width: 980px;
}

.fbt-check,
.fbt-check * {
	box-sizing: border-box;
}

.fbt-check [hidden] {
	display: none !important;
}

.fbt-check h2,
.fbt-check h3,
.fbt-check p,
.fbt-check ul,
.fbt-check ol {
	margin-top: 0;
}

.fbt-check h2,
.fbt-check h3,
.fbt-check legend {
	color: var(--fbt-ink);
	font-family: inherit;
	font-weight: 750;
	letter-spacing: -0.025em;
}

.fbt-check h2 {
	font-size: clamp(2rem, 5vw, 3.2rem);
	line-height: 1.08;
	margin-bottom: 18px;
}

.fbt-check h3 {
	font-size: 1.3rem;
	line-height: 1.25;
	margin-bottom: 10px;
}

.fbt-hero {
	background:
		radial-gradient(circle at 88% 15%, color-mix(in srgb, var(--fbt-accent) 15%, transparent), transparent 27%),
		linear-gradient(135deg, #f8faf9, #eef3f2);
	border: 1px solid var(--fbt-line);
	border-radius: 22px;
	padding: clamp(28px, 6vw, 58px);
	position: relative;
	overflow: hidden;
}

.fbt-eyebrow {
	color: var(--fbt-accent-dark);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.fbt-lead {
	color: var(--fbt-muted);
	font-size: 1.12rem;
	max-width: 720px;
}

.fbt-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 26px;
}

.fbt-facts span {
	background: #fff;
	border: 1px solid var(--fbt-line);
	border-radius: 999px;
	color: var(--fbt-muted);
	font-size: 0.84rem;
	font-weight: 650;
	padding: 7px 12px;
}

.fbt-progress {
	margin: 28px 4px 22px;
	scroll-margin-top: 32px;
}

.fbt-progress__track {
	background: #e9edef;
	border-radius: 999px;
	height: 7px;
	overflow: hidden;
}

.fbt-progress__bar {
	background: var(--fbt-accent);
	border-radius: inherit;
	display: block;
	height: 100%;
	transition: width 280ms ease;
	width: 20%;
}

.fbt-progress p {
	display: flex;
	font-size: 0.82rem;
	font-weight: 700;
	justify-content: space-between;
	margin: 7px 0 0;
}

.fbt-progress__name {
	color: var(--fbt-muted);
}

.fbt-form {
	background: #fff;
	border: 1px solid var(--fbt-line);
	border-radius: 22px;
	box-shadow: 0 16px 42px rgba(27, 41, 48, 0.07);
	padding: clamp(24px, 5vw, 48px);
}

.fbt-step {
	border: 0;
	display: none;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.fbt-step.is-active {
	display: block;
}

.fbt-step legend {
	display: block;
	float: left;
	font-size: clamp(1.6rem, 4vw, 2.25rem);
	line-height: 1.18;
	margin-bottom: 10px;
	padding: 0;
	width: 100%;
}

.fbt-step legend + * {
	clear: both;
}

.fbt-step__intro {
	color: var(--fbt-muted);
	font-size: 1.02rem;
	margin-bottom: 28px;
	max-width: 800px;
}

.fbt-grid {
	display: grid;
	gap: 22px;
}

.fbt-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fbt-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fbt-field {
	display: block;
	font-weight: 700;
	margin: 0;
}

.fbt-field > span {
	display: block;
	margin-bottom: 7px;
}

.fbt-field small {
	color: var(--fbt-muted);
	display: block;
	font-size: 0.78rem;
	font-weight: 500;
	margin-top: 5px;
}

.fbt-field input[type="number"],
.fbt-field input[type="text"] {
	appearance: textfield;
	background: #fff;
	border: 1.5px solid #aeb8bd;
	border-radius: 10px;
	box-shadow: none;
	color: var(--fbt-ink);
	font: inherit;
	font-size: 1rem;
	height: 50px;
	margin: 0;
	max-width: none;
	padding: 9px 12px;
	transition: border-color 150ms ease, box-shadow 150ms ease;
	width: 100%;
}

.fbt-field input:focus,
.fbt-choice-row input:focus + span,
.fbt-balance-options input:focus + span,
.fbt-route-options input:focus + span,
.fbt-confirm input:focus,
.fbt-skip input:focus {
	border-color: var(--fbt-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--fbt-accent) 22%, transparent);
	outline: 0;
}

.fbt-field input:disabled {
	background: #edf0f1;
	cursor: not-allowed;
	opacity: 0.65;
}

.fbt-field--compact {
	max-width: 370px;
}

.fbt-choice-row {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fbt-choice-row label,
.fbt-balance-options label {
	cursor: pointer;
	display: block;
	font-weight: 600;
	margin: 0;
	position: relative;
}

.fbt-choice-row input,
.fbt-balance-options input,
.fbt-route-options input {
	opacity: 0;
	pointer-events: none;
	position: absolute;
}

.fbt-choice-row label > span {
	align-items: center;
	background: var(--fbt-soft);
	border: 1.5px solid transparent;
	border-radius: 10px;
	display: flex;
	height: 50px;
	justify-content: center;
	padding: 8px 12px;
}

.fbt-choice-row input:checked + span,
.fbt-balance-options input:checked + span,
.fbt-route-options input:checked + span {
	background: color-mix(in srgb, var(--fbt-accent) 9%, #fff);
	border-color: var(--fbt-accent);
	color: var(--fbt-accent-dark);
}

.fbt-safety {
	background: var(--fbt-warm);
	border-left: 4px solid var(--fbt-accent);
	border-radius: 4px 12px 12px 4px;
	margin: 28px 0 20px;
	padding: 18px 20px;
}

.fbt-safety p {
	margin: 3px 0 0;
}

.fbt-safety--plain {
	border-left-color: #9aabae;
	color: var(--fbt-muted);
}

.fbt-confirm,
.fbt-skip {
	align-items: flex-start;
	cursor: pointer;
	display: flex;
	font-weight: 550;
	gap: 10px;
	margin: 0;
}

.fbt-confirm input,
.fbt-skip input {
	accent-color: var(--fbt-accent);
	flex: 0 0 auto;
	height: 19px;
	margin: 4px 0 0;
	width: 19px;
}

.fbt-skip {
	color: var(--fbt-muted);
	font-size: 0.9rem;
	margin-top: 18px;
}

.fbt-test-layout {
	align-items: center;
	background: var(--fbt-soft);
	border-radius: var(--fbt-radius);
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 1fr) 220px;
	margin-bottom: 26px;
	padding: clamp(20px, 4vw, 32px);
}

.fbt-instructions {
	margin: 0;
	padding-left: 1.3em;
}

.fbt-instructions li + li {
	margin-top: 8px;
}

.fbt-timer {
	align-items: center;
	background: #fff;
	border: 1px solid var(--fbt-line);
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	padding: 20px;
	text-align: center;
}

.fbt-timer__value {
	font-size: 3rem;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1;
}

.fbt-timer__unit {
	color: var(--fbt-muted);
	font-size: 0.8rem;
	margin: 3px 0 14px;
	text-transform: uppercase;
}

.fbt-timer.is-finished {
	animation: fbt-finished 380ms ease 2 alternate;
}

@keyframes fbt-finished {
	to { background: color-mix(in srgb, var(--fbt-accent) 18%, #fff); }
}

.fbt-assessment {
	border: 1px solid var(--fbt-line);
	border-radius: var(--fbt-radius);
	padding: clamp(20px, 4vw, 30px);
}

.fbt-assessment + .fbt-assessment {
	margin-top: 24px;
}

.fbt-assessment > p {
	color: var(--fbt-muted);
}

.fbt-balance-options {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fbt-balance-options label:last-child {
	grid-column: 1 / -1;
}

.fbt-balance-options label > span {
	background: var(--fbt-soft);
	border: 1.5px solid transparent;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	height: 100%;
	line-height: 1.35;
	min-height: 80px;
	padding: 14px;
}

.fbt-balance-options strong {
	margin-bottom: 4px;
}

.fbt-route-picker {
	border: 1px solid var(--fbt-line);
	border-radius: var(--fbt-radius);
	margin: 28px 0;
	padding: clamp(20px, 4vw, 30px);
}

.fbt-route-picker > p {
	color: var(--fbt-muted);
}

.fbt-route-options {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fbt-route-options label {
	cursor: pointer;
	display: block;
	margin: 0;
	position: relative;
}

.fbt-route-options label > span {
	background: var(--fbt-soft);
	border: 1.5px solid transparent;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	height: 100%;
	line-height: 1.35;
	min-height: 76px;
	padding: 14px 16px;
}

.fbt-route-options strong {
	font-size: 0.94rem;
	margin-bottom: 3px;
}

.fbt-route-options small {
	color: var(--fbt-muted);
	font-size: 0.78rem;
	font-weight: 500;
}

.fbt-route-options input:disabled + span {
	cursor: not-allowed;
	opacity: 0.55;
}

.fbt-route-guides {
	margin-top: 18px;
}

.fbt-route-guide {
	background: #f6f9f8;
	border: 1px solid color-mix(in srgb, var(--fbt-good) 28%, #fff);
	border-left: 4px solid var(--fbt-good);
	border-radius: 4px 12px 12px 4px;
	padding: 20px 22px;
}

.fbt-route-guide--caution {
	background: var(--fbt-warm);
	border-color: color-mix(in srgb, var(--fbt-accent) 30%, #fff);
	border-left-color: var(--fbt-accent);
}

.fbt-route-guide h3 {
	font-size: 1.12rem;
	margin-bottom: 10px;
}

.fbt-route-guide ol {
	margin-bottom: 14px;
	padding-left: 1.3em;
}

.fbt-route-guide li + li {
	margin-top: 6px;
}

.fbt-route-guide p:last-child {
	margin-bottom: 0;
}

.fbt-input-unit,
.fbt-time-inputs {
	align-items: center;
	display: flex;
	gap: 7px;
}

.fbt-input-unit {
	border: 1.5px solid #aeb8bd;
	border-radius: 10px;
	overflow: hidden;
}

.fbt-input-unit input[type="number"] {
	border: 0;
	border-radius: 0;
}

.fbt-input-unit > span {
	color: var(--fbt-muted);
	font-size: 0.86rem;
	padding-right: 12px;
}

.fbt-time-inputs input[type="number"] {
	text-align: center;
}

.fbt-form-error {
	background: #fff0ed;
	border: 1px solid #db6c58;
	border-radius: 10px;
	color: #772818;
	font-weight: 650;
	margin-bottom: 22px;
	padding: 13px 16px;
}

.fbt-navigation,
.fbt-result-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 34px;
}

.fbt-button,
.fbt-check a.fbt-button {
	align-items: center;
	appearance: none;
	background: var(--fbt-accent);
	border: 1px solid var(--fbt-accent);
	border-radius: 9px;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 0.94rem;
	font-weight: 750;
	justify-content: center;
	line-height: 1.2;
	min-height: 46px;
	padding: 11px 18px;
	text-decoration: none;
	transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.fbt-button:hover,
.fbt-button:focus,
.fbt-check a.fbt-button:hover,
.fbt-check a.fbt-button:focus {
	background: var(--fbt-accent-dark);
	border-color: var(--fbt-accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

.fbt-button:focus-visible {
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--fbt-accent) 25%, transparent);
	outline: 0;
}

.fbt-button--secondary,
.fbt-check a.fbt-button--secondary {
	background: #fff;
	border-color: #aeb8bd;
	color: var(--fbt-ink);
}

.fbt-button--secondary:hover,
.fbt-button--secondary:focus {
	background: var(--fbt-soft);
	border-color: #7d8a90;
	color: var(--fbt-ink);
}

.fbt-results {
	scroll-margin-top: 28px;
}

.fbt-result-head {
	background: linear-gradient(135deg, #f7faf9, #eef4f2);
	border: 1px solid var(--fbt-line);
	border-radius: 22px 22px 0 0;
	padding: clamp(28px, 6vw, 52px);
}

.fbt-result-summary {
	color: var(--fbt-muted);
	font-size: 1.05rem;
	margin-bottom: 0;
	max-width: 740px;
}

.fbt-score-card {
	align-items: center;
	background: var(--fbt-ink);
	color: #fff;
	display: grid;
	gap: 24px;
	grid-template-columns: 145px 1fr;
	padding: clamp(24px, 5vw, 38px);
}

.fbt-overall {
	align-items: center;
	border: 2px solid color-mix(in srgb, var(--fbt-accent) 70%, #fff);
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	height: 125px;
	justify-content: center;
	width: 125px;
}

.fbt-overall__value {
	font-size: 2.7rem;
	font-weight: 850;
	line-height: 1;
}

.fbt-overall__unit {
	font-size: 0.74rem;
	opacity: 0.72;
}

.fbt-overall__label {
	display: block;
	font-size: 1.35rem;
	line-height: 1.3;
	margin-bottom: 6px;
}

.fbt-score-card p {
	color: #c8d0d3;
	font-size: 0.92rem;
	margin-bottom: 0;
}

.fbt-profile {
	border: 1px solid var(--fbt-line);
	border-top: 0;
	display: grid;
	gap: 22px;
	padding: clamp(24px, 5vw, 42px);
}

.fbt-profile-row__head {
	display: flex;
	font-size: 0.94rem;
	justify-content: space-between;
	margin-bottom: 7px;
}

.fbt-profile-row__track {
	background: #e9edef;
	border-radius: 999px;
	height: 12px;
	overflow: hidden;
}

.fbt-profile-row__bar {
	background: linear-gradient(90deg, var(--fbt-accent-dark), var(--fbt-accent));
	border-radius: inherit;
	display: block;
	height: 100%;
}

.fbt-profile-row small {
	color: var(--fbt-muted);
	display: block;
	font-size: 0.78rem;
	margin-top: 5px;
}

.fbt-priority {
	background: var(--fbt-warm);
	border: 1px solid color-mix(in srgb, var(--fbt-accent) 35%, #fff);
	border-radius: var(--fbt-radius);
	margin: 28px 0;
	padding: clamp(24px, 5vw, 38px);
}

.fbt-priority h3 {
	font-size: clamp(1.45rem, 4vw, 2rem);
	max-width: 720px;
}

.fbt-priority > p:not(.fbt-eyebrow) {
	color: var(--fbt-muted);
	max-width: 760px;
}

.fbt-priority .fbt-button + .fbt-button {
	margin-left: 8px;
}

.fbt-details {
	display: grid;
	gap: 18px;
}

.fbt-detail-card {
	border: 1px solid var(--fbt-line);
	border-radius: var(--fbt-radius);
	padding: clamp(22px, 4vw, 32px);
}

.fbt-detail-card h3 {
	display: inline-block;
	margin-right: 10px;
}

.fbt-detail-card__badge {
	background: #e9f4ef;
	border-radius: 999px;
	color: var(--fbt-good);
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 750;
	padding: 4px 9px;
	vertical-align: 2px;
}

.fbt-detail-card__value {
	display: block;
	font-size: 1.05rem;
	margin-bottom: 8px;
}

.fbt-detail-card p {
	color: var(--fbt-muted);
}

.fbt-detail-card__action {
	background: var(--fbt-soft);
	border-radius: 9px;
	margin-bottom: 0;
	padding: 14px 16px;
}

.fbt-methodology {
	border-top: 1px solid var(--fbt-line);
	color: var(--fbt-muted);
	font-size: 0.87rem;
	margin-top: 36px;
	padding-top: 26px;
}

.fbt-methodology h3 {
	font-size: 1.2rem;
}

.fbt-source-list {
	padding-left: 1.25em;
}

.fbt-source-list li + li {
	margin-top: 5px;
}

.fbt-source-list a {
	color: var(--fbt-accent-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fbt-disclaimer {
	background: var(--fbt-soft);
	border-radius: 10px;
	margin-bottom: 0;
	padding: 16px;
}

@media (max-width: 760px) {
	.fbt-check {
		font-size: 16px;
		margin: 20px auto;
	}

	.fbt-grid--2,
	.fbt-grid--3,
	.fbt-test-layout,
	.fbt-score-card {
		grid-template-columns: 1fr;
	}

	.fbt-timer {
		max-width: 240px;
	}

	.fbt-balance-options {
		grid-template-columns: 1fr;
	}

	.fbt-route-options {
		grid-template-columns: 1fr;
	}

	.fbt-balance-options label:last-child {
		grid-column: auto;
	}

	.fbt-overall {
		height: 108px;
		width: 108px;
	}
}

@media (max-width: 480px) {
	.fbt-choice-row {
		grid-template-columns: 1fr;
	}

	.fbt-navigation,
	.fbt-result-actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.fbt-button,
	.fbt-check a.fbt-button {
		width: 100%;
	}

	.fbt-priority .fbt-button + .fbt-button {
		margin-left: 0;
		margin-top: 9px;
	}
}

@media print {
	body * {
		visibility: hidden !important;
	}

	.fbt-check .fbt-results,
	.fbt-check .fbt-results * {
		visibility: visible !important;
	}

	.fbt-check .fbt-results {
		left: 0;
		position: absolute;
		top: 0;
		width: 100%;
	}

	.fbt-result-actions,
	.fbt-priority .fbt-button {
		display: none !important;
	}

	.fbt-result-head,
	.fbt-score-card,
	.fbt-profile,
	.fbt-priority,
	.fbt-detail-card {
		break-inside: avoid;
		box-shadow: none;
	}

	.fbt-score-card {
		background: #fff;
		border: 1px solid #999;
		color: #000;
	}

	.fbt-score-card p {
		color: #333;
	}
}
