/* ==========================================================================
   CAHIER DE SORTIE — Feuille de styles du module
   Sport Share Equipment

   Chargée APRÈS style.css. Tout est porté par le namespace `.cs-page`
   pour n'affecter que les pages du cahier de sortie.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FOND IMMERSIF PARTAGÉ AVEC L'APPLICATION
   -------------------------------------------------------------------------- */
body.cs-page::before,
body.cs-page::after {
    content: "";
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

body.cs-page::before {
    background: url('../View/image/sport_hero_final.png') center / cover no-repeat;
    z-index: -2;
    filter: grayscale(100%) brightness(.8);
}

body.cs-page::after {
    background: radial-gradient(circle at center, rgba(12, 16, 28, .08) 20%, rgba(12, 16, 28, .55) 100%);
    z-index: -1;
}

/* --------------------------------------------------------------------------
   2. TOKENS DU MODULE
   Dérivés des variables de style.css, mais OPAQUES : le module est un outil
   utilisé en extérieur, la transparence y détruit le contraste.
   -------------------------------------------------------------------------- */
body.cs-page {
    --cs-surface:       #080a0f;
    --cs-surface-2:     #11151e;
    --cs-elevated:      #080a0f;
    --cs-elevated-2:    #202632;
    --cs-border:        #1F2A63;
    --cs-border-strong: #30417F;

    --cs-text:   #EAECEF;
    --cs-text-2: #A8B2C1;
    --cs-text-3: #78849A;

    --cs-blue:   #2575F0;
    --cs-blue-2: #7FA8FF;
    --cs-gold:   #7FA8FF;
    --cs-green:  #10B981;
    --cs-amber:  #F59E0B;
    --cs-red:    #EF4444;

    --cs-frame-gutter: clamp(1rem, 4vw, 3rem);
    --cs-frame-max-width: 1800px;

    --cs-touch:  52px;
    --cs-r-sm:   10px;
    --cs-r-md:   14px;
    --cs-r-lg:   20px;

    background: var(--cs-surface);
    color: var(--cs-text);
    font-family: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
    margin: 0;
    min-height: 100vh;
}

body.cs-page *,
body.cs-page *::before,
body.cs-page *::after { box-sizing: border-box; }

/* --------------------------------------------------------------------------
   3. STRUCTURE
   -------------------------------------------------------------------------- */
.cs-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.cs-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    width: calc(100% - var(--cs-frame-gutter));
    max-width: var(--cs-frame-max-width);
    margin-inline: auto;
}
.cs-main-layout { display: flex; flex: 1; align-items: flex-start; min-width: 0; }

/* --------------------------------------------------------------------------
   4. EN-TÊTE
   -------------------------------------------------------------------------- */
.cs-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "brand title actions";
    align-items: center;
    gap: 1rem;
    width: calc(100% - var(--cs-frame-gutter));
    max-width: var(--cs-frame-max-width);
    margin: clamp(.4rem, 1vw, .75rem) auto 0;
    padding: .65rem clamp(1rem, 2.5vw, 2rem);
    background: rgba(17, 21, 30, .82);
    border: 1px solid rgba(127, 168, 255, .25);
    border-radius: 999px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: sticky;
    top: .75rem;
    z-index: 100;
}
.cs-header-logo { grid-area: brand; display: flex; align-items: center; gap: .75rem; min-width: 0; }
.cs-header-logo img { height: 38px; width: auto; border-radius: 9px; flex-shrink: 0; }
.cs-header-titles { display: flex; flex-direction: column; min-width: 0; }
.cs-header-titles strong {
    font-size: .98rem; font-weight: 700; color: #fff; line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cs-header-titles span { font-size: .78rem; color: #aeb7d3; line-height: 1.3; }
.cs-header-page-title {
    grid-area: title;
    justify-self: center;
    color: #fff;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
    white-space: nowrap;
}
.cs-header-responsive-title { display: none; }

.cs-header-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

.cs-header-datetime {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 0;
    background: transparent;
    border: 0;
    color: #aeb7d3;
    font-size: .82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.cs-header-datetime > span { color: var(--cs-text-3); }
.cs-header-datetime time:last-child { color: #fff; font-weight: 750; }

.cs-header-user {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .85rem; font-weight: 600; color: #fff;
    padding: .4rem .85rem .4rem .5rem;
    border-radius: 999px;
    background: rgba(127, 168, 255, .12);
    border: 1px solid rgba(127, 168, 255, .25);
    white-space: nowrap;
}
.cs-header-user .cs-avatar {
    width: 24px; height: 24px; border-radius: 999px;
    background: var(--cs-blue); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 800;
}
.cs-header-account { position: relative; flex: 0 0 auto; }
.cs-header-account > summary { list-style: none; cursor: pointer; }
.cs-header-account > summary::-webkit-details-marker { display: none; }
.cs-header-user-name { max-width: min(15rem, 28vw); overflow: hidden; text-overflow: ellipsis; }
.cs-header-account-chevron { flex: 0 0 auto; color: var(--cs-text-2); transition: transform .18s ease; }
.cs-header-account[open] .cs-header-account-chevron { transform: rotate(180deg); }
.cs-header-account > summary:hover { border-color: var(--cs-blue-2); }
.cs-header-account > summary:focus-visible {
    outline: 2px solid var(--cs-blue-2);
    outline-offset: 3px;
}
.cs-header-account-menu {
    position: absolute;
    z-index: 110;
    top: calc(100% + .65rem);
    right: 0;
    display: grid;
    gap: .35rem;
    width: min(17rem, calc(100vw - 2rem));
    padding: .5rem;
    background: var(--cs-elevated);
    border: 1px solid rgba(127, 168, 255, .25);
    border-radius: var(--cs-r-md);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .42);
}
.cs-header-account:not([open]) > .cs-header-account-menu { display: none; }
.cs-header-menu-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .65rem .8rem;
    border-radius: var(--cs-r-sm);
    color: #d5dbec;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}
.cs-header-menu-link:hover,
.cs-header-menu-link:focus-visible { background: rgba(127, 168, 255, .12); color: #fff; }
.cs-header-menu-link:focus-visible { outline: 2px solid var(--cs-blue-2); outline-offset: 1px; }
.cs-header-menu-link--primary { color: #FCA5A5; }
.cs-header-menu-link--primary:hover,
.cs-header-menu-link--primary:focus-visible { background: rgba(239, 68, 68, .14); color: #FECACA; }
.cs-header-menu-link--accent { color: var(--cs-blue-2); }

/* --------------------------------------------------------------------------
   5. BOUTONS
   -------------------------------------------------------------------------- */
.cs-btn,
.cs-btn-ghost,
.cs-btn-primary,
.cs-btn-success,
.cs-btn-danger {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .6rem 1.1rem;
    border-radius: var(--cs-r-sm);
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.cs-btn-ghost {
    background: var(--cs-elevated);
    border-color: var(--cs-border-strong);
    color: var(--cs-text-2);
}
.cs-btn-ghost:hover { background: var(--cs-elevated-2); color: #fff; }

.cs-btn-primary { background: var(--cs-blue); color: #fff; border-color: var(--cs-blue); }
.cs-btn-primary:hover { background: #0F5AE0; border-color: #0F5AE0; }

.cs-btn-success { background: var(--cs-green); color: #06281E; border-color: var(--cs-green); }
.cs-btn-success:hover { background: #0DA271; }

.cs-btn-danger { background: var(--cs-red); color: #fff; border-color: var(--cs-red); }
.cs-btn-danger:hover { background: #DC2626; }

/* Actions primaires en usage terrain : cible tactile confortable */
.cs-btn-lg { min-height: var(--cs-touch); padding: .9rem 1.5rem; font-size: 1rem; width: 100%; }

/* --------------------------------------------------------------------------
   6. ÉTATS PLEINE PAGE (non connecté / migration)
   -------------------------------------------------------------------------- */
.cs-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}
.cs-state-card {
    width: 100%;
    max-width: 460px;
    text-align: center;
    background: var(--cs-elevated);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-lg);
    padding: 2.5rem 2rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .45);
}
.cs-state-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    background: var(--cs-elevated-2);
    border: 1px solid var(--cs-border-strong);
    color: var(--cs-blue-2);
}
.cs-state-card h2 { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0 0 .6rem; }
.cs-state-card p { color: var(--cs-text-2); font-size: .95rem; line-height: 1.6; margin: 0 0 1.75rem; }
.cs-state-foot {
    display: grid;
    gap: .65rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--cs-border);
    color: var(--cs-text-3);
}
.cs-state-foot-action {
    display: grid;
    gap: .2rem;
    min-height: 58px;
    align-content: center;
    padding: .65rem .85rem;
    border: 1px solid var(--cs-border-strong);
    border-radius: var(--cs-r-md);
    background: var(--cs-surface);
    color: var(--cs-text);
    text-align: left;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.cs-state-foot-action span { color: var(--cs-text-2); font-size: .75rem; }
.cs-state-foot-action strong { color: var(--cs-blue-2); font-size: .95rem; }
.cs-state-foot-action:hover {
    border-color: var(--cs-blue);
    background: var(--cs-elevated-2);
    box-shadow: 0 8px 20px rgba(26, 109, 255, .16);
}
.cs-state-foot-action:focus-visible { outline: 3px solid #9fc2ff; outline-offset: 3px; }
.cs-state-code {
    display: block; text-align: left;
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-sm);
    padding: .9rem 1rem;
    color: var(--cs-blue-2);
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: .88rem;
}

/* --------------------------------------------------------------------------
   7. ÉCRAN D'ACCUEIL
   -------------------------------------------------------------------------- */
.csh-home {
    flex: 1;
    width: calc(100% - var(--cs-frame-gutter));
    max-width: var(--cs-frame-max-width);
    margin: 0 auto;
    min-height: calc(100vh - 6rem);
    min-height: calc(100dvh - 6rem);
    padding: clamp(1rem, 2.5vw, 2.5rem) 0 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(15rem, 1fr) auto;
    gap: clamp(.85rem, 1.5vw, 1.5rem);
}

/* Bandeau de statistiques */
.csh-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.csh-stat {
    background: var(--cs-elevated);
    border: 1px solid var(--cs-border);
    border-left: 4px solid var(--cs-border-strong);
    border-radius: var(--cs-r-md);
    padding: 1rem 1.15rem;
}
.csh-stat-value {
    font-size: 1.9rem; font-weight: 800; color: #fff;
    line-height: 1.1; font-variant-numeric: tabular-nums;
}
.csh-stat-label {
    font-size: .76rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; color: var(--cs-text-3); margin-top: .25rem;
}
.csh-stat--out    { border-left-color: var(--cs-blue); }
.csh-stat--out .csh-stat-value { color: var(--cs-blue-2); }
.csh-stat--free   { border-left-color: var(--cs-green); }
.csh-stat--free .csh-stat-value { color: #34D399; }
.csh-stat--alert  { border-left-color: var(--cs-red); }
.csh-stat--alert .csh-stat-value { color: #F87171; }
.csh-stat--time   { border-left-color: var(--cs-gold); }
.csh-stat--time .csh-stat-value { color: var(--cs-gold); }

/* Panneau de choix */
.csh-panel {
    background: var(--cs-elevated);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-lg);
    padding: 1.75rem 2rem 2rem;
}
.csh-title-pill {
    display: inline-block;
    background: var(--cs-blue);
    color: #fff;
    border-radius: var(--cs-r-md);
    padding: .7rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.csh-welcome {
    color: var(--cs-text-2);
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}
.csh-welcome strong { color: #fff; }

.csh-note {
    color: var(--cs-text-3);
    font-size: .88rem;
    line-height: 1.6;
    max-width: 640px;
    margin: -1rem 0 1.5rem;
}

.csh-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: none;
}
.csh-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    min-height: 210px;
    padding: 1.5rem 1rem;
    background: var(--cs-elevated-2);
    border: 2px solid var(--cs-border-strong);
    border-radius: var(--cs-r-lg);
    color: #fff;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .24);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .12s ease;
}
.csh-choice:hover  { border-color: var(--cs-blue); background: #253044; transform: translateY(-2px); }
.csh-choice:focus-visible { outline: 3px solid var(--cs-blue-2); outline-offset: 3px; }
.csh-choice:active { transform: translateY(1px); box-shadow: 0 3px 8px rgba(0, 0, 0, .24); }
.csh-choice svg { color: var(--cs-blue-2); }
.csh-choice--in svg { color: #34D399; }
.csh-choice--in:hover { border-color: var(--cs-green); }

/* Liste « en cours » */
.csh-live {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--cs-elevated);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-lg);
    padding: 1.25rem 1.5rem 1.5rem;
}
.csh-live-title {
    display: flex; align-items: center; gap: .5rem;
    width: 100%;
    min-height: 44px;
    padding: .3rem 0;
    font-size: .95rem; font-weight: 700; color: #fff;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    background: transparent;
    border: 0;
}
.csh-live-title::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    flex: 0 0 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}
.csh-live-title[aria-expanded="true"] { margin-bottom: 1rem; }
.csh-live-title[aria-expanded="true"]::after {
    transform: rotate(225deg) translate(-2px, -1px);
}
.csh-live-title:focus-visible {
    outline: 2px solid var(--cs-blue-2);
    outline-offset: 4px;
    border-radius: var(--cs-r-sm);
}
.csh-live-content { flex: 1; min-width: 0; }
.csh-live-content[hidden] { display: none; }
.csh-live-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
    align-content: start;
    gap: .75rem;
}
.csh-live-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .6rem 1rem;
    width: 100%; min-height: var(--cs-touch);
    text-align: left;
    background: var(--cs-elevated-2);
    border: 1px solid var(--cs-border-strong);
    border-left: 4px solid var(--cs-blue);
    border-radius: var(--cs-r-md);
    padding: .9rem 1rem;
    color: var(--cs-text);
    font-family: inherit;
    font-size: .92rem;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}
.csh-live-item:hover { background: #26313F; }
.csh-live-item-copy { display: grid; gap: .5rem; min-width: 0; }
.csh-live-item-heading { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.csh-live-item-heading strong {
    overflow: hidden;
    color: #fff;
    font-size: 1rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.csh-live-item-heading svg { color: var(--cs-blue-2); flex: 0 0 auto; }
.csh-live-unit {
    flex: 0 0 auto;
    padding: .2rem .45rem;
    border-radius: 999px;
    background: rgba(92, 151, 255, .12);
    color: var(--cs-blue-2);
    font-size: .7rem;
    font-weight: 700;
}
.csh-live-item-details { display: flex; flex-wrap: wrap; gap: .3rem .8rem; color: var(--cs-text-2); font-size: .8rem; line-height: 1.45; }
.csh-live-item-details > span { min-width: 0; overflow-wrap: anywhere; }
.csh-live-detail-label { margin-right: .35rem; color: var(--cs-text-3); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; }
.cs-crew-category {
    display: inline-flex;
    align-items: center;
    padding: .05rem .36rem;
    border: 1px solid rgba(92, 151, 255, .24);
    border-radius: 999px;
    background: rgba(92, 151, 255, .12);
    color: #AFCBFF;
    font-size: .62rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}
.csh-live-note { color: var(--cs-text-3); font-size: .78rem; line-height: 1.4; overflow-wrap: anywhere; }
.csh-live-duration {
    display: grid;
    justify-items: center;
    gap: .15rem;
    min-width: 4.4rem;
    padding: .55rem .65rem;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-sm);
    background: var(--cs-surface);
    color: var(--cs-text-3);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}
.csh-live-duration .cs-timer { color: #fff; font-size: .95rem; font-variant-numeric: tabular-nums; text-transform: none; }
.csh-live-item--static { cursor: default; }
.csh-live-item--static:hover { background: var(--cs-elevated-2); }
.csh-live-empty { align-self: center; color: var(--cs-text-3); font-size: .95rem; margin: auto 0; }
.csh-live-hint { color: var(--cs-text-3); font-size: .85rem; margin: -.6rem 0 .9rem; }

.csd-live-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--cs-border-strong);
    border-radius: var(--cs-r-md);
    background: var(--cs-surface);
}
.csd-live-table {
    width: 100%;
    min-width: 760px;
    table-layout: fixed;
    border-collapse: collapse;
    color: var(--cs-text);
    font-size: .9rem;
}
.csd-live-table th {
    padding: .9rem 1.1rem;
    background: var(--cs-surface);
    color: var(--cs-text-2);
    font-size: .74rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .05em;
    position: sticky;
    top: 0;
    z-index: 1;
}
.csd-live-table td {
    padding: 1rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, .07);
    vertical-align: middle;
    overflow-wrap: anywhere;
}
.csd-live-table tr.cs-t-ok td:first-child { border-left: 4px solid var(--cs-blue); }
.csd-live-table tr.cs-t-warn td:first-child { border-left: 4px solid var(--cs-amber); }
.csd-live-table tr.cs-t-late td:first-child { border-left: 4px solid var(--cs-red); }
.csd-live-table td:first-child strong,
.csd-live-table td:first-child .csd-equipment-unit {
    display: block;
}
.csd-live-table td:first-child strong { color: #fff; font-size: .98rem; }
.csd-equipment-unit { margin-top: .3rem; color: var(--cs-text-3); font-size: .78rem; }
.csd-live-table td:last-child .cs-timer {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .35rem .7rem;
    border: 1px solid rgba(92, 151, 255, .22);
    border-radius: 999px;
    background: rgba(26, 109, 255, .12);
    color: #a9c9ff;
    font-size: .92rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.csd-crew-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.csd-crew-list li {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
    padding: .28rem .55rem;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
}
.csd-crew-name { color: #f1f5f9; font-weight: 550; }
.csd-crew-role {
    flex: 0 0 auto;
    padding: .16rem .42rem;
    border-radius: 999px;
    background: rgba(26, 109, 255, .18);
    color: #a9c9ff;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.csd-equipment-info { min-width: 0; }
.csd-equipment-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
}
.csd-equipment-main strong { min-width: 0; overflow-wrap: anywhere; }
.csd-equipment-type {
    flex: 0 1 auto;
    max-width: 45%;
    padding: .16rem .42rem;
    border: 1px solid rgba(92, 151, 255, .2);
    border-radius: 999px;
    background: rgba(26, 109, 255, .12);
    color: var(--cs-text-2);
    font-size: .68rem;
    font-weight: 650;
    line-height: 1.3;
    text-align: right;
    overflow-wrap: anywhere;
}


/* Code couleur temporel — information de sécurité, pas décorative */
.cs-t-ok    { border-left-color: var(--cs-blue)  !important; }
.cs-t-warn  { border-left-color: var(--cs-amber) !important; }
.cs-t-late  { border-left-color: var(--cs-red)   !important; }

.cs-live-dot {
    width: 9px; height: 9px; border-radius: 999px;
    background: var(--cs-blue);
    box-shadow: 0 0 0 3px rgba(26, 109, 255, .22);
    animation: cs-pulse 1.6s infinite;
    flex-shrink: 0;
}
@keyframes cs-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* --------------------------------------------------------------------------
   8. SIDEBAR « EN COURS »
   -------------------------------------------------------------------------- */
.cs-sidebar {
    width: 340px;
    flex-shrink: 0;
    background: var(--cs-surface-2);
    border-right: 1px solid var(--cs-border);
    padding: 1.5rem 1.25rem 2rem;
    align-self: stretch;
    position: sticky;
    z-index: 10;
    top: 62px;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
    transition: flex-basis .24s ease, width .24s ease, height .24s ease, padding .24s ease, border-width .24s ease;
}
.cs-sidebar-title {
    display: flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--cs-text-2);
    margin-bottom: 1rem;
}
.cs-sidebar-disclosure {
    min-width: 0;
    position: relative;
}
.cs-sidebar-toggle {
    list-style: none;
    cursor: pointer;
    user-select: none;
    border-radius: var(--cs-r-sm);
}
.cs-sidebar-toggle::-webkit-details-marker { display: none; }
.cs-sidebar-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    flex: 0 0 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}
.cs-sidebar-disclosure[open] > .cs-sidebar-toggle::after {
    transform: rotate(135deg) translate(-2px, -1px);
}
.cs-sidebar-toggle:focus-visible {
    outline: 2px solid var(--cs-blue-2);
    outline-offset: 3px;
}
.cs-sidebar-toggle:hover { color: #fff; }
.cs-sidebar-panel {
    position: relative;
    width: auto;
    padding-top: .75rem;
    animation: cs-sidebar-reveal .22s ease-out both;
}
@keyframes cs-sidebar-reveal {
    from { clip-path: inset(0 100% 0 0); opacity: .75; }
    to { clip-path: inset(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .cs-sidebar-panel { animation: none; }
}
.cs-sidebar-disclosure:not([open]) > .cs-sidebar-toggle { margin-bottom: 0; }
.cs-sidebar-empty {
    color: var(--cs-text-3); font-size: .88rem;
    text-align: center; padding: 1.75rem .5rem;
    background: var(--cs-elevated);
    border: 1px dashed var(--cs-border-strong);
    border-radius: var(--cs-r-md);
}

.cs-sortie-card {
    background: var(--cs-elevated);
    border: 1px solid var(--cs-border);
    border-left: 4px solid var(--cs-blue);
    border-radius: var(--cs-r-md);
    padding: 1rem;
    margin-bottom: .85rem;
}
.cs-sortie-equip { font-weight: 700; color: #fff; font-size: 1rem; margin-bottom: .4rem; }
.cs-sortie-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
    font-size: .82rem; color: var(--cs-text-2); margin-bottom: .75rem;
}
.cs-timer { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--cs-text); }
.cs-t-warn .cs-timer { color: var(--cs-amber); }
.cs-t-late .cs-timer { color: #F87171; }

.cs-sortie-equipe-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .12rem .6rem;
    background: var(--cs-elevated-2);
    border: 1px solid var(--cs-border-strong);
    border-radius: 999px;
    font-size: .74rem;
    color: var(--cs-text-2);
}
.cs-crew { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .8rem; }
.cs-crew span {
    font-size: .75rem; color: var(--cs-text-2);
    background: var(--cs-elevated-2);
    border: 1px solid var(--cs-border);
    padding: .1rem .5rem; border-radius: 999px;
}
.cs-crew span.cs-crew-libre {
    border-style: dashed;
    color: var(--cs-text-3);
}
.cs-sortie-card-actions {
    margin: .65rem -1rem -1rem;
    padding: .65rem 1rem .75rem;
    border-top: 1px solid var(--cs-border);
    border-radius: 0 0 calc(var(--cs-r-md) - 1px) calc(var(--cs-r-md) - 1px);
    background: rgba(0, 0, 0, .14);
}
.cs-sortie-card-actions form { margin: 0; }
.cs-btn-checkin {
    width: 100%; min-height: 46px;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--cs-green);
    color: #06281E;
    border: none;
    border-radius: var(--cs-r-sm);
    font-family: inherit; font-weight: 700; font-size: .9rem;
    cursor: pointer;
    transition: background .18s ease;
}
.cs-btn-checkin:hover { background: #0DA271; }

.cs-btn-force {
    width: 100%; min-height: 42px;
    margin-top: .5rem;
    background: transparent;
    color: var(--cs-amber);
    border: 1px dashed var(--cs-amber);
    border-radius: var(--cs-r-sm);
    font-family: inherit; font-weight: 600; font-size: .84rem;
    cursor: pointer;
    transition: background .18s ease;
}
.cs-btn-force:hover { background: rgba(245, 158, 11, .12); }

.cs-sortie-lock {
    margin: .5rem 0 0;
    font-size: .8rem;
    color: var(--cs-text-3);
    text-align: center;
}

/* --------------------------------------------------------------------------
   9. CONTENU PRINCIPAL
   -------------------------------------------------------------------------- */
.cs-content { flex: 1; min-width: 0; padding: 1.75rem 2rem 3rem; }

/* --------------------------------------------------------------------------
   10. FORMULAIRES
   -------------------------------------------------------------------------- */
.cs-form-card {
    background: var(--cs-elevated);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-lg);
    padding: 1.75rem;
    max-width: 1000px;
}
.cs-wizard-progress {
    display: grid;
    grid-template-columns: auto minmax(5rem, 1fr) auto;
    align-items: center;
    gap: .8rem;
    margin: 0 0 1.75rem;
    color: var(--cs-text-2);
    font-size: .82rem;
}
.cs-wizard-step-count { white-space: nowrap; }
.cs-wizard-progress-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--cs-surface);
}
.cs-wizard-progress-track span {
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: var(--cs-blue);
    transition: width .2s ease;
}
.cs-wizard-title {
    margin: 0 0 1.25rem;
    color: #fff;
    font-size: 1.2rem;
}
.cs-wizard-title:focus { outline: none; }
.cs-departure-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.25rem;
    padding: .85rem 1rem;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-sm);
    background: var(--cs-surface-2);
    color: var(--cs-text-2);
}
.cs-departure-time strong { color: #fff; }
.cs-wizard-step[hidden],
#equipement-unite-field[hidden] { display: none !important; }
.cs-wizard-source-control {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.cs-equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: .75rem;
    margin: 1.25rem 0;
}
.cs-equipment-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.cs-equipment-filter {
    min-height: 38px;
    padding: .4rem .8rem;
    border: 1px solid var(--cs-border-strong);
    border-radius: 999px;
    background: var(--cs-surface-2);
    color: var(--cs-text-2);
    cursor: pointer;
    font: inherit;
    font-size: .84rem;
}
.cs-equipment-filter.selected {
    border-color: var(--cs-blue);
    background: rgba(26, 109, 255, .14);
    color: #fff;
}
.cs-equipment-groups { display: flex; flex-direction: column; gap: .5rem; }
.cs-equipment-group[hidden] { display: none !important; }
.cs-equipment-group-header { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.cs-equipment-group-header h4 { margin: 0; color: #fff; font-size: .98rem; }
.cs-equipment-group-header span { color: var(--cs-text-3); font-size: .78rem; }
.cs-equipment-group .cs-equipment-grid { margin: .55rem 0 .9rem; }
.cs-equipment-card {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .35rem;
    padding: 1rem;
    border: 1px solid var(--cs-border-strong);
    border-radius: var(--cs-r-md);
    background: var(--cs-surface-2);
    color: var(--cs-text-2);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.cs-equipment-card strong { color: #fff; font-size: 1rem; }
.cs-equipment-card span,
.cs-equipment-card small { color: var(--cs-text-3); }
.cs-equipment-card:hover:not(:disabled) { border-color: var(--cs-blue-2); transform: translateY(-1px); }
.cs-equipment-card.selected {
    border-color: var(--cs-blue);
    background: rgba(26, 109, 255, .14);
    box-shadow: inset 0 0 0 1px var(--cs-blue);
}
.cs-equipment-card:disabled { opacity: .45; cursor: not-allowed; }

.cs-checkout-back { display: none; }
body.cs-page--checkout .cs-sidebar { display: none; }
body.cs-page--checkout .cs-main { align-items: stretch; min-width: 0; }
body.cs-page--checkout .cs-content {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-width: 0;
    padding: clamp(.4rem, 1vw, .8rem) 0 2rem;
}
body.cs-page--checkout .cs-checkout-back {
    display: inline-flex;
    align-self: auto;
}
body.cs-page--checkout #tab-historique { display: none !important; }
body.cs-page--checkout #tab-checkout {
    display: flex !important;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}
body.cs-page--checkout .cs-form-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    max-width: none;
    padding: clamp(1rem, 2vw, 2rem);
}
body.cs-page--checkout .cs-form-heading {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
body.cs-page--checkout .cs-form-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
body.cs-page--checkout #form-checkout { flex: 1; }
body.cs-page--checkout .cs-wizard-title { margin-bottom: .8rem; }
body.cs-page--checkout .cs-equipment-groups { gap: .8rem; }
body.cs-page--checkout .cs-equipment-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), min(100%, 250px)));
    justify-content: start;
    gap: .8rem;
}
body.cs-page--checkout .cs-equipment-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    justify-content: flex-end;
    height: clamp(145px, 18vh, 210px);
    padding: 1rem;
    background-color: var(--cs-surface-2);
    text-align: left;
}
body.cs-page--checkout .cs-equipment-card::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 18, .08) 0%, rgba(8, 12, 18, .24) 35%, rgba(8, 12, 18, .9) 100%);
    content: "";
}
body.cs-page--checkout .cs-equipment-card.selected::before {
    background: linear-gradient(180deg, rgba(8, 12, 18, .12) 0%, rgba(8, 12, 18, .3) 35%, rgba(10, 35, 82, .94) 100%);
}
body.cs-page--checkout .cs-equipment-card-image {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
body.cs-page--checkout .cs-equipment-card:hover:not(:disabled) .cs-equipment-card-image {
    transform: scale(1.04);
}
body.cs-page--checkout .cs-equipment-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    width: 100%;
}
body.cs-page--checkout .cs-equipment-card-content strong {
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}
body.cs-page--checkout .cs-equipment-card-content > span,
body.cs-page--checkout .cs-equipment-card-content small {
    color: rgba(255, 255, 255, .9);
    font-size: .8rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
}
body.cs-page--checkout .cs-equipment-card-content small {
    margin-top: .15rem;
    padding: .2rem .45rem;
    border-radius: 999px;
    background: rgba(8, 12, 18, .62);
}
@media (max-width: 600px) {
    body.cs-page--checkout .cs-equipment-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), min(100%, 230px)));
        gap: .55rem;
    }
    body.cs-page--checkout .cs-equipment-card {
        height: clamp(132px, 18vh, 165px);
        padding: .75rem;
    }
}

