/* Shared suite chrome. Content canvases, generated email/print documents and
   full-screen workspace geometry intentionally retain their own layouts. */
:root{--suite-title-size:22px;--suite-dialog-title-size:18px;--suite-space:20px;--suite-gap:12px;--suite-line:#495057;--suite-radius:8px;--suite-control-height:36px}
/* Page headers: title/description on the left, wrapping actions on the right. */
:root :is(.cf-page-heading,.pf-header,.ebb-header,.library-heading,.wf-help-header,.workspace-heading,.page-heading,.wf-portal-main>header,.wf-campaign-analytics>header,.code-picker>header){
 display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:var(--suite-gap) 24px;min-width:0;box-sizing:border-box;margin-bottom:20px;
}
:root :is(.cf-page-heading,.pf-header,.ebb-header,.library-heading,.wf-help-header,.workspace-heading,.page-heading,.wf-portal-main>header,.wf-campaign-analytics>header,.code-picker>header)>:first-child{min-width:0;max-width:100%}
:root :is(.cf-page-heading,.pf-header,.ebb-header,.library-heading,.wf-help-header,.workspace-heading,.page-heading,.wf-portal-main>header,.wf-campaign-analytics>header,.code-picker>header) :is(h1,h2){font-size:var(--suite-title-size);font-weight:650;line-height:1.3;margin:0;overflow-wrap:anywhere}
:root :is(.cf-page-heading,.pf-header,.ebb-header,.library-heading,.wf-help-header,.workspace-heading,.page-heading,.wf-portal-main>header,.wf-campaign-analytics>header)>div>p{font-size:13px;line-height:1.5;margin:6px 0 0;max-width:76ch}
:root :is(.cf-page-heading>.cf-actions,.pf-header-actions,.ebb-header-actions,.library-heading-actions,.page-heading>.actions){display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;min-width:0;margin:0}
/* Workspace title bars share type and spacing without resizing their canvas. */
:root :is(.cf-header,.wf-print>header,.wf-campaign-manager>header:not(.wf-campaign-program-header),.tw-header){gap:12px;padding:16px 20px;box-sizing:border-box}
:root :is(.cf-header,.wf-print>header,.tw-header) :is(h1,h2){font-size:20px;line-height:1.3;margin:0}
/* These selectors identify application popups, never full-screen workspaces. */
:root :is(.cf-editor,.cf-drawer,.cfa-dialog,.wf-ai-dialog,.pf-dialog,.project-hub,.wf-sharing-dialog,.wf-project-preview,.wf-account-dialog,.webforge-release-dialog,.webforge-profile-dialog,.tools-dialog,.library-tools-dialog,.library-resize-dialog,.library-folder-dialog,.library-move-dialog,.library-compare-dialog,.wf-print-campaign,.wf-print-folder-dialog,.wf-print-library-dialog,.ebb-export-dialog,.ebb-campaign-dialog,.artwork-transfer,.cp-dialog,.code-picker,dialog.export-dialog,dialog.image-dialog){
 box-sizing:border-box;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);border-radius:var(--suite-radius);font-family:Arial,sans-serif;font-size:13px;line-height:1.5;overscroll-behavior:contain;
}
:root :is(.cf-editor,.cf-drawer,.cfa-dialog,.wf-ai-dialog,.pf-dialog,.project-hub,.wf-sharing-dialog,.wf-project-preview,.wf-account-dialog,.webforge-release-dialog,.tools-dialog,.library-tools-dialog,.library-resize-dialog,.library-folder-dialog,.library-move-dialog,.library-compare-dialog,.wf-print-campaign,.wf-print-folder-dialog,.wf-print-library-dialog,.ebb-export-dialog,.ebb-campaign-dialog,.artwork-transfer,.cp-dialog,.code-picker)::backdrop{background:#080b10b8;backdrop-filter:blur(3px)}
:root :is(.cf-editor,.cf-drawer,.cfa-dialog,.wf-ai-dialog,.project-hub,.wf-sharing-dialog,.wf-project-preview,.wf-account-dialog,.webforge-release-dialog,.tools-dialog,.library-tools-dialog,.library-resize-dialog,.library-folder-dialog,.library-move-dialog,.wf-print-campaign,.wf-print-library-dialog,.ebb-export-dialog,.ebb-campaign-dialog,.artwork-transfer,.code-picker)>header,
:root :is(.cf-editor,.wf-print-folder-dialog)>form>header,
:root :is(.tools-dialog-header,.dialog-heading){
 display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:16px 20px;box-sizing:border-box;border-bottom:1px solid var(--suite-line);flex-shrink:0;
}
:root :is(.cf-editor,.cf-drawer,.cfa-dialog,.wf-ai-dialog,.pf-dialog,.project-hub,.wf-sharing-dialog,.wf-project-preview,.wf-account-dialog,.webforge-release-dialog,.tools-dialog,.library-tools-dialog,.library-resize-dialog,.library-folder-dialog,.library-move-dialog,.wf-print-campaign,.wf-print-folder-dialog,.wf-print-library-dialog,.ebb-export-dialog,.ebb-campaign-dialog,.artwork-transfer,.cp-dialog,.code-picker) :is(header h1,header h2,form>h2),
:root :is(.tools-dialog-header,.dialog-heading) :is(h1,h2){font-size:var(--suite-dialog-title-size);font-weight:650;line-height:1.35;margin:0;overflow-wrap:anywhere;min-width:0}
:root :is(.cf-editor,.cf-drawer,.cfa-dialog,.wf-ai-dialog,.project-hub,.wf-sharing-dialog,.wf-project-preview,.wf-account-dialog,.webforge-release-dialog,.tools-dialog,.library-tools-dialog,.library-resize-dialog,.library-folder-dialog,.library-move-dialog,.wf-print-campaign,.wf-print-folder-dialog,.ebb-export-dialog,.ebb-campaign-dialog,.artwork-transfer)>footer,
:root .cf-editor>form>footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:14px 20px;box-sizing:border-box;border-top:1px solid var(--suite-line);margin:0;flex-shrink:0}
/* Keep the form body scrollable and its actions visible for long CRM forms. */
:root .cf-editor{overflow:hidden;padding:0}
:root .cf-editor>form{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 34px);margin:0;gap:0}
:root .cf-editor>form>.cf-form-fields{overflow:auto;min-height:0;padding:20px;flex:1 1 auto;overscroll-behavior:contain;scrollbar-gutter:stable}
:root .cf-editor>form>.cf-form-error{flex-shrink:0;margin:0;padding:0 20px 12px;max-height:90px;overflow:auto}
:root .cf-editor>form>.cf-form-error:empty{display:none}
/* Standard popup fields and action sizing, scoped away from artboard controls. */
:root :is(.cf-editor,.cfa-dialog,.wf-ai-dialog,.pf-dialog,.wf-sharing-dialog,.wf-account-dialog,.library-folder-dialog,.wf-print-folder-dialog,.cp-dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=file]):not([type=hidden]),select,textarea){box-sizing:border-box;min-width:0;max-width:100%;font:13px/1.5 Arial,sans-serif;border-radius:5px;padding:8px 10px;min-height:var(--suite-control-height)}
:root :is(.cf-editor,.cfa-dialog,.wf-ai-dialog,.pf-dialog,.wf-sharing-dialog,.wf-account-dialog,.library-folder-dialog,.wf-print-folder-dialog,.cp-dialog) label{line-height:1.5}
:root :is(.cf-editor,.cfa-dialog,.wf-ai-dialog,.pf-dialog,.wf-sharing-dialog,.wf-account-dialog,.library-folder-dialog,.wf-print-folder-dialog) label>:is(input:not([type=checkbox]):not([type=radio]),select,textarea){margin-top:7px}
:root :is(.cf-editor,.cfa-dialog,.wf-ai-dialog,.pf-dialog,.wf-sharing-dialog,.wf-account-dialog,.library-folder-dialog,.wf-print-folder-dialog) label:has(>input:is([type=checkbox],[type=radio])){display:flex;align-items:flex-start;gap:8px}
:root :is(.cf-editor,.cfa-dialog,.wf-ai-dialog,.pf-dialog,.wf-sharing-dialog,.wf-account-dialog,.library-folder-dialog,.wf-print-folder-dialog) label>input:is([type=checkbox],[type=radio]){flex:0 0 auto;width:auto;min-height:0;margin:3px 0 0}
:root :is(.cf-editor,.cf-drawer,.cfa-dialog,.wf-ai-dialog,.pf-dialog,.project-hub,.wf-sharing-dialog,.wf-account-dialog,.webforge-release-dialog,.tools-dialog,.library-tools-dialog,.library-folder-dialog,.library-resize-dialog,.wf-print-folder-dialog) :is(header,footer) button,
:root :is(.cf-page-heading,.pf-header,.library-heading,.workspace-heading,.page-heading) :is(button,a.secondary){min-height:var(--suite-control-height);padding:8px 12px;font:600 12px/1.4 Arial,sans-serif;border-radius:5px;box-sizing:border-box;white-space:normal}
@media(max-width:760px){
 :root{--suite-title-size:20px;--suite-dialog-title-size:17px;--suite-space:14px;--suite-control-height:40px}
 :root :is(.cf-page-heading,.pf-header,.ebb-header,.library-heading,.wf-help-header,.workspace-heading,.page-heading){gap:12px;margin-bottom:16px}
 :root :is(.cf-page-heading>.cf-actions,.pf-header-actions,.library-heading-actions){width:100%;justify-content:flex-start}
 :root :is(.cf-editor,.cf-drawer,.cfa-dialog,.wf-ai-dialog,.pf-dialog,.project-hub,.wf-sharing-dialog,.wf-account-dialog,.webforge-release-dialog,.tools-dialog,.library-tools-dialog,.library-folder-dialog,.library-resize-dialog){max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
 :root :is(.cf-editor,.cf-drawer,.cfa-dialog,.wf-ai-dialog,.project-hub,.wf-sharing-dialog,.wf-account-dialog,.webforge-release-dialog,.tools-dialog,.library-tools-dialog)>header,:root .cf-editor>form>header{padding:14px}
 :root .cf-editor>form{max-height:calc(100dvh - 22px)}
 :root .cf-editor>form>.cf-form-fields{padding:14px}
 :root .cf-editor>form>footer{padding:12px 14px;gap:8px}
 :root .cf-editor>form>footer>button{flex:1 1 auto}
}
@media print{.workspace-heading,.page-heading{display:none!important}}

/* Override legacy ID-scoped titles with the same shared scale. */
:root #contact-forge .cf-page-heading h2,:root #email-block-builder .ebb-header h1{font-size:var(--suite-title-size);line-height:1.3;margin:0}
:root #contact-forge .cf-page-heading{gap:12px 24px;margin-bottom:20px}
:root #project-hub>header h2,:root #hub-confirm>header h2{font-size:var(--suite-dialog-title-size);line-height:1.35;margin:0}

/* Do not stretch a short form's rows to fill the available viewport. */
:root .cf-editor>form>.cf-form-fields{flex:0 1 auto;align-content:start}
:root .cf-editor :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=file]):not([type=hidden]),select){height:var(--suite-control-height)}
:root .cf-editor .cf-subscription-tabs button{min-height:var(--suite-control-height);padding:8px 12px}

:root #contact-forge .cf-main[data-view] .cf-page-heading h2{font-size:var(--suite-title-size);line-height:1.3;margin:0}

/* Headers must not collapse when a long list fills a flex workspace. */
:root :is(.cf-page-heading,.pf-header,.ebb-header,.library-heading,.wf-help-header,.workspace-heading,.page-heading,.wf-portal-main>header){flex-shrink:0}

:root .cf-editor.cf-subscription-editor{height:auto;min-height:0}
