:root {
  --bg-canvas: #090d16;
  --bg-card: #111827;
  --bg-card-hover: #162035;
  --bg-card-active: #1a2744;
  
  --border-subtle: #1f293d;
  --border-focus: #38bdf8;
  --border-hover: #2e3e60;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #38bdf8;
  --accent-blue: #2563eb;
  --accent-indigo: #6366f1;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  /* University Branding */
  --badge-mit: #c2185b;
  --badge-harvard: #a51c30;
  --badge-stanford: #8c1515;
  --badge-berkeley-bg: #003262;
  --badge-berkeley-fg: #fdb515;
  --badge-cmu: #990000;
  --badge-default: #3b82f6;

  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: 60px;
}

/* ==========================================================================
   Top Header (Vercel / Linear Aesthetic)
   ========================================================================== */
.app-header {
  width: 100%;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 24px;
}

.header-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a8a, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.global-progress-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  min-width: 220px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.meta-label {
  color: var(--text-muted);
  font-weight: 500;
}

.meta-value {
  color: var(--accent-cyan);
  font-weight: 700;
  font-family: var(--font-display);
}

.progress-track {
  width: 100%;
  height: 6px;
  background-color: #1e293b;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Workspace & Action Bar
   ========================================================================== */
.workspace-container {
  width: 100%;
  max-width: 1100px;
  margin: 30px auto 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.action-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.search-input-wrapper input {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px 10px 40px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input-wrapper input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.filter-btn.active {
  background: #1e3a8a;
  border-color: #3b82f6;
  color: #ffffff;
  font-weight: 600;
}

.btn-primary-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  color: #ffffff;
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px 14px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Course Catalog Cards
   ========================================================================== */
.catalog-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.course-card-modern {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.course-card-modern:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.course-card-modern.completed {
  border-color: rgba(16, 185, 129, 0.4);
}

.course-card-modern.completed .course-heading {
  text-decoration: line-through;
  color: var(--text-muted);
}

.card-content-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 80%;
}

.uni-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-block;
}

.uni-tag.mit { background-color: var(--badge-mit); }
.uni-tag.harvard { background-color: var(--badge-harvard); }
.uni-tag.stanford { background-color: var(--badge-stanford); }
.uni-tag.uc-berkeley { 
  background-color: var(--badge-berkeley-bg); 
  color: var(--badge-berkeley-fg); 
}
.uni-tag.cmu { background-color: var(--badge-cmu); }
.uni-tag.other { background-color: var(--badge-default); }

.course-heading {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.course-subtext {
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-action-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-start-link {
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Custom Checkbox */
.custom-checkbox-wrap {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-wrap input {
  display: none;
}

.checkbox-box {
  width: 26px;
  height: 26px;
  border: 2px solid #334155;
  border-radius: 8px;
  background-color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.custom-checkbox-wrap:hover .checkbox-box {
  border-color: var(--accent-cyan);
}

.custom-checkbox-wrap input:checked ~ .checkbox-box {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
}

.checkbox-box svg {
  width: 16px;
  height: 16px;
  color: #ffffff;
  display: none;
}

.custom-checkbox-wrap input:checked ~ .checkbox-box svg {
  display: block;
}

/* ==========================================================================
   Modals & Strong Junior Workspace
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-compact {
  width: 90%;
  max-width: 520px;
  padding: 24px 28px;
  gap: 18px;
}

.modal-workspace {
  width: 94%;
  max-width: 1140px;
  height: 92vh;
  display: flex;
  flex-direction: column;
}

.workspace-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111827;
}

.lecture-badge-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lecture-headline {
  font-size: 1.18rem;
  font-weight: 700;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-outline-small {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-small:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close:hover {
  color: #ffffff;
}

/* Workflow Step Tabs */
.workflow-tabs {
  display: flex;
  gap: 6px;
  background: #090d16;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.wf-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.wf-tab-btn .tab-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1e293b;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.wf-tab-btn:hover {
  color: var(--text-primary);
  background: #1e293b;
}

.wf-tab-btn.active {
  background: #1e3a8a;
  border-color: #3b82f6;
  color: #ffffff;
}

.wf-tab-btn.active .tab-num {
  background: #3b82f6;
  color: #ffffff;
}

/* Module Step Completion Indicator */
.module-step-indicator {
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-complete-step {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-complete-step:hover {
  background: rgba(16, 185, 129, 0.3);
}

/* Workspace Body Panels */
.workspace-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.wf-tab-panel {
  display: none;
  height: 100%;
}

.wf-tab-panel.active {
  display: block;
}

/* Tab 1: Video Workbench */
.video-workbench-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  height: 100%;
}

@media (max-width: 960px) {
  .video-workbench-grid {
    grid-template-columns: 1fr;
  }
}

.youtube-player-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
}

.youtube-player-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.player-fallback-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
}

.topics-timeline-card {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timeline-row:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
}

.timeline-tag {
  background: #1e293b;
  color: var(--accent-cyan);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-content {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sub-title {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-top: 8px;
}

#personalNotesArea {
  width: 100%;
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
}

.notes-save-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.save-indicator {
  font-size: 0.8rem;
  color: var(--accent-green);
  opacity: 0;
  transition: opacity 0.3s;
}

.save-indicator.show {
  opacity: 1;
}

/* Tab 2: Quiz Workbench */
.quiz-workbench {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 840px;
  margin: 0 auto;
}

.quiz-status-banner {
  background: rgba(30, 58, 138, 0.35);
  border: 1px solid #2563eb;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-title {
  font-weight: 700;
  font-size: 1rem;
}

.banner-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.score-badge {
  background: #0284c7;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.quiz-questions-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quiz-question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.q-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.q-opt-btn {
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.q-opt-btn:hover:not(:disabled) {
  border-color: var(--accent-cyan);
  background: #1e293b;
}

.q-opt-btn.correct {
  background: #064e3b !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  font-weight: 600;
}

.q-opt-btn.wrong {
  background: #7f1d1d !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

.q-explanation {
  background: rgba(15, 23, 42, 0.8);
  border-left: 4px solid var(--accent-cyan);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Tab 3: Code Challenge */
.code-challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  height: 100%;
}

@media (max-width: 900px) {
  .code-challenge-grid {
    grid-template-columns: 1fr;
  }
}

.task-description-card, .code-editor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tag-level {
  background: #1e293b;
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.task-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.task-body code {
  background: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-run-code {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-run-code:hover {
  background: #0369a1;
}

.code-textarea {
  width: 100%;
  height: 260px;
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.45;
  outline: none;
  resize: vertical;
}

.console-output {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  min-height: 90px;
}

.console-placeholder {
  color: var(--text-muted);
}

.console-success {
  color: #34d399;
}

.console-error {
  color: #f87171;
}

/* Tab 4: GitHub Deliverable */
.deliverable-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.deliverable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-copy-deliverable {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.deliverable-code-preview {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Tab 5: AI Tutor */
.ai-tutor-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 480px;
  gap: 14px;
}

.tutor-chat-messages {
  flex: 1;
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  max-width: 80%;
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-bubble.user-bubble {
  background: var(--accent-blue);
  color: #ffffff;
  align-self: flex-end;
}

.chat-bubble.ai-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  align-self: flex-start;
}

.tutor-chat-input-bar {
  display: flex;
  gap: 10px;
}

.tutor-chat-input-bar input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  color: var(--text-primary);
  outline: none;
}

/* Ingestion Animation Pipeline */
.ai-pipeline-container {
  background: #090d16;
  border: 1px solid #1e3a8a;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.pipeline-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.step-item.active {
  color: #ffffff;
  font-weight: 600;
}

.step-item.done {
  color: var(--accent-green);
}

.step-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.step-item.active .step-badge {
  background: var(--accent-cyan);
  color: #000000;
}

.step-item.done .step-badge {
  background: var(--accent-green);
  color: #ffffff;
}

.pipeline-progress-bar {
  width: 100%;
  height: 4px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
}

.pipeline-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Forms */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-field input, .form-field select {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-primary);
  outline: none;
}

.form-row {
  display: flex;
  gap: 12px;
}

.flex-1 {
  flex: 1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}