/* ============================================================ tokens
   品牌：蓝→紫渐变（--brand-a → --brand-b）+ 金色终端光标（--gold），与 favicon / logo 同源。
   主色 --accent 取渐变中段的靛蓝；深色模式下 --accent 是浅靛蓝（用于文字、图标、描边），
   按钮底色单独用 --accent-solid，保证白字对比度。 */
:root {
  color-scheme: light;
  --bg: #f7f7f9;
  --surface: #ffffff;
  --surface-2: #f4f4f7;
  --surface-3: #ececf1;
  --sidebar-bg: #fbfbfc;
  --border: #e7e7ed;
  --border-strong: #d5d5dd;
  --text: #0e0e14;
  --text-2: #4a4a57;
  --text-3: #71717d;
  --accent: #4f5bea;
  --accent-solid: #4f5bea;
  --accent-solid-hover: #4350d9;
  --accent-soft: rgba(79, 91, 234, 0.085);
  --accent-line: rgba(79, 91, 234, 0.26);
  --accent-text: #ffffff;
  --brand-a: #2f6fed;
  --brand-b: #7b5cf0;
  --brand-grad: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  --gold: #ffc94d;
  --gold-soft: rgba(255, 201, 77, 0.2);
  --gold-ink: #8a5a00;
  --good: #15803d;
  --good-soft: rgba(21, 128, 61, 0.09);
  --warn: #b45309;
  --warn-soft: rgba(245, 158, 11, 0.13);
  --danger: #c93434;
  --danger-soft: rgba(201, 52, 52, 0.085);
  /* 图表：数据可视化参考配色（已用校验脚本验证），浅色/深色各自选定 */
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --s5: #e87ba4;
  --s-other: #9a9890;
  --grid: #eceae4;
  --axis: #c3c2b7;
  --shadow-xs: 0 1px 2px rgba(16, 16, 40, 0.05);
  --shadow-sm: 0 1px 2px rgba(16, 16, 40, 0.04), 0 1px 3px rgba(16, 16, 40, 0.03);
  --shadow: 0 1px 2px rgba(16, 16, 40, 0.04), 0 6px 16px -4px rgba(16, 16, 40, 0.1);
  --shadow-lg: 0 0 0 1px rgba(16, 16, 40, 0.04), 0 24px 56px -12px rgba(16, 16, 40, 0.28);
  --hi: inset 0 1px 0 rgba(255, 255, 255, 0);
  --ring: 0 0 0 3px rgba(79, 91, 234, 0.18);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 12px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0a0e;
    --surface: #121217;
    --surface-2: #18181f;
    --surface-3: #202028;
    --sidebar-bg: #0d0d12;
    --border: #23232c;
    --border-strong: #32323d;
    --text: #ededf2;
    --text-2: #b4b4c0;
    --text-3: #8a8a96;
    --accent: #959dff;
    --accent-solid: #5863e0;
    --accent-solid-hover: #6570ea;
    --accent-soft: rgba(125, 135, 255, 0.13);
    --accent-line: rgba(149, 157, 255, 0.32);
    --accent-text: #ffffff;
    --brand-a: #3d7bf2;
    --brand-b: #8466f5;
    --gold-soft: rgba(255, 201, 77, 0.14);
    --gold-ink: #ffd46e;
    --good: #3fbf5f;
    --good-soft: rgba(63, 191, 95, 0.13);
    --warn: #f0b03a;
    --warn-soft: rgba(240, 176, 58, 0.13);
    --danger: #ef6b6b;
    --danger-soft: rgba(239, 107, 107, 0.13);
    --s1: #3987e5;
    --s2: #d95926;
    --s3: #199e70;
    --s4: #c98500;
    --s5: #d55181;
    --s-other: #7c7b75;
    --grid: #2a2b2e;
    --axis: #3a3b3f;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 56px -12px rgba(0, 0, 0, 0.7);
    --hi: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    --ring: 0 0 0 3px rgba(149, 157, 255, 0.24);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0e;
  --surface: #121217;
  --surface-2: #18181f;
  --surface-3: #202028;
  --sidebar-bg: #0d0d12;
  --border: #23232c;
  --border-strong: #32323d;
  --text: #ededf2;
  --text-2: #b4b4c0;
  --text-3: #8a8a96;
  --accent: #959dff;
  --accent-solid: #5863e0;
  --accent-solid-hover: #6570ea;
  --accent-soft: rgba(125, 135, 255, 0.13);
  --accent-line: rgba(149, 157, 255, 0.32);
  --accent-text: #ffffff;
  --brand-a: #3d7bf2;
  --brand-b: #8466f5;
  --gold-soft: rgba(255, 201, 77, 0.14);
  --gold-ink: #ffd46e;
  --good: #3fbf5f;
  --good-soft: rgba(63, 191, 95, 0.13);
  --warn: #f0b03a;
  --warn-soft: rgba(240, 176, 58, 0.13);
  --danger: #ef6b6b;
  --danger-soft: rgba(239, 107, 107, 0.13);
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --s4: #c98500;
  --s5: #d55181;
  --s-other: #7c7b75;
  --grid: #2a2b2e;
  --axis: #3a3b3f;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 56px -12px rgba(0, 0, 0, 0.7);
  --hi: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  --ring: 0 0 0 3px rgba(149, 157, 255, 0.24);
}

