:root{--bg:#0f1115;--surface:#171a21;--border:#262b36;--text:#e6e8ec;--muted:#9aa3b2;--accent:#7c9cff;--danger:#ff6b6b}*{box-sizing:border-box}body,html{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.shell{min-height:100dvh;display:grid;place-items:center;padding:24px}.card{width:100%;max-width:380px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:28px}h1{margin:0 0 4px;font-size:20px}.sub{margin:0 0 22px;font-size:14px;line-height:1.5}.sub,label{color:var(--muted)}label{display:block;font-size:13px;margin-bottom:6px}input{width:100%;padding:10px 12px;margin-bottom:14px;background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:15px}input:focus{outline:none;border-color:var(--accent)}button{width:100%;padding:11px;border:0;border-radius:8px;background:var(--accent);color:#0f1115;font-size:15px;font-weight:600;cursor:pointer}button:disabled{opacity:.6;cursor:not-allowed}.link{margin-top:16px;text-align:center;font-size:14px;color:var(--muted)}.link button{width:auto;background:none;color:var(--accent);font-weight:500;padding:0}.error{margin-bottom:14px;padding:9px 11px;border-radius:8px;background:rgba(255,107,107,.1);border:1px solid rgba(255,107,107,.3);color:var(--danger)}.error,.note{font-size:13px}.note{margin-top:18px;padding:12px;border:1px dashed var(--border);border-radius:8px;color:var(--muted);line-height:1.5}.shell:has(.home){align-items:start;padding-top:12vh}.home{width:100%;max-width:620px}.home-head{margin-bottom:32px}.home-head h1{font-size:30px;letter-spacing:-.02em;margin-bottom:6px}.home-head .sub{margin:0}.products{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.product{display:block;padding:18px 20px;background:var(--surface);border:1px solid var(--border);border-radius:12px;text-decoration:none;color:inherit}.product-link{transition:border-color .15s ease,transform .15s ease}.product-link:hover{border-color:var(--accent);transform:translateY(-1px)}.product-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}.product-name{font-size:16px;font-weight:600}.product-tagline{margin:0;color:var(--muted);font-size:14px;line-height:1.5}.product-note{margin:6px 0 0;color:var(--muted);font-size:13px;opacity:.75}.status{flex-shrink:0;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;border:1px solid transparent}.status-ready{background:rgba(74,222,128,.12);border-color:rgba(74,222,128,.35);color:#4ade80}.status-in-development{background:rgba(251,191,36,.12);border-color:rgba(251,191,36,.35);color:#fbbf24}.status-planned{background:rgba(148,163,184,.12);border-color:rgba(148,163,184,.3);color:var(--muted)}.link a{color:var(--accent);text-decoration:none;font-size:14px}.link a:hover{text-decoration:underline}.kinds{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.chip{width:auto;padding:7px 13px;border:1px solid var(--border);border-radius:999px;background:var(--bg);color:var(--muted);font-size:13px;font-weight:500}.chip.on{background:var(--accent);border-color:var(--accent);color:#0f1115}.shell:has(.chat){padding:0;place-items:stretch}.chat{display:grid;grid-template-columns:260px 1fr;width:100%;height:100dvh}.sidebar{display:flex;flex-direction:column;border-right:1px solid var(--border);background:var(--surface);min-width:0}.sidebar-foot,.sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px;font-size:14px}.sidebar-head{border-bottom:1px solid var(--border)}.sidebar-foot{border-top:1px solid var(--border);margin-top:auto}.sidebar-foot .sub{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.ghost{width:auto;padding:4px 10px;background:none;border:1px solid var(--border);border-radius:7px;color:var(--muted);font-size:13px}.thread-list{flex:1 1;overflow-y:auto;padding:8px}.thread-list .sub{padding:8px;font-size:13px}.thread{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:9px 11px;margin-bottom:3px;background:none;border-radius:8px;color:var(--text);font-weight:400;text-align:left}.thread.active,.thread:hover{background:var(--bg)}.thread.active{box-shadow:inset 2px 0 0 var(--accent)}.thread-title{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.thread-meta{font-size:11px;color:var(--muted)}.conversation{display:flex;flex-direction:column;min-width:0}.messages{flex:1 1;overflow-y:auto;padding:28px 20px;display:flex;flex-direction:column;gap:8px}.empty{margin:auto;text-align:center}.bubble{max-width:min(600px,78%);padding:10px 14px;border-radius:16px;font-size:15px;line-height:1.45;white-space:pre-wrap;word-break:break-word}.bubble.user{align-self:flex-end;background:var(--accent);color:#0f1115;border-bottom-right-radius:5px}.bubble.assistant{align-self:flex-start;background:var(--surface);border:1px solid var(--border);border-bottom-left-radius:5px}.bubble.typing{display:flex;gap:4px;padding:14px}.bubble.typing span{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:blink 1.3s infinite}.bubble.typing span:nth-child(2){animation-delay:.2s}.bubble.typing span:nth-child(3){animation-delay:.4s}@keyframes blink{0%,60%,to{opacity:.25}30%{opacity:1}}.composer{display:flex;gap:10px;padding:14px 20px 20px;border-top:1px solid var(--border)}.composer input{flex:1 1;margin:0}.composer button{width:auto;padding:10px 20px}@media (max-width:720px){.chat{grid-template-columns:1fr}.sidebar{display:none}}