:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#000;color:#f5f5f5;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#000}button,textarea,select{font:inherit}button{color:inherit}.app-shell{min-height:100vh;display:grid;grid-template-columns:260px 1fr;background:#000;position:relative}.drop-overlay{position:fixed;inset:14px;z-index:40;display:grid;place-items:center;border:1px dashed #8a8a8a;border-radius:10px;background:#141414c7;color:#f3f3f3;font-size:16px;pointer-events:none}.sidebar{height:100vh;padding:14px 6px;border-right:1px solid #252525;background:#050505;position:sticky;top:0}.brand{height:32px;padding:0 10px;display:flex;align-items:center;font-size:16px;font-weight:700}.side-action{width:100%;height:36px;margin-top:8px;padding:0 12px;border:0;border-radius:8px;display:flex;align-items:center;gap:10px;background:transparent;cursor:pointer;text-align:left}.side-action.active{background:#202020}.side-action:hover,.recent-item:hover{background:#181818}.icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;font-size:20px;line-height:1}.side-section{margin:28px 10px 10px;color:#e8e8e8;font-size:13px;font-weight:650}.recent-list{display:grid;gap:2px}.recent-row{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;border-radius:6px}.recent-row:hover,.recent-row.current{background:#202020}.recent-item,.recent-empty{min-height:30px;padding:6px 10px;border-radius:6px;color:#f4f4f4;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-item{width:100%;border:0;background:transparent;cursor:pointer;text-align:left}.recent-delete{width:26px;height:26px;border:0;border-radius:6px;background:transparent;color:#8f8f8f;cursor:pointer;opacity:0}.recent-row:hover .recent-delete,.recent-row.current .recent-delete,.recent-delete:focus-visible{opacity:1}.recent-delete:hover{background:#343434;color:#f0f0f0}.recent-delete:disabled{cursor:default;opacity:.35}.recent-empty{color:#7b7b7b}.workspace{min-width:0;min-height:100vh;display:grid;grid-template-rows:1fr auto;position:relative}.workspace-empty{display:block}.chat{min-height:0;overflow-y:auto;padding:28px 24px 150px}.chat-empty{display:flex;align-items:center;justify-content:center}.workspace-empty .chat{height:100vh;padding:0 24px;overflow:hidden}.empty-state{width:min(760px,calc(100vw - 320px));transform:translateY(-122px);text-align:center}.empty-state h1{margin:0;font-size:28px;font-weight:650;letter-spacing:0}.message-stack{width:min(820px,100%);margin:0 auto;display:grid;gap:22px}.message{font-size:15px;line-height:1.65}.user-message{justify-self:end;max-width:min(640px,86%);padding:10px 14px;border-radius:18px;background:#2a2a2a}.user-message p{margin:6px 0 0}.user-message img{display:block;max-width:min(360px,100%);max-height:260px;border-radius:8px;object-fit:contain}.assistant-message{width:min(760px,100%);color:#f1f1f1}.assistant-message.error{padding:12px 14px;border:1px solid #5f3030;border-radius:8px;background:#1f0f0f;color:#ffb6b6}.plain-report p{margin:0;color:#dfdfdf}.thinking{padding:12px 14px;border:1px solid #242424;border-radius:8px;background:#101010;color:#9d9d9d}.agent-summary{margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid #242424}.agent-kicker,.summary-label,.modal-kicker{color:#8f8f8f;font-size:12px}.agent-summary p{margin:6px 0 0;color:#f4f4f4;font-size:17px;line-height:1.72}.summary-block{margin-top:12px}.summary-block ul{margin:6px 0 0;padding-left:18px;color:#d1d1d1;font-size:13px}.summary-block.subdued ul{color:#a9a9a9}.next-questions{margin-top:12px;display:flex;flex-wrap:wrap;gap:6px}.next-questions span{padding:4px 8px;border:1px solid #2d2d2d;border-radius:999px;color:#bdbdbd;font-size:12px}.score-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:14px;border-bottom:1px solid #242424}.score-label{color:#a7a7a7;font-size:14px}.score-number{margin-top:2px;font-size:34px;font-weight:680;line-height:1.1}.score-number span{color:#8d8d8d;font-size:18px;font-weight:500}.score-ring{width:58px;height:58px;border:1px solid #3a3a3a;border-radius:50%;display:grid;place-items:center;background:#101010;color:#f5f5f5;font-size:14px}.brief-line{margin:14px 0 10px;color:#a6a6a6}.rule-list{display:grid;gap:8px}.rule-row{border:1px solid #242424;border-radius:8px;background:#0d0d0d;font-size:13px}.rule-row summary{min-height:44px;padding:0 12px;display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:10px;cursor:pointer;list-style:none}.rule-row summary::-webkit-details-marker{display:none}.status-dot{width:8px;height:8px;border-radius:50%;background:#777}.status-dot.matched{background:#4aa477}.status-dot.missed{background:#777}.status-dot.unknown{background:#c9a74d}.rule-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rule-score{color:#a9a9a9;font-size:13px}.rule-reason{margin:0;padding:0 12px 12px 32px;color:#c8c8c8;font-size:12px}.topk-block{display:none;margin:0 12px 12px 32px;padding-top:10px;border-top:1px solid #222}.rule-actions{padding:0 12px 12px 32px}.rule-actions button{min-height:26px;padding:0 9px;border:1px solid #303030;border-radius:6px;background:#151515;color:#cfcfcf;cursor:pointer;font-size:12px}.rule-actions button:disabled{color:#666;cursor:default}.topk-title{margin-bottom:8px;color:#8e8e8e;font-size:13px}.topk-empty{color:#777;font-size:14px}.hit{padding:8px 0;border-top:1px solid #1b1b1b}.hit:first-of-type{border-top:0}.hit-meta{color:#d7d7d7;font-size:13px}.hit p{margin:4px 0 0;color:#a9a9a9;font-size:13px;white-space:pre-wrap}.modal-backdrop{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:24px;background:#000000b3}.evidence-modal{width:min(760px,calc(100vw - 48px));max-height:min(760px,calc(100vh - 48px));overflow:auto;border:1px solid #2d2d2d;border-radius:8px;background:#080808;padding:16px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid #222}.modal-head h2{margin:4px 0 0;font-size:16px;font-weight:620}.modal-head button{width:28px;height:28px;border:1px solid #303030;border-radius:50%;background:#151515;color:#d7d7d7;cursor:pointer}.modal-hit-list{display:grid;gap:10px;padding-top:10px}.composer{width:min(770px,calc(100% - 48px));margin:0 auto 28px;align-self:end;position:sticky;bottom:28px;z-index:10}.workspace-empty .composer{position:absolute;left:50%;top:calc(50vh - 74px);bottom:auto;transform:translate(-50%);margin:0}.composer-row{min-height:54px;display:grid;grid-template-columns:36px 1fr auto 40px;align-items:center;gap:8px;padding:6px 8px;border:1px solid #333;border-radius:28px;background:#252525;box-shadow:0 12px 36px #0000003d}.app-dragging .composer-row{border-color:#6d6d6d;background:#2d2d2d}.hidden-input{display:none}.icon-button,.send-button{width:36px;height:36px;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;cursor:pointer}.icon-button{color:#f2f2f2;font-size:28px;font-weight:300}.send-button{background:#f2f2f2;color:#111;font-size:20px}.send-button:disabled{background:#555;color:#252525;cursor:default}textarea{width:100%;max-height:130px;resize:none;border:0;outline:0;background:transparent;color:#f4f4f4;line-height:1.5;overflow-y:auto}textarea::placeholder{color:#a4a4a4}.topk-control{height:34px;display:inline-flex;align-items:center;gap:4px;color:#bababa;font-size:13px}.topk-control select{border:0;outline:0;background:transparent;color:#f2f2f2}.topk-control option{color:#111}.file-chip{width:fit-content;max-width:100%;margin:0 0 8px 48px;padding:6px 8px;border:1px solid #333;border-radius:8px;display:flex;align-items:center;gap:8px;background:#181818;color:#d8d8d8;font-size:13px}.file-chip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-chip button{border:0;background:transparent;color:#aaa;cursor:pointer}@media(max-width:820px){.app-shell{grid-template-columns:1fr}.sidebar{display:none}.chat{padding:22px 14px 136px}.empty-state{width:calc(100vw - 32px)}.empty-state h1{font-size:24px}.composer{width:calc(100% - 24px);margin-bottom:16px;bottom:16px}.topk-control span{display:none}}
