:root{font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;color:#1d303c;background:#eaf0f4;font-synthesis:none;font-size:16px;--accent:#087fa5;--muted:#607581;--line:#dce6ec;--radius:12px}*{box-sizing:border-box}body{margin:0}button,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:8px;padding:10px 15px;transition:background .15s}button:disabled{opacity:.5;cursor:wait}button:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #309ac3;outline-offset:3px}button:hover{filter:brightness(.96)}h1,h2,p{margin:0}h2{font-size:1rem}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);max-width:1360px;margin:24px auto;height:calc(100dvh - 48px);min-height:540px;background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 16px 60px #243e5310}.sidebar{background:#f7f9fb;border-right:1px solid var(--line);padding:28px 22px;display:flex;flex-direction:column;gap:32px;overflow-y:auto}.brand{display:flex;gap:12px;align-items:center}.brand strong{display:block;font-size:1.05rem}.brand span:not(.brand-mark){display:block;font-size:.8rem;color:var(--muted);margin-top:5px}.brand-mark,.empty-mark{background:var(--accent);color:white;display:grid;place-items:center;border-radius:12px;font-size:1.4rem;font-weight:700;width:44px;height:44px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.quiet{color:var(--accent);background:transparent;padding:6px 8px;font-size:.875rem}.outline{color:#2b5266;border:1px solid #cbdde7;background:white;font-size:.875rem}.sidebar .outline{width:100%;margin-bottom:16px}#profiles{display:flex;flex-direction:column;gap:8px}.profile{display:flex;align-items:center;gap:12px;background:transparent;width:100%;text-align:left;padding:12px}.profile.selected{background:#e2f2f8;color:#075d7e}.profile strong{display:block;font-size:.94rem}.profile small{display:block;font-family:monospace;font-size:.75rem;margin-top:5px;overflow:hidden;text-overflow:ellipsis;max-width:160px;color:var(--muted)}.avatar{width:42px;height:42px;background:#e4f1f7;color:#126686;border-radius:50%;display:grid;place-items:center;font-weight:600;flex-shrink:0}.profile .avatar{width:36px;height:36px;background:white}.muted{color:var(--muted)}.small{font-size:.8rem;line-height:1.7}.sidebar-section>p{margin-top:18px}.connection-panel{border-top:1px solid var(--line);padding-top:24px;margin-top:auto}.connection-panel h2{margin-bottom:18px}dl{margin:0 0 12px;font-size:.875rem}dl>div{display:flex;justify-content:space-between;margin:12px 0;gap:8px}dt{color:var(--muted)}dd{margin:0;text-align:right}#service-note{margin:12px 0}.sidebar-footer{font-size:.75rem;color:var(--muted);line-height:1.6}.chat{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff}.chat-header{display:flex;align-items:center;gap:14px;padding:23px 32px;border-bottom:1px solid var(--line)}.chat-heading{min-width:0}.chat-header h1{font-size:1.1rem;font-weight:600;margin-bottom:5px}.chat-header p{font: .8rem/1.5 Consolas,monospace;color:var(--muted);word-break:break-all}.local-label{margin-left:auto;color:var(--muted);font-size:.8rem;white-space:nowrap}.chat-notice{padding:12px 32px;color:#486573;background:#f5f9fc;font-size:.8rem;line-height:1.6}.messages{flex:1;overflow-y:auto;padding:28px 32px;display:flex;flex-direction:column;gap:20px;min-height:0;background:#fcfdfe;scroll-behavior:smooth}.empty{margin:auto;max-width:360px;text-align:center;padding:32px 12px}.empty-mark{margin:0 auto 24px;background:#e9f3f8;color:var(--accent);width:64px;height:64px;font-size:2rem;border-radius:20px}.empty h2{font-size:1.2rem;margin-bottom:12px}.empty p{color:var(--muted);line-height:1.9;font-size:.94rem}.empty span{display:block;margin-top:20px;font-size:.8rem;color:var(--muted)}.message{max-width:76%;align-self:flex-start;min-width:100px}.message.visitor{align-self:flex-end}.message-label{font-size:.75rem;color:var(--muted);margin-bottom:6px}.message.visitor .message-label,.message.visitor .meta{text-align:right}.bubble{background:#eff3f7;padding:13px 17px;border-radius:12px 12px 12px 3px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.95rem;line-height:1.7}.visitor .bubble{background:#e3f3f9;color:#154c64;border-radius:12px 12px 3px 12px}.bubble img{display:block;max-width:100%;max-height:300px;border-radius:7px;cursor:zoom-in}.meta{margin-top:6px;color:var(--muted);font-size:.75rem;line-height:1.6}.meta.failed,.meta.partial{color:#ac3b33}.composer{padding:20px 32px 16px;border-top:1px solid var(--line);background:white}.composer textarea{resize:vertical;min-height:66px;max-height:160px;width:100%;border:0;background:white;color:#1d303c;line-height:1.7;padding:0 0 10px;display:block}.composer textarea::placeholder{color:#6a7f8c}.composer textarea:focus{outline-offset:5px}.composer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.composer-actions>div{display:flex;align-items:center;gap:14px}.primary{background:var(--accent);color:white;font-size:.875rem;font-weight:600;padding:11px 22px}.composer-note{color:var(--muted);font-size:.75rem;line-height:1.7;margin-top:14px}.attachment{padding:8px 12px;background:#f0f6f9;border-radius:8px;margin-bottom:14px;font-size:.875rem;display:flex;justify-content:space-between;align-items:center;gap:8px}.attachment span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.error{margin:12px 24px 0;background:#fff0ee;color:#8c3028;padding:12px 16px;border-radius:8px;font-size:.875rem;line-height:1.6}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}[hidden]{display:none!important}@media(max-width:900px){.workspace{margin:0;height:100dvh;min-height:0;border-radius:0;border:0;grid-template-columns:245px minmax(0,1fr)}.sidebar{padding:22px 14px;gap:24px}.chat-header,.composer{padding:20px}.messages{padding:24px 20px}.chat-notice{padding:10px 20px}.local-label{display:none}}@media(max-width:620px){.workspace{display:flex;flex-direction:column;height:100dvh}.sidebar{padding:12px 14px;display:block;border-right:0;border-bottom:1px solid var(--line);flex-shrink:0;max-height:230px}.brand{display:none}.sidebar-section>p,.sidebar-footer,.connection-panel h2,.connection-panel dl,.connection-panel .quiet{display:none}.section-title{margin:0 0 4px}.section-title h2{font-size:.875rem}.sidebar .outline{width:auto;margin:0 0 8px;padding:6px 10px}#profiles{flex-direction:row;overflow-x:auto;gap:6px}.profile{width:auto;white-space:nowrap;padding:8px;gap:6px}.profile .avatar,.profile small{display:none}.profile strong{font-size:.8rem}.connection-panel{padding:0;border:0;margin:0}#service-note{font-size:.75rem;margin:6px 0 0;line-height:1.4}.chat{flex:1}.chat-header{padding:14px 16px}.chat-notice{padding:8px 16px;font-size:.75rem}.messages{padding:18px 16px;gap:16px}.message{max-width:88%}.composer{padding:14px 16px 12px}.composer-note{font-size:.7rem}.composer textarea{font-size:1rem}.empty{padding:18px 8px}.empty-mark{display:none}.composer-actions>div{gap:8px}.composer-actions .small{font-size:.7rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
