.lfdc-manager-shell{max-width:1240px;margin:40px auto;padding:0 20px 60px;box-sizing:border-box;}
.lfdc-manager-shell *{box-sizing:border-box;}
.lfdc-manager-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:26px;}
.lfdc-manager-topbar h1{margin:0 0 6px;font-size:2rem;}
.lfdc-manager-topbar p{margin:0;opacity:.72;}
.lfdc-manager-actions{display:flex;flex-wrap:wrap;gap:8px;}
.lfdc-btn, .lfdc-mini-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #c7c7c7;background:#fff;color:#222;text-decoration:none;border-radius:8px;padding:10px 14px;font:inherit;line-height:1.2;cursor:pointer;}
.lfdc-btn:hover, .lfdc-mini-btn:hover{background:#f3f3f3;color:#111;}
.lfdc-btn-primary{background:#e86b1f;border-color:#e86b1f;color:#fff;}
.lfdc-btn-primary:hover{background:#c95612;color:#fff;}
.lfdc-mini-btn{padding:6px 8px;font-size:.82rem;}
.lfdc-mini-btn.is-danger{color:#a51d1d;}
.lfdc-manager-card{background:#fff;border:1px solid #dedede;border-radius:14px;padding:24px;margin:0 0 22px;box-shadow:0 2px 12px rgba(0,0,0,.04);}
.lfdc-manager-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.lfdc-manager-gallery-card{overflow:hidden;border:1px solid #ddd;border-radius:14px;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.04);}
.lfdc-manager-gallery-cover{aspect-ratio:16/9;background:#eee;}
.lfdc-manager-gallery-cover img{width:100%;height:100%;object-fit:cover;display:block;}
.lfdc-cover-placeholder{height:100%;min-height:180px;display:flex;align-items:center;justify-content:center;background:#ececec;}
.lfdc-cover-placeholder .dashicons{font-size:48px;width:48px;height:48px;opacity:.35;}
.lfdc-manager-gallery-body{padding:18px;}
.lfdc-manager-gallery-body h2{font-size:1.2rem;margin:8px 0;}
.lfdc-muted{opacity:.65;}
.lfdc-card-actions{display:flex;gap:8px;margin-top:16px;}
.lfdc-status{display:inline-block;font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;border-radius:999px;padding:4px 8px;background:#eee;}
.lfdc-status.is-published{background:#e4f6e8;color:#176b2d;}
.lfdc-status.is-draft{background:#fff0d7;color:#8b5700;}
.lfdc-notice{padding:12px 16px;border-radius:8px;margin:0 0 18px;}
.lfdc-notice.is-success{background:#e9f7ec;color:#176b2d;}
.lfdc-notice.is-warning{background:#fff5df;color:#7c5200;}
.lfdc-notice.is-error{background:#fde9e9;color:#8b1818;}
.lfdc-empty-state{text-align:center;padding:60px 20px;border:2px dashed #ccc;border-radius:14px;}
.lfdc-section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px;}
.lfdc-section-heading h2{margin:0 0 4px;font-size:1.35rem;}
.lfdc-section-heading p{margin:0;opacity:.7;}
.lfdc-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.lfdc-field{margin-bottom:18px;}
.lfdc-field label{display:block;font-weight:700;margin-bottom:6px;}
.lfdc-field label span{font-weight:400;opacity:.6;}
.lfdc-field input[type=text], .lfdc-field input[type=number], .lfdc-field textarea, .lfdc-field select, .lfdc-bulk-toolbar select{width:100%;max-width:100%;padding:10px 12px;border:1px solid #cfcfcf;border-radius:8px;background:#fff;color:#222;font:inherit;}
.lfdc-field small{display:block;margin-top:6px;opacity:.65;}
.lfdc-editor-footer{display:flex;gap:10px;justify-content:flex-end;border-top:1px solid #eee;padding-top:18px;margin-top:4px;}
.lfdc-checks{display:grid;gap:10px;margin:16px 0;}
.lfdc-group-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px;border:1px solid #ddd;border-radius:8px;margin:8px 0;background:#fafafa;}
.lfdc-group-row .dashicons{cursor:move;opacity:.65;}
.lfdc-group-row input{width:100%;padding:8px 10px;border:1px solid #ccc;border-radius:6px;}
.lfdc-groups-empty, .lfdc-no-photos{padding:22px;border:1px dashed #ccc;border-radius:8px;text-align:center;opacity:.7;}
.lfdc-save-state{font-size:.85rem;opacity:.65;margin-top:8px;min-height:1.2em;}
.lfdc-dropzone{display:flex;min-height:170px;border:2px dashed #c6c6c6;border-radius:12px;align-items:center;justify-content:center;flex-direction:column;gap:6px;text-align:center;padding:30px;cursor:pointer;background:#fafafa;}
.lfdc-dropzone:hover{border-color:#e86b1f;background:#fff8f3;}
.lfdc-dropzone strong{font-size:1.2rem;}
.lfdc-dropzone span{opacity:.65;}
.lfdc-dropzone input{display:none;}
.lfdc-bulk-toolbar{display:grid;grid-template-columns:auto minmax(180px,320px) auto;gap:8px;align-items:center;margin-bottom:14px;}
.lfdc-admin-photo-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;}
.lfdc-admin-photo{position:relative;border:1px solid #ddd;border-radius:10px;overflow:hidden;background:#fff;cursor:default;}
.lfdc-photo-thumb{aspect-ratio:1/1;background:#eee;}
.lfdc-photo-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.lfdc-photo-select{position:absolute;top:8px;left:8px;z-index:3;background:rgba(255,255,255,.9);border-radius:6px;padding:5px;}
.lfdc-photo-select input{width:18px;height:18px;margin:0;}
.lfdc-cover-badge{position:absolute;top:8px;right:8px;background:#e86b1f;color:#fff;font-size:.72rem;font-weight:700;border-radius:999px;padding:5px 8px;}
.lfdc-photo-controls{padding:9px;}
.lfdc-photo-controls select{width:100%;padding:7px;border:1px solid #ccc;border-radius:6px;}
.lfdc-photo-buttons{display:flex;justify-content:space-between;gap:5px;margin-top:7px;}
.lfdc-settings-form select{width:100%;padding:10px;border:1px solid #ccc;border-radius:8px;}
@media (max-width:1000px){
  .lfdc-manager-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .lfdc-admin-photo-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
  .lfdc-manager-topbar{flex-direction:column;}
  .lfdc-manager-actions{width:100%;}
}
@media (max-width:720px){
  .lfdc-manager-shell{padding:0 12px 40px;margin-top:22px;}
  .lfdc-manager-card{padding:16px;}
  .lfdc-manager-grid, .lfdc-form-grid{grid-template-columns:1fr;}
  .lfdc-admin-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .lfdc-bulk-toolbar{grid-template-columns:1fr;}
  .lfdc-section-heading{flex-direction:column;}
  .lfdc-section-heading .lfdc-btn{width:100%;}
  .lfdc-manager-actions .lfdc-btn{flex:1;}
  .lfdc-editor-footer{flex-wrap:wrap;}
  .lfdc-editor-footer .lfdc-btn{flex:1;}
  .lfdc-photo-buttons{flex-direction:column;}
}
.lfdc-dropzone.is-drag{border-color:#e86b1f;background:#fff1e7;}
/* Interface LFDC — finition inspirée du planning MJ */
body .lfdc-manager-shell{--lfdc-brown:#521A15;--lfdc-brown-2:#6f2018;--lfdc-orange:#df7338;--lfdc-orange-soft:#fff5ef;--lfdc-ink:#2d211d;--lfdc-muted:#776861;--lfdc-line:#eee5e1;--lfdc-soft:#f8f5f3;color:var(--lfdc-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
body .lfdc-manager-shell, body .lfdc-manager-shell *{box-sizing:border-box;}
body .lfdc-manager-topbar h1{color:var(--lfdc-ink);font-size:clamp(1.55rem,2.5vw,2.05rem);font-weight:850;line-height:1.1;letter-spacing:-.02em;}
body .lfdc-manager-topbar p{color:var(--lfdc-muted);opacity:1;}
body .lfdc-btn, body .lfdc-mini-btn{min-height:42px;border:1px solid #ddd2cd;border-radius:10px;background:#fff;color:#493832;font-weight:800;box-shadow:none;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease;}
body .lfdc-btn:hover, body .lfdc-mini-btn:hover{border-color:#cbbab2;background:#faf8f7;transform:translateY(-1px);box-shadow:0 6px 16px rgba(27,13,8,.08);}
body .lfdc-btn-primary{border-color:var(--lfdc-brown-2);background:var(--lfdc-brown-2);color:#fff;}
body .lfdc-btn-primary:hover{border-color:#5d1a14;background:#5d1a14;color:#fff;}
body .lfdc-mini-btn.is-danger{color:#9b2d28;border-color:#ead4d1;background:#fff9f8;}
body .lfdc-manager-card{padding:24px;border:1px solid rgba(82,35,23,.10);border-radius:22px;background:#fff;box-shadow:0 18px 55px rgba(27,13,8,.10);}
body .lfdc-section-heading{margin:-4px 0 20px;padding:0 0 15px;border-bottom:1px solid var(--lfdc-line);}
body .lfdc-section-heading h2{color:var(--lfdc-ink);font-size:1.35rem;font-weight:850;line-height:1.15;}
body .lfdc-section-heading p{color:var(--lfdc-muted);opacity:1;line-height:1.45;}
body .lfdc-field label{color:#493832;font-size:.84rem;font-weight:800;}
body .lfdc-field input[type=text], body .lfdc-field input[type=number], body .lfdc-field textarea, body .lfdc-field select, body .lfdc-bulk-toolbar select, body .lfdc-settings-form select{width:100%;min-height:46px;border:1px solid #dcd2ce;border-radius:11px;background:#fff;color:#30241f;padding:10px 12px;font-size:16px;box-shadow:none;}
body .lfdc-field textarea{min-height:112px;resize:vertical;}
body .lfdc-field input:focus, body .lfdc-field textarea:focus, body .lfdc-field select:focus, body .lfdc-bulk-toolbar select:focus{outline:3px solid rgba(223,115,56,.14);border-color:#b85c32;}
body .lfdc-field small{color:var(--lfdc-muted);opacity:1;line-height:1.35;}
body .lfdc-checks label{display:flex;align-items:flex-start;gap:10px;padding:12px 13px;border-radius:13px;background:var(--lfdc-soft);color:#493832;font-weight:700;}
body .lfdc-checks input{width:20px;height:20px;flex:0 0 20px;}
body .lfdc-editor-footer{margin:22px -24px -24px;padding:14px 24px;border-top:1px solid var(--lfdc-line);background:#fff;border-radius:0 0 22px 22px;}
body .lfdc-manager-gallery-card{border:1px solid rgba(82,35,23,.10);border-radius:20px;box-shadow:0 14px 38px rgba(27,13,8,.10);transition:transform .18s ease,box-shadow .18s ease;}
body .lfdc-manager-gallery-card:hover{transform:translateY(-3px);box-shadow:0 20px 48px rgba(27,13,8,.15);}
body .lfdc-manager-gallery-cover{background:#f3eeeb;}
body .lfdc-manager-gallery-body{padding:18px 18px 20px;}
body .lfdc-manager-gallery-body h2{color:var(--lfdc-ink);font-weight:850;}
body .lfdc-muted{color:var(--lfdc-muted);opacity:1;}
body .lfdc-status{padding:5px 9px;border-radius:999px;font-size:.69rem;font-weight:900;letter-spacing:.07em;}
body .lfdc-dropzone{min-height:190px;border:2px dashed #d6c4bb;border-radius:16px;background:#fbf8f6;color:#493832;transition:border-color .15s ease,background .15s ease,transform .15s ease;}
body .lfdc-dropzone:hover, body .lfdc-dropzone.is-drag{border-color:var(--lfdc-orange);background:var(--lfdc-orange-soft);transform:translateY(-1px);}
body .lfdc-dropzone strong{color:#3d2d27;font-weight:850;}
body .lfdc-group-row{border:1px solid #e6ddd9;border-radius:12px;background:#fbf9f8;padding:10px;}
body .lfdc-group-row input, body .lfdc-photo-controls select{min-height:40px;border:1px solid #dcd2ce;border-radius:9px;background:#fff;font-size:15px;}
body .lfdc-admin-photo{border:1px solid #e4d9d4;border-radius:14px;box-shadow:0 6px 16px rgba(27,13,8,.07);}
body .lfdc-cover-badge{background:var(--lfdc-orange);padding:5px 9px;}
body .lfdc-notice{border:1px solid transparent;border-radius:13px;box-shadow:0 8px 24px rgba(27,13,8,.06);}
body .lfdc-empty-state{border:2px dashed #d7c7c0;border-radius:20px;background:#fff;box-shadow:0 14px 38px rgba(27,13,8,.07);}
/* Fenêtres de dialogue — même langage visuel que le planning MJ */
body .lfdc-dialog-overlay{position:fixed!important;inset:0!important;z-index:999999!important;display:none!important;align-items:center!important;justify-content:center!important;padding:12px!important;background:rgba(30,20,16,.58)!important;backdrop-filter:blur(5px)!important;}
body .lfdc-dialog-overlay.open{display:flex!important;}
body .lfdc-dialog-overlay, body .lfdc-dialog-overlay *{box-sizing:border-box!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;text-transform:none!important;letter-spacing:normal;text-shadow:none!important;}
body .lfdc-dialog{width:min(520px,calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;margin:0!important;padding:0!important;overflow:hidden!important;border:1px solid rgba(82,35,23,.12)!important;border-radius:22px!important;background:#fff!important;color:#2d211d!important;box-shadow:0 24px 80px rgba(20,10,6,.34)!important;}
body .lfdc-dialog-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;padding:18px 18px 14px!important;border-bottom:1px solid #eee5e1!important;background:#fff!important;}
body .lfdc-dialog-kicker{display:block!important;margin:0 0 4px!important;color:#a2502d!important;font-size:.65rem!important;font-weight:900!important;letter-spacing:.12em!important;}
body .lfdc-dialog-head h2{margin:0!important;color:#2f211c!important;font-size:1.28rem!important;font-weight:850!important;line-height:1.15!important;}
body .lfdc-dialog-head p{margin:6px 0 0!important;color:#776861!important;font-size:.84rem!important;line-height:1.4!important;}
body .lfdc-dialog-x{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 36px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;margin:0!important;padding:0!important;border:1px solid #ddd3ce!important;border-radius:50%!important;background:#f6f2ef!important;color:#493832!important;box-shadow:none!important;font-size:22px!important;font-weight:700!important;line-height:1!important;cursor:pointer!important;}
body .lfdc-dialog-body{padding:16px 18px 18px!important;overflow:auto!important;}
body .lfdc-dialog-input-wrap{display:block!important;margin:0!important;color:#493832!important;font-size:.79rem!important;font-weight:800!important;}
body .lfdc-dialog-input-wrap span{display:block!important;margin:0 0 6px!important;}
body #lfdc-dialog-input{display:block!important;width:100%!important;height:46px!important;min-height:46px!important;margin:0!important;padding:9px 11px!important;border:1px solid #dcd2ce!important;border-radius:11px!important;background:#fff!important;color:#30241f!important;box-shadow:none!important;font-size:16px!important;}
body #lfdc-dialog-input:focus{outline:3px solid rgba(223,115,56,.14)!important;border-color:#b85c32!important;}
body .lfdc-dialog-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;width:100%!important;margin:0!important;padding:11px 18px!important;border-top:1px solid #eee5e1!important;background:#fff!important;}
body .lfdc-dialog-actions .lfdc-btn{min-width:90px!important;min-height:42px!important;border-radius:10px!important;}
body .lfdc-dialog-actions .lfdc-dialog-ok.is-danger{border-color:#9b2d28!important;background:#9b2d28!important;color:#fff!important;}
@media (max-width:720px){
  body .lfdc-editor-footer{margin:20px -18px -18px;padding:12px 18px;border-radius:0 0 18px 18px;}
  body .lfdc-dialog-overlay{padding:6px!important;}
  body .lfdc-dialog{width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important;border-radius:18px!important;}
  body .lfdc-dialog-head{padding:15px 14px 12px!important;}
  body .lfdc-dialog-body{padding:14px!important;}
  body .lfdc-dialog-actions{padding:10px 14px!important;}
  body .lfdc-dialog-actions .lfdc-btn{flex:1 1 0!important;}
}
body .lfdc-editor-app{margin:0 0 24px;}
body .lfdc-editor-tabs{position:sticky;top:10px;z-index:50;box-shadow:0 10px 30px rgba(27,13,8,.10);backdrop-filter:blur(10px);}
body .lfdc-editor-tab{appearance:none;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;margin:0;text-align:left;cursor:pointer;}
body .lfdc-editor-tab span{display:block;line-height:1.1;}
body .lfdc-editor-tab small{display:block;line-height:1.1;}
body .lfdc-tab-form{margin:0;padding:0;}
body .lfdc-tab-panel{display:none!important;margin:0!important;min-height:360px;}
body .lfdc-tab-panel.is-active{display:block!important;animation:lfdcTabIn .16s ease-out;}
@keyframes lfdcTabIn{from{opacity:.45;transform:translateY(4px)}to{opacity:1;transform:none}}
body .lfdc-panel-kicker{display:block;margin:0 0 5px;color:#a2502d;font-size:.66rem;font-weight:900;letter-spacing:.12em;}
body .lfdc-tab-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin:22px -24px -24px;padding:14px 24px;border-top:1px solid #eee5e1;border-radius:0 0 22px 22px;background:#fff;}
body .lfdc-photo-workspace{align-items:start;}
body .lfdc-upload-box{position:sticky;top:100px;}
body .lfdc-photo-workspace #lfdc-start-upload{width:100%;}
body .lfdc-photo-library #lfdc-gallery-media{max-height:none;overflow:visible;overscroll-behavior:auto;padding:2px 0 4px;scrollbar-gutter:auto;}
body .lfdc-photo-library .lfdc-admin-photo-grid{grid-template-columns:repeat(4,minmax(125px,1fr));gap:10px;}
body .lfdc-groups-board{max-width:820px;}
body .lfdc-groups-board .lfdc-group-row{min-height:58px;padding:10px 12px;}
body .lfdc-display-summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px 14px;align-items:center;margin-top:20px;padding:13px 14px;border-radius:13px;background:#f8f5f3;color:#55443d;}
body .lfdc-display-summary strong{color:#773b25;font-size:.82rem;}
body .lfdc-display-summary span{font-size:.82rem;line-height:1.4;}
body .lfdc-display-summary a{color:#8d3f24;font-size:.8rem;font-weight:800;text-decoration:none;white-space:nowrap;}
@media (max-width:1000px){
  body .lfdc-photo-workspace{grid-template-columns:260px minmax(0,1fr);}
  body .lfdc-photo-library .lfdc-admin-photo-grid{grid-template-columns:repeat(3,minmax(120px,1fr));}
}
@media (max-width:720px){
  body .lfdc-editor-tabs{overflow-x:auto;scrollbar-width:none;}
  body .lfdc-editor-tabs::-webkit-scrollbar{display:none;}
  body .lfdc-tab-panel{min-height:0;}
  body .lfdc-tab-actions{border-radius:0 0 18px 18px;}
  body .lfdc-tab-actions .lfdc-btn{flex:1 1 auto;}
  body .lfdc-photo-workspace{display:block;}
  body .lfdc-upload-box{position:static;margin-bottom:18px;}
  body .lfdc-photo-library #lfdc-gallery-media{max-height:none;overflow:visible;padding:0;}
  body .lfdc-photo-library .lfdc-admin-photo-grid{gap:9px;}
  body .lfdc-display-summary{grid-template-columns:1fr;gap:5px;}
  body .lfdc-display-summary a{white-space:normal;}
}
html, body{max-width:100%!important;}
body .lfdc-manager-shell{width:min(1240px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;min-width:0!important;margin:28px auto 48px!important;padding:0!important;overflow:visible!important;}
body .lfdc-manager-shell > *, body .lfdc-manager-topbar > *, body .lfdc-manager-card > *, body .lfdc-editor-app, body .lfdc-tab-form, body .lfdc-tab-panel, body .lfdc-photo-workspace, body .lfdc-photo-library, body .lfdc-groups-board{min-width:0!important;max-width:100%!important;}
body .lfdc-manager-topbar, body .lfdc-manager-card, body .lfdc-editor-tabs{width:100%!important;max-width:100%!important;}
body .lfdc-manager-shell h1, body .lfdc-manager-shell h2, body .lfdc-manager-shell h3, body .lfdc-manager-shell p, body .lfdc-manager-shell span, body .lfdc-manager-shell small, body .lfdc-manager-shell label{overflow-wrap:anywhere;word-break:normal;}
body .lfdc-manager-shell input, body .lfdc-manager-shell textarea, body .lfdc-manager-shell select, body .lfdc-manager-shell button, body .lfdc-manager-shell a{max-width:100%;}
body .lfdc-manager-shell input, body .lfdc-manager-shell textarea, body .lfdc-manager-shell select{min-width:0!important;}
@media (max-width:720px){
  body .lfdc-manager-shell{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;margin:16px auto 32px!important;}
  body .lfdc-manager-topbar{width:100%!important;gap:16px!important;overflow:hidden!important;}
  body .lfdc-manager-topbar h1{font-size:1.55rem!important;}
  body .lfdc-manager-topbar p{font-size:.94rem!important;line-height:1.4!important;}
  body .lfdc-manager-actions{min-width:0!important;}
  body .lfdc-manager-actions .lfdc-btn{width:100%!important;min-width:0!important;white-space:normal!important;text-align:center!important;}
  body .lfdc-editor-tabs{position:sticky!important;top:4px!important;width:100%!important;overflow:visible!important;}
  body .lfdc-editor-tab{width:100%!important;flex:none!important;}
  body .lfdc-manager-card{width:100%!important;max-width:100%!important;overflow:hidden!important;}
  body .lfdc-tab-actions{width:auto!important;max-width:none!important;margin:18px -16px -16px!important;padding:12px 16px!important;}
  body .lfdc-photo-workspace, body .lfdc-form-grid, body .lfdc-bulk-toolbar{width:100%!important;min-width:0!important;}
  body .lfdc-photo-library .lfdc-admin-photo-grid{width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body .lfdc-group-row{grid-template-columns:28px minmax(0,1fr) auto!important;width:100%!important;min-width:0!important;}
}
@media (max-width:420px){
  body .lfdc-manager-shell{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;}
  body .lfdc-manager-topbar, body .lfdc-manager-card{border-radius:16px!important;}
  body .lfdc-editor-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body .lfdc-manager-actions{grid-template-columns:1fr 1fr!important;}
}
body .lfdc-editor-tabs::before, body .lfdc-editor-tabs::after{content:none!important;display:none!important;position:static!important;float:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;}
@media (max-width:720px){
  body .lfdc-editor-tabs{display:grid!important;grid-template-rows:auto auto!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;grid-auto-rows:auto!important;}
  body .lfdc-editor-tabs > .lfdc-editor-tab{position:static!important;float:none!important;clear:none!important;display:flex!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;transform:none!important;inset:auto!important;order:0!important;}
  body .lfdc-editor-tabs > .lfdc-editor-tab[data-tab="info"]{grid-column:1!important;grid-row:1!important;}
  body .lfdc-editor-tabs > .lfdc-editor-tab[data-tab="photos"]{grid-column:2!important;grid-row:1!important;}
  body .lfdc-editor-tabs > .lfdc-editor-tab[data-tab="groups"]{grid-column:1!important;grid-row:2!important;}
  body .lfdc-editor-tabs > .lfdc-editor-tab[data-tab="display"]{grid-column:2!important;grid-row:2!important;}
}
body .lfdc-manager-actions, body .lfdc-editor-tabs{isolation:isolate;}
body .lfdc-manager-actions::before, body .lfdc-manager-actions::after, body .lfdc-group-filters::before, body .lfdc-group-filters::after{content:none!important;display:none!important;}
/* Menu principal de gestion : vraies cellules-boutons. */
body .lfdc-manager-actions .lfdc-btn{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:4px!important;width:100%!important;min-height:72px!important;padding:12px 14px!important;border:2px solid #e6dbd6!important;border-radius:16px!important;background:#fff!important;color:#43322c!important;text-align:left!important;box-shadow:none!important;}
body .lfdc-manager-actions .lfdc-btn > span{display:block!important;font-size:1.02rem!important;font-weight:900!important;line-height:1.12!important;}
body .lfdc-manager-actions .lfdc-btn > small{display:block!important;margin:0!important;color:#85716a!important;font-size:.71rem!important;font-weight:750!important;line-height:1.1!important;letter-spacing:.02em!important;}
body .lfdc-manager-actions .lfdc-btn:hover{border-color:#d4c1ba!important;background:#fffdfc!important;}
body .lfdc-manager-actions .lfdc-btn.is-active{border-color:#df7338!important;background:#fff5ef!important;color:#6a2d18!important;box-shadow:0 0 0 3px rgba(223,115,56,.10)!important;}
body .lfdc-manager-actions .lfdc-btn.is-active > small{color:#a25a37!important;}
body .lfdc-manager-actions .lfdc-btn-primary{border-color:#6f2018!important;background:#6f2018!important;color:#fff!important;}
body .lfdc-manager-actions .lfdc-btn-primary > small{color:rgba(255,255,255,.78)!important;}
body .lfdc-manager-actions .lfdc-btn-primary:hover{border-color:#5d1a14!important;background:#5d1a14!important;}
body .lfdc-manager-actions .lfdc-btn-primary.is-active{border-color:#df7338!important;background:linear-gradient(180deg,#7b251c,#662018)!important;color:#fff!important;box-shadow:0 0 0 3px rgba(223,115,56,.16)!important;}
body .lfdc-manager-actions .lfdc-btn-primary.is-active > small{color:rgba(255,255,255,.84)!important;}
/* Onglets d'édition : plus grands et plus explicitement cliquables. */
body .lfdc-editor-tab small{margin-top:6px!important;font-weight:800!important;letter-spacing:.02em!important;}
body .lfdc-editor-tab:hover{background:#fffdfa!important;border-color:#d7c7c0!important;}
/* Barre d'actions dans l'onglet Photos : cellules alignées. */
/* Boutons d'actions des cartes galerie : même logique visuelle. */
body .lfdc-card-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
body .lfdc-card-actions .lfdc-btn{width:100%!important;min-height:44px!important;border-radius:12px!important;}
/* Petits panneaux d'aide : alignement type cellule. */
body .lfdc-display-summary{border:1px solid #ece2dd!important;}
@media (max-width:1000px){
  body .lfdc-manager-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;}
}
@media (max-width:720px){
  body .lfdc-manager-actions .lfdc-btn{min-height:74px!important;padding:12px!important;border-radius:14px!important;}
  body .lfdc-manager-actions .lfdc-btn:nth-child(1){grid-column:1!important;grid-row:1!important;}
  body .lfdc-manager-actions .lfdc-btn:nth-child(2){grid-column:2!important;grid-row:1!important;}
  body .lfdc-manager-actions .lfdc-btn:nth-child(3){grid-column:1 / span 2!important;grid-row:2!important;}
  body .lfdc-editor-tab small{font-size:.72rem!important;}
}
@media (max-width:420px){
  body .lfdc-manager-actions .lfdc-btn > span{font-size:.97rem!important;}
  body .lfdc-manager-actions .lfdc-btn > small{font-size:.68rem!important;}
  body .lfdc-editor-tab span{font-size:.95rem!important;}
  body .lfdc-editor-tab small{font-size:.68rem!important;}
}
body .lfdc-manager-actions::before, body .lfdc-manager-actions::after, body .lfdc-editor-tabs::before, body .lfdc-editor-tabs::after, body .lfdc-manager-grid::before, body .lfdc-manager-grid::after, body .lfdc-form-grid::before, body .lfdc-form-grid::after, body .lfdc-photo-workspace::before, body .lfdc-photo-workspace::after, body .lfdc-bulk-toolbar::before, body .lfdc-bulk-toolbar::after, body .lfdc-admin-photo-grid::before, body .lfdc-admin-photo-grid::after, body .lfdc-card-actions::before, body .lfdc-card-actions::after, body .lfdc-group-row::before, body .lfdc-group-row::after, body .lfdc-checks::before, body .lfdc-checks::after, body .lfdc-display-summary::before, body .lfdc-display-summary::after{content:none!important;display:none!important;position:static!important;float:none!important;clear:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;}
body .lfdc-manager-grid > *, body .lfdc-form-grid > *, body .lfdc-photo-workspace > *, body .lfdc-bulk-toolbar > *, body .lfdc-admin-photo-grid > *, body .lfdc-card-actions > *, body .lfdc-group-row > *, body .lfdc-checks > *, body .lfdc-display-summary > *{min-width:0!important;max-width:100%!important;float:none!important;clear:none!important;transform:none!important;}
body .lfdc-manager-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:1fr!important;grid-auto-flow:row!important;align-self:stretch!important;}
body .lfdc-manager-actions > .lfdc-btn{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:66px!important;margin:0!important;padding:10px 12px!important;border:2px solid #e5dad5!important;border-radius:15px!important;background:#fff!important;color:#43322c!important;font-size:1rem!important;font-weight:900!important;line-height:1.15!important;text-align:center!important;white-space:normal!important;box-shadow:none!important;}
body .lfdc-manager-actions > .lfdc-btn:nth-child(1){grid-column:1!important;grid-row:1!important;}
body .lfdc-manager-actions > .lfdc-btn:nth-child(2){grid-column:2!important;grid-row:1!important;}
body .lfdc-manager-actions > .lfdc-btn:nth-child(3){grid-column:3!important;grid-row:1!important;}
body .lfdc-manager-actions > .lfdc-btn.is-active{border-color:#df7338!important;background:#fff5ef!important;color:#6a2d18!important;box-shadow:0 0 0 3px rgba(223,115,56,.10)!important;}
body .lfdc-manager-actions > .lfdc-btn-primary{border-color:#6f2018!important;background:#6f2018!important;color:#fff!important;}
body .lfdc-manager-actions > .lfdc-btn-primary.is-active{border-color:#df7338!important;background:#6f2018!important;color:#fff!important;box-shadow:0 0 0 3px rgba(223,115,56,.16)!important;}
body .lfdc-manager-grid > .lfdc-manager-gallery-card, body .lfdc-admin-photo-grid > .lfdc-admin-photo{width:100%!important;margin:0!important;grid-column:auto!important;grid-row:auto!important;justify-self:stretch!important;align-self:stretch!important;}
@media (max-width:720px){
  body .lfdc-manager-actions > .lfdc-btn{min-height:62px!important;padding:8px 6px!important;border-radius:13px!important;font-size:.88rem!important;}
  body .lfdc-manager-actions > .lfdc-btn:nth-child(1){grid-column:1!important;grid-row:1!important;}
  body .lfdc-manager-actions > .lfdc-btn:nth-child(2){grid-column:2!important;grid-row:1!important;}
  body .lfdc-manager-actions > .lfdc-btn:nth-child(3){grid-column:3!important;grid-row:1!important;}
  body .lfdc-admin-photo-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:10px!important;width:100%!important;}
  body .lfdc-admin-photo-grid > .lfdc-admin-photo{grid-column:auto!important;grid-row:auto!important;width:100%!important;min-width:0!important;margin:0!important;}
}
@media (max-width:420px){
  body .lfdc-manager-actions > .lfdc-btn{font-size:.82rem!important;}
}
body .lfdc-order-help{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:8px 14px!important;align-items:center!important;margin:0 0 14px!important;padding:12px 14px!important;border:1px solid #e5d8d1!important;border-radius:14px!important;background:#fff7e8!important;color:#4d382f!important;}
body .lfdc-order-help strong{font-weight:900!important;color:#6f2d1d!important;}
body .lfdc-order-help span{font-size:.82rem!important;line-height:1.35!important;}
body #lfdc-gallery-order-state, body #lfdc-photo-order-state{font-weight:850!important;color:#7b3c25!important;}
body .lfdc-gallery-order-controls{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:8px!important;border-bottom:1px solid #eadfd9!important;background:#fff7e8!important;}
body .lfdc-gallery-order-controls>div{display:flex!important;gap:6px!important;}
body .lfdc-order-handle, body .lfdc-order-arrow{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:42px!important;min-height:40px!important;margin:0!important;padding:7px 10px!important;border:1px solid #d7c4ba!important;border-radius:10px!important;background:#fff3dc!important;color:#57271c!important;font:inherit!important;font-weight:900!important;line-height:1!important;cursor:pointer!important;touch-action:manipulation!important;}
body .lfdc-order-handle{gap:6px!important;}
body .lfdc-order-handle .dashicons{width:20px!important;height:20px!important;font-size:20px!important;}
body .lfdc-order-handle:hover, body .lfdc-order-arrow:hover{background:#ffe9c3!important;border-color:#bf845d!important;}
body .lfdc-photo-order-controls{position:absolute!important;top:7px!important;left:50%!important;z-index:5!important;transform:translateX(-50%)!important;}
body .lfdc-photo-order-controls::before, body .lfdc-photo-order-controls::after{content:none!important;display:none!important;}
body .lfdc-photo-order-controls .lfdc-order-arrow{box-shadow:0 3px 10px rgba(40,20,10,.16)!important;}
body .lfdc-photo-select{top:50px!important;}
body .lfdc-cover-badge{top:50px!important;}
body .lfdc-order-note{font-weight:700!important;}
body .ui-sortable-helper{box-shadow:0 22px 50px rgba(25,12,7,.24)!important;transform:scale(.98)!important;}
body .ui-sortable-placeholder{visibility:visible!important;border:2px dashed #df7338!important;border-radius:16px!important;background:#fff3dc!important;min-height:120px!important;}
@media (max-width:720px){
  body .lfdc-order-help{grid-template-columns:1fr!important;gap:5px!important;}
  body .lfdc-gallery-order-controls{padding:7px!important;}
  body .lfdc-order-handle span:last-child{display:none!important;}
  body .lfdc-order-handle{min-width:44px!important;width:44px!important;padding:0!important;}
  body .lfdc-photo-order-controls{top:6px!important;}
  body .lfdc-photo-select, body .lfdc-cover-badge{top:48px!important;}
}
body .lfdc-btn.is-danger{border-color:#a53a32!important;background:#fff6f4!important;color:#922d27!important;font-weight:850!important;}
body .lfdc-btn.is-danger:hover{border-color:#922d27!important;background:#fce9e6!important;color:#7f241f!important;}
body .lfdc-dialog-input-wrap.is-hidden{display:none!important;}
body .lfdc-permissions-panel{margin-top:26px;padding-top:22px;border-top:2px solid #eee2dc;}
body .lfdc-permission-list::before, body .lfdc-permission-list::after{content:none!important;display:none!important;}
body .lfdc-permission-box{min-width:0!important;padding:16px!important;border:1px solid #e7d9d2!important;border-radius:16px!important;background:#fffaf2!important;}
body .lfdc-permission-box h3{margin:0 0 5px!important;font-size:1.05rem!important;color:#493832!important;}
body .lfdc-permission-box>p{margin:0 0 12px!important;}
body .lfdc-permission-list{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;max-height:330px!important;overflow:auto!important;padding:2px!important;}
body .lfdc-permission-option{display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;width:100%!important;min-width:0!important;margin:0!important;padding:10px 11px!important;border:1px solid #e4d8d1!important;border-radius:12px!important;background:#fff!important;color:#493832!important;cursor:pointer!important;}
body .lfdc-permission-option.is-fixed{background:#f6efe8!important;cursor:default!important;}
body .lfdc-permission-option input[type=checkbox]{width:20px!important;height:20px!important;margin:0!important;}
body .lfdc-permission-option span{display:block!important;min-width:0!important;}
body .lfdc-permission-option strong{display:block!important;font-size:.92rem!important;line-height:1.15!important;}
body .lfdc-permission-option small{display:block!important;margin-top:3px!important;color:#826f66!important;font-size:.72rem!important;line-height:1.2!important;}
body .lfdc-user-filter-wrap{margin:0 0 10px!important;}
body #lfdc-user-permission-filter{width:100%!important;min-height:44px!important;padding:9px 12px!important;border:1px solid #d8cbc5!important;border-radius:11px!important;background:#fff!important;font-size:16px!important;}
@media (max-width:720px){
  body .lfdc-permission-list{max-height:280px!important;}
}
body .lfdc-permission-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important;margin:0 0 14px!important;padding:8px!important;border:1px solid #e8ddd7!important;border-radius:16px!important;background:#faf6f1!important;}
body .lfdc-permission-tabs::before, body .lfdc-permission-tabs::after{content:none!important;display:none!important;}
body .lfdc-permission-tab{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:52px!important;margin:0!important;padding:10px 14px!important;border:2px solid #dfd2ca!important;border-radius:12px!important;background:#fff8ed!important;color:#493832!important;font-size:1rem!important;font-weight:900!important;line-height:1.1!important;cursor:pointer!important;box-shadow:none!important;}
body .lfdc-permission-tab.is-active{border-color:#df7338!important;background:#f6e6cf!important;color:#6a2d18!important;box-shadow:0 0 0 3px rgba(223,115,56,.10)!important;}
body .lfdc-permission-tab-panel{display:none!important;}
body .lfdc-permission-tab-panel.is-active{display:block!important;}
body .lfdc-permission-tab-panel .lfdc-permission-box{width:100%!important;}
body .lfdc-photo-meta-dialog{max-width:620px!important;}
body .lfdc-photo-meta-body{display:grid!important;gap:14px!important;}
body .lfdc-photo-meta-body label{display:block!important;margin:0!important;}
body .lfdc-photo-meta-body label>span{display:block!important;margin:0 0 6px!important;color:#493832!important;font-size:.82rem!important;font-weight:850!important;}
body .lfdc-photo-meta-body input, body .lfdc-photo-meta-body textarea{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:10px 12px!important;border:1px solid #d8ccc6!important;border-radius:11px!important;background:#fffdf9!important;color:#30241f!important;box-shadow:none!important;font:inherit!important;}
body .lfdc-photo-meta-body textarea{min-height:120px!important;resize:vertical!important;}
body .lfdc-photo-meta-body small{margin-top:-6px!important;color:#826f66!important;font-size:.75rem!important;}
@media (max-width:720px){
  body .lfdc-permission-tab{font-size:1.02rem!important;min-height:56px!important;}
  body .lfdc-photo-buttons{grid-template-columns:1fr!important;}
}
body .lfdc-admin-photo .lfdc-video-thumb{position:relative!important;overflow:hidden!important;background:#1d1714!important;}
body .lfdc-admin-photo .lfdc-video-thumb video{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;}
body .lfdc-admin-photo .lfdc-video-thumb .lfdc-video-play{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:44px!important;height:44px!important;border-radius:50%!important;background:rgba(255,255,255,.9)!important;color:#521a15!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:1rem!important;pointer-events:none!important;}
body .lfdc-import-actions{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:10px!important;margin-top:12px!important;}
body .lfdc-import-picker{position:relative!important;min-width:190px!important;margin:0!important;}
body .lfdc-import-picker input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;}
body .lfdc-upload-selection{margin-top:12px!important;padding:8px 12px!important;border-radius:8px!important;background:#f4efe9!important;color:#6b5a4f!important;font-size:.88rem!important;font-weight:650!important;max-width:100%!important;overflow-wrap:anywhere!important;}
body .lfdc-upload-selection.has-selection{background:#fff1e7!important;color:#7b3513!important;}
@media (max-width:720px){
  body .lfdc-import-actions{width:100%!important;flex-direction:column!important;}
  body .lfdc-import-picker{width:100%!important;min-width:0!important;}
}
body .lfdc-danger-zone{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;margin-top:28px!important;padding:18px!important;border:1px solid #d8a39b!important;border-radius:12px!important;background:#fff7f5!important;}
body .lfdc-danger-zone > div{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important;}
body .lfdc-danger-zone strong{color:#7a211a!important;font-size:1rem!important;}
body .lfdc-danger-zone span{color:#72524d!important;font-size:.9rem!important;line-height:1.45!important;}
body .lfdc-danger-zone .lfdc-btn.is-danger{flex:0 0 auto!important;margin:0!important;}
@media (max-width:720px){
  body .lfdc-danger-zone{flex-direction:column!important;align-items:stretch!important;}
  body .lfdc-danger-zone .lfdc-btn.is-danger{width:100%!important;}
}
body .lfdc-layout-field{grid-column:1/-1!important;width:100%!important;min-width:0!important;}
body .lfdc-layout-picker{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;width:100%!important;margin-top:7px!important;}
body .lfdc-layout-picker::before, body .lfdc-layout-picker::after{content:none!important;display:none!important;}
body .lfdc-layout-option{display:block!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;cursor:pointer!important;color:#493832!important;}
body .lfdc-layout-option>input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;}
body .lfdc-layout-option-body{display:flex!important;flex-direction:column!important;width:100%!important;min-height:100%!important;padding:7px 7px 10px!important;border:2px solid #e3d8d2!important;border-radius:15px!important;background:#fffdf9!important;box-shadow:0 3px 10px rgba(35,18,12,.04)!important;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease!important;}
body .lfdc-layout-option:hover .lfdc-layout-option-body{border-color:#c9b6ac!important;transform:translateY(-1px)!important;box-shadow:0 8px 20px rgba(35,18,12,.08)!important;}
body .lfdc-layout-option>input:focus-visible + .lfdc-layout-option-body{outline:3px solid rgba(223,115,56,.20)!important;outline-offset:2px!important;}
body .lfdc-layout-option>input:checked + .lfdc-layout-option-body{border-color:#df7338!important;background:#fff7f0!important;box-shadow:0 0 0 3px rgba(223,115,56,.12),0 8px 22px rgba(35,18,12,.08)!important;}
body .lfdc-layout-preview{margin:0 0 9px!important;border-radius:10px!important;}
body .lfdc-layout-preview img{margin:0!important;padding:0!important;}
body .lfdc-layout-option strong{display:block!important;margin:0!important;color:#3e2c25!important;font-size:.86rem!important;font-weight:900!important;line-height:1.18!important;}
body .lfdc-layout-option small{display:block!important;margin:4px 0 0!important;color:#806d64!important;font-size:.72rem!important;font-weight:600!important;line-height:1.28!important;}
@media (max-width:1050px){
  body .lfdc-layout-picker{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media (max-width:720px){
  body .lfdc-layout-option-body{border-radius:12px!important;}
  body .lfdc-layout-preview{margin-bottom:7px!important;border-radius:8px!important;}
}
@media (max-width:390px){
  body .lfdc-layout-picker{grid-template-columns:1fr!important;}
}
body .lfdc-layout-preview{display:block!important;width:100%!important;height:auto!important;min-height:90px!important;aspect-ratio:16/9!important;overflow:hidden!important;background:#f2e9df!important;border:1px solid #e4d7cc!important;}
body .lfdc-layout-preview img{display:block!important;visibility:visible!important;opacity:1!important;width:100%!important;max-width:none!important;height:auto!important;min-height:90px!important;aspect-ratio:16/9!important;object-fit:cover!important;position:static!important;transform:none!important;}
@media (max-width:720px){
  body .lfdc-layout-preview, body .lfdc-layout-preview img{min-height:74px!important;}
}
body .lfdc-version-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:center!important;min-height:28px!important;padding:4px 9px!important;margin-left:auto!important;border-radius:999px!important;background:#f4e9e2!important;color:#6d5145!important;font-size:.72rem!important;font-weight:800!important;letter-spacing:.02em!important;white-space:nowrap!important;}
@media (max-width:720px){
  body .lfdc-layout-picker{grid-template-columns:1fr!important;gap:12px!important;}
  body .lfdc-layout-option-body{display:grid!important;grid-template-columns:minmax(118px,42%) minmax(0,1fr)!important;grid-template-rows:auto 1fr!important;column-gap:12px!important;align-items:start!important;padding:7px!important;}
  body .lfdc-layout-preview{grid-column:1!important;grid-row:1/3!important;margin:0!important;min-height:86px!important;}
  body .lfdc-layout-preview img{min-height:86px!important;}
  body .lfdc-layout-option strong{grid-column:2!important;grid-row:1!important;font-size:.9rem!important;padding-top:3px!important;}
  body .lfdc-layout-option small{grid-column:2!important;grid-row:2!important;font-size:.72rem!important;margin-top:5px!important;}
  body .lfdc-version-badge{flex-basis:100%!important;margin:2px 0 0 auto!important;justify-self:end!important;}
}
@media (max-width:430px){
  body .lfdc-layout-option-body{grid-template-columns:112px minmax(0,1fr)!important;}
}
body .lfdc-layout-accordion{width:100%!important;margin-top:7px!important;border:1px solid #e2d3ca!important;border-radius:16px!important;overflow:hidden!important;background:#fffdf9!important;box-shadow:0 4px 14px rgba(44,24,15,.05)!important;}
body .lfdc-layout-accordion-current{appearance:none!important;-webkit-appearance:none!important;display:grid!important;grid-template-columns:minmax(150px,240px) minmax(0,1fr) auto!important;gap:16px!important;align-items:center!important;width:100%!important;margin:0!important;padding:12px!important;border:0!important;border-radius:0!important;background:#fffdf9!important;color:#3e2c25!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important;}
body .lfdc-layout-accordion-current:hover{background:#fff8f2!important;}
body .lfdc-layout-accordion-current:focus-visible{outline:3px solid rgba(223,115,56,.22)!important;outline-offset:-3px!important;}
body .lfdc-layout-current-preview{display:block!important;width:100%!important;aspect-ratio:16/9!important;overflow:hidden!important;border:1px solid #e4d7cc!important;border-radius:11px!important;background:#f2e9df!important;}
body .lfdc-layout-current-preview img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important;}
body .lfdc-layout-current-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-width:0!important;}
body .lfdc-layout-current-copy>small{margin:0 0 3px!important;color:#a15b37!important;font-size:.72rem!important;font-weight:900!important;letter-spacing:.08em!important;text-transform:uppercase!important;}
body .lfdc-layout-current-copy>strong{color:#3f2b23!important;font-size:1.08rem!important;line-height:1.2!important;}
body .lfdc-layout-current-copy>span{margin-top:4px!important;color:#806d64!important;font-size:.82rem!important;line-height:1.35!important;}
body .lfdc-layout-current-copy>em{display:inline-flex!important;margin-top:8px!important;padding:4px 8px!important;border-radius:999px!important;background:#f5e8df!important;color:#6d5145!important;font-size:.69rem!important;font-style:normal!important;font-weight:800!important;}
body .lfdc-layout-accordion-action{display:flex!important;align-items:center!important;gap:7px!important;padding:9px 11px!important;border:1px solid #df7338!important;border-radius:999px!important;color:#9b421b!important;background:#fff5ed!important;white-space:nowrap!important;}
body .lfdc-layout-accordion-action b{font-size:.78rem!important;}
body .lfdc-layout-accordion-action>span{display:inline-block!important;font-size:1rem!important;line-height:1!important;transition:transform .18s ease!important;}
body .lfdc-layout-accordion.is-open .lfdc-layout-accordion-action>span{transform:rotate(180deg)!important;}
body .lfdc-layout-accordion-panel{padding:14px!important;border-top:1px solid #eadfd8!important;background:#fbf7f3!important;}
body .lfdc-layout-accordion-panel[hidden]{display:none!important;}
body .lfdc-layout-accordion-head{display:flex!important;flex-direction:column!important;gap:2px!important;margin:0 0 12px!important;}
body .lfdc-layout-accordion-head strong{color:#4a332a!important;font-size:.94rem!important;}
body .lfdc-layout-accordion-head span{color:#816d63!important;font-size:.78rem!important;}
body .lfdc-layout-accordion-panel .lfdc-layout-picker{margin-top:0!important;}
@media (max-width:720px){
  body .lfdc-layout-accordion-current{grid-template-columns:118px minmax(0,1fr)!important;gap:11px!important;padding:9px!important;}
  body .lfdc-layout-accordion-action{grid-column:1/-1!important;justify-content:center!important;width:100%!important;margin-top:1px!important;}
  body .lfdc-layout-current-copy>strong{font-size:.96rem!important;}
  body .lfdc-layout-current-copy>span{font-size:.74rem!important;}
  body .lfdc-layout-accordion-panel{padding:10px!important;}
}
body .lfdc-gallery-status-form{display:inline-flex!important;margin:0!important;padding:0!important;}
body .lfdc-status-toggle{white-space:nowrap!important;}
body .lfdc-status-toggle.is-to-draft{border-color:#d7b48a!important;background:#fff8ee!important;color:#7d4b13!important;}
body .lfdc-status-toggle.is-to-draft:hover{border-color:#c58f50!important;background:#fff0d8!important;color:#6e3d09!important;}
@media (max-width:720px){
  body .lfdc-gallery-status-form{flex:0 1 auto!important;}
  body .lfdc-status-toggle{min-height:40px!important;padding:9px 11px!important;font-size:.82rem!important;}
}
body #lfdc-manager-dialog .lfdc-dialog-actions .lfdc-dialog-ok{display:inline-flex!important;visibility:visible!important;opacity:1!important;position:static!important;transform:none!important;pointer-events:auto!important;align-items:center!important;justify-content:center!important;min-width:150px!important;min-height:42px!important;margin:0!important;padding:10px 14px!important;border:1px solid #df7338!important;background:#df7338!important;color:#fff!important;box-shadow:none!important;font-weight:800!important;line-height:1.2!important;}
body #lfdc-manager-dialog .lfdc-dialog-actions .lfdc-dialog-ok:hover, body #lfdc-manager-dialog .lfdc-dialog-actions .lfdc-dialog-ok:focus{border-color:#bd5926!important;background:#bd5926!important;color:#fff!important;}
@media (max-width:720px){
  body #lfdc-manager-dialog .lfdc-dialog-actions .lfdc-btn{width:100%!important;min-width:0!important;flex:none!important;}
}
@media (max-width:720px){
  body #lfdc-manager-dialog .lfdc-dialog-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:auto!important;align-items:stretch!important;gap:10px!important;}
  body #lfdc-manager-dialog .lfdc-dialog-actions .lfdc-dialog-ok{grid-column:1!important;grid-row:1!important;justify-self:stretch!important;align-self:stretch!important;width:100%!important;height:auto!important;min-height:48px!important;margin:0!important;}
  body #lfdc-manager-dialog .lfdc-dialog-actions .lfdc-dialog-cancel{grid-column:2!important;grid-row:1!important;justify-self:stretch!important;align-self:stretch!important;width:100%!important;height:auto!important;min-height:48px!important;margin:0!important;}
}
body #lfdc-selection-actions[hidden], body #lfdc-bulk-group-fields[hidden]{display:none!important;}
body .lfdc-selection-actions{display:grid!important;grid-template-columns:auto minmax(210px,280px) minmax(180px,250px) auto!important;align-items:center!important;gap:8px!important;flex:1 1 620px!important;min-width:0!important;margin:0!important;padding:9px!important;border:1px solid #ead8ca!important;border-radius:12px!important;background:#fffaf5!important;}
body .lfdc-selection-count{display:flex!important;align-items:center!important;gap:4px!important;min-height:44px!important;padding:0 6px!important;}
body .lfdc-selection-count strong{color:#9b421b!important;font-size:1rem!important;}
body #lfdc-bulk-action, body #lfdc-bulk-group{width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;}
body .lfdc-bulk-group-fields{display:block!important;min-width:0!important;margin:0!important;}
body #lfdc-run-bulk-action{width:auto!important;min-width:140px!important;min-height:44px!important;margin:0!important;white-space:nowrap!important;}
body #lfdc-run-bulk-action.is-danger{border-color:#a33a32!important;background:#a33a32!important;color:#fff!important;}
body #lfdc-run-bulk-action:disabled{opacity:.55!important;cursor:not-allowed!important;}
@media (max-width:720px){
  body .lfdc-selection-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;margin-top:10px!important;padding:10px!important;}
  body .lfdc-selection-count{min-height:0!important;padding:2px 2px 4px!important;white-space:normal!important;}
  body #lfdc-bulk-action, body #lfdc-bulk-group, body #lfdc-run-bulk-action{grid-column:1!important;grid-row:auto!important;width:100%!important;min-width:0!important;min-height:48px!important;}
}
body .lfdc-upload-box{flex-direction:column!important;}
body .lfdc-photo-workspace .lfdc-dropzone{min-height:0!important;margin:0!important;padding:16px!important;border-radius:14px!important;background:#fff!important;}
body .lfdc-import-group-label{display:grid!important;gap:6px!important;margin:0 0 0 40px!important;color:#493832!important;font-size:.78rem!important;font-weight:850!important;}
body .lfdc-import-group-label select{width:100%!important;min-height:46px!important;margin:0!important;border:1px solid #dcd2ce!important;border-radius:11px!important;background:#fff!important;color:#30241f!important;padding:10px 12px!important;font-size:16px!important;}
body .lfdc-media-filters{display:grid!important;gap:10px!important;margin:0 0 12px!important;padding:12px!important;border:1px solid #eadfd9!important;border-radius:14px!important;background:#fcfaf9!important;}
body .lfdc-media-filters-head > div{display:flex!important;align-items:baseline!important;flex-wrap:wrap!important;gap:6px 10px!important;}
body .lfdc-media-filters-head strong{color:#382922!important;font-size:.9rem!important;}
body .lfdc-media-filters-head span{color:#88746c!important;font-size:.74rem!important;font-weight:750!important;}
body .lfdc-filter-reset{width:auto!important;min-width:0!important;margin:0!important;}
body .lfdc-filter-reset:disabled{opacity:.45!important;cursor:not-allowed!important;}
body .lfdc-media-filter-grid{display:grid!important;grid-template-columns:minmax(220px,1.6fr) repeat(3,minmax(150px,1fr))!important;}
body .lfdc-media-filter-grid label{display:grid!important;gap:5px!important;min-width:0!important;margin:0!important;}
body .lfdc-media-filter-grid label > span{color:#6d554b!important;font-size:.72rem!important;font-weight:850!important;}
body .lfdc-media-filter-grid input, body .lfdc-media-filter-grid select{width:100%!important;min-width:0!important;margin:0!important;border:1px solid #dcd2ce!important;border-radius:10px!important;background:#fff!important;color:#30241f!important;font-size:15px!important;box-shadow:none!important;}
body .lfdc-media-filter-grid input:focus, body .lfdc-media-filter-grid select:focus{outline:3px solid rgba(223,115,56,.14)!important;border-color:#b85c32!important;}
body #lfdc-gallery-media.is-filtered .lfdc-photo-order-controls{opacity:.55!important;}
@media (max-width:980px){
  body .lfdc-media-filter-grid{grid-template-columns:1fr 1fr!important;}
  body .lfdc-media-search{grid-column:1 / -1!important;}
}
@media (max-width:720px){
  body .lfdc-import-group-label{margin-left:0!important;}
  body .lfdc-media-filters{margin-bottom:10px!important;padding:9px!important;gap:8px!important;border-radius:12px!important;}
  body .lfdc-media-filters-head{align-items:center!important;gap:6px!important;}
  body .lfdc-media-filters-head > div{display:flex!important;align-items:baseline!important;flex-wrap:wrap!important;gap:2px 8px!important;min-width:0!important;}
  body .lfdc-media-filters-head strong{font-size:.84rem!important;line-height:1.1!important;}
  body .lfdc-media-filters-head span{font-size:.68rem!important;white-space:nowrap!important;}
  body .lfdc-filter-reset{flex:0 0 auto!important;min-height:32px!important;padding:5px 8px!important;font-size:.7rem!important;border-radius:8px!important;}
  body .lfdc-media-filter-grid{align-items:end!important;}
  body .lfdc-media-search{grid-column:1 / -1!important;}
  body .lfdc-media-filter-grid label{gap:0!important;}
  body .lfdc-media-filter-grid label > span{display:none!important;}
  body .lfdc-media-filter-grid input, body .lfdc-media-filter-grid select{height:40px!important;border-radius:9px!important;line-height:1.1!important;}
  body .lfdc-media-filter-grid select{padding-right:22px!important;}
}
/* Barre d'actions sous les filtres. */
@media (max-width:720px){
  body .lfdc-photo-library > .lfdc-bulk-toolbar #lfdc-select-all{min-width:0!important;}
  body .lfdc-photo-library > .lfdc-bulk-toolbar .lfdc-selection-actions{width:100%!important;margin-top:10px!important;}
}
body .lfdc-photo-library > .lfdc-bulk-toolbar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;margin:0 0 12px!important;padding:0!important;}
body .lfdc-photo-library > .lfdc-bulk-toolbar #lfdc-select-all{flex:0 0 auto!important;width:auto!important;min-width:150px!important;min-height:44px!important;margin:0!important;}
body .lfdc-photo-library > .lfdc-bulk-toolbar .lfdc-selection-actions{flex:1 1 620px!important;}
@media (max-width:720px){
  body .lfdc-photo-library > .lfdc-bulk-toolbar{display:block!important;width:100%!important;}
  body .lfdc-photo-library > .lfdc-bulk-toolbar #lfdc-select-all{display:flex!important;width:100%!important;min-height:48px!important;margin:0!important;}
}
body .lfdc-upload-box{display:grid!important;gap:14px!important;padding:18px!important;border:1px solid #eadfd9!important;border-radius:16px!important;background:#fffaf7!important;}
body .lfdc-import-heading{display:grid!important;gap:4px!important;margin:0!important;text-align:left!important;}
body .lfdc-import-heading strong{color:#3d2c25!important;font-size:1rem!important;line-height:1.25!important;}
body .lfdc-import-heading span{color:#89756c!important;font-size:.82rem!important;line-height:1.45!important;}
body .lfdc-photo-workspace .lfdc-upload-box .lfdc-dropzone{min-height:0!important;margin:0!important;padding:14px!important;border:2px dashed #d8c9c1!important;border-radius:14px!important;background:#fff!important;}
body .lfdc-upload-box .lfdc-import-group-label{display:grid!important;gap:6px!important;margin:0!important;color:#493832!important;font-size:.85rem!important;font-weight:850!important;}
body .lfdc-upload-box .lfdc-import-group-label small{display:block!important;margin:0!important;color:#89756c!important;font-size:.76rem!important;font-weight:500!important;line-height:1.4!important;}
body .lfdc-upload-box .lfdc-import-group-label select{width:100%!important;min-height:48px!important;margin:2px 0 0!important;border:1px solid #dcd2ce!important;border-radius:11px!important;background:#fff!important;color:#30241f!important;padding:10px 12px!important;font-size:16px!important;}
body .lfdc-upload-box .lfdc-import-submit{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:50px!important;margin:0!important;padding:12px 16px!important;white-space:normal!important;}
@media (max-width:720px){
  body .lfdc-upload-box{padding:14px!important;gap:12px!important;}
  body .lfdc-import-heading{text-align:center!important;}
  body .lfdc-upload-box .lfdc-import-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important;}
  body .lfdc-upload-box .lfdc-import-picker{width:100%!important;min-width:0!important;}
  body .lfdc-upload-box .lfdc-import-submit{width:100%!important;min-height:52px!important;}
}
body .lfdc-manager-shell{--lfdc-ui-bg:#fbf7f3;--lfdc-ui-card:#fffdfb;--lfdc-ui-border:#eadfd8;--lfdc-ui-text:#3f302b;--lfdc-ui-muted:#806f68;--lfdc-ui-orange:#df7338;--lfdc-ui-brown:#6f2018;}
body .lfdc-manager-topbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;padding:16px 18px!important;margin-bottom:18px!important;background:var(--lfdc-ui-card)!important;border:1px solid var(--lfdc-ui-border)!important;border-radius:18px!important;box-shadow:0 8px 24px rgba(82,26,21,.06)!important;}
body .lfdc-manager-brand h1{margin:0!important;font-size:1.35rem!important;line-height:1.15!important;color:var(--lfdc-ui-text)!important;}
body .lfdc-manager-brand p{margin:5px 0 0!important;font-size:.88rem!important;color:var(--lfdc-ui-muted)!important;}
body .lfdc-manager-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;width:auto!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;}
body .lfdc-manager-actions>.lfdc-btn{min-height:42px!important;width:auto!important;padding:9px 14px!important;border-radius:11px!important;white-space:nowrap!important;}
body .lfdc-manager-actions>.lfdc-btn.is-active{border-color:var(--lfdc-ui-orange)!important;box-shadow:0 0 0 3px rgba(223,115,56,.10)!important;}
body .lfdc-manager-actions>.lfdc-version-badge{margin-left:2px!important;}
body .lfdc-manager-action-edit .lfdc-manager-topbar{padding:10px 14px!important;}
body .lfdc-manager-action-edit .lfdc-manager-brand{display:none!important;}
body .lfdc-manager-action-edit .lfdc-manager-actions{width:100%!important;justify-content:flex-start!important;}
/* En-tête de l'album : édition et publication sont distinctes de la vue publique */
body .lfdc-album-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;padding:18px 20px!important;margin:0 0 10px!important;background:var(--lfdc-ui-card)!important;border:1px solid var(--lfdc-ui-border)!important;border-radius:18px!important;box-shadow:0 10px 26px rgba(82,26,21,.07)!important;}
body .lfdc-album-header-main{display:flex!important;align-items:center!important;gap:16px!important;min-width:0!important;}
body .lfdc-album-back{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;padding:7px 10px!important;border:1px solid var(--lfdc-ui-border)!important;border-radius:10px!important;background:#fff!important;color:#6a5148!important;font-weight:750!important;text-decoration:none!important;white-space:nowrap!important;}
body .lfdc-album-title-wrap{min-width:0!important;}
body .lfdc-album-title-wrap h2{margin:2px 0 6px!important;font-size:1.45rem!important;line-height:1.15!important;color:var(--lfdc-ui-text)!important;overflow-wrap:anywhere!important;}
body .lfdc-album-meta{display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important;color:var(--lfdc-ui-muted)!important;font-size:.82rem!important;font-weight:700!important;}
body .lfdc-album-header-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important;}
body .lfdc-album-header-actions form{margin:0!important;}
body .lfdc-album-header-actions .lfdc-btn{min-height:42px!important;padding:9px 13px!important;border-radius:11px!important;}
body .lfdc-preview-btn{background:#fff!important;border-color:#d8c9c1!important;color:#5c463e!important;}
/* Navigation interne volontairement limitée à 3 zones */
body .lfdc-editor-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;padding:6px!important;margin:0 0 12px!important;background:#f2eae5!important;border:1px solid var(--lfdc-ui-border)!important;border-radius:15px!important;overflow:visible!important;}
body .lfdc-editor-tab{width:100%!important;min-height:56px!important;padding:8px 12px!important;border:1px solid transparent!important;border-radius:11px!important;background:transparent!important;color:#6c5a53!important;box-shadow:none!important;}
body .lfdc-editor-tab.is-active{background:#fff!important;border-color:#e2d2ca!important;color:#5d251c!important;box-shadow:0 4px 12px rgba(82,26,21,.07)!important;}
body .lfdc-editor-tab span{font-size:.92rem!important;font-weight:850!important;}
body .lfdc-editor-tab small{font-size:.66rem!important;color:#927f77!important;}
body .lfdc-editor-tab.is-active small{color:#a25a37!important;}
/* Panneaux de travail repliables : import, groupes, filtres */
body details.lfdc-work-panel{display:block!important;margin:0 0 12px!important;padding:0!important;background:#fff!important;border:1px solid var(--lfdc-ui-border)!important;border-radius:14px!important;overflow:hidden!important;box-shadow:none!important;}
body details.lfdc-work-panel>summary{list-style:none!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:58px!important;padding:11px 14px!important;margin:0!important;cursor:pointer!important;background:#fff!important;color:var(--lfdc-ui-text)!important;border:0!important;}
body details.lfdc-work-panel>summary::-webkit-details-marker{display:none!important;}
body details.lfdc-work-panel>summary::marker{display:none!important;content:""!important;}
body details.lfdc-work-panel>summary::before, body details.lfdc-work-panel>summary::after{display:none!important;content:none!important;}
body details.lfdc-work-panel>summary>span:first-child{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;min-width:0!important;}
body details.lfdc-work-panel>summary strong{font-size:.98rem!important;line-height:1.2!important;color:var(--lfdc-ui-text)!important;}
body details.lfdc-work-panel>summary small{font-size:.75rem!important;line-height:1.25!important;color:var(--lfdc-ui-muted)!important;font-weight:650!important;}
body .lfdc-work-panel-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:34px!important;padding:6px 10px!important;border-radius:9px!important;background:#f6eee9!important;color:#6c3a2b!important;font-size:.76rem!important;font-weight:800!important;white-space:nowrap!important;}
body details.lfdc-work-panel[open]>summary{border-bottom:1px solid var(--lfdc-ui-border)!important;background:#fcf8f5!important;}
body details.lfdc-work-panel[open] .lfdc-work-panel-toggle{background:#fff1e7!important;color:#9a461f!important;}
body .lfdc-upload-panel .lfdc-upload-box{margin:0!important;padding:14px!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;}
body .lfdc-upload-panel .lfdc-import-heading{display:none!important;}
body .lfdc-upload-panel .lfdc-import-group-label small{font-size:.75rem!important;line-height:1.35!important;}
body .lfdc-upload-panel .lfdc-import-submit{width:100%!important;min-height:46px!important;}
body .lfdc-groups-inline{padding:14px!important;}
body .lfdc-groups-inline-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:12px!important;}
body .lfdc-groups-inline-head p{margin:0!important;color:var(--lfdc-ui-muted)!important;font-size:.86rem!important;line-height:1.4!important;}
body .lfdc-groups-inline-head .lfdc-btn{flex:0 0 auto!important;}
/* La médiathèque devient le centre de l'écran, pas l'import */
body .lfdc-photo-workspace{display:block!important;grid-template-columns:1fr!important;gap:12px!important;}
body .lfdc-photo-library{min-width:0!important;}
body .lfdc-order-note{display:block!important;margin-top:4px!important;font-size:.72rem!important;color:#97847c!important;}
/* Filtres avancés : fermés par défaut, comme une barre d'outils avancée */
body details.lfdc-media-filters{margin-bottom:10px!important;}
body .lfdc-media-filters-body{padding:12px!important;}
body .lfdc-media-filters-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:0 0 9px!important;padding:0!important;}
body .lfdc-media-filters-head>span{font-size:.78rem!important;color:var(--lfdc-ui-muted)!important;}
body .lfdc-media-filter-grid{gap:8px!important;}
body .lfdc-media-filter-grid label>span{font-size:.72rem!important;margin-bottom:3px!important;}
body .lfdc-media-filter-grid input, body .lfdc-media-filter-grid select{min-height:42px!important;padding:7px 9px!important;}
body .lfdc-filter-reset{min-height:34px!important;padding:6px 10px!important;font-size:.76rem!important;}
/* Sélection multiple : barre contextuelle seulement lorsqu'elle sert */
body .lfdc-bulk-toolbar{display:block!important;margin:8px 0 12px!important;}
body #lfdc-select-all{min-height:40px!important;padding:8px 12px!important;width:auto!important;}
body .lfdc-selection-actions:not([hidden]){display:grid!important;grid-template-columns:auto minmax(180px,1fr) minmax(150px,.7fr) auto!important;align-items:center!important;gap:8px!important;margin-top:8px!important;padding:9px!important;background:#fff7f2!important;border:1px solid #efd7ca!important;border-radius:12px!important;}
body .lfdc-selection-count{white-space:nowrap!important;font-size:.8rem!important;color:#6e554c!important;}
/* Création : un écran court, centré sur l'action principale */
body .lfdc-manager-action-new .lfdc-gallery-editor{max-width:900px!important;margin:0 auto!important;}
body .lfdc-manager-action-new .lfdc-tab-panel{min-height:0!important;}
/* Tableau des albums : l'action principale ouvre directement les médias */
body .lfdc-manager-gallery-card .lfdc-card-actions{display:flex!important;gap:8px!important;align-items:center!important;}
body .lfdc-manager-gallery-card .lfdc-card-actions .lfdc-btn-primary{flex:1!important;}
@media (max-width:720px){
  body .lfdc-manager-shell{padding:0 10px 32px!important;}
  body .lfdc-manager-topbar{padding:10px!important;border-radius:14px!important;margin-bottom:10px!important;}
  body .lfdc-manager-brand{display:none!important;}
  body .lfdc-manager-actions{display:grid!important;width:100%!important;gap:6px!important;}
  body .lfdc-manager-actions>.lfdc-btn{width:100%!important;min-width:0!important;min-height:44px!important;padding:7px 5px!important;font-size:.76rem!important;border-radius:10px!important;white-space:normal!important;line-height:1.15!important;}
  body .lfdc-manager-actions>.lfdc-version-badge{display:none!important;}
  body .lfdc-album-header{display:block!important;padding:13px!important;margin-bottom:8px!important;border-radius:14px!important;}
  body .lfdc-album-header-main{display:block!important;}
  body .lfdc-album-back{min-height:32px!important;padding:5px 8px!important;margin-bottom:10px!important;font-size:.75rem!important;}
  body .lfdc-album-title-wrap h2{font-size:1.2rem!important;margin:1px 0 5px!important;}
  body .lfdc-album-header-actions{display:grid!important;grid-template-columns:1fr 1fr!important;margin-top:12px!important;gap:7px!important;}
  body .lfdc-album-header-actions .lfdc-btn, body .lfdc-album-header-actions form, body .lfdc-album-header-actions form .lfdc-btn{width:100%!important;min-width:0!important;}
  body .lfdc-editor-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding:5px!important;border-radius:12px!important;}
  body .lfdc-editor-tab{min-width:0!important;min-height:50px!important;padding:6px 4px!important;border-radius:9px!important;}
  body .lfdc-editor-tab span{font-size:.82rem!important;}
  body .lfdc-editor-tab small{display:none!important;}
  body .lfdc-manager-card{padding:13px!important;border-radius:14px!important;}
  body .lfdc-media-heading{margin-bottom:10px!important;}
  body .lfdc-media-heading p{display:none!important;}
  body details.lfdc-work-panel{border-radius:12px!important;margin-bottom:9px!important;}
  body details.lfdc-work-panel>summary{min-height:52px!important;padding:9px 11px!important;}
  body details.lfdc-work-panel>summary strong{font-size:.9rem!important;}
  body details.lfdc-work-panel>summary small{font-size:.68rem!important;}
  body .lfdc-work-panel-toggle{min-height:30px!important;padding:4px 8px!important;font-size:.68rem!important;}
  body .lfdc-upload-panel .lfdc-upload-box{padding:10px!important;}
  body .lfdc-upload-panel .lfdc-dropzone{padding:10px!important;}
  body .lfdc-import-actions{gap:7px!important;}
  body .lfdc-import-picker{min-height:42px!important;}
  body .lfdc-groups-inline{padding:10px!important;}
  body .lfdc-groups-inline-head{align-items:stretch!important;flex-direction:column!important;}
  body .lfdc-groups-inline-head .lfdc-btn{width:100%!important;}
  body .lfdc-order-note{display:none!important;}
  body .lfdc-media-filters-body{padding:9px!important;}
  body .lfdc-media-filters-head{margin-bottom:7px!important;}
  body .lfdc-media-filters-head>span{display:none!important;}
  body .lfdc-media-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;}
  body .lfdc-media-filter-grid .lfdc-media-search{grid-column:1/-1!important;}
  body .lfdc-media-filter-grid label>span{display:none!important;}
  body .lfdc-media-filter-grid input, body .lfdc-media-filter-grid select{width:100%!important;min-width:0!important;min-height:38px!important;padding:6px!important;font-size:.72rem!important;}
  body #lfdc-select-all{width:100%!important;}
  body .lfdc-selection-actions:not([hidden]){grid-template-columns:1fr!important;}
  body .lfdc-selection-count{text-align:center!important;}
  body .lfdc-selection-actions select, body .lfdc-selection-actions .lfdc-btn{width:100%!important;}
  body .lfdc-manager-action-new .lfdc-section-heading p{font-size:.82rem!important;line-height:1.35!important;}
}
body .lfdc-editor-tabs::before, body .lfdc-editor-tabs::after, body .lfdc-manager-actions::before, body .lfdc-manager-actions::after{display:none!important;content:none!important;}
body .lfdc-wizard-progress{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:0 0 14px!important;}
body .lfdc-wizard-progress-inline{margin:0 0 18px!important;}
body .lfdc-wizard-step{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;padding:9px 11px!important;border:1px solid #e5d8d0!important;border-radius:12px!important;background:#fbf8f5!important;color:#8c776d!important;}
body .lfdc-wizard-step>span{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 28px!important;width:28px!important;height:28px!important;border-radius:999px!important;background:#eee5df!important;color:#795f54!important;font-size:.78rem!important;font-weight:900!important;}
body .lfdc-wizard-step>strong{font-size:.82rem!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body .lfdc-wizard-step.is-current{border-color:#df7338!important;background:#fff4ec!important;color:#6b2a13!important;box-shadow:0 0 0 2px rgba(223,115,56,.10)!important;}
body .lfdc-wizard-step.is-current>span{background:#df7338!important;color:#fff!important;}
body .lfdc-wizard-step.is-done{border-color:#d9c6b8!important;background:#fffdf9!important;color:#62473c!important;}
body .lfdc-wizard-step.is-done>span{background:#6f8d55!important;color:#fff!important;}
body .lfdc-title-first input{font-size:1.08rem!important;font-weight:750!important;}
body .lfdc-wizard-actions{display:flex!important;justify-content:flex-end!important;}
body .lfdc-next-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-width:210px!important;}
body .lfdc-wizard-footer{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-top:18px!important;padding-top:16px!important;border-top:1px solid #eadfd8!important;}
body .is-creation-wizard .lfdc-album-header-actions{display:none!important;}
body .is-creation-wizard .lfdc-album-header{margin-bottom:10px!important;}
body .lfdc-wizard-style-picker>.lfdc-layout-picker{margin-top:10px!important;}
body .lfdc-wizard-style-picker .lfdc-layout-option-body{background:#fff!important;}
@media (max-width:720px){
  body .lfdc-wizard-progress{gap:5px!important;margin-bottom:10px!important;}
  body .lfdc-wizard-step{justify-content:center!important;padding:7px 4px!important;gap:5px!important;}
  body .lfdc-wizard-step>span{width:24px!important;height:24px!important;flex-basis:24px!important;font-size:.7rem!important;}
  body .lfdc-wizard-step>strong{font-size:.67rem!important;}
  body .lfdc-title-first input{font-size:1rem!important;}
  body .lfdc-wizard-actions .lfdc-next-btn{width:100%!important;min-width:0!important;}
  body .lfdc-wizard-footer{display:grid!important;grid-template-columns:1fr!important;}
  body .lfdc-wizard-footer .lfdc-btn{width:100%!important;}
  body .is-creation-wizard .lfdc-album-header{padding:10px 12px!important;}
  body .is-creation-wizard .lfdc-album-header .lfdc-album-meta{display:none!important;}
  body .lfdc-wizard-style-picker .lfdc-layout-picker{grid-template-columns:1fr 1fr!important;gap:8px!important;}
}
body .is-creation-wizard .lfdc-wizard-footer{position:static!important;bottom:8px!important;z-index:30!important;padding:12px!important;border:1px solid #ead7cc!important;border-radius:14px!important;background:rgba(255,253,249,.96)!important;box-shadow:0 8px 24px rgba(58,29,18,.12)!important;backdrop-filter:blur(8px)!important;}
body .lfdc-manager-shell .lfdc-editor-app .lfdc-wizard-progress, body .lfdc-manager-shell .lfdc-gallery-editor .lfdc-wizard-progress{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row!important;width:100%!important;max-width:none!important;align-items:stretch!important;gap:8px!important;}
body .lfdc-manager-shell .lfdc-editor-app .lfdc-wizard-step, body .lfdc-manager-shell .lfdc-gallery-editor .lfdc-wizard-step{width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;align-self:stretch!important;}
body .lfdc-manager-shell details.lfdc-work-panel>summary{grid-template-columns:1fr!important;}
body .lfdc-manager-shell details.lfdc-work-panel>summary>span:first-child{width:100%!important;}
body .lfdc-media-heading h2 #lfdc-media-total-count{display:inline!important;font:inherit!important;font-weight:700!important;color:#8f786f!important;white-space:nowrap!important;}
body .lfdc-media-heading .lfdc-order-note{display:block!important;margin-top:8px!important;color:#8f786f!important;font-size:.78rem!important;font-weight:650!important;}
@media (max-width:720px){
  body .lfdc-manager-shell .lfdc-editor-app .lfdc-wizard-progress, body .lfdc-manager-shell .lfdc-gallery-editor .lfdc-wizard-progress{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;}
  body .lfdc-manager-shell .lfdc-editor-app .lfdc-wizard-step, body .lfdc-manager-shell .lfdc-gallery-editor .lfdc-wizard-step{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:3px!important;padding:7px 2px!important;min-height:58px!important;overflow:hidden!important;}
  body .lfdc-manager-shell .lfdc-editor-app .lfdc-wizard-step>strong, body .lfdc-manager-shell .lfdc-gallery-editor .lfdc-wizard-step>strong{width:100%!important;text-align:center!important;font-size:.64rem!important;overflow:visible!important;text-overflow:clip!important;}
  body .lfdc-media-heading h2{line-height:1.2!important;}
  body .lfdc-media-heading h2 #lfdc-media-total-count{font-size:.78em!important;}
}
body .lfdc-upload-panel .lfdc-import-group-label{display:block!important;margin:0 0 12px!important;}
body .lfdc-upload-panel .lfdc-import-group-label>span{display:block!important;font-weight:850!important;color:var(--lfdc-ui-text)!important;}
body .lfdc-upload-panel .lfdc-import-group-label small{display:block!important;margin:0 0 8px!important;}
body .lfdc-upload-panel .lfdc-dropzone{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;margin:0!important;padding:0!important;min-height:0!important;}
body .lfdc-upload-panel .lfdc-dropzone:hover, body .lfdc-upload-panel .lfdc-dropzone.is-drag{border:0!important;background:transparent!important;box-shadow:none!important;}
body .lfdc-upload-panel .lfdc-import-actions{margin:0 0 10px!important;}
body .lfdc-upload-panel .lfdc-import-picker{background:#fff!important;color:var(--lfdc-ui-text)!important;border:1px solid var(--lfdc-ui-border)!important;box-shadow:none!important;}
body .lfdc-upload-panel .lfdc-import-picker:hover{background:#fcf8f5!important;color:var(--lfdc-ui-text)!important;}
body .lfdc-upload-panel .lfdc-upload-selection{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:40px!important;margin:0 0 8px!important;padding:8px 10px!important;border-radius:10px!important;}
body .lfdc-upload-panel .lfdc-import-submit{margin-top:0!important;}
@media (max-width:720px){
  body .lfdc-upload-panel .lfdc-import-picker{padding:7px 6px!important;white-space:normal!important;}
}
body .lfdc-upload-panel .lfdc-import-group-label>span{margin-bottom:8px!important;}
body .lfdc-upload-panel .lfdc-import-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;align-items:stretch!important;}
body .lfdc-upload-panel .lfdc-import-picker{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:46px!important;height:46px!important;margin:0!important;padding:8px!important;text-align:center!important;}
@media (max-width:720px){
  body .lfdc-upload-panel .lfdc-import-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:7px!important;}
  body .lfdc-upload-panel .lfdc-import-picker{height:44px!important;min-height:44px!important;font-size:.74rem!important;line-height:1.1!important;}
}
body .lfdc-manager-shell .lfdc-editor-app.is-creation-wizard > .lfdc-wizard-progress::before, body .lfdc-manager-shell .lfdc-editor-app.is-creation-wizard > .lfdc-wizard-progress::after, body .lfdc-manager-shell .lfdc-gallery-editor .lfdc-wizard-progress::before, body .lfdc-manager-shell .lfdc-gallery-editor .lfdc-wizard-progress::after, body .lfdc-manager-shell .lfdc-wizard-footer::before, body .lfdc-manager-shell .lfdc-wizard-footer::after{content:none!important;display:none!important;}
body .lfdc-manager-shell .lfdc-editor-app.is-creation-wizard > .lfdc-wizard-progress, body .lfdc-manager-shell .lfdc-gallery-editor .lfdc-wizard-progress{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:1fr!important;grid-auto-columns:minmax(0,1fr)!important;grid-auto-flow:column!important;width:100%!important;max-width:none!important;gap:8px!important;flex-wrap:nowrap!important;}
body .lfdc-manager-shell .lfdc-editor-app.is-creation-wizard > .lfdc-wizard-progress > .lfdc-wizard-step, body .lfdc-manager-shell .lfdc-gallery-editor .lfdc-wizard-progress > .lfdc-wizard-step{grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;float:none!important;clear:none!important;}
body .lfdc-manager-shell .lfdc-wizard-footer{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)!important;align-items:stretch!important;gap:10px!important;}
body .lfdc-manager-shell .lfdc-wizard-footer > .lfdc-btn{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;height:auto!important;min-height:48px!important;margin:0!important;white-space:normal!important;text-align:center!important;}
@media (max-width:720px){
  body .lfdc-manager-shell .lfdc-editor-app.is-creation-wizard > .lfdc-wizard-progress, body .lfdc-manager-shell .lfdc-gallery-editor .lfdc-wizard-progress{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:1fr!important;grid-auto-flow:column!important;gap:6px!important;}
  body .lfdc-manager-shell .lfdc-wizard-footer{display:grid!important;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)!important;gap:7px!important;}
  body .lfdc-manager-shell .lfdc-wizard-footer > .lfdc-btn{min-height:48px!important;padding:8px 7px!important;font-size:.76rem!important;line-height:1.15!important;}
}
body .lfdc-manager-shell .is-creation-wizard > .lfdc-wizard-progress{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:1fr!important;grid-auto-flow:column!important;flex-wrap:nowrap!important;}
body .lfdc-manager-shell .is-creation-wizard > .lfdc-wizard-progress > .lfdc-wizard-step:nth-child(1){grid-column:1!important;grid-row:1!important;}
body .lfdc-manager-shell .is-creation-wizard > .lfdc-wizard-progress > .lfdc-wizard-step:nth-child(2){grid-column:2!important;grid-row:1!important;}
body .lfdc-manager-shell .is-creation-wizard > .lfdc-wizard-progress > .lfdc-wizard-step:nth-child(3){grid-column:3!important;grid-row:1!important;}
body .lfdc-manager-shell .lfdc-wizard-footer-two{display:grid!important;grid-template-rows:1fr!important;gap:7px!important;}
body .lfdc-manager-shell .lfdc-wizard-footer-two > .lfdc-btn{width:100%!important;min-width:0!important;margin:0!important;}
@media (max-width:720px){
  body .lfdc-manager-shell .is-creation-wizard > .lfdc-wizard-progress{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body .lfdc-manager-shell .lfdc-wizard-footer-two{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)!important;}
}
body .lfdc-manager-shell .lfdc-wizard-step{appearance:none!important;-webkit-appearance:none!important;border:1px solid #dfd2ca!important;font:inherit!important;cursor:pointer!important;text-align:center!important;}
body .lfdc-manager-shell .lfdc-wizard-step:hover{border-color:#c9ad9d!important;transform:translateY(-1px)!important;}
body .lfdc-manager-shell .lfdc-wizard-footer-two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;}
body .lfdc-manager-shell .lfdc-wizard-footer-last{display:grid!important;grid-template-columns:minmax(0,1fr)!important;}
/* Import : neutralise le cadre pointillé historique et verrouille les deux boutons sur une ligne. */
body .lfdc-manager-shell details.lfdc-upload-panel .lfdc-upload-box .lfdc-dropzone{display:block!important;width:100%!important;min-height:0!important;margin:0 0 10px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;}
body .lfdc-manager-shell details.lfdc-upload-panel .lfdc-upload-box .lfdc-import-actions{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:stretch!important;justify-content:stretch!important;gap:8px!important;width:100%!important;margin:0!important;padding:0!important;}
body .lfdc-manager-shell details.lfdc-upload-panel .lfdc-upload-box .lfdc-import-picker{position:relative!important;inset:auto!important;float:none!important;clear:none!important;transform:none!important;flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;height:46px!important;min-height:46px!important;margin:0!important;padding:8px 6px!important;}
/* Assistant Style : deux cartes propres par ligne, image au-dessus, texte jamais comprimé. */
@media (max-width:720px){
  body .lfdc-manager-shell details.lfdc-upload-panel .lfdc-upload-box .lfdc-import-actions{display:flex!important;flex-direction:row!important;gap:7px!important;}
  body .lfdc-manager-shell details.lfdc-upload-panel .lfdc-upload-box .lfdc-import-picker{flex:1 1 0!important;width:0!important;height:44px!important;min-height:44px!important;font-size:.72rem!important;white-space:nowrap!important;}
  body .lfdc-manager-shell .lfdc-wizard-style-picker .lfdc-layout-picker{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important;}
  body .lfdc-manager-shell .lfdc-wizard-style-picker .lfdc-layout-option{display:block!important;min-width:0!important;width:100%!important;}
  body .lfdc-manager-shell .lfdc-wizard-style-picker .lfdc-layout-option-body{display:flex!important;flex-direction:column!important;align-items:stretch!important;min-width:0!important;width:100%!important;padding:6px!important;}
  body .lfdc-manager-shell .lfdc-wizard-style-picker .lfdc-layout-preview{display:block!important;width:100%!important;min-width:0!important;min-height:0!important;aspect-ratio:16/9!important;margin:0 0 6px!important;grid-column:auto!important;grid-row:auto!important;}
  body .lfdc-manager-shell .lfdc-wizard-style-picker .lfdc-layout-preview img{width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:16/9!important;object-fit:cover!important;}
  body .lfdc-manager-shell .lfdc-wizard-style-picker .lfdc-layout-option strong{display:block!important;width:100%!important;min-width:0!important;padding:0!important;margin:0!important;grid-column:auto!important;grid-row:auto!important;text-align:center!important;font-size:.74rem!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;}
  body .lfdc-manager-shell .lfdc-wizard-style-picker .lfdc-layout-option small{display:none!important;}
}
body .lfdc-manager-shell .lfdc-wizard-control-stack{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;margin-top:18px!important;padding-top:16px!important;border-top:1px solid #eadfd8!important;}
body .lfdc-manager-shell .lfdc-wizard-control-stack .lfdc-wizard-footer{margin-top:0!important;padding-top:0!important;border-top:0!important;}
body .lfdc-manager-shell .lfdc-wizard-control-stack .lfdc-wizard-actions{margin:0!important;padding:0!important;}
body .lfdc-manager-shell .lfdc-wizard-state-action{display:flex!important;justify-content:flex-end!important;width:100%!important;}
body .lfdc-manager-shell .lfdc-wizard-state-action .lfdc-btn{min-width:210px!important;margin:0!important;}
body .is-creation-wizard .lfdc-wizard-control-stack{position:sticky!important;bottom:8px!important;z-index:30!important;padding:12px!important;border:1px solid #ead7cc!important;border-radius:14px!important;background:rgba(255,253,249,.96)!important;box-shadow:0 8px 24px rgba(58,29,18,.12)!important;backdrop-filter:blur(8px)!important;}
body .is-creation-wizard .lfdc-wizard-control-stack .lfdc-wizard-footer{position:static!important;bottom:auto!important;z-index:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;}
@media (max-width:720px){
  body .lfdc-manager-shell .lfdc-wizard-state-action .lfdc-btn{width:100%!important;min-width:0!important;}
}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-card-actions{display:grid!important;width:100%!important;align-items:stretch!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-card-actions .lfdc-btn{display:flex!important;width:100%!important;margin:0!important;align-items:center!important;justify-content:center!important;text-align:center!important;white-space:nowrap!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-card-actions .lfdc-btn-primary{flex:none!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-card-actions .lfdc-btn.is-danger{border-color:#9b2d28!important;background:#fff9f8!important;color:#9b2d28!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-card-actions .lfdc-btn.is-danger:hover{background:#9b2d28!important;color:#fff!important;}
body .lfdc-manager-shell .lfdc-wizard-state-action .lfdc-status-toggle.is-to-draft{border-color:#8c2b20!important;background:#fff7f5!important;color:#8c2b20!important;}
body .lfdc-manager-shell .lfdc-wizard-state-action .lfdc-status-toggle.is-to-draft:hover{background:#8c2b20!important;color:#fff!important;}
@media (max-width:720px){
  body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-card-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
body #lfdc-upload-progress{max-height:none!important;overflow:visible!important;margin-top:12px!important;font-size:.88rem!important;}
body .lfdc-upload-progress-wrap{width:100%!important;padding:12px!important;border:1px solid var(--lfdc-ui-border,#ded6d0)!important;border-radius:10px!important;background:#fff!important;}
body .lfdc-upload-progress-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:8px!important;}
body .lfdc-upload-progress-head span{white-space:nowrap!important;font-variant-numeric:tabular-nums!important;}
body .lfdc-upload-progress-track{width:100%!important;height:14px!important;overflow:hidden!important;border-radius:999px!important;background:#eee7e2!important;}
body .lfdc-upload-progress-track>span{display:block!important;height:100%!important;min-width:0!important;border-radius:inherit!important;background:var(--lfdc-ui-accent,#8b2119)!important;transition:width .18s ease!important;}
body .lfdc-upload-progress-note{margin-top:7px!important;color:#6b5a4f!important;font-size:.82rem!important;}
body .lfdc-upload-failures{margin-top:10px!important;padding:12px!important;border:1px solid #d9a09a!important;border-radius:10px!important;background:#fff7f6!important;}
body .lfdc-upload-failures>strong{display:block!important;margin-bottom:8px!important;color:#8b2119!important;}
body .lfdc-upload-failures ul{margin:0 0 12px 18px!important;padding:0!important;}
body .lfdc-upload-failures li{margin:0 0 6px!important;overflow-wrap:anywhere!important;}
body .lfdc-upload-failures li small{display:block!important;color:#7b514c!important;}
body .lfdc-upload-failures .lfdc-btn{width:100%!important;}
body .lfdc-upload-progress-actions{display:flex!important;justify-content:flex-end!important;margin-top:10px!important;}
body .lfdc-upload-progress-actions .lfdc-btn{min-width:140px!important;}
@media (max-width:720px){
  body .lfdc-upload-progress-actions .lfdc-btn{width:100%!important;}
}
body .lfdc-manager-shell{--lfdc-action-bg:#6f2018;--lfdc-action-bg-hover:#521a15;--lfdc-action-text:#fff;--lfdc-action-radius:12px;--lfdc-danger:#9b2d28;--lfdc-danger-hover:#7b1f1b;}
body .lfdc-manager-shell .lfdc-btn, body .lfdc-manager-shell .lfdc-mini-btn, body .lfdc-dialog .lfdc-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:44px!important;padding:10px 15px!important;border:2px solid var(--lfdc-action-bg)!important;border-radius:var(--lfdc-action-radius)!important;background:var(--lfdc-action-bg)!important;color:var(--lfdc-action-text)!important;font:inherit!important;font-weight:850!important;line-height:1.15!important;text-decoration:none!important;text-align:center!important;box-shadow:none!important;cursor:pointer!important;transition:background .15s ease,border-color .15s ease,transform .15s ease,box-shadow .15s ease!important;}
body .lfdc-manager-shell .lfdc-btn:hover, body .lfdc-manager-shell .lfdc-mini-btn:hover, body .lfdc-dialog .lfdc-btn:hover{border-color:var(--lfdc-action-bg-hover)!important;background:var(--lfdc-action-bg-hover)!important;color:#fff!important;transform:translateY(-1px)!important;box-shadow:0 6px 16px rgba(82,26,21,.18)!important;}
body .lfdc-manager-shell .lfdc-btn:focus-visible, body .lfdc-manager-shell .lfdc-mini-btn:focus-visible, body .lfdc-dialog .lfdc-btn:focus-visible{outline:3px solid rgba(223,115,56,.28)!important;outline-offset:2px!important;}
body .lfdc-manager-shell .lfdc-btn:disabled, body .lfdc-manager-shell .lfdc-mini-btn:disabled, body .lfdc-dialog .lfdc-btn:disabled{border-color:#cfc5c0!important;background:#cfc5c0!important;color:#fff!important;opacity:.62!important;cursor:not-allowed!important;transform:none!important;box-shadow:none!important;}
/* Les anciennes variantes "primaire" et "brouillon" utilisent désormais le même bouton standard. */
body .lfdc-manager-shell .lfdc-btn-primary, body .lfdc-manager-shell .lfdc-status-toggle.is-to-draft, body .lfdc-manager-shell .lfdc-filter-reset, body .lfdc-manager-shell .lfdc-import-picker{border-color:var(--lfdc-action-bg)!important;background:var(--lfdc-action-bg)!important;color:#fff!important;}
body .lfdc-manager-shell .lfdc-btn-primary:hover, body .lfdc-manager-shell .lfdc-status-toggle.is-to-draft:hover, body .lfdc-manager-shell .lfdc-filter-reset:hover, body .lfdc-manager-shell .lfdc-import-picker:hover{border-color:var(--lfdc-action-bg-hover)!important;background:var(--lfdc-action-bg-hover)!important;color:#fff!important;}
/* Les boutons mini gardent seulement un format plus compact, pas une autre forme/couleur. */
body .lfdc-manager-shell .lfdc-mini-btn{min-height:38px!important;padding:8px 10px!important;border-radius:10px!important;font-size:.82rem!important;}
/* Navigation principale : conserve la taille de cellule, mais adopte les mêmes couleurs et arrondis. */
body .lfdc-manager-shell .lfdc-manager-actions .lfdc-btn{border-color:var(--lfdc-action-bg)!important;border-radius:var(--lfdc-action-radius)!important;background:var(--lfdc-action-bg)!important;color:#fff!important;}
body .lfdc-manager-shell .lfdc-manager-actions .lfdc-btn > small{color:rgba(255,255,255,.78)!important;}
body .lfdc-manager-shell .lfdc-manager-actions .lfdc-btn:hover, body .lfdc-manager-shell .lfdc-manager-actions .lfdc-btn.is-active, body .lfdc-manager-shell .lfdc-manager-actions .lfdc-btn-primary, body .lfdc-manager-shell .lfdc-manager-actions .lfdc-btn-primary.is-active{border-color:var(--lfdc-action-bg-hover)!important;background:var(--lfdc-action-bg-hover)!important;color:#fff!important;}
body .lfdc-manager-shell .lfdc-manager-actions .lfdc-btn:hover > small, body .lfdc-manager-shell .lfdc-manager-actions .lfdc-btn.is-active > small, body .lfdc-manager-shell .lfdc-manager-actions .lfdc-btn-primary > small, body .lfdc-manager-shell .lfdc-manager-actions .lfdc-btn-primary.is-active > small{color:rgba(255,255,255,.84)!important;}
/* Exception : suppression / confirmation destructrice. */
body .lfdc-manager-shell .lfdc-btn.is-danger, body .lfdc-manager-shell .lfdc-mini-btn.is-danger, body .lfdc-dialog .lfdc-dialog-ok.is-danger{border-color:var(--lfdc-danger)!important;background:var(--lfdc-danger)!important;color:#fff!important;}
body .lfdc-manager-shell .lfdc-btn.is-danger:hover, body .lfdc-manager-shell .lfdc-mini-btn.is-danger:hover, body .lfdc-dialog .lfdc-dialog-ok.is-danger:hover{border-color:var(--lfdc-danger-hover)!important;background:var(--lfdc-danger-hover)!important;color:#fff!important;}
body .lfdc-manager-shell .lfdc-card-actions, body .lfdc-manager-shell .lfdc-upload-progress-actions, body .lfdc-manager-shell .lfdc-selection-actions, body .lfdc-manager-shell .lfdc-album-header-actions, body .lfdc-manager-shell .lfdc-tab-actions, body .lfdc-manager-shell .lfdc-wizard-footer{gap:10px!important;}
body .lfdc-manager-shell .lfdc-card-actions .lfdc-btn, body .lfdc-manager-shell .lfdc-album-header-actions .lfdc-btn, body .lfdc-manager-shell .lfdc-tab-actions .lfdc-btn, body .lfdc-manager-shell .lfdc-wizard-footer .lfdc-btn, body .lfdc-manager-shell .lfdc-upload-progress-actions .lfdc-btn, body .lfdc-manager-shell .lfdc-selection-actions .lfdc-btn, body .lfdc-manager-shell .lfdc-import-actions .lfdc-btn, body .lfdc-manager-shell .lfdc-import-submit, body .lfdc-manager-shell #lfdc-select-all, body .lfdc-manager-shell #lfdc-run-bulk-action, body .lfdc-manager-shell #lfdc-reset-media-filters, body .lfdc-manager-shell #lfdc-add-group{min-height:44px!important;border-radius:12px!important;padding:10px 16px!important;font-weight:850!important;}
body .lfdc-manager-shell .lfdc-card-actions .lfdc-btn, body .lfdc-manager-shell .lfdc-album-header-actions .lfdc-btn{min-width:132px!important;}
@media (max-width:700px){
  body .lfdc-manager-shell .lfdc-card-actions .lfdc-btn, body .lfdc-manager-shell .lfdc-album-header-actions .lfdc-btn, body .lfdc-manager-shell .lfdc-tab-actions .lfdc-btn, body .lfdc-manager-shell .lfdc-wizard-footer .lfdc-btn, body .lfdc-manager-shell .lfdc-upload-progress-actions .lfdc-btn, body .lfdc-manager-shell .lfdc-selection-actions .lfdc-btn, body .lfdc-manager-shell .lfdc-import-actions .lfdc-btn, body .lfdc-manager-shell .lfdc-import-submit{width:100%!important;min-width:0!important;}
}
body .lfdc-manager-shell .lfdc-manager-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;align-items:start!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-card{min-width:0!important;overflow:hidden!important;border:1px solid #e1cfbb!important;border-radius:16px!important;background:#fff7e8!important;box-shadow:0 5px 16px rgba(72,42,25,.08)!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-gallery-order-controls, body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-manager-gallery-body{background:#fff7e8!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-gallery-order-controls{min-height:44px!important;padding:5px 7px!important;border-bottom:1px solid #eadcc9!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-order-handle, body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-order-arrow{min-width:34px!important;min-height:34px!important;padding:5px 7px!important;border-radius:9px!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-order-handle>span:last-child{display:none!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-cover{aspect-ratio:4/3!important;min-height:0!important;background:#eadfce!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-cover img{width:100%!important;height:100%!important;object-fit:cover!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-body{padding:11px!important;text-align:left!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-body .lfdc-status{padding:3px 7px!important;font-size:.66rem!important;line-height:1.1!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-body h2{margin:8px 0 5px!important;font-size:1rem!important;line-height:1.15!important;min-height:2.3em!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-body p{margin:4px 0!important;font-size:.78rem!important;line-height:1.25!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-body .lfdc-muted{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-card-actions{gap:5px!important;margin-top:9px!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-card-actions .lfdc-btn{min-height:36px!important;min-width:0!important;padding:6px 4px!important;border-radius:9px!important;font-size:.72rem!important;line-height:1.05!important;}
@media (max-width:1100px){
  body .lfdc-manager-shell .lfdc-manager-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;}
}
@media (max-width:720px){
  body .lfdc-manager-shell .lfdc-order-help{padding:9px 10px!important;margin-bottom:9px!important;}
  body .lfdc-manager-shell .lfdc-order-help>span:not(#lfdc-gallery-order-state){display:none!important;}
  body .lfdc-manager-shell .lfdc-manager-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}
  body .lfdc-manager-shell .lfdc-manager-gallery-card{border-radius:12px!important;}
  body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-gallery-order-controls{min-height:38px!important;padding:4px 5px!important;}
  body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-order-handle, body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-order-arrow{min-width:30px!important;min-height:30px!important;padding:3px 5px!important;}
  body .lfdc-manager-shell .lfdc-manager-gallery-body{padding:8px!important;}
  body .lfdc-manager-shell .lfdc-manager-gallery-body h2{font-size:.86rem!important;margin:6px 0 4px!important;}
  body .lfdc-manager-shell .lfdc-manager-gallery-body p{font-size:.68rem!important;margin:3px 0!important;}
  body .lfdc-manager-shell .lfdc-manager-gallery-body .lfdc-muted{display:none!important;}
  body .lfdc-manager-shell .lfdc-manager-gallery-body .lfdc-status{font-size:.58rem!important;padding:3px 5px!important;}
  body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-card-actions{gap:4px!important;margin-top:7px!important;}
  body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-card-actions .lfdc-btn{min-height:32px!important;padding:5px 2px!important;font-size:.61rem!important;border-radius:8px!important;}
}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-cover-placeholder{height:100%!important;min-height:0!important;}
body .lfdc-manager-shell .lfdc-media-loading{display:flex!important;min-height:180px!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:8px!important;padding:28px!important;border:1px dashed #d7c7bb!important;border-radius:14px!important;background:rgba(255,255,255,.5)!important;color:#5f3b32!important;text-align:center!important;}
body .lfdc-manager-shell .lfdc-media-loading strong{font-size:1rem!important;}
body .lfdc-manager-shell .lfdc-media-loading small{opacity:.68!important;max-width:420px!important;}
body .lfdc-manager-shell .lfdc-media-loading-spinner{width:26px!important;height:26px!important;border:3px solid rgba(111,32,24,.16)!important;border-top-color:#6f2018!important;border-radius:50%!important;animation:lfdc-media-spin .75s linear infinite!important;}
@keyframes lfdc-media-spin{to{transform:rotate(360deg)}}
body .lfdc-manager-actions>.lfdc-inbox-nav{gap:7px!important;}
body .lfdc-manager-actions>.lfdc-inbox-nav .lfdc-inbox-nav-count{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:23px!important;height:23px!important;padding:0 6px!important;border-radius:999px!important;background:rgba(255,255,255,.18)!important;color:inherit!important;font-size:.72rem!important;font-weight:900!important;line-height:1!important;}
body .lfdc-manager-actions>.lfdc-inbox-nav.is-active .lfdc-inbox-nav-count{background:rgba(255,255,255,.24)!important;}
@media (max-width:720px){
  body .lfdc-manager-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto auto!important;}
  body .lfdc-manager-actions>.lfdc-btn{grid-column:auto!important;grid-row:auto!important;}
}
body.lfdc-mask-editor-open{overflow:hidden;}
.lfdc-mask-editor-overlay{position:fixed;inset:0;z-index:1000000;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(26,19,16,.88);}
.lfdc-mask-editor-overlay.is-open{display:flex;}
.lfdc-mask-editor{display:flex;flex-direction:column;width:min(1050px,96vw);max-height:94vh;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.38);}
.lfdc-mask-editor-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:58px;padding:8px 12px 8px 16px;border-bottom:1px solid #e4d9d3;}
.lfdc-mask-editor-head h2{margin:0!important;font-size:clamp(1.18rem,2.2vw,1.55rem)!important;line-height:1.1!important;}
.lfdc-mask-editor-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:42px;height:42px;border:0;border-radius:10px;background:#f2e9e5;color:#5c2b22;font-size:28px;line-height:1;cursor:pointer;}
.lfdc-mask-editor-stage{display:flex;align-items:center;justify-content:center;background:#211d1b;}
.lfdc-mask-editor-stage canvas{display:block;cursor:crosshair;user-select:none;-webkit-user-select:none;box-shadow:0 4px 18px rgba(0,0,0,.35);}
.lfdc-mask-editor-tools{border-top:1px solid #e5dad4;}
.lfdc-mask-mode-buttons .lfdc-btn{background:#f3ebe7!important;border:1px solid #dacbc4!important;color:#68231d!important;}
.lfdc-mask-mode-buttons .lfdc-btn.is-active{background:#7d241c!important;border-color:#7d241c!important;color:#fff!important;}
.lfdc-mask-emoji-palette button{border:1px solid #d9cbc4;background:#fff;cursor:pointer;}
.lfdc-mask-emoji-palette button.is-active{border:2px solid #7d241c;background:#fff4ee;box-shadow:0 0 0 2px rgba(125,36,28,.10);}
#lfdc-mask-custom-emoji{border:1px solid #cfbfb8;background:#fff;font:inherit;}
#lfdc-mask-delete-zone:disabled, #lfdc-mask-undo-zone:disabled{opacity:.42!important;cursor:not-allowed!important;}
.lfdc-mask-actions>span{color:#675148;}
.lfdc-photo-buttons .lfdc-mask-photo{background:#fff8ef!important;border-color:#d8aa77!important;color:#743b19!important;}
.lfdc-photo-buttons .lfdc-restore-photo{background:#eef6ff!important;border-color:#9ab9d8!important;color:#284d70!important;}
@media (max-width:700px){
  .lfdc-mask-editor-head h2{font-size:1.05rem!important;}
  .lfdc-mask-emoji-control{gap:6px;}
  .lfdc-mask-toolbuttons .lfdc-btn:nth-child(3){grid-column:1/-1;}
  .lfdc-mask-actions .lfdc-btn, .lfdc-mask-toolbuttons .lfdc-btn, .lfdc-mask-mode-buttons .lfdc-btn{font-size:.78rem!important;padding:6px 8px!important;}
}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-card-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.lfdc-mask-editor{overflow-y:auto!important;-webkit-overflow-scrolling:touch;}
.lfdc-mask-editor-stage{flex:0 0 auto!important;min-height:320px!important;max-height:58vh!important;overflow:hidden!important;padding:6px!important;}
.lfdc-mask-editor-stage canvas{max-width:100%!important;max-height:56vh!important;width:auto!important;height:auto!important;touch-action:none!important;}
.lfdc-mask-emoji-palette{overflow-x:auto!important;scrollbar-width:thin;}
.lfdc-mask-emoji-palette button{flex:0 0 30px!important;}
@media (max-width:700px){
  .lfdc-mask-editor-overlay{padding:0!important;align-items:stretch!important;}
  .lfdc-mask-editor{width:100vw!important;height:100dvh!important;max-height:none!important;border-radius:0!important;overflow-y:auto!important;}
  .lfdc-mask-editor-head{position:sticky!important;top:0!important;z-index:4!important;min-height:48px!important;padding:5px 8px 5px 11px!important;background:#fff!important;}
  .lfdc-mask-editor-close{width:36px!important;height:36px!important;font-size:24px!important;}
  .lfdc-mask-editor-stage{overflow:hidden!important;}
  .lfdc-mask-editor-tools{flex:0 0 auto!important;}
  .lfdc-mask-mode-control, .lfdc-mask-blur-control{grid-template-columns:74px minmax(0,1fr)!important;gap:6px!important;}
  .lfdc-mask-mode-control>span, .lfdc-mask-blur-control>span{display:block!important;text-align:left!important;font-size:.70rem!important;}
  .lfdc-mask-emoji-control{display:none!important;grid-template-columns:minmax(0,1fr) 70px!important;}
  .lfdc-mask-emoji-control.is-visible{display:grid!important;}
  .lfdc-mask-emoji-palette{display:flex!important;overflow-x:auto!important;}
  .lfdc-mask-emoji-palette button{flex-basis:28px!important;}
  #lfdc-mask-custom-emoji{display:block!important;font-size:.65rem!important;}
  .lfdc-mask-toolbuttons{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  .lfdc-mask-toolbuttons .lfdc-btn{padding:3px 4px!important;}
  .lfdc-mask-actions{grid-template-columns:1fr 1fr!important;}
}
.lfdc-inbox-card-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;}
.lfdc-inbox-card-actions .lfdc-btn{width:100%!important;min-width:0!important;}
.lfdc-mask-editor-tools{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;padding:10px 12px 12px!important;align-items:stretch!important;justify-items:stretch!important;}
.lfdc-mask-mode-control, .lfdc-mask-blur-control{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:5px!important;width:100%!important;max-width:520px!important;margin:0 auto!important;align-items:center!important;}
.lfdc-mask-mode-control>span, .lfdc-mask-blur-control>span{display:block!important;width:100%!important;margin:0!important;text-align:center!important;font-size:.76rem!important;line-height:1.15!important;font-weight:800!important;color:#62463d!important;}
.lfdc-mask-mode-buttons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important;max-width:320px!important;margin:0 auto!important;}
.lfdc-mask-mode-buttons .lfdc-btn{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:none!important;height:34px!important;min-height:34px!important;margin:0!important;padding:4px 8px!important;border-radius:9px!important;font-size:.74rem!important;line-height:1!important;}
.lfdc-mask-emoji-control{display:none!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important;width:100%!important;max-width:520px!important;margin:0 auto!important;align-items:center!important;justify-items:center!important;}
.lfdc-mask-emoji-control.is-visible{display:grid!important;}
.lfdc-mask-emoji-palette{display:grid!important;grid-template-columns:repeat(8,30px)!important;gap:5px!important;width:auto!important;max-width:100%!important;margin:0 auto!important;padding:0!important;overflow:visible!important;justify-content:center!important;align-items:center!important;}
.lfdc-mask-emoji-palette button{display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important;margin:0!important;padding:0!important;border-radius:7px!important;font-size:.95rem!important;line-height:1!important;}
#lfdc-mask-custom-emoji{display:block!important;box-sizing:border-box!important;width:120px!important;min-width:120px!important;max-width:120px!important;height:32px!important;min-height:32px!important;margin:0 auto!important;padding:3px 8px!important;border-radius:8px!important;text-align:center!important;font-size:.72rem!important;}
.lfdc-mask-blur-control input[type=range]{display:block!important;width:100%!important;max-width:320px!important;min-width:0!important;margin:0 auto!important;}
.lfdc-mask-blur-control.is-hidden{display:none!important;}
.lfdc-mask-toolbuttons{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;max-width:520px!important;margin:0 auto!important;}
.lfdc-mask-toolbuttons .lfdc-btn{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:none!important;height:34px!important;min-height:34px!important;margin:0!important;padding:4px 6px!important;border-radius:9px!important;font-size:.70rem!important;line-height:1.05!important;}
.lfdc-mask-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;width:100%!important;max-width:520px!important;margin:0 auto!important;align-items:stretch!important;}
.lfdc-mask-actions>span{grid-column:1/-1!important;width:100%!important;min-height:1.1em!important;margin:0!important;padding:1px 0!important;text-align:center!important;font-size:.72rem!important;line-height:1.2!important;}
.lfdc-mask-actions .lfdc-btn{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:none!important;height:36px!important;min-height:36px!important;margin:0!important;padding:4px 8px!important;border-radius:9px!important;font-size:.74rem!important;line-height:1!important;}
@media (max-width:700px){
  .lfdc-mask-editor-stage{min-height:44dvh!important;max-height:58dvh!important;padding:4px!important;}
  .lfdc-mask-editor-stage canvas{max-width:100%!important;max-height:57dvh!important;}
  .lfdc-mask-editor-tools{gap:7px!important;padding:8px 10px 10px!important;}
  .lfdc-mask-mode-buttons{max-width:300px!important;}
  .lfdc-mask-mode-buttons .lfdc-btn{height:32px!important;min-height:32px!important;font-size:.70rem!important;}
  .lfdc-mask-emoji-palette{grid-template-columns:repeat(8,28px)!important;gap:4px!important;}
  .lfdc-mask-emoji-palette button{width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;max-height:28px!important;font-size:.90rem!important;}
  #lfdc-mask-custom-emoji{width:110px!important;min-width:110px!important;max-width:110px!important;height:30px!important;min-height:30px!important;}
  .lfdc-mask-toolbuttons{gap:5px!important;}
  .lfdc-mask-toolbuttons .lfdc-btn{height:32px!important;min-height:32px!important;font-size:.66rem!important;}
  .lfdc-mask-actions{gap:6px!important;}
  .lfdc-mask-actions .lfdc-btn{height:34px!important;min-height:34px!important;font-size:.70rem!important;}
}
@media (max-width:360px){
  .lfdc-mask-emoji-palette{grid-template-columns:repeat(4,30px)!important;gap:5px 8px!important;}
  .lfdc-mask-toolbuttons{grid-template-columns:1fr 1fr!important;}
  .lfdc-mask-toolbuttons .lfdc-btn:nth-child(3){grid-column:1/-1!important;}
}
body .lfdc-mask-editor, body .lfdc-mask-editor *{box-sizing:border-box!important;}
body .lfdc-mask-editor-tools{width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;padding:10px 12px 12px!important;align-items:stretch!important;justify-items:stretch!important;}
body .lfdc-mask-editor-tools > *{width:min(100%,560px)!important;max-width:560px!important;margin-left:auto!important;margin-right:auto!important;}
body .lfdc-mask-mode-control, body .lfdc-mask-blur-control{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;align-items:center!important;}
body .lfdc-mask-mode-control>span, body .lfdc-mask-blur-control>span{display:block!important;width:100%!important;margin:0!important;padding:0!important;text-align:center!important;font-size:.78rem!important;line-height:1.2!important;font-weight:850!important;}
body .lfdc-mask-mode-buttons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;}
body .lfdc-mask-editor .lfdc-mask-mode-buttons .lfdc-btn, body .lfdc-mask-editor .lfdc-mask-toolbuttons .lfdc-btn, body .lfdc-mask-editor .lfdc-mask-actions .lfdc-btn{float:none!important;position:static!important;inset:auto!important;transform:none!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:6px 10px!important;border-radius:9px!important;line-height:1!important;text-align:center!important;white-space:nowrap!important;}
body .lfdc-mask-editor .lfdc-mask-mode-buttons .lfdc-btn{height:38px!important;min-height:38px!important;font-size:.78rem!important;}
body .lfdc-mask-emoji-control{display:none!important;grid-template-columns:1fr!important;gap:8px!important;align-items:center!important;justify-items:center!important;}
body .lfdc-mask-emoji-control.is-visible{display:grid!important;}
body .lfdc-mask-emoji-palette{display:grid!important;grid-template-columns:repeat(8,38px)!important;gap:6px!important;width:auto!important;max-width:100%!important;margin:0 auto!important;padding:0!important;overflow:visible!important;align-items:center!important;justify-content:center!important;}
body .lfdc-mask-emoji-palette button{float:none!important;position:static!important;transform:none!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;margin:0!important;padding:0!important;border-radius:9px!important;font-size:1.08rem!important;line-height:1!important;}
body #lfdc-mask-custom-emoji{display:block!important;float:none!important;width:min(100%,180px)!important;min-width:0!important;max-width:180px!important;height:38px!important;min-height:38px!important;margin:0 auto!important;padding:5px 10px!important;text-align:center!important;border-radius:9px!important;font-size:.76rem!important;}
body .lfdc-mask-blur-control input[type=range]{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;}
body .lfdc-mask-toolbuttons{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;width:100%!important;max-width:none!important;margin:0!important;}
body .lfdc-mask-editor .lfdc-mask-toolbuttons .lfdc-btn{height:38px!important;min-height:38px!important;font-size:.74rem!important;}
body .lfdc-mask-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;max-width:none!important;margin:0!important;align-items:stretch!important;}
body .lfdc-mask-actions>span{grid-column:1/-1!important;width:100%!important;min-height:18px!important;margin:0!important;padding:0!important;text-align:center!important;font-size:.74rem!important;line-height:18px!important;}
body .lfdc-mask-editor .lfdc-mask-actions .lfdc-btn{height:40px!important;min-height:40px!important;font-size:.76rem!important;}
/* Grille d’actions sous chaque photo : mêmes emplacements, même hauteur. */
body .lfdc-photo-buttons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:38px!important;gap:7px!important;width:100%!important;margin-top:8px!important;align-items:stretch!important;}
body .lfdc-photo-buttons .lfdc-mini-btn{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;max-width:none!important;height:38px!important;min-height:38px!important;margin:0!important;padding:5px 6px!important;border-radius:9px!important;line-height:1!important;text-align:center!important;}
body .lfdc-photo-buttons .lfdc-edit-photo-meta{grid-column:1!important;grid-row:1!important;}
body .lfdc-photo-buttons .lfdc-mask-photo{grid-column:2!important;grid-row:1!important;}
body .lfdc-photo-buttons .lfdc-restore-photo{grid-column:1!important;grid-row:2!important;}
body .lfdc-photo-buttons .lfdc-set-cover{grid-column:2!important;grid-row:2!important;}
body .lfdc-photo-buttons .lfdc-delete-photo{grid-column:1/-1!important;grid-row:3!important;}
/* Les trois contrôles de réordre restent strictement identiques. */
body .lfdc-photo-order-controls{display:grid!important;grid-template-columns:repeat(2,38px)!important;gap:6px!important;width:auto!important;}
body .lfdc-photo-order-controls .lfdc-order-arrow{display:flex!important;align-items:center!important;justify-content:center!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;margin:0!important;padding:0!important;border-radius:10px!important;}
@media (max-width:700px){
  body .lfdc-mask-editor-tools{gap:8px!important;padding:8px 10px 10px!important;}
  body .lfdc-mask-editor-tools > *{width:100%!important;max-width:100%!important;}
  body .lfdc-mask-mode-buttons{gap:7px!important;}
  body .lfdc-mask-editor .lfdc-mask-mode-buttons .lfdc-btn{height:36px!important;min-height:36px!important;font-size:.74rem!important;}
  body .lfdc-mask-emoji-palette{grid-template-columns:repeat(4,38px)!important;gap:7px 10px!important;}
  body .lfdc-mask-emoji-palette button{width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;max-height:38px!important;}
  body #lfdc-mask-custom-emoji{width:min(100%,180px)!important;max-width:180px!important;}
  body .lfdc-mask-toolbuttons{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;}
  body .lfdc-mask-editor .lfdc-mask-toolbuttons .lfdc-btn{height:36px!important;min-height:36px!important;}
  body .lfdc-mask-actions{gap:7px!important;}
  body .lfdc-mask-editor .lfdc-mask-actions .lfdc-btn{height:38px!important;min-height:38px!important;font-size:.74rem!important;}
  body .lfdc-photo-buttons{grid-auto-rows:36px!important;gap:6px!important;}
  body .lfdc-photo-buttons .lfdc-mini-btn{height:36px!important;min-height:36px!important;font-size:.72rem!important;}
}
@media (max-width:360px){
  body .lfdc-mask-emoji-palette{grid-template-columns:repeat(4,36px)!important;gap:6px 8px!important;}
  body .lfdc-mask-emoji-palette button{width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;}
}
body .lfdc-mask-editor .lfdc-mask-mode-buttons{display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;justify-content:stretch!important;gap:8px!important;width:100%!important;max-width:none!important;overflow:visible!important;}
body .lfdc-mask-editor .lfdc-mask-mode-buttons .lfdc-btn{flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;}
body .lfdc-mask-editor .lfdc-mask-emoji-control, body .lfdc-mask-editor .lfdc-mask-emoji-control.is-visible{justify-items:stretch!important;}
body .lfdc-mask-editor .lfdc-mask-emoji-palette{flex-flow:row nowrap!important;align-items:center!important;width:100%!important;max-width:100%!important;margin:0!important;overflow-y:hidden!important;scrollbar-width:thin!important;-webkit-overflow-scrolling:touch!important;}
body .lfdc-mask-editor .lfdc-mask-emoji-palette button{flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;max-height:32px!important;margin:0!important;padding:0!important;font-size:1rem!important;line-height:1!important;}
body .lfdc-mask-editor #lfdc-mask-custom-emoji{width:min(100%,220px)!important;max-width:220px!important;margin:0 auto!important;}
body .lfdc-mask-editor .lfdc-mask-toolbuttons{display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;justify-content:stretch!important;gap:7px!important;width:100%!important;max-width:none!important;}
body .lfdc-mask-editor .lfdc-mask-toolbuttons .lfdc-btn{flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;padding-left:4px!important;padding-right:4px!important;white-space:nowrap!important;}
body .lfdc-mask-editor .lfdc-mask-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;width:100%!important;}
body .lfdc-mask-editor .lfdc-mask-actions>span{grid-column:1/-1!important;}
@media (max-width:700px){
  body .lfdc-mask-editor .lfdc-mask-mode-buttons{display:flex!important;flex-flow:row nowrap!important;gap:6px!important;}
  body .lfdc-mask-editor .lfdc-mask-emoji-palette{display:flex!important;flex-flow:row nowrap!important;justify-content:center!important;gap:4px!important;}
  body .lfdc-mask-editor .lfdc-mask-emoji-palette button{flex:0 0 31px!important;width:31px!important;min-width:31px!important;max-width:31px!important;height:31px!important;min-height:31px!important;max-height:31px!important;}
  body .lfdc-mask-editor .lfdc-mask-toolbuttons{display:flex!important;flex-flow:row nowrap!important;gap:5px!important;}
  body .lfdc-mask-editor .lfdc-mask-toolbuttons .lfdc-btn{flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important;font-size:.66rem!important;padding:3px 2px!important;}
}
@media (max-width:360px){
  body .lfdc-mask-editor .lfdc-mask-emoji-palette{display:flex!important;flex-flow:row nowrap!important;justify-content:flex-start!important;gap:3px!important;}
  body .lfdc-mask-editor .lfdc-mask-emoji-palette button{flex-basis:30px!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important;}
  body .lfdc-mask-editor .lfdc-mask-toolbuttons .lfdc-btn{font-size:.62rem!important;}
}
body .lfdc-mask-editor .lfdc-mask-emoji-control, body .lfdc-mask-editor .lfdc-mask-emoji-control.is-visible{display:block!important;grid-template-columns:none!important;}
body .lfdc-mask-editor .lfdc-mask-emoji-palette{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;justify-content:center!important;gap:8px!important;padding:0!important;}
body .lfdc-mask-editor #lfdc-mask-custom-emoji{display:none!important;}
body .lfdc-photo-buttons.no-restore .lfdc-edit-photo-meta{grid-column:1!important;grid-row:1!important;}
body .lfdc-photo-buttons.no-restore .lfdc-mask-photo{grid-column:2!important;grid-row:1!important;}
body .lfdc-photo-buttons.no-restore .lfdc-set-cover{grid-column:1!important;grid-row:2!important;}
body .lfdc-photo-buttons.no-restore .lfdc-delete-photo{grid-column:2!important;grid-row:2!important;}
body .lfdc-photo-buttons.has-restore .lfdc-edit-photo-meta{grid-column:1!important;grid-row:1!important;}
body .lfdc-photo-buttons.has-restore .lfdc-mask-photo{grid-column:2!important;grid-row:1!important;}
body .lfdc-photo-buttons.has-restore .lfdc-restore-photo{grid-column:1!important;grid-row:2!important;}
body .lfdc-photo-buttons.has-restore .lfdc-set-cover{grid-column:2!important;grid-row:2!important;}
body .lfdc-photo-buttons.has-restore .lfdc-delete-photo{grid-column:1/-1!important;grid-row:3!important;}
body .lfdc-photo-buttons.no-restore{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
body .lfdc-photo-buttons.has-restore{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
body .lfdc-manager-shell .lfdc-manager-actions > .lfdc-btn, body .lfdc-manager-shell .lfdc-manager-actions > .lfdc-inbox-nav{position:relative!important;min-height:72px!important;height:72px!important;padding:10px 12px!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;white-space:normal!important;line-height:1.12!important;}
body .lfdc-manager-shell .lfdc-manager-actions > .lfdc-inbox-nav{gap:0!important;padding-right:38px!important;}
body .lfdc-manager-shell .lfdc-manager-actions > .lfdc-inbox-nav > span{display:block!important;width:100%!important;margin:0!important;text-align:center!important;line-height:1.12!important;}
body .lfdc-manager-shell .lfdc-manager-actions > .lfdc-inbox-nav .lfdc-inbox-nav-count{position:absolute!important;right:9px!important;top:9px!important;min-width:24px!important;height:24px!important;padding:0 6px!important;margin:0!important;border-radius:999px!important;display:grid!important;place-items:center!important;font-size:.70rem!important;line-height:1!important;}
body .lfdc-manager-shell .lfdc-inbox-card-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:1fr!important;gap:10px!important;width:100%!important;margin:12px 0 0!important;align-items:stretch!important;}
body .lfdc-manager-shell .lfdc-inbox-card-actions > .lfdc-btn{width:100%!important;min-width:0!important;min-height:52px!important;height:52px!important;margin:0!important;padding:8px 10px!important;border-radius:13px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;}
body .lfdc-manager-shell .lfdc-inbox-card-actions > .lfdc-btn:nth-child(1){grid-column:1!important;grid-row:1!important;}
body .lfdc-manager-shell .lfdc-inbox-card-actions > .lfdc-btn:nth-child(2){grid-column:2!important;grid-row:1!important;}
@media (max-width:720px){
  body .lfdc-manager-shell .lfdc-manager-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;}
  body .lfdc-manager-shell .lfdc-manager-actions > .lfdc-btn, body .lfdc-manager-shell .lfdc-manager-actions > .lfdc-inbox-nav{min-height:76px!important;height:76px!important;padding:9px 7px!important;font-size:.78rem!important;}
  body .lfdc-manager-shell .lfdc-manager-actions > .lfdc-inbox-nav{padding-right:30px!important;}
  body .lfdc-manager-shell .lfdc-manager-actions > .lfdc-inbox-nav .lfdc-inbox-nav-count{right:6px!important;top:6px!important;min-width:22px!important;height:22px!important;font-size:.66rem!important;}
  body .lfdc-manager-shell .lfdc-manager-actions > .lfdc-btn:nth-child(4){grid-column:1!important;grid-row:2!important;}
  body .lfdc-manager-shell .lfdc-inbox-card-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  body .lfdc-manager-shell .lfdc-inbox-card-actions > .lfdc-btn{min-height:50px!important;height:50px!important;font-size:.84rem!important;}
}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-dashboard-status-form{display:block!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-dashboard-status-form .lfdc-btn{width:100%!important;height:100%!important;min-height:32px!important;margin:0!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-dashboard-status-form .is-to-publish{background:#7d241c!important;border-color:#7d241c!important;color:#fff!important;}
body .lfdc-manager-shell .lfdc-manager-gallery-card .lfdc-dashboard-status-form .is-to-draft{background:#fff7f5!important;border-color:#8c2b20!important;color:#8c2b20!important;}


/* Footer d’assistant uniforme : tous les boutons sur une seule ligne */
body .lfdc-manager-shell .lfdc-wizard-control-stack{
  display:block!important;
}
body .lfdc-manager-shell .lfdc-wizard-action-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-areas:"prev next state"!important;
  align-items:stretch!important;
  gap:10px!important;
  width:100%!important;
}
body .lfdc-manager-shell .lfdc-wizard-footer-slot{
  min-width:0!important;
}
body .lfdc-manager-shell .lfdc-wizard-footer-slot.is-prev{grid-area:prev!important;}
body .lfdc-manager-shell .lfdc-wizard-footer-slot.is-next{grid-area:next!important;}
body .lfdc-manager-shell .lfdc-wizard-footer-slot.is-state{grid-area:state!important;}
body .lfdc-manager-shell .lfdc-wizard-footer-slot.is-empty{
  visibility:hidden!important;
  pointer-events:none!important;
}
body .lfdc-manager-shell .lfdc-wizard-footer-slot > .lfdc-btn,
body .lfdc-manager-shell .lfdc-wizard-footer-slot > .lfdc-wizard-state-action,
body .lfdc-manager-shell .lfdc-wizard-footer-slot > .lfdc-wizard-state-action > .lfdc-btn,
body .lfdc-manager-shell .lfdc-wizard-footer-slot.is-state > .lfdc-btn{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
body .lfdc-manager-shell .lfdc-wizard-footer-slot > .lfdc-btn,
body .lfdc-manager-shell .lfdc-wizard-footer-slot > .lfdc-wizard-state-action > .lfdc-btn,
body .lfdc-manager-shell .lfdc-wizard-footer-slot.is-state > .lfdc-btn{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:48px!important;
}
@media (max-width:720px){
  body .lfdc-manager-shell .lfdc-wizard-action-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-areas:"prev next state"!important;
    gap:8px!important;
  }
}

/* LFDC: ancien style inline des étapes déplacé du PHP, isolation 1er enfant. */
html body .lfdc-wizard-progress {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:1fr!important;gap:6px!important;width:100%!important;min-width:0!important}
html body .lfdc-wizard-progress > *{position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important;float:none!important;clear:none!important;margin-left:0!important;margin-right:0!important;grid-area:auto!important;min-width:0!important}
html body .lfdc-wizard-progress > :nth-child(1){grid-area:auto!important;grid-column:1!important;grid-row:1!important;position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important;float:none!important;clear:none!important;margin-left:0!important;margin-right:0!important;width:auto!important;min-width:0!important}
html body .lfdc-wizard-progress > :nth-child(2){grid-column:2!important;grid-row:1!important}
html body .lfdc-wizard-progress > :nth-child(3){grid-column:3!important;grid-row:1!important}
