html,
body {
    height: 100%;
    background-color: var(--ds-bg);
    color: var(--ds-text);
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Кабинет: единый кап 1440 по центру, как весь сайт */
.cab-wrap {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--ds-space-6) clamp(16px, 4vw, 48px);
}

/* Левое меню места (собирается JS из _tabs: .biz-shell > .biz-side + .biz-content) */
.biz-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: var(--ds-space-5);
    align-items: start;
}
.biz-side {
    position: sticky;
    top: 84px;
    background: var(--ds-surface);
    border: var(--ds-border-hairline) solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    padding: var(--ds-space-2);
}
.biz-side .nav-link {
    color: var(--ds-muted);
    font-size: var(--ds-font-sm);
    font-weight: var(--ds-weight-medium);
    padding: var(--ds-space-2) var(--ds-space-3);
    border-radius: var(--ds-radius-sm);
    white-space: nowrap;
}
.biz-side .nav-link:hover {
    color: var(--ds-heading);
    background: var(--ds-accent-050);
}
.biz-side .nav-link.active {
    color: var(--ds-accent);
    background: var(--ds-accent-050);
    font-weight: var(--ds-weight-semibold);
}
.biz-content { min-width: 0; }
@media (max-width: 991px) {
    .biz-shell { grid-template-columns: 1fr; }
    .biz-side { position: static; padding: var(--ds-space-2); }
    .biz-side ul {
        flex-direction: row !important;
        overflow-x: auto;
        scrollbar-width: thin;
        gap: var(--ds-space-1);
    }
    .biz-side .nav-item { flex: 0 0 auto; }
}
