*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #f8f8f8;--surface: #ffffff;--surface-alt: #f0f0f0;--border: #dddddd;--border-subtle: #eeeeee;--text: #1a1a1a;--text-muted: #666666;--text-faint: #aaaaaa;--accent: #1a1a1a;--accent-hover: #333333;--accent-text: #ffffff}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text)}.terminal-page{min-height:100vh;background:#000;font-family:Courier New,Courier,monospace;padding:3rem 2.5rem 8rem;cursor:text}.terminal-body{max-width:680px;line-height:1.85}.t-line{display:flex;align-items:baseline;flex-wrap:wrap}.t-path{color:#666;font-size:.88rem}.t-arrow{color:#444;font-size:.88rem;-webkit-user-select:none;user-select:none}.t-label{color:#999;font-size:.88rem}.t-val{color:#e5e5e5;font-size:.88rem}.t-msg{font-size:.82rem;line-height:1.85}.t-msg--dim{color:#3a3a3a}.t-msg--hint{color:#555}.t-msg--error{color:#f87171}.t-msg--success{color:#86efac}.t-input{background:transparent;border:none;outline:none;color:#e5e5e5;font-family:inherit;font-size:.88rem;caret-color:#e5e5e5;flex:1;min-width:4ch;padding:0}.t-input--hidden{position:absolute;opacity:0;width:0;height:0}.t-options{padding:.15rem 0 .6rem}.t-option{display:flex;align-items:center;gap:.6rem;font-size:.85rem;line-height:1.9;cursor:pointer;-webkit-user-select:none;user-select:none;font-family:Courier New,Courier,monospace}.t-opt-marker{color:#555;width:1ch;flex-shrink:0}.t-opt-dot{font-size:.7rem;flex-shrink:0}.t-opt-name{color:#888}.t-opt-desc{color:#444;font-size:.78rem}.t-option--active .t-opt-marker,.t-option--active .t-opt-name{color:#e5e5e5}.t-option--active .t-opt-desc{color:#888}.home{max-width:960px;margin:0 auto;padding:2rem 1.5rem}.home-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:2rem}.home-header h1{font-size:1.5rem;font-weight:600}.household-name{color:var(--text-muted);font-size:.875rem;margin-top:.2rem}.header-actions{display:flex;gap:.75rem;align-items:center}.add-app-btn{background:var(--accent);color:var(--accent-text);border:none;border-radius:8px;padding:.5rem 1rem;font-size:.9rem;cursor:pointer}.add-app-btn:hover{background:var(--accent-hover)}.logout-btn{background:none;border:1px solid var(--border);border-radius:8px;padding:.5rem 1rem;font-size:.9rem;cursor:pointer;color:var(--text-muted)}.logout-btn:hover{background:var(--surface-alt)}.empty-state{color:var(--text-muted);font-size:.95rem}.settings-link{font-size:.9rem;color:var(--text-muted);text-decoration:none;padding:.5rem 1rem;border:1px solid var(--border);border-radius:8px}.settings-link:hover{background:var(--surface-alt)}.settings-page{max-width:640px;margin:0 auto;padding:2rem 1.5rem}.settings-header{display:flex;align-items:center;gap:1rem;margin-bottom:2rem}.settings-header h1{font-size:1.4rem;font-weight:600}.back-btn{background:none;border:none;font-size:.95rem;cursor:pointer;color:var(--text-muted);padding:0}.settings-section{margin-bottom:2.5rem}.settings-section h2{font-size:1rem;font-weight:600;margin-bottom:.5rem}.settings-label{font-size:.875rem;color:var(--text-muted);margin-bottom:.75rem}.invite-row{display:flex;align-items:center;gap:.75rem}.invite-code{background:var(--surface-alt);padding:.4rem .75rem;border-radius:6px;font-size:.95rem;letter-spacing:.05em}.copy-btn{background:none;border:1px solid var(--border);border-radius:6px;padding:.35rem .75rem;font-size:.875rem;cursor:pointer;color:var(--text-muted)}.copy-btn:hover{background:var(--surface-alt)}.key-list{list-style:none;margin-bottom:1.25rem;border:1px solid var(--border);border-radius:8px;overflow:hidden}.key-row{display:flex;align-items:center;gap:1rem;padding:.75rem 1rem;font-size:.9rem;border-bottom:1px solid var(--border-subtle)}.key-row:last-child{border-bottom:none}.key-provider{font-weight:500;text-transform:capitalize}.key-hint{color:var(--text-muted);font-family:monospace}.key-date{color:var(--text-faint);font-size:.8rem;margin-left:auto}.revoke-btn{background:none;border:none;color:#c0392b;font-size:.875rem;cursor:pointer;padding:0}.revoke-btn:hover{text-decoration:underline}.add-key-form{display:flex;flex-direction:column;gap:.5rem}.add-key-form select,.add-key-form input{padding:.55rem .75rem;border:1px solid var(--border);border-radius:8px;font-size:.95rem;outline:none;background:var(--surface);color:var(--text)}.add-key-form select:focus,.add-key-form input:focus{border-color:var(--accent)}.add-key-form button[type=submit]{background:var(--accent);color:var(--accent-text);border:none;border-radius:8px;padding:.6rem;font-size:.95rem;cursor:pointer}.add-key-form button[type=submit]:hover{background:var(--accent-hover)}.add-key-form button[type=submit]:disabled{opacity:.6;cursor:default}.chat-page{display:flex;flex-direction:column;height:100vh;max-width:720px;margin:0 auto}.chat-header{display:flex;align-items:center;gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid var(--border-subtle);flex-shrink:0}.chat-header h1{font-size:1.1rem;font-weight:600}.chat-messages{flex:1;overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:.75rem}.chat-empty{color:var(--text-muted);font-size:.95rem;text-align:center;margin-top:2rem}.chat-bubble{max-width:80%;padding:.65rem 1rem;border-radius:12px;font-size:.95rem;line-height:1.5;white-space:pre-wrap}.chat-bubble.user{background:var(--accent);color:var(--accent-text);align-self:flex-end;border-bottom-right-radius:4px}.chat-bubble.assistant{background:var(--surface-alt);color:var(--text);align-self:flex-start;border-bottom-left-radius:4px}.typing-indicator{display:inline-flex;gap:4px;align-items:center;height:1.2em}.typing-indicator span{width:6px;height:6px;background:var(--text-muted);border-radius:50%;animation:bounce 1.2s infinite}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}.tool-activity{font-size:.8rem;color:var(--text-faint);font-style:italic}@keyframes bounce{0%,80%,to{transform:translateY(0)}40%{transform:translateY(-5px)}}.chat-error{color:#c0392b;font-size:.875rem;text-align:center}.chat-input-row{display:flex;gap:.5rem;padding:1rem 1.5rem;border-top:1px solid var(--border-subtle);flex-shrink:0}.chat-input-row input{flex:1;padding:.6rem .9rem;border:1px solid var(--border);border-radius:8px;font-size:.95rem;outline:none;background:var(--surface);color:var(--text)}.chat-input-row input:focus{border-color:var(--accent)}.chat-input-row button{background:var(--accent);color:var(--accent-text);border:none;border-radius:8px;padding:.6rem 1.1rem;font-size:.95rem;cursor:pointer}.chat-input-row button:hover{background:var(--accent-hover)}.chat-input-row button:disabled{opacity:.5;cursor:default}.app-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.25rem;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:.4rem;transition:border-color .15s,box-shadow .15s}.app-card:hover{border-color:var(--accent);box-shadow:0 2px 8px #0000000f}.app-card-name{font-size:.95rem;font-weight:600;color:var(--text)}.app-card-desc{font-size:.8rem;color:var(--text-muted);line-height:1.4}.app-card-wrapper{position:relative}.app-card-wrapper .app-card{width:100%}.card-actions{position:absolute;top:.5rem;right:.5rem;display:flex;gap:.2rem;opacity:0;transition:opacity .15s}.app-card-wrapper:hover .card-actions{opacity:1}.card-action-btn{width:1.5rem;height:1.5rem;border-radius:50%;border:none;background:transparent;color:var(--text-faint);font-size:1rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}.card-action-btn:hover{background:var(--surface-alt);color:var(--text)}.card-action-delete:hover{background:#fee2e2;color:#ef4444}.card-confirm{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:var(--surface-alt);border:1px solid var(--border);border-radius:8px;font-size:.8rem;color:var(--text);margin-top:.25rem;flex-wrap:wrap}.confirm-yes{padding:.25rem .6rem;border-radius:6px;border:1px solid transparent;background:var(--accent);color:var(--accent-text);font-size:.78rem;cursor:pointer}.confirm-no{padding:.25rem .6rem;border-radius:6px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:.78rem;cursor:pointer}.chat-input-area{flex-shrink:0;border-top:1px solid var(--border-subtle)}.quick-replies{display:flex;justify-content:flex-end;gap:.5rem;padding:.4rem 1.5rem .25rem}.quick-reply{border-radius:18px;padding:.4rem 1rem;font-size:.85rem;cursor:pointer;white-space:nowrap;border:1px solid var(--border)}.quick-reply--confirm{background:var(--accent);color:var(--accent-text);border-color:var(--accent)}.quick-reply--confirm:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.quick-reply--revise{background:var(--surface);color:var(--text)}.quick-reply--revise:hover{background:var(--surface-alt)}.build-log{background:var(--surface-alt);border:1px solid var(--border);border-radius:8px;padding:1rem 1.25rem;margin:0 1.5rem;font-family:Courier New,Courier,monospace;font-size:.82rem;display:flex;flex-direction:column;gap:.3rem}.build-log-line{line-height:1.6}.build-log-line--dim{color:var(--text-muted)}.build-log-line--success{color:#16a34a}.build-log-line--error{color:#c0392b}.build-log-line--warn{color:#d97706}.view-app-btn{margin-top:.5rem;background:var(--accent);color:var(--accent-text);border:none;border-radius:8px;padding:.55rem 1rem;font-size:.9rem;cursor:pointer;align-self:flex-start}.view-app-btn:hover{background:var(--accent-hover)}.home-body{display:flex;gap:1.5rem;align-items:flex-start}.home-grid{flex:1;min-width:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem;padding-top:.5rem}.roberto-panel{width:268px;flex-shrink:0;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.25rem;position:sticky;top:1.5rem}.roberto-bubble{display:flex;gap:.75rem;margin-bottom:1rem}.roberto-avatar{width:2rem;height:2rem;border-radius:50%;background:var(--accent);color:var(--accent-text);display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;flex-shrink:0;margin-top:.1rem}.roberto-speech h3{font-size:.88rem;font-weight:600;margin-bottom:.35rem;color:var(--text)}.roberto-speech p{font-size:.82rem;color:var(--text-muted);line-height:1.55}.roberto-dots{display:flex;gap:.3rem;margin:.85rem 0}.roberto-dot{width:5px;height:5px;border-radius:50%;background:var(--border);transition:background .2s}.roberto-dot.active{background:var(--accent)}.roberto-actions{display:flex;flex-direction:column;gap:.4rem}.roberto-next-btn{background:var(--accent);color:var(--accent-text);border:none;border-radius:8px;padding:.5rem .9rem;font-size:.85rem;cursor:pointer;width:100%;text-align:center}.roberto-next-btn:hover{background:var(--accent-hover)}.roberto-prev-btn{background:none;border:1px solid var(--border);border-radius:8px;padding:.5rem .9rem;font-size:.85rem;cursor:pointer;color:var(--text-muted);width:100%;text-align:center}.roberto-prev-btn:hover{background:var(--surface-alt)}.roberto-dismiss{background:none;border:none;color:var(--text-faint);font-size:.78rem;cursor:pointer;padding:.2rem 0;width:100%;text-align:center}.roberto-dismiss:hover{color:var(--text-muted)}.roberto-fab{position:fixed;bottom:1.5rem;right:1.5rem;width:3rem;height:3rem;border-radius:50%;background:var(--accent);color:var(--accent-text);border:none;font-size:.95rem;font-weight:700;cursor:pointer;box-shadow:0 4px 14px #0000002e;display:none;align-items:center;justify-content:center;z-index:100}.roberto-fab:hover{background:var(--accent-hover)}.roberto-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;z-index:200;display:flex;align-items:flex-end}.roberto-sheet{background:var(--surface);width:100%;border-radius:16px 16px 0 0;padding:1.5rem;max-height:70vh;overflow-y:auto}@media(max-width:768px){.roberto-panel{display:none}.roberto-fab{display:flex}.home-body{display:block}}.onboarding-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;background:var(--bg)}.onboarding-card{max-width:480px;width:100%;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:2.5rem}.onboarding-steps{display:flex;gap:.4rem;margin-bottom:2rem}.onboarding-step-dot{height:3px;flex:1;border-radius:2px;background:var(--border);transition:background .2s}.onboarding-step-dot.active{background:var(--accent)}.onboarding-step-dot.done{background:var(--accent);opacity:.35}.onboarding-section{display:flex;flex-direction:column;gap:1rem}.onboarding-section h1{font-size:1.5rem;font-weight:600}.onboarding-section h2{font-size:1.25rem;font-weight:600}.onboarding-sub{color:var(--text-muted);font-size:.9rem;line-height:1.6}.onboarding-btn{background:var(--accent);color:var(--accent-text);border:none;border-radius:8px;padding:.65rem 1.25rem;font-size:.95rem;cursor:pointer;align-self:flex-start}.onboarding-btn:hover{background:var(--accent-hover)}.onboarding-btn:disabled{opacity:.6;cursor:default}.onboarding-skip{background:none;border:none;color:var(--text-faint);font-size:.85rem;cursor:pointer;padding:0;align-self:flex-start}.onboarding-skip:hover{color:var(--text-muted)}.onboarding-form{display:flex;flex-direction:column;gap:.5rem}.onboarding-form select,.onboarding-form input{padding:.55rem .75rem;border:1px solid var(--border);border-radius:8px;font-size:.95rem;outline:none;background:var(--surface);color:var(--text)}.onboarding-form select:focus,.onboarding-form input:focus{border-color:var(--accent)}.onboarding-error{color:#c0392b;font-size:.85rem}.onboarding-success{color:#16a34a;font-size:.9rem;font-weight:500}.onboarding-invite-row{display:flex;align-items:center;gap:.75rem}.onboarding-invite-code{background:var(--surface-alt);padding:.4rem .75rem;border-radius:6px;font-size:1rem;letter-spacing:.06em;font-family:monospace}.onboarding-copy-btn{background:none;border:1px solid var(--border);border-radius:6px;padding:.35rem .75rem;font-size:.875rem;cursor:pointer;color:var(--text-muted)}.onboarding-copy-btn:hover{background:var(--surface-alt)}.onboarding-actions{display:flex;flex-direction:column;gap:.75rem}.app-view{display:flex;flex-direction:column;height:100vh}.app-view-bar{display:flex;align-items:center;gap:.75rem;padding:.6rem 1rem;border-bottom:1px solid var(--border-subtle);flex-shrink:0;background:var(--surface)}.edit-app-btn{margin-left:auto;padding:.3rem .8rem;border-radius:6px;border:1px solid var(--border);background:var(--surface);color:var(--text-muted);font-size:.82rem;cursor:pointer;transition:border-color .15s,color .15s}.edit-app-btn:hover{border-color:var(--accent);color:var(--accent)}.app-view-frame{flex:1;border:none;width:100%}
