/* Versioned brand CSS for host: j.emach.pl */
/* j.emach.pl — v9_12_444
 * Jungheinrich-oriented brand identity based on the supplied reference:
 * dark graphite top surfaces, bright industrial yellow, white content areas
 * and the red arrow retained exclusively in the Jungheinrich mark/wordmark.
 *
 * Brand colour is never used to redefine WARNING / ALARM / ERROR semantics.
 */
:root[data-brand="j"] {
    --j-graphite-950: #1b2023;
    --j-graphite-900: #2d363b;
    --j-graphite-850: #364148;
    --j-graphite-800: #3f4a50;
    --j-graphite-700: #59646a;
    --j-yellow: #ffc400;
    --j-yellow-hover: #ffd129;
    --j-yellow-pressed: #e6b100;
    --j-auth-link-accent: #8a6900;
    --j-auth-link-accent-hover: #6f5500;
    --j-page: #eef2f4;
    --j-surface: #ffffff;
    --j-border: #d2d8db;

    --brand-identity: var(--j-yellow);
    --brand-identity-strong: var(--j-yellow-pressed);
    --brand-identity-soft: #fff4bd;

    /* Operational accent deliberately stays graphite. Yellow is identity. */
    --brand-primary: #4d585e;
    --brand-primary-hover: #3f494e;
    --brand-primary-pressed: #343c40;
    --brand-primary-soft: #eceff0;
    --brand-primary-soft-alt: #e5e9eb;
    --brand-primary-highlight: var(--j-yellow);
    --brand-primary-light: #ffe27a;
    --action-primary-bg: var(--j-yellow);
    --action-primary-bg-hover: var(--j-yellow-hover);
    --action-primary-border: var(--j-yellow);
    --action-primary-text: #171b1d;
    --brand-focus: #59656b;
    --brand-focus-ring: rgba(89,101,107,.18);
    --brand-focus-ring-soft: rgba(89,101,107,.10);
    --brand-shadow: rgba(26,31,34,.18);
    --brand-shadow-soft: rgba(26,31,34,.10);

    /* Canonical icon typography for this brand. Keep these explicit even while
       values match the neutral baseline so runtime composites and future icon
       audits have one brand-owned source of spatial/optical metrics. */
    --brand-icon-stroke: 2;
    --brand-icon-stroke-secondary: 1.3;
    --brand-device-icon-stroke: 2;
    --brand-device-icon-stroke-secondary: 1.9;
    --brand-device-icon-stroke-strong: 2.3;
    --brand-icon-gap: 2;
    --brand-icon-clearance: 1.25;
    --control-selected-bg: #e7ebed;
    --control-selected-text: #2c3438;

    /* LIGHT: Jungheinrich uses a dark navigation frame around a light workspace. */
    --app-workspace-bg: var(--j-page);
    --app-canvas: var(--j-page);
    --app-canvas-background: var(--j-page);

    --sidebar-bg: var(--j-graphite-800);
    --sidebar-border: #293237;
    --sidebar-brand-bg: var(--topbar-bg);
    --sidebar-brand-divider: var(--topbar-border);
    --sidebar-product-text: #d9dee0;
    --sidebar-brand-muted: #b7c0c4;
    --sidebar-nav-text: #d9dee0;
    --sidebar-nav-hover-bg: #48545a;
    --sidebar-nav-hover-text: #ffffff;
    --sidebar-foot-bg: #30393e;
    --sidebar-foot-text: #bdc6ca;
    --sidebar-account-bg: #39444a;
    --sidebar-account-border: #536067;
    --sidebar-account-hover-bg: #465259;
    --sidebar-account-hover-border: #69767d;

    --topbar-bg: #2d363b;
    --topbar-border: #2b3439;
    --topbar-title: #ffffff;
    --topbar-eyebrow: #c1c8cb;
    --topbar-control-bg: #465259;
    --topbar-control-border: #657178;
    --topbar-control-text: #f1f3f4;
    --topbar-input-bg: #3b474d;
    --topbar-input-border: #59666c;
    --topbar-mobile-search-input-bg: #2f393e;
    --topbar-mobile-search-input-focus-bg: #374248;
    --topbar-input-text: #ffffff;
    --topbar-input-placeholder: #b1babf;
    --topbar-search-icon: #d1d7da;
    --topbar-input-focus-bg: #46535a;
    --topbar-input-focus-border: #87949a;
    --topbar-input-focus-ring: rgba(135,148,154,.16);
    --topbar-search-clear: #d6dcde;
    --topbar-search-clear-hover-bg: #566269;
    --topbar-search-clear-hover-text: #ffffff;
    --topbar-search-toggle-bg: #465259;
    --topbar-search-toggle-border: #657178;
    --topbar-search-toggle-text: #f0f2f3;
    --topbar-search-toggle-query-ring: #3b474d;
    --topbar-search-shadow: 0 4px 16px rgba(0,0,0,.22);
    --topbar-shadow: 0 5px 14px -9px rgba(17,22,25,.45);
    --topbar-workspace-shadow: linear-gradient(to bottom, rgba(17,22,25,.20) 0%, rgba(17,22,25,.085) 44%, rgba(17,22,25,0) 100%);

    /* LIGHT mobile bottom navigation intentionally follows the light workspace,
       not the dark Jungheinrich topbar, so it transitions naturally into the
       Android system navigation area. */
    --mobile-nav-bg: var(--j-page);
    --mobile-nav-border: var(--j-border);
    --mobile-nav-text: var(--j-graphite-700);
    --mobile-nav-active-text: var(--j-graphite-900);

    --view-switch-active-text: #171b1d;
    --account-avatar-bg: #4a565c;
    --detail-kicker: #59646a;

    /* Public / auth surfaces. */
    --public-bg: var(--j-page);
    --public-header-bg: var(--j-graphite-850);
    --auth-brand-bg: var(--j-graphite-850);
    --auth-brand-text: #ffffff;
    --auth-main-bg: #f4f5f3;
    --auth-heading: #1d2225;
    --auth-label: #4f575b;
    --auth-muted: #767f83;
    --auth-input-placeholder: var(--auth-muted);
    --auth-input-bg: #ffffff;
    --auth-input-border: #ced3d5;
    --auth-input-text: #1e2427;
    --auth-focus-border: #5e696f;
    --auth-focus-bg: #ffffff;
    --auth-focus-ring: rgba(72,84,90,.15);
    --auth-divider: #d9dddf;
    --auth-info-border: #d8dddf;
    --auth-info-bg: #f0f2f2;
    --auth-info-icon-bg: #e4e8e9;
}

