/* ===================== 09 결과 리포트 (사용자·관리자 공용) ===================== */
.report-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  padding: 0 80px;
  background: #fff;
}
.report-header-title {
  font-size: 14px;
  font-weight: 600;
}
.report-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.report-header-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 18px;
  text-align: right;
}
.report-header-meta .is-blue {
  color: var(--color-brand-blue);
  font-size: 11px;
  font-weight: 500;
}
.report-pdf-btn {
  height: 54px;
}
.report-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 80px 64px;
}

.report {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.rp-section,
.rp-cover,
.rp-footer {
  overflow: hidden;
  border-radius: 24px;
}
.rp-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: #fff;
}
.rp-section--blue {
  background: var(--color-bg-soft-blue);
}
.rp-section--lime {
  background: var(--color-bg-soft-lime);
}
.rp-section--ink {
  padding: 40px;
  background: var(--color-bg-ink);
  color: #fff;
}
.rp-section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rp-eyebrow {
  color: var(--color-brand-blue);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.rp-section--ink .rp-eyebrow {
  color: var(--color-brand-lime);
}
.rp-title {
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.4px;
}
.rp-desc,
.rp-body {
  color: var(--color-text-secondary);
}
.rp-desc {
  font-size: 16px;
  line-height: 26px;
}
.rp-body {
  font-size: 14px;
  line-height: 22px;
}
.rp-label {
  color: var(--color-brand-blue);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.2px;
}
.rp-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.2px;
}
.rp-chip--lime {
  background: var(--color-bg-soft-lime);
}
.rp-chip--blue {
  background: var(--color-bg-soft-blue);
}
.rp-link-row {
  display: flex;
  justify-content: flex-end;
  min-height: 32px;
  margin-top: auto;
}
.rp-empty {
  padding: 16px;
  border-radius: 14px;
  background: var(--color-bg-canvas);
  color: var(--color-text-secondary);
}

/* 00 표지 */
.rp-cover {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px;
  background: var(--color-bg-ink);
  color: #fff;
}
.rp-cover-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  flex: 1 1 736px;
}
.rp-cover-copy h2 {
  font-size: 40px;
  line-height: 50px;
  letter-spacing: -1px;
}
.rp-cover-desc {
  max-width: 700px;
  font-size: 18px;
  line-height: 30px;
}
.rp-cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rp-cover-snapshot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 400px;
  padding: 16px 28px;
}
.rp-cover-eyebrow {
  color: var(--color-brand-lime);
  font-size: 14px;
  font-weight: 500;
}
.rp-cover-headline {
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  letter-spacing: -0.4px;
}
.rp-cover-stats {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.rp-cover-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.rp-cover-stats div:last-child {
  border-bottom: 0;
}
.rp-cover-stats dt {
  font-size: 12px;
  letter-spacing: 0.1px;
  opacity: 0.58;
}
.rp-cover-stats dd {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
}

/* 01 */
.rp-insights,
.rp-cards3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.rp-insight,
.rp-priority {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 156px;
  padding: 14px 24px;
  border-radius: 16px;
  border: 1px solid var(--color-border-subtle);
  background: #fff;
}
.rp-insight {
  min-height: 180px;
}
.rp-insight h3,
.rp-priority h3,
.rp-plan h3,
.rp-detail h3,
.rp-check-col h3,
.rp-questions h3,
.rp-narrative h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: -0.2px;
}
.rp-support {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--color-bg-soft-lime);
  font-size: 16px;
  line-height: 26px;
}
.rp-support .dot {
  width: 10px;
  height: 10px;
  background: var(--color-status-positive);
}

/* 02 */
.rp-understanding {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.rp-narrative {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: auto;
  max-height: none;
  padding: 24px;
  border-radius: 16px;
  background: var(--color-bg-canvas);
  overflow: visible;
}
.rp-narrative p {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 26px;
}
.rp-narrative p + p {
  margin-top: 12px;
}
.rp-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.rp-facts div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 14px;
  background: var(--color-bg-soft-blue);
}
.rp-facts dt {
  color: var(--color-text-secondary);
  font-size: 12px;
}
.rp-facts dd {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
}
.report .keyword-list {
  gap: 8px;
}

