/* 두고보는 문대표 클래스 — Wise 디자인 토큰 기반 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(assets/fonts/inter-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #9fe870;
  --primary-active: #cdffad;
  --primary-neutral: #c5edab;
  --primary-pale: #e2f6d5;
  --canvas: #ffffff;
  --canvas-soft: #e8ebe6;
  --canvas-softer: #f3f5f1;
  --ink: #0e0f0c;
  --ink-deep: #163300;
  --theme-rgb: 159, 232, 112;
  --on-primary: #163300;
  --accent: #9fe870;
  --accent-active: #cdffad;
  --login-bg-a: #18290f;
  --login-bg-b: #0e150b;
  --login-bg-c: #0a170e;
  --login-sub: #b8c2b0;
  --body: #454745;
  --mute: #868685;
  --line: #dcdfd8;
  --line-soft: #ebede8;
  --positive: #2ead4b;
  --positive-deep: #054d28;
  --warning: #ffd11a;
  --warning-deep: #b86700;
  --warning-content: #4a3b1c;
  --warning-bg: #fff6d1;
  --negative: #d03238;
  --negative-deep: #a72027;
  --negative-darkest: #a7000d;
  --negative-pale: #fdecec;
  --accent-orange: #ffc091;
  --accent-cyan: #38c8ff;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 9999px;

  --font: "Inter", "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --header-h: 68px;
  --sidebar-w: 256px;
  --shadow-pop: 0 24px 60px -20px rgba(14, 15, 12, .28), 0 2px 8px rgba(14, 15, 12, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "calt";
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas-soft);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }
.icon.xs { width: 14px; height: 14px; }
.icon.lg { width: 24px; height: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-xl);
  font-size: 16px; font-weight: 600; line-height: 24px; white-space: nowrap;
  transition: background-color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-active); }
.btn-primary:disabled { background: var(--canvas-soft); color: var(--mute); cursor: not-allowed; }
.btn-secondary { background: var(--canvas-soft); color: var(--ink); }
.btn-secondary:hover { background: #dde1da; }
.btn-tertiary { background: var(--canvas); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-tertiary:hover { background: var(--canvas-softer); }
.btn-dark { background: var(--ink); color: var(--accent); }
.btn-dark:hover { background: #262823; }
.btn-sm { min-height: 36px; padding: 6px 16px; font-size: 14px; line-height: 20px; }
.btn-block { width: 100%; }
.link-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 입력 ---------- */
.field { display: grid; gap: 8px; }
.field > label, .field-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.input, .textarea, .select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 16px; line-height: 24px; transition: border-color .15s, box-shadow .15s;
}
.input:hover, .textarea:hover { border-color: #b9bdb4; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--primary-pale); }
.input::placeholder, .textarea::placeholder { color: var(--mute); }
.textarea { min-height: 140px; resize: vertical; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 64px; }
.input-addon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 6px 8px; font-size: 13px; font-weight: 600; color: var(--body); border-radius: var(--r-sm); }
.input-addon:hover { background: var(--canvas-soft); }
.field-error { margin: 0; font-size: 14px; color: var(--negative); font-weight: 600; }

/* ---------- 배지 ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.badge-positive { background: var(--primary-pale); color: var(--positive-deep); }
.badge-warning { background: var(--warning-bg); color: var(--warning-content); }
.badge-negative { background: var(--negative-pale); color: var(--negative-deep); }
.badge-neutral { background: var(--canvas-soft); color: var(--body); }
.badge-ink { background: var(--ink); color: var(--accent); }

/* =========================================================
   로그인
   ========================================================= */
.login { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100vh; min-height: 100dvh; background: var(--canvas); }
.login-brand {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding: 56px 20px 0 56px; background: var(--primary); color: var(--ink); overflow: hidden;
}
.login-brand::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px;
  border-radius: 50%; background: var(--primary-active); opacity: .55; pointer-events: none;
}
.login-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; position: relative; z-index: 1; }
.login-logo img { width: 48px; height: 48px; }
.login-logo strong { font-size: 24px; font-weight: 900; letter-spacing: -0.04em; color: var(--ink); }
.login-hero { position: relative; z-index: 1; padding-right: 36px; }
.login-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--ink); color: var(--accent); font-size: 14px; font-weight: 600; }
.login-headline { margin: 0; font-size: clamp(40px, 5.4vw, 80px); font-weight: 900; line-height: 1.02; letter-spacing: -0.05em; color: var(--ink); }
.login-headline .typing { display: inline; color: var(--ink-deep); }
.login-headline .caret { display: inline-block; width: 4px; height: .9em; margin-left: 6px; vertical-align: -0.06em; background: var(--ink); animation: caret 1s steps(1) infinite; }
.login-headline .rest { display: block; }
.login-sub { margin: 24px 0 0; max-width: 420px; font-size: 18px; line-height: 1.6; color: var(--ink-deep); font-weight: 500; }
@keyframes caret { 50% { opacity: 0; } }
.login-foot {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  margin-right: 36px; padding: 20px 0 24px; border-top: 1px solid rgba(14, 15, 12, .16); font-size: 14px;
}
.center-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 6px 4px; border-radius: var(--r-sm); }
.center-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.center-link .dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--accent); font-size: 12px; font-weight: 800; }
.login-copy { color: var(--ink-deep); opacity: .7; }

.login-panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.login-card { width: 100%; max-width: 400px; }
.login-card h1 { margin: 0 0 8px; text-align: center; font-size: 28px; font-weight: 900; letter-spacing: -0.04em; }
.login-card .lead { margin: 0 0 32px; text-align: center; font-size: 15px; color: var(--body); }
.login-form { display: grid; gap: 20px; }
.login-form .row-end { display: flex; justify-content: flex-end; margin-top: -12px; }
.login-form .row-end button { font-size: 13px; color: var(--body); }
.login-form .row-end button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.login-note { margin: 24px 0 0; text-align: center; font-size: 13px; line-height: 1.9; color: var(--mute); }
.login-note a { color: var(--ink-deep); font-weight: 700; text-decoration: none; background: linear-gradient(transparent 60%, var(--primary-pale) 60%); }
.login-demo { margin-top: 20px; padding: 12px 16px; border-radius: var(--r-md); background: var(--canvas-softer); font-size: 13px; color: var(--body); text-align: center; }
.login-demo b { color: var(--ink); }
.login-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; margin-top: 40px; font-size: 13px; color: var(--mute); }
.login-legal button { padding: 2px 16px; color: var(--mute); }
.login-legal button + button { border-left: 1px solid var(--line); }
.login-legal button:hover { color: var(--ink); }

/* =========================================================
   앱 셸
   ========================================================= */
.app { min-height: 100vh; min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  background: var(--canvas); border-bottom: 1px solid var(--line-soft);
}
.menu-toggle { display: none; width: 40px; height: 40px; place-items: center; border-radius: var(--r-md); }
.menu-toggle:hover { background: var(--canvas-soft); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand img { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-text small { font-size: 12px; font-weight: 600; color: var(--mute); }
.brand-text strong { font-size: 16px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hello { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--body); white-space: nowrap; }
.hello b { color: var(--ink); font-weight: 800; }
.hello .sprout { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-pale); color: var(--positive-deep); }
.cohort-chip { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); background: var(--ink); color: var(--accent); }
.logout { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-md); font-size: 14px; font-weight: 600; }
.logout:hover { background: var(--canvas-soft); }

.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.sidebar {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
  display: flex; flex-direction: column; gap: 16px; padding: 20px 14px; overflow-y: auto;
  background: var(--canvas); border-right: 1px solid var(--line-soft);
}
.nav { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-item {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px;
  border-radius: var(--r-lg); font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; text-align: left;
  transition: background-color .15s;
}
.nav-item:hover { background: var(--canvas-softer); }
.nav-item .icon { color: var(--body); }
.nav-item .chev { margin-left: auto; transition: transform .2s; }
.nav-item.open .chev { transform: rotate(180deg); }
.nav-item.active { background: var(--primary-pale); color: var(--ink-deep); font-weight: 800; }
.nav-item.active .icon { color: var(--ink-deep); }
.nav-item.parent-active { background: var(--canvas-softer); }
.subnav { display: grid; gap: 2px; margin: 4px 0 6px 26px; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--line-soft); }
.subnav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: var(--r-md); font-size: 14px; color: var(--body); text-decoration: none; }
.subnav a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line); flex: none; }
.subnav a:hover { background: var(--canvas-softer); color: var(--ink); }
.subnav a.active { color: var(--ink-deep); font-weight: 800; background: var(--canvas-softer); }
.subnav a.active::before { background: var(--primary); box-shadow: 0 0 0 2px var(--ink-deep); }
.subnav .lock { margin-left: auto; color: var(--mute); }
.help-card { margin-top: auto; padding: 20px; border-radius: var(--r-xl); background: var(--canvas-soft); }
.help-card strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.help-card p { margin: 0 0 14px; font-size: 13px; line-height: 1.7; color: var(--body); }
.scrim { display: none; }

.main { min-width: 0; padding: 40px 32px 120px; }
.page { max-width: 880px; margin: 0 auto; }
.page-head { margin-bottom: 28px; }
.page-head h1 { margin: 0; font-size: 32px; font-weight: 900; letter-spacing: -0.045em; line-height: 1.2; }
.page-head p { margin: 8px 0 0; font-size: 15px; color: var(--body); }
.crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 14px; color: var(--body); }
.crumbs a { color: var(--body); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 36px 0 14px; }
.section-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.section-head .hint { font-size: 13px; color: var(--body); }

