/* ============================================================
   병원 합격 예측 — 결과 화면 · 처음 질문 틀 (2026-10-25 리뉴얼)
   결론 한 줄 → 정확도 한 줄(누르면 추가 질문) → 왼쪽 병원 목록 + 오른쪽 병원 패널.
   틀 · 높이 규칙은 성장 이야기(css/growth_story.css)와 같다: PC(1024~) 2칸 · 칸 안 스크롤, 그 아래는 목록 + 아래에서 올라오는 시트.
   부품은 디자인 가이드 4-3 리스트(56px 줄 · 1px 구분 · 회색 꺾쇠) · 4-4 칩/배지 · 4-6 시트 · 4-9 잠금(자물쇠 + 「구독하면 열려요」) · 4-17 「더 보기」.
   레퍼런스: 캐치 AI매칭 공고(구간마다 몇 곳 + 더 보기) · 잡플래닛 잠금(이름은 보이고 값만 가림, 안내는 한 번) · 토스 대출 비교(파란 상태 한 줄 → 결론)
   ============================================================ */
#hp-predict {--hr-brand: var(--fill-brand, #2097FF); --hr-act: var(--fill-action, #006CD4); --hr-act-h: var(--fill-action-hover, #0063C3); --hr-p50: var(--color-primary-50, #E8F4FF); --hr-ptxt: #0052A8; --hr-t0: #0F172A; --hr-t1: var(--text-primary, #1E293B); --hr-t2: var(--text-secondary, #5B6B82); --hr-t3: var(--color-gray-400, #94A3B8); --hr-line: var(--border-light, #E2E8F0); --hr-line-in: var(--color-gray-300, #CBD5E1); --hr-sub: var(--bg-subtle, #F1F5F9); --hr-g50: var(--color-gray-50, #F8FAFC); --hr-chip-on: #1E293B; --hr-chip-off: #475569; --hr-ok: #15803D; --hr-err: #DC2626; --hr-warn-bg: #FEF3C7; --hr-warn-t: #92400E; --hr-shadow: var(--shadow-float, 0 8px 24px rgba(15,23,42,.12));}
#hp-predict .hp-r-intro, #hp-predict .hp-acc, #hp-predict .hp-r-cols, #hp-predict .hp-wait {word-break: keep-all;}
#hp-predict .hp-i {flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;}
/* 결과가 나오면 처음 화면의 설명 제목은 결과 머리로 바뀐다 */
#hp-predict.hp-has-result .hp-tab-intro-group {display: none;}

/* ── 결과 머리: 상태 제목 20 + 회색 한 줄 ── */
#hp-predict .hp-r-intro {display: flex; align-items: flex-end; gap: 16px; margin: 0 0 16px;}
#hp-predict .hp-r-intro-body {flex: 1; min-width: 0;}
#hp-predict .hp-r-title {margin: 0; font-size: 20px; line-height: 1.4; font-weight: 700; letter-spacing: -.015em; color: var(--hr-t0);}
#hp-predict .hp-r-title em {font-style: normal; color: var(--hr-act);}
#hp-predict .hp-r-sub {margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--hr-t2);}
#hp-predict .hp-r-links {display: flex; gap: 16px; flex: none;}
#hp-predict .hp-r-link {min-height: 44px; padding: 0; border: 0; background: none; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--hr-act); cursor: pointer; white-space: nowrap;}
#hp-predict .hp-result-assume-note {margin: -4px 0 16px; padding: 12px 14px; border-radius: 8px; background: var(--hr-g50); font-size: 13px; line-height: 1.5; color: var(--hr-t2);}
#hp-predict .hp-result-disclaimer {margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--hr-line); font-size: 13px; line-height: 1.5; color: var(--hr-t3); text-align: left;}

/* ── 정확도: 한 줄 카드 → 펼치면 질문(레일) ── */
#hp-predict .hp-acc {margin: 0 0 16px; border: 1px solid var(--hr-line); border-radius: 12px; background: #fff;}
#hp-predict .hp-acc-row {display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 10px 16px 10px 20px; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; color: var(--hr-t1);}
#hp-predict .hp-acc-num {flex: none; display: inline-flex; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 600;}
#hp-predict .hp-acc-num b {font-size: 20px; font-weight: 700; letter-spacing: -.02em;}
#hp-predict .hp-acc .hp-accuracy-track {flex: none; display: block; width: 120px; height: 6px; border-radius: 999px; background: var(--hr-sub); overflow: hidden;}
#hp-predict .hp-acc .hp-accuracy-fill {display: block; height: 100%; border-radius: 999px; background: var(--hr-brand); transition: width .5s ease;}
#hp-predict .hp-acc .hp-accuracy-desc {flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.5; color: var(--hr-t2);}
#hp-predict .hp-acc-btn {flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border: 1px solid var(--hr-line-in); border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--hr-t1);}
#hp-predict .hp-acc-row:hover .hp-acc-btn {background: var(--hr-g50);}
#hp-predict .hp-acc-chev {display: none; flex: none; width: 16px; height: 16px; fill: none; stroke: var(--hr-t3); stroke-width: 1.5; stroke-linecap: round;}
#hp-predict .hp-acc.is-done .hp-acc-btn, #hp-predict .hp-acc.is-done .hp-acc-chev {display: none;}
#hp-predict .hp-acc.is-open .hp-acc-btn {background: var(--hr-sub); border-color: var(--hr-sub);}
#hp-predict .hp-acc:not(.is-open) .hp-rail {display: none;}
#hp-predict .hp-acc .hp-rail {margin: 0; padding: 16px 20px 18px; border-top: 1px solid var(--hr-line); border-radius: 0; background: none;}
#hp-predict .hp-rail-head {display: flex; align-items: center; gap: 8px; margin-bottom: 10px;}
#hp-predict .hp-rail-title {font-size: 13px; font-weight: 600; color: var(--hr-t2);}
#hp-predict .hp-rail-count {font-size: 13px; font-weight: 600; color: var(--hr-t3);}
#hp-predict .hp-rail-close {margin-left: auto; min-height: 44px; padding: 0 4px; border: 0; background: none; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--hr-t2); cursor: pointer;}
#hp-predict .hp-rail-done {padding: 14px 16px; border-radius: 8px; background: var(--hr-g50); font-size: 14px; line-height: 1.5; color: var(--hr-t2);}
#hp-predict .hp-acc .hp-booster, #hp-predict #hp-rail-slot .hp-booster {margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;}
#hp-predict .hp-acc .hp-booster-q {font-size: 16px; font-weight: 600; color: var(--hr-t1);}
#hp-predict .hp-acc .hp-booster-help {font-size: 13px; color: var(--hr-t2);}
#hp-predict .hp-acc .hp-chip-group {display: flex; flex-wrap: wrap; gap: 8px;}
#hp-predict .hp-acc .hp-chip-grid {display: flex;}
#hp-predict .hp-acc .hp-chip, #hp-predict .hp-acc .hp-chip-grid .hp-chip {width: auto; min-height: 36px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--hr-sub); color: var(--hr-chip-off); font-size: 14px; font-weight: 500;}
#hp-predict .hp-acc .hp-chip:hover {background: var(--hr-line);}
#hp-predict .hp-acc .hp-chip.active, #hp-predict .hp-acc .hp-chip[aria-pressed="true"], #hp-predict .hp-acc .hp-chip[aria-checked="true"] {background: var(--hr-chip-on); color: #fff; font-weight: 600;}
#hp-predict .hp-acc .hp-booster-foot {justify-content: flex-end; margin-top: 14px;}
#hp-predict .hp-acc .hp-booster-apply {flex: none; min-height: 44px; padding: 0 16px; border-radius: 8px; background: var(--hr-act); font-size: 14px; font-weight: 600;}
#hp-predict .hp-acc .hp-booster-apply:hover {background: var(--hr-act-h);}
#hp-predict .hp-acc .hp-booster-skip {order: -1; color: var(--hr-t2); font-size: 14px;}
#hp-predict .hp-acc .hp-booster-gain {color: #fff; opacity: .85; font-weight: 600;}
#hp-predict .hp-sheet-grab {display: none;}
/* 키보드 초점(마우스 클릭엔 안 보임) · 점수 숫자 폭 맞춤 */
#hp-predict .hp-r-row:focus-visible, #hp-predict .hp-r-more:focus-visible, #hp-predict .hp-acc-row:focus-visible, #hp-predict .hp-p-btn:focus-visible, #hp-predict .hp-p-tbtn:focus-visible, #hp-predict .hp-r-link:focus-visible, #hp-predict .hp-r-back:focus-visible, #hp-predict .hp-p-report:focus-visible, #hp-predict .hp-rail-close:focus-visible {outline: 2px solid var(--hr-act); outline-offset: 2px;}
#hp-predict .hp-r-row-s, #hp-predict .hp-p-score b, #hp-predict .hp-p-fit b, #hp-predict .hp-r-rank, #hp-predict .hp-acc-num b {font-variant-numeric: tabular-nums;}

