/* Design tokens — "Modern Legal / משפטי מודרני" (default), its dark twin (tokens only, no
   picker yet) and "Ops Ledger" (the CRM screens set data-theme="ledger" on their root).
   Copied verbatim from the approved mockup (legal-ux-mockups source/src/app.css lines 14–37
   and 62–72), then the font reconciliation of architecture §4 (A1/A2):
   Modern UI text = Assistant, headings = Heebo; Ledger keeps IBM Plex Sans Hebrew.
   Load order: fonts.css, tokens.css, then the area stylesheets (they map onto these). */
[data-theme="modern"]{
  --bg:#f4f6fa; --surface:#ffffff; --surface-2:#eef1f6; --line:#e2e7ef; --line-strong:#cbd3e0;
  --text:#0f172a; --muted:#5b6880; --faint:#94a0b4;
  --accent:#4f46e5; --accent-hover:#4338ca; --accent-ink:#fff; --accent-soft:#eceefe; --accent-2:#0ea5e9;
  --ok:#15803d; --ok-soft:#dcfce7; --warn:#a16207; --warn-soft:#fef3c7; --bad:#be123c; --bad-soft:#ffe4e6; --info:#0369a1; --info-soft:#e0f2fe;
  --ins:#dcfce7; --ins-ink:#166534; --del:#ffe4e6; --del-ink:#9f1239;
  --font-ui:"Assistant","Heebo",system-ui,sans-serif; --font-head:"Heebo",system-ui,sans-serif; --head-weight:700;
  --radius:12px; --radius-sm:8px; --radius-pill:999px; --pad:16px; --fs:15px;
  --shadow:0 1px 2px rgba(15,23,42,.05),0 2px 8px rgba(15,23,42,.05); --shadow-lg:0 24px 60px rgba(15,23,42,.18);
  --topbar:#ffffff; --topbar-ink:#0f172a; --topbar-muted:#5b6880; --topbar-active:#4f46e5;
  --desk:#e8ecf3; color-scheme:light;
}
[data-theme="modern-dark"]{
  --bg:#0b1020; --surface:#121a2e; --surface-2:#18213a; --line:#243049; --line-strong:#33405e;
  --text:#e6eaf3; --muted:#9aa6bf; --faint:#6b7894;
  --accent:#8b93ff; --accent-hover:#a5abff; --accent-ink:#0b1020; --accent-soft:#1e2452; --accent-2:#38bdf8;
  --ok:#4ade80; --ok-soft:#10301f; --warn:#fbbf24; --warn-soft:#33270b; --bad:#fb7185; --bad-soft:#3a1420; --info:#38bdf8; --info-soft:#0b2a3c;
  --ins:#123522; --ins-ink:#86efac; --del:#3d1621; --del-ink:#fda4af;
  --font-ui:"Assistant","Heebo",system-ui,sans-serif; --font-head:"Heebo",system-ui,sans-serif; --head-weight:700;
  --radius:12px; --radius-sm:8px; --radius-pill:999px; --pad:16px; --fs:15px;
  --shadow:0 1px 2px rgba(0,0,0,.3); --shadow-lg:0 24px 60px rgba(0,0,0,.55);
  --topbar:#0e1528; --topbar-ink:#e6eaf3; --topbar-muted:#9aa6bf; --topbar-active:#8b93ff;
  --desk:#070b17; color-scheme:dark;
}
[data-theme="ledger"]{
  --bg:#f2f4f3; --surface:#ffffff; --surface-2:#edf1ef; --line:#d8dfdb; --line-strong:#bcc7c1;
  --text:#14201b; --muted:#56655e; --faint:#8b9892;
  --accent:#0f766e; --accent-hover:#0b5f58; --accent-ink:#fff; --accent-soft:#dcf1ed; --accent-2:#b45309;
  --ok:#15803d; --ok-soft:#dcf3e2; --warn:#a15c07; --warn-soft:#fbeed3; --bad:#b91c1c; --bad-soft:#fde2e2; --info:#1d4ed8; --info-soft:#e0e8fb;
  --ins:#d9f2df; --ins-ink:#166534; --del:#fde0e0; --del-ink:#991b1b;
  --font-ui:"IBM Plex Sans Hebrew",system-ui,sans-serif; --font-head:"IBM Plex Sans Hebrew",system-ui,sans-serif; --head-weight:600;
  --radius:4px; --radius-sm:3px; --radius-pill:3px; --pad:12px; --fs:14px;
  --shadow:0 1px 0 rgba(20,32,27,.06); --shadow-lg:0 20px 50px rgba(20,32,27,.2);
  --topbar:#14201b; --topbar-ink:#e9efec; --topbar-muted:#93a39b; --topbar-active:#5eead4;
  --desk:#e3e8e5; color-scheme:light;
}

/* ---- shared rules from the mockup ---- */
[data-theme]{ color:var(--text); font-family:var(--font-ui); }
/* body: the mockup's overflow-x:hidden and theme transition are left out on purpose — a hidden
   overflow would mask the "no horizontal scroll" check instead of fixing the layout. */
body{ background:var(--bg); color:var(--text); font-family:var(--font-ui); font-size:var(--fs); line-height:1.55; min-height:100vh; }
h1,h2,h3,h4{ font-family:var(--font-head); font-weight:var(--head-weight); line-height:1.25; letter-spacing:0; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:var(--radius-sm); }
