/* ============================================================================
   LLMRelayService PHP Console — 设计令牌与组件样式
   ----------------------------------------------------------------------------
   令牌与类名全部对齐 console/ai-proxy-dashboard/src/index.css 与
   .agents/skills/ai-proxy-dashboard-design-guide/SKILL.md。

   关键约定：
   - 主色 teal #0f9aa6，背景 #eef3f3，页面容器为纯白面板（--card）
   - Card 是扁平的透明布局容器，不再套第二层边框（无 card-in-card）
   - 圆角统一来自 --radius（0.75rem），不写死 px
   - 表头 11px / --lrs-faint；单元格统一 12px
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  --font-sans: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;

  /* LRS Clear · flat clean teal surface */
  --radius: 0.75rem;
  --radius-sm: calc(var(--radius) - 0.375rem);
  --radius-md: calc(var(--radius) - 0.125rem);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 0.25rem);

  --background: #eef3f3;
  --foreground: #15282a;
  --card: #ffffff;
  --card-foreground: #15282a;
  --popover: #ffffff;
  --popover-foreground: #15282a;
  --primary: #0f9aa6;
  --primary-foreground: #ffffff;
  --secondary: #eef2f2;
  --secondary-foreground: #15282a;
  --muted: #f0f5f5;
  --muted-foreground: #6b8385;
  --accent: #eef8f8;
  --accent-foreground: #0c7c86;
  --destructive: #c5402f;
  --border: #e3ecec;
  --input: #dde7e7;
  --ring: #0f9aa6;

  --chart-1: #0f9aa6;
  --chart-2: #3fb3bc;
  --chart-3: #6fc7ce;
  --chart-4: #a5dce0;
  --chart-5: #cfeced;

  --lrs-hero: #15282a;
  --lrs-success: #138a52;
  --lrs-success-bg: #e7f6ee;
  --lrs-warn: #b5790f;
  --lrs-warn-bg: #fdf2e0;
  --lrs-danger: #c5402f;
  --lrs-danger-bg: #fdebe9;
  --lrs-faint: #8aa0a1;

  --shadow-pop: 0 1px 3px rgba(20, 20, 40, 0.08);
  --shadow-modal: 0 24px 60px -18px rgba(18, 42, 44, 0.35);
}

html.dark {
  --background: #0b1719;
  --foreground: #e6efef;
  --card: #14282a;
  --card-foreground: #e6efef;
  --popover: #14282a;
  --popover-foreground: #e6efef;
  --primary: #2bb6c2;
  --primary-foreground: #052022;
  --secondary: #1c3537;
  --secondary-foreground: #cfe0e0;
  --muted: #173032;
  --muted-foreground: #8aa6a7;
  --accent: #143033;
  --accent-foreground: #5fc6cf;
  --destructive: #e6705f;
  --border: rgba(255, 255, 255, 0.09);
  --input: rgba(255, 255, 255, 0.14);
  --ring: #2bb6c2;

  --chart-1: #2bb6c2;
  --chart-2: #4fbcc4;
  --chart-3: #6fc7ce;
  --chart-4: #a5dce0;
  --chart-5: #cfeced;

  --lrs-hero: #0f2123;
  --lrs-success: #4ade80;
  --lrs-success-bg: rgba(74, 222, 128, 0.14);
  --lrs-warn: #e0a82e;
  --lrs-warn-bg: rgba(224, 168, 46, 0.14);
  --lrs-danger: #f08a7c;
  --lrs-danger-bg: rgba(240, 138, 124, 0.14);
  --lrs-faint: #7e9698;

  --shadow-pop: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-modal: 0 24px 60px -18px rgba(0, 0, 0, 0.7);
}

/* ── Reset / base ───────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding-left: 1.15rem;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

svg {
  display: block;
}

::selection {
  background: color-mix(in srgb, var(--primary) 26%, transparent);
}

*:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* 滚动条：更贴合扁平风格 */
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--muted-foreground) 34%, transparent) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--muted-foreground) 30%, transparent);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--muted-foreground) 50%, transparent);
  background-clip: content-box;
}

