.wa-integration-intro,.wa-settings,.wa-empty-setup{padding:26px;margin-bottom:22px}.wa-integration-intro h2{font-size:25px;margin:12px 0}.wa-integration-intro p,.wa-setup-help{color:var(--muted);font-size:13px}.wa-settings-title{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.wa-settings-title h2{display:flex;align-items:center;gap:10px;font-size:22px;margin:0}.wa-settings-title svg{width:28px;height:28px;color:#16835e}.wa-config-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.wa-settings .access-form{max-width:850px}.wa-checkbox{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px!important;font-size:12px!important;line-height:1.7}.wa-checkbox input{width:18px!important;height:18px;min-height:18px!important;flex-shrink:0;margin-top:4px}.wa-webhook{margin-top:24px;border-top:1px solid var(--line);padding-top:18px;max-width:850px;font-size:13px}.wa-webhook label{display:flex;flex-direction:column;gap:8px;margin:16px 0;font-size:12px}.wa-webhook input{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;font:inherit;background:var(--field,#fff);color:var(--ink)}.wa-connection-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.wa-danger{color:#a62d3b}.wa-setup-help{margin-top:25px;padding-top:18px;border-top:1px solid var(--line)}.wa-setup-help summary{cursor:pointer;min-height:40px;color:var(--ink)}.wa-setup-help li{padding:5px 0}.wa-setup-help a{color:var(--link,#1e5faf)}.wa-content .dash-welcome h1{font-size:28px}.wa-content .dash-welcome{margin-bottom:18px}.wa-content .dash-welcome p{font-size:12px}.wa-workspace{display:grid;grid-template-columns:310px minmax(0,1fr);min-height:610px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface,#fff)}.wa-conversations{border-right:1px solid var(--line);padding:18px 0;min-width:0}.wa-conversation-tools{display:flex;align-items:center;gap:8px;padding:0 16px 14px}.wa-conversation-tools h2{font-size:18px;margin:0 auto 0 0}.wa-conversation-tools .icon-button{min-width:36px;width:36px}.wa-conversation-tools .button{padding:9px 13px}.wa-search{display:flex;flex-direction:column;gap:8px;font-size:11px;color:var(--muted);padding:0 16px 14px}.wa-search input{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:9px;font:inherit;font-size:12px;background:var(--field,#f3f6fb);color:var(--ink)}.wa-conversations .access-form{padding:16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.wa-thread-list{max-height:calc(100vh - 360px);min-height:300px;overflow:auto}.wa-thread{display:flex;align-items:center;width:100%;padding:17px 14px;gap:10px;text-align:left;border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink);cursor:pointer}.wa-thread.selected{background:#e9f5f0}.wa-thread:hover{background:var(--surface-soft,#f3f6fb)}.wa-avatar{display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;border-radius:50%;background:#e3eeeb;color:#22664d;font-size:15px}.wa-thread-copy{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}.wa-thread-copy strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wa-thread-copy small{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wa-thread-meta{display:flex;flex-direction:column;align-items:flex-end;gap:7px;font-size:9px;color:var(--muted)}.wa-thread-meta b{display:flex;align-items:center;justify-content:center;border-radius:20px;min-width:20px;height:20px;background:#176d50;color:#fff;font-size:10px}.wa-conversations>#wa-more-threads{margin:14px}.wa-list-empty{padding:24px 18px;color:var(--muted);font-size:12px;line-height:1.8}.wa-chat{min-width:0;background:#f2f5f4}.wa-chat-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:580px;max-width:520px;padding:40px;margin:auto;text-align:center;color:var(--muted)}.wa-chat-empty svg{width:64px;height:64px;color:#238064}.wa-chat-empty h2{font-size:23px;color:var(--ink);margin:25px 0 12px}.wa-chat-empty p{font-size:13px;line-height:1.8}.wa-chat-header{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line);background:var(--surface,#fff)}.wa-chat-header h2{font-size:17px;margin:0;overflow-wrap:anywhere}.wa-chat-header p{font-size:11px;color:var(--muted);margin:5px 0 0}.wa-chat-header>#wa-back{display:none}.wa-window{font-size:10px;color:#3d5f50;background:#e5eee9;padding:10px 20px;margin:0}.wa-messages{height:420px;max-height:calc(100vh - 355px);min-height:250px;overflow:auto;padding:24px;display:flex;flex-direction:column;gap:16px;scroll-behavior:auto}.wa-message{background:var(--surface,#fff);border:1px solid #dbe5df;border-radius:3px 14px 14px 14px;padding:12px 14px;max-width:85%;align-self:flex-start;min-width:140px;box-shadow:0 2px 4px #12312605;overflow-wrap:anywhere}.wa-message.wa-out{align-self:flex-end;background:#e0f1e7;border-color:#bcdccc;border-radius:14px 3px 14px 14px}.wa-message-text{font-size:13px;line-height:1.8;white-space:pre-wrap;margin:0 0 8px}.wa-message footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 10px;font-size:9px;color:#546c60}.wa-delivery.wa-status-read{color:#175ea4;font-weight:600}.wa-delivery.wa-status-failed,.wa-delivery.wa-status-unknown{color:#a3333b}.wa-message-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:8px}.wa-message-actions button{border:0;background:transparent;color:#37604b;font-size:10px;padding:5px 0;cursor:pointer}.wa-quoted{border-left:3px solid #579b7d;background:#366b4210;font-size:11px;color:#3b6950;padding:8px;margin-bottom:9px}.wa-chat-media{display:block;max-width:100%;width:auto;max-height:300px;border-radius:9px;margin-bottom:10px;object-fit:contain}.wa-media-sticker{width:150px;height:150px;object-fit:contain;background:transparent}.wa-media-audio{width:270px;max-width:100%;height:45px}.wa-media-button{border:1px solid var(--line);background:transparent;color:var(--ink);padding:14px;border-radius:8px;min-height:44px;cursor:pointer}.wa-location{color:var(--link,#1e5faf);font-size:13px}.wa-contacts{font-size:12px}.wa-contacts p{white-space:pre-line;margin:5px 0 12px}.wa-compose-line{display:flex;gap:12px;align-items:flex-end}.wa-compose-line textarea{width:100%;resize:vertical;min-height:50px;max-height:180px;border:1px solid var(--line);padding:12px;border-radius:10px;background:var(--field,#fff);color:var(--ink);font:inherit;font-size:13px}.wa-composer{padding:14px 18px;background:var(--surface,#fff);border-top:1px solid var(--line)}.wa-composer-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.wa-composer-tools .button{font-size:10px;padding:8px 10px;min-height:36px;border-radius:8px}.wa-attach-label{position:relative;overflow:hidden;cursor:pointer}.wa-attach-label input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.wa-composer .auth-message{font-size:11px;line-height:1.7;min-height:0;margin:10px 0 0}.wa-compose-line .button{padding:13px 18px;min-height:46px;flex-shrink:0;background:#176d50;border-color:#176d50;color:#fff}.wa-reply,.wa-attachment{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 20px;border-top:1px solid var(--line);font-size:12px;background:var(--surface-soft,#eaf0ec)}.wa-reply button,.wa-attachment button{border:0;background:transparent;color:var(--ink);font-size:22px;cursor:pointer}.wa-templates,.wa-share{padding:10px 18px;background:var(--surface,#fff);border-top:1px solid var(--line);font-size:11px}.wa-templates summary,.wa-share summary{cursor:pointer;min-height:30px;display:list-item;list-style-position:inside;color:var(--ink)}.wa-templates .access-form,.wa-share .access-form{padding:16px 0;max-width:none}.wa-share [hidden]{display:none}.wa-emojis{display:flex;gap:7px;flex-wrap:wrap;padding:8px 0}.wa-emojis button{font-size:20px;min-height:36px;min-width:36px;border:1px solid var(--line);background:var(--surface,#fff);border-radius:8px;cursor:pointer}.wa-workspace [hidden]{display:none!important}.wa-connection-buttons .button:disabled,.wa-compose-line .button:disabled{opacity:.6}.wa-empty-setup h2{font-size:25px}.wa-empty-setup p{color:var(--muted);max-width:600px}.wa-chat>#wa-chat-active{height:100%}#wa-older{margin:10px 18px}.wa-settings .auth-message{font-size:12px;line-height:1.8}.wa-settings .client-help{max-width:850px}.wa-content .sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}html[data-portal-theme="dark"] .wa-thread.selected{background:#1e3b33}html[data-portal-theme="dark"] .wa-avatar{background:#25453b;color:#b9efcf}html[data-portal-theme="dark"] .wa-chat{background:#101f29}html[data-portal-theme="dark"] .wa-message{background:#1c2c3e;border-color:#34485a}html[data-portal-theme="dark"] .wa-message.wa-out{background:#1d4034;border-color:#3a6554}html[data-portal-theme="dark"] .wa-message footer{color:#b0c7bc}html[data-portal-theme="dark"] .wa-message-actions button{color:#bbe6ce}html[data-portal-theme="dark"] .wa-window{color:#bee5cf;background:#18362d}html[data-portal-theme="dark"] .wa-quoted{color:#b3dfc8;background:#315b4744}html[data-portal-theme="dark"] .wa-delivery.wa-status-read{color:#a1d1ff}html[data-portal-theme="dark"] .wa-delivery.wa-status-failed,html[data-portal-theme="dark"] .wa-delivery.wa-status-unknown,html[data-portal-theme="dark"] .wa-danger{color:#ffadb6}
@media(min-width:781px) and (max-width:1150px){.wa-workspace{grid-template-columns:255px minmax(0,1fr)}.wa-content{padding-left:20px!important;padding-right:20px!important}.wa-config-grid{grid-template-columns:1fr}}
@media(max-width:780px){.app-bottom-nav{grid-template-columns:repeat(var(--app-nav-columns,4),minmax(0,1fr))!important}.app-bottom-nav button{min-width:0}.app-bottom-nav button span{font-size:9px}.wa-config-grid{grid-template-columns:1fr}.wa-integration-intro,.wa-settings,.wa-empty-setup{padding:20px}.wa-content{padding-left:12px!important;padding-right:12px!important}.wa-content .dash-welcome{align-items:center;gap:10px}.wa-content .dash-welcome h1{font-size:26px}.wa-content .dash-welcome .button{padding:10px;font-size:11px}.wa-content .dash-welcome p{font-size:10px}.wa-content .dash-welcome .eyebrow{display:none}.wa-workspace{display:block;min-height:580px}.wa-conversations{border-right:0}.wa-chat{display:none}.wa-has-selection .wa-conversations{display:none}.wa-has-selection .wa-chat{display:block}.wa-chat-header>#wa-back{display:inline-flex;font-size:10px;padding:8px}.wa-chat-header{padding:14px 12px}.wa-chat-header h2{font-size:14px}.wa-thread-list{min-height:330px;max-height:calc(100vh - 320px)}.wa-messages{padding:15px 10px;height:380px;max-height:none;min-height:240px}.wa-message{max-width:92%;padding:10px 12px}.wa-message-text{font-size:12px}.wa-composer{padding:12px}.wa-compose-line{gap:8px}.wa-compose-line .button{padding:12px;font-size:11px}.wa-composer-tools{gap:6px}.wa-composer-tools .button{min-height:40px;padding:8px;font-size:9px}.wa-templates,.wa-share{padding:10px 12px}.wa-window{padding:9px 12px;font-size:9px}.wa-integration-intro h2,.wa-settings-title h2{font-size:22px}.wa-connection-buttons{flex-direction:column;align-items:stretch}.wa-connection-buttons .button{width:100%}.wa-setup-help{font-size:12px}.wa-content .dash-welcome>div{min-width:0}.wa-content .dash-welcome p{overflow-wrap:anywhere}.wa-chat-media{max-height:230px}.wa-emojis button{min-height:40px;min-width:40px}}

/* Keep the composer within the conversation while the history scrolls. */
.wa-message{flex-shrink:0}.wa-content h2{letter-spacing:-.02em}.wa-chat{min-height:0}.wa-chat>#wa-chat-active{display:flex;flex-direction:column;min-height:0;overflow:auto}.wa-chat-header,.wa-window,.wa-composer,.wa-templates,.wa-share,.wa-reply,.wa-attachment{flex-shrink:0}.wa-messages{flex:1 1 auto;min-height:140px;height:auto;max-height:none}.wa-workspace{height:calc(100dvh - 215px);min-height:510px}.wa-thread-list{max-height:calc(100dvh - 350px)}.wa-chat-empty{height:100%;min-height:0}.wa-thread-meta{flex-shrink:0}
@media(max-width:780px){.wa-workspace{height:calc(100dvh - 230px);min-height:560px}.wa-has-selection .wa-chat{height:100%}.wa-messages{height:auto;min-height:150px}.wa-thread-list{max-height:calc(100dvh - 350px)}.wa-chat-empty{min-height:500px}}
