:root {
	--bg: #0b1220;
	--surface: #121a2b;
	--muted: #8ea1c0;
	--text: #e7eefc;
	--accent: #4da3ff;
	--accent-2: #6ef3c5;
	--card: #0f1626;
	--border: rgba(255, 255, 255, 0.08);
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

	--blue: #4da3ff;
	--green: #39d98a;
	--amber: #ffb020;
	--pink: #ff6aa6;
}

* {
	box-sizing: border-box;
}
html,
body {
	height: 100%;
}
body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	color: var(--text);
	background: radial-gradient(1200px 800px at 10% -20%, #123 0%, transparent 60%),
		radial-gradient(1000px 600px at 120% 0%, #072 0%, transparent 60%), var(--bg);
	line-height: 1.4;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(8px);
	background: linear-gradient(90deg, rgba(18, 26, 43, 0.9), rgba(18, 26, 43, 0.6));
	border-bottom: 1px solid var(--border);
}
.site-header .wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.brand {
	margin: 0;
	font-size: 22px;
	letter-spacing: 0.4px;
}
.nav a {
	color: var(--muted);
	text-decoration: none;
	margin-left: 18px;
	font-weight: 600;
	padding: 8px 10px;
	border-radius: 8px;
}
.nav a:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.06);
}

/* Layout */
.layout {
	max-width: 1200px;
	margin: 24px auto;
	padding: 0 20px 60px;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
	gap: 24px;
}

/* Left column */
.content {
	min-height: 6000px; /* requirement */
	display: grid;
	gap: 24px;
}

/* Cards */
.card {
	background: linear-gradient(180deg, rgba(20, 28, 48, 0.92), rgba(16, 22, 38, 0.92));
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 20px;
}
.card h2 {
	margin: 0 0 14px;
	font-size: 20px;
}

/* Actions */
.actions .actions-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 8px;
}
.btn {
	appearance: none;
	border: none;
	border-radius: 12px;
	padding: 12px 14px;
	font-weight: 800;
	color: #0a0f1a;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(0, 0, 0, 0.25);
	transition: transform 0.06s ease, filter 0.15s ease;
}
.btn:hover {
	transform: translateY(-1px);
	filter: brightness(1.06);
}
.btn:active {
	transform: translateY(0);
	filter: brightness(0.98);
}
.btn-blue {
	background: var(--blue);
}
.btn-green {
	background: var(--green);
}
.btn-amber {
	background: var(--amber);
}
.btn-pink {
	background: var(--pink);
}
.small {
	font-size: 12px;
}
.muted {
	color: var(--muted);
}

/* Hero KPIs */
.hero {
	background: linear-gradient(180deg, rgba(20, 28, 48, 0.92), rgba(16, 22, 38, 0.92)),
		radial-gradient(600px 200px at 10% 0%, rgba(77, 163, 255, 0.25), transparent 70%);
	background-blend-mode: overlay;
}
.kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.kpi {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px;
}
.kpi-label {
	color: var(--muted);
	font-size: 12px;
}
.kpi-value {
	font-size: 28px;
	font-weight: 800;
	margin-top: 4px;
}
.kpi-sub {
	color: var(--muted);
	font-size: 12px;
}

/* Tables */
.table-scroll {
	/* overflow: auto; */
	border-radius: 12px;
	border: 1px solid var(--border);
}
table.data {
	width: 100%;
	border-collapse: collapse;
	background: var(--surface);
	font-size: 14px;
}
table.data thead th {
	position: sticky;
	top: 0;
	background: #10192c;
	text-align: left;
	padding: 10px 12px;
	color: var(--muted);
	border-bottom: 1px solid var(--border);
}
table.data tbody td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
}
table.data tbody tr:hover {
	background: rgba(255, 255, 255, 0.04);
}

/* Schedule list */
.schedule {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.schedule li {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 10px 12px;
}
.schedule span {
	font-weight: 600;
	color: var(--accent-2);
}
.schedule li::marker {
	content: "";
}

/* History bars */
.history {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 10px;
}
.history li {
	display: grid;
	grid-template-columns: 90px 1fr 140px;
	align-items: center;
	gap: 12px;
}
.history .year {
	color: var(--muted);
	font-weight: 600;
}
.history .bar {
	--h: 10px;
	display: block;
	position: relative;
	height: var(--h);
	border-radius: 999px;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	width: var(--pct, 50%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.history .label {
	color: var(--muted);
}

/* Prose */
.prose p {
	color: #c9d6ef;
	margin: 10px 0;
}

/* Sidebar - only the empty div */
.sidebar {
	min-height: 6000px; /* requirement */
	position: relative;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: linear-gradient(180deg, rgba(23, 33, 56, 0.9), rgba(10, 16, 28, 0.9)),
		radial-gradient(300px 160px at 80% 10%, rgba(110, 243, 197, 0.15), transparent 70%),
		radial-gradient(300px 160px at 20% 90%, rgba(77, 163, 255, 0.18), transparent 70%);
	box-shadow: var(--shadow);
	/* overflow: hidden; */
	padding: 0;
}
#last-element {
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--border);
	margin-top: 40px;
	color: var(--muted);
}
.site-footer .wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

/* Responsive */
@media (max-width: 980px) {
	.layout {
		grid-template-columns: 1fr;
	}
	.sidebar {
		min-height: 800px;
	}
	.kpis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.actions .actions-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.history li {
		grid-template-columns: 70px 1fr 120px;
	}
}
