@font-face {
  font-family: Inter;
  src: url('/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --sidebar: 224px;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--page);
}

html[data-theme="violet"] {
  --ink: #f1eef8;
  --muted: #aaa5ba;
  --soft: #807a94;
  --line: #302b40;
  --panel: #171522;
  --page: #0b0912;
  --surface: #110f19;
  --surface-hover: #201c2c;
  --accent: #b598ff;
  --accent-hot: #d0baff;
  --accent-bg: #2c2241;
  --green: #77d7ae;
  --red: #fb8d9c;
  --chart-1: #b598ff;
  --chart-2: #58d3c0;
  --chart-3: #ffbc66;
  --chart-4: #f28ab2;
  --chart-5: #7eb7ff;
  --chart-6: #9ad985;
  --chart-7: #d4a5ff;
  --chart-8: #ff8b73;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; font-size: 14px; background: var(--page); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled, a[aria-disabled="true"] { opacity: .55; cursor: default; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
code, kbd, pre { font-family: var(--mono); }
svg { display: block; width: 18px; height: 18px; flex: none; }
span[data-icon] { display: inline-grid; place-items: center; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.layout { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 10; width: var(--sidebar);
  border-right: 1px solid var(--line); background: #fdfcf9; display: flex;
  flex-direction: column; padding: 25px 15px 14px; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; width: fit-content; }
.brand-mark { width: 39px; height: 39px; background: #251d18; color: #ffc2a3; border-radius: 11px; }
.brand-mark svg { width: 24px; height: 24px; }
.brand strong { display: block; font-size: 18px; font-weight: 760; letter-spacing: -.035em; }
.brand small { display: block; font-size: 10px; color: var(--soft); margin-top: 4px; letter-spacing: .055em; }
.navigation { margin-top: 43px; }
.nav-group { margin-bottom: 32px; }
.nav-group p { color: var(--soft); font-size: 10px; font-weight: 650; letter-spacing: .07em; margin: 0 10px 9px; }
.nav-group a {
  display: flex; align-items: center; gap: 10px; padding: 11px 10px; margin: 3px 0;
  border-radius: 8px; min-height: 42px; color: #5d5854; font-weight: 525; font-size: 13px;
}
.nav-group a svg { width: 16px; height: 16px; }
.nav-group a:hover, .identity:hover { background: #f3f0eb; }
.nav-group a[aria-current="page"] { background: #f8ebe2; color: #9e3d22; font-weight: 700; }
.sidebar-bottom { margin-top: auto; }
.environment {
  display: flex; align-items: center; gap: 9px; border: 1px solid #eee7df; border-radius: 10px;
  background: #f9f5ef; padding: 11px 8px; margin: 0 1px 14px;
}
.environment-icon { width: 28px; height: 28px; border: 1px solid #eee2d5; color: #996244; border-radius: 7px; background: #fdf9f3; }
.environment-icon svg { width: 13px; height: 13px; }
.environment strong, .identity strong { display: block; font-size: 12px; font-weight: 650; line-height: 1.35; }
.environment small, .identity small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.identity {
  display: flex; align-items: center; text-align: left; width: 100%; gap: 9px;
  background: transparent; border: 0; border-top: 1px solid var(--line); padding: 12px 5px 4px;
  border-radius: 0 0 7px 7px;
}
.avatar { width: 33px; height: 33px; border-radius: 50%; background: #ede8e1; color: #766457; }
.avatar svg { width: 16px; height: 16px; }
.identity-action { margin-left: auto; color: var(--soft); }
.identity-action svg { width: 13px; height: 13px; }

.frame { margin-left: var(--sidebar); min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 13px; justify-content: space-between; height: 65px;
  background: #fdfcf9; border-bottom: 1px solid var(--line); padding: 0 clamp(23px, 3vw, 46px);
}
.breadcrumb, .top-actions { display: flex; align-items: center; gap: 11px; }
.breadcrumb { color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.breadcrumb svg { width: 14px; height: 14px; }
.breadcrumb [data-icon="chevron"] svg { width: 11px; height: 11px; color: #a4a09a; }
.icon-button {
  display: inline-grid; place-items: center; padding: 0; width: 33px; height: 33px; flex: none;
  border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: #625c56;
}
.icon-button:hover { background: #f4f0ea; color: var(--ink); }
.icon-button svg { width: 15px; height: 15px; }
.menu-button { display: none; }
.connection {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px;
  font-size: 11px; font-weight: 650; padding: 6px 9px; color: #79521e; background: #f7eee0;
  border: 1px solid #eee1cf;
}
.connection i, .hero-label i, .routing-indicator { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.connection.online { color: var(--green); background: #edf5ed; border-color: #e0ebdf; }

.content { padding: 29px clamp(23px, 3vw, 46px) 0; max-width: 1640px; margin: 0 auto; }
.page { min-height: calc(100vh - 154px); }
.overview-header { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.overview-metric {
  position: relative; display: grid; align-content: start; gap: 7px; min-width: 0; padding: 17px;
  min-height: 141px; border-radius: 13px; color: var(--muted); font-size: 12px;
  box-shadow: 0 1px 2px #30251a08;
}
.overview-metric > strong { color: var(--ink); font-size: clamp(23px, 2.5vw, 34px); font-weight: 750; letter-spacing: -.06em; line-height: 1.1; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.overview-metric > a, .overview-metric > small { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.overview-metric > a:hover { text-decoration: underline; }
.overview-metric > a svg { width: 12px; height: 12px; }
.overview-wallet { isolation: isolate; overflow: hidden; background: linear-gradient(120deg, #291f1a, #4e2e25); color: #f2cbb6; }
.overview-wallet::after { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-radial-gradient(ellipse at 108% 94%, transparent 0 12px, #ffae7e1c 13px 14px, transparent 15px 24px); }
.overview-wallet > strong { color: #fff6ee; }
.overview-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #f5eee5; color: #926347; flex: none; }
.overview-icon svg { width: 16px; height: 16px; }
.overview-wallet .overview-icon { background: #ffffff17; color: #ffc2a1; }
.overview-panels { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(245px, 1fr); gap: 13px; margin-top: 14px; }
.overview-panel { min-width: 0; padding: 18px; display: flex; flex-direction: column; }
.overview-panel > header { display: flex; gap: 8px; justify-content: space-between; align-items: start; }
.overview-panel > header p, .overview-model-note { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 5px; }
.overview-panel > header a { display: inline-flex; align-items: center; white-space: nowrap; gap: 3px; font-size: 11px; padding: 4px 0; }
.overview-panel > header a svg { width: 13px; height: 13px; }
.overview-spend { padding: 6px 8px; border-radius: 7px; background: #f9eee6; color: #854c32; font-size: 11px; text-align: right; }
.overview-placeholder { min-height: 218px; flex: 1; display: grid; align-content: center; justify-items: center; gap: 11px; color: var(--muted); font-size: 13px; margin-top: 16px; border: 1px dashed #e7ded4; border-radius: 10px; background: #faf7f2; }
.overview-chart { display: grid; gap: 8px; margin-top: 18px; }
.overview-chart-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-left: 36px; color: var(--muted); font-size: 11px; }
.overview-chart-legend span { display: inline-flex; gap: 5px; align-items: center; }
.overview-chart-legend i { width: 7px; height: 7px; border-radius: 2px; background: #397968; }
.overview-chart-legend span + span i { background: #bc633f; }
.overview-chart-plot { display: grid; grid-template-columns: 36px minmax(0, 1fr); min-height: 168px; }
.overview-chart-axis { display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); padding-right: 7px; text-align: right; font-size: 10px; }
.overview-chart-columns { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #ece5dc; border-bottom: 1px solid #ece5dc; background: repeating-linear-gradient(to top, transparent 0 calc(33.333% - 1px), #f0e9e1 calc(33.333% - 1px) 33.333%); }
.overview-chart-column { display: grid; align-items: end; justify-items: center; }
.overview-bar-stack { display: flex; flex-direction: column-reverse; width: clamp(10px, 64%, 32px); border-radius: 4px 4px 0 0; overflow: hidden; }
.overview-bar-success { display: block; background: #397968; }
.overview-bar-failure { display: block; background: #bc633f; }
.overview-chart-labels { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 6px 0 0 36px; color: var(--muted); text-align: center; font-size: 10px; }
.overview-chart-detail { color: var(--muted); font-size: 11px; margin-top: 7px; }
.overview-model-note { margin: 11px 0 8px; }
.overview-providers { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.provider-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f0ebe4; }
.provider-row:last-child { border-bottom: 0; }
.provider-mark { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; background: #f2eee8; color: #664d3e; font-weight: 700; flex: none; }
.provider-mark svg { width: 14px; height: 14px; }
.provider-info { flex: 1; min-width: 0; display: grid; gap: 5px; }
.provider-heading { display: flex; justify-content: space-between; gap: 5px; font-size: 12px; }
.provider-count { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.provider-progress { appearance: none; width: 100%; height: 4px; border: 0; border-radius: 99px; background: #eae5dc; overflow: hidden; }
.provider-progress::-webkit-progress-bar { background: #eae5dc; }
.provider-progress::-webkit-progress-value { background: #397968; }
.provider-progress::-moz-progress-bar { background: #397968; }
.overview-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 14px; }
.overview-links a { display: flex; align-items: center; gap: 9px; padding: 13px; min-width: 0; }
.overview-links a:hover { border-color: #d3b9a7; }
.overview-links a > span:last-child { margin-left: auto; color: var(--muted); }
.overview-links strong, .overview-links small { display: block; }
.overview-links small { color: var(--muted); margin-top: 3px; }
.mail-panel { max-width: 760px; }
.mail-fields { margin: 0; padding: 0; border: 0; min-width: 0; }
.mail-panel .route-fields { margin: 14px 0; }
.mail-panel .route-fields label { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 12px; }
.mail-panel input { width: 100%; min-width: 0; min-height: 36px; padding: 8px 9px; border: 1px solid #e5ded6; border-radius: 7px; background: #fdfbf8; }
.mail-panel p.error { color: #a3381f; }
@media (max-width: 880px) {
  .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-panels { grid-template-columns: minmax(0, 1fr); }
  .overview-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 535px) {
  .overview-metrics, .overview-panels, .overview-links { gap: 8px; }
  .overview-metric, .overview-panel { padding: 12px; }
  .overview-header > a { padding-inline: 7px; }
  .overview-header > a [data-icon="grid"] { display: none; }
  .overview-links { grid-template-columns: minmax(0, 1fr); }
}
.hero {
  min-height: 276px; display: flex; align-items: center; position: relative; isolation: isolate; overflow: hidden;
  background: #1e1816; border-radius: 17px; border: 1px solid #382722; color: #fff8f2;
}
.hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #1e1816 7%, #1e1816ed 29%, #1e181663 48%, transparent 75%);
}
.hero-inner { padding: 32px 39px 33px; width: min(100%, 650px); }
.hero-stats {
  position: absolute; right: 23px; bottom: 21px; display: flex; gap: 17px;
  padding: 10px 14px; border: 1px solid #af7c6566; border-radius: 10px;
  background: #291b16c2; backdrop-filter: blur(9px); color: #fff1e6;
}
.hero-stats > div { display: flex; flex-direction: column; gap: 3px; min-width: 45px; }
.hero-stats > div + div { border-left: 1px solid #a3816b58; padding-left: 15px; }
.hero-stats strong { font-size: 23px; line-height: 1; font-weight: 720; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 10px; color: #ebcdbd; }
.hero-label {
  display: inline-flex; gap: 9px; align-items: center; font-size: 11px; font-weight: 600;
  letter-spacing: .055em; color: #eed9d0; border: 1px solid #694437; border-radius: 999px; padding: 6px 10px;
  background: #3b2b25a6;
}
.hero-label i { color: #f3966b; width: 5px; height: 5px; }
.hero-label span { height: 11px; border-left: 1px solid #8b6354; }
.hero h1 { font-size: clamp(40px, 4.8vw, 66px); font-weight: 760; line-height: 1.05; letter-spacing: -.065em; margin: 13px 0 14px; }
.hero h1 span { color: var(--accent-hot); padding-left: .13em; }
.hero p { color: #e2cfc7; line-height: 1.75; font-size: 13px; }
.hero-actions { display: flex; align-items: center; gap: 9px; margin-top: 23px; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 37px;
  white-space: nowrap; border: 1px solid transparent; padding: 8px 13px; border-radius: 8px;
  font-size: 12px; font-weight: 670; line-height: 1.25;
}
.button svg { width: 14px; height: 14px; }
.hero-primary { background: #fff8f0; color: #32221b; }
.hero-primary:hover { background: #ffe1ca; }
.hero-primary [data-icon="arrow"] { margin-left: 4px; }
.hero-secondary { color: #f5ddd3; background: #3f2e28b3; border-color: #775040; }
.hero-secondary:hover { background: #553528; }
.primary { background: #a84223; color: white; }
.primary:hover { background: #8e351c; }
.outlined { border-color: #e5e0d8; background: var(--panel); color: #4d4742; }
.outlined:hover { background: #f5f0e9; }

.catalog-heading {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 15px;
  padding-top: 29px; margin-bottom: 19px;
}
.catalog-heading h2 { display: flex; gap: 9px; align-items: center; font-size: 25px; letter-spacing: -.05em; font-weight: 740; }
.count { border: 1px solid #e9e3dc; background: #f1eee8; color: #5f5852; font-size: 11px; border-radius: 6px; padding: 3px 6px; letter-spacing: 0; }
.count:empty { display: none; }
.catalog-heading p, .page-heading p { color: var(--muted); font-size: 12px; margin-top: 8px; line-height: 1.6; }
.search {
  display: flex; align-items: center; gap: 9px; color: var(--soft); border: 1px solid #e5e0d9; background: var(--panel);
  min-width: 230px; width: 272px; padding: 0 9px 0 11px; min-height: 38px; border-radius: 8px;
}
.search:focus-within { outline: 2px solid #cf6646; outline-offset: 1px; }
.search svg { width: 15px; height: 15px; }
.search input { outline: none; border: 0; background: transparent; min-width: 0; width: 100%; font-size: 12px; padding: 8px 0; }
.search input::placeholder { color: #827a72; }
kbd { font-size: 11px; border: 1px solid #eee9e1; border-radius: 4px; padding: 1px 5px; background: #f7f4ef; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.catalog-options { display: flex; align-items: center; flex: none; gap: 7px; }
.filter, .sort {
  display: inline-flex; align-items: center; justify-content: center; min-height: 32px;
  padding: 5px 10px; border: 1px solid #e8e3dc; color: #615a53; border-radius: 7px;
  background: #fcfaf7; font-size: 11px; font-weight: 570; white-space: nowrap;
}
.filter:hover { border-color: #cebdb0; }
.filter[aria-pressed="true"] { background: #2e2723; border-color: #2e2723; color: #fff7ef; }
.reserve-filter { gap: 5px; }
.reserve-filter svg { width: 12px; height: 12px; }
.reserve-filter[aria-pressed="true"] { background: #fae9dc; border-color: #eac7b2; color: #933d23; }
.sort { gap: 6px; padding: 0 7px; }
.sort svg { width: 14px; height: 14px; }
.catalog-tools .sort { display: flex; gap: 6px; }
.sort select { padding: 4px 1px; background: transparent; border: none; font-size: 11px; }

.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.model-card {
  display: flex; flex-direction: column; min-width: 0; min-height: 192px; padding: 16px 16px 13px;
  border-radius: 12px; border: 1px solid #e5e1db; background: linear-gradient(155deg, #fff, var(--panel));
  box-shadow: 0 1px 2px #2b1a1006; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.model-card:hover { transform: translateY(-2px); border-color: #dac8ba; box-shadow: 0 7px 17px #36261b0b; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.card-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-name { color: #6c6259; font-size: 11px; font-weight: 620; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.model-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; font-size: 22px; font-weight: 730; letter-spacing: -.075em; }
.model-mark.openai { color: #faf7f3; background: #262624; }
.model-mark.anthropic { color: #ab442a; background: #f9ded0; font-family: Georgia, serif; }
.model-mark.google { color: #3c6ed1; background: #e7effc; }
.model-mark.deepseek { color: #285edf; background: #e6edff; }
.model-mark.qwen { color: #7248be; background: #f0e8fc; }
.model-mark.moonshot { color: #385264; background: #e3eff0; }
.model-mark.grok { color: #332c2a; background: #eee9e6; }
.model-mark svg { width: 23px; height: 23px; }
.category { flex: none; font-size: 10px; color: #675c54; border: 1px solid #eae4dc; padding: 4px 7px; border-radius: 999px; background: #f8f5f1; }
.category.reserved { color: #91401f; background: #fff1e6; border-color: #f4d8c4; }
.card-name { font-size: 17px; font-weight: 750; letter-spacing: -.035em; margin-top: 12px; line-height: 1.25; }
.model-id { display: block; color: #6e665e; font-size: 10px; overflow-wrap: anywhere; margin-top: 5px; }
.card-description { font-size: 12px; color: var(--muted); line-height: 1.65; margin: 8px 0 10px; }
.card-footer {
  margin-top: auto; padding-top: 10px; border-top: 1px solid #eeeae4; gap: 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.model-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 2px 0 11px; }
.model-prices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.model-prices > div { display: grid; gap: 4px; padding: 8px 9px; border: 1px solid #f0ebe4; border-radius: 7px; background: #faf8f4; }
.model-card .model-prices > div { grid-row: span 2; grid-template-rows: subgrid; align-content: start; }
.model-prices span, .model-performance { color: var(--muted); font-size: 10px; }
.model-prices strong { font-size: 15px; font-weight: 735; font-variant-numeric: tabular-nums; }
.price-value { display: grid; align-content: start; justify-items: start; gap: 2px; overflow-wrap: anywhere; }
.price-unit { white-space: nowrap; }
.model-performance { display: grid; gap: 4px; flex: 1; min-width: 0; }
.success-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 6px; }
.model-success { color: #665d53; white-space: nowrap; font-weight: 650; }
.model-success.measured { color: #295b47; font-variant-numeric: tabular-nums; }
.model-success.warning { color: #874b27; font-variant-numeric: tabular-nums; }
.success-track { display: block; appearance: none; width: 100%; height: 5px; border: 0; border-radius: 999px; background: #eee8e0; overflow: hidden; }
.success-track::-webkit-progress-bar { background: #eee8e0; }
.success-track::-webkit-progress-value { background: #37806a; }
.success-track::-moz-progress-bar { background: #37806a; }
.success-track.warning::-webkit-progress-value { background: #b66943; }
.success-track.warning::-moz-progress-bar { background: #b66943; }
.success-track.no-samples { background: repeating-linear-gradient(115deg, #eee8e0 0 4px, #f8f5f0 4px 7px); }
.success-sample { font-size: 10px; }
.catalog-status { color: #796a5f; font-size: 10px; white-space: nowrap; }
.preview-link { color: var(--muted); }
.card-actions { display: flex; gap: 4px; flex: none; align-items: center; }
.card-actions .icon-button { height: 25px; width: 27px; background: transparent; border-color: transparent; }
.card-actions .icon-button:hover { background: #f5eee7; }
.card-actions .icon-button svg { width: 13px; height: 13px; }
.try-button { display: inline-flex; gap: 4px; align-items: center; border-radius: 5px; padding: 4px 4px 4px 5px; font-weight: 700; font-size: 11px; color: var(--accent); }
.try-button:hover { background: var(--accent-bg); }
.try-button svg { width: 12px; height: 12px; }
.catalog-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 50px 15px; border: 1px dashed #ddd5cb; border-radius: 12px; }
.catalog-pagination { display: grid; justify-items: center; gap: 10px; margin-top: 19px; color: var(--muted); font-size: 11px; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 23px 1px; margin-top: 9px; color: #80776f; font-size: 10px; }

.page-heading { margin: 6px 0 21px; }
.page-heading h1 { font-size: clamp(27px, 4vw, 41px); letter-spacing: -.05em; font-weight: 760; }
.page-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.panel h2, .dialog-content h2 { font-size: 16px; letter-spacing: -.02em; }
.chat-panel { overflow: hidden; }
.chat-top { display: flex; justify-content: space-between; align-items: end; padding: 15px 18px 12px; gap: 10px; }
label:has(> select), .key-form label, .dialog-content label { display: grid; gap: 6px; color: #564d46; font-size: 12px; font-weight: 630; }
.chat-top select, .dialog-content select, .dialog-content input, .key-form input {
  min-width: 0; background: #fdfbf8; border: 1px solid #e5ded6; border-radius: 7px; padding: 8px 9px; min-height: 36px; color: var(--ink); font-size: 13px;
}
.chat-model-control { display: grid; min-width: 0; gap: 6px; }
.chat-model-control label { color: #564d46; font-size: 12px; font-weight: 630; }
.model-trigger {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-width: min(210px, 55vw); min-height: 37px; max-width: min(57vw, 380px); padding: 7px 9px 7px 10px;
  border: 1px solid #e5ded6; background: #fdfbf8; border-radius: 8px; text-align: left;
  font-size: 13px; font-weight: 640;
}
.model-trigger:hover { background: #f8f2ec; }
.model-trigger svg { width: 13px; height: 13px; color: var(--muted); }
#current-model { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chat-route { display: flex; align-items: center; gap: 7px; margin: 0 18px 12px; color: #765443; font-size: 11px; padding: 8px 10px; border-radius: 7px; background: #f8efe8; }
.chat-route svg { width: 13px; height: 13px; }
.chat-log { min-height: 270px; height: min(52vh, 570px); overflow-y: auto; padding: 9px 18px; border-top: 1px solid #f0ece7; }
.chat-empty { min-height: 100%; display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center; color: var(--muted); }
.chat-empty > span { width: 41px; height: 41px; border-radius: 12px; color: #aa4c2a; background: #f8eae0; }
.chat-empty strong { color: var(--ink); font-size: 15px; }
.chat-empty p { font-size: 12px; }
.message { width: fit-content; margin: 10px 0; max-width: min(85%, 800px); border-radius: 10px; background: #f6f2ec; padding: 10px 13px; line-height: 1.68; overflow-wrap: anywhere; }
.message.user { margin-left: auto; background: #f9e9df; }
.message small { display: block; color: #785b4c; font-size: 10px; font-weight: 700; margin-bottom: 4px; }
.message .message-body { white-space: pre-wrap; }
.composer { margin: 14px 18px 17px; padding: 10px; border: 1px solid #e5dcd3; border-radius: 9px; background: #fdfbf8; }
.composer:focus-within { border-color: #cf9d88; }
.composer textarea { width: 100%; resize: vertical; min-height: 55px; max-height: 220px; padding: 5px; outline: 0; border: 0; background: transparent; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.composer-actions > div { display: flex; gap: 6px; }
.chat-history-option { display: inline-flex; align-items: center; gap: 5px; line-height: 1.3; }
.text-button { border: 0; background: transparent; color: #a44425; font-weight: 660; padding: 0; }
.text-button:hover { text-decoration: underline; }
.error { color: #a3381f; font-size: 12px; margin: 8px 0 0; line-height: 1.5; }
.locked { text-align: center; display: grid; justify-items: center; gap: 11px; padding: 45px 18px; }
.locked > span { width: 41px; height: 41px; border-radius: 11px; background: #faeee5; color: #aa4c2a; }
.locked p, .inline-result p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.key-form { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)) auto; gap: 12px; align-items: end; padding: 15px; margin-bottom: 13px; }
.inline-result { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 13px; padding: 14px; background: #fbf2e9; }
.inline-result p { margin: 5px 0; }
.inline-result code { overflow-wrap: anywhere; }
.table-panel { padding: 16px; overflow: hidden; }
.table-panel h2 { margin-bottom: 12px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th, td { border-bottom: 1px solid #eee9e2; padding: 10px 7px; white-space: nowrap; }
th { color: #625950; font-weight: 630; background: #faf7f3; }
tr:last-child td { border-bottom: 0; }
td code { font-size: 11px; }
.table-empty { font-size: 12px; color: var(--muted); padding: 16px 0; }
.default-route { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; margin-bottom: 12px; }
.default-route > div, .route-cell { display: grid; gap: 5px; min-width: 0; }
.default-route-heading, .route-toolbar { display: flex; align-items: center; gap: 10px; }
.default-route strong { font-size: 15px; }
.default-route code { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.route-toolbar { justify-content: space-between; margin-bottom: 12px; }
.route-toolbar h2 { margin: 0; }
.route-cell strong { font-weight: 630; }
.route-cell code { color: var(--muted); }
.route-edit { min-height: 29px; padding: 4px 9px; }
.pricing-link { color: var(--muted); font-size: 11px; }
.pricing-link:hover { color: var(--accent); text-decoration: underline; }
.account-login { max-width: 420px; display: grid; gap: 13px; padding: 20px; }
.member-login { max-width: 460px; padding: 24px; }
.member-login h2 { padding-top: 3px; font-size: 20px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #f2eee8; border-radius: 9px; padding: 4px; }
.auth-tabs button { border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); padding: 8px; font-size: 12px; font-weight: 650; }
.auth-tabs button[aria-pressed="true"] { border-color: #e9e1d7; background: white; color: var(--ink); box-shadow: 0 1px 2px #2719090d; }
.account-login label, .account-inline label { display: grid; gap: 6px; min-width: 0; font-size: 12px; font-weight: 630; color: #564d46; }
.account-login input, .account-inline input, .account-inline select, .security-form input {
  min-width: 0; width: 100%; min-height: 37px; padding: 8px 9px;
  background: #fdfbf8; border: 1px solid #e5ded6; border-radius: 7px; color: var(--ink); font-size: 13px;
}
.account-login .remember-login { display: flex; align-items: center; gap: 8px; width: fit-content; color: var(--muted); font-weight: 500; cursor: pointer; }
.account-login .remember-login input { width: 15px; min-height: 15px; margin: 0; padding: 0; accent-color: var(--accent); }
.email-verification-row { display: grid; gap: 12px; }
.email-code-entry { display: grid; gap: 6px; min-width: 0; }
.email-code-entry > div { display: grid; grid-template-columns: minmax(75px, 1fr) auto; gap: 6px; }
.email-code-entry button { white-space: nowrap; }
.account-inline > .email-code-entry { flex: 1 1 220px; }
.form-notice { border: 1px solid #ead7c8; border-radius: 8px; padding: 8px 10px; background: #fff5eb; color: #79523a; font-size: 12px; }
.account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.wallet-banner {
  display: flex; align-items: flex-start; justify-content: space-between; padding: 20px;
  gap: 12px; margin-bottom: 13px; background: linear-gradient(115deg, #fffefc, #faf0e6);
}
.wallet-banner span, .wallet-banner p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.wallet-banner h2 { margin-top: 8px; }
.wallet-banner strong { display: block; margin: 4px 0 8px; font-size: 31px; letter-spacing: -.05em; overflow-wrap: anywhere; }
.account-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(180px, 1fr); gap: 12px; align-items: start; }
.account-grid > * { min-width: 0; }
.account-inline { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 12px 0; }
.account-inline label { flex: 1 1 105px; }
.account-inline input[type="file"] { flex: 1 1 180px; max-width: 100%; font-size: 11px; }
.wallet-new-token { background: #fbf2e9; border: 1px solid #eddbc9; border-radius: 8px; padding: 10px; }
.doc-panel .wallet-new-token p { margin: 0 0 5px; }
.wallet-new-token code { display: block; overflow-wrap: anywhere; margin-bottom: 8px; font-size: 11px; }
.token-list { display: grid; gap: 8px; margin-top: 12px; }
.token-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid #eae2d9; border-radius: 9px; background: #fdfbf8; }
.token-info { display: flex; align-items: center; min-width: 0; gap: 9px; }
.token-info > div { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.token-info code, .token-meta { font-size: 11px; color: var(--muted); }
.token-symbol { display: grid; place-items: center; flex: none; width: 32px; height: 32px; color: #a64c29; background: #faede2; border-radius: 8px; }
.token-symbol svg { width: 16px; height: 16px; }
.token-meta { display: grid; justify-items: end; gap: 4px; }
.token-actions { grid-column: 1 / -1; }
.token-actions .text-button { padding: 5px; font-size: 11px; }
.inline-link { color: var(--accent); text-decoration: underline; }
.account-history { margin-bottom: 12px; }
.checkout-automatic { display: grid; justify-items: start; gap: 12px; }
.checkout-automatic p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.payment-automatic-admin .route-cell { justify-items: start; }
.payment-notify-url { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.payment-notify-url code { overflow-wrap: anywhere; }
.dialog-content label.payment-enable { display: flex; align-items: center; gap: 7px; }
.payment-enable input { min-height: auto; }
#alipay-public-key { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 7px; padding: 8px 9px; background: #fdfbf8; }
.wallet-shortcut .button { margin-top: 14px; }
.referral-link-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.referral-link-row code { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; padding: 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 11px; }
.referral-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.referral-stats > div { display: grid; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.referral-stats dt { color: var(--muted); font-size: 11px; }
.referral-stats dd { margin: 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.security-form { display: grid; gap: 9px; margin-top: 12px; }
.security-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 630; }
.security-form button { justify-self: start; }
.security-panel > p, .referral-panel > p { line-height: 1.65; }
.checkout-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; max-width: 790px; padding: 0; margin: 0 0 17px; list-style: none; }
.checkout-steps li { display: flex; gap: 7px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #faf7f1; color: var(--muted); font-size: 12px; font-weight: 630; }
.checkout-steps li::before { content: attr(data-step); display: grid; place-items: center; flex: none; width: 19px; height: 19px; border-radius: 50%; background: #ede7de; color: #5e5147; font-size: 10px; }
.checkout-steps li[aria-current="step"] { border-color: #d9a388; background: #fff3eb; color: #8d351b; }
.checkout-steps li[aria-current="step"]::before { background: var(--accent); color: white; }
.checkout-steps li.done::before { background: #dcebe1; color: #2b6047; }
.checkout-notice { padding: 14px; color: var(--muted); }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 13px; }
.checkout-panel { display: grid; gap: 13px; min-width: 0; padding: 20px; }
.checkout-panel h2 { font-size: 17px; }
#checkout-title { margin-top: 7px; }
#recharge-form { max-width: 500px; }
.checkout-panel label, .checkout-proof { display: grid; gap: 6px; color: #564d46; font-size: 12px; font-weight: 630; }
.checkout-panel input, .checkout-panel select { min-height: 38px; width: 100%; min-width: 0; border: 1px solid #e5ded6; border-radius: 7px; background: #fdfbf8; padding: 8px 9px; color: var(--ink); }
.checkout-panel p { color: var(--muted); font-size: 12px; line-height: 1.55; font-weight: 400; }
.checkout-panel .error { color: #a3381f; }
.checkout-panel p:empty { display: none; }
.amount-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.amount-presets .button { padding-inline: 4px; }
.checkout-total { padding: 12px 15px; border-radius: 9px; background: #f8f0e8; display: grid; gap: 5px; color: #70442e; }
.checkout-total span { font-size: 12px; }
.checkout-total strong { font-size: 32px; font-weight: 750; color: #391e12; font-variant-numeric: tabular-nums; }
.checkout-details { margin: 0; }
.checkout-details > div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; padding: 9px 0; align-items: center; border-bottom: 1px solid #efeae3; font-size: 12px; }
.checkout-details dt { color: var(--muted); }
.checkout-details dd { margin: 0; display: flex; align-items: center; gap: 5px; overflow-wrap: anywhere; }
.checkout-details code { font-size: 11px; }
.category[data-status="credited"] { background: #eaf4eb; color: #276649; border-color: #dbe8dd; }
.category[data-status="submitted"], .category[data-status="awaiting"] { background: #fff0e3; color: #843918; border-color: #f4dcc7; }
.checkout-proof { gap: 8px; }
.scan-payment { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 14px; background: #faf8f3; border: 1px solid #efebe4; border-radius: 9px; }
.scan-payment span { font-size: 12px; font-weight: 660; }
.scan-payment img { display: block; width: min(190px, 60vw); max-height: 235px; object-fit: contain; border-radius: 7px; }
.channel-preview { display: block; width: 100px; height: 100px; object-fit: contain; margin-top: 10px; border-radius: 7px; }
.payment-reference { display: block; max-width: 230px; white-space: normal; overflow-wrap: anywhere; }
.metrics { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; }
.metric { padding: 15px; }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { display: block; font-size: 25px; letter-spacing: -.035em; margin-top: 5px; }
.meter { height: 5px; width: 100%; margin-top: 9px; accent-color: #b75233; }
.doc-panel { padding: 17px; margin-bottom: 13px; }
.doc-panel p { font-size: 12px; color: var(--muted); margin-top: 13px; line-height: 1.65; }
.doc-settings { margin: 10px 0 0; }
.doc-settings > div { display: grid; grid-template-columns: 104px 1fr; gap: 8px; align-items: center; min-height: 43px; border-bottom: 1px solid #eee9e2; font-size: 13px; }
.doc-settings > div:last-child { border: 0; }
.doc-settings dd { display: flex; align-items: center; gap: 6px; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.doc-settings dd a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.doc-settings dd a svg { width: 12px; height: 12px; }
.doc-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.doc-panel pre { background: #2a221e; color: #fff1e7; border-radius: 8px; padding: 16px; overflow-x: auto; font-size: 12px; line-height: 1.7; }
.doc-endpoints { display: grid; gap: 9px 18px; grid-template-columns: max-content 1fr; font-size: 12px; }
.doc-endpoints span { color: var(--muted); }
dialog { width: min(90vw, 420px); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0; box-shadow: 0 20px 90px #2d1a1750; }
dialog::backdrop { background: #29201980; }
.model-dialog { width: min(94vw, 790px); }
.route-dialog { width: min(92vw, 565px); }
.bulk-price-dialog, .provider-dialog { width: min(92vw, 690px); }
.price-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.price-filters label { min-width: 125px; }
.price-filters select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.price-filters [role="status"] { color: var(--muted); font-size: 12px; align-self: center; }
.provider-card { padding: 14px 0; border-top: 1px solid var(--line); }
.provider-card h2 { margin: 0; }
.provider-model { display: grid; grid-template-columns: 1fr 1fr auto; gap: 9px; align-items: end; margin: 6px 0; }
.provider-model label { min-width: 0; }
.provider-model select { min-width: 0; }
.provider-model button { padding: 8px 0; }
.route-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 2px 0; }
.route-fields .full-field { grid-column: 1 / -1; }
.route-fields label { min-width: 0; }
.dialog-content { padding: 19px; display: grid; gap: 9px; }
.dialog-content .doc-heading { margin-bottom: 6px; }
.dialog-content p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.dialog-content .error { color: #a3381f; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.picker-search { width: 100%; }
.model-picker-list { display: grid; grid-template-columns: minmax(150px, 205px) minmax(0, 1fr); gap: 16px; min-height: 250px; max-height: min(58vh, 500px); overflow: hidden; padding: 3px 4px 4px 1px; }
.picker-brands { min-width: 0; padding-right: 12px; overflow: auto; border-right: 1px solid var(--line); }
.picker-brands h3, .picker-models > h3 { margin: 2px 0 8px; color: var(--muted); font-size: 11px; font-weight: 650; }
.picker-brand-options { display: grid; gap: 4px; }
.picker-brand-option { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 5px 7px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; }
.picker-brand-option:hover, .picker-brand-option[aria-current="true"] { border-color: var(--line); background: var(--surface-hover); }
.picker-brand-option .model-mark { flex: none; width: 27px; height: 27px; border-radius: 7px; font-size: 15px; }
.picker-brand-option .model-mark svg { width: 15px; height: 15px; }
.picker-brand-option > span:nth-child(2) { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.picker-brand-option small { color: var(--muted); font: 10px var(--mono); }
.picker-models { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.picker-model-options { display: grid; align-content: start; gap: 6px; min-height: 0; overflow: auto; padding: 1px 4px 4px 0; }
.picker-group { display: grid; gap: 5px; }
.picker-group h3 { font-size: 11px; color: var(--muted); font-weight: 650; padding: 3px 2px; }
.picker-option {
  width: 100%; display: flex; align-items: center; gap: 8px; min-width: 0; text-align: left;
  border-radius: 8px; border: 1px solid #eee8e1; background: #fbf9f6; padding: 7px 8px;
}
.picker-option:hover, .picker-option[aria-pressed="true"] { border-color: #ebcbb9; background: #fcf0e8; }
.picker-option .model-mark { flex: none; width: 30px; height: 30px; border-radius: 7px; font-size: 17px; }
.picker-option .model-mark svg { width: 17px; height: 17px; }
.picker-model-label { min-width: 0; flex: 1; display: grid; gap: 3px; }
.picker-model-label strong { font-size: 13px; line-height: 1.2; }
.picker-model-label code { overflow-wrap: anywhere; color: #706960; font-size: 10px; }
.picker-option [data-icon="check"] { color: var(--accent); }
.picker-option [data-icon="check"] svg { width: 14px; height: 14px; }
.picker-option-status { flex: none; color: var(--muted); font-size: 9px; white-space: nowrap; }
.toast { position: fixed; z-index: 20; bottom: 19px; right: 19px; max-width: calc(100vw - 38px); background: #2b241f; color: #fff7ed; padding: 10px 14px; border-radius: 8px; font-size: 12px; box-shadow: 0 6px 18px #32201733; }

@media (max-width: 1120px) {
  :root { --sidebar: 188px; }
  .sidebar { padding-left: 11px; padding-right: 11px; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar { width: 218px; visibility: hidden; transform: translateX(-102%); box-shadow: 8px 0 24px #2e211427; }
  .sidebar.open { visibility: visible; transform: translateX(0); }
  .frame { margin-left: 0; }
  .menu-button { display: inline-grid; }
  .topbar { justify-content: start; height: 55px; padding-inline: 15px; gap: 11px; }
  .top-actions { margin-left: auto; gap: 6px; }
  .content { padding: 16px 15px 0; }
  .hero { min-height: 245px; }
  .hero-inner { padding: 26px; }
  .hero-stats { right: 14px; bottom: 13px; }
  .hero::after { background: linear-gradient(90deg, #1e1816 2%, #1e1816e8 37%, #1e18164d 100%); }
  .catalog-heading { margin-bottom: 12px; padding-top: 22px; }
  .catalog-heading h2 { font-size: 22px; }
  .key-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .checkout-panel { padding: 15px; }
}
@media (max-width: 360px) {
  .catalog-status { display: none; }
  .checkout-steps li { gap: 4px; padding: 7px; font-size: 11px; }
}
@media (max-width: 510px) {
  .top-docs { display: none; }
  .hero-inner { padding: 22px 18px; }
  .hero h1 { font-size: 43px; }
  .hero p { max-width: 245px; }
  .hero-stats { display: none; }
  .catalog-heading { align-items: stretch; flex-direction: column; gap: 12px; }
  .search { width: 100%; }
  .catalog-tools { flex-direction: column; align-items: stretch; gap: 8px; }
  .catalog-options { justify-content: space-between; }
  .filters { gap: 4px; }
  .filter { min-height: 28px; padding: 4px 7px; font-size: 10px; }
  .sort { min-height: 28px; }
  .model-grid { grid-template-columns: 1fr; }
  .model-card { min-height: 181px; }
  .card-description { min-height: 0; margin: 9px 0 11px; }
  .metrics { gap: 6px; }
  .metric { padding: 9px; }
  .metric strong { font-size: 19px; }
  .doc-settings > div { grid-template-columns: 66px 1fr; }
  .doc-endpoints { grid-template-columns: 1fr; }
  .route-toolbar { flex-direction: column; align-items: stretch; }
  .route-fields { grid-template-columns: minmax(0, 1fr); }
  .provider-model { grid-template-columns: minmax(0, 1fr) auto; }
  .provider-model label:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

html[data-theme="violet"] { color-scheme: dark; }
html[data-theme="midnight"] {
  color-scheme: dark;
  --ink: #edf5ff; --muted: #a5b2c7; --soft: #7888a1; --line: #283446;
  --panel: #131b28; --page: #080e17; --surface: #0d1520; --surface-hover: #1a293a;
  --accent: #80caff; --accent-hot: #a5dcff; --accent-bg: #1d344b; --green: #7cdbbd;
  --chart-1: #80caff; --chart-2: #7cdbbd; --chart-3: #ffc17a; --chart-4: #e29bda;
  --chart-5: #92aaff; --chart-6: #b6d97d; --chart-7: #72d6e7; --chart-8: #f3989d;
}
:root:not([data-theme]), html[data-theme="light"] {
  color-scheme: light;
  --ink: #22211f; --muted: #66625e; --soft: #85817c; --line: #e7e4df;
  --panel: #fffefc; --page: #f8f7f4; --surface: #fdfcf9; --surface-hover: #f3f0eb;
  --accent: #7350bd; --accent-hot: #8969cb; --accent-bg: #f0eafa; --green: #296749;
  --red: #af3d4f;
  --chart-1: #7655c4; --chart-2: #2f907d; --chart-3: #cf8b37; --chart-4: #c05981;
  --chart-5: #497ebc; --chart-6: #60934c; --chart-7: #9657b1; --chart-8: #cf634e;
}
html[data-theme="midnight"] { --red: #fb8d9c; }
:root:not([data-theme]) { --accent: #b74422; --accent-hot: #ff784d; --accent-bg: #faeee6; }

.theme-control { display: inline-flex; align-items: center; }
.theme-control select {
  min-height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 25px 6px 9px;
  background: var(--panel); color: var(--muted); font-size: 11px; cursor: pointer;
}
.top-actions { gap: 8px; }

:is(html[data-theme="violet"], html[data-theme="midnight"]) body,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .sidebar,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .topbar,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .frame { background: var(--page); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .sidebar,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .topbar { background: var(--surface); border-color: var(--line); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .nav-group a { color: var(--muted); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .nav-group a:hover,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .identity:hover,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .icon-button:hover { background: var(--surface-hover); color: var(--ink); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .nav-group a[aria-current="page"] {
  background: var(--accent-bg); color: var(--accent-hot);
}
:is(html[data-theme="violet"], html[data-theme="midnight"]) .brand-mark { background: var(--accent-bg); color: var(--accent-hot); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .environment,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .environment-icon,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .avatar,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .icon-button { background: var(--panel); border-color: var(--line); color: var(--muted); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .identity { border-color: var(--line); color: var(--ink); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .breadcrumb strong { color: var(--ink); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .connection { color: var(--accent-hot); background: var(--accent-bg); border-color: var(--line); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .connection.online { color: var(--green); background: #10251f; border-color: #25483e; }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .overview-wallet { background: linear-gradient(125deg, #221a35, #40275f); color: #e2d7ff; }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .overview-wallet > strong { color: #fff; }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .overview-icon { background: var(--accent-bg); color: var(--accent-hot); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .overview-wallet .overview-icon { background: #ffffff16; color: #e2d3ff; }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .overview-spend { background: var(--accent-bg); color: var(--accent-hot); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .overview-placeholder { background: var(--surface); border-color: var(--line); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .overview-chart-columns {
  border-color: var(--line);
  background: repeating-linear-gradient(to top, transparent 0 calc(33.333% - 1px), #ffffff0c calc(33.333% - 1px) 33.333%);
}
:is(html[data-theme="violet"], html[data-theme="midnight"]) .provider-row,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .overview-links a,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .model-prices > div,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .card-footer { border-color: var(--line); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .provider-mark,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .count,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .filter,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .sort { background: var(--panel); border-color: var(--line); color: var(--muted); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .provider-progress,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .provider-progress::-webkit-progress-bar,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .success-track,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .success-track::-webkit-progress-bar { background: var(--surface-hover); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .hero {
  background: #171224; border-color: #49365e; color: #f7f0ff;
}
:is(html[data-theme="violet"], html[data-theme="midnight"]) .hero::after {
  background: linear-gradient(90deg, #120e1c 7%, #120e1ced 31%, #120e1c75 53%, transparent 78%);
}
:is(html[data-theme="violet"], html[data-theme="midnight"]) .hero-label i { color: var(--accent-hot); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .hero-label span { border-color: #9c87b4; }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .hero-label {
  color: #d7c9ee; background: #302343b8; border-color: #5b4774;
}
:is(html[data-theme="violet"], html[data-theme="midnight"]) .hero p { color: #c2b8d0; }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .hero-stats { background: #171222db; color: #f3ecff; border-color: #5c4975; }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .hero-stats span { color: #b9a8ce; }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .hero-primary { background: #e8dcff; color: #251738; }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .hero-primary:hover { background: #f1e9ff; }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .hero-secondary { color: #e4d5fa; background: #322546b8; border-color: #5c4775; }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .primary { background: #7656bd; color: #fff; }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .primary:hover { background: #8a6bd0; }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .outlined,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .model-card,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .picker-option,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .token-card,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .checkout-panel,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .table-panel,
:is(html[data-theme="violet"], html[data-theme="midnight"]) dialog,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .overview-links a {
  background: var(--panel); border-color: var(--line); color: var(--ink);
}
:is(html[data-theme="violet"], html[data-theme="midnight"]) .outlined:hover,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .model-card:hover,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .picker-option:hover,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .picker-option[aria-pressed="true"] { background: var(--surface-hover); border-color: var(--accent); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .model-card { background: linear-gradient(150deg, #1d1a2a, var(--panel)); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .brand-name,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .model-id,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .picker-model-label code { color: var(--muted); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .category,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .catalog-status { background: var(--surface-hover); color: var(--muted); border-color: var(--line); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .category.reserved,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .checkout-steps li[aria-current="step"] { background: var(--accent-bg); color: var(--accent-hot); border-color: var(--accent); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .model-success { color: var(--muted); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .model-success.measured { color: var(--green); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .model-prices > div { background: var(--surface); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .success-track.no-samples { background: repeating-linear-gradient(115deg, #292538 0 4px, #1d1a2a 4px 7px); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, .search, .model-trigger, .composer) {
  background-color: var(--surface); border-color: var(--line); color: var(--ink);
}
:is(html[data-theme="violet"], html[data-theme="midnight"]) .search:focus-within,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .composer:focus-within {
  outline-color: var(--accent); border-color: var(--accent);
}
:is(html[data-theme="violet"], html[data-theme="midnight"]) label:has(> select),
:is(html[data-theme="violet"], html[data-theme="midnight"]) .key-form label,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .dialog-content label,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .chat-model-control label,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .account-login label,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .account-inline label,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .security-form label,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .checkout-panel label { color: var(--muted); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .chat-route,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .inline-result,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .wallet-new-token,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .referral-stats > div,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .checkout-total,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .form-notice { background: var(--accent-bg); border-color: var(--line); color: var(--accent-hot); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .chat-log,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .checkout-details > div,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .doc-settings > div,
:is(html[data-theme="violet"], html[data-theme="midnight"]) th,
:is(html[data-theme="violet"], html[data-theme="midnight"]) td { border-color: var(--line); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .message { background: #211d2e; color: var(--ink); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .message.user { background: #34274b; }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .message small { color: var(--accent-hot); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .text-button { color: var(--accent-hot); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .auth-tabs,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .checkout-steps li,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .scan-payment,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .model-picker-list .picker-option { background: var(--surface); border-color: var(--line); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .picker-brands { border-color: var(--line); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .picker-brand-option { color: var(--ink); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .picker-brand-option:hover,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .picker-brand-option[aria-current="true"] { border-color: var(--line); background: var(--surface-hover); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .picker-option-status { color: var(--muted); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .auth-tabs button[aria-pressed="true"] { background: var(--accent-bg); border-color: var(--line); color: var(--accent-hot); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) th { background: var(--surface); color: var(--muted); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .category[data-status="credited"] { background: #122a22; color: var(--green); border-color: #29513f; }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .category[data-status="submitted"],
:is(html[data-theme="violet"], html[data-theme="midnight"]) .category[data-status="awaiting"] { background: #322717; color: #ffca81; border-color: #59442a; }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .locked > span,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .token-symbol { background: var(--accent-bg); color: var(--accent-hot); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .footer { color: var(--soft); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .toast { background: #282238; color: var(--ink); border: 1px solid var(--line); }

.theme-control select { width: auto; min-width: 84px; }
.overview-spend-container { margin-top: 14px; }
.overview-spend-container > .model-usage-chart { width: 100%; padding: 20px; }
.overview-spend-container > .model-usage-chart > header { width: 100%; }
.overview-spend-container .model-usage-layout { grid-template-columns: minmax(150px, .34fr) minmax(0, 1.66fr); gap: 28px; }
.overview-spend-container .model-usage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 28px; }
.metrics.usage-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.usage-metric small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.usage-cost-metric strong { color: var(--green); }
.usage-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.usage-chart-grid > .model-usage-chart { grid-column: 1 / -1; }
.daily-usage-chart { min-width: 0; padding: 16px; }
.daily-usage-chart > header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.daily-usage-chart h3, .model-usage-chart h3 { font-size: 14px; font-weight: 670; }
.daily-usage-total { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.daily-usage-columns { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 142px; padding-top: 15px; margin-top: 5px; border-bottom: 1px solid var(--line); }
.daily-usage-column { display: grid; grid-template-rows: minmax(0, 1fr) 18px; justify-items: center; min-width: 0; }
.daily-usage-bar-area { position: relative; display: flex; align-items: end; justify-content: center; width: 100%; height: 100%; max-width: 30px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), color-mix(in srgb, var(--line), transparent 70%) calc(25% - 1px) 25%); }
.daily-token-stack { display: flex; flex-direction: column-reverse; width: 100%; min-height: 0; border-radius: 5px 5px 0 0; overflow: hidden; transition: height .3s ease; }
.daily-token-segment { display: block; flex: none; width: 100%; min-height: 0; }
.daily-token-segment.input { background: var(--chart-1); }
.daily-token-segment.output { background: var(--chart-2); }
.daily-token-segment.estimated { background: var(--chart-3); }
.daily-token-legend { display: flex; gap: 12px; margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.daily-token-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.daily-token-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--chart-1); }
.daily-token-legend i.output { background: var(--chart-2); }
.daily-token-legend i.estimated { background: var(--chart-3); }
.daily-usage-date-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 2px; text-align: center; }
.daily-fee-plot { display: block; width: 100%; height: 142px; margin-top: 5px; overflow: visible; }
.daily-fee-gridline { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.daily-fee-area { fill: url(#daily-fee-gradient); }
.daily-fee-line { fill: none; stroke: var(--chart-1); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.daily-fee-point { fill: var(--panel); stroke: var(--chart-1); stroke-width: 2.5; }
.daily-usage-date { color: var(--muted); font-size: 9px; white-space: nowrap; }
.model-usage-chart { min-width: 0; padding: 16px; }
.model-usage-chart > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.chart-modes { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.chart-mode { padding: 5px 8px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 10px; }
.chart-mode[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent-hot); }
.model-usage-layout { display: grid; grid-template-columns: minmax(140px, .7fr) minmax(0, 1.6fr); align-items: center; gap: 22px; }
.model-usage-ring { position: relative; width: min(100%, 168px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; }
.model-usage-ring::after { content: ''; position: absolute; inset: 15%; border-radius: 50%; background: var(--panel); }
.model-usage-ring-center { position: absolute; z-index: 1; inset: 15%; display: grid; align-content: center; justify-items: center; gap: 4px; text-align: center; }
.model-usage-ring-center span { color: var(--muted); font-size: 10px; }
.model-usage-ring-center strong { max-width: 100%; overflow-wrap: anywhere; font-size: 17px; font-variant-numeric: tabular-nums; }
.model-usage-list { display: grid; gap: 11px; min-width: 0; }
.model-usage-item { display: grid; gap: 5px; min-width: 0; }
.model-usage-item-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-width: 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.model-usage-item-heading strong:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 580; }
.model-usage-item-heading strong:last-child { flex: none; }
.model-usage-track { height: 5px; overflow: hidden; border-radius: 9px; background: var(--surface-hover); }
.model-usage-fill { display: block; height: 100%; min-width: 2px; border-radius: inherit; }
.model-usage-item-detail { color: var(--muted); font-size: 10px; }
.usage-history { padding: 16px; }
.usage-table-heading { margin-bottom: 10px; font-size: 14px; font-weight: 670; }
.usage-metrics .metric { min-width: 0; }
.usage-metrics .metric strong { overflow-wrap: anywhere; }
.account-fold, .usage-history-fold { display: block; margin-top: 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.account-fold > summary, .usage-history-summary, .account-subfold > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 0 16px; color: var(--ink); cursor: pointer; list-style: none; }
.account-fold > summary::-webkit-details-marker, .usage-history-summary::-webkit-details-marker, .account-subfold > summary::-webkit-details-marker { display: none; }
.account-fold > summary::after, .usage-history-summary::after, .account-subfold > summary::after { content: '+'; color: var(--accent); font-size: 18px; font-weight: 400; transition: transform .18s ease; }
.account-fold[open] > summary::after, .usage-history-fold[open] > summary::after, .account-subfold[open] > summary::after { transform: rotate(45deg); }
.account-fold > summary > span:first-child, .usage-history-summary > strong { font-size: 12px; font-weight: 660; }
.account-fold > summary > span:nth-child(2), .usage-history-summary > span { margin-left: auto; color: var(--muted); font-size: 10px; }
.account-fold[open] > summary, .usage-history-fold[open] > summary { border-bottom: 1px solid var(--line); }
.account-fold-body { display: grid; gap: 13px; padding: 13px; }
.account-subfold { margin-top: 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.account-subfold > summary { min-height: 41px; padding: 0 2px; color: var(--muted); }
.account-subfold > summary > span:first-child { font-size: 11px; }
.account-subfold > summary > span:nth-child(2) { margin-left: auto; color: var(--soft); font-size: 9px; }
.account-subfold .token-list { padding-top: 7px; }
.usage-history-fold > .usage-history { border: 0; border-radius: 0; box-shadow: none; }
html[data-theme="midnight"] .overview-wallet { background: linear-gradient(125deg, #10233a, #173b5b); }
html[data-theme="midnight"] .hero { background: #0d1a29; border-color: #2a4964; }
html[data-theme="midnight"] .hero::after { background: linear-gradient(90deg, #09131e 7%, #09131eeb 31%, #09131e76 53%, transparent 78%); }

:is(html[data-theme="violet"], html[data-theme="midnight"]) .success-heading,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .catalog-empty { color: var(--muted); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .catalog-empty { border-color: var(--line); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .recharge-method,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .wallet-banner { background: linear-gradient(120deg, #1a1725, #211a31); border-color: var(--line); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .token-card:hover { border-color: var(--accent); }
:is(html[data-theme="violet"], html[data-theme="midnight"]) .dialog-content .error,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .checkout-panel .error,
:is(html[data-theme="violet"], html[data-theme="midnight"]) .error { color: var(--red); }

@media (max-width: 880px) {
  .metrics.usage-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-usage-layout { grid-template-columns: minmax(120px, .55fr) minmax(0, 1.45fr); gap: 14px; }
}
@media (max-width: 620px) {
  .usage-chart-grid { grid-template-columns: minmax(0, 1fr); }
  .model-usage-layout, .overview-spend-container .model-usage-layout { grid-template-columns: minmax(0, 1fr); }
  .overview-spend-container .model-usage-list { grid-template-columns: minmax(0, 1fr); }
  .model-usage-ring { width: 144px; }
  .theme-control select { min-width: 60px; padding-inline: 6px; }
  .top-actions { gap: 5px; }
}
@media (max-width: 510px) {
  .connection { display: none; }
}
@media (max-width: 560px) {
  .model-picker-list { grid-template-columns: minmax(103px, 34%) minmax(0, 1fr); gap: 10px; min-height: 235px; max-height: 58vh; }
  .picker-brands { padding-right: 7px; }
  .picker-brand-option { gap: 5px; padding-inline: 4px; }
  .picker-brand-option .model-mark { width: 23px; height: 23px; }
  .picker-brand-option > span:nth-child(2) { font-size: 9px; }
  .picker-brand-option small { font-size: 8px; }
  .picker-option { gap: 6px; padding: 6px; }
  .picker-option .model-mark { width: 25px; height: 25px; }
  .picker-model-label strong { font-size: 10px; }
  .picker-model-label code { display: none; }
  .picker-option-status { font-size: 8px; }
}
