:root {
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-hover: #f1f3f5;
  --bg-input: #ffffff;
  --border: #e2e5e9;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --primary: #4285F4;
  --primary-hover: #3367d6;
  --primary-light: rgba(66,133,244,0.1);
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --user-bg: #4285F4;
  --user-text: #ffffff;
  --assistant-bg: #f1f3f5;
  --assistant-text: #1a1a2e;
  --code-bg: #1e1e2e;
  --code-text: #cdd6f4;
  --scrollbar-thumb: #c1c5ca;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --sidebar-width: 300px;
  --topbar-height: 52px;
  --transition: 150ms ease;
}

[data-theme="dark"] {
  --bg: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #1a1a2e;
  --bg-hover: #252540;
  --bg-input: #1e1e32;
  --border: #2a2a40;
  --text: #e2e5e9;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --user-bg: #4285F4;
  --user-text: #ffffff;
  --assistant-bg: #252540;
  --assistant-text: #e2e5e9;
  --code-bg: #0d0d17;
  --scrollbar-thumb: #3a3a55;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

/* Auth Screen */
.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 40px 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 14px;
}

.auth-form .form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.auth-error {
  padding: 10px 14px;
  background: rgba(239,68,68,0.1);
  color: var(--danger);
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: var(--bg-hover);
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 10px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* App Layout */
.app {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  font-size: 15px;
  font-weight: 600;
}

.sidebar-actions {
  display: flex;
  gap: 4px;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.sidebar-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 13px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.sidebar-footer {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 4px;
}

/* Projects List */
.project-item {
  margin-bottom: 4px;
}

.project-header {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  gap: 8px;
}

.project-header:hover {
  background: var(--bg-hover);
}

.project-header.active {
  background: var(--primary-light);
}

.project-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.project-info {
  flex: 1;
  min-width: 0;
}

.project-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-path {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-header:hover .project-actions {
  opacity: 1;
}

.project-actions .btn-icon {
  width: 26px;
  height: 26px;
}

.project-chevron {
  transition: transform var(--transition);
  color: var(--text-muted);
}

.project-chevron.open {
  transform: rotate(90deg);
}

/* Sessions */
.sessions-list {
  padding-left: 20px;
  margin-bottom: 4px;
}

.session-item {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  gap: 8px;
}

.session-item:hover {
  background: var(--bg-hover);
}

.session-item.active {
  background: var(--primary-light);
}

.session-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.session-info {
  flex: 1;
  min-width: 0;
}

.session-summary {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-meta {
  font-size: 10px;
  color: var(--text-muted);
}

.session-delete {
  opacity: 0;
  transition: opacity var(--transition);
}

.session-item:hover .session-delete {
  opacity: 1;
}

.new-session-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  margin: 4px 0;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  width: 100%;
  transition: all var(--transition);
}

.new-session-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.load-more-btn {
  display: block;
  width: 100%;
  padding: 6px;
  margin-top: 4px;
  border: none;
  background: none;
  color: var(--primary);
  font-size: 11px;
  cursor: pointer;
}

.load-more-btn:hover {
  text-decoration: underline;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

/* Topbar */
.topbar {
  height: var(--topbar-height);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  background: var(--bg-card);
  flex-shrink: 0;
}

.topbar-info {
  flex: 1;
  min-width: 0;
}

.topbar-project {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.topbar-session {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.topbar-tabs {
  display: flex;
  gap: 2px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius);
  background: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.tab-btn.active {
  background: var(--primary-light);
  color: var(--primary);
}

.topbar-actions {
  display: flex;
  gap: 4px;
}

/* Tab Content */
.tab-content {
  display: none;
  flex: 1;
  overflow: hidden;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
}

.tab-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Welcome Screen */
.welcome-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-content {
  text-align: center;
  max-width: 400px;
  padding: 20px;
}

.welcome-content h2 {
  margin: 16px 0 8px;
  font-size: 22px;
}

.welcome-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

/* Chat */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.messages-container {
  max-width: 800px;
  margin: 0 auto;
}

.message {
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
}

.message.user .message-avatar {
  background: var(--user-bg);
  color: var(--user-text);
}

.message.assistant .message-avatar {
  background: var(--assistant-bg);
  color: var(--primary);
  border: 1px solid var(--border);
}

.message-body {
  flex: 1;
  min-width: 0;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.message-role {
  font-size: 13px;
  font-weight: 600;
}

.message-time {
  font-size: 11px;
  color: var(--text-muted);
}

.message-content {
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
}

.message-content p {
  margin-bottom: 8px;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content pre {
  background: var(--code-bg);
  border-radius: var(--radius);
  padding: 14px;
  overflow-x: auto;
  margin: 10px 0;
}

.message-content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
}

.message-content code:not(pre code) {
  background: var(--bg-hover);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.message-content pre code {
  color: var(--code-text);
  background: none;
  padding: 0;
}

.message-content ul, .message-content ol {
  padding-left: 20px;
  margin: 8px 0;
}

.message-content li {
  margin-bottom: 4px;
}

.message-content blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 14px;
  margin: 10px 0;
  color: var(--text-secondary);
}

.message-content h1, .message-content h2, .message-content h3,
.message-content h4, .message-content h5, .message-content h6 {
  margin: 14px 0 8px;
  font-weight: 600;
}

.message-content a {
  color: var(--primary);
  text-decoration: none;
}

.message-content a:hover {
  text-decoration: underline;
}

.message-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.message-content th, .message-content td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
}

.message-content th {
  background: var(--bg-hover);
  font-weight: 600;
}

.message.error .message-content {
  color: var(--danger);
}

.message-streaming .cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--primary);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Chat Input */
.chat-input-area {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}

.input-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  transition: border-color var(--transition);
}

.input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.input-actions-left {
  display: flex;
  gap: 4px;
  padding-bottom: 2px;
}

.input-field-wrapper {
  flex: 1;
  min-width: 0;
}

.image-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.image-preview-item {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chatInput {
  width: 100%;
  border: none;
  background: none;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  outline: none;
  font-family: inherit;
  max-height: 150px;
}

.input-actions-right {
  display: flex;
  gap: 4px;
  padding-bottom: 2px;
}

.btn-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.btn-send:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.btn-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-abort {
  background: var(--danger);
}

.btn-abort:hover {
  background: #dc2626;
}

.input-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Files */
.files-content {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.files-tree {
  width: 260px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 8px;
  flex-shrink: 0;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  gap: 6px;
  transition: background var(--transition);
}

.file-item:hover {
  background: var(--bg-hover);
}

.file-item.active {
  background: var(--primary-light);
  color: var(--primary);
}

.file-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-children {
  padding-left: 16px;
}

.file-toggle {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.file-toggle.open {
  transform: rotate(90deg);
}

.files-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.editor-header {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-secondary);
}

.editor-textarea {
  flex: 1;
  padding: 16px;
  border: none;
  background: var(--bg);
  color: var(--text);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: none;
  outline: none;
}

/* Git */
.git-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.git-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.git-branch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.git-actions {
  display: flex;
  gap: 6px;
}

.git-remote-status {
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
}

.git-changes h3, .git-history h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.git-changes-list {
  margin-bottom: 20px;
}

.git-no-changes {
  color: var(--text-muted);
  font-size: 13px;
  padding: 12px;
  text-align: center;
}

.git-change-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius);
  margin-bottom: 4px;
  font-size: 13px;
  gap: 8px;
  cursor: pointer;
  transition: background var(--transition);
}

.git-change-item:hover {
  background: var(--bg-hover);
}

.git-change-status {
  width: 20px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.git-change-status.modified { color: var(--warning); }
.git-change-status.added { color: var(--success); }
.git-change-status.deleted { color: var(--danger); }
.git-change-status.untracked { color: var(--text-muted); }

.git-change-file {
  flex: 1;
  font-family: 'SF Mono', monospace;
  font-size: 12px;
  word-break: break-all;
}

.git-change-actions {
  display: flex;
  gap: 4px;
}

.git-commit-section {
  margin-bottom: 20px;
}

.git-commit-section textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-size: 13px;
  resize: none;
  outline: none;
  font-family: inherit;
  margin-bottom: 8px;
}

.git-commit-section textarea:focus {
  border-color: var(--primary);
}

.git-commit-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.git-commits-list {
  max-height: 300px;
  overflow-y: auto;
}

.git-commit-item {
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 4px;
  transition: background var(--transition);
  cursor: pointer;
}

.git-commit-item:hover {
  background: var(--bg-hover);
}

.git-commit-message {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.git-commit-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.git-commit-hash {
  font-family: monospace;
  background: var(--bg-hover);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Shell */
.shell-content {
  flex: 1;
  overflow: hidden;
}

.shell-terminal {
  width: 100%;
  height: 100%;
  background: #0d0d17;
  color: #e2e5e9;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.4;
  padding: 12px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.shell-terminal a {
  color: #82aaff;
  text-decoration: underline;
}

/* Quick Settings */
.quick-settings-panel {
  position: fixed;
  right: 16px;
  top: 60px;
  width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.quick-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.quick-settings-header h3 {
  font-size: 14px;
  font-weight: 600;
}

.quick-settings-content {
  padding: 12px 16px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  cursor: pointer;
}

.toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  margin: 16px;
}

.modal-lg {
  max-width: 600px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.modal-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Tools List */
.tools-list {
  display: grid;
  gap: 8px;
}

.tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  font-size: 13px;
}

.tool-name {
  font-weight: 500;
  font-family: monospace;
}

.tool-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
}

/* Voice Overlay */
.voice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  cursor: pointer;
}

.voice-content {
  text-align: center;
  color: white;
}

.voice-pulse {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(239,68,68,0.3);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 0; }
}

.voice-content p {
  margin-top: 16px;
  font-size: 14px;
}

/* Mobile */
.mobile-only {
  display: none;
}

.sidebar-overlay {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: flex;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 200ms ease;
    box-shadow: var(--shadow-lg);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 49;
  }

  .sidebar-overlay.open {
    display: block;
  }

  .topbar-tabs {
    display: none;
  }

  .files-content {
    flex-direction: column;
  }

  .files-tree {
    width: 100%;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* Mobile Bottom Nav */
@media (max-width: 768px) {
  .main-content {
    padding-bottom: 56px;
  }
}