.card { background: var(--canvas); border-radius: var(--r-xl); padding: 24px; }
.card + .card { margin-top: 12px; }
.card-sage { background: var(--canvas-softer); }
.card-dark { background: var(--ink); color: var(--canvas-soft); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stack { display: grid; gap: 12px; }
.muted { color: var(--body); }
.tiny { font-size: 13px; color: var(--mute); }
.empty { padding: 48px 24px; text-align: center; color: var(--body); }
.empty .icon { width: 36px; height: 36px; color: var(--mute); margin: 0 auto 12px; }

/* 진행률 */
.progress { height: 10px; border-radius: var(--r-pill); background: var(--canvas-soft); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--primary); box-shadow: inset 0 0 0 1px rgba(22, 51, 0, .12); transition: width .5s ease; }
.progress.thin { height: 6px; }
.big-pct { font-size: 32px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.big-pct small { font-size: 16px; font-weight: 700; color: var(--positive-deep); margin-left: 1px; }
.overall { display: grid; gap: 16px; }
.overall-top { display: flex; align-items: center; justify-content: space-between; }
.overall-top span { font-size: 15px; color: var(--body); font-weight: 600; }

/* 주차 카드 */
.week-card {
  display: flex; flex-direction: column; gap: 18px; min-height: 172px; padding: 24px;
  background: var(--canvas); border-radius: var(--r-xl); text-decoration: none; color: inherit;
  border: 2px solid transparent; transition: border-color .15s, transform .15s;
}
a.week-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.week-card.locked { background: var(--canvas-softer); }
.week-card.locked .wk-title, .week-card.locked .big-pct { color: #9a9c98; }
.week-card.locked .wk-icon { background: var(--canvas-soft); color: #9a9c98; }
.wk-top { display: flex; align-items: center; gap: 14px; }
.wk-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-lg); background: var(--primary-pale); color: var(--ink-deep); flex: none; }
.wk-title { font-size: 20px; font-weight: 900; letter-spacing: -0.03em; }
.wk-meta { font-size: 13px; color: var(--mute); }
.wk-top .big-pct { margin-left: auto; font-size: 26px; }
.wk-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; font-size: 14px; }
.wk-foot .lock-msg { display: inline-flex; align-items: center; gap: 6px; color: #8d908a; font-weight: 600; }
.wk-foot b { font-weight: 800; }

/* 과제 목록 */
.mission {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 18px 20px; background: var(--canvas); border-radius: var(--r-xl); text-decoration: none; color: inherit;
  border: 2px solid transparent; transition: border-color .15s;
}
a.mission:hover { border-color: var(--ink); }
.mission + .mission { margin-top: 10px; }
.m-check { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--canvas-soft); color: var(--mute); font-size: 13px; font-weight: 800; }
.m-check.done { background: var(--primary); color: var(--on-primary); }
.m-check.fix { background: var(--warning-bg); color: var(--warning-deep); }
.m-title { font-size: 16px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.m-desc { margin-top: 2px; font-size: 14px; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 과제 상세 */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; font-size: 15px; line-height: 1.6; }
.steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--accent); font-size: 13px; font-weight: 800; margin-top: 1px; }
.dropzone {
  display: grid; place-items: center; gap: 6px; min-height: 168px; padding: 24px; text-align: center;
  border: 2px dashed var(--line); border-radius: var(--r-lg); background: var(--canvas-softer); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--ink); background: var(--primary-pale); }
.dropzone .icon { width: 32px; height: 32px; color: var(--body); }
.dropzone strong { font-size: 15px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--canvas-soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(14, 15, 12, .75); color: #fff; }
.result { margin-top: 16px; padding: 18px 20px; border-radius: var(--r-lg); }
.result.pass { background: var(--primary-pale); color: var(--ink-deep); }
.result.fix { background: var(--warning-bg); color: var(--warning-content); }
.result h4 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.result ul { margin: 6px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.result p { margin: 0; font-size: 14px; }
.history { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.history li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--body); padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.history li:last-child { border-bottom: 0; }
.side-label { font-size: 13px; font-weight: 700; color: var(--mute); margin: 0 0 10px; }

/* 커리큘럼 */
.lesson { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; border-radius: var(--r-lg); text-decoration: none; color: inherit; }
.lesson:hover { background: var(--canvas-softer); }
.lesson + .lesson { margin-top: 4px; }
.lesson-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); background: var(--ink); color: var(--accent); display: grid; place-items: center; overflow: hidden; }
.lesson-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lesson-thumb .icon { position: relative; width: 22px; height: 22px; fill: currentColor; stroke: none; }
.lesson-title { font-size: 16px; font-weight: 700; }
.lesson-desc { font-size: 14px; color: var(--body); margin-top: 2px; }
.week-block { padding: 8px; }
.week-block + .week-block { margin-top: 14px; }
.week-block-head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 12px; }
.week-block-head h3 { margin: 0; font-size: 18px; font-weight: 900; letter-spacing: -0.03em; }
.week-block-head p { margin: 2px 0 0; font-size: 14px; color: var(--body); }
.week-block-head .badge { margin-left: auto; }

/* 영상 */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 24px;
  background: radial-gradient(120% 90% at 85% 15%, rgba(var(--theme-rgb), .22) 0%, var(--ink) 60%); color: var(--canvas-soft); text-decoration: none;
}
.video-ph .vp-title { max-width: 80%; font-size: clamp(18px, 2.6vw, 28px); font-weight: 900; line-height: 1.25; letter-spacing: -0.03em; color: var(--accent); }
.video-ph .vp-play { align-self: center; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); transition: transform .15s; }
.video-ph:hover .vp-play { transform: scale(1.06); }
.video-ph .vp-play .icon { width: 28px; height: 28px; fill: currentColor; stroke: none; margin-left: 4px; }
.video-ph .vp-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #b8bdb2; }
.video-ph .vp-time { padding: 2px 8px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .55); color: #fff; font-weight: 600; }

/* 홈 */
.greet { display: flex; align-items: center; gap: 14px; }
.greet-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--on-primary); flex: none; }
.greet h1 { font-size: 26px; }
.home-video-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.home-video-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; }
.home-video-head h2 .icon { color: #e8590c; }
.next-card { display: flex; align-items: center; gap: 16px; }
.next-card .wk-icon { background: var(--primary); color: var(--on-primary); }
.stat { display: grid; gap: 4px; }
.stat-label { font-size: 13px; color: var(--body); font-weight: 600; }
.stat-value { font-size: 28px; font-weight: 900; letter-spacing: -0.04em; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: inherit; }
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-row:first-child { padding-top: 0; }
.list-row:hover .lr-title { text-decoration: underline; text-underline-offset: 3px; }
.lr-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-date { font-size: 13px; color: var(--mute); white-space: nowrap; }
.date-pill { flex: none; width: 52px; text-align: center; padding: 6px 0; border-radius: var(--r-md); background: var(--canvas-soft); line-height: 1.15; }
.date-pill b { display: block; font-size: 18px; font-weight: 900; }
.date-pill small { font-size: 11px; color: var(--body); font-weight: 600; }
.date-pill.today { background: var(--primary); color: var(--on-primary); }
.date-pill.today small { color: inherit; opacity: .8; }

/* 강의 일정 */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head h2 { margin: 0; font-size: 20px; font-weight: 900; }
.cal-nav { display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--canvas-soft); }
.icon-btn:hover { background: #dde1da; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { padding: 6px 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--mute); }
.cal-dow:first-child { color: var(--negative); }
.cal-day { min-height: 84px; padding: 6px; border-radius: var(--r-md); background: var(--canvas-softer); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.cal-day.other { background: transparent; color: #b5b8b1; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--ink); }
.cal-day .d { font-weight: 700; }
.cal-ev { padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-live { background: var(--primary); color: var(--on-primary); }
.ev-qna { background: #d7f2ff; color: #004b6b; }
.ev-event { background: var(--ink); color: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 13px; color: var(--body); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

/* 공지 */
.notice-row { display: flex; align-items: center; gap: 12px; padding: 18px 4px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: inherit; }
.notice-row:last-child { border-bottom: 0; }
.notice-row:hover .lr-title { text-decoration: underline; text-underline-offset: 3px; }
.article h2 { margin: 0 0 8px; font-size: 24px; font-weight: 900; letter-spacing: -0.03em; }
.article .meta { font-size: 14px; color: var(--mute); padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.article .body { padding-top: 20px; font-size: 16px; line-height: 1.85; white-space: pre-line; }

/* 탭 */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--canvas); margin-bottom: 16px; }
.tab { min-height: 40px; padding: 8px 20px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; color: var(--body); }
.tab.active { background: var(--ink); color: var(--accent); }

/* FAQ */
.faq { border-bottom: 1px solid var(--line-soft); }
.faq:last-child { border-bottom: 0; }
.faq summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 4px; cursor: pointer; font-size: 16px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-pale); color: var(--ink-deep); font-size: 13px; font-weight: 900; }
.faq summary .chev { margin-left: auto; transition: transform .2s; color: var(--body); }
.faq[open] summary .chev { transform: rotate(180deg); }
.faq .a { margin: 0 4px 18px 44px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--canvas-softer); font-size: 15px; line-height: 1.75; color: var(--body); }
.search { position: relative; margin-bottom: 8px; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--mute); }
.search .input { padding-left: 46px; border-radius: var(--r-pill); }
.qa-item { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.qa-item:last-child { border-bottom: 0; }
.qa-item .qa-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.qa-item .qa-title { font-weight: 700; }
.qa-item .qa-body { font-size: 15px; color: var(--body); white-space: pre-line; }
.qa-answer { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--primary-pale); font-size: 14px; color: var(--ink-deep); }

/* 서류 가이드 */
.guide-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; }
.guide-num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--accent); font-size: 18px; font-weight: 900; }
.guide-step.done .guide-num { background: var(--primary); color: var(--on-primary); }
.guide-step h3 { margin: 0; font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.guide-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 14px; font-size: 14px; color: var(--body); }
.guide-facts span { display: inline-flex; align-items: center; gap: 6px; }
.guide-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-box { padding: 14px 16px; border-radius: var(--r-lg); background: var(--canvas-softer); }
.guide-box h4 { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--mute); }
.guide-box ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.75; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.check-btn { display: inline-flex; align-items: center; gap: 8px; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r-lg); font-size: 14px; line-height: 1.6; }
.callout .icon { margin-top: 1px; }
.callout-warn { background: var(--warning-bg); color: var(--warning-content); }
.callout-neg { background: var(--negative-pale); color: var(--negative-deep); border: 1px solid #f3c3c5; }
.callout-neg b { color: var(--negative-darkest); }
.callout-ok { background: var(--primary-pale); color: var(--ink-deep); }

/* 자료실 */
.res-card { display: flex; flex-direction: column; gap: 14px; min-height: 184px; padding: 24px; background: var(--canvas); border-radius: var(--r-xl); text-decoration: none; color: inherit; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
a.res-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.res-top { display: flex; align-items: center; gap: 14px; }
.res-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-lg); flex: none; }
.ri-1 { background: #e3f6ff; color: #005c85; }
.ri-2 { background: var(--primary-pale); color: var(--ink-deep); }
.ri-3 { background: #fff0e4; color: #9a4a00; }
.ri-4 { background: var(--canvas-soft); color: var(--ink); }
.res-title { font-size: 19px; font-weight: 900; letter-spacing: -0.03em; }
.res-desc { font-size: 14px; color: var(--body); }
.res-foot { margin-top: auto; display: flex; justify-content: flex-end; }
.res-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; background: var(--canvas); border-radius: var(--r-xl); }
.res-item + .res-item { margin-top: 10px; }
.calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.calc .field label { font-size: 13px; }
.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.calc-out > div { padding: 16px; border-radius: var(--r-lg); background: var(--canvas-softer); }
.calc-out > div.hl { background: var(--ink); color: var(--canvas-soft); }
.calc-out > div.hl .stat-value { color: var(--accent); }

/* 동기부여 */
.mv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mv-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; border-radius: var(--r-xl); text-align: left; }
.mv-card .lesson-thumb { border-radius: var(--r-lg); }
.mv-card .lesson-thumb .icon { width: 28px; height: 28px; }
.mv-card .mv-title { font-size: 15px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mv-card:hover .mv-title { text-decoration: underline; text-underline-offset: 3px; }
.quote { padding: 32px; border-radius: var(--r-xl); background: var(--ink); color: var(--accent); font-size: clamp(22px, 3vw, 32px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.3; }
.quote small { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; color: #b8bdb2; letter-spacing: 0; }

/* 수료증 */
.cert {
  position: relative; padding: 56px 48px; border-radius: var(--r-xl); background: var(--canvas); text-align: center;
  box-shadow: inset 0 0 0 10px var(--canvas), inset 0 0 0 12px var(--ink);
}
.cert.locked > *:not(.cert-lock) { filter: blur(3px); opacity: .45; }
.cert-mark { width: 64px; height: 64px; margin: 0 auto 16px; }
.cert-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .3em; color: var(--mute); }
.cert h2 { margin: 10px 0 28px; font-size: 44px; font-weight: 900; letter-spacing: -0.04em; }
.cert-name { font-size: 32px; font-weight: 900; margin-bottom: 16px; }
.cert-name span { display: inline-block; padding: 0 12px 4px; background: linear-gradient(transparent 60%, var(--accent) 60%); }
.cert p { margin: 0 auto; max-width: 480px; font-size: 16px; line-height: 1.8; color: var(--body); }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 40px; font-size: 14px; color: var(--body); text-align: left; }
.cert-sign { text-align: right; }
.cert-sign strong { display: block; font-size: 18px; color: var(--ink); }
.cert-lock { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; padding: 24px; }
.cert-lock .icon { width: 40px; height: 40px; }
.cert-lock strong { font-size: 20px; font-weight: 900; }

/* AI 봇 */
.chat { display: flex; flex-direction: column; height: calc(100vh - var(--header-h) - 200px); min-height: 460px; background: var(--canvas); border-radius: var(--r-xl); overflow: hidden; }
.chat-log { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--canvas-softer); }
.msg { display: flex; gap: 10px; max-width: 86%; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--accent); }
.msg-bubble { padding: 12px 16px; border-radius: 4px 20px 20px 20px; background: var(--canvas); font-size: 15px; line-height: 1.65; white-space: pre-line; box-shadow: 0 1px 2px rgba(14, 15, 12, .06); }
.msg.me .msg-bubble { border-radius: 20px 4px 20px 20px; background: var(--primary); color: var(--on-primary); }
.msg-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg-links a { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: var(--canvas-soft); text-decoration: none; color: var(--ink); }
.msg-links a:hover { background: var(--primary-pale); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; background: var(--canvas); }
.chip { padding: 6px 12px; border-radius: var(--r-pill); background: var(--canvas-soft); font-size: 13px; font-weight: 600; }
.chip:hover { background: var(--primary-pale); }
.chat-form { display: flex; gap: 8px; padding: 12px 16px 16px; background: var(--canvas); }
.chat-form .input { border-radius: var(--r-pill); min-height: 48px; background: var(--canvas-softer); border-color: transparent; }
.chat-form .btn { min-width: 72px; }
.typing-dots { display: inline-flex; gap: 4px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); animation: dot 1s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.bot-fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; }
.bot-launch { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 20px 8px 8px; border-radius: var(--r-pill); background: var(--ink); color: var(--accent); font-weight: 800; box-shadow: var(--shadow-pop); }
.bot-launch .msg-avatar { background: var(--accent); color: var(--ink); width: 40px; height: 40px; }
.bot-panel { width: 360px; max-width: calc(100vw - 32px); border-radius: var(--r-xl); background: var(--canvas); box-shadow: var(--shadow-pop); overflow: hidden; display: flex; flex-direction: column; }
.bot-panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line-soft); }
.bot-panel-head strong { font-size: 16px; font-weight: 800; }
.bot-panel-head .tools { margin-left: auto; display: flex; gap: 2px; }
.bot-panel-head .tools a, .bot-panel-head .tools button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--body); }
.bot-panel-head .tools a:hover, .bot-panel-head .tools button:hover { background: var(--canvas-soft); color: var(--ink); }
.bot-panel .chat-log { flex: none; padding: 16px; background: var(--primary-pale); }
.bot-panel .msg { max-width: 92%; }
.bot-panel .msg-bubble { font-size: 14px; }
.bot-panel .chat-form { padding: 12px; }

