/* Workspace navigation is shared; business layouts and mutations remain in their modules. */
.rzm-bottom-nav[data-navigation-size="4"] { --rzm-nav-count: 4; }
body.rzm-mobile-enabled [data-rzm-mobile-shell] .rzm-app-sheet {
    --app-ink: #17365f; --app-muted: #4b6486; --app-line: #d4e0f4;
    --app-surface: #fff; --app-card: #f5f8ff; --app-accent: #095bd6; --app-icon: #e9f0ff;
    background: #fff !important; opacity: 1 !important; animation: none !important;
}
body.rzm-mobile-enabled.rzm-page-home [data-rzm-mobile-shell] .rzm-app-sheet {
    --app-ink: #17365f; --app-muted: #4b6486; --app-line: #d4e0f4;
    --app-surface: #fff; --app-card: #f5f8ff; --app-accent: #095bd6; --app-icon: #e9f0ff;
}
.rzm-workspace-choices { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.rzm-workspace-choices button {
    border: 1px solid #ccd9ee; border-radius: 7px; padding: 9px 12px;
    background: #fff; color: #304e77; font: inherit; font-size: 13px; cursor: pointer;
}
.rzm-workspace-choices button[aria-pressed="true"] { color: #fff; border-color: #095bd6; background: #095bd6; }
.rzm-directory-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 14px 12px; }
.rzm-directory-options > a,.rzm-directory-all { color: #095bd6; text-underline-offset: 3px; font-size: 13px; }
.rzm-directory-all { display: inline-block; margin-top: 10px; }
.rzm-keep-page { display: inline-flex; align-items: center; gap: 7px; padding: 7px 0; font-size: 13px; line-height: 1.4; color: #304e77; cursor: pointer; }
.rzm-keep-page input { margin: 0; width: 17px; height: 17px; accent-color: #095bd6; }
.rzm-drawer .rzm-keep-page { color: inherit; }
.rzm-page-home .rzm-drawer .rzm-keep-page { color: var(--home-text, #f5f8ff); }
.rzm-page-home .rzm-drawer-links [data-factory-workspace-link] small { color: var(--home-muted, #aebdd0); }
.rzm-page-home .rzm-drawer .rzm-directory-all { color: var(--home-mint, #63e6d2); }
.rzm-drawer-links [data-factory-workspace-link] { display: flex; justify-content: space-between; gap: 10px; }
.rzm-drawer-links [data-factory-workspace-link] small { color: #526581; font-size: 12px; }
.rzm-factory-scan { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #d0def5; border-radius: 9px; color: #205da5; background: #f5f8ff; }
.rzm-factory-scan svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.rzm-factory-scan:hover { background: #e5efff; }
.rzm-workspace-choices button:focus-visible,.rzm-factory-scan:focus-visible,.rzm-keep-page input:focus-visible,.rzm-directory-options a:focus-visible { outline: 2px solid #095bd6; outline-offset: 3px; }
@media (max-width: 760px) {
    .rzm-workspace-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
    .rzm-workspace-choices button { min-height: 44px; padding: 7px 4px; }
    .rzm-app-sheet .rzm-catalog-search input { min-height: 44px; font-size: 16px; }
    .rzm-keep-page { box-sizing: border-box; min-height: 44px; }
    .rzm-directory-options > a,.rzm-directory-all { display: inline-flex; align-items: center; min-height: 44px; }
    .rzm-drawer-head { grid-template-columns: 48px minmax(0,1fr) 44px; }
    .rzm-drawer-head button { width: 44px; height: 44px; }
    .rzm-directory-options { align-items: center; }
    .rzm-factory-scan { width: 36px; height: 36px; }
    html body.rzm-mobile-enabled > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-workbench-mobile-bar { grid-template-columns: 36px minmax(0,1fr) 36px 36px !important; gap: 6px !important; }
    html body.rzm-mobile-enabled > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-workbench-menu-button,
    html body.rzm-mobile-enabled > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-account-shortcut { width: 36px !important; height: 36px !important; }
    html body.rzm-mobile-enabled > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-mobile-home-brand > span { width: 30px !important; height: 34px !important; flex-basis: 30px !important; }
    html body.rzm-mobile-enabled > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-mobile-home-brand strong { font-size: 14px !important; }
    /* Business themes predate the scan action and may still force two columns.
       Keep all four controls in one row; the homepage owns its five-column theme toolbar. */
    html body.rzm-mobile-enabled:not(.rzm-page-home) > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-mobile-header.rzm-workbench-mobile-header > .rzm-workbench-mobile-bar {
        display: grid !important; grid-template-columns: 44px minmax(0,1fr) 44px 44px !important;
        align-items: center !important; gap: 6px !important;
    }
    html body.rzm-mobile-enabled:not(.rzm-page-home) > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-mobile-header.rzm-workbench-mobile-header > .rzm-workbench-mobile-bar > * { grid-row: 1 !important; }
    html body.rzm-mobile-enabled:not(.rzm-page-home) > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-mobile-header.rzm-workbench-mobile-header > .rzm-workbench-mobile-bar > .rzm-workbench-menu-button { display: grid !important; grid-column: 1 !important; }
    html body.rzm-mobile-enabled:not(.rzm-page-home) > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-mobile-header.rzm-workbench-mobile-header > .rzm-workbench-mobile-bar > .rzm-mobile-home-brand { grid-column: 2 !important; min-width: 0 !important; width: auto !important; max-width: none !important; gap: 6px !important; }
    html body.rzm-mobile-enabled:not(.rzm-page-home) > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-mobile-header.rzm-workbench-mobile-header > .rzm-workbench-mobile-bar > .rzm-mobile-home-brand strong { font-size: 14px !important; }
    html body.rzm-mobile-enabled:not(.rzm-page-home) > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-mobile-header.rzm-workbench-mobile-header > .rzm-workbench-mobile-bar > .rzm-factory-scan { grid-column: 3 !important; }
    html body.rzm-mobile-enabled:not(.rzm-page-home) > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-mobile-header.rzm-workbench-mobile-header > .rzm-workbench-mobile-bar > .rzm-account-shortcut { grid-column: 4 !important; }
    html body.rzm-mobile-enabled:not(.rzm-page-home) > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-mobile-header.rzm-workbench-mobile-header > .rzm-workbench-mobile-bar > :is(.rzm-workbench-menu-button,.rzm-factory-scan,.rzm-account-shortcut) { box-sizing: border-box; width: 44px !important; height: 44px !important; }
    html body.rzm-mobile-enabled:not(.rzm-page-home) > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-mobile-header.rzm-workbench-mobile-header > .rzm-workbench-mobile-bar > .rzm-mobile-home-brand { min-height: 44px !important; }
}
/* The new role homepage uses the established light single-row chrome. */
html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] :is(.rzm-desktop-secondary.rzm-workbench-secondary,.rzm-context-tabs.rzm-workbench-context-tabs) { display: none !important; }
@media (min-width: 761px) {
    html body.rzm-mobile-enabled.rzm-factory-home { --rzm-desktop-shell-height: 76px !important; padding-top: 76px !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-desktop-header.rzm-workbench-desktop-header { height: 76px !important; background: #fff !important; border: 0 !important; box-shadow: 0 3px 15px rgba(27,55,92,.06) !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-desktop-primary { height: 76px !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-desktop-brand strong { color: #19395f !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] :is(.rzm-desktop-brand small,.rzm-desktop-account small) { display: none !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-unified-global-nav > :is(a,button) { color: #304e77 !important; background: transparent !important; border-radius: 12px !important; box-shadow: none !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-unified-global-nav > :is(a,button)::before { display: none !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-unified-global-nav > .is-active { color: #fff !important; background: #293e60 !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-unified-global-nav > :is(a,button):hover { background: #e7efff !important; color: #15549f !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-desktop-account { color: #304e77 !important; background: transparent !important; border: 0 !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-desktop-account strong { color: #304e77 !important; }
}
@media (max-width: 760px) {
    html body.rzm-mobile-enabled.rzm-factory-home { --rzm-mobile-top-height: 62px !important; padding-top: calc(62px + env(safe-area-inset-top)) !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-mobile-header.rzm-workbench-mobile-header { min-height: calc(62px + env(safe-area-inset-top)) !important; color: #19395f !important; background: #fff !important; border-bottom: 1px solid #d7e3f3 !important; box-shadow: none !important; backdrop-filter: none !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-workbench-menu-button { background: #edf4ff !important; color: #205da5 !important; border-color: #d3e2f8 !important; box-shadow: none !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-mobile-home-brand strong { color: #19395f !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-mobile-home-brand small { color: #536b88 !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-bottom-nav.rzm-unified-bottom-nav { background: #fff !important; border-top-color: #d7e3f3 !important; box-shadow: 0 -3px 12px rgba(27,55,92,.06) !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-bottom-nav.rzm-unified-bottom-nav > :is(a,button) { color: #526a86 !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-bottom-nav.rzm-unified-bottom-nav > .is-active { color: #095bd6 !important; }
    html body.rzm-mobile-enabled.rzm-factory-home > .rzm-mobile-shell[data-rzm-mobile-shell] .rzm-bottom-nav.rzm-unified-bottom-nav > .is-active > span { color: #095bd6 !important; background: #e7efff !important; box-shadow: none !important; }
}
