/* 법정의무교육 관리 — 웍스 add-on 디자인 기준 v2 + v3 추가분 */
:root {
  --primary: #0E6E6B; --primary-h: #0A4F4D; --primary-bg: #E6F2F1; --primary-line: #9CCBC8;
  --ink: #101828; --ink2: #344054; --ink3: #475467; --ink4: #667085; --ink5: #98A2B3;
  --line: #E4E7EC; --line2: #CFD6DD; --bg1: #F2F4F7; --bg: #F8FAFB; --bg2: #EEF2F6; --row-sel: #F2F8F8; --row-sub: #FAFBFC;
  --warn: #B54708; --warn-bg: #FFF3E4; --warn-line: #DC8A2E; --warn-on-dark: #FFD8A8;
  --danger: #B42318; --danger-bg: #FEE4E2; --danger-line: #D92D20;
  --info: #175CD3; --info-bg: #EAF2FB;
  --dark: #101828; --dark2: #1D2939;
  --scrim: rgba(16,24,40,.45);
  --r-card: 10px; --r-modal: 12px; --r-ctl: 6px;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; font-size: 13px; }
button, input, textarea, select { font-family: inherit; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-h); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink4); } .faint { color: var(--ink5); } .sub { color: var(--ink3); }
.warn-t { color: var(--warn); } .danger-t { color: var(--danger); } .ok-t { color: var(--primary-h); } .info-t { color: var(--info); }
.b { font-weight: 700; } .sb { font-weight: 600; }
.row { display: flex; align-items: center; gap: 8px; } .col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .gap2 { gap: 2px; } .gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap14 { gap: 14px; } .gap18 { gap: 18px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.between { justify-content: space-between; } .end { justify-content: flex-end; } .center { justify-content: center; } .aic { align-items: center; } .ais { align-items: flex-start; } .aib { align-items: baseline; }
.hidden { display: none !important; }
@keyframes popIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes panelSlide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes scanLine { 0% { top: 18%; } 50% { top: 80%; } 100% { top: 18%; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── GNB ── */
.gnb { height: 56px; background: var(--dark); display: flex; align-items: center; gap: 16px; padding: 0 24px; color: #fff; position: sticky; top: 0; z-index: 40; }
.gnb .brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.gnb .brand b { font-size: 14px; } .gnb .brand i { width: 1px; height: 16px; background: var(--ink2); }
.gnb .brand span { color: var(--line2); font-size: 13px; }
.gnb .tabs { display: flex; align-items: stretch; height: 56px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.gnb .tab { flex-shrink: 0; height: 56px; padding: 0 14px; border: none; background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink5); }
.gnb .tab.on { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
.gnb .tab.locked { color: var(--ink3); cursor: not-allowed; }
.gnb .me { display: flex; align-items: center; gap: 8px; color: var(--line2); font-size: 12.5px; flex-shrink: 0; }
.gnb .me b { color: #fff; font-weight: 500; }
.gnb .me button { height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--ink2); background: transparent; color: var(--line2); font-size: 12px; cursor: pointer; }
.gnb .bell { position: relative; }
.gnb .bell i { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--danger-line); color: #fff; font-size: 10px; font-style: normal; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ── 페이지 ── */
.page { max-width: 1200px; margin: 0 auto; padding: 24px 24px 120px; display: flex; flex-direction: column; gap: 16px; }
.page.narrow { max-width: 960px; } .page.slim { max-width: 760px; }
.ph h1 { margin: 0; font-size: 21px; font-weight: 700; }
.ph .desc { margin-top: 4px; font-size: 13px; color: var(--ink4); line-height: 1.55; }
.crumb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink5); }
.crumb button { padding: 0; border: none; background: none; color: var(--primary); cursor: pointer; font-size: 12.5px; }
.card { border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.card.pad { padding: 16px 18px; } .card.pad2 { padding: 20px 22px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-h .t { font-size: 14px; font-weight: 700; }
.sec-t { font-size: 12.5px; font-weight: 700; color: var(--ink3); }
.label { font-size: 13px; font-weight: 700; color: var(--ink2); }
.label .req { color: var(--danger); } .label .opt { font-weight: 400; color: var(--ink5); }
.hint { font-size: 12px; color: var(--ink5); line-height: 1.5; }
.err { font-size: 12.5px; color: var(--danger); font-weight: 600; }
.warnmsg { font-size: 12px; color: var(--warn); font-weight: 600; }
.split { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.split.s300 { grid-template-columns: 300px minmax(0, 1fr); }
.split.half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 959px) { .split, .split.s300, .split.half { grid-template-columns: minmax(0, 1fr); } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.kpi .k { font-size: 13px; color: var(--ink4); }
.kpi .v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── 버튼 ── */
.btn { height: 36px; padding: 0 14px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: #fff; color: var(--ink2); font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--bg); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(14,110,107,.15); }
.btn.pri { background: var(--primary); border-color: var(--primary); color: #fff; padding: 0 16px; }
.btn.pri:hover:not(:disabled) { background: var(--primary-h); }
.btn:disabled { cursor: not-allowed; color: var(--ink5); }
.btn.pri:disabled { background: var(--line); border-color: var(--line); color: var(--ink5); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { height: 44px; font-size: 14px; padding: 0 18px; }
.btn.xl { height: 48px; font-size: 14.5px; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--primary); }
.btn.ghost:hover:not(:disabled) { background: var(--row-sel); }
.btn.block { width: 100%; }
.link { padding: 0; border: none; background: none; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; }
.link.sm { font-size: 12px; }
.link.muted { color: var(--ink4); font-weight: 400; }
.x { width: 32px; height: 32px; border: none; background: transparent; color: var(--ink5); font-size: 20px; cursor: pointer; border-radius: 6px; }
.x:hover { background: var(--bg1); }

/* ── 배지 · 칩 ── */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.badge.cell { padding: 4px 10px; cursor: pointer; }
.badge.lg { padding: 5px 12px; font-size: 12.5px; }
.badge.agg { padding: 4px 10px; font-size: 12px; font-variant-numeric: tabular-nums; }
.st-done { background: var(--primary-bg); color: var(--primary-h); }
.st-inprogress, .st-pending, .st-info { background: var(--info-bg); color: var(--info); }
.st-ok, .st-neutral { background: var(--bg2); color: var(--ink2); }
.st-soon, .st-warning { background: var(--warn-bg); color: var(--warn); }
.st-over, .st-danger { background: var(--danger-bg); color: var(--danger); }
.st-cannot { background: var(--danger); color: #fff; }
.st-excluded { background: #fff; color: var(--ink4); border-color: var(--line2); }
.st-prep { background: var(--bg); color: var(--ink5); border: 1px dashed var(--line); }
.st-na { background: transparent; color: var(--line2); }
.st-success { background: var(--primary-bg); color: var(--primary-h); }
.st-closed { background: var(--bg2); color: var(--ink2); }
.tag-dash { display: inline-flex; padding: 1px 8px; border-radius: 999px; border: 1px dashed var(--line2); color: var(--ink5); font-size: 11.5px; }
.chip { height: 36px; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: #fff; color: var(--ink2); font-size: 13px; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--primary-bg); border-color: var(--primary); color: var(--primary-h); }
.chip.sm { height: 28px; padding: 0 8px; font-size: 12px; }
.chip:disabled { cursor: not-allowed; }
.pill { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink3); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.pill.on { background: var(--primary-bg); border-color: var(--primary); color: var(--primary-h); }
.opt-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; min-height: 56px; }
.opt-card .t { font-size: 13px; font-weight: 700; color: var(--ink2); }
.opt-card .d { font-size: 11.5px; color: var(--ink4); line-height: 1.4; }
.opt-card.on { background: var(--primary-bg); border: 1.5px solid var(--primary); }
.opt-card.on .t { color: var(--primary-h); }
.opt-card.locked { background: var(--bg); cursor: not-allowed; } .opt-card.locked .t { color: var(--ink5); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }

/* 세그먼트 · 토글 · 체크 */
.seg { display: inline-flex; gap: 4px; padding: 3px; background: var(--bg2); border-radius: 8px; flex-wrap: wrap; }
.seg button { height: 28px; padding: 0 10px; border: none; border-radius: 6px; background: transparent; color: var(--ink4); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.seg.full { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.seg.lg button { height: 30px; padding: 0 12px; }
.toggle { width: 38px; height: 22px; border-radius: 999px; background: var(--line2); position: relative; flex-shrink: 0; border: none; cursor: pointer; padding: 0; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.2); transition: left .12s; }
.toggle.on { background: var(--primary); } .toggle.on::after { left: 19px; }
.cbox { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line2); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; flex-shrink: 0; cursor: pointer; }
.cbox.lg { width: 18px; height: 18px; } .cbox.xl { width: 20px; height: 20px; font-size: 12px; }
.cbox.on { background: var(--primary); border-color: var(--primary); }
.cbox.off { background: var(--bg1); border-color: var(--line); cursor: not-allowed; }
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }

/* 입력 */
.in { height: 36px; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--line); font-size: 13px; outline: none; width: 100%; background: #fff; color: var(--ink); }
.in:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(14,110,107,.12); }
.in.warn { border-color: var(--warn-line); } .in.bad { border-color: var(--danger); }
.in.lg { height: 40px; }
textarea.in { height: auto; min-height: 72px; padding: 10px 12px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; }
.drop { min-height: 84px; border-radius: 10px; border: 1px dashed var(--line2); background: var(--bg); font-size: 13px; color: var(--ink4); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; }
.drop:hover { background: var(--bg1); }
.drop b { color: var(--primary); font-weight: 600; } .drop small { font-size: 12px; }
.drop.bad { border-color: var(--danger); }
.filerow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); }
.fileico { width: 32px; height: 32px; border-radius: 6px; background: var(--danger-bg); color: var(--danger); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* 드롭다운 */
.dd { position: relative; }
.dd-btn { height: 36px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.dd-btn.pill { height: 26px; padding: 0 8px; border-radius: 999px; background: var(--bg2); font-size: 11.5px; font-weight: 700; }
.dd-btn .caret { font-size: 9px; color: var(--ink5); }
.dd-menu { position: absolute; top: calc(100% + 4px); left: 0; min-width: 160px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.14); z-index: 30; padding: 4px; max-height: 320px; overflow-y: auto; }
.dd-menu div { padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--ink2); cursor: pointer; white-space: nowrap; }
.dd-menu div:hover, .dd-menu div.on { background: var(--bg); }
.dd-scrim { position: fixed; inset: 0; z-index: 25; }

/* 배너 */
.banner { border: 1px solid var(--line2); border-radius: 10px; background: var(--bg); overflow: hidden; }
.banner .bh { display: flex; align-items: center; gap: 12px; padding: 13px 18px; }
.banner .ico { width: 28px; height: 28px; border-radius: 999px; background: var(--info-bg); color: var(--info); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.banner.warn { border-color: var(--warn-line); background: var(--warn-bg); }
.banner.warn .ico { background: #fff; color: var(--warn); }
.banner.neutral .ico { background: var(--bg2); color: var(--ink3); }
.banner .bb { border-top: 1px solid var(--line); background: #fff; padding: 10px 18px 14px; }
.note { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg); font-size: 13px; color: var(--ink2); }
.note .i { width: 22px; height: 22px; border-radius: 999px; background: var(--info-bg); color: var(--info); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.box { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 10px 12px; font-size: 12.5px; color: var(--ink3); line-height: 1.6; }
.box.ok { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-h); }
.box.warn { background: var(--warn-bg); border-color: var(--warn-bg); color: var(--warn); }

/* 모달 · 패널 · 토스트 */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: var(--r-modal); padding: 24px; animation: popIn .14s ease-out; box-shadow: 0 12px 32px rgba(16,24,40,.2); display: flex; flex-direction: column; gap: 14px; }
.modal.w520 { width: min(520px, 100%); } .modal.w420 { width: min(420px, 100%); }
.modal .mt { font-size: 15px; font-weight: 700; }
.modal .mf { display: flex; justify-content: flex-end; gap: 8px; }
.modal .facts { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink2); }
.modal .facts > div { display: flex; gap: 8px; } .modal .facts > div::before { content: '·'; color: var(--ink5); }
.modal .grid2 { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.warn-ico { width: 32px; height: 32px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.panel-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 60; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: #fff; box-shadow: -8px 0 24px rgba(16,24,40,.12); z-index: 61; padding: 22px; overflow-y: auto; animation: panelSlide .16s ease-out; display: flex; flex-direction: column; gap: 16px; }
.panel.w460 { width: min(460px, 100vw); padding: 0; gap: 0; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--dark); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 13px; z-index: 90; animation: toastIn .18s ease-out; box-shadow: 0 8px 24px rgba(16,24,40,.25); max-width: calc(100vw - 32px); text-align: center; }
.toast.bad { background: var(--danger); }
.spin { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--primary); border-radius: 999px; animation: spin .8s linear infinite; }
.loading { padding: 60px; display: flex; justify-content: center; }
.empty { padding: 36px; text-align: center; font-size: 13px; color: var(--ink5); }

/* 표 (그리드 행) */
.tbl-h { display: grid; align-items: center; padding: 10px 18px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink3); gap: 10px; }
.tbl-r { display: grid; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--f2, #F2F4F7); font-size: 13px; gap: 10px; }
.tbl-r.sel { background: var(--row-sel); }
.more { width: 100%; height: 40px; border: none; background: #fff; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; }
.more:hover { background: var(--bg); }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #F2F4F7; }
.list-row:last-child { border-bottom: none; }

/* 매트릭스 */
.mx { overflow-x: auto; overflow-y: hidden; }
.mx-grid { display: grid; }
.mx-head { background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px; }
.mx-head .cn { align-self: flex-start; padding: 0; border: none; background: none; font-size: 12.5px; font-weight: 700; color: var(--primary); cursor: pointer; text-align: left; }
.mx-head .cn:hover { color: var(--primary-h); text-decoration: underline; }
.mx-dept { border-bottom: 1px solid #F2F4F7; cursor: pointer; }
.mx-dept:hover { background: var(--bg); }
.mx-person { border-bottom: 1px solid #F2F4F7; background: var(--row-sub); }
.bar { height: 6px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
.bar > div { height: 100%; border-radius: 999px; background: var(--primary); }
.bar.thin { height: 4px; }

/* 단계 표시 (마법사) */
.steps { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 72px; }
.step { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: none; border-radius: 6px; background: transparent; text-align: left; cursor: pointer; font-size: 13px; color: var(--ink5); font-weight: 500; }
.step .dot { width: 22px; height: 22px; border-radius: 999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: #fff; color: var(--ink5); border: 1px solid var(--line2); }
.step.done { color: var(--ink2); } .step.done .dot { background: var(--primary); color: #fff; border: none; }
.step.cur { background: var(--primary-bg); color: var(--primary-h); font-weight: 700; } .step.cur .dot { color: var(--primary); border: 1.5px solid var(--primary); }
.stepbar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.stepbar div { height: 4px; border-radius: 999px; background: var(--line); cursor: pointer; } .stepbar div.on { background: var(--primary); }
.footbar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); z-index: 30; }
.footbar > div { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 8px; }

/* 학습 */
.stage { border-radius: 12px; background: var(--dark); display: flex; flex-direction: column; gap: 12px; color: #fff; }
.stage .kick { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink5); }
.stage .chipd { display: inline-flex; padding: 2px 8px; border-radius: 999px; background: var(--dark2); color: var(--line2); font-weight: 700; }
.stage .ttl { font-weight: 700; color: #fff; line-height: 1.35; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; overflow: hidden; }
.video .cover { position: absolute; inset: 0; z-index: 2; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video .big { width: 60px; height: 60px; border-radius: 999px; background: #fff; color: var(--dark); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; padding-left: 4px; }
.vctl { display: flex; align-items: center; gap: 10px; }
.vbtn { width: 36px; height: 36px; border-radius: 999px; border: none; background: var(--dark2); color: #fff; font-size: 12px; cursor: pointer; flex-shrink: 0; }
.vbtn.w { width: auto; padding: 0 10px; color: var(--line2); font-weight: 600; }
.vbar { position: relative; flex: 1; height: 4px; border-radius: 999px; background: var(--ink2); overflow: hidden; }
.vbar > div { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--primary); }
.vbar > i { position: absolute; top: -2px; width: 2px; height: 8px; background: #fff; }
.dots { flex: 1; display: flex; justify-content: center; gap: 6px; }
.dots span { width: 6px; height: 6px; border-radius: 999px; background: var(--line); }
.dots span.past { background: var(--primary-line); } .dots span.cur { width: 18px; background: var(--primary); }
.lesson-btn { display: flex; align-items: center; gap: 10px; padding: 10px; border: none; border-radius: 6px; background: transparent; text-align: left; cursor: pointer; width: 100%; }
.lesson-btn.cur { background: var(--primary-bg); }
.lesson-btn:disabled { cursor: not-allowed; opacity: .6; }
.lesson-btn .dot { width: 22px; height: 22px; border-radius: 999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: #fff; color: var(--ink5); border: 1px solid var(--line2); }
.lesson-btn.done .dot { background: var(--primary); color: #fff; border: none; }
.lesson-btn.cur .dot { color: var(--primary); border: 1.5px solid var(--primary); }
.qopt { min-height: 48px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; font-size: 14px; color: var(--ink2); font-weight: 500; }
.qopt.on { background: var(--primary-bg); border: 1.5px solid var(--primary); color: var(--primary-h); font-weight: 700; }
.pdfcanvas { width: 100%; border-radius: 8px; background: #fff; display: block; }

/* 증빙 문서 미리보기 */
.paper-wrap { border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); padding: 24px; display: flex; justify-content: center; overflow-x: auto; }
.paper { width: 100%; max-width: 620px; background: #fff; box-shadow: 0 2px 8px rgba(16,24,40,.08); padding: 40px 44px; display: flex; flex-direction: column; gap: 20px; min-height: 760px; }
.paper .phd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.paper .pt { font-size: 20px; font-weight: 700; text-align: center; letter-spacing: -.01em; }
.dtable { border: 1px solid var(--line2); font-size: 12px; }
.dtable .dh { display: grid; background: var(--bg1); font-weight: 700; color: var(--ink2); }
.dtable .dr { display: grid; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.dtable .dh > div, .dtable .dr > div { padding: 7px 10px; }
.dtable .r { text-align: right; }
.dkv { display: grid; grid-template-columns: 120px 1fr; border: 1px solid var(--line2); font-size: 12.5px; }
.dkv > div { padding: 8px 10px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.dkv > div:nth-child(odd) { background: var(--bg); color: var(--ink3); font-weight: 600; border-right: 1px solid var(--line); }
.stamp { display: inline-flex; width: 30px; height: 30px; border-radius: 999px; border: 1.5px solid var(--danger); color: var(--danger); font-size: 11px; align-items: center; justify-content: center; vertical-align: middle; }

/* 메신저 미리보기 */
.msgr { border-radius: 10px; background: var(--bg2); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msgr .who { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink3); }
.msgr .av { width: 28px; height: 28px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.msgr .bub { background: #fff; border-radius: 10px; padding: 14px; max-width: 360px; display: flex; flex-direction: column; gap: 8px; }
.msgr.off { opacity: .5; }

/* 직원 모바일 */
.m-shell { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
.m-top { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: var(--bg); position: sticky; top: 0; z-index: 20; }
.m-body { flex: 1; padding: 4px 18px 96px; display: flex; flex-direction: column; gap: 18px; }
.m-tabs { position: fixed; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: #fff; padding: 6px 8px calc(10px + env(safe-area-inset-bottom)); z-index: 30; }
.m-tabs button { height: 52px; border: none; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink5); font-size: 12.5px; font-weight: 700; }
.m-tabs button span.dot { width: 22px; height: 4px; border-radius: 999px; background: transparent; }
.m-tabs button.on { color: var(--primary-h); } .m-tabs button.on span.dot { background: var(--primary); }
.hero { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; border: none; background: var(--primary); color: #fff; text-align: left; cursor: pointer; box-shadow: 0 8px 20px rgba(14,110,107,.25); width: 100%; }
.hero .go { height: 48px; border-radius: 12px; background: #fff; color: var(--primary-h); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mcard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; min-height: 72px; width: 100%; }
.ring { position: relative; width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.ring > div { width: 36px; height: 36px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--primary-h); }
.dark-page { background: var(--dark); color: #fff; min-height: 100vh; }

@media (max-width: 859px) {
  .page { padding: 16px 16px 96px; }
  .gnb { padding: 0 12px; gap: 8px; }
  .gnb .me .dept { display: none; }
  .banner .bh { padding: 11px 12px; }
  .paper { padding: 24px 18px; }
  .paper-wrap { padding: 12px; }
}

/* 권리침해 신고 (v1.1) */
.gnb .tab .tab-dot { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; margin-left: 6px; padding: 0 4px; border-radius: 999px; background: #D92D20; color: #fff; font-size: 10.5px; font-weight: 700; vertical-align: 1px; }
.rights-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink4); }
.rights-line.need { color: var(--warn); font-weight: 600; }
.rights-line.ok::before { content: '✓'; color: var(--primary); font-weight: 700; }
.blocked-box { padding: 10px 12px; border-radius: 8px; background: #FEF3F2; border: 1px solid #FECDCA; color: #B42318; font-size: 12.5px; line-height: 1.55; }
.report-row { padding: 12px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.report-row:first-child { border-top: none; }
