/* Email editor geometry measured from the reference. Shared by mock and live. */
html:has(.email-editor){scrollbar-gutter:stable}
.content .email-editor{max-width:1062px;padding:20px 32px 70px;font-size:13px;font-weight:450;line-height:20px}
.email-editor .channel-tabs{height:32px;min-height:32px;margin:0 0 16px;gap:4px}
.email-editor .channel-tabs a{padding:6px 12px;line-height:20px;font-weight:450}
.email-editor .channel-tabs a.active{font-weight:550}
.email-editor .card{border:0;border-radius:12px;box-shadow:inset 0 0 0 1px #e1e3e5,0 1px 2px #0001;overflow:hidden}
.email-editor .channel-settings-card h3{font-size:14px;line-height:20px;font-weight:650;padding:16px 16px 12px;margin:0;border-bottom:1px solid #e7e7e7}
.email-editor .channel-settings-body{padding:12px 16px 16px}
.email-editor .email-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.email-editor label:has(textarea){display:block;margin:0!important}
.email-editor textarea.input{display:block;box-sizing:border-box;height:112px;min-height:112px;margin:0;padding:6px 12px;border:1px solid #8a8a8a;border-radius:8px;font:450 13px/20px Inter,Arial,sans-serif;background:#fff;color:#303030;resize:none}
.email-editor .channel-settings-body>p{font-size:13px;font-weight:450;line-height:20px;margin:4px 0 0;color:#616161}
.email-brand-options{display:flex;flex-direction:column;gap:8px}
.email-editor .email-brand-options>label,.email-editor .channel-settings-body>label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px;margin:0;padding:4px 0;min-height:28px;line-height:20px;font-weight:450}
.email-editor input[type=radio],.email-editor input[type=checkbox]{appearance:none;-webkit-appearance:none;flex:none;width:16px;height:16px;padding:0;margin:0;border:1px solid #8a8a8a;background:#fff;cursor:pointer}
.email-editor input[type=radio]{border-radius:50%}
.email-editor input[type=radio]:checked{border:5px solid #303030}
.email-editor input[type=checkbox]{border-radius:4px}
.email-editor input[type=checkbox]{display:inline-grid;place-items:center}
.email-editor input[type=checkbox]:checked{background:#303030;border-color:#303030}
.email-editor input[type=checkbox]:checked::after{content:"";width:8px;height:4px;border-left:1.7px solid #fff;border-bottom:1.7px solid #fff;transform:translateY(-1px) rotate(-45deg)}
.email-editor aside .channel-settings-card h3{display:flex;justify-content:space-between;align-items:center;min-height:53px}
.email-editor aside h3 img{width:24px;height:24px}
.email-editor .channel-editor-overview{font:450 13px/20px Inter,Arial,sans-serif;gap:12px 16px}
.email-editor .pill,.email-topbar .email-state{display:inline-flex;align-items:center;min-height:20px;padding:0 6px;background:#e8e8e8;color:#616161;border-radius:8px;font-size:12px;line-height:16px;font-weight:450}
.shell .workspace header.email-topbar{border-bottom:0}
.email-topbar button[data-channel-action=setup]{font-size:12px;font-weight:550;height:28px;min-height:28px;padding:4px 12px;border-radius:8px}
@media(max-width:900px){.content .email-editor{padding-left:32px;padding-right:32px}}
@media(max-width:640px){html:has(.email-editor){scrollbar-gutter:auto}.content .email-editor{padding:20px 16px 70px}}

.email-editor.pdp-editor .channel-settings-body>label:has(.input)+p{margin-top:4px}
.shell .workspace header.email-topbar{padding-left:24px;padding-right:16px}
.email-topbar .channel-back{display:inline-flex;align-items:center;justify-content:center;width:16px;height:24px;margin-right:8px;vertical-align:middle}
.email-topbar .channel-back svg{display:block}

.channel-modal:has([data-email-wizard]){font:450 13px/20px Inter,Arial,sans-serif;width:min(620px,calc(100vw - 32px));border-radius:16px}
.channel-modal:has([data-email-wizard]) .channel-modal-head{height:53px}
.channel-modal:has([data-email-wizard]) .channel-modal-head h2{font-size:14px;font-weight:650;line-height:20px}
.channel-modal:has([data-email-wizard]) .channel-step-head{height:52px;font-size:13px;line-height:20px}
.channel-modal:has([data-email-wizard]) .channel-step-head strong{font-weight:650}
.channel-modal:has([data-email-wizard]) .channel-modal-body{font-size:13px;font-weight:450;line-height:20px;padding:16px;max-height:calc(100dvh - 220px)}
.channel-modal:has([data-email-wizard]) .channel-choice{font-size:13px;font-weight:450;line-height:20px}
.channel-modal:has([data-email-wizard]) .channel-choice small{font-size:13px;font-weight:450;line-height:20px;margin-top:4px}
.channel-modal:has([data-email-wizard]) .channel-modal-body .input{height:32px;min-height:32px;padding:6px 12px}
.channel-modal:has([data-email-wizard]) .channel-modal-body label:not(.channel-choice){margin-top:24px;margin-bottom:4px;gap:4px}
.channel-modal:has([data-email-wizard]) .channel-modal-body>p:last-child{margin:4px 0 16px}

.modal-backdrop:has(+.channel-modal [data-email-wizard]){background:rgba(0,0,0,.5)}

.email-dns-table{overflow-x:auto}.email-dns-table table{width:100%;border-collapse:collapse}.email-dns-table th,.email-dns-table td{padding:8px;text-align:left;border-bottom:1px solid #ddd;overflow-wrap:anywhere}.email-dns-table code{white-space:pre-wrap}

.channel-modal:has([data-email-wizard]) .email-signature-form>label{display:block;margin:0 0 4px;font-size:13px;font-weight:450;line-height:20px}
.channel-modal:has([data-email-wizard]) .email-signature-form textarea.input{display:block;height:72px;min-height:72px;margin:4px 0 0;padding:6px 12px;border:1px solid #8a8a8a;border-radius:8px;font:450 13px/20px Inter,Arial,sans-serif;resize:none}
.channel-modal:has([data-email-wizard]) .email-signature-form>p{margin:4px 0 0;font-size:13px;line-height:20px;color:#616161}

/* Provider detail panes share the vendor's fixed header/footer and one scrolling body. */
.channel-modal:has([data-email-wizard]){display:flex;flex-direction:column;max-height:calc(100dvh - 120px)}
.channel-modal:has([data-email-wizard]) .channel-modal-head,.channel-modal:has([data-email-wizard]) .channel-modal-foot{flex:none}
.email-wizard-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.channel-modal:has([data-email-wizard]) .channel-modal-body{max-height:none;overflow:visible}
.email-detail-stack{display:flex;flex-direction:column;gap:16px}
.channel-modal:has([data-email-wizard]) .email-detail-stack>p{margin:0;font-size:13px;line-height:20px;color:#616161}
.email-dns-records{border:1px solid #e3e3e3;border-radius:8px;overflow:hidden}
.email-dns-record{display:flex;flex-direction:column;gap:8px;padding:12px;border-bottom:1px solid #e3e3e3}
.email-dns-record:last-child{border-bottom:0}.email-record-type{font-size:12px;font-weight:600;line-height:16px}
.email-record-copy-field{display:flex;align-items:flex-start;gap:8px;min-width:0;border:1px solid #e3e3e3;border-radius:8px;background:#f7f7f7;padding:8px 10px}
.email-record-copy-text{min-width:0;flex:1}.channel-modal:has([data-email-wizard]) .email-record-label{margin:0;font-size:11px;line-height:16px;color:#616161}
.channel-modal:has([data-email-wizard]) .email-record-value{font:12px/20px ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;margin:2px 0 0;color:#303030}
.email-copy-text,.email-start-over button{border:0;padding:0;background:transparent;color:#005bd3;font-size:13px;font-weight:500;line-height:20px;flex:none}
.email-copy-text:hover,.email-start-over button:hover,.email-setup-guides a:hover{text-decoration:underline}
.email-copy-success{font-size:13px;line-height:20px;color:#616161}.email-copy-success[hidden],.email-copy-text[hidden]{display:none!important}
.email-detail-empty{padding:12px;border:1px solid #e3e3e3;border-radius:8px;background:#f7f7f7;color:#616161}
.email-setup-guides{font-size:13px;line-height:20px}.email-setup-guides a{color:#005bd3}
.email-start-over{display:flex;gap:4px;align-items:baseline;flex-wrap:wrap;font-size:13px;line-height:20px;color:#616161}
.email-forward-copy>label{display:block;font-size:13px;line-height:20px;margin:0 0 4px}
.email-forward-input{display:flex;align-items:center;gap:4px;border:1px solid #8a8a8a;border-radius:8px;min-height:32px;padding-right:10px}
.channel-modal:has([data-email-wizard]) .email-forward-input input.input{min-width:0;flex:1;border:0;margin:0;height:30px;min-height:30px;background:transparent;padding:6px 12px;outline-offset:-2px}
.email-copy-icon{display:grid;place-items:center;background:transparent;border:0;padding:0;width:20px;height:20px;color:#616161;flex:none}.email-copy-icon:disabled{opacity:.4;cursor:not-allowed}.email-copy-icon svg{width:20px;height:20px}
.channel-modal:has([data-email-wizard]) .email-forward-copy .email-detail-unavailable{font-size:12px;line-height:16px;color:#616161;margin:4px 0 0}
@media(max-width:640px){.channel-modal:has([data-email-wizard]){max-height:calc(100dvh - 32px)}}

/* Keep template disclosure in the step label so the DNS grid retains reference geometry. */
.channel-modal:has([data-email-wizard]) .channel-step-head .email-step-label{display:flex;align-items:center;gap:8px}
.channel-modal:has([data-email-wizard]) .email-template-badge{padding:0 6px;border-radius:6px;background:#e8e8e8;color:#616161;font:450 11px/16px Inter,Arial,sans-serif;cursor:help}
.email-wizard-scroll{scrollbar-gutter:stable}
.email-record-value{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace!important}
.email-copy-text:disabled{color:#005bd3;cursor:not-allowed;text-decoration:none}

.email-copy-feedback{display:inline-grid;grid-template-areas:"feedback";min-width:46px;justify-items:end;align-items:start;flex:none}
.email-copy-feedback>.email-copy-text,.email-copy-feedback>.email-copy-success{grid-area:feedback}
.email-copy-feedback>.email-copy-text{transition:opacity 120ms ease}
.email-copy-feedback.is-copied>.email-copy-text{opacity:0}
.email-copy-feedback.is-copied>.email-copy-success{pointer-events:none;animation:email-copy-confirm 160ms ease-out}
@keyframes email-copy-confirm{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.email-copy-feedback>.email-copy-text{transition:none}.email-copy-feedback.is-copied>.email-copy-success{animation:none}}

.email-verification-error{display:flex;align-items:flex-start;gap:8px;padding:12px;border-radius:8px;background:#fee9e8;color:#303030;font:450 13px/20px Inter,Arial,sans-serif;outline:none}
.email-verification-error>div{min-width:0;overflow-wrap:anywhere}
.email-verification-error strong{font-size:13px;font-weight:650;line-height:20px}
.email-verification-error ul{margin:0;padding-left:16px;line-height:20px}
.email-verification-error-icon{display:grid;place-items:center;flex:none;width:12px;height:12px;margin:4px 3px;border:1.5px solid #ff5630;border-radius:2px;transform:rotate(45deg);color:#ff5630}
.email-verification-error-icon>span{transform:rotate(-45deg);font:bold 10px/10px Inter,Arial,sans-serif}

/* Step 3 measured from the live vendor forwarding wizard. */
.email-wizard-scroll:has(.email-forward-details){scrollbar-gutter:auto}
.channel-modal:has([data-email-wizard]) .email-forward-details .email-forward-copy>label{display:block;margin:0 0 4px;font-weight:450;line-height:20px}
.email-forward-details .email-forward-input{height:32px;min-height:32px;border:0;background:#f1f1f1;padding-right:16px}
.channel-modal:has([data-email-wizard]) .email-forward-details .email-forward-input input.input{height:32px;min-height:32px;font:450 13px/20px Inter,Arial,sans-serif}
.email-forward-details .email-start-over{margin-top:16px}
.email-forward-details .email-setup-guides a{text-decoration:underline}
.email-copy-feedback>.email-copy-icon{grid-area:feedback}
.email-copy-feedback.is-copied>.email-copy-icon{opacity:0}


.email-forward-status{display:flex;align-items:center;gap:8px;color:#616161;font:450 12px/20px Inter,Arial,sans-serif}
.email-forward-failed{outline:none}.email-forward-cross{font:700 24px/20px Arial,sans-serif;color:#ff4d7d}
.email-check-spinner{display:inline-block;width:14px;height:14px;flex:none;border:2px solid #ddd;border-top-color:#616161;border-right-color:#616161;border-radius:50%;animation:email-check-spin 700ms linear infinite}
@keyframes email-check-spin{to{transform:rotate(360deg)}}
.email-forward-details:has(.email-forward-status) .email-start-over{margin-top:0}
@media(prefers-reduced-motion:reduce){.email-check-spinner{animation:none}}

.channel-modal:has([data-email-wizard]) .channel-modal-body .email-signature-form>label{display:block;margin:0 0 4px;font:450 13px/20px Inter,Arial,sans-serif}
.channel-modal:has(.email-signature-form) .email-wizard-scroll{scrollbar-gutter:auto}
.channel-modal:has(.email-signature-form) .email-signature-form textarea.input{height:72px;min-height:72px;resize:vertical}
.email-signature-form .email-verification-pending{margin-top:12px}

/* Email header measured against the reference at 1280px. */
.email-topbar h1{display:flex;align-items:center;gap:8px}
.email-topbar .channel-back{width:20px;margin-right:0;flex:none}
.email-topbar .channel-back svg{width:20px;height:20px}
.email-topbar .email-state-incomplete{margin:0;padding:2px 8px;min-height:20px;line-height:16px;vertical-align:middle;background:#ffd6a4;color:#412d00;font:450 12px/16px Inter,Arial,sans-serif;border-radius:8px;white-space:nowrap}
.email-topbar button[data-channel-action=setup]{font:550 12px/16px Inter,Arial,sans-serif;height:28px;min-height:28px;padding:6px 12px}
@media(max-width:640px){.email-topbar h1{flex-wrap:wrap;row-gap:2px}.email-topbar .email-state-incomplete{font-size:11px;padding-left:6px;padding-right:6px}}

.email-topbar h1,.email-topbar .email-state-incomplete{letter-spacing:normal}
.email-topbar button[data-channel-action=setup]{border:0}
.email-topbar .email-title-text{letter-spacing:normal}

/* Shared settings save bar, measured from Email Features in the reference. */
.shell .workspace header.email-unsavedbar{padding-left:16px;padding-right:16px;background:#fff;box-shadow:0 1px 0 #00000012}
.email-unsaved-label{display:flex;align-items:center;gap:8px;min-width:0}
.email-unsaved-label img{flex:none}
.shell .workspace header.email-unsavedbar h1{font:650 14px/20px Inter,Arial,sans-serif;letter-spacing:normal;white-space:nowrap}
.email-unsavedbar .btn{height:28px;min-height:28px;padding:6px 12px;border:0;border-radius:8px;font:550 12px/16px Inter,Arial,sans-serif;white-space:nowrap}
.email-unsavedbar .btn:not(.dark){box-shadow:inset 0 -1px #b5b5b5,inset -1px 0 #e3e3e3,inset 1px 0 #e3e3e3,inset 0 1px #e3e3e3}
@media(max-width:640px){.shell .workspace header.email-unsavedbar{gap:8px;padding-left:12px;padding-right:12px}.email-unsavedbar .pdp-top-actions{gap:4px}.shell .workspace header.email-unsavedbar h1{font-size:13px}}
