/* LBL Cloud — полноширинный каркас, сайдбар, навигация */

/* Убрать пустую колонку справа (скрытый ld-rail) */
body.ld-ui-gdrive .ld-shell {
    grid-template-columns: var(--ld-sidebar-w) minmax(0, 1fr) !important;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch;
}

body.ld-ui-gdrive .ld-rail {
    display: none !important;
}

/* Сайдбар на всю высоту окна */
body.ld-ui-gdrive .ld-sidebar.ld-panel--nav {
    position: sticky;
    top: 0;
    align-self: stretch;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    max-height: none !important;
    overflow-x: hidden;
    overflow-y: auto;
}

body.ld-ui-gdrive .ld-panel--nav::before {
    display: none !important;
}

/* Основная колонка без «полосы» по краю */
body.ld-ui-gdrive .ld-main-col {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--ld-surface) !important;
}

body.ld-ui-gdrive .ld-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

body.ld-ui-gdrive .ld-workspace {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 28px 48px;
    box-sizing: border-box;
}

body.ld-ui-gdrive .ld-workspace.is-profile-mode {
    padding: 16px 32px 48px;
}

body.ld-ui-gdrive .ld-profile {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* Навигация — ровные пункты без «кривых» скосов */
body.ld-ui-gdrive .ld-nav {
    flex: 1;
    min-height: 0;
    padding: 4px 0;
}

body.ld-ui-gdrive .ld-nav__item {
    margin-right: 0 !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: none !important;
    gap: 12px;
    min-height: 44px;
}

body.ld-ui-gdrive .ld-nav__item::before,
body.ld-ui-gdrive .ld-nav__item::after {
    display: none !important;
}

body.ld-ui-gdrive .ld-nav__item.is-active {
    background: var(--ld-active-bg) !important;
    color: var(--ld-dark) !important;
    font-weight: 600;
}

body.ld-ui-gdrive .ld-nav__icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    border-radius: 0 !important;
    background: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

body.ld-ui-gdrive .ld-nav__item.is-active .ld-nav__icon {
    color: var(--ld) !important;
    background: none !important;
}

body.ld-ui-gdrive .ld-nav__label {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

body.ld-ui-gdrive .ld-sidebar__foot {
    flex-shrink: 0;
    margin-top: auto;
}

/* Панель загрузок — без отступа под rail */
.ld-ui-gdrive .ld-panel--uploads {
    right: 16px !important;
}
