/* 혼공쌤의 English Care — Miro 스타일(캐너리 옐로 + 파스텔 카드 + 블랙 필 버튼)을 혼공 캐릭터 색에 맞춤 */
:root {
  --yellow: #ffd02f; --yellow-deep: #fcb900; --yellow-soft: #fff4c4; --yellow-bg: #fff8e0;
  --blue: #2b7de9; --blue-deep: #1a5fc2; --blue-soft: #e3efff;
  --coral: #ff8a80; --coral-soft: #ffe1dd; --teal: #0fbcb0; --teal-soft: #d4f7f3;
  --mint-soft: #e2f6ea; --lav-soft: #efeaff; --green: #18a957;
  --ink: #1c1c1e; --ink-deep: #050038; --slate: #555a6a; --muted: #8a8f9c;
  --canvas: #ffffff; --surface: #f7f8fa; --hair: #e0e2e8; --hair-soft: #eef0f3;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --pill: 999px;
  --shadow: 0 1px 2px rgba(5,0,56,.06), 0 4px 16px rgba(5,0,56,.06);
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --display: "Jua", var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.2px; margin: 0 0 .4em; color: var(--ink-deep); }
h1 { font-size: 30px; line-height: 1.2; } h2 { font-size: 22px; } h3 { font-size: 18px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair-soft); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--ink-deep); }
.brand b span { background: var(--yellow); padding: 0 6px; border-radius: 6px; }
.top nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { text-decoration: none; padding: 7px 12px; border-radius: var(--pill); color: var(--slate); font-weight: 600; font-size: 14px; }
.top nav a.on, .top nav a:hover { background: var(--yellow-soft); color: var(--ink); }
/* 묶음 메뉴 (운영 관리 ▾, 👤 ▾) */
.top nav { align-items: center; }
.navmenu { position: relative; }
.navmenu > summary { list-style: none; cursor: pointer; padding: 7px 12px; border-radius: var(--pill); color: var(--slate); font-weight: 600; font-size: 14px; white-space: nowrap; user-select: none; }
.navmenu > summary::-webkit-details-marker { display: none; }
.navmenu > summary.on, .navmenu > summary:hover, .navmenu[open] > summary { background: var(--yellow-soft); color: var(--ink); }
.navpanel { position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px; background: #fff; border: 1px solid var(--hair-soft); border-radius: 14px; box-shadow: 0 10px 30px rgba(15,23,42,.12); padding: 6px; display: flex; flex-direction: column; gap: 2px; z-index: 30; }
.navpanel.right { left: auto; right: 0; }
.top nav .navpanel a { border-radius: 10px; padding: 8px 12px; white-space: nowrap; }
.navhead { font-size: 11px; font-weight: 700; color: var(--muted); padding: 8px 12px 2px; }
.brand b { white-space: nowrap; }
@media (max-width: 640px) {
  /* 휴대폰: 로고는 한 줄로, 메뉴는 그 아래 한 줄 (넘치면 옆으로 밀기) */
  .top .wrap { height: auto; flex-wrap: wrap; row-gap: 2px; padding-top: 8px; padding-bottom: 6px; }
  .brand img { width: 32px; height: 32px; }
  .brand b { font-size: 17px; }
  .top nav { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { padding: 6px 10px; font-size: 13px; white-space: nowrap; flex: none; }
  /* 휴대폰: '나가기'는 메뉴 줄에 숨지 않게 로고 줄 오른쪽 끝에 늘 보이게 */
  .top nav a[href$="/logout"] { position: absolute; top: 10px; right: 14px; background: #f1f5f9; color: var(--ink); padding: 6px 12px; }
  .navmenu { flex: none; position: static; }
  .navmenu > summary { padding: 6px 10px; font-size: 13px; }
  /* 휴대폰: 메뉴 줄이 옆으로 밀리므로 펼친 목록은 머리글 바로 아래 전체 폭으로 */
  .navpanel, .navpanel.right { position: fixed; top: 100%; left: 12px; right: 12px; min-width: 0; }
}

main { padding: 24px 0 64px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: var(--pill); font: 700 15px var(--font); }
.btn:hover { background: #000; }
.btn.yellow { background: var(--yellow); color: var(--ink); } .btn.yellow:hover { background: var(--yellow-deep); }
.btn.blue { background: var(--blue); } .btn.blue:hover { background: var(--blue-deep); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hair); }
.btn.ghost:hover { background: var(--surface); }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn.lg { padding: 15px 28px; font-size: 17px; }
.btn.block { width: 100%; }

/* cards */
.card { background: var(--canvas); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 20px; }
.card.soft { border: 0; }
.card.y { background: var(--yellow-bg); border: 0; } .card.b { background: var(--blue-soft); border: 0; }
.card.c { background: var(--coral-soft); border: 0; } .card.t { background: var(--teal-soft); border: 0; }
.card.m { background: var(--mint-soft); border: 0; } .card.l { background: var(--lav-soft); border: 0; }
.card.g { background: var(--surface); border: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }

/* chips & badges */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--pill); font-size: 12.5px; font-weight: 700; background: var(--surface); color: var(--slate); white-space: nowrap; }
.chip.y { background: var(--yellow); color: var(--ink); } .chip.b { background: var(--blue); color: #fff; }
.chip.red { background: #ffe1dd; color: #b42318; } .chip.amber { background: #fff1d6; color: #9a5b00; }
.chip.blue { background: var(--blue-soft); color: var(--blue-deep); } .chip.yellow { background: var(--yellow-soft); color: #7a5b00; }
.chip.gray { background: var(--surface); color: var(--slate); }
.chip.purple { background: var(--lav-soft); color: #5b3cc4; } .chip.green { background: var(--mint-soft); color: #11743c; }
.classbadge { font-family: var(--display); font-size: 15px; padding: 4px 14px; }

/* flash */
.flash { background: var(--yellow-soft); border-radius: var(--r); padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }

/* forms */
label { display: block; font-weight: 700; font-size: 13px; color: var(--slate); margin: 0 0 6px; }
input[type=text], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--hair); border-radius: 12px; font: 15px var(--font); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field + .field { margin-top: 14px; }
.pin { font-size: 28px !important; letter-spacing: 12px; text-align: center; font-weight: 800; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; border-radius: var(--r-lg); padding: 24px 24px 0; background: var(--yellow); overflow: hidden; }
.hero.blue { background: var(--blue-soft); }
.hero img { height: 170px; display: block; }
.hero .txt { padding-bottom: 24px; }
@media (max-width: 640px) { .hero { padding: 18px 18px 0; } .hero img { height: 120px; } h1 { font-size: 24px; } }

/* login */
.login-wrap { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 20% 10%, var(--yellow-soft), transparent 50%), radial-gradient(circle at 90% 90%, var(--blue-soft), transparent 50%); }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 28px; padding: 28px; box-shadow: var(--shadow); text-align: center; }
.login-card img.char { width: 130px; margin-top: -8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.seg label { margin: 0; }
.seg input { display: none; }
.seg span { display: block; padding: 12px; border-radius: 14px; background: var(--surface); font-family: var(--display); font-size: 18px; color: var(--slate); cursor: pointer; }
.seg input:checked + span { background: var(--yellow); color: var(--ink); }
.seg input[value=중등]:checked + span { background: var(--blue); color: #fff; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 14px; padding: 4px; margin: -6px 0 10px; }
.tabs a { text-decoration: none; padding: 9px 0; border-radius: 11px; font-weight: 700; color: var(--slate); }
.tabs a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* book cover cards */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.book { display: block; text-decoration: none; background: var(--surface); border-radius: var(--r); padding: 12px; text-align: center; border: 2px solid transparent; transition: transform .12s; }
.book:hover { transform: translateY(-2px); border-color: var(--yellow); }
.book img { height: 150px; object-fit: contain; display: block; margin: 0 auto 8px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.12)); }
.book b { font-size: 13.5px; display: block; line-height: 1.35; }
.book.mine { background: var(--yellow-soft); border-color: var(--yellow); }
.cover-sm { width: 74px; height: 96px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0,0,0,.15)); }

