.api-usage{border-bottom:1px solid var(--border);padding-bottom:24px;margin-bottom:28px;min-width:0}
.api-usage .section-heading{gap:16px;flex-wrap:wrap}
.api-usage h2{margin-bottom:6px}.api-usage h3{font-size:15px;margin:0;overflow-wrap:anywhere}
.api-usage h3 small{font-size:12px;font-weight:400;color:var(--muted);margin-left:8px}
.api-usage .hint{margin:8px 0}.api-usage-key{border-top:1px solid var(--border);padding:18px 0 8px}
.api-usage-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}
.api-usage-counts dt{font-size:12px;color:var(--muted)}.api-usage-counts dd{font-size:21px;font-weight:500;margin:7px 0;font-variant-numeric:tabular-nums}
.api-usage-counts dd small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:4px}
.api-usage-balance{display:flex;gap:16px;align-items:center;justify-content:space-between;background:var(--surface);padding:16px;border-radius:6px;flex-wrap:wrap}
.api-usage-balance strong{font-size:14px}.api-usage-balance small{display:block;color:var(--muted);font-size:12px;margin-top:6px}
.api-usage-warning{padding:12px 16px;border-left:3px solid #a16512;background:#fff5e4;color:#744a11;font-size:13px;line-height:1.7}
.api-usage-notes{font-size:12px;color:var(--muted)}.api-usage-notes p{line-height:1.7}
@media(max-width:900px){.api-usage-counts{grid-template-columns:repeat(2,minmax(0,1fr))}}

.api-usage-limit{border:1px solid var(--border);border-radius:var(--radius-card);padding:16px;margin:16px 0 24px;background:var(--surface)}
.api-usage-limit h3{margin:0 0 12px}
.api-usage-meter{margin:0 0 14px}
.api-usage-meter-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-variant-numeric:tabular-nums}
.api-usage-bar{position:relative;height:10px;background:var(--rule);border-radius:var(--radius-control);margin:6px 0 4px;overflow:visible}
.api-usage-bar i{display:block;height:100%;background:var(--accent);border-radius:inherit}
.api-usage-bar b{position:absolute;top:-3px;width:2px;height:16px;background:var(--warning)}
.api-usage-meter.over .api-usage-bar i{background:var(--warning)}
.api-usage-meter.over strong{color:var(--warning)}
.api-usage-meter small{color:var(--muted)}
