:root {
  color-scheme: light;
  --accent: #111111;
  --accent-dark: #000000;
  --primary: var(--accent);
  --primary-dark: var(--accent-dark);
  --primary-soft: #f2f2f2;
  --primary-line: #c8c8c8;
  --green: #111111;
  --green-soft: #f2f2f2;
  --blue: #111111;
  --blue-soft: #f2f2f2;
  --orange: #111111;
  --orange-soft: #f2f2f2;
  --ink: #111111;
  --text: #2a2a2a;
  --muted: #8c8c8c;
  --line: #e6e6e6;
  --line-strong: #cfcfcf;
  --bg: #eef0f2;
  --bg-soft: #f7f7f7;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --danger: #d62d2d;
  --warn: #111111;
  --ok: #111111;
  --radius: 2px;
  --top-h: 68px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, .07);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .1);
  --glow: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; letter-spacing: -.01em;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.hidden { display: none !important; }
.green { color: var(--accent); }
.orange { color: var(--orange); }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); font-weight: 600; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 22px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.015em; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); transition: color .15s; }
.more-link svg { width: 14px; height: 14px; }
.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 2px; border: 1px solid transparent;
  font-weight: 500; font-size: 14.5px; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: #333; }
.btn-brick { background: #8b1e1e; }
.btn-brick:hover { background: #6e1616; }
.btn-soft { background: var(--primary-soft); color: var(--accent); }
.btn-soft:hover { background: #e6e6e6; }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-danger { background: var(--surface); border-color: #fbd0d0; color: var(--danger); }
.btn-danger:hover { background: #fef0f0; }
.btn-sm { height: 38px; padding: 0 15px; font-size: 13.5px; border-radius: 2px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 2px; }
.btn-block { width: 100%; }
.btn-pill { border-radius: 2px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ── Header (상단 메뉴) ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 20px -14px rgba(0, 0, 0, .25); }
.nav { display: flex; align-items: center; gap: 28px; height: var(--top-h); }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 32px; height: 32px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; }
.logo-text small { font-size: 9px; color: var(--muted); letter-spacing: .14em; font-weight: 600; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 2px; height: 100%; }
.nav-links a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 12px; font-size: 14.5px; color: var(--text); white-space: nowrap; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.on { color: var(--ink); font-weight: 600; }
.nav-links a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-actions .link { font-weight: 500; font-size: 14px; color: var(--text); white-space: nowrap; }
.nav-actions .link:hover { color: var(--ink); }
.menu-toggle { display: none; background: var(--surface); border: 1px solid var(--line); cursor: pointer; width: 40px; height: 40px; border-radius: 2px; place-items: center; flex-shrink: 0; margin-left: auto; }
.menu-toggle svg { width: 20px; height: 20px; }

/* ── 우측 학습 분야 플로팅 메뉴 ── */
.cat-float { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cf-list { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 6px; }
.cf-label { margin: 2px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-align: center; white-space: nowrap; }
.cf-list a { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); transition: background .15s, color .15s; }
.cf-list a svg { width: 19px; height: 19px; }
.cf-list a:hover, .cf-list a.on { background: var(--ink); color: #fff; }
.cf-list a span { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; padding: 7px 11px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.cf-list a:hover span { opacity: 1; transform: translate(0, -50%); }
.cf-toggle { display: none; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 0; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: var(--shadow-lg); }
.cf-toggle svg { width: 18px; height: 18px; }
.search {
  display: flex; align-items: center; height: 44px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--surface-2); flex: 1; max-width: 300px; margin-left: auto; overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--primary-line); box-shadow: 0 0 0 4px rgba(0, 0, 0, .08); }
.search svg { width: 17px; height: 17px; color: var(--muted); margin-left: 14px; flex-shrink: 0; }
.search input { border: 0; outline: 0; padding: 0 10px; flex: 1; width: 0; min-width: 0; height: 100%; font-size: 14px; background: transparent; }
.search input::placeholder { color: var(--muted); }
.search select { border: 0; outline: 0; background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 12.5px; height: 32px; margin-right: 6px; border-radius: 2px; padding: 0 8px; cursor: pointer; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 2px; }
.user-btn .nm { font-weight: 600; font-size: 14px; }
.user-btn > svg { width: 16px; height: 16px; color: var(--muted); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--primary-soft); color: var(--accent); font-weight: 700; font-size: 13px;
}
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); background: var(--surface); border: 1px solid var(--line); border-radius: 2px;
  box-shadow: var(--shadow-lg); min-width: 230px; padding: 8px; display: none; z-index: 70;
}
.dropdown.open { display: block; }
.dropdown .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown .who b { display: block; font-size: 14px; }
.dropdown .who small { color: var(--muted); font-size: 12px; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 2px; font-size: 14px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--text); }
.dropdown a:hover, .dropdown button:hover { background: var(--primary-soft); color: var(--accent); }
.dropdown svg { width: 16px; height: 16px; }
.role-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 2px; background: var(--primary-soft); color: var(--accent); }
.role-badge.admin { background: var(--orange-soft); color: var(--orange); }
main { padding: 28px 0 40px; }