/* 工具类 */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ta-right { text-align: right; }
.text-muted { color: var(--muted-foreground); }
.text-faint { color: var(--lrs-faint); }
.lrs-icon { width: 16px; height: 16px; flex: none; }
.size-5 { width: 20px; height: 20px; }

/* ── App shell ──────────────────────────────────────────────────────────── */

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--card);
  color: var(--card-foreground);
}

.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
  flex: none;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

@media (min-width: 1024px) {
  .app-nav { padding: 0 2rem; }
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
}

.nav-logo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--foreground);
}

.nav-subtitle {
  font-size: 13px;
  color: var(--muted-foreground);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .nav-subtitle { display: none; }
}

.nav-links {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: 13px;
}

@media (min-width: 900px) {
  .nav-links { display: flex; gap: 1.5rem; }
}

.nav-link {
  color: var(--muted-foreground);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover { color: var(--foreground); }

.nav-link-active {
  color: var(--primary);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 1023px) {
  .nav-live { display: none; }
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
  animation: lrsPulse 1.8s infinite;
}

@keyframes lrsPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.78); }
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-icon-btn:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.nav-icon-btn-active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.nav-logout-form { display: inline-flex; margin: 0; }

.theme-icon-dark { display: none; }
html.dark .theme-icon-light { display: none; }
html.dark .theme-icon-dark { display: block; }

.app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.app-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1540px;
  margin: 0 auto;
  padding: 1.25rem;
}

@media (min-width: 1024px) {
  .app-container { padding: 1.75rem 2rem; }
}

.app-container-wide { gap: 1.75rem; }

/* ── Page header ────────────────────────────────────────────────────────── */

.page-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .page-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.page-header-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.page-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-foreground);
}

.page-header-text { min-width: 0; }

.page-header-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--foreground);
}

.page-header-desc {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* ── Card ───────────────────────────────────────────────────────────────── */

.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  border-radius: var(--radius-xl);
  color: var(--card-foreground);
}

.card-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.25rem;
  padding: 0 1rem;
}

.card-header > .card-title { grid-column: 1; }
.card-header > .card-description { grid-column: 1; }
.card-header > .card-action { grid-column: 2; grid-row: 1 / span 2; }

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.card-title-icon {
  width: 16px;
  height: 16px;
  color: var(--muted-foreground);
}

