/* ─────────────────────────────────────────────────────────────────────────────
   learn.css — 참가자 앱. 모바일 우선(390px) → 데스크톱(1440px) 확장.
   4px 리듬 · 인라인 style 0건 · 라이트/다크 AA 대비.
   ───────────────────────────────────────────────────────────────────────────── */
.lrn { min-height: 100vh; display: flex; flex-direction: column; }

.lrnhead {
  position: sticky; top: 0; z-index: 30; display: flex; flex: none; align-items: center; gap: var(--s4);
  height: 64px; padding: 0 var(--s6); border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px);
}
.lrnhead__brand { display: inline-flex; align-items: center; gap: var(--s2); }
.lrnhead__brand img { display: block; width: 96px; height: auto; }
.lrnhead__tag {
  font-size: 11px; color: var(--text-2); padding: var(--s1) var(--s2);
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
}
.lrnnav { display: flex; gap: var(--s1); margin-left: var(--s4); overflow-x: auto; }
.lrnnav a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--text-3);
  white-space: nowrap;
}
.lrnnav a:hover { color: var(--text); background: var(--surface-2); }
.lrnnav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.lrnhead__actions { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.aliaschip {
  font-family: var(--font-num); font-size: 12px; color: var(--text-2);
  padding: var(--s1) var(--s3); border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface-2);
}

.lrnmain { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: var(--s8) var(--s6) var(--s16); }
.lrnfoot {
  padding: var(--s4) var(--s5); border-top: 1px solid var(--line); background: var(--bg-side);
  font-size: 11px; color: var(--text-3);
}
.lrnfoot p { margin: 0 0 6px; }
.lrnfoot p:last-child { margin-bottom: 0; }
.lrnfoot a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

/* ── 공통 ─────────────────────────────────────────────────────────────────── */
.lpage__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.lpage__title { margin: 0; font-size: 28px; line-height: 38px; font-weight: 800; letter-spacing: -0.035em; }
.lpage__sub { margin: var(--s2) 0 0; font-size: 16px; line-height: 25px; color: var(--text-2); }
.lsection { margin-top: var(--s6); }
.lcard {
  padding: var(--s6); border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); box-shadow: var(--shadow-1);
}
.lcard--tight { padding: var(--s4); }
.lcard__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.lcard h2, .lcard h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.lcard__sub { margin: var(--s1) 0 0; font-size: 14px; line-height: 21px; color: var(--text-3); }
.lgrid { display: grid; gap: var(--s3); }
.lgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lgrid--kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.warn { color: var(--warn); }

.kpi { min-width: 0; padding: var(--s5); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); }
.kpi__label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.kpi__value { margin-top: var(--s2); font-size: 26px; font-weight: 700; letter-spacing: -0.03em; white-space: normal; }
.kpi__value--text { font-size: 20px; }
.kpi__unit { font-size: 14px; font-weight: 500; color: var(--text-3); margin-left: 2px; }
.kpi__foot { margin-top: var(--s1); font-size: 12px; line-height: 18px; color: var(--text-3); }

.bar { display: grid; gap: var(--s1); }
.bar__top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.bar__svg { display: block; width: 100%; height: 8px; margin-top: 4px; }
.bar__bg { fill: var(--surface-3); }
.bar__fg { fill: var(--accent); }
.kpi__value--code { font-size: 15px; letter-spacing: 0; line-height: 1.35; word-break: break-all; overflow-wrap: anywhere; }
.bars { display: grid; gap: var(--s3); }

.chip {
  display: inline-flex; align-items: center; gap: var(--s1); padding: 2px var(--s2);
  border-radius: 999px; font-size: 11px; border: 1px solid var(--line-strong); color: var(--text-2);
  white-space: nowrap; flex: none;
}
.chip--ok { border-color: rgba(76, 195, 138, 0.4); color: var(--pos); }
.chip--wait { border-color: rgba(224, 161, 91, 0.4); color: var(--warn); }
.chip--off { color: var(--text-3); }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.list li { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); border: 1px solid transparent; border-radius: 14px; background: var(--surface-2); }
.list li .grow { flex: 1; min-width: 0; }
.list__title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.list__meta { font-size: 13px; line-height: 19px; color: var(--text-3); margin-top: 2px; }

.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.steps li { display: grid; grid-template-columns: 16px 1fr auto; gap: var(--s3); align-items: center; font-size: 13px; }
.dotmark { width: 10px; height: 10px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-strong); }
.dotmark--ok { background: var(--pos); border-color: var(--pos); }
.dotmark--now { background: var(--warn); border-color: var(--warn); }

