:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color-scheme:dark;background:#101118;color:#f1f1f7;--line:#30313d;--muted:#a3a4b7;--accent:#a889ff}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;color:inherit;border:1px solid var(--line);border-radius:10px;background:#252631;padding:.55rem .8rem}button:hover{background:#383846}button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.primary{background:#8161dc;color:#fff;border-color:#8161dc}.primary:hover{background:#9576e8}input{background:#1c1d27;color:#fff;border:1px solid #41424f;border-radius:10px;padding:.8rem;width:100%;min-width:0}.mark{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:16px;background:linear-gradient(140deg,#b692ff,#765ad2);color:white;font-size:1.6rem;font-weight:800}.mark.small{width:28px;height:28px;border-radius:8px;font-size:.9rem;vertical-align:middle}.login-wrap{min-height:100dvh;display:grid;place-items:center;padding:1.5rem}.login-card{width:min(100%,390px);background:#1b1c26;border:1px solid var(--line);border-radius:22px;padding:2rem;display:grid;gap:1rem;box-shadow:0 24px 80px #0005}.login-card h1{margin:0;font-size:2rem}.login-card p{margin:-.6rem 0 .5rem;color:var(--muted)}.login-card label{font-weight:600}.login-card small{color:#ffabac;min-height:1.2em}.shell{height:100dvh;display:grid;grid-template-columns:220px minmax(0,1fr) 220px;grid-template-rows:60px minmax(0,1fr);max-width:1800px;margin:auto;background:#171820}.shell[hidden],.login-wrap[hidden]{display:none}.topbar{grid-column:1/-1;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 1.25rem;gap:1rem}.topbar strong{font-size:1.15rem;white-space:nowrap}.top-actions{display:flex;align-items:center;gap:1rem;font-size:.85rem;color:var(--muted)}#status.online{color:#83e4ac}#status.offline,#status.retrying{color:#ffca88}.sidebar{border-right:1px solid var(--line);overflow:auto;padding:1rem .65rem}.side-title,.conversation-head,.users-panel h2{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.sidebar h2,.users-panel h2{font-size:.85rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin:.5rem}.side-title button{font-size:1.2rem;padding:.1rem .5rem}.sidebar nav{display:grid;gap:.25rem}.room{width:100%;text-align:left;border:0;background:transparent;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room.active{background:#41345f;color:#f8f4ff}.conversation{min-width:0;min-height:0;display:flex;flex-direction:column}.conversation-head{padding:0 1.25rem;height:58px;border-bottom:1px solid var(--line)}.conversation-head h2{font-size:1.1rem;margin:0;overflow:hidden;text-overflow:ellipsis}.conversation-head button{display:none}.messages{flex:1;min-height:0;overflow:auto;padding:1rem 1.3rem;display:flex;flex-direction:column;gap:.7rem;overflow-wrap:anywhere}.line{line-height:1.4}.line .time{color:#797b91;font-size:.73rem;margin-right:.6rem}.line .author{color:#bfabff;font-weight:700;margin-right:.4rem}.line.self .author{color:#90ddbb}.line.event{color:var(--muted);font-size:.85rem}.line.action{font-style:italic}.composer{display:flex;gap:.65rem;padding:1rem;border-top:1px solid var(--line)}.composer input{flex:1}.users-panel{border-left:1px solid var(--line);overflow:auto;padding:1rem .65rem}.users-panel h2 span{font-size:.8rem}.user{display:block;width:100%;text-align:left;border:0;background:transparent;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.45rem .5rem}.user:hover{background:#30313e}.user .rank{color:#c6afff;margin-right:.3rem}@media(max-width:760px){.shell{grid-template-columns:145px minmax(0,1fr)}.users-panel{display:none;position:fixed;right:0;top:60px;bottom:0;width:min(80vw,270px);background:#20212b;z-index:2;box-shadow:-15px 0 30px #0007}.users-panel.visible{display:block}.conversation-head button{display:block}.top-actions{gap:.4rem}.top-actions #my-nick{display:none}.topbar{padding:0 .7rem}}@media(max-width:470px){.shell{grid-template-columns:90px minmax(0,1fr)}.sidebar{padding:.5rem .2rem}.sidebar h2{font-size:.7rem;letter-spacing:0}.room{padding:.5rem .25rem;font-size:.8rem}.messages{padding:.8rem}.top-actions #leave{font-size:.75rem;padding:.35rem}.composer{padding:.6rem}}

#secret-dialog{border:0;background:transparent;color:inherit;padding:0;width:min(92vw,390px);max-width:390px}#secret-dialog::backdrop{background:#000a}#secret-dialog .login-card{width:100%}#secret-dialog h2{margin:0;font-size:1.15rem}.secret-actions{display:flex;justify-content:flex-end;gap:.6rem}
.shell.server-view{grid-template-columns:220px minmax(0,1fr)}
.shell.server-view .users-panel,.shell.server-view #users-toggle{display:none}
@media(max-width:760px){.shell.server-view{grid-template-columns:145px minmax(0,1fr)}}
@media(max-width:470px){.shell.server-view{grid-template-columns:90px minmax(0,1fr)}}
.login-card label small{color:var(--muted);font-weight:400}
#register-dialog{border:0;background:transparent;color:inherit;padding:0;width:min(92vw,430px);max-width:430px}
#register-dialog::backdrop{background:#000a}
#register-dialog .login-card{width:100%;max-height:90dvh;overflow:auto}
#register-dialog h2{margin:0;font-size:1.15rem}
.shell .conversation-head #register-account{display:none}
.shell.server-view .conversation-head #register-account{display:block;margin-left:auto}
