:root{color:#17211d;background:#f7f8fa;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,a{font:inherit}.app-shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh;background:linear-gradient(180deg,rgba(17,123,111,.07),transparent 320px),#f7f8fa}.sidebar{display:flex;flex-direction:column;gap:32px;padding:24px;border-right:1px solid #dfe5e2;background:#fff}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;width:42px;height:42px;place-items:center;border-radius:8px;background:#116f63;color:#fff;font-size:13px;font-weight:800}.brand strong,.brand small{display:block}.brand strong{font-size:14px;letter-spacing:0}.brand small{margin-top:2px;color:#61706a;font-size:12px}.nav-list{display:grid;gap:8px}.nav-item{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 12px;border-radius:8px;color:#52605a;font-size:14px;font-weight:650;text-decoration:none}.nav-item.is-active{background:#e8f3f0;color:#0c5f55}.workspace{display:grid;align-content:start;gap:18px;width:min(1120px,100%);padding:32px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px}.topbar h1{margin:0;font-size:30px;line-height:1.15;letter-spacing:0}.topbar p,.status-indicator p,.job-panel p,.search-panel p,.chat-panel p{margin:6px 0 0;color:#607069;line-height:1.5}.refresh-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:0 15px;border:1px solid #bfd1ca;border-radius:8px;background:#fff;color:#14342d;cursor:pointer;font-size:14px;font-weight:700}.topbar-actions{display:inline-flex;align-items:center;gap:10px}.backend-pill{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid #cbd8d2;border-radius:8px;background:#fff;color:#52605a;font-size:13px;font-weight:750}.backend-pill.running,.backend-pill.started{border-color:#b7d8cc;background:#e8f3f0;color:#0c5f55}.backend-pill.unavailable{border-color:#f3c5c0;background:#fff1ef;color:#8a2b21}.refresh-button:disabled{cursor:wait;opacity:.62}.status-panel,.job-panel,.library-panel,.search-panel,.chat-panel,.runtime-panel{border:1px solid #dfe5e2;border-radius:8px;background:#fff;box-shadow:0 16px 38px #212e2914}.status-panel{display:grid;gap:18px;padding:22px}.status-indicator{display:flex;align-items:flex-start;gap:14px;padding-bottom:18px;border-bottom:1px solid #e6ebe8}.status-indicator svg{flex:0 0 auto;margin-top:2px}.status-indicator.ok svg{color:#0f7a43}.status-indicator.warning svg{color:#b25c00}.status-indicator h2,.job-panel h2,.search-panel h2,.chat-panel h2{margin:0;font-size:19px;line-height:1.25;letter-spacing:0}.error-strip{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #f3c5c0;border-radius:8px;background:#fff1ef;color:#8a2b21;font-size:14px;font-weight:650}.settings-strip{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:12px;padding:14px;border:1px solid #e1e8e4;border-radius:8px;background:#fbfcfc}.settings-strip div{display:grid;min-width:0;gap:4px}.settings-strip span{color:#607069;font-size:12px;font-weight:750}.settings-strip strong{min-width:0;overflow-wrap:anywhere;color:#17211d;font-size:14px;line-height:1.35}.index-form,.search-form,.chat-form{display:grid;gap:8px}.index-form label,.search-form label,.chat-form label{color:#607069;font-size:13px;font-weight:750}.folder-input-row,.profile-select-row,.chat-input-row,.search-input-row{display:grid;gap:10px}.profile-select-row{grid-template-columns:minmax(160px,.28fr) minmax(0,1fr);align-items:center}.folder-input-row{grid-template-columns:minmax(0,1fr) auto auto}.search-input-row{grid-template-columns:minmax(0,1fr) auto}.chat-input-row{grid-template-columns:minmax(0,1fr) auto;align-items:stretch}.folder-input-row input,.folder-input-row input[type=file],.profile-select-row select,.search-input-row input,.chat-input-row textarea{width:100%;min-width:0;min-height:42px;padding:0 12px;border:1px solid #cbd8d2;border-radius:8px;background:#fff;color:#17211d;font:inherit}.folder-input-row input[type=file]{display:flex;align-items:center;padding:9px 12px}.form-hint{margin:0;color:#607069;font-size:13px;line-height:1.4}.chat-input-row textarea{min-height:86px;padding:10px 12px;line-height:1.45;resize:vertical}.profile-select-row select{cursor:pointer}.primary-action,.secondary-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 14px;border-radius:8px;cursor:pointer;font-size:14px;font-weight:750;white-space:nowrap}.primary-action{border:1px solid #0e675c;background:#116f63;color:#fff}.secondary-action{border:1px solid #bfd1ca;background:#fff;color:#14342d}.primary-action:disabled{cursor:wait;opacity:.7}.job-created-strip{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:10px;padding:12px 14px;border:1px solid #b7d8cc;border-radius:8px;background:#e8f3f0;color:#0c5f55;font-size:14px}.job-created-strip span{min-width:0;overflow-wrap:anywhere}.metrics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.metric-card{display:grid;min-height:128px;align-content:space-between;gap:10px;padding:16px;border:1px solid #e1e8e4;border-radius:8px;background:#fbfcfc}.metric-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:8px;background:#e8f3f0;color:#0e675c}.metric-label{color:#607069;font-size:13px;font-weight:700}.metric-card strong{color:#17211d;font-size:34px;line-height:1;letter-spacing:0}.job-panel,.library-panel,.search-panel,.chat-panel,.runtime-panel{display:grid;gap:18px;padding:22px}.job-panel-header,.library-header,.search-header,.chat-header,.runtime-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.runtime-header h2{margin:0;font-size:19px;line-height:1.25;letter-spacing:0}.runtime-header p{margin:6px 0 0;color:#607069;line-height:1.5}.ai-settings-form{display:grid;gap:14px;padding:16px;border:1px solid #e1e8e4;border-radius:8px;background:#fbfcfc}.ai-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ai-settings-grid label{display:grid;min-width:0;gap:7px}.ai-settings-grid span,.checkbox-row,.settings-hint{color:#607069;font-size:12px;font-weight:800}.ai-settings-grid input,.ai-settings-grid select{width:100%;min-width:0;min-height:42px;padding:0 12px;border:1px solid #cbd8d2;border-radius:8px;background:#fff;color:#17211d;font:inherit}.ai-settings-grid select{cursor:pointer}.ai-settings-wide{grid-column:span 2}.ai-settings-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.checkbox-row{display:inline-flex;align-items:center;gap:8px}.checkbox-row input{width:16px;height:16px;accent-color:#116f63}.runtime-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}.runtime-grid div{display:grid;min-width:0;gap:5px;padding:14px;border:1px solid #e1e8e4;border-radius:8px;background:#fbfcfc}.runtime-grid dt{color:#607069;font-size:12px;font-weight:800}.runtime-grid dd{margin:0;min-width:0;overflow-wrap:anywhere;color:#17211d;font-size:14px;font-weight:750}.not-found-strip{padding:12px 14px;border:1px solid #d9d8c3;border-radius:8px;background:#fffbea;color:#6b5b13;font-size:14px;font-weight:700}.search-results{display:grid;gap:10px}.search-result{display:grid;gap:10px;padding:14px;border:1px solid #e1e8e4;border-radius:8px;background:#fbfcfc}.search-result-header{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.search-result-header strong{min-width:0;overflow-wrap:anywhere;color:#17211d;font-size:14px}.search-result-header span{display:inline-flex;min-height:26px;align-items:center;padding:0 8px;border:1px solid #bfd1ca;border-radius:8px;background:#fff;color:#0c5f55;font-size:12px;font-weight:800}.inline-action{display:inline-flex;min-height:28px;align-items:center;gap:6px;padding:0 9px;border:1px solid #bfd1ca;border-radius:8px;background:#fff;color:#14342d;cursor:pointer;font-size:12px;font-weight:800}.document-open-action{justify-self:start}.search-result p{margin:0;color:#18231f;font-size:14px;line-height:1.55}.answer-card{display:grid;gap:12px;padding:16px;border:1px solid #e1e8e4;border-radius:8px;background:#fbfcfc}.answer-header{display:flex;flex-wrap:wrap;gap:8px}.answer-header span{display:inline-flex;min-height:26px;align-items:center;padding:0 8px;border:1px solid #bfd1ca;border-radius:8px;background:#fff;color:#0c5f55;font-size:12px;font-weight:800}.timing-breakdown{display:flex;flex-wrap:wrap;gap:6px;margin:0}.timing-chip{display:inline-flex;min-height:24px;align-items:center;gap:4px;padding:0 8px;border:1px solid #d7e2dd;border-radius:8px;background:#fff;color:#49615a;font-size:12px}.timing-chip dt,.timing-chip dd{margin:0}.timing-chip dt{font-weight:750}.timing-chip dd{color:#14231f}.coverage-panel{display:grid;gap:8px;padding:10px 12px;border:1px solid #e1e8e4;border-radius:8px;background:#fff}.coverage-panel>strong{color:#17211d;font-size:13px}.coverage-list{display:flex;flex-wrap:wrap;gap:6px}.coverage-chip,.support-badge{display:inline-flex;min-height:26px;align-items:center;padding:0 8px;border-radius:8px;font-size:12px;font-weight:800}.coverage-chip.is-covered,.support-badge.is-direct{border:1px solid #9ed8bd;background:#eefaf3;color:#08713f}.coverage-chip.is-partial,.support-badge.is-inferred{border:1px solid #a9c8f5;background:#f1f6ff;color:#245c9e}.coverage-chip.is-missing,.support-badge.is-missing{border:1px solid #e1d4a8;background:#fff7df;color:#725200}.answer-card>p{margin:0;color:#18231f;font-size:15px;line-height:1.6}.answer-items{display:grid;gap:12px}.answer-item{display:grid;gap:10px;padding:12px;border:1px solid #e1e8e4;border-radius:8px;background:#fff}.answer-item.is-not-found{border-color:#e1d4a8;background:#fffaf0}.answer-item-header{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.answer-item-header strong{color:#17211d;font-size:14px}.answer-item-header span{display:inline-flex;min-height:26px;align-items:center;padding:0 8px;border:1px solid #e1d4a8;border-radius:8px;background:#fff7df;color:#725200;font-size:12px;font-weight:800}.answer-item-header .support-badge,.claim-header .support-badge{display:inline-flex}.answer-item>p{margin:0;color:#18231f;font-size:15px;line-height:1.6}.support-reason{margin:-2px 0 0;color:#52605a;font-size:13px;line-height:1.5}.claim-list{display:grid;gap:10px}.claim-row{display:grid;gap:8px;padding:10px;border:1px solid #e1e8e4;border-radius:8px;background:#fff}.claim-row.is-missing{border-color:#e1d4a8;background:#fffaf0}.claim-header{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.claim-header strong{min-width:0;color:#17211d;font-size:14px;overflow-wrap:anywhere}.citation-list{display:grid;gap:10px}.citation-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;border:1px solid #e1e8e4;border-radius:8px;background:#fff}.citation-row strong{min-width:0;overflow-wrap:anywhere;color:#17211d;font-size:14px}.citation-row span{display:inline-flex;min-height:26px;align-items:center;padding:0 8px;border:1px solid #bfd1ca;border-radius:8px;background:#fbfcfc;color:#0c5f55;font-size:12px;font-weight:800}.citation-row p{flex:1 0 100%;margin:0;color:#52605a;font-size:13px;line-height:1.5}.library-grid{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);gap:16px}.document-list,.document-detail{min-width:0}.document-list{display:grid;align-content:start;gap:8px}.document-row{display:grid;width:100%;min-width:0;gap:5px;padding:12px;border:1px solid #e1e8e4;border-radius:8px;background:#fbfcfc;color:#17211d;cursor:pointer;text-align:left}.document-row.is-selected{border-color:#8bc2b3;background:#e8f3f0}.document-row strong,.document-row span,.document-detail h3,.document-detail p{min-width:0;overflow-wrap:anywhere}.document-row strong{font-size:14px}.document-row>span,.document-detail p,.detail-meta,.document-meta{color:#607069;font-size:13px}.document-meta,.detail-meta{display:flex;flex-wrap:wrap;gap:8px;font-weight:700}.document-detail{display:grid;align-content:start;gap:14px;padding:14px;border:1px solid #e1e8e4;border-radius:8px;background:#fbfcfc}.document-detail h3{margin:0;font-size:18px;line-height:1.25}.chunk-list{display:grid;gap:10px}.chunk-preview{display:grid;gap:7px;padding:12px;border:1px solid #e1e8e4;border-radius:8px;background:#fff}.chunk-preview span{color:#0c5f55;font-size:12px;font-weight:800}.chunk-preview p{margin:0;color:#18231f;font-size:14px;line-height:1.5}.job-list{display:grid;gap:10px;margin:0}.job-list div{display:grid;grid-template-columns:210px minmax(0,1fr);gap:12px;padding:12px 0;border-top:1px solid #e6ebe8}.job-list dt{color:#607069;font-size:13px;font-weight:700}.job-list dd{margin:0;min-width:0;overflow-wrap:anywhere;color:#18231f;font-size:14px;font-weight:650}.empty-state{padding:16px;border:1px dashed #cbd8d2;border-radius:8px;background:#fbfcfc}@media(max-width:760px){.app-shell{grid-template-columns:1fr}.sidebar{position:sticky;top:0;z-index:2;gap:14px;padding:14px 16px;border-right:0;border-bottom:1px solid #dfe5e2}.nav-list{grid-template-columns:repeat(5,minmax(0,1fr))}.nav-item{justify-content:center;padding:0 8px;font-size:12px}.nav-item svg{display:none}.workspace{padding:20px 16px}.topbar{align-items:flex-start;flex-direction:column}.job-panel-header,.library-header,.search-header,.chat-header{flex-direction:column}.topbar-actions{align-items:stretch;flex-direction:column;width:100%}.backend-pill,.refresh-button{width:100%}.topbar h1{font-size:25px}.metrics-grid,.settings-strip,.folder-input-row,.profile-select-row,.chat-input-row,.search-input-row,.ai-settings-grid,.job-created-strip,.library-grid,.runtime-grid{grid-template-columns:1fr}.ai-settings-wide{grid-column:auto}.ai-settings-actions{align-items:stretch;flex-direction:column}.job-list div{grid-template-columns:1fr;gap:5px}}