/* ── 진단 ─────────────────────────────────────────────────────────────────── */
.qlist { display: grid; gap: var(--s3); }
.qitem { padding: var(--s5); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); }
.qitem__axis { font-size: 13px; font-weight: 600; color: var(--accent); }
.qitem__prompt { margin: var(--s2) 0 var(--s4); font-size: 16px; line-height: 25px; font-weight: 600; }
.scale { display: grid; gap: var(--s1); grid-template-columns: repeat(5, minmax(0, 1fr)); }
.scale label {
  display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: flex-start;
  padding: var(--s2) var(--s1); border: 1px solid transparent; border-radius: 12px;
  background: var(--surface-2); font-size: 12px; color: var(--text-2); text-align: center; cursor: pointer;
  min-height: 68px;
}
.scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.scale label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 숫자는 다섯 칸 모두 같은 높이에서 시작한다(설명 길이가 달라도 눈금이 흔들리지 않게). */
.scale b { display: block; font-family: var(--font-num); font-size: 15px; line-height: 20px; color: var(--text); }

/* ── 제출 폼 ─────────────────────────────────────────────────────────────── */
.form { display: grid; gap: var(--s3); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
/* base.css 의 .field 는 직원콘솔 툴바 검색상자(height:36px 고정 · 안쪽 input 테두리 제거)다.
   같은 클래스를 폼 라벨로 쓰면 라벨 상자가 36px 로 눌려 input 이 밖으로 넘친다(390px 겹침 사고).
   .lrn 스코프로 되돌려 라벨은 "위에 글자 · 아래 입력란" 세로 배치만 갖게 한다. */
.lrn .field {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1);
  height: auto; min-height: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; overflow: visible;
  font-size: 12px; color: var(--text-2);
}
.lrn .field > span { font-size: 12px; line-height: 18px; font-weight: 600; color: var(--text-2); }
.lrn .field em { font-style: normal; font-weight: 400; color: var(--text-3); }
.lrn .field input, .lrn .field select, .lrn .field textarea {
  width: 100%; min-width: 0; height: auto; flex: none;
  padding: var(--s3) var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: 15px;
  line-height: 24px; min-height: 48px;
}
.lrn .field textarea { min-height: 160px; resize: vertical; line-height: 22px; }
.lrn .field input:focus, .lrn .field select:focus, .lrn .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
/* 로그인 카드는 읽기 폭으로 좁혀 가운데 둔다(1440px 에서 1,000px 짜리 입력란이 되지 않게). */
.lcard--auth { width: 100%; max-width: 460px; margin-inline: auto; }
.lcard--auth .lpage__title { font-size: 26px; line-height: 34px; }
.lcard--auth .form { margin-top: var(--s5); }
.formerror { margin: 0; padding: var(--s2) var(--s3); border-radius: var(--r-sm); background: rgba(232, 106, 110, 0.12); color: var(--neg); font-size: 12px; }