.card-description {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.card-content { padding: 0 1rem; }
.card-content-flush { padding: 0; }

.card-pad {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem;
}

.card-footer {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
}

.card-foot-note {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ── Button ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn [data-icon="inline-start"] {
  width: 14px;
  height: 14px;
  margin-right: 1px;
}

.btn-sm { height: 32px; padding: 0 0.75rem; font-size: 13px; }
.btn-md { height: 36px; padding: 0 1rem; font-size: 13.5px; }
.btn-xs { height: 28px; padding: 0 0.5rem; font-size: 12px; border-radius: var(--radius-sm); }
.btn-icon-sm { height: 28px; width: 28px; padding: 0; border-radius: var(--radius-sm); }
.btn-icon-sm [data-icon="inline-start"] { margin: 0; }

.btn-default {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-default:hover { filter: brightness(0.95); }

.btn-outline {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn-danger-text { color: var(--destructive); }
.btn-danger-text:hover { background: var(--lrs-danger-bg); color: var(--destructive); }

.btn:disabled,
.btn-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

/* ── Badge / Status ─────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  height: 20px;
  padding: 0 0.625rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.badge-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.badge-outline { border-color: var(--border); color: var(--foreground); }
.badge-destructive { background: var(--lrs-danger-bg); color: var(--destructive); }
.badge-tiny { height: 17px; padding: 0 0.4rem; font-size: 10px; }
.badge-channel { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.sb-mode-badge {
  height: 21px;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid;
}

.sb-mode-badge.sb-success { border-color: color-mix(in srgb, #16a34a 30%, transparent); background: color-mix(in srgb, #16a34a 10%, transparent); color: #15803d; }
.sb-mode-badge.sb-warning { border-color: color-mix(in srgb, #d97706 30%, transparent); background: color-mix(in srgb, #d97706 10%, transparent); color: #b45309; }
.sb-mode-badge.sb-destructive { border-color: color-mix(in srgb, var(--destructive) 30%, transparent); background: var(--lrs-danger-bg); color: var(--destructive); }
.sb-mode-badge.sb-muted { border-color: var(--border); background: color-mix(in srgb, var(--muted) 60%, transparent); color: var(--muted-foreground); }
.sb-mode-badge.sb-info { border-color: color-mix(in srgb, var(--primary) 30%, transparent); background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }

html.dark .sb-mode-badge.sb-success { color: #4ade80; }
html.dark .sb-mode-badge.sb-warning { color: #e0a82e; }

.sb-mode-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: none;
  background: currentColor;
}

.sb-mode-dot.sb-success { color: #16a34a; }
.sb-mode-dot.sb-warning { color: #d97706; }
.sb-mode-dot.sb-destructive { color: var(--destructive); }
.sb-mode-dot.sb-muted { color: var(--lrs-faint); }
.sb-mode-dot.sb-info { color: var(--primary); }

html.dark .sb-mode-dot.sb-success { color: #4ade80; }
html.dark .sb-mode-dot.sb-warning { color: #e0a82e; }

.sb-pulse::before { animation: lrsPulse 1.8s infinite; }

/* ── Alert ──────────────────────────────────────────────────────────────── */

.alert {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--muted);
}

.alert-body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.alert-title { font-size: 12.5px; font-weight: 700; }
.alert-desc { font-size: 12px; line-height: 1.6; color: var(--muted-foreground); }

.alert-destructive {
  border-color: color-mix(in srgb, var(--destructive) 35%, transparent);
  background: var(--lrs-danger-bg);
}

.alert-destructive .alert-title { color: var(--destructive); }
.alert-destructive .alert-desc { color: color-mix(in srgb, var(--destructive) 82%, var(--foreground)); }

.alert-success {
  border-color: color-mix(in srgb, var(--lrs-success) 30%, transparent);
  background: var(--lrs-success-bg);
}

.alert-success .alert-title { color: var(--lrs-success); }

.alert-default {
  border-color: color-mix(in srgb, var(--primary) 26%, transparent);
  background: var(--accent);
}

.alert-default .alert-title { color: var(--accent-foreground); }

/* ── Empty ──────────────────────────────────────────────────────────────── */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--lrs-faint);
  margin-bottom: 0.25rem;
}

.empty-icon svg { width: 18px; height: 18px; }
.empty-title { font-size: 13.5px; font-weight: 600; color: var(--foreground); }
.empty-desc { font-size: 12px; line-height: 1.65; color: var(--muted-foreground); max-width: 420px; }

/* ── Table ──────────────────────────────────────────────────────────────── */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.lrs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 640px;
}

.lrs-table thead th {
  height: 40px;
  padding: 0 0.75rem;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--lrs-faint);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.lrs-table tbody td {
  padding: 0.7rem 0.75rem;
  vertical-align: middle;
  font-size: 12px;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

.lrs-table tbody tr:last-child td { border-bottom: none; }

.lrs-table tbody tr:hover { background: var(--accent); }

.lrs-table .ta-right,
.lrs-table th.ta-right,
.lrs-table td.ta-right { text-align: right; }

.lrs-table .col-quota { min-width: 170px; }
.lrs-table .col-token-name { min-width: 220px; }
.lrs-table .col-actions-wide { min-width: 210px; }
.lrs-table .col-model { min-width: 240px; }

.row-muted { opacity: 0.55; }
.row-error td { background: color-mix(in srgb, var(--lrs-danger-bg) 55%, transparent); }
.row-total td { font-weight: 700; border-top: 1px solid var(--border); background: var(--muted); }

.table-empty-state { padding: 0.5rem 0; }

/* 单元格内组合 */
.cell-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cell-strong { font-weight: 600; color: var(--foreground); }
.cell-hint { font-size: 10.5px; color: var(--lrs-faint); }
.cell-warn { color: var(--lrs-warn); }

.row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.125rem;
  flex-wrap: wrap;
}

