/* FYG 학습센터 — 플레이어 + 가상 화면 UI 키트 (Phase 14) */
:root {
  --ls-ink: #0f172a; --ls-sub: #64748b; --ls-line: #e2e8f0; --ls-bg: #f8fafc;
  --ls-blue: #0d6efd; --ls-amber: #f59e0b; --ls-green: #10b981; --ls-red: #ef4444; --ls-violet: #7c3aed;
}

/* ───────── 페이지 레이아웃 ───────── */
.learn-wrap { max-width: 1180px; margin: 0 auto; padding: 1rem .75rem 3rem; }
.ls-crumb { font-size: .85rem; color: var(--ls-sub); margin-bottom: .5rem; }
.ls-crumb a { color: var(--ls-sub); text-decoration: none; }
.ls-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; flex-wrap: wrap; }
.ls-head .ls-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.2rem; flex-shrink: 0; }
.ls-head h1 { font-size: 1.35rem; margin: 0; font-weight: 700; }
.ls-head .ls-sub { color: var(--ls-sub); font-size: .9rem; }
.ls-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 1rem; align-items: start; }
@media (max-width: 991px) { .ls-layout { grid-template-columns: 1fr; } }

/* ───────── 무대 ───────── */
.ls-stage { position: relative; width: 100%; overflow: hidden; border-radius: 14px; background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .16), 0 0 0 1px rgba(15, 23, 42, .06); user-select: none; }
.ls-inner { position: absolute; left: 0; top: 0; width: 960px; height: 540px; transform-origin: 0 0; overflow: hidden;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif; font-size: 13px; color: var(--ls-ink); }
.ls-screen { position: absolute; inset: 0; transition: transform .75s cubic-bezier(.2, .8, .2, 1); }
.ls-fadein { animation: lsFade .45s ease; }
@keyframes lsFade { from { opacity: 0; } to { opacity: 1; } }

.ls-cursor { position: absolute; left: 0; top: 0; z-index: 60; width: 26px; height: 26px; pointer-events: none;
  transition-property: transform; transition-timing-function: cubic-bezier(.45, .05, .25, 1); opacity: 0; margin: -3px 0 0 -4px; }
