.automation-page{display:grid;gap:20px}.automation-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;border-radius:20px;background:radial-gradient(circle at 80% 0,rgba(236,72,153,.2),transparent 32%),linear-gradient(125deg,#16102b,#32205d 62%,#55295f);color:#fff;box-shadow:0 18px 45px rgba(36,24,67,.18)}.automation-hero h2{font-size:27px;letter-spacing:-.03em;margin:5px 0}.automation-hero p{margin:0;color:#ddd6fe}.automation-hero .eyebrow{color:#f0abfc}.automation-create{background:#fff;color:#53389e;white-space:nowrap;padding:11px 16px}
.automation-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.automation-stats article{display:flex;align-items:center;gap:13px;padding:17px;border:1px solid var(--line);border-radius:15px;background:#fff}.automation-stats small,.automation-stats strong{display:block}.automation-stats small{color:#667085;font-size:11px}.automation-stats strong{font-size:22px}.stat-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;font-size:17px}.stat-icon.purple{background:#f4ebff;color:#6941c6}.stat-icon.blue{background:#eff8ff;color:#1570ef}.stat-icon.green{background:#ecfdf3;color:#039855}.stat-icon.pink{background:#fdf2fa;color:#c11574}
.automation-tabs{display:flex;gap:22px;border-bottom:1px solid var(--line)}.automation-tabs a{position:relative;padding:10px 2px 13px;color:#667085;text-decoration:none;font-weight:650}.automation-tabs a:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:transparent}.automation-tabs a.active{color:#6941c6}.automation-tabs a.active:after{background:#7f56d9}.automation-tabs span{padding:2px 7px;border-radius:999px;background:#f2f4f7;font-size:10px}
.automation-builder{display:grid;grid-template-columns:245px 1fr;min-height:650px;border:1px solid var(--line);border-radius:20px;background:#fff;overflow:hidden;box-shadow:0 12px 38px rgba(16,24,40,.07)}.automation-stepper{padding:24px 18px;background:#111827;color:#d0d5dd}.builder-brand{display:flex;align-items:center;gap:11px;padding:0 7px 22px;border-bottom:1px solid #344054}.builder-brand>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,#7f56d9,#ec4899)}.builder-brand strong,.builder-brand small{display:block}.builder-brand small{color:#98a2b3}.automation-step{display:flex;width:100%;gap:11px;align-items:center;text-align:left;margin-top:10px;padding:12px;border:0;border-radius:11px;background:none;color:#98a2b3;cursor:pointer}.automation-step>span{display:grid;place-items:center;flex:0 0 31px;height:31px;border-radius:50%;border:1px solid #475467;font-weight:800}.automation-step strong,.automation-step small{display:block}.automation-step strong{color:#d0d5dd}.automation-step small{font-size:10px}.automation-step.active{background:#344054}.automation-step.active>span,.automation-step.done>span{border-color:#9e77ed;background:#7f56d9;color:#fff}.automation-step.active strong{color:#fff}.builder-tip{display:flex;gap:9px;margin-top:30px;padding:12px;border:1px solid #344054;border-radius:11px;background:#1d2939;color:#98a2b3;font-size:11px}.builder-tip p{margin:0}
.automation-workspace{display:flex;flex-direction:column;min-width:0}.auto-panel{display:none;min-height:560px;padding:32px 38px}.auto-panel.active{display:block;animation:auto-in .2s ease}@keyframes auto-in{from{opacity:0;transform:translateY(4px)}}.auto-heading{display:flex;gap:13px;margin-bottom:25px}.auto-heading>span{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:11px;background:#f4ebff;color:#6941c6;font-weight:800}.auto-heading h3{font-size:21px;margin:0}.auto-heading p{color:var(--muted);margin:2px 0}.trigger-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.trigger-cards label{position:relative;display:grid;gap:5px;min-height:135px;padding:19px;border:1.5px solid var(--line);border-radius:14px;cursor:pointer}.trigger-cards label:has(input:checked){border-color:#7f56d9;background:#fcfaff;box-shadow:0 0 0 3px #f4ebff}.trigger-cards input{position:absolute;opacity:0}.trigger-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#f4ebff;color:#6941c6;font-size:17px}.trigger-cards small{color:var(--muted)}
.rule-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.span-rule{grid-column:span 2}.section-divider{display:flex;align-items:center;gap:10px;margin:22px 0 15px;color:#344054;font-weight:750}.section-divider:after{content:"";height:1px;background:var(--line);flex:1}.section-divider small{font-weight:400;color:#98a2b3}.switch-stack{display:grid;gap:8px}.switch-stack>label{display:flex;gap:11px;padding:12px;border:1px solid var(--line);border-radius:11px;cursor:pointer}.switch-stack input{position:absolute;opacity:0;width:1px}.switch-stack label>span{position:relative;flex:0 0 38px;height:22px;border-radius:20px;background:#d0d5dd}.switch-stack label>span:after{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;border-radius:50%;background:#fff;transition:.2s}.switch-stack input:checked+span{background:#7f56d9}.switch-stack input:checked+span:after{transform:translateX(16px)}.switch-stack strong,.switch-stack small{display:block}.switch-stack small{color:#98a2b3}.switch-stack label.disabled{opacity:.45;pointer-events:none}.scope-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.scope-options label{position:relative;display:flex;gap:10px;padding:14px;border:1.5px solid var(--line);border-radius:12px;cursor:pointer}.scope-options label:has(input:checked){border-color:#7f56d9;background:#fcfaff}.scope-options input{position:absolute;opacity:0}.scope-options label>span{flex:0 0 17px;height:17px;border:1.5px solid #98a2b3;border-radius:50%;box-shadow:inset 0 0 0 4px #fff}.scope-options input:checked+span{background:#7f56d9;border-color:#7f56d9}.scope-options strong,.scope-options small{display:block}.scope-options small{color:#98a2b3}.specific-target,.follow-gate{display:none;grid-template-columns:1fr 1fr;gap:0 14px;margin-top:14px;padding:15px;border-radius:12px;background:#f9fafb}.specific-target.visible,.follow-gate.visible{display:grid}.specific-target .field:last-child,.follow-gate .field:first-child,.follow-gate .field:last-child{grid-column:span 2}
.message-layout{display:grid;grid-template-columns:1fr 300px;gap:28px}.dm-preview{align-self:start;overflow:hidden;border:7px solid #101828;border-radius:27px;background:#f8fafc;box-shadow:0 15px 35px rgba(16,24,40,.14)}.phone-top{display:flex;justify-content:space-between;padding:12px 13px;background:#fff;border-bottom:1px solid var(--line)}.phone-top>span{width:20px}.phone-top i{font-style:normal}.preview-profile{display:grid;justify-items:center;gap:4px;padding:18px 10px 10px}.preview-profile>span{display:grid;place-items:center;width:45px;height:45px;border-radius:50%;background:linear-gradient(135deg,#7f56d9,#ec4899);color:#fff;font-weight:800}.preview-bubble{max-width:82%;margin:12px 13px;padding:10px 12px;border-radius:15px 15px 15px 4px;background:#e4e7ec;white-space:pre-wrap;font-size:12px}.preview-buttons{display:grid;gap:4px;margin:0 13px}.preview-buttons span{padding:7px;border-radius:8px;background:#fff;border:1px solid var(--line);color:#175cd3;text-align:center;font-size:11px}.phone-input{margin:20px 10px 10px;padding:8px 11px;border:1px solid #d0d5dd;border-radius:999px;color:#98a2b3;font-size:11px}.phone-input span{float:right}.button-builder{display:grid;gap:8px}.button-row{display:grid;grid-template-columns:30px 120px 1fr 1.4fr;gap:8px;align-items:center}.button-row>span{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#f4ebff;color:#6941c6;font-weight:800}.inline-note{padding:10px 12px;border-radius:9px;background:#eff8ff;color:#175cd3;font-size:11px}.delivery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.final-switches{grid-template-columns:1fr 1fr}.flow-review{display:flex;align-items:center;justify-content:center;gap:12px;margin:28px 0;padding:22px;border-radius:15px;background:#f8fafc}.flow-review>i{font-style:normal;color:#98a2b3}.flow-node{width:180px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff}.flow-node>span{float:right}.flow-node small,.flow-node strong{display:block}.flow-node small{font-size:9px;color:#98a2b3}.flow-node.purple{border-top:3px solid #7f56d9}.flow-node.blue{border-top:3px solid #2e90fa}.flow-node.green{border-top:3px solid #12b76a}.activation-note{display:flex;gap:12px;padding:14px;border:1px solid #abefc6;border-radius:12px;background:#ecfdf3}.activation-note>span{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#12b76a;color:#fff}.activation-note p{margin:2px 0;color:#027a48}.auto-actions{display:flex;align-items:center;gap:10px;margin-top:auto;padding:17px 38px;border-top:1px solid var(--line);background:#fcfcfd}.auto-actions [hidden]{display:none!important}.auto-actions [data-auto-label]{margin:auto;color:#98a2b3;font-size:11px}.activate-btn{background:linear-gradient(90deg,#6941c6,#c026d3)}
.automation-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.automation-card{padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 2px 4px rgba(16,24,40,.03)}.automation-card-head{display:flex;gap:12px;align-items:flex-start}.automation-type{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:12px;background:#f4ebff;color:#6941c6}.automation-type.story{background:#fdf2fa;color:#c11574}.automation-card-head>div:nth-child(2){min-width:0;flex:1}.automation-title-row{display:flex;align-items:center;gap:8px}.automation-title-row h3{overflow:hidden;margin:0;white-space:nowrap;text-overflow:ellipsis}.automation-card-head p{margin:3px 0;color:#98a2b3;font-size:11px}.automation-state{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:700}.automation-state i{width:6px;height:6px;border-radius:50%}.automation-state.on{background:#ecfdf3;color:#027a48}.automation-state.on i{background:#12b76a}.automation-state.off{background:#f2f4f7;color:#667085}.automation-state.off i{background:#98a2b3}.automation-menu a{display:grid;place-items:center;width:31px;height:31px;border:1px solid var(--line);border-radius:8px;text-decoration:none}.keyword-pills{display:flex;flex-wrap:wrap;gap:6px;min-height:27px;margin:17px 0}.keyword-pills span{padding:4px 8px;border-radius:999px;background:#f4ebff;color:#6941c6;font-size:10px}.keyword-pills .any-keyword{background:#fffaeb;color:#b54708}.automation-metrics{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:11px;overflow:hidden}.automation-metrics>div{padding:10px;border-right:1px solid var(--line)}.automation-metrics>div:last-child{border:0}.automation-metrics small,.automation-metrics strong{display:block}.automation-metrics small{color:#98a2b3;font-size:9px}.automation-card>footer{display:flex;justify-content:space-between;align-items:center;margin-top:15px}.automation-card>footer>small{color:#98a2b3}.automation-card>footer>div{display:flex;gap:6px}.inline-form{display:inline}.icon-danger{display:grid;place-items:center;width:31px;height:31px;border:1px solid #fecdca;border-radius:8px;background:#fff;color:#d92d20;cursor:pointer}.automation-empty{text-align:center;padding:70px 20px;border:1px dashed #d0d5dd;border-radius:17px;background:#fff}.automation-empty>span{display:grid;place-items:center;width:60px;height:60px;margin:auto;border-radius:17px;background:#f4ebff;color:#6941c6;font-size:25px}.automation-empty h3{margin:14px 0 3px}.automation-empty p{color:var(--muted);margin:0 0 17px}
.automation-log-panel{position:fixed;z-index:80;top:0;right:0;bottom:0;width:min(460px,100%);padding:23px;background:#fff;box-shadow:-25px 0 70px rgba(16,24,40,.22);overflow:auto}.automation-log-panel header{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:17px;border-bottom:1px solid var(--line)}.automation-log-panel h3{margin:3px 0}.automation-log-panel header>a{display:grid;place-items:center;width:35px;height:35px;border:1px solid var(--line);border-radius:9px;text-decoration:none;font-size:20px}.log-list{display:grid}.log-list article{display:flex;gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.log-avatar{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:50%;background:#f4ebff;color:#6941c6;font-size:11px;font-weight:800}.log-list article>div{min-width:0;flex:1}.log-list p{margin:2px 0;color:#475467}.log-list small{color:#98a2b3}.log-status{align-self:start;padding:3px 7px;border-radius:999px;background:#ecfdf3;color:#027a48;font-size:9px}.mini-empty{text-align:center;padding:50px;color:#98a2b3}
@media(max-width:1050px){.automation-stats{grid-template-columns:repeat(2,1fr)}.automation-builder{grid-template-columns:1fr}.automation-stepper{display:flex;overflow:auto;padding:12px}.builder-brand,.builder-tip,.automation-step small{display:none}.automation-step{min-width:125px;margin:0}.automation-list{grid-template-columns:1fr}.message-layout{grid-template-columns:1fr}.dm-preview{width:min(330px,100%);margin:auto}.delivery-grid{grid-template-columns:1fr 1fr}.final-switches{grid-template-columns:1fr}}@media(max-width:700px){.automation-hero{align-items:flex-start;flex-direction:column}.automation-stats{grid-template-columns:1fr 1fr}.automation-stats article{padding:12px}.auto-panel{padding:24px 17px}.rule-grid,.scope-options,.specific-target,.follow-gate,.delivery-grid{grid-template-columns:1fr}.span-rule,.specific-target .field:last-child,.follow-gate .field:first-child,.follow-gate .field:last-child{grid-column:span 1}.button-row{grid-template-columns:28px 1fr}.button-row input:last-child{grid-column:2}.flow-review{align-items:stretch;flex-direction:column}.flow-review>i{text-align:center;transform:rotate(90deg)}.flow-node{width:100%}.auto-actions{padding:14px}.auto-actions [data-auto-label],.auto-actions>a{display:none}.automation-metrics{grid-template-columns:repeat(2,1fr)}.automation-metrics>div:nth-child(2){border-right:0}.automation-metrics>div:nth-child(-n+2){border-bottom:1px solid var(--line)}}
.automation-menu{display:flex;gap:6px}.edit-lock-note{margin-top:20px;padding:12px 14px;border:1px solid #e9d7fe;border-radius:11px;background:#f9f5ff;color:#6941c6;font-size:11px}.edit-locked{position:relative;opacity:.68;pointer-events:none}.edit-locked:after{content:"Locked";position:absolute;top:8px;right:8px;padding:3px 7px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:8px;font-weight:700}
.follow-experience{display:grid;gap:14px}.follow-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.follow-choice-grid label{position:relative;display:flex;align-items:center;gap:12px;min-height:92px;padding:16px;border:1.5px solid #e4e7ec;border-radius:14px;background:#fff;cursor:pointer;transition:.18s}.follow-choice-grid label:hover{border-color:#b692f6;transform:translateY(-1px)}.follow-choice-grid label.selected{border-color:#7f56d9;background:#fcfaff;box-shadow:0 0 0 3px #f4ebff}.follow-choice-grid input{position:absolute;opacity:0}.follow-choice-grid label>div{min-width:0;flex:1}.follow-choice-grid strong,.follow-choice-grid small{display:block}.follow-choice-grid small{margin-top:3px;color:#667085;font-size:10px;line-height:1.45}.follow-choice-grid label>i{display:none;width:22px;height:22px;border-radius:50%;background:#7f56d9;color:#fff;font-style:normal;text-align:center;line-height:22px}.follow-choice-grid label.selected>i{display:block}.follow-choice-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:12px;background:#eff8ff;color:#1570ef;font-size:18px}.follow-choice-icon.lock{background:#f4ebff;color:#6941c6}.follow-builder{display:none;overflow:hidden;border:1px solid #d6bbfb;border-radius:16px;background:#fff}.follow-builder.visible{display:block;animation:auto-in .2s ease}.follow-builder>header{display:flex;align-items:center;gap:11px;padding:15px 17px;border-bottom:1px solid #e9d7fe;background:linear-gradient(90deg,#f9f5ff,#fff)}.follow-builder>header>span{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#7f56d9;color:#fff}.follow-builder>header strong,.follow-builder>header small{display:block}.follow-builder>header small{color:#667085}.follow-flow{display:flex;align-items:center;justify-content:center;gap:13px;padding:16px;border-bottom:1px solid #f2f4f7;background:#fcfcfd}.follow-flow>div{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700}.follow-flow b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#f4ebff;color:#6941c6}.follow-flow em{color:#98a2b3;font-style:normal}.follow-editor{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(250px,.75fr);gap:20px;padding:18px}.follow-editor>div{display:grid;gap:12px}.follow-preview{align-self:start;padding:17px;border:6px solid #101828;border-radius:22px;background:#f8fafc;text-align:center;box-shadow:0 12px 25px rgba(16,24,40,.1)}.follow-preview .preview-lock{display:grid;place-items:center;width:44px;height:44px;margin:0 auto 7px;border-radius:50%;background:linear-gradient(135deg,#7f56d9,#ec4899);color:#fff}.follow-preview p{margin:13px 0;padding:10px;border-radius:13px 13px 4px 13px;background:#e4e7ec;text-align:left;white-space:pre-wrap;font-size:11px}.follow-preview button{width:100%;padding:9px;border:0;border-radius:9px;background:#7f56d9;color:#fff;font-weight:800;pointer-events:none}.follow-preview small{display:block;margin-top:10px;color:#b54708;line-height:1.4}.follow-note{padding:11px 15px;border-top:1px solid #b2ddff;background:#eff8ff;color:#175cd3;font-size:10px}@media(max-width:760px){.follow-choice-grid,.follow-editor{grid-template-columns:1fr}.follow-flow{gap:7px}.follow-flow>div{display:grid;justify-items:center;text-align:center}.follow-flow em{font-size:11px}}
.global-reply-note{display:flex;align-items:center;gap:11px;margin:0 0 18px;padding:13px 14px;border:1px solid #b2ddff;border-radius:12px;background:#eff8ff}.global-reply-note[hidden]{display:none}.global-reply-note>span{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:10px;background:#2e90fa;color:#fff}.global-reply-note>div{min-width:0;flex:1}.global-reply-note strong,.global-reply-note small{display:block}.global-reply-note small{margin-top:2px;color:#175cd3;font-size:10px}.global-reply-note a{white-space:nowrap;color:#175cd3;font-size:11px;font-weight:800;text-decoration:none}
.reply-settings-page{display:grid;gap:18px}.reply-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 28px;border-radius:19px;background:radial-gradient(circle at 80% 0,rgba(46,144,250,.25),transparent 35%),linear-gradient(125deg,#101828,#253a62);color:#fff;box-shadow:0 16px 40px rgba(16,24,40,.15)}.reply-hero h2{margin:4px 0;font-size:26px}.reply-hero p{margin:0;color:#d0d5dd}.reply-global-badge{padding:9px 12px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.1);white-space:nowrap;font-size:11px;font-weight:800}.reply-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);gap:18px;align-items:start}.reply-editor,.reply-preview-card{border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 8px 26px rgba(16,24,40,.05)}.reply-editor{padding:23px}.reply-section-title{display:flex;align-items:center;gap:11px;margin-bottom:14px}.reply-section-title.compact{margin-top:26px}.reply-section-title>span{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:10px;background:#f4ebff;color:#6941c6;font-weight:900}.reply-section-title>div{min-width:0;flex:1}.reply-section-title h3,.reply-section-title p{margin:0}.reply-section-title p{margin-top:2px;color:#667085;font-size:11px}.reply-section-title>b{padding:4px 8px;border-radius:999px;background:#fef3f2;color:#b42318;font-size:9px}.reply-suggestions{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.reply-suggestions button{padding:6px 9px;border:1px solid #e9d7fe;border-radius:999px;background:#f9f5ff;color:#6941c6;cursor:pointer;font-size:10px}.reply-save{display:flex;align-items:center;gap:15px;margin:24px -23px -23px;padding:17px 23px;border-top:1px solid var(--line);background:#fcfcfd}.reply-save>div{min-width:0;flex:1}.reply-save strong,.reply-save small{display:block}.reply-save strong{color:#027a48}.reply-save small{margin-top:2px;color:#667085;font-size:10px}.reply-preview-card{position:sticky;top:18px;overflow:hidden}.reply-preview-card>header{display:flex;align-items:center;gap:10px;padding:15px 17px;border-bottom:1px solid var(--line)}.reply-preview-card>header>span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#7f56d9,#ec4899);color:#fff;font-weight:900}.reply-preview-card>header strong,.reply-preview-card>header small{display:block}.reply-preview-card>header small{color:#98a2b3}.mock-post,.mock-reply{display:flex;gap:9px;padding:17px}.mock-avatar{flex:0 0 34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#fdb022,#f04438)}.mock-post p,.mock-reply p{margin:3px 0}.mock-post small{color:#98a2b3}.mock-reply{padding-top:0;padding-left:34px}.mock-reply>span{color:#98a2b3}.mock-reply>div{flex:1;padding:10px 12px;border-left:3px solid #7f56d9;border-radius:4px 11px 11px 4px;background:#f9f5ff}.mock-reply p{white-space:pre-wrap;color:#53389e}.reply-coverage{margin:5px 15px 15px;padding:13px;border-radius:11px;background:#ecfdf3;color:#027a48}.reply-coverage ol{display:grid;gap:5px;margin:9px 0 0;padding-left:20px;font-size:10px}@media(max-width:950px){.reply-layout{grid-template-columns:1fr}.reply-preview-card{position:static}}@media(max-width:650px){.reply-hero,.reply-save{align-items:flex-start;flex-direction:column}.reply-global-badge{white-space:normal}.reply-save{margin-bottom:-23px}.global-reply-note{align-items:flex-start;flex-wrap:wrap}.global-reply-note a{margin-left:45px}}
