* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: system-ui, -apple-system, sans-serif;
	background: #f5f5f3;
	color: #1a1a1a;
	padding: 24px;
	min-height: 100vh;
}

/* Header */
header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

h1 {
	font-size: 20px;
	font-weight: 500;
	color: #1a1a1a;
}

#hamburger {
	font-size: 20px;
	background: none;
	border: 0.5px solid #ccc;
	border-radius: 6px;
	padding: 6px 10px;
	cursor: pointer;
	color: #1a1a1a;
	line-height: 1;
	flex-shrink: 0;
}

#hamburger:hover { background: #e8e8e6; }

/* Side panel */
#side-panel {
	position: fixed;
	top: 0;
	left: -220px;
	width: 220px;
	height: 100vh;
	background: #fff;
	border-right: 0.5px solid #ddd;
	box-shadow: 2px 0 12px rgba(0,0,0,0.08);
	transition: left 0.25s ease;
	z-index: 200;
	padding: 24px 16px;
}

#side-panel.open { left: 0; }

#nav-items {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 12px;
}

.nav-btn {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 14px;
	font-size: 14px;
	border: none;
	border-radius: 8px;
	background: none;
	color: #333;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s;
}

.nav-btn:hover { background: #f0f0ee; }

.nav-btn.active {
	background: #534ab7;
	color: #fff;
	font-weight: 500;
}

.nav-divider {
	border: none;
	border-top: 0.5px solid #ddd;
	margin: 8px 0;
}

#nav-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.25);
	z-index: 199;
}

#nav-overlay.open { display: block; }

/* Date controls */
#date-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

#date-controls input[type="date"] {
	font-size: 13px;
	padding: 6px 10px;
	border: 0.5px solid #ccc;
	border-radius: 6px;
	background: #fff;
	color: #1a1a1a;
}

/* Status */
#status {
	font-size: 14px;
	color: #666;
	margin-bottom: 12px;
	min-height: 20px;
}

/* Stats */
#stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	margin-bottom: 20px;
}

.stat-card {
	background: #f7f6f4;
	border-radius: 8px;
	padding: 12px;
}

.stat-label {
	font-size: 11px;
	color: #888;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.stat-value {
	font-size: 17px;
	font-weight: 500;
	color: #1a1a1a;
}

/* Legend */
#legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
	font-size: 13px;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.legend-dot {
	width: 10px;
	height: 3px;
	border-radius: 2px;
}

@media (prefers-color-scheme: dark) {
	body { background: #1a1a1a; color: #eee; }
	h1 { color: #eee; }
	#hamburger { color: #eee; border-color: #444; }
	#hamburger:hover { background: #2c2c2a; }
	#side-panel { background: #2c2c2a; border-color: #444; }
	.nav-btn { color: #ccc; }
	.nav-btn:hover { background: #3a3a38; }
	.nav-divider { border-color: #444; }
	#date-controls input[type="date"] { background: #2c2c2a; border-color: #444; color: #eee; }
	.stat-card { background: #222; }
	.stat-value { color: #eee; }
}
