
.efcs-card {
	--efcs-bg: #fff;
	--efcs-soft: #f5f7fa;
	--efcs-border: #dfe5ec;
	--efcs-text: #17202a;
	--efcs-muted: #687381;
	--efcs-accent: #1769e0;
	--efcs-accent-soft: #eaf2ff;

	max-width: 980px;
	margin: 28px auto;
	padding: 28px;
	background: var(--efcs-bg);
	color: var(--efcs-text);
	border: 1px solid var(--efcs-border);
	border-radius: 18px;
	box-shadow: 0 12px 36px rgba(20,31,48,.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.efcs-card *, .efcs-card *::before, .efcs-card *::after { box-sizing: border-box; }

.efcs-header { margin-bottom: 24px; }
.efcs-header h2 { margin: 0 0 7px; font-size: clamp(1.55rem,3vw,2.05rem); line-height: 1.2; }
.efcs-header p { margin: 0; color: var(--efcs-muted); }

.efcs-grid {
	display: grid;
	grid-template-columns: minmax(260px,.85fr) minmax(320px,1.2fr);
	gap: 28px;
	align-items: start;
}

.efcs-fields {
	display: grid;
	gap: 16px;
	padding: 20px;
	background: var(--efcs-soft);
	border-radius: 14px;
}

.efcs-field label {
	display: block;
	margin-bottom: 7px;
	font-size: .88rem;
	font-weight: 650;
}

.efcs-field input {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--efcs-border);
	border-radius: 10px;
	background: #fff;
	color: var(--efcs-text);
	font: inherit;
	outline: none;
}

.efcs-field input:focus {
	border-color: var(--efcs-accent);
	box-shadow: 0 0 0 3px rgba(23,105,224,.12);
}

.efcs-input-wrap { position: relative; }
.efcs-input-wrap input { padding-left: 30px; }
.efcs-input-suffix input { padding-left: 12px; padding-right: 34px; }
.efcs-prefix, .efcs-suffix {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: var(--efcs-muted);
	pointer-events: none;
}
.efcs-prefix { left: 12px; }
.efcs-suffix { right: 12px; }

.efcs-reset {
	justify-self: start;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--efcs-accent);
	cursor: pointer;
	font: inherit;
	font-size: .9rem;
	font-weight: 650;
}

.efcs-results { display: grid; gap: 15px; }

.efcs-primary {
	padding: 20px;
	background: var(--efcs-accent-soft);
	border-radius: 14px;
}
.efcs-primary span, .efcs-result-box span {
	display: block;
	margin-bottom: 6px;
	color: var(--efcs-muted);
	font-size: .86rem;
}
.efcs-primary strong {
	display: block;
	font-size: clamp(2rem,5vw,3.05rem);
	line-height: 1.06;
	letter-spacing: -.035em;
	overflow-wrap: anywhere;
}
.efcs-result-grid {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 14px;
}
.efcs-result-box {
	padding: 16px;
	border: 1px solid var(--efcs-border);
	border-radius: 12px;
}
.efcs-result-box strong { font-size: 1.16rem; }

.efcs-note {
	color: var(--efcs-muted);
	font-size: .9rem;
	line-height: 1.45;
}
.efcs-note.efcs-warning {
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff5e8;
	color: #754d16;
}

.efcs-chart-card {
	padding: 16px;
	border: 1px solid var(--efcs-border);
	border-radius: 12px;
}
.efcs-chart-title { margin-bottom: 8px; font-weight: 650; font-size: .95rem; }
.efcs-chart-wrap { position: relative; width: 100%; height: 270px; }
.efcs-chart-wrap canvas { display: block; width: 100%; height: 100%; }

.efcs-disclaimer {
	margin: 20px 0 0;
	color: var(--efcs-muted);
	font-size: .77rem;
	line-height: 1.5;
}

@media (max-width: 760px) {
	.efcs-card { margin: 18px 0; padding: 20px; }
	.efcs-grid { grid-template-columns: 1fr; }
	.efcs-chart-wrap { height: 235px; }
}
@media (max-width: 480px) {
	.efcs-fields { padding: 16px; }
	.efcs-result-grid { grid-template-columns: 1fr; }
	.efcs-primary strong { font-size: 2.2rem; }
}
