.header-analyzer-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0 40px;
}

/* 상단 */
.header-analyzer-page .utility-top {
  text-align: center;
  padding: 30px 20px 28px;
}

.header-analyzer-page .utility-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.header-analyzer-page .utility-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.header-analyzer-page .utility-desc {
  max-width: 780px;
  margin: 16px auto 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}

/* 요약 */
.header-summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.header-summary-item {
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.header-summary-item::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.header-summary-item strong {
  display: block;
  margin-bottom: 7px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.header-summary-item span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

/* 카드 */
.header-input-card,
.header-score-card,
.header-result-card,
.header-parsed-card,
.header-detail-card {
  padding: 28px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.header-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.header-card-head h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.header-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.header-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 입력 */
.header-analyzer-page .utility-field-label {
  display: block;
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.header-input {
  width: 100%;
  min-height: 320px;
  box-sizing: border-box;
  border-radius: 22px;
  resize: vertical;
  line-height: 1.9;
  font-size: 14px;
  font-family:
    Consolas,
    Monaco,
    "SFMono-Regular",
    "Courier New",
    monospace;
}

.header-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

/* 버튼 */
.header-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.header-analyzer-page .utility-btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
}

.header-analyzer-page .utility-btn-primary {
  border-color: #0f172a;
  background: linear-gradient(135deg, #0f172a, #2563eb);
  color: #ffffff;
}

.header-analyzer-page .utility-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

/* 점수 카드 */
.header-score-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.header-score-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-score-main strong {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.header-score-main p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}

.header-score-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  min-width: 160px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 58%, transparent 59%),
    conic-gradient(#2563eb 0deg, #dbeafe 0deg);
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.14),
    0 16px 36px rgba(37, 99, 235, 0.12);
}

.header-score-ring span {
  color: #0f172a;
  font-size: 28px;
  font-weight: 900;
}

/* 상태 */
.header-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.header-status-badge.is-ready {
  background: #f1f5f9;
  color: #475569;
}

.header-status-badge.is-success {
  background: #dbeafe;
  color: #1d4ed8;
}

.header-status-badge.is-error {
  background: #fee2e2;
  color: #b91c1c;
}

/* 체크 결과 */
.header-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.header-check-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #f8fafc;
}

.header-check-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
}

.header-check-card.is-good::before {
  background: #22c55e;
}

.header-check-card.is-warning::before {
  background: #f59e0b;
}

.header-check-card.is-danger::before {
  background: #ef4444;
}

.header-check-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.header-check-top strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.header-check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.header-check-badge.is-good {
  background: #dcfce7;
  color: #166534;
}

.header-check-badge.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.header-check-badge.is-danger {
  background: #fee2e2;
  color: #991b1b;
}

.header-check-card p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.8;
}

/* 파싱 테이블 */
.header-parsed-table {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
}

.header-parsed-head,
.header-parsed-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 20px;
}

.header-parsed-head {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: #f8fafc;
}

.header-parsed-head strong {
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.header-parsed-row {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: #ffffff;
}

.header-parsed-row:last-child {
  border-bottom: none;
}

.header-parsed-key {
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  word-break: break-word;
}

.header-parsed-value {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.8;
  word-break: break-word;
}

/* 결과 박스 */
.header-result-box {
  min-height: 360px;
  max-height: 760px;
  overflow: auto;
  margin-top: 18px;
  padding: 24px;
  border-radius: 20px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.9;
  font-size: 14px;
  font-family:
    Consolas,
    Monaco,
    "SFMono-Regular",
    "Courier New",
    monospace;
}

.header-result-box.is-ready {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #f8fafc;
  color: #64748b;
}

.header-result-box.is-success {
  border: 1px solid rgba(37, 99, 235, 0.22);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #dbeafe;
}

.header-result-box.is-error {
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: #fef2f2;
  color: #991b1b;
}

.header-empty-result {
  padding: 52px 20px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  background: #ffffff;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
}

/* 도움말 */
.header-analyzer-page .help-panel {
  margin-top: 30px;
}

.header-analyzer-page .help-panel > h2 {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.header-analyzer-page .help-box {
  border-radius: 22px;
}

.header-analyzer-page code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

/* 반응형 */
@media (max-width: 1080px) {
  .header-check-grid {
    grid-template-columns: 1fr;
  }

  .header-score-main {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 980px) {
  .header-summary-card {
    grid-template-columns: 1fr;
  }

  .header-parsed-head,
  .header-parsed-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-analyzer-page {
    padding: 0 0 28px;
  }

  .header-analyzer-page .utility-top {
    padding: 24px 14px 22px;
  }

  .header-input-card,
  .header-score-card,
  .header-result-card,
  .header-parsed-card,
  .header-detail-card {
    padding: 22px;
    border-radius: 22px;
  }

  .header-card-head {
    flex-direction: column;
    gap: 14px;
  }

  .header-head-actions,
  .header-action-row {
    width: 100%;
    flex-direction: column;
  }

  .header-head-actions .utility-btn,
  .header-action-row .utility-btn {
    width: 100%;
  }

  .header-input {
    min-height: 260px;
    font-size: 13px;
  }

  .header-score-ring {
    width: 130px;
    height: 130px;
    min-width: 130px;
  }

  .header-score-ring span {
    font-size: 22px;
  }

  .header-result-box {
    min-height: 280px;
    font-size: 13px;
  }

  .header-analyzer-page .utility-title {
    font-size: 34px;
  }
}