/* 모달 · 토스트 */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(14, 15, 12, .5); animation: fade .15s; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px; border-radius: var(--r-xl); background: var(--canvas); box-shadow: var(--shadow-pop); animation: pop .18s; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.modal-head .icon-btn { margin-left: auto; flex: none; }
.modal-body { font-size: 15px; line-height: 1.75; color: var(--body); white-space: pre-line; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }
.feature-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; white-space: normal; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--canvas-softer); color: var(--ink); font-size: 14px; line-height: 1.5; }
.feature-list li .icon { color: var(--positive-deep); margin-top: 1px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
#toast-root { position: fixed; left: 50%; bottom: 32px; z-index: 120; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.toast { padding: 12px 20px; border-radius: var(--r-pill); background: var(--ink); color: var(--canvas-soft); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-pop); animation: pop .2s; display: flex; align-items: center; gap: 8px; }
.toast .icon { color: var(--accent); }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .mv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-brand { padding: 28px 20px 0; min-height: auto; }
  .login-hero { padding: 48px 0 40px; }
  .login-headline { font-size: clamp(36px, 9vw, 64px); }
  .login-foot { margin-right: 0; }
  .login-panel { padding: 40px 16px 48px; }

  .menu-toggle { display: grid; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; top: var(--header-h); left: 0; bottom: 0; z-index: 50; width: min(300px, 86vw); height: auto;
    transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-pop);
  }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .scrim { display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 45; background: rgba(14, 15, 12, .35); }
  .main { padding: 28px 16px 120px; }
  .hello .txt { display: none; }
}
@media (max-width: 720px) {
  .topbar { padding: 0 12px; gap: 8px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 14px; }
  .brand img { width: 32px; height: 32px; }
  .logout span { display: none; }
  .cohort-chip { display: none; }
  .grid-2, .grid-3, .guide-cols, .calc, .calc-out { grid-template-columns: minmax(0, 1fr); }
  .mv-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head h1 { font-size: 26px; }
  .card { padding: 20px; }
  .lesson { grid-template-columns: 88px minmax(0, 1fr); }
  .lesson > :last-child { display: none; }
  .mission { grid-template-columns: auto minmax(0, 1fr); }
  .mission > :last-child { display: none; }
  .cal-day { min-height: 56px; padding: 4px; }
  .cal-ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
  .bot-fab { right: 16px; bottom: 16px; }
  .bot-launch > span:last-child { display: none; }
  .bot-launch { padding: 8px; }
  .msg { max-width: 94%; }
  .chat { height: calc(100dvh - var(--header-h) - 170px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; }
  .topbar, .sidebar, .bot-fab, .no-print, .page-head, .crumbs { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
}

/* 보정 */
.field-error:empty { display: none; }
.grid-2 > .card, .grid-3 > .card { margin-top: 0; }
.hello b + .txt { margin-left: -6px; }
.bot-panel .chat-log { height: 200px; }
.video-ph .vp-play { flex: none; aspect-ratio: 1; }
.video-ph .vp-time { white-space: nowrap; }
.video-ph .vp-foot { gap: 12px; }
@media (max-width: 720px) {
  .video-ph { padding: 16px; }
  .video-ph .vp-title { font-size: 16px; max-width: 100%; }
  .video-ph .vp-play { width: 52px; height: 52px; }
  .video-ph .vp-play .icon { width: 22px; height: 22px; }
  .video-ph .vp-foot { font-size: 12px; }
}
#calc { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ===== v2: 강사 선택 · 미리보기 · 점 달력 ===== */
.plain-link { text-decoration: none; color: inherit; }
.card-title { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.ins-list { display: grid; gap: 8px; }
.ins-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--canvas); text-align: left; font-size: 16px; transition: border-color .15s, background-color .15s; }
.ins-option:hover { border-color: var(--ink); background: var(--canvas-softer); }
.ins-option b { flex: 1; font-weight: 800; }
.ins-option .icon { color: var(--mute); }
.ins-avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--accent); font-weight: 900; font-size: 16px; }
.ins-avatar.has-photo { overflow: hidden; background: #f0f0f0; }
.ins-avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.5); transform-origin: 50% 34%; }
.ins-picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--primary-pale); }
.ins-txt { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.ins-txt small { font-size: 12px; color: var(--positive-deep); font-weight: 600; }
.ins-txt b { font-size: 16px; font-weight: 800; }
.ins-txt span { font-size: 13px; color: var(--body); }
.note-link { color: var(--ink-deep); font-weight: 700; font-size: 13px; background: linear-gradient(transparent 60%, var(--primary-pale) 60%); }
.preview-bar { position: sticky; top: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 24px; background: var(--ink); color: var(--canvas-soft); font-size: 13px; }
.preview-bar span { display: inline-flex; align-items: center; gap: 8px; }
.preview-bar b { color: var(--accent); }
.app.has-preview .topbar { top: 48px; }
.app.has-preview .sidebar { top: calc(var(--header-h) + 48px); height: calc(100vh - var(--header-h) - 48px); }

.ev-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--mute); vertical-align: middle; }
.ev-dot.open { background: #1a73e8; }
.ev-dot.deadline { background: var(--negative); }
.ev-dot.qna { background: var(--warning-deep); }
.ev-dot.notice { background: #6b7280; }
.ev-dot.challenge { background: var(--positive); }
.ev-dot.event { background: var(--ink); }
.icon-btn.ghost { background: transparent; }
.icon-btn.ghost:hover { background: var(--canvas-soft); }
.cal-card .cal-nav { align-items: center; }
.cal { gap: 6px; }
.cal-dow.sun { color: var(--negative); }
.cal-day { position: relative; min-height: 96px; padding: 10px 6px 12px; align-items: center; justify-content: space-between; background: var(--canvas); border: 1px solid var(--line-soft); border-radius: var(--r-md); cursor: pointer; font: inherit; transition: border-color .15s, background-color .15s; }
.cal-day:hover { border-color: var(--ink); }
.cal-day .d { font-size: 15px; font-weight: 800; }
.cal-day.sun .d { color: var(--negative); }
.cal-day.other { background: var(--canvas-softer); color: #b5b8b1; }
.cal-day.other .d { color: #b5b8b1; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--primary); border-color: var(--primary); }
.cal-day.sel { background: var(--primary-pale); border-color: var(--ink-deep); box-shadow: inset 0 0 0 1px var(--ink-deep); }
.cal-day .dots { display: flex; gap: 4px; min-height: 8px; }
.legend i.ev-dot { width: 9px; height: 9px; border-radius: 50%; }
.ev-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); }
.ev-card .ev-dot { width: 10px; height: 10px; }
.ev-title { font-size: 16px; font-weight: 800; }
.thumb-pdf { display: grid; place-items: center; align-content: center; gap: 4px; height: 100%; padding: 8px; text-align: center; font-size: 11px; font-weight: 700; }
.video .vp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video .vp-title, .video .vp-play, .video .vp-foot { position: relative; }
.video-ph { cursor: pointer; border: 0; width: 100%; text-align: left; font: inherit; }
.vp-ext { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(0,0,0,.45); }
.vp-ext:hover { background: rgba(0,0,0,.7); }
.video-out { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; text-decoration: none; }
.modal.wide { max-width: 820px; }
@media (max-width: 720px) {
  .cal { gap: 3px; }
  .cal-day { min-height: 54px; padding: 6px 2px 8px; }
  .cal-day .d { font-size: 13px; }
  .cal-day .dots { gap: 2px; }
  .cal-day .ev-dot { width: 6px; height: 6px; }
  .preview-bar { padding: 8px 12px; flex-wrap: wrap; }
  .app.has-preview .topbar { top: 0; position: relative; }
}
.btn { text-decoration: none; }
.preview-actions { display: inline-flex; align-items: center; gap: 12px; }
.preview-exit { color: var(--canvas-soft); font-size: 13px; }
[hidden] { display: none !important; }

/* ===== v3: 로그인 화면 — 사선 빛줄기 + 유리 아이콘 타일 ===== */
.lx-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.lx-glow { position: absolute; left: 38%; top: 30%; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, var(--lx-glow) 0%, transparent 65%); }
.lx-beam { position: absolute; height: 210px; width: 130%; border-radius: 999px; rotate: -24deg; background: linear-gradient(90deg, var(--lx-beam-a) 0%, var(--lx-beam-b) 70%, transparent 100%); filter: blur(1px); }
.lx-beam.b1 { left: -55%; top: 18%; }
.lx-beam.b2 { left: 32%; top: 60%; height: 250px; rotate: 24deg; background: linear-gradient(270deg, var(--lx-beam-a) 0%, var(--lx-beam-b) 70%, transparent 100%); }
.lx-tile { position: absolute; display: grid; place-items: center; width: 96px; height: 88px; border-radius: 22px; color: var(--lx-icon);
  background: linear-gradient(145deg, var(--lx-tile-a), var(--lx-tile-b)); border: 1px solid var(--lx-tile-line);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
  animation: lxfloat 8s ease-in-out infinite; }
.lx-tile .icon { width: 42px; height: 42px; stroke-width: 1.6; }
.lx-tile.t1 { left: 11%; top: 16%; rotate: -12deg; }
.lx-tile.t2 { right: 9%; top: 12%; width: 118px; height: 104px; rotate: 7deg; animation-delay: -2s; }
.lx-tile.t2 .icon { width: 52px; height: 52px; }
.lx-tile.t3 { right: 21%; top: 63%; rotate: 13deg; animation-delay: -4s; }
.lx-tile.t4 { left: 30%; bottom: 13%; width: 62px; height: 62px; border-radius: 50%; animation-delay: -6s; }
.lx-tile.t4 .icon { width: 28px; height: 28px; }
@keyframes lxfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.lx-wise { --lx-glow: rgba(var(--theme-rgb), .22); --lx-beam-a: rgba(var(--theme-rgb), .30); --lx-beam-b: rgba(var(--theme-rgb), .06); --lx-tile-a: rgba(var(--theme-rgb), .34); --lx-tile-b: rgba(var(--theme-rgb), .10); --lx-tile-line: rgba(var(--theme-rgb), .40); --lx-icon: var(--accent-active); }
/* 강사센터 · 마스터 = 흰 바탕 위 흰 카드 + 빨간 아이콘 · 코치 = 초록 아이콘 (로그인 왼쪽이 흰 바탕) */
.lx-red, .lx-dark { --lx-glow: rgba(249, 66, 57, .05); --lx-beam-a: rgba(249, 66, 57, .035); --lx-beam-b: rgba(249, 66, 57, .01); --lx-tile-a: #ffffff; --lx-tile-b: #fff7f6; --lx-tile-line: #fedfde; --lx-icon: #f94239; }
.lx-green { --lx-glow: rgba(1, 164, 132, .05); --lx-beam-a: rgba(1, 164, 132, .035); --lx-beam-b: rgba(1, 164, 132, .01); --lx-tile-a: #ffffff; --lx-tile-b: #f3fbf8; --lx-tile-line: #c2eae0; --lx-icon: #01a484; }
.lx-red .lx-tile, .lx-dark .lx-tile { box-shadow: 0 18px 40px -18px rgba(249, 66, 57, .35), 0 2px 8px rgba(0, 0, 0, .05); }
.lx-green .lx-tile { box-shadow: 0 18px 40px -18px rgba(1, 164, 132, .35), 0 2px 8px rgba(0, 0, 0, .05); }

.login-brand { background: linear-gradient(160deg, var(--login-bg-a) 0%, var(--login-bg-b) 46%, var(--login-bg-c) 100%); color: #e8ebe6; padding: 44px 48px 0; }
.login-brand::after { display: none; }
.login-brand > :not(.lx-art) { position: relative; z-index: 1; }
.login-logo strong { color: #fff; font-size: 20px; }
.login-logo img { width: 40px; height: 40px; }
.login-logo em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: var(--r-pill); border: 1px solid rgba(var(--theme-rgb), .45); color: var(--accent-active); }
.login-hero { padding: 0 0 8px; max-width: 520px; }
.login-eyebrow { display: block; margin: 0 0 18px; padding: 0; background: none; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.login-headline { color: #fff; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -0.05em; }
.login-headline .accent { color: var(--accent); }
.login-sub { color: var(--login-sub); font-size: 16px; line-height: 1.75; max-width: 470px; font-weight: 500; }
.login-foot { margin-right: 0; border-top-color: rgba(232, 235, 230, .12); font-size: 12px; }
.login-copy { color: #8a9584; opacity: 1; }
.login-panel { position: relative; background: var(--canvas); }
.login-topright { position: absolute; top: 20px; right: 24px; left: 24px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 13px; font-weight: 700; color: var(--body); }
.login-home { display: inline-flex; align-items: center; gap: 4px; margin-right: auto; color: var(--body); text-decoration: none; }
.login-home:hover { color: var(--ink); }
.login-stack { width: 100%; max-width: 440px; display: grid; gap: 16px; }
.login-card { max-width: none; padding: 36px 36px 28px; border: 1px solid var(--line-soft); border-radius: var(--r-xl); background: var(--canvas); box-shadow: 0 30px 60px -30px rgba(14, 15, 12, .25), 0 2px 6px rgba(14, 15, 12, .04); }
.login-label { margin: 0 0 10px; text-align: center; font-size: 14px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink-deep); }
.login-card h1 { font-size: 26px; }
.login-card .lead { margin-bottom: 24px; font-size: 14px; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--mute); pointer-events: none; }
.input-icon .input { padding-left: 42px; }
.input-icon .input-addon { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--mute); }
.login-help { margin: 0; text-align: center; font-size: 12px; color: var(--mute); }
.login-alt { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 20px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--canvas); font-size: 14px; font-weight: 700; color: var(--ink); box-shadow: 0 10px 24px -18px rgba(14, 15, 12, .4); }
.login-alt:hover { border-color: var(--ink); background: var(--canvas-softer); }
.login-stack .login-demo { margin-top: 0; }
.login-stack .login-legal { margin-top: 8px; }
@media (max-width: 1023px) {
  .login-brand { padding: 24px 20px 0; min-height: 520px; }
  .login-hero { padding: 120px 0 32px; }
  .lx-tile.t1 { top: 70px; left: auto; right: 44%; }
  .lx-tile.t2 { top: 60px; right: 8%; width: 92px; height: 82px; }
  .lx-tile.t3, .lx-tile.t4 { display: none; }
  .login-topright { position: static; justify-content: flex-end; margin-bottom: 16px; }
  .login-panel { flex-direction: column; }
  .login-card { padding: 28px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) { .lx-tile { animation: none; } }

/* ===== v3: Q&A — 밑줄 탭 · FAQ 분류 · 요청사항 게시판 ===== */
.utabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.utabs a { padding: 12px 18px; margin-bottom: -1px; border-bottom: 3px solid transparent; font-size: 16px; font-weight: 700; color: var(--body); text-decoration: none; }
.utabs a:hover { color: var(--ink); }
.utabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.faq-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }
.faq-cats .chip { display: inline-flex; gap: 6px; align-items: center; min-height: 36px; padding: 6px 14px; }
.faq-cats .chip span { color: var(--mute); font-weight: 600; }
.faq-cats .chip.on { background: var(--ink); color: var(--accent); }
.faq-cats .chip.on span { color: #b8bdb2; }
.faq summary > span:not(.q) { display: grid; gap: 2px; }
.faq-cat { font-size: 12px; font-weight: 700; color: var(--positive-deep); }
.req-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 14px; }
.req-bar b { color: var(--ink); }
.req-note { margin-bottom: 12px; padding: 12px 16px; font-size: 13px; }
.req-card { padding: 8px 0; overflow-x: auto; }
.req-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.req-table th { padding: 12px 14px; text-align: left; font-size: 12px; font-weight: 700; color: var(--mute); border-bottom: 1px solid var(--line); white-space: nowrap; }
.req-table td { padding: 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.req-table tr:last-child td { border-bottom: 0; }
.req-table tbody tr { cursor: pointer; }
.req-table tbody tr:hover td { background: var(--canvas-softer); }
.req-table tr.mine td { background: rgba(var(--theme-rgb), .14); }
.req-table .c-no, .req-table .c-an { text-align: center; width: 60px; color: var(--body); }
.req-table .c-st { width: 92px; }
.req-table .c-au { width: 80px; color: var(--body); }
.req-table .c-dt { width: 110px; color: var(--body); white-space: nowrap; }
.req-table .c-title { font-weight: 600; }
.req-table .c-title .icon { margin: 0 4px; vertical-align: -2px; color: var(--mute); }
.req-table .locked { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 700; }
.req-table .locked .icon { margin: 0; }
.mine-tag { margin-left: 6px; font-size: 11px; padding: 0 8px; }
.re { margin-left: 6px; padding: 0 6px; border-radius: 6px; background: var(--primary-pale); color: var(--positive-deep); font-size: 10px; font-weight: 800; }
.num { font-variant-numeric: tabular-nums; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px 4px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.req-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-flex; min-height: 38px; align-items: center; padding: 6px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer; }
.chip-radio input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.chip-radio input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.dropzone.small { min-height: 120px; padding: 18px; }
.req-actions { display: flex; justify-content: flex-end; gap: 8px; }
.req-detail-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.req-no { margin-left: auto; font-size: 13px; color: var(--mute); font-weight: 700; }
.req-detail h2 { margin: 0 0 6px; font-size: 24px; font-weight: 900; letter-spacing: -0.03em; }
.req-detail .meta { padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--mute); }
.req-detail .body, .req-answer .body { padding-top: 18px; font-size: 16px; line-height: 1.85; white-space: pre-line; }
.req-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 18px; }
.req-shots a { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--canvas-soft); }
.req-shots img { width: 100%; height: 100%; object-fit: cover; }
.req-answer { border: 2px solid var(--primary); }
.req-answer-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--mute); }
.req-answer-top b { color: var(--ink); }
.req-answer .body { padding-top: 10px; }
@media (max-width: 720px) {
  .req-table .c-no, .req-table .c-au, .req-table .c-an { display: none; }
  .req-table .c-dt { width: auto; font-size: 12px; }
  .req-table td, .req-table th { padding: 12px 10px; }
  .req-bar { flex-wrap: wrap; }
  .utabs a { padding: 10px 12px; font-size: 15px; }
}
.lx-tile.t3 { right: 7%; top: auto; bottom: 17%; }
.lx-tile.t4 { left: auto; right: 36%; bottom: 9%; }

