.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.25rem;background:var(--bg, #1e1e1e)}.auth-card{width:100%;max-width:22rem;padding:1.5rem;border-radius:12px;border:1px solid var(--border, #3c3c3c);background:var(--surface, #252526)}.auth-title{margin:0;font-size:1.35rem;font-weight:700;color:var(--text, #d4d4d4)}.auth-sub{margin:.25rem 0 0;font-size:.8rem;color:var(--muted, #858585)}.auth-api{margin:.75rem 0 0;font-size:.72rem;color:var(--muted, #858585);word-break:break-all}.auth-api code{font-size:.7rem}.auth-tabs{display:flex;gap:.35rem;margin:1rem 0 .75rem}.auth-tab{flex:1;padding:.45rem;border-radius:6px;border:1px solid var(--border, #3c3c3c);background:transparent;color:var(--muted, #858585);font-size:.82rem}.auth-tab.is-active{background:var(--surface-elevated, #2d2d2d);color:var(--text, #d4d4d4);border-color:var(--accent, #10a37f)}.auth-form{display:flex;flex-direction:column;gap:.65rem}.auth-form label{display:flex;flex-direction:column;gap:.25rem;font-size:.78rem;color:var(--muted, #858585)}.auth-form input{padding:.5rem .55rem;border-radius:6px;border:1px solid var(--border, #3c3c3c);background:var(--bg, #1e1e1e);color:var(--text, #d4d4d4);font-size:.88rem}.auth-submit{margin-top:.35rem;padding:.55rem;border-radius:8px;border:none;background:var(--accent, #10a37f);color:#fff;font-weight:600;font-size:.88rem}.auth-submit:hover:not(:disabled){background:var(--accent-hover, #0d8f6e)}.auth-msg{margin:.75rem 0 0;font-size:.78rem;color:var(--danger, #f87171)}.auth-msg--ok{color:var(--accent, #10a37f)}.auth-footer{margin:1rem 0 0;font-size:.75rem;color:var(--muted, #858585)}.auth-footer a{color:var(--accent, #10a37f);text-decoration:none}.auth-footer a:hover{text-decoration:underline}.md21{--md21-bg: #0f172a;--md21-accent: #22c55e;--md21-text: #e5e7eb;--md21-muted: #94a3b8;--md21-card: rgba(30, 41, 59, .65);--md21-border: rgba(148, 163, 184, .2);min-height:100vh;background:var(--md21-bg);color:var(--md21-text);font-family:IBM Plex Sans,system-ui,sans-serif;line-height:1.55}.md21 a{color:var(--md21-accent);text-decoration:none}.md21 a:hover{text-decoration:underline}.md21-inner{max-width:72rem;margin:0 auto;padding:0 1.25rem}.md21-header{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1.25rem;border-bottom:1px solid var(--md21-border);background:#0f172aeb;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.md21-brand{display:flex;align-items:center;gap:.65rem;font-weight:600;font-size:1.05rem;letter-spacing:-.02em;color:var(--md21-text);text-decoration:none}.md21-brand:hover{text-decoration:none;color:var(--md21-accent)}.md21-logo{height:4.25rem;width:auto;object-fit:contain;display:block}.md21-nav{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.md21-btn{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;padding:.55rem 1rem;border-radius:.5rem;font-size:.9rem;font-weight:600;border:1px solid transparent;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .1s ease;text-decoration:none}.md21-btn:hover{text-decoration:none;transform:translateY(-1px)}.md21-btn--ghost{background:transparent;color:var(--md21-text);border-color:var(--md21-border)}.md21-btn--ghost:hover{border-color:var(--md21-accent);color:var(--md21-accent)}.md21-btn--primary{background:var(--md21-accent);color:#0f172a;border-color:var(--md21-accent)}.md21-btn--primary:hover{filter:brightness(1.06)}.md21 a.md21-btn--primary,.md21 a.md21-btn--primary:visited{color:var(--md21-bg)}.md21 a.md21-btn--primary:hover{color:var(--md21-bg);text-decoration:none}.md21 a.md21-btn--ghost{color:var(--md21-text)}.md21 a.md21-btn--ghost:hover{color:var(--md21-accent);text-decoration:none}.md21-hero{padding:3.5rem 0 3rem;display:grid;gap:2rem;align-items:center}@media(min-width:960px){.md21-hero{grid-template-columns:1fr 1fr;padding:4.5rem 0 3.5rem}}.md21-hero h1{margin:0 0 1rem;font-size:clamp(1.85rem,4vw,2.65rem);font-weight:700;letter-spacing:-.03em;line-height:1.15}.md21-hero p{margin:0 0 1.5rem;font-size:1.05rem;color:var(--md21-muted);max-width:36rem}.md21-hero-actions{display:flex;flex-wrap:wrap;gap:.75rem}.md21-hero-visual{display:flex;flex-direction:column;align-items:center;gap:1rem}.md21-hero-logo{max-width:min(100%,280px);height:auto;object-fit:contain}.md21-section{padding:3rem 0;border-top:1px solid var(--md21-border)}.md21-section h2{margin:0 0 1.25rem;font-size:1.5rem;font-weight:700;letter-spacing:-.02em}.md21-grid-2{display:grid;gap:1rem}@media(min-width:720px){.md21-grid-2{grid-template-columns:1fr 1fr}}.md21-list{margin:0;padding:0;list-style:none;display:grid;gap:.65rem}.md21-list li{padding:.65rem .85rem;background:var(--md21-card);border:1px solid var(--md21-border);border-radius:.5rem;color:var(--md21-muted)}.md21-list li strong{color:var(--md21-text)}.md21-features{display:grid;gap:.75rem}@media(min-width:640px){.md21-features{grid-template-columns:repeat(2,1fr)}}@media(min-width:960px){.md21-features{grid-template-columns:repeat(3,1fr)}}.md21-feature-card{padding:1rem 1.1rem;border-radius:.65rem;border:1px solid var(--md21-border);background:var(--md21-card);font-size:.95rem}.md21-demo{border-radius:.75rem;border:1px solid var(--md21-border);background:linear-gradient(160deg,#22c55e14,#0f172ae6);overflow:hidden;aspect-ratio:16 / 10;display:flex;align-items:center;justify-content:center;position:relative}.md21-demo img{width:100%;height:100%;object-fit:cover}.md21-demo-caption{position:absolute;bottom:0;left:0;right:0;padding:.65rem 1rem;font-size:.78rem;color:var(--md21-muted);background:linear-gradient(transparent,#0f172af2)}.md21-demo-placeholder{text-align:center;padding:2rem;color:var(--md21-muted);font-size:.9rem;max-width:22rem}.md21-table-wrap{overflow-x:auto;border-radius:.65rem;border:1px solid var(--md21-border)}.md21-table{width:100%;border-collapse:collapse;font-size:.88rem}.md21-table th,.md21-table td{padding:.75rem 1rem;text-align:left;border-bottom:1px solid var(--md21-border)}.md21-table th{background:#1e293bd9;color:var(--md21-text);font-weight:600}.md21-table tr:last-child td{border-bottom:none}.md21-table td:nth-child(n+2){text-align:center}.md21-cta{text-align:center;padding:3.25rem 1rem;border-radius:.75rem;border:1px solid var(--md21-border);background:var(--md21-card)}.md21-cta h2{margin-bottom:.75rem}.md21-cta p{margin:0 0 1.25rem;color:var(--md21-muted)}.md21-cta-actions{display:flex;flex-wrap:wrap;gap:.65rem;justify-content:center;margin-bottom:1.75rem}.md21-form{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;align-items:center;max-width:28rem;margin:0 auto 1rem}.md21-form input[type=email]{flex:1 1 12rem;min-width:10rem;padding:.55rem .75rem;border-radius:.45rem;border:1px solid var(--md21-border);background:var(--md21-bg);color:var(--md21-text);font-size:.9rem}.md21-form input:focus{outline:2px solid var(--md21-accent);outline-offset:1px}.md21-form-msg{font-size:.82rem;color:var(--md21-accent);min-height:1.25rem}.md21-footer{padding:2.5rem 0 2rem;border-top:1px solid var(--md21-border);font-size:.85rem;color:var(--md21-muted)}.md21-footer-grid{display:grid;gap:1.5rem}@media(min-width:640px){.md21-footer-grid{grid-template-columns:1fr 1fr 1fr}}.md21-footer h3{margin:0 0 .5rem;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:var(--md21-text)}.md21-footer ul{margin:0;padding:0;list-style:none;display:grid;gap:.35rem}.md21-footer a{color:var(--md21-muted)}.md21-footer a:hover{color:var(--md21-accent)}.md21-social{display:flex;flex-wrap:wrap;gap:.65rem}.md21-termos{margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--md21-border);font-size:.78rem;line-height:1.5;color:var(--md21-muted)}.md21-termos summary{cursor:pointer;color:var(--md21-text);font-weight:600;margin-bottom:.5rem}.web-lite{display:flex;flex-direction:column;min-height:100vh;max-width:42rem;margin:0 auto;width:100%;padding:0 1rem 1.25rem;box-sizing:border-box}.web-lite-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.65rem;padding:.75rem 0;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--bg);z-index:10}.web-lite-brand{display:flex;align-items:center;gap:.5rem;font-weight:600;font-size:1rem;color:var(--text);text-decoration:none}.web-lite-brand:hover{color:var(--accent)}.web-lite-logo{height:1.75rem;width:auto;object-fit:contain}.web-lite-nav{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}.web-lite-nav a{font-size:.78rem;color:var(--muted);text-decoration:none}.web-lite-nav a:hover{color:var(--accent)}.web-lite-settings{width:100%;margin-top:.5rem;padding:.65rem .75rem;border:1px solid var(--border);border-radius:8px;background:var(--surface);display:grid;gap:.55rem}.web-lite-settings-title{font-size:.8rem;font-weight:600;color:var(--muted)}.web-lite-settings label{display:flex;flex-direction:column;gap:.25rem;font-size:.75rem;color:var(--muted)}.web-lite-settings input,.web-lite-settings select{padding:.45rem .55rem;border-radius:6px;border:1px solid var(--border);background:var(--surface-elevated);color:var(--text);font-size:.82rem}.web-lite-onboarding{margin:.75rem 0 0;padding:.65rem .75rem;border-radius:8px;background:var(--surface);border:1px solid var(--border);font-size:.78rem;color:var(--muted);line-height:1.45}.web-lite-transcript{flex:1;min-height:12rem;overflow-y:auto;padding:.75rem 0;display:flex;flex-direction:column;gap:.65rem}.web-lite-row-user{display:flex;justify-content:flex-end}.web-lite-row-assistant{display:flex;justify-content:flex-start}.web-lite-bubble-user{max-width:92%;padding:.55rem .7rem;border-radius:10px 10px 4px;background:var(--user-bubble);color:var(--text);font-size:.88rem;white-space:pre-wrap;word-break:break-word}.web-lite-bubble-assistant{max-width:92%;padding:.55rem .7rem;border-radius:10px 10px 10px 4px;border:1px solid var(--border);background:var(--surface-elevated);color:var(--text);font-size:.88rem;white-space:pre-wrap;word-break:break-word}.web-lite-error{padding:.5rem .65rem;border-radius:6px;background:#f871711f;border:1px solid var(--danger);color:var(--danger);font-size:.8rem}.web-lite-toolbar{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-top:auto;padding-top:.5rem;border-top:1px solid var(--border)}.web-lite-toolbar select{padding:.4rem .5rem;border-radius:6px;border:1px solid var(--border);background:var(--surface-elevated);color:var(--text);font-size:.82rem}.web-lite-btn{padding:.45rem .75rem;border-radius:6px;border:1px solid var(--border);background:var(--surface-elevated);color:var(--text);font-size:.8rem}.web-lite-btn--primary{background:var(--accent);border-color:var(--accent);color:#fff}.web-lite-btn--primary:hover:not(:disabled){background:var(--accent-hover)}.web-lite-composer{display:flex;gap:.5rem;margin-top:.5rem;align-items:flex-end}.web-lite-composer textarea{flex:1;min-height:2.75rem;max-height:8rem;resize:vertical;padding:.55rem .65rem;border-radius:8px;border:1px solid var(--border);background:var(--composer-bg);color:var(--text);font-size:.88rem}.web-lite-typing{display:inline-flex;gap:.2rem;padding:.25rem 0}.web-lite-typing span{width:.35rem;height:.35rem;border-radius:50%;background:var(--muted);animation:web-lite-dot 1s ease-in-out infinite}.web-lite-typing span:nth-child(2){animation-delay:.15s}.web-lite-typing span:nth-child(3){animation-delay:.3s}@keyframes web-lite-dot{0%,80%,to{opacity:.35;transform:scale(.9)}40%{opacity:1;transform:scale(1)}}.md39-root{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;padding:.75rem;padding-bottom:calc(4.25rem + env(safe-area-inset-bottom,0px));background:var(--bg);color:var(--text)}.md39-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem;flex-wrap:wrap}.md39-header h1{margin:0;font-size:1.1rem;font-weight:600}.md39-header a{color:var(--accent);text-decoration:none;font-size:.9rem;min-height:44px;display:inline-flex;align-items:center}.md39-main{flex:1;min-height:0;overflow:auto}.md39-nav{position:fixed;left:0;right:0;bottom:0;display:flex;border-top:1px solid var(--border);background:var(--surface);padding-bottom:env(safe-area-inset-bottom,0px);z-index:20}.md39-nav button{flex:1;min-height:48px;border:none;background:transparent;color:var(--muted);font-size:.9rem;font-weight:500}.md39-nav button[data-active=true]{color:var(--accent);background:var(--surface-elevated)}.md39-task-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.md39-task-item{border:1px solid var(--border);border-radius:8px;padding:.65rem .75rem;background:var(--surface);text-align:left;width:100%;color:inherit;min-height:48px}.md39-task-item[data-expanded=true]{border-color:var(--accent)}.md39-task-meta{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-top:.35rem;font-size:.75rem;color:var(--muted)}.md39-badge{display:inline-block;padding:.15rem .45rem;border-radius:4px;font-size:.7rem;font-weight:600;text-transform:uppercase}.md39-badge--waiting{background:#3d3d1e;color:#fde047}.md39-badge--active{background:#1e3a5f;color:#93c5fd}.md39-badge--completed{background:#14532d;color:#86efac}.md39-badge--failed{background:#450a0a;color:#fca5a5}.md39-badge--unknown{background:var(--surface-elevated);color:var(--muted)}.md39-form{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem;padding:.75rem;border:1px solid var(--border);border-radius:8px;background:var(--surface-elevated)}.md39-form label{font-size:.8rem;color:var(--muted)}.md39-form input,.md39-form textarea{width:100%;padding:.6rem .65rem;border-radius:6px;border:1px solid var(--border);background:var(--composer-bg);color:var(--text);font-size:.9rem;min-height:44px}.md39-form textarea{min-height:72px;resize:vertical}.md39-form button[type=submit]{min-height:48px;border-radius:8px;border:none;background:var(--accent);color:#fff;font-weight:600}.md39-form button[type=submit]:hover:not(:disabled){background:var(--accent-hover)}.md39-toolbar{display:flex;gap:.5rem;margin-bottom:.75rem;flex-wrap:wrap}.md39-toolbar button{min-height:44px;padding:0 .85rem;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text)}.md39-toolbar a{min-height:44px;display:inline-flex;align-items:center;color:var(--accent);text-decoration:none;font-size:.9rem;padding:0 .35rem}.md39-detail{margin-top:.5rem;padding:.5rem;border-radius:6px;background:var(--bg);font-size:.75rem;overflow:auto;max-height:40vh;white-space:pre-wrap;word-break:break-word}.md39-chat-msgs{display:flex;flex-direction:column;gap:.5rem;margin-bottom:.75rem}.md39-chat-bubble{max-width:92%;padding:.6rem .75rem;border-radius:10px;font-size:.9rem;line-height:1.45}.md39-chat-bubble--user{align-self:flex-end;background:var(--user-bubble);border:1px solid var(--border)}.md39-chat-bubble--assistant{align-self:flex-start;background:transparent;border:1px solid var(--border)}.md39-error{color:var(--danger);font-size:.85rem;margin:.25rem 0}:root{--md12-sidebar: #1e1e1e;--md12-editor: #252526;--bg: #1e1e1e;--surface: #252526;--surface-elevated: #2d2d2d;--border: #3c3c3c;--text: #d4d4d4;--muted: #858585;--accent: #10a37f;--accent-hover: #0d8f6e;--user-bubble: #2d2d2d;--assistant-bubble: transparent;--danger: #f87171;--composer-bg: #2d2d2d;font-family:IBM Plex Sans,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text)}#root{min-height:100vh}code,textarea,input{font-family:IBM Plex Mono,ui-monospace,monospace}button{font-family:inherit;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.ide-root{display:flex;flex-direction:column;height:100vh;width:100%;background:var(--bg)}.ide-body{display:flex;flex:1;min-height:0;min-width:0}.ide-body.ide-body--panels,.ide-body.fill-panel[data-panel-group]{display:flex}.explorer-panel{width:250px;flex-shrink:0;border-right:1px solid var(--border);background:var(--md12-sidebar);display:flex;flex-direction:column;min-height:0;font-size:.8rem}.explorer-header{display:flex;align-items:center;justify-content:space-between;padding:.45rem .5rem;border-bottom:1px solid var(--border);font-weight:600;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.explorer-project-slot{padding:.35rem .5rem;border-bottom:1px solid var(--border)}.explorer-project-select{width:100%;box-sizing:border-box;background:var(--surface-elevated);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:.35rem .4rem;font-size:.75rem}.explorer-title{flex:1}.explorer-icon-btn{background:transparent;border:none;color:var(--muted);padding:.15rem .35rem;border-radius:4px;font-size:.9rem}.explorer-icon-btn:hover{color:var(--text);background:var(--surface-elevated)}.explorer-breadcrumb{padding:.35rem .5rem;border-bottom:1px solid var(--border);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.explorer-link{background:none;border:none;color:var(--accent);padding:0;font-size:.75rem;cursor:pointer;text-align:left}.explorer-link:hover{text-decoration:underline}.explorer-muted{color:var(--muted);font-size:.75rem}.explorer-pad{padding:.5rem}.explorer-error{color:var(--danger);font-size:.72rem}.explorer-list{list-style:none;margin:0;padding:.25rem 0;overflow-y:auto;flex:1;min-height:0}.explorer-item{display:block;width:100%;text-align:left;padding:.35rem .55rem;border:none;background:transparent;color:var(--text);font-size:.78rem;cursor:pointer}.explorer-item:hover{background:var(--surface-elevated)}.explorer-item.is-dir{font-weight:500}.ide-workbench{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--md12-sidebar)}.ide-editor-stack{flex:3 1 0;min-height:0;display:flex;flex-direction:column;background:var(--md12-editor);border-bottom:1px solid var(--border)}.fill-panel>.ide-editor-stack{flex:1 1 0;min-height:0;border-bottom:none}.ide-bottom-split{flex:1 1 0;min-height:11rem;display:flex;flex-direction:row;background:var(--bg)}.chat-bottom-pane{flex:1;min-width:0;display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--border);background:var(--bg)}.chat-bottom-pane-header,.terminal-bottom-pane-header{flex-shrink:0;padding:.3rem .55rem;font-size:.65rem;font-weight:600;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);border-bottom:1px solid var(--border);background:var(--surface)}.terminal-bottom-pane{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--surface)}.editor-toolbar{flex-shrink:0;display:flex;align-items:center;gap:.45rem;padding:.35rem .55rem;border-bottom:1px solid var(--border);background:var(--surface);font-size:.72rem}.editor-path{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-family:IBM Plex Mono,ui-monospace,monospace}.editor-toolbar button{background:var(--surface-elevated);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:.3rem .55rem;font-size:.72rem}.editor-toolbar button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.editor-toolbar button.primary:hover:not(:disabled){background:var(--accent-hover)}.ide-editor-stack .editor-monaco-wrap{flex:1;min-height:0}.terminal-panel{flex:1;display:flex;flex-direction:column;min-height:0;background:var(--surface)}.terminal-panel--embedded{border-top:none}.terminal-toolbar-spacer{flex:1;min-width:0}.terminal-toolbar{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:.3rem .45rem;border-bottom:1px solid var(--border);font-size:.68rem}.terminal-title{font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.terminal-stream-toggle{display:flex;align-items:center;gap:.35rem;color:var(--muted);cursor:pointer}.terminal-input-row{flex-shrink:0;display:flex;align-items:center;gap:.35rem;padding:.35rem .45rem}.terminal-cmd-input{flex:1;min-width:0;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:.35rem .5rem;font-size:.75rem}.terminal-input-row button{background:var(--surface-elevated);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:.3rem .5rem;font-size:.72rem;flex-shrink:0}.terminal-input-row button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.terminal-input-row button.primary:hover:not(:disabled){background:var(--accent-hover)}.terminal-output{flex:1;min-height:3rem;margin:0;padding:.4rem .5rem;overflow:auto;font-family:IBM Plex Mono,ui-monospace,monospace;font-size:.68rem;line-height:1.4;color:var(--text);background:#1e1e1e;white-space:pre-wrap;word-break:break-word}.patch-preview-panel{flex-shrink:0;border-top:1px solid var(--border);background:var(--surface);padding:.5rem .55rem .65rem;max-height:42vh;display:flex;flex-direction:column;gap:.4rem;min-height:0}.patch-preview-header{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;font-size:.72rem}.patch-preview-path{font-size:.68rem;color:var(--accent);word-break:break-all}.patch-preview-error{font-size:.7rem;color:var(--danger);padding:.35rem .45rem;background:#f871711a;border-radius:6px}.patch-preview-columns{display:grid;grid-template-columns:1fr 1fr;gap:.35rem;min-height:0;flex:1}.patch-preview-col{display:flex;flex-direction:column;min-height:0;min-width:0}.patch-preview-label{font-size:.65rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:.2rem}.patch-preview-pre{margin:0;padding:.35rem .4rem;font-size:.65rem;line-height:1.35;background:#1a1a1a;border:1px solid var(--border);border-radius:6px;overflow:auto;max-height:22vh;white-space:pre-wrap;word-break:break-word}.patch-preview-details{font-size:.68rem;color:var(--muted)}.patch-preview-details summary{cursor:pointer;-webkit-user-select:none;user-select:none}.patch-preview-diff{margin:.35rem 0 0;padding:.35rem;font-size:.62rem;background:#161616;border-radius:6px;overflow:auto;max-height:12vh;white-space:pre-wrap}.patch-preview-actions{display:flex;gap:.4rem;flex-wrap:wrap}.patch-preview-actions .patch-apply{background:var(--accent);color:#fff;border:none;border-radius:6px;padding:.35rem .65rem;font-size:.72rem;font-weight:600}.patch-preview-actions .patch-apply:hover:not(:disabled){background:var(--accent-hover)}.patch-preview-actions .patch-discard{background:transparent;color:var(--muted);border:1px solid var(--border);border-radius:6px;padding:.35rem .55rem;font-size:.72rem}.agent-steps-panel{flex-shrink:0;border-top:1px solid var(--border);background:var(--surface);padding:.45rem .55rem .55rem;font-size:.72rem;max-height:28vh;overflow:auto}.agent-steps-panel summary{cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:600;color:var(--muted)}.agent-steps-list{margin:.4rem 0 0;padding-left:1.1rem;list-style:disc}.agent-steps-list li{margin-bottom:.35rem;line-height:1.35}.agent-step-kind{font-size:.65rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-right:.25rem}.agent-step-ok .agent-step-status{color:var(--accent)}.agent-step-fail .agent-step-status{color:var(--danger)}.agent-step-output{margin:.25rem 0 0;padding:.3rem .4rem;font-size:.62rem;background:#1a1a1a;border-radius:4px;overflow:auto;max-height:6rem;white-space:pre-wrap;word-break:break-word}.chat-shell{display:flex;flex-direction:column;height:100vh;max-width:48rem;margin:0 auto;background:var(--bg)}.chat-transcript{flex:1;min-height:0;overflow-y:auto;padding:1rem 1rem .5rem;scroll-behavior:smooth}.chat-bottom-pane .chat-transcript{padding:.45rem .5rem .35rem}.chat-bottom-pane .chat-row-user,.chat-bottom-pane .chat-row-assistant{margin-bottom:.6rem}.chat-bottom-pane .chat-bubble-user,.chat-bottom-pane .chat-bubble-assistant{font-size:.8125rem;line-height:1.45}.chat-bottom-pane .chat-bubble-user{padding:.5rem .65rem}.chat-bottom-pane .patch-preview-panel{max-height:28vh}.chat-bottom-pane .patch-preview-columns{max-height:14vh}.chat-bottom-pane .patch-preview-pre{max-height:9vh}.chat-bottom-pane .agent-steps-panel{max-height:12vh}.chat-row-user{display:flex;justify-content:flex-end;margin-bottom:1.25rem}.chat-row-assistant{display:flex;justify-content:flex-start;gap:.75rem;margin-bottom:1.25rem;align-items:flex-start}.chat-avatar{flex-shrink:0;width:2rem;height:2rem;border-radius:4px;background:var(--accent);display:flex;align-items:center;justify-content:center;font-size:.65rem;font-weight:700;color:#fff}.chat-bubble-user{max-width:min(100%,85%);padding:.75rem 1rem;border-radius:1.125rem;background:var(--user-bubble);border:1px solid var(--border);font-size:.9375rem;line-height:1.55;white-space:pre-wrap;box-shadow:0 1px 2px #0003}.chat-bubble-assistant{flex:1;min-width:0;padding:.15rem 0 0;font-size:.9375rem;line-height:1.55;white-space:pre-wrap;color:var(--text)}.chat-composer-wrap{flex-shrink:0;padding:.75rem 1rem 1.25rem;border-top:1px solid var(--border);background:var(--bg)}.chat-composer-inner{display:flex;align-items:flex-end;gap:.5rem;max-width:100%;margin:0 auto;padding:.5rem .65rem;border-radius:1.5rem;border:1px solid var(--border);background:var(--composer-bg);box-shadow:0 0 0 1px #00000026}.chat-composer-inner textarea{flex:1;border:none;background:transparent;color:var(--text);font-size:.9375rem;line-height:1.45;resize:none;min-height:2.5rem;max-height:200px;padding:.35rem .25rem;outline:none}.chat-composer-inner button[type=submit]{flex-shrink:0;width:2.25rem;height:2.25rem;border-radius:50%;border:none;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1rem;line-height:1;transition:background .15s ease}.chat-composer-inner button[type=submit]:hover:not(:disabled){background:var(--accent-hover)}.chat-composer-wrap.chat-composer-wrap--md12{padding:.4rem .45rem .5rem;background:var(--surface)}.chat-composer-inner.chat-composer-inner--md12{padding:.35rem .5rem;border-radius:8px}.chat-composer-inner.chat-composer-inner--md12 textarea{font-size:.8125rem;min-height:2rem;max-height:120px}.chat-typing{display:inline-flex;gap:5px;padding:.5rem 0;align-items:center}.chat-typing span{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:chat-dot 1.3s infinite ease-in-out both}.chat-typing span:nth-child(2){animation-delay:.15s}.chat-typing span:nth-child(3){animation-delay:.3s}@keyframes chat-dot{0%,80%,to{transform:translateY(0);opacity:.35}40%{transform:translateY(-4px);opacity:1}}.ide-root[data-theme=light]{--md12-sidebar: #ececec;--md12-editor: #ffffff;--bg: #f3f3f3;--surface: #ffffff;--surface-elevated: #e8e8e8;--border: #c8c8c8;--text: #1e1e1e;--muted: #5c5c5c;--accent: #0e639c;--accent-hover: #1177bb;--user-bubble: #e4e4e4;--composer-bg: #fafafa;--danger: #b91c1c}.ide-root[data-theme=light] .terminal-output{background:#f6f6f6}.ide-root[data-theme=light] .patch-preview-pre,.ide-root[data-theme=light] .agent-step-output{background:#f0f0f0}.fill-panel{height:100%;min-height:0;display:flex;flex-direction:column}.resize-handle-v{width:5px;background:var(--border);cursor:col-resize;flex-shrink:0;transition:background .12s ease}.resize-handle-v:hover,.resize-handle-v[data-resize-handle-active]{background:var(--accent)}.resize-handle-h{height:5px;background:var(--border);cursor:row-resize;flex-shrink:0;transition:background .12s ease}.resize-handle-h:hover,.resize-handle-h[data-resize-handle-active]{background:var(--accent)}.ide-progress-track{height:0;overflow:hidden;flex-shrink:0;transition:height .15s ease}.ide-progress-track.is-active{height:3px;background:var(--border)}.ide-progress-indeterminate{height:100%;width:35%;background:var(--accent);animation:md19-progress 1.05s ease-in-out infinite}@keyframes md19-progress{0%{transform:translate(-120%)}to{transform:translate(320%)}}.ide-status-bar{flex-shrink:0;display:flex;align-items:center;gap:.65rem;padding:.25rem .75rem;font-size:.68rem;color:var(--muted);background:var(--surface);border-top:1px solid var(--border)}.kbd{font-family:IBM Plex Mono,ui-monospace,monospace;font-size:.62rem;padding:.08rem .32rem;border:1px solid var(--border);border-radius:4px;background:var(--surface-elevated);color:var(--text)}.toast-stack{position:fixed;bottom:1rem;right:1rem;z-index:9998;display:flex;flex-direction:column;gap:.45rem;max-width:min(22rem,94vw);pointer-events:none}.toast-stack .toast{pointer-events:auto}.toast{display:flex;gap:.45rem;align-items:flex-start;padding:.55rem .65rem;border-radius:8px;box-shadow:0 4px 20px #00000040;font-size:.78rem;line-height:1.35}.toast--success{background:#10a37f2e;border:1px solid var(--accent);color:var(--text)}.toast--error{background:#f8717124;border:1px solid var(--danger);color:var(--text)}.toast--info{background:#0e639c24;border:1px solid var(--accent);color:var(--text)}.toast-body{flex:1;min-width:0}.toast-message{margin:0}.toast-details{margin-top:.35rem;font-size:.7rem;color:var(--muted)}.toast-detail-pre{margin:.35rem 0 0;padding:.35rem;font-size:.62rem;background:var(--bg);border-radius:4px;overflow:auto;max-height:6rem;white-space:pre-wrap;word-break:break-word}.toast-close{flex-shrink:0;background:transparent;border:none;color:var(--muted);font-size:1.1rem;line-height:1;padding:0 .15rem;cursor:pointer}.toast-close:hover{color:var(--text)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10000;background:#00000080;display:flex;align-items:flex-start;justify-content:center;padding:8vh 1rem 2rem}.modal-backdrop--onboard{align-items:center;padding:2rem 1rem}.modal-sheet{background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 16px 48px #00000059}.modal-sheet--quickopen{width:min(34rem,96vw);max-height:72vh;display:flex;flex-direction:column;overflow:hidden}.modal-quickopen-head{display:flex;align-items:center;gap:.5rem;padding:.65rem .75rem;border-bottom:1px solid var(--border)}.modal-kbd{font-size:.65rem;color:var(--muted);font-family:IBM Plex Mono,ui-monospace,monospace}.modal-quickopen-input{flex:1;min-width:0;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:.45rem .55rem;font-size:.85rem}.modal-quickopen-err{margin:0;padding:.35rem .75rem;font-size:.72rem;color:var(--danger)}.modal-quickopen-muted{margin:0;padding:.35rem .75rem;font-size:.72rem;color:var(--muted)}.modal-quickopen-list{list-style:none;margin:0;padding:.25rem 0;overflow-y:auto;flex:1;min-height:0}.modal-quickopen-item{display:block;width:100%;text-align:left;padding:.4rem .75rem;border:none;background:transparent;color:var(--text);font-size:.78rem;font-family:IBM Plex Mono,ui-monospace,monospace;cursor:pointer}.modal-quickopen-item:hover{background:var(--surface-elevated)}.modal-quickopen-hint{margin:0;padding:.4rem .75rem;font-size:.65rem;color:var(--muted);border-top:1px solid var(--border)}.modal-sheet--onboard{width:min(26rem,94vw);padding:1.25rem 1.35rem 1.4rem}.modal-onboard-title{margin:0 0 .5rem;font-size:1.25rem;font-weight:600}.modal-onboard-lead{margin:0 0 1rem;font-size:.82rem;line-height:1.5;color:var(--muted)}.modal-onboard-steps{margin:0 0 1.15rem;padding-left:1.2rem;font-size:.8rem;line-height:1.55}.modal-onboard-steps li{margin-bottom:.65rem}.modal-onboard-linkbtn{margin-left:.35rem;background:transparent;border:none;color:var(--accent);text-decoration:underline;cursor:pointer;font-size:inherit;padding:0}.modal-onboard-ok{color:var(--accent);font-weight:600}.modal-onboard-fail{color:var(--danger);font-weight:600}.modal-onboard-actions{display:flex;flex-wrap:wrap;gap:.5rem}.modal-onboard-primary{background:var(--accent);color:#fff;border:none;border-radius:8px;padding:.45rem .9rem;font-size:.82rem;font-weight:600;cursor:pointer}.modal-onboard-primary:hover{background:var(--accent-hover)}.modal-onboard-secondary{background:transparent;color:var(--muted);border:1px solid var(--border);border-radius:8px;padding:.45rem .75rem;font-size:.78rem;cursor:pointer}
