/* Modular CSS slice extracted from quick-studio-workbench.css (722-939) */
[data-theme="dark"] .quick-inline-recovery-head strong {
  color: #fde68a;
}

[data-theme="dark"] .quick-preflight-desc,
[data-theme="dark"] .quick-inline-recovery-head span {
  color: #fcd34d;
}

[data-theme="dark"] .quick-preflight-template,
[data-theme="dark"] .quick-inline-recovery-input {
  background: #0f172a;
  border-color: rgba(251, 191, 36, 0.35);
  color: #f8fafc;
}

[data-theme="dark"] .quick-history-drawer-filters,
[data-theme="dark"] .quick-history-trigger-btn,
[data-theme="dark"] .quick-recent-chip,
[data-theme="dark"] .quick-mode-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

[data-theme="dark"] .quick-mode-card.active,
[data-theme="dark"] .quick-recent-chip.is-active,
[data-theme="dark"] .quick-record-item.is-selected,
[data-theme="dark"] .quick-upload-collapsed-bar {
  background: rgba(79, 70, 229, 0.22);
  border-color: #818cf8;
  color: #f8fafc;
}

.quick-parametric-valid-badge {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  font-size: 0.78rem;
  line-height: 1.45;
}

.quick-inline-recovery-card--parametric { background: #f0fdf4; border-color: #6ee7b7; }
.quick-inline-recovery-card--parametric .quick-inline-recovery-head strong { color: #065f46; }
.quick-inline-recovery-card--parametric .quick-inline-recovery-head span { color: #047857; }

.quick-inline-custom-formula-details {
  margin-top: 6px;
  border-top: 1px dashed rgba(16, 185, 129, 0.35);
  padding-top: 8px;
}
.quick-inline-custom-formula-details summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: #047857;
  user-select: none;
}
.quick-inline-custom-formula-body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

[data-theme="dark"] .quick-parametric-valid-badge,
[data-theme="dark"] .quick-inline-recovery-card--parametric {
  background: rgba(6, 78, 59, 0.32);
  border-color: rgba(52, 211, 153, 0.45);
  color: #d1fae5;
}
[data-theme="dark"] .quick-inline-recovery-card--parametric .quick-inline-recovery-head strong,
[data-theme="dark"] .quick-inline-custom-formula-details summary { color: #a7f3d0; }
[data-theme="dark"] .quick-inline-recovery-card--parametric .quick-inline-recovery-head span { color: #6ee7b7; }

.quick-pipeline-progress-card {
  margin-bottom: 0.85rem;
  border-radius: 10px;
  border: 1.5px solid #bfdbfe;
  background: #eff6ff;
  padding: 0.75rem 0.9rem;
}
.quick-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.quick-progress-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
}
.quick-progress-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
  animation: pulse-badge 1.4s infinite;
}
.quick-progress-title {
  font-size: 0.84rem;
  color: #1e3a8a;
  overflow-wrap: anywhere;
}
.quick-progress-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1d4ed8;
}
.quick-progress-bar-track {
  height: 7px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
  margin: 0.5rem 0;
}
.quick-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #10b981);
  transition: width 0.3s ease;
}
.quick-progress-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.74rem;
}
.qp-step {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-weight: 600;
}
.qp-step.is-active {
  background: #dbeafe;
  color: #1d4ed8;
}
.qp-step.is-done {
  background: #dcfce7;
  color: #15803d;
}
.quick-empty-grading-box {
  text-align: center;
  padding: 1.25rem;
  color: #475569;
  font-size: 0.83rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
}
.quick-stage3-recovery-banner {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  color: #78350f;
}
.quick-stage3-recovery-badge {
  font-weight: 800;
  color: #065f46;
  font-size: 0.84rem;
  margin-bottom: 0.3rem;
}
.quick-stage3-recovery-msg {
  font-size: 0.82rem;
  margin-bottom: 0.7rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.quick-stage3-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
[data-theme="dark"] .quick-pipeline-progress-card {
  background: rgba(30, 58, 138, 0.25);
  border-color: rgba(96, 165, 250, 0.4);
}
[data-theme="dark"] .quick-progress-title { color: #dbeafe; }
[data-theme="dark"] .quick-progress-meta { color: #93c5fd; }
[data-theme="dark"] .quick-progress-bar-track { background: rgba(148, 163, 184, 0.25); }
[data-theme="dark"] .qp-step { background: rgba(51, 65, 85, 0.8); color: #cbd5e1; }
[data-theme="dark"] .qp-step.is-active { background: rgba(37, 99, 235, 0.35); color: #bfdbfe; }
[data-theme="dark"] .qp-step.is-done { background: rgba(16, 185, 129, 0.28); color: #a7f3d0; }
[data-theme="dark"] .quick-empty-grading-box {
  background: rgba(30, 41, 59, 0.55);
  border-color: rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}
[data-theme="dark"] .quick-stage3-recovery-banner {
  background: rgba(120, 53, 15, 0.28);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fef3c7;
}
[data-theme="dark"] .quick-stage3-recovery-badge { color: #6ee7b7; }
@media (max-width: 480px) {
  .quick-stage3-recovery-actions {
    flex-direction: column;
  }
  .quick-stage3-recovery-actions button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
}
