/* JEROX – user-selectable styles from the 2026-10 design proposals.
   A = nordic (Clean Nordic), B = night (Industrial Night), C = friendly (Fresh Friendly).
   Loaded after jerox2.css; scoped to html[data-j2-style=…], so the existing five
   styles are untouched. Each style honours the separate light/dark toggle.
   Fonts: system stacks only (CSP font-src 'self'; no external font hosts). */

/* ------------------------------------------------------------------ tokens */
html[data-j2-style=nordic]{color-scheme:light;
 --j2-bg:#f4f6f5;--j2-surface:#fff;--j2-ink:#1c2b2a;--j2-muted:#55645f;--j2-line:#e2e8e6;
 --j2-accent:#0f766e;--j2-accent-soft:#e3f1ef;--j2-shadow:0 1px 2px rgba(28,43,42,.06),0 4px 16px rgba(28,43,42,.04);
 --jt-on-accent:#fff;--jt-accent-ink:#0b5a54;--jt-warn-bg:#fff4e5;--jt-warn-ink:#6b3f07;--jt-ok-bg:#e3f1ef;--jt-ok-ink:#0b5a54;--jt-neutral-bg:#eef1f0;--jt-neutral-ink:#3d4b49;
 --jt-side-bg:#fff;--jt-side-ink:#1c2b2a;--jt-side-muted:#55645f;--jt-side-hover:#eef3f2;--jt-side-active-bg:#e3f1ef;--jt-side-active-ink:#0b5a54;--jt-side-line:#e2e8e6;
 --jt-font:Manrope,"Segoe UI Variable Text","Segoe UI",Inter,system-ui,-apple-system,sans-serif;--jt-num-font:var(--jt-font);
 --jt-radius:18px;--jt-control-radius:12px;--jt-button-radius:12px;--jt-pill-radius:999px}