/* ============================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in srgb, var(--brand-b) 26%, transparent); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
b, strong { font-weight: 600; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 5px; border-radius: 5px; font-size: 12px; }
svg.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
.muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grow { flex: 1 1 auto; min-width: 0; }
.spacer { flex: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.form-error { font-size: 12.5px; color: var(--danger); }
.form-error:empty { display: none; }

/* ============================================================ controls */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent;
  font: 500 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; user-select: none;
  background: var(--accent-solid); color: var(--accent-text);
  box-shadow: 0 1px 2px rgba(30, 30, 90, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s, transform .06s;
}
.btn:hover { background: var(--accent-solid-hover); text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(0.5px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled { opacity: .5; cursor: default; }
.btn .icon { width: 15px; height: 15px; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.secondary:focus-visible { box-shadow: var(--ring); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--text-2); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.ghost:focus-visible { box-shadow: var(--ring); }
.btn.danger { background: var(--surface); color: var(--danger); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn.danger:hover { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: transparent; }
.btn.danger.solid:hover { background: color-mix(in srgb, var(--danger) 88%, #000); }
.btn.brand { background: var(--brand-grad); border: 0; box-shadow: 0 1px 2px rgba(40, 40, 120, 0.25), 0 6px 18px -6px color-mix(in srgb, var(--brand-b) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.2); color: #fff; }
.btn.brand:hover { filter: brightness(1.07); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; gap: 5px; }
.btn.sm .icon { width: 14px; height: 14px; }
.btn.lg { height: 42px; padding: 0 20px; font-size: 14.5px; border-radius: 10px; }
.btn.icon-only { width: 34px; padding: 0; }
.btn.sm.icon-only { width: 28px; }
.btn.block { width: 100%; }
.btn.link { background: transparent; box-shadow: none; color: var(--accent); padding: 0 8px; }
.btn.link:hover { background: var(--accent-soft); }

.input, .select, .textarea {
  width: 100%; height: 36px; padding: 0 11px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 14px var(--font); transition: border-color .12s, box-shadow .12s; box-shadow: var(--shadow-xs);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); opacity: .85; }
.textarea { height: auto; min-height: 96px; padding: 9px 11px; line-height: 1.5; resize: vertical; }
.textarea.code { font-family: var(--mono); font-size: 12.5px; min-height: 420px; }
.select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--text-3) 60%, var(--border-strong)); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.input:disabled { background: var(--surface-2); color: var(--text-3); box-shadow: none; }
.input.sm, .select.sm { height: 30px; font-size: 13px; border-radius: 7px; }
.input-group { position: relative; }
.input-group > .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-group > .input { padding-left: 32px; }
/* 带显示 / 隐藏按钮的密钥输入框；.masked 用 CSS 遮挡字符，占位文字保持可读 */
.key-field { position: relative; }
.key-field > .input { padding-right: 40px; }
.key-field > .btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.key-field > .btn:hover { color: var(--text); }
.input.masked { -webkit-text-security: disc; }
.input.masked::placeholder { -webkit-text-security: none; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.field .error { font-size: 12.5px; color: var(--danger); }
.field .error:empty { display: none; }
.field:has(> .error:empty) { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 36px; height: 20px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .track { background: var(--accent-solid); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; color: var(--text-2); font: 500 13px var(--font); height: 28px; padding: 0 12px; border-radius: 6px; cursor: pointer; white-space: nowrap; transition: color .12s, background .12s; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(16, 16, 40, 0.08), 0 0 0 1px var(--border); }
.seg button:focus-visible { outline: none; box-shadow: var(--ring); }
.seg.block { display: flex; width: 100%; }
.seg.block button { flex: 1 1 0; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font: 12.5px var(--font); cursor: pointer; transition: border-color .12s, background .12s, color .12s; }
.chip:hover { border-color: var(--text-3); color: var(--text); }
.chip.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.chip .icon { width: 13px; height: 13px; }

/* ============================================================ badges */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--text-2); white-space: nowrap; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 12px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.tag.mono { font-family: var(--mono); font-size: 11.5px; } /* 模型名等代码类标签 */

/* ============================================================ cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm), var(--hi); min-width: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; flex-wrap: wrap; }
.card-header h3 { font-size: 14px; font-weight: 600; }
.card-header .sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.card-body { padding: 16px 20px 20px; }
.card-body.flush { padding: 14px 0 0; }
.card-body.flush > .table-wrap .table th:first-child, .card-body.flush > .table-wrap .table td:first-child { padding-left: 20px; }
.card-body.flush > .table-wrap .table th:last-child, .card-body.flush > .table-wrap .table td:last-child { padding-right: 20px; }
.card.fill { display: flex; flex-direction: column; }
.card.fill > .card-body { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.grid { display: grid; gap: 16px; }
.grid.top { align-items: start; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.span-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.span-2-1 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .grid { gap: 12px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .card-header { padding: 14px 16px 0; }
  .card-body { padding: 14px 16px 16px; }
  .card-body.flush > .table-wrap .table th:first-child, .card-body.flush > .table-wrap .table td:first-child { padding-left: 16px; }
  .stat { padding: 14px; }
  .stat .value { font-size: 21px; }
  .stat .label .icon { display: none; }
}

/* stat tile */
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat .label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); }
.stat .label .icon { width: 15px; height: 15px; color: var(--text-3); }
.stat .value { font-size: 26px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat .value.hero { font-size: 36px; }
.stat .foot { font-size: 12.5px; color: var(--text-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.delta { font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.up-good, .delta.down-good { color: var(--good); }
.delta.up-bad, .delta.down-bad { color: var(--danger); }
.delta.flat { color: var(--text-3); }

/* 主 KPI：品牌色调的大卡片（余额 / 今日收入） */
.stat.feature-stat { position: relative; overflow: hidden; border-color: var(--accent-line); background:
  radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--brand-b) 13%, transparent), transparent 55%),
  radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--brand-a) 9%, transparent), transparent 60%),
  var(--surface); }
.stat.feature-stat::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--brand-a), var(--brand-b) 70%, var(--gold)); }
.stat.feature-stat .label .icon { color: var(--accent); }
.stat.feature-stat .value { font-size: 34px; }
.stat .cta-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 760px) { .stat.feature-stat .value { font-size: 28px; } }