.cs-crew-start {
    margin-bottom: 1rem;
}
.cs-crew-section-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    color: var(--cs-text);
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.35;
}
.cs-crew-step-number {
    display: inline-flex;
    flex: 0 0 1.7rem;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--cs-blue);
    color: #fff;
    font-size: .82rem;
    line-height: 1;
}
.cs-crew-start > .cs-crew-section-title { margin-bottom: .75rem; }
.cs-crew-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    align-items: stretch;
    gap: .5rem;
    margin-bottom: 0;
}
.cs-crew-choice-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .2rem;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    height: 100%;
    text-align: left;
    overflow-wrap: anywhere;
}
.cs-seance-btn.cs-crew-choice-btn {
    padding: .4rem .7rem;
    border-width: 1px;
    font-size: .84rem;
}
.cs-crew-choice-title { font-weight: 600; line-height: 1.2; }
.cs-crew-choice-description,
.cs-last-crew-option small {
    color: var(--cs-text-3);
    font-size: .7rem;
    font-weight: 500;
    line-height: 1.2;
}
.cs-last-crew-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    min-width: 0;
    width: 100%;
}
.cs-last-crew-button {
    align-items: flex-start;
}
.cs-last-crew-button[hidden] { display: none; }
.cs-last-crew-message { margin: 0; color: var(--cs-text-3); font-size: .8rem; }
.cs-last-crew-message--error { color: #FCA5A5; }
.cs-wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1.5rem;
}
.cs-wizard-actions--end { justify-content: flex-end; }
.cs-wizard-actions .cs-btn-checkout { width: auto; min-width: 220px; }
.cs-wizard-error {
    margin: 1rem 0 0;
    color: #FCA5A5;
    font-size: .9rem;
}
.cs-checkout-summary {
    display: grid;
    grid-template-columns: minmax(9rem, .4fr) minmax(0, 1fr);
    gap: .75rem 1rem;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-md);
    background: var(--cs-surface-2);
}
.cs-checkout-summary dt { color: var(--cs-text-3); font-size: .85rem; }
.cs-checkout-summary dd { margin: 0; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.cs-wizard-note { margin-top: 1.25rem; }
.cs-form-title {
    display: flex; align-items: center; gap: .7rem;
    font-size: 1.15rem; font-weight: 700; color: #fff;
    margin: 0 0 1.5rem;
}
.cs-form-title svg { color: var(--cs-blue-2); }
.cs-form-group { margin-bottom: 1.4rem; }

.cs-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
    margin-bottom: 1.75rem;
}
.cs-col { display: flex; flex-direction: column; gap: 1.2rem; }

.cs-label,
.cs-detail-label {
    display: block;
    font-size: .8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--cs-text-2);
    margin-bottom: .5rem;
}
.cs-label .required { color: #F87171; margin-left: .25rem; }
.cs-optional { font-size: .75rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--cs-text-3); }

.cs-detail-field { display: flex; flex-direction: column; }

.cs-select, .cs-input, .cs-textarea {
    width: 100%;
    min-height: 46px;
    background: var(--cs-surface);
    border: 1px solid var(--cs-border-strong);
    border-radius: var(--cs-r-sm);
    padding: .75rem 1rem;
    color: #fff;
    font-family: inherit;
    font-size: .95rem;
    outline: none;
    transition: border-color .18s ease, background .18s ease;
}
.cs-select:focus, .cs-input:focus, .cs-textarea:focus {
    border-color: var(--cs-blue);
    background: var(--cs-elevated-2);
}
/* Le rendu natif du <select> (flèche, cadre) varie trop d'un navigateur à l'autre,
   notamment Safari iPadOS qui ignore partiellement -webkit-appearance seul */
.cs-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: none;
    background-color: var(--cs-surface);
    background-clip: padding-box;
    border: 1px solid var(--cs-border-strong);
    cursor: pointer;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8B2C1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}
.cs-select::-ms-expand { display: none; }
.cs-select:disabled { opacity: .5; cursor: not-allowed; }
.cs-select option { background: var(--cs-elevated); color: #fff; }
.cs-select option:disabled { color: var(--cs-text-3); }
.cs-input::placeholder, .cs-textarea::placeholder { color: var(--cs-text-3); }
.cs-textarea { min-height: 84px; resize: vertical; }

.cs-check {
    display: flex; align-items: center; gap: .55rem;
    cursor: pointer; margin-bottom: .5rem;
}
.cs-check input { width: 20px; height: 20px; accent-color: var(--cs-blue); cursor: pointer; }
.cs-datetime-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .5rem;
}
.cs-datetime-row .cs-detail-label { margin: 0; }
.cs-now-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 38px;
    padding: .4rem .7rem;
    border: 1px solid var(--cs-border-strong);
    border-radius: var(--cs-r-sm);
    background: var(--cs-elevated-2);
    color: var(--cs-blue-2);
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.cs-now-button:hover { background: var(--cs-blue); border-color: var(--cs-blue); color: #fff; }
.cs-now-button:focus-visible { outline: 3px solid var(--cs-blue-2); outline-offset: 3px; }
.cs-now-button svg { flex: 0 0 auto; }
.cs-panel-block {
    background: var(--cs-surface-2);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-md);
    padding: 1.25rem;
}
.cs-panel-block h3 {
    display: flex; align-items: center; gap: .5rem;
    font-size: 1rem; font-weight: 700; color: #fff;
    margin: 0 0 1rem;
}
.cs-panel-block h3 svg { color: var(--cs-blue-2); }
.cs-team-select { margin-bottom: 1rem; }

