/* Belleyme 125.10.40 — PC admin et application mobile, sans altérer les autres écrans. */
/* Composition de messages */
.bely40-toolbar{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px;flex-wrap:wrap;margin:12px 0 16px!important}
.bely40-tabs,.bely40-toolbar-right{display:flex;align-items:center;gap:9px;min-width:0}
.bely40-alert-switch{display:inline-flex;gap:3px;background:#081b2d;padding:5px;border:1px solid #245571;border-radius:12px;max-width:100%}
.bely40-alert-switch a{white-space:nowrap;color:#b8d7e9;text-decoration:none;padding:10px 12px;border-radius:9px;font-weight:600;font-size:.87rem}
.bely40-alert-switch a.active{background:#6de0f5;color:#061827}
.compose-panel .bely-modes{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:3px!important;padding:5px!important;border:1px solid #32708f!important;background:#081a2a!important;border-radius:13px!important;overflow:hidden}
.compose-panel .bely-modes legend{padding:4px 0 8px;color:#8fdcf4;font-weight:700}
.compose-panel .bely-modes label{position:relative;flex:1;min-width:0;display:grid!important;place-items:center;text-align:center;gap:0!important;padding:11px 7px!important;border-radius:10px!important;font-size:clamp(.76rem,1.5vw,.9rem);line-height:1.25!important;cursor:pointer;transition:background .15s,color .15s}
.compose-panel .bely-modes label:has(input:checked){background:#6ce2f6!important;color:#061c2a!important;font-weight:750;box-shadow:0 1px 12px #31cff83a}
.compose-panel .bely-modes input[type=radio]{position:absolute!important;opacity:0;inset:0;width:100%!important;height:100%!important;cursor:pointer;margin:0!important}
.compose-panel .bely-modes label:focus-within{outline:2px solid #a5f2ff;outline-offset:-2px}
.compose-panel .bely40-picker-head{display:grid;grid-template-columns:108px minmax(0,1fr);align-items:end;gap:14px;margin:10px 0}
.compose-panel .bely40-check-all{display:flex!important;flex-direction:column!important;justify-content:flex-end;align-items:flex-start;gap:9px!important;margin:0!important;min-height:78px;color:#d4f3fc;font-size:.87rem}
.compose-panel .bely40-check-all input{width:19px;height:19px;min-height:19px;accent-color:#5ddbf3;margin:0}
.compose-panel .bely40-picker-search{min-width:0;margin:0!important}
.compose-panel .bely40-picker-search input{width:100%!important;box-sizing:border-box}
.compose-panel .bely-team-picker{padding:5px 0 10px}
/* Champs texte : plus de zone grise native. */
.compose-panel textarea,.reply-form textarea,.bely-inbox-reader textarea,.bely40-hint-form textarea,.bely-mob-compose textarea,.bely40-mobile-edit textarea{display:block;width:100%;min-width:0;box-sizing:border-box;background:#081f32!important;color:#f1fbff!important;border:1px solid #43b5dc!important;border-radius:12px!important;box-shadow:inset 0 0 12px #1db4df0b;line-height:1.55;padding:12px 14px!important;outline:none;resize:vertical}
.compose-panel textarea:focus,.reply-form textarea:focus,.bely-inbox-reader textarea:focus,.bely40-hint-form textarea:focus,.bely-mob-compose textarea:focus,.bely40-mobile-edit textarea:focus{border-color:#8eeaff!important;box-shadow:0 0 0 2px #48d6f333,0 0 17px #36d4f022!important}
.bely-media-toolbar{flex-wrap:nowrap!important;min-width:0!important;overflow:hidden;gap:10px!important}
.bely-media-toolbar .bely-media-file-label{flex-shrink:0!important;white-space:nowrap}
.bely-media-toolbar .bely-photo-limit{white-space:nowrap;flex-shrink:0;color:#b9d0db!important;font-size:.78rem}
.bely-media-compose[data-bely-three-images] .bely-photo-limit{display:none!important}
/* Indices PC : formulaire et actions compactes */
.bely-inbox-reader .bely-hint-chat-reply{width:min(100%,730px)!important;max-width:100%!important;align-self:stretch!important;background:#0b2436!important;border:1px solid #285e7b!important}
.bely-inbox-reader .bely-hint-edit-details[open]{background:#0b2436;border-radius:12px}
.bely-inbox-reader .bely-hint-chat-reply form,.bely-inbox-reader .sent-hint-edit{min-width:0}
.bely-inbox-reader .ai-editor-actions{display:flex!important;justify-content:flex-end!important;gap:8px}
.bely-inbox-reader .bely40-hint-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.bely-inbox-reader .bely40-hint-footer>button[type=submit]{margin-left:auto!important;width:auto!important;max-width:100%}
.bely-inbox-reader .bely40-hint-footer .bely-hint-reuse-trigger{margin-right:auto}
.bely-inbox-sidebar .bely-desktop-search{background:#091d30!important;border:1px solid #49c7e5!important;border-radius:13px!important;padding:12px!important;box-shadow:0 0 14px #13bddb17}
.bely-inbox-sidebar .bely-desktop-search input{min-height:44px!important;border-radius:9px!important;background:#0b263b!important}
.bely-inbox-sidebar .bely-worklist-group h3 span,.bely-inbox-sidebar .bely-inbox-group h3 span,.bely-inbox-sidebar h3 span{font-size:16px!important;font-weight:800!important;min-width:33px;min-height:30px;display:inline-grid;place-items:center}
/* Réglages : correction à gauche, règlement à droite */
@media(min-width:960px){
 .bely-background-defaults-grid.bely-bg-v26{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch;gap:15px}
 .bely-background-defaults-grid.bely-bg-v26>.bely-bg-family:first-child{grid-column:1/-1}
 .bely-background-defaults-grid.bely-bg-v26>.bely-bg-family:nth-child(2){grid-column:1!important;min-width:0}
 .bely-background-defaults-grid.bely-bg-v26>.settings-rules-panel{grid-column:2!important;grid-row:auto!important;min-width:0}
}
.bely40-email-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.bely40-email-head .bely-autosave-indicator{margin:0!important;white-space:nowrap}
.bely40-email-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:end}
.bely40-email-fields .settings-current-value{margin:0!important;min-width:0}
.bely40-email-fields .settings-current-value strong{overflow-wrap:anywhere}
.bely40-email-fields .settings-bottom-form{margin:0!important;min-width:0}
.bely40-email-fields .field{margin:0!important}
.bely-team-live-search{display:block!important}
.bely-team-live-search input{width:100%!important}
.settings-team-row[hidden],.bely-team-live-search [hidden]{display:none!important}
/* Barre Sauvegarde du constructeur : sous l'en-tête, en haut à droite du panneau */
.web-builder-page{position:relative!important}
.web-builder-page .bely-builder-autosave-bottom{position:absolute!important;top:59px!important;right:20px!important;bottom:auto!important;z-index:3;margin:0!important;padding:0!important;border:0!important;max-width:max-content!important;font-size:.75rem!important}
.web-builder-page .web-page-settings{padding-top:30px!important}
/* Panneau flottant indices : 4 x 2 sur PC, pas de défilement de page */
.bely-hint-floating{width:min(1180px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important;max-height:min(740px,88dvh)!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;padding:19px!important;z-index:2147483000!important}
.bely-hint-floating-rail{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:230px;align-content:start;overflow-y:auto!important;overflow-x:hidden!important;max-height:min(485px,calc(88dvh - 95px))!important;scroll-snap-type:none!important;padding:7px!important}
.bely-hint-reuse-card{max-width:none!important;min-width:0!important;width:100%!important;min-height:155px!important;max-height:295px!important;flex:none!important;overflow:auto!important}
@media(max-width:830px){.bely-hint-floating-rail{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){.bely-hint-floating{padding:12px!important;max-height:82dvh!important}.bely-hint-floating-rail{grid-template-columns:1fr!important;grid-auto-rows:minmax(125px,auto)}.bely-hint-reuse-card{min-height:120px!important;max-height:225px!important}}
.bely-hint-floating .bely40-error{color:#ffd4d4;border:1px solid #c16a77;padding:12px;border-radius:10px}
/* PWA : tuiles inférieures de même teinte (celle d'Énigme en cours). */
.bely-admin-dashboard .bely-action-kpi:nth-child(3),.bely-admin-dashboard .bely-action-kpi:nth-child(4){background:#10263c!important;border-color:#3a708a!important}
.bely40-mobile-edit{margin:14px 0 5px;width:100%;box-sizing:border-box}
.bely40-mobile-edit>summary{display:block;padding:9px 12px;background:#102d45;border:1px solid #35698f;border-radius:10px;color:#a3e9fb;font-weight:700;cursor:pointer}
.bely40-mobile-edit>summary::before{content:'▸ ';color:#73dffa}
.bely40-mobile-edit[open]>summary::before{content:'▾ '}
.bely40-mobile-edit>form{margin:12px 0 0;padding:0;width:100%;box-sizing:border-box}
.bely-mob-puzzles.bely-mob-indices .bely40-mobile-edit .ai-editor{width:100%;box-sizing:border-box}
@media(max-width:700px){.bely40-email-fields{grid-template-columns:1fr}.bely40-toolbar{align-items:stretch!important}.bely40-alert-switch a{font-size:.7rem;padding:8px}.compose-panel .bely-modes label{font-size:.7rem}.compose-panel .bely40-picker-head{grid-template-columns:82px minmax(0,1fr);gap:8px}.bely-media-toolbar .bely-photo-limit{font-size:.7rem}}

/* Sélecteur mobile/desktop avec curseur animé sur trois positions. */
.compose-panel .bely-modes{position:relative}
.compose-panel .bely-modes::before{content:"";position:absolute;left:5px;bottom:5px;top:5px;width:calc((100% - 16px)/3);background:#6ce2f6;border-radius:10px;box-shadow:0 0 15px #35cbea40;transition:transform .23s ease;pointer-events:none}
.compose-panel .bely-modes:has(input[value="current_all"]:checked)::before{transform:translateX(calc(100% + 3px))}
.compose-panel .bely-modes:has(input[value="both_all"]:checked)::before{transform:translateX(calc(200% + 6px))}
.compose-panel .bely-modes label{position:relative;z-index:1}
.compose-panel .bely-modes label:has(input:checked){background:transparent!important;box-shadow:none!important}
