:root{font-family:Segoe UI,Arial,sans-serif;color:#233344;background:#c8d4ff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 15% 10%,#fff 0,#e8efff 22%,transparent 48%),linear-gradient(125deg,#c9dcf4,#dcd5ff 55%,#bce8f5);overflow:hidden}.desktop-glow{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 80% 90%,#fff8 0,transparent 35%)}button,input,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:#7890a1}.auth-shell{height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(420px,100%);padding:32px;background:#f9fdffed;border:1px solid #fff;border-radius:24px;box-shadow:0 20px 60px #476a9655,inset 0 0 0 2px #d5f2ff}.brand{display:flex;align-items:center;gap:12px;color:#2876a6;font-size:22px}.brand small{display:block;color:#7b96a8;font-size:12px;font-weight:500}.butterfly{font-size:30px;color:#47b9de;text-shadow:2px 2px #f0cb62}.auth-card h1{margin:28px 0 4px;font-size:25px}.auth-card>p{margin:0 0 22px}.auth-card label{display:block;margin:16px 0 0;font-size:13px;font-weight:600;color:#526b7e}.auth-card input,.search input,.composer input,.dialog-actions~input,#add-form input{width:100%;margin-top:7px;padding:12px 14px;border:1px solid #bed9e8;border-radius:12px;background:#fff;color:#24384a;outline:none}.auth-card input:focus,.search input:focus,.composer input:focus{border-color:#4db3dc;box-shadow:0 0 0 3px #51c4ed2b}.primary,.secondary{border:0;border-radius:11px;padding:11px 16px;font-weight:700}.primary{background:linear-gradient(#64c7ed,#2394cf);color:white;box-shadow:0 3px 7px #1677a344}.auth-card .primary{width:100%;margin-top:22px;font-size:16px}.secondary{background:#e8f8ff;color:#287ba6;border:1px solid #b8dfef}.auth-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:17px;min-height:24px}.link-button{border:0;background:none;color:#2588bd;font-size:13px}.error,#auth-error{color:#b53b4a;font-size:12px}.app-shell{height:100vh;max-width:1320px;margin:auto;padding:26px}.topbar{height:58px;display:flex;justify-content:space-between;align-items:center;padding:0 22px;background:linear-gradient(#e8faff,#b9e9f8);border:2px solid #8ccde4;border-radius:18px 18px 0 0;box-shadow:0 8px 24px #4773a044}.brand.compact{font-size:19px}.brand.compact .butterfly{font-size:25px}.window-actions{display:flex;align-items:center;gap:18px;color:#3685a8;font-size:13px}.window-actions button,.section-title button,.chat-tools button{border:0;background:transparent;color:#3988aa;font-size:22px}.workspace{height:calc(100% - 58px);display:grid;grid-template-columns:330px 1fr;min-height:0;border:2px solid #8ccde4;border-top:0;border-radius:0 0 18px 18px;overflow:hidden;box-shadow:0 18px 50px #4773a044;background:#effaff}.sidebar{display:flex;flex-direction:column;min-height:0;background:linear-gradient(180deg,#f8fdff,#e1f7ff);border-right:1px solid #b7dae7}.profile{display:flex;align-items:center;gap:14px;padding:20px 18px 14px}.avatar{width:48px;height:48px;flex:none;border:3px solid #fff;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#55b6d9,#bec7ff);color:#fff;font-weight:700;box-shadow:0 0 0 2px #79c5df}.avatar.self{width:52px;height:52px;background:linear-gradient(135deg,#76c8ef,#566bba);font-size:21px}.profile-copy{display:flex;flex-direction:column;gap:4px}.profile-copy select{border:0;background:transparent;color:#708896;padding:0;font-size:13px}.search{margin:8px 16px 14px;padding:0 9px;border:1px solid #c0dfec;border-radius:22px;background:#fff;display:flex;align-items:center;gap:7px;color:#7c9eb0;font-size:24px}.search input{border:0;box-shadow:none!important;margin:0;padding:11px 0;background:transparent;font-size:13px}.section-title{padding:0 18px 9px;display:flex;justify-content:space-between;align-items:center;color:#3e6475;font-weight:700}.section-title button{font-size:25px}.contact-list{overflow:auto;flex:1;padding:0 10px}.contact{width:100%;display:flex;align-items:center;text-align:left;gap:12px;padding:10px;border:0;border-radius:13px;background:transparent;color:#304552}.contact:hover,.contact.active{background:#cff1fb}.contact.active{box-shadow:inset 0 0 0 1px #88cee3}.contact .avatar{width:42px;height:42px}.contact-meta{display:flex;flex-direction:column;gap:4px;flex:1}.contact-meta small{color:#8095a1}.presence{font-size:11px}.presence.online{color:#31b765}.presence.away{color:#e2a322}.presence.busy{color:#df6455}.presence.offline{color:#9babb5}.empty{padding:18px;color:#8aa1ad;font-size:13px;text-align:center}.sidebar-footer{padding:14px 17px;border-top:1px solid #c9e5ef;color:#3883a0;font-weight:700}.sidebar-footer .butterfly{font-size:20px}.connected{float:right;color:#7796a4;font-size:12px;font-weight:500}.chat-panel{min-width:0;background:linear-gradient(180deg,#fbfeff,#eefaff)}.welcome{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px;color:#78909d}.welcome-mark{font-size:66px;color:#57b8db;text-shadow:3px 3px #f0d36d}.welcome h2{color:#38596a;margin:10px 0}.welcome p{max-width:360px;line-height:1.6}.chat-view{height:100%;display:flex;flex-direction:column}.chat-header{height:80px;flex:none;display:flex;align-items:center;gap:14px;padding:12px 22px;border-bottom:1px solid #cfe6ee;background:#f8fdff}.chat-header .avatar{width:48px;height:48px}.chat-person{display:flex;flex-direction:column;gap:4px;flex:1}.chat-person span{font-size:12px;color:#69a2b6}.chat-tools{display:flex;gap:10px}.messages{flex:1;overflow:auto;padding:24px 5%;display:flex;flex-direction:column;gap:12px}.day-label{align-self:center;border-radius:20px;padding:6px 13px;background:#e3f2f7;color:#8ca3ad;font-size:12px;margin-bottom:6px}.bubble{max-width:min(72%,560px);padding:11px 14px;border-radius:16px;box-shadow:0 2px 6px #6689a21a;line-height:1.4;overflow-wrap:anywhere}.bubble.mine{align-self:flex-end;background:#d1f0fb;border:1px solid #a8ddeb;border-bottom-right-radius:5px}.bubble.theirs{align-self:flex-start;background:#fff;border:1px solid #d8e5e9;border-bottom-left-radius:5px}.bubble time{display:block;text-align:right;color:#98aab2;font-size:10px;margin-top:5px}.composer{position:relative;display:flex;align-items:center;gap:10px;padding:16px 22px 34px;background:#e6f7fc;border-top:1px solid #cce7ee}.composer input{margin:0;border-radius:24px;padding:14px 17px}.send{border:0;border-radius:50%;width:46px;height:46px;color:white;background:linear-gradient(#ffc66d,#f39439);font-size:20px;box-shadow:0 2px 6px #d38c4a66}.composer small{position:absolute;bottom:10px;left:25px;color:#8ca3ad;font-size:10px}dialog{border:1px solid #add9e8;border-radius:18px;padding:24px;width:min(400px,90vw);box-shadow:0 18px 50px #203a5b55;color:#334b5b}dialog::backdrop{background:#253b5566}#add-form h3{margin:0}#add-form p{color:#7b929f;font-size:14px}#add-form input{margin:8px 0 12px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:12px}@media(max-width:760px){.app-shell{padding:8px}.workspace{grid-template-columns:260px 1fr}.sidebar{min-width:0}.contact{gap:8px;padding:8px}.contact .avatar{width:36px;height:36px}.messages{padding:15px 3%}.bubble{max-width:88%}}@media(max-width:560px){.workspace{grid-template-columns:1fr}.sidebar{display:none}.chat-panel{height:100%}.app-shell{height:100dvh}.topbar{height:52px}.workspace{height:calc(100% - 52px)}}

.dialog-header{display:flex;align-items:center;justify-content:space-between}.dialog-header h3{margin:0}.dialog-close{border:0;background:transparent;color:#66899a;font-size:26px;line-height:1}.dialog-close:hover{color:#24495b}
.profile .avatar.self{border:3px solid #fff;padding:0;cursor:pointer}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.window-actions button{font-size:14px}#request-count{display:inline-grid;place-items:center;min-width:19px;height:19px;border-radius:50%;background:#ef9b4b;color:#fff;font-size:11px}.composer-tool{border:0;background:transparent;color:#3689a8;font-size:22px;padding:5px}.composer input[type=color]{width:32px;height:32px;padding:2px;border:1px solid #bed9e8;border-radius:8px;background:#fff;cursor:pointer}.emoji-tray{position:absolute;bottom:70px;left:20px;z-index:3;display:grid;grid-template-columns:repeat(7,36px);gap:3px;padding:9px;background:#faffff;border:1px solid #b9dce9;border-radius:13px;box-shadow:0 7px 20px #355a7433}.emoji-tray button{border:0;background:transparent;border-radius:7px;font-size:21px;padding:4px}.emoji-tray button:hover{background:#d9f2fa}.requests-list{display:grid;gap:10px;margin-top:15px;max-height:50vh;overflow:auto}.request-row{display:flex;gap:10px;align-items:center;padding:10px;border:1px solid #d6e9ef;border-radius:12px}.request-row .request-name{flex:1}.request-row button{font-size:12px;padding:8px}.device-settings{display:flex;gap:12px;margin-top:12px}.device-settings label{flex:1;font-size:12px;color:#698391}.device-settings select{display:block;width:100%;padding:8px;border:1px solid #c5dfe8;border-radius:8px;background:#fff;margin-top:4px}.video-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.video-grid video{width:100%;aspect-ratio:4/3;background:#172b3a;border-radius:10px;object-fit:cover}.toast{position:fixed;right:24px;top:88px;z-index:5;background:#fff;padding:12px 17px;border:1px solid #b9dce9;border-radius:12px;box-shadow:0 8px 25px #25445c33;color:#31586d}.wizz-overlay{position:fixed;inset:0;z-index:8;display:grid;place-items:center;pointer-events:none;color:#2f83ad;font-size:clamp(48px,12vw,130px);font-weight:900;text-shadow:5px 5px #f6d675,0 0 25px white;animation:wizz-pop .9s ease both}.wizz-flash{animation:wizz-shake .55s ease-in-out 2}@keyframes wizz-pop{0%{opacity:0;transform:scale(.25) rotate(-14deg)}20%{opacity:1;transform:scale(1.1) rotate(4deg)}80%{opacity:1}100%{opacity:0;transform:scale(.9)}}@keyframes wizz-shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-8px) rotate(-1deg)}40%{transform:translateX(8px) rotate(1deg)}60%{transform:translateX(-6px)}80%{transform:translateX(6px)}}

#call-dialog{width:min(600px,94vw);max-height:94vh;overflow:auto}
.video-stage{position:relative}
.video-slot{position:relative;min-width:0}
.remote-placeholder{width:100%;aspect-ratio:4/3;display:grid;place-items:center;padding:12px;text-align:center;background:#263b49;border-radius:10px;color:#d9e8ef;font-size:13px}
.video-float-bar{display:flex;align-items:center;gap:7px;min-height:38px;padding:4px 7px;background:linear-gradient(#e8faff,#b9e9f8);border:1px solid #8ccde4;border-radius:9px 9px 0 0;color:#31586d;user-select:none;touch-action:none;cursor:move}
.video-float-bar span{flex:1;font-weight:700;font-size:13px}
.video-float-bar button{width:30px;height:28px;border:1px solid #a6d3e3;border-radius:7px;background:#ffffffd9;color:#347b9b;font-size:17px;cursor:pointer}
.video-float-bar #video-hangup{color:#a43b46;font-weight:700}
.video-stage.detached{position:fixed;left:auto;right:24px;top:auto;bottom:24px;z-index:9999;width:min(560px,82vw);height:min(380px,70vh);min-width:280px;min-height:190px;resize:both;overflow:hidden;padding:8px;background:#102633;border:1px solid #84c6dc;border-radius:12px;box-shadow:0 18px 55px #102a3bcc;display:flex;flex-direction:column}
#remote-video-float{display:flex;flex:1;min-height:0}
#remote-video-float video{width:100%;height:100%;min-height:0;aspect-ratio:auto}
.video-stage:fullscreen{width:100vw;height:100vh;padding:12px;background:#09151e;display:flex;flex-direction:column}
.video-stage:fullscreen #remote-video-float{flex:1;min-height:0}
.video-stage:fullscreen #remote-video-float video{height:100%;min-height:0;aspect-ratio:auto}
@media(max-width:560px){.video-stage.detached{left:3vw!important;right:3vw!important;top:auto!important;bottom:3vh!important;width:94vw;height:48vh;min-width:0;min-height:190px}}
.camera-tools{display:flex;align-items:flex-start;gap:12px;margin-top:10px}
.camera-tools button{font-size:12px;padding:8px 10px;white-space:nowrap}
.camera-tools details{font-size:12px;color:#557181;line-height:1.45}
.camera-tools summary{cursor:pointer;color:#287ba6;font-weight:700}
.camera-tools p{margin:6px 0 0}
.emoji-tray{grid-template-columns:repeat(7,42px);gap:4px;padding:11px}
.emoji-tray button{font-size:28px;padding:5px;transition:transform .15s ease}
.emoji-tray button:hover{animation:smiley-bounce .65s ease-in-out infinite}
.message-smiley{display:inline-block;font-size:2em;line-height:1;vertical-align:-.2em;margin:0 .05em;transform-origin:50% 85%;animation:smiley-bounce 1.5s ease-in-out infinite}
@keyframes smiley-bounce{0%,100%{transform:translateY(0) scale(1)}35%{transform:translateY(-5px) scale(1.1)}65%{transform:translateY(0) scale(.98)}}
@media(prefers-reduced-motion:reduce){.message-smiley,.emoji-tray button:hover{animation:none!important}}
.app-shell.conversation-open .workspace{grid-template-columns:1fr}
.app-shell.conversation-open .sidebar{display:none}
.chat-back{flex:none;width:38px;height:38px;border:1px solid #b8dfef;border-radius:50%;background:#e8f8ff;color:#287ba6;font-size:23px;line-height:1}
.chat-back:hover{background:#d4f1fb}
.app-shell.private-chat-window{height:100vh;max-width:none;padding:0}
.app-shell.private-chat-window .topbar{display:none}
.app-shell.private-chat-window .workspace{height:100vh;grid-template-columns:1fr;border:0;border-radius:0;box-shadow:none}
.app-shell.private-chat-window .sidebar{display:none}
.app-shell.private-chat-window .chat-panel,.app-shell.private-chat-window .chat-view{height:100vh}

.auth-links{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
.auth-links .link-button{padding:0;text-align:left}
#recovery-dialog,#email-settings-dialog{width:min(440px,92vw);max-height:90vh;overflow:auto}
#recovery-dialog form,#email-settings-dialog form{display:grid;gap:12px}
#recovery-dialog p,#email-settings-dialog p{margin:3px 0;color:#627e8e;font-size:14px;line-height:1.45}
#recovery-dialog label,#email-settings-dialog label{display:block;color:#526b7e;font-size:13px;font-weight:600}
#recovery-dialog input,#recovery-dialog select,#email-settings-dialog input{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid #a9d3e5;border-radius:10px;background:#f8fdff;color:#24384a}
.recovery-message{min-height:18px;color:#326b84;font-size:13px;line-height:1.4}
#recovery-code-fields,#email-verify-fields{display:grid;gap:12px}
.email-settings-button{flex:none;width:36px;height:36px;border:1px solid #a5d6e8;border-radius:50%;background:#eefaff;color:#287ba6;font-size:18px}
.email-settings-button:hover{background:#d2f0fa}
.window-actions #mail-button{position:relative;display:grid;place-items:center;width:34px;height:32px;padding:4px;background:#eaf8ff;border:1px solid #b5ddec;border-radius:9px;color:#2c7eaa}
#mail-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mail-count{position:absolute;right:-6px;top:-7px;min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;border-radius:10px;background:#e85d5d;color:#fff;font-size:10px;font-weight:800;box-shadow:0 1px 4px #173f5855}
.mail-alert{animation:mail-flash .8s ease-in-out infinite alternate}
@keyframes mail-flash{to{background:#ffed9e;color:#a84e34;box-shadow:0 0 0 4px #ffda5a55}}
/* REVIVAL_MAIL_DIALOG_TALL_660 */
#mail-dialog{width:min(560px,94vw);height:min(660px,92vh);max-height:92vh;overflow-y:auto}
#mail-dialog>.mail-dialog-content{display:flex;flex-direction:column;gap:16px;min-height:100%}
#mail-dialog .mail-dialog-actions{margin-top:auto}
.mail-dialog-content{display:grid;gap:12px}
.mail-dialog-content p{margin:3px 0;color:#627e8e;font-size:14px;line-height:1.5}
.mail-status{padding:10px 12px;border-radius:9px;background:#eef8fc;color:#42657a}
.mail-device-code{display:grid;gap:5px;text-align:center;padding:13px;border:1px solid #a9d3e5;border-radius:10px;background:#f2fbff;color:#587384}
.mail-device-code strong{font-size:27px;letter-spacing:4px;color:#176e9a}
.mail-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mail-dialog-actions button{min-height:39px}
.mail-toast-clickable{cursor:pointer;outline:none;border-color:#77b8d5;box-shadow:0 0 0 3px #a9e3f455,0 8px 25px #25445c33}
.mail-toast-clickable:hover,.mail-toast-clickable:focus{background:#effaff;border-color:#3b9fc5}
.toast{top:auto;bottom:20px;transition:opacity .28s ease,transform .28s ease}
.toast.toast-entering,.toast.toast-leaving{opacity:0;transform:translateY(16px)}


/* Interface plein cadre : aucun fond décoratif ni panneau d’attente à droite. */
:root{background:#effaff}body{background:#effaff}.desktop-glow{display:none}
.app-shell{width:100vw;height:100vh;max-width:none;margin:0;padding:0}
.topbar{border-radius:0;box-shadow:none}
.workspace{height:calc(100vh - 58px);grid-template-columns:1fr;border:0;border-radius:0;box-shadow:none}
#app-screen:not(.private-chat-window) .chat-panel{display:none}
.app-shell.private-chat-window .workspace{height:100vh}
@media(max-width:760px){.app-shell{padding:0}}

/* Fenêtres portrait à la taille de la maquette de référence. */
@media(max-width:560px){
  #app-screen:not(.private-chat-window) .sidebar{display:flex}
  #app-screen:not(.private-chat-window) .workspace{grid-template-columns:1fr}
  #app-screen:not(.private-chat-window) .topbar{padding:0 10px}
  #app-screen:not(.private-chat-window) .window-actions{gap:7px;font-size:11px}
  #app-screen:not(.private-chat-window) .window-actions button{padding:2px;font-size:12px}
}


/* Écran de connexion bleu rétro, rétro maison. */
.auth-shell{position:relative;isolation:isolate;background:linear-gradient(145deg,#8ed2f0 0%,#bce8fa 48%,#dff5ff 100%)}
.auth-shell::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 12% 18%,#ffffff55 0 7%,transparent 7.3%),radial-gradient(circle at 88% 82%,#ffffff55 0 10%,transparent 10.3%),linear-gradient(135deg,transparent 45%,#ffffff22 45% 46%,transparent 46%)}
.auth-card{background:linear-gradient(160deg,#f1fbff,#d7f0fb);border:2px solid #92cde5;border-radius:18px;box-shadow:0 12px 0 #4387ae44,0 18px 42px #24567444,inset 0 0 0 3px #ffffff88}
.auth-card .brand{margin:-7px -7px 18px;padding:11px 14px;border:1px solid #75bddb;border-radius:12px;background:linear-gradient(180deg,#70c7e8,#348fbd);color:#fff;box-shadow:inset 0 1px 0 #ffffffaa}
.auth-card .brand small{color:#e4f8ff}
.auth-card h1{color:#244f6a}
.auth-card>p{color:#5d8297}
.auth-card label{color:#315e77}
.auth-card input{background:#f8fdff;border-color:#a9d3e5}
.auth-card input:focus{border-color:#339dc8;box-shadow:0 0 0 3px #42b4de33}
.auth-card .primary{background:linear-gradient(#52b8e0,#187eaf);box-shadow:0 3px 0 #17638c}
.auth-card .link-button{color:#1b79a8}

/* Palette bleue harmonisée pour les contacts et les discussions. */
:root{color:#21455b;background:#e4f4fb}
body{background:#e4f4fb}
.topbar{background:linear-gradient(180deg,#78c7e5,#459fcb);border-color:#3187b4;box-shadow:inset 0 1px 0 #ffffff88}
.topbar .brand.compact,.topbar .brand.compact .butterfly{color:#fff}
.window-actions{color:#effaff}
.window-actions button{color:#effaff}
.workspace{background:#dff2fa;border-color:#70b9d8}
.sidebar{background:linear-gradient(180deg,#eaf8fd 0%,#d4eff9 52%,#c5e8f5 100%);border-right-color:#9bcfe3}
.profile{background:linear-gradient(180deg,#e1f5fc,#d4edf8)}
.search{background:#f4fbfe;border-color:#8fc8df}
.search input{color:#244e65}
.section-title{color:#285c78}
.contact{color:#254b61}
.contact:hover{background:#d5f2fc}
.contact.active{background:linear-gradient(90deg,#b8e8f7,#d5f2fb);box-shadow:inset 0 0 0 1px #72bfdd}
.contact-meta small{color:#64869a}
.sidebar-footer{background:linear-gradient(180deg,#d3eef8,#c0e5f2);border-top-color:#9bcfe3;color:#287194}
.connected{color:#4c8099}
.chat-panel{background:linear-gradient(180deg,#eaf8fd,#d4eff9)}
.chat-header{background:linear-gradient(180deg,#dff4fb,#c8eaf6);border-bottom-color:#a6d4e5}
.messages{background:linear-gradient(180deg,#e9f7fc,#d8eff8)}
.day-label{background:#c6e7f3;color:#527e94}
.bubble{box-shadow:0 2px 7px #2861801a}
.bubble.mine{background:linear-gradient(145deg,#c5ebf8,#a8def0);border-color:#80c4df}
.bubble.theirs{background:linear-gradient(145deg,#f2fbff,#dceff7);border-color:#b8d9e7}
.bubble time{color:#67889a}
.composer{background:linear-gradient(180deg,#ccebf6,#b9e2f1);border-top-color:#96cade}
.composer input{background:#f5fbfe;border-color:#8fc6dd}
.composer-tool{color:#267ca3}
.dialog{background:#eaf7fc}
dialog{background:linear-gradient(160deg,#f0fbff,#d6eff8);border-color:#7fbdd7}
dialog::backdrop{background:#163e5866}
#add-form p{color:#5c8094}
.request-row{background:#e7f6fc;border-color:#afd5e5}
.secondary{background:linear-gradient(180deg,#e7f7fc,#cfeaf5);color:#256e91;border-color:#8dc4db}
.video-float-bar{background:linear-gradient(180deg,#78c7e5,#459fcb);border-color:#3187b4;color:#fff}
.video-float-bar button{background:#effaff;color:#287496}


/* Commandes de discussion plus visibles et décor rétro plus affirmé. */
.chat-header{height:88px;background:linear-gradient(180deg,#68b8dd,#328cb9);border-bottom:3px solid #23749f;color:#fff;box-shadow:0 3px 12px #21698b33}
.chat-header .chat-person span{color:#e4f8ff}
.chat-header .chat-person b{color:#fff;font-size:17px;text-shadow:0 1px 2px #205a75aa}
.chat-header .avatar{box-shadow:0 0 0 3px #ffffff88,0 3px 9px #1c5c7c55}
.chat-back{width:42px;height:42px;border-color:#ffffff88;background:#ffffff25;color:#fff;font-size:25px}
.chat-back:hover{background:#ffffff44}
.chat-tools{gap:10px}
.chat-tools .chat-action,.composer-tool,.send,.color-tool{width:48px;height:48px;min-width:48px;display:grid;place-items:center;border:1px solid #79b9d3;border-radius:14px;background:linear-gradient(180deg,#f1fbff,#caeaf6);color:#216e91;box-shadow:0 3px 0 #267ca333,0 5px 10px #1b547322;transition:transform .15s ease,filter .15s ease,box-shadow .15s ease}
.chat-tools .chat-action:hover,.composer-tool:hover,.send:hover,.color-tool:hover{transform:translateY(-2px);filter:brightness(1.04);box-shadow:0 5px 0 #267ca322,0 8px 14px #1b547333}
.chat-tools .chat-action svg,.composer-tool svg,.send svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chat-tools .more-action{font-size:18px;letter-spacing:1px}
.messages{background:radial-gradient(ellipse at 20% 10%,#ffffffb0 0,transparent 44%),linear-gradient(180deg,#d8f0f9,#c8e9f5)}
.bubble.mine{background:linear-gradient(145deg,#a9e0f3,#8dd0eb);border:1px solid #6fb8d8;box-shadow:0 4px 10px #2c779222}
.bubble.theirs{background:linear-gradient(145deg,#f8fdff,#e0f2f9);border:1px solid #a9d2e2}
.composer{gap:12px;padding:18px 22px 38px;background:linear-gradient(180deg,#c5e8f4,#a9d9eb);border-top:2px solid #8fc8de;box-shadow:0 -4px 14px #347a9718}
.composer input#message-input{height:48px;border:1px solid #82bad1;background:#f6fcff;box-shadow:inset 0 2px 4px #24617a14}
.composer-tool{padding:0;font-size:20px;color:#216f93}
.emoji-button{background:linear-gradient(180deg,#fff2c8,#ffd879);border-color:#e7bf61;color:#8b6819}
.wizz-button{background:linear-gradient(180deg,#ffe7a9,#ffc44f);border-color:#e4ad42;color:#956316}
.send{background:linear-gradient(180deg,#ffca72,#f39b3d);border:1px solid #df8730;color:#fff;box-shadow:0 3px 0 #bb6d27,0 5px 10px #99592233}
.send svg{fill:none;stroke:#fff}
.color-tool{position:relative;cursor:pointer;font-size:24px;font-weight:800;font-family:Georgia,serif;color:#285c78;overflow:hidden}
.color-tool::after{content:"";position:absolute;bottom:8px;left:13px;right:13px;height:5px;border-radius:5px;background:var(--text-color,#233344)}
.color-tool input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}
.composer small{left:24px;color:#416d83}
@media(max-width:560px){.chat-header{height:76px;padding:8px 10px;gap:8px}.chat-tools{gap:6px}.chat-tools .chat-action,.composer-tool,.send,.color-tool{width:42px;height:42px;min-width:42px;border-radius:12px}.chat-tools .chat-action svg,.composer-tool svg,.send svg{width:23px;height:23px}.composer{gap:7px;padding:12px 10px 38px}.composer input#message-input{min-width:70px;padding:10px}.color-tool::after{left:11px;right:11px}}
.composer .color-tool input#message-color{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}


/* Saisie et messages privés toujours orientés de gauche à droite. */
#message-input,#messages .bubble{direction:ltr;text-align:left}
/* Les messages envoyés et reçus s’alignent tous à gauche dans la discussion. */
#messages .bubble.mine,#messages .bubble.theirs{align-self:flex-start;text-align:left;direction:ltr}

/* Messages vocaux : enregistrement limité à 15 s et lecture au haut-parleur. */
#message-form:has(.voice-recording-panel:not(.hidden))> :not(#voice-recording-panel):not(#voice-record-button){display:none}
.voice-record-button{background:linear-gradient(180deg,#e6f8ff,#b4e3f3);color:#19779e}
.voice-record-button.recording{background:linear-gradient(180deg,#ff9b9b,#e85c69);border-color:#d34b58;color:#fff;animation:voice-pulse 1s infinite alternate}
@keyframes voice-pulse{to{box-shadow:0 0 0 5px #ec596633,0 3px 0 #a83c4a}}
.voice-recording-panel{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:0 12px;height:48px;border:1px solid #83bfd6;border-radius:15px;background:linear-gradient(180deg,#f7fdff,#d5f0f9);box-shadow:inset 0 1px 3px #357c991c}
.voice-live-dot{width:10px;height:10px;flex:none;border-radius:50%;background:#e95260;box-shadow:0 0 0 4px #e9526022;animation:voice-dot 1s infinite alternate}
@keyframes voice-dot{to{opacity:.45}}
#voice-time{flex:none;color:#315d73;font-variant-numeric:tabular-nums;font-size:12px;font-weight:700;white-space:nowrap}
.voice-progress,.voice-message-progress{height:8px;flex:1;min-width:35px;overflow:hidden;border-radius:99px;background:#b9dce9;box-shadow:inset 0 1px 2px #28617a2a}
#voice-progress-fill,.voice-message-progress span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#40b7e5,#2488c3);transition:width .05s linear}
.voice-cancel{flex:none;border:0;border-radius:9px;padding:7px 9px;background:#e7f3f8;color:#496f81;font-size:12px}
.voice-cancel:hover{background:#d3eaf4}
.bubble.voice-bubble{width:min(310px,82%);display:grid;grid-template-columns:42px 1fr;grid-template-rows:38px auto;align-items:center;gap:2px 10px;padding:9px 12px}
.voice-play{grid-row:1/3;width:42px;height:42px;display:grid;place-items:center;border:1px solid #78b9d4;border-radius:50%;background:linear-gradient(180deg,#f9feff,#c4e9f5);color:#207ba4;box-shadow:0 2px 0 #267ca333}
.voice-play svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.voice-play.playing{background:linear-gradient(180deg,#62c3e5,#278fbd);color:white}
.voice-play.playing svg{filter:brightness(1.2)}
.voice-message-progress{width:100%;height:7px;align-self:end}
.voice-duration{align-self:start;color:#55788b;font-size:11px;font-variant-numeric:tabular-nums}
.bubble.voice-bubble time{grid-column:2;justify-self:end;margin-top:0}
#message-form:has(.voice-recording-panel:not(.hidden)){padding-bottom:34px}

/* Groupes de contacts, avec déplacement rapide entre Amis et Famille. */
.contact-group{margin:0 0 8px}
.contact-group-heading{width:100%;display:flex;align-items:center;gap:7px;padding:8px 9px;border:0;border-bottom:1px solid #c4e0eb;background:linear-gradient(180deg,#eefaff,#d8f0f8);color:#32677e;text-align:left;font-size:12px}
.contact-group-heading:hover{background:#c9ebf6}
.contact-group-heading small{margin-left:auto;min-width:20px;text-align:center;padding:2px 6px;border-radius:10px;background:#fff;color:#648b9e;font-size:10px}
.group-arrow{width:12px;color:#4889a5}
.contact-row{display:flex;align-items:center;gap:2px;margin:2px 0}
.contact-row .contact{flex:1;min-width:0;width:auto;padding:7px 5px;gap:8px}
.contact-row .contact .avatar{width:37px;height:37px}
.contact-group-select{width:23px;min-width:23px;height:30px;padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:#54849a;font-size:0;cursor:pointer}
.contact-group-select:hover,.contact-group-select:focus{width:82px;padding:0 3px;border-color:#9bcde0;background:#f5fcff;font-size:10px;outline:none}
.group-form-label{display:block;margin-top:10px;color:#526f7d;font-size:13px;font-weight:700}
.group-form-select,.request-group-select{padding:8px 10px;border:1px solid #a9d1e1;border-radius:9px;background:#f8fdff;color:#31596d}
#add-form .group-form-select{width:100%;margin:5px 0 8px}
.request-group-select{max-width:90px;padding:7px 5px;font-size:12px}
.request-row{flex-wrap:wrap}
.request-row .request-name{min-width:140px}
.profile .avatar.self{cursor:pointer}
.contact-group-select{width:76px;min-width:76px;height:27px;padding:2px 3px;border:1px solid #b1d5e3;border-radius:8px;background:#f7fcff;color:#4a7487;font-size:10px}
.contact-group-select:hover,.contact-group-select:focus{width:76px;min-width:76px;padding:2px 3px;border-color:#76b8d1;font-size:10px}
.contact-row .contact-meta{min-width:0}
.contact-row .contact-meta b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Contraste renforcé pour repérer les sections et les commandes de groupe. */
.contact-group{margin:2px 0 11px}
.contact-group-heading{min-height:39px;padding:8px 11px;border:1px solid #9fcfe1;border-left:4px solid #2786b1;border-radius:9px;background:linear-gradient(180deg,#f4fcff,#ccecf7);color:#174f6c;font-size:14px;font-weight:800;box-shadow:0 2px 5px #327b971c}
.contact-group:nth-child(2) .contact-group-heading{border-left-color:#d49c37;background:linear-gradient(180deg,#fff9e8,#f7e7b6);color:#745318}
.contact-group-heading:hover{filter:brightness(.97)}
.contact-group-heading small{min-width:25px;padding:3px 8px;border:1px solid #91bfd2;background:#fff;color:#245f7a;font-size:11px;font-weight:800}
.contact-group:nth-child(2) .contact-group-heading small{border-color:#dfc477;color:#78571a}
.group-arrow{width:15px;font-size:13px;font-weight:900}
.contact-group-select{width:78px;min-width:78px;height:29px;padding:3px 5px;border:1px solid #79b8d2;border-radius:9px;background:#e5f7fc;color:#145c7a;font-size:11px;font-weight:700;box-shadow:0 1px 3px #34789522}
.contact-group-select.group-family{border-color:#d4aa4c;background:#fff2ca;color:#765414}
.contact-group-select:hover,.contact-group-select:focus{width:78px;min-width:78px;padding:3px 5px;border-color:#397fa0;background:#d6f0f8;font-size:11px;outline:2px solid #70b7d033}
.contact-group-select.group-family:hover,.contact-group-select.group-family:focus{background:#ffe7a0}

/* Barre supérieure plus lisible dans la petite fenêtre Contacts. */
.topbar{padding-left:9px;padding-right:9px}
.window-actions{gap:5px;flex:none}
.connection-status{color:#245e79;font-size:11px;font-weight:700;white-space:nowrap}
#requests-button{min-width:103px;height:39px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 9px;border:1px solid #8fc3d9;border-radius:11px;background:linear-gradient(180deg,#f8fdff,#d4edf6);color:#245d78;font-size:12px;font-weight:800;white-space:nowrap;box-shadow:0 2px 4px #2d78931c}
#request-count{min-width:22px;height:22px;border:1px solid #d58b43;background:linear-gradient(180deg,#ffca78,#ef9744);color:#fff;font-size:12px;font-weight:900}
#sound-toggle,#logout{width:42px;height:42px;min-width:42px;display:grid;place-items:center;padding:0;border:1px solid #78b6d0;border-radius:12px;background:linear-gradient(180deg,#f5fcff,#c4e6f2);color:#216487;box-shadow:0 2px 0 #267ca333,0 4px 8px #1b54731c;cursor:pointer}
#sound-toggle{font-size:24px;line-height:1}
#logout svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#sound-toggle:hover,#logout:hover,#requests-button:hover{filter:brightness(.96);transform:translateY(-1px)}
#sound-toggle:focus-visible,#logout:focus-visible,#requests-button:focus-visible{outline:3px solid #3ba1cf88;outline-offset:2px}
.requests-subheading{margin:16px 0 7px;color:#245f7a;font-size:13px}
.request-pending-label{padding:6px 9px;border:1px solid #aad4e3;border-radius:9px;background:#edf9fd;color:#3c758e;font-size:11px;font-weight:700;white-space:nowrap}
.outgoing-request{background:linear-gradient(180deg,#f8fdff,#e6f6fb)}
.remote-video-slot{position:relative}
.remote-placeholder{position:absolute;inset:0;min-height:0;aspect-ratio:auto;z-index:1}
.video-slot.pip-active video{opacity:0}
.video-popout{display:block;width:100%;margin-top:10px;background:linear-gradient(180deg,#fff3cf,#ffdf83);border-color:#dcb84b;color:#745416;font-weight:800}
.video-popout:hover{filter:brightness(.97)}
.attach-file-button{background:linear-gradient(180deg,#f8fdff,#d1edf7);color:#246f91}
.attach-file-button svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.file-message-card{min-width:min(250px,60vw);display:flex;align-items:center;gap:9px;padding:9px;border:1px solid #9bcadd;border-radius:12px;background:linear-gradient(180deg,#f8fdff,#d8f0f8)}
.bubble.mine .file-message-card{background:linear-gradient(180deg,#f2fcff,#c2e8f4)}
.file-message-icon{width:37px;height:37px;flex:none;display:grid;place-items:center;border:1px solid #a4cee0;border-radius:9px;background:#fff;color:#2d7898;font-size:18px;font-weight:800}
.file-message-meta{min-width:0;display:flex;flex:1;flex-direction:column;gap:3px;color:#315b70}
.file-message-meta b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.file-message-meta small{color:#6f8e9e;font-size:10px}
.file-download-button{width:31px;height:31px;flex:none;border:1px solid #77b7d1;border-radius:9px;background:linear-gradient(180deg,#eaf9fe,#bfe6f3);color:#216c8f;font-size:21px;font-weight:800;line-height:1}
.file-download-button:hover{background:#a9dced}
/* Invitations retrouve son style sobre d’origine ; badge conservé, commandes système visibles. */
#requests-button{min-width:0;height:34px;gap:5px;padding:0 4px;border:0;border-radius:7px;background:transparent;color:#2e718f;font-size:12px;font-weight:700;box-shadow:none}
#requests-button:hover{background:#ffffff88;transform:none;filter:none}
#request-count{min-width:21px;height:21px}
.contact-name-line{display:flex;align-items:center;gap:7px;min-width:0}
.contact-name-line b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.presence-dot{width:11px;height:11px;flex:none;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #4e718355}
.presence-dot.online{background:#27b35e}.presence-dot.away{background:#e3aa21}.presence-dot.busy{background:#df5b52}.presence-dot.offline{background:#9eabb4}

.private-session-loading{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 15% 10%,#fff 0,#e8efff 35%,transparent 70%),linear-gradient(125deg,#c9dcf4,#dcd5ff 55%,#bce8f5)}
.private-session-card{width:min(360px,100%);display:grid;justify-items:center;gap:10px;padding:28px 22px;border:1px solid #fff;border-radius:20px;background:#f9fdffed;box-shadow:0 16px 44px #476a9640,inset 0 0 0 2px #d5f2ff;color:#31566c;text-align:center}
.private-session-mark{font-size:34px;color:#47b9de;text-shadow:2px 2px #f0cb62}
.private-session-card small{color:#7890a1}
.private-session-spinner{width:24px;height:24px;border:3px solid #b9dcea;border-top-color:#258fbd;border-radius:50%;animation:private-session-spin .8s linear infinite}
@keyframes private-session-spin{to{transform:rotate(360deg)}}

/* REVIVAL_HEADER_COMPACT_FIX_1 */
#connection-label{display:none!important}
@media(max-width:560px){
  .topbar{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:4px!important;min-width:0!important;padding-left:7px!important;padding-right:7px!important}
  .brand.compact{flex:0 0 auto!important;min-width:0!important;gap:4px!important;font-size:14px!important;white-space:nowrap!important}
  .brand.compact .butterfly{font-size:19px!important}
  .window-actions{display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:flex-end!important;gap:3px!important;margin-left:auto!important;min-width:0!important;white-space:nowrap!important}
  .window-actions>button{box-sizing:border-box!important;display:inline-flex!important;flex:0 0 28px!important;width:28px!important;min-width:28px!important;height:30px!important;padding:0!important;align-items:center!important;justify-content:center!important}
  .window-actions>#requests-button{flex:0 1 auto!important;width:auto!important;min-width:0!important;padding:0 5px!important;font-size:10px!important}
  #request-count{min-width:16px!important;height:16px!important;font-size:10px!important}
}

/* REVIVAL_REMEMBER_LOGIN_UI */
.remember-login{display:flex!important;align-items:flex-start;gap:9px;margin:12px 0 0!important;color:#526b7e;font-size:13px;font-weight:500!important;line-height:1.4;cursor:pointer}
.auth-card .remember-login input{width:16px;height:16px;flex:0 0 16px;margin:1px 0 0;padding:0;accent-color:#299ac8}
.remember-login-error{min-height:0;margin-top:4px;color:#a65035;font-size:11px;line-height:1.35}


/* REVIVAL_MAIL_POPUP_IMPROVEMENTS */
.mail-status-pending{display:flex;align-items:center;gap:10px}
.mail-status-pending::before{content:"";width:16px;height:16px;flex:none;border:2px solid #b8dce8;border-top-color:#2797c2;border-radius:50%;animation:mail-spin .8s linear infinite}
@keyframes mail-spin{to{transform:rotate(360deg)}}
.mail-device-code #mail-reopen-verification{justify-self:center;min-height:36px}
/* REVIVAL_MAIL_NOTICE_SIZE_380X150 */
.toast.mail-toast-clickable{right:12px;bottom:12px;width:min(380px,calc(100vw - 24px));min-height:150px;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:8px;padding:20px 22px;white-space:normal;line-height:1.45;font-size:15px}
.toast.friend-online-toast{right:12px;bottom:12px;width:min(380px,calc(100vw - 24px));min-height:78px;display:flex;align-items:center;padding:16px 20px;white-space:normal;line-height:1.4;font-size:15px;cursor:pointer;border-color:#77b8d5}.toast.friend-online-toast:hover,.toast.friend-online-toast:focus{background:#effaff;border-color:#3b9fc5;outline:none;box-shadow:0 0 0 3px #a9e3f455,0 8px 25px #25445c33}
@media(max-width:420px){.toast.mail-toast-clickable{right:8px;bottom:8px;width:calc(100vw - 16px);min-height:150px}}
.toast.mail-toast-clickable strong{font-size:14px;color:#285c74}
.toast.mail-toast-clickable span{font-size:13px;overflow-wrap:anywhere}
.toast.mail-toast-clickable small{font-size:11px;color:#668595}
@media(max-width:420px){#mail-dialog{width:94vw;padding:18px}.mail-dialog-actions{grid-template-columns:1fr}.toast.mail-toast-clickable{right:8px;bottom:8px;width:calc(100vw - 16px)}}

/* REVIVAL_REMEMBER_LOGIN_COUNTDOWN_STATUS */
.remember-login-error{min-height:30px}

/* REVIVAL_TRANSPARENCE_TEST */
html,body{background:transparent!important}
#app-screen:not(.private-chat-window) .topbar{-webkit-app-region:drag}
#app-screen:not(.private-chat-window) .topbar button,#app-screen:not(.private-chat-window) .topbar input,#app-screen:not(.private-chat-window) .topbar select,#app-screen:not(.private-chat-window) .window-actions,#app-screen:not(.private-chat-window) .window-actions *{-webkit-app-region:no-drag}
#app-screen:not(.private-chat-window) .window-control{width:25px;height:25px;min-width:25px;padding:0;border:1px solid #ffffff88;border-radius:7px;background:#ffffff35;color:inherit;font-size:18px;line-height:1;display:inline-grid;place-items:center}
#app-screen:not(.private-chat-window) .window-control:hover{background:#ffffff70}
#app-screen:not(.private-chat-window) .window-close:hover{background:#d9534f;color:#fff}


/* REVIVAL_GROUP_FRAME_TRANSPARENCY_TEST */
/* Cadres Amis/Famille légèrement translucides. Les avatars restent opaques. */
.contact-group{
  background:rgba(255,255,255,.22);
  border:1px solid rgba(255,255,255,.38);
  border-radius:11px;
  overflow:hidden;
}
.contact-group-heading{
  background:linear-gradient(180deg,rgba(244,252,255,.78),rgba(204,236,247,.68));
}
.contact-group:nth-child(2) .contact-group-heading{
  background:linear-gradient(180deg,rgba(255,249,232,.80),rgba(247,231,182,.70));
}
.contact-group .avatar,
.contact-group .presence-dot,
.contact-group-select{
  opacity:1!important;
}
.contact-group .avatar img{opacity:1!important}


/* REVIVAL_PROFILE_FRAME_TRANSPARENCY_TEST */
/* Petit voile translucide sur le fond vert du profil; la barre Revival reste inchangée. */
.sidebar>.profile{
  background-color:rgba(255,255,255,.22);
}
.sidebar>.profile .avatar,
.sidebar>.profile .profile-copy,
.sidebar>.profile #profile-name,
.sidebar>.profile #status-select,
.sidebar>.profile #email-settings-button{
  opacity:1!important;
}

/* REVIVAL_PRESENCE_STATUS_DOT_V1 */
.profile-name-line{display:flex;align-items:center;gap:7px;min-width:0}
.profile-name-line #profile-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.self-presence-dot{width:12px;height:12px;flex:none}

/* REVIVAL_HEADER_GEAR_SPEAKER_LOGO */
.topbar .brand.compact{display:flex;align-items:center;gap:7px}
.topbar .brand.compact .revival-header-logo{display:block;flex:0 0 auto;width:34px;height:28px;overflow:visible;filter:drop-shadow(0 1px 1px #174e6c88)}
.revival-header-logo .logo-gear{fill:url(#revival-metal);stroke:#f8fdff;stroke-width:1.15;stroke-linejoin:round}
.revival-header-logo .logo-hub{fill:#3889b1;stroke:#f6fbff;stroke-width:1.5}
.revival-header-logo .logo-speaker{fill:url(#revival-speaker);stroke:#fff7dc;stroke-width:1}
.revival-header-logo .logo-wave{fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round}

/* REVIVAL_HEADER_LOGO_SHARPER_BLUE_STEEL */
.topbar .brand.compact .revival-header-logo{width:38px;height:30px;filter:none;shape-rendering:geometricPrecision}
.revival-header-logo .logo-gear{stroke:#17465f;stroke-width:1.8;stroke-linejoin:round}
.revival-header-logo .logo-hub{fill:#1e6384;stroke:#e2f5fc;stroke-width:1.8}
.revival-header-logo .logo-speaker{stroke:#123e56;stroke-width:1.7;stroke-linejoin:round}
.revival-header-logo .logo-wave{stroke:#e5f5fb;stroke-width:2.4}

/* REVIVAL_INLINE_IMAGE_STYLES */
.image-message-preview{display:block;max-width:min(300px,68vw);max-height:230px;margin:0 0 7px;padding:4px;overflow:hidden;border:1px solid #7dbbd2;border-radius:12px;background:linear-gradient(145deg,#effaff,#cdebf6);cursor:zoom-in}
.image-message-preview img{display:block;max-width:290px;max-height:220px;min-width:100px;object-fit:contain;border-radius:8px}
.image-message-preview:disabled{cursor:default}
.image-message-preview.image-preview-error{min-width:200px;padding:14px;color:#8a4c53;text-align:center}

/* REVIVAL_VIDEO_INLINE_CHAT_V1 */
.conversation-body{display:flex;flex:1;min-width:0;min-height:0;overflow:hidden}
.conversation-body>.messages{flex:1;min-width:0;min-height:0}
.call-panel{display:flex;flex:0 0 min(310px,36%);flex-direction:column;min-width:250px;max-width:350px;min-height:0;overflow:auto;padding:12px;background:linear-gradient(180deg,#f7fcff,#e4f4fa);border-left:1px solid #a9d4e3}
.call-panel>section{display:flex;flex-direction:column;gap:9px;min-height:0}
.call-panel .dialog-header{margin:0;padding:0 0 7px;border-bottom:1px solid #bddce7}
.call-panel .dialog-header h3{font-size:15px}
.call-panel #video-grid{display:block;margin:0}
.call-panel #remote-video-slot{width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:10px;background:#172b3a}
.call-panel #remote-video{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;background:#172b3a;cursor:zoom-in}
.call-panel #local-video{position:absolute;right:8px;bottom:8px;width:88px;height:66px;aspect-ratio:4/3;object-fit:cover;border:2px solid #fff;border-radius:8px;box-shadow:0 3px 12px #10293888;background:#243b49}
.call-panel .video-popout{width:100%;padding:8px;font-size:12px}
.call-panel .device-settings{flex-direction:column;gap:6px;margin:0}
.call-panel .device-settings label{font-size:11px}
.call-panel .device-settings select{padding:6px}
.call-panel .camera-tools{flex-direction:column;gap:6px;margin:0}
.call-panel .camera-tools button{font-size:11px;padding:6px 8px}
.call-panel #call-status-text{margin:2px 0;font-size:12px}
.call-panel .dialog-actions{margin-top:0;flex-wrap:wrap}
.call-panel .dialog-actions button{padding:8px 10px;font-size:12px}
.call-panel .remote-placeholder{position:absolute;inset:0;aspect-ratio:auto}
.call-panel #video-stage{position:fixed}
@media(max-width:700px){.conversation-body{flex-direction:column}.call-panel{flex:0 0 auto;width:100%;max-width:none;min-width:0;max-height:38vh;border-left:0;border-top:1px solid #a9d4e3;padding:8px}.call-panel #remote-video-slot{max-height:180px}.call-panel #local-video{width:76px;height:57px}}

/* REVIVAL_CONTACT_MANAGEMENT_V1 */
.section-title-actions{display:flex;align-items:center;gap:8px}.section-title-actions button{border:0;background:transparent;color:#3988aa;font-size:21px;padding:2px 5px;border-radius:7px}.section-title-actions button:hover,.contact-manage-button:hover{background:#cff1fb}.contact-row{position:relative}.contact-manage-button{flex:none;width:28px;height:32px;border:0;border-radius:7px;background:transparent;color:#578599;font-size:22px;line-height:1}.contact-group-select{max-width:74px}.contact-management-actions{display:grid;gap:9px;margin:18px 0 12px}.danger-button{border:1px solid #e4a0a0;border-radius:10px;padding:11px 14px;background:linear-gradient(#fff4f4,#ffe1e1);color:#9b3038;font-weight:700}.danger-button:hover{background:#ffd3d3}.blocked-contacts-list{display:grid;gap:9px;max-height:48vh;overflow:auto;margin:14px 0}.blocked-contact-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #d2e6ed;border-radius:10px;background:#f8fdff}.blocked-contact-row span{overflow-wrap:anywhere}.blocked-contact-row button{flex:none;padding:8px 11px}#contact-actions-dialog,#blocked-contacts-dialog{width:min(440px,92vw);max-height:88vh;overflow:auto}#contact-actions-dialog section,#blocked-contacts-dialog section{display:grid;gap:10px}#contact-actions-dialog p,#blocked-contacts-dialog p{margin:2px 0;color:#627e8e;font-size:14px;line-height:1.5}

/* REVIVAL_CONTACT_RECOVERY_V2 */
#removed-contacts-dialog{width:min(500px,92vw);max-height:88vh;overflow:auto}#removed-contacts-dialog section{display:grid;gap:10px}#removed-contacts-dialog p{margin:2px 0;color:#627e8e;font-size:14px;line-height:1.5}.section-title-actions{gap:5px}.section-title-actions button{min-width:30px}


/* REVIVAL_EMPTY_GROUPS_AND_PRESENCE_FIX_V1 */
.profile-name-line .self-presence-dot{display:inline-block!important;visibility:visible!important;opacity:1!important;width:13px!important;height:13px!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #31566c!important;flex:0 0 13px!important}
.profile-name-line .self-presence-dot.online{background:#20a84e!important}.profile-name-line .self-presence-dot.away{background:#df9f12!important}.profile-name-line .self-presence-dot.busy{background:#d94b45!important}.profile-name-line .self-presence-dot.offline{background:#8c9ba5!important}

/* REVIVAL_LOCAL_VIDEO_BELOW_REMOTE_V1_START */
/* Deux cadres de même largeur, empilés : contact au-dessus, aperçu local en dessous. */
#call-panel #video-grid{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important;margin:0!important}
#call-panel #remote-video-slot{position:relative!important;display:block!important;flex:none!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:4/3!important;overflow:hidden!important;border-radius:10px!important;background:#172b3a!important}
#call-panel #remote-video-slot #remote-video{position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;border-radius:inherit!important}
#call-panel #local-video-card{position:relative!important;inset:auto!important;display:flex!important;flex:0 0 auto!important;flex-direction:column!important;gap:4px!important;align-self:stretch!important;width:100%!important;margin:0!important;z-index:1!important}
#call-panel .local-video-label{color:#557181!important;font-size:11px!important;font-weight:700!important;line-height:1.3!important}
#call-panel #local-video:not(.hidden){position:relative!important;inset:auto!important;display:block!important;flex:none!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:4/3!important;object-fit:cover!important;border:2px solid #fff!important;border-radius:9px!important;background:#172b3a!important;box-shadow:0 3px 12px #10293855!important}
#call-panel #remote-video-slot .remote-placeholder{position:absolute!important;inset:0!important;z-index:2!important}
@media(max-width:700px){#call-panel #video-grid{max-height:none!important}}
/* REVIVAL_LOCAL_VIDEO_BELOW_REMOTE_V1_END */

/* REVIVAL_NICKNAME_COLOR_V1 */
.name-color-trigger{width:18px;height:18px;flex:none;padding:2px;border:1px solid #8bb8ca;border-radius:50%;background:#fff;display:grid;place-items:center}
.name-color-trigger span,.name-color-options span{display:block;width:10px;height:10px;border-radius:50%;background:#344054;box-shadow:0 0 0 1px #fff,0 0 0 2px #9db8c4}
#name-color-dialog{max-width:420px}
#name-color-dialog p{color:#648090;line-height:1.45}
.name-color-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.name-color-options button{min-height:42px;display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #c4dce6;border-radius:10px;background:#f8fdff;color:#304552;padding:8px 10px;font-weight:600}
.name-color-options button:hover,.name-color-options button:focus-visible{background:#e5f6fc;border-color:#69b9d2;outline:2px solid #69b9d2;outline-offset:1px}
.name-color-options span{width:16px;height:16px;flex:none;background:var(--swatch)}
@media(max-width:420px){.name-color-options{grid-template-columns:1fr}}

/* REVIVAL_COSMIC_NICKNAMES_V1 */
/* Typographie seulement : la couleur choisie et les voyants de présence restent inchangés. */
#profile-name,
#chat-name,
.contact-name-line b,
.contact-meta b {
  font-family: Bahnschrift, "Trebuchet MS", "Segoe UI", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.12px;
}

/* REVIVAL_CUSTOM_CONTACT_GROUPS_V1 */
.section-title-actions #create-contact-group,.contact-section-actions #create-contact-group{width:30px;height:30px;padding:0;border:1px solid #9fcfe1;border-radius:8px;background:#f1fbff;color:#246987;font-size:17px;font-weight:700}.section-title-actions #create-contact-group:hover,.contact-section-actions #create-contact-group:hover{background:#d8f2fa}
#create-group-dialog{max-width:420px}
#create-group-dialog label{display:block;margin-top:14px;font-size:13px;font-weight:600;color:#526b7e}
#create-group-dialog input{width:100%;margin-top:7px;padding:12px 14px;border:1px solid #bed9e8;border-radius:12px;background:#fff;color:#24384a;outline:none}
#create-group-dialog input:focus{border-color:#4db3dc;box-shadow:0 0 0 3px #51c4ed2b}

/* REVIVAL_AVATAR_PICKER_V1: galerie d’avatars et couleurs de référence Revival */
.auth-card{width:min(520px,100%);max-height:calc(100vh - 32px);overflow:auto;background:linear-gradient(145deg,#fff 0%,#e9f6ff 100%);border:1px solid #9bcfff;box-shadow:0 20px 60px #145aa044,inset 0 0 0 2px #d9efff}.primary{background:linear-gradient(#58b9ff,#0879ee);box-shadow:0 3px 7px #1263bb55}.secondary{background:linear-gradient(#f9fdff,#d8edff);color:#0751a6;border:1px solid #8fc4ff}.topbar{background:linear-gradient(180deg,#9dd5fd 0%,#7cc7fd 18%,#63baf8 42%,#51aff4 68%,#70c2f4 100%);border-color:#159dff}.workspace{border-color:#8fcaff;background:#eff8ff}.sidebar{background:linear-gradient(180deg,#f5fbff,#dceeff)}.chat-panel{background:linear-gradient(135deg,#f9fcff,#e5f3ff)}.profile-avatar-choose{border:1px solid #8fc4ff;border-radius:10px;background:linear-gradient(#f9fdff,#cfe7ff);color:#0865bd;width:34px;height:34px;font-size:19px}.register-avatar-row{display:grid;grid-template-columns:56px 1fr auto;align-items:center;gap:8px;margin-top:16px;padding:10px;border:1px solid #abd8ff;border-radius:13px;background:linear-gradient(120deg,#eaf7ff,#d9edff)}.register-avatar-row>img{width:56px;height:56px;object-fit:cover;border-radius:12px;border:2px solid #fff}.register-avatar-row b,.register-avatar-row small{display:block}.register-avatar-row b{font-size:12px;color:#0751a6}.register-avatar-row small{font-size:10px;color:#527394;margin-top:4px}.register-avatar-row button,.avatar-photo-label{font-size:11px;padding:8px}.avatar-photo-label{position:relative;display:inline-flex;align-items:center;cursor:pointer}.avatar-photo-label input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.avatar-picker-dialog{width:min(1000px,96vw);max-height:90vh;overflow:hidden;padding:22px;background:linear-gradient(145deg,#fff 0%,#e8f5ff 100%);border:1px solid #86c5ff}.avatar-picker-dialog>section{display:flex;flex-direction:column;max-height:calc(90vh - 44px)}.avatar-picker-dialog .dialog-header p{margin:5px 0 0;color:#587a9d;font-size:13px}.avatar-filters{display:flex;align-items:end;gap:12px;margin:16px 0 12px}.avatar-filters label{display:grid;gap:5px;color:#315b86;font-size:12px;font-weight:600}.avatar-filters select{min-width:150px;padding:8px 10px;border:1px solid #9fc9ee;border-radius:9px;background:#fff;color:#194c7f}.avatar-filters #avatar-picker-count{margin-left:auto;padding:8px;color:#57799a;font-size:12px}.avatar-picker-grid{display:grid;grid-template-columns:repeat(8,minmax(68px,1fr));gap:10px;overflow:auto;min-height:0;padding:11px;border:1px solid #c3e1fa;border-radius:14px;background:linear-gradient(#f8fcff,#e8f4ff)}.avatar-option{position:relative;aspect-ratio:1;overflow:hidden;padding:0;border:2px solid transparent;border-radius:13px;background:#d5e7f8;box-shadow:0 3px 9px #416e9b24}.avatar-option:hover,.avatar-option:focus-visible{border-color:#168cff;outline:none;transform:translateY(-1px)}.avatar-option img{display:block;width:100%;height:100%;object-fit:cover}.avatar-option span{position:absolute;inset:auto 0 0;padding:4px;background:#075eb9d9;color:#fff;font-size:10px;opacity:0;transition:opacity .15s}.avatar-option:hover span,.avatar-option:focus-visible span{opacity:1}.avatar-picker-note{margin-top:12px;padding:11px 14px;border:1px solid #b9ddfb;border-radius:10px;background:#e3f2ff;color:#3e6790;font-size:12px}.avatar-sprite{object-fit:cover}@media(max-width:760px){.avatar-picker-grid{grid-template-columns:repeat(5,minmax(56px,1fr))}.avatar-filters{flex-wrap:wrap}.register-avatar-row{grid-template-columns:48px 1fr}.register-avatar-row>img{width:48px;height:48px}.register-avatar-row>button,.register-avatar-row>.avatar-photo-label{grid-column:span 1}}

/* REVIVAL_AVATAR_SPRITE_PNG_V2 */
.avatar-sprite-frame{position:relative;display:block;width:100%;height:100%;overflow:hidden}.avatar-sprite-frame>img{display:block!important}.avatar-option>.avatar-sprite-frame{position:absolute;inset:0;padding:0;background:none;opacity:1}.avatar-option>.avatar-sprite-frame>img{height:600%!important}.register-avatar-row>.register-avatar-preview{display:block;position:relative;width:56px;height:56px;overflow:hidden;border:2px solid #fff;border-radius:12px}.register-avatar-preview>img{width:100%;height:100%;object-fit:cover;border-radius:10px}@media(max-width:760px){.register-avatar-row>.register-avatar-preview{width:48px;height:48px}}

/* REVIVAL_AVATAR_CANVAS_V3 */
.avatar-option>.avatar-sprite-canvas{display:block;width:100%;height:100%;object-fit:cover}.avatar canvas{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}.register-avatar-preview{position:relative;overflow:hidden}.register-avatar-preview canvas{display:block;width:100%;height:100%;object-fit:cover;border-radius:10px}

/* REVIVAL_AVATAR_CANVAS_V4 */
.avatar-picker-grid>.avatar-option{display:block!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:1/1!important}.avatar-option>.avatar-sprite-canvas{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover}.avatar canvas{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}.register-avatar-preview{position:relative;overflow:hidden}.register-avatar-preview canvas{display:block;width:100%;height:100%;object-fit:cover;border-radius:10px}

/* REVIVAL_AVATAR_CANVAS_V5 */
.avatar-picker-grid{grid-template-columns:repeat(8,68px)!important;grid-auto-rows:68px!important;align-content:start;overflow-x:auto}.avatar-picker-grid>.avatar-option{display:block!important;width:68px!important;height:68px!important;min-width:68px!important;min-height:68px!important;max-height:68px!important;aspect-ratio:1/1!important;flex:none!important}.avatar-option>.avatar-sprite-canvas{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain}.avatar canvas{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}.register-avatar-preview{position:relative;overflow:hidden}.register-avatar-preview canvas{display:block;width:100%;height:100%;object-fit:contain;border-radius:10px}@media(max-width:760px){.avatar-picker-grid{grid-template-columns:repeat(4,60px)!important;grid-auto-rows:60px!important;gap:6px;overflow-x:hidden}.avatar-picker-grid>.avatar-option{width:60px!important;height:60px!important;min-width:60px!important;min-height:60px!important;max-height:60px!important}}

/* REVIVAL_AVATAR_GALLERY_ROWS_V9 */
.avatar-picker-grid{scroll-snap-type:y mandatory;scroll-padding-block:10px;overscroll-behavior-y:contain}.avatar-picker-grid>.avatar-option{scroll-snap-align:start;scroll-snap-stop:always}

/* REVIVAL_AVATAR_TALL_CELLS_V10 */
.avatar-picker-grid{grid-auto-rows:76px!important}.avatar-picker-grid>.avatar-option{height:76px!important;min-height:76px!important;max-height:76px!important;aspect-ratio:auto!important;position:relative!important}.avatar-picker-grid>.avatar-option>.avatar-sprite-canvas{position:absolute!important;left:50%!important;top:50%!important;width:68px!important;height:68px!important;max-width:100%!important;transform:translate(-50%,-50%)!important;object-fit:contain}@media(max-width:760px){.avatar-picker-grid{grid-auto-rows:72px!important}.avatar-picker-grid>.avatar-option{height:72px!important;min-height:72px!important;max-height:72px!important;width:60px!important;min-width:60px!important;max-width:60px!important}.avatar-picker-grid>.avatar-option>.avatar-sprite-canvas{width:60px!important;height:60px!important}}

/* REVIVAL_AVATAR_GALLERY_VIEWPORT_V11 */
.avatar-picker-grid{flex:0 0 auto!important}

/* REVIVAL_AVATAR_ROW_SETTLE_V12 */
.avatar-picker-grid{scroll-snap-type:y mandatory!important;scroll-behavior:auto!important}

/* REVIVAL_AVATAR_GALLERY_PAGES_V13 */
.avatar-picker-grid{overflow:hidden!important;scroll-snap-type:none!important;scroll-behavior:auto!important}.avatar-picker-grid>.avatar-option[hidden]{display:none!important}.avatar-gallery-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 2px 8px;color:#52789a;font-size:12px}.avatar-gallery-pages button{min-height:28px;padding:3px 9px;border:1px solid #9bcfff;border-radius:8px;background:linear-gradient(#fff,#e9f5ff);color:#145392;font:inherit;cursor:pointer}.avatar-gallery-pages button:disabled{opacity:.45;cursor:default}

.avatar-grid, .characters-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 10px !important; } .avatar-item, .character-option { height: 110px !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: flex-end !important; } .avatar-item img, .character-option img { max-height: 85px !important; width: auto !important; object-fit: contain !important; }

/* REVIVAL_AVATAR_BIGGER_V1 : avatars plus grands et recadres sur le visage (profil et contacts) */
.profile .avatar.self{width:72px;height:72px}
.contact-row .contact .avatar{width:50px;height:50px}
.avatar{overflow:hidden}
.avatar canvas{transform:scale(1.3);transform-origin:50% 38%}

/* REVIVAL_MESSAGE_AVATARS_V1 : avatar de l'auteur a gauche de chaque message prive */
#messages .bubble{position:relative;margin-left:54px;max-width:calc(88% - 54px)}
#messages .bubble>.message-avatar{position:absolute;left:-54px;top:0;width:44px;height:44px;border-width:2px}

/* REVIVAL_PALETTE_CARRES_V1 */
.composer .color-tool input#message-color{pointer-events:none}
.color-palette{position:absolute;bottom:84px;z-index:4;display:grid;grid-template-columns:repeat(8,24px);gap:5px;padding:10px;background:#faffff;border:1px solid #8fc8de;border-radius:12px;box-shadow:0 7px 20px #355a7444}
.color-square{width:24px;height:24px;padding:0;border:1px solid #ffffff;border-radius:4px;box-shadow:0 0 0 1px #9db8c4;cursor:pointer;transition:transform .12s ease}
.color-square:hover{transform:scale(1.18)}
.color-square.selected{box-shadow:0 0 0 2px #fff,0 0 0 4px #2394cf}

/* REVIVAL_SMILIES_40_V1 */
/* CSS motions for the 40 transparent Revival smiley PNGs. Add the matching class to each sticker in the message. */
.revival-smiley{display:inline-block;width:1.8em;height:1.8em;background-repeat:no-repeat;background-size:contain;vertical-align:-.45em;transform-origin:50% 55%;}
.smiley--nod{animation:rv-nod .72s ease-in-out infinite}.smiley--shake{animation:rv-shake .78s ease-in-out infinite}.smiley--laugh{animation:rv-laugh .48s ease-in-out infinite}.smiley--wink{animation:rv-wink 1.2s ease-in-out infinite}.smiley--pulse,.smiley--star{animation:rv-pulse .8s ease-in-out infinite}.smiley--tears{animation:rv-tears .85s ease-in-out infinite}.smiley--cool{animation:rv-cool 1.5s ease-in-out infinite}.smiley--think{animation:rv-think 1.7s ease-in-out infinite}.smiley--surprise{animation:rv-surprise .65s ease-in-out infinite}.smiley--smirk{animation:rv-smirk 1s ease-in-out infinite}.smiley--blush{animation:rv-blush 1.1s ease-in-out infinite}.smiley--nervous{animation:rv-nervous .45s ease-in-out infinite}.smiley--sleep{animation:rv-sleep 2s ease-in-out infinite}.smiley--yawn{animation:rv-yawn 1.4s ease-in-out infinite}.smiley--kiss{animation:rv-kiss .8s ease-in-out infinite}.smiley--halo{animation:rv-halo 1.3s ease-in-out infinite}.smiley--tongue{animation:rv-tongue .55s ease-in-out infinite}.smiley--exhale{animation:rv-exhale 1.6s ease-in-out infinite}.smiley--facepalm{animation:rv-facepalm .9s ease-in-out infinite}.smiley--devil{animation:rv-devil .7s ease-in-out infinite}.smiley--eye-roll{animation:rv-eye-roll 1.1s ease-in-out infinite}.smiley--bored{animation:rv-bored 1.6s ease-in-out infinite}.smiley--grin{animation:rv-grin .8s ease-in-out infinite}.smiley--thumbs-up{animation:rv-thumbs-up .75s ease-in-out infinite}.smiley--wave{animation:rv-wave .65s ease-in-out infinite}.smiley--peace{animation:rv-peace .8s ease-in-out infinite}.smiley--clap{animation:rv-clap .42s ease-in-out infinite}.smiley--shrug{animation:rv-shrug 1s ease-in-out infinite}.smiley--point{animation:rv-point .7s ease-in-out infinite}.smiley--thumbs-down{animation:rv-thumbs-down .9s ease-in-out infinite}.smiley--pray{animation:rv-pray 1s ease-in-out infinite}
@keyframes rv-nod{0%,100%{transform:translateY(0)}30%{transform:translateY(10px) rotate(10deg)}65%{transform:translateY(-4px) rotate(-5deg)}}@keyframes rv-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-10px) rotate(-12deg)}50%{transform:translateX(10px) rotate(12deg)}75%{transform:translateX(-6px)}}@keyframes rv-laugh{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-8px) rotate(-8deg) scale(1.1)}}@keyframes rv-wink{0%,70%,100%{transform:rotate(0)}80%{transform:rotate(12deg)}}@keyframes rv-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.22)}}@keyframes rv-tears{0%,100%{transform:translateY(0)}50%{transform:translateY(8px) rotate(-7deg)}}@keyframes rv-cool{0%,100%{transform:rotate(0)}50%{transform:rotate(8deg) translateY(-4px)}}@keyframes rv-think{0%,100%{transform:rotate(0)}50%{transform:rotate(12deg)}}@keyframes rv-surprise{0%,100%{transform:scale(1)}50%{transform:scale(1.22) translateY(-5px)}}@keyframes rv-smirk{0%,100%{transform:rotate(0)}40%{transform:rotate(9deg) translateY(-3px)}}@keyframes rv-blush{0%,100%{transform:scale(1)}50%{transform:scale(1.14) rotate(5deg)}}@keyframes rv-nervous{0%,100%{transform:translate(0)}25%{transform:translate(-5px,-4px)}50%{transform:translate(5px,4px)}}@keyframes rv-sleep{0%,100%{transform:translateY(0)}50%{transform:translateY(7px) rotate(6deg)}}@keyframes rv-yawn{0%,100%{transform:scale(1)}50%{transform:scale(1.14,1.06) translateY(-5px)}}@keyframes rv-kiss{0%,100%{transform:scale(1)}35%{transform:scale(1.18) rotate(-8deg)}70%{transform:scale(.96) rotate(5deg)}}@keyframes rv-halo{0%,100%{transform:translateY(0)}50%{transform:translateY(-11px) rotate(6deg)}}@keyframes rv-tongue{0%,100%{transform:rotate(0)}25%{transform:rotate(-10deg)}75%{transform:rotate(10deg)}}@keyframes rv-exhale{0%,100%{transform:scale(1)}50%{transform:scale(1.1,.94) translateY(3px)}}@keyframes rv-facepalm{0%,100%{transform:rotate(0)}35%{transform:rotate(-13deg) translateY(7px)}70%{transform:rotate(8deg)}}@keyframes rv-devil{0%,100%{transform:rotate(0) scale(1)}50%{transform:rotate(-10deg) scale(1.12)}}@keyframes rv-eye-roll{0%,100%{transform:translateY(0)}35%{transform:translateY(-9px)}70%{transform:translateY(4px)}}@keyframes rv-bored{0%,100%{transform:rotate(0)}50%{transform:rotate(6deg) translateY(4px)}}@keyframes rv-grin{0%,100%{transform:scale(1)}50%{transform:scale(1.17) rotate(-5deg)}}@keyframes rv-thumbs-up{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-10px) scale(1.14)}}@keyframes rv-wave{0%,100%{transform:rotate(0)}25%{transform:rotate(-15deg)}75%{transform:rotate(15deg)}}@keyframes rv-peace{0%,100%{transform:rotate(0)}50%{transform:rotate(-11deg) translateY(-5px)}}@keyframes rv-clap{0%,100%{transform:scale(1)}25%{transform:scale(.9,1.08)}50%{transform:scale(1.12)}75%{transform:scale(.94,1.05)}}@keyframes rv-shrug{0%,100%{transform:translateY(0)}45%{transform:translateY(-9px) rotate(-9deg)}80%{transform:rotate(8deg)}}@keyframes rv-point{0%,100%{transform:translateX(0)}50%{transform:translateX(10px) rotate(7deg)}}@keyframes rv-thumbs-down{0%,100%{transform:rotate(0)}40%{transform:rotate(14deg) translateY(6px)}75%{transform:rotate(-6deg)}}@keyframes rv-pray{0%,100%{transform:scale(1)}50%{transform:scale(1.14) translateY(-4px)}}
@media(prefers-reduced-motion:reduce){.revival-smiley{animation:none!important}}
img.revival-smiley{width:48px;height:48px;object-fit:contain;vertical-align:middle;margin:0 .06em;background:none;user-select:none}
.emoji-tray{grid-template-columns:repeat(8,52px)!important;gap:4px!important;max-height:340px;overflow-y:auto}
.emoji-tray button{width:52px;height:52px;padding:3px!important;display:grid;place-items:center}
.emoji-tray button img{width:44px;height:44px;object-fit:contain;pointer-events:none}
@media(prefers-reduced-motion:reduce){img.revival-smiley{animation:none!important}}

/* REVIVAL_SMILEYS_SANS_BULLE_V1 : message compose uniquement de smileys = sans fond */
.bubble.smiley-only{background:transparent!important;border:0!important;box-shadow:none!important;padding:2px 4px!important;backdrop-filter:none!important}
.bubble.smiley-only img.revival-smiley{width:72px;height:72px;margin:0 2px}

/* REVIVAL_ECRITURE_MAQUETTE_V1 : police et textes comme sur la maquette */
:root,body,button,input,select,textarea{font-family:"Segoe UI Variable Text","Segoe UI Variable","Segoe UI",system-ui,Arial,sans-serif}
#profile-name{font-size:20px;font-weight:700;color:#0f2d5c;letter-spacing:.1px}
.contact-meta b{font-size:16px;font-weight:600;color:#0f2d5c}
.contact-meta small{font-size:13.5px;color:#56708f}
.chat-person b,#chat-name{font-size:19px;font-weight:700}
.chat-person span{font-size:14px}
.bubble{font-size:15.5px;line-height:1.45;color:#1b3556}
.bubble time{font-size:11.5px;color:#7d93ab}
.composer input#message-input{font-size:15px}
/* REVIVAL_MESSAGE_PERSO_V1 */
.personal-message-input{width:200px;max-width:100%;margin-top:5px;padding:7px 10px;border:1.5px dashed #6fb8d8;border-radius:9px;background:#ffffff;color:#1f4f75;font-size:13px;outline:none;cursor:text}
.personal-message-input:hover{border-style:solid;border-color:#2394cf}
.personal-message-input::placeholder{color:#3d86ad;font-style:italic;opacity:1}
.personal-message-input:focus{border-color:#4db3dc;box-shadow:0 0 0 3px #51c4ed2b;background:#fff}
.contact-personal-message{display:flex;align-items:center;gap:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#56708f;font-style:italic}
.mini-smiley{width:18px;height:18px;object-fit:contain;vertical-align:middle;flex:none}
/* REVIVAL_RACCOURCIS_TABLETTE_V1 : raccourci affiche sous chaque smiley */
.emoji-tray{grid-template-columns:repeat(8,58px)!important;max-height:380px}
.emoji-tray button{width:58px!important;height:68px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:3px 2px!important}
.emoji-tray button img{width:42px!important;height:42px!important}
.tray-shortcut{font:600 11px/1.1 Consolas,'Cascadia Mono',monospace;color:#2a6f93;background:#e6f4fb;border-radius:5px;padding:1px 4px;max-width:56px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

/* REVIVAL_GRANDS_AVATARS_MESSAGES_V1 */
#messages .bubble{margin-left:80px;max-width:calc(88% - 80px)}
#messages .bubble>.message-avatar{left:-80px;width:66px;height:66px;border-width:3px}

/* REVIVAL_DEFILEMENT_CONTACTS_V1 : barre pour descendre quand il y a beaucoup de contacts */
.sidebar{min-height:0;overflow:hidden}
.contact-list{flex:1 1 auto;min-height:0;overflow-y:auto!important;overflow-x:hidden;scrollbar-gutter:stable}
.contact-list::-webkit-scrollbar{width:10px}
.contact-list::-webkit-scrollbar-track{background:#e3f2fa;border-radius:10px}
.contact-list::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#7cc6e4,#3f9fcb);border-radius:10px;border:2px solid #e3f2fa}
.contact-list::-webkit-scrollbar-thumb:hover{background:#2f8fbd}

/* REVIVAL_ENTETE_PROFIL_V2 : message perso sur sa propre ligne, sous la photo et les icones */
.profile{flex-wrap:wrap;row-gap:8px}
.profile>.personal-message-input{flex:1 0 100%;order:10;width:100%!important;max-width:none!important;margin-top:0;box-sizing:border-box}
.profile>.profile-copy{flex:1 1 0;min-width:0}
.profile>button{flex:none}
/* REVIVAL_MAIL_IMAP_V1 */
.imap-box{margin:6px 0 14px;padding:12px 14px;border:1px solid #b8dcec;border-radius:12px;background:#f4fbfe}
.imap-box h4,.outlook-title{margin:0 0 6px;color:#0f2d5c;font-size:15px}
.imap-intro{margin:0 0 8px;font-size:13px;color:#4c6780}
.imap-form{display:grid;gap:8px}
.imap-form label{display:grid;gap:4px;font-size:12.5px;font-weight:600;color:#3d5a7a}
.imap-form input,.imap-form select{padding:9px 11px;border:1px solid #bed9e8;border-radius:9px;background:#fff;font-size:14px;color:#1f3b55}
.imap-help{font-size:12px;color:#5a7690;line-height:1.4}
#mail-dialog{max-height:94vh;overflow-y:auto}
/* REVIVAL_THEME_CLAIR_V1 : fond clair et opaque, textes contrastes, avatars mis en valeur */
html,body{background:#eaf3fb!important;background-image:none!important}
#app-screen:not(.private-chat-window),.workspace{background:#f6faff!important;background-image:none!important}
.sidebar{background:linear-gradient(180deg,#ffffff 0%,#f3f8fd 100%)!important;background-image:linear-gradient(180deg,#ffffff 0%,#f3f8fd 100%)!important;border-right:1px solid #cfe1ef!important}
.chat-panel{background:#fbfdff!important;background-image:none!important}
.desktop-glow{display:none!important}
.profile{background:linear-gradient(180deg,#f2f9ff,#ffffff);border-bottom:1px solid #dbe9f4}
.sidebar-footer{background:#f1f7fc!important;border-top:1px solid #d3e4f0!important;color:#1d5f8a!important}
.search{background:#fff!important;border:1.5px solid #c4dcee!important}
.search input{color:#14304f!important}
/* textes */
#profile-name{color:#0b2447}
.contact-meta b{color:#0b2447;font-size:16px}
.contact-meta small{color:#3c5873!important;font-size:13.5px}
.contact-personal-message{color:#3c5873!important}
.section-title{color:#0b2447!important}
/* groupes en cartes blanches */
.contact-group-heading{background:#ffffff!important;border-top:1px solid #c9deee!important;border-right:1px solid #c9deee!important;border-bottom:1px solid #c9deee!important;color:#0b2447!important;box-shadow:0 1px 4px #1d4f7a14!important}
.contact{border-radius:12px}
.contact:hover,.contact.active{background:#e6f2fc!important}
/* avatars mis en valeur */
.contact .avatar{width:50px!important;height:50px!important;border:3px solid #fff!important;box-shadow:0 0 0 2px #4aa3d6,0 3px 8px #1d4f7a33!important}
.profile .avatar.self{border:3px solid #fff!important;box-shadow:0 0 0 3px #2f8fd0,0 4px 12px #1d4f7a40!important}
#messages .bubble>.message-avatar{border:3px solid #fff!important;box-shadow:0 0 0 2px #4aa3d6,0 3px 8px #1d4f7a33!important}
.chat-header .avatar{border:3px solid #fff!important;box-shadow:0 0 0 2px #ffffffaa,0 3px 10px #0d2f4a55!important}
/* REVIVAL_THEME_CLAIR_PARTOUT_V1 : ecran de connexion + fenetre de message prive en ton clair */
/* connexion */
.auth-shell{background:linear-gradient(160deg,#eef6fd 0%,#e2effa 100%)!important}
.auth-card{background:#ffffff!important;border:1px solid #d3e4f1!important;box-shadow:0 18px 50px #1d4f7a22!important}
.auth-card h1{color:#0b2447!important}
.auth-card>p,.auth-card .muted{color:#3c5873!important}
.auth-card label{color:#22405f!important}
.auth-card input{background:#fbfdff!important;border:1.5px solid #c4dcee!important;color:#0b2447!important}
.auth-card input::placeholder{color:#7f97ad!important}
.link-button{color:#1f73b7!important}
/* fenetre de message prive : en-tete clair */
.chat-header{background:linear-gradient(180deg,#ffffff,#f1f7fd)!important;border-bottom:1px solid #d3e4f1!important;box-shadow:0 2px 10px #1d4f7a14!important;color:#0b2447!important}
.chat-header .chat-person b,#chat-name{color:#0b2447!important;text-shadow:none!important}
.chat-header .chat-person span,#chat-status{color:#3c5873!important;font-weight:600}
.chat-back{color:#1f5f8a!important;border-color:#c4dcee!important;background:#ffffff!important}
.chat-header .avatar{width:58px!important;height:58px!important;box-shadow:0 0 0 2px #4aa3d6,0 3px 8px #1d4f7a33!important}
.chat-header .chat-action{background:#ffffff!important;border:1.5px solid #c4dcee!important;color:#1f5f8a!important;box-shadow:0 2px 5px #1d4f7a14!important}
/* zone des messages */
.messages,#messages{background:#f7fbff!important;background-image:none!important}
.bubble.theirs{background:#eef5fc!important;border:1px solid #d3e3f1!important;color:#0b2447!important;box-shadow:0 1px 4px #1d4f7a12!important}
.bubble.mine{background:#e6f5e4!important;border:1px solid #cbe6c7!important;color:#0b2447!important;box-shadow:0 1px 4px #1d4f7a12!important}
.bubble time{color:#6b839a!important}
.bubble.smiley-only{background:transparent!important;border:0!important;box-shadow:none!important}
/* barre d'ecriture */
.composer{background:#ffffff!important;background-image:none!important;border-top:1px solid #d3e4f1!important;box-shadow:0 -2px 10px #1d4f7a10!important}
.composer input#message-input{background:#f7fbff!important;border:1.5px solid #c4dcee!important;color:#0b2447!important}
.composer small{color:#6b839a!important}
/* REVIVAL_PALETTE_PSEUDO_V1 */
.name-color-squares{display:grid!important;grid-template-columns:repeat(8,32px)!important;gap:7px!important;justify-content:center;margin-top:14px}
.name-color-square{width:32px;height:32px;padding:0;border:2px solid #fff;border-radius:6px;box-shadow:0 0 0 1px #9db8c4;cursor:pointer;transition:transform .12s ease}
.name-color-square:hover{transform:scale(1.15)}
.name-color-square.selected{box-shadow:0 0 0 2px #fff,0 0 0 4px #2394cf}

/* REVIVAL_PSEUDOS_LISIBLES_V1 : pseudos plus grands, plus gras et plus nets */
#profile-name{font-size:22px!important;font-weight:800!important;letter-spacing:.2px;-webkit-text-stroke:.25px currentColor;text-shadow:0 1px 0 #ffffff,0 1px 2px #0b244722}
.contact-meta b,.contact-name-line b{font-size:17.5px!important;font-weight:800!important;letter-spacing:.15px;-webkit-text-stroke:.2px currentColor;text-shadow:0 1px 0 #ffffff,0 1px 2px #0b244720}
.chat-header .chat-person b,#chat-name{font-size:21px!important;font-weight:800!important;letter-spacing:.2px;-webkit-text-stroke:.25px currentColor}
.contact-meta small,.contact-personal-message{font-size:14px!important}
/* REVIVAL_CONFORT_MESSAGES_CONNEXION_V1 */
/* --- messages prives : vos messages a droite, bulles aerees --- */
#messages{padding:22px 4% 26px!important;gap:14px!important}
#messages .bubble{font-size:16px!important;line-height:1.5!important;padding:12px 16px 9px!important;border-radius:18px!important;max-width:min(62%,520px)!important}
#messages .bubble.theirs{align-self:flex-start!important;margin-left:80px!important;margin-right:0!important;border-bottom-left-radius:6px!important}
#messages .bubble.mine{align-self:flex-end!important;margin-left:0!important;margin-right:80px!important;border-bottom-right-radius:6px!important}
#messages .bubble.mine>.message-avatar{left:auto!important;right:-80px!important}
#messages .bubble.smiley-only{padding:0 4px!important}
#messages .bubble time{font-size:11px!important;margin-top:4px!important;opacity:.85}
#messages .bubble.mine time{text-align:right}
#messages .bubble.theirs time{text-align:left}
#messages .day-label{background:#e8f1f9!important;color:#4a6782!important;font-weight:600}
.composer input#message-input{height:50px!important;font-size:15.5px!important;border-radius:25px!important;padding:0 20px!important}
.composer input#message-input::placeholder{color:#7f97ad!important}
/* --- ecran de connexion --- */
.auth-shell{background:radial-gradient(circle at 15% 20%,#ffffff 0,#ffffff00 40%),radial-gradient(circle at 85% 85%,#d4e8fb 0,#d4e8fb00 45%),linear-gradient(160deg,#f1f7fd 0%,#e1eefa 100%)!important}
.auth-card{width:min(440px,100%)!important;padding:34px 36px!important;border-radius:26px!important}
.auth-card h1{font-size:28px!important;font-weight:800!important;margin-top:26px!important;letter-spacing:.2px}
.auth-card>p{font-size:15px!important}
.auth-card label{font-size:13.5px!important;font-weight:700!important;margin-top:18px!important}
.auth-card input:not([type=checkbox]){height:50px!important;padding:0 16px!important;font-size:15.5px!important;border-radius:14px!important}
.auth-card input:not([type=checkbox]):focus{border-color:#2f8fd0!important;box-shadow:0 0 0 4px #2f8fd022!important;background:#fff!important}
.auth-card input[type=checkbox]{accent-color:#2f8fd0;width:18px;height:18px}
.auth-card .primary{height:52px!important;font-size:17px!important;font-weight:800!important;border-radius:16px!important;box-shadow:0 6px 16px #1f73b740!important;letter-spacing:.3px}
.auth-card .primary:hover{filter:brightness(1.06)}
.auth-bottom,.auth-card .link-button{font-size:14px!important}
/* REVIVAL_LOGO_CONNEXION_V1 : logo de l'interface, centre */
.auth-card .brand.auth-brand{justify-content:center!important;gap:14px!important;padding:16px 14px!important;text-align:left}
.auth-card .brand.auth-brand b{font-size:30px;font-weight:800;letter-spacing:.3px;line-height:1}
.auth-card .brand.auth-brand small{font-size:14px;letter-spacing:1.5px;text-transform:uppercase;margin-top:3px}
.auth-logo{display:block;width:64px;height:46px;flex:none;overflow:visible;filter:drop-shadow(0 2px 2px #174e6c66)}
.auth-logo .logo-gear{fill:url(#revival-metal-auth)!important}
.auth-logo .logo-speaker{fill:url(#revival-speaker-auth)!important}

/* REVIVAL_PRIVE_SANS_FLASH_V1 : chargement discret, meme fond que la discussion */
.private-session-loading{background:#f7fbff!important;background-image:none!important}
.private-session-card{background:transparent!important;border:0!important;box-shadow:none!important}
.private-session-card>b,.private-session-card>small,.private-session-mark{display:none!important}
/* REVIVAL_MAINTENANCE_V1 */
.revival-maintenance{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;padding:24px;background:#eef5fbee;backdrop-filter:blur(3px)}
.revival-maintenance section{width:min(380px,100%);padding:28px 26px;border:1px solid #cfe1ef;border-radius:20px;background:#fff;box-shadow:0 16px 40px #1d4f7a2e;text-align:center;display:grid;gap:10px;justify-items:center}
.revival-maintenance .maintenance-icon{font-size:42px}
.revival-maintenance h2{margin:0;color:#0b2447;font-size:21px}
.revival-maintenance .maintenance-message{margin:0;color:#22405f;font-size:15px;line-height:1.5;white-space:pre-line}
.revival-maintenance small{color:#5a7690}
.maintenance-spinner{width:24px;height:24px;border:3px solid #cfe1ef;border-top-color:#2f8fd0;border-radius:50%;animation:private-session-spin .8s linear infinite}
/* REVIVAL_QUALITE_WEBCAM_V1 */
.call-quality{display:grid;gap:6px;margin-top:10px;padding:10px 12px;border:1px solid #d3e4f1;border-radius:12px;background:#f7fbff}
.call-quality label{display:grid;gap:4px;font-size:12.5px;font-weight:700;color:#22405f}
.call-quality select{padding:7px 9px;border:1px solid #c4dcee;border-radius:8px;background:#fff;font-size:13.5px}
.call-quality-indicator{font-size:13px;font-weight:700;color:#3c5873}
.call-quality-indicator::before{content:"";display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:50%;background:#9db8c4;vertical-align:-1px}
.call-quality-indicator[data-state=good]::before{background:#2fb866}
.call-quality-indicator[data-state=medium]::before{background:#e8a317}
.call-quality-indicator[data-state=poor]::before{background:#d94b45}
.call-quality-level{font-size:12px;color:#5a7690}
/* REVIVAL_QUALITE_WEBCAM_V1 : version compacte sous le titre de l'appel */
#call-panel .call-quality{grid-template-columns:1fr;gap:6px;margin:8px 0 10px;padding:9px 11px}
#call-panel .call-quality label{display:flex;align-items:center;gap:8px;font-size:12.5px}
#call-panel .call-quality select{flex:1;min-width:0;padding:5px 6px;font-size:13px}
#call-panel .call-quality-level{grid-column:1 / -1}
/* REVIVAL_BOUTONS_APPEL_EN_HAUT_V1 */
#call-panel .call-top{display:grid;gap:8px;margin-top:8px}
#call-panel .call-top #call-status-text{margin:0;padding:8px 10px;border-radius:10px;background:#eef5fc;color:#0b2447;font-weight:700;font-size:13.5px;text-align:center}
#call-panel .call-top .dialog-actions{margin:0;display:flex;gap:8px;justify-content:stretch}
#call-panel .call-top .dialog-actions button{flex:1;padding:9px 10px;font-size:13.5px}
#call-panel #accept-call:not(.hidden){background:linear-gradient(180deg,#43c46f,#25a052)!important;color:#fff!important;border:0!important;box-shadow:0 4px 12px #25a05244;animation:accepte-pulse 1.2s ease-in-out infinite}
@keyframes accepte-pulse{50%{transform:scale(1.04)}}
#call-panel #hangup-call{background:#fff!important;border:1.5px solid #e3a5a1!important;color:#b8322b!important}
/* REVIVAL_DICTEE_V1 */
.dictation-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dictation-button{background:linear-gradient(180deg,#f3ecff,#dccdfb)!important;border-color:#b9a4ec!important;color:#5b3fa8!important}
.dictation-button.listening{animation:dictee-pulse .8s ease-in-out infinite;box-shadow:0 0 0 4px #8e6be855!important}
@keyframes dictee-pulse{50%{transform:scale(1.08)}}
.dictation-button.active{background:linear-gradient(180deg,#9b7bf0,#6f4fd6)!important;color:#fff!important;border-color:#5b3fa8!important;animation:dictee-pulse 1s ease-in-out infinite;box-shadow:0 0 0 4px #8e6be855!important}

/* REVIVAL_MES_MESSAGES_A_GAUCHE_V1 : vos messages a gauche avec votre avatar, comme ceux du contact */
#messages .bubble.mine{align-self:flex-start!important;margin-left:80px!important;margin-right:0!important;border-bottom-right-radius:18px!important;border-bottom-left-radius:6px!important}
#messages .bubble.mine>.message-avatar{left:-80px!important;right:auto!important}
#messages .bubble.mine time{text-align:left!important}
.games-button{font-size:17px!important}
/* REVIVAL_MENU_JEUX_V1 */
.revival-menu{position:fixed;z-index:30000;min-width:210px;max-width:260px;padding:6px;border:1px solid #cfe1ef;border-radius:14px;background:#fff;box-shadow:0 12px 30px #1d4f7a33;display:grid;gap:2px}
.revival-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:#0b2447;font-size:14px;font-weight:600;text-align:left}
.revival-menu button:hover:not(:disabled){background:#e6f2fc}
.revival-menu button:disabled{color:#9aaec2;cursor:default}
.revival-menu-icone{width:22px;text-align:center;font-size:17px}
.revival-menu-titre{padding:6px 10px 2px;font-size:11.5px;font-weight:800;color:#5a7690;text-transform:uppercase;letter-spacing:.6px}
.revival-menu-sep{height:1px;margin:4px 6px;background:#e1ecf5}
.self-row .self-contact{background:#f2f8ff!important;border:1px dashed #9cc7e6!important}
.self-tag{font-size:10.5px;font-weight:800;color:#fff;background:#2f8fd0;border-radius:10px;padding:1px 7px}
/* REVIVAL_JEUX_RESEAU_V1 : carte d'invitation */
.revival-invitation{position:fixed;left:12px;right:12px;bottom:70px;z-index:25000;display:grid;grid-template-columns:auto 1fr;gap:10px 12px;align-items:center;padding:14px;border:1px solid #cfe1ef;border-radius:16px;background:#fff;box-shadow:0 14px 34px #1d4f7a40;animation:inv-monte .3s ease-out}
@keyframes inv-monte{from{transform:translateY(30px);opacity:0}}
.revival-invitation .inv-icone{font-size:34px}
.revival-invitation .inv-texte{display:grid;gap:2px}
.revival-invitation .inv-texte b{color:#0b2447;font-size:15px}
.revival-invitation .inv-texte small{color:#56708f}
.revival-invitation .inv-actions{grid-column:1/-1;display:flex;gap:8px}
.revival-invitation .inv-actions button{flex:1;border:0;border-radius:10px;padding:9px;font-weight:800;font-size:14px}
.revival-invitation .inv-oui{background:linear-gradient(180deg,#43c46f,#25a052);color:#fff}
.revival-invitation .inv-non{background:#fff;border:1.5px solid #e3a5a1!important;color:#b8322b}

/* REVIVAL_PSEUDO_GROUPE_V1 */
.self-row .contact-group-select{margin-right:30px}

/* REVIVAL_MUET_V1 + REVIVAL_BLOQUER_CLIC_DROIT_V1 */
.muet-tag{font-size:13px;opacity:.85}
.bloques-groupe .contact-group-heading b{color:#9b3038}
.contact.contact-bloque{opacity:.7;filter:grayscale(.6);padding-left:16px}
.contact.contact-bloque b{text-decoration:line-through;color:#7b5a5f!important}

/* REVIVAL_MENTION_IA_V1 */
.ia-mention{grid-column:1/-1;flex-basis:100%;width:100%;text-align:center;font-size:11px;color:#7d93a3;padding:4px 0 2px}
.avatar-picker-dialog .ia-mention{margin-top:6px}

/* REVIVAL_CENTRAGE_LOGO_V1 : leger decalage vers la gauche pour un centrage visuel */
.auth-card .brand.auth-brand{padding:16px 30px 16px 14px!important}

/* REVIVAL_ASSISTANCE_V1 : fenetre d'accord pour l'assistance */
.assist-accord{position:fixed;inset:0;z-index:5000;display:grid;place-items:center;background:#0b244799;padding:16px}
.assist-accord section{width:min(440px,100%);background:#fff;color:#0b2447;border-radius:22px;padding:22px 24px;text-align:center;box-shadow:0 20px 50px #0007;border:3px solid #ffb347}
.assist-icone{font-size:46px}
.assist-accord h2{margin:6px 0 8px;font-size:20px}
.assist-texte{margin:0 0 10px;font-size:15px;line-height:1.45}
.assist-prudence{margin:0 0 14px;font-size:13px;color:#8a5a00;background:#fff6e0;border-radius:10px;padding:8px 10px;line-height:1.4}
.assist-boutons{display:flex;gap:10px;justify-content:center}
.assist-boutons button{flex:1;border:0;border-radius:12px;padding:12px;font-weight:800;font-size:16px;cursor:pointer}
.assist-refuser{background:#e8eef5;color:#33475b}
.assist-autoriser{background:linear-gradient(180deg,#43c46f,#25a052);color:#fff}
.assist-delai{display:block;margin-top:10px;color:#7d93a3;font-size:12px}

/* REVIVAL_PRIVE_SANS_FLASH_V2 : fenêtre privée unie dès le premier affichage */
html.fenetre-privee #auth-screen,html.fenetre-privee .desktop-glow{display:none!important}
html.fenetre-privee,html.fenetre-privee body{background:#f7fbff!important}

/* REVIVAL_CAMS_UNE_PAR_UNE_V1 : boutons Ouvrir ma caméra / micro, caméra du contact fermée */
#call-panel .mes-medias{display:flex;gap:8px;flex-wrap:wrap}
#call-panel .mes-medias button{flex:1;min-width:120px;padding:8px 10px;font-size:12.5px;font-weight:800}
#call-panel .mes-medias button.actif{background:linear-gradient(180deg,#43c46f,#25a052);color:#fff;border-color:#1f8a45}
#call-panel .mes-medias button:disabled{opacity:.6;cursor:wait}
#call-panel .remote-cam-off{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px;text-align:center;color:#d8eef7;font-size:13px;font-weight:700;background:#172b3a}
#call-panel .remote-cam-off .icone{font-size:30px;opacity:.7}
#call-panel .local-cam-off{padding:14px 8px;border-radius:8px;background:#e3eef4;color:#557181;font-size:12px;font-weight:700;text-align:center}
#call-panel .mes-medias button.apercu-actif{background:linear-gradient(180deg,#fff3cf,#ffdf83);color:#745416;border-color:#dcb84b}
/* REVIVAL_VOYANT_CONNEXION_V2 : couleur de la connexion en haut de l’appel */
#call-panel .call-top #call-status-text[data-qualite]::before{content:"";display:inline-block;width:12px;height:12px;margin-right:7px;border-radius:50%;vertical-align:-1px;box-shadow:0 0 0 2px #fff}
#call-panel .call-top #call-status-text[data-qualite=good]{background:#dff6e7;color:#145c31}
#call-panel .call-top #call-status-text[data-qualite=good]::before{background:#2fb866}
#call-panel .call-top #call-status-text[data-qualite=medium]{background:#fff2d1;color:#6b4a00}
#call-panel .call-top #call-status-text[data-qualite=medium]::before{background:#e8a317}
#call-panel .call-top #call-status-text[data-qualite=poor]{background:#fde1df;color:#8a1f1a}
#call-panel .call-top #call-status-text[data-qualite=poor]::before{background:#d94b45}
/* REVIVAL_CGU_V1 : acceptation des conditions à l'inscription */
.cgu-row{margin:14px 0 4px;padding:10px 12px;border:1px solid #bed9e8;border-radius:12px;background:#f3faff}
.auth-card .cgu-row label.cgu-label{display:flex;align-items:flex-start;gap:9px;margin:0;font-size:12.5px;font-weight:600;color:#3e5a6d;line-height:1.4;cursor:pointer}
.auth-card .cgu-row input[type=checkbox]{width:18px;height:18px;flex:none;margin:1px 0 0;padding:0;accent-color:#2394cf;cursor:pointer}
.cgu-row .cgu-lire{margin:6px 0 0 27px;padding:0;font-weight:700}
.cgu-dialog{width:min(720px,94vw);max-height:88vh;padding:0;display:none;flex-direction:column;overflow:hidden}
.cgu-dialog[open]{display:flex}
.cgu-dialog .cgu-contenu{flex:1;min-height:0;overflow:auto;padding:0 6px;border-bottom:1px solid #d7e9f2}
.cgu-dialog .cgu-contenu .conditions-texte{padding:18px 16px 24px;font-size:14px;line-height:1.55}
.cgu-dialog .conditions-texte h1{font-size:19px;color:#1f6f9e;margin:0 0 4px}
.cgu-dialog .conditions-texte h2{font-size:15.5px;color:#1f6f9e;margin:18px 0 5px;padding-top:8px;border-top:1px solid #d7e9f2}
.cgu-dialog .conditions-texte h3{font-size:14px;margin:12px 0 4px}
.cgu-dialog .conditions-texte ul{padding-left:20px}
.cgu-dialog .conditions-texte .version{color:#6c8798;font-size:12.5px}
.cgu-dialog .dialog-actions{margin:0;padding:12px 16px}
.cgu-dialog .conditions-texte .note-traduction{margin:0 0 10px;padding:7px 10px;border-radius:8px;background:#fff6dc;color:#6b4a00;font-size:12.5px}
.cgu-dialog .conditions-texte[dir=rtl]{text-align:right}
.cgu-dialog .conditions-texte[dir=rtl] ul{padding-left:0;padding-right:20px}
/* REVIVAL_APPEL_A_3_V1 : 3e webcam attachée (détachable), ajout d'une personne, carte d'invitation */
#call-panel #tiers-slot{position:relative;display:block;width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:10px;background:#172b3a}
#call-panel #tiers-slot.hidden{display:none}
#call-panel #tiers-video{display:block;width:100%;height:100%;object-fit:cover;background:#172b3a;cursor:zoom-in}
#call-panel .tiers-nom{position:absolute;left:8px;top:8px;z-index:2;max-width:calc(100% - 110px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 9px;border-radius:999px;background:#0b2233cc;color:#fff;font-size:11.5px;font-weight:700}
#call-panel .tiers-detacher{position:absolute;right:8px;top:6px;z-index:3;padding:4px 9px;border:1px solid #ffffff88;border-radius:8px;background:#eaf8fcee;color:#245f7d;font-size:11.5px;font-weight:800;cursor:pointer}
#call-panel .tiers-place{position:absolute;inset:0;z-index:1;display:none;align-items:center;justify-content:center;padding:12px;text-align:center;color:#c9e6f1;font-size:12.5px;font-weight:700;background:#172b3a}
#call-panel #tiers-slot.tiers-detache .tiers-place{display:flex}
#call-panel #tiers-slot.tiers-detache .tiers-detacher::after{content:""}
#call-panel .groupe-etat{margin:6px 0 0;padding:7px 10px;border-radius:10px;background:#eef5fc;color:#0b2447;font-size:12.5px;font-weight:700;text-align:center}
#call-panel .liste-ajout{display:grid;gap:6px;margin-top:6px;padding:10px;border:1px solid #bddce7;border-radius:12px;background:#fff;box-shadow:0 6px 16px #1d4f7a22}
#call-panel .liste-ajout.hidden{display:none}
#call-panel .liste-ajout b{font-size:12.5px;color:#22405f}
#call-panel .liste-ajout small{font-size:12px;color:#5a7690}
#call-panel .liste-ajout button{padding:8px 10px;border:1px solid #c4dcee;border-radius:9px;background:#f3faff;color:#1f5d82;font-weight:700;font-size:13px;text-align:start;cursor:pointer}
#call-panel .liste-ajout button:hover{background:#e0f2fc}
.carte-appel-groupe{position:fixed;right:16px;bottom:16px;z-index:9500;display:flex;align-items:center;gap:12px;width:min(420px,calc(100vw - 32px));padding:14px;border-radius:16px;background:#fff;border:2px solid #8ccde4;box-shadow:0 14px 34px #1d4f7a44}
.carte-appel-groupe .cag-icone{font-size:30px}
.carte-appel-groupe b{display:block;font-size:14px;color:#16324a}
.carte-appel-groupe small{display:block;margin-top:3px;font-size:12px;color:#5a7690}
.carte-appel-groupe .cag-boutons{display:flex;flex-direction:column;gap:6px;margin-inline-start:auto}
.carte-appel-groupe button{border:0;border-radius:10px;padding:8px 12px;font-weight:800;font-size:13px;cursor:pointer}
.carte-appel-groupe .cag-oui{background:linear-gradient(180deg,#43c46f,#25a052);color:#fff}
.carte-appel-groupe .cag-non{background:#fff;border:1.5px solid #e3a5a1;color:#b8322b}
/* REVIVAL_PROTECTION_COMPTES_V1 */
.code-compte{margin:6px 0 0;font-size:13px;color:#3e5a6d}
.code-compte b{font-family:Consolas,monospace;letter-spacing:1px;color:#1a6f9c;user-select:all}
.bande-reconfirm{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:0 0 8px;padding:8px 12px;border-radius:12px;background:#fff6dc;border:1px solid #f1c76a;color:#6b4a00;font-size:13px;font-weight:700}
.bande-reconfirm button{border:0;border-radius:9px;padding:6px 12px;background:linear-gradient(#ffe08a,#f6b52b);color:#4a2c00;font-weight:800;cursor:pointer}
.dialog-reconfirm{width:min(440px,92vw)}
.dialog-reconfirm h3{margin:0 0 8px;color:#16324a}
.dialog-reconfirm .rc-explication{margin:0 0 12px;font-size:14px;color:#36506a}
.dialog-reconfirm label{display:grid;gap:6px;font-size:13px;font-weight:700;color:#3e5a6d}
.dialog-reconfirm input{padding:11px 13px;border:1px solid #bed9e8;border-radius:12px;font-size:20px;letter-spacing:6px;text-align:center}
.dialog-reconfirm .rc-message{min-height:18px;margin:8px 0 0;font-size:13px;color:#b53b4a}
.dialog-reconfirm .dialog-actions{flex-wrap:wrap}

/* REVIVAL_TRADUCTION_V1 */
.chat-header{position:relative}
.menu-options{position:absolute;right:14px;top:calc(100% - 4px);z-index:60;min-width:260px;max-width:320px;padding:6px;background:#fff;border:1px solid #b9dce9;border-radius:12px;box-shadow:0 12px 28px #1d4f7a33;color:#16324a}
.menu-options button{display:block;width:100%;text-align:left;border:0;background:none;padding:10px 12px;border-radius:8px;font:inherit;font-weight:600;cursor:pointer;color:#16324a}
.menu-options button:hover,.menu-options button:focus-visible{background:#eaf6fc}
.menu-options-info{margin:2px 12px 8px;font-size:12px;line-height:1.4;color:#5d7b8e}
.chat-tools .more-action.trad-active{border-color:#2394cf!important;box-shadow:0 0 0 2px #2394cf55!important}
.bubble .traduction{flex-basis:100%;margin-top:6px;padding:5px 9px;border-left:3px solid #6fb7d9;background:#ffffffb3;border-radius:6px;font-size:.92em;font-style:italic;color:#24506c;white-space:pre-wrap;overflow-wrap:anywhere}

/* REVIVAL_TRADUCTION_V1 : bouton « 🌐 Traduire » à la place des trois points */
.chat-tools .more-action.bouton-traduire{width:auto!important;min-width:0!important;padding:0 14px!important;display:inline-flex!important;align-items:center;gap:6px;font-size:14px!important;font-weight:700;letter-spacing:0!important;white-space:nowrap}
.chat-tools .more-action.bouton-traduire .bt-icone{font-size:20px;line-height:1}
.chat-tools .more-action.bouton-traduire.trad-active{background:linear-gradient(180deg,#e3f6ff,#c6e9fb)!important;color:#0f5e8a!important}
@media(max-width:560px){.chat-tools .more-action.bouton-traduire .bt-mot{display:none}.chat-tools .more-action.bouton-traduire{padding:0 10px!important}}

/* REVIVAL_FOND_DOUX_V1 : fond « Bleu brume » (plus de blanc sec), lecture renforcée */

:root{--fd-app:#e4ebf3;--fd-side:#edf2f8;--fd-side2:#e2e9f2;--fd-msg:#e9eff6;--fd-head:#f4f7fb;--fd-comp:#f1f5fa;--fd-in:#ffffff;--fd-bord:#cbd8e6;--fd-lui:#ffffff;--fd-moi:#d9ecfb;--fd-moi-bord:#b9d8f1;--fd-grp:#f5f8fc}
#app-screen:not(.private-chat-window),.workspace{background:var(--fd-app)!important;background-image:none!important}
.sidebar{background:linear-gradient(180deg,var(--fd-side) 0%,var(--fd-side2) 100%)!important;background-image:linear-gradient(180deg,var(--fd-side) 0%,var(--fd-side2) 100%)!important;border-right:1px solid var(--fd-bord)!important}
.sidebar-footer{background:var(--fd-side2)!important;border-top:1px solid var(--fd-bord)!important}
.contact-group-heading{background:var(--fd-grp)!important;border-color:var(--fd-bord)!important}
.chat-panel{background:var(--fd-msg)!important;background-image:none!important}
.chat-header{background:var(--fd-head)!important;border-bottom:1px solid var(--fd-bord)!important}
.messages,#messages{background:radial-gradient(ellipse at 18% 0%,#ffffff8c 0,transparent 55%),var(--fd-msg)!important}
.composer{background:var(--fd-comp)!important;background-image:none!important;border-top:1px solid var(--fd-bord)!important}
.composer input#message-input{background:var(--fd-in)!important;border:1.5px solid var(--fd-bord)!important}
#messages .bubble.theirs{background:var(--fd-lui)!important;border:1px solid var(--fd-bord)!important;box-shadow:0 2px 6px #1d3a5a1a!important;color:#14283d!important}
#messages .bubble.mine{background:var(--fd-moi)!important;border:1px solid var(--fd-moi-bord)!important;box-shadow:0 2px 6px #1d3a5a14!important;color:#14283d!important}
#messages .bubble time{color:#5a6f84!important}
.search-box input,#contact-search{background:var(--fd-in)!important;border-color:var(--fd-bord)!important}
.sidebar .profile{background:linear-gradient(180deg,var(--fd-head),var(--fd-side))!important;background-image:linear-gradient(180deg,var(--fd-head),var(--fd-side))!important;border-bottom:1px solid var(--fd-bord)!important}
.sidebar .search{background:transparent!important}
.contact-group{background:transparent!important}
.contact:not(:hover):not(.active){background:#ffffff66!important}

/* REVIVAL_BANNIERE_CALME_V1 : bannière d'un bleu plus profond et plus calme (titre blanc mieux lisible) */
.topbar{background:linear-gradient(180deg,#5aa6db 0%,#4592cb 50%,#3680bb 100%)!important;border-color:#2c71a8!important;box-shadow:inset 0 1px 0 #ffffff59,0 2px 8px #1d4f7a26!important}
.topbar .brand.compact,.topbar .brand.compact b,.topbar .brand.compact span{color:#fff!important;text-shadow:0 1px 1px #123f6380}
.topbar #requests-button{color:#fff!important;background:#ffffff26!important;border-color:#ffffff66!important;text-shadow:0 1px 1px #123f6366}
.topbar #requests-button:hover{background:#ffffff40!important}

/* REVIVAL_CONNEXION_DOUCE_V1 : écran de connexion assorti (fond Bleu brume, bannière calme) */
#auth-screen.auth-shell{background:radial-gradient(circle at 18% 12%,#f4f7fb 0,transparent 45%),radial-gradient(circle at 85% 90%,#d6e2ee 0,transparent 50%),#e4ebf3!important}
#auth-screen .auth-card{background:#f7f9fc!important;border:1px solid #cbd8e6!important;box-shadow:0 16px 40px #1d3a5a24!important}
#auth-screen .brand.auth-brand{background:linear-gradient(180deg,#5aa6db 0%,#4592cb 50%,#3680bb 100%)!important;border-color:#2c71a8!important}
#auth-screen input:not([type=checkbox]){background:#ffffff!important;border-color:#c3d2e2!important}
#auth-screen #auth-submit.primary{background:linear-gradient(180deg,#4f9fd6,#3080bd)!important;border-color:#2a6ea6!important}

/* REVIVAL_CONNEXION_COMPACTE_V1 : l'écran de connexion remplit la fenêtre, sans barre pour monter et descendre */
@media (max-height:900px){
  #auth-screen .auth-card{padding:26px 28px!important}
  #auth-screen .brand.auth-brand{margin-top:0!important;margin-bottom:14px!important;padding-top:12px!important;padding-bottom:12px!important;min-height:0!important}
  #auth-screen .brand.auth-brand .auth-logo{width:60px!important;height:40px!important}
  #auth-screen .revival-langues{margin-top:8px!important;margin-bottom:0!important;gap:6px!important}
  #auth-screen .revival-langues button,#auth-screen .revival-langues a{font-size:13px!important;padding:4px 11px!important;min-height:0!important;line-height:1.5!important}
  #auth-screen #auth-title{font-size:27px!important;line-height:1.15!important;margin-top:15px!important;margin-bottom:4px!important}
  #auth-screen .auth-card>p.muted{margin-bottom:14px!important}
  #auth-screen #auth-form>label{margin-top:14px!important}
  #auth-screen #auth-form input:not([type=checkbox]){padding-top:13px!important;padding-bottom:13px!important}
  #auth-screen #remember-login-error:empty{display:none!important}
  #auth-screen #auth-submit{margin-top:17px!important}
  #auth-screen .auth-bottom{margin-top:14px!important}
}

/* REVIVAL_MESSAGE_PERSO_LISIBLE_V1 : le petit message sous le pseudo n'est plus caché par le bouton de groupe */
#contact-list .contact-row .contact-group-select{display:none!important}
#contact-list .contact-row:hover .contact-group-select,#contact-list .contact-row:focus-within .contact-group-select{display:inline-block!important}
#contact-list .contact-row .contact{flex:1 1 auto!important;min-width:0!important}
#contact-list .contact-row .contact-meta{min-width:0!important}
#contact-list .contact-personal-message{white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-height:1.3!important;overflow-wrap:anywhere}

/* REVIVAL_ICONES_MESSAGE_PERSO_V1 : bouton 😊 et panneau d'icônes du message perso */
.message-perso-zone{position:relative;display:block;width:100%}
.message-perso-zone #personal-message-input{width:100%;padding-right:36px!important;box-sizing:border-box}
.message-perso-icones{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:28px;height:28px;padding:0;border:0;border-radius:8px;background:transparent;font-size:17px;line-height:28px;cursor:pointer;opacity:.85}
.message-perso-icones:hover,.message-perso-icones[aria-expanded=true]{background:#dbe9f6;opacity:1}
.message-perso-panneau{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:80;max-height:300px;overflow:auto;padding:8px 10px 10px;background:#f7f9fc;border:1px solid #cbd8e6;border-radius:12px;box-shadow:0 14px 30px #1d3a5a33}
.message-perso-panneau.hidden{display:none}
.message-perso-titre{margin:6px 2px 3px;font-size:11px;font-weight:700;color:#5a6f84;text-transform:uppercase;letter-spacing:.4px}
.message-perso-grille{display:grid;grid-template-columns:repeat(8,1fr);gap:2px}
.message-perso-grille button{border:0;background:transparent;border-radius:7px;font-size:19px;line-height:1;padding:5px 0;cursor:pointer}
.message-perso-grille button:hover,.message-perso-grille button:focus-visible{background:#dbe9f6}
.message-perso-aide{margin:8px 2px 0;font-size:11.5px;color:#5a6f84}

/* REVIVAL_STATUT_PIED_V1 : statut en bas à droite, avec sa couleur */
.sidebar-footer .connected{display:inline-flex;align-items:center;gap:6px}
.sidebar-footer .connected .pied-point{width:9px;height:9px;border-radius:50%;background:#2fa84f;box-shadow:0 0 0 2px #2fa84f33;flex:none}
.sidebar-footer .connected[data-etat=away] .pied-point{background:#e8a317;box-shadow:0 0 0 2px #e8a31733}
.sidebar-footer .connected[data-etat=busy] .pied-point{background:#d93b3b;box-shadow:0 0 0 2px #d93b3b33}
.sidebar-footer .connected[data-etat=invisible] .pied-point{background:#fff;border:2px solid #8a9aab;box-shadow:none;width:7px;height:7px}
.sidebar-footer .connected[data-etat=reconnexion] .pied-point,.sidebar-footer .connected[data-etat=maintenance] .pied-point{background:#8a9aab;box-shadow:none;animation:pied-clignote 1.2s ease-in-out infinite}
@keyframes pied-clignote{50%{opacity:.25}}

/* REVIVAL_PIED_ENGRENAGE_V1 */
.sidebar-footer .butterfly.pied-engrenage{display:inline-flex;align-items:center;vertical-align:middle;font-size:0;margin-right:2px}
.sidebar-footer .butterfly.pied-engrenage svg{display:block;width:20px;height:20px;filter:drop-shadow(0 1px 1px #1d3a5a33)}

/* REVIVAL_APPEL_VOCAL_V1 */
.call-panel.appel-vocal #remote-cam-off .icone{font-size:44px}
.call-panel.appel-vocal #remote-cam-off{background:radial-gradient(circle at 50% 40%,#3f8fc7 0,#1f5f8f 70%)!important;color:#fff}
#voice-call svg path{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
#call-panel.appel-vocal:not(.cam-ouverte) #local-video-card,#call-panel.appel-vocal:not(.cam-ouverte) #video-popout,#call-panel.appel-vocal:not(.cam-ouverte) .local-video-card{display:none!important}

/* REVIVAL_INSCRIPTION_COMPACTE_V1 : écran « Créer votre compte » de la même taille que l'écran de connexion */
#auth-screen .auth-card.mode-inscription{padding:18px 24px!important}
#auth-screen .mode-inscription .brand.auth-brand{margin-bottom:8px!important;padding-top:7px!important;padding-bottom:7px!important}
#auth-screen .mode-inscription .brand.auth-brand .auth-logo{width:46px!important;height:30px!important}
#auth-screen .mode-inscription .brand.auth-brand b{font-size:22px!important;line-height:1.1!important}
#auth-screen .mode-inscription .brand.auth-brand small{font-size:10px!important}
#auth-screen .mode-inscription .revival-langues{margin-top:4px!important;gap:4px!important}
#auth-screen .mode-inscription .revival-langues .langues-titre{display:none!important}
#auth-screen .mode-inscription .revival-langues button,#auth-screen .mode-inscription .revival-langues a{font-size:11px!important;padding:2px 8px!important}
#auth-screen .mode-inscription #auth-title{font-size:21px!important;margin-top:9px!important;margin-bottom:0!important}
#auth-screen .auth-card.mode-inscription>p.muted{display:none!important}
#auth-screen .mode-inscription #auth-form{display:grid;grid-template-columns:1fr 1fr;column-gap:10px;align-items:end}
#auth-screen .mode-inscription #auth-form>*{grid-column:1/-1}
#auth-screen .mode-inscription #auth-form>label:first-child,#auth-screen .mode-inscription #auth-form>#display-row{grid-column:auto;min-width:0}
#auth-screen .mode-inscription #auth-form>label{margin-top:8px!important;font-size:12px!important}
#auth-screen .mode-inscription #auth-form input:not([type=checkbox]){margin-top:4px!important;padding:8px 11px!important;font-size:13px!important;border-radius:10px!important}
#auth-screen .mode-inscription #remember-login-row.hidden{display:none!important}
#auth-screen .mode-inscription .register-avatar-row{grid-template-columns:44px 1fr!important;gap:4px 9px!important;margin-top:10px!important;padding:7px 9px!important}
#auth-screen .mode-inscription .register-avatar-row>.register-avatar-preview{width:44px!important;height:44px!important;grid-row:span 2}
#auth-screen .mode-inscription .register-avatar-row>div:not(.register-avatar-preview) small{display:none!important}
#auth-screen .mode-inscription .register-avatar-row b{font-size:12px!important}
#auth-screen .mode-inscription .register-avatar-row>button,#auth-screen .mode-inscription .register-avatar-row>.avatar-photo-label{grid-column:2!important;display:inline-flex!important;justify-self:start;align-items:center;margin:0!important;padding:4px 9px!important;font-size:11px!important;line-height:1.3!important;white-space:nowrap}
#auth-screen .mode-inscription .register-avatar-row>.avatar-photo-label{grid-column:2!important;margin-left:0!important}
#auth-screen .mode-inscription .cgu-row{margin:9px 0 0!important;padding:7px 10px!important}
#auth-screen .mode-inscription .cgu-row label.cgu-label{font-size:11px!important;line-height:1.35!important;gap:7px!important}
#auth-screen .mode-inscription .cgu-row .cgu-lire{margin:3px 0 0 25px!important;font-size:12px!important}
#auth-screen .mode-inscription #auth-submit{margin-top:10px!important;padding-top:9px!important;padding-bottom:9px!important;font-size:15px!important}
#auth-screen .mode-inscription .auth-bottom{margin-top:8px!important}
#auth-screen .mode-inscription #auth-error:empty{display:none}
#auth-screen .mode-inscription #auth-form input:not([type=checkbox]){height:37px!important}
#auth-screen .mode-inscription #auth-submit{height:42px!important}
#auth-screen .mode-inscription .cgu-row label.cgu-label{margin:0!important}
#auth-screen .mode-inscription .register-avatar-row{grid-template-columns:44px auto 1fr!important}
#auth-screen .mode-inscription .register-avatar-row>div:not(.register-avatar-preview){grid-column:2/-1!important;min-width:0}
#auth-screen .mode-inscription .register-avatar-row>button{grid-column:2!important}
#auth-screen .mode-inscription .register-avatar-row>.avatar-photo-label{grid-column:3!important}
#auth-screen .mode-inscription #auth-form input:not([type=checkbox]){height:40px!important}
#auth-screen .mode-inscription #auth-form>label{margin-top:10px!important}
#auth-screen .mode-inscription .register-avatar-row{grid-template-columns:44px 1fr 1fr!important;gap:5px 6px!important}
#auth-screen .mode-inscription .register-avatar-row>button,#auth-screen .mode-inscription .register-avatar-row>.avatar-photo-label{justify-self:stretch!important;justify-content:center;text-align:center;white-space:normal!important;min-width:0}

/* REVIVAL_SIGNALER_V1 */
.dialog-signaler{width:min(430px,92vw)}
.dialog-signaler h3{margin:0 0 8px;color:#b5462f}
.dialog-signaler label{display:block;margin-top:10px;font-size:13px;font-weight:600;color:#3e5a6d}
.dialog-signaler select,.dialog-signaler textarea{display:block;width:100%;margin-top:5px;padding:8px 10px;border:1px solid #bed9e8;border-radius:10px;background:#fff;color:#24384a;font:inherit;font-size:13px;resize:vertical}
.dialog-signaler .signaler-bonne-foi{display:flex;align-items:flex-start;gap:8px;font-weight:500}
.dialog-signaler .signaler-bonne-foi input{margin-top:2px;flex:none}
.signaler-message{margin:0 0 4px;padding:8px 10px;border-left:3px solid #e2a08f;background:#fff6f2;border-radius:6px;font-size:13px;color:#5b4036;overflow-wrap:anywhere}
.signaler-info{margin:10px 0 0;font-size:12px;color:#647e90;line-height:1.4}

/* REVIVAL_SIGNALER_AUTORITES_V1 */
.signaler-autorites{margin-top:10px;padding:9px 11px;border:1px solid #cfe0ec;border-radius:10px;background:#f4f9fd;font-size:12.5px}
.signaler-autorites p{margin:0 0 6px;color:#3e5a6d}
.signaler-autorites a{display:block;margin:4px 0;color:#1c62a8;font-weight:600;text-decoration:none}
.signaler-autorites a:hover{text-decoration:underline}
.signaler-autorites .signaler-urgence{margin:6px 0 0;color:#b5462f;font-weight:600}

/* REVIVAL_MESSAGE_PERSO_ENTREE_V1 */
.message-perso-panneau .message-perso-valider{display:block;width:100%;margin-top:8px;padding:7px 10px;border:0;border-radius:9px;background:linear-gradient(#3aa8e0,#1f7fc0);color:#fff;font-weight:700;font-size:13px;cursor:pointer}
.message-perso-panneau .message-perso-valider:hover{filter:brightness(1.07)}
.message-perso-panneau .message-perso-valider{position:sticky;bottom:0;box-shadow:0 -6px 10px rgba(255,255,255,.9)}

/* REVIVAL_VOIR_MOT_DE_PASSE_V1 */
label.avec-voir-mdp{position:relative}
label.avec-voir-mdp>.voir-mdp{position:absolute;top:0;right:0;display:flex;align-items:center;gap:5px;font-size:12px;font-weight:500;color:#4f6f86;cursor:pointer;line-height:1.2}
.voir-mdp input{width:auto!important;height:auto!important;margin:0!important;padding:0!important;cursor:pointer}
[dir=rtl] label.avec-voir-mdp>.voir-mdp,html[lang=ar] label.avec-voir-mdp>.voir-mdp{right:auto;left:0}

/* REVIVAL_GROUPE_EN_HAUT_V1 : au passage de la souris, le bouton de groupe (Famille, Amis…) s'affiche en haut à droite,
   sur la ligne du pseudo, sans réduire la place du petit message en dessous */
#contact-list .contact-row{position:relative}
#contact-list .contact-row:hover .contact-group-select,#contact-list .contact-row:focus-within .contact-group-select{position:absolute!important;top:5px;right:34px;z-index:3;width:auto!important;min-width:0!important;max-width:130px;height:22px;padding:0 4px!important;font-size:11.5px!important;line-height:20px;margin:0!important;box-shadow:0 2px 6px #1d3a5a26}

/* REVIVAL_BOUTONS_RONDS_APPEL_V1 : boutons ronds de la fenêtre d'appel (texte en petit sous le rond) ; allumé = bleu avec reflet, coupé = noir sans reflet */
#call-panel button.rb:not(.hidden){display:inline-flex!important;flex-direction:column;align-items:center;justify-content:flex-start}
#call-panel button.rb,#call-panel #accept-call.rb:not(.hidden),#call-panel #hangup-call.rb{gap:5px;flex:0 0 auto!important;min-width:0!important;width:auto!important;max-width:84px;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;font-size:0!important;color:#3b5368!important;animation:none!important;cursor:pointer}
#call-panel button.rb::after{content:attr(data-libelle);font-size:11px;font-weight:700;line-height:1.2;text-align:center;color:#3b5368;max-width:84px}
#call-panel button.rb .rb-ico{width:46px;height:46px;flex:none;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 50% 30%,#fff 0,#f2f6fa 60%,#e2e9f1 100%);border:3px solid #fff;box-shadow:0 0 0 1px #c6d3e0,0 0 10px 2px #7fd6f066,0 3px 8px #1d3a5a24;color:#46596b;transition:transform .12s,box-shadow .12s}
#call-panel button.rb:hover .rb-ico{transform:translateY(-1px);box-shadow:0 0 0 1px #9fc3dc,0 0 14px 4px #7fd6f099,0 4px 10px #1d3a5a2e}
#call-panel button.rb:active .rb-ico{transform:scale(.95)}
#call-panel button.rb:focus-visible{outline:none}
#call-panel button.rb:focus-visible .rb-ico{outline:2px solid #2394cf;outline-offset:3px}
#call-panel button.rb:disabled .rb-ico{opacity:.55}
#call-panel button.rb svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#call-panel button.rb svg .plein{fill:currentColor;stroke:none}
#call-panel button.rb[data-ico$=Coupe] .rb-ico,#call-panel button.rb[data-ico$=Coupee] .rb-ico{color:#11161c;background:radial-gradient(circle at 50% 30%,#fff 0,#eceff2 60%,#d9dee4 100%);box-shadow:0 0 0 1px #b9c1ca,0 3px 8px #1d3a5a22}
#call-panel button.rb[data-ico=micro] .rb-ico,#call-panel button.rb[data-ico=camera] .rb-ico,#call-panel button.rb[data-ico=hp] .rb-ico{color:#1f7fb8}
#call-panel #toggle-apercu.rb.apercu-actif .rb-ico{color:#9a6a00;box-shadow:0 0 0 1px #e3cf8e,0 0 10px 2px #ffd76a77,0 3px 8px #1d3a5a22}
#call-panel #ajouter-personne.rb .rb-ico{color:#1f8a40}
#call-panel #accept-call.rb .rb-ico,#call-panel #hangup-call.rb .rb-ico{width:56px;height:56px;color:#fff}
#call-panel #accept-call.rb .rb-ico{background:radial-gradient(circle at 50% 30%,#6fdc8c 0,#2fb357 60%,#1f8f42 100%);box-shadow:0 0 0 1px #c6d3e0,0 0 14px 4px #43c46f88,0 3px 8px #1d3a5a24;animation:rb-pulse 1.2s ease-in-out infinite}
#call-panel #hangup-call.rb .rb-ico{background:radial-gradient(circle at 50% 30%,#ff7a6e 0,#e8352a 60%,#c41a12 100%);box-shadow:0 0 0 1px #c6d3e0,0 0 14px 4px #ff6a4a66,0 3px 8px #1d3a5a24}
#call-panel #accept-call.rb svg,#call-panel #hangup-call.rb svg{width:27px;height:27px}
#call-panel .call-top .dialog-actions{justify-content:center!important;gap:30px!important;padding:2px 0}
#call-panel .mes-medias{justify-content:center;align-items:flex-start;gap:10px 8px!important;padding:4px 0 2px}
@keyframes rb-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@media (prefers-reduced-motion:reduce){#call-panel #accept-call.rb .rb-ico{animation:none}}

/* REVIVAL_BOUTONS_HARMONISES_V1 : boutons ronds partout, assortis aux boutons d'appel (rond blanc, liseré, reflet bleu au survol).
   Les couleurs d'état (enregistrement en rouge, dictée en violet, traduction active en bleu) sont gardées. */
/* haut de la discussion : appel, webcam, test vidéo, retour, Traduire */
.chat-tools .chat-action:not(.bouton-traduire),.chat-header .chat-back{width:44px!important;height:44px!important;min-width:44px!important;padding:0!important;display:grid!important;place-items:center;border-radius:50%!important;background:radial-gradient(circle at 50% 30%,#fff 0,#f3f7fb 60%,#e3eaf2 100%)!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #c6d3e0,0 3px 8px #1d3a5a1f!important;color:#1f7fb8!important;transition:transform .12s,box-shadow .12s}
.chat-tools .chat-action.bouton-traduire{height:44px!important;border-radius:22px!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #c6d3e0,0 3px 8px #1d3a5a1f!important;transition:transform .12s,box-shadow .12s}
.chat-tools .chat-action:hover,.chat-header .chat-back:hover{transform:translateY(-1px)!important;filter:none!important;box-shadow:0 0 0 1px #9fc3dc,0 0 12px 3px #7fd6f088,0 4px 10px #1d3a5a26!important}
.chat-tools .chat-action:not(.bouton-traduire) svg{width:22px!important;height:22px!important;stroke-width:1.9!important}
/* barre d'écriture : outils ronds blancs, icône de couleur ; Envoyer en bleu */
.composer .composer-tool,.composer .color-tool{width:42px!important;height:42px!important;min-width:42px!important;padding:0!important;border-radius:50%!important;background:radial-gradient(circle at 50% 30%,#fff 0,#f3f7fb 60%,#e3eaf2 100%)!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #c6d3e0,0 2px 6px #1d3a5a1a!important;transition:transform .12s,box-shadow .12s}
.composer .composer-tool:hover,.composer .color-tool:hover{transform:translateY(-1px)!important;filter:none!important;box-shadow:0 0 0 1px #9fc3dc,0 0 12px 3px #7fd6f088,0 4px 10px #1d3a5a26!important}
.composer .composer-tool svg{width:22px!important;height:22px!important}
.composer #attach-file-button,.composer #voice-record-button{color:#1f7fb8!important}
.composer #emoji-toggle{color:#c98400!important}
.composer #dictation-button{color:#6f4fd6!important}
.composer #wizz-button{color:#e08e00!important}
.composer .color-tool{color:#233344!important}
.composer #voice-record-button.recording{background:linear-gradient(180deg,#ff9b9b,#e85c69)!important;color:#fff!important}
.composer #dictation-button.active{background:linear-gradient(180deg,#9b7bf0,#6f4fd6)!important;color:#fff!important}
.composer #dictation-button.listening{box-shadow:0 0 0 1px #c6d3e0,0 0 0 4px #8e6be855!important}
.composer .send{width:46px!important;height:46px!important;min-width:46px!important;padding:0!important;border-radius:50%!important;background:radial-gradient(circle at 50% 30%,#74cbf2 0,#2394cf 60%,#1a72aa 100%)!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #9fc3dc,0 3px 8px #1677a344!important;color:#fff!important;transition:transform .12s,box-shadow .12s}
.composer .send:hover{transform:translateY(-1px)!important;filter:none!important;box-shadow:0 0 0 1px #7fb6d8,0 0 12px 3px #7fd6f099,0 4px 10px #1677a355!important}
.composer .send svg{width:21px!important;height:21px!important;stroke:#fff!important}
/* petit « ⋯ » des contacts : rond léger, bien visible au survol */
.contact-manage-button{width:28px!important;height:28px!important;border-radius:50%!important;display:grid!important;place-items:center;padding:0 0 3px!important;font-size:18px!important;color:#3d6f87!important;transition:background .12s,box-shadow .12s}
.contact-manage-button:hover,.contact-manage-button:focus-visible{background:#fff!important;box-shadow:0 0 0 1px #c6d3e0,0 0 10px 2px #7fd6f077;outline:none}
/* bannière : courrier, sons et déconnexion de la même taille, ronds */
.window-actions #mail-button,#sound-toggle,#logout{width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center;background:radial-gradient(circle at 50% 30%,#fff 0,#eef6fb 60%,#d9e8f2 100%)!important;border:2px solid #ffffffcc!important;box-shadow:0 2px 6px #0b2b4a33!important;color:#1f6f9e!important}
#sound-toggle{font-size:19px!important}
#logout svg{width:19px!important;height:19px!important}
.window-actions #mail-button:hover,#sound-toggle:hover,#logout:hover{transform:translateY(-1px);filter:none!important;box-shadow:0 0 10px 2px #bfeaff99,0 3px 8px #0b2b4a40!important}
/* croix de fermeture des fenêtres : ronde */
.dialog-close{width:32px;height:32px;border-radius:50%!important;display:grid;place-items:center;padding:0 0 2px;transition:background .12s}
.dialog-close:hover{background:#e6f1f8!important}
.dialog-close:focus{outline:none}
.dialog-close:focus-visible{outline:none;background:#e6f1f8!important;box-shadow:0 0 0 2px #2394cf55}

/* REVIVAL_BOUTONS_LISTE_RONDS_V1 : boutons de la fenêtre principale (près du pseudo, à côté de « Favoris », smiley du message perso)
   en ronds blancs avec dessins au trait, comme le reste de l'interface. Le texte d'origine est caché (titres et lecture d'écran gardés). */
#email-settings-button, #profile-avatar-choose, .message-perso-icones, #removed-contacts-button, #blocked-contacts-button, #create-contact-group, #add-contact{width:32px!important;height:32px!important;min-width:32px!important;padding:0!important;border-radius:50%!important;font-size:0!important;color:transparent!important;background:radial-gradient(circle at 50% 30%,#fff 0,#f3f7fb 60%,#e3eaf2 100%)!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #c6d3e0,0 2px 6px #1d3a5a1a!important;transition:transform .12s,box-shadow .12s;display:inline-grid;place-items:center;vertical-align:middle}
#email-settings-button::before, #profile-avatar-choose::before, .message-perso-icones::before, #removed-contacts-button::before, #blocked-contacts-button::before, #create-contact-group::before, #add-contact::before{content:"";width:18px;height:18px;-webkit-mask:var(--rb-ico) center/contain no-repeat;mask:var(--rb-ico) center/contain no-repeat;background:var(--rb-col)}
#email-settings-button:hover, #profile-avatar-choose:hover, .message-perso-icones:hover, #removed-contacts-button:hover, #blocked-contacts-button:hover, #create-contact-group:hover, #add-contact:hover{transform:translateY(-1px)!important;filter:none!important;box-shadow:0 0 0 1px #9fc3dc,0 0 10px 3px #7fd6f088,0 3px 8px #1d3a5a26!important}
#email-settings-button:focus-visible, #profile-avatar-choose:focus-visible, .message-perso-icones:focus-visible, #removed-contacts-button:focus-visible, #blocked-contacts-button:focus-visible, #create-contact-group:focus-visible, #add-contact:focus-visible{outline:2px solid #2394cf;outline-offset:2px}
#email-settings-button{--rb-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2.5'/%3E%3Cpath d='m4 7.5 8 6 8-6'/%3E%3C/svg%3E");--rb-col:#1f7fb8}
#profile-avatar-choose{--rb-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E");--rb-col:#1f7fb8}
.message-perso-icones{--rb-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 14.2s1.2 2 3.5 2 3.5-2 3.5-2M9 9.5h.01M15 9.5h.01'/%3E%3C/svg%3E");--rb-col:#c98400}
#removed-contacts-button{--rb-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E");--rb-col:#1f7fb8}
#blocked-contacts-button{--rb-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m5.6 5.6 12.8 12.8'/%3E%3C/svg%3E");--rb-col:#c8372f}
#create-contact-group{--rb-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 19.5a6 6 0 0 1 12 0'/%3E%3Cpath d='M16 5.2a3.2 3.2 0 0 1 0 6M18 14.2a6 6 0 0 1 3 5.3'/%3E%3C/svg%3E");--rb-col:#1f7fb8}
#add-contact{--rb-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");--rb-col:#1f7fb8}
.message-perso-icones{width:26px!important;height:26px!important;min-width:26px!important;opacity:1!important}
.message-perso-icones:hover{transform:translateY(-50%)!important}
.message-perso-icones[aria-expanded=true]{box-shadow:0 0 0 1px #9fc3dc,0 0 10px 3px #7fd6f088!important}
.message-perso-icones::before{width:16px;height:16px}
/* REVIVAL_BOUTONS_HARMONISES_V1 (correctif) : fenêtre étroite, les 3 ronds de la bannière reprennent la petite taille pour que la croix ne soit pas coupée */
@media(max-width:560px){
  .window-actions #mail-button,.window-actions #sound-toggle,.window-actions #logout{flex:0 0 28px!important;width:28px!important;height:28px!important;min-width:28px!important;border-width:1.5px!important}
  .window-actions #sound-toggle{font-size:14px!important}
  .window-actions #logout svg,.window-actions #mail-button svg{width:15px!important;height:15px!important}
}

/* REVIVAL_GROUPES_VISIBLES_V1 : barres des groupes (Amis, Famille…) plus visibles : liseré bleu à gauche, fond légèrement bleuté, nom plus foncé, survol éclairé */
#contact-list .contact-group-heading{position:relative;background:linear-gradient(90deg,#cfe4f6 0,#e0eef9 50%,#edf5fc 100%)!important;box-shadow:inset 0 0 0 1px #c9d9e8,0 1px 3px #1d3a5a14!important;padding-left:16px!important;transition:background .15s,box-shadow .15s}
#contact-list .contact-group-heading::before{content:"";position:absolute;left:5px;top:7px;bottom:7px;width:5px;border-radius:5px;background:linear-gradient(180deg,#4fb3e6,#1f7fb8)}
#contact-list .contact-group-heading:hover{background:linear-gradient(90deg,#c2ddf4 0,#d8eaf8 50%,#e9f3fc 100%)!important;box-shadow:inset 0 0 0 1px #a9c9e2,0 0 10px 1px #7fd6f055!important}
#contact-list .contact-group-heading,#contact-list .contact-group-heading > :not(small){color:#0b2a4a}
#contact-list .contact-group-heading .group-arrow{color:#1f7fb8!important}

/* REVIVAL_AVATARS_V2 */
.avatar canvas.avatar-v2{transform:none!important}
.avatar-option>canvas.avatar-v2{pointer-events:none;user-select:none;-webkit-user-drag:none}

/* REVIVAL_SUPPRIMER_FICHIER_V1 */
.file-delete-button{flex:none;min-width:31px;height:31px;padding:0 7px;border:1px solid #d09a9a;border-radius:9px;background:linear-gradient(180deg,#fff4f4,#f3c9c9);color:#9b2d2d;font-size:15px;line-height:1;cursor:pointer}
.file-delete-button:hover{background:#efb4b4}
.file-delete-button.confirmer{background:#d84a4a;border-color:#a02a2a;color:#fff;font-size:12px;font-weight:700}
.file-delete-button:disabled{opacity:.5;cursor:default}

/* REVIVAL_CONNEXION_ANIM_CSS_V1 : ecran anime Connexion... */
#revival-connexion-anim{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;font:15px system-ui,'Segoe UI',sans-serif;color:#2b4a5e}
#revival-connexion-anim .rca-ring{position:relative;width:112px;height:112px;display:flex;align-items:center;justify-content:center}
#revival-connexion-anim .rca-ring:before{content:"";position:absolute;inset:0;border:3px solid rgba(43,86,111,.2);border-top-color:#2b8fd0;border-radius:50%;animation:rca-r 1.1s linear infinite}
#revival-connexion-anim img{width:72px;height:72px;animation:rca-p 1.4s ease-in-out infinite}
#revival-connexion-anim button{margin-top:6px;padding:8px 26px;border:2px solid #2b8fd0;border-radius:999px;background:#fff;color:#2b6eaa;font:600 14px system-ui,'Segoe UI',sans-serif;cursor:pointer}
#revival-connexion-anim button:hover{background:#eaf4fc}
@keyframes rca-r{to{transform:rotate(360deg)}}
#revival-connexion-reste{font-size:13px;color:#5b7486;min-height:16px}
@keyframes rca-p{0%,100%{transform:scale(.88);opacity:.8}50%{transform:scale(1.12);opacity:1}}
/* REVIVAL_PERTE_CONNEXION_V1 */
#revival-banniere-connexion{position:fixed;top:0;left:0;right:0;z-index:2147483000;text-align:center;padding:8px 12px;font:600 14px "Segoe UI",system-ui,sans-serif;color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.35)}
#revival-banniere-connexion.rbc-perdu{background:linear-gradient(90deg,#b3261e,#d9534f)}
#revival-banniere-connexion.rbc-ok{background:linear-gradient(90deg,#2e7d32,#43a047)}
#revival-banniere-connexion.rbc-cache{display:none}
#revival-banniere-connexion span{vertical-align:middle}
#revival-banniere-annuler{margin-left:14px;padding:3px 14px;border:1px solid rgba(255,255,255,.85);border-radius:14px;background:rgba(255,255,255,.18);color:#fff;font:600 13px "Segoe UI",system-ui,sans-serif;cursor:pointer}
#revival-banniere-annuler:hover{background:rgba(255,255,255,.34)}
/* REVIVAL_ECHEC_CONNEXION_V1 */
#revival-connexion-anim.rca-echec .rca-ring:before{animation:none;border-color:rgba(217,83,79,.35);border-top-color:#d9534f}
#revival-connexion-anim.rca-echec img{animation:none;opacity:.55;filter:grayscale(.6)}
#revival-connexion-anim.rca-echec > div:nth-child(2){font-size:20px;font-weight:700;color:#b3261e}
#revival-connexion-anim.rca-echec #revival-connexion-reste{max-width:360px;text-align:center;line-height:1.4}
#revival-connexion-reessayer{background:#2b8fd0!important;color:#fff!important}
#revival-connexion-reessayer:hover{background:#2479b3!important}

/* REVIVAL_ABSENCE_V1 */
.away-message-button{margin-left:6px;padding:2px 6px;border:1px solid #8fb4cf;border-radius:7px;background:#f4faff;cursor:pointer;font-size:14px;line-height:1.2}
.away-message-button:hover{background:#e3f3ff;border-color:#2394cf}
.away-message-button.actif{background:#fff3c4;border-color:#d9a400}
.away-message-panneau{position:fixed;z-index:9999;width:310px;padding:12px;border:1px solid #8fb4cf;border-radius:12px;background:#fff;color:#1f4f75;box-shadow:0 8px 28px #0003;display:flex;flex-direction:column;gap:7px;font-size:13px}
.away-message-panneau.hidden{display:none}
.away-message-panneau p{margin:0;color:#56708f;font-size:12px}
.away-message-panneau textarea{width:100%;box-sizing:border-box;padding:7px 9px;border:1.5px solid #6fb8d8;border-radius:9px;font:inherit;resize:none;outline:none}
.away-message-panneau textarea:focus{border-color:#2394cf}
.away-message-compteur{align-self:flex-end;color:#56708f}
.away-message-actions{display:flex;gap:8px;justify-content:flex-end}
.away-message-actions button{padding:5px 12px;border:1px solid #8fb4cf;border-radius:8px;background:#f4faff;color:#1f4f75;cursor:pointer}
.away-message-actions button:first-child{background:#2394cf;border-color:#2394cf;color:#fff}
.bubble.auto-reply .outgoing-text{font-style:italic;color:#5b6f86}