/* 03 */
.rp-status-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}
.rp-status-tiles div {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  min-height: 92px;
  padding: 18px;
  border-radius: 14px;
  background: var(--color-bg-soft-blue);
}
.rp-status-tiles div.is-open-tile {
  background: var(--color-bg-soft-lime);
}
.rp-status-tiles div.is-past-tile {
  background: #f1edff;
}
.rp-status-tiles dt {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.rp-status-tiles dd {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
}
.rp-opps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rp-opp {
  display: grid;
  grid-template-columns: minmax(0, 270fr) minmax(0, 150fr) minmax(0, 370fr) minmax(0, 326fr);
  align-items: center;
  gap: 20px;
  min-height: 92px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--color-bg-canvas);
  border-left: 4px solid transparent;
}
.rp-opp--open {
  border-left-color: var(--color-status-positive);
}
.rp-opp--recentlyClosed {
  border-left-color: var(--color-brand-blue);
}
.rp-opp--past {
  border-left-color: #7b61d1;
}
.rp-opp h3 {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}
.rp-opp p,
.rp-opp small {
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 18px;
}
.rp-opp-status b {
  color: var(--color-brand-blue);
  font-size: 14px;
  font-weight: 500;
}
.rp-opp--open .rp-opp-status b {
  color: var(--color-status-positive);
}
.rp-opp--past .rp-opp-status b {
  color: #6a51bc;
}
.rp-opp-reason p {
  color: var(--color-text-primary);
  font-size: 14px;
  line-height: 22px;
}
.rp-opp-reason small {
  display: block;
}
.rp-opp-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rp-opp-action b {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.rp-opp-action small {
  color: var(--color-brand-blue);
}

/* 05 */
.rp-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rp-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-canvas);
}
.rp-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rp-detail-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: none;
  min-width: 240px;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--color-bg-soft-lime);
  text-align: center;
}
.rp-detail-status b {
  font-size: 14px;
  font-weight: 500;
}
.rp-detail-status span {
  color: var(--color-text-secondary);
  font-size: 12px;
}
.rp-detail-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.rp-detail-cols > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}
.rp-detail-cols > div + div {
  border-left: 1px solid var(--color-border-subtle);
}
.rp-detail-source {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rp-detail-source p {
  flex: 1;
  color: var(--color-text-secondary);
  font-size: 12px;
}

/* 06 */
.rp-plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 250px;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--color-border-subtle);
  background: #fff;
}
.rp-plan ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 22px;
}

/* 07 */
.rp-checklist,
.rp-questions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.rp-check-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rp-check-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rp-check-col li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-canvas);
}
.rp-check-col li p {
  font-size: 14px;
  line-height: 22px;
}
.rp-check-col li small {
  color: var(--color-text-secondary);
  font-size: 12px;
}
.rp-mark {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.rp-check-col--have .rp-mark {
  background: #26a96c;
}
.rp-check-col--need .rp-mark {
  background: #ff705d;
}

/* 08 */
.rp-story {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.rp-story li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--color-border-strong);
  background: #171a21;
}
.rp-story-num {
  color: var(--color-brand-lime);
  font-size: 12px;
  font-weight: 500;
}
.rp-story h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
}
.rp-story li p:last-child {
  font-size: 14px;
  line-height: 22px;
}
.rp-core {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 14px;
  background: var(--color-bg-soft-lime);
  color: var(--color-text-primary);
}
.rp-core .rp-label {
  color: var(--color-text-secondary);
}
.rp-core p:last-child {
  font-size: 18px;
  line-height: 30px;
}

/* 09 */
.rp-questions > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 16px;
  background: var(--color-bg-canvas);
}
.rp-questions li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 22px;
}
.rp-questions .dot {
  background: var(--color-brand-blue);
}

/* 10 */
.rp-table-wrap {
  overflow-x: auto;
}
.rp-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 22px;
  text-align: left;
}
.rp-table thead th {
  height: 42px;
  padding: 0 16px;
  background: var(--color-bg-canvas);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.rp-table thead th:first-child {
  width: 35.5%;
  border-radius: 10px 0 0 10px;
}
.rp-table thead th:nth-child(2) {
  width: 15.2%;
}
.rp-table thead th:last-child {
  border-radius: 0 10px 10px 0;
}
.rp-table tbody th,
.rp-table tbody td {
  height: 47px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--color-border-subtle);
  vertical-align: middle;
  font-weight: 400;
}
.rp-table tbody td {
  color: var(--color-text-secondary);
}
.rp-table tbody a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rp-caution {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 18px;
  border-radius: 12px;
  background: var(--color-bg-canvas);
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 22px;
}
.rp-caution .dot {
  width: 10px;
  height: 10px;
  background: var(--color-text-secondary);
}

