:root{color:#f4f4f5;background:#0f1117;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,textarea,input{font:inherit}button{cursor:pointer}.app-shell{color:#f4f4f5;background:#0f1117;grid-template-columns:285px minmax(0,1fr);min-height:100vh;display:grid}.app-shell.light{color:#111827;background:#fff}.leftnav{background:#171717;border-right:1px solid #ffffff14;flex-direction:column;height:100vh;padding:12px;display:flex;position:sticky;top:0}.light .leftnav{background:#f7f7f8;border-right-color:#e5e7eb}.brand-mini{align-items:center;gap:9px;height:42px;padding:0 8px;font-size:15px;font-weight:850;display:flex}.brand-shield{filter:drop-shadow(0 5px 14px #3b82f659)}.new-chat{width:100%;color:inherit;text-align:left;background:0 0;border:1px solid #ffffff24;border-radius:11px;padding:12px;font-weight:800}.new-chat:hover,.chat-row:hover,.chat-row.active{background:#ffffff14}.light .new-chat{border-color:#d1d5db}.light .new-chat:hover,.light .chat-row:hover,.light .chat-row.active{background:#ececf1}.search-box{color:#a1a1aa;background:#ffffff0f;border-radius:10px;grid-template-columns:24px 1fr;align-items:center;margin-top:10px;padding:10px;display:grid}.light .search-box{background:#ececf1}.search-box input{width:100%;min-width:0;color:inherit;background:0 0;border:0;outline:0}.history-title{letter-spacing:.06em;text-transform:uppercase;opacity:.65;margin:22px 6px 8px;font-size:12px;font-weight:900}.history-list{flex:1;align-content:start;gap:4px;padding-right:2px;display:grid;overflow:auto}.chat-row{width:100%;color:inherit;text-align:left;background:0 0;border:0;border-radius:10px;grid-template-columns:1fr 22px;align-items:center;gap:6px;padding:10px;display:grid}.chat-row p{white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:14px;overflow:hidden}.chat-row em{opacity:0;text-align:center;border-radius:6px;font-style:normal}.chat-row:hover em{opacity:.75}.chat-row em:hover{opacity:1;background:#ffffff1f}.guest-card{background:#10a37f1f;border:1px solid #10a37f40;border-radius:12px;gap:5px;margin:4px 0 12px;padding:12px;display:grid}.guest-card span{opacity:.75;font-size:12px;line-height:1.45}.account-area{border-top:1px solid #ffffff14;padding-top:10px}.light .account-area{border-top-color:#e5e7eb}.account-button{width:100%;color:inherit;text-align:left;background:#ffffff0f;border:0;border-radius:12px;align-items:center;gap:10px;padding:10px;display:flex}.light .account-button{background:#ececf1}.avatar{color:#fff;background:#10a37f;border-radius:50%;flex:0 0 34px;place-items:center;width:34px;height:34px;font-weight:900;display:grid}.account-button div:not(.avatar){min-width:0;display:grid}.account-button b,.account-button small{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.account-button small{opacity:.65;font-size:12px}.auth-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.auth-actions button{color:inherit;background:#ffffff14;border:0;border-radius:9px;padding:10px;font-weight:850}.light .auth-actions button{background:#ececf1}.workspace{min-height:100vh;padding-bottom:118px;position:relative}.topbar{z-index:20;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(#0f1117fa,#0f1117b8);justify-content:space-between;align-items:center;height:58px;padding:0 28px;display:flex;position:sticky;top:0}.light .topbar{background:linear-gradient(#fffffff5,#ffffffb8)}.top-actions{align-items:center;gap:7px;display:flex;position:relative}.deploy-btn,.icon-btn,.lang-pill,.theme-pill{color:inherit;background:0 0;border:0;border-radius:9px;padding:8px 10px;font-weight:800}.lang-pill,.theme-pill{background:#ffffff12;min-width:42px}.light .lang-pill,.light .theme-pill{background:#ececf1}.deploy-btn:hover,.icon-btn:hover,.lang-pill:hover,.theme-pill:hover{background:#ffffff1c}.light .deploy-btn:hover,.light .icon-btn:hover{background:#0000000f}.icon-btn{font-size:24px;line-height:1}.top-menu{z-index:80;background:#303030;border:1px solid #ffffff1f;border-radius:16px;gap:3px;width:315px;padding:9px;display:grid;position:absolute;top:44px;right:0;box-shadow:0 24px 70px #0000008c}.light .top-menu{background:#fff;border-color:#ddd}.top-menu button{color:inherit;text-align:left;background:0 0;border:0;border-radius:10px;padding:12px 10px;font-weight:700}.top-menu button:hover{background:#ffffff14}.light .top-menu button:hover{background:#f3f4f6}.top-menu .danger{color:#ff5757}.hero-panel{align-items:center;gap:18px;width:min(980px,100% - 64px);margin:86px auto 34px;display:flex}.logo-mark{filter:drop-shadow(0 8px 24px #3b82f640);font-size:43px}.hero-panel h1{letter-spacing:-.04em;margin:0;font-size:40px}.hero-panel p{opacity:.88;margin:10px 0 0;font-size:15px;font-weight:750}.divider{background:#ffffff1f;width:min(980px,100% - 64px);height:1px;margin:0 auto}.light .divider{background:#e5e7eb}.chat-area{width:min(980px,100% - 64px);margin:0 auto;padding:26px 0 140px}.empty-state{text-align:center;opacity:.68;place-content:center;min-height:310px;display:grid}.empty-state h2{margin:0 0 8px;font-size:30px}.empty-state p{max-width:620px;margin:0;line-height:1.6}.message{margin:18px 0;display:flex}.user-message{justify-content:flex-end}.ai-message{justify-content:flex-start}.message-body{background:#1b1f2a;border:1px solid #ffffff14;border-radius:14px;max-width:min(780px,86%);padding:14px 16px}.light .message-body{background:#f9fafb;border-color:#e5e7eb}.user-bubble{background:#2f3441}.light .user-bubble{background:#eef2ff}.user-bubble p{white-space:pre-wrap;margin:0 0 5px}.user-bubble small{opacity:.75}.loading-bubble{color:#cbd5e1;align-items:center;gap:10px;display:inline-flex}.loader{border:2px solid #ffffff40;border-top-color:#10a37f;border-radius:50%;width:15px;height:15px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.error-banner{color:#fecaca;background:#7f1d1d61;border:1px solid #f8717157;border-radius:9px;margin:18px 0;padding:13px 15px}.result-body.report-result{background:linear-gradient(135deg,#10a37f1a,#0000 34%),#ffffff09;border:1px solid #ffffff1a;border-radius:18px;width:100%;padding:18px}.light .result-body.report-result{background:linear-gradient(135deg,#10a37f1a,#0000 36%),#fff;border-color:#e5e7eb;box-shadow:0 12px 40px #0f172a0f}.result-header{grid-template-columns:minmax(160px,1fr) minmax(180px,1.2fr) auto;align-items:stretch;gap:12px;margin-bottom:12px;display:grid}.decision-block,.score-block{background:#ffffff0e;border-radius:12px;align-content:center;gap:7px;min-width:0;padding:12px;display:grid}.light .decision-block,.light .score-block{background:#f8fafc}.decision-block>span,.score-block>span{text-transform:uppercase;opacity:.58;font-size:12px;font-weight:900}.decision-pill,.confidence-pill,.pro-pill{border-radius:999px;width:fit-content;padding:7px 12px;font-size:13px;font-weight:850}.decision-pill.true{color:#86efac;background:#22c55e2e}.decision-pill.false{color:#fca5a5;background:#ef44442e}.decision-pill.uncertain{color:#fde68a;background:#eab3082e}.decision-pill.answered{color:#67e8f9;background:#14b8a62e}.confidence-pill{color:#93c5fd;background:#3b82f62e}.pro-pill{color:#5eead4;background:#10a37f29;align-self:start}.score-block strong{font-size:20px}.score-track{background:#ffffff1a;border-radius:999px;height:7px;overflow:hidden}.light .score-track{background:#e5e7eb}.score-track i{border-radius:inherit;background:linear-gradient(90deg,#14b8a6,#3b82f6);height:100%;display:block}.confidence-note{opacity:.74;margin:8px 0 18px;line-height:1.6}.answer-section{margin-top:18px}.report-result h3{letter-spacing:-.01em;margin:0 0 8px;font-size:17px}.report-result p,.analysis-text{margin:0;font-size:15px;line-height:1.75}.detail-disclosure{border-top:1px solid #ffffff1a;border-bottom:1px solid #ffffff1a;margin-top:20px;padding:12px 0}.light .detail-disclosure{border-top-color:#e5e7eb;border-bottom-color:#e5e7eb}.detail-disclosure summary{cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;gap:14px;font-size:17px;font-weight:900;list-style:none;display:flex}.detail-disclosure summary::-webkit-details-marker{display:none}.detail-disclosure summary:after{content:"⌄";background:#ffffff12;border-radius:8px;place-items:center;width:28px;height:28px;transition:transform .18s,background .18s;display:grid}.light .detail-disclosure summary:after{background:#ececf1}.detail-disclosure[open] summary:after{transform:rotate(180deg)}.detail-disclosure summary small{opacity:.55;margin-left:auto;font-size:12px;font-weight:800}.detail-disclosure .analysis-text{margin-top:14px;padding-top:10px}.analysis-text{gap:12px;display:grid}.analysis-text h4{color:#9cebd8;margin:10px 0 0;font-size:15px}.light .analysis-text h4{color:#047857}.analysis-bullet{grid-template-columns:9px 1fr;align-items:start;gap:10px;margin:2px 0;display:grid}.analysis-bullet span{background:#14b8a6;border-radius:50%;width:6px;height:6px;margin-top:11px}.analysis-bullet strong{color:#67e8f9;font-weight:900}.light .analysis-bullet strong{color:#0f766e}.source-list.plain-sources{gap:8px;margin-top:8px;display:grid}.plain-sources a{color:inherit;background:#ffffff0e;border-radius:10px;grid-template-columns:28px minmax(120px,.55fr) minmax(0,1fr);align-items:center;gap:10px;padding:10px;line-height:1.4;text-decoration:none;display:grid}.light .plain-sources a{background:#f8fafc}.plain-sources a:hover{text-decoration:underline}.plain-sources b{color:#93c5fd;background:#60a5fa29;border-radius:999px;place-items:center;width:24px;height:24px;font-size:12px;display:grid}.plain-sources span{color:#60a5fa;white-space:nowrap;text-overflow:ellipsis;font-weight:850;overflow:hidden}.plain-sources em{color:currentColor;opacity:.65;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-style:normal;overflow:hidden}.composer-wrap{z-index:25;width:min(900px,100vw - 365px);position:fixed;bottom:24px;left:calc(50vw + 142.5px);transform:translate(-50%)}.composer{background:#2f3340;border:1px solid #ffffff1f;border-radius:14px;grid-template-columns:44px 1fr 44px;align-items:end;gap:6px;padding:8px;display:grid;box-shadow:0 18px 50px #00000059}.light .composer{background:#fff;border-color:#d1d5db}.plus-btn,.send-btn{width:36px;height:36px;color:inherit;background:0 0;border:0;border-radius:9px;font-weight:900}.plus-btn:hover{background:#ffffff14}.send-btn{color:#fff;background:#10a37f}.send-btn:disabled{opacity:.55}.composer textarea{resize:none;min-height:36px;max-height:140px;color:inherit;background:0 0;border:0;outline:0;padding:8px;line-height:1.45}.file-chip{background:#202632;border:1px solid #ffffff1a;border-radius:10px;align-items:center;gap:8px;margin:0 0 8px;padding:8px 10px;display:inline-flex}.file-chip button{color:inherit;background:0 0;border:0}.modal-backdrop{z-index:100;background:#0000008c;place-items:center;display:grid;position:fixed;inset:0}.auth-modal,.deploy-modal{background:#171b25;border:1px solid #ffffff1f;border-radius:18px;gap:12px;width:min(440px,100% - 40px);padding:18px;display:grid;box-shadow:0 30px 90px #0000008c}.deploy-modal{width:min(560px,100% - 40px)}.light .auth-modal,.light .deploy-modal{background:#fff;border-color:#ddd}.modal-header{justify-content:space-between;align-items:center;gap:16px;display:flex}.modal-header h2{margin:0}.modal-header button{color:inherit;background:0 0;border:0;font-size:24px}.muted-text{opacity:.72;margin:0;line-height:1.6}.deploy-status{background:#ffffff0d;border:1px solid #ffffff14;border-radius:12px;gap:8px;padding:14px;display:grid}.light .deploy-status{background:#f9fafb;border-color:#e5e7eb}.deploy-status .ok{color:#86efac;font-weight:850}.deploy-status .bad{color:#fca5a5;font-weight:850}.deploy-actions{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.deploy-actions button,.primary-auth{color:#fff;background:#10a37f;border:0;border-radius:10px;padding:12px;font-weight:900}.auth-tabs{background:#ffffff0f;border-radius:12px;grid-template-columns:1fr 1fr;padding:4px;display:grid}.auth-tabs button{color:inherit;background:0 0;border:0;border-radius:9px;padding:10px;font-weight:850}.auth-tabs .active{color:#fff;background:#10a37f}.auth-modal input{color:inherit;background:#0000002e;border:1px solid #ffffff1f;border-radius:10px;outline:0;padding:12px}.light .auth-modal input{background:#f9fafb;border-color:#d1d5db}.mini-error{color:#fecaca;background:#7f1d1d61;border-radius:8px;padding:10px}@media (width<=860px){.app-shell{grid-template-columns:1fr}.leftnav{display:none}.composer-wrap{width:calc(100% - 32px);left:50%}.hero-panel,.divider,.chat-area{width:calc(100% - 32px)}.message-body{max-width:100%}.result-header{grid-template-columns:1fr}.plain-sources a{grid-template-columns:28px minmax(0,1fr)}.plain-sources em{grid-column:2}.deploy-actions{grid-template-columns:1fr}}
