.studio-wa-launch[hidden],.studio-wa-overlay [hidden]{display:none!important}.studio-wa-launch{width:100%;display:flex;align-items:center;gap:14px;padding:16px;margin:0 0 16px;border:1px solid #309f744f;border-radius:16px;background:#112b25;color:#c6f6e1;font-family:inherit;text-align:left;cursor:pointer;min-height:72px}.studio-wa-launch strong,.studio-wa-launch small{display:block}.studio-wa-launch strong{font-size:15px}.studio-wa-launch small{margin-top:4px;font-size:12px;color:#a0c7b9}.studio-wa-launch-icon{font-size:26px}.studio-wa-launch-arrow{margin-left:auto}.studio-wa-overlay{position:fixed;inset:0;z-index:2147482900;display:flex;flex-direction:column;background:#0b1118;color:#e7edf4;font:14px/1.5 system-ui,-apple-system,sans-serif;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);box-sizing:border-box}.studio-wa-open{overflow:hidden}.studio-wa-header{display:flex;align-items:center;gap:18px;padding:12px 20px;background:#131c27;border-bottom:1px solid #2a3542;flex:none}.studio-wa-header h2{margin:0;font-size:18px;font-weight:750}.studio-wa-header>div{min-width:0;flex:1}.studio-wa-source{max-width:230px;min-height:44px;background:#202c39;border:1px solid #394757;border-radius:12px;padding:8px;color:#e7edf4;font:inherit}.studio-wa-connection{font-size:12px;color:#a7b3c1}.studio-wa-connection[data-status=connected]{color:#8fe1b9}.studio-wa-connection[data-status=disconnected]{color:#ffb4bc}.studio-wa-connection[data-status=connecting]{color:#f2d38d}.studio-wa-layout{display:grid;grid-template-columns:340px minmax(0,1fr);flex:1;min-height:0}.studio-wa-sidebar{display:flex;flex-direction:column;min-height:0;border-right:1px solid #293444;background:#111923}.studio-wa-list-controls{padding:16px;flex:none;border-bottom:1px solid #293444}.studio-wa-search{box-sizing:border-box;width:100%;border:1px solid #364353;border-radius:12px;background:#1a2532;color:#f3f6fa;padding:12px;font:inherit;font-size:16px;line-height:1.4;min-height:46px}.studio-wa-search::placeholder{color:#a7b3c1}.studio-wa-list-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0}.studio-wa-count{font-size:12px;color:#a7b3c1}.studio-wa-secondary,.studio-wa-primary{font:600 13px/1.4 system-ui;min-height:44px;padding:10px 12px;border-radius:11px;border:1px solid #3a4a5d;background:#202d3b;color:#edf3fa;cursor:pointer}.studio-wa-primary{background:#187650;border-color:#35a879;color:#fff}.studio-wa-secondary:hover{background:#304051}.studio-wa-primary:hover{background:#218962}.studio-wa-overlay button:disabled{opacity:.55;cursor:default}.studio-wa-overlay button:focus-visible,.studio-wa-overlay input:focus-visible,.studio-wa-overlay textarea:focus-visible,.studio-wa-launch:focus-visible{outline:3px solid #8fe1b9;outline-offset:2px}.studio-wa-new{display:grid;gap:8px;margin-top:12px}.studio-wa-contacts{overflow-y:auto;min-height:0;flex:1}.studio-wa-contact{display:flex;align-items:center;gap:11px;width:100%;padding:15px 14px;min-height:78px;border:0;border-bottom:1px solid #24303d;background:transparent;color:#e7edf4;text-align:left;font:inherit;cursor:pointer}.studio-wa-contact:hover,.studio-wa-contact.is-selected{background:#20332f}.studio-wa-avatar{position:relative;display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;overflow:hidden;background:#304938;color:#b4eccf;font-size:13px;font-weight:700}.studio-wa-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.studio-wa-contact-copy{min-width:0;flex:1}.studio-wa-contact-copy strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:14px}.studio-wa-preview{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#acb9c8;margin-top:3px}.studio-wa-contact-meta{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:6px;font-size:10px;color:#95a6b9}.studio-wa-unread{border-radius:14px;padding:1px 6px;background:#74d9a4;color:#0b2417;font-size:11px}.studio-wa-more{margin:10px;flex:none}.studio-wa-thread-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;text-align:center;color:#9eafc2}.studio-wa-thread-empty h3{color:#d4e2ed;font-size:21px}.studio-wa-thread{display:flex;flex-direction:column;min-width:0;min-height:0;background:radial-gradient(ellipse at top,#142a2b,#0e1722 75%)}.studio-wa-chat-header{display:flex;align-items:center;gap:12px;flex:none;min-height:68px;padding:12px 20px;box-sizing:border-box;background:#172330;border-bottom:1px solid #2c3c4c}.studio-wa-chat-header>div{min-width:0}.studio-wa-chat-header h3{margin:0;color:#eef5fa;font-size:16px;overflow-wrap:anywhere}.studio-wa-chat-header p{margin:2px 0 0;color:#a4b5c5;font-size:12px}.studio-wa-back-chat{display:none}.studio-wa-older{align-self:center;margin:10px 0 0;flex:none}.studio-wa-messages{flex:1;min-height:0;overflow-y:auto;padding:20px 24px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;overscroll-behavior:contain}.studio-wa-message{max-width:min(82%,640px);min-width:90px;border-radius:12px 12px 12px 3px;padding:10px 13px;background:#263442;box-shadow:0 2px 5px #0003;box-sizing:border-box;flex:none;overflow-wrap:anywhere}.studio-wa-message.from-me{align-self:flex-end;background:#184d3c;border-radius:12px 12px 3px 12px}.studio-wa-message-text{margin:0;white-space:pre-wrap;font-size:14px;line-height:1.55}.studio-wa-message-time{display:block;margin-top:5px;font-size:10px;color:#bac9d5;text-align:right}.studio-wa-media-button,.studio-wa-download{display:block;border:1px solid #7ca49166;background:#11231d44;border-radius:10px;padding:10px;color:#b8f0d5;margin:8px 0;min-height:44px;font:600 13px system-ui;cursor:pointer}.studio-wa-media{display:block;max-width:100%;max-height:360px;border-radius:8px;margin-top:8px}.studio-wa-composer{flex:none;background:#172330;border-top:1px solid #304153;padding:12px 18px}.studio-wa-compose-row{display:flex;align-items:flex-end;gap:10px}.studio-wa-input{resize:none;box-sizing:border-box;flex:1;min-width:0;max-height:180px;padding:10px 12px;background:#263543;color:#f3f7fa;border:1px solid #425467;border-radius:12px;font:16px/1.45 system-ui;min-height:48px}.studio-wa-input::placeholder{color:#b3c0ce}.studio-wa-attach{flex:none;min-width:44px;height:46px;border-radius:12px;border:1px solid #415466;background:#253748;color:#d5e5ef;font-size:24px;cursor:pointer}.studio-wa-composer-hint{font-size:10px;color:#aabaca;line-height:1.4;margin:7px 0 0}.studio-wa-attachment{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:0 0 10px;color:#c8e9dc;font-size:12px;overflow-wrap:anywhere}.studio-wa-notice{flex:none;background:#513728;color:#ffe4c0;font-size:13px;padding:10px 18px;margin:0;overflow-wrap:anywhere}.studio-wa-empty{margin:20px;color:#a6b7c9;font-size:13px;line-height:1.6}
@media(max-width:639px){.studio-wa-header{gap:8px;padding:8px 10px;flex-wrap:wrap}.studio-wa-header h2{font-size:15px}.studio-wa-header .studio-wa-secondary{font-size:11px;padding:8px}.studio-wa-source{max-width:100%;width:100%;min-height:44px;font-size:12px;padding:6px}.studio-wa-layout{display:flex;flex-direction:column}.studio-wa-sidebar{flex:1;border:0}.studio-wa-thread-empty{display:none}.studio-wa-thread{flex:1;min-height:0}.studio-wa-layout.has-conversation .studio-wa-sidebar{display:none}.studio-wa-back-chat{display:block;flex:none;font-size:11px;padding:8px}.studio-wa-chat-header{padding:9px 10px;min-height:62px}.studio-wa-chat-header h3{font-size:14px}.studio-wa-list-controls{padding:12px}.studio-wa-messages{padding:14px 10px;gap:8px}.studio-wa-message{max-width:88%;padding:9px 11px}.studio-wa-composer{padding:10px}.studio-wa-compose-row{gap:7px}.studio-wa-compose-row>.studio-wa-primary{font-size:12px;max-width:72px;padding:10px}.studio-wa-message-text{font-size:14px}.studio-wa-composer-hint{font-size:10px}}

/* Keep native iOS selects legible inside the dark Studio shell. */
.studio-wa-overlay .studio-wa-source{appearance:none;-webkit-appearance:none;background:#202c39!important;color:#e7edf4!important;-webkit-text-fill-color:#e7edf4;opacity:1;padding-right:24px;color-scheme:dark}

/* Conversation-first layout. Scoped to this inbox; native sending is unchanged. */
.studio-wa-overlay{background:#0b141a;color:#e9edef;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:dark}
.studio-wa-overlay *{box-sizing:border-box}
.studio-wa-header{background:#202c33;gap:12px;padding:8px 16px;border-bottom:1px solid #ffffff0d}
.studio-wa-header h2{font-size:20px;font-weight:650;letter-spacing:-.3px}
.studio-wa-header .studio-wa-source{background:#202c33!important;border:0;border-radius:8px;min-height:38px;font-size:13px;padding:6px 12px;color:#aebac1!important;-webkit-text-fill-color:#aebac1}
.studio-wa-connection{font-size:11px;color:#8696a0}.studio-wa-connection[data-status=connected]{color:#25d366}
.studio-wa-icon-button,.studio-wa-back-chat{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:50%;background:transparent;color:#aebac1}
.studio-wa-overlay svg{display:block;width:24px;height:24px;flex:none;pointer-events:none}
.studio-wa-layout{grid-template-columns:minmax(300px,360px) minmax(0,1fr)}
.studio-wa-sidebar{background:#111b21;border-right:1px solid #ffffff12}
.studio-wa-list-controls{padding:10px 12px 6px;border-bottom:0}
.studio-wa-search{min-height:40px;padding:8px 14px;border:0;border-radius:10px;background:#202c33;font-size:16px;color:#e9edef}
.studio-wa-search::placeholder{color:#8696a0}.studio-wa-list-actions{margin:4px 0 0;gap:4px;min-height:44px}.studio-wa-count{flex:1;font-size:12px;color:#8696a0;padding-left:4px}
.studio-wa-new-chat{color:#25d366}.studio-wa-contact{min-height:78px;padding:10px 16px;gap:12px;position:relative;border-bottom:0}
.studio-wa-contact:after{content:"";position:absolute;left:76px;right:0;bottom:0;height:1px;background:#ffffff0a}
.studio-wa-contact:hover,.studio-wa-contact.is-selected{background:#202c33}
.studio-wa-avatar{width:48px;height:48px;background:#34474b;color:#d0ddd9;font-size:16px;font-weight:500}
.studio-wa-contact-copy strong{font-size:16px;line-height:1.5;font-weight:550;color:#e9edef}.studio-wa-preview{font-size:14px;line-height:1.4;color:#8696a0;margin-top:3px}
.studio-wa-contact-meta{align-self:stretch;justify-content:center;gap:7px;font-size:11px;color:#8696a0;max-width:72px}.studio-wa-unread{min-width:20px;height:20px;display:grid;place-items:center;padding:0 5px;background:#25d366;color:#111b21;font-size:11px;font-weight:650}
.studio-wa-thread{background-color:#0b141a;background-image:radial-gradient(#ffffff05 1px,transparent 1px);background-size:22px 22px}
.studio-wa-chat-header{background:#202c33;padding:8px 16px;gap:10px;min-height:64px;border-bottom:0}.studio-wa-chat-avatar{width:40px;height:40px;font-size:13px}
.studio-wa-chat-header h3{font-size:16px;font-weight:550;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.studio-wa-chat-header p{font-size:12px;color:#8696a0;margin-top:0}
.studio-wa-chat-header>div{flex:1}.studio-wa-back-chat{display:none}
.studio-wa-messages{padding:16px clamp(14px,5vw,72px);gap:6px;scrollbar-width:thin;scrollbar-color:#374248 transparent}
.studio-wa-message{background:#202c33;padding:7px 10px 5px;border-radius:8px;box-shadow:0 1px 1px #0004;max-width:min(78%,620px);min-width:76px}
.studio-wa-message.from-me{background:#005c4b;border-radius:8px}.studio-wa-message-text{font-size:15px;line-height:1.45;color:#e9edef}.studio-wa-message-text:empty{display:none}.studio-wa-message-time{font-size:10px;line-height:1.3;color:#a7b9be;margin-top:3px}
.studio-wa-date{align-self:center;flex:none;border-radius:7px;padding:4px 10px;margin:10px 0;background:#18252d;color:#aebac1;font-size:11px;box-shadow:0 1px 2px #0003}
.studio-wa-composer{padding:8px 12px;background:#202c33;border-top:0}.studio-wa-compose-row{align-items:flex-end;gap:8px}.studio-wa-input{background:#2a3942;border:0;border-radius:22px;min-height:44px;max-height:128px;padding:11px 16px;line-height:22px;font-size:16px;overflow-y:auto;color:#e9edef}
.studio-wa-input::placeholder{color:#8696a0}.studio-wa-attach{width:44px;height:44px;min-width:44px;display:grid;place-items:center;padding:10px;background:transparent;border:0;color:#aebac1;border-radius:50%}
.studio-wa-compose-row>.studio-wa-primary{width:44px;height:44px;min-width:44px;max-width:44px;min-height:44px;display:grid;place-items:center;border:0;border-radius:50%;padding:10px;background:#00a884;color:#fff}
.studio-wa-compose-row>.studio-wa-primary:hover{background:#06b893}.studio-wa-composer-hint{color:#ffcf8a;font-size:12px;margin:8px 4px 0}
.studio-wa-thread-empty{background:#0b141a;color:#8696a0}.studio-wa-thread-empty h3{color:#e9edef;font-weight:450}.studio-wa-more,.studio-wa-older{background:#202c33;border:0;color:#00a884;font-size:12px}.studio-wa-overlay button:focus-visible,.studio-wa-overlay select:focus-visible{outline:2px solid #25d366;outline-offset:-2px}
.studio-wa-media{max-width:100%}.studio-wa-overlay audio{width:260px}.studio-wa-attachment{padding:4px 0 10px}.studio-wa-attachment span{min-width:0}.studio-wa-overlay .studio-wa-icon-button:hover,.studio-wa-attach:hover,.studio-wa-back-chat:hover{background:#ffffff0a}
@media(max-width:639px){
 .studio-wa-header{display:grid;grid-template-columns:44px minmax(0,1fr);gap:0 8px;padding:6px 12px;background:#111b21}
 .studio-wa-header>button{grid-row:1/3}.studio-wa-header>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.studio-wa-header h2{font-size:21px;line-height:30px}.studio-wa-header .studio-wa-source{grid-column:2;width:100%;max-width:100%;min-height:28px;line-height:20px;padding:0;font-size:12px;background:transparent!important}
 .studio-wa-header .studio-wa-secondary{padding:10px}.studio-wa-list-controls{padding:6px 12px 2px}.studio-wa-list-actions{margin-top:2px}.studio-wa-layout{display:flex}.studio-wa-contact{padding:10px 14px;min-height:78px}.studio-wa-contact-copy strong{font-size:16px}.studio-wa-contact-meta{font-size:11px}
 .studio-wa-overlay.in-chat>.studio-wa-header{display:none}.studio-wa-chat-header{padding:6px 10px 6px 4px;gap:6px;min-height:60px}.studio-wa-back-chat{display:inline-flex;padding:10px;width:44px;height:44px}.studio-wa-chat-header h3{font-size:16px}.studio-wa-chat-header p{font-size:11px}.studio-wa-chat-avatar{margin-right:4px}
 .studio-wa-messages{padding:10px 12px;gap:5px}.studio-wa-message{max-width:86%;padding:7px 9px 5px}.studio-wa-message-text{font-size:15px}.studio-wa-composer{padding:7px 8px}.studio-wa-compose-row{gap:4px}.studio-wa-input{padding:11px 13px}.studio-wa-compose-row>.studio-wa-primary{padding:10px}.studio-wa-date{margin:8px 0}
}
@media(prefers-reduced-motion:reduce){.studio-wa-overlay *{scroll-behavior:auto!important}}

/* Refined mobile inbox: quiet hierarchy, grouped controls and visible loading. */
.studio-wa-overlay{background:#0d1015;color:#f1f3f6}
.studio-wa-header{background:#0d1015;border:0;padding:18px 20px 12px;gap:14px;display:flex;flex-wrap:nowrap}
.studio-wa-header>.studio-wa-heading{display:block;flex:1;min-width:0}
.studio-wa-eyebrow{display:block;color:#87919f;font-size:10px;line-height:16px;letter-spacing:1.8px;font-weight:600}
.studio-wa-header h2{font-size:27px;line-height:34px;letter-spacing:-.8px;font-weight:700;margin:0;color:#f1f3f6}
.studio-wa-header>.studio-wa-icon-button{background:#1b2028;color:#c3ccd5;border:1px solid #ffffff0a;border-radius:15px}
.studio-wa-header>.studio-wa-new-chat{background:#b9f4ce;color:#103c29;border:0;border-radius:15px}
.studio-wa-header>.studio-wa-new-chat:hover{background:#d0f9dd}
.studio-wa-header>.studio-wa-icon-button:hover{background:#29313b}
.studio-wa-sidebar{background:#0d1015;border-right:1px solid #ffffff0b}
.studio-wa-list-controls{padding:0 16px 6px}
.studio-wa-account{display:flex;align-items:center;gap:8px;min-height:42px;padding:6px 2px 12px;margin-bottom:6px;border-bottom:1px solid #ffffff0b}
.studio-wa-overlay .studio-wa-account .studio-wa-source{min-width:0;max-width:100%;flex:1;width:auto;padding:4px 16px 4px 0;min-height:30px;border:0;border-radius:0;background:transparent!important;color:#b1bac5!important;-webkit-text-fill-color:#b1bac5;font-size:13px;line-height:20px}
.studio-wa-connection{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:10px;line-height:18px;color:#99a4af;flex:none}
.studio-wa-connection:before{content:"";width:5px;height:5px;flex:none;border-radius:50%;background:currentColor}
.studio-wa-connection[data-status=connected]{color:#86cfa0}
.studio-wa-search-row{display:flex;align-items:center;gap:8px}
.studio-wa-search{min-height:44px;height:44px;background:#1b2028;border:1px solid #ffffff06;border-radius:14px;font-size:16px;padding:10px 14px}
.studio-wa-search::placeholder{color:#778391}
.studio-wa-search-row>.studio-wa-icon-button{background:transparent;color:#85909c;width:44px;height:44px;border-radius:14px;padding:12px}
.studio-wa-search-row>.studio-wa-icon-button svg{width:20px;height:20px}
.studio-wa-list-actions{min-height:36px;margin:12px 2px 0;gap:10px;align-items:center}
.studio-wa-section-label{font-size:10px;letter-spacing:1.2px;font-weight:650;color:#909ba8}
.studio-wa-count{font-size:11px;flex:1;text-align:right;padding:0;color:#697685}
.studio-wa-contacts{padding:0 10px 14px}
.studio-wa-contact{border-radius:16px;padding:13px 8px;min-height:84px;gap:12px}
.studio-wa-contact:after{left:72px;right:8px;background:#ffffff08}
.studio-wa-contact:hover,.studio-wa-contact.is-selected{background:#1a2527}
.studio-wa-avatar{width:50px;height:50px;background:#273a35;color:#bfe5cf;font-size:17px}
.studio-wa-contact-copy strong{font-size:16px;font-weight:600;letter-spacing:-.15px;color:#edf0f4}
.studio-wa-preview{font-size:13px;line-height:20px;color:#86919f;margin-top:3px}
.studio-wa-contact-meta{font-size:10px;color:#6f7e8d;gap:9px}
.studio-wa-unread{background:#b9f4ce;color:#133d2b;min-width:19px;height:19px;font-size:10px}
.studio-wa-chat-header{background:#161d24;border-bottom:1px solid #ffffff06;padding:10px 14px}
.studio-wa-thread{background-color:#0d1418;background-image:radial-gradient(#ffffff04 1px,transparent 1px)}
.studio-wa-message{background:#232e37;border-radius:14px 14px 14px 4px;padding:9px 12px 6px}
.studio-wa-message.from-me{background:#164b3e;border-radius:14px 14px 4px 14px}
.studio-wa-composer{background:#141c22;padding:10px 12px}
.studio-wa-input{background:#25313a;border-radius:23px}
.studio-wa-compose-row>.studio-wa-primary{background:#b9f4ce;color:#133d2b}
.studio-wa-compose-row>.studio-wa-primary:hover{background:#d0f9dd}
.studio-wa-date{background:#1c272e;color:#84959f;border-radius:8px;font-size:10px;letter-spacing:.2px}
.studio-wa-skeleton{overflow:hidden;min-height:0;padding:0 18px}
.studio-wa-skeleton-row{height:84px;display:flex;align-items:center;gap:14px}
.studio-wa-skeleton-avatar{width:50px;height:50px;border-radius:50%;flex:none;background:#1b232a}
.studio-wa-skeleton-copy{flex:1;min-width:0}
.studio-wa-skeleton-copy i{display:block;height:10px;border-radius:5px;background:#1b232a;width:52%;margin:9px 0}
.studio-wa-skeleton-copy i+i{width:82%;height:8px;background:#171e25}
.studio-wa-skeleton-row:nth-child(2n) .studio-wa-skeleton-copy i:first-child{width:65%}
.studio-wa-skeleton-row:nth-child(n+4){opacity:.5}
.studio-wa-refresh[aria-busy=true]{opacity:.5}
.studio-wa-thread-empty{background:#10171d}
@media(max-width:639px){
 .studio-wa-header{padding:14px 16px 10px;gap:12px;display:flex;grid-template-columns:none}
 .studio-wa-header>.studio-wa-heading{display:block}.studio-wa-header h2{font-size:26px;line-height:32px}
 .studio-wa-header>.studio-wa-icon-button{width:44px;height:44px;padding:11px;grid-row:auto;flex:none}
 .studio-wa-list-controls{padding:0 16px 4px}.studio-wa-account{margin-bottom:10px;padding-bottom:10px;min-height:40px}
 .studio-wa-list-actions{margin-top:10px;min-height:32px}.studio-wa-contacts{padding:0 10px 10px}
 .studio-wa-contact{padding:12px 8px;min-height:82px}.studio-wa-contact-copy strong{font-size:16px}.studio-wa-contact-meta{font-size:10px}
 .studio-wa-chat-header{padding:8px 10px 8px 4px;min-height:64px}.studio-wa-chat-avatar{width:40px;height:40px;font-size:14px}
 .studio-wa-composer{padding:8px}.studio-wa-messages{padding:12px;gap:7px}.studio-wa-message{padding:8px 11px 6px;max-width:86%}
}
