.fcfdfake{display:none}
.fcfdc-calculator,
.fcfdc-calculator * {
	box-sizing: border-box;
}

.fcfdc-calculator {
	--fcfdc-bg: #f8fafc;
	--fcfdc-panel: #ffffff;
	--fcfdc-soft: #f1f5f9;
	--fcfdc-text: #334155;
	--fcfdc-strong: #0f172a;
	--fcfdc-muted: #667085;
	--fcfdc-border: #d9dee7;
	--fcfdc-border-strong: #111827;
	--fcfdc-accent: #374151;
	--fcfdc-accent-hover: #111827;
	--fcfdc-green: #14753f;
	--fcfdc-danger: #9b1c1c;
	--fcfdc-danger-bg: #fff1f2;
	--fcfdc-focus: #6b7280;
	--fcfdc-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	color: var(--fcfdc-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	line-height: 1.5;
	overflow-x: hidden;
}

.fcfdc-calculator[data-theme="dark"] {
	--fcfdc-bg: #101827;
	--fcfdc-panel: #172033;
	--fcfdc-soft: #202b40;
	--fcfdc-text: #d8dee9;
	--fcfdc-strong: #f8fafc;
	--fcfdc-muted: #a7b0c0;
	--fcfdc-border: #334155;
	--fcfdc-border-strong: #e5e7eb;
	--fcfdc-accent: #e5e7eb;
	--fcfdc-accent-hover: #ffffff;
	--fcfdc-green: #45d483;
	--fcfdc-danger: #fecaca;
	--fcfdc-danger-bg: #431b1f;
	--fcfdc-focus: #cbd5e1;
	--fcfdc-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.fcfdc-shell {
	width: min(100%, 920px);
	max-width: 100%;
	margin: 0 auto;
	padding: clamp(16px, 4vw, 34px);
	border-radius: 28px;
	background: var(--fcfdc-bg);
	box-shadow: var(--fcfdc-shadow);
	overflow: hidden;
}

.fcfdc-header {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	margin-bottom: 22px;
}

.fcfdc-header-text,
.fcfdc-header-text * {
	min-width: 0;
	max-width: 100%;
}

.fcfdc-eyebrow {
	margin: 0 0 6px;
	color: var(--fcfdc-muted);
	font-size: clamp(0.75rem, 2.2vw, 0.85rem);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fcfdc-header h2 {
	margin: 0;
	color: var(--fcfdc-strong);
	font-size: clamp(1.55rem, 6vw, 2.6rem);
	font-weight: 900;
	line-height: 1.08;
	overflow-wrap: anywhere;
}

.fcfdc-header p:not(.fcfdc-eyebrow) {
	margin: 10px 0 0;
	max-width: 720px;
	color: var(--fcfdc-muted);
	font-size: clamp(0.95rem, 2.8vw, 1.04rem);
}

.fcfdc-theme-toggle,
.fcfdc-btn {
	border: 1px solid var(--fcfdc-border);
	border-radius: 999px;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.fcfdc-theme-toggle {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	background: var(--fcfdc-panel);
	color: var(--fcfdc-text);
}

.fcfdc-theme-toggle:hover,
.fcfdc-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.fcfdc-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.fcfdc-field,
.fcfdc-optional {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.fcfdc-field label {
	display: block;
	margin: 0 0 7px;
	color: var(--fcfdc-strong);
	font-size: clamp(0.95rem, 2.8vw, 1rem);
	font-weight: 850;
}

.fcfdc-field input,
.fcfdc-field select,
.fcfdc-field textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid var(--fcfdc-border);
	border-radius: 16px;
	background: var(--fcfdc-panel);
	color: var(--fcfdc-text);
	font: inherit;
	outline: none;
	box-shadow: none;
}

.fcfdc-field textarea {
	min-height: 104px;
	resize: vertical;
}

.fcfdc-field input:focus,
.fcfdc-field select:focus,
.fcfdc-field textarea:focus,
.fcfdc-theme-toggle:focus-visible,
.fcfdc-btn:focus-visible {
	border-color: var(--fcfdc-focus);
	box-shadow: 0 0 0 4px rgba(107, 114, 128, 0.24);
	outline: 2px solid transparent;
}

.fcfdc-help {
	display: block;
	margin-top: 6px;
	color: var(--fcfdc-muted);
	font-size: clamp(0.82rem, 2.4vw, 0.9rem);
}

.fcfdc-optional {
	padding: 0;
	border: none;
	background: transparent;
}

.fcfdc-optional summary {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px dashed var(--fcfdc-border);
	border-radius: 16px;
	background: rgba(127, 127, 127, 0.045);
	color: var(--fcfdc-strong);
	font-weight: 850;
	cursor: pointer;
}

.fcfdc-optional .fcfdc-field {
	margin-top: 14px;
}

.fcfdc-alert,
.fcfdc-status {
	padding: 12px 14px;
	border-radius: 14px;
	font-weight: 800;
}

.fcfdc-alert {
	border: 1px solid rgba(155, 28, 28, 0.32);
	background: var(--fcfdc-danger-bg);
	color: var(--fcfdc-danger);
}

.fcfdc-status {
	margin-top: 16px;
	background: var(--fcfdc-soft);
	color: var(--fcfdc-strong);
}

.fcfdc-button-row,
.fcfdc-action-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	max-width: 100%;
}

.fcfdc-btn {
	flex: 1 1 150px;
	min-width: 0;
	min-height: 48px;
	padding: 12px 16px;
	background: var(--fcfdc-panel);
	color: var(--fcfdc-text);
	white-space: normal;
}

.fcfdc-btn-primary {
	background: var(--fcfdc-accent);
	border-color: var(--fcfdc-accent);
	color: var(--fcfdc-bg);
}

.fcfdc-btn-primary:hover {
	background: var(--fcfdc-accent-hover);
	border-color: var(--fcfdc-accent-hover);
}

/* Flat output: intentionally not a boxed/sidebar result. */
.fcfdc-result {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-top: clamp(24px, 6vw, 38px);
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	overflow: hidden;
}

.fcfdc-result-intro {
	width: 100%;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--fcfdc-border);
}

.fcfdc-result-intro p {
	margin: 0 0 8px;
	color: var(--fcfdc-muted);
	font-size: clamp(0.82rem, 2.3vw, 0.9rem);
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fcfdc-result-intro h3 {
	margin: 0;
	color: var(--fcfdc-strong);
	font-size: clamp(1.55rem, 7vw, 3rem);
	font-weight: 950;
	line-height: 1.08;
	overflow-wrap: anywhere;
}

.fcfdc-report {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 0;
}

.fcfdc-report-line {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: clamp(18px, 5vw, 28px) 0;
	border-bottom: 1px solid var(--fcfdc-border);
}

.fcfdc-report-line-main {
	border-bottom: 3px solid var(--fcfdc-border-strong);
}

.fcfdc-report-line span {
	display: block;
	margin: 0 0 7px;
	color: var(--fcfdc-muted);
	font-size: clamp(1.15rem, 4.8vw, 1.8rem);
	font-weight: 900;
	line-height: 1.16;
	overflow-wrap: anywhere;
}

.fcfdc-report-line strong {
	display: block;
	max-width: 100%;
	color: var(--fcfdc-strong);
	font-size: clamp(1.28rem, 5.3vw, 2.05rem);
	font-weight: 950;
	line-height: 1.16;
	overflow-wrap: anywhere;
}

.fcfdc-report-line-main strong,
.fcfdc-report-line[data-highlight="true"] strong {
	color: var(--fcfdc-green);
}

.fcfdc-text-block {
	width: 100%;
	max-width: 100%;
	padding: clamp(18px, 5vw, 28px) 0;
	border-bottom: 1px solid var(--fcfdc-border);
}

.fcfdc-text-block h4 {
	margin: 0 0 8px;
	color: var(--fcfdc-strong);
	font-size: clamp(1.15rem, 4.8vw, 1.75rem);
	font-weight: 950;
	line-height: 1.16;
}

.fcfdc-text-block p {
	margin: 0;
	color: var(--fcfdc-text);
	font-size: clamp(0.98rem, 3.2vw, 1.05rem);
	overflow-wrap: break-word;
}

.fcfdc-disclaimer p {
	color: var(--fcfdc-muted);
}

.fcfdc-action-strip {
	padding-top: 18px;
}

@media (min-width: 720px) {
	.fcfdc-header {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
	}

	.fcfdc-theme-toggle {
		width: auto;
		white-space: nowrap;
	}

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

	.fcfdc-optional,
	.fcfdc-alert,
	.fcfdc-button-row {
		grid-column: 1 / -1;
	}

	.fcfdc-report-line {
		display: grid;
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		gap: 22px;
		align-items: start;
	}

	.fcfdc-report-line span {
		margin-bottom: 0;
	}

	.fcfdc-report-line strong {
		text-align: right;
	}
}

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

	.fcfdc-calculator,
	.fcfdc-calculator * {
		visibility: visible !important;
	}

	.fcfdc-calculator {
		position: absolute;
		inset: 0 auto auto 0;
		width: 100% !important;
		background: #ffffff !important;
		color: #000000 !important;
	}

	.fcfdc-shell {
		box-shadow: none !important;
		padding: 16px !important;
	}

	.fcfdc-form,
	.fcfdc-theme-toggle,
	.fcfdc-action-strip,
	.fcfdc-status,
	.fcfdc-alert {
		display: none !important;
	}
}
