:root{--bg: #f6f2ea;--panel: #ffffff;--ink: #1f1c17;--muted: #6f655b;--accent: #1b6b63;--accent-2: #e59f5c;--border: #e1d6c8;--shadow: 0 12px 30px rgba(31, 28, 23, .08);--surface-bg: radial-gradient(circle at top, #fff8ee 0%, #f3eee6 55%, #efe7db 100%);--header-bg: rgba(255, 255, 255, .8);--on-accent: #fff;--code-inline-bg: #f4ebdf;--code-inline-ink: #7a4a16;--code-block-bg: #1f1c17;--code-block-ink: #f8f3eb;--field-bg: #fffdf9;--field-bg-strong: #ffffff;--badge-bg: #efe4d6;--section-bg: linear-gradient(180deg, #fffdf8 0%, #fbf6ee 100%);--section-shadow: 0 10px 20px rgba(31, 28, 23, .06);--conversation-bg: linear-gradient(180deg, #fffdf8 0%, #f9f2e8 100%);--conversation-active-shadow: 0 12px 24px rgba(27, 107, 99, .12);--empty-state-bg: linear-gradient(135deg, rgba(229, 159, 92, .12), rgba(27, 107, 99, .08));--message-user-bg: #1b6b63;--message-assistant-bg: #fffdf9;--overlay-bg: rgba(31, 28, 23, .35);--modal-bg: linear-gradient(180deg, #fffdf9 0%, #fff7ef 100%);--modal-content-bg: rgba(255, 255, 255, .78);--surface-raised: #fff;--selected-item-bg: linear-gradient(180deg, #f4fbf9 0%, #e8f3ef 100%);--selected-item-border: rgba(27, 107, 99, .28);--selected-item-button-bg: rgba(27, 107, 99, .08);--toast-border: rgba(27, 107, 99, .18);--toast-bg: linear-gradient(180deg, #fffdf9 0%, #f4ebe0 100%);--toast-shadow: 0 18px 36px rgba(31, 28, 23, .16);--nav-active-bg: #fff;--inline-code-bg: #efe7db;--status-ok-bg: #e1f3e9;--status-ok-ink: #1f6d43;--status-warn-bg: #fff1dd;--status-warn-ink: #8e5b16;--health-ok-border: #b9dfc9;--health-warn-border: #f0cd99;--editor-gutter-bg: #f7efe4;--editor-gutter-ink: #958372;--editor-active-line: rgba(27, 107, 99, .06);--editor-selection: rgba(27, 107, 99, .18);--editor-caret: #1b6b63;--editor-keyword: #8b3fd1;--editor-string: #9b4d16;--editor-number: #005f99;--editor-property: #1f1c17;--editor-comment: #8f7b66;font-family:Figtree,Segoe UI,sans-serif}:root[data-theme=dark]{--bg: #11161a;--panel: #192127;--ink: #edf1ea;--muted: #a7b2ac;--accent: #67c1b3;--accent-2: #f1b06f;--border: #2d3941;--shadow: 0 18px 38px rgba(0, 0, 0, .28);--surface-bg: radial-gradient(circle at top, #1d262d 0%, #12181d 55%, #0d1216 100%);--header-bg: rgba(17, 22, 26, .82);--on-accent: #081311;--code-inline-bg: #223039;--code-inline-ink: #f1c48f;--code-block-bg: #0c1115;--code-block-ink: #edf1ea;--field-bg: #131b20;--field-bg-strong: #182127;--badge-bg: #233038;--section-bg: linear-gradient(180deg, #1b242a 0%, #131a20 100%);--section-shadow: 0 18px 32px rgba(0, 0, 0, .22);--conversation-bg: linear-gradient(180deg, #1a2329 0%, #12191f 100%);--conversation-active-shadow: 0 16px 30px rgba(5, 12, 15, .4);--empty-state-bg: linear-gradient(135deg, rgba(241, 176, 111, .16), rgba(103, 193, 179, .12));--message-user-bg: #67c1b3;--message-assistant-bg: #141c21;--overlay-bg: rgba(4, 7, 9, .62);--modal-bg: linear-gradient(180deg, #1b242b 0%, #131920 100%);--modal-content-bg: rgba(20, 28, 33, .88);--surface-raised: #182026;--selected-item-bg: linear-gradient(180deg, #1d302e 0%, #162423 100%);--selected-item-border: rgba(103, 193, 179, .34);--selected-item-button-bg: rgba(103, 193, 179, .12);--toast-border: rgba(103, 193, 179, .24);--toast-bg: linear-gradient(180deg, #1a2329 0%, #12191e 100%);--toast-shadow: 0 20px 40px rgba(0, 0, 0, .34);--nav-active-bg: #182127;--inline-code-bg: #243139;--status-ok-bg: #183227;--status-ok-ink: #8fe0b1;--status-warn-bg: #372817;--status-warn-ink: #f6c987;--health-ok-border: #366f54;--health-warn-border: #8f6530;--editor-gutter-bg: #10171c;--editor-gutter-ink: #718089;--editor-active-line: rgba(103, 193, 179, .08);--editor-selection: rgba(103, 193, 179, .2);--editor-caret: #67c1b3;--editor-keyword: #c792ea;--editor-string: #ecc48d;--editor-number: #7fd0ff;--editor-property: #edf1ea;--editor-comment: #6f7f88;color-scheme:dark}:root[data-theme=light]{color-scheme:light}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;background:var(--surface-bg);color:var(--ink);transition:background .2s ease,color .2s ease}a{color:inherit;text-decoration:none}.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-header{display:flex;align-items:center;justify-content:space-between;padding:18px 28px;border-bottom:1px solid var(--border);background:var(--header-bg);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);position:sticky;top:0;z-index:10}.brand{font-weight:700;letter-spacing:.5px}.top-nav{display:flex;align-items:center;gap:18px}.top-nav a{padding:8px 12px;border-radius:999px;color:var(--muted)}.top-nav a.active{background:var(--accent);color:var(--on-accent)}.display-mode-button{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:999px;background:var(--panel);color:var(--ink);box-shadow:var(--shadow);cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease}.display-mode-button:hover{border-color:var(--accent);transform:translateY(-1px)}.display-mode-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.display-mode-icon{width:18px;height:18px}.app-main{flex:1;padding:24px;min-height:0}.guide-page{width:min(1280px,100%);margin:0 auto;display:grid;gap:20px;grid-template-columns:minmax(240px,300px) minmax(0,1fr);align-items:start}.guide-markdown-shell{overflow:hidden;min-height:calc(100vh - 180px)}.guide-sidebar{position:sticky;top:24px;overflow:hidden}.guide-sidebar-header{padding:18px 18px 14px;border-bottom:1px solid var(--border)}.guide-sidebar-header h2{margin:0;font-size:18px}.guide-sidebar-header p{margin:8px 0 0;color:var(--muted);line-height:1.6}.guide-sidebar-nav{display:grid;gap:8px;padding:14px}.guide-sidebar-item{width:100%;border:1px solid transparent;background:transparent;color:var(--text);text-align:left;padding:12px 14px;border-radius:12px;font:inherit;cursor:pointer;transition:background .2s ease,border-color .2s ease,color .2s ease}.guide-sidebar-item:hover{background:color-mix(in srgb,var(--accent) 8%,transparent)}.guide-sidebar-item.active{background:color-mix(in srgb,var(--accent) 14%,var(--panel));border-color:color-mix(in srgb,var(--accent) 28%,var(--border));color:var(--accent);font-weight:600}.guide-sidebar-item:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.guide-inline-link{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:none;padding:0;color:var(--accent);text-decoration:underline;text-underline-offset:2px;font:inherit;cursor:pointer}.guide-inline-link:hover{color:var(--accent-2)}.guide-inline-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}.guide-markdown{padding:clamp(18px,3vw,34px);max-width:86ch}.guide-markdown :is(h1,h2,h3,h4,h5,h6){scroll-margin-top:112px;line-height:1.2}.guide-markdown h1{font-size:clamp(30px,4vw,38px);margin-top:0}.guide-markdown h2{margin-top:2em;border-bottom:1px solid var(--border);padding-bottom:.35em}.guide-markdown p,.guide-markdown li{line-height:1.75}.guide-markdown a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}.guide-markdown code{background:var(--code-inline-bg);color:var(--code-inline-ink);border-radius:6px;padding:.15em .35em}.guide-markdown pre{overflow:auto;padding:16px;border-radius:14px;background:var(--code-block-bg);color:var(--code-block-ink)}.guide-markdown pre code{background:transparent;color:inherit;padding:0}.guide-markdown blockquote{margin:1.25em 0;padding:.25em 0 .25em 1em;border-left:4px solid var(--accent-2);color:var(--muted)}.guide-markdown table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}.guide-markdown th,.guide-markdown td{border:1px solid var(--border);padding:10px 12px;vertical-align:top}.guide-markdown img{max-width:100%;height:auto}.guide-markdown hr{border:0;border-top:1px solid var(--border);margin:2em 0}.guide-source-dialog{width:min(980px,100%);max-height:min(84vh,960px);grid-template-rows:auto auto minmax(0,1fr);overflow:hidden}.guide-source-dialog-content{padding:0;min-height:0;overflow:auto}.guide-source-markdown{max-width:none;min-width:0}.guide-source-markdown>:first-child{margin-top:0}@media (max-width: 720px){.app-header{padding:14px 16px;gap:12px;flex-wrap:wrap}.top-nav{gap:10px;flex-wrap:wrap}.app-main{padding:16px}.guide-page{grid-template-columns:1fr}.guide-sidebar{position:static}.guide-markdown-shell{min-height:auto}.guide-markdown{padding:16px}}.card{background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow)}.panel-header{padding:16px 18px;border-bottom:1px solid var(--border)}.panel-title-with-action{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-body{padding:16px 18px}.button{border:none;background:var(--accent);color:var(--on-accent);padding:10px 16px;border-radius:10px;cursor:pointer;font-weight:600}.button .MuiSvgIcon-root,button.button .MuiSvgIcon-root,.display-mode-button .MuiSvgIcon-root{flex:0 0 auto;width:1.15em;height:1.15em;font-size:18px}.display-mode-button .MuiSvgIcon-root{font-size:17px}.button.secondary{background:var(--badge-bg);color:var(--ink)}.button.outline{background:transparent;border:1px solid var(--border);color:var(--ink)}.label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:6px}.input,.select,.textarea{width:100%;border:1px solid var(--border);border-radius:10px;padding:10px 12px;font:inherit;background:var(--field-bg);color:var(--ink)}.codemirror{border:1px solid var(--border);border-radius:10px;background:var(--field-bg);overflow:hidden}.codemirror .cm-editor{font-family:SFMono-Regular,ui-monospace,SF Mono,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:13px;background:var(--field-bg-strong);color:var(--ink)}.codemirror .cm-focused{outline:none}.codemirror .cm-gutters{background:var(--editor-gutter-bg);color:var(--editor-gutter-ink);border-right:1px solid var(--border)}.codemirror .cm-scroller{padding:8px 10px}.codemirror .cm-content,.codemirror .cm-lineNumbers{color:var(--ink)}.codemirror .cm-activeLine,.codemirror .cm-activeLineGutter{background:var(--editor-active-line)}.codemirror .cm-selectionBackground,.codemirror .cm-content ::selection{background:var(--editor-selection)!important}.codemirror .cm-cursor,.codemirror .cm-dropCursor{border-left-color:var(--editor-caret)}.codemirror .tok-keyword,.codemirror .tok-bool,.codemirror .tok-null,.codemirror .tok-operator{color:var(--editor-keyword)}.codemirror .tok-string{color:var(--editor-string)}.codemirror .tok-number{color:var(--editor-number)}.codemirror .tok-propertyName,.codemirror .tok-variableName{color:var(--editor-property)}.codemirror .tok-comment{color:var(--editor-comment)}.grid{display:grid;gap:16px}.grid.two{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:var(--badge-bg);color:var(--muted);font-size:12px}.panel-section{border:1px solid var(--border);border-radius:14px;background:var(--section-bg);padding:16px;box-shadow:var(--section-shadow)}.panel-section>.label{margin-bottom:12px;color:var(--ink);font-weight:600;letter-spacing:.06em}.panel-section .grid{gap:12px}.doc-type-editor-actions{position:sticky;bottom:16px;z-index:20;display:flex;padding:12px;border:1px solid var(--border);border-radius:14px;background:color-mix(in srgb,var(--surface) 88%,transparent);box-shadow:var(--section-shadow);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.doc-type-editor-actions .button{width:100%;justify-content:center}.chat-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:20px;align-items:stretch;height:calc(100vh - 140px);min-height:0}.chat-sidebar{padding:16px;position:sticky;top:96px;max-height:calc(100vh - 120px);overflow:hidden}.chat-sidebar-header{display:grid;gap:12px}.chat-sidebar-actions{display:flex;gap:10px;flex-wrap:wrap}.chat-sidebar-header h2{margin:0;font-size:20px}.conversation-list{display:grid;gap:10px;margin-top:18px;overflow:auto;max-height:calc(100vh - 240px)}.conversation-item{border:1px solid var(--border);background:var(--conversation-bg);border-radius:14px;padding:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.conversation-item.active{border-color:var(--accent);box-shadow:var(--conversation-active-shadow)}.conversation-item-main{text-align:left;background:transparent;border:none;padding:0;cursor:pointer;display:grid;gap:8px}.conversation-item-title{font-weight:700}.conversation-item-preview{color:var(--muted);font-size:14px;line-height:1.4}.conversation-item-meta{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}.conversation-delete-button{align-self:start}.chat-main-panel{height:100%;min-height:0;display:flex;flex-direction:column}.chat-main-panel-body{flex:1;min-height:0;display:flex;flex-direction:column}.chat-main{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:stretch;flex:1;min-height:0}.chat-column{display:flex;flex-direction:column;gap:16px;min-height:0;flex:1}.chat-log{display:flex;flex-direction:column;gap:14px;flex:1;min-height:0;overflow-y:auto;padding-right:10px}.empty-chat-state{padding:28px;border-radius:8px;border:1px dashed var(--border);background:var(--empty-state-bg)}.empty-chat-state h3{margin:0 0 10px}.empty-chat-state p{margin:0;color:var(--muted)}.message{display:flex}.message.user{justify-content:flex-end}.message .bubble{max-width:80%;padding:14px 16px;border-radius:8px;border:1px solid var(--border);display:grid;gap:10px}.message.user .bubble{background:var(--message-user-bg);color:var(--on-accent);border-color:transparent;border-top-right-radius:6px}.message.assistant .bubble{background:var(--message-assistant-bg);border-top-left-radius:6px}.message-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:inherit;opacity:.75}.citation-chips{display:flex;gap:6px;flex-wrap:wrap}.citation-chip{max-width:100%;display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:4px 8px;text-align:left}.citation-chip-index{font-variant-numeric:tabular-nums;color:var(--accent);font-weight:700}.citation-chip-main,.citation-chip-subtitle{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.citation-chip-main{font-weight:700}.citation-chip-subtitle{grid-column:3;color:var(--muted);font-size:12px}.citation-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--overlay-bg);display:flex;align-items:center;justify-content:center;padding:24px;z-index:40;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.citation-modal{width:min(860px,100%);max-height:min(78vh,900px);padding:22px;display:grid;gap:14px;background:var(--modal-bg)}.citation-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.citation-modal-header h3{margin:4px 0 0;font-size:clamp(22px,3vw,28px)}.citation-modal-subtitle{margin-top:6px;color:var(--muted);font-size:14px}.citation-modal-eyebrow{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.citation-modal-close{flex-shrink:0}.citation-modal-meta,.citation-modal-actions{display:flex;gap:8px;flex-wrap:wrap}.citation-badge-row{display:flex;gap:6px;flex-wrap:wrap}.citation-badge-active{color:var(--status-ok-ink);background:var(--status-ok-bg)}.citation-badge-warning{color:var(--status-warn-ink);background:var(--status-warn-bg)}.citation-badge-muted{color:var(--muted)}.citation-modal-content{min-height:0;overflow:auto;border:1px solid var(--border);border-radius:14px;padding:16px;background:var(--modal-content-bg)}.citation-detail-content{margin:0;white-space:pre-wrap;word-break:break-word;font-family:IBM Plex Mono,SFMono-Regular,monospace;font-size:14px;line-height:1.7;color:var(--ink)}.chat-input{display:grid;gap:10px;flex-shrink:0}.chat-suggestion-button{max-width:min(360px,100%);white-space:normal;text-align:left}.filters-bar{display:flex;flex-direction:column;gap:10px;flex-shrink:0}.filters-bar-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.filters-bar-header .label{margin:0}.filters-toggle-button{padding:6px 10px}.source-panel{display:flex;flex-direction:column;height:100%;min-height:0}.source-panel-content{display:flex;flex-direction:column;flex:1;min-height:0}.source-panel-body{flex:1;min-height:0;overflow-y:auto}.panel-toggle-button{display:none;padding:6px 10px;white-space:nowrap}.source-item{border:1px solid var(--border);border-radius:12px;padding:12px;background:var(--surface-raised);display:grid;gap:8px}.source-groups{display:grid;gap:14px}.source-group{display:grid;gap:10px}.source-group-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.source-item-title{font-weight:700}.source-item-subtitle{color:var(--muted);font-size:13px;margin-top:3px}.source-actions{display:flex;gap:8px;flex-wrap:wrap}.source-excerpt{margin:0;color:var(--muted);line-height:1.55}.admin-list-item{display:flex;gap:8px;align-items:center;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}.source-item.admin-list-item{display:grid;gap:8px;align-items:stretch}.admin-list-item.selected{border-color:var(--accent);background:var(--selected-item-bg);box-shadow:var(--conversation-active-shadow)}.admin-list-item-header{display:flex;gap:8px;align-items:flex-start;justify-content:space-between}.admin-list-item-title-row{flex:1;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.admin-list-item-button{flex:1 1 240px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:4px}.admin-list-item-title{font-weight:700}.admin-list-item-subtitle{font-size:.9rem;color:var(--muted)}.admin-list-item-subtitle-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.admin-copy-button{padding:6px 10px}.admin-list-item.selected .admin-list-item-button{border-color:var(--selected-item-border);background:var(--selected-item-button-bg)}.admin-document-assets{margin-top:10px}.admin-document-asset{border:1px solid var(--border);border-radius:10px;padding:8px;background:var(--field-bg)}.admin-document-asset-title{font-weight:600}.doc-types-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:20px;align-items:start}.doc-types-sidebar-panel{position:sticky;top:96px;display:flex;flex-direction:column;max-height:calc(100vh - 120px);overflow:hidden}.doc-types-sidebar-panel-body{overflow-y:auto}.doc-types-list-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:8px;min-width:0}.doc-types-list-item>.button.doc-types-list-item-button{flex:1 1 auto;min-width:0;width:100%;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;text-align:left;white-space:normal}.doc-types-list-item-label{flex:1 1 auto;min-width:0;text-align:left;overflow-wrap:anywhere;word-break:break-word}.doc-types-list-item>.button.doc-types-delete-button{flex:0 0 40px;width:40px;min-width:40px;padding-inline:8px;white-space:nowrap}.doc-types-delete-label{display:none}.documents-layout{display:grid;grid-template-columns:minmax(0,7fr) minmax(280px,3fr);gap:20px;align-items:start}.documents-actions-panel{position:sticky;top:96px}.chat-stream-indicator{margin-top:16px;color:var(--accent);font-weight:600}.download-notice-popup{position:fixed;right:24px;bottom:24px;z-index:45;padding:12px 16px;border:1px solid var(--toast-border);border-radius:14px;background:var(--toast-bg);box-shadow:var(--toast-shadow);color:var(--ink);font-weight:600}.admin-shell{display:grid;grid-template-columns:220px 1fr;gap:20px}.side-nav{display:flex;flex-direction:column;gap:10px;max-height:calc(100vh - 110px);overflow:auto}@media (max-width: 980px){.chat-layout{grid-template-columns:1fr;height:auto}.chat-sidebar{position:static;max-height:none}.chat-main{grid-template-columns:1fr}.panel-toggle-button{display:inline-flex;align-items:center;justify-content:center}.mobile-collapsible.is-collapsed .mobile-collapsible-content,.mobile-collapsible .mobile-collapsible-content.is-collapsed{display:none}.chat-sidebar-actions{align-items:center;justify-content:flex-start}.citation-modal-overlay{padding:12px}.citation-modal{max-height:88vh;padding:16px}.download-notice-popup{left:12px;right:12px;bottom:12px}.doc-type-editor-actions{bottom:8px;padding:10px}}.side-nav a{padding:10px 12px;border-radius:12px;color:var(--muted)}.side-nav a.active{background:var(--nav-active-bg);color:var(--ink);border:1px solid var(--border)}@media (max-width: 960px){.chat-shell,.admin-shell,.doc-types-layout{grid-template-columns:1fr}.doc-types-sidebar-panel{position:static;max-height:none;overflow:visible}.doc-types-sidebar-panel-body{overflow:visible}.doc-types-list-item{grid-template-columns:1fr}.doc-types-list-item>.button.doc-types-delete-button{width:100%;min-width:0}.doc-types-delete-label{display:inline}.documents-layout{grid-template-columns:1fr}.documents-actions-panel{position:static}}.message .bubble p{margin:0 0 8px}.message .bubble ul{margin:0 0 8px 18px}.message .bubble code{background:var(--inline-code-bg);padding:2px 4px;border-radius:6px}.vector-row-btn{width:100%;text-align:left;border:1px solid var(--border);background:var(--surface-raised);cursor:pointer}.vector-row-btn:hover{border-color:var(--accent)}.vector-meta-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.vector-pre{margin:0;padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--field-bg);white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.45}.vector-textarea{min-height:220px;font-family:SFMono-Regular,ui-monospace,SF Mono,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:12px}.status-ok{background:var(--status-ok-bg);color:var(--status-ok-ink)}.status-warn{background:var(--status-warn-bg);color:var(--status-warn-ink)}.health-card.ok{border-color:var(--health-ok-border)}.health-card.warn{border-color:var(--health-warn-border)}:root{--bg: #f3f6fb;--surface: #eef3f8;--surface-subtle: #f8fafc;--panel: #ffffff;--panel-strong: #ffffff;--ink: #16202a;--text: #16202a;--muted: #657284;--muted-strong: #445161;--accent: #2458d6;--accent-2: #0f9f8f;--accent-3: #b7791f;--accent-soft: #e8eefc;--accent-2-soft: #e3f7f4;--border: #d9e2ee;--border-strong: #b9c7d8;--shadow: 0 16px 42px rgba(28, 42, 58, .08);--shadow-soft: 0 8px 24px rgba(28, 42, 58, .06);--surface-bg: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);--header-bg: rgba(255, 255, 255, .92);--on-accent: #ffffff;--code-inline-bg: #eef2ff;--code-inline-ink: #2442a3;--code-block-bg: #111827;--code-block-ink: #f8fafc;--field-bg: #ffffff;--field-bg-strong: #ffffff;--badge-bg: #f1f5f9;--section-bg: #f8fafc;--section-shadow: none;--conversation-bg: #ffffff;--conversation-active-shadow: 0 10px 26px rgba(36, 88, 214, .12);--empty-state-bg: linear-gradient(135deg, rgba(36, 88, 214, .08), rgba(15, 159, 143, .08));--message-user-bg: #2458d6;--message-assistant-bg: #ffffff;--overlay-bg: rgba(15, 23, 42, .48);--modal-bg: #ffffff;--modal-content-bg: #f8fafc;--surface-raised: #ffffff;--selected-item-bg: #f4f7ff;--selected-item-border: rgba(36, 88, 214, .32);--selected-item-button-bg: rgba(36, 88, 214, .08);--toast-border: rgba(36, 88, 214, .2);--toast-bg: #ffffff;--toast-shadow: 0 18px 42px rgba(15, 23, 42, .16);--nav-active-bg: #ffffff;--inline-code-bg: #eef2ff;--status-ok-bg: #e3f7ec;--status-ok-ink: #17663a;--status-warn-bg: #fff5df;--status-warn-ink: #8a580f;--health-ok-border: #9fd5b4;--health-warn-border: #edc575;--editor-gutter-bg: #edf2f7;--editor-gutter-ink: #718096;--editor-active-line: rgba(36, 88, 214, .06);--editor-selection: rgba(36, 88, 214, .18);--editor-caret: #2458d6;--editor-keyword: #6d3dc6;--editor-string: #9a4d11;--editor-number: #0969a5;--editor-property: #16202a;--editor-comment: #718096;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:root[data-theme=dark]{--bg: #101417;--surface: #151b20;--surface-subtle: #0f1317;--panel: #171d23;--panel-strong: #1d252c;--ink: #eef2f6;--text: #eef2f6;--muted: #9aa8b6;--muted-strong: #c4cdd6;--accent: #79a7ff;--accent-2: #55d2c2;--accent-3: #f2b667;--accent-soft: rgba(121, 167, 255, .16);--accent-2-soft: rgba(85, 210, 194, .14);--border: #2c3844;--border-strong: #3d4d5b;--shadow: 0 18px 44px rgba(0, 0, 0, .32);--shadow-soft: 0 10px 28px rgba(0, 0, 0, .24);--surface-bg: linear-gradient(180deg, #11171c 0%, #0d1115 100%);--header-bg: rgba(16, 20, 23, .9);--on-accent: #06101d;--code-inline-bg: #22314a;--code-inline-ink: #bcd0ff;--code-block-bg: #080b0e;--code-block-ink: #eef2f6;--field-bg: #11171c;--field-bg-strong: #121920;--badge-bg: #202a33;--section-bg: #121920;--conversation-bg: #171d23;--message-user-bg: #79a7ff;--message-assistant-bg: #151b20;--modal-bg: #171d23;--modal-content-bg: #11171c;--surface-raised: #1b232a;--selected-item-bg: rgba(121, 167, 255, .12);--selected-item-border: rgba(121, 167, 255, .36);--selected-item-button-bg: rgba(121, 167, 255, .12);--toast-bg: #171d23;--nav-active-bg: #1d252c;--inline-code-bg: #22314a;--status-ok-bg: #133326;--status-ok-ink: #8de3ad;--status-warn-bg: #362713;--status-warn-ink: #f5ca81;--health-ok-border: #32694e;--health-warn-border: #8f652d;--editor-gutter-bg: #0d1318;--editor-gutter-ink: #788897;--editor-active-line: rgba(121, 167, 255, .08);--editor-selection: rgba(121, 167, 255, .22);--editor-caret: #79a7ff;--editor-keyword: #c792ea;--editor-string: #f2c18b;--editor-number: #82d2ff;--editor-property: #eef2f6;--editor-comment: #7b8c9c;color-scheme:dark}html,body,#root{height:100%}body{background:var(--surface-bg);color:var(--ink);font-size:14px;line-height:1.5;text-rendering:optimizeLegibility}button,input,select,textarea{font:inherit}button{letter-spacing:0}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.58}::selection{background:color-mix(in srgb,var(--accent) 22%,transparent)}.app-shell{background:linear-gradient(180deg,rgba(255,255,255,.56),transparent 260px),var(--surface-bg)}:root[data-theme=dark] .app-shell{background:linear-gradient(180deg,rgba(121,167,255,.06),transparent 280px),var(--surface-bg)}.app-header{min-height:68px;padding:12px clamp(16px,2.5vw,32px);border-bottom:1px solid color-mix(in srgb,var(--border) 82%,transparent);background:var(--header-bg);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 1px #ffffff80}.brand-lockup{display:inline-flex;align-items:center;gap:12px;min-width:0}.brand-mark{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid color-mix(in srgb,var(--accent) 24%,var(--border));border-radius:8px;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;font-weight:800;box-shadow:var(--shadow-soft)}.brand{color:var(--ink);font-size:15px;font-weight:750;letter-spacing:0;line-height:1.2}.brand-subtitle{color:var(--muted);font-size:12px;line-height:1.3}.top-nav{gap:10px;min-width:0}.top-nav-links{display:inline-flex;align-items:center;gap:2px;padding:4px;border:1px solid var(--border);border-radius:8px;background:color-mix(in srgb,var(--surface) 74%,var(--panel))}.top-nav a{min-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 11px;border-radius:6px;color:var(--muted-strong);font-size:13px;font-weight:650;line-height:1;transition:background .16s ease,color .16s ease,box-shadow .16s ease}.top-nav a .MuiSvgIcon-root{flex:0 0 auto;width:1.12em;height:1.12em;font-size:18px}.top-nav a:hover{background:color-mix(in srgb,var(--accent) 8%,transparent);color:var(--ink)}.top-nav a.active{background:var(--nav-active-bg);color:var(--ink);box-shadow:0 1px 2px #0f172a14}.display-mode-button{width:38px;height:38px;border-color:var(--border);border-radius:8px;background:var(--panel);box-shadow:none}.display-mode-button:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--panel));transform:none}.app-main{width:100%;max-width:1540px;margin:0 auto;padding:clamp(16px,2.2vw,28px)}.app-main>.card{width:min(520px,100%);margin:clamp(36px,8vh,80px) auto}.card{border:1px solid var(--border);border-radius:8px;background:var(--panel);box-shadow:var(--shadow)}.panel-header{min-height:54px;padding:15px 18px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--panel) 88%,var(--surface));color:var(--ink);font-size:14px;font-weight:750}.panel-title-with-action{min-width:0}.panel-title-with-action>span,.panel-title-with-action h2{min-width:0}.panel-title-label{display:inline-flex;align-items:center;gap:8px}.panel-title-label .MuiSvgIcon-root{flex:0 0 auto;width:1.12em;height:1.12em;font-size:18px}.panel-body{padding:18px}.button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid color-mix(in srgb,var(--accent) 78%,#000000);border-radius:6px;background:var(--accent);color:var(--on-accent);padding:8px 13px;font-size:13px;font-weight:700;line-height:1.2;text-align:center;white-space:nowrap;box-shadow:0 1px 2px #0f172a14;transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}.button:hover:not(:disabled){background:color-mix(in srgb,var(--accent) 88%,#000000);border-color:color-mix(in srgb,var(--accent) 70%,#000000)}.button.secondary{border-color:color-mix(in srgb,var(--accent-2) 36%,var(--border));background:var(--accent-2-soft);color:color-mix(in srgb,var(--accent-2) 72%,var(--ink));box-shadow:none}.button.secondary:hover:not(:disabled){background:color-mix(in srgb,var(--accent-2) 16%,var(--panel));border-color:color-mix(in srgb,var(--accent-2) 52%,var(--border))}.button.outline{border-color:var(--border);background:var(--panel);color:var(--muted-strong);box-shadow:none}.button.outline:hover:not(:disabled){border-color:color-mix(in srgb,var(--accent) 42%,var(--border));background:color-mix(in srgb,var(--accent) 7%,var(--panel));color:var(--ink)}.button:focus-visible,.display-mode-button:focus-visible,.guide-sidebar-item:focus-visible,.guide-inline-link:focus-visible,.conversation-item-main:focus-visible,.vector-row-btn:focus-visible,.input:focus-visible,.select:focus-visible,.textarea:focus-visible{outline:2px solid color-mix(in srgb,var(--accent) 68%,transparent);outline-offset:2px}.label{margin-bottom:6px;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:0;line-height:1.35;text-transform:none}.input,.select,.textarea{min-height:42px;border:1px solid var(--border);border-radius:6px;background:var(--field-bg);color:var(--ink);padding:9px 11px;box-shadow:0 1px #0f172a05;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.textarea{min-height:96px;resize:vertical}.input:hover:not(:disabled),.select:hover:not(:disabled),.textarea:hover:not(:disabled){border-color:var(--border-strong)}.input:focus,.select:focus,.textarea:focus{border-color:color-mix(in srgb,var(--accent) 62%,var(--border));box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent);outline:0}input[type=checkbox]{width:15px;height:15px;accent-color:var(--accent)}input[type=file]{width:100%;min-height:42px;padding:8px;border:1px dashed var(--border-strong);border-radius:6px;background:var(--surface-subtle);color:var(--muted-strong)}.grid{min-width:0;gap:14px}.grid.two{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.badge{min-width:0;display:inline-flex;align-items:center;gap:6px;width:fit-content;max-width:100%;border:1px solid color-mix(in srgb,var(--border) 78%,transparent);border-radius:6px;background:var(--badge-bg);color:var(--muted-strong);padding:4px 8px;font-size:12px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}.status-ok,.citation-badge-active{border-color:color-mix(in srgb,var(--status-ok-ink) 24%,transparent)}.status-warn,.citation-badge-warning{border-color:color-mix(in srgb,var(--status-warn-ink) 26%,transparent)}.status-critical{border-color:color-mix(in srgb,#b42318 30%,transparent);background:color-mix(in srgb,#fee4e2 72%,var(--badge-bg));color:#9a1c13}[data-theme=dark] .status-critical{border-color:color-mix(in srgb,#ff8a80 35%,transparent);background:color-mix(in srgb,#5a1f1a 72%,var(--badge-bg));color:#ffb4ab}table{width:100%;min-width:780px;border-collapse:separate;border-spacing:0;border:1px solid var(--border);border-radius:8px;background:var(--panel);overflow:hidden;font-size:13px}thead{background:var(--surface)}th,td{padding:11px 12px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}th{color:var(--muted-strong);font-weight:750;white-space:nowrap}td{color:var(--ink)}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:color-mix(in srgb,var(--accent) 4%,transparent)}td .button{min-height:32px;padding:6px 9px}.panel-body:has(table){overflow-x:auto}.source-item,.admin-document-asset,.panel-section,.vector-row-btn{border-radius:8px}.source-item{border-color:var(--border);background:var(--surface-raised);box-shadow:0 1px #0f172a05}.source-item-title,.admin-list-item-title,.conversation-item-title{color:var(--ink);font-weight:750}.source-item-subtitle,.admin-list-item-subtitle,.conversation-item-preview,.source-excerpt{color:var(--muted)}.panel-section{border-color:var(--border);background:var(--section-bg);padding:14px}.panel-section>.label{color:var(--muted-strong)}.codemirror{border-radius:8px;background:var(--field-bg)}.codemirror .cm-scroller{padding:6px 8px}.doc-type-editor-actions{bottom:18px;border-radius:8px;background:color-mix(in srgb,var(--panel) 88%,transparent);box-shadow:0 12px 32px #0f172a1f}.admin-shell{width:100%;display:grid;grid-template-columns:248px minmax(0,1fr);gap:22px;align-items:start}.admin-content{min-width:0;display:grid;gap:20px}.side-nav{position:sticky;top:88px;max-height:calc(100vh - 112px);padding:12px;overflow:auto}.side-nav-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 4px 12px;color:var(--ink);font-weight:780}.side-nav-section{display:grid;gap:4px;padding:12px 0;border-top:1px solid var(--border)}.side-nav-section:first-of-type{border-top:0;padding-top:0}.side-nav-label{padding:0 8px 4px;color:var(--muted);font-size:12px;font-weight:750}.side-nav a{min-height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:6px;padding:8px 9px;color:var(--muted-strong);font-size:13px;font-weight:650}.side-nav a:hover{background:color-mix(in srgb,var(--accent) 7%,transparent);color:var(--ink)}.side-nav a.active{border-color:color-mix(in srgb,var(--accent) 28%,var(--border));background:var(--accent-soft);color:color-mix(in srgb,var(--accent) 72%,var(--ink))}.doc-types-layout{grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:22px}.doc-types-sidebar-panel,.documents-actions-panel{top:88px}.documents-layout{grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:22px}.admin-list-item{border-radius:8px}.admin-list-item.selected{border-color:var(--selected-item-border)}.admin-list-item-button{min-height:36px}.admin-copy-button,.conversation-delete-button{min-height:32px;padding:6px 9px}.admin-document-assets{gap:8px}.status-info{border-color:color-mix(in srgb,var(--accent) 22%,transparent);background:color-mix(in srgb,var(--accent) 9%,var(--badge-bg));color:color-mix(in srgb,var(--accent) 74%,var(--ink))}.status-processing{border-color:color-mix(in srgb,var(--accent-2) 24%,transparent);background:color-mix(in srgb,var(--accent-2) 12%,var(--badge-bg));color:color-mix(in srgb,var(--accent-2) 62%,var(--ink))}.status-muted{border-color:color-mix(in srgb,var(--border-strong) 36%,transparent);background:var(--surface);color:var(--muted)}.documents-upload-zone{display:grid;gap:12px;padding:14px;border:1px solid var(--border);border-radius:8px;background:var(--section-bg)}.documents-upload-header,.documents-selected-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}.documents-upload-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.documents-status-legend,.documents-document-meta,.documents-debug-grid,.documents-action-hints,.documents-current-type{min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:6px}.documents-advanced{min-width:0;border:1px solid var(--border);border-radius:8px;background:color-mix(in srgb,var(--panel) 82%,var(--surface))}.documents-advanced summary{min-height:36px;display:flex;align-items:center;padding:8px 10px;color:var(--muted-strong);cursor:pointer;font-size:13px;font-weight:700}.documents-advanced>.grid{padding:0 10px 10px}.documents-review-grid{gap:12px}.documents-debug-grid{align-items:flex-start}.documents-analysis{max-height:180px;margin:0;overflow:auto;white-space:pre-wrap;word-break:break-word;border:1px solid var(--border);border-radius:8px;background:var(--surface-subtle);color:var(--ink);padding:10px;font-size:12px;line-height:1.55}.documents-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.document-action-button{justify-content:flex-start}.documents-upload-list{gap:8px}.documents-upload-item{background:color-mix(in srgb,var(--panel) 90%,var(--surface))}.documents-upload-analysis{max-height:112px;margin-top:4px}.admin-document-asset{display:grid;gap:6px;background:var(--surface-subtle)}.pipeline-operations{display:grid;gap:20px}.pipeline-page-title,.pipeline-section-header{min-width:0;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.pipeline-page-title{align-items:center}.pipeline-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:10px;margin-bottom:14px}.pipeline-stat{min-width:0;min-height:72px;display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:8px;background:var(--surface-raised);padding:12px}.pipeline-stat svg{width:22px;height:22px;flex:0 0 auto}.pipeline-stat-value{color:var(--ink);font-size:22px;font-weight:800;line-height:1}.pipeline-stat-label{margin-top:4px;color:var(--muted);font-size:12px;font-weight:700}.pipeline-health-panel{min-width:0;display:grid;gap:12px;border:1px solid var(--border);border-radius:8px;background:var(--section-bg);padding:14px;margin-bottom:14px}.pipeline-health-grid{min-width:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:10px}.pipeline-health-card{min-width:0;min-height:66px;display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:8px;background:var(--surface-raised);padding:10px}.pipeline-health-card svg{width:20px;height:20px;flex:0 0 auto}.pipeline-health-header-actions{min-width:0;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.pipeline-health-value{color:var(--ink);font-size:18px;font-weight:800;line-height:1.1;overflow-wrap:anywhere}.pipeline-health-label{margin-top:3px;color:var(--muted);font-size:12px;font-weight:700}.pipeline-health-issues,.pipeline-alert-list,.pipeline-issue-list{min-width:0;display:grid;gap:8px}.pipeline-alert-row,.pipeline-issue-row{width:100%;min-width:0;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px;align-items:start;border:1px solid var(--border);border-radius:8px;background:var(--surface-raised);color:var(--ink);padding:8px;text-align:left;cursor:pointer}.pipeline-issue-row:disabled{cursor:default}.pipeline-alert-row{cursor:default}.pipeline-issue-row:not(:disabled):hover{border-color:color-mix(in srgb,var(--accent) 26%,var(--border))}.pipeline-issue-copy{min-width:0;display:grid;gap:4px}.pipeline-upload-zone{display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:14px;align-items:end;border:1px solid var(--border);border-radius:8px;background:var(--section-bg);padding:14px;margin-bottom:14px}.pipeline-upload-copy{min-width:0;align-self:center}.pipeline-upload-controls{min-width:0;display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(180px,1fr) auto;gap:10px;align-items:end}.pipeline-main-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,420px);gap:16px;align-items:start;margin-top:16px}.pipeline-queue-panel,.pipeline-detail-panel{min-width:0;display:grid;gap:12px}.pipeline-upload-table{min-width:0;display:grid;gap:8px}.pipeline-row,.pipeline-document-card{width:100%;min-width:0;display:grid;gap:10px;border:1px solid var(--border);border-radius:8px;background:var(--surface-raised);color:var(--ink);padding:12px;text-align:left;cursor:pointer}.pipeline-row{grid-template-columns:minmax(0,1fr) auto;align-items:center}.pipeline-row:hover,.pipeline-document-card:hover{border-color:color-mix(in srgb,var(--accent) 26%,var(--border))}.pipeline-row.selected,.pipeline-document-card.selected{border-color:var(--selected-item-border);background:var(--selected-item-bg)}.pipeline-row-main,.pipeline-detail-body,.pipeline-stage-list,.pipeline-evidence-grid,.pipeline-registry-grid,.pipeline-jobs-grid{min-width:0;display:grid;gap:10px}.pipeline-row-title{min-width:0;color:var(--ink);font-weight:760;overflow-wrap:anywhere}.pipeline-row-meta,.pipeline-evidence-grid{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.pipeline-mini-stages{display:grid;grid-template-columns:repeat(11,9px);gap:4px;align-items:center}.pipeline-mini-stage{width:9px;height:24px;border-radius:999px;background:var(--badge-bg);border:1px solid var(--border)}.pipeline-mini-stage.done{background:var(--status-ok-bg);border-color:var(--health-ok-border)}.pipeline-mini-stage.active{background:color-mix(in srgb,var(--accent-2) 34%,var(--badge-bg));border-color:color-mix(in srgb,var(--accent-2) 44%,var(--border))}.pipeline-mini-stage.warning,.pipeline-mini-stage.blocked{background:var(--status-warn-bg);border-color:var(--health-warn-border)}.pipeline-stage-card{min-width:0;display:grid;grid-template-columns:14px minmax(0,1fr);gap:10px;border:1px solid var(--border);border-radius:8px;background:var(--surface-raised);padding:10px}.pipeline-stage-dot{width:10px;height:10px;margin-top:4px;border-radius:999px;background:var(--badge-bg);border:1px solid var(--border)}.pipeline-stage-card.done .pipeline-stage-dot{background:var(--status-ok-bg);border-color:var(--health-ok-border)}.pipeline-stage-card.active .pipeline-stage-dot{background:color-mix(in srgb,var(--accent-2) 42%,var(--badge-bg));border-color:var(--health-warn-border)}.pipeline-stage-card.warning .pipeline-stage-dot,.pipeline-stage-card.blocked .pipeline-stage-dot,.pipeline-stage-blocked{background:var(--status-warn-bg);border-color:var(--health-warn-border)}.pipeline-stage-title{margin-bottom:6px;color:var(--ink);font-weight:750}.pipeline-stage-detail{margin-top:6px;color:var(--muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.pipeline-event-list{display:grid;gap:8px}.pipeline-event-row{min-width:0;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px;align-items:start;border:1px solid var(--border);border-radius:8px;background:var(--surface-raised);padding:8px}.pipeline-event-copy{min-width:0;display:grid;gap:4px}.pipeline-event-message{color:var(--ink);font-size:13px;font-weight:680;overflow-wrap:anywhere}.pipeline-event-meta{display:flex;flex-wrap:wrap;gap:6px;color:var(--muted);font-size:12px}.documents-review-select{min-width:0;display:grid;gap:6px;color:var(--muted);font-size:12px}.documents-review-select select{width:100%;min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--ink);padding:8px 10px}.pipeline-document-card{grid-template-columns:34px minmax(0,1fr);align-items:start}.pipeline-document-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--accent)}.pipeline-job-row{min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px;border:1px solid var(--border);border-radius:8px;background:var(--surface-raised);padding:10px}.pipeline-job-id{min-width:0;color:var(--ink);font-size:12px;font-weight:700;overflow-wrap:anywhere}.chat-layout{width:100%;display:grid;grid-template-columns:304px minmax(0,1fr);gap:20px;align-items:stretch;height:calc(100vh - 116px);min-height:620px}.chat-sidebar{top:88px;max-height:calc(100vh - 116px);padding:16px}.chat-sidebar-header{gap:14px}.chat-sidebar-header h2{color:var(--ink);font-size:18px;line-height:1.2}.chat-sidebar-actions .button{width:100%}.conversation-list{gap:8px;margin-top:16px;max-height:calc(100vh - 250px);padding-right:2px}.conversation-item{border-radius:8px;background:var(--conversation-bg);padding:12px}.conversation-item.active{border-color:color-mix(in srgb,var(--accent) 54%,var(--border));background:var(--selected-item-bg)}.conversation-item-main{color:inherit;border-radius:6px}.conversation-item-meta{color:var(--muted)}.chat-workbench{min-width:0;min-height:0;display:flex;flex-direction:column;border:1px solid var(--border);border-radius:8px;background:color-mix(in srgb,var(--panel) 92%,var(--surface));box-shadow:var(--shadow);overflow:hidden}.chat-workbench-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid var(--border);background:var(--panel)}.chat-workbench-header h1{margin:0;color:var(--ink);font-size:clamp(19px,2vw,24px);line-height:1.2}.chat-workbench-header p{max-width:820px;margin:6px 0 0;color:var(--muted)}.chat-status-pill{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:6px;background:var(--surface-subtle);color:var(--muted-strong);padding:6px 9px;font-size:12px;font-weight:750}.chat-status-pill:before{content:"";width:8px;height:8px;border-radius:999px;background:var(--accent-2);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-2) 18%,transparent)}.chat-status-pill.is-live:before{background:var(--accent-3);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-3) 20%,transparent)}.chat-main{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:16px;padding:16px}.chat-column{gap:14px}.filters-bar{border:1px solid var(--border);border-radius:8px;background:var(--surface-subtle);padding:12px}.filters-bar-header .label{color:var(--ink);font-size:13px}.filters-toggle-button{min-height:32px;padding:6px 9px}.filters-grid{padding-top:2px}.chat-log{gap:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface-subtle);padding:16px 12px 16px 16px}.empty-chat-state{border-radius:8px;padding:22px}.empty-chat-state h3{color:var(--ink)}.message .bubble{max-width:min(78%,820px);min-width:0;border-radius:8px;padding:13px 15px;box-shadow:0 1px 2px #0f172a0a}.message.user .bubble{border-top-right-radius:8px}.message.assistant .bubble{border-top-left-radius:8px;width:100%;max-width:100%;overflow:hidden}.message-meta{color:inherit;font-size:11px;font-weight:700}.message .bubble p,.message .bubble ul,.message .bubble ol{line-height:1.7;overflow-wrap:anywhere}.citation-chip{min-width:0;min-height:34px;white-space:normal}.citation-chip-index{color:var(--accent)}.chat-input{border:1px solid var(--border);border-radius:8px;background:var(--panel);padding:12px}.chat-input .textarea{min-height:94px;border-color:transparent;background:var(--surface-subtle)}.chat-input-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.chat-suggestion-button{max-width:min(390px,100%);justify-content:flex-start}.source-panel{height:100%;min-height:0;box-shadow:none}.source-panel .panel-header{background:var(--surface-subtle)}.source-panel-content{min-height:0}.source-panel-body{padding-right:2px}.source-group-header{padding-bottom:2px}.source-actions .button{min-height:32px;padding:6px 9px}.chat-stream-indicator{margin:0;padding:0 16px 16px;color:var(--accent)}.citation-modal{border-radius:8px;box-shadow:var(--shadow)}.citation-modal-header h3{font-size:clamp(20px,2.5vw,25px)}.citation-modal-eyebrow{letter-spacing:0}.citation-modal-content,.download-notice-popup{border-radius:8px}.guide-page{width:min(1360px,100%);gap:22px}.guide-sidebar{top:88px}.guide-sidebar-header h2,.guide-markdown h1,.guide-markdown h2,.guide-markdown h3{color:var(--ink)}.guide-sidebar-item{border-radius:6px;color:var(--muted-strong)}.guide-sidebar-item.active{color:color-mix(in srgb,var(--accent) 72%,var(--ink))}.guide-markdown{max-width:92ch}.guide-markdown pre,.guide-markdown code,.vector-pre{border-radius:8px}.vector-meta-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.vector-row-btn{transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.vector-row-btn:hover{background:color-mix(in srgb,var(--accent) 5%,var(--panel));box-shadow:var(--shadow-soft)}.health-card.ok{background:color-mix(in srgb,var(--status-ok-bg) 68%,var(--panel))}.health-card.warn{background:color-mix(in srgb,var(--status-warn-bg) 72%,var(--panel))}.health-card .label+div{color:var(--ink)}.panel-body h3{margin:4px 0 0;color:var(--ink);font-size:15px;line-height:1.3}pre.source-item,.vector-pre{background:var(--surface-subtle);color:var(--ink)}@media (max-width: 1100px){.chat-layout{grid-template-columns:1fr;height:auto;min-height:0}.chat-sidebar{position:static;max-height:none}.conversation-list{max-height:none}.chat-workbench{min-height:calc(100vh - 150px)}.chat-main{grid-template-columns:1fr}.source-panel{height:auto}}@media (max-width: 980px){.admin-shell{grid-template-columns:1fr}.side-nav{position:static;max-height:none}.side-nav-section{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.side-nav-label{grid-column:1 / -1}.doc-types-layout,.documents-layout,.pipeline-main-grid,.pipeline-upload-zone{grid-template-columns:1fr}.pipeline-upload-controls{grid-template-columns:minmax(0,1fr)}.doc-types-sidebar-panel,.documents-actions-panel{position:static;max-height:none}}@media (max-width: 720px){body{font-size:13px;overflow-x:hidden}.app-header{align-items:flex-start;padding:12px;overflow:hidden}.brand-subtitle{display:none}.top-nav{width:100%;justify-content:space-between;overflow:hidden}.top-nav-links{flex:1 1 auto;min-width:0;max-width:none;overflow-x:auto}.top-nav a,.display-mode-button{flex:0 0 auto}.app-main{max-width:100vw;padding:12px;overflow-x:hidden}.app-main>.card{width:100%;max-width:calc(100vw - 24px);margin:20px auto}.panel-body,.panel-header{padding:14px}.chat-workbench-header{flex-direction:column;padding:14px}.chat-main{padding:12px}.message .bubble{max-width:92%}.chat-input-actions .button,.chat-suggestion-button{width:100%}.citation-modal-overlay{padding:10px}.side-nav-section,.grid.two{grid-template-columns:1fr}.pipeline-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pipeline-row{grid-template-columns:1fr}.pipeline-mini-stages{grid-template-columns:repeat(11,minmax(8px,1fr))}table{min-width:680px}}
