﻿@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --bg: #ECEEF2;
    --white: #ffffff;
    --primary: #002F6C;
    --primary-light: #1a4f96;
    --text-main: #0F172A;
    --text-sub: #64748B;
    --border: #E2E8F0;
    --up-color: #E11D48;
    --safe-color: #059669;
    --warn-color: #D97706;
    --shadow-sm: 0 2px 8px rgba(0,47,108,0.05);
    --shadow-md: 0 8px 24px rgba(0,47,108,0.08);
    --shadow-lg: 0 20px 48px rgba(0,47,108,0.1);
    --radius: 14px;
}
* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
h1, h2, .pslab-brand, .section-title, .hero-main-title { font-family: 'Outfit', 'Pretendard', sans-serif; }

@keyframes fadeInUp {
    from { opacity:0; transform:translateY(24px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ─── WRAPPER ─── */
.report-wrapper {
    max-width: 980px;
    margin: 40px auto;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeInUp 0.7s cubic-bezier(0.16,1,0.3,1);
}

/* ─── HERO ─── */
.hero-section {
    background: linear-gradient(165deg, #001633 0%, #002F6C 55%, #0a3f85 100%);
    color: #fff;
    padding: 85px 50px;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-25deg);
    animation: shimmer 6s infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    30% { left: 200%; }
    100% { left: 200%; }
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(56,189,248,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    position: relative; z-index:1;
}
.pslab-brand {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    background: linear-gradient(to right, #fff, #93C5FD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-date { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
/* Hero logo blocks — clean, no box */
.hero-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative; z-index:1;
    flex-wrap: wrap;
}
.hero-logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.hero-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
    transition: transform 0.2s;
}
.hero-logo-block:hover .hero-logo-img { transform: translateY(-2px); }
.hero-logo-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.hero-logo-arrow {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.25);
    align-self: center;
    margin: 0 4px;
}
.hero-main-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    position: relative; z-index:1;
}
.hero-main-title .hero-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
}
.hero-main-title em {
    font-style: normal;
    background: linear-gradient(to right, #fff, #93C5FD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.slogan {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 32px;
    font-style: italic;
    position: relative; z-index:1;
}
.hero-meta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative; z-index:1;
}
.hero-chip {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
}
.hero-chip.confidential-chip { border-color: rgba(225,29,72,0.4); background: rgba(225,29,72,0.1); color: #FCA5A5; }
.hero-chip.personal-chip { border-color: rgba(147,197,253,0.3); background: rgba(147,197,253,0.12); color: #BAE6FD; }

/* ─── TOC ─── */
.toc-section {
    background: #F8FAFC;
    border-bottom: 1px solid var(--border);
    padding: 20px 50px;
}
.toc-label { font-size: 0.75rem; font-weight: 700; color: var(--text-sub); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px; }
.toc-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.toc-item {
    text-decoration: none;
    color: var(--text-sub);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.toc-item span { color: var(--primary); margin-right: 6px; }
.toc-item:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.toc-item:hover span { color: #93C5FD; }

/* ─── SECTION WRAPPER ─── */
.report-section {
    padding: 60px 50px;
    border-bottom: 1px solid var(--border);
}
.section-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 36px;
}
.section-num {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 0.1em;
    background: rgba(0,47,108,0.07);
    padding: 4px 10px;
    border-radius: 6px;
}
.section-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* ─── PS:LAB INTRO ─── */
.pslab-intro-box {
    display: flex;
    gap: 30px;
    background: linear-gradient(135deg, rgba(0,47,108,0.04), rgba(0,47,108,0.01));
    border: 1px solid rgba(0,47,108,0.1);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
}
.pslab-intro-text { flex: 1.2; }
.pslab-intro-text h3 { font-size: 1.3rem; margin-bottom: 12px; }
.pslab-intro-text h3 strong { color: var(--primary); }
.pslab-intro-text p { font-size: 0.95rem; color: var(--text-sub); line-height: 1.7; }
.pslab-intro-text p strong { color: var(--text-main); }
.pslab-strengths { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.strength-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.s-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.strength-item strong { display: block; font-size: 0.95rem; color: var(--primary); margin-bottom: 3px; }
.strength-item p { font-size: 0.85rem; color: var(--text-sub); }

/* ─── PROCESS STEPS ─── */
.process-section { margin-bottom: 30px; }
.subsection-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 20px; color: var(--text-sub); }
.process-steps {
    display: flex;
    align-items: center;
    gap: 8px;
}
.process-step {
    flex: 1;
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.process-step.active {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.step-num { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 10px; }
.step-icon { font-size: 1.8rem; margin-bottom: 12px; }
.process-step h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.process-step p { font-size: 0.85rem; color: var(--text-sub); line-height: 1.6; max-width: 180px; word-break: keep-all; }
.step-badge {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff;
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em;
    padding: 3px 12px; border-radius: 30px;
}
.step-arrow { color: var(--border); font-size: 1.5rem; flex-shrink: 0; }

/* ─── TWO COLUMN ─── */
.two-column { display: flex; gap: 24px; align-items: stretch; }
.col { flex: 1; min-width: 0; }
#data-analysis .two-column > .col:first-child { flex: 1.1; }
#data-analysis .two-column > .col:last-child { flex: 0.9; }
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.col-title { font-size: 1.05rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

/* Student profile list */
.info-list { list-style: none; }
.info-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #F1F5F9; font-size: 0.95rem; }
.info-list li:last-child { border-bottom: none; }
.info-label { width: 44px; font-size: 0.78rem; font-weight: 700; color: var(--text-sub); flex-shrink: 0; text-align: right; }
.grade-display { font-size: 1.4rem; font-weight: 900; color: var(--primary); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; font-style: normal; }
.tag.warn { background: rgba(225,29,72,0.08); color: var(--up-color); }
.tag.ok { background: rgba(5,150,105,0.08); color: var(--safe-color); }
.tag.up { background: rgba(0,47,108,0.08); color: var(--primary); }

.target-summary { background: #F8FAFC; border-radius: 10px; padding: 16px; border-left: 3px solid var(--primary); margin-top: 16px; }
.target-title { font-size: 0.85rem; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.target-row { font-size: 0.88rem; margin-bottom: 5px; color: var(--text-main); }
.target-row strong { color: var(--text-sub); font-weight: 600; }

/* ─── MENTOR CARDS ─── */
.mentor-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.mentor-item {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 16px; background: #F8FAFC;
    border: 1px solid var(--border); border-radius: 12px;
    cursor: pointer; transition: all 0.2s;
}
.mentor-item:hover { background: var(--white); box-shadow: var(--shadow-md); border-color: var(--primary); }
.mentor-logo-wrap {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mentor-univ-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.12));
}
.mentor-info { flex: 1; }
.mentor-name { font-size: 1rem; font-weight: 800; margin-bottom: 5px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.mentor-tag { font-size: 0.75rem; font-weight: 500; color: var(--text-sub); background: var(--border); padding: 2px 9px; border-radius: 20px; }
.mentor-info p { font-size: 0.85rem; color: var(--text-sub); line-height: 1.5; word-break: keep-all; }
.mentor-arrow { font-size: 1.3rem; color: var(--text-sub); }

.team-members-mini { border-top: 1px dashed var(--border); padding-top: 16px; }
.mini-label { font-size: 0.78rem; color: var(--text-sub); margin-bottom: 10px; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-chip {
    font-size: 0.82rem; font-weight: 600;
    background: #F1F5F9; border-radius: 30px;
    padding: 5px 14px; cursor: pointer;
    color: var(--text-main); border: 1px solid var(--border);
    transition: all 0.2s;
}
.mini-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── CHART & TABLE ─── */
.chart-container { height: 230px; margin-bottom: 16px; }
.chart-summary-box { display: flex; gap: 16px; margin-bottom: 16px; }
.chart-summary-item { flex: 1; background: #F8FAFC; border-radius: 10px; padding: 14px; text-align: center; border: 1px solid var(--border); }
.csi-label { display: block; font-size: 0.75rem; color: var(--text-sub); font-weight: 600; margin-bottom: 6px; }
.csi-value { display: block; font-size: 1.6rem; font-weight: 900; }
.csi-value.primary { color: var(--primary); }
.csi-value.safe { color: var(--safe-color); }
.csi-value.up-text { color: var(--up-color); font-size: 1.1rem; }
.chart-desc { font-size: 0.9rem; color: var(--text-sub); line-height: 1.65; background: #F8FAFC; padding: 14px; border-radius: 10px; }

.table-container { border-radius: 12px; overflow-x: auto; border: 1px solid var(--border); background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { background: #F8FAFC; padding: 12px 6px; text-align: center; font-size: 0.78rem; font-weight: 700; color: var(--text-sub); letter-spacing: 0.05em; border-bottom: 2px solid var(--border); border-right: 1px solid rgba(0,47,108,0.15); white-space: nowrap; }
.data-table th:last-child { border-right: none; }
.data-table td { padding: 12px 6px; text-align: center; border-bottom: 1px solid #F1F5F9; background: var(--white); border-right: 1px solid rgba(0,47,108,0.15); }
.data-table th:nth-child(n+2):nth-child(-n+5), .data-table td:nth-child(n+2):nth-child(-n+5) { min-width: 58px; }
.data-table td:last-child { border-right: none; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr.row-important td { background: rgba(0,47,108,0.02); }
.data-table tr.row-dim td { opacity: 0.6; }
.cell-best { font-weight: 900; color: var(--primary); }
.cell-target { font-size: 0.8rem; font-weight: 700; color: var(--up-color); white-space: nowrap; }
.cell-ok { font-size: 0.8rem; color: var(--safe-color); font-weight: 600; white-space: nowrap; }
.data-table th:last-child, .data-table td:last-child { min-width: 125px; }

.table-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 0.78rem; color: var(--text-sub); }
.legend-item.important { color: var(--primary); }
.legend-item.best { color: var(--up-color); }

.subject-analysis { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.subject-bar { display: flex; align-items: center; gap: 10px; }
.sb-label { font-size: 0.82rem; width: 95px; flex-shrink: 0; font-weight: 600; padding-right: 8px; color: var(--text-sub); }
.sb-track { flex: 1; height: 8px; background: #F1F5F9; border-radius: 10px; overflow: hidden; margin: 0 4px; }
.sb-fill { height: 100%; background: var(--primary); border-radius: 10px; }
.sb-fill.green { background: var(--safe-color); }
.sb-note { font-size: 0.78rem; font-weight: 700; width: 120px; text-align: right; flex-shrink: 0; white-space: nowrap; }
.sb-note.warn { color: var(--up-color); }
.sb-note.ok { color: var(--safe-color); }

/* ─── EVAL CARDS ─── */
.eval-grid { display: flex; gap: 24px; margin-bottom: 24px; }
.eval-card {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s;
}
.eval-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.eval-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.eval-badge {
    display: inline-block;
    font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em;
    background: rgba(0,47,108,0.08); color: var(--primary);
    padding: 3px 10px; border-radius: 6px; margin-bottom: 12px;
    text-transform: uppercase;
}
.eval-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; }
.eval-list { list-style: none; }
.eval-list li { font-size: 0.88rem; color: var(--text-sub); margin-bottom: 8px; padding-left: 14px; position: relative; line-height: 1.5; }
.eval-list li::before { content: '·'; position: absolute; left: 2px; color: var(--primary); font-size: 1.1rem; line-height: 1.3; font-weight: 700; }
.eval-list li strong { color: var(--text-main); font-weight: 700; }

.memo-box {
    background: rgba(0,47,108,0.04);
    border: 1px solid rgba(0,47,108,0.1);
    color: var(--primary);
    padding: 18px 22px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.65;
}
.memo-box.alert { background: rgba(225,29,72,0.05); border-color: rgba(225,29,72,0.15); color: #B91C1C; }
.memo-box.focus-memo { border-left: 4px solid var(--primary); border-top: none; border-right: none; border-bottom: none; background: linear-gradient(to right, rgba(0,47,108,0.06), rgba(0,47,108,0.01)); border-radius: 0 8px 8px 0; }
.memo-box strong { font-weight: 800; }
.memo-box em { font-style: italic; color: var(--primary-light); }

/* ─── ROADMAP TABLE ─── */
.roadmap-table-wrap { border-radius: 14px; overflow-x: auto; border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: var(--white); }
.roadmap-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.roadmap-table th { background: #F8FAFC; padding: 14px 16px; text-align: left; font-size: 0.78rem; font-weight: 700; color: var(--text-sub); letter-spacing: 0.05em; border-bottom: 2px solid var(--border); border-right: 1px solid rgba(0,47,108,0.15); white-space: nowrap; }
.roadmap-table th:last-child { border-right: none; }
.roadmap-table td { padding: 16px; border-bottom: 1px solid #F1F5F9; vertical-align: middle; border-right: 1px solid rgba(0,47,108,0.15); }
.roadmap-table td:last-child { border-right: none; }
.roadmap-table th:nth-child(1), .roadmap-table td:nth-child(1) { width: 70px; text-align: center; }
.roadmap-table th:nth-child(2), .roadmap-table td:nth-child(2) { width: 140px; }
.roadmap-table th:nth-child(3), .roadmap-table td:nth-child(3) { width: 160px; white-space: nowrap; }
.roadmap-table th:nth-child(4), .roadmap-table td:nth-child(4) { width: 100px; white-space: nowrap; text-align: center; }
.roadmap-table th:nth-child(5), .roadmap-table td:nth-child(5) { min-width: 200px; }
.roadmap-table tr:hover td { background: rgba(0,47,108,0.02) !important; }
.badge-pill {
    display: inline-block;
    font-size: 0.78rem; font-weight: 800;
    padding: 4px 12px; border-radius: 30px;
    white-space: nowrap;
}
.badge-pill.up { background: rgba(225,29,72,0.1); color: var(--up-color); }
.badge-pill.push { background: rgba(217,119,6,0.12); color: var(--warn-color); }
.badge-pill.safe { background: rgba(5,150,105,0.1); color: var(--safe-color); }

/* ─── 세특 분석 섹션 ─── */
.setech-section { margin-top: 32px; }

.narrative-timeline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 28px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(0,47,108,0.03), rgba(0,47,108,0.01));
    border: 1px solid rgba(0,47,108,0.1);
    border-radius: var(--radius);
}
.nt-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 0 8px;
}
.nt-step.highlight { }
.nt-step.target { }
.nt-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-bottom: 4px;
}
.nt-dot.past  { background: var(--text-sub); }
.nt-dot.now   { background: var(--primary); box-shadow: 0 0 0 4px rgba(0,47,108,0.15); }
.nt-dot.goal  { background: var(--safe-color); box-shadow: 0 0 0 4px rgba(5,150,105,0.15); }
.nt-year  { font-size: 0.72rem; font-weight: 900; color: var(--text-sub); letter-spacing: 0.05em; }
.nt-theme { font-size: 0.9rem; font-weight: 800; color: var(--primary); }
.nt-step.highlight .nt-theme { color: var(--primary); font-size: 1rem; }
.nt-step.target .nt-theme { color: var(--safe-color); }
.nt-desc  { font-size: 0.8rem; color: var(--text-sub); line-height: 1.5; word-break: keep-all; }
.nt-arrow { font-size: 1.2rem; color: var(--border); align-self: center; flex-shrink: 0; padding-top: 10px; }

.setech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.setech-card {
    border-radius: 10px;
    padding: 16px 18px;
    border: 1px solid var(--border);
}
.setech-card.sc-high { background: rgba(0,47,108,0.04); border-color: rgba(0,47,108,0.18); }
.setech-card.sc-mid  { background: rgba(217,119,6,0.04); border-color: rgba(217,119,6,0.18); }
.setech-card.sc-low  { background: rgba(100,116,139,0.04); border-color: rgba(100,116,139,0.15); }
.sc-subject {
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.sc-high .sc-subject { color: var(--primary); }
.sc-mid  .sc-subject { color: var(--warn-color); }
.sc-low  .sc-subject { color: var(--text-sub); }
.sc-content {
    font-size: 0.82rem;
    color: var(--text-sub);
    line-height: 1.6;
    word-break: keep-all;
}
.sc-content em { color: var(--safe-color); font-style: normal; font-weight: 600; }

.setech-insight {
    background: rgba(5,150,105,0.06);
    border: 1px solid rgba(5,150,105,0.2);
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 0.9rem;
    color: #065F46;
    line-height: 1.7;
    word-break: keep-all;
}
.setech-insight strong { color: #065F46; }

/* ─── ACTION PLAN ─── */
.sub-desc { color: var(--text-sub); margin-bottom: 24px; font-size: 0.95rem; }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 16px; }
.action-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.action-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.action-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.action-card:hover::after { transform: scaleX(1); }
.action-num {
    display: block;
    font-size: 0.7rem; font-weight: 900;
    color: var(--primary); letter-spacing: 0.1em;
    margin-bottom: 8px; text-transform: uppercase;
    opacity: 0.6;
}
.subject-tag {
    display: block;
    background: #EFF6FF; color: var(--primary-light);
    font-size: 0.78rem; font-weight: 700;
    padding: 5px 11px; border-radius: 6px;
    margin-bottom: 16px;
    transition: all 0.2s;
    width: fit-content;
}
.action-card:hover .subject-tag { background: var(--primary); color: #fff; }
.action-card h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.5; margin-bottom: 12px; word-break: keep-all; }
.action-preview { font-size: 0.85rem; color: var(--text-sub); line-height: 1.6; margin-bottom: 12px; word-break: keep-all; }
.action-detail-list {
    list-style: none;
    margin-bottom: 18px;
}
.action-detail-list li {
    font-size: 0.82rem;
    color: var(--text-sub);
    padding: 5px 0 5px 14px;
    position: relative;
    line-height: 1.5;
    border-bottom: 1px dashed #EEF2F7;
    word-break: keep-all;
}
.action-detail-list li:last-child { border-bottom: none; }
.action-detail-list li::before { content: '·'; position: absolute; left: 2px; color: var(--primary); font-size: 1.1rem; line-height: 1.3; font-weight: 700; }
.click-more { font-size: 0.82rem; font-weight: 700; color: var(--primary-light); display: block; }

.checklist-box {
    background: #FAFBFF;
    border: 1px solid rgba(0,47,108,0.1);
    border-radius: var(--radius);
    padding: 28px 32px;
}
.checklist-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0,47,108,0.08);
}
.checklist-title-icon { font-size: 1.5rem; }
.checklist-header h4 { font-size: 1rem; font-weight: 800; margin-bottom: 3px; }
.checklist-subtitle { font-size: 0.82rem; color: var(--text-sub); }
.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.checklist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}
.checklist-item:hover { box-shadow: var(--shadow-md); }
.cl-priority {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
}
.priority-high .cl-priority { background: rgba(225,29,72,0.1); color: #B91C1C; }
.priority-mid  .cl-priority { background: rgba(217,119,6,0.12); color: #92400E; }
.priority-low  .cl-priority { background: rgba(5,150,105,0.1);  color: #065F46; }
.priority-high { border-color: rgba(225,29,72,0.18); }
.priority-mid  { border-color: rgba(217,119,6,0.18); }
.priority-low  { border-color: rgba(5,150,105,0.15); }
.cl-content strong { display: block; font-size: 0.88rem; font-weight: 800; color: var(--text-main); margin-bottom: 3px; }
.cl-content span { font-size: 0.82rem; color: var(--text-sub); line-height: 1.4; word-break: keep-all; }

.quote-card {
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 20px;
    position: relative;
}
.quote-card::before {
    content: '"';
    position: absolute;
    top: 12px; right: 20px;
    font-size: 4rem; line-height: 1;
    color: rgba(0,47,108,0.05);
    font-family: Georgia, serif;
}
.quote-mentor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.quote-univ-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.1));
}
.quote-mentor-header h4 { font-size: 1rem; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.quote-role { font-size: 0.8rem; color: var(--text-sub); font-weight: 500; }
.quote-card p { font-size: 0.95rem; font-style: italic; color: var(--text-main); line-height: 1.8; position: relative; z-index:1; word-break: keep-all; }
.quote-card p strong { font-style: normal; color: var(--primary); }

.summary-col {
    background: linear-gradient(145deg, var(--primary), #001633);
    color: #fff;
    border-radius: var(--radius);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-md);
}
.summary-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 10px; }
.summary-col h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.12); line-height: 1.3; }
.summary-text { font-size: 1rem; line-height: 1.85; color: rgba(255,255,255,0.88); margin-bottom: 16px; word-break: keep-all; }
.summary-text strong { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(147,197,253,0.5); }
.summary-quote { font-size: 1rem; font-style: italic; color: #93C5FD; margin-bottom: 24px; line-height: 1.7; word-break: keep-all; }
.summary-sig { font-size: 0.85rem; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; text-align: right; margin-top: auto; }

/* --- PERSONALIZED ADVICE CARD --- */
.personalized-advice-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 22px;
    margin: 24px 0;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    text-align: left;
}
.personalized-advice-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: #93C5FD;
    opacity: 0.6;
}
.advice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.advice-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(147, 197, 253, 0.5));
}
.advice-header h4 {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #93C5FD !important;
    margin: 0 !important;
    border-bottom: none !important;
    padding: 0 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}
.personalized-advice-card p {
    font-size: 0.88rem !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 12px !important;
    text-align: left !important;
}
.personalized-advice-card p:last-child { margin-bottom: 0 !important; }
.personalized-advice-card strong {
    color: #fff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* ─── FOOTER ─── */
.report-footer { background: #F8FAFC; border-top: 1px solid var(--border); padding: 44px 50px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.footer-brand { font-size: 1.3rem; font-weight: 900; color: var(--primary); letter-spacing: 0.1em; }
.footer-links { display: flex; gap: 16px; }
.footer-link {
    text-decoration: none;
    font-size: 0.85rem; font-weight: 700;
    color: var(--text-sub);
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    transition: all 0.2s;
}
.footer-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-info { font-size: 0.85rem; color: var(--text-sub); line-height: 1.8; margin-bottom: 24px; }
.footer-confidential {
    display: inline-block;
    background: var(--white);
    border: 1.5px solid rgba(0,47,108,0.15);
    color: var(--primary);
    font-size: 0.9rem; font-weight: 700;
    padding: 12px 24px;
    border-radius: 10px;
}
.footer-confidential strong { color: var(--up-color); }

/* ─── MODAL ─── */
.modal-overlay {
    position: fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(15,23,42,0.65);
    display: flex; align-items: center; justify-content: center;
    opacity:0; visibility:hidden;
    transition: all 0.3s;
    backdrop-filter: blur(6px);
    z-index: 9999;
}
.modal-overlay.active { opacity:1; visibility:visible; }
.modal-content {
    background: var(--white);
    width: 90%; max-width: 560px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transform: translateY(30px) scale(0.97);
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.close-btn {
    position: absolute; top:16px; right:16px;
    background: #F1F5F9; border: none;
    width: 34px; height: 34px; border-radius: 50%;
    font-size: 1rem; cursor: pointer;
    color: var(--text-sub);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.close-btn:hover { background: var(--primary); color: #fff; }
.popup-title { color: var(--primary); font-size: 1.3rem; font-weight: 800; margin-bottom: 16px; }
.popup-desc { font-size: 0.95rem; color: var(--text-main); line-height: 1.75; }
.popup-desc strong { color: var(--primary-light); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    /* 페이지 전체 오버플로 방지 */
    body { overflow-x: hidden; }
    .report-wrapper { margin: 0; border-radius: 0; overflow-x: hidden; }

    /* ── 섹션 패딩 ── */
    .hero-section { padding: 36px 18px 30px; }
    .toc-section   { padding: 14px 18px; }
    .report-section{ padding: 36px 18px; }
    .report-footer { padding: 28px 18px; }

    /* ── 히어로 ── */
    .hero-top-bar { margin-bottom: 18px; }
    .hero-date    { font-size: 0.78rem; }
    .hero-main-title { font-size: 1.75rem; line-height: 1.3; }
    .slogan       { font-size: 0.88rem; margin-bottom: 20px; }
    /* 배지: 줄바꿈 허용 + 크기 축소 */
    .hero-meta-row { gap: 6px; flex-wrap: wrap; }
    .hero-chip    { font-size: 0.75rem; padding: 5px 10px; white-space: normal; }

    /* ── 목차 ── */
    .toc-grid { flex-direction: column; gap: 5px; }
    .toc-item { font-size: 0.82rem; padding: 9px 14px; }

    /* ── 섹션 헤더 ── */
    .section-title { font-size: 1.25rem; word-break: keep-all; }
    .section-header { gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }

    /* ── PS:LAB 소개 박스 ── */
    .pslab-intro-box { flex-direction: column; gap: 18px; padding: 20px 16px; }
    .pslab-intro-text h3 { font-size: 1.15rem; }
    .pslab-intro-text p  { font-size: 0.88rem; }

    /* ── 3단계 프로세스 ── */
    .process-steps { flex-direction: column; gap: 8px; }
    .step-arrow { transform: rotate(90deg); align-self: center; }
    .process-step { padding: 20px 16px; width: 100%; }
    .process-step p { max-width: 100%; font-size: 0.85rem; }

    /* ── 2열 레이아웃 세로 전환 ── */
    .two-column, .eval-grid { flex-direction: column; gap: 14px; }

    /* ── 학생 프로필 카드 / 멘토 카드 ── */
    .card { padding: 20px 16px; }
    .info-list li { flex-wrap: wrap; gap: 6px; padding: 12px 0; }
    .info-label { width: 100%; text-align: left; opacity: 0.6; margin-bottom: 2px; }
    .grade-display { font-size: 1.2rem; }
    .tag { font-size: 0.75rem; }
    
    .mentor-item { padding: 14px 12px; }
    .mentor-info p { font-size: 0.82rem; }
    .mentor-logo-wrap { width: 38px; height: 38px; }
    .mentor-univ-logo { width: 38px; height: 38px; }

    /* ── 내신 그래프 - 반응형 ── */
    .chart-container { height: 190px; }
    .chart-summary-box { gap: 6px; }
    .chart-summary-item { padding: 10px 8px; }
    .csi-label { font-size: 0.68rem; }
    .csi-value { font-size: 1.2rem; }
    .csi-value.up-text { font-size: 0.92rem; }
    .chart-desc { font-size: 0.85rem; padding: 12px; }

    /* ── 내신 과목 테이블 — 가로 스크롤 ── */
    .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
    .data-table { min-width: 360px; font-size: 0.83rem; }
    .data-table th, .data-table td { padding: 10px 8px; }

    /* ── subject bar ── */
    .sb-label { width: 85px; font-size: 0.78rem; flex-shrink: 0; }
    .sb-note  { width: 100px; text-align: right; font-size: 0.75rem; flex-shrink: 0; white-space: nowrap; }

    /* ── eval 카드 ── */
    .eval-card { padding: 20px 16px; }
    .eval-list li { font-size: 0.85rem; }

    /* ── memo-box ── */
    .memo-box { font-size: 0.86rem; padding: 14px 16px; }

    /* ── 세특 내러티브 타임라인 — 세로 ── */
    .narrative-timeline {
        flex-direction: column;
        gap: 10px;
        padding: 16px;
        align-items: stretch;
    }
    .nt-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
        padding: 0;
    }
    .nt-dot  { margin-top: 4px; margin-bottom: 0; flex-shrink: 0; }
    .nt-theme{ font-size: 0.9rem; }
    .nt-desc { font-size: 0.78rem; }
    .nt-arrow{ transform: rotate(90deg); align-self: center; margin: 0; }

    /* ── 세특 그리드 3열 → 1열 ── */
    .setech-grid { grid-template-columns: 1fr; gap: 10px; }
    .setech-card { padding: 14px 14px; }
    .sc-content { font-size: 0.8rem; }

    /* ── 로드맵 테이블 — 가로 스크롤 (핵심 전략 열 줄임) ── */
    .roadmap-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .roadmap-table { font-size: 0.78rem; min-width: 520px; }
    .roadmap-table th { padding: 10px 10px; font-size: 0.72rem; }
    .roadmap-table td { padding: 10px 10px; vertical-align: middle; word-break: keep-all; }
    .badge-pill { font-size: 0.72rem; padding: 3px 8px; }

    /* ── 액션 플랜 카드 1열 ── */
    .action-grid { grid-template-columns: 1fr; gap: 12px; }
    .action-card { padding: 20px 16px; }
    .action-card h3 { font-size: 1rem; }
    .action-preview { font-size: 0.83rem; }
    .action-detail-list li { font-size: 0.8rem; }
    .sub-desc { font-size: 0.88rem; margin-bottom: 16px; }

    /* ── 체크리스트 2열 → 1열 ── */
    .checklist-box { padding: 18px 14px; }
    .checklist-grid { grid-template-columns: 1fr; gap: 8px; }
    .checklist-item { padding: 13px 14px; gap: 10px; }
    .cl-content strong { font-size: 0.85rem; }
    .cl-content span   { font-size: 0.78rem; }

    /* ── 멘토 인용구 (Quote) ── */
    .quote-card { padding: 18px 16px; margin-bottom: 14px; }
    .quote-card p { font-size: 0.88rem; line-height: 1.75; }
    .quote-univ-logo { width: 34px; height: 34px; }
    .quote-mentor-header h4 { font-size: 0.92rem; }

    /* ── 총평 (파랑 박스) ── */
    .summary-col { padding: 24px 20px; border-radius: var(--radius); }
    .summary-col h3 { font-size: 1.25rem; }
    .summary-text { font-size: 0.9rem; line-height: 1.75; }
    .summary-quote { font-size: 0.9rem; }

    /* ── 모달 ── */
    .modal-content { padding: 24px 18px; width: 96%; border-radius: 14px; }
    .popup-title { font-size: 1.1rem; }
    .popup-desc  { font-size: 0.88rem; }

    /* ── 푸터 ── */
    .footer-top { flex-direction: column; align-items: flex-start; gap: 10px; }
    .footer-brand { font-size: 1.1rem; }
    .footer-links { flex-wrap: wrap; gap: 8px; }
    .footer-link  { font-size: 0.78rem; padding: 5px 12px; }
    .footer-info  { font-size: 0.82rem; }
    .footer-confidential { font-size: 0.82rem; padding: 10px 16px; }
}

/* ── 초소형 화면 (390px 이하) ── */
@media (max-width: 390px) {
    .hero-main-title { font-size: 1.55rem; }
    .section-title   { font-size: 1.1rem; }
    .hero-chip       { font-size: 0.7rem; padding: 4px 9px; }
    .report-section, .hero-section { padding-left: 14px; padding-right: 14px; }
}


/* --- PRIVACY MASK --- */
.privacy-blur { filter: blur(10px); user-select: none; opacity: 0.9; }