/* ===== v5: 자료실 영상 팝업 · 첨부 자료 ===== */
.res-pop { display: grid; gap: 14px; white-space: normal; }
.res-pop-meta { margin: 0; font-size: 14px; color: var(--mute); }
.res-pop-body { font-size: 16px; line-height: 1.8; color: var(--ink); white-space: pre-line; }
.att-box { padding: 16px; border-radius: var(--r-lg); background: var(--canvas-softer); }
.att-box .side-label { margin-bottom: 8px; }
.att-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.att-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--canvas); }
.att-ext { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-pale); color: var(--positive-deep); font-size: 11px; font-weight: 800; }
.att-name { flex: 1; min-width: 0; display: grid; font-size: 14px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.att-name small { font-size: 12px; font-weight: 500; color: var(--mute); }
.att-count { align-self: flex-start; }
@media (max-width: 720px) {
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { max-width: none; border-radius: 24px 24px 0 0; max-height: 92dvh; padding: 22px 18px; }
  .att-list li { flex-wrap: wrap; }
  .att-list li .btn { flex: 1 0 100%; }
}

/* ===== v6: 강사별 색상 · 로고 마크 · 추가 메뉴 페이지 ===== */
.logo-mark { display: block; flex: none; }
.brand .logo-mark { width: 36px; height: 36px; }
.login-logo .logo-mark { width: 40px; height: 40px; }
.cert-mark.logo-mark { width: 64px; height: 64px; margin: 0 auto 16px; }
.custom-page .body { font-size: 16px; line-height: 1.85; white-space: pre-line; }
.custom-page .video { margin-bottom: 18px; }
@media (max-width: 720px) { .brand .logo-mark { width: 32px; height: 32px; } }
.ins-txt small, .faq-cat { color: var(--ink-deep); }

/* ---------- 시작 가이드 · 오늘 라이브 · 새 공지 · 메모 ---------- */
.badge-new { background: var(--negative); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 0 7px; line-height: 18px; flex: none; }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--negative); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.nav-item .nav-count + .chev { margin-left: 6px; }
.start-guide { margin-bottom: 14px; border: 2px solid var(--primary); }
.start-guide .progress { margin: 4px 0 6px; }
.guide-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.guide-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.guide-list li:first-child { border-top: 0; }
.g-check { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; background: var(--canvas); color: var(--on-primary); }
.guide-list li.done .g-check { background: var(--primary); border-color: var(--primary); }
.g-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.g-txt b { font-size: 15px; }
.g-txt span { font-size: 13px; color: var(--body); }
.guide-list li.done .g-txt b { text-decoration: line-through; color: var(--mute); }
.live-today { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; background: var(--solid); color: var(--on-solid); }
.live-today > .icon { color: var(--accent); width: 28px; height: 28px; }
.live-today > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.live-today .tiny { color: inherit; opacity: .75; }
@media (max-width: 720px) {
  .live-today { flex-wrap: wrap; }
  .live-today .btn { width: 100%; }
  .guide-list li { flex-wrap: wrap; }
  .guide-list li .link-btn { margin-left: 40px; }
}
#lesson-note { min-height: 120px; }
.login-intro { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-deep); text-decoration: none; padding: 4px; }

