.general-avatar svg,.chat-header .avatar svg{width:26px;height:26px;display:block}.throw-picker svg{width:24px;height:24px}.throw-picker{padding:10px;min-width:44px!important;min-height:44px}.invite-plus{width:40px;height:40px;min-height:40px;align-self:flex-start;margin-top:20px;position:sticky;bottom:0;background:#e7ebf1;color:#66778e;font-size:25px;border-radius:13px;display:grid;place-items:center;padding:0;flex-shrink:0;box-shadow:0 0 0 8px #f6f7f8}.theme-choice{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#edf0f4;border-radius:14px;padding:4px;margin:18px 0}.theme-choice button{padding:10px 12px;background:none;color:#8490a2;border-radius:11px;font-size:14px}.theme-choice button[aria-pressed=true]{background:#fff;color:#344966;box-shadow:0 2px 7px #1320350b}.delete-account{display:block;color:#ba6464!important;margin:0 auto}.registration-avatar{width:74px;height:74px;background:#e9eef5;color:#7c8da8;display:grid;place-items:center;border-radius:50%;padding:0;margin:24px 0 10px;font-size:28px;overflow:hidden}.registration-avatar img{width:100%;height:100%;object-fit:cover}.emoji-item{position:relative;flex-shrink:0}.emoji-dock.full-list{max-height:min(60dvh,470px);overflow:auto;align-items:flex-start;scrollbar-width:thin}.emoji-dock.full-list #emojiChoices{display:grid;grid-template-columns:repeat(5,1fr);gap:10px 8px}.emoji-dock.full-list .emoji-choice{width:46px;height:48px}.favorite-star{position:absolute;right:-5px;top:-5px;z-index:2;width:22px;height:22px;background:#f5f6f8;color:#b6bfcc;border:2px solid #fff;border-radius:50%;padding:0;display:grid;place-items:center;font-size:14px;line-height:1}.favorite-star.selected{color:#bc9145;background:#f8f1df}.emoji-dock:not(.full-list) #emojiChoices{gap:9px}#moreEmoji{position:sticky;top:0;flex-shrink:0;min-width:28px;width:28px;font-size:22px}.emoji-dock{width:min(355px,calc(100% - 20px))}#editForm textarea{display:block;width:100%;resize:vertical;min-height:120px;background:#f1f3f7;border:1px solid #e3e8ef;color:#334154}#messageActions .primary{margin-top:0;margin-bottom:10px}#deletePasswordLabel{display:block;font-size:13px;color:#8995a7;margin:20px 0 12px}#deletePassword{display:block;width:100%;margin:8px 0}#cancelDeleteAccount{display:block;margin:4px auto}#editStatus,#deleteAccountStatus{min-height:1em}#settings #logout{margin-top:12px}
:root[data-theme=dark]{color-scheme:dark;color:#e5e9ee;background:#121419;--accent:#8ca9d3;--muted:#8992a0;--line:#2a2e36}
html[data-theme=dark] body{background:#121419}
html[data-theme=dark] .app,html[data-theme=dark] .conversation,html[data-theme=dark] .messages{background:#17191f;color:#e0e5ec}
html[data-theme=dark] .sidebar{background:#1b1e25;border-color:#2a2d34}
html[data-theme=dark] .chat-header{background:#1b1e25;border-color:#292d35}
html[data-theme=dark] .chat-heading h2,html[data-theme=dark] .friend strong{color:#e0e5ed}
html[data-theme=dark] .chat-heading span{color:#8e9b8c}
html[data-theme=dark] .general{background:#282f3b;color:#c5d3e8}
html[data-theme=dark] .general:hover{background:#30394a}
html[data-theme=dark] .general small{color:#8390a4}
html[data-theme=dark] .avatar,html[data-theme=dark] .friend:nth-child(n) .avatar,html[data-theme=dark] .general-avatar,html[data-theme=dark] .chat-header .avatar{background:#354050;color:#afc0d8}
html[data-theme=dark] .avatar.online:after{border-color:#1b1e25;background:#7fab8b}
html[data-theme=dark] .friend:hover{background:#252a33}
html[data-theme=dark] .friend.active{background:#2b323e}
html[data-theme=dark] .friends-heading{color:#76808f}
html[data-theme=dark] .sidebar input{background:#252a33;color:#c7cfdb}
html[data-theme=dark] .sidebar input::placeholder{color:#6f7a8a}
html[data-theme=dark] .profile-gear{background:#292f39!important;color:#93a1b6!important}
html[data-theme=dark] .bubble{background:#272c35;color:#d8dfe9}
html[data-theme=dark] .mine .bubble{background:#35455e;color:#e0e8f5}
html[data-theme=dark] .message .sender{color:#8fabc9}
html[data-theme=dark] .message time{color:#717c8b}
html[data-theme=dark] .empty{color:#778190}
html[data-theme=dark] .composer{background:#17191f;border-color:#22262e}
html[data-theme=dark] .composer textarea{background:#252a33;color:#d4dde9}
html[data-theme=dark] .composer textarea:focus{border-color:#526685;background:#292f3a}
html[data-theme=dark] .composer textarea::placeholder{color:#788495}
html[data-theme=dark] .composer .icon{color:#8592a5}
html[data-theme=dark] .send,html[data-theme=dark] .primary{background:#6b8fbe;color:#111d2d}
html[data-theme=dark] .throw-picker{background:#2a3546;color:#a2bbdf!important}
html[data-theme=dark] .emoji-dock{background:#242a34;border-color:#3a4351;box-shadow:0 12px 50px #0006}
html[data-theme=dark] .emoji-choice{background:#303844}
html[data-theme=dark] .emoji-choice:hover{background:#3b4656}
html[data-theme=dark] .emoji-choice.charging{background:#405474;box-shadow:0 0 0 2px #8fa9ce50}
html[data-theme=dark] .favorite-star{border-color:#242a34;background:#354051;color:#7f8c9f}
html[data-theme=dark] .favorite-star.selected{color:#e0ba70;background:#4d4431}
html[data-theme=dark] .hold-count{background:#819dc7;color:#172438}
html[data-theme=dark] .sent-batch{background:#344359;color:#c0d4ee}
html[data-theme=dark] dialog{background:#222731;color:#dce3ed;border-color:#3a424e;box-shadow:0 20px 70px #0006}
html[data-theme=dark] dialog::backdrop{background:#0008}
html[data-theme=dark] dialog p{color:#8b98aa}
html[data-theme=dark] .profile-photo .avatar{background:#354050;color:#adc0db}
html[data-theme=dark] .photo-edit{border-color:#222731;background:#7698c5;color:#17263b}
html[data-theme=dark] .profile-name-row input,html[data-theme=dark] #editForm textarea,html[data-theme=dark] #deletePassword{background:#2d3542;border-color:#3b4758;color:#d0dced}
html[data-theme=dark] .switch-row{color:#b4c1d3}
html[data-theme=dark] .switch-row input{accent-color:#87a5cf}
html[data-theme=dark] .theme-choice{background:#171c24}
html[data-theme=dark] .theme-choice button{color:#74849b}
html[data-theme=dark] .theme-choice button[aria-pressed=true]{background:#354156;color:#c3d4ee;box-shadow:none}
html[data-theme=dark] .text-button{color:#8aa6ce}
html[data-theme=dark] .danger-action{background:#452f36;color:#e2a0a5}
html[data-theme=dark] #adminStats>div{border-color:#343d4b}
html[data-theme=dark] #adminStats span{color:#91a1b8}
html[data-theme=dark] .invite-plus{background:#2d3746;color:#a0b3cf;box-shadow:0 0 0 8px #1b1e25}
html[data-theme=dark] .record-panel{background:#2b3544;color:#a5bad8}
html[data-theme=dark] .record-panel button{background:#3a485c;color:#c2d2e9}
html[data-theme=dark] .circle-player{background:conic-gradient(#8aa8d1 var(--progress,0deg),#343d4b 0);box-shadow:0 12px 35px #0002}
html[data-theme=dark] .auth{background:#171b23}
html[data-theme=dark] .auth-card{background:#202732;border-color:#323c4d;box-shadow:0 15px 50px #0002}
html[data-theme=dark] .auth h1{color:#cedaec}
html[data-theme=dark] .auth label,html[data-theme=dark] .auth p{color:#8d9db4}
html[data-theme=dark] .auth input{background:#2b3544;border-color:#3b495e;color:#d0dcf0}
html[data-theme=dark] .brand-mark,html[data-theme=dark] .registration-avatar{background:#36445b;color:#adc2df}
html[data-theme=dark] .media-tools button{color:#8b9fbc}
@media(max-width:700px){.emoji-dock.full-list #emojiChoices{grid-template-columns:repeat(5,1fr)}.emoji-dock.full-list .emoji-choice{width:44px}.invite-plus{bottom:calc(3px + env(safe-area-inset-bottom))}}