/* ── 본문 2칸 — 왼쪽 목록 ── */
#hp-predict .hp-r-cols {display: block;}
#hp-predict .hp-r-left {min-width: 0;}
#hp-predict .hp-r-lh h3 {margin: 0; font-size: 20px; line-height: 1.4; font-weight: 700; color: var(--hr-t0);}
#hp-predict .hp-r-lh h3 em {font-style: normal; color: var(--hr-act); margin-left: 6px;}
#hp-predict .hp-r-sort {margin: 2px 0 12px; font-size: 13px; line-height: 1.5; color: var(--hr-t2);}
/* 구간 칩(4-4) — 한 줄 · 넘치면 옆으로(오른쪽 끝만 흐리게) */
#hp-predict .hp-filter-tabs {display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 -16px; padding: 0 16px; overflow-x: auto; border: 0; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);}
#hp-predict .hp-filter-tabs::-webkit-scrollbar {display: none;}
#hp-predict .hp-filter-tab {flex: none; display: inline-flex; align-items: center; gap: 4px; height: 36px; margin: 0; padding: 0 14px; border: 0; border-radius: 999px; background: var(--hr-sub); color: var(--hr-chip-off); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;}
#hp-predict .hp-filter-tab::after {display: none;}
#hp-predict .hp-filter-tab:hover {background: var(--hr-line);}
#hp-predict .hp-filter-tab b {font-weight: 600;}
#hp-predict .hp-filter-tab .hp-i {width: 14px; height: 14px; color: var(--hr-t3);}
#hp-predict .hp-filter-tab.active {background: var(--hr-chip-on); color: #fff; font-weight: 600;}
#hp-predict .hp-filter-tab.disabled {background: var(--hr-g50); color: var(--hr-line-in); cursor: default;}
/* 묶음 제목 = 구간 + 점수 범위(「무슨 점수 순인지」) */
#hp-predict .hp-r-gh {display: flex; align-items: center; gap: 8px; margin: 20px 0 4px;}
#hp-predict .hp-r-gh h4 {margin: 0; font-size: 15px; font-weight: 600; color: var(--hr-t1);}
#hp-predict .hp-r-gh span {font-size: 13px; color: var(--hr-t2);}
#hp-predict .hp-r-gh .hp-badge {margin-left: auto;}
#hp-predict .hp-r-gnote {margin: 0 0 2px; font-size: 13px; line-height: 1.5; color: var(--hr-t2);}
#hp-predict .hp-r-empty {padding: 32px 0; font-size: 14px; color: var(--hr-t2); text-align: center;}
/* 리스트 줄(4-3): 56px · 1px 구분 · 회색 꺾쇠 */
#hp-predict .hp-r-row {display: flex; align-items: center; gap: 12px; width: calc(100% + 16px); min-height: 56px; margin: 0 -8px; padding: 8px; border: 0; border-bottom: 1px solid var(--hr-line); border-radius: 8px; background: none; font-family: inherit; text-align: left; color: var(--hr-t1); cursor: pointer;}
#hp-predict .hp-r-row:hover {background: var(--hr-g50);}
#hp-predict .hp-r-row.on {background: var(--hr-sub);}
#hp-predict .hp-r-row > .hp-i {color: var(--hr-t3);}
#hp-predict .hp-r-row-b {flex: 1; min-width: 0;}
#hp-predict .hp-r-row-n {display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
#hp-predict .hp-r-row-m {display: block; font-size: 13px; color: var(--hr-t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
#hp-predict .hp-r-row-m em {font-style: normal; color: var(--hr-err);}
#hp-predict .hp-r-row-s {flex: none; font-size: 15px; font-weight: 700;}
#hp-predict .hp-r-row-s small {font-size: 13px; font-weight: 500; margin-left: 1px;}
#hp-predict .hp-r-row.is-block .hp-r-row-s {color: var(--hr-t3);}
/* 잠긴 줄 — 순위 · 이름은 보이고 점수만 가림, 꺾쇠 자리에 자물쇠 */
#hp-predict .hp-r-row.is-locked .hp-r-row-s {color: var(--hr-t3); font-weight: 600;}
#hp-predict .hp-r-row.is-locked > .hp-i {color: var(--hr-t2);}
#hp-predict .hp-r-rank {flex: none; min-width: 28px; font-size: 13px; font-weight: 600; color: var(--hr-t3);}
#hp-predict .hp-r-more {display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; margin-top: 12px; border: 1px solid var(--hr-line-in); border-radius: 8px; background: #fff; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--hr-t1); cursor: pointer;}
#hp-predict .hp-r-more:hover {background: var(--hr-g50);}
#hp-predict .hp-r-hidden {padding: 16px 0 4px; text-align: center;}
#hp-predict .hp-r-hidden p {margin: 0; font-size: 14px; line-height: 1.5; color: var(--hr-t2);}
#hp-predict .hp-r-hidden p b {font-weight: 600; color: var(--hr-t1);}
/* 배지(4-4): 22 · 13/600 · full */
#hp-predict .hp-badge {display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--hr-sub); color: var(--hr-t2); font-size: 13px; font-weight: 600; white-space: nowrap;}
#hp-predict .hp-badge .hp-i {width: 13px; height: 13px;}
#hp-predict .hp-badge.b {background: var(--hr-p50); color: var(--hr-ptxt);}
#hp-predict .hp-badge.w {background: var(--hr-warn-bg); color: var(--hr-warn-t);}

