:root {
  --bg-app: #212121;
  --bg-sidebar: #171717;
  --bg-surface: #2f2f2f;
  --bg-input: #2f2f2f;
  --bg-input-hover: #3a3a3a;
  
  --border-light: rgba(255,255,255,0.1);
  --border-focus: rgba(255,255,255,0.25);
  
  --text-primary: #ececec;
  --text-secondary: #b4b4b4;
  --text-dim: #737373;
  
  --accent: #ffffff;
  --accent-hover: #e5e5e5;
  --accent-blue: #3b82f6;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
}

/* Layout */
.chat-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* App Header (Fixed at top) */
.app-header {
  height: 56px;
  min-height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-light);
  box-sizing: border-box;
  z-index: 50;
  position: relative;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-btn {
  width: auto;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

/* App Body (Sidebar + Main Content) */
.app-body {
  display: flex;
  flex: 1;
  width: 100%;
  height: calc(100vh - 56px);
  overflow: hidden;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: 260px;
  min-width: 260px;
  height: 100%;
  background-color: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid var(--border-light);
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.2, 0, 0, 1),
              min-width 0.3s cubic-bezier(0.2, 0, 0, 1),
              opacity 0.22s cubic-bezier(0.2, 0, 0, 1),
              border-color 0.3s ease;
  will-change: width, min-width;
  position: relative;
  z-index: 10;
}

.sidebar.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  border-right-color: transparent;
  opacity: 0;
  pointer-events: none;
}

.sidebar-inner {
  width: 260px;
  min-width: 260px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.75rem 1rem 0.75rem;
  box-sizing: border-box;
  overflow: hidden;
}

