.age-workspace {
	padding: 18px 18px 24px;
}

.age-workspace .page-head,
.age-workspace .tool-surface {
	width: 100%;
	max-width: 1180px;
}

.age-tool {
	display: grid;
	gap: 12px;
}

.age-panel {
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--panel);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.panel-head {
	min-height: 46px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 14px;
	border-bottom: 1px solid #e2e6f0;
	background: #ffffff;
}

.panel-title {
	margin: 0;
	color: #0f1f35;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
}

.meta {
	color: #277a9c;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.3;
	text-align: right;
}

.age-form {
	display: grid;
	gap: 14px;
	padding: 14px;
}

.field-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.age-form label {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.date-input-group {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 42px;
	gap: 6px;
}

.age-form label span,
.target-result span,
.summary-card span {
	color: #5b667a;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.35;
}

.age-form input[type="text"],
.age-form input[type="date"],
.age-form input[type="number"] {
	width: 100%;
	height: 40px;
	border: 1px solid #cfd6e6;
	border-radius: 7px;
	background: #ffffff;
	color: #111827;
	padding: 0 10px;
	outline: 0;
}

.date-picker-input {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 1px;
	height: 1px;
	min-width: 0;
	border: 0;
	padding: 0;
	opacity: 0;
	pointer-events: none;
}

.date-picker-button {
	width: 42px;
	height: 40px;
	border: 1px solid #cfd6e6;
	border-radius: 7px;
	background: #ffffff;
	color: #22324a;
	display: inline-grid;
	place-items: center;
	padding: 0;
}

.date-picker-button:hover {
	background: #eef2fb;
}

.date-picker-button:focus {
	outline: 0;
	border-color: #6264e8;
	box-shadow: 0 0 0 3px rgba(74, 75, 224, 0.12);
}

.date-picker-button svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.age-form input:focus {
	border-color: #6264e8;
	box-shadow: 0 0 0 3px rgba(74, 75, 224, 0.12);
}

.leap-policy {
	display: grid;
	gap: 10px;
	border: 1px solid #dbe2ed;
	border-radius: 8px;
	background: #fbfcff;
	padding: 12px;
}

.leap-policy strong {
	color: #0f1f35;
	font-size: 13px;
	line-height: 1.3;
}

.radio-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.radio-row label {
	min-height: 34px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid #d5dceb;
	border-radius: 7px;
	background: #ffffff;
	padding: 0 10px;
}

.radio-row input {
	width: 15px;
	height: 15px;
	margin: 0;
	accent-color: var(--primary);
}

.form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.age-button {
	min-height: 38px;
	border: 1px solid #c7cedf;
	border-radius: 7px;
	background: #ffffff;
	color: #111827;
	font-weight: 800;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

.age-button.primary {
	background: var(--primary);
	color: #ffffff;
	border-color: #3735c4;
}

.age-button:hover {
	background: #eef2fb;
}

.age-button.primary:hover {
	background: #3735c4;
}

.form-message {
	min-height: 20px;
	margin: 0;
	color: #3f5576;
	font-size: 13px;
	line-height: 1.45;
}

.form-message.is-error {
	color: #c2410c;
	font-weight: 750;
}

.summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.summary-card {
	position: relative;
	min-height: 112px;
	border: 1px solid #dbe2ed;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: var(--shadow);
	padding: 14px 14px 14px 16px;
	overflow: hidden;
}

.summary-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: #2463eb;
}

.summary-card strong {
	display: block;
	margin-top: 11px;
	color: #0c1728;
	font-size: 26px;
	line-height: 1.12;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.accent-green::before {
	background: #16865a;
}

.accent-orange::before {
	background: #d97706;
}

.comparison-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 12px;
	padding: 14px;
}

.metric-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
}

.metric-list div {
	border: 1px solid #dbe2ed;
	border-radius: 8px;
	background: #ffffff;
	padding: 12px;
	min-width: 0;
}

.metric-list dt {
	color: #667085;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.35;
}

