/* ClubOS 8.14.0-A.3 — shell mobile consolidé, activé uniquement par feature flag. */
:root {
    --clubos-mobile-header-height: 56px;
    --clubos-mobile-search-height: 58px;
    --clubos-mobile-nav-height: 64px;
    --clubos-mobile-player-height: 0px;
    --clubos-mobile-keyboard-offset: 0px;
    --clubos-mobile-safe-top: env(safe-area-inset-top, 0px);
    --clubos-mobile-safe-right: env(safe-area-inset-right, 0px);
    --clubos-mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
    --clubos-mobile-safe-left: env(safe-area-inset-left, 0px);
}

.clubos-mobile-shell { display: none; }

@media (max-width: 767.98px) {
    body.clubos-mobile-active {
        min-width: 0;
        overscroll-behavior-y: contain;
        padding-bottom: 0 !important;
    }

    body.clubos-mobile-active #site-shell-header { display: none !important; }

    body.clubos-mobile-active #site-shell-main {
        width: 100%;
        max-width: none;
        min-width: 0;
        padding-top: calc(var(--clubos-mobile-safe-top) + var(--clubos-mobile-header-height) + .75rem) !important;
        padding-right: max(.72rem, var(--clubos-mobile-safe-right)) !important;
        padding-bottom: calc(var(--clubos-mobile-nav-height) + var(--clubos-mobile-player-height) + var(--clubos-mobile-safe-bottom) + 1rem) !important;
        padding-left: max(.72rem, var(--clubos-mobile-safe-left)) !important;
    }

    body.clubos-mobile-active.clubos-mobile-search-open #site-shell-main {
        padding-top: calc(var(--clubos-mobile-safe-top) + var(--clubos-mobile-header-height) + var(--clubos-mobile-search-height) + .75rem) !important;
    }

    body.clubos-mobile-active #site-shell-content,
    body.clubos-mobile-active #site-shell-root,
    body.clubos-mobile-active .site-shell { min-width: 0; max-width: 100%; }

    body.clubos-mobile-active .clubos-mobile-shell {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 2100;
        pointer-events: none;
    }

    .clubos-mobile-topbar,
    .clubos-mobile-search,
    .clubos-mobile-nav,
    .clubos-mobile-lab { pointer-events: auto; }

    .clubos-mobile-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: calc(var(--clubos-mobile-header-height) + var(--clubos-mobile-safe-top));
        padding: var(--clubos-mobile-safe-top) max(.55rem, var(--clubos-mobile-safe-right)) 0 max(.55rem, var(--clubos-mobile-safe-left));
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        align-items: center;
        gap: .25rem;
        background: color-mix(in srgb, var(--site-surface) 94%, transparent);
        color: var(--site-text);
        border-bottom: 1px solid color-mix(in srgb, var(--site-border) 82%, transparent);
        box-shadow: 0 8px 24px rgba(15, 23, 42, .1);
        backdrop-filter: blur(16px) saturate(1.25);
    }

    .clubos-mobile-icon-button {
        width: 44px;
        height: 44px;
        display: inline-grid;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: inherit;
    }
    .clubos-mobile-icon-button:hover,
    .clubos-mobile-icon-button:focus-visible { background: color-mix(in srgb, var(--site-surface-2) 82%, transparent); outline: none; }
    .clubos-mobile-icon-button svg { width: 22px; height: 22px; }

    .clubos-mobile-brand {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .55rem;
        color: inherit;
        text-decoration: none;
    }
    .clubos-mobile-brand-mark {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: linear-gradient(135deg, var(--site-accent), color-mix(in srgb, var(--site-accent) 45%, #6d5dfc));
        color: var(--site-accent-contrast);
        font-size: .72rem;
        font-weight: 900;
        letter-spacing: -.04em;
    }
    .clubos-mobile-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; font-weight: 800; }

    .clubos-mobile-search {
        position: fixed;
        top: calc(var(--clubos-mobile-safe-top) + var(--clubos-mobile-header-height));
        left: 0;
        right: 0;
        min-height: var(--clubos-mobile-search-height);
        padding: .5rem max(.7rem, var(--clubos-mobile-safe-right)) .55rem max(.7rem, var(--clubos-mobile-safe-left));
        background: var(--site-surface);
        border-bottom: 1px solid var(--site-border);
        box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
    }
    .clubos-mobile-search[hidden] { display: none !important; }
    .clubos-mobile-search-field { width: 100% !important; max-width: none !important; }
    .clubos-mobile-search .site-topbar-search-input { width: 100%; min-height: 42px; }
    .clubos-mobile-search .site-global-search-dropdown { position: fixed; top: calc(var(--clubos-mobile-safe-top) + var(--clubos-mobile-header-height) + var(--clubos-mobile-search-height)); left: .65rem; right: .65rem; width: auto; max-height: min(65dvh, 540px); overflow: auto; }

    .clubos-mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: var(--clubos-mobile-keyboard-offset);
        min-height: calc(var(--clubos-mobile-nav-height) + var(--clubos-mobile-safe-bottom));
        padding: .25rem max(.25rem, var(--clubos-mobile-safe-right)) var(--clubos-mobile-safe-bottom) max(.25rem, var(--clubos-mobile-safe-left));
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        align-items: stretch;
        background: color-mix(in srgb, var(--site-surface) 96%, transparent);
        border-top: 1px solid color-mix(in srgb, var(--site-border) 84%, transparent);
        box-shadow: 0 -10px 30px rgba(15, 23, 42, .12);
        backdrop-filter: blur(18px) saturate(1.3);
        transition: bottom .12s ease;
    }

    .clubos-mobile-nav-item {
        position: relative;
        min-width: 0;
        min-height: 56px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .16rem;
        padding: .3rem .18rem;
        border: 0;
        border-radius: .9rem;
        background: transparent;
        color: var(--site-text-muted);
        text-decoration: none;
        font-size: .67rem;
        font-weight: 700;
        line-height: 1.05;
    }
    .clubos-mobile-nav-item[hidden] { display: none !important; }
    .clubos-mobile-nav-item svg { width: 22px; height: 22px; }
    .clubos-mobile-nav-item.is-active { color: var(--site-accent); background: color-mix(in srgb, var(--site-accent) 12%, transparent); }
    .clubos-mobile-nav-create svg { width: 30px; height: 30px; margin-top: -.28rem; }
    .clubos-mobile-badge { position: absolute; top: .2rem; left: calc(50% + .38rem); min-width: 1.08rem; height: 1.08rem; padding: 0 .22rem; display: grid; place-items: center; border-radius: 999px; background: #dc2626; color: white; font-size: .61rem; font-weight: 900; box-shadow: 0 0 0 2px var(--site-surface); }
    .clubos-mobile-badge[hidden] { display: none !important; }

    body.clubos-mobile-active .global-music-player {
        left: 0 !important;
        right: 0 !important;
        bottom: calc(var(--clubos-mobile-nav-height) + var(--clubos-mobile-safe-bottom) + var(--clubos-mobile-keyboard-offset)) !important;
        width: 100% !important;
        max-width: none !important;
        border-radius: 0 !important;
        transition: bottom .12s ease;
    }

    body.clubos-mobile-active .club-ui-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: calc(var(--club-ui-layer-menu) - 1);
        background: rgba(15, 23, 42, .52);
        backdrop-filter: blur(2px);
    }
    body.clubos-mobile-active .club-ui-menu.club-ui-menu-mobile-sheet {
        position: fixed !important;
        left: max(.5rem, var(--clubos-mobile-safe-left)) !important;
        right: max(.5rem, var(--clubos-mobile-safe-right)) !important;
        top: auto !important;
        bottom: calc(var(--clubos-mobile-nav-height) + var(--clubos-mobile-safe-bottom) + .5rem) !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: min(72dvh, 620px);
        overflow: auto;
        padding: .5rem !important;
        border-radius: 1.2rem !important;
        box-shadow: 0 28px 80px rgba(15, 23, 42, .36) !important;
        animation: clubos-mobile-sheet-in .18s ease-out both;
    }
    body.clubos-mobile-active .club-ui-menu.club-ui-menu-mobile-sheet [role="menuitem"],
    body.clubos-mobile-active .club-ui-menu.club-ui-menu-mobile-sheet > button,
    body.clubos-mobile-active .club-ui-menu.club-ui-menu-mobile-sheet > a { min-height: 52px; }

    body.clubos-mobile-active .club-ui-dialog {
        width: 100vw;
        max-width: none;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
    }
    body.clubos-mobile-active .club-ui-dialog-shell { height: 100%; max-height: 100%; padding-top: var(--clubos-mobile-safe-top); padding-bottom: var(--clubos-mobile-safe-bottom); }

    /* Les confirmations courtes (ex. corbeille) restent de vraies petites modales. */
    body.clubos-mobile-active .club-ui-dialog.club-ui-dialog-compact {
        width: min(calc(100vw - 1.5rem), 400px);
        max-width: 400px;
        height: fit-content !important;
        min-height: 0 !important;
        max-height: min(66dvh, 430px);
        margin: auto;
        border-radius: 1.05rem;
    }
    body.clubos-mobile-active .club-ui-dialog.club-ui-dialog-compact .club-ui-dialog-shell {
        height: fit-content !important;
        min-height: 0 !important;
        max-height: inherit;
        padding-top: 0;
        padding-bottom: 0;
    }
    body.clubos-mobile-active .club-ui-dialog.club-ui-dialog-compact .club-ui-dialog-body {
        flex: 0 1 auto;
        min-height: 0;
        padding-top: .9rem;
        padding-bottom: .9rem;
    }
    body.clubos-mobile-active .modal-dialog {
        width: 100%;
        max-width: none;
        min-height: 100dvh;
        margin: 0;
    }
    body.clubos-mobile-active .modal-content { min-height: 100dvh; border: 0; border-radius: 0; }

    /*
     * Fallback Bootstrap des confirmations courtes.
     * ClubUI.confirm sait déjà utiliser .club-ui-dialog-compact, mais lorsque
     * ClubUI n'est pas encore chargé la modale #blogPostCardActionConfirmModal
     * doit elle aussi échapper à la règle plein écran mobile globale.
     */
    body.clubos-mobile-active #blogPostCardActionConfirmModal.blog-post-action-confirm-compact {
        padding: max(.75rem, var(--clubos-mobile-safe-top)) max(.65rem, var(--clubos-mobile-safe-right)) max(.75rem, var(--clubos-mobile-safe-bottom)) max(.65rem, var(--clubos-mobile-safe-left));
    }
    body.clubos-mobile-active #blogPostCardActionConfirmModal.blog-post-action-confirm-compact.show {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    body.clubos-mobile-active #blogPostCardActionConfirmModal.blog-post-action-confirm-compact .modal-dialog {
        width: min(calc(100vw - 1.5rem), 400px) !important;
        max-width: 400px !important;
        min-height: 0 !important;
        margin: auto !important;
    }
    body.clubos-mobile-active #blogPostCardActionConfirmModal.blog-post-action-confirm-compact .modal-content {
        min-height: 0 !important;
        height: fit-content !important;
        max-height: min(66dvh, 430px) !important;
        overflow: hidden;
        border: 1px solid var(--site-border, #d7deea) !important;
        border-radius: 1.05rem !important;
        box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
    }
    body.clubos-mobile-active #blogPostCardActionConfirmModal.blog-post-action-confirm-compact .modal-body {
        overflow: auto;
    }

    .clubos-mobile-lab {
        position: fixed;
        left: max(.55rem, var(--clubos-mobile-safe-left));
        right: max(.55rem, var(--clubos-mobile-safe-right));
        bottom: calc(var(--clubos-mobile-nav-height) + var(--clubos-mobile-player-height) + var(--clubos-mobile-safe-bottom) + .65rem);
        display: grid;
        gap: .45rem;
        padding: .65rem .75rem;
        border: 1px dashed color-mix(in srgb, var(--site-accent) 68%, var(--site-border));
        border-radius: .95rem;
        background: color-mix(in srgb, var(--site-surface) 94%, transparent);
        color: var(--site-text);
        box-shadow: 0 18px 48px rgba(15, 23, 42, .2);
        font-size: .72rem;
        backdrop-filter: blur(12px);
    }
    .clubos-mobile-lab[hidden] { display: none !important; }
    .clubos-mobile-lab > div:first-child { display: flex; justify-content: space-between; gap: .5rem; }
    .clubos-mobile-lab-actions { display: flex; gap: .4rem; overflow-x: auto; }
    .clubos-mobile-lab-actions button { min-height: 36px; border: 1px solid var(--site-border); border-radius: 999px; padding: .3rem .65rem; background: var(--site-surface-2); color: var(--site-text); white-space: nowrap; }

    @keyframes clubos-mobile-sheet-in {
        from { transform: translateY(24px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .clubos-mobile-nav,
    body.clubos-mobile-active .global-music-player,
    body.clubos-mobile-active .club-ui-menu.club-ui-menu-mobile-sheet { transition: none !important; animation: none !important; }
}


/* ClubOS 8.14.0-A.1 — première peinture mobile sans flash du shell desktop. */
@media (max-width: 767.98px) {
    html.clubos-mobile-prerender,
    html.clubos-mobile-prerender body {
        min-width: 0 !important;
        overflow-x: hidden !important;
        background: var(--site-bg, #eef3f9);
    }
    html.clubos-mobile-prerender #site-shell-header {
        display: none !important;
    }
    html.clubos-mobile-prerender #site-shell-main {
        visibility: hidden !important;
    }
    html.clubos-mobile-prerender body::before {
        content: "AB   ClubOS";
        position: fixed;
        z-index: 2090;
        inset: 0 0 auto 0;
        height: calc(var(--clubos-mobile-header-height) + var(--clubos-mobile-safe-top));
        box-sizing: border-box;
        padding: calc(var(--clubos-mobile-safe-top) + 18px) 1rem 0;
        border-bottom: 1px solid rgba(148, 163, 184, .35);
        background: var(--site-surface, #fff);
        color: var(--site-text, #172033);
        font: 800 1rem/1 system-ui, sans-serif;
        text-align: center;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    }
    html.clubos-mobile-prerender body::after {
        content: "Chargement de ClubOS…";
        position: fixed;
        z-index: 2090;
        left: 50%;
        top: 45%;
        transform: translate(-50%, -50%);
        width: min(270px, calc(100vw - 2rem));
        box-sizing: border-box;
        padding: 3.2rem 1rem 1rem;
        border: 1px solid rgba(148, 163, 184, .3);
        border-radius: 1.1rem;
        background:
            radial-gradient(circle at 50% 1.55rem, transparent 0 10px, var(--site-accent, #2563eb) 11px 14px, transparent 15px),
            var(--site-surface, #fff);
        color: var(--site-text, #172033);
        font: 700 .92rem/1.4 system-ui, sans-serif;
        text-align: center;
        box-shadow: 0 20px 55px rgba(15, 23, 42, .16);
    }

    body.clubos-mobile-active {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }
    body.clubos-mobile-active #site-shell-root,
    body.clubos-mobile-active #site-shell-main,
    body.clubos-mobile-active #site-shell-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: clip;
    }

    .clubos-mobile-topbar {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        box-sizing: border-box;
        max-width: 100dvw;
    }
    .clubos-mobile-topbar-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-width: 44px;
        gap: 0;
    }
    .clubos-mobile-account-button.is-owner-profile {
        color: var(--site-accent, #2563eb);
        background: color-mix(in srgb, var(--site-accent, #2563eb) 12%, transparent);
    }

    .clubos-mobile-nav {
        left: 0 !important;
        right: auto !important;
        width: 100dvw !important;
        max-width: 100dvw !important;
        box-sizing: border-box !important;
        grid-auto-flow: row !important;
        grid-auto-columns: auto !important;
        grid-template-columns: repeat(var(--clubos-mobile-nav-count, 5), minmax(0, 1fr)) !important;
        overflow: hidden !important;
        contain: layout paint;
    }
    .clubos-mobile-nav-item {
        width: 100%;
        max-width: 100%;
        min-width: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
    }
    .clubos-mobile-nav-label {
        display: block;
        width: 100%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
    }
    .clubos-mobile-nav-item.is-pending {
        color: var(--site-accent, #2563eb);
        background: color-mix(in srgb, var(--site-accent, #2563eb) 16%, transparent);
    }

    .clubos-mobile-loading {
        position: fixed;
        z-index: 2080;
        top: calc(var(--clubos-mobile-safe-top) + var(--clubos-mobile-header-height));
        right: 0;
        bottom: calc(var(--clubos-mobile-nav-height) + var(--clubos-mobile-player-height) + var(--clubos-mobile-safe-bottom) + var(--clubos-mobile-keyboard-offset));
        left: 0;
        display: grid;
        place-items: center;
        padding: 1rem;
        pointer-events: auto;
        background: color-mix(in srgb, var(--site-bg, #eef3f9) 86%, transparent);
        backdrop-filter: blur(5px);
    }
    .clubos-mobile-loading[hidden] { display: none !important; }
    .clubos-mobile-loading-progress {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        overflow: hidden;
        background: color-mix(in srgb, var(--site-accent, #2563eb) 14%, transparent);
    }
    .clubos-mobile-loading-progress span {
        display: block;
        width: 42%;
        height: 100%;
        background: var(--site-accent, #2563eb);
        animation: clubos-mobile-progress 1.05s ease-in-out infinite;
    }
    .clubos-mobile-loading-card {
        width: min(300px, calc(100vw - 2rem));
        display: grid;
        justify-items: center;
        gap: .45rem;
        padding: 1.2rem;
        border: 1px solid color-mix(in srgb, var(--site-border, #d7dee8) 88%, transparent);
        border-radius: 1.2rem;
        background: var(--site-surface, #fff);
        color: var(--site-text, #172033);
        text-align: center;
        box-shadow: 0 24px 64px rgba(15, 23, 42, .2);
    }
    .clubos-mobile-loading-card > span:not(.clubos-mobile-loading-spinner) {
        color: var(--site-text-muted, #667085);
        font-size: .8rem;
    }
    .clubos-mobile-loading-spinner {
        width: 34px;
        height: 34px;
        border: 3px solid color-mix(in srgb, var(--site-accent, #2563eb) 20%, transparent);
        border-top-color: var(--site-accent, #2563eb);
        border-radius: 50%;
        animation: clubos-mobile-spin .72s linear infinite;
    }
    .clubos-mobile-loading-skeleton {
        width: 100%;
        display: grid;
        gap: .38rem;
        margin-top: .35rem;
    }
    .clubos-mobile-loading-skeleton i {
        display: block;
        height: 9px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--site-surface-2, #edf1f7), color-mix(in srgb, var(--site-surface-2, #edf1f7) 45%, #fff), var(--site-surface-2, #edf1f7));
        background-size: 210% 100%;
        animation: clubos-mobile-shimmer 1.1s linear infinite;
    }
    .clubos-mobile-loading-skeleton i:nth-child(2) { width: 84%; }
    .clubos-mobile-loading-skeleton i:nth-child(3) { width: 62%; }
    body.clubos-mobile-navigation-error .clubos-mobile-loading-spinner {
        animation: none;
        border-color: #dc2626;
    }

    .clubos-mobile-account-menu-item {
        width: 100%;
        min-height: 56px;
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        gap: .65rem;
        padding: .55rem .65rem !important;
        border-radius: .8rem;
        color: inherit;
        text-decoration: none;
    }
    .clubos-mobile-account-menu-item:hover,
    .clubos-mobile-account-menu-item:focus-visible {
        background: color-mix(in srgb, var(--site-surface-2, #edf1f7) 86%, transparent);
        outline: none;
    }
    .clubos-mobile-account-menu-item.is-danger { color: #b42318; }
    .clubos-mobile-account-menu-icon {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: var(--site-surface-2, #edf1f7);
    }
    .clubos-mobile-account-menu-icon svg { width: 21px; height: 21px; }
    .clubos-mobile-account-menu-item strong,
    .clubos-mobile-account-menu-item small { display: block; }
    .clubos-mobile-account-menu-item small {
        margin-top: .08rem;
        color: var(--site-text-muted, #667085);
        font-size: .75rem;
    }

    .clubos-mobile-lab-toggle {
        position: fixed;
        z-index: 2120;
        right: max(.55rem, var(--clubos-mobile-safe-right));
        bottom: calc(var(--clubos-mobile-nav-height) + var(--clubos-mobile-player-height) + var(--clubos-mobile-safe-bottom) + .65rem);
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px dashed var(--site-accent, #2563eb);
        border-radius: 999px;
        background: var(--site-surface, #fff);
        color: var(--site-accent, #2563eb);
        font-size: .61rem;
        font-weight: 900;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
        pointer-events: auto;
    }
    .clubos-mobile-lab-toggle[hidden] { display: none !important; }
    .clubos-mobile-lab {
        z-index: 2130;
        max-height: min(48dvh, 340px);
        overflow: auto;
    }
    .clubos-mobile-lab > div:first-child button {
        width: 30px;
        height: 30px;
        border: 0;
        border-radius: 999px;
        background: var(--site-surface-2, #edf1f7);
        color: inherit;
        font-size: 1.15rem;
        line-height: 1;
    }

    /* Accès immédiat à Mon compte : correction responsive minimale, pas refonte métier. */
    body.clubos-mobile-active .account-settings-shell {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: .75rem !important;
        width: 100%;
        min-width: 0;
    }
    body.clubos-mobile-active .account-settings-sidebar-card {
        padding: .7rem !important;
        border-radius: .9rem !important;
    }
    body.clubos-mobile-active .account-settings-title {
        font-size: 1.25rem !important;
        line-height: 1.15 !important;
    }
    body.clubos-mobile-active .account-settings-title br { display: none; }
    body.clubos-mobile-active .account-settings-subtitle,
    body.clubos-mobile-active .account-settings-nav-help,
    body.clubos-mobile-active .account-settings-nav-text span {
        display: none !important;
    }
    body.clubos-mobile-active .account-settings-search { margin: .55rem 0 .7rem !important; }
    body.clubos-mobile-active .account-settings-nav-group,
    body.clubos-mobile-active .account-settings-nav-group + .account-settings-nav-group {
        margin: .55rem 0 0 !important;
        padding: .55rem 0 0 !important;
    }
    body.clubos-mobile-active .account-settings-nav-group .vstack {
        display: flex !important;
        flex-direction: row !important;
        gap: .38rem !important;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
        padding: .15rem 0 .35rem;
    }
    body.clubos-mobile-active .account-settings-nav-btn {
        flex: 0 0 auto;
        width: auto !important;
        min-height: 42px;
        display: inline-flex !important;
        align-items: center;
        gap: .35rem !important;
        padding: .5rem .68rem !important;
        border: 1px solid var(--site-border, #d7dee8) !important;
        border-radius: 999px !important;
        white-space: nowrap;
    }
    body.clubos-mobile-active .account-settings-nav-label {
        font-size: .82rem !important;
        margin-bottom: .15rem !important;
    }
    body.clubos-mobile-active .account-settings-nav-text strong { font-size: .8rem !important; }
    body.clubos-mobile-active .account-settings-content,
    body.clubos-mobile-active .account-settings-panel,
    body.clubos-mobile-active .account-settings-panel .card,
    body.clubos-mobile-active .account-settings-panel .card-body {
        min-width: 0 !important;
        max-width: 100% !important;
    }
    body.clubos-mobile-active .account-settings-hero,
    body.clubos-mobile-active .account-settings-summary,
    body.clubos-mobile-active .account-settings-panel .card-body {
        padding-left: .8rem !important;
        padding-right: .8rem !important;
    }
    body.clubos-mobile-active .account-settings-section-title,
    body.clubos-mobile-active .account-settings-hero h1,
    body.clubos-mobile-active .account-settings-hero h2 {
        font-size: 1.15rem !important;
    }
    body.clubos-mobile-active .account-settings-content .table-responsive { overflow-x: auto; }
    body.clubos-mobile-active .account-settings-content input,
    body.clubos-mobile-active .account-settings-content select,
    body.clubos-mobile-active .account-settings-content textarea {
        max-width: 100%;
        font-size: 16px;
    }
}

@media (max-width: 359.98px) {
    .clubos-mobile-nav {
        padding-right: max(.08rem, var(--clubos-mobile-safe-right)) !important;
        padding-left: max(.08rem, var(--clubos-mobile-safe-left)) !important;
    }
    .clubos-mobile-nav-item {
        min-height: 55px;
        gap: .08rem;
        padding: .2rem .02rem;
        border-radius: .65rem;
        font-size: .58rem;
    }
    .clubos-mobile-nav-item svg { width: 20px; height: 20px; }
    .clubos-mobile-nav-create svg { width: 27px; height: 27px; }
    .clubos-mobile-topbar {
        padding-right: max(.2rem, var(--clubos-mobile-safe-right));
        padding-left: max(.2rem, var(--clubos-mobile-safe-left));
    }
    .clubos-mobile-icon-button { width: 40px; height: 40px; }
    .clubos-mobile-brand { gap: .32rem; }
    .clubos-mobile-brand-mark { width: 31px; height: 31px; flex-basis: 31px; }
}

@keyframes clubos-mobile-progress {
    from { transform: translateX(-120%); }
    to { transform: translateX(340%); }
}
@keyframes clubos-mobile-spin { to { transform: rotate(360deg); } }
@keyframes clubos-mobile-shimmer { to { background-position: -210% 0; } }

@media (prefers-reduced-motion: reduce) {
    .clubos-mobile-loading-progress span,
    .clubos-mobile-loading-spinner,
    .clubos-mobile-loading-skeleton i { animation: none !important; }
}

/* ClubOS 8.14.0-A.3 — mini-player mobile compact et commandes contextuelles. */
@media (max-width: 767.98px) {
    .clubos-mobile-nav-create [data-mobile-create-icon] {
        display: inline-grid;
        place-items: center;
        line-height: 0;
    }

    body.clubos-mobile-active .global-music-player .clubos-mobile-player-compact {
        display: none;
    }

    body.clubos-mobile-active .global-music-player.is-clubos-mobile-compact {
        min-height: 58px !important;
        height: 58px !important;
        overflow: hidden !important;
        border-top: 1px solid color-mix(in srgb, var(--site-border, #d6dde8) 84%, transparent) !important;
        background: color-mix(in srgb, var(--site-surface, #fff) 96%, transparent) !important;
        color: var(--site-text, #172033) !important;
        box-shadow: 0 -8px 22px rgba(15, 23, 42, .14) !important;
        backdrop-filter: blur(18px) saturate(1.25);
    }

    body.clubos-mobile-active .global-music-player.is-clubos-mobile-compact > .global-music-player__inner,
    body.clubos-mobile-active .global-music-player.is-clubos-mobile-compact > .clubos-mobile-player-expanded-actions {
        display: none !important;
    }

    body.clubos-mobile-active .global-music-player.is-clubos-mobile-compact .clubos-mobile-player-compact {
        width: 100%;
        height: 58px;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 42px 38px 38px;
        align-items: center;
        gap: .32rem;
        padding: .35rem max(.38rem, var(--clubos-mobile-safe-right)) .35rem max(.48rem, var(--clubos-mobile-safe-left));
        box-sizing: border-box;
    }

    .clubos-mobile-player-compact > img {
        width: 42px;
        height: 42px;
        display: block;
        border-radius: .62rem;
        object-fit: cover;
        background: var(--site-surface-2, #edf1f7);
    }
    .clubos-mobile-player-compact > img[hidden] { display: none !important; }

    .clubos-mobile-player-now {
        min-width: 0;
        height: 44px;
        display: grid;
        align-content: center;
        gap: .06rem;
        padding: 0 .15rem;
        border: 0;
        background: transparent;
        color: inherit;
        text-align: left;
        overflow: hidden;
    }
    .clubos-mobile-player-now > span,
    .clubos-mobile-player-now > small {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .clubos-mobile-player-now > span { font-size: .84rem; font-weight: 800; }
    .clubos-mobile-player-now > small { color: var(--site-text-muted, #667085); font-size: .69rem; }

    .clubos-mobile-player-control,
    .clubos-mobile-player-expanded-actions button {
        width: 38px;
        height: 38px;
        display: inline-grid;
        place-items: center;
        padding: 0;
        border: 1px solid color-mix(in srgb, var(--site-border, #d6dde8) 92%, transparent);
        border-radius: 999px;
        background: var(--site-surface, #fff);
        color: var(--site-text, #172033);
        font-size: 1rem;
        font-weight: 800;
        line-height: 1;
    }
    .clubos-mobile-player-control.is-play { color: var(--site-accent, #2563eb); }
    .clubos-mobile-player-control.is-close { color: #b42318; }

    body.clubos-mobile-active .global-music-player:not(.is-clubos-mobile-compact) .clubos-mobile-player-compact {
        display: none !important;
    }

    .clubos-mobile-player-expanded-actions {
        position: absolute;
        top: .38rem;
        right: max(.38rem, var(--clubos-mobile-safe-right));
        z-index: 8;
        display: flex;
        gap: .32rem;
    }
    .clubos-mobile-player-expanded-actions button:last-child { color: #b42318; }

    body.clubos-mobile-active .global-music-player[hidden] { display: none !important; }
}

@media (max-width: 359.98px) {
    body.clubos-mobile-active .global-music-player.is-clubos-mobile-compact .clubos-mobile-player-compact {
        grid-template-columns: 38px minmax(0, 1fr) 38px 34px 34px;
        gap: .18rem;
        padding-left: .28rem;
        padding-right: .2rem;
    }
    .clubos-mobile-player-compact > img { width: 38px; height: 38px; }
    .clubos-mobile-player-control { width: 34px; height: 34px; }
    .clubos-mobile-player-now > small { display: none; }
}

/* ClubOS 8.14.0-A.4 — panneau de compte autonome, identique sur Accueil, Profil et Mon compte. */
@media (max-width: 767.98px) {
    .clubos-mobile-account-sheet {
        position: fixed;
        inset: 0;
        z-index: 80;
        display: grid;
        align-items: end;
        pointer-events: auto;
    }

    .clubos-mobile-account-sheet[hidden] {
        display: none !important;
    }

    .clubos-mobile-account-backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(15, 23, 42, .5);
        backdrop-filter: blur(3px);
    }

    .clubos-mobile-account-panel {
        position: relative;
        z-index: 1;
        width: 100%;
        max-height: min(78dvh, 620px);
        overflow: auto;
        padding: .45rem max(.55rem, var(--clubos-mobile-safe-right)) max(.65rem, var(--clubos-mobile-safe-bottom)) max(.55rem, var(--clubos-mobile-safe-left));
        border-radius: 1.35rem 1.35rem 0 0;
        background: var(--site-surface, #fff);
        color: var(--site-text, #111827);
        box-shadow: 0 -24px 70px rgba(15, 23, 42, .28);
        animation: clubos-mobile-account-in .18s ease-out both;
    }

    .clubos-mobile-account-panel::before {
        content: "";
        display: block;
        width: 42px;
        height: 4px;
        margin: .05rem auto .28rem;
        border-radius: 999px;
        background: color-mix(in srgb, var(--site-text-muted, #64748b) 38%, transparent);
    }

    .clubos-mobile-account-panel > header {
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .1rem .15rem .4rem .55rem;
    }

    .clubos-mobile-account-panel > header div {
        display: grid;
        line-height: 1.12;
    }

    .clubos-mobile-account-panel > header span {
        color: var(--site-text-muted, #64748b);
        font-size: .7rem;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .clubos-mobile-account-panel > header strong {
        font-size: 1.08rem;
    }

    .clubos-mobile-account-items {
        display: grid;
        overflow: hidden;
        border: 1px solid var(--site-border, #dbe3ef);
        border-radius: 1rem;
        background: var(--site-surface, #fff);
    }

    .clubos-mobile-account-items .clubos-mobile-account-menu-item {
        min-height: 58px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .clubos-mobile-account-items .clubos-mobile-account-menu-item + .clubos-mobile-account-menu-item {
        border-top: 1px solid var(--site-border, #dbe3ef);
    }

    body.clubos-mobile-account-open {
        overflow: hidden;
    }

    @keyframes clubos-mobile-account-in {
        from { transform: translateY(22px); opacity: .72; }
        to { transform: translateY(0); opacity: 1; }
    }
}

@media (prefers-reduced-motion: reduce) {
    .clubos-mobile-account-panel { animation: none !important; }
}

/* ClubOS 8.14.0-A.5 — remontée du mur et panneau Apparence natif. */
@media (max-width: 767.98px) {
    .clubos-mobile-scroll-top {
        position: fixed;
        z-index: 2145;
        right: max(.78rem, var(--clubos-mobile-safe-right));
        bottom: calc(var(--clubos-mobile-nav-height) + var(--clubos-mobile-player-height) + var(--clubos-mobile-safe-bottom) + .85rem);
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid color-mix(in srgb, var(--site-border, #d6dde8) 88%, transparent);
        border-radius: 999px;
        background: color-mix(in srgb, var(--site-surface, #fff) 94%, transparent);
        color: var(--site-accent, #2563eb);
        box-shadow: 0 10px 28px rgba(15, 23, 42, .2);
        backdrop-filter: blur(14px) saturate(1.2);
        pointer-events: auto;
        opacity: 0;
        transform: translateY(10px) scale(.92);
        transition: opacity .16s ease, transform .16s ease, bottom .18s ease;
    }
    .clubos-mobile-scroll-top[hidden] { display: none !important; }
    .clubos-mobile-scroll-top.is-visible { display: grid; opacity: 1; transform: translateY(0) scale(1); pointer-events: auto !important; }
    .clubos-mobile-scroll-top.has-lab-toggle {
        bottom: calc(var(--clubos-mobile-nav-height) + var(--clubos-mobile-player-height) + var(--clubos-mobile-safe-bottom) + 4.15rem);
    }
    .clubos-mobile-scroll-top svg { width: 22px; height: 22px; }
    .clubos-mobile-scroll-top:focus-visible { outline: 3px solid color-mix(in srgb, var(--site-accent, #2563eb) 30%, transparent); outline-offset: 2px; }

    .clubos-mobile-account-panel [data-mobile-account-main] > header,
    .clubos-mobile-account-panel .clubos-mobile-appearance-view > header {
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .65rem;
        padding: .1rem .15rem .4rem .55rem;
    }
    .clubos-mobile-account-panel .clubos-mobile-appearance-view > header {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        padding-left: .05rem;
    }
    .clubos-mobile-account-panel [data-mobile-account-main] > header div,
    .clubos-mobile-account-panel .clubos-mobile-appearance-view > header div {
        min-width: 0;
        display: grid;
        line-height: 1.12;
    }
    .clubos-mobile-account-panel [data-mobile-account-main] > header span,
    .clubos-mobile-account-panel .clubos-mobile-appearance-view > header span {
        color: var(--site-text-muted, #64748b);
        font-size: .7rem;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }
    .clubos-mobile-account-panel [data-mobile-account-main] > header strong,
    .clubos-mobile-account-panel .clubos-mobile-appearance-view > header strong { font-size: 1.08rem; }

    button.clubos-mobile-account-menu-item {
        width: 100%;
        appearance: none;
        text-align: left;
        font: inherit;
    }

    .clubos-mobile-theme-choices {
        display: grid;
        overflow: hidden;
        border: 1px solid var(--site-border, #dbe3ef);
        border-radius: 1rem;
        background: var(--site-surface, #fff);
    }
    .clubos-mobile-theme-choices > button {
        min-width: 0;
        min-height: 72px;
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr) 28px;
        align-items: center;
        gap: .7rem;
        padding: .62rem .75rem;
        border: 0;
        background: transparent;
        color: var(--site-text, #172033);
        text-align: left;
    }
    .clubos-mobile-theme-choices > button + button { border-top: 1px solid var(--site-border, #dbe3ef); }
    .clubos-mobile-theme-choices > button:focus-visible,
    .clubos-mobile-theme-choices > button:hover { background: color-mix(in srgb, var(--site-accent, #2563eb) 7%, transparent); outline: none; }
    .clubos-mobile-theme-choices > button > span:nth-child(2) { min-width: 0; display: grid; gap: .14rem; }
    .clubos-mobile-theme-choices strong { font-size: .94rem; }
    .clubos-mobile-theme-choices small { color: var(--site-text-muted, #64748b); font-size: .76rem; line-height: 1.3; }
    .clubos-mobile-theme-preview {
        width: 48px;
        height: 36px;
        display: block;
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(100, 116, 139, .34);
        border-radius: .68rem;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
    }
    .clubos-mobile-theme-preview i { position: absolute; inset: 7px 7px auto; height: 5px; border-radius: 999px; background: currentColor; opacity: .55; }
    .clubos-mobile-theme-preview.is-light { background: #fff; color: #64748b; }
    .clubos-mobile-theme-preview.is-dark { background: #111827; color: #cbd5e1; }
    .clubos-mobile-theme-preview.is-auto { background: linear-gradient(90deg, #fff 0 50%, #111827 50% 100%); color: #64748b; }
    .clubos-mobile-theme-check { width: 24px; height: 24px; display: grid; place-items: center; color: transparent; }
    .clubos-mobile-theme-check svg { width: 21px; height: 21px; }
    .clubos-mobile-theme-choices > button.is-selected .clubos-mobile-theme-check { color: var(--site-accent, #2563eb); }
    .clubos-mobile-theme-choices > button.is-selected { background: color-mix(in srgb, var(--site-accent, #2563eb) 9%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
    .clubos-mobile-scroll-top { transition: none !important; }
}

/* ClubOS 8.14.0-A.5.2 — actions du compte réellement tactiles et thème nuit complet. */
@media (max-width: 767.98px) {
    .clubos-mobile-account-menu-item {
        appearance: none;
        border: 0;
        background: transparent;
        font: inherit;
        text-align: left;
        touch-action: manipulation;
        cursor: pointer;
    }
    .clubos-mobile-account-menu-item:disabled {
        opacity: .58;
        cursor: progress;
    }
    .clubos-mobile-account-panel .clubos-mobile-icon-button,
    .clubos-mobile-account-panel [data-mobile-account-close] {
        color: var(--site-text, #172033);
        background: transparent;
    }
    :root[data-theme="dark"] .clubos-mobile-account-panel,
    :root[data-theme="dark"] .clubos-mobile-account-items,
    :root[data-theme="dark"] .clubos-mobile-theme-choices {
        background: #111a2c;
        color: #e6ebf5;
        border-color: #30415d;
    }
    :root[data-theme="dark"] .clubos-mobile-account-menu-item,
    :root[data-theme="dark"] button.clubos-mobile-account-menu-item {
        background: transparent;
        color: #e6ebf5;
    }
    :root[data-theme="dark"] .clubos-mobile-account-menu-item:hover,
    :root[data-theme="dark"] .clubos-mobile-account-menu-item:focus-visible {
        background: #1a2941;
    }
    :root[data-theme="dark"] .clubos-mobile-account-menu-icon {
        background: #1a253b;
        color: #dce7f8;
    }
    :root[data-theme="dark"] .clubos-mobile-account-menu-item small,
    :root[data-theme="dark"] .clubos-mobile-account-panel header span,
    :root[data-theme="dark"] .clubos-mobile-theme-choices small {
        color: #9fb0c9;
    }
    :root[data-theme="dark"] .clubos-mobile-account-panel .clubos-mobile-icon-button,
    :root[data-theme="dark"] .clubos-mobile-account-panel [data-mobile-account-close] {
        color: #f1f5fb;
        background: #17243a;
        border-color: #405475;
    }
    :root[data-theme="dark"] .clubos-mobile-theme-choices > button {
        color: #e6ebf5;
        background: transparent;
    }
}


/* ClubOS 8.14.0-A.5.4 — le bouton de remontée doit rester au-dessus du LAB et du player. */
@media (max-width: 767.98px) {
    body.clubos-mobile-active .clubos-mobile-scroll-top {
        visibility: visible;
        isolation: isolate;
    }
    body.clubos-mobile-active.profile-mobile-section-open .clubos-mobile-scroll-top,
    body.clubos-mobile-active.profile-hover-card-sheet-open .clubos-mobile-scroll-top,
    body.clubos-mobile-active.clubos-mobile-account-open .clubos-mobile-scroll-top,
    body.clubos-mobile-active.clubos-mobile-navigating .clubos-mobile-scroll-top {
        display: none !important;
    }
}

/* ClubOS 8.14.0-B.1 — parité mobile publique : notifications et accès aux offres. */
@media (max-width: 767.98px) {
    .clubos-mobile-notifications-button {
        position: relative;
        flex: 0 0 44px;
    }
    .clubos-mobile-topbar-badge {
        position: absolute;
        top: 4px;
        right: 2px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        display: inline-grid;
        place-items: center;
        box-sizing: border-box;
        border: 2px solid var(--site-surface, #fff);
        border-radius: 999px;
        background: #dc2626;
        color: #fff;
        font-size: .58rem;
        font-weight: 900;
        line-height: 1;
    }
    .clubos-mobile-topbar-badge[hidden] { display: none !important; }
    .clubos-mobile-account-menu-item.has-unread .clubos-mobile-account-menu-icon {
        color: var(--site-accent, #2563eb);
        box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--site-accent, #2563eb) 36%, transparent);
    }
    .clubos-mobile-account-menu-item.has-unread::after {
        content: "";
        width: 8px;
        height: 8px;
        margin-left: auto;
        border-radius: 999px;
        background: #dc2626;
        box-shadow: 0 0 0 3px color-mix(in srgb, #dc2626 16%, transparent);
    }
    .clubos-mobile-account-menu-item.has-unread {
        grid-template-columns: 42px minmax(0, 1fr) 12px;
    }

    /* La rubrique Notifications devient un véritable écran de téléphone. */
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .account-settings-hero {
        display: none !important;
    }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .account-panel-stack,
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .account-notifications-card,
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .card-body {
        width: 100%;
        min-width: 0;
        margin: 0 !important;
    }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .account-notifications-card {
        border-radius: 1rem !important;
        overflow: visible;
    }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .card-body {
        padding: .75rem !important;
    }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .account-notifications-head {
        align-items: center;
        gap: .65rem;
        margin-bottom: .65rem;
    }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .account-notifications-title {
        margin: 0;
        font-size: 1.08rem;
    }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .account-notifications-subtitle {
        display: none;
    }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-toolbar {
        display: grid;
        gap: .55rem;
    }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-status-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: .25rem;
        overflow: visible;
    }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-status {
        min-width: 0;
        min-height: 40px;
        padding: .4rem .25rem;
        font-size: .73rem;
        line-height: 1.1;
        white-space: normal;
    }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .4rem;
    }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-actions .btn {
        min-width: 0;
        min-height: 42px;
        padding: .4rem;
        white-space: normal;
        line-height: 1.1;
    }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-categories {
        width: calc(100% + 1.5rem);
        margin: .65rem -.75rem .5rem;
        padding: .1rem .75rem .45rem;
        display: flex;
        gap: .35rem;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline proximity;
        scrollbar-width: thin;
    }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-category {
        flex: 0 0 auto;
        min-height: 38px;
        scroll-snap-align: start;
        white-space: nowrap;
    }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-item {
        grid-template-columns: 46px minmax(0, 1fr) 36px;
        gap: .55rem;
        padding: .72rem .15rem;
    }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-item-message {
        font-size: .88rem;
        line-height: 1.35;
    }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-pagination {
        position: sticky;
        bottom: calc(var(--clubos-mobile-nav-height) + var(--clubos-mobile-safe-bottom) + .25rem);
        z-index: 2;
        padding: .55rem;
        border: 1px solid var(--site-border, #d6dde8);
        border-radius: .85rem;
        background: color-mix(in srgb, var(--site-surface, #fff) 96%, transparent);
        box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
        backdrop-filter: blur(14px);
    }
    body.clubos-mobile-active .notifications-preferences-dialog[open] {
        position: fixed;
        inset: 0;
        width: 100dvw;
        max-width: none;
        height: 100dvh;
        max-height: none;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: var(--site-surface, #fff);
        color: var(--site-text, #172033);
    }
    body.clubos-mobile-active .notifications-preferences-shell {
        min-height: 100dvh;
        max-height: 100dvh;
        padding-top: var(--clubos-mobile-safe-top);
        padding-bottom: var(--clubos-mobile-safe-bottom);
        border-radius: 0;
    }
}

@media (max-width: 359.98px) {
    .clubos-mobile-topbar-actions .clubos-mobile-icon-button {
        width: 38px;
        height: 40px;
    }
    .clubos-mobile-notifications-button { flex-basis: 38px; }
    .clubos-mobile-topbar-badge { top: 3px; right: 0; }
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-status {
        font-size: .68rem;
    }
}

/* ClubOS 8.14.0-B.1.1 — flux mobile de notifications, inspiré des listes natives. */
@media (max-width: 767.98px) {
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .account-settings-hero,
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .account-notifications-head,
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-categories {
        display: none !important;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .account-panel-stack,
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .account-notifications-inbox,
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .account-notifications-inbox .card-body {
        width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none !important;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .account-notifications-inbox .card-body {
        display: block;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-toolbar {
        position: sticky;
        top: 0;
        z-index: 5;
        display: grid;
        gap: .45rem;
        padding: .55rem .65rem .5rem;
        border-bottom: 1px solid var(--bs-border-color, #d8dee8);
        background: color-mix(in srgb, var(--bs-body-bg, #fff) 94%, transparent);
        backdrop-filter: blur(14px);
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-status-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .18rem;
        width: 100%;
        padding: .18rem;
        border: 1px solid var(--bs-border-color, #d8dee8);
        border-radius: .8rem;
        background: var(--bs-secondary-bg, #edf1f7);
        overflow: visible;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-status {
        min-width: 0;
        min-height: 2.35rem;
        padding: .35rem .2rem;
        border: 0;
        border-radius: .62rem;
        background: transparent;
        color: var(--bs-secondary-color, #657086);
        font-size: .72rem;
        line-height: 1.05;
        white-space: normal;
        box-shadow: none;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-status.is-active {
        background: var(--bs-body-bg, #fff);
        color: var(--bs-body-color, #182133);
        box-shadow: 0 .16rem .55rem rgba(16, 32, 58, .11);
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 2.65rem 2.65rem;
        gap: .35rem;
        width: 100%;
        margin: 0;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-mobile-filter-button {
        display: flex;
        align-items: center;
        gap: .45rem;
        min-width: 0;
        min-height: 2.65rem;
        padding: .45rem .7rem;
        border: 1px solid var(--bs-border-color, #d8dee8);
        border-radius: .75rem;
        background: var(--bs-body-bg, #fff);
        color: var(--bs-body-color, #182133);
        font: inherit;
        font-size: .78rem;
        font-weight: 700;
        text-align: left;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-mobile-filter-button span:last-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-utility {
        display: inline-grid;
        place-items: center;
        min-width: 0;
        width: 2.65rem;
        height: 2.65rem;
        padding: 0;
        border-radius: .75rem;
        font-size: 1rem;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-utility-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .account-notifications-state {
        min-height: 0;
        padding: .35rem .75rem 0;
        font-size: .76rem;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-list {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0 0 calc(var(--clubos-mobile-nav-height) + var(--clubos-mobile-safe-bottom) + .5rem);
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-item {
        display: grid;
        grid-template-columns: 3.35rem minmax(0, 1fr) 2.25rem;
        gap: .62rem;
        align-items: start;
        width: 100%;
        min-height: 5rem;
        padding: .72rem .55rem .72rem .7rem;
        border: 0;
        border-bottom: 1px solid var(--bs-border-color, #d8dee8);
        border-radius: 0;
        background: var(--bs-body-bg, #fff);
        box-shadow: none;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-item:hover,
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-item:focus-within {
        border-color: var(--bs-border-color, #d8dee8);
        box-shadow: none;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-item.is-unread {
        background: color-mix(in srgb, var(--bs-primary, #0d6efd) 9%, var(--bs-body-bg, #fff));
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-item.is-unread::before {
        display: none;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-actor-stack {
        min-width: 3.2rem;
        padding: 0;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-actor-stack img,
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-actor-fallback,
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-system-avatar {
        width: 3.15rem;
        height: 3.15rem;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-category-icon {
        right: -.12rem;
        bottom: -.12rem;
        width: 1.45rem;
        height: 1.45rem;
        font-size: .72rem;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-item-main {
        min-width: 0;
        padding: 0;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-item-top {
        min-height: .85rem;
        margin-bottom: .1rem;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-category-label {
        padding: 0;
        min-height: 0;
        background: transparent;
        font-size: .66rem;
        letter-spacing: .02em;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-group-count {
        min-width: 1.25rem;
        height: 1.25rem;
        min-height: 1.25rem;
        padding: 0 .3rem;
        font-size: .66rem;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-unread-dot {
        margin-left: auto;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-item-message {
        margin: .08rem 0 .28rem;
        color: var(--bs-body-color, #182133);
        font-size: .91rem;
        line-height: 1.32;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-item.is-unread .notifications-inbox-item-message {
        font-weight: 690;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-item-meta {
        gap: .28rem;
        color: var(--bs-secondary-color, #657086);
        font-size: .7rem;
        line-height: 1.25;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-item-menu-wrap {
        position: static;
        align-self: start;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-item-menu-button {
        width: 2.15rem;
        height: 2.15rem;
        font-size: 1rem;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-item-menu {
        display: none !important;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-pagination {
        position: static;
        display: grid;
        grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
        gap: .45rem;
        padding: .65rem .75rem calc(var(--clubos-mobile-nav-height) + var(--clubos-mobile-safe-bottom) + .65rem);
        border-top: 1px solid var(--bs-border-color, #d8dee8);
        background: var(--bs-body-bg, #fff);
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-pagination .btn {
        width: 2.5rem;
        min-width: 0;
        overflow: hidden;
        padding: 0;
        text-indent: -999px;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-pagination .btn::after {
        display: grid;
        place-items: center;
        height: 100%;
        text-indent: 0;
        content: '‹';
        font-size: 1.4rem;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-inbox-pagination .btn[data-notification-page-action="next"]::after {
        content: '›';
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-filter-sheet,
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-action-sheet {
        width: min(100%, 38rem);
        max-width: 100%;
        max-height: min(82dvh, 46rem);
        margin: auto 0 0;
        border-radius: 1.25rem 1.25rem 0 0;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-sheet-handle {
        display: block;
    }

    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-filter-options,
    body.clubos-mobile-active [data-account-tab-panel="notifications"] .notifications-action-list {
        padding-bottom: calc(.8rem + env(safe-area-inset-bottom, 0px));
    }
}


/* ClubOS 8.14.0-B.2.5 — mini-player musique mobile unifié. */
@media (max-width: 767.98px) {
    body.clubos-mobile-active .global-music-player.is-clubos-mobile-compact {
        min-height: 64px !important;
        height: 64px !important;
        border-top-color: color-mix(in srgb, var(--site-border, #d6dde8) 68%, transparent) !important;
        background: color-mix(in srgb, var(--site-surface, #fff) 98%, transparent) !important;
        box-shadow: 0 -7px 20px rgba(15, 23, 42, .11) !important;
    }

    body.clubos-mobile-active .global-music-player.is-clubos-mobile-compact .clubos-mobile-player-compact {
        position: relative;
        height: 64px;
        grid-template-columns: 44px minmax(0, 1fr) 44px 40px 36px;
        gap: .28rem;
        padding-top: .45rem;
        padding-bottom: .32rem;
    }

    .clubos-mobile-player-progress {
        position: absolute;
        inset: 0 0 auto;
        height: 2px;
        overflow: hidden;
        background: color-mix(in srgb, var(--site-border, #d6dde8) 55%, transparent);
        pointer-events: none;
    }

    .clubos-mobile-player-progress > span {
        display: block;
        width: 100%;
        height: 100%;
        background: var(--site-accent, #0f8278);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 120ms linear;
    }

    .clubos-mobile-player-compact > img {
        width: 44px;
        height: 44px;
        border-radius: .58rem;
    }

    .clubos-mobile-player-control,
    .clubos-mobile-player-expanded-actions button {
        border-color: transparent;
        background: transparent;
        color: var(--site-text, #172033);
        box-shadow: none;
    }

    .clubos-mobile-player-control:focus-visible,
    .clubos-mobile-player-expanded-actions button:focus-visible {
        outline: 2px solid color-mix(in srgb, var(--site-accent, #0f8278) 65%, #fff);
        outline-offset: 1px;
    }

    .clubos-mobile-player-control.is-play {
        background: color-mix(in srgb, var(--site-accent, #0f8278) 12%, transparent);
        color: var(--site-accent, #0f8278);
    }

    .clubos-mobile-player-control.is-close,
    .clubos-mobile-player-expanded-actions button:last-child {
        color: var(--site-text-muted, #667085);
    }

    .clubos-mobile-player-svg {
        display: block;
        width: 1.2rem;
        height: 1.2rem;
        fill: currentColor;
        pointer-events: none;
    }

    .clubos-mobile-player-control.is-play .clubos-mobile-player-svg {
        width: 1.35rem;
        height: 1.35rem;
    }
}

@media (max-width: 359.98px) {
    body.clubos-mobile-active .global-music-player.is-clubos-mobile-compact .clubos-mobile-player-compact {
        grid-template-columns: 40px minmax(0, 1fr) 40px 36px 34px;
        gap: .14rem;
    }

    .clubos-mobile-player-compact > img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
    .clubos-mobile-player-progress > span {
        transition: none !important;
    }
}

/* ClubOS 8.14.0-B.3 — rail du player derrière les panneaux contextuels, téléphone uniquement. */
@media (max-width: 767.98px) {
    body.clubos-mobile-active .global-music-player:not(.is-clubos-mobile-compact) > .global-music-player__inner {
        padding-right: 3.35rem !important;
        box-sizing: border-box !important;
    }

    body.clubos-mobile-active .global-music-player:not(.is-clubos-mobile-compact) > .clubos-mobile-player-expanded-actions {
        position: absolute;
        top: .38rem;
        right: max(.32rem, var(--clubos-mobile-safe-right));
        z-index: 8;
        width: 2.7rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .34rem;
        pointer-events: auto;
    }

    body.clubos-mobile-active .global-music-player:not(.is-clubos-mobile-compact) > .clubos-mobile-player-expanded-actions button {
        width: 2.55rem;
        height: 2.55rem;
        min-width: 2.55rem;
        min-height: 2.55rem;
        border: 1px solid color-mix(in srgb, var(--site-border, #d6dde8) 72%, transparent);
        background: color-mix(in srgb, var(--site-surface, #fff) 94%, transparent);
        color: var(--site-text-muted, #667085);
        box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
        touch-action: manipulation;
    }

    body.clubos-mobile-active .global-music-player:not(.is-clubos-mobile-compact) > .clubos-mobile-player-expanded-actions .is-close {
        order: 1;
    }

    body.clubos-mobile-active .global-music-player:not(.is-clubos-mobile-compact) > .clubos-mobile-player-expanded-actions .is-collapse {
        order: 2;
    }
}

@media (max-width: 359.98px) {
    body.clubos-mobile-active .global-music-player:not(.is-clubos-mobile-compact) > .global-music-player__inner {
        padding-right: 3rem !important;
    }

    body.clubos-mobile-active .global-music-player:not(.is-clubos-mobile-compact) > .clubos-mobile-player-expanded-actions {
        width: 2.45rem;
        right: .18rem;
    }

    body.clubos-mobile-active .global-music-player:not(.is-clubos-mobile-compact) > .clubos-mobile-player-expanded-actions button {
        width: 2.35rem;
        height: 2.35rem;
        min-width: 2.35rem;
        min-height: 2.35rem;
    }
}



/* ClubOS 8.14.0-B.3.3.1.1 — identité du compte, avatar de navigation et seek tactile du mini-player. */
@media (max-width: 767.98px) {
    .clubos-mobile-nav-avatar {
        width: 24px;
        height: 24px;
        display: inline-grid;
        place-items: center;
        overflow: hidden;
        border: 1px solid color-mix(in srgb, var(--site-border, #d6dde8) 78%, transparent);
        border-radius: 50%;
        background: var(--site-surface-2, #edf1f7);
        color: var(--site-text-muted, #667085);
    }
    .clubos-mobile-nav-avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }
    .clubos-mobile-nav-avatar svg { width: 17px !important; height: 17px !important; }
    .clubos-mobile-nav-item.is-active .clubos-mobile-nav-avatar {
        border-color: color-mix(in srgb, var(--site-accent, #0f8278) 72%, transparent);
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--site-accent, #0f8278) 16%, transparent);
    }

    .clubos-mobile-account-profile-item {
        grid-template-columns: 44px minmax(0, 1fr) minmax(4.8rem, auto) !important;
        gap: .68rem !important;
    }
    .clubos-mobile-account-avatar {
        overflow: hidden;
        border-radius: 50% !important;
    }
    .clubos-mobile-account-avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }
    .clubos-mobile-account-profile-copy { min-width: 0; }
    .clubos-mobile-account-profile-name {
        min-width: 0;
        max-width: 8.5rem;
        overflow: hidden;
        color: var(--site-text-muted, #667085);
        font-size: .72rem;
        font-weight: 800;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .clubos-mobile-player-progress {
        position: absolute;
        z-index: 3;
        inset: -8px 0 auto;
        height: 18px;
        display: block;
        overflow: visible;
        background: transparent;
        pointer-events: auto;
        touch-action: none;
    }
    .clubos-mobile-player-progress > input[type="range"] {
        --mobile-progress-ratio: 0;
        width: 100%;
        height: 18px;
        margin: 0;
        padding: 0;
        appearance: none;
        -webkit-appearance: none;
        border: 0;
        outline: 0;
        background: linear-gradient(to right,
            var(--site-accent, #0f8278) 0,
            var(--site-accent, #0f8278) calc(var(--mobile-progress-ratio) * 100%),
            color-mix(in srgb, var(--site-border, #d6dde8) 64%, transparent) calc(var(--mobile-progress-ratio) * 100%),
            color-mix(in srgb, var(--site-border, #d6dde8) 64%, transparent) 100%) center / 100% 3px no-repeat;
        cursor: pointer;
        touch-action: none;
    }
    .clubos-mobile-player-progress > input[type="range"]::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
        appearance: none;
        -webkit-appearance: none;
        border: 2px solid var(--site-surface, #fff);
        border-radius: 50%;
        background: var(--site-accent, #0f8278);
        box-shadow: 0 1px 5px rgba(15, 23, 42, .3);
    }
    .clubos-mobile-player-progress > input[type="range"]::-moz-range-thumb {
        width: 12px;
        height: 12px;
        border: 2px solid var(--site-surface, #fff);
        border-radius: 50%;
        background: var(--site-accent, #0f8278);
        box-shadow: 0 1px 5px rgba(15, 23, 42, .3);
    }
    .clubos-mobile-player-progress > input[type="range"]:focus-visible::-webkit-slider-thumb {
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-accent, #0f8278) 24%, transparent);
    }
    .clubos-mobile-player-progress > input[type="range"]:disabled { opacity: .45; cursor: default; }
}

/* Menu mobile : le voile floute uniquement la page, jamais la feuille d’actions. */
@media (max-width: 767.98px) {
    body.clubos-mobile-active .club-ui-menu-backdrop {
        z-index: calc(var(--club-ui-layer-menu) - 2) !important;
        -webkit-backdrop-filter: blur(3px) !important;
        backdrop-filter: blur(3px) !important;
    }
    body.clubos-mobile-active .club-ui-menu.club-ui-menu-mobile-sheet {
        z-index: var(--club-ui-layer-menu) !important;
        background: var(--site-surface, #fff) !important;
        color: var(--site-text, #172033) !important;
        filter: none !important;
        -webkit-filter: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        opacity: 1 !important;
        isolation: isolate;
        will-change: transform;
    }
    :root[data-theme="dark"] body.clubos-mobile-active .club-ui-menu.club-ui-menu-mobile-sheet,
    :root[data-bs-theme="dark"] body.clubos-mobile-active .club-ui-menu.club-ui-menu-mobile-sheet {
        background: var(--site-surface, #111c30) !important;
        color: var(--site-text, #eef4ff) !important;
    }
}

/* Club Alex Borg 8.14.0.60.8.15.4 — mobile automatique et lisibilité 100/120/140. */
@media (max-width: 767.98px) {
    html.clubos-ui-scale-120 { font-size: 120%; }
    html.clubos-ui-scale-140 { font-size: 140%; }
    .clubos-mobile-account-panel .clubos-mobile-accessibility-view > header { min-height: 52px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: .65rem; padding: .1rem .15rem .4rem .05rem; }
    .clubos-mobile-account-panel .clubos-mobile-accessibility-view > header div { min-width: 0; display: grid; line-height: 1.12; }
    .clubos-mobile-account-panel .clubos-mobile-accessibility-view > header span { color: var(--site-text-muted, #64748b); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
    .clubos-mobile-account-panel .clubos-mobile-accessibility-view > header strong { font-size: 1.08rem; }
    .clubos-mobile-scale-intro { margin: .15rem .2rem .65rem; color: var(--site-text-muted, #64748b); font-size: .82rem; line-height: 1.45; }
    .clubos-mobile-scale-choices .clubos-mobile-scale-preview { width: 48px; height: 40px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--site-border, #dbe3ef) 92%, transparent); border-radius: .72rem; background: var(--site-surface-2, #edf1f7); color: var(--site-text, #172033); font-size: 1rem; font-weight: 850; letter-spacing: -.04em; }
    .clubos-mobile-scale-choices .clubos-mobile-scale-preview.is-comfort { font-size: 1.2rem; }
    .clubos-mobile-scale-choices .clubos-mobile-scale-preview.is-large { font-size: 1.4rem; }
    .clubos-mobile-scale-choices > button.is-selected .clubos-mobile-scale-preview { border-color: color-mix(in srgb, var(--site-accent, #2563eb) 58%, var(--site-border, #dbe3ef)); background: color-mix(in srgb, var(--site-accent, #2563eb) 12%, var(--site-surface, #fff)); color: var(--site-accent, #2563eb); }
    :root[data-theme="dark"] .clubos-mobile-scale-intro { color: #9fb0c9; }
    :root[data-theme="dark"] .clubos-mobile-scale-choices .clubos-mobile-scale-preview { border-color: #405475; background: #1a253b; color: #e6ebf5; }
    html.clubos-ui-scale-140 { --clubos-mobile-nav-height: 72px; --clubos-mobile-header-height: 60px; }
}


/* Club Alex Borg 8.15.9.7.5 — feuilles mobiles plus hautes et plus denses. */
@media (max-width: 767.98px) {
    body.clubos-mobile-active .clubos-mobile-account-panel {
        max-height: min(82dvh, 660px) !important;
        padding-top: .35rem !important;
    }
    body.clubos-mobile-active .clubos-mobile-account-items .clubos-mobile-account-menu-item,
    body.clubos-mobile-active .clubos-mobile-account-menu-item {
        min-height: 50px !important;
        padding-top: .42rem !important;
        padding-bottom: .42rem !important;
    }
    body.clubos-mobile-active .clubos-mobile-account-menu-icon {
        width: 34px !important;
        height: 34px !important;
    }
    body.clubos-mobile-active .clubos-mobile-account-menu-icon svg {
        width: 19px !important;
        height: 19px !important;
    }
    body.clubos-mobile-active .club-ui-menu.club-ui-menu-mobile-sheet {
        max-height: min(78dvh, 660px);
    }
    body.clubos-mobile-active .club-ui-menu.club-ui-menu-mobile-sheet [role="menuitem"],
    body.clubos-mobile-active .club-ui-menu.club-ui-menu-mobile-sheet > button,
    body.clubos-mobile-active .club-ui-menu.club-ui-menu-mobile-sheet > a {
        min-height: 48px;
    }
}

/* Club Alex Borg 9.8.0B — préférences Push mobile */
@media (max-width: 767.98px) {
    body.clubos-mobile-active .notifications-preferences-dialog-v2 .notifications-preferences-head {
        position: sticky;
        top: 0;
        z-index: 3;
        background: var(--site-surface, #fff);
    }
    body.clubos-mobile-active .notifications-preferences-dialog-v2 .notifications-preferences-mode-tabs {
        position: sticky;
        top: calc(var(--clubos-mobile-safe-top) + 73px);
        z-index: 2;
        background: color-mix(in srgb, var(--site-surface, #fff) 94%, var(--site-link, #0d6efd) 6%);
    }
    body.clubos-mobile-active .notifications-preferences-dialog-v2 .notifications-preferences-pane {
        padding: .85rem .8rem 1rem;
    }
    body.clubos-mobile-active .notifications-preferences-dialog-v2 .notifications-preference-card {
        grid-template-columns: 2.55rem minmax(0, 1fr);
        padding: .75rem;
    }
    body.clubos-mobile-active .notifications-preferences-dialog-v2 .notifications-preference-card-icon {
        width: 2.55rem;
        height: 2.55rem;
    }
    body.clubos-mobile-active .notifications-preferences-dialog-v2 .notifications-preferences-footer {
        position: sticky;
        bottom: 0;
        z-index: 3;
        background: var(--site-surface, #fff);
        padding-bottom: calc(.8rem + var(--clubos-mobile-safe-bottom));
    }
    .navbar-push-callout {
        grid-template-columns: 1.9rem minmax(0, 1fr);
    }
    .navbar-push-callout-actions {
        grid-column: 2;
        justify-content: flex-start;
    }
}


/* ClubOS 9.8.0Q — transport mobile compact du player développé.
 * Les vrais boutons du player sont déplacés par mobile-shell.js dans ce rail :
 * Volume · Précédent · Lecture/Pause · Suivant · Fermer.
 * Le transport historique est masqué uniquement sur téléphone développé.
 */
@media (max-width: 767.98px) {
    body.clubos-mobile-active .global-music-player:not(.is-clubos-mobile-compact) > .global-music-player__inner {
        padding-right: max(.42rem, var(--clubos-mobile-safe-right)) !important;
    }

    body.clubos-mobile-active .global-music-player:not(.is-clubos-mobile-compact) > .clubos-mobile-player-expanded-actions.is-phase-q {
        top: .42rem;
        right: max(.42rem, var(--clubos-mobile-safe-right));
        width: auto;
        display: block;
        pointer-events: none;
    }

    body.clubos-mobile-active .clubos-mobile-player-q-transport {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: .18rem;
        pointer-events: auto;
    }

    body.clubos-mobile-active .clubos-mobile-player-q-transport .global-music-player__volume-wrap,
    body.clubos-mobile-active .clubos-mobile-player-q-transport #global-player-prev,
    body.clubos-mobile-active .clubos-mobile-player-q-transport #global-player-toggle,
    body.clubos-mobile-active .clubos-mobile-player-q-transport #global-player-next,
    body.clubos-mobile-active .clubos-mobile-player-q-transport [data-mobile-player-close] {
        flex: 0 0 auto;
    }

    /* 9.8.0R — le volume doit rester visible même si le runtime mobile
       a normalisé sa zone historique avant la réconciliation du rail. */
    body.clubos-mobile-active .clubos-mobile-player-q-transport .global-music-player__volume-wrap {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    body.clubos-mobile-active .clubos-mobile-player-q-transport #global-player-volume {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.clubos-mobile-active .clubos-mobile-player-q-transport #global-player-volume,
    body.clubos-mobile-active .clubos-mobile-player-q-transport #global-player-prev,
    body.clubos-mobile-active .clubos-mobile-player-q-transport #global-player-next,
    body.clubos-mobile-active .clubos-mobile-player-q-transport [data-mobile-player-close] {
        width: 2.35rem !important;
        min-width: 2.35rem !important;
        height: 2.35rem !important;
        min-height: 2.35rem !important;
        border-radius: 999px !important;
    }

    body.clubos-mobile-active .clubos-mobile-player-q-transport #global-player-toggle {
        width: 2.55rem !important;
        min-width: 2.55rem !important;
        height: 2.55rem !important;
        min-height: 2.55rem !important;
        border-radius: 999px !important;
    }

    body.clubos-mobile-active .global-music-player:not(.is-clubos-mobile-compact) .global-music-player__transport,
    body.clubos-mobile-active .global-music-player:not(.is-clubos-mobile-compact) .global-music-player__volume-zone {
        display: none !important;
    }

    body.clubos-mobile-active .global-music-player:not(.is-clubos-mobile-compact) > .clubos-mobile-player-expanded-actions.is-phase-q > .is-collapse {
        position: absolute;
        top: 3rem;
        right: 0;
        width: 2.35rem;
        height: 2.35rem;
        min-width: 2.35rem;
        min-height: 2.35rem;
        pointer-events: auto;
    }

    body.clubos-mobile-active .global-music-player:not(.is-clubos-mobile-compact) .global-music-player__timeline {
        box-sizing: border-box;
        width: 100%;
        padding-right: 2.75rem;
    }

    body.clubos-mobile-active .global-music-player:not(.is-clubos-mobile-compact) .global-music-player__wave-wrap {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 359.98px) {
    body.clubos-mobile-active .clubos-mobile-player-q-transport {
        gap: .08rem;
    }
    body.clubos-mobile-active .clubos-mobile-player-q-transport #global-player-volume,
    body.clubos-mobile-active .clubos-mobile-player-q-transport #global-player-prev,
    body.clubos-mobile-active .clubos-mobile-player-q-transport #global-player-next,
    body.clubos-mobile-active .clubos-mobile-player-q-transport [data-mobile-player-close] {
        width: 2.12rem !important;
        min-width: 2.12rem !important;
        height: 2.12rem !important;
        min-height: 2.12rem !important;
    }
    body.clubos-mobile-active .clubos-mobile-player-q-transport #global-player-toggle {
        width: 2.32rem !important;
        min-width: 2.32rem !important;
        height: 2.32rem !important;
        min-height: 2.32rem !important;
    }
}
