/* Scoped to the new editor and dialog. Existing Elementor styles remain authoritative elsewhere. */
.aqm-admin,.aqm-dialog{--aqm-ready:1;--aqm-accent:#7c3292;--aqm-ink:#333;--aqm-muted:#69616c;--aqm-line:#e5dfe8;--aqm-soft:#f9f5fb;font-family:'Helvetica Neue','HN',Helvetica,Arial,sans-serif;color:var(--aqm-ink);font-size:16px;line-height:1.5;letter-spacing:normal;text-align:left;color-scheme:light}
.aqm-admin *,.aqm-dialog *{box-sizing:border-box}
.aqm-admin ::selection,.aqm-dialog ::selection{background:#e9d5ef;color:#333}
.aqm-admin{max-width:1240px;margin:0 auto;padding:48px 24px 64px}
.aqm-admin h1,.aqm-admin h2,.aqm-dialog h2,.aqm-admin p,.aqm-dialog p{font-family:inherit;color:inherit;margin:0;line-height:inherit}
.aqm-admin .aqm-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:36px}
.aqm-admin .aqm-heading h1{font-size:42px;font-weight:500;line-height:1.12;letter-spacing:-.025em;margin:0 0 10px}
.aqm-admin .aqm-heading p{color:var(--aqm-muted);font-size:18px}
.aqm-admin .aqm-status{padding:7px 13px;border-radius:6px;background:#f0ebf2;color:#5d5362;font-size:14px;white-space:nowrap}
.aqm-admin .aqm-status[data-state=active]{background:#e8f3ec;color:#245b38}
.aqm-admin .aqm-status[data-state=scheduled]{background:#f2e8f7;color:var(--aqm-accent)}
.aqm-admin .aqm-templates{margin-bottom:36px;padding:24px;background:var(--aqm-soft);border-radius:16px}
.aqm-admin .aqm-templates summary{font-size:23px;line-height:1.25;font-weight:500;cursor:pointer}
.aqm-admin .aqm-template-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:24px}
.aqm-admin .aqm-template{min-width:0;display:flex;flex-direction:column}
.aqm-admin .aqm-template h3{font:500 17px/1.3 'Helvetica Neue','HN',Helvetica,Arial,sans-serif;color:var(--aqm-ink);margin:0 0 12px}
.aqm-admin .aqm-template p{font-size:15px;line-height:1.5;overflow-wrap:anywhere;margin-bottom:18px;user-select:text}
.aqm-admin .aqm-template-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.aqm-admin .aqm-template-actions .aqm-copy{padding:0;width:44px;height:44px;min-height:44px}.aqm-admin .aqm-copy svg{width:20px;height:20px}
.aqm-admin .aqm-template-feedback{font-size:14px;color:var(--aqm-accent)}
.aqm-admin .aqm-template-feedback:not(:empty){margin-top:16px}
@media(max-width:740px){.aqm-admin .aqm-templates{padding:20px 16px}.aqm-admin .aqm-template-list{grid-template-columns:minmax(0,1fr);gap:24px}.aqm-admin .aqm-template+.aqm-template{border-top:1px solid var(--aqm-line);padding-top:24px}}
.aqm-admin .aqm-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:64px;align-items:start}
.aqm-admin .aqm-editor,.aqm-admin .aqm-preview{min-width:0}
.aqm-admin fieldset{border:0;margin:0;padding:0;min-width:0}
.aqm-admin .aqm-section{padding:0 0 28px;margin:0 0 28px;border-bottom:1px solid var(--aqm-line)}
.aqm-admin h2{font-size:23px;font-weight:500;line-height:1.25;margin-bottom:20px;letter-spacing:-.015em}
.aqm-admin label{display:block;font-size:15px;font-weight:500;margin:20px 0 8px}
.aqm-admin label span:not(.aqm-switch){font-weight:400}
.aqm-admin label>span:not(.aqm-switch){color:var(--aqm-muted);font-size:13px;margin-left:6px}
.aqm-admin input:not([type=checkbox]),.aqm-admin select,.aqm-admin textarea{display:block;width:100%;max-width:100%;min-width:0;border:1px solid #cfc7d3;background:#fff;color:#333;border-radius:8px;padding:12px 13px;font:inherit;font-size:16px;line-height:1.35;box-shadow:none;caret-color:var(--aqm-accent)}
.aqm-admin input::placeholder,.aqm-admin textarea::placeholder{color:#756c79;opacity:1}
.aqm-admin textarea{resize:vertical;min-height:118px}
.aqm-admin .aqm-help{color:var(--aqm-muted);font-size:13px;line-height:1.5;margin-top:8px;max-width:65ch}
.aqm-admin .aqm-dates{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.aqm-admin input[type=datetime-local]{font-size:15px;font-variant-numeric:tabular-nums;min-height:48px}
.aqm-admin .aqm-publish{margin:0 0 28px}
.aqm-admin .aqm-editor .aqm-section:first-child .aqm-publish{margin:24px 0 4px}
.aqm-admin .aqm-toggle{display:flex;gap:12px;align-items:center;position:relative;cursor:pointer;margin:0}
.aqm-admin .aqm-toggle input{position:absolute;width:44px;height:26px;margin:0;opacity:0;cursor:pointer}
.aqm-admin .aqm-switch{flex:0 0 44px;height:26px;border-radius:15px;background:#b4abb8;position:relative}
.aqm-admin .aqm-switch:after{content:'';position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff}
.aqm-admin .aqm-toggle input:checked+.aqm-switch{background:var(--aqm-accent)}
.aqm-admin .aqm-toggle input:checked+.aqm-switch:after{left:21px}
.aqm-admin .aqm-toggle>span:last-child{font-size:16px;color:#333;margin:0}
.aqm-admin .aqm-toggle small{display:block;font-size:13px;font-weight:400;color:var(--aqm-muted);margin-top:2px}
.aqm-admin .aqm-actions{display:flex;gap:12px;flex-wrap:wrap}
.aqm-admin .aqm-button,.aqm-dialog .aqm-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:48px;border:1px solid transparent;border-radius:8px;background:var(--aqm-accent);color:#fff;padding:12px 19px;font:inherit;font-size:15px;font-weight:500;text-decoration:none;line-height:1.3;cursor:pointer;box-shadow:none}
.aqm-admin .aqm-button:hover,.aqm-dialog .aqm-button:hover{background:#642577;color:#fff}
.aqm-admin .aqm-secondary{background:#fff;border-color:#cfc7d3;color:var(--aqm-accent)}
.aqm-admin .aqm-secondary:hover{background:#f5edf8;color:#642577}
.aqm-admin button:disabled{opacity:.55;cursor:wait}
.aqm-admin :focus-visible,.aqm-dialog :focus-visible{outline:3px solid #a768b8;outline-offset:3px}
.aqm-admin .aqm-toggle input:focus-visible+.aqm-switch{outline:3px solid #a768b8;outline-offset:3px}
.aqm-admin .aqm-feedback{min-height:24px;margin-top:16px;font-size:14px;color:var(--aqm-muted)}
.aqm-admin .aqm-feedback[data-error=true]{color:#a02036}
.aqm-admin .aqm-preview{position:sticky;top:36px}
.aqm-admin .aqm-preview-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:20px}
.aqm-admin .aqm-preview-heading h2{font-size:18px;margin:0}
.aqm-admin .aqm-preview-heading span{font-size:12px;color:var(--aqm-muted)}
.aqm-admin .aqm-preview-stage{background:var(--aqm-soft);padding:36px 24px;border-radius:16px;min-height:340px;display:flex;align-items:center;justify-content:center}
.aqm-admin .aqm-summary{margin-top:28px;padding-top:20px;border-top:1px solid var(--aqm-line);font-size:14px;color:var(--aqm-muted);white-space:pre-line;font-variant-numeric:tabular-nums}
.aqm-admin .aqm-notice,.aqm-dialog .aqm-notice{width:100%;background:#fff;border-radius:16px;padding:44px 36px;text-align:center;overflow-wrap:anywhere}
.aqm-admin .aqm-notice-image,.aqm-dialog .aqm-notice-image{display:block;height:auto;max-width:100%;max-height:240px;object-fit:contain;margin:0 auto 24px}
.aqm-admin .aqm-notice h2,.aqm-dialog .aqm-notice h2{font-size:32px;line-height:1.15;font-weight:500;letter-spacing:-.02em;margin:0 0 22px;text-wrap:balance}
.aqm-admin .aqm-brand,.aqm-dialog .aqm-brand{color:var(--aqm-accent)}
.aqm-admin .aqm-notice .aqm-highlight,.aqm-dialog .aqm-notice .aqm-highlight{font-size:21px;line-height:1.35;color:var(--aqm-accent);margin:0 0 14px;white-space:pre-wrap}
.aqm-admin .aqm-notice .aqm-message,.aqm-dialog .aqm-notice .aqm-message{font-size:19px;line-height:1.5;white-space:pre-wrap;margin:0 auto;max-width:65ch}
.aqm-admin .aqm-mini{padding:32px 24px}
.aqm-admin .aqm-mini h2{font-size:25px;margin-bottom:18px}
.aqm-admin .aqm-mini .aqm-highlight{font-size:18px}
.aqm-admin .aqm-mini .aqm-message{font-size:16px}
.aqm-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(30,20,35,.58);display:flex;align-items:center;justify-content:center;overflow:auto;overscroll-behavior:contain;padding:20px 16px}.aqm-overlay[hidden]{display:none}.aqm-dialog{position:relative;margin:auto;border:0;padding:0;max-width:100%;width:780px;max-height:calc(100dvh - 40px);background:#fff;border-radius:16px;overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 80px #20132740;scrollbar-color:#b68ac4 #f9f5fb}
.aqm-dialog:not([open]){display:none}
.aqm-dialog[open]{animation:aqm-enter .24s cubic-bezier(.16,1,.3,1)}
.aqm-dialog .aqm-notice{padding:70px 56px 44px}
.aqm-dialog .aqm-close{position:absolute;right:16px;top:16px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:8px;color:#69616c;background:#f6f1f8;cursor:pointer}
.aqm-dialog .aqm-close:hover{background:#eadcf0;color:#642577}
.aqm-dialog .aqm-close svg{width:20px;height:20px}
.aqm-dialog .aqm-bottom{display:flex;justify-content:center;padding-top:28px}
.aqm-dialog .aqm-preview-note{text-align:center;padding:12px 72px 12px 16px;min-height:60px;background:#f6f1f8;color:#69616c;font-size:13px}
.aqm-access p{margin:16px 0 24px}
@keyframes aqm-enter{from{transform:translateY(10px);opacity:.75}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.aqm-dialog[open]{animation:none}}
@media(max-width:1000px){.aqm-admin .aqm-layout{gap:32px;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}.aqm-admin .aqm-dates{grid-template-columns:1fr}.aqm-admin .aqm-preview-stage{padding:24px 16px}}
@media(max-width:740px){.aqm-admin{padding:28px 16px 40px}.aqm-admin .aqm-heading{align-items:flex-start;gap:16px;margin-bottom:28px}.aqm-admin .aqm-heading h1{font-size:34px}.aqm-admin .aqm-heading p{font-size:16px}.aqm-admin .aqm-layout{grid-template-columns:minmax(0,1fr);gap:36px}.aqm-admin .aqm-preview{position:static}.aqm-admin .aqm-status{font-size:12px}.aqm-admin .aqm-actions{flex-direction:column}.aqm-admin .aqm-preview-stage{min-height:290px}.aqm-dialog .aqm-notice{padding:68px 24px 28px}.aqm-dialog .aqm-notice h2{font-size:28px}.aqm-dialog .aqm-notice .aqm-highlight{font-size:20px}.aqm-dialog .aqm-notice .aqm-message{font-size:17px}.aqm-dialog .aqm-button{width:100%}}