.ls-cursor.on { opacity: 1; }
.ls-cursor svg { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.ls-ripple { position: absolute; z-index: 59; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  border: 3px solid var(--ls-amber); pointer-events: none; animation: lsRipple .65s ease-out forwards; }
@keyframes lsRipple { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }

.ls-spot { position: absolute; z-index: 40; border-radius: 10px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2400px rgba(15, 23, 42, .55); outline: 3px solid #fbbf24; outline-offset: 0;
  transition: left .45s ease, top .45s ease, width .45s ease, height .45s ease, opacity .3s; }
.ls-spot.on { opacity: 1; }
.ls-spot-label { position: absolute; z-index: 41; max-width: 300px; padding: 9px 13px; border-radius: 10px; background: #fff;
  color: var(--ls-ink); font-size: 14px; font-weight: 600; line-height: 1.4; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s, left .45s, top .45s; pointer-events: none; }
.ls-spot-label.on { opacity: 1; transform: none; }
.ls-spot-label::before { content: '💡 '; }

.ls-hide { display: none !important; }
.ls-anim-show { animation: lsShow .38s ease both; }
.ls-anim-pop { animation: lsPop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes lsShow { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lsPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.ls-pressed { transform: scale(.94) !important; filter: brightness(.9); transition: transform .12s, filter .12s; }
.ls-typing::after { content: '|'; margin-left: 1px; animation: lsBlink .8s steps(1) infinite; color: var(--ls-blue); }
@keyframes lsBlink { 50% { opacity: 0; } }
.ls-instant *, .ls-instant *::before, .ls-instant *::after, .ls-instant .ls-screen { transition: none !important; animation: none !important; }

.ls-confetti { position: absolute; z-index: 70; width: 9px; height: 14px; border-radius: 2px; pointer-events: none;
  animation: lsConf 1.6s cubic-bezier(.15, .6, .3, 1) forwards; }
@keyframes lsConf { to { transform: translate(var(--dx), calc(var(--dy) + 520px)) rotate(var(--rot)); opacity: 0; } }

/* 표지 · 끝 화면 */
.ls-cover, .ls-outro { position: absolute; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; background: radial-gradient(1200px 500px at 20% 0%, #1e3a8a 0%, #0f172a 60%); }
.ls-cover .cv-badge, .ls-outro .cv-badge { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: 14px; }
.ls-cover .cv-icon { width: 86px; height: 86px; border-radius: 24px; display: grid; place-items: center; font-size: 40px; margin-bottom: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35); animation: lsPop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.ls-cover h2 { font-size: 40px; font-weight: 800; margin: 0 0 10px; letter-spacing: -.02em; }
.ls-cover p { font-size: 18px; opacity: .8; margin: 0 0 28px; }
.ls-cover .cv-play { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--ls-amber); color: #111; font-size: 28px;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, .7); animation: lsPulse 1.8s infinite; cursor: pointer; }
.ls-cover .cv-meta { margin-top: 16px; font-size: 14px; opacity: .65; }
@keyframes lsPulse { 70% { box-shadow: 0 0 0 22px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
.ls-outro h2 { font-size: 38px; font-weight: 800; margin: 0 0 12px; }
.ls-outro p { font-size: 20px; opacity: .85; margin: 0; }
.ls-outro .url { margin-top: 26px; font-size: 26px; font-weight: 700; color: #fbbf24; }
.ls-stage-caption { display: none; }

/* 자막 · 컨트롤 */
.ls-caption { margin-top: .75rem; min-height: 3.6em; padding: .8rem 1rem; border-radius: 12px; background: #0f172a; color: #f8fafc;
  font-size: 1.05rem; line-height: 1.55; word-break: keep-all; display: flex; gap: .6rem; }
.ls-caption::before { content: '\f075'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: #fbbf24; }
.ls-controls { display: flex; align-items: center; gap: .4rem; margin-top: .6rem; }
.ls-controls .btn { min-width: 40px; }
.ls-progress { flex: 1; height: 6px; background: var(--ls-line); border-radius: 99px; overflow: hidden; margin: 0 .5rem; }
.ls-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--ls-blue), var(--ls-violet)); transition: width .4s; }
.ls-count { font-size: .85rem; color: var(--ls-sub); min-width: 52px; text-align: right; }

.ls-side { background: #fff; border: 1px solid var(--ls-line); border-radius: 14px; padding: .9rem; }
.ls-side h6 { font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }
.ls-toc { list-style: none; padding: 0; margin: 0; counter-reset: toc; max-height: 340px; overflow: auto; }
.ls-toc li { counter-increment: toc; padding: .42rem .5rem .42rem 2rem; position: relative; border-radius: 8px; font-size: .88rem; cursor: pointer; color: #334155; }
.ls-toc li::before { content: counter(toc); position: absolute; left: .45rem; top: .42rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--ls-line); color: var(--ls-sub); font-size: .7rem; display: grid; place-items: center; }
.ls-toc li:hover { background: var(--ls-bg); }
.ls-toc li.seen::before { background: #c7d2fe; color: #3730a3; }
.ls-toc li.active { background: #eef2ff; color: #3730a3; font-weight: 600; }
.ls-toc li.active::before { background: var(--ls-blue); color: #fff; }

/* 퀴즈 · 완료 */
.ls-end { margin-top: 1.25rem; }
.ls-quiz { background: #fff; border: 1px solid var(--ls-line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.ls-q { margin-bottom: 1rem; }
.ls-q .q-title { font-weight: 700; margin-bottom: .45rem; }
.ls-q .q-opt { display: block; width: 100%; text-align: left; border: 1px solid var(--ls-line); background: #fff; border-radius: 10px;
  padding: .55rem .8rem; margin-bottom: .35rem; transition: all .15s; }
.ls-q .q-opt:hover:not([disabled]) { border-color: var(--ls-blue); background: #f0f6ff; }
.ls-q .q-opt.correct { border-color: var(--ls-green); background: #ecfdf5; color: #065f46; font-weight: 600; }
.ls-q .q-opt.wrong { border-color: var(--ls-red); background: #fef2f2; color: #991b1b; }
.ls-q .q-explain { font-size: .88rem; color: #475569; background: var(--ls-bg); border-radius: 8px; padding: .5rem .7rem; margin-top: .3rem; }
.ls-done { position: relative; overflow: hidden; text-align: center; border-radius: 16px; padding: 1.6rem 1rem;
  background: linear-gradient(135deg, #1e3a8a, #7c3aed); color: #fff; margin-top: 1rem; }
.ls-done .badge-big { font-size: 3rem; line-height: 1; animation: lsPop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.ls-done h3 { font-weight: 800; margin: .5rem 0 .25rem; }
.ls-done .btn-light { font-weight: 600; }

/* ───────── 영상 모드 ───────── */
body.ls-video { margin: 0; background: #000; overflow: hidden; }
body.ls-video .learn-wrap { max-width: none; padding: 0; }
body.ls-video .ls-stage { border-radius: 0; box-shadow: none; width: 100vw; }
body.ls-video .ls-stage-caption { display: block; position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 75;
  max-width: 860px; padding: 8px 18px; border-radius: 10px; background: rgba(15, 23, 42, .86); color: #fff; font-size: 19px; line-height: 1.45;
  text-align: center; word-break: keep-all; }
body.ls-video .ls-stage-caption:empty { display: none; }
body.ls-video .ls-cursor svg { transform: scale(1.1); }

/* ───────── 학습센터 홈 ───────── */
.lh-hero { border-radius: 18px; padding: 1.6rem 1.6rem; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(900px 300px at 10% -10%, #3b82f6 0%, #1e3a8a 45%, #0f172a 100%); margin-bottom: 1.25rem; }
.lh-hero h1 { font-weight: 800; font-size: 1.7rem; margin-bottom: .35rem; }
.lh-hero p { opacity: .85; margin: 0; }
.lh-ring { position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); width: 104px; height: 104px; }
.lh-ring svg { transform: rotate(-90deg); }
.lh-ring .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.lh-ring .num small { display: block; font-size: .7rem; font-weight: 500; opacity: .75; }
@media (max-width: 576px) { .lh-ring { position: static; transform: none; margin-top: 1rem; } }
.lh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.lh-card { position: relative; background: #fff; border: 1px solid var(--ls-line); border-radius: 16px; padding: 1.1rem 1.1rem 1rem;
  text-decoration: none; color: var(--ls-ink); transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.lh-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 23, 42, .12); color: var(--ls-ink); }
.lh-card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 1.25rem; margin-bottom: .7rem; }
.lh-card .no { position: absolute; right: 1rem; top: .9rem; font-size: .78rem; font-weight: 700; color: #94a3b8; }
.lh-card h5 { font-weight: 700; font-size: 1.05rem; margin-bottom: .25rem; }
.lh-card p { color: var(--ls-sub); font-size: .88rem; margin-bottom: .8rem; flex: 1; }
.lh-card .meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--ls-sub); }
.lh-card .done-badge { margin-left: auto; color: #059669; font-weight: 700; }
.lh-card.done { border-color: #a7f3d0; background: linear-gradient(180deg, #f0fdf4, #fff 50%); }
.lh-tip { border: 1px dashed #cbd5e1; border-radius: 14px; padding: 1rem 1.1rem; margin-top: 1.25rem; color: #334155; font-size: .92rem; background: #fff; }

/* ───────── 가상 화면 UI 키트 (mk-*) ───────── */
.mk-app { position: absolute; inset: 0; display: flex; flex-direction: column; background: #f5f7fb; }
.mk-browser { height: 30px; flex-shrink: 0; background: #e5e7eb; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.mk-browser i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mk-browser i:nth-child(1) { background: #f87171; } .mk-browser i:nth-child(2) { background: #fbbf24; } .mk-browser i:nth-child(3) { background: #34d399; }
.mk-url { margin-left: 14px; flex: 1; max-width: 520px; height: 20px; border-radius: 10px; background: #fff; font-size: 11px; color: #475569; display: flex; align-items: center; padding: 0 10px; }
.mk-url::before { content: '🔒'; font-size: 9px; margin-right: 6px; }
.mk-nav { position: relative; z-index: 26; height: 42px; flex-shrink: 0; background: #0d6efd; color: #fff; display: flex; align-items: center; gap: 4px; padding: 0 14px; }
.mk-brand { font-weight: 800; font-size: 15px; margin-right: 14px; white-space: nowrap; }
.mk-menu { padding: 5px 9px; border-radius: 6px; font-size: 12.5px; opacity: .92; white-space: nowrap; position: relative; }
.mk-menu.active, .mk-menu.hl { background: rgba(255, 255, 255, .2); opacity: 1; }
.mk-nav .mk-right { margin-left: auto; font-size: 12px; opacity: .9; }
.mk-drop { position: absolute; top: 34px; left: 0; z-index: 20; min-width: 168px; background: #fff; color: var(--ls-ink); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18); padding: 6px; }
.mk-drop div { padding: 7px 10px; border-radius: 6px; font-size: 12.5px; }
.mk-drop div.hl { background: #eef2ff; color: #3730a3; font-weight: 600; }
.mk-body { flex: 1; position: relative; padding: 14px; min-height: 0; }

.mk-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.mk-card-h { padding: 9px 12px; border-bottom: 1px solid #eef0f4; font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.mk-card-b { padding: 12px; }
.mk-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 600;
  background: #e5e7eb; color: #111827; border: 0; transition: transform .12s; white-space: nowrap; }
.mk-btn.primary { background: #0d6efd; color: #fff; } .mk-btn.success { background: #198754; color: #fff; }
.mk-btn.danger { background: #dc3545; color: #fff; } .mk-btn.warn { background: #f59e0b; color: #111; }
.mk-btn.outline { background: #fff; border: 1px solid #0d6efd; color: #0d6efd; }
.mk-btn.sm { padding: 4px 9px; font-size: 11.5px; }
.mk-label { font-size: 11.5px; font-weight: 700; color: #374151; margin: 0 0 4px; }
.mk-input { width: 100%; height: 32px; border: 1px solid #d1d5db; border-radius: 7px; padding: 0 10px; font-size: 13px; background: #fff;
  display: flex; align-items: center; color: #111827; overflow: hidden; white-space: nowrap; }
.mk-input.tall { height: auto; min-height: 70px; align-items: flex-start; padding: 8px 10px; white-space: normal; line-height: 1.5; }
.mk-input:empty::before { content: attr(data-ph); color: #9ca3af; }
.mk-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.mk-check b { width: 16px; height: 16px; border-radius: 4px; border: 2px solid #9ca3af; display: grid; place-items: center; font-size: 10px; color: transparent; background: #fff; }
.mk-check.on b { background: #0d6efd; border-color: #0d6efd; color: #fff; }
.mk-check b::after { content: '✓'; }
.mk-modal-bg { position: absolute; inset: 0; z-index: 30; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; }
.mk-modal { width: 470px; background: #fff; border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); padding: 16px 18px; }
.mk-modal h4 { font-size: 15px; font-weight: 800; margin: 0 0 12px; }
.mk-field { margin-bottom: 10px; }
.mk-row { display: flex; gap: 10px; } .mk-row > * { flex: 1; }
.mk-badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; background: #e5e7eb; color: #374151; }
.mk-toast { position: absolute; z-index: 35; right: 16px; bottom: 16px; background: #065f46; color: #fff; padding: 9px 14px; border-radius: 10px; font-weight: 600; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.mk-muted { color: #6b7280; font-size: 12px; }

/* 주간 계획 · 일정표 */
.mk-week { display: grid; grid-template-columns: 300px 1fr; gap: 12px; height: 100%; }
.mk-wp-h { background: #343a40; color: #fff; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; border-radius: 10px 10px 0 0; }
.mk-wp-h .t { text-align: center; font-weight: 700; font-size: 13px; line-height: 1.2; }
.mk-wp-h .t small { display: block; font-weight: 400; opacity: .75; font-size: 10.5px; }
.mk-role { border-bottom: 1px solid #eef0f4; }
.mk-role-h { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #f8fafc; font-weight: 700; font-size: 12.5px; }
.mk-role-h .lnk { font-weight: 500; font-size: 10.5px; color: #0d6efd; }
.mk-role-h .plus { margin-left: auto; width: 20px; height: 20px; border-radius: 5px; background: #0d6efd; color: #fff; display: grid; place-items: center; font-weight: 800; }
.mk-role-h .eye { font-size: 10px; color: #9ca3af; }
.mk-goal { margin: 5px 10px; padding: 6px 9px; border-radius: 7px; border-left: 3px solid #4a90d9; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); font-size: 12px; }
.mk-goal.empty { border-left-color: #d1d5db; color: #9ca3af; box-shadow: none; background: #f9fafb; }
.mk-goal.fin { border-left-color: #55a055; color: #9ca3af; text-decoration: line-through; }
.mk-tip { position: absolute; z-index: 25; background: #111827; color: #fff; font-size: 11.5px; padding: 8px 10px; border-radius: 8px; width: 230px; line-height: 1.45; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.mk-cal { display: grid; grid-template-columns: 46px repeat(7, 1fr); font-size: 11px; }
.mk-cal .hd { background: #212529; color: #fff; text-align: center; padding: 5px 0; line-height: 1.25; }
.mk-cal .hd small { display: block; opacity: .7; font-size: 9.5px; }
.mk-cal .hd.today { background: #0d6efd; }
.mk-cal .sec { grid-column: 1 / -1; background: #f1f3f5; font-weight: 700; font-size: 10.5px; padding: 3px 8px; color: #495057; border-top: 1px solid #dee2e6; }
.mk-cal .tm { color: #6c757d; text-align: right; padding: 2px 5px 0 0; border-top: 1px solid #e5e7eb; height: 30px; }
.mk-cal .c { border-left: 1px solid #eef0f4; border-top: 1px solid #e5e7eb; height: 30px; position: relative; }
.mk-cal .c.com { height: 26px; }
.mk-cal .c.hover { background: #e7f1ff; }
.mk-ev { position: absolute; left: 2px; right: 2px; top: 2px; z-index: 2; background: #fff; border-left: 3px solid #4a90d9; border-radius: 4px; padding: 2px 4px;
  font-size: 10px; line-height: 1.25; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); overflow: hidden; }
.mk-ev.fin { border-left-color: #55a055; color: #888; text-decoration: line-through; }
.mk-ev.tall2 { height: 56px; } .mk-ev.tall3 { height: 86px; }
.mk-weather { font-size: 9.5px; }

/* 스티키 노트 */
.mk-board { position: absolute; inset: 52px 14px 14px; border-radius: 10px; background: #fff; background-image: radial-gradient(#e5e7eb 1px, transparent 1px); background-size: 18px 18px; border: 1px solid #e5e7eb; }
.mk-note { position: absolute; width: 170px; border-radius: 6px; box-shadow: 0 6px 14px rgba(0, 0, 0, .14); font-size: 12px; transition: left .9s cubic-bezier(.3, .8, .3, 1), top .9s cubic-bezier(.3, .8, .3, 1), transform .3s; }
.mk-note .nh { padding: 6px 8px; font-weight: 800; cursor: move; border-bottom: 1px dashed rgba(0, 0, 0, .12); }
.mk-note .nb { padding: 7px 8px; min-height: 40px; line-height: 1.4; }
.mk-note .na { display: flex; gap: 2px; padding: 3px 5px 5px; justify-content: flex-end; }
.mk-note .na span { width: 22px; height: 20px; border-radius: 4px; display: grid; place-items: center; font-size: 10.5px; color: #374151; }
.mk-note .na span.hl { background: rgba(0, 0, 0, .1); }
.mk-note .due { font-size: 10px; color: #b91c1c; font-weight: 700; padding: 0 8px; }
.mk-note.y { background: #fef3c7; } .mk-note.p { background: #fce7f3; } .mk-note.b { background: #dbeafe; } .mk-note.g { background: #dcfce7; }
.mk-note.done { opacity: 0; transform: scale(.6) rotate(-6deg); transition: opacity .5s, transform .5s; }
.mk-colors { display: inline-flex; gap: 5px; margin-left: 8px; }
.mk-colors i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px #d1d5db; }

/* 채팅 */
.mk-chat { display: grid; grid-template-columns: 200px 1fr; height: 100%; gap: 0; background: #fff; border-radius: 10px; border: 1px solid #e5e7eb; overflow: hidden; }
.mk-side { background: #f8fafc; border-right: 1px solid #e5e7eb; padding: 10px; }
.mk-conv { padding: 7px 8px; border-radius: 7px; font-size: 11.5px; margin-bottom: 4px; color: #374151; display: flex; }
.mk-conv.active { background: #e0e7ff; font-weight: 700; }
.mk-msgs { display: flex; flex-direction: column; padding: 12px 14px; gap: 8px; height: 100%; min-height: 0; overflow: hidden; }
.mk-msgs .flow { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; min-height: 0; }
.mk-bubble { max-width: 72%; padding: 8px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.5; }
.mk-bubble.user { align-self: flex-end; background: #0d6efd; color: #fff; border-bottom-right-radius: 4px; }
.mk-bubble.bot { align-self: flex-start; background: #f1f5f9; border-bottom-left-radius: 4px; }
.mk-tool { align-self: flex-start; font-size: 11px; color: #6366f1; background: #eef2ff; border-radius: 99px; padding: 3px 10px; }
.mk-compose { display: flex; gap: 6px; align-items: center; }
.mk-compose .mk-input { flex: 1; height: 36px; border-radius: 18px; }
.mk-round { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #e5e7eb; flex-shrink: 0; }
.mk-round.primary { background: #0d6efd; color: #fff; }
.mk-dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; margin: 0 2px; animation: lsDot 1s infinite; }
.mk-dots i:nth-child(2) { animation-delay: .15s; } .mk-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes lsDot { 50% { transform: translateY(-4px); opacity: .5; } }

/* 텔레그램 휴대폰 */
.mk-phone { position: absolute; width: 290px; height: 500px; top: 20px; border-radius: 34px; background: #111; padding: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.mk-phone .scr { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(180deg, #cfe3c4, #e9eed9); }
.tg-h { background: #517da2; color: #fff; padding: 22px 12px 9px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.tg-h .av { width: 28px; height: 28px; border-radius: 50%; background: #f59e0b; display: grid; place-items: center; font-size: 13px; }
.tg-h small { display: block; font-weight: 400; font-size: 10px; opacity: .8; }
.tg-flow { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; overflow: hidden; }
.tg-m { max-width: 86%; padding: 6px 9px; border-radius: 10px; font-size: 11.5px; line-height: 1.45; background: #fff; align-self: flex-start; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); white-space: pre-line; }
.tg-m.me { align-self: flex-end; background: #effdde; }
.tg-btns { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 4px; align-self: stretch; }
.tg-btns span { background: rgba(81, 125, 162, .85); color: #fff; font-size: 11px; text-align: center; padding: 6px 2px; border-radius: 7px; }
.tg-btns span.hl { background: #2e5c86; }
.tg-in { background: #fff; padding: 8px 10px; font-size: 11.5px; color: #9ca3af; display: flex; align-items: center; gap: 6px; }
.tg-in .txt { flex: 1; color: #111; min-height: 16px; }

/* 개념 화면 */
.lx { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(900px 420px at 50% -10%, #eef2ff 0%, #fff 60%); padding: 30px; }
.lx h2 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.lx h2 em { font-style: normal; color: #0d6efd; }
.lx p.lead { font-size: 16px; color: #475569; margin: 0 0 26px; }
.lx-flow { display: flex; align-items: stretch; gap: 14px; }
.lx-box { width: 168px; border-radius: 16px; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 10px 24px rgba(15, 23, 42, .08); padding: 16px 12px; }
.lx-box .e { font-size: 30px; margin-bottom: 6px; }
.lx-box b { display: block; font-size: 15px; margin-bottom: 4px; }
.lx-box span { font-size: 12px; color: #64748b; line-height: 1.45; display: block; }
.lx-arrow { align-self: center; font-size: 22px; color: #94a3b8; }
.lx-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 720px; }
.lx-chip { padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid #e5e7eb; font-weight: 700; font-size: 14px; box-shadow: 0 4px 10px rgba(0, 0, 0, .05); }
.lx-big { font-size: 64px; margin-bottom: 8px; }
.ls-ok { background: #d1fae5 !important; color: #065f46 !important; }

/* 유튜브 영상 보기 (누르기 전에는 썸네일만) */
.ls-mode .btn { white-space: nowrap; }
.ls-yt-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .16); }
.ls-yt-frame img, .ls-yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.ls-yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 0; background: none; color: #ff0033;
  font-size: 4.2rem; line-height: 1; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .45)); transition: transform .15s; }
.ls-yt-frame:hover .ls-yt-play { transform: translate(-50%, -50%) scale(1.08); }
.lh-card .yt-badge { color: #ff0033; }
.lh-hero .btn-yt { background: #ff0033; color: #fff; border: 0; font-weight: 700; margin-top: .9rem; }
.lh-hero .btn-yt:hover { background: #e0002d; color: #fff; }
