.dsn-calculator {
	--dsn-ink: #14231f;
	--dsn-muted: #65736e;
	--dsn-paper: #f4f1e9;
	--dsn-card: #ffffff;
	--dsn-line: #d8ded9;
	--dsn-lime: #c7f36b;
	--dsn-green: #124b3a;
	--dsn-orange: #ff7043;
	--dsn-shadow: 0 18px 60px rgba(20, 35, 31, 0.11);
	box-sizing: border-box;
	max-width: 1180px;
	margin: 32px auto;
	padding: clamp(24px, 5vw, 64px);
	overflow: hidden;
	color: var(--dsn-ink);
	background:
		radial-gradient(circle at 96% 3%, rgba(199, 243, 107, 0.55), transparent 26%),
		var(--dsn-paper);
	border-radius: 28px;
	font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.dsn-saved-calculator-page {
	min-height: 60vh;
	padding: clamp(16px, 4vw, 48px);
	background: #fff;
}

.dsn-saved-calculator-page__inner {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
}

.dsn-saved-calculator-page .dsn-calculator {
	margin-top: 0;
	margin-bottom: 0;
}

.dsn-calculator *,
.dsn-calculator *::before,
.dsn-calculator *::after {
	box-sizing: border-box;
}

.dsn-calculator__intro {
	max-width: 770px;
	margin-bottom: 38px;
}

.dsn-calculator__eyebrow,
.dsn-results__eyebrow {
	margin: 0 0 10px;
	color: var(--dsn-green);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.dsn-calculator h2 {
	max-width: 720px;
	margin: 0;
	font-size: clamp(34px, 5vw, 62px);
	font-weight: 750;
	letter-spacing: -0.045em;
	line-height: 0.98;
}

.dsn-calculator__intro > p:last-child {
	max-width: 650px;
	margin: 22px 0 0;
	color: var(--dsn-muted);
	font-size: 17px;
	line-height: 1.65;
}

.dsn-calculator__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
	gap: 22px;
	align-items: start;
}

.dsn-calculator__controls {
	display: grid;
	gap: 16px;
}

.dsn-panel,
.dsn-results {
	margin: 0;
	padding: clamp(22px, 3vw, 32px);
	border: 1px solid rgba(20, 35, 31, 0.09);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 4px 20px rgba(20, 35, 31, 0.04);
}

.dsn-panel__heading {
	display: flex;
	gap: 18px;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 30px;
}

.dsn-panel__heading > div,
.dsn-panel legend {
	display: flex;
	gap: 12px;
	align-items: center;
}

.dsn-panel h3,
.dsn-panel legend {
	margin: 0;
	padding: 0;
	color: var(--dsn-ink);
	font-size: 18px;
	font-weight: 750;
}

.dsn-step {
	display: inline-grid;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	place-items: center;
	border-radius: 50%;
	color: var(--dsn-green);
	background: var(--dsn-lime);
	font-size: 11px;
	font-weight: 800;
}

.dsn-budget__value {
	color: var(--dsn-green);
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 800;
	letter-spacing: -0.035em;
	white-space: nowrap;
}

.dsn-range {
	--dsn-range-progress: 3%;
	width: 100%;
	height: 8px;
	margin: 8px 0;
	border: 0;
	border-radius: 999px;
	outline: none;
	background: linear-gradient(
		to right,
		var(--dsn-green) 0,
		var(--dsn-green) var(--dsn-range-progress),
		#dce2dd var(--dsn-range-progress),
		#dce2dd 100%
	);
	appearance: none;
	cursor: pointer;
}

.dsn-range::-webkit-slider-thumb {
	width: 28px;
	height: 28px;
	border: 5px solid var(--dsn-card);
	border-radius: 50%;
	background: var(--dsn-green);
	box-shadow: 0 2px 10px rgba(20, 75, 58, 0.3);
	appearance: none;
}

.dsn-range::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border: 5px solid var(--dsn-card);
	border-radius: 50%;
	background: var(--dsn-green);
	box-shadow: 0 2px 10px rgba(20, 75, 58, 0.3);
}

.dsn-range:focus-visible::-webkit-slider-thumb {
	outline: 3px solid var(--dsn-orange);
	outline-offset: 3px;
}

.dsn-range__labels {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	color: var(--dsn-muted);
	font-size: 12px;
}

.dsn-cpm-line {
	display: flex;
	align-items: center;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--dsn-line);
	color: var(--dsn-muted);
	font-size: 14px;
}

.dsn-cpm-line strong {
	margin-left: auto;
	color: var(--dsn-ink);
	font-size: 16px;
}

.dsn-info {
	position: relative;
	display: inline-grid;
	width: 22px;
	height: 22px;
	margin-left: 8px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--dsn-line);
	border-radius: 50%;
	color: var(--dsn-muted);
	background: transparent;
	font-size: 12px;
	cursor: help;
}

.dsn-info:hover::after,
.dsn-info:focus-visible::after {
	position: absolute;
	z-index: 3;
	right: 0;
	bottom: calc(100% + 10px);
	width: min(280px, 70vw);
	padding: 11px 13px;
	border-radius: 8px;
	color: #fff;
	background: var(--dsn-ink);
	content: attr(data-tooltip);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
	text-align: left;
}

.dsn-help {
	margin: 10px 0 20px 42px;
	color: var(--dsn-muted);
	font-size: 13px;
}

.dsn-options-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 6px;
}

