/* ─────────────────────────────────────────────
   온라인 강의실 — 50대 이상 수강생도 보기 편한 큰 글씨 · 또렷한 색 디자인
   ───────────────────────────────────────────── */
:root {
  --bg: #fbf8f3; --bg-2: #f3eee5; --card: #fff; --text: #16191f; --text-2: #2e333c; --muted: #5a606b; --line: #e4ddd1;
  --brand: #1f5fc7; --brand-d: #174a9e; --brand-t: #e8f0fc;
  --ok: #1f8a4c; --ok-t: #e3f4ea; --warn: #b86a00; --warn-t: #fff1db; --err: #c62f36; --err-t: #fde9e9; --live: #e3262f;
  --orange: #ef8a00; --orange-t: #fef0dc;
  --spectrum: linear-gradient(90deg, #e8202a 0 25%, #231f20 25% 50%, #00aeef 50% 75%, #f39321 75% 100%);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(40,30,10,.05), 0 12px 30px -14px rgba(40,30,10,.2);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.fs-lg body { zoom: 1.15; }
body { margin: 0; background: var(--bg); color: var(--text); word-break: keep-all; overflow-wrap: anywhere;
  font: 18px/1.7 "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 900; letter-spacing: -.03em; line-height: 1.3; margin: .3em 0 .5em; display: flex; align-items: center; gap: .45em; flex-wrap: wrap; }
h2 { font-size: 22px; font-weight: 850; letter-spacing: -.02em; margin: 0 0 .7em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .88em; } .center { text-align: center; } .right { text-align: right; white-space: nowrap; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.ok-text { color: var(--ok); } .err-text { color: var(--err); }
.ico { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -.18em; }

/* ── 머리글 ── */
header.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.top::before { content: ""; display: block; height: 5px; background: var(--spectrum); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1em; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: -.02em; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
nav a { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 750; font-size: 17px; padding: 10px 14px; border-radius: 12px; }
nav a:hover { background: var(--bg-2); text-decoration: none; }
nav a.on { background: var(--brand-t); color: var(--brand); }
nav a.btn, nav a.btn:hover { color: #fff; background: var(--brand); }
.who { color: var(--muted); font-size: 16px; padding: 0 6px 0 10px; }
.who b { color: var(--text); }
nav button.link { color: var(--muted); font-size: 16px; padding: 10px 12px; border-radius: 12px; font-weight: 650; }
nav button.link:hover { background: var(--bg-2); color: var(--text); }
.fs-btn { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; font: inherit; font-size: 15.5px; font-weight: 750; color: var(--text); cursor: pointer; white-space: nowrap; }
.fs-btn b { font-size: 20px; font-weight: 900; line-height: 1; }
.fs-btn:hover { border-color: var(--text); }
.fs-btn[aria-pressed=true] { background: var(--text); color: #fff; border-color: var(--text); }

main { padding-top: 28px; padding-bottom: 64px; min-height: 70vh; }
.crumb { margin: 0 0 4px; color: var(--muted); font-size: 16px; }
.crumb a { color: var(--text-2); }

/* ── 바닥글 ── */
.foot { color: #cfcac0; background: #1b1c20; font-size: 15.5px; padding: 0; max-width: none; }
.foot::before { content: ""; display: block; height: 6px; background: var(--spectrum); }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 36px 20px 44px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot b { color: #fff; font-size: 19px; display: block; margin-bottom: 4px; }
.foot p { margin: 0; }
.foot .help { color: #fff; font-weight: 700; }

/* ── 카드 ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(40,30,10,.04); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* 과정 목록 (첫 화면) */
.hello { position: relative; overflow: hidden; background: linear-gradient(120deg, #1f5fc7 0%, #2a74df 55%, #3b8be6 100%); color: #fff; border-radius: 24px;
  padding: clamp(28px, 4vw, 44px); margin: 0 0 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.hello::before { content: ""; position: absolute; right: -80px; top: -110px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.1); }
.hello::after { content: ""; position: absolute; right: 160px; bottom: -150px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.07); }
.hello > * { position: relative; z-index: 1; }
.hello h1 { margin: 0 0 6px; color: #fff; }
.hello p { margin: 0; font-size: 19px; color: #e7efff; }
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; padding: 14px 20px; min-width: 120px; }
.stat b { display: block; font-size: 30px; font-weight: 900; line-height: 1.15; }
.stat span { font-size: 15.5px; color: #e7efff; font-weight: 600; }
.sec-title { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 900; margin: 8px 0 18px; }
.sec-title::before { content: ""; width: 7px; height: 1.05em; border-radius: 4px; background: var(--brand); }

.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.course { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; transition: box-shadow .18s, transform .18s; }
.course:hover { text-decoration: none; box-shadow: 0 24px 46px -24px rgba(30,40,70,.35); transform: translateY(-4px); }
.course-head { position: relative; padding: 24px 26px 22px; background: var(--c-t, var(--brand-t)); border-bottom: 1px solid var(--line); }
.course-icon { width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--c, var(--brand)); display: grid; place-items: center; font-size: 28px; box-shadow: 0 6px 16px -10px rgba(0,0,0,.35); margin-bottom: 14px; }
.course-top { display: flex; justify-content: space-between; gap: .5em; align-items: start; }
.course h2 { margin: 0; font-size: 23px; line-height: 1.4; color: var(--text); }
.course-head .badge.live { position: absolute; right: 20px; top: 22px; }
.course-body { padding: 20px 26px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.course-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; color: var(--text-2); font-size: 16.5px; font-weight: 600; margin: 0; }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta .ico { color: var(--muted); }
.prog-line { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 16px; color: var(--muted); font-weight: 600; }
.prog-line b { font-size: 22px; color: var(--c, var(--brand)); font-weight: 900; }
.course .bar { height: 12px; margin: 6px 0 14px; }
.course .bar span { background: var(--c, var(--brand)); }
.course .go { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: 14px;
  background: var(--c, var(--brand)); color: #fff; font-weight: 800; font-size: 18px; }
.course.done .go { background: var(--ok); }
.courses > .course:nth-child(4n+1) { --c: #1f5fc7; --c-t: #e8f0fc; }
.courses > .course:nth-child(4n+2) { --c: #d0461f; --c-t: #fdeee7; }
.courses > .course:nth-child(4n+3) { --c: #1f8a4c; --c-t: #e3f4ea; }
.courses > .course:nth-child(4n+4) { --c: #8a4fc2; --c-t: #f2eafb; }
.desc { white-space: normal; max-width: 70ch; }
.empty-box { text-align: center; padding: 56px 24px; }
.empty-box .ico { width: 56px; height: 56px; color: var(--muted); margin-bottom: 8px; }

/* 과정 상세 */
.course-hero { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3.4vw, 36px); margin-bottom: 22px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.course-hero h1 { margin: 6px 0 8px; }
.course-hero .desc { color: var(--text-2); margin: 10px 0 0; }
.teacher { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-2); padding: 6px 14px; border-radius: 99px; font-size: 16.5px; font-weight: 700; color: var(--text-2); }
.ring { --p: 0; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: conic-gradient(var(--ok) calc(var(--p) * 1%), #ebe6dc 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: #fff; }
.ring div { position: relative; line-height: 1.2; }
.ring b { display: block; font-size: 34px; font-weight: 900; color: var(--text); }
.ring span { font-size: 15px; color: var(--muted); font-weight: 650; }

.lec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lec { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.lec.is-live { border: 2px solid var(--live); box-shadow: 0 10px 26px -16px var(--live); }
.lec.is-done { background: #fbfefc; }
.lec-no { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; font-weight: 900; background: var(--bg-2); color: var(--text-2); }
.lec.is-done .lec-no { background: var(--ok); color: #fff; }
.lec.is-live .lec-no { background: var(--live); color: #fff; }
.lec-title { font-size: 20px; font-weight: 800; line-height: 1.45; margin: 0 0 6px; }
.lec-info { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; font-size: 16px; color: var(--muted); font-weight: 600; }
.lec-info .bar.sm { width: 140px; height: 10px; }
.lec-act .btn { min-width: 150px; }

.cert-box { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-left: 6px solid var(--line); }
.cert-box h2 { margin-bottom: .3em; display: flex; align-items: center; gap: 10px; } .cert-box p { margin: 0; color: var(--text-2); }
.cert-box.done { border-color: #bfe3cd; border-left-color: var(--ok); background: linear-gradient(90deg, #eefaf2, #fff); }
.cert-box .cert-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--warn-t); color: var(--warn); font-size: 24px; }
.cert-box.done .cert-ico { background: var(--ok-t); color: var(--ok); }

/* ── 입력 양식 ── */
label { display: block; margin-bottom: 18px; font-weight: 750; font-size: 17px; color: var(--text); }
label small { font-weight: 500; color: var(--muted); font-size: 15px; }
input:not([type=checkbox]):not([type=range]):not([type=file]):not([type=radio]), textarea, select {
  display: block; width: 100%; margin-top: 8px; padding: 13px 16px; min-height: 56px; border: 2px solid #d9d1c3; border-radius: 12px;
  font: inherit; font-size: 18px; font-weight: 500; background: #fff; color: var(--text); }
input::placeholder, textarea::placeholder { color: #9a9fa8; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-t); }
input[type=file] { display: block; margin-top: 8px; font-weight: 500; font-size: 16px; }
.row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 12px 0; }
.row label { margin: 0; } .grow { flex: 1; min-width: 200px; }
form.inline { display: inline; }
.auth { max-width: 480px; margin: 20px auto; padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.auth h1 { margin-top: 0; }
.pw-show { display: flex; align-items: center; gap: 8px; margin: -8px 0 18px; font-size: 16px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.pw-show input { width: 22px; height: 22px; accent-color: var(--brand); }
.auth-alt { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; color: var(--text-2); }
.auth-alt .btn { margin-top: 10px; }

/* 로그인 화면: 왼쪽 안내 + 오른쪽 양식 */
.auth-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 8px; }
.welcome h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.25; margin: 10px 0 16px; display: block; }
.welcome h1 em { font-style: normal; color: var(--brand); }
.welcome > p { font-size: 20px; color: var(--text-2); margin: 0 0 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; color: var(--brand); letter-spacing: .04em; }
.eyebrow::before { content: ""; width: 28px; height: 5px; border-radius: 3px; background: var(--spectrum); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.steps .n { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.steps li:nth-child(1) .n { background: var(--brand-t); color: var(--brand); }
.steps li:nth-child(2) .n { background: var(--orange-t); color: var(--orange); }
.steps li:nth-child(3) .n { background: var(--ok-t); color: var(--ok); }
.steps b { display: block; font-size: 19px; }
.steps span { color: var(--muted); font-size: 16px; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; background: var(--brand); color: #fff; border: 2px solid transparent;
  border-radius: 14px; min-height: 52px; padding: 12px 24px; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--brand-d); text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(23,74,158,.8); }
.btn:disabled { background: #c9ccd3; color: #fff; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.sm { min-height: 44px; padding: 8px 16px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; min-height: 60px; font-size: 20px; }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--line); } .btn.ghost:hover { background: var(--bg-2); box-shadow: none; }
.btn.danger { background: #fff; color: var(--err); border-color: #f0c9c9; } .btn.danger:hover { background: #fdf0f0; box-shadow: none; }
.btn.live { background: var(--live); } .btn.live:hover { background: #c41d25; box-shadow: 0 10px 20px -12px var(--live); }
.btn.ok { background: var(--ok); } .btn.ok:hover { background: #18723e; }
button.link { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; padding: 0; }

.flash { padding: 16px 20px; border-radius: 14px; margin-bottom: 18px; background: #eaf6ef; color: #17643a; border: 1px solid #c6e8d3; font-weight: 650; font-size: 17.5px; }
.flash.err { background: #fdf0f0; color: #9b2525; border-color: #f2cccc; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 800; padding: 4px 12px; border-radius: 99px; background: #eeeae3; color: var(--text-2); vertical-align: middle; white-space: nowrap; line-height: 1.4; }
.badge.gray { background: var(--orange-t); color: var(--warn); }
.badge.live { background: var(--live); color: #fff; animation: pulse 1.6s infinite; }
.badge.blue { background: var(--brand-t); color: var(--brand); } .badge.ok { background: var(--ok-t); color: var(--ok); }
.badge.amber { background: var(--warn-t); color: var(--warn); } .badge.red { background: var(--err-t); color: var(--err); }
h1 .badge { font-size: 16px; letter-spacing: 0; }
@keyframes pulse { 50% { opacity: .7; } }

.bar { height: 10px; background: #ebe6dc; border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bar.sm { height: 8px; width: 100px; display: inline-block; margin: 0 6px 0 0; vertical-align: middle; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { font-size: 15.5px; color: var(--muted); font-weight: 700; background: #faf7f2; }
.tbl tr:last-child td { border-bottom: 0; }
.scroll-x { overflow-x: auto; }

/* ── 관리자 ── */
.admin-nav { margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.lecture-admin .la-head { display: flex; justify-content: space-between; align-items: center; gap: 1em; flex-wrap: wrap; }
.stream-box { background: #faf7f2; border: 1.5px dashed var(--line); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.stream-box > div { margin: 6px 0; display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
.stream-box .lbl { width: 80px; color: var(--muted); font-size: .88em; }
code.copy { background: #fff; border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; cursor: pointer; position: relative; word-break: break-all; font-size: .9em; }
code.copy.secret { color: transparent; text-shadow: 0 0 7px rgba(0,0,0,.55); user-select: none; }
code.copy[data-copied]::after { content: attr(data-copied); position: absolute; left: 100%; margin-left: 8px; color: var(--ok); font-size: .8em; white-space: nowrap; }
details summary { cursor: pointer; font-weight: 650; }
details[open] summary { margin-bottom: 8px; }

/* ── 영상 플레이어 (버튼을 크게) ── */
.player { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; max-height: 74vh; width: 100%; outline: none; box-shadow: 0 24px 50px -28px rgba(0,0,0,.6); }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player:fullscreen { border-radius: 0; max-height: none; }
.controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; opacity: 1; transition: opacity .25s; }
.player:not(:hover) video:not([paused]) ~ .controls { opacity: .94; }
.ctl { background: rgba(255,255,255,.14); border: 0; color: #fff; font-size: 20px; font-weight: 800; cursor: pointer; padding: 0 10px; min-width: 48px; height: 48px; border-radius: 12px; }
.ctl:hover { background: rgba(255,255,255,.28); color: #fff; }
#btn-play { min-width: 60px; height: 52px; background: var(--brand); font-size: 22px; }
#btn-play:hover { background: #2f74e0; }
.timeline { position: relative; flex: 1; height: 12px; background: rgba(255,255,255,.25); border-radius: 99px; cursor: pointer; }
.tl-played { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.3); border-radius: 99px; }
.tl-watched i { position: absolute; top: 0; bottom: 0; background: #5f9bff; border-radius: 99px; }
.tl-head { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(95,155,255,.55); }
.time { font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 700; white-space: nowrap; }
.live-tag { color: #fff; background: var(--live); font-weight: 800; font-size: 14px; padding: 4px 10px; border-radius: 6px; }
.player.is-live .timeline { visibility: hidden; }
#vol { width: 90px; accent-color: #fff; }
.overlay { position: absolute; inset: 0; background: rgba(10,14,25,.85); color: #fff; display: grid; place-items: center; text-align: center; padding: 24px; z-index: 3; }
.overlay p { font-size: 20px; max-width: 34em; margin: 0 0 18px; line-height: 1.6; }
.toast { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); background: rgba(20,24,35,.9); color: #fff; padding: 12px 20px;
  border-radius: 12px; font-size: 17px; font-weight: 600; z-index: 4; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.watch-info { margin-top: 20px; }
.my-prog { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 20px; }
.my-prog > b { font-size: 20px; }
#pct { font-size: 22px; font-weight: 900; color: var(--brand); }
#state { font-size: 16px; }
.rules { margin: 14px 0 0; padding: 16px 18px 16px 2.2em; background: #faf7f2; border-radius: 12px; font-size: 16.5px; color: var(--text-2); }
.rules li { margin: 4px 0; }
.watch-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ── 수료증 진위 확인 ── */
.verify { max-width: 600px; margin: 30px auto; text-align: center; }
.verify .seal { font-size: 52px; line-height: 1; }
.verify dl { display: grid; grid-template-columns: 7em 1fr; gap: 10px 14px; text-align: left; margin: 22px 0 0; }
.verify dt { color: var(--muted); } .verify dd { margin: 0; font-weight: 700; }

/* ── 가입 동의 ── */
.consent { background: #faf7f2; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 4px 0 20px; }
.consent .tbl th { width: 6.5em; vertical-align: top; background: none; } .consent .tbl td, .consent .tbl th { padding: 8px 6px; font-size: 15.5px; }
label.check { display: flex; gap: .6em; align-items: center; margin: 0 0 8px; font-weight: 600; cursor: pointer; font-size: 17.5px; }
label.check input { width: 26px; height: 26px; flex-shrink: 0; accent-color: var(--brand); }
h1 .btn { font-size: 16px; font-weight: 750; min-height: 44px; padding: 8px 16px; }
.upload-prog { flex-basis: 100%; } .upload-prog .bar { margin: 4px 0; }

/* 수료증 설정 */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
fieldset.cert-fields { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 4px; margin: 4px 0 16px; }
fieldset.cert-fields legend { font-weight: 800; font-size: .95em; padding: 0 6px; }
.asset-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.asset-row img { max-height: 70px; max-width: 220px; border: 1px dashed var(--line); border-radius: 6px; padding: 4px; background: repeating-conic-gradient(#f3f4f7 0 25%, #fff 0 50%) 0 0/14px 14px; }

/* 비메오 */
.live-ctl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.player .shield { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.player .shield[hidden] { display: none; }
.player.vimeo .controls { z-index: 2; }
.player.vimeo-live { aspect-ratio: 16/9; }
.tbl.vpick img { width: 96px; height: 54px; object-fit: cover; border-radius: 4px; display: block; background: #eee; }
.tbl.vpick td:first-child { width: 28px; }

/* ── 화면 폭에 따라 ── */
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .welcome .steps { display: none; }
  .welcome > p { margin-bottom: 0; }
  .course-hero { grid-template-columns: 1fr; }
  .ring { width: 120px; height: 120px; } .ring b { font-size: 28px; }
}
@media (max-width: 720px) {
  body { font-size: 17.5px; }
  .wrap { padding: 0 16px; }
  .top-in { min-height: 0; gap: 6px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 8px; }
  .logo { font-size: 20px; white-space: nowrap; } .logo-mark { width: 36px; height: 36px; font-size: 19px; }
  nav { width: 100%; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a { padding: 8px 12px; font-size: 16.5px; white-space: nowrap; flex-shrink: 0; } nav button.link { white-space: nowrap; padding: 8px 10px; }
  nav form.inline { flex-shrink: 0; } .fs-btn { margin-left: auto; flex-shrink: 0; }
  .who, .fs-btn span { display: none; }
  .fs-btn { height: 42px; padding: 0 12px; }
  main { padding-top: 18px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .card { padding: 22px 18px; }
  .hello { border-radius: 20px; }
  .card.course { padding: 0; }
  .stat-row { width: 100%; flex-wrap: nowrap; gap: 8px; }
  .stat { flex: 1; min-width: 0; padding: 12px; } .stat b { font-size: 26px; } .stat span { font-size: 14px; white-space: nowrap; }
  .courses { grid-template-columns: 1fr; }
  .lec { grid-template-columns: 44px 1fr; gap: 12px 14px; padding: 18px 16px; }
  .lec-no { width: 44px; height: 44px; font-size: 18px; }
  .lec-act { grid-column: 1 / -1; }
  .lec-act .btn { width: 100%; }
  .lec-title { font-size: 18.5px; }
  .cert-box .btn { width: 100%; }
  .tbl.lectures th:nth-child(4), .tbl.lectures td:nth-child(4) { display: none; }
  #vol { display: none; }
  .controls { gap: 8px; padding: 30px 10px 10px; }
  .ctl { min-width: 44px; height: 44px; font-size: 18px; } #btn-play { min-width: 52px; height: 48px; }
  .time { font-size: 14px; }
  .player { aspect-ratio: 16/10; border-radius: 14px; }
  .foot-in { padding: 28px 16px 36px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