.inline-form { display: inline-flex; margin: 0; }

.link-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.link-btn:hover { color: var(--accent-foreground); }

.link-strong {
  color: var(--foreground);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.link-strong:hover {
  color: var(--primary);
  border-bottom-color: color-mix(in srgb, var(--primary) 45%, transparent);
}

/* ── Tags / chips ───────────────────────────────────────────────────────── */

.tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--muted);
  font-size: 10px;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.tag-mono { font-family: var(--font-mono); }
.tag-muted { background: transparent; }
.tag-more { border-style: dashed; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.1rem;
}

.chip-group { display: inline-flex; gap: 0.375rem; flex-wrap: wrap; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 28px;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); color: var(--foreground); }

.chip-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.chip-count {
  font-size: 10px;
  font-weight: 700;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 16%, transparent);
}

.chip.mono { font-family: var(--font-mono); }

/* ── Toolbar ────────────────────────────────────────────────────────────── */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.toolbar-left,
.toolbar-right { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

.toolbar-note {
  font-size: 11.5px;
  color: var(--muted-foreground);
}

.search-input {
  position: relative;
  display: flex;
  align-items: center;
  width: min(360px, 100%);
  flex: none;
}

.search-input [data-icon="inline-start"] {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--lrs-faint);
  pointer-events: none;
}

.search-input .input { padding-left: 32px; }

/* ── Form ───────────────────────────────────────────────────────────────── */

.input,
.select,
.textarea {
  width: 100%;
  height: 34px;
  padding: 0 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--input);
  background: var(--card);
  color: var(--foreground);
  font-family: inherit;
  font-size: 12.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.textarea {
  height: auto;
  padding: 0.5rem 0.65rem;
  line-height: 1.6;
  font-family: var(--font-mono);
  font-size: 12px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder { color: var(--lrs-faint); }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 18%, transparent);
}

.select {
  appearance: none;
  padding-right: 1.75rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted-foreground) 50%),
    linear-gradient(135deg, var(--muted-foreground) 50%, transparent 50%);
  background-position: calc(100% - 14px) 14px, calc(100% - 9px) 14px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.field-label { font-size: 11.5px; font-weight: 600; color: var(--muted-foreground); }
.field-content { display: flex; flex-direction: column; gap: 0.3rem; }
.field-description { font-size: 11px; line-height: 1.55; color: var(--lrs-faint); }
.field-hint { font-size: 11px; color: var(--lrs-warn); }

.field-group { display: grid; gap: 0.85rem; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

.form-note {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-foreground);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-md);
  background: var(--muted);
  border: 1px solid var(--border);
}

/* 筛选区 */
.filter-card { padding: 0; }

.filter-form { display: flex; flex-direction: column; gap: 0.85rem; }

.filter-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.filter-grid-6 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.filter-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.filter-actions { display: flex; align-items: center; gap: 0.5rem; }

.filter-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11.5px;
  color: var(--muted-foreground);
}

.filter-inline .select { width: auto; height: 30px; }

/* ── Modal ──────────────────────────────────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: color-mix(in srgb, #0b1719 55%, transparent);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.15s ease;
}

.modal-backdrop[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: 100%;
  max-height: calc(100vh - 2.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--popover);
  color: var(--popover-foreground);
  box-shadow: var(--shadow-modal);
  animation: popIn 0.16s ease;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(6px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.modal-sm { max-width: 380px; }
.modal-md { max-width: 520px; }
.modal-lg { max-width: 680px; }

.modal-header {
  position: relative;
  padding: 1.1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.modal-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }

.modal-description {
  margin-top: 0.25rem;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-foreground);
  padding-right: 2rem;
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
}

.modal-close:hover { background: var(--muted); color: var(--foreground); }
.modal-close svg { width: 15px; height: 15px; }

.modal-body {
  padding: 1rem 1.25rem 1.25rem;
  overflow-y: auto;
}

.modal-form { display: flex; flex-direction: column; gap: 0.85rem; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 0.9rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.reveal-wrap { display: flex; flex-direction: column; gap: 0.75rem; }

.reveal-note {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.reveal-key {
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  background: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
  color: var(--accent-foreground);
  user-select: all;
}

.quota-summary {
  font-size: 12px;
  color: var(--muted-foreground);
}

/* ── Metrics ────────────────────────────────────────────────────────────── */