/* The active label is darker than inactive labels in LIGHT; the icon keeps
   using the existing Jungheinrich yellow active-state token. */
:root[data-brand="j"] .mobile-quick-nav-item.active,
:root[data-brand="j"] .mobile-quick-nav-item[aria-current="page"] {
    color: var(--mobile-nav-active-text);
}

/* ---- App shell ---------------------------------------------------------- */
:root[data-brand="j"] .sidebar-brand-row {
    border-bottom-color: var(--sidebar-brand-divider);
}

/* ---- Landing page ------------------------------------------------------- */
:root[data-brand="j"] .public-home,
:root[data-brand="j"] .public-home-body {
    background: var(--j-page) !important;
}

:root[data-brand="j"] .public-header {
    min-height: 84px;
    border-bottom: 0;
    background: var(--j-graphite-850) !important;
    backdrop-filter: none;
    box-shadow: 0 2px 0 rgba(0,0,0,.16);
}

:root[data-brand="j"] .public-brand {
    color: #ffffff;
}

:root[data-brand="j"] .public-brand span {
    display: none;
}

:root[data-brand="j"] .public-logo {
    width: min(275px, 38vw);
    max-width: 275px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
    filter: none !important;
}

:root[data-brand="j"] .public-link {
    color: #f0f2f3;
}

:root[data-brand="j"] .public-link:hover {
    color: #ffffff;
}

:root[data-brand="j"] .public-header .public-primary {
    min-height: 42px;
    border: 1px solid var(--j-yellow);
    border-radius: 2px;
    background: var(--j-yellow);
    color: #171b1d;
    box-shadow: none;
    font-weight: 900;
}

:root[data-brand="j"] .public-header .public-primary:hover {
    background: var(--j-yellow-hover);
}

:root[data-brand="j"] .public-hero {
    width: min(1420px, calc(100% - 56px));
    padding: 76px 0 82px;
    gap: clamp(52px, 6vw, 96px);
}

:root[data-brand="j"] .public-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: 22px;
    padding: 0 12px;
    border-radius: 0;
    background: var(--j-yellow);
    color: #171b1d;
    font-size: .7rem;
    font-weight: 950;
    letter-spacing: .10em;
    text-transform: uppercase;
}

:root[data-brand="j"] .public-hero-copy h1 {
    color: #171c1f;
    font-size: clamp(3rem, 5.7vw, 5.2rem);
    font-weight: 900;
    letter-spacing: -.055em;
}

:root[data-brand="j"] .public-hero-copy h1 em {
    display: inline-block;
    margin-top: .08em;
    padding: .02em .10em .07em;
    background: var(--j-yellow);
    color: #171c1f;
    font-style: normal;
    text-decoration: none;
}

:root[data-brand="j"] .public-hero-copy > p:not(.public-note) {
    max-width: 560px;
    color: #5f696e;
    font-size: 1rem;
    line-height: 1.65;
}

:root[data-brand="j"] .public-primary {
    border: 1px solid var(--j-yellow);
    border-radius: 2px;
    background: var(--j-yellow);
    color: #171b1d;
    box-shadow: none;
    font-weight: 900;
}

:root[data-brand="j"] .public-primary:hover {
    background: var(--j-yellow-hover);
}

:root[data-brand="j"] .public-secondary {
    border: 1px solid #6c767b;
    border-radius: 2px;
    background: transparent;
    color: #343d42;
}

:root[data-brand="j"] .public-secondary:hover {
    border-color: #3d484d;
    background: #ffffff;
}

:root[data-brand="j"] .public-note {
    color: #7a8387;
}

