.catalog-demo-shell{max-width:980px;margin:0 auto;padding:12px}
.catalog-demo-hero,.catalog-demo-series-card{background:#fff;border:1px solid #dedede;border-radius:18px;box-shadow:0 8px 24px #0000000d}
.catalog-demo-hero{padding:20px;background:linear-gradient(145deg,#13251d,#234b36);color:#fff}
.catalog-demo-hero h2{margin:8px 0}
.catalog-demo-badge{font-size:.72rem;font-weight:800;letter-spacing:.12em;color:#b9f6cf}
.catalog-demo-source-card{display:grid;gap:10px;margin-top:14px;padding:14px;border:1px solid #ffffff38;border-radius:14px;background:#ffffff12}
.catalog-demo-source-card.is-primary{background:#fff;color:#173025}
.catalog-demo-source-card strong,.catalog-demo-source-card small{display:block}
.catalog-demo-source-actions{display:flex;gap:8px}
.catalog-demo-source-actions button,.catalog-demo-excluded button{min-height:44px;border:0;border-radius:10px;padding:10px 14px;background:#168149;color:#fff;font-weight:800}
.catalog-demo-shell button{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.catalog-demo-shell button>span[aria-hidden="true"]{font-size:1.15em;line-height:1}
.catalog-icon-button{display:flex;min-width:70px!important;width:auto;align-items:center;justify-content:center;gap:5px;font-size:1.05rem}.catalog-icon-button small{font-size:.7rem}
.catalog-demo-mode,.catalog-demo-summary,#catalog-demo-google-status small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.catalog-demo-source-card.is-primary #catalog-demo-google-import{min-height:52px;font-size:1rem;box-shadow:0 6px 16px #16814942}
.catalog-demo-scope{display:grid;gap:7px;padding:10px;border-radius:10px;background:#f0f6f2}
.catalog-demo-scope>label{font-weight:800}
.catalog-demo-scope select,.catalog-demo-scope input{min-height:42px;max-width:100%;border:1px solid #b8c9bf;border-radius:9px;padding:8px;background:#fff;color:#173025;font:inherit}
.catalog-demo-scope small{color:#50665a}
#catalog-demo-custom-scope{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#catalog-demo-custom-scope[hidden]{display:none}
#catalog-demo-custom-scope label{display:grid;gap:4px;font-size:.78rem;font-weight:700}
.catalog-demo-progress{display:grid;gap:6px;margin:2px 0;padding:0;list-style:none}
.catalog-demo-progress li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 10px;min-width:0;padding:7px 9px;border-radius:9px;background:#edf3ef;font-size:.78rem}
.catalog-demo-progress li>span{display:flex;min-width:0;align-items:center;gap:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalog-demo-progress li>span b{width:1.1rem;flex:none;text-align:center;font-size:.95rem}.catalog-demo-progress li strong{min-width:0;color:#66756d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.catalog-demo-progress li small{grid-column:1/-1;padding-left:1.8rem;color:#805300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.catalog-demo-progress li[data-status="done"]{background:#e2f5e8}
.catalog-demo-progress li[data-status="done"] strong{color:#17703d}
.catalog-demo-progress li[data-status="active"]{background:#fff1c9}
.catalog-demo-progress li[data-status="active"] strong{color:#805300}
.catalog-demo-progress li[data-status="warning"]{background:#fff1c9}.catalog-demo-progress li[data-status="warning"] strong{color:#805300}
.catalog-demo-progress li[data-status="error"]{background:#ffe3e3}
.catalog-demo-progress li[data-status="error"] strong{color:#8e1b1b}
.catalog-demo-technical>summary{display:inline-flex;min-height:38px;align-items:center;color:#50665a;font-size:.78rem;font-weight:800;cursor:pointer}.catalog-demo-summary:empty{display:none}
.catalog-demo-reexamine{font-size:.8rem;color:#50665a}
.catalog-demo-picker{display:flex;flex-direction:column;align-items:center;gap:5px;padding:14px;border:2px dashed #86d8a5;border-radius:14px;text-align:center;cursor:pointer}
.catalog-demo-picker input{position:absolute;width:1px;height:1px;opacity:0}
.catalog-demo-picker span{font-weight:800}
.catalog-demo-picker small{opacity:.82}
.catalog-demo-summary{font-weight:700}
.catalog-demo-excluded details{margin-top:14px;padding:12px;border-radius:12px;background:#fff7e3}
.catalog-demo-excluded summary{font-weight:800;cursor:pointer}
.catalog-demo-excluded article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid #eadcb9}
.catalog-demo-excluded article span,.catalog-demo-excluded article small{display:block}
.catalog-demo-excluded button{flex:none;background:#596c61;font-size:.75rem}
.catalog-demo-series{display:grid;gap:16px;margin-top:16px}
.catalog-demo-empty{padding:28px;text-align:center;color:#666}
.catalog-demo-series-card{padding:16px;overflow:hidden}
.catalog-demo-series-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.catalog-demo-series-card h3{margin:2px 0}
.catalog-demo-object-list{display:grid;gap:8px;margin-top:12px}
.catalog-demo-compact-card{padding:0}
.catalog-demo-compact-card>summary{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;cursor:pointer;list-style:none}
.catalog-demo-compact-card>summary::-webkit-details-marker{display:none}
.catalog-demo-compact-card>summary>img{width:64px;height:64px;border:1px solid #e3e3e3;border-radius:9px;background:#fff;object-fit:contain}
.catalog-demo-compact-card>summary>span:nth-child(2){display:grid;min-width:0;gap:2px}
.catalog-demo-compact-card>summary strong,.catalog-demo-compact-card>summary small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.catalog-demo-compact-card>summary small{color:#647068;font-size:.75rem}
.catalog-demo-compact-card[open]>summary{border-bottom:1px solid #e7ece9}
.catalog-demo-compact-body{padding:0 12px 12px}
.catalog-demo-more{margin-top:10px;border:1px dashed #9bb2a4;border-radius:12px;background:#f5f8f6}
.catalog-demo-more>summary{padding:13px;text-align:center;color:#315c43;font-weight:850;cursor:pointer}
.catalog-demo-more>.catalog-demo-object-list{padding:0 8px 8px}
.catalog-demo-validated-series{margin-top:0}
.catalog-demo-catalogue-workflow{margin-top:18px;padding-top:16px;border-top:2px solid #d9e6de}
.catalog-demo-catalogue-workflow>h3{margin:0 0 4px}
.catalog-demo-comparison-grid{display:grid;gap:12px;margin-top:12px}
.catalog-demo-comparison{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px;border:1px solid #dfe7e2;border-radius:12px;background:#f7f9f8}
.catalog-demo-comparison figure{min-width:0;margin:0;background:#fff;border-radius:9px;overflow:hidden}
.catalog-demo-comparison figcaption{padding:6px 8px;background:#edf2ef;font-size:.72rem;font-weight:850;color:#405449}
.catalog-demo-comparison figure.candidate figcaption{background:#dff6e7;color:#176438}
.catalog-demo-comparison img{display:block;width:100%;height:220px;object-fit:contain;background:#fff}
.catalog-demo-candidate-missing{display:grid;height:220px;place-items:center;padding:12px;background:#eee;color:#6c746f;text-align:center;font-weight:750}
.catalog-demo-comparison>.catalog-demo-error{grid-column:1/-1;margin:0}
.catalog-demo-comparison[draggable="true"]{cursor:grab}.catalog-demo-comparison[draggable="true"]:active{cursor:grabbing}
.catalog-demo-comparison .catalog-demo-photo-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.catalog-demo-comparison .catalog-demo-photo-actions button{min-height:34px;border:0;border-radius:8px;padding:7px 9px;background:#e8ece9;font:inherit;font-size:.72rem;font-weight:800}
.catalog-demo-comparison .catalog-demo-photo-actions button[data-photo-good]{background:#dff6e7;color:#176438}.catalog-demo-comparison .catalog-demo-photo-actions button[data-photo-reject]{background:#ffe3e3;color:#8e1b1b}.catalog-demo-comparison .catalog-demo-photo-actions small{font-weight:850;color:#596c61}
.catalog-demo-kicker{font-size:.72rem;font-weight:900;letter-spacing:.1em;color:#557060}
.catalog-demo-status{flex:none;padding:6px 9px;border-radius:99px;font-size:.76rem;font-weight:800}
.catalog-demo-status.ready{background:#dff6e7;color:#176438}
.catalog-demo-status.review{background:#fff0cf;color:#805300}
.catalog-demo-status.running{background:#244b68;color:#b6dcff}
@keyframes catalog-demo-working-pulse{0%,100%{opacity:1;box-shadow:0 0 0 0 #75c8ff00}50%{opacity:.72;box-shadow:0 0 0 5px #75c8ff33}}
.catalog-demo-progress li[data-status="active"]>span>b,.catalog-demo-status.running,.catalog-object-state.running,.catalog-mobile-state.running,.catalog-demo-progress-panel[data-running="true"] .catalog-demo-progress-summary-main>b{animation:catalog-demo-working-pulse 1.2s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.catalog-demo-progress li[data-status="active"]>span>b,.catalog-demo-status.running,.catalog-object-state.running,.catalog-mobile-state.running,.catalog-demo-progress-panel[data-running="true"] .catalog-demo-progress-summary-main>b{animation:none}}
.catalog-demo-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:14px 0}
.catalog-demo-photo{display:flex;min-width:0;flex-direction:column;border:2px solid #eee;border-radius:12px;overflow:hidden;background:#fafafa}
.catalog-demo-photo.is-boundary{border-color:#38a868}
.catalog-demo-photo img{width:100%;height:150px;object-fit:contain;background:#fff}
.catalog-demo-photo-meta{display:flex;min-width:0;flex-direction:column;gap:3px;padding:8px;font-size:.75rem}
.catalog-demo-photo-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.catalog-demo-photo-meta b{color:#267743}
.catalog-demo-photo button,.catalog-demo-actions button,.catalog-demo-choice,.catalog-demo-match>button{min-height:40px;border:0;border-radius:9px;padding:9px 11px;font-weight:750;cursor:pointer}
.catalog-demo-photo button{margin:auto 8px 8px;background:#e8ece9}
.catalog-demo-actions{display:flex;flex-wrap:wrap;gap:8px}
.catalog-demo-actions .primary,.catalog-demo-match .primary{background:#17703d;color:#fff}
.catalog-demo-actions .secondary{background:#e8ece9;color:#203027}
.catalog-demo-source{font-size:.78rem;color:#647068}
.catalog-demo-match,.catalog-demo-decision{display:grid;gap:9px;margin-top:12px;padding:12px;border-radius:12px;background:#f0f6f2}
.catalog-demo-choices{display:grid;gap:7px}
.catalog-demo-choice{display:flex;justify-content:space-between;gap:8px;text-align:left;background:#fff;border:1px solid #cbd8d0}
.catalog-demo-choice span{color:#53655a}
.catalog-demo-decision small{display:block;margin-top:4px}
.catalog-demo-error{padding:10px;border-radius:10px;background:#ffe3e3;color:#8e1b1b}
.catalog-demo-actions button:disabled{opacity:.6}
.catalog-demo-picker:focus-within,.catalog-demo-actions button:focus-visible,.catalog-demo-choice:focus-visible{outline:3px solid #4cae72;outline-offset:2px}
/* Le flux photo est fréquemment utilisé dans un atelier peu éclairé : thème sombre par défaut. */
.catalog-demo-shell{color:#e9eee9}
.catalog-demo-series-card{background:#18201c;border-color:#33433a;box-shadow:0 8px 24px #0000004d}
.catalog-demo-source-card.is-primary{background:#1d2922;color:#edf5ee}
.catalog-title-editor{display:grid;gap:6px;padding:9px;border:1px solid #3f5147;border-radius:10px;background:#18221c}.catalog-title-editor>div{display:flex;gap:6px}.catalog-title-editor input{min-width:0;flex:1;padding:9px;border:1px solid #52665a;border-radius:8px;color:#fff;background:#101713}.catalog-title-editor button{min-height:42px;border:0;border-radius:8px;padding:7px 11px;color:#fff;background:#246f46;font-weight:800}.catalog-title-editor small{color:#aebbb3}
.catalog-demo-scope,.catalog-demo-match,.catalog-demo-decision{background:#202d26}
.catalog-demo-scope select,.catalog-demo-scope input,.catalog-demo-choice{background:#111814;color:#edf5ee;border-color:#4a5f51}
.catalog-demo-scope small,.catalog-demo-reexamine,.catalog-demo-source,.catalog-demo-compact-card>summary small,.catalog-demo-choice span{color:#b7c4bc}
.catalog-demo-progress li{background:#243129;color:#e9eee9}.catalog-demo-progress li strong{color:#c2cec6}
.catalog-demo-progress li[data-status="done"]{background:#173d28}.catalog-demo-progress li[data-status="done"] strong{color:#8de7ae}
.catalog-demo-progress li[data-status="active"]{background:#4a3b17}.catalog-demo-progress li[data-status="active"] strong{color:#ffe08a}
.catalog-demo-progress li[data-status="error"],.catalog-demo-error{background:#4b2020;color:#ffd0d0}.catalog-demo-progress li[data-status="error"] strong{color:#ffaaaa}
.catalog-demo-picker{border-color:#5ac882;background:#16231b}.catalog-demo-empty{color:#bdc8c0}
.catalog-demo-compact-card>summary>img,.catalog-demo-comparison figure,.catalog-demo-comparison img,.catalog-demo-photo img{background:#fff}
.catalog-demo-compact-card[open]>summary,.catalog-demo-catalogue-workflow{border-color:#3b5044}
.catalog-demo-more{background:#202b25;border-color:#587162}.catalog-demo-more>summary{color:#b8e5c9}
.catalog-demo-comparison{background:#202b25;border-color:#405449}.catalog-demo-comparison figcaption{background:#303d35;color:#dbe7de}.catalog-demo-comparison figure.candidate figcaption{background:#1b4b2d;color:#a9f0c2}
.catalog-demo-candidate-missing{background:#303834;color:#c8d0ca}.catalog-demo-comparison .catalog-demo-photo-actions button,.catalog-demo-photo button,.catalog-demo-actions .secondary{background:#35443b;color:#f1f6f2}.catalog-demo-comparison .catalog-demo-photo-actions button[data-photo-good]{background:#1d633a;color:#c6f8d6}.catalog-demo-comparison .catalog-demo-photo-actions button[data-photo-reject]{background:#6a2b2b;color:#ffd2d2}.catalog-demo-comparison .catalog-demo-photo-actions small{color:#c0cec4}
.catalog-demo-kicker{color:#aed0bb}.catalog-demo-status.ready{background:#1c6339;color:#cbf6d8}.catalog-demo-status.review{background:#5a461b;color:#ffe399}
.catalog-demo-photo{background:#1e2923;border-color:#3b4b42}.catalog-demo-photo.is-boundary{border-color:#55c881}.catalog-demo-photo-meta b{color:#8de7ae}
.catalog-demo-excluded details{background:#3f351c}.catalog-demo-excluded article{border-color:#6f5d30}.catalog-demo-excluded button{background:#45584b}
@media(max-width:560px){.catalog-demo-shell{padding:8px}
.catalog-demo-hero,.catalog-demo-series-card{border-radius:14px}
.catalog-demo-source-actions{display:grid}
.catalog-demo-source-actions button{width:100%}
.catalog-demo-excluded article{align-items:flex-start;flex-direction:column}
.catalog-demo-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.catalog-demo-photo img{height:130px}
.catalog-demo-actions{display:grid}
.catalog-demo-actions button{width:100%}
.catalog-demo-choice{flex-direction:column}
.catalog-demo-series-card>header{align-items:flex-start}
.catalog-demo-compact-card>summary{grid-template-columns:54px minmax(0,1fr);padding:7px}
.catalog-demo-compact-card>summary>img{width:54px;height:54px}
.catalog-demo-compact-card>summary>.catalog-demo-status{grid-column:2;justify-self:start;margin-top:2px}
.catalog-demo-comparison{grid-template-columns:1fr 1fr;gap:5px;padding:5px}
.catalog-demo-comparison img,.catalog-demo-candidate-missing{height:min(42vw,180px)}
#catalog-demo-custom-scope{grid-template-columns:1fr}
}

.catalog-object-detail{display:grid;gap:10px;margin-top:12px;min-width:0}
.catalog-object-header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px;font-size:.82rem}
.catalog-object-header>strong{font-size:.92rem}.catalog-object-state{padding:5px 8px;border-radius:99px;font-size:.72rem;font-weight:800}.catalog-object-state.done{color:#b9efcb;background:#1b5834}.catalog-object-state.review{color:#ffe09a;background:#5b471b}.catalog-object-state.running{color:#b6dcff;background:#244b68}.catalog-object-state.error{color:#ffc7c7;background:#672c2c}.catalog-object-state.todo{color:#d2dbd5;background:#36433c}
.catalog-object-progress{height:7px;overflow:hidden;border-radius:99px;background:#35423b}.catalog-object-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2e9560,#83d6a1)}
.catalog-object-stages{display:flex;gap:7px;overflow-x:auto;padding-bottom:2px;color:#b8c5bd;font-size:.7rem;white-space:nowrap;scrollbar-width:none}
.catalog-object-main{position:relative;margin:0;overflow:hidden;border-radius:10px;background:#fff}.catalog-object-main img{display:block;width:100%;height:min(48vw,440px);object-fit:contain}.catalog-object-main figcaption{position:absolute;right:6px;bottom:6px;padding:4px 7px;border-radius:7px;color:#fff;background:#101713d9;font-size:.68rem;font-weight:850}
.catalog-object-thumbs{display:flex;gap:6px;overflow-x:auto;padding:1px 1px 5px;scroll-snap-type:x proximity;scrollbar-width:none}.catalog-object-thumbs button{position:relative;flex:0 0 62px;width:62px;height:62px;padding:2px;border:2px solid transparent;border-radius:8px;background:#26322b;scroll-snap-align:start}.catalog-object-thumbs button.active{border-color:#66d18e}.catalog-object-thumbs img{width:100%;height:100%;border-radius:5px;object-fit:cover;background:#fff}.catalog-object-thumbs b{position:absolute;right:2px;bottom:2px;padding:2px 3px;border-radius:4px;color:#fff;background:#195d37;font-size:.48rem}
.catalog-object-photo-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.catalog-object-photo-actions button{min-height:38px;border:0;border-radius:8px;padding:7px 9px;color:#f1f6f2;background:#35443b;font:inherit;font-size:.76rem;font-weight:800}.catalog-object-photo-actions button[data-photo-good]{background:#1d633a;color:#c6f8d6}.catalog-object-photo-actions button[data-photo-reject]{background:#6a2b2b;color:#ffd2d2}
.catalog-mobile-nav,.catalog-mobile-summary,.catalog-mobile-filters,.catalog-mobile-object{display:none}
.catalog-workflow-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-width:520px;margin:0 auto 14px;padding:5px;border:1px solid #405047;border-radius:14px;background:#151d18d9;box-shadow:0 8px 24px #0004}.catalog-workflow-nav button{display:flex;min-width:0;min-height:48px;align-items:center;justify-content:center;gap:6px;border:0;border-radius:9px;color:#b7c5bc;background:transparent;font-weight:850}.catalog-workflow-nav button>span{font-size:1.1rem}.catalog-workflow-nav button small{font-size:.74rem}.catalog-workflow-nav button.active{color:#fff;background:#246844}
.catalog-demo-import-tools>summary{display:none}
@media(max-width:599px){
  body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  .app-shell{width:100%;padding-right:6px;padding-left:6px}
  .catalog-demo-shell{width:100%;max-width:none;padding:0 0 8px}
  .catalog-demo-mobile-panel{display:none}.catalog-demo-mobile-panel.is-active{display:block}
  .catalog-demo-hero,.catalog-demo-source-card{margin:0;border-radius:10px;padding:10px;box-shadow:none}
  .catalog-demo-hero>p,.catalog-mobile-heading small{margin:2px 0;color:#b8c8be;font-size:.75rem}
  .catalog-demo-hero h2,.catalog-mobile-heading h2{margin:2px 0;font-size:1.2rem}
  .catalog-demo-import-tools{margin-top:5px}.catalog-demo-import-tools>summary{display:flex;min-height:44px;align-items:center;padding:0 8px;border:1px solid #405047;border-radius:8px;color:#d4dfd8;background:#1a241e;font-size:.78rem;font-weight:850;cursor:pointer}.catalog-demo-import-tools[open]>summary{margin-bottom:7px}
  .catalog-demo-source-card{gap:7px}.catalog-demo-source-card.is-primary{margin-top:8px}
  .catalog-demo-source-card>summary{min-height:44px;display:flex;align-items:center;font-weight:850;cursor:pointer}
  .catalog-demo-progress{gap:3px}.catalog-demo-progress li{padding:5px 7px;font-size:.7rem}
  .catalog-demo-technical{border-top:1px solid #3a4a40}.catalog-demo-technical>summary{display:flex;min-height:44px;align-items:center;color:#b9c7be;font-size:.74rem;font-weight:850;cursor:pointer}.catalog-demo-technical[open]>summary{margin-bottom:4px}
  .catalog-demo-analysis-timing,.catalog-demo-reexamine{font-size:.7rem}
  .catalog-demo-summary{min-height:0;font-size:.76rem;line-height:1.3}
  .catalog-demo-series{gap:7px;margin-top:7px}.catalog-demo-series-card{padding:8px;border-radius:10px}
  .catalog-mobile-series-summary{display:flex;align-items:center;justify-content:space-between;padding:7px 2px;color:#c2cec6;font-size:.78rem}.catalog-mobile-series-summary strong{color:#fff;font-size:.92rem}.catalog-mobile-series-review{padding:8px;border:1px solid #3d4d44;border-radius:10px;background:#19221d}
  .catalog-mobile-nav{position:fixed;right:0;bottom:0;left:0;z-index:1000;display:grid;max-width:none;margin:0;padding:6px 7px calc(6px + env(safe-area-inset-bottom));grid-template-columns:repeat(3,1fr);gap:3px;border-top:1px solid #405047;border-radius:0;background:#101713eF;box-shadow:none;backdrop-filter:blur(14px)}
  .catalog-mobile-nav button{display:grid;min-height:48px;place-content:center;gap:2px;border:0;border-radius:9px;color:#aebbb3;background:transparent;font-weight:850}.catalog-mobile-nav button>span{font-size:1.2rem}.catalog-mobile-nav button small{font-size:.62rem;line-height:1}.catalog-mobile-nav button.active{color:#fff;background:#246844}
  .catalog-mobile-heading{display:flex;align-items:end;justify-content:space-between;padding:0 2px 7px}
  .catalog-mobile-summary{display:flex;align-items:center;gap:7px;overflow-x:auto;padding:7px 2px;white-space:nowrap;scrollbar-width:none}.catalog-mobile-summary strong{margin-right:auto}.catalog-mobile-summary span{font-size:.72rem;color:#c3cec7}
  .catalog-mobile-filters{display:flex;gap:5px;overflow-x:auto;margin:0 -2px 7px;padding:0 2px 3px;scrollbar-width:none}.catalog-mobile-filters button{display:flex;flex:none;min-width:0;min-height:38px;align-items:center;gap:4px;padding:5px 8px;border:1px solid #415349;border-radius:999px;color:#bdc9c1;background:#18201c;font-size:.82rem;font-weight:900}.catalog-mobile-filters button small{font-size:.65rem}.catalog-mobile-filters button.active{border-color:#65cb8b;color:#fff;background:#245f3c}
  .catalog-mobile-object{display:grid;gap:7px;min-width:0}.catalog-mobile-object>header{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;font-size:.78rem}.catalog-mobile-object>header>strong{font-size:.9rem}.catalog-mobile-state{padding:4px 7px;border-radius:99px;font-size:.68rem}.catalog-mobile-state.done{color:#b9efcb;background:#1b5834}.catalog-mobile-state.review{color:#ffe09a;background:#5b471b}.catalog-mobile-state.running{color:#b6dcff;background:#244b68}.catalog-mobile-state.error{color:#ffc7c7;background:#672c2c}.catalog-mobile-state.todo{color:#d2dbd5;background:#36433c}
  .catalog-mobile-progress{height:7px;overflow:hidden;border-radius:99px;background:#35423b}.catalog-mobile-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2e9560,#83d6a1)}
  .catalog-mobile-stages{display:flex;gap:7px;overflow-x:auto;padding-bottom:2px;color:#b8c5bd;font-size:.66rem;white-space:nowrap;scrollbar-width:none}
  .catalog-mobile-main{position:relative;margin:0;overflow:hidden;border-radius:10px;background:#fff}.catalog-mobile-main img{display:block;width:100%;height:min(72vw,430px);object-fit:contain}.catalog-mobile-main figcaption{position:absolute;right:6px;bottom:6px;padding:4px 7px;border-radius:7px;color:#fff;background:#101713d9;font-size:.68rem;font-weight:850}
  .catalog-mobile-thumbs{display:flex;gap:6px;overflow-x:auto;padding:1px 1px 5px;scroll-snap-type:x proximity;scrollbar-width:none}.catalog-mobile-thumbs button{position:relative;flex:0 0 62px;width:62px;height:62px;padding:2px;border:2px solid transparent;border-radius:8px;background:#26322b;scroll-snap-align:start}.catalog-mobile-thumbs button.active{border-color:#66d18e}.catalog-mobile-thumbs img{width:100%;height:100%;border-radius:5px;object-fit:cover;background:#fff}.catalog-mobile-thumbs b{position:absolute;right:2px;bottom:2px;padding:2px 3px;border-radius:4px;color:#fff;background:#195d37;font-size:.48rem}
  .catalog-mobile-details{font-size:.72rem}.catalog-mobile-details>summary{display:inline-flex;min-width:44px;min-height:44px;align-items:center;color:#b7c5bc;cursor:pointer}.catalog-mobile-details p{margin:4px 0}
  .catalog-title-editor{padding:8px;font-size:.75rem}.catalog-title-editor>div{align-items:stretch}.catalog-title-editor input,.catalog-title-editor button{min-height:44px}.catalog-title-editor button{flex:0 0 auto;padding:6px 9px;font-size:.72rem}
  .catalog-mobile-object>footer{position:sticky;bottom:calc(61px + env(safe-area-inset-bottom));z-index:20;display:grid;grid-template-columns:48px minmax(58px,1fr) 48px auto;gap:6px;padding:6px;border:1px solid #405047;border-radius:12px;background:#151d18ed;backdrop-filter:blur(12px)}.catalog-mobile-object>footer>button{display:flex;min-width:0;min-height:48px;align-items:center;justify-content:center;gap:6px;border:0;border-radius:9px;color:#fff;background:#35443b;font-size:1.2rem;font-weight:900}.catalog-mobile-object>footer>.catalog-mobile-primary{background:#1f7b49}.catalog-mobile-object>footer>.catalog-mobile-primary small{font-size:.72rem}.catalog-mobile-object>footer>.catalog-mobile-primary:disabled{color:#9ba79f;background:#303a34}
  .catalog-mobile-more{position:relative}.catalog-mobile-more>summary{display:grid;width:48px;height:48px;place-items:center;border-radius:9px;background:#35443b;font-size:1.3rem;cursor:pointer;list-style:none}.catalog-mobile-more>summary::-webkit-details-marker{display:none}.catalog-mobile-menu{position:absolute;right:0;bottom:54px;z-index:30;display:grid;width:228px;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:7px;border:1px solid #475a4f;border-radius:10px;background:#17201b;box-shadow:0 10px 30px #0008}.catalog-mobile-menu button{min-width:0;min-height:44px;padding:6px;border:0;border-radius:8px;color:#eef4ef;background:#314138;font-size:.72rem;font-weight:850}
  .catalog-demo-excluded details{margin-top:7px;padding:8px}.catalog-demo-excluded article{padding:7px 0}
}
@media(min-width:600px){
  .catalog-demo-shell[data-workflow-section="import"] [data-mobile-panel="work"],
  .catalog-demo-shell[data-workflow-section="objects"] [data-mobile-panel="import"],
  .catalog-demo-shell[data-workflow-section="catalogue"] [data-mobile-panel="import"],
  .catalog-demo-shell[data-workflow-section="studio"] [data-mobile-panel="import"]{display:none}
}
@media(min-width:600px) and (max-width:1000px){.catalog-demo-shell{max-width:none;padding:14px}.catalog-demo-comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-demo-comparison img,.catalog-demo-candidate-missing{height:190px}}
@media(min-width:1001px){.catalog-demo-shell{max-width:1180px}.catalog-demo-comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.catalog-rotatable{transform-origin:center center;backface-visibility:hidden}

/* Import Google Photos : contraintes de largeur pour les petits écrans */
.catalog-demo-source-card,
.catalog-demo-source-actions,
#catalog-demo-google-progress,
.catalog-demo-progress,
.catalog-demo-progress > li {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.catalog-demo-source-actions {
  min-width: 0;
}

.catalog-demo-progress > li > span,
.catalog-demo-progress > li > strong,
.catalog-demo-progress > li > small {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.catalog-demo-progress > li > span {
  overflow: hidden;
  white-space: normal;
}

.catalog-demo-progress > li > strong,
.catalog-demo-progress > li > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

@media (max-width: 599px) {
  .catalog-demo-source-actions button,
  #catalog-demo-google-import {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
  }

  .catalog-demo-source-card,
  .catalog-demo-source-actions,
  #catalog-demo-google-progress {
    overflow: visible;
  }
}

/* Safari iPhone : libelles de progression reductibles */
.catalog-demo-hero,
.catalog-demo-source-card,
.catalog-demo-source-actions,
#catalog-demo-google-progress,
.catalog-demo-progress {
  min-inline-size: 0;
  inline-size: 100%;
  max-inline-size: 100%;
}

.catalog-demo-source-actions {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-demo-source-actions > button,
#catalog-demo-google-import {
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
}

.catalog-demo-progress {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-demo-progress > li {
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.catalog-demo-progress > li > span,
.catalog-demo-progress > li > span > em,
.catalog-demo-progress > li > strong,
.catalog-demo-progress > li > small {
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.catalog-demo-progress > li > span {
  display: flex;
  overflow: hidden;
}

.catalog-demo-progress > li > span > em {
  display: block;
  min-width: 0;
  font-style: normal;
}

/* Progression compacte et repliable sur mobile */
.catalog-demo-progress-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 10px;
}

.catalog-demo-progress-panel > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
  padding: 10px 11px;
  border-radius: 10px;
  color: #e9eee9;
  background: #243129;
  cursor: pointer;
  list-style: none;
}

.catalog-demo-progress-panel > summary::-webkit-details-marker { display: none; }
.catalog-demo-progress-summary-main { display: flex; min-width: 0; align-items: center; gap: 7px; }
.catalog-demo-progress-summary-main b { flex: none; width: 1.1rem; text-align: center; }
.catalog-demo-progress-summary-main strong,
.catalog-demo-progress-summary-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-demo-progress-summary-value { color: #b9e8c9; font-weight: 850; }
.catalog-demo-progress-chevron { font-size: 1.1rem; transition: transform .18s ease; }
.catalog-demo-progress-panel[open] .catalog-demo-progress-chevron { transform: rotate(180deg); }
.catalog-demo-progress-summary-bar { grid-column: 1 / -1; display: block; min-width: 0; height: 6px; overflow: hidden; border-radius: 99px; background: #35423b; }
.catalog-demo-progress-summary-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2e9560, #83d6a1); }
.catalog-demo-progress-panel > .catalog-demo-progress { margin-top: 6px; }

@media (max-width: 599px) {
  .catalog-demo-progress-panel > summary { padding: 9px 10px; font-size: .78rem; }
  .catalog-demo-progress-summary-main strong,
  .catalog-demo-progress-summary-value { font-size: .76rem; }
  .catalog-demo-progress-panel:not([open]) > .catalog-demo-progress { display: none; }
}

/* Carte Google Photos : empecher le contenu interne d elargir la grille */
.catalog-demo-source-card {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-demo-source-card > *,
.catalog-demo-source-card > .catalog-demo-source-actions > * {
  min-width: 0;
  max-width: 100%;
}

.catalog-demo-source-card #catalog-demo-google-status,
.catalog-demo-source-card #catalog-demo-google-status strong,
.catalog-demo-source-card #catalog-demo-google-status small {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.catalog-demo-source-actions {
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
}

.catalog-demo-source-actions > button,
.catalog-demo-source-actions > #catalog-demo-google-import {
  display: block;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.catalog-demo-progress,
.catalog-demo-progress > li {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.catalog-demo-progress > li > span,
.catalog-demo-progress > li > span > em,
.catalog-demo-progress > li > strong,
.catalog-demo-progress > li > small {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}
.catalog-series-boundary-button,.catalog-series-boundary-confirmed{width:calc(100% - 24px);min-height:48px;margin:10px 12px 2px;border:0;border-radius:13px;font-weight:900}
.catalog-series-boundary-button{background:#c8794f;color:#fff}
.catalog-series-boundary-confirmed{background:#dcecdf;color:#244d32}

/* PhotoStudio: independent single-image gallery (not the before/after layout). */
.photostudio-gallery{width:100%;min-width:0;margin:12px 0 20px;overflow:hidden}
.photostudio-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,160px),1fr));gap:12px;align-items:start}
.photostudio-gallery-item{min-width:0;max-width:100%;margin:0;padding:8px;border:1px solid #9cac9f;border-radius:12px;background:#fff;overflow:hidden}
.photostudio-gallery-item img{display:block;width:100%;height:180px;object-fit:contain;background:#fff}
.photostudio-gallery-item figcaption{display:block;padding:6px 2px;color:#243c2e;font-size:.82rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#photostudio-sku{min-width:0;max-width:100%;width:200px}
@media(max-width:480px){.photostudio-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.photostudio-gallery-item img{height:145px}}

.photostudio-gallery-item{cursor:pointer}.photostudio-gallery-item:hover,.photostudio-gallery-item:focus-visible{outline:3px solid #78a78a;outline-offset:1px}
.photostudio-editor{margin:18px 0;padding:16px;background:#f4f7f4;color:#203328;border:1px solid #a5b5a8;border-radius:12px}
.photostudio-editor-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.photostudio-editor-pair figure{margin:0;min-width:0}.photostudio-editor-pair img,.photostudio-editor-pair canvas{width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#fff;border-radius:8px}
.photostudio-editor-pair figcaption{font-size:.9rem;font-weight:700;margin-bottom:5px}
.photostudio-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.photostudio-controls label{display:grid;gap:3px;font-size:.84rem}.photostudio-controls input{width:100%}
.photostudio-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
@media(max-width:580px){.photostudio-controls{grid-template-columns:1fr}.photostudio-editor{padding:9px}}
/* PhotoStudio interactive square crop */
#ps-crop{touch-action:none;cursor:grab;user-select:none}
#ps-crop:active{cursor:grabbing}
.photostudio-editor-pair canvas{display:block;max-width:100%;aspect-ratio:1/1;object-fit:contain}
.photostudio-editor .photostudio-actions button{padding:9px 12px;border-radius:8px;border:1px solid #9eafa2;cursor:pointer}
.photostudio-editor .photostudio-actions button:disabled{opacity:.5;cursor:not-allowed}

/* PhotoStudio recent Magento index */
.photostudio-recent{margin:14px 0;padding:12px;border-radius:12px;border:1px solid #8fa699;background:#f1f5f1;color:#1b3025}
.photostudio-recent>summary{cursor:pointer;font-weight:800;padding:6px;list-style:revert}
.photostudio-recent-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:10px;margin:12px 0}
.photostudio-recent-tile{min-width:0;padding:8px;border:1px solid #ccdad0;border-radius:9px;background:#fff;color:#24372b;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:4px}
.photostudio-recent-tile:hover,.photostudio-recent-tile:focus-visible{outline:2px solid #568868}
.photostudio-recent-tile img{width:100%;height:105px;object-fit:contain;background:#fff}
.photostudio-recent-tile strong{font-size:.78rem;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.photostudio-recent-tile small{font-size:.7rem;color:#526558;overflow-wrap:anywhere}
.photostudio-recent-actions{display:flex;gap:9px;flex-wrap:wrap}
@media(max-width:480px){.photostudio-recent-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.photostudio-recent-tile img{height:75px}}
