/* 帳票設計規範 — generated from tokens.json */
:root, [data-theme="light"] {
  --paper: #ffffff;
  --tint: #f5f3ee;
  --shu-tint: #fbeaea;
  --ink: #141414;
  --ink-muted: #4a4a4a;
  --ink-hover: #3a3a3a;
  --shu: #b3131b;
  --shu-deep: #8f0f16;
  --on-ink: var(--paper);
  --on-shu: var(--paper);
  --rule: var(--ink);
  --rule-soft: var(--ink-muted);
  --focus: var(--shu);
  --scrim: rgba(20, 20, 20, 0.74);
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --radius-none: 0;
  --radius-stamp: 50%;
  --stroke-hair: 1px;
  --stroke-rule: 1.5px;
  --stroke-double: 4px;
  --stroke-stamp: 3px;
  --stroke-focus: 3px;
  --focus-offset: 2px;
  --control-h: 44px;
  --control-h-sm: 36px;
  --stamp: 84px;
  --stamp-sm: 64px;
  --digit-h: 66px;
  --page-max: 1320px;
  --page-narrow: 760px;
  --font-sans: "din-2014", "source-han-sans-vf", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
.title-xl { font-family: var(--font-sans); font-size: 34px; line-height: 1.2; font-weight: 900; }
.title-lg { font-family: var(--font-sans); font-size: 26px; line-height: 1.3; font-weight: 900; }
.title-md { font-family: var(--font-sans); font-size: 22px; line-height: 1.3; font-weight: 900; }
.title-sm { font-family: var(--font-sans); font-size: 16px; line-height: 1.4; font-weight: 900; }
.body { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; font-weight: 400; letter-spacing: 0.02em; }
.body-sm { font-family: var(--font-sans); font-size: 14px; line-height: 1.6; font-weight: 400; letter-spacing: 0.02em; }
.label { font-family: var(--font-sans); font-size: 14px; line-height: 1.4; font-weight: 500; letter-spacing: 0.02em; }
.caption { font-family: var(--font-sans); font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: 0.02em; }
.fig-xl { font-family: var(--font-sans); font-size: 30px; line-height: 1.1; font-weight: 600; }
.fig-lg { font-family: var(--font-sans); font-size: 24px; line-height: 1.2; font-weight: 600; }
.fig-md { font-family: var(--font-sans); font-size: 16px; line-height: 1.4; font-weight: 600; }
.fig-sm { font-family: var(--font-sans); font-size: 14px; line-height: 1.5; font-weight: 400; }
.fig-digit { font-family: var(--font-sans); font-size: 28px; line-height: 1; font-weight: 600; }