/* ---------- 성장 레벨 (씨앗 → 풀잎 → 가지 → 나무 → 숲) ---------- */
.lv-card { margin-bottom: 14px; display: grid; gap: 14px; }
.lv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lv-head b { font-size: 20px; font-weight: 900; letter-spacing: -0.03em; }
.lv-head small { font-size: 13px; color: var(--mute); font-weight: 700; margin-left: 4px; }
.lv-path { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.lv-path::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 3px; border-radius: 3px; background: var(--line-soft); }
.lv-path li { position: relative; display: grid; justify-items: center; gap: 6px; flex: 1; }
.lv-path li small { font-size: 12px; font-weight: 700; color: var(--mute); }
.lv-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas); border: 2px solid var(--line); color: var(--mute); position: relative; z-index: 1; }
.lv-path li.past .lv-ic { background: var(--primary-pale); border-color: var(--primary); color: var(--ink-deep); }
.lv-path li.now .lv-ic { background: var(--primary); border-color: var(--primary); color: var(--on-primary); transform: scale(1.12); box-shadow: 0 0 0 5px rgba(var(--theme-rgb), .25); animation: lvpulse 2.4s ease-in-out infinite; }
.lv-path li.now small { color: var(--ink); font-weight: 900; }
.lv-foot { margin: 0; font-size: 13px; color: var(--body); }
@keyframes lvpulse { 0%, 100% { box-shadow: 0 0 0 5px rgba(var(--theme-rgb), .25); } 50% { box-shadow: 0 0 0 9px rgba(var(--theme-rgb), .12); } }
.greet-icon.lv-forest, .hello .sprout.lv-forest { background: var(--primary); color: var(--on-primary); }
@media (max-width: 720px) {
  .lv-ic { width: 38px; height: 38px; }
  .lv-path::before { top: 18px; left: 19px; right: 19px; }
}
.lv-ic .icon { width: 22px; height: 22px; } @media (max-width: 720px) { .lv-ic .icon { width: 19px; height: 19px; } }

/* ---------- 운영사 doogo 표시 ---------- */
.doogo-logo { display: inline-block; height: 18px; width: auto; vertical-align: middle; }
.powered { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--mute); }
.powered .doogo-logo { height: 15px; }
.login-powered { color: #8a9584; }
.login-label { display: flex; align-items: center; justify-content: center; gap: 6px; }
.login-label .doogo-logo { height: 20px; }
.side-powered { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: center; }
/* 로그인 카드 위 doogo 로고 2배 */
.login-label { gap: 10px; margin-bottom: 14px; }
.login-label .doogo-logo { height: 30px; }

/* ===== v6: 본문 서식 · 커리큘럼 주차 카드 · 공지 사진 ===== */
.rich { white-space: normal; overflow-wrap: anywhere; }
.rich > * { margin: 0; }
.rich > * + * { margin-top: 12px; }
.rich h3 { margin-top: 24px; font-size: 18px; font-weight: 800; line-height: 1.4; color: var(--ink); letter-spacing: -0.02em; }
.rich > h3:first-child { margin-top: 0; }
.rich ul, .rich ol { padding-left: 22px; display: grid; gap: 6px; }
.rich ul li::marker { color: var(--mute); }
.rich ol li::marker { font-weight: 800; color: var(--ink); }
.rich strong { font-weight: 800; color: var(--ink); }
.rich a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rich hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.rich-note { padding: 14px 16px; border-radius: var(--r-md); background: var(--primary-pale); color: var(--ink); font-weight: 600; }
.article .body, .custom-page .body, .res-pop-body { white-space: normal; }
.lesson-body { margin-top: 18px; font-size: 16px; line-height: 1.75; }
.n-img { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--canvas-softer); }
.n-img img { display: block; width: 100%; height: auto; }
.n-imgs { display: grid; gap: 12px; margin-top: 18px; }
.n-video { margin-top: 18px; }
.n-ic { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--canvas-softer); color: var(--body); }

