/* R261102 DESKRAIL (g1, M2808): Desktop-Ansicht unter 600 px — rechte Konto-Rail eingeklappt als Avatar-Reiter unten links
   (Fuß der Navigations-Rail), Inhalt bekommt die 72 px zurück; aufgeklappte Rails als Schublade mit Scrim
   (Tipp daneben schließt, nie beide offen). Über 600 px greift nichts (pixelgleich). */
@media (max-width: 599.98px) {
    :root { --po-shell-rail-right: 0px; }
    /* eingeklappte Konto-Rail = Avatar-Reiter unten links im freien Fuß der Navigations-Rail (oben rechts lag er über „Spracheingabe“) */
    html body #top_menu_sidebar_right_wrapper.stub:not(.sidebar-expanded) {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: auto !important;
        width: 58px !important;
        height: 64px !important;
        max-height: 64px !important;
        overflow: hidden !important;
        border-left: 0 !important;
        border-top: 1px solid var(--po-border, rgba(15, 23, 42, 0.08)) !important;
        box-shadow: none !important;
    }
    html body #top_menu_sidebar_left_wrapper.stub:not(.sidebar-expanded) #top_menu_sidebar_left {
        padding-bottom: 64px !important;
        box-sizing: border-box;
    }
    html body #top_menu_sidebar_right_wrapper.stub:not(.sidebar-expanded) #po_sidebar_avatar_box {
        cursor: pointer;
    }
    html body #paperoffice_ai_suite_wrapper > .row > .cell.po-app-center-column {
        padding-right: 0 !important;
    }
    html body #top_menu_sidebar_left_wrapper.stub.sidebar-expanded,
    html body #top_menu_sidebar_right_wrapper.stub.sidebar-expanded {
        max-width: calc(100vw - 48px) !important;
        z-index: 1007 !important;
    }
    #po_deskrail_scrim {
        position: fixed;
        inset: 0;
        z-index: 1006;
        background: rgba(15, 23, 42, 0.32);
        touch-action: none;
    }
    #po_deskrail_scrim[hidden] { display: none !important; }
}
@media (min-width: 600px) {
    #po_deskrail_scrim { display: none !important; }
}