/* ── Home: bento dashboard ── */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; padding-top: 8px; }
.bento > .card { padding: 26px; }
.welcome { grid-column: span 8; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 34px !important; }
.pill-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); background: transparent; padding: 0; border-radius: 2px; }
.pill-badge em { font-style: normal; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 2px; }
.welcome h1 { font-size: 34px; line-height: 1.3; letter-spacing: -.025em; margin: 18px 0 14px; font-weight: 600; }
.grad-text { color: var(--ink); font-weight: 400; }
.welcome .lead { color: var(--text); font-size: 14.5px; margin: 0 0 24px; line-height: 1.7; }
.hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.welcome-art { position: relative; background: var(--surface-2); border: 0; border-radius: 2px; padding: 18px 18px 14px; }
.wa-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wa-head b { font-size: 14px; letter-spacing: -.02em; }
.wa-head > span { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--ink); border: 1px solid var(--line-strong); background: #fff; border-radius: 2px; padding: 3px 8px; }
.wa-head > span svg { width: 12px; height: 12px; }
.welcome-art svg { display: block; width: 100%; height: 170px; }
.wa-tip { position: absolute; left: 69%; top: 46%; transform: translate(-50%, -100%); background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 2px; white-space: nowrap; }
.wa-tip::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--ink); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.wa-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 8px; }
.cat-card { grid-column: span 4; }
.cat-total small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.cat-total b { font-size: 32px; letter-spacing: -.025em; line-height: 1.2; }
.cat-list { margin-top: 12px; display: flex; flex-direction: column; }
.cat-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); transition: color .15s; }
.cat-row:first-child { border-top: 0; }
.cat-row .ic { width: 30px; height: 30px; border-radius: 2px; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.cat-row .ic svg { width: 17px; height: 17px; }
.cat-row .nm { flex: 1; font-size: 14px; font-weight: 600; }
.cat-row b { font-size: 14px; font-variant-numeric: tabular-nums; }
.cat-row > svg { width: 15px; height: 15px; color: var(--muted); transition: transform .15s, color .15s; }
.cat-row:hover .nm { text-decoration: underline; text-underline-offset: 4px; }
.cat-row:hover > svg { transform: translateX(3px); color: var(--ink); }
.kpis { grid-column: span 12; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.kpi { padding: 22px 24px; display: flex; align-items: center; gap: 16px; }
.kpi small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.kpi b { font-weight: 500; font-size: 30px; letter-spacing: -.025em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi-ic { width: 48px; height: 48px; border-radius: 2px; display: grid; place-items: center; flex-shrink: 0; }
.kpi-ic svg { width: 22px; height: 22px; }
.kpi-ic.c1 { background: var(--primary-soft); color: var(--accent); }
.kpi-ic.c2 { background: var(--green-soft); color: var(--green); }
.kpi-ic.c3 { background: var(--blue-soft); color: var(--blue); }
.kpi-ic.c4 { background: var(--orange-soft); color: var(--orange); }
.table-card { grid-column: span 8; }
.sec-card { grid-column: span 4; display: flex; flex-direction: column; }
.sec-list { display: flex; flex-direction: column; gap: 16px; }
.sec-list > div { display: flex; gap: 14px; align-items: flex-start; }
.sec-list .kpi-ic { width: 40px; height: 40px; border-radius: 2px; }
.sec-list .kpi-ic svg { width: 19px; height: 19px; }
.sec-list p { margin: 0; }
.sec-list b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.sec-list small { display: block; font-size: 12.5px; color: var(--text); line-height: 1.5; margin-top: 2px; }
.std-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 20px; }
.std-chips span { font-size: 11px; font-weight: 600; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); padding: 3px 9px; border-radius: 2px; }
.bento > .wide { grid-column: span 12; }
.course-tbl td { padding: 12px; white-space: nowrap; }
.course-tbl td:first-child { white-space: normal; }
.course-tbl tbody tr { cursor: pointer; }
.tbl-course { display: flex; align-items: center; gap: 12px; font-weight: 600; min-width: 220px; }
.tbl-course .th { width: 54px; height: 38px; border-radius: 2px; overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.tbl-course .th svg, .tbl-course .th img { width: 100%; height: 100%; object-fit: cover; }
.tbl-course > span:last-child { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tbl .r { text-align: right; }

/* ── Course cards ── */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.course-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.course-card:hover { box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.course-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.wide .course-card { background: var(--bg-soft); box-shadow: none; }
.thumb { position: relative; border-radius: 0; overflow: hidden; aspect-ratio: 16 / 9; background: #e4e4e4; }
.thumb.has-img { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
/* 업로드 이미지(PPT 슬라이드 등)는 잘리지 않도록 전체를 표시 */
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb .art { position: absolute; inset: 0; }
.thumb .art svg { width: 100%; height: 100%; }
.thumb .badge-time {
  position: absolute; left: 10px; bottom: 10px; background: #fff; color: var(--ink); font-size: 11.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 2px; display: flex; align-items: center; gap: 5px; backdrop-filter: blur(6px);
}
.thumb .badge-time svg { width: 13px; height: 13px; }
.course-body { padding: 16px 8px 4px; display: flex; flex-direction: column; flex: 1; }
.course-cat { color: var(--ink); font-weight: 700; font-size: 11px; letter-spacing: .04em; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.level { font-size: 10.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); background: transparent; border: 1px solid var(--line); padding: 2px 8px; border-radius: 2px; }
.course-title { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.course-title h3 { margin: 0 0 8px; font-weight: 500; font-size: 18px; line-height: 1.4; letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.course-title svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--muted); }
.course-desc { color: var(--text); font-size: 13.5px; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.course-meta span { display: flex; align-items: center; gap: 5px; }
.course-meta svg { width: 14px; height: 14px; }
.course-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tutor { display: flex; align-items: center; gap: 10px; }
.tutor .avatar { width: 30px; height: 30px; font-size: 12px; }
.tutor b { display: block; font-size: 13px; line-height: 1.2; font-weight: 600; }
.tutor small { color: var(--muted); font-size: 12px; }
.price { color: var(--ink); font-weight: 500; font-size: 18px; letter-spacing: -.02em; }

/* ── Generic page ── */
.page { padding-top: 8px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-title { font-size: 34px; line-height: 1.25; letter-spacing: -.025em; margin: 0 0 8px; font-weight: 600; }
.page-intro p { margin: 0; color: var(--text); }
.count-pill { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); padding: 6px 14px; border-radius: 2px; white-space: nowrap; }
.toolbar { padding: 14px 16px; margin-bottom: 20px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { height: 38px; padding: 0 16px; border-radius: 2px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 13.5px; transition: .15s; color: var(--text); }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters .search { margin-left: auto; max-width: 300px; min-width: 240px; background: var(--surface-2); border-color: transparent; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.empty svg { width: 40px; height: 40px; margin-bottom: 12px; color: var(--line-strong); }

/* 섹션형 페이지(소개·문의)를 카드 레이아웃으로 */
.section, .page-hero { padding: 8px 0 20px; }
.section-soft { background: transparent; }
.section-head { margin: 24px 0 20px; }
.section-head h2 { font-size: 28px; line-height: 1.3; letter-spacing: -.025em; margin: 0; font-weight: 500; }
.section-head p { color: var(--text); margin: 6px 0 0; }
.page-hero .page-title { font-size: 40px; }
.page-hero p { color: var(--text); }

/* ── Program detail ── */
.detail-hero { padding: 8px 0 20px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.detail-hero .detail-grid > div:first-child { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; align-self: stretch; display: flex; flex-direction: column; }
.detail-hero h1 { font-weight: 600; font-size: 36px; line-height: 1.28; letter-spacing: -.025em; margin: 6px 0 12px; }
.detail-hero .sub { color: var(--text); font-size: 16px; margin: 0 0 22px; }
/* 상단 정보: 제목은 위, 핵심 수치는 카드 아래에 붙여 빈 공간이 생기지 않게 */
.hero-stats { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-stats > * { padding: 2px 16px; border-left: 1px solid var(--line); min-width: 0; color: inherit; }
.hero-stats > :first-child { padding-left: 0; border-left: 0; }
.hero-stats small { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.hero-stats small svg { width: 14px; height: 14px; }
.hero-stats b { display: block; font-size: 18px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stats a:hover b { text-decoration: underline; }
.detail-hero .sub { margin-bottom: 22px; }
.hero-feats { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--text); }
.hero-feats li { display: flex; align-items: center; gap: 7px; }
.hero-feats svg { width: 15px; height: 15px; color: var(--ink); flex-shrink: 0; }
.side-card { background: var(--surface); color: var(--ink); border-radius: var(--radius); border: 1px solid var(--line); padding: 18px; position: relative; margin-bottom: 0 !important; }
.side-card .thumb { margin-bottom: 18px; }
.side-card .price { font-size: 28px; margin-bottom: 14px; display: block; }
.side-card ul { list-style: none; padding: 0; margin: 16px 0 4px; font-size: 13.5px; color: var(--text); }
.side-card li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.side-card li svg { width: 16px; height: 16px; color: var(--ink); }
.side-card .price del { font-size: 18px; margin-right: 6px; }
.promo-box { display: flex; gap: 8px; margin-bottom: 8px; }
.promo-box .input { flex: 1; min-width: 0; height: 40px; text-transform: uppercase; }
.promo-msg { font-size: 13px; margin: 0 0 10px; }
.promo-msg.ok { color: var(--ink); font-weight: 600; }
.promo-msg.bad { color: var(--danger); }
.status-box { border-radius: 2px; padding: 12px 14px; font-size: 14px; margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.status-box svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.status-box.ok { background: var(--green-soft); color: var(--green); }
.status-box.wait { background: var(--orange-soft); color: var(--orange); }
.status-box.bad { background: #fef0f0; color: var(--danger); }
.status-box small { color: var(--text); }
.detail-body { padding: 0 0 20px; }
.detail-body .detail-grid { grid-template-columns: minmax(0, 1fr); }
.detail-body .detail-grid > div:first-child { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.detail-body .detail-grid > div:empty { display: none; }
.detail-body .detail-grid > div:first-child h2 { font-weight: 500; font-size: 22px; margin: 0 0 14px; letter-spacing: -.015em; }
.prose { color: var(--text); white-space: pre-line; margin-bottom: 36px; font-size: 15px; line-height: 1.8; }
.curriculum { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.cur-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); transition: background .15s; }
.cur-item:hover { background: var(--bg-soft); }
.cur-item:last-child { border-bottom: 0; }
.cur-item .no { width: 36px; height: 36px; border-radius: 2px; background: var(--primary-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.cur-item .no svg { width: 16px; height: 16px; }
.cur-item.done .no { background: var(--accent); color: #fff; }
.cur-item .info { flex: 1; min-width: 0; }
.cur-item .info b { display: block; font-size: 14.5px; font-weight: 600; }
.cur-item .info small { color: var(--muted); font-size: 12.5px; }
.views { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-soft); border-radius: 2px; padding: 3px 10px; white-space: nowrap; }
.views svg { width: 13px; height: 13px; }
.views.zero { color: var(--danger); background: #fef0f0; }
.instructor-card { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 2px; margin-top: 28px; background: var(--surface-2); }
.instructor-card .avatar { width: 54px; height: 54px; font-size: 20px; background: var(--surface); }

/* ── Watch ── */
.watch-page { padding: 8px 0 20px; color: var(--ink); user-select: none; -webkit-user-select: none; }
.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumb a:hover { color: var(--accent); }
.player { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; display: block; background: #000; pointer-events: none; }
.player:fullscreen { border-radius: 0; aspect-ratio: auto; }
.wm-fixed {
  position: absolute; top: 14px; right: 16px; z-index: 6; pointer-events: none;
  color: rgba(255, 255, 255, .82); font-size: 14px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
  background: rgba(0, 0, 0, .28); padding: 5px 11px; border-radius: 2px; letter-spacing: .01em;
}
.wm-fixed small { font-weight: 500; opacity: .85; margin-left: 6px; font-size: 12px; }
.player-gate, .player-shield {
  position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 12px;
}
.player-gate { background: #141414; }
.player-gate h3 { margin: 0; font-size: 22px; color: #fff; letter-spacing: -.015em; }
.player-gate p { margin: 0; color: #b0b3c8; font-size: 14px; max-width: 460px; }
.player-gate .big-play { width: 76px; height: 76px; border-radius: 50%; background: #fff; border: 0; cursor: pointer; display: grid; place-items: center; margin-bottom: 6px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .12); transition: transform .2s; }
.player-gate .big-play:hover { transform: scale(1.06); }
.player-gate .big-play svg { width: 30px; height: 30px; color: #111; margin-left: 4px; }
/* 시청 완료 후: 다음 강의는 크게, 같은 회차 다시 보기는 작게 */
.player-gate .next-lecture { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-decoration: none; }
.player-gate .next-lecture small { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: #b0b3c8; letter-spacing: .02em; }
.player-gate .next-lecture small svg { width: 16px; height: 16px; }
.player-gate .next-lecture b { font-size: 26px; line-height: 1.3; letter-spacing: -.02em; max-width: 640px; }
.player-gate .next-lecture:hover b { text-decoration: underline; text-underline-offset: 4px; }
.player-gate .rewatch-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; background: none; border: 0; padding: 4px 6px; font-size: 12.5px; color: #8d90a8; cursor: pointer; }
.player-gate .rewatch-link svg { width: 13px; height: 13px; }
.player-gate button.rewatch-link:hover { color: #fff; text-decoration: underline; }
.player-gate .rewatch-link.off { cursor: default; }
@media (max-width: 640px) { .player-gate .next-lecture b { font-size: 19px; } }
.player-gate .counter { display: flex; gap: 6px; margin: 4px 0 6px; }
.player-gate .counter i { width: 34px; height: 6px; border-radius: 3px; background: #272a45; }
.player-gate .counter i.used { background: #585b78; }
.player-gate .counter i.free { background: #fff; }
.player-shield { background: rgba(10, 8, 20, .94); backdrop-filter: blur(24px); z-index: 9; }
.player-shield svg { width: 44px; height: 44px; color: #ffb547; }
.player-shield h3 { margin: 0; color: #fff; }
.player-shield p { margin: 0; color: #b0b3c8; font-size: 14px; }
.player.blackout video { filter: brightness(0); }
.controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .82)); transition: opacity .25s; display: flex; flex-direction: column; gap: 8px;
}
.player.idle .controls { opacity: 0; }
.player.idle { cursor: none; }
.ctrl-row { display: flex; align-items: center; gap: 8px; }
.ctrl-row .spacer { flex: 1; }
.cbtn { background: none; border: 0; color: #fff; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; border-radius: 2px; position: relative; }
.cbtn:hover { background: rgba(255, 255, 255, .14); }
.cbtn svg { width: 20px; height: 20px; }
.cbtn small { position: absolute; font-size: 8px; font-weight: 600; top: 13px; }
.time { font-size: 13px; color: #dfe5f2; font-variant-numeric: tabular-nums; margin-left: 4px; }
.seek { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); outline: none; cursor: pointer; }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.vol { width: 80px; height: 4px; background: linear-gradient(to right, #fff var(--v, 50%), rgba(255, 255, 255, .25) var(--v, 50%)); }
.speed { background: rgba(255, 255, 255, .12); border: 0; color: #fff; border-radius: 2px; height: 30px; padding: 0 6px; font-size: 13px; cursor: pointer; }
.speed option { color: #000; }
.watch-info { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.watch-info h1 { font-size: 22px; margin: 4px 0 8px; letter-spacing: -.015em; color: var(--ink); }
.watch-info p { color: var(--text); margin: 0; }
.notice { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; font-size: 13px; color: var(--text); }
.notice b { color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.notice b svg { width: 17px; height: 17px; color: var(--accent); }
.notice ul { margin: 0; padding-left: 18px; }
.notice li { margin: 3px 0; }
.playlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: calc(var(--top-h) + 20px); }
.playlist-head { padding: 20px; border-bottom: 1px solid var(--line); }
.playlist-head b { color: var(--ink); display: block; }
.playlist-head small { color: var(--muted); }
.progress-bar { height: 6px; border-radius: 2px; background: var(--primary-soft); overflow: hidden; margin-top: 12px; }
.progress-bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.playlist-items { max-height: 560px; overflow-y: auto; padding: 8px; }
.pl-item { display: flex; gap: 12px; padding: 11px 12px; border-radius: 2px; align-items: center; transition: background .15s; }
.pl-item:hover { background: var(--surface-2); }
.pl-item.on { background: var(--surface-2); color: var(--ink); box-shadow: inset 2px 0 0 var(--ink); }
.pl-item.on .t small { color: var(--muted); }
.pl-item.on .no { background: var(--ink); color: #fff; }
.pl-item .no { width: 30px; height: 30px; border-radius: 2px; background: var(--surface-2); color: var(--text); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.pl-item.done .no { background: var(--primary-soft); color: var(--accent); }
.pl-item .t { flex: 1; min-width: 0; font-size: 14px; }
.pl-item .t small { display: block; color: var(--muted); font-size: 12px; }

.playlist-items::-webkit-scrollbar { width: 6px; }
.playlist-items::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 2px; }

/* ── Forms / Auth ── */
.auth-wrap { width: calc(100% - 64px); max-width: 1136px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; min-height: min(680px, calc(100vh - var(--top-h) - 120px)); }
.auth-art { background: var(--surface-2); position: relative; overflow: hidden; color: var(--ink); padding: 56px; display: flex; flex-direction: column; justify-content: center; margin: 10px; border-radius: 2px; }
.auth-art h2 { font-size: 36px; line-height: 1.25; margin: 0 0 14px; letter-spacing: -.025em; position: relative; }
.auth-art p { color: var(--text); margin: 0; position: relative; max-width: 420px; }
.auth-art ul { list-style: none; padding: 0; margin: 32px 0 0; position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.auth-art li { display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: #fff; border-radius: 2px; color: var(--ink); font-weight: 500; font-size: 14px; }
.auth-art li svg { width: 18px; height: 18px; color: var(--accent); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.auth-form form { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -.025em; }
.auth-form .sub { color: var(--text); margin: 0 0 28px; }
.auth-form .sub a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 7px; color: var(--ink); }
.input, .field input, .field select, .field textarea {
  width: 100%; height: 48px; border: 1px solid var(--line-strong); border-radius: 2px; padding: 0 14px; background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; font-size: 14px; color: var(--ink);
}
.field input[type="file"] { padding: 11px 14px; height: auto; }
.field input[type="checkbox"], .field input[type="radio"] { width: auto; height: auto; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: none; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text); margin: 6px 0 18px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.seg label { border: 1px solid var(--line-strong); border-radius: 2px; padding: 14px; cursor: pointer; font-size: 14px; display: flex; gap: 8px; align-items: flex-start; background: var(--surface); transition: border-color .15s; }
.seg label small { display: block; color: var(--muted); font-size: 12px; }
.seg label:has(input:checked) { border-color: var(--accent); background: var(--primary-soft); }
.seg input { accent-color: var(--accent); margin-top: 4px; }
.form-error { background: #fef0f0; color: var(--danger); border-radius: 2px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.alt { text-align: center; font-size: 14px; color: var(--text); margin-top: 20px; }
.alt a { color: var(--accent); font-weight: 600; }

/* ── Dashboard / tables ── */
.dash { padding: 8px 0 20px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-head h1 { margin: 0; font-size: 28px; letter-spacing: -.025em; }
.dash-head .eyebrow { margin-bottom: 6px; }
.tabs { display: inline-flex; max-width: 100%; gap: 4px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; margin-bottom: 20px; overflow-x: auto; }
.tab { background: none; border: 0; padding: 10px 16px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; border-radius: 2px; white-space: nowrap; display: flex; gap: 6px; align-items: center; transition: color .15s, background .15s; }
.tab:hover { color: var(--ink); }
.tab.on { color: #fff; background: var(--ink); }
.count-badge { background: var(--danger); color: #fff; font-size: 11px; border-radius: 2px; padding: 0 7px; line-height: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 18px; letter-spacing: -.015em; }
.split { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.prog-list { display: flex; flex-direction: column; gap: 8px; }
.prog-item { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; align-items: center; transition: .15s; background: var(--surface); }
.prog-item:hover { border-color: var(--primary-line); }
.prog-item.on { border-color: var(--accent); background: var(--primary-soft); }
.prog-item .thumb { width: 80px; flex-shrink: 0; aspect-ratio: 16 / 9; border-radius: 2px; }
.prog-item .thumb .badge-time { display: none; }
.prog-item b { font-size: 14px; display: block; line-height: 1.35; font-weight: 600; }
.prog-item small { color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .06em; color: var(--ink); font-weight: 700; padding: 10px 12px; white-space: nowrap; background: transparent; border-bottom: 1px solid var(--ink); }
.tbl th:first-child { border-radius: 0; }
.tbl th:last-child { border-radius: 0; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--bg-soft); }
.tbl tr.pending-row td { background: #fff8ee; }
.tbl .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 2px; white-space: nowrap; }
.tag.ok { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag.wait { background: var(--orange-soft); color: var(--orange); }
.tag.bad { background: #fff; color: var(--danger); border-color: #f0c4c4; }
.tag.gray { background: var(--surface-2); color: var(--text); }
.tag.info { background: var(--primary-soft); color: var(--accent); }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow); }
.stat .ic { width: 48px; height: 48px; border-radius: 2px; background: var(--primary-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.stat:nth-child(2) .ic { background: var(--green-soft); color: var(--green); }
.stat:nth-child(3) .ic { background: var(--blue-soft); color: var(--blue); }
.stat:nth-child(4) .ic { background: var(--orange-soft); color: var(--orange); }
.stat .ic svg { width: 22px; height: 22px; }
.stat b { font-size: 28px; display: block; line-height: 1.15; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.stat small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.stat > div { display: flex; flex-direction: column-reverse; }
.my-card { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 22px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 2px; padding: 12px; margin-bottom: 12px; }
.my-card:last-child { margin-bottom: 0; }
.my-card h3 { margin: 4px 0 6px; font-size: 17px; letter-spacing: -.015em; }
.my-card .progress-bar { max-width: 420px; }
.my-card > :last-child { margin-right: 10px; }
.pct { font-size: 13px; color: var(--text); margin-top: 8px; }

/* ── Modal / toast ── */
.modal-bg { position: fixed; inset: 0; background: rgba(23, 23, 31, .4); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 2px; width: 100%; max-width: 620px; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.modal.wide { max-width: 860px; }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 18px; letter-spacing: -.015em; }
.modal-head button { background: var(--surface-2); border: 0; cursor: pointer; padding: 6px; border-radius: 2px; color: var(--muted); }
.modal-head button:hover { color: var(--ink); }
.modal-head svg { width: 18px; height: 18px; display: block; }
.modal-body { padding: 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 24px 24px; }
.upload-progress { height: 6px; background: var(--primary-soft); border-radius: 2px; overflow: hidden; margin-top: 10px; }
.upload-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 2px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: pop .2s ease; max-width: 90vw; }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ink); }

/* ── About / contact ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.container.about-grid { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; max-width: calc(1200px - 64px); width: calc(100% - 64px); }
.about-grid h2 { font-size: 28px; line-height: 1.35; margin: 0 0 16px; letter-spacing: -.025em; }
.about-grid h2[style] { font-size: 28px !important; }
.about-grid p { color: var(--text); line-height: 1.8; }
.collage { position: relative; aspect-ratio: 1 / .82; }
.collage .bg { position: absolute; right: 0; top: 8%; width: 70%; height: 84%; background: var(--surface-2); border-radius: 2px; }
.collage .img { position: absolute; border-radius: 2px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; border: 1px solid var(--line); }
.collage .img svg { width: 100%; height: 100%; display: block; }
.collage .a { right: 0; top: 0; width: 80%; aspect-ratio: 400 / 220; }
.collage .b { left: 0; bottom: 0; width: 80%; aspect-ratio: 400 / 220; }
.feature-art { position: relative; }
.feature-art .img { position: relative; border-radius: 2px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--primary-soft); }
.feature-art .img svg { width: 100%; height: 100%; display: block; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.benefit:hover { box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.benefit .ic { width: 48px; height: 48px; border-radius: 2px; display: grid; place-items: center; margin-bottom: 20px; background: var(--primary-soft) !important; color: var(--accent) !important; }
.benefits .benefit:nth-child(3n+2) .ic { background: var(--green-soft) !important; color: var(--green) !important; }
.benefits .benefit:nth-child(3n) .ic { background: var(--orange-soft) !important; color: var(--orange) !important; }
.benefit .ic svg { width: 22px; height: 22px; }
.benefit h3 { margin: 0 0 8px; font-weight: 500; font-size: 18px; letter-spacing: -.015em; }
.benefit p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.7; }
.contact-zone { position: relative; padding: 8px 0 20px; }
.contact-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; }
.contact-card .title { text-align: left; color: var(--ink); font-size: 28px; font-weight: 600; margin: 0 0 28px; letter-spacing: -.025em; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.contact-info { font-size: 14px; color: var(--text); line-height: 1.8; background: var(--surface-2); border-radius: 2px; padding: 24px; }
.contact-info b { color: var(--ink); font-size: 16px; }
.contact-info .tel { color: var(--ink); font-size: 22px; font-weight: 500; letter-spacing: -.02em; display: inline-block; margin: 12px 0 2px; }
.deco-squares, .dot-grid { display: none; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { padding: 20px 0; font-weight: 500; font-size: 15.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 2px; background: transparent; color: var(--ink); font-size: 20px; font-weight: 300; line-height: 1; }
.faq details[open] summary::after { content: '–'; background: transparent; color: var(--ink); }
.faq details p { margin: 0 0 20px; color: var(--text); line-height: 1.8; }

/* ── Footer ── */
.site-footer { padding: 8px 0 28px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
.container.foot-row { width: calc(100% - 64px); max-width: 1136px; padding-left: 0; padding-right: 0; }
.foot-row nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-row a:hover { color: var(--accent); }
.new-badge { background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 2px; margin-left: 4px; }
.foot-biz { font-size: 12px; color: var(--muted); padding-top: 10px; line-height: 1.7; }
.check a, .faq details p a { text-decoration: underline; text-underline-offset: 2px; }

/* ── 약관 · 개인정보처리방침 · 환불 규정 ── */
.container.policy-wrap { max-width: 920px; }
.policy-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 24px 0 16px; }
.policy-tabs a { padding: 8px 16px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); font-size: 14px; color: var(--text); }
.policy-tabs a:hover { border-color: var(--line-strong); }
.policy-tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.policy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; margin-bottom: 40px; font-size: 15px; line-height: 1.8; color: var(--text); }
.policy-date { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.policy-intro { margin: 0 0 24px; }
.policy-toc { list-style: none; background: var(--bg-soft); border: 1px solid var(--line); padding: 18px 22px; margin: 0 0 12px; font-size: 14px; columns: 2; column-gap: 32px; }
.policy-toc a:hover { color: var(--ink); text-decoration: underline; }
.policy section { scroll-margin-top: calc(var(--top-h) + 16px); }
.policy h2 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 36px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.policy ol, .policy ul { padding-left: 22px; margin: 0 0 12px; }
.policy li { margin: 4px 0; }
.policy p { margin: 0 0 12px; }
.policy a { text-decoration: underline; text-underline-offset: 2px; }
.policy-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; }
.policy-table th, .policy-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.policy-table th { background: var(--bg-soft); font-weight: 600; color: var(--ink); white-space: nowrap; }
.policy-note { background: var(--bg-soft); padding: 12px 14px; font-size: 14px; }
.policy-todo { color: var(--danger); font-weight: 600; }
.policy-biz dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; font-size: 14px; }
.policy-biz dt { color: var(--muted); }
.policy-biz dd { margin: 0; }
@media (max-width: 720px) {
  .policy { padding: 24px 18px; font-size: 14.5px; }
  .policy-toc { columns: 1; }
  .policy-table { display: block; overflow-x: auto; }
  .policy-table th { white-space: normal; }
}

/* ── Responsive ── */
@media (max-width: 1340px) {
  .cat-float { top: auto; bottom: 20px; transform: none; }
  .cf-toggle { display: flex; }
  .cf-list { display: none; min-width: 210px; padding: 8px; }
  .cat-float.open .cf-list { display: flex; }
  .cf-label { text-align: left; padding: 4px 8px 8px; }
  .cf-list a { width: auto; height: 42px; display: flex; justify-content: flex-start; gap: 12px; padding: 0 10px; }
  .cf-list a span { position: static; opacity: 1; transform: none; background: none; color: inherit; padding: 0; font-size: 14px; }
}
@media (max-width: 1280px) {
  .welcome { grid-column: span 12; }
  .cat-card { grid-column: span 6; }
  .sec-card { grid-column: span 6; }
  .table-card { grid-column: span 12; order: 5; }
  .bento > .wide { order: 6; }
}
@media (max-width: 1100px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis, .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { max-width: 300px; }
}
@media (max-width: 1024px) {
  .nav { gap: 16px; }
  .nav-links, .site-header .search, .nav-actions { display: none; }
  .menu-toggle { display: grid; }
  .site-header.menu-open .nav { flex-wrap: wrap; height: auto; padding: 14px 32px 18px; }
  .site-header.menu-open .nav-links { display: flex; flex-direction: column; align-items: stretch; width: 100%; height: auto; order: 3; margin-top: 8px; }
  .site-header.menu-open .nav-links a { height: 44px; padding: 0 4px; border-bottom: 1px solid var(--line); }
  .site-header.menu-open .nav-links a.on::after { display: none; }
  .site-header.menu-open .search { display: flex; order: 4; max-width: none; width: 100%; margin: 12px 0 0; }
  .site-header.menu-open .nav-actions { display: flex; order: 5; width: 100%; margin-top: 12px; }
  .detail-grid, .watch-grid, .about-grid, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .playlist { position: static; }
}
@media (max-width: 760px) {
  :root { --top-h: 60px; }
  .container { padding: 0 16px; }
  .site-header.menu-open .nav { padding: 12px 16px 16px; }
  .user-btn .nm { display: none; }
  main { padding-top: 18px; }
  .auth-wrap { width: calc(100% - 32px); }
  .bento { gap: 14px; }
  .bento > .card { padding: 20px; }
  .welcome { grid-template-columns: minmax(0, 1fr); padding: 24px !important; }
  .welcome h1 { font-size: 26px; }
  .cat-card, .sec-card { grid-column: span 12; }
  .kpis { gap: 14px; }
  .kpi { padding: 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .kpi b { font-size: 22px; }
  .course-grid, .benefits { grid-template-columns: 1fr; }
  .page-intro { flex-direction: column; align-items: flex-start; }
  .filters .search { margin-left: 0; max-width: none; width: 100%; }
  .auth-wrap { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { padding: 32px 24px; }
  .auth-art h2 { font-size: 28px; }
  .auth-form { padding: 32px 20px 40px; }
  .container.about-grid { padding: 24px; width: calc(100% - 32px); }
  .page-hero .page-title { font-size: 32px; }
  .detail-hero .detail-grid > div:first-child, .detail-body .detail-grid > div:first-child { padding: 24px; }
  .detail-hero h1 { font-size: 26px; }
  .hero-stats { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .hero-stats > :nth-child(3) { padding-left: 0; border-left: 0; }
  .contact-card { padding: 24px 20px; }
  .row-2 { grid-template-columns: 1fr; }
  .stat-row { gap: 12px; }
  .stat { padding: 16px; gap: 12px; }
  .stat .ic { width: 40px; height: 40px; }
  .stat b { font-size: 22px; }
  /* 인기 강좌 표: 좁은 화면에서는 강좌명·가격만 표시 */
  .course-tbl th:nth-child(n+2):nth-child(-n+5), .course-tbl td:nth-child(n+2):nth-child(-n+5) { display: none; }
  .tbl-course { min-width: 0; }
  .my-card { grid-template-columns: 1fr; }
  .container.foot-row { width: calc(100% - 32px); }
  .vol { display: none; }
  .controls { padding: 14px 8px 6px; gap: 2px; }
  .cbtn { width: 30px; height: 30px; }
  .cbtn svg { width: 17px; height: 17px; }
  .time { white-space: nowrap; font-size: 11px; }
  .speed { height: 26px; font-size: 12px; }
  .wm-fixed { font-size: 12px; top: 8px; right: 8px; padding: 3px 8px; }
  .wm-fixed small { display: none; }
}
@media print { body { display: none !important; } }

/* ───────── 상단 메뉴: 블랙 배경 + 흰 글자 ───────── */
.site-header { background: #111111; border-bottom-color: #000; }
.site-header.scrolled { box-shadow: 0 6px 20px -14px rgba(0, 0, 0, .6); }
.site-header .logo-mark rect { fill: #fff; }
.site-header .logo-mark path { fill: #111111; }
.site-header .logo-text b { color: #fff; }
.site-header .logo-text small { color: rgba(255, 255, 255, .55); }
.site-header .nav-links a { color: rgba(255, 255, 255, .78); }
.site-header .nav-links a:hover, .site-header .nav-links a.on { color: #fff; }
.site-header .nav-links a.on::after { background: #fff; }
.site-header .nav-actions .link { color: rgba(255, 255, 255, .85); }
.site-header .nav-actions .link:hover { color: #fff; }
.site-header .btn-primary { background: #fff; color: #111111; }
.site-header .btn-primary:hover { background: #e6e6e6; }
.site-header .search { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.site-header .search:focus-within { border-color: rgba(255, 255, 255, .5); box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.site-header .search svg { color: rgba(255, 255, 255, .6); }
.site-header .search input { color: #fff; }
.site-header .search input::placeholder { color: rgba(255, 255, 255, .5); }
.site-header .search select { background: rgba(255, 255, 255, .12); color: #fff; }
.site-header .search select option { background: #fff; color: #111111; }
.site-header .user-btn { background: transparent; border-color: rgba(255, 255, 255, .22); }
.site-header .user-btn .nm { color: #fff; }
.site-header .user-btn > svg { color: rgba(255, 255, 255, .6); }
.site-header .user-btn .avatar { background: #fff; color: #111111; }
.site-header .dropdown { color: var(--ink); }
.site-header .menu-toggle { background: transparent; border-color: rgba(255, 255, 255, .25); color: #fff; }
@media (max-width: 1024px) {
  .site-header.menu-open .nav-links a { border-bottom-color: rgba(255, 255, 255, .12); }
}

/* ───────── 강사진 로테이션 (홈) ───────── */
.inst-card[hidden] { display: none; }
.inst-nav { display: flex; align-items: center; gap: 8px; }
.inst-count { font-size: 12px; color: var(--muted); margin-right: 4px; }
.inst-btn { width: 32px; height: 32px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 2px; cursor: pointer; color: var(--ink); }
.inst-btn:hover { border-color: var(--ink); }
.inst-btn svg { width: 15px; height: 15px; }
#instPrev svg { transform: rotate(180deg); }
.inst-card.single-page .inst-btn, .inst-card.single-page .inst-dots { display: none; }
.inst-viewport { overflow: hidden; }
.inst-track { --per: 5; --gap: 16px; display: flex; gap: var(--gap); transition: transform .6s ease; will-change: transform; }
.inst-slide { flex: 0 0 calc((100% - var(--gap) * (var(--per) - 1)) / var(--per)); min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 12px 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--ink); transition: border-color .15s; }
.inst-slide:hover { border-color: var(--ink); }
.inst-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-strong); display: grid; place-items: center; margin-bottom: 12px; flex-shrink: 0; }
.inst-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inst-initial { font-size: 34px; font-weight: 700; color: var(--ink); }
.inst-slide b { font-size: 15px; }
.inst-cat { font-size: 11px; font-weight: 700; margin-top: 4px; color: var(--muted); }
.inst-bio { font-size: 12.5px; color: var(--text); line-height: 1.5; margin: 8px 0 10px; min-height: 3em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inst-meta { font-size: 11.5px; color: var(--muted); margin-top: auto; }
.inst-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.inst-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--line-strong); cursor: pointer; }
.inst-dots button[aria-current="true"] { background: var(--ink); width: 22px; border-radius: 4px; }
@media (max-width: 1100px) { .bento > .inst-card { order: 4; } }
@media (prefers-reduced-motion: reduce) { .inst-track { transition: none; } }

/* 프로필 사진 아바타 */
.avatar.has-photo { overflow: hidden; padding: 0; background: var(--surface-2); }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 강좌 카드: 이미지에 테두리를 둘러 아래 텍스트와 구분 */
.course-card .thumb { border: 1px solid var(--line-strong); }
.course-card .thumb.has-img { box-shadow: none; }
.photo-row { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.avatar.photo-lg { width: 72px; height: 72px; font-size: 26px; border: 1px solid var(--line-strong); }

/* 태그 */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.tag-chip { font-size: 11.5px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 2px; white-space: nowrap; }
a.tag-chip:hover { border-color: var(--ink); color: var(--ink); }
.detail-hero .tag-row { margin: 4px 0 16px; }
.chip.tag-filter { margin-left: 4px; }

/* 분야 관리 */
.cat-cell { display: flex; align-items: center; gap: 10px; }
.cat-cell .ic { width: 34px; height: 34px; display: grid; place-items: center; background: var(--surface-2); border-radius: 2px; flex-shrink: 0; }
.cat-cell .ic svg { width: 18px; height: 18px; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick label { cursor: pointer; }
.icon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.icon-pick span { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; }
.icon-pick span svg { width: 18px; height: 18px; }
.icon-pick input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.icon-pick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ───────── 강사진 목록 / 강사 프로필 ───────── */
.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.inst-tile { padding: 24px 16px 20px; }
.inst-tile .inst-photo { width: 110px; height: 110px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.back-link svg { width: 14px; height: 14px; transform: rotate(180deg); }
.back-link:hover { color: var(--ink); }
.prof-card { display: grid; grid-template-columns: 180px 1fr 220px; gap: 36px; padding: 36px !important; align-items: start; }
.prof-photo { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-strong); display: grid; place-items: center; }
.prof-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof-photo .inst-initial { font-size: 64px; }
.prof-body h1 { font-size: 30px; margin: 0 0 12px; letter-spacing: -.02em; }
.prof-body h1 small { font-size: 16px; color: var(--muted); font-weight: 500; }
.prof-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.prof-bio { font-size: 15px; line-height: 1.8; color: var(--text); white-space: pre-line; }
.prof-body .tag-row { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.prof-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.prof-stats div { background: var(--surface); padding: 16px; }
.prof-stats b { display: block; font-size: 24px; font-weight: 600; }
.prof-stats small { font-size: 12px; color: var(--muted); }
.instructor-card { color: inherit; border: 1px solid transparent; transition: border-color .15s; }
.instructor-card:hover { border-color: var(--ink); }
.instructor-card .muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1024px) {
  .prof-card { grid-template-columns: 140px 1fr; }
  .prof-photo { width: 140px; height: 140px; }
  .prof-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .prof-card { grid-template-columns: 1fr; padding: 24px !important; gap: 20px; justify-items: center; text-align: center; }
  .prof-cats, .prof-body .tag-row { justify-content: center; }
  .prof-stats { grid-template-columns: 1fr 1fr; width: 100%; text-align: left; }
}

/* 상단 검색: 분야 선택은 오른쪽 학습 분야 메뉴·강좌 목록에서 제공하므로 숨기고 입력칸 폭 확보 */
.site-header .search select { display: none; }
.site-header .search { flex: 0 1 240px; min-width: 180px; }
@media (max-width: 1280px) { .nav { gap: 20px; } .nav-links a { padding: 0 10px; } }

/* 홈 소개 칸: 검색창 + 인기 키워드 */
.hero-search { display: flex; align-items: center; height: 46px; margin-top: 22px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 2px; }
.hero-search:focus-within { border-color: var(--ink); }
.hero-search svg { width: 17px; height: 17px; color: var(--muted); margin-left: 14px; flex-shrink: 0; }
.hero-search input { flex: 1; width: 0; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 10px; font-size: 14px; }
.hero-search button { height: 100%; padding: 0 18px; border: 0; background: var(--ink); color: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.hero-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.hero-keys .hk-label { font-size: 11px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.hero-keys a { font-size: 12px; color: var(--text); border: 1px solid var(--line); background: var(--surface-2); padding: 3px 9px; border-radius: 2px; }
.hero-keys a:hover { border-color: var(--ink); color: var(--ink); }

/* 수강 후기 별점 입력: 오른쪽부터 배치해 hover/checked 시 왼쪽 별까지 채움 */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { cursor: pointer; color: var(--line-strong); line-height: 0; }
.star-input label svg { width: 30px; height: 30px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--ink); }
.star-input label:hover svg, .star-input label:hover ~ label svg, .star-input input:checked ~ label svg { fill: currentColor; }
.star-input input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }

/* 수료증 */
.cert-wrap { padding: 48px 16px 80px; }
.cert-tools { max-width: 900px; margin: 0 auto 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cert { max-width: 900px; margin: 0 auto; background: #fff; color: #111; border: 1px solid #111; padding: 10px; aspect-ratio: 297 / 210; }
.cert-inner { height: 100%; border: 3px double #111; padding: 48px 56px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cert-no { align-self: flex-start; font-size: 12px; color: #555; letter-spacing: .04em; }
.cert h1 { margin: 26px 0 4px; font-size: 44px; letter-spacing: .5em; text-indent: .5em; font-weight: 800; }
.cert .cert-en { font-size: 12px; letter-spacing: .3em; color: #555; }
.cert .cert-name { margin: 34px 0 6px; font-size: 30px; font-weight: 700; border-bottom: 1px solid #111; padding: 0 28px 6px; }
.cert dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 18px 0 0; font-size: 15px; text-align: left; }
.cert dt { color: #555; }
.cert dd { margin: 0; font-weight: 600; }
.cert .cert-body { margin: 26px 0 0; font-size: 16px; line-height: 1.8; }
.cert .cert-foot { margin-top: auto; padding-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cert .cert-date { font-size: 15px; }
.cert .cert-issuer { font-size: 22px; font-weight: 800; letter-spacing: .08em; }
@media (max-width: 760px) {
  .cert { aspect-ratio: auto; }
  .cert-inner { padding: 28px 18px; }
  .cert h1 { font-size: 30px; letter-spacing: .3em; text-indent: .3em; }
  .cert .cert-name { font-size: 24px; }
  .cert .cert-foot { margin-top: 32px; }
}
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff !important; }
  #site-header, #site-footer, .cert-tools, .toast-wrap { display: none !important; }
  .cert-wrap { padding: 0; }
  .cert { max-width: none; width: 100%; height: 188mm; aspect-ratio: auto; break-inside: avoid; }
}

/* 강좌 미리보기 */
.preview-thumb { display: block; width: 100%; padding: 0; border: 0; background: none; position: relative; cursor: pointer; margin-bottom: 18px; }
.preview-thumb .thumb { margin-bottom: 0; }
.preview-thumb .pv-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; background: rgba(17, 17, 17, .82); color: #fff; font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 2px; }
.preview-thumb .pv-badge svg { width: 16px; height: 16px; }
.preview-thumb:hover .pv-badge, .preview-thumb:focus-visible .pv-badge { background: #000; }
.pv-player { position: relative; background: #000; aspect-ratio: 16 / 9; }
.pv-player video { width: 100%; height: 100%; display: block; background: #000; }
.pv-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(0, 0, 0, .82); color: #fff; text-align: center; padding: 16px; }
.pv-end svg { width: 28px; height: 28px; }
.pv-end b { font-size: 18px; }
.pv-end span { font-size: 13.5px; color: #d6d6d6; margin-bottom: 8px; }
.pv-info { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13.5px; color: var(--text); }
.pv-info span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 문의하기: 안내 패널 */
.ci-list { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-strong); display: grid; gap: 14px; }
.ci-list li { display: flex; gap: 12px; align-items: flex-start; }
.ci-list li > svg { width: 32px; height: 32px; padding: 7px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.ci-list b { display: block; font-size: 14px; line-height: 1.4; }
.ci-list span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.ci-hours { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; background: var(--ink); color: #fff; font-size: 13.5px; line-height: 1.6; }
.ci-hours svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.ci-hours small { color: #bdbdbd; }

/* 강좌 목록: 보기 전환 + 목록형 + 일괄 신청 */
.intro-actions { display: flex; align-items: center; gap: 10px; }
.view-toggle { display: inline-flex; border: 1px solid var(--line-strong); background: var(--surface); }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; background: transparent; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.view-toggle button svg { width: 16px; height: 16px; }
.view-toggle button + button { border-left: 1px solid var(--line-strong); }
.view-toggle button.on { background: var(--ink); color: #fff; }
.course-table { padding: 0; overflow: hidden; }
.ct-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 120px 140px 110px; gap: 12px; align-items: center; padding: 14px 18px 14px 8px; border-top: 1px solid var(--line); font-size: 14px; transition: background .12s; }
.ct-row:first-child { border-top: 0; }
.ct-head { background: var(--surface-2); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding-top: 10px; padding-bottom: 10px; }
.ct-row:not(.ct-head):hover { background: #fafafa; }
.ct-row.on { background: var(--primary-soft); }
.ct-row.disabled .ct-main { opacity: .7; }
.ct-check { display: grid; place-items: center; cursor: pointer; }
.ct-check input { width: 18px; height: 18px; accent-color: var(--ink); cursor: pointer; }
.ct-check input:disabled { cursor: not-allowed; }
.ct-main .course-cat { margin-bottom: 4px; }
.ct-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-title { display: block; font-weight: 600; font-size: 15.5px; color: var(--ink); line-height: 1.4; }
.ct-title:hover { text-decoration: underline; }
.ct-price { text-align: right; white-space: nowrap; }
.st-badge { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border: 1px solid var(--line-strong); color: var(--muted); letter-spacing: 0; }
.st-badge.ok { background: var(--ink); border-color: var(--ink); color: #fff; }
.st-badge.wait { border-color: #8b1e1e; color: #8b1e1e; }
.st-badge.bad { border-color: #e5a3a3; color: #b42318; }
.bulk-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); color: #fff; box-shadow: 0 -6px 24px rgba(0, 0, 0, .18); }
.bulk-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.bulk-bar .muted { color: #bdbdbd; margin-left: 6px; }
.bulk-actions { display: flex; gap: 8px; }
.bulk-bar .btn-outline { background: transparent; color: #fff; border-color: #555; }
.bulk-bar .btn-primary { background: #fff; color: var(--ink); }
@media (max-width: 760px) {
  .ct-row { grid-template-columns: 36px minmax(0, 1fr) auto; padding-right: 12px; }
  .ct-hide { display: none; }
  .bulk-inner { flex-direction: column; align-items: stretch; }
  .bulk-actions .btn { flex: 1; }
  .view-toggle button span { display: none; }
}

/* 로그인: 비밀번호 찾기 링크 + 본인인증 로그인 */
.auth-links { text-align: right; margin-top: 12px; font-size: 13px; }
.auth-links a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.auth-links a:hover { color: var(--ink); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--muted); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-form .btn svg { width: 18px; height: 18px; }
/* 카카오 로그인 버튼 (카카오 디자인 가이드: #FEE500 배경, 85% 검정 글자) */
.btn-kakao { background: #FEE500; color: rgba(0, 0, 0, .85); }
.btn-kakao:hover { background: #F5DC00; }
.btn-kakao:disabled { opacity: .6; cursor: default; }
/* 문의 폼을 오른쪽 안내 패널 높이에 맞춤: 내용 입력칸이 남는 높이를 채움 */
#cf { display: flex; flex-direction: column; }
#cf .field:has(textarea) { flex: 1; display: flex; flex-direction: column; }
#cf textarea { flex: 1; min-height: 160px; }
/* 오른쪽 안내 패널: 응답 시간 박스를 아래 끝에 붙여 왼쪽 폼과 위아래를 맞춤 */
.contact-info { display: flex; flex-direction: column; }
.contact-info .ci-hours { margin-top: auto; }
.contact-info .ci-list { margin-bottom: 20px; }
/* 두 칸일 때: 폼 아래에도 패널 안쪽 여백(24px)만큼 띄워 '보내기' 버튼과 응답 시간 박스의 아래 선을 맞춤 */
@media (min-width: 1025px) { #cf { padding-bottom: 24px; } }
/* 내 강의실: 내 정보 수정(왼쪽) + 비밀번호 변경·본인인증(오른쪽) */
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.account-grid > .panel, .account-side > .panel { margin-bottom: 0; }
.account-side { display: grid; gap: 20px; }
@media (max-width: 900px) { .account-grid { grid-template-columns: minmax(0, 1fr); } }
/* 강좌 카드: 내가 수강한 강좌 표시 */
.thumb .my-badge { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; font-size: 12px; font-weight: 700; background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.thumb .my-badge svg { width: 13px; height: 13px; }
.thumb .my-badge.ok { background: var(--ink); border-color: var(--ink); color: #fff; }
.thumb .my-badge.done { background: #8b1e1e; border-color: #8b1e1e; color: #fff; }
.thumb .my-badge.wait { color: #8b1e1e; border-color: #8b1e1e; }
.course-card.is-mine { border-color: var(--line-strong); }
.st-badge.done { background: #8b1e1e; border-color: #8b1e1e; color: #fff; }

/* 관리자 접속 통계: 일별 방문자 막대 그래프 */
.visit-chart { display: flex; align-items: flex-end; gap: 2px; height: 220px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.vc-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.vc-col i { display: block; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 1px; opacity: .85; }
.vc-col:hover i { opacity: 1; }
.vc-col span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted, #888); white-space: nowrap; }
