:root{--bg:#f6f7f9;--surface:#fff;--ink:#14181f;--ink2:#38404d;--mute:#667085;--line:#e3e6ec;--line2:#eef0f4;--brand:#3550e8;--brand-d:#2a41c4;--brand-l:#eceffe;--ok:#12805c;--ok-l:#e5f5ee;--bad:#c23b3b;--bad-l:#fcebeb;--warn:#9a5b06;--warn-l:#fdf1dc}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 Figtree,system-ui,sans-serif;-webkit-font-smoothing:antialiased}h1,h2,h3{margin:0;letter-spacing:-.015em}a{color:var(--brand)}.muted{color:var(--mute);font-size:.9rem}.small{font-size:.84rem}:focus-visible{outline:3px solid var(--brand-l);outline-offset:1px;box-shadow:0 0 0 1px var(--brand)}button,.btn{font:inherit;font-weight:600;cursor:pointer;border:1px solid var(--brand);border-radius:8px;padding:8px 15px;background:var(--brand);color:#fff;text-decoration:none;display:inline-flex;align-items:center;gap:8px;transition:background .15s,border-color .15s}button:hover,.btn:hover{background:var(--brand-d);border-color:var(--brand-d)}button:disabled{opacity:.5;cursor:not-allowed}button.ghost,.btn.ghost{background:var(--surface);color:var(--ink2);border-color:var(--line)}button.ghost:hover,.btn.ghost:hover{background:var(--bg);border-color:#cfd4dd}button.sm{padding:4px 10px;font-size:.85rem}button.wide{width:100%;justify-content:center;padding:11px}.icon-btn{background:none;border:0;color:var(--mute);padding:6px}.icon-btn:hover{background:var(--bg);color:var(--ink)}input,select,textarea{font:inherit;color:var(--ink);width:100%;border:1px solid var(--line);border-radius:8px;padding:9px 12px;background:var(--surface);margin:0}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-l)}textarea{resize:vertical}input[type=number]{width:84px;display:inline-block}input[type=file]{padding:8px}select.auto{width:auto}.field{display:block;margin-bottom:16px}.field>span{display:block;font-weight:600;font-size:.88rem;margin-bottom:6px;color:var(--ink2)}.field em{font-style:normal;font-weight:400;color:var(--mute);margin-left:6px}.field .row{align-items:center}.chk{display:flex;align-items:center;gap:8px;margin:6px 0;font-weight:400}.chk input{width:auto;margin:0}.row{display:flex;gap:8px;flex-wrap:wrap}.row.between{justify-content:space-between;align-items:center}.row.end{justify-content:flex-end;margin-top:18px}.bar-top{margin-bottom:14px}.shell{display:grid;grid-template-columns:236px 1fr;min-height:100vh}.side{background:var(--surface);border-right:1px solid var(--line);padding:18px 12px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:10px;align-items:center;padding:2px 8px 22px}.logo{width:34px;height:34px;border-radius:8px;background:var(--brand);color:#fff;display:grid;place-items:center;flex:none}.brand b{display:block;font-size:1.12rem;line-height:1.1;letter-spacing:-.02em}.brand small{color:var(--mute);font-size:.76rem}.nav-item{width:100%;justify-content:flex-start;background:none;border:0;color:var(--ink2);margin-bottom:2px;padding:9px 12px}.nav-item:hover{background:var(--bg)}.nav-item.on{background:var(--brand-l);color:var(--brand)}.side-foot{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 8px 0;border-top:1px solid var(--line)}.avatar{width:30px;height:30px;border-radius:50%;background:var(--brand-l);color:var(--brand);display:grid;place-items:center;font-weight:700}.who{flex:1;font-weight:600;overflow:hidden;text-overflow:ellipsis}main{padding:34px 40px 80px;min-width:0}.page{max-width:1000px;margin:0 auto}.page-head{margin-bottom:22px}.page-head h1{font-size:1.65rem}.page-head p{margin:2px 0 0;color:var(--mute)}.back{margin-bottom:18px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:22px;margin-bottom:16px}.panel>h3{font-size:1.05rem;margin-bottom:14px}.panel .sub{margin:-8px 0 14px;color:var(--mute)}.sect{padding:24px 0;border-top:1px solid var(--line)}.sect>h3{font-size:1.05rem;margin-bottom:12px}.card,.camp{display:flex;justify-content:space-between;gap:14px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:14px 18px;margin-bottom:10px;text-align:left}.card.col{flex-direction:column;align-items:stretch}.card p{white-space:pre-wrap;margin:6px 0}.camp{width:100%;color:var(--ink);font-weight:400;cursor:pointer}.camp:hover{background:var(--surface);border-color:var(--brand)}.camp-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.camp-title b{font-size:1.02rem}.camp-prog{min-width:190px;text-align:right}.camp-prog .bar{margin-bottom:4px}.line{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line2)}.note{background:var(--brand-l);color:#243aa8;border-radius:8px;padding:10px 14px;margin:0 0 16px}.note.bad{background:var(--bad-l);color:var(--bad)}.empty{text-align:center;padding:46px 16px;color:var(--mute);background:var(--surface);border:1px dashed #cfd4dd;border-radius:10px}.empty b{display:block;color:var(--ink);font-size:1.02rem;margin-bottom:2px}.detail-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:flex-start;margin-bottom:18px}.detail-head h2{font-size:1.45rem;margin-bottom:6px}.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.badge{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:600;padding:2px 10px;border-radius:99px;background:var(--line2);color:var(--ink2);white-space:nowrap}.badge:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.badge.ready,.badge.contacted,.badge.scheduled{background:var(--brand-l);color:var(--brand)}.badge.running,.badge.active,.badge.replied{background:var(--ok-l);color:var(--ok)}.badge.bounced,.badge.invalid,.badge.failed,.badge.no_email{background:var(--bad-l);color:var(--bad)}.badge.paused{background:var(--warn-l);color:var(--warn)}.bar{height:8px;background:var(--line2);border-radius:99px;overflow:hidden}.bar i{display:block;height:100%;background:var(--brand);border-radius:99px}.rail{margin:18px 0 0 7px;border-left:2px solid var(--line);padding-left:22px}.node{position:relative;padding-bottom:18px}.node:last-child{padding-bottom:0}.node:before{content:"";position:absolute;left:-30px;top:4px;width:12px;height:12px;border-radius:50%;background:var(--surface);border:2px solid #c3c9d4}.node.done:before{background:var(--ok);border-color:var(--ok)}.node.active:before{background:var(--brand);border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-l)}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:12px}.stats div{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px 14px;color:var(--mute);font-size:.88rem}.stats b{display:block;font-size:1.55rem;color:var(--ink);line-height:1.2}.path{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stage{flex-direction:column;align-items:flex-start;gap:0;background:var(--surface);color:var(--mute);border:1px solid var(--line);border-radius:10px;padding:14px 18px;text-align:left;font-weight:500}.stage:hover{background:var(--surface);border-color:#cfd4dd}.stage b{font-size:1.7rem;color:var(--ink);line-height:1.2}.stage.on{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-l)}.exits{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0 18px}.exits .muted{margin-left:auto}.pill{background:var(--surface);color:var(--ink2);border:1px solid var(--line);padding:3px 12px;border-radius:99px;font-size:.86rem;font-weight:500}.pill:hover{background:var(--bg)}.pill.on{border-color:var(--brand);color:var(--brand);background:var(--brand-l)}.scroll{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:10px}table{border-collapse:collapse;width:100%;min-width:640px}th{text-align:left;font-weight:600;font-size:.82rem;color:var(--mute);background:#fafbfc;padding:10px 16px;border-bottom:1px solid var(--line)}td{padding:12px 16px;border-top:1px solid var(--line2);vertical-align:top}tbody tr:first-child td{border-top:0}tbody tr:hover td{background:#fafbff}td select{width:auto}.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}.chip{background:var(--brand-l);color:var(--brand);border:0;padding:3px 11px;border-radius:99px;font-size:.84rem;font-weight:600}.chip:hover{background:#dde2fd}.step{background:#fafbfc;border:1px solid var(--line);border-radius:10px;padding:14px;margin-bottom:12px}.step textarea,.step>input{margin-top:6px}.step-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.grid3{display:grid;grid-template-columns:2fr 1fr 2fr;gap:12px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#14181f73;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:24px;z-index:5}.modal{background:var(--surface);border-radius:12px;padding:24px;max-width:660px;width:100%;box-shadow:0 20px 50px #14181f40}.modal h2{margin-bottom:12px}iframe.mail{width:100%;height:150px;border:1px solid var(--line);border-radius:8px;background:#fff;margin:6px 0 14px}.auth{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;background:var(--surface)}.auth-art{background:var(--brand-l);padding:56px;display:flex;flex-direction:column;justify-content:center;gap:18px}.auth-art .brand{padding:0 0 28px}.auth-art h1{font-size:2.3rem;line-height:1.12;max-width:15ch}.auth-art ul{margin:8px 0 0;padding-left:18px;color:var(--ink2);max-width:42ch}.auth-art li{margin-bottom:8px}.auth-card{align-self:center;justify-self:center;width:100%;max-width:380px;padding:32px 24px}.auth-card h2{font-size:1.5rem;margin-bottom:4px}.auth-card>p{margin:0 0 20px}.auth-mobile-brand{display:none}@media (max-width:860px){.shell{grid-template-columns:1fr}.side{position:static;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center;padding:10px 14px}.brand{padding:0}.brand small{display:none}.side nav{order:3;width:100%;display:flex;gap:4px;overflow-x:auto;margin-top:8px}.nav-item{width:auto;white-space:nowrap}.side-foot{margin:0 0 0 auto;border:0;padding:0}.who{display:none}main{padding:22px 16px 60px}.auth{grid-template-columns:1fr}.auth-art{display:none}.auth-mobile-brand{display:block;margin-bottom:18px}.auth-mobile-brand .brand{padding:0}}@media (max-width:640px){.path,.grid3{grid-template-columns:1fr}.camp,.card{flex-direction:column;align-items:stretch}.camp-prog{text-align:left}}
