/* V125.10.41 — interface ciblée, sans modification des données. */
/* Adresse actuelle : titre extérieur comme champ nouvelle adresse */
.bely41-email-current{min-width:0;display:flex;flex-direction:column;gap:7px}
.bely41-email-label{display:block;font-size:.85rem;font-weight:700;color:#d2ebf8}
.bely41-email-current .settings-current-value{display:flex!important;align-items:center!important;min-height:50px!important;padding:12px 14px!important;box-sizing:border-box!important;border-radius:12px!important;border:1px solid #294b67!important;background:#0a1d30!important}
.bely41-email-current strong{font-size:.88rem;line-height:1.25!important;overflow-wrap:anywhere}
/* Messagerie PC : sélecteur, sélection multi-équipe, et actions */
.admin-v40 .compose-panel{width:100%!important;max-width:none!important;box-sizing:border-box}
.compose-panel .bely-modes{margin:5px 0 12px!important;padding:3px 4px 4px!important;min-height:0!important}
.compose-panel .bely-modes legend{padding:0 4px 4px!important;font-size:.72rem!important}
.compose-panel .bely-modes label{white-space:nowrap!important;font-size:clamp(.76rem,1.1vw,.93rem)!important;padding:10px 6px!important}
.compose-panel .bely40-picker-head{display:block!important;margin:9px 0 8px!important}
.compose-panel .bely40-picker-search{width:100%;margin:0!important}
.compose-panel .bely40-picker-search input{width:100%!important}
.compose-panel .bely41-picker-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:7px 0 10px;flex-wrap:wrap}
.compose-panel .bely41-picker-actions .bely40-check-all{display:inline-flex!important;flex-direction:row!important;gap:7px!important;min-height:0!important;align-items:center!important;justify-content:flex-start!important;cursor:pointer}
.compose-panel .bely41-picker-actions .bely40-check-all input{order:-1}
.compose-panel .bely41-picker-actions .bely-team-count{margin:0!important;text-align:right}
.compose-panel .bely-team-list{margin-top:3px}
.compose-panel .bely-team-row[hidden]{display:none!important}
.compose-panel .ai-editor-actions,.reply-form .ai-editor-actions{display:flex!important;justify-content:flex-end!important}
/* Répondre : la ligne traité / envoyer ne bouge pas entre deux états */
.reply-form .bely41-reply-footer{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:9px 0 0;flex-wrap:wrap}
.reply-form .bely41-reply-footer>button{width:auto!important;min-width:150px;max-width:100%;margin:0 0 0 auto!important}
.reply-form .bely41-reply-treatment{min-width:0;display:flex;align-items:center}
.reply-form .bely41-reply-treatment .treated-stamp{color:#83efbb;font-weight:700}
/* Tableau de bord */
.admin-overview-card .bely41-overview-button{display:flex!important;align-items:center;justify-content:center;width:max-content;max-width:100%;margin:15px auto 0!important;background:#11384d!important;border:1px solid #5bd5f2!important;border-radius:10px!important;color:#f6fdff!important;box-shadow:0 0 10px #12b7e621!important;font-weight:700;text-align:center;transition:box-shadow .15s,transform .15s}
.admin-overview-card .bely41-overview-button:hover{box-shadow:0 0 18px #32bde66b!important;transform:translateY(-1px)}
.admin-next-puzzle-banner.orange strong{color:#ffbf75!important}
.admin-next-puzzle-banner.red strong{color:#ff8e96!important}
.admin-next-puzzle-banner.pending-review strong{color:#f48cda!important}
.admin-next-puzzle-banner.finished strong{color:#c5a2f9!important}
.bely-activity-card .bely41-pending-red{color:#ff6678!important;font-weight:750}
/* Grille de réutilisation d'indices : hauteur calquée sur le texte (pas de grandes tuiles vides). */
.bely-hint-floating{height:auto!important;max-height:88dvh!important;grid-template-rows:auto minmax(0,auto)!important;align-content:start!important}
.bely-hint-floating-rail{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:max-content!important;align-items:start!important;align-content:start!important;gap:12px!important;max-height:calc(88dvh - 102px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain}
.bely-hint-reuse-card{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;align-self:start!important;display:flex!important;flex-direction:column;gap:9px;padding:14px!important;white-space:normal!important;overflow-wrap:anywhere!important}
.bely-hint-reuse-card span{white-space:pre-wrap!important;overflow-wrap:anywhere!important;max-height:none!important;line-height:1.4!important}
.bely-hint-reuse-card img{max-height:160px;max-width:100%;object-fit:contain}
/* PWA : confort du scroll, plus de scroll imbriqué dans les bulles */
.bely-mob-puzzles.bely-mob-indices{overflow:visible!important;touch-action:pan-y!important}
.bely-mob-puzzles.bely-mob-indices .bely-mob-chat{max-height:none!important;height:auto!important;overflow:visible!important;overscroll-behavior:auto!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important;scroll-behavior:auto!important}
.bely-mob-puzzles.bely-mob-indices .bely-mob-bubble{touch-action:pan-y!important;user-select:text;max-width:93%}
.bely-mob-puzzles.bely-mob-indices .bely40-mobile-edit{margin-top:12px}
.bely-mob-puzzles.bely-mob-indices .bely40-mobile-edit>summary{white-space:normal}
.bely41-mobile-editor .bely-photo-limit{display:none!important}
.bely41-mobile-editor .actions:has([data-correct]){margin-bottom:7px!important}
.bely41-mobile-editor [data-send-initial]{margin-top:9px!important;padding-top:0!important}
.bely41-mobile-editor [data-send-initial]>.btn{min-height:45px}
.bely41-mobile-editor .ai-status:empty{display:none!important}
.bely41-mobile-editor .ai-proposal>textarea{min-height:0!important;resize:vertical!important;overflow-y:hidden!important;line-height:1.5!important}
.bely41-mobile-editor .ai-proposal .actions{margin-top:10px!important}
/* PWA : nouveau message multi-destinataires */
.bely41-pwa-target-modes{border:1px solid #3b779a;border-radius:12px;padding:10px 12px;margin:12px 0;background:#0b2035;display:grid;gap:12px;min-width:0}
.bely41-pwa-target-modes legend{color:#80dcf5;font-size:.87rem;font-weight:700;padding:0 5px}
.bely41-pwa-target-modes label{display:flex;align-items:center;gap:9px;color:#edf9ff;font-size:.91rem;line-height:1.35;min-width:0}
.bely41-pwa-target-modes input[type=radio]{flex:0 0 21px;width:21px;height:21px;min-height:21px;accent-color:#66ddf5;margin:0}
.bely41-mobile-recipient-list{min-width:0;display:grid;gap:10px;padding-bottom:8px}
.bely41-mobile-recipient-list input[type=search]{width:100%;box-sizing:border-box;border-color:#51c5e7!important}
.bely41-mobile-picker-count{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#b9d9ea;font-size:.78rem}
.bely41-mobile-picker-count label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:#e8f8ff}
.bely41-mobile-picker-count input{width:22px;height:22px;min-height:22px;accent-color:#61dcee;margin:0}
.bely41-mobile-team-rows{display:grid;gap:5px;max-height:270px;overflow:auto;overscroll-behavior:contain}
.bely41-mobile-team-rows label{display:flex;align-items:center;gap:11px;padding:10px;border-radius:9px;background:#122d43;border:1px solid #25475f;min-width:0;overflow-wrap:anywhere}
.bely41-mobile-team-rows input[type=checkbox]{width:20px;min-height:20px;height:20px;flex:0 0 20px;accent-color:#69e4f6}
.bely41-pwa-new-message [data-send-initial]{margin-top:9px!important}
@media(max-width:830px){.bely-hint-floating-rail{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:500px){.bely-hint-floating-rail{grid-template-columns:1fr!important}.bely-hint-floating{max-height:84dvh!important}.bely-hint-floating-rail{max-height:calc(84dvh - 76px)!important}.compose-panel .bely-modes label{white-space:normal!important;font-size:.68rem!important}}
.bely41-mobile-team-rows label[hidden]{display:none!important}
.bely41-mobile-recipient-list[hidden]{display:none!important}