/* ── 리포트 ───────────────────────────────────────────────────────────────── */
.reportdoc { font-size: 13px; line-height: 22px; color: var(--text-2); white-space: pre-wrap; }
.qrbox { display: flex; gap: var(--s4); align-items: center; }
.qrbox img { width: 132px; height: 132px; background: #fff; border-radius: var(--r-md); padding: var(--s2); }
.sharebox { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.sharebox input { flex: 1; min-width: 220px; padding: var(--s2) var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg); color: var(--text); font-family: var(--font-num); font-size: 12px; }

/* 좁은 폭 */
@media (max-width: 900px) {
  .lgrid--kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lgrid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .rptr__layers { grid-template-columns: 1fr; }
  .lrnhead {
    display: grid; grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand . actions" "nav nav nav";
    align-items: center; row-gap: 6px; height: auto; min-height: 0; padding: 8px 12px;
  }
  .lrnhead__brand { grid-area: brand; }
  .lrnhead__actions { grid-area: actions; margin-left: 0; justify-self: end; }
  .aliaschip { display: none; }
  .lrn.is-guest .lrnhead { grid-template-areas: "brand . actions"; }
  .lrn.is-guest .lrnhead__brand img { width: 84px; }
  .lrnhead__actions .btn { height: 36px; padding: 0 var(--s3); }
  .lrnnav { grid-area: nav; margin: 0; width: 100%; gap: 0; justify-content: space-between; }
  .lrnnav a { flex: 1; text-align: center; padding: var(--s2) var(--s1); font-size: 12px; }
  .lrnmain { padding: var(--s4) var(--s3) var(--s10); }
  .lpage__title { font-size: 20px; line-height: 28px; }
  .lcard--auth .lpage__title { font-size: 22px; line-height: 30px; }
  .lgrid--2 { grid-template-columns: 1fr; }
  .scale { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
  .scale label { min-height: 78px; padding: var(--s2) 3px; font-size: 11px; line-height: 15px; }
  .fgrid { grid-template-columns: 1fr; }
  .lcard { padding: var(--s4); }
  .qrbox { flex-direction: column; align-items: flex-start; }
  .lrnfoot { padding-bottom: calc(var(--s4) + 60px); }
}

/* 한글은 어절 단위로 끊는다(단어 중간 개행 방지) */
.lrn p, .lrn h1, .lrn h2, .lrn h3, .lrn h4, .lrn li, .lrn legend, .lrn summary, .lrn dd,
.lrn .list__title, .lrn .list__meta, .lrn .chip, .lrn .mset__title, .lrn .mset__meta,
.lrn .lcard__sub, .lrn .lpage__sub, .lrn .kpi__label, .lrn .kpi__foot {
  word-break: keep-all; overflow-wrap: anywhere;
}

/* 동의 항목 — 제목·설명은 왼쪽에 세로로, 체크박스는 오른쪽 한 줄에 */
.lconsent {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s1) var(--s3); align-items: center; cursor: pointer;
}
.lconsent .list__title { grid-column: 1; }
.lconsent .list__meta { grid-column: 1; margin-top: 0; }
.lconsent input {
  grid-column: 2; grid-row: 1 / span 2; justify-self: end;
  width: 22px; height: 22px; margin: 0; accent-color: var(--accent);
}
.lconsent input:disabled { opacity: 0.75; cursor: not-allowed; }
.reportdoc h3 { margin: var(--s4) 0 var(--s2); font-size: 14px; color: var(--text); }
.reportdoc h4 { margin: var(--s3) 0 var(--s1); font-size: 13px; color: var(--text); }
.reportdoc p { margin: 0 0 var(--s2); }
.reportdoc .doclist { margin: 0 0 var(--s2); padding-left: var(--s4); display: grid; gap: var(--s1); }
.reportdoc .docnote { padding: var(--s2) var(--s3); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-2); font-size: 12px; }
.reportdoc { white-space: normal; }


/* ── 홈 · 리포트 공통 (5대 역량 레이더) ───────────────────────────────────── */
.lhero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: var(--s8); align-items: center;
  padding: var(--s8); border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.lhero__label { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.lhero__score { margin: var(--s2) 0 0; display: flex; align-items: baseline; gap: var(--s2); }
.lhero__score b { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -0.05em; }
.lhero__score span { font-size: 17px; color: var(--text-3); font-weight: 600; }
.lhero__hint { margin: var(--s3) 0 0; font-size: 16px; line-height: 25px; color: var(--text-2); }
.lhero__actions { display: flex; gap: var(--s2); margin-top: var(--s6); flex-wrap: wrap; }
.lhero__chart { display: grid; gap: var(--s3); justify-items: center; }
.lhero__axes {
  list-style: none; margin: 0; padding: 0; width: 100%;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s1);
}
.lhero__axes li {
  display: grid; gap: 2px; justify-items: center; padding: var(--s2) 0;
  border-radius: 10px; background: var(--surface-2);
}
.lhero__axes span { font-size: 13px; color: var(--text-2); }
.lhero__axes b { font-size: 16px; font-weight: 700; color: var(--text); }

