/* AI costs (AI-2052): the summary first, then the money by kind of work, operation, model, customer and channel. */
.ai-costs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-costs__account {
    min-width: 220px;
}

.ai-costs__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.ai-costs__stat-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: calc(-1 * 12px);
    padding: 0 16px;
    font-size: 12px;
    color: var(--ui-text-3);
    font-variant-numeric: tabular-nums;
}

.ai-costs__chart-skeleton .ui-skeleton {
    display: block;
    height: 280px;
    border-radius: var(--ui-radius);
}

.ai-costs__kinds {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 16px 0 0;
}

.ai-costs__kinds dt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ui-text);
}

.ai-costs__kinds dt i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.ai-costs__kinds dd {
    margin: 2px 0 0 18px;
    font-size: 12px;
    color: var(--ui-text-3);
    font-variant-numeric: tabular-nums;
}

.ai-costs__two {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 20px;
}

@media (max-width: 960px) {
    .ai-costs__two {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ai-costs .ai-costs__num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ai-costs__sub {
    display: block;
    font-size: 12px;
    color: var(--ui-text-3);
}

.ai-costs__kind-badge {
    margin-left: 8px;
}

.ai-costs__split {
    display: flex;
    height: 8px;
    min-width: 90px;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--ui-accent) 30%, transparent);
}

.ai-costs__split-live {
    display: block;
    height: 100%;
    background: var(--ui-accent);
}

.ai-costs__trend {
    font-weight: 600;
    color: var(--ui-text-2);
}

.ai-costs__trend--up {
    color: var(--ui-tone-danger);
}

.ai-costs__trend--down {
    color: var(--ui-tone-success);
}

.ai-costs__slow {
    display: grid;
    gap: 12px;
}

.ai-costs__slow .ui-skeleton {
    display: block;
    height: 14px;
    border-radius: 6px;
}

.ai-costs__slow-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--ui-text-2);
}
