
.zzz-tab-nav {
    position: sticky;
    top: 85px;
    z-index: 100;
    background: var(--preset-color-dark, #2e2e33);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
@media (max-width: 1024px) {
    .zzz-tab-nav {
        top: 50px;
    }
}

.zzz-tab-nav__inner {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

.zzz-tab-btn {
    flex: 1;
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: none;
    font-size: 15px;
    font-family: inherit;
    font-weight: 700;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.zzz-tab-btn:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
}

.zzz-tab-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-bottom: 3px solid var(--agent-motif, #fbbf24);
}

.zzz-tab-panel {
    display: none;
}

.zzz-tab-panel.active {
    display: block;
    padding-bottom: 64px;
}

.zzz-tab-panel .zzz-section {
    scroll-margin-top: 64px;
}

.zzz-tab-panel .zzz-section h2 {
    scroll-margin-top: 64px;
}

.zzz-tab-panel > .zzz-container {
    padding-top: 24px;
}

.zzz-sidebar-nav {
    position: sticky;
    top: 140px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 16px 0;
}

.zzz-sidebar-nav__title {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted, #999);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    padding-left: 14px;
}

.zzz-sidebar-nav a {
    display: block;
    font-size: 13px;
    color: var(--color-text-secondary, #666);
    text-decoration: none;
    padding: 5px 0 5px 12px;
    border-left: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    line-height: 1.4;
}

.zzz-sidebar-nav a:hover {
    color: var(--color-text, #333);
}

.zzz-sidebar-nav a.is-active {
    color: var(--preset-color-dark, #2e2e33);
    border-left-color: var(--agent-motif, #786482);
    font-weight: 600;
}

.zzz-sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.zzz-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.zzz-tab-fab {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--agent-motif, #64748b);
    color: var(--agent-motif-font, #fff);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-items: center;
    justify-content: center;
}

.zzz-tab-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.zzz-tab-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zzz-tab-overlay--visible {
    display: block;
    opacity: 1;
}

.zzz-tab-drawer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: var(--color-bg, #fff);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.zzz-tab-drawer--open {
    transform: translateY(0);
}

.zzz-tab-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
}

.zzz-tab-drawer__title {
    font-weight: 700;
    font-size: 16px;
}

.zzz-tab-drawer__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-muted, #999);
    padding: 4px;
    line-height: 1;
}

.zzz-tab-drawer__close:hover {
    color: var(--color-text, #333);
}

.zzz-tab-drawer__body {
    padding: 12px 20px 24px;
    overflow-y: auto;
    max-height: calc(70vh - 60px);
    -webkit-overflow-scrolling: touch;
}

.zzz-tab-drawer__body a {
    display: block;
    font-size: 14px;
    color: var(--color-text-secondary, #666);
    text-decoration: none;
    padding: 8px 0 8px 12px;
    border-left: 2px solid transparent;
    line-height: 1.4;
}

.zzz-tab-drawer__body a:hover {
    color: var(--color-text, #333);
}

.zzz-tab-drawer__body a.is-active {
    color: var(--preset-color-dark, #2e2e33);
    border-left-color: var(--agent-motif, #786482);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .zzz-tab-btn {
        font-size: 14px;
        padding: 12px 4px;
    }

    .zzz-tab-fab {
        display: flex;
    }

    .zzz-tab-drawer {
        display: block;
    }

    .zzz-tab-panel .zzz-section {
        scroll-margin-top: 52px;
    }

    .zzz-tab-panel .zzz-section h2 {
        scroll-margin-top: 52px;
    }

    .zzz-sidebar-nav {
        top: 52px;
    }
}

@media (max-width: 600px) {
    .zzz-tab-btn {
        font-size: 13px;
        padding: 11px 4px;
    }
}
