/* Automation pages live in the mailfino host; shared classes supply typography, navigation and controls. */
#Sitenav_Automations[hidden],#Sitenav_AutomationEdit[hidden],.automation-shell[hidden]{display:none!important}
.automation-shell{display:flex;flex-direction:column;height:100%;min-height:420px;background:#fff;color:#222;overflow:hidden}
.automation-toolbar{border-bottom:1px solid #e6e6e6;flex-shrink:0}
.automation-shell .automation-toolbar button p{margin:4px 0 0}
.automation-shell button:disabled{opacity:.4;cursor:default}
.automation-button{font:inherit;border-radius:4px;background:#fff;padding:7px 12px;text-align:left}
.automation-button:hover:not(:disabled){background:#f5f5f5}
.automation-columns{display:grid;grid-template-columns:210px minmax(250px,1fr) 350px;flex:1;min-height:0}
.automation-columns>aside,.automation-columns>main{padding:18px;overflow:auto;min-width:0}
.automation-columns>aside{background:#fafafa;border-right:1px solid #e6e6e6}
#AutomationProperties{border-left:1px solid #e6e6e6;border-right:0;background:#fff}
.automation-columns h3{font-size:16px;font-weight:500;margin:0 0 18px}
/* Reuse newsletter preview tiles without its drag handlers or document state. */
#AutomationLibrary .automation-block-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0}
.automation-library-group{margin-bottom:20px}
.automation-library-group>summary{cursor:pointer;font-weight:500;padding:8px 0;margin-bottom:8px;border-bottom:1px solid #e6e6e6}
.automation-advanced>summary{cursor:pointer;color:#346a9e;padding:12px 0}
.automation-trigger-card{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.automation-trigger-summary{display:block;flex:0 0 100%;font-size:13px;font-weight:normal;color:#666;text-align:left;white-space:normal}
@media(max-width:700px){.automation-shell .automation-columns{display:flex;flex-direction:column}.automation-columns>#AutomationFlow{order:0;flex-shrink:0}.automation-columns>#AutomationProperties{order:1;flex-shrink:0}.automation-columns>#AutomationLibrary{order:2;flex-shrink:0}}
#AutomationLibrary .automation-block-tile{width:100%;min-height:104px;aspect-ratio:auto;margin:0;padding:12px 5px;display:flex;flex-direction:column;gap:12px;font:inherit;border:1px solid #e6e6e6;cursor:pointer}
.automation-block-preview{display:flex;align-items:center;justify-content:center;color:#336699}
.automation-block-preview i{font-size:30px}
.automation-block-label{font-size:12px;text-align:center;line-height:1.35;overflow-wrap:anywhere}
.automation-block-tile:hover:not(:disabled){border-color:#336699;background:#fff}
.automation-block-tile:focus-visible,.automation-step-card:focus-visible{outline:2px solid #336699;outline-offset:2px}
.automation-step-card{display:flex;align-items:center;gap:16px;width:100%;border:0;border-radius:6px;padding:12px;background:#fff;color:#333;font:inherit;cursor:pointer;text-align:left}
.automation-step-card .automation-block-label{font-size:.95em;text-align:left}
.automation-step-card .automation-block-preview i{font-size:1.8em}
#AutomationFlow>.automation-step-card{max-width:440px;margin:0 auto;border:1px solid #ddd}
.automation-step-card[aria-pressed=true]{outline:2px solid #336699;outline-offset:-2px;background:#f4f8fc}

#AutomationFlow{background:#f3f3f3;text-align:center}
.automation-flow-list{list-style:none;padding:0;margin:18px auto;max-width:440px}
.automation-flow-list .automation-step-item{position:relative;margin:18px 0 26px;padding:16px;background:#fff;border:1px solid #ddd;border-radius:5px;text-align:left;overflow-wrap:anywhere}
.automation-flow-list .automation-step-item::after{content:'';position:absolute;left:50%;top:100%;height:26px;border-left:1px solid #bbb}
.automation-flow-list .automation-step-item:last-child::after{display:none}
.automation-flow-list small{display:block;margin:8px 0 0;color:#666}
.automation-flow-list .automation-insert[aria-pressed=true]{outline:2px solid #336699}
.automation-flow-list .automation-insert{display:block;font-size:12px;margin-bottom:10px;color:#666;border-style:dashed}
.automation-properties-table{width:100%;border-collapse:collapse;font-size:13px}
.automation-properties-table th{width:100px;font-weight:normal;text-align:left;vertical-align:top;padding:10px 8px 10px 0}
.automation-properties-table td{padding:5px 0}
.automation-properties-table input,.automation-properties-table select{width:100%;min-width:0;font:inherit}
.automation-properties-table button{margin:4px 4px 4px 0}
.automation-status{margin:0;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.automation-run{border-bottom:1px solid #ddd;padding:8px 0}
.automation-catalogue{height:calc(100% - 20px);flex-wrap:nowrap}
.automation-area-option{width:100%;border:0;font:inherit;color:white;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;padding:22px 8px;cursor:pointer;background:transparent}
.automation-area-option i{font-size:32px;order:-1}
.automation-catalogue-content{padding:28px 12px;overflow:auto!important;min-width:0;min-height:0}
.automation-catalogue-content h2{font-size:24px;font-weight:400;margin:0 0 24px}
.automation-cards{display:flex;gap:18px;flex-wrap:wrap}
.automation-card{width:250px;min-height:135px;background:white;display:flex;flex-direction:column;justify-content:center;gap:14px;padding:24px;border:1px solid #e1e1e1!important;border-radius:5px;overflow-wrap:anywhere}
.automation-card strong{font-size:17px;font-weight:500}
.automation-card>span{color:#555}
@media(max-width:1050px){.automation-columns{grid-template-columns:155px minmax(200px,1fr) 290px}.automation-columns>aside,.automation-columns>main{padding:12px}}
@media(max-width:700px){.automation-shell{height:100%}.automation-columns{display:block;overflow:auto}.automation-columns>aside,.automation-columns>main{overflow:visible;border-bottom:1px solid #ddd}.automation-catalogue{flex-direction:column}.automation-catalogue .MNR_Document_Option_Container{display:flex;width:100%;flex:0 0 auto}.automation-area-option{flex:1;padding:14px}.automation-area-option i{font-size:24px}.automation-card{width:100%}}

#Sitenav_AutomationEdit p{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#Sitenav_Automations p{white-space:nowrap}
#sitenav_container.sitenav_automation_context{display:flex;overflow-x:clip;overflow-y:visible}
#sitenav_container.sitenav_automation_context>div{flex:0 0 auto}
/* Preserve the host right-aligned account/help/language/close group in the contextual navigation. */
#sitenav_container.sitenav_automation_context>.sitenav_right_container{margin-left:auto}
#sitenav_container.sitenav_automation_context .sitenav_hide{display:none}
#sitenav_container.sitenav_automation_context .sitenav_description p{white-space:nowrap}
#sitenav_container.sitenav_automation_context .sitenav_div>p,#sitenav_container.sitenav_automation_context .sitenav_div_selected>p{width:auto;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

#AutomationCatalogue .automation-card{background:#fff;margin:0;text-align:left}
/* Match the document catalogue: flat 5px cards, neutral text and the existing newsletter filter pill colors. */
.automation-start{max-width:1240px;margin:0 auto;padding:4px 0 24px;color:#383838}
.automation-start-hero{padding:32px;border:1px solid #ddd;border-radius:5px;background:#fff}
/* One decorative sibling of the wizard artwork introduces the page above the existing goal/preview pair. */
.automation-start-heading{display:grid;grid-template-columns:minmax(0,1fr) 260px;align-items:center;gap:28px;margin-bottom:24px}
.automation-start-artwork{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;pointer-events:none}
.automation-start-body{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(290px,1fr);gap:40px;align-items:start}
.automation-start-goals{padding-top:10px;min-width:0}
.automation-start-goals h3{margin:0 0 18px;font-size:18px;font-weight:400;color:#383838}
.automation-eyebrow{margin:0 0 14px;color:#666;font-size:13px;font-weight:400;letter-spacing:.04em;text-transform:uppercase}
#AutomationCatalogue .automation-start h2{max-width:680px;font-size:28px;font-weight:400;line-height:1.3;margin:0 0 16px;color:#383838}
.automation-start-lead{max-width:680px;color:#666;font-size:16px;line-height:1.6;margin:0}
.automation-suggestion-pills{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:22px}
.automation-suggestion-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border:1px solid #b8c4ce;border-radius:16px;background:#fff;color:#284b63;font:inherit;line-height:1.3;text-align:left;cursor:pointer;transition:background .15s,border-color .15s}
.automation-suggestion-pill i{font-size:14px}
.automation-suggestion-pill:hover{border-color:#284b63;background:#284b63;color:#fff}
.automation-suggestion-pill[aria-pressed=true]{background:#284b63;border-color:#284b63;color:#fff}
.automation-text-link{display:inline-flex;align-items:center;gap:10px;border:0;background:transparent;color:#336699;font:inherit;font-size:14px;padding:6px 0;cursor:pointer;text-align:left}
.automation-text-link:hover{text-decoration:underline}
.automation-suggestion-preview{padding:24px;background:#fafafa;border:1px solid #ddd;border-radius:5px;min-width:0}
.automation-preview-caption{display:flex;gap:8px;align-items:center;margin:0 0 10px;color:#666;font-size:13px}
.automation-preview-caption i{order:-1}
.automation-suggestion-preview h3{margin:0 0 20px;font-size:18px;font-weight:400;line-height:1.4;color:#383838}
.automation-recipe-flow{list-style:none;margin:0 0 22px;padding:0;display:flex;flex-direction:column;gap:14px}
.automation-recipe-flow li{position:relative;display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.4;min-width:0}
.automation-recipe-flow li:not(:last-child)::after{content:'';position:absolute;top:30px;left:14px;height:14px;border-left:1px solid #ccc}
.automation-recipe-flow li>i{display:flex;align-items:center;justify-content:center;flex:0 0 30px;height:30px;border-radius:4px;background:#eee;color:#336699;font-size:13px}
.automation-recipe-flow li>span{overflow-wrap:anywhere}
button.automation-start-action{display:flex;justify-content:center;align-items:center;gap:14px;width:100%;min-height:42px;border-radius:5px;font:inherit;padding:10px 14px;cursor:pointer}
.automation-preview-note{margin:12px 0 0;font-size:13px;text-align:center;line-height:1.5;color:#666}
.automation-examples{margin-top:34px}
.automation-examples-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.automation-examples-heading h3{margin:0 0 6px;font-size:24px;font-weight:400;color:#383838}
.automation-examples-heading p{margin:0;font-size:14px;line-height:1.5;color:#666}
.automation-example-search{display:flex;align-items:center;gap:9px;flex:0 1 220px;min-width:160px;border:1px solid #ccc;background:#fff;border-radius:4px;padding:10px 12px;color:#666}
.automation-example-search input{width:100%;min-width:0;border:0;background:transparent;padding:0;color:#383838;font:inherit;font-size:14px;outline:none}
.automation-example-search:focus-within{outline:2px solid #336699;outline-offset:2px}
.automation-example-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.automation-example-card{display:flex;flex-direction:column;padding:22px;border:1px solid #ddd;border-radius:5px;background:#fff;min-width:0}
.automation-example-card[hidden],.automation-no-examples[hidden]{display:none!important}
.automation-example-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}
.automation-example-icon{display:flex!important;align-items:center;justify-content:center;width:38px;height:38px;border-radius:5px;background:#f2f2f2;color:#336699;font-size:19px}
.automation-example-category{color:#666;font-size:12px;padding:4px 8px;border-radius:3px;background:#f2f2f2}
.automation-example-card h4{font-size:17px;font-weight:500;line-height:1.4;margin:0 0 10px;color:#383838}
.automation-example-description{font-size:14px;line-height:1.6;color:#666;margin:0 0 20px}
.automation-recipe-flow-compact{padding:16px 0;border-top:1px solid #edf0f3;gap:10px;margin:0 0 14px}
.automation-recipe-flow-compact li{font-size:14px;gap:8px}
.automation-recipe-flow-compact li>i{flex-basis:24px;height:24px;font-size:12px;border-radius:4px}
.automation-recipe-flow-compact li:not(:last-child)::after{top:24px;left:11px;height:10px}
.automation-example-requires{margin:auto 0 16px;font-size:13px;line-height:1.6;color:#666}
.automation-template-action{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0 0;border:0;border-top:1px solid #edf0f3;background:transparent;color:#336699;font:inherit;font-size:14px;font-weight:400;cursor:pointer;text-align:left}
.automation-template-action:hover span{text-decoration:underline}
.automation-no-examples{color:#666;font-size:14px;padding:16px 0}
.automation-start button:focus-visible{outline:2px solid #336699;outline-offset:3px}
@media(min-width:1500px){.automation-start-hero{padding:36px}.automation-example-card{padding:26px}}
@media(max-width:1100px){.automation-start-hero{padding:24px}#AutomationCatalogue .automation-start h2{font-size:28px}.automation-example-grid{gap:12px}.automation-example-card{padding:16px}}
@media(max-width:900px){.automation-start-body{grid-template-columns:minmax(0,1fr)}.automation-start-lead{max-width:none}.automation-example-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.automation-catalogue-content{padding:20px 0;margin:0 14px!important}.automation-start-hero{padding:22px 18px}.automation-area-option{gap:8px;font-size:14px}.automation-area-option i{font-size:28px}.automation-examples-heading{align-items:stretch;flex-direction:column;gap:16px}.automation-example-search{flex:auto}.automation-example-grid{grid-template-columns:minmax(0,1fr)}.automation-start-introduction{min-width:0}.automation-suggestion-pill{font-size:14px;padding:7px 12px}.automation-suggestion-preview{padding:20px}#AutomationCatalogue .automation-start h2{font-size:27px}.automation-examples{margin-top:28px}}
@media(prefers-reduced-motion:reduce){.automation-suggestion-pill{transition:none}}
/* The shared document sidebar has height:100%; in the stacked layout it must shrink to its navigation. */
@media(max-width:700px){.automation-catalogue{overflow:hidden}.automation-catalogue .MNR_Document_Option_Container{height:auto}.automation-catalogue-content{width:auto;flex:1 1 0}}
@media(max-width:700px){#sitenav_container.sitenav_automation_context{overflow-x:auto;overflow-y:hidden}}

@media(max-width:1050px) and (min-width:701px){#AutomationLibrary .automation-block-library{grid-template-columns:1fr}}

/* Owned insert positions and drag handles never invoke the newsletter drag implementation. */
.automation-drop-slot{list-style:none;position:relative;padding:6px 0;margin:0;min-height:36px}
.automation-drop-slot .automation-insert{margin:0 auto;padding:5px 12px;text-align:center;background:transparent}
.automation-drop-active{background:#e8f2fb;outline:2px dashed #336699;border-radius:5px}
.automation-drag-source{opacity:.55}
.automation-block-tile[draggable=true],.automation-step-card[draggable=true]{cursor:grab}
[draggable=true]>.automation-block-preview{touch-action:none}
.automation-drag-ghost{position:fixed;z-index:12000;pointer-events:none;opacity:.85;box-shadow:0 5px 18px #0003}
.automation-endpoint{border-style:dashed!important;background:#fafafa!important}

@media(max-width:1100px){.automation-start-heading{grid-template-columns:minmax(0,1fr) 200px;gap:20px}.automation-start-body{gap:24px}}
@media(max-width:700px){.automation-start-heading{grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:16px}.automation-start-artwork{width:192px;justify-self:center}.automation-start-goals{padding-top:0}}

/* The workflow renderer nests two bounded lanes under each If/Else card, then rejoins the common sequence. */
.automation-branch-lanes { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 16px; width: 100%; margin-top: 16px; text-align: center; }
.automation-branch-lane { min-width: 0; padding: 12px 8px; border: 1px solid #ddd; border-radius: 4px; background: #fafafa; }
.automation-branch-lane h4 { font-size: 14px; color: #333; margin: 0 0 8px; font-weight: 600; }
.automation-branch-list { padding: 0; margin: 0; }
.automation-branch-list .automation-step-item { width: 100%; }
.automation-empty-path, .automation-branch-join { color: #666; font-size: 12px; margin: 12px 0; }
.automation-branch-join { border-top: 1px solid #ccc; padding-top: 10px; }
.automation-step-item:has(> .automation-branch-lanes) { max-width: none; width: 100%; }
.automation-branch-list .automation-branch-lanes { grid-template-columns: 1fr; gap: 10px; }
@media (max-width: 760px) { .automation-branch-lanes { grid-template-columns: 1fr; } }
.automation-flow-list:has(> .automation-step-item > .automation-branch-lanes) { max-width: 720px; }
.automation-branch-lanes, .automation-branch-lane, .automation-branch-list .automation-step-item { box-sizing: border-box; }
.automation-branch-list { max-width: 100%; }
.automation-flow-list .automation-step-item { box-sizing: border-box; }

/* Creation and trigger changes use the shared illustrated wizard frame. */
#AutomationWizard{z-index:1100}
#AutomationWizard *{box-sizing:border-box}
#AutomationWizard_Box{animation:none;-webkit-animation:none;width:870px;height:640px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;display:flex;flex-direction:column;overflow:hidden;background:#fff;color:#454545}
.automation-wizard-header{display:flex;align-items:center;flex-shrink:0;height:65px;padding:0 30px;border-bottom:1px solid #ddd;color:#352035;font-size:23px}
.automation-wizard-close{margin-left:auto;padding:8px;background:none;border:0;color:#777;font-size:22px;cursor:pointer}
.automation-wizard-body{display:grid;grid-template-columns:calc(20% - 25px) calc(80% + 25px);flex:1;min-height:0}
.automation-wizard-art{position:relative;min-width:0;display:flex;align-items:center;background:#fff}
.automation-wizard-art img{position:relative;left:10px;width:calc(100% + 25px);max-width:none;height:50%;max-height:235px;object-fit:contain}
.automation-wizard-art::after{content:"";position:absolute;inset:0 -25px 0 0;background:linear-gradient(90deg,transparent 85%,#fff);pointer-events:none}
.automation-wizard-page{position:relative;z-index:1;min-width:0;overflow:auto;padding:24px 32px 24px 36px}
.automation-wizard-page h2{font-size:26px;line-height:1.22;font-weight:400;color:#352035;margin:0 0 16px}
.automation-wizard-intro{font-size:14px;line-height:1.6;color:#6c6570;margin:0 0 14px}
.automation-wizard-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.automation-wizard-choice{display:flex;align-items:center;text-align:left;gap:10px;padding:8px 10px;border:1px solid #ddd;border-radius:5px;min-height:64px;background:white;color:#454545;cursor:pointer;font:14px Arial,sans-serif}
.automation-wizard-choice[aria-pressed=true]{border-color:#346a9e;background:#f5f9fd}
.automation-wizard-choice i{order:-1;flex:0 0 24px;color:#346a9e;font-size:23px}
.automation-wizard-choice span{min-width:0;overflow-wrap:anywhere}
.automation-wizard-choice-copy{display:block;flex:1}
.automation-wizard-choice-title{display:block;line-height:1.25}
.automation-wizard-choice-description{display:block;margin-top:4px;font-size:12px;line-height:1.35;color:#6c6570;font-weight:400}
#AutomationWizard .automation-properties-table{width:100%;table-layout:fixed;border-collapse:collapse}
#AutomationWizard .automation-properties-table th{width:130px;text-align:left;font-size:14px;font-weight:400;padding:6px 12px 6px 0;overflow-wrap:anywhere}
#AutomationWizard .automation-properties-table td{padding:6px 0;overflow-wrap:anywhere}
#AutomationWizard .MNR_TextEdit,#AutomationWizard .MNR_DropDownList{width:100%;min-width:0;height:42px;border-radius:4px;padding:8px 10px;margin:0;font:16px Arial,sans-serif;background:#fff;color:#352035}
#AutomationWizard .automation-advanced{font-size:13px}
.automation-wizard-error{color:#b52b24;font-size:14px;line-height:1.5}
.automation-wizard-footer{position:relative;flex-shrink:0;min-height:80px;display:flex;align-items:center;justify-content:flex-end;padding:16px 24px;border-top:1px solid #ddd;background:#fafafa;gap:16px}
.automation-wizard-stepinfo{position:absolute;left:24px;font-size:12px;color:#6c6570}
.automation-wizard-dots{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px}
.automation-wizard-dots span{width:8px;height:8px;border-radius:6px;background:#ccd2d8}
.automation-wizard-dots .active{width:18px;background:#981755}
.automation-wizard-actions{display:flex;gap:10px}
#AutomationWizard .automation-wizard-actions button{width:auto;min-height:42px;margin:0;padding:10px 16px;white-space:normal}
#AutomationWizard button:focus-visible{outline:3px solid #346a9e;outline-offset:2px}
@media(max-width:760px){.automation-wizard-header{height:56px;padding:0 18px;font-size:20px}.automation-wizard-body{grid-template-columns:minmax(0,1fr);grid-template-rows:64px minmax(0,1fr)}.automation-wizard-art{justify-content:center}.automation-wizard-art img{left:0;width:100%;max-width:125px;height:64px}.automation-wizard-art::after{display:none}.automation-wizard-page{padding:16px 18px}.automation-wizard-page h2{font-size:23px}.automation-wizard-choices{gap:8px}.automation-wizard-choice{padding:10px;min-height:64px;font-size:13px}.automation-wizard-footer{min-height:96px;flex-direction:column;padding:12px 16px;gap:12px}.automation-wizard-dots{position:static;transform:none}.automation-wizard-actions{align-self:flex-end}.automation-wizard-stepinfo{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#AutomationWizard .automation-properties-table th{width:112px}.automation-wizard-actions button{font-size:13px}}
@media(max-width:760px) and (max-height:600px){.automation-wizard-body{grid-template-rows:minmax(0,1fr)}.automation-wizard-art{display:none}}

#AutomationWizard button:disabled{opacity:.45;cursor:default}