.rdr { width: 100%; max-width: 340px; height: auto; display: block; }
.rdr__ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.rdr__spoke { stroke: var(--line); stroke-width: 1; }
.rdr__area { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.rdr__dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.rdr__label { fill: var(--text-2); font-size: 12px; font-weight: 600; font-family: var(--font-ui); }
.rdr__score { fill: var(--text); font-size: 14px; font-weight: 700; font-family: var(--font-ui); }

.rptr {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s8); align-items: center;
}
.rptr__chart { display: grid; justify-items: center; gap: var(--s2); }
.rptr__caption { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-3); }
.rptr__label { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.rptr__score { margin: var(--s2) 0 var(--s2); display: flex; align-items: baseline; gap: var(--s2); }
.rptr__score b { font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -0.05em; }
.rptr__score span { font-size: 16px; color: var(--text-3); font-weight: 600; }
.rptr__layers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s5); }
.rptr__layers > div { padding: var(--s3); border-radius: 14px; background: var(--surface-2); }
.rptr__lname { margin: 0; font-size: 12px; font-weight: 600; color: var(--text-3); }
.rptr__lvalue { margin: 4px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.rptr__lbasis { margin: 2px 0 0; font-size: 11px; line-height: 16px; color: var(--text-3); }

@media (max-width: 900px) {
  .lhero, .rptr { grid-template-columns: 1fr; padding: var(--s5); gap: var(--s5); }
  .rptr__layers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lhero__score b { font-size: 52px; }
}

/* ── 학습 패턴 요약 ───────────────────────────────────────────────────────── */
.lstatline {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  padding: var(--s3) var(--s4); border-radius: 14px; background: var(--surface-2);
  font-size: 14px; color: var(--text-2);
}
.lstatline b { color: var(--text); font-weight: 600; margin-right: 4px; }

/* ── 기업 프로젝트 R/T/E/Q (도 12) ────────────────────────────────────────── */
.cproj { display: grid; gap: var(--s6); }
.cproj__item { padding-top: var(--s5); border-top: 1px solid var(--line); }
.cproj__item:first-child { padding-top: 0; border-top: 0; }
.cproj__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.cproj__title { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.cproj__meta { margin: var(--s1) 0 0; font-size: 13px; color: var(--text-3); }
.cproj__progress { font-size: 13px; font-weight: 600; color: var(--accent); }
.mset { display: grid; gap: var(--s2); }
.mset__row {
  display: grid; grid-template-columns: 28px 1fr auto; gap: var(--s3); align-items: center;
  padding: var(--s3) var(--s4); border-radius: 12px; background: var(--surface-2);
}
.mset__kind {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 8px; background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 700;
}
.mset__title { font-size: 15px; font-weight: 600; }
.mset__meta { margin-top: 2px; font-size: 12px; color: var(--text-3); }
.mset__state { font-size: 12px; font-weight: 600; color: var(--text-3); }
.mset__state.is-ok { color: var(--pos); }
.mset__state.is-wait { color: var(--warn); }
.msub { display: grid; gap: var(--s2); margin-top: var(--s3); }
.msub textarea {
  padding: var(--s3); border: 1px solid transparent; border-radius: 12px; background: var(--surface-2);
  color: var(--text); font: inherit; font-size: 14px; min-height: 84px; resize: vertical;
}
.msub textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.msub input {
  padding: var(--s3); border: 1px solid transparent; border-radius: 12px; background: var(--surface-2);
  color: var(--text); font-size: 14px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   학습부 — 강의 목록 · 자체 플레이어 · 스타일 분석 · 맞춤 경로 (2026-11-20)
   모바일 390px 우선. 인라인 style 0건(CSP), 색은 테마 토큰만 쓴다.
   ───────────────────────────────────────────────────────────────────────────── */
.llink { display: inline-block; margin-bottom: var(--s2); font-size: 13px; color: var(--text-2); }
.llink:hover { color: var(--accent); }

/* 세그먼트 탭(강의·스타일·경로) */
.lseg { display: inline-flex; gap: 2px; margin-top: var(--s4); padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.lseg__item {
  display: inline-flex; align-items: center; gap: 4px; padding: 7px 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.lseg__item:hover { color: var(--text); }
.lseg__item.is-on { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-1); }
.ltrk { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); }
.ltrk .lseg__item { border: 1px solid var(--line); background: var(--surface); padding: 6px 14px; font-size: 13px; }
.ltrk .lseg__item.is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* 스타일 요약 띠 */
.lstylestrip { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.lstylestrip__body { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; min-width: 0; }
.lstylestrip__body .lcard__sub { margin: 0; }

/* 진척 막대(SVG) */
.lbar { display: block; width: 100%; height: 6px; margin-top: var(--s3); }
.lbar__bg { fill: var(--surface-3); }
.lbar__fg { fill: var(--accent); }

/* 강의 카드 */
.llec { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.llec__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; row-gap: 6px; }
.llec__min { font-size: 12px; color: var(--text-3); white-space: nowrap; margin-left: auto; }
.llec__title { margin: var(--s2) 0 0; font-size: 17px; line-height: 24px; font-weight: 700; letter-spacing: -0.02em; }
.llec__sub { margin: 2px 0 0; font-size: 12px; line-height: 18px; color: var(--text-3); }
.llec__sum { margin: var(--s2) 0 0; font-size: 13px; line-height: 20px; color: var(--text-2); }
.llec__src { margin: var(--s2) 0 0; font-size: 11px; line-height: 17px; color: var(--text-3); }
.llec__acts { display: flex; gap: var(--s2); margin-top: var(--s3); flex-wrap: wrap; }
.lsrcnote { margin: var(--s3) 0 0; font-size: 12px; line-height: 18px; color: var(--text-3); }

/* 플레이어 */
.lplayer { padding: var(--s3); }
.lplay { position: relative; border-radius: 14px; overflow: hidden; background: #0b0f16; }
.lplay__media { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; background: #0b0f16; border: 0; }
.lctl { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.lctl__btn {
  min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer;
}
.lctl__btn:hover { border-color: var(--accent); color: var(--accent); }
.lctl__time { font-size: 12px; color: var(--text-2); margin-left: auto; }
.lctl__rate { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.lctl__rate select { height: 32px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); }
.lctl__loop { font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 8px; }
.lctl__hint { margin: var(--s2) 0 0; font-size: 12px; line-height: 18px; color: var(--text-3); }
.lseek { width: 100%; margin-top: var(--s2); accent-color: var(--accent); }

/* 출처 표 */
.lsource .lcard__head { align-items: flex-start; }
.lsrcgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s4); margin: 0; }
.lsrcgrid dt { font-size: 11px; font-weight: 600; color: var(--text-3); }
.lsrcgrid dd { margin: 2px 0 0; font-size: 13px; line-height: 19px; color: var(--text); overflow-wrap: anywhere; }
.lsrcgrid dd a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* 타임스탬프 메모 */
.lnotes { margin-top: var(--s4); }
.lnotes li { align-items: flex-start; }
.lnotes__at {
  flex: none; min-width: 52px; min-height: 30px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer;
}
.lnotes__at:hover { border-color: var(--accent); }
.lnotes__empty { color: var(--text-3); font-size: 13px; }

/* 이해 확인 */
.lquiz { padding: var(--s4) 0; border-top: 1px solid var(--line); }
.lquiz:first-of-type { border-top: 0; padding-top: 0; }
.lquiz__q { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.lquiz__opts { display: grid; gap: 6px; margin-top: var(--s3); }
.lquiz__opt { display: flex; align-items: center; gap: var(--s2); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 19px; cursor: pointer; background: var(--surface-2); }
.lquiz__opt.is-answer { border-color: var(--pos); background: color-mix(in srgb, var(--pos) 10%, var(--surface)); }
.lquiz__acts { display: flex; gap: var(--s2); margin-top: var(--s3); }
.lquiz__res { margin: var(--s2) 0 0; font-size: 13px; line-height: 20px; color: var(--text-2); }
.lquiz__res.is-ok { color: var(--pos); }
.lquiz__res.is-no { color: var(--warn); }

/* 스타일 분석 */
.levlist { margin: var(--s3) 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; line-height: 20px; color: var(--text-2); }
.lmetric { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin: 0; }
.lmetric > div { padding: var(--s3); border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.lmetric dt { font-size: 11px; color: var(--text-3); }
.lmetric dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; }
.lmetric__foot { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* 맞춤 경로 */
.lparallel { display: flex; flex-direction: column; gap: var(--s2); }
.lsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.lstep { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3); border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.lstep__kind { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid var(--line-strong); color: var(--text-2); }
.lstep__kind--lecture { color: var(--accent); border-color: var(--accent); }
.lstep__kind--practice { color: var(--warn); border-color: rgba(224, 161, 91, 0.55); }
.lstep__kind--corporate { color: var(--pos); border-color: rgba(76, 195, 138, 0.55); }
.lstep__body { min-width: 0; }
.lstep__title { font-size: 14px; line-height: 21px; font-weight: 600; }
.lstep__title a { color: var(--text); }
.lstep__title a:hover { color: var(--accent); }
.lstep__meta { font-size: 12px; line-height: 18px; color: var(--text-3); margin-top: 2px; }
.lbp { padding: var(--s3); border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }

@media (max-width: 720px) {
  .lsrcgrid { grid-template-columns: 1fr; }
  .lmetric { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lctl__time { margin-left: 0; order: 5; }
  .lplayer { padding: var(--s2); }
  .llec__title { font-size: 16px; line-height: 23px; }
  .lseg { width: 100%; justify-content: space-between; }
  .lseg__item { flex: 1; justify-content: center; padding: 7px 8px; font-size: 13px; }
  .lstep { flex-direction: column; gap: var(--s2); }
}

/* 플레이어 커버 — 재생 전 제목·출처를 보여 주고, 재생하면 사라진다 */
.lplay__cover {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; padding: var(--s5); text-align: center;
  background: linear-gradient(180deg, rgba(9, 13, 20, 0.86), rgba(9, 13, 20, 0.94));
  color: #f4f7ff;
}
.lplay__covertitle { margin: 0; font-size: 17px; line-height: 24px; font-weight: 700; max-width: 30ch; }
.lplay__coversrc { margin: 0 0 var(--s2); font-size: 12px; line-height: 18px; color: #c8d2e4; }
.lplay__cover .chip { border-color: rgba(255, 255, 255, 0.35); color: #e8eefb; }
.lsource .lcard__head { flex-wrap: wrap; }
@media (max-width: 720px) {
  /* 좁은 화면에서는 제목·설명이 칩에 눌리지 않게 헤더를 줄바꿈한다 */
  .lcard__head { flex-wrap: wrap; gap: var(--s2); }
  .lcard__head > div { min-width: 0; }
}

/* ═════════════════════════════════════════════════════════════════════════════
   2026-11-20 대표 지시 [#76915] — 희망 직무 맞춤 추천 · 전체 강의 · 인비디오 퀴즈
   ═════════════════════════════════════════════════════════════════════════════ */

/* 추천 섹션 — 전체 강의와 구분되는 상단 블록 */
.lreco {
  padding: var(--s5); border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 20px; background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface));
}
.lreco__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.lreco__head h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; }
.lreco__acts { display: inline-flex; align-items: center; gap: var(--s2); }
.lreco__card { background: var(--surface); border-radius: 16px; }
.lreco__card.is-match { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.lreco__why { margin: var(--s2) 0 0; font-size: 12px; line-height: 18px; color: var(--accent); font-weight: 600; }
.lreco__card .llec__title { font-size: 16px; line-height: 23px; }
.lreco__card .llec__title a { color: var(--text); }

/* 전체 강의 섹션 */
.lall__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.lall__head h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; }
.llec.is-match { border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); }
.chip--sm { font-size: 10px; padding: 1px 6px; }

/* 탐색 바 위 퀴즈 마커 */
.lseekwrap { position: relative; margin-top: var(--s2); padding-top: 10px; }
.lseek__marks { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 12px; overflow: visible; }
.lmark { cursor: pointer; stroke: #fff; stroke-width: 1.5; pointer-events: auto; }
.lmark--todo { fill: #f3c04b; }
.lmark--done { fill: #63a8ff; }
.lmark:hover { fill: #ffd76e; }
.lseek__note { margin: var(--s2) 0 0; font-size: 11px; line-height: 17px; color: var(--text-3); }
.lmarkkey { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
.lmarkkey--todo { background: #f3c04b; }
.lseekwrap .lseek { margin-top: 0; }

/* 인비디오 퀴즈 모달 — Coursera 스타일 */
.lvquiz {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: var(--s4); background: rgba(7, 11, 18, 0.66); backdrop-filter: blur(3px);
}
.lvquiz__box {
  width: min(640px, 100%); max-height: 100%; overflow: auto; padding: var(--s5);
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(4, 8, 16, 0.45);
}
.lvquiz__kicker { margin: 0 0 var(--s2); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.lvquiz__q { margin: 0 0 var(--s4); font-size: 17px; line-height: 25px; font-weight: 700; color: var(--text); }
.lvquiz__opts { display: grid; gap: 8px; }
.lvquiz__opt {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 11px 13px;
  border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface-2);
  color: var(--text); font: inherit; font-size: 14px; line-height: 20px; cursor: pointer;
}
.lvquiz__opt:hover:not(:disabled) { border-color: var(--accent); }
.lvquiz__opt:disabled { cursor: default; opacity: 0.92; }
.lvquiz__opt.is-answer { border-color: var(--pos); background: color-mix(in srgb, var(--pos) 14%, var(--surface)); }
.lvquiz__opt.is-wrong { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--surface)); }
.lvquiz__num {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-family: var(--font-num); font-size: 12px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line-strong);
}
.lvquiz__res { margin: var(--s3) 0 0; font-size: 13px; line-height: 20px; color: var(--text-2); }
.lvquiz__res.is-ok { color: var(--pos); }
.lvquiz__res.is-no { color: var(--warn); }
.lvquiz__acts { display: flex; gap: var(--s2); margin-top: var(--s4); flex-wrap: wrap; }

/* 재생 실패 안내 오버레이 */
.lplay__overlay {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  padding: var(--s4); background: rgba(9, 13, 20, 0.92); color: #eaf0fb;
}
.lperr { max-width: 520px; text-align: center; }
/* 2026-11-21 대표 제보 [#82124] — 첫 화면을 불러오는 동안 검은 화면만 보이지 않게 안내한다.
   느린 회선(MIT 원본은 재생 정보가 앞 4MB 지점)에서는 첫 화면까지 수십 초가 걸릴 수 있다. */
.lpbuf { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lpbuf__spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid rgba(242, 246, 255, 0.28); border-top-color: #f2f6ff;
  animation: lpbufspin 0.9s linear infinite;
}
.lpbuf__text { margin: 0; font-size: 14px; line-height: 21px; color: #f2f6ff; font-weight: 600; }
.lpbuf__hint { margin: 0; font-size: 12px; line-height: 18px; color: #c3cee2; }
@keyframes lpbufspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lpbuf__spin { animation: none; } }
.lperr__kicker { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8fb2ff; }
.lperr__title { margin: 0 0 8px; font-size: 18px; line-height: 26px; font-weight: 800; }
.lperr__body { margin: 0 0 var(--s4); font-size: 13px; line-height: 20px; color: #c3cee2; }
.lperr__acts { display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; }
/* 2026-11-21 대표 제보 — 어두운 오버레이(rgba(9,13,20,.92)) 위에서 기본 .btn--ghost 의
   글자색(--text-2 #4A5563)이 배경에 묻혀 읽히지 않았다(대비 2.4:1). 오버레이 안에서는
   밝은 글자·테두리·반투명 바탕으로 4.5:1 이상을 확보한다. */
.lperr .btn--ghost,
.lperr .btn--ghost:visited {
  color: #f2f6ff; border: 1px solid rgba(242, 246, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}
.lperr .btn--ghost:hover,
.lperr .btn--ghost:focus-visible {
  color: #ffffff; background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.8);
}
.lperr .btn--primary { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }

/* 계정 전환 안내 */
.lswitch { max-width: 720px; margin: var(--s8) auto; text-align: left; }
.lswitch .chip { margin-bottom: var(--s2); }
.lswitch__acts { display: flex; gap: var(--s2); margin-top: var(--s4); flex-wrap: wrap; }

/* 내 제출물 · 채점 현황 */
.lsubs__item { align-items: flex-start; }
.lsubs__comment { color: var(--text-2); }
.lsubstatus { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 var(--s4); }
.lsubstatus__step {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-3); background: var(--surface-2);
}
.lsubstatus__step.is-done { color: var(--pos); border-color: rgba(76, 195, 138, 0.5); }
.lsubstatus__step.is-on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* 유형별 채점 항목 표 */
.lsectable { display: grid; gap: 8px; margin: 0 0 var(--s4); }
.lsectable__row {
  display: grid; grid-template-columns: minmax(140px, 1.1fr) minmax(120px, 1.6fr) 64px minmax(0, 2fr);
  gap: var(--s3); align-items: center; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface-2);
}
.lsectable__label { font-size: 13px; font-weight: 600; }
.lsectable__label em { font-style: normal; font-size: 11px; color: var(--text-3); }
.lsectable__score { font-size: 13px; font-weight: 700; color: var(--accent); }
.lsectable__why { font-size: 11.5px; line-height: 17px; color: var(--text-3); }
.ltips { background: var(--surface-2); }
.ltips h3 { font-size: 15px; }

@media (max-width: 900px) {
  .lgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lsectable__row { grid-template-columns: 1fr auto; }
  .lsectable__bar, .lsectable__why { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .lgrid--3, .lgrid--2, .lgrid--kpi { grid-template-columns: 1fr; }
  .lvquiz__box { padding: var(--s4); max-height: 86vh; }
  .lreco { padding: var(--s4); }
  /* 좁은 화면: 여백을 줄이고 카드가 화면 안에서 스크롤되게 한다 */
  .lvquiz { padding: 12px; }
  .lvquiz__q { font-size: 16px; line-height: 24px; }
  .lvquiz__opt { font-size: 13.5px; line-height: 19px; padding: 10px 11px; }
}

/* 대체 강의 안내 띠 (2026-11-21 대표 지시 [#80338])
   유튜브 임베드가 막힌 네트워크에서 같은 주제의 공개 라이선스 mp4 로 재생할 때, 그 사실과
   출처·라이선스를 플레이어 바로 아래에 밝힌다. */
.lfallback {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  margin: var(--s2) 0 0; padding: 10px 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent, #7fa6ff);
  font-size: 13px; line-height: 20px; color: var(--text-2);
}
.lfallback b { color: var(--text); }
.lfallback__src { min-width: 0; }
.lfallback .btn { margin-left: auto; }
@media (max-width: 560px) {
  .lfallback .btn { margin-left: 0; }
}


/* ═════════════════════════════════════════════════════════════════════════════
   2026-11-21 대표 지시 [#82316] — 외국 강의 배지 · 한국어 자막(실시간 오버레이 + 대본)

   Paperlogy 는 글자 잉크가 글자 상자 밖으로 조금 나오는 서체다. 그래서 이 화면의
   글자 요소는 ① 스스로 overflow 로 자르지 않고 ② 자르는 부모(카드·플레이어) 안에서
   테두리 여백을 최소 4px 이상 두고 ③ line-height 를 글자 크기의 1.3배 이상으로 잡는다.
   (짧은 line-height + overflow:hidden 조합이 첫 글자와 윗부분을 깎던 원인)
   ═════════════════════════════════════════════════════════════════════════════ */

/* 언어 배지 — 외국(영문) 강의를 한국어 강의와 한눈에 구분한다 */
.lheadchips { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--s2); }
.chip--lang {
  display: inline-flex; align-items: center; gap: 4px; font-weight: 700;
  color: var(--accent); border-color: color-mix(in srgb, var(--accent) 42%, var(--line-strong));
  background: var(--accent-soft);
}
.chip__ico { width: 13px; height: 13px; flex: none; }
.chip--sub {
  font-weight: 700; color: var(--pos);
  border-color: color-mix(in srgb, var(--pos) 40%, var(--line-strong));
  background: color-mix(in srgb, var(--pos) 10%, transparent);
}

/* 실시간 한국어 자막 — 영상 위에 겹쳐 띄운다(포인터를 가로채지 않는다) */
.lsub {
  /* z-index 1 — 재생 전 커버(z=2)와 오류 안내(z=5) 아래에 둔다. 커버가 떠 있는 동안
     자막이 재생 버튼을 덮으면 안 되고, 재생이 시작되면 커버가 사라져 자막이 드러난다. */
  position: absolute; left: 10px; right: 10px; bottom: 14px; z-index: 1;
  display: flex; justify-content: center; pointer-events: none;
}
.lsub--yt { bottom: 54px; }
.lsub__text {
  max-width: 96%; padding: 8px 12px; border-radius: 10px;
  background: rgba(8, 12, 20, 0.8); color: #f4f7ff;
  font-size: 15px; line-height: 24px; font-weight: 600; letter-spacing: -0.005em;
  text-align: center; text-wrap: balance;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
@media (max-width: 720px) {
  .lsub { left: 8px; right: 8px; bottom: 10px; }
  .lsub--yt { bottom: 50px; }
  .lsub__text { font-size: 13.5px; line-height: 21px; padding: 6px 10px; }
}
.lctl__btn--sub[aria-pressed="true"] {
  color: var(--accent); border-color: color-mix(in srgb, var(--accent) 46%, var(--line-strong));
  background: var(--accent-soft);
}
.lctl__btn--sub.is-off { color: var(--text-3); background: transparent; }

/* 한국어 자막 대본 — 시각을 누르면 그 지점으로 이동한다 */
.lscript__list {
  list-style: none; margin: 0; padding: 2px 0; display: grid; gap: 2px;
  max-height: 340px; overflow-y: auto; overscroll-behavior: contain;
}
.lscript__list li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s3);
  align-items: start; padding: 6px var(--s2); border-radius: 10px;
}
.lscript__list li:hover { background: var(--surface-2); }
.lscript__at {
  justify-self: start; padding: 2px 6px; border: 1px solid var(--line-strong);
  border-radius: 8px; background: var(--surface-2); color: var(--text-2);
  font-size: 12px; line-height: 18px; cursor: pointer;
}
.lscript__at:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line-strong)); }
.lscript__ko { font-size: 14px; line-height: 22px; color: var(--text-2); word-break: keep-all; overflow-wrap: anywhere; }
/* 접힌 상태에서는 아래쪽을 부드럽게 흐려 '더 있다'를 보여 준다(문장이 칼로 자른 듯 보이지 않게). */
.lscript:not(.is-open) .lscript__list {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent 100%);
}
.lscript.is-open .lscript__list { max-height: none; overflow: visible; }
.lscript__more { margin-top: var(--s3); }
@media (max-width: 720px) {
  .lscript__list li { grid-template-columns: 48px minmax(0, 1fr); gap: var(--s2); padding: 6px var(--s1); }
  .lscript__ko { font-size: 13px; line-height: 20px; }
}

/* ── v2.3.0 — 채점 근거 문장 인용 · 이용권 ──────────────────────────────── */
.lgrow { display: flex; align-items: center; gap: var(--s2, 8px); margin: var(--s2, 8px) 0 var(--s4, 16px); }
.levbox { margin-top: var(--s2, 8px); padding: var(--s3, 12px); border: 1px solid var(--line); border-radius: var(--r-md, 10px); background: var(--surface-2); }
.levitem { padding: var(--s2, 8px) 0; border-bottom: 1px solid var(--line); }
.levitem:last-child { border-bottom: 0; }
.levquote { margin: var(--s1, 4px) 0 0; padding: var(--s2, 8px) var(--s3, 12px); border-left: 2px solid var(--accent); background: var(--surface); border-radius: 4px; font-size: 12px; line-height: 18px; color: var(--text-2); }
.levquote small { display: block; margin-top: 4px; font-size: 11px; color: var(--text-3); }
.levquote.is-caution { border-left-color: #D97706; }
