html{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}#root{min-height:100vh}:root{--bg:#f8f8f5;--surface:#fff;--soft:#fcfcfa;--border:#e4e7e0;--ink:#1c1f1c;--muted:#6b6f6a;--green:#10714e;--green-soft:#e7f0eb;--amber:#a86a2e;--amber-soft:#f3ebdf;--red:#b23a2e;--shadow:0 20px 60px #1c1f1c14;font-family:Public Sans,Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}button,textarea,input{font:inherit}button{cursor:pointer}body{background:var(--bg);color:var(--ink);margin:0}.app{min-height:100vh;display:flex;overflow:hidden}.rail{border-right:1px solid var(--border);background:var(--soft);flex-direction:column;flex-shrink:0;gap:16px;width:286px;padding:18px 14px;display:flex}.brand{align-items:center;gap:10px;padding:0 4px 4px;display:flex}.brand-mark{background:var(--green);color:#fff;border-radius:7px;place-items:center;width:28px;height:28px;font-weight:700;display:grid}.brand-name{font-size:15px;font-weight:700}.brand-sub{color:var(--muted);margin-top:2px;font-family:IBM Plex Mono,ui-monospace,monospace;font-size:11px}.primary,.send{background:var(--green);color:#fff;border:0;border-radius:999px;justify-content:center;align-items:center;gap:7px;min-height:38px;padding:0 14px;font-weight:700;display:inline-flex}.primary:disabled,.send:disabled{opacity:.5;cursor:default}.ghost,.icon-text{background:var(--surface);border:1px solid var(--border);color:#343934;border-radius:8px;align-items:center;gap:7px;min-height:34px;padding:0 10px;display:inline-flex}.danger-inline{color:var(--red);background:#fff7f4;border-color:#efd5ce}.danger-inline:disabled{opacity:.5;cursor:default}.rail-search{border:1px solid var(--border);background:var(--surface);height:36px;color:var(--muted);border-radius:8px;align-items:center;gap:7px;padding:0 10px;font-size:13px;display:flex}.rail-label,.sec-label{text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-size:11px}.history{flex-direction:column;gap:4px;display:flex;overflow:auto}.hist-row{border-radius:8px;align-items:stretch;min-height:56px;display:flex}.hist-row.active,.hist-row:hover,.hist-row:focus-within{background:var(--green-soft)}.hist-row.active .hist-item,.hist-row:hover .hist-item,.hist-row:focus-within .hist-item{color:var(--green)}.hist-item{text-align:left;color:#363a36;background:0 0;border:0;border-radius:8px;flex:1;min-width:0;padding:10px}.hist-item span{font-size:13px;font-weight:650;line-height:1.35;display:block}.hist-item small{color:var(--muted);margin-top:4px;font-size:11px;display:block}.hist-delete{width:34px;color:var(--muted);opacity:0;background:0 0;border:0;border-radius:8px;flex-shrink:0;place-items:center;margin:5px 5px 5px 0;display:grid}.hist-row.active .hist-delete,.hist-row:hover .hist-delete,.hist-row:focus-within .hist-delete{opacity:1}.hist-delete:hover{background:var(--surface);color:var(--red)}.hist-delete:disabled{opacity:.45;cursor:default}.rail-footer{flex-direction:column;gap:12px;margin-top:auto;display:flex}.status-stack{grid-template-columns:1fr;gap:5px;display:grid}.status-stack span{align-items:center;gap:6px;font-size:12px;display:flex}.ok{color:var(--green)}.warn{color:var(--amber)}.main{flex-direction:column;flex:1;min-width:0;display:flex}.topbar{border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#f8f8f5e0;justify-content:space-between;align-items:center;height:70px;padding:0 32px;display:flex}.top-title{font-size:17px;font-weight:760}.top-sub{color:var(--muted);margin-top:3px;font-size:12px}.top-actions{align-items:center;gap:8px;display:flex}.thread{flex-direction:column;flex:1;gap:18px;width:100%;max-width:1080px;margin:0 auto;padding:28px 32px 18px;display:flex;overflow:auto}.empty{max-width:860px;padding:54px 0 32px}.empty h1{max-width:760px;margin:0 0 14px;font-family:Georgia,Times New Roman,serif;font-size:42px;line-height:1.08}.empty p{color:var(--muted);max-width:720px;font-size:16px;line-height:1.65}.empty-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:24px;display:grid}.empty-grid button{text-align:left;border:1px solid var(--border);background:var(--surface);color:#303530;border-radius:8px;justify-content:space-between;gap:12px;min-height:74px;padding:14px;line-height:1.45;display:flex}.empty-grid button:hover{border-color:var(--green)}.bubble{border-radius:16px;max-width:760px;padding:12px 16px;line-height:1.6}.bubble.user{background:var(--ink);color:#f4f4f1;border-bottom-right-radius:4px;align-self:flex-end}.bubble.assistant{background:var(--surface);border:1px solid var(--border);border-bottom-left-radius:4px}.progress-card,.report{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:14px;overflow:hidden}.progress-card{padding:18px 22px}.progress-head{align-items:center;gap:11px;display:flex}.progress-head strong{display:block}.progress-head small{color:var(--muted);margin-top:2px;display:block}.progress-head span{color:var(--green);margin-left:auto;font-family:IBM Plex Mono,ui-monospace,monospace}.spin{color:var(--green);animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.bar{background:#eeefec;border-radius:999px;height:6px;margin:14px 0 10px;overflow:hidden}.bar i{background:var(--green);border-radius:999px;height:100%;transition:width .3s;display:block}.progress-card p{color:var(--muted);margin:0;font-size:13px}.report-head{border-bottom:1px solid var(--border);justify-content:space-between;gap:16px;padding:21px 24px 17px;display:flex}.report h2{margin:0;font-family:Georgia,Times New Roman,serif;font-size:26px;line-height:1.2}.report-head p{color:var(--muted);margin:6px 0 0;font-family:IBM Plex Mono,ui-monospace,monospace;font-size:12px}.verdict{background:var(--green-soft);color:var(--green);border-radius:999px;align-self:start;padding:5px 12px;font-size:12px;font-weight:750}.verdict.needs_data,.verdict.watch{background:var(--amber-soft);color:var(--amber)}.section{border-bottom:1px solid var(--border);padding:18px 24px}.summary{margin:10px 0 0;font-size:15.5px;line-height:1.7}.inference{background:var(--amber-soft);border-left:3px solid var(--amber);border-radius:0 8px 8px 0;margin-top:13px;padding:12px 14px;line-height:1.62}.inference span{background:var(--amber);color:#fff;vertical-align:middle;border-radius:999px;margin-right:8px;padding:2px 8px;font-size:10px;font-weight:800;display:inline-block}.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px;display:grid}.metric{text-align:left;border:1px solid var(--border);background:#fdfdfb;border-radius:10px;min-height:108px;padding:13px}.metric:hover{border-color:var(--green)}.metric span{color:var(--muted);font-size:12px;display:block}.metric strong{margin-top:8px;font-family:IBM Plex Mono,ui-monospace,monospace;font-size:19px;display:block}.metric em{background:var(--amber-soft);color:var(--amber);vertical-align:middle;border-radius:4px;margin-left:5px;padding:2px 5px;font-size:10px;font-style:normal}.metric small{color:var(--green);margin-top:8px;font-size:11px;display:block}table{border-collapse:collapse;width:100%;margin-top:10px;font-size:13px}th{text-align:left;color:var(--muted);border-bottom:1px solid var(--border);padding:0 10px 9px;font-weight:650}td{border-bottom:1px solid #f0f1ee;padding:10px}.notes{color:var(--muted);background:#fbfbf9;padding:16px 24px 20px;font-size:13px}.notes p{margin:8px 0}.composer{border-top:1px solid var(--border);background:var(--bg);padding:12px 32px 18px}.chips{flex-wrap:wrap;gap:8px;max-width:1080px;margin:0 auto 10px;display:flex}.chip{border:1px solid var(--border);background:var(--surface);color:#3d423d;border-radius:999px;padding:6px 12px;font-size:12px}.chip:hover{border-color:var(--green);color:var(--green)}.inputbar{background:var(--surface);border:1px solid var(--border);border-radius:14px;align-items:flex-end;gap:10px;max-width:1080px;margin:0 auto;padding:10px;display:flex}.inputbar:focus-within{border-color:var(--green)}textarea{resize:vertical;min-height:42px;max-height:140px;color:var(--ink);background:0 0;border:0;outline:0;flex:1;padding:9px 8px;line-height:1.45}.send{width:38px;height:38px;padding:0}.modal-backdrop{z-index:20;background:#1c1f1c4d;place-items:center;display:grid;position:fixed;inset:0}.modal{background:var(--surface);border:1px solid var(--border);width:min(560px,100vw - 32px);box-shadow:var(--shadow);border-radius:14px;padding:22px}.modal-head{align-items:flex-start;gap:12px;display:flex}.modal h2{margin:0;font-size:20px}.modal p{color:var(--muted);margin:5px 0 0;line-height:1.55}.field-label{color:#3a3f3a;margin:16px 0 7px;font-size:12px;font-weight:700;display:block}.key-input{border:1px solid var(--border);border-radius:8px;width:100%;height:42px;margin:18px 0;padding:0 12px}.modal-actions{justify-content:flex-end;gap:10px;display:flex}.delete-modal{max-width:440px}.delete-name{color:var(--red);word-break:break-word;background:#fff7f4;border:1px solid #efd5ce;border-radius:8px;margin:18px 0;padding:12px 14px;font-weight:750}.danger-confirm{background:var(--red);color:#fff;border:0;border-radius:999px;justify-content:center;align-items:center;gap:7px;min-height:38px;padding:0 14px;font-weight:700;display:inline-flex}.danger-confirm:disabled{opacity:.55;cursor:default}.drawer{background:var(--surface);border-left:1px solid var(--border);width:min(460px,100vw);height:100vh;box-shadow:var(--shadow);z-index:15;padding:18px;position:fixed;top:0;right:0;overflow:auto}.drawer-head{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.drawer h2{margin:0}.source-card{border:1px solid var(--border);background:#fdfdfb;border-radius:10px;padding:14px}.source-card h3{margin:0 0 6px}pre{white-space:pre-wrap;word-break:break-word;background:#f4f5f2;border-radius:8px;max-height:280px;padding:10px;font-size:11px;overflow:auto}.danger{width:100%;color:var(--red);background:#fff7f4;border:1px solid #efd5ce;border-radius:8px;justify-content:center;align-items:center;gap:7px;min-height:34px;margin-top:10px;display:flex}@media (width<=900px){.rail{display:none}.topbar{height:auto;min-height:66px;padding:0 16px}.top-sub{display:none}.top-actions{gap:6px}.top-actions .icon-text{padding:0 8px}.thread{padding:18px 14px}.empty h1{font-size:31px}.empty-grid,.metric-grid{grid-template-columns:1fr}.composer{padding:10px 14px 14px}}@media print{.rail,.topbar,.composer,.drawer,.modal-backdrop{display:none!important}.app,.main,.thread{display:block;overflow:visible}.report{box-shadow:none}}
