:root{color-scheme:dark;font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#e9edf3;background:#0b1018;font-size:14px;font-synthesis:none;--muted:#96a5b9;--line:#263140;--mint:#a1e7d4}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}input,textarea,select{color:inherit}button,a,input,textarea,select{ -webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--mint);outline-offset:3px}[hidden]{display:none!important}
.brand{display:flex;align-items:center;gap:11px;font-size:18px;font-weight:650;letter-spacing:.02em}.brand small{font-size:10px;display:block;letter-spacing:.24em;color:var(--mint);margin-top:3px}.eyebrow{font-size:11px;letter-spacing:.12em;color:var(--mint)}.muted{color:var(--muted);line-height:1.8}.small{font-size:11px}.login-page{min-height:100svh;padding:54px 22px 30px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(ellipse at 15% 15%,#17353866,transparent 50%),radial-gradient(ellipse at 90% 90%,#2237554d,transparent 45%)}.login-card{width:min(100%,440px);padding:36px;background:#111a24cc;border:1px solid #2b3b47;border-radius:26px;box-shadow:0 28px 90px #0005}.login-card .eyebrow{margin-top:42px}.login-card h1{font-size:33px;line-height:1.45;letter-spacing:-.04em;margin:12px 0 16px}.login-card .muted{font-size:13px}.login-card label{display:block;margin:22px 0 9px;font-size:12px;color:#d2dce7}.login-card input{width:100%;border:1px solid #33404e;background:#0c141e;border-radius:11px;padding:13px 14px}.primary{width:100%;border:0;border-radius:11px;padding:14px 16px;background:var(--mint);color:#102a29;font-weight:650;margin-top:26px;display:flex;justify-content:space-between}.login-foot{font-size:11px;line-height:1.7;color:var(--muted);margin:20px 0 0}.install-note{max-width:400px;text-align:center;font-size:11px;line-height:1.7;color:var(--muted);margin-top:25px}.error{color:#ffb4b4;line-height:1.7;overflow-wrap:anywhere}
.workspace{height:100dvh;display:grid;grid-template-columns:278px minmax(0,1fr);overflow:hidden}.sidebar{min-width:0;background:linear-gradient(160deg,#11232a,#101823 45%);border-right:1px solid #202d3b;padding:26px 18px 0;display:flex;flex-direction:column;min-height:0;overflow:auto}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:36px}.icon-button{border:1px solid #314251;background:transparent;color:#c9d8e5;border-radius:10px;width:32px;height:32px;font-size:21px}.section-label{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:.06em;color:var(--muted);margin:0 10px 12px}.host-list{display:grid;gap:8px;max-height:30vh;overflow:auto}.host-button,.bot-button{width:100%;border:1px solid transparent;border-radius:13px;color:inherit;background:transparent;text-align:left;padding:12px;display:flex;align-items:center;gap:11px}.host-button{border-color:#293a48;background:#13202b}.host-button:hover,.bot-button:hover{background:#1b2b39}.host-button.active{border-color:#6aa597;background:#1c3538}.host-icon{width:30px;height:25px;border:1.5px solid #8fa4b9;border-radius:5px;position:relative;flex:none}.host-icon:after{content:"";width:13px;height:1.5px;background:#8fa4b9;position:absolute;bottom:-5px;left:7px}.host-copy{min-width:0;flex:1}.host-name,.bot-name{font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.host-status{font-size:10px;color:var(--muted);display:block;margin-top:5px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#778395;margin-right:5px}.dot.online{background:var(--mint);box-shadow:0 0 9px #a1e7d455}.host-check{font-size:12px;color:var(--mint)}#host-help{padding:0 10px;margin:12px 0 24px}.bot-list{flex:1;min-height:90px;overflow:auto}.bot-button.active{background:#243445;border-color:#34495a}.bot-avatar{width:33px;height:33px;border-radius:10px;background:#223341;display:grid;place-items:center;color:var(--mint);font-size:16px}.bot-sub{color:var(--muted);font-size:10px;margin-top:4px}.account-row{border-top:1px solid var(--line);padding:20px 7px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}.account-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-button{border:0;background:none;color:var(--mint);padding:4px;white-space:nowrap;font-size:11px}
.chat{display:flex;flex-direction:column;min-height:0;min-width:0;background:radial-gradient(ellipse at 80% 0,#17263955,transparent 55%)}.chat-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:28px 38px 20px}.chat-header h1{font-size:20px;letter-spacing:-.02em;margin:7px 0 0;font-weight:600}.connection{font-size:11px;color:var(--muted);border:1px solid #304352;border-radius:24px;padding:7px 11px;white-space:nowrap}.connection.live{color:var(--mint);border-color:#3c655e}.execution-note{font-size:11px;line-height:1.6;color:#a5b6c8;background:#15202c;border-block:1px solid #202e3e;padding:10px 38px}.chat-alert{margin:12px 32px 0;padding:9px 14px;border:1px solid #5c3b42;background:#281d26;border-radius:9px;font-size:12px}.thread-bar{padding:16px 38px 4px;display:flex;align-items:center;gap:10px;color:var(--muted);font-size:11px}.thread-bar select{min-width:0;max-width:65%;background:#15212d;border:1px solid #344355;border-radius:8px;padding:6px 10px}.thread-bar #model-label{margin-left:auto;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.messages{flex:1;overflow:auto;padding:24px max(24px,calc((100% - 820px)/2));scrollbar-color:#34485b transparent;overscroll-behavior:contain}.empty{height:100%;min-height:180px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:20px}.empty img{width:68px;height:68px;margin-bottom:21px}.empty h2{font-size:20px;font-weight:500;margin:0 0 12px}.empty p{max-width:390px;margin:0;font-size:12px;line-height:1.9;color:var(--muted)}.message-row{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 25px;gap:7px}.message-row.user{align-items:flex-end}.message-meta{font-size:10px;color:var(--muted);padding:0 4px}.message-body{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-size:14px;padding:1px 4px;color:#e0e8f0}.user .message-body{background:#233546;border:1px solid #304758;border-radius:16px 16px 4px 16px;padding:12px 17px;max-width:88%}.message-note{font-size:11px;line-height:1.8;color:#b3bbcc;background:#172330;border-radius:9px;padding:10px 12px;white-space:pre-wrap;max-width:100%;overflow-wrap:anywhere}.load-more{display:block;margin:0 auto 24px;color:var(--mint);background:#15232d;border:1px solid #344b58;border-radius:20px;padding:7px 18px;font-size:11px}.working{font-size:12px;color:var(--mint);padding:10px 4px}.composer-wrap{padding:15px 32px 18px}.composer{max-width:850px;margin:auto;background:#162331;border:1px solid #314353;border-radius:21px;box-shadow:0 10px 35px #0002;padding:14px 15px 11px}.composer:focus-within{border-color:#659688}.composer textarea{resize:none;display:block;width:100%;background:transparent;border:none;outline:none;padding:2px 1px 8px;font-size:14px;line-height:1.7;max-height:180px}.composer textarea:focus-visible{outline:none}.composer textarea::placeholder{color:#899bad}.composer-footer{display:flex;align-items:center;gap:12px;justify-content:space-between}#send-note{font-size:10px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}.send-button{width:35px;height:35px;border:0;border-radius:50%;font-size:23px;color:#10252a;background:var(--mint);flex:none}.composer-hint{max-width:850px;display:flex;justify-content:space-between;font-size:10px;color:#90a0b2;margin:10px auto 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.sidebar{padding:12px 14px 9px;border-right:0;border-bottom:1px solid var(--line);overflow:visible;max-height:32dvh}.sidebar-heading{margin-bottom:10px}.sidebar .brand img{width:29px;height:29px}.sidebar .brand{font-size:15px}.sidebar .brand small{display:inline;margin-left:7px}.sidebar .section-label,.bots-label,#host-help{display:none}.host-list{display:flex;max-height:80px;flex-shrink:0;gap:7px}.host-button{flex:0 0 175px;padding:9px 11px}.host-icon{width:23px;height:20px}.host-icon:after{left:4px}.bot-list{display:flex;gap:4px;flex:0 0 auto;overflow:auto;min-height:0;max-height:58px;margin-top:7px}.bot-button{width:auto;flex:none;padding:6px 9px;max-width:200px}.bot-avatar{height:26px;width:26px;font-size:12px}.bot-sub{display:none}.bot-name{font-size:12px}.account-row{position:absolute;top:16px;right:60px;border:0;padding:0}.account-row span{display:none}.chat-header{padding:15px 18px 12px}.chat-header .eyebrow{display:none}.chat-header h1{font-size:17px;margin:0}.connection{font-size:10px;padding:5px 8px}.execution-note{padding:8px 18px;font-size:10px}.thread-bar{padding:10px 18px 0}.messages{padding:20px 18px}.chat-alert{margin:9px 15px 0;font-size:11px}.message-body{font-size:14px}.composer-wrap{padding:10px 12px max(10px,env(safe-area-inset-bottom))}.composer{padding:11px 12px 9px;border-radius:18px}.composer textarea{font-size:16px}.composer-hint{font-size:9px}.login-card{padding:27px}.login-card h1{font-size:30px}.login-card input{font-size:16px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,border-color .15s}.working{animation:pulse 1.7s ease-in-out infinite}@keyframes pulse{50%{opacity:.55}}}