/* 次要指标条：一张卡片里并排的小指标，用 1px 网格线分隔 */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.metric { background: var(--surface); padding: 13px 18px 14px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.metric .l { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric .v { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric .f { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .metric { padding: 12px 14px; } .metric .v { font-size: 17px; } }

/* KPI 行：一张主卡 + 若干普通卡 */
.kpis { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpis.k3 { grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpis.k3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis > .feature-stat { grid-column: 1 / -1; } }
@media (max-width: 760px) { .kpis, .kpis.k3 { gap: 12px; } }
@media (max-width: 600px) { .kpis, .kpis.k3 { grid-template-columns: minmax(0, 1fr); } .kpis .stat-spark .spark { height: 28px; } }

/* callout */
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-size: 13.5px; }
.callout > .icon { margin-top: 2px; }
.callout.accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); }
.callout.accent > .icon { color: var(--accent); }
.callout.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--text); }
.callout.warn > .icon { color: var(--warn); }
.callout.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--text); }
.callout.danger > .icon { color: var(--danger); }
.callout strong { color: var(--text); }
.callout.small { font-size: 12.5px; padding: 10px 12px; }
.callout.announce { align-items: center; }
.callout.announce > .icon { margin-top: 0; width: 30px; height: 30px; padding: 7px; border-radius: 8px; background: var(--surface); color: var(--accent); box-shadow: var(--shadow-xs); flex: none; }

/* ============================================================ table */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--text-3); padding: 9px 14px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); position: sticky; top: 0; z-index: 1; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th.r, .table td.r { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr { transition: background .1s; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.table tbody tr.clickable:hover td { background: var(--accent-soft); }
.table td .sub { font-size: 12px; color: var(--text-3); }
.table td.wrap { white-space: normal; }
.table .actions { display: flex; gap: 4px; justify-content: flex-end; }
.table td a { font-weight: 500; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.card > .card-body:not(.flush) .table-wrap .table th:first-child { border-top-left-radius: 8px; }
.card > .card-body:not(.flush) .table-wrap .table th:last-child { border-top-right-radius: 8px; }

/* empty / loading */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 40px 16px; color: var(--text-3); text-align: center; font-size: 13px; }
.empty > .icon { width: 40px; height: 40px; padding: 10px; stroke-width: 1.6; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-3); margin-bottom: 6px; }
.empty .title { color: var(--text); font-weight: 550; font-size: 14px; }
.loading { opacity: .55; transition: opacity .15s; pointer-events: none; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* code block（始终深色，像终端） */
.code { position: relative; background: #0d0d14; color: #e4e6f0; border-radius: var(--radius); border: 1px solid #23232f; overflow: hidden; box-shadow: var(--shadow-sm); }
.code .code-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 14px; font: 12px var(--mono); color: #9a9cb2; border-bottom: 1px solid #20202b; background: #13131c; }
.code .code-head > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; line-height: 1.7; font-size: 12.5px; }
.code .btn { background: transparent; color: #c4c6da; border: 1px solid #2c2c3a; box-shadow: none; height: 26px; font-size: 12px; padding: 0 9px; }
.code .btn:hover { background: #1e1e2a; color: #fff; }
.code .tok-k { color: #a5b0ff; }
.code .tok-s { color: #9fe0b0; }
.code .tok-c { color: #6c6f86; }
.code .tok-p { color: #ffc94d; }

.keybox { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); font-family: var(--mono); font-size: 13px; word-break: break-all; }
.keybox span { flex: 1; }

/* 紧凑密钥：sk-c••••••••••••3DDw + 仅图标的复制按钮 */
.masked-key { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; vertical-align: middle; }
.masked-key-text { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); letter-spacing: .02em; white-space: nowrap; }
.masked-key .btn.sm.icon-only { width: 24px; height: 24px; border-radius: 6px; color: var(--text-3); }
.masked-key .btn.sm.icon-only:hover:not(:disabled) { color: var(--text); }
.masked-key .btn .icon { width: 14px; height: 14px; }
.masked-key .btn:disabled { opacity: .45; cursor: not-allowed; }
.masked-key .btn:disabled:hover { background: transparent; color: var(--text-3); }
.table td .masked-key-text { font-size: 12px; }

kbd { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); }

/* ============================================================ logo */
.logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #2f6fed, #7b5cf0); display: grid; place-items: center; color: #fff; flex: none; box-shadow: 0 1px 2px rgba(40, 40, 120, .25), 0 4px 12px -4px rgba(123, 92, 240, .55), inset 0 1px 0 rgba(255, 255, 255, .22); }
.logo .logo-mark { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; }
.logo .logo-cursor { stroke: #ffc94d; }
.logo.lg { width: 40px; height: 40px; border-radius: 11px; }

/* ============================================================ app shell (console / admin) */
/* 侧栏底色画在 .shell 上，页面多长侧栏底色就有多长（修复滚动后露出灰底） */
.shell { --side-w: 240px; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(to right, var(--sidebar-bg) calc(var(--side-w) - 1px), var(--border) calc(var(--side-w) - 1px) var(--side-w), transparent var(--side-w)); }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 2px; padding: 14px 12px 12px; background: var(--sidebar-bg); border-right: 1px solid var(--border); overflow-y: auto; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-weight: 650; font-size: 15px; color: var(--text); min-width: 0; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand .role { font-size: 11.5px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.sidebar .brand { margin: 0 -2px 6px; padding: 6px 10px 16px; border-bottom: 1px solid var(--border); }
.nav-section { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--text-3); padding: 14px 10px 6px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 13.5px; cursor: pointer; transition: background .12s, color .12s; }
.nav-item:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.nav-item .icon { width: 17px; height: 17px; color: var(--text-3); transition: color .12s; }
.nav-item:hover .icon { color: var(--text-2); }
.nav-item.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 0 0 1px var(--border), var(--shadow-xs); }
.nav-item.active .icon { color: var(--accent); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--brand-a), var(--brand-b)); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border); padding-top: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; min-width: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.user-chip .who { min-width: 0; }
.user-chip .who div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { min-width: 0; padding: 28px 36px 72px; max-width: 1400px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.page-head .sub { color: var(--text-3); margin-top: 4px; font-size: 13.5px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); font-size: 13px; margin-bottom: 8px; }
.back:hover { color: var(--text); text-decoration: none; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.topbar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: none; }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 0; width: 264px; transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s; }
  .shell.nav-open .sidebar { transform: none; visibility: visible; box-shadow: var(--shadow-lg); }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(8, 8, 16, .45); z-index: 30; backdrop-filter: blur(2px); }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; padding: 10px 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
  .topbar .logo { width: 24px; height: 24px; border-radius: 7px; }
  .topbar strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main { padding: 20px 16px 48px; }
  .page-head { margin-bottom: 16px; }
  .page-head h1 { font-size: 20px; }
}

