:root{--rose:#a7254f;--rose-dark:#791d3b;--rose-soft:#f8e9ef;--ink:#462d37;--muted:#806a74;--line:#eedfe5;--green:var(--rose);color:var(--ink);background:#fff;color-scheme:light}
.auth-scroll{min-height:0}.auth-header{flex-shrink:0}
@media(max-width:720px){.field-focused #login-dialog #account-form label{margin-top:8px}.field-focused #login-dialog #account-form input{padding-top:9px;padding-bottom:9px}.field-focused #login-dialog #account-form label small{display:none}.field-focused #login-dialog #auth-submit{margin-top:8px;min-height:44px}.field-focused #login-dialog .forgot-link{margin-top:0;padding:4px 0}.field-focused #login-dialog .auth-scroll{padding-bottom:12px}}
.account-dialog [hidden]{display:none!important}.forgot-link{display:block;margin:4px 0 0 auto;padding:8px 0;background:transparent;color:var(--rose);font-size:13px}#forgot-form>h2{font-size:20px;margin:20px 0 12px}#forgot-form>p{font-size:14px}#forgot-submit{width:100%;margin-top:18px;min-height:46px}.email-verification{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.email-verification>small{font-size:12px}.email-verification>button{padding:8px;font-size:12px;color:var(--rose);background:#fff}#forgot-status:empty{display:none}
@media(max-width:720px){html body #login-dialog[open]{display:flex;flex-direction:column;position:fixed;top:var(--visible-top,0px);bottom:auto;left:0;right:auto;margin:0;width:100%;max-width:none;height:var(--visible-height,100dvh);max-height:var(--visible-height,100dvh);min-height:0;border:0;border-radius:0;padding:16px 20px max(16px,env(safe-area-inset-bottom));overflow:hidden;box-shadow:none}.account-dialog .auth-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 0 16px;border-bottom:1px solid var(--line)}html body #login-dialog .auth-header .dialog-brand{width:120px;height:40px;aspect-ratio:auto;margin:0;object-fit:contain}.auth-header .auth-tabs{flex:1;max-width:210px;margin:0;padding:3px;gap:2px}.auth-header .auth-tabs button{font-size:13px;padding:10px 8px}.account-dialog .auth-scroll{flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding:16px;padding:0 2px 24px}.account-dialog .auth-scroll>h2{font-size:20px;margin:20px 0 16px}.account-dialog .auth-scroll>#auth-hint{display:none}.account-dialog #auth-submit{margin-top:18px;min-height:46px}.account-dialog label{margin-top:12px}.account-dialog input{margin-top:6px;padding:11px 12px}.account-dialog .auth-scroll>form~.small{margin:14px 0 0}.field-focused #login-dialog .auth-scroll>h2,.field-focused #login-dialog .auth-scroll>form~.small{display:none}.field-focused #login-dialog .auth-scroll{padding-top:4px}.field-focused #login-dialog .auth-header{padding-bottom:10px}}
@media(max-width:720px){html.keyboard-open dialog[open]{top:calc(var(--visible-top,0px) + 8px);bottom:auto;margin:0 auto;max-height:calc(var(--visible-height,100dvh) - 16px);scroll-padding:20px}html.keyboard-open .app{height:var(--visible-height,100dvh)}html.keyboard-open .account-dialog .dialog-brand{width:128px;margin-bottom:12px}html.keyboard-open .account-dialog .auth-tabs{margin-bottom:12px}html.keyboard-open .account-dialog h2{font-size:19px;margin-top:12px}html.keyboard-open .account-dialog #auth-hint{display:none}}
html{height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{height:100%;overflow:hidden;overscroll-behavior:none}.app{height:100dvh;max-width:none}button,input,textarea,select{touch-action:manipulation}input,textarea,select,dialog input,.search input,.composer textarea{font-size:16px;line-height:1.5}button{font-size:14px}.sidebar{border-color:var(--line)}.sidebar-head{gap:12px;padding:22px 24px 18px}.sidebar-head>div{flex:1;min-width:0}.brand-wordmark{width:176px;height:auto;aspect-ratio:3;object-fit:contain}.sidebar-head .icon-button{width:40px;height:40px;border-radius:12px;background:var(--rose-soft);color:var(--rose)}.sidebar-head .icon-button.dark{background:var(--rose);color:#fff}.search{margin:0 20px;padding:12px 14px;min-height:48px;border:1px solid transparent;background:#fbf5f7;color:var(--muted);border-radius:14px}.search:focus-within{border-color:#d49aad}.search input{color:var(--ink)}.search input::placeholder{color:var(--muted);font-size:14px}.filters{padding:18px 20px 14px;gap:8px}.filters button{font-size:13px;padding:9px 13px;color:var(--muted);border-radius:20px}.filters button.selected{background:var(--rose-soft);color:var(--rose)}.filters span{font-size:11px;color:inherit;background:#efdae3}.filters span:empty{display:none}.list-heading,.demo-note,.sidebar-footer,.composer-hint{display:none}.contacts{display:flex;flex-direction:column;min-height:0}.contacts>.empty-list{margin:auto 0;padding:32px 24px 80px;font-size:14px;line-height:1.6;color:var(--muted)}.empty-list p{margin:14px 0 20px}.empty-symbol{display:inline-grid;place-items:center;background:var(--rose-soft);color:var(--rose);width:60px;height:60px;border-radius:20px}.empty-symbol svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.text-button,.older{background:var(--rose-soft);color:var(--rose);font-size:14px;padding:12px 18px;border-radius:12px}.contact{margin:2px 10px;width:calc(100% - 20px);padding:16px 12px}.contact.active{background:var(--rose-soft)}.contact-top strong{font-size:14px;color:var(--ink)}.contact-preview{font-size:13px;color:var(--muted)}.contact time,.msg-time{color:var(--muted)}.avatar{background:#f2dbe5;color:var(--rose-dark)}.avatar:after{background:#bd9fac}.avatar.online:after{background:var(--rose)}.chat-name h2{font-size:16px;color:var(--ink)}.chat-name>span{color:var(--muted);font-size:12px}.chat-name>span:before{display:none}.ticks{color:var(--rose)}.conversation{background:#fcf7f9}.messages{background-image:none}.bubble{font-size:15px;line-height:1.6;color:var(--ink);border-color:var(--line);box-shadow:none}.mine .bubble{background:var(--rose);border-color:var(--rose);color:#fff}.msg-time{font-size:10px}.demo-banner{font-size:12px;color:var(--rose-dark);background:var(--rose-soft);border-color:var(--line)}.demo-banner[hidden]{display:none!important}.composer-wrap{padding:14px 24px max(14px,env(safe-area-inset-bottom))}.composer{box-shadow:none;border-color:var(--line)}.composer textarea{color:var(--ink)}.composer textarea::placeholder{color:var(--muted)}.send{background:var(--rose)}.welcome .eyebrow{display:none}.empty-welcome h3{font-size:24px;color:var(--ink)}.welcome p{font-size:14px;color:var(--muted)}.welcome button{padding:13px 18px;border-radius:12px}.icon-button{color:var(--rose)}.media-dialog{background:#fff}.message-media img{background:#f8edf2}.message-media video{background:#462d37}.attachment-info span,.attachment-info small,.media-meta{color:var(--muted)}
dialog{position:fixed;inset:0;margin:auto;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:22px;background:#fff;color:var(--ink);box-shadow:0 20px 80px #471d3526;padding:28px;scrollbar-width:thin}dialog::backdrop{background:#462d3766;backdrop-filter:blur(3px)}dialog h2,.account-dialog h2{font-size:22px;margin:20px 0 8px;color:var(--ink)}dialog p{color:var(--muted);font-size:14px;line-height:1.5}dialog label{font-size:14px;color:var(--ink);margin-top:16px}.account-dialog label{margin-top:14px}.account-dialog label small{font-size:12px;color:var(--muted)}dialog input{padding:12px;border-radius:12px;border-color:var(--line);margin-top:7px;margin-bottom:0;color:var(--ink);background:#fff}dialog input:focus{border-color:var(--rose);box-shadow:0 0 0 3px #a7254f0d}dialog button{font-size:14px;border-radius:12px}.dialog-brand{width:190px;height:auto;aspect-ratio:3;margin-bottom:22px}.auth-tabs{background:#fbf4f7;padding:4px;border-radius:14px;margin-bottom:22px;gap:4px}.auth-tabs button{background:transparent;color:var(--muted);padding:11px 12px}.auth-tabs .selected{background:var(--rose);color:#fff}.account-dialog #auth-submit{margin-top:22px;min-height:46px;background:var(--rose);color:#fff}.account-dialog #auth-hint:empty{display:none}.account-dialog #auth-error:empty{display:none}.account-dialog .small{font-size:12px!important;line-height:1.5}.account-dialog #account-form~.small{color:var(--muted);margin:14px 0 0}.settings-dialog{max-height:calc(100dvh - 32px)}.settings-dialog select{font-size:16px}.settings-dialog summary{font-size:14px}.account-summary span,.settings-dialog a{color:var(--rose)}.account-summary small{color:var(--muted)}
@media(max-width:720px){.sidebar-head{padding:18px 20px 16px;gap:10px}.sidebar-head .brand-wordmark{width:176px;height:auto}.sidebar-head .account-settings-mobile{display:grid}.search{margin:0 18px}.filters{padding:16px 18px 10px}.sidebar{padding-top:env(safe-area-inset-top)}.chat-head{height:72px;padding:0 12px}.composer-wrap{padding:10px 10px max(10px,env(safe-area-inset-bottom))}.composer{gap:7px}.composer .icon-button{width:34px;min-width:34px}.composer textarea{font-size:16px}.messages{padding:20px 14px}.bubble{font-size:15px}.message-content{max-width:86%}dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:24px;border-radius:20px}.settings-dialog{padding:24px}.dialog-brand{width:180px;height:auto}.account-dialog h2{font-size:22px}.empty-welcome h3{font-size:22px}.contacts>.empty-list{padding-bottom:90px}}
@media(max-width:360px){.sidebar-head{padding-left:16px;padding-right:16px;gap:8px}.sidebar-head .brand-wordmark{width:150px}.sidebar-head .icon-button{width:38px;height:38px}}
.settings-dialog{padding:0;max-width:500px}.settings-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;padding:18px 22px;border-bottom:1px solid var(--line)}.settings-header h2{font-size:20px;margin:0}.settings-header .settings-close{float:none;display:grid;place-items:center;width:40px;height:40px;padding:0;flex-shrink:0;background:var(--rose-soft);color:var(--rose);border:0;border-radius:12px}.settings-close svg{width:20px;height:20px;stroke-width:1.8}.settings-content{padding:20px 22px 22px}.settings-content .account-summary{position:relative;gap:5px;padding:16px;margin:0 0 8px;border:0;border-radius:14px}.account-summary strong{font-size:17px}.account-summary span{font-size:14px}.account-summary small{font-size:13px;overflow-wrap:anywhere}.account-summary #edit-profile{margin-top:8px;align-self:flex-start;padding:8px 0;background:transparent;font-size:13px;font-weight:600;color:var(--rose)}.settings-dialog details.settings-section{margin:0;padding:0;border-top:0;border-bottom:1px solid var(--line)}.settings-section>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;list-style:none;padding:18px 0;font-size:15px;font-weight:600;color:var(--ink);cursor:pointer}.settings-section>summary::-webkit-details-marker{display:none}.settings-section>summary::after{content:'';width:7px;height:7px;border-bottom:1.7px solid var(--muted);border-right:1.7px solid var(--muted);transform:rotate(45deg);margin-right:4px;flex-shrink:0}.settings-section[open]>summary::after{transform:rotate(225deg)}.settings-section>form,.settings-section>.backup-settings,.settings-help[open]{padding-bottom:18px}.settings-section .backup-settings{border:0;margin:0;padding-top:0}.settings-section .backup-settings>p:first-child{margin:0 0 16px}.settings-dialog .backup-settings p{line-height:1.5}.settings-dialog .small{font-size:12px!important}.settings-dialog .backup-settings .backup-status{padding:10px;background:#fbf5f7;border:0}.settings-dialog .backup-last-line{color:var(--muted)}.settings-dialog .settings-actions{display:grid;grid-template-columns:1fr;gap:8px}.settings-dialog .settings-actions button{width:100%;min-height:44px}.settings-dialog #password-form>button[type=submit]{width:100%;margin-top:16px;min-height:44px}.settings-dialog .restore-section{margin:16px 0 0;padding:16px 0 0}.settings-dialog .restore-section summary{font-size:14px}.settings-dialog .settings-help a{font-size:13px}.settings-dialog #logout{background:transparent;color:var(--rose);border:1px solid #e5c5d1;border-radius:12px;width:100%;min-height:44px;margin-top:20px;font-size:14px;font-weight:600}.settings-dialog [hidden]{display:none!important}@media(max-width:720px){.settings-dialog{padding:0;max-height:calc(100dvh - 24px)}.settings-header{padding:14px 18px}.settings-content{padding:18px}.settings-header h2{font-size:20px}}

.avatar img,.my-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.avatar{overflow:hidden}.profile-photo-controls{display:flex;align-items:center;gap:14px;margin-bottom:16px}.profile-photo-controls .profile-photo{width:64px;height:64px;flex-shrink:0}.profile-photo-controls>div{display:flex;flex-wrap:wrap;gap:8px}.profile-photo-controls small{flex-basis:100%;font-size:12px}.profile-photo-controls button{padding:5px 0}.privacy-controls{padding-bottom:18px}.privacy-controls input{display:block;width:100%;box-sizing:border-box;margin:6px 0 12px;padding:10px;border:1px solid var(--line);border-radius:10px}.privacy-controls button{min-height:42px;margin:8px 8px 0 0}.privacy-controls [hidden]{display:none!important}.pin-dialog{text-align:center;width:340px;max-width:calc(100% - 32px);box-sizing:border-box;padding:28px}.pin-dialog h2{margin:12px 0 6px;font-size:22px}.pin-dialog p{font-size:14px;color:var(--muted)}.pin-dialog input{width:100%;box-sizing:border-box;text-align:center;letter-spacing:8px;font-size:22px;min-height:52px;border:1px solid var(--line);border-radius:12px}.pin-dialog .primary{width:100%;min-height:46px}.pin-dialog #pin-error{color:var(--rose);letter-spacing:0}.pin-dialog .text-button{margin-top:12px}.pin-dialog::backdrop{background:#f8e9ef;opacity:1}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

.photo-privacy{margin-bottom:16px}.photo-privacy label{font-size:13px;margin:0 0 6px;display:block}.photo-privacy select{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:#fff;font-size:16px}.photo-privacy small{display:block;margin-top:6px;line-height:1.5}.photo-privacy p{font-size:12px;margin:6px 0 0;color:var(--rose)}.photo-privacy p:empty{display:none}#friend-toggle{display:block;width:100%;min-height:44px;margin-top:16px}

.friends-toolbar{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;color:var(--ink);font-size:14px}.friends-toolbar strong span{color:var(--muted);font-weight:400;margin-left:5px}.friends-toolbar button{font-size:12px}.friend-row{display:flex;align-items:center;padding:8px 16px;gap:6px}.friend-person{display:flex;align-items:center;text-align:left;gap:12px;flex:1;min-width:0;background:transparent;padding:8px 0;color:var(--ink)}.friend-person>span:last-child{display:flex;flex-direction:column;gap:6px;min-width:0}.friend-person strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.friend-person small{font-size:12px;color:var(--muted)}.friend-menu{font-size:24px;color:var(--rose);flex-shrink:0}.friend-dialog{max-width:380px}.friend-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px}.friend-dialog h2{font-size:20px;margin:0;overflow-wrap:anywhere}.friend-dialog header button{width:40px;height:40px;background:var(--rose-soft);color:var(--rose);font-size:24px}.friend-dialog>p{color:var(--muted);font-size:14px}.friend-actions{display:grid;gap:10px;margin-top:20px}.friend-actions button{width:100%;min-height:44px}.danger-button{border:1px solid #d9a6b7;background:#fff4f7;color:var(--rose);border-radius:12px}.friend-dialog [hidden]{display:none!important}

.emoji-picker{width:340px;max-width:calc(100vw - 24px);max-height:min(420px,55dvh);overflow-y:auto;overscroll-behavior:contain;bottom:84px;left:12px;box-sizing:border-box;border-color:var(--line);padding:12px}.emoji-picker[hidden]{display:none}.emoji-standard{display:flex;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:8px}.emote-title{font-size:13px;font-weight:600;color:var(--ink);padding:12px 4px 8px}.balelol-emote-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.balelol-emote-grid button{padding:4px;display:grid;place-items:center;min-height:44px}.balelol-emote-grid img{display:block;width:38px;height:38px}.bubble.has-emote{background:transparent!important;border:0!important;padding:4px!important;box-shadow:none!important}.balelol-emote{width:112px;height:112px;display:block}.emoji-picker button:hover{background:var(--rose-soft)}

dialog.profile-settings[open]{display:flex;flex-direction:column;width:min(480px,calc(100vw - 24px));height:min(720px,calc(var(--visible-height,100dvh) - 24px));max-height:calc(var(--visible-height,100dvh) - 24px);padding:0;overflow:hidden;background:#fbf7f9}.profile-settings .settings-header{position:relative;flex-shrink:0;background:#fbf7f9;border-bottom:0;padding:16px 20px}.profile-settings .settings-header h2{font-size:20px}.profile-settings .settings-header .settings-close{background:#fff;color:var(--rose);border:1px solid var(--line)}.profile-settings .settings-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 18px 24px;scroll-padding:20px}.profile-settings .account-summary.profile-hero{background:transparent;display:flex;flex-direction:column;align-items:center;text-align:center;border:0;border-radius:0;padding:16px 0 32px;margin:0;gap:6px}.profile-settings .profile-photo-controls{position:relative;display:block;width:120px;height:120px;margin:0 0 14px}.profile-settings .profile-photo-controls .profile-photo{width:120px;height:120px;border-radius:50%;display:grid;place-items:center;background:var(--rose-soft);overflow:hidden}.profile-settings .profile-photo-add{position:absolute;right:-2px;bottom:0;display:grid;place-items:center;width:38px;height:38px;border:4px solid #fbf7f9;border-radius:50%;padding:5px;background:var(--rose);color:#fff;box-shadow:none}.profile-photo-add svg{width:20px;height:20px}.profile-settings .profile-photo-add:disabled{opacity:.5}.profile-settings .account-summary #edit-profile.profile-name-button{display:flex;align-items:center;justify-content:center;gap:8px;margin:0;padding:0;background:transparent;align-self:center;color:var(--ink);max-width:100%}.profile-name-button #settings-name{font-size:25px;font-weight:750;letter-spacing:-.7px;overflow-wrap:anywhere;line-height:1.3}.profile-name-button svg{width:16px;height:16px;color:var(--rose);flex-shrink:0}.profile-settings #settings-username{font-size:15px;color:var(--muted);line-height:1.5}.profile-menu{overflow:hidden;border-radius:18px;border:1px solid var(--line);background:#fff}.settings-category{margin:0;border-bottom:1px solid var(--line)}.settings-category:last-child{border-bottom:0}.settings-category>summary{display:flex;align-items:center;gap:14px;list-style:none;padding:20px;min-height:64px;font-size:16px;font-weight:600;cursor:pointer;color:var(--ink)}.settings-category>summary::-webkit-details-marker{display:none}.settings-category>summary>svg{width:22px;height:22px;color:var(--rose);flex-shrink:0}.settings-category>summary>span{flex:1}.settings-category>summary::after{content:'';width:7px;height:7px;border-top:1.7px solid var(--muted);border-right:1.7px solid var(--muted);transform:rotate(45deg);margin:0 4px}.settings-category[open]>summary::after{transform:rotate(135deg)}.settings-category[open]>summary{background:#fff9fb}.category-body{padding:4px 20px 20px;text-align:left}.account-email{display:flex;flex-direction:column;gap:6px;padding:10px 0 16px}.account-email>span{font-size:12px;color:var(--muted)}.account-email>strong{font-size:15px;font-weight:500;overflow-wrap:anywhere}.profile-settings .email-verification{margin:2px 0 0}.profile-settings .category-body .settings-section>summary{font-size:14px;padding:16px 0}.profile-settings #photo-remove{font-size:13px;padding:10px 0;margin-top:10px;background:transparent;color:var(--rose)}.profile-settings .photo-privacy{padding-top:8px;margin:0 0 12px}.profile-settings .privacy-controls>p:first-child{margin-top:0}.profile-settings #logout{margin-top:16px}.profile-settings .settings-help p{margin-top:0}@media(max-width:720px){dialog.profile-settings[open]{height:calc(var(--visible-height,100dvh) - 24px);border-radius:22px}.profile-settings .settings-header{padding:14px 18px}.profile-settings .account-summary.profile-hero{padding-top:16px;padding-bottom:30px}}

.profile-settings details.settings-category{margin:0;padding:0;border-top:0;border-bottom:1px solid var(--line)}.profile-settings details.settings-category:last-child{border-bottom:0}

.profile-settings .category-body{display:flex;flex-direction:column;gap:12px;padding:12px 14px 16px;background:#fbf7f9}.category-body>[hidden]{display:none!important}.profile-settings .account-email{padding:14px;background:#fff;border:1px solid var(--line);border-radius:13px;gap:7px}.profile-settings .account-email>span{font-size:11px;letter-spacing:.4px}.profile-settings .account-email>strong{font-size:14px;color:var(--ink)}.profile-settings .email-verification>small{font-size:10px;padding:5px 8px;background:var(--rose-soft);border-radius:7px;color:var(--rose)}.profile-settings .email-verification>button{font-size:11px;border-radius:7px;border:1px solid var(--line);padding:7px}.profile-settings .category-body>details.settings-section{margin:0;padding:0;border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden}.profile-settings .category-body>.settings-section>summary{min-height:52px;padding:14px;font-size:14px}.profile-settings .category-body .settings-section>form{padding:0 14px 14px}.profile-settings .category-body .settings-section>form label{font-size:12px;margin-top:12px;color:var(--muted)}.profile-settings input:not([type=checkbox]):not([type=file]){border:1px solid var(--line);background:#fcf9fa;border-radius:10px;padding:10px 12px;min-height:44px;font-size:16px}.profile-settings .category-body button.primary{border-radius:10px;min-height:44px}.profile-settings #photo-remove{width:100%;margin:0;padding:13px 14px;min-height:44px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:13px}.profile-settings #logout{margin:0;background:#fff0f5;border:1px solid #eccbd7;min-height:46px}.profile-settings .photo-privacy{padding:14px;margin:0;background:#fff;border:1px solid var(--line);border-radius:13px}.settings-card-title{font-size:14px;font-weight:650;letter-spacing:0;margin:0 0 12px}.profile-settings .photo-privacy label{font-size:12px;color:var(--muted);line-height:1.5;margin-bottom:7px}.profile-settings .photo-privacy select{min-height:44px;border-color:var(--line);background:#fcf9fa}.profile-settings .photo-privacy small{font-size:11px;color:var(--muted);margin-top:8px}.settings-link-row{display:flex;align-items:center;gap:11px;width:100%;padding:14px;text-align:left;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink);min-height:66px}.settings-link-row>svg{width:20px;height:20px;color:var(--rose);flex-shrink:0}.settings-link-row>span:nth-child(2){flex:1;min-width:0}.settings-link-row strong{display:block;font-size:14px;font-weight:600}.settings-link-row small{display:block;font-size:11px;color:var(--muted);margin-top:5px;line-height:1.4}.settings-count{display:grid;place-items:center;min-width:24px;height:24px;background:var(--rose-soft);color:var(--rose);font-size:12px;border-radius:7px}.row-chevron{width:6px;height:6px;flex-shrink:0;border-top:1.5px solid var(--muted);border-right:1.5px solid var(--muted);transform:rotate(45deg);margin-left:2px}.profile-settings .privacy-controls{padding:0 14px 14px}.profile-settings #pin-config{display:grid;grid-template-columns:1fr 1fr;gap:10px}.profile-settings #pin-config>label{font-size:12px;min-width:0;margin:8px 0 0;color:var(--muted)}.profile-settings #pin-config>button{grid-column:1/-1;margin:0}.profile-settings .privacy-controls input{margin-bottom:0;min-width:0}.profile-settings .privacy-controls>button{margin:8px 6px 0 0;font-size:12px}.profile-settings .settings-help p,.profile-settings .settings-help>a{margin-left:14px;margin-right:14px}.profile-settings .category-body .backup-settings{padding:0 14px 14px;border:0;margin:0}.profile-settings .backup-settings>p:first-child{font-size:12px;color:var(--muted);margin:0 0 12px}.profile-settings .backup-settings label{font-size:12px;margin-top:14px;color:var(--ink)}.profile-settings .backup-settings p{font-size:11px!important}.profile-settings #drive-guide{padding:8px 10px;background:#faf5f7;border-radius:8px;color:var(--muted);margin:0 0 10px}.profile-settings .settings-actions{gap:8px}.profile-settings .settings-actions>button{border-radius:10px;font-size:13px}.profile-settings .backup-last-line{margin:14px 0 8px}.profile-settings .restore-section{padding:12px;margin:14px 0 0;border:1px solid var(--line);border-radius:10px;background:#fcf9fa}.profile-settings .restore-section>summary{font-size:13px;color:var(--rose)}.profile-settings input[type=file]{width:100%;font-size:12px;line-height:1.6}.profile-settings input[type=file]::file-selector-button{border:0;border-radius:8px;background:var(--rose-soft);color:var(--rose);padding:9px;margin:6px 8px 6px 0}.blocked-dialog{max-width:440px;padding:22px}.blocked-intro{font-size:12px!important;line-height:1.6}.blocked-person{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.blocked-person:last-child{border-bottom:0}.blocked-person>.avatar{width:40px;height:40px;flex-shrink:0}.blocked-person>span:nth-child(2){flex:1;min-width:0}.blocked-person strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.blocked-person small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.blocked-person button{min-height:38px;font-size:11px;padding:8px 10px;border:1px solid var(--line);background:#fff;border-radius:9px;color:var(--rose)}.blocked-empty{text-align:center;padding:24px 8px 14px}.blocked-empty>span{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--rose-soft);color:var(--rose);font-size:24px;margin:0 auto 14px}.blocked-empty strong{font-size:14px}.blocked-empty p{font-size:12px;color:var(--muted);line-height:1.6}

.composer .chat-editor{flex:1;min-width:0;min-height:40px;max-height:140px;box-sizing:border-box;overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:0;outline:0;background:transparent;padding:8px 0;color:var(--ink);font-family:inherit;font-size:16px;line-height:24px;text-align:left}.chat-editor:empty::before{content:attr(data-placeholder);color:#aa8b98;pointer-events:none}.chat-editor[aria-disabled=true]{opacity:.6}.inline-balelol-emote{display:inline-block;width:1em;height:1em;vertical-align:-.12em;margin:0 1px;object-fit:contain}.chat-editor .inline-balelol-emote{width:1em;height:1em;vertical-align:-.12em;user-select:all}.message-text>.inline-balelol-emote{width:1em;height:1em}.composer .chat-editor:focus{outline:none}

/* Compact picker; large faces only for messages containing no text. */
.balelol-emote-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:2px}.balelol-emote-grid button{min-height:36px;padding:6px;min-width:0}.balelol-emote-grid img{width:22px;height:22px}.emote-only{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.emote-only .balelol-emote{width:96px;height:96px;max-width:100%}

/* Message metadata inside the bubble. */
.bubble .msg-time{justify-content:flex-end;margin:3px 0 -3px;gap:4px;font-size:10px;line-height:14px;color:#8e7b84;white-space:nowrap}.mine .bubble .msg-time{color:#f4dce5}.bubble .ticks{font-size:12px;letter-spacing:-2px;line-height:14px;margin-right:2px}.bubble .ticks.sent{color:#fff}.bubble .ticks.delivered{color:#b8b3b6}.bubble .ticks.read{color:#ffb0d1}.has-emote .msg-time{color:#8e7b84}.has-emote .ticks.sent{color:#fff;filter:drop-shadow(0 0 1px #71505e)}.read-receipt-card{padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff}.receipt-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:16px;margin:0!important}.receipt-toggle span{display:grid;gap:5px}.receipt-toggle small{font-size:12px;font-weight:400;color:var(--muted)}.receipt-toggle input{width:38px!important;height:22px!important;margin:0!important;accent-color:var(--rose);flex:none}.read-receipt-card p{margin:10px 0 0}.read-receipt-card [role=status]:empty{display:none}

/* Consistent PIN actions and settings focus states. */
.profile-settings .privacy-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:0 14px 14px;box-sizing:border-box}.profile-settings .privacy-controls>p{margin:0;line-height:1.6}.profile-settings #pin-config{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:4px 0 0}.profile-settings #pin-config label{margin:0;min-width:0;font-size:12px}.profile-settings #pin-config input{width:100%;margin:7px 0 0;min-height:46px}.profile-settings #pin-config button{grid-column:1/-1}.profile-settings .privacy-controls button{display:flex;align-items:center;justify-content:center;width:100%;box-sizing:border-box;min-height:44px;margin:0;padding:11px 14px;border-radius:12px;font-size:13px;line-height:20px;font-weight:600}.profile-settings #pin-lock{background:#fff;border:1px solid #e7cad6;color:var(--rose)}.profile-settings #pin-disable{background:#faedf2;border:1px solid transparent;color:var(--rose)}.profile-settings #pin-status{justify-self:start;padding:4px 9px;background:#faedf2;border-radius:7px;color:var(--rose);font-size:11px!important}.profile-settings summary:focus{outline:none}.profile-settings summary:focus-visible{outline:2px solid #d99ab2;outline-offset:-3px;border-radius:12px}.profile-settings .settings-help{overflow:hidden}.profile-settings .privacy-controls button:focus-visible{outline:2px solid #d99ab2;outline-offset:2px}

/* Compact profile hierarchy and shared, centered close icons. */
.profile-settings .settings-header{padding:14px 18px;min-height:64px;box-sizing:border-box;align-items:center}.profile-settings .settings-header h2{font-size:19px;line-height:24px;margin:0}.profile-settings .settings-content{padding:0 16px 20px;scrollbar-gutter:stable}.profile-settings .account-summary.profile-hero{padding:20px 16px 22px;margin:0 0 16px;border:1px solid var(--line);border-radius:18px;background:#fff;gap:4px}.profile-settings .profile-photo-controls{width:96px;height:96px;margin:0 0 10px}.profile-settings .profile-photo-controls .profile-photo{width:96px;height:96px}.profile-settings .profile-photo-add{width:32px;height:32px;right:-1px;bottom:0;padding:5px;border:3px solid #fff;box-sizing:border-box}.profile-settings .profile-photo-add svg{display:block;width:16px;height:16px}.profile-settings .account-summary #edit-profile.profile-name-button{min-height:30px;padding:0;gap:7px;line-height:1.3}.profile-name-button #settings-name{font-size:21px;line-height:28px;letter-spacing:-.4px}.profile-name-button svg{width:14px;height:14px}.profile-settings #settings-username{font-size:14px;line-height:22px;margin:0}.profile-settings .settings-category>summary{min-height:58px;box-sizing:border-box;padding:16px 18px;font-size:15px}.profile-settings .settings-header .settings-close,.friend-dialog header button{display:grid;place-items:center;align-self:center;flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;margin:0;padding:0;border:1px solid #efdce4;border-radius:11px;background:#fff7fa;color:var(--rose);line-height:1;box-sizing:border-box;float:none}.profile-settings .settings-close svg,.friend-dialog header button svg{display:block;width:18px;height:18px;margin:0;flex:none}.friend-dialog header{min-height:36px;align-items:center;gap:16px;margin:0 0 12px}.friend-dialog header h2{font-size:18px;line-height:24px;margin:0}.friend-dialog{box-sizing:border-box;padding:20px;width:min(400px,calc(100vw - 32px));border-radius:20px}.blocked-dialog .blocked-intro{margin:0;font-size:12px;line-height:1.6}.blocked-dialog .blocked-empty{padding:24px 8px 12px}.profile-settings .settings-close:focus-visible,.friend-dialog header button:focus-visible{outline:2px solid #d99ab2;outline-offset:2px}

/* Approved combination: compact identity and descriptive menu, separate pages. */
dialog.profile-pages[open]{background:#fbf7f3}.profile-pages .settings-header{background:#fff;min-height:66px;padding:10px 16px;justify-content:flex-start;gap:10px;border-bottom:1px solid #f0e7eb}.profile-pages .settings-header h2{order:2;flex:1;font-size:17px;font-weight:600}.profile-pages .settings-header .settings-close{order:1;width:40px;height:40px;flex-basis:40px;min-width:40px;min-height:40px;border:0;background:transparent;border-radius:12px;color:var(--ink)}.profile-pages .settings-close svg{width:20px;height:20px}.profile-pages .settings-content{padding:0;scrollbar-gutter:auto;background:#fbf7f3}.profile-pages .account-summary.profile-hero{display:flex;flex-direction:row;align-items:center;gap:14px;text-align:left;padding:24px 20px;margin:0;border:0;border-bottom:10px solid #fbf7f3;border-radius:0;background:#fff}.profile-pages .profile-photo-controls{width:60px;height:60px;margin:0;flex:0 0 60px}.profile-pages .profile-photo-controls .profile-photo{width:60px;height:60px}.profile-pages .profile-photo-add{width:26px;height:26px;border:3px solid #fff;right:-2px;bottom:-2px;padding:0}.profile-pages .profile-photo-add svg{width:14px;height:14px}.profile-pages .profile-identity{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.profile-pages #settings-name{font-size:20px;font-weight:650;line-height:1.3;letter-spacing:-.4px;overflow-wrap:anywhere}.profile-pages #settings-username{font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere}.profile-pages .account-summary #edit-profile.profile-edit-icon{align-self:center;display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;margin:0;padding:0;background:transparent;color:var(--ink);border:0;border-radius:12px}.profile-pages .profile-edit-icon svg{width:19px;height:19px}.profile-pages .profile-menu{margin:0;padding:0 20px;border:0;border-radius:0;background:#fff;overflow:visible}.profile-pages details.settings-category{border:0;border-bottom:1px solid var(--line);margin:0;padding:0}.profile-pages details.settings-category:last-child{border-bottom:0}.profile-pages .settings-category>summary{padding:16px 2px;min-height:76px;gap:14px;background:#fff}.profile-pages .settings-category>summary>svg{width:21px;height:21px}.profile-pages .settings-category>summary>span{display:flex;flex-direction:column;gap:4px}.profile-pages .settings-category>summary strong{font-size:15px;font-weight:550;line-height:1.4}.profile-pages .settings-category>summary small{font-size:11px;font-weight:400;color:var(--muted);line-height:1.5}.profile-pages .settings-category>summary::after{margin-right:4px}.profile-pages[data-screen=home] .category-body{display:none}.profile-pages:not([data-screen=home]) .profile-hero{display:none}.profile-pages:not([data-screen=home]) .profile-menu{padding:0;background:#fbf7f3}.profile-pages:not([data-screen=home]) .settings-category:not([open]){display:none}.profile-pages:not([data-screen=home]) .settings-category[open]>summary{display:none}.profile-pages:not([data-screen=home]) .category-body{padding:20px 18px;gap:14px;background:#fbf7f3}.profile-pages:not([data-screen=home]) details.settings-category{border:0}.profile-pages .settings-header button:focus-visible,.profile-pages .profile-edit-icon:focus-visible{outline:2px solid #d99ab2;outline-offset:0}@media(max-width:720px){dialog.profile-pages[open]{position:fixed;inset:var(--visible-top,0px) 0 auto 0;margin:0;width:100%;max-width:100%;height:var(--visible-height,100dvh);max-height:var(--visible-height,100dvh);border:0;border-radius:0;box-shadow:none}.profile-pages .settings-header{padding-top:max(10px,env(safe-area-inset-top));min-height:66px}.profile-pages .settings-content{padding-bottom:env(safe-area-inset-bottom)}}

.filters span[hidden]{display:none!important}.friend-requests{padding:14px 16px 4px}.friend-requests h3{font-size:13px;font-weight:600;color:var(--ink);margin:0 0 10px}.friend-requests h3 span{font-size:11px;color:var(--muted);margin-left:5px}.request-card{padding:10px 12px;margin-bottom:10px;background:#fff;border:1px solid var(--line);border-radius:14px}.request-card .friend-person{width:100%;padding:2px 0 10px}.request-card .avatar{width:40px;height:40px;flex:none}.request-card .friend-person strong{font-size:13px}.request-card .friend-person small{font-size:11px;margin-top:4px}.request-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.request-actions button{min-height:40px;border:0;border-radius:10px;font-size:12px;font-weight:600;padding:8px;background:var(--rose-soft);color:var(--rose)}.request-actions button.request-accept{background:var(--rose);color:#fff}.request-status{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--muted)}.request-status small{font-size:11px}.request-status button{font-size:11px;color:var(--rose);background:transparent;padding:7px 0}.request-actions button:disabled{opacity:.5}

.pending-status{font-size:10px;color:inherit;opacity:.85}.pending-status.failed{color:#ffcfde;opacity:1}.local-attachment{font-size:12px;padding:6px 0;overflow-wrap:anywhere}.bubble.has-emote .pending-status{color:#875c6e}.message-row:has(.pending-status){opacity:.8}

/* Compact text bubbles; keep metadata on the same line when space permits. */
.message-row{margin-bottom:10px}.bubble{padding:8px 12px;line-height:1.45}.bubble:not(.has-media):not(.has-emote){display:flex;flex-wrap:wrap;align-items:flex-end;column-gap:8px;row-gap:0}.bubble:not(.has-media):not(.has-emote) .message-text{flex:0 1 auto;min-width:0;max-width:100%;line-height:1.45}.bubble:not(.has-media):not(.has-emote) .msg-time{flex:0 0 auto;margin:0 0 0 auto;padding:0;align-self:flex-end;line-height:14px}.bubble .ticks{font-size:11px;line-height:14px}.bubble.has-media{padding:7px 9px}.mine .bubble.has-emote .msg-time{color:#8e7b84}.bubble.has-emote .msg-time{margin:3px 0 0}

/* Incoming text shares compact last-line metadata, including multi-line text. */
.message-row:not(.mine) .bubble:not(.has-media):not(.has-emote){display:flow-root;padding:7px 11px;line-height:1.4}.message-row:not(.mine) .bubble:not(.has-media):not(.has-emote) .message-text{display:inline;white-space:pre-wrap;line-height:1.4}.message-row:not(.mine) .bubble:not(.has-media):not(.has-emote) .msg-time{float:right;display:inline-flex;margin:5px 0 -2px 8px;line-height:12px;clear:none}.attachment-menu{position:absolute;z-index:4;bottom:80px;left:48px;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;width:250px;max-width:calc(100vw - 32px);padding:12px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 28px #6e233b18}.attachment-menu[hidden]{display:none}.attachment-menu button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:72px;padding:8px 4px;background:transparent;color:var(--ink);font-size:12px;border:0;border-radius:12px}.attachment-menu button>span{display:grid;place-items:center;width:38px;height:38px;background:var(--rose-soft);color:var(--rose);border-radius:12px}.attachment-menu svg{width:22px;height:22px}.attachment-menu button:hover{background:#fcf5f8}.attachment-menu button:focus-visible{outline:2px solid #d99ab2;outline-offset:-2px}.chat-location-link{color:inherit;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.message-row:not(.mine) .chat-location-link{color:var(--rose)}

.bubble .ticks{display:inline-grid;place-items:center;width:14px;height:18px;letter-spacing:0;margin:0;line-height:1;flex:none}.bubble .ticks .receipt-icon{display:block;width:14px;height:18px}.bubble .msg-time{align-items:center}.message-row:not(.mine) .bubble:not(.has-media):not(.has-emote) .msg-time{align-items:center}

.message-row:not(.mine){gap:8px}.message-row:not(.mine)>.message-avatar{width:26px;height:26px;flex:0 0 26px}.message-row:not(.mine) .message-content{max-width:calc(100% - 34px)}.message-row:not(.mine) .bubble:not(.has-media):not(.has-emote){position:relative;display:block}.message-row:not(.mine) .bubble:not(.has-media):not(.has-emote) .message-text::after{content:'';display:inline-block;width:40px;height:0}.message-row:not(.mine) .bubble:not(.has-media):not(.has-emote) .msg-time{position:absolute;right:10px;bottom:6px;float:none;margin:0;line-height:12px}

/* Small overlapping double checks aligned with the message timestamp. */
.bubble .ticks{width:18px;height:14px;line-height:14px;vertical-align:middle;letter-spacing:0}.bubble .ticks .receipt-icon{width:18px;height:14px}.bubble .msg-time{gap:3px;align-items:center}
/* Voice and video calls. */
.chat-call-actions{display:flex;align-items:center;gap:2px;flex-shrink:0;padding:2px 4px;border:1px solid #eddae2;border-radius:22px;background:#fff9fc}.chat-call-actions .icon-button{width:36px;height:36px;border:0;background:transparent;color:#9e234c}.chat-call-actions svg{width:21px;height:21px}.chat-head .chat-name{min-width:0;flex:1}.chat-head .chat-name h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-head #details{flex-shrink:0;width:30px}.call-dialog{padding:0;border:1px solid #eedce3;border-radius:26px;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;background:#fff9fc;color:#412735;box-shadow:0 24px 80px #300d2540}.call-dialog::backdrop{background:#27121d99;backdrop-filter:blur(5px)}.call-stage{position:relative;min-height:340px;display:grid;place-items:center;overflow:hidden;background:#f8edf2}.call-person{position:relative;text-align:center;padding:40px 20px;z-index:1}.call-person img{width:104px;height:104px;border-radius:50%;object-fit:cover}.call-person h2{font-size:23px;margin:20px 0 8px}.call-person p{font-size:14px;margin:0;color:#866573}.call-remote{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.call-local{position:absolute;right:14px;top:14px;width:92px;height:125px;border-radius:14px;object-fit:cover;background:#ecd7e0;transform:scaleX(-1);z-index:2}.call-dialog[data-video=false] .call-local,.call-dialog[data-video=false] .call-remote{visibility:hidden}.call-dialog[data-video=true][data-connected=true] .call-stage{height:min(580px,65dvh)}.call-dialog[data-video=true][data-connected=true] .call-person{position:absolute;bottom:0;background:linear-gradient(transparent,#0009);width:100%;padding:30px 10px 16px;color:white}.call-dialog[data-video=true][data-connected=true] .call-person img{display:none}.call-dialog[data-video=true][data-connected=true] .call-person h2{margin:0 0 6px;font-size:17px}.call-dialog[data-video=true][data-connected=true] .call-person p{color:white}.call-controls{display:flex;align-items:center;justify-content:center;gap:14px;padding:22px 16px}.call-controls button{height:52px;min-width:52px;display:grid;place-items:center;border:0;border-radius:50%;background:#f2dfe8;color:#8b2446;font:600 14px inherit;cursor:pointer}.call-controls button svg{width:23px;height:23px}.call-controls .call-accept,.call-controls .call-reject,.call-controls .call-close{border-radius:18px;padding:0 24px}.call-controls .call-accept{background:#a7254f;color:white}.call-controls .call-reject{background:#f6e2e9;color:#a7254f}.call-controls .call-end{background:#a7254f;color:white;transform:rotate(135deg)}.call-controls [aria-pressed=true]{background:#791d3b;color:#fff}.call-controls button:disabled{opacity:.5}.call-dialog [hidden]{display:none!important}.call-play{display:block;margin:12px auto;border:0;border-radius:12px;background:#a7254f;color:#fff;padding:12px 18px}@media(max-width:600px){.chat-head{gap:7px!important}.chat-call-actions .icon-button{width:32px;height:34px}.chat-call-actions{padding:1px 3px}.chat-head #details{width:26px}.call-stage{min-height:300px}}
.chat-info-dialog{padding:22px!important;width:min(390px,calc(100vw - 32px))!important;box-sizing:border-box;border:0;border-radius:24px;max-height:calc(100dvh - 32px);overflow:auto;background:#fff}.chat-info-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.chat-info-header h2{margin:0!important;font-size:20px!important}.chat-info-header #close-info{width:36px;height:36px;min-height:36px;padding:9px;border:0;border-radius:12px;background:#f8e9ef;color:#a7254f;margin:0;display:grid;place-items:center}.chat-info-header svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.chat-info-person{display:flex;align-items:center;gap:14px;margin:0 0 22px}.chat-info-person img{width:56px;height:56px;border-radius:50%;object-fit:cover}.chat-info-person strong{display:block;font-size:17px}.chat-info-person span{display:block;font-size:13px;color:#8a707c;margin-top:5px}#info-contact-actions #friend-toggle{width:100%;margin:0 0 14px!important;padding:14px 16px;min-height:48px;border:1px solid #efdee6;border-radius:14px;background:#fff9fc;text-align:left;color:#8e2446;font-size:14px;font-weight:600}.chat-security{border:1px solid #efdee6;border-radius:14px;overflow:hidden}.chat-security summary{display:flex;align-items:center;gap:12px;cursor:pointer;padding:14px 16px;list-style:none}.chat-security summary::-webkit-details-marker{display:none}.chat-security summary>svg{width:20px;height:20px;fill:none;stroke:#a7254f;stroke-width:1.7}.chat-security summary strong{font-size:14px;font-weight:600;display:block}.chat-security summary small{display:block;font-size:12px;color:#8a707c;margin-top:4px}.security-chevron{margin-left:auto;color:#9a7484}.chat-security[open] .security-chevron{transform:rotate(180deg)}.chat-security-body{padding:0 16px 16px;border-top:1px solid #f3e8ed}.chat-security-body p{font-size:13px;line-height:1.6;margin:14px 0}.chat-security-body .security-code{display:block;white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.9;padding:12px;border-radius:12px;margin:12px 0}.chat-security-body .checkbox-label{font-size:13px;align-items:center;display:flex;gap:9px;margin:14px 0}.chat-security-body .checkbox-label input{width:17px;height:17px;flex-shrink:0;margin:0;accent-color:#a7254f}.chat-security-body #verify-keys{width:100%;min-height:42px;border-radius:12px;padding:10px}.chat-security-body .security-note{font-size:11px;color:#8a707c;margin:12px 0 0}.call-controls button{font-family:inherit;font-weight:600;font-size:14px}
.peer-profile-trigger{display:flex;align-items:center;gap:11px;min-width:0;flex:1;text-align:left;cursor:pointer;border:0;background:transparent!important;border-radius:12px;padding:3px 0;color:inherit;font-family:inherit}.peer-profile-trigger:disabled{cursor:default}.peer-profile-trigger:focus-visible{outline:2px solid #a7254f;outline-offset:4px}.peer-profile-trigger #active-avatar{display:flex;flex-shrink:0}.peer-profile-trigger .chat-name{display:flex;flex-direction:column;min-width:0;gap:3px}.peer-profile-trigger #active-name{font-family:inherit;font-size:16px;font-weight:650;line-height:1.3;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#462d37}.peer-profile-trigger #active-status{font-size:11px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#8a707c}.peer-profile-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 20px}.peer-profile-actions button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;min-height:70px;padding:12px 4px;border:1px solid #eedde5;border-radius:15px;background:#fff9fc;color:#a7254f;font:500 12px inherit;cursor:pointer}.peer-profile-actions button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.peer-profile-actions button:disabled{opacity:.45;cursor:default}.peer-profile-actions button:focus-visible{outline:2px solid #a7254f;outline-offset:2px}@media(max-width:600px){.peer-profile-trigger{gap:8px}.peer-profile-trigger #active-name{font-size:15px}.peer-profile-trigger .avatar{width:36px;height:36px}.peer-profile-trigger #active-status{font-size:10px}}.peer-profile-actions button{font-family:inherit;font-size:12px;font-weight:600}
/* Compact friend actions and intentional confirmation. */
#friend-dialog .friend-identity{min-width:0;flex:1}#friend-dialog header{align-items:flex-start;margin-bottom:20px}#friend-dialog .friend-identity h2{font-size:19px;line-height:1.35;margin:2px 0 5px;font-weight:650;color:#462d37}#friend-dialog #friend-username{font-size:12px;line-height:1.5;color:#8a707c;margin:0;overflow-wrap:anywhere}#friend-dialog .friend-actions{margin:0;gap:10px}#friend-dialog .friend-actions button{font-family:inherit;font-size:14px;font-weight:600;min-height:46px;border-radius:13px;padding:12px 16px;margin:0}#friend-dialog #friend-help{font-size:12px;line-height:1.5;text-align:center;margin:15px 0 0;color:#8a707c}#friend-dialog #friend-edit{background:#f8e9ef;color:#982249;border:1px solid transparent}#friend-dialog #friend-block{border:1px solid #e4b7c8;background:#fff;color:#a7254f}.friend-confirm-dialog{box-sizing:border-box;border:1px solid #efdee6;border-radius:24px;padding:26px 24px 22px;width:min(350px,calc(100vw - 40px));max-height:calc(100dvh - 40px);overflow:auto;text-align:center;background:#fff;color:#462d37;box-shadow:0 24px 70px #3f152c26}.friend-confirm-dialog::backdrop{background:#32142355;backdrop-filter:blur(4px)}.friend-confirm-symbol{display:grid;place-items:center;width:50px;height:50px;border-radius:17px;background:#f8e9ef;color:#a7254f;margin:0 auto 16px}.friend-confirm-symbol svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.friend-confirm-dialog h2{font-size:20px;line-height:1.3;margin:0 0 10px;font-weight:650}.friend-confirm-dialog p{font-size:13px;line-height:1.65;color:#8a707c;margin:0;overflow-wrap:anywhere}.friend-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px}.friend-confirm-actions button{min-height:44px;border-radius:13px;border:1px solid #efdee6;background:#fff9fc;color:#982249;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}.friend-confirm-actions #friend-confirm-yes{background:#a7254f;color:#fff;border-color:#a7254f}.friend-confirm-actions button:focus-visible{outline:2px solid #d79ab1;outline-offset:3px}
.peer-call-help{font-size:12px;line-height:1.5;color:#8a707c;text-align:center;margin:-8px 0 18px}.chat-privacy{margin-top:14px}.chat-privacy .small{font-size:12px;color:#8a707c;line-height:1.5;margin:12px 0 0}.chat-call-actions button:disabled{opacity:.4;cursor:default}
/* Shared location: map above, title and timestamp on one footer row. */
.message-row .bubble.has-location{display:grid!important;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:0;padding:0!important;width:206px;max-width:100%;overflow:hidden;border-radius:12px;border:1px solid #eedce4;background:#fff;color:#462d37;box-sizing:border-box}.message-row.mine .bubble.has-location{background:#791d3b;color:#fff;border-color:#791d3b}.bubble.has-location .location-map{position:relative;grid-column:1/-1;height:200px;overflow:hidden;background:#f9eaf0}.bubble.has-location .location-map iframe{position:absolute;inset:0;display:block;width:100%;height:200px;border:0;pointer-events:none}.bubble.has-location .location-map-open{position:absolute;inset:0;z-index:2;display:block;border-radius:11px 11px 0 0}.bubble.has-location .location-map-open:focus-visible{outline:3px solid #a7254f;outline-offset:-4px}.bubble.has-location .location-map.map-pending{height:150px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:radial-gradient(ellipse at center,#fff7fa,#f1d2df)}.location-pin{display:grid;place-items:center;width:58px;height:58px;border-radius:20px;background:#791d3b;color:#f4abc6;box-shadow:0 8px 20px #791d3b20}.location-pin svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8}.location-map-hint{font-size:12px;color:#8f3656}.bubble.has-location .location-name{grid-column:1;min-width:0;padding:7px 0 7px 9px;font-size:12px;font-weight:600;line-height:18px;color:inherit;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-row .bubble.has-location .msg-time{position:static!important;grid-column:2;align-self:center;float:none!important;margin:0!important;padding:0 8px 0 0!important;display:inline-flex;gap:3px;line-height:14px;color:#8a707c}.message-row.mine .bubble.has-location .msg-time{color:#ead1dc}.bubble.has-location .location-name:focus-visible{outline:2px solid #e7a0bd;outline-offset:-3px}
.contact-row{position:relative}.contact-row>.contact{width:100%;padding-right:42px}.contact-menu{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:30px;height:38px;border:0;border-radius:10px;background:transparent;color:#a7254f;font-size:23px;line-height:1;cursor:pointer}.contact-menu:hover{background:#f8e9ef}.archive-folder{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;margin:4px 0 8px;padding:10px 15px;border:0;border-radius:12px;background:#fbf0f5;color:#982249;font-family:inherit;font-size:13px;font-weight:600;text-align:left;cursor:pointer}.archive-folder span{font-size:11px}.chat-head .chat-options{flex:0 0 32px;width:32px;height:36px;margin-left:3px}.chat-options svg{width:21px;height:21px;fill:currentColor;stroke:currentColor}.chat-actions-dialog{box-sizing:border-box;width:min(350px,calc(100vw - 32px));padding:20px;border:1px solid #efdee6;border-radius:22px;background:#fff;color:#462d37;max-height:calc(var(--visible-height,100dvh) - 32px);overflow:auto;box-shadow:0 22px 70px #32142326}.chat-actions-dialog::backdrop{background:#32142355;backdrop-filter:blur(4px)}.chat-actions-dialog header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px}.chat-actions-dialog h2{font-size:18px;line-height:1.4;margin:0;overflow-wrap:anywhere}.chat-actions-dialog .chat-dialog-close{display:grid;place-items:center;width:36px;height:36px;min-width:36px;padding:8px;border:0;border-radius:11px;background:#fbf0f5;color:#a7254f}.chat-dialog-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.chat-action-list{display:grid;gap:8px}.chat-action-list button{border:0;border-radius:12px;padding:14px;text-align:left;background:#fbf6f9;color:#462d37;font-family:inherit;font-size:14px;min-height:46px;cursor:pointer}.chat-action-list button.chat-danger{color:#a7254f;background:#fcf0f4}.chat-clear-confirm p{font-size:13px;line-height:1.7;color:#8a707c;margin:0}.chat-clear-confirm strong{color:#684b59;font-weight:600}.chat-confirm-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.chat-confirm-buttons button{min-height:44px;border:0;border-radius:12px;font-family:inherit;font-size:14px;font-weight:600;background:#faeaf0;color:#982249;cursor:pointer}.chat-confirm-buttons [data-confirm]{background:#a7254f;color:#fff}

.message-actions-dialog textarea{display:block;box-sizing:border-box;width:100%;resize:vertical;min-height:100px;max-height:35dvh;margin-top:8px;padding:12px;border:1px solid #e9d7e0;border-radius:12px;background:#fffbfd;color:#462d37;font-family:inherit;font-size:16px;line-height:1.5}.message-actions-dialog label{font-size:13px;color:#8a707c}.message-action-error,.message-delete-note{font-size:13px;line-height:1.6;color:#8a707c}.message-action-error:empty{display:none}.message-actions-dialog [data-save]{background:#a7254f;color:white}.message-deleted{font-style:italic;opacity:.75}.message-edited{font-size:9px;opacity:.8}.bubble{ -webkit-touch-callout:none }.bubble:focus-visible{outline:2px solid #d79ab1;outline-offset:3px}

.contact-row{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;border-radius:12px}.contact-row>.contact{min-width:0;width:100%;box-sizing:border-box;padding-right:8px}.contact-row>.contact-menu{position:static;transform:none;justify-self:center;margin-right:4px;width:30px;height:38px}.contact-row:has(.contact.active){background:#f8e9ef}.contact-row>.contact.active{background:transparent}.contact-row .contact-body{min-width:0}.contact-row .contact-top time{flex-shrink:0}
.contact-row{margin:4px 10px}.contact-row>.contact{margin:0!important}.contact-row>.contact-menu{margin:0 4px 0 0}

/* Keep Safari's layout viewport from scrolling the chat away from the keyboard. */
@media(max-width:720px){html.viewport-managed,html.viewport-managed body{height:100%;overflow:hidden}html.viewport-managed body{position:fixed;inset:0;width:100%}html.viewport-managed .app,html.viewport-managed.keyboard-open .app{position:fixed;left:0;right:0;top:var(--visible-top,0px);height:var(--visible-height,100dvh);min-height:0;margin:0;width:100%;overflow:hidden}html.viewport-managed .conversation{min-height:0;overflow:hidden}.composer [contenteditable=true]{font-size:16px;line-height:1.5;min-width:0}.keyboard-open .composer-wrap{padding-bottom:8px}.keyboard-open .chat-head{flex-shrink:0}.keyboard-open .messages{min-height:0;overscroll-behavior:contain}}

.android-notify{display:flex;align-items:center;gap:12px;margin:0 18px 14px;padding:12px;border:1px solid #eedfe5;background:#fff9fb;border-radius:12px;font-size:12px;color:#806a74}.android-notify[hidden]{display:none}.android-notify>span{flex:1}.android-notify button{font-size:12px;font-weight:600;padding:9px 11px;border-radius:9px;background:#f8e9ef;color:#a7254f}

.auth-progress{box-sizing:border-box;width:190px;max-width:calc(100% - 48px);border:1px solid #f0dfe6;border-radius:20px;padding:28px 22px;color:#533b45;background:#fff;box-shadow:0 16px 60px #4f20352b;text-align:center}
.auth-progress::backdrop{background:#49313e55}
.auth-progress p{margin:14px 0 0;font:600 15px/1.5 system-ui}
.auth-spinner{display:block;margin:auto;width:30px;height:30px;border:3px solid #f5e4ec;border-top-color:#a7254f;border-radius:50%;animation:auth-spin .8s linear infinite}
@keyframes auth-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.auth-spinner{animation-duration:1.8s}}
.bubble{touch-action:manipulation}
.reply-composer{display:flex;align-items:center;gap:10px;padding:9px 12px;margin:0 0 7px;border-left:3px solid #a7254f;border-radius:9px;background:#f7eaf0;font-size:12px;color:#755563}
.reply-composer[hidden]{display:none}.reply-composer>div{flex:1;min-width:0}.reply-composer strong,.reply-composer span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.reply-composer strong{font-size:12px;color:#a7254f;margin-bottom:3px}.reply-composer button{flex-shrink:0;width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:#a7254f;font-size:22px;line-height:1}
.message-reply{border-left:3px solid currentColor;border-radius:6px;padding:6px 9px;margin-bottom:6px;background:#a7254f0c;font-size:12px;line-height:1.4;max-width:100%;text-align:left;overflow:hidden}
.message-reply strong,.message-reply span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-reply strong{font-size:11px;margin-bottom:2px}.message-row.mine .message-reply{background:#ffffff20}
.bubble .ticks.sent,.bubble .ticks.delivered{color:#f3dce6}
.bubble .ticks.read{color:#73e5ff}
.bubble .ticks.read .receipt-icon{stroke-width:2.1}

/* Call history shares the compact conversation list. */
.filters{gap:3px;padding-inline:12px}.filters button{white-space:nowrap;padding-inline:9px;font-size:12px}
.call-history{padding:4px 12px 20px}.call-history-day{font-size:12px;font-weight:600;color:#927b85;margin:16px 8px 6px}.call-history-row{display:flex;align-items:center;gap:6px;border-bottom:1px solid #f4e9ee;padding:5px 0}.call-history-open{display:flex;align-items:center;gap:12px;flex:1;min-width:0;border:0;background:none;text-align:left;padding:10px 6px;color:inherit;border-radius:14px}.call-history-open:hover{background:#fcf4f8}.call-history-body{display:grid;gap:4px;min-width:0;flex:1}.call-history-body strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.call-history-detail{display:flex;align-items:center;gap:5px;font-size:12px;color:#89747e}.call-history-detail svg{width:14px;height:14px;flex-shrink:0;color:#a7254f}.call-history-detail.missed,.call-history-detail.missed svg{color:#c63550}.call-history-body time{font-size:11px;color:#a18b95}.call-history-again{border:1px solid #efd8e2;background:#fff8fb;color:#aa2450;border-radius:13px;width:38px;height:38px;display:grid;place-items:center;flex-shrink:0}.call-history-again svg{width:21px;height:21px}.call-history-again:disabled{opacity:.35}.call-history-more{display:block;margin:16px auto}.call-history-error{padding:12px;font-size:12px;color:#a7254f}

.profile-photo-viewer{width:min(88vw,520px);padding:36px 12px 12px;border:0;border-radius:20px;background:#fff;box-shadow:0 12px 60px #30202f40}.profile-photo-viewer::backdrop{background:#30202fb0;backdrop-filter:blur(4px)}.profile-photo-viewer>img{display:block;width:100%;max-height:75dvh;object-fit:contain;border-radius:12px}.profile-photo-viewer>button{position:absolute;right:10px;top:6px;border:0;background:transparent;color:#a7254f;font-size:28px;cursor:pointer}.avatar img,.my-avatar img,#info-avatar{cursor:zoom-in}

.profile-photo-viewer.is-basic{width:min(82vw,440px,72dvh);background:transparent;box-shadow:none;padding:36px 0 0;overflow:visible}.profile-photo-viewer.is-basic>img{border-radius:50%;aspect-ratio:1;max-height:none;background:transparent}.profile-photo-viewer.is-basic>button{top:0;right:0;width:32px;height:32px;border-radius:50%;background:#fff;font-size:24px;padding:0;line-height:1;display:grid;place-items:center}

/* Native/web parity follow-ups: independent request buttons and compact search actions. */
.request-actions>button{display:block!important;width:100%;min-width:0}.request-actions .request-accept{background:#a7254f;color:#fff}
#new-dialog{position:fixed;padding-top:32px}#new-dialog #cancel{position:absolute;right:16px;top:16px;width:36px;height:36px;display:grid;place-items:center;padding:0;font-size:24px;line-height:1;border-radius:12px;color:#a7254f;background:#faeaf1}#new-dialog h2{padding-right:26px}
.user-result-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:#fcf3f8;margin-bottom:10px}.user-result-row>.user-result{background:transparent;min-width:0;flex:1;padding:0;display:flex;align-items:center;gap:12px;text-align:left}.user-result-row .user-text{min-width:0}.user-result-row strong,.user-result-row small{overflow:hidden;text-overflow:ellipsis}.user-add{flex:none;max-width:126px;padding:10px 12px;min-height:40px;font-size:12px;line-height:1.35;background:#a7254f;color:white;border:0;border-radius:12px}.user-add:disabled{background:#f2dfe8;color:#92717f;cursor:default}
.call-history-toolbar{display:flex;justify-content:space-between;align-items:center;padding:12px 16px 4px;font-size:14px}.call-history-toolbar button{font-size:12px;color:#a7254f;background:transparent;padding:10px}.call-history-menu{width:30px;min-width:30px;align-self:center;padding:8px 0;color:#a7254f;background:transparent;font-size:22px}.call-history-confirm{max-width:380px;width:calc(100% - 32px)}.call-history-confirm h2{margin-top:0}.call-history-confirm .confirm-actions{display:flex;gap:10px;margin-top:22px}.call-history-confirm .confirm-actions button{flex:1;padding:12px;background:#faeaf1;color:#a7254f}.call-history-confirm .confirm-actions .confirm-delete{background:#a7254f;color:white}