.cw-list { display: grid; gap: 16px; }
.cw { padding: 28px; }
.cw + .cw { margin-top: 0; }
.cw-head { display: flex; align-items: flex-start; gap: 16px; }
.cw-head-main { flex: 1; min-width: 0; }
.cw-date { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--mute); }
.cw-now { margin-left: 4px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-primary); font-size: 12px; font-weight: 800; }
.cw-head h2 { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.3; letter-spacing: -0.03em; color: var(--ink); }
.cw-sub { margin: 6px 0 0; font-size: 15px; color: var(--body); }
.cw-go { flex: none; }
.cw-goal { margin-top: 20px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--primary-pale); }
.cw-goal-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink); }
.cw-goal p { margin: 6px 0 0; font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--ink); }
.cw-sec { margin-top: 22px; }
.cw-sec h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: var(--ink); }
.cw-sec-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; }
.cw-sec-head h3 { margin: 0; }
.cw-period { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--body); }
.cw-progress { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--mute); }
.cw-topics { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.cw-topics li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.55; color: var(--body); }
.cw-topics li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.cw-mgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cw-mgroup { padding: 16px; border-radius: var(--r-lg); background: var(--canvas-softer); }
.cw-mgroup h4 { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.cw-mgroup h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); }
.cw-mgroup.required h4::before { background: var(--ink); }
.cw-mgroup.challenge h4::before { background: var(--accent); box-shadow: 0 0 0 1px rgba(14, 15, 12, .2); }
.cw-mgroup.mind h4::before { background: var(--accent-orange); }
.cw-mgroup h4 span { font-weight: 600; color: var(--mute); }
.cw-mgroup ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.cw-mgroup a { display: flex; align-items: flex-start; gap: 8px; padding: 6px 4px; border-radius: 8px; font-size: 14px; line-height: 1.45; color: var(--ink); text-decoration: none; }
.cw-mgroup a:hover { background: var(--canvas); }
.cw-mk { flex: none; width: 18px; height: 18px; margin-top: 1px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: var(--canvas); font-size: 11px; font-weight: 900; }
.cw-mk.done { border-color: var(--positive); background: var(--positive); color: #fff; }
.cw-mk.fix { border-color: var(--warning-deep); background: var(--warning-bg); color: var(--warning-deep); }
.cw-mk .icon { width: 12px; height: 12px; }
.cw-lessons { margin-top: 22px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.cw-lessons summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 800; color: var(--ink); padding: 4px 0 8px; }
.cw-lessons summary::-webkit-details-marker { display: none; }
.cw-lessons summary .tiny { font-weight: 600; }
.cw-lessons summary > .icon:last-child { margin-left: auto; transition: transform .15s; }
.cw-lessons[open] summary > .icon:last-child { transform: rotate(180deg); }
.cw-locked .cw-head h2 { color: var(--mute); }
.cw-lock { margin-top: 18px; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--canvas-softer); color: var(--mute); }
.cw-lock > .icon { flex: none; width: 22px; height: 22px; }
.cw-lock b { display: block; font-size: 15px; color: var(--body); }
.cw-lock span { font-size: 14px; }
@media (max-width: 720px) {
  .cw { padding: 20px; }
  .cw-head { flex-direction: column; gap: 14px; }
  .cw-head h2 { font-size: 20px; }
  .cw-go { width: 100%; justify-content: center; }
  .cw-topics { grid-template-columns: 1fr; }
  .cw-progress { margin-left: 0; }
}

/* ===== v7: 자료실 안내 팝업 · 워터마크 · VOD/가이드 게시판 · 동기부여 플레이어 ===== */
body.lib-gated #main > .page { filter: blur(6px); pointer-events: none; user-select: none; }
.lib-gate-back { background: rgba(14, 15, 12, .45); }
.modal.lib-gate { width: min(440px, calc(100vw - 32px)); padding: 0; overflow: hidden; white-space: normal; }
.lib-gate-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; background: var(--ink); color: #fff; }
.lib-gate-head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.lib-gate-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .12); color: var(--accent); }
.lib-gate-body { padding: 22px 24px 24px; font-size: 14px; line-height: 1.65; color: var(--body); }
.lib-gate-body .rich + .rich { margin-top: 12px; }
.lib-gate-body .rich ul { padding-left: 18px; gap: 8px; }
.lib-gate-body .rich ul li::marker { color: var(--negative); }
.lib-gate-foot { margin: 14px 0 0; font-size: 13px; color: var(--mute); }
.lib-gate-ok { width: 100%; margin-top: 20px; justify-content: center; min-height: 52px; font-size: 16px; }
#main { position: relative; }
.lib-wm { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; opacity: .06; user-select: none; }
.lib-wm-in { position: absolute; inset: -20%; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 120px 80px; padding: 80px 40px; transform: rotate(-18deg); }
.lib-wm span { font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; }

.vod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vod-card { display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden; background: var(--canvas); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.vod-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(14, 15, 12, .35); }
.vod-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--ink); display: grid; place-items: center; overflow: hidden; }
.vod-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vod-ph { padding: 16px; font-size: 16px; font-weight: 900; line-height: 1.35; color: var(--accent); text-align: center; letter-spacing: -0.02em; }
.vod-play { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-primary); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.vod-play .icon { width: 20px; height: 20px; fill: currentColor; stroke: none; margin-left: 2px; }
.vod-info { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.vod-no { font-size: 12px; font-weight: 800; color: var(--mute); letter-spacing: .02em; }
.vod-title { font-size: 16px; font-weight: 800; line-height: 1.4; color: var(--ink); }
.vod-desc { font-size: 13px; color: var(--body); line-height: 1.5; }
.vod-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; font-size: 12px; color: var(--mute); }
.vod-meta span { display: inline-flex; align-items: center; gap: 4px; }
.res-article .video { margin-bottom: 22px; }
.res-article .body { font-size: 16px; line-height: 1.85; color: var(--ink); }
.res-article .att-box { margin-top: 22px; }
.res-nav.next { text-align: right; }

.mv-stage { border-radius: var(--r-xl); overflow: hidden; background: var(--canvas); }
.mv-stage .video, .mv-player-wrap .video { border-radius: 0; }
.mv-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 14px 18px; }
.mv-now b { font-size: 16px; font-weight: 800; color: var(--ink); }
.mv-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mv-tile { display: flex; flex-direction: column; padding: 0; border: 2px solid transparent; border-radius: var(--r-lg); overflow: hidden; background: var(--canvas); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .15s, transform .15s; }
.mv-tile:hover { transform: translateY(-2px); }
.mv-tile.on { border-color: var(--ink); }
.mv-tile-img { position: relative; aspect-ratio: 16 / 9; background: var(--ink); display: grid; place-items: center; overflow: hidden; }
.mv-tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv-tile-play { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #fff; color: #fff; background: rgba(0, 0, 0, .25); }
.mv-tile-play .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; margin-left: 2px; }
.mv-tile.on .mv-tile-play { background: var(--accent); border-color: var(--accent); color: var(--on-primary); }
.mv-tile-label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 14px; font-weight: 800; color: var(--ink); }
.mv-tile-label em { font-style: normal; padding: 1px 8px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-primary); font-size: 11px; }
@media (max-width: 900px) { .vod-grid, .mv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .vod-grid { grid-template-columns: 1fr; } .mv-tiles { gap: 10px; } .mv-tile-label { font-size: 13px; padding: 8px 10px; } }

