:root{--ink:var(--theme-24173f,#24173f);--muted:var(--theme-7d758d,#7d758d);--primary:var(--theme-5a2ca0,#5a2ca0);--accent-soft:var(--theme-e7dbff,#e7dbff);--border:var(--theme-e7e2ed,#e7e2ed);--bg:var(--theme-f7f5fa,#f7f5fa);--red:#ab4343;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.55;cursor:not-allowed}:focus-visible{outline:3px solid var(--theme-aa8acd,#aa8acd);outline-offset:3px}.sidebar{width:238px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;z-index:30;padding:24px 16px 0}.brand{display:flex;flex-direction:column;align-items:flex-start;padding:0 17px 24px;gap:10px}.brand img{width:140px;height:46px;object-fit:contain}.brand span{font-size:9px;letter-spacing:1.6px;color:var(--muted);font-weight:700}.nav-label{font-size:9px;letter-spacing:1.3px;color:var(--theme-96909f,#96909f);padding:0 15px 12px;font-weight:700}nav{overflow:auto;flex:1;padding-bottom:18px}.nav-item{display:flex;align-items:center;gap:12px;padding:10px 14px;margin-bottom:3px;border-radius:8px;color:var(--theme-766b86,#766b86);font-size:12px;font-weight:550;transition:.15s}.nav-item:hover{background:var(--theme-f5f0fb,#f5f0fb);color:var(--primary)}.nav-item.selected{background:var(--theme-efe7f8,#efe7f8);color:var(--theme-5a2ca0,#5a2ca0);font-weight:700}.nav-symbol{font-size:20px;width:21px;height:21px;display:grid;place-items:center;font-weight:400}.sidebar-footer{padding:18px 0;display:flex;align-items:center;gap:10px;border-top:1px solid var(--border)}.avatar{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:var(--theme-eee6f6,#eee6f6);color:var(--theme-6b4b91,#6b4b91)}.sidebar-footer strong{display:block;max-width:130px;overflow:hidden;text-overflow:ellipsis;font-size:12px}.sidebar-footer small{font-size:10px;color:var(--muted)}.logout{background:none;border:0;color:var(--muted);font-size:23px;margin-left:auto}.workspace{margin-left:238px;min-height:100vh;display:flex;flex-direction:column}.top{height:72px;border-bottom:1px solid var(--border);background:#ffffffb8;display:flex;align-items:center;justify-content:space-between;padding:0 36px;font-size:12px;color:var(--theme-7c7289,#7c7289)}.breadcrumb{margin:0 13px;color:var(--theme-bcb5c5,#bcb5c5)}.top-right{display:flex;align-items:center;gap:7px;font-size:11px}.live-dot{height:6px;width:6px;border-radius:50%;background:var(--theme-9572bf,#9572bf)}.date{border-left:1px solid var(--border);padding-left:20px;margin-left:13px}.mobile-menu{display:none}main{padding:35px 36px 24px;width:100%;max-width:1800px;margin:0 auto;flex:1}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.7px;color:var(--theme-94899f,#94899f)}h1{font-size:30px;letter-spacing:-1px;font-weight:600;margin:9px 0}h2{font-size:17px;letter-spacing:-.35px;margin:0}h3{font-size:14px;margin:0}p{line-height:1.6}.page-heading p{color:var(--muted);font-size:12px;margin:8px 0 0}.actions{display:flex;align-items:center;gap:8px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--primary);color:white;border:1px solid var(--primary);padding:10px 16px;border-radius:7px;font-size:12px;font-weight:600;white-space:nowrap}.button:hover{filter:brightness(.95)}.button.secondary{background:white;color:var(--theme-625570,#625570);border-color:var(--border)}.button.danger{color:var(--red);background:#fff;border-color:#ead3d3}.button.small{padding:6px 9px;font-size:11px}.hero{display:grid;grid-template-columns:1fr auto;align-items:center;gap:25px;background:linear-gradient(145deg,var(--theme-5e2ca8,#5e2ca8) 0%,var(--theme-351a62,#351a62) 100%);border-radius:13px;color:white;padding:27px 30px;margin-bottom:24px;position:relative;overflow:hidden}.hero h2{font-size:23px;line-height:1.4;font-weight:500;max-width:570px}.hero p{font-size:12px;color:var(--theme-e0d3f2,#e0d3f2);margin:9px 0 0;max-width:550px}.hero .button{background:var(--accent-soft);border-color:var(--accent-soft);color:var(--theme-351a62,#351a62)}.hero-tag{display:inline-flex;align-items:center;gap:6px;font-size:9px;letter-spacing:1px;color:var(--theme-e7dbff,#e7dbff);margin-bottom:12px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}.metric{background:white;border:1px solid var(--border);border-radius:10px;padding:19px 20px}.metric-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}.metric-icon{font-size:17px;background:var(--theme-f3eef9,#f3eef9);color:var(--theme-9272b0,#9272b0);padding:7px;line-height:1;border-radius:7px}.metric-value{font-size:30px;font-weight:600;letter-spacing:-1px;margin:10px 0 4px}.metric-caption{font-size:10px;color:var(--theme-978e9f,#978e9f)}.metric.highlight{background:var(--theme-f1ebf8,#f1ebf8);border-color:var(--theme-e4d8f0,#e4d8f0)}.dashboard-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px;margin-bottom:20px}.card{background:white;border:1px solid var(--border);border-radius:11px;overflow:hidden}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px;border-bottom:1px solid var(--theme-f0ecf4,#f0ecf4)}.card-head p{color:var(--muted);font-size:11px;margin:6px 0 0}.card-body{padding:20px 22px}.card-link{font-size:11px;color:var(--primary);font-weight:600}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:230px;padding:40px 20px;color:var(--muted);gap:10px}.empty-icon{font-size:27px;color:var(--theme-a28ab9,#a28ab9);background:var(--theme-f5f0fa,#f5f0fa);border:1px solid var(--theme-e9ddf4,#e9ddf4);border-radius:14px;padding:14px;margin-bottom:5px}.empty strong{font-size:13px;font-weight:600;color:var(--theme-695777,#695777)}.empty p{font-size:12px;max-width:440px;margin:0}.integration-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--theme-f0ecf4,#f0ecf4)}.integration-row:last-child{border:0}.integration-logo{width:37px;height:37px;display:grid;place-items:center;background:var(--theme-f3eef8,#f3eef8);border-radius:10px;color:var(--theme-8969a8,#8969a8);font-weight:700}.integration-row h3{font-size:12px}.integration-row small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.integration-row .badge{margin-left:auto}.tip{background:var(--theme-faf7fd,#faf7fd);padding:14px;border-radius:8px;color:var(--theme-7c668f,#7c668f);font-size:11px;line-height:1.7;margin-top:17px}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}.toolbar input[type=search]{min-width:220px;flex:1;max-width:400px}.toolbar label{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.toolbar input,.toolbar select{padding:9px 11px;background:white;border:1px solid var(--border);border-radius:7px;color:var(--ink);min-height:37px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{background:var(--theme-fcfafe,#fcfafe);color:var(--theme-95899f,#95899f);font-size:9px;text-transform:uppercase;letter-spacing:.65px;font-weight:600;padding:13px 18px;white-space:nowrap}td{padding:15px 18px;border-top:1px solid var(--theme-f2eef6,#f2eef6);vertical-align:middle;max-width:330px}td.wrap{min-width:200px;white-space:normal;line-height:1.6}tbody tr:hover{background:var(--theme-fdfbff,#fdfbff)}.cell-main{font-weight:600;color:var(--theme-574365,#574365)}.cell-small{font-size:10px;color:var(--muted);margin-top:4px}.badge{display:inline-block;font-size:9px;font-weight:600;padding:5px 8px;border-radius:5px;background:var(--theme-f3eff6,#f3eff6);color:var(--theme-84758e,#84758e);white-space:nowrap}.badge.green{background:var(--theme-f1e9fa,#f1e9fa);color:var(--theme-8054aa,#8054aa)}.badge.orange{background:#fff4dd;color:#ac8539}.badge.red{background:#fbe9e7;color:#b36359}.badge.blue{background:#eaf1fa;color:#527ba5}.row-actions{display:flex;gap:5px;flex-wrap:wrap;min-width:100px}.pagination{display:flex;justify-content:space-between;align-items:center;padding:15px 18px;border-top:1px solid var(--border);color:var(--muted);font-size:11px}.pagination div{display:flex;gap:8px;align-items:center}.notice{border:1px solid var(--theme-e2d3f2,#e2d3f2);background:var(--theme-f5eefc,#f5eefc);color:var(--theme-735196,#735196);padding:13px 16px;border-radius:8px;margin-bottom:20px;font-size:12px;line-height:1.7}.notice.error{border-color:#f0d6d1;background:#fff1ee;color:#a24e3f}.footer{padding:22px 36px;font-size:10px;color:var(--theme-a195ac,#a195ac);border-top:1px solid var(--border);display:flex;justify-content:space-between}.loading{padding:60px;text-align:center;color:var(--muted)}dialog{border:1px solid var(--border);border-radius:13px;width:min(790px,calc(100vw - 30px));max-height:90vh;padding:0;color:var(--ink);box-shadow:0 20px 70px var(--theme-24173f30,#24173f30)}dialog::backdrop{background:var(--theme-24173f66,#24173f66);backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;padding:24px;border-bottom:1px solid var(--border)}.dialog-heading h2{margin-top:7px;font-size:22px}.icon-button{background:none;border:0;font-size:27px;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:24px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--theme-635370,#635370)}.field.wide{grid-column:1/-1}.field input,.field textarea,.field select{border:1px solid var(--theme-e4dcea,#e4dcea);background:var(--theme-fdfbfe,#fdfbfe);padding:10px 12px;border-radius:6px;color:var(--theme-40304f,#40304f);min-width:0;width:100%}.field textarea{min-height:110px;resize:vertical;line-height:1.6}.field textarea.json{min-height:250px;font-family:ui-monospace,monospace;font-size:12px}.field input[type=checkbox]{width:17px;height:17px;accent-color:var(--primary)}.field.checkbox{flex-direction:row;align-items:center;align-self:end;min-height:40px}.check-group{display:flex;gap:12px;flex-wrap:wrap}.check-group label{display:flex;align-items:center;gap:5px;font-size:11px}.check-group input{width:16px}.field select[multiple]{min-height:100px}.form-help{font-size:12px;line-height:1.7;color:var(--muted);padding:18px 24px 0}.form-help:empty{display:none}.dialog-footer{padding:18px 24px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--border);background:var(--theme-fcfafe,#fcfafe)}#formMessage{padding:0 24px 15px;color:var(--red);font-size:12px}#formMessage:empty{display:none}#messagePreview:not(:empty){margin:0 24px 24px;padding:20px;border-radius:12px;background:var(--theme-f2eafa,#f2eafa);white-space:pre-wrap;line-height:1.7;font-size:13px}.settings-card{max-width:900px}.simulation{margin-top:22px}.simulation .card{margin-bottom:15px}.simulation pre{white-space:pre-wrap;font:inherit;line-height:1.8;background:var(--theme-f6f1fa,#f6f1fa);border-radius:8px;padding:17px}.facts{display:flex;gap:15px;flex-wrap:wrap;font-size:12px;color:var(--muted);line-height:1.8}.facts strong{color:var(--ink)}.chart{height:200px;display:flex;align-items:end;gap:9px;padding:25px 10px 22px;border-bottom:1px solid var(--border);overflow:auto}.chart-col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:27px;flex:1;gap:7px;font-size:9px;color:var(--muted)}.chart-bar{width:100%;max-width:30px;background:var(--theme-ac8cc8,#ac8cc8);border-radius:4px 4px 0 0;min-height:3px}.tabs{display:flex;gap:8px;margin-bottom:18px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}
@media(min-width:1500px){main{padding:40px 50px}.sidebar{width:255px}.workspace{margin-left:255px}.metrics{gap:20px}.metric{padding:24px}}
@media(max-width:1100px){.sidebar{width:205px;padding-left:10px;padding-right:10px}.workspace{margin-left:205px}main{padding:26px 22px}.top{padding:0 22px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.page-heading{align-items:flex-start}.hero h2{font-size:20px}.top-right{display:none}}
@media(max-width:700px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:238px;box-shadow:10px 0 40px var(--theme-24173f20,#24173f20)}.sidebar.open{transform:translateX(0)}.workspace{margin-left:0}.top{height:58px;justify-content:flex-start;gap:16px}.mobile-menu{display:block;border:0;background:none;color:var(--ink);font-size:20px}main{padding:24px 16px}.page-heading{flex-direction:column;gap:16px;margin-bottom:20px}h1{font-size:27px}.page-heading p{max-width:350px}.hero{grid-template-columns:1fr;padding:23px;gap:18px}.hero .button{justify-self:start}.metrics{gap:10px}.metric{padding:15px}.metric-top{font-size:10px}.metric-value{font-size:26px}.metric-icon{font-size:13px}.toolbar input[type=search]{min-width:180px;max-width:none}.form-grid{grid-template-columns:1fr;padding:20px}.field.wide{grid-column:auto}.footer{padding:22px 16px}.footer span{font-size:9px}.card-head{padding:17px}.toolbar{gap:8px}.actions{flex-wrap:wrap}.date{display:none}}

.brand img{background:var(--theme-351a62,#351a62);border-radius:7px;padding:7px;width:156px;height:52px}
/* Inline message flow editor */
.category-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.flow-summary{min-width:200px;margin:0;padding-left:20px}.flow-summary li+li{margin-top:10px}.flow-summary small{display:block;color:var(--muted,var(--theme-746b80,#746b80));font-size:12px;margin-top:3px}.flow-builder-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin:8px 0 18px}.flow-builder-heading h3{margin:0 0 6px}.flow-builder-heading p{font-size:13px;line-height:1.5;margin:0;color:var(--theme-746b80,#746b80)}.flow-steps{display:grid;gap:18px;margin-bottom:18px}.flow-step{border:1px solid var(--theme-dfd2ef,#dfd2ef);border-radius:14px;padding:18px;background:var(--theme-fcfaff,#fcfaff);min-width:0}.step-heading{display:flex;align-items:center;gap:10px;margin-bottom:18px;flex-wrap:wrap}.step-number{display:grid;place-items:center;width:30px;height:30px;background:var(--theme-5a2ca0,#5a2ca0);color:#fff;border-radius:50%;font-weight:700}.step-tools{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}.step-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:18px}.step-settings label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600}.step-settings input{width:100%;min-width:0}.flow-variant{background:#fff;border:1px solid var(--theme-eee7f6,#eee7f6);border-radius:10px;padding:14px;margin-bottom:12px}.flow-variant>label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}.flow-variant textarea{width:100%;min-height:112px;resize:vertical;line-height:1.6}.variant-tools{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}.variant-preview,.simulation-step pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;background:var(--theme-f3ecfa,#f3ecfa);border-radius:8px;padding:12px;line-height:1.6}.simulation-step{border-left:3px solid var(--theme-b897dc,#b897dc);padding-left:15px;margin:20px 0}.simulation-step p{color:var(--theme-746b80,#746b80);font-size:13px}#flowBuilder{min-width:0}body[data-section="mensagens"] dialog{width:min(880px,calc(100% - 24px))}
@media(max-width:640px){.flow-builder-heading{flex-direction:column}.step-settings{grid-template-columns:1fr}.step-tools{margin-left:0;width:100%}.flow-step{padding:12px}.flow-variant{padding:10px}.category-tabs .button{font-size:12px;padding:9px 11px}}
.execution-name{min-width:220px;max-width:330px;white-space:normal}.execution-name small,.flow-category{display:block;margin-top:6px;color:var(--theme-746b80,#746b80);font-size:12px;line-height:1.5}.execution-progress{min-width:170px;max-width:320px;white-space:normal;display:grid;gap:8px}.execution-progress progress{width:100%;height:8px;accent-color:var(--theme-5a2ca0,#5a2ca0)}.execution-progress small{color:var(--theme-746b80,#746b80);line-height:1.5}#flowViewer{width:min(820px,calc(100% - 24px))}.execution-body{padding:24px}.execution-timeline{padding:0;list-style:none;display:grid;gap:18px;margin:24px 0 0}.execution-timeline li{border:1px solid var(--theme-dfd2ef,#dfd2ef);border-radius:14px;padding:18px;background:var(--theme-fcfaff,#fcfaff)}.execution-timeline h3{margin:0}.execution-timeline pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;line-height:1.6;background:var(--theme-f3ecfa,#f3ecfa);padding:14px;border-radius:8px}.execution-meta{font-size:13px;color:var(--theme-746b80,#746b80)}.execution-timeline small{overflow-wrap:anywhere}@media(max-width:640px){.execution-body{padding:16px}.execution-timeline li{padding:12px}}
:is(.bulk-selection,.bulk-job){display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.bulk-selection{margin:16px 0;padding:16px;border:1px solid var(--border);border-radius:12px;background:#fff}
.bulk-selection span{flex:1;color:var(--muted);font-size:13px}
.selection-cell{width:42px;text-align:center}
.selection-cell input{width:18px;height:18px;cursor:pointer;accent-color:var(--primary)}
tr.selected-row td{background:var(--theme-f2ebfa,#f2ebfa)}
.job-reference{display:block;white-space:nowrap;margin-top:6px;color:var(--muted)}
.bulk-jobs{margin-bottom:20px}
.bulk-job{justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--border)}
.bulk-job:last-child{border-bottom:0}
.bulk-job p{margin:8px 0}
.bulk-job small{color:var(--muted)}
#bulkEditor{width:min(760px,calc(100% - 24px))}
#bulkEditor textarea{min-height:150px}
#bulkPreview{white-space:pre-wrap;background:var(--bg);padding:16px;border-radius:8px}
.contract-audience{margin-bottom:18px}
.contract-audience p{margin:10px 0;line-height:1.6}
.contract-audience small,.contract-assessment small{color:var(--muted);line-height:1.6}
.contract-assessment{min-width:180px;max-width:280px;white-space:normal}
.contract-assessment small{display:block;margin-top:6px}
.contract-types{position:relative;min-width:205px;background:#fff;border:1px solid var(--border);border-radius:7px}
.contract-types summary{padding:10px 12px;cursor:pointer;font-size:12px}
.contract-type-options{display:grid;gap:12px;padding:14px;position:absolute;top:100%;left:0;width:230px;background:#fff;border:1px solid var(--border);border-radius:7px;z-index:5;box-shadow:0 8px 24px var(--theme-24173f20,#24173f20)}
.contract-type-options input[type=checkbox]{min-height:0;width:17px;height:17px;accent-color:var(--primary)}
#content[aria-busy=true]{opacity:.65}

/* Connection stays visible at every screen width. Text carries the state too. */
.top-crumb{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-right{display:flex;flex-shrink:0}.whatsapp-connection{display:flex;align-items:center;gap:9px;border:1px solid #edc878;border-radius:8px;background:#fff7e2;color:#76530d;padding:10px 13px;font-size:13px;font-weight:700;white-space:nowrap}.whatsapp-dot{width:9px;height:9px;border-radius:50%;background:currentColor;flex-shrink:0}.whatsapp-connection.connected{background:#e7f7ed;border-color:#86cfa0;color:#146a36}.whatsapp-connection.disconnected,.whatsapp-connection.disabled{background:#fff0f0;border-color:#e9a0a0;color:#a72424}.whatsapp-webhook{margin-bottom:20px}.whatsapp-webhook p,.whatsapp-webhook li{font-size:12px;line-height:1.8}.webhook-url{display:flex;align-items:end;gap:10px;margin:18px 0}.webhook-url .field{flex:1;min-width:0}.whatsapp-webhook textarea{font-family:ui-monospace,monospace;font-size:11px;min-height:180px}
@media(max-width:1100px){.top-right{display:flex}}
@media(max-width:700px){.top{min-height:72px;height:auto;gap:10px;padding:10px 16px;justify-content:space-between}.top-crumb{flex:1;font-size:10px}.top .breadcrumb{margin:0 4px}.top-right{margin-left:auto}.whatsapp-connection{font-size:11px;padding:9px;gap:6px}.whatsapp-dot{width:7px;height:7px}.webhook-url{align-items:stretch;flex-direction:column}}

.sortable-header{padding:0}.table-sort{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:13px 18px;min-height:44px;border:0;background:transparent;font:inherit;color:inherit;letter-spacing:inherit;text-transform:inherit;text-align:left}.table-sort:hover{background:var(--theme-f0e8f8,#f0e8f8);color:var(--theme-5a2ca0,#5a2ca0)}.table-sort-indicator{font-size:13px;letter-spacing:0}.sortable-header[aria-sort=ascending],.sortable-header[aria-sort=descending]{color:var(--theme-5a2ca0,#5a2ca0);font-weight:700}

.flow-variables{position:sticky;top:0;z-index:5;padding:14px 24px;background:#fff;border-block:1px solid var(--theme-e4dcea,#e4dcea);box-shadow:0 5px 12px var(--theme-351a6210,#351a6210)}.flow-variables-heading{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin-bottom:10px}.flow-variables-heading h3{font-size:13px}.flow-variables-heading small{font-size:11px;color:var(--muted)}.variable-chips{display:flex;flex-wrap:wrap;gap:7px}.variable-chip{border:1px solid var(--theme-d7c6e9,#d7c6e9);background:var(--theme-f5effc,#f5effc);color:var(--theme-5a2ca0,#5a2ca0);border-radius:7px;padding:8px 10px;font:11px ui-monospace,monospace;white-space:nowrap;cursor:grab}.variable-chip:hover{background:var(--theme-eadef8,#eadef8);border-color:var(--theme-af8dce,#af8dce)}.variable-chip:active{cursor:grabbing}.variant-body.variable-drop-target{outline:3px solid var(--theme-9270b7,#9270b7);outline-offset:2px;background:var(--theme-f5effc,#f5effc)}.variant-body{scroll-margin-top:155px;scroll-margin-bottom:20px}
@media(max-width:640px){.flow-variables{padding:12px 16px}.flow-variables-heading{gap:5px;margin-bottom:8px}.flow-variables-heading h3{width:100%}.variable-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;overscroll-behavior-x:contain}.variable-chip{flex-shrink:0;min-height:40px}.variant-body{scroll-margin-top:140px}}

.step-settings{grid-template-columns:1fr}
.auto-refresh-status{display:block;margin-top:8px;color:var(--muted);font-size:11px}
.automation-delivery{min-width:190px;display:grid;gap:7px}
.automation-delivery small{color:var(--muted);line-height:1.5}
.settings-card+.settings-card{margin-top:22px}
.business-rules details+details{margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}
.business-rules summary{cursor:pointer;font-size:14px;font-weight:600;line-height:1.5}
.business-rules li{margin:12px 0;line-height:1.7;font-size:12px}
.business-rules p{font-size:12px;color:var(--muted)}
.business-rules ul{padding-left:20px}
.business-rules td{min-width:130px;white-space:normal;line-height:1.6}
.business-rules .table-scroll{margin-top:14px}
.bulk-tracking-filters{align-items:end;gap:14px}.bulk-tracking-filters .field{min-width:140px;max-width:280px;flex:1}.bulk-tracking-filters input[type=search]{min-width:0;width:100%}.bulk-tracking-metrics .metric-value{font-size:27px;overflow-wrap:anywhere}.return-windows,.tracking-campaigns,.tracking-explanation{margin-bottom:22px}.return-presets{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.return-windows p,.return-windows small,.tracking-explanation p,.tracking-explanation small{font-size:12px;line-height:1.7;color:var(--muted)}.tracking-campaigns td{min-width:140px;white-space:normal;line-height:1.6}.tracking-campaigns progress{width:150px;accent-color:var(--primary)}.bulk-tracking-tabs{flex-wrap:wrap}.tracking-explanation{margin-top:22px}
@media(max-width:700px){.bulk-tracking-filters .field{max-width:none;min-width:120px}.bulk-tracking-metrics .metric-value{font-size:22px}.return-presets .button{flex-grow:1}.tracking-campaigns .row-actions{flex-wrap:wrap}}
.bulk-tracking-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1100px){.bulk-tracking-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.bulk-message-group{border:1px solid var(--border);padding:18px;border-radius:10px;background:var(--theme-fcfafe,#fcfafe)}.bulk-group-heading,.bulk-variant-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.bulk-group-heading h3{font-size:15px}.bulk-greeting-toggle{display:flex;align-items:center;gap:7px;font-size:12px}.bulk-greeting-toggle input[type=checkbox]{width:17px;height:17px;min-height:0;accent-color:var(--primary)}.bulk-variants{display:grid;gap:14px;margin:16px 0}.bulk-variant{display:grid;gap:12px;background:#fff;border:1px solid var(--border);border-radius:8px;padding:14px}.bulk-variant-heading{margin:0}.bulk-variant-heading strong{font-size:12px}.bulk-variant textarea{min-height:100px}.bulk-variant pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:var(--theme-f5effb,#f5effb);border-radius:6px;line-height:1.6;font:12px inherit}.bulk-message-group small,.bulk-sequence-info small{font-size:11px;line-height:1.7;color:var(--muted)}.bulk-message-group>[data-group-controls]>.field{margin-top:10px}.bulk-sequence-info{gap:12px}
@media(max-width:640px){.bulk-message-group{padding:12px}.bulk-variant{padding:11px}.bulk-variant-heading .row-actions{gap:5px}.bulk-variant-heading .button{padding:6px 8px}.bulk-group-heading{gap:8px}}

/* Open records from table rows and campaign cards. */
[data-row-open]{cursor:pointer}[data-row-open]:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}[data-row-open]:hover{background:var(--theme-f5effc,#f5effc)}.record-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:0;padding:24px}.record-details>div{min-width:0}.record-details dt{font-size:12px;color:var(--muted);margin-bottom:8px}.record-details dd{margin:0;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.record-details pre{white-space:pre-wrap;overflow-wrap:anywhere}.record-details .flow-summary{min-width:0}@media(max-width:700px){.record-details{grid-template-columns:1fr;padding:20px}}

/* Page controls stay in the heading; execution actions stay beside the client. */
@media(min-width:701px){.execution-actions .execution-pause{width:29px;padding:7px;gap:0}.execution-actions .execution-pause .flow-pause-label{display:none}}
button[aria-busy="true"]{cursor:wait}.retry-review-body{padding:20px 24px;font-size:13px;line-height:1.6}.retry-review-body pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;background:var(--theme-f6f1fc,#f6f1fc);border-radius:8px;font:inherit;font-size:12px}.retry-review-body small{color:var(--muted)}.retry-review-check{display:flex;align-items:flex-start;gap:10px;margin:20px 0}.retry-review-check input[type=checkbox]{width:18px;height:18px;min-height:0;flex:none;accent-color:var(--primary)}
@media(min-width:701px){.execution-table th:last-child,.execution-table td[data-column="actions"]{position:sticky;right:0;z-index:2;background:white;box-shadow:-8px 0 12px -12px var(--theme-351a6250,#351a6250)}.execution-table th:last-child{background:var(--theme-fcfafe,#fcfafe)}.execution-table tr:hover td[data-column="actions"]{background:var(--theme-f5effc,#f5effc)}.execution-table td[data-column="actions"]:has(.execution-menu[open]){z-index:3}}
.actions{flex-wrap:wrap;justify-content:flex-end}.dispatch-control{display:flex;align-items:center;gap:12px;padding-left:12px;border-left:1px solid var(--border)}.dispatch-state{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);white-space:nowrap}.dispatch-state::before{content:"";width:6px;height:6px;border-radius:50%;background:#739582}.dispatch-state.paused{color:#a57b32}.dispatch-state.paused::before{background:#d5a64e}.dispatch-control .button{font-size:11px;padding:9px 12px}.dispatch-control .button.resume{background:var(--primary);color:white;border-color:var(--primary)}.control-icon{width:15px;height:15px;flex:none}.queue-recovery{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 14px;margin:0 0 18px;border:1px solid var(--theme-eadff5,#eadff5);border-radius:8px;background:var(--theme-f6f1fc,#f6f1fc)}.queue-recovery-copy{display:flex;align-items:center;gap:10px;min-width:0}.queue-recovery-copy small{font-size:11px;color:var(--theme-776088,#776088);line-height:1.5}.queue-recovery-mark{display:grid;place-items:center;width:22px;height:22px;flex:none;border-radius:50%;background:var(--theme-eadef7,#eadef7);color:var(--primary);font-size:12px;font-weight:700}.queue-recovery .button{flex:none;background:#fff;border-color:var(--theme-e1d2ee,#e1d2ee);color:var(--primary)}.execution-actions{align-items:center;flex-wrap:nowrap;gap:7px}.execution-actions .button{font-size:10px;padding:7px 9px}.execution-actions>[data-action="view-flow"]{border-color:transparent;background:transparent;color:var(--muted);padding-left:0}.button.execution-primary{background:var(--theme-f0e8fa,#f0e8fa);border-color:var(--theme-e5d8f3,#e5d8f3);color:var(--primary)}.execution-menu{position:relative;flex:none}.execution-menu>summary{list-style:none;display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--border);border-radius:6px;color:var(--muted);cursor:pointer}.execution-menu>summary::-webkit-details-marker{display:none}.execution-menu[open]>summary{background:var(--theme-efe7f8,#efe7f8);color:var(--primary)}.execution-menu>div{position:absolute;z-index:5;right:0;bottom:34px;width:150px;padding:5px;background:white;border:1px solid var(--border);border-radius:7px;box-shadow:0 6px 20px var(--theme-24173f16,#24173f16)}.execution-menu button{width:100%;padding:9px 10px;border:0;border-radius:4px;background:white;color:var(--red);text-align:left;font-size:11px}.execution-menu button:hover{background:#fff2ee}.dialog-footer .execution-primary{font-size:12px;padding:10px 14px}.dialog-footer{flex-wrap:wrap}
@media(max-width:1100px){.dispatch-control{flex-wrap:wrap;justify-content:flex-end;gap:6px}.dispatch-state{width:100%;justify-content:flex-end}}
@media(max-width:700px){.page-heading .actions{width:100%;justify-content:flex-start;gap:8px}.dispatch-control{margin-left:auto;padding-left:10px;flex-wrap:nowrap;gap:8px}.dispatch-state{width:auto;justify-content:flex-start}.queue-recovery{align-items:flex-start;flex-wrap:wrap;gap:10px;padding:12px}.queue-recovery .button{margin-left:32px}.execution-actions{min-width:200px}.dialog-footer .execution-primary{flex:1}}
@media(max-width:400px){.dispatch-control{border-left:0;padding-left:0;justify-content:flex-start;margin-left:0}.dispatch-state{font-size:9px}}
@media(max-width:700px){.execution-table,.execution-table tbody{display:block;width:100%}.execution-table thead{display:none}.execution-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 14px;padding:18px 16px;border-top:1px solid var(--border)}.execution-table tbody tr:first-child{border-top:0}.execution-table td{display:block;border:0;padding:0;min-width:0;max-width:none;overflow-wrap:anywhere}.execution-table td[data-column="source"],.execution-table td[data-column="flow"]{display:none}.execution-table td[data-column="client_name"]{order:0;grid-column:1}.execution-table td[data-column="status"]{order:1;grid-column:2;justify-self:end;text-align:right}.execution-table td[data-column="message_flow_name"]{order:2;grid-column:1}.execution-table td[data-column="mode"]{order:2;grid-column:2;justify-self:end}.execution-table td[data-column="progress"]{order:3;grid-column:1/-1}.execution-table td[data-column="available_at"],.execution-table td[data-column="last_activity_at"],.execution-table td[data-column="last_sent_at"]{order:4;grid-column:1/-1;font-size:11px;color:var(--muted)}.execution-table td[data-column="available_at"]::before,.execution-table td[data-column="last_activity_at"]::before,.execution-table td[data-column="last_sent_at"]::before{content:attr(data-label) ": ";font-weight:600}.execution-table td[data-column="actions"]{order:5;grid-column:1/-1;padding-top:4px}.execution-table .execution-actions{min-width:0;flex-wrap:wrap;gap:8px}.execution-table .flow-summary{min-width:0}.execution-table .execution-progress{max-width:none}.execution-table .execution-actions .button{font-size:11px;padding:8px 11px}}

.settings-blocks{display:grid;gap:18px;padding:0 24px 24px}.settings-block{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:#fff}.settings-block-heading{padding:17px 20px;background:var(--theme-f8f5fc,#f8f5fc);border-bottom:1px solid var(--border)}.settings-block-heading h3{color:var(--ink);font-size:14px;font-weight:650}.settings-block-heading p{margin:5px 0 0;font-size:12px;color:var(--muted);line-height:1.6}.settings-block .form-grid{padding:20px;grid-template-columns:repeat(2,minmax(0,1fr))}.settings-block .field{min-width:0}.settings-block .field small{line-height:1.7;color:var(--muted)}.settings-block .field.checkbox{align-self:start;align-items:flex-start;min-height:0;line-height:1.6}.settings-block .field input[type=checkbox]{flex:none;margin-top:2px}.settings-block fieldset{min-width:0;border:0;padding:0;margin:0}.settings-block legend{padding:0;margin-bottom:10px}
@media(max-width:700px){.settings-blocks{padding:0 16px 16px;gap:14px}.settings-block-heading{padding:15px 16px}.settings-block .form-grid{padding:16px;grid-template-columns:minmax(0,1fr)}}

.queue-source-tabs{flex-wrap:wrap}.queue-source-tabs .button{min-width:120px}
.manual-delivery-action{margin-top:16px;padding-top:12px;border-top:1px solid var(--border)}.manual-delivery-action .button{max-width:100%;white-space:normal;text-align:center}.manual-delivery-action .form-help{margin:0 0 10px}

.whatsapp-connection{font-family:inherit;cursor:pointer}.whatsapp-connection:hover:not(:disabled){filter:brightness(.97)}.whatsapp-connection:focus-visible{outline:3px solid var(--primary);outline-offset:3px}.whatsapp-connection:disabled{cursor:wait}.whatsapp-refresh{font-size:16px;line-height:1}.whatsapp-connection[aria-busy=true] .whatsapp-refresh{animation:whatsapp-check-spin 1s linear infinite}@keyframes whatsapp-check-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.whatsapp-connection[aria-busy=true] .whatsapp-refresh{animation:none}}

.bulk-job-title{border:0;background:none;padding:0;color:var(--primary);font:inherit;font-weight:600;text-align:left;cursor:pointer;text-decoration:underline;text-underline-offset:3px;white-space:normal;overflow-wrap:anywhere}.bulk-job-title:focus-visible{outline:2px solid var(--primary);outline-offset:4px;border-radius:2px}
#bulkViewer{width:min(820px,calc(100% - 24px))}.bulk-view-body{padding:0 24px 24px}.bulk-view-body>p{color:var(--muted);font-size:13px;line-height:1.7;margin:16px 0}.bulk-view-body .record-details{padding:20px 0}.bulk-view-group{border:1px solid var(--border);background:var(--theme-fcfafe,#fcfafe);border-radius:10px;padding:16px;margin-top:18px}.bulk-view-group h3{margin:0 0 10px;font-size:16px}.bulk-view-group>p{font-size:13px;line-height:1.6;color:var(--muted)}.bulk-view-variants{list-style:none;padding:0;display:grid;gap:14px;margin:16px 0 0}.bulk-view-variants li{min-width:0;background:#fff;border:1px solid var(--border);padding:14px;border-radius:8px}.bulk-view-variants small{display:block;color:var(--muted);margin-top:6px;font-size:11px}.bulk-view-variants pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px;line-height:1.7;background:var(--bg);padding:12px;border-radius:6px;margin:12px 0 0}
@media(max-width:600px){.bulk-view-body{padding:0 16px 16px}.bulk-view-group{padding:12px}.bulk-view-variants li{padding:10px}#bulkViewer .dialog-footer{flex-wrap:wrap}}

/* Sidebar groups follow each company's primary color. */
.sidebar .nav-group{margin-top:16px}.sidebar .nav-group-title{padding:0 14px 10px;font-size:9px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}.sidebar .nav-group-highlight{margin-top:12px;padding:13px 5px 5px;border:1px solid color-mix(in srgb,var(--primary) 13%,white);border-radius:10px;background:color-mix(in srgb,var(--primary) 6%,white)}.sidebar .nav-group-highlight .nav-group-title{padding-left:9px;color:var(--primary)}.sidebar .nav-group-highlight .nav-item{padding-left:9px;padding-right:9px;color:color-mix(in srgb,var(--primary) 65%,var(--ink))}.sidebar .nav-group-highlight .nav-item:hover{background:color-mix(in srgb,var(--primary) 10%,white)}.sidebar .nav-group-highlight .nav-item.selected{background:color-mix(in srgb,var(--primary) 16%,white);color:var(--primary);box-shadow:inset 3px 0 0 var(--primary)}.sidebar .nav-group:not(:has(.nav-item:not([hidden]))){display:none}
