/* One type family for the whole product; code keeps a true monospace face. */
@font-face{font-family:Onest;src:url('/assets/fonts/onest-latin.woff2') format('woff2');font-style:normal;font-weight:400 800;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Onest;src:url('/assets/fonts/onest-cyrillic.woff2') format('woff2');font-style:normal;font-weight:400 800;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
:root{--font-ui:Onest,"Segoe UI",sans-serif;font-family:var(--font-ui)}
body,button,input,textarea,select,summary,.ec-landing,.ec-landing :is(h1,h2,h3,button),.usage-chart text{font-family:var(--font-ui)}
h1,h2,h3{font-weight:700}
code,pre,.mono{font-family:"Cascadia Code",Consolas,monospace}
/* Keep scroll/keyboard/touch behavior. Only native scrollbar chrome is hidden. */
html,body,*{scrollbar-width:none!important;-ms-overflow-style:none;scrollbar-gutter:auto!important}
*::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.provider-brand-icon{display:inline-block;width:24px;height:24px;flex:0 0 24px;object-fit:contain}
.provider-brand-icon.brand-monochrome{filter:brightness(0) invert(1)}
.dashboard-page .overview-cards{grid-template-columns:1.65fr 1.2fr 1.2fr;gap:18px}
.overview-cards>.panel{min-height:275px;padding:24px}
.overview-cards .section-title{font-size:14px;font-weight:550}
.overview-cards .balance-number{font:700 clamp(48px,5.1vw,76px)/1.08 var(--font-ui);letter-spacing:-.065em;white-space:normal;overflow-wrap:anywhere;margin:12px 0 26px;font-variant-numeric:tabular-nums}
.dashboard-page .request-bottom{align-items:center;gap:12px;min-width:0;margin-top:auto;margin-bottom:8px}
.dashboard-page .request-bottom>strong{display:block;font-family:var(--font-ui);font-size:var(--request-size,160px);line-height:.95;font-weight:750;letter-spacing:-.075em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}
.dashboard-page .request-bottom>div{font-family:var(--font-ui);font-size:23px;flex-shrink:0}
.request-bottom .no-requests-label{font-size:11px;line-height:1.5;display:block;max-width:78px}
.request-bottom small{font-family:var(--font-ui);font-size:12px}
.dashboard-page .main-key .copy-field{margin-block:auto 0;min-height:65px}
.dashboard-page .usage-layout{align-items:stretch;grid-template-columns:minmax(0,2.1fr) minmax(280px,1fr)}
.chart-panel{display:flex;flex-direction:column;min-width:0}
.chart-panel>.section-title{flex-shrink:0;align-items:center}
.chart-panel>.section-title h2{font-size:24px;font-weight:700}
.chart-panel>.section-title p{font-size:20px;font-weight:600;letter-spacing:-.03em;color:var(--text);margin-top:6px}
.usage-chart.interactive-chart{position:relative;display:flex;flex-direction:column;padding:14px 14px 12px;flex:1;min-height:360px}
.chart-canvas{position:relative;min-height:300px;flex:1}
.chart-canvas svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.chart-canvas text{font-size:11px;font-family:var(--font-ui);font-weight:500}
.chart-crosshair{stroke:var(--accent);stroke-width:1;stroke-dasharray:4 5;opacity:.6}
.chart-active-point{fill:var(--accent);stroke:var(--panel);stroke-width:3}
.chart-canvas [hidden]{display:none}
.chart-hit{cursor:crosshair;outline:none}
.chart-hit:focus-visible{fill:var(--accent-soft);stroke:var(--accent);stroke-width:1;stroke-dasharray:3 5}
.chart-tooltip{position:absolute;z-index:5;pointer-events:none;max-width:calc(100% - 16px);width:max-content;padding:13px 17px;border-radius:13px;border:1px solid #98cfff44;background:#0d192cf0;box-shadow:0 10px 36px #0006;backdrop-filter:blur(16px);display:flex;flex-direction:column;gap:5px}
.chart-tooltip[hidden]{display:none}
.chart-tooltip>span{color:#a4b9d0;font-size:11px}
.chart-tooltip>strong{color:#f0f7ff;font-size:25px;font-weight:700;line-height:1.25;letter-spacing:-.03em}
.chart-tooltip>strong small{color:#b9dfff;font-size:12px;font-weight:500}
.chart-tooltip>small{color:#a4b9d0;font-size:10px}
.chart-hint{margin:10px 0 0;font-size:11px;color:var(--muted);text-align:center}
.interactive-chart .chart-empty{margin:7px 0 0;font-size:12px}
.price-panel{align-self:stretch}
.price-panel .model-family-button{min-height:47px;gap:12px;padding:10px 12px}
.price-panel .model-family-button b{font-weight:650}
.key-model-choice{display:flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;margin:16px 0 14px;border-radius:10px;background:#a6d7ff07;border:1px solid var(--line);padding:11px 13px;text-align:left}
.key-model-choice>span{font-size:12px;font-weight:600}
.key-model-choice>b{margin-left:auto;color:var(--muted);font-size:11px;font-weight:500}
.key-model-choice>.ui-icon:last-child{width:14px;height:14px}
.compact-model-form .model-selection-list.compact-model-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:none;overflow:visible;padding:8px 0;margin:0;border:0;background:transparent}
.compact-model-option{position:relative;display:flex;align-items:center;gap:9px;padding:14px 12px;margin:0;min-width:0;min-height:78px;cursor:pointer;background:#101c2b80;border:1px solid #a0cbff20;border-radius:12px;transition:background .18s,border-color .18s,transform .18s;text-transform:none;letter-spacing:normal}
.compact-model-option:hover{border-color:#9ed6ff73;background:#1b314987;transform:translateY(-1px)}
.compact-model-option:has(input:checked){background:#26577a40;border-color:#7bcfff92}
.compact-model-option:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}
.compact-model-option input{width:17px;height:17px;margin:0 0 0 auto;padding:0;min-height:0;flex:none;accent-color:var(--accent)}
.compact-model-option .provider-brand-icon{width:21px;height:21px;flex-basis:21px}
.compact-model-name{display:flex;flex-direction:column;gap:5px;min-width:0}
.compact-model-name b{font-size:12px;font-weight:650;color:var(--text);line-height:1.4}
.compact-model-name code{font-size:10px;color:#9cb0c7;line-height:1.5;overflow-wrap:anywhere}
.compact-model-option[hidden]{display:none}
.compact-model-form .model-filters{gap:7px;margin:15px 0}
.compact-model-form .model-filters button{display:flex;align-items:center;gap:7px;min-height:36px;font-weight:500}
.compact-model-form .model-filters .provider-brand-icon{width:16px;height:16px;flex-basis:16px}
.compact-picker-footer{position:sticky;bottom:-1px;background:#102030f2;border-top:1px solid #b9d9ff25;padding:13px 0 2px;backdrop-filter:blur(20px);margin-top:10px;z-index:2}
.compact-picker-footer .modal-footer{margin-top:8px}
.compact-picker-footer p{margin:0}
.compact-model-form .model-all-option{margin-bottom:16px}
dialog:has(.compact-model-form) .modal-head{padding-block:21px}
.compact-model-form .modal-intro{padding:0;border:0;background:transparent;box-shadow:none;margin:0 0 16px}
.compact-model-form .model-all-option{padding:14px 16px;min-height:0}
.compact-model-form .model-search-field{min-height:42px}
@media(max-width:1100px){.dashboard-page .overview-cards{grid-template-columns:1.55fr 1.2fr 1fr}.overview-cards>.panel{padding:19px;min-height:240px}.dashboard-page .request-bottom>strong{font-size:min(var(--request-size,140px),13vw)}.dashboard-page .request-bottom>div{font-size:18px}.overview-cards .balance-number{font-size:56px}.compact-model-form .model-selection-list.compact-model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.dashboard-page .overview-cards{grid-template-columns:1.4fr 1fr}.dashboard-page .main-key{grid-column:1/-1;min-height:150px}.dashboard-page .usage-layout{grid-template-columns:1fr}.usage-chart.interactive-chart{min-height:380px;flex:none}.chart-canvas{height:310px;flex:none}.dashboard-page .request-bottom>strong{font-size:min(var(--request-size,150px),19vw)}.price-panel .model-families{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-panel>.section-title p{font-size:18px}}
@media(max-width:540px){.dashboard-page .overview-cards{grid-template-columns:1fr}.overview-cards>.panel{padding:22px;min-height:200px}.overview-cards .balance-number{font-size:clamp(45px,12.5vw,64px)}.dashboard-page .request-bottom>strong{font-size:min(var(--request-size,165px),35vw)}.dashboard-page .request-bottom>div{font-size:25px}.dashboard-page .main-key{grid-column:auto;min-height:155px}.chart-panel>.section-title{gap:12px;flex-wrap:wrap;padding:20px}.chart-panel>.section-title h2{font-size:22px}.chart-panel>.section-title p{font-size:20px}.usage-chart.interactive-chart{padding:12px 5px;min-height:330px}.chart-canvas{height:280px;min-height:280px}.price-panel .model-families{grid-template-columns:1fr 1fr;gap:8px}.price-panel .model-family-button{padding:10px 8px;font-size:10px;gap:7px}.price-panel .model-family-button>.provider-brand-icon{width:18px;height:18px;flex-basis:18px}.compact-model-form .model-selection-list.compact-model-grid{grid-template-columns:1fr 1fr;gap:7px}.compact-model-option{min-height:85px;gap:7px;padding:11px 9px;align-items:flex-start}.compact-model-option .provider-brand-icon{display:none}.compact-model-option input{margin-top:2px}.compact-model-name b{font-size:11px}.compact-model-name code{font-size:9px}.compact-picker-footer{padding-bottom:5px}.key-model-choice{gap:7px}.key-model-choice>b{font-size:10px}.chart-tooltip{padding:11px 14px}.chart-tooltip>strong{font-size:22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media(max-width:560px){
  .catalog-dialog .catalog-card{padding:20px 17px}
  .catalog-dialog .catalog-facts{grid-template-columns:1fr}
  .catalog-dialog .catalog-facts>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;align-items:center;padding:13px}
  .catalog-dialog .catalog-facts dt{margin:0}
  .catalog-dialog .catalog-facts dd{word-break:normal;overflow-wrap:anywhere}
  .catalog-dialog .catalog-metric{min-width:0;flex:1}
}
.endpoint-condition{display:block;font-size:11px;line-height:1.7;color:var(--muted);margin-top:6px}
.endpoint-item>small{display:block;line-height:1.65;margin-top:5px}
