/* 定睛 · 颜色与尺寸令牌
   页面沿用主页的浅色语言；训练台单独一套深色/浅色令牌，默认深色。 */

:root {
  color-scheme: light;

  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f6f7f5;
  --surface-3: #eff1ed;

  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;

  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);

  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: #e9f1fc;
  --danger: #b3261e;

  --gaze: #41474f;
  --gaze-soft: #e8e9ec;
  --gaze-line: #d9dbe0;
  --green: #71935d;
  --green-soft: #eef2e9;
  --green-ink: #4f6b3f;

  --radius: 24px;
  --radius-lg: 28px;
  --radius-sm: 14px;
  --pill: 99px;

  --shadow-sm: 0 1px 2px rgba(16, 20, 24, 0.04);
  --shadow: 0 1px 2px rgba(16, 20, 24, 0.04), 0 14px 36px -18px rgba(16, 20, 24, 0.28);

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;

  /* 训练台：默认深色 */
  --train-bg: #12140f;
  --train-text: #ece9dd;
  --train-muted: #949a86;
  --train-dot: #f6f2e8;
  --train-ring: #71935d;
  --train-track: rgba(246, 242, 232, 0.14);
  --train-surface: rgba(246, 242, 232, 0.06);
  --train-line: rgba(246, 242, 232, 0.14);
}

:root[data-theme="light"] {
  color-scheme: light;
  --train-bg: #f4f5f0;
  --train-text: #23271f;
  --train-muted: #767d6c;
  --train-dot: #20241c;
  --train-ring: #617f4f;
  --train-track: rgba(32, 36, 28, 0.14);
  --train-surface: rgba(32, 36, 28, 0.05);
  --train-line: rgba(32, 36, 28, 0.12);
}

@supports (color: color(display-p3 1 1 1)) {
  :root {
    --accent: color(display-p3 0 0.44 0.89);
  }
}
