.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #cbd5e1; border-radius: 24px; transition: .25s; }
.toggle-slider:before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .25s; }
.toggle-switch input:checked + .toggle-slider { background: #7c3aed; }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

.sa-nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding-right: 8px;
    transition: color 0.2s;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    width: 100%;
    text-align: left;
}
.sa-nav-group-toggle:focus-visible {
    outline: 2px solid rgba(167,139,250,0.7);
    outline-offset: -2px;
    border-radius: 4px;
}
.sa-nav-group-toggle:hover {
    color: rgba(255,255,255,0.8);
}
.sa-nav-group-chevron {
    font-size: 10px;
    transition: transform 0.25s ease;
    color: rgba(255,255,255,0.3);
}
.sa-nav-group-toggle.expanded .sa-nav-group-chevron {
    transform: rotate(90deg);
    color: rgba(167,139,250,0.7);
}
.sa-nav-group-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    opacity: 0;
}
.sa-nav-group-children.expanded {
    max-height: 200px;
    opacity: 1;
}
.sa-nav-item.sa-nav-child {
    padding-left: 28px;
    font-size: 13px;
}

@media (max-width: 480px) {
    .sa-tab-bar {
        gap: 2px;
        padding: 6px 8px;
        border-radius: 8px;
    }
    .sa-tab {
        font-size: 11px;
        padding: 6px 10px;
        gap: 4px;
    }
    .sa-tab-icon {
        font-size: 12px;
    }
}
