/* PRIVATE EVENTS V99.62 — Desktop Polish V2
   Portee volontairement limitee aux grands ecrans (>=1200 px).
   Mobile/tablette conservent la mise en page existante. */

/* L'icone Parametres standard peut etre reutilisee dans les acces qui ne sont
   pas geres par le shell desktop. */
.v9962-settings-inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.12em;
    height: 1.12em;
    color: currentColor;
    vertical-align: -0.12em;
}

.v9962-settings-inline-icon svg,
.v980-shortcut-icon .v9962-settings-icon-svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (min-width: 1200px) {
    /* ==========================================================
       PARAMETRES — correction complete du theme clair desktop
       ========================================================== */
    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-row {
        border-color: rgba(108, 67, 84, .16) !important;
        background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,247,246,.90)) !important;
        color: #352f33 !important;
        box-shadow: 0 14px 30px rgba(77, 48, 60, .07) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-row:hover,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-row:focus-visible {
        border-color: rgba(176, 49, 107, .28) !important;
        background: linear-gradient(145deg, #fff, #fff4f7) !important;
        box-shadow: 0 16px 34px rgba(115, 47, 76, .10) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-icon {
        border-color: rgba(108, 67, 84, .14) !important;
        background: rgba(144, 65, 100, .055) !important;
        color: #7f1749 !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-copy strong {
        color: #2f262b !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-copy small {
        color: #776870 !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-chevron {
        color: #b15c83 !important;
    }

    /* ==========================================================
       MON PROFIL — vrai formulaire desktop en deux colonnes
       ========================================================== */
    body.pe-v9958-desktop-shell.profile-edit-page > main.container {
        width: min(1420px, calc(100% - 72px));
        max-width: none;
        padding-top: 38px;
        padding-bottom: 84px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-header {
        width: min(1180px, 100%);
        grid-template-columns: 124px minmax(0, 1fr);
        gap: 28px;
        margin: 0 auto 28px;
        padding: 0 12px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-main-avatar {
        width: 116px;
        height: 116px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-layout,
    body.pe-v9958-desktop-shell.profile-edit-page .v9811-profile-transfer-section {
        width: min(1180px, 100%);
        max-width: none;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-panel {
        padding: 30px 34px 32px;
        border-radius: 22px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto auto auto auto auto auto;
        column-gap: 26px;
        row-gap: 8px;
        align-items: start;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > label[for="username"] {
        grid-column: 1;
        grid-row: 1;
        margin: 0 0 6px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > #username {
        grid-column: 1;
        grid-row: 2;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > label[for="email"] {
        grid-column: 2;
        grid-row: 1;
        margin: 0 0 6px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > #email {
        grid-column: 2;
        grid-row: 2;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .email-verification-note {
        grid-column: 2;
        grid-row: 3;
        margin-top: 5px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .profile-type-block {
        grid-column: 1;
        grid-row: 3;
        margin-top: 10px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .profile-description-block {
        grid-column: 1 / -1;
        grid-row: 4;
        margin-top: 14px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #description {
        min-height: 190px;
        resize: vertical;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .profile-location-wrap,
    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .profile-password-details {
        grid-row: 5;
        margin-top: 16px;
        align-self: stretch;
        min-width: 0;
        border: 1px solid rgba(226,147,184,.13);
        border-radius: 17px;
        background: rgba(255,255,255,.024);
        padding: 14px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .profile-location-wrap {
        grid-column: 1;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .profile-password-details {
        grid-column: 2;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-location-wrap .location-picker {
        margin: 0;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-password-fields {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-password-fields > label {
        margin: 6px 0 0;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .profile-save-button {
        grid-column: 1 / -1;
        grid-row: 6;
        justify-self: end;
        min-width: 240px;
        margin-top: 18px;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .profile-location-wrap,
    html[data-theme="light"] body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .profile-password-details {
        border-color: rgba(108,67,84,.13);
        background: rgba(255,255,255,.52);
    }

    /* ==========================================================
       CREATION D'EVENEMENT — composition large et rationnelle
       ========================================================== */
    body.pe-v9958-desktop-shell.create-event-body .create-event-page {
        width: min(1500px, calc(100% - 72px));
        max-width: none;
        padding: 38px 0 84px;
    }

    body.pe-v9958-desktop-shell.create-event-body .create-event-card {
        width: min(1320px, 100%);
        max-width: none;
        padding: 34px 38px 38px;
        border-radius: 22px;
    }

    body.pe-v9958-desktop-shell.create-event-body .create-event-header {
        max-width: 880px;
        margin-inline: auto;
        margin-bottom: 26px;
    }

    body.pe-v9958-desktop-shell.create-event-body .create-event-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 20px 22px;
        align-items: start;
    }

    body.pe-v9958-desktop-shell.create-event-body .v9962-create-title {
        grid-column: 1 / span 8;
    }

    body.pe-v9958-desktop-shell.create-event-body .v9962-create-date {
        grid-column: 9 / -1;
    }

    body.pe-v9958-desktop-shell.create-event-body .v9962-create-location {
        grid-column: 1 / -1;
    }

    body.pe-v9958-desktop-shell.create-event-body .v9962-create-description {
        grid-column: 1 / span 7;
    }

    body.pe-v9958-desktop-shell.create-event-body .v9962-create-poster {
        grid-column: 8 / -1;
    }

    body.pe-v9958-desktop-shell.create-event-body .v9962-create-description textarea {
        min-height: 248px;
        resize: vertical;
    }

    body.pe-v9958-desktop-shell.create-event-body .v9962-create-poster .create-event-file-zone {
        min-height: 74px;
        display: flex;
        align-items: center;
    }

    body.pe-v9958-desktop-shell.create-event-body .create-event-actions {
        margin-top: 26px;
        padding-top: 20px;
    }

    /* ==========================================================
       GALERIE — exploite enfin la largeur disponible sur PC
       ========================================================== */
    body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-page {
        width: min(1500px, calc(100% - 72px));
        max-width: none;
        margin-inline: auto;
        padding-top: 28px;
        padding-bottom: 84px;
    }

    body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-header,
    body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-kind-tabs,
    body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-section {
        width: 100%;
        max-width: none;
    }

    body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-kind-tabs {
        position: relative;
        top: auto;
        margin-bottom: 20px;
    }

    body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-toolbar {
        margin-top: 12px;
        margin-bottom: 14px;
    }

    body.pe-v9958-desktop-shell.v75-gallery-body .v75-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 14px;
        margin-top: 14px;
    }

    body.pe-v9958-desktop-shell.v75-gallery-body .v75-photo-tile {
        border-radius: 15px;
    }

    body.pe-v9958-desktop-shell.v75-gallery-body .v75-main-photo-reminder,
    body.pe-v9958-desktop-shell.v75-gallery-body .v75-private-reminder {
        max-width: none;
    }
}

@media (min-width: 1560px) {
    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .profile-description-block {
        margin-top: 18px;
    }

    body.pe-v9958-desktop-shell.v75-gallery-body .v75-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    }
}

/* ============================================================
   PRIVATE EVENTS V99.64 — Desktop Cohesion & Contrast
   Desktop only (>= 1200 px). Mobile/tablet remain unchanged.
   ============================================================ */

@media (min-width: 1200px) {
    /* --------------------------------------------------------
       LIGHT THEME — stronger hierarchy and contrast on desktop
       -------------------------------------------------------- */
    html[data-theme="light"] body.pe-v9958-desktop-shell {
        color: #2c2026 !important;
        background:
            radial-gradient(circle at 46% 0%, rgba(255,255,255,.72), transparent 31%),
            linear-gradient(180deg, #f7eeee 0%, #f1e4e7 100%) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell .muted,
    html[data-theme="light"] body.pe-v9958-desktop-shell small,
    html[data-theme="light"] body.pe-v9958-desktop-shell .create-event-help,
    html[data-theme="light"] body.pe-v9958-desktop-shell .profile-field-help,
    html[data-theme="light"] body.pe-v9958-desktop-shell .v9898-search-subtitle,
    html[data-theme="light"] body.pe-v9958-desktop-shell .v9894-settings-header p {
        color: #6b5660 !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell input[type="text"],
    html[data-theme="light"] body.pe-v9958-desktop-shell input[type="email"],
    html[data-theme="light"] body.pe-v9958-desktop-shell input[type="password"],
    html[data-theme="light"] body.pe-v9958-desktop-shell input[type="date"],
    html[data-theme="light"] body.pe-v9958-desktop-shell input[type="number"],
    html[data-theme="light"] body.pe-v9958-desktop-shell input[type="url"],
    html[data-theme="light"] body.pe-v9958-desktop-shell textarea,
    html[data-theme="light"] body.pe-v9958-desktop-shell select {
        background: #fffdfc !important;
        color: #271b21 !important;
        border-color: #cdb6c0 !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.72) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell input:focus,
    html[data-theme="light"] body.pe-v9958-desktop-shell textarea:focus,
    html[data-theme="light"] body.pe-v9958-desktop-shell select:focus {
        border-color: #a94a72 !important;
        box-shadow: 0 0 0 3px rgba(184,55,111,.12) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell input::placeholder,
    html[data-theme="light"] body.pe-v9958-desktop-shell textarea::placeholder {
        color: #857079 !important;
        opacity: 1 !important;
    }

    /* Search */
    html[data-theme="light"] body.pe-v9958-desktop-shell .v9898-search-header,
    html[data-theme="light"] body.pe-v9958-desktop-shell .v9898-search-form {
        background: #fffaf9 !important;
        border-color: #d4bec7 !important;
        box-shadow: 0 16px 34px rgba(91,55,70,.09) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell .v9898-search-form .v847-search-wide {
        background: #fffdfc !important;
        border-color: #ddcbd2 !important;
    }

    /* Settings */
    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-row {
        background: #fffaf9 !important;
        border-color: #d8c1cb !important;
        color: #2b1e24 !important;
        box-shadow: 0 12px 28px rgba(89,50,67,.09) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-row:hover,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-row:focus-visible {
        background: #ffffff !important;
        border-color: #b96b8d !important;
        box-shadow: 0 16px 34px rgba(123,53,83,.13) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-icon {
        background: #f7edf1 !important;
        border-color: #ddc8d1 !important;
        color: #8d2453 !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-copy strong {
        color: #2a1d23 !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-copy small {
        color: #6d5962 !important;
    }

    /* Messages */
    html[data-theme="light"] body.pe-v9958-desktop-shell .v9960-messaging-list-pane,
    html[data-theme="light"] body.pe-v9958-desktop-shell .v9960-messaging-chat-pane {
        background: #fffaf9 !important;
        border-color: #d5bec8 !important;
        box-shadow: 0 16px 34px rgba(91,55,70,.09) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell .v9960-messaging-list-pane .v954-conversation-item {
        border-bottom-color: #eadce1 !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell .v9960-messaging-list-pane .v954-conversation-item.v9960-is-open .v71-conversation-row,
    html[data-theme="light"] body.pe-v9958-desktop-shell .v9960-messaging-list-pane .v71-conversation-row:hover,
    html[data-theme="light"] body.pe-v9958-desktop-shell .v9960-messaging-list-pane .v71-conversation-row:focus-visible {
        background: linear-gradient(90deg, #f8dbe7, #fff5f8) !important;
        box-shadow: inset 4px 0 0 #c72f70 !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell .v9961-messaging-chat-host .v71-chat-header,
    html[data-theme="light"] body.pe-v9958-desktop-shell .v9961-messaging-chat-host .v71-chat-composer {
        background: #fffdfc !important;
        border-color: #dec9d1 !important;
    }

    /* Profile / Create / Gallery panels */
    html[data-theme="light"] body.pe-v9958-desktop-shell.profile-edit-page .profile-panel,
    html[data-theme="light"] body.pe-v9958-desktop-shell.create-event-body .create-event-card,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-kind-tabs,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-section {
        background: #fffaf9 !important;
        border-color: #d5bec8 !important;
        color: #2c2026 !important;
        box-shadow: 0 16px 36px rgba(91,55,70,.09) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.profile-edit-page .profile-location-wrap,
    html[data-theme="light"] body.pe-v9958-desktop-shell.profile-edit-page .profile-password-details,
    html[data-theme="light"] body.pe-v9958-desktop-shell.create-event-body .create-event-field,
    html[data-theme="light"] body.pe-v9958-desktop-shell.create-event-body .create-event-location-wrap,
    html[data-theme="light"] body.pe-v9958-desktop-shell.create-event-body .create-event-poster-library-section {
        background: #fffdfc !important;
        border-color: #dec9d1 !important;
    }

    /* --------------------------------------------------------
       PROFILE — one true desktop panel, compact two-zone layout
       -------------------------------------------------------- */
    body.pe-v9958-desktop-shell.profile-edit-page > main.container {
        width: min(1320px, calc(100% - 72px)) !important;
        max-width: none !important;
        margin-inline: auto !important;
        padding-top: 32px !important;
        padding-bottom: 72px !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-header {
        width: min(1180px, 100%) !important;
        max-width: none !important;
        margin: 0 auto 26px !important;
        padding: 0 8px !important;
        display: grid !important;
        grid-template-columns: 118px minmax(0,1fr) !important;
        gap: 26px !important;
        align-items: center !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-layout {
        width: min(1180px, 100%) !important;
        max-width: none !important;
        margin: 0 auto !important;
        display: block !important;
        padding-bottom: 26px !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-panel {
        width: 100% !important;
        max-width: none !important;
        padding: 28px 32px 30px !important;
        border-radius: 20px !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form {
        display: grid !important;
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        gap: 10px 20px !important;
        align-items: start !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > label[for="username"] {
        grid-column: 1 / 5 !important;
        grid-row: 1 !important;
        margin: 0 0 4px !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > #username {
        grid-column: 1 / 5 !important;
        grid-row: 2 !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > label[for="email"] {
        grid-column: 5 / 9 !important;
        grid-row: 1 !important;
        margin: 0 0 4px !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > #email {
        grid-column: 5 / 9 !important;
        grid-row: 2 !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .email-verification-note {
        grid-column: 5 / 9 !important;
        grid-row: 3 !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .profile-type-block {
        grid-column: 9 / 13 !important;
        grid-row: 1 / 3 !important;
        align-self: end !important;
        margin: 0 !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .profile-description-block {
        grid-column: 1 / 8 !important;
        grid-row: 4 / 6 !important;
        margin: 16px 0 0 !important;
        min-width: 0 !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #description {
        min-height: 300px !important;
        max-height: 420px !important;
        resize: vertical !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .profile-location-wrap {
        grid-column: 8 / 13 !important;
        grid-row: 4 !important;
        margin: 16px 0 0 !important;
        align-self: start !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 16px !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .profile-password-details {
        grid-column: 8 / 13 !important;
        grid-row: 5 !important;
        margin: 8px 0 0 !important;
        align-self: start !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 14px 16px 16px !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-location-wrap .location-picker-privacy,
    body.pe-v9958-desktop-shell.profile-edit-page .profile-location-wrap .location-picker-attribution {
        display: none !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-location-wrap .location-picker-help {
        margin-bottom: 10px !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-location-info {
        margin-top: 10px !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .profile-password-fields {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page #profile-form > .profile-save-button {
        grid-column: 1 / 13 !important;
        grid-row: 6 !important;
        width: min(360px, 100%) !important;
        justify-self: end !important;
        margin: 18px 0 0 !important;
    }

    body.pe-v9958-desktop-shell.profile-edit-page .v9811-profile-transfer-section {
        width: min(1180px, 100%) !important;
        max-width: none !important;
        margin: 10px auto 0 !important;
    }

    /* --------------------------------------------------------
       CREATE EVENT — natural-height columns, no stretched voids
       -------------------------------------------------------- */
    body.pe-v9958-desktop-shell.create-event-body .create-event-page {
        width: min(1380px, calc(100% - 72px)) !important;
        max-width: none !important;
        padding: 30px 0 72px !important;
        align-items: flex-start !important;
    }

    body.pe-v9958-desktop-shell.create-event-body .create-event-card {
        width: min(1240px, 100%) !important;
        max-width: none !important;
        padding: 30px 34px 34px !important;
        border-radius: 20px !important;
    }

    body.pe-v9958-desktop-shell.create-event-body .create-event-header {
        max-width: 820px !important;
        margin: 0 auto 22px !important;
    }

    body.pe-v9958-desktop-shell.create-event-body .create-event-grid {
        display: grid !important;
        grid-template-columns: repeat(12, minmax(0,1fr)) !important;
        grid-auto-rows: auto !important;
        gap: 16px 20px !important;
        align-items: start !important;
        align-content: start !important;
    }

    body.pe-v9958-desktop-shell.create-event-body .v9962-create-title {
        grid-column: 1 / 9 !important;
        grid-row: 1 !important;
    }

    body.pe-v9958-desktop-shell.create-event-body .v9962-create-date {
        grid-column: 9 / 13 !important;
        grid-row: 1 !important;
    }

    body.pe-v9958-desktop-shell.create-event-body .v9962-create-location {
        grid-column: 1 / 7 !important;
        grid-row: 2 !important;
        align-self: start !important;
        height: auto !important;
        min-height: 0 !important;
    }

    body.pe-v9958-desktop-shell.create-event-body .v9962-create-description {
        grid-column: 7 / 13 !important;
        grid-row: 2 !important;
        align-self: start !important;
        height: auto !important;
        min-height: 0 !important;
    }

    body.pe-v9958-desktop-shell.create-event-body .v9962-create-description textarea {
        min-height: 205px !important;
        max-height: 300px !important;
        resize: vertical !important;
    }

    body.pe-v9958-desktop-shell.create-event-body .v9962-create-poster {
        grid-column: 1 / 13 !important;
        grid-row: 3 !important;
        align-self: start !important;
        height: auto !important;
        min-height: 0 !important;
        margin-top: 2px !important;
    }

    body.pe-v9958-desktop-shell.create-event-body .create-event-location-wrap,
    body.pe-v9958-desktop-shell.create-event-body .v9962-create-location .location-picker {
        height: auto !important;
        min-height: 0 !important;
    }

    body.pe-v9958-desktop-shell.create-event-body .v9962-create-location .location-picker-privacy,
    body.pe-v9958-desktop-shell.create-event-body .v9962-create-location .location-picker-attribution {
        display: none !important;
    }

    body.pe-v9958-desktop-shell.create-event-body .create-event-poster-library-section {
        margin-top: 12px !important;
    }

    body.pe-v9958-desktop-shell.create-event-body .create-event-actions {
        margin-top: 20px !important;
        padding-top: 16px !important;
    }

    /* --------------------------------------------------------
       GALLERY — stronger, more balanced desktop grid
       -------------------------------------------------------- */
    body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-page {
        width: min(1520px, calc(100% - 72px)) !important;
    }

    body.pe-v9958-desktop-shell.v75-gallery-body .v75-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
        gap: 16px !important;
    }

    body.pe-v9958-desktop-shell.v75-gallery-body .v75-photo-tile {
        box-shadow: 0 10px 24px rgba(0,0,0,.12) !important;
    }
}

@media (min-width: 1560px) {
    body.pe-v9958-desktop-shell.profile-edit-page #description {
        min-height: 320px !important;
    }

    body.pe-v9958-desktop-shell.v75-gallery-body .v75-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)) !important;
    }
}

/* ============================================================
   PRIVATE EVENTS V99.65 — Light Theme Contrast Pass
   Desktop only (>= 1200 px). No geometry change, mobile/tablet untouched.
   ============================================================ */

@media (min-width: 1200px) {
    /* Shared light palette: reinforce separation without changing layout. */
    html[data-theme="light"] body.pe-v9958-desktop-shell {
        --v9965-light-text: #2a1d23;
        --v9965-light-text-secondary: #66515b;
        --v9965-light-text-muted: #79656e;
        --v9965-light-surface: #fffaf9;
        --v9965-light-surface-2: #f7ecef;
        --v9965-light-surface-3: #f1e2e7;
        --v9965-light-border: #d1b8c3;
        --v9965-light-border-strong: #b98a9f;
        --v9965-light-accent: #c52f73;
        --v9965-light-accent-dark: #9f245c;
        --v9965-light-on-accent: #ffffff;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell .muted,
    html[data-theme="light"] body.pe-v9958-desktop-shell .help-text,
    html[data-theme="light"] body.pe-v9958-desktop-shell .v75-main-photo-reminder,
    html[data-theme="light"] body.pe-v9958-desktop-shell .v75-private-reminder,
    html[data-theme="light"] body.pe-v9958-desktop-shell .v9887-gallery-header-help,
    html[data-theme="light"] body.pe-v9958-desktop-shell .v75-gallery-header p {
        color: var(--v9965-light-text-secondary) !important;
    }

    /* --------------------------------------------------------
       MESSAGES — desktop injected conversation needs its own
       light overrides because body.v71-chat-body is not present.
       -------------------------------------------------------- */
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9960-messaging-list-pane,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9960-messaging-chat-pane {
        background: var(--v9965-light-surface) !important;
        border-color: var(--v9965-light-border) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9960-messaging-list-pane .v71-conversation-row {
        color: var(--v9965-light-text) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9960-messaging-list-pane .v71-conversation-bottomline,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9960-messaging-list-pane .v71-conversation-bottomline p,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9960-messaging-list-pane .v71-conversation-time,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9960-messaging-list-pane .v71-conversation-presence {
        color: var(--v9965-light-text-secondary) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .v71-chat-header,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .v712-chat-context,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .v71-chat-composer {
        background: #fffdfc !important;
        border-color: var(--v9965-light-border) !important;
        color: var(--v9965-light-text) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .v712-chat-context-private {
        background: #fffdfc !important;
        border-bottom-color: var(--v9965-light-border) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .v712-chat-context-main strong,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .v71-chat-profile-link,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .v71-chat-name-row h1 {
        color: var(--v9965-light-text) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .v712-chat-context-kicker,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .v712-chat-context-meta,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .v71-presence-label,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .v71-composer-meta,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .message-compose-status {
        color: var(--v9965-light-text-secondary) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .v71-chat-day-separator span {
        background: #f3e5ea !important;
        border: 1px solid #dbc1cc !important;
        color: #725462 !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .v71-chat-composer textarea,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .v71-chat-composer input {
        background: #ffffff !important;
        color: var(--v9965-light-text) !important;
        border-color: #c9acb9 !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .v71-chat-composer textarea::placeholder,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .v71-chat-composer input::placeholder {
        color: #735d67 !important;
        opacity: 1 !important;
    }

    /* Status chips inside sent bubbles must not inherit white text. */
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .private-photo-request-status,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .private-photo-request-status * {
        text-shadow: none !important;
        opacity: 1 !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .private-photo-request-status.is-pending,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .private-photo-request-status.is-pending * {
        background: #fff1c9 !important;
        border-color: #d6b957 !important;
        color: #684f08 !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .private-photo-request-status.is-granted,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .private-photo-request-status.is-granted * {
        background: #e7f5eb !important;
        border-color: #9ec8aa !important;
        color: #245f35 !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .private-photo-request-status.is-declined,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .private-photo-request-status.is-cancelled,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .private-photo-request-status.is-declined *,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .private-photo-request-status.is-cancelled * {
        background: #efdde4 !important;
        border-color: #c8a7b5 !important;
        color: #5d3f4c !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .private-photo-request-message {
        background: #fffafc !important;
        border-color: #d6bdc8 !important;
        color: #4b3540 !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9961-messaging-chat-host .private-photo-request-heading {
        color: #3f2a34 !important;
    }

    /* --------------------------------------------------------
       GALLERY — action buttons and secondary copy need a
       stronger light-mode contrast.
       -------------------------------------------------------- */
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-header,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-kind-tabs,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-section {
        color: var(--v9965-light-text) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-header p,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-main-photo-reminder,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-private-reminder,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v9887-gallery-context-copy,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v9887-gallery-header-help {
        color: var(--v9965-light-text-secondary) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-toolbar h2,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-header h1,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-kind-tab {
        color: var(--v9965-light-text) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-kind-tab {
        background: transparent !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-kind-tab.is-active,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-kind-tab.active {
        background: #eee0e5 !important;
        box-shadow: inset 0 0 0 1px #d3b6c2 !important;
        color: #4b3140 !important;
    }

    /* Primary gallery actions: dark enough accent + white text. */
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-toolbar-actions .v75-gallery-action-button:not(.is-secondary) {
        background: linear-gradient(180deg, #c93679, #a92161) !important;
        border-color: #991d57 !important;
        color: #ffffff !important;
        box-shadow: 0 8px 18px rgba(156,31,91,.20) !important;
    }

    /* Secondary gallery actions: pale surface + dark text. */
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-toolbar-actions .v75-gallery-action-button.is-secondary {
        background: #fff7f9 !important;
        border-color: #c897aa !important;
        color: #6b2b49 !important;
        box-shadow: 0 6px 14px rgba(91,55,70,.08) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-toolbar-actions .v75-gallery-action-button,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-toolbar-actions .v75-gallery-action-button * {
        text-shadow: none !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-toolbar-actions .v75-gallery-action-button:not(.is-secondary) *,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-toolbar-actions .v75-gallery-action-button:not(.is-secondary) span {
        color: #ffffff !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-toolbar-actions .v75-gallery-action-button.is-secondary *,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-toolbar-actions .v75-gallery-action-button.is-secondary span {
        color: #6b2b49 !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-action-button:hover,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-action-button:focus-visible {
        filter: brightness(.97) saturate(1.06);
        outline: 2px solid rgba(157,42,92,.22) !important;
        outline-offset: 2px;
    }

    /* Keep neutral panels clearly separated from the page canvas. */
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-kind-tabs,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v75-gallery-body .v75-gallery-section,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9960-messaging-list-pane,
    html[data-theme="light"] body.pe-v9958-desktop-shell.messages-index-page .v9960-messaging-chat-pane {
        box-shadow: 0 14px 32px rgba(76,47,59,.10) !important;
    }
}
/* ============================================================
   V99.66 - DESKTOP SETTINGS POLISH
   Portée STRICTEMENT desktop >= 1200 px.
   Aucun changement de géométrie mobile/tablette.
   ============================================================ */
@media (min-width: 1200px) {
    /* Le hub Paramètres doit avoir la présence d'un vrai tableau de bord PC. */
    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-page {
        width: min(1240px, calc(100% - 72px)) !important;
        max-width: none !important;
        margin-inline: auto !important;
        padding-top: 30px !important;
        padding-bottom: 76px !important;
    }

    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-header {
        max-width: 980px !important;
        margin: 0 auto 20px !important;
    }

    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-header h1 {
        font-size: clamp(2.05rem, 2.15vw, 2.6rem) !important;
        line-height: 1.08 !important;
    }

    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-header .muted,
    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-header p {
        margin-top: 8px !important;
        font-size: .9rem !important;
        line-height: 1.45 !important;
    }

    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu {
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-row {
        min-height: 116px !important;
        grid-template-columns: 52px minmax(0, 1fr) 28px !important;
        gap: 16px !important;
        padding: 19px 21px !important;
        border-radius: 18px !important;
        align-items: center !important;
        transform: translateZ(0);
        transition:
            transform .16s ease,
            border-color .16s ease,
            background .16s ease,
            box-shadow .16s ease !important;
    }

    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-row:hover,
    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-row:focus-visible {
        transform: translateY(-2px);
    }

    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-icon {
        width: 52px !important;
        height: 52px !important;
        border-radius: 15px !important;
        font-size: 1.34rem !important;
    }

    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-copy {
        gap: 5px !important;
        align-content: center !important;
    }

    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-copy strong {
        font-size: 1.03rem !important;
        line-height: 1.22 !important;
        letter-spacing: -.01em;
    }

    /* Sur PC, les sous-titres peuvent respirer sur deux lignes au lieu d'être tronqués. */
    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-copy small {
        margin-top: 0 !important;
        font-size: .82rem !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-chevron {
        font-size: 1.62rem !important;
        opacity: .9;
    }

    /* ---------------- Velours ---------------- */
    html[data-theme="velvet"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-row {
        background:
            linear-gradient(145deg, rgba(47, 28, 39, .92), rgba(27, 20, 25, .94)) !important;
        border-color: rgba(229, 139, 181, .20) !important;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .18) !important;
    }

    html[data-theme="velvet"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-row:hover,
    html[data-theme="velvet"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-row:focus-visible {
        background:
            linear-gradient(145deg, rgba(63, 34, 49, .97), rgba(34, 23, 29, .98)) !important;
        border-color: rgba(238, 151, 192, .42) !important;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .24) !important;
    }

    html[data-theme="velvet"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-icon {
        background: rgba(255, 255, 255, .055) !important;
        border-color: rgba(235, 153, 190, .18) !important;
    }

    html[data-theme="velvet"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9897-settings-home-row {
        border-color: rgba(226, 91, 151, .52) !important;
        background:
            linear-gradient(145deg, rgba(112, 30, 69, .44), rgba(45, 27, 37, .97)) !important;
    }

    /* ---------------- Clair ---------------- */
    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-row {
        background: linear-gradient(145deg, #fffefd, #fff8f7) !important;
        border-color: #d6bcc7 !important;
        color: #2b1d24 !important;
        box-shadow: 0 13px 30px rgba(87, 49, 65, .105) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-row:hover,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-row:focus-visible {
        background: #ffffff !important;
        border-color: #b95782 !important;
        box-shadow: 0 18px 38px rgba(111, 45, 73, .15) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-icon {
        background: #f8edf1 !important;
        border-color: #d9c0cb !important;
        color: #851f4d !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-copy strong {
        color: #261a20 !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-copy small {
        color: #66535c !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu-chevron {
        color: #9b3b67 !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9897-settings-home-row {
        background: linear-gradient(145deg, #fff8fb, #fffefe) !important;
        border-color: #c65384 !important;
        box-shadow: 0 15px 34px rgba(151, 55, 96, .13) !important;
    }

    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-header .muted,
    html[data-theme="light"] body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-header p {
        color: #604d56 !important;
    }
}

/* Très grands écrans : légère respiration supplémentaire sans agrandir démesurément les cartes. */
@media (min-width: 1700px) {
    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-page {
        width: min(1320px, calc(100% - 96px)) !important;
    }

    body.pe-v9958-desktop-shell.v9894-settings-dashboard-body .v9894-settings-menu {
        gap: 20px !important;
    }
}
