.usage { background: #f4f7f6; color: #14251f; padding: clamp(16px, 3vw, 36px); }
.usage h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -.04em; }
.usage h2 { font-size: 17px; font-weight: 650; }
.usage-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: end; }
.usage-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.usage-controls select, .usage-controls button { background: white; border: 1px solid #d7e3df; border-radius: 9px; padding: 8px 12px; font-size: 14px; }
.usage-controls button:disabled { opacity: .55; }
.usage-controls button:hover { background: #e8f6f0; }
.usage-subtle { color: #52665e; font-size: 13px; }
.usage-error { color: #a02337; }
.usage-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(118px,1fr)); gap: 10px; margin: 20px 0; }
.usage-card, .usage-box { background: white; border: 1px solid #e0e9e5; border-radius: 14px; padding: 15px; min-width: 0; }
.usage-card dt { font-size: 13px; color: #52665e; }
.usage-card dd { margin: 4px 0 0; font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; }
.usage-card[data-count="sent"] dd { color: #007359; }
.usage-card[data-count="failed"] dd { color: #a02337; }
.usage-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 290px),1fr)); gap: 12px; margin: 12px 0; }
.usage-table { overflow-x: auto; }
.usage table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.usage th, .usage td { border-bottom: 1px solid #ebf0ee; padding: 8px 5px; text-align: right; }
.usage th:first-child, .usage td:first-child { text-align: left; }
.usage thead { color: #52665e; }
.usage-chart { display: flex; height: 136px; align-items: stretch; gap: 3px; border-bottom: 1px solid #d7e3df; margin: 12px 0 4px; }
.usage-chart div { flex: 1; min-width: 2px; display: flex; justify-content: end; flex-direction: column; }
.usage-chart span { display: block; background: #008d70; }
.usage-chart span:first-child { background: #bc4960; }
.usage details { margin-top: 12px; }
.usage summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.usage-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; }
@media (max-width: 767px) {
  #dash nav { display: flex; flex: none; overflow-x: auto; }
  #dash .nav-item { flex: 0 0 auto; width: auto; gap: 7px; padding: 7px 10px; white-space: nowrap; }
  #dash .nav-item .nav-ico { width: 30px; height: 30px; }
  #dash .nav-item .nav-ico + span > span:nth-child(2) { display: none; }
}
.usage-chart span { width: min(100%, 28px); margin-inline: auto; }
.usage-failure-log { margin-bottom: 12px; }
.usage-failure-log th, .usage-failure-log td { text-align: left; }
.usage-failure-log th:first-child, .usage-failure-log td:first-child { white-space: nowrap; }
.chat-resend { border: 1px solid #89b5aa; border-radius: 8px; background: white; color: #00674f; font-size: 13px; padding: 3px 9px; margin-top: 5px; }
