/* Rating-history sparkline — matches mobile RatingChart.tsx. */

[data-rating-chart] {
    --rating-chart-accent: #FF5500;
    --rating-chart-divider: #e2e6ea;
    width: 100%;
    min-height: 140px;
}

.rating-chart__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.rating-chart__label {
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
}

.rating-chart__value {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.3px;
    color: #1A365D;
    line-height: 1;
}

.rating-chart__delta {
    text-align: right;
}

.rating-chart__change {
    font-size: 14px;
    font-weight: 700;
}

.rating-chart__change.is-up { color: #22c55e; }
.rating-chart__change.is-down { color: #ef4444; }

.rating-chart__svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.rating-chart__empty {
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 13px;
    text-align: center;
    padding: 1.25rem 1rem;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (prefers-color-scheme: dark) {
    [data-rating-chart] {
        --rating-chart-divider: #2e2e36;
    }
    .rating-chart__value { color: #fafafa; }
    .rating-chart__label { color: #a1a1aa; }
    .rating-chart__empty {
        background-color: #1c1c22;
        color: #a1a1aa;
    }
}
