:root{color-scheme:dark;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;background:#111214;color:#edeef2}*{box-sizing:border-box}body{margin:0}button,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid #8eaaff;outline-offset:2px}[hidden]{display:none!important}
.chat-launch{margin-left:auto;margin-right:18px;border:1px solid #353940;background:#202228;border-radius:9px;padding:10px 14px;color:#d8dde9;font-size:13px;white-space:nowrap}.chat-launch:hover{background:#292d36;border-color:#65728c}.chat-launch span{margin:0 5px}
.chat-page{height:100dvh;overflow:hidden}.chat-app{height:100%;display:flex}.chat-sidebar{width:254px;flex:none;display:flex;flex-direction:column;border-right:1px solid #292c31;background:#17191d;padding:20px 12px 14px}.chat-brand{display:flex;align-items:center;gap:8px;padding:8px 12px 25px;font-size:18px;color:#b9c9ff}.chat-brand strong{color:#f0f1f5;letter-spacing:2px}.chat-brand span{font-size:10px;letter-spacing:2px;color:#7e828e;margin-left:auto}.chat-new{width:100%;text-align:left;border:1px solid #3d434e;border-radius:10px;background:#24272e;color:#f3f4f7;padding:12px 14px;font-size:14px}.chat-new:hover{background:#30343d}.chat-sidebar-label{font-size:12px;color:#838894;padding:27px 12px 10px}.chat-conversations{overflow:auto;flex:1;min-height:0}.chat-row{display:flex;align-items:center;gap:2px;border-radius:9px;margin:3px 0}.chat-row.active{background:#2b3039}.chat-row:hover{background:#242831}.chat-row-main{flex:1;min-width:0;text-align:left;border:0;background:transparent;padding:11px 10px;color:#d1d4dc;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-row-action{border:0;background:transparent;color:#7d8492;padding:7px 5px;font-size:14px;opacity:0}.chat-row:hover .chat-row-action,.chat-row.active .chat-row-action,.chat-row-action:focus-visible{opacity:1}.chat-row-action:hover{color:#fff}.chat-sidebar-foot{border-top:1px solid #30343a;margin-top:14px;padding:16px 10px 2px;display:flex;flex-direction:column;gap:10px;font-size:12px;color:#999fa9}.chat-sidebar-foot a:hover{color:#fff}
.chat-main{flex:1;min-width:0;display:flex;flex-direction:column;background:#111214}.chat-header{height:70px;flex:none;display:flex;align-items:center;gap:12px;padding:0 28px;border-bottom:1px solid #25272c}.chat-header h1{font-size:17px;font-weight:600;margin:0}.chat-header>span{font-size:11px;color:#717680;margin-left:auto}.chat-mobile-menu{display:none;border:0;background:transparent;color:#ddd;font-size:20px}.chat-thread{flex:1;overflow:auto;padding:36px max(28px,calc((100% - 760px)/2)) 26px}.chat-empty{min-height:100%;display:grid;place-content:center;text-align:center}.chat-empty h2{font-size:28px;font-weight:550;margin:0 0 12px}.chat-empty p{color:#858b98;font-size:14px;line-height:1.7}.chat-message{margin:0 0 28px}.chat-message.user{display:flex;justify-content:flex-end}.chat-bubble{max-width:min(85%,620px);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;font-size:15px}.chat-message.user .chat-bubble{background:#2b3038;padding:11px 16px;border-radius:18px 18px 5px 18px}.chat-message.assistant .chat-bubble{max-width:100%;padding:0 4px}.chat-message.assistant{position:relative;padding:3px 0 12px}.chat-copy{border:0;background:transparent;color:#858b97;font-size:12px;padding:6px 4px;margin-top:8px}.chat-copy:hover{color:#fff}.chat-pending{color:#9298a5;animation:chat-pulse 1.4s ease-in-out infinite}@keyframes chat-pulse{50%{opacity:.45}}.chat-compose-wrap{width:min(100%,820px);margin:0 auto;padding:0 28px 20px}.chat-form{border:1px solid #42464f;border-radius:18px;background:#24262c;display:flex;align-items:flex-end;padding:10px 10px 10px 16px;box-shadow:0 8px 30px #0002}.chat-form:focus-within{border-color:#7383a3}.chat-form textarea{flex:1;min-width:0;max-height:180px;min-height:44px;resize:none;background:transparent;border:0;outline:0;color:#f5f5f6;font-size:14px;line-height:1.6;padding:10px 0 5px}.chat-form textarea::placeholder{color:#8b8d96}.chat-form button{width:34px;height:34px;border:0;border-radius:50%;background:#f1f1f2;color:#181a1e;font-size:23px;line-height:1}.chat-form button:disabled{opacity:.4;cursor:default}.chat-footnote{text-align:center;color:#747984;font-size:11px;margin:10px 0 0}.chat-error{color:#e9a5a5;font-size:12px;margin:0 0 9px}.chat-gate{height:100dvh;display:grid;place-content:center;text-align:center;padding:24px}.chat-gate h1{font-size:22px}.chat-gate p{color:#9298a3}.chat-gate a{color:#a7baff}.chat-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:740px){.chat-sidebar{position:absolute;z-index:5;top:0;bottom:0;left:0;transform:translateX(-100%);transition:transform .2s;box-shadow:20px 0 40px #0005}.chat-sidebar.open{transform:translateX(0)}.chat-mobile-menu{display:block}.chat-header{padding:0 18px}.chat-header>span{display:none}.chat-thread{padding:25px 18px}.chat-compose-wrap{padding:0 14px 14px}.chat-bubble{max-width:92%}.chat-launch{padding:8px 10px;margin-right:8px}.chat-launch span{display:none}}
.chat-more,.chat-memory-open{background:transparent;border:1px solid #383d47;border-radius:8px;color:#b9c2d0;padding:9px 12px;font-size:12px;text-align:center;margin:8px 4px 0}.chat-more:hover,.chat-memory-open:hover{background:#292d35;color:#fff}.chat-more-messages{align-self:center;margin:0 0 8px}.chat-memory-open{margin-top:14px;text-align:left;font-size:13px}.chat-memory-panel{position:fixed;inset:0;z-index:30;background:#0009;display:grid;place-items:center;padding:20px}.chat-memory-dialog{width:min(640px,100%);max-height:min(75vh,720px);display:flex;flex-direction:column;background:#1b1d22;border:1px solid #444955;border-radius:16px;box-shadow:0 20px 70px #0008}.chat-memory-dialog header{display:flex;justify-content:space-between;gap:20px;padding:22px 24px;border-bottom:1px solid #333741}.chat-memory-dialog h2{font-size:19px;margin:0 0 8px}.chat-memory-dialog header p{font-size:12px;line-height:1.6;color:#9da4b1;margin:0}.chat-memory-dialog header button{align-self:flex-start;background:transparent;border:0;font-size:24px;color:#aeb6c4}.chat-memory-list{overflow:auto;padding:12px 24px 24px;color:#aeb6c4;font-size:13px}.chat-memory-item{padding:14px 0;border-bottom:1px solid #323741}.chat-memory-item p{margin:0 0 10px;line-height:1.7;color:#e3e5eb;white-space:pre-wrap;overflow-wrap:anywhere}.chat-memory-item div{display:flex;gap:8px}.chat-memory-item button{background:#292d35;border:1px solid #424754;border-radius:7px;color:#cbd1dd;font-size:12px;padding:6px 10px}.chat-memory-item button:hover{background:#383e49}