.metric-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.metric-grid-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.metric {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  min-width: 0;
}

.metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: var(--muted);
  color: var(--muted-foreground);
}

.metric-icon svg { width: 15px; height: 15px; }

.metric-body { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.metric-label { font-size: 11px; font-weight: 600; color: var(--muted-foreground); }
.metric-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.metric-sub { font-size: 10.5px; color: var(--lrs-faint); }

.metric-primary { border-color: color-mix(in srgb, var(--primary) 32%, var(--border)); background: var(--accent); }
.metric-primary .metric-icon { background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); }
.metric-primary .metric-value { color: var(--accent-foreground); }

.metric-success .metric-icon { background: var(--lrs-success-bg); color: var(--lrs-success); }
.metric-success .metric-value { color: var(--lrs-success); }

.metric-warn .metric-icon { background: var(--lrs-warn-bg); color: var(--lrs-warn); }
.metric-warn .metric-value { color: var(--lrs-warn); }

.metric-danger .metric-icon { background: var(--lrs-danger-bg); color: var(--destructive); }
.metric-danger .metric-value { color: var(--destructive); }

/* ── Layout helpers ─────────────────────────────────────────────────────── */

.grid-2 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stack-6 { display: flex; flex-direction: column; gap: 1.5rem; }

/* ── Charts ─────────────────────────────────────────────────────────────── */

.chart-box { width: 100%; }

.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }

.chart-grid { stroke: var(--border); stroke-width: 1; }

.chart-axis {
  fill: var(--lrs-faint);
  font-size: 10px;
  font-family: var(--font-mono);
}

.chart-line {
  fill: none;
  stroke: var(--chart-1);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-dot { fill: var(--card); stroke: var(--chart-1); stroke-width: 1.6; }

.chart-bar { fill: var(--chart-1); opacity: 0.9; }
.chart-bar:hover { opacity: 1; }

.chart-stop-top { stop-color: var(--chart-1); stop-opacity: 0.26; }
.chart-stop-bottom { stop-color: var(--chart-1); stop-opacity: 0.01; }

.chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  font-size: 12px;
  color: var(--lrs-faint);
}

/* 排行 */
.ranking { display: flex; flex-direction: column; gap: 0.7rem; }

.ranking-row { display: flex; flex-direction: column; gap: 0.3rem; }

.ranking-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.ranking-label {
  font-size: 11.5px;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-value {
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ranking-sub { font-weight: 400; color: var(--lrs-faint); }

.ranking-track {
  height: 6px;
  border-radius: 999px;
  background: var(--muted);
  overflow: hidden;
}

.ranking-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--chart-1), var(--chart-3));
}

/* 环形 */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.donut-svg { width: 168px; height: 168px; flex: none; }

.donut-track { stroke: var(--muted); }
.donut-1 { stroke: var(--chart-1); }
.donut-2 { stroke: var(--chart-2); }
.donut-3 { stroke: var(--chart-3); }
.donut-4 { stroke: var(--chart-4); }
.donut-5 { stroke: var(--destructive); }

.donut-center-value {
  fill: var(--foreground);
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-sans);
}

.donut-center-label { fill: var(--lrs-faint); font-size: 10px; font-family: var(--font-sans); }

.donut-legend { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; min-width: 160px; }

.legend-item { display: flex; align-items: center; gap: 0.45rem; font-size: 11.5px; }

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
  border: 2px solid currentColor;
  background: currentColor;
}

.legend-dot.donut-1 { color: var(--chart-1); }
.legend-dot.donut-2 { color: var(--chart-2); }
.legend-dot.donut-3 { color: var(--chart-3); }
.legend-dot.donut-4 { color: var(--chart-4); }
.legend-dot.donut-5 { color: var(--destructive); }

