@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: #0B0C10;
        }
        .compact-mode #app-view .space-y-4 { row-gap: .65rem; }
        .compact-mode #app-view .rounded-2xl { border-radius: .85rem; }
        /* Custom scrollbar */
        .no-scrollbar::-webkit-scrollbar {
            display: none;
        }
        .no-scrollbar {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
    
        /* ===== Écran de chargement (splash) ===== */
        #splash {
            position: fixed; inset: 0; z-index: 9999;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            background: radial-gradient(circle at 50% 40%, #1a1d33 0%, #0D0E15 70%);
            transition: opacity .6s ease, visibility .6s ease;
        }
        #splash.hide { opacity: 0; visibility: hidden; }
        #splash .logo-card {
            display: flex; align-items: center; justify-content: center;
            animation: splashPop .7s cubic-bezier(.2,.9,.3,1.2) both, splashFloat 2.4s ease-in-out .7s infinite;
        }
        #splash .logo-card img {
            width: 168px; height: auto; display: block; border-radius: 18px;
            filter: drop-shadow(0 0 18px rgba(116,185,255,.35)) drop-shadow(0 8px 24px rgba(108,92,231,.4));
        }
        #splash .splash-title {
            margin-top: 28px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
            font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.02em;
            animation: splashFade .8s ease .3s both;
        }
        #splash .splash-sub {
            margin-top: 6px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
            font-size: 12px; color: #a1a1aa; animation: splashFade .8s ease .5s both;
        }
        #splash .splash-bar {
            margin-top: 32px; width: 140px; height: 4px; border-radius: 999px;
            background: rgba(255,255,255,.1); overflow: hidden;
            animation: splashFade .8s ease .6s both;
        }
        #splash .splash-bar span {
            display: block; height: 100%; width: 40%; border-radius: 999px;
            background: linear-gradient(90deg, #6C5CE7, #74B9FF);
            animation: splashSlide 1.2s ease-in-out infinite;
        }
        @keyframes splashPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
        @keyframes splashFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
        @keyframes splashFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
        @keyframes splashSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
    
        #rp-auth-gate { position:fixed; inset:0; z-index:99999; display:none; align-items:center; justify-content:center; padding:24px; background:radial-gradient(circle at 20% 10%,#252044 0,#0b0c10 48%); color:#fff; font-family:'Plus Jakarta Sans',sans-serif; }
        #rp-auth-gate .auth-card { width:min(100%,440px); background:#161824; border:1px solid #30334a; border-radius:24px; padding:30px; box-shadow:0 24px 80px #0008; }
        #rp-auth-gate input { width:100%; margin-top:7px; padding:13px 14px; border-radius:12px; color:#fff; background:#0d0e15; border:1px solid #34384e; outline:none; }
        #rp-auth-gate button { border-radius:12px; padding:12px 16px; font-weight:700; }
        #rp-auth-gate .auth-primary { width:100%; background:#6c5ce7; color:#fff; margin-top:16px; }
        #rp-auth-gate .auth-secondary { color:#b9b5ff; background:transparent; }
        #rp-auth-gate .auth-msg { min-height:22px; color:#ffc58c; font-size:13px; margin-top:12px; }
        #rp-account-pill { position:fixed; z-index:9998; right:14px; top:14px; background:#25283a; border:1px solid #454963; color:#fff; border-radius:999px; padding:8px 12px; font-size:12px; cursor:pointer; display:none; }

/* Authentification et démarrage */
#rp-auth-gate { min-height: 100dvh; }
#rp-app-shell.hidden { display: none !important; }

/* Boutons de connexion OAuth */
.rp-oauth-btn{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;padding:11px 7px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:#1a1d2e;color:#e5e7eb;font-size:12px;font-weight:650;transition:background .18s,border-color .18s}
.rp-oauth-btn:hover{background:#24283b;border-color:rgba(129,140,248,.65)}
.rp-oauth-btn:disabled{opacity:.55;cursor:wait}
.rp-google-mark{font-family:Arial,sans-serif;font-size:17px;font-weight:800;background:conic-gradient(from -45deg,#4285f4 0 25%,#34a853 25% 48%,#fbbc05 48% 70%,#ea4335 70% 86%,#4285f4 86%);background-clip:text;-webkit-background-clip:text;color:transparent}
.rp-facebook-mark{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:#1877f2;color:#fff;font-family:Arial,sans-serif;font-size:15px;font-weight:800}
@media(max-width:370px){.rp-oauth-btn{font-size:10px;gap:4px;padding-inline:4px}}


/* ===== Auth responsive + vrais logos de marque ===== */
.rp-oauth-btn { min-height: 52px; white-space: nowrap; }
.rp-brand-icon { width: 18px; height: 18px; flex: 0 0 18px; display:block; }
.rp-facebook-icon { color:#1877F2; }
.rp-oauth-btn span { line-height:1; }
#rp-auth-gate {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#rp-auth-gate > div {
  width: 100%;
  max-width: 440px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}
#rp-auth-gate input,
#rp-auth-gate button { max-width: 100%; }
#rp-auth-gate .grid { min-width: 0; }
@media (max-width: 640px) {
  #rp-auth-gate {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: max(18px, env(safe-area-inset-top)) 14px max(22px, env(safe-area-inset-bottom)) !important;
  }
  #rp-auth-gate > div { margin-top: 0; margin-bottom: 0; }
  #rp-auth-gate .rp-oauth-btn {
    min-width: 0;
    padding: 10px 4px;
    gap: 5px;
    font-size: clamp(10px, 3.1vw, 12px);
  }
  #rp-auth-gate .rp-brand-icon { width:16px; height:16px; flex-basis:16px; }
}
@media (max-width: 360px) {
  #rp-auth-gate { padding-left:10px !important; padding-right:10px !important; }
  #rp-auth-gate .rp-oauth-btn { font-size:10px; gap:3px; }
}
