/* Menu personnel : une seule zone centrale défilante, recherche et paramètres fixes. */
html body .m56-favorites{min-width:0;margin-bottom:14px}html body .m56-favorites-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0 0 9px}html body .m56-favorites-toggle{display:flex;align-items:center;gap:6px;min-width:0;border:0!important;background:transparent!important;color:var(--ws-muted)!important;box-shadow:none!important;border-radius:7px!important;padding:6px 0!important;margin:0!important;min-height:30px!important;font-size:10px!important;font-weight:650!important;cursor:pointer}html body .m56-favorites-toggle>.ws-nav-icon{display:none!important}html body .m56-favorites-toggle>.ws-nav-text{white-space:normal!important;font-size:10px!important;color:var(--ws-muted)}html body .m56-favorites-count{font-size:9px;color:var(--ws-muted);background:var(--ws-panel2);border-radius:4px;padding:2px 5px}html body .m56-edit{display:grid!important;place-items:center;min-height:30px!important;min-width:30px!important;width:30px;height:30px;background:transparent!important;border:1px solid transparent!important;border-radius:7px!important;box-shadow:none!important;color:var(--ws-muted)!important;padding:6px!important;margin:0!important;cursor:pointer}html body .m56-edit .ws-nav-icon{width:16px!important;height:16px!important;margin:0!important}html body .m56-edit:hover{background:var(--ws-panel2)!important;border-color:var(--ws-line)!important}html body .m54-nav .m56-quick{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0!important;padding:0!important}html body .m54-nav .m56-quick[data-columns="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}html body .m54-nav .m56-quick[hidden]{display:none!important}html body .m56-add-shortcut{display:flex!important;align-items:center;justify-content:center;gap:5px;width:100%;padding:8px 5px!important;min-height:32px!important;margin:6px 0 0!important;border:1px dashed var(--ws-line)!important;border-radius:8px!important;color:var(--ws-muted)!important;background:transparent!important;box-shadow:none!important;font-size:10px!important;font-weight:500!important;cursor:pointer}html body .m56-add-shortcut>.ws-nav-icon{display:none!important}html body .m56-add-shortcut>.ws-nav-text{white-space:normal!important;font-size:10px!important}html body .m54-nav .m56-shortcut .ws-nav-text{white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;max-width:100%;font-size:10px!important;line-height:1.4!important}html body .m56-shortcut .ws-nav-icon{width:18px!important;height:18px!important;flex:none!important;margin:0!important}
/* Éditeur commun au menu et à l’onglet Paramètres. */
html body .m56-dialog{width:690px!important;max-width:calc(100vw - 24px)!important;height:min(790px,calc(100dvh - 32px));max-height:calc(100dvh - 32px)!important;padding:0!important;border:1px solid var(--ws-line)!important;border-radius:18px!important;background:var(--ws-panel)!important;color:var(--ws-text)!important;overflow:hidden!important;box-shadow:0 24px 70px #10131b30!important}html body .m56-dialog::backdrop{background:#0b102080}html body .m56-dialog-layout{height:100%;min-height:0;display:flex;flex-direction:column}html body .m56-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:22px 24px;border-bottom:1px solid var(--ws-line);flex:none;background:var(--ws-panel)}html body .m56-dialog-head h2{margin:0 0 5px!important;font-size:20px!important;font-weight:750!important;letter-spacing:-.025em;color:var(--ws-text)}html body .m56-dialog-head p{margin:0;font-size:12px;color:var(--ws-muted)}html body .m56-dialog .m56-editor-host{display:flex;flex:1;min-height:0}html body form.m56-editor{display:flex;flex:1;flex-direction:column;min-height:0;margin:0;width:100%;border:1px solid var(--ws-line);border-radius:12px;background:var(--ws-panel);color:var(--ws-text);overflow:hidden}html body .m56-dialog form.m56-editor{border:0;border-radius:0;height:100%}html body .m56-editor-body{padding:20px 24px;min-height:0;overflow:auto;flex:1}html body .m56-dialog .m56-editor-body{overscroll-behavior:contain}html body .m56-note{font-size:12px;line-height:1.6;color:var(--ws-muted);margin:0 0 18px;padding:12px;background:var(--ws-panel2);border-radius:9px}html body .m56-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}html body .m56-list-head h3{font-size:13px!important;font-weight:750;margin:0!important;color:var(--ws-text)}html body .m56-count{font-size:10px;color:var(--ws-muted);background:var(--ws-panel2);border-radius:6px;padding:4px 7px;white-space:nowrap}html body .m56-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid var(--ws-line);border-radius:11px;padding:12px;margin-bottom:8px;background:var(--ws-panel)}html body .m56-row-icon{display:grid;place-items:center;width:34px;height:36px;background:var(--ws-panel2);border-radius:8px;color:var(--ws-accent)}html body .m56-row-icon .ws-nav-icon{width:18px;height:18px}html body .m56-row-main{min-width:0}html body .m56-row-main input{width:100%!important;min-width:0;max-width:100%;background:transparent!important;color:var(--ws-text)!important;border:0!important;border-bottom:1px solid transparent!important;border-radius:0!important;padding:2px 0!important;font-size:12px!important;font-weight:650;box-shadow:none!important;height:auto;min-height:28px}html body .m56-row-main input:focus{border-bottom-color:var(--ws-accent)!important}html body .m56-row-main small{display:block;font-size:10px;line-height:1.5;color:var(--ws-muted);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html body .m56-row-actions{display:flex;gap:3px}html body .m56-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--ws-line)!important;border-radius:9px!important;background:var(--ws-panel)!important;color:var(--ws-text)!important;box-shadow:none!important;padding:9px 12px!important;margin:0!important;min-height:36px!important;font-family:inherit;font-size:12px!important;line-height:1.4;font-weight:600;cursor:pointer}html body .m56-btn.m56-primary{background:var(--ws-primary)!important;border-color:var(--ws-primary)!important;color:white!important}html body .m56-btn.m56-icon-btn{display:grid;place-items:center;min-width:30px!important;width:30px;height:32px;min-height:32px!important;padding:5px!important;border-radius:7px!important;color:var(--ws-muted)!important;font-size:13px!important}html body .m56-btn:disabled{opacity:.4;cursor:default}html body .m56-btn:hover:not(:disabled){border-color:var(--ws-accent)!important}html body .m56-add-box{border:1px dashed var(--ws-line);border-radius:12px;padding:16px;margin-top:18px}html body .m56-add-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:15px}html body .m56-add-tabs .m56-btn{border:0!important;background:transparent!important;color:var(--ws-muted)!important;padding:7px 11px!important;min-height:32px!important;font-size:11px!important}html body .m56-add-tabs .m56-active{background:var(--ws-panel2)!important;color:var(--ws-accent)!important}html body .m56-add-page{display:flex;gap:8px;align-items:center}html body .m56-add-page select{flex:1;min-width:0}html body .m56-editor select,html body .m56-field input{padding:9px 10px!important;background:var(--ws-panel)!important;color:var(--ws-text)!important;border:1px solid var(--ws-line)!important;border-radius:8px!important;font-size:12px!important;min-height:38px;max-width:100%;width:100%;margin:0!important;box-shadow:none!important}html body .m56-field{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--ws-muted);margin-bottom:12px;min-width:0}html body .m56-custom-row{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:12px}html body .m56-help{font-size:10px;line-height:1.6;color:var(--ws-muted);margin:14px 0 0}html body .m56-error{color:var(--danger-text,#a32940);font-size:12px;line-height:1.6;margin:12px 0 0}html body .m56-error:empty{display:none}html body .m56-editor-foot{display:flex;align-items:center;gap:8px;padding:17px 24px;border-top:1px solid var(--ws-line);background:var(--ws-panel);flex:none}html body .m56-spacer{flex:1}html body .m56-btn.m56-reset{border:0!important;background:transparent!important;color:var(--ws-muted)!important;font-size:11px!important;padding:0!important}html body .m56-toast{position:fixed;right:22px;bottom:22px;z-index:10000;max-width:calc(100vw - 32px);padding:14px 18px;background:var(--ws-panel);color:var(--ws-text);border:1px solid var(--ws-line);border-radius:11px;box-shadow:0 8px 30px #0002;font-size:12px}html body .m56-editor [hidden]{display:none!important}html body .m56-editor :is(button,input,select):focus-visible,html body :is(.m56-edit,.m56-add-shortcut,.m56-favorites-toggle):focus-visible{outline:2px solid var(--ws-accent)!important;outline-offset:2px}
@media(max-width:760px){html body .m56-dialog{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)!important;max-width:calc(100vw - 16px)!important}html body .m56-dialog-head{padding:18px 16px}html body .m56-dialog-head h2{font-size:18px!important}html body .m56-editor-body{padding:16px}html body .m56-editor-foot{padding:14px 16px;gap:7px;flex-wrap:wrap}html body .m56-editor-foot .m56-btn{font-size:11px!important;padding:8px 10px!important}html body .m56-row{grid-template-columns:28px minmax(0,1fr);gap:8px;padding:10px}html body .m56-row-icon{width:28px;height:32px}html body .m56-row-actions{grid-column:2;justify-content:flex-end}html body .m56-custom-row{grid-template-columns:1fr}html body .m56-add-page{flex-wrap:wrap}html body .m56-add-page>.m56-btn{margin-left:auto!important}html body .m56-favorites-toggle,html body .m56-edit,html body .m56-add-shortcut{min-height:36px!important}}
/* Les anciens styles donnent width:100% à tous les boutons : garder la roue visible. */
html body .m56-favorites-toggle{flex:1 1 auto!important;width:auto!important}html body .m56-edit{flex:0 0 30px!important}
html body.tfb-crm.tfb-crm .ws-sidebar .m56-favorites-toggle{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:7px!important;padding:6px 0!important;color:var(--ws-muted)!important}
html body.tfb-crm.tfb-crm .ws-sidebar .m56-edit{border:0!important;background:transparent!important;box-shadow:none!important;display:grid!important;place-items:center;min-width:30px!important;width:30px!important;padding:6px!important;color:var(--ws-muted)!important}
html body.tfb-crm.tfb-crm .ws-sidebar .m56-add-shortcut{border:1px dashed var(--ws-line)!important;background:transparent!important;box-shadow:none!important;color:var(--ws-muted)!important;text-align:center!important;justify-content:center!important}
