:root{color-scheme:dark;--bg:#070b14;--panel:#0d1424;--panel2:#111a2e;--border:#24324a;--text:#f8fafc;--muted:#94a3b8;--blue:#3b82f6;--blue2:#1d4ed8;--green:#22c55e}*{box-sizing:border-box}body,html{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}a{color:inherit}.shell{min-height:100vh;display:grid;grid-template-columns:280px minmax(0,1fr) 340px;background:radial-gradient(circle at top left,rgba(59,130,246,.16),transparent 34%),var(--bg)}.rightbar,.sidebar{height:100vh;position:-webkit-sticky;position:sticky;top:0;overflow:auto;padding:22px;background:rgba(13,20,36,.92);border-color:var(--border)}.sidebar{border-right:1px solid var(--border)}.rightbar{border-left:1px solid var(--border)}.main{height:100vh;overflow:hidden;display:grid;grid-template-rows:auto 1fr auto;grid-gap:16px;gap:16px;padding:24px 28px}.card{background:rgba(17,26,46,.86);border:1px solid var(--border);border-radius:18px;box-shadow:0 12px 30px rgba(0,0,0,.22)}.nav-card{display:block;padding:13px 14px;border:1px solid var(--border);border-radius:14px;background:rgba(15,23,42,.86);text-decoration:none;margin-bottom:10px}.nav-card.active{background:linear-gradient(135deg,#1d4ed8,#1e3a8a);border-color:#60a5fa}.muted{color:var(--muted)}.small{font-size:12px}.chat-scroll{overflow:auto;padding:18px;display:grid;grid-gap:16px;gap:16px}.message{max-width:84%;padding:15px 16px;border-radius:18px;border:1px solid var(--border);white-space:pre-wrap;line-height:1.55;font-size:15px}.message.user{justify-self:end;background:linear-gradient(135deg,#1d4ed8,#1e40af)}.message.assistant{justify-self:start;background:rgba(15,23,42,.95)}.memory pre,.message pre{margin:0;white-space:pre-wrap;font:inherit}.composer{padding:14px;background:rgba(13,20,36,.96);border:1px solid var(--border);border-radius:18px}textarea.prompt{width:100%;padding:14px;border-radius:14px;border:1px solid var(--border);background:#050816;color:white;resize:vertical;outline:none}textarea.prompt:focus{border-color:#60a5fa}button.primary{padding:12px 18px;border-radius:12px;border:0;background:linear-gradient(135deg,#60a5fa,#2563eb);color:white;font-weight:800;cursor:pointer}.stat{padding:14px;border:1px solid var(--border);border-radius:16px;background:#050816;margin-bottom:12px}.doc-pill{padding:12px;border:1px solid var(--border);border-radius:14px;background:rgba(15,23,42,.9);margin-bottom:10px;word-break:break-word}@media (max-width:1100px){.shell{grid-template-columns:1fr}.rightbar,.sidebar{position:static;height:auto}.main{height:auto;min-height:100vh}}.topbar{display:flex;justify-content:space-between;gap:12px}.badge,.topbar{align-items:center}.badge{display:inline-flex;gap:6px;font-size:12px;color:#bfdbfe;background:rgba(37,99,235,.18);border:1px solid rgba(96,165,250,.35);border-radius:999px;padding:6px 10px}.brand-title{font-size:22px;font-weight:900;letter-spacing:-.03em}.section-title{display:flex;justify-content:space-between;align-items:center;margin:24px 0 12px}.file-row{width:100%;text-align:left;border:1px solid transparent;background:transparent;color:var(--text);border-radius:12px;padding:10px;cursor:pointer;display:grid;grid-gap:3px;gap:3px}.file-row:hover{background:rgba(59,130,246,.12);border-color:rgba(96,165,250,.22)}.file-preview{max-height:360px;overflow:auto;background:#050816;border:1px solid var(--border);border-radius:14px;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;line-height:1.55;white-space:pre-wrap}.empty-state{border:1px dashed var(--border);border-radius:18px;padding:24px;color:var(--muted);background:rgba(15,23,42,.45)}.select-pill{padding:10px 12px;border-radius:999px;border:1px solid var(--border);background:#050816;color:white}.project-path{max-width:740px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ide-shell{min-height:100vh;display:grid;grid-template-columns:58px 280px minmax(0,1fr) 360px;background:var(--bg)}.activity-bar{border-right:1px solid var(--border);background:#050816;padding:14px 8px;display:grid;align-content:start;grid-gap:10px;gap:10px}.activity-btn{width:42px;height:42px;border-radius:14px;border:1px solid var(--border);background:#0d1424;color:white;cursor:pointer;font-size:18px}.activity-btn.active{background:linear-gradient(135deg,#2563eb,#1e40af);border-color:#60a5fa}.ide-sidebar{border-right:1px solid var(--border);background:rgba(13,20,36,.96);height:100vh;overflow:auto;padding:18px}.ide-main{height:100vh;grid-template-rows:auto 1fr;padding:22px;grid-gap:16px;gap:16px}.editor-surface,.ide-main{overflow:hidden;display:grid}.editor-surface{border:1px solid var(--border);border-radius:18px;background:#050816;grid-template-rows:auto 1fr}.editor-tabs{display:flex;gap:8px;padding:10px;border-bottom:1px solid var(--border);background:rgba(15,23,42,.9)}.editor-tab{padding:8px 12px;border-radius:10px;background:#111827;border:1px solid var(--border);color:#cbd5e1;font-size:13px}.editor-body{padding:22px;overflow:auto}.ide-right{border-left:1px solid var(--border);background:rgba(13,20,36,.96);height:100vh;overflow:auto;padding:18px}@media (max-width:1200px){.ide-shell{grid-template-columns:1fr}.activity-bar,.ide-right,.ide-sidebar{height:auto}}.ai-dock{display:grid;grid-gap:12px;gap:12px}.quick-actions{display:grid;grid-template-columns:1fr;grid-gap:8px;gap:8px}.quick-actions button,.select{width:100%;border:1px solid #334155;background:#0f172a;color:#e5edff;border-radius:12px;padding:10px 12px}.primary-btn{border:0;background:linear-gradient(135deg,#60a5fa,#2563eb);color:white;border-radius:14px;padding:12px 16px;font-weight:800}