:root{--paper:#f8f7f2;--surface:#fffefa;--ink:#173d32;--ink-light:#3b5b4c;--text:#283d33;--muted:#748076;--line:#e4e7dd;--gold:#9c8454;--gold-light:#f0e9d8;--sage:#e8eee2;--danger:#964d3b;--shadow:0 10px 40px rgba(32,56,41,.045);font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;color:var(--text);background:var(--paper);font-synthesis:none}
*{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:disabled{cursor:not-allowed}button{color:inherit}a{color:var(--ink)}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #b9a576;outline-offset:4px}button{touch-action:manipulation}.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}.skip-link{position:fixed;left:16px;top:-100px;z-index:100;background:var(--ink);color:white;padding:12px 20px;border-radius:10px}.skip-link:focus{top:16px}
.app-shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100svh}.sidebar{position:sticky;top:0;height:100svh;padding:37px 24px 23px;background:#eef0e8;display:flex;flex-direction:column;border-right:1px solid #e1e5d8}.brand{display:flex;align-items:center;gap:12px;text-decoration:none}.brand-seal{font-family:"STSong","SimSun",serif;display:flex;flex-direction:column;justify-content:center;align-items:center;width:39px;height:47px;color:#eee5cf;background:var(--ink);border-radius:7px 1px 7px 1px;font-size:17px;line-height:1.05}.brand strong{display:block;font-family:"STSong","SimSun",serif;font-size:22px;letter-spacing:2px;font-weight:600}.brand small{display:block;font-size:9px;letter-spacing:1.5px;color:#7f8a75;margin-top:5px}.sidebar-divider{height:1px;background:#dce1d3;margin:29px 0}.new-conversation{background:var(--ink);color:#fcfcf8;border:0;border-radius:9px;padding:14px 11px;display:flex;align-items:center;gap:10px;font-size:13px;box-shadow:0 5px 13px #173d3210}.new-conversation:hover{background:#235440}.new-conversation svg{width:17px;height:17px}.nav-label{font-size:10px;letter-spacing:1.3px;color:#899580;margin:32px 13px 12px}.active-nav{display:flex;align-items:center;gap:10px;padding:14px 13px;border:1px solid #d4dccb;border-radius:8px;font-size:13px;background:#e3e9dc;color:var(--ink)}.nav-dot{margin-left:auto;border-radius:50%;width:5px;height:5px;background:var(--gold)}.sidebar-note{margin:39px 12px 0}.note-kicker{font-family:"STSong","SimSun",serif;font-size:17px;letter-spacing:2px;color:#506453}.sidebar-note p{font-size:11px;line-height:2.1;color:#85907c;margin:13px 0 21px}.note-line{width:28px;height:1px;background:#b8bfa9;margin-bottom:21px}.tiny-label{color:var(--muted);font-size:10px;letter-spacing:1.6px}.corpus-summary{font-size:12px;margin-top:10px;color:#49614e}.corpus-version{display:block;font-size:9px;color:#8f977f;line-height:1.8;margin-top:5px;overflow-wrap:anywhere}.sidebar-bottom{margin-top:auto;padding:26px 12px 0}.edition{font-size:10px;color:#62745e;display:flex;gap:7px;align-items:center}.edition i{width:5px;height:5px;background:#a68d5b;border-radius:50%}.sidebar-bottom p{color:#959c89;font-size:10px;line-height:1.8;margin:10px 0 0}
.workspace{min-width:0}.topbar{height:81px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 40px;gap:18px;background:#f8f7f2ed}.breadcrumb{display:flex;gap:14px;align-items:center;font-size:12px;color:#5d6d60}.breadcrumb-slash{color:#b3bbaa}.topbar-actions{display:flex;gap:24px;align-items:center}.service-status{display:flex;align-items:center;gap:7px;font-size:10px;color:#73806b;white-space:nowrap}.service-status i{width:5px;height:5px;background:#9da98f;border-radius:50%}.service-status.is-ready i{background:#608c58}.service-status.is-unavailable i{background:#ab8860}.evidence-toggle{display:none;align-items:center;gap:6px;background:none;border:0;font-size:11px;padding:8px 0}.evidence-toggle svg{width:17px;height:17px}.evidence-toggle>span{border-radius:4px;background:var(--sage);padding:1px 4px}.mobile-brand,.mobile-only{display:none}.connection-notice{font-size:12px;line-height:1.8;margin:18px 40px 0;border:1px solid #e9dcc2;background:#faf3e6;border-radius:8px;padding:11px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#866c3c}.connection-notice button{font-size:11px;border:0;background:none;white-space:nowrap;text-decoration:underline;text-underline-offset:4px;color:#6f582e}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:39px;padding:35px 40px 0;max-width:1400px;margin:0 auto}.conversation-column{min-width:0;display:flex;flex-direction:column;min-height:calc(100svh - 116px)}.welcome{position:relative;padding:34px 0 30px}.welcome-copy{position:relative;z-index:1}.eyebrow{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:2px;color:var(--gold)}.eyebrow>span{display:block;width:19px;height:1px;background:var(--gold)}h1{font-family:"STSong","Songti SC","SimSun",serif;font-weight:400;font-size:55px;line-height:1.3;letter-spacing:1px;margin:26px 0 20px;color:var(--ink)}h1 em{font-style:normal;color:#667758}.welcome-description{font-size:12px;line-height:2.15;color:#7a8673;letter-spacing:.4px}.botanical{position:absolute;top:10px;right:-8px;width:225px;height:290px;stroke:none;opacity:.93}.question-section{position:relative;margin-top:52px;z-index:1}.section-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#5b705b;margin-bottom:14px}.muted-label{font-size:9px;color:#909a88}.example-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.example-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:18px 16px 14px;min-height:132px;background:var(--surface);border:1px solid #e1e5d9;border-radius:11px;transition:border-color .15s,transform .15s,box-shadow .15s;position:relative}.example-card:hover{border-color:#b3bd9f;transform:translateY(-2px);box-shadow:var(--shadow)}.example-card:disabled{opacity:.55}.example-card .example-label{font-size:9px;color:#9b8b66;letter-spacing:1px;margin-bottom:13px}.example-card .example-text{font-size:12px;line-height:1.9;padding-right:4px}.example-card .example-arrow{margin-top:12px;font-size:16px;font-weight:300;align-self:flex-end;color:#859570}.welcome-footnote{display:flex;align-items:center;gap:8px;font-size:10px;color:#8b9583;margin-top:23px;line-height:1.7}.small-star{color:#ad976c}
.composer{position:sticky;bottom:26px;z-index:5;margin-top:auto;border:1px solid #dce2d2;border-radius:14px;background:var(--surface);box-shadow:0 12px 30px #2c443908;padding:15px 18px 13px}.category-group{padding:0;display:flex;gap:3px;border:0;margin:0 0 11px}.category-group label{cursor:pointer}.category-group input{position:absolute;opacity:0;width:1px;height:1px}.category-group span{font-size:10px;display:block;color:#77846b;padding:6px 12px;border-radius:5px;border:1px solid transparent}.category-group input:checked+span{color:#416044;background:#eaf0e3;border-color:#e0e8d6}.category-group input:focus-visible+span{outline:2px solid #9c8454;outline-offset:2px}.category-group input:disabled+span{opacity:.65}textarea{display:block;resize:none;border:0;background:transparent;outline:none!important;width:100%;min-height:65px;max-height:180px;font-size:13px;line-height:1.8;color:#274837;padding:6px 1px}textarea::placeholder{color:#a1a994}textarea:focus-visible{box-shadow:inset 2px 0 #b9a576;padding-left:8px}.composer-bottom{display:flex;align-items:center;gap:10px;margin-top:9px}.composer-bottom>#inputHint{font-size:9px;color:#99a18e;flex:1}.send-button{border:0;background:var(--ink);color:#fcfcf5;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:7px;padding:10px 13px;font-size:11px;min-width:77px}.send-button svg{width:15px;height:15px}.send-button:hover{background:#24513d}.send-button:disabled{background:#d8dfd0;color:#87947c}.cancel-button{border:1px solid #dfe5d7;background:#f5f6f0;border-radius:7px;font-size:11px;padding:9px 12px}.composer-caption{font-size:9px;color:#9aa390;text-align:center;padding:11px 0 14px;line-height:1.8}
.evidence-panel{position:sticky;top:32px;height:calc(100svh - 147px);min-height:380px;display:flex;flex-direction:column;border:1px solid #e2e5da;border-radius:12px;background:#f3f4ed;overflow:hidden;margin:0 0 26px}.evidence-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e1e5d8;padding:23px 20px 19px}.evidence-heading h2{font-family:"STSong","SimSun",serif;font-size:19px;font-weight:400;letter-spacing:1px;margin:8px 0 0}.source-badge{font-family:Georgia,serif;color:#9b9f89;font-size:19px}.evidence-body{overflow-y:auto;padding:18px 17px;flex:1;scrollbar-width:thin;scrollbar-color:#c9d0bf transparent}.empty-evidence{text-align:center;padding:36px 10px;color:#8a977b}.empty-evidence .empty-icon{width:56px;height:56px;background:#e7ebdf;border-radius:50%;display:grid;place-items:center;margin:0 auto 20px}.empty-evidence svg{width:23px;height:23px;color:#76896b}.empty-evidence h3{font-size:12px;font-weight:500;margin:0 0 10px;color:#6a7c5d}.empty-evidence p{font-size:10px;line-height:2;color:#95a18a;margin:0}.evidence-footer{font-size:9px;border-top:1px solid #e1e5d8;padding:15px 15px;color:#909b85;display:flex;gap:7px;align-items:center;justify-content:center}.evidence-footer svg{width:14px;height:14px}.source-card{background:#fffef9;border:1px solid #e1e6d8;border-radius:9px;padding:14px 13px;margin-bottom:12px;scroll-margin-top:12px}.source-card.is-highlighted{border-color:#a58b53;box-shadow:0 0 0 2px #c5b98f33}.source-card-header{display:flex;align-items:center;gap:8px}.citation-badge{flex-shrink:0;min-width:21px;height:21px;padding:2px 4px;border-radius:5px;background:#eaf0e2;color:#507045;font-size:10px;display:grid;place-items:center}.source-title{font-family:"STSong","SimSun",serif;font-size:15px;line-height:1.6;margin:0;overflow-wrap:anywhere;flex:1}.source-category{font-size:9px;color:#9d906a;background:#f5f0e4;padding:3px 5px;border-radius:3px;white-space:nowrap}.source-position{font-size:9px;line-height:1.8;color:#99a08b;margin:9px 0 7px}.source-excerpt{font-size:10px;line-height:1.9;color:#74836b;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.source-open{display:inline-flex;align-items:center;gap:5px;padding:0;background:none;border:0;margin-top:10px;font-size:10px;color:#64805a;text-underline-offset:4px}.source-open:hover{text-decoration:underline}.source-open svg{width:12px;height:12px}.relations-title{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:500;margin:27px 0 13px;color:#5c7752}.relations-title svg{width:15px;height:15px}.relation-path{font-size:10px;display:flex;gap:6px;align-items:center;flex-wrap:wrap;border-bottom:1px dashed #d8dfd0;padding:10px 0;line-height:1.8}.graph-node{color:#4e6b46;background:#e5eddb;border-radius:5px;padding:3px 7px}.graph-relation{font-size:9px;color:#9d936d}.graph-note{font-size:9px;line-height:1.9;color:#98a087;margin:12px 0 0}
.messages{padding:13px 0 28px;flex:1;min-height:0}.message{margin:0 0 28px;animation:appear .22s ease}.question-bubble{background:#e8eee1;margin-left:40px;padding:17px 20px;border-radius:12px 12px 2px 12px;font-size:13px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}.question-meta{font-size:9px;color:#98a089;text-align:right;margin-top:7px}.answer-header{display:flex;align-items:center;gap:9px;margin-bottom:12px}.answer-seal{height:28px;width:28px;border:1px solid #d6dfcb;background:#edf1e5;border-radius:8px;display:grid;place-items:center;font-family:"STSong","SimSun",serif;font-size:16px;color:#55724a}.answer-name{font-size:12px;font-weight:600;color:#42643d}.answer-type{margin-left:auto;font-size:9px;color:#9b8c64}.answer-body{font-size:13px;line-height:2;overflow-wrap:anywhere;padding-left:37px;color:#3a5040}.answer-body p{margin:0 0 13px}.answer-body h1,.answer-body h2,.answer-body h3,.answer-body h4{font-family:inherit;font-size:14px;font-weight:600;line-height:1.8;letter-spacing:0;margin:20px 0 9px;color:#254b35}.answer-body h1{font-size:17px}.answer-body strong{font-weight:600;color:#375d3f}.answer-body ul,.answer-body ol{padding-left:21px;margin:10px 0 15px}.answer-body li{padding-left:2px;margin-bottom:6px}.answer-body table{display:block;max-width:100%;overflow:auto;border-collapse:collapse;font-size:11px;margin:16px 0}.answer-body td,.answer-body th{border:1px solid #dce3d2;padding:8px 10px;text-align:left;min-width:80px}.answer-body th{background:#eff2e8}.answer-body pre{padding:12px;background:#edf0e5;border-radius:7px;overflow-x:auto;white-space:pre}.answer-body code{font-size:11px;background:#edf0e5;border-radius:3px;padding:2px 4px}.answer-body blockquote{border-left:2px solid #acba97;padding:5px 13px;margin:16px 0;background:#f0f3e8;color:#758568}.answer-body a{color:#6e7f4f;text-decoration-color:#c0c9ae;text-underline-offset:4px}.citation-link{display:inline-grid;place-items:center;border:0;background:#e9eee0;color:#66824e;font-size:9px;min-width:17px;height:17px;border-radius:4px;margin:0 2px;padding:0 3px;vertical-align:middle;line-height:1}.answer-actions{margin:15px 0 0 37px;display:flex;gap:14px;align-items:center}.answer-action{font-size:10px;color:#8b967b;background:none;border:0;padding:3px 0;display:flex;gap:5px;align-items:center}.answer-action:hover{color:var(--ink)}.answer-action svg{height:12px;width:12px}.loading-copy{font-size:12px;color:#889674;line-height:2}.loading-dots{display:inline-flex;align-items:center;gap:4px;margin-right:9px}.loading-dots i{width:4px;height:4px;border-radius:50%;background:#849972;animation:pulse 1.4s infinite}.loading-dots i:nth-child(2){animation-delay:.18s}.loading-dots i:nth-child(3){animation-delay:.36s}.error-copy{color:#95694d}.insufficient-note{background:#f3f0e5;border:1px solid #e5dfcc;border-radius:8px;padding:13px 15px;color:#8b7958;font-size:11px;line-height:1.9;margin-bottom:14px}
dialog{border:1px solid #dce3d1;box-shadow:0 24px 80px #18352233;background:var(--surface);color:var(--text);border-radius:15px;padding:0;max-height:85svh}dialog::backdrop{background:#203d3269;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:23px 25px 18px;border-bottom:1px solid var(--line);gap:20px}.dialog-header h2{font-family:"STSong","SimSun",serif;font-size:23px;font-weight:400;margin:6px 0 0}.dialog-close{height:32px;width:32px;border:0;border-radius:50%;background:#f0f2e8;font-size:23px;color:#859376;line-height:1;flex-shrink:0}.document-dialog{width:min(800px,calc(100vw - 32px));overflow:hidden}.document-meta{font-size:11px;color:#8d997d;padding:12px 25px;line-height:1.9;overflow-wrap:anywhere}.document-content{overflow:auto;max-height:calc(85svh - 185px);padding:10px 25px 25px;scrollbar-width:thin}.document-content .document-loading{padding:25px 0;color:#909b84;font-size:12px}.original-line{display:flex;font-size:12px;line-height:1.95;min-height:24px;white-space:pre-wrap;overflow-wrap:anywhere}.line-number{font-family:monospace;color:#a4ae98;font-size:10px;min-width:37px;padding-right:10px;text-align:right;user-select:none;flex-shrink:0}.line-text{min-width:0}.original-line.is-cited{background:#f0e9d6;border-left:2px solid #b4995f;margin-left:-12px;padding-left:10px}.document-dialog-footer{border-top:1px solid var(--line);font-size:10px;color:#94a087;padding:12px 25px}.evidence-dialog{width:min(500px,calc(100vw - 24px))}.evidence-dialog .evidence-body{max-height:calc(85svh - 84px);padding:20px}.toast{position:fixed;bottom:23px;left:50%;transform:translateX(-50%);z-index:100;background:#244738;color:#f7f8ee;padding:11px 18px;border-radius:8px;font-size:12px;box-shadow:0 8px 32px #173d321f}.icon-button{border:1px solid #dce2d3;background:#eff2e7;border-radius:6px;height:29px;width:29px;font-size:19px}
@keyframes pulse{0%,65%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}@keyframes appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1600px){.content-grid{padding-top:56px;gap:55px;grid-template-columns:minmax(0,1fr) 320px}.conversation-column{min-height:calc(100svh - 137px)}.welcome{padding-top:40px}h1{font-size:66px}.botanical{width:270px;height:320px;right:13px}.welcome-description{font-size:13px}.question-section{margin-top:65px}.example-card{min-height:145px;padding:21px}.example-card .example-text{font-size:13px}.composer{margin-top:36px}.evidence-panel{height:calc(100svh - 170px)}}
@media(max-width:1250px){.app-shell{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding:32px 18px 22px}.brand{gap:10px}.brand strong{font-size:20px}.brand small{font-size:8px}.content-grid{padding:28px 28px 0;gap:25px;grid-template-columns:minmax(0,1fr) 250px}.topbar{padding:0 28px}.botanical{width:180px;right:-15px;opacity:.8}h1{font-size:48px}.example-card{padding:15px 11px}.example-grid{gap:8px}.connection-notice{margin-right:28px;margin-left:28px}.welcome-description{font-size:11px}}
@media(max-width:1100px){.app-shell{display:block}.sidebar{display:none}.breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:9px;font-size:16px;letter-spacing:1px}.mini-seal{display:grid;place-items:center;background:var(--ink);color:#ece1c7;border-radius:5px 1px 5px 1px;width:28px;height:30px;font-family:"SimSun",serif}.mobile-only{display:block}.topbar{height:70px}.content-grid{max-width:1080px;padding-top:26px}.conversation-column{min-height:calc(100svh - 96px)}.welcome{padding-top:28px}.botanical{width:210px;right:0}h1{font-size:54px}.evidence-panel{height:calc(100svh - 122px)}.question-section{margin-top:45px}.composer{margin-top:10px}}
@media(max-width:900px){.content-grid{display:block;max-width:810px;padding:28px 30px 0}.evidence-panel{display:none}.evidence-toggle{display:flex}.topbar-actions{gap:17px}.conversation-column{min-height:calc(100svh - 98px)}.welcome{padding:28px 0 35px}.botanical{width:245px;height:310px;right:12px;top:0}.welcome-description{font-size:13px}h1{font-size:60px}.question-section{margin-top:56px}.example-card{padding:20px 18px;min-height:145px}.example-card .example-text{font-size:13px}.composer{margin-top:auto}.connection-notice{max-width:750px;margin:16px auto 0}.answer-body{font-size:14px}}
@media(max-width:580px){.topbar{height:64px;padding:0 18px;gap:10px}.mobile-brand{font-size:15px}.topbar-actions{gap:10px}.service-status{font-size:9px}.service-status span{max-width:50px;overflow:hidden;text-overflow:ellipsis}.evidence-toggle{font-size:10px;gap:4px}.evidence-toggle svg{display:none}.icon-button{height:26px;width:26px}.content-grid{padding:21px 20px 0}.conversation-column{min-height:calc(100svh - 85px)}.welcome{padding:20px 0 25px}.eyebrow{font-size:9px;letter-spacing:1.2px}h1{font-size:45px;margin-top:26px;line-height:1.35}.welcome-description{font-size:11px;line-height:2.2}.botanical{width:166px;height:252px;right:-18px;top:3px;opacity:.65}.question-section{margin-top:38px}.example-grid{grid-template-columns:1fr;gap:9px}.example-card{flex-direction:row;align-items:center;padding:14px;min-height:62px;gap:12px;border-radius:9px}.example-card .example-label{font-size:9px;width:49px;flex-shrink:0;margin:0;line-height:1.8}.example-card .example-text{font-size:11px;flex:1;line-height:1.8}.example-card .example-arrow{margin:0;align-self:center;font-size:16px}.section-label{font-size:10px}.welcome-footnote{font-size:9px;margin-top:19px}.composer{padding:12px 14px 11px;bottom:24px;border-radius:12px}.composer textarea{font-size:12px;min-height:58px}.category-group span{font-size:9px;padding:5px 10px}.composer-bottom>#inputHint{font-size:8px}.keyboard-hint{display:none}.send-button{font-size:10px;padding:9px 11px;min-width:66px}.cancel-button{font-size:10px;padding:8px}.composer-caption{font-size:8px;padding:9px 0 10px}.question-bubble{margin-left:27px;font-size:12px;padding:14px 16px}.answer-body{padding-left:0;font-size:13px}.answer-actions{margin-left:0}.answer-type{font-size:8px}.messages{padding-top:8px}.connection-notice{margin:12px 20px 0;padding:10px 12px;font-size:11px}.dialog-header{padding:19px 19px 15px}.dialog-header h2{font-size:20px}.document-meta{padding:11px 18px;font-size:10px}.document-content{padding:8px 15px 22px}.original-line{font-size:11px}.line-number{min-width:27px;font-size:9px}.document-dialog-footer{padding:11px 18px;font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}/* Keep welcome suggestions in normal flow; a bottom-sticky composer must not cover them. */
.welcome:not([hidden]) ~ .composer {position:relative;bottom:auto;margin-top:10px}
@media(min-width:1101px) and (max-height:820px){
  .welcome{padding-top:8px;padding-bottom:12px}
  h1{font-size:40px;line-height:1.2;margin:16px 0 12px}
  .welcome-description{line-height:1.8;font-size:11px}
  .botanical{width:155px;height:190px;top:0;right:18px}
  .question-section{margin-top:22px}
  .section-label{margin-bottom:10px}
  .example-card{min-height:94px;padding:12px 14px 10px}
  .example-card .example-label{margin-bottom:6px}
  .example-card .example-text{line-height:1.6}
  .example-card .example-arrow{margin-top:6px}
  .welcome-footnote{margin-top:12px}
  .composer{padding:12px 16px}
  .composer textarea{min-height:42px}
}
