/* ============================================================
   KOCEA 최초경력신고 개선 프로토타입 — 공통 디자인 시스템
   현행 homenet.kocea.or.kr 비주얼 재현 (네이비 헤더·블루 버튼·틸 액센트)
   외부 폰트/CDN 없음. 시스템 한글 고딕 사용.
   ============================================================ */

:root {
  --navy:      #1b2a5e;   /* 헤더 딥 네이비 */
  --navy-2:    #22346e;
  --navy-dark: #14204a;   /* 간편인증 바 */
  --blue:      #1a62d4;   /* 주요 액션 버튼 */
  --blue-dark: #1550b8;
  --blue-soft: #e8f0fc;
  --teal:      #17b3a3;   /* 체크·토글·확인 액센트 */
  --teal-soft: #e5f7f4;
  --amber:     #f0a020;
  --amber-soft:#fdf3e0;
  --red:       #d64545;
  --ink:       #1f2937;   /* 본문 텍스트 */
  --muted:     #6b7280;   /* 보조 텍스트 */
  --faint:     #9aa3b2;
  --line:      #e5e7eb;   /* 구분선/보더 */
  --line-2:    #d5dae2;
  --bg:        #f4f6fa;   /* 페이지 배경 */
  --card:      #ffffff;
  --shadow:    0 1px 3px rgba(20,32,74,.06), 0 6px 20px rgba(20,32,74,.06);
  --radius:    10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo",
               "Noto Sans KR", -apple-system, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--ink); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- 레이아웃 ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-body { flex: 1 0 auto; padding: 36px 0 64px; }

