.coach-nav-toggle {
    position: fixed;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.coach-menu-button,
.coach-sidebar-close {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--tf-line);
    border-radius: 999px;
    background: rgb(16 30 53 / 0.82);
    color: var(--tf-text);
    cursor: pointer;
}

.coach-menu-button svg,
.coach-sidebar-close svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}

.coach-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    background: rgb(2 6 18 / 0.68);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    backdrop-filter: blur(8px);
}

.has-coach-sidebar .app-sidebar {
    z-index: 50;
    display: flex;
    flex-direction: column;
    max-width: calc(100vw - 44px);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.coach-nav-toggle:checked ~ .app-sidebar {
    transform: translateX(0);
}

.coach-nav-toggle:checked ~ .coach-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.trackflow-shell:has(.coach-nav-toggle:checked) {
    overflow: hidden;
}

.app-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .has-coach-sidebar .app-sidebar {
        max-width: none;
        transform: none;
    }

    .coach-menu-button,
    .coach-sidebar-close,
    .coach-sidebar-backdrop {
        display: none;
    }
}

@media (max-width: 520px) {
    .coach-menu-button {
        width: 2.35rem;
        height: 2.35rem;
    }
}
