/* codapi · Linear — 靛紫主色 + 小圆角 + 近黑底 */
:root, .dark {
  --background: #08090c;
  --foreground: #f7f8f8;
  --card: #101114;
  --card-foreground: #f7f8f8;
  --popover: #141519;
  --popover-foreground: #f7f8f8;

  --primary: #5e6ad2;
  --primary-foreground: #ffffff;
  --secondary: #1a1c21;
  --secondary-foreground: #d0d3d9;
  --muted: #141519;
  --muted-foreground: #8a8f98;
  --accent: #6e79de;
  --accent-foreground: #ffffff;

  --destructive: #eb5757;
  --destructive-foreground: #ffffff;
  --success: #4cb782;
  --success-foreground: #04140d;
  --warning: #f2c94c;
  --warning-foreground: #241a00;
  --info: #5e6ad2;
  --info-foreground: #ffffff;
  --neutral: #8a8f98;
  --neutral-foreground: #08090c;

  --border: #23252b;
  --input: #23252b;
  --ring: #5e6ad2;

  --sidebar: #060709;
  --sidebar-foreground: #b6bac2;
  --sidebar-border: #1b1d22;
  --sidebar-primary: #5e6ad2;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #141519;
  --sidebar-accent-foreground: #f7f8f8;
  --sidebar-ring: #5e6ad2;

  --skeleton-base: #141519;
  --skeleton-highlight: #23252b;
  --table-row: #0c0d11;
  --table-header: #101114;

  --chart-1: #5e6ad2;
  --chart-2: #4cb782;
  --chart-3: #f2c94c;
  --chart-4: #eb5757;
  --chart-5: #9b8afb;

  --radius: 0.375rem;
  --font-ui-sans: "Inter", "SF Pro Text", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: var(--font-ui-sans);
}

::selection { background: rgba(94, 106, 210, 0.34); color: #f7f8f8; }

body {
  font-family: var(--font-ui-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #23252b;
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #34373f; background-clip: content-box; }

* { scrollbar-color: #23252b transparent; scrollbar-width: thin; }

thead th { font-weight: 500; letter-spacing: 0.01em; }
td, .tabular-nums { font-variant-numeric: tabular-nums; }
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: 2px solid rgba(94, 106, 210, 0.45); outline-offset: 1px; }
