:root{font:15px/1.65 'Segoe UI',Tahoma,Arial,sans-serif;color:#213449;background:#f4f7fa;--navy:#204e7a;--line:#dce4eb;--green:#17695c;--muted:#617285}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit}a{color:var(--navy);text-decoration:none}a:hover{text-decoration:underline}button:hover{background:#eaf0f5}button:disabled{opacity:.48;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #729bc0;outline-offset:3px}button,a{touch-action:manipulation}.sr-only,.skip{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.skip:focus{clip:auto;z-index:1000;top:8px;left:8px;width:auto;height:auto;padding:8px;background:white}.workspace{height:calc(100dvh - var(--shell-height,148px));display:grid;grid-template-columns:220px minmax(360px,1fr) 330px}.history-pane{border-right:1px solid var(--line);padding:22px 16px 14px;display:flex;flex-direction:column;min-height:0;background:#f4f7fa}.pane-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;min-height:30px}.icon-button{font-size:23px;border-radius:5px;min-width:34px;min-height:34px;line-height:1}.history-pane .pane-heading strong{font-weight:650}.history-pane .pane-heading .icon-button{display:none}.new-session{margin:22px 0 18px;border:1px solid #b8cbdb;border-radius:6px;background:white;text-align:left;padding:10px 12px;font-size:13px;color:var(--navy)}.new-session span{font-size:18px;margin-right:6px}.history-list{flex:1;overflow:auto;min-height:0}.history-item{display:flex;align-items:flex-start;gap:4px;margin-bottom:8px;border-radius:6px}.history-item.active{background:#e4edf5}.history-item>button:first-child{flex:1;min-width:0;text-align:left;padding:12px 10px;font-size:13px;line-height:1.5;border-radius:6px}.history-item>button:first-child strong{display:block;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-item time{display:block;font-size:11px;color:var(--muted);margin-top:6px}.history-item .remove-history{padding:6px;font-size:18px;color:var(--muted)}.sidebar-foot{border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column;gap:8px;font-size:12px}.sidebar-foot>button{text-align:left;padding:0;color:var(--navy)}.sidebar-foot details{font-size:11px;color:var(--muted)}.sidebar-foot summary{cursor:pointer}.sidebar-foot p{line-height:1.65;margin:8px 0}#main{min-width:0;min-height:0;background:white;display:flex;flex-direction:column}.conversation-bar{height:62px;min-height:62px;display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:0 25px}.conversation-bar h1{font-size:15px;font-weight:600;margin:0;white-space:nowrap}.conversation-actions{margin-left:auto;display:flex;gap:8px;align-items:center}.conversation-actions>button{font-size:12px;padding:5px 9px;border-radius:5px;white-space:nowrap}.conversation-actions>button[aria-pressed=true]{background:#e8f0f7}.conversation-actions #runStatus{font-size:11px;color:var(--muted)}#sourceCount{font-size:11px;display:inline-block;padding:0 6px;background:#e8f0f5;border-radius:8px;margin-left:3px}#historyToggle{display:none;font-size:20px}.chat-scroll{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable;scroll-behavior:auto}.welcome{max-width:680px;padding:clamp(45px,10vh,110px) 28px 50px;margin:0 auto}.welcome>img{margin-bottom:12px;border-radius:50%}.welcome h2{font-size:26px;font-weight:550;letter-spacing:-.025em;line-height:1.4;max-width:420px;margin:0 0 25px}.suggestions{display:grid;gap:8px;max-width:470px}.suggestions button{text-align:left;border:1px solid var(--line);padding:11px 14px;border-radius:5px;font-size:13px;color:#435b70}.turn{padding:24px 30px 14px;border-bottom:1px solid #edf1f5;max-width:850px;margin:auto}.question-row{display:flex;justify-content:flex-end;margin-bottom:24px}.question-text{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;background:#edf3f8;padding:11px 16px;border-radius:9px 9px 2px 9px;max-width:92%;line-height:1.65;margin:0}.response{font-size:15px;line-height:1.8;max-width:76ch}.response h2{font-size:17px;line-height:1.5;font-weight:650;margin:0 0 16px}.response h3{font-size:14px;font-weight:650;margin:20px 0 8px}.evidence-block{margin:0 0 20px}.evidence-block p{white-space:pre-wrap;margin:5px 0 10px;line-height:1.85;overflow-wrap:anywhere}.evidence-block .evidence-label{font-size:12px;color:var(--muted);font-weight:550;margin:0 0 3px}.citation{color:var(--navy);font-size:11px;font-weight:650;vertical-align:super;padding:2px 4px;margin-left:3px;border-radius:3px;line-height:1.1}.citation:hover{background:#dfeaf3}.answer-note{font-size:12px;color:var(--muted);line-height:1.7;border-top:1px solid #edf1f5;padding-top:10px;margin:17px 0 0}.notice{background:#fff9ef;border-left:3px solid #b17d34;padding:10px 13px;margin-bottom:18px;font-size:13px;line-height:1.7}.notice p{margin:0}.notice+.notice{margin-top:-10px}.response details{margin:16px 0}.response summary{color:var(--navy);font-size:13px;cursor:pointer}.response .references{padding-left:22px;font-size:12px;line-height:1.65}.references li{margin:10px 0;overflow-wrap:anywhere}.references a{margin-left:6px}.response-actions{display:flex;align-items:center;gap:5px;margin:16px 0 5px;flex-wrap:wrap}.response-actions button{font-size:12px;color:#51677b;padding:5px 8px;border-radius:4px}.response-actions button:hover{background:#edf3f8}.loading-line{font-size:13px;color:var(--muted);display:flex;gap:9px;align-items:center;padding:10px 0}.loading-line:before{content:'';width:13px;height:13px;border:2px solid #d1dce6;border-top-color:var(--navy);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.composer{padding:16px 26px 12px;border-top:1px solid var(--line);background:white}.composer form{border:1px solid #bacbd9;border-radius:10px;max-width:800px;margin:auto;box-shadow:0 2px 8px #204e7a06}.composer form:focus-within{border-color:#688eaf;box-shadow:0 0 0 2px #eaf1f6}.composer textarea{border:0;display:block;resize:vertical;min-height:68px;max-height:180px;width:100%;padding:13px 16px;outline:none;background:transparent;color:#213449;font-size:14px}.composer textarea::placeholder{color:#7b8b99}.composer-tools{display:flex;align-items:center;gap:13px;padding:4px 10px 10px;flex-wrap:wrap;font-size:11px;color:#536d81}.composer-tools>button:first-child{font-size:11px;padding:4px 7px;border:1px solid #d6e0e9;border-radius:4px}.composer-tools label{display:flex;align-items:center;gap:4px;white-space:nowrap}.composer-tools input{accent-color:var(--navy);width:13px;height:13px;margin:0}.composer-tools .send{margin-left:auto}.send{background:var(--navy);color:white;border-radius:5px;padding:7px 14px;white-space:nowrap}.send:hover{background:#153c62}.send span{margin-left:10px;font-size:18px}.composer-note{display:flex;gap:10px;justify-content:space-between;font-size:10px;color:#718394;margin:6px auto 0;max-width:800px}.composer-note button{font-size:10px;padding:0}.sources-pane{min-height:0;min-width:0;display:flex;flex-direction:column;padding:20px 18px 10px;border-left:1px solid var(--line);background:#f8fafc}.connection-status{font-size:11px;color:#62768a;line-height:1.7;padding:12px 0 10px;display:flex;flex-wrap:wrap;gap:5px 9px}.connection-status span{display:flex;align-items:center;gap:5px}.connection-status i{width:5px;height:5px;border-radius:50%;background:#9caebe}.connection-status .ok i{background:var(--green)}.connection-status .error i{background:#b17d34}.source-tabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:4px}.source-tabs button{flex:1;padding:9px 6px;font-size:12px;border-bottom:2px solid transparent}.source-tabs [aria-selected=true]{border-color:var(--navy);font-weight:650;color:var(--navy)}.source-list{flex:1;overflow:auto;min-height:0;padding:0 0 20px}.source-card{padding:16px 0;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}.source-card .source-kind{font-size:11px;color:#637a8d;display:flex;gap:6px;align-items:center;margin-bottom:7px}.source-card h3{font-size:14px;line-height:1.6;margin:0 0 6px;font-weight:600}.source-card .source-title{padding:0;text-align:left;line-height:1.6;color:#213f5c}.source-card .source-meta{font-size:12px;line-height:1.7;color:#60758a;margin:4px 0}.source-card .source-links{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;margin-top:8px}.source-card.selected{background:#edf4f8;box-shadow:0 0 0 8px #edf4f8}.source-card details{font-size:11px;margin-top:8px;color:var(--muted)}.source-card summary{cursor:pointer}.source-card details p{margin:6px 0}.source-detail{flex:1;min-height:0;overflow:auto}.source-detail .back-sources{font-size:12px;color:var(--navy);padding:9px 0}.source-detail h3{font-size:14px;line-height:1.65;margin:12px 0}.source-detail .source-meta{font-size:12px;color:var(--muted)}.source-detail blockquote{font-size:13px;line-height:1.85;margin:18px 0;border-left:2px solid #bdcddd;padding-left:12px;white-space:pre-wrap}.source-detail .source-links{display:flex;gap:12px;flex-wrap:wrap;font-size:12px}.source-detail .used-label{font-size:11px;color:var(--green);margin-top:18px}.source-foot{display:flex;gap:12px;font-size:10px;border-top:1px solid var(--line);padding-top:10px;flex-wrap:wrap}.empty-note{font-size:12px;color:var(--muted);padding:22px 0;line-height:1.8}.full-reference{font-size:13px;line-height:1.8}dialog{width:min(640px,94vw);max-height:88dvh;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:24px;color:#213449;box-shadow:0 20px 70px #20344933}dialog::backdrop{background:#102b4650}.dialog-heading{display:flex;justify-content:space-between;gap:18px;align-items:center}.dialog-heading h2{font-size:19px;margin:0}.muted{font-size:12px;color:var(--muted)}.case-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}#caseForm label{display:flex;flex-direction:column;font-size:12px;gap:5px;margin-top:10px}#caseForm input:not([type=checkbox]),#caseForm select,#caseForm textarea,#copyText{width:100%;border:1px solid #bfceda;border-radius:5px;padding:8px;color:inherit;background:white}#caseForm .confirm{flex-direction:row;align-items:flex-start;gap:9px;margin:18px 0}.dialog-actions{display:flex;justify-content:space-between;gap:15px;font-size:12px}.catalog-entry{padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.catalog-entry p{font-size:12px;color:var(--muted);margin:4px 0}#caseSummary{font-size:11px;background:#eef4f9;padding:5px 10px;max-width:800px;margin:0 auto 8px;border-radius:4px}#toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#213449;color:white;border-radius:5px;font-size:12px;padding:9px 15px;z-index:100}.backdrop{display:none}[hidden]{display:none!important}.focused .workspace{grid-template-columns:minmax(0,1fr)}.focused .history-pane,.focused .sources-pane{display:none}.focused #main{max-width:100%;width:100%}.focused .conversation-bar,.focused .composer{padding-left:max(26px,calc((100% - 850px)/2));padding-right:max(26px,calc((100% - 850px)/2))}.sources-closed:not(.focused) .workspace{grid-template-columns:220px minmax(360px,1fr)}.sources-closed:not(.focused) .sources-pane{display:none}@media(min-width:941px){.focused .conversation-bar h1:after{content:' — Tập trung';color:var(--muted);font-size:12px;font-weight:400}}
@media(max-width:1180px){.workspace{grid-template-columns:190px minmax(340px,1fr) 290px}.history-pane{padding-left:12px;padding-right:12px}.sources-pane{padding-left:14px;padding-right:14px}.turn{padding-left:24px;padding-right:24px}.conversation-bar{padding:0 20px}.composer{padding-left:20px;padding-right:20px}.composer-tools{gap:9px}.conversation-actions #runStatus{display:none}.conversation-bar h1{font-size:14px}.sources-closed:not(.focused) .workspace{grid-template-columns:190px minmax(340px,1fr)}}
@media(max-width:1000px){.workspace,.sources-closed:not(.focused) .workspace{grid-template-columns:200px minmax(0,1fr)}.sources-pane{display:none;position:fixed;right:0;top:var(--shell-height,148px);bottom:0;width:min(365px,92vw);z-index:45;border-left:1px solid var(--line);box-shadow:-10px 0 40px #21344920}.source-open .sources-pane,.source-open.focused .sources-pane{display:flex}.source-open .backdrop{display:block;position:fixed;inset:var(--shell-height,148px) 0 0;background:#132f4a35;z-index:40}.conversation-actions{gap:2px}.composer-tools{gap:12px}}
@media(max-width:680px){.workspace,.sources-closed:not(.focused) .workspace{height:calc(100dvh - var(--shell-height,148px));grid-template-columns:minmax(0,1fr)}.history-pane{display:none;position:fixed;top:var(--shell-height,148px);bottom:0;left:0;width:min(285px,85vw);z-index:45;box-shadow:10px 0 40px #21344920;background:#f4f7fa}.history-open .history-pane,.history-open.focused .history-pane{display:flex}.history-pane .pane-heading .icon-button{display:block}#historyToggle{display:block}.history-open .backdrop{display:block;position:fixed;inset:var(--shell-height,148px) 0 0;background:#132f4a35;z-index:40}.source-open .backdrop{top:var(--shell-height,148px)}.sources-pane{top:var(--shell-height,148px)}.conversation-bar{height:54px;min-height:54px;padding:0 12px;gap:6px}.conversation-bar h1{font-size:13px}.conversation-actions #focusButton{display:none}.conversation-actions>button{font-size:12px}.turn{padding:19px 18px 14px}.question-text{font-size:13px;padding:10px 12px;max-width:98%}.response{font-size:14px}.response h2{font-size:16px}.welcome{padding:55px 24px 30px}.welcome h2{font-size:25px;max-width:300px}.welcome>img{width:46px;height:46px}.composer{padding:10px 12px 9px}.composer textarea{font-size:14px;padding:10px 12px;min-height:63px}.composer-tools{font-size:10px;padding:3px 7px 7px;gap:8px}.composer-tools>button:first-child{font-size:10px}.composer-tools input{width:12px;height:12px}.composer-tools .send{padding:5px 10px}.composer-tools .send span{margin-left:3px}.composer-note{font-size:9px}.composer-note>span{max-width:75%}.composer-note button{font-size:9px}.case-grid{grid-template-columns:1fr}.focused .conversation-bar,.focused .composer{padding-left:12px;padding-right:12px}}
@media(prefers-reduced-motion:reduce){.loading-line:before{animation:none}}@media print{.workspace{display:block;height:auto}#main,.chat-scroll{display:block;overflow:visible}.turn{padding:0;border:0;max-width:none;break-inside:auto}.response details>*{display:block}.response details summary{display:none}.response{font-size:11pt}.response .references{font-size:9pt}}

.composer-tools #sourcePicker,.composer-tools #aiToggle{font-size:13px;padding:7px 11px;border:1px solid #b9cbd9;border-radius:6px;display:inline-flex;align-items:center;gap:8px;color:#204e7a;font-weight:600;background:#fff;min-height:36px}.composer-tools #aiToggle.ai-on{background:#146bb4;color:#fff;border-color:#146bb4;opacity:1}.composer-tools #aiToggle.ai-off{background:#edf1f5;color:#607184;border-color:#c5d0d9;opacity:.65;cursor:pointer}.composer-tools #aiToggle.ai-off:hover{opacity:.65}.composer-tools #aiToggle.ai-unavailable{background:#edf1f5;color:#607184;border-color:#c5d0d9;opacity:.35;filter:grayscale(1);cursor:not-allowed}.composer-tools #sourcePicker span{font-size:11px;background:#edf3f8;border-radius:4px;padding:1px 5px}.composer-tools #aiState{font-size:12px;font-weight:400}.composer-tools #caseButton{font-size:12px;padding:7px 10px}.ai-access-status{max-width:800px;margin:7px auto 0;font-size:11px;color:#526b80;line-height:1.6}.source-option{display:flex;gap:12px;align-items:flex-start;padding:17px 0;border-bottom:1px solid #dce4eb;font-size:14px}.source-option input{accent-color:#204e7a;width:18px;height:18px;flex-shrink:0;margin-top:3px}.source-option strong{display:block}.source-option small{display:block;font-size:12px;line-height:1.7;color:#63788b;margin-top:4px}#sourceForm .send{margin-top:14px}#sourceError{font-size:13px;color:#9d3434}.answer-scope{font-size:13px;color:#526b80;margin-bottom:18px}.response blockquote{margin:8px 0 12px;border-left:3px solid #b8cddd;padding:0 0 0 14px;white-space:pre-wrap;line-height:1.85}.source-context{font-size:12px;color:#526b80;line-height:1.7}.response .references{font-size:13px}.response h3{font-size:15px;margin-top:22px}.response .answer-note{margin:0;border:0;padding:0}.response h2{font-size:20px}.welcome{padding-top:46px}.welcome h2{font-size:25px}.response .notice{font-size:13px}@media(max-width:680px){.composer-tools{gap:7px}.composer-tools #sourcePicker,.composer-tools #aiToggle{font-size:12px;padding:6px 8px;min-height:34px}.composer-note{font-size:10px}.ai-access-status{font-size:10px}.workspace,.sources-closed:not(.focused) .workspace{height:calc(100dvh - var(--shell-height,148px))}.welcome{padding-top:30px}.response h2{font-size:18px}}

.review-required{display:inline-block;color:#825319;background:#fff6e6;border:1px solid #ecd7ae;padding:5px 10px;border-radius:4px;font-size:12px;font-weight:600;margin:0 0 10px}

.ai-access-status:empty{display:none}
