/* ── Trends view ─────────────────────────────────────────────────── */
#trends-view {
    display: none;
    padding: 20px 16px;
    max-width: 960px;
    margin: 0 auto;
}
#trends-view.active {
    display: block;
}
.trends-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.trends-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}
.trends-range-btns {
    display: flex;
    gap: 4px;
}
.trends-range-btn {
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.trends-range-btn:not(.active):hover {
    background-color: var(--surface-2);
}
.trends-range-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.trends-chart-wrap {
    position: relative;
    height: 400px;
    width: 100%;
}
#trends-loader {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.trends-note {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* Mobile */
@media (max-width: 640px) {
    .trends-chart-wrap {
        height: 280px;
    }
    .trends-title {
        font-size: 1.1rem;
    }
}
