/* ============================================================
   대학병원 간호사 합격 예측 시스템 - Styles (v2.0)
   Matching MyMerci Core Design (Ref: nclex_view.php)
   ============================================================ */

:root {--hp-main: #2097FF;--hp-primary: #2097FF;--hp-success: #22C55E;--hp-warning: #F59E0B;--hp-danger: #EF4444;--hp-gray-50: #F9FAFB;--hp-gray-100: #F9FAFB;--hp-gray-200: #E5E7EB;--hp-gray-300: #E5E7EB;--hp-gray-400: #9CA3AF;--hp-gray-500: #4B5563;--hp-gray-600: #4B5563;--hp-gray-700: #4B5563;--hp-gray-800: #111827;--hp-gray-900: #111827;--hp-radius: 12px;--hp-shadow: 0 2px 8px rgba(0,0,0,0.04);--hp-shadow-md: 0 4px 12px rgba(0,0,0,0.06);--hp-grade-excellent: #22C55E;--hp-grade-excellent-bg: #DCFCE7;--hp-grade-excellent-fg: #16A34A;--hp-grade-good: #2097FF;--hp-grade-good-bg: #EAF5FE;--hp-grade-good-fg: #2097FF;--hp-grade-challenge: #F59E0B;--hp-grade-challenge-bg: #FFF7E6;--hp-grade-challenge-fg: #8A5A00;--hp-grade-difficult: #EF4444;--hp-grade-difficult-bg: #FEF2F2;--hp-grade-difficult-fg: #DC2626;}

#hp-predict {font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;line-height: 1.6;color: var(--hp-gray-800);background: #fff;-webkit-user-select: none;-ms-user-select: none;user-select: none;}
/* 입력칸·결과 텍스트는 입력/복사 가능하도록 선택 허용 (클릭 캐럿 깜빡임은 위 none으로 방지) */
#hp-predict input, #hp-predict textarea, #hp-predict select, #hp-predict #hp-results-section, #hp-predict #hp-results-section * {-webkit-user-select: text;-ms-user-select: text;user-select: text;}

/* Header (nclex_view top_head style) */
#hp-predict .hp-header {background: #fff;border-bottom: 1px solid var(--hp-gray-100);padding: 30px 16px;text-align: center;}
#hp-predict .hp-header h1 { font-size: 20px; font-weight: 800; color: var(--hp-gray-800); margin-bottom: 6px; }
#hp-predict .hp-header p { font-size: 13px; color: var(--hp-gray-500); }

/* Admin shortcut link (header) */
#hp-predict ~ #header .heading,
#header .heading {position: relative;}
.hp-admin-link {position: absolute;right: 16px;top: 50%;transform: translateY(-50%);width: 36px;height: 36px;display: flex;align-items: center;justify-content: center;border-radius: 8px;color: var(--hp-gray-400, #9CA3AF);text-decoration: none;transition: all 0.2s;}
.hp-admin-link:hover {background: var(--hp-gray-50, #f8f9fa);color: var(--hp-main, #2097FF);}

/* fixed 헤더(#header, 높이 50px) 자리 확보 — JS(common0820.js) 미실행 시에도 콘텐츠가 헤더에 가리지 않도록 폴백 */
#hp-predict #headerSpace { min-height: 50px; }

/* Container — resume.php(#resume) 폭/상하 패딩 모델과 동일하게 맞춤
   상단 패딩 = #resume padding-top(74/78/70) − 헤더 50px = 24/28/20 → 1차 탭 위치를 resume.php 와 동일하게 정렬 */
#hp-predict .hp-container {margin: 0 auto 100px;padding: 24px 20px 0;}

/* Top Shell (page-title + tab-intro) → css/career_tabs.css 공용 정의로 이전 */
/* 1차 메뉴 → css/career_tabs.css (공용, .career-tabs / .career-tab) */

/* Card (Professional Minimalist) */
#hp-predict .hp-card {background: #fff;border-radius: var(--hp-radius);border: 1px solid #E5E7EB;padding: 24px;margin-bottom: 16px;}
#hp-predict .hp-card-title {font-size: 16px;font-weight: 700;color: var(--hp-gray-800);margin-bottom: 20px;display: flex;align-items: center;gap: 8px;}
#hp-predict .hp-card-title.has-desc { margin-bottom: 6px; }
#hp-predict .hp-card-desc { font-size: 13px; color: #4B5563; margin: 0 0 20px; line-height: 1.55; }
#hp-predict .hp-subhead { font-size: 14px; font-weight: 700; color: var(--hp-gray-700); margin: 24px 0 12px; }
#hp-predict .hp-subhead--first { margin-top: 4px; }
#hp-predict .hp-optional { font-size: 11px; color: var(--hp-gray-400); font-weight: 400; }
#hp-predict .hp-card-title .icon { font-size: 18px; display: flex; align-items: center; justify-content: center; }

/* Form Elements */
#hp-predict .hp-form-group { margin-bottom: 20px; }
#hp-predict .hp-form-label { display: block; font-size: 13px; font-weight: 600; color: var(--hp-gray-600); margin-bottom: 8px; }
#hp-predict .hp-form-label .required { color: var(--hp-danger); margin-left: 2px; }
#hp-predict .hp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

#hp-predict input[type="text"], #hp-predict input[type="number"], #hp-predict select { width: 100%; padding: 12px 14px; border: 1px solid var(--hp-gray-200); border-radius: 10px; font-size: 14px; color: var(--hp-gray-800); background: #fff; transition: all 0.2s; box-sizing: border-box; }
#hp-predict input:focus, #hp-predict select:focus { outline: none; border-color: var(--hp-main); box-shadow: none; }

/* Search Wrap */
#hp-predict .hp-search-wrap { width: 100%; height: 48px; border-radius: 10px; border: 1.5px solid var(--hp-gray-200); display: flex; align-items: center; padding: 0 12px; background: #fff; }
#hp-predict .hp-search-wrap:focus-within { border-color: var(--hp-main); }
#hp-predict .hp-search-wrap input { flex: 1; border: none !important; padding: 0 8px !important; font-size: 14px !important; background: transparent; }
#hp-predict .hp-search-icon img { width: 18px; opacity: 0.4; }

/* Suggestions */
#hp-predict .hp-suggestions-container { display: none; background: #fff; border: 1px solid var(--hp-gray-200); border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); margin-top: 4px; z-index: 100; }
#hp-predict .hp-suggestions-container.active { display: block; }
#hp-predict .hp-suggestion-item { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--hp-gray-50); }
#hp-predict .hp-suggestion-item:hover { background: var(--hp-gray-50); color: var(--hp-main); }

/* Chip Group */
#hp-predict .hp-chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
#hp-predict .hp-chip { padding: 8px 16px; border: 1px solid #E5E7EB; border-radius: 20px; font-size: 13px; font-weight: 500; color: #4B5563; background: #fff; cursor: pointer; transition: all 0.15s; -webkit-user-select: none; -ms-user-select: none; user-select: none; }
#hp-predict .hp-chip:hover { background: #F8FBFF; border-color: #BFDBFE; color: var(--hp-main); }
#hp-predict .hp-chip.active { background: var(--hp-main); border-color: var(--hp-main); color: #fff; font-weight: 700; }

/* Submit Button */
#hp-predict .hp-btn-submit { width: 100%; padding: 16px; background: var(--hp-main); color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 12px rgba(32,151,255,0.2); }
#hp-predict .hp-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(32,151,255,0.3); }

/* Results Overview Card */
#hp-predict .hp-overall-card { background: transparent; border: none; box-shadow: none; padding: 0; position: relative; overflow: hidden; }

/* 화면용 종합 결과 요약 (resume/experience 톤 — 좌측 정렬 정보 카드) */
#hp-predict .hp-result-summary { background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 18px 20px; }
#hp-predict .hp-result-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
#hp-predict .hp-result-title { font-size: 16px; font-weight: 700; color: #111827; margin: 0; }
#hp-predict .hp-result-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; flex-shrink: 0; }
#hp-predict .hp-result-badge.grade-excellent { background: var(--hp-grade-excellent-bg); color: var(--hp-grade-excellent-fg); }
#hp-predict .hp-result-badge.grade-good { background: var(--hp-grade-good-bg); color: var(--hp-grade-good-fg); }
#hp-predict .hp-result-badge.grade-challenge { background: var(--hp-grade-challenge-bg); color: var(--hp-grade-challenge-fg); }
#hp-predict .hp-result-badge.grade-difficult { background: var(--hp-grade-difficult-bg); color: var(--hp-grade-difficult-fg); }
#hp-predict .hp-result-score { font-size: 13px; color: #4B5563; margin: 0 0 6px; }
#hp-predict .hp-result-score strong { color: #111827; font-weight: 700; font-size: 15px; }
#hp-predict .hp-result-desc { font-size: 14px; color: #4B5563; line-height: 1.55; margin: 0 0 12px; }
#hp-predict .hp-result-bar { height: 6px; border-radius: 3px; background: #F9FAFB; overflow: hidden; margin: 0 0 12px; }
#hp-predict .hp-result-bar-fill { height: 100%; border-radius: 3px; background: #2097FF; }
#hp-predict .hp-result-gauge { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 24px 0; }
#hp-predict .hp-result-gauge-cap { margin: 0; font-size: 13px; font-weight: 700; color: #4B5563; }
#hp-predict .hp-result-assume-note { margin: 12px 0 0; padding: 10px 12px; background: #FEF3C7; border: 1px solid #FDE68A; border-radius: 10px; font-size: 12.5px; line-height: 1.5; color: #92400E; }
#hp-predict .hp-result-assume-note i { margin-right: 4px; }
#hp-predict .hp-result-assume-note strong { font-weight: 700; }
#hp-predict .hp-result-disclaimer { margin: 8px 0 0; font-size: 11.5px; line-height: 1.5; color: #9CA3AF; }
#hp-predict .hp-ranking-screen { text-align: center; font-size: 13px; color: #4B5563; margin: 0; }
#hp-predict .hp-ranking-screen strong { color: #2097FF; font-weight: 500; }
#hp-predict .hp-result-top-title { font-size: 13px; font-weight: 700; color: #111827; margin: 0 0 8px; }
#hp-predict .hp-result-top-list { display: flex; flex-direction: column; gap: 8px; }
#hp-predict .hp-result-top-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; }
#hp-predict .hp-result-top-rank { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: #F9FAFB; color: #4B5563; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
#hp-predict .hp-result-top-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#hp-predict .hp-result-top-name { font-size: 14px; font-weight: 600; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hp-predict .hp-result-top-region { font-size: 12px; color: #4B5563; }
#hp-predict .hp-result-top-score { flex-shrink: 0; font-size: 14px; font-weight: 700; color: #2097FF; }
#hp-predict .hp-rank-tie-chip { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-right: 5px; border-radius: 6px; background: #EAF5FE; color: #0B79D0; font-size: 10px; font-weight: 800; vertical-align: 1px; }
#hp-predict .hp-result-tie-note { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: #6B7280; }
#hp-predict .hp-strategy-board { margin: 14px 0 16px; border: 1px solid #E5E7EB; border-radius: 12px; overflow: hidden; background: #fff; }
#hp-predict .hp-strategy-main { padding: 14px 16px; background: #F8FBFF; border-bottom: 1px solid #DCEBFF; }
#hp-predict .hp-strategy-kicker { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: #EAF5FE; color: #2097FF; font-size: 11px; font-weight: 800; margin-bottom: 8px; }
#hp-predict .hp-strategy-main strong { display: block; font-size: 15px; font-weight: 800; color: #111827; line-height: 1.35; }
#hp-predict .hp-strategy-main p { margin: 5px 0 0; font-size: 13px; color: #4B5563; line-height: 1.5; }
#hp-predict .hp-strategy-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
#hp-predict .hp-strategy-tile { min-width: 0; padding: 12px 14px; border-right: 1px solid #F3F4F6; }
#hp-predict .hp-strategy-tile:last-child { border-right: 0; }
#hp-predict .hp-strategy-tile span { display: block; font-size: 11px; font-weight: 800; color: #9CA3AF; margin-bottom: 4px; }
#hp-predict .hp-strategy-tile strong { display: block; font-size: 13px; font-weight: 800; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hp-predict .hp-strategy-tile em { display: block; margin-top: 4px; font-size: 11px; color: #4B5563; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 공유 이미지용 카드 — 화면 밖에 두고 html2canvas 캡처 전용 */
#hp-predict .hp-share-card { position: absolute; left: -99999px; top: 0; width: 430px; box-sizing: border-box; background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 48%, #F8FBFF 100%); padding: 24px; text-align: left; overflow: hidden; border: 1px solid #E5E7EB; }
#hp-predict .hp-share-hero { padding: 20px 18px 18px; border-radius: 18px; background: #FFFFFF; border: 1px solid #DCEBFF; box-shadow: 0 16px 34px rgba(17, 24, 39, .08); }
#hp-predict .hp-share-kicker { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 7px; background: #ECFDF5; color: #15803D; font-size: 11px; font-weight: 900; margin-bottom: 12px; }
#hp-predict .hp-share-headline { font-size: 27px; font-weight: 900; line-height: 1.16; color: #111827; word-break: keep-all; letter-spacing: 0; }
#hp-predict .hp-share-subcopy { margin-top: 9px; font-size: 14px; font-weight: 800; line-height: 1.45; color: #2563EB; word-break: keep-all; }
#hp-predict .hp-share-score-row { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 18px; padding: 16px; border-radius: 16px; background: #FFFFFF; border: 1px solid #EEF2F7; }
#hp-predict .hp-gauge-wrap { position: relative; width: 112px; height: 112px; }
#hp-predict .hp-gauge-svg { width: 112px; height: 112px; }
#hp-predict .hp-gauge-circle { transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1); }
#hp-predict .hp-gauge-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
#hp-predict .hp-gauge-num { font-size: 31px; font-weight: 900; line-height: 1; }
#hp-predict .hp-gauge-unit { font-size: 11px; color: #9CA3AF; margin-top: 2px; font-weight: 800; }
#hp-predict .hp-share-score-copy span { display: block; font-size: 11px; font-weight: 900; color: #9CA3AF; margin-bottom: 4px; }
#hp-predict .hp-share-score-copy strong { display: block; font-size: 25px; font-weight: 900; line-height: 1.16; }
#hp-predict .hp-share-score-copy p { margin: 7px 0 0; font-size: 12px; font-weight: 700; line-height: 1.5; color: #4B5563; word-break: keep-all; }
#hp-predict .hp-ranking-badge { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 30px; padding: 0 13px; background: #EAF5FE; border: 1px solid #BFDBFE; border-radius: 999px; font-size: 12px; font-weight: 900; line-height: 1; color: #0B79D0; margin: 12px 0 0; box-sizing: border-box; }
#hp-predict .hp-ranking-badge strong { color: #075985; }
#hp-predict .hp-top3-section { margin-top: 15px; padding: 15px; border-radius: 16px; background: #FFFFFF; border: 1px solid #EEF2F7; }
#hp-predict .hp-top3-title { font-size: 13px; font-weight: 900; color: #111827; margin-bottom: 10px; text-align: left; }
#hp-predict .hp-top3-list { display: flex; flex-direction: column; gap: 8px; }
#hp-predict .hp-top3-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: #F8FAFC; border-radius: 12px; border: 1px solid #F1F5F9; }
#hp-predict .hp-top3-rank { flex-shrink: 0; width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #EAF5FE; color: #0B79D0; font-size: 12px; font-weight: 900; line-height: 1; }
#hp-predict .hp-top3-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 800; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hp-predict .hp-top3-score { flex-shrink: 0; font-size: 15px; font-weight: 900; }
#hp-predict .hp-top3-score small { font-size: 10px; font-weight: 800; color: #9CA3AF; margin-left: 1px; }

/* Stats Bar Chips (Like CN labels) */
#hp-predict .hp-stats-bar { display: flex; gap: 8px; margin-bottom: 24px; }
#hp-predict .hp-stat-item { flex: 1; padding: 10px 6px; border-radius: 8px; text-align: center; }
#hp-predict .hp-stat-item .num { font-size: 18px; font-weight: 600; line-height: 1.3; }
#hp-predict .hp-stat-item .label { font-size: 11px; font-weight: 700; }
#hp-predict .hp-stat-item .range { font-size: 9px; font-weight: 600; opacity: 0.7; margin-top: 2px; }
#hp-predict .stat-excellent { background: var(--hp-grade-excellent-bg); color: var(--hp-grade-excellent-fg); }
#hp-predict .stat-good { background: var(--hp-grade-good-bg); color: var(--hp-grade-good-fg); }
#hp-predict .stat-challenge { background: var(--hp-grade-challenge-bg); color: var(--hp-grade-challenge-fg); }
#hp-predict .stat-difficult { background: var(--hp-grade-difficult-bg); color: var(--hp-grade-difficult-fg); }

/* Filter Tabs (resume.php sub-tab tone) */
#hp-predict .hp-filter-tabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid #E5E7EB; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
#hp-predict .hp-filter-tabs::-webkit-scrollbar { display: none; }
#hp-predict .hp-filter-tab { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 0; background: transparent; color: #4B5563; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 8px 8px 0 0; white-space: nowrap; }
#hp-predict .hp-filter-tab:hover { background: #F9FAFB; }
#hp-predict .hp-filter-tab.active { background: #F4FCFF; color: #2097FF; font-weight: 600; }
#hp-predict .hp-filter-tab.disabled { color: #9CA3AF; cursor: not-allowed; pointer-events: none; opacity: 0.55; }

/* Hospital Card (nclex_view qst_box style) */
#hp-predict .hp-hospital-card { background: #fff; border-radius: 12px; border: 1px solid #E5E7EB; box-shadow: none; padding: 20px; margin-bottom: 12px; cursor: pointer; transition: border-color 0.15s, background 0.15s; position: relative; min-height: 0; height: auto; }
#hp-predict .hp-hospital-card:hover { border-color: #BFDBFE; }
#hp-predict .hp-hospital-card.expanded { border-color: var(--hp-main); }

#hp-predict .hp-hospital-top { display: flex; align-items: center; gap: 14px; }
#hp-predict .hp-logo-img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid #E5E7EB; padding: 3px; box-sizing: border-box; }
#hp-predict .hp-grade-badge { font-size: 20px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--hp-gray-50); border-radius: 10px; }

#hp-predict .hp-hospital-info { flex: 1; min-width: 0; }
#hp-predict .hp-hospital-name { font-size: 16px; font-weight: 700; color: var(--hp-gray-800); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
#hp-predict .tier-tag { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: #F9FAFB; color: #4B5563; text-transform: uppercase; }
#hp-predict .tier-S { background: #fee2e2; color: #991b1b; }
#hp-predict .tier-A { background: #fef3c7; color: #92400e; }

#hp-predict .hp-hospital-meta { font-size: 12px; color: var(--hp-gray-500); }
#hp-predict .hp-hospital-score { text-align: center; flex-shrink: 0; }
#hp-predict .hp-score-value { font-size: 26px; font-weight: 800; color: var(--hp-gray-800); line-height: 1; }
#hp-predict .hp-score-label { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
#hp-predict .grade-excellent .hp-score-value { color: var(--hp-grade-excellent); }
#hp-predict .grade-good .hp-score-value { color: var(--hp-grade-good); }
#hp-predict .grade-challenge .hp-score-value { color: var(--hp-grade-challenge); }
#hp-predict .grade-difficult .hp-score-value { color: var(--hp-grade-difficult); }
#hp-predict .grade-excellent .hp-score-label { background: var(--hp-grade-excellent-bg); color: var(--hp-grade-excellent-fg); }
#hp-predict .grade-good .hp-score-label { background: var(--hp-grade-good-bg); color: var(--hp-grade-good-fg); }
#hp-predict .grade-challenge .hp-score-label { background: var(--hp-grade-challenge-bg); color: var(--hp-grade-challenge-fg); }
#hp-predict .grade-difficult .hp-score-label { background: var(--hp-grade-difficult-bg); color: var(--hp-grade-difficult-fg); }
#hp-predict .hp-score-locked { font-size: 14px; color: var(--hp-gray-400); }

/* 지원 불가 사유 배너 */
#hp-predict .hp-disqual-reason { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 12px; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 10px; }
#hp-predict .hp-disqual-icon { font-size: 15px; line-height: 1.35; flex-shrink: 0; }
#hp-predict .hp-disqual-title { font-size: 11px; font-weight: 800; color: #DC2626; margin-bottom: 2px; }
#hp-predict .hp-disqual-msg { font-size: 13px; color: #7F1D1D; line-height: 1.45; }

#hp-predict .hp-card-strategy { min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; }
#hp-predict .hp-card-strategy span { flex-shrink: 0; display: inline-flex; align-items: center; padding: 0; color: #0B79D0; font-size: 11px; font-weight: 800; line-height: 1.2; }
#hp-predict .hp-card-strategy strong { display: block; min-width: 0; font-size: 13.5px; font-weight: 700; line-height: 1.45; color: #111827; word-break: keep-all; }
/* Detail Expansion */
#hp-predict .hp-detail { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hp-gray-100); }
#hp-predict .hp-hospital-card:not(.expanded) .hp-detail { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; }
#hp-predict .hp-hospital-card.expanded .hp-detail { display: block; }
#hp-predict .hp-score-bars-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 3px; }
#hp-predict .hp-score-bars-title { font-size: 13px; font-weight: 800; color: var(--hp-gray-800); }
#hp-predict .hp-score-bars-unit { font-size: 11px; font-weight: 700; color: var(--hp-gray-400); }
#hp-predict .hp-score-bars-desc { font-size: 11px; color: var(--hp-gray-500); line-height: 1.4; margin-bottom: 10px; }
#hp-predict .hp-score-bars { margin-bottom: 16px; }
#hp-predict .hp-score-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
#hp-predict .hp-score-bar-label { font-size: 12px; color: var(--hp-gray-500); font-weight: 600; width: 44px; text-align: right; }
#hp-predict .hp-score-bar-track { flex: 1; height: 6px; background: var(--hp-gray-100); border-radius: 3px; overflow: hidden; }
#hp-predict .hp-score-bar-fill { height: 100%; border-radius: 3px; transition: width 1s; width: 0; }
#hp-predict .hp-score-bar-fill.excellent { background: var(--hp-grade-excellent); }
#hp-predict .hp-score-bar-fill.good { background: var(--hp-grade-good); }
#hp-predict .hp-score-bar-fill.challenge { background: var(--hp-grade-challenge); }
#hp-predict .hp-score-bar-fill.difficult { background: var(--hp-grade-difficult); }
#hp-predict .hp-score-bar-value { font-size: 12px; font-weight: 700; color: var(--hp-gray-700); width: 32px; text-align: right; }

/* Coaching — 흰 배경 + 보더만 (등급은 보더 색으로만 구분) */
#hp-predict .hp-coaching-item { padding: 10px 14px; border-radius: 10px; margin-bottom: 6px; background: #fff; border: 1px solid #E5E7EB; }
#hp-predict .coaching-high { border-color: #FECACA; }
#hp-predict .coaching-medium { border-color: #FDE68A; }
#hp-predict .coaching-info { border-color: #E5E7EB; }
#hp-predict .coaching-positive { border-color: #BBF7D0; }
#hp-predict .hp-coaching-msg { font-size: 13px; font-weight: 700; color: var(--hp-gray-800); }
#hp-predict .hp-coaching-item .tip { font-size: 12px; color: var(--hp-gray-500); margin-top: 4px; }

/* Detail Info Section (Tab/Clean Vertical style) */
#hp-predict .hp-detail-title { font-size: 14px; font-weight: 700; color: #111827; margin: 14px 0 10px; display: flex; align-items: center; gap: 6px; }

/* 상세 정보 — 가로 탭 스위처 (한 번에 한 섹션만) */
#hp-predict .hp-info-tabs-wrap { margin-top: 4px; }
#hp-predict .hp-info-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
#hp-predict .hp-info-tabs::-webkit-scrollbar { display: none; }
#hp-predict .hp-info-tab { flex: 0 0 auto; padding: 7px 12px; border: 1px solid #E5E7EB; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--hp-gray-500); cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
#hp-predict .hp-info-tab.is-active { background: var(--hp-main); border-color: var(--hp-main); color: #fff; }
#hp-predict .hp-info-panel { display: none; }
#hp-predict .hp-info-panel.is-active { display: block; }
#hp-predict .hp-info-row { padding: 9px 0; border-bottom: 1px solid var(--hp-gray-100); display: flex; gap: 12px; }
#hp-predict .hp-info-row:last-child { border-bottom: none; }
#hp-predict .hp-info-key { font-size: 13px; font-weight: 600; color: var(--hp-gray-500); width: 80px; flex-shrink: 0; }
#hp-predict .hp-info-val { font-size: 13px; color: var(--hp-gray-800); }
#hp-predict .hp-info-note { font-size: 13px; line-height: 1.55; color: var(--hp-gray-500); margin-top: 8px; padding: 8px 10px; background: var(--hp-gray-50); border-radius: 8px; }

/* Salary Highlight */
#hp-predict .hp-salary-highlight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px;}
#hp-predict .hp-salary-box {text-align: center;padding: 10px 4px;background: #f0fdf4;border-radius: 8px;border: 1px solid #dcfce7;min-width: 0; /* Allow shrinking */}
#hp-predict .hp-salary-label { font-size: 10px; color: #166534; font-weight: 700; margin-bottom: 2px;white-space: nowrap;}
#hp-predict .hp-salary-amount { font-size: 12px; /* Reduced to fit long amounts */font-weight: 800; color: #15803d; white-space: nowrap; letter-spacing: -0.5px;overflow: hidden;text-overflow: ellipsis;}


/* Tips and Checklist */
#hp-predict .hp-tip-card {background: #F9FAFB;border-radius: 8px;padding: 14px;margin-bottom: 8px;}
#hp-predict .hp-tip-title { font-size: 13px; font-weight: 700; color: var(--hp-main); margin-bottom: 6px; }
#hp-predict .hp-tip-body { font-size: 13px; color: var(--hp-gray-600); line-height: 1.6; }

/* 결과 하단 액션 */
#hp-predict .hp-bottom-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
#hp-predict .hp-btn-share-result { width: 100%; padding: 14px; background: #fff; border: 1px solid var(--hp-gray-300); border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--hp-gray-700); cursor: pointer; transition: all 0.15s; }
#hp-predict .hp-btn-share-result:hover { background: #F8FBFF; border-color: #BFDBFE; color: var(--hp-main); }
#hp-predict .hp-btn-reanalyze { width: 100%; padding: 14px; background: #fff; border: 1px solid var(--hp-gray-300); border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--hp-gray-700); cursor: pointer; transition: all 0.15s; }
#hp-predict .hp-btn-reanalyze:hover { background: #F8FBFF; border-color: #BFDBFE; color: var(--hp-main); }

/* 자기소개서 연결 CTA (병원 카드별 버튼) */
#hp-predict .hp-card-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 14px; margin-top: 12px; padding-top: 0; border-top: 0; }
#hp-predict .hp-card-plan { min-width: 0; min-height: 38px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
#hp-predict .hp-card-cta { flex-shrink: 0; margin-left: 0; text-decoration: none; }
#hp-predict .hp-card-action-btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 0; padding: 0 14px; border-radius: 9px; font-size: 12px; font-weight: 800; line-height: 1; white-space: nowrap; box-sizing: border-box; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
#hp-predict .hp-card-cta--primary { min-width: 138px; background: #2097FF; border: 1px solid #2097FF; color: #fff; box-shadow: 0 4px 12px rgba(32, 151, 255, 0.2); }
#hp-predict .hp-card-cta--primary:hover { background: #1c87e5; border-color: #1c87e5; box-shadow: 0 5px 14px rgba(32, 151, 255, 0.28); }
#hp-predict .hp-card-cta--secondary { background: #F8FBFF; color: #0B79D0; border: 1px solid #BFDBFE; }
#hp-predict .hp-card-cta--secondary:hover { background: #EAF5FE; border-color: #93C5FD; color: #0B79D0; }
#hp-predict .hp-card-actions { display: flex; align-items: center; gap: 7px; margin-left: 0; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; align-self: center; }
#hp-predict .hp-card-report { flex-shrink: 0; background: #fff; border: 1px solid #E5E7EB; color: #4B5563; cursor: pointer; font-family: inherit; }
#hp-predict .hp-card-report:hover { background: #F9FAFB; border-color: #CBD5E1; color: #111827; }

/* 공유 모달 (body 직속 — #hp-predict 외부, hp- 접두사로 네임스페이스 유지) */
.hp-share-modal-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.2s; }
.hp-share-modal-overlay.active { opacity: 1; }
.hp-share-modal { width: 100%; max-width: 480px; box-sizing: border-box; background: #fff; border-radius: 16px 16px 0 0; padding: 24px 20px 28px; transform: translateY(24px); transition: transform 0.25s; font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif; }
.hp-share-modal-overlay.active .hp-share-modal { transform: translateY(0); }
.hp-share-modal-title { font-size: 17px; font-weight: 800; color: #111827; text-align: center; margin-bottom: 6px; }
.hp-share-modal-desc { font-size: 13px; color: #4B5563; text-align: center; line-height: 1.55; margin-bottom: 20px; }
.hp-share-modal-buttons { display: flex; flex-direction: column; gap: 8px; }
.hp-share-modal-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 14px 16px; border: 1px solid #E5E7EB; border-radius: 10px; background: #fff; font-size: 14px; font-weight: 700; color: #4B5563; cursor: pointer; font-family: inherit; }
.hp-share-modal-btn:hover { background: #F9FAFB; }
.hp-share-modal-close { width: 100%; margin-top: 14px; padding: 12px; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: #9CA3AF; cursor: pointer; font-family: inherit; }
.hp-evidence-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.hp-evidence-label { font-size: 13px; font-weight: 700; color: #374151; }
.hp-evidence-input { width: 100%; box-sizing: border-box; border: 1px solid #E5E7EB; border-radius: 10px; padding: 12px; font-size: 14px; font-family: inherit; color: #111827; background: #fff; }
.hp-evidence-input:focus { outline: none; border-color: #2097FF; box-shadow: 0 0 0 3px rgba(32,151,255,0.12); }
.hp-evidence-help { font-size: 12px; color: #6B7280; line-height: 1.45; margin-bottom: 14px; }
.hp-evidence-actions { display: flex; gap: 8px; }
.hp-evidence-submit { flex: 1; padding: 13px; border: 0; border-radius: 10px; background: #111827; color: #fff; font-weight: 800; font-family: inherit; cursor: pointer; }
.hp-evidence-submit:disabled { opacity: 0.65; cursor: wait; }
.hp-evidence-cancel { flex: 1; padding: 13px; border: 1px solid #E5E7EB; border-radius: 10px; background: #fff; color: #6B7280; font-weight: 800; font-family: inherit; cursor: pointer; }

/* Locked Gate (calm paywall card) */
#hp-predict .hp-gate-cta {text-align: center;padding: 28px 20px;background: #fff;border: 1px solid #E5E7EB;border-radius: 12px;margin: 20px 0;}
#hp-predict .hp-gate-title { font-size: 16px; font-weight: 700; color: var(--hp-gray-800); margin-bottom: 6px; }
#hp-predict .hp-gate-desc { font-size: 13px; color: #4B5563; line-height: 1.55; margin-bottom: 16px; }
#hp-predict .hp-gate-btn {display: block;padding: 14px;border-radius: 10px;text-decoration: none;font-weight: 700;font-size: 14px;margin-bottom: 8px;}
#hp-predict .hp-gate-btn:last-child { margin-bottom: 0; }
#hp-predict .hp-gate-subscribe { background: var(--hp-gray-900); color: #fff; }
#hp-predict .hp-gate-share { background: #fff; border: 1px solid var(--hp-gray-300); color: var(--hp-gray-700); }
#hp-predict .hp-gate-actions-row { display: flex; gap: 8px; margin-bottom: 8px; }
#hp-predict .hp-gate-actions-row .hp-gate-btn { flex: 1; margin-bottom: 0; }
@media (max-width: 380px) { #hp-predict .hp-gate-actions-row { flex-direction: column; gap: 8px; } }

/* Loading & Empty */
#hp-predict .hp-loading { text-align: center; padding: 40px; display: none; }
#hp-predict .hp-loading.active { display: block; }
#hp-predict .hp-spinner { width: 40px; height: 40px; border: 3px solid var(--hp-gray-200); border-top-color: var(--hp-main); border-radius: 50%; animation: hp-spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes hp-spin { to { transform: rotate(360deg); } }

/* Additional Detail Components */
#hp-predict .hp-info-grid { display: grid; grid-template-columns: 1fr; }
#hp-predict .hp-info-row:last-child { border-bottom: none; }

#hp-predict .hp-process-steps { margin-top: 10px; }
#hp-predict .hp-process-step { display: flex; gap: 12px; margin-bottom: 16px; }
#hp-predict .hp-step-num { width: 22px; height: 22px; background: var(--hp-main); color: #fff; border-radius: 50%; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#hp-predict .hp-step-name { font-size: 14px; font-weight: 700; color: var(--hp-gray-800); margin-bottom: 2px; }
#hp-predict .hp-step-detail { font-size: 13px; color: var(--hp-gray-500); line-height: 1.4; }
#hp-predict .hp-step-tip { font-size: 12px; color: var(--hp-main); font-weight: 600; margin-top: 4px; }

#hp-predict .hp-benefit-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
#hp-predict .hp-benefit-item { font-size: 13px; color: var(--hp-gray-600); display: flex; align-items: center; gap: 6px; }
#hp-predict .hp-benefit-item i { color: var(--hp-success); font-size: 12px; }

#hp-predict .hp-checklist-category { margin-bottom: 20px; }
#hp-predict .hp-checklist-cat-name { font-size: 13px; font-weight: 700; color: var(--hp-gray-500); margin-bottom: 10px; }
#hp-predict .hp-checklist-items { display: flex; flex-direction: column; gap: 10px; }
#hp-predict .hp-checklist-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--hp-gray-700); cursor: pointer; }
#hp-predict .hp-checklist-item input { margin-top: 3px; }

#hp-predict .hp-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#hp-predict .hp-summary-item { display: flex; flex-direction: column; gap: 4px; }
#hp-predict .hp-summary-label { font-size: 11px; color: var(--hp-gray-400); font-weight: 600; }
#hp-predict .hp-summary-value { font-size: 14px; font-weight: 600; color: var(--hp-gray-800); }


/* resume.php(#resume) 와 동일한 브레이크포인트로 컨테이너 폭 정렬 */
@media (min-width: 1025px) {
    #hp-predict .hp-container { padding: 28px 28px 0; }
}

@media (max-width: 720px) {
    #hp-predict .hp-container { padding: 20px 16px 0; }
    /* 인트로 모바일 보정(.hp-page-title, .hp-tab-intro-group) → career_tabs.css 공용 정의 */
}

@media (max-width: 480px) {
    #hp-predict .hp-form-row { grid-template-columns: 1fr; }
    #hp-predict .hp-salary-highlight { grid-template-columns: 1fr; }
    #hp-predict .hp-strategy-tiles { grid-template-columns: 1fr; }
    #hp-predict .hp-strategy-tile { border-right: 0; border-bottom: 1px solid #F3F4F6; }
    #hp-predict .hp-strategy-tile:last-child { border-bottom: 0; }
    #hp-predict .hp-card-footer { grid-template-columns: 1fr; align-items: stretch; }
    #hp-predict .hp-card-actions { width: 100%; margin-left: 0; justify-content: stretch; }
    #hp-predict .hp-card-report, #hp-predict .hp-card-actions .hp-card-cta { flex: 1 1 0; text-align: center; }
}
