.usage-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.3fr);
  gap: 16px;
  align-items: start;
}
.usage-board { display: grid; gap: 10px; }
.usage-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.usage-card {
  text-align: left;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 16px;
  color: #c4d8ec;
  font-size: .92rem;
  cursor: pointer;
}
.usage-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-weight: 680;
  letter-spacing: -.04em;
  line-height: 1.14;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.usage-card[aria-pressed="true"], .locale-options button[aria-pressed="true"] {
  border-color: #81d9ec;
  background: linear-gradient(122deg, #23465b, #193344);
  box-shadow: inset 3px 0 #83d8ec;
}
.usage-card:hover, .locale-options button:hover { border-color: #83b9d7; }
.usage-locales { padding: 13px 16px; border-radius: 16px; }
.usage-locales h3 { font-size: .875rem; margin: 0 0 9px; color: #c4d8ec; font-weight: 600; }
.locale-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.locale-options button {
  min-width: 0;
  border: 1px solid #a2cee530;
  border-radius: 9px;
  background: #14283b;
  color: #c1d6ea;
  padding: 5px 4px;
  cursor: pointer;
  font-size: .875rem;
}
.locale-options strong { display: block; color: #eef7fc; font-size: 1.03rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.locale-options .search-referrals { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; }
.usage-history { min-width: 0; }
.usage-history .segmented { flex-shrink: 0; }
.usage-history .panel-heading { flex-wrap: wrap; }
.usage-definition, .usage-footnote, .usage-status { color: var(--muted); line-height: 1.5; font-size: .875rem; }
.usage-definition { margin: 8px 0 12px; }
.usage-status { margin: 0 0 10px; }
.usage-footnote { margin: 8px 0; }
.usage-plot { position: relative; height: 175px; }
.usage-empty {
  display: grid;
  min-height: 175px;
  align-content: center;
  justify-items: center;
  margin: 0;
  color: #b5cbdf;
  font-size: .92rem;
}
.usage-history [hidden] { display: none; }
.usage-history details { border-top: 1px solid var(--edge); margin-top: 11px; padding-top: 8px; }
.usage-history summary { width: fit-content; padding: 4px 2px; color: #a9d8f8; font-size: .875rem; cursor: pointer; }
.usage-history :is(summary, .usage-table-scroll):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.usage-table-scroll { max-height: 230px; overflow: auto; margin-top: 6px; }
.usage-history table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .875rem; }
.usage-history :is(th, td) { padding: 7px 9px; text-align: left; border-bottom: 1px solid var(--edge); font-weight: normal; }
.usage-history thead th { position: sticky; top: 0; background: #1d3043; color: #bcd2e7; }
.usage-history tr > :last-child { text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .usage-card, .locale-options button { transition: border-color .17s, box-shadow .17s, transform .17s; }
  @media (hover: hover) { .usage-card:hover { transform: translateY(-2px); } }
}
@media (max-width: 860px) {
  .usage-layout { grid-template-columns: minmax(0, 1fr); }
  .usage-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .usage-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-card { padding: 12px 15px; }
  .usage-plot, .usage-empty { height: 170px; }
  .usage-history .segmented button { padding: 4px 9px; }
}
