/* 말문해 · 화면 (11/21) — 시안: 흰 카드 · 에메랄드 · 민트, 말풍선 문 캐릭터
   휴대폰 = 위 로고 · 아래 메뉴 5개(홈 · 학습 · 복습 · 리포트 · 설정) / PC = 같은 카드를 왼쪽 메뉴와 함께 넓게 */
:root {
  --g: #0a9a7e; --g2: #078067; --g3: #05624f; --gl: #16c3a0; --gl2: #7fe3cb;
  --mint: #dff6ef; --mint2: #ecf9f5; --mint3: #f4fbf9;
  --bg: #f3f9f7; --card: #fff; --ink: #0f2a33; --ink2: #3c5560; --sub: #75878d; --line: #e3edea; --line2: #eef4f2;
  --ok: #0a9a7e; --ng: #e0584c; --gold: #f2b23a;
  --t-listen: #dcf5f0; --t-listen-c: #0a9a7e; --t-read: #e2eefd; --t-read-c: #3a78dd; --t-spk: #fcf0da; --t-spk-c: #d18712; --t-write: #eee9fd; --t-write-c: #7556dd;
  --en: #0a9a7e; --ko: #2f9bd6; --hj: #d3902a; --ja: #e0587e;
  --r: 22px; --r2: 16px; --sh: 0 1px 2px rgba(10, 60, 50, .04), 0 12px 30px -20px rgba(10, 80, 64, .28);
  --top: 68px; --rail: 228px;
  --ff: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  /* 예전 이름 (선생님 · 원장 화면이 씀) */
  --tl: var(--g); --tl2: var(--g2); --tl3: var(--g3); --tl4: #044a3c;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--ff); color: var(--ink); background: var(--bg); background-image: radial-gradient(900px 520px at 100% -10%, #dcf4ec 0, transparent 62%), radial-gradient(760px 480px at -10% 105%, #e3f4f8 0, transparent 60%); background-attachment: fixed; -webkit-font-smoothing: antialiased; word-break: keep-all; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #5fd3bf; outline-offset: 2px; border-radius: 10px; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 로고 (말풍선 문 + 언어 + 말문해) ---------- */
.mh-logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; flex: none; }
.mh-ic { position: relative; width: 52px; height: 52px; flex: none; margin-top: -4px; }
.mh-ic svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mh-ic text { font-family: var(--ff); }
.mh-ic em { position: absolute; left: 10%; top: 25%; width: 52%; height: 46%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 14px; letter-spacing: -.08em; color: #0d2b35; line-height: 1; }
.mh-ic em.s { font-size: 10.5px; letter-spacing: -.1em; }
.mh-wm { height: 26px; width: auto; display: block; }

/* ---------- 상단 바 ---------- */
.ml-top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 16px; padding: 0 24px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.ml-lsw { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 800; font-size: 15px; color: var(--ink); }
.ml-lsw i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--g)); }
.ml-lsw svg { width: 16px; height: 16px; color: var(--sub); }
.ml-langs { display: flex; gap: 4px; align-items: center; min-width: 0; }
.ml-langs a { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink2); white-space: nowrap; }
.ml-langs a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--g)); }
.ml-langs a:hover { background: var(--mint3); }
.ml-langs a.on { background: var(--mint); color: var(--g3); }
.ml-tr { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: none; }
.ml-tr > a { border: 0; background: none; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 10px; border-radius: 10px; color: var(--ink2); }
.ml-tr > a:hover { background: var(--mint3); }
.ml-guide { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; margin: 0 4px; }
.ml-guide svg, .ml-bell svg { width: 20px; height: 20px; }
.ml-bell { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--ink); }
.ml-bell:hover { background: var(--mint3); }
.ml-bell i { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: #ef5a4c; border: 2px solid #fff; }
.ml-av { display: inline-flex; align-items: center; border: 0; background: none; padding: 2px; border-radius: 999px; }
.ml-av b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--g3); font-size: 16px; font-weight: 800; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.ml-av b.own { background: var(--g); color: #fff; font-size: 13px; }
.ml-av svg { display: none; }
.ml-pop { position: fixed; z-index: 60; top: calc(var(--top) - 2px); right: 16px; width: 280px; max-height: calc(100vh - var(--top) - 20px); overflow: auto; background: #fff; border-radius: 20px; box-shadow: 0 24px 50px -20px rgba(0, 50, 40, .45); border: 1px solid var(--line); padding: 8px; }
.ml-pop .h { padding: 10px 12px 12px; border-bottom: 1px solid var(--line2); margin-bottom: 4px; }
.ml-pop .h b { display: block; font-size: 16px; } .ml-pop .h small { color: var(--sub); font-size: 13px; }
.ml-pop a, .ml-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; background: none; border-radius: 12px; text-decoration: none; font-size: 15px; text-align: left; }
.ml-pop a svg, .ml-pop button svg { width: 19px; height: 19px; color: var(--g2); }
.ml-pop a:hover, .ml-pop button:hover { background: var(--mint3); }
.ml-pop .out { color: #c0453a; } .ml-pop .out svg { color: #c0453a; }
.ml-pop .nt { padding: 10px 12px; font-size: 14px; color: var(--ink2); border-radius: 12px; line-height: 1.55; }
.ml-pop .nt + .nt { border-top: 1px solid var(--line2); }
.ml-pop .nt b { color: var(--g3); }
.ml-pop.lp { left: auto; width: 320px; }
.lpick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; }
.lpick a { flex-direction: column; gap: 4px !important; align-items: flex-start !important; padding: 14px !important; border-radius: 16px !important; background: var(--c2, var(--mint3)) !important; border: 2px solid transparent !important; }
.lpick a.on { border-color: var(--c) !important; }
.lpick a b { font-size: 16px; font-weight: 900; color: var(--ink); }
.lpick a small { font-size: 12px; color: var(--sub); }
.lpick a .mh-ic { width: 52px; height: 52px; }

/* ---------- 틀 ---------- */
.ml-wrap { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 26px; padding: 24px 28px 48px 20px; max-width: 1480px; margin: 0 auto; }
.ml-rail { position: sticky; top: calc(var(--top) + 24px); align-self: start; background: #fff; border-radius: 24px; padding: 14px 10px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 2px; }
.ml-rail a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; text-decoration: none; font-size: 15.5px; font-weight: 600; color: var(--ink2); position: relative; }
.ml-rail a svg { width: 22px; height: 22px; flex: none; color: #6b8189; }
.ml-rail a:hover { background: var(--mint3); }
.ml-rail a.on { background: var(--mint); color: var(--g3); font-weight: 800; }
.ml-rail a.on svg { color: var(--g); }
.ml-rail hr { border: 0; border-top: 1px solid var(--line); margin: 8px 10px; }
.ml-rail .rl { font-size: 12px; font-weight: 700; color: var(--sub); padding: 6px 14px 2px; }
.ml-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ml-load { padding: 80px 0; text-align: center; color: var(--sub); }

/* 쪽 머리 (‹ 제목) */
.ph { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.ph .bk { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: var(--ink); flex: none; margin-left: -6px; }
.ph .bk:hover { background: #fff; }
.ph .bk svg { width: 22px; height: 22px; }
.ph h1 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -.03em; flex: 1; min-width: 0; }
.ph h1 small { font-size: 15px; font-weight: 600; color: var(--sub); margin-left: 8px; letter-spacing: 0; }
.ph .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ---------- 카드 ---------- */
.cd { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 22px 24px; min-width: 0; }
.cd-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.cd-h h2, .cd-h h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.cd-h small { font-size: 13.5px; color: var(--sub); font-weight: 500; }
.cd-h .r { margin-left: auto; font-size: 14px; color: var(--sub); text-decoration: none; }
.cd-h a.r:hover { color: var(--g2); }
.sec-h { display: flex; align-items: baseline; gap: 12px; margin: 6px 2px -6px; flex-wrap: wrap; }
.sec-h h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.sec-h h2 svg { width: 22px; height: 22px; color: var(--g); }
.sec-h p { margin: 0; color: var(--sub); font-size: 14px; }
.sec-h .r { margin-left: auto; font-size: 14px; color: var(--sub); text-decoration: none; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.grid2.eq { grid-template-columns: 1fr 1fr; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.muted { color: var(--sub); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 16px; border: 0; background: var(--g); color: #fff; font-weight: 800; font-size: 17px; text-decoration: none; box-shadow: 0 12px 22px -14px rgba(7, 128, 103, .9); }
.btn:hover { background: var(--g2); }
.btn:disabled { opacity: .45; cursor: default; background: var(--g); }
.btn.wide { width: 100%; height: 56px; border-radius: 18px; font-size: 18px; }
.btn.line { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.line:hover { border-color: #a9dfd0; background: var(--mint3); }
.btn.soft { background: var(--mint); color: var(--g3); box-shadow: none; }
.btn.soft:hover { background: #cfefe5; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--mint); color: var(--g3); font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill.wait { background: #f1f4f3; color: #7a8a85; }
.pill.doing { background: #d4f3ea; color: var(--g3); }
.pill.go { background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pill svg { width: 14px; height: 14px; }
.ic-c { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--g2); flex: none; }
.ic-c svg { width: 22px; height: 22px; }
.ic-c b { font-weight: 900; color: var(--g2); }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--mint); color: var(--g3); font-size: 13px; font-weight: 800; }
.bar { height: 10px; border-radius: 99px; background: #e6efec; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gl), var(--g)); transition: width .8s; }

/* ---------- 홈 ---------- */
.mh-home { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.greet { position: relative; overflow: hidden; border-radius: 28px; padding: 30px 32px 24px; background: linear-gradient(135deg, #ffffff 0%, #f1fbf8 55%, #dff6ee 100%); box-shadow: var(--sh); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; min-height: 230px; }
.greet:before { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(22, 195, 160, .16), transparent 68%); }
.greet > * { position: relative; }
.greet small { font-size: 18px; font-weight: 700; color: var(--ink2); }
.greet h1 { margin: 8px 0 10px; font-size: 34px; line-height: 1.32; font-weight: 900; letter-spacing: -.035em; color: var(--ink); }
.greet h1 em { font-style: normal; color: var(--g); }
.greet p { margin: 0; color: var(--sub); font-size: 15px; }
.greet .art { width: 230px; max-height: 190px; object-fit: contain; align-self: end; margin: -10px -6px -8px 0; filter: drop-shadow(0 14px 18px rgba(4, 80, 64, .18)); }
.rp-strip { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 20px; background: #fff; box-shadow: var(--sh); text-decoration: none; }
.rp-strip .ic-c { width: 46px; height: 46px; border-radius: 14px; }
.rp-strip > div { flex: 1; min-width: 0; }
.rp-strip .t { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 800; }
.rp-strip .t span { margin-left: auto; font-size: 13.5px; color: var(--ink2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-strip .t span b { color: var(--ink); }
.rp-strip .bw { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.rp-strip .bw .bar { flex: 1; }
.rp-strip .bw b { color: var(--g); font-size: 17px; font-weight: 900; }
.today { position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; padding: 22px 26px; border-radius: 24px; text-decoration: none; color: #fff; background: linear-gradient(120deg, #078a6f 0%, #0aa585 55%, #16c3a0 100%); box-shadow: 0 18px 34px -20px rgba(7, 128, 103, .95); }
.today:after { content: ""; position: absolute; right: -40px; bottom: -70px; width: 260px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.today .pl { width: 62px; height: 62px; border-radius: 50%; background: #fff; color: var(--g); display: grid; place-items: center; flex: none; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .3); position: relative; z-index: 1; }
.today .pl svg { width: 26px; height: 26px; margin-left: 4px; }
.today > div { flex: 1; min-width: 0; position: relative; z-index: 1; }
.today small { font-size: 15px; font-weight: 700; opacity: .92; }
.today b { display: block; font-size: 24px; font-weight: 900; margin-top: 4px; letter-spacing: -.02em; }
.today b span { font-weight: 600; font-size: 18px; margin-left: 6px; }
.today .pb { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; font-weight: 700; }
.today .pb .bar { flex: 1; max-width: 260px; height: 8px; background: rgba(255, 255, 255, .3); }
.today .pb .bar i { background: #fff; }
.today .art { width: 96px; height: 96px; object-fit: contain; position: relative; z-index: 1; flex: none; margin: -14px -4px -16px 0; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px 8px 16px; border-radius: 20px; background: var(--tb); color: var(--tc); text-decoration: none; font-weight: 800; font-size: 16px; border: 1px solid rgba(255, 255, 255, .6); transition: transform .15s; }
.tile:hover { transform: translateY(-2px); }
.tile svg { width: 32px; height: 32px; }
.tile b { font-size: 26px; line-height: 32px; font-weight: 900; }
.tile span { color: var(--ink); }
.tile small { font-size: 12px; font-weight: 600; color: var(--sub); margin-top: -4px; }
.cont { display: flex; align-items: center; gap: 18px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: var(--sh); text-decoration: none; }
.cont .th { width: 150px; height: 104px; border-radius: 16px; display: grid; place-items: center; flex: none; background: linear-gradient(140deg, var(--tb, #e3f5ff), #fff); overflow: hidden; }
.cont .th img { width: 120px; height: 100px; object-fit: contain; }
.cont > div { flex: 1; min-width: 0; }
.cont small { font-size: 13.5px; color: var(--sub); font-weight: 700; }
.cont b { display: block; font-size: 19px; font-weight: 800; margin: 4px 0 12px; }
.cont .bw { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--sub); }
.cont .bw .bar { flex: 1; height: 8px; max-width: 220px; }
.cont .go { width: 46px; height: 46px; border-radius: 50%; background: var(--g); color: #fff; display: grid; place-items: center; flex: none; margin-right: 6px; }
.cont .go svg { width: 20px; height: 20px; margin-left: 3px; }
.nexts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nx { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: var(--sh); text-decoration: none; min-width: 0; }
.nx .ic-c { border-radius: 14px; width: 46px; height: 46px; background: var(--tb, var(--mint)); color: var(--tc, var(--g2)); }
.nx > div { flex: 1; min-width: 0; }
.nx small { font-size: 13px; color: var(--sub); font-weight: 700; display: block; }
.nx b { display: block; font-size: 15.5px; font-weight: 800; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx > svg { width: 18px; height: 18px; color: var(--sub); flex: none; }
.day7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.day7 div { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); font-weight: 600; }
.day7 i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #eef3f1; color: #fff; }
.day7 i svg { width: 16px; height: 16px; }
.day7 div.on i { background: var(--g); }
.day7 div.t { color: var(--ink); font-weight: 800; }
.day7 div.t i { box-shadow: 0 0 0 3px #bdeee0; }
.mini-ring { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }

/* ---------- 원형 진행 ---------- */
.ring { position: relative; width: 160px; height: 160px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 14; }
.ring .bg { stroke: #e7f0ed; }
.ring .fg { stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.3, .8, .3, 1); }
.ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring b { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.ring b small { font-size: 20px; font-weight: 800; margin-left: 1px; }
.ring span { font-size: 12.5px; line-height: 1.4; margin-top: 6px; color: var(--sub); }
.ring .top { font-size: 12.5px; margin: 0 0 4px; color: var(--sub); }
.ring.s { width: 96px; height: 96px; } .ring.s circle { stroke-width: 16; } .ring.s b { font-size: 24px; } .ring.s b small { font-size: 13px; } .ring.s span { display: none; }

/* 청록 배너 (선생님 · 원장 화면) */
.hero { position: relative; overflow: hidden; border-radius: 26px; color: #fff; padding: 30px 34px; min-height: 220px; display: grid; grid-template-columns: minmax(0, 1fr) 210px 200px 230px; gap: 18px; align-items: center; background: linear-gradient(120deg, #067a62 0%, #0a9a7e 45%, #16c3a0 100%); box-shadow: 0 22px 44px -28px rgba(7, 110, 90, .9); }
.hero:after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 360px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.hero > * { position: relative; z-index: 1; }
.hero .eb { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; opacity: .95; }
.hero h1 { margin: 14px 0 10px; font-size: 32px; line-height: 1.32; font-weight: 500; letter-spacing: -.03em; }
.hero h1 b { font-weight: 900; }
.hero .tip { font-size: 15px; opacity: .95; margin: 0; }
.hero .art { align-self: end; justify-self: center; width: 190px; height: 180px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 50, 45, .3)); margin-bottom: -10px; }
.hero .ring .bg { stroke: rgba(255, 255, 255, .25); }
.hero .ring b, .hero .ring span, .hero .ring .top { color: #fff; }
.hside { border-left: 1px solid rgba(255, 255, 255, .3); padding-left: 26px; display: flex; flex-direction: column; }
.hside > div { display: flex; gap: 14px; align-items: center; padding: 16px 0; }
.hside > div + div { border-top: 1px solid rgba(255, 255, 255, .3); }
.hside svg { width: 34px; height: 34px; flex: none; }
.hside small { display: block; font-size: 13.5px; opacity: .9; }
.hside b { display: block; font-size: 19px; font-weight: 800; margin-top: 3px; }
.hside .chip { display: inline-block; margin-top: 6px; background: rgba(240, 255, 250, .95); color: var(--g3); padding: 4px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.hero.sm { min-height: 0; padding: 24px 34px; grid-template-columns: minmax(0, 1fr) 170px 320px; }
.hero.sm h1 { font-size: 28px; margin: 8px 0 6px; font-weight: 800; }
.hero.sm .art { width: 150px; height: 130px; margin: -16px 0 -22px; }
.hcard { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .45); border-radius: 20px; padding: 16px 22px; }
.hcard small { font-size: 15px; font-weight: 600; }
.hcard b { display: block; font-size: 23px; font-weight: 900; margin: 4px 0 10px; }
.hcard b span { font-size: 16px; font-weight: 600; }
.hcard .bar { background: rgba(255, 255, 255, .5); } .hcard .bar i { background: #fff; }
.hselect { display: inline-flex; align-items: center; gap: 10px; background: #e9fbf5; color: var(--g3); border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 800; font-size: 16px; position: relative; }
.hselect select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hselect svg { width: 16px; height: 16px; }

/* ---------- 학습하기 (단계 · 단원) ---------- */
.lv-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.lv-tabs::-webkit-scrollbar { display: none; }
.lv-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink2); }
.lv-tabs a i { font-style: normal; font-size: 12px; color: var(--sub); font-weight: 700; }
.lv-tabs a.on { background: var(--g); border-color: var(--g); color: #fff; }
.lv-tabs a.on i { color: rgba(255, 255, 255, .8); }
.lv-tabs a.done:not(.on) { border-color: #a9dfd0; }
.st-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 26px; border-radius: 24px; background: linear-gradient(135deg, #fff 0%, #f1fbf8 70%, #e2f7f0 100%); box-shadow: var(--sh); }
.st-card .ic-c { width: 70px; height: 70px; border-radius: 22px; background: var(--tb, var(--mint)); color: var(--tc, var(--g2)); }
.st-card .ic-c svg { width: 34px; height: 34px; } .st-card .ic-c b { font-size: 30px; color: inherit; }
.st-card small { font-size: 14px; font-weight: 700; color: var(--g2); }
.st-card h2 { margin: 4px 0 4px; font-size: 25px; font-weight: 900; letter-spacing: -.03em; }
.st-card p { margin: 0; color: var(--sub); font-size: 15px; }
.st-card .bw { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink2); }
.st-card .bw .bar { flex: 1; max-width: 320px; }
.st-card .art { width: 150px; height: 120px; object-fit: contain; margin: -12px -6px -18px 0; }
.units { display: flex; flex-direction: column; gap: 10px; }
.unit { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: var(--sh); text-decoration: none; border: 2px solid transparent; transition: border-color .15s; }
.unit:hover { border-color: #b7e8db; }
.unit.doing { border-color: var(--gl); background: linear-gradient(90deg, #f0fcf8, #fff 60%); }
.unit .ui { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--tb, var(--mint)); color: var(--tc, var(--g2)); }
.unit .ui svg { width: 24px; height: 24px; } .unit .ui b { font-size: 21px; font-weight: 900; }
.unit > div { flex: 1; min-width: 0; }
.unit small { display: block; font-size: 12.5px; font-weight: 800; color: var(--sub); letter-spacing: .01em; }
.unit b.t { display: block; font-size: 16.5px; font-weight: 800; margin-top: 2px; }
.unit em { display: block; font-style: normal; font-size: 13px; color: var(--sub); margin-top: 2px; }
.unit .ub { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--sub); font-weight: 700; }
.unit .ub .bar { flex: 1; max-width: 220px; height: 7px; }
.unit .us { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.unit .us svg { width: 18px; height: 18px; }
.unit .us.done { background: var(--g); color: #fff; }
.unit .us.doing { background: var(--g); color: #fff; } .unit .us.doing svg { margin-left: 2px; width: 15px; height: 15px; }
.unit .us.todo { background: #eef3f1; color: #9aaba6; } .unit .us.todo svg { margin-left: 2px; width: 15px; height: 15px; }
.unit .old { font-size: 11.5px; color: #8a6d1f; background: #fff6df; border-radius: 6px; padding: 1px 7px; font-weight: 700; margin-left: 6px; vertical-align: 1px; }
.mgrp { font-size: 13px; font-weight: 800; color: var(--g2); margin: 10px 4px 0; }
.mgrp:first-child { margin-top: 0; }

/* 예전 목록 (선생님 화면 · 과제) */
.mods { display: flex; flex-direction: column; gap: 10px; }
.mod { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-decoration: none; transition: border-color .15s, background .15s; }
.mod:hover { border-color: #9fdccf; }
.mod.doing { border-color: var(--gl); background: #f2fcf9; }
.mod .st { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #ccd7d3; display: grid; place-items: center; flex: none; }
.mod.done .st, .mod.doing .st { background: var(--g); border-color: var(--g); color: #fff; }
.mod .st svg { width: 14px; height: 14px; }
.mod .pl { display: none; }
.mod .tt { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; }
.mod .tt small { display: block; font-weight: 500; font-size: 13px; color: var(--sub); margin-top: 2px; }
.mod .mn { font-size: 14px; color: var(--sub); flex: none; width: 58px; text-align: right; }
.mod .pill { flex: none; min-width: 64px; justify-content: center; }

.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-top: 1px solid var(--line2); }
.todo li:first-child { border-top: 0; }
.todo .cb { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #c8d4d0; display: grid; place-items: center; flex: none; background: #fff; }
.todo .cb svg { width: 14px; height: 14px; }
.todo li.done .cb { background: var(--g); border-color: var(--g); color: #fff; }
.todo .tt { flex: none; font-weight: 800; font-size: 15.5px; }
.todo .ds { flex: 1; min-width: 0; color: var(--sub); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo li.done .tt { color: var(--sub); }
.todo a.pill.go { gap: 2px; height: 32px; padding: 0 12px; }

/* 통계 상자 */
.kv3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kv { border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.kv small { display: flex; align-items: center; gap: 5px; font-size: 13px; white-space: nowrap; color: var(--ink2); }
.kv small svg { width: 17px; height: 17px; color: var(--g); }
.kv b { display: block; font-size: 24px; font-weight: 900; margin: 6px 0; letter-spacing: -.02em; }
.kv b span { font-size: 15px; font-weight: 700; }
.kv em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--g2); background: var(--mint2); padding: 2px 8px; border-radius: 8px; }
.kv em.dn { color: #b4594f; background: #fbefed; }
.stl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.stl li { display: flex; align-items: center; gap: 10px; padding: 11px 0; font-size: 14.5px; color: var(--ink2); }
.stl li + li { border-top: 1px solid var(--line2); }
.stl li svg { width: 19px; height: 19px; color: var(--g); flex: none; }
.stl li b { margin-left: auto; font-size: 17px; font-weight: 900; color: var(--ink); }
.chart { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 10px; margin-top: 14px; }
.chart h4 { margin: 0 0 8px; font-size: 15px; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 130px; padding-top: 28px; }
.bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; position: relative; }
.bars i { display: block; width: 100%; max-width: 34px; border-radius: 9px 9px 4px 4px; background: #c4eee2; min-height: 4px; }
.bars div.t i { background: linear-gradient(180deg, var(--gl), var(--g)); }
.bars span { font-size: 13px; color: var(--sub); }
.bars div.t span { color: var(--ink); font-weight: 800; }
.bars em { position: absolute; top: -2px; font-style: normal; font-size: 12px; color: var(--ink2); font-weight: 700; white-space: nowrap; }
.bars div.t em { top: -26px; background: var(--g); color: #fff; padding: 2px 9px; border-radius: 8px; }
.ar { display: flex; flex-direction: column; gap: 14px; }
.ar > div { display: grid; grid-template-columns: 30px 92px minmax(0, 1fr) 46px; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.ar > div svg { width: 22px; height: 22px; color: var(--g); }
.ar > div .ic-c { width: 30px; height: 30px; background: none; } .ar > div .ic-c b { font-size: 17px; }
.ar > div .bar { height: 12px; }
.ar > div b { text-align: right; font-weight: 900; }
.streak { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 20px; background: linear-gradient(90deg, #fff6e2, #fffaf0); border: 1px solid #f6e2b4; text-decoration: none; }
.streak .e { font-size: 30px; line-height: 1; }
.streak b { display: block; font-size: 17px; font-weight: 900; }
.streak small { font-size: 13.5px; color: var(--ink2); }
.streak > svg { margin-left: auto; width: 18px; height: 18px; color: var(--sub); }

.rv-side { position: relative; overflow: hidden; }
.rv-side img { position: absolute; top: 14px; right: 12px; width: 120px; }
.rv-side p { margin: 0 0 16px; max-width: 60%; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.lnk { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; margin-top: 12px; background: #fff; }
.lnk:hover { border-color: #9fdccf; }
.lnk .ic-c { width: 40px; height: 40px; border-radius: 12px; }
.lnk div { flex: 1; min-width: 0; }
.lnk b { display: block; font-size: 15.5px; }
.lnk small { font-size: 13px; color: var(--sub); }
.lnk .chev { width: 18px; height: 18px; color: var(--sub); }

/* ---------- 문제 풀이 ---------- */
.qz { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; max-width: 1180px; }
.qz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.qz-top .bk { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: var(--ink); flex: none; margin-left: -8px; }
.qz-top .bk svg { width: 22px; height: 22px; }
.qz-top h1 { margin: 0; font-size: 20px; font-weight: 900; flex: 1; min-width: 0; text-align: center; letter-spacing: -.02em; }
.qz-top h1 small { display: block; font-size: 12.5px; font-weight: 700; color: var(--sub); }
.qz-top .n { font-size: 15px; font-weight: 800; color: var(--ink2); min-width: 54px; text-align: right; }
.qz-top .n b { color: var(--g); }
.qz-prog { height: 8px; border-radius: 99px; background: #e2ece9; overflow: hidden; margin: 6px 0 4px; }
.qz-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--gl), var(--g)); border-radius: inherit; transition: width .4s; }
.qz-card { padding: 24px 26px 22px; }
.qz-h { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.qz-h svg { width: 24px; height: 24px; color: var(--g); flex: none; }
.qz-h b { font-size: 17px; font-weight: 800; }
.qz-h small { display: block; font-size: 14px; color: var(--sub); font-weight: 500; }
.qz-ask { font-size: 16px; font-weight: 700; color: var(--ink2); margin: 0 0 12px; }
.qz-stage { display: flex; align-items: center; gap: 22px; background: linear-gradient(180deg, #e8f8f3, #f2fbf8); border-radius: 20px; padding: 24px 26px; min-height: 140px; }
.qz-stage img { width: 120px; height: 104px; object-fit: contain; flex: none; }
.qz-q { font-size: 28px; font-weight: 800; line-height: 1.45; letter-spacing: -.01em; flex: 1; min-width: 0; text-align: center; }
.qz-q.big { font-size: 80px; font-weight: 600; font-family: "Noto Serif KR", "Noto Sans JP", var(--ff); line-height: 1.1; }
.qz-q.ko { font-size: 24px; }
.qz-q .blk { display: inline-flex; align-items: center; justify-content: center; min-width: 140px; height: 50px; padding: 0 18px; margin: 0 4px; border-bottom: 3px solid var(--g); color: var(--g2); font-weight: 900; vertical-align: middle; }
.qz-q .blk.ok { background: #d8f5ec; border-radius: 10px 10px 0 0; }
.qz-q .blk.ng { border-color: var(--ng); color: var(--ng); }
.qz-say { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; height: 44px; padding: 0 18px 0 6px; border-radius: 999px; border: 0; background: #fff; font-weight: 800; color: var(--g3); box-shadow: 0 6px 16px -10px rgba(0, 60, 50, .4); }
.qz-say i { width: 34px; height: 34px; border-radius: 50%; background: var(--g); color: #fff; display: grid; place-items: center; }
.qz-say i svg { width: 18px; height: 18px; }
.qz-opts { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0; }
.qz-opts.two { display: grid; grid-template-columns: 1fr 1fr; }
.qz-op { position: relative; display: flex; align-items: center; gap: 14px; padding: 0 18px; min-height: 56px; border-radius: 16px; border: 1.5px solid #dbe6e2; background: #fff; text-align: left; font-size: 18px; font-weight: 600; transition: border-color .12s, background .12s; }
.qz-op i { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #b9c8c3; flex: none; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 800; color: var(--sub); }
.qz-op:hover { border-color: #8fd8c6; }
.qz-op.on { border-color: var(--g); background: #e6f8f2; }
.qz-op.on i { border-color: var(--g); background: var(--g); color: #fff; }
.qz-op.ok { border-color: var(--g); background: #e3f7f0; }
.qz-op.ok i { border-color: var(--g); background: var(--g); color: #fff; }
.qz-op.ok:after, .qz-op.on:after { content: ""; position: absolute; right: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8.5'/%3E%3C/svg%3E") center/16px no-repeat; }
.qz-op.on:after { display: none; }
.qz-op.ng { border-color: #eaa49d; background: #fdf1f0; }
.qz-op.ng i { border-color: var(--ng); background: var(--ng); color: #fff; }
.qz-op[disabled] { cursor: default; }
.qz-fb { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 16px 18px; border-radius: 18px; background: #e8f8f2; }
.qz-fb .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--g); color: #fff; display: grid; place-items: center; flex: none; }
.qz-fb .ic svg { width: 18px; height: 18px; }
.qz-fb b { font-size: 18px; font-weight: 900; display: block; margin-bottom: 3px; color: var(--g3); }
.qz-fb span { font-size: 14.5px; color: var(--ink2); line-height: 1.6; }
.qz-fb.ng { background: #fdf0ee; }
.qz-fb.ng .ic { background: var(--ng); } .qz-fb.ng b { color: #b63f34; }
.qz-fb img { width: 60px; margin: -6px 0 -8px auto; flex: none; }
.qz-btns { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.qz-btns .sp { flex: 1; }
.qz-btns .btn { height: 52px; }
.qz-btns .nx { min-width: 200px; }
.unit-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.unit-grid span { aspect-ratio: 1; border-radius: 10px; background: #f1f5f4; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #6a7b76; line-height: 1; }
.unit-grid span.ok { background: var(--g); color: #fff; }
.unit-grid span.ng { background: #fbe6e3; color: #c0453a; }
.unit-grid span svg { width: 12px; height: 12px; margin-bottom: 2px; }
.unit-grid span.now { background: #fff; border: 2px solid var(--g); color: var(--g3); }
.coach { display: flex; gap: 12px; align-items: center; }
.coach img { width: 86px; flex: none; }
.coach .bub { position: relative; flex: 1; background: var(--mint2); border-radius: 18px; padding: 14px 16px; font-size: 14.5px; line-height: 1.65; }
.coach .bub:before { content: ""; position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; background: var(--mint2); transform: translateY(-50%) rotate(45deg); }
.coach .bub b { color: var(--g2); }
.coach .bub.off { color: var(--sub); }
.goals { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; }
.goals li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 14.5px; }
.goals li + li { border-top: 1px solid var(--line2); }
.goals .cb { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c8d4d0; flex: none; display: grid; place-items: center; }
.goals li.on .cb { background: var(--g); border-color: var(--g); color: #fff; }
.goals .cb svg { width: 13px; height: 13px; }
.note { display: flex; gap: 12px; align-items: center; background: #fff8e8; border: 1px solid #f1dfb1; color: #6c5520; border-radius: 16px; padding: 12px 18px; font-size: 14.5px; }
.note svg { width: 22px; height: 22px; flex: none; color: #b48a2a; }

/* 결과 */
.res { text-align: center; padding: 30px 26px 28px; max-width: 760px; }
.res > img { width: 170px; }
.res .lb { font-size: 16px; font-weight: 800; color: var(--ink2); margin-top: 6px; }
.res .big { font-size: 64px; font-weight: 900; color: var(--g); letter-spacing: -.03em; line-height: 1.05; }
.res .big small { font-size: 28px; }
.res h2 { font-size: 22px; margin: 6px 0 4px; }
.res p { color: var(--ink2); margin: 0 0 16px; font-size: 15px; line-height: 1.6; }
.res .cnt3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 460px; margin: 16px auto 8px; }
.res .cnt3 div { border-radius: 16px; padding: 12px 8px; background: #f4f8f7; font-size: 13.5px; font-weight: 700; color: var(--ink2); }
.res .cnt3 div b { display: block; font-size: 24px; font-weight: 900; color: var(--ink); margin-top: 2px; }
.res .cnt3 div.ok b { color: var(--g); } .res .cnt3 div.ng b { color: var(--ng); }
.res .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.res .row .btn { min-width: 200px; }
.wl { text-align: left; margin-top: 22px; border-top: 1px solid var(--line); }
.wl div { padding: 12px 4px; border-bottom: 1px solid var(--line2); font-size: 15px; }
.wl s { color: #b4594f; margin-right: 10px; } .wl b { color: var(--g2); }

/* 말하기 */
.spk { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.wave { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 8px; border-radius: 999px; background: var(--mint2); border: 0; color: var(--g); }
.wave i { width: 42px; height: 42px; border-radius: 50%; background: var(--g); color: #fff; display: grid; place-items: center; }
.wave i svg { width: 20px; height: 20px; }
.wave span { display: flex; align-items: center; gap: 3px; height: 30px; }
.wave span u { display: block; width: 3px; border-radius: 3px; background: var(--gl); }
.say-card { width: 100%; padding: 26px 20px; border-radius: 22px; background: var(--mint2); }
.spk .say { font-size: 34px; font-weight: 900; line-height: 1.3; letter-spacing: -.01em; }
.spk .kr { font-size: 16px; color: var(--ink2); margin-top: 8px; }
.spk-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rec { width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--g); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(10, 154, 126, .1), 0 0 0 24px rgba(10, 154, 126, .05); }
.rec svg { width: 40px; height: 40px; }
.rec.on { background: #e0584c; box-shadow: 0 0 0 12px rgba(224, 88, 76, .14); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224, 88, 76, .45); } 70% { box-shadow: 0 0 0 20px rgba(224, 88, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 88, 76, 0); } }
.spk-note { font-size: 14px; color: var(--sub); }
.self { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }

/* ---------- 복습 · 리포트 ---------- */
.seg { display: inline-flex; background: #e9f1ef; border-radius: 999px; padding: 4px; align-self: flex-start; gap: 2px; }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 15px; color: var(--ink2); border: 0; background: none; }
.seg a svg, .seg button svg { width: 18px; height: 18px; }
.seg .on { background: var(--g); color: #fff; }
.rvl { list-style: none; margin: 0 0 16px; padding: 0; }
.rvl li { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line2); font-size: 15.5px; }
.rvl li:first-child { border-top: 0; }
.rvl .cb { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c8d4d0; display: grid; place-items: center; flex: none; }
.rvl li.done .cb { background: var(--g); border-color: var(--g); color: #fff; }
.rvl .cb svg { width: 13px; height: 13px; }
.rvl .ic-c { width: 36px; height: 36px; border-radius: 12px; }
.rvl .ic-c svg { width: 18px; height: 18px; }
.rvl b { font-weight: 800; } .rvl span.n { color: var(--sub); flex: 1; }
.weak { display: flex; flex-direction: column; gap: 10px; }
.weak a, .weak div.w { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; }
.weak .ic-c { border-radius: 12px; width: 40px; height: 40px; }
.weak .mid { flex: 1; min-width: 0; }
.weak .mid b { display: block; font-size: 15px; margin-bottom: 8px; }
.weak .pc { font-weight: 900; font-size: 15px; }
.acc { display: flex; align-items: center; gap: 24px; }
.acc .delta { border-left: 1px solid var(--line); padding-left: 24px; }
.acc .delta b { font-size: 22px; color: var(--g2); display: block; }
.acc .delta span { color: var(--sub); font-size: 14px; }
.cards { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: thin; }
.rcard { flex: 0 0 calc(33.33% - 10px); min-width: 200px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; position: relative; min-height: 170px; display: flex; flex-direction: column; background: #fff; }
.rcard .when { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; background: var(--mint2); color: var(--g3); border-radius: 8px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; }
.rcard .when svg { width: 14px; height: 14px; }
.rcard b { font-size: 19px; font-weight: 800; margin: 12px 0 4px; line-height: 1.3; overflow-wrap: anywhere; }
.rcard small { color: var(--sub); font-size: 14px; line-height: 1.5; }
.rcard .pt { margin-top: auto; align-self: flex-start; background: var(--mint); color: var(--g3); border-radius: 8px; padding: 3px 12px; font-size: 12.5px; font-weight: 700; }
.rcard .ic-c { position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line2); }
.tbl th { font-size: 13px; color: var(--sub); font-weight: 700; }
.tbl td.n { text-align: right; font-weight: 800; white-space: nowrap; }

/* 설정 목록 */
.prof { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 22px; background: linear-gradient(120deg, #f1fbf8, #fff); box-shadow: var(--sh); }
.prof img { width: 70px; height: 70px; object-fit: contain; border-radius: 50%; background: var(--mint); padding: 6px; }
.prof b { display: block; font-size: 19px; font-weight: 900; }
.prof small { color: var(--sub); font-size: 14px; }
.slist { background: #fff; border-radius: 20px; box-shadow: var(--sh); overflow: hidden; }
.slist > a, .slist > div.it { display: flex; align-items: center; gap: 14px; padding: 15px 18px; text-decoration: none; border: 0; background: none; width: 100%; text-align: left; font-size: 15.5px; font-weight: 600; }
.slist > * + * { border-top: 1px solid var(--line2); }
.slist > a:hover { background: var(--mint3); }
.slist svg.i { width: 22px; height: 22px; color: var(--g2); flex: none; }
.slist .tx { flex: 1; min-width: 0; }
.slist .tx small { display: block; font-size: 13px; color: var(--sub); font-weight: 500; margin-top: 2px; }
.slist .v { color: var(--sub); font-size: 14px; font-weight: 600; }
.slist .chev { width: 18px; height: 18px; color: #9aaba6; flex: none; }
.slist .out { color: #c0453a; } .slist .out svg.i { color: #c0453a; }
.slist div.it { flex-wrap: wrap; }
.slist div.it .chips { margin-left: auto; }

/* 지금 말문 화면 띄우기 */
.emb-h { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.emb-h .t { flex: 1; min-width: 0; }
.emb-h .t small { color: var(--sub); font-size: 13px; display: block; }
.emb-h .t b { font-size: 18px; }
.emb { width: 100%; height: calc(100vh - var(--top) - 150px); min-height: 520px; border: 0; border-radius: var(--r); background: #fff; box-shadow: var(--sh); display: block; }

/* 안내 · 빈 화면 */
.empty { text-align: center; padding: 24px 10px; color: var(--sub); }
.empty img { width: 110px; display: block; margin: 0 auto 8px; }
.gate { max-width: 440px; margin: 8vh auto; text-align: center; padding: 0 20px; }
.gate .mh-logo { margin-bottom: 12px; }
.gate .mh-ic { width: 84px; height: 84px; } .gate .mh-ic em { font-size: 17px; } .gate .mh-wm { height: 40px; }
.gate .slg { font-size: 22px; font-weight: 900; font-style: italic; letter-spacing: -.03em; margin: 6px 0 16px; }
.gate .slg span { color: var(--g); }
.gate > img { width: 220px; }
.gate p { color: var(--ink2); margin: 0 0 22px; line-height: 1.6; }
.gate .btn { width: 100%; }
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.form select, .form input { height: 46px; border-radius: 12px; border: 1px solid #d6e2de; padding: 0 14px; font: inherit; background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: 38px; min-width: 50px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14.5px; }
.chips button.on { background: var(--g); border-color: var(--g); color: #fff; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.week div { border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px; text-align: center; min-height: 128px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; background: #fff; }
.week div b { font-size: 15px; }
.week div.t { border-color: var(--gl); background: #f0fcf8; }
.week div.off { background: #f7f9f8; color: #9aa8a4; }
.week div i { font-style: normal; background: var(--mint2); color: var(--g3); border-radius: 8px; padding: 3px 4px; font-weight: 700; }
.week div i.ok { background: var(--g); color: #fff; }

/* 휴대폰 아래 메뉴 */
.ml-tab { display: none; }

@media (max-width: 1280px) {
  :root { --rail: 84px; }
  .ml-rail a { flex-direction: column; gap: 4px; padding: 12px 2px 10px; font-size: 12.5px; text-align: center; }
  .ml-rail .rl { display: none; }
  .mh-home { grid-template-columns: 1fr; }
  .mh-home > .stack:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: minmax(0, 1fr) 190px 190px; }
  .hero .hside { grid-column: 1 / -1; flex-direction: row; border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .3); }
  .hero .hside > div { flex: 1; padding: 12px 0 0; }
  .hero .hside > div + div { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .3); padding-left: 18px; }
  .hero.sm { grid-template-columns: minmax(0, 1fr) 150px 280px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .ml-langs { display: none; }
  .ml-tr > a.hm, .ml-guide span { display: none; }
  .ml-guide { padding: 0 10px; }
  .qz { grid-template-columns: 1fr; }
  .qz > .qz-side { display: none; }
  .grid2, .grid2.eq { grid-template-columns: 1fr; }
}
@media (min-width: 1001px) { .ml-lsw { display: none; } }
@media (max-width: 760px) {
  :root { --top: 58px; }
  body { padding-bottom: 78px; background-attachment: scroll; }
  .ml-top { padding: 0 12px; gap: 8px; }
  .mh-ic { width: 44px; height: 44px; } .mh-ic em { font-size: 12px; } .mh-ic em.s { font-size: 9px; } .mh-wm { height: 21px; }
  .ml-lsw { height: 34px; font-size: 13.5px; padding: 0 8px 0 10px; }
  .ml-tr > a, .ml-guide { display: none; }
  .ml-bell { width: 38px; height: 38px; }
  .ml-av b { width: 34px; height: 34px; font-size: 14px; }
  .ml-wrap { display: block; padding: 14px 14px 24px; }
  .ml-rail { display: none; }
  .ml-main { gap: 14px; }
  .ml-tab { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .ml-tab a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0; font-size: 11.5px; font-weight: 600; text-decoration: none; color: #6b7f85; }
  .ml-tab a svg { width: 24px; height: 24px; }
  .ml-tab a.on { color: var(--g); font-weight: 800; }
  .ml-pop { right: 8px; left: 8px; width: auto; top: 54px; }
  .ml-pop.lp { width: auto; }
  .ph h1 { font-size: 21px; } .ph h1 small { display: block; margin: 2px 0 0; font-size: 13px; }
  .cd { padding: 18px 16px; border-radius: 20px; }
  .cd-h h2, .cd-h h3 { font-size: 17px; }
  .greet { padding: 20px 18px 16px; border-radius: 24px; min-height: 0; grid-template-columns: minmax(0, 1fr) 130px; }
  .greet small { font-size: 15px; }
  .greet h1 { font-size: 23px; margin: 6px 0 6px; }
  .greet p { font-size: 13px; }
  .greet .art { width: 140px; max-height: 120px; margin: -6px -8px -6px -10px; }
  .mh-home > .stack:last-child { display: flex; }
  .rp-strip { padding: 12px 14px; gap: 12px; border-radius: 18px; }
  .rp-strip .ic-c { width: 40px; height: 40px; }
  .rp-strip .t { font-size: 14px; flex-wrap: wrap; } .rp-strip .t span { margin-left: 0; flex-basis: 100%; font-size: 12.5px; }
  .today { padding: 16px 16px; gap: 14px; border-radius: 22px; }
  .today .pl { width: 50px; height: 50px; } .today .pl svg { width: 22px; height: 22px; }
  .today b { font-size: 19px; } .today b span { display: block; margin: 2px 0 0; font-size: 14px; }
  .today .art { width: 70px; height: 70px; }
  .tiles { gap: 8px; }
  .tile { padding: 12px 4px 10px; font-size: 13.5px; border-radius: 16px; gap: 6px; }
  .tile svg { width: 26px; height: 26px; } .tile b { font-size: 21px; line-height: 26px; }
  .tile small { display: none; }
  .cont { gap: 12px; padding: 10px; }
  .cont .th { width: 104px; height: 80px; } .cont .th img { width: 86px; height: 72px; }
  .cont b { font-size: 16px; margin-bottom: 8px; }
  .cont .go { width: 40px; height: 40px; margin: 0; }
  .nexts { gap: 10px; }
  .nx { padding: 12px; gap: 10px; } .nx .ic-c { width: 38px; height: 38px; } .nx b { font-size: 14px; white-space: normal; } .nx > svg { display: none; }
  .st-card { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 14px; }
  .st-card .art { display: none; }
  .st-card .ic-c { width: 54px; height: 54px; border-radius: 16px; }
  .st-card h2 { font-size: 20px; }
  .st-card p { font-size: 13.5px; }
  .unit { padding: 12px; gap: 12px; } .unit .ui { width: 42px; height: 42px; } .unit b.t { font-size: 15px; }
  .ring { width: 130px; height: 130px; } .ring b { font-size: 32px; }
  .hero, .hero.sm { grid-template-columns: minmax(0, 1fr) 110px; padding: 20px 18px; min-height: 0; border-radius: 22px; gap: 10px; }
  .hero h1 { font-size: 22px; margin: 8px 0 6px; } .hero.sm h1 { font-size: 20px; }
  .hero .tip { font-size: 13.5px; } .hero .eb { font-size: 13px; }
  .hero .art, .hero.sm .art { width: 110px; height: 110px; margin: 0; align-self: center; }
  .hero .ring { display: none; }
  .hero .hside { grid-column: 1 / -1; flex-direction: row; border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .3); }
  .hero .hside > div { flex: 1; padding: 10px 0 0; gap: 8px; }
  .hero .hside > div + div { border-top: 0; border-left: 1px solid rgba(255, 255, 255, .3); padding-left: 10px; }
  .hero .hside svg { width: 24px; height: 24px; } .hero .hside b { font-size: 15px; }
  .hero .hcard { grid-column: 1 / -1; padding: 12px 16px; } .hero .hcard b { font-size: 19px; }
  .grid3 { grid-template-columns: 1fr; gap: 14px; }
  .kv3 { gap: 8px; } .kv { padding: 10px; } .kv b { font-size: 19px; } .kv small { font-size: 12px; }
  .bars { gap: 6px; }
  .ar > div { grid-template-columns: 26px 70px minmax(0, 1fr) 40px; font-size: 14px; gap: 8px; }
  .mod { padding: 11px 12px; gap: 10px; } .mod .mn { display: none; } .mod .tt { font-size: 15px; } .mod .pill { min-width: 0; padding: 0 10px; font-size: 12px; }
  .qz-card { padding: 16px 14px; }
  .qz-stage { padding: 18px 14px; flex-direction: column; min-height: 0; }
  .qz-stage img { display: none; }
  .qz-q { font-size: 22px; }
  .qz-q.big { font-size: 64px; }
  .qz-q .blk { min-width: 90px; height: 40px; }
  .qz-op { font-size: 16px; min-height: 52px; padding: 0 14px; gap: 12px; }
  .qz-btns .btn { height: 50px; padding: 0 16px; font-size: 15.5px; }
  .qz-btns .nx { flex: 1; min-width: 0; }
  .spk .say { font-size: 27px; }
  .res { padding: 22px 14px; } .res > img { width: 140px; } .res .big { font-size: 52px; }
  .res .row .btn { min-width: 0; flex: 1; }
  .seg a, .seg button { padding: 0 16px; height: 38px; font-size: 14px; }
  .acc { gap: 14px; }
  .rcard { flex-basis: 78%; }
  .week { gap: 4px; } .week div { padding: 8px 2px; min-height: 96px; font-size: 11px; border-radius: 12px; }
  .emb { height: calc(100vh - var(--top) - 190px); border-radius: 16px; }
  .rv-side img { width: 90px; }
  .prof { padding: 14px 16px; } .prof img { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.qz-fb.hint { background: #fff8e6; } .qz-fb.hint .ic { background: #e2a52a; } .qz-fb.hint b { color: #8a6410; }
.ar > div .bar { display: block; }
.rp-strip > svg { width: 18px; height: 18px; color: var(--sub); flex: none; }
.rp-strip small.muted { display: block; margin-top: 4px; font-size: 13.5px; }
@media (max-width: 760px) { .slist div.it .chips { margin-left: 0; flex-basis: 100%; } .slist div.it .tx { flex: 1 1 60%; } }
.ar > div { width: 100%; align-self: stretch; }
.ml-pop .mh-ic svg { width: 100%; height: 100%; color: inherit; }

/* ---------- 영어 단어 (ml-voc.js · 11/21) ---------- */
.vc-tabs { margin: -4px 0 18px; }
.vc-hero { display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, #e4f8f1, #f4fcf9); }
.vc-hero .vc-hl { flex: 1; min-width: 0; }
.vc-hero small { font-size: 14px; color: var(--sub); font-weight: 600; }
.vc-hero h2 { margin: 6px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.vc-hero h2 em { font-style: normal; color: var(--g); }
.vc-hero .art { width: 118px; height: auto; flex: none; }
.vc-mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vc-mini span { display: inline-flex; align-items: baseline; gap: 6px; background: #fff; border-radius: 14px; padding: 8px 14px; font-size: 14px; color: var(--ink2); box-shadow: 0 1px 0 var(--line); }
.vc-mini b { font-size: 20px; color: var(--ink); }
.vc-pick button i, .vc-box::before { content: ""; }
.vc-pick button i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--bc, var(--g)); margin-right: 6px; }
.vc-pick button.on { background: var(--ink); border-color: var(--ink); }
.vc-boxes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.vc-boxes.pick { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); margin-bottom: 18px; }
.vc-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; }
.vc-box::before { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--bc); }
.vc-box b { font-size: 24px; font-weight: 800; }
.vc-box span { font-size: 13.5px; font-weight: 700; color: var(--ink2); }
.vc-box small { font-size: 12px; color: var(--sub); }
.vc-box.on { border-color: var(--bc); box-shadow: inset 0 0 0 1.5px var(--bc); background: #fbfefd; }
a.vc-box:hover, button.vc-box:hover { border-color: var(--bc); }
.vc-rule { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vc-rule li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink2); line-height: 1.5; }
.vc-rule b { flex: none; min-width: 76px; text-align: center; padding: 5px 10px; border-radius: 10px; font-size: 13.5px; color: #fff; }
.vc-rule b.k { background: var(--g); } .vc-rule b.u { background: #d4a017; } .vc-rule b.d { background: var(--ng); }
.vc-cap { display: flex; align-items: center; gap: 8px; }
.vc-cap input, .vc-num, .vc-find, .vc-spell input { height: 42px; border-radius: 12px; border: 1px solid #d6e2de; padding: 0 12px; font: inherit; font-size: 15px; background: #fff; }
.vc-cap input, .vc-num { width: 120px; }
.vc-find { width: min(220px, 100%); }
.vc-ck { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 15px; cursor: pointer; }
.vc-ck input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--g); flex: none; }
.vc-ck small { display: block; color: var(--sub); font-size: 13px; margin-top: 2px; }
/* 카드 */
.vc-card { text-align: center; }
.vc-ch { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.vc-tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 800; color: var(--bc); background: color-mix(in srgb, var(--bc) 12%, #fff); }
.vc-tag.new { --bc: #e0584c; }
.vc-last { font-size: 13.5px; color: var(--sub); background: #f3f7f6; padding: 5px 12px; border-radius: 999px; }
.vc-last.new { color: #b4581c; background: #fff1e4; font-weight: 700; }
.vc-last.know b { color: var(--g2); } .vc-last.unsure b { color: #a07400; } .vc-last.dont b { color: var(--ng); }
.vc-word { display: block; margin: 22px auto 4px; border: 0; background: none; font-size: clamp(40px, 7vw, 60px); font-weight: 800; letter-spacing: -.01em; color: var(--ink); line-height: 1.15; word-break: break-word; cursor: pointer; }
.vc-word.sm { font-size: clamp(30px, 5vw, 42px); margin: 6px auto 10px; cursor: default; }
.vc-ipa { min-height: 22px; font-size: 17px; color: var(--sub); font-family: "Segoe UI", "Noto Sans", "Lucida Sans Unicode", sans-serif; }
.vc-ipa small { font-size: 12px; font-weight: 700; color: #9aa8a4; margin-right: 2px; }
.vc-meta { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.vc-lv { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 800; background: #eef3f1; color: var(--sub); }
.vc-lv.lv-A1 { background: #e5f7ee; color: #1c7a4a; } .vc-lv.lv-A2 { background: #dff4f0; color: #16806e; } .vc-lv.lv-B1 { background: #e6effd; color: #2f6fe0; }
.vc-lv.lv-B2 { background: #ece6fb; color: #6b48c8; } .vc-lv.lv-C1 { background: #fdeee3; color: #c4621a; } .vc-lv.lv-C2 { background: #fde8e8; color: #c0392b; }
.vc-det { text-align: left; margin: 22px auto 0; max-width: 560px; border-top: 1px dashed var(--line); padding-top: 18px; }
.vc-pos > div { margin-bottom: 10px; }
.vc-pos b { display: inline-block; background: var(--ink); color: #fff; border-radius: 8px; padding: 2px 9px; font-size: 13px; }
.vc-pos ol { margin: 6px 0 0; padding-left: 24px; font-size: 18px; line-height: 1.6; }
.vc-note { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; padding: 10px 14px; border-radius: 12px; background: #fff7e4; font-size: 15px; }
.vc-note svg { width: 16px; height: 16px; flex: none; }
.vc-ex { display: grid; gap: 8px; margin-top: 12px; }
.vc-ex > div { display: flex; gap: 10px; align-items: flex-start; background: var(--mint3); border-radius: 14px; padding: 12px 14px; }
.vc-ex b { display: block; font-weight: 600; font-size: 16px; line-height: 1.5; }
.vc-ex span { display: block; color: var(--sub); font-size: 14.5px; margin-top: 2px; }
.vc-spk { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--g2); display: grid; place-items: center; padding: 0; }
.vc-spk svg { width: 17px; height: 17px; }
.vc-spk.sm { width: 28px; height: 28px; } .vc-spk.sm svg { width: 14px; height: 14px; }
.vc-spk:hover { border-color: #8fd8c6; background: var(--mint3); }
.kb { font-size: 12px; font-weight: 600; opacity: .7; margin-left: 4px; }
.vc-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.vc-grade button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 6px 12px; border: 0; border-radius: 18px; color: #fff; font-size: 17px; font-weight: 800; }
.vc-grade button svg { width: 22px; height: 22px; }
.vc-grade button small { font-size: 12px; font-weight: 600; opacity: .75; }
.vc-grade .k { background: var(--g); box-shadow: 0 10px 20px -14px rgba(7, 128, 103, .9); } .vc-grade .k:hover { background: var(--g2); }
.vc-grade .u { background: #d4a017; } .vc-grade .u:hover { background: #b8890f; }
.vc-grade .d { background: var(--ng); } .vc-grade .d:hover { background: #c94a3f; }
.vc-sprog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.vc-sprog div { background: var(--mint3); border-radius: 14px; padding: 12px 4px; }
.vc-sprog b { display: block; font-size: 24px; font-weight: 800; }
.vc-sprog span { font-size: 13px; color: var(--sub); }
/* 테스트 */
.vc-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vc-types button { display: grid; grid-template-columns: 24px 1fr; gap: 2px 10px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.vc-types .cb { grid-row: 1 / 3; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #b9c8c3; display: grid; place-items: center; color: #fff; }
.vc-types .cb svg { width: 14px; height: 14px; }
.vc-types b { font-size: 15.5px; } .vc-types small { font-size: 13px; color: var(--sub); }
.vc-types button.on { border-color: var(--g); background: #f1fbf7; } .vc-types button.on .cb { background: var(--g); border-color: var(--g); }
.vc-qhead { text-align: center; margin: 10px 0 6px; }
.vc-mean { font-size: 26px; font-weight: 800; line-height: 1.4; margin: 14px 0 4px; }
.vc-qex { margin: 0 0 10px; font-size: 17px; color: var(--ink2); line-height: 1.5; }
.qz-say.big { height: 56px; padding: 0 24px; font-size: 17px; }
.vc-spell { display: flex; gap: 10px; margin-top: 18px; }
.vc-spell input { flex: 1; height: 56px; font-size: 22px; text-align: center; letter-spacing: .04em; }
.vc-spell .btn { height: 56px; }
/* 상자 목록 */
.vc-wl { display: grid; }
.vc-wr { display: grid; grid-template-columns: 34px minmax(90px, 140px) minmax(0, 1fr) auto auto 30px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line2); }
.vc-wr .w { border: 0; background: none; padding: 0; text-align: left; font-weight: 800; font-size: 16px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.vc-wr .w:hover { color: var(--g2); }
.vc-wr .m { font-size: 14.5px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-wr .s { font-size: 12.5px; color: var(--sub); }
.vc-wr select { font: inherit; font-size: 13.5px; height: 32px; border: 1px solid var(--line); border-radius: 9px; padding: 0 6px; background: #fff; }
.vc-wr .x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: #b0bdb9; display: grid; place-items: center; padding: 0; }
.vc-wr .x:hover { color: var(--ng); background: #fdf1f0; } .vc-wr .x svg { width: 16px; height: 16px; }
.vc-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; font-weight: 700; color: var(--ink2); }
.vc-pager button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; padding: 0; }
.vc-pager svg { width: 18px; height: 18px; }
.vc-pop .vc-ph { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.vc-pop .vc-ph b { font-size: 30px; font-weight: 800; }
.vc-pop .row { display: flex; align-items: center; gap: 8px; } .vc-pop .sp { flex: 1; }
/* 구동사 · 표현 */
.vc-ptabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.vc-ptabs button { text-align: left; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 4px; }
.vc-ptabs b { font-size: 17px; } .vc-ptabs small { font-size: 13px; color: var(--sub); line-height: 1.45; }
.vc-ptabs button.on { border-color: var(--g); box-shadow: inset 0 0 0 1.5px var(--g); background: #f1fbf7; }
.vc-flt { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.chips.sm button { height: 32px; font-size: 13.5px; padding: 0 12px; }
.vc-phl { display: grid; gap: 10px; }
.vc-phc { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.vc-phc .h { display: flex; align-items: center; gap: 10px; }
.vc-phc .h b { font-size: 18px; } .vc-phc .h .sp { flex: 1; }
.vc-phc .m { margin: 8px 0 0 44px; font-size: 15.5px; color: var(--ink2); }
.vc-phc .e { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0 44px; padding: 10px 12px; border-radius: 12px; background: var(--mint3); }
.vc-phc .e span { display: block; font-size: 15px; font-weight: 600; } .vc-phc .e small { display: block; font-size: 13.5px; color: var(--sub); margin-top: 2px; }
.vc-goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.vc-goals button { text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 3px; }
.vc-goals b { font-size: 16.5px; } .vc-goals span { font-size: 13.5px; color: var(--ink2); } .vc-goals small { font-size: 12.5px; color: var(--g2); font-weight: 700; }
.vc-goals button.on { border-color: var(--g); box-shadow: inset 0 0 0 1.5px var(--g); background: #f1fbf7; }
@media (max-width: 760px) {
  .vc-hero h2 { font-size: 21px; } .vc-hero .art { width: 84px; }
  .vc-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vc-boxes.pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vc-wr { grid-template-columns: 30px minmax(0, 1fr) auto 28px; } .vc-wr .m { grid-column: 2 / -1; grid-row: 2; white-space: normal; } .vc-wr .s { display: none; }
  .vc-types { grid-template-columns: 1fr; }
  .vc-ptabs { grid-template-columns: 1fr; } .vc-ptabs button { padding: 12px 14px; }
  .vc-phc .m, .vc-phc .e { margin-left: 0; }
  .vc-grade button { font-size: 15px; padding: 14px 4px 10px; }
  .vc-find { width: 100%; }
}

.vc-phl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vc-pq { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; padding-top: 16px; padding-bottom: 16px; }
.vc-pq > div { display: flex; align-items: center; gap: 14px; }
.vc-pq img { width: 64px; height: auto; }
.vc-pq b { display: block; font-size: 18px; } .vc-pq small { font-size: 14px; color: var(--sub); }
.vc-ptabs + .vc-pq + .cd { margin-bottom: 18px; }
@media (max-width: 1000px) { .vc-phl { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .vc-pq .btn { width: 100%; } }

/* 11/21 고침 : 홈 카드(.nx) 모양이 문제 화면 ‘다음 문제’ 단추에 섞이던 것 */
.btn.nx { padding: 0 26px; border-radius: 16px; background: var(--g); color: #fff; box-shadow: 0 12px 22px -14px rgba(7, 128, 103, .9); gap: 8px; }
.btn.nx:hover { background: var(--g2); }
.btn.nx > svg { color: #fff; display: inline-block; }

/* [11/24] 예전 화면 머리글 — 휴대폰에서 한 줄 (단계로 · 새 창은 아이콘만) · 아래 화면을 크게 */
@media (max-width: 760px) {
  .emb-h { gap: 8px; padding: 8px 10px; border-radius: 16px; margin-bottom: 8px; }
  .emb-h .btn.sm { height: 38px; padding: 0 12px; font-size: 14px; border-radius: 11px; flex: none; }
  .emb-h .eb span, .emb-h .en span { display: none; }
  .emb-h .eb, .emb-h .en { width: 38px; padding: 0; }
  .emb-h .t small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .emb-h .t b { font-size: 15.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .emb { height: calc(100dvh - var(--top) - 150px); min-height: 420px; }
}

/* [11/25] 예전 화면을 다 꾸민 뒤에 보이기 — 그 전엔 말문해 ‘여는 중’ 카드 */
.emb-w { position: relative; }
.emb-w .emb { visibility: hidden; }
.emb-w.on .emb { visibility: visible; }
.emb-ld { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #fff; border-radius: var(--r); box-shadow: var(--sh); color: var(--sub); font-size: 15px; }
.emb-ld img { width: 96px; animation: embB 1.2s ease-in-out infinite alternate; }
.emb-ld b { font-weight: 700; color: var(--ink2); }
.emb-w.on .emb-ld { display: none; }
@keyframes embB { to { transform: translateY(-6px); } }
@media (max-width: 760px) { .emb-ld { border-radius: 16px; } }

/* [11/25] 예전 화면 머리글 → 카드 없이 얇은 한 줄 (‹ 단계 · 제목 · 다 했어요) */
.emb-h { display: flex; align-items: center; gap: 10px; padding: 0 2px; margin: -6px 0 -8px; background: none; box-shadow: none; border-radius: 0; min-height: 40px; }
.emb-h .eb { display: inline-flex; align-items: center; gap: 4px; flex: none; text-decoration: none; color: var(--sub); font-size: 14px; font-weight: 600; padding: 6px 8px 6px 2px; border-radius: 10px; }
.emb-h .eb:hover { color: var(--g2); background: #fff; }
.emb-h .eb svg { width: 18px; height: 18px; }
.emb-h .t { flex: 1; min-width: 0; font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emb-h .t:before { content: "·"; color: #b7c4c0; margin-right: 8px; font-weight: 400; }
.emb-h .btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 11px; box-shadow: none; flex: none; }
.emb-h .btn.sm svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .emb-h { gap: 6px; padding: 0; margin: -4px 0 -6px; min-height: 36px; border-radius: 0; }
  .emb-h .eb span { display: none; }
  .emb-h .eb { width: auto; padding: 6px 2px; }
  .emb-h .t { font-size: 15.5px; } .emb-h .t:before { display: none; }
  .emb-h .btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; }
  .emb { height: calc(100dvh - var(--top) - 128px); }
}

/* [11/25] 위 한 줄 안 스톱워치 (공부 시간 자동 기록) */
.emb-tm { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 4px 0 12px; border-radius: 11px; background: #fff; border: 1px solid var(--line); flex: none; }
.emb-tm i { width: 8px; height: 8px; border-radius: 50%; background: #b7c4c0; flex: none; }
.emb-tm.on i { background: var(--g); box-shadow: 0 0 0 4px rgba(10, 154, 126, .15); }
.emb-tm b { font-size: 14.5px; font-weight: 800; color: var(--sub); font-variant-numeric: tabular-nums; }
.emb-tm.on b { color: var(--g2); }
.emb-tm button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: var(--mint3); color: var(--g2); display: grid; place-items: center; padding: 0; }
.emb-tm button:hover { background: var(--mint); }
.emb-tm button svg { width: 15px; height: 15px; }
@media (max-width: 760px) { .emb-tm { height: 34px; padding: 0 3px 0 10px; gap: 6px; } .emb-tm b { font-size: 13px; } .emb-tm button { width: 26px; height: 26px; } }
