.lp-sim-page {
	min-height: 100vh;
	background:
		radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.12), transparent 32rem),
		radial-gradient(circle at 90% 20%, rgba(16, 185, 129, 0.08), transparent 30rem),
		#030712;
	color: #f3f4f6;
	padding: 24px 0 40px;
}

.lp-sim-page * {
	box-sizing: border-box;
}

.lp-sim-page button,
.lp-sim-page input {
	font: inherit;
}

.lp-sim-container {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
}

.lp-sim-header {
	margin-bottom: 20px;
}

.lp-sim-title {
	margin: 0 0 4px;
	font-size: 22px;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: #f3f4f6;
}

.lp-sim-lead {
	margin: 0;
	color: #6b7280;
	font-size: 13px;
}

.lp-sim-tabs {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	margin-bottom: 20px;
	background: rgba(17, 24, 39, 0.9);
	border: 1px solid #1f2937;
	border-radius: 16px;
}

.lp-sim-tab {
	border: 0;
	border-radius: 12px;
	padding: 9px 16px;
	color: #9ca3af;
	background: transparent;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	transition: 0.18s ease;
}

.lp-sim-tab:hover {
	color: #f3f4f6;
	background: rgba(55, 65, 81, 0.5);
}

.lp-sim-tab.active-forward {
	color: #fff;
	background: #2563eb;
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.lp-sim-tab.active-reverse {
	color: #fff;
	background: #059669;
	box-shadow: 0 8px 20px rgba(5, 150, 105, 0.22);
}

.lp-sim-layout {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.lp-sim-sidebar {
	width: 330px;
	flex: 0 0 330px;
	position: sticky;
	top: 16px;
}

.lp-sim-card {
	background: rgba(17, 24, 39, 0.72);
	border: 1px solid #1f2937;
	border-radius: 22px;
	box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

.lp-sim-controls {
	padding: 20px;
}

.lp-sim-controls-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.lp-sim-controls-title {
	color: #d1d5db;
	font-size: 14px;
	font-weight: 700;
}

.lp-sim-reset {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid #374151;
	color: #9ca3af;
	background: #1f2937;
	border-radius: 10px;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 12px;
}

.lp-sim-reset:hover {
	color: #e5e7eb;
	background: #374151;
}

.lp-sim-slider-row {
	margin-bottom: 18px;
}

.lp-sim-slider-row:last-child {
	margin-bottom: 0;
}

.lp-sim-slider-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.lp-sim-slider-label {
	color: #9ca3af;
	font-size: 12px;
}

.lp-sim-number-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.lp-sim-num-input {
	width: 112px;
	text-align: right;
	color: #f3f4f6;
	background: #030712;
	border: 1px solid #374151;
	border-radius: 10px;
	padding: 6px 9px;
	outline: none;
	font-size: 14px;
}

.lp-sim-num-input:focus {
	border-color: #3b82f6;
}

.lp-sim-unit {
	width: 24px;
	color: #6b7280;
	font-size: 12px;
}

.lp-sim-range {
	width: 100%;
	height: 7px;
	border-radius: 999px;
	appearance: none;
	outline: none;
	cursor: pointer;
	background: #374151;
}

.lp-sim-range::-webkit-slider-thumb {
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 3px solid #dbeafe;
	background: #2563eb;
	box-shadow: 0 5px 16px rgba(59, 130, 246, 0.35);
}

.lp-sim-range::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 3px solid #dbeafe;
	background: #2563eb;
}

.lp-sim-kpis {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 14px;
}

.lp-sim-kpi {
	border-radius: 16px;
	padding: 12px 8px;
	text-align: center;
	border: 1px solid #1f2937;
	background: rgba(17, 24, 39, 0.45);
}

.lp-sim-kpi.blue {
	border-color: rgba(59, 130, 246, 0.35);
	background: rgba(59, 130, 246, 0.10);
}

.lp-sim-kpi.green {
	border-color: rgba(16, 185, 129, 0.40);
	background: rgba(16, 185, 129, 0.10);
}

.lp-sim-kpi.amber {
	border-color: rgba(245, 158, 11, 0.35);
	background: rgba(245, 158, 11, 0.10);
}

.lp-sim-kpi-label {
	color: #6b7280;
	font-size: 11px;
	margin-bottom: 2px;
	white-space: nowrap;
}

.lp-sim-kpi-value {
	font-size: 18px;
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.lp-sim-kpi.blue .lp-sim-kpi-value,
.text-blue {
	color: #60a5fa;
}

.lp-sim-kpi.green .lp-sim-kpi-value,
.text-green {
	color: #34d399;
}

.lp-sim-kpi.amber .lp-sim-kpi-value,
.text-amber {
	color: #fbbf24;
}

.lp-sim-main {
	flex: 1;
	min-width: 0;
}

.lp-sim-flow {
	padding: 24px;
}

.lp-sim-flow-title {
	margin-bottom: 18px;
	color: #d1d5db;
	font-size: 14px;
	font-weight: 700;
}

.lp-sim-flow-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.lp-sim-flow-card {
	width: min(100%, 460px);
	min-height: 82px;
	border: 1px solid #1f2937;
	border-radius: 18px;
	padding: 16px;
	background: rgba(31, 41, 55, 0.72);
	display: flex;
	align-items: center;
	gap: 15px;
}

.lp-sim-flow-card.goal,
.lp-sim-flow-card.goal-soft {
	justify-content: space-between;
	background: rgba(6, 78, 59, 0.34);
	border-color: rgba(16, 185, 129, 0.5);
}

.lp-sim-flow-card.budget-result {
	background: rgba(120, 53, 15, 0.28);
	border-color: rgba(245, 158, 11, 0.35);
}

.lp-sim-flow-card.final {
	display: block;
	min-height: 0;
	text-align: center;
	background: rgba(120, 53, 15, 0.24);
	border-color: rgba(245, 158, 11, 0.35);
}

.lp-sim-flow-card.final.neutral {
	background: rgba(31, 41, 55, 0.6);
	border-color: #374151;
}

.lp-sim-iconbox {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 13px;
	flex: 0 0 46px;
	font-weight: 700;
}

.lp-sim-iconbox.blue {
	background: rgba(59, 130, 246, 0.12);
	color: #60a5fa;
}

.lp-sim-iconbox.green {
	background: rgba(16, 185, 129, 0.14);
	color: #34d399;
}

.lp-sim-iconbox.amber {
	background: rgba(245, 158, 11, 0.12);
	color: #fbbf24;
}

.lp-sim-small-label {
	color: #6b7280;
	font-size: 12px;
	line-height: 1.4;
}

.green-label {
	color: rgba(52, 211, 153, 0.78);
}

.amber-label {
	color: rgba(251, 191, 36, 0.78);
}

.lp-sim-large-value {
	font-size: 21px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.lp-sim-xlarge-value {
	color: #fbbf24;
	font-size: 30px;
	font-weight: 850;
	line-height: 1.25;
	letter-spacing: -0.03em;
}

.lp-sim-subunit {
	color: #9ca3af;
	font-size: 14px;
	font-weight: 400;
}

.lp-sim-flow-card.goal .lp-sim-large-value,
.lp-sim-flow-card.goal-soft .lp-sim-large-value {
	color: #34d399;
}

.lp-sim-badge {
	color: rgba(52, 211, 153, 0.86);
	background: rgba(16, 185, 129, 0.10);
	border: 1px solid rgba(16, 185, 129, 0.35);
	border-radius: 999px;
	padding: 5px 10px;
	font-size: 12px;
	white-space: nowrap;
}

.lp-sim-connector {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 4px 0;
}

.lp-sim-line {
	height: 18px;
	border-left: 1px dashed #4b5563;
}

.lp-sim-formula {
	padding: 7px 12px;
	border: 1px solid #374151;
	border-radius: 12px;
	background: rgba(31, 41, 55, 0.82);
	text-align: center;
	font-size: 12px;
	line-height: 1.45;
	color: #d1d5db;
}

.lp-sim-formula-muted {
	color: #6b7280;
}

.lp-sim-mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.lp-sim-flex {
	display: flex;
	align-items: center;
	gap: 15px;
}

.lp-sim-hide {
	display: none !important;
}

@media (max-width: 900px) {
	.lp-sim-layout {
		flex-direction: column;
	}

	.lp-sim-sidebar {
		width: 100%;
		flex-basis: auto;
		position: static;
	}
}

@media (max-width: 560px) {
	.lp-sim-page {
		padding-top: 16px;
	}

	.lp-sim-container {
		width: min(100% - 20px, 1120px);
	}

	.lp-sim-title {
		font-size: 19px;
	}

	.lp-sim-tabs {
		display: grid;
		grid-template-columns: 1fr;
		width: 100%;
	}

	.lp-sim-tab {
		justify-content: center;
	}

	.lp-sim-controls,
	.lp-sim-flow {
		padding: 16px;
	}

	.lp-sim-kpis {
		grid-template-columns: 1fr;
	}

	.lp-sim-flow-card {
		align-items: flex-start;
	}

	.lp-sim-xlarge-value {
		font-size: 25px;
	}

	.lp-sim-flow-card.goal,
	.lp-sim-flow-card.goal-soft {
		align-items: center;
	}
}