/* 11Simulator — Amis + messagerie (Arène). Fichier autonome : ne modifie pas theme-v2.css / ui-refresh.css. */
.es-soc-tabbadge:empty{display:none}
.es-soc .es-soc-add input{flex:1;min-width:0}
.es-soc .es-msg.bad{color:#e5484d}
.es-soc .es-msg:not(.bad){color:#8fe36a}
.es-soc-row{flex-wrap:wrap}
.es-soc-who b{overflow-wrap:anywhere}
.es-soc-seen{opacity:.75}
.es-soc-seen.on{color:#8fe36a;opacity:1;font-weight:600}
.es-soc-act{display:flex;flex-wrap:wrap;gap:.35rem;justify-content:flex-end}
.es-soc-act button{font-size:.8rem;padding:.35rem .6rem}
.es-soc-chatbtn{position:relative}
.es-soc-badge{display:inline-block;margin-left:.35rem;background:#e5484d;color:#fff;border-radius:999px;padding:0 .4rem;font-size:.7rem;line-height:1.4}
.es-soc-head{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin-bottom:.6rem}
.es-soc-title{flex:1;font-size:1.1rem;overflow-wrap:anywhere}
.es-soc-log{display:flex;flex-direction:column;gap:.4rem;max-height:min(52vh,420px);overflow-y:auto;padding:.4rem .2rem;overscroll-behavior:contain}
.es-soc-bubble{max-width:78%;padding:.45rem .7rem;border-radius:14px;display:flex;flex-direction:column;gap:.15rem}
.es-soc-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.es-soc-bubble small{font-size:.68rem;opacity:.7;align-self:flex-end}
.es-soc-bubble.theirs{align-self:flex-start;border-bottom-left-radius:4px}
.es-soc-bubble.mine{align-self:flex-end;border-bottom-right-radius:4px}
.es-soc-more{align-self:center;margin-bottom:.3rem}
.es-soc-send{display:flex;flex-direction:column;gap:.35rem;margin-top:.6rem}
.es-soc-send textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:2.8rem;font:inherit;padding:.5rem .6rem;border-radius:10px}
.es-soc-sendrow{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
/* sombre (ink, défaut) */
.es-soc-bubble.theirs{background:rgba(255,255,255,.08);color:inherit}
.es-soc-bubble.mine{background:rgba(143,227,106,.2);color:inherit}
.es-soc-send textarea{background:rgba(255,255,255,.05);color:inherit;border:1px solid rgba(255,255,255,.18)}
@media(max-width:640px){.es-soc-act{justify-content:flex-start;width:100%}.es-soc-bubble{max-width:90%}.es-soc-log{max-height:46vh}}

/* ---- en-tête Arène : bouton thème ---- */
.es-arena-hbtns{display:flex;gap:.4rem;align-items:center}
.es-arena-hbtns button{min-width:40px;min-height:40px}
/* ---- onglets : un seul style (icône au-dessus), grille équilibrée ---- */
#esArena .es-arena-tabs{display:grid!important;grid-template-columns:repeat(11,minmax(0,1fr))!important;gap:.4rem!important}
#esArena .es-arena-tabs button,#esArena .es-arena-tabs button.es-tab-minor{position:relative;display:flex!important;flex-direction:column!important;align-items:center;justify-content:center;gap:.15rem;min-width:0;min-height:60px!important;padding:.35rem .15rem!important;font-size:.72rem!important;font-weight:700!important;opacity:1!important;overflow:hidden}
#esArena .es-arena-tabs button i{font-size:1.2rem!important;line-height:1}
#esArena .es-arena-tabs button span{display:block!important;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:720px){#esArena .es-arena-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important}#esArena .es-arena-tabs button:last-child{grid-column:span 2}#esArena .es-arena-tabs button{min-height:54px!important;font-size:.7rem!important}}
@media(max-width:360px){#esArena .es-arena-tabs button{font-size:.62rem!important}#esArena .es-arena-tabs button i{font-size:1.05rem!important}}
/* ---- sombre : contrastes ---- */
.es-soc-seen{opacity:1;color:#b7c3d6}
.es-soc-bubble small{opacity:1;color:#b7c3d6}
.es-soc-count{color:#b7c3d6!important;opacity:1}
#esArena .es-soc-send textarea:focus{outline:2px solid #8fe36a!important;outline-offset:1px;border-color:#8fe36a!important}
#esArena .es-soc-send.bad textarea{border-color:#e5484d!important;outline-color:#e5484d!important}
.es-login .es-login-ctas{display:flex;gap:.5rem;flex-wrap:wrap;margin:.6rem 0}
.es-login .es-form{display:flex;flex-direction:column;gap:.5rem;max-width:420px}
/* ---- clair (paper) : fenêtre Arène crème cohérente ---- */
html[data-theme="paper"] #esArena .es-arena-box{background:#f7f2e6!important;color:#191509!important;border-color:rgba(25,21,9,.16)!important;scrollbar-color:#b9ae92 #efe8d6}
html[data-theme="paper"] #esArena .es-arena-box h2,html[data-theme="paper"] #esArena .es-arena-box h3{color:#191509}
html[data-theme="paper"] #esArena .eyebrow{color:#3d6b1f!important}
html[data-theme="paper"] #esArena .es-arena-tabs button{background:#fffdf7!important;color:#191509!important;border:1px solid rgba(25,21,9,.2)!important}
html[data-theme="paper"] #esArena .es-arena-tabs button.active{background:#e3f1d6!important;border-color:#3d7a1f!important;box-shadow:0 0 0 1px #3d7a1f inset!important}
html[data-theme="paper"] #esArena .es-card,html[data-theme="paper"] #esArena .es-opp{background:#fffdf7!important;color:#191509!important;border:1px solid rgba(25,21,9,.18)!important}
html[data-theme="paper"] #esArena .muted,html[data-theme="paper"] #esArena small,html[data-theme="paper"] #esArena .es-soc-seen,html[data-theme="paper"] #esArena .es-soc-count,html[data-theme="paper"] #esArena .es-soc-bubble small{color:#544c38!important;opacity:1!important}
html[data-theme="paper"] #esArena .es-soc-seen.on,html[data-theme="paper"] #esArena .es-soc .es-msg:not(.bad){color:#2f6b12!important}
html[data-theme="paper"] #esArena .es-soc .es-msg.bad{color:#b4232a!important}
html[data-theme="paper"] #esArena .es-id{color:#3a3324!important}
html[data-theme="paper"] .es-soc-bubble.theirs{background:#ece5d3;color:#191509}
html[data-theme="paper"] .es-soc-bubble.mine{background:#d7ecc6;color:#191509}
html[data-theme="paper"] #esArena .es-soc-send textarea{background:#fff!important;color:#191509!important;border-color:rgba(25,21,9,.25)!important}
html[data-theme="paper"] #esArena .es-soc-send textarea:focus{outline-color:#3d7a1f!important;border-color:#3d7a1f!important}
html[data-theme="paper"] #esArena .es-arena-box ::-webkit-scrollbar{width:10px}
html[data-theme="paper"] #esArena .es-arena-box ::-webkit-scrollbar-thumb{background:#b9ae92;border-radius:8px}
html[data-theme="paper"] #esArena .es-arena-box ::-webkit-scrollbar-track{background:#efe8d6}
