/* RevenueGuard brand tokens v1 (Night Shift). Generated by src/build_tokens.py: edit tokens_src.py, not this file. */
:root{
  --rg-font-sans:'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --rg-font-mono:'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --rg-text-display:3.75rem; --rg-leading-display:1.03; --rg-tracking-display:-0.035em; --rg-weight-display:600;
  --rg-text-h1:2.75rem; --rg-leading-h1:1.08; --rg-tracking-h1:-0.03em; --rg-weight-h1:600;
  --rg-text-h2:2rem; --rg-leading-h2:1.15; --rg-tracking-h2:-0.025em; --rg-weight-h2:600;
  --rg-text-h3:1.375rem; --rg-leading-h3:1.25; --rg-tracking-h3:-0.015em; --rg-weight-h3:600;
  --rg-text-h4:1.125rem; --rg-leading-h4:1.35; --rg-tracking-h4:-0.01em; --rg-weight-h4:600;
  --rg-text-body-lg:1.094rem; --rg-leading-body-lg:1.6; --rg-tracking-body-lg:0; --rg-weight-body-lg:400;
  --rg-text-body:1rem; --rg-leading-body:1.6; --rg-tracking-body:0; --rg-weight-body:400;
  --rg-text-small:0.875rem; --rg-leading-small:1.5; --rg-tracking-small:0; --rg-weight-small:400;
  --rg-text-caption:0.7812rem; --rg-leading-caption:1.45; --rg-tracking-caption:0; --rg-weight-caption:400;
  --rg-text-label:0.75rem; --rg-leading-label:1.4; --rg-tracking-label:0.08em; --rg-weight-label:500;
  --rg-space-0:0rem;
  --rg-space-1:0.25rem;
  --rg-space-2:0.5rem;
  --rg-space-3:0.75rem;
  --rg-space-4:1rem;
  --rg-space-5:1.25rem;
  --rg-space-6:1.5rem;
  --rg-space-8:2rem;
  --rg-space-10:2.5rem;
  --rg-space-12:3rem;
  --rg-space-16:4rem;
  --rg-space-20:5rem;
  --rg-space-24:6rem;
  --rg-space-30:7.5rem;
  --rg-radius-xs:5px;
  --rg-radius-sm:7px;
  --rg-radius-md:10px;
  --rg-radius-lg:14px;
  --rg-radius-xl:20px;
  --rg-radius-2xl:28px;
  --rg-radius-pill:999px;
  --rg-border-width-hairline:1px;
  --rg-border-width-strong:1.5px;
  --rg-border-width-focus:2px;
  --rg-motion-fast:120ms;
  --rg-motion-base:180ms;
  --rg-motion-ease:cubic-bezier(0.2, 0, 0, 1);
}

/* Dark is the default. */
:root,[data-theme="dark"]{
  --rg-bg:#0c0b0a;
  --rg-surface:#141311;
  --rg-surface-2:#1b1a17;
  --rg-border:#2a2824;
  --rg-border-strong:#3a3732;
  --rg-text:#f5f4f1;
  --rg-text-muted:#a8a49c;
  --rg-accent:#f4b740;
  --rg-accent-hover:#ffc65a;
  --rg-on-accent:#1a1203;
  --rg-accent-text:#f4b740;
  --rg-accent-tint:#2a2111;
  --rg-high:#ff8f80;
  --rg-high-bg:#2e1714;
  --rg-med:#f5a35a;
  --rg-med-bg:#2b1d10;
  --rg-low:#a8a49c;
  --rg-low-bg:#201f1c;
  --rg-ok:#9ad480;
  --rg-ok-bg:#17240f;
  --rg-focus:#f4b740;
  --rg-glow:rgba(244,183,64,0.22);
  --rg-shadow-card:0 0 0 1px rgba(255,255,255,0.03), 0 24px 48px -24px rgba(0,0,0,0.6);
  --rg-shadow-raised:0 0 0 1px rgba(255,255,255,0.03), 0 30px 60px -20px rgba(0,0,0,0.65);
  --rg-shadow-glow:0 40px 120px -30px rgba(244,183,64,0.25);
  --rg-shadow-glow-field:radial-gradient(closest-side, rgba(244,183,64,0.22), rgba(244,183,64,0.06) 55%, transparent 75%);
  --rg-shadow-focus-ring:0 0 0 2px #0c0b0a, 0 0 0 4px #f4b740;
  color-scheme:dark;
}

