/* STEP 03 only: two readable, independent sample messages. */
#automation #alert-step .step-copy{align-self:stretch;justify-content:center;border-radius:15px 0 0 15px}
#automation #alert-step .review-scene{height:auto;min-height:0;padding:24px;overflow:visible;display:block}
#automation #alert-step .review-scene:before{display:none}
#automation #alert-step .step-visual-content{position:static;width:100%;transform:scale(var(--illustration-scale,1));transform-origin:center;display:block}
#alert-step .notification-examples{width:100%;max-width:510px;margin:auto;text-align:left;color:#303a43}
#alert-step .notification-label{display:flex;align-items:center;gap:8px;font-size:15px;line-height:1.5;color:#a4401b;margin:0 0 10px;font-weight:700}
#alert-step .notification-title>span{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:#fff8ed;border:1px solid #e3bc94;font-size:11px}
#alert-step .notification-mail{background:#fff;border:1px solid #d9dedf;border-radius:10px;overflow:hidden;box-shadow:0 8px 24px #66513c0e}
#alert-step .notification-toolbar{display:flex;justify-content:space-between;align-items:center;background:#f3f5f8;border-bottom:1px solid #e5e9ed;padding:8px 14px;font-size:11px;line-height:1.5}
#alert-step .notification-toolbar>span{display:flex;align-items:center;gap:7px;font-weight:700}
#alert-step .notification-toolbar .icon{width:16px;height:16px;color:#c5501e}
#alert-step .notification-toolbar small{font-size:10px;color:#71808a}
#alert-step .notification-content{padding:14px 16px}
#alert-step .notification-meta{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:7px;font-size:11px;line-height:1.6}
#alert-step .notification-sender{display:flex;align-items:center;gap:6px;font-weight:600}
#alert-step .notification-sender>b{display:grid;place-items:center;background:#c5501e;color:white;width:22px;height:22px;border-radius:50%;font:600 12px Arial,sans-serif}
#alert-step .notification-status{font-size:10px;font-weight:700;background:#fff0df;color:#a4401b;padding:3px 7px;border-radius:4px;white-space:nowrap}
#alert-step .final-status{background:#f5f0e5;color:#766031}
#alert-step .notification-content h5{font-size:14px;line-height:1.65;margin:10px 0 9px;letter-spacing:0;font-weight:700}
#alert-step .notification-content>p{font-size:13px;line-height:1.75;color:#5c646b;margin:0 0 12px;text-wrap:pretty}
#alert-step .notification-items{padding:0;margin:0 0 12px;list-style:none;background:#fff7ec;border:1px solid #f2dec8;border-radius:5px}
#alert-step .notification-items li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;font-size:12px;line-height:1.6}
#alert-step .notification-items li+li{border-top:1px solid #f2dec8}
#alert-step .notification-items b{font-size:11px;color:#a4401b}
#alert-step .notification-period{background:#f7f6f2;border:1px solid #e6e1d5;border-radius:5px;padding:9px 11px;margin:0 0 12px;font-size:12px;line-height:1.7}
#alert-step .notification-period dt{font-size:11px;color:#76736b}
#alert-step .notification-period small{font-size:10px}
#alert-step .notification-period dd{margin:0;font-weight:600;color:#454a4e}
#alert-step .notification-cta{display:block;width:100%;min-height:39px;border:0;border-radius:5px;padding:9px 10px;background:#c5501e;color:white;font-family:inherit;line-height:1.5;font-size:13px;font-weight:600;opacity:1;cursor:default;box-shadow:none}
#alert-step .notification-content>.notification-help{font-size:11px;line-height:1.7;text-align:center;color:#866448;margin:8px 0 0}
#alert-step .notification-divider{display:flex;align-items:center;gap:10px;color:#977a61;font-size:11px;line-height:1.6;margin:17px 0}
#alert-step .notification-divider:before,#alert-step .notification-divider:after{content:'';height:1px;flex:1;background:#d7bfa7}
#alert-step .notification-footnote{font-size:10px;line-height:1.7;text-align:center;color:#887662;margin:11px 0 0}
@media(max-width:1000px) and (min-width:801px){#automation #alert-step .review-scene{padding:18px 14px}#alert-step .notification-content{padding:12px}}
@media(max-width:800px){
 #automation #alert-step .step-copy{border-radius:15px 15px 0 0;min-height:0}
 #automation #alert-step .review-scene{padding:22px 16px;border-radius:0 0 15px 15px}
 #alert-step .notification-content{padding:14px}
 #alert-step .notification-content>p{font-size:13px}
 #alert-step .notification-label{font-size:14px}
}

/* Compact overview; full email copy remains available in an enlarged dialog. */
#automation #alert-step .review-scene{height:var(--step-panel-height,408px);padding:14px 18px;display:flex;align-items:center}
#alert-step .notification-examples{max-width:510px}
#alert-step .notification-examples .notification-label{font-size:13px;gap:6px;margin-bottom:5px}
#alert-step .notification-examples .notification-title>span{width:20px;height:20px;font-size:10px}
#alert-step .notification-expand{margin-left:auto;display:inline-flex;align-items:center;gap:4px;flex-shrink:0;padding:2px 7px;border:1px solid #cf7348;border-radius:20px;background:#fff4e5;color:#a4401b;font-weight:700;line-height:1.5;font-size:11px;font-family:inherit;white-space:nowrap;cursor:pointer;animation:notification-expand-cue 3.6s ease-in-out infinite;animation-play-state:paused}
#alert-step .notification-expand:after{content:none}
#alert-step.motion-live .notification-expand{animation-play-state:running}
#alert-step .notification-example:nth-of-type(2) .notification-expand{animation-delay:1.8s}
#alert-step .notification-expand:hover,#alert-step .notification-expand:focus-visible{background:#ffe5c6;animation-play-state:paused}
body.notification-modal-open #alert-step .notification-expand{animation-play-state:paused}
@keyframes notification-expand-cue{0%,65%,100%{transform:translateY(0);box-shadow:0 0 0 0 #c5501e00}15%,30%{transform:translateY(-1px);box-shadow:0 0 0 3px #c5501e24}50%{transform:translateY(0);box-shadow:0 0 0 6px #c5501e00}}
@media(prefers-reduced-motion:reduce){#alert-step .notification-expand{animation:none}}
#alert-step .notification-expand:focus-visible,#alert-step .notification-close:focus-visible{outline:2px solid #c5501e;outline-offset:3px}
#alert-step .notification-examples .notification-toolbar,#alert-step .notification-examples .notification-content>p:not(.notification-help){display:none}
#alert-step .notification-examples .notification-content{padding:8px 11px}
#alert-step .notification-examples .notification-meta{font-size:10px;gap:5px}
#alert-step .notification-examples .notification-sender>b{width:18px;height:18px;font-size:10px}
#alert-step .notification-examples .notification-status{font-size:10px;padding:1px 6px}
#alert-step .notification-examples .notification-content h5{font-size:12px;line-height:1.5;margin:5px 0}
#alert-step .notification-examples .notification-items{display:flex;flex-wrap:wrap;margin-bottom:6px}
#alert-step .notification-examples .notification-items li{flex:1 1 140px;padding:3px 7px;font-size:11px;gap:4px}
#alert-step .notification-examples .notification-items li+li{border-top:0}
#alert-step .notification-examples .notification-items b{font-size:10px}
#alert-step .notification-examples .notification-period{display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px;padding:4px 7px;margin-bottom:6px;font-size:11px}
#alert-step .notification-examples .notification-period dt{font-size:10px}
#alert-step .notification-examples .notification-cta{min-height:27px;padding:5px 7px;font-size:11px}
#alert-step .notification-examples .notification-content>.notification-help{font-size:10px;line-height:1.5;margin:4px 0 0}
#alert-step .notification-examples .notification-divider{font-size:10px;margin:8px 0;line-height:1.5}
#notification-preview-dialog{position:fixed;inset:0;margin:auto;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:20px;border:1px solid #e2c5ac;border-radius:16px;background:#fffaf3;box-shadow:0 24px 90px #23170e55;overflow:auto;color:#303a43;text-align:left}
#notification-preview-dialog::backdrop{background:#25170a99;backdrop-filter:blur(4px)}
#alert-step .notification-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}
#alert-step .notification-dialog-heading h4{font-size:16px;line-height:1.6;color:#a4401b}
#alert-step .notification-close{flex:none;display:grid;place-items:center;width:38px;height:38px;border:1px solid #e2c5ac;border-radius:50%;background:white;color:#784020;font-size:24px;cursor:pointer}
body.notification-modal-open{overflow:hidden}
@media(max-width:800px){
 #automation #alert-step .review-scene{height:auto;min-height:280px;padding:16px 12px}
 #alert-step .notification-examples .notification-label{font-size:12px}
 #alert-step .notification-examples .notification-content{padding:9px 10px}
 #alert-step .notification-examples .notification-divider{margin:9px 0}
 #notification-preview-dialog{padding:16px}
}

/* Center preview content while keeping the expand controls at the right edge. */
#alert-step .notification-examples{text-align:center}
#alert-step .notification-examples .notification-label{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:4px}
#alert-step .notification-title{grid-column:2;display:inline-flex;align-items:center;justify-content:center;gap:6px}
#alert-step .notification-expand{grid-column:3;justify-self:end;margin-left:0;justify-content:center}
#alert-step .notification-examples .notification-meta{justify-content:center;gap:8px}
#alert-step .notification-examples .notification-items li{justify-content:center;gap:8px}
#alert-step .notification-examples .notification-period{justify-content:center}
@media(max-width:400px){#alert-step .notification-examples .notification-label{font-size:11px}#alert-step .notification-title{gap:4px}}
@media(max-width:360px){#alert-step .notification-examples .notification-label{grid-template-columns:minmax(0,1fr) auto}#alert-step .notification-title{grid-column:1}#alert-step .notification-expand{grid-column:2}}
