/* /Components/Layout/AuthLayout.razor.rz.scp.css */
.auth-shell[b-8c3bktxulf] {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
    background: var(--bg-primary);
}

.auth-brand[b-8c3bktxulf] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.auth-logo[b-8c3bktxulf] {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.auth-brand-name[b-8c3bktxulf] {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.auth-card[b-8c3bktxulf] {
    width: min(100%, 420px);
    padding: 1.75rem;
}

.auth-card[b-8c3bktxulf]  h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.auth-card[b-8c3bktxulf]  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-card[b-8c3bktxulf]  form .btn-primary {
    min-height: 48px;
    width: 100%;
}

.auth-card[b-8c3bktxulf]  input {
    min-height: 48px;
    font-size: 16px;
}

.auth-card[b-8c3bktxulf]  .password-shortcut-help {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .auth-shell[b-8c3bktxulf] {
        padding: 1.25rem;
    }

    .auth-card[b-8c3bktxulf] {
        padding: 1.25rem;
        background: var(--bg-surface);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-dur949w0wl] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-dur949w0wl] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.sidebar-account[b-nuio3h8ns8] {
    margin-top: auto;
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-account[b-nuio3h8ns8]  .sidebar-account-link,
.bottom-sheet-body[b-nuio3h8ns8]  .sheet-account {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--touch-target-min);
    color: var(--text-primary);
    text-decoration: none;
    min-width: 0;
}

.account-avatar[b-nuio3h8ns8] {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--accent-glow);
    color: #c7d2fe;
}

.sidebar-account[b-nuio3h8ns8]  .sidebar-account-details,
.bottom-sheet-body[b-nuio3h8ns8]  .sheet-account-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sidebar-account[b-nuio3h8ns8]  .sidebar-account-name,
.bottom-sheet-body[b-nuio3h8ns8]  .sheet-account-details strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 170px;
}

.sidebar-account-role[b-nuio3h8ns8] {
    font-size: 0.75rem;
}

.sidebar-logout[b-nuio3h8ns8] {
    margin-top: 0.5rem;
}

.sidebar-logout button[b-nuio3h8ns8] {
    width: 100%;
    min-height: var(--touch-target-min);
}

.bottom-sheet-body[b-nuio3h8ns8]  .sheet-account {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
}

.sheet-logout[b-nuio3h8ns8] {
    margin-top: 1rem;
    padding-bottom: var(--safe-area-bottom);
}

.bottom-sheet-section-title[b-nuio3h8ns8] {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0.75rem 0 0.25rem;
    text-transform: uppercase;
}

.sheet-logout button[b-nuio3h8ns8] {
    width: 100%;
    min-height: 48px;
}

@media (min-width: 769px) {
    .sidebar.sidebar-collapsed .sidebar-account[b-nuio3h8ns8] {
        padding: 0.5rem;
    }
    .sidebar.sidebar-collapsed .sidebar-account[b-nuio3h8ns8]  .sidebar-account-details {
        display: none;
    }
}
/* /Components/Pages/AcceptedEvents.razor.rz.scp.css */
/* Scoped styles for AcceptedEvents.razor */

.agenda-page-header[b-gwwvlxfo14] {
    margin-bottom: 1.25rem;
}

