.intro-panel {
  margin-bottom: 28px;
}

.intro-text {
  margin: 12px 0 20px;
  color: #495057;
  line-height: 1.55;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(40, 167, 69, 0.12);
  color: #2f9e44;
  font-size: 0.85em;
  font-weight: 600;
}

.summary-bullets {
  margin: 0;
  padding-left: 18px;
  color: #495057;
  font-size: 0.92em;
}

.summary-bullets li {
  margin-bottom: 6px;
}

.badge-soft.secondary {
  background: rgba(77, 171, 247, 0.15);
  color: #206699;
}

/* 토글 스위치 스타일 */
.toggle-panel {
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(139, 92, 246, 0));
}

.toggle-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #dee2e6;
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

.toggle-slider:before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #8b5cf6;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.toggle-label {
  flex: 1;
}

.toggle-label strong {
  display: block;
  color: #212529;
  font-size: 1em;
  margin-bottom: 4px;
}

.toggle-description {
  margin: 0;
  color: #6c757d;
  font-size: 0.9em;
  line-height: 1.5;
}

/* 업로드 카드 비활성화 스타일 */
.upload-card.disabled {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.upload-card.disabled::after {
  content: "커리큘럼 건너뛰기 모드에서는 불필요합니다";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 249, 250, 0.85);
  border-radius: 16px;
  color: #6c757d;
  font-size: 0.9em;
  font-weight: 500;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.upload-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.upload-description {
  margin: 0;
  color: #495057;
  line-height: 1.5;
}

.upload-meta {
  background: #f1f3f5;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.86em;
  color: #495057;
}

.upload-meta__title {
  font-weight: 700;
  margin-bottom: 8px;
  color: #343a40;
}

.upload-meta__list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
}

.upload-dropzone {
  position: relative;
  border: 2px dashed #ced4da;
  border-radius: 14px;
  padding: 24px 18px;
  background: #f8f9fa;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.upload-dropzone.dragover {
  border-color: #4dabf7;
  background: rgba(77, 171, 247, 0.08);
}

.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-dropzone:focus-within {
  outline: 3px solid rgba(77, 171, 247, 0.4);
}

.dropzone-inner {
  display: grid;
  justify-items: center;
  gap: 12px;
  pointer-events: none;
  text-align: center;
  color: #495057;
  font-size: 0.95em;
}

.dropzone-icon {
  font-size: 1.4em;
}

.dropzone-inner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1em;
}

.secondary-btn {
  pointer-events: all;
  border: 1px solid #4dabf7;
  border-radius: 999px;
  padding: var(--pill-btn-padding-y) clamp(11px, calc(9px + 0.5vw), 15px);
  font-size: var(--pill-btn-font-size);
  min-height: var(--pill-btn-min-height);
  line-height: 1.15;
  background: #fff;
  color: #1c7ed6;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.secondary-btn:hover {
  background: rgba(28, 126, 214, 0.08);
  border-color: #1c7ed6;
}

.secondary-btn.outline {
  border-color: #adb5bd;
  color: #495057;
}

.secondary-btn.outline:hover {
  border-color: #495057;
  color: #212529;
}

.upload-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9em;
  color: #495057;
}

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

.reset-link {
  border: none;
  background: transparent;
  color: #868e96;
  cursor: pointer;
  padding: 0;
  font-size: 0.9em;
  text-decoration: underline;
}

.reset-link:hover {
  color: #495057;
}

