/* 6090ti usage-tidy (owner 2026-10-19): the user usage page no longer shows reasoning
   effort, endpoint, IP (and region lookup), group, type and billing mode, nor the group
   and endpoint distribution cards or their filters. Presentation only; the CSV export
   and the stored records are unchanged. If a future build renames these elements the
   selectors stop matching and the native items reappear. */
.p6090ti-usage-page #app main [data-field="reasoning_effort"],
.p6090ti-usage-page #app main [data-field="endpoint"],
.p6090ti-usage-page #app main [data-field="ip_address"],
.p6090ti-usage-page #app main [data-field="client_ip"],
.p6090ti-usage-page #app main [data-field="group"],
.p6090ti-usage-page #app main [data-field="stream"],
.p6090ti-usage-page #app main [data-field="type"],
.p6090ti-usage-page #app main [data-field="billing_mode"],
.p6090ti-usage-page #app main .p6090ti-ut-hidden { display: none !important; }
.p6090ti-ut-detail { font: inherit; font-size: 12px; line-height: 18px; padding: 3px 10px; border: 1px solid #1f7a55; border-radius: 0; background: transparent; color: #1f7a55; cursor: pointer; white-space: nowrap; }
.p6090ti-ut-detail:hover { background: #1f7a55; color: #fff; }
.dark .p6090ti-ut-detail { border-color: #4fae7f; color: #4fae7f; }
.dark .p6090ti-ut-detail:hover { background: #4fae7f; color: #0b1216; }
.p6090ti-ut-card-detail { display: flex; justify-content: flex-end; padding-top: 8px; }

/* Chart row: the model card and the token trend card share one grid (side by side from 1280px,
   where the content area beside the sidebar is wide enough for both). */
.p6090ti-usage-page .p6090ti-ut-charts{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;}
.p6090ti-usage-page .p6090ti-ut-charts>*{margin-top:0!important;margin-bottom:0!important;min-width:0;}
.p6090ti-usage-page .p6090ti-ut-charts>:not(.p6090ti-ut-flat){grid-column:1/-1;}
.p6090ti-usage-page .p6090ti-ut-charts>.p6090ti-ut-flat{display:contents;}
@media(min-width:1280px){.p6090ti-usage-page .p6090ti-ut-charts{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;}}
/* Model card: no donut; the table takes the full card and shows a share bar per model. */
.p6090ti-usage-page .p6090ti-ut-model .h-48.w-48.shrink-0{display:none!important;}
.p6090ti-usage-page .p6090ti-ut-model .max-h-48{max-height:300px;}
/* The model table's header row stays in place while its rows scroll. */
.p6090ti-usage-page .p6090ti-ut-model table>thead>tr>th{position:sticky;top:0;z-index:1;background:var(--p6090ti-ut-card-bg,#fff);box-shadow:inset 0 -1px 0 #d3ded7;}
.dark .p6090ti-usage-page .p6090ti-ut-model table>thead>tr>th,.p6090ti-usage-page.dark .p6090ti-ut-model table>thead>tr>th{box-shadow:inset 0 -1px 0 #2a3a44;}
.p6090ti-ut-share{text-align:right;}
/* Long model names wrap instead of being cut off. */
.p6090ti-usage-page .p6090ti-ut-model table td:first-child,.p6090ti-usage-page .p6090ti-ut-model table td:first-child *{white-space:normal;overflow-wrap:anywhere;text-overflow:clip;max-width:none;}
.p6090ti-ut-track{display:block;width:100%;max-width:220px;height:4px;margin-top:6px;background:#e3ece7;overflow:hidden;}
.p6090ti-ut-fill{display:block;height:100%;width:0;background:#1f7a55;transition:width .25s ease;}
.p6090ti-ut-pct{font-variant-numeric:tabular-nums;font-size:12px;color:#4b5b66;white-space:nowrap;}
.dark .p6090ti-ut-track{background:#2a3a44;}.dark .p6090ti-ut-fill{background:#4fae7f;}.dark .p6090ti-ut-pct{color:#9fb3a7;}
/* Phones: keep model, the active metric columns and share; drop "requests" (2nd) and "standard" (5th). */
@media(max-width:640px){
  .p6090ti-usage-page .p6090ti-ut-model table th:nth-child(2),.p6090ti-usage-page .p6090ti-ut-model table td:nth-child(2),
  .p6090ti-usage-page .p6090ti-ut-model table th:nth-child(5),.p6090ti-usage-page .p6090ti-ut-model table td:nth-child(5){display:none;}
}
@media(prefers-reduced-motion:reduce){.p6090ti-ut-fill{transition:none;}}
/* Tablets / small laptops: let the record table fit its card (tighter cells, wrapping
   model and time) so the time and details columns are not pushed out of view. */
@media(max-width:1279px){
  .p6090ti-usage-page table[data-p6090ti-ut]{min-width:0!important;width:100%;}
  .p6090ti-usage-page table[data-p6090ti-ut]>thead>tr>th,.p6090ti-usage-page table[data-p6090ti-ut]>tbody>tr>td{padding-left:6px!important;padding-right:6px!important;}
  .p6090ti-usage-page table[data-p6090ti-ut]>tbody>tr>td{white-space:normal!important;}
  .p6090ti-usage-page table[data-p6090ti-ut]>tbody>tr>td *{white-space:normal;}
  /* Only the key and model columns may break inside a word; numbers and times wrap at spaces. */
  .p6090ti-usage-page table[data-p6090ti-ut]>tbody>tr>td:nth-child(-n+2),.p6090ti-usage-page table[data-p6090ti-ut]>tbody>tr>td:nth-child(-n+2) *{overflow-wrap:anywhere;}
  .p6090ti-usage-page table[data-p6090ti-ut]>tbody>tr>td:nth-child(n+3) *{overflow-wrap:normal;word-break:keep-all;}
  .p6090ti-usage-page table[data-p6090ti-ut]>tbody>tr>td:nth-child(1){min-width:84px;}
  .p6090ti-usage-page table[data-p6090ti-ut]>tbody>tr>td:nth-child(n+3) .flex:not(.items-stretch){flex-wrap:wrap;}
  .p6090ti-usage-page table[data-p6090ti-ut]>tbody>tr>td:nth-child(2){min-width:120px;}
  .p6090ti-usage-page table[data-p6090ti-ut] .p6090ti-ut-detail{white-space:nowrap;}
}
/* Trend card: when it sits beside the (taller) model card, the chart grows to fill the
   card instead of keeping its fixed 12rem and leaving empty space below. */
.p6090ti-usage-page .p6090ti-ut-trend{display:flex;flex-direction:column;}
.p6090ti-usage-page .p6090ti-ut-trend>.h-48{flex:1 1 auto;height:auto;min-height:12rem;position:relative;}
.p6090ti-usage-page .p6090ti-ut-trend>.h-48>canvas{position:absolute;inset:0;}
/* Filters (640–1279px): with three filters left, give them their own full row so they sit
   side by side instead of stacking one per line next to the action buttons. */
@media(min-width:640px) and (max-width:1279px){
  .p6090ti-usage-page .p6090ti-ut-filters{flex:1 1 100%;}
  .p6090ti-usage-page .p6090ti-ut-filters>:not(.p6090ti-ut-hidden){flex:1 1 160px;min-width:0!important;}
}
/* Dashboard: hide the duplicated time-range + model distribution + token trend block. */
.p6090ti-dashboard-page #app main .p6090ti-ut-dash-hidden{display:none!important;}
.p6090ti-dash-merged.p6090ti-dashboard-page #app main { visibility: hidden; }
.p6090ti-ut-stats { display: flex; flex-direction: column; gap: 1rem; }
/* Column settings: the columns hidden above are no longer offered there either. */
.p6090ti-usage-page [data-testid="usage-column-toggle-reasoning_effort"],
.p6090ti-usage-page [data-testid="usage-column-toggle-endpoint"],
.p6090ti-usage-page [data-testid="usage-column-toggle-ip_address"],
.p6090ti-usage-page [data-testid="usage-column-toggle-group"],
.p6090ti-usage-page [data-testid="usage-column-toggle-stream"],
.p6090ti-usage-page [data-testid="usage-column-toggle-billing_mode"] { display: none !important; }
