:root { --bg:#0f1115; --card:#181b22; --line:#2a2f3a; --text:#e8eaf0; --muted:#9aa3b2; --accent:#ffd400; --danger:#ff5c5c; --ok:#3ddc84; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background:var(--bg); color:var(--text); }
.top { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; border-bottom:1px solid var(--line); }
.brand { font-weight:800; font-size:20px; }
.brand span { font-weight:400; color:var(--muted); font-size:13px; margin-left:8px; }
main { max-width:860px; margin:0 auto; padding:14px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px 16px; margin-bottom:14px; }
h1, h2 { margin:0 0 10px; font-size:17px; }
label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--muted); margin-top:6px; }
input, textarea { background:#0f1218; border:1px solid var(--line); color:var(--text); border-radius:8px; padding:9px 10px; font:inherit; width:100%; }
textarea { resize:vertical; }
button { background:#2b3140; color:var(--text); border:0; border-radius:8px; padding:9px 14px; font:inherit; cursor:pointer; white-space:nowrap; }
button:disabled { opacity:.45; cursor:not-allowed; }
button.primary { background:var(--accent); color:#111; font-weight:700; }
button.danger { background:#3a1e22; color:#ffb3b3; }
button.link { background:none; color:var(--muted); padding:0; }
.row { display:flex; gap:8px; align-items:center; margin-top:8px; flex-wrap:wrap; }
.row input { flex:1; min-width:160px; }
.hint { color:var(--muted); font-size:12px; margin:4px 0 6px; }
.muted { color:var(--muted); font-size:13px; margin:4px 0; }
.error { color:var(--danger); }
.cost { font-weight:600; margin:4px 0 0; }
.badge { font-size:12px; padding:2px 8px; border-radius:99px; background:#2b3140; margin-right:6px; }
.badge.on { background:#173b2a; color:var(--ok); }
.badge.boot { background:#3b3417; color:var(--accent); }
.badge.off { color:var(--muted); }
.badge.err { background:#3a1e22; color:#ffb3b3; }
.gpu-row { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; flex-wrap:wrap; }
.results { list-style:none; padding:0; margin:6px 0; max-height:260px; overflow:auto; }
.results li { padding:7px 9px; border-radius:8px; cursor:pointer; display:flex; justify-content:space-between; gap:8px; font-size:14px; }
.results li:hover, .results li:focus { background:#232836; }
.results small { color:var(--muted); white-space:nowrap; }
.plan { background:#11141b; border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin-top:8px; font-size:14px; }
.plan table { width:100%; border-collapse:collapse; font-size:13px; margin-top:6px; }
.plan td { padding:3px 4px; border-top:1px solid var(--line); }
.messages { display:flex; flex-direction:column; gap:10px; margin:10px 0; min-height:120px; max-height:60vh; overflow:auto; }
.msg { padding:9px 12px; border-radius:12px; white-space:pre-wrap; word-wrap:break-word; max-width:92%; }
.msg.user { background:#2b3140; align-self:flex-end; }
.msg.assistant { background:#11141b; border:1px solid var(--line); align-self:flex-start; }
.msg.error { background:#3a1e22; color:#ffb3b3; }
.msg .think { color:var(--muted); font-size:13px; border-left:2px solid var(--line); padding-left:8px; margin-bottom:6px; }
.composer textarea { min-height:52px; }
.login { max-width:360px; margin:60px auto; display:flex; flex-direction:column; gap:10px; }
details summary { cursor:pointer; color:var(--muted); font-size:13px; }
@media (max-width:560px) { .brand span { display:none; } main { padding:8px; } .msg { max-width:100%; } }