.primary-btn {
  border-radius: 999px;
  padding: var(--pill-btn-padding-y) clamp(12px, calc(10px + 0.6vw), 18px);
  font-size: var(--pill-btn-font-size);
  min-height: var(--pill-btn-min-height);
  line-height: 1.15;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #51cf66, #2f9e44);
  color: #fff;
  box-shadow: 0 6px 12px rgba(47, 158, 68, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(47, 158, 68, 0.32);
}

.primary-btn:disabled {
  background: #e9ecef;
  box-shadow: none;
  color: #adb5bd;
  cursor: not-allowed;
}

.primary-btn.ghost {
  background: transparent;
  color: #2f9e44;
  border: 1px solid rgba(47, 158, 68, 0.45);
  box-shadow: none;
}

.primary-btn.ghost:hover {
  background: rgba(47, 158, 68, 0.08);
  transform: none;
}

.primary-btn.ghost:disabled {
  background: transparent;
  border-color: #dee2e6;
  color: #adb5bd;
}

.upload-status {
  min-height: 20px;
  font-size: 0.88em;
  color: #868e96;
}

.upload-status[data-state="error"] {
  color: #d9480f;
}

.upload-status[data-state="success"] {
  color: #2b8a3e;
}

.execute-panel {
  display: grid;
  gap: 16px;
}

.execute-description {
  margin: 0;
  color: #495057;
  line-height: 1.5;
}

/* 실행 옵션 영역 */
.execute-options {
  margin: 8px 0 16px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(59, 130, 246, 0.02));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.option-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.option-icon {
  font-size: 1.5em;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 10px;
}

.option-content {
  flex: 1;
  min-width: 0;
}

.option-label {
  display: block;
  font-weight: 600;
  color: #1e40af;
  font-size: 0.95em;
  margin-bottom: 2px;
}

.option-description {
  margin: 0;
  font-size: 0.85em;
  color: #6b7280;
  line-height: 1.4;
}

.year-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 40px 10px 16px;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
  color: #1e40af;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231e40af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.year-select:hover {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.04);
}

.year-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.year-select option {
  font-weight: 500;
  color: #374151;
  padding: 8px;
}

@media (max-width: 600px) {
  .option-card {
    flex-wrap: wrap;
  }
  
  .option-content {
    flex: 1 1 100%;
    order: 2;
  }
  
  .year-select {
    width: 100%;
    order: 3;
  }
  
  .option-icon {
    order: 1;
  }
}

.execute-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.execute-actions .run-button,
.execute-actions .cancel-btn {
  min-width: 220px;
}

.sample-btn {
  font-size: 0.82em;
  line-height: 1;
  text-decoration: none;
}

.validation-panel {
  margin-bottom: 32px;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.08), rgba(33, 150, 243, 0));
}

.validation-description {
  margin: 0 0 14px;
  color: #495057;
  line-height: 1.5;
}

.validation-actions {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0 18px;
}

.validation-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.validation-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ced4da;
  background: #fff;
}

.validation-list strong {
  color: #212529;
  font-size: 0.96em;
}

.validation-list span {
  color: #6c757d;
  font-size: 0.88em;
}

.status-indicator {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f3f5;
  color: #495057;
  font-size: 0.78em;
  font-weight: 600;
}

.status-indicator[data-state="success"] {
  background: #e6fcf5;
  color: #0ca678;
}

.status-indicator[data-state="error"] {
  background: #fff5f5;
  color: #e03131;
}

.status-indicator[data-state="info"] {
  background: #e7f5ff;
  color: #1c7ed6;
}

.status-indicator[data-state="skipped"] {
  background: #f3f0ff;
  color: #7c3aed;
}

/* 검증 체크리스트 항목 비활성화 스타일 */
.validation-list li.disabled {
  opacity: 0.5;
  background: #f8f9fa;
}

.validation-issues {
  flex: 1 0 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff4f4;
  border: 1px solid #ffa8a8;
  display: grid;
  gap: 12px;
}

.validation-issues[hidden] {
  display: none;
}

.validation-issues h4 {
  margin: 0 0 6px;
  font-size: 0.88em;
  color: #d9480f;
}

.validation-issues ul {
  margin: 0;
  padding-left: 18px;
  color: #7048e8;
  font-size: 0.85em;
  display: grid;
  gap: 4px;
}

.validation-issues li {
  color: #495057;
}

.workflow-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.progress-description,
.report-description {
  margin: 0 0 16px;
  color: #495057;
  line-height: 1.5;
}

.progress-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.progress-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.timeline-step {
  text-align: center;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  background: #f8f9fa;
  font-size: 0.87em;
  color: #495057;
}

