:root{--bg:#edf1ff;--panel:#fff;--border:#e4e5e6;--text:#293241;--muted:#606463;--user-bg:#3d5a80;--user-text:#fff;--bot-bg:#edf1ff;--bot-text:#293241;--accent:#9a3324;--accent-text:#9a3324;--code-bg:#e4e5e6;--error:#b3261e}@media (prefers-color-scheme:dark){:root{--bg:#272e32;--panel:#2e353d;--border:#3b4246;--text:#e4e5e6;--muted:#a3a7a9;--user-bg:#3d5a80;--user-text:#fff;--bot-bg:#343b42;--bot-text:#e4e5e6;--accent:#9a3324;--accent-text:#dd8f79;--code-bg:#3b4246;--error:#f08c7e}}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;justify-content:center;font:15px/1.5 Outfit,Arial,Helvetica,sans-serif;display:flex}#root{justify-content:center;width:100%;display:flex}.app{background:var(--panel);border-left:1px solid var(--border);border-right:1px solid var(--border);flex-direction:column;width:100%;max-width:780px;height:100dvh;display:flex;box-shadow:0 0 40px #29324012}header{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:12px 18px;display:flex}.brand-logo{align-items:center;display:flex}.brand-logo img{border-radius:4px;width:auto;height:40px;display:block}@media (prefers-color-scheme:dark){.brand-logo img{box-shadow:0 0 0 1px var(--border)}}.brand-sep{background:var(--border);align-self:stretch;width:1px;margin:3px 0}.brand-titles{flex-direction:column;line-height:1.2;display:flex}header h1{color:var(--text);letter-spacing:.2px;margin:0;font-size:16px;font-weight:700}header .tagline{color:var(--muted);font-size:12px}.log{flex-direction:column;flex:1;gap:12px;padding:18px;display:flex;overflow-y:auto}.empty{color:var(--muted);text-align:center;max-width:460px;margin:auto;font-size:14px}.empty strong{color:var(--text);letter-spacing:.2px;margin-bottom:6px;font-size:20px;font-weight:600;display:block}.msg{white-space:pre-wrap;word-wrap:break-word;border-radius:14px;max-width:82%;padding:10px 14px}.user{background:var(--user-bg);color:var(--user-text);border-bottom-right-radius:4px;align-self:flex-end}.bot{background:var(--bot-bg);color:var(--bot-text);border-bottom-left-radius:4px;align-self:flex-start}.err{color:var(--error);background:0 0;align-self:center;font-size:13px}.bot{white-space:normal}.bot p{margin:0 0 8px}.bot h4{margin:12px 0 4px;font-size:16px;font-weight:700;line-height:1.35}.bot h4:first-child{margin-top:0}.bot p:last-child,.bot ul:last-child,.bot ol:last-child{margin-bottom:0}.bot ul,.bot ol{margin:4px 0 8px;padding-left:20px}.bot li{margin:2px 0}.bot li>p{margin:0}.bot code{background:var(--code-bg);border-radius:4px;padding:1px 4px;font-size:90%}.bot pre{white-space:pre-wrap;margin:0 0 8px}.bot pre code{padding:8px 10px;display:block}.bot strong{font-weight:600}.bot a{color:var(--accent-text)}.sources{max-width:82%;color:var(--muted);align-self:flex-start;font-size:13px}.sources>summary{cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--accent-text);font-weight:500}.source{border:1px solid var(--border);background:var(--bg);border-radius:10px;margin-top:8px;padding:8px 10px}.source-cite{color:var(--text);font-size:13px}.source-cite strong{font-weight:700}.source-cite a{color:var(--accent-text);font-weight:700;text-decoration:none}.source-cite a:hover{text-decoration:underline}.feedback{color:var(--muted);flex-wrap:wrap;align-self:flex-start;align-items:center;gap:8px;font-size:13px;display:flex}.fb-label{-webkit-user-select:none;user-select:none}.fb-btn{color:var(--muted);border:1px solid var(--border);background:0 0;border-radius:8px;padding:2px 9px;font-size:14px;font-weight:400;line-height:1.4}.fb-btn:hover:not(:disabled){border-color:var(--accent);color:var(--text)}.fb-btn.active{background:var(--accent);border-color:var(--accent);color:#fff}.fb-comment{gap:6px;width:100%;margin-top:2px;display:flex}.fb-comment textarea{resize:none;font:inherit;border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:8px;flex:1;max-height:100px;padding:6px 8px;font-size:13px}.fb-comment textarea:focus{outline:2px solid var(--accent);outline-offset:-1px}.fb-send{padding:0 12px;font-size:13px}.fb-thanks{color:var(--accent-text);font-weight:500}.typing{color:var(--muted);align-self:flex-start;font-size:13px}.authbar{border-top:1px solid var(--border);background:var(--bg);color:var(--muted);flex-wrap:wrap;align-items:center;gap:10px;padding:10px 14px;font-size:13px;display:flex}.authbar.is-error{color:var(--error)}.authbar button{padding:4px 14px;font-size:13px;font-weight:500}.composer{border-top:1px solid var(--border);gap:8px;padding:12px;display:flex}textarea{resize:none;font:inherit;border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:10px;flex:1;max-height:160px;padding:10px 12px}textarea:focus{outline:2px solid var(--accent);outline-offset:-1px}button{font:inherit;background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:10px;padding:0 18px;font-weight:600;transition:filter .15s}button:hover:not(:disabled){filter:brightness(.92)}button:disabled{opacity:.5;cursor:not-allowed}
