:root{--ink:#17232c;--muted:#78828b;--line:#e6ebed;--teal:#167866;--soft:#eaf4f0;--bg:#fff;--red:#b54747}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);border-radius:8px;padding:9px 16px;transition:background .15s}button:hover{background:#f4f7f6}button:disabled{opacity:.45;cursor:not-allowed}button.primary{background:var(--teal);border-color:var(--teal);color:white}button.primary:hover{background:#116453}button.danger{color:var(--red)}button.ghost{border:0;background:none}button.small{padding:5px 10px;font-size:12px}input,textarea,select{border:1px solid #dce3e4;border-radius:8px;padding:11px 13px;background:white;color:var(--ink);max-width:100%}input:focus,textarea:focus,select:focus{outline:2px solid #a7d6c9;outline-offset:1px}input[type=checkbox]{accent-color:var(--teal);width:17px;height:17px;margin:0;vertical-align:middle}label{display:block;font-size:13px;font-weight:500;margin:16px 0 6px}h1,h2,h3,p{margin:0}h1{font-size:30px;font-weight:650;letter-spacing:-.8px;line-height:1.4}h2{font-size:20px;line-height:1.5}h3{font-size:16px}a{color:var(--teal)}.muted{color:var(--muted)}.tiny{font-size:12px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.stack{display:grid;gap:14px}.full{width:100%}.fill{flex:1;min-width:0}.hide{display:none!important}.app{display:flex;min-height:100dvh}.sidebar{width:232px;border-right:1px solid var(--line);padding:32px 22px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;background:white;z-index:10}.brand{display:flex;gap:11px;align-items:center}.brandmark{background:var(--teal);color:white;width:37px;height:39px;border-radius:11px;display:grid;place-items:center;font-size:22px;font-weight:700}.brand b{font-size:25px;letter-spacing:1px}.brand small{display:block;color:var(--muted);font-size:11px}.nav{display:grid;gap:8px;margin-top:48px}.nav button{text-align:left;border:0;padding:12px 14px;display:flex;align-items:center;gap:12px;font-size:14px}.nav button.active{color:var(--teal);background:var(--soft);font-weight:600}.icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.icon svg{width:100%;height:100%;fill:currentColor}.account{margin-top:auto;padding-top:24px;border-top:1px solid var(--line)}.avatar{width:34px;height:34px;border-radius:50%;background:#edf1f2;color:#5a6b71;display:grid;place-items:center}.account small{display:block;color:var(--muted);font-size:11px}.main{margin-left:232px;padding:45px 54px 35px;width:calc(100% - 232px);max-width:1500px}.heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:32px}.heading p{color:var(--muted);margin-top:7px}.mobile-head{display:none}.search{width:100%;margin-bottom:22px;padding-left:17px;background:#fcfdfd}.lib-row{display:flex;align-items:center;padding:25px 12px;border-bottom:1px solid var(--line);gap:20px;cursor:pointer}.lib-row:hover{background:#fbfdfc}.folder{color:var(--teal);width:38px;height:38px;display:grid;place-items:center;background:var(--soft);border-radius:10px}.folder .icon{width:23px;height:23px}.lib-row h3{font-size:16px;font-weight:600}.lib-row p{font-size:12px;color:var(--muted);margin-top:3px}.count{color:var(--muted);font-size:13px;white-space:nowrap}.empty{text-align:center;padding:78px 20px 35px}.empty .icon{width:52px;height:52px;color:#c6d0d1;margin-bottom:18px}.empty h2{font-size:20px;margin-bottom:10px}.empty p{color:var(--muted);max-width:480px;margin:0 auto 22px}.empty.chat-empty{padding-top:14vh}.format-strip{margin-top:36px;text-align:center;color:#939c9f;font-size:12px}.notice{padding:12px 16px;background:#f5f8f7;border-radius:8px;color:#63746c;font-size:13px;margin-bottom:22px}.document{display:flex;padding:19px 4px;gap:14px;border-bottom:1px solid var(--line)}.file-tag{width:44px;height:45px;background:#f1f5f5;display:grid;place-items:center;border-radius:8px;font-size:10px;font-weight:700;color:#5c7470}.document h3{word-break:break-all;font-size:14px}.status{font-size:11px;color:var(--muted);display:inline-flex;gap:5px;align-items:center}.status.ready{color:var(--teal)}.status.failed{color:var(--red)}.dot{width:6px;height:6px;display:inline-block;background:currentColor;border-radius:50%}.actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.back{padding-left:0;margin-bottom:16px;color:var(--muted)}dialog{width:570px;max-width:calc(100% - 24px);max-height:90dvh;border:1px solid var(--line);border-radius:16px;padding:28px;box-shadow:0 20px 100px #12312625;color:var(--ink)}dialog::backdrop{background:#102d2b55;backdrop-filter:blur(3px)}.modal-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-title button{padding:2px 7px;border:0;font-size:22px;color:var(--muted)}.modal-footer{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);margin-bottom:20px}.tabs button{border:0;border-radius:0;padding:9px 0;color:var(--muted)}.tabs button.active{color:var(--teal);border-bottom:2px solid var(--teal)}.upload-zone{border:1.5px dashed #c3d4d0;padding:28px 15px;text-align:center;border-radius:10px;background:#fcfefd}.upload-zone input{width:100%;border:0;background:transparent;padding:10px 0}.preview-text{white-space:pre-wrap;word-break:break-word;font-size:13px;line-height:1.8}.source-part{border-top:1px solid var(--line);padding:15px 0}.source-part b{display:block;color:var(--teal);margin-bottom:8px}.qa-item{padding:14px 0;border-bottom:1px solid var(--line)}.qa-item p{color:#61716e;font-size:13px;margin-top:6px}.chat-layout{height:calc(100dvh - 80px);display:flex;flex-direction:column}.chat-head{border-bottom:1px solid var(--line);padding-bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:10px}.chat-head h1{font-size:23px}.scope{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;max-height:105px;overflow:auto}.scope label{margin:0;display:flex;gap:7px;align-items:center;font-size:12px;font-weight:400;border:1px solid var(--line);border-radius:6px;padding:6px 9px}.scope label:has(input:checked){background:var(--soft);border-color:#bcdbd1;color:var(--teal)}.messages{flex:1;overflow-y:auto;padding:12px 0 25px;scroll-behavior:smooth}.chat-inner{max-width:790px;margin:0 auto}.user-message{display:flex;justify-content:flex-end;margin:26px 0}.user-message p{max-width:85%;background:#f0f5f3;padding:12px 17px;border-radius:16px 16px 3px 16px;white-space:pre-wrap;word-break:break-word}.assistant{padding:8px 0 25px}.answer-head{display:flex;gap:10px;align-items:center;margin-bottom:15px;color:var(--teal);font-weight:600}.answer-head .brandmark{width:27px;height:28px;font-size:15px;border-radius:8px}.answer-text{white-space:pre-wrap;word-break:break-word;line-height:1.95;font-size:15px;min-height:22px}.answer-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:16px}.sources{display:flex;gap:7px;flex-wrap:wrap;margin-top:18px}.sources button{font-size:11px;color:#61736e;background:#f6f9f8;padding:5px 9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.timer{font-size:12px;font-weight:400;color:var(--muted);margin-left:auto}.pulse{animation:pulse 1.3s infinite}@keyframes pulse{50%{opacity:.4}}.composer{max-width:790px;width:100%;margin:0 auto;border:1px solid #d6e2dd;border-radius:16px;box-shadow:0 4px 18px #173b2d06;padding:10px 13px;background:white}.composer textarea{resize:none;width:100%;border:0;padding:5px;min-height:65px;max-height:160px;outline:none;box-shadow:none;font-size:15px}.compose-bottom{display:flex;justify-content:space-between;align-items:center}.compose-bottom select{padding:5px 8px;border:0;color:var(--muted);font-size:12px;max-width:190px}.send{width:36px;height:36px;border-radius:10px;padding:6px}.mic{padding:5px 10px;border:0;color:var(--muted)}.recording{color:var(--red)!important;background:#fbeeee!important}.compose-note{text-align:center;font-size:11px;color:#8c9697;margin-top:10px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:12px;font-weight:400;color:var(--muted);background:#fafcfc}td,th{padding:17px 15px;border-bottom:1px solid var(--line)}td{font-size:13px}.member-name{font-weight:600}.member-name small{display:block;font-size:11px;color:var(--muted);font-weight:400}.grant-row{display:grid;grid-template-columns:1fr 90px 90px;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);align-items:center}.grant-row label{display:flex;gap:8px;margin:0;align-items:center;font-weight:400}.settings-block{max-width:700px;border-bottom:1px solid var(--line);padding-bottom:28px;margin-bottom:28px}.settings-block h2{margin-bottom:8px;font-size:17px}.settings-block p{font-size:13px;color:var(--muted)}.metric-row{display:flex;gap:45px;margin-top:22px}.metric-row strong{display:block;font-size:24px;font-weight:500}.metric-row span{font-size:12px;color:var(--muted)}.auth-wrap{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#f9fbfa}.auth{width:410px;max-width:100%;padding:38px;border:1px solid var(--line);border-radius:18px;background:white}.auth .brand{margin-bottom:35px}.auth h1{font-size:24px}.auth p{color:var(--muted);font-size:13px;margin:8px 0 22px}.auth input{width:100%}.auth .primary{margin-top:25px;width:100%}.error{color:var(--red);font-size:13px;margin-top:12px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#213d35;color:white;padding:11px 22px;border-radius:10px;z-index:100;display:none;max-width:90%;font-size:13px}.mobile-nav{display:none}button:focus-visible{outline:2px solid var(--teal);outline-offset:3px}.loading{padding:60px;text-align:center;color:var(--muted)}@media(max-width:900px){.sidebar{width:195px;padding:28px 14px}.main{margin-left:195px;width:calc(100% - 195px);padding:32px 26px}.metric-row{gap:25px}}@media(max-width:640px){body{font-size:14px}.sidebar{display:none}.main{margin:0;width:100%;padding:20px 18px 90px}.mobile-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.mobile-head .brandmark{width:28px;height:29px;font-size:17px;border-radius:8px}.mobile-head .brand b{font-size:21px}.mobile-head .brand small{display:none}.heading{margin-bottom:23px;align-items:flex-start;gap:10px}h1{font-size:25px}.heading p{font-size:12px}.heading button{font-size:12px;padding:8px 11px;white-space:nowrap}.lib-row{gap:12px;padding:21px 0}.lib-row h3{font-size:15px}.lib-row p{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lib-row .count{font-size:11px}.folder{width:34px;height:34px}.empty{padding:55px 12px 15px}.empty h2{font-size:18px}.empty p{font-size:13px}.format-strip{font-size:10px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;justify-content:space-around;border-top:1px solid var(--line);background:#fffffff5;backdrop-filter:blur(10px);padding:8px 4px calc(8px + env(safe-area-inset-bottom));z-index:20}.mobile-nav button{border:0;padding:2px 9px;display:grid;justify-items:center;gap:2px;font-size:10px;color:var(--muted);background:transparent}.mobile-nav button.active{color:var(--teal)}.mobile-nav .icon{width:21px;height:21px}.chat-layout{height:calc(100dvh - 155px);min-height:400px}.main:has(.chat-layout){padding-top:12px;padding-bottom:78px}.main:has(.chat-layout) .mobile-head{display:none}.chat-head h1{font-size:20px}.scope{gap:6px;margin-top:12px;max-height:84px}.scope label{font-size:11px;padding:4px 7px}.composer textarea{min-height:48px;font-size:14px}.answer-text{font-size:14px}.empty.chat-empty{padding-top:9vh}.chat-empty h2{font-size:23px}.chat-head{padding-bottom:12px}.document{gap:10px}.document .actions{justify-content:flex-end;max-width:90px}.document .small{padding:3px 6px;font-size:11px}.file-tag{width:34px;height:37px}.table-wrap{margin:0 -10px}td,th{padding:13px 10px;white-space:nowrap}.auth{padding:27px}.metric-row{gap:25px}.metric-row strong{font-size:21px}dialog{padding:22px}.timer{font-size:10px}.grant-row{grid-template-columns:1fr 80px 75px;font-size:12px}}

.answer-text{white-space:normal}.answer-text p{margin:0 0 7px}.answer-text h3{font-size:17px;margin:18px 0 10px}.answer-space{height:9px}.answer-bullet{padding-left:10px;margin:4px 0}.answer-text pre{white-space:pre-wrap;background:#f5f8f7;padding:15px;border-radius:9px;overflow:auto;font-size:12px}.answer-text code{font-size:.9em;background:#f3f6f5;padding:1px 4px;border-radius:4px}.answer-table{overflow:auto;margin:16px 0}.answer-table table{font-size:13px;min-width:360px}.answer-table td,.answer-table th{padding:10px;white-space:normal;border:1px solid var(--line)}.answer-table th{font-weight:600;color:var(--ink)}