/* ===== v8: 홈 — 이번 주/다음 주 카드 · 과제 전체 진행률 ===== */
.home-mv { margin-top: 0; }
.wf-wrap { display: grid; gap: 14px; margin-top: 14px; }
.wf-wrap.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wf-card { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.card + .wf-wrap, .wf-wrap + .home-duo { margin-top: 14px; }
.wf-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wf-tag { font-size: 12px; font-weight: 800; color: var(--mute); }
.wf-card.now .wf-tag { padding: 2px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-primary); }
.wf-state { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--canvas-softer); font-size: 12px; font-weight: 700; color: var(--body); }
.wf-card h3 { margin: 4px 0 0; font-size: 21px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.3; color: var(--ink); }
.wf-date { margin: 0; font-size: 14px; color: var(--body); }
.wf-lock { margin-top: 8px; padding: 14px 16px; border-radius: var(--r-md); background: var(--canvas-softer); font-size: 14px; font-weight: 700; color: var(--body); }
.wf-lock b { margin-left: 6px; color: var(--ink); }
.wf-prog { display: grid; gap: 6px; margin-top: 10px; }
.wf-btn { margin-top: 12px; width: 100%; justify-content: center; min-height: 48px; }
.home-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.home-duo > .card { margin: 0; }
.prog-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 4px 10px; padding: 12px 10px; margin: 0 -10px; border-radius: var(--r-md); text-decoration: none; color: inherit; }
.prog-row:hover { background: var(--canvas-softer); }
.prog-row .progress { grid-column: 1 / -1; }
.prog-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--canvas-softer); color: var(--ink); }
.prog-row.required .prog-ic { background: var(--ink); color: var(--accent); }
.prog-row.challenge .prog-ic { background: var(--primary-pale); }
.prog-row.mind .prog-ic { background: #ffe9d6; color: #b45309; }
.prog-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.prog-num { font-size: 14px; color: var(--mute); }
.prog-num b { color: var(--ink); font-size: 16px; }
.prog-row > .icon:last-of-type { color: var(--mute); }
.prog-foot { margin: 10px 0 0; }
.lv-foot b { color: var(--ink); }
@media (max-width: 900px) { .wf-wrap.two, .home-duo { grid-template-columns: minmax(0, 1fr); } }
.home-duo > *, .wf-wrap > * { min-width: 0; }

/* ===== v9: 시작 가이드 · 자주 찾는 페이지 · 주차 과제 카드 ===== */
.guide-tip { margin: 10px 0 0; }
.ev-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ql-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ql-card { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 20px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card + .ql-card { margin-top: 0; }
.ql-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(14, 15, 12, .35); }
.ql-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-pale); color: var(--ink); margin-bottom: 8px; }
.ql-ext { position: absolute; top: 18px; right: 18px; color: var(--mute); }
.ql-card b { font-size: 17px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); }
.ql-card span:not(.ql-ic):not(.ql-ext) { font-size: 13px; color: var(--body); line-height: 1.5; }
.help-banner { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 18px 20px; text-decoration: none; color: inherit; border: 1.5px solid var(--primary); }
.help-banner > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.help-banner b { font-size: 15px; color: var(--ink); }
.hb-ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: var(--on-primary); }
.tpl-box { margin-top: 14px; }
.tpl-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--canvas-softer); text-decoration: none; color: inherit; }
.tpl-row + .tpl-row { margin-top: 8px; }
.tpl-row:hover { background: var(--primary-pale); }
.tpl-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--accent); }
.tpl-txt { display: grid; min-width: 0; }
.tpl-txt b { font-size: 14px; color: var(--ink); }
.tpl-txt small { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ffilters { margin-top: 18px; }
.ff-label { margin: 12px 0 8px; font-size: 13px; font-weight: 800; color: var(--body); }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--canvas); font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.fchip:hover { border-color: var(--ink); }
.fchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fnum { min-width: 22px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--canvas-softer); color: var(--body); font-size: 12px; text-align: center; }
.fchip.on .fnum { background: rgba(255, 255, 255, .18); color: #fff; }
.mcard { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 20px 22px; border-radius: var(--r-xl); background: var(--canvas); }
.mcard + .mcard { margin-top: 10px; }
.mcard-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--canvas-softer); color: var(--ink); }
.mcard.st-done .mcard-ic { background: var(--primary-pale); }
.mcard-main { min-width: 0; padding-right: 90px; }
.mcard-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; }
.kbadge { padding: 2px 9px; border-radius: var(--r-pill); font-weight: 800; background: var(--canvas-softer); color: var(--ink); }
.kbadge.required { background: var(--negative-pale); color: var(--negative-deep); }
.kbadge.challenge { background: var(--primary-pale); color: var(--ink-deep); }
.kbadge.mind { background: #ffe9d6; color: #b45309; }
.mcard-d { display: inline-flex; align-items: center; gap: 3px; color: var(--body); font-weight: 700; }
.mcard-due { font-weight: 700; color: var(--negative); }
.mcard-due.late { text-decoration: underline; }
.mcard h3 { margin: 6px 0 0; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.mcard h3 a { color: var(--ink); text-decoration: none; }
.mcard h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mcard-desc { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--body); }
.mcard-type { margin: 6px 0 0; font-size: 12px; color: var(--mute); }
.mcard-tpl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tpl-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--primary-pale); color: var(--ink); font-size: 12px; font-weight: 800; text-decoration: none; }
.tpl-btn:hover { background: var(--accent); }
.mcard-state { position: absolute; top: 18px; right: 20px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--canvas-softer); font-size: 12px; font-weight: 800; color: var(--body); }
.mcard-state.done { background: var(--positive); color: #fff; }
.mcard-state.fix { background: var(--warning-bg); color: var(--warning-deep); }
.mcard-go { grid-column: 2; justify-self: end; margin-top: 10px; }
@media (max-width: 900px) { .ql-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mcard { padding: 18px; } .mcard-main { padding-right: 0; } .mcard-state { position: static; grid-column: 2; justify-self: start; margin-top: 8px; } .mcard-go { width: 100%; justify-content: center; grid-column: 1 / -1; } .ql-card { padding: 16px; } }
/* 자주 찾는 페이지: 아랫줄 외부 링크는 흰 카드 그대로, 아이콘만 브랜드 색 */
.ql-outer { margin-top: 12px; }
.ql-card.ql-color .ql-ic { background: var(--ql); color: #fff; }
.ql-card.ql-color:hover { box-shadow: 0 14px 30px -18px var(--ql); }
.guide-finish { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--primary-pale); }
.guide-finish span { flex: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.guide-finish .btn { flex: none; min-width: 96px; justify-content: center; }
@media (max-width: 520px) { .guide-finish { flex-direction: column; align-items: stretch; } .guide-finish .btn { width: 100%; } }
.guide-finish { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--primary-pale); }
.guide-finish span { flex: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.guide-finish .btn { flex: none; min-width: 96px; justify-content: center; }
@media (max-width: 520px) { .guide-finish { flex-direction: column; align-items: stretch; } .guide-finish .btn { width: 100%; } }

/* ===== v10: 모바일 최적화 (터치 영역 · 빵부스러기 · 공지 목록 · 봇 창) ===== */
@media (max-width: 720px) {
  .menu-toggle { flex: none; width: 44px; height: 44px; }
  .logout { min-width: 40px; min-height: 40px; justify-content: center; }
  .link-btn, .back-link { min-height: 40px; }
  .row-end button, .login-legal button { min-height: 36px; }
  .login-legal button { padding: 6px 12px; }
  /* 빵부스러기 → ‘‹ 바로 위 화면’ 한 줄 뒤로 가기 */
  .crumbs > * { display: none; }
  .crumbs > a:nth-last-of-type(1) { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-size: 14px; }
  .crumbs > a:nth-last-of-type(1)::before { content: "‹"; font-size: 20px; line-height: 1; margin-top: -2px; }
  .crumbs { margin-bottom: 4px; }
  /* 공지 목록: 제목 두 줄까지, 날짜는 아래 줄 */
  .notice-row { flex-wrap: wrap; row-gap: 4px; padding: 14px 4px; }
  .notice-row .lr-title { flex: 1 1 55%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.45; }
  .notice-row .lr-date { flex-basis: 100%; order: 9; font-size: 12px; }
  .section-head { flex-wrap: wrap; align-items: center; row-gap: 4px; margin-top: 28px; }
  .bot-panel { width: calc(100vw - 24px); max-width: none; }
  .bot-fab { right: 12px; bottom: 12px; }
  .ev-card { flex-wrap: wrap; }
  .ev-acts { width: 100%; justify-content: stretch; }
  .ev-acts .btn { flex: 1; justify-content: center; }
}
@media (max-width: 720px) {
  .link-btn { min-width: 40px; justify-content: center; }
  .mcard h3 a { display: block; padding: 4px 0; }
}
@media (max-width: 720px) {
  .guide-list .g-txt { flex: 1 1 calc(100% - 52px); }
  .guide-list li .link-btn { margin-left: 40px; justify-content: flex-start; min-height: 36px; }
}

/* ===== v11: 한국 · 뉴질랜드 시간 (문대표) ===== */
.wclock { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.wclock.top { margin-left: auto; margin-right: 18px; padding: 5px 6px; border-radius: var(--r-pill); background: var(--canvas-softer); border: 1px solid var(--line-soft); }
.wc-cell { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 4px; border-radius: var(--r-pill); background: var(--canvas); box-shadow: 0 1px 2px rgba(14, 15, 12, .06); }
.wc-flag { flex: none; width: 30px; height: 30px; display: block; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(14, 15, 12, .12), 0 2px 4px rgba(14, 15, 12, .12); }
.wc-flag svg { display: block; width: 100%; height: 100%; }
.wc-txt { display: grid; grid-template-columns: auto auto; column-gap: 4px; align-items: baseline; line-height: 1.1; }
.wc-txt small { grid-column: 1 / -1; font-size: 11px; font-weight: 700; color: var(--mute); }
.wc-txt b { font-size: 16px; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; }
.wc-txt em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--body); }
.wc-sub { padding: 2px 8px; border-radius: var(--r-pill); background: var(--primary-pale); color: var(--ink-deep); font-size: 10px; font-weight: 800; white-space: nowrap; }
.wc-gap { font-size: 11px; font-weight: 800; color: var(--mute); }
.wclock.side { margin: 4px 4px 14px; padding: 10px; border-radius: var(--r-lg); background: var(--canvas-softer); flex-wrap: wrap; justify-content: center; }
.wclock.side .wc-cell { flex: 1 1 100%; justify-content: flex-start; }
.wclock.side .wc-sub { margin-left: auto; }
.wclock.side .wc-gap { display: none; }
@media (min-width: 1280px) { .wclock.side { display: none; } }
@media (max-width: 1279px) { .wclock.top { display: none; } }

/* ===== v11: 1:1 소통채널 ===== */
.ch-grid { margin-top: 4px; }
.ch-icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--ch, var(--accent)); color: var(--chi, var(--on-primary)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08), 0 6px 14px -8px rgba(14, 15, 12, .35); }
.ch-icon .icon { width: 24px; height: 24px; }
.ch-go { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--ch, var(--accent)); color: var(--chi, var(--on-primary)); font-size: 14px; font-weight: 800; }
.ch-card { transition: transform .15s, box-shadow .15s; }
.ch-card:not(.off):hover { transform: translateY(-2px); box-shadow: 0 16px 32px -20px rgba(14, 15, 12, .35); }
.ch-card.off { opacity: .7; cursor: default; }
.ch-card .res-desc { line-height: 1.65; }
.ch-note { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 16px 4px 0; font-size: 13px; color: var(--body); }
.ch-note a { color: var(--ink); font-weight: 700; }