.metric-list dd {
	margin: 7px 0 0;
	color: #102033;
	font-size: 18px;
	font-weight: 850;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.explain-box {
	border: 1px solid #dbe2ed;
	border-radius: 8px;
	background: #f8fafc;
	padding: 13px;
}

.explain-box h3 {
	margin: 0;
	color: #0f1f35;
	font-size: 14px;
	line-height: 1.3;
}

.explain-box ul {
	margin: 9px 0 0;
	padding-left: 18px;
	color: #40506a;
	font-size: 13px;
	line-height: 1.55;
}

.simulation-panel,
.timeline-panel,
.eligibility-panel,
.copy-panel {
	margin-top: 0;
}

.simulation-grid {
	display: grid;
	grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
	gap: 12px;
	padding: 14px;
}

.target-result {
	border: 1px solid #c9d7ef;
	border-radius: 8px;
	background: #f4f8ff;
	padding: 13px;
}

.target-result strong {
	display: block;
	margin-top: 8px;
	color: #12366f;
	font-size: 19px;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.target-result strong.is-error {
	color: #c2410c;
}

.milestone-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.milestone-card {
	display: grid;
	gap: 5px;
	border: 1px solid #dbe2ed;
	border-radius: 8px;
	background: #ffffff;
	padding: 11px;
	min-width: 0;
}

.milestone-card strong {
	color: #0f1f35;
	font-size: 15px;
	line-height: 1.25;
}

.milestone-card span {
	color: #344054;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.35;
}

.milestone-card em {
	justify-self: start;
	border-radius: 999px;
	background: #e7f6ef;
	color: #116346;
	font-size: 11px;
	font-style: normal;
	font-weight: 850;
	line-height: 1;
	padding: 5px 8px;
}

.milestone-card.is-passed em {
	background: #eef2f7;
	color: #5b667a;
}

.timeline-list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 8px 14px 14px;
	list-style: none;
}

.timeline-list li {
	position: relative;
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	gap: 12px;
	border-bottom: 1px solid #eef2f7;
	padding: 12px 0 12px 18px;
}

.timeline-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 18px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--primary);
}

.timeline-list li::after {
	content: "";
	position: absolute;
	left: 3px;
	top: 28px;
	bottom: -8px;
	width: 2px;
	background: #dce3ee;
}

.timeline-list li:last-child {
	border-bottom: 0;
}

.timeline-list li:last-child::after {
	display: none;
}

.timeline-list time {
	color: #40506a;
	font-size: 13px;
	font-weight: 850;
	line-height: 1.35;
}

.timeline-list span {
	color: #111827;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.eligibility-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	padding: 14px;
}

.eligibility-card {
	display: grid;
	gap: 8px;
	border: 1px solid #dbe2ed;
	border-radius: 8px;
	background: #ffffff;
	padding: 12px;
	min-width: 0;
}

.eligibility-card strong {
	color: #0f1f35;
	font-size: 15px;
	line-height: 1.25;
}

.eligibility-card span,
.eligibility-card small {
	color: #5b667a;
	font-size: 12px;
	line-height: 1.45;
}

.eligibility-card b {
	justify-self: start;
	border-radius: 999px;
	font-size: 12px;
	line-height: 1;
	padding: 6px 9px;
}

.eligibility-card b.is-eligible {
	background: #e7f6ef;
	color: #116346;
}

.eligibility-card b.is-not-eligible {
	background: #fff4e6;
	color: #a15c07;
}

.eligibility-card b.is-caution {
	background: #eef2f7;
	color: #344054;
}

.eligibility-card.caution {
	background: #fbfcff;
}

.copy-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px;
}

.copy-panel p {
	margin: 0;
	color: #5b667a;
	font-size: 12px;
	line-height: 1.5;
}

.clipboard-fallback {
	position: fixed;
	left: -9999px;
	top: 0;
	opacity: 0;
}

@media (max-width: 1080px) {
	.comparison-grid,
	.simulation-grid {
		grid-template-columns: 1fr;
	}

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

@media (max-width: 760px) {
	.age-workspace {
		padding: 16px 12px 22px;
	}

	.field-grid,
	.summary-grid,
	.metric-list,
	.milestone-list,
	.eligibility-grid {
		grid-template-columns: 1fr;
	}

	.form-actions,
	.copy-panel {
		display: grid;
		grid-template-columns: 1fr;
	}

	.age-button {
		width: 100%;
	}

	.timeline-list li {
		grid-template-columns: 1fr;
		gap: 5px;
	}
}
