/* Compact footer: scoped styles shared by source and the production-only patch. */
.usage-plan-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 16px; row-gap: 12px; margin-top: 14px; position: relative; }
.widget-container .usage-plan-footer .view-history-button { position: static !important; margin: 0; width: auto; flex-shrink: 0; }
.usage-compact { font-family: 'Manrope', sans-serif; letter-spacing: -0.4px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; color: #fff; }
.usage-compact-label { color: rgba(255,255,255,.55); font-size: 13px; font-weight: 600; }
.usage-compact-periods { display: flex; align-items: center; padding: 2px; background: rgba(255,255,255,.03); border: 1px solid rgba(234,236,245,.09); border-radius: 7px; }
.usage-compact-periods button { padding: 5px 7px; border: 1px solid transparent; border-radius: 5px; color: rgba(255,255,255,.55); background: transparent; font: 600 12px/1 'Manrope', sans-serif; white-space: nowrap; cursor: pointer; }
.usage-compact-periods button:hover { color: #fff; }
.usage-compact-periods button[aria-pressed="true"] { color: #a995ff; border-color: rgba(112,85,226,.3); background: rgba(112,85,226,.15); }
.usage-compact-periods button:focus-visible { outline: 2px solid #a995ff; outline-offset: 2px; }
/* Reserve both lines even when the selected period has no partial-history note. */
.usage-compact-result { min-width: 7.5em; min-height: 3em; flex-shrink: 0; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.usage-compact-result strong { display: block; font-weight: 700; white-space: nowrap; }
.usage-compact-result strong span { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 600; }
.usage-compact-result small { display: block; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.5; margin-top: 3px; white-space: nowrap; }
.usage-compact-unavailable { font-size: 12px; color: rgba(255,255,255,.55); }
.usage-compact-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 480px) {
  .widget-container .usage-plan-footer .view-history-button { margin-left: auto; }
  .usage-compact { gap: 8px; }
}
