/* 커리어맵 — 특성화고 진로 내비게이터 */
:root {
  --accent: #10b981;
  --accent-dark: #059669;
  --accent-soft: #d1fae5;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --bg: #f6f8f7;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e5e9ec;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 28px rgba(15, 23, 42, 0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.app { display: flex; min-height: 100vh; }

/* ===== 사이드바 ===== */
.sidebar {
  width: 248px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-800));
  color: #cbd5e1;
  padding: 22px 16px;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; }
.logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #0d9488);
  color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.brand strong { display: block; color: #fff; font-size: 17px; }
.brand span { font-size: 11px; letter-spacing: 2px; color: #94a3b8; }
.nav-label { font-size: 12px; color: #64748b; padding: 0 10px 8px; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  background: none; border: none; color: #cbd5e1;
  padding: 11px 12px; border-radius: 10px; font-size: 15px;
  cursor: pointer; text-align: left; font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-item.active { background: var(--accent); color: #fff; font-weight: 700; }
.side-foot { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 14px; font-size: 12px; color: #94a3b8; }
.side-foot p { margin-top: 8px; line-height: 1.5; }
.backdrop { display: none; }

/* ===== 메인 ===== */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 28px; background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.topbar h2 { font-size: 19px; }
.hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }
.demo-chip {
  margin-left: auto; font-size: 12px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-dark);
  padding: 5px 12px; border-radius: 999px;
}
.content { padding: 28px; max-width: 1080px; width: 100%; margin: 0 auto; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 26px; }

/* ===== 페이지 전환 ===== */
.page { display: none; animation: fadeUp 0.35s ease; }
.page.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===== 카드/버튼 ===== */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px;
}
.card-title { font-size: 18px; margin-bottom: 10px; }
.muted { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.btn {
  border: none; border-radius: 10px; padding: 12px 22px;
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-small { padding: 8px 16px; font-size: 14px; }
.sample-tag {
  font-size: 11px; font-weight: 700; background: #fef3c7; color: #b45309;
  padding: 2px 8px; border-radius: 999px; vertical-align: middle;
}
.sample-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: #fef3c7; color: #b45309; padding: 3px 10px; border-radius: 999px;
}
.new-badge {
  font-size: 11px; font-weight: 700; background: var(--accent); color: #fff;
  padding: 2px 8px; border-radius: 999px; vertical-align: middle;
}

/* ===== 홈 ===== */
.hero {
  background: linear-gradient(135deg, #0f172a, #134e4a);
  color: #fff; border-radius: 20px; padding: 48px 40px; margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
}
.hero-badge {
  display: inline-block; font-size: 13px; font-weight: 700;
  background: rgba(16,185,129,0.2); color: #6ee7b7;
  border: 1px solid rgba(16,185,129,0.4);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: 34px; line-height: 1.35; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: #6ee7b7; }
.hero p { color: #cbd5e1; margin-bottom: 24px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.area-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.area-icon { font-size: 30px; }
.area-card h3 { font-size: 16px; }
.area-card p { font-size: 13.5px; color: var(--muted); flex: 1; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; text-align: center;
}
.kpi strong { display: block; font-size: 28px; color: var(--accent-dark); }
.kpi span { font-size: 13px; color: var(--muted); }
.notice-list { list-style: none; }
.notice-list li { padding: 10px 4px; border-bottom: 1px solid var(--border); font-size: 15px; }
.notice-list li:last-child { border-bottom: none; }
.notice-date { color: var(--accent-dark); font-weight: 700; font-size: 13px; margin-right: 12px; }

/* ===== 서브탭 ===== */
.subtabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.subtab {
  border: 1px solid var(--border); background: #fff; border-radius: 999px;
  padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  color: var(--muted);
}
.subtab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.jtab-panel { display: none; }
.jtab-panel.active { display: block; animation: fadeUp 0.3s ease; }

/* ===== 채용공고 ===== */
.filter-row { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
select, input[type="text"], input[type="number"], input[type="date"], textarea {
  font-family: inherit; font-size: 14px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text);
}
#predNaesin, #predMock { width: 190px; font-size: 16px; font-weight: 700; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.job-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.job-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; border-top: 4px solid var(--accent);
}
.job-card h4 { font-size: 16px; margin-bottom: 4px; }
.job-company { color: var(--accent-dark); font-weight: 700; font-size: 14px; }
.job-meta { font-size: 13px; color: var(--muted); margin: 8px 0; }
.job-req { font-size: 13.5px; background: #f8fafc; border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.job-foot { display: flex; justify-content: space-between; align-items: center; }
.badge-edu {
  font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent-dark);
  padding: 4px 10px; border-radius: 999px;
}
.badge-edu.off { background: #f1f5f9; color: var(--muted); }
.deadline { font-size: 13px; font-weight: 700; color: #dc2626; }
.deadline.relaxed { color: var(--muted); font-weight: 400; }

/* ===== 자소서 ===== */
.tip-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.tip-box strong { color: var(--accent-dark); display: block; margin-bottom: 6px; }
.tip-box p { font-size: 14px; }
#coverQTitle { margin: 6px 0 4px; }
#coverText { width: 100%; margin-top: 8px; resize: vertical; }
.cover-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
#coverCount { font-size: 13px; color: var(--muted); }

/* ===== 면접 ===== */
.int-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.int-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; cursor: pointer; transition: box-shadow 0.15s;
}
.int-card:hover { box-shadow: var(--shadow-lg); }
.int-card h4 { font-size: 15px; margin-bottom: 6px; }
.int-card h4::before { content: "Q. "; color: var(--accent-dark); font-weight: 800; }
.int-follow { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 13.5px; color: var(--muted); }
.int-card.open .int-follow { display: block; }
.int-hint { font-size: 12px; color: var(--accent-dark); font-weight: 700; }

/* ===== NCS ===== */
.ncs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ncs-item { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 16px 12px; text-align: center; }
.ncs-item strong { display: block; font-size: 14px; margin-bottom: 6px; color: var(--accent-dark); }
.ncs-item span { font-size: 12px; color: var(--muted); }

/* ===== 채팅 ===== */
.chat-log {
  height: 300px; overflow-y: auto; border: 1px solid var(--border);
  border-radius: 12px; padding: 14px; background: #fbfdfc; margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14px; }
.msg.bot { background: #eef2f1; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input { flex: 1; }

/* ===== 퀴즈 ===== */
.quiz-q { font-size: 17px; font-weight: 700; margin: 14px 0; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  text-align: left; background: #fff; border: 2px solid var(--border);
  border-radius: 12px; padding: 13px 16px; font-size: 15px; cursor: pointer; font-family: inherit;
}
.quiz-opt:hover { border-color: var(--accent); background: #f0fdf4; }
.quiz-progress { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.quiz-result { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 20px; }
.quiz-result h4 { color: var(--accent-dark); font-size: 18px; margin-bottom: 8px; }

/* ===== 진학 ===== */
.track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.track-card { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.track-card.highlight { border-color: var(--accent); background: #f0fdf4; }
.track-card h4 { font-size: 15px; margin-bottom: 10px; }
.track-card ul { padding-left: 18px; font-size: 13.5px; }
.track-card li { margin-bottom: 7px; }
.source-box {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 16px 18px; font-size: 14px;
}
.source-box strong { display: block; margin-bottom: 6px; }
.source-box ul { padding-left: 18px; margin-top: 6px; }
.source-box a { color: var(--accent-dark); font-weight: 700; }
.match-result { margin-top: 12px; }
.match-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.match-chip { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; }
.timeline { display: flex; flex-direction: column; gap: 0; margin: 8px 0; }
.tl-item { display: flex; gap: 16px; padding: 14px 4px; border-left: 3px solid var(--accent); padding-left: 18px; position: relative; }
.tl-date { font-weight: 800; color: var(--accent-dark); min-width: 44px; }
.tl-item p { font-size: 13.5px; color: var(--muted); }
.pred-lines { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.pred-line { display: flex; gap: 12px; align-items: center; background: #f8fafc; border-radius: 10px; padding: 12px 16px; }
.pred-line .tag { font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; color: #fff; min-width: 52px; text-align: center; }
.tag.safe { background: #10b981; } .tag.fit { background: #f59e0b; } .tag.reach { background: #ef4444; }
.pred-line p { font-size: 14px; }

/* ===== 자격증 ===== */
.cert-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cert-year { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.cert-year h4 { color: var(--accent-dark); margin-bottom: 12px; font-size: 16px; }
.cert-chip {
  display: block; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px; font-size: 14px; font-weight: 600;
}
.cert-chip small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

/* ===== 포트폴리오 ===== */
.pf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-form textarea, .pf-form .btn { grid-column: 1 / -1; }
.pf-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 8px; }
.pf-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pf-stat { background: #f0fdf4; border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.pf-list { list-style: none; }
.pf-list li {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
.pf-type { font-size: 12px; font-weight: 800; background: var(--accent-soft); color: var(--accent-dark); padding: 3px 10px; border-radius: 999px; }
.pf-title { font-weight: 700; margin: 6px 0 4px; }
.pf-meta { font-size: 12.5px; color: var(--muted); }
.pf-body { font-size: 14px; margin-top: 6px; }
.pf-del { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 13px; flex-shrink: 0; }

/* ===== 교사 대시보드 ===== */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.chart-box { background: #f8fafc; border-radius: 12px; padding: 18px; }
.chart-box h4 { margin-bottom: 10px; font-size: 15px; }
.chart-wrap { position: relative; height: 260px; }
.chart-fallback { font-size: 13px; color: var(--muted); }

/* ===== 가이드 ===== */
.guide-list { padding-left: 20px; }
.guide-list li { margin-bottom: 10px; font-size: 15px; }
.legal p { font-size: 14px; margin-bottom: 8px; color: var(--text); }

/* ===== 반응형 ===== */
@media (max-width: 960px) {
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .job-grid, .int-grid, .track-grid, .chart-grid, .cert-timeline { grid-template-columns: 1fr; }
  .ncs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-105%);
    transition: transform 0.25s ease; height: 100vh;
  }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .backdrop.show {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 45;
  }
  .hamburger { display: block; }
  .content { padding: 18px; }
  .hero { padding: 32px 24px; }
  .hero h1 { font-size: 26px; }
  .pf-form { grid-template-columns: 1fr; }
}

/* ===== 비밀번호 게이트 ===== */.gate {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, #0f172a, #134e4a);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.gate-card {
  background: #fff; border-radius: 20px; padding: 40px 36px;
  max-width: 380px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.gate-card .logo { margin: 0 auto 14px; }
.gate-card h2 { font-size: 24px; margin-bottom: 8px; }
.gate-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.gate-card input { width: 100%; margin-bottom: 10px; text-align: center; font-size: 16px; letter-spacing: 2px; }
.gate-err { color: #dc2626; font-size: 13px; margin-bottom: 10px; }
.gate-card .btn { width: 100%; }
body.gate-locked { overflow: hidden; }

/* ===== FAQ 아코디언 ===== */
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: #fff; border: none;
  padding: 15px 18px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text);
}
.faq-q::after { content: "+"; color: var(--accent-dark); font-size: 20px; flex-shrink: 0; }
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a { display: none; padding: 0 18px 16px; font-size: 14px; }
.faq-item.open .faq-a { display: block; }

/* ===== 성적표 ===== */
.grade-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.grade-table th, .grade-table td { border: 1px solid var(--border); padding: 9px 10px; text-align: center; }
.grade-table th { background: #f0fdf4; color: var(--accent-dark); font-size: 13px; }
.grade-table input { width: 100%; min-width: 44px; padding: 6px 8px; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; }
.grade-table input.m-name { min-width: 110px; }
.rtab-panel { display: none; }
.rtab-panel.active { display: block; animation: fadeUp 0.3s ease; }
#pasteArea { width: 100%; font-family: inherit; }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; font-size: 13px; }
input[type="file"] { font-size: 14px; max-width: 100%; }

/* ===== 분석 리포트 ===== */
.rep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.rep-big {
  background: linear-gradient(135deg, var(--accent), #0d9488); color: #fff;
  border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow);
}
.rep-big strong { display: block; font-size: 34px; }
.rep-big span { font-size: 13px; opacity: 0.9; }
.comment-box { font-size: 14px; }
.comment-box p { margin-bottom: 10px; }
.comment-box .good { color: var(--accent-dark); font-weight: 700; }
.comment-box .bad { color: #b45309; font-weight: 700; }

@media (max-width: 960px) {
  .rep-grid { grid-template-columns: 1fr; }
  .grade-table { font-size: 12.5px; }
  .grade-table th, .grade-table td { padding: 6px 6px; }
}

/* ===== 생기부 PDF 연동 ===== */
.dropzone {
  border: 2px dashed var(--border); border-radius: 14px;
  padding: 34px 20px; text-align: center; cursor: pointer;
  background: #fbfdfc; transition: border-color 0.15s, background 0.15s;
  margin: 14px 0 6px;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: #f0fdf4; }
.dropzone:focus { outline: 2px solid var(--accent-soft); }
.dz-svg { width: 44px; height: 44px; margin-bottom: 8px; }
.dropzone p { margin-bottom: 4px; }
.privacy-line {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  font-size: 13.5px; color: var(--muted); margin: 12px 0; text-align: center;
}
.btn-issue {
  width: 100%; padding: 16px; font-size: 16px; border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff;
  border: none; font-weight: 800; cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  transition: filter 0.12s, transform 0.12s;
}
.btn-issue:hover { filter: brightness(1.06); transform: translateY(-1px); }
.issue-note { text-align: center; margin-top: 8px; }
.link-row {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  margin: 14px 0 4px;
}
.link-row a, .linklike {
  color: var(--muted); font-size: 13.5px;
  text-decoration: underline; text-underline-offset: 3px;
  background: none; border: none; cursor: pointer; font-family: inherit; padding: 0;
}
.link-row a:hover, .linklike:hover { color: var(--accent-dark); }
.dl-guide {
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; margin: 12px 0; font-size: 14px;
}
.dl-guide ol { padding-left: 20px; }
.dl-guide li { margin-bottom: 6px; }
.text-preview {
  background: #0f172a; color: #e2e8f0; border-radius: 12px;
  padding: 16px; max-height: 260px; overflow: auto;
  font-size: 12.5px; white-space: pre-wrap; word-break: break-all;
  font-family: inherit;
}
#pdfPreview h4, #pdfTextFallback h4 { margin: 16px 0 4px; font-size: 15px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ===== 발급 안내 마법사 ===== */
.wizard-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55);
  z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.wizard-card {
  background: #fff; border-radius: 20px; max-width: 460px; width: 100%;
  padding: 32px 28px; position: relative; box-shadow: var(--shadow-lg);
  animation: fadeUp 0.25s ease; max-height: 90vh; overflow-y: auto;
}
.wiz-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted);
}
.wiz-step-label {
  font-size: 12px; font-weight: 800; color: var(--accent-dark);
  letter-spacing: 1px; margin-bottom: 6px;
}
.wizard-card h3 { font-size: 19px; margin-bottom: 12px; }
.wiz-body ol { padding-left: 20px; font-size: 14.5px; }
.wiz-body li { margin-bottom: 10px; }
.wiz-body .wiz-note {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
  padding: 10px 12px; font-size: 13px; margin-top: 12px;
}
.wiz-body .btn { margin-top: 10px; }
.wiz-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.wiz-dots { display: flex; gap: 6px; }
.wiz-dots span { width: 8px; height: 8px; border-radius: 50%; background: #e2e8f0; }
.wiz-dots span.on { background: var(--accent); }

/* ===== 대학별 환산점수 ===== */
.disclaimer-box {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px;
  padding: 14px 18px; font-size: 14px; margin-bottom: 14px;
}
.disclaimer-box strong { display: block; margin-bottom: 4px; }
.disclaimer-box p { margin: 0; }
.univ-scroll { overflow-x: auto; margin-bottom: 8px; }
.univ-table { min-width: 760px; }
.univ-table td { vertical-align: top; }
.univ-score { font-size: 17px; color: var(--accent-dark); }
.muted-sm { font-size: 12px; color: var(--muted); }
.ratio-bar { height: 6px; background: #eef2f1; border-radius: 999px; margin: 6px 0; overflow: hidden; }
.ratio-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #0d9488); border-radius: 999px; }
.approx-note { font-size: 12px; color: #b45309; margin: 6px 0 0; }
.univ-track { font-size: 13px; padding: 6px 8px; margin-bottom: 4px; }
.univ-note { margin-top: 6px; background: #f8fafc; border-radius: 8px; padding: 8px 10px; }
.univ-note p { margin: 0; }
.linklike { background: none; border: none; color: var(--accent-dark); font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; font-family: inherit; text-decoration: underline; }
.linklike.danger { color: #dc2626; }
.univ-form-card { margin-top: 16px; border: 2px dashed var(--accent); }
.uf-grades { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.uf-grades label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.uf-grades input { width: 100%; padding: 8px 6px; font-size: 13px; }
.uf-groups { display: flex; flex-wrap: wrap; gap: 10px; }
.uf-groups .chk { font-size: 14px; display: flex; align-items: center; gap: 6px; }
@media (max-width: 960px) {
  .uf-grades { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 회원/관리자 ===== */
/* hidden 속성은 flex 등 display 지정보다 우선 적용 */
[hidden] { display: none !important; }

.user-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; margin: 0 0 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px; font-size: 13px; color: #fff; font-weight: 700;
}
.user-chip .linklike { color: #6ee7b7; text-decoration: none; font-size: 12px; }

.auth-form { display: flex; flex-direction: column; gap: 14px; max-width: 500px; }
.auth-form input {
  width: 100%; padding: 15px 18px; font-size: 17px;
  border: 2px solid var(--border); border-radius: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.auth-form input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(16,185,129,.16);
}
.auth-form input::placeholder { color: #94a3b8; }
.auth-form .btn-primary {
  background: linear-gradient(135deg, #10b981, #0d9488);
  padding: 15px 22px; font-size: 17px; border-radius: 14px;
  box-shadow: 0 6px 18px rgba(16,185,129,.35);
}
.auth-form .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(16,185,129,.45); }
.auth-form .btn-ghost { padding: 12px 18px; font-size: 15px; border-radius: 12px; }
.auth-err { color: #dc2626; font-size: 14px; margin: 2px 0; }

/* 로그인/회원가입 카드를 사이트 다른 카드처럼 크고 컬러풀하게 */
#authCard { position: relative; overflow: hidden; }
#authCard::before {
  content: ""; display: block; height: 8px; margin: -24px -24px 22px;
  background: linear-gradient(90deg, #10b981, #14b8a6, #3b82f6, #8b5cf6);
}
#sec-account .card-title { font-size: 23px; }
#sec-account .muted { font-size: 15px; }
#sec-account .subtab { font-size: 15px; padding: 11px 24px; }
#sec-account .subtab.active {
  background: linear-gradient(135deg, #10b981, #0d9488);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 14px rgba(16,185,129,.35);
}
#sec-account .tip-box { border-radius: 14px; }
#sec-account .tip-box strong { font-size: 15px; }
#sec-account .tip-box p { font-size: 14.5px; }

/* ===== 전체 글자 크기/굵기 확대 ===== */
.nav-item { font-size: 17px; font-weight: 600; }
.nav-label { font-size: 13px; }
.topbar h2 { font-size: 22px; font-weight: 800; }
.card-title { font-size: 20px; font-weight: 800; }
.btn { font-size: 16px; }
.area-card h3 { font-size: 17px; font-weight: 700; }
.area-card p { font-size: 14.5px; }
.kpi span { font-size: 14px; }
.kpi strong { font-size: 30px; }
.hero h1 { font-size: 36px; }
.hero p { font-size: 16px; }
.msg { font-size: 15px; }
.faq-q { font-size: 16px; }
.faq-a { font-size: 15px; }
.quiz-q { font-size: 18px; }
.quiz-opt { font-size: 16px; }
.grade-table { font-size: 15px; }
.job-card h4, .int-card h4, .track-card h4, .cert-year h4 { font-size: 16px; font-weight: 700; }
.pf-title { font-size: 15.5px; }
.tl-date { font-size: 15px; }
.notice-list li { font-size: 16px; }
.guide-list li { font-size: 16px; }
.legal p { font-size: 15px; }
#sec-account .card-title { font-size: 24px; }
.auth-form input { font-size: 18px; }
.rep-big strong { font-size: 36px; }
.comment-box { font-size: 15px; }

/* ===== 등급제 세그먼트 컨트롤 (9등급제 / 5등급제) ===== */
.seg-row { display: flex; gap: 8px; margin: 16px 0 4px; flex-wrap: wrap; }
.seg-btn {
  padding: 12px 22px; font-size: 16px; font-weight: 700;
  border: 2px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 12px; cursor: pointer; transition: all .15s;
}
.seg-btn:hover { border-color: var(--accent); color: var(--text); }
.seg-btn.active {
  background: linear-gradient(135deg, #10b981, #0d9488); color: #fff;
  border-color: transparent; box-shadow: 0 4px 14px rgba(16,185,129,.35);
}
/* 2028 미발표 대학 대기 목록 */
.pending-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; padding: 0; }
.pending-list li {
  background: var(--card); border: 1px dashed var(--border); border-radius: 12px;
  padding: 12px 16px; font-size: 15px;
}

/* ===== 대학·학과 찾기 ===== */
.uf-search {
  width: 100%; padding: 15px 18px; font-size: 17px;
  border: 2px solid var(--border); border-radius: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.uf-search:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(16,185,129,.16);
}
.uf-search::placeholder { color: #94a3b8; }
.uf-count { font-size: 15px; font-weight: 700; color: var(--accent-dark); margin: 6px 0 0; }
.uf-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.uf-item { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card); }
.uf-head {
  width: 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px 10px 16px; font-size: 16px; font-weight: 700; color: var(--text);
}
.uf-toggle {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: none; border: none; cursor: pointer; text-align: left;
  font-size: 16px; font-weight: 700; color: var(--text); padding: 4px 0;
}
.uf-head:hover { background: var(--bg); }
.uf-toggle:hover .pf-title { color: var(--accent-dark); }
.uf-head .pf-title { font-size: 17px; }
.uf-home {
  flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--accent-dark);
  background: #ecfdf5; border: 1px solid var(--accent); border-radius: 999px;
  padding: 7px 14px; text-decoration: none; white-space: nowrap;
}
.uf-home:hover { background: var(--accent); color: #fff; }
.uf-arrow { margin-left: auto; color: var(--accent-dark); font-weight: 800; font-size: 18px; }
.uf-depts { padding: 4px 16px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.uf-dept {
  font-size: 15px; font-weight: 600; background: var(--bg);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px;
}
.uf-dept.uf-hit { background: #ecfdf5; border-color: var(--accent); color: var(--accent-dark); }
a.uf-dept { text-decoration: none; color: inherit; cursor: pointer; }
a.uf-dept:hover { border-color: var(--accent); color: var(--accent-dark); background: #ecfdf5; }

/* ===== 내신 등급 시뮬레이터 ===== */
.gsim-hero {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 60%, #f5f3ff 100%);
  border: 1px solid #d1fae5; border-radius: 24px;
  padding: 44px 40px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.gsim-hero-main { flex: 1; }
.gsim-badge {
  display: inline-block; font-size: 14px; font-weight: 800;
  background: #fff; color: var(--accent-dark);
  border: 2px solid var(--accent); padding: 7px 16px; border-radius: 999px;
  margin-bottom: 14px;
}
.gsim-hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 12px; }
.gsim-hero p { font-size: 17px; color: var(--muted); margin-bottom: 22px; }
.gsim-goal-card {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 26px 34px; text-align: center; min-width: 210px; flex-shrink: 0;
}
.gsim-goal-card p { font-size: 16px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.gsim-goal-card strong { font-size: 36px; font-weight: 800; color: var(--accent-dark); }

.gsim-caption { font-size: 14px; font-weight: 700; color: var(--accent-dark); margin-bottom: 6px; }
.gsim-summary { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.gsim-sum-card {
  background: #f8fafc; border: 2px solid var(--border); border-radius: 18px;
  padding: 20px; text-align: center;
}
.gsim-sum-card span { display: block; font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.gsim-sum-card strong { display: block; font-size: 32px; font-weight: 800; }
.gsim-sum-card small { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.gsim-sum-total {
  background: linear-gradient(135deg, #2563eb, #3b82f6); border-color: transparent; color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.gsim-sum-total span, .gsim-sum-total small { color: #dbeafe; }

.gsim-term {
  border: 2px solid var(--border); border-radius: 18px; padding: 20px 22px; margin-bottom: 14px;
  background: #fff;
}
.gsim-term.skipped { opacity: 0.75; background: #f8fafc; }
.gsim-term-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.gsim-term-head h4 { font-size: 19px; font-weight: 800; }
.gsim-chip {
  font-size: 13px; font-weight: 800; background: var(--accent-soft); color: var(--accent-dark);
  padding: 5px 14px; border-radius: 999px;
}
.gsim-term-status { font-size: 14px; color: var(--muted); font-weight: 600; }
.gsim-term-head .btn { margin-left: auto; }
.gsim-term-body { }
.gsim-mode-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.gsim-subj-row { display: flex; gap: 8px; margin-bottom: 8px; }
.gsim-subj-row .gsim-subj-name { flex: 1; font-size: 16px; padding: 12px 14px; }
.gsim-subj-row .gsim-subj-grade { width: 150px; font-size: 16px; padding: 12px 14px; font-weight: 700; }
.gsim-subj-del {
  width: 48px; flex-shrink: 0; border: 1px solid var(--border); background: #fff;
  border-radius: 12px; font-size: 18px; color: #94a3b8; cursor: pointer;
}
.gsim-subj-del:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.gsim-add-subj {
  width: 100%; border: 2px dashed var(--border); background: #fff; border-radius: 12px;
  padding: 13px; font-size: 16px; font-weight: 700; color: var(--muted); cursor: pointer; font-family: inherit;
}
.gsim-add-subj:hover { border-color: var(--accent); color: var(--accent-dark); background: #f0fdf4; }
.gsim-avg-wrap input { width: 100%; font-size: 17px; padding: 14px 16px; font-weight: 700; }

.gsim-goal-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.gsim-spin { display: flex; align-items: stretch; }
.gsim-spin button {
  width: 52px; font-size: 24px; font-weight: 800; border: 2px solid var(--border);
  background: #fff; cursor: pointer; color: var(--accent-dark);
}
.gsim-spin button:first-child { border-radius: 14px 0 0 14px; border-right: none; }
.gsim-spin button:last-child { border-radius: 0 14px 14px 0; border-left: none; }
.gsim-spin button:hover { background: #f0fdf4; }
.gsim-spin input {
  width: 110px; text-align: center; font-size: 22px; font-weight: 800;
  border: 2px solid var(--border); border-left: none; border-right: none; border-radius: 0;
}
.gsim-goal-result { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 18px 20px; font-size: 16px; }
.gsim-goal-result strong { color: var(--accent-dark); }

.gsim-major-input { width: 100%; font-size: 17px; padding: 15px 18px; margin-bottom: 12px; }
.gsim-major-result { display: flex; flex-direction: column; gap: 10px; }
.gsim-major-item { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; }
.gsim-major-item strong { font-size: 16px; }
.gsim-rec-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gsim-rec-chip {
  font-size: 15px; font-weight: 700; background: #ecfdf5; color: var(--accent-dark);
  border: 1px solid #a7f3d0; padding: 8px 16px; border-radius: 999px;
}

.gsim-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gsim-line-card {
  border: 2px solid var(--border); border-radius: 18px; padding: 22px; background: #fff;
}
.gsim-line-card h4 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.gsim-line-goal { border-color: var(--accent); background: #f0fdf4; }
.gsim-line-big { font-size: 40px; font-weight: 800; color: var(--accent-dark); }
.gsim-line-univs { font-size: 15px; margin-top: 8px; }
.gsim-line-univs strong { display: block; margin-bottom: 4px; }

.gsim-privacy { background: linear-gradient(135deg, #f0fdf4, #eff6ff); border: 1px solid #bbf7d0; }
.gsim-privacy p { font-size: 16px; margin-bottom: 14px; }

@media (max-width: 960px) {
  .gsim-hero { flex-direction: column; align-items: stretch; padding: 32px 26px; }
  .gsim-hero h1 { font-size: 30px; }
  .gsim-summary { grid-template-columns: 1fr 1fr; }
  .gsim-lines { grid-template-columns: 1fr; }
  .gsim-term-head .btn { margin-left: 0; }
}
