.page {
  max-width: 1180px;
  margin: 0 auto;
}

/* Hero */
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f4c81 0%, #2a6fd6 55%, #4e8ef7 100%);
  color: #fff;
  box-shadow: 0 20px 50px rgba(15, 76, 129, 0.22);
  margin-bottom: 24px;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero .meta {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero .meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.heroActions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.backLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.backLink:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.submissionIdBadge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Summary cards */
.summaryGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summaryCard {
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 10px 28px rgba(15, 76, 129, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summaryCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 76, 129, 0.1);
}

.summaryCard span {
  display: block;
  color: #6c757d;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.summaryCard strong {
  display: block;
  color: #0f4c81;
  font-size: 1.05rem;
  line-height: 1.4;
  word-break: break-word;
}

.summaryCardPrimary {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  border-color: rgba(42, 111, 214, 0.15);
}

/* Panels */
.panel {
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 12px 30px rgba(15, 76, 129, 0.08);
  margin-bottom: 20px;
}

.panelHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf2fa;
}

.panelHead h2 {
  color: #0f4c81;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.panelHead p {
  color: #6c757d;
  font-size: 0.88rem;
}

.panelIcon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.panelIconBlue {
  background: #eef5ff;
}

.panelIconGreen {
  background: #eaf8ef;
}

.panelIconPurple {
  background: #f3eeff;
}

/* Rating grid */
.ratingGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.moduleRating {
  background: #f8fbff;
  border: 1px solid #e8eef8;
  border-radius: 16px;
  padding: 16px;
}

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

.moduleRatingHead span {
  font-weight: 700;
  color: #0f4c81;
  font-size: 0.95rem;
}

.moduleRatingHead strong {
  font-size: 0.88rem;
  color: #6c757d;
  font-weight: 600;
}

.moduleTrack {
  height: 8px;
  background: #edf2fa;
  border-radius: 999px;
  overflow: hidden;
}

.moduleFill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.fillExcellent { background: linear-gradient(90deg, #1e9e52, #28a745); }
.fillGood { background: linear-gradient(90deg, #2a6fd6, #4e8ef7); }
.fillAverage { background: linear-gradient(90deg, #e6a700, #ffc107); }
.fillBelow { background: linear-gradient(90deg, #e07b00, #fd7e14); }
.fillPoor { background: linear-gradient(90deg, #e4534b, #dc3545); }

/* Rating pills */
.ratingPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.pillExcellent { background: #eaf8ef; color: #1e7e34; }
.pillGood { background: #eef5ff; color: #0f4c81; }
.pillAverage { background: #fff8e1; color: #b8860b; }
.pillBelow { background: #fff3e6; color: #c45c00; }
.pillPoor { background: #fdecea; color: #c0392b; }

/* Recommendation badge */
.choiceBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.choiceRecommend { background: #eaf8ef; color: #1e7e34; }
.choiceExplore { background: #fff8e1; color: #9a7200; }
.choiceNotAdvise { background: #fdecea; color: #b02a37; }

/* Answer blocks */
.answerList {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.answerBlock {
  background: #f8fbff;
  border: 1px solid #e8eef8;
  border-radius: 16px;
  padding: 18px 20px;
}

.answerBlock span {
  display: block;
  color: #2a6fd6;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.answerBlock p {
  color: #333;
  line-height: 1.65;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.answerBlockEmpty p {
  color: #9aa5b1;
  font-style: italic;
}

.commentBlock {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px dashed #dce6f5;
}

/* Loading skeleton */
.loadingShell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skeletonHero,
.skeletonCard,
.skeletonPanel {
  border-radius: 20px;
  background: linear-gradient(90deg, #edf2fa 25%, #f7faff 50%, #edf2fa 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}

.skeletonHero {
  height: 140px;
}

.skeletonGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.skeletonCard {
  height: 96px;
}

.skeletonPanel {
  height: 220px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Error */
.errorBox {
  background: #fff3f3;
  border: 1px solid #f5c2c7;
  border-radius: 20px;
  padding: 32px;
  color: #842029;
  box-shadow: 0 12px 30px rgba(220, 53, 69, 0.08);
}

.errorBox h1 {
  color: #842029;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.errorBox p {
  color: #6c3a3f;
  line-height: 1.6;
  margin-bottom: 8px;
}

.errorBox a {
  color: #0f4c81;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 980px) {
  .summaryGrid,
  .ratingGrid,
  .skeletonGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    padding: 22px 20px;
  }

  .heroActions {
    align-items: flex-start;
    width: 100%;
  }

  .summaryGrid,
  .ratingGrid,
  .skeletonGrid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 20px 18px;
  }
}