/* progress */
.bar { height: 12px; background: rgba(5,0,56,.08); border-radius: var(--pill); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: var(--pill); }
.bar.y i { background: var(--yellow-deep); }
.dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dots i { width: 22px; height: 22px; border-radius: 50%; background: rgba(5,0,56,.08); display: grid; place-items: center; font-size: 11px; font-style: normal; color: var(--muted); }
.dots i.on { background: var(--yellow); color: var(--ink); font-weight: 800; }
.dots a { width: 22px; height: 22px; border-radius: 50%; background: rgba(5,0,56,.08); display: grid; place-items: center; font-size: 11px;
  color: var(--muted); text-decoration: none; }
.dots a.on { background: var(--yellow); color: var(--ink); font-weight: 800; }
.dots a.rd { width: auto; min-width: 28px; padding: 0 5px; border-radius: 11px; background: rgba(22,163,74,.10); color: #15803d; }
.dots a.rd.on { background: #16a34a; color: #fff; font-weight: 800; }
.dots a.go { cursor: pointer; box-shadow: 0 0 0 0 rgba(37,99,235,0); transition: transform .1s; }
.dots a.go:hover { transform: scale(1.15); box-shadow: 0 0 0 2px #2563eb; }

/* calendar */
.cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal th { font-size: 12px; color: var(--muted); font-weight: 700; padding: 4px 0; }
.cal td { vertical-align: top; height: 78px; border-radius: 12px; background: var(--surface); padding: 5px; position: relative; font-size: 12px; }
.cal td.out { background: transparent; color: #c5c8d0; }
.cal td.today { box-shadow: inset 0 0 0 2px var(--ink); }
.cal .dn { font-weight: 700; }
.cal td.sched { background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair); }
.cal td.missed { background: #fff3f1; }
.cal td.excused { background: var(--teal-soft); }
/* 확인한 출결 특이사항 기간: 인증일이든 아니든 회색 빗금 + 빨간 테두리 = 학업 없는 날 */
.cal td.away, .legend .awayi { background: repeating-linear-gradient(135deg, #eceef2 0 6px, #dfe2e8 6px 12px); }
.cal td.away { box-shadow: inset 0 0 0 2px #f2a7a0; color: #6b7280; }
.cal td.away .dn { color: #9ca3af; text-decoration: line-through; }
.cal .tag.away { background: #fee2e2; color: #b42318; }
.stamp { position: absolute; inset: 18px 0 0 0; display: grid; place-items: center; }
.stamp img { width: 46px; height: 46px; object-fit: contain; transform: rotate(-10deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,.15)); }
.stamp img.late { filter: grayscale(.2) drop-shadow(0 2px 2px rgba(0,0,0,.15)); opacity: .8; }
.stamp .ring { position: absolute; width: 54px; height: 54px; border: 2.5px solid rgba(230,40,40,.55); border-radius: 50%; transform: rotate(-10deg); }
.cal .tag { position: absolute; left: 4px; right: 4px; bottom: 4px; font-size: 10.5px; font-weight: 700; text-align: center; border-radius: 6px; padding: 1px 0; }
.tag.miss { color: #b42318; } .tag.ex { color: #0b6b63; } .tag.late { color: #9a5b00; background: #fff1d6; }
.tag.up { color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .cal td { height: 58px; padding: 3px; } .stamp img { width: 34px; height: 34px; } .stamp .ring { width: 40px; height: 40px; } .cal .tag { font-size: 9.5px; } }
/* 추가숙제(파랑)·주말 음독(초록) 미니 도장 — 12회 카운트와 구분 */
.mini { position: absolute; top: 3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; z-index: 2; }
.mini img { width: 17px; height: 17px; object-fit: contain; }
.mini.extra { background: var(--blue-soft); box-shadow: 0 0 0 2px var(--blue); }
.mini.extra img { filter: hue-rotate(160deg) saturate(1.3); }
.mini.reading { background: var(--mint-soft); box-shadow: 0 0 0 2px var(--green); }
.mini.reading img { filter: hue-rotate(80deg) saturate(1.2); }
.mini.wait { background: var(--yellow-soft); font-size: 11px; font-weight: 800; color: #7a5b00; }
.cal td:has(.mini) .stamp { inset: 22px 0 0 0; }
@media (max-width: 640px) { .mini { width: 16px; height: 16px; } .mini img { width: 13px; height: 13px; } }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--slate); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 4px; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair-soft); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1.5px solid var(--hair); white-space: nowrap; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--hair-soft); vertical-align: top; }
table.t tr:hover td { background: #fcfcfd; }

/* feedback bubble */
.bubble { position: relative; background: var(--yellow-bg); border-radius: 20px; padding: 18px 20px; font-size: 16px; line-height: 1.7; white-space: pre-wrap; }
.bubble.strict { background: var(--coral-soft); }
.speaker { display: flex; gap: 12px; align-items: flex-start; }
.speaker img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.score { background: var(--surface); border-radius: 14px; padding: 12px; text-align: center; }
.score b { display: block; font-size: 18px; color: var(--yellow-deep); letter-spacing: 1px; }
.score span { font-size: 12px; color: var(--slate); font-weight: 700; }
@media (max-width: 480px) { .scores { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .score b { font-size: 14px; } }

/* photos */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photos img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; cursor: zoom-in; background: var(--surface); }
.photo-main img { width: 100%; border-radius: 14px; background: var(--surface); }
.dropzone { border: 2.5px dashed var(--hair); border-radius: 20px; padding: 28px 16px; text-align: center; background: var(--surface); cursor: pointer; display: block; }
.dropzone:hover { border-color: var(--yellow-deep); background: var(--yellow-bg); }
.dropzone img { width: 80px; }
.preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 12px; }
.preview img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; }

/* quiz */
.q { background: #fff; border: 1px solid var(--hair); border-radius: 18px; padding: 18px; }
.q .qbox { background: var(--surface); border-radius: 10px; padding: 10px 12px; margin: 8px 0; white-space: pre-wrap; font-size: 14.5px; }
.opts { display: grid; gap: 8px; margin-top: 10px; }
.opts label { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 12px; background: var(--surface); cursor: pointer; margin: 0; font-size: 15px; color: var(--ink); font-weight: 500; }
.opts input { accent-color: var(--blue); width: 18px; height: 18px; }
.opts label:has(input:checked) { background: var(--blue-soft); box-shadow: inset 0 0 0 1.5px var(--blue); }
.q.ok { border-color: var(--green); background: #f6fdf9; } .q.no { border-color: var(--coral); background: #fff8f7; }
.verdict { font-family: var(--display); font-size: 17px; }
.verdict.ok { color: var(--green); } .verdict.no { color: #d43c2b; }
.exp { font-size: 13.5px; color: var(--slate); margin-top: 6px; }
u { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* admin */
.kpi { border-radius: var(--r-lg); padding: 18px; }
.kpi b { font-family: var(--display); font-size: 34px; font-weight: 400; display: block; line-height: 1.1; color: var(--ink-deep); }
.kpi span { font-size: 13px; font-weight: 700; color: var(--slate); }
a.kpi { display: block; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
a.kpi:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15, 23, 42, .08); }
#warn, #fee, #events { scroll-margin-top: 90px; }
.ststat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ststat > div { background: rgba(255, 255, 255, .75); border-radius: 12px; padding: 8px 10px; line-height: 1.25; }
.ststat small { display: block; font-size: 11.5px; font-weight: 700; color: var(--slate); }
.ststat b { font-size: 19px; color: var(--ink-deep); }
.ststat b.g { color: #15803d; } .ststat b.bl { color: #1d4ed8; } .ststat b.o { color: #c2410c; }
.ststat em { font-style: normal; font-size: 12px; color: var(--slate); margin-left: 3px; }
.rkt td, .rkt th { vertical-align: middle; }
.alert-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hair-soft); }
.alert-row:last-child { border-bottom: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 15px; flex: none; }
.avatar.초등 { background: var(--yellow); } .avatar.중등 { background: var(--blue); color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 76px; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { margin: 0; }
.days input { display: none; }
.days span { display: inline-block; width: 38px; text-align: center; padding: 7px 0; border-radius: 10px; background: var(--surface); font-weight: 700; color: var(--slate); cursor: pointer; }
.days input:checked + span { background: var(--ink); color: #fff; }
.rate { display: flex; gap: 4px; }
.rate label { margin: 0; } .rate input { display: none; }
.rate span { display: inline-block; width: 34px; text-align: center; padding: 6px 0; border-radius: 10px; background: var(--surface); font-weight: 800; cursor: pointer; }
.rate input:checked + span { background: var(--yellow); }
details.box { background: var(--surface); border-radius: var(--r); padding: 12px 16px; }
details.box summary { cursor: pointer; font-weight: 700; }
.pre { white-space: pre-wrap; }
.kakao { background: #fee500; color: #191919; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty img { width: 110px; opacity: .9; }
footer.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 0 40px; }

/* 성취도 요약 */
.ach { background: #fff; border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.perfbar { display: flex; height: 22px; border-radius: 8px; overflow: hidden; margin: 8px 0; font-size: 11px; font-weight: 700; }
.perfbar i { font-style: normal; display: grid; place-items: center; white-space: nowrap; overflow: hidden; color: #fff; min-width: 0; }
.perfbar .g { background: var(--green); } .perfbar .b { background: var(--blue); } .perfbar .y { background: var(--yellow-deep); color: var(--ink); } .perfbar .o { background: #f08a24; } .perfbar .r { background: #d43c2b; }
/* 5단계 수행 평가 버튼 */
.perf5 { display: flex; gap: 4px; flex-wrap: wrap; }
.perf5 label { margin: 0; } .perf5 input { display: none; }
.perf5 span { display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 700; color: var(--slate); cursor: pointer; }
.perf5 input:checked + span.p1 { background: var(--green); color: #fff; }
.perf5 input:checked + span.p2 { background: var(--blue); color: #fff; }
.perf5 input:checked + span.p3 { background: var(--yellow); color: var(--ink); }
.perf5 input:checked + span.p4 { background: #f08a24; color: #fff; }
.perf5 input:checked + span.p5 { background: #d43c2b; color: #fff; }
.achgrid { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--slate); }
.achgrid b { color: var(--ink); }
.achscore { display: inline-flex; align-items: baseline; gap: 2px; padding: 2px 10px; border-radius: 10px; color: #fff; line-height: 1.2; cursor: help; }
.achscore b { font-size: 22px; font-weight: 800; color: #fff; } .achscore small { font-size: 11px; opacity: .9; }
.achscore.g { background: var(--green); } .achscore.b { background: var(--blue); } .achscore.o { background: #f08a24; }

/* 사진 확대 뷰어 */
.lb { position: fixed; inset: 0; background: rgba(5,0,56,.88); z-index: 100; display: none; }
.lb.on { display: block; }
.lb .stage { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; }
.lb img { position: absolute; left: 50%; top: 50%; max-width: 92vw; max-height: 86vh; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.lb .bar2 { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 6px; background: rgba(255,255,255,.95); padding: 6px; border-radius: 999px; z-index: 2; }
.lb .lbnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 56px; height: 56px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.92); font: 800 34px/1 var(--font); color: var(--ink); cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.lb .lbnav.prev { left: 18px; } .lb .lbnav.next { right: 18px; } .lb .lbnav:hover { background: #fde047; }
.lb .lbnav[hidden], .lb .lbcount[hidden] { display: none; }
.lb .lbcount { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 2; background: rgba(255,255,255,.92); border-radius: 999px; padding: 5px 14px; font: 700 14px var(--font); }
@media (max-width: 640px) { .lb .lbnav { width: 44px; height: 44px; font-size: 28px; } .lb .lbnav.prev { left: 8px; } .lb .lbnav.next { right: 8px; } }
textarea[data-f] { overflow: hidden; resize: vertical; }
@media (max-width: 900px) { .lb .lbwin { display: none; } }  /* 폰·태블릿은 새 창이 필요 없음 */
.lb .bar2 button { border: 0; background: var(--surface); border-radius: 999px; padding: 8px 14px; font: 700 14px var(--font); cursor: pointer; }
.zoomable { cursor: zoom-in; }

/* 음독 분석 */
.ana h3 { display: flex; gap: 8px; align-items: center; }
.flag { background: #fff3f1; border-radius: 10px; padding: 8px 10px; margin-top: 6px; font-size: 13.5px; }
.flag.ok { background: var(--mint-soft); }
.rate-btns { display: inline-flex; gap: 4px; margin-left: 6px; }
.rate-btns button { border: 0; background: var(--surface); border-radius: 999px; padding: 3px 9px; font: 700 12px var(--font); cursor: pointer; }
.rate-btns button.on { background: var(--ink); color: #fff; }

/* print (parent report) */
@media print { .top, .noprint { display: none !important; } main { padding: 0; } .card { break-inside: avoid; } body { font-size: 12.5px; } }

/* 쌤 피드백: 점수 + 코멘트 묶음, 메시지 자동 반영 표시 */
.scorebox{background:var(--bg-soft,#f7f7f5);border-radius:14px;padding:12px 14px}
.flashy{animation:flashy 1.2s ease}
@keyframes flashy{0%{box-shadow:0 0 0 3px #ffd84d}100%{box-shadow:0 0 0 0 transparent}}

/* 리포트 소통 말풍선 */
.talk{display:flex;gap:8px;align-items:flex-start;margin:8px 0}
.talk.parent,.talk.student{justify-content:flex-end}
.talk img{width:32px;height:32px;border-radius:50%;flex:0 0 32px}
.talk .tb{max-width:82%;padding:9px 12px;border-radius:14px;background:#fff}
.talk.parent .tb,.talk.student .tb{background:#e8f1ff}
.talk.teacher .tb{background:#fff7d6;border:1px solid #f3e2a0}
@media print{.no-print{display:none!important}}

/* 교재 관리: 커리큘럼 순서 끌어 옮기기 · 표지 찾기 */
.orderlist{list-style:none;margin:0;padding:0;counter-reset:ord}
.orderlist li{display:flex;align-items:center;gap:10px;background:#fff;border-radius:12px;padding:6px 10px;margin:5px 0;counter-increment:ord}
.orderlist li::before{content:counter(ord);font-size:12px;color:var(--muted);width:18px;text-align:right}
.orderlist li.off{opacity:.55}
.orderlist li img{width:30px;height:40px;object-fit:cover;border-radius:4px}
.orderlist .handle{cursor:grab;font-size:20px;color:var(--muted);padding:0 4px;user-select:none;touch-action:none}
.orderlist .nm{flex:1 1 220px;min-width:0}
.orderlist .nx{flex:0 1 260px;text-align:right}
.orderlist li.sortable-ghost{opacity:.35;background:#fff7d6}
.cpitem{display:flex;flex-direction:column;align-items:center;gap:4px;width:96px;border:1px solid var(--hair,#e5e5e5);background:#fff;border-radius:10px;padding:6px;cursor:pointer}
.cpitem img{width:72px;height:100px;object-fit:cover;border-radius:4px}
.cpitem span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cpitem:hover{border-color:#f0c419}

/* 12회 연장 의사 고르기 */
.renewseg{flex-wrap:wrap}
.renewseg label{flex:1 1 160px}

/* 리포트: 주말 음독 총평 */
.rs-kpi{background:#fff;border-radius:14px;padding:10px 8px;flex:1 1 0;min-width:0;text-align:center}
.rs-kpi b{display:block;font-size:26px;line-height:1.1}
.rs-kpi b small{font-size:13px;font-weight:600;color:var(--muted)}
.rs-kpi b.up{color:#1a7f37}.rs-kpi b.down{color:#b45309}
.rs-kpi span{font-size:12px;color:var(--muted)}
.rs-chart{height:160px;padding:22px 10px 26px;background:#fff;border-radius:14px}
.rs-plot{position:relative;display:flex;align-items:flex-end;gap:8px;height:100%}
.rs-col{flex:1 1 0;max-width:56px;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative}
.rs-col>span{position:absolute;bottom:-20px;font-size:11px;color:var(--muted);white-space:nowrap}
.rs-bar{width:100%;border-radius:8px 8px 3px 3px;position:relative;min-height:4px}
.rs-bar.ok{background:#34c27a}.rs-bar.no{background:#f5b041}
.rs-bar em{position:absolute;top:-17px;left:0;right:0;text-align:center;font-style:normal;font-size:11px;font-weight:700}
.rs-line{position:absolute;left:0;right:0;border-top:2px dashed rgba(26,127,55,.45);height:0;z-index:1;pointer-events:none}
.rs-line span{position:absolute;right:0;top:-16px;font-size:10px;color:#1a7f37;font-style:normal}

/* 레벨 테스트 */
.login-card.lt { max-width: 560px; text-align: left; }
.login-card.lt h1, .login-card.lt > p, .login-card.lt > img { text-align: center; display: block; margin-left: auto; margin-right: auto; }
.ltq { background: var(--surface); border-radius: 16px; padding: 12px 14px; margin: 10px 0; }
.ltq-q { font-size: 17px; font-weight: 800; margin: 4px 0 8px; line-height: 1.5; word-break: keep-all; }
.ltq-c { display: grid; gap: 6px; }
.ltq-c label { margin: 0; }
.ltq-c input { position: absolute; opacity: 0; pointer-events: none; }
.ltq-c span { display: block; padding: 9px 12px; border-radius: 12px; background: #fff; border: 2px solid transparent; font-weight: 600; cursor: pointer; }
.ltq-c span.dont { color: var(--muted); font-weight: 500; }
.ltq-c input:checked + span { border-color: var(--ink); background: #fff8d6; }
.ltq-c input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.ltbar { height: 8px; border-radius: 6px; background: var(--surface); overflow: hidden; }
.ltbar i { display: block; height: 100%; background: var(--ink); }
.lt-progress { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.lt-progress .ltbar { flex: 1; }
.lt.one .ltq { display: none; }
.lt.one .ltq.on { display: block; animation: ltin .2s ease; }
.lt-nav { display: none; justify-content: space-between; gap: 8px; margin-top: 4px; }
.lt.one .lt-nav { display: flex; }
.lt.one .ltq-q { font-size: 20px; margin: 8px 0 12px; }
.lt.one .ltq-c span { padding: 12px 14px; font-size: 16px; }
@keyframes ltin { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lt.one .ltq.on { animation: none; } }

/* 파일 고르기: display:none이면 아이폰·카톡 브라우저에서 라벨을 눌러도 안 열려서, 보이지만 않게 둔다 */
.pick { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.dropzone, .filebtn { position: relative; }
/* 다른 강의 골라 보기 */
.lec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.lec-list a { display: block; padding: 8px 10px; border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.lec-list.done a { font-weight: 500; color: var(--slate); }

/* 달력: 음독 테스트 날 */
.cal .rt { position: absolute; left: 3px; top: 18px; font-size: 15px; line-height: 1; text-decoration: none; background: var(--mint-soft, #e5f4e4); border-radius: 8px; padding: 2px 3px; }

/* 리포트: 담임 선생님 별점 (오른쪽부터 5→1, 고른 별까지 왼쪽 별들이 채워짐) */
.stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 34px; line-height: 1; color: #d9d9d9; cursor: pointer; margin: 0; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #ffb400; }
.stars input:focus-visible + label { outline: 2px solid var(--ink, #222); border-radius: 4px; }

/* 온보딩 (선생님 첫걸음) */
.tr-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 14px; }
.tr-toc a { font-size: 14px; }
.tr-sec { margin-top: 16px; }
.tr-sec h2 { margin-top: 0; }
.tr-flow { padding-left: 20px; line-height: 1.9; font-size: 15px; }
.tr-shot { margin: 12px 0; }
.tr-shot img { width: 100%; max-height: 520px; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid rgba(0,0,0,.1); box-shadow: 0 4px 14px rgba(0,0,0,.06); display: block; }
.tr-shot figcaption { font-size: 13px; color: var(--muted, #777); margin-top: 6px; }
.tr-step { border: 1px solid rgba(0,0,0,.08); border-radius: 16px; padding: 16px; margin-top: 14px; }
.tr-step.pass { border-color: #9bd8a9; background: #f4fbf5; }
.tr-step.fail { border-color: #f2a9a9; background: #fff6f6; }
.tr-res { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f6f6f6; }
.tr-res.pass { background: #e6f6ea; }
.tr-res.fail { background: #fde8e8; }
.tr-mini { padding: 6px 0; border-bottom: 1px dashed rgba(0,0,0,.08); }
.tr-shot img[src*="t_kid"] { max-width: 380px; max-height: 640px; }

/* 온보딩: 한 사이클 해 보기 */
.tr-go { font-size: 18px; padding: 16px; margin-top: 6px; text-align: center; }
.cyc-line { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.cyc-step { display: flex; gap: 12px; align-items: flex-start; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; padding: 12px 14px; }
.cyc-step.pass { background: #f4fbf5; border-color: #9bd8a9; }
.cyc-step.fail { background: #fff6f6; border-color: #f2a9a9; }
.cyc-no { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow, #ffd23f); display: grid; place-items: center; font-weight: 800; }

/* 음독 점수: 휴대폰에서도 3칸 */
.grid.rscore { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* 월 리포트 그래프 */
.rchart-wrap { width: 100%; overflow-x: auto; }
.rchart { width: 100%; min-width: 480px; height: auto; display: block; }
.rchart .grid { stroke: #e5e7eb; stroke-width: 1; }
.rchart .ax { font-size: 12px; fill: #64748b; }
.rchart .ax.sm { font-size: 10.5px; }
.rchart .ax.val { font-size: 12px; fill: #0f172a; font-weight: 700; }
.rchart .hit { fill: transparent; cursor: pointer; }
.rchart a:hover .hit { fill: rgba(250, 204, 21, .15); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--slate); margin-bottom: 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* 월 리포트: 공유 버튼·총평 서명·도장 */
.sharebar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 12px; }
.chart-note { font-size: 13px; margin: 8px 0 0; padding: 8px 12px; background: #f8fafc; border-radius: 10px; line-height: 1.6; }
.verdict { border: 2px solid #f3e2a0; }
.signoff { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; text-align: right; line-height: 1.6; }
.seal-wrap { display: inline-block; transform: rotate(-6deg); margin-left: 2px; opacity: .93; }
#sheet.capture { width: 720px; }
#sheet.capture .rchart { min-width: 0; }
.seal { display: block; }
.shot-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.6); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.shot-overlay[hidden] { display: none; }
.shot-box { background: #fff; border-radius: 16px; padding: 14px; max-height: 90vh; overflow: auto; text-align: center; }
.shot-box img { max-width: 100%; display: block; margin: 0 auto 10px; border: 1px solid #e5e7eb; }
@media print { .sharebar, .shot-overlay { display: none !important; } }

/* 월 리포트 v2 */
.rep-hero .period { font-family: var(--display); font-size: 26px; color: var(--ink-deep); }
details.more { margin-top: 10px; border-top: 1px dashed #e5e7eb; padding-top: 8px; }
details.more > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: #2563eb; list-style: none; padding: 6px 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { color: var(--slate); }
.list.sess li { padding: 8px 0; }
.rtext, .vtext { white-space: pre-wrap; line-height: 1.85; font-size: 15px; background: #fffdf5; border-radius: 12px; padding: 14px 16px; margin: 6px 0 10px; }
.vtext { background: #fffbea; }
.hu-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 22px auto 4px; width: max-content; text-decoration: none; color: #102a5e; }
.hu-logo img { width: 34px; height: auto; }
.hu-logo span { font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: .02em; color: #102a5e; }
.hu-logo:hover span { text-decoration: underline; }
.vtext.plan { background: #f0f7ff; }
.card.growth { border: 2px solid #bbf7d0; background: #f6fef9; }
.gtext { font-size: 15.5px; line-height: 1.8; white-space: pre-wrap; }
.gtext + .gtext { margin-top: 8px; }
.card.sample .gtext { opacity: .78; }

/* 한 달 16칸: 음독 칸 */
.dots i.rd { width: auto; min-width: 28px; padding: 0 5px; border-radius: 11px; background: rgba(22,163,74,.10); color: #15803d; }
.dots i.rd.on { background: #16a34a; color: #fff; font-weight: 800; }
.dots i.rd.wait { background: #86efac; color: #14532d; }

/* 과목 요일 고르기 */
.daychip { margin: 0; cursor: pointer; }
.daychip input { display: none; }
.daychip span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(5,0,56,.06); font-size: 12px; font-weight: 700; color: var(--muted); }
.daychip input:checked + span { background: #a855f7; color: #fff; }

/* 추가 과목 칸·제목 */
.dots i.ex { width: auto; min-width: 28px; padding: 0 5px; border-radius: 11px; background: rgba(168,85,247,.10); color: #7e22ce; }
.dots i.ex.on { background: #a855f7; color: #fff; font-weight: 800; }
h4.subj { margin: 16px 0 2px; font-size: 15px; padding-left: 8px; border-left: 4px solid #a855f7; }
h4.subj.main { border-left-color: #2563eb; }

/* 리포트 상단: 과목별 교재·인증 요일 */
.hsubj { display: flex; flex-direction: column; gap: 6px; margin: 0 0 20px; }
.hsrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; background: rgba(255,255,255,.75); border-radius: 12px; padding: 6px 10px; }
.hsname { font-weight: 800; font-size: 14px; }
.hsbook { font-size: 13px; flex: 1 1 140px; }
.wk { display: inline-flex; gap: 3px; }
.wk i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: rgba(5,0,56,.06); color: #94a3b8; }
.wk i.on { background: #2563eb; color: #fff; }
.wk i.on.ex { background: #a855f7; }

/* PC 화면 크기 맞춤 (폰은 그대로): 사진 보기(.lb)와 크기 버튼(.fsz)만 빼고 확대 */
.fsz { display: none; }
@media (min-width: 900px) and (pointer: fine) {
  body > :not(.lb):not(.fsz):not(.asearch):not(script) { zoom: var(--z, 1); }
  .login-wrap { min-height: calc((100vh - 60px) / var(--z, 1)); }
  .fsz { display: flex; align-items: center; gap: 4px; position: fixed; right: 14px; bottom: 14px; z-index: 90; background: rgba(255,255,255,.95);
         border: 1px solid var(--hair-soft); border-radius: 999px; padding: 4px 6px 4px 12px; box-shadow: 0 4px 14px rgba(15,23,42,.12); font: 600 13px var(--font); color: var(--slate); }
  .fsz button { border: 0; background: #f1f5f9; border-radius: 999px; min-width: 30px; height: 30px; font: 800 15px var(--font); cursor: pointer; color: var(--ink); }
  .fsz button:hover { background: var(--yellow-soft); } .fsz button.auto { font-size: 12px; font-weight: 700; padding: 0 10px; }
  .fsz b { min-width: 44px; text-align: center; color: var(--ink); }
}
@media print { .fsz { display: none !important; } body > * { zoom: 1 !important; } }

/* 아이 계급(메달) */
.mchip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; vertical-align: middle;
  color: #fff; background: var(--mc, #94a3b8); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); white-space: nowrap; font-family: var(--font); }
.mchip.none { background: #e2e8f0; color: #475569; box-shadow: none; }
.mcard { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 20px; padding: 16px 18px;
  border: 2px solid var(--mc); box-shadow: 0 6px 18px rgba(15,23,42,.06); }
.mbig { width: 84px; height: 84px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 46px;
  background: radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--mc) 35%, #fff)); border: 4px solid var(--mc); }
.mname { font: 800 26px/1.15 var(--font); color: var(--mc); }
.mbars { display: grid; gap: 6px; margin-top: 8px; }
.mbars div { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 8px; font-size: 12.5px; }
.mbars i { height: 10px; border-radius: 999px; background: #eef2f7; overflow: hidden; display: block; }
.mbars u { display: block; height: 100%; border-radius: 999px; background: var(--mc); text-decoration: none; }
.mladder { display: flex; justify-content: space-between; gap: 4px; margin-top: 8px; padding: 0 4px; }
.mladder span { flex: 1; text-align: center; font-size: 20px; opacity: .28; filter: grayscale(1); }
.mladder span.on { opacity: 1; filter: none; }
.mladder small { display: block; font-size: 10px; font-weight: 700; color: var(--slate); }
.mcele { position: fixed; inset: 0; z-index: 120; background: rgba(5,0,56,.72); display: grid; place-items: center; padding: 16px; animation: mfade .3s; }
.mcele-box { background: #fff; border-radius: 28px; padding: 26px 22px; max-width: 380px; width: 100%; text-align: center; border: 4px solid var(--mc); }
.mcele-icon { font-size: 96px; line-height: 1.1; animation: mpop .7s cubic-bezier(.2,1.6,.4,1); }
.mcele-next { background: #fffbea; border-radius: 14px; padding: 10px 12px; margin: 14px 0; font-size: 15px; }
@keyframes mpop { 0% { transform: scale(.2) rotate(-20deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes mfade { from { opacity: 0; } }
@media (max-width: 480px) { .mbig { width: 64px; height: 64px; font-size: 34px; } .mname { font-size: 22px; } .mbars div { grid-template-columns: 1fr; gap: 3px; } }
/* 아이 EXP 바 */
.xpbox { background: #0f172a; color: #fff; border-radius: 18px; padding: 12px 14px; margin-top: 10px; }
.xpbox .muted { color: #cbd5e1; }
.xptrack { position: relative; height: 18px; border-radius: 999px; background: #1e293b; margin-top: 6px; overflow: visible; box-shadow: inset 0 2px 4px rgba(0,0,0,.4); }
.xpfill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #facc15, var(--mc, #f59e0b)); box-shadow: 0 0 10px rgba(250,204,21,.6); min-width: 6px; }
.xpfill.charging { animation: xpglow .5s ease-in-out infinite alternate; }
.xpgain { display: inline-block; margin-left: 6px; font: 800 13px var(--font); color: #fde047; animation: xpup 3s ease-out forwards; }
.xpnear { margin-top: 8px; background: rgba(250,204,21,.16); border: 1px solid rgba(250,204,21,.5); border-radius: 12px; padding: 6px 10px; font-size: 13px; animation: xpblink 1.6s ease-in-out infinite alternate; }
@keyframes xpglow { from { filter: brightness(1); } to { filter: brightness(1.45); } }
@keyframes xpup { 0% { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: .0; } }
@keyframes xpblink { from { box-shadow: 0 0 0 rgba(250,204,21,0); } to { box-shadow: 0 0 14px rgba(250,204,21,.45); } }

/* 온보딩: 한 단계씩 */
.tr-steps { position: sticky; top: 64px; z-index: 5; display: flex; gap: 4px; margin-top: 14px; padding: 8px; background: rgba(255,255,255,.96);
  border-radius: 18px; box-shadow: 0 2px 10px rgba(15,23,42,.06); overflow-x: auto; scrollbar-width: none; }
.tr-steps button { flex: 1 0 auto; display: flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 6px 10px; border-radius: 12px;
  font: 600 13px var(--font); color: var(--slate); cursor: pointer; white-space: nowrap; }
.tr-steps button i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e2e8f0; font-weight: 800; font-size: 12px; }
.tr-steps button.done i { background: #22c55e; color: #fff; }
.tr-steps button.on { background: var(--yellow-soft); color: var(--ink); }
.tr-steps button.on i { background: #facc15; color: var(--ink); }
.tr-steps button:disabled { opacity: .4; cursor: not-allowed; }
.tr-next { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--hair-soft); }
.tr-labgo { text-align: center; padding: 40px 22px; background: linear-gradient(160deg, #fff7ed, #fffbea); border: 3px solid #fdba74; }
.tr-labgo-icon { font-size: 84px; line-height: 1; animation: mpop .8s cubic-bezier(.2,1.6,.4,1); }
.tr-labgo-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px auto 0; max-width: 640px; }
.tr-labgo-tips div { background: #fff; border-radius: 16px; padding: 12px; font-size: 15px; }
@media (max-width: 640px) { .tr-labgo-tips { grid-template-columns: 1fr; } .tr-steps { top: 96px; } .tr-steps span { display: none; } .tr-steps button.on span { display: inline; } }
.tr-sec[hidden] { display: none !important; }

/* 관리자 검색 (오른쪽 아래) — 글씨 크기 버튼은 왼쪽 아래로 */
.fsz { right: auto !important; left: 14px; }
.asearch { position: fixed; right: 16px; bottom: 16px; z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.asbtn { border: 0; border-radius: 999px; padding: 12px 18px; background: #0f172a; color: #fff; font: 800 15px var(--font); cursor: pointer;
  box-shadow: 0 6px 18px rgba(15,23,42,.25); }
.asbtn:hover { background: #1e293b; }
.aspanel { width: min(420px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow: auto; background: #fff; border-radius: 18px; padding: 12px;
  box-shadow: 0 12px 40px rgba(15,23,42,.25); border: 1px solid var(--hair-soft); }
.aspanel input { width: 100%; font-size: 16px; padding: 10px 12px; }
.asres { margin-top: 6px; }
.ashead { font-size: 11px; font-weight: 800; color: var(--muted); padding: 10px 4px 4px; }
.asitem { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
a.asitem:hover { background: var(--yellow-soft); }
.asnote { background: #f8fafc; border-radius: 10px; padding: 8px 10px; margin: 8px 0 0; }
@media (max-width: 640px) { .asbtn { padding: 10px 14px; font-size: 14px; } .asearch { right: 12px; bottom: 12px; } }
@media print { .asearch { display: none !important; } }

.asex { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.asex button { border: 1px solid var(--hair-soft); background: #f8fafc; border-radius: 999px; padding: 4px 9px; font: 600 12px var(--font); color: var(--slate); cursor: pointer; }
.asex button:hover { background: var(--yellow-soft); }
.asans { background: #fffbea; border: 1px solid #fde68a; border-radius: 14px; padding: 10px 12px; margin-top: 8px; }
.asans p { margin: 0 0 4px; font-size: 14px; line-height: 1.6; }
.aslinks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* 질문 옆 관련 인증 사진 */
.qwrap.haspic .talk.student .tb, .qwrap.haspic .talk.parent .tb { cursor: zoom-in; }
.qwrap.haspic .talk.student .tb:hover, .qwrap.haspic .talk.parent .tb:hover { outline: 2px solid #93c5fd; }
.qpics { margin: 6px 0 2px; padding: 8px 10px; background: #f8fafc; border-radius: 12px; }
.qpics img { width: 56px; height: 74px; object-fit: cover; border-radius: 8px; border: 1px solid var(--hair-soft); cursor: zoom-in; }
/* 계급 23단계 */
.mtitle { font: 700 13px var(--font); color: var(--slate); background: #f1f5f9; border-radius: 999px; padding: 2px 9px; vertical-align: middle; }
.mladder span.cur small { color: var(--ink); font-weight: 800; }
.mladder span.cur { transform: scale(1.15); }
.mcele-icon.small { font-size: 64px; }
.rk-list { margin-top: 14px; display: grid; gap: 10px; }
.rk-group { background: #fff; border-radius: 18px; border: 2px solid #e2e8f0; padding: 10px 12px; opacity: .72; }
.rk-group.reached { border-color: var(--mc); opacity: 1; }
.rk-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rk-head b { font: 800 17px var(--font); color: var(--mc); }
.rk-icon { font-size: 26px; }
.rk-title { font-size: 12px; font-weight: 700; color: var(--slate); background: #f8fafc; border-radius: 999px; padding: 2px 8px; }
.rk-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 10px; font-size: 14px; }
.rk-row.done { color: #64748b; }
.rk-row.done .rk-state { color: #16a34a; font-weight: 800; }
.rk-row.now { background: color-mix(in srgb, var(--mc) 18%, #fff); font-weight: 800; box-shadow: inset 0 0 0 2px var(--mc); }
.rk-row.next { background: #fffbea; }
.rk-row.next .rk-state { color: #b45309; font-weight: 700; }
.rk-row.todo .rk-state { color: #94a3b8; }
.rk-name { font-weight: 700; }
.rk-cert { font-size: 13px; }
.rk-state { font-size: 12.5px; text-align: right; white-space: nowrap; }
@media (max-width: 480px) { .rk-row { grid-template-columns: 78px 1fr; } .rk-state { grid-column: 1 / -1; text-align: left; } }

/* 사이트 아래쪽 · 방침 페이지 */
.sitefoot { margin-top: 40px; padding: 18px 0 70px; border-top: 1px solid var(--hair-soft); color: var(--muted); font-size: 12px; line-height: 1.8; }
.sitefoot a { color: var(--slate); }
.policy h1 { margin-bottom: 4px; } .policy h2 { font-size: 17px; margin: 22px 0 6px; }
.policy p, .policy li, .policy td, .policy th { font-size: 14px; line-height: 1.75; }
.policy table.t th { white-space: nowrap; }
@media print { .sitefoot { display: none; } }

/* 추가숙제 미리 보기 · 결과 자세히 보기 */
.achscore.r { background: #d43c2b; }
button.achscore { cursor: pointer; font-family: inherit; }
.hwprev { border: 2px dashed var(--blue); }
/* 추가숙제 편집기: 넓은 화면이면 왼쪽 고르기 · 오른쪽 미리 보기(따라 내려옴) */
.hwed-wrap { container-type: inline-size; }
.hwed { display: flex; flex-direction: column; gap: 10px; }
@container (min-width: 820px) {
  .hwed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
  .hwed-right { position: sticky; top: 76px; }
  .hwed-right .hwprev { max-height: calc(100vh - 96px); overflow: auto; }
}
.hwprev.flash { animation: hwflash .9s ease-out; }
@keyframes hwflash { 0% { box-shadow: 0 0 0 4px rgba(37, 99, 235, .35); background: #eef4ff; } 100% { box-shadow: none; } }
[data-drill] label.q { padding: 8px 10px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
[data-drill] label.q:has(input:checked) { background: #eaf7ee; border-color: #86d39b; }
.hwtoast { position: fixed; right: 16px; bottom: 76px; z-index: 50; background: var(--ink, #111); color: #fff; border: 0; border-radius: 999px;
  padding: 10px 16px; font: 700 14px var(--font); box-shadow: 0 6px 18px rgba(0,0,0,.18); cursor: pointer; }
.hwsec { font-weight: 800; font-size: 13.5px; margin: 12px 0 4px; color: var(--blue); }
.hwq { padding: 8px 10px; border-radius: 10px; background: var(--bg-soft, #f7f7f9); margin: 6px 0; font-size: 14px; }
.hwq.good { background: #eaf7ee; } .hwq.bad { background: #fdeeee; }
.hwopts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13.5px; }
.hwopts .ok { color: #1a7f37; font-weight: 800; }
.hwopts .mine:not(.ok) { color: #d43c2b; font-weight: 800; text-decoration: line-through; }
.hwdlg { width: min(720px, calc(100vw - 32px)); max-height: 86vh; border: 0; border-radius: 18px; padding: 16px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.hwdlg::backdrop { background: rgba(20, 20, 40, .45); }

/* 음독: 문장 번호 · 그 문장만 듣기 */
.sentno { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--ink-deep); color: #fff; font-size: 13px; margin-right: 2px; }
.clipbtn { border: 0; background: var(--blue-soft); color: var(--blue-deep); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; cursor: pointer; margin-left: 4px; }
.clipbtn:hover { background: var(--blue); color: #fff; }

/* 다음 교재 안내: 교재 바꾸기 */
.swapbook > summary { list-style: none; display: inline-flex; cursor: pointer; margin-top: 6px; }
.swapbook > summary::-webkit-details-marker { display: none; }
.swapbook[open] > summary { background: var(--ink-deep); color: #fff; }
.pickbook { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #fff; border: 2px solid var(--hair); margin: 0; font-weight: 500; color: var(--ink); cursor: pointer; }
.pickbook:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.pickbook img { width: 34px; height: 46px; object-fit: cover; border-radius: 4px; }

/* 학생 관리: 담임 일괄 배정 */
.bulkbar { position: sticky; top: 74px; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px; margin-top: 12px; }
.pickst { position: absolute; top: 12px; right: 12px; z-index: 2; margin: 0; background: #fff; border-radius: 8px; padding: 4px 6px; box-shadow: var(--shadow); cursor: pointer; }
.pickst input { width: 20px; height: 20px; cursor: pointer; }
.card.picked { outline: 3px solid var(--blue); }

/* 무료 체험 · 결제 */
.paycode { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: #fff; border-radius: 14px; padding: 12px 16px; margin-top: 10px; }
.paycode b#ccode, .paycode > div > b { font-size: 22px; letter-spacing: 1px; }

/* 추가숙제 완전학습: 이름·차수를 누르면 아이가 푼 내용 창 */
.hwopen { background: none; border: 0; padding: 2px 4px; margin: -2px -4px; border-radius: 8px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.hwopen:hover { background: rgba(37, 99, 235, .08); }
.hwopen-hint { color: #2563eb; font-weight: 700; margin-left: 4px; }

/* 대시보드: 줄 전체를 눌러 이동 */
.rowgo { cursor: pointer; border-radius: 12px; transition: background .12s; }
.rowgo:hover { background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 2px #fcd34d; }
a.rdlink { color: inherit; text-decoration: none; }
a.rdlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 월 리포트 만족도 조사 (5문항 × 5점) */
.survey { width: 100%; border-collapse: collapse; min-width: 560px; }
.survey thead th { font-size: 12.5px; font-weight: 700; color: var(--slate); padding: 6px 4px; text-align: center; }
.survey tbody th { text-align: left; padding: 10px 8px 10px 0; font-weight: 400; width: 38%; }
.survey tbody th b { display: block; font-size: 14.5px; }
.survey tbody th small { display: block; font-size: 12px; color: var(--slate); margin-top: 2px; }
.survey td { text-align: center; padding: 6px 2px; border-top: 1px solid #eef0f4; }
.survey tbody tr th { border-top: 1px solid #eef0f4; }
.sv { display: inline-grid; place-items: center; cursor: pointer; margin: 0; padding: 6px; }
.sv input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sv .svdot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c4c8d0; background: #fff; transition: all .12s; }
.sv:hover .svdot { border-color: #ffb400; }
.sv input:checked + .svdot { border-color: #ffb400; background: radial-gradient(circle, #ffb400 0 45%, #fff 48%); }
.sv input:focus-visible + .svdot { outline: 2px solid var(--ink, #222); outline-offset: 2px; }
.sv .svlb { display: none; }
@media (max-width: 640px) {  /* 휴대폰: 문항마다 한 줄씩, 보기 글씨를 동그라미 아래에 */
  .survey { min-width: 0; }
  .survey thead { display: none; }
  .survey tbody tr { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #eef0f4; padding: 8px 0; }
  .survey tbody th { grid-column: 1 / -1; width: auto; border: 0; padding: 0 0 6px; }
  .survey td { border: 0; padding: 0; }
  .sv .svlb { display: block; font-size: 10.5px; color: var(--slate); margin-top: 3px; line-height: 1.2; }
}

/* 진행 중 리포트의 예시 칸 */
.card.sample { position: relative; border: 2px dashed #f59e0b; }
.card.sample .rchart-wrap, .card.sample .vtext { opacity: .78; }
.sample-tag { display: inline-block; vertical-align: middle; margin-left: 6px; font: 700 11.5px var(--font); color: #92400e;
  background: #fef3c7; border-radius: 999px; padding: 2px 8px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 10px; }
.pager button:disabled { opacity: .35; cursor: default; }

.navmark { height: 18px; width: auto; vertical-align: -3px; margin-right: 3px; }

/* 학생 정보 제목줄: 계급 · 반 · 성취율 — 같은 글꼴(Jua) · 같은 크기 · 같은 높이, 가운데 정렬 */
.sthead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; line-height: 1.2; }
.sthead-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sthead .sthead-chips > .chip, .sthead .sthead-chips > .mchip, .sthead .sthead-chips > .achscore {
  height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; box-sizing: border-box;
  padding: 0 14px; margin: 0; border-radius: 999px; line-height: 1; vertical-align: middle;
  font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: 0; }
.sthead .sthead-chips > .achscore b { font-family: var(--display); font-weight: 400; font-size: 16px; line-height: 1; }
.sthead-ratio { font-family: var(--font); font-weight: 400; font-size: 14px; line-height: 34px; }
