.pwa-toggle{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin:0 6px;padding:5px 9px;border:1px solid currentColor;border-radius:7px;background:transparent;color:var(--text,#dce9ee);cursor:pointer;font-size:15px}.pwa-shell[open]{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;padding:0;background:#101b20;color:#e7eef1;display:flex;flex-direction:column;overflow:hidden}.pwa-shell::backdrop,.pwa-gate::backdrop{background:#000a}.pwa-gate{background:#17262d;color:#eef4f7;border:1px solid #43535b;border-radius:14px;padding:24px;width:min(370px,92vw)}.pwa-gate-form{display:grid;gap:14px}.pwa-gate h2{margin:0;font-size:20px}.pwa-bar{height:64px;flex-shrink:0;padding:12px 20px;background:#17262d;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #34434b}.pwa-logo{width:116px;max-height:40px;object-fit:contain}.pwa-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pwa-button{border:1px solid #50636b;border-radius:8px;background:#263b43;color:#f4f8fa;padding:9px 12px;cursor:pointer;font:inherit}.pwa-button:disabled{opacity:.5;cursor:default}.pwa-danger{color:#ffc7c7;border-color:#9b5555}.pwa-body{display:grid;grid-template-columns:minmax(200px,30%) minmax(0,1fr);flex:1;min-height:0}.pwa-left{display:flex;flex-direction:column;gap:10px;padding:14px;background:#17262d;min-width:0;border-right:1px solid #34434b}.pwa-list{overflow:auto;flex:1}.pwa-chat{display:grid;gap:4px;position:relative;text-align:left;padding:13px 8px;border:0;border-bottom:1px solid #34434b;width:100%;color:#eef4f7;background:transparent;cursor:pointer;font:inherit}.pwa-chat strong,.pwa-preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.pwa-preview{font-size:12px;color:#becdd4}.pwa-count{color:#7de4c0}.pwa-selected,.pwa-chat:hover{background:#2b424c}.pwa-main{display:flex;min-width:0;min-height:0;flex-direction:column;background:#111e24}.pwa-title{padding:14px 20px;background:#17262d;border-bottom:1px solid #34434b;margin:0;font-size:17px}.pwa-messages{flex:1;overflow:auto;display:flex;flex-direction:column;gap:9px;padding:20px;min-height:0}.pwa-message{padding:9px 12px;border-radius:10px;max-width:80%;min-width:72px;overflow-wrap:anywhere;color:#f0f7f5}.pwa-in{background:#263941;align-self:flex-start}.pwa-out{background:#075e4e;align-self:flex-end}.pwa-time{display:block;font-size:10px;text-align:right;color:#c6d9d7;margin-top:4px}.pwa-text{white-space:pre-wrap}.pwa-sender{display:block;color:#9ee9cf;font-size:12px}.pwa-compose{padding:12px;display:flex;gap:8px;align-items:center;background:#17262d}.pwa-input{min-width:0;padding:10px;border:1px solid #52656e;background:#23363e;color:#f0f7fa;border-radius:8px;font:inherit}.pwa-compose textarea{flex:1;resize:vertical;max-height:120px}.pwa-file{width:110px;color:#eef4f7;font-size:12px}.pwa-status{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;min-height:80px;padding:20px;text-align:center}.pwa-qr{width:min(300px,80vw);height:auto;background:white;border-radius:8px}.pwa-error{color:#ffb9b9;min-height:1em;margin:0}.pwa-instructions{margin:0;color:#e3eef2}.pwa-media{color:#e2fff4;background:transparent;border:1px solid currentColor;border-radius:5px;padding:6px;cursor:pointer}.pwa-shell [hidden],.pwa-gate [hidden]{display:none!important}.pwa-shell:not([open]),.pwa-gate:not([open]){display:none!important}@media(max-width:640px){.pwa-body{grid-template-columns:38% minmax(0,1fr)}.pwa-left{padding:6px}.pwa-messages{padding:8px}.pwa-compose{flex-wrap:wrap;padding:6px}.pwa-file{width:75px}.pwa-message{max-width:94%}.pwa-bar{padding:8px}.pwa-logo{width:80px}.pwa-actions{gap:4px}.pwa-button{padding:7px;font-size:12px}.pwa-title{padding:10px;font-size:14px}}
/* WhatsApp-inspired independent layout. All selectors are private. */
.pwa-shell[open]{--pwa-panel:#111b21;--pwa-head:#202c33;--pwa-line:#293740;--pwa-ink:#e9edef;--pwa-muted:#8696a0;background:#0b141a;color:var(--pwa-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.pwa-shell .pwa-bar{height:51px;background:#202c33;border-bottom:1px solid #37454d;padding:7px 18px}.pwa-shell .pwa-logo{width:92px;max-height:33px}.pwa-shell .pwa-body{grid-template-columns:minmax(300px,31%) minmax(0,1fr)}.pwa-shell .pwa-left{padding:0;background:#111b21;gap:0;border-right:1px solid #293740}.pwa-sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:17px 21px 12px}.pwa-sidebar-head h2{font-size:22px;margin:0;font-weight:650}.pwa-left>.pwa-input{margin:0 15px 10px;background:#202c33;border:0;border-radius:8px}.pwa-tabs{display:flex;gap:7px;padding:0 15px 12px;overflow:auto;scrollbar-width:none}.pwa-tab{border:0;border-radius:24px;background:#202c33;color:#aebac1;padding:8px 12px;font-size:13px;white-space:nowrap;cursor:pointer}.pwa-tab-active{background:#0a413b;color:#68e2b8}.pwa-shell .pwa-chat{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:0;min-height:72px}.pwa-avatar{display:grid;place-items:center;flex:0 0 49px;width:49px;height:49px;background:#344852;border-radius:50%;overflow:hidden;color:#dbe5e9;font-size:19px;font-weight:600}.pwa-avatar img{width:100%;height:100%;object-fit:cover}.pwa-chat-details{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;border-bottom:1px solid #26333a;padding:6px 0 12px}.pwa-chat-details strong{font-size:15px;font-weight:550}.pwa-chat-meta{display:flex;flex-direction:column;align-items:flex-end;gap:7px;color:#8696a0;font-size:11px}.pwa-shell .pwa-count{display:grid;place-items:center;border-radius:20px;background:#00a884;color:#092e27;min-width:20px;height:20px;padding:0 5px;font-weight:650}.pwa-shell .pwa-selected,.pwa-shell .pwa-chat:hover{background:#202c33}.pwa-shell .pwa-main{background:#0b141a}.pwa-chat-head{display:flex;align-items:center;gap:12px;height:64px;padding:8px 20px;background:#202c33;flex-shrink:0}.pwa-head-avatar .pwa-avatar{width:42px;height:42px;flex-basis:42px}.pwa-shell .pwa-title{background:none;border:0;padding:0;flex:1;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pwa-shell .pwa-messages{padding:20px max(24px,7%);gap:5px;background-color:#0b141a;background-image:radial-gradient(circle at 20% 30%,#24323a 0.7px,transparent 1px),radial-gradient(circle at 70% 65%,#1c2b32 0.8px,transparent 1px);background-size:29px 29px,43px 43px}.pwa-shell .pwa-message{position:relative;max-width:75%;padding:7px 10px 5px;border-radius:9px;box-shadow:0 1px 1px #0005;font-size:14px}.pwa-shell .pwa-in{background:#202c33}.pwa-shell .pwa-out{background:#005c4b}.pwa-shell .pwa-sticker-message{background:transparent;box-shadow:none}.pwa-inline-media{display:block;max-width:min(340px,100%);max-height:350px;border-radius:7px;object-fit:contain;margin:3px 0}.pwa-inline-media:not([src]){min-height:26px}.pwa-sticker-message .pwa-inline-media{width:155px;height:155px}.pwa-inline-media:is(audio){width:260px;max-width:100%;height:46px}.pwa-shell .pwa-time{display:inline-block;float:right;margin:5px 0 0 10px;color:#b1c4c7}.pwa-ticks{float:right;font-size:11px;color:#b1c4c7;margin:4px 0 0 4px}.pwa-read{color:#53bdeb}.pwa-msg-tools{display:flex;gap:2px;position:absolute;top:-22px;right:0;background:#28363e;border-radius:8px;visibility:hidden;z-index:1}.pwa-message:hover .pwa-msg-tools,.pwa-message:focus-within .pwa-msg-tools{visibility:visible}.pwa-msg-tools .pwa-icon{width:29px;height:29px;font-size:16px}.pwa-icon{display:grid;place-items:center;flex-shrink:0;width:39px;height:39px;border:0;border-radius:50%;background:transparent;color:#aebac1;font:inherit;font-size:23px;cursor:pointer}.pwa-icon:hover{background:#33444e;color:#fff}.pwa-reaction-menu{display:flex;flex-wrap:wrap;background:#263640;border-radius:12px;gap:1px;margin-top:6px}.pwa-reactions{font-size:15px;margin-top:5px}.pwa-quoted,.pwa-reply-box{padding:7px 10px;background:#0003;border-left:3px solid #53bdeb;border-radius:5px;color:#d0dce0;overflow-wrap:anywhere}.pwa-shell .pwa-compose{position:relative;display:flex;flex-direction:column;align-items:stretch;background:#202c33;padding:8px 13px;gap:4px}.pwa-compose-row{display:flex;gap:8px;align-items:center}.pwa-shell .pwa-compose textarea{border:0;background:#2a3942;border-radius:9px;padding:12px;min-height:42px;color:#e9edef}.pwa-file-label{font-size:12px;color:#aebac1}.pwa-file-label:empty{display:none}.pwa-reply-box{display:flex;align-items:center;justify-content:space-between}.pwa-picker{position:absolute!important;bottom:calc(100% + 6px);left:12px;width:min(420px,95%);max-height:min(420px,55vh);overflow:auto;z-index:3;background:#202c33!important;border:1px solid #42535c;border-radius:12px;box-shadow:0 8px 30px #0008;padding:12px;color:#e9edef}.pwa-picker button{color:inherit}.pwa-picker input,.pwa-picker select{background:#2a3942!important;color:#e9edef!important}.pwa-picker .emoji-grid{max-height:240px;overflow:auto}.pwa-sticker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:280px;overflow:auto;margin-top:10px}.pwa-sticker{border:0;background:transparent;cursor:pointer;aspect-ratio:1;border-radius:8px}.pwa-sticker:hover{background:#354650}.pwa-sticker img{width:100%;height:100%;object-fit:contain}.pwa-shell .pwa-media{font-size:12px;padding:4px;border-color:#ffffff30}.pwa-empty{color:#8696a0;text-align:center;padding:18px;font-size:13px}.pwa-chat-query{margin:8px 12px}.pwa-chat-head>.pwa-icon:first-child{display:none}.pwa-shell .pwa-status{background:#111b21}.pwa-shell .pwa-button{background:#202c33;color:#e9edef;border-color:#46545c}.pwa-shell .pwa-danger{color:#ffc6c6}.pwa-shell .pwa-toggle{color:#e9edef}.pwa-shell .pwa-shell button:focus-visible,.pwa-shell button:focus-visible{outline:2px solid #00a884;outline-offset:2px}
@media(max-width:700px){.pwa-shell .pwa-body{display:flex}.pwa-shell .pwa-left{width:100%}.pwa-shell .pwa-main{display:none;width:100%}.pwa-shell .pwa-mobile-chat .pwa-left{display:none}.pwa-shell .pwa-mobile-chat .pwa-main{display:flex}.pwa-chat-head>.pwa-icon:first-child{display:grid}.pwa-shell .pwa-message{max-width:89%}.pwa-shell .pwa-messages{padding:16px 10px}.pwa-compose-row{gap:3px}.pwa-compose-row .pwa-icon{width:33px;height:33px;font-size:20px}.pwa-msg-tools{visibility:visible;position:static;justify-content:flex-end;background:transparent;float:none}.pwa-msg-tools .pwa-icon{width:25px;height:25px}.pwa-inline-media{max-width:100%}}

/* Explicit viewport tracks prevent a long chat list from pushing the composer below the window. */
.pwa-shell[open]{height:100dvh!important;max-height:100dvh!important;width:100vw!important;box-sizing:border-box;overflow:hidden!important;min-height:0!important}
.pwa-shell .pwa-bar{flex:0 0 51px;min-height:51px;max-height:51px}
.pwa-shell .pwa-logo{width:36px;height:36px;max-height:36px}
.pwa-shell .pwa-body:not([hidden]){display:grid;flex:1 1 0;min-height:0!important;grid-template-rows:minmax(0,1fr);overflow:hidden}
.pwa-shell .pwa-left,.pwa-shell .pwa-main{min-height:0!important;height:100%;overflow:hidden}
.pwa-shell .pwa-left{display:grid;grid-template-rows:auto auto auto minmax(0,1fr)}
.pwa-shell .pwa-list{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.pwa-shell .pwa-main{display:flex;flex-direction:column}
.pwa-shell .pwa-chat-head,.pwa-shell .pwa-compose,.pwa-shell .pwa-chat-query,.pwa-shell .pwa-main>button{flex:0 0 auto}
.pwa-shell .pwa-messages{flex:1 1 0;min-height:0!important;overflow-y:auto;overscroll-behavior:contain}
.pwa-shell .pwa-compose:not([hidden]){display:flex!important;min-height:64px;max-height:45%;z-index:4;border-top:1px solid #35444c}
.pwa-shell .pwa-compose-row{min-width:0}.pwa-shell .pwa-compose textarea{flex:1 1 0;width:0;min-width:40px}
.pwa-shell .pwa-empty-state{align-self:center;text-align:center;margin:auto;padding:12px 20px;border-radius:10px;background:#202c33;color:#c2cdd2;font-size:14px;max-width:85%}
.pwa-shell .pwa-notice{flex:0 0 auto;padding:9px 16px;background:#442a29;color:#ffe3df;font-size:13px}
.pwa-shell .pwa-chat{flex-shrink:0}
@media(max-width:700px){.pwa-shell .pwa-body:not([hidden]){display:flex}.pwa-shell .pwa-main{display:none}.pwa-shell .pwa-mobile-chat .pwa-main{display:flex}.pwa-shell .pwa-mobile-chat .pwa-left{display:none}.pwa-shell .pwa-compose-row{gap:2px}.pwa-shell .pwa-compose-row .pwa-icon{width:30px;height:34px}}

.pwa-tabs{flex-wrap:wrap;overflow:visible}.pwa-pinned{font-size:11px}.pwa-sidebar-head .pwa-actions{flex-wrap:nowrap}

/* Unified polished private interface */
.pwa-shell{color-scheme:dark}.pwa-shell .pwa-avatar,.pwa-shell .pwa-head-avatar .pwa-avatar{box-shadow:0 0 0 1px #ffffff10}.pwa-shell .pwa-icon{display:grid;place-items:center;border-radius:50%;background:transparent;line-height:1}.pwa-shell .pwa-icon svg{display:block;flex-shrink:0}.pwa-shell .pwa-compose-row>button[type=submit]{background:#006b58;color:#e9fff5;width:42px;height:42px;border:1px solid #258a73}.pwa-shell .pwa-compose-row>button[type=submit]:hover{background:#087e67}.pwa-shell .pwa-list,.pwa-shell .pwa-messages,.pwa-shell .pwa-picker,.pwa-shell .pwa-sticker-grid{scrollbar-width:thin;scrollbar-color:#52636c #111b21}.pwa-shell .pwa-bar{background:#202c33}.pwa-shell .pwa-chat-head{height:66px}.pwa-shell .pwa-chat{min-height:69px}.pwa-shell .pwa-sidebar-head{padding:16px 15px 10px}.pwa-shell .pwa-sidebar-head h2{font-size:20px}.pwa-shell .pwa-message{font-size:14px;line-height:1.5}.pwa-shell .pwa-tabs{padding-bottom:10px;gap:5px}.pwa-shell .pwa-tab{min-height:32px;padding:6px 10px;font-size:12px}.pwa-shell .pwa-input:focus{border-color:#2a9f83;box-shadow:0 0 0 2px #00a88430}.pwa-shell .pwa-day{align-self:center;border-radius:7px;padding:4px 11px;color:#d6e0e4;background:#202c33;font-size:12px;margin:9px 0;box-shadow:0 1px 2px #0003}.pwa-shell .pwa-main>button:not([hidden]){align-self:center;margin:6px 0;border-radius:20px;min-height:32px;padding:6px 13px;font-size:12px;width:auto}.pwa-shell .pwa-compose{overflow:visible}.pwa-shell .pwa-main{position:relative}.pwa-shell .pwa-picker:not([hidden]){display:flex!important;flex-direction:column;position:absolute!important;bottom:100%!important;left:8px;right:auto;top:auto!important;min-height:200px;max-height:min(380px,55dvh);height:340px;width:min(420px,calc(100% - 16px));overflow:auto;z-index:10}.pwa-shell .pwa-picker .emoji-grid{display:grid!important;flex:1 1 0;min-height:90px;max-height:none;grid-template-columns:repeat(7,minmax(0,1fr));overflow:auto}.pwa-shell .pwa-picker .emoji-grid button{min-height:35px;color:#e9edef;background:transparent}.pwa-shell .pwa-picker .emoji-grid button:hover{background:#34464f}.pwa-shell .pwa-picker .emoji-glyph{width:25px;height:25px}.pwa-shell .pwa-picker .emoji-search{display:flex;gap:5px}.pwa-shell .pwa-picker .emoji-search input{min-width:0}.pwa-shell .pwa-picker .emoji-search select{max-width:126px}.pwa-shell .pwa-picker .emoji-heading{display:flex;justify-content:space-between;align-items:center}.pwa-shell .pwa-picker .emoji-categories{display:flex;justify-content:space-between;flex-wrap:wrap}.pwa-shell .pwa-picker .emoji-categories button{background:transparent;min-height:30px;padding:3px}.pwa-shell .pwa-picker .emoji-categories img{width:20px;height:20px}.pwa-shell .pwa-picker .emoji-category-label{margin:6px 0}.pwa-shell .pwa-picker .emoji-credit{font-size:10px;color:#a8b7bf}.pwa-shell .pwa-sticker-grid{flex:1;min-height:100px}.pwa-shell .pwa-sticker-grid button{min-width:0}.pwa-shell .pwa-notice{border-radius:0}.pwa-gate{color-scheme:dark}.pwa-gate .pwa-input{width:100%}.pwa-gate .pwa-actions{justify-content:flex-end}
@media(max-width:700px){.pwa-shell .pwa-compose-row>button[type=submit]{width:35px;height:35px;flex:0 0 35px}.pwa-shell .pwa-icon svg{width:19px;height:19px}.pwa-shell .pwa-picker:not([hidden]){height:280px;max-height:48dvh}.pwa-shell .pwa-message{max-width:90%}}

.pwa-shell .pwa-picker .emoji-close{width:32px;height:32px;border:0;border-radius:50%;background:#34464f;color:#e9edef}.pwa-shell .pwa-picker .emoji-categories button.selected{background:#145248;border-radius:8px}.pwa-shell .pwa-picker .emoji-credit{color:#a8b7bf}.pwa-shell .pwa-compose-row textarea::placeholder{color:#a8b7bf;opacity:1}.pwa-shell .pwa-chat-meta{align-self:center;min-width:45px}.pwa-shell .pwa-chat-details{padding:4px 0 9px}.pwa-shell .pwa-chat-head .pwa-title{font-weight:600}.pwa-shell .pwa-actions .pwa-button,.pwa-shell .pwa-toggle{min-height:34px;border-radius:8px}.pwa-shell .pwa-danger:hover{background:#482a2d}.pwa-shell .pwa-tabs{row-gap:5px}

.pwa-password-dialog{max-width:440px}.pwa-password-field{display:grid;gap:6px;margin:0;color:#e9edef}.pwa-password-help{font-size:13px;color:#aebdc4;margin:0}.pwa-password-dialog .pwa-actions{justify-content:flex-end}.pwa-shell .pwa-compose-row .pwa-icon:not([type=submit]){background:transparent;border:1px solid transparent;box-shadow:none}.pwa-shell .pwa-compose-row .pwa-icon:not([type=submit]):not(:disabled):is(:hover,[aria-expanded=true]){background:#34464f;border-color:#435760;box-shadow:0 2px 5px #0003}.pwa-shell .pwa-compose-row .pwa-icon:focus-visible{outline:2px solid #69ddbe;outline-offset:2px}

.pwa-account-label{font-size:12px;color:#b6c9cf;max-width:50%;line-height:1.3}.pwa-supervisor-list{display:grid;gap:8px;max-height:45vh;overflow:auto}.pwa-supervision{padding:20px}.pwa-supervising .pwa-compose,.pwa-supervising .pwa-msg-tools{display:none!important}.pwa-supervising .pwa-chat-head{border-bottom:1px solid #34464f}

.pwa-corporate-terms{font-size:13px;line-height:1.5;color:inherit}.pwa-corporate-terms summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}.pwa-corporate-terms p{margin:8px 0 0}.pwa-corporate-terms[hidden],.pwa-account-label[hidden]{display:none!important}

/* Keep timeline geometry stable when media dimensions and composer height change. */
.pwa-shell .pwa-messages.pwa-follow-latest{overflow-anchor:none;scroll-behavior:auto}.pwa-shell .pwa-messages>.pwa-message,.pwa-shell .pwa-messages>.pwa-day{flex-shrink:0}.pwa-shell .pwa-inline-media{display:block}

/* Keep reply and reaction controls in the message, not in the hover gap. */
.pwa-shell .pwa-msg-tools{position:static;visibility:visible;display:flex;justify-content:flex-end;gap:4px;background:transparent;margin:2px 0 0;float:none;z-index:auto}
.pwa-shell .pwa-msg-tools .pwa-icon{width:30px;height:30px;min-width:30px;color:inherit;touch-action:manipulation}
.pwa-shell .pwa-msg-tools .pwa-icon svg{pointer-events:none}
.pwa-shell .pwa-reply-box{min-width:0;gap:10px}
.pwa-shell .pwa-reply-box>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pwa-shell .pwa-attachment-preview{display:flex;align-items:center;gap:12px;padding:8px;border:1px solid currentColor;border-radius:8px;min-width:0}
.pwa-shell .pwa-attachment-preview img{max-width:120px;max-height:96px;object-fit:contain;border-radius:5px}
.pwa-shell .pwa-attachment-preview span{flex:1;min-width:0;overflow-wrap:anywhere}

/* Keep the reserved access/return control icon-only and aligned in either header. */
.pwa-actions .pwa-toggle,.inbox-header-actions .pwa-toggle{display:inline-grid;place-items:center;box-sizing:border-box;width:36px;height:36px;min-width:36px;min-height:36px;flex:0 0 36px;padding:0;margin:0;border-radius:50%;border:0;background:transparent;color:#c4d1d6;font-size:22px;line-height:1;white-space:nowrap}
.pwa-actions .pwa-toggle:hover,.inbox-header-actions .pwa-toggle:hover{background:#34464f;color:#fff}
