/* Generated by go run ./cmd/dsgen. Edit design/tokens.json. */
:root {
  --auth-width: 32rem;
  --border-width: 1px;
  --bottom-bar-height: 4rem;
  --color-accent: var(--brand-accent, var(--color-accent-default));
  --color-accent-default: #b8431f;
  --color-accent-ink: #8f3116;
  --color-accent-soft: #f7ddd3;
  --color-bg: #f4ede0;
  --color-border: #aea89d;
  --color-control-border: #7c766e;
  --color-focus: #b8431f;
  --color-ink: #1a1410;
  --color-line: #d9d1c2;
  --color-muted: #6b5d45;
  --color-negative: #9b3326;
  --color-negative-soft: #f8e6df;
  --color-neutral: #665c4c;
  --color-neutral-soft: #eae4d8;
  --color-on-accent: #fffdf7;
  --color-paper: #fffdf7;
  --color-positive: #3e5a2b;
  --color-positive-soft: #e8ecdf;
  --color-preview-bg: #e8e1d5;
  --color-scrim: #1a141059;
  --color-shadow: #1a141059;
  --color-shadow-strong: #1a141066;
  --color-surface: #faf5e9;
  --color-warning: #7a540e;
  --color-warning-soft: #f4e8c8;
  --content-max: 106rem;
  --control-compact: 2.25rem;
  --control-height: 2.75rem;
  --control-icon: 2.75rem;
  --dialog-max: 42rem;
  --doc-thumb-phone-width: 2.25rem;
  --doc-thumb-ratio: 5 / 7;
  --doc-thumb-width: 2.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --extracted-text-height: 24rem;
  --extraction-source-height: 42rem;
  --focus-offset: 2px;
  --focus-width: 2px;
  --font-body: Outfit, 'Segoe UI', Inter, system-ui, -apple-system, sans-serif;
  --font-display: Fraunces, 'Iowan Old Style', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --form-max: 58rem;
  --letter-label: 0.08em;
  --letter-tight: -0.015em;
  --line-body: 1.45;
  --line-heading: 1.2;
  --mono-adjust: 0.94em;
  --motion-fast: 120ms;
  --motion-normal: 180ms;
  --preview-landscape-height: 360px;
  --preview-landscape-width: 640px;
  --preview-narrow-height: 640px;
  --preview-narrow-width: 320px;
  --preview-phone-height: 844px;
  --preview-phone-width: 390px;
  --preview-tablet-height: 1024px;
  --preview-tablet-width: 768px;
  --radius-control: 0.375rem;
  --radius-dialog: 0.5rem;
  --radius-panel: 0.375rem;
  --radius-round: 999px;
  --radius-sm: 0.25rem;
  --receipt-min-height: 38rem;
  --receipt-phone-width: 19rem;
  --receipt-width: 34rem;
  --review-editor-width: 30rem;
  --review-phone-check-height: 16rem;
  --review-phone-footer-height: 4.25rem;
  --review-phone-source-min: 13rem;
  --shadow-overlay: 0 12px 40px -12px var(--color-shadow);
  --shadow-panel: none;
  --shadow-toast: 0 8px 24px -8px var(--color-shadow-strong);
  --sidebar-width: 14.25rem;
  --source-thumb-phone-width: 2.75rem;
  --source-thumb-width: 4rem;
  --source-thumbs-height: 6.5rem;
  --source-thumbs-phone-height: 4.5rem;
  --space-1: 0.25rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-base: 0.9375rem;
  --text-lg: 1.25rem;
  --text-md: 1rem;
  --text-sm: 0.875rem;
  --text-xl: 1.5625rem;
  --text-xs: 0.8125rem;
  --topbar-height: 4.25rem;
  --topbar-phone-height: 3.5rem;
  --weight-bold: 600;
  --weight-medium: 500;
  --weight-normal: 400;
  --z-menu: 20;
  --z-raised: 1;
  --z-sidebar: 30;
  --z-sticky: 2;
  --z-toast: 80;
}
[data-theme="high-contrast"] {
  --color-accent-default: #87361e;
  --color-accent-ink: #7a2d14;
  --color-bg: #f5f1e9;
  --color-border: #75654e;
  --color-control-border: #75654e;
  --color-focus: #87361e;
  --color-ink: #100c08;
  --color-line: #948675;
  --color-muted: #514735;
  --color-paper: #ffffff;
  --color-positive: #294c27;
  --color-surface: #fffdf8;
  --color-warning: #63420b;
}
@media (prefers-contrast: more) {
:root {
  --color-accent-default: #87361e;
  --color-accent-ink: #7a2d14;
  --color-bg: #f5f1e9;
  --color-border: #75654e;
  --color-control-border: #75654e;
  --color-focus: #87361e;
  --color-ink: #100c08;
  --color-line: #948675;
  --color-muted: #514735;
  --color-paper: #ffffff;
  --color-positive: #294c27;
  --color-surface: #fffdf8;
  --color-warning: #63420b;
}
}
@media (prefers-color-scheme: dark) and (not (prefers-contrast: more)) {
:root:not([data-theme="high-contrast"]):not([data-mode="light"]) {
  --color-accent-default: #e07a52;
  --color-accent-ink: #f2a184;
  --color-accent-soft: #3d2219;
  --color-bg: #15110d;
  --color-border: #5e5346;
  --color-control-border: #8c8172;
  --color-focus: #f2a184;
  --color-ink: #f2eadd;
  --color-line: #3a3129;
  --color-muted: #bcae95;
  --color-negative: #f39b87;
  --color-negative-soft: #3a1c16;
  --color-neutral: #c9bda9;
  --color-neutral-soft: #2b251e;
  --color-on-accent: #15110d;
  --color-paper: #241e18;
  --color-positive: #b2d197;
  --color-positive-soft: #223019;
  --color-preview-bg: #2b251e;
  --color-scrim: #000000a6;
  --color-shadow: #00000080;
  --color-shadow-strong: #00000099;
  --color-surface: #1c1712;
  --color-warning: #e8c47a;
  --color-warning-soft: #33280f;
}
:root:not([data-theme="high-contrast"]):not([data-mode="light"]) :is(.invoice-paper, .receipt-paper, .template-miniature) {
  --color-accent-default: #b8431f;
  --color-accent-ink: #8f3116;
  --color-accent-soft: #f7ddd3;
  --color-bg: #f4ede0;
  --color-border: #aea89d;
  --color-control-border: #7c766e;
  --color-focus: #b8431f;
  --color-ink: #1a1410;
  --color-line: #d9d1c2;
  --color-muted: #6b5d45;
  --color-negative: #9b3326;
  --color-negative-soft: #f8e6df;
  --color-neutral: #665c4c;
  --color-neutral-soft: #eae4d8;
  --color-on-accent: #fffdf7;
  --color-paper: #fffdf7;
  --color-positive: #3e5a2b;
  --color-positive-soft: #e8ecdf;
  --color-preview-bg: #e8e1d5;
  --color-scrim: #1a141059;
  --color-shadow: #1a141059;
  --color-shadow-strong: #1a141066;
  --color-surface: #faf5e9;
  --color-warning: #7a540e;
  --color-warning-soft: #f4e8c8;
}
}
@media not (prefers-contrast: more) {
:root[data-mode="dark"]:not([data-theme="high-contrast"]) {
  --color-accent-default: #e07a52;
  --color-accent-ink: #f2a184;
  --color-accent-soft: #3d2219;
  --color-bg: #15110d;
  --color-border: #5e5346;
  --color-control-border: #8c8172;
  --color-focus: #f2a184;
  --color-ink: #f2eadd;
  --color-line: #3a3129;
  --color-muted: #bcae95;
  --color-negative: #f39b87;
  --color-negative-soft: #3a1c16;
  --color-neutral: #c9bda9;
  --color-neutral-soft: #2b251e;
  --color-on-accent: #15110d;
  --color-paper: #241e18;
  --color-positive: #b2d197;
  --color-positive-soft: #223019;
  --color-preview-bg: #2b251e;
  --color-scrim: #000000a6;
  --color-shadow: #00000080;
  --color-shadow-strong: #00000099;
  --color-surface: #1c1712;
  --color-warning: #e8c47a;
  --color-warning-soft: #33280f;
}
:root[data-mode="dark"]:not([data-theme="high-contrast"]) :is(.invoice-paper, .receipt-paper, .template-miniature) {
  --color-accent-default: #b8431f;
  --color-accent-ink: #8f3116;
  --color-accent-soft: #f7ddd3;
  --color-bg: #f4ede0;
  --color-border: #aea89d;
  --color-control-border: #7c766e;
  --color-focus: #b8431f;
  --color-ink: #1a1410;
  --color-line: #d9d1c2;
  --color-muted: #6b5d45;
  --color-negative: #9b3326;
  --color-negative-soft: #f8e6df;
  --color-neutral: #665c4c;
  --color-neutral-soft: #eae4d8;
  --color-on-accent: #fffdf7;
  --color-paper: #fffdf7;
  --color-positive: #3e5a2b;
  --color-positive-soft: #e8ecdf;
  --color-preview-bg: #e8e1d5;
  --color-scrim: #1a141059;
  --color-shadow: #1a141059;
  --color-shadow-strong: #1a141066;
  --color-surface: #faf5e9;
  --color-warning: #7a540e;
  --color-warning-soft: #f4e8c8;
}
}
