/* UI_DESIGN_SYSTEM §3 的 token（D-121 起純白底、無框）。元件只引用這裡的變數，不另寫色碼。 */
:root {
  --color-canvas: #ffffff;
  --color-surface: #ffffff;
  --color-surface-muted: #f3f4f5;
  --color-surface-subtle: #f7f8f9;
  --color-field: #eef0f2;
  --color-row-hover: #f5f6f7;
  --color-text: #27313a;
  --color-text-secondary: #586570;
  --color-border: #e5e8ea;
  --color-border-control: #c3c9ce;
  --color-border-strong: #7a858e;
  --color-primary: #2e4c6b;
  --color-primary-hover: #253e58;
  --color-success: #326b54;
  --color-warning: #8a6625;
  --color-danger: #ac403e;
  --color-focus: #1769aa;
  --color-success-tint: #e8f2ec;
  --color-primary-tint: #e9eef3;
  --color-danger-tint: #fbeceb;
  --color-warning-tint: #faf3e3;
  --color-warning-strong: #6b4e18;
  /* 案件大階段的標籤色（D-165）：申請規劃藍、簽約請款紫、執行管考橘；深字配淺底 */
  --color-stage-plan: #1f4e8c;
  --color-stage-plan-tint: #dbe8f8;
  --color-stage-sign: #5b3a8c;
  --color-stage-sign-tint: #e9dff5;
  --color-stage-run: #8a4b1a;
  --color-stage-run-tint: #f6e0d2;
  --color-gantt-progress: #e2b33c; /* 甘特圖「進行中」的黃色（D-150）；外框用 warning */
  --color-gantt-today: #ac403e;

  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-mono: ui-monospace, Menlo, monospace;
  --font-size-caption: 12px;
  --font-size-small: 13px;
  --font-size-body: 14px;
  --font-size-crumbs: 15px; /* 頁面位置：比內文大一級（D-148 追加） */
  --font-size-section: 17px;
  --font-size-brand: 18px;
  --font-size-title: 26px;
  --font-size-title-narrow: 23px;
  --line-height-body: 1.5;
  --line-height-table: 1.4;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  --radius-card: 12px;
  --radius-control: 10px;
  --radius-pill: 999px;
  --control-height: 44px;
  --control-height-row: 40px;
  --sidebar-width: 200px;
}
