.topbar{height:64px;min-height:64px;padding:8px 20px;flex-wrap:nowrap}.brand-sub{display:none}.brand>span{font-size:24px}.header-right{flex-wrap:nowrap;overflow:auto}.header-right .lock-pill{display:none}.topbar button{padding:9px 12px}.work-toolbar{display:flex;align-items:center;gap:8px;padding:10px 20px;background:#182127;border-bottom:1px solid #34434c;min-height:64px;position:sticky;top:0;z-index:20;flex-wrap:wrap}.work-toolbar button{min-height:38px}.tool-tab[aria-pressed=true]{border-color:var(--cyan);background:#163b43;color:#baf8ff}.work-toolbar [data-panel=ai]{color:#b6edff;border-color:#5793a4}.toolbar-status{margin:0 0 0 auto!important;max-width:280px;font-size:11px;color:#b4d7d9}.intro{display:none}main{max-width:none;padding:12px 16px 0}.workspace{grid-template-columns:220px minmax(280px,1fr) 350px;grid-template-rows:minmax(0,1fr);gap:12px;height:calc(100dvh - 250px);min-height:360px;align-items:stretch}.library,.editor{padding:16px;min-height:0;overflow-y:auto;display:block;scrollbar-gutter:stable}.library .gallery{max-height:none;overflow:visible}.editor{grid-column:auto}.tool-panel>label{display:block;margin:12px 0 8px;font-size:12px}.tool-panel .manual-text{margin:0 0 12px}.tool-panel details{border:0;padding:0}.tool-panel details>summary{padding:12px 0;font-weight:600}.tool-panel .common-template{margin:0 0 16px}.preview-panel{padding:12px;display:flex;flex-direction:column;min-height:0;height:100%;max-height:100%;overflow:hidden;align-self:stretch}.preview-top{flex-shrink:0;margin:0 0 8px}.stage{--preview-height:calc(100dvh - 450px);flex-shrink:1;min-height:0;max-height:100%;width:min(100%,calc(var(--preview-height) * var(--preview-ratio)));}.transport{flex-shrink:0;margin-top:10px}.preview-caption{margin:8px 0 0}.preview-panel .export-help{display:none}.preview-panel .export-access{margin:8px 0 0;flex-wrap:wrap;gap:4px;flex-shrink:0}.preview-panel .export-folder{margin:6px 0 0;gap:4px;max-height:65px;overflow:auto;flex-shrink:0}.timeline{margin-top:10px;padding:10px}.timeline-header,.timeline-foot{display:none}.timeline-track{height:44px}.segment{padding:6px 10px}.segment strong,.segment span{display:inline;margin:0 8px 0 0}footer{padding:10px 0}.ai-context{padding:10px;background:#102e38;border-radius:6px;font-size:12px;line-height:1.5}.ai-chips{display:flex;flex-wrap:wrap;margin:6px 0 12px}.ai-chips button{padding:8px}.ai-card{border:1px solid #3b515c;background:#111d24;border-radius:9px;padding:14px;margin:14px 0}.ai-card h3{font-size:14px;margin:0 0 14px}.ai-card label{display:block;font-size:11px;margin:10px 0}.ai-card textarea{margin-top:6px;font-size:13px}#aiStatus{font-size:12px;line-height:1.5;color:#b5ccd4}#aiUndo{margin-top:10px;font-size:11px}#aiBilling{color:var(--cyan);text-decoration:underline}.editor .locked-note{display:none}
@media(min-width:1600px){.workspace{grid-template-columns:250px minmax(400px,1fr) 400px}}
@media(max-width:1100px) and (min-width:721px){.workspace{grid-template-columns:165px minmax(240px,1fr) 310px}.library{padding:10px}.library .gallery{grid-template-columns:1fr}.header-right #boardBtn,.header-right #specBtn{display:none}.toolbar-status{flex-basis:100%;max-width:none}.workspace{height:calc(100dvh - 278px)}.stage{--preview-height:calc(100dvh - 478px)}}
@media(max-width:720px){.topbar{height:58px;min-height:58px;padding:8px 12px}.topbar .brand img{width:28px;height:28px}.header-right .secondary#campaignBtn{display:none}.work-toolbar{padding:8px;gap:5px;flex-wrap:nowrap;overflow-x:auto;min-height:56px}.work-toolbar button{font-size:11px;padding:8px 10px}.toolbar-status{display:none}main{padding:8px}.workspace{display:grid;grid-template-columns:minmax(120px,1fr) minmax(160px,1fr);grid-template-rows:minmax(0,1fr) 220px;height:calc(100dvh + 40px);min-height:560px;gap:7px}.library{grid-column:1/-1;grid-row:2;max-height:220px}.preview-panel{grid-column:1;grid-row:1;padding:7px;height:100%;}.editor{grid-column:2;grid-row:1;padding:9px;height:100%;}.preview-panel .stage{--preview-height:calc(100dvh - 290px)}.preview-top{flex-wrap:wrap;gap:5px}.preview-panel .export-access,.preview-panel .export-folder,.preview-caption{display:none}.preview-top .guide-label{display:none}.transport{flex-wrap:wrap;gap:6px}.transport #scrub{width:65%}.timeline-track{height:44px}.segment{min-width:75px}.tool-panel .field textarea{font-size:12px}.tool-panel .section-title h2{font-size:13px}.tool-panel .editor-intro{font-size:10px}.library .gallery{display:grid;grid-template-columns:repeat(4,1fr)}.library .art-card{min-width:0;max-width:none}.library .library-note{display:none}}
/* Aperçu agrandi : commandes à droite de l’image quand la place le permet */
.preview-top{flex-wrap:wrap;row-gap:6px}
.preview-full{margin-left:auto;padding:5px 10px;font-size:11px;white-space:nowrap}
.stage{max-height:none}
.preview-panel.side-controls{display:grid!important;grid-template-columns:auto minmax(210px,1fr);grid-auto-rows:min-content;column-gap:22px;align-content:start}
.preview-panel.side-controls>.preview-top{grid-column:1/-1}
.preview-panel.side-controls>.stage{grid-column:1;grid-row:2/span 20;align-self:start}
.preview-panel.side-controls>:not(.preview-top):not(.stage){grid-column:2;min-width:0}
.preview-panel.side-controls>.transport{margin-top:0}
.stage:fullscreen{width:100vw!important;height:100vh!important;max-width:none!important;aspect-ratio:auto!important;display:flex;align-items:center;justify-content:center;background:#05080a}
.stage:fullscreen canvas{width:auto!important;height:100%!important;max-width:100%!important;object-fit:contain!important}
.stage:-webkit-full-screen{width:100vw!important;height:100vh!important;max-width:none!important;aspect-ratio:auto!important;display:flex;align-items:center;justify-content:center;background:#05080a}
.stage:-webkit-full-screen canvas{width:auto!important;height:100%!important;max-width:100%!important;object-fit:contain!important}
@media (max-width:720px){.preview-full{display:none}}
/* Onglet Ajuster */
.adjust-note{font-size:12px;line-height:1.45;opacity:.85;margin:4px 0 10px}
.adjust-block{border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:10px 12px;margin:0 0 10px}
.adjust-block h3{font-size:13px;margin:0 0 8px}
.adjust-block h4{font-size:12px;margin:12px 0 6px;opacity:.85}
.adjust-row{display:grid;grid-template-columns:70px minmax(0,1fr) auto;align-items:center;gap:8px;margin:6px 0;font-size:12px}
.adjust-row select{grid-column:2/-1}
.adjust-row input[type=color]{width:42px;height:28px;padding:0}
.adjust-row output{min-width:54px;text-align:right;font-variant-numeric:tabular-nums;font-size:11px;opacity:.85}
.adjust-pad{display:grid;grid-template-columns:repeat(3,38px);grid-template-rows:repeat(3,30px);gap:4px;justify-content:center;margin:8px 0}
.adjust-pad button{padding:0;font-size:15px}
.adjust-pad [data-dir=up]{grid-column:2;grid-row:1}.adjust-pad [data-dir=left]{grid-column:1;grid-row:2}.adjust-pad [data-dir=right]{grid-column:3;grid-row:2}.adjust-pad [data-dir=down]{grid-column:2;grid-row:3}
.adjust-actions{display:flex;flex-wrap:wrap;gap:6px}
.adjust-actions button{font-size:11px;padding:6px 10px}
.adjust-actions button.active{outline:2px solid #00bfd3;outline-offset:1px}
.adjust-hint{font-size:11px;line-height:1.4;opacity:.7;margin:8px 0 0}
body.drag-text #preview{cursor:move;touch-action:none}
/* Aperçu téléphone */
.preview-phone{padding:5px 10px;font-size:11px;white-space:nowrap;margin-left:auto}
.preview-phone+.preview-full{margin-left:0}
.phone-dialog{width:min(96vw,980px);height:min(96vh,1000px);max-width:none;max-height:none;padding:16px 20px;display:none;flex-direction:column;gap:10px}
.phone-dialog[open]{display:flex}
.phone-head{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.phone-head #phoneClose{margin-left:auto}
.phone-seg{display:inline-flex;background:var(--fill,#e8e8ed);border-radius:9px;padding:2px}
.phone-seg button{background:transparent!important;color:inherit!important;padding:6px 12px!important}
.phone-seg button{border:0!important;outline:0!important}.phone-seg button[aria-pressed=true]{background:var(--accent,#0071e3)!important;color:#fff!important;box-shadow:0 1px 3px rgba(0,0,0,.15)!important;font-weight:600!important}
.phone-check{font-size:12px;display:flex;gap:6px;align-items:center}
.phone-scale{font-size:12px;opacity:.7}
.phone-stage{flex:1;min-height:0;display:flex;justify-content:center;align-items:flex-start;overflow:hidden}
.phone{width:393px;height:852px;padding:12px;background:#0b0b0c;border-radius:62px;box-shadow:0 0 0 2px #3a3a3c,0 30px 80px rgba(0,0,0,.35);transform-origin:top center;flex:0 0 auto;box-sizing:content-box}
.phone-screen{position:relative;width:393px;height:852px;border-radius:50px;overflow:hidden;background:#000;color:#fff;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",Helvetica,Arial,sans-serif}
.phone-status{position:absolute;inset:0 0 auto 0;height:54px;display:flex;justify-content:space-between;align-items:center;padding:0 34px;font-size:15px;font-weight:600;z-index:3}
.phone-island{width:122px;height:36px;background:#000;border-radius:20px}
.phone-feed{position:absolute;inset:0;background:#000;padding-top:54px;overflow:hidden}
.feed-top{height:44px;display:flex;align-items:center;padding:0 16px;font-size:20px;font-weight:700}
.feed-post-head{display:flex;align-items:center;gap:10px;padding:8px 12px;font-size:13px}
.feed-post-head img{width:32px;height:32px;border-radius:50%}
.feed-post-head small{display:block;font-size:11px;opacity:.75}
.feed-post-head>span{margin-left:auto;opacity:.8}
.phone-feed canvas,.phone-story canvas{display:block}
.feed-actions{display:flex;gap:16px;padding:10px 14px;font-size:22px}
.feed-save{margin-left:auto}
.feed-cta{margin:0 12px;padding:8px 12px;border-radius:8px;background:#262626;font-size:13px;font-weight:600;display:flex;justify-content:space-between}
.feed-caption{color:#fff!important;font-size:13px;padding:8px 12px;margin:0}
.phone-story{position:absolute;inset:0;background:#000;display:flex;align-items:center;justify-content:center}
.phone-story canvas{position:absolute;top:54px;left:0}
.story-top{position:absolute;top:58px;left:0;right:0;padding:0 10px;z-index:2}
.story-bar{height:2px;background:rgba(255,255,255,.35);border-radius:2px}.story-bar i{display:block;width:45%;height:100%;background:#fff}
.story-user{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:13px}
.story-user img{width:30px;height:30px;border-radius:50%}
.story-user small{opacity:.8}.story-user span{margin-left:auto}
.story-bottom{position:absolute;bottom:22px;left:0;right:0;padding:0 14px;z-index:2;display:flex;flex-direction:column;gap:10px;align-items:center}
.story-cta{background:#fff;color:#000;border-radius:20px;padding:8px 18px;font-size:13px;font-weight:600}
.story-reply{width:100%;display:flex;justify-content:space-between;border:1px solid rgba(255,255,255,.6);border-radius:22px;padding:10px 16px;font-size:13px}
.story-zone{position:absolute;left:0;right:0;background:repeating-linear-gradient(135deg,rgba(255,59,48,.22) 0 8px,rgba(255,59,48,.1) 8px 16px);z-index:1;pointer-events:none}
.story-zone-top{top:54px;height:110px}.story-zone-bottom{bottom:0;height:150px}
.phone-dialog.no-zones .story-zone{display:none}
.phone-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.phone-help{font-size:11px;opacity:.65}
/* Relecture de campagne */
.ai-review{margin-top:18px;padding-top:14px;border-top:1px solid var(--line,rgba(127,127,127,.25))}
.ai-review-intro,.review-summary{font-size:12px;line-height:1.45}
.review-summary{background:var(--raised,#f2f2f7);border-radius:10px;padding:10px 12px;white-space:pre-line}
.review-card{border-radius:10px;padding:10px 12px;margin:10px 0;background:var(--raised,#f2f2f7)}
.review-head{display:flex;align-items:center;gap:8px}.review-head h3{font-size:13px;margin:0;flex:1}
.review-check{font-size:12px;color:#c75c00!important;margin:6px 0}
.review-issue{border-left:3px solid #0071e3;padding:4px 0 4px 10px;margin:8px 0}
.review-issue.is-error{border-color:#ff3b30}
.review-issue p{font-size:12px;margin:0 0 6px;line-height:1.4}
.review-issue textarea{width:100%;font-size:13px;margin-bottom:6px;box-sizing:border-box}
.review-clean{font-size:12px;color:#1d7a35!important}
html[data-theme=dark] .review-clean{color:#30d158!important}
/* Frise et pied de page dans l'aperçu */
.preview-panel .timeline.in-preview{margin:10px 0 0!important;padding:6px 0 0!important;box-shadow:none!important;background:transparent!important;border:0!important;border-radius:0!important}
.preview-panel .timeline.in-preview .timeline-header,.preview-panel .timeline.in-preview .timeline-foot{display:none!important}
.preview-panel .timeline.in-preview .timeline-track{height:52px}
.preview-panel.side-controls .timeline.in-preview .timeline-track{height:auto!important;flex-wrap:wrap;overflow:visible}
.preview-panel.side-controls .timeline.in-preview .segment{flex:1 1 30%!important;min-height:44px}
.preview-panel > footer.in-preview{margin:8px 0 0;padding:0;font-size:11px;display:flex;flex-wrap:wrap;gap:6px 12px;justify-content:space-between;background:transparent;border:0}
.preview-panel.side-controls{overflow-y:auto!important}