/* Light mode: data-theme=light forces it; data-theme=auto follows the visitor OS setting. With no data-theme, dark (the brand default) is used. */
[data-theme="light"]{
  --rg-bg:#ffffff;
  --rg-surface:#ffffff;
  --rg-surface-2:#f6f5f2;
  --rg-border:#e7e4de;
  --rg-border-strong:#d4d0c8;
  --rg-text:#12110f;
  --rg-text-muted:#5c5850;
  --rg-accent:#f4b740;
  --rg-accent-hover:#e8a628;
  --rg-on-accent:#1a1203;
  --rg-accent-text:#8f5800;
  --rg-accent-tint:#fdf3dc;
  --rg-high:#b42318;
  --rg-high-bg:#fdecea;
  --rg-med:#94480a;
  --rg-med-bg:#fdf0e2;
  --rg-low:#5c5850;
  --rg-low-bg:#f1efeb;
  --rg-ok:#2e6a22;
  --rg-ok-bg:#edf5e9;
  --rg-focus:#8f5800;
  --rg-glow:rgba(244,183,64,0.18);
  --rg-shadow-card:0 1px 2px rgba(18,17,15,0.05), 0 18px 40px -24px rgba(18,17,15,0.18);
  --rg-shadow-raised:0 1px 2px rgba(18,17,15,0.05), 0 30px 60px -24px rgba(18,17,15,0.22);
  --rg-shadow-glow:0 30px 90px -30px rgba(244,183,64,0.35);
  --rg-shadow-glow-field:radial-gradient(closest-side, rgba(244,183,64,0.18), rgba(244,183,64,0.05) 55%, transparent 75%);
  --rg-shadow-focus-ring:0 0 0 2px #ffffff, 0 0 0 4px #8f5800;
  color-scheme:light;
}
@media (prefers-color-scheme: light){
  [data-theme="auto"]{
    --rg-bg:#ffffff;
    --rg-surface:#ffffff;
    --rg-surface-2:#f6f5f2;
    --rg-border:#e7e4de;
    --rg-border-strong:#d4d0c8;
    --rg-text:#12110f;
    --rg-text-muted:#5c5850;
    --rg-accent:#f4b740;
    --rg-accent-hover:#e8a628;
    --rg-on-accent:#1a1203;
    --rg-accent-text:#8f5800;
    --rg-accent-tint:#fdf3dc;
    --rg-high:#b42318;
    --rg-high-bg:#fdecea;
    --rg-med:#94480a;
    --rg-med-bg:#fdf0e2;
    --rg-low:#5c5850;
    --rg-low-bg:#f1efeb;
    --rg-ok:#2e6a22;
    --rg-ok-bg:#edf5e9;
    --rg-focus:#8f5800;
    --rg-glow:rgba(244,183,64,0.18);
    --rg-shadow-card:0 1px 2px rgba(18,17,15,0.05), 0 18px 40px -24px rgba(18,17,15,0.18);
    --rg-shadow-raised:0 1px 2px rgba(18,17,15,0.05), 0 30px 60px -24px rgba(18,17,15,0.22);
    --rg-shadow-glow:0 30px 90px -30px rgba(244,183,64,0.35);
    --rg-shadow-glow-field:radial-gradient(closest-side, rgba(244,183,64,0.18), rgba(244,183,64,0.05) 55%, transparent 75%);
    --rg-shadow-focus-ring:0 0 0 2px #ffffff, 0 0 0 4px #8f5800;
    color-scheme:light;
  }
}

/* Print set: report findings pages, invoices, anything printed. Apply with data-theme="print" or automatically when printing. */
[data-theme="print"]{
  --rg-bg:#ffffff;
  --rg-surface:#ffffff;
  --rg-surface-2:#f7f6f3;
  --rg-border:#e2dfd8;
  --rg-border-strong:#cfcac1;
  --rg-text:#0f0e0c;
  --rg-text-muted:#55514a;
  --rg-accent:#f4b740;
  --rg-accent-hover:#f4b740;
  --rg-on-accent:#1a1203;
  --rg-accent-text:#7f4e00;
  --rg-accent-tint:#fdf3dc;
  --rg-high:#a8200f;
  --rg-high-bg:#fdecea;
  --rg-med:#8a4308;
  --rg-med-bg:#fdf0e2;
  --rg-low:#55514a;
  --rg-low-bg:#f1efeb;
  --rg-ok:#2a611f;
  --rg-ok-bg:#edf5e9;
  --rg-focus:#7f4e00;
  --rg-glow:transparent;
  --rg-shadow-card:none;
  --rg-shadow-raised:none;
  --rg-shadow-glow:none;
  --rg-shadow-glow-field:none;
  --rg-shadow-focus-ring:none;
  color-scheme:light;
}
@media print{
  :root,[data-theme]{
    --rg-bg:#ffffff;
    --rg-surface:#ffffff;
    --rg-surface-2:#f7f6f3;
    --rg-border:#e2dfd8;
    --rg-border-strong:#cfcac1;
    --rg-text:#0f0e0c;
    --rg-text-muted:#55514a;
    --rg-accent:#f4b740;
    --rg-accent-hover:#f4b740;
    --rg-on-accent:#1a1203;
    --rg-accent-text:#7f4e00;
    --rg-accent-tint:#fdf3dc;
    --rg-high:#a8200f;
    --rg-high-bg:#fdecea;
    --rg-med:#8a4308;
    --rg-med-bg:#fdf0e2;
    --rg-low:#55514a;
    --rg-low-bg:#f1efeb;
    --rg-ok:#2a611f;
    --rg-ok-bg:#edf5e9;
    --rg-focus:#7f4e00;
    --rg-glow:transparent;
    --rg-shadow-card:none;
    --rg-shadow-raised:none;
    --rg-shadow-glow:none;
    --rg-shadow-glow-field:none;
    --rg-shadow-focus-ring:none;
    color-scheme:light;
  }
}

/* Mobile type sizes (below 640px). */
@media (max-width: 640px){
  :root{
    --rg-text-display:2.5rem;
    --rg-text-h1:2rem;
    --rg-text-h2:1.625rem;
    --rg-text-h3:1.25rem;
  }
}
