/* aeo-audit: aeo-usage-pill - header plan-usage indicators.
 *
 * Two compact pills in the dashboard header (Audits used/cap today, Pages
 * audited/URL cap) for Lite/Pro; a single "Scale - Unlimited" badge for Scale.
 * Numbers are always visible; verbose labels sit behind .mobile_d_none so the
 * pills wrap/shrink with the other header buttons. Near-limit pills go amber,
 * reusing the same severity-warning hues used across the app (cf.
 * aeo-score-strip __sev--warning). Light + dark. No new color tokens. */

.aeo-usage-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid rgb(229 231 235);
    background-color: rgb(249 250 251);
    color: rgb(82 82 82);
}
:is(.dark .aeo-usage-pill) {
    border-color: rgb(64 64 64);
    background-color: rgb(38 38 38);
    color: rgb(212 212 212);
}

.aeo-usage-pill__icon {
    font-size: 1rem;
    flex: 0 0 auto;
    color: rgb(115 115 115);
}
:is(.dark .aeo-usage-pill__icon) {
    color: rgb(163 163 163);
}

.aeo-usage-pill__nums {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgb(31 41 55);
}
:is(.dark .aeo-usage-pill__nums) {
    color: rgb(243 244 246);
}

.aeo-usage-pill__label,
.aeo-usage-pill__text {
    font-weight: 500;
}

/* Near-limit (at/over cap): amber, same hues as the severity-warning pills. */
.aeo-usage-pill--warn {
    border-color: #fcd34d;
    background-color: #fef3c7;
    color: #b45309;
}
.aeo-usage-pill--warn .aeo-usage-pill__icon,
.aeo-usage-pill--warn .aeo-usage-pill__nums {
    color: #b45309;
}
:is(.dark .aeo-usage-pill--warn) {
    border-color: rgba(245, 158, 11, 0.4);
    background-color: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
}
:is(.dark .aeo-usage-pill--warn) .aeo-usage-pill__icon,
:is(.dark .aeo-usage-pill--warn) .aeo-usage-pill__nums {
    color: #fbbf24;
}

/* Scale unlimited badge: neutral pill with a brand-tinted glyph. */
.aeo-usage-pill--unlimited .aeo-usage-pill__icon {
    color: var(--clr-primary);
}
