@font-face{font-family:Inter;src:url('/inter.woff2') format('woff2');font-display:swap}
:root{color-scheme:dark;--rail:#141416;--side:#18181b;--bg:#1d1d21;--panel:#202025;--float:#25252b;--hover:#2a2a31;--line:#2c2c33;--text:#f2f1f6;--body:#dad9e2;--muted:#a4a3b0;--accent:#a99cff;--primary:#7161e8;--green:#47bf89;--red:#ff7986;--shadow:#0d0d12a8}
:root[data-theme=light]{color-scheme:light;--rail:#eae8f1;--side:#f2f0f7;--bg:#fff;--panel:#f8f7fb;--float:#f1eff6;--hover:#e9e6f2;--line:#dedbe8;--text:#252134;--body:#332d44;--muted:#625b74;--accent:#5745c9;--primary:#5c4bd0;--green:#218960;--red:#ac344d;--shadow:#37305330}
*{box-sizing:border-box}
html,body,#app{margin:0;width:100%;height:100%;overflow:hidden}
body{font:14px/1.5 Inter,system-ui,sans-serif;background:var(--bg);color:var(--body)}
button,input,select,textarea{font:inherit;color:inherit}
button{border:0;background:none;cursor:pointer;padding:0}
button:disabled{opacity:.55;cursor:wait}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
a{color:var(--accent)}
svg{width:20px;height:20px;flex:none;vertical-align:middle}
strong,b,h1,h2{color:var(--text)}
p{margin:0;color:var(--muted)}
.icon{width:32px;height:32px;display:inline-grid;place-items:center;border-radius:6px;color:var(--muted);flex:none}
.icon:hover,.icon.on{background:var(--hover);color:var(--text)}
.icon.red{color:var(--red);background:color-mix(in srgb,var(--red) 12%,transparent)}
.frame{height:100%;display:grid;grid-template-rows:44px minmax(0,1fr)}
.titlebar{display:grid;grid-template-columns:1fr minmax(0,1fr) 1fr;align-items:center;padding:0 15px;background:var(--rail);border-bottom:1px solid var(--line);color:var(--muted)}
.wordmark{display:flex;align-items:center;gap:5px;font-size:15px;letter-spacing:-.35px;white-space:nowrap}
.wordmark svg{width:22px;height:22px;margin-right:4px;color:var(--accent)}
#title-site{text-align:center;font-size:12px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.title-actions{display:flex;justify-content:flex-end;gap:3px}
.workspace{display:grid;grid-template-columns:72px 252px minmax(0,1fr);min-height:0}
.workspace.show-members{grid-template-columns:72px 252px minmax(0,1fr) 246px}
.rail{background:var(--rail);border-right:1px solid var(--line);display:flex;align-items:center;flex-direction:column;gap:9px;padding:12px 0;overflow:auto;scrollbar-width:none}
.site-tile{position:relative;flex:none;display:grid;place-items:center;width:46px;height:46px;background:var(--float);color:var(--text);border-radius:15px;font-size:13px;font-weight:750;letter-spacing:.2px;transition:background .15s,border-radius .15s}
.site-tile.home svg{width:24px;height:24px}
.site-tile.current,.site-tile:hover{background:var(--primary);border-radius:12px;color:white}
.site-tile[data-act=site].current,.site-tile[data-act=site]:hover{background:color-mix(in srgb,var(--site) 49%,#332769)}
.site-tile.current:before{position:absolute;left:-13px;top:7px;bottom:7px;width:4px;background:var(--accent);border-radius:0 4px 4px 0;content:''}
.site-tile i{position:absolute;right:-2px;bottom:-2px;width:13px;height:13px;border:2px solid var(--rail);background:#ed667b;border-radius:50%}
.site-tile.add{color:var(--green)}
.site-tile.add:hover{background:var(--green);color:white}
.rail-rule{height:1px;width:30px;background:var(--line);flex:none;margin:3px 0}
.channels{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--side);border-right:1px solid var(--line)}
.channel-head,.room-header,.members-head{height:53px;flex:none;border-bottom:1px solid var(--line);display:flex;align-items:center}
.channel-head{padding:0 12px 0 16px;justify-content:space-between;gap:8px}
.channel-head strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.channel-scroll{padding:10px 9px;overflow:auto;flex:1}
.channel-group{padding:8px 0 10px}
.section-label{height:28px;display:flex;align-items:center;justify-content:space-between;padding:0 7px;color:var(--muted);font-size:11px;font-weight:730;letter-spacing:.065em;text-transform:uppercase}
.section-label .icon{width:26px;height:26px}
.section-label svg{width:15px;height:15px}
.channel-row{display:flex;align-items:center;min-height:36px;margin:2px 0;border-radius:7px;color:var(--muted)}
.channel-row:hover,.channel-row.selected{background:var(--hover);color:var(--text)}
.channel-row.selected{box-shadow:inset 2px 0 var(--accent)}
.channel-row.unread{color:var(--text);font-weight:700}
.channel-row>button:first-child{display:flex;align-items:center;gap:9px;text-align:left;min-width:0;flex:1;padding:7px 8px}
.channel-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.channel-row svg{width:18px;height:18px}
.channel-row button.channel-edit{opacity:0;padding:4px 7px;color:var(--muted)}
.channel-row:hover .channel-edit,.channel-row:focus-within .channel-edit{opacity:1}
.voice-member{padding:3px 11px 3px 31px;display:flex;gap:8px;align-items:center;color:var(--muted);font-size:12px}
.voice-member svg{width:13px;height:13px}
.user-panel,.connected{display:flex;align-items:center;justify-content:space-between;gap:4px;background:var(--panel);margin:8px;border:1px solid var(--line);border-radius:10px;padding:6px;min-height:53px}
.connected{margin-bottom:0}
.connected b{font-size:12px;color:var(--green)}
.connected svg{width:16px;height:16px}
.connected small{display:block;color:var(--muted);margin-left:19px}
.who,.member,.manage-row{display:flex;align-items:center;gap:9px;min-width:0;text-align:left}
.who>span:last-child,.member>span:nth-child(2),.manage-row>span:nth-child(2){min-width:0}
.who b,.member b,.manage-row b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.who small,.member small,.manage-row small,.profile-head small{display:block;color:var(--muted);font-size:11px}
.user-controls{display:flex}
.user-controls .icon{width:28px;height:29px}
.user-controls svg{width:16px;height:16px}
.avatar{width:36px;height:36px;border-radius:50%;display:inline-grid;place-items:center;position:relative;flex:none;font-size:12px;font-weight:750;color:#fff;background:#6652b4}
.avatar[data-tone="1"]{background:#32687c}.avatar[data-tone="2"]{background:#a44e72}.avatar[data-tone="3"]{background:#4759a8}.avatar[data-tone="4"]{background:#755035}.avatar[data-tone="5"]{background:#33715e}
.avatar.tiny{width:22px;height:22px;font-size:9px}
.dot{position:absolute;right:-1px;bottom:-1px;width:12px;height:12px;border:2px solid var(--side);background:var(--green);border-radius:50%}
.dot.offline{background:#888896}.dot.idle{background:#e6a24e}.dot.dnd{background:#e05b70}
.conversation{min-width:0;min-height:0;display:flex;flex-direction:column}
.room-header{padding:0 14px;justify-content:space-between;gap:10px}
#room-name,#room-tools{display:flex;align-items:center;gap:9px;min-width:0}
#room-name svg{color:var(--muted)}
#room-name b,.topic{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#room-name b{flex-shrink:0;max-width:min(40vw,220px)}
.topic{color:var(--muted);font-size:12px;border-left:1px solid var(--line);padding-left:10px}
#room-tools{flex:none;gap:4px}
#search{display:flex;align-items:center;background:var(--side);border:1px solid var(--line);border-radius:7px;margin-left:5px}
#search input{width:clamp(82px,11vw,158px);height:30px;background:none;border:0;padding:0 7px}
#search .icon{height:28px;width:27px}
#search svg{width:16px;height:16px}
.feed{flex:1;min-height:0;overflow:auto;scrollbar-color:var(--hover) transparent}
.history{min-height:100%;display:flex;flex-direction:column;justify-content:flex-end;padding:16px 0 14px}
.welcome{padding:32px 24px 14px}
.welcome.solo{height:100%;display:grid;place-content:center;text-align:center;justify-items:center}
.welcome-icon{width:61px;height:61px;display:grid;place-items:center;border-radius:20px;background:color-mix(in srgb,var(--accent) 16%,var(--panel));color:var(--accent);margin-bottom:12px}
.welcome-icon svg{width:31px;height:31px}
.welcome h1,.voice-screen h1{margin:0 0 5px;font-size:clamp(21px,2.1vw,32px);letter-spacing:-.045em;overflow-wrap:anywhere}
.welcome .primary{margin-top:18px}
.date-line{display:flex;align-items:center;gap:9px;margin:14px 22px 8px;color:var(--muted);font-size:11px;font-weight:650}
.date-line:before,.date-line:after{content:'';height:1px;background:var(--line);flex:1}
.message{display:flex;position:relative;padding:6px 23px;gap:12px}
.message:hover,.message:focus-within{background:var(--panel)}
.message-body{min-width:0;flex:1}
.byline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.byline b{font-size:14px}
.byline time,.edited{font-size:10px;color:var(--muted)}
.byline svg{width:13px;height:13px;color:var(--accent)}
.role-tag{color:var(--accent);background:color-mix(in srgb,var(--accent) 13%,transparent);border-radius:4px;padding:1px 5px;font-size:10px;font-weight:700}
.message-text{white-space:pre-wrap;overflow-wrap:anywhere}
.quote{display:flex;align-items:center;gap:6px;max-width:100%;color:var(--muted);font-size:11px;margin-bottom:3px}
.quote span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.quote svg{width:14px;height:14px}
.message-actions{display:none;position:absolute;top:-12px;right:19px;background:var(--float);border:1px solid var(--line);border-radius:7px;z-index:1;box-shadow:0 4px 12px var(--shadow)}
.message:hover .message-actions,.message:focus-within .message-actions{display:flex}
.message-actions svg{width:16px;height:16px}
.reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}
.reactions:empty{display:none}
.reactions button,.load-more{border:1px solid var(--line);border-radius:6px;padding:3px 8px;background:var(--float)}
.reactions .mine{border-color:var(--accent);color:var(--accent)}
.message-image{display:block;max-width:min(100%,380px);max-height:300px;object-fit:contain;border-radius:8px;margin-top:6px}
.file-link{display:inline-block;margin-top:4px}
.results-bar{display:flex;justify-content:space-between;align-items:center;margin:0 22px auto;padding:5px 8px;background:var(--panel);border-radius:7px}
.load-more{align-self:center;margin:5px 0 12px}
.empty,.loading-feed,.hint{padding:18px 22px;color:var(--muted)}
#composer{padding:0 16px}
.compose{display:flex;align-items:center;gap:6px;min-height:55px;background:var(--float);border:1px solid var(--line);border-radius:10px;padding:7px 8px}
.compose textarea{flex:1;min-width:0;background:none;border:0;resize:none;padding:5px 6px;line-height:1.5;min-height:30px;max-height:100px;field-sizing:content}
.compose .submit{color:var(--accent)}
.attach{position:relative;cursor:pointer}
.attach:focus-within{outline:2px solid var(--accent)}
.attach input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.typing{height:21px;font-size:10px;color:var(--muted);padding:2px 5px}
.compose-context{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:3px 9px;background:var(--panel);font-size:12px;border-radius:8px 8px 0 0}
.compose-context svg{width:15px;height:15px}
.members{display:none;min-width:0;background:var(--panel);border-left:1px solid var(--line);overflow:auto}
.show-members .members{display:block}
.members-head{padding:0 16px;color:var(--text);font-weight:700;gap:8px}
.members-head span{color:var(--muted);font-size:11px;background:var(--float);border:1px solid var(--line);border-radius:6px;padding:0 5px}
.member-section{padding:10px 9px 0}
.member{width:100%;padding:6px 7px;border-radius:7px}
.member:hover,.manage-row:hover{background:var(--hover)}
.member.offline{opacity:.67}
.master-symbol{margin-left:auto;color:#e5b85e}
.voice-screen{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px;gap:9px}
.voice-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:100%}
.voice-tile{min-width:125px;padding:10px;display:grid;gap:5px;justify-items:center;border:1px solid var(--line);background:var(--panel);border-radius:9px}
.voice-tile video{width:min(280px,100%);background:#111;border-radius:5px}
.voice-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:8px}
.login,.loading{min-height:100%;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at 27% 10%,color-mix(in srgb,var(--primary) 26%,transparent),transparent 54%),var(--rail)}
.login-panel{width:min(100%,410px);border:1px solid var(--line);background:var(--panel);padding:30px;border-radius:17px;box-shadow:0 22px 85px var(--shadow)}
.mark{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:var(--primary);color:white}
.mark svg{width:28px;height:28px}
.login h1{margin:12px 0 2px;font-size:29px;letter-spacing:-.04em}
.login form{margin-top:20px;display:grid;gap:13px}
label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:650}
label input,label select{min-height:39px;width:100%;border:1px solid var(--line);border-radius:7px;padding:7px 10px;background:var(--side);color:var(--text)}
label input[type=color]{width:75px;padding:3px}
.primary,.secondary,.danger{display:inline-flex;justify-content:center;align-items:center;min-height:35px;padding:6px 13px;border-radius:7px;font-weight:650}
.primary{background:var(--primary);color:white}
.primary:hover,.danger:hover{filter:brightness(1.11)}
.secondary{background:var(--float);border:1px solid var(--line)}
.secondary:hover{background:var(--hover)}
.danger{background:#ac344d;color:white}
.form-error{color:var(--red);font-size:12px}
.form-error:empty{display:none}
dialog{width:min(calc(100% - 24px),470px);max-height:calc(100dvh - 32px);padding:0;background:var(--panel);color:var(--body);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 55px var(--shadow)}
dialog::backdrop{background:#08070bb0}
dialog header{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:12px 17px;border-bottom:1px solid var(--line)}
dialog h2{font-size:17px;margin:0}
dialog form{display:grid;gap:12px;padding:15px 17px 17px}
dialog footer,.split,.manage-head,.profile-head{display:flex;align-items:center;gap:8px}
dialog footer{justify-content:flex-end}
.split,.manage-head{justify-content:space-between}
.profile-head b{display:block}
.manage-list{max-height:230px;overflow:auto;display:grid;gap:3px}
.manage-row{width:100%;border-radius:8px;padding:6px;background:var(--side)}
.manage-row svg{margin-left:auto}
.check-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-height:150px;overflow:auto}
.check{display:flex;align-items:center;overflow-wrap:anywhere}
.check input{width:auto;min-height:0}
fieldset{border:1px solid var(--line);border-radius:7px}
.emoji-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.emoji-grid button{padding:8px;background:var(--float);border-radius:7px;font-size:23px}
.emoji-grid button:hover{background:var(--hover)}
#toast{position:fixed;z-index:5;left:50%;bottom:25px;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:var(--float);border:1px solid var(--line);color:var(--text);box-shadow:0 7px 25px var(--shadow);padding:8px 14px;border-radius:8px;max-width:90%;transition:.15s}
#toast.visible{transform:translate(-50%,0);opacity:1}
.mobile-only{display:none}
@media(max-width:1040px){.workspace,.workspace.show-members{grid-template-columns:62px 216px minmax(0,1fr)}.workspace.show-members .members{position:absolute;right:0;top:97px;bottom:0;width:228px;z-index:4;box-shadow:-10px 0 30px var(--shadow)}.site-tile.current:before{left:-8px}.topic{display:none}}
@media(max-width:690px){.titlebar{grid-template-columns:32px auto 1fr auto;padding:0 7px;gap:4px}.mobile-only{display:inline-grid}.workspace,.workspace.show-members{grid-template-columns:minmax(0,1fr)}.rail,.channels{display:none}.show-nav .rail,.show-nav .channels{display:flex;position:absolute;top:44px;bottom:0;z-index:6}.show-nav .rail{left:0;width:58px}.show-nav .channels{left:58px;width:min(252px,calc(100% - 58px));box-shadow:10px 0 35px var(--shadow)}.room-header{padding:0 7px;gap:5px}.room-header .icon{width:26px}.room-header svg{width:16px;height:16px}#room-tools{gap:1px}#search{margin-left:1px}#search input{width:67px;padding-left:5px;font-size:12px}#room-name{gap:4px}.message{padding:6px 11px;gap:8px}.message-actions{right:8px}.welcome{padding-left:13px}.date-line{margin-left:11px;margin-right:11px}#composer{padding:0 7px}}
@media(hover:none){.channel-row button.channel-edit{opacity:1}.message-actions{position:static;display:flex;align-self:flex-start;max-width:66px;flex-wrap:wrap;justify-content:flex-end;box-shadow:none;background:transparent;border:0}.message-actions .icon{width:22px;height:24px}.message-actions svg{width:14px;height:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