/* ── 병원 패널 ── */
#hp-predict .hp-r-panel {display: none; min-width: 0;}
#hp-predict .hp-r-back {display: none;}
#hp-predict .hp-p-head {display: flex; align-items: center; gap: 12px;}
#hp-predict .hp-p-logo {flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--hr-line); border-radius: 8px; background: var(--hr-g50); overflow: hidden; font-size: 13px; font-weight: 700; color: var(--hr-t2);}
#hp-predict .hp-p-logo img {width: 100%; height: 100%; object-fit: contain; background: #fff;}
#hp-predict .hp-p-name {flex: 1; min-width: 0;}
#hp-predict .hp-p-name p {margin: 0; font-size: 20px; line-height: 1.4; font-weight: 700; color: var(--hr-t0);}
#hp-predict .hp-p-name span {font-size: 13px; color: var(--hr-t2);}
#hp-predict .hp-p-score {flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px;}
#hp-predict .hp-p-score b {font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: var(--hr-act);}
#hp-predict .hp-p-score b small {font-size: 15px; font-weight: 600; margin-left: 2px;}
#hp-predict .hp-p-score b.g-excellent {color: var(--hr-ok);}
#hp-predict .hp-p-score b.g-challenge {color: #B45309;}
#hp-predict .hp-p-score b.g-difficult {color: var(--hr-err);}
#hp-predict .hp-p-score b.is-muted {color: var(--hr-t3);}
#hp-predict .hp-p-lead {margin-top: 20px; padding: 16px 0 20px; border-top: 1px solid var(--hr-line);}
#hp-predict .hp-p-lead small {display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; color: var(--hr-act);}
#hp-predict .hp-p-lead.is-block small {color: var(--hr-err);}
#hp-predict .hp-p-lead p {margin: 0; font-size: 18px; line-height: 1.5; font-weight: 700; color: var(--hr-t0);}
#hp-predict .hp-p-sec {padding: 20px 0; border-top: 1px solid var(--hr-line);}
#hp-predict .hp-p-sh {display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px;}
#hp-predict .hp-p-sh h4 {margin: 0; font-size: 16px; font-weight: 600; color: var(--hr-t1);}
#hp-predict .hp-p-sh small {font-size: 13px; color: var(--hr-t3); text-align: right;}
#hp-predict .hp-p-way .hp-r-row-n {font-weight: 500;}
#hp-predict .hp-p-way .hp-r-row-s {color: var(--hr-ok);}
#hp-predict .hp-p-way.is-key .hp-r-row-s {color: var(--hr-err); font-size: 14px;}
#hp-predict .hp-p-way:last-child {border-bottom: 0;}
/* 내 점수 — 항목 왼쪽 · 점수 오른쪽(4-3 리스트 줄), 2칸 */
#hp-predict .hp-p-fit {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 4px 0 0; padding: 0; list-style: none;}
#hp-predict .hp-p-fit li {display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 44px; border-bottom: 1px solid var(--hr-line);}
#hp-predict .hp-p-fit li span {min-width: 0; font-size: 15px; color: var(--hr-t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
#hp-predict .hp-p-fit li b {flex: none; font-size: 16px; font-weight: 700; color: var(--hr-t1);}
#hp-predict .hp-p-fit li.is-na b {color: var(--hr-t3); font-weight: 500;}
/* 준비할 것 — 제목 + 회색 한 줄, 3개 + 더 보기 */
#hp-predict .hp-p-todo ul {margin: 0; padding: 0; list-style: none;}
#hp-predict .hp-p-todo li {padding: 10px 0; border-bottom: 1px solid var(--hr-line);}
#hp-predict .hp-p-todo li:last-child {border-bottom: 0;}
#hp-predict .hp-p-todo:not(.is-all) li:nth-child(n+4) {display: none;}
#hp-predict .hp-p-todo li b {display: block; font-size: 15px; font-weight: 500; color: var(--hr-t1);}
#hp-predict .hp-p-todo li span {display: block; font-size: 13px; line-height: 1.5; color: var(--hr-t2);}
#hp-predict .hp-p-tbtn {display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0; border: 0; background: none; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--hr-t2); cursor: pointer;}
/* 병원 정보 탭 → 가이드 칩 */
#hp-predict .hp-r-panel .hp-info-tabs {gap: 8px;}
#hp-predict .hp-r-panel .hp-info-tab {height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--hr-sub); color: var(--hr-chip-off); font-size: 14px; font-weight: 500;}
#hp-predict .hp-r-panel .hp-info-tab.is-active {background: var(--hr-chip-on); color: #fff; font-weight: 600;}
#hp-predict .hp-r-panel .hp-info-row {border-bottom-color: var(--hr-line);}
/* 버튼 줄 — 주 버튼 하나(4-2) */
#hp-predict .hp-p-foot {display: flex; align-items: center; gap: 8px; padding: 16px 0 20px; border-top: 1px solid var(--hr-line); background: #fff;}
#hp-predict .hp-p-btn {display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border: 1px solid var(--hr-line-in); border-radius: 8px; background: #fff; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--hr-t1); text-decoration: none; white-space: nowrap; cursor: pointer;}
#hp-predict .hp-p-btn:hover {background: var(--hr-g50);}
#hp-predict .hp-p-btn.is-primary {flex: 1; background: var(--hr-act); border-color: var(--hr-act); color: #fff;}
#hp-predict .hp-p-btn.is-primary:hover {background: var(--hr-act-h); border-color: var(--hr-act-h);}
#hp-predict .hp-p-btn.is-w {width: 100%;}
#hp-predict .hp-p-report {margin-left: auto; min-height: 44px; padding: 0 8px; border: 0; background: none; font-family: inherit; font-size: 13px; color: var(--hr-t3); cursor: pointer;}
/* 잠긴 병원 패널 — 결과 자리를 흐린 회색 줄로 깔고 위에 권유 한 장(잡플래닛 리뷰 잠금) */
#hp-predict .hp-p-locked {margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hr-line);}
#hp-predict .hp-p-locked .hp-offer {width: min(400px, 100%); margin: 0 auto; padding: 24px; border: 1px solid var(--hr-line); border-radius: 16px; background: #fff; box-shadow: var(--hr-shadow);}
#hp-predict .hp-offer-t {margin: 0; font-size: 18px; line-height: 1.45; font-weight: 700; color: var(--hr-t0);}
#hp-predict .hp-offer-s {margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--hr-t2);}
#hp-predict .hp-offer-li {margin: 16px 0; padding: 0; list-style: none;}
#hp-predict .hp-offer-li li {display: flex; gap: 8px; padding: 5px 0; font-size: 14px; line-height: 1.5; color: var(--hr-t1);}
#hp-predict .hp-offer-li .hp-i {margin-top: 3px; color: var(--hr-act);}
#hp-predict .hp-offer-price {display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 12px 0; border-top: 1px solid var(--hr-line);}
#hp-predict .hp-offer-price span {font-size: 13px; color: var(--hr-t2);}
#hp-predict .hp-offer-price b {font-size: 18px; font-weight: 700; color: var(--hr-t0); white-space: nowrap;}
#hp-predict .hp-offer-ways {margin: 16px 0 0; padding: 4px 16px; border-radius: 12px; background: var(--hr-g50);}
#hp-predict .hp-offer-ways p {margin: 8px 0 2px; font-size: 13px; font-weight: 600; color: var(--hr-t2);}
#hp-predict .hp-offer-ways ul {margin: 0; padding: 0; list-style: none;}
#hp-predict .hp-offer-ways li {display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; color: var(--hr-t1);}
#hp-predict .hp-offer-ways li + li {border-top: 1px solid var(--hr-line);}
#hp-predict .hp-offer-ways li span {flex: 1; min-width: 0;}
#hp-predict .hp-offer-ways li b {font-weight: 600; color: var(--hr-ok); font-variant-numeric: tabular-nums;}
#hp-predict .hp-offer-ways li .hp-i {width: 14px; height: 14px; color: var(--hr-t3);}
#hp-predict .hp-r-free {display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; padding: 0 16px 8px; font-size: 13px; color: var(--hr-t2);}
#hp-predict .hp-r-free span {margin-right: auto;}
#hp-predict .hp-offer-close {display: flex; width: 100%;}

