:root{--bg: #fafafa;--surface: #ffffff;--border: #e3e3e3;--text: #1a1a1a;--text-muted: #666;--accent: #2b6cb0;--accent-hover: #2c5282;--danger: #c53030;--danger-hover: #9b2c2c;--radius: 6px;--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;min-height:100vh}body{background:var(--bg);color:var(--text);font-family:var(--font);font-size:14px;line-height:1.5}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button{font-family:inherit;font-size:14px;padding:6px 12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);cursor:pointer}button:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}button:disabled{opacity:.6;cursor:not-allowed}button.danger{color:var(--danger)}button.danger:hover:not(:disabled){border-color:var(--danger);color:var(--danger-hover)}button.secondary{background:transparent}button.link-button{background:none;border:none;color:var(--accent);padding:0;cursor:pointer}button.link-button:hover{text-decoration:underline}input[type=text],input[type=email],input[type=password],textarea{font-family:inherit;font-size:14px;padding:8px 10px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);width:100%}textarea{resize:vertical;min-height:80px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}input:focus,textarea:focus{outline:none;border-color:var(--accent)}.app-shell{display:flex;flex-direction:column;min-height:100vh}.app-main{flex:1;padding:24px;max-width:800px;width:100%;margin:0 auto}.boot-shell{display:flex;align-items:center;justify-content:center;min-height:100vh}.nav-bar{display:flex;justify-content:space-between;align-items:center;padding:12px 24px;background:var(--surface);border-bottom:1px solid var(--border)}.nav-brand a{font-weight:600;color:var(--text)}.nav-links{display:flex;align-items:center;gap:16px}.nav-user{color:var(--text-muted);font-size:13px}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.page-header h1{margin:0;font-size:22px}.page-header-actions{display:flex;gap:8px}.page-error{background:#fee;color:var(--danger);padding:10px 14px;border-radius:var(--radius);margin-bottom:16px}.empty-state{color:var(--text-muted);text-align:center;padding:32px}.auth-page{display:flex;justify-content:center;align-items:flex-start;padding-top:60px}.auth-form{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;width:100%;max-width:360px;display:flex;flex-direction:column;gap:14px}.auth-form h1{margin:0 0 6px;font-size:20px}.auth-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--text-muted)}.auth-alt{color:var(--text-muted);font-size:13px;margin:0;text-align:center}.form-error{background:#fee;color:var(--danger);padding:8px 10px;border-radius:var(--radius);font-size:13px}.note-create{margin-bottom:24px}.note-form{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:10px}.note-form-title{font-size:16px;font-weight:500}.note-form-body{min-height:160px}.note-form-actions{display:flex;gap:8px;justify-content:flex-end}.notes-list{display:flex;flex-direction:column;gap:12px}.note-row{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px}.note-row-editing{padding:0;border:none;background:transparent}.note-row-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:6px}.note-row-title{margin:0;font-size:16px}.note-row-actions{display:flex;gap:6px}.note-row-actions button{padding:4px 10px;font-size:13px}.note-row-preview{white-space:pre-wrap;color:var(--text-muted);margin:6px 0;font-size:13px}.note-row-tags{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}.tag-chip{background:#eef2f7;color:var(--text-muted);font-size:12px;padding:2px 8px;border-radius:999px}.note-row-meta{font-size:12px;color:var(--text-muted);margin-top:4px}.back-link{font-size:13px}.note-detail h1{margin:12px 0;font-size:22px}.note-detail-body{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}.chat-page{display:flex;flex-direction:row;height:calc(100vh - 110px);gap:0;margin:-24px}.chat-sidebar{width:220px;flex-shrink:0;border-right:1px solid var(--border);display:flex;flex-direction:column;overflow:hidden;background:var(--surface)}.chat-sidebar-header{padding:12px;border-bottom:1px solid var(--border);flex-shrink:0}.chat-sidebar-header button{width:100%}.chat-sidebar-spinner{padding:16px;display:flex;justify-content:center}.chat-sidebar-empty{color:var(--text-muted);font-size:13px;text-align:center;padding:16px;margin:0}.chat-conv-list{list-style:none;margin:0;padding:0;overflow-y:auto;flex:1}.chat-conv-item{padding:10px 12px;cursor:pointer;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:2px}.chat-conv-item:hover{background:var(--bg)}.chat-conv-item.active{background:#eef2f7}.chat-conv-title{font-size:13px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-conv-date{font-size:11px;color:var(--text-muted)}.chat-main{flex:1;display:flex;flex-direction:column;min-width:0;padding:16px}.chat-thread{flex:1;overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:12px}.chat-message{display:flex;flex-direction:column;gap:4px;max-width:85%}.chat-message-user{align-self:flex-end;align-items:flex-end}.chat-message-assistant{align-self:flex-start;align-items:flex-start}.chat-message-role{font-size:11px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.chat-message-body{background:#f0f4f8;padding:8px 12px;border-radius:var(--radius);white-space:pre-wrap;word-wrap:break-word}.chat-message-user .chat-message-body{background:var(--accent);color:#fff}.chat-input{display:flex;gap:8px;margin-top:12px}.chat-input textarea{flex:1;min-height:50px}.chat-input button{align-self:flex-end;padding:10px 20px}.spinner{display:inline-flex;align-items:center;gap:6px}.spinner-dot{width:6px;height:6px;border-radius:50%;background:var(--text-muted);animation:spinner-bounce 1.2s infinite ease-in-out both}.spinner-dot:nth-child(1){animation-delay:-.32s}.spinner-dot:nth-child(2){animation-delay:-.16s}.spinner-label{color:var(--text-muted);font-size:13px;margin-left:4px}@keyframes spinner-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.voice-page{display:flex;flex-direction:column;align-items:center;gap:24px;padding:32px 16px;max-width:720px;margin:0 auto;width:100%}.voice-stage{display:flex;flex-direction:column;align-items:center;gap:16px}.voice-button{width:140px;height:140px;border-radius:50%;border:2px solid var(--border);background:var(--surface);color:var(--accent);font-size:48px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease}.voice-button:hover{border-color:var(--accent)}.voice-button:active{transform:scale(.97)}.voice-button-icon{line-height:1}.voice-button-active{border-color:var(--danger);color:var(--danger);animation:voice-pulse 1.6s infinite ease-in-out}@keyframes voice-pulse{0%,to{box-shadow:0 0 #c5303066}50%{box-shadow:0 0 0 18px #c5303000}}.voice-status{font-size:16px;color:var(--text-muted);letter-spacing:.02em}.voice-status-listening,.voice-status-error{color:var(--danger)}.voice-error{color:var(--danger);font-size:13px;text-align:center;max-width:480px}.voice-transcript{width:100%;max-height:50vh;overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:10px}.voice-transcript-empty{color:var(--text-muted);text-align:center;margin:8px 0;font-size:14px}.voice-line{display:flex;flex-direction:column;gap:2px;padding:8px 12px;border-radius:var(--radius)}.voice-line-user{background:#f0f4f8}.voice-line-assistant{background:#f9f5ef}.voice-line-role{font-size:11px;text-transform:uppercase;color:var(--text-muted);letter-spacing:.05em}.voice-line-text{font-size:15px;line-height:1.4;color:var(--text);white-space:pre-wrap}.voice-tool{font-size:12px;color:var(--text-muted);font-style:italic;padding:4px 12px}.voice-tool-completed{color:#2f855a}.voice-tool-failed{color:var(--danger)}
