:root{--bg:#f6f7f9;--ink:#202b36;--muted:#7c8795;--line:#e8ecf0;--green:#246958;--green-light:#eaf4ef;--red:#bd4141;--radius:14px}*{box-sizing:border-box}body{margin:0;font:14px Manrope,system-ui,sans-serif;color:var(--ink);background:var(--bg)}button,input,textarea,select{font:inherit}button,a,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:var(--green)}button{border:1px solid #dce2e7;background:white;border-radius:8px;padding:9px 14px;font-weight:600;color:var(--ink);transition:.15s}button:hover{background:#f4f7f6;border-color:#a6bdb4}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#1c5547;color:white}.danger{color:var(--red)}.ghost{background:transparent;border-color:transparent}.icon{padding:7px 10px;font-size:20px;line-height:1.2}aside{position:fixed;inset:0 auto 0 0;width:246px;background:white;border-right:1px solid var(--line);padding:30px 18px 16px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:21px;font-weight:800;color:#233c33;margin:0 12px 37px}.brand-mark{background:var(--green);color:white;border-radius:11px;width:33px;height:35px;display:inline-flex;justify-content:center;align-items:center;font-size:30px;line-height:1}.brand-mark span{font-size:17px}.small-label{font-size:9px;font-weight:800;letter-spacing:1.5px;color:#9aa3ae;margin:0 12px 10px}.bot-switch{display:flex;gap:4px;margin:0 5px 24px;padding:5px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}.bot-switch select{min-width:0;width:100%;border:0;font-weight:700;background:transparent}.bot-switch button{border:0;background:transparent}nav{display:flex;flex-direction:column;gap:4px;overflow:auto}nav button{text-align:left;display:flex;align-items:center;gap:13px;border:0;background:none;padding:11px 14px;color:#79838f;font-size:12px}nav button span{font-size:17px;width:22px;color:#8e9b9c}nav button.active{color:var(--green);background:var(--green-light);font-weight:800}nav button.active span{color:var(--green)}.nav-divider{border-top:1px solid var(--line);margin:12px}.sidebar-footer{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:19px 8px 0;margin-top:auto;font-size:11px}.avatar{width:33px;height:33px;background:#edf0f3;border-radius:50%;display:grid;place-items:center;color:#697582;font-weight:700}.sidebar-footer small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.status-dot{width:7px;height:7px;background:#65ad8d;border-radius:50%;margin-left:auto}.workspace{margin-left:246px}header{height:77px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px}.breadcrumbs{font-size:11px;color:#9aa2ad}.breadcrumbs span{padding:0 13px;color:#cbd1d6}.breadcrumbs b{font-weight:500;color:#53606d}.header-right{display:flex;align-items:center;gap:18px}.badge{border-radius:6px;background:#edf5f0;color:#55806b;padding:5px 8px;font-size:10px;font-weight:700;white-space:nowrap}.badge.warn{background:#fff3dc;color:#a47821}.badge.error{background:#ffebeb;color:#ae4545}main{max-width:1560px;margin:auto;padding:34px 38px 60px;min-height:calc(100vh - 125px)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:26px}.page-heading h1{font-size:25px;letter-spacing:-.8px;margin:0 0 7px;font-weight:800}.page-heading p{font-size:12px;margin:0;color:var(--muted)}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.actions button{font-size:11px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:23px;margin-bottom:20px}.panel h2{font-size:15px;letter-spacing:-.2px;margin:0 0 6px}.panel h3{font-size:13px;margin:0 0 10px}.panel-sub{font-size:11px;color:var(--muted);margin:0 0 20px;line-height:1.7}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:22px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}.stat-label{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;align-items:center}.stat-icon{width:30px;height:30px;display:grid;place-items:center;background:#f3f6f5;color:#679080;border-radius:9px;font-size:16px}.stat-number{font-size:29px;letter-spacing:-1px;font-weight:800;margin:11px 0 4px}.stat-note{color:#98a1aa;font-size:10px}.welcome{background:#eaf3ed;border:1px solid #dceadf;border-radius:14px;padding:25px 28px;display:flex;align-items:center;justify-content:space-between;margin:24px 0;overflow:hidden}.welcome h2{margin:0 0 8px;font-size:19px;font-weight:800;color:#2e5243}.welcome p{font-size:12px;color:#728779;max-width:570px;line-height:1.8;margin:0 0 17px}.welcome-art{width:140px;height:100px;display:grid;place-items:center;font-size:72px;color:#7ba18b;transform:rotate(-12deg);opacity:.6}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-heading h2{margin:0}.muted{color:var(--muted)}.empty{text-align:center;padding:48px 20px;color:var(--muted)}.empty .empty-icon{font-size:32px;margin-bottom:12px;color:#b5c5bd}.empty strong{display:block;font-size:14px;color:#52615b;margin-bottom:8px}.empty p{font-size:12px;line-height:1.8;margin:0 0 18px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{color:#8d96a1;font-size:10px;font-weight:600;text-align:left;border-bottom:1px solid var(--line);padding:12px 10px}td{border-bottom:1px solid #f0f2f4;padding:15px 10px;vertical-align:middle}tr:last-child td{border-bottom:0}td .actions{justify-content:flex-end}td button{padding:5px 8px;font-size:10px}.name-cell{display:flex;align-items:center;gap:11px}.mini-icon{background:#edf4ef;color:#6e947f;border-radius:9px;display:grid;place-items:center;width:33px;height:33px;font-size:16px}.name-cell strong{display:block;font-size:12px}.name-cell small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:19px;flex-wrap:wrap}.search{max-width:320px;width:100%;padding:10px 13px!important}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}label.field{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:700;color:#606e7a}label.field.full{grid-column:1/-1}input,textarea,select{border:1px solid #dfe4e8;border-radius:7px;padding:10px 11px;background:white;color:var(--ink);outline:none;min-width:0}input:focus,textarea:focus,select:focus{border-color:#6d9d89;box-shadow:0 0 0 3px #edf5f0}textarea{resize:vertical;min-height:100px;font-weight:400;line-height:1.6}input[type=checkbox]{accent-color:var(--green);width:16px;height:16px}.check{display:flex;align-items:center;gap:9px;font-size:12px}.help{font-size:10px;color:#8a96a0;font-weight:400;line-height:1.6}.form-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:24px;border-top:1px solid var(--line);padding-top:19px}dialog{border:1px solid var(--line);border-radius:16px;padding:27px;max-width:700px;width:calc(100% - 30px);max-height:90vh;box-shadow:0 20px 100px #142e3230}dialog::backdrop{background:#18272d55;backdrop-filter:blur(3px)}.modal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.modal-heading h2{font-size:20px;margin:0}.split{display:grid;grid-template-columns:290px minmax(0,1fr);gap:20px}.contact-list{max-height:650px;overflow:auto}.contact-item{width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left;padding:15px 11px;background:white}.contact-item.active{background:var(--green-light)}.message-list{height:420px;overflow:auto;padding:20px;background:#f8faf9;display:flex;flex-direction:column;gap:12px;border-radius:10px}.bubble{padding:12px 15px;border:1px solid var(--line);background:white;border-radius:12px;max-width:85%;white-space:pre-wrap;line-height:1.7;font-size:12px;align-self:flex-start}.bubble.out{background:#e4f1e8;border-color:#d7e8dd;align-self:flex-end}.bubble small{display:block;font-size:9px;color:#90a096;margin-top:6px}.compose{display:flex;gap:9px;margin-top:14px}.compose textarea{min-height:65px;flex:1}.step-card{border:1px solid var(--line);border-radius:11px;margin-bottom:13px;background:#fff}.step-head{display:flex;align-items:center;gap:8px;padding:14px;background:#f8faf9;border-radius:11px 11px 0 0}.step-head .step-number{border-radius:7px;background:#e3eee7;color:#648270;width:26px;height:26px;display:grid;place-items:center;font-weight:800;font-size:11px}.step-head input{flex:1;font-size:12px;font-weight:700}.step-body{padding:17px}.message-editor{border:1px dashed #d9e2dc;border-radius:8px;padding:13px;margin:12px 0;background:#fdfefd}.message-editor textarea{width:100%}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:20px}.editor-tools{position:sticky;top:20px;align-self:start}.editor-tools button{width:100%;text-align:left;margin-top:8px;font-size:12px}.tag{display:inline-block;background:#f0f3f5;padding:4px 7px;border-radius:5px;margin:2px;font-size:10px;color:#6d7a85}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}.media-card{border:1px solid var(--line);border-radius:11px;overflow:hidden}.media-preview{height:140px;background:#f1f5f3;display:grid;place-items:center;font-size:32px;color:#93a79d}.media-preview img,.media-preview video{width:100%;height:100%;object-fit:cover}.media-info{padding:13px}.media-info strong{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-info .actions{margin-top:10px}.loading{padding:50px;text-align:center;color:var(--muted)}.loading:before{content:'';display:block;width:24px;height:24px;border:2px solid #d9e5dd;border-top-color:var(--green);border-radius:50%;margin:0 auto 15px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#toast-area{position:fixed;bottom:25px;right:25px;z-index:100;display:flex;flex-direction:column;gap:8px}.toast{padding:14px 20px;color:#fff;background:#2b6651;border-radius:10px;box-shadow:0 6px 30px #1c3a2620;max-width:450px;font-size:12px;line-height:1.7}.toast.error{background:#9d3e3e}.error-panel{padding:25px;border:1px solid #efd4d4;background:#fff7f7;border-radius:12px;color:#9d3e3e;font-size:12px;line-height:1.8}pre{white-space:pre-wrap;word-break:break-word;font-size:11px;line-height:1.7;background:#f5f7f8;padding:15px;border-radius:8px}.json{font:11px ui-monospace,SFMono-Regular,monospace;width:100%;min-height:160px}details{margin-top:16px}summary{cursor:pointer;font-size:11px;color:var(--muted);padding:8px 0}.notice{background:#fff8e8;border:1px solid #f0e5c5;border-radius:9px;padding:13px;font-size:11px;color:#998044;line-height:1.8;margin:15px 0}.timeline{display:flex;flex-direction:column;gap:0}.timeline-item{padding:13px 0;border-bottom:1px solid var(--line);font-size:11px;display:flex;gap:12px}.timeline-item small{color:var(--muted);display:block;margin-top:5px}footer{display:flex;justify-content:space-between;padding:17px 38px;font-size:9px;color:#a7b0ba;border-top:1px solid var(--line)}.mobile-only{display:none}.inline-link{border:0;background:none;padding:0;color:var(--green);font-size:11px}.progress-line{height:7px;background:#eff3f0;border-radius:6px;overflow:hidden;margin:9px 0}.progress-line span{height:100%;display:block;background:#7ca48a;border-radius:6px}.metric-row{display:flex;justify-content:space-between;font-size:11px;margin-top:18px}.tabbar{display:flex;gap:7px;margin-bottom:18px;flex-wrap:wrap}.tabbar button{font-size:11px}.tabbar .active{background:var(--green-light);color:var(--green);border-color:#d2e4d8}@media(min-width:1500px){main{padding:40px 50px}}@media(max-width:1100px){aside{width:218px}.workspace{margin-left:218px}main{padding:25px}.grid{gap:12px}.editor-layout{grid-template-columns:1fr}.editor-tools{position:static}.grid.two{grid-template-columns:1fr}}@media(max-width:760px){aside{transform:translateX(-100%);transition:.2s}aside.open{transform:translateX(0);box-shadow:0 0 0 100vw #172b2540}.workspace{margin:0}header{height:63px;padding:0 18px}.mobile-only{display:block}.breadcrumbs{display:none}main{padding:22px 16px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:23px}.grid{grid-template-columns:1fr 1fr}.split{grid-template-columns:1fr}.contact-list{max-height:200px}.form-grid{grid-template-columns:1fr}.field{grid-column:1/-1}.welcome-art{display:none}.welcome{padding:22px}.panel{padding:18px}.stat{padding:16px}.stat-number{font-size:26px}.header-right{margin-left:auto}footer{padding:15px}.editor-layout{display:block}.step-head{flex-wrap:wrap}.step-head input{width:70%}#toast-area{right:15px;left:15px;bottom:15px}}
/* Keep the step inspector usable on narrow desktop windows as well as phones. */
.editor-layout > *, .form-grid > *, .step-head > *, .field { min-width: 0; }
.editor-layout input, .editor-layout select, .editor-layout textarea { max-width: 100%; }
.step-navigation select { width: 100%; }
@media (max-width: 1100px) {
  .editor-layout { display: block !important; }
  .editor-tools { position: static !important; margin-top: 20px; }
  .editor-layout .form-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .step-head { flex-wrap: wrap; }
  .step-head input { flex: 1 1 180px; width: auto; }
}
.preview-banner{padding:7px 38px;background:#fff8e8;border-bottom:1px solid #f0e5c5;color:#846920;font-size:11px;font-weight:700;line-height:1.5;text-align:center}.preview-webhook-help{margin:0;grid-column:1/-1}@media(max-width:760px){.preview-banner{padding:7px 16px}}