/* ── 처음 질문 — 결과 화면과 같은 2칸 틀(왼쪽 질문 · 오른쪽 결과 자리) ── */
#hp-predict .hp-wait {display: none;}
#hp-predict .hp-step1 .hp-qdots {flex: 1; display: flex; gap: 6px; margin-right: 12px;}
#hp-predict .hp-step1 .hp-qdot {flex: 1; width: auto; height: 4px; border-radius: 999px; background: var(--hr-sub);}
#hp-predict .hp-step1 .hp-qdot.is-on {background: var(--hr-brand);}
#hp-predict .hp-step1 .hp-qcount {font-size: 13px; font-weight: 600; color: var(--hr-t3);}
#hp-predict .hp-step1 .hp-q-title {font-size: 20px; font-weight: 700; color: var(--hr-t0);}
#hp-predict .hp-step1 .hp-q-sub {font-size: 14px; color: var(--hr-t2);}
#hp-predict .hp-step1 .hp-q-next {border-radius: 8px; background: var(--hr-act); font-size: 16px; font-weight: 600;}
#hp-predict .hp-step1 .hp-q-next:hover {background: var(--hr-act-h);}
#hp-predict .hp-step1 .hp-q-prev {border-color: var(--hr-line-in); border-radius: 8px; font-weight: 600; color: var(--hr-t1);}
#hp-predict .hp-step1 .hp-step1-foot {font-size: 13px; color: var(--hr-t2);}
#hp-predict .hp-step1 .hp-uni-confirm {border-color: var(--hr-line); border-radius: 8px; background: var(--hr-g50);}
#hp-predict .hp-wait-title {margin: 0; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--hr-t0);}
#hp-predict .hp-wait-desc {margin: 4px 0 16px; font-size: 14px; line-height: 1.5; color: var(--hr-t2);}
#hp-predict .hp-wait-list {margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hr-line);}
#hp-predict .hp-wait-list li {display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--hr-line); font-size: 15px; font-weight: 500; color: var(--hr-t1);}
#hp-predict .hp-wait-list li span {font-size: 13px; color: var(--hr-t2);}
/* 남는 자리 = 결과 목록이 들어올 모양(잠긴 병원 패널의 흐린 줄과 같은 표현), 아래로 갈수록 흐려진다 */
#hp-predict .hp-wait-skel {flex: 1; min-height: 0; margin-top: 24px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent);}
#hp-predict .hp-wait-skel i {display: flex; align-items: center; justify-content: space-between; height: 56px; border-bottom: 1px solid var(--hr-line);}
#hp-predict .hp-wait-skel i::before, #hp-predict .hp-wait-skel i::after {content: ''; height: 12px; border-radius: 4px; background: var(--hr-sub);}
#hp-predict .hp-wait-skel i::before {width: 45%;}
#hp-predict .hp-wait-skel i::after {width: 40px;}
#hp-predict .hp-wait-skel i:nth-child(even)::before {width: 32%;}
/* 선택 항목 한 번에 입력하기 — 카드 대신 1px 구분 줄, 칩은 결과 화면 질문(.hp-acc)과 같은 36px 알약 */
#hp-predict #hp-more-fold > summary {flex-wrap: wrap; min-height: 56px; padding: 12px 20px; font-size: 15px; color: var(--hr-t1);}
#hp-predict .hp-fold-t {white-space: nowrap;}
#hp-predict #hp-more-fold > summary small {order: 3; flex-basis: 100%; margin: 2px 0 0; font-size: 13px; font-weight: 500; color: var(--hr-t2);}
/* 머리 줄 오른쪽 = 지금 정확도(결과 화면 정확도 줄과 같은 숫자 · 막대), 고를 때마다 바로 바뀐다 */
#hp-predict .hp-fold-acc {flex: none; display: inline-flex; align-items: center; gap: 6px; margin: 0 12px 0 auto; font-size: 13px; font-weight: 600; color: var(--hr-t2);}
#hp-predict .hp-fold-acc b {font-size: 16px; font-weight: 700; color: var(--hr-act); font-variant-numeric: tabular-nums;}
#hp-predict .hp-fold-track {display: block; width: 64px; height: 6px; border-radius: 999px; background: var(--hr-sub); overflow: hidden;}
#hp-predict .hp-fold-track i {display: block; height: 100%; border-radius: 999px; background: var(--hr-brand); transition: width .3s ease;}
/* 질문마다 오르는 정확도 — 채우면 파란 배지로(반영됨). 결과 화면 레일은 「결과에 반영하기 +N%」 버튼이 있어 숨긴다 */
#hp-predict .hp-booster-tag {display: inline-flex; align-items: center; height: 22px; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--hr-sub); color: var(--hr-t2); font-size: 13px; font-weight: 600; vertical-align: 2px; white-space: nowrap;}
#hp-predict .hp-booster.is-filled .hp-booster-tag {background: var(--hr-p50); color: var(--hr-ptxt);}
#hp-predict #hp-booster-rail .hp-booster-tag {display: none;}
#hp-predict #hp-more-fold[open] > summary {border-bottom: 1px solid var(--hr-line);}
#hp-predict #hp-booster-pool {padding: 0 20px;}
#hp-predict #hp-booster-pool .hp-booster {margin: 0; padding: 20px 0; border: 0; border-bottom: 1px solid var(--hr-line); border-radius: 0; background: none;}
#hp-predict #hp-booster-pool .hp-booster:last-child {border-bottom: 0;}
#hp-predict #hp-booster-pool .hp-booster-q {font-size: 16px; font-weight: 600; color: var(--hr-t1);}
#hp-predict #hp-booster-pool .hp-booster-help {font-size: 13px; color: var(--hr-t2);}
#hp-predict #hp-booster-pool .hp-chip-group, #hp-predict #hp-booster-pool .hp-chip-grid {display: flex; flex-wrap: wrap; gap: 8px;}
#hp-predict #hp-booster-pool .hp-chip, #hp-predict #hp-booster-pool .hp-chip-grid .hp-chip {width: auto; min-height: 36px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--hr-sub); color: var(--hr-chip-off); font-size: 14px; font-weight: 500;}
#hp-predict #hp-booster-pool .hp-chip:hover {background: var(--hr-line);}
#hp-predict #hp-booster-pool .hp-chip.active, #hp-predict #hp-booster-pool .hp-chip[aria-pressed="true"], #hp-predict #hp-booster-pool .hp-chip[aria-checked="true"] {background: var(--hr-chip-on); color: #fff; font-weight: 600;}

