.ai-usage-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.ai-usage-toolbar p { font-size: .75rem; color: var(--text-muted); }
.ai-usage-toolbar label { display: grid; gap: .25rem; font-size: .7rem; font-weight: 800; }
.ai-usage-toolbar select {
  padding: .45rem .65rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--glass-bg);
  color: var(--text);
}
.ai-usage-dashboard { display: grid; gap: 1rem; }
.ai-usage-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.ai-usage-cards > div {
  display: grid;
  gap: .2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: .8rem;
  background: color-mix(in oklab, var(--brand-sage) 7%, var(--glass-bg));
}
.ai-usage-cards span, .ai-usage-cards small { font-size: .67rem; color: var(--text-muted); }
.ai-usage-cards strong { font-size: 1.35rem; color: var(--text); }
.ai-usage-grid { display: grid; grid-template-columns: minmax(16rem, .75fr) minmax(0, 1.25fr); gap: .8rem; }
.ai-usage-grid > section, .ai-usage-breakdown { padding: 1rem; border: 1px solid var(--border); border-radius: .8rem; }
.ai-usage-grid h3, .ai-usage-breakdown h3 { margin-bottom: .75rem; font-size: .78rem; font-weight: 800; }
.ai-usage-limit { display: grid; gap: .3rem; margin: .7rem 0; }
.ai-usage-limit > div:first-child { display: flex; justify-content: space-between; gap: .7rem; font-size: .69rem; }
.ai-usage-progress { height: .45rem; overflow: hidden; border-radius: 99px; background: color-mix(in oklab, var(--border) 70%, transparent); }
.ai-usage-progress i { display: block; height: 100%; border-radius: inherit; background: var(--brand-sage); }
.ai-usage-settings-link { display: inline-block; margin-top: .5rem; font-size: .68rem; color: var(--brand-sage-deep, #55755f); font-weight: 800; }
.ai-usage-chart { height: 10rem; display: flex; align-items: end; gap: 2px; padding-top: .5rem; border-bottom: 1px solid var(--border); }
.ai-usage-chart i { flex: 1; min-width: 2px; border-radius: 3px 3px 0 0; background: var(--brand-sage); opacity: .8; }
.ai-usage-breakdown table { width: 100%; font-size: .72rem; }
.ai-usage-breakdown th, .ai-usage-breakdown td { padding: .55rem; text-align: left; }
.ai-escalation-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; border-radius: 99px; background: #c53b32; color: #fff; font-size: .65rem; font-weight: 900; }
.ai-escalation-badge.hidden { display: none; }
@media (max-width: 900px) {
  .ai-usage-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-usage-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ai-usage-cards { grid-template-columns: 1fr; }
  .ai-usage-toolbar { align-items: start; flex-direction: column; }
}
.hsu-ai-contact select { border: 1px solid #ffffff25; border-radius: .5rem; background: #263b2e; color: #fff; padding: .55rem; }