/* Flat, rectangular preview: no diagonals, no perspective gimmicks. */
:root[data-brand="j"] .public-preview {
    padding: 0 0 28px;
}

:root[data-brand="j"] .preview-window {
    min-height: 440px;
    border: 1px solid #bfc7ca;
    border-radius: 3px;
    background: #ffffff;
    box-shadow: 0 22px 48px rgba(31,40,44,.14);
    transform: none;
}

:root[data-brand="j"] .preview-sidebar {
    background: var(--j-graphite-850);
    border-right-color: #2b3439;
}

:root[data-brand="j"] .preview-logo {
    border-radius: 2px;
    background: #ffffff url("/brands/j/logo.svg") center / 72% auto no-repeat;
    color: transparent;
    font-size: 0;
    box-shadow: inset 0 0 0 2px var(--j-yellow);
}

:root[data-brand="j"] .preview-nav {
    border-radius: 2px;
    background: #536067;
}

:root[data-brand="j"] .preview-nav.active {
    background: var(--j-yellow);
    box-shadow: none;
}

:root[data-brand="j"] .preview-content {
    background: #eef1f2;
}

:root[data-brand="j"] .preview-topbar {
    border-bottom-color: #2b3439;
    background: var(--j-graphite-850);
}

:root[data-brand="j"] .preview-topbar div:first-child {
    background: #737e83;
}

:root[data-brand="j"] .preview-topbar div:last-child {
    border-radius: 2px;
    background: var(--j-yellow);
}

:root[data-brand="j"] .preview-heading {
    background: #59646a;
}

:root[data-brand="j"] .preview-subheading {
    background: #c8ced1;
}

:root[data-brand="j"] .preview-grid article {
    border-color: #cfd5d7;
    border-radius: 3px;
    background: #ffffff;
}

:root[data-brand="j"] .preview-grid article span {
    border-radius: 2px;
    background: #e5e9eb;
    color: #4e595f;
}

:root[data-brand="j"] .preview-grid b,
:root[data-brand="j"] .preview-grid i {
    background: #d3d8da;
}

:root[data-brand="j"] .preview-status {
    border-color: #c9d0d3;
    border-radius: 2px;
    background: #ffffff;
    color: #4f595e;
    box-shadow: 0 10px 24px rgba(31,40,44,.12);
}

:root[data-brand="j"] .preview-status span:first-child {
    background: var(--state-success);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--state-success) 16%, transparent);
}

:root[data-brand="j"] .public-footer {
    color: #717b80;
}

/* ---- Authentication ---------------------------------------------------- */
:root[data-brand="j"] .auth-brand-panel {
    border-top: 9px solid var(--j-yellow);
    background: var(--j-graphite-850);
}

/* No diagonal/angled decorative geometry in the Jungheinrich brand. */
:root[data-brand="j"] .auth-brand-panel::after {
    display: none !important;
    content: none !important;
}

:root[data-brand="j"] .auth-logo {
    width: min(260px, 62vw);
    max-width: 260px;
    height: 46px;
    object-fit: contain;
    object-position: left center;
    filter: none !important;
}

:root[data-brand="j"] .auth-product-name {
    border-left-color: rgba(255,255,255,.28);
    color: #d8dddf;
}

:root[data-brand="j"] .auth-brand-kicker,
:root[data-brand="j"] .auth-feature-row span {
    color: var(--j-yellow);
}

:root[data-brand="j"] .auth-live-dot {
    background: var(--state-success);
    box-shadow: none;
}

:root[data-brand="j"] .auth-submit {
    border-color: var(--j-yellow) !important;
    border-radius: 2px !important;
    background: var(--j-yellow) !important;
    color: #171b1d !important;
    box-shadow: none !important;
    font-weight: 900;
}

:root[data-brand="j"] .auth-submit:hover {
    background: var(--j-yellow-hover) !important;
}

:root[data-brand="j"] .auth-eyebrow {
    color: #3d474c;
}

:root[data-brand="j"] .auth-form-meta a,
:root[data-brand="j"] .auth-switch a {
    color: var(--j-auth-link-accent);
}

:root[data-brand="j"] .auth-form-meta a:hover,
:root[data-brand="j"] .auth-form-meta a:focus-visible,
:root[data-brand="j"] .auth-switch a:hover,
:root[data-brand="j"] .auth-switch a:focus-visible {
    color: var(--j-auth-link-accent-hover);
}

@media (max-width: 600px) {
    :root[data-brand="j"] .public-logo {
        width: min(210px, 58vw);
        max-width: 210px;
        height: 34px;
    }

    :root[data-brand="j"] .public-header {
        min-height: 70px;
    }

    :root[data-brand="j"] .public-hero {
        width: calc(100% - 30px);
        padding-top: 50px;
    }
}