/* ── 폰 · 태블릿(~1023): 목록이 기본, 병원 · 권유 · 질문은 아래에서 올라오는 시트(성장 이야기와 같은 층) ── */
@media (max-width: 1023px) {
    #hp-predict .hp-r-intro {display: block;}
    #hp-predict .hp-r-title {font-size: 18px;}
    #hp-predict .hp-r-links {margin-top: 2px;}
    #hp-predict .hp-acc-row {flex-wrap: wrap; gap: 6px 12px; padding: 12px 16px;}
    #hp-predict .hp-acc .hp-accuracy-track {order: 3; flex: 1 1 100%; width: auto;}
    #hp-predict .hp-acc .hp-accuracy-desc {order: 2; flex: 1 1 0; font-size: 13px;}
    #hp-predict .hp-acc-btn {display: none;}
    #hp-predict .hp-acc-chev {display: block; order: 2;}
    #hp-predict .hp-dim {position: fixed; inset: 0; z-index: 1010; background: rgba(15,23,42,.45);}
    #hp-predict .hp-sheet-grab {display: block; flex: none; width: 36px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: var(--hr-line-in);}
    /* 병원 상세 시트 — 버튼 줄은 시트 바닥에 붙는다 */
    #hp-predict.is-detail .hp-r-panel {display: block; position: fixed; left: 0; right: 0; bottom: 0; top: 56px; z-index: 1011; padding: 8px 16px 0; border-radius: 16px 16px 0 0; background: #fff; box-shadow: var(--hr-shadow); overflow-y: auto; overscroll-behavior: contain;}
    #hp-predict.is-detail .hp-r-back {display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: 0 0 4px -6px; padding: 0; border: 0; background: none; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--hr-t1); cursor: pointer;}
    #hp-predict.is-detail .hp-r-back .hp-i {width: 20px; height: 20px;}
    #hp-predict .hp-p-name p {font-size: 18px;}
    #hp-predict .hp-p-score b {font-size: 24px;}
    #hp-predict .hp-p-lead p {font-size: 17px;}
    #hp-predict .hp-p-foot {position: sticky; bottom: 0; z-index: 2; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));}
    #hp-predict .hp-p-foot .hp-p-report {display: none;}
    /* 권유 시트 · 질문 시트 */
    #hp-predict .hp-offer-sheet {position: fixed; left: 0; right: 0; bottom: 0; z-index: 1011; max-height: calc(100% - 56px); padding: 8px 20px calc(16px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: #fff; box-shadow: var(--hr-shadow); overflow-y: auto; overscroll-behavior: contain;}
    #hp-predict .hp-offer-sheet .hp-offer {padding: 0;}
    #hp-predict.is-rail .hp-acc .hp-rail {position: fixed; left: 0; right: 0; bottom: 0; z-index: 1011; max-height: calc(100% - 56px); padding: 8px 20px calc(16px + env(safe-area-inset-bottom)); border: 0; border-radius: 16px 16px 0 0; background: #fff; box-shadow: var(--hr-shadow); overflow-y: auto; overscroll-behavior: contain;}
    html.hp-lock, html.hp-lock body {overflow: hidden;}
    #hp-predict .hp-fold-track {width: 40px;}
}
@media (max-width: 599px) {
    #hp-predict .hp-filter-tabs {margin: 0 -16px;}
}

/* ── 폰(~599) 결과 위계(2026-10-26 사용자 결정 · wsh/predict_top B안) ──
   머리: 기준 작은 줄 → 결론 두 줄 22 → 조건 줄(입력 요약 + 「조건 바꾸기」 버튼). 정확도: 왼쪽 글자 + 버튼 · 오른쪽 원형(회색 바탕).
   구간: 칩 대신 2×2 곳 수 타일(0곳은 「아직 없어요」) + 「전체 보기」, 구간마다 상자 하나(흰 머리 + 색 점). 잠긴 병원 「가려진 N곳 보기」는 파란 버튼.
   PC · 태블릿은 기존 머리 · 칩 · 줄을 그대로 쓰고 새 칸은 숨긴다(.hp-r-grp 는 상자 없이 통과). */
