:root{color-scheme:light;--chat-ink:#17233f;--chat-muted:#7a88a5;--chat-line:#e7eaf2;--chat-blue:#347cf3;--chat-coral:#ff655f;--chat-surface:#fff}
.chat-presence[hidden]{display:none}
.chat-empty[hidden]{display:none}
.chat-thread-head .chat-presence{margin-left:auto;min-height:36px;padding-inline:12px;font-size:12px}
.chat-media-dialog:not([open]){display:none}
.chat-privacy-dialog{position:fixed;inset:0;width:min(460px,calc(100% - 32px));max-width:none;max-height:min(90dvh,560px);margin:auto;padding:32px;border:1px solid #fff;border-radius:24px;background:linear-gradient(145deg,#fff 0%,#fff 70%,#fff7f7 100%);box-shadow:0 26px 80px #30244735;color:var(--chat-ink);text-align:center}.chat-privacy-dialog::backdrop{background:#17233f66;backdrop-filter:blur(5px)}.chat-privacy-close{position:absolute;top:14px;right:14px;display:grid;width:34px;height:34px;place-items:center;border:1px solid #e8ebf3;border-radius:50%;background:#fff;color:#7e8ba5;font-size:21px;cursor:pointer}.chat-privacy-icon{display:grid;width:58px;height:58px;place-items:center;margin:2px auto 15px;border-radius:18px;background:linear-gradient(140deg,#fff0ec,#fff0f5);color:#f26768}.chat-privacy-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.chat-privacy-eyebrow{margin:0 0 5px;color:#d78390;font-size:10px;font-weight:800;letter-spacing:.16em}.chat-privacy-dialog h2{margin:0 0 11px;font-size:22px;letter-spacing:-.025em}.chat-privacy-dialog>p:not(.chat-privacy-eyebrow){margin:0 auto;color:#71809d;font-size:14px;line-height:1.85}.chat-privacy-countdown{display:block;margin-top:18px;color:#a0a9ba;font-size:11px}.chat-privacy-confirm{min-width:128px;min-height:42px;margin-top:15px;padding:0 20px;border:0;border-radius:12px;background:linear-gradient(110deg,#ff765e,#f43d72);box-shadow:0 9px 20px #f1516826;color:#fff;font:inherit;font-size:13px;font-weight:750;cursor:pointer}
.chat-thread-actions{position:relative;display:flex;align-items:center;gap:9px;margin-left:auto}.chat-thread-head .chat-presence{margin-left:0;min-height:36px;padding-inline:12px;font-size:12px}.chat-thread-menu-wrap{position:relative;display:flex;flex:none;align-items:center}.chat-thread-menu-button{display:grid;width:38px;height:38px;padding:0;place-items:center;border:1px solid #e8ebf3;border-radius:50%;background:#fff;color:#58657c;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}.chat-thread-menu-button:hover,.chat-thread-menu-button[aria-expanded=true]{border-color:#f4c8cf;background:#fff6f7;color:#e75c70}.chat-thread-menu-button svg{display:block;width:20px;height:20px;fill:currentColor}.chat-thread-menu{position:absolute;z-index:12;top:calc(100% + 9px);right:0;display:grid;width:190px;padding:6px;border:1px solid #e8ebf3;border-radius:14px;background:#fff;box-shadow:0 14px 36px #26324b21}.chat-thread-menu[hidden]{display:none}.chat-thread-menu button{width:100%;padding:11px 12px;border:0;border-radius:9px;background:transparent;color:#394862;text-align:left;font:inherit;font-size:12px;cursor:pointer}.chat-thread-menu button:hover{background:#f5f7fc;color:#e65b70}.chat-thread-menu button+button{border-top:1px solid #f0f1f5;border-radius:0 0 9px 9px;color:#cf5967}.chat-action-dialog{position:fixed;inset:0;width:min(470px,calc(100% - 32px));max-width:none;max-height:min(90dvh,520px);margin:auto;padding:34px 30px 28px;border:1px solid #fff;border-radius:25px;background:linear-gradient(145deg,#fff 0%,#fff 62%,#fff6f8 100%);box-shadow:0 28px 86px #1e25474a;color:var(--chat-ink);text-align:center}.chat-action-dialog::backdrop{background:#171d31a0;backdrop-filter:blur(6px)}.chat-action-dialog .chat-privacy-icon{font-size:21px;font-weight:800;letter-spacing:2px}.chat-action-dialog h2{margin:0 0 10px;font-size:22px;letter-spacing:-.025em}.chat-action-dialog>p:not(.chat-privacy-eyebrow){max-width:390px;margin:0 auto;color:#71809d;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.chat-action-dialog .chat-dialog-actions{margin-top:23px}.chat-action-dialog .chat-dialog-actions button{min-height:45px;padding-inline:22px;border-radius:13px;font-size:13px}.chat-action-dialog .chat-primary.is-danger{background:linear-gradient(110deg,#ff765e,#f04470);box-shadow:0 8px 20px #f1516824}
*{box-sizing:border-box}
body.chat-page-shell{height:100dvh;min-height:0;margin:0;display:flex;flex-direction:column;overflow:hidden;color:var(--chat-ink);background-color:#f8eef8;background-image:linear-gradient(rgba(148,126,186,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(148,126,186,.05) 1px,transparent 1px),linear-gradient(120deg,#fff2f5 0%,#f4efff 52%,#eef3ff 100%);background-size:24px 24px,24px 24px,cover}
.chat-main{width:min(1240px,calc(100% - 48px));height:0;min-height:0;flex:1 1 auto;display:flex;flex-direction:column;margin:0 auto;padding:12px 0 16px}
.chat-breadcrumb{margin:0 0 12px 5px;color:var(--chat-muted);font-size:14px}.chat-breadcrumb a{color:inherit;text-decoration:none}.chat-breadcrumb a:hover{color:var(--chat-blue)}
.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 4px 16px}.chat-eyebrow{display:block;color:#e17789;font-size:11px;letter-spacing:.16em;font-weight:800}.chat-heading h1{margin:4px 0 2px;font-size:25px;letter-spacing:-.035em}.chat-heading p{margin:0;color:var(--chat-muted);font-size:14px}
.chat-presence{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:0 14px;border:1px solid #dcefe5;border-radius:999px;background:#ffffffd9;color:#24825d;font:inherit;font-size:14px;font-weight:750;white-space:nowrap;cursor:pointer;transition:.18s ease}.chat-presence:hover{background:#fff;box-shadow:0 5px 16px #399f721b;transform:translateY(-1px)}.chat-presence i{width:9px;height:9px;border-radius:50%;background:#27b779;box-shadow:0 0 0 4px #27b77920}.chat-presence b{margin-left:3px;color:#8491aa;font-weight:500}.chat-presence[data-state=connecting]{color:#a86d26;border-color:#f4e1c6}.chat-presence[data-state=connecting] i{background:#e9a33b;box-shadow:0 0 0 4px #e9a33b20}.chat-presence[data-state=offline]{color:#8791a5;border-color:#e5e8ef}.chat-presence[data-state=offline] i{background:#aab2c1;box-shadow:0 0 0 4px #aab2c120}
.chat-app{display:grid;grid-template-columns:minmax(270px,320px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);height:0;min-height:0;flex:1 1 auto;overflow:hidden;border:1px solid #ffffffec;border-radius:24px;background:#ffffffde;box-shadow:0 16px 40px #53456d12;backdrop-filter:blur(10px)}.chat-app[hidden]{display:none}
.chat-sidebar{display:flex;min-height:0;flex-direction:column;border-right:1px solid var(--chat-line);background:linear-gradient(160deg,#fffefa 0%,#fff 48%,#fbfaff 100%)}.chat-sidebar-top{padding:20px 17px 12px}.chat-sidebar-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.chat-sidebar-title h2{margin:0;font-size:20px}.chat-sidebar-title p{margin:3px 0 0;color:#8a96ad;font-size:12px}.chat-count{flex:none;padding:6px 10px;border:1px solid #e8efff;border-radius:999px;background:#f3f7ff;color:#4778c8;font-size:11px;font-weight:750}
.chat-member-search{display:flex;align-items:center;gap:9px;height:42px;padding:0 11px;border:1px solid #e7eaf2;border-radius:13px;background:#f9faff;transition:border-color .18s,box-shadow .18s}.chat-member-search:focus-within{border-color:#9dbbff;box-shadow:0 0 0 3px #347cf313}.chat-member-search svg{width:17px;height:17px;flex:none;fill:none;stroke:#8b98b2;stroke-width:1.8;stroke-linecap:round}.chat-member-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--chat-ink);font:inherit;font-size:13px}.chat-member-search input::placeholder{color:#a0a9bb}.chat-member-search button{border:0;background:none;color:#8491aa;font-size:20px;cursor:pointer}
.chat-list-tabs{display:flex;gap:7px;margin-top:13px;padding:3px;border-radius:12px;background:#f2f4fa}.chat-list-tabs button{flex:1;min-height:34px;border:0;border-radius:9px;background:transparent;color:#7c89a4;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.chat-list-tabs button.is-active{background:#fff;color:#293957;box-shadow:0 2px 7px #32456812}.chat-user-list{min-height:0;flex:1;overflow:auto;padding:2px 10px 12px}.chat-user-row{display:flex;width:100%;align-items:center;gap:11px;margin:3px 0;padding:10px 9px;border:1px solid transparent;border-radius:14px;background:transparent;color:inherit;text-align:left;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}.chat-user-row:hover{background:#f8faff;transform:translateY(-1px)}.chat-user-row.is-selected{border-color:#e4ebfa;background:linear-gradient(110deg,#f1f6ff,#fff8f8)}.chat-avatar{position:relative;display:grid;place-items:center;width:44px;height:44px;flex:none;overflow:hidden;border:2px solid #fff;border-radius:50%;background:linear-gradient(145deg,#ffebdd,#e8f0ff);box-shadow:0 2px 8px #283a6014;color:#496383;font-size:20px;font-weight:700}.chat-avatar img{width:100%;height:100%;object-fit:cover}.chat-avatar-dot{position:absolute;right:0;bottom:0;width:11px;height:11px;border:2px solid white;border-radius:50%;background:#26b77b}.chat-avatar-dot.is-offline{background:#aeb8c8}.chat-user-meta{min-width:0;flex:1}.chat-user-name{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:13px;font-weight:750}.chat-user-name span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-user-last{display:block;overflow:hidden;margin-top:4px;color:#8c98ad;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.chat-user-time{color:#a0aabd;font-size:10px;font-weight:500}.chat-user-arrow{color:#aab5c7;font-size:17px}.chat-list-empty{display:grid;min-height:150px;place-content:center;justify-items:center;gap:8px;padding:20px;color:#8793a9;text-align:center;font-size:12px}.chat-list-empty strong{color:#53627f;font-size:13px}.chat-list-empty span{max-width:210px;line-height:1.6}.chat-sidebar-note{display:flex;align-items:center;gap:7px;padding:12px 16px;border-top:1px solid #eef0f5;color:#9aa5b9;font-size:10px}.chat-note-dot{width:7px;height:7px;border-radius:50%;background:#80c9a4}
.chat-conversation{position:relative;display:flex;min-width:0;min-height:0;flex-direction:column;overflow:hidden;background:linear-gradient(145deg,#fff 0%,#fff 45%,#fcfbff 100%)}.chat-empty{display:flex;min-height:0;flex:1;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center}.chat-empty-art{display:grid;width:94px;height:94px;place-items:center;margin-bottom:17px;border:1px solid #f0e7f2;border-radius:28px;background:linear-gradient(140deg,#fff2f2,#f2f5ff);box-shadow:0 12px 28px #a992b818}.chat-empty-art img{width:61px;height:61px;object-fit:contain}.chat-empty h2{margin:0 0 7px;font-size:19px}.chat-empty p{max-width:370px;margin:0;color:#8793a9;font-size:13px;line-height:1.7}.chat-thread{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden}.chat-thread[hidden]{display:none}.chat-thread-head{display:flex;min-height:73px;align-items:center;gap:11px;padding:11px 19px;border-bottom:1px solid #eceef4;background:#ffffffc9}.chat-thread-avatar{width:42px;height:42px}.chat-thread-user{display:grid;gap:4px;min-width:0;flex:1}.chat-thread-user strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.chat-thread-user>span{display:flex;align-items:center;gap:6px;color:#8d99ad;font-size:11px}.chat-thread-user i{width:7px;height:7px;border-radius:50%;background:#b4bdcb}.chat-thread-user [data-online=true] i{background:#27b779}.chat-icon-button,.chat-mobile-back{display:grid;width:38px;height:38px;place-items:center;border:1px solid #e8ebf3;border-radius:12px;background:#fff;color:#7e8ba5;cursor:pointer}.chat-icon-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.chat-mobile-back{display:none;font-size:27px;line-height:1}
.chat-message-list{display:flex;min-height:0;flex:1;flex-direction:column;gap:12px;overflow:auto;padding:22px clamp(14px,3vw,34px)}.chat-day-label{align-self:center;padding:5px 11px;border:1px solid #edf0f5;border-radius:999px;background:#fff;color:#98a3b6;font-size:10px}.chat-message{display:flex;max-width:min(78%,650px);align-items:flex-end;gap:8px}.chat-message.is-mine{align-self:flex-end;flex-direction:row-reverse}.chat-message .chat-avatar{width:30px;height:30px;font-size:14px}.chat-bubble-wrap{display:grid;gap:4px;min-width:0}.chat-message.is-mine .chat-bubble-wrap{justify-items:end}.chat-bubble{max-width:100%;padding:11px 14px;border:1px solid #e8ebf2;border-radius:16px 16px 16px 4px;background:#fff;box-shadow:0 3px 10px #41527409;color:#253451;font-size:13px;line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap}.chat-message.is-mine .chat-bubble{border-color:#f7b2ae;border-radius:16px 16px 4px 16px;background:linear-gradient(135deg,#fff1ef,#ffebe9);color:#472d3b}.chat-message time{padding:0 4px;color:#a0aabc;font-size:9px}.chat-message-media{display:block;max-width:min(360px,100%);max-height:320px;border:1px solid #e9eaf1;border-radius:13px;background:#f1f3f8;object-fit:contain;cursor:zoom-in}.chat-message.is-mine .chat-message-media{border-color:#f4cbc8}.chat-message-video{display:block;width:min(380px,100%);max-height:300px;border:1px solid #e8ebf2;border-radius:13px;background:#1d2333}.chat-message-caption{max-width:360px;color:#667590;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message.is-mine .chat-message-caption{color:#725c66}.chat-connection-hint{align-self:center;margin:0 12px 8px;padding:6px 11px;border-radius:999px;background:#f3f5fa;color:#8995aa;font-size:10px}.chat-connection-hint[hidden]{display:none}
.chat-composer{position:relative;padding:11px 16px 13px;border-top:1px solid #eceef4;background:#fff}.chat-composer-tools{display:flex;align-items:center;gap:8px;margin-bottom:7px}.chat-composer-tools button{display:grid;width:32px;height:30px;place-items:center;border:0;border-radius:9px;background:transparent;color:#71809d;font-size:20px;cursor:pointer}.chat-composer-tools button:hover{background:#f1f5fc;color:#3778e3}.chat-composer-tools svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.chat-file-limit{margin-left:auto;color:#a0aabd;font-size:10px}.chat-composer textarea{display:block;width:100%;min-height:54px;max-height:150px;resize:vertical;padding:11px 12px;border:1px solid #e7eaf2;border-radius:12px;outline:none;background:#fafbfe;color:#233351;font:inherit;font-size:13px;line-height:1.55}.chat-composer textarea:focus{border-color:#a9c2fb;box-shadow:0 0 0 3px #347cf310;background:#fff}.chat-composer textarea::placeholder{color:#a0aabd}.chat-composer-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.chat-composer-foot>span{overflow:hidden;color:#9aa5b8;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.chat-send,.chat-primary{display:inline-flex;min-height:40px;align-items:center;justify-content:center;gap:10px;padding:0 18px;border:0;border-radius:12px;background:linear-gradient(110deg,#ff815e,#f43c71);box-shadow:0 7px 18px #f04c6a20;color:#fff;font:inherit;font-size:13px;font-weight:750;text-decoration:none;cursor:pointer;transition:transform .16s,box-shadow .16s}.chat-send:hover:not(:disabled),.chat-primary:hover{transform:translateY(-1px);box-shadow:0 10px 20px #f04c6a30}.chat-send:disabled{opacity:.45;box-shadow:none;cursor:not-allowed}.chat-send span,.chat-primary span{font-size:17px}.chat-emoji-popover{position:absolute;bottom:100%;left:14px;display:grid;grid-template-columns:repeat(7,38px);gap:3px;padding:9px;border:1px solid #e8eaf2;border-radius:14px;background:#fff;box-shadow:0 14px 35px #2b37521c}.chat-emoji-popover[hidden]{display:none}.chat-emoji-popover button{width:36px;height:36px;border:0;border-radius:9px;background:transparent;font-size:20px;cursor:pointer}.chat-emoji-popover button:hover{background:#f3f5fb}
.chat-state{display:grid;min-height:320px;place-content:center;justify-items:center;gap:13px;padding:32px;border:1px solid #ffffffed;border-radius:24px;background:#ffffffeb;box-shadow:0 14px 35px #53456d12;text-align:center}.chat-state[hidden]{display:none}.chat-state-icon{display:grid;width:62px;height:62px;place-items:center;border-radius:20px;background:linear-gradient(140deg,#fff0e9,#fff0f7);font-size:26px}.chat-state h2{margin:0;font-size:21px}.chat-state p{max-width:440px;margin:0;color:var(--chat-muted);font-size:13px;line-height:1.7}.chat-secondary{display:inline-flex;min-height:40px;align-items:center;justify-content:center;padding:0 18px;border:1px solid #e1e6f0;border-radius:12px;background:#fff;color:#586882;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.chat-contact-dialog,.chat-media-dialog{position:fixed;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:0;overflow:visible;border:0;border-radius:30px;background:linear-gradient(145deg,#fff 0%,#fff 58%,#fff6f8 100%);box-shadow:0 28px 90px #1e254757;color:var(--chat-ink)}.chat-contact-dialog{width:min(620px,calc(100vw - 32px));padding:54px 36px 38px;text-align:center}.chat-contact-dialog::backdrop,.chat-media-dialog::backdrop{background:#171d31a3;backdrop-filter:blur(7px)}.chat-dialog-close{position:absolute;top:18px;right:18px;display:grid;width:40px;height:40px;place-items:center;border:1px solid #e8eaf0;border-radius:50%;background:#fff;color:#7f8aa0;font-size:25px;cursor:pointer}.chat-dialog-close:hover{background:#fff4f5;color:#e84e69}.chat-dialog-icon{display:grid;width:74px;height:74px;place-items:center;margin:0 auto 17px;border-radius:24px;background:linear-gradient(135deg,#ff8062,#f43d72);box-shadow:0 13px 26px #ee547036}.chat-dialog-icon svg{width:39px;height:39px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.chat-dialog-icon svg path:last-child{stroke-width:4;stroke-dasharray:0 8}.chat-contact-dialog .chat-eyebrow{margin-bottom:12px}.chat-contact-dialog h2{margin:0;font-size:30px;letter-spacing:-.035em}.chat-contact-dialog h2 em{color:#f34b73;font-style:normal}.chat-contact-dialog>p{margin:13px 0 27px;color:#7b88a4;font-size:15px}.chat-dialog-actions{display:flex;justify-content:center;gap:12px}.chat-dialog-actions .chat-primary,.chat-dialog-actions .chat-secondary{min-height:52px;padding-inline:24px;border-radius:15px;font-size:15px}.chat-media-dialog{width:min(1100px,calc(100vw - 32px));height:min(88dvh,900px);display:grid;place-items:center;overflow:hidden;background:#161b28}.chat-media-dialog[open]{display:grid}.chat-media-dialog .chat-dialog-close{z-index:2;top:12px;right:12px;border-color:#ffffff38;background:#202738;color:#fff}.chat-media-dialog>div{display:grid;width:100%;height:100%;place-items:center;padding:22px}.chat-media-dialog img,.chat-media-dialog video{max-width:100%;max-height:100%;object-fit:contain}.chat-toast{position:fixed;z-index:20;right:20px;bottom:20px;max-width:min(420px,calc(100vw - 40px));padding:11px 16px;border:1px solid #fff;border-radius:13px;background:#1d2b46eF;box-shadow:0 12px 32px #1b24402e;color:#fff;font-size:13px;opacity:0;pointer-events:none;transform:translateY(8px);transition:.2s}.chat-toast.is-visible{opacity:1;transform:translateY(0)}
body.chat-page-shell>.act-footer{margin-top:0}
@media(max-width:1050px){.chat-main{width:calc(100% - 32px)}}
@media(max-width:900px){.chat-app{grid-template-columns:minmax(240px,290px) minmax(0,1fr)}.chat-message{max-width:88%}.chat-heading{margin-bottom:12px}}
@media(max-width:680px){.chat-main{width:calc(100% - 32px);min-height:0;padding:10px 0 12px}.chat-breadcrumb{margin:0 4px 8px;font-size:12px}.chat-heading{align-items:center;margin:0 3px 10px}.chat-heading h1{font-size:21px}.chat-heading p{font-size:12px}.chat-eyebrow{font-size:9px}.chat-presence{min-height:37px;padding-inline:10px;font-size:12px}.chat-thread-actions{gap:6px}.chat-thread-head .chat-presence{min-height:34px;padding-inline:9px;font-size:11px}.chat-thread-menu-button{width:34px;height:34px}.chat-app{position:relative;display:block;min-height:0;flex:1;border-radius:19px}.chat-sidebar{position:absolute;inset:0;display:flex;border:0;border-radius:19px}.chat-conversation{position:absolute;inset:0;display:none;border-radius:19px}.chat-app.has-selection .chat-sidebar{display:none}.chat-app.has-selection .chat-conversation{display:flex}.chat-sidebar-top{padding:15px 13px 10px}.chat-sidebar-title h2{font-size:18px}.chat-user-list{padding-inline:8px}.chat-thread-head{min-height:63px;padding:9px 12px}.chat-mobile-back{display:grid}.chat-thread-avatar{width:38px;height:38px}.chat-message-list{padding:16px 11px}.chat-message{max-width:92%}.chat-composer{padding:9px 10px calc(10px + env(safe-area-inset-bottom))}.chat-composer textarea{min-height:50px}.chat-file-limit{font-size:9px}.chat-send{min-height:38px;padding-inline:15px}.chat-contact-dialog{padding:54px 20px 26px;border-radius:24px}.chat-contact-dialog h2{font-size:25px}.chat-contact-dialog>p{font-size:13px}.chat-dialog-actions .chat-primary,.chat-dialog-actions .chat-secondary{min-height:47px;padding-inline:16px;font-size:13px}.chat-media-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:17px}.chat-media-dialog>div{padding:12px}.chat-toast{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}.chat-privacy-dialog{padding:28px 22px 22px;border-radius:20px}.chat-privacy-dialog h2{font-size:20px}.chat-privacy-dialog>p:not(.chat-privacy-eyebrow){font-size:13px}.chat-action-dialog{padding:30px 21px 22px;border-radius:21px}.chat-action-dialog h2{font-size:20px}.chat-action-dialog>p:not(.chat-privacy-eyebrow){font-size:12px}.chat-action-dialog .chat-dialog-actions{gap:8px}.chat-action-dialog .chat-dialog-actions button{min-height:42px;padding-inline:15px;font-size:12px}}

/* Keep one consistent clear control in the member search field. */
.chat-member-search input[type="search"]{-webkit-appearance:none;appearance:none}
.chat-member-search input[type="search"]::-webkit-search-cancel-button,
.chat-member-search input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
.chat-member-search input[type="search"]::-ms-clear{display:none}
.chat-privacy-copy{max-width:390px;margin:0 auto;padding:15px 17px;border:1px solid #f0edf5;border-radius:15px;background:linear-gradient(130deg,#fafbff,#fff8f8);text-align:left}
.chat-privacy-copy p{margin:0;color:#71809d;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.chat-privacy-copy p+p{margin-top:8px}
.chat-privacy-copy .chat-privacy-warning{color:#d95c62;font-weight:700}
.chat-composer textarea{max-height:150px;resize:none;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin}
@media(max-width:680px){.chat-privacy-copy{padding:13px 14px}.chat-privacy-copy p{font-size:12px}}
/* Delivery status and retry affordance for locally persisted outgoing messages. */
.chat-message-meta{display:flex;align-items:center;gap:8px;min-height:16px}
.chat-retry-send{padding:2px 8px;border:1px solid #f2c1c4;border-radius:999px;background:#fff8f8;color:#d94e65;font:inherit;font-size:10px;font-weight:700;cursor:pointer}
.chat-retry-send:hover:not(:disabled){border-color:#e98991;background:#fff0f0}
.chat-retry-send:disabled{opacity:.55;cursor:wait}
.chat-receive-status{display:grid;justify-items:start;gap:5px;padding:9px 11px;border:1px solid #f2d5d6;border-radius:12px;background:linear-gradient(135deg,#fff8f7,#fff);color:#c35a67;font-size:11px;line-height:1.5}
.chat-receive-status small{color:#9b8791;font-size:10px}
.chat-message.is-mine .chat-receive-status{justify-items:end}
.chat-upload-progress{display:grid;gap:6px;margin:0 0 9px;padding:8px 11px;border:1px solid #e8edf8;border-radius:11px;background:linear-gradient(110deg,#f8faff,#fff8f8)}
.chat-upload-progress[hidden]{display:none}
.chat-upload-progress-label{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#74829d;font-size:11px}
.chat-upload-progress-label span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-upload-progress-label strong{flex:none;color:#ed5d70;font-size:11px}
.chat-upload-cancel{flex:none;padding:4px 9px;border:1px solid #e7dce1;border-radius:8px;background:#fff;color:#7c6672;font:inherit;font-size:10px;cursor:pointer}
.chat-upload-cancel:hover:not(:disabled){border-color:#f3a3aa;background:#fff6f6;color:#d94e65}
.chat-upload-cancel:disabled{opacity:.55;cursor:wait}
.chat-upload-progress-track{height:6px;overflow:hidden;border-radius:99px;background:#e9edf5}
.chat-upload-progress-track i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ff875f,#f34372);transition:width .16s ease}
.chat-offline-upload-dialog{position:fixed;inset:0;width:min(440px,calc(100% - 32px));max-width:none;margin:auto;padding:30px 28px 26px;border:1px solid #fff;border-radius:24px;background:linear-gradient(145deg,#fff,#fff7f8);box-shadow:0 26px 80px #30244735;color:var(--chat-ink);text-align:center}
.chat-offline-upload-dialog::backdrop{background:#17233f66;backdrop-filter:blur(5px)}
.chat-offline-upload-dialog h2{margin:0 0 10px;font-size:21px}
.chat-offline-upload-dialog>p:not(.chat-privacy-eyebrow){margin:0;padding:13px 14px;border:1px solid #edf0f6;border-radius:15px;background:linear-gradient(145deg,#f8faff,#fff9fa);color:#71809d;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.chat-offline-upload-dialog .chat-privacy-icon{font-size:27px;font-weight:800}
.chat-offline-upload-dialog .chat-dialog-actions{margin-top:22px}
.chat-offline-upload-dialog .chat-secondary,.chat-offline-upload-dialog .chat-primary{min-height:44px;padding-inline:16px;border-radius:12px;font-size:13px}
@media(max-width:480px){.chat-offline-upload-dialog{padding:26px 20px 20px}.chat-offline-upload-dialog .chat-dialog-actions{gap:8px}.chat-offline-upload-dialog .chat-secondary,.chat-offline-upload-dialog .chat-primary{padding-inline:12px;font-size:12px}}
.chat-privacy-copy{display:grid;gap:9px;max-width:430px;padding:12px;border:1px solid #edf0f6;border-radius:17px;background:linear-gradient(145deg,#f8faff,#fff9fa);text-align:left}
.chat-privacy-method{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;border:1px solid #e9edf5;border-radius:13px;background:#ffffffd9}
.chat-privacy-method-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:11px;background:#eef4ff;color:#3878e8;font-size:22px;font-weight:700}
.chat-privacy-method-icon.is-queued{background:#fff3e9;color:#e68a3d}
.chat-privacy-method strong{display:block;color:#263653;font-size:12px}
.chat-privacy-method p{margin:3px 0 0!important;color:#74829c!important;font-size:11px!important;line-height:1.55!important}
.chat-privacy-method-tag{padding:5px 8px;border-radius:999px;background:#f1f5ff;color:#5579bd;font-size:9px;font-weight:750;white-space:nowrap}
.chat-privacy-method.is-queued .chat-privacy-method-tag{background:#fff4e9;color:#bb7b37}
.chat-privacy-copy .chat-privacy-warning{margin:1px 3px 0;padding:7px 8px 1px;border-top:1px solid #eeeef4;color:#d95c62;font-size:11px;font-weight:700}
@media(max-width:480px){.chat-privacy-copy{padding:9px}.chat-privacy-method{grid-template-columns:32px minmax(0,1fr);gap:8px;padding:9px}.chat-privacy-method-icon{width:30px;height:30px}.chat-privacy-method-tag{grid-column:2;justify-self:start;margin-top:-2px}.chat-privacy-method p{font-size:10px!important}.chat-privacy-copy .chat-privacy-warning{font-size:10px}}
