:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#252830;background:#fff;font-synthesis:none;font-size:16px;--muted:#7b808a;--border:#e8eaee;--accent:#b66532;--sidebar:#f5f6f8;--ink:#252830}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:wait;opacity:.6}button,a,input,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid var(--accent)}input:focus,textarea:focus{outline:none}a{color:inherit;text-decoration:none}button svg,svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}.sprite{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.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}.muted{color:var(--muted);font-size:.875rem;line-height:1.8}.brand{display:inline-flex;align-items:center;gap:11px;font-size:1.375rem;letter-spacing:1px;font-weight:650}.brand-mark{display:grid;grid-template-columns:1fr 1fr;gap:4px;width:30px;height:30px;transform:rotate(-6deg);flex-shrink:0}.brand-mark span{border-radius:4px;background:var(--accent)}.brand-mark span:nth-child(2){background:#d8a078}.brand-mark span:nth-child(3){background:#ebcdb6}.brand-mark span:nth-child(4){background:#ba743f}.eyebrow{color:var(--accent);font-size:.875rem;letter-spacing:.06em}.boot{height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:.875rem}.boot .brand-mark{animation:breathe 2s infinite}.icon-button{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;width:34px;height:34px;padding:7px;color:#777e89}.icon-button:hover{background:#e9ecf0;color:var(--ink)}.primary{border:0;background:var(--ink);color:#fff;border-radius:10px;padding:11px 21px;font-size:.9375rem;font-weight:550}.primary:hover{background:#41444b}.secondary{background:#fff;border:1px solid var(--border);border-radius:10px;padding:10px 21px;font-size:.9375rem}.secondary:hover{background:#f5f6f8}input{width:100%;border:1px solid #dde0e5;background:#fff;border-radius:9px;padding:12px 14px;font-size:.9375rem;transition:border-color .15s,box-shadow .15s}input:focus{border-color:#c58b63;box-shadow:0 0 0 3px #c58b6315}label{display:block;font-size:.875rem;margin:24px 0 9px}input::placeholder,textarea::placeholder{color:#a0a5ae}.form-error{font-size:.875rem;line-height:1.6;color:#af4141;margin:14px 0 0}.login-screen{min-height:100dvh;display:grid;grid-template-columns:46% 54%;background:#fff}.login-story{position:relative;overflow:hidden;background:#f3f4f6;min-height:100dvh;padding:44px 52px;display:flex;flex-direction:column;justify-content:space-between}.login-brand{position:relative;z-index:2}.story-copy{margin-top:-28px;position:relative;z-index:2}.story-copy h1{font-size:clamp(2.8rem,4.3vw,4.5rem);font-weight:550;line-height:1.3;letter-spacing:-.04em;margin:20px 0 24px}.accent-dot{color:var(--accent)}.story-copy>p{color:#81858d;font-size:1rem;line-height:2}.story-tags{display:flex;gap:28px;margin-top:42px;font-size:.875rem;color:#666d78}.story-tags span{display:flex;align-items:center;gap:8px}.story-tags svg,.login-note svg{height:17px;width:17px;fill:none;stroke:currentColor;stroke-width:1.6}.story-bottom{font-size:.8125rem;color:#9499a2;position:relative;z-index:2}.story-art{position:absolute;bottom:7%;right:-100px;width:310px;height:310px;transform:rotate(-25deg);opacity:.65}.story-art i{position:absolute;border:1px solid #dce0e6;border-radius:48px;width:170px;height:170px}.story-art i:nth-child(2){left:190px}.story-art i:nth-child(3){top:190px}.story-art i:nth-child(4){left:190px;top:190px;background:#efdfd0;border:0}.story-art i:nth-child(5){width:92px;height:92px;left:235px;top:45px;border-radius:30px;background:#d5a27d;border:0}.login-main{display:flex;align-items:center;justify-content:center;padding:40px}.login-card{width:100%;max-width:362px;padding-bottom:20px}.login-small{color:var(--accent);font-size:.8125rem;letter-spacing:.06em}.login-card h2{font-size:1.875rem;font-weight:550;letter-spacing:-.03em;margin:14px 0 9px}.login-card>.muted{margin:0 0 33px}.password-wrap{position:relative}.password-wrap input{padding-right:45px}.password-wrap .icon-button{position:absolute;right:6px;top:6px}.login-submit{width:100%;margin-top:28px;padding:13px}.login-note{display:flex;align-items:center;justify-content:center;gap:6px;font-size:.8125rem;color:#969ca5;margin-top:23px}.app{height:100dvh;display:flex;overflow:hidden}.sidebar{width:268px;flex-shrink:0;background:var(--sidebar);padding:30px 18px 15px;display:flex;flex-direction:column;z-index:20}.sidebar-heading{padding:1px 12px 28px;display:flex;align-items:center;justify-content:space-between}.new-chat{display:flex;align-items:center;gap:10px;width:100%;border:1px solid #dfe2e7;background:#fff;border-radius:11px;padding:12px 13px;font-size:.875rem;box-shadow:0 1px 2px #25283004}.new-chat:hover{border-color:#c9cdd4;background:#fcfcfd}.new-chat svg{width:18px;height:18px}.new-chat kbd{margin-left:auto;font-family:inherit;font-size:.75rem;color:#afb3bc;letter-spacing:1px}.search-wrap{display:flex;align-items:center;gap:9px;position:relative;padding:0 9px;margin:17px 2px 27px;color:#9298a2}.search-wrap>svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.65}.search-wrap input{border:0;background:transparent;padding:6px 30px 6px 0;font-size:.875rem;box-shadow:none}.search-wrap input:focus{box-shadow:none}.search-wrap kbd{font-size:.75rem;font-family:inherit;position:absolute;right:10px;color:#a2a8b1}.history-heading{font-size:.75rem;color:#959ca6;letter-spacing:.05em;padding:0 13px 12px}.history-list{overflow-y:auto;min-height:0;flex:1;scrollbar-width:thin}.history-row{position:relative;display:flex;align-items:center;margin:3px 0;border-radius:9px;min-height:40px}.history-row:hover{background:#ebedf1}.history-row.active{background:#e6e9ee}.history-open{display:flex;align-items:center;gap:9px;min-width:0;flex:1;padding:12px;border:0;background:transparent;text-align:left;font-size:.875rem}.history-open svg{width:16px;height:16px;color:#9ca2ad}.history-open span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:176px}.history-actions{display:none;padding:0 6px 0 0;gap:0}.history-row:hover .history-actions,.history-row:focus-within .history-actions,.history-row.active .history-actions{display:flex}.history-row:has(.history-actions) .history-open span{max-width:137px}.history-actions button{height:26px;width:26px;padding:5px}.history-actions svg{width:15px;height:15px}.history-empty{font-size:.8125rem;color:#a4aab2;line-height:1.7;padding:0 13px;margin:8px 0;flex:1}.sidebar-footer{margin-top:20px}.knowledge-mini{border-top:1px solid #e3e6eb;padding:19px 10px;display:flex;align-items:center;gap:10px}.mini-book{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:#e9ecf1;border-radius:9px;color:#7f8794}.mini-book svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.65}.knowledge-mini strong{display:block;font-size:.8125rem;font-weight:500}.knowledge-mini div>span{display:block;font-size:.75rem;color:#989eaa;margin-top:4px}.user-area{position:relative}.user-button{display:flex;align-items:center;gap:10px;padding:9px 10px;border:0;border-radius:9px;background:transparent;width:100%;font-size:.875rem}.user-button:hover{background:#e9ecf1}.avatar{height:31px;width:31px;display:flex;align-items:center;justify-content:center;font-size:.8125rem;background:#e3e6ec;border-radius:50%;color:#6f7785}.user-button>svg{margin-left:auto;width:18px;color:#9aa1ad}.user-menu{position:absolute;bottom:calc(100% + 6px);left:0;right:0;border:1px solid var(--border);background:#fff;border-radius:12px;padding:6px;box-shadow:0 8px 25px #24314510}.user-menu button{border:0;background:transparent;display:flex;align-items:center;gap:10px;width:100%;padding:11px 10px;text-align:left;border-radius:7px;font-size:.875rem}.user-menu button:hover{background:#f4f5f7}.user-menu svg{width:17px;height:17px}.workspace{min-width:0;flex:1;position:relative;display:flex;flex-direction:column;background:#fff}.topbar{height:76px;flex:none;padding:0 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f3f4f6;gap:20px}.topbar-left{display:flex;align-items:center;gap:10px;overflow:hidden}.topbar-left>span{font-size:.9375rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#626975}.knowledge-badge{display:flex;align-items:center;gap:7px;border:1px solid #e8eaee;border-radius:20px;font-size:.75rem;padding:7px 11px;color:#8a909c;white-space:nowrap}.knowledge-badge svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6}.scroll-area{flex:1;min-height:0;overflow-y:auto;scroll-behavior:smooth;scrollbar-width:thin}.welcome{max-width:760px;margin:0 auto;padding:clamp(50px,10vh,110px) 30px 28px}.welcome-mark{width:44px;height:44px;gap:5px;margin-bottom:29px}.welcome-mark span{border-radius:7px}.welcome .eyebrow{margin:0 0 13px;font-size:.9375rem;color:#8a7465;letter-spacing:0}.welcome h1{font-size:clamp(1.65rem,2.65vw,2.375rem);font-weight:550;letter-spacing:-.03em;margin:0 0 15px;line-height:1.4}.welcome-description{font-size:.9375rem;color:#969ca6;line-height:1.8;margin:0 0 36px}.suggestions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.suggestions button{border:1px solid #e8eaee;background:#fff;border-radius:13px;padding:20px;text-align:left;position:relative;transition:background .15s,border-color .15s,transform .15s}.suggestions button:hover{background:#faf9f7;border-color:#dbc7b7;transform:translateY(-2px)}.suggestions svg{width:18px;height:18px;color:#b09075;margin-bottom:14px}.suggestions strong{display:block;font-size:.875rem;font-weight:500;margin-bottom:8px}.suggestions span{display:block;font-size:.8125rem;color:#969ca6;line-height:1.6}.compose-area{width:100%;padding:16px 32px 15px;flex:none;background:linear-gradient(transparent,#fff 15%)}.composer{width:100%;max-width:780px;border:1px solid #dfe3e8;border-radius:18px;margin:0 auto;padding:17px 17px 12px;box-shadow:0 3px 14px #25324404;transition:border-color .2s,box-shadow .2s;background:#fff}.composer:focus-within{border-color:#c3b7ae;box-shadow:0 3px 18px #b6653208}.composer textarea{display:block;border:0;resize:none;min-height:53px;max-height:160px;width:100%;padding:1px 3px;line-height:1.65;font-size:.9375rem;background:transparent;color:var(--ink)}.compose-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.mode-pill{display:flex;align-items:center;gap:6px;font-size:.75rem;color:#828995;padding:6px 9px;border-radius:6px;background:#f4f5f7;white-space:nowrap}.mode-pill svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6}.compose-actions{display:flex;align-items:center;gap:12px}.keyboard-hint{color:#a2a8b1;font-size:.75rem}.send-button,.stop-button{border:0;background:var(--ink);color:#fff;border-radius:9px;min-width:66px;padding:9px 16px;font-size:.8125rem;font-weight:500}.send-button:hover,.stop-button:hover{background:#464952}.stop-button{display:flex;align-items:center;gap:7px}.stop-button span{height:9px;width:9px;border-radius:2px;background:#fff}.char-count{color:#a0a6af;font-size:.75rem}.compose-note{font-size:.75rem;color:#a5abb4;text-align:center;margin:12px 0 0;line-height:1.6}.messages{width:100%;max-width:800px;padding:32px 28px 18px;margin:0 auto}.message{margin:0 0 28px;display:flex;gap:14px;align-items:flex-start}.message.user{justify-content:flex-end}.user-bubble{max-width:85%;padding:12px 18px;border-radius:18px 18px 5px 18px;background:#f0f2f5;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9375rem;line-height:1.8}.assistant-mark{width:26px;height:26px;gap:3px;margin-top:5px;flex-shrink:0}.assistant-mark span{border-radius:4px}.assistant-content{min-width:0;flex:1;padding-top:1px}.answer-text{font-size:.9375rem;line-height:1.95;overflow-wrap:anywhere;color:#353a43}.answer-text p{margin:0 0 12px}.answer-text p:last-child{margin-bottom:0}.answer-text h3{font-size:1.02rem;margin:20px 0 10px;font-weight:600}.answer-text ol,.answer-text ul{margin:8px 0 16px;padding-left:23px}.answer-text li{padding-left:3px;margin-bottom:6px}.answer-text strong{font-weight:600}.answer-text pre{white-space:pre-wrap;background:#f5f6f8;border:1px solid #e9ecf0;border-radius:10px;padding:14px;font-size:.8125rem;line-height:1.7;overflow:auto}.answer-text code{font-family:Consolas,monospace;font-size:.86em;background:#f1f3f6;border-radius:4px;padding:2px 4px}.answer-text pre code{background:transparent;padding:0}.citation{display:inline-flex;justify-content:center;align-items:center;vertical-align:super;background:#f2ece6;color:#9b633a;border:0;border-radius:5px;min-width:16px;height:16px;padding:1px 4px;margin:0 2px;font-size:.65rem;line-height:1}.answer-tools{display:flex;align-items:center;gap:5px;margin-top:13px;flex-wrap:wrap}.answer-tools>.icon-button{height:27px;width:28px;padding:6px;color:#a0a6b0}.source-chip{border:1px solid #e5e8ed;border-radius:6px;background:#fff;font-size:.6875rem;color:#8a919e;display:flex;align-items:center;gap:4px;padding:5px 7px;max-width:220px;min-width:0}.source-chip span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.source-chip:hover{border-color:#d7c7ba;color:#946440}.source-chip svg{width:12px;height:12px}.answer-status{font-size:.8125rem;color:#959da9;display:flex;gap:8px;align-items:center;padding:6px 0}.typing-dots{display:inline-flex;gap:3px}.typing-dots i{height:4px;width:4px;border-radius:50%;background:#aaa29b;animation:breathe 1.4s infinite}.typing-dots i:nth-child(2){animation-delay:.2s}.typing-dots i:nth-child(3){animation-delay:.4s}.retry-button{border:1px solid #e0e3e8;border-radius:7px;background:#fff;padding:6px 10px;margin-top:10px;font-size:.8125rem;color:#686f7b}.interrupted{color:#9299a4;font-size:.875rem;padding:5px 0}.source-dialog{position:fixed;left:auto;right:0;top:0;margin:0;height:100dvh;max-height:100dvh;width:420px;max-width:92vw;border:0;border-left:1px solid var(--border);padding:26px;box-shadow:-6px 0 30px #1f293710;color:var(--ink)}dialog::backdrop{background:#242b3828;backdrop-filter:blur(2px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:24px;border-bottom:1px solid var(--border)}.dialog-header h2{font-size:1.25rem;font-weight:550;margin:8px 0 0}.dialog-header .eyebrow{font-size:.75rem}.source-list{padding-top:6px}.source-card{padding:24px 0;border-bottom:1px solid var(--border)}.source-card h3{font-size:.9375rem;line-height:1.6;margin:0 0 8px;font-weight:550}.source-locator{font-size:.75rem;color:#9a8a7d}.source-path{font-size:.75rem;color:#9da3ae;line-height:1.7;margin-top:8px;overflow-wrap:anywhere}.source-quote{white-space:pre-wrap;color:#727a88;font-size:.875rem;line-height:1.95;margin:17px 0;padding-left:12px;border-left:2px solid #e9d9cc}.expand-source{border:0;background:transparent;color:#a4704b;font-size:.8125rem;padding:0}.action-dialog{width:420px;max-width:calc(100vw - 32px);border:1px solid var(--border);padding:28px;border-radius:16px;box-shadow:0 15px 80px #242b3820}.action-dialog h2{font-size:1.25rem;margin:0 0 14px;font-weight:550}.action-dialog .muted{margin-bottom:22px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.danger{background:#af4141}.danger:hover{background:#963535}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#292e38;color:#fff;padding:12px 20px;border-radius:10px;font-size:.875rem;max-width:90vw;box-shadow:0 5px 25px #2223;z-index:100}.mobile-only{display:none}@keyframes breathe{0%,100%{opacity:.35}50%{opacity:1}}@media(min-width:1500px){.welcome{padding-top:13vh}.sidebar{width:280px}}@media(max-height:820px)and(min-width:761px){.welcome{padding-top:40px}.welcome-mark{margin-bottom:20px}.welcome-description{margin-bottom:25px}.suggestions button{padding:16px}.suggestions svg{margin-bottom:9px}}@media(max-width:1050px){.sidebar{width:240px;padding:25px 12px 12px}.topbar{padding:0 26px}.history-open span{max-width:145px}.history-row:has(.history-actions) .history-open span{max-width:115px}.keyboard-hint{display:none}.login-story{padding:36px}.story-copy h1{font-size:3rem}.login-main{padding:35px}}@media(max-width:760px){.mobile-only{display:inline-flex}.sidebar{position:fixed;left:0;top:0;bottom:0;width:268px;transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.sidebar-backdrop{position:fixed;inset:0;border:0;background:#252b3840;z-index:19}.topbar{height:62px;padding:0 16px}.topbar-left{gap:7px}.topbar-left>span{font-size:.875rem}.knowledge-badge{font-size:.6875rem;padding:6px 8px}.welcome{padding:48px 23px 24px}.welcome-mark{width:38px;height:38px;margin-bottom:25px}.welcome h1{font-size:1.75rem}.welcome-description{font-size:.875rem;margin-bottom:28px}.suggestions{gap:10px}.suggestions button{padding:15px 13px}.suggestions strong{font-size:.8125rem}.suggestions span{font-size:.75rem}.suggestions svg{margin-bottom:12px}.compose-area{padding:12px 14px 10px}.composer{border-radius:15px;padding:13px 13px 10px}.composer textarea{font-size:1rem;min-height:49px}.compose-note{font-size:.6875rem;margin-top:9px}.compose-note>span{display:none}.messages{padding:24px 16px}.message{gap:10px;margin-bottom:23px}.answer-text,.user-bubble{font-size:.9375rem}.assistant-mark{width:24px;height:24px}.source-chip{max-width:180px}.login-screen{display:block}.login-story{min-height:0;padding:26px;background:#f5f6f8;display:block}.login-brand{font-size:1.25rem}.story-copy,.story-bottom,.story-art{display:none}.login-main{padding:54px 26px 35px}.login-card{max-width:370px}.login-card h2{font-size:1.75rem}.source-dialog{width:390px;padding:22px}.action-dialog{padding:24px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.answer-text,.user-bubble,.source-quote{font-size:1rem}
