/* ============================================================
   대학병원 간호사 합격 예측 시스템 - 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;}

/* 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: 1.5px 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: 0 0 0 3px rgba(32,151,255,0.1);
}

/* 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;
}
#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-ranking-screen { background: #F8FBFF; border: 1px solid #DCEBFF; border-radius: 8px; padding: 8px 12px; font-size: 13px; color: #4B5563; margin: 0 0 14px; }
#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; }

/* 공유 이미지용 카드 — 화면 밖에 두고 html2canvas 캡처 전용 */
#hp-predict .hp-share-card { position: absolute; left: -99999px; top: 0; width: 380px; box-sizing: border-box; background: #fff; padding: 32px 24px; text-align: center; }

#hp-predict .hp-share-header { margin-bottom: 24px; }
#hp-predict .hp-share-logo { font-size: 20px; font-weight: 800; color: var(--hp-gray-800); }
#hp-predict .hp-share-subtitle { font-size: 13px; color: var(--hp-main); font-weight: 700; letter-spacing: 1px; }

#hp-predict .hp-overall-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
#hp-predict .hp-gauge-wrap { position: relative; width: 140px; height: 140px; }
#hp-predict .hp-gauge-svg { width: 140px; height: 140px; }
#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%);
}
#hp-predict .hp-gauge-num { font-size: 36px; font-weight: 800; line-height: 1; }
#hp-predict .hp-gauge-unit { font-size: 12px; color: var(--hp-gray-400); margin-top: 4px; font-weight: 600; }

#hp-predict .hp-overall-label { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
#hp-predict .hp-overall-desc { font-size: 14px; color: var(--hp-gray-500); max-width: 240px; margin: 0 auto; }

#hp-predict .hp-ranking-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #F9FAFB;
    border-radius: 20px;
    font-size: 13px;
    color: var(--hp-gray-600);
    margin: 20px 0;
}
#hp-predict .hp-ranking-badge strong { color: var(--hp-main); }

/* TOP 3 List */
#hp-predict .hp-top3-section { margin-top: 24px; }
#hp-predict .hp-top3-title { font-size: 14px; font-weight: 700; color: var(--hp-gray-700); margin-bottom: 12px; text-align: center; }
#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: 12px 14px; background: var(--hp-gray-50); border-radius: 10px; }
#hp-predict .hp-top3-rank { flex-shrink: 0; width: 24px; display: flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; }
#hp-predict .hp-top3-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--hp-gray-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hp-predict .hp-top3-score { flex-shrink: 0; font-size: 15px; font-weight: 800; }
#hp-predict .hp-top3-score small { font-size: 11px; font-weight: 600; color: var(--hp-gray-400); }

/* 공유 카드 — 응원 한 줄 + 브랜드 */
#hp-predict .hp-share-cheer { margin-top: 24px; padding: 14px 16px; background: linear-gradient(135deg, #EAF5FE 0%, #DBEAFE 100%); border-radius: 12px; font-size: 14px; font-weight: 700; color: #1c87e5; line-height: 1.5; word-break: keep-all; }
#hp-predict .hp-share-brand { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #E5E7EB; font-size: 12px; font-weight: 600; color: #6B7280; letter-spacing: -0.01em; }

/* 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;
}
#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: right; }
#hp-predict .hp-score-value { font-size: 20px; font-weight: 800; color: var(--hp-gray-800); line-height: 1; }
#hp-predict .hp-score-label { font-size: 11px; font-weight: 700; margin-top: 4px; }
#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 .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; }

/* Strength / Weakness Summary (card first screen) */
#hp-predict .hp-tag-summary { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
#hp-predict .hp-tag-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
#hp-predict .hp-tag-key { flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
#hp-predict .hp-tag-key--strong { background: #E0F2FE; color: #0369A1; }
#hp-predict .hp-tag-key--weak { background: #FEF3C7; color: #92400E; }
#hp-predict .hp-tag-val { color: var(--hp-gray-700); font-weight: 600; }

/* 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.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: flex; align-items: center; gap: 12px; margin-top: 14px; }
#hp-predict .hp-card-cta { flex-shrink: 0; margin-left: auto; padding: 10px 14px; background: var(--hp-main); color: #fff; border-radius: 8px; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
#hp-predict .hp-card-cta:hover { background: #1c87e5; }
#hp-predict .hp-card-cta--primary { background: linear-gradient(135deg, #2097FF 0%, #4FB0FF 100%); box-shadow: 0 2px 8px rgba(32, 151, 255, 0.28); }
#hp-predict .hp-card-cta--primary:hover { background: linear-gradient(135deg, #1c87e5 0%, #2097FF 100%); }
#hp-predict .hp-card-cta--secondary { background: #fff; color: var(--hp-main); border: 1px solid var(--hp-main); }
#hp-predict .hp-card-cta--secondary:hover { background: #F8FBFF; }
#hp-predict .hp-card-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
#hp-predict .hp-card-actions .hp-card-cta { margin-left: 0; }
#hp-predict .hp-card-report { flex-shrink: 0; padding: 10px 12px; background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--hp-gray-600); cursor: pointer; font-family: inherit; white-space: nowrap; }
#hp-predict .hp-card-report:hover { background: #F8FBFF; border-color: #BFDBFE; color: var(--hp-main); }

/* 공유 모달 (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-card-footer { align-items: stretch; flex-direction: column; }
    #hp-predict .hp-card-actions { width: 100%; margin-left: 0; }
    #hp-predict .hp-card-report, #hp-predict .hp-card-actions .hp-card-cta { flex: 1; text-align: center; }
}