.cs-seance-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.cs-boat-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: .6rem;
    width: 100%;
}
.cs-boat-type-groups { display: grid; gap: 1rem; }
.cs-boat-type-group { min-width: 0; }
.cs-boat-type-group-title {
    margin: 0 0 .5rem;
    color: var(--cs-text-2);
    font-size: .82rem;
    font-weight: 700;
}
.cs-seance-btn,
.cs-boat-type-btn {
    padding: .6rem 1.15rem;
    border-radius: var(--cs-r-sm);
    border: 2px solid var(--cs-border-strong);
    background: var(--cs-surface);
    color: var(--cs-text-2);
    font-family: inherit; font-size: .9rem; font-weight: 600;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.cs-boat-type-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .24rem;
    min-width: 0;
    min-height: 68px;
    padding: .7rem .9rem;
    text-align: left;
}
.cs-boat-type-code { font-size: .95rem; line-height: 1.2; }
.cs-boat-type-name {
    min-width: 0;
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
    opacity: .82;
}
.cs-seance-btn:hover,
.cs-crew-choice-btn:hover,
.cs-boat-type-btn:hover { color: #fff; }
.cs-seance-btn.selected,
.cs-crew-choice-btn.selected,
.cs-boat-type-btn.selected {
    color: #fff;
    background: var(--cs-elevated-2);
    border-color: var(--seance-color, var(--cs-blue));
}

.cs-selected-crew {
    margin: 1rem 0;
    padding: 0;
}
.cs-selected-crew-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem .75rem;
}
.cs-crew-count-hint {
    margin: 0;
    color: var(--cs-text-2);
    font-size: .82rem;
    text-align: right;
}
.cs-crew-count-hint.cs-hint-ok { color: #34D399; }
.cs-crew-count-hint.cs-hint-over { color: #F87171; }
.cs-crew-empty {
    margin: .65rem 0 0;
    color: var(--cs-text-3);
    font-size: .86rem;
}
.cs-crew-empty[hidden] { display: none; }
.cs-equipage-list { display: flex; flex-direction: column; gap: .55rem; margin-top: .5rem; }
.cs-equipage-item {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
    min-height: 46px;
    padding: .5rem .5rem .5rem .85rem;
    background: var(--cs-surface-2);
    border: 1px solid var(--cs-border-strong);
    border-radius: var(--cs-r-sm);
    font-size: .92rem;
    color: var(--cs-text);
}
.cs-equipage-member-label { display: flex; flex: 1 1 220px; align-items: center; flex-wrap: wrap; gap: .35rem; }
.cs-crew-role-badge {
    display: inline-flex;
    align-items: center;
    padding: .12rem .45rem;
    border-radius: 999px;
    background: rgba(26, 109, 255, .16);
    color: #8DBAFF;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.3;
}
.cs-crew-role-toggle {
    min-height: 36px;
    padding: .35rem .65rem;
    border: 1px solid var(--cs-border-strong);
    border-radius: var(--cs-r-sm);
    background: transparent;
    color: var(--cs-text-2);
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
}
.cs-crew-role-toggle.selected {
    border-color: var(--cs-blue-2);
    background: rgba(26, 109, 255, .16);
    color: #8DBAFF;
    font-weight: 700;
}
.cs-remove-btn {
    background: none; border: none; color: #F87171;
    cursor: pointer; font-size: 1.4rem; line-height: 1;
    width: 36px; height: 36px; border-radius: var(--cs-r-sm);
}
.cs-remove-btn:hover { background: rgba(239, 68, 68, .16); }

.cs-tag-libre {
    display: inline-block;
    margin-left: .4rem;
    padding: .05rem .45rem;
    border: 1px dashed var(--cs-border-strong);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    color: var(--cs-text-3);
    vertical-align: middle;
}

.cs-add-member-row { display: flex; gap: .6rem; }
.cs-add-member-row .cs-input { flex: 1; }
.cs-add-member-btn {
    padding: .75rem 1.15rem;
    background: var(--cs-blue);
    border: none;
    border-radius: var(--cs-r-sm);
    color: #fff;
    font-family: inherit; font-weight: 700;
    cursor: pointer; white-space: nowrap;
}
.cs-add-member-btn:hover { background: #0F5AE0; }
.cs-member-picker {
    margin-top: 0;
    padding: 1rem 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.cs-member-picker-header {
    display: grid;
    gap: .35rem;
    margin-bottom: .8rem;
}
.cs-member-picker-header > p {
    margin: 0;
    color: var(--cs-text-3);
    font-size: .84rem;
}
.cs-member-picker > .cs-detail-field > .cs-hint { margin-bottom: .75rem; }
.cs-member-search-results {
    display: grid;
    gap: .55rem;
    max-height: 320px;
    overflow: auto;
    overscroll-behavior: contain;
    padding: .35rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.cs-member-search-status { margin: 0; color: var(--cs-text-3); font-size: .82rem; }
.cs-member-search-group { min-width: 0; }
.cs-member-search-group-title {
    margin: 0 0 .45rem;
    color: var(--cs-text-2);
    font-size: .82rem;
    font-weight: 700;
}
.cs-member-search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}
.cs-member-search-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    min-width: 0;
    min-height: 46px;
    padding: .45rem .6rem;
    border: 1px solid var(--cs-border-strong);
    border-radius: .45rem;
    background: var(--cs-surface);
    color: var(--cs-text-2);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.cs-member-search-option:hover {
    border-color: var(--cs-blue);
    background: var(--cs-elevated-2);
    color: var(--cs-text);
}
.cs-member-search-option:focus-visible {
    outline: 2px solid var(--cs-blue);
    outline-offset: 1px;
    border-color: var(--cs-blue);
    background: var(--cs-elevated-2);
    color: var(--cs-text);
}
.cs-member-search-name { min-width: 0; overflow-wrap: anywhere; }
.cs-member-search-add { flex: 0 0 auto; color: var(--cs-blue-2); font-size: 1.2rem; font-weight: 700; }

.cs-hint { margin-top: .5rem; font-size: .82rem; color: var(--cs-text-3); }
.cs-hint-ok   { color: #34D399; }
.cs-hint-over { color: #F87171; }

.cs-btn-checkout {
    width: 100%;
    min-height: 58px;
    display: flex; align-items: center; justify-content: center; gap: .7rem;
    background: var(--cs-blue);
    color: #fff;
    border: none;
    border-radius: var(--cs-r-md);
    font-family: inherit; font-size: 1.05rem; font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background .18s ease;
}
.cs-btn-checkout:hover { background: #0F5AE0; }

/* --------------------------------------------------------------------------
   11. TABLEAU HISTORIQUE
   -------------------------------------------------------------------------- */
.cs-table-wrap {
    background: var(--cs-elevated);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-lg);
    overflow: hidden;
}
.cs-history-card {
    width: 100%;
    padding: clamp(1rem, 2vw, 1.5rem);
    background: var(--cs-elevated);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-lg);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
}
.cs-history-card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
    padding-bottom: .9rem;
}
.cs-history-back {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .4rem;
    min-height: 40px;
    padding: .4rem .75rem;
    border: 1px solid var(--cs-border-strong);
    border-radius: 999px;
    background: var(--cs-surface);
    color: var(--cs-text-2);
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.cs-history-back:hover {
    border-color: var(--cs-blue-2);
    background: var(--cs-elevated-2);
    color: #fff;
}
.cs-history-back:focus-visible {
    outline: 2px solid var(--cs-blue-2);
    outline-offset: 2px;
}
.cs-history-card-header .cs-form-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.cs-history-count {
    flex: 0 0 auto;
    margin-left: auto;
    padding: .35rem .7rem;
    border: 1px solid var(--cs-border-strong);
    border-radius: 999px;
    background: var(--cs-surface-2);
    color: var(--cs-text-2);
    font-size: .76rem;
    font-weight: 650;
}
.cs-history-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--cs-border);
}
.cs-history-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 42px;
    padding: .5rem .85rem;
    border: 1px solid var(--cs-border-strong);
    border-radius: var(--cs-r-sm);
    background: var(--cs-surface-2);
    color: var(--cs-text);
    font-size: .82rem;
    font-weight: 650;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
a.cs-history-page-link:hover {
    border-color: var(--cs-blue-2);
    background: var(--cs-elevated-2);
    color: #fff;
}
.cs-history-page-link.is-disabled {
    color: var(--cs-text-3);
    opacity: .55;
}
.cs-history-page-status {
    color: var(--cs-text-2);
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.cs-history-card .cs-table-wrap {
    background: transparent;
    border: 0;
    border-radius: 0;
}
.cs-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cs-table th {
    padding: .9rem 1.15rem;
    text-align: left;
    background: var(--cs-surface-2);
    color: var(--cs-text-2);
    font-size: .74rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    border-bottom: 1px solid var(--cs-border);
}
.cs-table td {
    padding: .85rem 1.15rem;
    color: var(--cs-text);
    border-bottom: 1px solid var(--cs-border);
}
.cs-table tr:last-child td { border-bottom: none; }
.cs-table tbody tr:hover td { background: var(--cs-elevated-2); }
.cs-td-muted { color: var(--cs-text-2); }

/* --------------------------------------------------------------------------
   12. BADGES, ALERTES, ÉTAT VIDE
   -------------------------------------------------------------------------- */
.cs-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .22rem .75rem; border-radius: 999px;
    font-size: .76rem; font-weight: 700;
    border: 1px solid transparent;
}
.cs-badge-en-cours   { background: #16243B; color: #7FB0FF; border-color: #274064; }
.cs-badge-terminee   { background: #12291F; color: #4ADE80; border-color: #1F4634; }
.cs-badge-avarie-min { background: #2E2410; color: #FBBF24; border-color: #4A3A16; }
.cs-badge-avarie-maj { background: #2E1618; color: #FCA5A5; border-color: #4D2326; }
.cs-badge-forcee     { background: var(--cs-elevated-2); color: var(--cs-text-2); border-color: var(--cs-border-strong); }

.cs-alert {
    padding: .9rem 1.15rem;
    border-radius: var(--cs-r-md);
    margin-bottom: 1.25rem;
    font-size: .92rem;
    border: 1px solid transparent;
}
.cs-alert-success { background: #12291F; border-color: #1F4634; color: #6EE7B7; }
.cs-alert-error   { background: #2E1618; border-color: #4D2326; color: #FCA5A5; }

.cs-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--cs-text-3);
    background: var(--cs-elevated);
    border: 1px dashed var(--cs-border-strong);
    border-radius: var(--cs-r-lg);
}
.cs-empty svg { display: block; margin: 0 auto 1rem; opacity: .5; }

/* --------------------------------------------------------------------------
   13. MODALES
   -------------------------------------------------------------------------- */
.cs-modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(6, 9, 14, .85);
    z-index: 1000;
    align-items: center; justify-content: center;
    padding: 1rem;
}
.cs-modal-overlay.open { display: flex; }
.cs-modal {
    width: 100%;
    max-width: 580px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--cs-elevated);
    border: 1px solid var(--cs-border-strong);
    border-radius: var(--cs-r-lg);
    padding: 1.75rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}
.cs-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem;
}
.cs-modal-header h2 { font-size: 1.15rem; font-weight: 700; color: #fff; margin: 0; }
.cs-modal-close {
    background: none; border: none; color: var(--cs-text-2);
    cursor: pointer; font-size: 1.6rem; line-height: 1;
    width: 40px; height: 40px; border-radius: var(--cs-r-sm);
}
.cs-modal-close:hover { background: var(--cs-elevated-2); color: #fff; }
.cs-modal-text { color: var(--cs-text-2); font-size: .95rem; line-height: 1.6; margin: 0 0 1.25rem; }
.cs-modal-text strong { color: #fff; }

.cs-choice-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: .5rem; }
.cs-choice-pair--personal { grid-template-columns: 1fr; }
.cs-choice-big {
    min-height: 96px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
    padding: 1rem;
    border-radius: var(--cs-r-md);
    border: 2px solid var(--cs-border-strong);
    background: var(--cs-surface-2);
    font-family: inherit; font-size: 1rem; font-weight: 700;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}
.cs-choice-big[hidden] { display: none !important; }
.cs-choice-big > span:first-child { font-size: 1.6rem; line-height: 1; }
.cs-choice-big > span:not(:first-child) { font-size: 1rem; line-height: 1.25; }
.cs-choice-ok     { color: #34D399; }
.cs-choice-ok:hover     { border-color: var(--cs-green); background: #12291F; }
.cs-choice-alert  { color: #FCA5A5; }
.cs-choice-alert:hover  { border-color: var(--cs-red); background: #2E1618; }

.cs-avarie-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.cs-avarie-equipment-label { margin: 0 0 1rem; color: var(--cs-text-2); font-size: .88rem; }
.cs-avarie-equipment-label strong { color: var(--cs-text-1); }
.cs-avarie-units { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .4rem; }
.cs-avarie-unit-option { display: flex; align-items: center; gap: .5rem; min-height: 42px; padding: .45rem .65rem; border: 1px solid var(--cs-border-strong); border-radius: 6px; background: var(--cs-surface-2); color: var(--cs-text-2); font-size: .82rem; }
.cs-avarie-unit-option input { accent-color: var(--cs-blue-2); }
.cs-avarie-unit-option:has(input:disabled) { opacity: .8; }
.cs-avarie-immobilisation-warning { margin: -.1rem 0 1rem; padding: .8rem .9rem; border: 1px solid #e9a23b; border-left: 4px solid #e9a23b; border-radius: 6px; background: #332816; color: #ffe0a3; font-size: .86rem; line-height: 1.45; }
.cs-avarie-btn {
    padding: 1rem .8rem;
    border-radius: var(--cs-r-md);
    border: 2px solid var(--cs-border-strong);
    background: var(--cs-surface-2);
    color: var(--cs-text-2);
    font-family: inherit; font-size: .86rem; font-weight: 600;
    cursor: pointer; text-align: center;
    transition: border-color .18s ease, background .18s ease;
}
.cs-avarie-btn small { display: block; font-weight: 500; color: var(--cs-text-3); margin-top: .2rem; }
.cs-avarie-btn:hover { border-color: var(--cs-border-strong); background: var(--cs-elevated-2); }
.cs-avarie-btn.selected { background: var(--cs-elevated-2); border-color: currentColor; color: #fff; }
.cs-avarie-icon { width: 24px; height: 24px; display: block; margin: 0 auto .4rem; color: var(--cs-blue-2); }
.cs-avarie-btn[data-type="mineure"] .cs-avarie-icon { color: var(--cs-amber); }
.cs-avarie-btn[data-type="majeure"] .cs-avarie-icon { color: var(--cs-red); }
.cs-avarie-btn[data-type="probleme_reglage"] .cs-avarie-icon { color: #A78BFA; }
.cs-avarie-btn[data-type="entretien_preventif"] .cs-avarie-icon { color: var(--cs-blue-2); }
.cs-avarie-btn[data-type="perte_materiel"] .cs-avarie-icon { color: #FB923C; }
.cs-avarie-btn[data-type="majeure"].selected            { border-color: var(--cs-red); }
.cs-avarie-btn[data-type="mineure"].selected            { border-color: var(--cs-amber); }
.cs-avarie-btn[data-type="entretien_preventif"].selected{ border-color: var(--cs-blue); }
.cs-avarie-btn[data-type="probleme_reglage"].selected   { border-color: #A78BFA; }
.cs-avarie-btn[data-type="perte_materiel"].selected     { border-color: #FB923C; }
.cs-localisation-grid { display: flex; flex-wrap: wrap; gap: .4rem; }
.cs-localisation-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; margin-bottom: .5rem; }
.cs-localisation-heading .cs-label { margin-bottom: 0; }
.cs-localisation-hint { color: var(--cs-text-3); font-size: .76rem; }
.cs-localisation-option {
    position: relative;
    display: flex; align-items: center; gap: .6rem;
    flex: 0 1 auto; max-width: 100%; min-height: 44px; padding: .4rem .7rem;
    border: 1px solid var(--cs-border-strong);
    border-radius: 999px;
    background: var(--cs-surface-2);
    color: var(--cs-text-2); font-size: .84rem;
    cursor: pointer;
}
.cs-localisation-option:has(input:checked) {
    border-color: var(--cs-blue-2);
    background: var(--cs-elevated-2);
    color: var(--cs-text);
}
.cs-localisation-option input {
    position: absolute;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
}
.cs-localisation-option:focus-within { outline: 2px solid var(--cs-blue-2); outline-offset: 2px; }

.cs-photo-zone {
    position: relative;
    border: 2px dashed var(--cs-border-strong);
    border-radius: var(--cs-r-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease;
}
.cs-photo-zone:hover { border-color: var(--cs-blue); }
.cs-photo-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cs-photo-zone p { color: var(--cs-text-3); font-size: .88rem; margin: 0; }

.cs-btn-avarie-submit {
    width: 100%; min-height: 54px;
    background: var(--cs-red); color: #fff;
    border: none; border-radius: var(--cs-r-md);
    font-family: inherit; font-size: 1rem; font-weight: 700;
    cursor: pointer;
}
.cs-btn-avarie-submit:disabled { opacity: .45; cursor: not-allowed; }

/* ==========================================================================
   14. PAGE DE CONNEXION ADHÉRENT
   ========================================================================== */
body.cs-auth { min-height: 100vh; min-height: 100svh; overflow-x: hidden; }
body.cs-auth::before { filter: grayscale(100%) brightness(.78); }
body.cs-auth::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .3));
}

.cs-auth-shell {
    display: grid;
    grid-template-columns: minmax(260px, 30%) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100svh;
}

body.cs-auth-activation .cs-auth-shell {
    grid-template-columns: minmax(0, 1fr);
}
body.cs-auth-activation .cs-auth-brand {
    display: none;
}
body.cs-auth-activation .cs-auth-panel {
    grid-column: 1;
}

.cs-auth-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(1.25rem, 3vw, 3rem);
    background: #07142e;
    border-right: 1px solid rgba(255, 255, 255, .12);
}
.cs-auth-brand::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    background: url('../View/image/sport_hero_final.png') center / cover no-repeat;
    filter: grayscale(100%) brightness(.58);
    opacity: .58;
}
.cs-auth-brand::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    background: linear-gradient(180deg, rgba(8, 29, 72, .72), rgba(3, 10, 25, .88));
    pointer-events: none;
}
.cs-auth-brand-mark {
    position: relative;
    z-index: 2;
    display: block;
    width: min(100%, 350px);
    isolation: isolate;
}
.cs-auth-brand-mark::before {
    position: absolute;
    z-index: -1;
    inset: 12% -10%;
    content: "";
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(28, 91, 204, .34), rgba(7, 20, 46, 0) 70%);
    filter: blur(18px);
}
.cs-auth-brand-logo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;
    filter: drop-shadow(0 18px 38px rgba(0, 0, 0, .42));
}

.cs-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: clamp(1.25rem, 4vw, 3rem);
}
.cs-auth-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    width: min(100%, 560px);
}
.csl-content-activation { width: min(100%, 980px); }
.csl-navigation {
    display: flex;
    width: min(100%, 414px);
    min-height: var(--cs-touch);
    align-items: center;
    justify-content: stretch;
}
.csl-navigation a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}
.csl-home-link:focus-visible {
    outline: 3px solid #9fc2ff;
    outline-offset: 3px;
}
.csl-navigation svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.csl-home-link {
    flex: 1;
    min-height: var(--cs-touch);
    justify-content: center !important;
    gap: .65rem;
    padding: 0 1rem;
    overflow: hidden;
    border: 1px solid var(--cs-border-strong);
    border-radius: var(--cs-r-md);
    background: var(--cs-elevated);
    color: var(--cs-text-2);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.csl-home-link:hover {
    border-color: var(--cs-blue);
    background: var(--cs-elevated-2);
    color: #fff;
}
.csl-home-back-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}
.csl-home-back-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.csl-card {
    width: 100%;
    max-width: 414px;
    padding: clamp(1.5rem, 3.8vw, 2.5rem);
    background: #0d0f13;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 17px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}
.csl-card-activation {
    max-width: 900px;
    padding: clamp(1.35rem, 3vw, 2rem);
}
.csl-content-activation .csl-navigation { max-width: 900px; }
.csl-card-activation > form {
    width: 100%;
}
.csl-activation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: stretch;
    column-gap: clamp(1.25rem, 3vw, 2.5rem);
    row-gap: 1rem;
}
.csl-activation-fields {
    grid-column: 1;
    min-width: 0;
    padding-right: clamp(1rem, 2.5vw, 2rem);
    border-right: 1px solid rgba(255, 255, 255, .18);
}
.csl-activation-fields .csl-title {
    margin-bottom: 1.35rem;
    text-align: center;
    text-transform: none;
}
.csl-activation-fields .csl-field { margin-bottom: .85rem; }
.csl-activation-info {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-self: center;
    gap: 1rem;
    min-width: 0;
}
.csl-activation-info .csl-consent { margin: 0; }
.csl-activation-info .csl-btn {
    width: 100%;
    margin-top: 0;
}
.csl-card-activation .csl-switch {
    width: min(100%, 420px);
    margin-inline: auto;
}
.csl-title { font-size: 1.25rem; font-weight: 800; color: #fff; text-align: center; margin: 0 0 1.45rem; }
.csl-subtitle { font-size: .95rem; color: var(--cs-text-2); line-height: 1.55; margin: 0 0 1.75rem; }

.csl-field { margin-bottom: 1.15rem; }
.csl-field label {
    display: block;
    font-size: .8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--cs-text-2);
    margin-bottom: .5rem;
}
.csl-field input {
    width: 100%;
    min-height: 42px;
    padding: .55rem .35rem;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .36);
    border-radius: 0;
    color: #fff;
    font-family: inherit;
    font-size: 1.05rem;
    outline: none;
    transition: border-color .18s ease, background .18s ease;
}
.csl-field input:focus { border-bottom-color: var(--cs-blue); background: transparent; }
.csl-field input::placeholder { color: var(--cs-text-3); }

/* Saisie du PIN — repli sans JS : champ classique agrandi */
.csl-pin input {
    text-align: center;
    letter-spacing: .65em;
    padding-left: .65em;
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
}
/* Amélioration progressive : 6 cases distinctes */
.csl-pin.is-enhanced input { position: absolute; opacity: 0; pointer-events: none; height: 0; }
.cs-pin-boxes { display: flex; gap: clamp(.35rem, 1vw, .65rem); }
.cs-pin-boxes input.cs-pin-box {
    position: static; opacity: 1; pointer-events: auto;
    flex: 1; min-width: 0;
    height: 54px;
    padding: 0;
    text-align: center;
    letter-spacing: 0;
    font-size: 1.7rem; font-weight: 700;
    background: transparent;
    border: 2px solid #1762df;
    border-radius: var(--cs-r-md);
    color: #fff;
    caret-color: transparent;
}
.cs-pin-boxes input.cs-pin-box:focus { border-color: var(--cs-blue); background: var(--cs-elevated-2); }
.cs-pin-boxes input.cs-pin-box.filled { border-color: var(--cs-blue); }

.csl-hint { font-size: .8rem; color: var(--cs-text-3); margin-top: .45rem; }
.csl-consent {
    margin: 1.4rem 0 .75rem;
    padding: 1rem;
    border: 1px solid var(--cs-border-strong);
    border-radius: var(--cs-r-md);
    background: var(--cs-elevated);
    color: var(--cs-text-2);
    font-size: .86rem;
    line-height: 1.55;
}
.csl-consent h3 { margin: 0 0 .55rem; color: #fff; font-size: .95rem; }
.csl-consent p { margin: 0; }
.csl-consent a { color: var(--cs-blue-2); font-weight: 700; }
.csl-consent-choice {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-top: .9rem;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}
.csl-consent-choice input {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin: .15rem 0 0;
    accent-color: var(--cs-blue);
}
.csl-btn {
    width: 100%;
    min-height: var(--cs-touch);
    margin-top: .75rem;
    background: var(--cs-blue);
    color: #fff;
    border: none;
    border-radius: var(--cs-r-md);
    box-shadow: 0 10px 24px rgba(26, 109, 255, .28);
    font-family: inherit; font-size: 1rem; font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, box-shadow .18s ease;
}
.csl-btn:hover { background: #0F5AE0; box-shadow: 0 12px 28px rgba(26, 109, 255, .36); }
.csl-btn:focus-visible,
.csl-switch a.csl-switch-button:focus-visible { outline: 3px solid #9fc2ff; outline-offset: 3px; }

.csl-alert {
    padding: .85rem 1.1rem;
    border-radius: var(--cs-r-md);
    font-size: .9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.csl-alert-error   { background: #2E1618; border-color: #4D2326; color: #FCA5A5; }
.csl-alert-success { background: #12291F; border-color: #1F4634; color: #6EE7B7; }

.csl-switch {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 1.15rem;
    padding-top: 0;
    border-top: 0;
    font-size: .9rem;
    color: var(--cs-text-2);
    line-height: 1.45;
}
.csl-switch a { color: var(--cs-blue-2); font-weight: 700; }
.csl-switch a:hover { text-decoration: underline; }
.csl-switch a.csl-switch-button {
    display: flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    padding: .7rem 1rem;
    border-radius: 15px;
    background: #1762df;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: background .18s ease;
}
.csl-switch a.csl-switch-button:hover { background: #0f55ca; }

/* ==========================================================================
   15. PAGE GESTION DES ACCÈS (côté club)
   ========================================================================== */
.csa-wrap { max-width: 1180px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.csa-section {
    background: var(--cs-elevated);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.csa-section-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    padding: 1.15rem 1.5rem;
    background: var(--cs-surface-2);
    border-bottom: 1px solid var(--cs-border);
}
.csa-section-header h2 { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0; }
.csa-section-header p { font-size: .84rem; color: var(--cs-text-3); margin: .2rem 0 0; }
.csa-section-body { padding: 1.25rem 1.5rem 1.5rem; }

.csa-note {
    background: var(--cs-surface-2);
    border: 1px solid var(--cs-border);
    border-left: 4px solid var(--cs-blue);
    border-radius: var(--cs-r-md);
    color: var(--cs-text-2);
    padding: 1.1rem 1.25rem;
    font-size: .88rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.csa-note strong { color: #fff; }
.csa-note em { color: var(--cs-blue-2); font-style: normal; font-family: ui-monospace, Menlo, monospace; }

.csa-alert { padding: .85rem 1.1rem; border-radius: var(--cs-r-md); font-size: .9rem; margin-bottom: 1rem; border: 1px solid transparent; }
.csa-alert-error { background: #2E1618; border-color: #4D2326; color: #FCA5A5; }
.csa-alert-ok    { background: #12291F; border-color: #1F4634; color: #6EE7B7; }

/* Filtres */
.csa-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.csa-filter {
    padding: .45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--cs-border-strong);
    background: var(--cs-surface-2);
    color: var(--cs-text-2);
    font-family: inherit; font-size: .84rem; font-weight: 600;
    cursor: pointer;
}
.csa-filter:hover { color: #fff; }
.csa-filter.active { background: var(--cs-blue); border-color: var(--cs-blue); color: #fff; }

.csa-search {
    width: 100%; max-width: 340px; min-height: 44px;
    padding: .6rem 1rem;
    background: var(--cs-surface);
    border: 1px solid var(--cs-border-strong);
    border-radius: var(--cs-r-sm);
    color: #fff; font-family: inherit; font-size: .92rem;
    outline: none;
}
.csa-search:focus { border-color: var(--cs-blue); }
.csa-search::placeholder { color: var(--cs-text-3); }

.csa-table { width: 100%; border-collapse: collapse; }
.csa-table th {
    text-align: left;
    font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
    color: var(--cs-text-2);
    padding: .85rem 1rem;
    background: var(--cs-surface-2);
    border-bottom: 1px solid var(--cs-border);
}
.csa-table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--cs-border);
    font-size: .9rem;
    color: var(--cs-text);
}
.csa-table tr:last-child td { border-bottom: none; }
.csa-table tbody tr:hover td { background: var(--cs-elevated-2); }
.csa-cell-label { display: none; }

.csa-login {
    display: inline-block;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: .92rem; font-weight: 600;
    color: #9EC1FF;
    background: #16243B;
    border: 1px solid #274064;
    padding: .25rem .6rem;
    border-radius: 7px;
}
.csa-login[title] { cursor: help; }

.csa-badge {
    display: inline-block;
    padding: .22rem .7rem;
    border-radius: 999px;
    font-size: .74rem; font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
}
.csa-badge-actif   { background: #12291F; color: #6EE7B7; border-color: #1F4634; }
.csa-badge-attente { background: #2E2410; color: #FCD34D; border-color: #4A3A16; }
.csa-badge-bloque  { background: #2E1618; color: #FCA5A5; border-color: #4D2326; }
.csa-badge-revoque { background: var(--cs-elevated-2); color: var(--cs-text-2); border-color: var(--cs-border-strong); }

.csa-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.csa-btn {
    border: 1px solid var(--cs-border-strong);
    background: var(--cs-surface-2);
    cursor: pointer;
    padding: .45rem .85rem;
    border-radius: var(--cs-r-sm);
    font-family: inherit; font-size: .8rem; font-weight: 700;
    white-space: nowrap;
}
.csa-btn-reset { color: #9EC1FF; }
.csa-btn-reset:hover { background: #16243B; border-color: #274064; }
.csa-btn-off { color: #FCA5A5; }
.csa-btn-off:hover { background: #2E1618; border-color: #4D2326; }
.csa-btn-on { color: #6EE7B7; }
.csa-btn-on:hover { background: #12291F; border-color: #1F4634; }

.csa-empty { text-align: center; padding: 3rem 1rem; color: var(--cs-text-3); }

.csa-hint {
    color: var(--cs-text-2);
    font-size: .9rem;
    line-height: 1.65;
    margin: 0 0 1.25rem;
}

/* ==========================================================================
   16. APPAREIL APPAIRÉ (tablette du ponton)
   ========================================================================== */
.csd-board {
    width: calc(100% - var(--cs-frame-gutter));
    max-width: var(--cs-frame-max-width);
    margin: 0 auto;
    padding: clamp(1rem, 2vw, 2rem) 0;
    display: flex;
    flex-direction: column;
    gap: clamp(.75rem, 1.5vw, 1.25rem);
}
.csd-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.csd-board-heading { min-width: 0; }
.csd-board-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--cs-text-2);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.csd-board-heading h1 {
    margin: .3rem 0 .1rem;
    color: #fff;
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -.035em;
}
.csd-board-heading p { margin: 0; color: var(--cs-text-2); font-size: .88rem; }
.csd-cta {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
    background: var(--cs-surface);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--cs-r-lg);
    padding: .6rem .65rem .6rem 1rem;
}
.csd-cta p { margin: 0; color: var(--cs-text-2); font-size: .85rem; }
.csd-cta .cs-btn-lg { width: auto; min-width: 190px; }
.csd-live-section {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: clamp(1rem, 1.7vw, 1.5rem);
    background: var(--cs-surface);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.csd-live-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.csd-live-toggle {
    position: relative;
    width: 100%;
    padding: 0 1.1rem 0 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.csd-live-toggle::after {
    content: "";
    position: absolute;
    right: .2rem;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--cs-text-2);
    border-bottom: 2px solid var(--cs-text-2);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .18s ease;
}
.csd-live-toggle[aria-expanded="true"]::after {
    transform: translateY(-20%) rotate(225deg);
}
.csd-live-toggle:focus-visible {
    outline: 2px solid var(--cs-blue-2);
    outline-offset: 4px;
    border-radius: var(--cs-r-sm);
}
.csd-live-eyebrow {
    display: block;
    margin-bottom: .25rem;
    color: var(--cs-text-3);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.csd-live-heading h2 { margin: 0; color: #fff; font-size: clamp(1rem, 1.4vw, 1.25rem); }
.csd-live-count {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 .7rem;
    border: 1px solid rgba(92, 151, 255, .3);
    border-radius: 999px;
    background: rgba(26, 109, 255, .16);
    color: #c1d8ff;
    font-size: .95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.csd-live-section > .csh-live-content {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
}
.csd-live-empty-state {
    display: flex;
    min-height: 220px;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    color: var(--cs-text-2);
    text-align: center;
}
.csd-live-empty-state strong { color: #fff; font-size: 1.05rem; }
.csd-live-empty-state > span:last-child { font-size: .88rem; }
.csd-live-empty-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin-bottom: .35rem;
    border: 1px solid rgba(92, 151, 255, .22);
    border-radius: 20px;
    background: rgba(26, 109, 255, .12);
    color: #9fc2ff;
}

.csd-code-display {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    background: var(--cs-elevated-2);
    border: 1px dashed var(--cs-blue);
    border-radius: var(--cs-r-lg);
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
}
.csd-code-label { font-size: .82rem; color: var(--cs-text-3); text-align: center; }
.csd-code-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 2.2rem; font-weight: 800; letter-spacing: .35em;
    color: #fff; padding-left: .35em;
}

.csd-pair-form { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.csd-pair-form .cs-input { flex: 1; min-width: 220px; }

.csd-code-input {
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.6rem; font-weight: 700; letter-spacing: .3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Mode borne : bandeau d'expiration imminente de la session personnelle */
.cs-borne-idle {
    position: fixed;
    left: 50%; bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 60;
    display: flex; align-items: center; gap: 1rem;
    max-width: calc(100% - 2rem);
    background: var(--cs-elevated-2);
    border: 1px solid var(--cs-amber);
    border-radius: var(--cs-r-lg);
    padding: .85rem 1.25rem;
    color: #fff;
    font-size: .92rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.cs-borne-idle[hidden] { display: none; }
.cs-borne-idle strong { color: var(--cs-amber); }
.cs-borne-idle .cs-btn-ghost { min-height: 40px; white-space: nowrap; }

.csl-remember {
    display: flex; align-items: flex-start; gap: .65rem;
    margin: 0 0 1.25rem;
    color: var(--cs-text-2);
    font-size: .88rem;
    line-height: 1.5;
    cursor: pointer;
}
.csl-remember input { width: 20px; height: 20px; margin-top: .1rem; flex-shrink: 0; accent-color: var(--cs-blue); }
.csl-remember em { color: var(--cs-text-3); font-style: normal; }

.csl-borne-note {
    border-left: 3px solid var(--cs-amber);
    padding-left: .75rem;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   17. RESPONSIVE — priorité tablette du club
   ========================================================================== */
@media (pointer: coarse) {
    .cs-seance-btn,
    .cs-boat-type-btn,
    .cs-equipment-filter,
    .cs-last-crew-button,
    .cs-member-search-option,
    .cs-add-member-btn,
    .cs-crew-role-toggle,
    .cs-remove-btn,
    .cs-modal-close,
    .csa-filter,
    .csa-btn {
        min-height: 44px;
    }
    .cs-remove-btn,
    .cs-modal-close { width: 44px; }
}

@media (max-width: 1200px) {
    .csh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .cs-auth-shell {
        grid-template-columns: minmax(220px, 30%) minmax(0, 1fr);
    }
    .cs-auth-brand {
        padding: 1.5rem;
    }
    .cs-auth-brand-mark { width: min(100%, 280px); }
    .cs-auth-panel { padding: 1.5rem; }
}

@media (max-width: 760px) {
    .cs-auth-shell {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
    }
    .cs-auth-brand { display: none; }
    .cs-auth-panel { padding: clamp(1rem, 5vw, 2rem); }
    .cs-auth-content { gap: .9rem; }
    .csl-content-activation { width: min(100%, 560px); }
    .csl-activation-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 1rem; }
    .csl-activation-fields {
        grid-column: 1;
        grid-row: auto;
        padding: 0;
        border: 0;
    }
    .csl-activation-info { grid-column: 1; align-self: stretch; }
    .csl-card-activation .csl-switch { margin-left: 0; }
}

@media (max-width: 480px) {
    .cs-auth-panel { align-items: flex-start; padding: 1rem .75rem 1.5rem; }
    .cs-auth-content { gap: .75rem; }
    .csl-navigation { width: min(100%, 414px); }
    .csl-home-link { padding-inline: .9rem; }
    .csl-card { padding: 1.35rem 1.15rem; border-radius: 15px; }
    .csl-title { margin-bottom: 1.2rem; }
    .cs-pin-boxes { gap: .35rem; }
    .cs-pin-boxes input.cs-pin-box { height: 48px; font-size: 1.35rem; border-radius: 10px; }
    .csl-field { margin-bottom: .95rem; }
}

@media (max-width: 1024px), (pointer: coarse) and (max-width: 1366px) {
    .cs-form-grid { grid-template-columns: 1fr; gap: 1.25rem; }

    /* Format tablette inclus : une sidebar de 300px prenait trop de place, même ancrée */
    .cs-main-layout { flex-direction: column; align-items: stretch; }
    .cs-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--cs-border);
        padding: .85rem 1.25rem 1rem;
    }
    .cs-sidebar-title { margin-bottom: .6rem; }

    /* Sorties en cours : bande déroulante horizontale compacte, une seule ligne d'info par carte */
    .cs-sidebar-list {
        display: flex;
        gap: .6rem;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        margin: 0 -1.25rem;
        padding: 0 1.25rem .3rem;
    }
    .cs-sidebar-list .cs-sortie-card {
        flex: 0 0 220px;
        scroll-snap-align: start;
        padding: .6rem .7rem;
        margin-bottom: 0;
    }
    .cs-sidebar-list .cs-sortie-equip { font-size: .86rem; margin-bottom: .2rem; }
    .cs-sidebar-list .cs-sortie-meta { margin-bottom: .4rem; }
    .cs-sidebar-list .cs-crew {
        margin-bottom: .4rem;
        gap: 0;
    }
    /* Le détail de l'équipage cède la place à un simple décompte, pour tenir sur une ligne */
    .cs-sidebar-list .cs-crew span { display: none; }
    .cs-sidebar-list .cs-crew::before {
        content: attr(data-count) " à bord";
        font-size: .74rem;
        color: var(--cs-text-3);
    }
    .cs-sidebar-list .cs-btn-checkin { min-height: 38px; font-size: .82rem; }
    .cs-sidebar-list .cs-btn-force { min-height: 34px; margin-top: .35rem; }
    .cs-sidebar-list .cs-sortie-card-actions {
        margin: .5rem -.7rem -.6rem;
        padding: .5rem .7rem .6rem;
    }

    .csh-choices { gap: 1rem; }
    .csh-choice { min-height: 180px; font-size: 1.2rem; }
    .csh-panel { padding: 1.25rem 1.25rem 1.5rem; }
    .cs-avarie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Formulaire de sortie : présentation resserrée */
    .cs-content { padding: 1.25rem 1rem 2rem; }
    .cs-form-card {
        padding: 1.25rem 1.1rem 1.4rem;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    }
    .cs-form-title { font-size: 1.05rem; padding-bottom: .9rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--cs-border); }
    .cs-panel-block { padding: 1.1rem; }
    .cs-form-grid { gap: 1rem; margin-bottom: 1.25rem; }
    .cs-col { gap: 1rem; }

}

@media (max-width: 480px) {
    .cs-avarie-grid { grid-template-columns: 1fr; }
}

@media (min-width: 700px) and (max-width: 1366px) {
    .cs-main-layout { flex-direction: row; align-items: stretch; }
    .cs-sidebar {
        flex: 0 0 20%;
        width: 20%;
        max-height: calc(100vh - 72px);
        position: sticky;
        top: 72px;
        overflow-y: auto;
        border-right: 1px solid var(--cs-border);
        border-bottom: none;
        padding: .75rem .65rem 1rem;
    }
    .cs-sidebar-title { font-size: .72rem; gap: .35rem; }
    .cs-sidebar-list {
        flex-direction: column;
        overflow: visible;
        gap: .45rem;
        margin: 0;
        padding: 0;
        scroll-snap-type: none;
    }
    .cs-sidebar-list .cs-sortie-card {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }
    .cs-sidebar-list .cs-sortie-card { padding: .55rem; }
    .cs-sidebar-list .cs-sortie-card-actions {
        margin: .5rem -.55rem -.55rem;
        padding: .45rem .55rem .55rem;
    }
    .cs-content {
        flex: 1 1 80%;
        width: 80%;
        min-width: 0;
        padding: 1.25rem;
    }
    .cs-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }
    .cs-table { min-width: 760px; }
    .cs-table th,
    .cs-table td { padding-left: .7rem; padding-right: .7rem; }
}

@media (min-width: 700px) and (max-width: 960px) {
    .cs-main-layout { flex-direction: column; align-items: stretch; }
    .cs-sidebar {
        flex: 0 0 auto;
        width: 100%;
        max-height: none;
        position: static;
        overflow: visible;
        border-right: none;
        border-bottom: 1px solid var(--cs-border);
        padding: .75rem 1rem;
    }
    .cs-sidebar-list {
        flex-direction: row;
        overflow-x: auto;
        gap: .55rem;
        margin: 0 -1rem;
        padding: 0 1rem .3rem;
        scroll-snap-type: x proximity;
    }
    .cs-sidebar-list .cs-sortie-card { flex: 0 0 220px; }
    .cs-content {
        flex: 1 1 auto;
        width: 100%;
        padding: 1.25rem 1rem 2rem;
    }
}

@media (max-width: 960px) {
    .cs-sidebar {
        position: relative;
        z-index: 10;
        overflow: visible;
    }
    .cs-sidebar-disclosure { position: static; }
    .cs-sidebar-panel {
        max-height: none;
    }
}

body.cs-page.cs-theme-light #cs-main[data-active-tab="historique"] .cs-sidebar {
    background: var(--cs-surface-2);
    border-color: var(--cs-border);
    padding: .75rem;
}
body.cs-page.cs-theme-light #cs-main[data-active-tab="historique"] .cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) {
    padding: .4rem;
}
body.cs-page.cs-theme-light #cs-main[data-active-tab="historique"] .cs-sidebar-disclosure {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}
body.cs-page.cs-theme-light #cs-main[data-active-tab="historique"] .cs-sidebar-empty {
    background: var(--cs-elevated);
    border-color: var(--cs-border);
    color: var(--cs-text-2);
}

.cs-header-theme-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
.cs-header-theme-toggle svg { flex: 0 0 auto; }

body.cs-page.cs-theme-transition,
body.cs-page.cs-theme-transition *,
body.cs-page.cs-theme-transition::before,
body.cs-page.cs-theme-transition::after {
    transition-property: background-color, color, border-color, box-shadow, filter;
    transition-duration: .28s;
    transition-timing-function: ease;
}

@media (prefers-reduced-motion: reduce) {
    body.cs-page.cs-theme-transition,
    body.cs-page.cs-theme-transition *,
    body.cs-page.cs-theme-transition::before,
    body.cs-page.cs-theme-transition::after {
        transition-duration: 0s;
    }
}

body.cs-page.cs-theme-light {
    --cs-surface: #E1E2E5;
    --cs-surface-2: #E9EAEC;
    --cs-elevated: #F9FAFB;
    --cs-elevated-2: #DDE0E4;
    --cs-border: #C8CBD0;
    --cs-border-strong: #A6ACB5;
    --cs-text: #29313B;
    --cs-text-2: #4E5865;
    --cs-text-3: #68727F;
    --cs-blue: #155EEF;
    --cs-blue-2: #175CD3;
    --cs-green: #039855;
    --cs-amber: #B54708;
    --cs-red: #B42318;
    background: var(--cs-surface);
    color: var(--cs-text);
}

body.cs-page.cs-theme-light::before { filter: grayscale(100%) brightness(.85); }
body.cs-page.cs-theme-light::after {
    background: radial-gradient(circle at center, rgba(225, 226, 229, .08) 20%, rgba(225, 226, 229, .45) 100%);
}

body.cs-page.cs-theme-light .cs-header {
    background: rgba(249, 250, 251, .94);
    border-color: #C8CBD0;
    box-shadow: 0 4px 24px rgba(16, 24, 40, .12);
}
body.cs-page.cs-theme-light .cs-header-titles strong,
body.cs-page.cs-theme-light .cs-header-page-title {
    color: #29313B;
    text-shadow: none;
}
body.cs-page.cs-theme-light .cs-header-titles span,
body.cs-page.cs-theme-light .cs-header-datetime { color: #4E5865; }
body.cs-page.cs-theme-light .cs-header-datetime time:last-child {
    color: #29313B;
    text-shadow: none;
}
body.cs-page.cs-theme-light .cs-header-user {
    background: rgba(21, 94, 239, .08);
    border-color: rgba(21, 94, 239, .2);
    color: #29313B;
}
body.cs-page.cs-theme-light .cs-header-account-menu {
    background: #FFFFFF;
    border-color: #C8CBD0;
    box-shadow: 0 14px 36px rgba(16, 24, 40, .16);
}
body.cs-page.cs-theme-light.cs-page--checkout .cs-checkout-back {
    background: var(--cs-surface-2);
    border-color: var(--cs-border-strong);
    color: var(--cs-text-2);
}
body.cs-page.cs-theme-light.cs-page--checkout .cs-checkout-back:hover {
    background: var(--cs-elevated-2);
    color: var(--cs-text);
}
body.cs-page.cs-theme-light .cs-header-menu-link { color: #29313B; }
body.cs-page.cs-theme-light .cs-header-menu-link:hover,
body.cs-page.cs-theme-light .cs-header-menu-link:focus-visible {
    background: #E8F0FF;
    color: #155EEF;
}
body.cs-page.cs-theme-light .cs-header-menu-link--primary { color: #B42318; }
body.cs-page.cs-theme-light .cs-header-menu-link--primary:hover,
body.cs-page.cs-theme-light .cs-header-menu-link--primary:focus-visible {
    background: #FEF3F2;
    color: #B42318;
}
body.cs-page.cs-theme-light .cs-header-menu-link--accent { color: #155EEF; }
body.cs-page.cs-theme-light .cs-btn-ghost { color: var(--cs-text-2); }
body.cs-page.cs-theme-light .cs-btn-ghost:hover { color: var(--cs-text); }
body.cs-page.cs-theme-light .cs-modal-close:hover { color: var(--cs-text); }

body.cs-page.cs-theme-light .csh-stat-value,
body.cs-page.cs-theme-light .csh-welcome strong,
body.cs-page.cs-theme-light .csh-live-title,
body.cs-page.cs-theme-light .csh-live-item-heading strong,
body.cs-page.cs-theme-light .csh-live-duration .cs-timer,
body.cs-page.cs-theme-light .cs-sortie-equip,
body.cs-page.cs-theme-light .cs-wizard-title,
body.cs-page.cs-theme-light .cs-departure-time strong,
body.cs-page.cs-theme-light .cs-equipment-group-header h4,
body.cs-page.cs-theme-light .cs-checkout-summary dd,
body.cs-page.cs-theme-light .cs-form-title,
body.cs-page.cs-theme-light .cs-panel-block h3,
body.cs-page.cs-theme-light .cs-equipage-item,
body.cs-page.cs-theme-light .cs-history-card-header .cs-form-title,
body.cs-page.cs-theme-light .cs-modal-header h2,
body.cs-page.cs-theme-light .cs-modal-text strong,
body.cs-page.cs-theme-light .csd-live-table td:first-child strong,
body.cs-page.cs-theme-light .csd-live-heading h2,
body.cs-page.cs-theme-light .csd-live-empty-state strong {
    color: var(--cs-text);
}

body.cs-page.cs-theme-light .csh-stat--free .csh-stat-value { color: #067647; }
body.cs-page.cs-theme-light .csh-stat--alert .csh-stat-value { color: #B42318; }
body.cs-page.cs-theme-light .csh-stat--time .csh-stat-value { color: #B54708; }
body.cs-page.cs-theme-light .csh-choice { color: var(--cs-text); }
body.cs-page.cs-theme-light .csh-choice:hover { background: #E3E7EC; }
body.cs-page.cs-theme-light .csh-choice--in svg { color: #039855; }
body.cs-page.cs-theme-light .csh-live-item:hover { background: #E9EEF5; }
body.cs-page.cs-theme-light .csh-live-duration { background: var(--cs-surface); }
body.cs-page.cs-theme-light .cs-crew-category {
    border-color: #C8D1DF;
    background: #E7EBF1;
    color: #34445B;
}

body.cs-page.cs-theme-light .csd-live-table-wrap,
body.cs-page.cs-theme-light .csd-live-table th {
    background: var(--cs-surface-2);
}
body.cs-page.cs-theme-light .csd-live-table th { color: var(--cs-text-2); }
body.cs-page.cs-theme-light .csd-live-table tbody tr { background: var(--cs-elevated); }
body.cs-page.cs-theme-light .csd-live-table td { border-color: var(--cs-border); }
body.cs-page.cs-theme-light .cs-sidebar {
    background: var(--cs-surface-2);
    color: var(--cs-text);
}
body.cs-page.cs-theme-light .cs-sidebar-toggle { color: var(--cs-text-2); }
body.cs-page.cs-theme-light .cs-sidebar-toggle:hover { color: var(--cs-text); }
body.cs-page.cs-theme-light .cs-sidebar-empty {
    background: var(--cs-elevated);
    border-color: var(--cs-border-strong);
    color: var(--cs-text-3);
}
body.cs-page.cs-theme-light .cs-sortie-card-actions { background: var(--cs-elevated-2); }
body.cs-page.cs-theme-light .cs-t-late .cs-timer { color: #B42318; }
body.cs-page.cs-theme-light .cs-btn-checkin { color: #FFFFFF; }

body.cs-page.cs-theme-light .cs-equipment-filter.selected {
    background: var(--cs-blue);
    color: #FFFFFF;
}
body.cs-page.cs-theme-light .cs-select,
body.cs-page.cs-theme-light .cs-input,
body.cs-page.cs-theme-light .cs-textarea {
    color: var(--cs-text);
}
body.cs-page.cs-theme-light .cs-select option { color: var(--cs-text); }
body.cs-page.cs-theme-light .cs-seance-btn:hover,
body.cs-page.cs-theme-light .cs-crew-choice-btn:hover,
body.cs-page.cs-theme-light .cs-boat-type-btn:hover { color: var(--cs-text); }
body.cs-page.cs-theme-light .cs-seance-btn.selected,
body.cs-page.cs-theme-light .cs-crew-choice-btn.selected,
body.cs-page.cs-theme-light .cs-boat-type-btn.selected {
    background: var(--cs-blue);
    color: #FFFFFF;
}
body.cs-page.cs-theme-light .cs-history-back {
    background: var(--cs-surface-2);
    border-color: var(--cs-border-strong);
    color: var(--cs-text-2);
}
body.cs-page.cs-theme-light .cs-history-back:hover {
    background: var(--cs-elevated-2);
    color: var(--cs-text);
}
body.cs-page.cs-theme-light a.cs-history-page-link:hover { color: var(--cs-text); }
body.cs-page.cs-theme-light .cs-badge-en-cours { background: #EFF8FF; color: #175CD3; border-color: #B2DDFF; }
body.cs-page.cs-theme-light .cs-badge-terminee { background: #ECFDF3; color: #067647; border-color: #ABEFC6; }
body.cs-page.cs-theme-light .cs-badge-avarie-min { background: #FFFAEB; color: #B54708; border-color: #FEDF89; }
body.cs-page.cs-theme-light .cs-badge-avarie-maj { background: #FEF3F2; color: #B42318; border-color: #FECDCA; }
body.cs-page.cs-theme-light .cs-alert-success { background: #ECFDF3; border-color: #ABEFC6; color: #067647; }
body.cs-page.cs-theme-light .cs-alert-error { background: #FEF3F2; border-color: #FECDCA; color: #B42318; }

body.cs-page.cs-theme-light .cs-modal-overlay { background: rgba(16, 24, 40, .52); }
body.cs-page.cs-theme-light .cs-choice-ok { color: #067647; }
body.cs-page.cs-theme-light .cs-choice-ok:hover { background: #ECFDF3; }
body.cs-page.cs-theme-light .cs-choice-alert { color: #B42318; }
body.cs-page.cs-theme-light .cs-choice-alert:hover { background: #FEF3F2; }

body.cs-page.cs-theme-light .cst-coequipiers li strong { color: #175CD3; }
body.cs-page.cs-theme-light .cst-heat-0 { background: #E9EEF5; }
body.cs-page.cs-theme-light .csm-coach-modal-close:focus-visible {
    outline-color: var(--cs-blue);
}

@media (min-width: 961px) {
    .cs-sidebar { transition-duration: .24s; }
}

.cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) {
    flex: 0 0 0;
    width: 0;
    min-width: 0;
    height: 0;
    min-height: 0;
    padding: 0;
    border-width: 0;
    overflow: visible;
}
.cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) > .cs-sidebar-disclosure {
    position: static;
}
.cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) .cs-sidebar-toggle {
    position: absolute;
    z-index: 30;
    top: .75rem;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 48px;
    margin: 0;
    padding: .5rem;
    background: var(--cs-surface-2);
    border: 1px solid var(--cs-border);
    border-left: 0;
    border-radius: 0 var(--cs-r-sm) var(--cs-r-sm) 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
.cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) .cs-sidebar-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) .cs-sidebar-toggle::after {
    transform: rotate(-45deg);
}

@media (min-width: 961px) {
    body.cs-page:not(.cs-page--checkout) .cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) + .cs-content {
        padding-left: 4rem;
    }
}

@media (max-width: 960px) {
    .cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) {
        flex: 0 0 48px;
        width: 100%;
        height: 48px;
    }
    .cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) .cs-sidebar-toggle {
        top: 0;
    }
}

@media (min-width: 700px) and (max-width: 1024px) {
    .cs-table { min-width: 680px; font-size: .82rem; }
    .cs-table th {
        padding: .65rem .5rem;
        font-size: .66rem;
    }
    .cs-table td {
        padding: .7rem .5rem;
        white-space: nowrap;
    }
    .cs-table td:first-child { white-space: normal; }
}

@media (min-width: 1025px) and (max-width: 1366px) {
    .cs-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    /* Accès adhérents : idem, cartes empilées */
    .csa-section-body { padding: 1rem; }
    .csa-table thead { display: none; }
    .csa-table, .csa-table tbody, .csa-table tr, .csa-table td { display: block; width: 100%; }
    .csa-table tr {
        background: var(--cs-surface-2);
        border: 1px solid var(--cs-border);
        border-radius: var(--cs-r-md);
        margin-bottom: .85rem;
        padding: .35rem .25rem;
    }
    .csa-table td {
        display: flex; align-items: center; justify-content: space-between; gap: 1rem;
        padding: .6rem 1rem;
        border-bottom: 1px solid var(--cs-border);
    }
    .csa-table tr td:last-child { border-bottom: none; }
    .csa-cell-label {
        display: inline-block;
        font-size: .72rem; font-weight: 700;
        text-transform: uppercase; letter-spacing: .06em;
        color: var(--cs-text-3);
    }
}

@media (max-width: 699px) {
    .cs-history-card { padding: .75rem; }
    .cs-history-card-header { flex-wrap: wrap; gap: .6rem; margin-bottom: .75rem; }
    .cs-history-card-header .cs-form-title { flex-basis: calc(100% - 105px); font-size: 1rem; }
    .cs-history-count { padding: .3rem .55rem; font-size: .7rem; }
    .cs-history-pagination { gap: .35rem; }
    .cs-history-page-link { min-height: 40px; padding: .45rem .55rem; font-size: .76rem; }
    .cs-history-page-status { font-size: .74rem; }
    .cs-table-wrap { background: none; border: none; border-radius: 0; overflow: visible; }
    .cs-table thead { display: none; }
    .cs-table, .cs-table tbody, .cs-table tr, .cs-table td { display: block; width: 100%; }
    .cs-table tr {
        background: var(--cs-elevated);
        border: 1px solid var(--cs-border);
        border-radius: var(--cs-r-md);
        margin-bottom: .85rem;
        padding: .35rem .25rem;
    }
    .cs-table td {
        display: flex; align-items: center; justify-content: space-between; gap: 1rem;
        border-bottom: 1px solid var(--cs-border);
        padding: .6rem 1rem;
    }
    .cs-table tr td:last-child { border-bottom: none; }
    .cs-table td::before {
        content: attr(data-label);
        font-size: .72rem; font-weight: 700;
        text-transform: uppercase; letter-spacing: .06em;
        color: var(--cs-text-3);
    }
}

@media (max-width: 600px) {
    .cs-header { padding: .65rem 1rem; }
    .cs-header-titles span { display: none; }
    .csh-home { display: flex; min-height: 0; padding: 1.25rem 0 2.5rem; }
    .csh-choices { grid-template-columns: 1fr; }
    .csh-stats { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .csh-stat-value { font-size: 1.5rem; }
    .cs-form-card { padding: 1.15rem; }
    .cs-selected-crew-header { align-items: flex-start; flex-direction: column; }
    .cs-crew-count-hint { text-align: left; }
    .cs-member-search-results { max-height: 250px; padding: .55rem; }
    .cs-member-search-grid { grid-template-columns: minmax(0, 1fr); }
    .cs-wizard-progress { grid-template-columns: auto 1fr; gap: .55rem .7rem; }
    .cs-wizard-progress > :last-child { grid-column: 1 / -1; }
    .cs-equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
    .cs-equipment-card { min-height: 96px; padding: .75rem; }
    .cs-wizard-actions { gap: .55rem; }
    .cs-wizard-actions > button { flex: 1; }
    .cs-wizard-actions .cs-btn-checkout { min-width: 0; }
    .cs-checkout-summary { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
    .cs-checkout-summary dd { margin-bottom: .55rem; }
    .cs-choice-pair { grid-template-columns: 1fr; }
    .cs-pin-boxes { gap: .4rem; }
    .cs-pin-boxes input.cs-pin-box { height: 54px; font-size: 1.4rem; }
    .csa-wrap { padding: 1.25rem 1rem 3rem; }
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE — assistant de sortie, du petit mobile au grand écran
   Les dimensions restent fluides entre ces seuils, sans largeur fixe.
   -------------------------------------------------------------------------- */
.cs-main,
.cs-main-layout,
.cs-content,
.cs-form-card,
.cs-wizard-step { min-width: 0; }

.cs-content { padding-inline: clamp(.75rem, 2.5vw, 2rem); }
.cs-main[data-active-tab="checkout"] .cs-main-layout > .cs-sidebar { display: none; }
body.cs-page:not(.cs-page--checkout) .cs-main[data-active-tab="checkout"] .cs-main-layout > .cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) + .cs-content {
    padding-left: clamp(.75rem, 2.5vw, 2rem);
}
.cs-form-card {
    width: 100%;
    margin-inline: auto;
    padding: clamp(.9rem, 2vw, 1.75rem);
}
.cs-wizard-progress { grid-template-columns: max-content minmax(2.5rem, 1fr) max-content; }
.cs-equipment-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.cs-equipment-card { min-width: 0; overflow-wrap: anywhere; }
.cs-equipment-card strong,
.cs-equipment-card span { overflow-wrap: anywhere; }
.cs-checkout-summary { grid-template-columns: minmax(8rem, .4fr) minmax(0, 1fr); }
.cs-last-crew-option small { min-width: 0; overflow-wrap: anywhere; }

@media (min-width: 1201px) {
    .cs-form-card { max-width: 1160px; }
    .cs-equipment-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}

@media (min-width: 1500px) {
    .cs-content { padding-inline: clamp(2rem, 3vw, 3.5rem); }
    body.cs-page:not(.cs-page--checkout) .cs-main[data-active-tab="checkout"] .cs-main-layout > .cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) + .cs-content {
        padding-left: clamp(2rem, 3vw, 3.5rem);
    }
    .cs-form-card { max-width: 1280px; }
    .cs-equipment-grid { grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); }
}

@media (max-width: 960px) {
    .cs-main-layout { flex-direction: column; align-items: stretch; }
    .cs-sidebar {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 0;
        align-self: stretch;
        max-height: none;
        position: relative;
        overflow: visible;
        border-right: 0;
        background: var(--cs-surface);
        border: 1px solid var(--cs-border);
        border-radius: var(--cs-r-lg);
        margin-bottom: .75rem;
        padding: .75rem;
    }
    .cs-content { width: 100%; padding-block: 1.25rem 2rem; }
    .cs-sidebar-title { margin-bottom: .45rem; font-size: .72rem; }
    .cs-sidebar-panel { padding-top: .55rem; }
    .cs-sidebar-empty {
        display: flex;
        align-items: center;
        gap: .55rem;
        margin: 0;
        padding: .75rem .85rem;
        border: 1px solid var(--cs-border);
        background: var(--cs-surface);
        color: var(--cs-text-2);
        font-size: .8rem;
        text-align: left;
    }
    .cs-sidebar-empty::before {
        width: 7px;
        height: 7px;
        flex: 0 0 7px;
        border-radius: 50%;
        background: var(--cs-green);
        content: "";
    }
    .cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) {
        flex: 0 0 auto;
        height: auto;
        min-height: 0;
        padding: .45rem .75rem;
    }
    .cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) .cs-sidebar-toggle {
        position: relative;
        top: auto;
        left: auto;
        justify-content: flex-start;
        width: 100%;
        height: auto;
        min-height: 44px;
        padding: .5rem .75rem;
        background: var(--cs-surface-2);
        border: 1px solid var(--cs-border);
        border-radius: var(--cs-r-sm);
        box-shadow: none;
    }
    .cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) .cs-sidebar-toggle-label {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }
}

@media (max-width: 700px) {
    .cs-header { flex-wrap: wrap; gap: .55rem .75rem; }
    .cs-header-logo { flex: 1 1 180px; }
    .cs-header-actions { flex: 1 1 auto; }
    .cs-content { padding-inline: clamp(.75rem, 3vw, 1.25rem); }
    .cs-form-card { border-radius: var(--cs-r-md); }
    .cs-wizard-progress { grid-template-columns: auto minmax(2rem, 1fr); }
    .cs-wizard-progress > :last-child { grid-column: 1 / -1; }
    .cs-equipment-filters { gap: .4rem; }
    .cs-equipment-filter { flex: 0 1 auto; }
    .cs-equipment-group-header { align-items: flex-start; }
    .cs-checkout-summary { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
    .cs-checkout-summary dd { margin-bottom: .55rem; }
    .cs-wizard-actions { gap: .55rem; }
    .cs-wizard-actions > button { flex: 1 1 0; min-width: 0; }
    .cs-wizard-actions .cs-btn-checkout { min-width: 0; }
}

@media (max-width: 500px) {
    .cs-header { padding-inline: .75rem; }
    .cs-header-logo img { height: 34px; }
    .cs-header-actions { justify-content: flex-start; }
    .cs-header-user { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    .cs-form-card { padding: .9rem; }
    .cs-form-title { align-items: flex-start; font-size: 1rem; }
    .cs-wizard-title { font-size: 1.08rem; line-height: 1.35; }
    .cs-equipment-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs-equipment-filter { min-width: 0; padding-inline: .5rem; }
    .cs-last-crew-button { width: 100%; }
    .cs-add-member-row { flex-direction: column; }
    .cs-add-member-row .cs-input,
    .cs-add-member-btn { width: 100%; }
    .cs-equipage-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .cs-equipage-member-label { grid-column: 1 / -1; flex-basis: auto; min-width: 0; }
    .cs-crew-role-toggle { justify-self: start; max-width: 100%; }
    .cs-remove-btn { grid-column: 2; grid-row: 1; align-self: start; }
    .cs-departure-time { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 400px) {
    .cs-content { padding-inline: .65rem; }
    .cs-form-card { padding: .75rem; }
    .cs-equipment-grid { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
    .cs-equipment-card { min-height: 76px; padding: .7rem; }
    .cs-equipment-group-header { flex-direction: column; gap: .15rem; }
    .cs-wizard-progress { gap: .45rem .55rem; font-size: .76rem; }
    .cs-wizard-actions { flex-wrap: wrap; }
    .cs-wizard-actions > button { flex-basis: 100%; }
    .cs-checkout-summary { padding: .75rem; }
}

/* ==========================================================================
   18. IMPRESSION — remise des identifiants aux adhérents
   ========================================================================== */
@media print {
    body.cs-page { background: #fff; color: #000; }
    .cs-header, .csa-filters, .csa-search, .csa-note,
    .csa-btn, .csa-actions, .cs-btn, .cs-btn-ghost, .cs-btn-primary,
    form.csa-inline, .csa-no-print { display: none !important; }
    .csa-section, .csa-section-header, .csa-section-body {
        background: #fff !important;
        border-color: #ccc !important;
    }
    .csa-section-header h2, .csa-table td { color: #000 !important; }
    .csa-table th { background: #f2f2f2 !important; color: #000 !important; border-color: #ccc !important; }
    .csa-table td { border-color: #ddd !important; }
    .csa-table tbody tr:hover td { background: none !important; }
    .csa-login { background: none !important; border: none !important; color: #000 !important; font-weight: 700; }
    .csa-badge { border: 1px solid #999 !important; background: none !important; color: #000 !important; }
}

/* Confort de lecture : respecte la préférence système */
@media (prefers-reduced-motion: reduce) {
    body.cs-page *, body.cs-page *::before, body.cs-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* --------------------------------------------------------------------------
   13. MES STATS (espace adhérent) — préfixe `cst-`
   -------------------------------------------------------------------------- */
.cst-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: clamp(.65rem, 1.3vw, 1.15rem);
    width: calc(100% - var(--cs-frame-gutter));
    max-width: var(--cs-frame-max-width);
    min-height: calc(100dvh - 2rem);
    margin: 0 auto;
    padding-block: clamp(.75rem, 1.5vh, 1.25rem);
}
.cst-wrap > .cs-alert,
.cst-wrap > .cs-state,
.cst-wrap > .cs-empty,
.cst-wrap > .cst-topbar,
.cst-wrap > .cst-page-title,
.cst-wrap > .cst-cumuls,
.cst-wrap > .cst-grid-2,
.cst-wrap > .cst-panel--regularity { grid-column: 1 / -1; }
.cst-wrap > .cs-alert { margin-bottom: 0; }
.cst-wrap > .cst-panel--avarie { grid-column: 1 / -1; }
.cst-wrap > .cst-panel--badges { grid-column: 1 / -1; }
.cst-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem 1rem;
}
.cst-account,
.cst-account .csm-account-controls,
.cst-account .cs-header-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
}
.cst-account .cs-header-actions { gap: 0; }
body.cs-page .cst-account .cs-header-user-name,
body.cs-page .cs-history-topbar .cs-header-user-name {
    display: inline;
    max-width: min(15rem, 28vw);
}
.cst-account .cs-header-account-menu { top: calc(100% + .4rem); }
@media (max-width: 600px) {
    body.cs-page .cst-account .cs-header-user-name,
    body.cs-page .cs-history-topbar .cs-header-user-name { display: none; }
}
.cst-back {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.5rem;
    padding: .45rem .8rem;
    border: 1px solid var(--cs-border-strong);
    border-radius: var(--cs-r-md);
    background: var(--cs-elevated-2);
    color: var(--cs-text-2);
    font-size: .85rem;
    font-weight: 650;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.cst-back:hover { border-color: var(--cs-blue-2); color: var(--cs-text); }
.cst-back:focus-visible { outline: 2px solid var(--cs-blue-2); outline-offset: 2px; }
.cst-page-title {
    margin: 0;
    color: var(--cs-text);
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.cst-cumuls .csh-stat {
    display: flex;
    min-height: clamp(120px, 17vh, 190px);
    flex-direction: column;
    justify-content: flex-end;
    gap: .45rem;
    overflow: hidden;
    padding: clamp(1rem, 1.8vw, 1.5rem);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--cs-r-lg);
    background: var(--cs-elevated);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}
.cst-cumuls { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.cst-cumuls .csh-stat--out {
    border-color: rgba(255, 255, 255, .2);
    background: linear-gradient(145deg, #2879f4, #1555c8);
}
.cst-cumuls .csh-stat--time {
    border-color: rgba(255, 255, 255, .18);
    background: linear-gradient(145deg, #08a85f, #087b49);
}
.cst-cumuls .csh-stat--free,
.cst-cumuls .csh-stat:not(.csh-stat--out):not(.csh-stat--time):not(.csh-stat--free) {
    border-left: 4px solid #08a85f;
}
.cst-cumuls .csh-stat:not(.csh-stat--out):not(.csh-stat--time):not(.csh-stat--free) {
    border-left-color: #2879f4;
}
.cst-cumuls .csh-stat-value {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.4rem);
}
.cst-cumuls .csh-stat-label { color: rgba(255, 255, 255, .82); }

.cst-panel {
    min-width: 0;
    background: var(--cs-elevated);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--cs-r-lg);
    padding: clamp(1rem, 1.6vw, 1.5rem);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}
.cst-panel-title {
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
    margin: 0 0 1rem;
    color: var(--cs-text);
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    font-weight: 750;
    letter-spacing: -.02em;
}
.cst-panel-title::before {
    width: .25rem;
    height: 1.2em;
    flex: 0 0 .25rem;
    border-radius: 999px;
    background: #2879f4;
    content: "";
}
.cst-panel--regularity .cst-panel-title::before,
.cst-panel--badges .cst-panel-title::before { background: #08a85f; }
.cst-panel--avarie .cst-panel-title::before { background: #f59e0b; }
.cst-streak {
    font-size: .8rem; font-weight: 700; color: var(--cs-gold);
    background: var(--cs-elevated-2); border: 1px solid var(--cs-border-strong);
    border-radius: 999px; padding: .2rem .7rem;
}

.cst-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(.85rem, 1.5vw, 1.5rem);
}
@media (max-width: 860px) { .cst-grid-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
    .cst-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .cst-wrap {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding-block: .75rem 1.5rem;
    }
    .cst-wrap > .cst-panel--avarie { grid-column: 1 / -1; }
    .cst-panel { padding: 1rem; }
}

/* Heatmap */
.cst-heatmap-scroll { min-width: 0; overflow: hidden; padding-bottom: .35rem; }
.cst-heatmap {
    display: grid;
    grid-template-columns: repeat(53, minmax(0, 1fr));
    gap: clamp(1px, .2vw, 3px);
    min-width: 0;
    width: 100%;
}
.cst-heat-col {
    display: grid;
    min-width: 0;
    grid-template-rows: repeat(7, auto);
    gap: clamp(1px, .2vw, 3px);
}
.cst-heat-cell {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 1;
    border-radius: clamp(1px, .2vw, 3px);
    background: var(--cs-elevated-2);
}
.cst-heat-placeholder { visibility: hidden; }
.cst-heat-0 { background: var(--cs-elevated-2); }
.cst-heat-1 { background: #14532D; }
.cst-heat-2 { background: #15803D; }
.cst-heat-3 { background: #22C55E; }
.cst-heatmap-legend { display: flex; align-items: center; gap: .35rem; margin-top: .75rem; font-size: .75rem; color: var(--cs-text-3); }
.cst-heatmap-legend .cst-heat-cell { width: 11px; height: 11px; }

/* Barres de répartition */
.cst-bar-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .65rem; }
.cst-bar-label { flex: 0 0 130px; font-size: .85rem; color: var(--cs-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cst-bar-track { flex: 1; height: 10px; background: var(--cs-elevated-2); border-radius: 999px; overflow: hidden; }
.cst-bar-fill { height: 100%; background: linear-gradient(90deg, #2879f4, #5ca3ff); border-radius: 999px; }
.cst-bar-value { flex: 0 0 auto; font-size: .85rem; font-weight: 700; color: var(--cs-text); min-width: 1.5rem; text-align: right; }

/* Records */
.cst-records { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.cst-records li {
    display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
    padding-bottom: .65rem; border-bottom: 1px solid var(--cs-border);
    font-size: .88rem; color: var(--cs-text-2);
}
.cst-records li:last-child { border-bottom: none; padding-bottom: 0; }
.cst-records li strong { color: var(--cs-text); font-size: .95rem; }
.cst-records li small { color: var(--cs-text-3); }

/* Coéquipiers */
.cst-coequipiers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.cst-coequipiers li { display: flex; align-items: center; gap: .65rem; font-size: .9rem; }
.cst-coequipiers li strong { margin-left: auto; color: var(--cs-blue-2); }

.cst-avaries-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    align-items: start;
    gap: .75rem;
}
.cst-avarie-item {
    padding: .9rem 1rem;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-md);
    background: var(--cs-elevated);
}
.cst-avarie-topline { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .35rem .75rem; }
.cst-avarie-topline h3 { margin: 0; font-size: .95rem; }
.cst-avarie-topline time { color: var(--cs-text-3); font-size: .78rem; }
.cst-avarie-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.cst-avarie-type,
.cst-avarie-status { padding: .2rem .55rem; border: 1px solid var(--cs-border-strong); border-radius: 999px; font-size: .76rem; }
.cst-avarie-type { color: var(--cs-amber); }
.cst-avarie-status { color: var(--cs-blue-2); }
.cst-avarie-status-resolu { color: var(--cs-green); }
.cst-avarie-locations { margin: .55rem 0 0; color: var(--cs-text-2); font-size: .84rem; }
.cst-avarie-locations strong { color: var(--cs-text); }
.cst-avarie-description { margin: .5rem 0 0; color: var(--cs-text-2); font-size: .84rem; line-height: 1.5; }

/* Badges */
.cst-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    grid-auto-rows: 1fr;
    gap: clamp(.55rem, 1vw, .85rem);
}
.cst-badge {
    position: relative;
    overflow: hidden;
    display: flex;
    min-width: 0;
    min-height: 175px;
    flex-direction: column;
    align-items: center;
    padding: 1.1rem .85rem;
    border: 1px solid var(--cs-border); border-radius: var(--cs-r-md);
    background: linear-gradient(155deg, rgba(28, 38, 55, .88), var(--cs-elevated-2) 58%);
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cst-badge-icon {
    display: grid;
    width: clamp(3.25rem, 4vw, 4rem);
    height: clamp(3.25rem, 4vw, 4rem);
    flex: 0 0 auto;
    place-items: center;
    margin-bottom: .65rem;
    border: 1px solid rgba(92, 151, 255, .35);
    border-radius: 1.15rem;
    background: linear-gradient(145deg, rgba(40, 121, 244, .24), rgba(17, 35, 67, .72));
    color: #9fc2ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 20px rgba(0, 0, 0, .18);
}
.cst-badge-svg { width: 70%; height: 70%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cst-badge-icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.cst-badge-label { font-size: .85rem; font-weight: 700; line-height: 1.25; margin-bottom: .25rem; overflow-wrap: anywhere; }
.cst-badge-desc { font-size: .74rem; color: var(--cs-text-3); line-height: 1.4; overflow-wrap: anywhere; }
.cst-badge-date { font-size: .72rem; color: var(--cs-gold); margin-top: auto; padding-top: .5rem; font-weight: 600; overflow-wrap: anywhere; }
.cst-badge-unlocked-label {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .3rem;
    padding: .2rem .55rem;
    border: 1px solid rgba(52, 211, 153, .38);
    border-radius: 999px;
    background: rgba(8, 168, 95, .14);
    color: #86efac;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.cst-badge-unlocked-label::before { content: "✓"; font-size: .72rem; }
.cst-badge-verrouille { opacity: .55; filter: grayscale(1); }
.cst-badge-obtenu {
    border-color: rgba(52, 211, 153, .62);
    background:
        radial-gradient(circle at 90% 0, rgba(52, 211, 153, .17), transparent 42%),
        linear-gradient(150deg, rgba(8, 70, 56, .8), rgba(14, 25, 30, .98) 72%);
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .12), 0 12px 28px rgba(8, 168, 95, .12);
}
.cst-badge-obtenu:hover {
    transform: translateY(-2px);
    border-color: rgba(110, 231, 183, .8);
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .18), 0 16px 34px rgba(8, 168, 95, .2);
}
.cst-badge-obtenu .cst-badge-icon {
    border-color: rgba(110, 231, 183, .55);
    background: linear-gradient(145deg, rgba(8, 168, 95, .4), rgba(10, 55, 48, .85));
    color: #fcd98a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 24px rgba(8, 168, 95, .2);
}
.cst-badge-obtenu .cst-badge-label { color: #ecfdf5; }
.cst-badge-obtenu .cst-badge-date { color: #a7f3d0; }
body.cs-page.cs-theme-light .cst-badge {
    background: linear-gradient(155deg, #fff, #f1f5f9);
}
body.cs-page.cs-theme-light .cst-badge-obtenu {
    border-color: rgba(3, 152, 85, .45);
    background:
        radial-gradient(circle at 90% 0, rgba(3, 152, 85, .12), transparent 42%),
        linear-gradient(150deg, #effcf5, #fff 72%);
    box-shadow: inset 0 0 0 1px rgba(3, 152, 85, .08), 0 12px 28px rgba(16, 24, 40, .08);
}
body.cs-page.cs-theme-light .cst-badge-obtenu .cst-badge-label { color: #14532d; }
body.cs-page.cs-theme-light .cst-badge-obtenu .cst-badge-date { color: #027a48; }
body.cs-page.cs-theme-light .cst-badge-unlocked-label {
    border-color: rgba(3, 152, 85, .28);
    background: rgba(3, 152, 85, .08);
    color: #027a48;
}

/* Animated badge reveal */
body.cst-badge-reveal-open { overflow: hidden; }
.cst-badge-reveal[hidden] { display: none !important; }
.cst-badge-reveal {
    --reveal-accent: #d7a073;
    --reveal-highlight: #ffe2bd;
    --reveal-glow: rgba(204, 133, 71, .28);
    --reveal-halo: rgba(241, 180, 118, .24);
    --reveal-scale: 1;
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(.65rem, 3vw, 2rem);
    background: radial-gradient(ellipse at 50% 42%, rgba(19, 32, 54, .7), rgba(3, 7, 14, .92) 72%);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, visibility .24s ease;
}
.cst-badge-reveal.is-visible { opacity: 1; visibility: visible; }
.cst-badge-reveal[data-tier="argent"] {
    --reveal-accent: #a9c7eb;
    --reveal-highlight: #edf6ff;
    --reveal-glow: rgba(105, 163, 232, .32);
    --reveal-halo: rgba(174, 211, 255, .22);
    --reveal-scale: 1.04;
}
.cst-badge-reveal[data-tier="or"] {
    --reveal-accent: #efbd56;
    --reveal-highlight: #fff1bd;
    --reveal-glow: rgba(240, 176, 53, .42);
    --reveal-halo: rgba(255, 207, 100, .34);
    --reveal-scale: 1.09;
}
.cst-badge-reveal[data-tier="legendaire"] {
    --reveal-accent: #ffd26b;
    --reveal-highlight: #fff7da;
    --reveal-glow: rgba(250, 172, 49, .55);
    --reveal-halo: rgba(184, 116, 255, .42);
    --reveal-scale: 1.15;
}
.cst-badge-reveal-dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    width: min(940px, 100%);
    max-height: min(92dvh, 760px);
    overflow: auto;
    border: 1px solid var(--reveal-accent);
    border-radius: 1.5rem;
    background:
        radial-gradient(ellipse at 4% 2%, var(--reveal-glow), transparent 40%),
        linear-gradient(145deg, #172235, #0b111c 66%);
    box-shadow: 0 32px 100px rgba(0, 0, 0, .58), 0 0 60px var(--reveal-halo);
    color: #f8fafc;
    transform: translateY(18px) scale(.97);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), border-color .3s ease, box-shadow .3s ease;
}
.cst-badge-reveal.is-visible .cst-badge-reveal-dialog { transform: translateY(0) scale(1); }
.cst-badge-reveal-close {
    position: absolute;
    z-index: 4;
    top: .8rem;
    right: .8rem;
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(6, 12, 22, .58);
    color: #e2e8f0;
    font: inherit;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.cst-badge-reveal-close:hover { background: rgba(255, 255, 255, .14); transform: rotate(90deg); }
.cst-badge-reveal-close:focus-visible,
.cst-badge-reveal-next:focus-visible,
.cst-badge-reveal-skip:focus-visible { outline: 3px solid var(--reveal-accent); outline-offset: 3px; }
.cst-badge-reveal-art {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 390px;
    place-items: center;
    overflow: hidden;
    background: radial-gradient(circle at center, var(--reveal-glow), transparent 66%);
}
.cst-badge-reveal-art::before,
.cst-badge-reveal-art::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 245px;
    aspect-ratio: 1;
    border: 1px solid var(--reveal-accent);
    border-radius: 50%;
    content: "";
    transform: translate(-50%, -50%);
}
.cst-badge-reveal-art::before {
    box-shadow: 0 0 38px var(--reveal-glow), inset 0 0 32px var(--reveal-glow);
    animation: cst-reveal-ring 2.5s ease-out infinite;
}
.cst-badge-reveal-art::after {
    width: 290px;
    border-style: dashed;
    opacity: .48;
    animation: cst-reveal-orbit 22s linear infinite;
}
.cst-badge-reveal[data-tier="or"] .cst-badge-reveal-art::before,
.cst-badge-reveal[data-tier="legendaire"] .cst-badge-reveal-art::before {
    animation-duration: 1.8s;
    box-shadow: 0 0 54px var(--reveal-glow), inset 0 0 40px var(--reveal-glow), 0 0 0 14px var(--reveal-halo);
}
.cst-badge-reveal[data-tier="legendaire"] .cst-badge-reveal-art::after { animation-duration: 8s; }
.cst-badge-reveal-orbit {
    position: absolute;
    z-index: 1;
    width: 255px;
    height: 255px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    pointer-events: none;
}
.cst-badge-reveal-orbit--one { transform: rotateX(68deg) rotate(-24deg); }
.cst-badge-reveal-orbit--two {
    width: 210px;
    height: 210px;
    border-style: dotted;
    opacity: .5;
    transform: rotateY(68deg) rotate(24deg);
}
.cst-badge-reveal[data-tier="bronze"] .cst-badge-reveal-orbit--two { display: none; }
.cst-badge-reveal[data-tier="or"] .cst-badge-reveal-orbit--one,
.cst-badge-reveal[data-tier="legendaire"] .cst-badge-reveal-orbit--one { animation: cst-reveal-orbit 12s linear infinite; }
.cst-badge-reveal-sparks { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.cst-badge-reveal-sparks i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--reveal-highlight);
    box-shadow: 0 0 12px var(--reveal-accent);
    opacity: 0;
}
.cst-badge-reveal-sparks i:nth-child(1) { --spark-angle: 0deg; }
.cst-badge-reveal-sparks i:nth-child(2) { --spark-angle: 36deg; }
.cst-badge-reveal-sparks i:nth-child(3) { --spark-angle: 72deg; }
.cst-badge-reveal-sparks i:nth-child(4) { --spark-angle: 108deg; }
.cst-badge-reveal-sparks i:nth-child(5) { --spark-angle: 144deg; }
.cst-badge-reveal-sparks i:nth-child(6) { --spark-angle: 180deg; }
.cst-badge-reveal-sparks i:nth-child(7) { --spark-angle: 216deg; }
.cst-badge-reveal-sparks i:nth-child(8) { --spark-angle: 252deg; }
.cst-badge-reveal-sparks i:nth-child(9) { --spark-angle: 288deg; }
.cst-badge-reveal-sparks i:nth-child(10) { --spark-angle: 324deg; }
.cst-badge-reveal-dialog.is-revealing .cst-badge-reveal-sparks i {
    animation: cst-reveal-spark 1.1s cubic-bezier(.15, .7, .3, 1) both;
}
.cst-badge-reveal[data-tier="bronze"] .cst-badge-reveal-sparks i:nth-child(n+5) { display: none; }
.cst-badge-reveal[data-tier="argent"] { --spark-offset: -92px; }
.cst-badge-reveal[data-tier="or"] { --spark-offset: -132px; }
.cst-badge-reveal[data-tier="legendaire"] { --spark-offset: -178px; }
.cst-badge-reveal-medal {
    position: relative;
    z-index: 3;
    display: grid;
    width: clamp(145px, 18vw, 210px);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid var(--reveal-accent);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .24), transparent 28%),
        radial-gradient(circle, #26354b, #101722 72%);
    color: var(--reveal-highlight);
    box-shadow: 0 0 0 7px rgba(255, 255, 255, .035), 0 0 34px var(--reveal-glow), inset 0 0 24px var(--reveal-glow);
}
.cst-badge-reveal-medal::before {
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    content: "";
}
.cst-badge-reveal-medal::after {
    position: absolute;
    top: -18%;
    left: -38%;
    width: 35%;
    height: 136%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
    content: "";
    opacity: 0;
    transform: rotate(32deg);
}
.cst-badge-reveal[data-tier="or"] .cst-badge-reveal-medal,
.cst-badge-reveal[data-tier="legendaire"] .cst-badge-reveal-medal {
    box-shadow: 0 0 0 9px var(--reveal-halo), 0 0 60px var(--reveal-glow), inset 0 0 30px var(--reveal-glow);
}
.cst-badge-reveal-icon {
    width: 48%;
    height: 48%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 12px var(--reveal-glow));
}
.cst-badge-reveal-dialog.is-revealing .cst-badge-reveal-medal { animation: cst-reveal-medal .9s cubic-bezier(.17, .89, .32, 1.28) both; }
.cst-badge-reveal-dialog.is-revealing .cst-badge-reveal-medal::after { animation: cst-reveal-shine 1.2s .35s ease-out both; }
.cst-badge-reveal[data-tier="or"] .cst-badge-reveal-dialog.is-revealing .cst-badge-reveal-medal { animation-duration: 1.05s; }
.cst-badge-reveal[data-tier="legendaire"] .cst-badge-reveal-dialog.is-revealing .cst-badge-reveal-medal { animation-duration: 1.25s; }
.cst-badge-reveal-content {
    align-self: center;
    min-width: 0;
    padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
}
.cst-badge-reveal-kicker {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 1rem;
    color: var(--reveal-accent);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.cst-badge-reveal-status-dot {
    width: .5rem;
    height: .5rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--reveal-accent);
    box-shadow: 0 0 12px var(--reveal-glow);
}
.cst-badge-reveal-separator { color: rgba(255, 255, 255, .3); }
.cst-badge-reveal-content h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 2.65rem);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.05;
    text-wrap: balance;
}
.cst-badge-reveal-description {
    max-width: 34rem;
    margin: .85rem 0 1.8rem;
    color: #b7c3d3;
    font-size: 1rem;
    line-height: 1.6;
}
.cst-badge-reveal-progress {
    height: 3px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, .1);
}
.cst-badge-reveal-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--reveal-accent), var(--reveal-highlight));
    box-shadow: 0 0 14px var(--reveal-glow);
    transition: width .45s cubic-bezier(.2, .8, .2, 1);
}
.cst-badge-reveal-count {
    margin: .65rem 0 1.5rem;
    color: #8f9db0;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.cst-badge-reveal-actions { display: grid; justify-items: start; gap: .7rem; }
.cst-badge-reveal-next {
    min-height: 3.1rem;
    padding: .8rem 1.35rem;
    border: 1px solid var(--reveal-accent);
    border-radius: .8rem;
    background: linear-gradient(135deg, var(--reveal-accent), var(--reveal-highlight));
    color: #111827;
    font: inherit;
    font-size: .9rem;
    font-weight: 850;
    box-shadow: 0 8px 26px var(--reveal-glow);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.cst-badge-reveal-next:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 32px var(--reveal-glow); }
.cst-badge-reveal-skip {
    padding: .25rem 0;
    border: 0;
    background: transparent;
    color: #93a2b7;
    font: inherit;
    font-size: .78rem;
    cursor: pointer;
}
.cst-badge-reveal-skip:hover { color: #fff; }
@keyframes cst-reveal-ring {
    0% { opacity: .65; transform: translate(-50%, -50%) scale(.78); }
    75%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.32); }
}
@keyframes cst-reveal-orbit { to { rotate: 360deg; } }
@keyframes cst-reveal-spark {
    0% { opacity: 0; transform: rotate(var(--spark-angle)) translateY(0) scale(.3); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--spark-angle)) translateY(var(--spark-offset, -62px)) scale(0); }
}
@keyframes cst-reveal-medal {
    0% { opacity: 0; transform: scale(.28) rotate(-28deg); filter: blur(5px); }
    58% { opacity: 1; transform: scale(var(--reveal-scale)) rotate(7deg); filter: blur(0); }
    78% { transform: scale(.96) rotate(-2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); }
}
@keyframes cst-reveal-shine {
    0% { left: -38%; opacity: 0; }
    20% { opacity: .9; }
    100% { left: 115%; opacity: 0; }
}
@media (max-width: 680px) {
    .cst-badge-reveal { padding: .55rem; }
    .cst-badge-reveal-dialog {
        grid-template-columns: minmax(0, 1fr);
        width: min(480px, 100%);
        max-height: 94dvh;
        border-radius: 1.1rem;
    }
    .cst-badge-reveal-art { min-height: clamp(185px, 34vh, 250px); }
    .cst-badge-reveal-art::before { width: 172px; }
    .cst-badge-reveal-art::after { width: 208px; }
    .cst-badge-reveal-orbit { width: 190px; height: 190px; }
    .cst-badge-reveal-orbit--two { width: 158px; height: 158px; }
    .cst-badge-reveal-medal { width: clamp(118px, 34vw, 155px); }
    .cst-badge-reveal-content { padding: 1.1rem 1.25rem 1.35rem; }
    .cst-badge-reveal-content h2 { padding-right: 1.5rem; font-size: clamp(1.6rem, 7vw, 2.1rem); }
    .cst-badge-reveal-description { margin: .6rem 0 1.1rem; font-size: .9rem; }
    .cst-badge-reveal-count { margin: .5rem 0 1rem; }
    .cst-badge-reveal-actions { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem; }
    .cst-badge-reveal-next { min-height: 2.9rem; padding: .7rem .95rem; }
    .cst-badge-reveal-skip { text-align: right; }
}
@media (max-width: 380px) {
    .cst-badge-reveal-actions { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
    .cst-badge-reveal-skip { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .cst-badge-reveal,
    .cst-badge-reveal *,
    .cst-badge-reveal *::before,
    .cst-badge-reveal *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 600px) {
    .cst-badges-grid { grid-template-columns: minmax(0, 1fr); }
    .cst-badge {
        display: grid;
        grid-template-columns: 3rem minmax(0, 1fr);
        align-items: start;
        gap: .15rem .75rem;
        min-height: 0;
        padding: .8rem;
        text-align: left;
    }
    .cst-badge-icon {
        grid-column: 1;
        grid-row: 1 / span 3;
        margin: 0;
        width: 2.75rem;
        height: 2.75rem;
        margin: 0;
    }
    .cst-badge-label,
    .cst-badge-desc,
    .cst-badge-date,
    .cst-badge-unlocked-label { grid-column: 2; }
    .cst-badge-label { margin: 0; }
    .cst-badge-date { margin-top: .2rem; padding-top: .1rem; }
}
body.cs-page.cs-theme-light .cst-panel {
    background: #f9fafb;
    border-color: #c8cbd0;
    box-shadow: 0 16px 36px rgba(16, 24, 40, .08);
}
body.cs-page.cs-theme-light .cst-cumuls .csh-stat--out .csh-stat-value,
body.cs-page.cs-theme-light .cst-cumuls .csh-stat--out .csh-stat-label,
body.cs-page.cs-theme-light .cst-cumuls .csh-stat--time .csh-stat-value,
body.cs-page.cs-theme-light .cst-cumuls .csh-stat--time .csh-stat-label { color: #fff; }
body.cs-page.cs-theme-light .cst-cumuls .csh-stat:not(.csh-stat--out):not(.csh-stat--time) {
    border-color: #c8cbd0;
}
body.cs-page.cs-theme-light .cst-cumuls .csh-stat:not(.csh-stat--out):not(.csh-stat--time) .csh-stat-label {
    color: #4e5865;
}
body.cs-page.cs-theme-light .cst-cumuls .csh-stat:not(.csh-stat--out):not(.csh-stat--time):not(.csh-stat--free) .csh-stat-value {
    color: #29313b;
}

/* Écran partagé de la tablette du club : occupe tout l'espace disponible. */
body.cs-page--paired {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

body.cs-page--paired .cs-wrapper {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

body.cs-page--paired .cs-header { flex: 0 0 auto; }

body.cs-page--paired .csd-board {
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

body.cs-page--paired .csd-live-section { overflow: hidden; }

body.cs-page--paired .csd-live-table-wrap {
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .5) rgba(255, 255, 255, .04);
}

body.cs-page--paired .csd-live-table {
    height: 100%;
    min-width: 0;
}

body.cs-page--paired .csd-live-table th:nth-child(1) { width: 20%; }
body.cs-page--paired .csd-live-table th:nth-child(2) { width: 43%; }
body.cs-page--paired .csd-live-table th:nth-child(3) { width: 22%; }
body.cs-page--paired .csd-live-table th:nth-child(4) { width: 15%; }

body.cs-page--paired .csd-live-table tbody tr:hover td {
    background: rgba(255, 255, 255, .035);
}

body.cs-page--paired .csd-live-table-wrap::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.cs-page--paired .csd-live-table-wrap::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, .5);
}

body.cs-page--paired .csd-live-table-wrap:focus-visible {
    outline: 2px solid var(--cs-blue-2);
    outline-offset: -2px;
}

@media (max-width: 900px) {
    body.cs-page--paired .csd-board {
        padding: .85rem 0;
        gap: .7rem;
    }

    body.cs-page--paired .csd-live-section { padding: .9rem; }
    body.cs-page--paired .csd-live-heading { margin-bottom: .65rem; }

    body.cs-page--paired .csd-live-table-wrap {
        overflow: auto;
        border: 0;
        background: transparent;
    }

    body.cs-page--paired .csd-live-table,
    body.cs-page--paired .csd-live-table tbody {
        display: block;
        width: 100%;
        height: auto;
    }

    body.cs-page--paired .csd-live-table { min-width: 0; }
    body.cs-page--paired .csd-live-table thead { display: none; }

    body.cs-page--paired .csd-live-table tbody {
        display: flex;
        flex-direction: column;
        gap: .65rem;
    }

    body.cs-page--paired .csd-live-table tbody tr {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, .1);
        border-left-width: 4px;
        border-radius: 14px;
        background: var(--cs-surface);
    }

    body.cs-page--paired .csd-live-table tr.cs-t-ok { border-left-color: var(--cs-blue); }
    body.cs-page--paired .csd-live-table tr.cs-t-warn { border-left-color: var(--cs-amber); }
    body.cs-page--paired .csd-live-table tr.cs-t-late { border-left-color: var(--cs-red); }
    body.cs-page--paired .csd-live-table tr.cs-t-ok td:first-child,
    body.cs-page--paired .csd-live-table tr.cs-t-warn td:first-child,
    body.cs-page--paired .csd-live-table tr.cs-t-late td:first-child { border-left: 0; }

    body.cs-page--paired .csd-live-table td {
        display: grid;
        grid-template-columns: minmax(6.5rem, .34fr) minmax(0, 1fr);
        align-items: start;
        gap: .5rem .8rem;
        padding: .7rem .8rem;
        border-top: 1px solid rgba(255, 255, 255, .065);
    }

    body.cs-page--paired .csd-live-table td:first-child { border-top: 0; }

    body.cs-page--paired .csd-live-table td::before {
        content: attr(data-label);
        padding-top: .1rem;
        color: var(--cs-text-3);
        font-size: .66rem;
        font-weight: 750;
        letter-spacing: .065em;
        line-height: 1.4;
        text-transform: uppercase;
    }

    body.cs-page--paired .csd-live-table td:first-child strong { font-size: .95rem; }
    body.cs-page--paired .csd-equipment-info { min-width: 0; }

    body.cs-page--paired .csd-live-table td:last-child .cs-timer {
        justify-self: start;
        margin: 0;
    }

    body.cs-page--paired .csd-crew-list { gap: .35rem; }

    body.cs-page--paired .csd-crew-list li {
        max-width: 100%;
        flex-wrap: wrap;
        border-radius: 10px;
    }
}

@media (max-width: 600px) {
    body.cs-page--paired .cs-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "brand actions" "title title";
        align-items: center;
        gap: .5rem;
        padding: .55rem .7rem;
    }

    body.cs-page--paired .cs-header-logo { gap: .5rem; flex: initial; }
    body.cs-page--paired .cs-header-logo img { height: 32px; }
    body.cs-page--paired .cs-header-titles strong { font-size: .84rem; }
    body.cs-page--paired .cs-header-titles span { display: none; }

    body.cs-page--paired .cs-header-actions {
        flex: initial;
        flex-wrap: wrap;
        gap: .35rem;
        justify-content: flex-end;
    }

    body.cs-page--paired .cs-header-datetime {
        display: inline-flex;
        gap: .25rem;
        font-size: .68rem;
    }

    body.cs-page--paired .cs-header-user {
        max-width: 100%;
        padding: .25rem .45rem .25rem .3rem;
        font-size: .7rem;
    }

    body.cs-page--paired .cs-header-user .cs-avatar {
        width: 21px;
        height: 21px;
    }

    body.cs-page--paired .cs-header-actions .cs-btn-ghost,
    body.cs-page--paired .cs-header-actions .cs-btn-primary {
        min-height: 36px;
        padding: .35rem .5rem;
        font-size: .7rem;
    }

    body.cs-page--paired .csd-board {
        padding: .65rem 0;
        gap: .55rem;
    }

    body.cs-page--paired .csd-board-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
        align-items: center;
        gap: .55rem;
    }

    body.cs-page--paired .csd-board-kicker { gap: .4rem; font-size: .62rem; }
    body.cs-page--paired .csd-board-heading h1 {
        margin-top: .2rem;
        font-size: clamp(1.15rem, 5vw, 1.55rem);
    }
    body.cs-page--paired .csd-board-heading p { font-size: .74rem; }

    body.cs-page--paired .csd-cta {
        justify-content: center;
        padding: .25rem;
        border: 0;
        background: transparent;
    }

    body.cs-page--paired .csd-cta p { display: none; }

    body.cs-page--paired .csd-cta .cs-btn-lg {
        min-width: 0;
        min-height: 46px;
        padding: .6rem .75rem;
        gap: .35rem;
        border-radius: 12px;
        font-size: .82rem;
        white-space: nowrap;
        box-shadow: 0 8px 20px rgba(26, 109, 255, .24);
    }

    body.cs-page--paired .csd-cta .cs-btn-lg svg { width: 17px; height: 17px; }
    body.cs-page--paired .csd-live-section { padding: .7rem; border-radius: 16px; }
    body.cs-page--paired .csd-live-eyebrow { font-size: .6rem; }
    body.cs-page--paired .csd-live-heading h2 { font-size: .98rem; }
    body.cs-page--paired .csd-live-count { min-width: 32px; height: 32px; font-size: .82rem; }
}

@media (max-width: 380px) {
    body.cs-page--paired .cs-header-actions .cs-btn-ghost,
    body.cs-page--paired .cs-header-actions .cs-btn-primary {
        padding-inline: .4rem;
        font-size: .66rem;
    }

    body.cs-page--paired .csd-board-header {
        grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
    }

    body.cs-page--paired .csd-cta .cs-btn-lg {
        min-height: 44px;
        padding-inline: .55rem;
        font-size: .76rem;
    }

    body.cs-page--paired .csd-live-table td {
        grid-template-columns: minmax(5.4rem, .32fr) minmax(0, 1fr);
        gap: .4rem .55rem;
        padding: .62rem .65rem;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    body.cs-page--paired .csd-board {
        padding-block: .45rem;
        gap: .4rem;
    }

    body.cs-page--paired .csd-board-header { gap: .6rem; }
    body.cs-page--paired .csd-board-heading h1 { font-size: 1.25rem; }
    body.cs-page--paired .csd-board-kicker { font-size: .62rem; }
    body.cs-page--paired .csd-live-section { padding: .65rem .85rem; }
    body.cs-page--paired .csd-live-heading { margin-bottom: .4rem; }
}

@media (max-width: 1200px) {
    body.cs-page .cs-header {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-areas: "brand title actions";
        column-gap: .75rem;
        row-gap: 0;
    }

    body.cs-page .cs-header-page-title {
        align-self: center;
        font-size: clamp(.9rem, 1.6vw, 1.15rem);
    }

    body.cs-page .cs-header-actions {
        justify-self: end;
        flex-wrap: nowrap;
        max-width: 100%;
    }

    body.cs-page .cs-header-datetime { display: inline-flex; }

    body.cs-page--paired .csd-board-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: .75rem;
    }

    body.cs-page--paired .csd-board-heading h1 {
        margin: 0;
        font-size: clamp(1.35rem, 3vw, 1.9rem);
    }

    body.cs-page--paired .csd-cta {
        padding: 0;
        border: 0;
        background: transparent;
    }

    body.cs-page--paired .csd-cta p { display: none; }

    body.cs-page--paired .csd-cta .cs-btn-lg {
        min-height: 48px;
        min-width: 168px;
        padding: .65rem 1rem;
        box-shadow: 0 8px 20px rgba(26, 109, 255, .24);
    }

    body.cs-page--paired .csd-live-empty-state {
        min-height: 0;
        padding: 1.5rem 1rem;
    }

    body.cs-page--paired .csd-live-empty-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }
}

@media (max-width: 1000px) {
    body.cs-page .cs-header:not(.cs-header--responsive-title) {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand actions" "title title";
        row-gap: .45rem;
    }

    body.cs-page .cs-header--responsive-title {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand actions";
        row-gap: 0;
    }

    body.cs-page .cs-header--responsive-title .cs-header-page-title { display: none; }

    body.cs-page .cs-header-responsive-title {
        display: block;
        width: calc(100% - var(--cs-frame-gutter));
        max-width: var(--cs-frame-max-width);
        margin: .45rem auto 0;
        padding-inline: clamp(.85rem, 1.7vw, 1.5rem);
        color: #fff;
        font-size: clamp(1rem, 2.2vw, 1.25rem);
        font-weight: 800;
        letter-spacing: -.025em;
        line-height: 1.2;
        text-align: left;
        text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
    }
}

@media (min-width: 601px) and (max-width: 1000px) {
    body.cs-page .cs-header {
        position: relative;
        top: auto;
    }

    body.cs-page .cs-header-account-menu {
        position: static;
        width: min(17rem, calc(100vw - 2rem));
        margin-top: .4rem;
    }
}

@media (max-width: 600px) {
    body.cs-page { --cs-frame-gutter: .75rem; }

    body.cs-page .cs-header {
        width: calc(100% - var(--cs-frame-gutter));
        margin-top: .4rem;
        padding: .5rem .65rem;
        border-radius: 22px;
    }
    body.cs-page .cs-main { width: calc(100% - var(--cs-frame-gutter)); }

    body.cs-page .cs-header {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand title" "actions actions";
        row-gap: .35rem;
    }
    body.cs-page .cs-header--responsive-title {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "brand" "actions";
        row-gap: .35rem;
    }

    body.cs-page .cs-header-logo { gap: .45rem; }
    body.cs-page .cs-header-logo img { height: 32px; }
    body.cs-page .cs-header-titles strong { font-size: .8rem; }
    body.cs-page .cs-header-titles span { display: none; }
    body.cs-page .cs-header-page-title { font-size: .9rem; }

    body.cs-page .cs-header-actions {
        justify-self: stretch;
        justify-content: center;
        flex-wrap: wrap;
        gap: .35rem .5rem;
    }

    body.cs-page .cs-header-datetime { font-size: .72rem; }
    body.cs-page .cs-header-user { padding: .25rem .5rem .25rem .35rem; font-size: .74rem; }

    body.cs-page--paired .csd-board-header { gap: .5rem; }
    body.cs-page--paired .csd-cta .cs-btn-lg {
        min-width: 0;
        min-height: 44px;
        padding: .55rem .7rem;
        gap: .35rem;
        font-size: .82rem;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    body.cs-page .cs-header-page-title { font-size: .82rem; }
    body.cs-page .cs-header-responsive-title { font-size: .9rem; }
    body.cs-page .cs-header-actions { gap: .3rem; }
    body.cs-page .cs-header-datetime { gap: .22rem; font-size: .66rem; }
    body.cs-page .cs-header-user { font-size: .68rem; }
    body.cs-page--paired .csd-board { padding: .5rem 0; }
    body.cs-page--paired .csd-cta .cs-btn-lg { font-size: .75rem; }
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-main-layout {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    margin-top: clamp(.75rem, 2vw, 2rem);
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-content {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar {
    flex: 0 0 auto;
    width: 300px;
    max-width: 32%;
    height: auto;
    min-height: 0;
    align-self: flex-start;
    position: static;
    top: auto;
    max-height: min(70vh, 560px);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: .75rem;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-lg);
    background: var(--cs-surface);
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) {
    flex-basis: auto;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    padding: .4rem;
    overflow: visible;
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) > .cs-sidebar-disclosure {
    position: static;
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) .cs-sidebar-toggle {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    max-width: 100%;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: .5rem;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-sm);
    background: var(--cs-surface-2);
    box-shadow: none;
    text-transform: none;
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) .cs-live-dot {
    display: none;
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) .cs-sidebar-toggle-label {
    position: absolute;
    width: 1px;
    height: auto;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) .cs-sidebar-toggle::after {
    margin-left: 0;
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar-title {
    margin: 0;
    text-transform: none;
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar-panel {
    padding-top: .65rem;
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar-empty {
    margin: 0;
    padding: .65rem .75rem;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-sm);
    background: var(--cs-surface);
    color: var(--cs-text-2);
    font-size: .82rem;
    text-align: left;
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    max-height: min(55vh, 440px);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0 .25rem .25rem 0;
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar-list .cs-sortie-card {
    flex: 0 0 auto;
    min-width: 0;
    margin-bottom: 0;
    padding: .6rem .7rem;
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar-list .cs-sortie-equip { margin-bottom: .2rem; font-size: .86rem; }
body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar-list .cs-sortie-meta { margin-bottom: .4rem; }
body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar-list .cs-crew { margin-bottom: .4rem; }
body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar-list .cs-crew span { display: none; }
body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar-list .cs-crew::before {
    color: var(--cs-text-3);
    content: attr(data-count) " à bord";
    font-size: .74rem;
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar-list .cs-btn-checkin {
    min-height: 38px;
    font-size: .82rem;
}

body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar-list .cs-sortie-card-actions {
    margin: .5rem -.7rem -.6rem;
    padding: .5rem .7rem .6rem;
}

/* Accueil de la tablette appairée : sorties à gauche, connexion et infos club à droite. */
body.cs-page--paired { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.cs-page--paired .cs-wrapper { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.cs-page--paired .cs-header,
body.cs-page--paired .cs-header-responsive-title { display: none !important; }
body.cs-page--paired .csd-board {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(1rem, 2vw, 1.5rem);
    width: calc(100% - var(--cs-frame-gutter));
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    padding-block: clamp(1rem, 2.5vh, 2rem);
}
body.cs-page--paired .csd-home-live {
    min-width: 0;
    min-height: 0;
    padding: clamp(1.1rem, 2vw, 1.75rem);
    border-color: rgba(255, 255, 255, .1);
    background: rgba(17, 21, 30, .94);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .28);
}
.csd-home-live-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.csd-home-live-heading h1 { margin: .35rem 0 0; color: #fff; font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.15; letter-spacing: -.025em; }
.csd-home-eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--cs-text-3); font-size: .7rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.csd-home-live-list { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
.csd-home-live-list .csh-live-item { min-height: 76px; }
.csd-home-live > .csh-live-content {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .5) rgba(255, 255, 255, .04);
}
.csd-home-empty { display: flex; min-height: 260px; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: .65rem; color: var(--cs-text-2); text-align: center; }
.csd-home-empty strong { color: #fff; font-size: 1.08rem; }
.csd-home-empty > span:last-child { color: var(--cs-text-3); font-size: .88rem; }
.csd-home-side { display: flex; min-width: 0; flex-direction: column; gap: 1rem; }
.csd-login-tile {
    display: flex;
    min-height: clamp(155px, 24vh, 230px);
    align-items: center;
    gap: 1rem;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--cs-r-lg);
    background: linear-gradient(135deg, #2879f4, #1555c8);
    color: #fff;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.csd-login-tile:hover { transform: translateY(-3px); filter: brightness(1.06); }
.csd-login-tile:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.csd-login-icon { display: grid; width: 68px; height: 68px; flex: 0 0 68px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 20px; background: rgba(255,255,255,.14); }
.csd-login-tile > span:nth-child(2) { display: grid; gap: .4rem; min-width: 0; }
.csd-login-tile strong { font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.1; }
.csd-login-tile small { color: rgba(255,255,255,.82); font-size: .82rem; line-height: 1.4; }
.csd-login-arrow { flex: 0 0 auto; margin-left: auto; }
.csd-club-card { flex: 1; padding: clamp(1.2rem, 2vw, 1.6rem); border: 1px solid rgba(255,255,255,.1); border-radius: var(--cs-r-lg); background: rgba(17, 21, 30, .94); box-shadow: 0 18px 48px rgba(0,0,0,.24); }
.csd-club-card-heading { display: flex; align-items: center; gap: .85rem; }
.csd-club-mark { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid rgba(92,151,255,.25); border-radius: 14px; background: rgba(26,109,255,.12); color: #9fc2ff; }
.csd-club-mark--logo { overflow: hidden; padding: 3px; background: rgba(255,255,255,.96); }
.csd-club-mark--logo img { display: block; width: 100%; height: 100%; border-radius: 10px; object-fit: contain; }
.csd-club-mark--fallback { font-size: .9rem; font-weight: 800; letter-spacing: .04em; }
.csd-club-card-heading h2 { margin: .25rem 0 0; color: #fff; font-size: 1.1rem; }
.csd-club-name { margin: 1.15rem 0 .75rem; color: #fff; font-size: 1.1rem; font-weight: 750; overflow-wrap: anywhere; }
.csd-club-datetime { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); color: var(--cs-text-2); font-size: .9rem; }
.csd-club-datetime time { color: #fff; font-size: 1.05rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.csd-outing-trigger { appearance: none; cursor: pointer; font: inherit; }
.csd-outing-trigger:focus-visible { outline: 3px solid #9fc2ff; outline-offset: 3px; }
.csd-outing-modal[hidden] { display: none !important; }
.csd-outing-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: clamp(.5rem, 3vw, 2rem); background: rgba(0,0,0,.78); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.csd-outing-dialog { display: grid; grid-template-rows: auto minmax(150px, 1fr) auto; gap: .55rem; width: min(100%, 1120px); max-height: min(94dvh, 880px); overflow: auto; padding: clamp(.85rem, 2vw, 1.4rem); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: #080a0f; box-shadow: 0 28px 90px rgba(0,0,0,.55); }
.csd-outing-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 .1rem .35rem; }
.csd-outing-dialog-header h2 { margin: 0; color: #fff; font-size: 1.15rem; }
.csd-outing-close { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 0; border-radius: var(--cs-r-sm); background: none; color: var(--cs-text-2); font-size: 1.6rem; font-weight: 400; line-height: 1; cursor: pointer; }
.csd-outing-close:hover { background: var(--cs-elevated-2); color: #fff; }
.csd-outing-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.csd-outing-composition,
.csd-outing-info,
.csd-outing-equipment { min-width: 0; padding: .8rem; border: 1.5px solid #1767ed; border-radius: 12px; }
.csd-outing-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 1.4rem .8rem; color: var(--cs-text-2); font-size: .9rem; }
.csd-outing-section-heading h3,
.csd-outing-info h3,
.csd-outing-equipment h3 { margin: 0; color: #fff; font-size: .98rem; font-weight: 800; text-transform: uppercase; }
.csd-outing-crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); align-content: start; gap: .65rem; max-height: 30vh; overflow-y: auto; }
.csd-outing-crew-member { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: .7rem; padding: .55rem .7rem; border: 1px solid #1767ed; border-radius: 11px; color: var(--cs-text-2); font-size: .95rem; }
.csd-outing-crew-member > span:first-child { min-width: 0; flex: 1 1 8rem; overflow-wrap: anywhere; }
.csd-outing-crew-meta { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .3rem; }
.csd-outing-crew-role {
    flex: 0 0 auto;
    padding: .2rem .48rem;
    border: 1px solid rgba(126, 170, 239, .38);
    border-radius: 999px;
    background: rgba(37, 91, 170, .24);
    color: #d3e4ff;
    font-size: .72rem;
    font-weight: 800;
}
.csd-outing-crew-age-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: .2rem .48rem;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 999px;
    background: rgba(148, 163, 184, .1);
    color: #cbd5e1;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}
.csd-outing-bottom { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: .8rem; }
.csd-outing-info,
.csd-outing-equipment { min-height: 195px; }
.csd-outing-info h3,
.csd-outing-equipment h3 { margin: 0 .5rem 1rem; }
.csd-outing-info dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: .7rem; min-height: 100px; margin: 0; text-align: center; }
.csd-outing-info dl > div,
.csd-outing-equipment dl > div { min-width: 0; }
.csd-outing-info dt,
.csd-outing-equipment dt { color: #fff; font-size: .84rem; font-weight: 750; }
.csd-outing-info dd,
.csd-outing-equipment dd { margin: .45rem 0 0; color: var(--cs-text-2); font-size: .9rem; overflow-wrap: anywhere; }
.csd-outing-equipment-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(120px, 1.2fr); align-items: center; gap: .75rem; }
.csd-outing-equipment-body dl { display: grid; gap: .6rem; margin: 0; text-align: center; }
.csd-outing-equipment-body img { display: block; width: 100%; max-height: 155px; border-radius: 12px; object-fit: cover; }
.csd-outing-equipment-body img[hidden] { display: none; }
body.csd-outing-modal-open { overflow: hidden; }

body.cs-page.cs-theme-light .csd-outing-dialog {
    border-color: #c8cbd0;
    background: #f9fafb;
    box-shadow: 0 28px 90px rgba(16, 24, 40, .24);
}
body.cs-page.cs-theme-light .csd-outing-dialog-header h2,
body.cs-page.cs-theme-light .csd-outing-section-heading h3,
body.cs-page.cs-theme-light .csd-outing-info h3,
body.cs-page.cs-theme-light .csd-outing-equipment h3,
body.cs-page.cs-theme-light .csd-outing-info dt,
body.cs-page.cs-theme-light .csd-outing-equipment dt { color: var(--cs-text); }
body.cs-page.cs-theme-light .csd-outing-close:hover {
    background: var(--cs-elevated-2);
    color: var(--cs-text);
}
body.cs-page.cs-theme-light .csd-outing-close:focus-visible {
    outline-color: var(--cs-blue);
}
body.cs-page.cs-theme-light .csd-outing-composition,
body.cs-page.cs-theme-light .csd-outing-info,
body.cs-page.cs-theme-light .csd-outing-equipment {
    border-color: rgba(21, 94, 239, .3);
    background: #fff;
}
body.cs-page.cs-theme-light .csd-outing-crew-member {
    border-color: rgba(21, 94, 239, .3);
    background: #f9fafb;
    color: var(--cs-text);
}
body.cs-page.cs-theme-light .csd-outing-crew-role {
    border-color: #b2ccff;
    background: #e8f0ff;
    color: #1849a9;
}
body.cs-page.cs-theme-light .csd-outing-crew-age-badge {
    border-color: #c8cbd0;
    background: #eef0f3;
    color: var(--cs-text-2);
}

@media (max-width: 900px) {
    body.cs-page--paired .csd-board { grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); min-height: 0; }
    .csd-login-tile { flex-wrap: wrap; }
}
@media (max-width: 700px) {
    body.cs-page--paired { height: auto; min-height: 100dvh; overflow-x: hidden; overflow-y: auto; }
    body.cs-page--paired .cs-wrapper { height: auto; min-height: 100dvh; overflow: visible; }
    body.cs-page--paired .csd-board {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        flex: 0 0 auto;
        min-height: 0;
        overflow: visible;
    }
    body.cs-page--paired .csd-home-live { min-height: 340px; }
    body.cs-page--paired .csd-home-live > .csh-live-content { overflow-y: visible; }
    .csd-home-side { display: grid; grid-template-columns: minmax(0, 1fr); }
    .csd-login-tile { min-height: 130px; }
    .csd-club-card { min-height: 0; }
    .csd-outing-dialog { grid-template-rows: auto auto auto; max-height: 96dvh; }
    .csd-outing-bottom { grid-template-columns: minmax(0, 1fr); }
    .csd-outing-info, .csd-outing-equipment { min-height: 0; }
    .csd-outing-info dl { min-height: 80px; }
    .csd-outing-crew { max-height: 32vh; }
}
@media (max-width: 420px) {
    .csd-outing-dialog { padding: .65rem; border-radius: 16px; }
    .csd-outing-section-heading { margin-inline: .2rem; font-size: .78rem; }
    .csd-outing-section-heading h3, .csd-outing-info h3, .csd-outing-equipment h3 { font-size: .82rem; }
    .csd-outing-info dl { grid-template-columns: 1fr; gap: .9rem; padding: .45rem 0; }
    .csd-outing-equipment-body { grid-template-columns: minmax(0, 1fr); }
    .csd-outing-equipment-body img { max-height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
    .csd-login-tile { transition: none; }
}

@media (max-width: 960px) {
    body.cs-page #cs-main[data-active-tab="historique"] .cs-main-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar {
        width: 100%;
        max-width: none;
        max-height: none;
        align-self: stretch;
        overflow: visible;
        margin-bottom: .75rem;
    }

    body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar:has(> .cs-sidebar-disclosure:not([open])) {
        width: fit-content;
        max-width: 100%;
        align-self: flex-start;
    }

    body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar-list {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        margin: 0 -.75rem;
        padding: 0 .75rem .3rem;
        scroll-snap-type: x proximity;
    }

    body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar-list .cs-sortie-card {
        flex: 0 0 220px;
        scroll-snap-align: start;
    }

    body.cs-page #cs-main[data-active-tab="historique"] .cs-content {
        padding-left: clamp(.75rem, 2.5vw, 2rem);
        padding-right: clamp(.75rem, 2.5vw, 2rem);
        padding-top: .5rem;
    }
}

    /* Accueil personnalisé de l'adhérent, distinct de l'accueil encadrant. */
    body.cs-page--member-home {
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.cs-page--coach-home {
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.cs-page--member-home .cs-wrapper {
        min-height: 100dvh;
    }

    body.cs-page--coach-home .cs-wrapper {
        min-height: 100dvh;
    }

    .csm-dashboard {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(17rem, 1.08fr);
        grid-template-rows: minmax(210px, .7fr) minmax(350px, 1.55fr);
        grid-template-areas: "current current profile" "checkout secondary club";
        gap: clamp(.65rem, 1.3vw, 1.15rem);
        width: calc(100% - var(--cs-frame-gutter));
        max-width: var(--cs-frame-max-width);
        min-height: calc(100dvh - 2rem);
        margin-inline: auto;
        padding-block: clamp(.75rem, 1.5vh, 1.25rem);
    }

    .csm-card {
        min-width: 0;
        padding: clamp(1rem, 1.8vw, 1.5rem);
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: var(--cs-r-lg);
        background: var(--cs-elevated);
        box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
    }

    .csm-current {
        grid-area: current;
        display: flex;
        min-height: 0;
        flex-direction: column;
    }
    .csm-coach-current {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto minmax(0, 1fr);
        grid-template-areas: "heading heading" "own action";
        align-items: center;
        gap: .75rem 1rem;
    }

    .csm-coach-current .csm-card-heading {
        grid-area: heading;
        margin: 0;
    }

    .csm-coach-own-list {
        grid-area: own;
        display: grid;
        min-width: 0;
        min-height: 0;
        gap: .5rem;
        max-height: 135px;
        overflow-y: auto;
    }

    .csm-coach-own-outing {
        display: flex;
        min-width: 0;
        min-height: 70px;
        align-items: center;
        justify-content: space-between;
        gap: .8rem;
        padding: .6rem .8rem;
        border: 1px solid var(--cs-blue);
        border-radius: 12px;
        background: #080a0f;
    }

    .csm-dashboard-outing-button {
        width: 100%;
        color: inherit;
        font: inherit;
        text-align: left;
        cursor: pointer;
    }

    .csm-dashboard-outing-button:hover { border-color: #2879f4; }
    .csm-dashboard-outing-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

    .csm-coach-current > .csm-empty {
        grid-area: own;
        width: 100%;
    }

    .csm-coach-view-outings {
        grid-area: action;
        width: 11rem;
        min-height: 70px;
        padding: .65rem .9rem;
        border: 0;
        border-radius: 12px;
        background: #1d5fd0;
        color: #fff;
        font: inherit;
        font-weight: 800;
        line-height: 1.3;
        text-align: center;
        cursor: pointer;
    }

    .csm-coach-view-outings:hover { background: #2879f4; }
    .csm-coach-view-outings:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
    .csm-coach-current .cs-alert { grid-column: 1 / -1; margin: 0; }

    .csm-card-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .csm-card-heading h1,
    .csm-profile h2,
    .csm-club h2 {
        margin: 0;
        color: #fff;
        font-size: clamp(1.05rem, 1.5vw, 1.35rem);
        font-weight: 800;
        letter-spacing: -.025em;
        line-height: 1.2;
    }

    .csm-count {
        display: grid;
        width: 2.35rem;
        height: 2.35rem;
        flex: 0 0 auto;
        place-items: center;
        border: 1px solid rgba(92, 151, 255, .3);
        border-radius: 50%;
        background: rgba(26, 109, 255, .14);
        color: #b7d0ff;
        font-size: .95rem;
        font-weight: 800;
    }

    .csm-outing-list {
        display: grid;
        flex: 1 1 auto;
        min-height: 0;
        align-content: start;
        grid-auto-rows: max-content;
        gap: .6rem;
        overflow-y: auto;
    }

    .csm-outing {
        display: flex;
        width: 100%;
        min-width: 0;
        min-height: 76px;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .8rem 1rem;
        border: 1px solid rgba(255, 255, 255, .09);
        border-left: 4px solid var(--cs-blue);
        border-radius: 13px;
        background: rgba(8, 10, 15, .76);
        color: var(--cs-text);
        cursor: pointer;
        font: inherit;
        text-align: left;
        transition: border-color .16s ease, background .16s ease, transform .16s ease;
    }

    .csm-outing.cs-t-warn { border-left-color: var(--cs-amber); }
    .csm-outing.cs-t-late { border-left-color: var(--cs-red); }
    .csm-outing:hover { transform: translateY(-1px); background: rgba(32, 38, 50, .92); }
    .csm-outing:focus-visible { outline: 3px solid #9fc2ff; outline-offset: 3px; }

    .csm-outing-copy {
        display: grid;
        min-width: 0;
        gap: .16rem;
    }

    .csm-outing-copy strong {
        color: #fff;
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    .csm-outing-copy > span {
        color: var(--cs-text-2);
        font-size: .82rem;
        overflow-wrap: anywhere;
    }

    .csm-outing-copy > span:last-child {
        color: var(--cs-text-3);
        font-size: .76rem;
    }

    .csm-outing-duration {
        flex: 0 0 auto;
        color: #fff;
        font-size: 1rem;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .csm-outing-hint,
    .csm-empty {
        margin: auto 0 0;
        padding-top: .8rem;
        color: var(--cs-text-3);
        font-size: .82rem;
    }

    .csm-empty {
        display: grid;
        min-height: 0;
        flex: 1;
        place-items: center;
        margin: 0;
        padding: 1.25rem;
        border: 1px dashed rgba(255, 255, 255, .16);
        border-radius: 13px;
        color: var(--cs-text-2);
        text-align: center;
    }

    .csm-current .cs-alert { margin: 0 0 .75rem; }

    .csm-profile {
        grid-area: profile;
        display: flex;
        min-height: 0;
        flex-direction: column;
        justify-content: space-between;
        gap: 1rem;
        background: #080a0f;
    }

    .csm-profile:has(.cs-header-account[open]) {
        position: relative;
        z-index: 200;
    }

    .csm-profile-heading {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: .75rem;
    }

    .csm-profile-heading .cs-header {
        position: static;
        top: auto;
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "actions";
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.cs-page .csm-profile-heading .cs-header-logo,
    body.cs-page .csm-profile-heading .cs-header-page-title,
    body.cs-page .csm-profile-heading .cs-header-responsive-title { display: none; }

    .csm-profile-heading .cs-header-actions {
        grid-area: actions;
        justify-self: end;
        justify-content: flex-end;
    }

    .csm-profile h2 {
        color: var(--cs-text-2);
        font-size: .83rem;
        letter-spacing: .045em;
        padding-top: .55rem;
    }

    .csm-account-controls,
    .csm-account-controls .cs-header-actions {
        display: flex;
        min-width: 0;
        justify-content: flex-end;
    }

    .csm-account-controls .cs-header-actions { gap: 0; }
    .csm-account-controls .cs-header-user { padding: .3rem .55rem .3rem .35rem; font-size: .78rem; }
    .csm-account-controls .cs-header-user-name { max-width: min(13rem, 18vw); }
    .csm-account-controls .cs-header-account-menu { top: calc(100% + .4rem); }

    .csm-profile-details {
        display: grid;
        gap: .4rem;
        margin-top: auto;
    }

    .csm-profile-details strong {
        color: #fff;
        font-size: clamp(1.05rem, 1.5vw, 1.3rem);
        overflow-wrap: anywhere;
    }

    .csm-profile-details span {
        color: var(--cs-text-2);
        font-size: .9rem;
    }

    .csm-action {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: center;
        gap: clamp(.75rem, 1.5vw, 1.3rem);
        padding: clamp(1rem, 2vw, 1.65rem);
        border-radius: var(--cs-r-lg);
        box-shadow: 0 18px 42px rgba(0, 0, 0, .25);
        color: #fff;
        font-size: clamp(1rem, 1.6vw, 1.35rem);
        font-weight: 800;
        line-height: 1.25;
        text-align: center;
        text-decoration: none;
        transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
    }

    .csm-action:hover { filter: brightness(1.07); box-shadow: 0 24px 48px rgba(0, 0, 0, .32); }
    .csm-action:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
    .csm-action .csm-icon { display: block; width: clamp(42px, 5vw, 72px); height: clamp(42px, 5vw, 72px); flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
    .csm-action--checkout {
        grid-area: checkout;
        flex-direction: column;
        background: linear-gradient(145deg, #2879f4, #1555c8);
    }

    .csm-secondary-actions {
        grid-area: secondary;
        display: grid;
        min-height: 0;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: clamp(.65rem, 1.2vw, 1rem);
    }

    .csm-action--secondary {
        justify-content: flex-start;
        background: linear-gradient(145deg, #08a85f, #087b49);
        font-size: clamp(.9rem, 1.25vw, 1.1rem);
        text-align: left;
    }

    .csm-action--secondary .csm-icon { width: clamp(38px, 4vw, 54px); height: clamp(38px, 4vw, 54px); }

    .csm-club {
        grid-area: club;
        display: flex;
        min-width: 0;
        flex-direction: column;
        justify-content: flex-start;
        gap: 1.5rem;
        background: #080a0f;
    }

    .csm-club-identity {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 1rem;
    }

    .csm-club-logo {
        display: grid;
        width: clamp(54px, 6vw, 76px);
        height: clamp(54px, 6vw, 76px);
        flex: 0 0 auto;
        place-items: center;
        overflow: hidden;
        border: 1px solid rgba(92, 151, 255, .25);
        border-radius: 17px;
        background: rgba(26, 109, 255, .12);
        color: #b7d0ff;
        font-size: 1rem;
        font-weight: 850;
        letter-spacing: .04em;
    }

    .csm-club-logo--image {
        padding: 4px;
        background: #fff;
    }

    .csm-club-logo img {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 12px;
        object-fit: contain;
    }

    .csm-club-copy {
        display: grid;
        min-width: 0;
        gap: .3rem;
    }

    .csm-club-copy > span {
        color: var(--cs-text-3);
        font-size: .72rem;
        font-weight: 750;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .csm-club-copy h2 {
        overflow-wrap: anywhere;
    }

    .csm-club-datetime {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, .1);
        color: var(--cs-text-2);
        font-size: .8rem;
    }

    .csm-club-datetime time:last-child {
        color: #fff;
        font-size: 1.2rem;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
    }

    @media (max-width: 900px) {
        .csm-dashboard {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            grid-template-rows: minmax(210px, auto) minmax(380px, auto) auto;
            grid-template-areas: "current profile" "checkout secondary" "club club";
            min-height: 0;
            padding-block: 1rem 1.5rem;
        }

        .csm-action--secondary { font-size: clamp(.9rem, 2vw, 1.1rem); }
    }

    @media (max-width: 600px) {
        body.cs-page--member-home { --cs-frame-gutter: 1rem; }

        .csm-dashboard {
            grid-template-columns: minmax(0, 1fr);
            grid-template-rows: auto;
            grid-template-areas: "current" "profile" "checkout" "secondary" "club";
            gap: .75rem;
            padding-block: .75rem 1.25rem;
        }

        .csm-card { padding: 1rem; }
        .csm-profile-heading { align-items: center; }
        .csm-profile h2 { padding-top: 0; font-size: .75rem; }
        .csm-account-controls .cs-header-user-name { max-width: min(10rem, 42vw); }
        .csm-outing-list { max-height: none; }
        .csm-action--checkout { min-height: 175px; }
        .csm-secondary-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(145px, auto); }
        .csm-action--secondary { flex-direction: column; justify-content: center; gap: .55rem; padding: .85rem .65rem; font-size: .83rem; text-align: center; }
        .csm-action--secondary .csm-icon { width: 38px; height: 38px; }
        .csm-club { min-height: 160px; justify-content: flex-start; gap: 1rem; }
    }

    @media (max-width: 360px) {
        .csm-secondary-actions { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(130px, auto)); }
        .csm-action--secondary { flex-direction: row; justify-content: flex-start; text-align: left; }
        .csm-club-datetime { display: flex; width: 100%; justify-content: space-between; text-align: left; }
    }

    @media (max-width: 1200px) {
        .csm-account-controls .cs-header-user-name { display: none; }
    }

    @media (min-width: 601px) and (max-width: 1200px) {
        .csm-profile-heading {
            align-items: center;
        }

        .csm-account-controls {
            align-self: center;
            justify-content: flex-end;
        }

        .csm-account-controls .cs-header-actions { justify-content: flex-end; }

        body.cs-page .csm-account-controls .cs-header-account-menu {
            position: absolute;
            top: calc(100% + .4rem);
            right: 0;
            width: min(17rem, calc(100vw - 2rem));
            margin-top: 0;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .csm-action,
        .csm-outing { transition: none; }
    }

    body.cs-page.cs-theme-light .csm-card {
        border-color: #c8cbd0;
        background: #f9fafb;
        box-shadow: 0 12px 32px rgba(16, 24, 40, .12);
    }

    body.cs-page.cs-theme-light .csm-card-heading h1,
    body.cs-page.cs-theme-light .csm-club h2,
    body.cs-page.cs-theme-light .csm-profile-details strong,
    body.cs-page.cs-theme-light .csm-outing-copy strong,
    body.cs-page.cs-theme-light .csm-outing-duration,
    body.cs-page.cs-theme-light .csm-club-datetime time:last-child {
        color: #29313b;
        text-shadow: none;
    }

    body.cs-page.cs-theme-light .csm-outing {
        border-color: #d0d5dd;
        background: #fff;
        color: #29313b;
    }

    body.cs-page.cs-theme-light .csm-outing:hover { background: #f2f4f7; }
    body.cs-page.cs-theme-light .csm-empty { border-color: #c8cbd0; }

    .csm-coach-modal[hidden] { display: none !important; }

    .csm-coach-modal {
        position: fixed;
        z-index: 1100;
        inset: 0;
        display: grid;
        place-items: center;
        padding: clamp(.5rem, 3vw, 2rem);
        background: rgba(0, 0, 0, .78);
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
    }

    .csm-coach-modal-open { overflow: hidden; }

    .csm-coach-dialog {
        display: flex;
        width: min(100%, 1120px);
        max-height: min(94dvh, 880px);
        flex-direction: column;
        gap: .85rem;
        overflow: auto;
        padding: clamp(.85rem, 2vw, 1.4rem);
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 20px;
        background: var(--cs-elevated);
        box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
    }

    .csm-coach-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .csm-coach-modal-header h2 {
        margin: 0;
        color: #fff;
        font-size: clamp(1.05rem, 2vw, 1.3rem);
    }

    .csm-coach-modal-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

    .csm-coach-modal-section {
        display: grid;
        min-width: 0;
        gap: .65rem;
    }

    .csm-coach-modal-section h3 {
        margin: 0;
        color: #fff;
        font-size: 1rem;
    }

    .csm-member-outings-note {
        margin: 0;
        color: var(--cs-text-3);
        font-size: .8rem;
        line-height: 1.4;
    }

    .csm-coach-modal-list {
        display: grid;
        gap: .65rem;
    }

    .csm-coach-modal-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(4rem, auto) minmax(145px, 150px);
        align-items: center;
        gap: .75rem;
        padding: .55rem;
        border-radius: 13px;
        background: #0c0f14;
    }

    .csm-member-modal-row--readonly { grid-template-columns: minmax(0, 1fr) minmax(4rem, auto); }

    .csm-coach-row-copy {
        display: grid;
        min-width: 0;
        gap: .12rem;
        padding: .35rem .7rem;
        border: 1px solid var(--cs-blue);
        border-left-width: 1px;
        border-radius: 10px;
    }

    .csm-coach-row-copy strong {
        color: #fff;
        font-size: .98rem;
        overflow-wrap: anywhere;
    }

    .csm-coach-row-copy > span {
        color: var(--cs-text-2);
        font-size: .84rem;
        overflow-wrap: anywhere;
    }

    .csm-coach-modal-row .csm-outing-duration {
        justify-self: center;
        color: #fff;
    }

    .csm-coach-modal-row form { margin: 0; }

    .csm-coach-finish,
    .csm-coach-force {
        width: 100%;
        min-height: 58px;
        padding: .6rem .75rem;
        border: 0;
        border-radius: 12px;
        color: #fff;
        font: inherit;
        font-size: clamp(.9rem, 1.5vw, 1.1rem);
        font-weight: 800;
        line-height: 1.2;
        cursor: pointer;
    }

    .csm-coach-finish { background: #1d5fd0; }
    .csm-coach-finish:hover { background: #2879f4; }
    .csm-coach-force { background: #e76b16; }
    .csm-coach-force:hover { background: #f58220; }
    .csm-coach-finish:focus-visible,
    .csm-coach-force:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

    .csm-coach-logout {
        display: flex;
        min-height: 46px;
        align-items: center;
        justify-content: center;
        padding: .6rem 1rem;
        border: 1px solid rgba(255, 255, 255, .15);
        border-radius: 11px;
        background: #1d5fd0;
        color: #fff;
        font-size: .9rem;
        font-weight: 800;
        text-decoration: none;
    }

    .csm-coach-logout:hover { background: #2879f4; }
    .csm-coach-logout:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

    .csm-coach-modal-empty {
        margin: 0;
        padding: .85rem 1rem;
        border: 1px dashed rgba(255, 255, 255, .2);
        border-radius: 10px;
        color: var(--cs-text-2);
    }

    @media (min-width: 901px) and (max-width: 1100px) {
        .csm-dashboard {
            grid-template-rows: minmax(240px, auto) minmax(350px, auto);
        }

        body.cs-page--member-home .csm-current {
            height: auto;
            overflow: visible;
        }

        .csm-coach-own-list { max-height: clamp(8rem, 24vh, 10rem); }
        .csm-coach-view-outings {
            width: min(100%, 14rem);
            max-width: none;
            justify-self: end;
        }
    }

    @media (max-width: 900px) {
        body.cs-page--member-home .csm-current {
            height: auto;
            overflow: visible;
        }

        .csm-coach-current {
            grid-template-columns: minmax(0, 1fr);
            grid-template-rows: auto auto auto;
            grid-template-areas: "heading" "own" "action";
            align-items: stretch;
        }

        .csm-coach-own-list { max-height: clamp(8rem, 24vh, 10rem); }
        .csm-coach-view-outings { width: 100%; max-width: none; }
    }

    @media (max-width: 600px) {
        .csm-coach-own-list { max-height: clamp(8rem, 28vh, 14rem); }
        .csm-coach-own-outing { gap: .55rem; padding: .55rem .65rem; }
        .csm-coach-view-outings { min-height: 50px; }
        .csm-coach-modal { padding: .4rem; }
        .csm-coach-dialog { max-height: 96dvh; gap: .7rem; border-radius: 15px; }
        .csm-coach-modal-row { grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; }
        .csm-coach-row-copy { grid-column: 1 / -1; }
        .csm-coach-modal-row .csm-outing-duration { grid-column: 1; justify-self: start; padding-inline: .5rem; }
        .csm-coach-modal-row form,
        .csm-coach-modal-row > .csm-coach-finish { grid-column: 2; grid-row: 2; }
        .csm-coach-finish,
        .csm-coach-force { min-height: 48px; padding: .5rem; font-size: .82rem; }
    }

    body.cs-page.cs-theme-light .csm-coach-own-outing,
    body.cs-page.cs-theme-light .csm-coach-dialog {
        border-color: #c8cbd0;
        background: #f9fafb;
    }

    body.cs-page.cs-theme-light .csm-coach-modal-row,
    body.cs-page.cs-theme-light .csm-coach-row-copy { background: #fff; }

    body.cs-page.cs-theme-light .csm-coach-modal-header h2,
    body.cs-page.cs-theme-light .csm-coach-modal-section h3,
    body.cs-page.cs-theme-light .csm-coach-row-copy strong,
    body.cs-page.cs-theme-light .csm-coach-modal-row .csm-outing-duration {
        color: #29313b;
    }

    body.cs-page.cs-theme-light .csm-coach-row-copy { border-color: #175cd3; }

body.cs-page--checkout .cs-header,
body.cs-page--checkout .cs-form-heading { display: none !important; }
body.cs-page--checkout {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
}
body.cs-page--checkout .cs-wrapper {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}
body.cs-page--checkout .cs-main {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
body.cs-page--checkout .cs-main-layout {
    align-items: stretch;
    min-height: 0;
    overflow: hidden;
}
body.cs-page--checkout .cs-content {
    align-self: stretch;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding-bottom: clamp(.4rem, 1vw, .8rem);
}
body.cs-page--checkout #form-checkout {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    gap: 1rem;
}
body.cs-page--checkout .cs-wizard-navigation {
    position: relative;
    z-index: 20;
    top: auto;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(6rem, auto) minmax(0, 1fr) minmax(6rem, auto);
    align-items: center;
    gap: .75rem;
    padding: .35rem 0;
    background: transparent;
}
body.cs-page--checkout .cs-wizard-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-width: 0;
    min-height: 46px;
    padding: .55rem .8rem;
    border: 0;
    border-radius: 999px;
    background: var(--cs-blue);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}
body.cs-page--checkout .cs-wizard-nav-button:hover { background: var(--cs-blue-2); }
body.cs-page--checkout .cs-wizard-nav-button:focus-visible,
body.cs-page--checkout .cs-crew-tab:focus-visible,
body.cs-page--checkout .cs-team-choice-btn:focus-visible {
    outline: 3px solid var(--cs-blue-2);
    outline-offset: 2px;
}
body.cs-page--checkout .cs-wizard-nav-button[hidden] { display: none !important; }
body.cs-page--checkout .cs-wizard-progress {
    min-width: 0;
    grid-template-columns: max-content minmax(2rem, 1fr) max-content;
    gap: .7rem;
    margin: 0;
    padding: .55rem .8rem;
    border-radius: 999px;
    background: var(--cs-surface);
    font-size: .82rem;
}
body.cs-page--checkout .cs-wizard-progress-track { min-width: 2rem; }
body.cs-page--checkout .cs-form-card {
    max-width: none;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body.cs-page--checkout .cs-wizard-step {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(.9rem, 1.8vw, 1.5rem);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-md);
    background: var(--cs-surface);
}
body.cs-page--checkout .cs-wizard-step[data-checkout-step="1"] {
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
}
body.cs-page--checkout .cs-wizard-step[data-checkout-step="3"] {
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
}
body.cs-page--checkout .cs-wizard-title {
    margin-bottom: 1rem;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    line-height: 1.35;
}

body.cs-page--checkout .cs-equipment-step-layout {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(200px, .33fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    min-height: 0;
    gap: 1rem;
}
body.cs-page--checkout .cs-equipment-step-layout--no-filters {
    grid-template-columns: minmax(0, 1fr);
}
body.cs-page--checkout .cs-equipment-filter-panel {
    flex: 0 0 auto;
    min-width: 0;
    padding: .85rem;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-md);
    background: var(--cs-surface);
}
body.cs-page--checkout .cs-equipment-filter-panel h4 {
    margin: 0 0 .7rem;
    color: var(--cs-text);
    font-size: .95rem;
}
body.cs-page--checkout .cs-equipment-filter-panel .cs-equipment-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem;
    margin: 0;
}
body.cs-page--checkout .cs-equipment-filter-panel .cs-equipment-filter {
    min-height: 46px;
    border-radius: var(--cs-r-sm);
    font-size: .88rem;
    font-weight: 700;
}
body.cs-page--checkout .cs-equipment-step-content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: clamp(.9rem, 1.8vw, 1.5rem);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-md);
    background: var(--cs-surface);
}
body.cs-page--checkout .cs-equipment-step-content .cs-equipment-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), min(100%, 250px)));
    justify-content: start;
}
body.cs-page--checkout .cs-personal-boat-grid { margin: 0 0 .8rem; }
body.cs-page--checkout .cs-wizard-step[data-checkout-step="2"] .cs-boat-type-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    grid-auto-rows: 1fr;
}
body.cs-page--checkout .cs-wizard-step[data-checkout-step="2"] .cs-boat-type-btn {
    height: clamp(88px, 12vh, 112px);
    min-height: 0;
}

body.cs-page--checkout .cs-crew-layout {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(200px, 25%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    min-height: 0;
    gap: 1rem;
}
body.cs-page--checkout .cs-crew-selection,
body.cs-page--checkout .cs-crew-browser {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-md);
    background: var(--cs-surface);
}
body.cs-page--checkout .cs-crew-selection { padding: .9rem; }
body.cs-page--checkout .cs-crew-selection .cs-selected-crew-header {
    align-items: center;
    flex-direction: column;
    gap: .3rem;
    text-align: center;
}
body.cs-page--checkout .cs-crew-count-hint {
    align-self: stretch;
    text-align: left;
}
body.cs-page--checkout .cs-crew-selection .cs-equipage-list {
    flex: 1;
    min-height: 0;
    margin-top: .75rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, .65) transparent;
}
body.cs-page--checkout .cs-crew-selection .cs-equipage-list > .cs-equipage-item {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}
body.cs-page--checkout .cs-crew-selection .cs-equipage-list > .cs-equipage-item .cs-equipage-member-label {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}
body.cs-page--checkout .cs-crew-selection .cs-equipage-list > .cs-equipage-item .cs-crew-role-toggle {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    max-width: 100%;
}
body.cs-page--checkout .cs-crew-selection .cs-equipage-list > .cs-equipage-item .cs-remove-btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
}
body.cs-page--checkout .cs-crew-selection .cs-equipage-list::-webkit-scrollbar {
    width: 8px;
}
body.cs-page--checkout .cs-crew-selection .cs-equipage-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(100, 116, 139, .65);
}
body.cs-page--checkout .cs-crew-selection .cs-equipage-list::-webkit-scrollbar-track {
    background: transparent;
}
body.cs-page--checkout .cs-crew-selection .cs-crew-empty { margin-top: .75rem; }
body.cs-page--checkout .cs-crew-browser > .cs-wizard-title {
    flex: 0 0 auto;
    margin: 0;
    padding: .85rem 1rem .55rem;
}
body.cs-page--checkout .cs-crew-browser > .cs-crew-step-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
body.cs-page--checkout .cs-crew-tabs {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--cs-border);
}
body.cs-page--checkout .cs-crew-tab {
    min-width: 0;
    min-height: 50px;
    padding: .65rem .8rem;
    border: 0;
    border-radius: var(--cs-r-md) var(--cs-r-md) 0 0;
    background: transparent;
    color: var(--cs-text-2);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}
body.cs-page--checkout .cs-crew-tab[aria-selected="true"] {
    background: var(--cs-blue);
    color: #fff;
}
body.cs-page--checkout .cs-crew-browser-panel[hidden] { display: none !important; }
body.cs-page--checkout .cs-crew-browser-panel {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem;
}
body.cs-page--checkout #crew-members-panel { overflow: hidden; }
body.cs-page--checkout #crew-members-panel .cs-member-picker {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    padding: 0;
}
body.cs-page--checkout .cs-crew-browser-panel .cs-add-member-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}
body.cs-page--checkout .cs-crew-browser-panel .cs-add-member-row .cs-input { min-width: 0; }
body.cs-page--checkout #crew-members-panel .cs-member-search-results {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: auto;
    overscroll-behavior: contain;
    padding: .35rem;
    align-content: start;
}
body.cs-page--checkout .cs-crew-browser-panel .cs-member-search-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), min(100%, 250px)));
    justify-content: start;
    align-content: start;
}
body.cs-page--checkout .cs-member-search-option {
    height: clamp(56px, 7vh, 68px);
    min-height: 0;
    padding: .35rem .6rem;
}
body.cs-page--checkout .cs-team-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: .7rem;
}
body.cs-page--checkout .cs-team-choice-btn {
    align-items: stretch;
    justify-content: flex-start;
    min-height: 140px;
    padding: .9rem;
    text-align: left;
}
body.cs-page--checkout .cs-team-choice-btn.selected {
    border-color: var(--cs-blue);
    background: rgba(26, 109, 255, .16);
}
body.cs-page--checkout .cs-team-card-members {
    display: grid;
    gap: .2rem;
    color: var(--cs-text-2);
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.3;
}
body.cs-page--checkout .cs-last-crew-option { margin-top: .75rem; }
body.cs-page--checkout .cs-last-crew-button { min-height: 50px; }
body.cs-page--checkout .cs-wizard-step[data-checkout-step="4"] .cs-seance-grid,
body.cs-page--checkout .cs-wizard-step[data-checkout-step="5"] #destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: .75rem;
}
body.cs-page--checkout .cs-wizard-step[data-checkout-step="4"] .cs-seance-btn,
body.cs-page--checkout .cs-wizard-step[data-checkout-step="5"] .cs-destination-btn {
    min-width: 0;
    min-height: 58px;
    overflow-wrap: anywhere;
    touch-action: manipulation;
}
body.cs-page--checkout .cs-wizard-step[data-checkout-step="6"] { padding-bottom: 1rem; }

@media (max-width: 800px) {
    body.cs-page--checkout .cs-equipment-step-layout {
        display: flex;
        flex-direction: column;
    }
    body.cs-page--checkout .cs-equipment-filter-panel { padding: .65rem; }
    body.cs-page--checkout .cs-equipment-filter-panel .cs-equipment-filters {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr));
    }
    body.cs-page--checkout .cs-crew-layout {
        display: flex;
        flex-direction: column;
    }
    body.cs-page--checkout .cs-crew-selection {
        flex: 0 0 auto;
        max-height: min(30vh, 220px);
    }
    body.cs-page--checkout .cs-crew-browser { flex: 1; }
    body.cs-page--checkout .cs-crew-selection .cs-equipage-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    }
    body.cs-page--checkout .cs-crew-browser-panel .cs-member-search-results {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 500px) {
    body.cs-page--checkout .cs-wizard-navigation {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: .45rem;
        padding: .3rem;
    }
    body.cs-page--checkout .cs-wizard-nav-button {
        width: 44px;
        min-height: 44px;
        padding: .4rem;
    }
    body.cs-page--checkout .cs-wizard-nav-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    body.cs-page--checkout .cs-wizard-progress {
        grid-template-columns: max-content minmax(1.5rem, 1fr);
        gap: .4rem;
        padding: .45rem .55rem;
        font-size: .72rem;
    }
    body.cs-page--checkout .cs-wizard-progress > :last-child { display: none; }
    body.cs-page--checkout .cs-crew-tabs { position: sticky; top: 56px; z-index: 2; background: var(--cs-surface); }
    body.cs-page--checkout .cs-crew-tab { min-height: 48px; padding: .55rem .35rem; font-size: .82rem; }
    body.cs-page--checkout .cs-crew-browser-panel { padding: .75rem; }
    body.cs-page--checkout .cs-crew-browser-panel .cs-add-member-row { grid-template-columns: minmax(0, 1fr); }
    body.cs-page--checkout .cs-crew-browser-panel .cs-add-member-btn { min-height: 46px; }
    body.cs-page--checkout .cs-team-card-grid { grid-template-columns: minmax(0, 1fr); }
    body.cs-page--checkout .cs-team-choice-btn { min-height: 100px; }
    body.cs-page--checkout .cs-wizard-step[data-checkout-step="4"] .cs-seance-grid,
    body.cs-page--checkout .cs-wizard-step[data-checkout-step="5"] #destination-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    body.cs-page--checkout .cs-wizard-progress-track span { transition: none; }
}

/* Historique du cahier */
body.cs-page--checkout .cs-header-responsive-title { display: none !important; }
.cs-history-topbar {
    position: relative;
    z-index: 20;
    display: flex;
    width: calc(100% - var(--cs-frame-gutter));
    max-width: var(--cs-frame-max-width);
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem 1rem;
    margin: clamp(.4rem, 1vw, .75rem) auto 0;
}
.cs-history-topbar .csm-account-controls,
.cs-history-topbar .cs-header-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
}
.cs-history-topbar .cs-header-actions { gap: 0; }
.cs-history-topbar .cs-header-user,
body.cs-page .cst-account .cs-header-user {
    padding: .4rem .85rem .4rem .5rem;
    font-size: .85rem;
}
.cs-history-topbar .cs-header-account-menu { top: calc(100% + .4rem); }
body.cs-page #cs-main[data-active-tab="historique"] {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
}
body.cs-page #cs-main[data-active-tab="historique"] .cs-main-layout {
    display: block;
    flex: 1 1 auto;
    width: calc(100% - var(--cs-frame-gutter));
    max-width: var(--cs-frame-max-width);
    margin: clamp(.75rem, 1.5vh, 1.25rem) auto;
}
body.cs-page #cs-main[data-active-tab="historique"] .cs-sidebar { display: none !important; }
body.cs-page #cs-main[data-active-tab="historique"] .cs-content {
    width: 100%;
    min-width: 0;
    padding: 0;
}
body.cs-page #cs-main[data-active-tab="historique"] #tab-historique { width: 100%; }
body.cs-page #cs-main[data-active-tab="historique"] .cs-history-card {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 1.6vw, 1.5rem);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--cs-r-lg);
    background: var(--cs-elevated);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}
body.cs-page #cs-main[data-active-tab="historique"] .cs-history-card-header {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 0;
    padding: 0 0 .9rem;
}
body.cs-page #cs-main[data-active-tab="historique"] .cs-history-card-header .cs-form-title {
    margin: 0;
    color: var(--cs-text);
    font-size: clamp(1.1rem, 1.7vw, 1.4rem);
}
body.cs-page #cs-main[data-active-tab="historique"] .cs-history-card-header .cs-form-title svg {
    color: #2879f4;
}
body.cs-page--history,
body.cs-page--history .cs-wrapper {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}
body.cs-page--history .cs-history-topbar { flex: 0 0 auto; }
body.cs-page--history .cs-main {
    min-height: 0;
    overflow: hidden;
}
body.cs-page--history #cs-main[data-active-tab="historique"] {
    min-height: 0;
    overflow: hidden;
}
body.cs-page--history #cs-main[data-active-tab="historique"] .cs-main-layout {
    display: flex;
    align-items: stretch;
    min-height: 0;
    overflow: hidden;
}
body.cs-page--history #cs-main[data-active-tab="historique"] .cs-content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
body.cs-page--history #cs-main[data-active-tab="historique"] #tab-historique {
    display: flex !important;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
body.cs-page--history #cs-main[data-active-tab="historique"] .cs-history-card {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
body.cs-page--history .cs-history-list { align-content: start; }
body.cs-page #cs-main[data-active-tab="historique"] .cs-history-count {
    border-color: rgba(40, 121, 244, .35);
    background: rgba(40, 121, 244, .12);
    color: var(--cs-blue-2);
}
.cs-history-controls {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .65rem;
    margin-left: auto;
}
.cs-history-controls .cs-history-count { margin-left: 0; }
.cs-history-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .7rem;
}
.cs-history-outing {
    display: grid;
    grid-template-columns: minmax(7rem, .32fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(.7rem, 1.2vw, 1rem);
    width: 100%;
    min-width: 0;
    padding: clamp(.8rem, 1.1vw, 1rem);
    overflow: hidden;
    appearance: none;
    border: 1px solid rgba(127, 168, 255, .16);
    border-radius: var(--cs-r-md);
    background: linear-gradient(110deg, rgba(40, 121, 244, .08), rgba(8, 10, 15, .98) 24%);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.cs-history-outing:hover {
    border-color: rgba(92, 163, 255, .4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}
.cs-history-outing:focus-visible {
    outline: 3px solid var(--cs-blue-2);
    outline-offset: 2px;
}
.cs-history-departure {
    display: grid;
    min-width: 0;
    align-content: center;
    gap: .35rem;
    min-height: 76px;
    padding: .7rem .8rem;
    border: 1px solid rgba(40, 121, 244, .2);
    border-radius: var(--cs-r-sm);
    background: rgba(40, 121, 244, .1);
}
.cs-history-metric-label {
    color: var(--cs-text-3);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.cs-history-departure time {
    display: flex;
    min-width: 0;
    align-items: baseline;
    justify-content: space-between;
    gap: .35rem;
    white-space: nowrap;
}
.cs-history-departure time span {
    min-width: 0;
    color: var(--cs-text-2);
    font-size: clamp(.62rem, .8vw, .78rem);
    font-variant-numeric: tabular-nums;
}
.cs-history-departure time strong,
.cs-history-departure > strong { color: var(--cs-text); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.cs-history-departure time strong { flex: 0 0 auto; font-size: clamp(.84rem, 1.15vw, 1.15rem); }
.cs-history-outing-main {
    display: grid;
    min-width: 0;
    align-content: center;
    gap: .65rem;
}
.cs-history-outing-header,
.cs-history-outing-equipment {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: .65rem;
}
.cs-history-outing-header { justify-content: space-between; }
.cs-history-outing-icon {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 2.4rem;
    place-items: center;
    border: 1px solid rgba(40, 121, 244, .25);
    border-radius: .75rem;
    background: rgba(40, 121, 244, .12);
    color: var(--cs-blue-2);
}
.cs-history-outing-title { min-width: 0; }
.cs-history-outing-title > strong {
    display: block;
    margin: .1rem 0 0;
    color: var(--cs-text);
    font-size: clamp(.98rem, 1.2vw, 1.12rem);
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.cs-history-outing-title > span { display: block; margin-top: .2rem; color: var(--cs-text-3); font-size: .75rem; }
.cs-history-outing-header > .cs-badge { flex: 0 0 auto; }
.cs-history-outing-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.cs-history-tag {
    max-width: 100%;
    padding: .25rem .6rem;
    border: 1px solid var(--cs-border-strong);
    border-radius: 999px;
    background: var(--cs-elevated-2);
    color: var(--cs-text-2);
    font-size: .74rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}
.cs-history-tag--destination { border-color: rgba(8, 168, 95, .3); color: var(--cs-green); }
.cs-history-modal-note {
    display: grid;
    gap: .25rem;
    padding: .65rem .8rem;
    border-left: 3px solid var(--cs-blue);
    border-radius: 0 var(--cs-r-sm) var(--cs-r-sm) 0;
    background: rgba(40, 121, 244, .08);
}
.cs-history-modal-note[hidden] { display: none; }
.cs-history-modal-note strong { color: var(--cs-text-2); font-size: .72rem; text-transform: uppercase; }
.cs-history-modal-note p { margin: 0; color: var(--cs-text); font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.cs-history-distance-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--cs-border); }
.cs-history-distance-controls { display: flex; align-items: flex-end; gap: .65rem; }
.cs-history-distance-controls .cs-input { min-width: 0; }
.cs-history-distance-controls .cs-btn-primary { flex: 0 0 auto; min-height: 46px; }
.cs-history-modal-crew-empty {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--cs-text-2);
    font-size: .84rem;
}
.cs-history-modal-equipment-body:not(.has-image) { grid-template-columns: minmax(0, 1fr); }
body.cs-page.cs-theme-light #cs-main[data-active-tab="historique"] .cs-history-card {
    border-color: #c8cbd0;
    background: #f9fafb;
    box-shadow: 0 16px 36px rgba(16, 24, 40, .08);
}
body.cs-page.cs-theme-light .cs-history-outing {
    border-color: rgba(21, 94, 239, .18);
    background: linear-gradient(110deg, rgba(21, 94, 239, .06), #fff 24%);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
}
body.cs-page.cs-theme-light .cs-history-departure {
    border-color: rgba(21, 94, 239, .18);
    background: rgba(21, 94, 239, .06);
}
.cs-nav-back {
    align-items: center;
    gap: .45rem;
    min-height: 46px;
    padding: .55rem .8rem;
    border: 0;
    border-radius: 999px;
    background: var(--cs-blue);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.cs-nav-back:hover {
    background: var(--cs-blue-2);
    color: #fff;
}
.cs-nav-back:focus-visible { outline: 2px solid var(--cs-blue-2); outline-offset: 2px; }
body.cs-page.cs-theme-light .cs-nav-back {
    background: var(--cs-blue);
    color: #fff;
}
body.cs-page.cs-theme-light .cs-nav-back:hover {
    background: var(--cs-blue-2);
    color: #fff;
}

@media (min-width: 601px) and (max-width: 1000px) {
    body.cs-page .cst-account .cs-header-account-menu,
    body.cs-page .cs-history-topbar .cs-header-account-menu {
        position: absolute;
        top: calc(100% + .4rem);
        right: 0;
        width: min(17rem, calc(100vw - 2rem));
        margin-top: 0;
    }
}
@media (max-width: 600px) {
    body.cs-page .cst-account .cs-header-account-menu,
    body.cs-page .cs-history-topbar .cs-header-account-menu {
        position: absolute;
        top: calc(100% + .4rem);
        right: 0;
        width: min(17rem, calc(100vw - 2rem));
        margin-top: 0;
    }
    body.cs-page #cs-main[data-active-tab="historique"] .cs-history-card { padding: .9rem; }
    body.cs-page #cs-main[data-active-tab="historique"] .cs-history-card-header { flex-wrap: wrap; }
    .cs-history-controls { width: 100%; justify-content: space-between; margin-left: 0; }
    .cs-history-outing {
        grid-template-columns: minmax(5.5rem, .35fr) minmax(0, 1fr);
        gap: .65rem;
        padding: .7rem;
    }
    .cs-history-departure { min-height: 68px; padding: .45rem; }
    .cs-history-departure time { gap: .2rem; }
    .cs-history-departure time span { font-size: .65rem; }
    .cs-history-departure time strong { font-size: .82rem; }
}
@media (max-width: 900px) {
    .cs-history-outing { grid-template-columns: minmax(6rem, .35fr) minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .cs-history-distance-controls { align-items: stretch; flex-direction: column; }
    .cs-history-distance-controls .cs-btn-primary { width: 100%; }
}

body.cs-page--club .csc-dashboard {
    display: grid;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
        "welcome"
        "overview"
        "live";
    gap: clamp(.55rem, 1vw, .9rem);
    margin: 0;
    padding: clamp(.65rem, 1.5vw, 1.25rem);
    overflow: hidden;
}

body.cs-page--club-home { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.cs-page--club-home .cs-wrapper { height: 100%; min-height: 0; overflow: hidden; }

body.cs-page--club .csc-welcome,
body.cs-page--club .csc-card {
    min-width: 0;
    border: 1px solid rgba(127, 168, 255, .18);
    border-radius: var(--cs-r-lg);
    background: linear-gradient(145deg, rgba(17, 21, 30, .98), rgba(8, 10, 15, .96));
    box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

body.cs-page--club .csc-welcome {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border-left: 4px solid var(--cs-blue);
    background:
        radial-gradient(ellipse at 92% 10%, rgba(40, 121, 244, .18), transparent 42%),
        linear-gradient(145deg, rgba(17, 21, 30, .98), rgba(8, 10, 15, .96));
    grid-area: welcome;
}

body.cs-page--club .csc-welcome-copy { display: grid; gap: .45rem; min-width: 0; }
body.cs-page--club .csc-eyebrow {
    color: var(--cs-blue-2);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
body.cs-page--club .csc-welcome h1 {
    margin: 0;
    color: var(--cs-text);
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    font-weight: 850;
    letter-spacing: -.04em;
    line-height: 1.08;
}
body.cs-page--club .csc-welcome p {
    max-width: 58ch;
    margin: .2rem 0 0;
    color: var(--cs-text-2);
    font-size: .9rem;
    line-height: 1.55;
}
body.cs-page--club .csc-welcome-tools { display: grid; justify-items: end; gap: .65rem; min-width: 0; }
body.cs-page--club .csc-club-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
body.cs-page--club .csc-club-nav a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: .5rem .7rem;
    border: 1px solid rgba(127, 168, 255, .16);
    border-radius: var(--cs-r-sm);
    background: rgba(32, 38, 50, .72);
    color: var(--cs-text-2);
    font-size: .73rem;
    font-weight: 700;
    text-decoration: none;
}
body.cs-page--club .csc-club-nav a:hover { border-color: rgba(127, 168, 255, .45); color: var(--cs-text); }
body.cs-page--club .csc-club-nav a:focus-visible { outline: 3px solid var(--cs-blue-2); outline-offset: 2px; }
body.cs-page--club .csc-club-nav .csc-club-logout { color: #fca5a5; }
body.cs-page--club .csc-history-link {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .6rem .8rem;
    border: 1px solid rgba(40, 121, 244, .35);
    border-radius: var(--cs-r-sm);
    background: linear-gradient(145deg, #2879f4, #1555c8);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}
body.cs-page--club .csc-history-link:hover { filter: brightness(1.08); }
body.cs-page--club .csc-history-link:focus-visible { outline: 3px solid var(--cs-blue-2); outline-offset: 3px; }

body.cs-page--club .csc-overview {
    display: grid;
    grid-area: overview;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}
body.cs-page--club .csc-metric {
    display: grid;
    min-width: 0;
    gap: .35rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(127, 168, 255, .16);
    border-left: 3px solid var(--cs-blue);
    border-radius: var(--cs-r-md);
    background: rgba(17, 21, 30, .9);
}
body.cs-page--club .csc-metric > span {
    color: var(--cs-text-3);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}
body.cs-page--club .csc-metric strong {
    color: var(--cs-text);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
body.cs-page--club .csc-metric--live { border-left-color: var(--cs-green); }
body.cs-page--club .csc-metric--live strong { color: #6ee7b7; }
body.cs-page--club .csc-metric--mode { border-left-color: #94a3b8; }
body.cs-page--club .csc-metric--mode strong { font-size: 1.2rem; }

body.cs-page--club .csc-card { padding: clamp(.8rem, 1.4vw, 1.25rem); }
body.cs-page--club .csc-live-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
    grid-area: live;
    overflow: hidden;
}
body.cs-page--club .csc-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
body.cs-page--club .csc-card-heading > div { display: grid; gap: .3rem; }
body.cs-page--club .csc-card-heading h2 {
    margin: 0;
    color: var(--cs-text);
    font-size: clamp(1.1rem, 1.7vw, 1.4rem);
    font-weight: 800;
    letter-spacing: -.025em;
}
body.cs-page--club .csc-count {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(16, 185, 129, .35);
    border-radius: 50%;
    background: rgba(16, 185, 129, .12);
    color: #6ee7b7;
    font-size: .95rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}
body.cs-page--club .csc-outing-list {
    display: grid;
    min-height: 0;
    flex: 1 1 auto;
    align-content: start;
    gap: .65rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: .25rem;
}
body.cs-page--club .csc-outing {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(127, 168, 255, .14);
    border-left: 4px solid var(--cs-blue);
    border-radius: var(--cs-r-md);
    background: rgba(8, 10, 15, .72);
}
body.cs-page--club .csc-outing.cs-t-warn { border-left-color: var(--cs-amber); }
body.cs-page--club .csc-outing.cs-t-late { border-left-color: var(--cs-red); }
body.cs-page--club .csc-outing-copy { display: grid; min-width: 0; gap: .4rem; }
body.cs-page--club .csc-outing-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .65rem; }
body.cs-page--club .csc-outing-heading h3 {
    margin: 0;
    color: var(--cs-text);
    font-size: .98rem;
    overflow-wrap: anywhere;
}
body.cs-page--club .csc-outing-heading > span {
    padding: .2rem .5rem;
    border-radius: 999px;
    background: rgba(40, 121, 244, .12);
    color: var(--cs-blue-2);
    font-size: .7rem;
    font-weight: 750;
}
body.cs-page--club .csc-outing-copy p {
    margin: 0;
    color: var(--cs-text-2);
    font-size: .8rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
body.cs-page--club .csc-outing-meta { display: flex; flex-wrap: wrap; gap: .3rem .85rem; }
body.cs-page--club .csc-outing-meta span {
    color: var(--cs-text-3);
    font-size: .74rem;
    overflow-wrap: anywhere;
}
body.cs-page--club .csc-outing-copy .csc-outing-note { color: var(--cs-text-3); font-style: italic; }
body.cs-page--club .csc-outing-status {
    display: grid;
    justify-items: center;
    gap: .35rem;
    min-width: 7.5rem;
    padding: .65rem;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-r-sm);
    background: var(--cs-surface);
}
body.cs-page--club .csc-outing-status > span {
    color: var(--cs-text-3);
    font-size: .65rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}
body.cs-page--club .csc-outing-status > strong { color: var(--cs-text); font-size: .92rem; font-variant-numeric: tabular-nums; }
body.cs-page--club .csc-outing-status form { width: 100%; }
body.cs-page--club .csc-outing-status .cs-btn-force { width: 100%; min-height: 38px; margin: .2rem 0 0; font-size: .7rem; }
body.cs-page--club .csc-empty {
    display: grid;
    min-height: 150px;
    place-content: center;
    justify-items: center;
    gap: .65rem;
    padding: 1.5rem;
    border: 1px dashed rgba(127, 168, 255, .22);
    border-radius: var(--cs-r-md);
    color: var(--cs-text-2);
    text-align: center;
}
body.cs-page--club .csc-empty p { margin: 0; }
body.cs-page--club .csc-empty-mark {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(16, 185, 129, .12);
    color: #6ee7b7;
    font-weight: 800;
}
body.cs-page--club .csc-history-intro {
    margin: -.25rem 0 .25rem;
    padding: .7rem .85rem;
    border-left: 3px solid var(--cs-blue);
    border-radius: 0 var(--cs-r-sm) var(--cs-r-sm) 0;
    background: rgba(40, 121, 244, .08);
    color: var(--cs-text-2);
    font-size: .8rem;
    line-height: 1.45;
}
body.cs-page--club.cs-theme-light .csc-welcome,
body.cs-page--club.cs-theme-light .csc-card { border-color: #d3dae4; background: #fff; box-shadow: 0 12px 32px rgba(16, 24, 40, .08); }
body.cs-page--club.cs-theme-light .csc-welcome h1,
body.cs-page--club.cs-theme-light .csc-card-heading h2,
body.cs-page--club.cs-theme-light .csc-outing-heading h3,
body.cs-page--club.cs-theme-light .csc-outing-status > strong { color: #29313b; }
body.cs-page--club.cs-theme-light .csc-metric,
body.cs-page--club.cs-theme-light .csc-outing { border-color: #d3dae4; background: #f9fafb; }
body.cs-page--club.cs-theme-light .csc-outing-status { border-color: #d3dae4; background: #f1f4f8; }
body.cs-page--club.cs-theme-light .csc-club-nav a { border-color: #d3dae4; background: #f1f4f8; color: #344054; }
body.cs-page--club.cs-theme-light .csc-club-nav .csc-club-logout { color: #b42318; }
body.cs-page--club.cs-theme-light .csc-history-link { color: #fff; }

@media (max-width: 900px) {
    body.cs-page--club .csc-dashboard {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto minmax(0, 1fr);
        grid-template-areas: "welcome" "overview" "live";
    }
}
@media (max-width: 600px) {
    body.cs-page--club .csc-dashboard { gap: .5rem; padding: .5rem; }
    body.cs-page--club .csc-welcome { align-items: stretch; flex-direction: column; gap: .6rem; padding: .8rem; }
    body.cs-page--club .csc-welcome h1 { font-size: clamp(1.25rem, 6vw, 1.7rem); }
    body.cs-page--club .csc-welcome p { font-size: .76rem; }
    body.cs-page--club .csc-welcome-tools { justify-items: stretch; width: 100%; gap: .4rem; }
    body.cs-page--club .csc-history-link { min-height: 38px; }
    body.cs-page--club .csc-club-nav { justify-content: flex-start; }
    body.cs-page--club .csc-club-nav a { flex: 1 1 7rem; min-height: 34px; padding: .35rem .45rem; font-size: .68rem; }
    body.cs-page--club .csc-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
    body.cs-page--club .csc-metric { gap: .2rem; padding: .55rem .6rem; }
    body.cs-page--club .csc-metric > span { font-size: .58rem; letter-spacing: .035em; }
    body.cs-page--club .csc-metric strong { font-size: 1rem; }
    body.cs-page--club .csc-metric--mode strong { font-size: .82rem; }
    body.cs-page--club .csc-card { padding: .7rem; }
    body.cs-page--club .csc-card-heading { margin-bottom: .55rem; }
    body.cs-page--club .csc-card-heading h2 { font-size: 1rem; }
    body.cs-page--club .csc-count { width: 2rem; height: 2rem; }
    body.cs-page--club .csc-outing { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
    body.cs-page--club .csc-outing-status { grid-template-columns: auto minmax(0, 1fr); justify-items: start; width: 100%; }
    body.cs-page--club .csc-outing-status form { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
    body.cs-page--club .csc-club-nav { display: grid; grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 680px) {
    body.cs-page--club .csc-dashboard { gap: .45rem; padding-block: .45rem; }
    body.cs-page--club .csc-welcome { min-height: 0; padding-block: .65rem; }
    body.cs-page--club .csc-welcome p { display: none; }
    body.cs-page--club .csc-metric { padding-block: .45rem; }
    body.cs-page--club .csc-card { padding-block: .6rem; }
}
