: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}
@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{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}}
