/* V125.10.42 : ergonomie commune des conversations, PC et mobile/PWA. */
.bely42-thread-head{flex:0 0 auto;min-width:0;display:grid;gap:7px;margin:0 0 7px!important}
.bely42-title-line{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0}
.bely42-thread-head h2{margin:0!important;font-size:clamp(18px,2.1vw,24px)!important;color:#eff8ff}
.bely42-thread-head h3{margin:0!important;color:#6edcf4;font-size:clamp(16px,1.7vw,21px);overflow-wrap:anywhere}
.bely42-thread-head a{white-space:nowrap;flex:none}
.bely42-thread-scroll{flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;scroll-behavior:auto!important;align-content:start!important;scrollbar-color:#3e7895 transparent;scrollbar-width:thin;padding:5px 4px 12px!important;margin:0!important}
.bely42-thread-scroll .bely-chat-message,.bely42-thread-scroll .bely-mob-bubble{touch-action:pan-y!important;max-width:88%!important}
.bely42-composer{flex:0 0 auto!important;min-width:0!important;max-width:100%!important;position:relative!important;margin:0!important;padding:6px 0 0!important;box-shadow:none!important;border:none!important;background:transparent!important}
.bely42-composer .bely42-compose-row{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;padding:5px 7px 5px 9px;border:1px solid #3e9fbf;border-radius:17px;background:#0b263b;box-shadow:0 0 12px #1ed3f215;min-height:52px}
.bely42-composer .bely42-input-slot{flex:1 1 0;min-width:0}
.bely42-composer .bely42-input-slot textarea{display:block!important;width:100%!important;min-width:0!important;min-height:42px!important;height:42px;max-height:108px!important;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:#eaf8ff!important;padding:8px 6px!important;font-size:clamp(14px,1.3vw,16px)!important;line-height:1.4!important;resize:none!important;margin:0!important;overflow-y:auto!important}
.bely42-composer .bely42-icon,.bely42-composer .bely42-send,.bely42-composer .bely42-icon.ai-correct-button,.bely42-composer .bely42-icon.btn{flex:0 0 34px!important;width:34px!important;min-width:34px!important;height:36px!important;min-height:36px!important;max-height:36px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1px solid #356b83!important;border-radius:10px!important;background:#12354d!important;color:#e9f7ff!important;padding:5px!important;margin:0!important;line-height:1!important;cursor:pointer;box-shadow:none!important}
.bely42-composer .bely42-ai{color:#ffd88e!important}
.bely42-composer .bely42-send,.bely42-composer .bely42-send.btn,.bely42-composer .bely42-send.mini-button{background:#64dff6!important;color:#061e2d!important;border-color:#79eeff!important}
.bely42-composer .bely42-send-wrap{display:contents!important;margin:0!important;padding:0!important}
.bely42-composer .bely42-send-wrap[hidden]{display:none!important}
.bely42-composer .bely-media-compose{border:none!important;background:none!important;margin:0!important;padding:0!important;min-width:0!important}
.bely42-composer .bely-media-toolbar{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.bely42-composer .bely-media-preview{display:flex;gap:7px;max-width:100%;flex-wrap:wrap;margin:0 0 6px!important}
.bely42-composer .bely-media-preview:empty{display:none!important}
.bely42-composer .ai-editor-actions:empty,.bely42-composer .actions:empty,.bely42-composer .field:empty{display:none!important}
.bely42-composer .ai-status:empty{display:none!important}
.bely42-composer .bely-hint-reuse-trigger{display:block;max-width:100%;margin:0 0 6px!important;white-space:normal;font-size:clamp(12px,3.2vw,15px)}
.bely42-composer .bely42-suggestion{position:absolute!important;bottom:calc(100% + 8px);left:0;right:0;max-height:min(55dvh,450px);overflow-y:auto;z-index:8;background:#0a2c36!important;border:1px solid #51d8c5!important;padding:12px!important;border-radius:14px!important;box-shadow:0 8px 28px #0008}
.bely42-composer .bely42-suggestion[hidden]{display:none!important}
.bely42-treatment{flex:0 0 auto;text-align:right;line-height:1.2;margin:2px 0 0!important}
.bely42-treatment form{display:inline;margin:0!important}
.bely42-treatment button{border:0!important;background:none!important;padding:5px 4px!important;color:#afdeee!important;text-decoration:underline;text-underline-offset:3px;font-size:12px!important;min-height:28px!important;cursor:pointer}
.bely42-treatment span{font-size:12px;color:#8ce9bc}
.bely42-edit-toggle{flex:none;align-self:start;border:1px solid #3c7e9c;border-radius:10px;background:#113048;color:#a4e5f5;padding:8px 11px;cursor:pointer;margin:5px 0!important;font-weight:700}
.bely42-edit-form[hidden]{display:none!important}
/* Administration desktop : lecteur et liste occupent la hauteur visible, sans scroll de page dans le fil. */
@media (min-width:760px){
 .bely42-desktop-thread{display:flex!important;flex-direction:column!important;min-width:0!important;height:var(--bely42-desktop-height,65dvh)!important;min-height:350px;overflow:hidden!important}
 .bely42-desktop-thread .bely-thread-history{max-height:none!important}
 .bely-mailbox-layout:has(.bely42-desktop-thread) .bely-mailbox-sidebar,
 .bely-inbox-layout:has(.bely42-desktop-thread) .bely-inbox-sidebar{max-height:var(--bely42-desktop-height,70dvh);overflow-y:auto}
 .bely-inbox-reader.bely42-desktop-thread .bely-hint-chat{margin:0!important}
 .bely42-hint-dock{flex:0 0 auto;display:grid;gap:6px}
 .bely42-hint-dock .bely42-composer{width:100%!important;max-width:100%!important}
 .bely42-web-team-thread{display:flex;flex-direction:column;height:min(68dvh,670px);min-height:360px;overflow:hidden}
 .bely42-web-team-thread .bely42-thread-scroll{max-height:none!important}
}
/* Dans Indices PC, panneau latéral strictement harmonisé avec Messages. */
.bely-hint-inbox .bely-inbox-sidebar{padding:20px!important}
.bely-hint-inbox .bely42-hint-team-search{display:grid!important;gap:7px!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:11px!important;border:1px solid #45c9e8!important;border-radius:12px!important;background:#091c30!important;box-sizing:border-box!important;margin:0 0 20px!important}
.bely-hint-inbox .bely42-hint-team-search label{font-size:13px!important;font-weight:750!important;color:#edf9ff!important}
.bely-hint-inbox .bely42-hint-team-search input{width:100%!important;min-width:0!important;max-width:100%!important;min-height:43px!important;padding:9px 12px!important;border:1px solid #397d98!important;border-radius:9px!important;background:#10283d!important;color:#fff!important;box-sizing:border-box!important}
.bely-hint-inbox .bely42-hint-team-search:focus-within{box-shadow:0 0 0 2px #30cbec33,0 0 16px #27bade44}
.bely-hint-inbox .bely-inbox-group{margin:0 0 17px!important}
.bely-hint-inbox .bely-inbox-group h3{display:flex!important;justify-content:space-between!important;align-items:center!important;font-size:15px!important;margin:0 0 9px!important;gap:8px!important}
.bely-hint-inbox .bely-inbox-group h3 span{display:grid!important;place-items:center!important;width:28px!important;height:28px!important;min-width:28px!important;border-radius:50%!important;background:#192b39!important;font-size:15px!important;font-weight:800!important}
.bely-hint-inbox .bely-inbox-team{padding:10px 12px!important;border:1px solid #27516b!important;border-radius:10px!important;background:#0f273a!important;margin-bottom:6px!important;min-width:0}
.bely-hint-inbox .bely-inbox-team strong{font-size:13px!important}
/* PWA (mobile et aperçu dans navigateur) : occulter la masthead dans les conversations seulement. */
body.bely42-thread-mode{overflow:hidden!important}
body.bely42-thread-mode main.app{padding:0!important;max-width:none!important;width:100%!important;margin:0!important}
body.bely42-thread-mode .masthead,body.bely42-thread-mode .chiprow,body.bely42-thread-mode .installbar,body.bely42-thread-mode .footerline,body.bely42-thread-mode main.app>.sent,body.bely42-thread-mode main.app>.error{display:none!important}
body.bely42-thread-mode [data-bely42-thread]{position:fixed!important;z-index:15!important;left:0!important;right:0!important;top:var(--bely42-pwa-top,0px)!important;bottom:auto!important;height:calc(var(--bely42-pwa-height,100dvh) - var(--bely42-pwa-bottom,84px) - var(--bely42-pwa-top,0px))!important;min-height:0!important;max-height:none!important;display:flex!important;flex-direction:column!important;gap:6px!important;overflow:hidden!important;max-width:700px!important;width:auto!important;margin:0 auto!important;padding:12px clamp(12px,4vw,20px)!important;border-radius:0!important}
body.bely42-thread-mode [data-bely42-thread] .bely42-thread-head{display:grid!important;gap:6px!important}
body.bely42-thread-mode [data-bely42-thread] .bely42-title-line a{font-size:13px!important;min-height:36px!important;padding:7px 10px!important}
body.bely42-thread-mode [data-bely42-thread] .bely42-thread-scroll{flex:1 1 0!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;margin:0!important;padding-bottom:8px!important}
body.bely42-thread-mode [data-bely42-thread] .bely-mob-chat{display:flex!important;flex-direction:column!important;gap:10px!important;align-content:start!important;overflow-y:auto!important;touch-action:pan-y!important;overscroll-behavior:contain!important}
body.bely42-thread-mode [data-bely42-thread] .bely-mob-bubble{flex:none}
body.bely42-thread-mode [data-bely42-thread] .bely42-composer{margin:0!important;padding:0!important}
body.bely42-thread-mode [data-bely42-thread] .bely42-composer .bely42-compose-row{padding:5px!important;gap:3px!important}
body.bely42-thread-mode [data-bely42-thread] .bely42-icon,body.bely42-thread-mode [data-bely42-thread] .bely42-send{flex-basis:34px!important;width:34px!important;min-width:34px!important}
body.bely42-thread-mode [data-bely42-thread] .bely42-message-list-title,body.bely42-thread-mode [data-bely42-thread] .bely-mob-message-tabs,body.bely42-thread-mode [data-bely42-thread] .bely42-new-message-link{display:none!important}
body.bely42-thread-mode [data-bely42-thread] .bely42-mobile-team-name{margin:0!important;color:#6edcf4!important}
body.bely42-thread-mode [data-bely42-thread] .bely-mob-detail-header{margin:0!important;min-height:40px!important}
body.bely42-thread-mode [data-bely42-thread] .bely-mob-puzzles>.bely-mob-detail-header h2{margin:0!important}
body.bely42-thread-mode .nav{z-index:20!important}
/* L'envoi ne provoque pas d'étirement de tous les autres blocs. */
.bely42-composer .bely-media-toolbar .bely-photo-limit{display:none!important}

/* Retirer les anciens intitulés devenus redondants avec la barre compacte. */
.bely42-composed .ai-editor>label.field:not(:has(textarea)),.bely42-composed .ai-text-editor>label.field:not(:has(textarea)){display:none!important}
.bely42-composed .bely41-reply-footer{margin:3px 0 0!important;min-height:0!important;display:flex!important;justify-content:flex-end!important}
.bely42-composed .bely41-reply-treatment .mini-button{background:none!important;border:0!important;color:#b6dfe9!important;padding:4px!important;margin:0!important;min-height:24px!important;font-size:12px!important;font-weight:500!important;text-decoration:underline;text-underline-offset:3px;box-shadow:none!important}
.bely42-composed .bely41-reply-treatment .treated-stamp{color:#83efbb!important;font-size:12px!important}
.bely42-composed .bely41-reply-footer .bely42-send{display:none!important}
.bely42-composed .bely42-compose-row .bely42-send{display:inline-flex!important}
