/* Central UI contract. Financial/document renderers and PDF.js keep their own
   print/canvas geometry. Sizes here describe the application chrome only. */
:root {
  --font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-small: 12px;
  --font-label: 13px;
  --font-body: 14px;
  --font-h3: 16px;
  --font-h2: 18px;
  --font-h1: 24px;
  --font-metric: 28px;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --line-body: 1.5;
  --line-heading: 1.3;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-label: var(--space-2);
  --space-control: var(--space-2);
  --space-section: var(--space-4);
  --space-panel: var(--space-4);
  --page-title-size: var(--font-h1);
  --control-height: 36px;
  --control-inset-block: 6px;
  --radius-small: 4px;
  --radius-pill: 999px;
  --radius-control: 6px;
  --radius-panel: 8px;
  --field-date: 180px;
  --field-percent: 120px;
  --field-quote: 140px;
  --field-money: 200px;
  --field-short: 420px;
  --field-notes: 640px;
  --color-primary:#235b92;
  --color-primary-hover:#1a4977;
  --color-bg:#f4f6f9;
  --color-surface:#fff;
  --color-sidebar:#14283f;
  --color-text:#223247;
  --color-muted:#627186;
  --color-border:#dfe5ec;
  --color-success:#246848;
  --color-warning:#916219;
  --color-danger:#b13043;
  --color-focus:var(--color-primary);
  --color-surface-subtle:#f7f9fc;
  --color-accent-soft:#edf3fa;
  --color-sidebar-hover:#213c5a;
  --color-sidebar-active:#284f79;
  --color-sidebar-text:#dbe4ef;
  --color-sidebar-muted:#93a7bf;
  --color-sidebar-border:#34506f;
  --color-danger-soft:#fff2f3;
  --color-danger-border:#f0ccd2;
  --color-success-soft:#edf8f2;
  --color-success-border:#cae1d5;
  --shadow-card:0 2px 7px rgb(20 40 63 / 3%);
  --shadow-popover:0 8px 28px rgb(20 40 63 / 14%);
  --navy:var(--color-sidebar);
  --blue:var(--color-primary);
  --border:var(--color-border);
  --muted:var(--color-muted);
  color:var(--color-text);
  background:var(--color-bg);
  --color-table: var(--color-surface);
  --color-table-head: var(--color-surface-subtle);
  --color-surface-alt: var(--color-surface-subtle);
  --color-surface-muted: var(--color-surface-subtle);
  --color-link: var(--color-primary);
  --color-on-primary: #fff;
  --color-status-success: #166534;
  --color-status-success-bg: #e8f5ec;
  --color-status-warning: #854d0e;
  --color-status-warning-bg: #fff3d6;
  --color-status-danger: #a51d27;
  --color-status-danger-bg: #fdebed;
  --color-status-info: #1e4e8c;
  --color-status-info-bg: #eaf2ff;
  --color-status-neutral: #475569;
  --color-status-neutral-bg: #edf0f4;
  --color-warning-soft: #fff8e9;
  --color-sidebar-backdrop: rgb(20 40 63 / 44%);
  --color-lightbox-backdrop: rgb(15 23 42 / .8);
  --color-shadow-subtle: rgb(20 40 63 / 3%);
  --color-scrim: #17233388;
  --color-shadow-soft: #14283a18;
  --color-paper-shadow: #0003;
  --color-loading-surface: #ffffffb8;
}
@media (max-width: 760px) { :root { --font-h1: 22px; } }
