.usage-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:1px;row-gap:0;background:#2b2d33;border-bottom:1px solid #2b2d33}.usage-status>span{min-width:0;padding:7px 10px;background:#15171b;color:#aeb4be;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.usage-status strong{color:#f4f1eb;margin-right:4px}.usage-value,.usage-reset{font-weight:600}.usage-percent{font-weight:700}.usage-good .usage-percent{color:#68d391}.usage-warning .usage-percent{color:#f6ad55}.usage-low .usage-percent{color:#fc8181}.usage-status>.status-connection-error{grid-column:1/-1;display:-webkit-box;overflow:hidden;background:#26171a;color:#ff7b86;font-size:13px;font-weight:600;line-height:1.4;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.chat-account-row{position:absolute;top:0;left:0;right:0;z-index:3;height:27px;padding:7px 10px;overflow:hidden;background:#15171b;color:#aeb4be;font-size:11px;text-overflow:ellipsis;white-space:nowrap;box-shadow:inset 0 -1px #2b2d33;animation:chat-account-row-in var(--motion-popup) var(--motion-ease-out) both}.chat-account-row strong{color:#f4f1eb;margin-right:4px}.chat-account-row>span{font-weight:600}@keyframes chat-account-row-in{from{opacity:0;clip-path:inset(0 0 100% 0);transform:translateY(-4px)}to{opacity:1;clip-path:inset(0);transform:none}}html[data-theme="light"] .app-shell .chat-account-row{background:#fff!important;background-color:#fff!important;color:#57606a!important;box-shadow:inset 0 -1px #d0d7de!important}html[data-theme="light"] .app-shell .chat-account-row strong{color:#1f2328!important}@media(max-width:640px){.usage-status>span{padding:6px;font-size:10px}.usage-status>.status-connection-error{font-size:12px}.chat-account-row{height:24px;padding:6px 10px;font-size:10px}}
.usage-settings-content{overflow:auto}.usage-settings-card{display:grid;gap:14px;padding:14px;border:1px solid #343842;border-radius:14px;background:#1c1f25}.usage-settings-account{display:grid;gap:3px;padding-bottom:12px;border-bottom:1px solid #343842}.usage-settings-account span,.usage-settings-detail{color:#aeb4be;font-size:12px}.usage-settings-limit{display:grid;gap:8px}.usage-settings-limit+.usage-settings-limit{padding-top:14px;border-top:1px solid #343842}.usage-settings-limit-heading,.usage-settings-reset>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.usage-settings-limit-value{font-weight:700}.usage-settings-limit.usage-good .usage-settings-limit-value{color:#68d391}.usage-settings-limit.usage-warning .usage-settings-limit-value{color:#f6ad55}.usage-settings-limit.usage-low .usage-settings-limit-value{color:#fc8181}.usage-settings-progress{height:8px;overflow:hidden;border-radius:999px;background:#2b2f37}.usage-settings-progress>span{display:block;height:100%;border-radius:inherit;background:#7ea8f8;transition:width var(--motion-popup) ease}.usage-settings-reset>div span{color:#aeb4be}.usage-settings-action{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:0 14px;border:1px solid #444a55;border-radius:10px;background:#272b33;color:#f4f1eb;font-weight:700}.usage-settings-action:disabled{opacity:.55}.usage-settings-refresh{margin-top:-4px}html[data-theme="light"] .app-shell .usage-settings-card{border-color:#d0d7de!important;background:#fff!important;background-color:#fff!important}html[data-theme="light"] .app-shell .usage-settings-progress{background:#eaeef2!important}html[data-theme="light"] .app-shell .usage-settings-action{border-color:#d0d7de!important;background:#fff!important;background-color:#fff!important;color:#1f2328!important}@media(max-width:640px){.usage-settings-content{padding-bottom:calc(24px + env(safe-area-inset-bottom))}.usage-settings-card{padding:13px 14px}.usage-settings-action{min-height:48px}}
.usage-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.usage-settings-note{margin:0 2px;color:#aeb4be;font-size:12px;line-height:1.45}.usage-account-list{display:grid;gap:14px}.usage-account-card{display:grid;gap:14px}.usage-credit-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;border-top:1px solid #343842}.usage-credit-row span{color:#aeb4be}.usage-account-trend{display:grid;gap:10px;padding-top:14px;border-top:1px solid #343842}.usage-account-trend h3{margin:0;font-size:14px}.usage-trend-range{display:flex;padding:2px;border-radius:10px;background:#272b33}.usage-trend-range button{min-width:60px;min-height:40px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#aeb4be;font-weight:700}.usage-trend-range button.active{background:#3a404b;color:#f4f1eb}.usage-trend{display:grid;gap:8px}.usage-trend-legend{display:flex;gap:14px;color:#aeb4be;font-size:11px}.usage-trend-legend span::before{content:"";display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:50%;background:#7ea8f8}.usage-trend-legend span.secondary::before{background:#b794f4}.usage-trend-chart{display:block;width:100%;height:120px;border-radius:10px;background:#17191e}.usage-trend-grid{stroke:#343842;stroke-width:1;vector-effect:non-scaling-stroke}.usage-trend-line{fill:none;stroke:#7ea8f8;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.usage-trend-line.secondary{stroke:#b794f4}.usage-trend-axis{display:flex;justify-content:space-between;color:#7f8692;font-size:10px}.usage-trend-empty{min-height:72px;margin:0;padding:20px 12px;border-radius:10px;background:#17191e;color:#aeb4be;font-size:12px;line-height:1.45;text-align:center}.usage-trend-empty.error{color:#ffb4a8}html[data-theme="light"] .app-shell .usage-trend-range{background:#eaeef2!important}html[data-theme="light"] .app-shell .usage-trend-range button.active{background:#fff!important;color:#1f2328!important}html[data-theme="light"] .app-shell .usage-trend-chart,html[data-theme="light"] .app-shell .usage-trend-empty{background:#f6f8fa!important}html[data-theme="light"] .app-shell .usage-trend-grid{stroke:#d8dee4}@media(max-width:640px){.usage-trend-range button{min-width:48px;min-height:48px}.usage-trend-chart{height:112px}}
.usage-sort-actions{display:flex;align-items:center;gap:2px;flex:0 0 auto}.usage-sort-control{position:relative;display:block}.usage-sort-trigger,.usage-sort-direction{position:relative;display:block;width:40px;height:40px;min-height:40px;padding:0;border:0;background:transparent}.usage-sort-trigger::before,.usage-sort-direction::before{content:"";position:absolute;inset:10px;background:#aeb4be;mask-position:center;mask-size:contain;mask-repeat:no-repeat}.usage-sort-trigger::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M7 12h10M10 17h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}.usage-sort-direction::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v16m0 0-5-5m5 5 5-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");transition:transform var(--motion-popup) ease}.usage-sort-direction.ascending::before{transform:rotate(180deg)}.usage-sort-trigger[aria-expanded="true"],.usage-sort-direction:active{background:#272b33}.usage-sort-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:30;display:grid;width:max-content;min-width:210px;overflow:hidden;border:1px solid #343842;border-radius:12px;background:#15171b;box-shadow:0 12px 28px rgba(0,0,0,.35);transform-origin:top right;animation:anchored-popup-in var(--motion-popup) var(--motion-ease-out) both}.usage-sort-menu button{min-height:48px;padding:0 14px;border:0;border-bottom:1px solid #24262b;border-radius:0;background:#15171b;color:#f4f1eb;text-align:left;font:inherit}.usage-sort-menu button:last-child{border-bottom:0}.usage-sort-menu button.active{background:#22252b;font-weight:700}.usage-credit-action{min-height:36px;padding:0 10px;width:auto;flex:0 0 auto;border-color:#4a505b;background:#272b33;font-size:12px;font-weight:700}.usage-credit-expiry{margin-top:-8px;color:#aeb4be;font-size:12px}.usage-credit-expiry.warning{color:#f6ad55}.usage-credit-expiry.urgent{color:#fc8181}html[data-theme="light"] .app-shell .usage-sort-menu,html[data-theme="light"] .app-shell .usage-sort-menu button{border-color:#d0d7de!important;background:#fff!important;color:#1f2328!important}html[data-theme="light"] .app-shell .usage-sort-trigger::before,html[data-theme="light"] .app-shell .usage-sort-direction::before{background:#57606a!important}html[data-theme="light"] .app-shell .usage-sort-trigger[aria-expanded="true"],html[data-theme="light"] .app-shell .usage-sort-menu button.active{background:#eaeef2!important}@media(max-width:640px){.usage-sort-trigger,.usage-sort-direction{width:48px;height:48px;min-height:48px}.usage-sort-trigger::before,.usage-sort-direction::before{inset:14px}}
.usage-trend-section{display:grid;gap:12px}.usage-trend-list{display:grid;gap:14px}.usage-trend-account{display:grid;gap:10px}.usage-trend-account h3{margin:0;font-size:14px}
.usage-trend-explainer{margin:0;color:#aeb4be;font-size:12px;line-height:1.45}.usage-trend-plot{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:stretch;gap:6px}.usage-trend-scale{display:flex;height:120px;flex-direction:column;justify-content:space-between;padding:7px 0;color:#7f8692;font-size:10px;text-align:right}.usage-trend-axis{margin-left:40px}@media(max-width:640px){.usage-trend-scale{height:112px}}
.usage-token-section,.usage-token-list,.usage-token-card{display:grid;gap:12px}.usage-token-heading,.usage-token-detail{display:flex;align-items:center;justify-content:space-between;gap:12px}.usage-token-heading h3{margin:0;font-size:14px}.usage-token-heading span,.usage-token-detail{color:#aeb4be;font-size:12px}.usage-token-chart{min-width:0}.usage-token-scroll{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}.usage-token-scroll::-webkit-scrollbar{display:none}.usage-token-grid{display:grid;grid-template-rows:repeat(7,1fr);grid-template-columns:repeat(26,minmax(8px,16px));grid-auto-flow:column;justify-content:space-between;gap:2px;padding:2px 0 5px}.usage-token-cell{width:100%;min-width:0;height:auto;min-height:0;aspect-ratio:1;padding:0;border:0;border-radius:3px;background:#2b2f37}.usage-token-cell--level-1{background:#284a3a}.usage-token-cell--level-2{background:#347052}.usage-token-cell--level-3{background:#46a36f}.usage-token-cell--level-4{background:#68d391}.usage-token-cell[aria-pressed="true"]{outline:0;box-shadow:inset 0 0 0 2px #f4f1eb}.usage-token-months{display:grid;height:18px;color:#7f8692;font-size:10px}.usage-token-months span{padding-top:2px;text-align:center;white-space:nowrap}.usage-token-detail{min-height:18px}.usage-token-detail strong{color:#f4f1eb}html[data-theme="light"] .app-shell .usage-token-cell{background:#eaeef2!important}html[data-theme="light"] .app-shell .usage-token-cell--level-1{background:#b6d7fe!important}html[data-theme="light"] .app-shell .usage-token-cell--level-2{background:#80bfff!important}html[data-theme="light"] .app-shell .usage-token-cell--level-3{background:#54aeff!important}html[data-theme="light"] .app-shell .usage-token-cell--level-4{background:#0969da!important}html[data-theme="light"] .app-shell .usage-token-cell[aria-pressed="true"]{box-shadow:inset 0 0 0 2px #1f2328}html[data-theme="light"] .app-shell .usage-token-detail strong{color:#1f2328}
.usage-range-control{position:relative;display:block;flex:0 0 auto}.usage-range-trigger{position:relative;display:grid;place-items:center;width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:10px;background:transparent;color:#aeb4be}.usage-range-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.usage-range-trigger[aria-expanded="true"]{background:#272b33}.usage-range-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:30;display:grid;width:max-content;min-width:132px;overflow:hidden;border:1px solid #343842;border-radius:12px;background:#15171b;box-shadow:0 12px 28px rgba(0,0,0,.35);transform-origin:top right;animation:anchored-popup-in var(--motion-popup) var(--motion-ease-out) both}.usage-range-menu button{min-height:48px;padding:0 16px;border:0;border-bottom:1px solid #24262b;border-radius:0;background:#15171b;color:#f4f1eb;text-align:left;font:inherit}.usage-range-menu button:last-child{border-bottom:0}.usage-range-menu button.active{background:#22252b;font-weight:700}.usage-trend-chart{touch-action:pan-y;cursor:grab;user-select:none}.usage-trend-chart:active{cursor:grabbing}.usage-trend-axis span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html[data-theme="light"] .app-shell .usage-range-trigger{color:#57606a!important}html[data-theme="light"] .app-shell .usage-range-trigger[aria-expanded="true"],html[data-theme="light"] .app-shell .usage-range-menu button.active{background:#eaeef2!important}html[data-theme="light"] .app-shell .usage-range-menu,html[data-theme="light"] .app-shell .usage-range-menu button{border-color:#d0d7de!important;background-color:#fff!important;color:#1f2328!important}@media(max-width:640px){.usage-range-trigger{width:48px;height:48px;min-height:48px}}
.usage-trend-canvas{position:relative;min-width:0}.usage-trend-no-data{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:12px;color:#aeb4be;font-size:12px;text-align:center;pointer-events:none}.usage-trend-axis{position:relative;height:14px}.usage-trend-axis span{position:absolute;width:38px;text-align:center;transform:translateX(-50%)}.usage-trend-grid.vertical{opacity:.55}.usage-trend-point{fill:#7ea8f8}.usage-trend-point.secondary{fill:#b794f4}
.usage-range-menu{top:calc(100% + 8px);bottom:auto;max-height:calc(100dvh - 96px);overflow-y:auto;transform-origin:top right}
.usage-weekly-summary{display:grid;gap:8px}.usage-weekly-summary-list{display:grid;gap:8px}.usage-weekly-summary-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px;padding:10px 13px;border:1px solid #343842;border-radius:12px;background:#1c1f25}.usage-weekly-summary-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.usage-weekly-summary-meta{display:flex;min-width:0;align-items:center;justify-content:flex-end;gap:8px}.usage-weekly-summary-meta>span:last-child{max-width:150px;overflow:hidden;color:#aeb4be;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.usage-weekly-summary-value{font-size:14px;font-weight:800;white-space:nowrap}.usage-weekly-summary-card.usage-good .usage-weekly-summary-value{color:#68d391}.usage-weekly-summary-card.usage-warning .usage-weekly-summary-value{color:#f6ad55}.usage-weekly-summary-card.usage-low .usage-weekly-summary-value{color:#fc8181}.usage-detail-actions{display:flex;align-items:center;gap:2px}.usage-account-detail{display:grid;gap:14px}.usage-account-block{display:grid;gap:10px;padding-top:14px;border-top:1px solid #343842}.usage-account-block>h3{font-size:14px}html[data-theme="light"] .app-shell .usage-weekly-summary-card{border-color:#d0d7de!important;background:#fff!important;background-color:#fff!important}html[data-theme="light"] .app-shell .usage-settings-limit.usage-good .usage-settings-limit-value{color:#1a7f37!important}html[data-theme="light"] .app-shell .usage-settings-limit.usage-warning .usage-settings-limit-value{color:#9a6700!important}html[data-theme="light"] .app-shell .usage-settings-limit.usage-low .usage-settings-limit-value{color:#cf222e!important}html[data-theme="light"] .app-shell .usage-weekly-summary-card.usage-good .usage-weekly-summary-value{color:#1a7f37!important}html[data-theme="light"] .app-shell .usage-weekly-summary-card.usage-warning .usage-weekly-summary-value{color:#9a6700!important}html[data-theme="light"] .app-shell .usage-weekly-summary-card.usage-low .usage-weekly-summary-value{color:#cf222e!important}@media(max-width:640px){.usage-weekly-summary-card{column-gap:8px;padding-inline:10px}.usage-weekly-summary-meta{gap:6px}.usage-weekly-summary-meta>span:last-child{max-width:112px}}
.usage-token-period{display:flex;align-items:center}.usage-token-period button{min-height:48px;padding:0 7px;border:0;background:transparent;color:#7f8692;font-size:12px}.usage-token-period button.active{color:#f4f1eb;font-weight:800}html[data-theme="light"] .app-shell .usage-token-period button{color:#6e7781!important}html[data-theme="light"] .app-shell .usage-token-period button.active{color:#1f2328!important}
.usage-settings-limit{gap:6px}.usage-settings-limit+.usage-settings-limit{padding-top:10px}.usage-settings-limit-meta{display:flex;align-items:center;gap:7px;min-width:0}.usage-settings-limit-meta .usage-settings-detail{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.usage-token-chart{position:relative}.usage-token-chart.has-selection{padding-top:38px}.usage-token-tooltip{position:absolute;top:0;right:0;z-index:2;max-width:100%;overflow:hidden;padding:7px 10px;border:1px solid #444a55;border-radius:11px;background:#272b33;color:#f4f1eb;font-size:12px;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 4px 12px rgba(0,0,0,.2)}html[data-theme="light"] .app-shell .usage-token-tooltip{border-color:#d0d7de!important;background:#fff!important;color:#1f2328!important;box-shadow:0 3px 10px rgba(31,35,40,.08)}
.usage-account-block-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.usage-account-block-heading h3{margin:0;font-size:14px}.usage-account-trend-block .usage-range-control{z-index:4}html[data-theme="light"] .app-shell .usage-sort-trigger,html[data-theme="light"] .app-shell .usage-sort-direction,html[data-theme="light"] .app-shell .usage-range-trigger{border:0!important;background:transparent!important;box-shadow:none!important}
@media(max-width:640px){.usage-token-grid,.usage-token-months{width:150%}}
.usage-warning .usage-percent{color:#f0a33a}
html[data-theme="light"] .app-shell .usage-settings-limit.usage-warning .usage-settings-limit-value{color:#f0a33a!important}
html[data-theme="light"] .app-shell .usage-weekly-summary-card.usage-warning .usage-weekly-summary-value{color:#f0a33a!important}
.usage-sort-trigger::before,.usage-sort-direction::before{content:none}.usage-sort-trigger>svg,.usage-sort-direction>svg{position:absolute;inset:10px;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.usage-sort-direction>svg{transition:transform var(--motion-popup) ease}.usage-sort-direction.ascending>svg{transform:rotate(180deg)}@media(max-width:640px){.usage-sort-trigger>svg,.usage-sort-direction>svg{inset:14px}}