#hp-predict .hp-r-m, #hp-predict .hp-acc-m, #hp-predict .hp-tiles, #hp-predict .hp-r-all {display: none;}
#hp-predict .hp-r-grp {display: contents;}
@media (max-width: 599px) {
    #hp-predict .hp-r-intro {margin-bottom: 12px;}
    #hp-predict .hp-r-intro > .hp-r-intro-body, #hp-predict .hp-r-intro > .hp-r-links {display: none;}
    #hp-predict .hp-r-m {display: block;}
    #hp-predict .hp-r-m-kick {margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--hr-t2);}
    #hp-predict .hp-r-m-title {margin: 0; font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -.02em; color: var(--hr-t0);}
    #hp-predict .hp-r-m-title > span {display: block;}
    #hp-predict .hp-r-m-title em {font-style: normal; color: var(--hr-act);}
    #hp-predict .hp-r-m-cond {display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 10px 10px 14px; border: 1px solid var(--hr-line); border-radius: 12px; background: var(--hr-g50);}
    #hp-predict .hp-r-m-cb {flex: 1; min-width: 0;}
    #hp-predict .hp-r-m-cb b {display: block; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--hr-t1);}
    #hp-predict .hp-r-m-cb small {display: block; font-size: 13px; line-height: 1.45; color: var(--hr-t2);}
    #hp-predict .hp-r-m-cb small:empty {display: none;}
    #hp-predict .hp-r-m-edit {flex: none; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border: 1px solid var(--hr-line-in); border-radius: 8px; background: #fff; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--hr-t1); white-space: nowrap; cursor: pointer;}
    #hp-predict .hp-r-m-edit .hp-i {width: 15px; height: 15px; color: var(--hr-t2);}
    #hp-predict .hp-r-m-share {flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--hr-line-in); border-radius: 8px; background: #fff; color: var(--hr-t2); cursor: pointer;}
    /* 정확도 — 옛 줄(숫자 · 막대 · 설명 · 꺾쇠)은 숨기고 같은 버튼 안 새 칸을 보인다(누르면 질문 시트, 동작 그대로) */
    #hp-predict .hp-acc {margin-bottom: 20px; border: 0; border-radius: 16px; background: var(--hr-p50);}
    #hp-predict .hp-acc-row {display: block; min-height: 0; padding: 0;}
    #hp-predict .hp-acc-row > :not(.hp-acc-m) {display: none !important;}
    #hp-predict .hp-acc-m {display: flex; align-items: center; gap: 16px; padding: 16px 16px 16px 18px;}
    #hp-predict .hp-acc-m-t {display: block; flex: 1; min-width: 0;}
    #hp-predict .hp-acc-m-lab {display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--hr-t2);}
    #hp-predict .hp-acc-m-h {display: block; font-size: 17px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; color: var(--hr-t0);}
    #hp-predict .hp-acc-m-h b {color: var(--hr-act);}
    #hp-predict .hp-acc-m-cta {display: inline-flex; align-items: center; gap: 2px; height: 36px; margin-top: 10px; padding: 0 14px; border-radius: 8px; background: var(--hr-act); color: #fff; font-size: 14px; font-weight: 600;}
    #hp-predict .hp-acc-m-cta .hp-i {width: 15px; height: 15px;}
    #hp-predict .hp-ring {flex: none; position: relative; display: grid; place-items: center; width: 84px; height: 84px;}
    #hp-predict .hp-ring svg {position: absolute; inset: 0; width: 84px; height: 84px; transform: rotate(-90deg);}
    #hp-predict .hp-ring circle {fill: none; stroke-width: 9;}
    #hp-predict .hp-ring .r-bg {stroke: #D5DEE8;}
    #hp-predict .hp-ring .r-now {stroke: var(--hr-brand); stroke-linecap: round; transition: stroke-dasharray .5s ease;}
    #hp-predict .hp-ring b {position: relative; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--hr-t0); font-variant-numeric: tabular-nums;}
    /* 목록 머리 · 구간 타일 */
    #hp-predict .hp-r-lh {display: flex; align-items: baseline; justify-content: space-between;}
    #hp-predict .hp-r-lh h3 {font-size: 18px;}
    #hp-predict .hp-r-lh h3 em {color: var(--hr-t2); font-weight: 600;}
    #hp-predict .hp-r-sort {margin-bottom: 10px;}
    #hp-predict .hp-r-all {display: block; min-height: 36px; padding: 0; border: 0; background: none; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--hr-act); cursor: pointer;}
    #hp-predict .hp-r-all[aria-pressed="true"] {color: var(--hr-t3); cursor: default;}
    #hp-predict .hp-filter-tabs {display: none;}
    #hp-predict .hp-tiles {display: grid; grid-template-columns: 1fr 1fr; gap: 8px;}
    #hp-predict .hp-tile {position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--hr-line); border-radius: 12px; background: #fff; font-family: inherit; text-align: left; color: var(--hr-t1); cursor: pointer;}
    #hp-predict .hp-tile-l {display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--hr-t2);}
    #hp-predict .hp-tile-l::before {content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--g);}
    #hp-predict .hp-tile-v {display: flex; align-items: baseline; gap: 6px;}
    #hp-predict .hp-tile b {font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--hr-t0); font-variant-numeric: tabular-nums;}
    #hp-predict .hp-tile b small {margin-left: 2px; font-size: 14px; font-weight: 600;}
    #hp-predict .hp-tile-r {font-size: 12px; color: var(--hr-t3);}
    #hp-predict .hp-tile-z {font-size: 14px; font-weight: 600; line-height: 26px; color: var(--hr-t3);}
    #hp-predict .hp-tile > .hp-i {position: absolute; top: 10px; right: 10px; width: 15px; height: 15px; color: var(--hr-t3);}
    #hp-predict .hp-tile.on {padding: 9px 11px; border: 2px solid var(--g); background: color-mix(in srgb, var(--g) 6%, #fff);}
    #hp-predict .hp-tile:disabled {border-color: transparent; background: var(--hr-g50); cursor: default;}
    #hp-predict .hp-tile:disabled .hp-tile-l {color: var(--hr-t3);}
    #hp-predict .hp-tile:disabled .hp-tile-l::before {opacity: .35;}
    #hp-predict .g-excellent {--g: #16A34A;} #hp-predict .g-good {--g: var(--hr-brand);} #hp-predict .g-challenge {--g: #F59E0B;} #hp-predict .g-difficult {--g: var(--hr-err);} #hp-predict .g-block, #hp-predict .g-lock {--g: var(--hr-t3);}
    /* 구간 상자 — 흰 머리(색 점 · 구간 · 범위 · 곳 수) + 안쪽 구분선 줄 */
    #hp-predict .hp-r-items {margin-top: 12px;}
    #hp-predict .hp-r-grp {display: block; margin: 0 0 12px; border: 1px solid var(--hr-line); border-radius: 16px; background: #fff; overflow: hidden;}
    #hp-predict .hp-r-grp .hp-r-gh {margin: 0; padding: 14px 16px 12px; border-bottom: 1px solid var(--hr-line);}
    #hp-predict .hp-r-grp .hp-r-gh::before {content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--g);}
    #hp-predict .hp-r-grp .hp-r-gh h4 {font-size: 16px; font-weight: 700; color: var(--hr-t0);}
    #hp-predict .hp-r-grp .hp-r-gnote {margin: 0; padding: 10px 16px 0; word-break: keep-all; overflow-wrap: normal;}
    #hp-predict .hp-r-grp .hp-r-row {width: 100%; margin: 0; padding: 10px 16px; border-radius: 0;}
    #hp-predict .hp-r-grp .hp-r-row:last-child, #hp-predict .hp-r-grp .hp-r-row:has(+ .hp-r-more), #hp-predict .hp-r-grp .hp-r-row:has(+ .hp-r-hidden) {border-bottom: 0;}
    #hp-predict .hp-r-grp .hp-r-more {width: calc(100% - 32px); margin: 4px 16px 16px;}
    #hp-predict .hp-r-grp.g-lock {background: var(--hr-g50);}
    #hp-predict .hp-r-grp.g-lock .hp-r-row {background: none;}
    #hp-predict .hp-r-grp.g-lock .hp-badge {background: #fff;}
    #hp-predict .hp-r-grp .hp-r-hidden {padding: 12px 16px 0; border-top: 1px solid var(--hr-line);}
    #hp-predict .hp-r-grp .hp-r-hidden .hp-r-more {width: 100%; height: 48px; margin: 12px 0 16px; border: 0; background: var(--hr-act); color: #fff; font-size: 15px;}
    #hp-predict .hp-r-grp .hp-r-hidden .hp-r-more:hover {background: var(--hr-act-h);}
}