.legend-label { color: var(--muted-foreground); }
.legend-value { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--foreground); }

/* ── Progress / quota ───────────────────────────────────────────────────── */

.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--muted);
  overflow: hidden;
  width: 100%;
}

.progress-bar { height: 100%; border-radius: 999px; transition: width 0.3s ease; }
.progress-primary { background: var(--primary); }
.progress-warn { background: var(--lrs-warn); }
.progress-danger { background: var(--destructive); }

.quota-cell { display: flex; flex-direction: column; gap: 0.3rem; min-width: 140px; }

.quota-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 11px;
}

.quota-pct { font-size: 10.5px; color: var(--lrs-faint); font-variant-numeric: tabular-nums; }

.key-cell { display: flex; align-items: center; gap: 0.4rem; }

/* ── Detail list ────────────────────────────────────────────────────────── */

.detail-list { display: flex; flex-direction: column; }

.detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12px;
}

.detail-row:last-child { border-bottom: none; }

.detail-key { color: var(--muted-foreground); white-space: nowrap; }

.detail-value {
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.detail-sub {
  margin-top: 0.6rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
}

/* ── Prose / notes ──────────────────────────────────────────────────────── */

.prose { font-size: 12.5px; line-height: 1.75; color: var(--muted-foreground); display: flex; flex-direction: column; gap: 0.5rem; }
.prose strong { color: var(--foreground); }

.bullet-list { font-size: 12.5px; line-height: 1.75; color: var(--muted-foreground); display: flex; flex-direction: column; gap: 0.35rem; }

.muted-note {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--lrs-faint);
}

/* ── Code ───────────────────────────────────────────────────────────────── */

.code-inline {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: var(--muted);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--foreground);
  margin: 0.15rem 0.2rem 0.15rem 0;
}

.code-block {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--foreground);
  overflow-x: auto;
  max-height: 420px;
  overflow-y: auto;
}

.code-wrap { white-space: pre-wrap; word-break: break-word; }

.endpoint-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .endpoint-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.endpoint-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.4rem;
}

/* ── Channel list ───────────────────────────────────────────────────────── */

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
}

.channel-row:last-child { border-bottom: none; }

.channel-main { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.channel-name { font-size: 12px; font-weight: 600; }
.channel-meta { font-size: 10.5px; color: var(--lrs-faint); }
.channel-status { display: flex; align-items: center; gap: 0.4rem; }

.target-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11.5px;
  padding: 0.1rem 0;
}

/* ── Security checks ────────────────────────────────────────────────────── */

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
}

.check-row:last-child { border-bottom: none; }

.check-icon { flex: none; margin-top: 1px; }
.check-icon svg { width: 15px; height: 15px; }
.check-ok { color: var(--lrs-success); }
.check-warn { color: var(--lrs-warn); }
.check-title { font-size: 12px; font-weight: 600; }
.check-desc { font-size: 11px; line-height: 1.6; color: var(--muted-foreground); }

/* ── Pagination ─────────────────────────────────────────────────────────── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
}

.pagination-meta { font-size: 11.5px; color: var(--muted-foreground); }
.pagination-controls { display: flex; align-items: center; gap: 0.35rem; }

/* ── Tabs ───────────────────────────────────────────────────────────────── */

.tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tab {
  padding: 0.5rem 0.75rem;
  font-size: 12.5px;
  color: var(--muted-foreground);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.tab:hover { color: var(--foreground); }
.tab-active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-count { font-size: 10px; color: var(--lrs-faint); }

/* ── Toast ──────────────────────────────────────────────────────────────── */

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(420px, calc(100vw - 2rem));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--popover);
  color: var(--popover-foreground);
  box-shadow: var(--shadow-pop);
  font-size: 12px;
  line-height: 1.55;
  animation: toastIn 0.2s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.toast-icon { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.toast-success { border-color: color-mix(in srgb, var(--lrs-success) 32%, transparent); }
.toast-success .toast-icon { color: var(--lrs-success); }
.toast-error { border-color: color-mix(in srgb, var(--destructive) 34%, transparent); }
.toast-error .toast-icon { color: var(--destructive); }
.toast-info .toast-icon { color: var(--primary); }

.toast-close {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--lrs-faint);
  cursor: pointer;
  padding: 0;
  flex: none;
}

