        * { box-sizing: border-box; margin: 0; padding: 0; }
        html, body {
            width: 100%;
            height: 100%;
            overflow: hidden;
            background-color: #030712;
            color: #0f172a;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
        }
        .phone-wrapper {
            width: 100%;
            height: 100%;
            display: flex;
        }
        .phone-frame {
            width: 100%;
            height: 100%;
            background: #030712;
            border-radius: 0;
            border: none;
            box-shadow: none;
            overflow: hidden;
            position: relative;
            user-select: none;
        }
        canvas.sky {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
            background: radial-gradient(circle at 50% 35%, #0b1938 0%, #070e22 55%, #030712 100%);
        }
        .tropical-app-backdrop {
            position: absolute;
            inset: 0;
            z-index: 1;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.35s ease;
            background:
                linear-gradient(180deg, rgba(15, 23, 42, 0.14) 0%, rgba(15, 23, 42, 0.28) 100%),
                url('./keypad-tropical.jpg') center/cover no-repeat;
        }
        .tropical-app-backdrop.active {
            opacity: 1;
        }
        .screen-view {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
            display: none; flex-direction: column; padding: 20px 16px; overflow-y: auto; overflow-x: hidden;
        }
        .screen-view.active { display: flex; }
        /* Centrage fluide de l'espace Client et Administrateur sur tablette paysage & grands écrans */
        #viewClient, #viewAdmin {
            align-items: center;
            padding: 20px 18px;
        }
        #viewClient > *, #viewAdmin > * {
            width: 100%;
            max-width: 640px;
            min-width: 0;
            flex-shrink: 0;
        }

        /* Déconnexion Pleine Largeur */
        .ocean-alert-box {
            position: relative;
            width: 100%;
            max-width: 320px;
            background: linear-gradient(180deg, #0284c7 0%, #0369a1 40%, #075985 100%);
            border-radius: 26px;
            padding: 24px 20px 28px;
            text-align: center;
            overflow: hidden;
            box-shadow: 0 25px 60px rgba(2, 132, 199, 0.45), 0 0 35px rgba(56, 189, 248, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: #ffffff;
        }
        .ocean-waves-container {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 200%;
            height: 65px;
            pointer-events: none;
            overflow: hidden;
        }
        .ocean-wave {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 200%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C150,90 350,-40 500,45 C650,130 900,10 1200,50 L1200,120 L0,120 Z' fill='rgba(255,255,255,0.22)'%3E%3C/path%3E%3C/svg%3E") repeat-x;
            background-size: 600px 65px;
            animation: oceanWaveAnim 4s linear infinite;
        }
        .ocean-wave.wave-slow {
            bottom: -5px;
            opacity: 0.55;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C200,100 450,0 600,60 C750,120 1000,20 1200,70 L1200,120 L0,120 Z' fill='rgba(56,189,248,0.35)'%3E%3C/path%3E%3C/svg%3E") repeat-x;
            background-size: 600px 65px;
            animation: oceanWaveAnim 7s linear infinite reverse;
        }
        @keyframes oceanWaveAnim {
            0% { transform: translateX(0); }
            100% { transform: translateX(-600px); }
        }
        .btn-ocean-close {
            position: relative;
            z-index: 5;
            margin-top: 18px;
            background: #ffffff;
            color: #0369a1;
            border: none;
            border-radius: 14px;
            padding: 10px 24px;
            font-size: 0.95rem;
            font-weight: 800;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: transform 0.1s;
        }
        .btn-ocean-close:active {
            transform: scale(0.96);
        }

        /* Fenêtre Alerte Anti-Spam Rouge */
        .spam-alert-box {
            position: relative;
            width: 100%;
            max-width: 330px;
            background: linear-gradient(180deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
            border-radius: 26px;
            padding: 24px 20px 24px;
            text-align: center;
            overflow: hidden;
            box-shadow: 0 25px 60px rgba(220, 38, 38, 0.5), 0 0 35px rgba(248, 113, 113, 0.35);
            border: 2px solid rgba(255, 255, 255, 0.35);
            color: #ffffff;
            animation: shakeSpam 0.4s ease-in-out;
        }
        @keyframes shakeSpam {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-6px); }
            40%, 80% { transform: translateX(6px); }
        }
        .btn-spam-close {
            position: relative;
            z-index: 5;
            margin-top: 18px;
            background: #ffffff;
            color: #991b1b;
            border: none;
            border-radius: 14px;
            padding: 11px 26px;
            font-size: 0.95rem;
            font-weight: 900;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
            transition: transform 0.1s;
        }
        .btn-spam-close:active {
            transform: scale(0.96);
        }

        .sync-float-btn {
            position: fixed;
            bottom: 32px;
            right: 20px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, #64748b, #475569);
            color: #ffffff;
            border: 2px solid rgba(226, 232, 240, 0.72);
            box-shadow: 0 8px 20px rgba(71, 85, 105, 0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 55;
            transition: transform 0.2s, box-shadow 0.2s, background 0.25s, border-color 0.25s;
        }
        .sync-float-btn.is-up-to-date {
            background: linear-gradient(135deg, #22c55e, #15803d);
            border-color: rgba(220, 252, 231, 0.85);
            box-shadow: 0 8px 20px rgba(22, 163, 74, 0.48);
        }
        .sync-float-btn.is-outdated {
            background: linear-gradient(135deg, #ef4444, #b91c1c);
            border-color: #fecaca;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35), 0 8px 22px rgba(220, 38, 38, 0.62);
            animation: syncOutdatedPulse 1.8s ease-in-out infinite;
        }
        @keyframes syncOutdatedPulse {
            0%, 100% { box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35), 0 8px 22px rgba(220, 38, 38, 0.6); }
            50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.52), 0 8px 24px rgba(220, 38, 38, 0.78); }
        }
        .app-version-badge-wrap {
            position: fixed;
            bottom: 6px;
            right: 44px;
            transform: translateX(50%);
            z-index: 56;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            max-width: calc(100vw - 96px);
        }
        .app-version-pill {
            border-radius: 999px;
            padding: 2px 8px;
            font-size: 0.64rem;
            font-weight: 800;
            letter-spacing: 0.2px;
            line-height: 1.35;
            cursor: pointer;
            border: 1px solid rgba(148, 163, 184, 0.65);
            background: rgba(15, 23, 42, 0.82);
            color: #e2e8f0;
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
            white-space: nowrap;
            transition: transform 0.15s, background 0.25s, border-color 0.25s, color 0.25s;
        }
        .app-version-pill:active { transform: scale(0.95); }
        .app-version-pill.is-ok {
            background: rgba(21, 128, 61, 0.92);
            border-color: #86efac;
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(22, 163, 74, 0.42);
        }
        .app-version-pill.is-outdated {
            background: rgba(220, 38, 38, 0.96);
            border-color: #fecaca;
            color: #ffffff;
            box-shadow: 0 2px 10px rgba(220, 38, 38, 0.55);
        }
        .brand-logo-float {
            position: fixed;
            bottom: 24px;
            left: 20px;
            width: 48px;
            height: 48px;
            padding: 5px;
            border-radius: 13px;
            background: #ffffff;
            border: 1.5px solid rgba(255, 255, 255, 0.96);
            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(148, 163, 184, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 55;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .brand-logo-float:hover {
            transform: translateY(-1px) scale(1.03);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.34), 0 0 12px rgba(34, 197, 94, 0.28);
        }
        .brand-logo-float:active {
            transform: scale(0.95);
        }
        .brand-logo-float img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            pointer-events: none;
        }

        /* Barre de contrôles Zoom PDF Ronds + Centrage Page entière / Pleine largeur */
        .pdf-bottom-controls {
            position: absolute;
            bottom: 18px;
            left: 12px;
            right: 12px;
            z-index: 65;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            pointer-events: none;
        }
        .pdf-bottom-center {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            flex-wrap: wrap;
            pointer-events: auto;
        }
        .zoom-round-btn {
            width: 50px;
            height: 50px;
            flex-shrink: 0;
            border-radius: 50%;
            background: rgba(15, 23, 42, 0.92);
            backdrop-filter: blur(8px);
            border: 2px solid #38bdf8;
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            line-height: 0;
            cursor: pointer;
            pointer-events: auto;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.35);
            user-select: none;
            -webkit-tap-highlight-color: transparent;
            transition: transform 0.15s, background 0.15s;
        }
        .zoom-round-btn:active {
            transform: scale(0.92);
            background: #0284c7;
        }
        .pdf-fit-pill {
            background: rgba(15, 23, 42, 0.92);
            backdrop-filter: blur(8px);
            border: 1.5px solid rgba(56, 189, 248, 0.6);
            color: #e0f2fe;
            padding: 9px 12px;
            border-radius: 18px;
            font-size: 0.78rem;
            font-weight: 800;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            box-shadow: 0 6px 18px rgba(0,0,0,0.45);
            white-space: nowrap;
            -webkit-tap-highlight-color: transparent;
            transition: all 0.15s ease;
        }
        .pdf-fit-pill.active {
            background: linear-gradient(135deg, #0284c7, #0369a1);
            color: #ffffff;
            border-color: #7dd3fc;
            box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
        }
        .pdf-fit-pill:active {
            transform: scale(0.95);
        }
        .sync-float-btn:hover {
            transform: scale(1.08);
            box-shadow: 0 12px 25px rgba(14, 165, 233, 0.7);
        }
        .sync-float-btn.spinning svg {
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .pull-indicator {
            position: fixed;
            top: 35%;
            left: 50%;
            transform: translateX(-50%) translateY(-50%) scale(0.85);
            width: min(calc(100vw - 32px), 340px);
            background: linear-gradient(135deg, #0369a1 0%, #0284c7 48%, #16a34a 100%);
            border: 2px solid rgba(186, 230, 253, 0.92);
            color: #ffffff;
            padding: 15px 18px;
            border-radius: 22px;
            font-size: 0.96rem;
            line-height: 1.4;
            font-weight: 800;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            gap: 10px;
            z-index: 999;
            box-shadow: 0 14px 36px rgba(2, 132, 199, 0.45), 0 0 28px rgba(56, 189, 248, 0.35);
            transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s;
            opacity: 0;
            pointer-events: none;
            letter-spacing: 0.2px;
            box-sizing: border-box;
            white-space: normal;
            overflow-wrap: break-word;
        }
        .pull-indicator-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
        }
        .pull-indicator svg {
            flex-shrink: 0;
        }
        .pull-indicator.is-updating .pull-sync-spin {
            animation: spin 0.85s linear infinite;
        }
        .refresh-progress-track {
            width: 100%;
            height: 8px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.26);
            overflow: hidden;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.22);
        }
        .refresh-progress-fill {
            width: 0%;
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, #bae6fd 0%, #ffffff 55%, #fde047 100%);
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
            animation: refreshBarFill 1.25s cubic-bezier(0.25, 0.8, 0.35, 1) forwards;
        }
        .refresh-progress-fill.done {
            width: 100%;
            animation: none;
            background: linear-gradient(90deg, #86efac 0%, #ffffff 100%);
        }
        @keyframes refreshBarFill {
            0% { width: 4%; }
            45% { width: 58%; }
            85% { width: 88%; }
            100% { width: 100%; }
        }
        .pull-indicator.visible {
            transform: translateX(-50%) translateY(-50%) scale(1);
            opacity: 1;
        }

        /* Déconnexion Bouton Rond Rouge Confort Tactile + Barre En-tête Client/Admin */
        .screen-top-logout-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
            flex-shrink: 0;
        }
        .client-top-home-btn {
            height: 42px;
            padding: 0 14px 0 6px;
            border-radius: 999px;
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.90) 100%);
            border: 1.5px solid rgba(186, 230, 253, 0.72);
            box-shadow: 0 6px 16px rgba(15, 23, 42, 0.34);
            color: #f8fafc;
            font-size: 0.80rem;
            font-weight: 800;
            letter-spacing: 0.01em;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            cursor: pointer;
            flex-shrink: 0;
            transition: transform 0.14s ease, border-color 0.14s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .client-top-home-btn:active { transform: scale(0.95); }
        .client-top-home-icon {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(56, 189, 248, 0.22);
            border: 1px solid rgba(186, 230, 253, 0.45);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .logout-round-btn {
            width: 46px;
            height: 46px;
            min-width: 46px;
            border-radius: 50%;
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: #ffffff;
            border: 2px solid rgba(255, 255, 255, 0.90);
            box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45), 0 0 0 2px rgba(220, 38, 38, 0.25);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .logout-round-btn:hover { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
        .logout-round-btn:active { transform: scale(0.92); }

        /* Bandeau & Interface Persistante Mode Site Miroir Client (Administrateur en lecture seule) */
        .mirror-emblem-svg {
            display: block;
            width: 100%;
            height: 100%;
            filter: drop-shadow(0 2px 6px rgba(14, 165, 233, 0.38));
        }
        #viewClient.mirror-active,
        #viewClient.sandbox-active {
            padding-top: calc(74px + env(safe-area-inset-top));
            padding-bottom: 28px;
        }
        #viewAdmin {
            padding-top: calc(74px + env(safe-area-inset-top));
            padding-bottom: 28px;
        }
        /* Barre d'en-tête persistante Admin & Mode Site Miroir */
        .admin-global-topbar {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            z-index: 98;
            display: none;
            pointer-events: none;
            padding: max(12px, env(safe-area-inset-top)) 16px 14px;
            background: linear-gradient(180deg, rgba(2, 6, 23, 0.78) 0%, rgba(2, 6, 23, 0.34) 72%, rgba(2, 6, 23, 0) 100%);
        }
        .admin-global-topbar.active {
            display: block;
        }
        .admin-topbar-inner {
            max-width: 640px;
            width: 100%;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            min-height: 46px;
        }
        .admin-topbar-left,
        .admin-topbar-right {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            pointer-events: auto;
        }
        .admin-top-admin-chip {
            height: 42px;
            padding: 0 12px 0 5px;
            border-radius: 999px;
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(49, 46, 129, 0.94) 100%);
            border: 1.8px solid rgba(251, 191, 36, 0.90);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42), 0 0 12px rgba(245, 158, 11, 0.22);
            color: #fef9c3;
            font-size: 0.78rem;
            font-weight: 900;
            letter-spacing: 0.02em;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            cursor: pointer;
            flex-shrink: 0;
            transition: transform 0.14s ease, border-color 0.14s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .admin-top-admin-chip:active { transform: scale(0.95); }
        .admin-top-admin-icon {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
            border: 1.5px solid #fef3c7;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.45);
        }
        .admin-top-mirror-chip {
            height: 42px;
            padding: 0 11px 0 5px;
            max-width: 175px;
            border-radius: 999px;
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 58, 138, 0.94) 100%);
            border: 1.8px solid #fbbf24;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42), 0 0 14px rgba(56, 189, 248, 0.30);
            color: #fef08a;
            font-size: 0.76rem;
            font-weight: 800;
            display: none;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            min-width: 0;
            transition: transform 0.14s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .admin-top-mirror-chip.visible {
            display: inline-flex;
        }
        .admin-top-mirror-chip:active { transform: scale(0.95); }
        .admin-top-mirror-icon {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: linear-gradient(135deg, #fef9c3 0%, #fde68a 45%, #e0f2fe 100%);
            border: 1.5px solid #ffffff;
            padding: 3px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .admin-top-mirror-label {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .admin-top-back-btn {
            width: 46px;
            height: 46px;
            min-width: 46px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 41, 59, 0.94) 100%);
            color: #fde047;
            border: 2px solid rgba(251, 191, 36, 0.90);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.42), 0 0 0 2px rgba(251, 191, 36, 0.18);
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            flex-shrink: 0;
            transition: transform 0.14s ease, border-color 0.14s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .admin-top-back-btn.visible {
            display: inline-flex;
        }
        .admin-top-back-btn:active { transform: scale(0.92); }
        @media (max-width: 380px) {
            .admin-top-admin-chip { padding: 0 9px 0 4px; font-size: 0.72rem; gap: 5px; height: 40px; }
            .admin-top-admin-icon, .admin-top-mirror-icon { width: 27px; height: 27px; }
            .admin-top-mirror-chip { padding: 0 9px 0 4px; font-size: 0.71rem; gap: 5px; max-width: 112px; height: 40px; }
            .admin-top-client-btn { height: 40px; padding: 0 8px; }
            .admin-top-back-btn, .logout-round-btn { width: 42px; height: 42px; min-width: 42px; }
        }
        .admin-top-client-btn {
            height: 42px;
            padding: 0 10px;
            border-radius: 999px;
            background: linear-gradient(135deg, rgba(2, 132, 199, 0.94) 0%, rgba(14, 165, 233, 0.94) 100%);
            border: 1.8px solid rgba(186, 230, 253, 0.92);
            box-shadow: 0 6px 16px rgba(2, 132, 199, 0.42);
            color: #ffffff;
            display: none;
            align-items: center;
            justify-content: center;
            gap: 4px;
            cursor: pointer;
            flex-shrink: 0;
            transition: transform 0.14s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .admin-top-client-btn.visible {
            display: inline-flex;
        }
        .admin-top-client-btn:active { transform: scale(0.94); }
        .mirror-picker-backdrop {
            position: absolute;
            inset: 0;
            z-index: 149;
            display: none;
            background: rgba(2, 6, 23, 0.35);
        }
        .mirror-picker-backdrop.active {
            display: block;
        }
        .mirror-picker-menu {
            position: absolute;
            top: calc(64px + env(safe-area-inset-top));
            left: 16px;
            width: min(300px, calc(100% - 32px));
            max-height: 62vh;
            overflow-y: auto;
            z-index: 150;
            display: none;
            background: #ffffff;
            border: 2px solid #0284c7;
            border-radius: 18px;
            padding: 10px;
            box-shadow: 0 18px 42px rgba(2, 6, 23, 0.55);
        }
        .mirror-picker-menu.active {
            display: block;
        }
        .mirror-picker-title {
            font-size: 0.78rem;
            font-weight: 900;
            color: #0369a1;
            padding: 2px 6px 8px;
            border-bottom: 1px solid #e2e8f0;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .mirror-picker-list {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .mirror-picker-item {
            width: 100%;
            border: 1.5px solid #e2e8f0;
            background: #f8fafc;
            border-radius: 11px;
            padding: 8px 10px;
            text-align: left;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            transition: border-color 0.14s ease, background-color 0.14s ease;
        }
        .mirror-picker-item:hover {
            border-color: #38bdf8;
            background: #f0f9ff;
        }
        .mirror-picker-item.is-current {
            border-color: #0284c7;
            background: #e0f2fe;
        }
        .mirror-picker-item-name {
            font-size: 0.84rem;
            font-weight: 800;
            color: #0f172a;
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .mirror-picker-item-email {
            font-size: 0.71rem;
            font-weight: 600;
            color: #64748b;
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .mirror-persistent-badge {
            position: absolute;
            top: max(10px, env(safe-area-inset-top));
            left: 50%;
            transform: translateX(-50%);
            z-index: 96;
            display: none !important;
            align-items: center;
            gap: 9px;
            max-width: calc(100% - 24px);
            padding: 5px 13px 5px 6px;
            border-radius: 999px;
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 58, 138, 0.94) 100%);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 2px solid rgba(251, 191, 36, 0.92);
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 18px rgba(56, 189, 248, 0.30);
            color: #ffffff;
            white-space: nowrap;
            pointer-events: auto;
        }
        .mirror-persistent-badge.active {
            display: none !important;
        }
        .mirror-persistent-icon-badge {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, #fef9c3 0%, #fde68a 45%, #e0f2fe 100%);
            border: 1.8px solid #ffffff;
            box-shadow: 0 2px 10px rgba(251, 191, 36, 0.55), 0 0 10px rgba(56, 189, 248, 0.42);
            padding: 3px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            animation: mirrorBadgeShimmer 3.2s ease-in-out infinite;
        }
        @keyframes mirrorBadgeShimmer {
            0%, 100% { box-shadow: 0 2px 10px rgba(251, 191, 36, 0.52), 0 0 8px rgba(56, 189, 248, 0.35); transform: scale(1); }
            50% { box-shadow: 0 2px 14px rgba(251, 191, 36, 0.82), 0 0 16px rgba(125, 211, 252, 0.65); transform: scale(1.04); }
        }
        .mirror-persistent-label {
            font-size: 0.8rem;
            font-weight: 900;
            letter-spacing: 0.015em;
            color: #fef9c3;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .mirror-persistent-subpill {
            background: rgba(56, 189, 248, 0.22);
            border: 1px solid rgba(125, 211, 252, 0.6);
            color: #bae6fd;
            font-size: 0.65rem;
            font-weight: 900;
            padding: 2px 7px;
            border-radius: 999px;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            flex-shrink: 0;
        }
        .client-mirror-banner {
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.90) 0%, rgba(120, 53, 15, 0.92) 55%, rgba(180, 83, 9, 0.92) 100%);
            border: 2px solid rgba(253, 224, 71, 0.82);
            border-radius: 18px;
            padding: 11px 13px;
            margin-bottom: 12px;
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex-shrink: 0;
        }
        .client-mirror-banner-top {
            display: flex;
            align-items: center;
            gap: 9px;
            flex-wrap: nowrap;
        }
        .mirror-banner-icon-badge {
            width: 34px;
            height: 34px;
            border-radius: 11px;
            background: linear-gradient(135deg, #fef9c3 0%, #e0f2fe 100%);
            border: 1.5px solid #fde047;
            padding: 4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 3px 10px rgba(251, 191, 36, 0.35);
        }
        .client-mirror-pill {
            font-size: 0.74rem;
            font-weight: 900;
            letter-spacing: 0.03em;
            color: #fef08a;
            text-transform: uppercase;
            line-height: 1.25;
        }
        .client-mirror-sub {
            font-size: 0.76rem;
            color: #fef9c3;
            font-weight: 600;
            line-height: 1.32;
        }
        .client-mirror-switch-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 2px;
        }
        .client-mirror-select {
            flex: 1;
            min-width: 0;
            background: rgba(255, 255, 255, 0.96);
            color: #0f172a;
            border: 1.5px solid #fde047;
            border-radius: 10px;
            padding: 6px 9px;
            font-size: 0.8rem;
            font-weight: 700;
            outline: none;
        }
        .mirror-exit-dock {
            position: absolute;
            bottom: max(12px, env(safe-area-inset-bottom));
            left: 50%;
            transform: translateX(-50%);
            width: min(calc(100% - 24px), 540px);
            z-index: 96;
            display: none;
            pointer-events: none;
        }
        .mirror-exit-dock.active {
            display: block;
        }
        .mirror-exit-hero-btn {
            pointer-events: auto;
            width: 100%;
            min-height: 66px;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 48%, #312e81 100%);
            border: 2.5px solid #fbbf24;
            border-radius: 22px;
            padding: 10px 14px;
            color: #ffffff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            text-align: left;
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.58), 0 0 24px rgba(251, 191, 36, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
            transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .mirror-exit-hero-btn:hover {
            border-color: #fef08a;
            box-shadow: 0 16px 38px rgba(0, 0, 0, 0.64), 0 0 30px rgba(251, 191, 36, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.28);
        }
        .mirror-exit-hero-btn:active {
            transform: scale(0.985);
        }
        .mirror-exit-icon-wrap {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, #fef9c3 0%, #fde68a 45%, #e0f2fe 100%);
            border: 2.5px solid #ffffff;
            box-shadow: 0 4px 14px rgba(251, 191, 36, 0.52);
            padding: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .mirror-exit-text {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .mirror-exit-title {
            font-size: 1.04rem;
            font-weight: 900;
            color: #ffffff;
            line-height: 1.2;
            letter-spacing: 0.01em;
        }
        .mirror-exit-sub {
            font-size: 0.77rem;
            font-weight: 700;
            color: #fde68a;
            line-height: 1.2;
        }
        .mirror-exit-action-pill {
            width: 44px;
            height: 44px;
            border-radius: 14px;
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            border: 2px solid rgba(255, 255, 255, 0.90);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .pdf-mirror-badge {
            display: none;
            align-items: center;
            gap: 6px;
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 138, 0.92) 100%);
            border: 1.5px solid #fbbf24;
            color: #fef08a;
            border-radius: 999px;
            padding: 4px 10px 4px 5px;
            font-size: 0.75rem;
            font-weight: 800;
            white-space: nowrap;
            flex-shrink: 0;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
        }
        .pdf-mirror-mini-circle {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: linear-gradient(135deg, #fef9c3 0%, #e0f2fe 100%);
            border: 1px solid #ffffff;
            padding: 2px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .pdf-fs-top-left-stack {
            position: absolute;
            top: 12px;
            top: max(12px, env(safe-area-inset-top));
            left: 12px;
            left: max(12px, env(safe-area-inset-left));
            max-width: calc(100% - 62px);
            z-index: 85;
            display: none;
            flex-direction: column;
            align-items: flex-start;
            gap: 6px;
            pointer-events: none;
        }
        .pdf-viewer-overlay.is-fullscreen .pdf-fs-top-left-stack {
            display: flex;
        }
        .pdf-fs-mirror-badge {
            display: none;
            align-items: center;
            gap: 6px;
            background: rgba(15, 23, 42, 0.72);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            border: 1.5px solid rgba(251, 191, 36, 0.85);
            color: #fef08a;
            border-radius: 999px;
            padding: 4px 10px 4px 4px;
            font-size: 0.74rem;
            font-weight: 800;
            pointer-events: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
        }
        .pdf-viewer-overlay.is-fullscreen.is-mirror-mode .pdf-fs-mirror-badge {
            display: inline-flex;
        }
        .pdf-fs-info-badge {
            max-width: 100%;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1.5px solid rgba(2, 132, 199, 0.38);
            border-radius: 12px;
            padding: 5px 10px;
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.24);
        }
        .btn-mirror-client-mini {
            background: linear-gradient(135deg, #eff6ff 0%, #fef3c7 100%);
            color: #1e3a8a;
            border: 1.5px solid #f59e0b;
            border-radius: 9px;
            padding: 5px 9px;
            font-size: 0.72rem;
            font-weight: 800;
            cursor: pointer;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            box-shadow: 0 2px 6px rgba(245, 158, 11, 0.16);
        }
        .mirror-mini-icon-wrap {
            width: 15px;
            height: 15px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        @media (max-width: 400px) {
            .mirror-persistent-subpill { display: none; }
        }
        @media (max-height: 500px) {
            .admin-global-topbar { padding: max(6px, env(safe-area-inset-top)) 14px 8px; }
            #viewAdmin,
            #viewClient.mirror-active { padding-top: calc(58px + env(safe-area-inset-top)); padding-bottom: 20px; }
            .admin-launcher-viewport { padding: 10px 6px 8px; }
            .admin-launcher-page { grid-template-rows: repeat(3, minmax(84px, auto)); gap: 8px 6px; }
            .admin-app-slot { min-height: 84px; padding: 3px; }
            .admin-app-icon-box { width: 48px; height: 48px; border-radius: 15px; }
            .tile-contact-inner { width: 32px; height: 32px; }
            .mirror-persistent-badge { top: max(6px, env(safe-area-inset-top)); padding: 4px 11px 4px 5px; }
            .mirror-persistent-icon-badge { width: 28px; height: 28px; }
            .mirror-exit-dock { bottom: max(8px, env(safe-area-inset-bottom)); }
            .mirror-exit-hero-btn { min-height: 54px; padding: 7px 12px; border-radius: 17px; }
            .mirror-exit-icon-wrap { width: 40px; height: 40px; padding: 4px; }
            .mirror-exit-title { font-size: 0.95rem; }
            .mirror-exit-action-pill { width: 38px; height: 38px; border-radius: 11px; }
        }
        .mirror-exit-dock,
        .mirror-exit-dock.active {
            display: none !important;
        }

        /* Visionneuse PDF & Listes : Bouton Télécharger Rond + Croix Fermeture Rouge */
        .pdf-download-round-btn {
            width: 40px;
            height: 40px;
            min-width: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
            color: #ffffff;
            border: 2px solid rgba(255, 255, 255, 0.90);
            box-shadow: 0 4px 12px rgba(15, 118, 110, 0.42), 0 0 0 1.5px rgba(13, 148, 136, 0.35);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            flex-shrink: 0;
            transition: transform 0.14s ease, background 0.14s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .pdf-download-round-btn:hover { background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%); }
        .pdf-download-round-btn:active { transform: scale(0.92); }

        /* Espace Client : 2 Boutons côte à côte (Voir ses factures / Document) */
        .client-hub-tabs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 14px;
        }
        .client-hub-tab-btn {
            min-height: 54px;
            padding: 10px 8px;
            border-radius: 16px;
            border: 1.5px solid rgba(255, 255, 255, 0.36);
            background: rgba(15, 23, 42, 0.74);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: #f8fafc;
            font-size: 0.86rem;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            text-align: center;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.34);
            transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .client-hub-tab-btn:active { transform: scale(0.97); }
        .client-hub-tab-btn.active {
            background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
            border-color: #bae6fd;
            color: #ffffff;
            box-shadow: 0 10px 24px rgba(2, 132, 199, 0.48), 0 0 0 2px rgba(186, 230, 253, 0.25);
        }
        .client-hub-count {
            background: rgba(255, 255, 255, 0.22);
            color: #ffffff;
            border-radius: 999px;
            padding: 2px 7px;
            font-size: 0.72rem;
            font-weight: 900;
            line-height: 1.2;
            flex-shrink: 0;
        }
        .client-hub-tabs.has-gift-tab {
            grid-template-columns: 1.08fr 1fr 0.88fr;
            gap: 7px;
        }
        .client-hub-tabs.has-gift-tab .client-hub-tab-btn {
            font-size: clamp(0.71rem, 2.95vw, 0.82rem);
            padding: 8px 6px;
            gap: 5px;
        }
        .client-gift-tab-btn {
            background: linear-gradient(135deg, rgba(180, 83, 9, 0.92) 0%, rgba(217, 119, 6, 0.92) 100%);
            border-color: #fde68a;
            color: #ffffff;
        }
        .client-gift-tab-btn.is-new-surprise {
            background: linear-gradient(135deg, #db2777 0%, #f59e0b 55%, #ea580c 100%);
            border-color: #fde047;
            box-shadow: 0 8px 22px rgba(219, 39, 119, 0.45), 0 0 0 2px rgba(253, 224, 71, 0.45);
            animation: qspGiftGlow 2.2s ease-in-out infinite;
        }
        @keyframes qspGiftGlow {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.03); }
        }
        .client-welcome-tropical-banner.is-surprise-party {
            background: linear-gradient(135deg, #fff1f2 0%, #fef3c7 46%, #e0f2fe 100%);
            border: 2.5px solid #ec4899;
            box-shadow: 0 12px 30px rgba(219, 39, 119, 0.36), 0 0 28px rgba(253, 224, 71, 0.38);
        }
        .client-welcome-tropical-banner.is-surprise-party .tropical-welcome-kicker {
            background: linear-gradient(135deg, #db2777 0%, #f59e0b 100%);
            color: #ffffff;
            border-color: #fde047;
        }
        .surprise-confetti-layer {
            position: absolute;
            inset: 0;
            pointer-events: none;
            overflow: hidden;
            z-index: 2;
            display: none;
        }
        .is-surprise-party .surprise-confetti-layer,
        .surprise-modal-party-banner .surprise-confetti-layer {
            display: block;
        }
        .surprise-confetti-piece {
            position: absolute;
            top: -12px;
            width: 8px;
            height: 11px;
            border-radius: 3px;
            opacity: 0.9;
            animation: qspConfettiFall 3.2s linear infinite;
        }
        .surprise-confetti-piece:nth-child(1) { left: 7%; background: #ec4899; animation-delay: 0s; animation-duration: 2.9s; }
        .surprise-confetti-piece:nth-child(2) { left: 17%; background: #f59e0b; border-radius: 50%; animation-delay: 0.7s; animation-duration: 3.3s; }
        .surprise-confetti-piece:nth-child(3) { left: 28%; background: #0ea5e9; animation-delay: 1.4s; animation-duration: 2.7s; }
        .surprise-confetti-piece:nth-child(4) { left: 39%; background: #10b981; border-radius: 50%; animation-delay: 0.3s; animation-duration: 3.5s; }
        .surprise-confetti-piece:nth-child(5) { left: 50%; background: #a855f7; animation-delay: 1.1s; animation-duration: 3.0s; }
        .surprise-confetti-piece:nth-child(6) { left: 61%; background: #f43f5e; border-radius: 50%; animation-delay: 1.8s; animation-duration: 2.8s; }
        .surprise-confetti-piece:nth-child(7) { left: 72%; background: #eab308; animation-delay: 0.5s; animation-duration: 3.4s; }
        .surprise-confetti-piece:nth-child(8) { left: 82%; background: #06b6d4; border-radius: 50%; animation-delay: 1.2s; animation-duration: 2.9s; }
        .surprise-confetti-piece:nth-child(9) { left: 91%; background: #db2777; animation-delay: 0.9s; animation-duration: 3.1s; }
        .surprise-confetti-piece:nth-child(10) { left: 23%; background: #fb7185; border-radius: 50%; animation-delay: 2.1s; animation-duration: 3.2s; }
        @keyframes qspConfettiFall {
            0% { transform: translateY(-10px) rotate(0deg); opacity: 0.95; }
            100% { transform: translateY(190px) rotate(320deg); opacity: 0.15; }
        }
        @media (prefers-reduced-motion: reduce) {
            .client-gift-tab-btn.is-new-surprise,
            .surprise-confetti-piece,
            .tropical-coco-welcome-left { animation: none !important; }
        }
        .surprise-banner-gift-hint {
            margin-top: 2px;
            background: linear-gradient(135deg, #db2777 0%, #ea580c 100%);
            color: #ffffff;
            border: 1.5px solid #fde047;
            border-radius: 999px;
            padding: 4px 12px;
            font-size: 0.74rem;
            font-weight: 800;
            cursor: pointer;
            box-shadow: 0 3px 10px rgba(219, 39, 119, 0.3);
        }
        .surprise-modal-party-banner {
            position: relative;
            overflow: hidden;
            border-radius: 18px;
            padding: 18px 14px 28px;
            margin-bottom: 12px;
            background: linear-gradient(135deg, #fff1f2 0%, #fef3c7 48%, #e0f2fe 100%);
            border: 2.5px solid #ec4899;
            box-shadow: 0 8px 22px rgba(219, 39, 119, 0.25);
            text-align: center;
            color: #0f172a;
        }
        .client-gift-tab-btn.active {
            background: linear-gradient(135deg, #db2777 0%, #f59e0b 65%, #ea580c 100%);
            border-color: #fef08a;
            color: #ffffff;
            box-shadow: 0 10px 24px rgba(219, 39, 119, 0.48), 0 0 0 2px rgba(254, 240, 138, 0.45);
        }
        .client-gift-section {
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        #clientActiveGiftsList,
        #clientPaidGiftsList {
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        .gift-active-card {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, #fffbeb 55%, #fff1f2 100%);
            border: 2.5px solid #f472b6;
            border-radius: 18px;
            padding: 13px;
            box-shadow: 0 10px 26px rgba(15, 23, 42, 0.25);
            color: #0f172a;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        .gift-active-card.is-claimed {
            border-color: #0ea5e9;
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, #f0f9ff 100%);
        }
        .gift-active-card.is-expired {
            border-color: #cbd5e1;
            background: rgba(248, 250, 252, 0.95);
        }
        .gift-card-top-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }
        .gift-amount-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: linear-gradient(135deg, #db2777 0%, #ea580c 100%);
            color: #ffffff;
            border: 1.5px solid #fde047;
            border-radius: 999px;
            padding: 4px 12px;
            font-size: 0.96rem;
            font-weight: 900;
            box-shadow: 0 4px 12px rgba(219, 39, 119, 0.28);
        }
        .gift-expiry-pill {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: #fef3c7;
            color: #92400e;
            border: 1px solid #fcd34d;
            border-radius: 999px;
            padding: 3px 9px;
            font-size: 0.71rem;
            font-weight: 800;
        }
        .gift-expiry-pill.is-expired {
            background: #fee2e2;
            color: #b91c1c;
            border-color: #fca5a5;
        }
        .gift-claim-main-btn {
            width: 100%;
            border: 1.5px solid #fde047;
            border-radius: 12px;
            padding: 12px 14px;
            background: linear-gradient(135deg, #db2777 0%, #f59e0b 58%, #ea580c 100%);
            color: #ffffff;
            font-size: 0.9rem;
            font-weight: 900;
            cursor: pointer;
            box-shadow: 0 6px 16px rgba(219, 39, 119, 0.34);
            transition: transform 0.12s ease;
            margin-bottom: 10px;
            line-height: 1.3;
        }
        .gift-claim-main-btn:active { transform: scale(0.98); }
        .gift-saved-pill {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
            background: #ecfdf5;
            border: 1.5px solid #34d399;
            border-radius: 10px;
            padding: 7px 10px;
            font-size: 0.74rem;
            font-weight: 800;
            color: #065f46;
        }
        .gift-claim-intro-box {
            background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
            border: 1.5px solid #f59e0b;
            border-left: 4px solid #d97706;
            border-radius: 11px;
            padding: 9px 11px;
            font-size: 0.8rem;
            font-weight: 700;
            color: #78350f;
            line-height: 1.42;
        }
        .gift-iban-input-card {
            background: #ffffff;
            border: 1.5px solid #fb923c;
            border-radius: 11px;
            padding: 9px 10px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            box-shadow: 0 2px 8px rgba(234, 88, 12, 0.08);
        }
        .gift-method-explain-box {
            background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
            border: 1.5px solid #c4b5fd;
            border-radius: 11px;
            padding: 9px 10px;
            font-size: 0.74rem;
            font-weight: 600;
            color: #1e293b;
            line-height: 1.44;
        }
        .gift-method-explain-box strong { color: #5b21b6; }
        .gift-remember-check-row {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
            border: 1.5px solid #6ee7b7;
            border-radius: 11px;
            padding: 9px 10px;
            cursor: pointer;
            user-select: none;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        .gift-remember-check-row input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-top: 2px;
            accent-color: #059669;
            flex-shrink: 0;
            cursor: pointer;
        }
        .gift-faq-card {
            background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
            border: 1.5px solid #7dd3fc;
            border-radius: 11px;
            padding: 9px 10px;
            margin-top: 0;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .gift-faq-title {
            font-size: 0.78rem;
            font-weight: 900;
            color: #0369a1;
        }
        .gift-faq-answer {
            font-size: 0.75rem;
            font-weight: 600;
            color: #0c4a6e;
            line-height: 1.44;
        }
        .gift-claim-form-panel {
            background: #fff8f1;
            border: 1.5px solid #fdba74;
            border-radius: 13px;
            padding: 11px;
            margin-bottom: 10px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .gift-method-pills {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px;
        }
        .gift-method-pill {
            border: 1.5px solid #cbd5e1;
            background: #ffffff;
            color: #334155;
            border-radius: 10px;
            padding: 8px 6px;
            font-size: 0.77rem;
            font-weight: 800;
            cursor: pointer;
            text-align: center;
        }
        .gift-method-pill.active {
            border-color: #db2777;
            background: #fdf2f8;
            color: #9d174d;
            box-shadow: 0 2px 8px rgba(219, 39, 119, 0.18);
        }
        .gift-waiting-card {
            background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
            border: 1.5px solid #38bdf8;
            border-radius: 14px;
            padding: 12px;
            margin-bottom: 10px;
            color: #0c4a6e;
        }
        .gift-waiting-title {
            font-size: 0.87rem;
            font-weight: 900;
            color: #0369a1;
            margin-bottom: 5px;
            line-height: 1.35;
        }
        .gift-waiting-sub {
            font-size: 0.76rem;
            font-weight: 600;
            color: #1e293b;
            line-height: 1.45;
        }
        .gift-thankyou-teaser-wrap {
            display: flex;
            flex-direction: column;
            margin-bottom: 10px;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        .gift-thankyou-teaser-bar {
            display: flex;
            align-items: stretch;
            justify-content: space-between;
            gap: 5px;
            background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
            border: 2px solid #d97706;
            border-left: 5px solid #734729;
            border-radius: 13px;
            padding: 3px 6px 3px 4px;
            margin-top: 2px;
            min-height: 46px;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        .gift-thankyou-teaser-bar.is-locked {
            background: linear-gradient(135deg, #fffdf7 0%, #fefce8 100%);
            border-color: #f59e0b;
        }
        .gift-thankyou-teaser-bar.is-unlocked {
            background: linear-gradient(135deg, #fffbeb 0%, #fde68a 100%);
            border-color: #b45309;
        }
        .gift-thankyou-heart-env {
            display: flex;
            align-items: stretch;
            justify-content: center;
            flex-shrink: 0;
            width: 44px;
        }
        .gift-thankyou-heart-env svg {
            width: 100%;
            height: 100%;
            display: block;
        }
        .gift-thankyou-teaser-label {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            flex: 1;
            min-width: 0;
            font-size: clamp(0.66rem, 2.8vw, 0.8rem);
            font-weight: 800;
            color: #734729;
            line-height: 1.26;
            overflow: hidden;
        }
        .gift-thankyou-line1,
        .gift-thankyou-line2 {
            display: block;
            white-space: nowrap;
        }
        .gift-readmore-btn {
            align-self: center;
            flex-shrink: 0;
            border: 1.5px solid #78350f;
            background: linear-gradient(135deg, #734729 0%, #b45309 100%);
            color: #ffffff;
            border-radius: 10px;
            padding: 6px 11px;
            font-size: 0.74rem;
            font-weight: 800;
            cursor: pointer;
            white-space: nowrap;
            box-shadow: 0 2px 7px rgba(115, 71, 41, 0.25);
            transition: transform 0.12s ease;
        }
        @media (max-width: 360px) {
            .gift-thankyou-line1,
            .gift-thankyou-line2 {
                white-space: normal;
            }
        }
        .gift-readmore-btn:active { transform: scale(0.97); }
        .gift-readmore-btn.is-locked {
            background: #fef3c7;
            color: #92400e;
            border-color: #f59e0b;
            box-shadow: none;
        }
        .surprise-iban-pref-pill {
            font-size: 0.72rem;
            font-weight: 800;
            border-radius: 9px;
            padding: 5px 8px;
            line-height: 1.35;
        }
        .surprise-iban-pref-pill.is-yes {
            background: #ecfdf5;
            border: 1px solid #6ee7b7;
            color: #065f46;
        }
        .surprise-iban-pref-pill.is-no {
            background: #fef2f2;
            border: 1.5px solid #fca5a5;
            color: #991b1b;
        }
        .gift-locked-tooltip {
            position: relative;
            margin-top: 8px;
            background: #fff7ed;
            border: 2px solid #f59e0b;
            border-radius: 12px;
            padding: 9px 11px;
            font-size: 0.75rem;
            font-weight: 600;
            color: #7c2d12;
            line-height: 1.42;
            box-shadow: 0 6px 16px rgba(180, 83, 9, 0.16);
            text-align: left;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        .gift-locked-tooltip::before {
            content: '';
            position: absolute;
            top: -7px;
            right: 26px;
            width: 11px;
            height: 11px;
            background: #fff7ed;
            border-top: 2px solid #f59e0b;
            border-left: 2px solid #f59e0b;
            transform: rotate(45deg);
        }
        .gift-locked-tooltip-close {
            flex-shrink: 0;
            background: #ffedd5;
            border: 1px solid #fdba74;
            color: #9a3412;
            border-radius: 999px;
            width: 22px;
            height: 22px;
            font-size: 0.72rem;
            font-weight: 900;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }
        .gift-thankyou-coco-card {
            background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
            border: 3px solid #734729;
            border-radius: 15px;
            padding: 11px 12px;
            color: #1e293b;
            box-shadow: 0 5px 14px rgba(115, 71, 41, 0.16);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        .gift-thankyou-coco-head {
            display: flex;
            align-items: center;
            gap: 7px;
            font-size: 0.85rem;
            font-weight: 900;
            color: #734729;
            margin-bottom: 6px;
            padding-bottom: 5px;
            border-bottom: 1.5px dashed rgba(115, 71, 41, 0.24);
            flex-shrink: 0;
        }
        .gift-thankyou-scroll-body {
            max-height: clamp(160px, 34dvh, 255px);
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
            padding-right: 4px;
            scrollbar-width: thin;
            scrollbar-color: #b45309 #fef3c7;
            min-width: 0;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        .gift-thankyou-scroll-body::-webkit-scrollbar,
        .surprise-modal-scroll-body::-webkit-scrollbar {
            width: 5px;
        }
        .gift-thankyou-scroll-body::-webkit-scrollbar-thumb,
        .surprise-modal-scroll-body::-webkit-scrollbar-thumb {
            background: rgba(115, 71, 41, 0.38);
            border-radius: 999px;
        }
        .gift-thankyou-coco-text {
            font-size: 0.81rem;
            font-weight: 600;
            color: #334155;
            line-height: 1.48;
            word-break: break-word;
            text-align: left;
        }
        .gift-msg-para {
            margin: 0 0 7px 0;
            white-space: normal;
        }
        .gift-msg-para:last-child { margin-bottom: 0; }
        .gift-msg-line {
            margin: 0;
            padding: 1px 0;
            line-height: 1.48;
            word-break: break-word;
            text-align: left;
            white-space: normal;
        }
        .gift-msg-line.is-align-left { text-align: left; }
        .gift-msg-line.is-align-center { text-align: center; }
        .gift-msg-line.is-align-right { text-align: right; }
        .gift-msg-line-gap {
            height: 8px;
        }
        .gift-fmt-u {
            text-decoration: underline;
            text-underline-offset: 2px;
        }
        .surprise-live-text-preview {
            background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
            border: 2px solid #734729;
            border-radius: 12px;
            padding: 9px 11px;
            max-height: 135px;
            overflow-y: auto;
            margin-bottom: 8px;
            font-size: 0.79rem;
            font-weight: 600;
            color: #334155;
            line-height: 1.48;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        .gift-quote-box {
            border-radius: 11px;
            border: 1.5px solid #fcd34d;
            border-left-width: 5px;
            padding: 9px 11px;
            margin: 7px 0;
            font-size: 0.8rem;
            font-weight: 700;
            line-height: 1.46;
            white-space: normal;
            word-break: break-word;
            box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
            text-align: left;
        }
        .gift-quote-box.is-or { background: #fff7ed; border-color: #fdba74; border-left-color: #ea580c; color: #7c2d12; }
        .gift-quote-box.is-vert { background: #ecfdf5; border-color: #6ee7b7; border-left-color: #059669; color: #065f46; }
        .gift-quote-box.is-bleu { background: #eff6ff; border-color: #93c5fd; border-left-color: #0284c7; color: #0c4a6e; }
        .gift-quote-box.is-rose { background: #fdf2f8; border-color: #f9a8d4; border-left-color: #db2777; color: #831843; }
        .gift-msg-link {
            color: #0369a1;
            font-weight: 900;
            text-decoration: underline;
            text-underline-offset: 2px;
            word-break: break-all;
        }
        .gift-msg-link:hover { color: #0284c7; }
        .gift-thankyou-img {
            display: block;
            max-width: 100%;
            max-height: 160px;
            margin: 8px auto 0;
            border-radius: 10px;
            border: 1.5px solid #fde68a;
            object-fit: contain;
        }
        .gift-site-preview-card {
            background: #ffffff;
            border: 1.5px solid #bae6fd;
            border-radius: 12px;
            overflow: hidden;
            margin-top: 8px;
            box-shadow: 0 3px 10px rgba(2, 132, 199, 0.12);
            text-align: left;
            min-width: 0;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        .gift-site-preview-bar {
            background: #e0f2fe;
            padding: 6px 9px;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.72rem;
            font-weight: 800;
            color: #0369a1;
            border-bottom: 1px solid #bae6fd;
            min-width: 0;
            overflow: hidden;
        }
        .gift-site-preview-favicon {
            width: 15px;
            height: 15px;
            border-radius: 3px;
            flex-shrink: 0;
            object-fit: contain;
        }
        .gift-site-preview-shot-wrap {
            background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
            min-height: 76px;
            width: 100%;
            max-width: 100%;
            display: block;
            overflow: hidden;
            position: relative;
        }
        .gift-site-preview-shot {
            width: 100%;
            height: auto;
            max-height: 175px;
            object-fit: cover;
            object-position: top center;
            display: block;
        }
        .gift-site-preview-url {
            padding: 5px 9px;
            font-size: 0.7rem;
            font-weight: 700;
            color: #475569;
            background: #f8fafc;
            border-top: 1px solid #e2e8f0;
            word-break: break-all;
        }
        .gift-site-cta-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            box-sizing: border-box;
            margin-top: 8px;
            padding: 10px 12px;
            border-radius: 11px;
            background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
            color: #ffffff !important;
            font-size: 0.84rem;
            font-weight: 900;
            text-decoration: none;
            box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
            flex-shrink: 0;
            text-align: center;
        }
        .gift-site-cta-btn:active { transform: scale(0.98); }
        .surprise-modal-scroll-body {
            max-height: clamp(165px, 42dvh, 320px);
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
            margin-bottom: 8px;
            padding-right: 4px;
            scrollbar-width: thin;
            scrollbar-color: #b45309 #fef3c7;
            min-width: 0;
            width: 100%;
            box-sizing: border-box;
        }
        .surprise-editor-toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 6px;
        }
        .gift-history-row {
            background: rgba(255, 255, 255, 0.96);
            border: 1.5px solid #fde68a;
            border-radius: 14px;
            padding: 9px 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            box-shadow: 0 5px 14px rgba(15, 23, 42, 0.22);
        }
        .gift-history-left {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            flex: 1;
        }
        .gift-history-date {
            font-size: 0.82rem;
            font-weight: 800;
            color: #0f172a;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .gift-history-amount {
            font-size: 0.85rem;
            font-weight: 900;
            color: #047857;
            background: #ecfdf5;
            border: 1px solid #a7f3d0;
            border-radius: 999px;
            padding: 2px 9px;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .gift-info-round-btn {
            width: 32px;
            height: 32px;
            min-width: 32px;
            border-radius: 50%;
            border: 1.5px solid #734729;
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            color: #734729;
            font-family: Georgia, serif;
            font-size: 0.96rem;
            font-weight: 900;
            font-style: italic;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 2px 6px rgba(115, 71, 41, 0.24);
        }
        .gift-info-round-btn:active { transform: scale(0.92); }
        @media (max-width: 375px) {
            .gift-history-row { padding: 8px 10px; gap: 6px; }
            .gift-history-date { font-size: 0.77rem; }
            .gift-history-amount { font-size: 0.78rem; padding: 2px 7px; }
        }
        .surprise-modal-party-kicker {
            display: inline-block;
            background: linear-gradient(135deg, #db2777 0%, #f59e0b 100%);
            color: #ffffff;
            border: 1px solid #fde047;
            border-radius: 999px;
            padding: 4px 12px;
            font-size: 0.75rem;
            font-weight: 800;
            margin-bottom: 5px;
        }

        /* Sélecteur Type (Facture / Document) dans Admin */
        .admin-type-pills {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-bottom: 12px;
        }
        .admin-type-pill {
            min-height: 40px;
            padding: 7px 10px;
            border-radius: 11px;
            border: 1.5px solid #cbd5e1;
            background: #f8fafc;
            color: #334155;
            font-size: 0.8rem;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.14s ease;
        }
        .admin-type-pill.active {
            background: #0284c7;
            border-color: #0284c7;
            color: #ffffff;
            box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
        }

        /* Menu Administrateur épuré style Lanceur Mobile 3x3 Réorganisable */
        .admin-launcher-shell {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
            padding-top: 8px;
        }
        .admin-launcher-viewport {
            position: relative;
            width: 100%;
            overflow: hidden;
            border-radius: 26px;
            background: rgba(15, 23, 42, 0.28);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.16);
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
            padding: 16px 8px 14px;
            touch-action: pan-y;
            user-select: none;
            -webkit-user-select: none;
        }
        .admin-launcher-viewport.is-dragging {
            touch-action: none;
        }
        .admin-launcher-track {
            display: flex;
            width: 200%;
            transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
            will-change: transform;
        }
        .admin-launcher-track.no-transition {
            transition: none;
        }
        .admin-launcher-page {
            width: 50%;
            flex: 0 0 50%;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            grid-template-rows: repeat(3, minmax(104px, auto));
            gap: 14px 6px;
            padding: 2px 6px;
            box-sizing: border-box;
        }
        .admin-app-slot {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            min-height: 104px;
            border-radius: 20px;
            padding: 6px 4px 4px;
            border: 1.5px dashed transparent;
            transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
        }
        .admin-launcher-shell.is-reordering .admin-app-slot.is-empty {
            border-color: rgba(255, 255, 255, 0.28);
            background: rgba(255, 255, 255, 0.05);
        }
        .admin-app-slot.is-drop-target {
            border-color: #fde047 !important;
            background: rgba(251, 191, 36, 0.22) !important;
            transform: scale(1.04);
        }
        .admin-app-tile {
            width: 100%;
            background: none;
            border: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 7px;
            cursor: pointer;
            color: #ffffff;
            -webkit-tap-highlight-color: transparent;
            touch-action: pan-y;
            user-select: none;
        }
        .admin-app-tile:active .admin-app-icon-box {
            transform: scale(0.92);
        }
        .admin-launcher-shell.is-reordering .admin-app-tile {
            animation: adminIconJiggle 0.32s ease-in-out infinite alternate;
            touch-action: none;
            cursor: grab;
        }
        @keyframes adminIconJiggle {
            0% { transform: rotate(-1.5deg); }
            100% { transform: rotate(1.5deg); }
        }
        .admin-app-slot.is-drag-source .admin-app-tile {
            opacity: 0.24;
            transform: scale(0.9);
            animation: none;
        }
        .admin-app-icon-box {
            position: relative;
            width: clamp(58px, 16.5vw, 68px);
            height: clamp(58px, 16.5vw, 68px);
            border-radius: 19px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.32);
            transition: transform 0.14s ease, box-shadow 0.14s ease;
            flex-shrink: 0;
        }
        .admin-app-icon-box.tile-youtube {
            background: linear-gradient(145deg, #ffffff 0%, #fff1f2 100%);
            border: 2px solid rgba(254, 202, 202, 0.95);
        }
        .admin-app-icon-box.tile-messages {
            background: linear-gradient(135deg, #065f46 0%, #047857 45%, #022c22 100%);
            border: 2px solid rgba(167, 243, 208, 0.90);
            box-shadow: 0 10px 22px rgba(2, 44, 34, 0.56), 0 0 16px rgba(16, 185, 129, 0.36);
        }
        .tile-contact-inner {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.28);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
        }
        .admin-app-icon-box.tile-clients {
            background: linear-gradient(145deg, #38bdf8 0%, #0284c7 100%);
            border: 2px solid rgba(186, 230, 253, 0.90);
        }
        .admin-app-icon-box.tile-scheduled {
            background: linear-gradient(145deg, #fbbf24 0%, #d97706 100%);
            border: 2px solid rgba(254, 243, 199, 0.92);
        }
        .admin-app-icon-box.tile-add {
            background: linear-gradient(145deg, #60a5fa 0%, #1d4ed8 100%);
            border: 2px solid rgba(191, 219, 254, 0.90);
        }
        .admin-app-icon-box.tile-bulk-add {
            background: linear-gradient(145deg, #14b8a6 0%, #0369a1 100%);
            border: 2px solid rgba(153, 246, 228, 0.92);
        }
        .admin-app-icon-box.tile-mirror {
            background: linear-gradient(145deg, #fef9c3 0%, #e0f2fe 100%);
            border: 2px solid #fbbf24;
            padding: 9px;
        }
        .admin-app-icon-box.tile-archive {
            background: linear-gradient(145deg, #64748b 0%, #334155 100%);
            border: 2px solid rgba(203, 213, 225, 0.85);
        }
        .admin-app-icon-box.tile-firestore {
            background: linear-gradient(145deg, #0ea5e9 0%, #1d4ed8 100%);
            border: 2px solid rgba(186, 230, 253, 0.88);
        }
        .admin-app-icon-box.tile-secrets {
            background: linear-gradient(145deg, #8b5cf6 0%, #4338ca 100%);
            border: 2px solid rgba(221, 214, 254, 0.90);
        }
        .admin-app-icon-box.tile-notes {
            background: linear-gradient(145deg, #facc15 0%, #d97706 100%);
            border: 2px solid rgba(254, 240, 138, 0.92);
        }
        .admin-app-icon-box.tile-limits {
            background: linear-gradient(145deg, #10b981 0%, #0f766e 100%);
            border: 2px solid rgba(167, 243, 208, 0.90);
        }
        .admin-app-icon-box.tile-surprise {
            background: linear-gradient(145deg, #ec4899 0%, #f59e0b 100%);
            border: 2px solid rgba(254, 240, 138, 0.96);
        }
        .admin-app-icon-box.tile-custom-emails {
            background: linear-gradient(145deg, #0ea5e9 0%, #6366f1 55%, #ec4899 100%);
            border: 2px solid rgba(224, 231, 255, 0.94);
        }
        .admin-app-label {
            font-size: 0.77rem;
            font-weight: 800;
            line-height: 1.18;
            color: #ffffff;
            text-align: center;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.88), 0 0 8px rgba(0, 0, 0, 0.45);
            word-break: keep-all;
        }
        .admin-app-badge {
            position: absolute;
            top: -6px;
            right: -6px;
            min-width: 22px;
            height: 22px;
            padding: 0 6px;
            border-radius: 999px;
            background: #ef4444;
            color: #ffffff;
            border: 2px solid #ffffff;
            font-size: 0.7rem;
            font-weight: 900;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
            line-height: 1;
        }
        .admin-app-badge.amber {
            background: #f59e0b;
        }
        .admin-launcher-edge-zone {
            position: absolute;
            top: 12px;
            bottom: 12px;
            width: 34px;
            border-radius: 16px;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            font-weight: 900;
            color: #fef08a;
            background: rgba(15, 23, 42, 0.55);
            border: 1.5px dashed rgba(251, 191, 36, 0.75);
            z-index: 8;
            pointer-events: none;
        }
        .admin-launcher-edge-zone.left { left: 4px; }
        .admin-launcher-edge-zone.right { right: 4px; }
        .admin-launcher-edge-zone.active {
            display: flex;
        }
        .admin-launcher-controls {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 0 4px;
        }
        .admin-launcher-pages-bar {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(15, 23, 42, 0.48);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.20);
            border-radius: 999px;
            padding: 5px 10px;
        }
        .admin-launcher-dot {
            border: none;
            background: rgba(255, 255, 255, 0.38);
            color: #e2e8f0;
            border-radius: 999px;
            width: 10px;
            height: 10px;
            padding: 0;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 0;
            line-height: 0;
            -webkit-tap-highlight-color: transparent;
        }
        .admin-launcher-dot.is-active {
            width: 24px;
            background: #ffffff;
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
        }
        .admin-launcher-shell.is-dragging .admin-launcher-dot,
        .admin-launcher-shell.is-reordering .admin-launcher-dot {
            width: auto;
            height: auto;
            padding: 4px 10px;
            font-size: 0.72rem;
            font-weight: 800;
            line-height: 1.2;
            background: rgba(255, 255, 255, 0.14);
            color: #ffffff;
            border: 1px dashed rgba(255, 255, 255, 0.35);
        }
        .admin-launcher-shell.is-dragging .admin-launcher-dot.is-active,
        .admin-launcher-shell.is-reordering .admin-launcher-dot.is-active {
            background: rgba(251, 191, 36, 0.28);
            border: 1px solid #fbbf24;
            color: #fef08a;
        }
        .admin-launcher-dot.is-drop-hover {
            transform: scale(1.08);
            background: rgba(251, 191, 36, 0.55) !important;
            border-color: #fef08a !important;
        }
        .admin-launcher-right-btns {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .admin-launcher-pill-btn {
            height: 32px;
            padding: 0 12px;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.52);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.24);
            color: #f8fafc;
            font-size: 0.74rem;
            font-weight: 800;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: all 0.15s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .admin-launcher-pill-btn.is-active {
            background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
            border-color: #fef3c7;
            color: #0f172a;
        }
        .admin-launcher-reset-btn {
            width: 32px;
            height: 32px;
            padding: 0;
            border-radius: 50%;
            background: rgba(15, 23, 42, 0.52);
            border: 1px solid rgba(255, 255, 255, 0.24);
            color: #f8fafc;
            font-size: 0.9rem;
            font-weight: 800;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
        }
        .admin-launcher-shell.is-reordering .admin-launcher-reset-btn {
            display: inline-flex;
        }
        .admin-launcher-hint {
            font-size: 0.72rem;
            font-weight: 700;
            color: #fef9c3;
            text-align: center;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
            display: none;
        }
        .admin-launcher-shell.is-reordering .admin-launcher-hint {
            display: block;
        }
        .admin-app-ghost {
            position: fixed;
            left: 0;
            top: 0;
            width: 96px;
            pointer-events: none;
            z-index: 240;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 7px;
            transform: translate(-50%, -58%) scale(1.1);
            filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.55));
        }
        .admin-tab-badge {
            background: #ef4444 !important;
            color: #ffffff !important;
            font-size: 0.72rem;
            font-weight: 800;
            padding: 2px 8px;
            border-radius: 999px;
            line-height: 1.2;
            box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
            display: inline-block;
            vertical-align: middle;
        }
        .admin-msg-card {
            background: #f8fafc;
            border: 1.5px solid #e2e8f0;
            border-radius: 14px;
            padding: 12px;
            position: relative;
            transition: all 0.15s ease;
        }
        .admin-msg-card.unread {
            background: #f0f9ff;
            border-color: #38bdf8;
            border-left: 4px solid #0284c7;
        }
        .admin-msg-card.selected {
            background: #eff6ff !important;
            border-color: #0284c7 !important;
            box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
        }
        .admin-yt-slot-card {
            background: #f8fafc;
            border: 1.5px solid #e2e8f0;
            border-radius: 14px;
            padding: 12px;
            margin-bottom: 10px;
        }
        .admin-yt-slot-card .pin-gen-row .form-input {
            flex: 1 1 0;
            width: 0;
            min-width: 0;
        }
        .admin-yt-slot-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }
        .admin-yt-head-controls {
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        .admin-yt-mini-btn {
            width: 26px;
            height: 26px;
            border-radius: 8px;
            border: 1px solid #cbd5e1;
            background: #ffffff;
            color: #334155;
            font-family: inherit;
            font-size: 0.78rem;
            font-weight: 900;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            transition: background 0.14s ease, border-color 0.14s ease, opacity 0.14s ease;
        }
        .admin-yt-mini-btn:hover:not(:disabled) {
            background: #f1f5f9;
            border-color: #94a3b8;
        }
        .admin-yt-mini-btn.danger {
            background: #fef2f2;
            border-color: #fecaca;
            color: #dc2626;
        }
        .admin-yt-mini-btn.danger:hover:not(:disabled) {
            background: #fee2e2;
            border-color: #f87171;
        }
        .admin-yt-mini-btn:disabled {
            opacity: 0.35;
            cursor: default;
        }
        .admin-yt-slot-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #fee2e2;
            color: #b91c1c;
            border: 1px solid #fecaca;
            border-radius: 999px;
            padding: 3px 10px;
            font-size: 0.76rem;
            font-weight: 800;
        }
        .admin-yt-status-pill {
            font-size: 0.72rem;
            font-weight: 800;
            padding: 3px 9px;
            border-radius: 999px;
            background: #e2e8f0;
            color: #475569;
            white-space: nowrap;
        }
        .admin-yt-status-pill.ok {
            background: #dcfce7;
            color: #166534;
            border: 1px solid #86efac;
        }
        .admin-yt-status-pill.err {
            background: #fef2f2;
            color: #b91c1c;
            border: 1px solid #fecaca;
        }
        .admin-yt-preview-row {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #ffffff;
            border: 1px solid #cbd5e1;
            border-radius: 10px;
            padding: 7px 9px;
            margin-bottom: 10px;
        }
        .admin-yt-thumb-box {
            width: 76px;
            height: 43px;
            border-radius: 7px;
            overflow: hidden;
            background: #0f172a;
            border: 1px solid #1e293b;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            font-size: 0.7rem;
            font-weight: 700;
        }
        .admin-yt-thumb-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .admin-yt-preview-meta {
            flex: 1;
            min-width: 0;
        }
        .admin-yt-preview-id {
            font-size: 0.74rem;
            font-weight: 800;
            color: #0f172a;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .admin-yt-preview-hint {
            font-size: 0.7rem;
            font-weight: 600;
            color: #64748b;
            line-height: 1.3;
        }
        .admin-yt-swap-order-btn {
            width: 100%;
            border: 1.5px dashed #94a3b8;
            background: #f8fafc;
            color: #334155;
            border-radius: 10px;
            padding: 7px 10px;
            font-family: inherit;
            font-size: 0.78rem;
            font-weight: 800;
            cursor: pointer;
            margin-bottom: 10px;
            transition: background 0.15s ease, border-color 0.15s ease;
        }
        .admin-yt-swap-order-btn:hover {
            background: #f1f5f9;
            border-color: #0284c7;
            color: #0369a1;
        }
        .admin-yt-actions-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-top: 8px;
        }
        .admin-yt-secondary-btn {
            border: 1.5px solid #cbd5e1;
            background: #ffffff;
            color: #334155;
            border-radius: 10px;
            padding: 9px 10px;
            font-family: inherit;
            font-size: 0.79rem;
            font-weight: 800;
            cursor: pointer;
            text-align: center;
            transition: background 0.15s ease, border-color 0.15s ease;
        }
        .admin-yt-secondary-btn:hover {
            background: #f8fafc;
            border-color: #94a3b8;
        }
        .admin-yt-feedback {
            display: none;
            margin-top: 10px;
            padding: 9px 12px;
            border-radius: 10px;
            font-size: 0.79rem;
            font-weight: 700;
            line-height: 1.35;
        }
        .admin-yt-feedback.ok {
            display: block;
            background: #dcfce7;
            color: #166534;
            border: 1px solid #86efac;
        }
        .admin-yt-feedback.err {
            display: block;
            background: #fef2f2;
            color: #b91c1c;
            border: 1px solid #fecaca;
        }

        .client-welcome-tropical-banner {
            position: relative;
            overflow: hidden;
            border-radius: 20px;
            padding: 20px 18px 34px;
            margin-bottom: 14px;
            background: linear-gradient(155deg, #fffdf4 0%, #fef3c7 36%, #e0f2fe 74%, #bae6fd 100%);
            border: 2px solid #fde68a;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.48), 0 0 24px rgba(251, 191, 36, 0.22);
            text-align: center;
            color: #0f172a;
        }
        .tropical-sun-disc {
            position: absolute;
            top: -18px;
            right: -12px;
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(253, 224, 71, 0.9) 0%, rgba(251, 191, 36, 0.45) 55%, rgba(251, 191, 36, 0) 75%);
            pointer-events: none;
            animation: sunWarmGlow 4.5s ease-in-out infinite;
        }
        @keyframes sunWarmGlow {
            0%, 100% { transform: scale(1); opacity: 0.85; }
            50% { transform: scale(1.16); opacity: 1; }
        }
        .tropical-palm-right {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 58px;
            height: 58px;
            pointer-events: none;
            opacity: 0.88;
            transform-origin: bottom right;
            animation: palmBreezeRight 5.4s ease-in-out infinite;
        }
        .tropical-coco-welcome-left {
            position: absolute;
            top: 6px;
            left: 6px;
            width: 58px;
            height: 58px;
            pointer-events: none;
            z-index: 2;
            filter: drop-shadow(0 4px 8px rgba(120, 53, 15, 0.24));
            transform-origin: center bottom;
            animation: cocoWelcomeSway 5.2s ease-in-out infinite;
        }
        @keyframes cocoWelcomeSway {
            0%, 100% { transform: rotate(-2.5deg) scale(1); }
            50% { transform: rotate(2.5deg) scale(1.03); }
        }
        @keyframes palmBreezeRight {
            0%, 100% { transform: scaleX(-1) rotate(0deg); }
            50% { transform: scaleX(-1) rotate(4.5deg); }
        }
        .tropical-welcome-content {
            position: relative;
            z-index: 3;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            width: 100%;
            box-sizing: border-box;
            padding: 0 54px;
        }
        .tropical-welcome-kicker {
            position: relative;
            overflow: hidden;
            font-size: 0.76rem;
            font-weight: 800;
            color: #b45309;
            background: rgba(255, 255, 255, 0.86);
            border: 1px solid rgba(251, 191, 36, 0.72);
            padding: 4px 12px;
            border-radius: 999px;
            letter-spacing: 0.3px;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.18);
        }
        .tropical-welcome-kicker::after {
            content: "";
            position: absolute;
            top: -20%;
            left: -65%;
            width: 55%;
            height: 140%;
            background: linear-gradient(110deg, rgba(255,255,255,0) 15%, rgba(253, 224, 71, 0.65) 48%, rgba(255,255,255,0.88) 54%, rgba(255,255,255,0) 85%);
            transform: skewX(-18deg);
            pointer-events: none;
            animation: sunBadgeSweep 4.8s ease-in-out infinite;
        }
        @keyframes sunBadgeSweep {
            0%, 58% { left: -65%; opacity: 0; }
            64% { opacity: 1; }
            88% { left: 130%; opacity: 0.95; }
            100% { left: 130%; opacity: 0; }
        }
        .tropical-email-pill {
            display: inline-block;
            background: rgba(255, 255, 255, 0.85);
            border: 1px solid rgba(56, 189, 248, 0.45);
            border-radius: 999px;
            padding: 4px 12px;
            font-size: 0.82rem;
            color: #0369a1;
            font-weight: 700;
            word-break: break-all;
            box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
        }
        .tropical-banner-waves {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 200%;
            height: 26px;
            pointer-events: none;
            z-index: 2;
            overflow: hidden;
        }
        .tropical-water-glints {
            position: absolute;
            bottom: 3px;
            left: 0;
            width: 100%;
            height: 22px;
            pointer-events: none;
            z-index: 4;
        }
        .tropical-water-glints span {
            position: absolute;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: radial-gradient(circle, #ffffff 0%, #fde047 55%, rgba(253,224,71,0) 100%);
            box-shadow: 0 0 8px rgba(254, 240, 138, 0.95), 0 0 14px rgba(255,255,255,0.85);
            animation: waterSparkle 2.8s ease-in-out infinite;
        }
        .tropical-water-glints span:nth-child(1) { left: 14%; bottom: 6px; animation-delay: 0s; }
        .tropical-water-glints span:nth-child(2) { left: 32%; bottom: 11px; width: 5px; height: 5px; animation-delay: 0.7s; }
        .tropical-water-glints span:nth-child(3) { left: 53%; bottom: 5px; width: 7px; height: 7px; animation-delay: 1.3s; }
        .tropical-water-glints span:nth-child(4) { left: 73%; bottom: 10px; animation-delay: 0.4s; }
        .tropical-water-glints span:nth-child(5) { left: 88%; bottom: 6px; width: 5px; height: 5px; animation-delay: 1.9s; }
        @keyframes waterSparkle {
            0%, 100% { transform: scale(0.35); opacity: 0.15; }
            50% { transform: scale(1.25); opacity: 1; }
        }
        .tropical-wave-layer {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 200%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,25 C180,95 420,-15 600,45 C780,105 1020,10 1200,50 L1200,120 L0,120 Z' fill='rgba(14,165,233,0.32)'%3E%3C/path%3E%3C/svg%3E") repeat-x;
            background-size: 460px 26px;
            animation: tropicalWaveSlide 6.5s linear infinite;
        }
        .tropical-wave-layer.front {
            opacity: 0.85;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,45 C200,110 400,5 600,55 C800,105 1000,15 1200,60 L1200,120 L0,120 Z' fill='rgba(2,132,199,0.42)'%3E%3C/path%3E%3C/svg%3E") repeat-x;
            background-size: 380px 26px;
            animation: tropicalWaveSlideReverse 9s linear infinite;
        }
        @keyframes tropicalWaveSlide {
            0% { transform: translateX(0); }
            100% { transform: translateX(-460px); }
        }
        @keyframes tropicalWaveSlideReverse {
            0% { transform: translateX(-380px); }
            100% { transform: translateX(0); }
        }

        /* Boîtes de dialogue tropicales : cadre uni couleur noix de coco + coco cocktail dépassant en haut à gauche */
        .tropical-rope-box {
            position: relative;
            overflow: visible !important;
            padding: 0 !important;
            max-height: 84vh !important;
            margin-top: 18px;
            background: #ffffff !important;
            border: 4px solid #734729 !important;
            border-radius: 24px !important;
            box-shadow: 0 22px 50px rgba(0, 0, 0, 0.52), 0 0 0 2px rgba(255, 255, 255, 0.25) !important;
            display: flex;
            flex-direction: column;
        }
        .tropical-box-scroll {
            overflow-y: auto;
            max-height: calc(84vh - 10px);
            padding: 18px 20px 20px;
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .tropical-coco-badge {
            position: absolute;
            top: -36px;
            left: -22px;
            width: 78px;
            height: 78px;
            pointer-events: none;
            z-index: 8;
            filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
        }
        .tropical-dialog-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            padding-left: 38px;
            position: relative;
            z-index: 4;
        }
        .modal-close-circle {
            width: 36px;
            height: 36px;
            min-width: 36px;
            border-radius: 50%;
            border: 2px solid #f43f5e;
            background: #fff1f2;
            color: #e11d48;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            box-shadow: 0 3px 10px rgba(244, 63, 94, 0.22);
            transition: transform 0.14s ease, background 0.14s ease, color 0.14s ease;
            -webkit-tap-highlight-color: transparent;
            flex-shrink: 0;
        }
        .modal-close-circle:hover {
            background: #ffe4e6;
        }
        .modal-close-circle:active {
            transform: scale(0.91);
            background: #e11d48;
            color: #ffffff;
            border-color: #e11d48;
        }
        .secret-vault-badge {
            display: inline-block;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: #047857;
            background: #d1fae5;
            border: 1px solid #6ee7b7;
            padding: 2px 9px;
            border-radius: 999px;
        }
        .secret-vault-visual {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
            border-radius: 18px;
            background: linear-gradient(180deg, #f0f9ff 0%, #ecfdf5 100%);
            border: 1.5px solid #bae6fd;
            box-shadow: inset 0 2px 8px rgba(14, 165, 233, 0.08);
        }
        .secret-vault-visual svg {
            max-width: 100%;
            height: auto;
            display: block;
        }
        .secret-vault-stats {
            font-size: 0.79rem;
            font-weight: 700;
            color: #0369a1;
            background: #e0f2fe;
            border: 1px solid #7dd3fc;
            border-radius: 12px;
            padding: 6px 10px;
        }
        .secret-vault-play-btn {
            width: 100%;
            border: none;
            border-radius: 14px;
            padding: 13px 16px;
            font-size: 1.06rem;
            font-weight: 900;
            letter-spacing: 0.8px;
            color: #ffffff;
            background: linear-gradient(135deg, #10b981 0%, #059669 50%, #0284c7 100%);
            box-shadow: 0 8px 20px rgba(5, 150, 105, 0.36);
            cursor: pointer;
            transition: transform 0.12s ease, box-shadow 0.12s ease;
        }
        .secret-vault-play-btn:hover {
            box-shadow: 0 10px 24px rgba(5, 150, 105, 0.45);
        }
        .secret-vault-play-btn:active {
            transform: scale(0.97);
        }

        /* Animation florale & feuillage tropical à l'ouverture d'une facture PDF */
        .pdf-tropical-fx-layer {
            position: absolute;
            inset: 0;
            pointer-events: none;
            overflow: hidden;
            z-index: 70;
        }
        .pdf-tropical-petal {
            position: absolute;
            top: -36px;
            opacity: 0;
            pointer-events: none;
            animation: tropicalPetalFloat 2.35s cubic-bezier(0.25, 0.8, 0.35, 1) forwards;
            filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.32));
        }
        @keyframes tropicalPetalFloat {
            0% {
                transform: translate3d(0, 0, 0) rotate(0deg) scale(0.75);
                opacity: 0;
            }
            16% {
                opacity: 0.95;
            }
            75% {
                opacity: 0.88;
            }
            100% {
                transform: translate3d(var(--drift-x, 18px), 260px, 0) rotate(var(--spin-deg, 95deg)) scale(1.06);
                opacity: 0;
            }
        }

        /* Bouton d'envoi immédiat pour une facture programmée */
        .btn-send-now {
            margin-top: 7px;
            background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
            color: #ffffff;
            border: none;
            border-radius: 9px;
            padding: 6px 11px;
            font-size: 0.76rem;
            font-weight: 800;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            box-shadow: 0 3px 10px rgba(22, 163, 74, 0.32);
            -webkit-tap-highlight-color: transparent;
        }
        .btn-send-now:hover { background: linear-gradient(135deg, #15803d, #047857); }
        .btn-send-now:active { transform: scale(0.97); }

        /* Cartes Fond Blanc Pur */
        .white-card {
            background: #ffffff; border-radius: 18px; padding: 16px; max-width: 100%; min-width: 0; overflow-x: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); margin-bottom: 12px; color: #0f172a;
        }
        .user-greeting {
            font-size: 1.35rem; font-weight: 800; color: #0f172a; margin-bottom: 4px;
            display: flex; align-items: center; justify-content: center; text-align: center; gap: 6px; flex-wrap: wrap;
        }
        .user-greeting span.star { color: #0284c7; }
        .user-email-tag { font-size: 0.82rem; color: #475569; font-weight: 500; text-align: center; word-break: break-all; }

        /* Notification de prochaine facture programmée */
        .scheduled-announcement-card {
            background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
            border: 1.5px solid #38bdf8;
            border-radius: 16px;
            padding: 12px 14px;
            margin-bottom: 14px;
            box-shadow: 0 6px 16px rgba(56, 189, 248, 0.2);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .announcement-icon {
            font-size: 1.4rem;
            flex-shrink: 0;
        }
        .announcement-text {
            font-size: 0.84rem;
            color: #0369a1;
            font-weight: 600;
            line-height: 1.35;
        }
        .announcement-date {
            color: #0c4a6e;
            font-weight: 800;
        }

        .section-header-row {
            display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
        }
        .section-title-white {
            font-size: 0.98rem;
            font-weight: 800;
            color: #ffffff;
            background: rgba(15, 23, 42, 0.68);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.24);
            padding: 5px 12px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        }
        .sort-select-white {
            background: #ffffff; color: #0f172a; border: 1px solid #cbd5e1;
            border-radius: 10px; padding: 6px 10px; font-size: 0.78rem; font-weight: 600; outline: none; cursor: pointer;
        }

        .invoice-card-white {
            position: relative;
            background: #ffffff;
            border: 1px solid rgba(203, 213, 225, 0.9);
            border-radius: 13px;
            padding: 7px 9px;
            margin-bottom: 7px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 6px;
            flex-wrap: nowrap;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.24);
        }
        .invoice-card-white.is-latest-invoice {
            margin-top: 10px;
            background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
            border: 1.5px solid #f59e0b;
            box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
        }
        .invoice-latest-tag {
            position: absolute;
            top: -9px;
            left: 10px;
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: #ffffff;
            border: 1px solid #ffffff;
            border-radius: 999px;
            padding: 1px 7px;
            font-size: 0.58rem;
            font-weight: 900;
            letter-spacing: 0.02em;
            line-height: 1.3;
            box-shadow: 0 2px 6px rgba(180, 83, 9, 0.35);
            pointer-events: none;
            white-space: nowrap;
        }
        .invoice-month-header {
            margin: 14px 0 10px;
        }
        .invoice-month-header:first-child {
            margin-top: 2px;
        }
        .invoice-month-label {
            display: inline-block;
            font-size: 0.88rem;
            font-weight: 800;
            color: #0369a1;
            background: rgba(255, 255, 255, 0.90);
            border: 1px solid rgba(2, 132, 199, 0.34);
            border-radius: 999px;
            padding: 3px 11px;
            letter-spacing: 0.02em;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
        }
        .invoice-month-line {
            width: 100%;
            height: 2px;
            min-height: 2px;
            margin-top: 6px;
            border-radius: 999px;
            background: linear-gradient(90deg, rgba(3, 105, 161, 0.92) 0%, rgba(2, 132, 199, 0.65) 70%, rgba(2, 132, 199, 0.14) 100%);
        }
        .invoice-year-toggle-bar {
            display: none;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin: 0 0 12px;
        }
        .invoice-year-section-bar {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 14px 0 8px;
        }
        .invoice-year-section-bar:first-child {
            margin-top: 2px;
        }
        .invoice-year-line {
            flex: 1;
            height: 2px;
            min-height: 2px;
            border-radius: 999px;
            background: linear-gradient(90deg, rgba(2, 132, 199, 0.55) 0%, rgba(2, 132, 199, 0.14) 100%);
        }
        .invoice-year-eye-btn {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            background: rgba(255, 255, 255, 0.94);
            color: #0369a1;
            border: 1.5px solid rgba(2, 132, 199, 0.40);
            border-radius: 999px;
            padding: 7px 14px;
            font-size: 0.79rem;
            font-weight: 800;
            cursor: pointer;
            flex-shrink: 0;
            box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
            transition: transform 0.14s ease, background 0.14s ease, color 0.14s ease;
        }
        .invoice-year-eye-btn:active {
            transform: scale(0.97);
        }
        .invoice-year-eye-btn.is-shown {
            background: #0369a1;
            color: #ffffff;
            border-color: rgba(255, 255, 255, 0.65);
        }
        .invoice-year-eye-btn svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }
        .bulk-pdf-item-card {
            background: #f8fafc;
            border: 1.5px solid #cbd5e1;
            border-radius: 14px;
            padding: 10px 12px;
            margin-bottom: 10px;
        }
        .bulk-pdf-item-card.is-error {
            background: #fef2f2;
            border-color: #fca5a5;
        }
        .bulk-pdf-item-card.is-sent {
            background: #ecfdf5;
            border-color: #86efac;
        }
        .bulk-pdf-item-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 8px;
        }
        .bulk-pdf-item-name {
            font-size: 0.82rem;
            font-weight: 800;
            color: #0f172a;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            min-width: 0;
            flex: 1;
        }
        .btn-bulk-preview-eye {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #e0f2fe;
            border: 1px solid #7dd3fc;
            color: #0369a1;
            width: 28px;
            height: 24px;
            border-radius: 7px;
            cursor: pointer;
            padding: 0;
            flex-shrink: 0;
            transition: transform 0.12s ease, background 0.12s ease;
        }
        .btn-bulk-preview-eye:active {
            transform: scale(0.95);
            background: #bae6fd;
        }
        .bulk-pdf-client-row {
            margin-bottom: 8px;
        }
        .bulk-pdf-client-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            flex-wrap: wrap;
            margin-bottom: 3px;
        }
        .bulk-pdf-detected-badge {
            font-size: 0.69rem;
            font-weight: 800;
            padding: 2px 7px;
            border-radius: 999px;
            white-space: nowrap;
        }
        .bulk-pdf-detected-badge.is-ok {
            background: #dcfce7;
            color: #15803d;
            border: 1px solid #86efac;
        }
        .bulk-pdf-detected-badge.is-warn {
            background: #fef3c7;
            color: #92400e;
            border: 1px solid #fcd34d;
        }
        .bulk-pdf-fields-grid {
            display: grid;
            grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 1fr);
            gap: 8px;
        }
        .bulk-pdf-fields-grid.is-doc-mode {
            grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
        }
        @media (max-width: 440px) {
            .bulk-pdf-fields-grid {
                grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            }
            .bulk-pdf-fields-grid.is-doc-mode {
                grid-template-columns: minmax(0, 1fr);
            }
            .bulk-pdf-fields-grid:not(.is-doc-mode) .bulk-pdf-date-col {
                grid-column: span 2;
            }
        }
        .admin-browse-bulk-bar {
            display: none;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
            background: #f1f5f9;
            border: 1.5px solid #cbd5e1;
            border-radius: 11px;
            padding: 8px 10px;
            margin-bottom: 10px;
        }
        .admin-browse-selectall-label {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            font-size: 0.78rem;
            font-weight: 800;
            color: #0f172a;
            cursor: pointer;
            user-select: none;
        }
        .admin-browse-selectall-label input,
        .admin-browse-row-chk {
            width: 17px;
            height: 17px;
            accent-color: #0284c7;
            cursor: pointer;
            flex-shrink: 0;
        }
        .btn-bulk-delete-browse {
            background: #ef4444;
            color: #ffffff;
            border: none;
            border-radius: 9px;
            padding: 6px 11px;
            font-size: 0.76rem;
            font-weight: 800;
            cursor: pointer;
            transition: opacity 0.14s ease;
        }
        .btn-bulk-delete-browse:disabled {
            background: #cbd5e1;
            color: #64748b;
            cursor: not-allowed;
        }
        .admin-invoice-row.is-selected {
            background: #eff6ff;
            border-color: #60a5fa;
        }
        .admin-pending-row {
            background: #fffbeb !important;
            border-color: #fde68a !important;
        }
        .admin-pending-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: #fef3c7;
            color: #92400e;
            border: 1px solid #fcd34d;
            border-radius: 999px;
            padding: 2px 8px;
            font-size: 0.69rem;
            font-weight: 800;
            margin-left: 6px;
            vertical-align: middle;
        }
        .edit-client-modal-box {
            max-width: 400px !important;
            max-height: 88vh;
            overflow-y: auto;
            text-align: left !important;
        }
        .edit-client-section {
            background: #f8fafc;
            border: 1.5px solid #e2e8f0;
            border-radius: 13px;
            padding: 11px 12px;
            margin-bottom: 12px;
        }
        .edit-client-section.is-transfer {
            background: #fff7ed;
            border-color: #fed7aa;
        }
        .edit-client-section-title {
            font-size: 0.83rem;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .edit-client-email-pill {
            display: inline-block;
            background: #e0f2fe;
            color: #0369a1;
            border: 1px solid #bae6fd;
            border-radius: 8px;
            padding: 4px 8px;
            font-size: 0.76rem;
            font-weight: 800;
            margin-bottom: 10px;
            word-break: break-all;
        }
        .edit-client-check-row {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin: 8px 0;
            cursor: pointer;
            font-size: 0.76rem;
            font-weight: 700;
            color: #334155;
            line-height: 1.35;
        }
        .edit-client-check-row input {
            width: 16px;
            height: 16px;
            margin-top: 1px;
            flex-shrink: 0;
            accent-color: #0284c7;
        }
        .edit-client-alias-line {
            font-size: 0.71rem;
            color: #0369a1;
            font-weight: 700;
            margin-top: 2px;
            word-break: break-word;
        }
        /* === INSPECTEUR BASE FIRESTORE === */
        .fs-inspector-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }
        .fs-head-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }
        .fs-refresh-btn {
            background: #e0f2fe;
            color: #0369a1;
            border: 1.5px solid #bae6fd;
            border-radius: 9px;
            padding: 6px 10px;
            font-size: 0.76rem;
            font-weight: 800;
            cursor: pointer;
        }
        .fs-console-link-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: #eef2ff;
            color: #3730a3;
            border: 1.5px solid #c7d2fe;
            border-radius: 9px;
            padding: 6px 10px;
            font-size: 0.75rem;
            font-weight: 800;
            text-decoration: none;
        }
        .fs-connected-banner {
            background: #f8fafc;
            border: 1.5px solid #cbd5e1;
            border-radius: 11px;
            padding: 9px 11px;
            margin-bottom: 10px;
            font-size: 0.77rem;
            color: #334155;
            line-height: 1.4;
        }
        .fs-stats-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            margin-bottom: 10px;
        }
        .fs-stat-chip {
            border-radius: 11px;
            padding: 8px 10px;
            border: 1.5px solid #e2e8f0;
            background: #f8fafc;
            text-align: left;
        }
        .fs-stat-chip.is-admin {
            background: #eef2ff;
            border-color: #c7d2fe;
            color: #3730a3;
        }
        .fs-stat-chip.is-active {
            background: #ecfdf5;
            border-color: #a7f3d0;
            color: #065f46;
        }
        .fs-stat-chip.is-pending {
            background: #fffbeb;
            border-color: #fde68a;
            color: #92400e;
        }
        .fs-stat-chip.is-orphan {
            background: #fff1f2;
            border-color: #fecdd3;
            color: #9f1239;
        }
        .fs-stat-num {
            font-size: 1.15rem;
            font-weight: 900;
            line-height: 1.1;
        }
        .fs-stat-lbl {
            font-size: 0.71rem;
            font-weight: 700;
            opacity: 0.92;
            margin-top: 2px;
        }
        .fs-section-title {
            font-size: 0.82rem;
            font-weight: 800;
            color: #1e293b;
            margin: 13px 0 7px;
            padding-top: 10px;
            border-top: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .fs-list-stack {
            display: flex;
            flex-direction: column;
            gap: 7px;
        }
        .fs-user-card {
            background: #ffffff;
            border: 1.5px solid #e2e8f0;
            border-radius: 11px;
            padding: 9px 11px;
        }
        .fs-user-card.is-admin-card {
            background: #f5f3ff;
            border-color: #ddd6fe;
        }
        .fs-user-card.is-pending-card {
            background: #fffbeb;
            border-color: #fde68a;
        }
        .fs-user-card.is-orphan-card {
            background: #fff1f2;
            border-color: #fecdd3;
        }
        .fs-card-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            flex-wrap: wrap;
        }
        .fs-card-name {
            font-size: 0.88rem;
            font-weight: 800;
            color: #0f172a;
            word-break: break-word;
        }
        .fs-role-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 7px;
            border-radius: 999px;
            font-size: 0.68rem;
            font-weight: 800;
            white-space: nowrap;
        }
        .fs-role-badge.admin { background: #e0e7ff; color: #3730a3; }
        .fs-role-badge.active { background: #dcfce7; color: #166534; }
        .fs-role-badge.pending { background: #fef3c7; color: #92400e; }
        .fs-role-badge.orphan { background: #ffe4e6; color: #9f1239; }
        .fs-email-line {
            font-size: 0.81rem;
            font-weight: 800;
            color: #0284c7;
            word-break: break-all;
            margin-top: 3px;
        }
        .fs-meta-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 6px;
            font-size: 0.71rem;
            color: #475569;
            font-weight: 600;
        }
        .fs-uid-pill {
            display: inline-block;
            background: #f1f5f9;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            padding: 1px 6px;
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            font-size: 0.67rem;
            color: #334155;
            word-break: break-all;
        }
        .fs-card-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
            margin-top: 7px;
        }
        .fs-mini-btn {
            border-radius: 8px;
            padding: 5px 9px;
            font-size: 0.72rem;
            font-weight: 800;
            cursor: pointer;
            border: 1px solid transparent;
        }
        .fs-mini-btn.edit {
            background: #e0f2fe;
            color: #0369a1;
            border-color: #bae6fd;
        }
        .fs-mini-btn.mirror {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: linear-gradient(135deg, #eff6ff 0%, #fef3c7 100%);
            color: #1e3a8a;
            border-color: #f59e0b;
            box-shadow: 0 2px 6px rgba(245, 158, 11, 0.16);
        }
        .fs-mini-btn.recover {
            background: #fef3c7;
            color: #92400e;
            border-color: #fcd34d;
        }
        .fs-empty-note {
            font-size: 0.76rem;
            color: #64748b;
            background: #f8fafc;
            border: 1px dashed #cbd5e1;
            border-radius: 9px;
            padding: 9px 10px;
            text-align: center;
        }
        /* === MOTS SECRETS ADMIN === */
        .admin-secret-banner {
            background: #f5f3ff;
            border: 1.5px solid #ddd6fe;
            color: #4c1d95;
            border-radius: 11px;
            padding: 9px 11px;
            font-size: 0.78rem;
            font-weight: 600;
            line-height: 1.4;
            margin-bottom: 12px;
        }
        .admin-secret-card {
            background: #ffffff;
            border: 1.5px solid #cbd5e1;
            border-radius: 13px;
            padding: 11px 12px;
            box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
        }
        .admin-secret-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
        }
        .admin-secret-title {
            font-size: 0.93rem;
            font-weight: 800;
            color: #0f172a;
        }
        .admin-secret-status {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            border-radius: 999px;
            padding: 2px 8px;
            font-size: 0.69rem;
            font-weight: 800;
            background: #dcfce7;
            color: #166534;
        }
        .admin-secret-word-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
            background: #f8fafc;
            border: 1.5px dashed #8b5cf6;
            border-radius: 10px;
            padding: 8px 10px;
            margin: 9px 0 8px;
        }
        .admin-secret-word-pill {
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            font-size: 1rem;
            font-weight: 900;
            color: #5b21b6;
            letter-spacing: 0.04em;
            word-break: break-all;
        }
        .admin-secret-steps {
            font-size: 0.77rem;
            color: #334155;
            line-height: 1.45;
            margin: 0;
            padding-left: 16px;
        }
        .admin-secret-actions {
            display: flex;
            align-items: center;
            gap: 7px;
            flex-wrap: wrap;
            margin-top: 9px;
        }
        /* === BLOC-NOTES / PENSE-BÊTE ADMIN === */
        .admin-notes-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }
        .admin-notes-sync-pill {
            font-size: 0.71rem;
            font-weight: 800;
            border-radius: 999px;
            padding: 3px 9px;
            background: #f1f5f9;
            color: #475569;
            border: 1px solid #cbd5e1;
        }
        .admin-notes-sync-pill.is-cloud {
            background: #dcfce7;
            color: #166534;
            border-color: #86efac;
        }
        .admin-notes-composer {
            background: #fffbeb;
            border: 1.5px solid #fde68a;
            border-radius: 13px;
            padding: 11px 12px;
            margin-bottom: 12px;
        }
        .admin-notes-composer-title {
            font-size: 0.84rem;
            font-weight: 800;
            color: #92400e;
            margin-bottom: 8px;
        }
        .admin-notes-tag-row {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
            margin-bottom: 8px;
        }
        .admin-notes-tag-pill {
            border-radius: 999px;
            padding: 5px 10px;
            font-size: 0.73rem;
            font-weight: 800;
            background: #ffffff;
            color: #475569;
            border: 1.5px solid #cbd5e1;
            cursor: pointer;
        }
        .admin-notes-tag-pill.is-active {
            background: #0f172a;
            color: #ffffff;
            border-color: #0f172a;
        }
        .admin-notes-textarea {
            width: 100%;
            min-height: 88px;
            resize: vertical;
            padding: 9px 11px;
            border-radius: 10px;
            border: 1.5px solid #cbd5e1;
            font-family: inherit;
            font-size: 0.86rem;
            font-weight: 600;
            color: #0f172a;
            background: #ffffff;
            box-sizing: border-box;
            margin-bottom: 8px;
        }
        .admin-notes-textarea:focus {
            outline: none;
            border-color: #d97706;
        }
        .admin-notes-composer-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .admin-notes-card {
            background: #ffffff;
            border: 1.5px solid #e2e8f0;
            border-radius: 12px;
            padding: 10px 12px;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
        }
        .admin-notes-card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            flex-wrap: wrap;
            margin-bottom: 4px;
        }
        .admin-notes-badge {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            padding: 2px 8px;
            font-size: 0.69rem;
            font-weight: 800;
            border: 1px solid transparent;
        }
        .admin-notes-date {
            font-size: 0.70rem;
            font-weight: 700;
            color: #64748b;
        }
        .admin-notes-title {
            font-size: 0.90rem;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 4px;
            word-break: break-word;
        }
        .admin-notes-body {
            font-size: 0.82rem;
            color: #334155;
            line-height: 1.45;
            white-space: pre-wrap;
            word-break: break-word;
        }
        .admin-notes-card-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
            margin-top: 8px;
        }
        /* === BOUTONS ZIP PAR ANNÉE & DOCUMENTS === */
        .invoice-year-zip-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: rgba(255, 255, 255, 0.95);
            color: #047857;
            border: 1.5px solid rgba(16, 185, 129, 0.45);
            border-radius: 999px;
            padding: 6px 11px;
            font-size: 0.75rem;
            font-weight: 800;
            cursor: pointer;
            flex-shrink: 0;
            box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14);
            transition: transform 0.14s ease, background 0.14s ease;
        }
        .invoice-year-zip-btn:hover { background: #ecfdf5; }
        .invoice-year-zip-btn:active { transform: scale(0.96); }
        .invoice-year-zip-btn:disabled { opacity: 0.65; cursor: wait; }
        .client-docs-zip-bar {
            display: none;
            justify-content: flex-end;
            margin: 0 0 10px;
        }
        .client-docs-zip-btn {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            color: #ffffff;
            border: 1.5px solid rgba(167, 243, 208, 0.85);
            border-radius: 12px;
            padding: 8px 13px;
            font-size: 0.80rem;
            font-weight: 800;
            cursor: pointer;
            box-shadow: 0 5px 14px rgba(4, 120, 87, 0.28);
            transition: transform 0.14s ease;
        }
        .client-docs-zip-btn:active { transform: scale(0.97); }
        .client-docs-zip-btn:disabled { opacity: 0.65; cursor: wait; }
        /* === LIMITES & QUOTAS ADMIN === */
        .limits-live-box {
            background: #f0fdf4;
            border: 1.5px solid #86efac;
            border-radius: 13px;
            padding: 11px 12px;
            margin-bottom: 12px;
        }
        .limits-progress-track {
            width: 100%;
            height: 10px;
            border-radius: 999px;
            background: #dcfce7;
            border: 1px solid #bbf7d0;
            overflow: hidden;
            margin: 6px 0 8px;
        }
        .limits-progress-fill {
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, #10b981 0%, #0284c7 100%);
            transition: width 0.25s ease;
        }
        .limits-card {
            background: #ffffff;
            border: 1.5px solid #cbd5e1;
            border-radius: 12px;
            padding: 10px 12px;
            margin-bottom: 9px;
        }
        .limits-card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 6px;
        }
        .limits-card-title {
            font-size: 0.90rem;
            font-weight: 800;
            color: #0f172a;
        }
        .limits-free-pill {
            font-size: 0.69rem;
            font-weight: 800;
            border-radius: 999px;
            padding: 2px 8px;
            background: #dcfce7;
            color: #166534;
            border: 1px solid #86efac;
            white-space: nowrap;
        }
        .limits-list {
            margin: 0;
            padding-left: 17px;
            font-size: 0.77rem;
            color: #334155;
            line-height: 1.48;
        }
        .limits-list li + li {
            margin-top: 3px;
        }
        .bulk-pdf-field-label {
            display: block;
            font-size: 0.7rem;
            font-weight: 800;
            color: #475569;
            margin-bottom: 3px;
        }
        .bulk-pdf-input {
            width: 100%;
            min-width: 0;
            padding: 7px 9px;
            border: 1.5px solid #cbd5e1;
            border-radius: 9px;
            font-size: 0.82rem;
            font-weight: 700;
            color: #0f172a;
            background: #ffffff;
            box-sizing: border-box;
        }
        .bulk-pdf-input:focus {
            outline: none;
            border-color: #0284c7;
        }
        .invoice-num {
            font-size: clamp(0.74rem, 3.25vw, 0.90rem);
            font-weight: 800;
            color: #0f172a;
            display: flex;
            align-items: center;
            flex-wrap: nowrap;
            gap: 5px;
            min-width: 0;
        }
        .invoice-title-text {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 0;
            flex-shrink: 1;
        }
        .invoice-title-text.is-invoice-title {
            flex-shrink: 0;
        }
        .invoice-date-green {
            display: inline-flex;
            align-items: center;
            color: #15803d;
            background: #dcfce7;
            border: 1px solid #86efac;
            font-size: clamp(0.64rem, 2.7vw, 0.72rem);
            font-weight: 800;
            padding: 1px 5px;
            border-radius: 6px;
            white-space: nowrap;
            flex-shrink: 0;
            line-height: 1.3;
        }
        .invoice-amount { font-size: 0.92rem; font-weight: 700; color: #0284c7; margin-top: 2px; }
        .invoice-amount-inline {
            font-size: clamp(0.73rem, 3.15vw, 0.88rem);
            font-weight: 800;
            color: #0284c7;
            white-space: nowrap;
            flex-shrink: 0;
            letter-spacing: -0.01em;
        }
        .invoice-actions-row {
            display: flex;
            align-items: center;
            gap: 5px;
            flex-wrap: nowrap;
            flex-shrink: 0;
        }
        .pdf-btn {
            background: #0284c7; color: #ffffff; padding: 8px 12px; border-radius: 10px;
            font-size: 0.8rem; font-weight: 700; cursor: pointer; border: none;
            display: inline-flex; align-items: center; gap: 4px;
        }
        .pdf-btn:hover { background: #0369a1; }
        .pdf-eye-round-btn {
            width: 34px;
            height: 34px;
            min-width: 34px;
            border-radius: 50%;
            background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
            color: #ffffff;
            border: 1.5px solid rgba(255, 255, 255, 0.92);
            box-shadow: 0 3px 10px rgba(2, 132, 199, 0.36);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            flex-shrink: 0;
            transition: transform 0.14s ease, background 0.14s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .pdf-eye-round-btn:hover { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); }
        .pdf-eye-round-btn:active { transform: scale(0.92); }
        .invoice-card-white .pdf-download-round-btn {
            width: 34px;
            height: 34px;
            min-width: 34px;
            border-width: 1.5px;
        }
        .invoice-card-white .pdf-download-round-btn svg {
            width: 17px;
            height: 17px;
        }
        @media (max-width: 480px) {
            #viewClient { padding: 14px 12px 0; }
            #viewClient.mirror-active,
            #viewClient.sandbox-active { padding: calc(68px + env(safe-area-inset-top)) 12px 0; }
            #viewClient .screen-top-logout-bar { margin-bottom: 8px; }
            #viewClient .client-welcome-tropical-banner { padding: 12px 12px 24px; margin-bottom: 8px; }
            #viewClient .tropical-coco-welcome-left { top: 5px; left: 5px; width: 50px; height: 50px; }
            #viewClient .tropical-palm-right { top: 4px; right: 2px; width: 52px; height: 52px; }
            #viewClient .tropical-welcome-content { padding: 0 46px; }
            #viewClient .client-hub-tab-btn { min-height: 48px; padding: 8px 6px; }
            .invoice-card-white { padding: 6px 8px; gap: 5px; }
            .invoice-card-white .pdf-eye-round-btn,
            .invoice-card-white .pdf-download-round-btn {
                width: 32px;
                height: 32px;
                min-width: 32px;
            }
            .invoice-card-white .pdf-eye-round-btn svg { width: 16px; height: 16px; }
            .invoice-card-white .pdf-download-round-btn svg { width: 16px; height: 16px; }
        }

        /* Espace Client verrouillé en 3 zones : Haut fixe (Bienvenue + Menus) + Zone PDF défilante + Pied fixe */
        #viewClient {
            padding-bottom: 0;
            overflow: hidden;
        }
        #viewClient.mirror-active,
        #viewClient.sandbox-active {
            padding-top: calc(74px + env(safe-area-inset-top));
            padding-bottom: 0;
        }
        .client-sticky-top-dock {
            flex-shrink: 0;
            position: relative;
            z-index: 42;
        }
        #viewClient .client-welcome-tropical-banner {
            padding: 15px 16px 26px;
            margin-bottom: 10px;
        }
        #viewClient .client-hub-tabs {
            margin-bottom: 6px;
        }
        #viewClient .client-scroll-body {
            flex: 1 1 0%;
            min-height: 0;
            width: 100%;
            max-width: 652px;
            padding: 8px 6px 14px;
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-y: contain;
        }
        .client-footer-dock {
            flex-shrink: 0;
            position: relative;
            z-index: 45;
            padding: 6px 0 max(8px, env(safe-area-inset-bottom));
            background: transparent;
            pointer-events: none;
        }
        @media (max-height: 520px) {
            #viewClient {
                overflow-y: auto;
            }
            #viewClient.mirror-active,
            #viewClient.sandbox-active {
                padding-top: calc(56px + env(safe-area-inset-top));
            }
            #viewClient .client-scroll-body {
                flex: 0 0 auto;
                overflow-y: visible;
            }
        }
        .client-footer-bar {
            pointer-events: auto;
            background: rgba(15, 23, 42, 0.90);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(125, 211, 252, 0.34);
            border-radius: 15px;
            padding: 8px 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.40);
            text-align: left;
        }
        .client-footer-dock .client-login-entry + .client-login-entry {
            margin-top: 4px !important;
            padding-top: 4px !important;
        }
        .client-footer-dock .client-last-login-row {
            font-size: 0.71rem;
        }
        .client-footer-dock .client-last-login-value {
            font-size: 0.77rem;
        }
        .client-footer-left {
            min-width: 0;
            flex: 1;
        }
        .client-last-login-row {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            font-weight: 700;
            color: #bae6fd;
            flex-wrap: wrap;
        }
        .client-last-login-value {
            font-size: 0.82rem;
            font-weight: 800;
            color: #ffffff;
            margin-top: 2px;
            line-height: 1.3;
        }
        .btn-privacy-info {
            width: 22px;
            height: 22px;
            min-width: 22px;
            border-radius: 50%;
            border: 1.5px solid #38bdf8;
            background: rgba(56, 189, 248, 0.2);
            color: #e0f2fe;
            font-size: 0.76rem;
            font-weight: 900;
            font-family: Georgia, serif;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            line-height: 1;
            transition: transform 0.15s, background 0.15s;
            -webkit-tap-highlight-color: transparent;
        }
        .btn-privacy-info:hover {
            background: rgba(56, 189, 248, 0.36);
            transform: scale(1.08);
        }
        .btn-privacy-info-light {
            border-color: #0284c7;
            background: #e0f2fe;
            color: #0369a1;
        }
        .btn-privacy-info-light:hover {
            background: #bae6fd;
        }
        .btn-refresh-round {
            width: 44px;
            height: 44px;
            min-width: 44px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.35);
            background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 6px 16px rgba(14, 165, 233, 0.45);
            transition: transform 0.2s, box-shadow 0.2s;
            -webkit-tap-highlight-color: transparent;
            padding: 0;
        }
        .btn-refresh-round:hover {
            transform: scale(1.06);
            box-shadow: 0 10px 22px rgba(14, 165, 233, 0.6);
        }
        .btn-refresh-round:active {
            transform: scale(0.94);
        }
        .btn-refresh-round.spinning svg {
            animation: spin 0.8s linear infinite;
        }
        .login-privacy-note {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: 0;
            font-size: 0.67rem;
            color: #64748b;
            font-weight: 600;
            line-height: 1.25;
            text-align: center;
        }
        .privacy-popup-badge {
            display: inline-block;
            background: #dcfce7;
            color: #166534;
            border: 1px solid #86efac;
            border-radius: 999px;
            padding: 4px 12px;
            font-size: 0.74rem;
            font-weight: 800;
            margin: 0 auto 6px;
        }
        .privacy-popup-list {
            display: flex;
            flex-direction: column;
            gap: 7px;
            text-align: left;
            font-size: 0.79rem;
            color: #334155;
            line-height: 1.4;
            margin: 6px 0 10px;
        }
        .privacy-popup-item {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 7px 10px;
        }
        .privacy-popup-item strong {
            color: #0f172a;
        }

        .form-label { font-size: 0.78rem; font-weight: 700; color: #334155; margin-bottom: 4px; display: block; }
        .form-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
        .phone-digit-counter { font-size: 0.71rem; font-weight: 700; color: #64748b; }
        .phone-digit-counter.is-partial { color: #d97706; }
        .phone-digit-counter.is-valid { color: #15803d; }
        .form-select, .form-input {
            width: 100%; max-width: 100%; min-width: 0; background: #f8fafc; border: 1.5px solid #cbd5e1; border-radius: 10px;
            padding: 9px 12px; color: #0f172a; font-size: 0.88rem; outline: none; margin-bottom: 10px; font-weight: 500;
            text-overflow: ellipsis;
        }
        .form-select:focus, .form-input:focus { border-color: #0284c7; background: #fff; }
        .form-select-pending {
            background: #fffbeb;
            border-color: #fcd34d;
            color: #78350f;
        }
        .form-select-pending:focus {
            border-color: #d97706;
            background: #fffdf5;
        }
        .pending-select-sublabel {
            font-size: 0.73rem;
            font-weight: 800;
            color: #92400e;
            margin: -4px 0 4px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .drop-zone {
            background: #f0f9ff; border: 2px dashed #0284c7; border-radius: 12px;
            padding: 12px; text-align: center; margin-bottom: 10px; cursor: pointer;
        }
        .drop-zone:hover { background: #e0f2fe; }

        .btn-analyze {
            width: 100%; background: linear-gradient(135deg, #0284c7, #6366f1);
            color: #ffffff; border: none; border-radius: 10px; padding: 10px;
            font-size: 0.88rem; font-weight: 800; cursor: pointer; margin-bottom: 10px;
            display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .btn-analyze:disabled { background: #94a3b8; cursor: not-allowed; }

        .btn-view-preview {
            width: 100%; background: #0284c7; color: #ffffff; border: none;
            border-radius: 10px; padding: 10px; font-size: 0.85rem; font-weight: 700;
            cursor: pointer; margin-bottom: 12px; display: none; text-align: center;
        }
        .btn-view-preview:hover { background: #0369a1; }

        .schedule-box {
            background: #f1f5f9; border: 1.5px solid #cbd5e1; border-radius: 12px;
            padding: 12px; margin-bottom: 12px;
        }
        .schedule-row {
            display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.85rem;
            font-weight: 700; color: #0f172a; user-select: none;
        }
        .schedule-row input[type="checkbox"] {
            accent-color: #0284c7; width: 18px; height: 18px; cursor: pointer;
        }
        .schedule-inputs {
            display: none; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px;
        }
        .schedule-inputs.active { display: grid; }

        .btn-save-invoice {
            width: 100%; background: #0f172a; color: #ffffff; border: none; border-radius: 10px;
            padding: 12px; font-size: 0.92rem; font-weight: 800; cursor: pointer;
        }
        .btn-save-invoice:hover { background: #1e293b; }

        .btn-cancel-edit {
            width: 100%; background: #cbd5e1; color: #334155; border: none; border-radius: 10px;
            padding: 9px; font-size: 0.82rem; font-weight: 700; cursor: pointer; margin-top: 6px; display: none;
        }

        .client-invoices-header {
            font-size: 0.88rem; font-weight: 800; color: #0284c7; margin-top: 14px; margin-bottom: 8px;
        }
        .admin-invoice-row {
            background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 12px;
            padding: 8px 10px; margin-bottom: 6px;
            display: flex; flex-direction: column; align-items: stretch; gap: 6px;
        }
        .admin-inv-client-line {
            font-size: 0.72rem;
            font-weight: 800;
            color: #475569;
            word-break: break-word;
            line-height: 1.2;
        }
        .admin-inv-top-row {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: nowrap;
            min-width: 0;
            width: 100%;
        }
        .admin-inv-top-row .admin-browse-row-chk {
            margin: 0 2px 0 0;
        }
        .admin-inv-top-row .invoice-num {
            flex: 1;
            min-width: 0;
        }
        .admin-inv-bottom-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            flex-wrap: wrap;
        }
        .admin-inv-status-col {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-wrap: wrap;
            min-width: 0;
            flex: 1;
        }
        .status-badge-scheduled {
            background: #fef3c7; color: #b45309; border: 1px solid #fde68a;
            padding: 2px 6px; border-radius: 6px; font-size: 0.69rem; font-weight: 700; display: inline-block;
        }
        .status-badge-live {
            background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0;
            padding: 2px 6px; border-radius: 6px; font-size: 0.69rem; font-weight: 700; display: inline-block;
        }
        .status-badge-email-sched {
            background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc;
            padding: 2px 6px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; display: inline-block; margin-top: 3px; margin-left: 4px;
        }
        .status-badge-email-sent {
            background: #f0fdf4; color: #047857; border: 1px solid #86efac;
            padding: 2px 6px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; display: inline-block; margin-top: 3px; margin-left: 4px;
        }
        .status-badge-email-err {
            background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
            padding: 2px 6px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; display: inline-block; margin-top: 3px; margin-left: 4px;
        }
        .email-dispatch-box {
            background: linear-gradient(180deg, #fffbeb 0%, #f0f9ff 100%);
            border: 1.5px solid #cbd5e1;
            border-radius: 12px;
            padding: 11px 12px;
            margin-bottom: 12px;
        }
        .email-dispatch-box.is-enabled {
            border-color: #734729;
            box-shadow: 0 3px 10px rgba(115, 71, 41, 0.12);
        }
        .email-dispatch-row {
            display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.84rem;
            font-weight: 800; color: #0f172a; user-select: none;
        }
        .email-dispatch-row input[type="checkbox"] {
            accent-color: #734729; width: 18px; height: 18px; cursor: pointer; flex-shrink: 0;
        }
        .email-dispatch-details {
            margin-top: 9px; padding-top: 8px; border-top: 1px dashed #cbd5e1;
            display: flex; flex-direction: column; gap: 7px;
        }
        .email-dispatch-hint {
            font-size: 0.74rem; font-weight: 700; color: #334155; line-height: 1.4;
        }
        .email-dispatch-actions-bar {
            display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
        }
        .email-dispatch-pill {
            font-size: 0.7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px;
            border: 1px solid #fcd34d; background: #fef3c7; color: #92400e;
        }
        .email-dispatch-pill.is-ok {
            border-color: #86efac; background: #dcfce7; color: #15803d;
        }
        .email-dispatch-mini-btn {
            background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 4px 9px;
            font-size: 0.72rem; font-weight: 800; color: #0369a1; cursor: pointer;
        }
        .email-dispatch-mini-btn:hover { background: #e0f2fe; }
        .delivery-mode-wrap {
            background: #f8fafc; border: 1.5px solid #cbd5e1; border-radius: 12px;
            padding: 8px 10px; margin-bottom: 10px;
        }
        .delivery-mode-label {
            font-size: 0.74rem; font-weight: 800; color: #334155; margin-bottom: 6px;
            display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap;
        }
        .delivery-mode-pills {
            display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
        }
        .delivery-mode-pill {
            border: 1.5px solid #cbd5e1; background: #ffffff; color: #334155;
            border-radius: 9px; padding: 7px 5px; font-size: 0.72rem; font-weight: 800;
            cursor: pointer; text-align: center; line-height: 1.25; transition: all 0.15s;
        }
        .delivery-mode-pill small {
            display: block; font-size: 0.64rem; font-weight: 700; opacity: 0.85; margin-top: 2px;
        }
        .delivery-mode-pill.active {
            background: linear-gradient(135deg, #0369a1, #0d9488);
            color: #ffffff; border-color: #0284c7;
            box-shadow: 0 3px 8px rgba(3, 105, 161, 0.25);
        }
        .delivery-mode-pill.is-gmail-only.active {
            background: linear-gradient(135deg, #734729, #b45309);
            border-color: #734729;
            box-shadow: 0 3px 8px rgba(115, 71, 41, 0.28);
        }
        .weight-limit-banner {
            margin-top: 6px; padding: 6px 9px; border-radius: 9px;
            font-size: 0.72rem; font-weight: 800; line-height: 1.4;
            border: 1px solid #86efac; background: #ecfdf5; color: #065f46;
        }
        .weight-limit-banner.is-warn {
            border-color: #fcd34d; background: #fffbeb; color: #92400e;
        }
        .weight-limit-banner.is-over {
            border-color: #fca5a5; background: #fef2f2; color: #b91c1c;
        }
        .weight-limit-track {
            width: 100%; height: 5px; border-radius: 999px;
            background: rgba(15, 23, 42, 0.12); overflow: hidden; margin-top: 4px;
        }
        .weight-limit-fill {
            height: 100%; border-radius: 999px; background: #16a34a; transition: width 0.2s;
        }
        .weight-limit-banner.is-warn .weight-limit-fill { background: #d97706; }
        .weight-limit-banner.is-over .weight-limit-fill { background: #dc2626; }
        .extra-attach-zone {
            background: #f8fafc; border: 1.5px dashed #94a3b8; border-radius: 10px;
            padding: 8px 9px; display: flex; flex-direction: column; gap: 6px;
        }
        .extra-attach-header {
            display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap;
        }
        .extra-attach-add-btn {
            background: #ffffff; border: 1.5px solid #0284c7; color: #0369a1;
            border-radius: 8px; padding: 6px 10px; font-size: 0.76rem; font-weight: 800;
            cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
        }
        .extra-attach-add-btn:hover { background: #e0f2fe; }
        .extra-attach-chips {
            display: flex; flex-direction: column; gap: 4px;
        }
        .extra-attach-chip {
            display: flex; align-items: center; justify-content: space-between; gap: 6px;
            background: #ffffff; border: 1px solid #cbd5e1; border-radius: 8px;
            padding: 5px 8px; font-size: 0.73rem; font-weight: 700; color: #0f172a;
        }
        .extra-attach-chip-name {
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1;
        }
        .extra-attach-chip-meta {
            font-size: 0.67rem; font-weight: 800; color: #0369a1; white-space: nowrap;
        }
        .extra-attach-chip-rm {
            background: #fee2e2; border: 1px solid #fca5a5; color: #b91c1c;
            border-radius: 6px; width: 22px; height: 22px; font-weight: 800;
            cursor: pointer; line-height: 1; flex-shrink: 0;
        }
        .pwa-smart-banner {
            background: linear-gradient(135deg, #f0f9ff 0%, #fffbeb 100%);
            border: 1.5px solid #38bdf8;
            border-radius: 13px;
            padding: 9px 11px;
            box-shadow: 0 4px 12px rgba(2, 132, 199, 0.14);
        }
        .pwa-smart-banner-head {
            display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
        }
        .pwa-smart-banner-title {
            font-size: 0.78rem; font-weight: 800; color: #0f172a; line-height: 1.3;
            display: flex; align-items: center; gap: 6px;
        }
        .pwa-smart-banner-sub {
            font-size: 0.71rem; font-weight: 700; color: #334155; line-height: 1.35; margin-top: 3px;
        }
        .pwa-smart-banner-actions {
            display: flex; flex-direction: column; gap: 6px; margin-top: 8px;
        }
        .pwa-smart-primary-btn {
            background: linear-gradient(135deg, #0284c7, #0d9488);
            color: #ffffff; border: none; border-radius: 10px;
            padding: 9px 12px; font-size: 0.78rem; font-weight: 800; width: 100%;
            cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
            text-align: center; line-height: 1.25; min-height: 40px;
            box-shadow: 0 3px 8px rgba(2, 132, 199, 0.25);
        }
        .pwa-smart-secondary-btn {
            background: #ffffff; color: #0369a1; border: 1.5px solid #38bdf8;
            border-radius: 10px; padding: 8px 11px; font-size: 0.76rem; font-weight: 800; width: 100%;
            cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
            text-align: center; line-height: 1.25; min-height: 38px;
        }
        .pwa-smart-link-btn {
            background: transparent; border: none; color: #475569;
            font-size: 0.72rem; font-weight: 700; text-decoration: underline;
            cursor: pointer; padding: 3px 6px; text-align: center; align-self: center;
        }
        .pwa-smart-warn-card {
            background: #fffbeb; border: 1.5px solid #fcd34d; color: #92400e;
            border-radius: 11px; padding: 9px 11px; font-size: 0.78rem; font-weight: 700;
            line-height: 1.45; margin-bottom: 4px;
        }
        .pwa-smart-dismiss-btn {
            background: transparent; border: none; color: #64748b;
            font-size: 0.85rem; font-weight: 800; cursor: pointer; padding: 0 2px; line-height: 1;
        }
        .pwa-guide-step-card {
            background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 11px;
            padding: 9px 11px; font-size: 0.8rem; font-weight: 700; color: #0f172a;
            line-height: 1.45; margin-bottom: 7px;
        }
        .relay-config-step-box {
            background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 11px;
            padding: 10px 12px; font-size: 0.76rem; color: #334155; line-height: 1.5;
        }
        .relay-config-step-box ol { margin: 4px 0 0 18px; padding: 0; }
        .relay-config-step-box li { margin-bottom: 4px; }
        .tpl-preset-row {
            display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 8px;
        }
        .tpl-preset-chip {
            background: #f1f5f9; border: 1px solid #cbd5e1; color: #0f172a; border-radius: 999px;
            padding: 3px 9px; font-size: 0.7rem; font-weight: 800; cursor: pointer;
        }
        .tpl-preset-chip:hover { background: #e0f2fe; border-color: #38bdf8; color: #0369a1; }
        .tpl-var-chip {
            background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; border-radius: 8px;
            padding: 3px 8px; font-size: 0.7rem; font-weight: 800; cursor: pointer;
        }
        .tpl-var-chip:hover { background: #fde68a; }
        .tpl-icons-memo-box {
            background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px;
            padding: 7px 9px; margin-bottom: 6px;
        }
        .tpl-icons-memo-title {
            font-size: 0.71rem; font-weight: 800; color: #0369a1;
            display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 5px;
        }
        .tpl-icons-memo-row {
            display: flex; flex-wrap: wrap; gap: 5px;
        }
        .tpl-icon-chip {
            display: inline-flex; align-items: center; gap: 5px;
            background: #ffffff; border: 1px solid #7dd3fc; color: #0f172a; border-radius: 999px;
            padding: 3px 9px 3px 6px; font-size: 0.71rem; font-weight: 800; cursor: pointer;
            transition: background 0.15s, border-color 0.15s, transform 0.1s;
        }
        .tpl-icon-chip:hover { background: #e0f2fe; border-color: #0284c7; }
        .tpl-icon-chip:active { transform: scale(0.96); }
        .tpl-icon-chip img { display: block; width: 15px; height: 15px; flex-shrink: 0; }
        .tpl-sample-hint {
            font-size: 0.72rem; font-weight: 800; color: #047857; background: #ecfdf5;
            border: 1px solid #a7f3d0; border-radius: 8px; padding: 4px 8px; margin-bottom: 8px;
        }
        .tpl-checks-box {
            background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 11px;
            padding: 9px 11px; display: flex; flex-direction: column; gap: 6px;
        }
        .tpl-check-row {
            display: flex; align-items: center; gap: 8px; cursor: pointer;
            font-size: 0.78rem; font-weight: 700; color: #0f172a;
        }
        .tpl-check-row input[type="checkbox"] {
            accent-color: #734729; width: 16px; height: 16px; cursor: pointer; flex-shrink: 0;
        }
        .tpl-subchecks {
            display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
            padding-left: 22px; padding-top: 2px;
        }
        .email-override-wrap {
            background: #ffffff; border: 1px solid #cbd5e1; border-radius: 10px;
            padding: 8px 10px; display: flex; flex-direction: column; gap: 6px;
        }
        .bulk-attachment-wrap {
            margin-top: 8px; padding-top: 8px; border-top: 1px dashed #cbd5e1;
        }
        .loyal-client-email-box {
            display: flex;
            align-items: flex-start;
            gap: 9px;
            padding: 9px 11px;
            border-radius: 12px;
            border: 1.5px solid #cbd5e1;
            background: #ffffff;
            cursor: pointer;
            transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
        }
        .loyal-client-email-box:has(input:checked) {
            background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
            border-color: #f59e0b;
            box-shadow: 0 3px 10px rgba(245, 158, 11, 0.18);
        }
        .loyal-client-email-box input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-top: 1px;
            accent-color: #d97706;
            cursor: pointer;
            flex-shrink: 0;
        }
        .loyal-client-email-text {
            display: flex;
            flex-direction: column;
            gap: 1px;
            min-width: 0;
        }
        .loyal-client-email-text strong {
            font-size: 0.80rem;
            font-weight: 800;
            color: #0f172a;
        }
        .loyal-client-email-text span {
            font-size: 0.70rem;
            font-weight: 600;
            color: #475569;
            line-height: 1.3;
        }
        .admin-client-loyal-btn {
            border-radius: 999px;
            padding: 4px 9px;
            font-size: 0.71rem;
            font-weight: 800;
            cursor: pointer;
            white-space: nowrap;
            transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
        }
        .admin-client-loyal-btn:active {
            transform: scale(0.96);
        }
        .admin-client-loyal-btn.is-loyal {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            color: #92400e;
            border: 1.5px solid #f59e0b;
        }
        .admin-client-loyal-btn.is-standard {
            background: #f8fafc;
            color: #64748b;
            border: 1.5px dashed #cbd5e1;
        }
        .custom-html-card {
            background: #ffffff;
            border: 1.5px solid #c7d2fe;
            border-radius: 14px;
            padding: 12px;
            margin-bottom: 12px;
            box-shadow: 0 3px 10px rgba(79, 70, 229, 0.08);
        }
        .custom-html-code-textarea {
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
            font-size: 0.74rem !important;
            line-height: 1.45 !important;
            background: #f8fafc !important;
            color: #0f172a !important;
            border-color: #cbd5e1 !important;
            resize: vertical;
        }
        .custom-html-per-send-wrap {
            background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
            border: 1.5px dashed #818cf8;
            border-radius: 11px;
            padding: 9px 10px;
            display: flex;
            flex-direction: column;
            gap: 7px;
            margin-top: 4px;
        }
        .custom-html-saved-card {
            background: #ffffff;
            border: 1.5px solid #cbd5e1;
            border-radius: 12px;
            padding: 10px 11px;
            display: flex;
            flex-direction: column;
            gap: 7px;
        }
        .bulk-item-custom-html-btn {
            background: #eef2ff;
            color: #4338ca;
            border: 1px solid #a5b4fc;
            border-radius: 8px;
            padding: 4px 8px;
            font-size: 0.7rem;
            font-weight: 800;
            cursor: pointer;
        }
        .bulk-item-custom-html-btn.is-active {
            background: linear-gradient(135deg, #4f46e5, #7c3aed);
            color: #ffffff;
            border-color: #4338ca;
        }
        .bulk-item-loyal-row {
            display: flex;
            align-items: center;
            gap: 7px;
            padding: 6px 9px;
            margin-bottom: 6px;
            border-radius: 9px;
            border: 1px solid #e2e8f0;
            background: #f8fafc;
            cursor: pointer;
            font-size: 0.72rem;
            font-weight: 700;
            color: #334155;
        }
        .bulk-item-loyal-row:has(input:checked) {
            background: #fffbeb;
            border-color: #fbbf24;
            color: #92400e;
        }
        .bulk-item-loyal-row input[type="checkbox"] {
            width: 15px;
            height: 15px;
            accent-color: #d97706;
            cursor: pointer;
            flex-shrink: 0;
        }
        .surprise-client-email-box {
            display: flex;
            align-items: flex-start;
            gap: 9px;
            padding: 9px 11px;
            border-radius: 12px;
            border: 1.5px dashed #f472b6;
            background: linear-gradient(135deg, #fff1f2 0%, #fef3c7 100%);
            cursor: pointer;
            transition: opacity 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
        }
        .surprise-client-email-box.is-disabled {
            opacity: 0.52;
            border-style: solid;
            border-color: #cbd5e1;
            background: #f1f5f9;
            cursor: not-allowed;
        }
        .surprise-client-email-box:has(input:checked) {
            border-style: solid;
            border-color: #db2777;
            box-shadow: 0 3px 12px rgba(219, 39, 119, 0.22);
        }
        .surprise-client-email-box input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-top: 1px;
            accent-color: #db2777;
            cursor: pointer;
            flex-shrink: 0;
        }
        .surprise-check-header-shell {
            display: flex;
            flex-direction: column;
            gap: 6px;
            padding: 9px 11px;
            border-radius: 12px;
            border: 1.5px dashed #f472b6;
            background: #ffffff;
            transition: border-color 0.16s ease, box-shadow 0.16s ease;
        }
        .surprise-check-header-shell:has(input[type="checkbox"]:checked) {
            border-style: solid;
            border-color: #db2777;
            background: linear-gradient(135deg, #fff1f2 0%, #fef3c7 100%);
            box-shadow: 0 3px 12px rgba(219, 39, 119, 0.2);
        }
        .surprise-check-label-reset {
            display: flex;
            align-items: flex-start;
            gap: 9px;
            cursor: pointer;
            padding: 0;
            border: none;
            background: transparent;
            box-shadow: none !important;
        }
        .surprise-inline-quick-actions {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            align-items: center;
            padding-top: 6px;
            border-top: 1px dashed rgba(219, 39, 119, 0.25);
        }
        .bulk-gift-popup-row {
            display: flex;
            flex-direction: column;
            gap: 5px;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid #f9a8d4;
            border-radius: 10px;
            padding: 8px 9px;
        }
        .bulk-item-surprise-row {
            display: flex;
            align-items: center;
            gap: 7px;
            padding: 6px 9px;
            margin-bottom: 6px;
            border-radius: 9px;
            border: 1px dashed #f472b6;
            background: linear-gradient(135deg, #fff1f2 0%, #fef3c7 100%);
            cursor: pointer;
            font-size: 0.72rem;
            font-weight: 800;
            color: #9d174d;
        }
        .bulk-item-surprise-row.is-disabled {
            opacity: 0.5;
            border-style: solid;
            border-color: #e2e8f0;
            background: #f8fafc;
            color: #64748b;
            cursor: not-allowed;
        }
        .bulk-item-surprise-row input[type="checkbox"] {
            width: 15px;
            height: 15px;
            accent-color: #db2777;
            cursor: pointer;
            flex-shrink: 0;
        }
        .surprise-config-subpanel {
            background: linear-gradient(135deg, #fff1f2 0%, #fffbeb 100%);
            border: 1.5px solid #f9a8d4;
            border-radius: 12px;
            padding: 10px 11px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .surprise-config-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }
        @media (max-width: 390px) {
            .surprise-config-grid { grid-template-columns: 1fr; }
        }
        .surprise-quick-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }
        .surprise-quick-chip {
            background: #ffffff;
            border: 1px solid #f9a8d4;
            color: #9d174d;
            border-radius: 999px;
            padding: 3px 9px;
            font-size: 0.7rem;
            font-weight: 800;
            cursor: pointer;
        }
        .surprise-quick-chip:active { transform: scale(0.95); }
        .surprise-admin-tabs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-bottom: 12px;
        }
        .surprise-admin-tab-btn {
            border: 1.5px solid #e2e8f0;
            background: #f8fafc;
            color: #334155;
            border-radius: 11px;
            padding: 8px 6px;
            font-size: 0.8rem;
            font-weight: 800;
            cursor: pointer;
        }
        .surprise-admin-tab-btn.active {
            background: linear-gradient(135deg, #db2777 0%, #f59e0b 100%);
            border-color: #db2777;
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(219, 39, 119, 0.28);
        }
        .surprise-gift-admin-card,
        .surprise-tpl-card {
            background: #ffffff;
            border: 1.5px solid #e2e8f0;
            border-radius: 13px;
            padding: 10px 11px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .surprise-gift-admin-card.is-claimed {
            border-color: #f472b6;
            background: #fff1f2;
        }
        .surprise-gift-admin-card.is-paid {
            border-color: #86efac;
            background: #f0fdf4;
        }
        .surprise-status-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            border-radius: 999px;
            padding: 2px 9px;
            font-size: 0.69rem;
            font-weight: 900;
        }
        .surprise-status-badge.is-claimed { background: #db2777; color: #ffffff; }
        .surprise-status-badge.is-pending { background: #fef3c7; color: #92400e; }
        .surprise-status-badge.is-paid { background: #dcfce7; color: #166534; }
        .surprise-status-badge.is-expired { background: #e2e8f0; color: #475569; }
        .surprise-copy-dest-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            background: #ffffff;
            border: 1.5px solid #fbcfe8;
            border-radius: 10px;
            padding: 7px 9px;
        }
        .surprise-copy-dest-val {
            font-family: monospace;
            font-size: 0.84rem;
            font-weight: 900;
            color: #0f172a;
            word-break: break-all;
            user-select: text;
        }
        .admin-bourso-guide-box {
            background: #f0f9ff;
            border: 1.5px solid #bae6fd;
            border-radius: 13px;
            padding: 10px 11px;
            margin-bottom: 12px;
        }
        .admin-bourso-guide-body {
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px dashed #7dd3fc;
            font-size: 0.74rem;
            color: #0f172a;
            line-height: 1.45;
            display: none;
            flex-direction: column;
            gap: 8px;
        }
        .admin-saved-ibans-box {
            background: #ecfdf5;
            border: 1.5px solid #6ee7b7;
            border-radius: 13px;
            padding: 10px 11px;
            margin-bottom: 12px;
        }
        .admin-saved-ibans-body {
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px dashed #34d399;
            display: none;
            flex-direction: column;
            gap: 8px;
        }
        .admin-saved-iban-card {
            background: #ffffff;
            border: 1.5px solid #a7f3d0;
            border-radius: 11px;
            padding: 9px 10px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .admin-saved-iban-mono {
            font-family: monospace;
            font-size: 0.84rem;
            font-weight: 900;
            color: #064e3b;
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 8px;
            padding: 6px 8px;
            letter-spacing: 0.4px;
            word-break: break-all;
            user-select: text;
            -webkit-user-select: text;
        }
        .admin-client-iban-pill {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            margin-top: 5px;
            padding: 5px 8px;
            background: #ecfdf5;
            border: 1px solid #a7f3d0;
            border-radius: 8px;
            font-size: 0.71rem;
            color: #065f46;
            font-weight: 800;
        }
        .admin-client-iban-pill-val {
            font-family: monospace;
            font-weight: 900;
            word-break: break-all;
            user-select: text;
            -webkit-user-select: text;
        }
        .admin-gift-link-wrap {
            background: #f8fafc;
            border: 1px solid #cbd5e1;
            border-radius: 9px;
            padding: 8px;
            margin-top: 4px;
        }
        .admin-gift-link-textarea {
            width: 100%;
            box-sizing: border-box;
            font-family: monospace;
            font-size: 0.71rem;
            border: 1px solid #cbd5e1;
            border-radius: 7px;
            padding: 6px;
            background: #ffffff;
            color: #0f172a;
            resize: none;
        }

        .action-icons { display: flex; gap: 5px; align-items: center; flex-wrap: nowrap; flex-shrink: 0; margin-left: auto; }
        .btn-icon {
            padding: 5px 9px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; cursor: pointer; border: none;
        }
        .admin-invoice-row .btn-icon {
            height: 30px;
            min-width: 30px;
            padding: 0 7px;
            border-radius: 9px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .admin-invoice-row .pdf-eye-round-btn,
        .admin-invoice-row .pdf-download-round-btn {
            width: 32px;
            height: 32px;
            min-width: 32px;
            border-width: 1.5px;
        }
        .admin-invoice-row .pdf-eye-round-btn svg,
        .admin-invoice-row .pdf-download-round-btn svg {
            width: 16px;
            height: 16px;
        }
        @media (max-width: 480px) {
            .admin-invoice-row .action-icons { gap: 4px; }
            .admin-invoice-row .pdf-eye-round-btn,
            .admin-invoice-row .pdf-download-round-btn {
                width: 30px;
                height: 30px;
                min-width: 30px;
            }
            .admin-invoice-row .pdf-eye-round-btn svg,
            .admin-invoice-row .pdf-download-round-btn svg {
                width: 15px;
                height: 15px;
            }
            .admin-invoice-row .btn-icon {
                height: 28px;
                min-width: 28px;
                padding: 0 6px;
                font-size: 0.72rem;
            }
        }
        .btn-icon-view { background: #0284c7; color: #fff; }
        .btn-icon-rename { background: #6366f1; color: #fff; }
        .btn-icon-edit { background: #f59e0b; color: #fff; }
        .btn-icon-del { background: #ef4444; color: #fff; }

        .toast {
            position: fixed;
            top: 35%;
            left: 50%;
            transform: translateX(-50%) translateY(-50%);
            width: max-content;
            max-width: min(calc(100vw - 32px), 380px);
            background: linear-gradient(135deg, #047857 0%, #16a34a 55%, #15803d 100%);
            border: 2px solid #86efac;
            color: #ffffff;
            padding: 15px 22px;
            border-radius: 22px;
            font-size: 0.96rem;
            line-height: 1.42;
            font-weight: 800;
            display: none;
            z-index: 999;
            box-shadow: 0 14px 36px rgba(21, 128, 61, 0.55), 0 0 28px rgba(134, 239, 172, 0.35);
            white-space: normal;
            overflow-wrap: break-word;
            word-break: normal;
            text-align: center;
            letter-spacing: 0.2px;
            box-sizing: border-box;
            animation: popToast 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        @keyframes popToast {
            0% { transform: translateX(-50%) translateY(-50%) scale(0.8); opacity: 0; }
            100% { transform: translateX(-50%) translateY(-50%) scale(1); opacity: 1; }
        }

        .pdf-viewer-overlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(3, 7, 18, 0.9); z-index: 105; display: none;
            flex-direction: column; padding: 14px;
        }
        .pdf-viewer-overlay.active { display: flex; }
        .pdf-viewer-overlay.is-fullscreen {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            padding: 0;
            background: #0f172a;
            z-index: 250;
        }
        .pdf-viewer-overlay.is-fullscreen .pdf-viewer-header,
        .pdf-viewer-overlay.is-fullscreen .pdf-viewer-subbar,
        .pdf-viewer-overlay.is-fullscreen .pdf-page-controls,
        .pdf-viewer-overlay.is-fullscreen .pdf-bottom-controls {
            display: none !important;
        }
        .pdf-viewer-overlay.is-fullscreen #pdfCanvasContainer {
            border-radius: 0 !important;
        }
        .pdf-viewer-overlay.is-fullscreen #pdfCanvasStage {
            padding: 2px 0 !important;
        }
        .pdf-viewer-overlay.is-fullscreen #pdfRenderCanvas {
            border-radius: 0 !important;
        }
        .pdf-viewer-overlay.is-fullscreen .pdf-viewer-frame {
            border-radius: 0;
        }
        .pdf-fs-enter-btn {
            width: 36px;
            height: 36px;
            min-width: 36px;
            border-radius: 50%;
            border: 2px solid rgba(56, 189, 248, 0.85);
            background: rgba(15, 23, 42, 0.78);
            color: #7dd3fc;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            flex-shrink: 0;
            box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
            transition: transform 0.14s ease, background 0.14s ease, color 0.14s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .pdf-fs-enter-btn:hover {
            background: #0284c7;
            color: #ffffff;
            border-color: #bae6fd;
        }
        .pdf-fs-enter-btn:active {
            transform: scale(0.91);
        }
        .pdf-fs-exit-btn,
        .pdf-fs-fit-btn {
            display: none;
            position: absolute;
            right: 12px;
            right: max(12px, env(safe-area-inset-right));
            z-index: 85;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(15, 23, 42, 0.48);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            border: 1.5px solid rgba(255, 255, 255, 0.42);
            color: #ffffff;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            opacity: 0.72;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
            transition: opacity 0.16s ease, transform 0.14s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .pdf-fs-exit-btn {
            top: 12px;
            top: max(12px, env(safe-area-inset-top));
        }
        .pdf-fs-fit-btn {
            bottom: 12px;
            bottom: max(12px, env(safe-area-inset-bottom));
        }
        .pdf-fs-fit-btn.is-width-mode {
            border-color: rgba(125, 211, 252, 0.72);
            color: #bae6fd;
        }
        .pdf-fs-fit-btn .pdf-fs-icon-to-page,
        .pdf-fs-fit-btn.is-width-mode .pdf-fs-icon-to-width {
            display: none;
        }
        .pdf-fs-fit-btn .pdf-fs-icon-to-width,
        .pdf-fs-fit-btn.is-width-mode .pdf-fs-icon-to-page {
            display: block;
        }
        .pdf-fs-exit-btn:hover,
        .pdf-fs-exit-btn:focus-visible,
        .pdf-fs-fit-btn:hover,
        .pdf-fs-fit-btn:focus-visible {
            opacity: 1;
            background: rgba(15, 23, 42, 0.84);
        }
        .pdf-fs-exit-btn:active,
        .pdf-fs-fit-btn:active {
            opacity: 1;
            transform: scale(0.91);
        }
        .pdf-viewer-overlay.is-fullscreen .pdf-fs-exit-btn,
        .pdf-viewer-overlay.is-fullscreen .pdf-fs-fit-btn {
            display: inline-flex;
        }
        .pdf-fs-page-nav {
            position: absolute;
            bottom: 12px;
            bottom: max(12px, env(safe-area-inset-bottom));
            left: 50%;
            transform: translateX(-50%);
            z-index: 85;
            display: none;
            align-items: center;
            gap: 10px;
            pointer-events: none;
        }
        .pdf-viewer-overlay.is-fullscreen .pdf-fs-page-nav.has-multipage {
            display: flex;
        }
        .pdf-fs-arrow-btn {
            pointer-events: auto;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            border: 1.5px solid rgba(255, 255, 255, 0.42);
            background: rgba(15, 23, 42, 0.46);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            color: #ffffff;
            font-size: 0.72rem;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            cursor: pointer;
            opacity: 0.74;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
            transition: opacity 0.16s ease, transform 0.14s ease, background 0.16s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .pdf-fs-arrow-btn:hover:not(:disabled),
        .pdf-fs-arrow-btn:active:not(:disabled) {
            opacity: 1;
            background: rgba(15, 23, 42, 0.84);
        }
        .pdf-fs-arrow-btn:active:not(:disabled) {
            transform: scale(0.91);
        }
        .pdf-fs-arrow-btn:disabled {
            opacity: 0.24;
            cursor: not-allowed;
        }
        .pdf-viewer-header {
            display: flex; justify-content: space-between; align-items: center; gap: 10px;
            color: #fff; margin-bottom: 8px; flex-shrink: 0;
        }
        .pdf-viewer-subbar {
            display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap;
            margin-bottom: 8px; flex-shrink: 0;
        }
        .pdf-open-external-btn {
            flex: 1 1 200px; max-width: 310px; min-height: 38px;
            background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
            border: 1px solid rgba(186, 230, 253, 0.45);
            color: #ffffff; border-radius: 12px; padding: 8px 14px;
            cursor: pointer; font-size: 0.84rem; font-weight: 800;
            display: inline-flex; align-items: center; justify-content: center; gap: 6px;
            box-shadow: 0 4px 12px rgba(2, 132, 199, 0.42);
            transition: transform 0.14s ease, filter 0.14s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .pdf-open-external-btn:active { transform: scale(0.97); }
        .pdf-viewer-frame {
            width: 100%; height: 100%; border: none; border-radius: 12px; background: #fff;
        }

        .modal-overlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(3, 7, 18, 0.85); backdrop-filter: blur(8px);
            z-index: 120; display: none; align-items: center; justify-content: center; padding: 34px 20px 20px;
        }
        .modal-overlay.active { display: flex; }
        .login-box-white {
            width: 100%; max-width: 340px; max-height: 92vh; overflow-y: auto; background: #ffffff;
            border-radius: 24px; padding: 22px 20px; display: flex; flex-direction: column; gap: 8px;
            color: #0f172a; box-sizing: border-box;
        }
        #loginModal {
            padding: clamp(22px, 3vw, 38px) clamp(12px, 3vw, 28px) clamp(8px, 2vw, 20px);
        }
        #loginModal .login-box-white.tropical-rope-box {
            max-width: clamp(336px, 92vw, 520px);
            max-height: 92vh !important;
            max-height: 92dvh !important;
            margin-top: 12px;
        }
        #loginModal .tropical-box-scroll {
            max-height: calc(92vh - 8px);
            max-height: calc(92dvh - 8px);
            padding: clamp(11px, 2vh, 20px) clamp(12px, 2.6vw, 22px) clamp(11px, 2vh, 18px);
            gap: 5px;
        }
        .login-modal-header {
            position: relative;
            gap: 8px;
            min-height: 36px;
        }
        .login-modal-header.is-floating-close {
            min-height: 0;
            height: 18px;
            margin-bottom: -4px;
            justify-content: flex-end;
            align-items: flex-start;
        }
        .login-header-saved-btn {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            margin: 0;
        }
        .login-header-right-actions {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-left: auto;
            flex-shrink: 0;
            position: relative;
            z-index: 4;
        }
        .login-add-client-btn {
            width: 34px;
            height: 34px;
            min-width: 34px;
            border-radius: 50%;
            border: 1.5px solid #38bdf8;
            background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
            color: #0369a1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            box-shadow: 0 3px 10px rgba(2, 132, 199, 0.2);
            transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
            -webkit-tap-highlight-color: transparent;
            flex-shrink: 0;
        }
        .login-add-client-btn:hover {
            background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
            border-color: #0284c7;
        }
        .login-add-client-btn:active {
            transform: scale(0.91);
            background: #0284c7;
            color: #ffffff;
            border-color: #0284c7;
        }
        @media (max-width: 390px) {
            .login-header-saved-btn {
                font-size: 0.7rem;
                padding: 4px 7px;
            }
            .login-header-right-actions {
                gap: 14px;
            }
        }
        .login-modal-title {
            font-size: 1.15rem;
            font-weight: 800;
            color: #0f172a;
            margin: 0;
            white-space: nowrap;
            line-height: 1.15;
        }
        .login-modal-header .login-modal-title {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            margin: 0;
            pointer-events: none;
        }
        .login-title-word-wrap {
            position: relative;
            display: inline-block;
        }
        .login-title-lock {
            position: absolute;
            right: 100%;
            top: 50%;
            transform: translateY(-54%);
            margin-right: 0.28em;
            line-height: 1;
        }
        .email-manual-top-row {
            position: relative;
            display: flex;
            align-items: flex-end;
            justify-content: flex-start;
            min-height: 24px;
            margin-bottom: 3px;
            padding: 0;
        }
        .email-manual-top-row .login-modal-title {
            position: absolute;
            left: 50%;
            bottom: 0;
            transform: translateX(-50%);
            margin: 0;
            pointer-events: none;
        }
        #loginModal #emailInput {
            padding: 7px 11px;
            min-height: 36px;
            font-size: 0.86rem;
            margin-bottom: 0;
        }
        /* Pavé Numérique Tactile Code PIN 6 chiffres */
        .auth-mode-header-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: nowrap;
            gap: 8px;
            min-height: 24px;
            margin: 0 0 4px;
        }
        .pin-display-container,
        .classic-password-input-wrap {
            box-sizing: border-box;
            width: 100%;
            height: 34px;
            min-height: 34px;
            margin: 0 0 6px;
        }
        .pin-display-container,
        .classic-password-input-wrap .form-input {
            box-sizing: border-box;
            width: 100%;
            height: 34px;
            min-height: 34px;
            background: #f8fafc;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
        }
        .pin-display-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            padding: 0;
        }
        .pin-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            border: 2px solid #cbd5e1;
            background: #ffffff;
            transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .pin-dot.filled {
            background: #0284c7;
            border-color: #0284c7;
            transform: scale(1.15);
            box-shadow: 0 0 8px rgba(2, 132, 199, 0.45);
        }
        .pin-keypad,
        .classic-tropical-panel {
            box-sizing: border-box;
            margin-top: 0;
            border-radius: 20px;
            background: linear-gradient(rgba(255, 255, 255, 0.02), rgba(14, 165, 233, 0.05)), url('./keypad-tropical.jpg') center/cover no-repeat;
            border: 2px solid rgba(22, 163, 74, 0.48);
            box-shadow: inset 0 0 14px rgba(15, 23, 42, 0.12), 0 8px 20px rgba(2, 132, 199, 0.18);
        }
        .pin-keypad {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            justify-items: center;
            align-items: center;
            gap: clamp(7px, 1.1vh, 12px) clamp(14px, 4vw, 28px);
            gap: clamp(7px, 1.1dvh, 12px) clamp(14px, 4vw, 28px);
            padding: clamp(10px, 1.8vh, 20px) clamp(16px, 4vw, 32px);
            padding: clamp(10px, 1.8dvh, 20px) clamp(16px, 4vw, 32px);
            min-height: clamp(206px, 31vh, 290px);
            min-height: clamp(206px, 31dvh, 290px);
        }
        #classicAuthContainer {
            flex-direction: column;
        }
        .classic-tropical-panel {
            flex: 1;
            min-height: clamp(206px, 31vh, 290px);
            min-height: clamp(206px, 31dvh, 290px);
        }
        .classic-password-input-wrap {
            position: relative;
            display: flex;
            align-items: center;
        }
        .classic-password-input-wrap .form-input {
            margin-bottom: 0;
            padding: 4px 40px 4px 12px;
            font-size: 0.94rem;
        }
        .classic-password-eye-btn {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            background: transparent;
            border: none;
            width: 28px;
            height: 28px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.96rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #475569;
        }
        .classic-password-eye-btn:active {
            background: #e2e8f0;
        }
        .pin-key {
            width: clamp(42px, 6.1vh, 52px);
            height: clamp(42px, 6.1vh, 52px);
            width: clamp(42px, 6.1dvh, 52px);
            height: clamp(42px, 6.1dvh, 52px);
            padding: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.94);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            border: 2.5px solid #0284c7;
            font-size: clamp(1.08rem, 2.2vh, 1.28rem);
            font-weight: 900;
            color: #0f172a;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.12s ease;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
            box-shadow: 0 3px 9px rgba(2, 132, 199, 0.28), 0 1px 3px rgba(15, 23, 42, 0.16);
        }
        .pin-key:hover {
            background: #f0f9ff;
            border-color: #0369a1;
        }
        .pin-key:active {
            transform: scale(0.92);
            background: #0284c7;
            color: #ffffff;
            border-color: #0284c7;
        }
        .pin-key.action-key {
            font-size: 0.96rem;
            font-weight: 900;
        }
        .pin-key.action-key.pin-key-clear {
            background: #b91c1c;
            color: #ffffff;
            border: 2.5px solid #fca5a5;
            box-shadow: 0 3px 9px rgba(153, 27, 27, 0.36);
        }
        .pin-key.action-key.pin-key-clear:hover {
            background: #991b1b;
            border-color: #fecaca;
        }
        .pin-key.action-key.pin-key-clear:active {
            transform: scale(0.92);
            background: #7f1d1d;
            color: #ffffff;
        }
        .pin-key.action-key.pin-key-backspace {
            font-size: 1.05rem;
            background: #fee2e2;
            color: #b91c1c;
            border: 2.5px solid #f87171;
            box-shadow: 0 3px 9px rgba(220, 38, 38, 0.22);
        }
        .pin-key.action-key.pin-key-backspace:hover {
            background: #fecaca;
            border-color: #ef4444;
        }
        .pin-key.action-key.pin-key-backspace:active {
            transform: scale(0.92);
            background: #ef4444;
            color: #ffffff;
            border-color: #dc2626;
        }
        @keyframes pinShake {
            0%, 100% { transform: translateX(0); }
            20% { transform: translateX(-7px); }
            40% { transform: translateX(7px); }
            60% { transform: translateX(-5px); }
            80% { transform: translateX(5px); }
        }
        .pin-display-container.error-shake {
            animation: pinShake 0.4s ease;
            border-color: #ef4444;
            background: #fef2f2;
        }
        .pin-display-container.error-shake .pin-dot.filled {
            background: #ef4444;
            border-color: #ef4444;
            box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
        }
        .login-error-banner {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #b91c1c;
            border-radius: 10px;
            padding: 8px 10px;
            font-size: 0.78rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 4px;
            line-height: 1.35;
        }
        /* Sélection multi-e-mails mémorisés (page tropicale avec banderoles) */
        .saved-emails-tropical-panel {
            position: relative;
            border-radius: 20px;
            padding: clamp(12px, 2vw, 18px) clamp(8px, 2.2vw, 22px) clamp(14px, 2.5vw, 22px);
            min-height: clamp(320px, 50vh, 480px);
            min-height: clamp(320px, 50dvh, 480px);
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            gap: clamp(8px, 1.4vh, 12px);
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.16) 100%), url('./keypad-tropical.jpg') center/cover no-repeat;
            border: 2px solid rgba(22, 163, 74, 0.48);
            box-shadow: inset 0 0 16px rgba(15, 23, 42, 0.12), 0 8px 20px rgba(2, 132, 199, 0.18);
        }
        .saved-emails-subtitle-pill {
            align-self: center;
            background: rgba(255, 255, 255, 0.88);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            color: #0369a1;
            font-size: 0.75rem;
            font-weight: 800;
            padding: 5px 12px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.95);
            box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
            text-align: center;
        }
        .saved-emails-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin: 0;
            max-height: clamp(190px, 34vh, 330px);
            max-height: clamp(190px, 34dvh, 330px);
            overflow-y: auto;
            padding: 2px 2px 4px;
        }
        @media (max-height: 600px) {
            #loginModal { padding: 18px 14px 8px; }
            .saved-emails-tropical-panel { min-height: 200px; padding: 12px; gap: 8px; }
            .saved-emails-list { max-height: 150px; }
            .pin-keypad { padding: 8px 14px; gap: 5px 12px; }
            .pin-keypad,
            .classic-tropical-panel { min-height: 175px; }
            .pin-key { width: 38px; height: 38px; font-size: 0.98rem; }
        }
        .saved-email-banner-row {
            display: flex;
            align-items: stretch;
            gap: 5px;
            width: 100%;
        }
        .saved-email-banner-btn {
            flex: 1;
            min-width: 0;
            min-height: 46px;
            padding: 7px 8px;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.90);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            border: 1.5px solid rgba(255, 255, 255, 0.98);
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            text-align: left;
            transition: transform 0.12s ease, background 0.14s ease, border-color 0.14s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .saved-email-banner-btn:hover {
            background: #ffffff;
            border-color: #38bdf8;
        }
        .saved-email-banner-btn:active {
            transform: scale(0.98);
            background: #e0f2fe;
            border-color: #0284c7;
        }
        .saved-email-banner-btn.is-admin-row {
            background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
            border-color: #fbbf24;
            box-shadow: 0 4px 13px rgba(217, 119, 6, 0.22);
        }
        .saved-email-banner-btn.is-connected-row {
            background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
            border-color: #34d399;
            box-shadow: 0 4px 14px rgba(16, 185, 129, 0.24);
        }
        .saved-email-banner-btn.is-admin-row.is-connected-row {
            background: linear-gradient(135deg, #fffbeb 0%, #ecfdf5 100%);
            border-color: #10b981;
        }
        .saved-email-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
            color: #ffffff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.72rem;
            flex-shrink: 0;
            box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
        }
        .saved-email-icon.is-admin-icon {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            box-shadow: 0 2px 7px rgba(217, 119, 6, 0.38);
        }
        .saved-email-icon.is-connected-icon {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.42);
        }
        .saved-email-text {
            flex: 1;
            min-width: 0;
            font-size: 0.72rem;
            font-weight: 800;
            color: #0f172a;
            overflow-wrap: anywhere;
            line-height: 1.24;
            letter-spacing: -0.01em;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .saved-email-addr-line {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 4px;
            min-width: 0;
        }
        .saved-email-addr-str {
            min-width: 0;
            overflow-wrap: anywhere;
        }
        .saved-email-admin-pill {
            display: inline-flex;
            align-items: center;
            gap: 2px;
            padding: 1px 6px;
            border-radius: 999px;
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border: 1px solid #f59e0b;
            color: #92400e;
            font-size: 0.64rem;
            font-weight: 900;
            line-height: 1.3;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .saved-email-arrow {
            font-size: 0.95rem;
            font-weight: 900;
            color: #0284c7;
            flex-shrink: 0;
        }
        .saved-email-reorder-col {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 3px;
            width: 28px;
            min-width: 28px;
            flex-shrink: 0;
        }
        .saved-email-move-btn {
            flex: 1;
            min-height: 22px;
            width: 100%;
            border-radius: 9px;
            border: 1.5px solid rgba(125, 211, 252, 0.98);
            background: rgba(240, 249, 255, 0.96);
            color: #0369a1;
            font-size: 0.72rem;
            font-weight: 900;
            line-height: 1;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
            transition: transform 0.1s ease, background 0.12s ease, opacity 0.12s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .saved-email-move-btn:hover:not(:disabled) {
            background: #e0f2fe;
            border-color: #38bdf8;
        }
        .saved-email-move-btn:active:not(:disabled) {
            transform: scale(0.92);
            background: #0284c7;
            color: #ffffff;
        }
        .saved-email-move-btn:disabled {
            opacity: 1;
            cursor: default;
            background: rgba(255, 255, 255, 0.76);
            border-color: rgba(203, 213, 225, 0.92);
            color: #94a3b8;
            box-shadow: none;
        }
        .saved-email-forget-btn {
            width: 36px;
            min-width: 36px;
            border-radius: 13px;
            border: 1.5px solid rgba(254, 202, 202, 0.95);
            background: rgba(255, 241, 242, 0.90);
            color: #e11d48;
            font-size: 0.86rem;
            font-weight: 900;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
            transition: transform 0.12s ease, background 0.14s ease, color 0.14s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .saved-email-forget-btn:hover {
            background: #ffe4e6;
        }
        .saved-email-forget-btn:active {
            transform: scale(0.94);
            background: #e11d48;
            color: #ffffff;
            border-color: #e11d48;
        }
        .saved-email-forget-btn.is-locked {
            background: rgba(241, 245, 249, 0.90);
            border-color: rgba(203, 213, 225, 0.95);
            color: #64748b;
        }
        .saved-email-connected-tag {
            display: block;
            font-size: 0.67rem;
            font-weight: 800;
            color: #047857;
            margin-top: 1px;
        }
        .saved-email-logout-btn {
            width: 38px;
            min-width: 38px;
            border-radius: 13px;
            border: 1.5px solid rgba(255, 255, 255, 0.95);
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: #ffffff;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.36);
            transition: transform 0.12s ease, background 0.14s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .saved-email-logout-btn:hover {
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        }
        .saved-email-logout-btn:active {
            transform: scale(0.94);
        }
        .use-other-email-btn {
            margin-top: auto;
            width: 100%;
            min-height: 44px;
            border-radius: 14px;
            border: 1.5px solid rgba(255, 255, 255, 0.96);
            background: rgba(2, 132, 199, 0.92);
            color: #ffffff;
            font-size: 0.86rem;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 5px 14px rgba(15, 23, 42, 0.28);
            transition: transform 0.12s ease, background 0.14s ease;
        }
        .use-other-email-btn:active {
            transform: scale(0.98);
            background: #0369a1;
        }
        .selected-email-chip-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            background: #f0f9ff;
            border: 1.5px solid #bae6fd;
            border-radius: 14px;
            padding: 8px 10px;
            margin-top: 2px;
        }
        .selected-email-chip-value {
            flex: 1;
            min-width: 0;
            font-size: 0.84rem;
            font-weight: 800;
            color: #0c4a6e;
            overflow-wrap: anywhere;
            line-height: 1.25;
        }
        .switch-saved-email-btn {
            flex-shrink: 0;
            background: #ffffff;
            color: #0284c7;
            border: 1.5px solid #7dd3fc;
            border-radius: 10px;
            padding: 5px 9px;
            font-size: 0.74rem;
            font-weight: 800;
            cursor: pointer;
        }
        .switch-saved-email-btn:active {
            background: #e0f2fe;
        }
        .pdf-page-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 8px;
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(56, 189, 248, 0.35);
            border-radius: 12px;
            padding: 6px 12px;
        }
        .pdf-page-btn {
            background: #0284c7;
            color: #ffffff;
            border: none;
            border-radius: 8px;
            padding: 5px 10px;
            font-size: 0.78rem;
            font-weight: 700;
            cursor: pointer;
        }
        .pdf-page-btn:disabled {
            background: #334155;
            color: #94a3b8;
            cursor: not-allowed;
        }
        .admin-clients-toggle {
            width: 100%;
            background: #f8fafc;
            border: 1.5px solid #cbd5e1;
            border-radius: 12px;
            padding: 10px 14px;
            font-size: 0.85rem;
            font-weight: 800;
            color: #0f172a;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }
        .admin-clients-toggle:hover {
            background: #eff6ff;
            border-color: #38bdf8;
        }
        .pin-gen-row {
            display: flex;
            gap: 8px;
            align-items: stretch;
            margin-bottom: 10px;
        }
        .pin-gen-row .form-input {
            margin-bottom: 0;
            flex: 1;
        }
        .btn-pin-random {
            background: #0f172a;
            color: #ffffff;
            border: none;
            border-radius: 10px;
            padding: 0 12px;
            font-size: 0.78rem;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
        }
        .auth-mode-chip-btn {
            box-sizing: border-box;
            height: 24px;
            background: #f1f5f9;
            border: 1px solid #cbd5e1;
            color: #475569;
            border-radius: 8px;
            padding: 0 8px;
            font-size: 0.73rem;
            font-weight: 700;
            line-height: 1;
            white-space: nowrap;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            -webkit-tap-highlight-color: transparent;
            transition: background 0.15s ease, transform 0.12s ease;
        }
        .auth-mode-chip-btn:hover {
            background: #e2e8f0;
            color: #0f172a;
        }
        .auth-mode-chip-btn:active {
            transform: scale(0.95);
        }
        .forgot-pin-card-btn {
            width: 100%;
            min-height: 36px;
            background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
            border: 1.5px solid #fbbf24;
            color: #92400e;
            border-radius: 12px;
            padding: 7px 12px;
            font-size: 0.82rem;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 0;
            box-shadow: 0 3px 10px rgba(245, 158, 11, 0.16);
            -webkit-tap-highlight-color: transparent;
            transition: transform 0.12s ease, box-shadow 0.15s ease;
        }
        .forgot-pin-card-btn:hover {
            border-color: #f59e0b;
            box-shadow: 0 5px 14px rgba(245, 158, 11, 0.25);
        }
        .forgot-pin-card-btn:active {
            transform: scale(0.97);
        }
        /* Bouton Flottant Se connecter en haut à droite (Ambré Doré Chaleureux pour se détacher du ciel bleu nuit étoilé) */
        .account-float-btn {
            position: fixed;
            top: 14px;
            right: 14px;
            z-index: 100;
            display: flex;
            align-items: center;
            gap: 7px;
            padding: 8px 14px 8px 10px;
            border-radius: 26px;
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1.5px solid rgba(254, 240, 138, 0.95);
            box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45), 0 0 16px rgba(245, 158, 11, 0.35);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            user-select: none;
        }
        @media (hover: hover) and (pointer: fine), (min-width: 768px) {
            .account-float-btn {
                right: 34px;
            }
        }
        .account-float-btn:hover {
            transform: translateY(-1px) scale(1.03);
            background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
            border-color: #fef08a;
            box-shadow: 0 10px 28px rgba(234, 88, 12, 0.5), 0 0 22px rgba(251, 191, 36, 0.5);
        }
        .account-float-btn:active {
            transform: scale(0.96);
        }
        .account-float-icon-box {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        }
        .account-float-text-col {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            line-height: 1.12;
        }
        .account-float-kicker {
            display: none;
            align-items: center;
            gap: 4px;
            font-size: 0.61rem;
            font-weight: 900;
            color: #fef08a;
            letter-spacing: 0.25px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
            margin-bottom: 1px;
        }
        .account-float-connected-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #4ade80;
            box-shadow: 0 0 6px #4ade80;
            display: inline-block;
            flex-shrink: 0;
        }
        .account-float-btn.is-connected {
            padding: 6px 13px 6px 9px;
            background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
            border: 1.5px solid rgba(167, 243, 208, 0.96);
            box-shadow: 0 8px 24px rgba(13, 148, 136, 0.45), 0 0 18px rgba(56, 189, 248, 0.35);
        }
        .account-float-btn.is-connected:hover {
            background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
            border-color: #fef08a;
            box-shadow: 0 10px 28px rgba(14, 165, 233, 0.5), 0 0 22px rgba(167, 243, 208, 0.5);
        }
        .account-float-btn.is-connected .account-float-kicker {
            display: inline-flex;
        }
        .account-float-btn.is-connected .account-float-icon-box {
            background: rgba(6, 78, 59, 0.45);
            border: 1px solid rgba(167, 243, 208, 0.65);
        }
        .account-float-label {
            font-size: 0.84rem;
            font-weight: 800;
            color: #ffffff;
            letter-spacing: 0.3px;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        }
        .public-top-right-dock {
            position: fixed;
            top: 14px;
            right: 14px;
            z-index: 100;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        @media (hover: hover) and (pointer: fine), (min-width: 768px) {
            .public-top-right-dock {
                right: 34px;
            }
        }
        .public-top-right-dock .account-float-btn {
            position: relative;
            top: auto;
            right: auto;
            z-index: auto;
        }
        @media (max-width: 430px) {
            body.has-public-session .contact-float-btn {
                padding: 6px 10px 6px 8px;
                gap: 5px;
            }
            body.has-public-session .contact-float-btn .contact-float-icon-box,
            body.has-public-session .public-top-right-dock .account-float-icon-box {
                width: 24px;
                height: 24px;
            }
            body.has-public-session .contact-float-btn .contact-float-label {
                font-size: 0.76rem;
            }
            body.has-public-session .public-top-right-dock .account-float-label {
                font-size: 0.74rem;
            }
            body.has-public-session .public-top-right-dock .account-float-btn.is-connected {
                padding: 5px 10px 5px 7px;
                gap: 6px;
            }
        }

        /* Bouton Flottant Me contacter en haut à gauche (Vert Foncé élégant et raffiné) */
        .contact-float-btn,
        .contact-inline-btn {
            display: flex;
            align-items: center;
            gap: 7px;
            border-radius: 26px;
            background: linear-gradient(135deg, #065f46 0%, #047857 45%, #022c22 100%);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1.5px solid rgba(167, 243, 208, 0.85);
            box-shadow: 0 8px 24px rgba(2, 44, 34, 0.5), 0 0 16px rgba(16, 185, 129, 0.35);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            user-select: none;
        }
        .contact-float-btn {
            position: fixed;
            top: 14px;
            left: 14px;
            z-index: 100;
            padding: 8px 14px 8px 10px;
        }
        .contact-inline-btn {
            width: 100%;
            max-width: 230px;
            margin: 0 auto;
            justify-content: center;
            padding: 9px 18px 9px 12px;
        }
        .contact-float-btn:hover,
        .contact-inline-btn:hover {
            transform: translateY(-1px) scale(1.03);
            background: linear-gradient(135deg, #047857 0%, #065f46 55%, #022c22 100%);
            border-color: #6ee7b7;
            box-shadow: 0 10px 28px rgba(2, 44, 34, 0.65), 0 0 22px rgba(52, 211, 153, 0.5);
        }
        .contact-float-btn:active,
        .contact-inline-btn:active {
            transform: scale(0.96);
        }
        .contact-float-icon-box {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.28);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
        }
        .contact-float-label {
            font-size: 0.84rem;
            font-weight: 800;
            color: #ffffff;
            letter-spacing: 0.3px;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
        }
        .contact-btn {
            width: 80%; height: 50px; border-radius: 25px; border: none;
            background: #ffffff; color: #0f172a; font-weight: 800;
            font-size: 0.95rem; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
        }

        /* Système Responsive Fluide Tout Écran (Mobile, Tablette, PC) sans aucun rognage d'image */
        #viewPublic {
            padding: 0 !important;
            overflow-y: auto !important;
            overflow-x: hidden !important;
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
        }
        #viewClient, #viewAdmin {
            left: 0;
            right: 0;
            width: 100%;
            max-width: none;
            margin: 0;
            box-sizing: border-box;
        }

        .home-container-4 {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 10;
            background: #030712;
            box-shadow: 0 0 60px rgba(0, 0, 0, 0.65);
            min-height: 100%;
            height: auto;
        }

        /* SECTION 1 : Ciel nocturne avec fond1.jpg (1024x724) sans aucun rognage en largeur */
        .home-sec-1 {
            width: 100%;
            aspect-ratio: 1024 / 724;
            height: auto;
            display: flex;
            flex-shrink: 0;
            background: url('fond1.jpg') center / 100% 100% no-repeat;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: clamp(14px, 3.5vw, 40px) clamp(10px, 3vw, 24px);
            box-sizing: border-box;
            overflow: hidden;
        }

        .sky-poem-box {
            position: relative;
            z-index: 5;
            width: 90%;
            max-width: 780px;
            margin: 0 auto;
            padding: clamp(14px, 3vw, 34px) clamp(14px, 4vw, 44px);
            border-radius: clamp(13px, 1.8vw, 18px);
            background: linear-gradient(180deg, rgba(8, 50, 95, 0.54) 0%, rgba(5, 38, 78, 0.58) 100%);
            border: 1.5px solid rgba(242, 223, 168, 0.88);
            box-shadow: 0 10px 30px rgba(2, 18, 46, 0.30), inset 0 0 14px rgba(4, 24, 58, 0.22);
            color: #ffffff;
            text-align: center;
            box-sizing: border-box;
        }
        .sky-poem-box::before {
            content: '';
            position: absolute;
            inset: clamp(3px, 0.45vw, 5px);
            border-radius: clamp(10px, 1.35vw, 13px);
            border: 1px solid rgba(242, 223, 168, 0.42);
            pointer-events: none;
        }
        .sky-poem-line1 {
            font-family: 'Kurale', Georgia, serif;
            font-size: clamp(1.65rem, 4.6vw, 3.4rem);
            font-weight: 400;
            font-style: normal;
            color: #ffffff;
            letter-spacing: 0.02em;
            line-height: 1.05;
            text-shadow: 0 2px 5px rgba(2, 16, 40, 0.55);
        }
        .sky-poem-divider {
            position: relative;
            width: clamp(175px, 68%, 450px);
            height: 1px;
            margin: clamp(7px, 1.4vw, 15px) auto clamp(8px, 1.6vw, 17px);
            background: rgba(243, 223, 164, 0.88);
        }
        .sky-poem-divider::before,
        .sky-poem-divider::after {
            content: '';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: clamp(4px, 0.55vw, 6px);
            height: clamp(4px, 0.55vw, 6px);
            border-radius: 50%;
            background: #f3dfa4;
            box-shadow: 0 0 4px rgba(243, 223, 164, 0.45);
        }
        .sky-poem-divider::before { left: -2px; }
        .sky-poem-divider::after { right: -2px; }
        .sky-poem-line2 {
            font-family: 'Lora', 'Playfair Display', Georgia, serif;
            font-size: clamp(1rem, 2.55vw, 1.9rem);
            font-weight: 500;
            font-style: italic;
            color: #ffffff;
            margin-bottom: clamp(4px, 0.8vw, 9px);
            line-height: 1.25;
            text-shadow: 0 1px 4px rgba(2, 16, 40, 0.50);
        }
        .sky-poem-line3 {
            font-family: 'Lora', Georgia, serif;
            font-size: clamp(0.84rem, 1.98vw, 1.44rem);
            font-weight: 400;
            font-style: normal;
            color: #f8fafc;
            line-height: 1.25;
            letter-spacing: 0.01em;
            text-shadow: 0 1px 4px rgba(2, 16, 40, 0.50);
        }
        @media (max-width: 640px) {
            .home-sec-1 {
                padding-top: 56px;
                padding-bottom: 18px;
            }
        }

        /* Ligne d'icônes d'accueil : en portrait entre fond1 et fond2 ; en paysage entre Se connecter et La Terre */
        .home-icons-row {
            position: relative;
            z-index: 25;
            width: 100%;
            height: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            pointer-events: none;
        }
        .home-icon-tile {
            pointer-events: auto;
            height: 46px;
            padding: 6px;
            border-radius: 13px;
            background: #ffffff;
            border: 1.5px solid rgba(255, 255, 255, 0.96);
            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.30), 0 0 0 1px rgba(148, 163, 184, 0.25);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .home-icon-tile:hover {
            transform: translateY(-1px) scale(1.03);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.36), 0 0 12px rgba(255, 0, 51, 0.28);
        }
        .home-icon-tile:active {
            transform: scale(0.95);
        }
        .home-icon-tile:focus-visible {
            outline: 3px solid #38bdf8;
            outline-offset: 3px;
        }
        .home-youtube-tile {
            width: 68px;
            padding: 7px 9px;
        }
        .home-youtube-tile svg {
            width: 100%;
            height: 100%;
            display: block;
            pointer-events: none;
        }
        @media (orientation: landscape) {
            .home-icons-row {
                position: absolute;
                top: clamp(82px, 13.4vw, 162px);
                left: 0;
                right: 0;
                height: auto;
            }
        }
        @media (orientation: landscape) and (max-width: 640px) {
            .home-sec-1 {
                padding-top: 126px;
                padding-bottom: 14px;
            }
        }

        /* Étoiles Filantes Réalistes et Scintillements dans fond1 */
        .shooting-star-group {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: hidden;
            z-index: 4;
        }

        /* Étoile filante 1 : GAUCHE vers DROITE (Cycle naturel toutes les 14 secondes) */
        .star-shoot-1 {
            position: absolute;
            top: 10%;
            left: 5%;
            width: clamp(130px, 20vw, 200px);
            height: 3.5px;
            background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(125, 211, 252, 0.5) 30%, #ffffff 100%);
            border-radius: 50%;
            filter: drop-shadow(0 0 10px #38bdf8) drop-shadow(0 0 5px #ffffff);
            transform: rotate(25deg);
            opacity: 0;
            animation: shootStarAnim1 14s ease-out infinite;
        }
        .star-shoot-1::after {
            content: '';
            position: absolute;
            right: -2px;
            top: -4px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #ffffff;
            box-shadow: 0 0 16px #ffffff, 0 0 30px #38bdf8, 0 0 45px #0284c7;
        }

        /* Étoile filante 2 : DROITE vers GAUCHE (Intervient 10 secondes plus tard) */
        .star-shoot-2 {
            position: absolute;
            top: 16%;
            right: 8%;
            width: clamp(120px, 18vw, 180px);
            height: 3px;
            background: linear-gradient(-90deg, rgba(255, 255, 255, 0) 0%, rgba(186, 230, 253, 0.5) 30%, #ffffff 100%);
            border-radius: 50%;
            filter: drop-shadow(0 0 9px #7dd3fc) drop-shadow(0 0 4px #ffffff);
            transform: rotate(-25deg);
            opacity: 0;
            animation: shootStarAnim2 15s ease-out infinite 9.5s;
        }
        .star-shoot-2::after {
            content: '';
            position: absolute;
            left: -2px;
            top: -4px;
            width: 11px;
            height: 11px;
            border-radius: 50%;
            background: #ffffff;
            box-shadow: 0 0 15px #ffffff, 0 0 28px #38bdf8;
        }

        /* Petites étoiles qui s'illuminent / scintillent doucement dans le ciel */
        .star-twinkle-1 {
            position: absolute;
            top: 18%;
            left: 24%;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: #ffffff;
            box-shadow: 0 0 10px #ffffff, 0 0 18px #38bdf8;
            animation: twinklePulse 4s ease-in-out infinite;
        }
        .star-twinkle-2 {
            position: absolute;
            top: 30%;
            right: 22%;
            width: 4.5px;
            height: 4.5px;
            border-radius: 50%;
            background: #ffffff;
            box-shadow: 0 0 9px #ffffff, 0 0 16px #7dd3fc;
            animation: twinklePulse 5s ease-in-out infinite 2s;
        }

        @keyframes shootStarAnim1 {
            0% {
                opacity: 0;
                transform: translate(0, 0) rotate(25deg) scale(0.4);
            }
            2.5% {
                opacity: 1;
                transform: translate(20px, 9px) rotate(25deg) scale(1);
            }
            13% {
                opacity: 0.95;
                transform: translate(220px, 102px) rotate(25deg) scale(1.05);
            }
            18% {
                opacity: 0;
                transform: translate(290px, 135px) rotate(25deg) scale(0.5);
            }
            100% {
                opacity: 0;
                transform: translate(290px, 135px) rotate(25deg) scale(0);
            }
        }

        @keyframes shootStarAnim2 {
            0% {
                opacity: 0;
                transform: translate(0, 0) rotate(-25deg) scale(0.4);
            }
            2.5% {
                opacity: 1;
                transform: translate(-20px, 9px) rotate(-25deg) scale(1);
            }
            13% {
                opacity: 0.95;
                transform: translate(-200px, 93px) rotate(-25deg) scale(1.05);
            }
            18% {
                opacity: 0;
                transform: translate(-270px, 126px) rotate(-25deg) scale(0.5);
            }
            100% {
                opacity: 0;
                transform: translate(-270px, 126px) rotate(-25deg) scale(0);
            }
        }

        @keyframes twinklePulse {
            0%, 100% { opacity: 0.3; transform: scale(0.85); }
            50% { opacity: 1; transform: scale(1.35); box-shadow: 0 0 12px #ffffff, 0 0 24px #38bdf8; }
        }

        /* SECTION 2 : Plage et mer avec fond2.jpg (1024x697) sans aucun rognage en largeur */
        .home-sec-2 {
            width: 100%;
            aspect-ratio: 1024 / 697;
            height: auto;
            flex-shrink: 0;
            background: url('fond2.jpg') center / 100% 100% no-repeat;
            position: relative;
            overflow: hidden;
            box-sizing: border-box;
        }

        /* Pirogue Polynésienne Traditionnelle à Balancier qui vogue sur l'eau */
        .tahiti-boat {
            position: absolute;
            bottom: 22%;
            left: 0;
            width: clamp(65px, 9vw, 110px);
            height: auto;
            pointer-events: none;
            z-index: 4;
            opacity: 0.92;
            animation: boatSailAnim 25s linear infinite;
        }
        .boat-hull {
            animation: boatWaveRocking 3.5s ease-in-out infinite;
            transform-origin: center bottom;
        }
        @keyframes boatSailAnim {
            0% {
                left: 100%;
                opacity: 0;
            }
            3% {
                left: 95%;
                opacity: 0.95;
            }
            66% {
                left: 25%;
                opacity: 0.95;
                animation-timing-function: ease-out;
            }
            80% {
                left: 8%;
                opacity: 0.95;
            }
            96% {
                left: 8%;
                opacity: 0.95;
            }
            99% {
                left: 8%;
                opacity: 0;
            }
            100% {
                left: 100%;
                opacity: 0;
            }
        }
        @keyframes boatWaveRocking {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-3.5px) rotate(1.8deg); }
        }

        /* SECTION 3 : Description jaune avec typographie fluide */
        .home-sec-3 {
            width: 100%;
            height: auto;
            flex-shrink: 0;
            background: linear-gradient(180deg, #fef08a 0%, #fef9c3 60%, #fde047 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: clamp(20px, 4vw, 42px) clamp(76px, 13vw, 96px);
            box-sizing: border-box;
            box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
        }
        .desc-script-title {
            font-family: 'Caveat', cursive, sans-serif;
            font-size: clamp(2.4rem, 6vw, 3.8rem);
            color: #000000;
            line-height: 1.05;
            margin-bottom: 4px;
        }
        .desc-bold-subtitle {
            font-family: 'Roboto Slab', serif;
            font-size: clamp(1.05rem, 2.4vw, 1.6rem);
            font-weight: 900;
            color: #000000;
            margin-bottom: 6px;
            letter-spacing: 0.4px;
            line-height: 1.25;
        }
        .desc-clean-text {
            font-family: 'Roboto Slab', serif;
            font-size: clamp(0.92rem, 2.1vw, 1.35rem);
            color: #000000;
            font-weight: 700;
            line-height: 1.3;
            max-width: 700px;
        }

        /* Pied de page accueil fond rose clair + mention Copyright © qsp.icu */
        .home-footer-bar {
            width: 100%;
            flex: 1 0 auto;
            background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 100%);
            border-top: 1px solid #fbcfe8;
            padding: 18px clamp(76px, 13vw, 96px) 34px;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
            align-items: flex-end;
            text-align: center;
        }
        .home-footer-copy {
            font-size: 0.9rem;
            font-weight: 400;
            line-height: 1.4;
            color: #000000;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 5px;
        }
        .footer-copyright-link {
            background: none;
            border: none;
            padding: 2px 3px;
            margin: 0;
            font: inherit;
            font-weight: 400;
            color: #2563eb;
            text-decoration: none;
            text-underline-offset: 2px;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            transition: color 0.15s ease, opacity 0.15s ease;
        }
        .footer-copyright-link:hover {
            color: #1d4ed8;
            text-decoration: underline;
        }
        .footer-copyright-link:active {
            opacity: 0.75;
        }
        .footer-copyright-domain {
            color: #000000;
            font-weight: 400;
        }
        .copyright-modal-box {
            max-width: clamp(330px, 92vw, 440px) !important;
            text-align: center;
        }
        .copyright-modal-title-lg {
            width: 100%;
            font-size: clamp(1.24rem, 3.8vw, 1.5rem);
            font-weight: 900;
            color: #0f172a;
            margin: 2px 0 0;
            line-height: 1.2;
            text-align: center;
        }
        .copyright-modal-welcome-lg {
            width: 100%;
            font-size: clamp(1.12rem, 3.4vw, 1.36rem);
            font-weight: 900;
            color: #0369a1;
            margin: 2px 0 14px;
            line-height: 1.25;
            text-align: center;
        }
        .copyright-modal-body {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 11px;
            text-align: center;
            color: #334155;
            font-size: 0.84rem;
            font-weight: 500;
            line-height: 1.48;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 14px;
            box-sizing: border-box;
        }
        .copyright-modal-body p {
            margin: 0;
        }
        .copyright-modal-subheading {
            font-weight: 800;
            color: #0f172a;
            font-size: 0.9rem;
            margin-top: 2px !important;
        }
        .brand-logo-modal-box {
            max-width: clamp(300px, 88vw, 370px) !important;
            text-align: center;
        }
        .brand-logo-showcase-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 0 0 auto;
            margin: 4px auto 8px;
        }
        .brand-logo-flip-btn {
            display: block;
            position: relative;
            width: clamp(182px, 48vw, 210px);
            height: clamp(182px, 48vw, 210px);
            aspect-ratio: 1 / 1;
            flex: 0 0 auto;
            padding: 0;
            border: none;
            background: transparent;
            cursor: pointer;
            perspective: 1000px;
            -webkit-tap-highlight-color: transparent;
            outline: none;
        }
        .brand-logo-flip-btn:focus-visible {
            outline: 3px solid #38bdf8;
            outline-offset: 4px;
            border-radius: 28px;
        }
        .brand-logo-flip-inner {
            display: block;
            position: relative;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            transition: transform 0.56s cubic-bezier(0.34, 1.32, 0.64, 1);
        }
        .brand-logo-flip-btn:hover .brand-logo-flip-inner {
            transform: translateY(-2px);
        }
        .brand-logo-flip-btn.is-qr-active .brand-logo-flip-inner {
            transform: rotateY(180deg);
        }
        .brand-logo-flip-btn.is-qr-active:hover .brand-logo-flip-inner {
            transform: rotateY(180deg) translateY(-2px);
        }
        @media (prefers-reduced-motion: reduce) {
            .brand-logo-flip-inner {
                transition: none;
            }
            .mirror-persistent-icon-badge {
                animation: none;
            }
        }
        .brand-logo-showcase-card {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            aspect-ratio: 1 / 1;
            padding: 18px;
            background: #ffffff;
            border: 2.5px solid #000000;
            border-radius: 26px;
            box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25), 0 5px 12px rgba(0, 0, 0, 0.18);
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            pointer-events: none;
        }
        .brand-logo-face-front {
            transform: rotateY(0deg);
        }
        .brand-logo-showcase-card img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            pointer-events: none;
        }
        .brand-logo-qr-card {
            transform: rotateY(180deg);
            padding: 14px;
        }
        .brand-logo-qr-card .brand-qr-svg {
            width: 100%;
            height: 100%;
            display: block;
            border-radius: 10px;
        }
        .brand-logo-flip-pill {
            position: relative;
            z-index: 4;
            margin-top: -13px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 5px 13px;
            border-radius: 999px;
            background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
            border: 1.5px solid #0284c7;
            color: #0369a1;
            font-family: inherit;
            font-size: 0.77rem;
            font-weight: 800;
            letter-spacing: 0.015em;
            box-shadow: 0 5px 14px rgba(2, 132, 199, 0.22);
            cursor: pointer;
            flex: 0 0 auto;
            transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
        }
        .brand-logo-flip-pill:hover {
            transform: translateY(-1px);
            box-shadow: 0 7px 16px rgba(2, 132, 199, 0.28);
        }
        .brand-logo-flip-pill svg {
            width: 15px;
            height: 15px;
            flex-shrink: 0;
            transition: transform 0.35s ease;
        }
        .brand-logo-flip-pill.is-qr-active svg {
            transform: rotate(180deg);
        }
        .brand-logo-modal-caption {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            text-align: center;
            flex: 0 0 auto;
            margin-bottom: 2px;
        }
        .brand-logo-caption-main {
            font-family: 'Lora', Georgia, serif;
            font-size: clamp(1.25rem, 3.8vw, 1.44rem);
            font-weight: 700;
            color: #0b2545;
            letter-spacing: 0.015em;
            line-height: 1.2;
        }
        .brand-logo-caption-sub {
            font-size: 0.9rem;
            font-weight: 600;
            color: #64748b;
            letter-spacing: 0.04em;
            line-height: 1.25;
        }
        .brand-logo-caption-domain {
            display: inline-block;
            margin-top: 3px;
            padding: 3px 15px;
            border-radius: 999px;
            background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 100%);
            border: 1.5px solid #38bdf8;
            color: #0369a1;
            font-size: 0.96rem;
            font-weight: 800;
            letter-spacing: 0.03em;
            box-shadow: 0 3px 8px rgba(2, 132, 199, 0.14);
        }
        .brand-logo-share-heading {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            margin: 10px 0 4px;
            color: #0f766e;
            font-size: 0.78rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            flex: 0 0 auto;
        }
        .brand-logo-share-heading::before,
        .brand-logo-share-heading::after {
            content: "";
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.45), transparent);
        }
        .brand-logo-actions {
            display: flex;
            flex-direction: column;
            gap: 7px;
            width: 100%;
            margin: 4px 0 2px;
            flex: 0 0 auto;
        }
        .brand-logo-action-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 9px 14px;
            border-radius: 14px;
            font-family: inherit;
            font-size: 0.9rem;
            font-weight: 700;
            line-height: 1.2;
            text-decoration: none;
            cursor: pointer;
            box-sizing: border-box;
            flex: 0 0 auto;
            transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
        }
        .brand-logo-action-btn:hover {
            transform: translateY(-1px);
        }
        .brand-logo-action-btn:active {
            transform: scale(0.985);
        }
        .brand-logo-copy-btn {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border: 1.5px solid #0284c7;
            color: #0369a1;
            box-shadow: 0 4px 10px rgba(2, 132, 199, 0.14);
        }
        .brand-logo-copy-btn.is-copied {
            background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
            border-color: #16a34a;
            color: #15803d;
        }
        .brand-logo-whatsapp-btn {
            background: linear-gradient(135deg, #25D366 0%, #16a34a 100%);
            border: 1.5px solid #15803d;
            color: #ffffff;
            box-shadow: 0 5px 14px rgba(37, 211, 102, 0.28);
        }
        .brand-logo-email-btn {
            background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
            border: 1.5px solid #0f766e;
            color: #ffffff;
            box-shadow: 0 5px 14px rgba(15, 118, 110, 0.24);
        }

        /* Modale Chaîne YouTube (direction artistique coco + cadre tropical) */
        .youtube-modal-box {
            max-width: clamp(325px, 94vw, 460px) !important;
            text-align: center;
        }
        .yt-modal-channel-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }
        .yt-modal-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            object-fit: contain;
            background: #ffffff;
            border: 1.5px solid #cbd5e1;
            padding: 2px;
            box-sizing: border-box;
            flex-shrink: 0;
        }
        .yt-modal-channel-meta {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            line-height: 1.15;
            min-width: 0;
        }
        .yt-modal-channel-name {
            font-size: 0.92rem;
            font-weight: 900;
            color: #0f172a;
        }
        .yt-modal-channel-handle {
            font-size: 0.72rem;
            font-weight: 700;
            color: #64748b;
        }
        .yt-banner-frame {
            width: 100%;
            border-radius: 14px;
            overflow: hidden;
            border: 1.5px solid #e2e8f0;
            box-shadow: 0 5px 14px rgba(15, 23, 42, 0.14);
            background: #fef3c7;
            flex-shrink: 0;
        }
        .yt-banner-frame img {
            width: 100%;
            height: auto;
            display: block;
            aspect-ratio: 1707 / 282;
            object-fit: cover;
        }
        .yt-showcase-card {
            width: 100%;
            background: #f8fafc;
            border: 1.5px solid #e2e8f0;
            border-radius: 16px;
            padding: 8px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex-shrink: 0;
        }
        #youtubeChannelModal {
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            background: rgba(3, 7, 18, 0.88);
        }
        .yt-showcase-card.is-hidden {
            display: none;
        }
        .yt-player-frame {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            border-radius: 12px;
            overflow: hidden;
            contain: layout paint;
            background: #0f172a;
            border: 1.5px solid #1e293b;
            box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
        }
        .yt-player-frame.is-swapping {
            animation: ytCardSwapAnim 0.24s ease;
        }
        @keyframes ytCardSwapAnim {
            from { opacity: 0.65; }
            to { opacity: 1; }
        }
        .yt-player-frame iframe {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
            display: block;
        }
        .yt-video-title {
            font-size: 0.8rem;
            font-weight: 800;
            color: #1e293b;
            line-height: 1.25;
            text-align: center;
            padding: 0 6px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .yt-swipe-pad {
            position: relative;
            width: 100%;
            min-height: 62px;
            border-radius: 14px;
            background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
            border: 1.5px solid #cbd5e1;
            box-shadow: inset 0 1px 0 #ffffff, 0 3px 10px rgba(15, 23, 42, 0.06);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            padding: 6px;
            box-sizing: border-box;
            touch-action: pan-y;
            user-select: none;
            -webkit-user-select: none;
            cursor: grab;
            overflow: hidden;
            transition: border-color 0.16s ease, background 0.16s ease;
        }
        .yt-swipe-pad.is-hidden {
            display: none !important;
        }
        .yt-swipe-pad.is-dragging {
            cursor: grabbing;
            border-color: #fb7185;
            background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
        }
        .yt-swipe-pad-arrow {
            width: 40px;
            height: 48px;
            min-width: 40px;
            border-radius: 11px;
            border: 1.5px solid #e2e8f0;
            background: #ffffff;
            color: #0f172a;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
            transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
            -webkit-tap-highlight-color: transparent;
            flex-shrink: 0;
            z-index: 2;
        }
        .yt-swipe-pad-arrow:hover {
            background: #fff1f2;
            border-color: #fb7185;
            color: #e11d48;
        }
        .yt-swipe-pad-arrow:active {
            transform: scale(0.93);
        }
        .yt-swipe-pad-track {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            transition: transform 0.12s ease-out;
        }
        .yt-swipe-pad.is-dragging .yt-swipe-pad-track {
            transition: none;
        }
        .yt-swipe-pad-top {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .yt-video-counter {
            background: #0f172a;
            color: #ffffff;
            font-size: 0.74rem;
            font-weight: 900;
            padding: 2px 9px;
            border-radius: 999px;
            letter-spacing: 0.03em;
            line-height: 1.3;
        }
        .yt-swap-dots {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .yt-swap-dot {
            border: none;
            background: #cbd5e1;
            width: 10px;
            height: 8px;
            padding: 0;
            border-radius: 999px;
            cursor: pointer;
            transition: width 0.2s ease, background 0.2s ease;
            -webkit-tap-highlight-color: transparent;
        }
        .yt-swap-dot.is-active {
            width: 24px;
            background: #ff0033;
            box-shadow: 0 2px 6px rgba(255, 0, 51, 0.28);
        }
        .yt-swipe-pad-hint {
            font-size: 0.72rem;
            font-weight: 700;
            color: #64748b;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }
        .yt-bottom-cta-stack {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            width: 100%;
            flex-shrink: 0;
        }
        .yt-channel-cta-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            width: 100%;
            padding: 11px 16px;
            border-radius: 15px;
            background: linear-gradient(135deg, #ff0033 0%, #d90429 100%);
            border: 1.5px solid #b91c1c;
            color: #ffffff;
            font-family: inherit;
            font-size: 0.92rem;
            font-weight: 900;
            text-decoration: none;
            box-sizing: border-box;
            box-shadow: 0 8px 18px rgba(220, 38, 38, 0.28);
            transition: transform 0.16s ease, box-shadow 0.16s ease;
        }
        .yt-channel-cta-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 22px rgba(220, 38, 38, 0.36);
        }
        .yt-channel-cta-btn:active {
            transform: scale(0.98);
        }
        .yt-share-toggle-pill {
            margin-top: 0 !important;
        }
        .yt-share-drawer {
            display: none;
            width: 100%;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding-top: 2px;
            flex-shrink: 0;
        }
        .yt-share-drawer.is-open {
            display: flex;
        }
        .yt-share-drawer .brand-logo-actions {
            gap: 6px;
            margin: 2px 0;
        }
        .yt-qr-card-wrap {
            width: clamp(134px, 35vw, 152px);
            height: clamp(134px, 35vw, 152px);
            padding: 10px;
            background: #ffffff;
            border: 2.5px solid #000000;
            border-radius: 22px;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .yt-qr-card-wrap .brand-qr-svg {
            width: 100%;
            height: 100%;
            display: block;
            border-radius: 8px;
        }
        .unregistered-reset-box {
            max-width: clamp(315px, 90vw, 370px) !important;
            text-align: center;
        }
        .unregistered-reset-emblem {
            width: 58px;
            height: 58px;
            border-radius: 50%;
            margin: 0 auto 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 58%, #fef3c7 100%);
            border: 2px solid #7dd3fc;
            color: #0369a1;
            box-shadow: 0 8px 20px rgba(2, 132, 199, 0.18);
        }
        .unregistered-reset-title {
            font-size: 1.14rem;
            font-weight: 900;
            color: #0f172a;
            margin: 0 0 6px;
            line-height: 1.25;
        }
        .unregistered-reset-email-pill {
            display: inline-block;
            max-width: 100%;
            overflow-wrap: anywhere;
            background: #fef3c7;
            color: #92400e;
            border: 1px solid #fde68a;
            border-radius: 999px;
            padding: 4px 11px;
            font-size: 0.74rem;
            font-weight: 800;
            margin: 0 auto 10px;
        }
        .unregistered-reset-card {
            background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 60%, #fffbeb 100%);
            border: 1.5px solid #bae6fd;
            border-radius: 16px;
            padding: 14px;
            margin: 0 0 14px;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
        }
        .unregistered-reset-text {
            margin: 0;
            font-size: 0.85rem;
            color: #334155;
            line-height: 1.5;
            font-weight: 600;
        }
        .unregistered-reset-text strong {
            color: #0369a1;
            font-weight: 800;
        }
        .unregistered-reset-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .unregistered-reset-close-btn {
            width: 100%;
            max-width: 230px;
            margin: 0 auto;
            padding: 10px 14px;
            border-radius: 26px;
            border: 1.5px solid #cbd5e1;
            background: #f8fafc;
            color: #475569;
            font-size: 0.85rem;
            font-weight: 800;
            cursor: pointer;
            transition: background 0.14s ease, transform 0.12s ease;
        }
        .unregistered-reset-close-btn:hover {
            background: #e2e8f0;
        }
        .unregistered-reset-close-btn:active {
            transform: scale(0.98);
        }

        /* Modale Réinitialisation Code PIN 6 chiffres (Action URL Firebase) */
        .reset-pin-box {
            max-width: 356px;
        }
        .reset-pin-status-card {
            background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 65%, #fffbeb 100%);
            border: 1.5px solid #bae6fd;
            border-radius: 16px;
            padding: 16px 14px;
            text-align: center;
            color: #334155;
            font-size: 0.85rem;
            font-weight: 600;
            line-height: 1.5;
        }
        .reset-pin-status-card.is-error {
            background: linear-gradient(135deg, #fff1f2 0%, #fef2f2 65%, #fffbeb 100%);
            border-color: #fecaca;
            color: #991b1b;
        }
        .reset-pin-status-card.is-success {
            background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%);
            border-color: #a7f3d0;
            color: #065f46;
        }
        .reset-pin-status-icon {
            font-size: 2rem;
            line-height: 1;
            margin-bottom: 8px;
        }
        .reset-pin-status-title {
            margin: 0 0 6px;
            font-size: 1.02rem;
            font-weight: 900;
            color: #0f172a;
        }
        .reset-pin-email-pill {
            display: inline-block;
            max-width: 100%;
            overflow-wrap: anywhere;
            background: #e0f2fe;
            color: #0369a1;
            border: 1.5px solid #bae6fd;
            border-radius: 999px;
            padding: 5px 12px;
            font-size: 0.78rem;
            font-weight: 800;
            margin: 0 auto 4px;
            text-align: center;
        }
        .reset-pin-lead {
            margin: 0 0 6px;
            text-align: center;
            font-size: 0.82rem;
            font-weight: 600;
            color: #475569;
            line-height: 1.4;
        }
        .reset-pin-field-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin: 2px 0 4px;
        }
        .reset-pin-field-counter {
            font-size: 0.75rem;
            font-weight: 800;
            color: #64748b;
            flex-shrink: 0;
        }
        .reset-pin-field-counter.is-ready {
            color: #059669;
        }
        .reset-pin-input {
            padding: 4px 40px !important;
            letter-spacing: 0.22em;
            font-weight: 800;
            font-size: 1rem !important;
            text-align: center;
        }
        .reset-pin-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 4px;
        }
        .reset-pin-actions .unregistered-reset-close-btn {
            max-width: none;
        }

        /* === LABO TEST, SIMULATEUR CLIENT & APERCUS E-MAILS === */
        .admin-app-icon-box.tile-sandbox {
            background: linear-gradient(145deg, #4338ca 0%, #0284c7 58%, #0d9488 100%);
            box-shadow: 0 8px 18px rgba(67, 56, 202, 0.34);
        }
        .admin-app-icon-box.tile-gift-popups {
            background: linear-gradient(145deg, #db2777 0%, #f59e0b 100%);
            box-shadow: 0 8px 18px rgba(219, 39, 119, 0.34);
        }
        .admin-top-mirror-chip.is-sandbox {
            background: linear-gradient(135deg, #4338ca 0%, #0284c7 100%);
            border-color: rgba(165, 180, 252, 0.65);
            color: #ffffff;
        }
        .sandbox-client-dock {
            width: 100%;
            max-width: 652px;
            margin: 0 auto 8px;
            padding: 8px 10px;
            border-radius: 14px;
            background: linear-gradient(135deg, rgba(30, 27, 75, 0.94) 0%, rgba(15, 23, 42, 0.95) 100%);
            border: 1.5px solid rgba(165, 180, 252, 0.55);
            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28);
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex-shrink: 0;
            position: relative;
            z-index: 43;
            box-sizing: border-box;
        }
        .sandbox-dock-top-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            flex-wrap: wrap;
        }
        .sandbox-dock-status-pill {
            font-size: 0.71rem;
            font-weight: 800;
            color: #e0e7ff;
            line-height: 1.3;
            flex: 1 1 180px;
        }
        .sandbox-dock-top-actions {
            display: flex;
            align-items: center;
            gap: 5px;
            flex-shrink: 0;
        }
        .sandbox-dock-mini-btn {
            border: 1px solid rgba(199, 210, 254, 0.4);
            background: rgba(255, 255, 255, 0.14);
            color: #ffffff;
            border-radius: 8px;
            padding: 4px 8px;
            font-size: 0.7rem;
            font-weight: 800;
            cursor: pointer;
        }
        .sandbox-dock-mini-btn.is-exit {
            background: rgba(239, 68, 68, 0.85);
            border-color: rgba(252, 165, 165, 0.6);
        }
        .sandbox-dock-actions-row {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 5px;
        }
        .sandbox-dock-action-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 6px 7px;
            border-radius: 9px;
            border: 1px solid rgba(125, 211, 252, 0.45);
            background: rgba(14, 165, 233, 0.22);
            color: #f0f9ff;
            font-size: 0.72rem;
            font-weight: 800;
            cursor: pointer;
            text-align: center;
            line-height: 1.2;
        }
        .sandbox-dock-action-btn.is-pay {
            background: linear-gradient(135deg, #059669 0%, #10b981 100%);
            border-color: rgba(167, 243, 208, 0.65);
            color: #ffffff;
        }
        .sandbox-admin-tabs {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 6px;
            margin-bottom: 12px;
        }
        .sandbox-tab-btn {
            border: 1.5px solid #cbd5e1;
            background: #f8fafc;
            color: #334155;
            border-radius: 11px;
            padding: 8px 6px;
            font-size: 0.76rem;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.16s ease;
        }
        .sandbox-tab-btn.active {
            background: linear-gradient(135deg, #4338ca 0%, #0284c7 100%);
            border-color: #3730a3;
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(67, 56, 202, 0.26);
        }
        .sandbox-scenario-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
        }
        .sandbox-scenario-btn {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 3px;
            text-align: left;
            padding: 10px 12px;
            border-radius: 12px;
            border: 1.5px solid #e2e8f0;
            background: #ffffff;
            cursor: pointer;
            transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
        }
        .sandbox-scenario-btn.is-selected {
            border-color: #4f46e5;
            background: #eef2ff;
            box-shadow: 0 3px 10px rgba(79, 70, 229, 0.14);
        }
        .sandbox-scenario-title {
            font-size: 0.85rem;
            font-weight: 900;
            color: #0f172a;
        }
        .sandbox-scenario-desc {
            font-size: 0.74rem;
            color: #475569;
            line-height: 1.35;
        }
        .sandbox-config-card {
            background: #f8fafc;
            border: 1px solid #cbd5e1;
            border-radius: 12px;
            padding: 10px 11px;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        .sandbox-two-col-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 8px;
        }
        .sandbox-two-col-grid > div {
            min-width: 0;
        }
        #adminSectionSandbox .admin-card,
        #adminSectionSandbox input,
        #adminSectionSandbox select,
        #adminSectionSandbox button {
            max-width: 100%;
            min-width: 0;
            box-sizing: border-box;
        }
        #adminSectionSandbox select {
            text-overflow: ellipsis;
        }
        .sandbox-email-group {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 10px;
        }
        .sandbox-email-group-title {
            font-size: 0.8rem;
            font-weight: 900;
            margin-bottom: 8px;
            color: #0369a1;
        }
        .sandbox-email-group-title.is-in {
            color: #9d174d;
        }
        .sandbox-email-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .sandbox-email-btn {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 9px 11px;
            border-radius: 10px;
            border: 1px solid #cbd5e1;
            background: #f8fafc;
            color: #0f172a;
            font-size: 0.78rem;
            font-weight: 800;
            cursor: pointer;
            text-align: left;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
        }
        .sandbox-email-btn > span:first-child {
            min-width: 0;
            word-break: break-word;
        }
        .sandbox-email-btn > span:last-child {
            flex-shrink: 0;
            white-space: nowrap;
        }
        .sandbox-config-card code {
            word-break: break-all;
        }
        .sandbox-map-card {
            background: #f8fafc;
            border: 1px solid #cbd5e1;
            border-radius: 11px;
            padding: 9px 10px;
            display: flex;
            flex-direction: column;
            gap: 7px;
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
            overflow-wrap: anywhere;
        }
        .sandbox-email-btn.is-highlight {
            background: #fef3c7;
            border-color: #f59e0b;
            color: #78350f;
        }
        .sandbox-email-btn.is-inbound {
            background: #fdf2f8;
            border-color: #f9a8d4;
            color: #831843;
        }
        .sandbox-map-group {
            margin-bottom: 12px;
        }
        .sandbox-map-group-title {
            font-size: 0.81rem;
            font-weight: 900;
            color: #1e293b;
            margin-bottom: 7px;
        }
        .sandbox-map-list {
            display: flex;
            flex-direction: column;
            gap: 7px;
        }
        .sandbox-map-title {
            font-size: 0.82rem;
            font-weight: 900;
            color: #0f172a;
        }
        .sandbox-map-desc {
            font-size: 0.74rem;
            color: #475569;
            line-height: 1.32;
        }
        .sandbox-map-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .sandbox-map-btn {
            border: 1px solid #0284c7;
            background: #e0f2fe;
            color: #0369a1;
            border-radius: 8px;
            padding: 5px 10px;
            font-size: 0.74rem;
            font-weight: 800;
            cursor: pointer;
        }
        @media (max-width: 480px) {
            .sandbox-client-dock {
                padding: 7px 8px;
                margin-bottom: 6px;
            }
            .sandbox-dock-action-btn {
                font-size: 0.69rem;
                padding: 5px 5px;
            }
            .sandbox-tab-btn {
                font-size: 0.72rem;
                padding: 7px 4px;
            }
        }

        /* === ECRAN UNIFIÉ ENVOI E-MAIL / PDF & STUDIO MODÈLES === */
        .bulk-send-header-row {
            display: flex;
            flex-direction: column;
            gap: 2px;
            margin-bottom: 12px;
        }
        .bulk-send-subtitle {
            font-size: 0.74rem;
            font-weight: 700;
            color: #64748b;
        }
        .bulk-zone-card {
            border-radius: 16px;
            padding: 12px;
            margin-bottom: 12px;
            border: 1.5px solid #cbd5e1;
            box-sizing: border-box;
            max-width: 100%;
            min-width: 0;
        }
        .bulk-zone-dest {
            background: #f8fafc;
            border-color: #cbd5e1;
        }
        .bulk-zone-attachment {
            background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
            border-color: #38bdf8;
        }
        .bulk-zone-message {
            background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
            border-color: #f59e0b;
        }
        .bulk-zone-title-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }
        .bulk-zone-badge {
            display: inline-flex;
            align-items: center;
            padding: 3px 10px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 900;
            letter-spacing: 0.01em;
        }
        .bulk-zone-badge.is-neutral {
            background: #e2e8f0;
            color: #1e293b;
        }
        .bulk-zone-badge.is-blue {
            background: #0284c7;
            color: #ffffff;
        }
        .bulk-zone-badge.is-gold {
            background: #d97706;
            color: #ffffff;
        }
        .bulk-attach-type-pills {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 6px;
            margin-bottom: 10px;
        }
        .bulk-attach-pill {
            border: 1.5px solid #7dd3fc;
            background: #ffffff;
            color: #0369a1;
            border-radius: 10px;
            padding: 8px 4px;
            font-size: 0.79rem;
            font-weight: 800;
            cursor: pointer;
            text-align: center;
            transition: transform 0.12s, background 0.15s, color 0.15s;
            min-width: 0;
        }
        .bulk-attach-pill.active {
            background: linear-gradient(135deg, #0284c7, #0d9488);
            border-color: #0369a1;
            color: #ffffff;
            box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
        }
        .delivery-mode-pill:disabled {
            opacity: 0.42;
            cursor: not-allowed;
        }
        .bulk-model-picker-box {
            background: rgba(255, 255, 255, 0.88);
            border: 1.5px solid #fcd34d;
            border-radius: 12px;
            padding: 9px 10px;
            margin-bottom: 8px;
            box-sizing: border-box;
            max-width: 100%;
            min-width: 0;
        }
        .bulk-model-picker-row {
            display: flex;
            align-items: center;
            gap: 6px;
            width: 100%;
            min-width: 0;
        }
        .bulk-model-icon-btn {
            flex: 0 0 auto;
            width: 38px;
            height: 36px;
            border-radius: 9px;
            border: 1.5px solid #bae6fd;
            background: #f0f9ff;
            color: #0369a1;
            font-size: 0.95rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
        }
        .bulk-model-icon-btn.is-danger {
            border-color: #fca5a5;
            background: #fef2f2;
            color: #b91c1c;
        }
        .models-studio-tabs {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 7px;
            margin-bottom: 12px;
        }
        .models-studio-tab {
            border: 1.5px solid #c7d2fe;
            background: #f8fafc;
            color: #4338ca;
            border-radius: 11px;
            padding: 9px 8px;
            font-size: 0.79rem;
            font-weight: 800;
            cursor: pointer;
            text-align: center;
            min-width: 0;
        }
        .models-studio-tab.active {
            background: linear-gradient(135deg, #4f46e5, #0284c7);
            border-color: #3730a3;
            color: #ffffff;
        }
        .model-kind-switch {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 6px;
            margin-bottom: 10px;
        }
        .model-kind-pill {
            border: 1.5px solid #cbd5e1;
            background: #ffffff;
            color: #334155;
            border-radius: 9px;
            padding: 7px 6px;
            font-size: 0.76rem;
            font-weight: 800;
            cursor: pointer;
            min-width: 0;
        }
        .model-kind-pill.active {
            background: #eef2ff;
            border-color: #6366f1;
            color: #3730a3;
        }
        .system-tpl-sync-banner {
            background: #f0f9ff;
            border: 1.5px solid #7dd3fc;
            border-radius: 11px;
            padding: 9px 11px;
            font-size: 0.76rem;
            font-weight: 700;
            color: #0c4a6e;
            margin-bottom: 10px;
            line-height: 1.4;
        }
        .system-tpl-card {
            background: #ffffff;
            border: 1.5px solid #cbd5e1;
            border-radius: 14px;
            padding: 11px 12px;
            margin-bottom: 10px;
            box-sizing: border-box;
            max-width: 100%;
        }
        .system-tpl-card.is-contact { border-color: #7dd3fc; background: #f8fafc; }
        .system-tpl-card.is-access { border-color: #fcd34d; background: #fffdf5; }
        .system-tpl-card.is-welcome { border-color: #6ee7b7; background: #f4fdf9; }
        .system-tpl-card.is-reset { border-color: #c7d2fe; background: #f8faff; }
        .system-tpl-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 4px;
            font-size: 0.83rem;
            color: #0f172a;
        }
        .system-tpl-vars {
            font-size: 0.7rem;
            color: #475569;
            margin-bottom: 7px;
            font-weight: 700;
        }
        .admin-app-icon-box.tile-create-email {
            background: linear-gradient(135deg, #db2777 0%, #6366f1 100%);
        }
        .bulk-clean-html-card {
            background: rgba(255, 255, 255, 0.88);
            border: 1.5px solid #fcd34d;
            border-radius: 12px;
            padding: 10px;
            box-sizing: border-box;
            max-width: 100%;
            min-width: 0;
        }
        .creator-toolbar-stack {
            display: flex;
            flex-direction: column;
            gap: 6px;
            background: #f8fafc;
            border: 1px solid #cbd5e1;
            border-radius: 12px;
            padding: 8px;
            margin-bottom: 7px;
            box-sizing: border-box;
            max-width: 100%;
        }
        .creator-rgb-bar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 5px;
        }
        .creator-rgb-picker-pill {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: #ffffff;
            border: 1.5px solid #94a3b8;
            border-radius: 9px;
            padding: 3px 7px;
            font-size: 0.71rem;
            font-weight: 800;
            color: #0f172a;
            cursor: pointer;
        }
        .creator-rgb-picker-pill input[type="color"] {
            width: 24px;
            height: 20px;
            border: none;
            padding: 0;
            background: transparent;
            cursor: pointer;
        }
        .creator-live-msg-box {
            background: #ffffff;
            border: 1.5px solid #bae6fd;
            border-radius: 12px;
            padding: 11px 13px;
            margin-bottom: 10px;
            font-size: 0.84rem;
            line-height: 1.58;
            color: #0f172a;
            overflow-wrap: anywhere;
            box-sizing: border-box;
        }
        .creator-surprise-section {
            background: linear-gradient(135deg, #fdf2f8 0%, #fffbeb 100%);
            border: 1.5px solid #f9a8d4;
            border-radius: 14px;
            padding: 10px 12px;
            margin-top: 4px;
            box-sizing: border-box;
            max-width: 100%;
        }
        .creator-surprise-live-box {
            background: linear-gradient(135deg, #fff1f2 0%, #fef3c7 52%, #f0f9ff 100%);
            border: 2px dashed #ec4899;
            border-radius: 16px;
            padding: 10px 12px;
            text-align: center;
        }


    