/* 말문해 · 강사 · 원장 화면 (11/18 · 3단계) */
.ml-org { font-size: 14px; font-weight: 800; color: var(--tl3); background: var(--mint3); border-radius: 999px; padding: 7px 14px; margin-right: 4px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.ml-av b.own { width: auto; padding: 0 16px; border-radius: 999px; font-size: 15px; }
body:not(.m-student) .ml-langs a { padding: 0 16px; }
.h3i { display: inline-flex; width: 26px; height: 26px; color: var(--tl); vertical-align: -5px; margin-right: 8px; }
.h3i svg { width: 24px; height: 24px; }
.cd-h .r a, .cd-h a { color: var(--sub); text-decoration: none; font-weight: 600; }
.cd-h .r a:hover { color: var(--tl2); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.sp { flex: 1; }
.up { color: var(--tl2) !important; } .n.dn, td.dn { color: #c0453a !important; }

/* 배너 */
.hero.st { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 0; padding: 30px 40px; }
.hero.st h1 { font-size: 30px; font-weight: 500; margin: 12px 0 10px; }
.hero.st h1 b { font-weight: 900; }
.hero.st .art { width: 170px; height: 150px; margin: -20px 0 -34px; }
.sp2 { opacity: .85; margin-left: 18px; font-weight: 600; }
.hstat { display: flex; border-left: 1px solid rgba(255, 255, 255, .35); }
.hstat > div { padding: 4px 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 120px; }
.hstat > div + div { border-left: 1px solid rgba(255, 255, 255, .35); }
.hstat svg { width: 32px; height: 32px; }
.hstat small { font-size: 14px; opacity: .92; }
.hstat b { font-size: 30px; font-weight: 900; line-height: 1; }
.hstat b span { font-size: 16px; font-weight: 700; margin-left: 2px; }
.hstat em { font-style: normal; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .22); padding: 2px 8px; border-radius: 8px; }
.hstat em.dn { background: rgba(255, 210, 200, .35); }
.hbub { display: flex; align-items: center; gap: 0; }
.hbub img { width: 120px; margin: -10px -14px -30px 0; filter: drop-shadow(0 12px 18px rgba(0, 50, 45, .3)); }
.hbub p { background: rgba(255, 255, 255, .94); color: var(--ink); border-radius: 18px; padding: 14px 16px; font-size: 14px; line-height: 1.55; margin: 0; max-width: 200px; box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .35); }
.hdate { display: flex; align-items: center; gap: 14px; border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 28px; }
.hdate svg { width: 34px; height: 34px; }
.hdate small { display: block; font-size: 14px; opacity: .9; } .hdate b { font-size: 19px; }

/* 도넛 · 범례 */
.dnw { display: flex; align-items: center; gap: 22px; }
.dn { position: relative; width: 150px; height: 150px; flex: none; }
.dn svg { width: 100%; height: 100%; }
.dn > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dn b { font-size: 30px; font-weight: 900; line-height: 1; } .dn b small { font-size: 15px; font-weight: 700; } .dn span { font-size: 13px; color: var(--sub); margin-top: 4px; }
.dnw.sm .dn { width: 120px; height: 120px; } .dnw.sm .dn b { font-size: 22px; }
.lg { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.lg li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.lg li i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.lg li b { margin-left: auto; font-weight: 800; } .lg li span { color: var(--sub); width: 48px; text-align: right; font-size: 13px; }

/* 진도 · 레이더 */
.pgw { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: end; }
.pgw small { font-size: 15px; color: var(--ink2); }
.big { display: block; font-size: 52px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 10px; }
.big span { font-size: 26px; }
.pgw .pill { font-style: normal; font-size: 12px; }
.bars.sb { height: 150px; padding-top: 6px; }
.bars.sb em { font-size: 13px; color: var(--ink2); margin-bottom: 2px; font-weight: 700; }
.bars.sb div.t em { color: var(--ink); background: none; border: 0; padding: 0; font-weight: 900; }
.rdw { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; align-items: center; }
.radar { width: 100%; max-width: 270px; }
.radar .rl { font-size: 12.5px; font-weight: 700; fill: #2b4640; font-family: var(--ff); }
.radar .rv { font-size: 12px; font-weight: 800; fill: #0b7d72; font-family: var(--ff); }
.wk { background: #f6faf8; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.wk > b { font-size: 15px; display: block; margin-bottom: 8px; }
.wk div { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 800; font-size: 15px; }
.wk div i { width: 24px; height: 24px; border-radius: 50%; background: var(--tl); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 13px; }
.wk div span { margin-left: auto; font-weight: 700; color: var(--ink2); }

/* 과제 · 피드백 · 표 */
.g3b { grid-template-columns: .9fr 1fr 1.55fr; }
.lk3 { border: 1px solid var(--line); border-radius: 16px; }
.lk3 a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; font-size: 16px; font-weight: 600; }
.lk3 a + a { border-top: 1px solid var(--line2); }
.lk3 a svg:first-child { width: 22px; height: 22px; color: var(--tl2); }
.lk3 a svg:last-child { width: 16px; height: 16px; }
.lk3 a b { margin-left: auto; font-size: 18px; font-weight: 900; }
.lk3 a:hover { background: var(--mint3); }
.sav { width: 34px; height: 34px; border-radius: 50%; background: var(--mint2); color: var(--tl3); display: inline-grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; margin-right: 8px; vertical-align: middle; }
.fbl { display: flex; flex-direction: column; }
.fbl > a, .fbl > div { display: flex; gap: 10px; align-items: flex-start; padding: 14px 2px; border-top: 1px solid var(--line2); text-decoration: none; position: relative; }
.fbl > :first-child { border-top: 0; }
.fbl > * > div { flex: 1; min-width: 0; }
.fbl b { font-size: 15px; } .fbl b small { font-weight: 500; color: var(--sub); }
.fbl b a { text-decoration: none; }
.fbl p { margin: 4px 0 0; font-size: 14px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbl p.full { white-space: normal; line-height: 1.6; }
.fbl time { font-size: 12px; color: var(--sub); flex: none; }
.fbl .x { border: 0; background: none; color: #9aa8a4; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.fbl .x svg { width: 15px; height: 15px; } .fbl .x:hover { background: #fbefed; color: #c0453a; }
.tbl.st td { vertical-align: middle; }
.tbl .nm { display: inline-flex; align-items: center; text-decoration: none; font-weight: 700; }
.tbl .nm:hover { color: var(--tl2); }
.pb { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.pb .bar { width: 96px; height: 8px; }
.tbl.mini { font-size: 14px; margin-top: 14px; } .tbl.mini th, .tbl.mini td { padding: 8px 4px; } .tbl.mini .pb .bar { width: 64px; height: 7px; }
.bd { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.bd.hi { background: #d6f4ec; color: #0b6f66; } .bd.mid { background: #e8f3f9; color: #2d6a8c; } .bd.warn { background: #fdf1d6; color: #9a6a10; } .bd.low { background: #fde5e2; color: #b4433a; } .bd.na { background: #f0f3f2; color: #7a8a85; }
.qk { display: flex; align-items: center; gap: 12px; padding: 16px 22px; overflow-x: auto; }
.qk > b { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 900; padding-right: 14px; border-right: 1px solid var(--line); flex: none; }
.qk > b svg { width: 24px; height: 24px; color: var(--tl); }
.qk a { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; flex: 1; justify-content: center; }
.qk a svg { width: 19px; height: 19px; color: var(--tl2); } .qk a svg:last-child { width: 15px; height: 15px; color: var(--ink2); }
.qk a:hover { border-color: #9fdccf; background: var(--mint3); }

/* 필터 · 상세 */
.flt { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.flt select, .flt input { height: 42px; border-radius: 12px; border: 1px solid #d6e2de; padding: 0 12px; font: inherit; background: #fff; }
.flt input { min-width: 160px; }
.sth { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sth .sav { width: 52px; height: 52px; font-size: 20px; margin: 0; }
.sth .t b { display: block; font-size: 22px; } .sth .t small { color: var(--sub); }
.kv3.k4 { grid-template-columns: repeat(4, 1fr); }
.kv3.k4 .kv { background: #fff; box-shadow: var(--sh); border: 0; border-radius: 18px; padding: 18px; }
.kv em { white-space: nowrap; }
.sbars { display: flex; flex-direction: column; gap: 12px; }
.sbars div { display: grid; grid-template-columns: 70px 1fr 46px; gap: 12px; align-items: center; font-size: 15px; }
.sbars b { text-align: right; }
.fbw textarea, .form textarea { width: 100%; border-radius: 14px; border: 1px solid #d6e2de; padding: 12px 14px; font: inherit; resize: vertical; }
.ck2 { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 600 !important; font-size: 14px !important; }
.ck2 input { width: 18px; height: 18px; accent-color: var(--tl); }
.weak .w { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }

/* 과제 목록 */
.arl { display: flex; flex-direction: column; }
.ar { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line2); flex-wrap: wrap; }
.ar:first-child { border-top: 0; }
.ar .t { flex: 1; min-width: 220px; } .ar .t b { display: block; font-size: 16px; } .ar .t small { color: var(--sub); font-size: 13px; }
.due { font-size: 13px; font-weight: 700; color: var(--ink2); background: #f2f6f4; border-radius: 8px; padding: 4px 10px; white-space: nowrap; }
.due.late { background: #fde5e2; color: #b4433a; }

/* 창 */
.mdl-bg { position: fixed; inset: 0; z-index: 80; background: rgba(8, 40, 35, .42); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mdl { width: min(640px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 24px; padding: 26px 28px 22px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .55); }
.mdl h3 { margin: 0 0 16px; font-size: 21px; }
.mdl .form { max-width: none; }
.mbox { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px 12px; }
.mchk { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.mchk label { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; font-size: 14.5px !important; padding: 6px 0; grid-template-columns: none; }
.mchk input { width: 17px; height: 17px; accent-color: var(--tl); flex: none; }
.mchk.stu { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; }
.pp { font-size: 11px; color: var(--tl2); background: var(--mint3); border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; background: #15302b; color: #fff; padding: 12px 22px; border-radius: 14px; font-weight: 700; transition: .25s; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.codebox { margin-top: 16px; background: var(--mint3); border: 1px dashed #7fd1c1; border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.codebox b { font-size: 34px; letter-spacing: .18em; font-weight: 900; color: var(--tl3); }
.code { font-size: 17px; letter-spacing: .14em; font-weight: 900; color: var(--tl3); }

/* 자료실 · 반 */
.lib { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lib .lb { border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.lib .lb h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 17px; flex-wrap: wrap; }
.lib .lb h4 small { flex-basis: 100%; font-weight: 500; font-size: 13px; color: var(--sub); }
.lib .lb .ic-c { width: 38px; height: 38px; } .lib .lb .ic-c svg { width: 19px; height: 19px; } .lib .lb .ic-c b { font-size: 17px; color: var(--tl2); }
.lib .lb a { display: block; padding: 9px 10px; border-radius: 10px; text-decoration: none; }
.lib .lb a:hover { background: var(--mint3); }
.lib .lb a span { font-weight: 700; font-size: 15px; display: block; } .lib .lb a small { color: var(--sub); font-size: 12.5px; }
.cls { display: flex; flex-direction: column; gap: 14px; }
.cl { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.cl .h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl .h b { font-size: 18px; }
.cl p { margin: 6px 0 12px; font-size: 14px; }
.mc { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 6px 0 14px; border-radius: 999px; background: #f2f6f4; font-size: 14px; font-weight: 600; text-decoration: none; }
a.mc { padding: 0 14px; }
.mc button { border: 0; background: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #8a9893; }
.mc button svg { width: 13px; height: 13px; } .mc button:hover { background: #fde5e2; color: #c0453a; }

/* 원장 */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.kpi { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.kpi .ic-c { width: 46px; height: 46px; }
.kpi small { font-size: 14px; font-weight: 700; color: var(--ink2); }
.kpi b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.02em; margin: 4px 0 6px; white-space: nowrap; }
.kpi b span { font-size: 17px; font-weight: 700; margin-left: 2px; }
.kpi em { font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--tl2); background: var(--mint3); padding: 3px 9px; border-radius: 8px; display: inline-block; }
.kpi em.dn { color: #b4594f; background: #fbefed; } .kpi em.nt { color: #6a7c77; background: #f1f5f3; font-weight: 600; }
.kpi .lock { font-size: 18px; color: #8a9893; font-weight: 800; margin: 0; }
.g4 { display: grid; grid-template-columns: 1.08fr 1.02fr .98fr 1fr; gap: 18px; }
.g4 .cd { padding: 20px 20px; }
.g4 .cd-h h3 { font-size: 19px; } .g4 .cd-h h3 small { font-size: 13px; color: var(--sub); font-weight: 600; margin-left: 6px; }
.cnt { display: inline-grid; place-items: center; min-width: 26px; height: 22px; border-radius: 999px; background: #e2584c; color: #fff; font-size: 12px; margin-left: 8px; vertical-align: 2px; }
.dist3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.dist3 div { background: #f3f8f6; border-radius: 12px; padding: 10px 8px; text-align: center; }
.dist3 small { font-size: 12px; color: var(--ink2); display: block; } .dist3 b { font-size: 22px; font-weight: 900; }
.iss { display: flex; flex-direction: column; gap: 10px; }
.iss a { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.iss a:hover { border-color: #9fdccf; }
.iss .ii { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #eef6f3; color: var(--tl2); }
.iss a.warn .ii { background: #fdeceb; color: #d24d42; }
.iss .ii svg { width: 18px; height: 18px; }
.iss a > div { flex: 1; min-width: 0; } .iss b { font-size: 14.5px; display: block; } .iss small { font-size: 12.5px; color: var(--sub); }
.iss a > svg { width: 15px; height: 15px; flex: none; }
.iss.one a { padding: 16px; } .iss.one b { font-size: 16px; } .iss.one small { font-size: 14px; }
.tabs { display: inline-flex; gap: 4px; margin-left: 14px; vertical-align: 3px; }
.tabs button { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: #f1f5f3; font-size: 13px; font-weight: 700; color: var(--ink2); }
.tabs button.on { background: linear-gradient(180deg, #13a594, #0b7d72); color: #fff; }
svg.lnb { width: 100%; display: block; }
svg.lnb text { font-size: 13px; fill: #6a7c77; font-family: var(--ff); } svg.lnb text.on { fill: var(--ink); font-weight: 800; } svg.lnb text.tag { fill: #fff; font-weight: 800; }
.g2b { grid-template-columns: 1.45fr 1fr; }
.grw { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; }
.gl { display: flex; flex-direction: column; gap: 10px; }
.gl div { display: grid; grid-template-columns: 30px 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 0 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.gl svg { width: 24px; height: 24px; color: var(--tl2); grid-row: span 2; }
.gl span { font-weight: 700; } .gl b { font-size: 21px; font-weight: 900; grid-row: span 2; } .gl small { font-size: 12px; color: var(--sub); }
.gr { background: linear-gradient(180deg, #e6f8f2, #f4fbf8); border-radius: 18px; padding: 18px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gr img { width: 110px; } .gr small { color: var(--ink2); font-size: 13px; } .gr b { font-size: 20px; font-weight: 900; color: var(--tl3); margin-top: 2px; }

@media (max-width: 1320px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: 1fr 1fr; }
  .g3b { grid-template-columns: 1fr 1fr; } .g3b > :last-child { grid-column: 1 / -1; }
  .hero.st { grid-template-columns: minmax(0, 1fr) auto; } .hero.st .hbub { display: none; }
  .lib { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .hero.st { grid-template-columns: 1fr; } .hstat, .hdate { border-left: 0; padding-left: 0; } .hstat > div:first-child { padding-left: 0; }
  .g2b, .grw { grid-template-columns: 1fr; }
  .ml-org { display: none; }
}
@media (max-width: 760px) {
  .hero.st { padding: 22px 20px; } .hero.st h1 { font-size: 22px; } .hero.st .art { display: none; }
  .hstat > div { min-width: 0; padding: 4px 12px; flex: 1; } .hstat b { font-size: 22px; } .hstat svg { width: 24px; height: 24px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 14px; flex-direction: column; gap: 6px; } .kpi b { font-size: 23px; }
  .g4, .g3b, .rdw, .pgw { grid-template-columns: 1fr; }
  .dnw { flex-direction: column; align-items: stretch; } .dn { align-self: center; }
  .kv3.k4 { grid-template-columns: 1fr 1fr; }
  .tbl { display: block; overflow-x: auto; white-space: nowrap; }
  .lib, .mchk { grid-template-columns: 1fr; }
  .qk { flex-wrap: nowrap; } .qk > b { display: none; }
  .tabs { display: flex; margin: 8px 0 0; }
  .mdl { padding: 20px 18px; border-radius: 20px; }
  .sth .sp { display: none; }
  .ar .t { min-width: 100%; }
}
/* 줄바꿈 다듬기 */
.lg li, .tbl.mini th, .tbl.mini td:first-child, .bars span, .tbl th { white-space: nowrap; }
.kpi > div { min-width: 0; }
.kpi em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rdw { grid-template-columns: minmax(0, 1fr) 124px; }
.wk { padding: 12px 10px; } .wk div { font-size: 14px; gap: 7px; padding: 6px 0; } .wk div i { width: 22px; height: 22px; }
.radar .rl { font-size: 14px; } .radar .rv { font-size: 13px; }
.pgw { grid-template-columns: 130px 1fr; }