.sidebar-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-toggle-btn:active {
  transform: scale(0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: 7px;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.btn-sidebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.btn-sidebar:hover {
  background: rgba(255,255,255,0.05);
}

.btn-sidebar.active {
  background: rgba(255,255,255,0.1);
}

.hidden {
  display: none !important;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-footer {
  padding: 0 0.25rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: transparent;
}

.user-profile:hover {
  background: rgba(255,255,255,0.05);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3f3f46;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-name {
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.user-profile-locked {
  padding: 0.75rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}
.btn-icon:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.1);
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-app);
}

/* Auth / Login */
.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-container {
  width: 100%;
  max-width: 360px;
}

.auth-hero {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-hero h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.auth-hero p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  position: relative;
}

.input-field {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}
.input-field:focus {
  border-color: var(--accent-blue);
}

.btn-icon-inside {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
}
.btn-icon-inside:hover { color: var(--text-primary); }

.btn-primary-large {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}
.btn-primary-large:hover { opacity: 0.9; }

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-align: center;
}

/* Chat Container */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.chat-feed {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.chat-message {
  width: 100%;
  max-width: 768px;
  display: flex;
  gap: 1.25rem;
}

.message-avatar {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.8rem;
}
.system-avatar {
  background: var(--text-primary);
  color: var(--bg-app);
}
.ai-avatar {
  background: #10a37f;
  color: white;
}

.message-content {
  flex: 1;
  min-width: 0;
}
.message-content h3 { font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 600; }
.message-content h4 { font-size: 1rem; margin-bottom: 0.25rem; font-weight: 600; }
.message-content p { color: var(--text-secondary); line-height: 1.6; }

/* Prompt Input */
.chat-input-wrapper {
  padding: 0 2rem 2rem 2rem;
  display: flex;
  justify-content: center;
}

.prompt-box {
  width: 100%;
  max-width: 768px;
}

.prompt-options {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}

.select-minimal {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}
.select-minimal:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.select-minimal option { background: var(--bg-surface); color: var(--text-primary); }
.dot-separator { color: var(--text-dim); font-size: 0.75rem; }

.prompt-input-area {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  min-height: 56px;
  position: relative;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.prompt-input-area:focus-within, .prompt-input-area.dragover {
  border-color: var(--border-focus);
  background: var(--bg-input-hover);
}

.prompt-placeholder {
  flex: 1;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.btn-text-link {
  background: none; border: none; color: var(--text-primary); text-decoration: underline; cursor: pointer; font-family: inherit; font-size: inherit;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-primary);
}
.file-name-truncate { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size-dim { color: var(--text-dim); font-size: 0.75rem; }
.btn-chip-remove { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; line-height: 1;}
.btn-chip-remove:hover { color: #fca5a5; }

.btn-prompt-submit {
  background: var(--accent);
  color: #000;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  transition: opacity 0.2s;
}
.btn-prompt-submit:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-prompt-submit:hover:not(:disabled) { opacity: 0.9; }

.prompt-footer {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Progress Area */
.progress-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin: 1rem 0 0.5rem 0;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: #10a37f;
  transition: width 0.3s ease;
}
.progress-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.mono { font-family: var(--font-mono); }
.live-stream-box {
  margin-top: 1rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-height: 150px;
  overflow-y: auto;
}

/* Results Content */
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.result-meta {
  display: flex; gap: 0.5rem; margin-top: 0.25rem; font-size: 0.75rem; color: var(--text-dim); font-family: var(--font-mono);
}
.audio-player-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}
.btn-play-mini {
  background: var(--text-primary); color: #000; border: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mono-time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); min-width: 35px; }
.seeker-mini { width: 100px; accent-color: var(--text-primary); height: 4px; }
.btn-speed-mini { background: none; border: none; color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.75rem; cursor: pointer; }

.transcript-tabs {
  display: flex; gap: 1rem; border-bottom: 1px solid var(--border-light); margin-bottom: 1rem;
}
.tab-btn {
  background: none; border: none; color: var(--text-secondary); padding: 0.5rem 0; font-family: inherit; font-size: 0.9rem; cursor: pointer; border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--text-primary); border-bottom-color: var(--text-primary); }

.transcript-view {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.segments-list { display: flex; flex-direction: column; gap: 0.5rem; }
.segment-item {
  display: flex; gap: 1rem; padding: 0.5rem; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.1s;
}
.segment-item:hover { background: rgba(255,255,255,0.05); }
.segment-item.active-playing { background: rgba(59, 130, 246, 0.15); }
.segment-timestamp { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); min-width: 45px; margin-top: 3px; }
.segment-text { font-size: 0.95rem; line-height: 1.6; }

.clean-textarea {
  width: 100%; height: 300px; background: transparent; border: none; color: var(--text-primary); font-family: inherit; font-size: 0.95rem; line-height: 1.6; outline: none; resize: none;
}

.result-actions {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.btn-action {
  background: var(--bg-surface); border: 1px solid var(--border-light); color: var(--text-secondary); padding: 0.4rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.8rem; cursor: pointer; display: flex; align-items: center; gap: 0.4rem; transition: background 0.15s; font-family: inherit;
}
.btn-action:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.divider { width: 1px; height: 16px; background: var(--border-light); margin: 0 0.5rem; }

/* Admin Workspace */
.admin-workspace { padding: 2rem; max-width: 800px; margin: 0 auto; width: 100%; overflow-y: auto;}
.admin-header h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 2rem; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 768px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 1.5rem; }
.admin-card h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 1rem; border-bottom: 1px solid var(--border-light); padding-bottom: 0.5rem; }

.stat-row { display: flex; justify-content: space-between; margin-bottom: 0.75rem; font-size: 0.9rem; color: var(--text-secondary); }
.stat-value { color: var(--text-primary); font-weight: 500; }
.btn-outline { background: transparent; border: 1px solid var(--border-light); color: var(--text-primary); padding: 0.5rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; cursor: pointer; width: 100%; margin-top: 0.5rem; }
.btn-outline:hover { background: rgba(255,255,255,0.05); }
.btn-primary { background: var(--text-primary); color: var(--bg-app); border: none; padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 500; cursor: pointer; width: 100%; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; cursor: pointer; color: var(--text-secondary); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { text-align: left; color: var(--text-dim); font-weight: 500; padding: 0.5rem; border-bottom: 1px solid var(--border-light); }
.admin-table td { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Modals & Toasts */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(4px); }
.modal-box { background: var(--bg-surface); padding: 1.5rem; border-radius: var(--radius-md); width: 100%; max-width: 400px; position: relative; border: 1px solid var(--border-light); }
.modal-box h3 { margin-bottom: 1.5rem; font-size: 1.1rem; }
.modal-footer { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-dim); font-size: 1.5rem; cursor: pointer; line-height: 1; }

.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; z-index: 200; }
.toast { background: var(--bg-surface); border: 1px solid var(--border-light); color: var(--text-primary); padding: 0.75rem 1rem; border-radius: var(--radius-sm); box-shadow: 0 4px 12px rgba(0,0,0,0.2); font-size: 0.85rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-width: 250px; animation: slideUp 0.3s ease; }
.toast.error { border-left: 3px solid #ef4444; }
.toast.success { border-left: 3px solid #10b981; }
.toast-close { background: none; border: none; color: var(--text-dim); cursor: pointer; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Utils */
.fade-in { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(0,0,0,0.2); border-top-color: #000; border-radius: 50%; animation: spin 1s linear infinite; }
.spinner-small { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


.sidebar-history-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  overflow: hidden;
}
.history-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  margin: 0 0.25rem;
}
.history-search-box input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  width: 100%;
  outline: none;
}
.history-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.25rem;
}
.history-item {
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: background 0.15s;
  border: 1px solid transparent;
}
.history-item:hover {
  background: rgba(255,255,255,0.05);
}
.history-item.active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
}
.history-title {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}
.history-meta {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
}

/* AI Export Modal & Progress */
.ai-export-modal {
  max-width: 480px;
  background: #14171f;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(16, 185, 129, 0.12);
}

.ai-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.ai-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ai-sparkle-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.ai-export-filename {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

.ai-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.ai-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.ai-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}

.ai-status-label {
  color: var(--text-primary);
  font-weight: 500;
}

.ai-percent-label {
  color: #10b981;
  font-family: var(--font-mono);
  font-weight: 600;
}

.ai-steps-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.ai-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: all 0.25s ease;
}

.ai-step-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.ai-step.active {
  color: var(--text-primary);
  font-weight: 500;
}

.ai-step.active .ai-step-indicator {
  background: #3b82f6;
  border-color: #60a5fa;
  color: #fff;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  animation: pulse 1.5s infinite;
}

.ai-step.done {
  color: #10b981;
}

.ai-step.done .ai-step-indicator {
  background: #10b981;
  border-color: #34d399;
  color: #fff;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
  }
}
