/* ---------------- Stats panel: shared engine styles ---------------- */

.stats-panel {
	background: var(--bg-panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	margin-top: 1.5rem;
	box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.stats-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 1.1rem;
	background: var(--bg-panel-2);
	border-bottom: 1px solid var(--line);
	flex-wrap: wrap;
}
.stats-panel-header h2 {
	margin: 0;
	border: none;
	padding: 0;
	font-size: 1rem;
	color: var(--teal);
}

.stats-panel-select {
	font-family: var(--mono);
	font-size: 0.82rem;
	background: var(--bg-panel);
	color: var(--fg-dim);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 0.3rem 0.6rem;
}
.stats-panel-select:hover { border-color: var(--line-bright); }

.stats-panel-body { padding: 1.1rem 1.1rem 1.4rem; position: relative; }

.stats-panel-message {
	color: var(--fg-faint);
	font-family: var(--mono);
	font-size: 0.88rem;
	text-align: center;
	padding: 2.5rem 1rem;
}
.stats-panel-message a { font-size: 0.85rem; }

/* ---------------- Distribution: whisker + chart ---------------- */

.fpl-card-whisker svg { width: 100%; height: 10px; display: block; }
.whisker-line, .whisker-cap { stroke: var(--teal); stroke-width: 1.2; }
.whisker-mean { fill: var(--orange); }

.fpl-top15-chart .u-legend { display: none; }

/* ---------------- Timeline ---------------- */

.timeline-list { display: flex; flex-direction: column; }
.timeline-row { display: flex; gap: 0.7rem; align-items: stretch; }
.timeline-rail { display: flex; flex-direction: column; align-items: center; }
.timeline-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.timeline-rail::after {
	content: "";
	display: block;
	width: 1px;
	flex: 1;
	background: var(--line);
	margin: 2px auto 0;
}
.timeline-row:last-child .timeline-rail::after { display: none; }
.timeline-text {
	font-family: var(--mono);
	font-size: 0.82rem;
	color: var(--fg-dim);
	padding-bottom: 0.9rem;
}
.timeline-gw { color: var(--blue); }
.timeline-empty { color: var(--fg-faint); font-family: var(--mono); font-size: 0.85rem; }