@media (prefers-color-scheme: dark) {
    :root[data-brand="j"] {
        --brand-primary: #b4bbbf;
        --brand-primary-hover: #c6cbce;
        --brand-primary-pressed: #9fa7ab;
        --brand-primary-soft: #252b2e;
        --brand-primary-soft-alt: #2c3336;
        --brand-focus: #b4bbbf;
        --brand-focus-ring: rgba(180,187,191,.18);
        --control-selected-bg: #283034;
        --control-selected-text: #f0f2f3;

        --app-workspace-bg: #101214;
        --app-canvas: #101214;
        --app-canvas-background: #101214;
        --sidebar-bg: #242b2f;
        --sidebar-border: #171c1f;
        --sidebar-nav-hover-bg: #354047;
        --sidebar-account-bg: #2d373c;
        --sidebar-account-border: #46535a;
        --sidebar-account-hover-bg: #364147;
        --sidebar-account-hover-border: #56636a;
        --topbar-bg: #242b2f;
        --topbar-border: #171c1f;
        --topbar-control-bg: #333d42;
        --topbar-control-border: #505d63;
        --topbar-input-bg: #303a3f;
        --topbar-input-border: #4b575d;
        --topbar-mobile-search-input-bg: #242c30;
        --topbar-mobile-search-input-focus-bg: #2b3438;
        --topbar-input-focus-bg: #374248;
        --topbar-search-clear-hover-bg: #404c52;
        --topbar-search-toggle-bg: #333d42;
        --topbar-search-toggle-border: #505d63;
        --account-avatar-bg: #364147;
        --detail-kicker: #aeb8bc;

        --public-bg: #111416;
        --public-header-bg: #242b2f;
        --auth-main-bg: #121516;
        --auth-heading: #f1f3f4;
        --auth-label: #c4cbce;
        --auth-muted: #949da1;
        --j-auth-link-accent: var(--j-yellow);
        --j-auth-link-accent-hover: var(--j-yellow-hover);
        --auth-input-bg: #1a1f21;
        --auth-input-border: #394247;
        --auth-input-text: #f1f3f4;
        --auth-focus-bg: #1d2326;
        --auth-divider: #31393d;
        --auth-info-border: #394247;
        --auth-info-bg: #1b2022;
        --auth-info-icon-bg: #293034;
    }

    :root[data-brand="j"] .public-home,
    :root[data-brand="j"] .public-home-body {
        background: #111416 !important;
    }

    :root[data-brand="j"] .public-header {
        background: #242b2f !important;
    }

    :root[data-brand="j"] .public-hero-copy h1 {
        color: #f3f4f4 !important;
    }

    :root[data-brand="j"] .public-hero-copy h1 em {
        color: #171b1d !important;
    }

    :root[data-brand="j"] .public-hero-copy > p:not(.public-note),
    :root[data-brand="j"] .public-note,
    :root[data-brand="j"] .public-footer {
        color: #9da6aa !important;
    }

    :root[data-brand="j"] .public-secondary {
        border-color: #596469 !important;
        background: transparent !important;
        color: #e1e5e7 !important;
    }

    :root[data-brand="j"] .public-secondary:hover {
        background: #232a2d !important;
    }

    :root[data-brand="j"] .preview-window,
    :root[data-brand="j"] .preview-grid article,
    :root[data-brand="j"] .preview-status {
        border-color: #394247 !important;
        background: #1c2225 !important;
        color: #d2d7d9 !important;
        box-shadow: none !important;
    }

    :root[data-brand="j"] .preview-sidebar,
    :root[data-brand="j"] .preview-topbar {
        background: #242b2f !important;
        border-color: #171c1f !important;
    }

    :root[data-brand="j"] .preview-content {
        background: #14191b !important;
    }

    :root[data-brand="j"] .preview-nav { background: #465158 !important; }
    :root[data-brand="j"] .preview-nav.active { background: var(--j-yellow) !important; }
    :root[data-brand="j"] .preview-heading { background: #626e74 !important; }
    :root[data-brand="j"] .preview-subheading,
    :root[data-brand="j"] .preview-grid b,
    :root[data-brand="j"] .preview-grid i,
    :root[data-brand="j"] .preview-topbar div:first-child { background: #384247 !important; }
    :root[data-brand="j"] .preview-topbar div:last-child { background: var(--j-yellow) !important; }
    :root[data-brand="j"] .preview-grid article span { background: #2b3337 !important; }
}

/* ========================================================================== 
   v9.8.339 — deep Jungheinrich surface/shell refinement
   --------------------------------------------------------------------------
   This block deliberately changes only presentation. Device data, ACL and
   semantic WARNING / ALARM / ERROR colours stay global and untouched.
   ========================================================================== */
:root[data-brand="j"] {
    /* Typography is brand-owned. Use a neutral, normal-width system stack.
       Corporate ASE is not bundled; Arial / Helvetica are the current
       visual fallback for Jungheinrich without introducing licensed assets. */
    --brand-font-ui: Arial, Helvetica, sans-serif;
    --brand-font-display: Arial, Helvetica, sans-serif;

    /* Jungheinrich surface profile: precise, rectangular industrial geometry. */
    --radius-xs: 1px;
    --radius-sm: 2px;
    --radius-md: 2px;
    --radius-lg: 2px;
    --radius-xl: 2px;

    --surface-card-bg: #ffffff;
    --surface-card-border: #dde2e4;
    --surface-card-border-hover: #b9c1c5;
    --surface-card-radius: 2px;
    --surface-card-shadow: 0 2px 4px rgba(31,40,44,.08), 0 10px 24px rgba(31,40,44,.10);
    --surface-card-shadow-hover: 0 3px 6px rgba(31,40,44,.10), 0 14px 30px rgba(31,40,44,.12);

    --surface-row-bg: #ffffff;
    --surface-row-border: #e0e4e6;
    --surface-row-border-hover: #bac2c6;
    --surface-row-radius: 2px;
    --surface-row-shadow: 0 1px 3px rgba(31,40,44,.035), 0 5px 12px rgba(31,40,44,.045);
    --surface-row-shadow-hover: 0 2px 4px rgba(31,40,44,.055), 0 8px 16px rgba(31,40,44,.065);

    --surface-panel-bg: #ffffff;
    --surface-panel-border: #dde2e4;
    --surface-panel-radius: 2px;
    --surface-modal-radius: 2px;

    /* Keep legacy component tokens aligned with the profile for components
       that have not yet migrated to the generic surface roles. */
    --device-card-header: #f4f5f3;
    --device-card-header-2: #f1f3f1;
    --device-card-header-text: #242a2d;
    --device-card-header-muted: #697378;
    --device-card-body: #ffffff;
    --device-card-panel: #ffffff;
    --device-card-panel-border: #e0e4e6;
    --device-card-text: #242a2d;
    --device-card-muted: #707a7f;
    --device-card-footer: #f4f5f3;
    --device-card-footer-border: #e0e4e6;
    --device-card-border: #dde2e4;
    --device-card-border-hover: #b9c1c5;
    --device-card-shadow: var(--surface-card-shadow);
    --device-card-shadow-hover: var(--surface-card-shadow-hover);

    --group-card-bg: #ffffff;
    --group-card-border: #dde2e4;
    --group-card-border-hover: #b9c1c5;
    --group-card-icon-bg: #f3f5f5;
    --group-card-icon-border: #e1e5e6;
    --group-card-shadow: var(--surface-card-shadow);
    --group-card-shadow-hover: var(--surface-card-shadow-hover);

    /* Detail content is a light workspace with white, square panels. */
    --detail-surface: var(--j-page);
    --detail-surface-soft: #f4f6f6;
    --detail-surface-panel: #ffffff;
    --detail-surface-alt: #f5f6f6;
    --detail-surface-hover: #edf0f1;
    --detail-border: #dde2e4;
    --detail-border-soft: #e8ebec;
    --detail-border-strong: #b9c1c5;
    --detail-text: #293034;
    --detail-text-strong: #1d2326;
    --detail-muted: #707b80;
    --detail-muted-strong: #525e64;
    --detail-kicker: #59646a;
    --detail-head-bg: #ffffff;
    --detail-meta-bg: #f4f6f6;
    --detail-meta-border: #e0e4e6;
    --detail-tree-line: #dfe4e6;
    --detail-placeholder-bg: #f5f7f7;
    --detail-placeholder-border: #d9dfe1;
    --detail-placeholder-text: #758086;
    --detail-shadow: 0 2px 5px rgba(31,40,44,.08), 0 11px 26px rgba(31,40,44,.10);
    --detail-shadow-compact: 0 2px 4px rgba(31,40,44,.065), 0 7px 16px rgba(31,40,44,.075);

    /* Shell colours are independent from light card/icon tokens. */
    --shell-text: #f4f6f7;
    --shell-icon: #eef1f2;
    --shell-muted: #b9c2c6;
    --shell-active: #ffffff;

    /* J keeps dark shell surfaces also in LIGHT mode. Closed icon surfaces
       are intentionally lifted a little from their local surface. */
    --sidebar-icon-raised-fill: color-mix(in srgb, var(--sidebar-bg) 86%, #ffffff 14%);
    --sidebar-icon-recessed-fill: color-mix(in srgb, var(--sidebar-bg) 94%, #000000 6%);
    --topbar-icon-raised-fill: color-mix(in srgb, var(--topbar-bg) 86%, #ffffff 14%);
    --topbar-icon-recessed-fill: color-mix(in srgb, var(--topbar-bg) 94%, #000000 6%);
    --popup-icon-raised-fill: color-mix(in srgb, var(--popup-surface-bg) 84%, #ffffff 16%);
    --popup-icon-recessed-fill: color-mix(in srgb, var(--popup-surface-bg) 94%, #000000 6%);
    --sidebar-nav-active-bg: transparent;
    --sidebar-nav-active-text: #ffffff;
    --sidebar-nav-active-icon: var(--j-yellow);

    --sidebar-product-text: var(--shell-muted);
    --sidebar-brand-muted: var(--shell-muted);
    --sidebar-nav-text: #d7dde0;
    --sidebar-nav-hover-bg: #465158;
    --sidebar-nav-hover-text: #ffffff;
    --sidebar-account-bg: #3d484e;
    --sidebar-account-border: #59666c;
    --sidebar-account-hover-bg: #47545a;
    --sidebar-account-hover-border: #748188;
    --account-avatar-bg: #4a565c;
    --account-name: #ffffff;
    --account-meta: #c0c8cc;
    --account-chevron: #c0c8cc;

    --topbar-title: #ffffff;
    --topbar-eyebrow: #c3cbcf;
    --topbar-control-text: #f5f7f7;
    --topbar-search-icon: #d8dddf;
    --topbar-search-clear: #d8dddf;
    --topbar-search-toggle-bg: #465259;
    --topbar-search-toggle-border: #657178;
    --topbar-search-toggle-text: #f4f6f7;
    --view-switch-bg: #303a3f;
    --view-switch-border: #5b686e;
    --view-switch-text: #dce1e3;
    --view-switch-active-bg: var(--j-yellow);
    --view-switch-active-text: #171b1d;
    --view-switch-shadow: none;
    --view-switch-active-shadow: none;

    /* Unlike neutral brands, detail never replaces the Jungheinrich shell. */
    --detail-topbar-bg: var(--j-graphite-900);
    --detail-topbar-border: #2b3439;
    --detail-topbar-text: #ffffff;
    --detail-topbar-muted: #c3cbcf;
    --detail-control-bg: #465259;
    --detail-control-bg-hover: #536067;
    --detail-control-border: #657178;
    --detail-status-bg: #303a3f;
    --detail-status-border: #59666c;
    --detail-device-state-text: #ffffff;
}

/* ---- Sidebar identity: collapsed mark / expanded wordmark --------------- */
:root[data-brand="j"] .sidebar-product-name {
    display: none !important;
}

:root[data-brand="j"] body.app-shell-v246:not(.bqs-kiosk-mode) .sidebar-brand-logo {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: 142px !important;
    height: 29px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    object-fit: contain !important;
    object-position: left center !important;
    filter: none !important;
}

:root[data-brand="j"] body.app-shell-v246.sidebar-expanded:not(.bqs-kiosk-mode) .sidebar-brand-logo {
    flex: 1 1 auto !important;
    width: min(142px, 100%) !important;
    max-width: 142px !important;
}

:root[data-brand="j"] body.app-shell-v246.sidebar-collapsed:not(.bqs-kiosk-mode) .sidebar-collapsed-expand-logo img,
:root[data-brand="j"] .sidebar-collapsed-expand-logo img {
    box-sizing: border-box !important;
    width: 28px !important;
    max-width: 28px !important;
    height: 39px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    object-fit: contain !important;
    object-position: center !important;
    filter: none !important;
}

:root[data-brand="j"] body.app-shell-v246.sidebar-collapsed:not(.bqs-kiosk-mode) .sidebar-collapsed-expand:hover,
:root[data-brand="j"] body.app-shell-v246.sidebar-collapsed:not(.bqs-kiosk-mode) .sidebar-collapsed-expand:focus-visible {
    background: #465259;
    color: var(--shell-active);
}

/* ---- Shell text/icon isolation ------------------------------------------ */
:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-sidebar,
:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar {
    color: var(--shell-text);
}

:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-sidebar .sidebar-nav-item {
    color: var(--sidebar-nav-text);
}

:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-sidebar .sidebar-nav-icon,
:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-sidebar .sidebar-developer-broker-icon,
:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-sidebar .account-chevron {
    color: var(--shell-icon);
}

:root[data-brand="j"] body.app-shell-v246:not(.bqs-kiosk-mode) .sidebar-collapse {
    border-color: transparent;
    background: transparent;
    color: var(--shell-icon);
}

:root[data-brand="j"] body.app-shell-v246:not(.bqs-kiosk-mode) .sidebar-collapse:hover,
:root[data-brand="j"] body.app-shell-v246:not(.bqs-kiosk-mode) .sidebar-collapse:focus-visible {
    border-color: transparent;
    background: var(--topbar-control-bg);
    color: #ffffff;
}

:root[data-brand="j"] .sidebar-developer-broker-button,
:root[data-brand="j"] .sidebar-account-button {
    color: var(--shell-text) !important;
}

:root[data-brand="j"] .sidebar-account-button .account-profile-copy strong {
    color: #ffffff !important;
}

:root[data-brand="j"] .sidebar-account-button .account-profile-copy small,
:root[data-brand="j"] .sidebar-account-button .account-chevron {
    color: var(--shell-muted) !important;
}

:root[data-brand="j"] .account-avatar {
    color: #ffffff;
}

/* Breadcrumb normally uses light-workspace tokens. In the J shell it belongs
   to the graphite topbar, so keep it explicitly on shell colours. */
:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-breadcrumb-link {
    color: var(--shell-muted);
}

:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-breadcrumb-link:hover,
:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-breadcrumb-link:focus-visible {
    background: #465259;
    color: #ffffff;
}

:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-breadcrumb-link.is-home {
    border-color: #657178;
    background: #465259;
    color: #ffffff;
}

:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-breadcrumb-current {
    color: #ffffff;
}

:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-breadcrumb-separator {
    color: #9fabad;
}

/* ---- Surface profile application refinements ---------------------------- */
:root[data-brand="j"] .home-nav-card-icon,
:root[data-brand="j"] .group-explorer-icon {
    border-radius: 0;
}

:root[data-brand="j"] .home-nav-card:hover,
:root[data-brand="j"] .home-nav-card:focus-visible,
:root[data-brand="j"] .group-explorer-card-open:hover,
:root[data-brand="j"] .group-explorer-card-open:focus-visible {
    border-color: var(--surface-card-border-hover);
    box-shadow: var(--surface-card-shadow-hover);
}

:root[data-brand="j"] .device-card::before {
    border-radius: 0;
}

/* ---- Public/auth: industrial geometry; layout/breakpoints are shared globally. */
:root[data-brand="j"] .public-home-body,
:root[data-brand="j"] .public-home {
    min-height: 100vh;
    min-height: 100dvh;
}


:root[data-brand="j"] .auth-body .auth-form input,
:root[data-brand="j"] .auth-info-box,
:root[data-brand="j"] .auth-info-box > span,
:root[data-brand="j"] .auth-back,
:root[data-brand="j"] .public-primary,
:root[data-brand="j"] .public-secondary {
    border-radius: 2px !important;
}

:root[data-brand="j"] .auth-brand-content h2,
:root[data-brand="j"] .public-hero-copy h1,
:root[data-brand="j"] .auth-card-heading h1,
:root[data-brand="j"] .home-dashboard-heading h1,
:root[data-brand="j"] .group-explorer-heading h1 {
    font-family: var(--brand-font-display);
    letter-spacing: -.01em;
}

/* Auth breakpoints are shared globally; brand J only supplies visual tokens. */
@media (min-width: 761px) and (max-height: 760px) {
    :root[data-brand="j"] .public-header {
        min-height: 70px;
    }

    :root[data-brand="j"] .public-hero {
        padding-top: 44px;
        padding-bottom: 50px;
    }
}

@media (max-width: 760px) {
    :root[data-brand="j"] .public-hero {
        grid-template-columns: 1fr;
        width: min(760px, calc(100% - 30px));
    }
}

@media (prefers-color-scheme: dark) {
    :root[data-brand="j"] {
        /* Keep the same topbar/sidebar hierarchy in DARK. */
        --sidebar-bg: #2d363b;
        --topbar-bg: #1b2023;
        --mobile-nav-bg: var(--topbar-bg);
        --mobile-nav-border: var(--topbar-border);
        --mobile-nav-text: var(--topbar-eyebrow);
        --mobile-nav-active-text: var(--topbar-title);
        --topbar-shadow: 0 5px 14px -9px rgba(0,0,0,.62);
        --topbar-workspace-shadow: linear-gradient(to bottom, rgba(0,0,0,.30) 0%, rgba(0,0,0,.12) 44%, rgba(0,0,0,0) 100%);
        --sidebar-nav-hover-bg: #384247;
        --sidebar-nav-active-bg: transparent;
        --sidebar-nav-active-text: #ffffff;
        --sidebar-nav-active-icon: var(--j-yellow);
        --sidebar-icon-raised-fill: color-mix(in srgb, var(--sidebar-bg) 84%, #ffffff 16%);
        --sidebar-icon-recessed-fill: color-mix(in srgb, var(--sidebar-bg) 94%, #000000 6%);
        --topbar-icon-raised-fill: color-mix(in srgb, var(--topbar-bg) 84%, #ffffff 16%);
        --topbar-icon-recessed-fill: color-mix(in srgb, var(--topbar-bg) 94%, #000000 6%);
        --popup-icon-raised-fill: color-mix(in srgb, var(--popup-surface-bg) 82%, #ffffff 18%);
        --popup-icon-recessed-fill: color-mix(in srgb, var(--popup-surface-bg) 94%, #000000 6%);

        /* Neutral workspace controls are small interactive surfaces, so DARK J
           may lift them independently from large cards. Cards keep their own
           calmer surface; only brightness is adjusted here, not hue. */
        --control-surface-lift: 6%;
        --control-surface-hover-lift: 8%;

        /* Mobile Home launcher tiles intentionally match the shell hamburger
           and search controls. Border stays only 2% lighter than the fill. */
        --launcher-control-bg: var(--topbar-surface-control-bg, var(--topbar-control-bg));
        --launcher-control-border: color-mix(in srgb, var(--launcher-control-bg) 98%, #ffffff 2%);

        --surface-card-bg: #181d20;
        --surface-card-border: #2f383d;
        --surface-card-border-hover: #4e5a60;
        --surface-card-shadow: 0 3px 12px rgba(0,0,0,.24);
        --surface-card-shadow-hover: 0 5px 16px rgba(0,0,0,.34);

        --surface-row-bg: #171c1f;
        --surface-row-border: #2d363b;
        --surface-row-border-hover: #4e5a60;
        --surface-row-shadow: none;
        --surface-row-shadow-hover: 0 3px 10px rgba(0,0,0,.26);

        --surface-panel-bg: #181d20;
        --surface-panel-border: #30393e;

        --device-card-header: #20272a;
        --device-card-header-2: #232b2e;
        --device-card-header-text: #f1f3f4;
        --device-card-header-muted: #a3adb1;
        --device-card-body: #181d20;
        --device-card-panel: #1d2427;
        --device-card-panel-border: #30393e;
        --device-card-text: #eef1f2;
        --device-card-muted: #98a3a8;
        --device-card-footer: #151a1c;
        --device-card-footer-border: #2b3337;
        --device-card-border: #2f383d;
        --device-card-border-hover: #4e5a60;
        --device-card-shadow: var(--surface-card-shadow);
        --device-card-shadow-hover: var(--surface-card-shadow-hover);

        --group-card-bg: #181d20;
        --group-card-border: #2f383d;
        --group-card-border-hover: #4e5a60;
        --group-card-icon-bg: #21282b;
        --group-card-icon-border: #343e43;
        --group-card-shadow: var(--surface-card-shadow);
        --group-card-shadow-hover: var(--surface-card-shadow-hover);

        --detail-surface: #101214;
        --detail-surface-soft: #14191b;
        --detail-surface-panel: #181d20;
        --detail-surface-alt: #1b2124;
        --detail-surface-hover: #232b2f;
        --detail-border: #30393e;
        --detail-border-soft: #262e32;
        --detail-border-strong: #4e5a60;
        --detail-text: #e7ebed;
        --detail-text-strong: #f2f4f5;
        --detail-muted: #929da2;
        --detail-muted-strong: #b9c2c6;
        --detail-kicker: #c4ccd0;
        --detail-head-bg: #181d20;
        --detail-meta-bg: #151a1c;
        --detail-meta-border: #2d363b;
        --detail-tree-line: #30393e;
        --detail-placeholder-bg: #14191b;
        --detail-placeholder-border: #30393e;
        --detail-placeholder-text: #929da2;
        --detail-shadow: 0 4px 14px rgba(0,0,0,.28);
        --detail-shadow-compact: 0 3px 10px rgba(0,0,0,.24);

        /* Shell remains a shell even in detail and stays independent from the
           darker content surfaces. */
        --detail-topbar-bg: #1b2023;
        --detail-topbar-border: #171c1f;
        --detail-topbar-text: #ffffff;
        --detail-topbar-muted: #bdc6ca;
        --detail-control-bg: #333d42;
        --detail-control-bg-hover: #404c52;
        --detail-control-border: #505d63;
        --detail-status-bg: #2d363b;
        --detail-status-border: #4b575d;
    }
}

/* v9.8.339 shell icon rules must outrank the legacy global icon-neutral policy. */
:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-icon-button,
:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-search-icon,
:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-context-icon,
:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .ui-icon-button {
    color: var(--shell-icon) !important;
}

:root[data-brand="j"] .sidebar-close {
    border-radius: 2px;
    background: #465259;
    color: var(--shell-icon);
}

:root[data-brand="j"] .sidebar-close:hover,
:root[data-brand="j"] .sidebar-close:focus-visible {
    background: #536067;
    color: #ffffff;
}

:root[data-brand="j"] .preview-logo {
    border-radius: 0;
    background: transparent url("/brands/j/mark-dark.svg") center / contain no-repeat;
    box-shadow: none;
}

@media (max-width: 760px) {
    :root[data-brand="j"] .device-share-modal {
        border-radius: 2px 2px 0 0;
    }
}

/* ========================================================================== */
/* 9_12_368 — Jung shell Actions menu contrast / lightweight view selection    */
/* ========================================================================== */
:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-shell-actions-menu {
    background: var(--popup-surface-bg) !important;
    color: var(--popup-surface-text) !important;
    border-color: var(--popup-surface-border) !important;
}

:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-shell-actions-menu .topbar-action-menu-heading {
    color: var(--popup-surface-muted) !important;
}

:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-shell-actions-menu .topbar-view-switch-menu button,
:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-shell-actions-menu .topbar-device-menu-item {
    color: var(--popup-surface-muted) !important;
}

:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-shell-actions-menu .topbar-view-switch-menu button {
    position: relative;
    padding-right: 34px;
}

:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-shell-actions-menu .topbar-view-switch-menu button.is-active {
    background: transparent !important;
    color: var(--popup-surface-text) !important;
    box-shadow: none !important;
    font-weight: var(--font-weight-semibold);
}

:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-shell-actions-menu .topbar-view-switch-menu button.is-active::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--j-yellow);
    transform: translateY(-50%);
}

:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-shell-actions-menu .topbar-view-switch-menu button:hover,
:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-shell-actions-menu .topbar-view-switch-menu button:focus-visible,
:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-shell-actions-menu .topbar-device-menu-item:hover,
:root[data-brand="j"] body:not(.bqs-kiosk-mode) .app-topbar .topbar-shell-actions-menu .topbar-device-menu-item:focus-visible {
    background: var(--popup-surface-hover) !important;
    color: var(--popup-surface-text) !important;
}

:root[data-brand="j"] .topbar-clipboard-badge {
    background: var(--j-yellow) !important;
    color: #171b1d !important;
}

