/* Inspect (single CSV form/check result) page */
.inspect-layout {
  max-width: 640px;
  margin: 0 auto;
}

.inspect-upload-section {
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.inspect-result {
  margin-top: 0;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.inspect-result .section-title {
  margin-top: 0;
}

.stat-grid--inspect {
  margin-bottom: 24px;
}

/* チェック結果: ラベルと値の揃えを統一 */
.stat-grid--inspect .stat-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  justify-content: start;
}

.stat-grid--inspect .stat-label {
  min-width: 0;
  color: var(--text-muted);
}

.stat-grid--inspect .stat-value {
  justify-self: end;
  text-align: right;
  min-width: 0;
}

.stat-grid--inspect .stat-item--full .stat-value {
  text-align: right;
  word-break: break-all;
}

.stat-grid--inspect .delimiter-override-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.stat-grid--inspect .delimiter-override-wrap .stat-label {
  min-width: 0;
}

.stat-grid--inspect .delimiter-select {
  justify-self: end;
  min-width: 160px;
  max-width: 100%;
}

.inspect-actions {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===== How it Works (이용 가이드) 섹션 - 인터랙티브 ===== */
.how-it-works {
  margin-top: 48px;
  padding: 40px 24px 48px;
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
  border-radius: var(--radius);
}

.how-it-works__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 0 0 24px;
}

.how-it-works__grid {
  max-width: 900px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .how-it-works__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .how-it-works__arrow {
    display: none;
  }
}

/* 요약 카드: 클릭 가능, 이미지 없음 */
.how-it-works__card {
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.how-it-works__card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(14, 140, 130, 0.15);
}

.how-it-works__card.is-active {
  border-color: var(--primary);
  background: var(--primary-muted);
  box-shadow: 0 4px 12px rgba(14, 140, 130, 0.2);
}

.how-it-works__card .how-it-works__step {
  margin-bottom: 0;
}

.how-it-works__card .how-it-works__desc {
  margin: 0;
  font-size: 0.8125rem;
}

.how-it-works__step {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.how-it-works__card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.how-it-works__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.how-it-works__arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
  align-self: center;
}

/* 상세 가이드 영역 */
.how-it-works__detail {
  margin-left: -24px;
  margin-right: -24px;
  padding: 24px 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.how-it-works__detail-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.how-it-works__detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .how-it-works__detail {
    margin-left: -16px;
    margin-right: -16px;
    padding: 20px 16px 24px;
  }
  .how-it-works__detail-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.how-it-works__detail-media {
  min-height: 200px;
  background: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  touch-action: none;
}

.how-it-works__zoom-wrap {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: move;
  touch-action: none;
}

.how-it-works__detail-img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.how-it-works__detail-body {
  min-width: 0;
}

.how-it-works__detail-step {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.how-it-works__detail-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

.how-it-works__detail-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.how-it-works__detail-text p {
  margin: 0 0 12px;
}

.how-it-works__detail-text p:last-child {
  margin-bottom: 0;
}