/* ── PC(1024~): 2칸 — 두 칸 높이를 화면에 맞춰 같게(--hp-h 는 JS 가 칸 윗선으로 계산), 긴 내용은 칸 안에서 스크롤 ── */
@media (min-width: 1024px) {
    #hp-predict .hp-r-cols {display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 16px; align-items: stretch; height: var(--hp-h, 680px);}
    #hp-predict .hp-r-left, #hp-predict .hp-r-panel {min-height: 0; overflow-y: auto; border: 1px solid var(--hr-line); border-radius: 12px; background: #fff; scrollbar-width: thin; scrollbar-color: var(--hr-line-in) transparent;}
    #hp-predict .hp-r-left {padding: 20px 20px 16px;}
    #hp-predict .hp-filter-tabs {margin: 0 -20px; padding: 0 20px;}
    #hp-predict .hp-r-panel {display: flex; flex-direction: column; padding: 24px 24px 0;}
    #hp-predict .hp-r-panel > .hp-p-locked {flex: 1;}
    #hp-predict .hp-p-foot {position: sticky; bottom: 0; z-index: 2; margin-top: auto;}
    #hp-predict .hp-dim, #hp-predict .hp-offer-sheet {display: none !important;}
    /* 처음 질문: 왼쪽 질문 칸 · 오른쪽 결과 자리(그 아래 「선택 항목 한 번에 입력하기」) */
    #hp-predict #hp-form-section {display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 16px; align-items: stretch; min-height: var(--hp-h, 600px);}
    #hp-predict #hp-form-section[style*="none"] {display: none !important;}
    #hp-predict #hp-form-section .hp-step1 {grid-column: 1; grid-row: 1 / 3; margin: 0;}
    #hp-predict .hp-wait {display: flex; flex-direction: column; grid-column: 2; grid-row: 1; min-height: 0; margin: 0; padding: 24px;}
    #hp-predict #hp-form-section .hp-more-fold {grid-column: 2; grid-row: 2; margin: 0;}
    /* 펼치면 결과 자리를 대신해 오른쪽 칸 전체를 쓰고, 질문은 칸 안에서 스크롤(결과 2칸과 같은 높이 규칙). details 안은 flex 가 안 먹어 칸 자체를 스크롤 + 머리 줄 고정 */
    #hp-predict #hp-form-section:has(.hp-more-fold[open]) .hp-wait {display: none;}
    #hp-predict #hp-form-section .hp-more-fold[open] {grid-row: 1 / 3; min-height: 0; height: var(--hp-h, 600px); overflow-y: auto; overscroll-behavior: contain; scroll-padding-top: 64px; scrollbar-width: thin; scrollbar-color: var(--hr-line-in) transparent;}
    #hp-predict #hp-more-fold[open] > summary {position: sticky; top: 0; z-index: 1; background: #fff;}
}
@media (prefers-reduced-motion: reduce) {
    #hp-predict .hp-acc .hp-accuracy-fill, #hp-predict .hp-fold-track i {transition: none;}
}

/* ── 폰(~599) 결과 위계 (2026-10-26 사용자 결정, 시안 mmTeam/wsh/predict_top ?v=b) ──
   머리 「기준 → 결론 두 줄 → 조건 줄(조건 바꾸기 버튼)」 · 정확도 「왼쪽 글자 + 오른쪽 원형」 · 구간 칩 → 2×2 곳 수 타일 · 구간마다 상자 · 가려진 곳 보기 = 파란 버튼.
   PC · 태블릿은 기존 그대로 — 새 칸은 숨기고, 구간 묶음(.hp-r-grp)은 display: contents 로 예전 줄 배치와 같다. */