.agenda-title-block[b-gwwvlxfo14] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.agenda-title-row[b-gwwvlxfo14] {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.agenda-title-row .page-title[b-gwwvlxfo14] {
    margin: 0;
    line-height: 1.2;
}

.view-mode-selector[b-gwwvlxfo14] {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.view-mode-btn[b-gwwvlxfo14] {
    padding: 0.35rem 0.85rem;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    user-select: none;
    line-height: 1.2;
}

.view-mode-btn .view-mode-icon[b-gwwvlxfo14] {
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.view-mode-btn:hover[b-gwwvlxfo14] {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.view-mode-btn:hover .view-mode-icon[b-gwwvlxfo14] {
    opacity: 1;
}

.view-mode-btn.active[b-gwwvlxfo14] {
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.95));
    border-color: rgba(129, 140, 248, 0.35);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.view-mode-btn.active .view-mode-icon[b-gwwvlxfo14] {
    opacity: 1;
}

@media (max-width: 768px) {
    .agenda-title-row[b-gwwvlxfo14] {
        gap: 0.65rem;
    }

    .view-mode-btn[b-gwwvlxfo14] {
        padding: 0.3rem 0.65rem;
        font-size: 0.8rem;
    }
}

/* /Components/Pages/Account.razor.rz.scp.css */
.account-page[b-f36k6q35g1] {
    width: min(100%, 640px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-page .page-header[b-f36k6q35g1] {
    margin-bottom: 0;
}

.account-settings[b-f36k6q35g1] {
    margin-bottom: 0;
    padding: 1.25rem 1.5rem;
}

.account-section[b-f36k6q35g1] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.account-section h2[b-f36k6q35g1] {
    font-size: 1.125rem;
    line-height: 1.3;
}

.account-security[b-f36k6q35g1] {
    border-top: 1px solid var(--border-color);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.account-identity[b-f36k6q35g1] {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
}

.account-meta[b-f36k6q35g1] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.account-meta-label[b-f36k6q35g1] {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.account-username[b-f36k6q35g1] {
    overflow-wrap: anywhere;
    font-size: 0.875rem;
    font-weight: 500;
}

.account-name-row[b-f36k6q35g1] {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.account-field[b-f36k6q35g1] {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.account-save[b-f36k6q35g1],
.account-password-link[b-f36k6q35g1] {
    min-height: var(--touch-target-min);
}

.account-security-row[b-f36k6q35g1] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.account-security-meta[b-f36k6q35g1] {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .account-settings[b-f36k6q35g1] {
        padding: 1rem;
    }

    .account-name-row[b-f36k6q35g1] {
        align-items: stretch;
        flex-direction: column;
    }

    .account-field[b-f36k6q35g1] {
        width: 100%;
    }

    .account-field[b-f36k6q35g1]  input {
        min-height: var(--touch-target-large);
        font-size: 1rem;
    }

    .account-save[b-f36k6q35g1],
    .account-password-link[b-f36k6q35g1] {
        width: 100%;
    }
}
/* /Components/Pages/AdminSettings.razor.rz.scp.css */
/* Scoped styles for AdminSettings - extracted verbatim from wwwroot/app.css. */

/* Admin Settings Layout & Components */
.settings-container[b-ruxsi9xpj2] {
    container-type: inline-size;
    container-name: settingsContainer;
    width: 100%;
}

.settings-grid[b-ruxsi9xpj2] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    width: 100%;
}

/* Fallback Media Queries pour navigateurs sans Container Queries */
@media (min-width: 1180px) {
    .settings-grid[b-ruxsi9xpj2] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1750px) {
    .settings-grid[b-ruxsi9xpj2] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Container Queries : ajustement dynamique basé sur la largeur réelle disponible */
@container settingsContainer (min-width: 920px) {
    .settings-grid[b-ruxsi9xpj2] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container settingsContainer (min-width: 1440px) {
    .settings-grid[b-ruxsi9xpj2] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.settings-panel-wide[b-ruxsi9xpj2] {
    grid-column: span 1 !important;
}

.settings-panel[b-ruxsi9xpj2] {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.settings-panel-body[b-ruxsi9xpj2] {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.settings-panel-title[b-ruxsi9xpj2] {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
}

.settings-panel-title.title-llm[b-ruxsi9xpj2] {
    color: var(--accent-info);
}

.settings-panel-title.title-providers[b-ruxsi9xpj2] {
    color: #f59e0b;
}

.settings-panel-title.title-cascade[b-ruxsi9xpj2] {
    color: var(--accent-info);
}

.settings-panel-title.title-caldav[b-ruxsi9xpj2] {
    color: #a5b4fc; /* Soft indigo accent */
}

.settings-panel-title.title-telegram[b-ruxsi9xpj2] {
    color: #38bdf8; /* Telegram Sky/Cyan accent */
}

.settings-panel-title.title-extension[b-ruxsi9xpj2] {
    color: #818cf8; /* Extension Indigo/Purple accent */
}

.settings-form-group[b-ruxsi9xpj2] {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-form-label[b-ruxsi9xpj2] {
    display: block;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.settings-label-wrapper[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.settings-help-text[b-ruxsi9xpj2] {
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.35;
    margin-top: 4px;
}

.badge-encrypted[b-ruxsi9xpj2] {
    font-size: 0.8rem;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    cursor: default;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.api-token-display-box[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.85rem;
    margin-top: 0.25rem;
    min-height: 44px;
}

.api-token-code[b-ruxsi9xpj2] {
    font-family: 'Consolas', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.875rem;
    color: #a5b4fc;
    user-select: all;
    word-break: break-all;
    line-height: 1.35;
    flex-grow: 1;
}

.api-token-code code[b-ruxsi9xpj2] {
    background: none;
    padding: 0;
    color: inherit;
    font-family: inherit;
    word-break: break-all;
    display: block;
}

.api-token-masked[b-ruxsi9xpj2] {
    color: #64748b;
    letter-spacing: 3px;
    font-size: 1rem;
    font-weight: 700;
    user-select: none;
}

.api-token-actions[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.settings-action-box[b-ruxsi9xpj2] {
    background: rgba(15, 23, 42, 0.45);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.25rem;
}

.settings-action-box-info[b-ruxsi9xpj2] {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.settings-action-box-info strong[b-ruxsi9xpj2] {
    color: var(--text-primary);
}

.caldav-sync-card[b-ruxsi9xpj2] {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(165, 180, 252, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 4px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.caldav-sync-header[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.caldav-immediate-action[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.telegram-schedule-card[b-ruxsi9xpj2] {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 4px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.telegram-schedule-header[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.telegram-time-picker-wrapper[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s ease;
}

.schedule-time-label[b-ruxsi9xpj2] {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    margin: 0;
}

.time-input-compact[b-ruxsi9xpj2] {
    width: auto !important;
    max-width: 130px;
    padding: 0.35rem 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.telegram-time-presets[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    transition: opacity 0.2s ease;
}

.preset-label[b-ruxsi9xpj2] {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.btn-time-preset[b-ruxsi9xpj2] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 0.25rem 0.6rem;
    font-size: 0.84rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-time-preset:hover:not(:disabled)[b-ruxsi9xpj2] {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
}

.btn-time-preset.active[b-ruxsi9xpj2] {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #38bdf8;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.telegram-immediate-action[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.schedule-disabled[b-ruxsi9xpj2] {
    opacity: 0.4;
    pointer-events: none;
}

.settings-panel-footer[b-ruxsi9xpj2] {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 56px;
}

.settings-footer-left[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-footer-right[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.settings-status-alert[b-ruxsi9xpj2] {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    margin-bottom: 24px;
}

/* LLM Model Cascade Styles (US-49) */
.cascade-presets-wrapper[b-ruxsi9xpj2] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: -2px;
}

.cascade-visualizer-container[b-ruxsi9xpj2] {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cascade-visualizer-title[b-ruxsi9xpj2] {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-weight: 600;
}

.cascade-badges-list[b-ruxsi9xpj2] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cascade-badge[b-ruxsi9xpj2] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
    touch-action: pan-y;
}

.cascade-badge:active[b-ruxsi9xpj2] {
    cursor: grabbing;
}

.cascade-badge.is-dragging[b-ruxsi9xpj2],
.cascade-badge.is-touch-dragging[b-ruxsi9xpj2] {
    opacity: 0.45;
    transform: scale(0.96);
    border-style: dashed;
    border-color: #6366f1;
}

.cascade-badge.is-drag-over[b-ruxsi9xpj2] {
    border-color: #6366f1;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.cascade-badge-content[b-ruxsi9xpj2] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cascade-drag-handle[b-ruxsi9xpj2] {
    color: rgba(255, 255, 255, 0.4);
    cursor: grab;
    font-size: 0.95rem;
    line-height: 1;
    padding: 3px 5px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cascade-drag-handle:hover[b-ruxsi9xpj2],
.cascade-badge:hover .cascade-drag-handle[b-ruxsi9xpj2] {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.cascade-drag-handle:active[b-ruxsi9xpj2],
.cascade-badge.is-touch-dragging .cascade-drag-handle[b-ruxsi9xpj2] {
    cursor: grabbing;
    color: #818cf8;
    background-color: rgba(99, 102, 241, 0.25);
    transform: scale(1.1);
}

.cascade-badge-actions[b-ruxsi9xpj2] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 4px;
}

.btn-badge-reorder[b-ruxsi9xpj2] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.75rem;
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    border-radius: var(--radius-sm);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-badge-reorder:hover[b-ruxsi9xpj2] {
    color: #93c5fd;
    background-color: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
}

.btn-badge-reorder:active[b-ruxsi9xpj2] {
    transform: scale(0.92);
    background-color: rgba(59, 130, 246, 0.4);
}

.btn-badge-remove[b-ruxsi9xpj2] {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: rgba(248, 113, 113, 0.8);
    cursor: pointer;
    font-size: 0.8rem;
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    margin-left: 2px;
    border-radius: var(--radius-sm);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-badge-remove:hover[b-ruxsi9xpj2] {
    color: #fff;
    background-color: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

.btn-badge-remove:active[b-ruxsi9xpj2] {
    transform: scale(0.92);
    background-color: rgba(239, 68, 68, 0.45);
}

.cascade-raw-details[b-ruxsi9xpj2] {
    background: rgba(15, 23, 42, 0.35);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cascade-raw-details[open][b-ruxsi9xpj2] {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.5);
}

.cascade-raw-summary[b-ruxsi9xpj2] {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    user-select: none;
    outline: none;
    transition: color 0.15s ease;
}

.cascade-raw-summary:hover[b-ruxsi9xpj2] {
    color: var(--text-primary);
}

.cascade-raw-content[b-ruxsi9xpj2] {
    padding: 0 12px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cascade-textarea[b-ruxsi9xpj2] {
    font-family: 'Consolas', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
    resize: vertical;
    min-height: 52px;
}

.cascade-badge-primary[b-ruxsi9xpj2] {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.cascade-badge-fallback[b-ruxsi9xpj2] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
}

.cascade-badge-rank[b-ruxsi9xpj2] {
    font-weight: 700;
    font-size: 0.8rem;
}

.cascade-badge-name[b-ruxsi9xpj2] {
    font-family: monospace;
    font-weight: 600;
}

.btn-badge-remove[b-ruxsi9xpj2] {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 3px;
    margin-left: 2px;
    border-radius: var(--radius-sm);
    line-height: 1;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.btn-badge-remove:hover[b-ruxsi9xpj2] {
    color: #f87171;
    background-color: rgba(239, 68, 68, 0.15);
}

.cascade-probe-indicator[b-ruxsi9xpj2] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
}

.probe-success[b-ruxsi9xpj2] {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.15);
}

.probe-danger[b-ruxsi9xpj2] {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
}

.probe-msg[b-ruxsi9xpj2] {
    font-size: 0.78rem;
    font-weight: normal;
}

.cascade-summary-alert[b-ruxsi9xpj2] {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 4px;
}

.cascade-summary-alert.alert-success[b-ruxsi9xpj2] {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Multi-Provider LLM Styles (US-51) */
.settings-section-subtitle[b-ruxsi9xpj2] {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- En-têtes de cartes unifiés --- */
.settings-panel-header[b-ruxsi9xpj2] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.panel-header-with-action[b-ruxsi9xpj2] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.panel-header-title-group[b-ruxsi9xpj2] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

/* Sous-titre descriptif d'en-tête de carte (Chapeau de niveau 2) */
.settings-panel-desc[b-ruxsi9xpj2] {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================================================
   Fournisseurs d'Inférence IA - Anatomie des cartes & Neutralisation Autofill
   ========================================================================== */

/* 1. Neutralisation universelle de l'autofill UA WebKit/Blink en Dark Mode */
.provider-key-input:-webkit-autofill[b-ruxsi9xpj2],
.provider-key-input:-webkit-autofill:hover[b-ruxsi9xpj2],
.provider-key-input:-webkit-autofill:focus[b-ruxsi9xpj2],
.provider-key-input:-webkit-autofill:active[b-ruxsi9xpj2],
.form-control:-webkit-autofill[b-ruxsi9xpj2],
.form-control:-webkit-autofill:hover[b-ruxsi9xpj2],
.form-control:-webkit-autofill:focus[b-ruxsi9xpj2],
.form-control:-webkit-autofill:active[b-ruxsi9xpj2] {
    -webkit-box-shadow: 0 0 0 1000px #0f172a inset !important;
    -webkit-text-fill-color: var(--text-primary, #f8fafc) !important;
    caret-color: var(--text-primary, #f8fafc) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* 2. Liste & Conteneur de carte */
.providers-list[b-ruxsi9xpj2] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.provider-row[b-ruxsi9xpj2] {
    container-type: inline-size;
    container-name: providerRow;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.provider-row:hover[b-ruxsi9xpj2] {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(255, 255, 255, 0.15);
}

/* 3. En-tête : Identité à gauche, Actions fixes à droite */
.provider-row-header[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.provider-identity[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.provider-icon[b-ruxsi9xpj2] {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.provider-title-group[b-ruxsi9xpj2] {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.provider-name[b-ruxsi9xpj2] {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-european[b-ruxsi9xpj2] {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.provider-badges[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.badge-builtin[b-ruxsi9xpj2] {
    font-size: 0.78rem;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    cursor: default;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.badge-nokey[b-ruxsi9xpj2] {
    font-size: 0.78rem;
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    cursor: default;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

/* 4. Cartouche Endpoint dédié */
.provider-endpoint-box[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    min-width: 0;
}

.endpoint-badge[b-ruxsi9xpj2] {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    line-height: 1.2;
}

.endpoint-url[b-ruxsi9xpj2] {
    font-family: 'Consolas', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.8rem;
    color: #cbd5e1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: all;
    background: none;
    padding: 0;
    line-height: 1.3;
}

/* 5. Zone de Clé d'API */
.provider-key-col[b-ruxsi9xpj2] {
    width: 100%;
}

.provider-key-input[b-ruxsi9xpj2] {
    width: 100%;
    font-size: 0.875rem;
    font-family: 'Consolas', 'Fira Code', monospace;
    height: 36px;
    background: #0f172a;
    color: var(--text-primary);
}

.provider-nokey-notice[b-ruxsi9xpj2] {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 6. Boutons d'action harmonisés */
.provider-actions[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.provider-actions .btn[b-ruxsi9xpj2] {
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    line-height: 1;
    padding: 0 10px;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.provider-actions .btn-action-test[b-ruxsi9xpj2] {
    min-width: 82px; /* Stabilisation contre le saut de largeur ("Test..." vs "🧪 Tester") */
}

/* 7. Adaptation Container Query pour cartes de fournisseurs compactes (< 480px) */
@container providerRow (max-width: 480px) {
    .provider-row[b-ruxsi9xpj2] {
        gap: 8px;
    }

    .provider-row-header[b-ruxsi9xpj2] {
        display: contents;
    }

    .provider-identity[b-ruxsi9xpj2] {
        order: 1;
    }

    .provider-endpoint-box[b-ruxsi9xpj2] {
        order: 2;
    }

    .provider-key-col[b-ruxsi9xpj2] {
        order: 3;
    }

    .provider-actions[b-ruxsi9xpj2] {
        order: 4;
        width: 100%;
        display: flex;
        gap: 6px;
        margin-left: 0;
        padding-top: 8px;
        border-top: 1px dashed rgba(255, 255, 255, 0.08);
    }

    .provider-actions .btn[b-ruxsi9xpj2] {
        flex: 1 1 0;
        min-width: 0;
        min-height: 38px;
    }
}

@media (max-width: 768px) {
    .settings-grid[b-ruxsi9xpj2] {
        gap: 16px;
    }

    .settings-panel[b-ruxsi9xpj2] {
        padding: 16px 14px;
        border-radius: var(--radius-md);
    }

    /* En-tête avec bouton d'ajout en colonne pleine largeur */
    .panel-header-with-action[b-ruxsi9xpj2] {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .panel-header-with-action .btn[b-ruxsi9xpj2] {
        width: 100%;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }

    /* Lignes de fournisseurs d'inférence */
    .provider-row[b-ruxsi9xpj2] {
        padding: 12px 10px;
        gap: 10px;
    }

    .provider-row-header[b-ruxsi9xpj2] {
        display: contents;
    }

    .provider-identity[b-ruxsi9xpj2] {
        order: 1;
    }

    .provider-endpoint-box[b-ruxsi9xpj2] {
        order: 2;
        padding: 6px 8px;
    }

    .provider-key-col[b-ruxsi9xpj2] {
        order: 3;
    }

    .provider-actions[b-ruxsi9xpj2] {
        order: 4;
        width: 100%;
        display: flex;
        gap: 6px;
        margin-left: 0;
        padding-top: 8px;
        border-top: 1px dashed rgba(255, 255, 255, 0.08);
    }

    .provider-actions .btn[b-ruxsi9xpj2] {
        flex: 1 1 0;
        min-width: 0;
        min-height: 42px; /* Conforme WCAG AAA Thumb Zone tactile */
        font-size: 0.84rem;
        padding: 6px 4px;
        text-align: center;
        justify-content: center;
    }

    .provider-key-input[b-ruxsi9xpj2] {
        min-height: 40px;
        font-size: 0.88rem;
    }

    /* Cascade LLM - Barre d'outils et sélecteurs */
    .cascade-add-toolbar[b-ruxsi9xpj2] {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }

    .cascade-provider-picker[b-ruxsi9xpj2] {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .cascade-provider-picker select[b-ruxsi9xpj2] {
        flex: 1;
        max-width: 200px;
    }

    .cascade-custom-add[b-ruxsi9xpj2] {
        width: 100%;
        display: flex;
        gap: 6px;
    }

    .cascade-custom-add input[b-ruxsi9xpj2] {
        max-width: 100% !important;
        flex: 1;
        min-width: 0;
    }

    .cascade-badges-list[b-ruxsi9xpj2] {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .cascade-badge[b-ruxsi9xpj2] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 10px;
        border-radius: var(--radius-md);
        width: 100%;
        box-sizing: border-box;
    }

    .cascade-badge-content[b-ruxsi9xpj2] {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        min-width: 0;
        flex: 1;
    }

    .cascade-drag-handle[b-ruxsi9xpj2] {
        display: inline-flex;
        padding: 8px 10px;
        font-size: 1.15rem;
        min-width: 38px;
        min-height: 38px;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius-sm);
        cursor: grab;
    }

    .cascade-badge-name[b-ruxsi9xpj2] {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cascade-badge-actions[b-ruxsi9xpj2] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-left: 6px;
        flex-shrink: 0;
    }

    .btn-badge-reorder[b-ruxsi9xpj2],
    .btn-badge-remove[b-ruxsi9xpj2] {
        min-width: 36px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        padding: 4px;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .btn-badge-remove[b-ruxsi9xpj2] {
        color: #f87171;
        background: rgba(239, 68, 68, 0.15);
        border-color: rgba(239, 68, 68, 0.3);
    }

    /* CalDAV & Telegram - Actions et planification */
    .caldav-immediate-action[b-ruxsi9xpj2],
    .telegram-immediate-action[b-ruxsi9xpj2] {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .caldav-immediate-action .btn[b-ruxsi9xpj2],
    .telegram-immediate-action .btn[b-ruxsi9xpj2] {
        width: 100%;
        min-height: 40px;
        justify-content: center;
    }

    .telegram-schedule-header[b-ruxsi9xpj2] {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .telegram-time-picker-wrapper[b-ruxsi9xpj2] {
        width: 100%;
        justify-content: space-between;
    }

    .btn-time-preset[b-ruxsi9xpj2] {
        padding: 0.35rem 0.65rem;
        min-height: 34px;
    }

    /* Jeton API Extension Navigateur */
    .api-token-display-box[b-ruxsi9xpj2] {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0.75rem;
    }

    .api-token-code[b-ruxsi9xpj2] {
        width: 100%;
        text-align: center;
    }

    .api-token-actions[b-ruxsi9xpj2] {
        width: 100%;
        display: grid;
        grid-template-columns: 50px 1fr;
        gap: 8px;
    }

    .api-token-actions .btn[b-ruxsi9xpj2] {
        min-height: 40px;
        justify-content: center;
    }

    /* Pieds de panneaux (Actions globales d'enregistrement) */
    .settings-panel-footer[b-ruxsi9xpj2] {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 18px;
        padding-top: 12px;
    }

    .settings-footer-left[b-ruxsi9xpj2],
    .settings-footer-right[b-ruxsi9xpj2] {
        width: 100%;
        margin-left: 0;
    }

    .settings-footer-right button[b-ruxsi9xpj2],
    .settings-footer-left button[b-ruxsi9xpj2] {
        width: 100%;
        min-height: 42px;
        justify-content: center;
    }

    /* Drawer Slide-Over (Plein écran mobile & Footer 2 rangées) */
    .drawer-container[b-ruxsi9xpj2] {
        width: 100vw;
        max-width: 100vw;
    }

    .drawer-footer[b-ruxsi9xpj2] {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 16px;
    }

    .drawer-footer > button[b-ruxsi9xpj2] {
        width: 100%;
        min-height: 40px;
        justify-content: center;
    }

    .drawer-footer-actions[b-ruxsi9xpj2] {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-left: 0;
    }

    .drawer-footer-actions .btn[b-ruxsi9xpj2] {
        min-height: 40px;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .settings-panel[b-ruxsi9xpj2] {
        padding: 14px 10px;
    }

    .provider-actions .btn[b-ruxsi9xpj2],
    .provider-actions .btn-action-test[b-ruxsi9xpj2],
    .provider-actions .btn-link-danger[b-ruxsi9xpj2] {
        font-size: 0.78rem;
        padding: 4px 2px;
    }
}

.btn-action-test[b-ruxsi9xpj2] {
    font-size: 0.84rem;
    padding: 2px 10px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-link-danger[b-ruxsi9xpj2] {
    background: none;
    border: 1px solid transparent;
    color: #f87171;
    font-size: 0.84rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-link-danger:hover[b-ruxsi9xpj2] {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ffffff;
}

.provider-remove-alert[b-ruxsi9xpj2] {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.875rem;
}

.remove-alert-actions[b-ruxsi9xpj2] {
    display: flex;
    gap: 8px;
}

.cascade-composition-section[b-ruxsi9xpj2] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cascade-add-toolbar[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 8px 12px;
}

.cascade-provider-picker[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.provider-select-compact[b-ruxsi9xpj2] {
    width: auto;
    font-size: 0.875rem;
    padding: 3px 8px;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.btn-time-preset.preset-mistral[b-ruxsi9xpj2] {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.25);
    color: #fed7aa;
}

.btn-time-preset.preset-mistral:hover:not(:disabled)[b-ruxsi9xpj2] {
    background: rgba(249, 115, 22, 0.2);
    border-color: #fb923c;
    color: #fb923c;
}

.cascade-badge-provider[b-ruxsi9xpj2] {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
}

.provider-gemini[b-ruxsi9xpj2] {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.provider-mistral[b-ruxsi9xpj2] {
    background: rgba(249, 115, 22, 0.25);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.4);
}

.cascade-summary-alert.alert-warning[b-ruxsi9xpj2] {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #fde047;
}

.cascade-summary-alert.alert-danger[b-ruxsi9xpj2] {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Generic Dynamic LLM Providers (US-51) */
.providers-section-header[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.provider-card-badges[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.provider-card-actions-right[b-ruxsi9xpj2] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.badge-builtin[b-ruxsi9xpj2] {
    font-size: 0.78rem;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    cursor: default;
    font-weight: 600;
}

.badge-nokey[b-ruxsi9xpj2] {
    font-size: 0.78rem;
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    cursor: default;
    font-weight: 500;
}

.provider-baseurl[b-ruxsi9xpj2] {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
}

.provider-custom[b-ruxsi9xpj2] {
    background: rgba(168, 85, 247, 0.25);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

/* Drawer / Slide-Over Styles */
.drawer-overlay[b-ruxsi9xpj2] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1000;
}

.drawer-container[b-ruxsi9xpj2] {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 520px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    animation: slideInRight-b-ruxsi9xpj2 0.25s ease-out;
}

@keyframes slideInRight-b-ruxsi9xpj2 {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.drawer-header[b-ruxsi9xpj2] {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.drawer-header h4[b-ruxsi9xpj2] {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-close-drawer[b-ruxsi9xpj2] {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.btn-close-drawer:hover[b-ruxsi9xpj2] {
    color: var(--text-primary);
}

.drawer-body[b-ruxsi9xpj2] {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-templates-bar[b-ruxsi9xpj2] {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.templates-label[b-ruxsi9xpj2] {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.templates-buttons[b-ruxsi9xpj2] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-template-pill[b-ruxsi9xpj2] {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-template-pill:hover[b-ruxsi9xpj2] {
    background: rgba(99, 102, 241, 0.25);
    border-color: #818cf8;
    color: #fff;
}

.drawer-footer[b-ruxsi9xpj2] {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.15);
}

.drawer-footer-actions[b-ruxsi9xpj2] {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.drawer-section-divider[b-ruxsi9xpj2] {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 4px;
}

.drawer-section-title[b-ruxsi9xpj2] {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Touchscreens and coarse pointers (tablets, touch laptops) */
@media (pointer: coarse) {
    .cascade-drag-handle[b-ruxsi9xpj2] {
        padding: 8px 10px;
        font-size: 1.15rem;
        min-width: 38px;
        min-height: 38px;
        align-items: center;
        justify-content: center;
        display: inline-flex;
    }

    .btn-badge-reorder[b-ruxsi9xpj2],
    .btn-badge-remove[b-ruxsi9xpj2] {
        min-width: 36px;
        min-height: 36px;
        font-size: 0.95rem;
    }
}
/* /Components/Pages/AdminSources.razor.rz.scp.css */
/* Scoped styles for AdminSources - extracted verbatim from wwwroot/app.css. */

/* ==========================================================================
   Supervision et Pilotage du Scraping (/admin/sources - US-30)
   ========================================================================== */

.badge-scrape[b-m6yvzwocxd] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.badge-scrape-success[b-m6yvzwocxd] {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-scrape-empty[b-m6yvzwocxd] {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-scrape-failed[b-m6yvzwocxd] {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-scrape-running[b-m6yvzwocxd] {
    background: rgba(59, 130, 246, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(59, 130, 246, 0.35);
    animation: pulse-border-b-m6yvzwocxd 2s infinite ease-in-out;
}

.badge-scrape-pending[b-m6yvzwocxd] {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

@keyframes pulse-border-b-m6yvzwocxd {
    0%, 100% {
        border-color: rgba(59, 130, 246, 0.35);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2);
    }
    50% {
        border-color: rgba(56, 189, 248, 0.7);
        box-shadow: 0 0 8px 2px rgba(56, 189, 248, 0.25);
    }
}

.spin-icon[b-m6yvzwocxd] {
    display: inline-block;
    animation: spin-b-m6yvzwocxd 1s linear infinite;
}

@keyframes spin-b-m6yvzwocxd {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.error-detail-row td[b-m6yvzwocxd] {
    background: rgba(239, 68, 68, 0.06) !important;
    border-bottom: 1px solid rgba(239, 68, 68, 0.25) !important;
    padding: 0.75rem 1rem !important;
}

.error-detail-card[b-m6yvzwocxd] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.15rem;
}

.error-detail-header[b-m6yvzwocxd] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-danger);
}

.error-detail-content[b-m6yvzwocxd] {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.8rem;
    color: #fca5a5;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    word-break: break-word;
    white-space: pre-wrap;
    max-height: 180px;
    overflow-y: auto;
}

.badge-scrape-clickable[b-m6yvzwocxd] {
    cursor: pointer;
    transition: all 0.2s ease;
}

.badge-scrape-clickable:hover[b-m6yvzwocxd] {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

.report-detail-row td[b-m6yvzwocxd] {
    background: rgba(16, 185, 129, 0.04) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.25) !important;
    padding: 0.75rem 1rem !important;
}

.report-detail-card[b-m6yvzwocxd] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.15rem;
}

.report-detail-header[b-m6yvzwocxd] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.report-metrics-grid[b-m6yvzwocxd] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
}

.report-metric-card[b-m6yvzwocxd] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.report-metric-val[b-m6yvzwocxd] {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.report-metric-lbl[b-m6yvzwocxd] {
    font-size: 0.725rem;
    color: var(--text-muted);
}


.btn-scrape[b-m6yvzwocxd] {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.35);
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-scrape:hover:not(:disabled)[b-m6yvzwocxd] {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.btn-scrape:disabled[b-m6yvzwocxd] {
    opacity: 0.5;
    cursor: not-allowed;
}

.cadence-presets[b-m6yvzwocxd] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.btn-preset[b-m6yvzwocxd] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-preset:hover[b-m6yvzwocxd] {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.btn-preset.active[b-m6yvzwocxd] {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 8px var(--accent-glow);
}

.json-validation-indicator[b-m6yvzwocxd] {
    font-size: 0.775rem;
    margin-top: 0.25rem;
}

.json-status-hint[b-m6yvzwocxd] {
    color: var(--text-muted);
}

.json-status-valid[b-m6yvzwocxd] {
    color: var(--accent-success);
    font-weight: 600;
}

.json-status-invalid[b-m6yvzwocxd] {
    color: var(--accent-danger);
    font-weight: 600;
}

/* .font-monospace est une utility du design system : elle reste dans app.css.
   Elle est portée entre autres par <InputText> / <InputTextArea>, qui ne reçoivent
   jamais l'attribut de scope CSS (Blazor ne le pose que sur les éléments HTML). */

@media (max-width: 768px) {
    .report-metrics-grid[b-m6yvzwocxd] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem;
    }
}

/* US-41 : Bloc 4 — Accès réseau & Anti-bot */
.antibot-section[b-m6yvzwocxd] {
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.04);
}

.antibot-section-header[b-m6yvzwocxd] {
    color: inherit;
    font-family: inherit;
}

.antibot-section-header:focus-visible[b-m6yvzwocxd] {
    outline: 2px solid #818cf8;
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.antibot-section-header:hover .drawer-section-title[b-m6yvzwocxd] {
    color: #a5b4fc;
}

.antibot-section .drawer-section-title[b-m6yvzwocxd] {
    color: #818cf8;
    border-bottom-color: rgba(99, 102, 241, 0.2);
}

/* Test de rendu en direct & Panneau de diagnostic */
.btn-test-render[b-m6yvzwocxd] {
    background: rgba(99, 102, 241, 0.12);
    transition: all 0.2s ease;
}

.btn-test-render:hover:not(:disabled)[b-m6yvzwocxd] {
    background: rgba(99, 102, 241, 0.25);
    border-color: #818cf8;
    color: #ffffff;
}

.render-test-panel[b-m6yvzwocxd] {
    transition: all 0.25s ease;
}

.render-test-panel.success[b-m6yvzwocxd] {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.05);
}

.render-test-panel.warning[b-m6yvzwocxd] {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.05);
}

.render-test-panel.error[b-m6yvzwocxd],
.render-test-panel.antibot[b-m6yvzwocxd] {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.05);
}

.render-test-loading[b-m6yvzwocxd] {
    animation: pulseSlow-b-m6yvzwocxd 2s infinite ease-in-out;
}

@keyframes pulseSlow-b-m6yvzwocxd {
    0%, 100% { opacity: 0.95; }
    50% { opacity: 0.6; }
}

.report-web-meta span[b-m6yvzwocxd] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
/* ==================== US-43 : Modale d'ingestion HTML manuelle & Bookmarklet ==================== */

/* Modale d'ingestion : plus large que la modale de purge (textarea volumineuse) */
.modal-manual-ingest[b-m6yvzwocxd] {
    max-width: 680px;
    width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
}

/* Backdrop spécifique (même opacité que .modal-backdrop) */
.modal-manual-ingest-backdrop[b-m6yvzwocxd] {
    /* z-index identique au .modal-backdrop (300) — ne pas surcharger ici */
}

/* Textarea monospace pour le HTML brut */
.manual-ingest-textarea[b-m6yvzwocxd] {
    font-family: 'Consolas', 'Fira Code', 'Monaco', monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    border-color: rgba(71, 85, 105, 0.5);
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-primary);
    resize: vertical;
    min-height: 160px;
    transition: border-color 0.2s ease;
}

.manual-ingest-textarea:focus[b-m6yvzwocxd] {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    outline: none;
}

/* Bouton d'action "Importer" dans les lignes/cartes sources */
.btn-action-ingest[b-m6yvzwocxd] {
    background: rgba(56, 189, 248, 0.08);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-action-ingest:hover:not(:disabled)[b-m6yvzwocxd] {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #fff;
}

/* Encart Bookmarklet */
.bookmarklet-install-card[b-m6yvzwocxd] {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.bookmarklet-install-card:hover[b-m6yvzwocxd] {
    border-color: rgba(56, 189, 248, 0.25);
}

.bookmarklet-install-card summary[b-m6yvzwocxd]::-webkit-details-marker {
    display: none;
}

/* Bouton favori draggable */
.bookmarklet-drag-btn[b-m6yvzwocxd] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
    user-select: none;
}

.bookmarklet-drag-btn:hover[b-m6yvzwocxd] {
    background: rgba(56, 189, 248, 0.2) !important;
    border-color: #38bdf8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}

.bookmarklet-drag-btn:active[b-m6yvzwocxd] {
    cursor: grabbing;
    transform: translateY(0);
}

/* Toast bookmarklet (style encapsulé inline dans le script JS, pas de classe CSS nécessaire) */

/* ==========================================================================
   AdminSources : Cascade Responsive à 4 Paliers Desktop des Actions
   ========================================================================== */

/* Structure commune des boutons d'actions */
.btn-action-icon[b-m6yvzwocxd] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-action-text[b-m6yvzwocxd] {
    display: inline;
}

.btn-action[b-m6yvzwocxd] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    user-select: none;
    box-sizing: border-box;
}

.btn-action:focus-visible[b-m6yvzwocxd] {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Couleurs des boutons */
.btn-action-scrape[b-m6yvzwocxd] {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.35);
}
.btn-action-scrape:hover:not(:disabled)[b-m6yvzwocxd] {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}
.btn-action-scrape:disabled[b-m6yvzwocxd] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-action-edit[b-m6yvzwocxd] {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-action-edit:hover:not(:disabled)[b-m6yvzwocxd] {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.btn-action-purge[b-m6yvzwocxd] {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.btn-action-purge:hover:not(:disabled)[b-m6yvzwocxd] {
    background: var(--accent-warning);
    color: #0f172a;
    border-color: var(--accent-warning);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.desktop-sources-view.table-container[b-m6yvzwocxd] {
    container-type: inline-size;
    container-name: sourcesContainer;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Modèle de colonnes proportionnel, stable et anti-débordement pour le tableau Desktop :
   - Le tableau applique table-layout: fixed et width: 100% pour garantir qu'il occupe exactement
     la largeur de son conteneur sans jamais déborder ni tronquer les boutons.
   - Les pourcentages de colonnes somment à 100% à chaque palier pour un équilibre visuel parfait,
     évitant tout espace vide démesuré dans la colonne Source ou tassement artificiel à droite.
   - Les boutons d'action conservent une taille minimale confortable (min-width: 96px, padding 0 0.65rem)
     aussi bien en mode 1x4 horizontal qu'en mode 2x2. */
.desktop-sources-view .custom-table[b-m6yvzwocxd] {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.desktop-sources-view th.col-source[b-m6yvzwocxd],
.desktop-sources-view td.col-source[b-m6yvzwocxd] {
    text-align: left;
    vertical-align: middle;
    padding: 0.75rem 1rem;
    overflow: hidden;
}

.desktop-sources-view th.col-cadence[b-m6yvzwocxd],
.desktop-sources-view td.col-cadence[b-m6yvzwocxd] {
    text-align: left;
    vertical-align: middle;
    padding: 0.75rem 1rem;
    overflow: hidden;
}

.desktop-sources-view th.col-health[b-m6yvzwocxd],
.desktop-sources-view td.col-health[b-m6yvzwocxd] {
    text-align: left;
    vertical-align: middle;
    padding: 0.75rem 1rem;
    overflow: hidden;
}

.desktop-sources-view th.col-actions[b-m6yvzwocxd],
.desktop-sources-view td.col-actions[b-m6yvzwocxd] {
    text-align: center;
    vertical-align: middle;
    padding: 0.5rem;
}

.desktop-sources-view .source-title-row[b-m6yvzwocxd] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.desktop-sources-view .source-name[b-m6yvzwocxd] {
    color: var(--text-primary);
    font-size: 0.925rem;
    font-weight: 600;
    word-break: break-word;
}

/* Base / Default fallback (Palier 2 : Grand écran standard & Laptops 2x2 avec texte) */
.custom-table th.col-source[b-m6yvzwocxd],
.custom-table td.col-source[b-m6yvzwocxd] { width: 38%; }
.custom-table th.col-cadence[b-m6yvzwocxd],
.custom-table td.col-cadence[b-m6yvzwocxd] { width: 16%; }
.custom-table th.col-health[b-m6yvzwocxd],
.custom-table td.col-health[b-m6yvzwocxd] { width: 22%; }
.custom-table th.col-actions[b-m6yvzwocxd],
.custom-table td.col-actions[b-m6yvzwocxd] { width: 24%; }

.custom-table .source-actions-group[b-m6yvzwocxd] {
    display: grid;
    grid-template-columns: repeat(2, minmax(96px, auto));
    grid-template-rows: repeat(2, 32px);
    gap: 6px;
    justify-content: center;
    align-content: center;
    margin: 0 auto;
    width: max-content;
}

.custom-table .source-actions-group.curator-actions .btn-action-edit[b-m6yvzwocxd],
.mobile-source-card-actions.curator-actions .btn-action-edit[b-m6yvzwocxd] {
    grid-column: span 2;
}

.custom-table .source-actions-group .btn-action[b-m6yvzwocxd] {
    width: auto;
    min-width: 96px;
    height: 32px;
    padding: 0 0.65rem;
    gap: 0.35rem;
    font-size: 0.775rem;
}

.custom-table .source-actions-group .btn-action-text[b-m6yvzwocxd] {
    display: inline !important;
}

.custom-table .source-actions-group .btn-action-icon[b-m6yvzwocxd] {
    font-size: 0.85rem;
}

.custom-table .badge-scrape-compact[b-m6yvzwocxd] { display: inline !important; }
.custom-table .badge-scrape-full[b-m6yvzwocxd] { display: none !important; }

/* --------------------------------------------------------------------------
   FALLBACK MEDIA QUERIES (pour navigateurs sans Container Queries)
   -------------------------------------------------------------------------- */

/* Palier 1 Fallback : Très grand écran (> 1600px) - 1x4 avec texte */
@media (min-width: 1601px) {
    .custom-table th.col-source[b-m6yvzwocxd],
    .custom-table td.col-source[b-m6yvzwocxd] { width: 28%; }
    .custom-table th.col-cadence[b-m6yvzwocxd],
    .custom-table td.col-cadence[b-m6yvzwocxd] { width: 18%; }
    .custom-table th.col-health[b-m6yvzwocxd],
    .custom-table td.col-health[b-m6yvzwocxd] { width: 22%; }
    .custom-table th.col-actions[b-m6yvzwocxd],
    .custom-table td.col-actions[b-m6yvzwocxd] { width: 32%; }

    .custom-table .source-actions-group[b-m6yvzwocxd] {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
        width: max-content;
        margin: 0 auto;
    }

    .custom-table .source-actions-group .btn-action[b-m6yvzwocxd] {
        width: auto;
        min-width: 96px;
        height: 32px;
        padding: 0 0.65rem;
        gap: 0.35rem;
        font-size: 0.775rem;
    }

    .custom-table .source-actions-group .btn-action-text[b-m6yvzwocxd] {
        display: inline !important;
    }

    .custom-table .source-actions-group .btn-action-icon[b-m6yvzwocxd] {
        font-size: 0.85rem;
    }

    .custom-table .badge-scrape-compact[b-m6yvzwocxd] { display: none !important; }
    .custom-table .badge-scrape-full[b-m6yvzwocxd] { display: inline !important; }
}

/* Palier 2 Fallback : Grand écran standard & Laptops confort (1201px – 1600px) - 2x2 avec texte */
@media (min-width: 1201px) and (max-width: 1600.98px) {
    .custom-table th.col-source[b-m6yvzwocxd],
    .custom-table td.col-source[b-m6yvzwocxd] { width: 38%; }
    .custom-table th.col-cadence[b-m6yvzwocxd],
    .custom-table td.col-cadence[b-m6yvzwocxd] { width: 16%; }
    .custom-table th.col-health[b-m6yvzwocxd],
    .custom-table td.col-health[b-m6yvzwocxd] { width: 22%; }
    .custom-table th.col-actions[b-m6yvzwocxd],
    .custom-table td.col-actions[b-m6yvzwocxd] { width: 24%; }

    .custom-table .source-actions-group[b-m6yvzwocxd] {
        display: grid;
        grid-template-columns: repeat(2, minmax(96px, auto));
        grid-template-rows: repeat(2, 32px);
        gap: 6px;
        justify-content: center;
        align-content: center;
        margin: 0 auto;
        width: max-content;
    }

    .custom-table .source-actions-group .btn-action[b-m6yvzwocxd] {
        width: auto;
        min-width: 96px;
        height: 32px;
        padding: 0 0.65rem;
        gap: 0.35rem;
        font-size: 0.775rem;
    }

    .custom-table .source-actions-group .btn-action-text[b-m6yvzwocxd] {
        display: inline !important;
    }

    .custom-table .source-actions-group .btn-action-icon[b-m6yvzwocxd] {
        font-size: 0.85rem;
    }

    .custom-table .badge-scrape-full[b-m6yvzwocxd] { display: none !important; }
    .custom-table .badge-scrape-compact[b-m6yvzwocxd] { display: inline !important; }
}

/* Palier 3 Fallback : Écran resserré / Laptop compact (951px – 1200px) - 1x4 horizontal sans texte */
@media (min-width: 951px) and (max-width: 1200.98px) {
    .custom-table th.col-source[b-m6yvzwocxd],
    .custom-table td.col-source[b-m6yvzwocxd] { width: 42%; }
    .custom-table th.col-cadence[b-m6yvzwocxd],
    .custom-table td.col-cadence[b-m6yvzwocxd] { width: 16%; }
    .custom-table th.col-health[b-m6yvzwocxd],
    .custom-table td.col-health[b-m6yvzwocxd] { width: 22%; }
    .custom-table th.col-actions[b-m6yvzwocxd],
    .custom-table td.col-actions[b-m6yvzwocxd] { width: 20%; }

    .custom-table .source-actions-group[b-m6yvzwocxd] {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: max-content;
        margin: 0 auto;
    }

    .custom-table .source-actions-group .btn-action-text[b-m6yvzwocxd] {
        display: none !important;
    }

    .custom-table .source-actions-group .btn-action[b-m6yvzwocxd] {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        padding: 0;
        border-radius: var(--radius-sm);
        justify-content: center;
    }

    .custom-table .source-actions-group .btn-action-icon[b-m6yvzwocxd] {
        font-size: 0.95rem;
        line-height: 1;
    }

    .custom-table .badge-scrape-full[b-m6yvzwocxd] { display: none !important; }
    .custom-table .badge-scrape-compact[b-m6yvzwocxd] { display: inline !important; }
}

/* Palier 4 Fallback : Écran très resserré & Fenêtre scindée (769px – 950px) - 2x2 sans texte */
@media (min-width: 769px) and (max-width: 950.98px) {
    .custom-table th.col-source[b-m6yvzwocxd],
    .custom-table td.col-source[b-m6yvzwocxd] { width: 46%; }
    .custom-table th.col-cadence[b-m6yvzwocxd],
    .custom-table td.col-cadence[b-m6yvzwocxd] { width: 18%; }
    .custom-table th.col-health[b-m6yvzwocxd],
    .custom-table td.col-health[b-m6yvzwocxd] { width: 24%; }
    .custom-table th.col-actions[b-m6yvzwocxd],
    .custom-table td.col-actions[b-m6yvzwocxd] { width: 12%; }

    .custom-table .source-actions-group[b-m6yvzwocxd] {
        display: grid;
        grid-template-columns: repeat(2, 34px);
        grid-template-rows: repeat(2, 34px);
        gap: 4px;
        justify-content: center;
        align-content: center;
        margin: 0 auto;
        width: max-content;
    }

    .custom-table .source-actions-group .btn-action-text[b-m6yvzwocxd] {
        display: none !important;
    }

    .custom-table .source-actions-group .btn-action[b-m6yvzwocxd] {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        padding: 0;
        border-radius: var(--radius-sm);
        justify-content: center;
    }

    .custom-table .source-actions-group .btn-action-icon[b-m6yvzwocxd] {
        font-size: 0.95rem;
        line-height: 1;
    }

    .custom-table .badge-scrape-full[b-m6yvzwocxd] { display: none !important; }
    .custom-table .badge-scrape-compact[b-m6yvzwocxd] { display: inline !important; }
}

/* --------------------------------------------------------------------------
   CONTAINER QUERIES (calibrées sur la largeur réelle du conteneur de table)
   Prend en compte l'état replié/déplié de la sidebar et les marges internes.
   IMPORTANT : les sélecteurs ciblent les descendants de sourcesContainer
   (sans préfixer .desktop-sources-view qui est le conteneur lui-même).
   -------------------------------------------------------------------------- */

/* Palier 1 : Largeur conteneur >= 1350px - 1x4 horizontal avec texte complet */
@container sourcesContainer (min-width: 1350px) {
    .custom-table th.col-source[b-m6yvzwocxd],
    .custom-table td.col-source[b-m6yvzwocxd] { width: 28%; }
    .custom-table th.col-cadence[b-m6yvzwocxd],
    .custom-table td.col-cadence[b-m6yvzwocxd] { width: 18%; }
    .custom-table th.col-health[b-m6yvzwocxd],
    .custom-table td.col-health[b-m6yvzwocxd] { width: 22%; }
    .custom-table th.col-actions[b-m6yvzwocxd],
    .custom-table td.col-actions[b-m6yvzwocxd] { width: 32%; }

    .custom-table .source-actions-group[b-m6yvzwocxd] {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
        width: max-content;
        margin: 0 auto;
    }

    .custom-table .source-actions-group .btn-action[b-m6yvzwocxd] {
        width: auto;
        min-width: 96px;
        height: 32px;
        padding: 0 0.65rem;
        gap: 0.35rem;
        font-size: 0.775rem;
    }

    .custom-table .source-actions-group .btn-action-text[b-m6yvzwocxd] {
        display: inline !important;
    }

    .custom-table .source-actions-group .btn-action-icon[b-m6yvzwocxd] {
        font-size: 0.85rem;
    }

    .custom-table .badge-scrape-compact[b-m6yvzwocxd] { display: none !important; }
    .custom-table .badge-scrape-full[b-m6yvzwocxd] { display: inline !important; }
}

/* Palier 2 : Largeur conteneur 900px à 1349.98px - 2x2 avec texte complet (non écrasé) */
@container sourcesContainer (min-width: 900px) and (max-width: 1349.98px) {
    .custom-table th.col-source[b-m6yvzwocxd],
    .custom-table td.col-source[b-m6yvzwocxd] { width: 38%; }
    .custom-table th.col-cadence[b-m6yvzwocxd],
    .custom-table td.col-cadence[b-m6yvzwocxd] { width: 16%; }
    .custom-table th.col-health[b-m6yvzwocxd],
    .custom-table td.col-health[b-m6yvzwocxd] { width: 22%; }
    .custom-table th.col-actions[b-m6yvzwocxd],
    .custom-table td.col-actions[b-m6yvzwocxd] { width: 24%; }

    .custom-table .source-actions-group[b-m6yvzwocxd] {
        display: grid;
        grid-template-columns: repeat(2, minmax(96px, auto));
        grid-template-rows: repeat(2, 32px);
        gap: 6px;
        justify-content: center;
        align-content: center;
        margin: 0 auto;
        width: max-content;
    }

    .custom-table .source-actions-group .btn-action[b-m6yvzwocxd] {
        width: auto;
        min-width: 96px;
        height: 32px;
        padding: 0 0.65rem;
        gap: 0.35rem;
        font-size: 0.775rem;
    }

    .custom-table .source-actions-group .btn-action-text[b-m6yvzwocxd] {
        display: inline !important;
    }

    .custom-table .source-actions-group .btn-action-icon[b-m6yvzwocxd] {
        font-size: 0.85rem;
    }

    .custom-table .badge-scrape-full[b-m6yvzwocxd] { display: none !important; }
    .custom-table .badge-scrape-compact[b-m6yvzwocxd] { display: inline !important; }
}

/* Palier 3 : Largeur conteneur 740px à 899.98px - 1x4 horizontal sans texte (icônes seules) */
@container sourcesContainer (min-width: 740px) and (max-width: 899.98px) {
    .custom-table th.col-source[b-m6yvzwocxd],
    .custom-table td.col-source[b-m6yvzwocxd] { width: 42%; }
    .custom-table th.col-cadence[b-m6yvzwocxd],
    .custom-table td.col-cadence[b-m6yvzwocxd] { width: 16%; }
    .custom-table th.col-health[b-m6yvzwocxd],
    .custom-table td.col-health[b-m6yvzwocxd] { width: 22%; }
    .custom-table th.col-actions[b-m6yvzwocxd],
    .custom-table td.col-actions[b-m6yvzwocxd] { width: 20%; }

    .custom-table .source-actions-group[b-m6yvzwocxd] {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: max-content;
        margin: 0 auto;
    }

    .custom-table .source-actions-group .btn-action-text[b-m6yvzwocxd] {
        display: none !important;
    }

    .custom-table .source-actions-group .btn-action[b-m6yvzwocxd] {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        padding: 0;
        border-radius: var(--radius-sm);
        justify-content: center;
    }

    .custom-table .source-actions-group .btn-action-icon[b-m6yvzwocxd] {
        font-size: 0.95rem;
        line-height: 1;
    }

    .custom-table .badge-scrape-full[b-m6yvzwocxd] { display: none !important; }
    .custom-table .badge-scrape-compact[b-m6yvzwocxd] { display: inline !important; }
}

/* Palier 4 : Largeur conteneur < 740px - 2x2 sans texte (matrice d'icônes 34x34) */
@container sourcesContainer (max-width: 739.98px) {
    .custom-table th.col-source[b-m6yvzwocxd],
    .custom-table td.col-source[b-m6yvzwocxd] { width: 46%; }
    .custom-table th.col-cadence[b-m6yvzwocxd],
    .custom-table td.col-cadence[b-m6yvzwocxd] { width: 18%; }
    .custom-table th.col-health[b-m6yvzwocxd],
    .custom-table td.col-health[b-m6yvzwocxd] { width: 24%; }
    .custom-table th.col-actions[b-m6yvzwocxd],
    .custom-table td.col-actions[b-m6yvzwocxd] { width: 12%; }

    .custom-table .source-actions-group[b-m6yvzwocxd] {
        display: grid;
        grid-template-columns: repeat(2, 34px);
        grid-template-rows: repeat(2, 34px);
        gap: 4px;
        justify-content: center;
        align-content: center;
        margin: 0 auto;
        width: max-content;
    }

    .custom-table .source-actions-group .btn-action-text[b-m6yvzwocxd] {
        display: none !important;
    }

    .custom-table .source-actions-group .btn-action[b-m6yvzwocxd] {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        padding: 0;
        border-radius: var(--radius-sm);
        justify-content: center;
    }

    .custom-table .source-actions-group .btn-action-icon[b-m6yvzwocxd] {
        font-size: 0.95rem;
        line-height: 1;
    }

    .custom-table .badge-scrape-full[b-m6yvzwocxd] { display: none !important; }
    .custom-table .badge-scrape-compact[b-m6yvzwocxd] { display: inline !important; }
}

/* --------------------------------------------------------------------------
   PALIER 5 : Mobile (≤ 768px)
   Cartes tactiles pleines largeur avec grille 2x2 (icônes + texte, min 44px)
   -------------------------------------------------------------------------- */
.mobile-source-card-actions[b-m6yvzwocxd] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    align-items: center;
    padding-top: 0.5rem;
}

.mobile-source-card-actions .btn-action[b-m6yvzwocxd] {
    width: 100%;
    min-height: 44px;
    height: 44px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 0.5rem;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* ==========================================================================
   US-50 : Double horodatage compact & Traçabilité Cascade IA
   ========================================================================== */

.source-health-dual-time[b-m6yvzwocxd] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.25;
}

.dual-time-failure[b-m6yvzwocxd] {
    font-size: 0.725rem;
    font-weight: 500;
    color: #f87171;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dot-failure[b-m6yvzwocxd] {
    color: #f87171;
    font-size: 0.65rem;
    line-height: 1;
}

.dual-time-success[b-m6yvzwocxd] {
    font-size: 0.725rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dot-success[b-m6yvzwocxd] {
    color: #64748b;
    font-size: 0.65rem;
    line-height: 1;
}

.dual-time-never[b-m6yvzwocxd] {
    font-size: 0.725rem;
    font-style: italic;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dot-never[b-m6yvzwocxd] {
    color: #64748b;
    font-size: 0.65rem;
    line-height: 1;
}

.report-cascade-trail[b-m6yvzwocxd] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.trail-badge-success[b-m6yvzwocxd] {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.trail-badge-failed[b-m6yvzwocxd] {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

.trail-arrow[b-m6yvzwocxd] {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.cascade-attempt-card[b-m6yvzwocxd] {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
}

.cascade-remediation-box[b-m6yvzwocxd] {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: #fbbf24;
}
/* /Components/Pages/AdminUsers.razor.rz.scp.css */
.users-page[b-vl8isclh18] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.users-heading[b-vl8isclh18] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.users-heading .btn[b-vl8isclh18] {
    min-height: var(--touch-target-min);
}

.users-filters-bar[b-vl8isclh18] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.users-empty-cell[b-vl8isclh18] {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem 1rem;
    font-style: italic;
}

.user-identity[b-vl8isclh18] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.user-avatar[b-vl8isclh18] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--accent-glow);
    color: var(--text-primary);
    font-weight: 700;
}

.user-identity-text[b-vl8isclh18] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.user-identity-text strong[b-vl8isclh18] {
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-identity-text small[b-vl8isclh18],
.user-activity[b-vl8isclh18] {
    color: var(--text-secondary);
}

.users-table-wrap[b-vl8isclh18] {
    overflow-x: auto;
}

.users-mobile-list[b-vl8isclh18] {
    display: none;
}

.user-mobile-card[b-vl8isclh18] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-mobile-card .btn[b-vl8isclh18] {
    width: 100%;
    min-height: var(--touch-target-min);
}

.user-state[b-vl8isclh18] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Role Selector Cards */
.users-role-fieldset[b-vl8isclh18] {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.users-role-legend[b-vl8isclh18] {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.25rem;
    padding: 0;
}

.users-role-cards[b-vl8isclh18] {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.users-role-card[b-vl8isclh18] {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    min-height: 52px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.users-role-card:hover:not(:has(input:disabled))[b-vl8isclh18] {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(99, 102, 241, 0.35);
}

.users-role-card:has(input:checked)[b-vl8isclh18],
.users-role-card.selected[b-vl8isclh18] {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 0 1px var(--accent-primary), 0 2px 10px var(--accent-glow);
}

.users-role-radio[b-vl8isclh18] {
    margin-top: 0.2rem;
    accent-color: var(--accent-primary);
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    cursor: pointer;
}

.users-role-content[b-vl8isclh18] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.users-role-badge-row[b-vl8isclh18] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.users-role-desc[b-vl8isclh18] {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.35;
}

/* Disabled state (auto-administration / dernier admin) */
.users-role-fieldset:disabled .users-role-card[b-vl8isclh18] {
    opacity: 0.55;
    cursor: not-allowed;
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.06);
}

.users-role-fieldset:disabled .users-role-radio[b-vl8isclh18] {
    cursor: not-allowed;
}

/* Guard Note with SVG */
.guard-note[b-vl8isclh18] {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.825rem;
    line-height: 1.45;
}

.guard-note svg[b-vl8isclh18] {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: #94a3b8;
}

.users-danger-zone[b-vl8isclh18] {
    border-color: rgba(239, 68, 68, 0.45);
}

.users-danger-zone h3[b-vl8isclh18] {
    color: #fca5a5;
}

.users-danger-zone button[b-vl8isclh18] {
    min-height: var(--touch-target-min);
}

@media (max-width: 768px) {
    .users-heading .btn[b-vl8isclh18] {
        width: 100%;
    }

    .users-filters-bar .segmented-control[b-vl8isclh18] {
        display: flex;
        width: 100%;
    }

    .users-filters-bar .segment-btn[b-vl8isclh18] {
        flex: 1 1 0;
        min-height: var(--touch-target-min);
    }

    .users-table-wrap[b-vl8isclh18] {
        display: none;
    }

    .users-mobile-list[b-vl8isclh18] {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}
/* /Components/Pages/ChangePassword.razor.rz.scp.css */
.account-back-link[b-ylbt0kudqh] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
}

.account-back-link:hover[b-ylbt0kudqh] {
    color: var(--text-primary);
    text-decoration: underline;
}

.account-back-link:focus-visible[b-ylbt0kudqh] {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}
/* /Components/Pages/Login.razor.rz.scp.css */
.remember-option label[b-kbe0lb1q0s] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--touch-target-min);
    cursor: pointer;
    line-height: 1.45;
}

/* InputCheckbox renders an input without the Login component's CSS scope. */
.remember-option[b-kbe0lb1q0s]  input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin: 0;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.remember-option label span[b-kbe0lb1q0s] {
    min-width: 0;
}

.login-help[b-kbe0lb1q0s] {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: center;
}
/* /Components/Shared/EventCard.razor.rz.scp.css */
/* Scoped styles for EventCard - extracted from wwwroot/app.css. */
/* CSS isolation: selectors are auto-scoped by Blazor at build time. */
/* See docs/UI_GUIDELINES.md SS 7.1 for scoping rules and pitfalls.  */

/* Event Card (Glassmorphism) */
.event-card[b-rf3aeflxba] {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    content-visibility: auto;
    contain-intrinsic-size: auto 240px;
    contain: layout style;
}


.event-card:hover[b-rf3aeflxba] {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.2);
}

.event-card.processing[b-rf3aeflxba] {
    opacity: 0.6;
    pointer-events: none;
}

.event-card-header[b-rf3aeflxba] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    width: 100%;
    min-width: 0;
}


.badges-group[b-rf3aeflxba] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}


.badge-category[b-rf3aeflxba] {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Category +N Flyout Popover — Floating Pill Design */
.category-more-wrapper[b-rf3aeflxba] {
    position: relative;
    display: inline-flex;
    align-items: center;
    outline: none;
}

.badge-category-more[b-rf3aeflxba] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.category-more-wrapper:hover .badge-category-more[b-rf3aeflxba],
.category-more-wrapper:focus-within .badge-category-more[b-rf3aeflxba] {
    background: rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.category-popover[b-rf3aeflxba] {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full, 9999px);
    padding: 3px 5px;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.2);
    min-width: unset;
    max-width: 280px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-2px);
    transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.15s;
}

.category-popover[b-rf3aeflxba]::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.category-more-wrapper:hover .category-popover[b-rf3aeflxba],
.category-more-wrapper:focus-within .category-popover[b-rf3aeflxba] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.category-popover-list[b-rf3aeflxba] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.badge-today-dot[b-rf3aeflxba] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
    flex-shrink: 0;
}


.pulse-dot[b-rf3aeflxba] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #ef4444;
    display: inline-block;
    flex-shrink: 0;
    animation: pulseGlow-b-rf3aeflxba 1.8s infinite ease-in-out;
}

@keyframes pulseGlow-b-rf3aeflxba {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.event-card-today[b-rf3aeflxba] {
    border-color: rgba(239, 68, 68, 0.55) !important;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.18), 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    position: relative;
}

.event-card-today[b-rf3aeflxba]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 100%);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.event-card-today.event-card-status-maybe[b-rf3aeflxba],
.event-card-today.status-maybe[b-rf3aeflxba] {
    border-color: rgba(239, 68, 68, 0.25) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.08), 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.event-card-today.event-card-status-maybe[b-rf3aeflxba]::before,
.event-card-today.status-maybe[b-rf3aeflxba]::before {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.4) 0%, rgba(245, 158, 11, 0.4) 100%);
}


.badge-status-pending[b-rf3aeflxba] {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status-accepted[b-rf3aeflxba] {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status-maybe[b-rf3aeflxba] {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-info);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-status-cancelled[b-rf3aeflxba] {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.event-card-status-accepted[b-rf3aeflxba] {
    border-left: 4px solid #10b981;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.event-card-status-maybe[b-rf3aeflxba] {
    border-left: 4px solid #06b6d4;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.05) 0%, rgba(15, 23, 42, 0.6) 100%);
}


.event-title[b-rf3aeflxba] {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.event-title-link[b-rf3aeflxba] {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s;
}

.event-title-link:hover[b-rf3aeflxba] {
    color: #818cf8;
}

.external-icon[b-rf3aeflxba] {
    flex-shrink: 0;
    opacity: 0.7;
}


.time-text[b-rf3aeflxba] {
    display: inline-flex;
    align-items: center;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #38bdf8;
    padding: 0.12rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}


/* Track B: Compact Single Meta Line (Location • Price) */
.event-meta-line[b-rf3aeflxba] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.825rem;
    color: #94a3b8;
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.meta-item[b-rf3aeflxba] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.meta-item svg[b-rf3aeflxba] {
    flex-shrink: 0;
    color: #64748b;
}

.meta-location[b-rf3aeflxba] {
    color: #cbd5e1;
}

.meta-location-text[b-rf3aeflxba] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
}

/* Interactive Location & Address Popover */
.meta-location-interactive[b-rf3aeflxba] {
    position: relative;
    cursor: pointer;
    outline: none;
}

.meta-location-underlined[b-rf3aeflxba] {
    border-bottom: 1px dashed rgba(148, 163, 184, 0.45);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.meta-location-interactive:hover .meta-location-underlined[b-rf3aeflxba],
.meta-location-interactive:focus-within .meta-location-underlined[b-rf3aeflxba] {
    color: #f1f5f9;
    border-color: rgba(99, 102, 241, 0.7);
}

.meta-location-interactive:hover svg[b-rf3aeflxba],
.meta-location-interactive:focus-within svg[b-rf3aeflxba] {
    color: #818cf8;
}

.location-popover[b-rf3aeflxba] {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    max-width: 280px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.15s;
}

.location-popover[b-rf3aeflxba]::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.meta-location-interactive:hover .location-popover[b-rf3aeflxba],
.meta-location-interactive:focus-within .location-popover[b-rf3aeflxba] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.location-popover-venue[b-rf3aeflxba] {
    font-weight: 700;
    font-size: 0.8rem;
    color: #f8fafc;
    margin-bottom: 0.25rem;
}

.location-popover-address[b-rf3aeflxba] {
    font-size: 0.75rem;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    line-height: 1.35;
    margin-bottom: 0.15rem;
}

.location-popover-address svg[b-rf3aeflxba] {
    flex-shrink: 0;
    margin-top: 2px;
    color: #818cf8;
}

.location-popover-city[b-rf3aeflxba] {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-left: 1rem;
}

.meta-price[b-rf3aeflxba] {
    color: #f1f5f9;
    font-weight: 600;
}

.meta-price svg[b-rf3aeflxba] {
    color: #d97706;
}

.meta-sep[b-rf3aeflxba] {
    color: #475569;
    font-size: 0.75rem;
    user-select: none;
}

/* Track B: Pre-footer Sources */
.event-card-sources[b-rf3aeflxba] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: auto;
    padding-top: 0.5rem;
    margin-bottom: 0.65rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    min-width: 0;
    overflow: hidden;
}

.sources-icon[b-rf3aeflxba] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.sources-icon:hover[b-rf3aeflxba] {
    color: #94a3b8;
}

.sources-icon svg[b-rf3aeflxba] {
    flex-shrink: 0;
}

.sources-list[b-rf3aeflxba] {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
    overflow: hidden;
}


.source-text[b-rf3aeflxba] {
    color: #94a3b8;
    white-space: nowrap;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.source-sep[b-rf3aeflxba] {
    color: #475569;
    font-size: 0.65rem;
    user-select: none;
}

.event-card-body[b-rf3aeflxba] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.event-description[b-rf3aeflxba] {
    font-size: 0.875rem;
    color: #cbd5e1; /* Brighter readable description */
    line-height: 1.5;
    margin-top: 0.25rem;
    margin-bottom: auto;
    padding-bottom: 0.5rem;
    position: relative;
}

.event-description p[b-rf3aeflxba] {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.event-description.expanded p[b-rf3aeflxba] {
    display: block;
    -webkit-line-clamp: unset;
}

.event-description.expanded p[b-rf3aeflxba] {
    display: block;
    overflow: visible;
}

.btn-text-toggle[b-rf3aeflxba] {
    background: none;
    border: none;
    color: #818cf8;
    font-size: 0.775rem;
    cursor: pointer;
    padding: 0;
    margin-top: 0.25rem;
    font-weight: 600;
}

/* Card Actions & Exit Animation */
.event-header-right[b-rf3aeflxba] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.event-card-date-badge[b-rf3aeflxba] {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(129, 140, 248, 0.7);
    border-radius: var(--radius-md);
    padding: 0.35rem 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.event-card-date-badge .date-main[b-rf3aeflxba] {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.event-card-date-badge .date-line[b-rf3aeflxba] {
    white-space: nowrap;
}

.event-card-date-badge .time-sub[b-rf3aeflxba] {
    font-size: 0.775rem;
    color: #38bdf8;
    font-weight: 600;
    white-space: nowrap;
    margin-top: 0.15rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}


.event-card-exiting[b-rf3aeflxba] {
    animation: cardExitAnimation-b-rf3aeflxba 0.3s ease forwards;
    pointer-events: none;
}

@keyframes cardExitAnimation-b-rf3aeflxba {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-16px) scale(0.96);
    }
}

@media (prefers-reduced-motion: reduce) {
    .event-card-exiting[b-rf3aeflxba] {
        animation: none;
        opacity: 0;
    }
}

/* US-16 : Mon Agenda Contextual Visual Differentiation */
.status-dot[b-rf3aeflxba] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.725rem;
    font-weight: 700;
    margin-right: 0.35rem;
    flex-shrink: 0;
}

.status-dot-accepted[b-rf3aeflxba] {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.status-dot-maybe[b-rf3aeflxba] {
    background: rgba(6, 182, 212, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(6, 182, 212, 0.5);
}

.status-dot-rejected[b-rf3aeflxba] {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* CA-16.2 : Opaque green solid border for Accepted, Semi-transparent dashed cyan border for Maybe */
.event-card-agenda.status-accepted[b-rf3aeflxba] {
    background: var(--bg-surface, #1e293b);
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.06);
}

.event-card-agenda.status-maybe[b-rf3aeflxba] {
    background: rgba(15, 23, 42, 0.55);
    border: 1px dashed rgba(6, 182, 212, 0.45);
}


/* CA-17.2 : US-17 Ghost/Archived Card Style for Rejected Events */
.event-card-rejected[b-rf3aeflxba] {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(239, 68, 68, 0.25);
    opacity: 0.9;
}

.event-card-rejected .event-title[b-rf3aeflxba],
.event-card-rejected .event-title-link[b-rf3aeflxba] {
    color: #cbd5e1;
}

.event-card-rejected .event-description[b-rf3aeflxba] {
    color: #64748b;
}

/* CA-16.3 : Compact Discrete Footer Actions in Mon Agenda */
.event-card-actions-compact[b-rf3aeflxba] {
    margin-top: 0.35rem;
    padding-top: 0.5rem;
    gap: 0.35rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.btn-action-compact[b-rf3aeflxba] {
    padding: 0.3rem 0.45rem;
    font-size: 0.8rem;
    min-height: 32px;
    max-width: 140px;
    background: transparent;
    opacity: 0.85;
}

.btn-action-compact:hover[b-rf3aeflxba] {
    opacity: 1;
}

.event-card-actions[b-rf3aeflxba] {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
}


.btn-accept[b-rf3aeflxba] {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-success);
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-accept:hover[b-rf3aeflxba] {
    background: var(--accent-success);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-maybe[b-rf3aeflxba] {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-warning);
    border-color: rgba(245, 158, 11, 0.3);
}

.btn-maybe:hover[b-rf3aeflxba] {
    background: var(--accent-warning);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-reject[b-rf3aeflxba] {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-reject:hover[b-rf3aeflxba] {
    background: var(--accent-danger);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}


/* ==========================================================================
   US-45 : Séances et représentations multi-dates (Performances Chips)
   ========================================================================== */
.performances-container[b-rf3aeflxba] {
    margin-top: 0.4rem;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.5rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
}

.performances-header[b-rf3aeflxba] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.performances-title[b-rf3aeflxba] {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-clear-selection[b-rf3aeflxba] {
    background: none;
    border: none;
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    padding: 1px 5px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.btn-clear-selection:hover[b-rf3aeflxba] {
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.1);
}

.performances-chips-wrapper[b-rf3aeflxba] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}

.performances-chips[b-rf3aeflxba] {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

.chip-performance[b-rf3aeflxba] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.45rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    line-height: 1.2;
    white-space: nowrap;
}

.chip-performance:hover:not(:disabled)[b-rf3aeflxba] {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(148, 163, 184, 0.4);
    color: #f8fafc;
    transform: translateY(-1px);
}

.chip-performance:focus-visible[b-rf3aeflxba] {
    outline: 2px solid #818cf8;
    outline-offset: 1px;
}

.chip-performance.chip-active[b-rf3aeflxba] {
    background: rgba(99, 102, 241, 0.25);
    border-color: #6366f1;
    color: #e0e7ff;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

.chip-performance.chip-selected-agenda[b-rf3aeflxba] {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    color: #a7f3d0;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
    font-weight: 600;
}

.chip-performance.chip-past[b-rf3aeflxba] {
    opacity: 0.4;
    text-decoration: line-through;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(148, 163, 184, 0.1);
    color: #64748b;
}

.chip-check[b-rf3aeflxba] {
    font-size: 0.75rem;
    line-height: 1;
}

.btn-more-performances[b-rf3aeflxba] {
    display: inline-flex;
    align-items: center;
    background: rgba(51, 65, 85, 0.4);
    border: 1px dashed rgba(148, 163, 184, 0.3);
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.18rem 0.45rem;
    border-radius: 5px;
    cursor: pointer;
    align-self: center;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.btn-more-performances:hover[b-rf3aeflxba] {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(148, 163, 184, 0.5);
    color: #f8fafc;
}

.date-badge-selected[b-rf3aeflxba] {
    border-color: rgba(16, 185, 129, 0.5) !important;
    background: rgba(16, 185, 129, 0.12) !important;
}

.time-selected[b-rf3aeflxba] {
    color: #34d399 !important;
    font-weight: 600;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .performances-chips[b-rf3aeflxba] {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: thin;
    }

    .chip-performance[b-rf3aeflxba] {
    min-height: 40px;
    flex-shrink: 0;
    padding: 0.4rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .event-card-date-badge[b-rf3aeflxba] {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(15, 23, 42, 0.85);
    }


    /* 3. Allègement graphique & désactivation des transitions hover */
    .event-card[b-rf3aeflxba] {
        padding: 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
        transition: none !important;
    }

    .event-card:hover[b-rf3aeflxba] {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
        border-color: var(--border-color) !important;
    }


    /* Event Card Thumb Zone Actions on Mobile */
    .event-card-actions[b-rf3aeflxba] {
        display: grid;
        grid-template-columns: 1fr 1fr 1.2fr;
        gap: 0.5rem;
        padding-top: 0.75rem;
    }

    .event-card-actions-compact[b-rf3aeflxba] {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }


    .btn-accept[b-rf3aeflxba] {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: #ffffff;
        border: 1px solid rgba(16, 185, 129, 0.4);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }

    .btn-maybe[b-rf3aeflxba] {
        background: rgba(245, 158, 11, 0.18);
        color: #fbbf24;
        border: 1px solid rgba(245, 158, 11, 0.5);
    }

    .btn-maybe:hover[b-rf3aeflxba] {
        background: rgba(245, 158, 11, 0.3);
        color: #fde68a;
    }

    .btn-reject[b-rf3aeflxba] {
        background: rgba(239, 68, 68, 0.18);
        color: #fca5a5;
        border: 1px solid rgba(239, 68, 68, 0.5);
    }

    .btn-reject:hover[b-rf3aeflxba] {
        background: rgba(239, 68, 68, 0.3);
        color: #fee2e2;
    }


    .action-spinner[b-rf3aeflxba] {
        min-height: var(--touch-target-large);
        display: flex;
        align-items: center;
        justify-content: center;
        grid-column: 1 / -1;
    }

}

/* /Components/Shared/EventFilterToolbar.razor.rz.scp.css */
/* EventFilterToolbar Scoped Styles */

.event-filter-toolbar-container[b-ordniicpxw] {
    position: relative;
    z-index: 50;
    margin-bottom: 1.25rem;
}

.event-filter-toolbar-container.has-open-popover[b-ordniicpxw] {
    z-index: 120;
}

/* ==========================================================================
   Desktop Toolbar (<= 52px on > 768px)
   ========================================================================== */
.desktop-toolbar[b-ordniicpxw] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 48px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 0.35rem 0.65rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.mobile-toolbar[b-ordniicpxw] {
    display: none;
}

/* Search Box */
.search-input-box[b-ordniicpxw] {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 380px;
    display: flex;
    align-items: center;
}

.search-icon[b-ordniicpxw] {
    position: absolute;
    left: 10px;
    stroke: #94a3b8;
    pointer-events: none;
}

.toolbar-search-input[b-ordniicpxw] {
    height: 36px;
    width: 100%;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding-left: 32px;
    padding-right: 28px;
    color: #f8fafc;
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.toolbar-search-input:focus[b-ordniicpxw] {
    outline: none !important;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: #1e293b;
}

.toolbar-search-input[b-ordniicpxw]::placeholder {
    color: #64748b;
}

.btn-clear-search[b-ordniicpxw] {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s ease;
}

.btn-clear-search:hover[b-ordniicpxw] {
    color: #ffffff;
}

/* Segmented Control */
.segmented-control[b-ordniicpxw] {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    padding: 3px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 2px;
}

.segment-btn[b-ordniicpxw] {
    height: 32px;
    padding: 0 0.75rem;
    font-size: 0.825rem;
    font-weight: 500;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.segment-btn:hover[b-ordniicpxw] {
    color: #f8fafc;
}

.segment-btn.active[b-ordniicpxw] {
    background: #334155;
    color: #f8fafc;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.segment-btn.active.status-accepted[b-ordniicpxw] {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}

.segment-btn.active.status-maybe[b-ordniicpxw] {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

.segment-count[b-ordniicpxw] {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Dropdown Buttons */
.dropdown-wrapper[b-ordniicpxw] {
    position: relative;
}

.dropdown-wrapper.open[b-ordniicpxw] {
    z-index: 125;
}

.toolbar-dropdown-btn[b-ordniicpxw] {
    height: 36px;
    padding: 0 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.toolbar-dropdown-btn:hover[b-ordniicpxw] {
    border-color: #818cf8;
    color: #ffffff;
}

.toolbar-dropdown-btn.has-selection[b-ordniicpxw] {
    background: rgba(99, 102, 241, 0.15);
    border-color: #818cf8;
    color: #f8fafc;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.dropdown-chevron[b-ordniicpxw] {
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

/* Popover Panels */
.popover-backdrop[b-ordniicpxw] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 130;
    background: transparent;
    cursor: default;
}

.popover-panel[b-ordniicpxw] {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 135;
    min-width: 280px;
    max-width: 380px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
    padding: 0.85rem;
    animation: fadeInDown-b-ordniicpxw 0.15s ease-out;
}

@keyframes fadeInDown-b-ordniicpxw {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popover-header[b-ordniicpxw] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.popover-title[b-ordniicpxw] {
    font-size: 0.825rem;
    font-weight: 600;
    color: #cbd5e1;
}

.popover-quick-actions[b-ordniicpxw] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-link-action[b-ordniicpxw] {
    background: transparent;
    border: none;
    color: #818cf8;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btn-link-action:hover[b-ordniicpxw] {
    color: #a5b4fc;
}

.action-divider[b-ordniicpxw] {
    color: #64748b;
    font-size: 0.75rem;
}

.popover-items-grid[b-ordniicpxw] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.popover-checkbox-item[b-ordniicpxw] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    color: #cbd5e1;
    border: 1px solid transparent;
    user-select: none;
    transition: all 0.15s ease;
}

.popover-checkbox-item:hover[b-ordniicpxw] {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.popover-checkbox-item.selected[b-ordniicpxw] {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    color: #f8fafc;
    font-weight: 500;
}

.popover-checkbox-item input[type="checkbox"][b-ordniicpxw] {
    accent-color: var(--accent-primary);
    cursor: pointer;
    width: 15px;
    height: 15px;
}

/* Category Micro-Dot */
.category-micro-dot[b-ordniicpxw] {
    width: 6px;
    height: 6px;
    min-width: 6px;
    min-height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Free Toggle Button */
.toolbar-free-btn[b-ordniicpxw] {
    height: 36px;
    padding: 0 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.toolbar-free-btn:hover[b-ordniicpxw] {
    border-color: rgba(16, 185, 129, 0.5);
    color: #f8fafc;
}

.toolbar-free-btn.active[b-ordniicpxw] {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.55);
    color: #6ee7b7;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
    font-weight: 700;
}

/* ==========================================================================
   Active Filters Ribbon
   ========================================================================== */
.active-filters-ribbon[b-ordniicpxw] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding: 0.35rem 0.65rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}

.ribbon-label[b-ordniicpxw] {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
}

.filter-chip[b-ordniicpxw] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 9999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.775rem;
    color: #e2e8f0;
    font-weight: 500;
}

.chip-remove-btn[b-ordniicpxw] {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0 2px;
    line-height: 1;
    transition: color 0.15s ease;
}

.chip-remove-btn:hover[b-ordniicpxw] {
    color: #ffffff;
}

.btn-clear-all[b-ordniicpxw] {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 9999px;
    padding: 0.2rem 0.6rem;
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s ease;
}

.btn-clear-all:hover[b-ordniicpxw] {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ffffff;
}

/* Base states for desktop labels (> 1280px) */
.segment-label-compact[b-ordniicpxw] {
    display: none;
}

.dropdown-label-compact[b-ordniicpxw] {
    display: none;
}

/* ==========================================================================
   Responsive Laptop Adaptations (769px - 1280px)
   ========================================================================== */
@media (max-width: 1280px) {
    .search-input-box[b-ordniicpxw] {
        min-width: 140px;
    }

    .segment-label-full[b-ordniicpxw] {
        display: none !important;
    }

    .segment-label-compact[b-ordniicpxw] {
        display: inline !important;
    }

    .dropdown-label-full[b-ordniicpxw] {
        display: none !important;
    }

    .dropdown-label-compact[b-ordniicpxw] {
        display: inline !important;
    }
}

/* Anti-overflow flex-wrap under 1024px */
@media (max-width: 1024px) {
    .desktop-toolbar[b-ordniicpxw] {
        min-height: 48px;
        height: auto;
        flex-wrap: wrap;
        padding: 0.45rem 0.65rem;
    }
}

/* ==========================================================================
   Mobile Bottom Sheet & Media Queries (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .event-filter-toolbar-container[b-ordniicpxw] {
        scroll-margin-top: calc(var(--mobile-topbar-height, 58px) + 0.5rem);
        margin-bottom: 0.75rem;
    }

    .desktop-toolbar[b-ordniicpxw] {
        display: none !important;
    }

    .mobile-toolbar[b-ordniicpxw] {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        height: 44px;
        background: #1e293b;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-lg);
        padding: 0.25rem 0.5rem;
    }

    .mobile-search-box[b-ordniicpxw] {
        position: relative;
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .mobile-filter-trigger-btn[b-ordniicpxw] {
        height: 36px;
        min-height: 36px;
        padding: 0 0.85rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: var(--radius-md);
        color: #f8fafc;
        font-size: 0.85rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.35rem;
        flex-shrink: 0;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-filter-trigger-btn.has-filters[b-ordniicpxw] {
        background: rgba(99, 102, 241, 0.25);
        border-color: #818cf8;
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    }

    .filter-count-badge[b-ordniicpxw] {
        background: #6366f1;
        color: #ffffff;
        border-radius: 9999px;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 0.1rem 0.4rem;
        line-height: 1;
    }

    /* Bottom Sheet */
    .bottom-sheet-backdrop[b-ordniicpxw] {
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .mobile-bottom-sheet[b-ordniicpxw] {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 201;
        background: #1e293b;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        animation: slideUpSheet-b-ordniicpxw 0.25s ease-out;
    }

    @keyframes slideUpSheet-b-ordniicpxw {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .bottom-sheet-handle-bar[b-ordniicpxw] {
        display: flex;
        justify-content: center;
        padding: 0.6rem 0 0.25rem 0;
    }

    .sheet-drag-handle[b-ordniicpxw] {
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 9999px;
    }

    .bottom-sheet-header[b-ordniicpxw] {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1.25rem 0.75rem 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .sheet-header-title[b-ordniicpxw] {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .sheet-header-title h3[b-ordniicpxw] {
        font-size: 1.1rem;
        font-weight: 700;
        color: #f8fafc;
        margin: 0;
    }

    .sheet-close-btn[b-ordniicpxw] {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        border: none;
        border-radius: 50%;
        color: #cbd5e1;
        font-size: 1.1rem;
        cursor: pointer;
    }

    .bottom-sheet-body[b-ordniicpxw] {
        padding: 1rem 1.25rem;
        overflow-y: auto;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        padding-bottom: 1.5rem;
    }

    .sheet-section[b-ordniicpxw] {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .sheet-section-title[b-ordniicpxw] {
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #94a3b8;
    }

    .sheet-section-header[b-ordniicpxw] {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sheet-segmented-control[b-ordniicpxw] {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
        background: rgba(15, 23, 42, 0.6);
        padding: 4px;
        border-radius: var(--radius-md);
    }

    .sheet-segment-btn[b-ordniicpxw] {
        min-height: 44px;
        font-size: 0.825rem;
        font-weight: 600;
        color: #94a3b8;
        background: transparent;
        border: 1px solid transparent;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }

    .sheet-segment-btn.active[b-ordniicpxw] {
        background: #334155;
        color: #f8fafc;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .sheet-segment-btn.active.status-accepted[b-ordniicpxw] {
        background: rgba(16, 185, 129, 0.2);
        color: #34d399;
        border-color: rgba(16, 185, 129, 0.4);
    }

    .sheet-segment-btn.active.status-maybe[b-ordniicpxw] {
        background: rgba(245, 158, 11, 0.2);
        color: #fbbf24;
        border-color: rgba(245, 158, 11, 0.4);
    }

    .sheet-toggle-card[b-ordniicpxw] {
        min-height: 48px;
        padding: 0.75rem 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
        cursor: pointer;
        color: #f8fafc;
    }

    .sheet-toggle-card.active[b-ordniicpxw] {
        background: rgba(16, 185, 129, 0.15);
        border-color: rgba(16, 185, 129, 0.4);
    }

    .toggle-card-label[b-ordniicpxw] {
        font-size: 0.95rem;
        font-weight: 600;
    }

    .toggle-switch-indicator[b-ordniicpxw] {
        width: 44px;
        height: 24px;
        background: #334155;
        border-radius: 9999px;
        position: relative;
        transition: background 0.2s ease;
    }

    .toggle-switch-indicator[b-ordniicpxw]::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
        background: #ffffff;
        border-radius: 50%;
        transition: transform 0.2s ease;
    }

    .toggle-switch-indicator.on[b-ordniicpxw] {
        background: #10b981;
    }

    .toggle-switch-indicator.on[b-ordniicpxw]::after {
        transform: translateX(20px);
    }

    .sheet-chips-grid[b-ordniicpxw] {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sheet-touch-chip[b-ordniicpxw] {
        min-height: 44px;
        padding: 0.5rem 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.9rem;
        font-weight: 600;
        color: #cbd5e1;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius-md);
        cursor: pointer;
    }

    .sheet-touch-chip.active[b-ordniicpxw] {
        background: rgba(99, 102, 241, 0.2);
        border-color: #818cf8;
        color: #ffffff;
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    }

    .bottom-sheet-footer[b-ordniicpxw] {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 0.75rem;
        padding: 0.85rem 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: #0f172a;
        padding-bottom: calc(0.85rem + var(--safe-area-bottom));
    }

    .btn-sheet-reset[b-ordniicpxw] {
        min-height: 48px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: var(--radius-md);
        color: #cbd5e1;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
    }

    .btn-sheet-apply[b-ordniicpxw] {
        min-height: 48px;
        background: linear-gradient(135deg, #6366f1, #4f46e5);
        border: none;
        border-radius: var(--radius-md);
        color: #ffffff;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    }
}
/* /Components/Shared/HorizontalEventRail.razor.rz.scp.css */
/* Scoped styles for HorizontalEventRail - extracted verbatim from wwwroot/app.css. */

/* US-18 : Horizontal Event Rail (Long-Term Events & Exhibitions) */
.rail-container[b-87di7s7yco] {
    margin-bottom: 2rem;
    padding: 1.15rem 1.25rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg, 16px);
}

.rail-header[b-87di7s7yco] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    user-select: none;
    gap: 1rem;
}

.rail-header-title-group[b-87di7s7yco] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rail-title[b-87di7s7yco] {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f8fafc;
    margin: 0;
}

.rail-count[b-87di7s7yco] {
    font-size: 0.825rem;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.12);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full, 9999px);
    font-weight: 500;
}

/* Contrôles du Header : Déport propre des chevrons */
.rail-header-controls[b-87di7s7yco] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rail-nav-group[b-87di7s7yco] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 2px;
    border-radius: var(--radius-md, 8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rail-nav-btn[b-87di7s7yco] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm, 6px);
    background: transparent;
    color: var(--text-secondary, #94a3b8);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rail-nav-btn:hover[b-87di7s7yco] {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.rail-nav-btn:active[b-87di7s7yco] {
    transform: scale(0.92);
}

.rail-toggle-chevron[b-87di7s7yco] {
    font-size: 0.85rem;
    color: var(--accent-info, #06b6d4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.rail-container.collapsed .rail-header[b-87di7s7yco] {
    margin-bottom: 0;
}

/* Zone de Défilement Horizontal */
.rail-wrapper[b-87di7s7yco] {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.rail-scroll-content[b-87di7s7yco] {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding: 0.25rem 0.25rem 0.75rem 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
    width: 100%;
}

.rail-scroll-content[b-87di7s7yco]::-webkit-scrollbar {
    height: 6px;
}

.rail-scroll-content[b-87di7s7yco]::-webkit-scrollbar-track {
    background: transparent;
}

.rail-scroll-content[b-87di7s7yco]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
}

.rail-scroll-content[b-87di7s7yco]::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.rail-card-wrapper[b-87di7s7yco] {
    display: flex;
    flex-direction: column;
    flex: 0 0 360px;
    width: 360px;
    max-width: 360px;
    scroll-snap-align: start;
}

/* ::deep is required: .event-card belongs to the child <EventCard> component,
   which does not carry this component's CSS isolation scope attribute. */
.rail-card-wrapper[b-87di7s7yco]  .event-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    /* ::deep required: .event-card belongs to child EventCard component, */
    /* which does not carry this component CSS isolation scope attribute. */
    .rail-card-wrapper[b-87di7s7yco]  .event-card {
        width: 100%;
        min-height: auto;
    }

}

/* /Components/Shared/NotificationPopover.razor.rz.scp.css */
/* Scoped styles for NotificationPopover - extracted verbatim from wwwroot/app.css. */

/* Bell Button & Container */
.notification-popover-container[b-jstnk30ule] {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-bell-btn[b-jstnk30ule] {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-bell-btn:hover[b-jstnk30ule],
.notification-bell-btn.active[b-jstnk30ule] {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-glow);
}

.bell-badge[b-jstnk30ule] {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--accent-danger), #f43f5e);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 9999px;
    padding: 0 4px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    border: 2px solid var(--bg-primary);
}

/* Popover Backdrop */
.popover-backdrop[b-jstnk30ule] {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 150;
}

/* Popover Panel */
.notification-popover-panel[b-jstnk30ule] {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 390px;
    max-width: calc(100vw - 2rem);
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 160;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: popoverFadeIn-b-jstnk30ule 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverFadeIn-b-jstnk30ule {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Popover Header */
/* .popover-header est partagé avec EventFilterToolbar : il reste dans app.css.
   .popover-backdrop ci-dessus peut en revanche rester scopé : les deux .popover-backdrop
   d'EventFilterToolbar vivent dans .desktop-toolbar, masqué par `display: none !important`
   sous 768px (EventFilterToolbar.razor.css), et cette feuille déclare déjà sa propre règle
   de base. L'ancien override mobile global ne les concernait donc pas visuellement. */

.popover-header-title[b-jstnk30ule] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popover-title-text[b-jstnk30ule] {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.popover-badge-unread[b-jstnk30ule] {
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
}

.btn-popover-mark-all[b-jstnk30ule] {
    background: none;
    border: none;
    color: var(--accent-info);
    font-size: 0.775rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.btn-popover-mark-all:hover[b-jstnk30ule] {
    color: #ffffff;
    background: rgba(6, 182, 212, 0.15);
}

/* Popover Body */
.popover-body[b-jstnk30ule] {
    max-height: min(420px, 60vh);
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.popover-loading[b-jstnk30ule] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.popover-empty-state[b-jstnk30ule] {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.popover-empty-icon[b-jstnk30ule] {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.popover-empty-title[b-jstnk30ule] {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.popover-empty-desc[b-jstnk30ule] {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Popover Notification Cards */
.popover-items-list[b-jstnk30ule] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.popover-item[b-jstnk30ule] {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.popover-item.unread[b-jstnk30ule] {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    border-left: 3px solid var(--accent-primary);
}

.popover-item.read[b-jstnk30ule] {
    opacity: 0.75;
}

.popover-item:hover[b-jstnk30ule] {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

.popover-item-header[b-jstnk30ule] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.popover-type-badge[b-jstnk30ule] {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.popover-type-badge.type-eventupdated[b-jstnk30ule] {
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
}

.popover-type-badge.type-eventcancelled[b-jstnk30ule] {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.popover-type-badge.type-scrapingerror[b-jstnk30ule] {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

.popover-item-time[b-jstnk30ule] {
    font-size: 0.725rem;
    color: var(--text-muted);
}

.popover-item-title[b-jstnk30ule] {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.popover-item-msg[b-jstnk30ule] {
    font-size: 0.785rem;
    color: var(--text-secondary);
    line-height: 1.4;
    word-break: break-word;
}

.popover-item-actions[b-jstnk30ule] {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

.btn-popover-mark-unit[b-jstnk30ule] {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.btn-popover-mark-unit:hover[b-jstnk30ule] {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.2);
}

/* Popover Footer */
.popover-footer[b-jstnk30ule] {
    padding: 0.65rem 1rem;
    border-top: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.4);
    text-align: center;
}

.popover-history-link[b-jstnk30ule] {
    font-size: 0.825rem;
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.15s ease;
}

.popover-history-link:hover[b-jstnk30ule] {
    color: #c7d2fe;
    text-decoration: underline;
}

@media (max-width: 768px) {
    /* Popover to Bottom Sheet on Mobile */
    .popover-backdrop[b-jstnk30ule] {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1050;
    }

    .notification-popover-panel[b-jstnk30ule] {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 80vh;
        border-bottom: none;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
        z-index: 1060;
        animation: slideUpBottom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
}
/* /Components/Shared/TemporalRibbon.razor.rz.scp.css */
/* Scoped styles for TemporalRibbon.razor (US-48) */

/* Accessibility utility */
.sr-only[b-4y81w4ucry] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.temporal-ribbon-container[b-4y81w4ucry] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    outline: none;
}

/* ==========================================================================
   1. Timeline Control Bar Unifiée (US-48 Polished)
   ========================================================================== */

.timeline-control-bar[b-4y81w4ucry] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.65rem;
    padding: 0.45rem 0.75rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: visible;
}

.timeline-horizon-group[b-4y81w4ucry] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.horizon-chip[b-4y81w4ucry] {
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.horizon-chip:hover[b-4y81w4ucry] {
    color: var(--text-primary);
    background: rgba(51, 65, 85, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.horizon-chip.active[b-4y81w4ucry] {
    color: #ffffff;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.horizon-chip.chip-conflicts.has-conflicts[b-4y81w4ucry] {
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.horizon-chip.chip-conflicts.active[b-4y81w4ucry] {
    background: #d97706;
    border-color: #f59e0b;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.timeline-divider[b-4y81w4ucry] {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.timeline-month-chips[b-4y81w4ucry] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    overflow: visible;
    flex: 1;
    min-width: 0;
}

.timeline-month-chips[b-4y81w4ucry]::-webkit-scrollbar {
    display: none;
}

.month-pill[b-4y81w4ucry] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.month-pill:hover:not(.disabled)[b-4y81w4ucry] {
    color: var(--text-primary);
    background: rgba(51, 65, 85, 0.7);
    border-color: rgba(255, 255, 255, 0.25);
}

.month-pill.active[b-4y81w4ucry] {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--accent-primary);
}

.month-pill.disabled[b-4y81w4ucry] {
    opacity: 0.35;
    cursor: not-allowed;
}

.month-pill.month-has-conflict .conflict-dot[b-4y81w4ucry] {
    color: #fbbf24;
    font-size: 0.75rem;
}

/* Month Overflow Dropdown */
.month-overflow-wrapper[b-4y81w4ucry] {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.month-overflow-toggle[b-4y81w4ucry] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dropdown-arrow[b-4y81w4ucry] {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-left: 0.15rem;
    display: inline-block;
}

.month-overflow-backdrop[b-4y81w4ucry] {
    position: fixed;
    inset: 0;
    z-index: 140;
    background: transparent;
}

.month-overflow-popover[b-4y81w4ucry] {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 175px;
    z-index: 145;
    padding: 0.5rem;
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.month-overflow-header[b-4y81w4ucry] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem 0.4rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.month-overflow-list[b-4y81w4ucry] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 220px;
    overflow-y: auto;
}

.month-overflow-item[b-4y81w4ucry] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    width: 100%;
}

.month-overflow-item:hover:not(.disabled)[b-4y81w4ucry] {
    color: var(--text-primary);
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

.month-overflow-item.active[b-4y81w4ucry] {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--accent-primary);
}

.month-overflow-item.disabled[b-4y81w4ucry] {
    opacity: 0.4;
    cursor: not-allowed;
}

.month-overflow-item .overflow-item-name[b-4y81w4ucry] {
    flex: 1;
}

.month-overflow-item .overflow-item-count[b-4y81w4ucry] {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.timeline-actions-group[b-4y81w4ucry] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.btn-past-days-toggle[b-4y81w4ucry] {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-past-days-toggle:hover[b-4y81w4ucry] {
    color: var(--text-primary);
    background: rgba(51, 65, 85, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-past-days-toggle.active[b-4y81w4ucry] {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

/* Bouton de saut direct de date (Zero Popover) */
.direct-date-picker-wrapper[b-4y81w4ucry] {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.direct-date-input-hidden[b-4y81w4ucry] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    border: 0;
    padding: 0;
    margin: 0;
}

.btn-direct-date-jump[b-4y81w4ucry] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(30, 41, 59, 0.75);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    padding: 0;
}

.btn-direct-date-jump:hover[b-4y81w4ucry] {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-direct-date-jump:active[b-4y81w4ucry] {
    transform: scale(0.95);
}

.btn-direct-date-jump .date-icon[b-4y81w4ucry] {
    font-size: 0.95rem;
    line-height: 1;
}

/* Animation Pulse de confirmation visuelle à l'arrivée sur la journée cible */
@keyframes dayTargetPulse-b-4y81w4ucry {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.8);
        border-color: var(--accent-primary);
    }
    50% {
        box-shadow: 0 0 20px 4px rgba(99, 102, 241, 0.5);
        border-color: #818cf8;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
        border-color: var(--border-color);
    }
}

.day-column.day-target-highlight[b-4y81w4ucry] {
    animation: dayTargetPulse-b-4y81w4ucry 1.6s ease-out;
    z-index: 20;
}

@media (max-width: 900px) {
    .btn-direct-date-jump[b-4y81w4ucry] {
        padding: 0.3rem 0.5rem;
    }
    .btn-direct-date-jump .date-label[b-4y81w4ucry] {
        display: none;
    }
}

/* ==========================================================================
   2. Sub-caption & Indicateurs du Rail
   ========================================================================== */

.rail-summary-info[b-4y81w4ucry] {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.25rem;
}

.rail-summary-info strong[b-4y81w4ucry] {
    color: var(--text-primary);
}

.badge-filter-active[b-4y81w4ucry] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.badge-past-active[b-4y81w4ucry] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.rail-nav-btn[b-4y81w4ucry] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(30, 41, 59, 0.75);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rail-nav-btn:hover[b-4y81w4ucry] {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* ==========================================================================
   3. Viewport Unique & Architecture Bi-Étage (Dual-Deck) (CA-48.3)
   ========================================================================== */

.temporal-rail-viewport[b-4y81w4ucry] {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
    padding-bottom: 0.75rem;
    outline: none;
}

.temporal-rail-viewport[b-4y81w4ucry]::-webkit-scrollbar {
    height: 6px;
}

.temporal-rail-viewport[b-4y81w4ucry]::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 4px;
}

.temporal-rail-scroll-content[b-4y81w4ucry] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: max-content;
    width: fit-content;
}

/* --------------------------------------------------------------------------
   Grille des Colonnes Quotidiennes (Alignement strict & Flux unifié)
   -------------------------------------------------------------------------- */

.daily-columns-grid[b-4y81w4ucry] {
    display: grid;
    column-gap: 0.85rem;
    align-items: start;
}

.day-empty-hint[b-4y81w4ucry] {
    padding: 1rem 0.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.80rem;
    font-style: italic;
}

/* Colonne de Journée Desktop */
.day-column[b-4y81w4ucry] {
    flex: 0 0 280px;
    width: 280px;
    min-width: 280px;
    box-sizing: border-box;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: visible;
    transition: all 0.2s ease;
}

.day-column:hover[b-4y81w4ucry] {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(30, 41, 59, 0.65);
}

.day-column.day-has-conflict[b-4y81w4ucry] {
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-top: 1px solid rgba(245, 158, 11, 0.85);
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.08);
}

.day-column.day-has-conflict:hover[b-4y81w4ucry] {
    border-color: rgba(245, 158, 11, 0.55);
}

.day-column.day-resolved[b-4y81w4ucry] {
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.day-column.day-today[b-4y81w4ucry] {
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-top: 1px solid var(--accent-primary);
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.22);
}

.day-column.day-past[b-4y81w4ucry] {
    background: rgba(20, 30, 45, 0.4);
}

.day-column.day-past .day-title[b-4y81w4ucry] {
    color: var(--text-muted);
}

.day-column.day-past .micro-card[b-4y81w4ucry] {
    opacity: 0.85;
    background: #182232;
}

.day-column.day-past:hover .day-title[b-4y81w4ucry] {
    color: var(--text-primary);
}

.day-column.day-past:hover .micro-card[b-4y81w4ucry] {
    opacity: 1;
}

/* En-tête de colonne de journée (hauteur unifiée stricte) */
.day-header[b-4y81w4ucry] {
    padding: 0 0.65rem;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.day-header.day-header-today[b-4y81w4ucry] {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-bottom-color: rgba(99, 102, 241, 0.3);
}

.day-header.day-header-empty[b-4y81w4ucry] {
    cursor: default;
}

/* Badge Aujourd'hui */
.today-badge[b-4y81w4ucry] {
    font-size: 0.74rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.4);
    white-space: nowrap;
}

/* Carte Journée Libre (Zen State) */
.day-today-empty-card[b-4y81w4ucry] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.25rem 0.75rem;
    margin: 0.25rem 0;
    background: rgba(15, 23, 42, 0.35);
    border: 1px dashed rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.day-today-empty-card:hover[b-4y81w4ucry] {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-1px);
}

.day-today-empty-icon[b-4y81w4ucry] {
    font-size: 1.25rem;
    opacity: 0.85;
}

.day-today-empty-title[b-4y81w4ucry] {
    font-size: 0.88rem;
    font-weight: 600;
    color: #c7d2fe;
}

.day-today-empty-subtitle[b-4y81w4ucry] {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.day-header:hover[b-4y81w4ucry] {
    background: rgba(51, 65, 85, 0.5);
}

.day-header-content[b-4y81w4ucry] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.35rem;
}

.day-title[b-4y81w4ucry] {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-header-conflict[b-4y81w4ucry] {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-bottom-color: rgba(245, 158, 11, 0.25);
}

.day-header-conflict .day-title[b-4y81w4ucry] {
    color: var(--text-primary);
}

.conflict-badge[b-4y81w4ucry] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 0.12rem 0.5rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.conflict-badge:hover[b-4y81w4ucry] {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.6);
}

.day-header-resolved[b-4y81w4ucry] {
    background: rgba(16, 185, 129, 0.12);
    border-bottom-color: rgba(16, 185, 129, 0.3);
}

.day-header-resolved .day-title[b-4y81w4ucry] {
    color: #34d399;
}

.resolved-badge[b-4y81w4ucry] {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent-success);
    background: rgba(16, 185, 129, 0.15);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.past-badge[b-4y81w4ucry] {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0.08rem 0.35rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* Pont Temporel Compact (> 3 jours calmes) */
.gap-bridge-column[b-4y81w4ucry] {
    flex: 0 0 70px;
    width: 70px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.3);
    user-select: none;
}

.gap-bridge-inner[b-4y81w4ucry] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.25rem;
    text-align: center;
}

.gap-icon[b-4y81w4ucry] {
    font-size: 1rem;
    opacity: 0.7;
}

.gap-label[b-4y81w4ucry] {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Mini-séparateur discret (1 à 3 jours calmes) */
.gap-mini-separator[b-4y81w4ucry] {
    flex: 0 0 16px;
    width: 16px;
    min-width: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.45;
    user-select: none;
    transition: opacity 0.2s ease;
}

.gap-mini-separator:hover[b-4y81w4ucry] {
    opacity: 0.9;
}

.mini-separator-line[b-4y81w4ucry] {
    flex: 1;
    width: 1px;
    border-left: 1px dashed rgba(255, 255, 255, 0.25);
}

.mini-separator-dot[b-4y81w4ucry] {
    font-size: 0.9rem;
    line-height: 1;
    color: var(--text-muted);
    margin: 0.25rem 0;
}

/* ==========================================================================
   3b. Bannières Multi-Jours Intégrées & Connectées Horizontalement (CA-48.8)
   ========================================================================== */

.multiday-row-card[b-4y81w4ucry] {
    position: relative;
    display: flex;
    align-items: center;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0 0.5rem;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
    user-select: none;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.multiday-row-card:not(.connected-left)[b-4y81w4ucry] {
    z-index: 15;
}

.multiday-row-card.multiday-continuation-spacer[b-4y81w4ucry],
.multiday-row-card.connected-left[b-4y81w4ucry],
.multiday-row-card.multiday-empty-lane[b-4y81w4ucry] {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: -1 !important;
}

.multiday-row-card.span-accepted[b-4y81w4ucry] {
    background-color: #0d2823 !important;
    border-color: rgba(16, 185, 129, 0.55);
    border-left: 3px solid var(--accent-success);
    color: #6ee7b7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 1 !important;
}

.multiday-row-card.span-accepted:hover[b-4y81w4ucry] {
    background-color: #123831 !important;
    border-color: rgba(16, 185, 129, 0.8);
}

.multiday-row-card.span-maybe[b-4y81w4ucry] {
    background-color: #171d36 !important;
    border-color: rgba(99, 102, 241, 0.45);
    border-left: 3px solid rgba(245, 158, 11, 0.85);
    color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 1 !important;
}

.multiday-row-card.span-maybe:hover[b-4y81w4ucry] {
    background-color: #1f2747 !important;
    border-color: rgba(99, 102, 241, 0.7);
    border-left-color: #fbbf24;
}

.multiday-row-inner[b-4y81w4ucry] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.multiday-icon[b-4y81w4ucry] {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.multiday-time[b-4y81w4ucry] {
    font-size: 0.78rem;
    font-weight: 700;
    color: #a5b4fc;
    white-space: nowrap;
    flex-shrink: 0;
}

.multiday-title[b-4y81w4ucry] {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.multiday-venue[b-4y81w4ucry] {
    font-size: 0.76rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
}

.multiday-row-card:hover .micro-actions[b-4y81w4ucry],
.multiday-row-card:focus-within .micro-actions[b-4y81w4ucry] {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

/* ==========================================================================
   4. Micro-Fiches d'Arbitrage (CA-48.5)
   ========================================================================== */

.micro-cards-list[b-4y81w4ucry] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.5rem;
    flex: 1;
}

.micro-card[b-4y81w4ucry] {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    max-height: none;
    padding: 0.45rem 0.6rem;
    margin-top: 0;
    margin-bottom: 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
}

.micro-card:hover[b-4y81w4ucry] {
    background: #273549;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.micro-card.card-accepted[b-4y81w4ucry] {
    border-left: 3px solid var(--accent-success);
}

.micro-card.card-maybe[b-4y81w4ucry] {
    border-left: 3px solid rgba(245, 158, 11, 0.85);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, #1e293b 30%);
}

.micro-card.card-maybe:hover[b-4y81w4ucry] {
    border-left-color: #fbbf24;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.09) 0%, #273549 35%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 1px 0 4px rgba(245, 158, 11, 0.2);
}

.micro-card-info[b-4y81w4ucry] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

.micro-row-top[b-4y81w4ucry] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    overflow: hidden;
}

.micro-time[b-4y81w4ucry] {
    font-size: 0.82rem;
    font-weight: 700;
    color: #c7d2fe;
    white-space: nowrap;
    flex-shrink: 0;
}

.micro-badge-ticket[b-4y81w4ucry] {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-success);
    background: rgba(16, 185, 129, 0.15);
    padding: 0 0.3rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.micro-badge-multiday[b-4y81w4ucry] {
    font-size: 0.72rem;
    font-weight: 700;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.35);
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.micro-title[b-4y81w4ucry] {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.micro-venue-group[b-4y81w4ucry] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    overflow: hidden;
}

.multiday-venue-group[b-4y81w4ucry] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    overflow: hidden;
    flex-shrink: 1;
}

.micro-ext-link[b-4y81w4ucry] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    line-height: 1;
    color: #38bdf8;
    text-decoration: none;
    padding: 0.05rem 0.25rem;
    border-radius: 3px;
    background: rgba(56, 189, 248, 0.08);
    opacity: 0.85;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.micro-ext-link:hover[b-4y81w4ucry] {
    opacity: 1;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.25);
    transform: scale(1.1);
}

.micro-row-bottom[b-4y81w4ucry] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.micro-venue[b-4y81w4ucry] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.micro-price[b-4y81w4ucry] {
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
}

/* Micro-actions 1-clic : Masque dégradé en overlay au survol (Zero Space Stolen at Rest) */
.micro-actions[b-4y81w4ucry] {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0 0.5rem 0 1.5rem;
    background: linear-gradient(to right, transparent 0%, #1e293b 40%, #1e293b 100%);
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
    z-index: 2;
}

.micro-card:hover .micro-actions[b-4y81w4ucry],
.micro-card:focus-within .micro-actions[b-4y81w4ucry] {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    background: linear-gradient(to right, transparent 0%, #273549 40%, #273549 100%);
}

.btn-micro[b-4y81w4ucry] {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.80rem;
    font-weight: 700;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-muted);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-micro-accept:hover[b-4y81w4ucry] {
    background: var(--accent-success);
    color: #ffffff !important;
    border-color: var(--accent-success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    transform: scale(1.1);
}

.btn-micro-maybe:hover[b-4y81w4ucry] {
    background: var(--accent-warning);
    color: #ffffff !important;
    border-color: var(--accent-warning);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
    transform: scale(1.1);
}

.btn-micro-reject:hover[b-4y81w4ucry] {
    background: var(--accent-danger);
    color: #ffffff !important;
    border-color: var(--accent-danger);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
    transform: scale(1.1);
}

.btn-more-sorties[b-4y81w4ucry] {
    width: 100%;
    padding: 0.35rem;
    font-size: 0.80rem;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    border: 1px dashed rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-more-sorties:hover[b-4y81w4ucry] {
    background: rgba(56, 189, 248, 0.18);
}

/* Dépliage In Situ (Accordéon) & Actions d'Arbitrage (US-48) */
.expanded-day-actions[b-4y81w4ucry] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

.btn-less-sorties[b-4y81w4ucry] {
    flex: 1;
    padding: 0.35rem;
    font-size: 0.80rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.08);
    border: 1px dashed rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-less-sorties:hover[b-4y81w4ucry] {
    color: var(--text-primary);
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.4);
}

.btn-open-arbitrage-link[b-4y81w4ucry] {
    padding: 0.35rem 0.55rem;
    font-size: 0.80rem;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-open-arbitrage-link:hover[b-4y81w4ucry] {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fde68a;
}

/* Pied de colonne pour expos en cours (CA-48.8) */
.day-expos-footer[b-4y81w4ucry],
.weekend-expos-footer[b-4y81w4ucry] {
    padding: 0.35rem 0.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid var(--border-color);
}

.btn-day-expos[b-4y81w4ucry],
.btn-weekend-expos[b-4y81w4ucry] {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 0.78rem;
    font-weight: 600;
    color: #a78bfa;
    text-align: center;
    cursor: pointer;
    padding: 0.15rem 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btn-day-expos:hover[b-4y81w4ucry],
.btn-weekend-expos:hover[b-4y81w4ucry] {
    color: #c4b5fd;
}

/* ==========================================================================
   5. Atelier d'Arbitrage (Slide-Over Drawer Desktop & Bottom Sheet Mobile) (CA-48.7)
   ========================================================================== */

.arbitrage-backdrop[b-4y81w4ucry] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    animation: fadeInBackdrop-b-4y81w4ucry 0.2s ease;
}

@keyframes fadeInBackdrop-b-4y81w4ucry {
    from { opacity: 0; }
    to { opacity: 1; }
}

.arbitrage-drawer[b-4y81w4ucry] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 440px;
    max-width: 100vw;
    height: 100vh;
    background: #1e293b;
    border-left: 1px solid var(--border-color);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
    z-index: 201;
    display: flex;
    flex-direction: column;
    animation: drawerSlideIn-b-4y81w4ucry 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

@keyframes drawerSlideIn-b-4y81w4ucry {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.arbitrage-header[b-4y81w4ucry] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.5);
    flex-shrink: 0;
}

.arbitrage-title-group[b-4y81w4ucry] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.arbitrage-title[b-4y81w4ucry] {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.arbitrage-subtitle[b-4y81w4ucry] {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.btn-drawer-close[b-4y81w4ucry] {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.btn-drawer-close:hover[b-4y81w4ucry] {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.arbitrage-body[b-4y81w4ucry] {
    padding: 1.1rem 1.25rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.arbitrage-intro[b-4y81w4ucry] {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.arbitrage-cards-list[b-4y81w4ucry] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.arbitrage-card[b-4y81w4ucry] {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease;
}

.arbitrage-card.status-accepted[b-4y81w4ucry] {
    border-left: 3.5px solid var(--accent-success);
}

.arbitrage-card.status-maybe[b-4y81w4ucry] {
    border-left: 3.5px solid rgba(245, 158, 11, 0.85);
}

.arbitrage-card.card-spanning-preview[b-4y81w4ucry] {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.arbitrage-spanning-section[b-4y81w4ucry] {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.arbitrage-spanning-title[b-4y81w4ucry] {
    font-size: 0.85rem;
    font-weight: 700;
    color: #c7d2fe;
    margin: 0;
}

.arbitrage-card-top[b-4y81w4ucry] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arbitrage-badges-group[b-4y81w4ucry] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.badge-status-pill[b-4y81w4ucry] {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.badge-status-pill.badge-accepted[b-4y81w4ucry] {
    background: rgba(16, 185, 129, 0.18);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-status-pill.badge-maybe[b-4y81w4ucry] {
    background: rgba(245, 158, 11, 0.18);
    color: var(--accent-warning);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.arbitrage-time-badge[b-4y81w4ucry] {
    font-size: 0.75rem;
    font-weight: 600;
    color: #c7d2fe;
}

.badge-compat-conflict[b-4y81w4ucry] {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.badge-compat-ok[b-4y81w4ucry] {
    font-size: 0.7rem;
    font-weight: 700;
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.badge-compat-free[b-4y81w4ucry] {
    font-size: 0.7rem;
    font-weight: 700;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.15);
    border: 1px solid rgba(167, 139, 250, 0.3);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.arbitrage-card-title-row[b-4y81w4ucry] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.arbitrage-card-title[b-4y81w4ucry] {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.arbitrage-ext-link[b-4y81w4ucry] {
    font-size: 0.8rem;
    color: #38bdf8;
    text-decoration: none;
    white-space: nowrap;
}

.arbitrage-ext-link:hover[b-4y81w4ucry] {
    text-decoration: underline;
}

.arbitrage-meta-grid[b-4y81w4ucry] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.meta-multiday[b-4y81w4ucry] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.12);
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.25);
    margin-bottom: 0.2rem;
}

.badge-multiday-chip[b-4y81w4ucry] {
    font-size: 0.68rem;
    font-weight: 700;
    color: #e0e7ff;
    background: rgba(99, 102, 241, 0.3);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-left: auto;
}

.meta-address[b-4y81w4ucry] {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.meta-sources-sub[b-4y81w4ucry] {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

.arbitrage-ext-sub-link[b-4y81w4ucry] {
    color: #38bdf8;
    text-decoration: none;
    background: rgba(56, 189, 248, 0.08);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

.arbitrage-ext-sub-link:hover[b-4y81w4ucry] {
    text-decoration: underline;
    background: rgba(56, 189, 248, 0.16);
}

.arbitrage-desc-box[b-4y81w4ucry] {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    background: rgba(15, 23, 42, 0.4);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.arbitrage-card-actions[b-4y81w4ucry] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.btn-action-details[b-4y81w4ucry] {
    padding: 0.45rem 0.5rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: rgba(30, 41, 59, 0.7);
    color: #cbd5e1;
    border: 1px solid var(--border-color);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-action-details:hover[b-4y81w4ucry] {
    background: rgba(51, 65, 85, 0.85);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-action-accept[b-4y81w4ucry] {
    background: rgba(16, 185, 129, 0.18);
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-weight: 600;
}

.btn-action-accept:hover[b-4y81w4ucry] {
    background: var(--accent-success);
    color: #ffffff;
}

.btn-action-maybe[b-4y81w4ucry] {
    background: rgba(245, 158, 11, 0.18);
    color: var(--accent-warning);
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-weight: 600;
}

.btn-action-maybe:hover[b-4y81w4ucry] {
    background: var(--accent-warning);
    color: #ffffff;
}

.btn-action-reject[b-4y81w4ucry] {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.35);
    font-weight: 600;
}

.btn-action-reject:hover[b-4y81w4ucry] {
    background: var(--accent-danger);
    color: #ffffff;
}

.arbitrage-decision-group[b-4y81w4ucry] {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
}

.btn-decision[b-4y81w4ucry] {
    padding: 0.5rem 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.btn-decision-yes[b-4y81w4ucry] {
    color: var(--accent-success);
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.btn-decision-yes.active[b-4y81w4ucry] {
    background: var(--accent-success);
    color: #ffffff;
}

.btn-decision-maybe[b-4y81w4ucry] {
    color: var(--accent-warning);
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.btn-decision-maybe.active[b-4y81w4ucry] {
    background: var(--accent-warning);
    color: #ffffff;
}

.btn-decision-no[b-4y81w4ucry] {
    color: var(--accent-danger);
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.btn-decision-no:hover[b-4y81w4ucry] {
    background: var(--accent-danger);
    color: #ffffff;
}

.arbitrage-footer[b-4y81w4ucry] {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ==========================================================================
   6. Dialogue Expositions Week-end (CA-48.8)
   ========================================================================== */

.weekend-expos-dialog[b-4y81w4ucry] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    max-width: 90vw;
    max-height: 80vh;
    z-index: 205;
    display: flex;
    flex-direction: column;
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    padding: 0;
    overflow: hidden;
    animation: fadeInDialog-b-4y81w4ucry 0.2s ease;
}

@keyframes fadeInDialog-b-4y81w4ucry {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.dialog-header[b-4y81w4ucry] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid var(--border-color);
}

.dialog-title-group[b-4y81w4ucry] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
}

.dialog-title[b-4y81w4ucry] {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.dialog-subtitle[b-4y81w4ucry] {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.btn-icon-close[b-4y81w4ucry] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    margin-left: 0.75rem;
    flex-shrink: 0;
    user-select: none;
}

.btn-icon-close:hover[b-4y81w4ucry] {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    transform: scale(1.06);
}

.btn-icon-close:active[b-4y81w4ucry] {
    transform: scale(0.94);
}

.dialog-body[b-4y81w4ucry] {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.expos-compact-list[b-4y81w4ucry] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expo-compact-item[b-4y81w4ucry] {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.expo-item-title-row[b-4y81w4ucry] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.expo-item-title[b-4y81w4ucry] {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.expo-link[b-4y81w4ucry] {
    font-size: 0.85rem;
    color: #38bdf8;
    text-decoration: none;
}

.expo-item-meta[b-4y81w4ucry] {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.dialog-footer[b-4y81w4ucry] {
    padding: 0.75rem 1.25rem;
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   6b. Modale Fiche Événement Complète (Quick View)
   ========================================================================== */

.quick-view-backdrop[b-4y81w4ucry] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 210;
    animation: fadeInBackdrop-b-4y81w4ucry 0.2s ease;
}

.quick-view-dialog[b-4y81w4ucry] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 540px;
    max-width: 92vw;
    max-height: 85vh;
    z-index: 215;
    display: flex;
    flex-direction: column;
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75);
    padding: 0;
    overflow: hidden;
    animation: fadeInDialog-b-4y81w4ucry 0.2s ease;
    outline: none;
}

.qv-meta-grid[b-4y81w4ucry] {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.85rem;
}

.qv-meta-item[b-4y81w4ucry] {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    line-height: 1.4;
}

.qv-meta-label[b-4y81w4ucry] {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 75px;
    flex-shrink: 0;
}

.qv-address[b-4y81w4ucry] {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.qv-venue-ext-link[b-4y81w4ucry] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    line-height: 1;
    color: #38bdf8;
    text-decoration: none;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    transition: all 0.15s ease;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.qv-venue-ext-link:hover[b-4y81w4ucry] {
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.25);
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-1px);
}

.qv-description-box[b-4y81w4ucry] {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.85rem;
}

.qv-desc-title[b-4y81w4ucry] {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.35rem 0;
}

.qv-desc-text[b-4y81w4ucry] {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
    white-space: pre-line;
    max-height: 180px;
    overflow-y: auto;
}

.qv-sources-section[b-4y81w4ucry] {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.qv-sources-label[b-4y81w4ucry] {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qv-sources-list[b-4y81w4ucry] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.qv-source-pill[b-4y81w4ucry] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.qv-source-pill:hover[b-4y81w4ucry] {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.55);
    color: #7dd3fc;
    transform: translateY(-1px);
}

.qv-source-pill.source-primary[b-4y81w4ucry] {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

.qv-source-pill.source-primary:hover[b-4y81w4ucry] {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.6);
    color: #c7d2fe;
}

.badge-source-star[b-4y81w4ucry] {
    font-size: 0.75rem;
    color: #fbbf24;
}

.qv-source-pill-text[b-4y81w4ucry] {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.3rem 0.6rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: var(--radius-sm);
}

.qv-no-sources[b-4y81w4ucry] {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.qv-footer[b-4y81w4ucry] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.qv-decisions[b-4y81w4ucry] {
    display: flex;
    gap: 0.4rem;
}

/* ==========================================================================
   7. Carousel Journalier & Day Picker Sticky Mobile (<= 768px) (CA-48.4)
   ========================================================================== */

@media (max-width: 768px) {
    /* Masquage strict des éléments réservés au Desktop */
    .desktop-only[b-4y81w4ucry] {
        display: none !important;
    }

    /* P0.3 — Padding bottom pour bottom nav */
    .temporal-ribbon-container[b-4y81w4ucry] {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        gap: 0;
        padding-bottom: calc(var(--bottom-bar-height, 64px) + var(--safe-area-bottom, 0px) + 0.5rem);
    }

    /* ZONE A : Filtres globaux (sticky top: 0) — 1 ligne garantie, opaque */
    .timeline-control-bar[b-4y81w4ucry] {
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0.4rem 0.75rem;
        min-height: 44px;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    /* ZONE A : Control bar sur 2 lignes (Ligne 1 : Horizons + Actions, Ligne 2 : Chips mois) */
    .timeline-control-bar[b-4y81w4ucry] {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        row-gap: 0.35rem;
        padding: 0.35rem 0.5rem;
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(15, 23, 42, 0.98);
        border-bottom: 1px solid var(--border-color);
        min-height: auto;
    }

    /* Ligne 1, Colonne 1 : Filtres d'horizon */
    .timeline-horizon-group[b-4y81w4ucry] {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    /* Ligne 1, Colonne 2 : Actions (Passés, DatePicker) */
    .timeline-actions-group[b-4y81w4ucry] {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        align-items: center;
        gap: 0.35rem;
        margin-left: auto;
    }

    /* Ligne 2 : Signets de mois (restaurés sur mobile avec défilement fluide) */
    .timeline-month-chips[b-4y81w4ucry] {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex !important;
        align-items: center;
        gap: 0.35rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.15rem 0 0.2rem;
        width: 100%;
    }

    .timeline-month-chips[b-4y81w4ucry]::-webkit-scrollbar {
        display: none;
    }

    .timeline-month-chips .month-pill[b-4y81w4ucry] {
        min-height: 32px;
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
        border-radius: var(--radius-full);
        flex-shrink: 0;
    }

    .timeline-month-chips .month-overflow-wrapper[b-4y81w4ucry] {
        flex-shrink: 0;
    }

    .timeline-divider[b-4y81w4ucry] {
        display: none !important;
    }

    /* Masquer les boutons nav desktop ◀▶ (remplacés par swipe carousel) */
    .rail-nav-btn[b-4y81w4ucry],
    .desktop-rail-nav[b-4y81w4ucry] {
        display: none !important;
    }

    /* Cibles tactiles min 44px */
    .horizon-chip[b-4y81w4ucry] {
        min-height: 36px;
        padding: 0.4rem 0.65rem;
        font-size: 0.8rem;
    }

    .btn-past-days-toggle[b-4y81w4ucry] {
        min-height: 36px;
        font-size: 0.75rem;
    }

    .btn-direct-date-jump[b-4y81w4ucry] {
        width: 44px;
        height: 44px;
    }

    /* Résumé d'en-tête masqué sur mobile pour préserver la hauteur utile */
    .rail-summary-info[b-4y81w4ucry] {
        display: none !important;
    }

    /* ZONE B : Day Picker horizontal sticky */
    .mobile-day-picker[b-4y81w4ucry] {
        display: flex;
        align-items: center;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 0.3rem 0.5rem;
        position: sticky;
        top: 86px;
        z-index: 99;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 1px solid var(--border-color);
        min-height: 52px;
    }

    .mobile-day-picker[b-4y81w4ucry]::-webkit-scrollbar {
        display: none;
    }

    .day-picker-chip[b-4y81w4ucry] {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 48px;
        height: 44px;
        padding: 0 0.25rem;
        gap: 0.1rem;
        border: 1px solid transparent;
        border-radius: var(--radius-md);
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.15s ease;
        background: transparent;
        color: var(--text-secondary);
        outline: none;
    }

    /* Jours futurs / normaux : texte net et lisible */
    .day-picker-chip:not(.is-past) .chip-weekday[b-4y81w4ucry] {
        color: var(--text-secondary);
        font-weight: 600;
    }

    .day-picker-chip:not(.is-past) .chip-day-num[b-4y81w4ucry] {
        color: var(--text-primary);
        font-weight: 700;
    }

    .day-picker-chip.active[b-4y81w4ucry] {
        background: var(--accent-primary);
        border-color: var(--accent-primary);
        color: #ffffff;
        font-weight: 700;
        box-shadow: 0 0 8px var(--accent-glow);
    }

    .day-picker-chip.active .chip-weekday[b-4y81w4ucry],
    .day-picker-chip.active .chip-day-num[b-4y81w4ucry] {
        color: #ffffff;
    }

    /* Aujourd'hui : JAMAIS atténué, toujours 100% opaque et cliquable */
    .day-picker-chip.is-today[b-4y81w4ucry] {
        opacity: 1 !important;
        cursor: pointer !important;
    }

    /* Aujourd'hui NON sélectionné : liseré néon émeraude, fond subtil et texte contrasté comme un jour futur */
    .day-picker-chip.is-today:not(.active)[b-4y81w4ucry] {
        background: rgba(16, 185, 129, 0.14);
        border: 1.5px solid var(--accent-success);
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.35), inset 0 0 6px rgba(16, 185, 129, 0.1);
    }

    .day-picker-chip.is-today:not(.active) .chip-weekday[b-4y81w4ucry] {
        color: #34d399;
        font-weight: 700;
    }

    .day-picker-chip.is-today:not(.active) .chip-day-num[b-4y81w4ucry] {
        color: var(--text-primary);
        font-weight: 800;
    }

    /* Aujourd'hui SÉLECTIONNÉ : fond plein dégradé émeraude distinct de la sélection Indigo */
    .day-picker-chip.is-today.active[b-4y81w4ucry] {
        background: linear-gradient(135deg, #059669, #10b981);
        border: 2px solid #6ee7b7;
        color: #ffffff;
        font-weight: 700;
        box-shadow: 0 0 14px rgba(16, 185, 129, 0.55);
    }

    .day-picker-chip.is-today.active .chip-weekday[b-4y81w4ucry],
    .day-picker-chip.is-today.active .chip-day-num[b-4y81w4ucry] {
        color: #ffffff;
    }

    /* Micro-badge textuel explicite 'AUJ' */
    .chip-badge-today[b-4y81w4ucry] {
        display: inline-block;
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        line-height: 1;
        padding: 1px 3px;
        border-radius: 3px;
        background: rgba(16, 185, 129, 0.25);
        color: #10b981;
    }

    .day-picker-chip.active .chip-badge-today[b-4y81w4ucry] {
        background: rgba(0, 0, 0, 0.35);
        color: #ffffff;
    }

    .chip-conflict-dot[b-4y81w4ucry] {
        font-size: 0.65rem;
        color: #fbbf24;
        line-height: 1;
        margin-left: 1px;
    }

    .day-picker-chip.has-conflict .chip-indicator[b-4y81w4ucry] {
        color: #fbbf24;
    }

    /* Jours passés NON sélectionnés : atténués à 45% avec texte muet */
    .day-picker-chip.is-past:not(.active)[b-4y81w4ucry] {
        opacity: 0.45;
    }

    .day-picker-chip.is-past:not(.active) .chip-weekday[b-4y81w4ucry],
    .day-picker-chip.is-past:not(.active) .chip-day-num[b-4y81w4ucry] {
        color: var(--text-muted);
    }

    /* Jour passé SÉLECTIONNÉ : 100% opaque, fond indigo feutré profond contrasté WCAG AAA (8.4:1), texte blanc éclatant */
    .day-picker-chip.is-past.active[b-4y81w4ucry] {
        opacity: 1 !important;
        background: #4338ca !important;
        border: 1.5px solid #a5b4fc !important;
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.4) !important;
    }

    .day-picker-chip.is-past.active .chip-weekday[b-4y81w4ucry] {
        color: #e0e7ff !important;
        font-weight: 700 !important;
    }

    .day-picker-chip.is-past.active .chip-day-num[b-4y81w4ucry] {
        color: #ffffff !important;
        font-weight: 800 !important;
    }

    .day-picker-chip.is-empty:not(.is-today)[b-4y81w4ucry] {
        opacity: 0.25;
        cursor: default;
    }

    .chip-weekday[b-4y81w4ucry] {
        font-size: 0.70rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        line-height: 1;
    }

    .chip-day-num[b-4y81w4ucry] {
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1;
    }

    .chip-indicator[b-4y81w4ucry] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.6rem;
        line-height: 1;
        min-height: 0.65rem;
        gap: 2px;
    }

    .day-picker-month-anchor[b-4y81w4ucry] {
        display: flex;
        align-items: center;
        padding: 0 0.5rem;
        font-size: 0.70rem;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
        cursor: pointer;
        flex-shrink: 0;
        min-height: 44px;
        background: transparent;
        border: none;
    }

    .day-picker-month-anchor:hover[b-4y81w4ucry] {
        color: var(--text-secondary);
    }

    .day-picker-gap-separator[b-4y81w4ucry] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 0.25rem;
        font-size: 0.65rem;
        color: var(--text-muted);
        letter-spacing: 0.1em;
        user-select: none;
        flex-shrink: 0;
    }

    /* Spanning Events actifs ce jour dans le slide (sous l'en-tête de date) */
    .mobile-spanning-zone[b-4y81w4ucry] {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        background: rgba(15, 23, 42, 0.75);
        border-bottom: 1px solid rgba(99, 102, 241, 0.25);
        padding: 0.35rem 0.5rem;
        flex-shrink: 0;
    }

    .mobile-spanning-row[b-4y81w4ucry] {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        min-height: 38px;
        padding: 0.2rem 0.35rem;
        font-size: 0.80rem;
        overflow: hidden;
        cursor: pointer;
        border-radius: var(--radius-sm);
        background: rgba(30, 41, 59, 0.5);
        transition: background 0.15s ease;
    }

    .mobile-spanning-row:hover[b-4y81w4ucry] {
        background: rgba(51, 65, 85, 0.6);
    }

    .mobile-spanning-row.span-accepted[b-4y81w4ucry] {
        border-left: 3px solid var(--accent-success);
    }

    .mobile-spanning-row.span-maybe[b-4y81w4ucry] {
        border-left: 3px solid rgba(245, 158, 11, 0.85);
    }

    .spanning-badge[b-4y81w4ucry] {
        font-size: 0.72rem;
        font-weight: 700;
        padding: 0.1rem 0.35rem;
        border-radius: var(--radius-sm);
        background: rgba(99, 102, 241, 0.2);
        color: #a5b4fc;
        flex-shrink: 0;
    }

    .spanning-icon[b-4y81w4ucry] {
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .spanning-time[b-4y81w4ucry] {
        font-size: 0.74rem;
        color: var(--text-secondary);
        flex-shrink: 0;
    }

    .spanning-title[b-4y81w4ucry] {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--text-primary);
        font-weight: 600;
    }

    .spanning-venue[b-4y81w4ucry] {
        font-size: 0.74rem;
        color: var(--text-muted);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 90px;
        flex-shrink: 0;
    }

    .mobile-spanning-row .micro-ext-link[b-4y81w4ucry] {
        color: var(--text-secondary);
        font-size: 0.8rem;
        text-decoration: none;
        padding: 0.2rem;
        flex-shrink: 0;
    }

    /* Sur mobile tactile, les micro-actions inline sont masquées au repos (Option B) :
       le tap sur la ligne ouvre instantanément la fiche complète Quick View (Bottom Sheet 48px) */
    .mobile-spanning-row .micro-actions[b-4y81w4ucry] {
        display: none !important;
    }

    /* ZONE D : Carousel viewport */
    .temporal-rail-viewport[b-4y81w4ucry],
    .temporal-track[b-4y81w4ucry] {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        height: calc(100vh - 220px);
        height: calc(100dvh - 220px);
        min-height: 400px;
        flex: 1 1 auto;
        padding-bottom: 0;
        touch-action: pan-x pan-y !important;
    }

    .temporal-rail-viewport[b-4y81w4ucry]::-webkit-scrollbar,
    .temporal-track[b-4y81w4ucry]::-webkit-scrollbar {
        display: none;
    }

    .temporal-rail-scroll-content[b-4y81w4ucry] {
        display: flex !important;
        flex-direction: row !important;
        width: max-content !important;
        min-width: 100% !important;
        height: 100%;
    }

    /* Grid → Flex horizontal pour le carousel */
    .daily-columns-grid[b-4y81w4ucry] {
        display: flex !important;
        flex-direction: row !important;
        gap: 0 !important;
        grid-template-columns: unset !important;
        width: max-content !important;
        min-width: 100% !important;
        height: 100%;
    }

    /* Chaque slide : 100% du viewport carrousel (aligné avec main-content) */
    .day-column[b-4y81w4ucry] {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        height: 100%;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y !important;
        border: none !important;
        border-radius: 0 !important;
        background: var(--bg-primary) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }

    /* Masquer les ponts temporels dans le carousel */
    .gap-bridge-column[b-4y81w4ucry],
    .gap-mini-separator[b-4y81w4ucry] {
        display: none !important;
    }

    /* Day header : sticky dans le slide */
    .day-header[b-4y81w4ucry] {
        position: sticky;
        top: 0;
        z-index: 10;
        background: #1e293b !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: 1px solid var(--border-color);
        height: 44px;
        padding: 0.5rem 0.75rem;
    }

    .day-header-conflict[b-4y81w4ucry] {
        background: #2a1f18 !important;
    }

    .day-header-resolved[b-4y81w4ucry] {
        background: #142823 !important;
    }

    .micro-cards-list[b-4y81w4ucry] {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.4rem;
        flex: 0 0 auto !important;
        padding: 0.4rem 0.5rem;
    }

    /* Sur mobile, dans les cartes ponctuelles du slide, les micro-actions sont masquées
       au repos (le tap ouvre la Quick View / Bottom Sheet) */
    .micro-cards-list .micro-actions[b-4y81w4ucry] {
        display: none !important;
    }

    .micro-card[b-4y81w4ucry] {
        min-height: 54px;
        max-height: none;
        padding: 0.5rem 0.6rem;
    }

    /* Masquer les bannières multi-jours desktop dans micro-cards-list sur mobile
       car elles sont affichées dans mobile-spanning-zone sous l'en-tête de date */
    .micro-cards-list .multiday-row-card[b-4y81w4ucry] {
        display: none !important;
    }

    .day-expos-footer[b-4y81w4ucry] {
        flex-shrink: 0;
        margin: 0.25rem 0.5rem 1.5rem;
        padding: 0;
    }

    /* ZONE E : Dots pagination */
    .carousel-dots[b-4y81w4ucry] {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.35rem;
        height: 32px;
        background: var(--bg-primary);
        flex-shrink: 0;
    }

    .carousel-dot[b-4y81w4ucry] {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.25);
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .carousel-dot.active[b-4y81w4ucry] {
        background: var(--accent-primary);
        width: 20px;
        border-radius: 3px;
    }

    .carousel-dot.edge[b-4y81w4ucry] {
        width: 4px;
        height: 4px;
        opacity: 0.4;
    }

    /* Bottom Sheet pour l'Atelier d'Arbitrage sur mobile (CA-48.7) */
    .arbitrage-backdrop[b-4y81w4ucry] {
        z-index: 1050;
    }

    .arbitrage-drawer[b-4y81w4ucry] {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: 85vh !important;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-left: none;
        border-top: 1px solid var(--border-color);
        z-index: 1060;
        animation: slideUpBottom-b-4y81w4ucry 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes slideUpBottom-b-4y81w4ucry {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .arbitrage-body[b-4y81w4ucry] {
        padding-bottom: calc(20px + var(--safe-area-bottom));
    }

    /* Bottom Sheet pour la modale Quick View sur mobile */
    .quick-view-backdrop[b-4y81w4ucry] {
        z-index: 1065;
    }

    .quick-view-dialog[b-4y81w4ucry] {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100% !important;
        max-width: 100vw !important;
        max-height: 88vh !important;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-left: none;
        border-top: 1px solid var(--border-color);
        z-index: 1070;
        animation: slideUpBottom-b-4y81w4ucry 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Bottom Sheet pour la modale Expositions du jour sur mobile (CA-48.8) */
    .weekend-expos-dialog[b-4y81w4ucry] {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: 85vh !important;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid var(--border-color) !important;
        z-index: 1060 !important;
        animation: slideUpBottom-b-4y81w4ucry 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    /* Bottom Sheet pour le menu de débordement des mois sur mobile (+X mois) */
    .month-overflow-backdrop[b-4y81w4ucry] {
        position: fixed !important;
        inset: 0 !important;
        z-index: 1050 !important;
        background: rgba(0, 0, 0, 0.65) !important;
        backdrop-filter: blur(4px) !important;
    }

    .month-overflow-popover[b-4y81w4ucry] {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: 60vh !important;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid var(--border-color) !important;
        z-index: 1060 !important;
        animation: slideUpBottom-b-4y81w4ucry 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
        padding: 0.75rem 1rem calc(1rem + var(--safe-area-bottom, 0px)) !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7) !important;
    }

    .month-overflow-list[b-4y81w4ucry] {
        max-height: 45vh !important;
        overflow-y: auto !important;
        gap: 0.35rem !important;
    }

    .month-overflow-item[b-4y81w4ucry] {
        min-height: 44px !important;
        padding: 0.6rem 0.85rem !important;
        font-size: 0.88rem !important;
    }
}

/* Desktop : masquage strict des composants mobile */
@media (min-width: 769px) {
    .mobile-day-picker[b-4y81w4ucry] {
        display: none !important;
    }

    .mobile-spanning-zone[b-4y81w4ucry] {
        display: none !important;
    }

    .carousel-dots[b-4y81w4ucry] {
        display: none !important;
    }

    .mobile-only[b-4y81w4ucry] {
        display: none !important;
    }
}
