/* Smart Quote design tokens.
   Load order: tokens.css -> quote-app.css -> app.css on every surface.
   3.0.5: the border-box reset lives here because this file loads first everywhere.
   Every width in the bundle is therefore an OUTER width, --sheet included. */
*, *::before, *::after { box-sizing: border-box; }

/* The shipped palette: Proposal blue (3.0.7).
   These eight are what Settings configures; everything under them is derived by
   includes/palette.php and re-emitted inline after this file on every surface, so a
   configured palette overrides the whole block without this file going stale.
   Editing a value here changes the fallback only - change the default in palette.php. */
:root, [data-theme="light"] {
  --canvas: #f5f8fc;
  --surface: #ffffff;
  --ink: #0f2a44;
  --line: #e3eaf2;
  --brand: #1d6fe0;
  --brand-ink: #1558b8;
  --brand-soft: #e8f1fd;
  --positive: #16a34a;
  --surface-muted: #fafbfd;
  --surface-inverse: #0f2a44;
  --surface-inverse-hover: #2c445a;
  --ink-muted: #657787;
  --ink-disabled: #95a1ad;
  --ink-inverse: #ffffff;
  --ink-inverse-muted: #8795a2;
  --line-strong: #8192a2;
  --line-inverse: #44596d;
  --scrim: rgba(15, 42, 68, 0.55);
  --brand-strong: #185bb8;
  --brand-soft-line: #bbd4f7;
  --on-brand: #ffffff;
  --on-brand-dim: rgba(255, 255, 255, 0.45);
  --saving: #1558b8;
  --focus: #124da2;
  --positive-ink: #107937;
  --positive-soft: #e3f4e9;
  --positive-line: #b0e0c1;
  --brand-tint: #f4f8fd;
  --brand-gradient: linear-gradient(135deg, #1d6fe0 0%, #185bb8 100%);
  --inverse-gradient: linear-gradient(120deg, #0f2a44 0%, #15498a 100%);
  --inverse-brand: #15498a;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-inverse: rgba(255, 255, 255, 0.08);
  --glass-inverse-line: rgba(255, 255, 255, 0.16);
  --note-soft: #fff4de;
  --note-ink: #7c4a03;
  --note-accent: #b45309;
  --note-line: #f3dfb0;
  --danger: #b42318;
  --danger-strong: #93190f;
  --danger-soft: #fdecea;
  --danger-line: #f2c4bf;
  --on-danger: #ffffff;
  --warning: #8a5300;
  --warning-soft: #fcf1de;
  --warning-line: #e8d2a4;
  --info: #17558f;
  --info-soft: #e9f1f9;
  --info-line: #c5daf0;
  --print-line: #b9c4cf;
  --print-ink: #4b5f73;
  --shadow-card: 0 1px 2px rgba(15, 42, 68, 0.06), 0 1px 3px rgba(15, 42, 68, 0.08);
  --shadow-pop: 0 8px 24px rgba(15, 42, 68, 0.16);
  --shadow-bar: 0 -2px 12px rgba(15, 42, 68, 0.1);
  --shadow-card-lg: 0 16px 40px rgba(15, 42, 68, 0.1);
  --shadow-cta: 0 8px 24px rgba(15, 42, 68, 0.18);
}

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --control-sm: 32px;
  --control: 44px;
  --control-lg: 52px;
  --icon: 20px;
  --icon-lg: 24px;
  --tile-icon: 56px;
  --measure: 640px;
  --sheet: 880px;
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

.display { font-family: var(--font-sans); font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.01em; }
.title-lg { font-family: var(--font-sans); font-size: 24px; line-height: 30px; font-weight: 600; }
.title { font-family: var(--font-sans); font-size: 19px; line-height: 26px; font-weight: 600; }
.title-sm { font-family: var(--font-sans); font-size: 16px; line-height: 22px; font-weight: 600; }
.body { font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 400; }
.body-strong { font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 600; }
.small { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 400; }
.small-strong { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 600; }
.label { font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.01em; }
.overline { font-family: var(--font-sans); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.08em; }
.figure-xl { font-family: var(--font-mono); font-size: 30px; line-height: 36px; font-weight: 600; }
.figure { font-family: var(--font-mono); font-size: 16px; line-height: 22px; font-weight: 500; }
.figure-sm { font-family: var(--font-mono); font-size: 13px; line-height: 18px; font-weight: 500; }
.ref { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.04em; }
