:root{font-family:Inter,"Helvetica Neue",Arial,sans-serif;color:#242c29;background:#f5f6f3;font-size:15px;line-height:1.5;--green:#245744;--line:#e0e4dc;--muted:#66716b;--paper:#fff;--radius:14px}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,summary{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button,input,select,textarea,a,summary{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #3b8065}button:disabled{cursor:wait;opacity:.55}button{transition:background .15s,transform .15s}button:active{transform:translateY(1px)}[hidden]{display:none!important}
.app{display:grid;grid-template-columns:236px 1fr;min-height:100vh}.sidebar{background:#171e1b;color:#c9d3cc;padding:30px 20px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:30px}.brand{display:flex;align-items:center;gap:12px;font-size:25px;font-weight:600;color:#f1f6ef;letter-spacing:-1px}.brand-mark{height:40px;width:40px;display:grid;place-items:center;background:#d5edbd;color:#203022;border-radius:12px;font-family:Georgia,serif;font-size:35px;font-weight:500;line-height:1}.brand-sub{display:block;font-size:11px;letter-spacing:.4px;font-weight:400;color:#a5b1a8;margin-top:1px}.workspace{display:flex;align-items:center;gap:10px;border-top:1px solid #354039;border-bottom:1px solid #354039;padding:19px 0;font-size:13px}.workspace small,.phone-header small{display:block;color:#89988d;font-size:11px}.avatar{display:grid;place-items:center;width:37px;height:37px;flex-shrink:0;background:#e8ded0;color:#564a3a;border-radius:50%;font-size:12px;font-weight:600}.avatar.small{width:32px;height:32px}nav{display:grid;gap:7px}nav a{padding:12px 13px;border-radius:8px;display:flex;gap:13px;align-items:center;font-size:13px;font-weight:500;min-height:46px}nav a span{font-size:21px;width:22px;color:#99ac9e}nav a:hover{background:#25332a}nav a.active{background:#d5edbd;color:#243622}nav a.active span{color:#314b2b}.inbox-link{padding:12px 8px;font-size:12px;border-top:1px solid #354039;display:flex;justify-content:space-between}.sidebar-bottom{margin-top:auto;font-size:11px;color:#b9c5bd;display:flex;align-items:center;gap:8px}.status-dot{width:6px;height:6px;border-radius:50%;background:#b5cd9d}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;color:var(--muted);font-size:12px;background:#fbfcf9}.topbar-name{display:grid;place-items:center;border:1px solid #cdd5c7;width:31px;height:31px;border-radius:50%;color:#506046;font-size:10px}main{min-width:0}.content{padding:36px 42px 60px;max-width:1500px;margin:auto}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:29px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.6px;color:#6a786b}h1{font-size:34px;line-height:1.2;font-weight:550;letter-spacing:-1.2px;margin:8px 0 10px}h2{font-size:23px;font-weight:550;letter-spacing:-.5px;margin:4px 0}h3{font-size:15px;font-weight:600;margin:0}p{margin:8px 0}p.subtitle{color:var(--muted);font-size:13px}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:43px;padding:10px 16px;border-radius:8px;border:1px solid transparent;font-size:12px;font-weight:550;white-space:nowrap}.button.primary{background:var(--green);color:#fff}.button.primary:hover{background:#193f31}.button.secondary{border-color:#d7ddd3;background:#fff;color:#354536}.button.secondary:hover{background:#eef3e9}.button.ghost{color:#58665b;background:transparent;padding:8px 10px}.button.ghost:hover{background:#edf1e7}.button.danger{color:#8a3d32;border-color:#e7c6be;background:#fff4ee}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:35px}.stat{padding:21px 23px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}.stat-label{font-size:11px;color:var(--muted)}.stat-number{font-size:31px;letter-spacing:-1px;margin:8px 0 5px;line-height:1.2}.stat-foot{font-size:10px;color:#72816f}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.tabs{display:flex;gap:4px;padding:4px;background:#e9ede5;border-radius:8px}.tabs button{background:none;border:0;padding:8px 13px;border-radius:5px;font-size:11px;min-height:36px;color:#63715e}.tabs button.active{background:#fff;color:#263c24;box-shadow:0 1px 3px #0000000d}.search{border:1px solid #d7ddd1;border-radius:8px;background:#fff;min-height:40px;padding:10px 13px;max-width:240px;font-size:12px}.campaign-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.campaign-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.card-head{display:flex;justify-content:space-between;align-items:center;padding:24px 24px 14px;gap:12px}.channel{font-size:10px;color:#6f4d7d;border:1px solid #e5dce8;background:#fcf8fd;padding:4px 8px;border-radius:5px}.badge{display:inline-flex;align-items:center;gap:6px;font-size:10px;padding:4px 9px;border-radius:20px;background:#f0f1ec;color:#687160;white-space:nowrap}.badge.live{background:#e4f0db;color:#45612d}.badge.paused{background:#fff1d9;color:#906828}.badge.error,.badge.uncertain,.badge.rejected{background:#fae8e1;color:#9a4938}.card-body{padding:0 24px 22px}.card-body h3{font-size:19px;font-weight:550;letter-spacing:-.3px;margin-bottom:7px}.card-description{font-size:12px;color:var(--muted);min-height:36px}.flow-summary{margin:21px 0 18px;padding:15px;background:#f6f8f3;border:1px solid #e8ece1;border-radius:8px;display:flex;gap:9px;align-items:center;font-size:11px;color:#65725e}.flow-summary strong{font-weight:550;color:#34492d}.flow-arrow{color:#a3af99}.snippet{font-size:12px;line-height:1.7;border-left:2px solid #b1c59b;padding-left:12px;min-height:44px;color:#60705c;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.card-footer{border-top:1px solid #eef0ea;padding:11px 17px;display:flex;gap:6px;justify-content:space-between;align-items:center}.card-actions{display:flex;gap:3px}.card-footer .button{font-size:11px;min-height:40px}.empty{background:#fff;border:1px dashed #cdd8c5;border-radius:14px;padding:44px;text-align:center;color:#6c7864;grid-column:1/-1}.empty h3{color:#34432d;margin-bottom:8px}.empty p{font-size:13px;margin-bottom:19px}.notice{padding:12px 42px;background:#eaf0e1;border-bottom:1px solid #d9e1ce;font-size:12px;color:#536744}.notice.warning{background:#fff0dd;color:#865c26}.table-wrap{border:1px solid var(--line);border-radius:12px;overflow:auto;background:#fff}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{color:#6d7967;background:#fafbf7;font-size:10px;font-weight:600;letter-spacing:.4px}td,th{padding:16px 20px;border-bottom:1px solid #e9ede4}td{vertical-align:top}tr:last-child td{border-bottom:0}.tag{display:inline-block;border-radius:4px;padding:3px 7px;background:#e9efdf;color:#607044;font-size:10px;margin:2px}.contact-name{font-weight:550;color:#31452c}.quiet{font-size:11px;color:#71806c}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px;margin-bottom:20px}.connection-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.check-row{padding:14px 0;border-bottom:1px solid #edf0e8;display:flex;justify-content:space-between;gap:15px;font-size:12px}.check-row:last-child{border:0}.check-row span:last-child{color:#66755c}code{font-size:11px;overflow-wrap:anywhere;background:#f0f3eb;padding:2px 5px;border-radius:3px}label{display:grid;gap:6px;font-size:12px;font-weight:500;margin-bottom:17px}input,textarea,select{width:100%;padding:11px 12px;border:1px solid #d6ddcf;border-radius:7px;color:#34432d;background:#fff;font-size:13px;min-width:0}textarea{resize:vertical;line-height:1.6}label small{font-weight:400;font-size:10px;color:#7a8572}.field-row{display:grid;grid-template-columns:2fr 1fr;gap:16px}.error{color:#a33d2d;font-size:12px;min-height:18px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);background:#243d2d;color:#fff;padding:14px 24px;box-shadow:0 8px 30px #0002;border-radius:10px;z-index:20;font-size:13px}dialog{padding:0;border:1px solid #dfe6d8;border-radius:16px;width:min(900px,calc(100vw - 40px));max-height:90vh;box-shadow:0 24px 100px #15230c33;color:#293725}dialog::backdrop{background:#17201888;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 28px;border-bottom:1px solid #e8eddf}.icon-button{background:transparent;border:0;font-size:26px;width:44px;height:44px;color:#6a7962}.editor-layout{display:grid;grid-template-columns:1.25fr 1fr}.editor-fields{padding:26px 28px}.editor-preview{background:#f4f7ef;border-left:1px solid #e1e7d9;padding:26px;position:sticky;top:0;align-self:start}.phone-header{display:flex;gap:9px;align-items:center;margin:23px 0 25px;font-size:12px}.bubble{background:#fff;padding:12px 15px;border:1px solid #e1e7d8;border-radius:13px 13px 13px 3px;font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:13px 0;max-width:90%}.bubble.user{background:#dfeacc;border:0;margin-left:auto;border-radius:13px 13px 3px 13px;color:#4e6638;max-width:max-content}.flow-step{display:flex;gap:10px;align-items:center;margin:22px 0 16px}.step-dot{display:grid;place-items:center;background:#e9efdf;border:1px solid #d6e2c4;color:#5b7641;width:26px;height:26px;border-radius:50%;font-size:10px}.dialog-footer{padding:17px 28px;display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #e4eadd;background:#fff;position:sticky;bottom:0}details{margin-top:24px;border-top:1px solid #e6ebde;padding-top:17px}summary{font-size:12px;margin-bottom:18px;cursor:pointer}.branch{padding:16px;background:#f7f9f3;border:1px solid #e0e7d5;border-radius:9px;margin:16px 0}.branch-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.branch .icon-button{font-size:21px;width:35px;height:35px}.preview-form,.preview-result{padding:24px 28px}.preview-result{background:#f4f7ef;min-height:100px}#preview-dialog{max-width:510px}.login{max-width:440px;margin:10vh auto}.refresh-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
@media(min-width:1500px){.campaign-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.app{grid-template-columns:200px 1fr}.sidebar{padding:24px 14px}.content{padding:28px}.topbar{padding:0 28px}.stats{gap:10px}.stat{padding:17px}.card-head{padding:20px 18px 14px}.card-body{padding:0 18px 20px}.card-footer{flex-wrap:wrap}.connection-grid{grid-template-columns:1fr}}
@media(max-width:780px){.app{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:17px 20px;gap:15px}.brand-sub{display:none}.brand{font-size:22px}.brand-mark{width:32px;height:32px;font-size:28px}.workspace,.sidebar-bottom,.inbox-link{display:none}nav{grid-template-columns:repeat(4,1fr);gap:5px}nav a{font-size:10px;justify-content:center;padding:9px 4px;gap:5px;min-height:44px}nav a span{display:none}.topbar{height:48px;padding:0 22px;font-size:11px}.content{padding:25px 20px}.page-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}h1{font-size:28px}.stats{grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:24px}.stat-number{font-size:27px}.campaign-grid{grid-template-columns:1fr}.toolbar{flex-wrap:wrap}.search{max-width:none;flex:1;min-width:160px}.notice{padding:12px 20px}.editor-layout{grid-template-columns:1fr}.editor-preview{position:static;border-left:0;border-top:1px solid #dfe7d4}.editor-fields,.dialog-head{padding:20px}.dialog-footer{padding:15px 20px}.field-row{grid-template-columns:1fr}.dialog-head h2{font-size:20px}dialog{width:calc(100vw - 20px)}.card-description{min-height:0}.check-row{flex-wrap:wrap}.button{min-height:44px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
