/* 设计令牌：全站唯一的颜色 / 间距 / 字号 / 圆角 / 动效 /  elevation 来源 */
:root {
  /* 表面 */
  --bg: #111216;
  --bg-grad: #1d2230;
  --panel: #17191f;
  --panel-2: #1d2028;
  --panel-3: #141821;
  --panel-deep: #0f131b;
  --panel-deeper: #0b0f16;
  --panel-mask: #0f131a;
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-active: color-mix(in srgb, var(--accent) 12%, transparent);
  --surface-tint: rgba(255, 255, 255, 0.02);
  --surface-tint-2: rgba(255, 255, 255, 0.04);
  --surface-tint-3: rgba(255, 255, 255, 0.05);
  --overlay: rgba(6, 8, 12, 0.72);

  /* 文本 */
  --text: #eceef5;
  --muted: #a9adbb;
  --text-on-accent: #10141c;
  --text-faint: rgba(236, 238, 245, 0.72);
  --text-ghost: rgba(236, 238, 245, 0.45);
  --text-code: #cbd9eb;

  /* 描边 */
  --border: #2a2f3a;
  --border-strong: #3b4452;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-faint: rgba(255, 255, 255, 0.06);
  --border-debug: #293142;

  /* 品牌色：mint 为主，blue 仅用于渐变与调试语义 */
  --accent: #8fe9d2;
  --accent-2: #74b7ff;
  --accent-grad: linear-gradient(120deg, #65d8bc, #74b7ff);
  --focus-ring: color-mix(in srgb, var(--accent) 95%, transparent);

  /* 语义状态色 */
  --danger: #ff6b6b;
  --danger-text: #ff8b8b;
  --danger-text-soft: #ffb0b0;
  --danger-text-softer: #ffb7c3;
  --danger-text-faint: #ffd0d0;
  --danger-soft: color-mix(in srgb, var(--danger) 14%, transparent);
  --danger-border: color-mix(in srgb, var(--danger) 35%, transparent);
  --success: #6ee7a8;
  --warning: #ffd08a;
  --info: var(--accent-2);
  --info-soft: color-mix(in srgb, var(--info) 12%, transparent);
  --info-border: color-mix(in srgb, var(--info) 28%, transparent);

  /* 间距（4px 阶） */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;

  /* 字体与字号 */
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --text-2xs: 10px;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-md: 13px;
  --text-base: 14px;
  --text-lg: 15px;
  --text-xl: 16px;
  --text-2xl: 20px;
  --text-3xl: 22px;
  --leading-tight: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  /* 动效 */
  --dur-fast: 140ms;
  --dur-med: 180ms;
  --dur-slow: 260ms;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);

  /*  elevation */
  --shadow-dialog: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 1px 5px rgba(5, 8, 15, 0.13);
  --shadow-card-hover: 0 10px 26px rgba(5, 8, 15, 0.22);

  /* 控件尺寸 */
  --control-h: 38px;
  --control-h-sm: 36px;
  --control-h-xs: 28px;
  --dock-h: 30px; /* 输入 dock 控件族统一高度（胶囊家族） */
  --touch: 44px;
}