/* ===== v11: 수료증 (종이 질감 · 이중 테두리 · 로제트 · 직인 · A4 가로 인쇄) ===== */
.cert-wrap { margin-top: 14px; container-type: inline-size; }
.cert { position: relative; aspect-ratio: 1.414 / 1; padding: clamp(12px, 2.2cqw, 24px); border-radius: 6px; text-align: center; color: #1c1b17; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 50%, rgba(255, 253, 246, .95) 0 55%, transparent 100%),
    repeating-radial-gradient(circle at 0 0, transparent 0 16px, rgba(var(--theme-rgb), .10) 16px 17px),
    repeating-radial-gradient(circle at 100% 100%, transparent 0 16px, rgba(var(--theme-rgb), .10) 16px 17px),
    linear-gradient(180deg, #fffdf6, #fbf7ea);
  box-shadow: 0 34px 70px -34px rgba(14, 15, 12, .5), 0 0 0 1px rgba(14, 15, 12, .07); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cert-inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; padding: clamp(18px, 4cqw, 44px) clamp(18px, 5cqw, 60px) clamp(14px, 2.6cqw, 28px);
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 7px rgba(255, 253, 246, .9), inset 0 0 0 8px rgba(14, 15, 12, .55); }
.cert-corner { position: absolute; width: clamp(18px, 3.4cqw, 34px); height: clamp(18px, 3.4cqw, 34px); border: 3px solid var(--ink); }
.cert-corner::after { content: ""; position: absolute; inset: 5px; border: 1.5px solid var(--accent); }
.cert-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.cert-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.cert-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.cert-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.cert-corner.tl::after { border-right: 0; border-bottom: 0; } .cert-corner.tr::after { border-left: 0; border-bottom: 0; }
.cert-corner.bl::after { border-right: 0; border-top: 0; } .cert-corner.br::after { border-left: 0; border-top: 0; }
.cert-rosette { position: absolute; top: clamp(14px, 3cqw, 30px); right: clamp(22px, 5cqw, 56px); width: clamp(54px, 11cqw, 104px); height: auto; filter: drop-shadow(0 6px 10px rgba(14, 15, 12, .2)); }
.cert-head { display: flex; align-items: center; gap: 10px; }
.cert .cert-mark.logo-mark { width: clamp(26px, 4.4cqw, 40px); height: clamp(26px, 4.4cqw, 40px); margin: 0; }
.cert-brand { font-size: clamp(11px, 1.5cqw, 14px); font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.cert .cert-eyebrow { margin: clamp(10px, 2.2cqw, 22px) 0 0; max-width: none; font-size: clamp(9px, 1.25cqw, 12px); font-weight: 800; letter-spacing: .42em; color: #8a8576; }
.cert .cert-title { margin: clamp(4px, .8cqw, 8px) 0 0; font-family: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif; font-size: clamp(30px, 6.2cqw, 60px); font-weight: 900; letter-spacing: .32em; text-indent: .32em; line-height: 1.15; color: #12110e; }
.cert .cert-no { margin: clamp(2px, .6cqw, 6px) 0 0; max-width: none; font-size: clamp(9px, 1.15cqw, 11px); letter-spacing: .08em; color: #8a8576; }
.cert-name { display: flex; align-items: baseline; justify-content: center; gap: clamp(8px, 1.6cqw, 16px); margin: clamp(12px, 2.6cqw, 26px) 0 0; padding: 0 clamp(14px, 4cqw, 44px) clamp(4px, .8cqw, 8px); border-bottom: 2px solid var(--ink); }
.cert-name small { font-size: clamp(10px, 1.4cqw, 13px); font-weight: 700; color: #6b675c; letter-spacing: .2em; }
.cert-name span { font-family: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif; font-size: clamp(24px, 4.6cqw, 44px); font-weight: 900; letter-spacing: .12em; color: #12110e; background: none; padding: 0; }
.cert .cert-body { margin: clamp(10px, 2.2cqw, 22px) auto 0; max-width: 620px; font-size: clamp(11px, 1.65cqw, 16px); line-height: 1.9; color: #3a372f; }
.cert .cert-body b { color: #12110e; }
.cert-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: clamp(10px, 2cqw, 20px) 0 0; font-size: clamp(9px, 1.25cqw, 12px); }
.cert-meta div { display: flex; gap: 6px; padding: 0 clamp(8px, 1.6cqw, 16px); }
.cert-meta div + div { border-left: 1px solid rgba(14, 15, 12, .2); }
.cert-meta dt { color: #8a8576; font-weight: 700; }
.cert-meta dd { margin: 0; color: #1c1b17; font-weight: 800; }
.cert .cert-foot { width: 100%; margin-top: auto; padding-top: clamp(10px, 2cqw, 20px); display: flex; justify-content: space-between; align-items: flex-end; text-align: left; font-size: inherit; color: inherit; }
.cert .cert-date { margin: 0; max-width: none; font-family: "Noto Serif KR", "Nanum Myeongjo", serif; font-size: clamp(12px, 1.8cqw, 17px); font-weight: 700; color: #1c1b17; }
.cert .cert-sign { position: relative; display: grid; justify-items: end; gap: 2px; padding-right: clamp(52px, 10.5cqw, 108px); text-align: right; }
.cert-org { font-size: clamp(10px, 1.3cqw, 13px); font-weight: 700; color: #6b675c; }
.cert-who { font-size: clamp(12px, 1.8cqw, 17px); color: #3a372f; padding-bottom: 4px; border-bottom: 1px solid rgba(14, 15, 12, .35); }
.cert-who b { font-family: "Noto Serif KR", "Nanum Myeongjo", serif; font-size: 1.25em; font-weight: 900; color: #12110e; margin-left: 6px; }
.cert-seal { position: absolute; right: 0; bottom: -6px; width: clamp(46px, 9cqw, 88px); height: auto; color: #c8102e; opacity: .88; transform: rotate(-9deg); mix-blend-mode: multiply; }
.cert .cert-powered { margin: clamp(6px, 1.2cqw, 12px) 0 0; max-width: none; }
.cert .cert-powered .powered { font-size: 10px; color: #8a8576; }
.cert .cert-powered .doogo-logo { height: 12px; }
.cert.locked > *:not(.cert-lock) { filter: blur(3px); opacity: .5; }
.cert .cert-lock { background: radial-gradient(60% 60% at 50% 50%, rgba(255, 253, 246, .85), transparent 100%); }
.cert .cert-lock .btn { margin-top: 6px; }
.cert-ribbon { position: absolute; top: 22px; left: -46px; width: 180px; padding: 6px 0; transform: rotate(-35deg); background: #c8102e; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; text-align: center; box-shadow: 0 6px 14px rgba(200, 16, 46, .35); z-index: 2; }
@container (max-width: 640px) {
  .cert { aspect-ratio: auto; }
  .cert-inner { padding: 30px 18px 18px; }
  .cert .cert-title { font-size: 34px; }
  .cert-name span { font-size: 28px; }
  .cert .cert-body { font-size: 13px; }
  .cert-meta { flex-direction: column; align-items: center; gap: 4px; }
  .cert-meta div + div { border-left: 0; }
  .cert .cert-foot { flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-top: 22px; }
  .cert .cert-sign { justify-items: center; padding-right: 0; padding-top: 6px; }
  .cert-seal { position: relative; bottom: 0; width: 64px; margin-top: 4px; }
  .cert-rosette { width: 46px; top: 16px; right: 16px; }
  .cert .cert-eyebrow { font-size: 9px; letter-spacing: .2em; }
  .cert-ribbon { top: 16px; left: -54px; width: 160px; font-size: 10px; }
}
@media print {
  @page { size: A4 landscape; margin: 8mm; }
  .cert-wrap { margin: 0; container-type: normal; }
  .cert { width: 281mm; height: 194mm; aspect-ratio: auto; box-shadow: none; border-radius: 0; }
  .cert-inner { padding: 16mm 18mm 8mm; }
  .cert .cert-title { font-size: 46pt; } .cert-name span { font-size: 34pt; } .cert .cert-body { font-size: 13pt; }
  .cert-rosette { width: 30mm; } .cert-seal { width: 26mm; }
}
.cert-lock .btn .icon { width: 18px; height: 18px; }
@media print { #toast-root, .toast, .cert-ribbon { display: none !important; } }
/* 휴대폰 · 태블릿: 헤더 아래 얇은 시간 띠 */
.wclock.strip { display: none; }
@media (max-width: 1023px) {
  .wclock.strip { display: flex; justify-content: center; gap: 8px; padding: 6px 12px; background: var(--canvas); border-bottom: 1px solid var(--line-soft); position: sticky; top: var(--header-h); z-index: 39; }
  .wclock.strip .wc-cell { padding: 2px 10px 2px 3px; box-shadow: none; background: var(--canvas-softer); }
  .wclock.strip .wc-flag { width: 24px; height: 24px; }
  .wclock.strip .wc-txt { grid-template-columns: auto auto auto; column-gap: 5px; }
  .wclock.strip .wc-txt small { grid-column: auto; font-size: 11px; }
  .wclock.strip .wc-txt b { font-size: 14px; }
  .wclock.strip .wc-txt em, .wclock.strip .wc-gap { display: none; }
  .wclock.strip .wc-sub { font-size: 9px; padding: 1px 6px; }
  .wclock.side { display: none; }
}
@media (max-width: 380px) { .wclock.strip .wc-sub { display: none; } }
/* 1:1 소통채널: 머리말 · 링크 없는 안내 카드 */
.ch-tag { align-self: flex-start; padding: 4px 11px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ch, var(--ink)) 12%, #fff); color: color-mix(in srgb, var(--ch, var(--ink)) 85%, #000); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.ch-card { position: relative; overflow: hidden; border: 0; padding: 26px; }
.ch-bar { position: absolute; inset: 0 0 auto; height: 5px; background: var(--ch, transparent); }
.ch-card .ch-info .icon { color: var(--ch, var(--ink)); }
.ch-card.info { cursor: default; }
.ch-info { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 12px 14px; border-radius: var(--r-md); background: var(--canvas-softer); color: var(--body); font-size: 13px; font-weight: 600; line-height: 1.55; text-align: left; }
.ch-info .icon { flex: none; margin-top: 1px; color: var(--ink); }

/* ===== v12: 카카오톡 · 네이버 표시 / 제휴채널 ===== */
.bmark { display: block; flex: none; width: 24px; height: 24px; }
.bmark.xs { width: 16px; height: 16px; border-radius: 4px; }
.bmark.sm { width: 22px; height: 22px; }
.bmark.md { width: 40px; height: 40px; }
.ch-icon { position: relative; }
.ch-badge { position: absolute; right: -7px; bottom: -7px; width: 24px; height: 24px; border-radius: 7px; box-shadow: 0 0 0 2.5px #fff, 0 3px 8px rgba(14, 15, 12, .25); overflow: hidden; }
.ch-badge .bmark { width: 100%; height: 100%; }
.ch-via { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.ch-via b { font-weight: 700; color: var(--ink); }
.ch-go.kakao { background: #fee500; color: #191600; padding-left: 8px; gap: 8px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08); }
.ch-go.naver { background: #03c75a; color: #fff; padding-left: 8px; gap: 8px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .1); }
.ch-go.kakao .bmark, .ch-go.naver .bmark { border-radius: 6px; }
.ch-go.naver .bmark rect { fill: #fff; } .ch-go.naver .bmark path { fill: #03c75a; }
.pt-notice { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; padding: 16px 20px; border-radius: var(--r-xl); background: linear-gradient(100deg, #e9faf0, #fff 70%); border: 1.5px solid #03c75a; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.pt-notice:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -20px rgba(3, 199, 90, .6); }
.pt-notice > span { flex: 1; display: grid; gap: 2px; min-width: 0; }
.pt-notice b { font-size: 15px; font-weight: 800; color: var(--ink); }
.pt-notice small { font-size: 13px; color: var(--body); }
.pt-notice > .icon { flex: none; color: #03a64b; }
.pt-tabs { margin-bottom: 4px; }
.pt-tabs .fnum { margin-left: 4px; }
.pt-sec .section-head { margin-top: 26px; }
.pt-feature { grid-column: 1 / -1; padding: 30px 30px 26px; background: radial-gradient(70% 120% at 100% 0%, rgba(3, 199, 90, .10), transparent 60%), var(--canvas); }
.pt-feature .ch-icon { width: 60px; height: 60px; border-radius: 18px; }
.pt-feature .ch-icon .icon { width: 28px; height: 28px; }
.pt-feature .res-title { font-size: 24px; }
.pt-feature .res-desc { font-size: 15px; color: var(--ink); max-width: 680px; }
.pt-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pt-points li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-pill); background: #e9faf0; color: #05753a; font-size: 13px; font-weight: 700; }
.pt-points li .icon { width: 14px; height: 14px; }
@media (max-width: 720px) {
  .pt-feature { padding: 22px 20px; }
  .pt-feature .res-title { font-size: 20px; }
  .pt-notice { padding: 14px 16px; align-items: flex-start; }
  .pt-notice .bmark.md { width: 32px; height: 32px; }
}

/* ===== 서버 연결: 처음 불러오는 화면 ===== */
.boot-wait { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; font-size: 15px; color: #5d6168; }
.boot-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .1); border-top-color: #163300; animation: bootspin .8s linear infinite; }
.boot-err b { font-size: 18px; color: #0e0f0c; }
.boot-err button { margin-top: 6px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: #163300; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
@keyframes bootspin { to { transform: rotate(360deg); } }

/* 로그인 카드 위 두고 클래스 로고 (새 로고 — 모양은 home.css .hm-lock) */
.login-label .hm-lock { --lh: 30px; }

/* 약관 팝업 (legal.js): 소제목 · 문단 · 점 목록 */
.legal-doc { max-height: 60vh; overflow: auto; font-size: 14px; line-height: 1.7; color: #4a4a4a; text-align: left; white-space: normal; }
.legal-doc h4 { margin: 18px 0 6px; font-size: 15px; font-weight: 700; color: #222; letter-spacing: -0.01em; }
.legal-doc h4:first-child { margin-top: 0; }
.legal-doc p { margin: 0 0 8px; }
.legal-doc ul { margin: 0 0 10px; padding-left: 18px; }
.legal-doc li { margin: 3px 0; }
.legal-doc a { color: inherit; text-decoration: underline; word-break: break-all; }
