.navbar .navbar-wrapper--guest,
.navbar-wrapper--guest > .navbar-brand {
    min-width: 0;
}

.navbar-wrapper--guest > .navbar-brand { max-width: 100%; }
.navbar .navbar-guest-actions { gap: 8px; }

.navbar .guest-auth-link,
.navbar .guest-auth-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.navbar .guest-auth-link {
    color: var(--text-primary) !important;
    background: transparent;
}

.navbar .guest-auth-link:hover { background: rgba(255, 255, 255, .06); }

.navbar .guest-auth-cta {
    color: #fff !important;
    background: #2563eb;
}

.navbar .guest-auth-cta:hover { background: #1d4ed8; }

.sidebar[data-color="purple"] .cabinet-guest-menu li.active > a {
    background: var(--accent-primary-hover) !important;
}

.sidebar .cabinet-guest-menu .nav-link { min-height: 44px; }
.sidebar .cabinet-guest-menu p { white-space: normal; }

.navbar :is(.guest-auth-link, .guest-auth-cta):focus-visible,
#cabinet-sidebar .cabinet-guest-menu .nav-link:focus-visible {
    outline: 2px solid var(--border-focus) !important;
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-wrapper--guest { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .navbar :is(.guest-auth-link, .guest-auth-cta) { transition: none; }
}