/* ---------- 헤더 ---------- */
.site-header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(20,32,74,.18);
}
.site-header .wrap {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand .logo-mark {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand .logo-mark svg { display: block; }
.brand .brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.brand .brand-sub {
  font-size: 14px; font-weight: 600; opacity: .82;
  padding-left: 11px; margin-left: 3px;
  border-left: 1px solid rgba(255,255,255,.28);
}

.header-right { display: flex; align-items: center; gap: 16px; font-size: 13.5px; }
.header-right .user-name { font-weight: 700; }
.session {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.12);
  padding: 5px 10px; border-radius: 20px; font-size: 12.5px;
}
.session .clock { opacity: .85; }
.session .time { font-variant-numeric: tabular-nums; font-weight: 700; }
.session .extend {
  background: var(--blue); color: #fff; border: 0;
  padding: 3px 9px; border-radius: 12px; font-size: 11.5px; font-weight: 700;
}
.session .extend:hover { background: var(--blue-dark); }
.header-nav { display: flex; align-items: center; gap: 14px; }
.header-nav a { color: rgba(255,255,255,.9); font-weight: 600; }
.header-nav a:hover { color: #fff; }
.header-nav .sep { opacity: .35; }

/* ---------- 페이지 타이틀 ---------- */
.page-title { text-align: center; margin-bottom: 8px; }
.page-title h1 { font-size: 30px; letter-spacing: -.5px; }
.page-title .lead { color: var(--muted); font-size: 15.5px; margin-top: 10px; }

/* ---------- 랜딩: 경로 선택 4박스 ---------- */
.path-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 40px;
}
.path-card {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 22px 24px;
  box-shadow: var(--shadow); color: var(--ink);
  display: flex; flex-direction: column; min-height: 240px;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.path-card:hover {
  text-decoration: none; transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 10px 28px rgba(26,98,212,.16);
}
.path-card .p-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--blue-soft); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.path-card .p-title {
  font-size: 24px; font-weight: 800; letter-spacing: 6px;
  color: var(--navy); margin-bottom: 12px;
}
.path-card .p-desc { color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1; }
.path-card .p-go {
  margin-top: 18px; color: var(--blue); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.path-card:hover .p-go { gap: 10px; }
.path-card .p-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--teal); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
}
.path-card.is-stub { pointer-events: none; cursor: default; }   /* 재가입·정정(경정): 클릭·호버 무반응 (미구현 경로) */
.path-card.is-stub .p-icon { background: #eef1f6; color: var(--faint); }
.path-card.is-stub .p-title { color: #64708a; }
.path-card.is-stub .p-go { color: var(--faint); }

/* ---------- 스텝 바 (신규 위저드) ---------- */
.stepbar-wrap { background: #fff; border-bottom: 1px solid var(--line); }
.stepbar {
  display: grid; grid-template-columns: repeat(6, 1fr);
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
}
.step {
  position: relative; background: none; border: 0;
  padding: 16px 6px 14px; text-align: center;
  color: var(--faint); cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color .12s ease, border-color .12s ease;
}
.step:hover { color: var(--muted); }
.step .s-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #eef1f6; color: var(--faint);
  font-weight: 800; font-size: 14px; margin-bottom: 8px;
  transition: all .12s ease;
}
.step .s-label { display: block; font-size: 13px; font-weight: 600; }
.step.is-active { color: var(--navy); border-bottom-color: var(--blue); }
.step.is-active .s-num { background: var(--blue); color: #fff; }
.step.is-done { color: var(--teal); }
.step.is-done .s-num { background: var(--teal); color: #fff; }

/* ---------- 진행 도구줄 (진행률·자동저장·개선점 토글) ---------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 22px 0 20px; flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.progress {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--muted);
}
.progress .bar {
  width: 180px; height: 7px; border-radius: 4px; background: #e7eaf0; overflow: hidden;
}
.progress .bar > i { display: block; height: 100%; background: var(--blue); border-radius: 4px; transition: width .3s ease; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
}
.badge.saved { background: var(--teal-soft); color: #0e8577; }
.badge.info  { background: var(--blue-soft); color: var(--blue-dark); }

/* 개선점 보기 토글 */
.improve-toggle { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); user-select: none; }
.switch { position: relative; width: 42px; height: 23px; flex: 0 0 42px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track {
  position: absolute; inset: 0; background: #cfd5df; border-radius: 20px; transition: background .16s ease;
}
.switch .track::before {
  content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px;
  background: #fff; border-radius: 50%; transition: transform .16s ease; box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.switch input:checked + .track { background: var(--amber); }
.switch input:checked + .track::before { transform: translateX(19px); }
.improve-toggle.on { color: var(--ink); font-weight: 700; }

/* ---------- 스텝 패널 ---------- */
.step-panel { display: none; }
.step-panel.is-active { display: block; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-head { margin-bottom: 20px; }
.step-head h2 { font-size: 23px; letter-spacing: -.3px; }
.step-head .sub { color: var(--muted); margin-top: 8px; font-size: 14.5px; }

/* ---------- 카드 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; margin-bottom: 18px;
}
.card > .card-title {
  font-size: 16px; font-weight: 800; color: var(--navy);
  padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--navy);
  display: flex; align-items: center; gap: 8px;
}
.card > .card-title .hint { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.section-line { display: flex; align-items: center; gap: 10px; margin: 8px 0 16px; }
.section-line h3 { font-size: 15px; }
.section-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- 폼 필드 ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.field > label .req { color: var(--red); margin-left: 3px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 20px; }
.input, .select {
  width: 100%; height: 44px; padding: 0 13px;
  border: 1px solid var(--line-2); border-radius: 8px; background: #fff;
  font-size: 14.5px; color: var(--ink);
}
.input:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,98,212,.12); }
.input[readonly], .input.locked { background: #f6f8fb; color: var(--muted); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.field .help { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 8px;
  font-size: 15px; font-weight: 700; background: #fff; color: var(--ink);
  transition: background .12s ease, box-shadow .12s ease, transform .04s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { background: #f3f5f9; }
.btn-grey { background: #67707f; color: #fff; }
.btn-grey:hover { background: #565e6b; }
.btn-lg { height: 54px; font-size: 16px; padding: 0 28px; }
.btn-block { width: 100%; }

/* 인증 버튼 (스텝1) */
.auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; border-radius: 8px; font-size: 16px; font-weight: 700; width: 100%; border: 0;
}
.auth-cert { background: var(--blue); color: #fff; }
.auth-cert:hover { background: var(--blue-dark); }
.auth-simple { background: var(--navy-dark); color: #fff; }
.auth-simple:hover { background: #0e1838; }
.auth-simple .ids { display: inline-flex; gap: 5px; margin-left: 4px; }
.auth-simple .ids i {
  width: 22px; height: 22px; border-radius: 50%; font-style: normal;
  font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- 하단 네비 ---------- */
.step-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
}
.step-nav .spacer { flex: 1; }
.step-nav .btn + .btn { margin-left: 10px; }

/* ---------- 개선점 말풍선 (토글 시 노출) ---------- */
.improve {
  display: none;
  margin: 14px 0 4px;
  border: 1px solid #f0d9a8; background: var(--amber-soft);
  border-radius: 10px; padding: 14px 16px 14px 46px; position: relative;
  font-size: 13.5px; line-height: 1.6;
}
.improve::before {
  content: "💡"; position: absolute; left: 15px; top: 12px; font-size: 17px;
}
.improve .t { font-weight: 800; color: #9a6a08; margin-bottom: 4px; display: block; }
.improve .cmp { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin-top: 6px; }
.improve .cmp .k { font-weight: 700; color: var(--muted); white-space: nowrap; }
.improve .cmp .as-is { color: #a15b5b; }
.improve .cmp .to-be { color: #0e8577; font-weight: 700; }
body.show-improve .improve { display: block; animation: fade .2s ease; }

/* 개선 인라인 하이라이트 (토글 시 강조) */
.imp-mark { border-radius: 4px; transition: background .16s ease, box-shadow .16s ease; }
body.show-improve .imp-mark { background: var(--amber-soft); box-shadow: 0 0 0 2px #f0d9a8; }

/* ---------- 화면별 개선 가능 과제 목록 (개선점 보기 토글 시 노출) ---------- */
.task-map {
  display: none;
  margin: 12px 0 4px;
  border: 1px dashed #cdb87e; background: #fffdf7;
  border-radius: 10px; padding: 14px 16px 14px 44px; position: relative;
  font-size: 13px; line-height: 1.6;
}
.task-map::before { content: "📋"; position: absolute; left: 14px; top: 12px; font-size: 16px; }
body.show-improve .task-map { display: block; animation: fade .2s ease; }
.task-map .tm-title { font-weight: 800; color: #9a6a08; margin-bottom: 3px; }
.task-map .tm-note { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.task-map .tm-grp { font-weight: 700; color: var(--navy); font-size: 12px; margin: 11px 0 4px; }
.task-map .tm-grp:first-of-type { margin-top: 2px; }
.task-map .tm-group { margin-top: 13px; }
.task-map .tm-group:first-of-type { margin-top: 4px; }
.task-map ul.tm-list { display: flex; flex-direction: column; gap: 5px; }
.task-map .tm-list li { display: flex; align-items: baseline; gap: 9px; }
.task-map .tm-list li .no {
  flex: 0 0 auto; min-width: 30px; font-weight: 800; color: var(--navy);
  font-variant-numeric: tabular-nums; text-align: right;
}
.task-map .tm-list li .nm { color: var(--ink); }
.task-map .tm-list li .tag { font-size: 11px; font-weight: 700; white-space: nowrap; margin-left: 2px; }
.task-map .tm-list li .tag.rf { color: #0e8577; }   /* 반영됨 */
.task-map .tm-list li .tag.pt { color: #9a6a08; }   /* 부분 */
.task-map .tm-list li .tag.fin { color: var(--faint); } /* 완료 */
.task-map .tm-list li .tag.imp { color: var(--blue); } /* 개선 가능(미반영) */
.task-map .tm-done { color: #0e8577; font-weight: 700; margin-top: 2px; }

/* ---------- 상태/결과 박스 ---------- */
.status {
  display: flex; align-items: flex-start; gap: 13px;
  border-radius: 10px; padding: 16px 18px; margin-bottom: 16px;
}
.status .ic { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 800; margin-top: 1px; }
.status .body { font-size: 14px; }
.status .body b { font-size: 15px; }
.status.ok { background: var(--teal-soft); border: 1px solid #b6e6df; }
.status.ok .ic { background: var(--teal); }
.status.warn { background: var(--amber-soft); border: 1px solid #f0d9a8; }
.status.warn .ic { background: var(--amber); }
.status.info { background: var(--blue-soft); border: 1px solid #c4dbf7; }
.status.info .ic { background: var(--blue); }

/* 체크리스트 (통합 항목 등) */
.checklist li {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px dashed var(--line); font-size: 14px;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li .ck {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.checklist li .was { margin-left: auto; font-size: 12px; color: var(--faint); text-decoration: line-through; }

/* 요약 (검토 스텝) */
.summary-grid { display: grid; grid-template-columns: 160px 1fr; gap: 12px 18px; font-size: 14px; }
.summary-grid dt { color: var(--muted); font-weight: 700; }
.summary-grid dd { margin: 0; color: var(--ink); }

/* 데이터 표 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { background: #f6f8fb; color: var(--muted); font-weight: 700; }
.tbl .empty { text-align: center; color: var(--faint); padding: 26px; }
.tbl td.muted { color: var(--faint); }
.tbl th .allchk, .tbl td .rowchk { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
/* 넓은 표 가로 스크롤 (근무처·기술경력) */
.tbl-scroll { overflow-x: auto; border-radius: 8px; }
.tbl-scroll .tbl { min-width: 720px; }
.tbl-scroll .tbl.tbl-wide { min-width: 960px; }
.tbl-scroll .tbl th, .tbl-scroll .tbl td { white-space: nowrap; }
.tbl-scroll .tbl td.wrap { white-space: normal; min-width: 240px; }

/* 상태 색 (승인/진행 상태) */
.st-proc { color: var(--amber); font-weight: 700; }
.st-ok   { color: var(--teal);  font-weight: 700; }
.st-none { color: var(--faint); }

/* 연계 자료 배지 (스크랩/자료연계 read-only 표시) */
.linked-tag { display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; color:#0e8577; background:var(--teal-soft); padding:3px 9px; border-radius:20px; }
.linked-tag svg { width:12px; height:12px; }

/* 기본정보: 사진 + 인적사항 2단 레이아웃 */
.basic-layout { display: flex; gap: 26px; align-items: flex-start; }
.basic-layout .fields { flex: 1; min-width: 0; }
.photo-field { flex: 0 0 auto; }
.photo-field > label { display:block; font-size:13.5px; font-weight:700; margin-bottom:7px; }
.photo-field > label .req { color: var(--red); margin-left:3px; }
.photo-box { border: 1px dashed var(--line-2); border-radius: 8px; padding: 12px; text-align:center; width: 168px; }
.photo-frame { width: 132px; height: 168px; margin: 0 auto 10px; border-radius: 4px; overflow: hidden; background: linear-gradient(180deg,#eef2f8,#d9e2ef); display:flex; align-items:flex-end; justify-content:center; }
.photo-box .btn { height: 34px; padding: 0 12px; font-size: 12.5px; }
.readonly-note { font-size:12.5px; color:var(--muted); margin-top:6px; }

/* 검토·제출 (붙임5 스타일 섹션) */
.review-sec { margin-bottom: 24px; }
.review-title { font-size: 15.5px; font-weight: 800; color: var(--ink); padding-bottom: 8px; margin-bottom: 12px; border-bottom: 2px solid #2c3440; display:flex; align-items:center; gap:8px; }
.review-title .help-btn { font-size: 11.5px; font-weight:700; color:#9a6a08; background:var(--amber-soft); border:1px solid #f0d9a8; border-radius:5px; padding:2px 8px; }

/* 비활성 버튼 */
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

@media (max-width: 640px){
  .basic-layout { flex-direction: column; }
  .photo-box { width: 100%; max-width: 220px; }
}

/* ---------- 변경(업데이트) 항목 체크 그리드 ---------- */
.change-grid { width: 100%; border-collapse: collapse; background: #fff; }
.change-grid th, .change-grid td { border: 1px solid var(--line-2); padding: 15px 18px; text-align: left; vertical-align: middle; }
.change-grid th.cat { background: #eef2f8; font-weight: 800; color: var(--navy); width: 190px; }
.change-grid td.cat-chk { background: #eef2f8; width: 190px; }
.change-grid td.blank { background: #fafbfd; }
.opt { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; user-select: none; font-weight: 600; }
.opt input[type=checkbox] { width: 19px; height: 19px; accent-color: var(--blue); cursor: pointer; flex: 0 0 19px; }
.opt:hover { color: var(--blue); }

/* ---------- 모달(팝업) ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(20,32,74,.5); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-overlay.is-open { display: flex; animation: fade .16s ease; }
.modal { background: #fff; border-radius: 12px; max-width: 470px; width: 100%; box-shadow: 0 22px 55px rgba(0,0,0,.32); overflow: hidden; }
.modal-head { display: flex; align-items: center; gap: 11px; padding: 18px 22px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 16px; }
.modal-head .warn-ic { width: 27px; height: 27px; border-radius: 50%; background: var(--amber); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 27px; }
.modal-body { padding: 20px 22px; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.modal-body .hl { background: var(--amber-soft); border: 1px solid #f0d9a8; border-radius: 8px; padding: 13px 15px; margin-top: 12px; color: #8a5a00; }
.modal-body .hl b { color: #7a4e00; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 15px 22px; border-top: 1px solid var(--line); background: #fafbfd; }

/* 변경 페이지 안내 */
.change-legend { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.6; }
.change-legend b { color: var(--ink); }

/* 근무이력 신고 버튼 (붙임1) */
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-sky { background: #2b9fe6; color: #fff; }
.btn-sky:hover { background: #1f8ed0; }
.wp-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.tbl td .badge-work { color: var(--teal); font-weight: 700; }
/* 기술경력 세부 옵션 (추가/마감/연장/누락) */
.change-grid td .tech-opts { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.opt .opt-sub { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- 새로운 근무처 신고 폼 ---------- */
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 8px; padding: 13px 16px; cursor: pointer; font-weight: 600; font-size: 14.5px; }
.radio-card input[type=radio] { accent-color: var(--blue); width: 18px; height: 18px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }

.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.data-btn { border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 16px; font-weight: 600; color: var(--ink); cursor: pointer; font-size: 14px; text-align: center; transition: all .12s ease; }
.data-btn:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.data-btn.picked { border-color: var(--blue); background: var(--blue); color: #fff; }

.date-input { display: flex; align-items: stretch; gap: 6px; }
.date-input .input { flex: 1; }
.date-ic { width: 44px; flex: 0 0 44px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); }
.date-ic:hover { border-color: var(--blue); color: var(--blue); }
.info-i { display: inline-flex; width: 16px; height: 16px; border-radius: 50%; background: var(--faint); color: #fff; font-size: 11px; align-items: center; justify-content: center; font-weight: 700; margin-left: 5px; font-style: normal; }

.upload-box { border: 1px dashed var(--line-2); border-radius: 8px; padding: 30px; text-align: center; color: var(--muted); font-size: 14px; }
.upload-box svg { display: block; margin: 0 auto 10px; color: var(--faint); }

.accordion { border: 1px solid var(--line-2); border-radius: 8px; margin-top: 6px; overflow: hidden; }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #f6f8fb; border: 0; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); }
.acc-head .chev { transition: transform .15s ease; color: var(--muted); }
.acc-head.open .chev { transform: rotate(180deg); }
.acc-body { padding: 14px 16px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); line-height: 1.65; }
.btn-xs { height: 30px; padding: 0 12px; font-size: 12.5px; }

@media (max-width: 640px) {
  .radio-cards, .data-grid { grid-template-columns: 1fr; }
}

/* ---------- 임시저장 ---------- */
.btn-save { border: 1px solid var(--line-2); background: #fff; color: var(--navy); font-weight: 700; font-size: 12.5px; height: 28px; padding: 0 13px; border-radius: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.btn-save:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
.btn-save:active { transform: translateY(1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.badge.saved.flash { background: var(--blue-soft); color: var(--blue-dark); transition: background .2s; }

/* ---------- 마이페이지 신고현황 (#2 검토결과 요약·필터 / #3 보완 히스토리) ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb b { color: var(--ink); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: 10px; padding: 16px 18px; cursor: pointer; box-shadow: var(--shadow); text-align: left; transition: box-shadow .12s, border-color .12s, transform .05s; }
.stat-tile:hover { transform: translateY(-2px); }
.stat-tile .st-num { font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-tile .st-label { font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.stat-tile.all { border-top-color: var(--navy); } .stat-tile.all .st-num { color: var(--navy); }
.stat-tile.ok  { border-top-color: var(--teal); } .stat-tile.ok .st-num  { color: var(--teal); }
.stat-tile.no  { border-top-color: var(--red); }  .stat-tile.no .st-num  { color: var(--red); }
.stat-tile.rev { border-top-color: var(--amber); } .stat-tile.rev .st-num { color: var(--amber); }
.stat-tile.is-active { border-color: var(--blue); box-shadow: 0 8px 20px rgba(26,98,212,.16); }

/* 검토결과 배지 */
.rb { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 20px; }
.rb.ok  { background: var(--teal-soft); color: #0e8577; }
.rb.no  { background: #fdecec; color: var(--red); }
.rb.rev { background: var(--amber-soft); color: #9a6a08; }
.link-more { font-size: 12.5px; font-weight: 700; color: var(--blue); background: none; border: 0; cursor: pointer; padding: 0; }
.link-more:hover { text-decoration: underline; }

/* 보완 히스토리 타임라인 */
.timeline { position: relative; padding-left: 26px; margin-top: 8px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 5px; bottom: 10px; width: 2px; background: var(--line-2); }
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -22px; top: 2px; width: 13px; height: 13px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-2); }
.tl-item.req::before { background: var(--red); }
.tl-item.fix::before { background: var(--teal); }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-who { font-weight: 800; font-size: 13.5px; }
.tl-who.req { color: var(--red); }
.tl-who.fix { color: var(--teal); }
.tl-date { font-size: 12px; color: var(--muted); }
.tl-body { font-size: 14px; margin-top: 4px; color: var(--ink); line-height: 1.55; }
.tl-now { display: inline-block; font-size: 12.5px; color: #9a6a08; background: var(--amber-soft); border: 1px solid #f0d9a8; border-radius: 6px; padding: 3px 10px; font-weight: 700; margin-top: 6px; }
@media (max-width: 640px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* 이어서 작성 배너 */
.resume-banner { display: flex; align-items: center; gap: 12px; background: var(--blue-soft); border: 1px solid #c4dbf7; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.resume-banner .rb-ic { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 26px; }
.resume-banner .rb-text { flex: 1; }
.resume-banner .rb-actions { display: flex; gap: 8px; }
@media (max-width: 640px) {
  .resume-banner { flex-wrap: wrap; }
  .resume-banner .rb-actions { width: 100%; }
  .resume-banner .rb-actions .btn { flex: 1; }
}

/* 조건부 탭 (스텝4) */
.subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.subtab {
  border: 1px solid var(--line-2); background: #fff; color: var(--muted);
  padding: 9px 16px; border-radius: 22px; font-size: 13.5px; font-weight: 700;
}
.subtab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.subpanel { display: none; }
.subpanel.is-active { display: block; }

/* 완료 화면 */
.done-hero { text-align: center; padding: 20px 0 8px; }
.done-hero .big-check {
  width: 82px; height: 82px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 42px;
  box-shadow: 0 8px 24px rgba(23,179,163,.35);
}
.done-hero h2 { font-size: 26px; }
.done-hero .receipt { display: inline-block; margin-top: 14px; background: #f6f8fb; border: 1px solid var(--line); border-radius: 8px; padding: 10px 18px; font-size: 15px; }
.done-hero .receipt b { color: var(--navy); font-variant-numeric: tabular-nums; }

/* stub 안내 */
.stub-wrap { max-width: 620px; margin: 60px auto; text-align: center; }
.stub-wrap .s-icon { width: 80px; height: 80px; border-radius: 20px; background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.stub-wrap h1 { font-size: 30px; letter-spacing: 6px; color: var(--navy); }
.stub-wrap .s-desc { color: var(--muted); font-size: 16px; margin: 16px 0 8px; line-height: 1.6; }
.stub-wrap .s-note { background: var(--amber-soft); border: 1px solid #f0d9a8; border-radius: 10px; padding: 14px 18px; font-size: 13.5px; color: #9a6a08; margin: 26px 0; display: inline-block; }
.stub-wrap .s-actions { margin-top: 10px; display: flex; gap: 12px; justify-content: center; }

/* ---------- 푸터 ---------- */
.site-footer { flex-shrink: 0; background: #eef1f6; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.site-footer .wrap { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .proto-tag { background: #dfe4ec; border-radius: 6px; padding: 4px 10px; font-weight: 700; color: #64708a; }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .path-grid { grid-template-columns: repeat(2, 1fr); }
  .stepbar { grid-template-columns: repeat(6, 1fr); }
  .step .s-label { font-size: 11px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 16px; }
  .path-grid { grid-template-columns: 1fr; }
  .brand .brand-sub { display: none; }
  .header-right { gap: 10px; }
  .header-nav { display: none; }
  .step .s-label { display: none; }
  .summary-grid { grid-template-columns: 1fr; gap: 2px 0; }
  .summary-grid dt { margin-top: 8px; }
}

/* ============================================================
   추가·변경(변경 배너 뒤) 신고 상세 — 신규 컴포넌트
   ============================================================ */

/* ---------- 진입: 배너 2개 ---------- */
.banner-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.banner-card { min-height: auto; padding: 30px 28px 26px; }
.banner-card .p-icon { width: 60px; height: 60px; border-radius: 16px; margin-bottom: 16px; }
.banner-card .p-title { font-size: 22px; font-weight: 800; letter-spacing: 0; color: var(--navy); margin-bottom: 4px; }
.banner-card .p-sub { display: inline-block; font-size: 12px; font-weight: 700; color: #0e8577; background: var(--teal-soft); padding: 2px 10px; border-radius: 20px; margin-bottom: 14px; }
.banner-card .p-desc { flex: none; margin-bottom: 14px; }
.banner-card .feat { display: flex; flex-direction: column; gap: 8px; margin: 4px 0; }
.banner-card .feat li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--ink); }
.banner-card .feat li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }
.banner-card .p-go { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .banner-2 { grid-template-columns: 1fr; } }

/* ---------- 뷰 라우터 (단일 페이지 화면 전환) ---------- */
.view { display: none; }
.view.is-active { display: block; animation: fade .22s ease; }
.link-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0; margin-bottom: 16px; }
.link-back:hover { color: var(--blue); }

/* ---------- 신고유형 선택 카드 (3택) ---------- */
.type-cards { display: flex; flex-direction: column; gap: 14px; }
.type-card { display: flex; align-items: flex-start; gap: 16px; text-align: left; width: 100%; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 20px 22px; cursor: pointer; transition: border-color .13s, box-shadow .13s, transform .05s; }
.type-card:hover { border-color: var(--blue); box-shadow: 0 8px 22px rgba(26,98,212,.12); transform: translateY(-2px); }
.type-card:active { transform: translateY(0); }
.type-card .tc-ic { flex: 0 0 50px; width: 50px; height: 50px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.type-card .tc-body { flex: 1; min-width: 0; }
.type-card .tc-title { font-size: 17px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.type-card .tc-desc { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.55; }
.type-card .tc-arrow { flex: 0 0 auto; color: var(--faint); align-self: center; }
.type-card:hover .tc-arrow { color: var(--blue); }
.tc-tag { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; background: #eef2f8; color: #64708a; white-space: nowrap; }
.tc-tag.new { background: var(--blue-soft); color: var(--blue-dark); }

/* ---------- A/B 갈래 선택 (결과 중심) ---------- */
.ab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ab-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 22px; cursor: pointer; text-align: left; transition: border-color .13s, box-shadow .13s, transform .05s; }
.ab-card:hover { border-color: var(--blue); box-shadow: 0 8px 22px rgba(26,98,212,.12); transform: translateY(-2px); }
.ab-card .rec-badge { align-self: flex-start; font-size: 11px; font-weight: 800; color: #0e8577; background: var(--teal-soft); padding: 3px 10px; border-radius: 20px; margin-bottom: 12px; }
.ab-card .ab-ic { width: 50px; height: 50px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.ab-card.alt .ab-ic { background: var(--teal-soft); color: #0e8577; }
.ab-card .ab-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.ab-card .ab-when { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.55; flex: 1; }
.ab-card .ab-res { margin-top: 14px; font-size: 12.5px; border-radius: 8px; padding: 10px 12px; line-height: 1.5; }
.ab-card .ab-res.ok { background: var(--teal-soft); color: #0e8577; }
.ab-card .ab-res.warn { background: var(--amber-soft); color: #9a6a08; }
.ab-card .ab-res b { font-weight: 800; }
.ab-card .ab-go { margin-top: 16px; }
@media (max-width: 700px) { .ab-grid { grid-template-columns: 1fr; } }

/* ---------- 선택한 유형 표시 바 (폼 상단 유지) ---------- */
.pick-bar { display: flex; align-items: center; gap: 12px; background: var(--blue-soft); border: 1px solid #c4dbf7; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; flex-wrap: wrap; }
.pick-bar .pk-ic { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.pick-bar .pk-txt { flex: 1; min-width: 160px; }
.pick-bar .pk-txt b { color: var(--navy); }
.pick-bar .pk-res { color: var(--muted); font-size: 12.5px; margin-top: 1px; }

/* ---------- 표 맥락 안내 한 줄 ---------- */
.table-hint { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted); background: #f6f8fb; border: 1px solid var(--line); border-radius: 8px; padding: 9px 13px; margin-bottom: 14px; line-height: 1.5; }
.table-hint::before { content: "ⓘ"; color: var(--blue); font-weight: 800; flex: 0 0 auto; }
.table-hint b { color: var(--ink); }

/* 행 액션 버튼 그룹 (마감/연장/보완) */
.row-acts { display: inline-flex; gap: 6px; white-space: nowrap; }

/* ---------- 배너② 5탭 + 협회 전송 ---------- */
.rtabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 22px; align-items: flex-end; }
.rtab { border: 1px solid var(--line-2); border-bottom: 0; background: #f6f8fb; color: var(--muted); padding: 11px 17px; border-radius: 8px 8px 0 0; font-size: 14px; font-weight: 700; cursor: pointer; margin-bottom: -2px; }
.rtab:hover { color: var(--ink); }
.rtab .cnt { font-weight: 700; color: var(--faint); margin-left: 3px; font-variant-numeric: tabular-nums; }
.rtab.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.rtab.is-active .cnt { color: #cfe0fb; }
.rtab.send { margin-left: auto; background: var(--red); color: #fff; border-color: var(--red); }
.rtab.send:hover { color: #fff; }
.rtab.send.is-active { background: #b93636; border-color: #b93636; }
.rpanel { display: none; }
.rpanel.is-active { display: block; animation: fade .2s ease; }
.cart-empty td { text-align: center; color: var(--faint); padding: 22px; }
.del-x { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 16px; line-height: 1; padding: 4px 6px; border-radius: 6px; }
.del-x:hover { color: var(--red); background: #fdecec; }

/* 저장(담기) 완료 토스트 */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 등급/선택형 버튼 그룹 (교육 등급, 졸업구분 등) */
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-btn { border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 8px; padding: 10px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .12s; }
.pick-btn:hover { border-color: var(--blue); color: var(--blue); }
.pick-btn.on { border-color: var(--blue); background: var(--blue); color: #fff; }
.pick-btn.teal.on { border-color: var(--teal); background: var(--teal); }

/* 검색 팝업형 인풋 (검색/초기화 버튼 세트) */
.search-set { display: flex; gap: 6px; align-items: stretch; }
.search-set .input { flex: 1; }
.search-set .btn { flex: 0 0 auto; }
