.steps li{min-width:0;color:var(--muted)}
.steps li button{display:flex;align-items:center;gap:8px;width:100%;min-width:0;border:0;background:transparent;color:inherit;font:inherit;padding:7px 5px;border-radius:10px;text-align:left;cursor:pointer;transition:background .18s,color .18s}
.steps li button:hover{background:#e9e2f1;color:var(--ink)}
.steps li button:focus-visible{outline:2px solid var(--violet);outline-offset:2px}
.steps li button>span{width:25px;height:25px;flex:none;border-radius:50%;display:grid;place-items:center;background:#e9e5df;font-size:10px}
.steps li.current button{color:var(--ink);font-weight:600;background:#ece5f3}
.steps li.current button>span{background:var(--violet);color:white}
.steps li.done{color:var(--muted)}
.remove-cover-button{margin-left:10px;color:#a24738;border-color:#ddc0b9;background:#fffaf7}
.remove-cover-button:hover{color:#802f22;background:#f8e6df;border-color:#cb7866}
#format-dialog{width:min(740px,calc(100vw - 32px));max-height:calc(100dvh - 24px);overflow-y:auto;overflow-x:hidden}
#format-dialog form{overflow:visible;min-width:0;width:100%}
#format-dialog .wizard-header{padding:18px 24px 12px}
#format-dialog .wizard-header h2{font-size:27px}
#format-dialog .format-editor-body{padding:0 24px 12px}
#format-dialog label,#format-dialog input,#format-dialog select{min-width:0;max-width:100%;box-sizing:border-box}
#format-dialog input,#format-dialog select{width:100%;height:38px;padding:8px 10px}
#format-dialog .three-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}
#format-dialog .four-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#format-dialog .format-editor-body>label{margin-bottom:12px}
#format-dialog .format-output{padding:14px 16px;border:1px solid #ded5e9;background:#f0ebf5;border-radius:14px;margin:0 0 16px}
.format-output-heading{display:flex;align-items:center;gap:8px;font-size:12px}
.format-output-heading .icon{width:17px;height:17px;color:#8070a5}
.format-output>p,.format-custom-name>p{font-size:11px;line-height:1.5;color:var(--muted);margin:7px 0 10px}
.format-output-preview{padding:11px 13px;background:#ffffff9c;border:1px solid #e4ddec;border-radius:10px;display:grid;gap:5px;overflow-wrap:anywhere}
#format-output-path{font-size:12px;font-weight:600;color:#584578}
.format-output-preview small{font-size:10px;color:var(--muted)}
#format-dialog .format-folder-toggle{display:flex;align-items:center;gap:9px;margin-top:12px;cursor:pointer;line-height:1.5}
#format-dialog #format-custom-folder{width:15px;height:15px;padding:0;flex:none;margin:0}
#format-dialog .format-custom-name{margin-top:13px}
#format-dialog .format-custom-name[hidden]{display:none}
.format-custom-name>p{margin-bottom:0}
#format-dialog .format-editor-body h3{margin:14px 0 10px}
#format-dialog .format-safe-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
#format-dialog .format-safe-heading h3{margin:14px 0 10px}
#format-dialog .wizard-footer{padding:12px 24px;flex-wrap:nowrap}
#format-dialog .helper{margin:9px 0;font-size:10px}
.decision-dialog{width:min(600px,calc(100vw - 32px))}
.decision-content{padding:0 28px 16px;font-size:14px;line-height:1.7;color:var(--muted)}
.decision-content [role=alert]{color:#a24738;margin-top:8px}
.decision-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;padding:20px 24px;border-top:1px solid var(--line)}
.success-dialog{padding:30px;align-items:center;text-align:center;gap:14px}
.success-dialog h2{font-size:29px;margin:0;line-height:1.2}
.success-dialog>p{font-size:14px;color:var(--muted);margin:0}
.success-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}
.success-symbol{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:#dfe9d9;color:#486640}
.success-symbol .icon{width:29px;height:29px}
.success-next{background:#eee8f3;border-radius:15px;padding:20px;text-align:left;font-size:13px;line-height:1.7;width:100%;box-sizing:border-box}
.success-next p{margin:8px 0}.success-next small{color:var(--muted)}
@media(max-width:600px){.steps{gap:4px;padding-left:14px;padding-right:14px}.steps li button{flex-direction:column;white-space:normal;text-align:center;font-size:10px;gap:5px}.remove-cover-button{margin:8px 0 0}#format-dialog .four-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.decision-actions .button{flex:1 1 auto}}
@media(max-height:670px) and (min-width:601px){#format-dialog .wizard-header{padding:12px 20px 8px}#format-dialog .format-editor-body{padding:0 20px 6px}#format-dialog input,#format-dialog select{height:34px;padding:5px 8px}#format-dialog .three-fields,#format-dialog .format-editor-body>label{margin-bottom:8px}#format-dialog .format-editor-body h3{margin:8px 0}#format-dialog .wizard-footer{padding:8px 20px}#format-dialog .button{padding:10px 14px}}
#wizard .wizard-content>.format-table-wrap{max-height:none;overflow:visible}
#wizard .wizard-content>.format-table-wrap tbody td{padding-top:9px;padding-bottom:9px}
#wizard .wizard-content>.format-table-wrap .briefing-saved{max-width:none;margin:6px 0 0;padding:5px 10px}
#wizard .wizard-content>.format-table-wrap .briefing-saved summary{font-size:11px}
#wizard .wizard-content>.format-table-wrap thead th{position:static;background:#f8f5ef}
#wizard .wizard-content>.format-table-wrap td:first-child{width:32px}
#wizard .wizard-content>.format-table-wrap td:nth-child(2){width:42%}
#wizard .wizard-content>.format-table-wrap td:nth-child(2) strong{font-size:11px}
#wizard .wizard-content>.format-table-wrap td:nth-child(2)>small{display:inline;margin-left:8px}
#wizard .preparation-issues{margin:4px 0 0;padding-left:21px}
#wizard .preparation-issues li{margin:5px 0}
#wizard .preparation-issues button{border:0;background:transparent;color:inherit;font:inherit;text-align:left;text-decoration:underline;cursor:pointer;padding:0}
@media(max-width:700px){#wizard .wizard-content>.format-table-wrap{overflow-x:auto}#wizard .wizard-content>.format-table-wrap table{min-width:650px}}
.campaign-section .new-campaign{margin-top:0;display:inline-flex}
.format-remove{border:1px solid #d8b2ad;background:#fff8f5;color:#a23d32;flex:none;width:34px;height:34px;border-radius:9px}
.format-remove:hover{background:#fbe1dc;border-color:#b6584d;color:#80281f}
.format-table-wrap td:last-child{white-space:nowrap}
.format-table-wrap td:last-child button+button{margin-left:7px}
.format-has-error,.format-has-error>td{background:#fff0ed!important}
.format-has-error{box-shadow:inset 4px 0 #bd493e;border-color:#d79489!important}
.format-issue{display:block;color:#942e25;font-size:11px;line-height:1.5;margin:7px 0;white-space:normal}
.format-issue>strong{font:600 11px 'IBM Plex Sans',sans-serif!important;display:block}
.review-format{position:relative;padding-top:38px}
.review-format>.format-remove{position:absolute;right:10px;top:10px}
.review-format>.button{margin-top:9px;align-self:center}
.format-undo{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 16px;background:#eee7f4;border:1px solid #d8cce8;border-radius:12px;margin:15px 0;font-size:12px}
#format-dialog [aria-invalid=true]{border-color:#ba443a;background:#fff0ed;box-shadow:0 0 0 1px #ba443a}
.cta-editor-header>div{display:flex;gap:9px;flex-wrap:wrap}
.cta-remove{color:#a23d32!important;border-color:#d8ada5!important;background:#fff8f5!important}
.cta-copy-tools{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.cta-copy-picker{min-width:0}
.cta-copy-picker>summary{cursor:pointer;list-style:none;width:100%;justify-content:center;min-height:44px;padding:10px 14px;box-sizing:border-box}
.cta-copy-picker>summary::-webkit-details-marker{display:none}
.cta-copy-picker>summary:focus-visible{outline:3px solid #8171b5;outline-offset:3px}
.cta-copy-picker>summary.copy-colors-trigger{background:linear-gradient(110deg,#e4d8f3,#f7dddc 55%,#fae9b6);border-color:#bea4ce;color:#45374f;font-weight:600}
.cta-copy-picker>summary.copy-font-trigger{background:#ece5f4;border-color:#baa9cd;color:#57456f;font-weight:600}
.cta-copy-options{padding:11px;margin-top:8px;background:#fffdf9;border:1px solid #d9cee6;border-radius:13px}
.cta-copy-options>p{font-size:11px;color:var(--muted);margin:0 0 9px}
.cta-copy-option{display:flex;align-items:center;gap:10px;padding:10px;width:100%;border:1px solid #e1dad0;border-radius:10px;background:white;cursor:pointer;text-align:left;font:inherit;margin:7px 0;min-width:0}
.cta-copy-option:hover{border-color:#8171b5;background:#f5f0fa}
.cta-copy-option:focus-visible{outline:2px solid #8171b5;outline-offset:2px}
.cta-source-preview{font-size:11px;font-weight:700;display:grid;place-items:center;min-width:45px;max-width:110px;padding:8px;border-radius:8px;overflow-wrap:anywhere;background:#ece5f4;color:#57456f}
.cta-copy-option>span:last-child{min-width:0}.cta-copy-option strong,.cta-copy-option small{display:block;overflow-wrap:anywhere;font-size:11px}
.cta-copy-option small{color:var(--muted);font-size:10px;margin-top:3px}
.cta-assignment.format-has-error{padding:12px;border-radius:12px}
@media(max-width:600px){.campaign-section .section-heading{flex-wrap:wrap;gap:14px}.campaign-section .new-campaign{display:inline-flex!important}.cta-copy-tools{grid-template-columns:1fr}.format-undo{flex-wrap:wrap}}