.timeline-step[data-state="active"] {
  border-color: #74c0fc;
  background: #e7f5ff;
  color: #1c7ed6;
  box-shadow: 0 0 0 1px rgba(116, 192, 252, 0.3);
}

.timeline-step[data-state="completed"] {
  border-color: #63e6be;
  background: #e6fcf5;
  color: #0ca678;
  box-shadow: 0 0 0 1px rgba(12, 166, 120, 0.2);
}

.timeline-step[data-state="error"] {
  border-color: #ffa8a8;
  background: #fff5f5;
  color: #e03131;
  box-shadow: 0 0 0 1px rgba(224, 49, 49, 0.2);
}

.timeline-step.disabled {
  opacity: 0.5;
  background: #f8f9fa;
  border-style: dashed;
  color: #adb5bd;
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 0;
}

.progress-stats div {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  background: #fdfdff;
}

.progress-stats dt {
  font-size: 0.78em;
  text-transform: uppercase;
  color: #868e96;
  margin-bottom: 4px;
}

.progress-stats dd {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  color: #212529;
}

.report-summary {
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed #ced4da;
  background: #f8f9fa;
  min-height: 90px;
  display: flex;
  align-items: center;
  color: #495057;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.report-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .upload-footer {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .validate-btn {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }

  .workflow-panels {
    grid-template-columns: 1fr;
  }
}

/* 진행바 스타일 */
.progress-bar-container {
  margin-top: 16px;
  padding: 16px;
  background: rgba(33, 150, 243, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(33, 150, 243, 0.15);
}

.progress-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-bar-label {
  font-size: 0.9em;
  font-weight: 600;
  color: #1c7ed6;
}

.progress-bar-percentage {
  font-size: 0.85em;
  color: #495057;
  font-weight: 600;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4dabf7, #1c7ed6);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-bar-fill:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 768px) {
  .execute-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .execute-actions .run-button,
  .execute-actions .cancel-btn {
    width: 100%;
  }
}

/* 상세 진행 통계 패널 */
.detailed-progress-panel {
  margin-top: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(139, 92, 246, 0.08));
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.detailed-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.detailed-progress-header h3 {
  margin: 0;
  font-size: 1em;
  color: #5b21b6;
}

.estimated-time {
  font-size: 0.85em;
  color: #6366f1;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.detailed-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.progress-item {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.progress-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.progress-item-icon {
  font-size: 1.2em;
}

.progress-item-label {
  font-weight: 600;
  color: #343a40;
  font-size: 0.9em;
}

.progress-item-stats {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 8px;
}

.progress-item-stats span:first-child {
  font-size: 1.4em;
  font-weight: 700;
  color: #1c7ed6;
}

.progress-item-separator {
  color: #adb5bd;
  font-size: 0.9em;
}

.progress-item-stats span:last-child {
  color: #6c757d;
  font-size: 0.9em;
}

.mini-progress-bar {
  width: 100%;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #51cf66, #2f9e44);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-item:nth-child(1) .mini-progress-fill {
  background: linear-gradient(90deg, #4dabf7, #1c7ed6);
}

.progress-item:nth-child(2) .mini-progress-fill {
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
}

.progress-item.batch-progress .mini-progress-fill {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.progress-item-detail {
  display: flex;
  gap: 12px;
  font-size: 0.78em;
}

.success-count {
  color: #2f9e44;
}

.fail-count {
  color: #e03131;
}

@media (max-width: 768px) {
  .detailed-progress-grid {
    grid-template-columns: 1fr;
  }
}

/* 다운로드 액션 패널 */
.download-actions {
  margin-top: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(16, 185, 129, 0.12));
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.download-actions-title {
  margin: 0 0 12px;
  font-size: 0.95em;
  font-weight: 600;
  color: #047857;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #10b981;
  background: #fff;
  color: #047857;
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.download-button:hover:not(:disabled) {
  background: #10b981;
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.download-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #d1d5db;
  color: #9ca3af;
}

.download-button span:first-child {
  font-size: 1.1em;
}

@media (max-width: 768px) {
  .download-buttons {
    flex-direction: column;
  }

  .download-button {
    width: 100%;
    justify-content: center;
  }
}