.toast-close svg { width: 13px; height: 13px; }
.toast-close:hover { color: var(--foreground); }

.copy-hint {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 90;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--card);
  font-size: 11.5px;
}

/* ── Skeleton ───────────────────────────────────────────────────────────── */

.skeleton-wrap { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 0; }

.skeleton {
  height: 34px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--muted) 25%, color-mix(in srgb, var(--muted) 55%, var(--card)) 50%, var(--muted) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ── Test result page ───────────────────────────────────────────────────── */

.test-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ── Login ──────────────────────────────────────────────────────────────── */

.login-shell {
  display: flex;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
}

.login-hero {
  display: none;
  flex-direction: column;
  width: 44%;
  max-width: 560px;
  padding: 3rem;
  background: var(--lrs-hero);
  color: #ffffff;
}

@media (min-width: 1024px) {
  .login-hero { display: flex; }
}

.login-hero-brand { display: flex; align-items: center; gap: 0.75rem; }

.login-hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.login-hero-name { font-size: 18px; font-weight: 800; letter-spacing: 0.04em; }

.login-hero-content { margin-top: auto; }

.login-hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5fc6cf;
}

.login-hero-title {
  margin-top: 1rem;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.login-hero-desc {
  margin-top: 1.25rem;
  max-width: 400px;
  font-size: 15px;
  line-height: 1.7;
  color: #9fb6b8;
}

.login-features { margin-top: 2.25rem; display: flex; flex-direction: column; gap: 1rem; }

.login-feature { display: flex; align-items: flex-start; gap: 0.875rem; }

.login-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  color: #5fc6cf;
}

.login-feature-icon svg { width: 14px; height: 14px; }
.login-feature-title { font-size: 13px; font-weight: 600; }
.login-feature-desc { margin-top: 2px; font-size: 11.5px; color: #8aa0a1; }

.login-hero-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 2.5rem;
  margin-top: auto;
  font-size: 11.5px;
  color: #6f8688;
}

.login-form-side { display: flex; flex: 1; flex-direction: column; background: var(--card); }

.login-form-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.4rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.login-form-wrap {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem;
}

@media (min-width: 640px) {
  .login-form-wrap { padding: 1.5rem 2.5rem; }
}

.login-form { width: 100%; max-width: 400px; }

.login-title { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }

.login-subtitle {
  margin: 0.5rem 0 1.75rem;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.login-alert { margin-bottom: 1rem; }

.login-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.login-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 50px;
  padding: 0 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--input);
  background: var(--muted);
}

.login-input-wrap:focus-within {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 16%, transparent);
}

.login-input-wrap svg { width: 15px; height: 15px; color: var(--lrs-faint); flex: none; }

.login-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--foreground);
}

.login-input::placeholder { letter-spacing: normal; color: var(--lrs-faint); font-family: var(--font-sans); }

.login-reveal {
  border: none;
  background: none;
  padding: 0;
  font-size: 11.5px;
  color: var(--muted-foreground);
  cursor: pointer;
  flex: none;
}

.login-reveal:hover { color: var(--primary); }

.login-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.9rem 0 1.1rem;
  font-size: 12px;
  color: var(--muted-foreground);
  cursor: pointer;
}

.login-remember input { accent-color: var(--primary); width: 15px; height: 15px; }

.login-submit {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 28%, transparent);
  transition: opacity 0.15s ease;
}

.login-submit:hover { opacity: 0.94; }
.login-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.login-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.login-hint svg { width: 13px; height: 13px; flex: none; margin-top: 2px; color: var(--lrs-faint); }
.login-hint p { margin: 0; }

.login-form-foot {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted-foreground);
}

/* ── 打印 / 减少动效 ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