/* ============================================================ overlay: modal / drawer / toast */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(8, 8, 16, .48); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .14s; }
.overlay.drawer-overlay { justify-content: flex-end; padding: 0; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); animation: pop .16s cubic-bezier(.2, .9, .3, 1.2); display: flex; flex-direction: column; }
.modal.wide { width: min(760px, 100%); }
.modal.xwide { width: min(980px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 0 22px; }
.modal-head h3 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { padding: 16px 22px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px; border-top: 1px solid var(--border); background: var(--surface-2); position: sticky; bottom: 0; margin-top: auto; }
.drawer { width: min(520px, 100%); height: 100%; overflow: auto; background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: slide .18s ease-out; }
.drawer .modal-head { position: sticky; top: 0; z-index: 2; background: var(--surface); padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.drawer .modal-body { padding-top: 18px; }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0; font-size: 13.5px; margin: 0; }
.kv dt, .kv dd { padding: 9px 0; border-bottom: 1px solid var(--border); }
.kv dt { color: var(--text-3); padding-right: 14px; }
.kv dd { margin: 0; word-break: break-word; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.toasts { position: fixed; z-index: 200; top: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 12px; border-radius: 10px; background: #18181f; color: #f2f2f6; font-size: 13.5px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 12px 32px -8px rgba(0,0,0,.45); animation: pop .16s; max-width: min(520px, calc(100vw - 32px)); }
.toast.error { background: var(--danger); color: #fff; }
.toast.success .icon { color: #5fd98a; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(4px); } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }

/* ============================================================ auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; background: var(--bg); }
.auth-wrap::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(700px 360px at 50% -6%, color-mix(in srgb, var(--brand-b) 16%, transparent), transparent 70%),
  radial-gradient(500px 300px at 85% 10%, color-mix(in srgb, var(--brand-a) 10%, transparent), transparent 70%); }
.auth-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(600px 380px at 50% 20%, #000, transparent 75%); mask-image: radial-gradient(600px 380px at 50% 20%, #000, transparent 75%); opacity: .6; }
.auth-card { position: relative; z-index: 1; width: min(400px, 100%); padding: 32px 30px 26px; box-shadow: var(--shadow), var(--hi); }
.auth-card .brand { flex-direction: column; justify-content: center; gap: 14px; padding: 0 0 4px; font-size: 20px; text-align: center; }
.auth-card .brand .logo { width: 44px; height: 44px; border-radius: 12px; }
.auth-card .lead { text-align: center; color: var(--text-3); margin-bottom: 24px; font-size: 13.5px; }
.auth-card form.stack { gap: 14px; }
.auth-card .btn.block { margin-top: 6px; }
.auth-card .auth-alt { text-align: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.auth-back { position: absolute; z-index: 2; top: 18px; left: 20px; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; }
.auth-back:hover { color: var(--text); text-decoration: none; }
.auth-foot { position: relative; z-index: 1; margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.auth-col { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: min(400px, 100%); }
@media (max-width: 480px) { .auth-card { padding: 26px 20px 22px; } .auth-wrap { place-items: start center; padding-top: 64px; } }

/* ============================================================ charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart.fit { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.chart.fit > .chart-plot { flex: 1 1 auto; position: relative; min-height: 220px; }
.chart.fit > .chart-plot > svg { position: absolute; left: 0; top: 0; }
.chart .tick { font: 11px var(--font); fill: var(--text-3); font-variant-numeric: tabular-nums; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .crosshair { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; shape-rendering: crispEdges; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:focus-visible { outline: none; }
.chart .col:hover, .chart .col.hover { filter: brightness(1.12); }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 9px 11px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: 12.5px; transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; }
.chart-tip .t { color: var(--text-3); margin-bottom: 5px; font-size: 12px; }
.chart-tip .r { display: flex; align-items: center; gap: 8px; line-height: 1.7; }
.chart-tip .r .k { width: 12px; height: 2px; border-radius: 2px; flex: none; }
.chart-tip .r .v { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.chart-tip .r .n { color: var(--text-2); }
.chart-tip .f { color: var(--text-2); border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.chart-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.chart-toggle { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 500 12.5px var(--font); cursor: pointer; box-shadow: var(--shadow-xs); transition: background .12s, color .12s, border-color .12s; margin-left: auto; }
.chart-toggle:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.chart-toggle:focus-visible { outline: none; box-shadow: var(--ring); }
.chart-toggle .icon { width: 14px; height: 14px; transition: transform .15s; }
.chart-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.chart-table { border: 1px solid var(--border); border-radius: 8px; }
.legend { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.line { width: 14px; height: 2px; border-radius: 2px; }
.barlist { display: flex; flex-direction: column; gap: 14px; }
.barlist .item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: center; }
.barlist .label { font-size: 13px; font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.barlist .val { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.barlist .track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.barlist .fill { height: 100%; border-radius: 3px; background: var(--s1); min-width: 2px; }
.barlist .meta { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); margin-top: -1px; }

/* ============================================================ public site */
.site-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent); }
.site-nav .inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 11px 24px; }
.site-nav .brand { padding: 0; margin-right: 18px; }
.site-nav .links { display: flex; gap: 2px; }
.site-nav .links a { color: var(--text-2); padding: 6px 11px; border-radius: 7px; font-size: 14px; transition: color .12s, background .12s; }
.site-nav .links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.site-nav .links a.active { color: var(--text); font-weight: 550; }
.site-nav .btn.ghost { color: var(--text); }
@media (max-width: 720px) { .site-nav .links { display: none; } .site-nav .inner { padding: 10px 16px; gap: 4px; } .site-nav .brand { margin-right: 0; } .site-nav .btn.ghost.login { display: none; } }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 720px) { .container { padding: 0 16px; } }

/* hero */
.hero { position: relative; padding: 76px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -1px 0 0; pointer-events: none; background:
  radial-gradient(760px 420px at 18% -8%, color-mix(in srgb, var(--brand-a) 15%, transparent), transparent 70%),
  radial-gradient(640px 420px at 88% 4%, color-mix(in srgb, var(--brand-b) 15%, transparent), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px; background-position: center top; -webkit-mask-image: radial-gradient(900px 520px at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(900px 520px at 50% 0%, #000 20%, transparent 75%); opacity: .55; }
.hero > .container { position: relative; z-index: 1; }
.hero .inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero .inner { grid-template-columns: minmax(0, 1fr); gap: 36px; } .hero { padding: 48px 0 36px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 85%, transparent); border: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; box-shadow: var(--shadow-xs); max-width: 100%; }
.eyebrow b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); flex: none; }
.eyebrow .sep { width: 1px; height: 12px; background: var(--border-strong); }
.eyebrow .ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; margin: 20px 0 18px; }
.grad { background: linear-gradient(110deg, var(--brand-a), var(--brand-b) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cursor { display: inline-block; width: .5em; height: .09em; margin-left: .08em; vertical-align: baseline; background: var(--gold); border-radius: 2px; box-shadow: 0 0 18px color-mix(in srgb, var(--gold) 60%, transparent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .lead { font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 520px; }
.hero .cta { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.hero .facts { display: flex; gap: 8px 22px; margin-top: 26px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; }
.hero .facts div { display: flex; align-items: center; gap: 6px; }
.hero .facts .icon { color: var(--good); width: 15px; height: 15px; }

/* 终端窗口：代码配置卡 */
.window { position: relative; border-radius: 14px; background: #0d0d14; border: 1px solid #262633; box-shadow: 0 0 0 1px rgba(255,255,255,.02), 0 30px 60px -20px rgba(30, 20, 80, .45), 0 0 0 8px color-mix(in srgb, var(--surface) 55%, transparent); overflow: hidden; color: #e4e6f0; }
.window-head { display: flex; align-items: center; gap: 12px; padding: 0 10px 0 14px; height: 44px; background: #13131c; border-bottom: 1px solid #22222e; }
.window-dots { display: flex; gap: 6px; flex: none; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c3a; }
.window-tabs { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.window-tabs button { height: 28px; padding: 0 11px; border-radius: 7px; border: 0; background: transparent; color: #8d8fa6; font: 500 12.5px var(--font); cursor: pointer; white-space: nowrap; }
.window-tabs button:hover { color: #e4e6f0; }
.window-tabs button[aria-selected="true"] { background: #222230; color: #fff; box-shadow: inset 0 0 0 1px #2e2e3e; }
.window-tabs button:focus-visible { outline: 2px solid #959dff; outline-offset: 1px; }
.window-head .btn { margin-left: auto; background: transparent; color: #c4c6da; border: 1px solid #2c2c3a; box-shadow: none; }
.window-head .btn:hover { background: #1e1e2a; color: #fff; }
.window .path { padding: 12px 18px 0; font: 12px var(--mono); color: #6c6f86; }
.window pre { margin: 0; padding: 8px 18px 18px; font: 13px/1.75 var(--mono); overflow-x: auto; min-height: 196px; }
.window pre .tok-k { color: #a5b0ff; }
.window pre .tok-s { color: #9fe0b0; }
.window pre .tok-p { color: #ffc94d; }
.window-foot { display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-top: 1px solid #1e1e29; background: #101018; font: 12.5px var(--mono); color: #8d8fa6; overflow: hidden; white-space: nowrap; }
.window-foot .p { color: #9fe0b0; }
.window-foot .c { color: #e4e6f0; }
.window-foot .cursor { width: 8px; height: 15px; vertical-align: -3px; box-shadow: none; }
@media (max-width: 720px) { .window pre { font-size: 12px; padding: 8px 14px 16px; min-height: 0; } .window .path { padding: 12px 14px 0; } .window-dots { display: none; } .window-head { padding-left: 8px; } }

/* hero 下方的数字条 */
.hero-stats { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); overflow: hidden; }
.hero-stats > div { padding: 18px 22px; border-left: 1px solid var(--border); min-width: 0; }
.hero-stats > div:first-child { border-left: 0; }
.hero-stats b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.hero-stats span { font-size: 13px; color: var(--text-3); }
@media (max-width: 760px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; } .hero-stats > div { padding: 14px 16px; } .hero-stats > div:nth-child(3) { border-left: 0; } .hero-stats > div:nth-child(n+3) { border-top: 1px solid var(--border); } .hero-stats b { font-size: 20px; } }

.section { padding: 80px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head .kicker { display: inline-block; font: 600 13px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.025em; font-weight: 700; }
.section-head p { color: var(--text-2); margin-top: 12px; font-size: 15px; }
@media (max-width: 720px) { .section { padding: 56px 0; } .section-head { margin-bottom: 28px; } }

/* 特性：2×2，每张卡片带一个小插画 */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.feature { padding: 24px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; position: relative; transition: border-color .15s, box-shadow .15s; }
.feature:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.feature .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-grad); color: #fff; margin-bottom: 10px; box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--brand-b) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.2); }
.feature .ic .icon { width: 18px; height: 18px; }
.feature h3 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.feature p { color: var(--text-2); font-size: 13.5px; line-height: 1.65; }
.feature .art { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border-strong); display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; min-height: 58px; }
.feature .art .tag { height: 24px; padding: 0 9px; background: var(--surface-2); }
.feature .art .tag.more { color: var(--text-3); font-family: var(--font); }
.feature .art.bars { gap: 5px; height: 76px; align-items: flex-end; flex-wrap: nowrap; }
.feature .art.bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(var(--brand-b), var(--brand-a)); opacity: .85; min-height: 6px; }
.feature .art.bars i:last-child { background: var(--gold); opacity: 1; }
.feature .art.split { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.feature .art.split div { border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); padding: 8px 10px; min-width: 0; }
.feature .art.split span { display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature .art.split b { display: block; font-size: 15px; font-weight: 650; color: var(--text); margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.feature .art .art-cap { width: 100%; font-size: 12px; color: var(--text-3); margin-bottom: 2px; }
.feature .art.split .art-cap { grid-column: 1 / -1; background: none; border: 0; padding: 0; }
@media (max-width: 480px) { .feature .art.split { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feature { padding: 20px; } }

/* 三步：一张卡片三栏，编号用渐变字 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { padding: 26px 28px 28px; position: relative; display: flex; flex-direction: column; gap: 8px; }
.step + .step { border-left: 1px solid var(--border); }
.step .n { font: 700 13px var(--mono); letter-spacing: .04em; display: inline-flex; align-items: center; gap: 10px; color: var(--accent); margin-bottom: 6px; }
.step .n::after { content: ""; height: 1px; width: 40px; background: linear-gradient(90deg, var(--accent-line), transparent); }
.step h3 { font-size: 16px; font-weight: 650; }
.step p { color: var(--text-2); font-size: 13.5px; line-height: 1.65; }
.step a { font-size: 13px; font-weight: 500; margin-top: 2px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } .step + .step { border-left: 0; border-top: 1px solid var(--border); } .step { padding: 20px; } }

/* 价格表 */
.pricing-wrap { max-width: 960px; margin: 0 auto; }
.pricing-tabs { display: flex; justify-content: center; margin-bottom: 18px; }
.price-table td.model { font-family: var(--mono); font-size: 13px; }
.price-table td.model .sub { font-family: var(--font); margin-top: 2px; }
.price-table td.strong { font-weight: 600; color: var(--text); }
.price-table td.soft { color: var(--text-2); }
.price-table tr.group td { background: var(--surface-2); color: var(--text-3); font: 600 11.5px var(--font); letter-spacing: .04em; padding-top: 7px; padding-bottom: 7px; text-transform: uppercase; }
.price-table tr.group td .count { font-weight: 500; margin-left: 6px; letter-spacing: 0; text-transform: none; }
.price-table tbody tr.group:hover td { background: var(--surface-2); }
.price-table .fam { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; background: var(--brand-grad); }
.pricing-note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--text-3); }
.pricing-table td:first-child { font-family: var(--mono); font-size: 13px; }
.vendor-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; }

/* CTA 区块 */
.cta-band { position: relative; overflow: hidden; border-radius: 18px; padding: 48px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, rgba(255, 201, 77, .18), transparent 60%), linear-gradient(120deg, #1d3fae, #5b3fd6 60%, #7b5cf0); box-shadow: 0 30px 60px -24px rgba(60, 40, 160, .5); }
.cta-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.025em; }
.cta-band p { color: rgba(255, 255, 255, .78); margin-top: 8px; font-size: 15px; }
.cta-band .row { gap: 10px; }
.cta-band .btn.on-dark { background: #fff; color: #1d1d3a; box-shadow: 0 6px 18px -6px rgba(0,0,0,.4); }
.cta-band .btn.on-dark:hover { background: #f1f1ff; }
.cta-band .btn.on-dark-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); box-shadow: none; }
.cta-band .btn.on-dark-ghost:hover { background: rgba(255,255,255,.18); }
.cta-band .btn:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.55); }
@media (max-width: 720px) { .cta-band { padding: 32px 22px; border-radius: 14px; } }

.footer { padding: 36px 0 44px; color: var(--text-3); font-size: 13px; border-top: 1px solid var(--border); background: var(--surface); }
.footer .inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer .brand { padding: 0; font-size: 14px; }
.footer .brand .logo { width: 24px; height: 24px; border-radius: 7px; }
.footer .fl { display: flex; flex-direction: column; gap: 10px; }
.footer .links { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.footer .links a { color: var(--text-2); }
.footer .links a:hover { color: var(--text); }
.footer .contact { display: flex; align-items: center; gap: 6px; color: var(--text-2); }

/* docs */
.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; padding: 40px 0 88px; }
@media (max-width: 900px) { .docs { grid-template-columns: minmax(0, 1fr); padding-top: 28px; } .toc { display: none; } }
.docs-head { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.docs-head .kicker { font: 600 13px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.docs-head h1 { font-size: 32px; letter-spacing: -0.03em; font-weight: 700; margin: 8px 0 8px; }
.docs-head p { color: var(--text-2); font-size: 15px; }
.toc { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; border-left: 1px solid var(--border); }
.toc .t { font-size: 12px; font-weight: 600; color: var(--text-3); padding: 0 14px 10px; }
.toc a { color: var(--text-2); padding: 6px 14px; margin-left: -1px; border-left: 2px solid transparent; transition: color .12s, border-color .12s; }
.toc a:hover { color: var(--text); text-decoration: none; border-left-color: var(--border-strong); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 550; }
.guide { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.guide .guide { gap: 36px; }
.guide h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; scroll-margin-top: 84px; }
.guide h3 { font-size: 15.5px; margin-bottom: 8px; }
.guide .lead { color: var(--text-2); margin-top: -6px; }
.guide section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 84px; }
.guide ol.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 22px; }
.guide ol.steps-list > li { counter-increment: s; position: relative; padding-left: 40px; display: flex; flex-direction: column; gap: 10px; }
.guide ol.steps-list > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 600 12.5px var(--mono); box-shadow: inset 0 0 0 1px var(--accent-line); }
.guide ol.steps-list > li:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 32px; bottom: -16px; width: 1px; background: var(--border); }
.guide ol.steps-list > li > .title { font-weight: 600; line-height: 26px; }
.guide p.text { color: var(--text-2); }
details.faq { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .12s, box-shadow .12s; }
details.faq[open] { box-shadow: var(--shadow-sm); }
details.faq:hover { border-color: var(--border-strong); }
details.faq + details.faq { margin-top: 8px; }
details.faq summary { cursor: pointer; padding: 13px 16px; font-weight: 550; list-style: none; display: flex; align-items: center; gap: 10px; border-radius: var(--radius); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3); transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; flex: none; }
details.faq[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
details.faq .a { padding: 0 16px 14px; color: var(--text-2); }

/* ============================================================ v3：密钥卡片、模型卡片、会话 */
.spark { display: block; width: 100%; }
/* 紧凑密钥卡片：整卡可点（进入该密钥的使用明细），悬停上浮 */
.key-card { padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; min-width: 0; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.key-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.key-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.key-card .head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.key-card .head h3 { font-size: 14.5px; font-weight: 600; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-card .head .masked-key { margin-left: auto; }
.key-card .spark { margin: 0; }
.key-card .kmeta { font-size: 12.5px; line-height: 1.6; color: var(--text-3); }
.key-card .kmeta b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.key-card .quota { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); }
.key-card .quota .quota-bar { flex: 1; height: 5px; }
.key-card .actions { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin: auto -6px 0; padding-top: 10px; border-top: 1px solid var(--border); }
.key-card .actions .btn.sm { height: 28px; padding: 0 9px; }
.key-card .actions .btn.sm:not(.ghost) { margin-right: 6px; margin-left: 6px; }
.key-card .actions .btn .icon { width: 14px; height: 14px; }
.key-card.dim { opacity: .62; }
.key-card.dim:hover { opacity: .85; }
@media (prefers-reduced-motion: reduce) {
  .key-card, .btn { transition: none; }
  .key-card:hover { transform: none; }
  .cursor { animation: none; }
}
.quota-bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.quota-bar > i { display: block; height: 100%; background: var(--s1); border-radius: 3px; }
.quota-bar.warn > i { background: var(--warn); }
.quota-bar.full > i { background: var(--danger); }
.model-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.model-card .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.model-card .head h3 { font-family: var(--mono); font-size: 14px; word-break: break-all; }
.model-card .proto { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.model-card .prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.model-card .prices div { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.model-card .prices span { display: block; font-size: 11.5px; color: var(--text-3); }
.model-card .prices b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.model-card .lc { font-size: 12px; color: var(--text-3); }
.sid { font-family: var(--mono); font-size: 12.5px; }
.hitbar { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.hitbar i { width: 48px; height: 5px; border-radius: 3px; background: var(--surface-3); position: relative; overflow: hidden; }
.hitbar i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--s3); border-radius: 3px; }
.copy-hover { opacity: 0; transition: opacity .12s; }
tr:hover .copy-hover, .copy-hover:focus-visible { opacity: 1; }
@media (hover: none) { .copy-hover { opacity: .6; } }
.check { width: 16px; height: 16px; accent-color: var(--accent-solid); cursor: pointer; vertical-align: middle; }
.bulk-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 13.5px; }

/* 使用明细：用量监控卡片 */
.mon-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 0; }
.mon-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-grad); color: #fff; flex: none; box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--brand-b) 60%, transparent), inset 0 1px 0 rgba(255,255,255,.2); }
.mon-ic .icon { width: 17px; height: 17px; }
.mon-head h3 { font-size: 14.5px; font-weight: 600; }
.mon-head .sub { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.mon-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.mon-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
button.mon-tile { cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; box-shadow: var(--shadow-xs); }
button.mon-tile:hover { border-color: var(--border-strong); }
button.mon-tile:focus-visible { outline: none; box-shadow: var(--ring); }
.mon-tile[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.mon-tile .l { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.mon-tile .l .icon { width: 14px; height: 14px; color: var(--text-3); }
.mon-tile[aria-pressed="true"] .l .icon { color: var(--accent); }
.mon-tile .v { font-size: 24px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.2; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon-tile .s { font-size: 12px; color: var(--text-3); }
.mon-cap { font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }
@media (max-width: 600px) {
  .mon-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mon-tiles > :last-child { grid-column: 1 / -1; }
  .mon-tile .v { font-size: 20px; }
}
.list-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; }
.list-head + div > .table-wrap .table th { border-top: 1px solid var(--border); }
.list-head .sub { font-size: 12.5px; color: var(--text-3); }
.sess-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-3); padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.sess-sum b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.sess-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sess-list .table th { border-top: 0; }

/* 接入地址条（密钥页） */
.endpoint { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 18px; flex-wrap: wrap; }
.endpoint .ep-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.endpoint .ep-main { flex: 1 1 260px; min-width: 0; }
.endpoint .ep-main .t { font-size: 12.5px; color: var(--text-3); }
.endpoint .ep-main .u { font: 500 14px var(--mono); color: var(--text); word-break: break-all; }
.endpoint .ep-note { font-size: 12.5px; color: var(--text-3); flex: 1 1 260px; }
.ep-rows { display: grid; gap: 6px; margin-top: 4px; }
.ep-row { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 12px; }
.ep-row .ep-client { width: 210px; font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; }
.ep-row .ep-field { margin-left: 8px; font: 12px var(--mono); color: var(--text-3); }
.ep-row .u { display: inline-flex; align-items: center; gap: 4px; font: 500 14px var(--mono); color: var(--text); white-space: nowrap; }
.chart-plot { position: relative; }
.stat-spark { margin: auto -2px -4px; padding-top: 6px; }
.stat-spark .spark { display: block; }
.stat .cta-row:has(> .stat-meter) { margin-top: auto; }
.stat-meter { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; padding-bottom: 6px; }
.stat-meter .quota-bar { flex: 1; }
@media (max-width: 600px) {
  .price-table th, .price-table td { padding-left: 10px; padding-right: 10px; }
  .price-table td { font-size: 12.5px; }
  .price-table td.model { font-size: 12px; white-space: normal; word-break: break-all; min-width: 150px; }
  .price-table td.model .sub { font-size: 11px; }
}
@media (max-width: 760px) { .metric .f { white-space: normal; } }
