.pnm-editor{max-width:820px;margin:24px auto;padding:28px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;box-shadow:0 5px 20px #0000000a}.pnm-editor h3{margin:0 0 18px;color:#7A1023}.pnm-editor form{display:grid;gap:14px}.pnm-editor form p{margin:0}.pnm-editor label{display:block;font-weight:600}.pnm-editor input[type=text],.pnm-editor input:not([type]),.pnm-editor input[name=pnm_title],.pnm-editor input[name=pnm_subject]{width:100%;box-sizing:border-box;padding:11px;border:1px solid #cbd5e1;border-radius:6px}.pnm-editor input[type=file]{display:block;width:100%;margin-top:8px;padding:20px;border:2px dashed #a7b8c8;border-radius:8px}.pnm-editor button{background:#D70007;color:white;border:0;border-radius:6px;padding:12px 22px;cursor:pointer}.pnm-editor ul{padding-left:22px}.pnm-editor li{margin:8px 0}@media(max-width:600px){.pnm-editor{padding:16px}}
/* WordPress editor controls must not inherit the newsletter submit-button style. */
.pnm-editor .wp-editor-wrap .wp-switch-editor,.pnm-editor .wp-editor-wrap .quicktags-toolbar input,.pnm-editor .wp-editor-wrap .mce-btn button{background:initial;color:inherit;border-radius:0;padding:4px 8px;border:initial;box-shadow:none}
.pnm-editor .wp-editor-wrap .wp-switch-editor{background:#f0f0f1;border:1px solid #c3c4c7;padding:4px 10px}
.pnm-editor .wp-editor-wrap.tmce-active .switch-tmce,.pnm-editor .wp-editor-wrap.html-active .switch-html{background:#fff;border-bottom-color:#fff}
.pnm-editor .wp-editor-wrap .mce-btn button{padding:4px 6px}
.pnm-editor .wp-editor-container{border:1px solid #c3c4c7}
.pnm-editor .pnm-test-form{margin-top:18px;display:block}
.pnm-editor .pnm-test-button{background:#D70007}
.pnm-editor .pnm-hint{font-size:13px;color:#706164;margin-top:8px}
.pnm-editor .pnm-test-result{padding:12px;border-left:4px solid #D70007;background:#fff4f4}

.pnm-editor .pnm-template-note{padding:12px 15px;background:#fff2f3;border-left:4px solid #D70007;color:#751c2d;line-height:1.5}
.pnm-editor .pnm-hero-field{padding:16px;border:1px solid #e9dadd;border-radius:8px}
.pnm-editor .pnm-hero-field h4{margin:0 0 8px}
.pnm-editor .pnm-hero-field button{background:#D70007;margin:5px 8px 5px 0}

/* 0.7.3: single responsive two-column workspace */
.pnm-editor{max-width:1560px!important;width:min(1560px,calc(100vw - 48px))!important;margin:32px 0 40px 50%!important;transform:translateX(-50%);box-sizing:border-box;padding:26px!important;position:relative;z-index:1}
.pnm-editor .pnm-workspace{display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)!important;gap:30px;align-items:start}
.pnm-editor .pnm-edit-pane,.pnm-editor .pnm-preview-pane{min-width:0}
.pnm-editor .pnm-preview-pane{position:relative;top:auto;background:#faf6f6;border:1px solid #e9dadd;border-radius:10px;padding:18px;box-sizing:border-box}
.pnm-editor .pnm-preview-sticky{position:sticky;top:24px;max-height:calc(100vh - 45px);overflow:auto}
.pnm-editor .pnm-preview-sticky>h4{margin:0 0 12px;color:#D70007}.pnm-editor .pnm-preview-sticky small{font-weight:400;color:#706164}
.pnm-editor .pnm-preview-mail{max-width:640px;margin:auto;background:#fff;border:1px solid #e9dadd;padding:30px;color:#322b2c;font:15px/1.7 Arial,Helvetica,sans-serif;overflow-wrap:anywhere;box-sizing:border-box}
.pnm-editor .pnm-preview-brand{text-align:center;margin-bottom:18px}.pnm-editor .pnm-preview-brand img{max-width:75%;height:auto}
.pnm-editor .pnm-preview-head{border-top:4px solid #D70007;padding-top:18px}.pnm-editor .pnm-preview-mail h2{font-size:27px;line-height:1.3;margin:20px 0;color:#D70007}
.pnm-editor .pnm-preview-body{line-height:1.7;min-height:20px}.pnm-editor .pnm-preview-body p{margin:0 0 14px}
.pnm-editor #pnm-preview-image{max-width:100%;width:100%;height:auto;max-height:370px;object-fit:cover;margin:22px 0}
.pnm-editor .pnm-preview-docs{margin:24px 0}.pnm-editor .pnm-preview-docs ul{padding:0;list-style:none}.pnm-editor .pnm-preview-docs li{padding:10px;background:#fff3f4;margin:6px 0}
.pnm-editor .pnm-preview-footer{padding:16px;background:#faf0f1;font-size:12px}.pnm-editor .pnm-preview-note{font-size:12px;color:#706164}
.pnm-editor .pnm-saved{background:#fff4f4;border-left:4px solid #D70007;padding:12px 15px}
@media(max-width:1000px){.pnm-editor{width:calc(100vw - 24px)!important;padding:16px!important}.pnm-editor .pnm-workspace{grid-template-columns:minmax(0,1fr)!important}.pnm-editor .pnm-preview-sticky{position:static;max-height:none}}

.pnm-dashboard{max-width:1080px;margin:30px auto;padding:20px}
.pnm-dashboard h2{margin:0 0 25px}
.pnm-new-button{display:inline-block;background:#D70007;color:#fff!important;text-decoration:none!important;padding:15px 24px;border-radius:7px;font-weight:700}
.pnm-dashboard-section{margin:28px 0;padding:22px;background:#fff;border:1px solid #e9dadd;border-radius:10px}
.pnm-dashboard-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-top:1px solid #e6ece7}
.pnm-dashboard-item small{display:block;color:#6f6265;margin-top:5px}
.pnm-dashboard-item>a{white-space:nowrap;font-weight:600}
@media(max-width:600px){.pnm-dashboard-item{align-items:flex-start;flex-direction:column}}

.pnm-send-ready{max-width:1200px;margin:24px auto;padding:22px;border:1px solid #e9cdd2;border-radius:10px;background:#fffafa}
.pnm-send-ready>h3{margin-top:0;color:#9E1831}
.pnm-edit-details{margin-top:22px}
.pnm-edit-details>summary{cursor:pointer;padding:15px;background:#fff;border:1px solid #e9cdd2;border-radius:7px;font-weight:700}
.pnm-edit-details[open]>summary{margin-bottom:18px}

.pnm-draft-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.pnm-delete-form{display:inline;margin:0}
.pnm-delete-button{border:1px solid #c54747;background:#fff;color:#a52828;border-radius:5px;padding:6px 11px;cursor:pointer;font:inherit}
.pnm-delete-button:hover{background:#fff0f0}

/* v0.8.0: BGM red branding and separated delivery actions */
.pnm-editor button,.pnm-new-button{background:#D70007;color:#fff}
.pnm-editor button:hover,.pnm-new-button:hover{background:#9E0D24}
.pnm-editor .pnm-delivery form{display:block;margin:0 0 16px!important}
.pnm-editor .pnm-delivery form+form{margin-top:16px!important}
.pnm-editor .pnm-delivery form button{display:block;width:100%;margin:0;border-radius:7px;min-height:44px}
.pnm-editor .pnm-delivery form:nth-of-type(2) button{background:#9E1831}
.pnm-editor .pnm-delivery{display:flex;flex-direction:column;gap:0}
.pnm-editor .pnm-preview-head{border-top-color:#D70007}
.pnm-editor .pnm-preview-mail h2,.pnm-editor .pnm-preview-sticky>h4,.pnm-send-ready>h3{color:#D70007}
.pnm-editor .pnm-test-result,.pnm-editor .pnm-saved,.pnm-editor .pnm-template-note{border-left-color:#D70007}
.pnm-editor a,.pnm-dashboard a:not(.pnm-new-button){color:#A10E28}
