.automation-main-nav > i{background:#9b8cff!important;box-shadow:0 0 15px rgba(155,140,255,.35)}
.automation-view{max-width:1500px;margin:0 auto;padding-bottom:80px;color:#f4f4f7}
.automation-view button{font:inherit}
.automation-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}
.automation-head p,.automation-kicker{margin:0 0 8px;color:#9b8cff;font-size:11px;font-weight:900;letter-spacing:.16em}
.automation-head h1{margin:0;font-size:clamp(34px,5vw,68px);line-height:.95;letter-spacing:-.055em}
.automation-head h1 em{font-style:normal;color:#a7a2b6}
.automation-head span{display:block;max-width:760px;margin-top:15px;color:#9497a3;line-height:1.65}
.automation-head-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.automation-button{border:1px solid #30303a;border-radius:12px;padding:12px 16px;background:#111116;color:#f6f6f8;font-weight:800;cursor:pointer;transition:.2s ease}
.automation-button:hover{border-color:#8580ff;transform:translateY(-1px)}
.automation-button.primary{border:0;background:linear-gradient(135deg,#756bff,#a177ff);box-shadow:0 12px 30px rgba(110,91,255,.22)}
.automation-button.danger{color:#ffaaa9;border-color:#4d292d}.automation-button:disabled{opacity:.45;cursor:not-allowed;transform:none}
.automation-health{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}
.automation-health article{position:relative;overflow:hidden;border:1px solid #27272f;background:linear-gradient(145deg,#101015,#0b0b0e);border-radius:18px;padding:18px}
.automation-health article:before{content:"";position:absolute;inset:0 auto 0 0;width:2px;background:#605cff}
.automation-health small{display:block;color:#747681;font-weight:800;font-size:10px;letter-spacing:.12em}.automation-health strong{display:block;margin-top:7px;font-size:22px}.automation-health i{display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#55dc9d;box-shadow:0 0 12px #55dc9d}.automation-health i.off{background:#ff786f;box-shadow:0 0 12px #ff786f}
.automation-tabs{display:flex;gap:7px;margin:0 0 24px;padding:5px;border:1px solid #25252d;background:#0c0c10;border-radius:14px;width:max-content;max-width:100%;overflow:auto}
.automation-tabs button{border:0;background:transparent;color:#7f818c;padding:10px 15px;border-radius:10px;white-space:nowrap;font-weight:800;cursor:pointer}.automation-tabs button.active{background:#202028;color:white}
.automation-section{margin-top:36px}.automation-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:16px}.automation-section-head h2{margin:0;font-size:25px;letter-spacing:-.03em}.automation-section-head span{color:#777a85;font-size:13px}
.automation-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.automation-template,.automation-card{border:1px solid #282831;background:linear-gradient(150deg,#111116,#0b0b0f);border-radius:20px;padding:20px;min-width:0}
.automation-template{display:flex;flex-direction:column;min-height:285px;position:relative;overflow:hidden}.automation-template:after{content:"";position:absolute;width:130px;height:130px;border-radius:50%;background:#685fff;filter:blur(75px);opacity:.12;right:-30px;top:-30px}.automation-template header,.automation-card header{display:flex;align-items:center;justify-content:space-between;gap:10px}.automation-chip{display:inline-flex;padding:6px 9px;border:1px solid #393842;border-radius:999px;color:#aba8ff;font-size:9px;font-weight:900;letter-spacing:.11em}.automation-trigger{color:#696b75;font-size:10px;font-weight:800}.automation-template h3,.automation-card h3{margin:18px 0 8px;font-size:20px;letter-spacing:-.025em}.automation-template p,.automation-card p{margin:0;color:#898b96;line-height:1.55;font-size:13px}.automation-template ul{list-style:none;margin:16px 0 20px;padding:0;display:grid;gap:7px}.automation-template li{color:#b7b8c0;font-size:12px}.automation-template li:before{content:"✓";color:#63dba2;margin-right:8px}.automation-template footer{margin-top:auto}
.automation-list{display:grid;gap:12px}.automation-card{display:grid;grid-template-columns:minmax(220px,1.3fr) minmax(180px,.8fr) auto;align-items:center;gap:20px}.automation-card h3{margin:7px 0}.automation-state{display:flex;align-items:center;gap:9px;color:#a9aab1;font-size:12px;font-weight:800}.automation-state i{width:8px;height:8px;border-radius:50%;background:#777}.automation-state.active i,.automation-state.success i{background:#52d696;box-shadow:0 0 13px rgba(82,214,150,.65)}.automation-state.failed i{background:#ff6d72}.automation-state.draft i{background:#f0be5c}.automation-schedule{display:grid;gap:4px}.automation-schedule small{color:#6d6e78;font-size:10px;letter-spacing:.1em}.automation-schedule strong{font-size:13px}.automation-actions{display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap}.automation-actions .automation-button{padding:9px 11px;font-size:11px}
.automation-runs{overflow:auto;border:1px solid #282831;border-radius:18px}.automation-run{display:grid;grid-template-columns:120px minmax(220px,1fr) 140px 90px;gap:14px;align-items:center;padding:15px 18px;border-bottom:1px solid #222229;cursor:pointer}.automation-run:last-child{border:0}.automation-run:hover{background:#121219}.automation-run time,.automation-run small{color:#72747e;font-size:11px}.automation-run strong{font-size:13px}.automation-run .automation-state{font-size:10px}.automation-run b{text-align:right;font-size:11px;color:#a6a7af}
.automation-empty{border:1px dashed #303039;border-radius:18px;padding:36px;text-align:center;color:#737680}.automation-empty strong{display:block;color:#d8d8dd;margin-bottom:7px}
.automation-modal{width:min(780px,calc(100vw - 28px));max-height:min(880px,calc(100vh - 28px));overflow:auto;border:1px solid #343440;border-radius:22px;background:#0e0e13;color:#f5f5f7;padding:25px;box-shadow:0 35px 90px rgba(0,0,0,.65)}
.automation-modal > header{display:flex;justify-content:space-between;gap:20px}.automation-modal h2{margin:4px 0 8px;font-size:28px}.automation-modal header p{margin:0;color:#8b8d96;line-height:1.5}.automation-close{width:38px;height:38px;flex:0 0 38px;border:1px solid #34343d;border-radius:50%;background:#15151b;color:white;font-size:20px;cursor:pointer}
.automation-form{display:grid;gap:14px;margin-top:24px}.automation-form label{display:grid;gap:7px;color:#bcbcc4;font-size:12px;font-weight:800}.automation-form input,.automation-form textarea,.automation-form select{width:100%;box-sizing:border-box;border:1px solid #303039;border-radius:11px;padding:12px;background:#09090c;color:white;outline:0}.automation-form textarea{min-height:100px;resize:vertical}.automation-form input:focus,.automation-form textarea:focus,.automation-form select:focus{border-color:#7f75ff}.automation-consent{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start;gap:10px!important;padding:14px;border:1px solid #363344;border-radius:12px;background:#15131d}.automation-consent input{width:17px;height:17px;margin-top:2px}.automation-form footer{display:flex;justify-content:flex-end;gap:9px;margin-top:6px}
.automation-steps{display:grid;gap:8px;margin-top:22px}.automation-step{display:grid;grid-template-columns:28px 1fr auto;gap:10px;align-items:center;border:1px solid #282832;border-radius:12px;padding:12px}.automation-step span{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#1c1c23;color:#898b96}.automation-step.success span{background:#173428;color:#62dca1}.automation-step.failed span{background:#3b1d22;color:#ff8388}.automation-step small{color:#777984}.automation-error{margin-top:15px;padding:12px;border:1px solid #522d32;background:#27171a;color:#ffaaa9;border-radius:11px;font-size:12px;white-space:pre-wrap}
.automation-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.automation-admin-card{border:1px solid #282831;border-radius:18px;padding:18px;background:#101015}.automation-admin-card header{display:flex;justify-content:space-between;gap:12px}.automation-admin-card h3{margin:6px 0}.automation-toggle{border:1px solid #3b3b45;background:#18181f;color:#aaa;border-radius:999px;padding:7px 10px;cursor:pointer}.automation-toggle.on{border-color:#336e56;color:#69dfa4;background:#13291f}
@media(max-width:1100px){.automation-catalog{grid-template-columns:1fr 1fr}.automation-health{grid-template-columns:1fr 1fr}.automation-card{grid-template-columns:1fr auto}.automation-schedule{display:none}.automation-admin-grid{grid-template-columns:1fr}}
@media(max-width:680px){.automation-view{padding:0 14px 70px}.automation-head{align-items:flex-start;flex-direction:column}.automation-head-actions{width:100%;justify-content:stretch}.automation-head-actions button{flex:1}.automation-health{grid-template-columns:1fr 1fr}.automation-health article{padding:14px}.automation-health strong{font-size:16px}.automation-catalog{grid-template-columns:1fr}.automation-template{min-height:0}.automation-card{grid-template-columns:1fr}.automation-actions{justify-content:flex-start}.automation-run{grid-template-columns:85px 1fr 80px}.automation-run b{display:none}.automation-section-head{align-items:flex-start;flex-direction:column;gap:6px}.automation-modal{padding:18px}.automation-form footer{flex-direction:column-reverse}.automation-form footer button{width:100%}}
@media(prefers-reduced-motion:reduce){.automation-button{transition:none}}