.dsn-choice {
	position: relative;
	display: flex;
	gap: 12px;
	align-items: center;
	min-height: 68px;
	padding: 13px;
	border: 1px solid var(--dsn-line);
	border-radius: 12px;
	background: var(--dsn-card);
	cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dsn-choice:hover {
	border-color: #9eaca5;
	transform: translateY(-1px);
}

.dsn-choice:has(input:checked) {
	border-color: var(--dsn-green);
	background: #f4fae7;
}

.dsn-choice input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.dsn-choice__box {
	display: grid;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	place-items: center;
	border: 1.5px solid #aab4af;
	border-radius: 6px;
	background: #fff;
}

.dsn-choice input:checked + .dsn-choice__box {
	border-color: var(--dsn-green);
	background: var(--dsn-green);
}

.dsn-choice input:checked + .dsn-choice__box::after {
	width: 9px;
	height: 5px;
	border-bottom: 2px solid #fff;
	border-left: 2px solid #fff;
	content: "";
	transform: translateY(-1px) rotate(-45deg);
}

.dsn-choice input:focus-visible + .dsn-choice__box {
	outline: 3px solid var(--dsn-orange);
	outline-offset: 2px;
}

.dsn-choice strong,
.dsn-choice small {
	display: block;
}

.dsn-choice strong {
	font-size: 14px;
	line-height: 1.25;
}

.dsn-choice small {
	margin-top: 4px;
	color: var(--dsn-muted);
	font-size: 11px;
	line-height: 1.3;
}

.dsn-options-grid--addons .dsn-choice {
	min-height: 76px;
}

.dsn-selection-error {
	margin: 13px 0 0;
	color: #a73318;
	font-size: 13px;
	font-weight: 650;
}

.dsn-save {
	padding: clamp(20px, 3vw, 28px);
	border: 1px solid rgba(20, 35, 31, 0.09);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 4px 20px rgba(20, 35, 31, 0.04);
}

.dsn-save__button {
	display: inline-flex;
	min-height: 48px;
	padding: 12px 20px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 12px;
	color: #fff;
	background: var(--dsn-green);
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	cursor: pointer;
	transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.dsn-save__button:hover:not(:disabled) {
	background: #0d3d2f;
	transform: translateY(-1px);
}

.dsn-save__button:focus-visible {
	outline: 3px solid var(--dsn-orange);
	outline-offset: 3px;
}

.dsn-save__button:disabled {
	opacity: 0.62;
	cursor: wait;
}

.dsn-save__status {
	margin: 13px 0 0;
	color: var(--dsn-muted);
	font-size: 13px;
	line-height: 1.45;
}

.dsn-save__status:empty {
	display: none;
}

.dsn-save__status[data-state="success"] {
	color: var(--dsn-green);
	font-weight: 700;
}

.dsn-save__status[data-state="error"] {
	color: #a73318;
	font-weight: 650;
}

.dsn-save__url {
	display: block;
	margin-top: 5px;
	overflow-wrap: anywhere;
	color: var(--dsn-green);
	font-size: 13px;
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dsn-save__url[hidden] {
	display: none;
}

.dsn-results {
	position: sticky;
	top: 24px;
	padding: clamp(26px, 4vw, 38px);
	color: #fff;
	background:
		linear-gradient(155deg, rgba(199, 243, 107, 0.09), transparent 38%),
		var(--dsn-green);
	box-shadow: var(--dsn-shadow);
}

.dsn-results__eyebrow {
	color: var(--dsn-lime);
}

.dsn-results__primary {
	padding: 30px 0 26px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.dsn-results__primary > span,
.dsn-result-card > span {
	display: block;
	color: rgba(255, 255, 255, 0.7);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.dsn-results__primary strong {
	display: block;
	margin: 8px 0 17px;
	font-size: clamp(46px, 7vw, 74px);
	font-weight: 780;
	letter-spacing: -0.055em;
	line-height: 1;
}

.dsn-meter {
	height: 7px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.13);
}

.dsn-meter span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--dsn-lime);
	transition: width 220ms ease;
}

.dsn-results__cards {
	display: grid;
	gap: 12px;
	margin-top: 14px;
}

.dsn-result-card {
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.07);
}

.dsn-result-card strong {
	display: block;
	margin-top: 7px;
	color: var(--dsn-lime);
	font-size: 30px;
	letter-spacing: -0.03em;
}

.dsn-result-card small {
	display: block;
	margin-top: 3px;
	color: rgba(255, 255, 255, 0.62);
	font-size: 11px;
}

.dsn-results__note {
	margin: 22px 0 0;
	color: rgba(255, 255, 255, 0.58);
	font-size: 11px;
	line-height: 1.55;
}

@media (max-width: 860px) {
	.dsn-calculator__layout {
		grid-template-columns: 1fr;
	}

	.dsn-results {
		position: static;
	}
}

@media (max-width: 560px) {
	.dsn-saved-calculator-page {
		padding: 0;
	}

	.dsn-calculator {
		margin: 12px auto;
		padding: 22px 14px;
		border-radius: 20px;
	}

	.dsn-calculator h2 {
		font-size: 38px;
	}

	.dsn-panel__heading {
		display: block;
	}

	.dsn-budget__value {
		display: block;
		margin-top: 15px;
	}

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

	.dsn-help {
		margin-left: 0;
	}

	.dsn-save__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dsn-calculator *,
	.dsn-calculator *::before,
	.dsn-calculator *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
