/* FatePaw UI v2 "罗盘" (docs/redesign-20261016). Five base colors; everything else derives by alpha. */
:root,
page {
  --fp-paper: #eef0ea;
  --fp-ink: #1c2629;
  --fp-accent: #2b4a63;
  --fp-seal: #b5402d;
  --fp-danger: #9e2f23;
  --fp-paper-rgb: 238, 240, 234;
  --fp-ink-rgb: 28, 38, 41;
  --fp-accent-rgb: 43, 74, 99;
  --fp-seal-rgb: 181, 64, 45;
  --fp-danger-rgb: 158, 47, 35;
  /* Legacy alias: pages written for v1 use --fp-gold as their accent. */
  --fp-gold: var(--fp-accent);
  --fp-gold-rgb: var(--fp-accent-rgb);

  --fp-text: var(--fp-ink);
  --fp-text-muted: rgba(var(--fp-ink-rgb), .7);
  --fp-text-disabled: rgba(var(--fp-ink-rgb), .48);
  --fp-surface: var(--fp-paper);
  --fp-surface-subtle: rgba(var(--fp-ink-rgb), .035);
  --fp-surface-hover: rgba(var(--fp-ink-rgb), .055);
  --fp-surface-raised: rgba(255, 255, 255, .62);
  --fp-surface-sunken: rgba(var(--fp-ink-rgb), .045);
  --fp-border: rgba(var(--fp-ink-rgb), .14);
  --fp-border-strong: rgba(var(--fp-ink-rgb), .42);
  --fp-selected: var(--fp-directory-highlight);
  --fp-error-surface: rgba(var(--fp-danger-rgb), .055);
  --fp-focus: var(--fp-accent);

  --fp-font: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  /* Display serif: system Song faces only, never below 17px. */
  --fp-font-display: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --fp-text-display: 44px;
  --fp-text-tool: 18px;
  --fp-text-heading: 22px;
  --fp-text-title: 30px;
  --fp-leading-reading: 1.85;
  /* Five-phase data colors: only for 五行 glyphs, bars and chart marks, never for UI chrome. */
  --fp-wx-wood: rgb(79, 122, 86);
  --fp-wx-fire: rgb(176, 78, 56);
  --fp-wx-earth: rgb(150, 116, 58);
  --fp-wx-metal: rgb(118, 122, 130);
  --fp-wx-water: rgb(46, 88, 122);
  --fp-text-page: 24px;
  --fp-text-section: 18px;
  --fp-text-body: 16px;
  --fp-text-meta: 13px;
  --fp-text-action: 14px;
  --fp-text-input: 16px;
  /* Dense circular chart house numbers; full-size equivalents remain in data tables. */
  --fp-chart-house-label: 10px;
  --fp-chart-house-emphasis: 12px;
  --fp-leading: 1.6;
  --fp-leading-heading: 1.4;
  --fp-weight-normal: 400;
  --fp-weight-medium: 500;
  --fp-weight-strong: 600;

  --fp-space-1: 4px;
  --fp-space-2: 8px;
  --fp-space-3: 12px;
  --fp-space-4: 16px;
  --fp-space-5: 20px;
  --fp-space-6: 24px;
  --fp-space-8: 32px;
  --fp-space-10: 40px;
  --fp-section-gap: var(--fp-space-3);
  --fp-content-gap: var(--fp-space-6);
  --fp-actions-padding: var(--fp-space-2);
  --fp-control-height: 44px;
  --fp-directory-row-height: 48px;
  --fp-directory-highlight: rgba(var(--fp-accent-rgb), .06);
  --fp-control-radius: 4px;
  --fp-panel-radius: 10px;
  --fp-icon-size: 24px;
  --fp-field-short: 256px;
  --fp-field-standard: 480px;
  --fp-reading-width: 52em;
  --fp-layout-form: 760px;
  --fp-layout-workspace: 1120px;
  --fp-navigation-width: 248px;
  --fp-mobile-header-height: 56px;
  --fp-dialog-width: 560px;
  --fp-report-reading-width: 640px;
  --fp-result-controls-width: 620px;
  --fp-reading-dialog-width: 760px;
  --fp-document-input-height: 320px;
  --fp-number-display: 40px;
  --fp-number-primary: 32px;
  --fp-number-secondary: 24px;
  --fp-dialog-layer: 600;
  --fp-field-label-width: 72px;
  --fp-scrim: rgba(var(--fp-ink-rgb), .38);
  --fp-motion: 150ms;
  --fp-focus-width: 2px;
  --fp-focus-offset: 3px;
}
