:root{--navy:#101827;--blue:#3478e5;--ink:#172033;--muted:#66758a;--line:#e2e8f0;--bg:#f5f7fb}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);line-height:1.6}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #81aef5;outline-offset:2px}.app{display:flex;min-height:100vh}.side{width:214px;flex-shrink:0;background:linear-gradient(180deg,var(--navy),#111d31);color:#dbe5f5;padding:24px 14px;display:flex;flex-direction:column}.brand{padding:6px 12px 25px;border-bottom:1px solid #2b3850;margin-bottom:20px}.brand b{font-size:19px;color:#fff;line-height:1.6}.brand span{display:block;font-size:12px;color:#9aaecb;margin-top:12px}.menu{display:grid;gap:6px}.menu button,.side-logout{background:transparent;border:0;color:#bdc9dc;text-align:left;padding:10px 12px;border-radius:7px;font-size:14px}.menu button:hover,.menu button.active,.side-logout:hover{background:#243451;color:#fff}.bottom{margin-top:auto;padding:34px 12px 16px;color:#98aaca;font-size:12px}.side-logout{border-top:1px solid #2b3850;border-radius:0}.main{flex:1;min-width:0}.top{min-height:76px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 32px}.top h1{font-size:18px;margin:0;white-space:nowrap}.status{color:#17623b;background:#ecfdf3;border:1px solid #bbf7d0;padding:5px 10px;border-radius:20px;font-size:12px;text-align:center}.content{padding:24px 32px 40px;max-width:1420px}.view{display:none}.view.active{display:block}.eyebrow{color:var(--blue);font-weight:600;font-size:12px;letter-spacing:.08em}.title{font-size:27px;font-weight:650;margin:7px 0 24px}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:19px;text-align:center}.metric{font-size:29px;font-weight:650;margin:8px 0}.local-label{font-size:24px;color:#17623b}.muted,.hint{color:var(--muted)}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;margin-top:18px;padding:22px}.panel h2{font-size:17px;margin:0 0 16px}.panel h2:not(:first-child){margin-top:24px}.pilot-notice{padding:12px 16px;background:#fff8e7;border:1px solid #eddfba;border-radius:8px;line-height:1.8;margin:0 0 24px}.security-notice{padding:12px;background:#edf6ff;border:1px solid #c5ddfb;border-radius:6px}label{display:block;font-weight:500}input,textarea,select{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:6px;margin:5px 0 16px;background:#fff}textarea{min-height:110px;resize:vertical}.btn{background:var(--blue);color:#fff;border:0;border-radius:6px;padding:10px 16px;margin-right:8px}.btn.secondary{background:#edf3ff;color:#255db8}.json{background:#f5f7fa;padding:16px;border-radius:7px;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;line-height:1.8}.setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.knowledge-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;white-space:pre-line;overflow-wrap:anywhere}th{color:var(--muted);font-size:12px;font-weight:600}td{min-width:110px}.source-cell{min-width:200px;max-width:380px}.department-tag{display:inline-block;margin:4px 10px 4px 0;padding:7px 11px;border-radius:6px;background:#edf3ff;color:#255db8}.error{color:#9f2418;background:#fff0ee;padding:12px 16px;border-radius:7px}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.login-box{background:white;border:1px solid var(--line);border-radius:16px;padding:36px;max-width:450px;width:100%;box-shadow:0 14px 35px #17203310}.login-box h1{font-size:25px;line-height:1.4;margin:12px 0}.login-box .btn{width:100%;margin:8px 0}.login-box .hint{font-size:12px;line-height:1.8}.login-box form{margin-top:22px}.login-box input{padding:12px}.login-box label{margin-top:10px}#content{min-height:220px}#q{min-height:75px}#current-user{font-size:12px}@media(max-width:900px){.side{width:180px}.grid{grid-template-columns:1fr 1fr}.content{padding:20px}.top{padding:15px 20px;flex-wrap:wrap}.setting-grid{grid-template-columns:1fr}.brand b{font-size:17px}}@media(max-width:600px){.app{display:block}.side{width:100%;padding:12px}.brand{padding:4px 8px 12px;margin-bottom:10px}.brand b br{display:none}.brand span,.bottom{display:none}.menu{grid-template-columns:repeat(3,1fr);gap:4px}.menu button{text-align:center;padding:8px 4px;font-size:13px}.side-logout{align-self:end;padding:8px;margin-top:10px}.content{padding:16px}.top{padding:14px 16px}.grid{gap:10px}.card{padding:14px 8px}.metric{font-size:24px}.title{font-size:23px}.panel{padding:16px}.login-box{padding:26px}}
/* Conversational assistant and source-grounded graph views. */
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.section-heading .title{margin-bottom:18px}.small-note{font-size:12px;color:var(--muted);line-height:1.6}.section-heading>.small-note{margin-bottom:14px}.chat-layout{display:grid;grid-template-columns:225px minmax(0,1fr);border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden;min-height:640px}.conversation-panel{background:#f8fafc;border-right:1px solid var(--line);padding:18px 12px;display:flex;flex-direction:column;min-width:0}.conversation-panel h3{font-size:12px;color:var(--muted);font-weight:600;margin:24px 10px 10px}.new-conversation{width:100%;margin:0}.conversation-list{display:grid;align-content:start;gap:6px;max-height:440px;overflow-y:auto}.conversation-empty{font-size:13px;padding:0 10px}.conversation-item{border:1px solid transparent;border-radius:7px;background:transparent;text-align:left;padding:10px;width:100%;min-width:0;color:var(--ink)}.conversation-item:hover{background:#edf2f8}.conversation-item.active{background:#eaf1ff;border-color:#cfdef9}.conversation-item-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.conversation-item time{display:block;font-size:11px;color:var(--muted);margin-top:4px}.history-note{font-size:11px;color:var(--muted);margin:20px 10px 0;line-height:1.8;padding-top:14px;border-top:1px solid var(--line)}.chat-panel{display:flex;flex-direction:column;min-width:0}.chat-heading{border-bottom:1px solid var(--line);padding:18px 22px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.chat-heading h3{margin:0;font-size:16px;overflow-wrap:anywhere}.chat-heading p{font-size:12px;margin:5px 0 0;line-height:1.6}.conversation-actions{display:flex;gap:6px;flex-shrink:0;align-items:center}.text-button{border:0;background:transparent;color:#255db8;padding:6px 3px;text-align:left}.danger{color:#af3c32}.messages{padding:22px;min-height:345px;height:min(50vh,510px);overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth}.chat-empty{display:flex;flex-direction:column;align-items:center;text-align:center;max-width:590px;margin:26px auto 12px}.assistant-symbol{width:52px;height:52px;background:#edf3ff;border:1px solid #ceddfa;border-radius:16px;color:#2864be;display:grid;place-items:center;font-weight:700;font-size:23px}.chat-empty h3{font-size:21px;margin:18px 0 6px}.chat-empty>p{font-size:13px;max-width:490px;margin:0 0 22px}.prompt-list{width:100%;display:grid;gap:8px}.prompt-button{padding:10px 14px;text-align:left;border:1px solid var(--line);border-radius:8px;background:#fff;color:#405570;font-size:13px}.prompt-button:hover{background:#f3f7ff;border-color:#bcd0f0}.chat-composer{padding:16px 22px 18px;border-top:1px solid var(--line);margin-top:auto}.chat-composer label{font-size:12px;color:#52637b}.chat-composer #q{min-height:86px;max-height:210px;margin:7px 0 10px;background:#fcfdff}.composer-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px}.composer-bottom>.muted{font-size:11px}.composer-bottom .btn{margin:0;flex-shrink:0}.message{display:flex;align-items:flex-start;gap:12px;margin-bottom:23px}.message-avatar{width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;background:#eaf1ff;color:#2763bd;font-size:13px;font-weight:600}.user-message .message-avatar{background:#edf0f4;color:#5a697d}.message-body{min-width:0;flex:1}.message-meta{display:flex;align-items:center;gap:12px;font-size:12px;margin:3px 0 7px}.message-meta time{font-size:11px;color:var(--muted)}.message-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-size:14px}.user-message .message-content{background:#f1f5fb;padding:10px 14px;border-radius:0 10px 10px 10px;display:inline-block;max-width:100%}.pending-message.assistant-message{color:var(--muted)}.citations{margin:14px 0 0;border:1px solid var(--line);border-radius:7px;padding:8px 12px;font-size:12px}.citations summary{cursor:pointer;color:#376293;font-weight:500}.citation-card{padding:10px 0;border-top:1px solid var(--line);margin-top:8px;overflow-wrap:anywhere}.citation-card p{margin:5px 0}.citation-card blockquote,.graph-evidence blockquote{margin:8px 0 0;padding:8px 10px;border-left:3px solid #b6ccee;background:#f7f9fc;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.chat-warnings{padding:10px 22px;background:#fff9ed;border-top:1px solid #f1e2bf;color:#886119;font-size:12px;white-space:pre-wrap}.graph-toolbar{margin-top:0}.graph-toolbar p{margin-bottom:0}.graph-form-row{display:flex;gap:12px;align-items:center}.graph-form-row input{margin:6px 0}.graph-form-row .btn{margin:0;white-space:nowrap;flex-shrink:0}.graph-view-tabs{display:flex;gap:8px;margin:20px 0 12px}.graph-view-tabs button{border:1px solid var(--line);background:#fff;border-radius:6px;padding:7px 16px;color:var(--muted)}.graph-view-tabs button.active{background:#eaf1ff;border-color:#bdd1f2;color:#255db8}.graph-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px}.graph-canvas-panel{background:#fff;border:1px solid var(--line);border-radius:10px;min-width:0;overflow:hidden}.graph-canvas{min-height:390px;display:flex;align-items:center;justify-content:center;background-color:#fff;background-image:radial-gradient(#e1e7f1 1px,transparent 1px);background-size:19px 19px}.graph-canvas svg{width:100%;height:auto;display:block;min-height:390px;max-height:610px}.graph-canvas-panel>.small-note{border-top:1px solid var(--line);margin:0;padding:11px 16px}.graph-detail{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px;max-height:680px;overflow-y:auto;min-width:0}.graph-detail h3{font-size:16px;margin:4px 0 12px;overflow-wrap:anywhere}.graph-detail p{font-size:12px}.graph-empty{min-height:390px;max-width:420px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;text-align:center}.graph-empty h3{font-size:19px;margin-bottom:6px}.graph-empty p{font-size:13px}.graph-node{cursor:pointer;outline:none}.graph-node circle{fill:#eaf1ff;stroke:#90b5ef;stroke-width:2}.graph-node .node-initial{fill:#2b5ea9;font-size:16px;font-weight:700;pointer-events:none}.graph-node .node-label{fill:#273c58;font-size:13px;font-weight:500;paint-order:stroke;stroke:#fff;stroke-width:5px;stroke-linejoin:round;pointer-events:none}.graph-node.node-color-1 circle{fill:#e8f7f1;stroke:#83c9b1}.graph-node.node-color-2 circle{fill:#fff4e6;stroke:#e9bd78}.graph-node.node-color-3 circle{fill:#f0eafd;stroke:#b5a0e2}.graph-node.node-color-4 circle{fill:#fcecf1;stroke:#e4a0b8}.graph-node.selected circle,.graph-node:hover circle,.graph-node:focus circle{stroke:#275fb5;stroke-width:4}.graph-edge{cursor:pointer;outline:none}.edge-hit{stroke:transparent;stroke-width:17}.edge-line{stroke:#b4c1d3;stroke-width:1.6}.edge-text{font-size:10px;fill:#6b7e98;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}.graph-edge:hover .edge-line,.graph-edge.selected .edge-line,.graph-edge:focus .edge-line{stroke:#3478e5;stroke-width:3}.graph-edge:hover .edge-text,.graph-edge.selected .edge-text,.graph-edge:focus .edge-text{fill:#255db8}.graph-evidence{font-size:12px;padding:12px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.graph-evidence strong{font-weight:600}.relation-label{color:#255db8;background:#edf3ff;border-radius:5px;padding:7px 10px}.node-relation{border-top:1px solid var(--line);padding-top:10px;margin-top:15px}.node-relation h4{font-size:12px;line-height:1.7;margin:0 0 10px;overflow-wrap:anywhere}.graph-node-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.node-chip{background:#f4f7fc;border:1px solid #dce5f1;color:#3d587c;border-radius:6px;font-size:12px;padding:5px 9px;text-align:left}.cloud-consent{font-size:11px;min-width:190px;display:flex;align-items:flex-start;gap:7px;line-height:1.6}.cloud-consent input{width:15px;height:15px;flex-shrink:0;margin:2px 0 0}.btn.small{font-size:12px;padding:6px 9px;margin-bottom:5px}.top #model-status{max-width:290px}.panel .graph-node-list+h3{margin-top:12px}@media(max-width:1100px){.chat-layout{grid-template-columns:185px minmax(0,1fr)}.chat-heading{flex-wrap:wrap}.graph-layout{grid-template-columns:minmax(0,1fr)}.graph-detail{max-height:360px}.graph-canvas{min-height:340px}.graph-canvas svg{min-height:340px}}@media(max-width:760px){.chat-layout{grid-template-columns:minmax(0,1fr)}.conversation-panel{border-right:0;border-bottom:1px solid var(--line);padding:12px}.conversation-panel h3{margin:12px 0 6px}.conversation-list{max-height:140px;grid-template-columns:repeat(2,minmax(0,1fr))}.history-note{margin:10px 0 0;padding-top:8px}.messages{height:430px;padding:16px;min-height:280px}.chat-composer{padding:14px 16px}.chat-heading{padding:14px 16px}.section-heading{flex-wrap:wrap}.section-heading>.small-note{display:none}.graph-form-row{flex-direction:column;align-items:stretch;gap:4px}.graph-form-row .btn{align-self:flex-start}.composer-bottom{align-items:flex-end}.chat-empty{margin-top:12px}.chat-empty h3{font-size:18px}.graph-canvas svg{min-height:290px}.graph-canvas{min-height:290px}.graph-toolbar{padding:16px}.top #model-status{max-width:100%;font-size:11px}}
/* Department-scoped folder ingestion and permission management. */
.upload-policy{border:1px solid #dce5f1;background:#f7faff;border-radius:9px;padding:16px;margin-top:24px;align-self:start}.upload-policy h3{font-size:15px;margin:0 0 15px}.check-line{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.7;font-weight:400;margin:10px 0}.check-line input{width:16px;height:16px;flex:0 0 16px;margin:3px 0 0}.upload-file-preview{max-height:290px;overflow:auto;border:1px solid var(--line);border-radius:7px;margin:12px 0 18px;background:#fafcff}.upload-file-preview table{font-size:12px}.upload-file-preview th{position:sticky;top:0;background:#edf3fb}.upload-file-preview td{padding:8px 12px}.upload-file-preview .source-cell{max-width:none}.upload-file-preview .error{margin:8px}.package-name{font-weight:600;max-width:300px;overflow-wrap:anywhere}.package-status{border:1px solid #c8daf5;border-radius:20px;background:#eef5ff;color:#2860aa;font-size:12px;padding:5px 12px;white-space:nowrap}.package-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.package-files{border:1px solid var(--line);border-radius:8px;padding:11px 14px;margin:14px 0 24px}.package-files>summary{cursor:pointer;font-weight:600;color:#3a587c;font-size:13px}.package-files .knowledge-scroll{max-height:330px;overflow:auto;margin-top:12px}.package-files table{font-size:12px}.package-files td{min-width:90px}.package-files .source-cell{min-width:220px}#package-warnings,#organization-warnings,#package-action-status,#upload-progress{white-space:pre-wrap;overflow-wrap:anywhere}#organize-form{padding-top:3px}#organize-instructions{min-height:120px}.organization-summary{white-space:pre-wrap;line-height:1.85;background:#f5f8fd;padding:16px;border-radius:8px}.organization-category{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.organization-category>h3{font-size:17px;color:#245ca9;margin:0 0 12px}.organization-item{border:1px solid var(--line);border-radius:8px;padding:15px 17px;margin:10px 0}.organization-item h4{font-size:14px;margin:0 0 8px}.organization-item>p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 12px}.organization-source{font-size:12px;color:#486485;overflow-wrap:anywhere}.organization-source summary{cursor:pointer}.organization-source blockquote{color:#40536b;margin:10px 0 0;background:#f6f8fc;border-left:3px solid #b9cdec;padding:10px 12px;white-space:pre-wrap;line-height:1.8}.publish-actions{background:#f3f8ff;border:1px solid #dbe7f8;border-radius:9px;padding:16px;margin-top:20px}.publish-actions>p:first-child{margin-top:0}.department-options{border:1px solid var(--line);border-radius:7px;padding:10px 14px;margin:5px 0 16px}.department-options legend{font-size:13px;color:#52637b;padding:0 5px}.department-options>div{display:flex;flex-wrap:wrap;gap:10px 18px}.department-options .check-line{margin:3px 0}.user-permission-editor{min-width:230px;max-width:320px}.user-permission-editor>summary{cursor:pointer;color:#255db8;font-size:13px}.user-permission-editor form{margin-top:15px}.user-permission-editor input,.user-permission-editor select{margin-bottom:10px}.user-permission-editor .check-line input{margin:3px 0 0}.user-permission-editor label{font-size:12px}.user-permission-editor .department-options{padding:8px}.user-permission-editor .department-options>div{gap:8px}#upload-detail .section-heading h2{font-size:21px;margin:5px 0 8px}#upload-detail{scroll-margin-top:20px}#folder-input{padding:10px;background:#f9fbff}#folder-input::file-selector-button{border:0;border-radius:5px;color:#255db8;background:#e5eeff;padding:8px 11px;margin-right:12px;cursor:pointer}@media(max-width:900px){.upload-policy{margin-top:0}.user-permission-editor{min-width:210px}.package-status{white-space:normal}}@media(max-width:600px){.upload-file-preview{max-height:240px}.package-files{padding:10px}.organization-item{padding:12px}.package-actions{align-items:stretch;flex-direction:column}.package-actions .btn{margin:0}.package-status{max-width:100%}.publish-actions .btn{margin-bottom:8px}.upload-policy{padding:13px}.department-options>div{gap:8px 14px}}
/* Source-visible local semantic retrieval. */
.rag-model-panel .section-heading{align-items:flex-start}.rag-model-panel h2{margin-bottom:5px}.rag-model-name{font-size:14px;color:#3b5374;margin:4px 0 0;overflow-wrap:anywhere}.rag-admin-actions{display:flex;align-items:center;gap:16px;border-top:1px solid var(--line);padding-top:15px;margin-top:16px}.rag-admin-actions .btn{flex-shrink:0;margin:0}.rag-admin-actions p{margin:0}.rag-job-status{color:#315d95;white-space:pre-wrap;overflow-wrap:anywhere}#rag-job-progress{width:100%;height:12px;accent-color:var(--blue);border-radius:6px}#rag-warnings,#rag-search-warnings{white-space:pre-wrap;overflow-wrap:anywhere}.rag-query-panel form{margin-bottom:18px}#rag-question{min-height:94px}.rag-results{display:grid;gap:14px;margin-top:18px}.rag-result{border:1px solid var(--line);border-radius:9px;padding:18px;min-width:0}.rag-result-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.rag-result-heading h3{font-size:16px;margin:0;line-height:1.7;overflow-wrap:anywhere}.retrieval-badge{display:inline-block;flex-shrink:0;border:1px solid #d0e0f7;border-radius:5px;padding:2px 7px;color:#315f9c;background:#f0f6ff;font-size:11px;line-height:1.6;white-space:nowrap;font-weight:400}.rag-result blockquote{margin:12px 0 0;padding:11px 13px;border-left:3px solid #a9c3e9;background:#f7f9fc;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.rag-source-path{overflow-wrap:anywhere}.rag-supporting{margin-top:14px;font-size:12px}.rag-supporting summary{color:#376293;cursor:pointer;font-weight:500}.rag-supporting section{margin-top:12px}.rag-supporting section p{margin:0}.rag-supporting blockquote{margin-top:5px}.citation-card>.retrieval-badge{margin-left:8px;vertical-align:middle}.message-meta{flex-wrap:wrap}.rag-metrics .metric{font-variant-numeric:tabular-nums}@media(max-width:760px){.rag-admin-actions{align-items:flex-start;flex-direction:column;gap:9px}.rag-result{padding:14px}.rag-result-heading{flex-wrap:wrap;gap:7px}.rag-result-heading h3{font-size:15px}.rag-query-panel .composer-bottom{align-items:flex-start;flex-wrap:wrap}.rag-model-panel .package-status{align-self:flex-start}}

/* Independent multimodal consent and administrator material lifecycle. */
.reader-status{white-space:pre-wrap;color:#315d95;background:#f3f7fd;border:1px solid #dce6f4;border-radius:7px;padding:10px 12px;font-size:12px}.material-filters{display:grid;grid-template-columns:1.1fr .8fr 1.4fr;gap:16px}.material-filters input,.material-filters select{margin-bottom:5px}.material-size{font-size:25px}.material-detail h2{font-size:19px;overflow-wrap:anywhere}.material-detail .section-heading{align-items:flex-start}.material-delete-area{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.material-delete-area h3{margin:0 0 14px;font-size:15px}.material-delete-area>select{max-width:560px}.material-confirm-panel{border:1px solid #e9c2b9;background:#fff8f5;border-radius:8px;padding:18px;margin-top:18px}.material-confirm-panel h3{color:#9b3d30}.material-confirm-panel input{max-width:220px;display:block}.material-confirm-panel .security-notice{background:#fffdf9;border-color:#ebd5bc}.btn.delete-button{background:#ac4436}.material-detail #material-impact{white-space:pre-wrap;overflow-wrap:anywhere}.material-detail #material-delete-status,.material-detail #material-warnings,#glm-result,#package-visual-note{white-space:pre-wrap;overflow-wrap:anywhere}#materials-list th,#materials-list td{font-size:12px}#materials-list .source-cell{min-width:210px}#material-review-form{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}#glm-base{background:#f6f8fb;color:#52637b}#files-input{padding:10px;background:#f9fbff}#files-input::file-selector-button{border:0;border-radius:5px;color:#255db8;background:#e5eeff;padding:8px 11px;margin-right:12px;cursor:pointer}.upload-policy .check-line:not(:first-of-type){padding-top:15px;border-top:1px solid #dce5f1}@media(max-width:760px){.material-filters{grid-template-columns:1fr}.material-size{font-size:21px}.material-confirm-panel{padding:14px}.material-confirm-panel .btn{margin-bottom:8px}}

.material-evidence{border:1px solid #dce5f1;border-radius:8px;padding:14px 16px;background:#fafcff;margin:16px 0}.material-evidence h3{font-size:14px;margin:0}.material-evidence details{margin-top:12px}.material-evidence summary{cursor:pointer;font-size:13px;color:#315d95}.material-plain-text{max-height:420px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid var(--line);border-radius:5px;padding:14px;font:13px/1.85 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.material-evidence article{border-top:1px solid var(--line);margin-top:14px;padding-top:10px}.material-evidence article h4{font-size:13px;margin:0 0 6px}.material-evidence article .material-plain-text{max-height:300px;margin:8px 0}.material-conversion-panel{padding:14px 16px;border:1px solid #dce5f1;border-radius:8px;background:#f7faff;margin-top:18px}.material-conversion-panel h3{font-size:14px;margin:0 0 8px}

/* Account permissions and guided first use. */
.permission-options>div{display:grid;gap:9px}.permission-options .check-line{align-items:flex-start;gap:9px}.permission-options strong{display:block;font-weight:600}.permission-options small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:2px}.user-delete-editor{margin-top:16px;min-width:220px;max-width:340px}.user-delete-editor summary{cursor:pointer;font-size:13px}.user-delete-editor form{border:1px solid #f0d7d3;background:#fffaf9;border-radius:8px;padding:12px;margin-top:10px}.user-delete-editor input{margin-bottom:12px}.user-delete-editor label{font-size:12px}.permission-owner{display:inline-block;color:#375f97;background:#edf4ff;border-radius:6px;font-size:12px;padding:5px 8px}.app-version{display:inline-block;margin-top:10px;opacity:.75;font-size:11px}.model-api-panel{scroll-margin-top:22px}.model-api-panel>.eyebrow{margin-bottom:8px}.onboarding-card{border:1px solid #cbdcf5;background:linear-gradient(115deg,#eff5ff,#fff);border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:20px 24px;margin-bottom:22px}.onboarding-card h2{font-size:20px;margin:3px 0 7px;font-weight:650}.onboarding-card p{color:#526785;margin:0;font-size:13px;max-width:680px}.onboarding-buttons{display:flex;align-items:center;gap:10px;flex-shrink:0}.onboarding-buttons .btn{margin:0}.onboarding-buttons .text-button{font-size:12px;white-space:nowrap}.guided-tour{background:#eaf3ff;border:1px solid #bad1f4;border-left:4px solid var(--blue);border-radius:9px;padding:17px 20px;margin:0 0 20px;display:flex;align-items:center;justify-content:space-between;gap:20px}.guided-tour h2{font-size:17px;margin:3px 0 5px}.guided-tour p{font-size:13px;color:#3e5a7e;margin:0;max-width:780px}.tour-controls{display:flex;align-items:center;gap:10px;flex-shrink:0}.tour-controls .btn{margin:0}.tour-controls .text-button{white-space:nowrap;font-size:12px}.feature-highlight{outline:3px solid #3478e5!important;outline-offset:6px;box-shadow:0 0 0 10px #3478e514;scroll-margin-top:100px;border-radius:6px}.feature-location-status{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);max-width:min(560px,calc(100vw - 240px));margin:0;z-index:5;background:#173455;color:white;border:1px solid #315579;border-radius:9px;padding:11px 16px;font-size:12px;box-shadow:0 8px 28px #10203a24;pointer-events:none}.tutorial-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}.tutorial-step{display:flex;align-items:flex-start;gap:13px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:20px;min-width:0}.tutorial-number{width:29px;height:29px;flex:0 0 29px;border-radius:9px;background:#eaf2ff;color:#3269b7;display:grid;place-items:center;font-size:13px;font-weight:650}.tutorial-step h3{font-size:15px;margin:2px 0 8px}.tutorial-step p{color:#607189;font-size:13px;margin:0 0 8px;line-height:1.85}.tutorial-step .text-button{font-size:12px}.help-faq{border-top:1px solid var(--line);padding:14px 0}.help-faq:first-of-type{border-top:0}.help-faq:last-child{padding-bottom:0}.help-faq summary{font-weight:550;font-size:14px;cursor:pointer;line-height:1.8}.help-faq p{font-size:13px;color:#53667e;line-height:1.9;margin:12px 0 2px;max-width:950px}.help-callout{display:flex;align-items:center;justify-content:space-between;gap:20px}.help-callout h2{margin-bottom:4px}.help-callout p{margin:0;font-size:13px}.help-callout .btn{flex-shrink:0;margin:0}.help-shortcuts{display:flex;flex-wrap:wrap;gap:7px}.feature-action{border:1px solid #cbdcf5;background:#f5f9ff;color:#285b9d;padding:7px 10px;border-radius:7px;font-size:12px;line-height:1.5;text-align:left}.feature-action:hover{background:#e9f2ff;border-color:#8eb3e8}.help-launcher{position:fixed;right:25px;bottom:23px;z-index:20;display:flex;align-items:center;gap:8px;border:1px solid #2d65b9;background:#255fae;color:#fff;border-radius:30px;padding:11px 17px 11px 12px;box-shadow:0 5px 18px #1e4f8e30;font-size:13px}.help-launcher>span{display:grid;place-items:center;width:24px;height:24px;border:1px solid #ffffff85;border-radius:50%;font-weight:700;font-size:15px}.help-launcher:hover{background:#1c519a}.help-dialog{position:fixed;inset:auto 24px 22px auto;margin:0;padding:0;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 44px);height:min(720px,calc(100dvh - 44px));border:1px solid #d6e1ef;border-radius:16px;box-shadow:0 20px 80px #162a493d;color:var(--ink);background:#fff;overflow:hidden}.help-dialog[open]{display:flex;flex-direction:column}.help-dialog::backdrop{background:#15243a25}.help-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 20px;border-bottom:1px solid var(--line);flex-shrink:0}.help-dialog-header h2{margin:0;font-size:17px}.help-dialog-header p{margin:3px 0 0;font-size:11px}.help-dialog-header button{padding:7px;font-size:12px}.help-privacy{font-size:12px;line-height:1.75;color:#586f8b;background:#f4f8fd;padding:11px 20px;margin:0;flex-shrink:0}.help-messages{flex:1;min-height:125px;overflow-y:auto;overscroll-behavior:contain;padding:18px 20px 7px}.help-message{margin-bottom:17px;overflow-wrap:anywhere}.help-message-label{font-size:11px;color:#647b99;font-weight:500}.help-message-content{font-size:13px;line-height:1.85;white-space:pre-wrap;margin:6px 0 10px}.help-message-user .help-message-content{background:#edf3fc;border-radius:8px;padding:10px 12px}.help-message .help-shortcuts{margin-top:10px}.help-message .feature-action{font-size:11px}.help-suggestions{padding:8px 20px 12px;display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid #eef2f7;flex-shrink:0}.help-suggestion{border:1px solid #dce5f2;background:#fff;border-radius:15px;color:#4f6684;padding:5px 9px;font-size:11px;line-height:1.5;text-align:left}.help-suggestion:hover{background:#f2f6fd;border-color:#adc7eb}.help-chat-form{border-top:1px solid var(--line);padding:13px 20px 14px;background:#fbfcfe;flex-shrink:0}.help-chat-form label{font-size:11px;color:#62738c}.help-chat-form textarea{min-height:67px;max-height:125px;margin:5px 0 7px;font-size:13px;resize:vertical}.help-chat-form .btn{padding:7px 18px;margin:0;font-size:12px}.help-chat-form .text-button{font-size:11px}.help-chat-form .small-note{font-size:10px;margin:8px 0 0;line-height:1.6}.content{padding-bottom:95px}
@media(max-width:1100px){.onboarding-card,.guided-tour{align-items:flex-start;flex-direction:column;gap:13px}.onboarding-buttons{gap:18px}.tour-controls{align-self:flex-start}.tutorial-step{padding:16px}}
@media(max-width:700px){.tutorial-steps{grid-template-columns:1fr}.onboarding-card{padding:17px}.onboarding-card h2{font-size:18px}.help-callout{align-items:flex-start;flex-direction:column;gap:12px}.feature-location-status{bottom:81px;max-width:calc(100vw - 32px);width:max-content}.help-launcher{right:16px;bottom:15px}.help-dialog{inset:auto 12px 12px auto;width:calc(100vw - 24px);height:min(680px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)}.guided-tour{padding:14px}.guided-tour p{font-size:12px}.help-suggestions{max-height:100px;overflow-y:auto}.help-dialog-header{padding:14px 16px}.help-privacy,.help-messages,.help-suggestions,.help-chat-form{padding-left:16px;padding-right:16px}}
@media(prefers-reduced-motion:reduce){.messages{scroll-behavior:auto}}
.guided-tour{position:sticky;top:12px;z-index:12;box-shadow:0 5px 20px #1d417315}

/* Enterprise database visual system: readable type, clear controls, and joint branding. */
:root{
  --navy:#281c1f;
  --blue:#a51d2d;
  --ink:#20242b;
  --muted:#515b68;
  --line:#ccd1d8;
  --bg:#f3f4f6;
  --brand-soft:#fff1f3;
  --brand-deep:#841525;
  --control-line:#7b8492;
  --focus:#1558b0;
}
html{scroll-padding-top:24px}
body{font-size:17px;line-height:1.75;-webkit-text-size-adjust:100%}
button,input,textarea,select{font-family:inherit}
button{min-height:44px}
a{color:var(--brand-deep);text-underline-offset:3px}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--focus);outline-offset:3px;
}
input,textarea,select{font-size:17px;line-height:1.6;min-height:48px;padding:11px 13px;border-color:var(--control-line);border-radius:9px;color:var(--ink)}
input::placeholder,textarea::placeholder{color:#5d6774;opacity:1}
input:disabled,textarea:disabled,select:disabled{color:#515b68;background:#edf0f3;opacity:1}
input[type=checkbox],input[type=radio]{accent-color:var(--blue);min-height:0}
label{font-weight:600;line-height:1.7}
summary{min-height:44px;align-content:center;line-height:1.75}
.muted,.hint,.small-note{color:var(--muted)}
.small-note,.hint{font-size:14px;line-height:1.8}
.app{align-items:flex-start}
.side{width:264px;background:#fff;color:var(--ink);border-right:1px solid var(--line);padding:24px 16px;position:sticky;top:0;height:100dvh;overflow-y:auto;overscroll-behavior:contain}
.brand{padding:4px 10px 23px;margin-bottom:18px;border-color:var(--line)}
.brand-logos{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:44px;margin-bottom:17px}
.brand-logo{display:block;object-fit:contain;object-position:left center;width:auto;max-width:100%;height:auto;max-height:48px}
.brand-logo-chuck{max-width:94px;max-height:43px}
.brand-logo-linktou{max-width:114px;max-height:43px}
.brand b,.brand .brand-name{font-size:25px;font-weight:750;line-height:1.45;color:var(--ink);letter-spacing:.01em}
.brand span,.brand .brand-credit{font-size:14px;color:var(--muted);line-height:1.7;margin-top:10px}
.brand .brand-name{display:block;margin-top:0}
.nav-group-label{color:var(--muted);font-size:14px;font-weight:600;padding:16px 12px 7px}
.menu{gap:5px}
.menu button,.side-logout{font-size:16px;font-weight:550;line-height:1.5;min-height:47px;padding:11px 14px;color:#343c48;border:1px solid transparent;border-radius:9px;transition:background-color .15s ease,border-color .15s ease}
.menu button:hover,.side-logout:hover{background:#f2f3f5;color:var(--ink);border-color:var(--line)}
.menu button.active{background:var(--brand-soft);color:var(--brand-deep);border-color:#d5a7ae;font-weight:700;box-shadow:inset 4px 0 0 var(--blue)}
.bottom{padding:24px 12px 16px;color:var(--muted);font-size:14px;overflow-wrap:anywhere}
.side-logout{border-top:1px solid var(--line);margin-top:5px}
.app-version{font-size:14px;opacity:1;color:var(--muted)}
.main{width:100%}
.top{min-height:88px;padding:19px 36px;gap:18px;background:#fff}
.top h1{font-size:23px;font-weight:700;white-space:normal;line-height:1.5}
#current-user{font-size:15px;color:#3e4855;overflow-wrap:anywhere}
.status{font-size:14px;line-height:1.6;color:#175735;background:#edf8f1;border-color:#97c4a7;padding:7px 12px}
.top #model-status{max-width:330px;font-size:14px;overflow-wrap:anywhere}
.content{padding:28px 36px 110px;max-width:1500px}
.eyebrow{font-size:14px;font-weight:700;letter-spacing:.03em;color:var(--brand-deep)}
.title{font-size:32px;line-height:1.45;font-weight:730;margin:8px 0 24px;overflow-wrap:anywhere}
.view-description{color:var(--muted);font-size:17px;line-height:1.8;max-width:900px;margin:-10px 0 25px}
.overview-intro{margin-bottom:25px;max-width:930px}
.overview-intro .title{margin-bottom:9px}
.overview-intro p{color:var(--muted);font-size:18px;margin:0;line-height:1.85}
.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.card{border-radius:14px;padding:23px 18px;min-width:0;text-align:left;box-shadow:0 2px 5px #20242b04}
.card>.muted{font-size:15px;line-height:1.7}
.metric{font-size:34px;font-weight:750;line-height:1.5;margin:10px 0;color:var(--ink)}
.metric.local-label{font-size:27px;color:#175735}
.panel{border-radius:14px;padding:26px;margin-top:24px;box-shadow:0 2px 5px #20242b04;min-width:0}
.panel h2{font-size:22px;line-height:1.5;margin-bottom:18px}
.panel h3{line-height:1.6}
.btn{font-size:16px;font-weight:650;line-height:1.5;min-height:46px;padding:11px 18px;border:1px solid var(--blue);border-radius:9px;background:var(--blue);color:#fff;transition:background-color .15s ease,border-color .15s ease}
.btn:hover{background:var(--brand-deep);border-color:var(--brand-deep)}
.btn.secondary{background:#fff;color:var(--brand-deep);border-color:#b87d86}
.btn.secondary:hover{background:var(--brand-soft);border-color:var(--blue)}
.text-button{font-size:16px;font-weight:550;line-height:1.5;color:var(--brand-deep);padding:10px 6px;text-decoration:underline;text-underline-offset:4px;border-radius:6px}
.text-button:hover{background:var(--brand-soft)}
.danger{color:#982b21}
.btn.delete-button{background:#982b21;border-color:#982b21}
.btn.delete-button:hover{background:#782016;border-color:#782016}
.btn.small{font-size:15px;min-height:44px;padding:9px 12px}
button:disabled,.btn:disabled,.btn.secondary:disabled,.text-button:disabled{opacity:1;background:#e9ecf0;color:#59616c;border-color:#aeb6c2;cursor:not-allowed;box-shadow:none;text-decoration:none}
.overview-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0}
.quick-action{width:100%;display:flex;align-items:flex-start;gap:14px;text-align:left;padding:23px 20px;min-height:150px;background:#fff;color:var(--ink);border:1px solid #b7bec8;border-radius:14px;box-shadow:0 3px 8px #20242b05;transition:border-color .15s ease,box-shadow .15s ease}
.quick-action:hover{border-color:var(--blue);box-shadow:0 4px 14px #a51d2d0f;background:#fffafb}
.quick-action-icon{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:12px;font-size:22px;background:var(--brand-soft);color:var(--brand-deep);border:1px solid #e0b7be}
.quick-action-copy{display:grid;gap:8px;min-width:0}
.quick-action-copy strong{font-size:20px;font-weight:700;line-height:1.5}
.quick-action-copy span,.quick-action-copy p{font-size:15px;line-height:1.75;color:var(--muted);margin:0}
.workflow-strip{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding:15px 19px;margin:18px 0 26px;background:#fff;border:1px solid var(--line);border-radius:11px;color:#3f4957;font-size:15px;line-height:1.8}
.workflow-strip strong{color:var(--ink)}
.upload-steps{display:flex;flex-wrap:wrap;gap:10px 22px;padding:16px 20px;margin:0 0 22px;background:var(--brand-soft);border:1px solid #e0b7be;border-radius:11px;color:var(--brand-deep);font-size:16px;line-height:1.7}
.pilot-notice,.security-notice{font-size:16px;line-height:1.85;border-radius:10px;padding:16px 18px}
.pilot-notice{color:#67460d;background:#fff8e7;border-color:#bda16d}
.security-notice{color:#344454;background:#f1f5f8;border-color:#b5c3d1}
.error{font-size:16px;color:#8c241a;background:#fff0ed;border:1px solid #ce9b92;line-height:1.8}
.setting-grid{gap:26px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.json{font-size:15px;border:1px solid var(--line);color:#35404e;background:#f5f6f8}
table{font-size:16px}
th{font-size:14px;color:#414b58;background:#f4f5f7;font-weight:700;line-height:1.7}
td{font-size:16px;line-height:1.8}
th,td{padding:15px 13px}
.knowledge-scroll{max-width:100%;border-radius:9px}
.knowledge-scroll:focus-visible{outline-offset:0}
.department-tag,.permission-owner{font-size:14px;line-height:1.6;color:var(--brand-deep);background:var(--brand-soft);border:1px solid #dcb7bd;border-radius:7px}
.package-status{font-size:14px;color:#344c67;background:#eef3f8;border-color:#a8b9ce;white-space:normal}
.retrieval-badge{font-size:14px;line-height:1.6;color:#354e6c;background:#eef3f8;border-color:#adbed2;white-space:normal}

/* Conversations use larger reading text and keep controls easy to find. */
.chat-layout{grid-template-columns:240px minmax(0,1fr);border-radius:15px;min-height:710px}
.conversation-panel{background:#f7f8fa;padding:20px 13px}
.conversation-panel h3{font-size:15px;color:var(--muted);margin:24px 10px 12px}
.conversation-empty{font-size:15px}
.conversation-item{padding:12px;min-height:68px;border-radius:9px}
.conversation-item:hover{background:#eaeef2}
.conversation-item.active{background:var(--brand-soft);border-color:#d5a7ae}
.conversation-item-title{font-size:16px;font-weight:600;line-height:1.6}
.conversation-item time,.history-note{font-size:14px;color:var(--muted);line-height:1.8}
.history-note{margin-top:18px}
.chat-heading{padding:22px 26px}
.chat-heading h3{font-size:21px;line-height:1.5}
.chat-heading p{font-size:14px;color:var(--muted);line-height:1.8}
.conversation-actions{flex-wrap:wrap}
.conversation-actions .text-button{font-size:15px}
.messages{padding:26px;min-height:360px;height:min(52vh,620px);background:#fff}
.chat-empty{max-width:650px;margin:27px auto 20px}
.assistant-symbol{width:58px;height:58px;background:var(--brand-soft);border-color:#d5a7ae;color:var(--brand-deep);font-size:27px}
.chat-empty h3{font-size:25px;line-height:1.5;margin:19px 0 10px}
.chat-empty>p{font-size:16px;line-height:1.85;max-width:570px;margin-bottom:24px}
.prompt-list,.chat-prompts{display:grid;gap:10px;width:100%}
.prompt-button,.chat-prompts button[data-chat-prompt]{font-size:16px;line-height:1.75;min-height:48px;padding:12px 16px;color:#364150;background:#fff;border:1px solid #a8b2bf;border-radius:9px;text-align:left}
.prompt-button:hover,.chat-prompts button[data-chat-prompt]:hover{color:var(--brand-deep);background:var(--brand-soft);border-color:#b87d86}
.chat-composer{padding:20px 26px 22px;background:#fbfbfc}
.chat-composer label{font-size:16px;color:#3d4653}
.chat-composer #q{font-size:18px;line-height:1.75;min-height:110px;max-height:250px;background:#fff;border-color:#7b8492;margin:9px 0 14px}
.composer-bottom{gap:14px;flex-wrap:wrap}
.composer-bottom>.muted{font-size:14px;color:var(--muted);line-height:1.7}
.message{gap:14px;margin-bottom:30px}
.message-avatar{width:38px;height:38px;font-size:16px;background:var(--brand-soft);color:var(--brand-deep);border:1px solid #e0b7be;border-radius:11px}
.user-message .message-avatar{background:#edf0f3;color:#404b5a;border-color:#c3ccd6}
.message-meta{font-size:15px;font-weight:600;margin:4px 0 9px;line-height:1.7}
.message-meta time{font-size:14px;font-weight:400;color:var(--muted)}
.message-content{font-size:18px;line-height:1.9;color:var(--ink)}
.user-message .message-content{background:#edf1f5;border:1px solid #c5ced8;padding:13px 17px;border-radius:0 12px 12px 12px}
.pending-message.assistant-message .message-content{color:var(--muted)}
.citations{font-size:15px;padding:10px 14px;border-radius:9px;background:#fcfcfd}
.citations summary,.rag-supporting summary{color:var(--brand-deep);font-weight:600}
.citation-card blockquote,.graph-evidence blockquote,.rag-result blockquote{border-left-color:#b46d78;background:#f7f8fa;color:#374150}
.chat-warnings{font-size:15px;color:#6b4b12;background:#fff8e8;border-color:#c8ab74;line-height:1.8;padding:13px 26px}

/* Graph and source panels stay readable beside larger text. */
.graph-layout{grid-template-columns:minmax(0,1fr) 330px;gap:20px}
.graph-detail{padding:23px;max-height:780px}
.graph-detail h3{font-size:20px}
.graph-detail p,.graph-evidence,.node-relation h4{font-size:15px;line-height:1.85}
.graph-empty h3{font-size:23px}
.graph-empty p{font-size:16px}
.graph-view-tabs button{font-size:16px;min-height:44px;padding:9px 17px;color:#4b5563;border-color:#a8b2bf}
.graph-view-tabs button.active{background:var(--brand-soft);border-color:#b87d86;color:var(--brand-deep);font-weight:600}
.graph-node .node-label{fill:#27303d;font-size:15px;font-weight:600}
.graph-node .node-initial{fill:#842035;font-size:18px}
.graph-node circle{fill:#fff0f3;stroke:#b46d78}
.graph-node.selected circle,.graph-node:hover circle,.graph-node:focus circle{stroke:var(--blue)}
.edge-line{stroke:#7b8797}
.edge-text{font-size:14px;fill:#465364}
.graph-edge:hover .edge-line,.graph-edge.selected .edge-line,.graph-edge:focus .edge-line{stroke:var(--blue)}
.graph-edge:hover .edge-text,.graph-edge.selected .edge-text,.graph-edge:focus .edge-text{fill:var(--brand-deep)}
.relation-label{color:var(--brand-deep);background:var(--brand-soft);font-size:15px}
.node-chip{font-size:15px;line-height:1.7;padding:9px 12px;background:#fff;border-color:#a8b2bf;color:#384a60;min-height:44px}
.cloud-consent{font-size:15px;line-height:1.8;min-width:0;gap:10px}
.cloud-consent input,.check-line input{width:20px;height:20px;flex:0 0 20px;margin-top:4px}
.rag-model-name{font-size:17px;color:#3f4c5e}
.rag-result{padding:22px;border-radius:11px;background:#fff}
.rag-result-heading h3{font-size:20px;line-height:1.7}
.rag-result blockquote{font-size:17px;line-height:1.9}
.rag-supporting{font-size:15px}
.rag-job-status{color:#384f6a;font-size:15px}
.reader-status{font-size:15px;line-height:1.8;color:#344c67;background:#f0f4f8;border-color:#b2c0d0;padding:13px 15px}

/* Upload, permissions, and maintenance forms share the same readable scale. */
.upload-policy{background:#f5f7f9;border-color:#b8c2cf;border-radius:11px;padding:20px}
.upload-policy h3{font-size:19px;margin-bottom:16px}
.check-line{font-size:16px;line-height:1.85;gap:11px;min-height:44px;margin:12px 0}
.upload-file-preview table,.package-files table{font-size:15px}
.upload-file-preview th{font-size:14px;background:#edf0f4}
.upload-file-preview td,.package-files td{font-size:15px;padding:11px 13px}
.package-files>summary{font-size:16px;color:#3e4d60}
.package-files{border-color:#b8c2cf;padding:13px 17px;border-radius:10px}
.organization-summary{font-size:17px;color:#303c4b;background:#f3f5f8;border:1px solid var(--line)}
.organization-category>h3{font-size:21px;color:var(--brand-deep)}
.organization-item{padding:20px;border-radius:11px}
.organization-item h4{font-size:18px;line-height:1.7}
.organization-item>p{font-size:17px;line-height:1.85}
.organization-source{font-size:15px;color:#3b4d63}
.organization-source blockquote{color:#3b4656;background:#f5f6f8;border-left-color:#ad7c86}
.publish-actions{background:#fff5f6;border-color:#d8aeb5;border-radius:11px;padding:20px}
.department-options legend{font-size:15px;color:#414d5c;font-weight:600}
.department-options{border-color:#a8b2bf;padding:13px 16px}
.user-permission-editor{min-width:260px;max-width:370px}
.user-permission-editor>summary{font-size:16px;color:var(--brand-deep)}
.user-permission-editor label,.user-delete-editor label{font-size:15px}
.user-permission-editor .check-line input{margin-top:4px}
.user-permission-editor .department-options{padding:11px}
.permission-options small{font-size:14px;color:var(--muted);line-height:1.8;margin-top:5px}
.user-delete-editor summary{font-size:16px}
.user-delete-editor form{padding:15px;border-color:#ce9b92;background:#fff7f5}
#upload-detail .section-heading h2{font-size:25px}
#folder-input,#files-input{background:#fff;max-width:100%;padding:10px;font-size:15px}
#folder-input::file-selector-button,#files-input::file-selector-button{font-size:16px;line-height:1.5;min-height:44px;background:var(--brand-soft);color:var(--brand-deep);border:1px solid #b87d86;padding:9px 12px;border-radius:7px;margin-right:12px}
.material-filters{grid-template-columns:minmax(0,1.1fr) minmax(0,.8fr) minmax(0,1.4fr)}
.material-detail h2{font-size:23px}
.material-delete-area h3,.material-evidence h3,.material-conversion-panel h3{font-size:19px}
.material-evidence summary{font-size:16px;color:var(--brand-deep)}
.material-evidence article h4{font-size:16px;line-height:1.75}
.material-plain-text{font-size:16px;line-height:1.9;color:#2f3a48}
.material-confirm-panel{border-color:#ce9b92;background:#fff7f5}
.material-confirm-panel h3{font-size:20px;color:#8c241a}
#materials-list th{font-size:14px}
#materials-list td{font-size:15px}
#glm-base{color:#414d5c;background:#f2f4f6}

/* Onboarding and contextual help remain legible at every stage. */
.onboarding-card{background:#fff7f8;border-color:#dcb7bd;border-radius:14px;padding:24px 26px}
.onboarding-card h2{font-size:23px;line-height:1.6}
.onboarding-card p{font-size:16px;color:#4a5360;line-height:1.8}
.onboarding-buttons{flex-wrap:wrap}
.onboarding-buttons .text-button,.tour-controls .text-button{font-size:15px;white-space:normal}
.guided-tour{background:#fff6f7;border-color:#d5a7ae;border-left-color:var(--blue);padding:20px 24px;border-radius:11px;box-shadow:0 5px 18px #51202b0a}
.guided-tour h2{font-size:21px;line-height:1.6}
.guided-tour p{font-size:16px;color:#4b3d43;line-height:1.8}
.tour-controls{flex-wrap:wrap}
.feature-highlight{outline-color:var(--focus)!important;box-shadow:0 0 0 10px #1558b014}
.feature-location-status{font-size:15px;line-height:1.75;background:#263447;border-color:#52647c;max-width:min(620px,calc(100vw - 32px));padding:14px 18px}
.tutorial-step{padding:23px;gap:16px}
.tutorial-number{width:36px;height:36px;flex:0 0 36px;font-size:17px;background:var(--brand-soft);color:var(--brand-deep);border:1px solid #dcb7bd}
.tutorial-step h3{font-size:20px;line-height:1.6}
.tutorial-step p{font-size:16px;line-height:1.85;color:var(--muted)}
.tutorial-step .text-button{font-size:16px}
.help-faq summary{font-size:18px;font-weight:600}
.help-faq p{font-size:17px;line-height:1.9;color:#414d5c}
.help-callout p{font-size:16px;line-height:1.8}
.feature-action{font-size:15px;line-height:1.65;min-height:44px;padding:10px 13px;color:var(--brand-deep);background:#fff;border-color:#b87d86;border-radius:8px}
.feature-action:hover{background:var(--brand-soft);border-color:var(--blue)}
.help-launcher{font-size:16px;font-weight:600;min-height:52px;right:26px;bottom:24px;background:var(--blue);border-color:var(--brand-deep);padding:11px 20px 11px 13px;box-shadow:0 5px 18px #6c15252b}
.help-launcher>span{width:28px;height:28px;font-size:18px}
.help-launcher:hover{background:var(--brand-deep)}
.help-dialog{width:min(520px,calc(100vw - 40px));height:min(820px,calc(100dvh - 44px));max-height:calc(100dvh - 44px);border-color:#8c96a4;border-radius:18px;box-shadow:0 20px 70px #1720333d}
.help-dialog::backdrop{background:#17203370}
.help-dialog-header{padding:20px 23px;gap:16px;background:#fff}
.help-dialog-header h2{font-size:23px;line-height:1.5}
.help-dialog-header p{font-size:14px;color:var(--muted);line-height:1.7;margin-top:5px}
.help-dialog-header button{font-size:16px;min-width:56px;padding:10px 8px}
.help-privacy{font-size:15px;line-height:1.8;color:#45515f;background:#f3f5f8;border-bottom:1px solid var(--line);padding:14px 23px}
.help-messages{padding:21px 23px 9px;min-height:110px;scrollbar-gutter:stable}
.help-message{margin-bottom:24px}
.help-message-label{font-size:14px;color:#4b5665;font-weight:600}
.help-message-content{font-size:18px;line-height:1.9;color:var(--ink);margin:8px 0 12px}
.help-message-user .help-message-content{background:#edf1f5;border:1px solid #c5ced8;padding:12px 15px;border-radius:11px}
.help-message .feature-action{font-size:15px}
.help-suggestions{padding:12px 23px 15px;gap:8px;border-color:var(--line);max-height:135px;overflow-y:auto}
.help-suggestion{font-size:14px;line-height:1.65;min-height:44px;padding:9px 12px;border-color:#a8b2bf;color:#3e4b5c;border-radius:9px}
.help-suggestion:hover{background:var(--brand-soft);color:var(--brand-deep);border-color:#b87d86}
.help-chat-form{padding:16px 23px 18px;background:#f8f9fb}
.help-chat-form label{font-size:15px;color:#3f4957}
.help-chat-form textarea{font-size:17px;line-height:1.75;min-height:80px;max-height:140px;background:#fff;margin:8px 0 11px}
.help-chat-form .btn{font-size:16px;min-height:46px;padding:10px 21px}
.help-chat-form .text-button{font-size:15px}
.help-chat-form .small-note{font-size:14px;line-height:1.8;margin-top:11px}
.login-page{padding:30px;background:var(--bg)}
.login-box{max-width:520px;padding:40px;border-color:#b8c0cb;border-radius:19px;box-shadow:0 12px 40px #20242b0a}
.login-box h1{font-size:31px;line-height:1.5;margin:19px 0 12px}
.login-box .hint{font-size:15px;color:var(--muted);line-height:1.85}
.login-box input{font-size:18px;min-height:52px;padding:12px 14px}
.login-box label{font-size:17px}
.login-box .btn{min-height:52px;font-size:18px}
.login-brand-logos{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:19px}
.login-brand-logos img{max-width:170px;max-height:60px;width:auto;height:auto;object-fit:contain}
.login-brand-credit{font-size:15px;line-height:1.8;color:#4b5563;margin-top:12px}

/* Layout changes preserve readable controls without horizontal page scrolling. */
@media(max-width:1280px){
  .side{width:238px;padding-left:12px;padding-right:12px}
  .brand-logo-chuck{max-width:86px}.brand-logo-linktou{max-width:104px}
  .brand-logos{gap:9px}
  .content{padding-left:26px;padding-right:26px}.top{padding-left:26px;padding-right:26px}
  .overview-actions{gap:14px}.quick-action{padding:19px 16px;gap:11px}.quick-action-icon{width:38px;height:38px;flex-basis:38px}
  .chat-layout{grid-template-columns:210px minmax(0,1fr)}
  .graph-layout{grid-template-columns:minmax(0,1fr)}.graph-detail{max-height:430px}
}
@media(max-width:1000px){
  .side{width:218px}.brand-logo-chuck{max-width:76px}.brand-logo-linktou{max-width:94px}
  .brand b,.brand .brand-name{font-size:23px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .overview-actions{grid-template-columns:1fr}.quick-action{min-height:100px;align-items:center}
  .setting-grid{grid-template-columns:minmax(0,1fr)}
  .chat-layout{grid-template-columns:minmax(0,1fr)}
  .conversation-panel{border-right:0;border-bottom:1px solid var(--line);padding:16px}
  .conversation-panel h3{margin:15px 0 9px}.conversation-list{max-height:190px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .history-note{margin:12px 0 0;padding-top:10px}
  .onboarding-card,.guided-tour{align-items:flex-start;flex-direction:column;gap:16px}
  .onboarding-buttons,.tour-controls{width:100%;gap:12px}
  .tutorial-steps{grid-template-columns:minmax(0,1fr)}
  .chat-heading{flex-wrap:wrap}
}
@media(max-width:760px){
  .content{padding:22px 20px 110px}.top{padding:18px 20px;flex-wrap:wrap}
  .top #model-status{max-width:100%;font-size:14px}
  .panel{padding:22px}.section-heading{flex-wrap:wrap;gap:10px}
  .section-heading>.small-note{display:block;margin-top:-7px;margin-bottom:17px}
  .graph-form-row{align-items:stretch}.graph-form-row .btn{align-self:stretch}
  .material-filters{grid-template-columns:minmax(0,1fr)}
  .chat-heading,.messages,.chat-composer{padding:20px}
  .messages{height:470px;min-height:330px}
  .chat-empty h3{font-size:23px}.chat-empty>p{font-size:16px}
  .rag-result-heading h3{font-size:19px}
  .composer-bottom{align-items:flex-start}
  .help-dialog{inset:auto 14px 14px auto;width:calc(100vw - 28px);height:min(820px,calc(100dvh - 28px));max-height:calc(100dvh - 28px)}
  .guided-tour{position:static}
}
@media(max-width:600px){
  .app{display:block}.side{position:static;width:100%;height:auto;max-height:none;border-right:0;border-bottom:1px solid var(--line);padding:18px 16px;overflow:visible}
  .brand{padding:2px 5px 16px;margin-bottom:13px}.brand-logos{gap:20px;margin-bottom:13px}
  .brand-logo-chuck{max-width:102px;max-height:43px}.brand-logo-linktou{max-width:122px;max-height:43px}
  .brand .brand-name{font-size:25px;display:block}.brand .brand-credit{display:block;margin-top:7px;font-size:14px}
  .brand span:not(.brand-name):not(.brand-credit){display:block;font-size:14px;margin-top:7px}
  .menu{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .menu button{font-size:16px;padding:10px 5px;line-height:1.6;min-height:48px;text-align:center;white-space:normal;overflow-wrap:anywhere}
  .menu button.active{box-shadow:inset 0 -3px 0 var(--blue)}
  .nav-group-label{grid-column:1/-1;padding:10px 4px 2px}
  .side-logout{align-self:flex-end;margin-top:12px;padding:10px 13px;font-size:16px}
  .bottom{display:none}.top{padding:18px 17px;gap:12px}.top h1{font-size:22px}
  .content{padding:22px 16px 105px}.title{font-size:28px;margin-bottom:20px}
  .overview-intro p{font-size:17px}.view-description{font-size:16px}
  .grid{gap:12px}.card{padding:17px 13px}.card>.muted{font-size:14px}
  .metric{font-size:30px}.metric.local-label{font-size:22px}
  .panel{padding:20px 16px;border-radius:12px}.panel h2{font-size:21px}
  .quick-action{padding:19px 16px;min-height:108px}.quick-action-copy strong{font-size:20px}
  .workflow-strip,.upload-steps{padding:14px 16px;gap:8px 12px}
  .chat-layout{min-height:0}.conversation-list{grid-template-columns:minmax(0,1fr);max-height:166px}
  .chat-heading,.chat-composer{padding:19px 16px}.chat-heading h3{font-size:20px}
  .messages{padding:20px 14px;height:480px;min-height:330px}.message{gap:10px;margin-bottom:25px}
  .message-avatar{width:32px;height:32px;font-size:14px;flex-basis:32px}
  .message-content{font-size:18px;line-height:1.85}.message-meta{font-size:14px;gap:7px}
  .user-message .message-content{padding:11px 13px}.chat-empty{margin-top:10px}
  .chat-empty h3{font-size:23px}.chat-empty>p{font-size:16px}
  .chat-composer #q{min-height:118px}.composer-bottom{gap:12px}
  .composer-bottom>.muted{width:100%}.chat-composer .composer-bottom .btn{width:100%}
  .chat-warnings{padding:13px 16px;font-size:15px}
  .graph-toolbar{padding:20px 16px}.graph-detail{padding:20px 16px}
  .package-actions{align-items:stretch;flex-direction:column}.package-actions .btn{width:100%;margin:0}
  .upload-policy{padding:18px 15px}.organization-item{padding:17px 14px}
  .publish-actions{padding:17px 14px}.publish-actions .btn{margin-bottom:10px}
  .user-permission-editor{min-width:230px}.material-confirm-panel{padding:17px 14px}
  .onboarding-card{padding:21px 18px}.onboarding-card h2{font-size:22px}.onboarding-card p{font-size:16px}
  .guided-tour{padding:18px 16px}.guided-tour p{font-size:16px}
  .tutorial-step{padding:20px 16px}.help-callout{align-items:stretch;flex-direction:column;gap:16px}
  .help-launcher{right:16px;bottom:16px;font-size:16px;min-height:50px}
  .help-dialog{border-radius:14px}.help-dialog-header{padding:16px}.help-dialog-header h2{font-size:22px}
  .help-privacy,.help-messages,.help-suggestions,.help-chat-form{padding-left:16px;padding-right:16px}
  .help-privacy{font-size:14px;padding-top:12px;padding-bottom:12px}
  .help-message-content{font-size:17px}.help-suggestions{max-height:112px;padding-top:10px;padding-bottom:10px}
  .help-chat-form{padding-top:13px;padding-bottom:14px}.help-chat-form textarea{min-height:76px;max-height:120px}
  .help-chat-form .small-note{font-size:14px;line-height:1.65}
  .feature-location-status{font-size:14px;bottom:84px;width:max-content;max-width:calc(100vw - 32px)}
  .login-page{padding:20px 16px}.login-box{padding:29px 24px;border-radius:16px}
  .login-box h1{font-size:29px}.login-brand-logos{gap:18px}.login-brand-logos img{max-width:130px;max-height:50px}
}
@media(max-height:700px){
  .help-dialog-header{padding-top:12px;padding-bottom:12px}
  .help-privacy{padding-top:10px;padding-bottom:10px}
  .help-suggestions{max-height:70px;padding-top:8px;padding-bottom:8px}
  .help-chat-form{padding-top:10px;padding-bottom:10px}
  .help-chat-form textarea{min-height:64px;max-height:96px}
  .help-chat-form .small-note{margin-top:7px}
  .help-messages{min-height:90px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* Joint-brand lockup and task steps use the same layout in every view. */
.brand-logos{flex-wrap:nowrap;gap:8px}
.brand-logo-chuck{width:82px;min-width:0;flex:0 1 82px}
.brand-logo-linktou{width:100px;min-width:0;flex:0 1 100px}
.brand .brand-logos span.brand-times{display:block;flex:0 0 14px;width:14px;margin:0;font-size:19px;line-height:1;color:#525b68;text-align:center}
.quick-action-copy{flex:1}
.quick-action>span:last-child:not(.quick-action-copy){color:var(--brand-deep);font-size:21px;align-self:center;flex-shrink:0}
.workflow-strip{list-style:none}
.workflow-strip li{display:flex;align-items:center;gap:8px;list-style:none;margin:0;line-height:1.7}
.workflow-strip li b{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;font-size:15px;font-weight:700;border:1px solid #d5a7ae;border-radius:50%;background:var(--brand-soft);color:var(--brand-deep)}
.upload-format-help{border:1px solid #bac3cf;border-radius:9px;padding:3px 13px 9px;margin:16px 0;background:#f8f9fb}
.upload-format-help summary{font-size:16px;font-weight:600;color:var(--brand-deep)}
.upload-format-help p{margin:8px 0}
.help-dialog{overflow-y:auto}
.login-brand-logos{flex-wrap:nowrap;gap:16px;justify-content:space-between}
.login-brand-logos .brand-logo-chuck,.login-brand-logos .brand-logo-linktou{width:170px;height:auto;flex:0 1 170px;min-width:0;max-width:44%;max-height:60px;object-fit:contain}
.login-brand-logos .brand-separator{flex:0 0 auto;font-size:18px;color:var(--muted);line-height:1}
@media(max-width:1280px){.brand-logo-chuck{width:76px;flex-basis:76px}.brand-logo-linktou{width:88px;flex-basis:88px}}
@media(max-width:1000px){.brand-logo-chuck{width:68px;flex-basis:68px}.brand-logo-linktou{width:76px;flex-basis:76px}}
@media(max-width:600px){
  .brand-logos{gap:16px}.brand-logo-chuck{width:102px;flex-basis:102px}.brand-logo-linktou{width:122px;flex-basis:122px}
  .workflow-strip{align-items:flex-start;flex-direction:column;gap:11px}
  .login-brand-logos{gap:10px}.login-brand-logos .brand-logo-chuck,.login-brand-logos .brand-logo-linktou{max-width:42%;flex-basis:130px}
}

/* Desktop chat keeps the composer in view while the transcript scrolls. */
@media(min-width:1001px){
  .main:has(#workbench.active){display:flex;flex-direction:column;height:100dvh;min-height:900px}
  .main:has(#workbench.active)>.top{flex:0 0 auto}
  .content:has(#workbench.active){display:flex;flex:1 1 auto;flex-direction:column;min-height:0;padding-bottom:84px}
  .content:has(#workbench.active)>.pilot-notice,
  .content:has(#workbench.active)>.onboarding-card,
  .content:has(#workbench.active)>.guided-tour,
  .content:has(#workbench.active)>#page-error{flex:0 0 auto}
  .content:has(#workbench.active)>.onboarding-card{flex-direction:row;align-items:center;padding:12px 20px;gap:18px;margin-bottom:16px}
  .content:has(#workbench.active)>.onboarding-card h2{font-size:21px;margin:2px 0 4px;line-height:1.5}
  .content:has(#workbench.active)>.onboarding-card p{font-size:16px;line-height:1.7}
  .content:has(#workbench.active)>.onboarding-card .onboarding-buttons{width:auto;flex-wrap:nowrap;gap:10px}
  .content:has(#workbench.active)>.guided-tour{position:static;padding:12px 20px;gap:16px;margin-bottom:16px}
  #workbench.active{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
  #workbench>.section-heading{flex:0 0 auto}
  #workbench>.section-heading .title{margin:4px 0 8px}
  #workbench>.section-heading .view-description{margin:0 0 16px}
  #workbench .chat-layout{flex:1 1 auto;grid-template-rows:minmax(0,1fr);height:auto;min-height:0}
  #workbench .chat-panel,#workbench .conversation-panel{min-height:0}
  #workbench .conversation-list{flex:1 1 auto;min-height:0;max-height:none}
  #workbench .new-conversation,#workbench .conversation-panel h3,#workbench .history-note{flex-shrink:0}
  #workbench .chat-heading{flex-shrink:0;padding-top:16px;padding-bottom:16px}
  #workbench .messages{flex:1 1 auto;height:auto;min-height:0;max-height:none;overflow-y:auto;scrollbar-gutter:stable}
  #workbench .chat-composer{flex-shrink:0;padding-top:16px;padding-bottom:16px}
  #workbench .chat-composer #q{min-height:100px;max-height:160px;margin-top:7px;margin-bottom:10px}
  #workbench .chat-warnings{flex-shrink:0;max-height:100px;overflow-y:auto}
}
@media(min-width:1001px) and (max-height:950px){
  #workbench>.section-heading{display:none}
}
@media(min-width:1001px) and (max-height:899px){
  .main:has(#workbench.active)>.top{padding-right:190px}
  body:has(#workbench.active)>.help-launcher{position:absolute;top:18px;right:26px;bottom:auto}
}
