:root{--bg:#0b1018;--surface:#121a26;--raised:#182231;--border:#293649;--text:#eef3f8;--muted:#98a8ba;--accent:#68c5ff;--ok:#62d5a2;--warn:#f5c66b;--s:12px;--r:10px;--primary:232px;--chat:250px;color:var(--text);background:var(--bg);font-family:Inter,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.shell{grid-template-columns:var(--primary) 1fr;min-height:100svh;display:grid}.shell>aside{border-right:1px solid var(--border);background:#0d141e;flex-direction:column;height:100svh;padding:20px 12px;display:flex;position:sticky;top:0}.brand{gap:10px;padding:5px 8px 24px;font-weight:800;display:flex}.brand>span{display:grid}.brand small{color:var(--muted);font-size:11px;font-weight:500}.brand button{margin-left:auto;display:none}.shell nav{gap:3px;display:grid}.shell nav a{color:var(--muted);border-radius:8px;padding:10px 12px;font-size:14px;text-decoration:none}.shell nav a:hover,.shell nav a.active{background:var(--raised);color:var(--text)}.account{color:var(--muted);margin-top:auto;padding:12px 8px;font-size:13px}.account select{width:100%;margin-top:8px}.mobile{display:none}.page{max-width:1120px;margin:auto;padding:32px}.page>p,.auth form>p{letter-spacing:.12em;color:var(--accent);font-size:11px;font-weight:800}.page h1{margin:3px 0;font-size:28px}.empty{text-align:center;color:var(--muted);justify-items:center;gap:8px;max-width:420px;margin:auto;display:grid}.empty b{background:var(--accent);color:#07111c;border-radius:14px;place-items:center;width:42px;height:42px;display:grid}.empty h2{color:var(--text);margin:4px}.button{background:var(--accent);color:#07111c;border:0;border-radius:8px;height:40px;padding:0 14px;font-weight:800}.button:disabled{opacity:.5;cursor:not-allowed}.chat{grid-template-columns:var(--chat) minmax(0,1fr);height:100svh;display:grid}.conversations{border-right:1px solid var(--border);padding:20px 12px;overflow:auto}.conversations>.button{width:100%;margin-bottom:14px}.conversations>button:not(.button){width:100%;color:var(--muted);text-align:left;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:0;border-radius:8px;padding:10px 9px;overflow:hidden}.conversations>button.selected,.conversations>button:hover{color:var(--text);background:var(--raised)}.thread{flex-direction:column;min-height:0;padding:0 28px;display:flex}.thread>header{border-bottom:1px solid var(--border);align-items:center;gap:12px;height:70px;display:flex}.thread h1{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:16px;overflow:hidden}.thread select{margin-left:auto}.thread main{flex:1;overflow:auto}.thread main>article{max-width:780px;margin:18px auto;padding:8px 0;line-height:1.65}.thread article small{color:var(--muted);font-weight:700}.thread article p{white-space:pre-wrap;margin:5px 0}.thread article.user{background:var(--raised);border-radius:12px;max-width:min(82%,640px);margin-left:auto;margin-right:max(50% - 390px,0px);padding:12px 16px}.status{white-space:nowrap;color:var(--ok);font-size:12px}.offline,.warning{color:var(--warn)!important}.warning,.thread>[role=alert]{width:100%;max-width:780px;margin:5px auto;font-size:13px}.composer{border:1px solid var(--border);background:var(--surface);border-radius:18px;align-items:end;gap:8px;width:100%;max-width:780px;margin:16px auto 24px;padding:9px 10px;display:flex}.composer textarea{resize:none;min-height:42px;max-height:180px;color:var(--text);background:0 0;border:0;flex:1;padding:10px}.composer .button{width:40px;padding:0}.auth{place-items:center;min-height:100svh;padding:20px;display:grid}.auth form{background:var(--surface);border:1px solid var(--border);border-radius:18px;width:min(100%,400px);padding:32px}.auth label{gap:7px;margin:16px 0;display:grid}.auth input,.thread select,.account select{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;padding:8px 10px}.auth input{width:100%}.auth .button{width:100%;margin-top:12px}@media (width<=760px){.shell{display:block}.shell>aside{z-index:2;width:280px;display:none;position:fixed;box-shadow:20px 0 60px #0009}.shell>aside.open{display:flex}.brand button{display:block}.mobile{border-bottom:1px solid var(--border);align-items:center;gap:12px;height:56px;padding:0 16px;display:flex}.mobile button{color:var(--text);background:0 0;border:0;font-size:20px}.chat{height:calc(100svh - 56px);display:block}.conversations{border-right:0;border-bottom:1px solid var(--border);gap:8px;height:66px;padding:8px;display:flex;overflow-x:auto}.conversations>.button{white-space:nowrap;width:auto;margin:0}.conversations>button:not(.button){flex:none;width:150px}.thread{height:calc(100svh - 122px);padding:0 12px}.thread>header{height:58px}.thread h1{font-size:14px}.thread select{max-width:115px}.status{font-size:0}.thread article.user{max-width:92%}.composer{margin:10px auto calc(10px + env(safe-area-inset-bottom))}.page{padding:24px 16px}}.conversation-row{align-items:center;display:flex;position:relative}.conversation-row>button:first-child{flex:1}.conversation-row>button:last-of-type{width:28px;height:28px;color:var(--muted);background:0 0;border:0;border-radius:8px}.conversation-row:hover>button:last-of-type{background:var(--raised);color:var(--text)}.menu{z-index:10;background:var(--surface);border:1px solid var(--border);border-radius:10px;min-width:140px;padding:6px;position:absolute;top:34px;right:4px;box-shadow:0 12px 30px #0008}.menu button{width:100%;color:var(--text);text-align:left;background:0 0;border:0;border-radius:6px;padding:8px;display:block}.menu button:hover{background:var(--raised)}.dialog{z-index:20;background:#0009;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.dialog>div{border:1px solid var(--border);background:var(--surface);border-radius:14px;width:min(100%,380px);padding:20px}.dialog input{width:100%;margin:8px 0 12px}.dialog .button{margin-right:8px}.dialog button:not(.button){color:var(--muted);background:0 0;border:0;padding:10px}
