/* Guided automation setup: scoped to CRM automation components. */
.aw-guide{display:grid;grid-template-columns:minmax(210px,.8fr) minmax(0,1.6fr);gap:24px}
.aw-guide-intro{grid-column:1/-1;margin:0;line-height:1.6}
.aw-template-list{display:flex;flex-direction:column;gap:10px}
.aw-template{appearance:none;text-align:left;display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid #c9c7bf;background:#fff;color:#20231f;font:inherit;line-height:1.5;cursor:pointer;border-radius:8px;min-height:48px}
.aw-template span{font-size:14px;color:#4c554e}
.aw-template[aria-pressed=true]{border:2px solid #315b43;padding:15px;background:#eef4ee}
.aw-template:focus-visible,.aw-process:focus-within{outline:3px solid #315b43;outline-offset:3px}
.aw-setup{min-width:0}
.aw-setup form{display:flex;flex-direction:column;gap:16px}
.aw-setup .field{display:flex;flex-direction:column;gap:7px;font-size:14px}
.aw-setup input,.aw-setup select,.aw-setup textarea{font-size:16px;min-height:44px;width:100%}
.aw-time-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.aw-process{margin-top:20px;padding:18px;background:#f1f3ee;color:#202c22;border-radius:8px;overflow-wrap:anywhere}
.aw-process-title{font-family:inherit;font-weight:600;font-size:16px;line-height:1.4;margin:0 0 14px}
.aw-node{display:flex;flex-direction:column;gap:7px;padding:14px;background:white;min-width:0;border-radius:6px;line-height:1.5;font-size:14px}
.aw-node--trigger{background:#e0eade}
.aw-node--action{background:#e5ebe2}
.aw-node-label{font-size:13px;color:#445341}
.aw-branches,.aw-track{list-style:none;margin:0;padding:0}
.aw-branches>li{padding-top:20px}
.aw-track{display:flex;align-items:stretch;gap:24px}
.aw-track>li{flex:1;position:relative}
.aw-track>li+li:before{content:'→';position:absolute;left:-21px;top:19px;font-size:20px}
.aw-draft-note{padding:14px;background:#f1f3ee;line-height:1.6;border-radius:6px;font-size:14px}
.aw-error{color:#912b2b;line-height:1.5}
.aw-live-preview{margin-top:16px}
@media(max-width:760px){.aw-guide{grid-template-columns:1fr;gap:18px}.aw-template-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.aw-track{flex-direction:column;gap:24px}.aw-track>li+li:before{content:'↓';left:18px;top:-25px}.aw-process{padding:14px}.aw-template span{font-size:13px}}
@media(max-width:430px){.aw-template-list{grid-template-columns:1fr}.aw-time-fields{grid-template-columns:1fr}.aw-process-title{font-size:16px}}

.aw-picker{min-width:0}.aw-mobile-choice{display:none}
@media(max-width:760px){.aw-picker>.aw-template-list{display:none}.aw-mobile-choice{display:flex;flex-direction:column;gap:8px;font-size:14px}.aw-mobile-choice select{font-size:16px;min-height:44px;width:100%}}

.aw-modal{display:flex;flex-direction:column;max-height:90vh;max-height:90dvh;overflow:hidden}
.aw-modal>.modal-body{min-height:0;max-height:none;overflow-y:auto;flex:1 1 auto}
.aw-modal>.modal-head,.aw-modal>.modal-foot{flex:0 0 auto}
.aw-guide .muted,.aw-guide .small,.aw-process .muted{color:#4b554e}
