*{box-sizing:border-box} :root{color-scheme:dark;--bg:#10131b;--panel:#191e2a;--panel2:#202737;--text:#f3f5fa;--muted:#9ca7ba;--accent:#9a8cff;--line:#30394b}body{margin:0;background:var(--bg);color:var(--text);font:16px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding-bottom:env(safe-area-inset-bottom)}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-shell{max-width:850px;margin:auto;min-height:100svh;padding:env(safe-area-inset-top) 16px 20px}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px}.brand-mark{width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,#a99bff,#6555c7);display:grid;place-items:center;font-weight:900;color:#111}.brand strong{display:block;font-size:18px}.brand small{color:var(--muted)}.icon-btn{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:12px;padding:10px 13px}.tabs{display:flex;gap:6px;padding:12px 0;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--bg);z-index:2}.tab{flex:1;border:0;border-radius:10px;background:transparent;color:var(--muted);padding:11px 5px}.tab.active{background:var(--panel2);color:var(--text)}main{padding:22px 0}.view{display:none}.view.active{display:block}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.section-heading h1{font-size:26px;margin:0 0 4px}.section-heading p,.hint,.browser-note p{color:var(--muted);margin:0;font-size:14px;line-height:1.5}.quiet-btn{background:transparent;border:1px solid var(--line);color:var(--text);border-radius:10px;padding:9px 12px}.chat-list{display:flex;flex-direction:column;gap:13px;min-height:42vh;padding-bottom:18px}.bubble{max-width:92%;padding:13px 15px;border-radius:16px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.user{align-self:flex-end;background:#5146a1}.bubble.assistant{align-self:flex-start;background:var(--panel);border:1px solid var(--line)}.bubble .who{display:block;color:#c6c1ff;font-size:11px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:5px}.composer,.panel,.browser-note,.memory-form{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:13px}.composer{position:sticky;bottom:8px}.composer textarea,textarea,input,select{width:100%;background:#111722;border:1px solid var(--line);border-radius:11px;color:var(--text);padding:12px;resize:vertical}.composer textarea{border:0;background:transparent;padding:4px;outline:none}.composer-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:8px}.status{font-size:12px;color:var(--muted)}.send-btn,.primary-btn,.search-form button{border:0;border-radius:11px;background:var(--accent);color:#111;font-weight:700;padding:11px 17px}.search-form{display:flex;gap:8px;margin-bottom:16px}.search-form input{flex:1;min-width:0}.browser-note{margin-top:20px}.browser-note p{margin-top:6px}.quick-sites{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.quick-sites a{color:#c5bdff;background:var(--panel);padding:10px 13px;border-radius:10px;text-decoration:none}.panel{display:flex;flex-direction:column;gap:13px}.panel label,.settings-body label{display:flex;flex-direction:column;gap:7px;color:#d9deea;font-size:14px}.two-col{display:grid;grid-template-columns:1fr;gap:12px}.hint{font-size:12px}.result-box{background:#111722;border:1px dashed var(--line);border-radius:11px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);min-height:60px}.memory-form{display:flex;flex-direction:column;gap:10px}.memory-list{display:flex;flex-direction:column;gap:9px;margin:14px 0}.memory-item{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;gap:10px;justify-content:space-between;align-items:flex-start}.memory-item p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.memory-item button{background:transparent;color:#ff9b9b;border:0}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start}.dialog-head h2{margin:0 0 4px}.dialog-head p{margin:0;color:var(--muted);font-size:13px}dialog{width:min(94vw,620px);max-height:88vh;overflow:auto;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:18px;padding:18px}dialog::backdrop{background:#000a}.settings-body{display:flex;flex-direction:column;gap:14px;margin-top:18px}.check-row{display:flex!important;flex-direction:row!important;align-items:center}.check-row input{width:auto}.empty{color:var(--muted);text-align:center;padding:35px 10px}@media(min-width:650px){.two-col{grid-template-columns:1fr 1fr}.chat-list{min-height:50vh}}