/* 11 하단 (사용자) */
.rp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px;
  background: var(--color-bg-soft-lime);
}
.rp-footer-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}
.rp-footer-message {
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.4px;
}
.rp-footer-copy .rp-body {
  font-size: 16px;
  line-height: 26px;
}
.rp-footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex: none;
}
.rp-pdf-secondary {
  height: 54px;
}
/* 09 하단 상담 CTA: 충분히 크고 줄바꿈되지 않게 */
.rp-consult {
  min-width: 220px;
  height: 58px;
  padding: 0 32px;
  font-size: 16.25px;
}

/* 관리자: 감성 푸터 대신 큰 검정 PDF 버튼만 */
.rp-admin-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  border-radius: 36px;
  background: var(--color-ink-button);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  white-space: pre;
}
.rp-admin-pdf:hover {
  background: #2a2c33;
}
.rp-admin-pdf:disabled {
  opacity: 0.7;
  cursor: progress;
}

@media (max-width: 1279px) {
  .report-header {
    padding: 0 40px;
  }
  .report-page {
    padding: 32px 40px 48px;
  }
  .rp-cover {
    flex-direction: column;
    align-items: stretch;
  }
  .rp-cover-snapshot {
    flex: none;
    padding: 0;
  }
  .rp-facts {
    grid-template-columns: 1fr 1fr;
  }
  .rp-opp {
    grid-template-columns: 1fr 1fr;
  }
  .rp-story {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1023px) {
  .report-header {
    grid-template-columns: auto 1fr;
    height: 64px;
  }
  .report-header-title,
  .report-header-meta {
    display: none;
  }
  .rp-insights,
  .rp-cards3,
  .rp-detail-cols,
  .rp-checklist,
  .rp-questions,
  .rp-status-tiles {
    grid-template-columns: 1fr;
  }
  .rp-detail-cols > div + div {
    border-left: 0;
    border-top: 1px solid var(--color-border-subtle);
  }
  .rp-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .rp-footer-actions {
    align-items: stretch;
  }
}
@media (max-width: 767px) {
  .report-header {
    padding: 0 16px;
  }
  .report-pdf-btn {
    height: 44px;
    padding: 0 18px;
  }
  .report-page {
    padding: 20px 16px 40px;
  }
  .report {
    gap: 18px;
  }
  .rp-section,
  .rp-section--ink,
  .rp-cover,
  .rp-footer {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .rp-cover-copy h2 {
    font-size: 28px;
    line-height: 36px;
  }
  .rp-cover-desc {
    font-size: 15px;
    line-height: 25px;
  }
  .rp-cover-headline,
  .rp-title,
  .rp-footer-message {
    font-size: 22px;
    line-height: 30px;
  }
  .rp-opp,
  .rp-story,
  .rp-facts {
    grid-template-columns: 1fr;
  }
  .rp-opp {
    gap: 8px;
  }
  .rp-detail-head,
  .rp-opp-action,
  .rp-detail-source {
    flex-direction: column;
    align-items: stretch;
  }
  .rp-detail-status {
    min-width: 0;
  }
  .rp-consult {
    width: 100%;
  }
  .rp-admin-pdf {
    min-height: 60px;
    font-size: 16px;
  }
}

/* 03 모집 예정 구간 (브랜드 코랄) */
.rp-status-tiles--4 {
  grid-template-columns: repeat(4, 1fr);
}
.rp-status-tiles div.is-upcoming-tile {
  background: #fff1ee;
}
.rp-opp--upcoming {
  border-left-color: var(--color-brand-coral);
}
.rp-opp--upcoming .rp-opp-status b {
  color: #b33f2b; /* #f6f5ef 위 5.25:1 */
}

/* 03 구간 넘침 안내: 강한 매칭이 20개를 넘은 구간의 마지막 행 뒤에만 붙는다. */
.rp-overflow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 16px 12px 20px;
  border-radius: 14px;
  border: 1px dashed var(--color-border-strong);
  background: var(--color-bg-surface);
}
.rp-overflow-message {
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.rp-overflow-cta {
  flex: none;
  /* 기본 상담 CTA(.consult-cta)와 같은 최소 터치 영역 44px을 유지한다 (채움 모션·배경은 기본 규칙 그대로). */
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
}
@media (max-width: 1023px) {
  .rp-status-tiles--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .rp-status-tiles--4 {
    grid-template-columns: 1fr;
  }
  .rp-overflow {
    flex-direction: column;
    align-items: stretch;
  }
}
