.nav-button[data-view="messages"]::after{content:"NOVO";font-size:9px;letter-spacing:.07em;margin-left:auto;padding:3px 5px;border-radius:4px;background:#d6b66b1a;color:#c5a45e}
.messages-page{--m-navy:#10283d;--m-line:#8ba4b51f;--m-muted:#9fb2bf;--m-gold:#e3c77e;max-width:1500px;margin:0 auto;color:inherit}
.messages-page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:6px 0 30px}.messages-eyebrow{font-size:10px!important;letter-spacing:.18em;font-weight:650;color:#c7aa65;margin:0 0 8px!important}.messages-page h1{margin:0 0 9px;font-size:clamp(27px,3vw,36px);letter-spacing:-1.2px;line-height:1.2}.messages-page-header p{margin:0;font-size:14px;color:var(--m-muted);line-height:1.6}.messages-state{display:inline-flex;align-items:center;gap:9px;flex-shrink:0;border:1px solid #d6b66b45;border-radius:999px;background:#d6b66b0b;padding:9px 13px;font-size:12px;color:#d4b66e}.messages-state>span{width:6px;height:6px;border-radius:50%;background:#d4b66e;box-shadow:0 0 0 4px #d4b66e12}
.messages-workspace{display:grid;grid-template-columns:280px minmax(0,1fr);border:1px solid var(--m-line);border-radius:22px;overflow:hidden;background:#10283d30;min-height:610px}.messages-sidebar{display:flex;flex-direction:column;padding:25px 20px;background:#07192b38;border-right:1px solid var(--m-line);min-width:0}.messages-sidebar-heading{display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:600}.messages-draft-label{font-size:10px;font-weight:400;letter-spacing:.03em;color:#8fa5b4}.messages-search-preview{display:flex;align-items:center;gap:9px;font-size:12px;color:#7290a1;margin:23px 0 18px;padding:12px 10px;border:1px solid var(--m-line);border-radius:9px}.messages-search-preview svg{height:17px;width:17px}.messages-filter-preview{display:flex;gap:9px;margin:0 0 25px;color:#8198a9;font-size:10px}.messages-filter-preview span{padding:7px 10px;border:1px solid #8297a414;border-radius:7px}.messages-filter-preview span:first-child{color:#bea66a;background:#d6b66b09;border-color:#d6b66b19}.messages-list-preview{display:grid;gap:26px;opacity:.45}.messages-row-preview{display:flex;gap:13px;align-items:center}.messages-row-preview>i{height:35px;width:35px;flex-shrink:0;border-radius:50%;background:#91aabb17}.messages-row-preview>div{display:grid;gap:9px;flex:1}.messages-row-preview>div>span{height:6px;width:73%;background:#91aabb20;border-radius:4px}.messages-row-preview>div>span+span{width:96%;background:#91aabb11}.messages-sidebar-note{color:#7b93a4;font-size:11px;line-height:1.8;margin:30px 0}.messages-sidebar-footer{border-top:1px solid var(--m-line);margin-top:auto;padding-top:21px;display:flex;gap:11px;align-items:center;color:#a5b8c4}.messages-sidebar-footer>span{font-size:29px;color:#b89d5e}.messages-sidebar-footer strong,.messages-sidebar-footer small{display:block}.messages-sidebar-footer strong{font-size:11px;font-weight:550}.messages-sidebar-footer small{font-size:10px;margin-top:5px;color:#8297a5}
.messages-preparing{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:31px 30px 26px;background:radial-gradient(ellipse at 50% 30%,#33586b14,transparent 70%)}.messages-preparing-label{font-size:9px;letter-spacing:.2em;color:#8a9eac;text-align:center}.messages-owl{width:min(100%,510px);aspect-ratio:640/435;position:relative;display:flex;align-items:center;justify-content:center}.messages-owl-player{width:100%}.messages-motion-toggle{display:block;border:0!important;box-shadow:none!important;background:transparent!important;color:#879eae!important;font-size:10px!important;margin:0 auto!important;padding:6px 10px!important;min-height:28px!important;transition:color .2s!important;transform:none!important}.messages-motion-toggle:hover{color:#e2c680!important;transform:none!important}.messages-motion-toggle:focus-visible{outline:2px solid #dfc17a!important;outline-offset:3px}.messages-owl-fallback{display:flex;flex-direction:column;gap:13px;align-items:center;justify-content:center;min-height:220px;color:#e3c77e;font-size:24px;line-height:1.5}.messages-owl-fallback span{font-size:12px;color:#9fb2bf}.messages-explanation{text-align:center;max-width:520px;margin:7px 0 0}.messages-explanation h2{font-size:clamp(20px,2.2vw,26px);line-height:1.4;letter-spacing:-.7px;margin:0 0 10px}.messages-explanation p{color:#9fb2bf;font-size:13px;line-height:1.85;margin:0}.messages-explanation .messages-honest-status{font-size:11px;color:#8098a8;margin-top:11px}.messages-benefits{display:flex;flex-wrap:wrap;justify-content:center;gap:13px 21px;border-top:1px solid var(--m-line);margin:23px 0 0;padding-top:19px;color:#9bb1bf}.messages-benefits span{font-size:10px;display:flex;align-items:center;gap:7px}.messages-benefits svg{width:15px;height:15px;color:#bea369}
.messages-rollout{list-style:none;padding:0;margin:20px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.messages-rollout li{display:flex;align-items:center;gap:12px;border:1px solid var(--m-line);border-radius:12px;padding:15px 17px;color:#8ca2b1;background:#112b4012}.messages-rollout li>span{width:29px;height:29px;display:grid;place-items:center;border:1px solid #8ba4b526;border-radius:50%;font-size:10px}.messages-rollout li[aria-current]{border-color:#d6b66b35}.messages-rollout li[aria-current]>span{color:#e2c680;border-color:#d6b66b55;background:#d6b66b0c}.messages-rollout strong{font-size:11px;font-weight:550;color:inherit}.messages-rollout small{display:block;font-size:10px;margin-top:5px;color:#728c9d}.messages-rollout li[aria-current] strong{color:#d8c28b}
@media(max-width:1050px){.messages-workspace{grid-template-columns:220px minmax(0,1fr)}.messages-sidebar{padding:22px 15px}.messages-preparing{padding:26px 20px}.messages-benefits{gap:12px}.messages-rollout li{padding:13px 12px;gap:8px}}
@media(max-width:760px){.messages-page-header{align-items:flex-start;margin-bottom:22px}.messages-page-header p{font-size:12px;max-width:200px}.messages-state{font-size:10px;padding:8px 10px;gap:7px;margin-top:8px}.messages-workspace{grid-template-columns:1fr;min-height:0;border-radius:17px}.messages-sidebar{padding:15px 17px;border:0;border-bottom:1px solid var(--m-line)}.messages-search-preview,.messages-filter-preview,.messages-list-preview,.messages-sidebar-note,.messages-sidebar-footer{display:none}.messages-preparing{padding:24px 16px}.messages-preparing-label{font-size:8px;letter-spacing:.15em}.messages-owl{width:min(100%,420px)}.messages-explanation{margin-top:17px}.messages-explanation h2{font-size:21px}.messages-explanation p{font-size:12px}.messages-benefits{gap:13px 16px}.messages-rollout{grid-template-columns:1fr;gap:8px;margin-top:15px}.messages-rollout li{padding:13px 16px}.messages-rollout strong{font-size:12px}.messages-rollout small{font-size:11px}}
@media(prefers-reduced-motion:reduce){.messages-page *{animation:none!important;transition:none!important}}
[data-theme="light"] .messages-page{--m-line:#17374c20;--m-muted:#597183;color:#18364d}.messages-page:focus{outline:none}

[data-theme="light"] .messages-workspace{background:#fff}[data-theme="light"] .messages-sidebar{background:#f1f5f8}[data-theme="light"] .messages-preparing{background:radial-gradient(ellipse at 50% 30%,#e5eef4,transparent 75%)}
[data-theme="light"] .messages-explanation p,[data-theme="light"] .messages-explanation .messages-honest-status,[data-theme="light"] .messages-sidebar-note,[data-theme="light"] .messages-sidebar-footer,[data-theme="light"] .messages-sidebar-footer small,[data-theme="light"] .messages-preparing-label,[data-theme="light"] .messages-draft-label,[data-theme="light"] .messages-search-preview,[data-theme="light"] .messages-filter-preview,[data-theme="light"] .messages-benefits,[data-theme="light"] .messages-rollout,[data-theme="light"] .messages-rollout small{color:#506674}
[data-theme="light"] .messages-eyebrow,[data-theme="light"] .messages-state,[data-theme="light"] .messages-filter-preview span:first-child,[data-theme="light"] .messages-rollout li[aria-current] strong,[data-theme="light"] .messages-rollout li[aria-current]>span,[data-theme="light"] .messages-owl-fallback{color:#806016}
[data-theme="light"] .messages-motion-toggle{color:#506674!important}[data-theme="light"] .messages-motion-toggle:hover{color:#806016!important}[data-theme="light"] .messages-owl-title{fill:#806016}[data-theme="light"] .messages-owl-subtitle{fill:#506674}[data-theme="light"] .messages-owl-fallback span{color:#506674}
[data-theme="light"] .messages-rollout li{color:#506674}
[data-wa-connections]:empty{display:none}.wa-channels{margin:0 0 28px;padding:22px;border:1px solid #8296a333;border-radius:18px;background:var(--panel,#10202e);color:var(--text,#e5edf2)}.wa-channels-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.wa-channels h2{margin:0;font-size:20px;line-height:1.4}.wa-channels-heading p,.wa-channels-note,.wa-channels-feedback{font-size:12px;line-height:1.7;color:var(--muted,#9fb2bf)}.wa-channels-feedback{min-height:1.7em}.wa-channels-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.wa-channel-card{padding:19px;border:1px solid #8296a333;border-radius:13px;min-width:0}.wa-channel-card h3{font-size:15px;margin:0 0 10px}.wa-channel-state{display:inline-block;font-size:10px;padding:5px 8px;border-radius:6px;background:#c8aa6315;color:#cbb370}.wa-channel-card p{font-size:12px;line-height:1.7;color:var(--muted,#9fb2bf)}.wa-channel-card strong{display:block;font-size:13px;line-height:1.5}.wa-channel-card small{display:block;color:var(--muted,#9fb2bf);line-height:1.7;font-size:11px;margin:8px 0 14px}.wa-channel-card button{width:100%;font-size:12px}.wa-channels-note{margin-bottom:0}[data-theme="light"] .wa-channels{background:#fff;color:#183244}[data-theme="light"] .wa-channel-state{color:#765510}@media(max-width:800px){.wa-channels-grid{grid-template-columns:1fr}.wa-channels{padding:16px}.wa-channels-heading{align-items:flex-start;flex-direction:column}.wa-channels-heading button{align-self:flex-start}}

.wa-inbox>select{width:100%;max-width:430px;margin:0 0 20px;padding:12px 15px;border-radius:10px;background:var(--panel,#10202e);color:var(--text,#e5edf2);border:1px solid #8296a355;font:inherit}.wa-inbox>select:focus-visible{outline:2px solid #d5b36a;outline-offset:3px}
.wa-automation{border:1px solid var(--line,#263c4d);border-radius:18px;padding:24px;margin:20px 0;background:var(--panel,#102334)}
.wa-auto-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.wa-auto-header h2{margin:5px 0}.wa-auto-header p{margin:6px 0}.wa-auto-controls{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin:16px 0}.wa-auto-controls label{display:grid;gap:8px;max-width:240px}.wa-auto-controls input{width:100%;padding:10px;border:1px solid var(--line,#33485a);border-radius:10px;background:var(--bg,#0d1d2c);color:inherit}.wa-auto-enable{display:flex;align-items:center;gap:9px}.wa-auto-enable input,.wa-schedule-lead input{width:auto;accent-color:#d2b76b}.wa-auto-note{font-size:13px;line-height:1.6;opacity:.8;max-width:1000px}.wa-auto-job{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 0;border-top:1px solid var(--line,#263c4d)}.wa-auto-job p{margin:5px 0;font-size:13px}.wa-auto-empty{padding:16px 0;opacity:.75}.wa-schedule-lead{display:grid;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line,#263c4d)}.wa-schedule-lead label{display:flex;align-items:center;gap:9px}.wa-schedule-lead small{line-height:1.5;opacity:.8}.queue-table .claim-button{margin:4px 6px 4px 0}
@media(max-width:640px){.wa-automation{padding:18px}.wa-auto-header{flex-direction:column}.wa-auto-controls{display:grid;grid-template-columns:1fr}.wa-auto-controls label{max-width:none}.wa-auto-job{align-items:flex-start}}
/* Compact connection settings: content-sized rows, quiet hierarchy. */
.wa-channels{padding:18px 20px;margin:0 0 16px;border-radius:16px;min-height:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.wa-channels .wa-channels-heading{gap:12px;margin-bottom:10px;align-items:center}
.wa-channels h2{font-size:17px;letter-spacing:-.35px;font-weight:650;line-height:1.3}
.wa-channels .wa-channels-heading p{margin:3px 0 0;font-size:12px;line-height:1.4}
.wa-channels .wa-channels-heading button{width:auto;min-height:36px;padding:7px 12px;font-size:12px;border-radius:9px;transform:none}
.wa-channels [data-channels-feedback]{font-size:12px;margin:8px 0;color:var(--muted,#9fb2bf)}
.wa-channels [data-channels-feedback]:empty{display:none}
.wa-channels .wa-channels-grid{display:block;min-height:0}
.wa-channels .wa-channel-card{display:grid;grid-template-columns:minmax(100px,.8fr) minmax(150px,1fr) auto;align-items:center;gap:4px 16px;padding:12px 0;border:0;border-top:1px solid #8296a326;border-radius:0;min-height:0;background:transparent;box-shadow:none}
.wa-channels .wa-channel-card h3{margin:0;font-size:13px;font-weight:600;line-height:1.5}
.wa-channels .wa-channel-card strong{font-size:13px;line-height:1.5;font-weight:450;font-variant-numeric:tabular-nums}
.wa-channels .wa-channel-card p{grid-column:3;grid-row:1;margin:0;font-size:11px;white-space:nowrap;line-height:1.5;display:flex;align-items:center;gap:6px}
.wa-channels .wa-channel-card p:before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:#cfa65b}
.wa-channels .wa-channel-card[data-connected="true"] p:before{background:#54b88b}
.wa-channels .wa-channel-card small{grid-column:1 / 3;margin:0;font-size:10px;line-height:1.4;opacity:.8}
.wa-channels .wa-channels-note{font-size:11px;margin:8px 0 0;line-height:1.4;color:var(--muted,#9fb2bf)}
.wa-channels .wa-personal-setup{border-top:1px solid #8296a326;margin-top:4px}
.wa-channels .wa-personal-setup[hidden]{display:none}
.wa-channels .wa-personal-setup summary{list-style:none;cursor:pointer;padding:12px 0 4px;font-size:13px;font-weight:550;display:flex;align-items:center;justify-content:space-between;min-height:40px}
.wa-channels .wa-personal-setup summary::-webkit-details-marker{display:none}
.wa-channels .wa-personal-setup summary:focus-visible{outline:2px solid #d5b36a;outline-offset:4px;border-radius:4px}
.wa-channels .wa-personal-connection{min-height:0;margin:12px 0 0;padding:14px;border-radius:12px;gap:16px;background:transparent}
.wa-channels .wa-personal-connection p{font-size:12px;line-height:1.5;margin:0 0 10px}
.wa-channels .wa-personal-connection [data-personal-feedback]:empty{display:none}
.wa-channels .wa-personal-connection button{font-size:12px;min-height:40px;padding:8px 14px}
.wa-channels .wa-personal-qr img{width:210px}
@media(max-width:600px){.wa-channels{padding:16px}.wa-channels .wa-channels-heading{flex-direction:row}.wa-channels .wa-channel-card{grid-template-columns:minmax(0,1fr) auto;gap:3px 8px}.wa-channels .wa-channel-card h3{grid-column:1;grid-row:1}.wa-channels .wa-channel-card strong{grid-column:1;grid-row:2}.wa-channels .wa-channel-card p{grid-column:2;grid-row:1 / 3}.wa-channels .wa-channel-card small{grid-column:1 / -1}.wa-channels .wa-personal-connection{grid-template-columns:1fr}}
/* Connection setup: one quiet surface, readable steps and a compact QR. */
.wa-channels .wa-personal-connection{border:0;border-top:1px solid #8296a326;border-radius:0;padding:16px 0 4px;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:24px}
.wa-channels .wa-personal-connection h3{font-size:14px;line-height:1.4;margin:0 0 12px;font-weight:600;letter-spacing:-.15px}
.wa-channels .wa-connect-steps{list-style:none;counter-reset:connection-step;display:grid;gap:10px;padding:0;margin:0 0 14px}
.wa-channels .wa-connect-steps li{counter-increment:connection-step;position:relative;padding-left:29px;font-size:12px;line-height:1.6;color:var(--muted,#a3b6c5)}
.wa-channels .wa-connect-steps li:before{content:counter(connection-step);position:absolute;left:0;top:0;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:#8296a315;color:inherit;font-size:10px}
.wa-channels .wa-connect-steps strong{font-weight:600;color:var(--text,#e5edf2)}
.wa-channels .wa-personal-connection .wa-connect-privacy{max-width:430px;font-size:11px;color:var(--muted,#a3b6c5);line-height:1.6;margin:0 0 14px}
.wa-channels .wa-personal-connection button{width:auto;min-height:38px;border-radius:10px;font-size:12px;font-weight:600;box-shadow:none;transition:background-color .15s ease,opacity .15s ease;transform:none}
.wa-channels .wa-personal-connection button:active{opacity:.75}
.wa-channels .wa-personal-qr{width:196px;max-width:100%;align-self:start}
.wa-channels .wa-personal-qr img{width:196px;padding:10px;border-radius:12px}
.wa-channels .wa-personal-qr p{font-size:11px;line-height:1.5;margin:8px 0 0}
@media(max-width:600px){.wa-channels .wa-personal-connection{grid-template-columns:1fr;gap:18px}.wa-channels .wa-personal-qr{justify-self:center}}
/* Sending account selector: same material, spacing and focus as the CRM fields. */
#whatsapp-dialog .wa-sender-field{display:grid;gap:8px;min-width:0;margin:18px 0 12px;padding:14px 16px;border:1px solid #8296a329;border-radius:16px;background:var(--panel,#102332)}
#whatsapp-dialog .wa-sender-field>span{font-size:12px;font-weight:600;color:var(--muted,#a3b6c5);letter-spacing:.01em}
#whatsapp-dialog .wa-sender-field select{box-sizing:border-box;display:block;width:100%;max-width:100%;min-width:0;min-height:44px;margin:0;padding:10px 14px;border:1px solid #8296a33d;border-radius:12px;background:var(--bg,#0b1b28);color:var(--text,#e5edf2);font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;transition:border-color .16s ease,background-color .16s ease;transform:none}
#whatsapp-dialog .wa-sender-field select:focus-visible{outline:2px solid var(--gold,#d1b46c);outline-offset:3px}
#whatsapp-dialog .wa-sender-field small{font-size:11px;line-height:1.5;font-weight:400;color:var(--muted,#a3b6c5)}
@media(prefers-reduced-motion:reduce){#whatsapp-dialog .wa-sender-field select{transition:none}}
.wa-scheduled-feedback{position:fixed;z-index:20000;bottom:24px;left:50%;translate:-50% 0;width:min(440px,calc(100vw - 24px));pointer-events:none}
.wa-scheduled-spoken{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wa-scheduled-visual{min-height:72px;border-radius:22px;color:var(--text,#f0f5f8);font-weight:600}
/* Compact approach: keep account and actions together without a tall stack. */
#whatsapp-dialog:has(.wa-approach-toolbar){width:1040px;padding:24px;max-height:calc(100dvh - 32px)}
#whatsapp-dialog:has(.wa-approach-toolbar) .dialog-heading{margin-bottom:18px}
#whatsapp-dialog:has(.wa-approach-toolbar) .approach-layout{grid-template-columns:minmax(185px,.65fr) minmax(0,1.35fr);gap:18px;align-items:start}
#whatsapp-dialog:has(.wa-approach-toolbar) .message-preview{padding:16px;min-width:0}
#whatsapp-dialog:has(.wa-approach-toolbar) #whatsapp-message{min-height:150px;height:clamp(150px,28dvh,250px);max-height:32dvh;resize:vertical;font-size:13px;line-height:1.55}
#whatsapp-dialog:has(.wa-approach-toolbar) .message-preview-foot{margin:4px 0 10px}
#whatsapp-dialog .wa-approach-toolbar{position:sticky;bottom:0;display:grid;gap:10px;padding-top:12px;border-top:1px solid var(--glass-border,var(--line));background:var(--glass-inset,var(--panel));border-radius:0 0 12px 12px}
#whatsapp-dialog .wa-approach-toolbar .wa-sender-field{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;padding:0;margin:0;border:0;background:none}
#whatsapp-dialog .wa-approach-toolbar .wa-sender-field select{min-height:40px;padding:8px 12px;font-size:12px}
#whatsapp-dialog .wa-approach-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#whatsapp-dialog .wa-approach-actions :is(a,button){display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;min-width:0;min-height:42px;margin:0;padding:10px 8px;border-radius:12px;font-size:12px;font-weight:600;line-height:1.25;text-align:center;text-decoration:none;box-sizing:border-box;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
#whatsapp-dialog .wa-approach-actions .wa-personal-action{border:1px solid var(--glass-border,var(--line));background:var(--glass-inset,var(--surface-muted));color:var(--glass-text,var(--text));box-shadow:inset 0 1px 0 #ffffff08}
#whatsapp-dialog .wa-approach-actions svg{width:16px;height:16px;flex:none}
#whatsapp-dialog .wa-approach-actions :is(a,button):focus-visible{outline:2px solid var(--gold,#d1b46c);outline-offset:3px}
#whatsapp-dialog .wa-approach-note{font-size:10px;line-height:1.4;color:var(--muted);margin:0}
@media(max-width:700px){#whatsapp-dialog:has(.wa-approach-toolbar){padding:16px;max-height:calc(100dvh - 20px)}#whatsapp-dialog:has(.wa-approach-toolbar) .approach-layout{grid-template-columns:1fr;gap:12px}#whatsapp-dialog:has(.wa-approach-toolbar) .approach-options{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}#whatsapp-dialog:has(.wa-approach-toolbar) .approach-option{min-width:150px;flex:0 0 150px;padding:10px}#whatsapp-dialog:has(.wa-approach-toolbar) .approach-option small{display:none}#whatsapp-dialog:has(.wa-approach-toolbar) #whatsapp-message{height:180px;max-height:28dvh}#whatsapp-dialog .wa-approach-actions :is(a,button){font-size:11px;padding:9px 5px;gap:4px}}
@media(prefers-reduced-motion:reduce){#whatsapp-dialog .wa-approach-actions :is(a,button){transition:none}}
/* Quiet, compact scheduled outreach controls. State always comes from the server. */
.wa-automation{padding:20px;margin:16px 0;border:1px solid #8296a326;border-radius:22px;background:var(--panel,#102334);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;max-width:940px;color:var(--text,#e5edf2)}
.wa-automation .wa-auto-header{align-items:center;gap:12px;margin-bottom:18px}.wa-automation h2{font-size:18px;line-height:1.3;letter-spacing:-.45px;margin:0;font-weight:650}.wa-automation [data-auto-summary]{margin:5px 0 0;font-size:12px;color:var(--muted,#9fb2bf)}
.wa-auto-state-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.wa-automation [data-auto-status]{--state:#96a5b3;display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:600;color:var(--state);padding:6px 9px;border-radius:99px;background:color-mix(in srgb,var(--state) 10%,transparent);white-space:nowrap}
.wa-automation [data-auto-status]::before{content:"";width:6px;height:6px;flex-shrink:0;border-radius:50%;background:var(--state)}
.wa-automation [data-auto-status][data-state="active"]{--state:#36bd8a}.wa-automation [data-auto-status][data-state="paused"]{--state:#ee8e8e}
.wa-automation [data-auto-status][data-state="active"]::before{animation:wa-queue-active 2.6s ease-in-out infinite}.wa-automation [data-auto-status][data-state="paused"]::before{animation:wa-queue-paused 3.4s ease-in-out infinite}
@keyframes wa-queue-active{0%,100%{box-shadow:0 0 0 0 #36bd8a00}50%{box-shadow:0 0 0 5px #36bd8a20}}
@keyframes wa-queue-paused{0%,100%{opacity:1}50%{opacity:.5}}
.wa-automation button{min-height:34px;min-width:0;border-radius:11px;padding:7px 12px;font-size:12px;line-height:1.3;box-shadow:none;white-space:nowrap;transition:background .18s,color .18s,transform .15s}.wa-automation button:active{transform:scale(.97)}.wa-automation [data-auto-pause]{border:1px solid #8296a32d;background:transparent;color:inherit}.wa-automation [data-auto-pause]:disabled{display:none}
.wa-automation [data-auto-settings]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-block:1px solid #8296a321}
.wa-automation .wa-auto-enable{position:relative;font-size:12px;gap:9px;cursor:pointer;flex-shrink:0}.wa-automation .wa-auto-enable input{position:absolute;opacity:0;width:38px;height:24px;left:0;top:0;margin:0;cursor:pointer}.wa-auto-switch{display:block;width:36px;height:22px;border-radius:20px;background:#7c8e9f60;transition:background .2s;pointer-events:none}.wa-auto-switch::after{content:"";display:block;width:18px;height:18px;margin:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .22s cubic-bezier(.2,.8,.2,1)}.wa-auto-enable input:checked+.wa-auto-switch{background:#299d78}.wa-auto-enable input:checked+.wa-auto-switch::after{transform:translateX(14px)}.wa-auto-enable input:focus-visible+.wa-auto-switch{outline:2px solid #d6bb78;outline-offset:3px}
.wa-automation .wa-auto-controls{display:flex;gap:10px;align-items:end;margin:0}.wa-automation .wa-auto-controls label{font-size:10px;color:var(--muted,#9fb2bf);gap:5px;width:100px;max-width:none}.wa-automation .wa-auto-controls input{height:34px;min-height:34px;padding:7px 10px;font-size:12px;border:1px solid #8296a32b;border-radius:10px;box-shadow:none;background:var(--bg,#0c1c29);color:var(--text,#e5edf2)}.wa-auto-input-wrap{position:relative}.wa-auto-input-wrap input{padding-right:35px!important}.wa-auto-input-wrap>span{position:absolute;right:12px;top:10px;font-size:10px;pointer-events:none}.wa-automation .wa-auto-controls button{height:34px}
.wa-automation [data-auto-warning]{font-size:11px;line-height:1.5;color:#eb9999;background:#d9717110;border-radius:10px;padding:9px 11px;margin:12px 0}.wa-automation [hidden]{display:none!important}
.wa-auto-list-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 6px}.wa-auto-list-heading h3{font-size:12px;font-weight:600;margin:0;letter-spacing:-.1px}.wa-automation [data-auto-more]{padding:4px 6px;min-height:28px;font-size:11px;background:transparent;border:0;color:var(--muted,#9fb2bf)}
.wa-automation .wa-auto-search{width:100%;max-width:320px;min-height:38px;margin:4px 0 8px;padding:8px 12px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(255,255,255,.05);color:inherit;outline-color:var(--accent,#dfb65a)}
.lead-stage-inline{display:inline-flex;vertical-align:middle;margin-left:8px}
.wa-automation [data-auto-jobs]{max-height:256px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#8296a344 transparent;overscroll-behavior:contain}.wa-automation [data-auto-jobs][data-expanded="true"]{max-height:330px}.wa-automation .wa-auto-job{padding:6px 0;gap:12px;border-top:1px solid #8296a31b;min-height:44px}.wa-auto-job>div{min-width:0;flex:1}.wa-automation .wa-auto-job strong{display:block;font-size:11px;line-height:1.4;font-weight:550;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.wa-automation .wa-auto-job p{font-size:10px;line-height:1.4;margin:3px 0 0;color:var(--muted,#9fb2bf)}.wa-automation .wa-auto-job button{font-size:10px;min-height:28px;padding:5px 8px;color:var(--muted,#9fb2bf);background:transparent;border:1px solid #8296a326}.wa-automation .wa-auto-job[data-status="failed"]>div>p{color:#e99a9a}.wa-automation .wa-auto-empty{font-size:12px;color:var(--muted,#9fb2bf);padding:16px 0;margin:0}
.wa-auto-details{margin-top:12px;padding-top:10px;border-top:1px solid #8296a321;color:var(--muted,#9fb2bf);font-size:11px}.wa-auto-details summary,.wa-auto-job-error summary{cursor:pointer;width:fit-content;border-radius:6px}.wa-auto-details p{font-size:11px;line-height:1.6;max-width:680px;margin:10px 0 0}.wa-auto-job-error{font-size:10px;margin-top:4px;color:#e99a9a}.wa-auto-job-error p{white-space:normal!important}.wa-automation [data-auto-feedback]{font-size:11px;line-height:1.5;margin:12px 0 0;color:var(--muted,#9fb2bf)}.wa-automation [data-auto-feedback]:empty{display:none}
[data-theme="light"] .wa-automation [data-auto-status][data-state="active"]{--state:#147a55}[data-theme="light"] .wa-automation [data-auto-status][data-state="paused"],[data-theme="light"] .wa-automation [data-auto-warning],[data-theme="light"] .wa-auto-job-error{color:#b44545;--state:#b44545}
@media(max-width:1000px){.wa-automation [data-auto-settings]{align-items:flex-start;flex-direction:column}.wa-automation .wa-auto-controls{width:100%}.wa-automation .wa-auto-controls label{flex:1;width:auto}}
@media(max-width:520px){.wa-automation{padding:16px;border-radius:18px}.wa-automation .wa-auto-header{flex-direction:row;align-items:flex-start}.wa-auto-state-actions{gap:5px;flex-wrap:wrap;justify-content:flex-end}.wa-automation .wa-auto-controls{gap:7px}.wa-automation .wa-auto-controls label{min-width:0}.wa-automation h2{font-size:16px}.wa-automation .wa-auto-job{align-items:center}}
@media(prefers-reduced-motion:reduce){.wa-automation *,.wa-automation *::before,.wa-automation *::after{animation:none!important;transition:none!important}}
/* Match native CRM button rules without inheriting oversized touch rows. */
.wa-automation button{min-height:34px!important;padding:7px 12px!important;font-size:12px!important}.wa-automation [data-auto-more]{min-height:28px!important;padding:4px 6px!important;font-size:11px!important}.wa-automation .wa-auto-job button{min-height:28px!important;padding:5px 8px!important;font-size:10px!important}
@media(min-width:761px) and (max-width:1000px){.wa-automation [data-auto-settings]{flex-direction:row;align-items:center}.wa-automation .wa-auto-controls{width:auto}.wa-automation .wa-auto-controls label{width:100px;flex:none}}
/* One workspace, three compact destinations; no secondary panels below the chat. */
.wa-section-tabs{display:flex;align-items:center;gap:4px;width:fit-content;max-width:100%;padding:4px;margin:0 0 10px;border:1px solid #a5bed02b;border-radius:15px;background:linear-gradient(135deg,#aac3d012,#aac3d003),var(--panel,#102334);box-shadow:inset 0 1px 0 #ffffff08;backdrop-filter:blur(18px);overflow-x:auto;scrollbar-width:none}
.wa-section-tabs [role="tab"]{min-height:34px!important;padding:8px 13px!important;border:0!important;border-radius:11px!important;box-shadow:none!important;background:transparent!important;color:var(--muted,#9fb2bf)!important;font:550 12px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;white-space:nowrap;transform:none!important;transition:background .18s,color .18s}
.wa-section-tabs [role="tab"][aria-selected="true"]{background:#b9d0e518!important;color:var(--text,#e5edf2)!important;box-shadow:0 2px 8px #0002,inset 0 1px 0 #ffffff0a!important}.wa-section-tabs [role="tab"]:focus-visible{outline:2px solid var(--gold,#d1b46c);outline-offset:-2px}
#view>[role="tabpanel"][hidden]{display:none!important}#view>[data-wa-automation]>.wa-automation{margin:0;max-width:940px}#view>[data-wa-connections]>.wa-channels{margin:0;max-width:940px}
#view>.wa-section-tabs~[data-wa-messages-content]>.wa-inbox,#view>.wa-section-tabs~[data-wa-messages-content]>.wa-workspace-loading{height:calc(100dvh - 131px)}
[data-theme="light"] .wa-section-tabs [role="tab"][aria-selected="true"]{background:#fff!important;box-shadow:0 2px 7px #14334612!important}
@media(max-width:520px){.wa-section-tabs{width:100%;gap:2px}.wa-section-tabs [role="tab"]{padding:8px 10px!important;font-size:11px!important;flex:1}}
@media(prefers-reduced-motion:reduce){.wa-section-tabs [role="tab"]{transition:none}}
.wa-automation .wa-auto-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.wa-auto-column{min-width:0}.wa-delivered-column{padding:16px;border-radius:16px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);margin-top:16px}.wa-delivered-column h3{font-size:13px;margin:0;color:#6ad6af}.wa-delivered-caption{font-size:10px;color:var(--muted,#9fb2bf);margin:5px 0 10px}.wa-delivered-list{max-height:310px;overflow:auto;font-size:12px;color:var(--muted,#9fb2bf)}.wa-delivered-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid rgba(255,255,255,.07)}.wa-delivered-icon{color:#6ad6af;font-weight:700}.wa-delivered-row strong,.wa-delivered-row small{display:block}.wa-delivered-row strong{color:var(--text,#e5edf2);font-size:12px}.wa-delivered-row small{font-size:10px;margin-top:3px;overflow-wrap:anywhere}.wa-delivery-notice{position:fixed;right:24px;bottom:24px;z-index:9999;display:flex;gap:12px;align-items:center;padding:13px 17px;border-radius:18px;background:#102b38f2;color:#fff;border:1px solid #72dcb380;box-shadow:0 12px 35px #0006;animation:wa-delivery-arrive .4s ease-out both}.wa-delivery-check{color:#74e1b4;font-weight:800;font-size:19px}.wa-delivery-notice strong,.wa-delivery-notice small{display:block}.wa-delivery-notice small{margin-top:4px;color:#c1e9d9}@keyframes wa-delivery-arrive{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none}}@media(max-width:700px){.wa-automation .wa-auto-columns{grid-template-columns:1fr;gap:4px}.wa-delivered-column{margin-top:8px}.wa-delivery-notice{left:14px;right:14px;bottom:14px}}@media(prefers-reduced-motion:reduce){.wa-delivery-notice{animation:none}}

.wa-sent-notice{position:fixed;z-index:20000;right:20px;bottom:20px;width:min(380px,calc(100vw - 32px));pointer-events:none;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.wa-sent-notice-spoken{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wa-sent-notice-visual{position:relative;min-height:108px}.wa-sent-notice-fallback{display:grid;gap:4px;min-height:92px;box-sizing:border-box;padding:14px 16px;border-radius:19px;border:1px solid #d1b46c77;background:#102536;color:#eef4f8;box-shadow:0 12px 30px #0005}.wa-sent-notice-fallback[hidden]{display:none}.wa-sent-notice-fallback strong{font-size:15px}.wa-sent-notice-fallback span{font-size:12px;font-weight:600;color:#e5c877;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wa-sent-notice-fallback small{font-size:12px;color:#bbccd7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wa-sent-notice-player{position:absolute;inset:0}
@media(max-width:520px){.wa-sent-notice{right:16px;bottom:16px}}
.wa-sent-notice.wa-ad-lead-notice{top:68px;bottom:auto}
.wa-nav-unread.wa-nav-ads-unread{margin-left:auto;background:#f4ca71;color:#172435}
.wa-nav-ads-unread[hidden]{display:none}

.followup-panel{display:grid;gap:14px;padding:clamp(16px,2vw,24px);border:1px solid var(--line,rgba(190,207,227,.18));border-radius:22px;background:var(--surface,#0d2235);color:var(--text,#edf4fa)}
.followup-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.followup-header h2{margin:0;font-size:1.15rem;letter-spacing:-.02em}.followup-header p{margin:5px 0 0;color:var(--muted,#a9bdcd);font-size:.87rem}.followup-notice{max-width:300px;flex:1 1 260px}.followup-notice[hidden]{display:none}.followup-notice [data-followup-spoken]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.followup-notice [data-followup-animation]{min-height:52px;display:grid;align-items:center;color:#e7c76e;font-weight:600;font-size:.9rem}
.followup-search,.followup-template{display:grid;gap:6px;font-size:.85rem;font-weight:600;color:var(--muted,#b8c9d5)}.followup-search input,.followup-template select{width:100%;min-height:42px;padding:9px 12px;border:1px solid var(--line,rgba(190,207,227,.24));border-radius:12px;color:var(--text,#edf4fa);background:var(--surface,#102536);font:inherit}.followup-search input:focus-visible,.followup-template select:focus-visible,.followup-panel button:focus-visible{outline:2px solid #e7c76e;outline-offset:2px}.followup-result{margin:0;color:var(--muted,#a9bdcd);font-size:.82rem}.followup-list{display:grid;gap:4px;list-style:none;margin:0;padding:0}.followup-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.035)}.followup-row-info{display:grid;gap:4px;min-width:0}.followup-row-info strong{overflow-wrap:anywhere;font-size:.92rem}.followup-row-info span{color:var(--muted,#a9bdcd);font-size:.79rem}.followup-open,.followup-more{flex-shrink:0;min-height:38px;border-radius:12px}.followup-more{justify-self:start}.followup-error{margin:0;color:#ffb9af;font-size:.85rem}.followup-error:empty{display:none}
@media(max-width:520px){.followup-notice{max-width:100%}.followup-row{align-items:flex-start}.followup-open{white-space:nowrap}}

.followup-send-dialog{width:min(34rem,calc(100vw - 2rem));max-height:90dvh;overflow:auto;border:1px solid var(--line,#d6dde4);border-radius:18px;padding:24px;background:var(--surface,#fff);color:var(--text,#15232e);box-shadow:0 24px 80px #0004}.followup-send-dialog::backdrop{background:#10212b88}.followup-send-form{display:grid;gap:16px}.followup-send-form h2,.followup-send-form p{margin:0}.followup-send-form label{display:grid;gap:8px;font-weight:600}.followup-send-form textarea,.followup-send-form select{width:100%;font:inherit;border:1px solid var(--line,#bcc7d0);border-radius:10px;padding:12px;background:var(--surface,#fff);color:inherit;box-sizing:border-box}.followup-send-form label:has(input[type=checkbox]){display:flex;align-items:flex-start;gap:10px;font-weight:400}.followup-send-form>div{display:flex;flex-wrap:wrap;gap:10px}.followup-send-form [role=alert]{color:var(--danger,#a22128)}

.wa-history-archive.wa-inbox{display:grid;gap:14px;padding:6px 0}
.wa-history-archive .wa-control-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.wa-history-archive .wa-control-head h1{font-size:25px;margin:3px 0 8px;letter-spacing:-.6px}
.wa-history-archive .wa-control-head p{max-width:650px;margin:0;color:var(--wa-muted);font-size:12px;line-height:1.7}
.wa-history-archive .wa-control-head .messages-eyebrow{font-size:10px;letter-spacing:1.5px;color:var(--wa-gold)}
.wa-history-archive [data-archive-refresh]{color:var(--wa-text);background:var(--wa-bg);border:1px solid var(--wa-line)}
.wa-history-archive .wa-archive-search{display:grid;gap:6px;max-width:420px;font-size:11px;color:var(--wa-muted)}
.wa-history-archive .wa-archive-search input{width:100%;min-height:40px;padding:10px 12px;background:var(--wa-bg);border:1px solid var(--wa-line);border-radius:11px;color:var(--wa-text);font:inherit}
.wa-history-archive .wa-archive-history{display:flex;flex-direction:column;min-height:0}
.wa-history-archive .wa-archive-history .wa-timeline{display:flex;flex-direction:column;gap:12px;overflow:auto;min-height:0;flex:1}
.wa-history-archive .wa-archive-history .wa-chat-head{flex:none}
.wa-history-archive .wa-archive-origin{color:var(--wa-gold);font-size:10px}
.wa-history-archive .wa-bubble audio{display:block;max-width:100%;width:260px}
.wa-history-archive .wa-bubble img{display:block;max-width:min(280px,100%);max-height:300px;object-fit:contain;border-radius:10px}
.wa-history-archive .wa-bubble .wa-message-meta{margin-top:7px}
.wa-history-archive .wa-archive-note{font-size:11px;line-height:1.7;color:var(--wa-muted);margin:0;max-width:850px}
.wa-history-archive [data-archive-feedback]{font-size:12px;color:var(--wa-gold);margin:0}
.wa-history-archive [data-archive-feedback]:empty{display:none}
@media(max-width:650px){.wa-history-archive .wa-control-head{flex-wrap:wrap}.wa-history-archive.wa-inbox .wa-layout{display:grid;grid-template-columns:1fr;grid-template-rows:190px minmax(380px,1fr);height:calc(100dvh - 200px);min-height:650px;max-height:none}.wa-history-archive .wa-contacts{border-right:0;border-bottom:1px solid var(--wa-line)}.wa-history-archive .wa-archive-history .wa-chat-head{padding:14px}.wa-history-archive .wa-control-head h1{font-size:22px}.wa-history-archive .wa-archive-search{max-width:none}}