#hp-predict .hp-r-m, #hp-predict .hp-acc-m, #hp-predict .hp-tiles, #hp-predict .hp-r-all {display: none;}
#hp-predict .hp-r-grp {display: contents;}
@media (max-width: 599px) {
    #hp-predict .hp-r-intro {margin: 0 0 12px;}
    #hp-predict .hp-r-intro > .hp-r-intro-body, #hp-predict .hp-r-intro > .hp-r-links {display: none;}
    #hp-predict .hp-r-m {display: block;}
    #hp-predict .hp-r-m-kick {margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--hr-t2);}
    #hp-predict .hp-r-m-title {margin: 0; font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -.02em; color: var(--hr-t0);}
    #hp-predict .hp-r-m-title > span {display: block;}
    #hp-predict .hp-r-m-title em {font-style: normal; color: var(--hr-act);}
    #hp-predict .hp-r-m-cond {display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 10px 10px 14px; border: 1px solid var(--hr-line); border-radius: 12px; background: var(--hr-g50);}
    #hp-predict .hp-r-m-cb {flex: 1; min-width: 0;}
    #hp-predict .hp-r-m-cb b {display: block; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--hr-t1);}
    #hp-predict .hp-r-m-cb small {display: block; font-size: 13px; line-height: 1.45; color: var(--hr-t2);}
    #hp-predict .hp-r-m-cb small:empty {display: none;}
    #hp-predict .hp-r-m-edit {flex: none; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border: 1px solid var(--hr-line-in); border-radius: 8px; background: #fff; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--hr-t1); white-space: nowrap; cursor: pointer;}
    #hp-predict .hp-r-m-share {flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--hr-line-in); border-radius: 8px; background: #fff; color: var(--hr-t2); cursor: pointer;}
    #hp-predict .hp-r-m-edit .hp-i, #hp-predict .hp-r-m-share .hp-i {width: 15px; height: 15px; color: var(--hr-t2);}
    /* 정확도 — 연한 파랑 카드, 회색 바탕 고리 위 진행만(가운데 숫자 하나) */
    #hp-predict .hp-acc {margin: 0 0 20px; border: 0; border-radius: 16px; background: var(--hr-p50);}
    #hp-predict .hp-acc-row {display: block; min-height: 0; padding: 0;}
    #hp-predict .hp-acc-row > :not(.hp-acc-m) {display: none !important;}
    #hp-predict .hp-acc-m {display: flex; align-items: center; gap: 16px; padding: 16px 16px 16px 18px;}
    #hp-predict .hp-acc-m-t {display: block; flex: 1; min-width: 0;}
    #hp-predict .hp-acc-m-lab {display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--hr-t2);}
    #hp-predict .hp-acc-m-h {display: block; font-size: 17px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; color: var(--hr-t0);}
    #hp-predict .hp-acc-m-h b {color: var(--hr-act);}
    #hp-predict .hp-acc-m-cta {display: inline-flex; align-items: center; gap: 2px; height: 36px; margin-top: 10px; padding: 0 14px; border-radius: 8px; background: var(--hr-act); color: #fff; font-size: 14px; font-weight: 600;}
    #hp-predict .hp-acc-m-cta .hp-i {width: 15px; height: 15px;}
    #hp-predict .hp-ring {flex: none; position: relative; display: grid; place-items: center; width: 84px; height: 84px;}
    #hp-predict .hp-ring svg {position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg);}
    #hp-predict .hp-ring circle {fill: none; stroke-width: 9;}
    #hp-predict .hp-ring .r-bg {stroke: #D5DEE8;}
    #hp-predict .hp-ring .r-now {stroke: var(--hr-brand); stroke-linecap: round; transition: stroke-dasharray .5s ease;}
    #hp-predict .hp-ring b {position: relative; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--hr-t0); font-variant-numeric: tabular-nums;}
    /* 목록 머리 + 구간 타일(곳 수가 제목, 색 점이 높고 낮음) */
    #hp-predict .hp-r-lh {display: flex; align-items: baseline; justify-content: space-between;}
    #hp-predict .hp-r-lh h3 {font-size: 18px;}
    #hp-predict .hp-r-lh h3 em {color: var(--hr-t2); font-weight: 600;}
    #hp-predict .hp-r-all {display: block; min-height: 36px; padding: 0; border: 0; background: none; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--hr-act); cursor: pointer;}
    #hp-predict .hp-r-all[aria-pressed="true"] {color: var(--hr-t3); cursor: default;}
    #hp-predict .hp-r-sort {margin-bottom: 10px;}
    #hp-predict .hp-filter-tabs {display: none;}
    #hp-predict .hp-tiles {display: grid; grid-template-columns: 1fr 1fr; gap: 8px;}
    #hp-predict .hp-tile {position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--hr-line); border-radius: 12px; background: #fff; font-family: inherit; text-align: left; color: var(--hr-t1); cursor: pointer;}
    #hp-predict .hp-tile-l {display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--hr-t2);}
    #hp-predict .hp-tile-l::before {content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--g);}
    #hp-predict .hp-tile-v {display: flex; align-items: baseline; gap: 6px;}
    #hp-predict .hp-tile b {font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--hr-t0); font-variant-numeric: tabular-nums;}
    #hp-predict .hp-tile b small {margin-left: 2px; font-size: 14px; font-weight: 600;}
    #hp-predict .hp-tile-r {font-size: 12px; color: var(--hr-t3);}
    #hp-predict .hp-tile-z {font-size: 14px; font-weight: 600; line-height: 26px; color: var(--hr-t3);}
    #hp-predict .hp-tile > .hp-i {position: absolute; top: 10px; right: 10px; width: 15px; height: 15px; color: var(--hr-t3);}
    #hp-predict .hp-tile.on {padding: 9px 11px; border: 2px solid var(--g); background: color-mix(in srgb, var(--g) 6%, #fff);}
    #hp-predict .hp-tile:disabled {border-color: transparent; background: var(--hr-g50); cursor: default;}
    #hp-predict .hp-tile:disabled .hp-tile-l {color: var(--hr-t3);}
    #hp-predict .hp-tile:disabled .hp-tile-l::before {opacity: .35;}
    #hp-predict .hp-tile:focus-visible, #hp-predict .hp-r-m-edit:focus-visible, #hp-predict .hp-r-all:focus-visible {outline: 2px solid var(--hr-act); outline-offset: 2px;}
    /* 구간 묶음 = 상자 하나(흰 머리 + 색 점), 잠긴 병원은 회색 상자 */
    #hp-predict .hp-r-items {margin-top: 12px;}
    #hp-predict .hp-r-grp {display: block; margin: 0 0 12px; border: 1px solid var(--hr-line); border-radius: 16px; background: #fff; overflow: hidden;}
    #hp-predict .hp-r-grp .hp-r-gh {margin: 0; padding: 14px 16px 12px; border-bottom: 1px solid var(--hr-line);}
    #hp-predict .hp-r-grp .hp-r-gh::before {content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--g, var(--hr-t3));}
    #hp-predict .hp-r-grp .hp-r-gh h4 {font-size: 16px; font-weight: 700; color: var(--hr-t0);}
    #hp-predict .hp-r-grp .hp-r-gnote {margin: 0; padding: 10px 16px 0; word-break: keep-all; overflow-wrap: normal;}
    #hp-predict .hp-r-grp .hp-r-row {width: 100%; margin: 0; padding: 10px 16px; border-radius: 0;}
    #hp-predict .hp-r-grp .hp-r-row:last-child, #hp-predict .hp-r-grp .hp-r-row:has(+ .hp-r-more), #hp-predict .hp-r-grp .hp-r-row:has(+ .hp-r-hidden) {border-bottom: 0;}
    #hp-predict .hp-r-grp > .hp-r-more {width: calc(100% - 32px); margin: 4px 16px 16px;}
    #hp-predict .hp-r-grp .hp-r-hidden {padding: 12px 16px 0; border-top: 1px solid var(--hr-line);}
    #hp-predict .hp-r-grp .hp-r-hidden .hp-r-more {height: 48px; margin: 12px 0 16px; border: 0; background: var(--hr-act); color: #fff; font-size: 15px;}
    #hp-predict .hp-r-grp .hp-r-hidden .hp-r-more:hover {background: var(--hr-act-h);}
    #hp-predict .g-excellent {--g: #16A34A;}
    #hp-predict .g-good {--g: var(--hr-brand);}
    #hp-predict .g-challenge {--g: #F59E0B;}
    #hp-predict .g-difficult {--g: var(--hr-err);}
    #hp-predict .hp-r-grp.g-lock {background: var(--hr-g50);}
    #hp-predict .hp-r-grp.g-lock .hp-r-row {background: none;}
    #hp-predict .hp-r-grp.g-lock .hp-badge {margin-left: auto; background: #fff;}
}
