@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #f6f7f9;--surface: #ffffff;--surface-2: #eef2f6;--border: rgba(0, 26, 49, .1);--border-strong: rgba(0, 149, 208, .4);--text: #001a31;--muted: #4e595f;--grey: #4e595f;--primary: #0095d0;--primary-hover: #007ab0;--accent: #e9600e;--accent-hover: #c75009;--green: #16a34a;--amber: #e9600e;--red: #dc2626;--radius: 10px;--radius-lg: 14px;--shadow-sm: 0 1px 3px rgba(0,26,49,.07);--shadow-md: 0 4px 16px rgba(0,26,49,.12)}body{background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}.app{min-height:100vh;display:flex;flex-direction:column}.header{background:linear-gradient(90deg,#001220,#001a31 60%,#00243f);border-bottom:1px solid var(--border-strong);padding:0 24px;position:sticky;top:0;z-index:10;box-shadow:0 2px 12px #00000080}.header-inner{width:100%;max-width:100%;height:56px;display:flex;align-items:center;justify-content:space-between}.header-logo-group{display:flex;align-items:center;gap:14px}.header-logo{height:22px;width:auto;display:block;filter:brightness(0) invert(1)}.header-divider-logo{width:1px;height:26px;background:var(--border-strong)}.header-app-name{font-size:14px;font-weight:500;letter-spacing:-.3px;color:#ffffffbf}.header h1{font-size:15px;font-weight:700;letter-spacing:-.3px}.health-dot{font-size:12px}.health-dot.healthy{color:var(--green)}.health-dot.unhealthy{color:var(--red)}.main{max-width:960px;margin:0 auto;padding:24px 24px 64px;display:flex;flex-direction:column;gap:16px;width:100%}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow-sm)}.tabs{display:flex;gap:4px;margin-bottom:14px}.tab{padding:6px 14px;border-radius:7px;border:1px solid var(--border);background:transparent;color:var(--muted);cursor:pointer;font-size:12px;font-weight:500;transition:all .15s}.tab:hover:not(.active){border-color:var(--primary);color:var(--primary)}.tab.active{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}.file-dropzone{border:2px dashed var(--border-strong);border-radius:var(--radius);background:var(--bg);cursor:pointer;transition:border-color .18s,background .18s;margin-bottom:10px;outline:none;-webkit-user-select:none;user-select:none}.file-dropzone:focus-visible{box-shadow:0 0 0 3px #0095d040}.file-dropzone--drag{border-color:var(--primary);background:#0095d00d}.file-dropzone--filled{border-style:solid;border-color:#16a34a73;background:#16a34a0a;cursor:default}.file-dropzone__empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:28px 20px;text-align:center}.file-dropzone__icon{color:var(--primary);display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#0095d01a;margin-bottom:4px}.file-dropzone__icon--ok{background:#16a34a1a;font-size:22px;color:var(--green)}.file-dropzone__label{font-size:13px;color:var(--muted);line-height:1.4}.file-dropzone__browse{padding:5px 14px;border-radius:6px;border:1px solid var(--primary);background:transparent;color:var(--primary);font-size:12px;font-weight:600;cursor:pointer;transition:background .15s,color .15s}.file-dropzone__browse:hover{background:var(--primary);color:#fff}.file-dropzone__hint{font-size:11px;color:var(--muted);opacity:.65;margin-top:2px}.file-dropzone__filled{display:flex;align-items:center;gap:12px;padding:14px 16px}.file-dropzone__meta{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.file-dropzone__name{font-size:13px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-dropzone__size{font-size:11px;color:var(--muted);opacity:.75}.file-dropzone__clear{flex-shrink:0;width:24px;height:24px;border-radius:50%;border:1px solid var(--border);background:var(--surface-2);color:var(--muted);font-size:11px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s,border-color .15s}.file-dropzone__clear:hover{background:var(--red);border-color:var(--red);color:#fff}.excel-tip{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;margin-bottom:10px;background:#0095d00f;border:1px solid rgba(0,149,208,.2);border-radius:8px;font-size:12px;line-height:1.5;color:var(--text)}.excel-tip svg{color:var(--primary)}.excel-tip strong{font-weight:600}.input{width:100%;padding:8px 10px;background:var(--bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:13px;resize:vertical;outline:none;margin-bottom:10px;font-family:inherit}.input:focus{border-color:var(--primary)}.btn-primary{padding:9px 20px;border-radius:7px;border:none;cursor:pointer;background:var(--accent);color:#fff;font-size:13px;font-weight:600;letter-spacing:.2px;transition:background .15s,transform .1s}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-primary:active:not(:disabled){transform:scale(.98)}.btn-primary:disabled{opacity:.45;cursor:default}.btn-secondary{padding:8px 16px;border-radius:7px;border:1px solid var(--border-strong);background:transparent;color:var(--muted);cursor:pointer;font-size:13px;transition:all .15s}.btn-secondary:hover{border-color:var(--text);color:var(--text)}.btn-danger{padding:8px 18px;border-radius:6px;border:none;cursor:pointer;background:var(--red);color:#fff;font-size:13px;font-weight:500}.btn-danger:disabled{opacity:.5;cursor:default}.btn-warning{padding:5px 12px;border-radius:7px;border:1px solid var(--accent);background:transparent;color:var(--accent);cursor:pointer;font-size:12px;font-weight:500;transition:all .15s}.btn-warning:hover{background:var(--accent);color:#fff}.stats-row{display:flex;gap:8px;flex-wrap:wrap}.stat{padding:6px 12px;border-radius:6px;background:var(--surface);border:1px solid var(--border);font-size:12px;color:var(--muted)}.stat span{font-weight:600;color:var(--text);margin-right:4px}.stat.tier1 span{color:var(--green)}.stat.tier2 span{color:var(--accent)}.stat.ok span{color:var(--green)}.stat.err span{color:var(--red)}.stat.pending span{color:var(--accent)}.pending-banner{background:#e9600e14;border:1px solid rgba(233,96,14,.4);border-radius:var(--radius);padding:12px 16px}.pending-banner strong{color:var(--accent);display:block;margin-bottom:6px;font-size:13px}.loading-state{display:flex;align-items:center;gap:10px;color:var(--muted);padding:16px 0}.spinner{width:16px;height:16px;border-radius:50%;border:2px solid var(--border);border-top-color:var(--primary);animation:spin .7s linear infinite}.results-grid{display:flex;flex-direction:column;gap:12px}.result-card{display:flex;flex-direction:column;gap:8px}.result-header{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.result-index{font-weight:700;font-size:13px;color:var(--muted);min-width:26px}.badge{padding:2px 9px;border-radius:99px;font-size:11px;font-weight:700;color:#fff;white-space:nowrap}.category{font-size:12px;color:var(--muted)}.question-text{font-size:13px;color:var(--text)}.rationale{font-size:12px;color:var(--muted);font-style:italic}.answer-box{background:var(--bg);border:1px solid var(--border);border-radius:6px;padding:10px}.answer-box>strong{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}.answer-markdown{font-size:13px;color:var(--text);line-height:1.6}.answer-markdown p{margin:0 0 8px}.answer-markdown p:last-child{margin-bottom:0}.answer-markdown ul,.answer-markdown ol{margin:4px 0 8px 18px;padding:0}.answer-markdown li{margin-bottom:3px}.answer-markdown a{color:#0095d0;text-decoration:none;word-break:break-all}.answer-markdown a:hover{text-decoration:underline}.answer-markdown strong{font-weight:600}.answer-markdown em{font-style:italic}.answer-markdown hr{border:none;border-top:1px solid var(--border);margin:10px 0}.answer-markdown h1,.answer-markdown h2,.answer-markdown h3{font-size:13px;font-weight:700;margin:10px 0 4px;color:var(--text)}.answer-markdown code{background:var(--surface);border-radius:3px;padding:1px 4px;font-size:12px;font-family:monospace}.answer-markdown pre{background:var(--surface);border-radius:5px;padding:8px;overflow-x:auto;font-size:12px;white-space:pre-wrap;word-break:break-word}.error-box{background:#dc262612;border:1px solid rgba(220,38,38,.3);border-radius:7px;padding:10px;font-size:12px;color:#b91c1c}.global-error{margin-top:0}.committee-info{font-size:12px;color:var(--accent);background:#e9600e14;border:1px solid rgba(233,96,14,.3);border-radius:7px;padding:7px 10px}.meta{font-size:11px;color:var(--muted)}.meta code{background:var(--bg);padding:1px 4px;border-radius:3px}.source-links{font-size:12px;background:#0095d00f;border:1px solid rgba(0,149,208,.25);border-radius:7px;padding:8px 10px}.source-links strong{display:block;color:var(--muted);margin-bottom:5px;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.source-links-list{margin:0;padding:0;display:flex;flex-direction:column;gap:4px;list-style:none}.source-item{border-radius:5px;overflow:hidden}.source-item-header{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}.source-icon{flex-shrink:0;font-size:13px}.source-title{font-weight:600;color:var(--text);word-break:break-word}.source-item--web .source-title{color:#0095d0;text-decoration:none}.source-item--web .source-title:hover{text-decoration:underline}.source-path{color:var(--muted);font-size:10px;word-break:break-all;flex:1}.source-toggle{background:none;border:1px solid rgba(0,149,208,.3);border-radius:3px;cursor:pointer;color:#0095d0;font-size:9px;padding:1px 5px;line-height:1.4;flex-shrink:0}.source-toggle:hover{background:#0095d01a}.source-snippet{margin:4px 0 2px 18px;padding:6px 8px;border-left:3px solid rgba(0,149,208,.35);background:#0000000a;border-radius:0 4px 4px 0;color:var(--muted);font-size:11px;line-height:1.5;white-space:pre-wrap;word-break:break-word;font-style:italic}.source-presigned-badge{display:inline-flex;align-items:center;gap:2px;font-size:9px;font-weight:600;color:#b45309;background:#b453091a;border:1px solid rgba(180,83,9,.25);border-radius:3px;padding:1px 5px;flex-shrink:0;white-space:nowrap;cursor:default;font-variant-numeric:tabular-nums;letter-spacing:.01em}.source-presigned-badge--urgent{color:#dc2626;background:#dc26261a;border-color:#dc26264d;animation:presigned-pulse 1s ease-in-out infinite}@keyframes presigned-pulse{0%,to{opacity:1}50%{opacity:.6}}.source-expired-badge{display:inline-flex;align-items:center;gap:2px;font-size:9px;font-weight:600;color:#6b7280;background:#6b72801a;border:1px solid rgba(107,114,128,.25);border-radius:3px;padding:1px 5px;flex-shrink:0;white-space:nowrap;cursor:default}.source-title--no-link{color:var(--muted);font-style:italic}.source-no-link{font-size:9px;color:#9ca3af;border:1px solid rgba(156,163,175,.3);border-radius:3px;padding:1px 4px;flex-shrink:0;white-space:nowrap;cursor:default}.source-item--s3 a.source-title{color:#0095d0;text-decoration:none}.source-item--s3 a.source-title:hover{text-decoration:underline}.batch-summary{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);overflow:hidden;box-shadow:var(--shadow-sm)}.batch-summary__header{padding:12px 16px;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:8px}.batch-summary__title-row{display:flex;align-items:center;gap:10px}.batch-summary__title{font-size:13px;font-weight:700;color:var(--text);white-space:nowrap}.batch-summary__progress{font-size:11px;color:var(--muted);white-space:nowrap}.batch-summary__pills{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.batch-pill{padding:2px 8px;border-radius:99px;font-size:11px;font-weight:600}.batch-pill--green{background:#16a34a1a;color:var(--green)}.batch-pill--amber{background:#e9600e1a;color:var(--amber)}.batch-pill--red{background:#dc26261a;color:var(--red)}.batch-export-btn{margin-left:auto;padding:5px 14px;border-radius:6px;border:none;background:var(--green);color:#fff;font-size:12px;font-weight:700;cursor:pointer;transition:opacity .15s,transform .1s;letter-spacing:.2px}.batch-export-btn:hover{opacity:.88}.batch-export-btn:active{transform:scale(.97)}.batch-summary__export-hint{padding:8px 16px;font-size:11px;color:var(--muted);border-top:1px solid var(--border);background:#16a34a08}.batch-summary__table-wrap{overflow-x:auto;max-height:420px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(0,149,208,.3) transparent}.batch-summary__table-wrap::-webkit-scrollbar{width:8px;height:8px}.batch-summary__table-wrap::-webkit-scrollbar-track{background:var(--bg)}.batch-summary__table-wrap::-webkit-scrollbar-thumb{background:#0095d04d;border-radius:4px}.batch-summary__table-wrap::-webkit-scrollbar-thumb:hover{background:#0095d080}.batch-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}.batch-table thead th{position:sticky;top:0;z-index:1;background:var(--surface-2);color:var(--muted);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;padding:7px 12px;text-align:left;border-bottom:1px solid var(--border);white-space:nowrap}.batch-table__col-num{width:52px}.batch-table__col-question{width:28%;max-width:0;overflow:hidden}.batch-table__col-answer{max-width:0;overflow:hidden}.batch-table__col-status{width:150px;white-space:nowrap}.batch-table__row td{padding:9px 12px;vertical-align:top;border-bottom:1px solid var(--border);line-height:1.45;overflow:hidden}.batch-table__row:last-child td{border-bottom:none}.batch-table__row--processing td{background:#0095d005}.batch-table__row--queued td{opacity:.55}.batch-table__row--empty td{color:var(--muted);font-style:italic}.batch-row-num{display:block;font-weight:600;color:var(--muted);font-size:11px}.batch-tier-badge{display:inline-block;margin-top:3px;padding:1px 5px;border-radius:4px;font-size:10px;font-weight:700;color:#fff}.batch-question-text,.batch-answer-text{display:block;width:100%;-webkit-line-clamp:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--text)}.batch-error-text{display:block;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--red);font-size:11px}.batch-retry-btn{margin-top:4px;padding:2px 8px;font-size:10px;font-weight:600;color:var(--accent);background:transparent;border:1px solid var(--accent);border-radius:4px;cursor:pointer;transition:background .15s,color .15s;line-height:1.4}.batch-retry-btn:hover{background:var(--accent);color:#fff}.batch-table__muted{color:var(--muted);opacity:.5}.batch-status-badge{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:99px;border:1px solid;font-size:11px;font-weight:600}.batch-processing-dots{display:inline-flex;gap:3px;align-items:center;padding:2px 0}.batch-processing-dots span{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--primary);animation:batchDot .9s ease-in-out infinite}.batch-processing-dots span:nth-child(2){animation-delay:.15s}.batch-processing-dots span:nth-child(3){animation-delay:.3s}@keyframes batchDot{0%,80%,to{opacity:.2;transform:scale(.7)}40%{opacity:1;transform:scale(1)}}.batch-spin{display:inline-block;width:8px;height:8px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.content-panel{display:grid;grid-template-columns:280px 1fr;gap:16px;align-items:start}@media(max-width:700px){.content-panel{grid-template-columns:1fr}}.feed-column{position:sticky;top:68px}.results-column{display:flex;flex-direction:column;gap:12px}.live-feed{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;max-height:calc(100vh - 120px);display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:rgba(0,149,208,.3) transparent}.live-feed::-webkit-scrollbar{width:6px}.live-feed::-webkit-scrollbar-track{background:transparent}.live-feed::-webkit-scrollbar-thumb{background:#0095d04d;border-radius:3px}.live-feed::-webkit-scrollbar-thumb:hover{background:#0095d080}.live-feed-header{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--border);font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}.pulse-dot{width:7px;height:7px;border-radius:50%;background:var(--primary);animation:pulse 1.4s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.7)}}.feed-list{overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:1px;padding:6px 0;scrollbar-width:thin;scrollbar-color:rgba(0,149,208,.3) transparent}.feed-list::-webkit-scrollbar{width:6px}.feed-list::-webkit-scrollbar-track{background:transparent}.feed-list::-webkit-scrollbar-thumb{background:#0095d04d;border-radius:3px}.feed-list::-webkit-scrollbar-thumb:hover{background:#0095d080}.feed-item{padding:5px 12px;font-size:12px;color:var(--muted);display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;line-height:1.5}.feed-idx{font-size:11px;font-weight:700;color:var(--primary);min-width:24px;flex-shrink:0}.feed-question{color:var(--text);font-style:italic}.feed-id{font-size:10px;color:var(--muted);margin-left:auto;font-family:monospace}.feed-cat{background:#0095d026;color:var(--primary);padding:1px 6px;border-radius:99px;font-size:10px;font-weight:700}.feed-code{font-family:monospace;font-size:10px;color:var(--muted)}.feed-node-name{font-size:10px;color:var(--border);margin-left:auto;font-family:monospace}.feed-spinner{animation:spin .7s linear infinite;display:inline-block}.feed-check{display:inline-block;color:var(--green);font-weight:700}.feed-start{color:var(--primary);font-weight:600}.feed-q-start{background:#0095d00f;border-left:2px solid var(--primary)}.feed-risk{color:var(--text)}.feed-committee{color:var(--accent)}.feed-done{color:var(--green);font-weight:500}.feed-error{color:var(--red)}.feed-batch-done{color:var(--green);font-weight:600;border-top:1px solid var(--border);padding-top:8px;margin-top:4px}.result-processing{border-color:var(--primary);box-shadow:0 0 0 1px #0095d040}.active-node{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--primary);background:#0095d014;border-radius:7px;padding:6px 10px}.node-spinner{width:10px;height:10px;border-radius:50%;border:2px solid rgba(0,149,208,.25);border-top-color:var(--primary);animation:spin .7s linear infinite;flex-shrink:0}.header-inner-wide{width:100%;max-width:100%;height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 4px}.header-right{display:flex;align-items:center;gap:12px}.header-divider{width:1px;height:20px;background:var(--border)}.side-badge{font-size:11px;font-weight:600;padding:3px 9px;border-radius:99px;border:1px solid;letter-spacing:.2px}.side-badge.user-badge{color:var(--primary);border-color:var(--primary)}.side-badge.committee-badge{color:var(--accent);border-color:var(--accent)}.split-layout{display:grid;grid-template-columns:1fr 4px 400px;min-height:calc(100vh - 56px);align-items:stretch}@media(max-width:900px){.split-layout{grid-template-columns:1fr}.resize-handle{display:none}}.resize-handle{width:4px;cursor:col-resize;background:var(--border);position:relative;transition:background .15s ease;display:flex;align-items:center;justify-content:center}.resize-handle:hover,.resize-handle--active{background:var(--primary)}.resize-handle:before{content:"";position:absolute;top:0;left:-4px;right:-4px;bottom:0}.resize-handle:after{content:"⋮";position:absolute;color:var(--muted);font-size:16px;pointer-events:none;opacity:0;transition:opacity .15s ease}.resize-handle:hover:after,.resize-handle--active:after{opacity:1}.user-side{padding:22px 24px 72px;display:flex;flex-direction:column;gap:16px;min-height:calc(100vh - 56px)}.side-header{display:flex;flex-direction:column;gap:2px}.side-title{font-size:15px;font-weight:700;color:var(--text)}.side-subtitle{font-size:12px;color:var(--muted)}.committee-side{position:sticky;top:56px;height:calc(100vh - 56px);overflow-y:auto;padding:0;background:var(--bg);scrollbar-width:thin;scrollbar-color:rgba(0,149,208,.3) transparent}.committee-side::-webkit-scrollbar{width:6px}.committee-side::-webkit-scrollbar-track{background:transparent}.committee-side::-webkit-scrollbar-thumb{background:#0095d04d;border-radius:3px}.committee-side::-webkit-scrollbar-thumb:hover{background:#0095d080}.pending-hint{font-size:12px;color:var(--muted);margin-top:4px}.pending-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.pending-chip{font-size:11px;font-family:monospace;background:#e9600e1a;border:1px solid rgba(233,96,14,.4);color:var(--accent);padding:2px 8px;border-radius:99px}.committee-panel{display:flex;flex-direction:column;height:100%;background:var(--surface);border-left:1px solid var(--border)}.committee-header{padding:14px 16px 12px;border-bottom:1px solid var(--border);background:var(--surface-2);position:sticky;top:0;z-index:5;display:flex;flex-direction:column;gap:6px}.committee-title-row{display:flex;align-items:center;gap:8px}.committee-icon{font-size:16px}.committee-title{font-size:14px;font-weight:700;color:var(--text);flex:1}.committee-admin-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;font-size:11px;font-weight:600;color:var(--accent);background:#e67e221a;border:1px solid rgba(230,126,34,.3);border-radius:4px}.committee-polling-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);animation:pulse 1.2s ease-in-out infinite}.committee-meta-row{display:flex;align-items:center;gap:8px}.committee-count{font-size:11px;font-weight:600;color:var(--muted);background:var(--bg);border:1px solid var(--border);padding:2px 8px;border-radius:99px}.committee-count.has-pending{color:var(--accent);border-color:var(--accent)}.committee-last-poll{font-size:11px;color:var(--muted);flex:1}.committee-refresh-btn{background:none;border:none;color:var(--muted);cursor:pointer;font-size:16px;line-height:1;padding:2px 4px;border-radius:4px}.committee-refresh-btn:hover{color:var(--text);background:var(--border)}.committee-error{background:#dc262612;border-bottom:1px solid rgba(220,38,38,.3);padding:8px 16px;font-size:12px;color:#b91c1c}.committee-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:48px 24px;text-align:center}.committee-empty-icon{font-size:32px;color:var(--green);display:block;margin-bottom:4px}.committee-empty p{font-size:13px;color:var(--text)}.committee-empty-sub{font-size:12px;color:var(--muted)}.committee-list{display:flex;flex-direction:column;overflow-y:auto;gap:0;scrollbar-width:thin;scrollbar-color:rgba(0,149,208,.3) transparent}.committee-list::-webkit-scrollbar{width:6px}.committee-list::-webkit-scrollbar-track{background:transparent}.committee-list::-webkit-scrollbar-thumb{background:#0095d04d;border-radius:3px}.committee-list::-webkit-scrollbar-thumb:hover{background:#0095d080}.committee-card{border-bottom:1px solid var(--border);padding:14px 16px;display:flex;flex-direction:column;gap:8px;transition:background .15s}.committee-card:hover{background:#001a3108}.committee-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}.committee-card-title-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex:1}.committee-card-tier{font-size:11px;font-weight:700;letter-spacing:.5px}.committee-card-category{font-size:10px;background:#0095d026;color:var(--primary);padding:1px 6px;border-radius:99px;font-weight:600}.committee-card-user{font-size:10px;background:#e67e221a;color:var(--accent);padding:1px 6px;border-radius:99px;font-weight:600;border:1px solid rgba(230,126,34,.2)}.committee-card-thread{font-size:10px;font-family:monospace;color:var(--muted)}.committee-collapse-btn{background:none;border:none;color:var(--muted);cursor:pointer;font-size:11px;padding:2px 4px;flex-shrink:0}.committee-collapse-btn:hover{color:var(--text)}.committee-card-question{font-size:13px;color:var(--text);font-weight:500}.committee-card-rationale{font-size:12px;color:var(--muted);font-style:italic;padding-left:8px;border-left:2px solid var(--border)}.committee-draft{background:var(--bg);border:1px solid var(--border);border-radius:6px;padding:10px;display:flex;flex-direction:column;gap:8px}.committee-draft-label{font-size:11px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.4px}.committee-draft-text{font-size:12px;font-family:inherit;white-space:pre-wrap;word-break:break-word;color:var(--text);max-height:200px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(0,149,208,.3) transparent}.committee-draft-text::-webkit-scrollbar{width:6px}.committee-draft-text::-webkit-scrollbar-track{background:transparent}.committee-draft-text::-webkit-scrollbar-thumb{background:#0095d04d;border-radius:3px}.committee-draft-text::-webkit-scrollbar-thumb:hover{background:#0095d080}.committee-ai-refine{display:flex;gap:6px;align-items:center}.committee-ai-input{flex:1;padding:6px 10px;background:var(--surface);border:1px solid var(--border);border-radius:5px;color:var(--text);font-size:12px;font-family:inherit;outline:none;transition:border-color .15s}.committee-ai-input:focus{border-color:var(--primary)}.committee-ai-input:disabled{opacity:.5;cursor:not-allowed}.committee-ai-input::placeholder{color:var(--muted);opacity:.7}.committee-ai-btn{padding:6px 10px;background:transparent;border:1px solid var(--border);border-radius:5px;cursor:pointer;font-size:14px;transition:all .2s;flex-shrink:0}.committee-ai-btn:hover:not(:disabled){background:#0095d014;border-color:var(--primary)}.committee-ai-btn:disabled{opacity:.4;cursor:not-allowed}.committee-undo-btn{padding:6px 10px;background:transparent;border:1px solid var(--border);border-radius:5px;cursor:pointer;font-size:14px;transition:all .2s;flex-shrink:0;color:var(--muted)}.committee-undo-btn:hover:not(:disabled){background:#e9600e14;border-color:var(--accent);color:var(--accent)}.committee-undo-btn:disabled{opacity:.4;cursor:not-allowed}.committee-draft-textarea{width:100%;padding:8px 10px;background:var(--surface);border:1px solid var(--border);border-radius:5px;color:var(--text);font-size:12px;font-family:inherit;resize:vertical;outline:none;line-height:1.6;min-height:120px;transition:border-color .15s;scrollbar-width:thin;scrollbar-color:rgba(0,149,208,.3) transparent}.committee-draft-textarea::-webkit-scrollbar{width:6px}.committee-draft-textarea::-webkit-scrollbar-track{background:transparent}.committee-draft-textarea::-webkit-scrollbar-thumb{background:#0095d04d;border-radius:3px}.committee-draft-textarea::-webkit-scrollbar-thumb:hover{background:#0095d080}.committee-draft-textarea:focus{border-color:var(--primary)}.committee-draft-textarea:disabled{opacity:.5;cursor:not-allowed}.committee-form{display:flex;flex-direction:column;gap:8px}.committee-decision-toggle{display:flex;gap:0;border-radius:6px;overflow:hidden;border:1px solid var(--border)}.committee-toggle-btn{flex:1;padding:7px 0;border:none;cursor:pointer;font-size:12px;font-weight:600;background:transparent;color:var(--muted);transition:background .15s,color .15s}.committee-toggle-btn:not(:last-child){border-right:1px solid var(--border)}.committee-toggle-btn.approve.active{background:#16a34a1f;color:var(--green)}.committee-toggle-btn.deny.active{background:#dc26261a;color:var(--red)}.committee-toggle-btn:hover:not(:disabled):not(.active){background:#001a310d;color:var(--text)}.committee-toggle-btn:disabled{opacity:.5;cursor:default}.committee-textarea{width:100%;padding:7px 10px;background:var(--bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:12px;resize:vertical;outline:none;font-family:inherit}.committee-textarea:focus{border-color:var(--primary)}.committee-textarea:disabled{opacity:.5}.committee-submit{width:100%;padding:12px 20px;border-radius:8px;border:2px solid var(--primary);font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;gap:8px}.committee-submit.approve{background:var(--primary);color:#fff}.committee-submit.approve:hover:not(:disabled){background:transparent;color:var(--primary)}.committee-submit:disabled{opacity:.6;cursor:not-allowed}.committee-card-time{font-size:10px;color:var(--muted);text-align:right}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:100;padding:24px}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:100%;max-width:600px;max-height:90vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(0,149,208,.3) transparent}.modal::-webkit-scrollbar{width:6px}.modal::-webkit-scrollbar-track{background:transparent}.modal::-webkit-scrollbar-thumb{background:#0095d04d;border-radius:3px}.modal::-webkit-scrollbar-thumb:hover{background:#0095d080}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border)}.modal-header h3{font-size:14px;font-weight:600}.close-btn{background:none;border:none;color:var(--muted);cursor:pointer;font-size:16px;line-height:1}.modal-body{padding:16px;display:flex;flex-direction:column;gap:14px}.interrupt-field{display:flex;flex-direction:column;gap:4px}.interrupt-field strong{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}.draft{background:var(--bg);border:1px solid var(--border);border-radius:6px;padding:10px;white-space:pre-wrap;word-break:break-word;font-size:12px;font-family:inherit;max-height:300px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(0,149,208,.3) transparent}.draft::-webkit-scrollbar{width:6px}.draft::-webkit-scrollbar-track{background:transparent}.draft::-webkit-scrollbar-thumb{background:#0095d04d;border-radius:3px}.draft::-webkit-scrollbar-thumb:hover{background:#0095d080}.form-group{display:flex;flex-direction:column;gap:4px}.form-group label{font-size:12px;color:var(--muted)}.optional{font-style:italic;opacity:.7}.radio-group{display:flex;gap:16px;padding:4px 0}.radio-group label{display:flex;align-items:center;gap:6px;cursor:pointer;font-size:13px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:4px}.history-section{display:flex;flex-direction:column;gap:0;margin-top:8px;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.history-header{padding:12px 14px 10px;background:var(--surface-2);border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:10px;position:sticky;top:0;z-index:3}.history-title-row{display:flex;align-items:center;gap:8px}.history-title{font-size:13px;font-weight:700;color:var(--text);flex:1}.history-total{font-size:11px;color:var(--muted);background:var(--bg);border:1px solid var(--border);padding:2px 8px;border-radius:99px}.history-refresh-btn{background:none;border:none;color:var(--muted);cursor:pointer;font-size:15px;padding:2px 5px;border-radius:4px;line-height:1}.history-refresh-btn:hover:not(:disabled){color:var(--text);background:var(--border)}.history-refresh-btn:disabled{opacity:.4;cursor:default}.history-reset-btn{background:none;border:1px solid var(--red);color:var(--red);cursor:pointer;font-size:11px;font-weight:600;padding:3px 10px;border-radius:6px;line-height:1.4;transition:background .15s,color .15s}.history-reset-btn:hover:not(:disabled){background:var(--red);color:#fff}.history-reset-btn:disabled{opacity:.35;cursor:default}.history-filters{display:flex;gap:4px;flex-wrap:wrap}.history-filter-btn{display:flex;align-items:center;gap:5px;padding:4px 10px;border-radius:6px;border:1px solid var(--border);background:transparent;color:var(--muted);cursor:pointer;font-size:11px;font-weight:500;transition:all .15s}.history-filter-btn:hover{border-color:var(--text);color:var(--text)}.history-filter-btn.active{background:var(--primary);border-color:var(--primary);color:#fff}.history-filter-count{background:#001a3126;padding:0 5px;border-radius:99px;font-size:10px;font-weight:700;color:var(--muted)}.history-filter-btn.active .history-filter-count{background:#ffffff4d;color:#fff}.history-empty{padding:24px 16px;text-align:center;font-size:12px;color:var(--muted);background:var(--bg)}.history-list{display:flex;flex-direction:column;background:var(--bg)}.history-list .card{border-radius:0;border-left:none;border-right:none;border-top:none}.history-list .card:last-child{border-bottom:none}.history-time{font-size:10px;color:var(--muted);margin-left:auto;font-variant-numeric:tabular-nums}.history-card[data-status=pending_committee]{border-left:3px solid var(--accent)!important}.history-card[data-status=answered]{border-left:3px solid var(--green)!important}.user-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;background:#001a31b3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center}.user-modal{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:40px 36px;width:340px;text-align:center;box-shadow:0 20px 60px #00000059}.user-modal__logo-row{margin-bottom:12px}.user-modal__logo{height:36px}.user-modal__title{font-size:20px;font-weight:700;color:var(--text);margin:0 0 6px}.user-modal__subtitle{font-size:13px;color:var(--muted);margin:0 0 28px}.user-modal__form{display:flex;flex-direction:column;gap:10px}.user-modal__input{width:100%;box-sizing:border-box;padding:10px 14px;border:1.5px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);font-size:15px;font-family:inherit;outline:none;transition:border-color .15s}.user-modal__input:focus{border-color:var(--primary)}.user-modal__input--error{border-color:var(--red)}.user-modal__input:disabled{opacity:.5}.user-modal__error{margin:0;font-size:12px;color:var(--red);text-align:left}.user-modal__submit{padding:10px;background:var(--primary);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;font-family:inherit;cursor:pointer;transition:opacity .15s}.user-modal__submit:disabled{opacity:.45;cursor:not-allowed}.user-modal__submit:not(:disabled):hover{opacity:.88}.user-badge{display:flex;align-items:center;gap:8px;background:#0000002e;border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:4px 6px 4px 10px}.user-badge__name{font-size:13px;font-weight:600;color:#fff;letter-spacing:.01em}.user-badge__name--admin{color:#7dd3fc}.user-badge__switch{font-size:11px;font-weight:500;background:#ffffff1f;color:#ffffffbf;border:none;border-radius:12px;padding:2px 8px;cursor:pointer;transition:background .15s,color .15s}.user-badge__switch:hover{background:#ffffff40;color:#fff}.user-pill{font-size:11px;font-weight:600;background:#0077cc1f;color:var(--primary);border:1px solid rgba(0,119,204,.25);border-radius:99px;padding:2px 8px;text-transform:capitalize;white-space:nowrap}.user-pill--unknown{background:#0000000d;color:var(--muted);border-color:var(--border);font-weight:400;font-style:italic}.history-admin-badge{font-size:11px;font-weight:600;background:#0077cc1a;color:var(--primary);border:1px solid rgba(0,119,204,.2);border-radius:99px;padding:2px 8px}.sources-subtitle{font-size:10px;color:var(--muted);font-weight:500;margin-left:8px;opacity:.75}.source-item--grouped{margin-bottom:8px;padding:8px 0;border-bottom:1px solid rgba(0,149,208,.15)}.source-item--grouped:last-child{border-bottom:none}.source-score-badge{display:inline-flex;align-items:center;gap:2px;font-size:10px;font-weight:600;color:#d97706;background:#d977061a;border:1px solid rgba(217,119,6,.25);border-radius:3px;padding:1px 6px;flex-shrink:0;white-space:nowrap;cursor:default}.source-chunks-toggle{background:#0095d014;border:1px solid rgba(0,149,208,.3);border-radius:4px;cursor:pointer;color:#0095d0;font-size:10px;font-weight:600;padding:2px 7px;line-height:1.4;flex-shrink:0;margin-left:auto;transition:background .15s,border-color .15s}.source-chunks-toggle:hover{background:#0095d026;border-color:#0095d080}.source-chunks-list{margin-top:8px;margin-left:22px;padding:6px 0;display:flex;flex-direction:column;gap:6px}.chunk-item{background:#00000005;border:1px solid rgba(0,149,208,.15);border-radius:5px;padding:6px 8px;transition:background .15s,border-color .15s}.chunk-item--used{background:#16a34a0a;border-color:#16a34a40}.chunk-item--unused{opacity:.65}.chunk-item:hover{background:#0095d00f}.chunk-item--used:hover{background:#16a34a14}.chunk-header{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.chunk-used-icon{font-size:11px;flex-shrink:0}.chunk-index{font-size:10px;font-weight:600;color:var(--primary);white-space:nowrap}.chunk-score{font-size:10px;color:var(--muted);font-weight:500;white-space:nowrap}.chunk-unused-badge{font-size:9px;font-weight:600;color:var(--muted);background:#0000000d;border:1px solid rgba(0,0,0,.1);border-radius:3px;padding:1px 5px;white-space:nowrap}.chunk-toggle{background:#0095d014;border:1px solid rgba(0,149,208,.25);border-radius:3px;cursor:pointer;color:#0095d0;font-size:9px;padding:1px 5px;line-height:1.4;flex-shrink:0;margin-left:auto;transition:background .15s}.chunk-toggle:hover{background:#0095d026}.chunk-content{margin:6px 0 0 18px;padding:6px 8px;border-left:3px solid rgba(0,149,208,.35);background:#0000000a;border-radius:0 4px 4px 0;color:var(--text);font-size:11px;line-height:1.5;white-space:pre-wrap;word-break:break-word;font-style:normal}.chunk-item--used .chunk-content{border-left-color:#16a34a66;background:#16a34a0d}.answer-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.answer-edit-icon{padding:.25rem;background:transparent;border:none;cursor:pointer;color:var(--muted);transition:color .2s;display:flex;align-items:center;opacity:.6}.answer-edit-icon:hover{color:var(--primary);opacity:1}.answer-editor-inline{margin-top:.5rem}.answer-edit-ai{display:flex;gap:.5rem;align-items:center}.answer-edit-textarea{width:100%;padding:.75rem;border:1px solid var(--border);border-radius:4px;font-family:inherit;font-size:.95rem;resize:vertical;background:var(--surface);color:var(--text);line-height:1.6;margin-top:.5rem}.answer-edit-textarea:focus{outline:2px solid var(--primary);outline-offset:-1px;border-color:transparent}.answer-edit-ai-input{flex:1;padding:.5rem .75rem;border:1px solid var(--border);border-radius:4px;font-family:inherit;font-size:.875rem;background:var(--surface-2);color:var(--text)}.answer-edit-ai-input:focus{outline:2px solid var(--primary);outline-offset:-1px;border-color:transparent;background:var(--surface)}.answer-edit-ai-input::placeholder{color:var(--muted);opacity:.7}.answer-edit-ai-btn{padding:.5rem .75rem;background:transparent;border:1px solid var(--border);border-radius:4px;cursor:pointer;font-size:1rem;transition:all .2s}.answer-edit-ai-btn:hover:not(:disabled){background:var(--surface-2);border-color:var(--primary)}.answer-edit-ai-btn:disabled{opacity:.4;cursor:not-allowed}.answer-edit-undo-btn{padding:.5rem .75rem;background:transparent;border:1px solid var(--border);border-radius:4px;cursor:pointer;font-size:1rem;transition:all .2s;flex-shrink:0;color:var(--muted)}.answer-edit-undo-btn:hover:not(:disabled){background:#e9600e14;border-color:var(--accent);color:var(--accent)}.answer-edit-undo-btn:disabled{opacity:.4;cursor:not-allowed}.answer-edit-error{margin-top:.5rem;padding:.5rem .75rem;background:#dc26261a;color:var(--red);border-radius:4px;font-size:.875rem;border-left:3px solid var(--red)}.answer-edit-actions{display:flex;gap:.5rem;margin-top:.75rem;justify-content:flex-end}.answer-edit-actions button{padding:.5rem 1rem;border:none;border-radius:4px;cursor:pointer;font-weight:500;font-size:.875rem;transition:all .2s}.answer-edit-actions button:first-child{background:var(--green);color:#fff}.answer-edit-actions button:first-child:hover:not(:disabled){background:#15803d}.answer-edit-actions button:not(:first-child){background:var(--surface);color:var(--text);border:1px solid var(--border)}.answer-edit-actions button:not(:first-child):hover:not(:disabled){background:var(--surface-2)}.answer-edit-actions button:disabled{opacity:.5;cursor:not-allowed}
