:root{--foreground:#1b253b;--primary:#3866ee;--border:#e8ecf3}
*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--foreground);}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #93aaff;outline-offset:3px}input:focus,textarea:focus{outline:none}button{font:inherit}h1,h2,h3,p{margin:0}.messenger{display:grid;grid-template-columns:78px 340px minmax(0,1fr);height:100dvh;min-height:500px}.rail{background:#f7f9fe;border-right:1px solid var(--border);display:flex;align-items:center;flex-direction:column;padding:28px 12px;gap:38px}.brandmark{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;overflow:hidden;background:transparent}.brandmark img{display:block;width:100%;height:100%;object-fit:contain}.rail-active{background:#e9efff;color:#3866ee;width:46px;height:46px;display:grid;place-items:center;border-radius:14px}.rail-bottom{margin-top:auto;background:#e3e9f7;border:3px solid white;border-radius:50%;height:40px;width:40px;display:grid;place-items:center;font-size:14px;font-weight:bold}.chatlist{display:flex;flex-direction:column;background:white;border-right:1px solid var(--border);min-width:0}.list-header{display:flex;align-items:center;justify-content:space-between;padding:29px 25px 24px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:2px;color:#7a8497}h1{font-size:32px;font-weight:750;letter-spacing:-1.5px;line-height:1.2;margin-top:5px}h1 span{color:#3866ee}.icon-button{display:grid;place-items:center;border:0;background:transparent;color:#7a8599;border-radius:12px;width:40px;height:40px;flex-shrink:0}.icon-button:hover{background:#eff3ff;color:#3866ee}.search{display:flex;align-items:center;gap:10px;margin:0 22px 25px;background:#f4f6fa;border-radius:12px;padding:13px;color:#8a94a7}.search input{background:transparent;width:100%;min-width:0;border:0;font-size:14px;color:#1b253b}.list-label{display:flex;gap:9px;align-items:center;padding:0 26px 16px;font-size:14px;font-weight:600}.list-label span{background:#eef2fa;border-radius:7px;padding:1px 6px;color:#65718a;font-size:12px}.chat{display:flex;align-items:center;gap:13px;padding:16px 13px;margin:0 12px 6px;border-radius:14px;text-align:left;border:0;background:transparent;width:calc(100% - 24px);min-height:80px}.chat.active{background:#edf2ff}.chat:hover{background:#f2f5fc}.avatar{width:46px;height:46px;border-radius:17px;display:grid;place-items:center;flex-shrink:0;background:#e9edfa;color:#5167a3;font-weight:600}.avatar.saved{background:#dce7ff;color:#3866ee}.chat-text{flex:1;min-width:0}.chat strong{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat p{color:#7d879b;font-size:14px;margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.new-conversation{text-align:center;padding:50px 34px;margin:auto 0}.small-mark{display:grid;place-items:center;margin:0 auto 18px;width:48px;height:48px;border:1px solid #e9ecf4;border-radius:16px;color:#9ba9c5}.new-conversation h3{font-size:15px;font-weight:600}.new-conversation p{font-size:14px;line-height:1.7;color:#8993a5;margin:10px 0 18px}.text-button{color:#3866ee;font-size:14px;border:0;background:transparent;font-weight:600}.list-footer{font-size:12px;text-align:center;color:#9ba3b2;padding:22px;border-top:1px solid #f1f3f7}.conversation{display:flex;flex-direction:column;min-width:0;background:#f7f9fd}.conversation-header{display:flex;align-items:center;gap:13px;padding:23px 34px;background:#ffffffdf;border-bottom:1px solid var(--border)}.conversation-header h2{font-size:16px;font-weight:600}.conversation-header p{font-size:13px;color:#8893a7;margin-top:6px}.header-badge{margin-left:auto;background:#f2f5fa;border:1px solid #e9edf4;padding:6px 11px;border-radius:8px;font-size:12px;color:#7f8b9e}.messages{overflow:auto;flex:1;padding:26px 7%;display:flex;flex-direction:column;gap:13px}.date-divider{align-self:center;font-size:12px;background:#edf0f6;color:#8c96a7;padding:6px 13px;border-radius:9px;margin-bottom:15px}.welcome{margin:auto;text-align:center;padding:35px 10px 75px}.welcome-icon{display:grid;place-items:center;width:84px;height:84px;margin:0 auto 27px;background:#e8efff;color:#3866ee;border:8px solid #f0f4ff;border-radius:28px;transform:rotate(-7deg)}.welcome-icon svg{transform:rotate(7deg)}.welcome h2{font-size:25px;letter-spacing:-.65px;font-weight:600}.welcome p{font-size:16px;line-height:1.8;color:#8a94a8;margin-top:13px}.welcome-tags{display:flex;justify-content:center;gap:8px;margin-top:25px;flex-wrap:wrap}.welcome-tags span{font-size:12px;color:#8d98ab;border:1px solid #e4e9f2;background:#ffffff70;padding:7px 11px;border-radius:20px}.compose-area{padding:16px 6% 18px}.composer{display:flex;align-items:center;gap:12px;padding:12px;background:#fff;border:1px solid #e3e8f1;border-radius:18px;box-shadow:0 4px 20px #162b5604}.composer textarea{resize:none;border:0;min-width:0;flex:1;font:inherit;line-height:1.5;max-height:140px;background:transparent}.send{width:43px;height:43px;border:0;background:#3866ee;color:white;border-radius:13px;display:grid;place-items:center;flex-shrink:0}.send:hover{background:#2856df}.compose-hint{text-align:center;font-size:12px;color:#99a3b4;margin-top:12px}.back{display:none}@media(min-width:1600px){.messenger{grid-template-columns:88px 380px minmax(0,1fr)}}@media(max-width:900px){.messenger{grid-template-columns:290px minmax(0,1fr)}.rail{display:none}.conversation-header{padding:22px}.header-badge{display:none}}@media(max-width:640px){.messenger{display:block;min-height:0}.chatlist{height:100dvh}.conversation{height:100dvh;display:none}.messenger.open-chat .chatlist{display:none}.messenger.open-chat .conversation{display:flex}.back{display:grid}.conversation-header{padding:15px 12px;gap:10px}.conversation-header p{font-size:12px}.compose-area{padding:10px 12px max(12px,env(safe-area-inset-bottom))}.messages{padding:20px 16px}.compose-hint{display:none}.new-conversation{padding-top:40px}.welcome h2{font-size:23px}}
.chat-items{overflow:auto;flex-shrink:1}.chat-title{display:flex;align-items:center;gap:8px}.chat-title strong{flex:1}.chat-title time{font-size:12px;color:#8b96a9}.list-spacer{flex:1}.list-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.list-footer span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-footer a:hover{color:#3866ee}.header-text{min-width:0}.header-text h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-empty{text-align:center;color:#8a94a7;font-size:14px;margin-top:28px}.message-row{display:flex;flex-direction:column;align-items:flex-start;width:100%}.message-row.mine{align-items:flex-end}.bubble{background:white;border:1px solid #e9edf4;border-radius:17px 17px 17px 5px;padding:12px 15px 7px;max-width:min(78%,560px);min-width:86px;box-shadow:0 2px 4px #14284a03}.mine .bubble{background:#3866ee;color:white;border-color:#3866ee;border-radius:17px 17px 5px 17px}.bubble p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.6}.message-meta{display:flex;gap:5px;align-items:center;justify-content:flex-end;font-size:12px;opacity:.67;margin-top:3px}.message-date{font-size:12px;color:#8a95a7;margin:14px auto 24px}.photo-button{display:block;border:0;background:none;padding:0;width:100%}.photo-button img{max-height:340px;width:auto;max-width:100%;border-radius:10px;object-fit:contain;margin-bottom:6px}.attachment{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e3e8f1;border-radius:12px;margin-bottom:10px;padding:8px;font-size:14px}.attachment img{width:54px;height:54px;object-fit:cover;border-radius:8px}.attachment span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.error-bar{background:#fff0f0;color:#a42d3d;display:flex;align-items:center;gap:12px;border-radius:10px;padding:12px 15px;font-size:14px;margin-bottom:10px}.error-bar span{flex:1}.error-bar button{border:0;background:none}.older{align-self:center;color:#3866ee;background:#edf2ff;border:0;border-radius:10px;padding:9px 14px;font-size:14px}.new-dialog{border-radius:24px!important;padding:32px!important}.new-dialog h2{font-size:23px;letter-spacing:-.5px;margin-bottom:8px}.new-dialog form{display:flex;flex-direction:column;gap:14px;margin-top:10px}.new-dialog label{font-size:14px;font-weight:600}.new-dialog input{border:1px solid #dce3ef;border-radius:10px;padding:13px;font-size:16px}.new-dialog input:focus{border-color:#3866ee;box-shadow:0 0 0 3px #3866ee18}.primary-button{background:#3866ee;color:#fff;border:0;border-radius:11px;padding:13px 20px;font-size:15px;font-weight:600}.form-error{font-size:14px;color:#b93345}.sign-in{display:inline-block;margin-top:22px;text-decoration:none}.photo-dialog{max-width:min(90vw,900px)!important;background:#fff}.photo-dialog img{max-height:80dvh;max-width:100%;margin:auto;object-fit:contain}.spinner{width:18px;height:18px;border:2px solid #ffffff66;border-top-color:white;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.spinner{animation:none}}@media(max-width:640px){.bubble{max-width:90%}.header-text p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.welcome{padding-bottom:35px}}
.chat-preview{display:flex;align-items:center;gap:9px;min-width:0}.chat-preview p{flex:1;min-width:0}.chat.unread .chat-title strong{font-weight:850;color:#0874e8}.chat.unread .chat-preview p{color:#325276;font-weight:650}.unread-count{display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#087df1;color:#fff;font-size:11px;font-weight:800;line-height:1;box-shadow:0 4px 10px #087df12e}

.mobile-sign-in{margin:0 22px 15px;text-align:center;font-size:14px}.list-error{padding:14px 24px;color:#b93345;font-size:14px}.list-error button{display:block;margin-top:10px}

[hidden]{display:none!important}.auth-wrap{min-height:100dvh;display:grid;place-items:center;padding:24px}.auth-card{background:white;padding:32px;border:1px solid #e8ecf3;border-radius:24px;width:min(100%,400px)}.auth-card form{display:grid;gap:14px;margin-top:24px}.auth-card input{width:100%;padding:13px;border:1px solid #dce3ef;border-radius:10px;font:inherit}.auth-card label{display:grid;gap:8px;font-size:14px}.auth-card p{font-size:14px;color:#65718a;line-height:1.6;margin:16px 0}.auth-card .switch-auth{margin-top:18px;width:100%}.local-dialog{border:0;border-radius:20px;padding:28px;width:min(90vw,420px);box-shadow:0 20px 70px #0003}.local-dialog::backdrop{background:#17233b66}.local-dialog form{display:grid;gap:16px}.local-dialog input{padding:12px;border:1px solid #dce3ef;border-radius:10px;font:inherit}.local-dialog p{font-size:14px;color:#65718a;line-height:1.6}.rail-active{border:0}.welcome-icon,.avatar{font-size:24px}.brandmark{font-size:28px}.auth-error{color:#a42d3d!important}.messages{scroll-behavior:auto}.icon-button{font-size:23px}.send{font-size:23px}.photo-button img{display:block}.local-dialog h2{font-size:22px}

/* Brand artwork supplied for Puls. */
.brandmark{background:#fff url("/pulse-logo.png?v=full-icon") center/cover no-repeat;color:transparent;transform:none;overflow:hidden;box-shadow:0 6px 18px #1f5ff02b}
.brandmark svg{opacity:0}

/* Pulse brand guide: bright blue, navy type, soft waves and rounded surfaces. */
:root{--primary:#087df1;--foreground:#15335f;--border:#dceaf8;--secondary:#edf6ff;--accent:#e5f2ff;--muted:#f3f8fd;--muted-foreground:#6f86a3;--ring:#55a9ff}
body{color:#15335f}
.messenger{background:#edf5fc}
.rail{position:relative;overflow:hidden;background:linear-gradient(180deg,#0d89f8 0%,#0874e8 58%,#075dce 100%);border-right:0;box-shadow:12px 0 36px #1d69b91f}
.rail::after{content:"";position:absolute;width:150px;height:150px;left:-68px;bottom:70px;border:2px solid #ffffff24;border-radius:50%}
.brandmark{width:52px;height:52px;border-radius:18px;background:#fff url("/pulse-logo.png?v=full-icon") center/cover no-repeat;color:transparent;transform:none;overflow:hidden;box-shadow:0 10px 24px #074c9f42;z-index:1}
.brandmark svg{opacity:0}
.rail-active{position:relative;z-index:1;background:#ffffff24;color:#fff;border:1px solid #ffffff45;box-shadow:0 8px 20px #074c9f2e}
.rail-active:hover{background:#ffffff35}
.rail-bottom{position:relative;z-index:1;background:#fff;color:#0877e9;border-color:#d9edff;box-shadow:0 8px 20px #074c9f32}
.chatlist{border-right:0;box-shadow:12px 0 38px #315d8b12;z-index:2}
.list-header{padding:31px 27px 23px}.eyebrow{color:#087df1;letter-spacing:2.4px}h1{color:#15335f;font-weight:800}.list-header .icon-button{background:#087df1;color:#fff;border-radius:14px;box-shadow:0 8px 18px #087df133}.list-header .icon-button:hover{background:#056cda;color:#fff}
.search{background:#f1f7fd;border:1px solid #dceaf8;border-radius:16px;color:#087df1;padding:14px 15px}.search input::placeholder{color:#8297af}
.list-label{color:#325276}.list-label span{background:#e1f0ff;color:#0874e8}
.chat{border-radius:18px}.chat:hover{background:#f1f7fd}.chat.active{background:#e9f4ff;box-shadow:inset 4px 0 #087df1}
.avatar{background:#e8f3ff;color:#0874e8;border-radius:17px}.avatar.saved{background:#dceeff;color:#0874e8}
.conversation{position:relative;isolation:isolate;background:linear-gradient(180deg,#dbefff 0%,#bddcf6 58%,#adcfee 100%)}
.conversation::before,.conversation::after{content:"";position:absolute;z-index:-1;border:2px solid #a9d8ff30;border-radius:50%;pointer-events:none}
.conversation::before{width:520px;height:300px;right:-180px;bottom:-120px;transform:rotate(-14deg)}
.conversation::after{width:360px;height:220px;left:-120px;top:25%;transform:rotate(20deg)}
.conversation-header{background:#ffffffec;border-bottom:1px solid #dceaf8;backdrop-filter:blur(14px);padding:22px 34px}.conversation-header h2{color:#15335f;font-weight:700}.header-badge{background:#e6f3ff;border-color:#d4eaff;color:#0874e8;font-weight:700}
.date-divider{background:#dfeefa;color:#66809f}
.welcome-icon{background:linear-gradient(145deg,#1292fb,#0872e5);color:#fff;border-color:#ddecff;border-radius:28px;transform:none;box-shadow:0 14px 34px #087df12e}.welcome-icon svg{transform:none}.welcome h2{color:#15335f;font-weight:750}
.bubble{border-color:#dceaf8;border-radius:20px 20px 20px 7px;box-shadow:0 8px 24px #315d8b10}.mine .bubble{background:linear-gradient(145deg,#1292fb,#0873e7);border-color:#0878eb;border-radius:20px 20px 7px 20px;box-shadow:0 10px 24px #087df128}
.compose-area{background:linear-gradient(180deg,transparent,#eef6fd 35%)}.composer{border-color:#d7e8f7;border-radius:26px;padding:10px 11px 10px 14px;box-shadow:0 10px 32px #234f7f12}.send{background:linear-gradient(145deg,#1496fc,#0872e4);border-radius:50%;box-shadow:0 8px 18px #087df133}.send:hover{background:#056cda}
.primary-button{background:linear-gradient(135deg,#1393fb,#0870e1);border-radius:14px;box-shadow:0 10px 24px #087df12b}.text-button{color:#0876e7}
.auth-wrap{position:relative;overflow:hidden;background:linear-gradient(155deg,#1196fb 0%,#0874e8 58%,#064fbf 100%)}
.auth-wrap::before,.auth-wrap::after{content:"";position:absolute;border:2px solid #ffffff25;border-radius:50%}.auth-wrap::before{width:520px;height:280px;left:-220px;bottom:-90px;transform:rotate(16deg)}.auth-wrap::after{width:430px;height:250px;right:-190px;top:40px}
.auth-card{position:relative;z-index:1;border:1px solid #ffffffb5;border-radius:30px;box-shadow:0 28px 80px #063c8645;padding:36px;background:#fffffff5;backdrop-filter:blur(14px)}
.auth-card .brandmark{width:70px;height:70px;border-radius:23px;box-shadow:0 14px 30px #087df12e}.auth-card h1{margin-top:13px}.auth-card input{border-color:#d4e5f5;border-radius:14px;background:#f9fcff}.auth-card input:focus{border-color:#0d88f4;box-shadow:0 0 0 4px #0d88f418}
@media(max-width:900px){.chatlist{box-shadow:none}}
@media(max-width:640px){.list-header{padding-top:24px}.chat{margin-inline:10px;width:calc(100% - 20px)}.conversation-header{padding:14px 12px}.auth-card{padding:30px 26px;border-radius:26px}.auth-wrap{padding:18px}}

/* Account settings use the same shell and brand surfaces as chats. */
.account-login{max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.account-login:hover{text-decoration:underline}
#account-dialog.account-page{width:100%;height:100dvh;max-height:none;padding:0;overflow:hidden}
.account-main{min-height:0}.account-scroll{overflow:auto;flex:1;padding:32px clamp(20px,5vw,80px);display:flex;flex-direction:column;gap:24px}
.account-card{width:100%;max-width:720px;margin:0 auto;background:#ffffffed;border:1px solid var(--border);padding:28px;border-radius:24px;box-shadow:0 10px 32px #234f7f0c}
.account-card h3{font-size:20px;margin-bottom:20px;color:var(--foreground)}.account-card p{font-size:14px;line-height:1.6;color:var(--muted-foreground);margin:8px 0 18px;overflow-wrap:anywhere}
.account-card label{display:block;font-size:14px;font-weight:600;color:#325276}.account-card input{display:block;width:100%;margin:8px 0 18px;padding:14px 16px;border:1px solid #d4e5f5;border-radius:14px;background:#f9fcff;font:inherit;color:var(--foreground)}.account-card input:focus{border-color:#0d88f4;box-shadow:0 0 0 4px #0d88f418}
#account-email{background:#edf6ff;border:1px solid #dceaf8;border-radius:14px;padding:14px 16px;color:#15335f}.account-card .primary-button:hover{filter:brightness(.96)}#account-status:empty,#account-error:empty{display:none}
@media(min-width:641px){.account-sidebar{height:100dvh}}
@media(max-width:640px){#account-dialog.account-page{display:flex;flex-direction:column;min-height:0}.account-sidebar{height:auto;flex-shrink:0}.account-sidebar .list-header,.account-sidebar .list-label,.account-sidebar .chat,.account-sidebar .new-conversation{display:none}.account-sidebar .list-footer{padding:16px 20px}.account-main{display:flex;flex:1;height:auto}.account-scroll{padding:20px 16px;gap:16px}.account-card{padding:22px;border-radius:20px}.account-card .primary-button{width:100%}}

.account-heading{position:relative;justify-content:center;min-height:92px;padding:24px 170px}.account-heading h2{text-align:center;font-size:22px;line-height:1.35}.account-heading .header-badge{position:absolute;right:34px;margin:0}.account-profile-top{position:relative;min-height:112px;margin-bottom:22px;display:flex;align-items:center}.account-profile-top h3{margin:0;max-width:calc(50% - 64px)}.account-profile-avatar{position:absolute;left:50%;transform:translateX(-50%);display:grid;place-items:center;width:96px;height:96px;border-radius:50%;background:linear-gradient(145deg,#1496fc,#0872e4);color:white;font-size:30px;font-weight:700;border:6px solid #e0efff;box-shadow:0 10px 24px #087df126}@media(max-width:900px){.account-heading{padding:24px 20px}}@media(max-width:640px){.account-heading h2{font-size:20px}.account-profile-top{flex-direction:column;gap:18px;min-height:0}.account-profile-top h3{max-width:none;align-self:flex-start}.account-profile-avatar{position:static;transform:none}}

.settings-menu{display:grid;gap:6px;padding:20px 16px}.settings-menu button{display:flex;align-items:center;gap:14px;width:100%;padding:16px 14px;text-align:left;background:transparent;border:0;border-radius:16px;color:var(--foreground);font-size:15px;font-weight:600}.settings-menu button:hover,.settings-menu button.active{background:#e9f4ff;color:#087df1}.settings-menu button span:first-child{font-size:24px;color:#087df1;width:30px;text-align:center}.settings-menu button span:last-child{margin-left:auto;color:#8ca5bf}.settings-avatar{border-radius:50%;background:linear-gradient(145deg,#1496fc,#0872e4);color:#fff;font-size:18px}.account-sidebar .list-footer{margin-top:auto}@media(max-width:640px){.account-sidebar .settings-menu{display:flex;overflow-x:auto;padding:8px 12px;gap:6px}.settings-menu button{width:auto;flex-shrink:0;font-size:13px;padding:10px}.settings-menu button span:last-child{display:none}.account-sidebar #settings-profile{display:flex;min-height:60px;margin:10px;width:calc(100% - 20px)}.account-sidebar .list-footer{padding:10px 20px}}

#settings-saved span:first-child{font-size:0;width:30px;height:34px;flex-shrink:0;background:url("/settings-saved.png?v=1") center/contain no-repeat}

#settings-folders span:first-child{font-size:0;width:30px;height:34px;flex-shrink:0;background:url("/settings-folders.png?v=1") center/contain no-repeat}

.account-profile-avatar{padding:0;overflow:hidden;cursor:pointer}.account-profile-avatar img,.settings-avatar img,#avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.settings-avatar,#avatar{overflow:hidden}.avatar-upload{text-align:center;margin:0 0 24px}.avatar-upload p{font-size:12px;margin:8px 0}.account-profile-avatar:hover{box-shadow:0 0 0 4px #087df133}
.account-profile-avatar::after{content:"+";position:absolute;right:-2px;bottom:-2px;display:grid;place-items:center;width:30px;height:30px;border:3px solid #fff;border-radius:50%;background:#087df1;color:#fff;font-size:22px;font-weight:500;line-height:1;box-shadow:0 5px 14px #15335f35}
@media(max-width:640px){.account-profile-avatar::after{right:calc(50% - 53px);bottom:-2px}}
.settings-avatar{position:relative;cursor:pointer;overflow:visible}.settings-avatar::after{content:"+";position:absolute;right:-5px;bottom:-5px;display:grid;place-items:center;width:20px;height:20px;border:2px solid #fff;border-radius:50%;background:#087df1;color:#fff;font-size:15px;line-height:1}.settings-avatar-change{display:block;margin-top:5px;color:#087df1;font-size:12px;font-weight:700}.settings-avatar-change:hover{text-decoration:underline}

/* Keep the mobile account header below the iPhone status bar. */
@media(max-width:640px){.account-sidebar{padding-top:env(safe-area-inset-top)}}

/* Mobile account navigation is a separate vertical card. */
@media(max-width:640px){
  .account-sidebar .settings-menu{display:grid;grid-template-columns:1fr;overflow:visible;margin:6px 10px 14px;padding:8px;gap:4px;background:#f4f9ff;border:1px solid #dceaf8;border-radius:24px;box-shadow:0 10px 28px #234f7f0c}
  .account-sidebar .settings-menu button{width:100%;min-height:54px;flex-shrink:0;padding:12px 14px;border-radius:16px;font-size:15px}
  .account-sidebar .settings-menu button span:last-child{display:block;margin-left:auto}
}

.mobile-profile-hero{display:none}
.mobile-profile-page{display:none}
@media(max-width:640px){
  #account-dialog.account-page{overflow:hidden;overscroll-behavior:none}
  .account-sidebar{flex:1;height:100lvh;min-height:0;overflow-x:hidden;overflow-y:auto;background:#fff;overscroll-behavior-y:contain}
  .account-sidebar #settings-profile{display:none}
  .mobile-profile-hero{position:relative;display:flex;flex-direction:column;align-items:center;padding:8px 22px 20px}
  .mobile-profile-edit{align-self:flex-end;margin:0 0 2px;padding:8px 13px;border:1px solid #f1d5d9;border-radius:12px;background:#fff5f6;color:#b93345;font-size:14px;font-weight:700}
  .mobile-profile-avatar{display:grid;place-items:center;width:128px;height:128px;padding:0;overflow:hidden;border:6px solid #e1f0ff;border-radius:50%;background:linear-gradient(145deg,#1496fc,#0872e4);color:#fff;font-size:34px;font-weight:800;box-shadow:0 16px 38px #087df12b}
  .mobile-profile-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
  .mobile-profile-name{margin-top:14px;color:#15335f;font-size:25px;line-height:1.2}
  .mobile-profile-email{margin-top:5px;color:#7187a2;font-size:15px;overflow-wrap:anywhere;text-align:center}
  .mobile-avatar-change{display:flex;align-items:center;justify-content:flex-start;gap:14px;width:100%;min-height:66px;margin-top:22px;padding:14px 18px;border:1px solid #d8e9f8;border-radius:22px;background:#f5faff;color:#0874e8;font-size:16px;font-weight:750;text-align:left;box-shadow:0 9px 24px #234f7f0b}
  .mobile-avatar-change svg{flex:0 0 auto}
  .account-sidebar .settings-menu{margin-top:2px}
  .account-sidebar .list-footer{margin-top:10px}
  .account-sidebar .list-footer.account-footer{align-self:flex-start;width:auto;margin:4px 12px max(8px,env(safe-area-inset-bottom));padding:0;border:0;background:transparent}
  .account-footer .account-logout{display:none}
  .account-footer #account-close{padding:8px 11px;border:1px solid #d8e9f8;border-radius:12px;background:#f5faff;font-size:13px;line-height:1.2}
  .account-main{display:none!important}
  .mobile-profile-page{display:flex;flex:1;min-width:0;height:100lvh;flex-direction:column;overflow:hidden;background:linear-gradient(180deg,#f8fbff,#eef6fd)}
  .mobile-profile-page-header{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:10px;padding:max(10px,env(safe-area-inset-top)) 14px 10px;background:#ffffffd9;border-bottom:1px solid #dceaf8;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
  .mobile-profile-page-header button{display:grid;place-items:center;width:42px;height:42px;border:1px solid #d4e8fb;border-radius:50%;background:#e5f2ff;color:#0876e7;font-size:23px}
  .mobile-profile-page-header h2{text-align:center;color:#15335f;font-size:19px}
  .mobile-profile-page-body{display:flex;flex:1;min-height:0;flex-direction:column;align-items:center;padding:24px 20px max(20px,env(safe-area-inset-bottom));overflow-y:auto}
  .mobile-edit-avatar{display:grid;place-items:center;width:112px;height:112px;padding:0;overflow:hidden;border:6px solid #e1f0ff;border-radius:50%;background:linear-gradient(145deg,#1496fc,#0872e4);color:#fff;font-size:32px;font-weight:800;box-shadow:0 14px 34px #087df12b}
  .mobile-edit-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
  #mobile-edit-photo{margin:10px 0 22px}
  .mobile-profile-form{display:grid;gap:14px;width:100%;padding:20px;border:1px solid #dceaf8;border-radius:24px;background:#fffffff0;box-shadow:0 10px 30px #234f7f0c}
  .mobile-profile-form label{display:grid;gap:8px;color:#325276;font-size:14px;font-weight:700}
  .mobile-profile-form input{width:100%;padding:14px 16px;border:1px solid #d4e5f5;border-radius:14px;background:#f9fcff;color:#15335f;font:inherit;font-size:16px}
  .mobile-profile-form>p{padding:13px 15px;border-radius:14px;background:#edf6ff;color:#627b98;font-size:14px;overflow-wrap:anywhere}
  .mobile-profile-form .preference-status:empty{display:none}
  .mobile-profile-logout{width:100%;margin-top:18px;padding:15px;border:1px solid #f0d2d7;border-radius:18px;background:#fff5f6;color:#b93345;font-size:16px;font-weight:750}
}
.avatar,.contact-result-avatar,.in-app-notification-avatar{overflow:hidden}.avatar img,.contact-result-avatar img,.in-app-notification-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.chat>.avatar{width:46px;min-width:46px;max-width:46px;height:46px;min-height:46px;max-height:46px;flex:0 0 46px;contain:layout paint}.chat>.avatar img{width:46px;height:46px;max-width:none;max-height:none;transform:translateZ(0)}

.crop-dialog{width:min(92vw,440px);max-height:92dvh;overflow:auto;color:var(--foreground)}.crop-dialog h2{margin-bottom:12px}.crop-stage{position:relative;width:min(100%,320px);aspect-ratio:1;margin:20px auto;background:#edf6ff;overflow:hidden;border-radius:16px}.crop-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.crop-stage canvas:active{cursor:grabbing}.crop-mask{position:absolute;inset:0;pointer-events:none;border-radius:50%;box-shadow:0 0 0 100px #15335f88;border:2px solid #fff}.crop-dialog input[type=range]{width:100%;margin:12px 0 18px;accent-color:#087df1}.crop-actions{display:flex;justify-content:space-between;gap:12px;margin-top:16px}.crop-stage:focus-within{outline:3px solid #55a9ff;outline-offset:3px}

.composer #attach.attachment-circle{width:43px;height:43px;border-radius:50%;background:#e5f2ff;color:#0876e7;border:1px solid #d4e8fb;flex-shrink:0}.composer #attach.attachment-circle:hover{background:#d5eaff;color:#056cda}.attachment-circle svg{display:block}

.compose-area{position:relative}.attach-menu{position:absolute;left:6%;bottom:calc(100% - 12px);z-index:10;width:220px;padding:8px;background:#fff;border:1px solid #dceaf8;border-radius:20px;box-shadow:0 12px 40px #15335f24}.attach-menu button{display:flex;align-items:center;gap:14px;width:100%;padding:13px 14px;border:0;border-radius:12px;background:transparent;color:#15335f;font-size:15px;text-align:left}.attach-menu button svg{color:#087df1;flex-shrink:0}.attach-menu button:hover,.attach-menu button:focus-visible{background:#edf6ff}.attach-menu button:focus-visible{outline:2px solid #55a9ff;outline-offset:-2px}@media(max-width:640px){.attach-menu{left:12px}}

.file-download{display:block;color:inherit;text-decoration:none;font-size:14px;line-height:1.5;padding:10px 12px;border:1px solid currentColor;border-radius:12px;overflow-wrap:anywhere;margin:4px 0 8px}.file-download:hover{text-decoration:underline}

.file-image-preview{display:block;margin-bottom:10px}.file-image-preview img{display:block;width:auto;max-width:100%;max-height:260px;border-radius:12px;object-fit:contain}

.file-details{font-size:12px;line-height:1.5;opacity:.8;margin:4px 0 8px;overflow-wrap:anywhere}

.message-delete{display:block;margin:8px 0 0 auto;padding:4px 0;background:none;border:0;color:inherit;font-size:11px;opacity:.7}.message-delete:hover{opacity:1;text-decoration:underline}#delete-mode{font:inherit;padding:12px;border:1px solid #d4e5f5;border-radius:12px;background:#f9fcff;color:#15335f}

#edit-text{width:100%;resize:vertical;min-height:120px;max-height:45vh;padding:14px;font:inherit;border:1px solid #d4e5f5;border-radius:14px;color:#15335f;background:#f9fcff}#edit-text:focus{border-color:#087df1}

.message-context-menu{position:fixed;z-index:1000;min-width:190px;padding:6px;border:1px solid #dceaf8;border-radius:15px;background:white;box-shadow:0 12px 40px #15335f26}.message-context-menu button{display:block;width:100%;text-align:left;padding:12px 14px;border:0;background:none;border-radius:10px;color:#15335f;font-size:14px}.message-context-menu button:hover,.message-context-menu button:focus-visible{background:#edf6ff}.message-context-menu #message-menu-delete{color:#b93345}

/* Keep the app shell fixed; scroll history inside its own pane. */
html,body{height:100%;overflow:hidden}
.messenger{height:100dvh;min-height:0;overflow:hidden}
.messenger>.chatlist,.messenger>.conversation{min-height:0;overflow:hidden}
.conversation-header,.compose-area,.list-header,.search,.list-label,.list-footer{flex-shrink:0}
.messages{min-height:0;overflow-y:auto;overscroll-behavior:none;overflow-anchor:none}
.messages.resuming{opacity:0;pointer-events:none}
.chat-items{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.message-row{flex-shrink:0}
.auth-wrap{position:fixed;inset:0;width:100%;height:auto;min-height:0;overflow-y:auto}
.account-scroll{min-height:0;overscroll-behavior:contain}
@media(max-height:650px){.chatlist>.new-conversation{display:none}}

.bubble{padding:8px 11px;min-width:70px}.bubble p{font-size:16px;line-height:1.5}.bubble p::after{content:"";display:block;clear:both}.bubble p .message-meta{display:inline-block;float:right;white-space:nowrap;margin:8px 0 0 12px;font-size:10px;line-height:16px}.bubble>.message-meta{display:block;text-align:right;font-size:10px;margin-top:7px}

.bubble.photo-message,.mine .bubble.photo-message{background:transparent;border:0;box-shadow:none;padding:0;color:var(--foreground)}.photo-message .photo-button,.photo-message .file-image-preview{position:relative;display:block;width:fit-content;max-width:100%;overflow:hidden;border-radius:14px;margin-bottom:0}.photo-message .photo-button img,.photo-message .file-image-preview img{margin:0;border-radius:14px;display:block}.photo-message .photo-button .message-meta,.photo-message .file-image-preview .message-meta{position:absolute;right:8px;bottom:8px;left:auto;display:block;margin:0;padding:3px 7px;border-radius:7px;background:#12223999;color:white;font-size:10px;line-height:1.3;opacity:1;white-space:nowrap;pointer-events:none}.photo-message>p{padding:8px 3px 2px}.photo-message.has-message-text{padding:4px;border:1px solid #dceaf8;border-radius:18px;background:#fff;color:#15335f;box-shadow:0 8px 24px #315d8b12;overflow:hidden}.mine .photo-message.has-message-text{border-color:#0878eb;background:linear-gradient(145deg,#1292fb,#0873e7);color:#fff;box-shadow:0 10px 24px #087df128}.photo-message.has-message-text .photo-button,.photo-message.has-message-text .file-image-preview{border-radius:14px 14px 7px 7px}.photo-message.has-message-text .photo-button img,.photo-message.has-message-text .file-image-preview img{border-radius:14px 14px 7px 7px}.photo-message.has-message-text>p{width:100%;max-width:100%;margin:0;padding:10px 9px 8px;border:0;border-radius:0;background:transparent;color:inherit;box-shadow:none}.photo-message .file-details{margin-top:8px}

.emoji-toggle{font-size:27px;color:#0876e7;width:36px}.emoji-panel{position:absolute;bottom:calc(100% - 12px);left:6%;z-index:11;width:min(340px,calc(100vw - 24px));background:#fff;border:1px solid #dceaf8;border-radius:20px;padding:14px;box-shadow:0 12px 40px #15335f24}.emoji-heading{display:flex;justify-content:space-between;align-items:center;padding:0 4px 10px;font-size:14px}.emoji-heading button{font-size:24px}.emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;max-height:240px;overflow-y:auto}.emoji-choice{border:0;background:transparent;border-radius:9px;padding:7px 0;font-size:23px;line-height:1.2}.emoji-choice:hover,.emoji-choice:focus-visible{background:#e9f4ff}@media(max-width:640px){.emoji-panel{left:12px}.composer{gap:6px}.emoji-toggle{width:30px}}

.forwarded-label{font-size:13px;opacity:.8;margin:0 0 6px}#forward-chat{font:inherit;padding:12px;border:1px solid #d4e5f5;border-radius:12px;background:#f9fcff;color:#15335f;max-width:100%}

.message-link{color:inherit;text-decoration:underline;overflow-wrap:anywhere}.link-preview{display:flex;flex-direction:column;max-width:320px;margin:10px 0 5px;border-radius:12px;overflow:hidden;background:#ffffffeb;color:#15335f;text-decoration:none;border:1px solid #dceaf8}.link-preview img{display:block;width:100%;max-height:180px;object-fit:cover}.link-preview strong{padding:10px 12px 4px;font-size:14px;line-height:1.4;overflow-wrap:anywhere}.link-preview span{padding:0 12px 10px;font-size:12px;color:#6f86a3}.link-preview:hover{border-color:#55a9ff}

/* The history reaches the bottom of the chat and scrolls behind the fixed composer. */
.conversation{position:relative;height:100%;min-height:0;overflow:hidden}
.messages{padding-bottom:var(--composer-space,130px);scroll-padding-bottom:var(--composer-space,130px)}
.compose-area{position:absolute;z-index:20;right:0;bottom:0;left:0;background:linear-gradient(180deg,transparent 0,#eef6fd 24%,#eef6fd 100%)}
@media(max-width:640px){.messages{padding-bottom:var(--composer-space,100px)}}

.message-context-menu button{display:flex;align-items:center;gap:11px}.message-context-menu button svg{flex-shrink:0}.message-context-menu #message-menu-edit svg,.message-context-menu #message-menu-forward svg{color:#087df1}
.account-footer{align-items:center}.account-footer .account-logout{color:#b93345}.account-footer .account-logout:hover{text-decoration:underline}
.chatlist{position:relative}.create-menu{position:absolute;z-index:40;top:88px;right:18px;width:300px;padding:8px;background:#fff;border:1px solid #dceaf8;border-radius:20px;box-shadow:0 16px 48px #15335f26}.create-menu button{display:flex;align-items:center;gap:13px;width:100%;padding:12px;border:0;border-radius:13px;background:transparent;color:#15335f;text-align:left}.create-menu button:hover,.create-menu button:focus-visible{background:#edf6ff}.create-menu svg{width:24px;height:24px;flex:0 0 24px;fill:none;stroke:#087df1;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.create-menu span{display:grid;gap:3px}.create-menu strong{font-size:14px}.create-menu small{font-size:11px;color:#6f86a3}.create-info-dialog{text-align:center}.create-info-icon{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 18px;border-radius:20px;background:#e5f2ff;color:#087df1;font-size:24px;font-weight:700}.create-info-dialog h2{margin-bottom:10px}.create-info-dialog .primary-button{margin-top:20px;width:100%}@media(max-width:640px){.create-menu{top:78px;right:12px;left:12px;width:auto}}

/* Mobile chat state: matching top and bottom capsules, before edge-scroll experiments. */
.chat-edge-blur{display:none}
@media(max-width:640px){
  html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
  .messenger{height:100dvh;min-height:0;overflow:hidden}
  .conversation{position:relative;height:100dvh;min-height:0;overflow:hidden;--chat-header-space:78px;--chat-bottom-space:96px}
  .conversation-header{position:absolute;z-index:30;top:max(10px,env(safe-area-inset-top));right:10px;left:10px;display:grid;grid-template-columns:42px minmax(0,1fr) 42px;grid-template-areas:"back title avatar";align-items:center;gap:10px;min-height:58px;margin:0;padding:7px 10px;background:#ffffffa6;border:1px solid #d7e8f7cc;border-radius:28px;box-shadow:0 10px 32px #234f7f12;backdrop-filter:blur(26px) saturate(150%);-webkit-backdrop-filter:blur(26px) saturate(150%)}
  .conversation-header .back{grid-area:back;display:grid;justify-self:start;width:43px;height:43px;border:0;border-radius:50%;background:linear-gradient(145deg,#1496fc,#0872e4);color:#fff;font-size:23px;box-shadow:0 8px 18px #087df133}
  .conversation-header .back span{display:block;transform:rotate(180deg);line-height:1}
  .conversation-header .header-text{grid-area:title;min-width:0;text-align:center}
  .conversation-header .header-text h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .conversation-header .header-text p{display:block;margin-top:2px;font-size:11px;line-height:1.1}
  .conversation-header .header-badge{display:none}
  .conversation-header .avatar{grid-area:avatar;justify-self:end;width:42px;height:42px;border-radius:50%}
  .messages{position:absolute;z-index:1;inset:0;width:100%;height:100%;padding:calc(var(--chat-header-space) + env(safe-area-inset-top)) 12px calc(var(--composer-space,var(--chat-bottom-space)) + env(safe-area-inset-bottom));scroll-padding-top:calc(var(--chat-header-space) + env(safe-area-inset-top));scroll-padding-bottom:calc(var(--composer-space,var(--chat-bottom-space)) + env(safe-area-inset-bottom));overflow-x:hidden;overflow-y:auto;gap:10px}
  .chat-edge-blur{display:block;position:absolute;z-index:20;right:0;left:0;pointer-events:none;backdrop-filter:blur(5px) saturate(105%);-webkit-backdrop-filter:blur(5px) saturate(105%)}
  .chat-edge-blur-top{top:0;height:calc(var(--chat-header-space) + env(safe-area-inset-top));background:linear-gradient(180deg,#eef6fd70 0%,#eef6fd28 50%,transparent 100%);mask-image:linear-gradient(180deg,#000 0%,#000 50%,transparent 100%);-webkit-mask-image:linear-gradient(180deg,#000 0%,#000 50%,transparent 100%)}
  .chat-edge-blur-bottom{bottom:0;height:calc(var(--composer-space,var(--chat-bottom-space)) + env(safe-area-inset-bottom));background:linear-gradient(0deg,#eef6fd70 0%,#eef6fd28 50%,transparent 100%);mask-image:linear-gradient(0deg,#000 0%,#000 50%,transparent 100%);-webkit-mask-image:linear-gradient(0deg,#000 0%,#000 50%,transparent 100%)}
  .compose-area{position:absolute;z-index:30;right:0;bottom:0;left:0;width:100%;margin:0;padding:8px 10px max(8px,env(safe-area-inset-bottom));background:transparent;pointer-events:none}
  .compose-area>*{pointer-events:auto}
  .composer{width:100%;min-height:58px;margin:0;background:#ffffffa6;border-color:#d7e8f7cc;backdrop-filter:blur(26px) saturate(150%);-webkit-backdrop-filter:blur(26px) saturate(150%)}
  .composer textarea{font-size:16px;max-height:min(120px,25dvh)}
  .attach-menu,.emoji-panel{bottom:calc(100% + 2px);left:10px;max-height:min(54dvh,360px);overflow:auto}
}
.conversation-header .presence-online{color:#159447}
.conversation-header .presence-offline{color:#7187a2}
.conversation-header .presence-online::before,.conversation-header .presence-offline::before{content:"";display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;vertical-align:1px;background:currentColor}

.preference-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #e3edf7}.preference-copy{display:grid;gap:6px}.preference-copy strong{font-size:15px;color:#15335f}.preference-copy small{font-size:13px;line-height:1.45;color:#6f86a3}.preference-row input{appearance:none;width:48px;height:28px;flex:0 0 48px;margin:0;border:0;border-radius:20px;background:#cbd9e8;cursor:pointer;position:relative;transition:.18s}.preference-row input::after{content:"";position:absolute;width:22px;height:22px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 2px 6px #15335f30;transition:.18s}.preference-row input:checked{background:#087df1}.preference-row input:checked::after{transform:translateX(20px)}.preference-row input:focus-visible{outline:3px solid #55a9ff;outline-offset:3px}.preference-status{min-height:22px;margin-top:14px!important;color:#0874e8!important}
.contact-results{display:grid;gap:7px;max-height:230px;overflow-y:auto;margin:12px 0;padding:4px}.contact-search-hint{padding:14px;text-align:center;color:#7187a2}.contact-result{display:flex;align-items:center;gap:12px;width:100%;padding:10px;border:1px solid #deebf7;border-radius:14px;background:#f8fbff;color:#15335f;text-align:left;cursor:pointer}.contact-result:hover,.contact-result:focus-visible{border-color:#55a9ff;background:#edf6ff;outline:0}.contact-result-avatar{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:14px;background:#dceeff;color:#087df1;font-weight:900}.contact-result-copy{display:grid;gap:3px}.contact-result-copy strong{font-size:14px}.contact-result-copy small{font-size:11px;color:#7187a2}
.in-app-notification{position:fixed;z-index:2000;top:max(12px,calc(env(safe-area-inset-top) + 8px));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:11px;width:min(420px,calc(100vw - 24px));padding:11px 13px;border:1px solid #cfe4f8;border-radius:18px;background:#fffffff2;color:#15335f;text-align:left;box-shadow:0 14px 44px #15335f38;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.in-app-notification-avatar{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:14px;background:#087df1;color:#fff;font-size:13px;font-weight:800}.in-app-notification-copy{display:grid;gap:3px;min-width:0}.in-app-notification-copy strong,.in-app-notification-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.in-app-notification-copy strong{font-size:14px}.in-app-notification-copy small{font-size:12px;color:#627b98}




/* Let the application canvas occupy the complete iPhone viewport, including
   the lower safe-area. Keeping body fixed made iOS stop it above that area. */
html{width:100%;min-height:100%;min-height:100lvh;overflow:hidden}
body{position:relative;width:100%;height:100lvh;min-height:100lvh;overflow:hidden}
.auth-wrap:not([hidden]),#app.messenger:not([hidden]),#account-dialog.account-page:not([hidden]){position:absolute;inset:0;width:100%;height:100lvh;min-height:100lvh;max-height:none;margin:0}
@media(max-width:640px){.messenger,.chatlist,.conversation{height:100lvh}}

/* Interlocutor profile opened from the chat header. */
.profile-link{cursor:pointer}
.conversation-header .profile-link:focus-visible{outline:3px solid #55a9ff;outline-offset:3px;border-radius:14px}
.conversation-header .avatar.profile-link:focus-visible{border-radius:50%}
.contact-profile-dialog{width:min(92vw,520px);padding:0;border:0;border-radius:28px;background:linear-gradient(180deg,#f8fbff,#eef6fd);color:#15335f;box-shadow:0 24px 80px #15335f40;overflow:hidden}
.contact-profile-dialog::backdrop{background:#15335f66;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.contact-profile-header{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:10px;padding:14px;border-bottom:1px solid #dceaf8;background:#ffffffd9}
.contact-profile-header button{display:grid;place-items:center;width:42px;height:42px;border:1px solid #d4e8fb;border-radius:50%;background:#e5f2ff;color:#0876e7;font-size:23px}
.contact-profile-header h2{text-align:center;font-size:20px}
.contact-profile-body{display:flex;flex-direction:column;align-items:center;padding:30px 24px}
.contact-profile-avatar{display:grid;place-items:center;width:132px;height:132px;overflow:hidden;border:6px solid #e1f0ff;border-radius:50%;background:linear-gradient(145deg,#1496fc,#0872e4);color:#fff;font-size:36px;font-weight:800;box-shadow:0 16px 38px #087df12b}
.contact-profile-avatar img{width:100%;height:100%;object-fit:cover}
.contact-profile-body>h2{margin-top:16px;font-size:27px}
.contact-profile-body>p{margin-top:5px;color:#7187a2}
.contact-profile-card{display:grid;gap:5px;width:100%;margin:24px 0;padding:17px;border:1px solid #dceaf8;border-radius:20px;background:#fff}
.contact-profile-card span{font-size:13px;color:#7187a2}
.contact-profile-card strong{font-size:16px}
.contact-profile-body>.primary-button{width:100%}
.chat-bottom{position:absolute;z-index:28;right:24px;bottom:calc(var(--composer-space,130px) + 14px);display:grid;place-items:center;width:43px;height:43px;padding:0;border:0;border-radius:50%;background:#fff;color:#087df1;font-size:23px;font-weight:800;line-height:1;box-shadow:0 8px 18px #087df133;cursor:pointer;transition:opacity .18s,transform .18s,background .18s}
.chat-bottom span{display:block;transform:rotate(90deg);line-height:1}
.chat-bottom[hidden]{display:none}
.chat-bottom-count{position:absolute;right:-7px;top:-8px;min-width:22px;height:22px;padding:0 5px;display:grid;place-items:center;border-radius:12px;background:#087df1;color:#fff;font-size:12px;line-height:1;box-shadow:0 2px 7px #087df133}
.chat-bottom-count[hidden]{display:none}
.chat-bottom:hover{transform:translateY(-2px);background:#eaf5ff}
.chat-bottom:focus-visible{outline:3px solid #55a9ff;outline-offset:3px}
@media(max-width:640px){
  .contact-profile-dialog{position:fixed;inset:0;width:100%;height:100lvh;max-width:none;max-height:none;margin:0;border-radius:0}
  .contact-profile-header{padding:max(10px,env(safe-area-inset-top)) 14px 10px}
  .contact-profile-body{padding:36px 20px max(22px,env(safe-area-inset-bottom))}
  .chat-bottom{right:18px;bottom:calc(var(--composer-space,var(--chat-bottom-space)) + env(safe-area-inset-bottom) + 8px);width:43px;height:43px}
}

/* Buttons keep their own shape without an extra focus ring after tapping. */
button:focus,button:focus-visible,[role="button"]:focus,[role="button"]:focus-visible{outline:none!important;outline-offset:0!important}

/* Date labels remain visible for the messages of their day and hand off to the next date. */
.message-date{position:sticky;z-index:8;top:8px;align-self:center;margin:8px auto 12px;padding:5px 11px;border:1px solid #cfe3f5;border-radius:14px;background:#e6f3ffeb;color:#587694;font-size:12px;line-height:1.2;box-shadow:0 5px 16px #234f7f12;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
@media(max-width:640px){.message-date{top:auto}}

.message-date{position:relative;top:auto}
.chat-date{position:absolute;z-index:29;top:86px;left:50%;transform:translateX(-50%);padding:5px 11px;border:1px solid #cfe3f5;border-radius:14px;background:#e6f3fff2;color:#587694;font-size:12px;line-height:1.2;white-space:nowrap;box-shadow:0 5px 16px #234f7f12;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);pointer-events:none}
@media(max-width:640px){.chat-date{top:calc(max(10px,env(safe-area-inset-top)) + 66px)}}

/* Main screen title stays centered while the create button remains on the right. */
.list-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center}
.list-header>div{grid-column:2;text-align:center}
.list-header h1{margin-top:0}
.list-header #new-chat{grid-column:3;justify-self:end}
@media(max-width:640px){.chatlist>.list-header{padding-top:max(24px,calc(env(safe-area-inset-top) + 18px))}}

.list-footer .account-login{display:grid;place-items:center;width:43px;height:43px;max-width:none;padding:0;border:0;border-radius:50%;background:linear-gradient(145deg,#1496fc,#0872e4);color:#fff;-webkit-text-fill-color:#fff;font-family:Arial,"Helvetica Neue",sans-serif;font-size:36px;line-height:1;box-shadow:0 8px 18px #087df133;text-decoration:none}
.list-footer .account-login:hover{background:#056cda;color:#fff;text-decoration:none}
@media(max-width:640px){.chatlist .create-menu{top:calc(env(safe-area-inset-top) + 92px)}}
@media(max-width:640px){.search input{font-size:16px}}

/* Audio calls */
.call-button{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border:0;border-radius:50%;background:linear-gradient(145deg,#1496fc,#0872e4);color:#fff;box-shadow:0 8px 18px #087df133}
.call-button:hover{background:#056cda}.call-button:active{transform:scale(.96)}
.call-dialog{width:min(92vw,390px);padding:34px 28px 30px;border:1px solid #d9eaf8;border-radius:30px;background:#f5faff;text-align:center;color:#15335f;box-shadow:0 25px 80px #12345f38}
.call-dialog::backdrop{background:#0b2f5688;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.call-avatar{display:grid;place-items:center;width:104px;height:104px;margin:0 auto 22px;border-radius:50%;overflow:hidden;background:#dfeeff;color:#087df1;font-size:34px;font-weight:700;box-shadow:0 12px 30px #087df126}
.call-avatar img{width:100%;height:100%;object-fit:cover}.call-dialog h2{font-size:26px}.call-dialog>p{min-height:24px;margin-top:9px;color:#6d84a0;font-size:16px}
.call-actions{display:flex;justify-content:center;gap:30px;margin-top:34px}.call-action{display:grid;place-items:center;width:64px;height:64px;border:0;border-radius:50%;color:#fff;box-shadow:0 10px 24px #12345f22}.call-action svg{display:block}.call-end{background:#e84752;transform:rotate(135deg)}.call-accept{background:#28ad66}.call-action:active{scale:.95}
@media(max-width:640px){
  .conversation-header{grid-template-columns:42px minmax(0,1fr) 42px 42px;grid-template-areas:"back title call avatar"}
  .conversation-header .call-button{grid-area:call;width:42px;height:42px;justify-self:end}
  .call-dialog{width:calc(100vw - 34px);padding-top:38px}
}

/* Main chat-list wordmark */
.chatlist-brand{display:flex;align-items:center;min-width:0}
.puls-wordmark{display:block;width:150px;max-width:42vw;height:auto;object-fit:contain;object-position:left center}
@media(max-width:640px){.puls-wordmark{width:176px;max-width:52vw}}
.chatlist>.list-header .chatlist-brand{justify-content:center;width:100%}
.chatlist>.list-header .puls-wordmark{object-position:center center}
.presence-typing{color:#087df1!important;font-weight:700}
@media(max-width:640px){
  .conversation-header .header-text{
    position:absolute;
    z-index:2;
    top:50%;
    left:50%;
    width:calc(100% - 196px);
    min-width:92px;
    text-align:center;
    transform:translate(-50%,-50%);
  }
  .conversation-header .back,.conversation-header .call-button,.conversation-header .avatar{position:relative;z-index:3}
}
@media(min-width:641px){
  .conversation-header{position:relative}
  .conversation-header .header-text{
    position:absolute;
    z-index:2;
    top:50%;
    left:50%;
    width:min(46%,420px);
    text-align:center;
    transform:translate(-50%,-50%);
  }
  .conversation-header .call-button{margin-left:auto}
  .conversation-header .header-badge{margin-left:8px}
}

/* Пошаговое создание профиля */
.register-progress{display:flex;align-items:center;justify-content:center;gap:10px;margin:25px 0 4px}.register-progress span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e7f1fb;color:#7d93aa;font-size:14px;font-weight:800;transition:background .2s ease,color .2s ease,transform .2s ease}.register-progress span.active{background:#0c85f3;color:#fff;transform:scale(1.08);box-shadow:0 7px 18px #087df133}.register-progress span.complete{background:#b9dcfb;color:#0875df}.register-progress i{width:42px;height:3px;border-radius:4px;background:#dceaf7}.register-avatar-step{display:grid;justify-items:center;gap:11px;padding:6px 0 2px;text-align:center}.register-avatar-step strong{font-size:20px;color:#163863}.register-avatar-step small{max-width:300px;color:#72849a;font-size:13px;line-height:1.5}.register-avatar-preview{display:grid;place-items:center;width:118px;height:118px;border:5px solid #dceeff;border-radius:50%;overflow:hidden;background:linear-gradient(145deg,#ecf7ff,#d8ecff);color:#1688ef;font-size:42px;box-shadow:0 12px 30px #087df11f}.register-avatar-preview img{display:block;width:100%;height:100%;object-fit:cover}.avatar-choose{border:0;border-radius:999px;padding:11px 18px;background:#e7f3ff;color:#0878e4;font-weight:700}.auth-flow-actions{display:flex;align-items:center;gap:10px}.auth-flow-actions .primary-button{flex:1}.auth-step-back{min-height:45px;padding:0 13px;border-radius:12px;background:#edf5fc}.auth-card:has(.register-progress:not([hidden])){width:min(100%,440px)}
@media(max-width:640px){.auth-wrap{align-items:start;padding:max(18px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom))}.auth-card{max-height:calc(100dvh - max(36px,env(safe-area-inset-top)) - max(18px,env(safe-area-inset-bottom)));overflow-y:auto;overscroll-behavior:contain}.register-progress{margin-top:20px}.register-avatar-preview{width:108px;height:108px}}


@media(max-width:640px){
 .messenger>.chatlist{position:relative;padding-bottom:calc(72px + env(safe-area-inset-bottom));}
 .messenger>.chatlist>.list-footer{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;align-items:center;justify-content:flex-start;min-height:72px;margin:0;padding:14px 22px calc(14px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #f1f3f7;}
 .messenger>.chatlist>.list-footer>.account-login{display:grid;visibility:visible;opacity:1;width:43px;height:43px;flex:0 0 43px;}
}

#incoming-call-banner{z-index:2147483647;top:calc(env(safe-area-inset-top) + 10px);padding:16px;color:#15335f}#incoming-call-banner[hidden]{display:none}

.settings-section-back{display:none}
@media(max-width:640px){
 #account-dialog.settings-section-open>.account-sidebar,#account-dialog.settings-section-open>.mobile-profile-page{display:none!important}
 #account-dialog.settings-section-open>.account-main{display:flex!important;flex-direction:column;height:100dvh;width:100%;min-height:0;overflow:hidden}
 #account-dialog.settings-section-open .settings-section-back{display:block;flex-shrink:0;align-self:flex-start;padding:16px 18px;margin-top:env(safe-area-inset-top);font-size:16px}
 #account-dialog.settings-section-open .account-scroll{display:flex;flex:1;min-height:0;overflow-y:auto;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
}

/* Notification preferences: shared phone and desktop layout. */
#account-dialog.notifications-open .account-heading,
#account-dialog.notifications-open .settings-section-back{display:none!important}
#account-dialog.notifications-open .account-scroll{background:#fff;padding:calc(18px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));gap:0}
.notification-settings.account-card{width:100%;max-width:680px;margin:0 auto;padding:0;border:0;box-shadow:none;background:transparent;border-radius:0;color:#102d63}
.notification-top{position:relative;display:flex;align-items:center;justify-content:center;min-height:64px;margin:0 0 22px}
.notification-logo{width:140px;height:auto;display:block}
.notification-back{position:absolute;left:0;top:8px;width:44px;height:44px;display:grid;place-items:center;border:1px solid #edf4fc;border-radius:15px;background:white;color:#0889fb;box-shadow:0 5px 14px #234c7a0c;cursor:pointer;padding:0}
.notification-back .notification-icon{background:none;width:24px;height:24px;border-radius:0}
.notification-title{font-size:25px!important;line-height:1.2;margin:0 4px 10px!important;letter-spacing:-.4px}
.notification-subtitle{font-size:16px!important;line-height:1.4;color:#8899b2!important;margin:0 4px 18px!important}
.notification-group{background:linear-gradient(115deg,#edf6ff,#f5f9fd);border-radius:24px;overflow:hidden;margin-bottom:16px}
.notification-settings .preference-row{display:flex;align-items:center;gap:14px;padding:16px 13px;margin:0;border:0;background:none;position:relative;cursor:pointer}
.notification-settings .preference-row+.preference-row:before{content:'';position:absolute;left:76px;right:16px;top:0;height:1px;background:#e7f0fa}
.notification-icon{flex:0 0 auto;width:46px;height:46px;border-radius:16px;background:#e0f0ff;display:grid;place-items:center;color:#008aff}
.notification-icon svg{width:26px;height:26px;display:block}
.notification-settings .preference-copy{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.notification-settings .preference-copy strong{font-size:16px;line-height:1.25;color:#102d63}
.notification-settings .preference-copy small{font-size:14px;line-height:1.35;color:#7d91af}
.notification-settings input[type=checkbox]{appearance:none;-webkit-appearance:none;flex:0 0 51px;width:51px;height:30px;min-height:0;padding:0;margin:0;border:0;border-radius:30px;background:#ced9e7;position:relative;cursor:pointer;transition:background .18s}
.notification-settings input[type=checkbox]:after{content:'';position:absolute;width:26px;height:26px;border-radius:50%;background:white;top:2px;left:2px;box-shadow:0 2px 5px #163e6a26;transition:transform .18s}
.notification-settings input[type=checkbox]:checked{background:linear-gradient(110deg,#169fff,#0085ff)}
.notification-settings input[type=checkbox]:checked:after{transform:translateX(21px)}
.notification-settings input:focus-visible,.notification-settings button:focus-visible,.notification-settings select:focus-visible{outline:2px solid #008aff;outline-offset:3px}
.notification-section{font-size:19px;margin:18px 3px 10px;font-weight:700;color:#102d63}
.notification-tone{border:0;border-radius:0;background:transparent;color:#7d91af;font:inherit;font-size:14px;padding:0 20px 0 0;width:100%;min-height:26px;cursor:pointer}
.notification-volume{appearance:none;-webkit-appearance:none;width:100%;height:6px!important;min-height:0!important;border:0!important;padding:0!important;margin:12px 0 8px!important;border-radius:8px;background:linear-gradient(to right,#008aff 0 var(--volume),#dce7f3 var(--volume) 100%);cursor:pointer}
.notification-volume::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;border-radius:50%;background:#fff;border:0;box-shadow:0 3px 8px #28456a30}
.notification-volume::-moz-range-thumb{width:24px;height:24px;border-radius:50%;background:#fff;border:0;box-shadow:0 3px 8px #28456a30}
.notification-actions{display:flex;flex-direction:column;padding:14px;gap:8px}
.notification-actions button{width:100%;min-height:42px;border-radius:14px;font-size:15px;margin:0}
.notification-settings .preference-status{font-size:14px;line-height:1.5;color:#7d91af;margin:12px 5px;overflow-wrap:anywhere}
.notification-settings .preference-status:empty{display:none}
@media(min-width:641px){#account-dialog.notifications-open .account-scroll{padding:28px 30px}.notification-logo{width:170px}.notification-title{font-size:30px!important}.notification-settings .preference-row{padding:20px}.notification-icon{width:54px;height:54px}}


.composer textarea{height:28px;min-height:28px;overflow-y:hidden;box-sizing:border-box}
.composer{align-items:flex-end}
.composer .send,.composer .attachment-circle,.composer .emoji-toggle{flex-shrink:0}

@media(max-width:640px){.messages{touch-action:pan-y pinch-zoom}}

.encryption-content{display:flex;flex-direction:column;gap:18px}.encryption-content p,.encryption-dialog p{line-height:1.5;overflow-wrap:anywhere}.encryption-recovery{width:100%;min-height:95px;padding:14px;border:1px solid #dce8f7;border-radius:14px;background:#f3f8ff;color:#163765;font:16px/1.5 monospace;resize:vertical}.encryption-label{display:flex;flex-direction:column;gap:12px}.encryption-confirm{display:flex;align-items:center;gap:10px;font-size:15px}.encryption-fingerprint{padding:16px;border-radius:14px;background:#edf5ff;color:#154372;font:16px/1.7 monospace;white-space:normal;user-select:text}.encryption-dialog{max-height:85dvh;overflow:auto}.encryption-dialog button{margin:10px 0;width:100%}.chat-encryption{color:#8498b4;font-size:24px}.chat-encryption.encrypted{color:#087df1}

.chat-encryption{position:absolute;z-index:29;top:86px;right:24px;width:32px;height:28px;border-radius:14px;border:1px solid #d4e6f7;background:#edf5fff2;color:#8498b4;box-shadow:0 5px 16px #234f7f12}.chat-encryption svg{display:block}.chat-encryption.encrypted{color:#087df1}
@media(max-width:640px){.chat-encryption{top:calc(max(10px,env(safe-area-inset-top)) + 66px);right:18px}}

/* List gestures keep scrolling vertical and reveal actions inside each row. */
.chat-swipe{position:relative;overflow:hidden;flex-shrink:0;border-radius:18px;margin:0 10px;isolation:isolate;touch-action:pan-y}
.chat-swipe>.chat{position:relative;z-index:1;width:100%;margin:0;background:#fff;transition:transform .2s ease}
.chat-swipe>.chat.active{background:#e9f4ff}
#chats .chat,#chats .chat:hover,#chats .chat.active{background:#fff;box-shadow:none}
#chats .chat,#chats .chat *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
#chats .chat{min-height:64px;padding:9px 12px;gap:13px}
#chats .chat p{margin-top:4px}
.chat-swipe.dragging>.chat{transition:none}
.chat-swipe-actions{position:absolute;inset:0 0 0 auto;width:180px;display:flex;visibility:hidden}
.chat-swipe.actions-open .chat-swipe-actions,.chat-swipe.dragging .chat-swipe-actions{visibility:visible}
.chat-swipe-actions button{width:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:0;padding:8px;color:#fff;font-size:11px;line-height:1.2;cursor:pointer}
.chat-mute{background:#087df1}.chat-remove,.chat-confirm-delete{background:#e34d61}
.chat-swipe-actions svg,.chat-muted svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.chat-muted{color:#8c9daf;display:flex}.chat-muted svg{width:16px;height:16px}
.chat-delete-dialog{display:none}.chat-delete-dialog[open]{display:grid;gap:16px}
@media(prefers-reduced-motion:reduce){.chat-swipe>.chat{transition:none}}

.pinned-message{position:absolute;z-index:29;top:86px;left:14px;right:66px;display:flex;align-items:center;height:48px;border-radius:16px;border:1px solid #d4e7fa;background:#e9f4fff2;box-shadow:0 5px 16px #234f7f12;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.pinned-message button{border:0;background:transparent;color:#087df1;cursor:pointer}
#pinned-open{display:grid;gap:3px;flex:1;min-width:0;padding:7px 12px;text-align:left;border-left:3px solid #087df1;border-radius:12px}
#pinned-open strong{font-size:11px}#pinned-preview{font-size:12px;color:#587694;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#pinned-remove{width:32px;height:40px;font-size:24px}.chat-date.has-pin{top:142px}
.message-highlight .bubble{box-shadow:0 0 0 3px #8ccfff;transition:box-shadow .2s}
.bubble{-webkit-touch-callout:none}
@media(max-width:640px){.pinned-message{top:calc(max(10px,env(safe-area-inset-top)) + 66px)}.chat-date.has-pin{top:calc(max(10px,env(safe-area-inset-top)) + 122px)}}

/* Message gestures open actions without native text selection or tap tint. */
.bubble,.bubble *,button,button *,[role="button"]{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.bubble:focus,.bubble:focus-visible{outline:none}

.reply-composer{display:flex;align-items:center;gap:10px;padding:9px 12px;margin-bottom:8px;border-radius:16px;background:#e7f3fff2;border-left:3px solid #087df1}
.reply-composer>div{display:grid;gap:4px;min-width:0;flex:1}.reply-composer strong{font-size:12px;color:#087df1}.reply-composer span{font-size:13px;color:#587694;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.message-reply-quote{display:grid;gap:4px;text-align:left;max-width:100%;width:100%;border:0;border-left:3px solid #087df1;border-radius:7px;padding:7px 9px;margin-bottom:7px;background:#dbeeff;color:#15335f}
.message-reply-quote strong{font-size:12px}.message-reply-quote span{font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.mine .message-reply-quote{color:#fff;border-color:#fff;background:#ffffff24}.message-row{position:relative}.reply-swiping::after{content:'';position:absolute;right:12px;top:calc(50% - 18px);width:36px;height:36px;border-radius:50%;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5-6 5 6 5M3 10h10a7 7 0 0 1 7 7v2'/%3E%3C/svg%3E") center/22px 22px no-repeat,linear-gradient(145deg,#1496fc,#0872e4);box-shadow:0 6px 14px #087df133;pointer-events:none}

.settings-menu .profile-notifications-icon{display:block;width:36px;height:36px;max-width:none;object-fit:contain;margin-left:-3px}

.message-receipt{display:inline-block;margin-left:4px}.message-receipt.read{letter-spacing:-4px;padding-right:4px}

/* Keep the selected bubble above the blurred page without moving the chat. */
.message-menu-backdrop{position:fixed;inset:0;z-index:2400;background:#15335f30;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);touch-action:none}
.message-menu-backdrop[hidden]{display:none}
.message-menu-preview{position:fixed!important;z-index:2401;margin:0!important;pointer-events:none;user-select:none}
.message-menu-preview .bubble{box-shadow:0 0 0 2px #7fc8ff,0 12px 34px #15335f38}
.message-context-menu{z-index:2402}

.message-context-menu button svg{width:19px;height:19px;color:#087df1;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

.message-context-menu #message-menu-delete svg{color:#b93345}

:is(#bottom-navigation,#profile-navigation,.puls-calls-navigation){display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:10px 22px 14px;padding:8px;background:#f1f7fd;border:1px solid #dceaf8;border-radius:16px;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
:is(#bottom-navigation,#profile-navigation,.puls-calls-navigation) .bottom-nav-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;width:100%;height:52px;padding:4px 0;border:0;border-radius:14px;background:transparent;color:#7892ad;font:11px Arial,Helvetica,sans-serif;cursor:pointer}
:is(#bottom-navigation,#profile-navigation,.puls-calls-navigation) .bottom-nav-button svg{width:25px;height:25px;flex-shrink:0}
:is(#bottom-navigation,#profile-navigation,.puls-calls-navigation) .bottom-nav-button span{white-space:nowrap}
:is(#bottom-navigation,#profile-navigation,.puls-calls-navigation) .bottom-nav-button.active{color:#087df1;background:#e9f4ff}
:is(#bottom-navigation,#profile-navigation,.puls-calls-navigation) #my-name svg{background:#087df1;border-radius:50%;padding:2px}
.nav-call-contacts{display:grid;gap:8px;margin:16px 0}
@media(max-width:640px){.messenger>.chatlist{padding-bottom:calc(88px + env(safe-area-inset-bottom))}.messenger>.chatlist>:is(#bottom-navigation,#profile-navigation,.puls-calls-navigation){left:22px;right:22px;bottom:max(10px,env(safe-area-inset-bottom));min-height:68px;margin:0;padding:8px;border:1px solid #dceaf8;border-radius:16px;background:#f1f7fd}}

:is(#bottom-navigation,#profile-navigation,.puls-calls-navigation) .bottom-nav-button{height:62px;gap:5px;color:#527497}
:is(#bottom-navigation,#profile-navigation,.puls-calls-navigation) .bottom-nav-button svg{width:36px;height:36px;padding:8px;border-radius:50%;background:linear-gradient(145deg,#1496fc,#0872e4);color:#fff;stroke-width:1.8;box-shadow:0 5px 12px #087df12b}
:is(#bottom-navigation,#profile-navigation,.puls-calls-navigation) #my-name svg{width:36px;height:36px;padding:7px;border-radius:50%;background:linear-gradient(145deg,#1496fc,#0872e4);box-shadow:0 5px 12px #087df12b}
:is(#bottom-navigation,#profile-navigation,.puls-calls-navigation) .bottom-nav-button.active{background:transparent;color:#087df1}
:is(#bottom-navigation,#profile-navigation,.puls-calls-navigation) .bottom-nav-button.active svg{box-shadow:0 0 0 3px #cce8ff,0 5px 12px #087df12b}
@media(max-width:640px){.messenger>.chatlist{padding-bottom:calc(98px + env(safe-area-inset-bottom))}.messenger>.chatlist>:is(#bottom-navigation,#profile-navigation,.puls-calls-navigation){min-height:78px}}

#account-dialog>#profile-navigation{position:absolute;z-index:40;left:22px;right:22px;bottom:max(10px,env(safe-area-inset-bottom));margin:0;padding:8px;min-height:78px}
#profile-navigation #profile-nav-settings svg{width:36px;height:36px;padding:7px;background:linear-gradient(145deg,#1496fc,#0872e4);border-radius:50%}
#account-dialog .account-footer{display:none}
#account-dialog .account-sidebar,#account-dialog .account-scroll,#account-dialog .mobile-profile-page-body{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
@media(min-width:641px){#account-dialog>#profile-navigation{right:auto;width:296px;left:100px}}

#account-dialog>.profile-logout-puls{position:absolute;z-index:45;top:calc(12px + env(safe-area-inset-top));right:22px;display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 14px;border:0;border-radius:20px;background:linear-gradient(145deg,#1496fc,#0872e4);color:white;font:700 14px Arial,Helvetica,sans-serif;box-shadow:0 6px 16px #087df12b;cursor:pointer}
#account-dialog .mobile-profile-logout{display:none}
#account-dialog .account-heading{padding-right:140px}
@media(max-width:640px){#account-dialog .mobile-profile-hero{padding-top:56px}#account-dialog .mobile-profile-page-header{padding-right:135px}}

#account-dialog>.profile-logout-puls{display:none}
#account-dialog:has(#mobile-profile-page:not([hidden]))>.profile-logout-puls{display:flex}
@media(max-width:640px){#account-dialog .mobile-profile-hero{padding-top:8px}}

@media(max-width:640px){
 #account-dialog .mobile-profile-page{position:relative;isolation:isolate;height:100%;overflow:hidden}
 #account-dialog .mobile-profile-page-header{position:absolute;z-index:30;top:max(10px,env(safe-area-inset-top));left:22px;right:22px;display:grid;grid-template-columns:36px minmax(0,1fr) 84px;gap:6px;min-height:78px;padding:8px;border:1px solid #dceaf8;border-radius:16px;background:#f1f7fdec;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
 #account-dialog .mobile-profile-page-header h2{font-size:16px;line-height:1.2}
 #account-dialog .mobile-profile-page-header #mobile-profile-back{width:36px;height:36px;border:0;background:linear-gradient(145deg,#1496fc,#0872e4);color:white;box-shadow:0 5px 12px #087df12b}
 #account-dialog .mobile-profile-page-header .profile-logout-puls{display:flex;align-items:center;justify-content:center;gap:4px;height:36px;padding:6px 8px;border:0;border-radius:18px;background:linear-gradient(145deg,#1496fc,#0872e4);color:white;font:700 12px Arial,Helvetica,sans-serif;box-shadow:0 5px 12px #087df12b}
 #account-dialog .mobile-profile-page-body{position:absolute;z-index:1;inset:0;width:100%;height:100%;padding:calc(108px + env(safe-area-inset-top)) 20px calc(112px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scroll-behavior:auto}
 #account-dialog .mobile-profile-page-body>*{flex-shrink:0}
 .profile-edit-blur{position:absolute;z-index:20;left:0;right:0;pointer-events:none;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
 .profile-edit-blur-top{top:0;height:calc(104px + env(safe-area-inset-top));mask-image:linear-gradient(#000 70%,transparent);-webkit-mask-image:linear-gradient(#000 70%,transparent)}
 .profile-edit-blur-bottom{bottom:0;height:calc(108px + env(safe-area-inset-bottom));mask-image:linear-gradient(transparent,#000 40%);-webkit-mask-image:linear-gradient(transparent,#000 40%)}
}

@media(max-width:640px){
 #account-dialog .mobile-profile-page-header{grid-template-columns:84px minmax(0,1fr) 84px;align-items:center;gap:6px}
 #account-dialog .mobile-profile-page-header #mobile-profile-back{justify-self:start;align-self:center}
 #account-dialog .mobile-profile-page-header h2{justify-self:center;align-self:center;width:100%;margin:0;text-align:center}
 #account-dialog .mobile-profile-page-header .profile-logout-puls{justify-self:end;align-self:center}
}

.mobile-profile-form{min-width:0;max-width:100%}
.mobile-profile-form label{min-width:0;max-width:100%}
#mobile-edit-birthday,#account-birthday{display:block;box-sizing:border-box;min-width:0;width:100%;max-width:100%;-webkit-appearance:none;appearance:none}
#mobile-edit-birthday::-webkit-date-and-time-value,#account-birthday::-webkit-date-and-time-value{min-width:0;text-align:left}

#mobile-profile-form{padding:0;border:0;background:transparent;box-shadow:none;gap:16px}
.profile-edit-card{display:grid;gap:14px;min-width:0;width:100%;padding:20px;border:1px solid #dceaf8;border-radius:24px;background:#fffffff0;box-shadow:0 10px 30px #234f7f0c}
.profile-edit-card p{padding:13px 15px;border-radius:14px;background:#edf6ff;color:#627b98;font-size:14px;overflow-wrap:anywhere}
#mobile-edit-about,#account-about{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:110px;padding:14px 16px;border:1px solid #d4e5f5;border-radius:14px;background:#f9fcff;color:#15335f;font:16px/1.5 Arial,Helvetica,sans-serif;resize:vertical}

.chat-category-tabs{display:flex;align-items:center;gap:22px;padding:0 26px 16px}
.chat-category-tabs button{padding:7px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:#8195ae;font:700 15px Arial,Helvetica,sans-serif;cursor:pointer}
.chat-category-tabs button.active{color:#087df1;border-bottom-color:#087df1}
.chat-category-tabs #count{display:none}

.chatlist>.search{margin-bottom:6px}

.chat-category-empty{padding:42px 20px;text-align:center;color:#8195ae;font-size:16px;line-height:1.5}
.chatlist:has(#chat-category-channel.active,#chat-category-group.active)>.new-conversation{display:none}

.chat-category-empty-icon{display:grid;place-items:center;width:70px;height:70px;margin:0 auto 18px;border-radius:23px;background:#fff;color:#087df1;box-shadow:0 10px 25px #087df12b}
.chat-category-empty-icon svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

.channel-create-dialog{width:min(440px,calc(100vw - 32px));max-height:85dvh;overflow:auto;border:1px solid #dbe9f7;border-radius:26px;padding:24px;color:#18385f;background:#fff}
.channel-create-dialog form{display:grid;gap:14px}.channel-create-dialog input:not([type=checkbox]),.channel-create-dialog textarea{box-sizing:border-box;width:100%;min-width:0;padding:14px;border:1px solid #d7e7f7;border-radius:14px;background:#f1f7ff;color:#18385f;font:inherit;font-size:16px}.channel-create-dialog textarea{min-height:90px;resize:vertical}.channel-create-dialog label{display:flex;align-items:center;gap:12px}.channel-create-dialog input[type=checkbox]{width:22px;height:22px;flex:none;accent-color:#0785ff}.channel-create-dialog::backdrop{background:#18385f66;backdrop-filter:blur(6px)}

.channel-create-intro{padding:20px;border:1px solid #dbeafc;border-radius:22px;background:linear-gradient(140deg,#eef7ff,#e3f1ff);box-shadow:0 8px 24px #147ee90b}.channel-create-intro-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:14px;border-radius:16px;color:#0785ff;background:#fff;box-shadow:0 5px 14px #0785ff15}.channel-create-intro-icon svg{width:27px;height:27px}.channel-create-intro p{margin:0;font-size:15px;line-height:1.65;color:#496686}.channel-create-intro strong{font-weight:500}.channel-create-intro strong:first-child{font-weight:700;color:#087cf0}.channel-create-dialog h2{margin:0 0 4px;font-size:24px}

.channel-create-details{display:grid;gap:14px}.channel-create-details[hidden],.channel-create-dialog [hidden]{display:none!important}

.channel-avatar-preview{width:96px;height:96px;margin:0 auto;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#e2f1ff;color:#0785ff;font-size:32px;font-weight:700}.channel-avatar-preview img{width:100%;height:100%;object-fit:cover}

.channel-create-dialog h2{text-align:center}

.channel-type-step{display:grid;gap:12px}.channel-type-step h3{text-align:center;margin:4px 0 12px;font-size:20px}.channel-type-option{display:flex;align-items:center;gap:14px;padding:18px;text-align:left;border:1px solid #dce9f7;border-radius:20px;background:#f5f9ff;color:#18385f}.channel-type-option.selected{border-color:#0785ff;background:#e8f4ff;box-shadow:0 0 0 1px #0785ff}.channel-type-symbol{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:#fff;color:#0785ff;font-size:26px}.channel-type-copy{display:grid;gap:7px}.channel-type-copy strong{font-size:17px}.channel-type-copy>span{font-size:14px;line-height:1.45;color:#7890ab}

button.channel-avatar-preview{padding:0;border:0;cursor:pointer;flex-shrink:0;appearance:none;-webkit-tap-highlight-color:transparent}

.chat-list-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.chat-list-scroll>.chat-items{flex:none;overflow:visible;min-height:0}.chat-list-scroll>.new-conversation{margin:0;padding:38px 28px 32px}.chatlist:has(#chat-category-channel.active,#chat-category-group.active) .new-conversation{display:none}

.channel-search-heading{padding:12px 26px;color:#7890ab;font-size:14px}.channel-search-results:empty{display:none}

.channel-subscribe{position:absolute;z-index:30;bottom:max(14px,env(safe-area-inset-bottom));left:16px;right:16px;width:calc(100% - 32px);border-radius:24px;padding:16px}.channel-subscribe[hidden]{display:none!important}

.channel-post-actions{display:flex;justify-content:space-between;gap:12px;margin-top:12px;padding-top:9px;border-top:1px solid #ffffff44}.channel-post-actions button{border:0;border-radius:12px;background:#fff;color:#0785ff;padding:8px 12px;font-size:14px}.channel-reaction-picker{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.channel-reaction-picker button{padding:9px;border:1px solid #dbeaf8;border-radius:14px;background:#f1f7ff;font-size:22px}.channel-reaction-picker button.selected{border-color:#0785ff;background:#dceeff}.channel-comments{display:grid;gap:12px;max-height:35dvh;overflow:auto;margin-bottom:16px}.channel-comment{padding:12px;background:#eef6ff;border-radius:16px}.channel-comment strong{color:#0785ff;font-size:14px}.channel-comment p{margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}

.conversation.channel-preview .messages{padding-bottom:calc(100px + env(safe-area-inset-bottom));scroll-padding-bottom:calc(100px + env(safe-area-inset-bottom))}

.channel-post-actions{flex-wrap:wrap;justify-content:flex-start;gap:7px}.channel-post-actions .channel-reaction-count{border:1px solid #d7e9fc;font-size:15px}.channel-post-actions .channel-reaction-count.selected{background:#dbedff;border-color:#0785ff}

.conversation.channel-view .message-row{justify-content:center;align-self:center;width:100%}.conversation.channel-view .message-row>.bubble{margin-left:auto;margin-right:auto}

.list-header #new-chat{width:44px;height:44px;padding:10px;border-radius:50%;color:#fff;background:linear-gradient(145deg,#16a5ff 0%,#0785f5 55%,#0865db 100%);border:1px solid #0785f5;box-shadow:inset 0 1px 1px #ffffff66,0 7px 16px #0785f52b}.list-header #new-chat svg{display:block;width:24px;height:24px}.list-header #new-chat:hover{color:#fff;background:linear-gradient(145deg,#20acff,#0873e7)}:is(#bottom-navigation #my-name,#profile-navigation #profile-nav-settings) svg{padding:6px;stroke:none;background:linear-gradient(145deg,#16a5ff 0%,#0785f5 55%,#0865db 100%);border:1px solid #0785f5;box-shadow:inset 0 1px 1px #ffffff66,0 5px 12px #0785f52b}

.messenger>.chatlist>.list-header{padding-bottom:8px}

.list-header #new-chat{display:grid;place-items:center;padding:0;line-height:1}.list-header #new-chat svg{width:24px;height:24px;margin:0;flex-shrink:0}

.channel-post-actions .channel-post-comments{flex:0 0 100%;order:2;margin-top:3px;padding:11px 0 2px;border-top:1px solid #ffffff66;border-radius:0;background:transparent;color:inherit;text-align:left}

.channel-view .channel-post-actions{border-top:1px solid #bedbf2}.channel-view .channel-post-actions .channel-post-comments{border-top:1px solid #bedbf2}.channel-view .mine .channel-post-actions,.channel-view .mine .channel-post-comments{border-top-color:#a4d9ff}

.channel-view .channel-post-actions .channel-post-time{position:static!important;display:inline-flex;align-items:center;gap:4px;float:none;margin:0 0 0 auto;padding:6px 0;background:transparent;box-shadow:none;color:inherit;font-size:11px;opacity:.7;white-space:nowrap;align-self:center}

.channel-view .channel-post-actions{border-top:0}.channel-view .channel-post-actions .channel-reaction-count,.channel-view .channel-post-actions .channel-reaction-count.selected{border:0;box-shadow:none;background:transparent;padding:6px 8px}.channel-view .channel-post-actions .channel-reaction-count.selected{color:#087df1}

.channel-view .channel-post-actions .channel-post-time{align-self:flex-end;align-items:flex-end;padding-bottom:6px}

.channel-view .mine .bubble:not(.photo-only){background:linear-gradient(145deg,#eaf6ff,#d9edff);border-color:#c5e2fa;color:#18385f;box-shadow:0 6px 18px #087df112}.channel-view .mine .channel-post-comments{border-top-color:#b9d9f1}.channel-view .mine .bubble a{color:#087df1}

.channel-view .channel-post-actions .channel-reaction-count{padding:6px 10px;border:0;border-radius:12px;background:#e1f0ff;box-shadow:none}.channel-view .channel-post-actions .channel-reaction-count.selected{background:#c9e5ff;color:#087df1}.channel-view .mine .channel-post-actions .channel-reaction-count{background:#ffffffb3}.channel-view .mine .channel-post-actions .channel-reaction-count.selected{background:#bdddff}

.channel-view .channel-post-actions .channel-post-comments{display:flex;align-items:center;gap:8px}.channel-post-comments svg{width:21px;height:21px;flex:none;fill:none;stroke:#087df1;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.channel-reaction-picker{flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:3px 0 8px}.channel-reaction-picker button{flex:0 0 auto;padding:8px;font-size:20px;white-space:nowrap}

.channel-create-dialog.channel-reactions-compact{width:max-content;max-width:calc(100vw - 24px);padding:7px 9px;border-radius:22px;overflow:hidden}.channel-reactions-compact .channel-reaction-picker{margin:0;padding:0;gap:4px}.channel-reactions-compact .channel-reaction-picker button{padding:6px;font-size:22px;border:0;background:transparent;line-height:1.25}.channel-reactions-compact .channel-reaction-picker button.selected{background:#dceeff}.channel-reactions-compact>.error:empty{display:none}

.channel-create-dialog.channel-reactions-compact{width:min(360px,calc(100vw - 24px))}.channel-reactions-compact .channel-reaction-picker{width:100%;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;touch-action:pan-x;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}.channel-reactions-compact .channel-reaction-picker::-webkit-scrollbar{display:none}.channel-reactions-compact .channel-reaction-picker button{flex:0 0 auto;white-space:nowrap;padding:6px 9px}

.conversation.channel-view .message-row>.bubble{width:min(100%,560px);max-width:560px;min-width:0;box-sizing:border-box}.conversation.channel-view .bubble .photo-button,.conversation.channel-view .bubble .file-image-preview{width:100%}.conversation.channel-view .bubble .photo-button img,.conversation.channel-view .bubble .file-image-preview img{width:100%;max-width:100%;object-fit:contain}

.channel-create-dialog.channel-comments-page{position:fixed;inset:0;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:linear-gradient(145deg,#dbefff,#bddcf6);color:#18385f}.channel-comments-header{position:absolute;z-index:3;top:max(10px,env(safe-area-inset-top));left:12px;right:12px;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;min-height:64px;padding:8px;border:1px solid #d7e8f7;border-radius:28px;background:#f3f9ffed;backdrop-filter:blur(18px)}.channel-comments-header>div{text-align:center}.channel-comments-header h2{font-size:18px;margin:0}.channel-comments-header p{font-size:12px;color:#7890ab;margin-top:3px}.channel-comments-header button{width:42px;height:42px;border:0;border-radius:50%;background:linear-gradient(145deg,#1496fc,#0872e4);color:#fff;font-size:30px;line-height:1}.channel-discussion-body{position:absolute;inset:0;display:flex;flex-direction:column;padding:calc(88px + env(safe-area-inset-top)) 12px calc(100px + env(safe-area-inset-bottom));overflow:auto}.channel-discussion-post{flex:none;width:min(100%,560px);margin:0 auto 18px}.channel-discussion-post .bubble{width:100%;max-width:100%;background:#eef7ff;color:#18385f;border-radius:18px;border:1px solid #c5e2fa}.channel-comments-page .channel-comments{display:flex;flex-direction:column;gap:10px;flex:1;min-height:80px;max-height:none;overflow:auto;margin:0}.channel-comments-page .channel-comment{align-self:flex-start;width:fit-content;max-width:85%;background:white;padding:10px 13px;border-radius:17px 17px 17px 5px}.channel-comments-page .channel-comment.mine{align-self:flex-end;background:#e6f3ff;border-radius:17px 17px 5px 17px}.channel-comment time{display:block;text-align:right;margin-top:6px;color:#7890ab;font-size:11px}.channel-comments-page .channel-comments-composer{position:absolute;z-index:3;bottom:max(10px,env(safe-area-inset-bottom));left:12px;right:12px;display:flex;align-items:flex-end;gap:10px;padding:10px;border:1px solid #d7e8f7;border-radius:28px;background:#f3f9ffed}.channel-comments-page .channel-comments-composer textarea{flex:1;width:0;min-height:42px;max-height:120px;padding:11px 8px;border:0;background:transparent;resize:none;line-height:20px}.channel-comments-page .channel-comments-composer button{width:44px;height:44px;flex:none;border-radius:50%;padding:0;font-size:23px}.channel-comments-page>.error{position:absolute;z-index:4;bottom:calc(82px + env(safe-area-inset-bottom));left:20px;right:20px;font-size:13px}.channel-comments-subscribe-hint{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));left:20px;right:20px;text-align:center;padding:14px;border-radius:20px;background:#eef7ff}

.channel-comment-avatars{display:flex;align-items:center;margin-left:auto;padding-left:8px}.channel-comment-avatar{display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:50%;margin-left:-7px;overflow:hidden;background:#d7ebff;border:2px solid #edf6ff;color:#087df1;font-size:10px;font-weight:700}.channel-comment-avatar img{width:100%;height:100%;object-fit:cover}

.channel-comments-page .channel-comment{display:flex;align-items:flex-start;gap:9px}.channel-comment-author-avatar{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;overflow:hidden;background:#d7ebff;color:#087df1;font-size:11px;font-weight:700}.channel-comment-author-avatar img{width:100%;height:100%;object-fit:cover}.channel-comment-content{min-width:0;flex:1}

.channel-comments-page .channel-comment,.channel-comments-page .channel-comment.mine{align-self:flex-start;text-align:left;border-radius:17px 17px 17px 5px}

.comment-reactions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.comment-reactions button{padding:5px 8px;border:0;border-radius:10px;background:#e1f0ff;font-size:14px}.comment-reactions button.selected{background:#c9e5ff;color:#087df1}

/* Full-screen discussion is a page, so it needs no blurred modal backdrop. */
.channel-comments-page::backdrop{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
.channel-comments-page .channel-discussion-body{z-index:1;filter:none;-webkit-filter:none}
.channel-comments-page .channel-discussion-post{filter:none;-webkit-filter:none;opacity:1}

.channel-comments-page .comment-reactions{align-items:flex-end;gap:7px}.channel-comments-page .comment-reactions .channel-reaction-count{padding:6px 10px;border:0;border-radius:12px;background:#e1f0ff;color:#0785ff;box-shadow:none;font-size:15px}.channel-comments-page .comment-reactions .channel-reaction-count.selected{background:#c9e5ff;color:#087df1}.channel-comments-page .comment-reactions time{margin:0 0 0 auto;padding-bottom:6px;align-self:flex-end;white-space:nowrap}

/* The author avatar sits beside the comment bubble. */
.channel-comments-page .channel-comment,.channel-comments-page .channel-comment.mine{max-width:100%;padding:0;border:0;background:transparent;border-radius:0;box-shadow:none;gap:9px;align-items:flex-end}
.channel-comments-page .channel-comment-content{flex:0 1 auto;min-width:0;max-width:calc(100vw - 96px);padding:10px 13px;background:#fff;border-radius:17px 17px 17px 5px}
.channel-comments-page .channel-comment.mine .channel-comment-content{background:#e6f3ff}
.channel-comments-page .channel-comment-author-avatar{margin-bottom:2px}

/* Narrower channel posts and discussion comments. */
.channel-view .message-row .bubble{width:min(92%,520px);max-width:min(92%,520px);align-self:center}
.channel-comments-page .channel-discussion-post{width:min(92%,520px)}
.channel-comments-page .channel-comment,.channel-comments-page .channel-comment.mine{max-width:92%}
.channel-comments-page .channel-comment-content{max-width:calc(100vw - 124px)}

/* Keep the timestamp in the narrower post, including its cloned discussion copy. */
.channel-view .channel-post-actions,.channel-discussion-post .channel-post-actions{min-width:0;max-width:100%;flex-wrap:wrap}
.channel-view .channel-post-actions .channel-post-time,.channel-discussion-post .channel-post-actions .channel-post-time{position:static!important;float:none!important;margin:0 0 0 auto!important;flex:0 0 auto;max-width:100%;padding:6px 0!important;white-space:nowrap}
.channel-comments-page .channel-comment-content{min-width:0;overflow-wrap:anywhere}
.channel-comments-page .comment-reactions{min-width:0;max-width:100%;flex-wrap:wrap}
.channel-comments-page .comment-reactions time{flex:0 0 auto;max-width:100%}

.channel-view .message-row .bubble{width:min(84%,480px);max-width:min(84%,480px)}
.channel-comments-page .channel-discussion-post{width:min(84%,480px)}
.channel-comments-page .channel-comment,.channel-comments-page .channel-comment.mine{max-width:84%}
.channel-comments-page .channel-comment-content{max-width:calc(84vw - 66px)}

.channel-comments-page .channel-comment-content>p{font-family:Arial,Helvetica,sans-serif;font-size:16px;font-weight:400;line-height:1.5}

/* Puls chat wallpaper: soft blue light and a quiet pulse motif. */
.conversation,.channel-create-dialog.channel-comments-page{background-color:#c6e3fa;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22240%22%20height%3D%22240%22%20viewBox%3D%220%200%20240%20240%22%20fill%3D%22none%22%20stroke%3D%22%231689ed%22%20stroke-opacity%3D%22.24%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M28%2042h32a10%2010%200%200%201%2010%2010v16a10%2010%200%200%201-10%2010H42l-14%2010V52a10%2010%200%200%201%2010-10%22%2F%3E%3Cpath%20d%3D%22M37%2061h9l5-8%206%2017%205-9h9%22%2F%3E%3Cpath%20d%3D%22m163%2027%205%2012%2013%201-10%209%203%2013-11-7-11%207%203-13-10-9%2013-1Z%22%2F%3E%3Cpath%20d%3D%22M135%20143h32a12%2012%200%200%201%2012%2012v15a12%2012%200%200%201-12%2012h-14l-13%209v-9a12%2012%200%200%201-12-12v-15a12%2012%200%200%201%2012-12Z%22%2F%3E%3Cpath%20d%3D%22M139%20163h8l5-8%206%2017%205-9h7%22%2F%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%22178%22%20r%3D%2215%22%2F%3E%3Cpath%20d%3D%22m44%20178%205%205%209-11M204%20107h8m-4-4v8M99%20113h6m-3-3v6%22%2F%3E%3C%2Fsvg%3E"),radial-gradient(ellipse at 100% 0%,#7ed7ff55,transparent 60%),linear-gradient(155deg,#d3e9fb 0%,#b9d9f2 50%,#9ebfe2 100%);background-size:240px 240px,100% 100%,100% 100%}
.conversation::before,.conversation::after{display:none}

.message-menu-reactions{position:fixed;z-index:2402;display:flex;gap:4px;max-width:calc(100vw - 16px);overflow-x:auto;padding:7px;border:1px solid #d6e9fa;border-radius:22px;background:#f5faff;box-shadow:0 8px 24px #15335f26}.message-menu-reactions button{flex:none;padding:5px;border:0;border-radius:12px;background:transparent;font-size:24px;line-height:1.2}.message-menu-reactions button.selected{background:#c9e5ff}

.puls-calls-page{position:fixed;inset:0;width:100%;max-width:none;height:100vh;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:linear-gradient(155deg,#f8fcff,#e6f3ff);color:#18385f}.puls-calls-page::backdrop{background:transparent}.puls-calls-header{position:absolute;z-index:2;top:max(12px,env(safe-area-inset-top));left:12px;right:12px;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;gap:12px;padding:10px;border:1px solid #d7e9fa;border-radius:28px;background:#ffffffed;box-shadow:0 8px 24px #087df10c}.puls-calls-header h2{text-align:center;font-size:22px}.puls-calls-back,.puls-call-contact-icon{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:linear-gradient(145deg,#16a5ff,#0865db);color:#fff}.puls-calls-back{font-size:32px}.puls-calls-logo{width:40px;height:40px;object-fit:contain}.puls-calls-body{position:absolute;inset:0;padding:calc(108px + env(safe-area-inset-top)) 16px calc(112px + env(safe-area-inset-bottom));overflow-y:auto}.puls-calls-description{margin:0 4px 18px;color:#7890ab;font-size:15px}.puls-calls-page .nav-call-contacts{display:grid;gap:10px;max-width:600px;margin:auto}.puls-call-contact{display:flex;align-items:center;gap:14px;width:100%;padding:16px;border:1px solid #d6e8fa;border-radius:24px;background:#fff;color:#18385f;text-align:left}.puls-call-contact .contact-result-avatar{width:52px;height:52px;flex-basis:52px;border-radius:50%;overflow:hidden}.puls-call-contact-text{display:grid;gap:5px;flex:1;min-width:0}.puls-call-contact-text strong{font-size:16px;overflow-wrap:anywhere}.puls-call-contact-text small{color:#7890ab;font-size:13px}.puls-call-contact-icon svg{width:22px;height:22px}.puls-calls-empty{text-align:center;padding:60px 20px;color:#7890ab}.puls-calls-empty>svg{width:64px;height:64px;margin-bottom:22px;color:#0785ff}.puls-calls-empty h3{margin-bottom:10px;color:#18385f}.puls-calls-navigation{position:absolute!important;left:12px!important;right:12px!important;bottom:max(10px,env(safe-area-inset-bottom))!important;width:auto!important;z-index:3}.puls-calls-navigation .active{color:#0785ff;background:#dceeff;border-radius:16px}

.puls-calls-page .puls-calls-navigation{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:0;padding:8px;border:1px solid #dceaf8;border-radius:24px;background:#f1f7fd}.puls-calls-page .puls-calls-navigation .bottom-nav-button{min-width:0}.puls-calls-page .puls-calls-body{padding-bottom:calc(110px + env(safe-area-inset-bottom))}

.puls-call-date{flex:none;margin-left:auto;text-align:right;white-space:pre-line;color:#7890ab;font-size:12px;line-height:1.6}

.puls-calls-page .nav-call-contacts{width:92%;max-width:540px;margin-right:auto;margin-left:auto}

.puls-calls-page .puls-calls-body{padding-left:0;padding-right:0}
.puls-calls-page .puls-calls-description{margin-left:20px;margin-right:20px}
.puls-calls-page .nav-call-contacts{width:100%;max-width:none;gap:0;margin:0}
.puls-calls-page .puls-call-contact,.puls-calls-page .puls-call-contact:hover,.puls-calls-page .puls-call-contact:focus,.puls-calls-page .puls-call-contact:active{width:100%;padding:16px 20px;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;-webkit-tap-highlight-color:transparent}

.puls-calls-page .puls-call-main{display:flex;align-items:center;gap:14px;flex:1;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left;box-shadow:none}.puls-call-profile{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;padding:5px;border:1px solid #0785f5;border-radius:50%;background:linear-gradient(145deg,#16a5ff,#0865db);color:#fff;box-shadow:inset 0 1px 1px #ffffff66,0 4px 10px #0785f52b}.puls-call-profile svg{width:22px;height:22px}

.puls-call-profile{flex-basis:28px;width:28px;height:28px;padding:4px;border:1px solid #7eadd3;background:transparent;color:#3288cb;box-shadow:none}.puls-call-profile svg{width:18px;height:18px;stroke-width:1.6}

.puls-calls-back{padding:0;line-height:1}.puls-calls-back svg{display:block;width:24px;height:24px}

.contact-profile-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%;margin:22px 0}.contact-profile-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;padding:14px 3px;border:1px solid #d6e9fa;border-radius:18px;background:#edf7ff;color:#0785ee;font-size:11px}.contact-profile-actions svg{width:26px;height:26px}.contact-profile-actions button[aria-pressed=true]{background:#dceeff}.contact-profile-body #contact-profile-action-status{font-size:13px;color:#7890ab}.contact-profile-body #contact-profile-action-status:empty{display:none}

.call-options{display:flex;justify-content:center;gap:18px;margin:22px 0}.call-options button{display:grid;justify-items:center;gap:8px;width:92px;padding:12px 5px;border:1px solid #d5e8fa;border-radius:20px;background:#e8f4ff;color:#087df1;font-size:12px}.call-options svg{width:26px;height:26px}.call-options button[aria-pressed=true]{background:#087df1;color:#fff}.call-dialog #call-option-status{font-size:12px;line-height:1.4;min-height:0}.call-dialog #call-option-status:empty{display:none}

.missed-call-row{display:flex;align-items:center;justify-content:center;gap:8px;align-self:center;margin:12px auto;padding:8px 14px;border-radius:18px;background:#f1f8ffe8;color:#bf4056;font-size:13px}.missed-call-row time{font-size:11px;color:#7890ab}

.missed-call-row{justify-content:flex-start;max-width:100%;margin:12px 0;gap:9px}.missed-call-row.mine{align-self:flex-end}.missed-call-row.theirs{align-self:flex-start}.missed-call-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;color:#fff;background:linear-gradient(145deg,#ff6974,#dc354d);box-shadow:inset 0 1px 1px #ffffff66,0 3px 8px #dc354d20}.missed-call-icon svg{display:block;width:19px;height:19px}

.missed-call-row.answered{color:#18385f}.missed-call-row.answered .missed-call-icon{background:linear-gradient(145deg,#16a5ff,#0865db);box-shadow:inset 0 1px 1px #ffffff66,0 3px 8px #0785f520}

.chat-preview .chat-last-call{color:#3288cb}.chat-preview .chat-last-call.missed{color:#d44558}

.call-entry-details{display:grid;gap:3px}.call-entry-duration{font-size:12px;color:#7890ab}

.chat-preview .chat-last-call{display:flex;align-items:center;gap:7px;min-width:0;line-height:1.4}.chat-call-icon{display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;border-radius:50%;background:linear-gradient(145deg,#16a5ff,#0865db);color:#fff;box-shadow:inset 0 1px 1px #ffffff66}.chat-call-icon svg{display:block;width:14px;height:14px}.chat-last-call.missed .chat-call-icon{background:linear-gradient(145deg,#ff6974,#dc354d)}.chat-call-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.chat-call-icon,.missed-call-row.answered .missed-call-icon{background:#fff;color:#0785ee;box-shadow:none}.chat-last-call.missed .chat-call-icon,.missed-call-icon{background:#fff;color:#dc354d;box-shadow:none}

.chat-call-icon,.missed-call-icon{border:1px solid currentColor}

/* Centre the chat title against the full capsule, independently of side controls. */
.conversation-header #chat-profile-link{grid-area:auto;position:absolute;inset:0;left:0;right:0;top:0;bottom:0;width:auto;min-width:0;margin:0;padding:0 96px;transform:none;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}
.conversation-header #chat-profile-link h2,.conversation-header #chat-profile-link p{max-width:100%;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:auto}

.forwarded-source{display:inline;padding:0;margin:0;border:0;background:none;color:inherit;font:inherit;font-weight:600;text-align:left;text-decoration:underline;cursor:pointer}

.message-row .comment-reactions button,.message-row .comment-reactions button.selected{background:transparent;border:0;box-shadow:none;border-radius:0;padding:4px;min-width:28px}

.message-row .comment-reactions{border-top:1px solid #15335f20;padding-top:6px;margin-top:8px}.message-row.mine .comment-reactions{border-top-color:#ffffff55}

.message-row>.comment-reactions{margin-top:5px;padding-top:4px;width:fit-content;max-width:100%;border-top-color:#15335f20}.message-row.mine>.comment-reactions{border-top-color:#15335f20}

.bubble.has-message-text>p>.message-meta{display:block;float:none;clear:both;margin:-2px 0 0;text-align:right;line-height:12px}

.message-row>.comment-reactions,.message-row.mine>.comment-reactions{border-top:0;padding-top:0;margin-top:6px;gap:6px}
.message-row>.comment-reactions button{display:grid;place-items:center;min-width:34px;min-height:30px;padding:4px 7px;border:1px solid #d4e8fb;border-radius:12px;background:linear-gradient(145deg,#ffffff,#e8f4ff);box-shadow:0 3px 8px #087df110;font-size:17px;line-height:1.2}
.message-row>.comment-reactions button.selected{border-color:#8fcaff;background:linear-gradient(145deg,#f5fbff,#d8edff);box-shadow:0 3px 8px #087df11c}

.message-row>.comment-reactions button,.message-row>.comment-reactions button.selected{border-radius:999px;background:#fff;border-color:#dceaf8;box-shadow:0 3px 9px #315d8b10}
.message-row.mine>.comment-reactions button,.message-row.mine>.comment-reactions button.selected{background:linear-gradient(145deg,#1292fb,#0873e7);border-color:#0878eb;color:#fff;box-shadow:0 3px 9px #087df128}



.voice-record{display:grid;place-items:center;flex-shrink:0;width:43px;height:43px;padding:0;border:0;border-radius:50%;background:linear-gradient(145deg,#1496fc,#0872e4);color:white}.voice-record.recording{color:#d33148;background:#fff0f2;border-color:#ffccd3}.voice-record-panel{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;margin-bottom:8px;border-radius:20px;background:#fff;color:#d33148;font-size:14px}.voice-record-panel button{border:0;background:none;color:#087df1;font:inherit}.voice-message{width:230px;max-width:100%;min-width:180px}.voice-message-label{display:flex;align-items:center;gap:8px;padding:3px 0 8px;font-size:14px}.voice-message audio{display:block;width:100%;height:40px}.attachment audio{width:180px;max-width:45%;height:38px}

#startup-status{position:fixed;inset:0;display:grid;place-content:center;gap:16px;padding:28px;text-align:center;background:#eef6ff;color:#15335f;z-index:99999;font:17px Arial}#startup-retry{padding:12px;border:0;border-radius:24px;background:#087df1;color:white}

.attachment.voice-preview audio{flex:1;width:140px;min-width:0;max-width:none}.attachment.voice-preview #filename{display:none}.attachment .voice-preview-duration{flex:0 0 auto;overflow:visible;white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums;color:#15335f}

.puls-player{display:flex;align-items:center;gap:11px;width:250px;max-width:100%;min-width:0;padding:4px 0 6px}.puls-player-toggle{display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;padding:0;border:0;border-radius:50%;background:linear-gradient(145deg,#1496fc,#0872e4);color:#fff;box-shadow:0 4px 12px #087df124}.puls-player-toggle svg{display:block}.puls-player-body{flex:1;min-width:0;display:grid;gap:7px}.puls-player-progress{display:block;width:100%;height:5px;margin:6px 0;padding:0;border:0;border-radius:8px;appearance:none;-webkit-appearance:none;background:linear-gradient(to right,#087df1 0 var(--voice-progress,0%),#087df12b var(--voice-progress,0%) 100%);cursor:pointer;touch-action:pan-y}.puls-player-progress::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:12px;height:12px;border:0;border-radius:50%;background:#087df1}.puls-player-progress::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:#087df1}.puls-player-time{font-size:12px;font-variant-numeric:tabular-nums;line-height:1.2;opacity:.8}.mine .puls-player-toggle{background:#fff;color:#087df1;box-shadow:none}.mine .puls-player-progress{background:linear-gradient(to right,#fff 0 var(--voice-progress,0%),#ffffff45 var(--voice-progress,0%) 100%)}.mine .puls-player-progress::-webkit-slider-thumb{background:#fff}.mine .puls-player-progress::-moz-range-thumb{background:#fff}

.puls-player-cardiogram{position:relative;height:32px;width:100%;color:#087df1}.puls-player-cardiogram svg{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}.cardiogram-base{opacity:.25}.cardiogram-played{clip-path:inset(0 calc(100% - var(--voice-progress,0%)) 0 0)}.puls-player-cardiogram .puls-player-progress{position:absolute;inset:0;margin:0;width:100%;height:100%;opacity:0;z-index:1;cursor:pointer}.mine .puls-player-cardiogram{color:#fff}.puls-player-cardiogram:focus-within{filter:drop-shadow(0 0 2px #087df14d)}

.puls-player-cardiogram svg path{transform-box:view-box;transform-origin:50% 50%;transform:scaleY(1)}

.message-row .bubble:not(.photo-message){padding:2px 4px;min-width:44px}.puls-player{width:190px;gap:8px;padding:0}.puls-player-toggle{width:34px;height:34px;flex-basis:34px}.puls-player-body{gap:2px}.puls-player-cardiogram{height:26px}

.messages{overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}.messages>.message-row,.messages>.missed-call-row,.messages>.message-date{flex-shrink:0}.messages .bubble,.puls-player{touch-action:pan-y pinch-zoom}

.puls-ios #messages{display:block;overflow-y:scroll;-webkit-overflow-scrolling:touch;touch-action:pan-y;pointer-events:auto}.puls-ios #messages>.message-row,.puls-ios #messages>.missed-call-row{margin-bottom:10px}.puls-ios #messages>.message-date{width:fit-content;margin-left:auto;margin-right:auto}.puls-ios #messages>.older{display:block;margin:0 auto 12px}.puls-ios #messages.resuming{pointer-events:auto}

.message-row .bubble{max-width:min(94%,620px)}.message-row .bubble:not(.photo-message){padding:1px 6px}.message-row .bubble p{line-height:1.35}.puls-player{width:260px;gap:9px}.puls-player-toggle{width:32px;height:32px;flex-basis:32px}.puls-player-body{gap:1px}.puls-player-cardiogram{height:22px}.channel-view .message-row .bubble{width:min(92%,560px);max-width:min(92%,560px)}.channel-comments-page .channel-discussion-post{width:min(92%,560px)}.channel-comments-page .channel-comment,.channel-comments-page .channel-comment.mine{max-width:92%}.channel-comments-page .channel-comment-content{max-width:calc(92vw - 66px);padding:6px 9px}

.message-row .bubble:not(.photo-message)>.message-meta{margin-top:2px}

.puls-player-body{position:relative;align-self:center;display:block}.puls-player-body>.puls-player-time{position:absolute;top:calc(100% + 1px);left:0;white-space:nowrap}

.puls-player{width:380px}

.message-row .bubble.has-message-text:not(.photo-message){min-width:70px}

.composer{align-items:center}.composer textarea{align-self:center;margin:0}.composer .send,.composer .attachment-circle,.composer .emoji-toggle,.composer .voice-record{display:grid;place-items:center;align-self:center;padding:0}

.message-row.mine .bubble{background:linear-gradient(145deg,#edf7ff,#dceeff);border-color:#cde4f8}

.message-row.mine .bubble{color:#000}

.message-row .puls-player-cardiogram,.message-row.mine .puls-player-cardiogram{color:#087df1}.message-row .puls-player-cardiogram .cardiogram-base{opacity:.65}

.puls-player-speed{flex:0 0 36px;display:grid;place-items:center;width:36px;height:28px;padding:0;border:0;border-radius:14px;background:#e1f0ff;color:#087df1;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}.mine .puls-player-speed{background:#fff;color:#087df1}

#delete-dialog{position:fixed;inset:auto 0 0;width:100%;max-width:100%;max-height:90dvh;margin:0;padding:20px 16px calc(16px + env(safe-area-inset-bottom));border:0;border-radius:26px 26px 0 0;background:#f3f9ff}#delete-form{gap:10px}#delete-title{text-align:center;font-size:18px;margin-bottom:4px}#delete-form .primary-button{border-radius:18px;background:#fff;color:#cf3048;border:1px solid #dceaf8;padding:14px}#delete-cancel{padding:14px;border-radius:18px;background:#e2effc}#delete-error:empty{display:none}

#delete-dialog{background:transparent;box-shadow:none}#delete-title{padding:14px;border-radius:20px;background:#f3f9ff}#delete-form .delete-actions-block{display:grid;gap:0;overflow:hidden;border-radius:20px;background:#fff}#delete-form .delete-actions-block .primary-button{border:0;border-radius:0}#delete-form .delete-actions-block .primary-button+button{border-top:1px solid #e1ebf5}#delete-cancel{margin-top:4px;background:#f3f9ff;border-radius:20px}

.channel-comments-page .channel-comment-content{min-width:min(340px,calc(92vw - 66px));padding:1px 6px;border:1px solid #dceaf8;border-radius:20px 20px 20px 7px;background:#fff;box-shadow:0 8px 24px #315d8b10;color:#15335f}.channel-comments-page .channel-comment.mine .channel-comment-content{background:linear-gradient(145deg,#edf7ff,#dceeff);border-color:#cde4f8;border-radius:20px 20px 7px 20px;color:#000}.channel-comments-page .channel-comment-content>p{font-size:18px;line-height:1.35}.channel-comments-page .channel-comment-content time{font-size:10px;line-height:12px;margin-top:2px}

.channel-comments-page .channel-comment-body{min-width:0;max-width:calc(94vw - 66px);display:flex;flex-direction:column;align-items:flex-start}.channel-comments-page .channel-comment-content{min-width:min(340px,calc(94vw - 66px));max-width:100%}.channel-comments-page .channel-comment-body>.comment-reactions{margin-top:6px;gap:6px;border:0;padding:0}.channel-comments-page .channel-comment-body>.comment-reactions button{display:grid;place-items:center;min-width:34px;min-height:30px;padding:4px 7px;border:1px solid #dceaf8;border-radius:999px;background:#fff;color:inherit;box-shadow:0 3px 9px #315d8b10;font-size:17px;line-height:1.2}.channel-comments-page .channel-comment.mine .channel-comment-body>.comment-reactions button{background:linear-gradient(145deg,#1292fb,#0873e7);border-color:#0878eb;color:#fff}

.conversation.channel-view .message-row>.bubble,.conversation.channel-view .message-row.mine>.bubble{width:min(92%,560px);max-width:min(92%,560px);min-width:0;border-radius:20px;background:#eef7ff;color:#18385f;border:1px solid #c5e2fa;box-shadow:0 6px 18px #087df112;padding:6px 9px}.conversation.channel-view .message-row>.bubble.photo-only{padding:0;background:transparent;border:0;box-shadow:none}

.conversation.channel-view .message-row>.bubble.photo-message{width:fit-content;max-width:min(92%,560px);min-width:0}.conversation.channel-view .bubble.photo-message .photo-button,.conversation.channel-view .bubble.photo-message .file-image-preview{width:auto;max-width:100%}.conversation.channel-view .bubble.photo-message .photo-button img,.conversation.channel-view .bubble.photo-message .file-image-preview img{width:auto;max-width:100%;max-height:340px;object-fit:contain}

.message-menu-reactions.comment-action-picker{display:flex;flex-wrap:wrap;width:290px;max-width:calc(100vw - 16px);border-radius:22px}.comment-action-picker .comment-menu-action{flex:1 0 45%;width:auto;border-radius:14px;font-size:15px;color:#087df1}.comment-reply-quote,.comment-reply-preview{display:grid;gap:3px;border-left:3px solid #087df1;background:#deedfa;padding:7px;border-radius:10px;font-size:13px}.comment-reply-quote span,.comment-reply-preview span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.comment-reply-preview{position:absolute;bottom:calc(78px + env(safe-area-inset-bottom));left:16px;right:16px;z-index:4;padding-right:32px}.comment-reply-preview button{position:absolute;right:8px;top:8px}

.missed-call-row{display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:9px;row-gap:0}.missed-call-row .missed-call-icon{grid-column:1;grid-row:1 / 3}.missed-call-row .call-entry-details{grid-column:2;grid-row:1}.missed-call-row>time{grid-column:2;grid-row:2;justify-self:end;display:block;font-size:10px;line-height:12px;opacity:.67;color:#15335f;margin:2px 0 0;text-align:right;white-space:nowrap}

.message-receipt,.message-receipt.read{display:inline-flex;align-items:center;vertical-align:middle;margin-left:3px;padding:0;letter-spacing:normal;color:inherit}.message-receipt svg{display:block;flex:none;overflow:visible}.message-receipt.read{color:#087df1}.photo-message .photo-button .message-receipt,.photo-message .file-image-preview .message-receipt{color:#fff}

.message-row .bubble:not(.photo-message)>.message-meta,.message-row .bubble.has-message-text>p>.message-meta{display:flex;align-items:center;justify-content:flex-end;gap:3px;float:none;min-height:14px;line-height:14px;padding-right:2px;white-space:nowrap;overflow:visible}.message-row .message-meta .message-receipt{flex:0 0 18px;width:18px;min-width:18px;margin-left:0}

.puls-ios .message-row .bubble:not(.photo-message){padding:6px 10px}.puls-ios .message-row .bubble p{font-size:19px;line-height:1.4}.puls-ios .message-row .bubble{max-width:min(96%,640px)}.puls-ios .message-row .bubble.has-message-text:not(.photo-message){min-width:70px}

#forward-dialog{max-height:calc(100dvh - 24px);overflow-y:auto}#forward-preview{max-height:35dvh;overflow:auto;padding:8px;border-radius:18px;background:#d3e9fb}#forward-preview .bubble{width:100%;min-width:0;max-width:100%;padding:8px 10px;color:#15335f;background:#fff}#forward-preview .bubble p{font-size:18px;line-height:1.4}#forward-preview img{max-width:100%;max-height:25dvh;object-fit:contain}#forward-preview button:disabled{opacity:1}#forward-preview .puls-player{max-width:100%}

#forward-preview{padding:12px;margin:4px 0 10px;background:#c3dff5;border:1px solid #a9cde9;border-radius:20px}#forward-preview .bubble{background:#edf7ff;border:1px solid #80b9e8;border-left:4px solid #087df1;border-radius:15px;padding:10px 12px;box-shadow:0 4px 12px #15335f12}

.message-row .message-reply-quote,.message-row.mine .message-reply-quote{background:#fff;color:#15335f;border:1px solid #a6cceb;border-left:3px solid #087df1;border-radius:10px;padding:8px 10px}.message-row .message-reply-quote strong{color:#0874df}

.message-row.theirs .message-reply-quote{background:linear-gradient(145deg,#edf7ff,#dceeff)}

.missed-call-row[role="button"]{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:pan-y}

@media(max-width:900px){#auth input,#auth textarea,#auth select{font-size:16px!important}}

.auth-card .brandmark.auth-wordmark{width:min(230px,80%);height:78px;margin:0 auto 20px;border-radius:0;box-shadow:none;background:transparent;overflow:visible}.auth-card .auth-wordmark img{width:100%;height:100%;object-fit:contain}.auth-card:has(.auth-wordmark)>h1{display:none}

html.auth-open,body.auth-open{background:#0874e8}#auth.auth-wrap:not([hidden]){position:fixed;inset:0;width:100%;height:100dvh;min-height:100dvh;max-height:none;padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(18px,env(safe-area-inset-bottom));background:linear-gradient(155deg,#1196fb 0%,#0874e8 58%,#064fbf 100%)}

html.auth-open,body.auth-open{overflow:hidden;overscroll-behavior:none}#auth.auth-wrap:not([hidden]){overflow:hidden;overscroll-behavior:none}#auth .auth-card{max-height:none;overflow:visible}

/* Center photo posts in their discussion, including portrait images. */
.channel-comments-page .channel-discussion-post.channel-discussion-photo{display:flex;justify-content:center;align-self:center;width:fit-content;max-width:min(92%,560px);margin-left:auto;margin-right:auto}
.channel-discussion-photo .bubble.photo-message{box-sizing:border-box;flex:0 1 auto}
.channel-discussion-photo .photo-button,.channel-discussion-photo .file-image-preview{max-width:100%;margin-left:auto!important;margin-right:auto!important}
.channel-discussion-photo .photo-button img,.channel-discussion-photo .file-image-preview img{max-width:100%;margin-left:auto!important;margin-right:auto!important}

.channel-comment-reply-button{border:0;background:transparent;color:#087df1;font:inherit;font-size:13px;font-weight:600;padding:5px 2px;align-self:flex-start;cursor:pointer;-webkit-tap-highlight-color:transparent}

/* Forward attribution wraps inside narrow photo and message bubbles. */
.bubble .forwarded-label{display:block;min-width:0;max-width:100%;height:auto;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.bubble .forwarded-source{display:inline;width:auto;min-width:0;max-width:100%;height:auto;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:inherit}

/* Constrain the forward header to the actual photo bubble, not its text's intrinsic width. */
.bubble.forwarded-message>.forwarded-label{display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:6px 9px;margin:0 0 4px;overflow:hidden}
.bubble.forwarded-message .forwarded-caption{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.bubble.forwarded-message .forwarded-source{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:0;margin:0;white-space:normal;overflow-wrap:anywhere;word-break:break-word;text-align:left}
.bubble.photo-message.forwarded-message{min-width:0;box-sizing:border-box;overflow:hidden}

.comment-message-actions{position:fixed;z-index:2402;display:flex;flex-direction:column;width:230px;max-width:calc(100vw - 16px);padding:6px;border:1px solid #d6e9fa;border-radius:20px;background:#f5faff;box-shadow:0 8px 24px #15335f26}
.comment-message-actions button{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:0;border-radius:14px;background:transparent;color:#087df1;font:inherit;font-size:15px;text-align:left;-webkit-tap-highlight-color:transparent}
.comment-message-actions svg{flex:none;width:20px;height:20px}

.comment-selection-bar{position:absolute;z-index:5;bottom:max(10px,env(safe-area-inset-bottom));left:12px;right:12px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px;border:1px solid #d6e9fa;border-radius:24px;background:#f3f9ff;color:#087df1}
.selecting-comments .channel-comments-composer{visibility:hidden}
.channel-comment.comment-selected .channel-comment-content{box-shadow:0 0 0 2px #087df1;background:#dceeff}
.local-dialog textarea{width:100%;min-width:0;box-sizing:border-box;padding:12px;border:1px solid #dceaf8;border-radius:14px;font:inherit;font-size:16px}

/* Selection reserves a left gutter without moving comments beyond the screen. */
.channel-comments-page .channel-comments>.channel-comment{position:relative;transition:padding-left .18s ease}
.channel-comments-page.selecting-comments .channel-comments>.channel-comment{box-sizing:border-box;width:100%;max-width:100%;padding-left:38px;align-self:flex-start}
.selecting-comments .channel-comment-body{flex:1;min-width:0;max-width:calc(100% - 44px)}
.selecting-comments .channel-comment-content{box-sizing:border-box;min-width:0;width:100%;max-width:100%}
.comment-select-toggle{position:absolute;left:2px;top:12px;display:grid;place-items:center;width:27px;height:27px;padding:0;border:1.5px solid #8dbde7;border-radius:50%;background:#fff;color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent}
.comment-select-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.comment-select-toggle[aria-checked=true]{background:#087df1;border-color:#087df1}
.comment-select-toggle[aria-checked=true] svg{opacity:1}
.channel-comment.comment-selected .channel-comment-content{box-shadow:0 8px 24px #315d8b10}
@media(prefers-reduced-motion:reduce){.channel-comments-page .channel-comments>.channel-comment{transition:none}}

/* Android WebViews may not support lvh; use a full-height fallback. */
#contact-profile-dialog.contact-profile-fullscreen{position:fixed;inset:0;box-sizing:border-box;width:100%;height:100%;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow-y:auto;overflow-x:hidden}
#contact-profile-dialog.contact-profile-fullscreen .contact-profile-header{position:sticky;top:0;z-index:2;padding:max(10px,env(safe-area-inset-top)) 14px 10px}
#contact-profile-dialog.contact-profile-fullscreen .contact-profile-body{padding-bottom:max(22px,env(safe-area-inset-bottom));min-width:0}
@media(max-width:640px){#contact-profile-dialog{height:100%;height:100vh;height:100dvh;overflow-y:auto;overflow-x:hidden}}

.channel-comments-page .channel-comment-date{position:relative;top:auto;align-self:center;flex:none;margin:8px auto 6px;pointer-events:none}

.channel-comments-page .channel-discussion-body{overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.channel-comments-page .channel-comments{flex:0 0 auto;overflow:visible;max-height:none}

.messages{gap:4px}
.puls-ios #messages>.message-row,.puls-ios #messages>.missed-call-row{margin-bottom:4px}
.channel-comments-page .channel-comments{gap:4px}
.channel-comments-page .channel-discussion-post{margin-bottom:8px}

/* Keep the comment composer inside the visible viewport above the keyboard. */
.channel-comments-page .channel-discussion-body{padding-bottom:calc(var(--discussion-composer-height,80px) + 30px + env(safe-area-inset-bottom))}
.channel-comments-page.discussion-keyboard-open .channel-comments-composer{bottom:10px}
.channel-comments-page.discussion-keyboard-open .channel-discussion-body{padding-bottom:calc(var(--discussion-composer-height,80px) + 30px)}

/* Center registration and login cards within the safe visible screen. */
#auth.auth-wrap:not([hidden]){display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box}
#auth .auth-card{flex:0 1 auto;margin:auto 0;min-height:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box}

/* Allow the final notification settings group to clear the fixed navigation. */
#account-dialog.notifications-open .account-scroll{padding-bottom:calc(120px + env(safe-area-inset-bottom));scroll-padding-bottom:calc(120px + env(safe-area-inset-bottom))}
#account-dialog.notifications-open .notification-settings{flex-shrink:0}

/* Keep the last settings card above the bottom navigation at the scroll end. */
#account-dialog .account-scroll,#account-dialog .mobile-profile-page-body,#account-dialog .account-sidebar{padding-bottom:calc(120px + env(safe-area-inset-bottom));scroll-padding-bottom:calc(120px + env(safe-area-inset-bottom))}
#account-dialog .account-scroll>.account-card{flex-shrink:0}

/* Include bottom navigation clearance inside the settings scroll viewport. */
@media(max-width:640px){
 #account-dialog.account-page>.account-sidebar{box-sizing:border-box;flex:1 1 auto;min-height:0;height:100%;max-height:100%;overflow-y:auto;padding-bottom:calc(120px + env(safe-area-inset-bottom));scroll-padding-bottom:calc(120px + env(safe-area-inset-bottom))}
 #account-dialog .account-scroll,#account-dialog .mobile-profile-page-body{box-sizing:border-box;min-height:0}
 #account-dialog .account-sidebar>*{flex-shrink:0}
}

/* The settings scroller ends above navigation rather than underneath it. */
@media(max-width:640px){
 #account-dialog.account-page:not([hidden]){position:fixed;height:100dvh;min-height:0;max-height:100dvh}
 #account-dialog.account-page:not(.settings-section-open)>.account-sidebar:not([hidden]){position:absolute;top:0;left:0;right:0;bottom:calc(100px + env(safe-area-inset-bottom));width:100%;height:auto;max-height:none;min-height:0;padding-bottom:24px;scroll-padding-bottom:24px;overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y}
 #account-dialog.account-page:not(.settings-section-open)>.account-sidebar::after{content:'';display:block;height:24px;flex:0 0 24px}
}

.settings-sticky-name{display:none}
@media(max-width:640px){
 #account-dialog .settings-sticky-name{display:flex;justify-content:center;align-items:center;position:sticky;top:0;z-index:5;flex:none;min-height:54px;padding:12px 22px;background:#ffffffed;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
 #account-dialog .settings-sticky-name .mobile-profile-name{margin:0;text-align:center;overflow-wrap:anywhere}
 #account-dialog .mobile-profile-hero:first-of-type{padding-bottom:0}
 #account-dialog .mobile-profile-details{padding-top:0}
}

@media(max-width:640px){
 #account-dialog .settings-sticky-name{background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;padding-left:105px;padding-right:105px;top:env(safe-area-inset-top)}
 #account-dialog .mobile-profile-edit{position:fixed;z-index:8;top:calc(10px + env(safe-area-inset-top));right:22px;margin:0}
 #account-dialog .mobile-profile-hero:first-of-type{padding-top:56px}
}

@media(max-width:640px){
 #account-dialog .settings-sticky-name{top:calc(10px + env(safe-area-inset-top));height:38px;min-height:38px;padding-top:0;padding-bottom:0;box-sizing:border-box}
 #account-dialog .mobile-profile-edit{height:38px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}
}

@media(max-width:640px){
 #account-dialog.account-page:not(.settings-section-open)>.account-sidebar::after{height:var(--settings-scroll-tail,24px);flex-basis:var(--settings-scroll-tail,24px)}
}

@media(max-width:640px){
 #account-dialog .settings-sticky-name{position:relative;top:auto;overflow:visible}
 #account-dialog .settings-sticky-name.name-at-top .mobile-profile-name{position:fixed;top:var(--settings-name-top);left:50%;transform:translateX(-50%);max-width:calc(100vw - 210px);z-index:8}
}

@media(max-width:640px){
 #account-dialog .account-sidebar.profile-has-last-name .settings-sticky-name{margin-top:16px}
}

@media(max-width:640px){
 #account-dialog .settings-sticky-name .mobile-profile-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;max-width:100%;min-width:0}
 #account-dialog .settings-sticky-name:not(.name-at-top){padding-left:22px;padding-right:22px}
 #account-dialog .settings-sticky-name.name-at-top .mobile-profile-name{max-width:calc(100vw - 210px)}
}

@media(max-width:640px){
 #account-dialog .settings-sticky-name .mobile-profile-name{font-size:var(--settings-name-size,25px);line-height:1.2}
 #account-dialog .settings-sticky-name.name-at-top .mobile-profile-name{max-width:var(--settings-name-width,calc(100vw - 210px))}
}

.notification-settings .notification-title{text-align:center;width:100%;margin-left:0!important;margin-right:0!important}

.theme-choices{display:grid;gap:12px}.theme-choice{padding:16px;border:1px solid #d4e5f5;border-radius:16px;background:#f5faff;color:#15335f;text-align:left;font:600 17px Arial,Helvetica,sans-serif}.theme-choice[aria-pressed="true"]{border-color:#168aff;background:#e4f2ff;box-shadow:inset 4px 0 #168aff}
html.puls-dark{color-scheme:dark;--foreground:#e5efff;--muted-foreground:#9bb0ce;--border:#30435d;background:#101c2f}
.puls-dark body{background:#101c2f;color:#e5efff}
.puls-dark :is(.chatlist,.account-sidebar,.account-main,.account-scroll,.mobile-profile-page,.mobile-profile-page-body,.account-card,.local-dialog,.channel-create-dialog,.auth-card,.puls-calls-page){background-color:#142239!important;color:#e5efff!important;border-color:#30435d!important}
.puls-dark :is(.conversation,.channel-comments-page){background-color:#172c46!important;background-blend-mode:soft-light!important}
.puls-dark :is(.conversation-header,.mobile-profile-page-header,.channel-comments-header,.composer,.channel-comments-composer,#bottom-navigation,#profile-navigation,.puls-calls-navigation,.settings-menu,.account-heading){background:#1c3049ee!important;border-color:#354b66!important;color:#e5efff!important}
.puls-dark :is(.bubble,.channel-comment-content,.channel-discussion-post .bubble){background:#253d57!important;border-color:#3a526d!important;color:#edf4ff!important}
.puls-dark :is(.mine .bubble,.channel-comment.mine .channel-comment-content){background:#304e6b!important;border-color:#466582!important;color:#fff!important}
.puls-dark :is(input,textarea,select,.theme-choice,.mobile-avatar-change,.chat.active,.comment-reply-quote,.reply-quote){background-color:#20354e!important;border-color:#3a526d!important;color:#e5efff!important}
.puls-dark :is(h1,h2,h3,strong,.mobile-profile-name,.notification-title,.notification-section-title,.preference-copy strong,.chat-title,.bubble p,.channel-comment-content p){color:#e5efff!important}
.puls-dark :is(.chat-preview p,.mobile-profile-email,.notification-subtitle,.preference-copy small,.account-card p,.message-meta,time){color:#a7bbd4!important}
.puls-dark .theme-choice[aria-pressed="true"]{background:#234c76!important;border-color:#168aff!important}
.puls-dark :is(#message-menu,.message-menu-actions,.message-menu-reactions,.message-menu-preview .bubble,.channel-reactions-compact,.reaction-picker){background-color:#20354e!important;color:#e5efff!important;border-color:#3a526d!important}

.puls-dark :is(.notification-group,.notification-icon,.profile-edit-card,.mobile-profile-hero,.forwarded-label,.photo-caption){background-color:#20354e!important;background-image:none!important;color:#e5efff!important;border-color:#3a526d!important}
.puls-dark .notification-section{color:#e5efff!important}
.puls-dark .settings-menu button{color:#e5efff!important}
.puls-dark .settings-menu button.active{background:#234c76!important}

.night-schedule{display:grid;gap:12px;margin-top:20px}.night-schedule label{display:grid;gap:8px}.night-schedule input{width:100%;min-width:0;box-sizing:border-box}

.night-mode-toggle{display:flex;align-items:center;gap:16px;margin-top:20px;padding:16px;border:1px solid var(--border);border-radius:18px}
.night-mode-toggle .preference-copy{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}.night-mode-toggle small{font-weight:400;color:#7890ab;line-height:1.4}
.night-mode-toggle input[type=checkbox]{appearance:none;-webkit-appearance:none;width:51px;height:30px;flex:0 0 51px;margin:0;padding:0;min-height:0;border:0;border-radius:30px;background:#a4b3c8!important;position:relative;cursor:pointer}
.night-mode-toggle input[type=checkbox]:after{content:'';position:absolute;top:2px;left:2px;width:26px;height:26px;background:#fff;border-radius:50%;transition:transform .18s}
.night-mode-toggle input[type=checkbox]:checked{background:#088aff!important}.night-mode-toggle input[type=checkbox]:checked:after{transform:translateX(21px)}

/* Puls night palette: quiet navy surfaces with clear blue accents. */
html.puls-dark{--foreground:#e8f1ff;--muted-foreground:#95abc6;--border:#293e58;--primary:#46aaff;--night-base:#0c1727;--night-surface:#14263b;--night-raised:#1a3048;--night-accent:#72c6ff}
.puls-dark body,.puls-dark #app{background:#0c1727}
.puls-dark :is(.chatlist,.account-sidebar,.account-main,.account-scroll,.mobile-profile-page,.mobile-profile-page-body,.puls-calls-page){background:#0f1d2f!important}
.puls-dark :is(.account-card,.profile-edit-card,.local-dialog,.auth-card,.notification-group,.settings-menu){background:#172a40!important;border-color:#2b415c!important;box-shadow:0 10px 28px #00000020}
.puls-dark :is(.conversation,.channel-comments-page){background-color:#10233a!important;background-image:radial-gradient(ellipse at 100% 0%,#14628c26,transparent 60%),linear-gradient(150deg,#112b45,#0c1b2f)!important;background-blend-mode:normal!important}
.puls-dark :is(.conversation-header,.account-heading,.channel-comments-header,.mobile-profile-page-header,.composer,.channel-comments-composer,#bottom-navigation,#profile-navigation,.puls-calls-navigation,.puls-calls-header){background:#162b42ed!important;border-color:#2b4560!important;box-shadow:0 6px 22px #00000025}
.puls-dark :is(.search,.search input,.chat-filter-tabs,.reply-composer,.comment-reply-preview,.attachment,.file-download,.file-details,#account-email,.channel-post-actions,.channel-post-comments){background:#172d44!important;border-color:#2c4662!important;color:#cce6ff!important}
.puls-dark .chat{background:transparent!important;border-color:#273d56!important;color:#e8f1ff!important;box-shadow:none}
.puls-dark .chat.active{background:#193650!important}
.puls-dark :is(.bubble,.channel-comment-content,.channel-discussion-post .bubble){background:#1c344b!important;border-color:#2c4762!important;box-shadow:0 3px 12px #00000015}
.puls-dark :is(.mine .bubble,.channel-comment.mine .channel-comment-content){background:#264b69!important;border-color:#345e7d!important}
.puls-dark :is(.forwarded-caption,.forwarded-label,.message-reply-quote,.reply-quote,.comment-reply-quote){background:#14283d!important;border-color:#487b9e!important;color:#d6edff!important}
.puls-dark :is(.forwarded-source,.channel-post-comments,.text-button,.chat-filter-tabs button,.bottom-nav-button,.notification-back){color:#72c6ff!important}
.puls-dark :is(.message-meta,.puls-player-time,.puls-call-date,.channel-post-time){color:#aec7df!important;opacity:.9}
.puls-dark .message-meta svg{color:#76caff;opacity:1}
.puls-dark :is(.puls-player-cardiogram,.mine .puls-player-cardiogram){color:#7cd4ff!important}.puls-dark .cardiogram-base{opacity:.55!important}
.puls-dark :is(.puls-player-speed,.channel-reaction-count,.comment-reactions button,.message-reactions button){background:#294760!important;border-color:#3c5c78!important;color:#e8f4ff!important}
.puls-dark :is(.chat-call-icon,.missed-call-icon){background:#172b41!important}.puls-dark :is(.missed-call-row,.call-entry-details,.puls-call-contact-text){color:#d3e7ff!important}
.puls-dark :is(#message-menu,.message-menu-actions,.message-menu-reactions,.channel-reactions-compact){background:#1a3048!important;border-color:#38536f!important;box-shadow:0 12px 40px #0008}
.puls-dark :is(#message-menu button,.message-menu-actions button){color:#dceeff}.puls-dark :is(#message-menu-delete,.chat-remove,.account-logout,.mobile-profile-logout){color:#ff8d98!important}
.puls-dark input::placeholder,.puls-dark textarea::placeholder{color:#8da6c1;opacity:1}
.puls-dark .mobile-profile-hero{background:transparent!important}.puls-dark .notification-icon{color:#63bbff!important}
.puls-dark ::-webkit-scrollbar-thumb{background:#36536e;border-radius:8px}.puls-dark ::-webkit-scrollbar-track{background:transparent}

/* Black night appearance. */
html.puls-dark{background:#000;--night-base:#000;--night-surface:#111;--night-raised:#1b1b1b;--border:#303030}
.puls-dark body,.puls-dark #app{background:#000}
.puls-dark :is(.chatlist,.account-sidebar,.account-main,.account-scroll,.mobile-profile-page,.mobile-profile-page-body,.puls-calls-page,.conversation,.channel-comments-page){background:#000!important;background-image:none!important}
.puls-dark :is(.account-card,.profile-edit-card,.local-dialog,.auth-card,.notification-group,.settings-menu,.channel-create-dialog){background:#111!important;border-color:#303030!important}
.puls-dark :is(.conversation-header,.account-heading,.channel-comments-header,.mobile-profile-page-header,.composer,.channel-comments-composer,#bottom-navigation,#profile-navigation,.puls-calls-navigation,.puls-calls-header){background:#151515ed!important;border-color:#333!important}
.puls-dark :is(.search,.search input,.chat-filter-tabs,.reply-composer,.comment-reply-preview,.attachment,.file-download,.file-details,#account-email,.channel-post-actions,.channel-post-comments,input,textarea,select,.theme-choice,.mobile-avatar-change){background-color:#171717!important;border-color:#333!important}
.puls-dark :is(.bubble,.channel-comment-content,.channel-discussion-post .bubble){background:#1b1b1b!important;border-color:#333!important}
.puls-dark :is(.mine .bubble,.channel-comment.mine .channel-comment-content){background:#292929!important;border-color:#414141!important}
.puls-dark :is(.forwarded-caption,.forwarded-label,.message-reply-quote,.reply-quote,.comment-reply-quote){background:#101010!important;border-color:#555!important}
.puls-dark :is(#message-menu,.message-menu-actions,.message-menu-reactions,.channel-reactions-compact,.reaction-picker,.puls-player-speed,.channel-reaction-count,.comment-reactions button,.message-reactions button,.notification-icon,.chat-call-icon,.missed-call-icon){background:#202020!important;border-color:#3c3c3c!important}
.puls-dark .chat.active{background:#202020!important}.puls-dark .mobile-profile-hero{background:transparent!important}

#account-dialog.theme-settings-open #profile-navigation{display:none!important}
#account-dialog.theme-settings-open .account-scroll{padding-bottom:calc(24px + env(safe-area-inset-bottom));scroll-padding-bottom:24px}
#account-dialog.theme-settings-open .theme-settings-content{background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important;padding:0;width:100%;max-width:680px}

#account-dialog.theme-settings-open .account-main,#account-dialog.theme-settings-open .account-scroll{background:#fff!important;background-image:none!important}
.puls-dark #account-dialog.theme-settings-open .account-main,.puls-dark #account-dialog.theme-settings-open .account-scroll{background:#000!important}

#account-dialog.theme-settings-open .account-heading,#account-dialog.theme-settings-open .settings-section-back{display:none!important}
#account-dialog.theme-settings-open .account-scroll{padding-top:calc(18px + env(safe-area-inset-top))}
.theme-settings-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;margin-bottom:24px}
.theme-settings-header h2{margin:0;text-align:center;font-size:21px;line-height:1.3}
.theme-settings-back{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #dceaf8;border-radius:14px;background:#f1f7fd;color:#087df1;cursor:pointer}
.theme-settings-back svg{display:block}
.puls-dark .theme-settings-back{background:#202020;border-color:#333;color:#72c6ff}

.night-mode-block{margin-top:20px;border:1px solid var(--border);border-radius:18px;overflow:hidden}
.night-mode-block .night-mode-toggle{margin:0;border:0;border-radius:0}
.night-mode-configure{display:block;width:100%;padding:14px 16px;border:0;border-top:1px solid var(--border);background:transparent;color:#087df1;text-align:left;font:600 16px Arial,Helvetica,sans-serif;cursor:pointer}
.night-mode-configure:after{content:'›';float:right;font-size:22px;line-height:18px}
.puls-dark .night-mode-configure{color:#72c6ff}

.night-mode-configure{display:flex;align-items:center;gap:12px;width:calc(100% - 24px);margin:0 12px 12px;padding:10px 14px;border:1px solid #d6e9fb;border-radius:16px;background:linear-gradient(145deg,#f2f9ff,#e7f3ff);color:#087df1;box-shadow:0 5px 14px #087df10c}
.night-mode-configure:after{display:none}
.night-config-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:linear-gradient(145deg,#1496fc,#0872e4);color:white;box-shadow:0 4px 10px #087df12b}
.night-config-icon svg{width:21px;height:21px}.night-config-arrow{display:grid;place-items:center;margin-left:auto;color:#087df1}.night-config-arrow svg{width:19px;height:19px}
.puls-dark .night-mode-configure{background:#202020;border-color:#383838;color:#72c6ff;box-shadow:none}.puls-dark .night-config-arrow{color:#72c6ff}

/* Time controls must fit narrow iPhone and Android screens. */
#account-dialog.theme-settings-open .theme-settings-content,#account-dialog.theme-settings-open .night-schedule{min-width:0;max-width:100%;box-sizing:border-box}
#account-dialog.theme-settings-open .night-schedule label{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%;overflow-wrap:anywhere}
#account-dialog.theme-settings-open .night-schedule input[type=time]{display:block;width:100%;min-width:0;max-width:100%;height:48px;margin:8px 0 12px;padding:10px 12px;box-sizing:border-box;font-size:16px;appearance:none;-webkit-appearance:none}
#account-dialog.theme-settings-open .night-schedule input[type=time]::-webkit-date-and-time-value{min-width:0;text-align:left}
#account-dialog.theme-settings-open .night-schedule input[type=time]::-webkit-datetime-edit{min-width:0;padding:0}

/* Settings content scrolls behind the fixed bottom controls. */
@media(max-width:640px){
 #account-dialog.account-page:not(.settings-section-open)>.account-sidebar:not([hidden]){bottom:0;padding-bottom:calc(110px + env(safe-area-inset-bottom));scroll-padding-bottom:calc(110px + env(safe-area-inset-bottom))}
 #account-dialog #profile-navigation{position:absolute;z-index:20}
}

/* Soft fading blur behind the bottom settings controls. */
@media(max-width:640px){
 #account-dialog.account-page:not(.theme-settings-open)::after{content:'';position:absolute;left:0;right:0;bottom:0;height:calc(110px + env(safe-area-inset-bottom));z-index:15;pointer-events:none;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);background:linear-gradient(to bottom,#ffffff00,#ffffff35);mask-image:linear-gradient(to bottom,transparent,#000 55%);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 55%)}
 .puls-dark #account-dialog.account-page:not(.theme-settings-open)::after{background:linear-gradient(to bottom,#0000,#0006)}
}

@media(max-width:640px){
 #account-dialog.account-page:not(.settings-section-open)::before{content:'';position:absolute;left:0;right:0;top:0;height:calc(64px + env(safe-area-inset-top));z-index:6;pointer-events:none;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);background:linear-gradient(to bottom,#ffffff35,#ffffff00);mask-image:linear-gradient(to bottom,#000 35%,transparent);-webkit-mask-image:linear-gradient(to bottom,#000 35%,transparent)}
 .puls-dark #account-dialog.account-page:not(.settings-section-open)::before{background:linear-gradient(to bottom,#0006,#0000)}
 #account-dialog .settings-sticky-name.name-at-top .mobile-profile-name{z-index:8}
}

/* Keep profile controls above the upper blur layer. */
@media(max-width:640px){
 #account-dialog .settings-sticky-name{z-index:10}
 #account-dialog .settings-sticky-name.name-at-top .mobile-profile-name{z-index:11;filter:none;-webkit-filter:none}
 #account-dialog .mobile-profile-edit{z-index:11;filter:none;-webkit-filter:none}
}

@media(max-width:640px){
 #account-dialog>.settings-pinned-profile-name{position:fixed;z-index:30;top:var(--settings-name-top);left:50%;transform:translateX(-50%);margin:0;font-size:var(--settings-name-size,18px);line-height:1.2;max-width:var(--settings-name-width);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:transparent;filter:none;-webkit-filter:none}
 #account-dialog>.mobile-profile-edit{position:fixed;z-index:30}
 #account-dialog.settings-section-open>.mobile-profile-edit,#account-dialog.settings-section-open>.settings-pinned-profile-name,#account-dialog:has(.account-sidebar[hidden])>.mobile-profile-edit,#account-dialog:has(.account-sidebar[hidden])>.settings-pinned-profile-name{display:none!important}
}

.puls-contacts-page{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:#fff;color:#15335f}
.contacts-page-body{position:absolute;inset:0;overflow-y:auto;overscroll-behavior:contain;padding:calc(100px + env(safe-area-inset-top)) 20px calc(120px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}
.contacts-page-search{margin-bottom:16px}.contacts-page-search input{width:100%;min-width:0;padding:15px 16px;border:1px solid #dceaf8;border-radius:16px;background:#f1f7fd;color:#15335f;font:16px Arial,Helvetica,sans-serif}
.contacts-phonebook{width:100%;border-radius:16px;margin-bottom:12px;background:linear-gradient(145deg,#1496fc,#0872e4)}
.contacts-page-list{display:grid;gap:8px}.contacts-page-list .contact-result{width:100%;border-radius:18px;text-align:left}.contacts-page-status{margin:12px 0}.contacts-page-status:empty{display:none}
.puls-dark .puls-contacts-page{background:#000;color:#e5efff}.puls-dark .contacts-page-list .contact-result{background:#171717;border-color:#333;color:#e5efff}

.contacts-header-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:linear-gradient(145deg,#1496fc,#0872e4);color:#fff;box-shadow:0 4px 12px #087df12b}
.contacts-header-icon svg{display:block;width:24px;height:24px}

/* Alphabetical contacts are plain rows, without enclosing cards. */
.contacts-page-list{display:block;padding-right:24px}.contacts-letter-group{margin:0 0 16px}
.contacts-letter-heading{margin:12px 0 6px;padding:0 2px;color:#087df1;font-size:17px;font-weight:700}
.puls-contacts-page .contacts-page-list .contact-result{display:flex;align-items:center;gap:13px;padding:10px 0;border:0;border-radius:0;background:transparent!important;box-shadow:none;margin:0;min-width:0}
.contacts-page-list .contact-result-copy{flex:1;min-width:0}.contacts-page-list .contact-result-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.contacts-alphabet{position:absolute;z-index:4;right:5px;top:calc(185px + env(safe-area-inset-top));bottom:calc(116px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:25px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.contacts-alphabet::-webkit-scrollbar{display:none}.contacts-alphabet-letter{flex:1 0 13px;display:grid;place-items:center;width:25px;min-height:13px;margin:0;padding:0;border:0;background:transparent;color:#087df1;font-size:10px;font-weight:700;line-height:1;cursor:pointer}
.contacts-alphabet-letter:disabled{color:#99aec4;opacity:.5}.puls-dark .contacts-letter-heading,.puls-dark .contacts-alphabet-letter{color:#72c6ff}.puls-dark .contacts-alphabet-letter:disabled{color:#666}

.puls-contacts-page[open]{display:block;visibility:visible;opacity:1}
.puls-contacts-page.contacts-page-fallback{z-index:10000;height:100vh;height:100dvh}

/* Avoid Android's modal top-layer compositor for the Contacts page. */
.puls-contacts-page.contacts-page-fallback{position:fixed;inset:0;z-index:10000;margin:0;max-width:none;max-height:none;display:block}
.puls-contacts-page .puls-calls-header,.puls-contacts-page .puls-calls-navigation{backdrop-filter:none;-webkit-backdrop-filter:none}

/* One shared bottom navigation appearance across chats, profile, calls and contacts. */
.puls-bottom-navigation{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;padding:8px!important;min-height:78px!important;box-sizing:border-box!important;border:1px solid #dceaf8!important;border-radius:16px!important;background:#f1f7fd!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.puls-bottom-navigation .bottom-nav-button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;height:62px!important;padding:4px 0!important;gap:5px!important;border:0!important;border-radius:14px!important;background:transparent!important;color:#527497!important;font:11px Arial,Helvetica,sans-serif!important}
.puls-bottom-navigation .bottom-nav-button svg{display:block!important;flex:none!important;width:36px!important;height:36px!important;padding:8px!important;border:0!important;border-radius:50%!important;background:linear-gradient(145deg,#1496fc,#0872e4)!important;color:#fff!important;stroke-width:1.8!important;box-shadow:0 5px 12px #087df12b!important}
.puls-bottom-navigation .bottom-nav-button[data-nav-role="settings"] svg{padding:6px!important;stroke:none!important;border:1px solid #0785f5!important;background:linear-gradient(145deg,#16a5ff 0%,#0785f5 55%,#0865db 100%)!important;box-shadow:inset 0 1px 1px #ffffff66,0 5px 12px #0785f52b!important}
.puls-bottom-navigation .bottom-nav-button.active{background:transparent!important;color:#087df1!important}
.puls-bottom-navigation .bottom-nav-button.active svg{box-shadow:0 0 0 3px #cce8ff,0 5px 12px #087df12b!important}
.puls-bottom-navigation .bottom-nav-button span{white-space:nowrap;line-height:normal}
#account-dialog>.puls-bottom-navigation,.puls-calls-page>.puls-bottom-navigation,.puls-contacts-page>.puls-bottom-navigation{position:absolute!important;z-index:40!important;left:22px!important;right:22px!important;bottom:max(10px,env(safe-area-inset-bottom))!important;width:auto!important;margin:0!important}
@media(max-width:640px){#bottom-navigation.puls-bottom-navigation{position:absolute!important;z-index:40!important;left:22px!important;right:22px!important;bottom:max(10px,env(safe-area-inset-bottom))!important;width:auto!important;margin:0!important}}
.puls-dark .puls-bottom-navigation{background:#151515ed!important;border-color:#333!important}.puls-dark .puls-bottom-navigation .bottom-nav-button{color:#a7bbd4!important}.puls-dark .puls-bottom-navigation .bottom-nav-button.active{color:#72c6ff!important}.puls-dark .puls-bottom-navigation .bottom-nav-button.active svg{box-shadow:0 0 0 3px #254866,0 5px 12px #0003!important}

/* Contacts and Calls share the same page surfaces and directory row metrics. */
:is(.puls-calls-page,.puls-contacts-page){background:linear-gradient(155deg,#f8fcff,#e6f3ff);color:#18385f}
:is(.puls-calls-page,.puls-contacts-page) .puls-calls-header{top:max(12px,env(safe-area-inset-top));left:12px;right:12px;grid-template-columns:48px minmax(0,1fr) 48px;gap:12px;padding:10px;border:1px solid #d7e9fa;border-radius:28px;background:#ffffffed;box-shadow:0 8px 24px #087df10c;backdrop-filter:none;-webkit-backdrop-filter:none}
:is(.puls-calls-page,.puls-contacts-page) :is(.puls-calls-body,.contacts-page-body){padding-top:calc(108px + env(safe-area-inset-top));padding-left:0;padding-right:0;padding-bottom:calc(110px + env(safe-area-inset-bottom))}
.puls-contacts-page .contacts-page-search,.puls-contacts-page .contacts-phonebook,.puls-contacts-page .contacts-page-status{margin-left:20px;margin-right:20px;width:calc(100% - 40px)}
.puls-contacts-page .contacts-page-list{width:100%;max-width:none;padding-right:25px;margin:0}
.puls-contacts-page .contacts-letter-heading{padding:0 20px;margin-top:12px}
.puls-contacts-page .contacts-letter-group{margin-bottom:0}
.puls-contacts-page .contacts-page-list .contact-result{width:100%;padding:16px 20px;gap:14px;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none}
.puls-contacts-page .contact-result-avatar{width:52px;height:52px;flex:0 0 52px;border-radius:50%;overflow:hidden}
.puls-contacts-page .contact-result-copy{display:grid;gap:5px;min-width:0;flex:1}
.puls-contacts-page .contact-result-copy strong{font-size:16px}.puls-contacts-page .contact-result-copy small{font-size:13px;color:#7890ab}
.puls-dark :is(.puls-calls-page,.puls-contacts-page){background:#000!important;color:#e5efff}

/* Directory avatars match the chat list avatars. */
:is(.puls-contacts-page,.puls-calls-page) .contact-result-avatar{display:grid;place-items:center;width:46px;min-width:46px;max-width:46px;height:46px;min-height:46px;max-height:46px;flex:0 0 46px;border-radius:17px;background:#e8f3ff;color:#0874e8;font-size:24px;font-weight:600;overflow:hidden;contain:layout paint}
:is(.puls-contacts-page,.puls-calls-page) .contact-result-avatar img{display:block;width:46px;height:46px;max-width:none;max-height:none;object-fit:cover;border-radius:inherit}

.puls-contacts-page .contacts-page-search input{background:#fff;border:1px solid #9bc9ee;box-shadow:0 4px 14px #087df114;color:#15335f}
.puls-contacts-page .contacts-page-search input:focus{border-color:#087df1;box-shadow:0 0 0 2px #087df11c}
.puls-dark .puls-contacts-page .contacts-page-search input{background:#242424!important;border-color:#656565!important;box-shadow:0 4px 14px #0005;color:#e8f1ff!important}

.puls-contacts-page .contacts-letter-heading{display:flex;align-items:center;gap:12px}
.puls-contacts-page .contacts-letter-heading::after{content:'';flex:1;height:1px;background:#b8d4ea}
.puls-dark .puls-contacts-page .contacts-letter-heading::after{background:#383838}

/* Fine separators between chat rows, aligned with their text. */
#chats .chat-swipe{position:relative}
#chats .chat-swipe:not(:last-child)::after{content:'';position:absolute;left:80px;right:22px;bottom:0;height:1px;background:#cbdfee;pointer-events:none}
.puls-dark #chats .chat-swipe:not(:last-child)::after{background:#333}

#chats .chat-swipe:not(:last-child)::after{z-index:2;left:72px;right:12px;background:#b3cfe4}
.puls-dark #chats .chat-swipe:not(:last-child)::after{background:#444}

#chats .chat-swipe:not(:last-child)::after{height:1px;transform:scaleY(.5);transform-origin:bottom;opacity:.75}

/* Identical top panels for both directory pages. */
:is(.puls-contacts-page,.puls-calls-page) .puls-calls-header{box-sizing:border-box;display:grid;position:absolute;z-index:2;top:max(12px,env(safe-area-inset-top));left:12px;right:12px;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:12px;min-height:70px;margin:0;padding:10px;border:1px solid #d7e9fa;border-radius:28px;background:#ffffffed;box-shadow:0 8px 24px #087df10c;backdrop-filter:none;-webkit-backdrop-filter:none}
:is(.puls-contacts-page,.puls-calls-page) .puls-calls-header h2{text-align:center;font-size:22px;line-height:1.2;margin:0}
:is(.puls-contacts-page,.puls-calls-page) .contacts-header-icon{justify-self:center;width:40px;height:40px;flex:none}
.puls-dark :is(.puls-contacts-page,.puls-calls-page) .puls-calls-header{background:#151515ed!important;border-color:#333!important}

/* The edit profile header stays sharp above scroll effects. */
#account-dialog:has(#mobile-profile-page:not([hidden]))::before{display:none!important}
#account-dialog .mobile-profile-page-header{z-index:50;filter:none!important;-webkit-filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#f1f7fd!important}
.puls-dark #account-dialog .mobile-profile-page-header{background:#151515!important}

/* All back arrows use the same control as the chat header. */
.puls-back-button{display:grid!important;place-items:center!important;flex:0 0 43px!important;width:43px!important;min-width:43px!important;max-width:43px!important;height:43px!important;min-height:43px!important;padding:0!important;border:0!important;border-radius:50%!important;background:linear-gradient(145deg,#1496fc,#0872e4)!important;color:#fff!important;font:23px Arial,Helvetica,sans-serif!important;box-shadow:0 8px 18px #087df133!important}
.puls-back-button .puls-back-arrow{display:block!important;transform:rotate(180deg)!important;line-height:1!important;color:#fff!important}

.puls-back-button[hidden]{display:none!important}
#account-dialog:not(.settings-section-open) .settings-section-back{display:none!important}

.settings-about-block{margin:4px 10px 20px;padding:8px;border:1px solid #dceaf8;border-radius:24px;background:#f4f9ff;box-shadow:0 10px 28px #234f7f0c}
.settings-about-block button{display:flex;align-items:center;gap:14px;width:100%;min-height:60px;padding:10px 14px;border:0;border-radius:16px;background:transparent;color:#15335f;font:600 15px Arial,Helvetica,sans-serif;text-align:left}
.settings-about-block button img{display:block;flex:none;width:38px;height:38px;border-radius:11px;object-fit:contain}
.settings-about-block button>svg{width:19px;height:19px;flex:none;margin-left:auto;color:#8ca5bf}
.about-app-icon{display:block;width:80px;height:80px;border-radius:22px;object-fit:contain;margin:0 auto 24px}
.puls-dark .settings-about-block{background:#111;border-color:#303030;box-shadow:none}.puls-dark .settings-about-block button{color:#e5efff}

.about-app-versions{margin:22px 0;padding:16px;border:1px solid var(--border);border-radius:18px}.about-app-versions p{margin:0 0 8px}.about-app-versions p:last-child{margin-bottom:0}

/* Separate compatible selectors: older Android must not depend on :has(). */
#account-dialog.settings-section-open>.mobile-profile-edit{display:none!important}
#account-dialog.settings-section-open>.settings-pinned-profile-name{display:none!important}
#account-dialog.theme-settings-open #mobile-profile-name{display:none!important}
#account-dialog.theme-settings-open #mobile-profile-edit{display:none!important}
#mobile-profile-edit[hidden],#mobile-profile-name[hidden]{display:none!important}

/* Android WebView already supplies its usable screen height. */
html.puls-android,html.puls-android body{height:100%;min-height:0}
.puls-android #app.messenger:not([hidden]){position:fixed;inset:0;height:100%;min-height:0;max-height:100%;margin:0}
@media(max-width:640px){
 .puls-android #app>.chatlist{height:100%;min-height:0;padding-bottom:86px}
 .puls-android #bottom-navigation.puls-bottom-navigation{bottom:0!important}
}

#mobile-profile-form>#logout{position:static;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;margin:10px 0 0;padding:13px 18px;border:0;border-radius:16px;background:linear-gradient(145deg,#1496fc,#0872e4);color:#fff;font:700 16px Arial,Helvetica,sans-serif;box-shadow:0 5px 14px #087df120}
#mobile-profile-form>#logout svg{display:block;flex:none}

@media(max-width:640px){
 .puls-android #bottom-navigation.puls-bottom-navigation{bottom:max(10px,env(safe-area-inset-bottom))!important}
 .puls-android #app>.chatlist{padding-bottom:calc(98px + env(safe-area-inset-bottom))}
}

.delete-account-button{width:100%;padding:14px 18px;margin-top:14px;border:1px solid #f0c8d0;border-radius:16px;background:#fff1f3;color:#c3354c;font:700 16px Arial,Helvetica,sans-serif}
.puls-dark .delete-account-button{background:#2b151a;border-color:#63303c;color:#ff8d98}.account-delete-confirm input{width:100%;min-width:0;box-sizing:border-box;font-size:16px}

.call-dialog.video-call{width:min(100vw - 24px,560px);max-height:calc(100dvh - 24px);overflow-y:auto;padding:16px;background:#0b1728;color:#edf4ff}
.call-video-stage{position:relative;width:100%;height:min(52dvh,440px);min-height:180px;overflow:hidden;border-radius:24px;background:#13253a;margin-bottom:14px}
#call-remote-video{display:block;width:100%;height:100%;object-fit:cover;background:#101d30}
#call-local-video{position:absolute;right:12px;bottom:12px;width:100px;height:132px;border:2px solid #ffffff88;border-radius:16px;object-fit:cover;transform:scaleX(-1);background:#162b42}
.call-dialog.video-call #call-avatar{display:none}.call-dialog.video-call .call-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.call-dialog.video-call .call-options button{min-width:0;padding:8px 2px;font-size:11px;background:#223951;color:#dceeff}.call-dialog.video-call .call-options button[aria-pressed=true]{background:#126fd4;color:#fff}

/* Keep camera previews on separate layers in Android WebView. */
.puls-android #call-local-video{z-index:2;transform:none}
.puls-android #call-remote-video{position:relative;z-index:1}

/* Full-screen Puls video calls. */
.call-dialog.video-call{position:fixed;inset:0;box-sizing:border-box;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:#0c1825;color:white;box-shadow:none}
.call-dialog.video-call .call-video-stage{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;border-radius:0}
.call-dialog.video-call::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(#0008,transparent 28%,transparent 65%,#000a);z-index:2}
.call-dialog.video-call #call-remote-video{position:absolute;inset:0;width:100%;height:100%;z-index:1}
.call-dialog.video-call #call-local-video{top:calc(max(18px,env(safe-area-inset-top)) + 100px);bottom:auto;right:18px;width:clamp(92px,25vw,140px);height:clamp(130px,35vw,186px);border:1px solid #ffffffaa;border-radius:14px;z-index:3;background:#20354a;box-shadow:0 4px 18px #0004}
.call-dialog.video-call .call-heading{position:absolute;top:calc(max(18px,env(safe-area-inset-top)) + 18px);left:70px;right:70px;z-index:4;text-align:center;text-shadow:0 1px 5px #0009}
.call-dialog.video-call .call-heading h2{margin:0;font-size:23px;line-height:1.25;color:white}
.call-dialog.video-call .call-heading p{margin:6px 0;color:#ffffffdf;font-size:14px}
.call-dialog.video-call #call-elapsed{font-size:15px;color:#ffffffdf;font-variant-numeric:tabular-nums}
.call-dialog.video-call .call-options{position:absolute;z-index:4;bottom:calc(max(20px,env(safe-area-inset-bottom)) + 5px);left:12px;right:12px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:0;align-items:start}
.call-dialog.video-call .call-options button{position:relative;box-sizing:border-box;width:100%;min-width:0;height:82px;padding:14px 0 0;display:flex;flex-direction:column;align-items:center;gap:19px;background:none!important;border:0;border-radius:0;color:#fff;font-size:11px;box-shadow:none}
.call-dialog.video-call .call-options button::before{content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);width:54px;height:54px;border-radius:50%;background:#f7fbfff5;box-shadow:0 3px 12px #0002;z-index:-1}
.call-dialog.video-call .call-options button svg{width:26px;height:26px;color:#0784f6;flex:none}
.call-dialog.video-call .call-options button[aria-pressed=true]::before{background:#0784f6}
.call-dialog.video-call .call-options button[aria-pressed=true] svg{color:white}
.call-dialog.video-call #call-microphone{grid-column:1;grid-row:1}.call-dialog.video-call #call-camera{grid-column:2;grid-row:1}.call-dialog.video-call #call-speaker{grid-column:4;grid-row:1}.call-dialog.video-call #call-fit-video{grid-column:5;grid-row:1}
.call-dialog.video-call #call-switch-camera{position:fixed;z-index:5;top:calc(max(18px,env(safe-area-inset-top)) + 100px + clamp(130px,35vw,186px) - 42px);right:24px;width:34px;height:34px;padding:7px;border-radius:50%;background:#f7fbfff5!important;color:#0784f6;gap:0}
.call-dialog.video-call #call-switch-camera::before,.call-dialog.video-call #call-switch-camera span{display:none}.call-dialog.video-call #call-switch-camera svg{width:20px;height:20px}
.call-dialog.video-call .call-actions{position:absolute;z-index:5;left:50%;transform:translateX(-50%);bottom:calc(max(20px,env(safe-area-inset-bottom)) + 33px);display:flex;gap:22px;margin:0}
.call-dialog.video-call .call-action{width:54px;height:54px;border:0;box-shadow:0 3px 12px #0002}
.call-dialog.video-call #call-hangup::after{content:"Завершить";position:absolute;top:62px;left:50%;transform:translateX(-50%);font-size:11px;color:white;font-weight:400;white-space:nowrap}
.call-dialog.video-call #call-option-status{position:absolute;z-index:5;left:18px;right:18px;bottom:calc(max(20px,env(safe-area-inset-bottom)) + 100px);color:white;font-size:13px;background:#102335cc;padding:10px;border-radius:14px;margin:0}
.call-dialog.video-call.incoming-call .call-options{visibility:hidden}
.call-dialog.video-call [hidden]{display:none!important}
@media(max-width:350px){.call-dialog.video-call .call-options button::before,.call-dialog.video-call .call-action{width:46px;height:46px}.call-dialog.video-call .call-options button{padding-top:10px}}

.call-dialog.video-call .call-end{transform:none}
.call-dialog.video-call #call-decline svg{transform:rotate(135deg)}

.call-dialog.video-call #call-speaker{display:none!important}
.call-dialog.video-call .call-options{grid-template-columns:repeat(4,minmax(0,1fr))}
.call-dialog.video-call #call-fit-video{grid-column:4}
.call-dialog.video-call .call-actions{left:calc(12px + (100% - 24px)*.625)}

.call-dialog.video-call.incoming-call .call-actions{left:50%}

/* Incoming audio and video calls share a clear full-screen invitation. */
.call-dialog.incoming-call{position:fixed;inset:0;box-sizing:border-box;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:radial-gradient(ellipse at 50% 40%,#20364b 0%,#0b1726 65%,#060d17 100%);color:white;box-shadow:none}
.call-dialog.incoming-call::after{display:none}
.call-dialog.incoming-call .call-video-stage,.call-dialog.incoming-call .call-options{display:none!important}
.call-dialog.incoming-call #call-avatar{display:grid;position:absolute;z-index:4;top:42%;left:50%;transform:translate(-50%,-50%);width:142px;height:142px;margin:0;border-radius:50%;background:#214566;color:white;font-size:40px;border:3px solid #ffffff24;box-shadow:0 16px 60px #0005;overflow:hidden;place-items:center}
.call-dialog.incoming-call #call-avatar img{width:100%;height:100%;object-fit:cover}
.call-dialog.incoming-call .call-heading{position:absolute;z-index:4;top:calc(42% + 94px);left:24px;right:24px;text-align:center;text-shadow:none}
.call-dialog.incoming-call .call-heading h2{color:white;font-size:26px;margin:0;line-height:1.25}
.call-dialog.incoming-call .call-heading p{color:#aebfd0;font-size:16px;margin:10px 0 0}
.call-dialog.incoming-call #call-elapsed{display:none}
.call-dialog.incoming-call .call-actions{position:absolute;z-index:5;bottom:calc(max(30px,env(safe-area-inset-bottom)) + 34px);left:50%;transform:translateX(-50%);display:flex;flex-direction:row-reverse;gap:76px;margin:0}
.call-dialog.incoming-call .call-action{position:relative;width:70px;height:70px;border:0;box-shadow:0 8px 28px #0004;transform:none}
.call-dialog.incoming-call #call-accept{background:#23ba68;color:white}
.call-dialog.incoming-call #call-decline{background:#ee4455;color:white}
.call-dialog.incoming-call #call-decline svg{transform:rotate(135deg)}
.call-dialog.incoming-call #call-accept::after,.call-dialog.incoming-call #call-decline::after{position:absolute;top:81px;left:50%;transform:translateX(-50%);font-size:13px;color:#e2eaf3;font-weight:400;white-space:nowrap}
.call-dialog.incoming-call #call-accept::after{content:"Ответить"}
.call-dialog.incoming-call #call-decline::after{content:"Отклонить"}
.call-dialog.incoming-call #call-option-status{display:none}
.call-dialog.incoming-call [hidden]{display:none!important}

.call-dialog.video-call #call-camera-preview{position:absolute;top:calc(max(18px,env(safe-area-inset-top)) + 100px);right:18px;width:clamp(92px,25vw,140px);height:clamp(130px,35vw,186px);z-index:6;border-radius:14px;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.call-dialog.video-call #call-camera-preview:active{cursor:grabbing}
.call-dialog.video-call #call-camera-preview #call-local-video{position:absolute;inset:0;box-sizing:border-box;width:100%;height:100%;pointer-events:none}
.call-dialog.video-call #call-camera-preview #call-switch-camera{position:absolute;top:auto;right:6px;bottom:6px;left:auto;z-index:7;touch-action:manipulation}

.contact-action-sheet{box-sizing:border-box;position:fixed;inset:auto 12px max(12px,env(safe-area-inset-bottom));width:calc(100% - 24px);max-width:500px;max-height:80dvh;margin:0 auto;padding:20px;border-radius:26px;background:#f7fbff;color:#15335f;overflow-y:auto}
.contact-action-sheet h2{text-align:center;font-size:20px;margin:0 0 14px}
.contact-menu-action{display:flex;width:100%;align-items:center;gap:14px;padding:16px 4px;border:0;border-bottom:1px solid #dbe9f5;background:none;color:#087df1;font-size:17px;text-align:left}
.contact-menu-action svg{width:24px;height:24px;flex:none}.contact-menu-action.danger{color:#de394b}
.contact-share-list{max-height:48dvh;overflow:auto}.contact-find-form{display:flex;gap:10px}.contact-find-form input{min-width:0;width:100%;font-size:16px;padding:12px;border-radius:14px;border:1px solid #c9dfef;background:white}.contact-find-form button{width:auto;margin:0}.contact-find-result{display:flex;flex-direction:column;gap:6px;width:100%;text-align:left;border:0;border-bottom:1px solid #dbe9f5;background:none;padding:14px 0;color:#15335f;font-size:16px}.contact-find-result small{color:#7b91a5}
.puls-dark .contact-action-sheet{background:#151515;color:#edf4ff}.puls-dark .contact-menu-action,.puls-dark .contact-find-result{border-color:#333}.puls-dark .contact-find-result{color:#edf4ff}

.shared-contact-card{display:flex;align-items:center;gap:13px;min-width:210px;max-width:100%;padding:5px 2px 8px}
.shared-contact-avatar{display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;border-radius:18px;background:#d8ecff;color:#087df1;font-size:24px;overflow:hidden}.shared-contact-avatar img{width:100%;height:100%;object-fit:cover}
.shared-contact-details{display:flex;flex-direction:column;gap:5px;min-width:0}.shared-contact-details strong{font-size:17px;overflow-wrap:anywhere;color:inherit}.shared-contact-details span{font-size:15px;color:#56799c;overflow-wrap:anywhere}.puls-dark .shared-contact-details span{color:#adc4de}

.shared-contact-card[role=button]{cursor:pointer;-webkit-tap-highlight-color:transparent}.shared-contact-card[role=button]:focus-visible{outline:2px solid #087df1;outline-offset:4px;border-radius:16px}

.group-create-dialog form{display:flex;flex-direction:column;gap:12px}.group-create-dialog h2{text-align:center}.group-create-dialog input:not([type=checkbox]),.group-create-dialog textarea{font-size:16px;width:100%;box-sizing:border-box;padding:12px;border:1px solid #d5e5f5;border-radius:15px;background:#f4f9ff;color:#15335f}.group-create-dialog .channel-avatar-preview{align-self:center}.group-member-picker{max-height:32dvh;overflow-y:auto}.group-member-option{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #d5e5f5;font-size:16px}.group-member-option span:nth-child(2){flex:1}.group-member-option input{width:22px;height:22px;accent-color:#087df1}.group-member-option[hidden]{display:none}.group-member-count{margin:0;color:#7990a7}.group-message-author{display:block;color:#087df1;font-size:13px;margin-bottom:4px;font-weight:600}.group-profile-avatar{width:82px;height:82px;margin:8px auto 16px;display:grid;place-items:center;border-radius:26px;background:#e0f0ff;color:#087df1;font-size:28px;overflow:hidden}.group-profile-avatar img{width:100%;height:100%;object-fit:cover}.group-profile-members .contact-result-avatar{width:40px;height:40px;flex:0 0 40px;border-radius:14px;overflow:hidden;display:grid;place-items:center;background:#e0f0ff}.group-profile-members img{width:100%;height:100%;object-fit:cover}.group-profile-members small{margin-left:auto;font-size:11px;color:#7990a7}
.puls-dark .group-create-dialog input:not([type=checkbox]),.puls-dark .group-create-dialog textarea{background:#202020;color:white;border-color:#333}

.group-create-step{display:flex;flex-direction:column;gap:12px}.group-create-step[hidden]{display:none!important}

.group-create-dialog.group-contacts-page{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;border:0;border-radius:0;margin:0;padding:0;overflow:hidden;background:#f4f8fd}
.group-contacts-page form{display:block;height:100%;margin:0}.group-contacts-page form>h2{position:absolute;z-index:4;top:max(12px,env(safe-area-inset-top));left:12px;right:12px;height:70px;box-sizing:border-box;margin:0;padding:22px 68px;font-size:22px;text-align:center;background:#ffffffed;border:1px solid #d7e9fa;border-radius:28px;color:#15335f}
.group-contacts-page .group-create-step:not([hidden]){position:absolute;inset:0;box-sizing:border-box;padding:calc(108px + env(safe-area-inset-top)) 30px calc(160px + env(safe-area-inset-bottom)) 20px;overflow-y:auto;display:block;-webkit-overflow-scrolling:touch}
.group-contacts-page .group-member-picker{max-height:none;overflow:visible;margin-top:16px}.group-contacts-page .group-member-count{margin-top:14px}.group-contacts-page .group-member-option{border:0;padding:10px 0}.group-contacts-page .group-member-option input{border-radius:50%;flex:none}.group-contacts-page .contact-result-avatar{width:46px;height:46px;flex:0 0 46px;border-radius:17px;overflow:hidden;display:grid;place-items:center;background:#e0f0ff;color:#087df1;font-size:24px}.group-contacts-page .contact-result-avatar img{width:100%;height:100%;object-fit:cover}
.group-contacts-page form>.primary-button{position:absolute;z-index:5;bottom:max(18px,env(safe-area-inset-bottom));left:18px;right:18px;width:calc(100% - 36px);margin:0;height:54px;border-radius:20px;background:#087df1}
.group-contacts-page form>.text-button{position:absolute;z-index:5;top:calc(max(12px,env(safe-area-inset-top)) + 12px);left:24px;width:46px;height:46px;margin:0;padding:0;background:#087df1;border-radius:50%;color:white;font-size:0}
.group-contacts-page form>.text-button::before{content:'‹';font-size:38px;line-height:1;display:block;transform:translateY(-2px)}
.group-contacts-page form>.error{position:absolute;z-index:5;bottom:calc(max(18px,env(safe-area-inset-bottom)) + 62px);left:18px;right:18px;margin:0;padding:8px;background:#fff3f3;border-radius:12px;font-size:13px}.group-contacts-page form>.error:empty{display:none}
.group-contacts-page .group-picker-alphabet{position:absolute;right:3px;top:calc(140px + env(safe-area-inset-top));bottom:100px;z-index:4;max-height:none;height:auto;transform:none}
.group-contacts-page .group-encryption-note{font-size:13px;line-height:1.45;color:#7990a7;margin-top:18px}.group-contacts-page section[hidden]{display:none}
.puls-dark .group-create-dialog.group-contacts-page{background:#000}.puls-dark .group-contacts-page form>h2{background:#151515ed;color:white;border-color:#333}

/* Participant selection follows the reference; the first step stays unchanged. */
.group-create-dialog:not(.group-contacts-page) .group-picker-logo,.group-create-dialog:not(.group-contacts-page) .group-picker-subtitle{display:none}
.group-contacts-page{background:#fff!important}.group-contacts-page .group-picker-logo{position:absolute;z-index:4;top:calc(max(14px,env(safe-area-inset-top)) + 8px);left:50%;transform:translateX(-50%);width:132px;height:42px;object-fit:contain}
.group-contacts-page form>h2{top:calc(max(14px,env(safe-area-inset-top)) + 64px);height:auto;padding:0 18px;background:none;border:0;border-radius:0;font-size:22px;line-height:1.3;color:#0b2355}
.group-contacts-page .group-picker-subtitle{position:absolute;z-index:4;top:calc(max(14px,env(safe-area-inset-top)) + 94px);left:20px;right:20px;text-align:center;margin:0;color:#8193ad;font-size:14px}
.group-contacts-page .group-create-step:not([hidden]){padding:calc(142px + env(safe-area-inset-top)) 20px calc(184px + env(safe-area-inset-bottom))}
.group-contacts-page .group-create-step>input[type=search]{height:46px;border:1px solid #e0ecf8;background:#f4f9ff;border-radius:18px;padding-left:40px;background-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23087df1" stroke-width="2"%3E%3Ccircle cx="10" cy="10" r="6"/%3E%3Cpath d="m15 15 6 6"/%3E%3C/svg%3E');background-size:20px;background-position:13px center;background-repeat:no-repeat}
.group-contacts-page .contacts-letter-heading,.group-contacts-page .group-picker-alphabet{display:none}
.group-contacts-page .group-member-option{padding:12px 0;border-bottom:1px solid #edf3f9;gap:14px}.group-contacts-page .contact-result-avatar{width:48px;height:48px;flex-basis:48px;border-radius:50%}
.group-contact-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.group-contact-copy strong{color:#0b2355;font-size:17px}.group-contact-copy small{color:#8193ad;font-size:14px}
.group-contacts-page .group-member-option input[type=checkbox]{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:25px;height:25px;border:2px solid #c5d2e2;background:#fff;border-radius:50%;padding:0;cursor:pointer}
.group-contacts-page .group-member-option input[type=checkbox]:checked{border-color:#0788fa;background-color:#0788fa;background-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="m6 12 4 4 8-8"/%3E%3C/svg%3E');background-size:21px;background-position:center;background-repeat:no-repeat}
.group-contacts-page .group-selected-contacts{position:absolute;z-index:5;bottom:calc(max(18px,env(safe-area-inset-bottom)) + 84px);left:20px;right:20px;display:flex;align-items:center;gap:16px;overflow-x:auto;overflow-y:hidden;padding:10px 4px 3px;min-height:48px;background:#ffffffed}
.group-contacts-page .group-selected-contacts[hidden]{display:none}.group-selected-contact{position:relative;flex:none}.group-selected-remove{position:absolute;top:-5px;right:-7px;display:grid;place-items:center;width:23px;height:23px;border:1px solid #e0eaf5;border-radius:50%;background:white;color:#315581;font-size:18px;padding:0;line-height:1}
.group-contacts-page .group-member-count{position:absolute;z-index:5;left:24px;right:24px;bottom:calc(max(18px,env(safe-area-inset-bottom)) + 62px);background:#ffffffed;color:#8193ad;margin:0;font-size:14px}
.group-contacts-page form>.text-button{top:calc(max(14px,env(safe-area-inset-top)) + 6px);background:#f4f9ff!important;border:1px solid #e0ecf8;color:#087df1!important}
.group-contacts-page form>.text-button::before{display:none}.group-contacts-page form>.primary-button{background:linear-gradient(120deg,#079bf7,#0782ff);height:56px;border-radius:20px;font-size:18px;font-weight:600}
.group-contacts-page form>.error{bottom:calc(max(18px,env(safe-area-inset-bottom)) + 151px)}
.puls-dark .group-contacts-page{background:#000!important}.puls-dark .group-contact-copy strong,.puls-dark .group-contacts-page form>h2{color:#edf4ff}.puls-dark .group-contacts-page .group-selected-contacts,.puls-dark .group-contacts-page .group-member-count{background:#000e}

.group-contacts-page .group-selected-contacts,.group-contacts-page .group-member-count{position:fixed}.group-contacts-page form>.text-button .puls-back-arrow{color:#087df1!important}

.secret-chat-icon{display:inline-flex;color:#087df1;flex:none}.secret-chat-icon svg{width:17px;height:17px}

/* Greeting sticker in empty conversations. */
.welcome-sticker{width:180px;height:180px;margin:0 auto 14px;flex-shrink:0;filter:drop-shadow(0 10px 18px #087df124)}.welcome-sticker img{display:block;width:100%;height:100%;object-fit:contain}.welcome:has(.welcome-sticker) p{max-width:260px;margin:8px auto 0;line-height:1.5}

/* Group profile is a separate screen, using the contact profile layout. */
.group-profile-page{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border-radius:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.group-profile-page .contact-profile-header{position:sticky;top:0;z-index:2;padding:max(10px,env(safe-area-inset-top)) 14px 10px;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.group-profile-page .contact-profile-header button svg{display:block;width:24px;height:24px;flex:none}
.group-profile-page .contact-profile-body{width:min(100%,600px);margin:auto;padding-bottom:calc(30px + env(safe-area-inset-bottom));min-width:0}
.group-profile-page .contact-profile-body>h2{max-width:100%;text-align:center;overflow-wrap:anywhere}
.group-profile-page .group-profile-description{text-align:center;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:18px}
.group-profile-section{width:100%;margin-top:26px;min-width:0}.group-profile-section h3{font-size:16px;margin:0 4px 10px}
.group-profile-page .group-profile-members{background:#fff;border:1px solid #dceaf8;border-radius:22px;padding:0 16px;overflow:hidden}
.group-profile-page .group-profile-member{display:flex;align-items:center;gap:13px;width:100%;padding:14px 0;margin:0;border:0;border-bottom:1px solid #dfebf5;background:transparent;text-align:left;color:inherit;min-width:0}
.group-profile-page .group-profile-member:last-child{border-bottom:0}.group-profile-member-info{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}.group-profile-member-info strong{font-size:17px;overflow-wrap:anywhere}.group-profile-page .group-profile-member-info small{margin:0;font-size:13px;color:#7187a2}
.group-profile-page .group-profile-members>p{padding:16px 0}.group-profile-page .contact-result-avatar{width:46px;height:46px;flex-basis:46px;border-radius:50%}
.puls-dark .group-profile-page{background:#000;color:#f3f6fc}.puls-dark .group-profile-page .contact-profile-header{background:#151515ed;border-color:#303030}.puls-dark .group-profile-page .group-profile-members{background:#111;border-color:#303030}.puls-dark .group-profile-page .group-profile-member{border-color:#303030}.puls-dark .group-profile-page .contact-profile-body>h2{color:#f3f6fc}
.group-profile-page .contact-profile-header .group-profile-edit{font-size:14px;width:48px;border-radius:16px}.group-profile-actions{width:100%;justify-content:center;margin-top:22px}.group-profile-actions button{flex:1;max-width:160px}.group-attachments-button{display:flex;align-items:center;gap:12px;width:100%;margin-top:24px;padding:17px;border:1px solid #dceaf8;border-radius:20px;background:#fff;color:inherit;text-align:left;font-size:17px}.group-attachments-button svg{width:25px;height:25px;color:#087df1}.group-attachments-button span:last-child{margin-left:auto;color:#087df1}.group-edit-form{display:grid;gap:16px}.group-edit-form label{display:grid;gap:8px}.group-edit-form input:not([type=file]),.group-edit-form textarea{box-sizing:border-box;width:100%;min-width:0;padding:12px;border:1px solid #dceaf8;border-radius:14px;font:inherit;font-size:16px;background:#f3f8ff;color:inherit}.group-edit-form textarea{min-height:95px;resize:vertical}.group-attachment-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:20px}.group-attachment-item{display:flex;flex-direction:column;gap:8px;min-width:0;overflow:hidden;padding:8px;background:#fff;border-radius:14px;color:#087df1;text-decoration:none;overflow-wrap:anywhere}.group-attachment-item img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px}.group-profile-page>.primary-button{display:block;margin:18px auto 30px}.group-profile-page>p{text-align:center;padding:16px}.puls-dark .group-attachments-button,.puls-dark .group-attachment-item{background:#111;border-color:#303030}.puls-dark .group-edit-form input:not([type=file]),.puls-dark .group-edit-form textarea{background:#202020;border-color:#333}

/* Keep the group name in the header once its large title scrolls away. */
.group-profile-page .group-profile-pinned-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:0;transition:opacity .16s ease;font-size:19px;pointer-events:none}
.group-profile-page.group-name-pinned .group-profile-pinned-name{opacity:1}
.group-profile-page .group-profile-actions{display:flex;gap:30px;justify-content:center}
.group-profile-page .group-profile-actions button,.group-profile-page .group-profile-actions button[aria-pressed=true]{flex:0 1 150px;max-width:150px;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;padding:10px 3px;color:#087df1;font-size:13px}
.group-profile-page .contact-profile-header .group-profile-edit{background:transparent!important;border:0;box-shadow:none;color:#087df1}
.group-profile-page .group-attachments-button{background:transparent!important;border:0;border-radius:0;box-shadow:none;padding:15px 4px;border-bottom:1px solid #dceaf8}
.puls-dark .group-profile-page .group-attachments-button{border-bottom-color:#303030}
@media(prefers-reduced-motion:reduce){.group-profile-page .group-profile-pinned-name{transition:none}}

/* Group navigation floats independently of the title header. */
.group-profile-detached-controls .contact-profile-header{min-height:64px;border:0;background:transparent!important;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;pointer-events:none;grid-template-columns:48px minmax(0,1fr) 48px}
.group-profile-detached-controls .group-profile-pinned-name{grid-column:2;padding:11px 12px;border-radius:18px;background:#f4f9fff2;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.group-profile-detached-controls>.group-profile-back,.group-profile-detached-controls>.group-profile-edit{position:fixed;top:max(10px,env(safe-area-inset-top));z-index:4;display:grid;place-items:center;height:44px;min-width:44px;padding:0;border:0;background:transparent;color:#087df1;box-shadow:none;font:inherit;cursor:pointer}
.group-profile-detached-controls>.group-profile-back{left:14px}.group-profile-detached-controls>.group-profile-back svg{display:block;width:24px;height:24px}.group-profile-detached-controls>.group-profile-edit{right:14px;font-size:15px;font-weight:600}
.group-profile-detached-controls>.group-profile-edit[hidden]{display:none}
.puls-dark .group-profile-detached-controls .group-profile-pinned-name{background:#151515ed;color:#f3f6fc}

.group-profile-page .group-profile-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,390px);gap:12px;margin:22px auto;justify-content:center;align-items:start}
.group-profile-page .group-profile-actions button{width:100%;max-width:none;min-height:72px;text-align:center;align-self:stretch;justify-content:flex-start;align-items:center;line-height:1.3;gap:9px}
.group-profile-page .group-profile-actions button svg{display:block;flex:0 0 26px;width:26px;height:26px;margin:0 auto}.group-profile-page .group-profile-actions button span{display:block;width:100%;text-align:center}

/* Original Puls action tiles, centered under the group title. */
.group-profile-page .group-profile-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,390px);gap:8px;margin:22px auto;align-items:stretch}
.group-profile-page .group-profile-actions button{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;max-width:none;min-height:86px;padding:14px 5px;background:#edf7ff!important;border:1px solid #d6e9fa!important;border-radius:18px;box-shadow:none!important;color:#0785ee;font-size:12px;line-height:1.3;gap:8px}
.group-profile-page .group-profile-actions button[aria-pressed=true]{background:#dceeff!important}
.puls-dark .group-profile-page .group-profile-actions button{background:#142333!important;border-color:#25405a!important;color:#54adff}
.puls-dark .group-profile-page .group-profile-actions button[aria-pressed=true]{background:#1c3550!important}

/* Restore the original attachment card in the group profile. */
.group-profile-page .group-attachments-button{background:#fff!important;border:1px solid #dceaf8;border-radius:20px;padding:17px;box-shadow:none}
.puls-dark .group-profile-page .group-attachments-button{background:#111!important;border-color:#303030}

/* The title moves with the page, shrinks, then stays on the navigation line. */
.group-profile-detached-controls .group-profile-pinned-name{padding:0;border:0;border-radius:0;background:transparent!important;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;transition:none}
.group-profile-detached-controls .contact-profile-body>h2{min-height:33px;line-height:33px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}

/* Keep a single title throughout scrolling; no handoff to a second heading. */
.group-profile-detached-controls .group-profile-pinned-name{visibility:hidden!important;opacity:0!important}
.group-profile-detached-controls .contact-profile-body>h2{position:relative;z-index:3;visibility:visible!important;font-size:27px;line-height:33px;height:33px;min-height:33px;width:calc(100% - 90px);max-width:calc(100% - 90px);margin-left:auto;margin-right:auto;transform-origin:center center;transition:none;will-change:transform}

/* Native sticky positioning clamps the title without scroll-driven translation. */
.group-profile-detached-controls .contact-profile-body>h2{position:sticky;top:var(--group-title-top,15.5px);align-self:center;flex:0 0 33px}

.group-profile-detached-controls{--group-title-top:calc(max(10px,env(safe-area-inset-top)) + 5.5px)}

/* Interactive page turn: move with the finger, then complete or return. */
@media(max-width:640px){
 .page-turn-dragging,.page-turn-settling{transform:translate3d(var(--page-turn-x,0px),0,0)!important;box-shadow:-14px 0 38px #102a4c30!important;will-change:transform;backface-visibility:hidden}
 .page-turn-dragging{transition:none!important;user-select:none;-webkit-user-select:none}
 .page-turn-settling{transition:transform .2s cubic-bezier(.22,.68,.2,1)!important;pointer-events:none}
 .page-turn-chat #app.open-chat>.chatlist{display:flex!important;position:absolute;inset:0;width:100%;height:100%;z-index:0}
 .page-turn-chat #app.open-chat>.conversation{position:relative;z-index:1}
 dialog.page-turn-dragging::backdrop,dialog.page-turn-settling::backdrop{background:rgba(16,35,60,calc(.32 * (1 - var(--page-turn-progress,0))));backdrop-filter:none;-webkit-backdrop-filter:none}
}
@media(prefers-reduced-motion:reduce){.page-turn-settling{transition:none!important}}

@media(max-width:640px){
 .page-turn-underneath{filter:blur(calc(12px * (1 - var(--page-reveal-progress,0))));opacity:calc(.72 + .28 * var(--page-reveal-progress,0));will-change:filter,opacity;pointer-events:none}
 .page-turn-underneath.page-turn-revealing{transition:filter .2s cubic-bezier(.22,.68,.2,1),opacity .2s ease}
}
@media(prefers-reduced-motion:reduce){.page-turn-underneath{filter:none;opacity:1}.page-turn-underneath.page-turn-revealing{transition:none}}

/* Swipe actions unfold from the same edge, one from behind the other. */
.chat-swipe .chat-swipe-actions{visibility:visible;transform:translateX(var(--chat-actions-offset,180px));transition:transform .2s ease;pointer-events:none}
.chat-swipe.actions-open .chat-swipe-actions{pointer-events:auto}
.chat-swipe .chat-swipe-actions button{position:relative;flex:0 0 90px;transition:transform .2s ease}
.chat-swipe .chat-mute{z-index:1}.chat-swipe .chat-remove{z-index:2;transform:translateX(calc(var(--chat-actions-offset,180px) * -.5))}
.chat-swipe.dragging .chat-swipe-actions,.chat-swipe.dragging .chat-swipe-actions button{transition:none}
@media(prefers-reduced-motion:reduce){.chat-swipe .chat-swipe-actions,.chat-swipe .chat-swipe-actions button{transition:none}}

.chat-swipe>.chat-pin{position:absolute;inset:0 auto 0 0;z-index:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:90px;padding:8px;border:0;background:#087df1;color:white;font-size:11px;transform:translateX(var(--chat-pin-offset,-90px));transition:transform .2s ease;pointer-events:none}
.chat-swipe.pin-open>.chat-pin{pointer-events:auto}.chat-swipe.dragging>.chat-pin{transition:none}.chat-pin svg{width:24px;height:24px}
@media(prefers-reduced-motion:reduce){.chat-swipe>.chat-pin{transition:none}}

.chat-pinned-marker{display:inline-flex;flex:0 0 16px;align-items:center;justify-content:center;width:16px;height:16px;margin-left:5px;color:#087df1}.chat-pinned-marker svg{display:block;width:16px;height:16px}
.chat-pin-notice{position:fixed;z-index:1000;left:50%;bottom:calc(104px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100% - 32px);padding:12px 20px;border:1px solid #d6e9fa;border-radius:18px;background:#f3f9fff2;color:#15335f;box-shadow:0 8px 28px #15335f24;font-size:15px;text-align:center;pointer-events:none;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.chat-pin-notice[hidden]{display:none}.puls-dark .chat-pin-notice{background:#182430f2;color:#f3f6fc;border-color:#30465c}

/* Compact chat deletion confirmation with the conversation avatar. */
.chat-delete-dialog{width:min(86vw,340px);padding:20px;border-radius:24px}
.chat-delete-dialog[open]{gap:12px}
.chat-delete-heading{display:flex;align-items:center;gap:12px;min-width:0}
.chat-delete-avatar{display:grid;place-items:center;width:50px;height:50px;flex:0 0 50px;border-radius:50%;overflow:hidden;background:#e0f0ff;color:#087df1;font-size:20px;font-weight:600}
.chat-delete-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.chat-delete-copy{min-width:0}.chat-delete-copy h2{font-size:19px;line-height:1.25}.chat-delete-copy strong{display:block;margin-top:4px;font-size:14px;font-weight:400;color:#7187a2;overflow-wrap:anywhere}
.chat-delete-dialog>p{font-size:13px;line-height:1.45;margin:0}.chat-delete-dialog .form-error:empty{display:none}
.chat-delete-dialog>.primary-button,.chat-delete-dialog>.text-button{min-height:42px;padding:10px 12px;font-size:14px}
.puls-dark .chat-delete-avatar{background:#19324a;color:#54adff}

.chat-delete-dialog{width:min(82vw,300px);padding:14px;border-radius:20px}.chat-delete-dialog[open]{gap:9px}.chat-delete-avatar{width:40px;height:40px;flex-basis:40px;font-size:17px}.chat-delete-copy h2{font-size:17px}.chat-delete-copy strong{font-size:13px;margin-top:2px}.chat-delete-choices{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}.chat-delete-choices>.primary-button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0;padding:8px 6px;font-size:13px;line-height:1.2;text-align:center;white-space:normal;overflow-wrap:anywhere;border-radius:13px}.chat-delete-dialog>.text-button{width:100%;min-height:34px;padding:6px;font-size:13px}

/* Small confirmation, independent of the generic dialog dimensions. */
dialog.local-dialog.chat-delete-dialog{box-sizing:border-box;width:260px;max-width:calc(100vw - 32px);min-width:0;height:auto;min-height:0;padding:12px;border-radius:18px}
dialog.local-dialog.chat-delete-dialog[open]{display:grid;gap:8px;grid-template-rows:auto auto auto;align-content:start}
.chat-delete-dialog .chat-delete-heading{gap:9px}.chat-delete-dialog .chat-delete-avatar{width:34px;height:34px;flex-basis:34px;font-size:15px}
.chat-delete-dialog .chat-delete-copy h2{font-size:16px;line-height:19px}.chat-delete-dialog .chat-delete-copy strong{font-size:12px;line-height:15px;margin-top:1px}
.chat-delete-dialog .chat-delete-choices{gap:6px}.chat-delete-dialog .chat-delete-choices>.primary-button,.chat-delete-dialog>.text-button{box-sizing:border-box;min-height:38px;height:auto;margin:0;padding:7px 5px;font-size:12px;line-height:16px;border-radius:11px}

/* A modal with all four insets must use a content height, never auto/stretch. */
dialog.local-dialog.chat-delete-dialog{position:fixed;inset:0;margin:auto;width:260px;max-width:calc(100vw - 32px);height:fit-content;min-height:0;max-height:calc(100dvh - 40px);overflow-y:auto;align-self:center;justify-self:center}
#delete-dialog{position:fixed;inset:0;margin:auto;width:260px;max-width:calc(100vw - 32px);height:fit-content;min-height:0;max-height:calc(100dvh - 40px);padding:12px;border-radius:18px;background:#f3f9ff;box-shadow:0 20px 70px #0003;overflow-y:auto}
#delete-dialog #delete-form{gap:8px}#delete-dialog #delete-title{font-size:16px;line-height:20px;padding:0;margin:0 0 4px;background:transparent;border-radius:0}#delete-dialog #delete-form .delete-actions-block{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;background:transparent;border-radius:0}#delete-dialog #delete-form .delete-actions-block .primary-button{min-height:38px;margin:0;padding:8px 5px;border:0;border-radius:11px;font-size:13px}#delete-dialog #delete-cancel{min-height:34px;margin:0;padding:6px;border-radius:11px;font-size:13px}
/* Centered identity and three equal stacked deletion actions. */
.chat-delete-dialog .chat-delete-heading{flex-direction:column;align-items:center;gap:7px;text-align:center}
.chat-delete-dialog .chat-delete-avatar{width:48px;height:48px;flex-basis:48px;font-size:19px}
.chat-delete-dialog .chat-delete-copy{width:100%;text-align:center}
.chat-delete-dialog .chat-delete-choices{display:grid;grid-auto-flow:row;grid-template-columns:minmax(0,1fr);grid-auto-columns:auto;gap:8px}
.chat-delete-dialog .chat-delete-choices>.primary-button,.chat-delete-dialog>.text-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:40px;padding:10px 8px;margin:0;border:0;border-radius:11px;font-size:13px;font-weight:600;line-height:20px;text-align:center}
.chat-delete-dialog>.text-button{background:#087df1;color:#fff}
.puls-dark .chat-delete-dialog>.text-button{background:#087df1;color:#fff}

.attachment-tabs{position:sticky;top:64px;z-index:2;display:flex;gap:5px;padding:10px 12px;background:#f4f9fff2;overflow-x:auto;scrollbar-width:none;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.attachment-tabs::-webkit-scrollbar{display:none}.attachment-tabs button{flex:1 0 auto;padding:9px 10px;border:0;border-radius:12px;background:transparent;color:#7187a2;font:600 14px Arial,sans-serif;white-space:nowrap}.attachment-tabs button.active{background:#087df1;color:#fff}.group-attachment-list.attachment-rows{grid-template-columns:minmax(0,1fr);max-width:600px;margin:auto}.attachment-rows .group-attachment-item{padding:14px;gap:10px}.group-attachment-item a{color:inherit;text-decoration:none;overflow-wrap:anywhere}.group-attachment-item a img{display:block}.group-attachment-item audio{width:100%;max-width:100%}.group-attachment-item small{color:#7187a2}.group-attachment-item .voice-message{max-width:100%}.puls-dark .attachment-tabs{background:#111e}.puls-dark .attachment-tabs button{color:#9eafc4}.puls-dark .attachment-tabs button.active{color:white}
@supports(padding-top:env(safe-area-inset-top)){.group-media-page .attachment-tabs{top:calc(64px + max(0px,env(safe-area-inset-top) - 10px))}}

.attachment-photo-viewer{position:fixed;inset:0;box-sizing:border-box;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#080e17;color:#fff;overflow:hidden}
.attachment-photo-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}.attachment-photo-viewer::backdrop{background:#080e17}
.attachment-photo-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px;padding:max(12px,env(safe-area-inset-top)) 14px 12px;text-align:center;background:#101b29}
.attachment-photo-header button,.attachment-photo-stage button{display:grid;place-items:center;border:0;background:#ffffff14;color:white;border-radius:50%;width:44px;height:44px;padding:10px}.attachment-photo-header svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.attachment-photo-header span{font-size:16px;font-weight:600}
.attachment-photo-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden;touch-action:pan-y pinch-zoom}.attachment-photo-stage>img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;user-select:none;-webkit-user-select:none}.attachment-photo-stage button{position:absolute;top:calc(50% - 22px);font-size:32px;padding:0;background:#101b2980}.attachment-photo-previous{left:10px}.attachment-photo-next{right:10px}
.attachment-photo-footer{display:grid;justify-items:center;gap:6px;padding:16px 18px max(18px,env(safe-area-inset-bottom));text-align:center;background:#101b29}.attachment-photo-footer strong{font-size:16px;overflow-wrap:anywhere}.attachment-photo-footer time{font-size:13px;color:#a7bbd0}.attachment-photo-status{font-size:13px;color:#ffb4bd}.attachment-photo-status:empty{display:none}

.attachment-photo-stage .attachment-photo-previous{left:auto;right:10px}.attachment-photo-stage .attachment-photo-next{left:10px;right:auto}
/* All five media tabs fit on a phone without clipping the last label. */
.group-media-page .attachment-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:10px 8px;overflow:visible}
.group-media-page .attachment-tabs button{min-width:0;width:100%;padding:9px 2px;font-size:clamp(10px,3.1vw,14px);letter-spacing:-.2px;text-align:center}
.group-media-page .attachment-rows .group-attachment-item{min-width:0;overflow:hidden}
@media(max-width:350px){.group-media-page .attachment-tabs{gap:2px;padding-left:5px;padding-right:5px}.group-media-page .attachment-tabs button{font-size:10px}}

/* Forward picker sheet with contact avatars and explicit send confirmation. */
#forward-dialog{position:fixed;inset:auto 0 0;width:min(100%,480px);height:min(82dvh,720px);max-height:calc(100dvh - 24px);margin:0 auto;padding:18px 16px max(16px,env(safe-area-inset-bottom));border:1px solid #dceaf8;border-bottom:0;border-radius:28px 28px 0 0;background:#f5faff;color:#15335f;overflow:hidden;box-shadow:0 -12px 50px #15335f24}
#forward-form{display:flex;flex-direction:column;height:100%;gap:12px;min-height:0}.forward-sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}.forward-sheet-header h2{font-size:21px}.forward-sheet-header button{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:#e4f1ff;color:#087df1;padding:8px}.forward-sheet-header svg{width:18px;height:18px}
#forward-dialog #forward-preview{flex:0 0 auto;max-height:105px;overflow:auto;margin:0;padding:7px;border-radius:14px}#forward-dialog #forward-preview .bubble{padding:7px 9px;border-radius:11px}#forward-dialog #forward-preview .bubble p{font-size:14px;line-height:1.35}#forward-dialog #forward-preview img{max-height:75px}#forward-search{flex:none;width:100%;min-width:0;padding:12px 14px;border:1px solid #d6e9fa;border-radius:16px;background:white;color:inherit;font-size:16px}
.forward-contacts{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.forward-contact{display:flex;align-items:center;gap:12px;width:100%;padding:11px 5px;border:0;border-bottom:1px solid #dceaf8;background:transparent;color:inherit;text-align:left}.forward-contact-avatar{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:50%;overflow:hidden;background:#e0f0ff;color:#087df1;font-size:18px;font-weight:600}.forward-contact-avatar img{width:100%;height:100%;object-fit:cover}.forward-contact-copy{display:grid;gap:4px;flex:1;min-width:0}.forward-contact-copy strong{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.forward-contact-copy small{font-size:12px;color:#7187a2}.forward-contact-check{display:grid;place-items:center;width:24px;height:24px;border:1.5px solid #b9d5ed;border-radius:50%;flex:none;color:transparent}.forward-contact-check svg{width:17px;height:17px}.forward-contact.selected .forward-contact-check{background:#087df1;border-color:#087df1;color:white}.forward-sheet-footer{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:none}.forward-sheet-footer button{min-height:44px;border-radius:15px}.forward-sheet-footer .primary-button{background:#087df1}.forward-sheet-footer .text-button{background:#e4f1ff;color:#087df1}.forward-no-contacts{padding:22px;text-align:center}#forward-error:empty{display:none}
.puls-dark #forward-dialog{background:#111;color:#f3f6fc;border-color:#303030}.puls-dark #forward-search{background:#202020;border-color:#333}.puls-dark .forward-contact{border-color:#303030}.puls-dark .forward-contact-avatar{background:#19324a}.puls-dark .forward-sheet-footer .text-button,.puls-dark .forward-sheet-header button{background:#19324a;color:#54adff}

#new-form>h2:focus{outline:none}

/* Preserve the dialog's opening geometry when the keyboard changes viewport height. */
#dialog.new-chat-steady{box-sizing:border-box;position:fixed;inset:auto;top:var(--new-chat-top);left:50%;transform:translateX(-50%);margin:0;width:var(--new-chat-width);max-width:none;height:var(--new-chat-height);min-height:0;max-height:none;overflow:hidden}
#dialog.new-chat-steady #new-form{display:flex;flex-direction:column;height:100%;min-height:0;gap:16px;margin:0}
#dialog.new-chat-steady #new-form>*{flex-shrink:0}#dialog.new-chat-steady #contact-results{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain}
#dialog.new-chat-steady #contact{font-size:16px}

.puls-contacts-page .contacts-page-list.is-empty{padding-right:0}
.puls-contacts-page .contacts-empty-note{width:100%;box-sizing:border-box;padding:0 20px;text-align:center}
.puls-contacts-page .contacts-page-status{text-align:center}

.new-conversation .chat-list-welcome-sticker{display:block;width:160px;height:160px;object-fit:contain;margin:0 auto 12px;filter:drop-shadow(0 8px 16px #087df124)}

#mobile-edit-status:empty{display:none}#mobile-edit-status.profile-save-success{display:block;padding:12px 16px;margin:12px 0;border-radius:16px;background:#e4f2ff;color:#087df1;text-align:center;font-weight:600}.puls-dark #mobile-edit-status.profile-save-success{background:#102b42;color:#75beff}

dialog.saved-chat-delete{position:fixed!important;inset:0!important;margin:auto!important;height:fit-content!important;max-height:calc(100dvh - 40px);text-align:center}#delete-dialog.saved-chat-delete #delete-form .delete-actions-block{grid-template-columns:minmax(0,1fr)}#delete-dialog.saved-chat-delete #delete-title{text-align:center}#delete-dialog.saved-chat-delete #delete-both[hidden]{display:none!important}

dialog.saved-chat-delete{box-sizing:border-box;width:290px!important;max-width:calc(100vw - 32px);padding:16px!important}#delete-dialog.saved-chat-delete #delete-title{font-size:18px;line-height:24px}#delete-dialog.saved-chat-delete #delete-form .delete-actions-block .primary-button,#delete-dialog.saved-chat-delete #delete-cancel{min-height:44px;font-size:15px}.chat-delete-dialog.saved-chat-delete .chat-delete-copy h2{font-size:18px;line-height:24px}.chat-delete-dialog.saved-chat-delete .chat-delete-choices>.primary-button,.chat-delete-dialog.saved-chat-delete>.text-button{min-height:44px;font-size:15px}

#delete-dialog.saved-chat-delete #delete-confirm,.chat-delete-dialog.saved-chat-delete .chat-confirm-delete:not([hidden]){display:flex!important;align-items:center;justify-content:center;width:100%;box-sizing:border-box;background:#fff!important;color:#d52e48!important;border:1.5px solid #e2576c!important;border-radius:12px!important;font-weight:650;opacity:1}#delete-dialog.saved-chat-delete #delete-confirm:disabled,.chat-delete-dialog.saved-chat-delete .chat-confirm-delete:disabled{opacity:.6}

.channel-recommendations{padding:18px 0 24px}.channel-recommendations[hidden]{display:none}.channel-recommendations h3{margin:0 20px 12px;font-size:17px;color:#087df1}.channel-recommendations .recommended-channel{width:100%;text-align:left}.recommended-channel .chat-text{min-width:0}.recommended-channel .chat-text p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.recommended-channel small,.recommendations-status{color:#7c8fa6;font-size:13px}.recommendations-status{margin:12px 20px;text-align:center}

.recommended-channel-row{display:flex;align-items:center;gap:8px;padding-right:16px}.recommended-channel-row .recommended-channel{flex:1;min-width:0}.recommendation-subscribe{flex:none;padding:9px 12px;border:0;border-radius:14px;background:#087df1;color:#fff;font-size:13px;font-weight:600;min-height:38px}.recommendation-subscribe:disabled{opacity:.6}