html[data-j2-style=nordic][data-j2-theme=dark]{color-scheme:dark;
 --j2-bg:#0f1716;--j2-surface:#17221f;--j2-ink:#e4eeeb;--j2-muted:#a3b5b0;--j2-line:#2a3a36;
 --j2-accent:#3bb8a8;--j2-accent-soft:#173430;--j2-shadow:0 1px 2px rgba(0,0,0,.25);
 --jt-on-accent:#062420;--jt-accent-ink:#7fd9cc;--jt-warn-bg:#3a2a10;--jt-warn-ink:#ffd59a;--jt-ok-bg:#173430;--jt-ok-ink:#9be3d8;--jt-neutral-bg:#22302d;--jt-neutral-ink:#c9d6d2;
 --jt-side-bg:#121c1a;--jt-side-ink:#dce8e5;--jt-side-muted:#93a6a1;--jt-side-hover:#1c2a27;--jt-side-active-bg:#173430;--jt-side-active-ink:#9be3d8;--jt-side-line:#24332f}

html[data-j2-style=night]{color-scheme:dark;
 --j2-bg:#15191e;--j2-surface:#1e242b;--j2-ink:#e8ecef;--j2-muted:#a3adb8;--j2-line:#2f3842;
 --j2-accent:#f5a524;--j2-accent-soft:#3a2e17;--j2-shadow:none;
 --jt-on-accent:#15191e;--jt-accent-ink:#ffc35c;--jt-warn-bg:#3a2e17;--jt-warn-ink:#ffd38a;--jt-ok-bg:#183a2b;--jt-ok-ink:#8ee0b5;--jt-neutral-bg:#2c343d;--jt-neutral-ink:#d5dbe1;
 --jt-side-bg:#0f1215;--jt-side-ink:#e8ecef;--jt-side-muted:#a3adb8;--jt-side-hover:#1b2026;--jt-side-active-bg:#232a32;--jt-side-active-ink:#fff;--jt-side-line:#2c343d;
 --jt-font:"IBM Plex Sans","Segoe UI",Inter,system-ui,-apple-system,sans-serif;--jt-num-font:"IBM Plex Mono","Cascadia Mono",Consolas,"DejaVu Sans Mono",ui-monospace,monospace;
 --jt-radius:4px;--jt-control-radius:4px;--jt-button-radius:4px;--jt-pill-radius:3px}
html[data-j2-style=night][data-j2-theme=dark]{
 --j2-bg:#0b0e11;--j2-surface:#151a1f;--j2-line:#262d35;--j2-accent-soft:#33280f;
 --jt-side-bg:#07090b;--jt-side-hover:#12161a;--jt-side-active-bg:#1a2027;--jt-side-line:#1f252c}

html[data-j2-style=friendly]{color-scheme:light;
 --j2-bg:#fbf8f4;--j2-surface:#fff;--j2-ink:#24203a;--j2-muted:#5e5975;--j2-line:#ece6de;
 --j2-accent:#4f46e5;--j2-accent-soft:#e9e7fd;--j2-shadow:0 2px 12px rgba(36,32,58,.07);
 --jt-on-accent:#fff;--jt-accent-ink:#3730a3;--jt-warn-bg:#fff1d6;--jt-warn-ink:#6b3f07;--jt-ok-bg:#dff5ec;--jt-ok-ink:#0b5a36;--jt-neutral-bg:#f2efea;--jt-neutral-ink:#4a4560;
 --jt-coral:#d9533f;--jt-coral-soft:#ffe3dd;--jt-coral-ink:#7a2415;
 --jt-side-bg:#2e2a78;--jt-side-ink:#f1f0ff;--jt-side-muted:#c9c6f5;--jt-side-hover:rgba(255,255,255,.1);--jt-side-active-bg:#fff;--jt-side-active-ink:#2e2a78;--jt-side-line:rgba(255,255,255,.14);
 --jt-font:"Plus Jakarta Sans",Nunito,"Segoe UI Variable Display","Segoe UI",Inter,system-ui,-apple-system,sans-serif;--jt-num-font:var(--jt-font);
 --jt-radius:24px;--jt-control-radius:16px;--jt-button-radius:999px;--jt-pill-radius:999px}
html[data-j2-style=friendly][data-j2-theme=dark]{color-scheme:dark;
 --j2-bg:#17152a;--j2-surface:#221f3a;--j2-ink:#f1effa;--j2-muted:#b9b3d0;--j2-line:#37325a;
 --j2-accent:#a5a0ff;--j2-accent-soft:#2f2b5c;--j2-shadow:0 2px 12px rgba(0,0,0,.3);
 --jt-on-accent:#17152a;--jt-accent-ink:#c9c6ff;--jt-warn-bg:#3d3018;--jt-warn-ink:#ffd9a0;--jt-ok-bg:#17392c;--jt-ok-ink:#9ce6c3;--jt-neutral-bg:#2c2848;--jt-neutral-ink:#d8d4ea;
 --jt-coral:#ff8a76;--jt-coral-soft:#4a2620;--jt-coral-ink:#ffc7bc;
 --jt-side-bg:#110f22;--jt-side-active-bg:#a5a0ff;--jt-side-active-ink:#17152a}

/* JEROX Blue (design 2026-10, default): deep navy, electric blue accent; the sidebar stays navy in both modes */
html[data-j2-style=jerox-blue]{color-scheme:light;
 --j2-bg:#eef3f9;--j2-surface:#fff;--j2-ink:#0d1b2e;--j2-muted:#4f6079;--j2-line:#d6e0ec;
 --j2-accent:#1667e0;--j2-accent-soft:#e3edfc;--j2-shadow:0 1px 2px rgba(13,27,46,.06),0 6px 20px rgba(13,27,46,.06);
 --jt-on-accent:#fff;--jt-accent-ink:#0f52b8;--jt-warn-bg:#fff2dc;--jt-warn-ink:#6b3f07;--jt-ok-bg:#dff4e8;--jt-ok-ink:#0b5a36;--jt-neutral-bg:#e9eef5;--jt-neutral-ink:#33445c;
 --jt-accent-fill:#1667e0;--jt-ok-fill:#15803d;--jt-danger-fill:#c8363c;--jt-danger-ink:#b4232a;
 --jt-side-bg:#06101f;--jt-side-ink:#dbe6f6;--jt-side-muted:#8fa5c4;--jt-side-hover:rgba(46,120,240,.14);--jt-side-active-bg:#1566de;--jt-side-active-ink:#fff;--jt-side-line:#13233b;
 --jt-font:"Segoe UI Variable Text","Segoe UI",Inter,system-ui,-apple-system,sans-serif;--jt-num-font:var(--jt-font);
 --jt-radius:10px;--jt-control-radius:8px;--jt-button-radius:8px;--jt-pill-radius:6px;
 --j2-chart-2:#f59e0b;--j2-chart-3:#22c55e}
html[data-j2-style=jerox-blue][data-j2-theme=dark]{color-scheme:dark;
 --j2-bg:#07101e;--j2-surface:#0c1a2d;--j2-ink:#e8f0fb;--j2-muted:#9db0c9;--j2-line:#1b2e4a;
 --j2-accent:#2f86ff;--j2-accent-soft:#10284a;--j2-shadow:0 0 0 1px rgba(47,134,255,.05),0 10px 28px rgba(0,0,0,.35);
 --jt-on-accent:#fff;--jt-accent-ink:#7db4ff;--jt-warn-bg:#3a2a10;--jt-warn-ink:#ffd59a;--jt-ok-bg:#0f3324;--jt-ok-ink:#8fe3b4;--jt-neutral-bg:#16263d;--jt-neutral-ink:#c8d5e8;
 /* PA-H04: filled controls with white text need a darker fill than the text accent #2f86ff (3.51:1) - AA 4.5:1 */
 --jt-accent-fill:#1667e0;--jt-ok-fill:#15803d;--jt-danger-fill:#c8363c;--jt-danger-ink:#ffa3a6;
 --jt-side-bg:#050d1a;--jt-side-line:#0f1e34}

/* PA-H04: status text tokens for dark mode in the styles without their own --jt-* palette (specificity 0, so every
   style's own block wins); light mode uses the literal fallbacks in the rules */
:where(html[data-j2-theme=dark]){--jt-ok-ink:#8fe3b4;--jt-warn-ink:#ffd59a;--jt-danger-ink:#ffa3a6;--jt-accent-ink:var(--j2-accent)}
html[data-j2-style=jerox-blue] :is(.module-shell button,button,input[type=submit]):not([class]){background:var(--jt-accent-fill);border-color:var(--jt-accent-fill);color:#fff}
html[data-j2-style=jerox-blue] .module-shell ul form button:not([class]){background:transparent;border-color:transparent;color:var(--j2-accent)}

/* mobile review H4: in dark mode EVERY style (also the five original ones the OS dark setting switches on) maps the
   style.css tokens to its dark palette – white tables with light text were unreadable (contrast 1.1:1) */
html[data-j2-theme=dark]{
 --jx-bg:var(--j2-bg);--jx-surface:var(--j2-surface);--jx-surface-soft:var(--j2-bg);--jx-text:var(--j2-ink);--jx-muted:var(--j2-muted);
 --jx-border:var(--j2-line);--jx-primary:var(--j2-accent);--jx-primary-hover:var(--j2-accent);--jx-primary-soft:var(--j2-accent-soft)}

/* style.css has its own token set (--jx-*); point it at the active theme */
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]){
 --jx-bg:var(--j2-bg);--jx-surface:var(--j2-surface);--jx-surface-soft:var(--j2-bg);--jx-text:var(--j2-ink);--jx-muted:var(--j2-muted);
 --jx-border:var(--j2-line);--jx-primary:var(--j2-accent);--jx-primary-hover:var(--j2-accent);--jx-primary-soft:var(--j2-accent-soft);
 --jx-radius:var(--jt-control-radius);--jx-radius-sm:var(--jt-control-radius);--jx-radius-lg:var(--jt-radius)}

/* ------------------------------------------------------------ shared shell */
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true]{
 --j2-sidebar:var(--jt-side-bg);--j2-side-ink:var(--jt-side-ink);--j2-radius:var(--jt-radius);--j2-nav-radius:var(--jt-control-radius);
 --j2-head-font:var(--jt-font);font-family:var(--jt-font)!important;background:var(--j2-bg)!important;color:var(--j2-ink)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(.app-shell,.app-main,.app-content){background:var(--j2-bg)!important;color:var(--j2-ink)}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .app-content{background-image:none!important}

/* sidebar (desktop column and the mobile top bar) */
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .app-sidebar,
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .app-sidebar .sidebar-nav{background:var(--jt-side-bg)!important;color:var(--jt-side-ink)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .app-sidebar{border-right:1px solid var(--jt-side-line)!important;box-shadow:none!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .sidebar-brand{border-bottom-color:var(--jt-side-line)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .sidebar-brand-text strong{color:var(--jt-side-ink)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .sidebar-brand-text span{color:var(--jt-side-muted)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .sidebar-brand-mark{background:var(--j2-accent)!important;color:var(--jt-on-accent)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .app-sidebar :is(a.sidebar-link,.sidebar-logout-button){color:var(--jt-side-ink)!important;background:transparent!important;border-radius:var(--jt-control-radius)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .app-sidebar :is(a.sidebar-link,.sidebar-logout-button):hover{background:var(--jt-side-hover)!important;color:var(--jt-side-ink)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .app-sidebar a.sidebar-link.active{background:var(--jt-side-active-bg)!important;color:var(--jt-side-active-ink)!important;font-weight:750}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .app-sidebar .sidebar-icon{color:var(--jt-side-muted)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .app-sidebar a.sidebar-link.active .sidebar-icon{color:var(--jt-side-active-ink)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(.j2-nav-heading,.sidebar-section-label){color:var(--jt-side-muted)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .j2-nav-section{border-color:transparent!important;background:transparent!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .j2-nav-section[open]{background:transparent!important;border-color:transparent!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .j2-nav-section>summary{color:var(--jt-side-ink)!important;border-radius:var(--jt-control-radius)}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .j2-nav-section>summary:hover{background:var(--jt-side-hover)}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .j2-nav-section>summary:after{color:var(--jt-side-muted)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .j2-nav-items{border-left-color:var(--jt-side-line)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .mobile-menu-toggle{color:var(--jt-side-ink)!important;border-color:var(--jt-side-line)!important;background:transparent!important}

/* topbar */
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .app-topbar{background:var(--j2-surface)!important;color:var(--j2-ink)!important;border-bottom:1px solid var(--j2-line)!important;backdrop-filter:none}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(.r8h-language-picker,.j2-theme-toggle,.j2-style-picker select){border-radius:var(--jt-control-radius)!important;border-color:var(--j2-line)!important;background:var(--j2-surface)!important;color:var(--j2-ink)!important}

html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(.topbar-company,.topbar-user-info strong){color:var(--j2-ink)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .topbar-user-info span{color:var(--j2-muted)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .topbar-user-avatar{background:var(--j2-accent-soft)!important;color:var(--jt-accent-ink)!important}

/* text that style.css hard-codes as dark grey: follow the theme instead */
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .app-content :is(label,legend,.open-job-customer,.open-job-top b,.detail-key,.job-detail-label,.material-title,dt){color:var(--j2-ink)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .open-job-meta{color:var(--j2-muted)!important;opacity:1!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .open-job-card.selected{box-shadow:inset 3px 0 0 var(--j2-accent),var(--j2-shadow)!important}

/* Dark contexts (Industrial Night always, Nordic/Friendly in dark mode): style.css
   hard-codes dark grey text on many unclassed elements (td, strong, p …). Make
   unclassed text follow the theme ink; classed elements keep their own meaning. */
html:is([data-j2-style=night],[data-j2-style=nordic][data-j2-theme=dark],[data-j2-style=friendly][data-j2-theme=dark],[data-j2-style=jerox-blue][data-j2-theme=dark]) body[data-jerox2=true] .app-content :where(td,th,p,strong,b,small,span,div,li,label,dt,dd,h4,h5,h6,em,i,legend,summary,caption):not([class]){color:var(--j2-ink)!important}
html:is([data-j2-style=night],[data-j2-style=nordic][data-j2-theme=dark],[data-j2-style=friendly][data-j2-theme=dark],[data-j2-style=jerox-blue][data-j2-theme=dark]) body[data-jerox2=true] .app-content :is(small,.technician-limit,.calendar-empty):not(.status-pill){color:var(--j2-muted)!important;opacity:1!important}
html:is([data-j2-style=night],[data-j2-style=nordic][data-j2-theme=dark],[data-j2-style=friendly][data-j2-theme=dark],[data-j2-style=jerox-blue][data-j2-theme=dark]) body[data-jerox2=true] .app-content :is(.calendar-day-heading,.material-grand-total,.material-grand-total *,.travel-total-row,.travel-total-row *,.customer-search-field,.technician-limit strong,.row-total,.material-line-total){color:var(--j2-ink)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .calendar-empty{color:var(--j2-muted)!important;opacity:1!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(.active-count,.technician-avatar){background:var(--j2-accent)!important;color:var(--jt-on-accent)!important}
html:is([data-j2-style=night],[data-j2-style=nordic][data-j2-theme=dark],[data-j2-style=friendly][data-j2-theme=dark],[data-j2-style=jerox-blue][data-j2-theme=dark]) body[data-jerox2=true] .customer-unpaid-positive{color:#ff9b8c!important}
html:is([data-j2-style=night],[data-j2-style=nordic][data-j2-theme=dark],[data-j2-style=friendly][data-j2-theme=dark],[data-j2-style=jerox-blue][data-j2-theme=dark]) body[data-jerox2=true] .security-warning{color:var(--j2-ink)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .j2-donut-center :is(small,span){color:var(--j2-muted)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] a.btn.light{color:var(--jt-accent-ink)!important}

/* chart series 2 and 3 (series 1 is the accent) */
html[data-j2-style=night]{--j2-chart-2:#3fbf87;--j2-chart-3:#6aa7ff}
html[data-j2-style=friendly]{--j2-chart-2:#1f9d68;--j2-chart-3:#e8604c}
html[data-j2-style=nordic]{--j2-chart-2:#7cb8d8;--j2-chart-3:#d4913a}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .j2-dot-b{background:var(--j2-chart-2)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .j2-dot-c{background:var(--j2-chart-3)!important}

/* type */
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(h1,h2,h3){font-family:var(--jt-font)!important;color:var(--j2-ink)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] h1{letter-spacing:-.03em!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .page-eyebrow{color:var(--jt-accent-ink)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(.muted,.page-description,.dashboard-stat-caption,.dashboard-stat-label,.report-kpi>span,.report-kpi>small,.j2-chart-foot){color:var(--j2-muted)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] a:not(.sidebar-link):not(.btn):not(.open-job-card){color:var(--jt-accent-ink)}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(.dashboard-stat-value,.report-kpi>strong,.stat b,.live-timer,.workspace-timer,.open-job-time,.job-total){font-family:var(--jt-num-font)!important;color:var(--j2-ink)!important}

/* surfaces */
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(.card,.stat,.card-lite,.plan-card,.dashboard-stat,.report-kpi,.table-scroll,.open-job-card,.dashboard-card){background:var(--j2-surface)!important;color:var(--j2-ink)!important;border-color:var(--j2-line)!important;border-radius:var(--jt-radius)!important;box-shadow:var(--j2-shadow)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(.dashboard-stat,.report-kpi):hover{transform:none}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(.flash,.workspace-hint){background:var(--j2-accent-soft)!important;color:var(--j2-ink)!important;border-color:var(--j2-line)!important;border-radius:var(--jt-control-radius)!important}

html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .flash.smtp-status-missing{background:var(--jt-warn-bg)!important;color:var(--jt-warn-ink)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .flash.smtp-status-ok{background:var(--jt-ok-bg)!important;color:var(--jt-ok-ink)!important}

/* controls */
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--j2-surface)!important;color:var(--j2-ink)!important;border:1px solid var(--j2-line)!important;border-radius:var(--jt-control-radius)!important;min-height:44px}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(input[type=checkbox],input[type=radio]){accent-color:var(--j2-accent)}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .btn{border-radius:var(--jt-button-radius)!important;min-height:44px;font-weight:750}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .btn:not(.green):not(.red):not(.light){background:var(--j2-accent)!important;color:var(--jt-on-accent)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .btn.light{background:var(--j2-accent-soft)!important;color:var(--jt-accent-ink)!important;border-color:transparent!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .btn:hover{transform:none;filter:brightness(1.06)}

html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .btn.green{background:#1d7a4c!important;border-color:#1d7a4c!important;color:#fff!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .btn.red{background:#b3362f!important;border-color:#b3362f!important;color:#fff!important}

/* tables */
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] th{background:transparent!important;color:var(--j2-muted)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(td,th){border-color:var(--j2-line)!important;color:var(--j2-ink)}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] tr:hover td{background:var(--j2-accent-soft)!important}

/* status pills */
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .status-pill{border-radius:var(--jt-pill-radius)!important;background:var(--jt-neutral-bg)!important;color:var(--jt-neutral-ink)!important;padding:5px 12px}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .status-pill.running{background:var(--jt-ok-bg)!important;color:var(--jt-ok-ink)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .status-pill.stopped{background:var(--jt-warn-bg)!important;color:var(--jt-warn-ink)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .count-badge{background:var(--j2-accent-soft)!important;color:var(--jt-accent-ink)!important}

/* charts */
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(.j2-spark-column,.j2-bar-track){background:var(--j2-accent-soft)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(.j2-spark-fill,.j2-bar-fill){background:var(--j2-accent)!important}
html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .j2-donut-center{background:var(--j2-surface)!important;color:var(--j2-ink)!important}

/* technician work screen: big, easy touch targets on a phone */
@media(max-width:760px){
 html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .j2-style-picker{display:none!important}
 html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] :is(.job-action-primary,.finish-btn,.dashboard-main-action,.btn.big){min-height:56px;font-size:16px}
 html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] .app-topbar{min-height:0}
}

/* ---------------------------------------------------- A · Clean Nordic */
html[data-j2-style=nordic] body[data-jerox2=true] :is(.card,.stat,.dashboard-stat,.report-kpi,.open-job-card,.dashboard-card){border-color:transparent!important}
html[data-j2-style=nordic] body[data-jerox2=true] :is(.dashboard-stat,.report-kpi)::before{display:none}
html[data-j2-style=nordic] body[data-jerox2=true] :is(.dashboard-stat-label,.report-kpi>span){text-transform:none!important;letter-spacing:0!important;font-size:13px!important;font-weight:650!important}
html[data-j2-style=nordic] body[data-jerox2=true] th{text-transform:uppercase;font-size:11px!important;letter-spacing:.06em!important}
html[data-j2-style=nordic] body[data-jerox2=true] .table-scroll{border-color:transparent!important}
html[data-j2-style=nordic] body[data-jerox2=true] :is(.j2-spark-fill,.j2-spark-column){border-radius:10px!important}
html[data-j2-style=nordic] body[data-jerox2=true] .app-sidebar a.sidebar-link.active{box-shadow:none}

/* ------------------------------------------------- B · Industrial Night */
html[data-j2-style=night] body[data-jerox2=true] .app-topbar{border-bottom:2px solid var(--j2-accent)!important}
html[data-j2-style=night] body[data-jerox2=true] .app-sidebar a.sidebar-link.active{box-shadow:inset 3px 0 0 var(--j2-accent)}
html[data-j2-style=night] body[data-jerox2=true] :is(.dashboard-stat,.report-kpi)::before{width:26px;height:4px;border-radius:0;background:var(--j2-accent);opacity:1}
html[data-j2-style=night] body[data-jerox2=true] :is(.dashboard-stat-label,.report-kpi>span,th,.page-eyebrow){font-family:var(--jt-num-font)!important;letter-spacing:.08em!important}
html[data-j2-style=night] body[data-jerox2=true] th{background:#181d23!important}
html[data-j2-style=night] body[data-jerox2=true] :is(.dashboard-stats,.report-kpi-grid){gap:10px!important}
html[data-j2-style=night] body[data-jerox2=true] :is(.dashboard-stat-value,.report-kpi>strong){font-size:clamp(19px,1.65vw,27px)!important;letter-spacing:-.04em!important;font-weight:600!important}
html[data-j2-style=night] body[data-jerox2=true] :is(.card,.dashboard-stat,.report-kpi,.open-job-card){border:1px solid var(--j2-line)!important}
html[data-j2-style=night] body[data-jerox2=true] .btn:not(.green):not(.red):not(.light){text-transform:uppercase;letter-spacing:.05em}
html[data-j2-style=night] body[data-jerox2=true] .btn.light{background:transparent!important;border:1px solid var(--j2-accent)!important;color:var(--jt-accent-ink)!important}
html[data-j2-style=night] body[data-jerox2=true] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#12161a!important;border-color:#3a4552!important}
html[data-j2-style=night] body[data-jerox2=true] :is(.j2-spark-fill,.j2-spark-column,.j2-bar-track,.j2-bar-fill){border-radius:1px!important}
html[data-j2-style=night] body[data-jerox2=true] :is(.live-timer,.workspace-timer){color:var(--jt-accent-ink)!important}
@media(max-width:760px){html[data-j2-style=night] body[data-jerox2=true] .btn{min-height:52px}}

/* ------------------------------------------------- C · Fresh Friendly */
html[data-j2-style=friendly] body[data-jerox2=true] :is(.card,.stat,.dashboard-stat,.report-kpi,.open-job-card,.dashboard-card,.table-scroll){border-color:transparent!important}
html[data-j2-style=friendly] body[data-jerox2=true] :is(.dashboard-stat,.report-kpi)::before{display:none}
html[data-j2-style=friendly] body[data-jerox2=true] :is(.dashboard-stat-label,.report-kpi>span){text-transform:none!important;letter-spacing:0!important;font-size:14px!important;font-weight:700!important}
html[data-j2-style=friendly] body[data-jerox2=true] h1{font-weight:800!important}
html[data-j2-style=friendly] body[data-jerox2=true] .btn.red{background:#c2412e!important;border-color:#c2412e!important}
html[data-j2-style=friendly] body[data-jerox2=true] .page-head .btn:not(.light),html[data-j2-style=friendly] body[data-jerox2=true] .dashboard-main-action{box-shadow:0 6px 16px rgba(79,70,229,.25)!important}
html[data-j2-style=friendly] body[data-jerox2=true] .app-sidebar a.sidebar-link.active{box-shadow:0 4px 12px rgba(0,0,0,.15)}
html[data-j2-style=friendly] body[data-jerox2=true] :is(.j2-spark-fill,.j2-spark-column,.j2-bar-track,.j2-bar-fill){border-radius:999px!important}
/* pastel KPI tiles in light mode (labels stay dark for contrast) */
html[data-j2-style=friendly]:not([data-j2-theme=dark]) body[data-jerox2=true] .dashboard-stat:nth-child(5n+1){background:#e9e7fd!important}
html[data-j2-style=friendly]:not([data-j2-theme=dark]) body[data-jerox2=true] .dashboard-stat:nth-child(5n+2){background:#dff5ec!important}
html[data-j2-style=friendly]:not([data-j2-theme=dark]) body[data-jerox2=true] .dashboard-stat:nth-child(5n+3){background:#fff1d6!important}
html[data-j2-style=friendly]:not([data-j2-theme=dark]) body[data-jerox2=true] .dashboard-stat:nth-child(5n+4){background:#e4f0ff!important}
html[data-j2-style=friendly]:not([data-j2-theme=dark]) body[data-jerox2=true] .dashboard-stat:nth-child(5n+5){background:#ffe3dd!important}
html[data-j2-style=friendly]:not([data-j2-theme=dark]) body[data-jerox2=true] .dashboard-stat :is(.dashboard-stat-label,.dashboard-stat-caption){color:#3f3a57!important}

/* ------------------------------------------------- appearance page */
.jx-appearance-form{display:grid;gap:22px;max-width:1100px}
.jx-appearance-group{border:0;margin:0;padding:0;min-width:0}
.jx-appearance-group legend{font-weight:800;font-size:18px;margin-bottom:12px;padding:0}
.jx-style-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.jx-style-card{position:relative;display:flex;flex-direction:column;gap:8px;padding:14px;border:2px solid var(--j2-line);border-radius:16px;background:var(--j2-surface);cursor:pointer}
.jx-style-card:has(input:checked),.jx-style-card.is-selected{border-color:var(--j2-accent)}
.jx-style-card:has(input:focus-visible){outline:3px solid var(--j2-accent);outline-offset:2px}
.jx-style-card input{position:absolute;opacity:0;width:1px;height:1px}
.jx-style-name{font-weight:800}
.jx-new{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:999px;background:var(--j2-accent-soft);color:var(--jt-accent-ink,var(--j2-ink));font-size:11px;font-weight:800}
.jx-style-desc{font-size:13px;color:var(--j2-muted)}
.jx-swatch{display:flex;height:92px;border-radius:10px;overflow:hidden;border:1px solid rgba(0,0,0,.08)}
.jx-swatch-side{width:26%}
.jx-swatch-body{flex:1;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr auto;gap:6px;padding:8px}
.jx-swatch-card{border-radius:6px}
.jx-swatch-button{grid-column:1/-1;height:14px;width:55%;border-radius:4px}
.jx-swatch-nordic .jx-swatch-side{background:#fff;border-right:1px solid #e2e8e6}.jx-swatch-nordic .jx-swatch-body{background:#f4f6f5}.jx-swatch-nordic .jx-swatch-card{background:#fff;border-radius:8px}.jx-swatch-nordic .jx-swatch-button{background:#0f766e;border-radius:6px}
.jx-swatch-night .jx-swatch-side{background:#0f1215}.jx-swatch-night .jx-swatch-body{background:#15191e}.jx-swatch-night .jx-swatch-card{background:#1e242b;border:1px solid #2f3842;border-radius:2px}.jx-swatch-night .jx-swatch-button{background:#f5a524;border-radius:2px}
.jx-swatch-friendly .jx-swatch-side{background:#2e2a78}.jx-swatch-friendly .jx-swatch-body{background:#fbf8f4}.jx-swatch-friendly .jx-swatch-card:first-child{background:#e9e7fd;border-radius:12px}.jx-swatch-friendly .jx-swatch-card:nth-child(2){background:#dff5ec;border-radius:12px}.jx-swatch-friendly .jx-swatch-button{background:#4f46e5;border-radius:999px}
.jx-swatch-executive-industrial .jx-swatch-side{background:#15243a}.jx-swatch-executive-industrial .jx-swatch-body{background:#f3f6fb}.jx-swatch-executive-industrial .jx-swatch-card{background:#fff}.jx-swatch-executive-industrial .jx-swatch-card:first-child{background:#2563b4}.jx-swatch-executive-industrial .jx-swatch-button{background:#2763e7}
.jx-swatch-executive .jx-swatch-side{background:#0c203a}.jx-swatch-executive .jx-swatch-body{background:#eef3fa}.jx-swatch-executive .jx-swatch-card{background:#fff}.jx-swatch-executive .jx-swatch-card:first-child{background:#163e75}.jx-swatch-executive .jx-swatch-button{background:#235ed5}
.jx-swatch-industrial .jx-swatch-side{background:#202e34}.jx-swatch-industrial .jx-swatch-body{background:#eaf0f4}.jx-swatch-industrial .jx-swatch-card{background:#fff;border-left:3px solid #d67c20;border-radius:2px}.jx-swatch-industrial .jx-swatch-button{background:#c46b18}
.jx-swatch-minimal .jx-swatch-side{background:#222832}.jx-swatch-minimal .jx-swatch-body{background:#fafafa}.jx-swatch-minimal .jx-swatch-card{background:#fff;border:1px solid #e5e7eb;border-radius:1px}.jx-swatch-minimal .jx-swatch-button{background:#334155;border-radius:1px}
.jx-swatch-command .jx-swatch-side{background:#061526}.jx-swatch-command .jx-swatch-body{background:#172638}.jx-swatch-command .jx-swatch-card{background:#22354b;border-top:2px solid #5bd5ed}.jx-swatch-command .jx-swatch-button{background:#087ca5}
.jx-theme-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:8px}
.jx-theme-option{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--j2-line);border-radius:12px;background:var(--j2-surface);font-weight:650;cursor:pointer}
.jx-theme-option:has(input:checked){border-color:var(--j2-accent);box-shadow:inset 0 0 0 1px var(--j2-accent)}
.jx-appearance-actions{display:flex;gap:10px}
/* print: always dark ink on white paper, whatever the screen style */
@media print{html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]){color-scheme:light;--j2-bg:#fff!important;--j2-surface:#fff!important;--j2-ink:#111!important;--j2-muted:#444!important;--j2-line:#ccc!important;--j2-accent-soft:#f2f2f2!important;--jt-accent-ink:#111!important}
 html:is([data-j2-style=nordic],[data-j2-style=night],[data-j2-style=friendly],[data-j2-style=jerox-blue]) body[data-jerox2=true] *{box-shadow:none!important}}

/* mobile review H4 (contrast probe 22. 10.): remaining low-contrast spots */
html[data-j2-theme=dark] body .add-material-btn{color:var(--j2-accent)!important;border-color:var(--j2-line)!important}
html[data-j2-style=command] body .topbar-company{color:#e8f6ff!important}
/* Audit D-20 (fix ui): public header (login, registration) in dark contexts – style.css paints header/nav white,
   which left the light "JEROX" wordmark and links almost invisible */
:where(html:is([data-j2-style=night],[data-j2-theme=dark])) .public-header,
:where(html:is([data-j2-style=night],[data-j2-theme=dark])) .public-header nav{background:var(--j2-surface)!important}
:where(html:is([data-j2-style=night],[data-j2-theme=dark])) .public-header nav a{color:var(--j2-ink)!important}
