@font-face{font-family:Chat;src:local('Segoe UI')}*{box-sizing:border-box}body{margin:0;background:#f6f6f6;color:#282828;font:14px Chat,Tahoma,Arial,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.5;cursor:wait}input,textarea,select{border:1px solid #e6e6e6;border-radius:7px;padding:12px;background:#f8f8f8;color:inherit;outline:none}input:focus,textarea:focus{border-color:#7cab20;box-shadow:0 0 0 3px #9dcd2820}button:focus-visible{outline:3px solid #36a9c4;outline-offset:2px}[hidden]{display:none!important}.topbar{height:50px;background:#222;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 14px;direction:ltr}.brand,.header-actions{display:flex;align-items:center;gap:14px}.brand strong{font-size:23px;letter-spacing:-1px}.brand-icon{display:inline-grid;place-items:center;background:#25abc4;border-radius:7px;color:white;font-size:29px;line-height:1;width:31px;height:31px;box-shadow:0 3px 0 #15859b;transform:rotate(-3deg)}.icon{background:transparent;color:inherit;font-size:22px;padding:6px;line-height:1;position:relative}.connection{font-size:11px;color:#bbb;direction:rtl}.connection.online{color:#b6dc65}.connection:before,.live-dot{content:'';display:inline-block;width:6px;height:6px;border-radius:100%;background:#aaa;margin-inline-end:6px}.connection.online:before,.live-dot{background:#95c11f}.avatar{display:grid;place-items:center;border-radius:50%;background:#ebedef;border:3px solid #f4f4f4;color:#8d959c;font-size:19px;width:43px;height:43px;font-weight:bold;flex-shrink:0}.avatar.small{width:35px;height:35px;font-size:16px}.layout{display:flex;direction:ltr;height:calc(100dvh - 86px)}.rail{width:50px;background:#141414;display:flex;flex-direction:column;flex-shrink:0;position:relative;z-index:2}.rail-button{height:50px;background:transparent;color:#fff;font-size:25px;border-inline-start:3px solid transparent}.rail-button:hover,.rail-button.selected{background:#292929;color:#b3dd55;border-inline-start-color:#94c61b}.rail-spacer{flex:1}.conversation{flex:1;min-width:0;background:#fff;position:relative;display:flex;flex-direction:column;direction:rtl}.room-header{min-height:53px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #f2f2f2}.room-header strong{font-size:13px}.room-header #conversation-topic{margin-inline-start:13px;color:#9c9c9c;font-size:11px}.room-header #message-count{font-size:11px;color:#aaa}.message-scroll{flex:1;min-height:0;overflow:auto;padding:15px 18px;scroll-behavior:smooth;overscroll-behavior:contain}.empty-state{position:absolute;inset:35% 0 auto;text-align:center;color:#b8b8b8;pointer-events:none}.empty-state>span{font-size:45px;color:#dae3c4}.empty-state h2{font-size:17px;color:#8b9382;margin:12px 0 6px}.empty-state p{font-size:12px}.message{display:flex;align-items:flex-start;gap:10px;padding:10px 0;direction:rtl;animation:appear .16s ease-out}.message .message-content{flex:1;min-width:0}.message-meta{display:flex;align-items:center;gap:5px;height:25px;font-size:12px}.name-button{font-weight:600;color:#363636;background:none;padding:0}.role{font-size:12px;color:#d3a900}.time{margin-inline-start:auto;font-size:9px;color:#aaa;direction:ltr}.message-delete{background:none;color:#aaa;font-size:15px;opacity:0}.message:hover .message-delete,.message-delete:focus{opacity:1}.bubble{background:#f3f3f3;border-radius:14px 2px 14px 14px;padding:10px 13px;display:table;max-width:80%;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;color:#505050}.own .bubble{background:#94c500;color:white}.bubble a{color:inherit}.bubble iframe{display:block;border:0;aspect-ratio:16/9;width:min(420px,60vw);max-width:100%;border-radius:8px;background:#222}.youtube-preview{min-width:210px;max-width:420px;display:block;padding:15px;background:#252525;color:white;border-radius:7px;white-space:normal}.youtube-preview button{background:#e63232;color:white;border-radius:5px;padding:9px 13px;margin-top:10px}.composer{height:51px;border-top:1px solid #eee;display:flex;align-items:center;gap:8px;padding:5px 12px;direction:ltr;background:#fff}.composer .icon{color:#aaa}.composer input{flex:1;min-width:0;border-radius:25px;background:#f6f6f6;padding:9px 16px;height:38px;text-align:start;direction:rtl}.send{background:none;color:#343434;font-size:24px;padding:5px 8px;transform:rotate(-25deg)}.people{direction:rtl;width:280px;border-left:1px solid #eee;display:flex;flex-direction:column;background:#fff;flex-shrink:0}.people-tabs{height:42px;background:#f6f6f6;padding:12px 16px;display:flex;align-items:center;gap:8px;font-size:12px}.badge{border-radius:20px;display:inline-grid;place-items:center;background:#1eb0c7;color:white;font-size:10px;min-width:20px;height:20px;padding:0 5px}.search{margin:12px;font-size:11px;padding:9px;border:0}.person{display:flex;width:100%;align-items:center;gap:10px;padding:10px 14px;background:#fff;text-align:start;color:#383838}.person:hover{background:#f6f8f3}.person strong{font-size:13px;flex:1}.person small{font-size:10px;color:#aaa}.person .crown{color:#d7b000}.people-footer{margin-top:auto;border-top:1px solid #f5f5f5;color:#aaa;font-size:10px;padding:12px}.bottom-bar{height:36px;background:#222;color:#aaa;display:flex;align-items:center;gap:18px;padding:0 14px;direction:ltr;font-size:10px}.bottom-bar .icon{margin-left:auto;font-size:19px;color:white}.tool-menu,.emoji-menu{position:absolute;bottom:56px;left:8px;background:white;border:1px solid #eee;box-shadow:0 4px 24px #0001;border-radius:9px;padding:9px;z-index:3;display:flex;gap:7px}.tool-menu button{background:#f7f7f7;border-radius:7px;padding:9px 14px;display:flex;align-items:center;gap:8px}.tool-menu span{font-size:23px}.youtube-icon{color:#dc2020}.emoji-menu{max-width:270px;flex-wrap:wrap}.emoji-menu button{font-size:22px;background:transparent;padding:6px}#compose-error{color:#a32929;font-size:11px;padding:0 15px;background:#fff}#compose-error:not(:empty){padding-block:7px}.older{display:block;margin:0 auto 10px;color:#818b73;background:#f4f6ef;border-radius:20px;padding:7px 15px;font-size:11px}.welcome{min-height:100dvh;display:flex;align-items:center;justify-content:center;gap:100px;background:linear-gradient(125deg,#f9faf7,#eef1e9);padding:30px}.welcome-brand{text-align:center}.welcome-brand .brand-icon{width:75px;height:75px;font-size:65px;border-radius:17px}.welcome-brand h1{font-size:48px;margin:23px 0 8px}.welcome-brand p{color:#858b7d}.auth-card{background:white;border:1px solid #e7e9e3;border-radius:14px;padding:30px;width:360px;box-shadow:0 15px 50px #29391608}.auth-tabs{display:flex;border-bottom:1px solid #eee;gap:20px}.auth-tabs button{background:none;padding:10px 0;color:#aaa}.auth-tabs button.active{color:#5b8113;border-bottom:2px solid #8fbd23}.auth-card h2{font-size:20px;margin:25px 0}.auth-card label{display:block;font-size:12px;margin:17px 0}.auth-card input{display:block;width:100%;margin-top:8px}.primary{background:#8ebd1b;color:white;border-radius:6px;padding:12px 20px;font-weight:bold}.auth-card .primary{width:100%;margin-top:5px}.auth-card small{display:block;text-align:center;color:#aaa;font-size:10px;margin-top:22px}#auth-error{color:#a32929;font-size:12px}#setup-note{color:#6d765f;font-size:12px;line-height:1.8}dialog{border:0;border-radius:12px;padding:0;width:min(540px,calc(100% - 28px));box-shadow:0 25px 100px #0003;max-height:85dvh}dialog::backdrop{background:#0006}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;border-bottom:1px solid #eee}.modal-head h2{font-size:16px;margin:0}#modal-content{padding:20px;max-height:65dvh;overflow:auto}#modal-content form{display:grid;gap:14px}#modal-content label{font-size:12px;display:grid;gap:8px}#modal-content p{line-height:1.9;color:#888}.modal-actions{display:flex;gap:8px;flex-wrap:wrap}.secondary{padding:10px 16px;background:#f2f3f0;color:#5e6554;border-radius:6px}.danger{background:#fff0ef;color:#a93931;padding:9px 12px;border-radius:5px}.room-card{width:100%;text-align:start;background:#f8f8f8;margin:4px 0;padding:15px;border-radius:7px;display:flex;gap:14px;align-items:center}.room-card span{font-size:26px;color:#94b85b}.room-card small{display:block;color:#999;margin-top:5px}.admin-user{border-bottom:1px solid #eee;padding:12px 0;display:flex;align-items:center;gap:9px;flex-wrap:wrap}.admin-user strong{flex:1;min-width:100px}.admin-user button{padding:7px;font-size:11px;border-radius:4px}.admin-user select{padding:5px;font-size:11px}#toast{position:fixed;bottom:60px;left:50%;transform:translateX(-50%);background:#222;color:white;padding:12px 22px;border-radius:8px;z-index:10;max-width:90%;box-shadow:0 5px 20px #0002}#unread{position:absolute;top:0;right:0;background:#f25b58;color:white;border-radius:50%;font-size:9px;padding:3px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@keyframes appear{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@media(max-width:800px){.people{width:225px}.room-header #conversation-topic{display:none}.connection{font-size:0}.connection:before{width:7px;height:7px}.header-actions{gap:10px}.welcome{gap:35px}.welcome-brand h1{font-size:32px}.bubble{max-width:92%}}@media(max-width:600px){.people{position:absolute;right:0;top:50px;bottom:36px;z-index:5;width:260px;box-shadow:-10px 0 30px #0001;display:none}.people.mobile-open{display:flex}.rail{width:42px}.rail-button{height:47px;font-size:23px}.room-header{padding:0 13px;min-height:43px}.message-scroll{padding:10px}.avatar{width:34px;height:34px;font-size:15px}.message{gap:7px}.bubble{font-size:13px}.composer{padding:5px 7px;gap:3px}.welcome{flex-direction:column;gap:25px;padding:25px 15px}.welcome-brand .brand-icon{width:45px;height:45px;font-size:38px}.welcome-brand h1{font-size:28px;margin:10px 0 0}.welcome-brand p{display:none}.auth-card{width:min(360px,100%);padding:25px}.message-delete{opacity:1}.brand strong{font-size:20px}.brand{gap:10px}.time{font-size:8px}.tool-menu{max-width:calc(100% - 16px)}.people-search{width:90%}}
.message-image{display:block;max-width:min(400px,60vw);max-height:350px;border-radius:8px}audio{display:block;max-width:min(300px,60vw)}.drawing{display:block;width:100%;border:1px solid #ddd;touch-action:none;border-radius:7px;margin-bottom:12px}.drawing+.modal-actions{margin-bottom:14px}.tool-menu{flex-wrap:wrap;max-width:500px}.tool-menu button{font-size:12px;padding:8px}
.avatar{background:#fff url(/assets/default_avatar.png) center/cover no-repeat;color:transparent;font-size:0!important;border:0}.avatar.small{color:transparent}.topbar .icon{font-size:17px}.rail-button{font-size:18px}.composer .icon{font-size:20px}.send{transform:none;font-size:19px}.message .avatar{width:40px;height:40px}.message-meta{height:22px}.bubble{border-radius:14px 2px 14px 14px;padding:8px 12px}.message-content .role{font-family:Arial}.topbar .brand strong{font-size:22px}
.post-card{padding:18px 0;border-bottom:1px solid #eee}.post-card strong{font-size:13px}.post-time{float:left;color:#aaa;font-size:10px}.post-body{white-space:pre-wrap;overflow-wrap:anywhere;color:#555!important}.post-card .modal-actions button{font-size:11px;padding:7px 12px}.post-card .modal-actions{gap:6px}#modal-content>div>form{padding-bottom:18px;border-bottom:1px solid #eee}
.account-menu{position:fixed;top:48px;right:12px;background:#fff;box-shadow:0 8px 30px #0002;border-radius:7px;padding:8px;z-index:9;min-width:190px}.account-menu-item{display:block;background:transparent;width:100%;text-align:start;padding:10px 16px;border-radius:4px}.account-menu-item:hover{background:#f3f5ef}.notification-badge{position:absolute;top:-2px;right:-3px;font-size:9px;background:#e74b46;color:white;border-radius:50%;padding:2px 4px}.balances{display:flex;gap:20px;padding:20px;background:#f7f8f5;border-radius:8px}.ledger-row{padding:12px 0;display:flex;align-items:center;gap:10px;border-bottom:1px solid #eee;font-size:12px}.ledger-row small{margin-inline-start:auto;color:#aaa}.positive{color:#5c9422}.negative{color:#b44c4c}.gift-grid{display:flex;flex-wrap:wrap;gap:10px}.gift-item{display:grid;place-items:center;gap:8px;background:#f8f8f8;padding:15px;border-radius:8px;min-width:110px}.gift-item img{width:65px;height:65px}.gift-item small{font-size:10px;color:#888}.profile-avatar{width:80px;height:80px;background:url(/assets/default_avatar.png) center/cover;border-radius:50%;margin:auto}.full-profile h3,.profile-mood{text-align:center}.profile-badges{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0}.profile-badges span{background:#f4f5f1;padding:8px;border-radius:5px}.full-profile .modal-actions{padding:10px 0}.plan-card{border:1px solid #eee;border-radius:8px;padding:20px;margin:12px 0}.notification-item{border-bottom:1px solid #eee;padding:12px 0}.notification-item small{color:#aaa}.wide-modal{width:min(1100px,calc(100% - 24px))}.admin-console{display:flex;gap:20px;min-height:460px}.admin-nav{width:190px;flex-shrink:0;border-left:1px solid #eee;padding-left:12px}.admin-nav-item{width:100%;background:transparent;padding:12px 8px;text-align:start;border-radius:4px}.admin-nav-item.active,.admin-nav-item:hover{background:#f3f5ee;color:#648514}.admin-content{flex:1;min-width:0}.admin-content form{display:grid;gap:12px}.admin-content form label{display:grid;gap:6px}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.stat-card{background:#f7f8f4;padding:24px;display:grid;gap:8px;border:1px solid #eef0e8;border-radius:6px}.stat-card strong{font-size:30px;color:#7c9f28}.stat-card small{color:#888}.call-panel{position:fixed;bottom:50px;left:70px;z-index:10;width:min(360px,calc(100% - 90px));background:#222;color:white;border-radius:10px;padding:15px;box-shadow:0 10px 40px #0004;display:flex;flex-wrap:wrap;gap:10px}.call-panel strong{width:100%}.call-panel video{width:100%;max-height:240px;background:#111;border-radius:5px}.call-panel video+video{width:90px;max-height:75px}.call-panel audio{width:100%}.radio-player{height:28px;max-width:220px}hr{border:0;border-top:1px solid #eee;margin:20px 0}@media(max-width:600px){.admin-console{gap:10px}.admin-nav{width:120px;padding-left:6px}.admin-nav-item{font-size:11px;padding:10px 4px}.stats-grid{grid-template-columns:1fr}.stat-card{padding:15px}.admin-content .admin-user{font-size:11px}.ledger-row{flex-wrap:wrap}.ledger-row small{margin:0;width:100%}}
.avatar img,.profile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.profile-cover{height:140px;border-radius:8px;overflow:hidden;margin-bottom:-25px}.profile-cover img{width:100%;height:100%;object-fit:cover}.profile-avatar{position:relative;border:3px solid #fff}.full-profile h3{margin-top:12px}
.wide-modal{position:fixed;inset:50px 0 0;margin:0;width:100vw;max-width:none;height:calc(100dvh - 50px);max-height:none;border-radius:0;box-shadow:none;background:#f3f3f3}.wide-modal .modal-head{height:60px;background:white;border-bottom:1px solid #ddd;padding-inline:25px}.wide-modal #modal-content{max-height:none;height:calc(100% - 60px);padding:0;overflow:hidden}.admin-console{direction:ltr;height:100%;min-height:0;gap:0}.admin-nav{direction:rtl;width:260px;background:#242424;color:#eee;border:0;padding:16px 12px;overflow:auto}.admin-nav-item{padding:13px 16px;border-radius:0;font-size:13px}.admin-nav-item.active,.admin-nav-item:hover{background:#333;color:#34b5cd}.admin-content{direction:rtl;overflow:auto;padding:25px;background:#f5f5f5}.stat-card{background:white}.wide-modal .modal-head h2{margin-inline-start:270px}@media(max-width:600px){.admin-nav{width:125px;padding:8px 3px}.admin-nav-item{font-size:11px;padding:12px 5px}.admin-content{padding:12px}.wide-modal .modal-head h2{margin-inline-start:0}}
.auth-help{display:block;margin:16px auto 0;background:transparent;color:#788961;font-size:12px}#guest-button{display:block;margin:14px auto 0;width:100%}
.room-header>.secondary{font-size:10px;padding:7px 10px;margin-inline-start:12px}.group-panel{position:fixed;z-index:11;bottom:45px;left:60px;width:min(650px,calc(100% - 75px));max-height:75dvh;overflow:auto;background:#222;color:#eee;padding:15px;border-radius:8px;box-shadow:0 10px 50px #0005}.group-panel>button{margin:0 8px 10px}.group-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.group-tile{min-width:0;background:#111;border-radius:6px;overflow:hidden}.group-tile video{width:100%;max-height:160px;display:block}.group-tile small{display:block;padding:7px}@media(max-width:600px){.group-grid{grid-template-columns:repeat(2,1fr)}}
.message-sticker{max-width:100px;max-height:100px;display:block}.sticker-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.sticker-item{background:#f7f7f7;border-radius:4px;padding:8px}.sticker-item img{width:32px;height:32px;object-fit:contain}.code-message{direction:ltr;text-align:left;white-space:pre-wrap;font:13px/1.8 Consolas,monospace;max-width:65vw;min-width:200px;margin:0}.bubble:has(.code-message){background:#24262a;color:#e4ead6}@media(max-width:600px){.sticker-grid{grid-template-columns:repeat(5,1fr)}}

.rank-icon{width:20px;height:20px;object-fit:contain;flex:none;vertical-align:middle}.message-meta>.rank-icon{width:18px;height:18px}.profile-name{display:flex;justify-content:center;align-items:center;gap:7px}.profile-name>.rank-icon{width:26px;height:26px}

/* Dedicated administration document, independent from chat dialogs. */
.admin-page-body{height:100dvh;overflow:hidden;background:#f4f5f7}.admin-page-body #shell{display:none!important}
#admin-page:not([hidden]){height:100dvh;display:flex;flex-direction:column}.admin-page-header{height:60px;flex:none;display:flex;align-items:center;gap:16px;padding:0 24px;background:#242424;color:white;border-bottom:1px solid #373737}.admin-page-header strong{font-size:17px}.admin-back{margin-inline-start:auto;color:#fff;text-decoration:none;font-size:13px;padding:10px;border:1px solid #666;border-radius:5px}.admin-menu-toggle{display:none;background:transparent;color:white;font-size:24px}.admin-page-body .admin-console{flex:1;min-height:0}.admin-page-body .admin-nav{width:245px;padding:18px 10px}.admin-page-body .admin-nav-item{display:block;text-decoration:none;color:#ddd;line-height:1.5}.admin-page-body .admin-nav-item.active{color:#54c7d8;border-inline-start:3px solid #54c7d8}.admin-page-body .admin-content{padding:28px;overscroll-behavior:contain}.admin-page-body .admin-content>form{max-width:760px;background:white;padding:22px;border:1px solid #e6e8eb;border-radius:8px}.admin-page-body .admin-content input,.admin-page-body .admin-content select,.admin-page-body .admin-content textarea{width:100%;min-width:0;max-width:100%;padding:10px;border:1px solid #d8dce1;border-radius:5px;background:#fff;color:#222}.admin-page-body .admin-user select{width:auto}.admin-page-body .admin-user{overflow-wrap:anywhere}.admin-page-body .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.admin-nav-shade{display:none}
@media(max-width:1000px){.admin-page-body .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.admin-page-header{height:56px;padding:0 12px;gap:10px}.admin-page-header strong{font-size:15px}.admin-back{font-size:11px;padding:8px}.admin-menu-toggle{display:block}.admin-page-body .admin-nav{position:fixed;top:56px;bottom:0;left:0;width:min(280px,82vw);z-index:22;transform:translateX(-100%);transition:transform .18s ease;padding:12px}.admin-page-body .admin-nav-item{font-size:14px;padding:14px}.admin-page-body .menu-open .admin-nav{transform:translateX(0)}.menu-open .admin-nav-shade{display:block;position:fixed;inset:56px 0 0;z-index:21;background:#0007}.admin-page-body .admin-content{padding:16px;width:100%}.admin-page-body .admin-content>form{padding:16px}.admin-page-body .stat-card{padding:18px}.admin-page-body .admin-user{gap:10px;padding:16px 0}.admin-page-body .admin-user button{font-size:12px;min-height:38px}.admin-page-body .admin-content h3{font-size:18px}.admin-page-body .admin-user select{max-width:100%}}
@media(prefers-reduced-motion:reduce){.admin-page-body .admin-nav{transition:none}}

.admin-page-body .admin-nav{width:260px;padding:8px}.admin-page-body .admin-nav-item{display:flex;gap:12px;align-items:center;min-height:48px;font-size:13px;border-radius:0}.admin-nav-item i{width:20px;text-align:center;font-size:18px}.admin-page-body .admin-content{background:#ededed;padding:10px}.admin-page-body .admin-content>h3{background:white;margin:0 0 10px;padding:22px;box-shadow:0 1px 3px #0003;font-size:13px;font-weight:400}.admin-page-header{height:50px}.admin-page-body .stat-card{border-radius:0;box-shadow:0 1px 3px #0001}.admin-page-body .admin-nav-item.active{border:0;background:#292929;color:#00a5c4}@media(max-width:700px){.admin-page-header{height:56px}.admin-page-body .admin-content{padding:10px}.admin-page-body .admin-nav{width:min(280px,82vw)}}

.admin-page-body .admin-content>form{max-width:none;width:100%;border-radius:0}.admin-page-body .admin-content{max-width:none}.addon-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.addon-toolbar a{text-decoration:none;font-size:12px}.addon-list{background:white;box-shadow:0 1px 3px #0002;padding:15px 20px}.addon-row{display:flex;align-items:center;gap:14px;padding:18px 10px;border-bottom:1px solid #eee}.addon-row:last-child{border:0}.addon-symbol{background:#f0f0f0;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:#00a5c4;font-size:23px;flex:none}.addon-details{flex:1;min-width:0}.addon-details strong{font-size:14px}.addon-details small{display:block;color:#888;margin-top:5px}.addon-details p{font-size:12px;color:#666;line-height:1.8;margin:7px 0}.addon-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.addon-actions button{font-size:12px;padding:10px 12px}.addon-settings-button{background:#242424;color:#fff;border-radius:4px}.addon-status{font-size:11px;color:#777}.addon-status.is-enabled{color:#408300}.addon-about,.addon-log{background:white;padding:20px;margin-top:12px;overflow-wrap:anywhere}.addon-about p{font-size:12px}.addon-about form{display:flex;gap:10px;margin-top:18px}.addon-about form select{flex:1}.addon-hash{display:block;direction:ltr;color:#888;font-size:10px;margin:15px 0}.addon-package-preview{line-height:1.8;padding:12px;background:#f8f8f8}.addon-trust-note{font-size:12px;color:#786128}.addon-tool-result{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;line-height:1.9}.addon-log.error{border-inline-start:3px solid #b33}.addon-empty{padding:20px;color:#888}#modal-content input[type=checkbox],.admin-page-body .admin-content input[type=checkbox]{width:20px;height:20px}.addon-install-form{width:100%}@media(max-width:700px){.addon-list{padding:10px}.addon-row{flex-wrap:wrap;padding:15px 0}.addon-actions{width:100%;justify-content:flex-start}.addon-actions button{min-height:40px}.addon-details p{font-size:12px}.addon-about form{flex-wrap:wrap}}

.bubble-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(36px,1fr));gap:9px;padding:6px 2px 16px}.bubble-swatch{width:34px;height:30px;border-radius:10px 2px 10px 10px;border:2px solid #fff;background:#94c500}.bubble-swatch[aria-pressed=true]{outline:2px solid #222;outline-offset:2px}.bubble-example{margin:10px 0 22px;min-width:160px}.bubble-grid+.primary{margin-top:12px}body[data-log-mode="2"] .message .bubble,body[data-log-mode="3"] .message .bubble{background:none!important;box-shadow:none!important;border-radius:0;color:inherit;padding:0;display:block;max-width:100%}body[data-log-mode="3"] .message:nth-child(even){background:#f5f5f5}body[data-log-mode="3"] .message{padding:10px}body[data-theme="Dark"]{background:#171717;color:#ddd}body[data-theme="Dark"] .conversation,body[data-theme="Dark"] .people,body[data-theme="Dark"] .person,body[data-theme="Dark"] .composer,body[data-theme="Dark"] dialog,body[data-theme="Dark"] .room-header{background:#222;color:#ddd}body[data-theme="Dark"] .name-button{color:#eee}body[data-theme="Dark"] .bubble:not([class*=bub]){background:#333;color:#eee}body[data-theme="Dark"] .own .bubble:not([class*=bub]){background:#648600}body[data-theme="Dark"] .people-tabs,body[data-theme="Dark"] .room-card,body[data-theme="Dark"] input,body[data-theme="Dark"] textarea,body[data-theme="Dark"] select{background:#303030;color:#eee;border-color:#444}body[data-theme="Dark"][data-log-mode="3"] .message:nth-child(even){background:#292929}

.permission-tabs{display:flex;gap:0;border-bottom:1px solid #e5e5e5;background:white;overflow:auto}.permission-tab{background:white;padding:16px 22px;white-space:nowrap;color:#777;border-bottom:2px solid transparent}.permission-tab.active{border-color:#00a5c4;color:#00a5c4}.permission-panel{padding:8px 0}.permission-row{display:flex!important;flex-direction:column;gap:10px!important;padding:15px 0;font-size:13px}.permission-row select{max-width:100%;width:100%}.permission-form .primary{justify-self:start;min-width:100px}.admin-page-body .admin-content form{border-radius:0}.permission-panel>section{display:grid;gap:2px}@media(max-width:700px){.permission-tab{padding:14px;font-size:12px}}

.room-header{display:none}.rooms-panel{width:380px;max-width:calc(100vw - 50px);flex:none;background:white;border-inline-end:1px solid #eee;display:flex;flex-direction:column;direction:rtl;overflow:hidden}.rooms-panel-head{height:40px;min-height:40px;border-bottom:1px solid #eee;display:flex;direction:ltr;align-items:center;justify-content:space-between;padding:0 10px;font-size:12px}.rooms-panel-head .icon{font-size:19px}.rooms-panel-tools{padding:20px 15px 0}.rooms-panel-tools .primary{font-size:11px;padding:8px 10px;border-radius:4px;background:#00a5c4}.rooms-panel>.search{margin:15px;width:calc(100% - 30px);padding:14px;border:1px solid #e6e6e6}.rooms-panel-list{overflow:auto;flex:1;padding:0 15px}.room-list-button{width:100%;background:transparent;display:flex;align-items:center;gap:10px;text-align:start;padding:10px 8px;color:#333}.room-list-picture{width:50px;height:50px;display:grid;place-items:center;border-radius:5px;background:#04333d;color:#85d6df;font-size:25px;flex:none}.room-list-details{display:grid;gap:3px;flex:1}.room-list-details strong{font-size:13px}.room-list-details small{font-size:10px;color:#999}.room-list-button[aria-current=page]{background:#f9fafb}.room-password-form{display:grid;gap:8px;padding:10px}.room-password-form input{min-width:0;width:100%}.account-menu{max-height:calc(100dvh - 65px);overflow:auto;z-index:8}.account-menu-item{font-size:13px}.message .avatar{width:40px;height:40px}@media(max-width:1000px){.rooms-panel{width:300px}}@media(max-width:900px){.rooms-panel{position:absolute;left:50px;top:50px;bottom:36px;z-index:6;box-shadow:8px 0 25px #0002;width:380px}}@media(max-width:600px){.rooms-panel{left:42px;width:calc(100vw - 42px);max-width:none}.header-actions{gap:12px}.rooms-panel-head{height:40px}.rooms-panel-tools{padding-top:12px}}

.people-tabbar{height:40px;min-height:40px;display:flex;direction:ltr;border-bottom:1px solid #eee}.people-tab,.people-tab-close{height:40px;width:40px;background:white;color:#333;font-size:15px;flex:none}.people-tab-close{margin-right:auto}.people-tab.active{background:#eee}.people-counter{display:flex;align-items:center;justify-content:flex-start;gap:5px;direction:rtl;height:45px;padding:12px 15px;font-size:11px}.people-empty{font-size:12px;color:#999;padding:15px;text-align:center}.people.is-collapsed{display:none}.people .avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.message-scroll{display:flex;flex-direction:column}#messages{margin-top:auto;width:100%}.time{margin-left:0;margin-right:auto}.people-tab:focus-visible{outline:2px solid #00a5c4;outline-offset:-3px}

.account-menu{width:300px;min-width:0;right:10px;top:56px;padding:0 10px 8px;border:1px solid #eee;border-radius:11px;box-shadow:0 1px 3px #0003;direction:rtl}.account-profile-card{display:flex;align-items:center;gap:10px;width:100%;background:white;padding:15px 5px 12px;text-align:start;border-bottom:1px solid #eee;min-height:76px}.account-profile-card>img{width:42px;height:42px;border-radius:50%;object-fit:cover}.account-profile-info{display:grid;flex:1;gap:1px}.account-profile-info>small{font-size:9px;color:#999;display:flex;align-items:center;gap:2px}.account-profile-info .rank-icon{width:13px;height:13px}.account-profile-info>strong{font-size:14px;color:#151515}.account-profile-info .account-edit-label{font-size:10px;color:#888}.account-online{color:#78b500;font-size:18px}.account-navigation-row{display:flex;align-items:center;width:100%;min-height:59px;gap:10px;border-bottom:1px solid #eee;background:white;color:#04536c;padding:14px 16px;text-align:start;font-size:12px}.account-navigation-row:last-child{border:0}.account-navigation-row>i:first-child{color:#00add2;font-size:17px;width:18px;text-align:center}.account-navigation-row>span{flex:1}.account-navigation-row .account-row-arrow{color:#07516a;font-size:12px}.account-navigation-row:hover{background:#fafafa}.account-menu-heading{font-size:13px;margin:0;padding:14px;color:#555;border-bottom:1px solid #eee}.account-profile-card:focus-visible,.account-navigation-row:focus-visible{outline-offset:-3px}@media(max-width:360px){.account-menu{width:calc(100vw - 20px)}}

.wall-panel-content{overflow:auto;padding:20px 15px;flex:1;min-height:0}.wall-add{background:#00add2;padding:9px 12px;border-radius:4px;font-size:12px;margin-bottom:12px}.wall-empty{text-align:center;color:#999;padding:25px 0;display:grid;gap:14px;justify-items:center}.wall-empty>i{font-size:65px;color:#ddd}.wall-empty>small{font-size:11px}.wall-panel-content .post-card{border:1px solid #eee;border-radius:5px;padding:15px;margin:12px 0;background:white}.wall-panel-content .post-card .modal-actions button{font-size:11px;padding:7px}.left-content-panel .post-body{font-size:13px;line-height:1.9}

dialog:has(.post-compose){width:min(500px,calc(100% - 28px));border-radius:20px;max-height:90dvh}dialog:has(.post-compose) .modal-head{border:0;flex-direction:row-reverse;padding:18px 20px 14px}dialog:has(.post-compose) .modal-head h2{font-size:13px;font-weight:600}dialog:has(.post-compose) #modal-content{padding:0 20px 20px}#modal-content .post-compose{display:block}.post-compose-input{resize:vertical;width:100%;min-height:125px;max-height:40dvh;background:#f6f6f6;border:1px solid #e3e3e3;border-radius:10px;font-size:12px;padding:16px 12px;display:block}.post-compose-tools{display:flex;direction:ltr;gap:14px;align-items:center;padding:8px 8px 0}.post-compose-icon{font-size:21px;padding:0;background:none;color:#829099}.post-compose-icon:first-child{color:#151515}.post-compose-settings{margin-left:auto}.post-attachment-preview{position:relative}.post-attachment-preview img{max-width:100%;max-height:170px;display:block;margin:8px auto;border-radius:5px}.post-attachment-preview button{position:absolute;right:5px;top:5px;padding:5px 9px}.post-image{display:block;max-width:100%;max-height:380px;border-radius:6px;object-fit:contain}.post-emojis{display:flex;gap:8px;flex-wrap:wrap;padding-top:12px}.post-emoji{background:none;font-size:23px}.post-privacy-note{font-size:11px;margin:10px 0 0}

.admin-nav-group summary{cursor:pointer;list-style:none}.admin-nav-group summary::-webkit-details-marker{display:none}.admin-nav-group summary>span{flex:1}.admin-nav-group .admin-group-arrow{font-size:10px;width:auto}.admin-nav-group[open] .admin-group-arrow{transform:rotate(180deg)}.admin-page-body .admin-nav-group>a{background:#292929;padding-inline-start:45px;min-height:44px;font-size:12px}.admin-page-body .admin-nav-group>a>i{display:none}.admin-page-body .admin-nav-group[open]>summary{background:#292929}.admin-page-body .admin-nav-group>a.active{color:#00a5c4}

.user-card-popover{position:fixed;z-index:15;width:240px;border-radius:20px;background:white;box-shadow:0 1px 3px #0004;overflow:hidden;direction:rtl}.user-card-head{background:#222;color:white;display:grid;justify-items:center;gap:3px;padding:10px 15px 14px}.user-card-head>img{width:60px;height:60px;border:2px solid #fff;border-radius:50%;object-fit:cover}.user-card-head>strong{font-size:19px;color:white}.user-card-head>small{background:#83b91f;color:white;font-size:8px;padding:2px 6px;border-radius:2px}.user-card-action{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;min-height:40px;background:white;border-bottom:1px solid #eee;font-size:12px;color:#064c68}.user-card-action:last-child{border:0}.user-card-action>i{color:#03afd4;font-size:15px}.user-card-action:first-of-type>i{color:#222}.user-card-action:hover{background:#fafafa}.message .avatar[role=button]{cursor:pointer}

.tool-menu{direction:ltr;left:4px;bottom:56px;max-width:min(420px,calc(100% - 8px));padding:8px;gap:8px;border-radius:4px;border:1px solid #eee;box-shadow:0 1px 4px #0001;background:white;align-items:center}.tool-menu button{padding:0;display:grid;place-items:center;border-radius:50%;background:transparent;width:42px;height:42px;flex:none;font-size:25px;color:#00a5c4}.tool-menu button img{width:38px;height:38px;object-fit:contain}.tool-menu button:hover{background:#f5f5f5}.tool-menu button>i{font-size:25px}.tool-menu button:focus-visible{outline-offset:1px}

.people-call-panel{padding:15px;font-size:12px;line-height:1.9}.people-call-panel button{display:block;width:100%;margin:10px 0;padding:10px}.people-tabbar .people-tab{width:38px}.people-tabbar .people-tab-close{width:36px}

.youtube-search-form{display:flex!important;gap:8px}.youtube-search-form input{min-width:0;width:100%;flex:1}.youtube-search{min-height:300px}.youtube-results{max-height:55dvh;overflow:auto;padding-top:12px}.youtube-result{display:flex;gap:10px;align-items:center;text-align:start;background:white;width:100%;padding:8px 0;border-bottom:1px solid #eee}.youtube-result img{width:120px;height:68px;object-fit:cover;flex:none;border-radius:3px}.youtube-result span{display:grid;gap:5px;min-width:0}.youtube-result strong{font-size:12px;font-weight:500;line-height:1.6}.youtube-result small{font-size:10px;color:#888}.youtube-more{display:block;margin:10px auto}.youtube-results>p{font-size:12px}@media(max-width:400px){.youtube-result img{width:95px;height:55px}}

.voice-input-button{font-size:20px;color:#829099}.voice-input-button.voice-recording{color:#e22;animation:voiceblink 1s linear infinite}.voice-counter{font-size:11px;color:#d33;direction:ltr;white-space:nowrap;align-self:center}@keyframes voiceblink{50%{opacity:.3}}.account-submenu{padding:0 10px 10px}.account-submenu .account-navigation-row{min-height:42px;border:0;padding:10px 8px;font-size:12px;color:#666}.account-submenu .account-submenu-back{min-height:40px;border-bottom:1px solid #eee;margin-bottom:10px;color:#222}.account-submenu .account-submenu-back>.account-row-arrow{display:none}.account-submenu .account-submenu-back>i:first-child{font-size:12px;color:#333}.account-submenu .account-navigation-row:hover{background:#f3f3f3;border-radius:3px}.name-color-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(45px,1fr));gap:8px;padding:15px 0}.name-color-grid>button{font-size:22px;padding:8px;background-color:#f7f7f7;min-width:0;border-radius:4px}.name-color-preview{display:block;font-size:25px;text-align:center;padding:15px}.sound-switch-row{display:flex!important;align-items:center;justify-content:space-between;min-height:55px;border-bottom:1px solid #eee;font-size:13px}#modal-content .sound-switch-row input{appearance:none;width:42px;height:24px;border:0;border-radius:20px;background:#ccc;padding:0;position:relative;cursor:pointer}.sound-switch-row input:before{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:white;transition:left .1s}.sound-switch-row input:checked{background:#00add2!important}.sound-switch-row input:checked:before{left:21px}.theme-picker{display:flex;gap:12px;flex-wrap:wrap}.theme-choice{width:130px;background:transparent;padding:0}.theme-choice-preview{border:1px solid #ddd;border-radius:5px;height:95px;background:white;display:grid;text-align:start}.theme-choice-preview>span{background:#222;color:#fff;font-size:9px;padding:5px}.theme-choice-preview>div{background:#93c400;color:white;padding:8px;margin:8px;border-radius:6px;font-size:11px}.theme-choice.dark .theme-choice-preview{background:#222;border-color:#444}.theme-choice>strong{display:block;font-size:12px;padding:8px}.room-staff-tabs{margin-bottom:15px}.room-action-user{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #eee}.room-action-user>strong{flex:1;font-size:13px}

.addon-native-icon{width:40px;height:40px;object-fit:contain;flex:none;border-radius:50%}.native-addon-row{padding:12px 10px;min-height:70px}.native-addon-row .addon-details>small{font-size:10px}.native-addon-row .addon-status{display:block;margin-top:4px}.addon-integration{margin-top:18px}.addon-config-link{display:inline-block;text-decoration:none;margin:15px 0}.message-gif{display:block;max-width:min(260px,55vw);max-height:250px;border-radius:5px}

.topbar #profile-button{position:relative}.topbar #profile-button:after{content:'';position:absolute;bottom:-1px;left:-2px;background:#74b500;border:2px solid white;border-radius:50%;width:9px;height:9px;box-sizing:border-box}.modal-head{flex-direction:row-reverse}.native-addon-row .addon-details>small{display:none}.native-addon-row{min-height:65px;padding:10px}.native-addon-row .addon-status{display:inline-block;font-size:10px;margin-top:2px}

dialog .modal-head,dialog:has(.post-compose) .modal-head{flex-direction:row}dialog .modal-head h2{font-size:13px}.addon-actions .danger{background:#d90000;color:white}

.primary{background:#03add8}.stat-card strong{color:#03add8}
dialog .modal-head,dialog:has(.post-compose) .modal-head{direction:rtl;flex-direction:row}
.left-content-panel .wall-add{display:block;margin-inline-start:auto;margin-inline-end:0}
.full-profile{--profile-bg:#fff;--profile-fg:#25324a;--profile-accent:#00a9ce}
.full-profile[data-profile-style]:not([data-profile-style=""]){background:var(--profile-bg);color:var(--profile-fg);border-radius:18px;padding:24px;overflow:hidden}
.full-profile[data-profile-style="midnight"]{--profile-bg:#202535;--profile-fg:#f0f2fa;--profile-accent:#83caff}
.full-profile[data-profile-style="ocean"]{--profile-bg:linear-gradient(145deg,#ecf9ff,#dbeafb);--profile-fg:#164969;--profile-accent:#007fac}
.full-profile[data-profile-style="rose"]{--profile-bg:linear-gradient(145deg,#fff3f7,#f3deef);--profile-fg:#783752;--profile-accent:#b64379}
.full-profile[data-profile-style="forest"]{--profile-bg:linear-gradient(145deg,#effaf4,#d8eede);--profile-fg:#24553e;--profile-accent:#26804d}
.full-profile[data-profile-style]:not([data-profile-style=""]) .profile-mood{color:var(--profile-accent)}
.full-profile[data-profile-style]:not([data-profile-style=""]) .profile-avatar{border-color:var(--profile-accent)}
.profile-style-preview{border:1px solid #e5e5e5;border-radius:18px;padding:24px;min-height:210px;text-align:center}
.profile-style-preview-head{display:grid;justify-items:center;gap:8px;padding:10px}
.profile-style-preview-head img{width:60px;height:60px;border:2px solid white;border-radius:50%;object-fit:cover}
.profile-style-choices{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.profile-style-choices button[aria-pressed="true"]{outline:2px solid #03add8;outline-offset:2px}
#emoji-menu{display:block;width:min(510px,calc(100% - 12px));max-height:min(520px,65dvh);overflow:auto;left:6px;bottom:56px;padding:12px;background:#fff;border:1px solid #eee;border-radius:5px}
#emoji-menu .sticker-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
#emoji-menu .sticker-item{display:grid;place-items:center;min-width:0;height:52px;padding:8px;background:#f7f7f7;border-radius:3px}
#emoji-menu .sticker-item img{height:34px;width:34px;object-fit:contain}
#emoji-menu{width:min(510px,calc(100% - 12px));max-width:calc(100% - 12px);overflow-x:hidden;scrollbar-width:thin}
#emoji-menu .sticker-grid{width:100%}#emoji-menu .sticker-item{width:100%;overflow:hidden}
#emoji-menu{width:min(532px,calc(100% - 8px));max-width:calc(100% - 8px);padding:0;border-radius:16px;left:3px;overflow:hidden;box-shadow:0 1px 3px #0002}
.emoji-picker-header{height:40px;display:flex;direction:ltr;align-items:center;justify-content:space-between;border-bottom:1px solid #eee}
#emoji-menu .emoji-picker-close{background:transparent;width:40px;height:39px;font-size:23px;padding:0;color:#111}
.emoji-picker-tabs{display:flex;direction:rtl;height:39px}
#emoji-menu .emoji-category{height:39px;width:40px;padding:8px;border-radius:0}
.emoji-category img{height:24px;width:24px;object-fit:contain}
#emoji-menu .emoji-category[aria-selected=true]{background:#eee}
#emoji-menu .sticker-grid{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:0;max-height:180px;overflow-y:auto;overflow-x:hidden;padding:6px 10px 10px;direction:rtl;scrollbar-width:thin}
#emoji-menu .sticker-item{height:34px;padding:4px;background:transparent;border-radius:0;min-width:0}
#emoji-menu .sticker-item img{width:24px;height:24px;max-width:100%;object-fit:contain}
#emoji-menu .sticker-item:hover{background:#f2f2f2;border-radius:4px}
@media(max-width:500px){#emoji-menu .sticker-grid{grid-template-columns:repeat(10,minmax(0,1fr));max-height:220px;padding:5px}#emoji-menu .sticker-item{height:32px;padding:3px}#emoji-menu .sticker-item img{width:24px;height:24px}}
dialog:has(.profile-editor){width:min(520px,calc(100vw - 24px));border-radius:20px;max-height:94dvh}
dialog:has(.profile-editor)>.modal-head{display:none}
dialog:has(.profile-editor)>#modal-content{padding:0;overflow:auto}
dialog:has(.profile-editor)>#modal-content{max-height:94dvh;height:auto}
.profile-editor-rank{display:flex;align-items:center;justify-content:center;gap:3px}.profile-editor-rank .rank-icon{width:16px;height:16px}
.full-profile.profile-editor{direction:rtl;padding:0;border-radius:20px;overflow:hidden;text-align:right}
.profile-editor-top{position:relative;min-height:250px;background:#222;color:white;display:flex;flex-direction:column;align-items:center;padding:50px 20px 15px;isolation:isolate}
.profile-editor-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;filter:brightness(.65)}
.profile-editor-toolbar{position:absolute;top:8px;left:10px;display:flex;direction:ltr;gap:5px;align-items:center}
.profile-editor-icon{background:transparent;color:inherit;display:grid;place-items:center;width:32px;height:30px;font-size:17px}
.profile-editor-cover-actions,.profile-editor-avatar-actions{display:flex;border-radius:20px;background:#ffffff25;overflow:hidden;direction:ltr}
.profile-editor-avatar{position:relative;width:100px;height:100px;margin-bottom:10px}
.profile-editor-avatar>img{height:100%;width:100%;object-fit:cover;border-radius:50%;border:2px solid white}
.profile-editor-avatar-actions{position:absolute;bottom:8px;left:16px;background:#3338}
.profile-editor-avatar-actions button{width:32px;height:24px;font-size:13px}
.profile-editor-rank{font-size:11px}.profile-editor-name{font-size:24px;line-height:1.4}
.profile-editor-music{background:#ffffff16;color:white;border-radius:18px;font-size:11px;padding:5px 10px;margin-top:5px}
.profile-editor-tabs{display:flex;direction:rtl;justify-content:center;gap:8px;background:#f5f5f5;padding:10px}
.profile-editor-tabs button{font-size:12px;padding:9px 12px;background:transparent;border-radius:4px;color:#333}
.profile-editor-tabs button[aria-selected=true]{background:#e5e5e5}
.profile-editor-list{padding:15px 25px 25px;background:white;color:#333}
.profile-editor-row{display:flex;direction:rtl;align-items:center;gap:12px;min-height:41px;background:transparent;width:100%;border-bottom:1px solid #eee;text-align:right;font-size:12px;color:inherit}
.profile-editor-row:last-child{border:0}.profile-editor-row>i{width:20px;text-align:center;font-size:14px}
.profile-editor-row:hover{background:#f7f7f7}.profile-edit-form{direction:rtl;display:grid;gap:16px}
.profile-edit-form>label{display:grid;gap:8px;font-size:12px}.profile-edit-form input,.profile-edit-form select,.profile-edit-form textarea{width:100%;min-width:0}.profile-edit-form textarea{min-height:120px}
.profile-edit-form>.primary{justify-self:start;min-width:80px;padding:10px 18px;border-radius:4px}
@media(max-width:500px){dialog:has(.profile-editor){max-height:94dvh}.profile-editor-list{padding:12px 20px 20px}.profile-editor-top{min-height:235px;padding-top:45px}}
.room-mic-strip{display:flex;align-items:center;direction:rtl;gap:8px;flex:none;min-height:36px;max-height:78px;padding:5px 12px;border-bottom:1px solid #eee;background:#fff}
.mic-strip-title{font-size:11px;color:#82909a;white-space:nowrap}.mic-strip-toggle{background:transparent;color:#82909a;font-size:11px;padding:7px}
.mic-seats{display:flex;gap:10px;min-width:0;overflow-x:auto;flex:1;justify-content:center;scrollbar-width:thin}
.mic-seat{background:transparent;display:grid;justify-items:center;align-content:start;gap:3px;width:48px;min-width:40px;color:#9aa4ad;padding:3px 0;opacity:1!important;cursor:pointer}
.mic-seat>i,.mic-seat>img{width:29px;height:29px;border-radius:50%;background:#f2f5f6;display:grid;place-items:center;font-size:15px;object-fit:cover}
.mic-seat.occupied{color:#03a6c9}.mic-seat.mine>i,.mic-seat.mine>img{background:#e4f8fb;outline:1px solid #03add8}
.mic-seat small{font-size:9px;white-space:nowrap;max-width:48px;overflow:hidden;text-overflow:ellipsis}.mic-leave{font-size:10px;color:#d33;background:#fff0f0;border-radius:4px;padding:5px 8px}
.audio-group-panel{position:fixed!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);pointer-events:none}
.mic-settings-form{max-width:650px;display:grid;gap:16px}.mic-settings-form>label:not(.mic-room-choice){display:grid;gap:8px}.mic-room-choice{display:flex!important;align-items:center;justify-content:space-between;border-bottom:1px solid #eee;padding:10px 0}.mic-room-choice input{width:18px;height:18px}.mic-settings-form>.primary{justify-self:start;padding:10px 25px;border-radius:4px}
@media(max-width:500px){.room-mic-strip{padding:4px 6px;gap:4px}.mic-seats{gap:5px}.mic-seat{min-width:35px;width:38px}.mic-strip-title{display:none}}
dialog:has(.profile-view),dialog:has(.profile-editor){width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 20px);border-radius:20px;overflow:auto;scrollbar-width:none}
dialog:has(.profile-view)::-webkit-scrollbar,dialog:has(.profile-editor)::-webkit-scrollbar{display:none}
dialog:has(.profile-view)>.modal-head{display:none}
dialog:has(.profile-view)>#modal-content,dialog:has(.profile-editor)>#modal-content{padding:0;height:auto;max-height:none;overflow:visible}
.full-profile.profile-view{padding:0;overflow:hidden;border-radius:20px;direction:rtl}
.profile-view .profile-editor-top{min-height:215px;padding-top:46px}
.profile-view-avatar{position:relative;width:100px;height:100px;margin-bottom:10px}
.profile-view-avatar>img{width:100%;height:100%;border:2px solid white;object-fit:cover;border-radius:50%}
.profile-presence{position:absolute;bottom:3px;right:3px;background:#999;border:2px solid white;border-radius:50%;height:21px;width:21px}.profile-presence.online{background:#86bb08}
.profile-information{background:#fff;color:#063c59;padding:20px 14px}
.profile-information-row{display:flex;align-items:center;gap:12px;justify-content:space-between;min-height:41px;border-bottom:1px solid #eee;font-size:12px}
.profile-information-row:last-child{border:0}.profile-information-row>span:first-child{display:flex;align-items:center;gap:10px;white-space:nowrap}.profile-information-row i{width:18px;text-align:center}.profile-information-row>span:last-child{flex:1;text-align:center;overflow-wrap:anywhere}
.profile-friends,.profile-view .profile-badges,.profile-gift-grid{padding:20px;background:white}.profile-friend-row{width:100%;display:flex;align-items:center;gap:10px;background:transparent;padding:10px;border-bottom:1px solid #eee}.profile-friend-row>img:first-child{width:35px;height:35px;border-radius:50%}.profile-friend-row>strong{flex:1;text-align:start}
.profile-view-actions{display:flex;gap:12px;justify-content:center;padding:10px;border-top:1px solid #eee;background:white;color:#04abd0}.profile-view>audio{width:calc(100% - 30px);margin:10px 15px}
@media(max-height:740px){.profile-editor-top{min-height:195px;padding-top:38px}.profile-editor-avatar,.profile-view-avatar{height:80px;width:80px}.profile-editor-row{min-height:35px}.profile-editor-list{padding-top:8px;padding-bottom:12px}.profile-editor-tabs{padding:6px}.profile-view .profile-editor-top{min-height:195px;padding-top:38px}.profile-information{padding-top:8px;padding-bottom:8px}.profile-information-row{min-height:36px}}
.layout>.rail{display:flex}.layout.rail-hidden>.rail{display:none}
@media(max-width:600px){.topbar{height:55px;padding:0 10px}.topbar .brand strong,.topbar .brand-icon{display:none}.topbar .brand{gap:0}.header-actions{gap:13px}.header-actions .icon{font-size:21px;padding:4px}.topbar #profile-button{width:38px;height:38px}.layout{height:calc(100dvh - 105px)}.bottom-bar{height:50px}.people{top:55px;bottom:50px;width:min(320px,calc(100vw - 80px))}.composer{min-height:55px;padding:5px 8px;gap:5px}.composer #message-input{min-width:0}.message .avatar{height:40px;width:40px}.message-scroll{padding:10px}.bottom-bar #bottom-menu{font-size:23px}.people-tabs{min-height:45px}}

.wall-empty-icon{width:65px;height:65px;object-fit:contain}

@media(max-width:600px){.layout>.rail{display:none}.layout.rail-open>.rail{display:flex}}
.statistics-heading{display:flex;align-items:center;justify-content:space-between}.statistics-updated{font-size:11px;color:#888}.statistics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.statistics-card{display:flex;direction:rtl;background:#f1f1f1;border-radius:5px;overflow:hidden;min-height:74px}.statistics-card>i{width:70px;display:grid;place-items:center;background:#03add8;color:white;font-size:28px;flex:none}.statistics-card>div{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:10px 14px}.statistics-card small{font-size:11px;color:#666}.statistics-card strong{font-size:25px;color:#222}.statistics-section{padding:20px;background:white;border:1px solid #eee;border-radius:6px;margin-top:20px;min-width:0}.statistics-section h3{font-size:14px;margin-top:0}.statistics-table{width:100%;border-collapse:collapse;font-size:12px}.statistics-table th,.statistics-table td{text-align:start;padding:12px;border-bottom:1px solid #eee}.statistics-table td:nth-child(2){position:relative;min-width:90px}.daily-bar{height:4px;background:#03add8;display:block;margin-top:7px;border-radius:3px}.statistics-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.statistics-detail-row{display:flex;gap:15px;justify-content:space-between;padding:10px 0;border-bottom:1px solid #eee;font-size:12px}.statistics-detail-row strong{overflow-wrap:anywhere}.agora-settings{padding:20px;border:1px solid #e8e8e8;border-radius:6px;background:white;max-width:700px;margin-bottom:20px}.agora-config-form{display:grid;gap:15px;margin-top:20px}.agora-config-form label{display:grid;gap:8px}.agora-config-form input{direction:ltr;text-align:left}.agora-config-form p{font-size:12px;color:#888;line-height:1.9}.agora-config-form>.primary{justify-self:start;padding:12px 20px;border-radius:5px}.agora-settings>.danger{margin-top:15px;padding:10px 15px;border-radius:4px}
@media(max-width:800px){.statistics-detail-grid{grid-template-columns:1fr}.statistics-card>i{width:50px;font-size:22px}}@media(max-width:430px){.statistics-grid{grid-template-columns:1fr}.statistics-section{padding:12px}.statistics-table td,.statistics-table th{padding:10px 5px}}
.chat-weight-bold{font-weight:700}.chat-weight-heavybold{font-weight:900}.chat-weight-ital{font-style:italic}.chat-weight-boldital{font-weight:700;font-style:italic}.chat-weight-heavyital{font-weight:900;font-style:italic}
dialog:has(.bubble-settings){width:min(400px,calc(100vw - 20px));border-radius:20px;max-height:96dvh}
dialog:has(.bubble-settings)>#modal-content{padding:0 22px 20px;max-height:calc(96dvh - 60px);scrollbar-width:none}
.bubble-settings{display:grid;direction:rtl;gap:12px}.bubble-settings>p{margin:0;color:#333!important;font-size:12px}.bubble-settings .bubble-example{justify-self:start;margin:0 0 8px;min-width:0;padding:10px;font-size:16px;direction:ltr}
.bubble-tabs{display:flex;justify-content:flex-start;gap:4px}.bubble-tabs button{padding:12px;background:transparent;border-radius:3px;font-size:12px}.bubble-tabs button[aria-selected=true]{background:#e9e9e9}
.bubble-settings .bubble-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;padding:0;direction:ltr}.bubble-settings .bubble-swatch{width:100%;height:46px;border:0;border-radius:0}
.bubble-font-selects{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:3px 0 10px}.bubble-font-selects label{font-size:12px;display:grid;gap:10px}.bubble-font-selects select{width:100%;min-width:0;direction:ltr;text-align:center;padding:12px 5px}.bubble-reset{justify-self:start;background:transparent;color:#888;font-size:11px;padding:0}.bubble-settings>.primary{justify-self:start;padding:14px 20px;border-radius:5px}
.full-profile[data-profile-style="coralrush"]{--profile-bg:#fff;--profile-fg:#063c59;--profile-accent:#c74740;box-shadow:0 0 22px #ff5c5c77;border:1px solid #ff8f8f}
.full-profile[data-profile-style="coralrush"] .profile-editor-tabs{background:linear-gradient(#bd4b43,#973630);color:white}
.full-profile[data-profile-style="coralrush"] .profile-editor-tabs button{color:white}.full-profile[data-profile-style="coralrush"] .profile-editor-tabs button[aria-selected=true]{background:#ffffff15}
.profile-style-gallery{padding:4px 5px 0}.profile-theme-preview.full-profile{max-width:400px;margin:0 auto;padding:0;border-radius:20px;overflow:hidden;direction:rtl;background:#fff;border:1px solid #ddd;text-align:center}
.profile-theme-preview .profile-editor-top{min-height:145px;padding:40px 12px 12px;gap:2px}.profile-theme-preview .profile-editor-top>img{height:60px;width:60px;border-radius:50%;border:2px solid white}.profile-theme-preview .profile-editor-top>small{font-size:10px}.profile-style-name{position:absolute;top:12px;right:15px;background:#ffffff22;border-radius:5px;font-size:11px;padding:5px 8px}
.profile-theme-preview .profile-editor-tabs{gap:20px;font-size:11px}.profile-theme-preview .profile-information{padding:15px 25px}.profile-theme-preview .profile-information-row{font-size:11px;min-height:40px}.profile-theme-preview .profile-style-select{display:block;margin:10px auto 20px;padding:10px 24px;border-radius:4px;font-size:12px}
.profile-style-navigation{display:flex;direction:ltr;justify-content:center;align-items:center;gap:15px;margin:25px 0 5px}.profile-style-navigation button{width:38px;height:38px;border-radius:12px;background:#f2f2f2;color:#03a8cd;font-size:16px}.profile-style-navigation small{font-size:11px;color:#888}
.full-profile[data-profile-style="ocean"] .profile-editor-tabs{background:#087ca6;color:white}.full-profile[data-profile-style="rose"] .profile-editor-tabs{background:#b64379;color:white}.full-profile[data-profile-style="forest"] .profile-editor-tabs{background:#26804d;color:white}.full-profile[data-profile-style="midnight"] .profile-editor-tabs{background:#30394f;color:white}
.private-window{position:fixed;right:0;bottom:36px;width:400px;height:400px;max-width:100vw;z-index:14;background:white;display:flex;flex-direction:column;direction:rtl;box-shadow:0 0 4px #0002;border:1px solid #ddd}
.private-header{height:40px;background:#272727;color:white;display:flex;direction:ltr;align-items:center;justify-content:space-between;padding:0 8px;flex:none}
.private-header-actions{display:flex;gap:4px}.private-header .icon{font-size:14px;padding:7px}.private-identity{display:flex;align-items:center;gap:7px;color:white;background:transparent;font-size:16px;min-width:0;padding:0}.private-identity img{height:30px;width:30px;border-radius:50%;object-fit:cover}
.private-messages{flex:1;overflow:auto;min-height:0;padding:8px;display:flex;flex-direction:column;gap:8px}.private-messages>.message:first-child{margin-top:auto}.private-messages .message{margin:0}.private-messages .message-content{max-width:calc(100% - 40px);flex:1}.private-messages .avatar{height:30px;width:30px;font-size:12px}.private-messages .bubble{font-size:12px;padding:8px;max-width:100%}.private-messages .message-meta{font-size:10px}.private-composer{min-height:49px;flex:none;padding:4px;gap:3px}.private-composer input{min-width:0;flex:1;width:0;padding:10px;font-size:12px}.private-composer .icon,.private-composer .send{font-size:18px;padding:5px}
.private-settings{position:absolute;top:42px;left:4px;width:220px;z-index:2;border-radius:10px;background:white;box-shadow:0 1px 4px #0003;overflow:hidden}.private-setting-row{width:100%;text-align:start;min-height:50px;border-bottom:1px solid #eee;background:white;font-size:11px;padding:12px;color:#087b9e}.private-settings button:hover{background:#f5f5f5}
.private-window.expanded{position:relative;inset:auto;z-index:6;flex:0 0 360px;height:100%;width:360px;max-width:100%}.private-window.minimized{height:40px;flex:none;position:fixed;right:0;bottom:36px;width:400px}.private-window.minimized>:not(.private-header){display:none}
.private-emojis{position:absolute;bottom:50px;left:2px;right:2px;background:white;border:1px solid #eee;border-radius:10px;max-height:220px;overflow:auto;padding:5px}.private-emoji-tabs{display:flex;gap:5px;justify-content:flex-start;padding:5px}.private-emoji-tabs button{font-size:10px;padding:6px}.private-emoji-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr))}.private-emoji-grid button{background:transparent;padding:4px;min-width:0}.private-emoji-grid img{width:24px;height:24px;max-width:100%;object-fit:contain}
@media(max-width:800px){.private-window.expanded{position:fixed;top:50px;bottom:36px;right:0;width:min(600px,100vw);height:auto}}@media(max-width:600px){.private-window,.private-window.minimized{bottom:50px}.private-window{width:min(400px,100vw);max-height:calc(100dvh - 105px)}.private-window.expanded{top:55px;bottom:50px;width:100%;height:auto}.private-window.minimized{top:auto;height:40px;max-height:40px}}
.mic-admin-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.mic-admin-columns>.mic-settings-form{max-width:none;width:100%;background:white;border:1px solid #e8e8e8;border-radius:6px;padding:20px}.mic-admin-columns .agora-settings{max-width:none;width:100%;margin:0}.mic-admin-columns input,.mic-admin-columns select{width:100%;min-width:0}.mic-admin-columns .mic-room-choice input{width:20px}.mic-admin-columns>div,.mic-admin-columns>form{min-width:0}
@media(max-width:900px){.mic-admin-columns{grid-template-columns:1fr;gap:15px}.mic-admin-columns .agora-settings,.mic-admin-columns>.mic-settings-form{padding:15px}}
/* Compact contextual message actions, bounded within mobile viewport. */
.message-options{position:fixed;z-index:1200;width:202px;padding:5px 0;background:#fff;color:#333;border:1px solid #eee;border-radius:17px;box-shadow:0 2px 3px #0003;direction:rtl}
.message-option{display:flex;align-items:center;gap:12px;width:100%;padding:10px 16px;background:transparent;text-align:right;color:inherit;min-height:42px}
.message-option:hover,.message-option:focus-visible{background:#f4f4f4}.message-option i{color:#00afd0;width:18px;text-align:center}.message-option span{display:grid;gap:2px}.message-option strong{font-size:12px;font-weight:400}.message-option small{font-size:10px;color:#888}
.admin-content{min-width:0;overflow-wrap:anywhere}.admin-content>form{background:#fff;border:1px solid #e8e8e8;border-radius:7px;padding:22px;margin:14px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px}.admin-content>form>button{justify-self:start;align-self:end}.admin-content input,.admin-content select,.admin-content textarea{max-width:100%;min-width:0}.admin-content .admin-user{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px;margin:8px 0;background:#fff;border:1px solid #e6e6e6;border-radius:7px}.admin-content .admin-user .name-button{font-weight:700;margin-inline-end:auto}.admin-content .admin-user select{width:150px}.admin-content>.room-card{margin:6px;max-width:100%}
@media(max-width:700px){.admin-content>form{grid-template-columns:1fr;padding:15px;gap:12px}.admin-content .admin-user{gap:8px;padding:12px}.admin-content .admin-user .name-button{flex-basis:60%}.admin-content .admin-user select{width:100%}}
.wall-post{border:0;border-bottom:1px solid #e7e7e7;border-radius:0;padding:22px 10px;background:#fff}.wall-post-head{display:flex;align-items:center;gap:7px;position:relative}.wall-post-head .avatar{width:36px;height:36px;background:#ccc}.wall-post-head>div:nth-child(2){display:grid;gap:3px}.wall-post-head .name-button{text-align:right;font-weight:700}.wall-post-head .post-time{font-size:10px;color:#888}.wall-post .post-body{line-height:1.8;margin:15px 0}.post-more{margin-inline-start:auto;background:transparent;font-size:20px}.post-options{position:absolute;inset-inline-end:0;top:35px;z-index:2;background:#fff;border:1px solid #eee;border-radius:9px;padding:8px;box-shadow:0 2px 5px #0002}.wall-reactions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start;margin:12px 0}.wall-reaction{background:transparent;color:#777;padding:3px;border-radius:20px}.wall-reaction.selected{background:#def5fc;outline:1px solid #00afd0}.wall-comment-form input{border-radius:24px;width:100%;padding:12px;background:#f7f7f7}.wall-comment{background:#f6f6f6;padding:8px;border-radius:8px;overflow-wrap:anywhere}
.statistics-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.statistics-card{min-height:64px;padding:0;border-radius:7px;overflow:hidden;background:#fff;border:1px solid #e7e7e7;gap:10px}.statistics-card>i{width:48px;min-width:48px;height:64px;display:grid;place-items:center;font-size:22px}.statistics-card>div{padding:7px;min-width:0}.statistics-card strong{font-size:23px;line-height:1.15}.statistics-card small{font-size:11px}.statistics-heading h3{margin:0}.statistics-updated{font-size:11px;margin:7px 0 12px}.statistics-mini-chart{background:#fff;border:1px solid #e7e7e7;border-radius:7px;padding:12px 18px;margin-top:14px}.statistics-mini-chart h3{font-size:13px;margin:0 0 7px}.statistics-mini-chart svg{display:block;width:100%;height:130px;direction:ltr}.statistics-section{padding:15px}.statistics-section h3{font-size:14px}.statistics-detail-grid{gap:12px}
@media(max-width:1200px){.statistics-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:900px){.statistics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.statistics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.statistics-card>i{width:35px;min-width:35px;font-size:18px;height:60px}.statistics-card{gap:3px;min-height:60px}.statistics-card strong{font-size:21px}.statistics-card small{font-size:10px}.statistics-mini-chart{padding:10px}.statistics-mini-chart svg{height:110px}.statistics-detail-grid{grid-template-columns:1fr}}
/* Permission pages retain Cody's full-width tabs and fields. */
.admin-content>form.permission-form{display:block;padding:0;border:0;background:transparent;margin:10px 0}.permission-form .permission-tabs{background:white;padding:10px 15px;gap:5px;direction:ltr;flex-wrap:wrap;overflow:visible;border:1px solid #e7e7e7;margin-bottom:8px}.permission-form .permission-tab{padding:9px 18px;border:0;border-radius:4px;font-size:12px;color:#333}.permission-form .permission-tab.active{background:#ececec;color:#111}.permission-form .permission-panel{background:white;border:1px solid #e7e7e7;padding:20px}.permission-panel>section{display:block}.permission-form .permission-row{display:flex!important;flex-direction:column;gap:10px!important;margin:0;padding:12px 0;line-height:1.5;direction:rtl;text-align:right}.permission-form .permission-row select{display:block;width:100%;height:45px;background:#f7f7f7;border:1px solid #e5e5e5;border-radius:5px;padding:10px}.permission-form>.primary{margin-top:12px;padding:12px 28px}.permission-label{font-size:12px}.wall-reaction{display:inline-flex;align-items:center;gap:5px;font-size:12px}.wall-reaction i{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;color:#fff;font-size:12px}.wall-reaction.like i{background:#6c8bcd}.wall-reaction.dislike i{background:#c3232c}.wall-reaction.love i{background:#dd64ac}.wall-reaction.laugh i{background:#ffd74e;color:#202020;font-size:17px}.wall-post-head .avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
@media(max-width:600px){.permission-form .permission-tabs{padding:8px;gap:2px;justify-content:space-between}.permission-form .permission-tab{padding:9px 11px}.permission-form .permission-panel{padding:12px}.permission-form .permission-row{padding:10px 0}}
.room-list-picture img{width:100%;height:100%;object-fit:cover;border-radius:5px}.room-has-background{background-size:cover;background-position:center;background-repeat:no-repeat}.room-images-settings{background:#fff;border:1px solid #e7e7e7;padding:18px;margin:12px 0;border-radius:6px}.room-image-setting{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid #eee}.room-image-setting>strong{min-width:180px}.room-image-preview{width:64px;height:64px;object-fit:cover;border:1px solid #eee;border-radius:7px}.room-images-settings>small{display:block;color:#888;margin-top:12px}@media(max-width:600px){.room-image-setting>strong{flex-basis:100%}.room-images-settings{padding:12px}}
/* Four lightweight themes: CSS backgrounds only, no image downloads or animation. */
body[data-theme=Colors]{--chat-accent:#0e9bb4}body[data-theme=Gradient]{--chat-accent:#7059c6}body[data-theme=Geometry]{--chat-accent:#257d79}body[data-theme=Planets]{--chat-accent:#9073d9}
body[data-theme=Colors] .topbar,body[data-theme=Colors] .bottom-bar{background:#126579}body[data-theme=Colors] #message-scroll,.theme-choice[data-chat-theme=Colors] .theme-choice-preview{background-color:#f0f9fc;background-image:radial-gradient(circle at 10% 20%,#dceef9 0 15%,transparent 16%),radial-gradient(circle at 90% 80%,#f6e7ed 0 18%,transparent 19%)}
body[data-theme=Gradient] .topbar,body[data-theme=Gradient] .bottom-bar{background:linear-gradient(110deg,#3b477d,#6e4f92)}body[data-theme=Gradient] #message-scroll,.theme-choice[data-chat-theme=Gradient] .theme-choice-preview{background-image:linear-gradient(135deg,#eee8fa,#e4f3f8 55%,#faedf3)}
body[data-theme=Geometry] .topbar,body[data-theme=Geometry] .bottom-bar{background:#183c40}body[data-theme=Geometry] #message-scroll,.theme-choice[data-chat-theme=Geometry] .theme-choice-preview{background-color:#f0f5f3;background-image:linear-gradient(30deg,#c9ded533 12%,transparent 12.5%,transparent 87%,#c9ded533 87.5%),linear-gradient(150deg,#c9ded533 12%,transparent 12.5%,transparent 87%,#c9ded533 87.5%);background-size:64px 112px}
body[data-theme=Planets] .topbar,body[data-theme=Planets] .bottom-bar{background:#191e3e}body[data-theme=Planets] #message-scroll,.theme-choice[data-chat-theme=Planets] .theme-choice-preview{background-color:#eef0fa;background-image:radial-gradient(circle at 85% 18%,#c8c1e9 0 35px,transparent 36px),radial-gradient(circle at 12% 75%,#cbdce9 0 55px,transparent 56px),radial-gradient(circle,#aaaaca 1px,transparent 2px);background-size:auto,auto,70px 70px}
body:is([data-theme=Colors],[data-theme=Gradient],[data-theme=Geometry],[data-theme=Planets]) .primary{background:var(--chat-accent)}body:is([data-theme=Colors],[data-theme=Gradient],[data-theme=Geometry],[data-theme=Planets]) .bubble{box-shadow:0 1px 3px #17223412}.theme-choice-preview{height:95px;border-radius:8px;display:grid;align-content:space-between;padding:12px}.theme-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.theme-choice{padding:10px;border:1px solid #eee;border-radius:10px;background:#fff}.theme-choice strong{display:block;margin-top:9px}
.bubble.bubble-none{background:transparent!important;background-image:none!important;color:inherit!important;box-shadow:none!important;border-color:transparent!important}.bubble-reset.no-color-choice{border:1px dashed #aaa;border-radius:5px;color:#555;padding:7px 14px;margin:10px 0}
.admin-room-list{display:grid;gap:10px;margin:16px 0}.admin-room-row{display:flex;align-items:center;gap:14px;padding:16px;background:#fff;border:1px solid #e7e7e7;border-radius:7px}.admin-room-picture{width:52px;height:52px;flex:none;display:grid;place-items:center;background:#edf7f9;color:#00a8c5;border-radius:7px;font-size:23px;overflow:hidden}.admin-room-picture img{width:100%;height:100%;object-fit:cover}.admin-room-info{display:grid;gap:6px;flex:1;min-width:0}.admin-room-info small{color:#888}.admin-room-actions{display:flex;gap:7px}.admin-room-actions button{padding:10px 13px;border-radius:5px}@media(max-width:600px){.admin-room-row{gap:10px;padding:12px}.admin-room-picture{width:42px;height:42px}.admin-room-actions button{padding:10px}.admin-room-info strong{font-size:13px}}
.member-picker{display:grid;gap:8px;position:relative;min-width:0;grid-column:1/-1}.member-picker>small,.settings-help{color:#777;font-size:12px;line-height:1.8}.member-picker input{width:100%}.member-picker-results{display:grid;max-height:240px;overflow:auto;gap:3px}.member-picker-result,.member-picker-selected{display:flex;align-items:center;gap:10px;padding:9px 12px;background:#f8f8f8;border:1px solid #eee;border-radius:6px;text-align:right}.member-picker-result:hover{background:#e9f7fa}.member-picker img{width:34px;height:34px;border-radius:50%;object-fit:cover}.member-picker-selected{background:#edf8f2}.member-picker-selected small{color:#398367}.member-picker-selected button{margin-inline-start:auto}.admin-content>form>h4{grid-column:1/-1;margin:0;border-bottom:1px solid #eee;padding-bottom:12px;font-size:15px}.settings-help{background:#f0f8fb;padding:12px 16px;border-radius:6px}
.admin-section-back{background:transparent;color:white;padding:8px 10px;font-size:18px}.settings-back{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;margin-bottom:10px;border-radius:5px;color:#007f9a;background:#eef8fb}
.inline-chat-sticker{display:inline-block;width:27px;height:27px;object-fit:contain;vertical-align:middle;margin:1px 2px}
@media(max-width:600px){
 body:has(#shell:not([hidden])){margin:0;padding:0;width:100%;overflow:hidden}#shell{width:100%;margin:0;padding:0;max-width:none}.topbar{height:44px;padding:0 6px}.header-actions{gap:9px}.header-actions .icon{font-size:19px;min-width:32px;min-height:36px;padding:5px}.topbar #profile-button{width:32px;height:32px}.layout{height:calc(100dvh - 80px - env(safe-area-inset-bottom));width:100%;margin:0;padding:0}.conversation{margin:0;border-radius:0}.bottom-bar{height:calc(36px + env(safe-area-inset-bottom));padding:0 6px env(safe-area-inset-bottom)}.bottom-bar #bottom-menu{font-size:21px;min-width:36px;min-height:34px}.message-scroll{padding:4px 5px}.composer{height:46px;min-height:46px;padding:4px 3px;gap:3px}.composer input{height:35px;padding:7px 10px;font-size:13px}.composer .icon,.composer .send{padding:5px;font-size:21px;min-width:30px}.people{top:44px;bottom:calc(36px + env(safe-area-inset-bottom));width:min(300px,calc(100vw - 65px))}.room-mic-strip{min-height:32px;padding:3px 5px}.mic-seat>i,.mic-seat>img{width:25px;height:25px;font-size:13px}.mic-seat{padding:1px 0}.private-window,.private-window.minimized{bottom:calc(36px + env(safe-area-inset-bottom));max-height:calc(100dvh - 80px)}.private-window{width:100%;right:0;border-radius:0}.private-window.expanded{top:44px;bottom:calc(36px + env(safe-area-inset-bottom))}
 dialog,dialog:has(.profile-view),dialog:has(.profile-editor),dialog:has(.bubble-settings){width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:12px}.modal-head{padding:10px 12px;min-height:42px}.modal-head h2{font-size:14px}#modal-content{padding:12px;max-height:calc(100dvh - 70px)}dialog:has(.bubble-settings)>#modal-content{padding:0 14px 14px;max-height:calc(100dvh - 70px)}.profile-editor-top,.profile-view .profile-editor-top{min-height:185px;padding-top:34px}.profile-editor-list{padding:8px 14px 14px}.profile-editor-list button{min-height:43px}.profile-editor-tabs{min-height:40px}.profile-information{padding:12px 14px}.full-profile.profile-view{border-radius:12px}.bubble-grid{gap:0}.bubble-swatch{height:36px}.bubble-font-selects select{padding:8px;font-size:12px}
}
:root{--chat-header-height:50px;--chat-footer-height:36px}.account-menu{top:var(--chat-header-height)}.private-settings{top:40px}.profile-subsection-head{display:flex;align-items:center;gap:10px;padding:8px 14px;border-bottom:1px solid #eee}.profile-subsection-head .settings-back{margin:0;padding:8px 10px}.profile-editor-body>.profile-edit-form,.profile-editor-body>.profile-privacy{padding:14px 20px 20px}.profile-editor-body .profile-edit-form{display:grid;gap:12px}.profile-editor-body .profile-edit-form>label{display:grid;gap:7px}.profile-editor-body .profile-edit-form>.primary{justify-self:start}
@media(max-width:600px){:root{--chat-header-height:44px;--chat-footer-height:calc(36px + env(safe-area-inset-bottom))}.account-menu{top:var(--chat-header-height);right:4px;max-width:calc(100vw - 8px);max-height:calc(100dvh - var(--chat-header-height) - var(--chat-footer-height))}.rooms-panel{top:var(--chat-header-height);bottom:var(--chat-footer-height);left:0;right:0;width:100%;max-width:100%;margin:0;box-shadow:none}.layout.rail-open .rooms-panel{left:42px;width:calc(100% - 42px)}.people{top:var(--chat-header-height);bottom:var(--chat-footer-height)}.profile-editor-body>.profile-edit-form,.profile-editor-body>.profile-privacy{padding:12px 14px}.profile-subsection-head{padding:7px 12px}}
/* Refined shared surfaces, lightweight and responsive. */
.welcome{background:radial-gradient(ellipse at 85% 15%,#d9f3f5,transparent 45%),radial-gradient(ellipse at 10% 90%,#e4e7fb,transparent 48%),#f7f9fc;gap:clamp(32px,7vw,110px)}.welcome-brand h1{letter-spacing:-1.5px;color:#172d3a}.welcome-brand p{color:#667a87;font-size:16px}.auth-card{width:390px;max-width:100%;border:1px solid #fff;border-radius:22px;padding:32px;box-shadow:0 20px 65px #243c5612}.auth-card input,.auth-card select{width:100%;display:block;margin-top:8px;background:#f7f9fc;border-color:#e1e7ee;min-height:45px;border-radius:10px}.auth-tabs{gap:8px;background:#f1f5f8;border:0;padding:4px;border-radius:12px}.auth-tabs button{flex:1;border:0;border-radius:9px;padding:11px;color:#647580}.auth-tabs button.active{background:#fff;color:#078ba6;box-shadow:0 2px 8px #1839530b;border:0}.auth-card .primary{background:#079bb5;border-radius:10px;min-height:46px}.auth-card .secondary{width:100%;margin-top:10px;border-radius:10px;background:#eaf5f8;color:#14768b}.account-menu{border:1px solid #e6ebef;box-shadow:0 12px 30px #142c421a;border-radius:0 0 14px 14px}.account-menu>button:hover{background:#eff7fa}.people{border-color:#e8edf1}.people-tabs{border-color:#e8edf1}.room-card{border:1px solid #edf0f3;border-radius:10px}.room-card:hover{background:#eff8fa}.composer input{border-color:#e3e8ed}.modal-head{border-color:#e9edf2}.secondary{border-radius:8px}.admin-room-row,.statistics-section,.statistics-mini-chart,.statistics-card{border-color:#e5eaf0;border-radius:11px}.admin-content>form{border-radius:11px}.admin-content input:focus,.admin-content select:focus,.auth-card input:focus,.auth-card select:focus{border-color:#149fb8;box-shadow:0 0 0 3px #149fb815}button:focus-visible{outline:2px solid #149fb8;outline-offset:3px}
@media(max-width:600px){.welcome{min-height:100dvh;padding:24px 16px;gap:22px;justify-content:center}.welcome-brand h1{font-size:30px}.welcome-brand p{display:block;font-size:13px;margin:8px 0 0}.auth-card{padding:22px;width:100%;max-width:390px;border-radius:18px}.auth-card h2{margin:20px 0;font-size:19px}.auth-card label{margin:13px 0}.account-menu{border-radius:0 0 12px 12px}.composer input{font-size:16px}.profile-edit-form input,.profile-edit-form select{font-size:16px}.topbar .brand strong{font-size:18px}.admin-room-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}
dialog.header-popover{position:fixed;margin:0;right:auto;bottom:auto;max-width:calc(100vw - 8px);border-radius:0 0 12px 12px;border:1px solid #e1e7ed;box-shadow:0 12px 30px #172b4526;z-index:1100}dialog.header-popover .modal-head{min-height:40px;padding:9px 12px}dialog.header-popover .modal-head h2{font-size:13px}dialog.header-popover #modal-content{max-height:min(420px,calc(100dvh - 130px));padding:12px;overflow:auto}dialog.header-popover #modal-content>div>p{text-align:center;padding:24px 6px;margin:0;font-size:12px}dialog.header-popover .notification-item{padding:8px 0;border-bottom:1px solid #edf0f3}
.topbar{height:var(--chat-header-height);min-height:var(--chat-header-height);max-height:var(--chat-header-height);flex-shrink:0;flex-wrap:nowrap}.topbar .brand,.header-actions{min-width:0;flex-wrap:nowrap}.topbar .brand strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-actions{flex-shrink:0}.modal-head{height:44px;min-height:44px;max-height:44px;flex-shrink:0;gap:10px;flex-wrap:nowrap}.modal-head h2{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.modal-head>.icon{flex:none;width:30px;height:30px;font-size:22px;padding:3px}dialog:has(.youtube-search),dialog:has(.giphy-search){width:min(620px,calc(100vw - 16px))}.youtube-search-form,.giphy-search form{display:flex!important;gap:8px}.youtube-search-form input,.giphy-search form input{flex:1;min-width:0;width:0}.youtube-search-form button,.giphy-search form button{flex:none}.youtube-result{max-width:100%;min-width:0}.youtube-result>span{min-width:0;overflow-wrap:anywhere}.youtube-result img{max-width:35%;height:auto;object-fit:cover}.giphy-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.giphy-result{min-width:0;max-width:100%;padding:0;overflow:hidden}.giphy-result img{width:100%;max-width:100%;height:100px;object-fit:cover}
@media(max-width:600px){dialog:has(.youtube-search),dialog:has(.giphy-search){position:fixed;top:var(--chat-header-height);bottom:auto;left:4px;right:auto;margin:0;width:calc(100vw - 8px);max-width:calc(100vw - 8px);max-height:calc(100dvh - var(--chat-header-height) - var(--chat-footer-height) - 4px);border-radius:0 0 12px 12px}dialog:has(.youtube-search) #modal-content,dialog:has(.giphy-search) #modal-content{max-height:calc(100dvh - var(--chat-header-height) - var(--chat-footer-height) - 52px);padding:10px}.youtube-search-form input,.giphy-search form input{font-size:16px}.header-actions{gap:5px}.giphy-results{grid-template-columns:repeat(2,minmax(0,1fr))}.giphy-result img{height:120px}}
.gif-kind-tabs{display:flex;gap:5px;justify-content:flex-start;margin-bottom:9px}.gif-kind-tabs button{background:transparent;color:inherit;padding:7px 11px;border-radius:6px}.gif-kind-tabs button.active{background:#e9eef4;font-weight:700}.giphy-brand{display:block;color:#888;font-size:10px;margin-top:9px}
dialog:has(.giphy-search) .modal-head h2{display:none}dialog:has(.giphy-search) .modal-head{justify-content:flex-end;border-bottom:0;height:42px;min-height:42px;max-height:42px}dialog:has(.giphy-search) .gif-kind-tabs{position:absolute;top:5px;right:10px;margin:0;max-width:calc(100% - 62px);height:32px}dialog:has(.giphy-search) #modal-content{padding-top:0}.gif-kind-tabs button{padding:6px 10px;font-size:12px}dialog:has(.giphy-search) .youtube-search-form{margin:0 0 10px}
dialog:has(.giphy-search) .modal-head{height:34px;min-height:34px;max-height:34px;padding:3px 8px}dialog:has(.giphy-search) .gif-kind-tabs{top:3px;right:8px;height:28px}.gif-kind-tabs button{height:28px;padding:4px 9px;font-size:11px}dialog:has(.giphy-search) .modal-head>.icon{height:27px;width:27px;font-size:20px}.giphy-search .youtube-search-form{gap:5px}.giphy-search .youtube-search-form input{height:34px;min-height:34px;padding:6px 9px;font-size:14px}.giphy-search .youtube-search-form button{height:34px;padding:5px 11px;font-size:12px}dialog:has(.giphy-search) #modal-content{padding:0 8px 8px}.giphy-search .youtube-search-form{margin-bottom:7px!important}.giphy-results{gap:4px}@media(max-width:600px){.giphy-search .youtube-search-form input{font-size:16px}.youtube-search-form input{height:36px;padding:6px 9px}.youtube-search-form button{height:36px;padding:5px 11px}}
.youtube-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;align-items:start}.youtube-result{display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:5px;min-width:0;width:100%;text-align:right;border-radius:7px}.youtube-result img{display:block;width:100%;max-width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:5px}.youtube-result>span{display:grid;gap:3px}.youtube-result strong{font-size:11px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.youtube-result small{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.youtube-more{grid-column:1/-1}.giphy-results{grid-template-columns:repeat(3,minmax(0,1fr))}.giphy-result img{height:110px}@media(max-width:600px){.youtube-results{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.youtube-result{padding:3px}.youtube-result strong{font-size:10px}.youtube-result small{font-size:8px}.giphy-results{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.giphy-result img{height:100px}}
.floating-video{position:fixed;z-index:1050;border-radius:10px;overflow:hidden;background:#151820;box-shadow:0 12px 42px #0005;border:1px solid #ffffff24;direction:ltr;max-width:calc(100vw - 12px)}.floating-video-head{height:36px;display:flex;align-items:center;gap:4px;padding:3px 5px;cursor:grab;touch-action:none;user-select:none;background:#20242e;color:#fff}.floating-video-head>span{font-size:12px;padding:0 7px;flex:1;min-width:0;overflow:hidden;white-space:nowrap}.floating-video-head>button{width:28px;height:28px;flex:none;border-radius:5px;background:#ffffff12;color:white;font-size:15px;padding:0}.floating-video-head>button[aria-pressed=true]{background:#079bb5}.floating-video-head>button:hover{background:#ffffff35}.floating-video-head>button:last-child:hover{background:#b43d4c}.floating-video>iframe{display:block;border:0;width:100%;aspect-ratio:16/9;height:auto;background:#000}.floating-video.dragging iframe{pointer-events:none}.floating-video.dragging .floating-video-head{cursor:grabbing}.floating-video.minimized{height:36px}.floating-video-head:focus-visible{outline:2px solid #13bdd6;outline-offset:-2px}@media(max-width:600px){.floating-video{border-radius:8px}.floating-video-head>button{width:29px;height:29px}}
.code-message-head{display:flex;align-items:center;justify-content:space-between;gap:20px;font:11px monospace;direction:ltr;padding-bottom:6px;border-bottom:1px solid #ffffff30}.code-copy{background:#ffffff24;color:inherit;border-radius:5px;padding:5px 9px;font-size:11px}.code-message{direction:ltr;text-align:left;white-space:pre;max-width:min(620px,70vw);overflow:auto;font:12px/1.7 Consolas,monospace;margin:8px 0 0}.code-share-form textarea{min-height:160px;max-height:40dvh;direction:ltr;text-align:left;font-family:Consolas,monospace}@media(max-width:600px){.code-message{max-width:70vw;font-size:11px}}
.code-message-frame{background:#1c2431;color:#e7edf6;border:1px solid #405068;border-radius:8px;padding:9px;max-width:min(650px,72vw);min-width:min(220px,65vw);overflow:hidden}.code-message-frame .code-message-head{color:#c4d4e5;border-color:#405068}.code-message-frame .code-copy{font-size:10px;padding:4px 8px}.code-message-frame .code-message{max-width:100%;max-height:60dvh;margin:9px 0 0;overflow:auto}.code-message-frame.code-collapsed .code-message{max-height:150px;overflow-y:hidden;mask-image:linear-gradient(#000 80%,transparent)}.code-more{display:block;margin-top:7px;padding:5px 9px;color:#7ddaf0;background:#ffffff0c;border-radius:5px;font-size:11px}.code-message-frame:has(.code-more){padding-bottom:7px}@media(max-width:600px){.code-message-frame{max-width:72vw;padding:7px}.code-message-frame.code-collapsed .code-message{max-height:125px}}
.tool-menu{position:fixed;left:0;right:auto;top:auto;bottom:calc(var(--chat-footer-height) + 51px);width:46px;max-width:46px;max-height:calc(100dvh - var(--chat-header-height) - var(--chat-footer-height) - 62px);display:flex;flex-direction:column;flex-wrap:nowrap;padding:5px 3px;gap:5px;border-radius:0 10px 10px 0;overflow-y:auto;overflow-x:hidden;z-index:40;transform:none;box-shadow:3px 2px 12px #182b421c}.tool-menu button{width:36px;height:36px;min-width:36px;min-height:36px;font-size:22px}.tool-menu button img{width:31px;height:31px}.tool-menu button>i{font-size:23px}@media(max-width:600px){.tool-menu{bottom:calc(var(--chat-footer-height) + 47px);width:43px;max-width:43px;padding:4px 2px;gap:4px}.tool-menu button{width:36px;height:36px}.tool-menu button img{width:30px;height:30px}}
.floating-video-dock{display:none}.floating-video.minimized{height:42px;border-radius:0 10px 10px 0;background:#242936;border:1px solid #ffffff29}.floating-video.minimized .floating-video-head{display:none}.floating-video.minimized .floating-video-dock{display:grid;place-items:center;background:transparent;width:40px;height:40px;padding:4px}.floating-video-dock img{width:32px;height:32px;object-fit:contain}.floating-video-head button[aria-label="تغيير حجم الفيديو"]{font-size:22px;line-height:1}
.youtube-message{position:relative;width:min(340px,62vw);max-width:100%;aspect-ratio:16/9;border-radius:7px;overflow:hidden;background:#111}.bubble .youtube-message iframe{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;max-width:100%;border:0;border-radius:0}.youtube-expand{position:absolute;z-index:2;top:6px;left:6px;width:28px;height:28px;display:grid;place-items:center;background:#111b;color:#fff;border:1px solid #ffffff40;border-radius:5px;padding:0;font-size:14px}.youtube-expand:hover{background:#079bb5}@media(max-width:600px){.youtube-message{width:65vw}.youtube-expand{width:27px;height:27px;top:4px;left:4px}}
.tool-menu{flex-direction:column-reverse}
.code-message-frame .code-more{display:block;width:max-content;min-width:0;min-height:0;max-width:100%;margin:8px auto 0;padding:2px 5px;border:0;background:transparent;box-shadow:none;border-radius:3px;text-align:center;font-size:10px;line-height:1.6;color:#7ddaf0}.code-message-frame .code-more:hover{text-decoration:underline;background:transparent}.code-message-frame:has(.code-more){padding-bottom:6px}
/* Compact message spacing keeps more room for conversation content. */
.message{gap:6px;padding:5px 0}.message .avatar{width:32px;height:32px;border-width:1px;font-size:14px}.message-meta{height:20px;gap:4px}.conversation .message-scroll{padding:6px 8px}.message .bubble{padding:7px 10px;max-width:94%}.message .bubble:has(.youtube-message,.code-message-frame){padding:4px;max-width:98%}.message .message-content{min-width:0}.message .message-meta .name-button{line-height:1.3}
@media(max-width:600px){.message{gap:4px;padding:4px 0}.message .avatar{width:28px;height:28px;border-width:1px;font-size:12px}.message-meta{height:19px;gap:3px}.conversation .message-scroll{padding:3px 4px}.message .bubble{max-width:97%;padding:6px 9px}.message .bubble:has(.youtube-message,.code-message-frame){padding:3px}.message .time{font-size:8px}.message .message-delete{padding:0 3px}}
.message-options{width:132px;padding:3px 0;border-radius:8px;box-shadow:0 3px 10px #0002;overflow-y:auto}.message-options .message-option{min-height:30px;padding:5px 8px;gap:7px}.message-options .message-option i{width:13px;font-size:11px}.message-options .message-option strong{font-size:10px;line-height:1.25}.message-options .message-option small{font-size:8px;line-height:1.2}.message-options .message-option span{gap:2px}
.rooms-panel{background:#fff}.rooms-panel-head{height:36px;min-height:36px;padding:0 8px;font-size:11px}.rooms-panel-tools{padding:6px 8px 0}.rooms-panel-tools:empty{display:none}.rooms-panel-tools .primary{padding:6px 9px;min-height:29px;font-size:10px;border-radius:6px}.rooms-panel>.search{margin:6px 8px;width:calc(100% - 16px);height:34px;padding:7px 10px;font-size:12px;border-radius:7px;background:#f6f8fb;border-color:#e8edf2}.rooms-panel-list{padding:0;margin:0}.room-list-entry{margin:0;border-bottom:1px solid #eff2f5}.room-list-button{min-height:50px;padding:6px 8px;gap:8px;border-radius:0}.room-list-picture{width:34px;height:34px;font-size:19px;border-radius:7px;background:#eaf5f8;color:#14869a}.room-list-picture img{border-radius:7px}.room-list-details{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:3px;align-items:center}.room-list-details strong{font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-list-details small{font-size:9px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-list-details small:first-of-type{grid-column:1}.room-list-details small:last-child{grid-column:2;grid-row:1/3;background:#edf7f4;color:#42816c;border-radius:8px;padding:3px 6px;max-width:100px}.room-list-button[aria-current=page]{background:#eff8fb;box-shadow:inset -2px 0 #08a5bd}.room-list-button:hover{background:#f5f9fc}@media(max-width:600px){.rooms-panel{border:0}.room-list-button{padding:6px 8px;min-height:48px}.room-list-picture{width:32px;height:32px}.rooms-panel-list{padding:0}}
.user-card-popover{width:200px;max-width:calc(100vw - 12px);border-radius:14px}.user-card-head{gap:2px;padding:8px 10px 10px}.user-card-head>img{width:46px;height:46px;border-width:1px}.user-card-head>strong{font-size:16px;line-height:1.4}.user-card-head>small{font-size:7px;padding:2px 5px}.user-card-action{min-height:33px;font-size:10px;gap:6px;padding:6px 8px}.user-card-action>i{font-size:12px}
.name-style-preview{min-height:76px;display:flex;align-items:center;justify-content:center;background:#f8fafc;border:1px solid #edf1f5;border-radius:10px;margin-bottom:10px;padding:12px}.name-style-preview .name-color-preview{width:auto;max-width:100%;margin:0;font-size:24px;text-align:center;overflow-wrap:anywhere}.name-style-tabs{display:flex;gap:3px;margin-bottom:8px;flex-wrap:nowrap;border-bottom:1px solid #e9eef3}.name-style-tabs .permission-tab{flex:1;min-width:0;padding:9px 4px;font-size:11px;white-space:nowrap;border-radius:6px 6px 0 0}.name-style-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;padding:10px 0 14px}.name-style-grid>.name-style-choice{width:100%;min-width:0;height:34px;min-height:34px;padding:0;border-radius:7px;border:2px solid #fff;box-shadow:0 0 0 1px #e0e6ec;position:relative}.name-style-choice.selected{outline:2px solid #00a6bf;outline-offset:2px}.name-style-choice[data-kind=bneon]{box-shadow:0 0 0 1px #e0e6ec,inset 0 0 10px #ffffff9}.name-style-choice[data-kind=bshine]{background-size:240% 100%!important;animation:name-shimmer 4s ease-in-out infinite}.name-style-actions{display:flex;justify-content:flex-end;gap:7px;padding-top:8px;border-top:1px solid #edf1f5}.name-style-actions>button{padding:9px 18px;font-size:12px}@media(max-width:600px){.name-style-preview{min-height:68px}.name-style-preview .name-color-preview{font-size:22px}.name-style-grid{gap:6px}.name-style-grid>.name-style-choice{height:31px;min-height:31px}.name-style-tabs .permission-tab{font-size:10px;padding:9px 2px}}
.appearance-shop{--shop-gold:#dbb875;--shop-ink:#181828}.appearance-hero{padding:14px;border-radius:14px;background:radial-gradient(ellipse at top right,#453a60,#171625);color:#f3e1b5}.appearance-hero>small{display:block;text-align:center;font-size:10px;opacity:.85;margin-bottom:12px}.appearance-preview.person{display:flex;align-items:center;gap:10px;padding:13px;border-radius:10px;background:#ffffff0c;min-height:65px;color:#fff;pointer-events:none}.appearance-preview .avatar{width:38px;height:38px;border-radius:50%;background:#e5d7b5;color:#382844;display:grid;place-items:center;flex-shrink:0}.appearance-preview>div:last-child{display:flex;flex-direction:column;gap:5px}.appearance-preview strong{font-size:17px}.appearance-preview small{font-size:9px;opacity:.65}.appearance-switch{display:flex;align-items:center;gap:5px;padding:12px 0}.appearance-switch button,.appearance-tabs button{border:0;background:transparent;color:inherit;padding:7px 10px;border-radius:7px;font-size:11px}.appearance-switch button.active,.appearance-tabs button.active{background:#212034;color:#f0d49c}.appearance-balance{margin-inline-start:auto;font-size:10px;color:#8d692d}.appearance-tabs{display:flex;gap:2px;overflow:auto;padding-bottom:8px;scrollbar-width:thin}.appearance-tabs button{flex-shrink:0;padding:6px 8px;font-size:10px}.appearance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:360px;overflow:auto;padding:2px}.appearance-card{min-width:0;background:#f7f7fa;border:1px solid #e9e8ee;border-radius:10px;padding:5px;cursor:pointer;display:flex;flex-direction:column;gap:5px;text-align:center;color:#343044}.appearance-card.equipped{border-color:#ae8746;box-shadow:inset 0 0 0 1px #ae8746}.appearance-sample{display:grid;place-items:center;min-height:51px;border-radius:7px;background:#212033;overflow:hidden;color:#e9d3a3}.appearance-sample span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.appearance-card>strong{font-size:9px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.appearance-card>small{font-size:9px;color:#92723d}.appearance-detail{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding-top:12px}.appearance-detail>strong{font-size:12px}.appearance-detail>small{font-size:10px;color:#888}.appearance-detail>.primary{margin-inline-start:auto;padding:8px 12px;font-size:11px}.appearance-item-settings{flex-basis:100%;font-size:11px;background:#f7f7fa;padding:9px;border-radius:8px}.appearance-item-settings label{display:flex;align-items:center;justify-content:space-between;margin:8px 0}.appearance-item-settings input[type=number]{width:100px;padding:6px}.appearance-flags{display:flex;justify-content:space-between;margin-top:14px;border-top:1px solid #eee;padding-top:12px;font-size:11px}.country-flag{width:19px;height:13px;object-fit:cover;border-radius:2px;flex-shrink:0;margin-inline-start:auto}.person .country-flag{width:19px;height:13px}@keyframes appearance-glow{0%,100%{filter:brightness(1)}50%{filter:brightness(1.55)}}@media(prefers-reduced-motion:reduce){[data-user-id],.appearance-preview strong{animation:none!important}}@media(max-width:600px){dialog:has(.appearance-shop){width:calc(100vw - 8px);max-width:none}dialog:has(.appearance-shop) #modal-content{padding:9px}.appearance-grid{gap:6px;max-height:calc(100dvh - 360px);min-height:120px}.appearance-hero{padding:10px}.appearance-preview.person{min-height:57px;padding:10px}.appearance-tabs{gap:0}.appearance-tabs button{padding:6px 7px}}
.message .bubble.bubble-none{background:transparent!important;color:inherit!important;box-shadow:none!important;border-color:transparent!important}
.appearance-detail:not(:empty){padding:9px;margin-bottom:8px;background:#f6f4ed;border:1px solid #e9e0ce;border-radius:9px}.appearance-item-settings{background:#fff}.appearance-item-settings[open]{max-height:155px;overflow:auto}.appearance-grid{margin-top:3px}@media(max-width:600px){.appearance-grid{max-height:calc(100dvh - 410px)}.appearance-detail:not(:empty)~.appearance-grid{max-height:calc(100dvh - 475px)}.appearance-card{min-height:88px}.appearance-flags{align-items:center;gap:12px}.appearance-flags input{flex-shrink:0}}
@keyframes lux-flow{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}@keyframes lux-sweep{0%,22%{transform:translateX(-140%);opacity:0}40%{opacity:1}72%,100%{transform:translateX(140%);opacity:0}}@keyframes lux-stars{0%,100%{opacity:.25;background-position:0 0}50%{opacity:.95;background-position:12px 4px}}@keyframes lux-orbit{to{transform:rotate(360deg)}}@keyframes lux-ring-pulse{0%,100%{opacity:.35;transform:scale(.96)}50%{opacity:1;transform:scale(1.05)}}@keyframes lux-ornament{0%,100%{opacity:.6;transform:scale(.92)}50%{opacity:1;transform:scale(1.06)}}@keyframes lux-rainbow{0%,100%{color:#f5b4dc;text-shadow:0 0 6px #f5b4dc88}25%{color:#b9d9ff;text-shadow:0 0 6px #b9d9ff88}50%{color:#b6f4d5;text-shadow:0 0 6px #b6f4d588}75%{color:#f3d795;text-shadow:0 0 6px #f3d79588}}@keyframes lux-text-pulse{0%,100%{text-shadow:0 0 1px currentColor}50%{text-shadow:0 0 9px currentColor,0 0 2px #fff}}@keyframes lux-text-spark{0%,35%,65%,100%{text-shadow:none}15%,50%,85%{text-shadow:0 0 4px #fff,2px 0 7px currentColor}}@keyframes lux-soft{0%,100%{opacity:.7}50%{opacity:1}}@keyframes lux-aurora{0%,100%{text-shadow:-2px 0 6px #adffde66;color:#b7f6e2}50%{text-shadow:2px 0 6px #dfadff88;color:#dfc1ff}}@keyframes lux-wave{0%,100%{text-shadow:-2px 0 5px currentColor}50%{text-shadow:2px 0 9px currentColor}}@keyframes lux-text-sweep{0%,100%{text-shadow:-6px 0 1px #ffffff00}40%{text-shadow:0 0 4px #fff,0 0 7px currentColor}65%{text-shadow:6px 0 2px #ffffff00}}
.appearance-preview .avatar img,.appearance-sample .avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.appearance-sample .avatar{width:30px;height:30px;position:relative;border-radius:50%;background:#dedede}.appearance-sample{position:relative;isolation:isolate}.appearance-card{content-visibility:auto;contain-intrinsic-size:auto 90px}.appearance-demo-name{display:inline-block;line-height:1.7}.appearance-preview>div:last-child{position:relative;z-index:1}.person{min-height:53px;margin:3px 5px;width:calc(100% - 10px);padding:8px 9px;gap:9px;border-radius:9px;text-align:start;transition:background-color .15s}.person:not(:has([data-user-id])){background:transparent}.person:hover{background-color:#f1f5f8}.person .avatar{width:34px;height:34px;flex-shrink:0;border-radius:50%}.person-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.person-info strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;align-self:flex-start}.person-mood{font-size:9px;opacity:.65;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.person-gender{font-size:13px;flex-shrink:0}.person-gender.male{color:#2792d2}.person-gender.female{color:#e15b9b}.person .country-flag{margin-inline-start:0;width:18px;height:12px}.bot-person{cursor:default}.people-counter{height:35px!important;font-size:10px!important;padding:7px 12px!important}.people-footer{font-size:9px}.people-tabbar{border-bottom:1px solid #e9edf1}.people-tabs{background:#f9fafc}.people-list{padding:3px 0}.chat-shortcuts>p{font-size:11px;color:#888}.chat-shortcuts>input{width:100%;padding:9px}.shortcut-list{max-height:55dvh;overflow:auto;margin-top:9px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.shortcut-row{display:flex;gap:9px;align-items:center;text-align:start;padding:9px;background:#f5f6f9;border-radius:7px;color:inherit;font-size:11px}.shortcut-row kbd{padding:4px;min-width:29px;text-align:center;background:#24253b;color:#ffe3a6;border-radius:5px;font-size:11px;white-space:nowrap}#theme-mode-toggle{font-size:15px;flex-shrink:0}.rail-button[hidden],#theme-mode-toggle[hidden]{display:none!important}.bot-settings small{font-size:11px}.bot-settings{padding:12px;border:1px solid #e5e9ef;border-radius:9px;margin:8px 0 16px}
[data-user-id],.person::before,.avatar::after,.appearance-demo-name,.appearance-sample,.appearance-sample::before,.appearance-preview,.appearance-preview::before{animation-play-state:paused!important}
[data-motion-visible="1"],[data-motion-visible="1"] [data-user-id],[data-motion-visible="1"] .avatar::after,[data-motion-visible="1"] .appearance-demo-name,[data-motion-visible="1"]::before{animation-play-state:running!important}
.appearance-page-hidden [data-user-id],.appearance-page-hidden .person::before,.appearance-page-hidden .avatar::after,.appearance-page-hidden .appearance-demo-name,.appearance-page-hidden .appearance-sample,.appearance-page-hidden .appearance-sample::before,.appearance-page-hidden .appearance-preview,.appearance-page-hidden .appearance-preview::before{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){[data-user-id],.person::before,.avatar::after,.appearance-demo-name,.appearance-sample,.appearance-sample::before,.appearance-preview,.appearance-preview::before{animation:none!important}}
@media(max-width:600px){.person{min-height:49px;padding:7px 8px;gap:7px}.person .avatar{width:32px;height:32px}.header-actions{gap:9px!important}#theme-mode-toggle{width:22px;padding:0}.shortcut-list{grid-template-columns:1fr}.appearance-sample{min-height:59px}}
body[data-theme=Dark] .person:hover{background-color:#ffffff0a}body[data-theme=Dark] .shortcut-row{background:#292a42}body[data-theme=Dark] .appearance-item-settings{background:#24243c}body[data-theme=Dark] .appearance-detail{background:#272438;color:#f4e5c4}
[data-user-id]::before,[data-user-id]::after,.appearance-demo-name::before,.appearance-demo-name::after{animation-play-state:paused!important}[data-motion-visible="1"] [data-user-id]::before,[data-motion-visible="1"] [data-user-id]::after,[data-motion-visible="1"] .appearance-demo-name::before,[data-motion-visible="1"] .appearance-demo-name::after{animation-play-state:running!important}.appearance-page-hidden [data-user-id]::before,.appearance-page-hidden [data-user-id]::after,.appearance-page-hidden .appearance-demo-name::before,.appearance-page-hidden .appearance-demo-name::after{animation-play-state:paused!important}@media(prefers-reduced-motion:reduce){[data-user-id]::before,[data-user-id]::after,.appearance-demo-name::before,.appearance-demo-name::after{animation:none!important}}
body[data-theme=Dark] .people-tab,body[data-theme=Dark] .people-tab-close,body[data-theme=Dark] .people-tabbar{background:#292a33;color:#dcdde5;border-color:#3a3b45}body[data-theme=Dark] .people-tab.active{background:#454253;color:#ffe3ac}
body:has(dialog[open]) .message [data-user-id],body:has(dialog[open]) .message .avatar::after,body:has(dialog[open]) .message [data-user-id]::before,body:has(dialog[open]) .message [data-user-id]::after{animation-play-state:paused!important}
.shortcut-admin-form{display:grid;grid-template-columns:180px minmax(0,1fr) auto;gap:10px;align-items:end;padding:14px;background:#f7f8fa;border:1px solid #e6e9ed;border-radius:9px;margin:12px 0}.shortcut-admin-form>strong{grid-column:1/-1}.shortcut-admin-form label{display:flex;flex-direction:column;gap:5px;font-size:12px}.shortcut-admin-form input,.shortcut-admin-form textarea{width:100%;min-width:0;padding:9px}.shortcut-admin-list{max-height:550px;overflow:auto;margin-top:10px}.shortcut-admin-row{display:flex;align-items:center;gap:7px;border-bottom:1px solid #eee;padding:8px}.shortcut-admin-row>div{display:flex;align-items:center;gap:12px;flex:1;min-width:0;font-size:12px}.shortcut-admin-row kbd{background:#282a42;color:#ffe6aa;padding:5px 8px;border-radius:5px;white-space:nowrap}.shortcut-admin-row>button{padding:6px 10px;font-size:11px;flex-shrink:0}.shortcut-deleted{margin-top:14px;padding:10px;background:#f7f8fa;border-radius:8px}.shortcut-admin-settings>input{width:100%;padding:10px}@media(max-width:600px){.shortcut-admin-form{grid-template-columns:1fr 1fr;padding:10px}.shortcut-admin-form label{grid-column:1/-1}.shortcut-admin-row>div{align-items:flex-start;gap:7px}.shortcut-admin-row{gap:5px;padding:7px 2px}.shortcut-admin-row>button{padding:6px;font-size:10px}}
