/* ── Period selector ── */
.dash-period {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dash-period-btn {
    width: auto;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    background: #2a2a2a;
}

.dash-period-btn:hover {
    background: #333;
}

.dash-period-btn.active {
    background: #2563eb;
}

.dash-period-btn.active:hover {
    background: #1d4ed8;
}

/* ── Stat tiles ── */
.dash-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dash-tile {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.dash-tile-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f0f0f0;
}

.dash-tile-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-top: 0.15rem;
}

/* ── Chart cards ── */
.dash-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.dash-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.dash-hint {
    font-size: 0.75rem;
    font-weight: 400;
    color: #888;
    margin-left: 0.4rem;
}

.dash-empty,
.dash-note {
    font-size: 0.8rem;
    color: #888;
}

.dash-note {
    margin-top: 0.5rem;
}

/* ── Trend line (SVG) ── */
.dash-trend-svg {
    width: 100%;
    height: auto;
    display: block;
}

.dash-axis {
    stroke: #444;
    stroke-width: 1;
}

.dash-grid {
    stroke: #2a2a2a;
    stroke-width: 1;
    stroke-dasharray: 3 3;
}

.dash-axis-label {
    fill: #888;
    font-size: 11px;
}

.dash-line {
    fill: none;
    stroke: #2563eb;
    stroke-width: 2;
    stroke-linejoin: round;
}

.dash-dot {
    fill: #2563eb;
}

/* ── Heatmap ── */
.dash-heatmap {
    display: grid;
    gap: 2px;
    align-items: center;
}

.dash-heat-hour,
.dash-heat-day {
    font-size: 0.65rem;
    color: #888;
    text-align: center;
}

.dash-heat-day {
    text-align: left;
    font-size: 0.75rem;
}

.dash-heat-cell {
    aspect-ratio: 1;
    border-radius: 2px;
}

/* ── Bars ── */
.dash-bar-group {
    margin-bottom: 0.6rem;
}

.dash-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.dash-bar-label {
    width: 5rem;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #ccc;
}

.dash-bar-track {
    flex: 1;
    height: 0.9rem;
}

.dash-bar-fill {
    height: 100%;
    min-width: 2px;
    border-radius: 3px;
    background: #2563eb;
}

.dash-bar-fill.requested {
    background: #6b7280;
}

.dash-bar-count {
    width: 2.5rem;
    flex-shrink: 0;
    text-align: right;
    font-size: 0.8rem;
    color: #999;
}

.dash-legend {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    color: #999;
}

.dash-legend-item::before {
    content: '';
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 2px;
    margin-right: 0.35rem;
    background: #2563eb;
}

.dash-legend-item.requested::before {
    background: #6b7280;
}
