/* 학원 로고 색: 민트 #80cabd · 남색 #293d4b
   다크모드는 쓰지 않음 (원장님 결정 2026-10-15): 폰이 다크모드여도 항상 밝게 */
:root {
  color-scheme: only light;
  --bg: #f1f5f4; --card: #ffffff; --text: #1d2a33; --sub: #6f7f88; --line: #e1e9e7; --field: #eef3f2;
  --main: #1b7c6c; --mainSoft: #e2f2ee; --mint: #80cabd; --brand: #293d4b; --brand2: #2f4d5c;
  --ok: #1b8f6a; --okSoft: #e5f6ef; --bad: #e03e3e; --badSoft: #fff4f4; --warn: #d9640f; --warnSoft: #fff4e8; --star: #e9a100;
  --shadow: 0 1px 2px rgba(41, 61, 75, .05), 0 6px 18px rgba(41, 61, 75, .06);
}
/* ===== 섹션별 분위기 =====
   매일 단어(daily): 편안 — 세이지·민트, 둥글고 부드럽게
   시험대비(exam): 빡센 — 어두운 남색 격자 배경 + 일렉트릭 블루, 각지고 사선 무늬 */
body[data-section="daily"] {
  --bg: #f2f6f2; --field: #ecf2ee; --line: #dfe9e3;
  --main: #2f8a7a; --mainSoft: #e1f2ec; --brand: #3f7d74; --brand2: #6fb0a3;
}
body[data-section="exam"] {
  --bg: #eceef1; --field: #eef0f3; --line: #dde1e6; --text: #141a22;
  --main: #3b6cf6; --mainSoft: #e8eefe; --brand: #12161c; --brand2: #222b36; --mint: #80cabd; /* 포인트: 일렉트릭 블루 (원장님 선택) */
  --ok: #1b8f6a; --star: #3b6cf6;
}
body { transition: background-color .3s ease; }

/* 배경으로 분위기 구분 */
/* 편안: 밝은 크림·세이지 + 은은한 점무늬 */
body[data-section="daily"] {
  background-color: #f1f5ef;
  background-image:
    radial-gradient(rgba(63, 125, 116, .07) 1.2px, transparent 1.3px),
    radial-gradient(circle at 92% 30%, rgba(128, 202, 189, .45), transparent 48%),
    radial-gradient(circle at 5% 88%, rgba(240, 205, 150, .35), transparent 45%),
    linear-gradient(180deg, #eaf3ee 0%, #f6f4ec 70%);
  background-size: 18px 18px, auto, auto, 100% 100%;
  background-attachment: fixed;
}
/* 빡센 (라이트 모드): 푸른 회색 바탕에 파란 빛 번짐 (원장님 선택), 헤더는 어둡게 */
body[data-section="exam"] {
  background-color: #55627a;
  background-image:
    radial-gradient(circle at 90% 25%, rgba(59, 108, 246, .55), transparent 50%),
    radial-gradient(circle at 5% 90%, rgba(59, 108, 246, .35), transparent 45%),
    linear-gradient(180deg, #5b6880, #47536a);
  background-size: auto;
  background-attachment: fixed;
}
body[data-section="exam"] details.dev, body[data-section="exam"] details.dev summary { color: #c7d0dd; }
body[data-section="exam"] .card, body[data-section="exam"] .summary, body[data-section="exam"] .seg { box-shadow: 0 2px 4px rgba(20, 30, 50, .06), 0 8px 22px rgba(20, 30, 50, .10); }

/* 편안: 헤더 곡선을 더 크게, 카드 더 둥글게 */
body[data-section="daily"] .topband::after { width: 420px; height: 420px; right: -120px; top: -200px; opacity: .25; background: #fff; }
body[data-section="daily"] .topband::before { background: var(--mint); opacity: .9; }
body[data-section="daily"] .card, body[data-section="daily"] .summary, body[data-section="daily"] .seg { border-radius: 22px; }
body[data-section="daily"] .seg button.on { background: var(--main); }

/* 빡센: 사선 무늬 헤더, 파란 경계선, 각진 카드, 굵은 글씨 */
body[data-section="exam"] .topband {
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, var(--brand), var(--brand2));
}
body[data-section="exam"] .topband::after { display: none; }
body[data-section="exam"] .topband::before { height: 4px; background: var(--main); opacity: 1; }
body[data-section="exam"] .card, body[data-section="exam"] .summary, body[data-section="exam"] .seg { border-radius: 10px; }
body[data-section="exam"] .card { border-top: 3px solid var(--text); }
body[data-section="exam"] .seg { padding: 3px; }
body[data-section="exam"] .seg button { border-radius: 7px; letter-spacing: .3px; }
body[data-section="exam"] .seg button.on { background: var(--main); }
body[data-section="exam"] .btn { border-radius: 8px; font-weight: 700; }
body[data-section="exam"] .summary .alert b, body[data-section="exam"] .pill.bad { color: #e03131; }
body[data-section="exam"] .pill.mute { background: var(--text); color: var(--card); }
body[data-section="exam"] .flash { border-radius: 12px; border-width: 2px; }
body[data-section="exam"] .flash.flipped { border-color: var(--main); }
body[data-section="exam"] .chips button.on { background: var(--main); color: #fff; }
body[data-section="exam"] nav button.on { color: var(--main); }
body[data-section="daily"] nav button.on { color: var(--main); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Pretendard, system-ui, "Malgun Gothic", sans-serif; letter-spacing: -.2px; }
.wrap { max-width: 480px; margin: 0 auto; padding: 0 16px 96px; position: relative; }
button { font-family: inherit; }

/* ===== 헤더 (학원 브랜드 영역) ===== */
.topband {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand) 55%, var(--brand2) 100%);
  height: 210px; position: absolute; left: 0; right: 0; top: 0; z-index: -1; overflow: hidden;
}
/* 로고 말풍선을 닮은 은은한 민트 곡선 */
.topband::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: var(--mint); opacity: .12;
}
.topband::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--mint); opacity: .7;
}
.topband.tall { height: 300px; }
header { padding: calc(22px + env(safe-area-inset-top)) 4px 18px; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.logo { font-size: 24px; font-weight: 400; letter-spacing: -.5px; }
.logo b { font-weight: 800; letter-spacing: .5px; color: var(--mint); }
.logo.big { font-size: 36px; }
/* 반 학생 명단 '오늘 시험 n개' 누르면 묶음 보기 (2026-10-27) */
.ttlink { color: var(--main); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ttmodal { max-height: 82vh; overflow-y: auto; overflow-x: hidden; text-align: left; }
.tthead .lv { white-space: nowrap; }
.tthead button { flex: none; padding: 0; }
.ttmodal h2 { margin: 0 0 10px; }
.ttgroup { border-top: 1px solid var(--line); padding: 12px 0; }
/* 공부 중 창: 큰 칸(새 단어·★·★★) = 색 띠, 작은 묶음(유닛) = 작고 가는 글씨 */
.ttsec { margin-top: 8px; }
.ttstage { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--mainSoft); color: var(--text); font-size: 17px; font-weight: 800; cursor: pointer; list-style: none; }
.ttstage::-webkit-details-marker { display: none; }
.ttstage::after { content: '›'; margin-left: 8px; font-size: 20px; color: var(--sub); transition: transform .15s; }
.ttsec[open] > .ttstage::after { transform: rotate(90deg); }
.ttstage .lv { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--main); }
.ttsec .ttgroup { padding: 10px 4px; }
.ttsec > .ttstage + .ttgroup { border-top: 0; }
.ttsec .tthead b { font-size: 14px; font-weight: 600; color: var(--sub); }
.tthead { display: flex; align-items: center; gap: 8px; }
.tthead b { flex: 1; min-width: 0; }
.ttwords { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; font-size: 13px; color: var(--sub); }
.ttwords .ttw { border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; font-size: 13px; padding: 2px 6px 2px 8px; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.ttwords .ttw i { font-style: normal; color: var(--sub); font-size: 12px; }
.ttwords .ttw:hover { border-color: #d32f2f; } .ttwords .ttw:hover i { color: #d32f2f; }
/* 보카토리 글자 로고: 주아체 (원장님 고름 2026-10-16, 글자 4개만 받음 — index.html·apply.html 링크) */
.kologo { font-family: 'Jua', Pretendard, sans-serif; font-size: 1.12em; letter-spacing: 0; }
.kologo b { font-weight: 400; letter-spacing: 0; color: #ffd43b; } /* 색 B안: 흰·노랑 (원장님 고름) */
header .app { font-size: 13px; opacity: .8; margin-top: 2px; }
.hright { text-align: right; }
header .date { font-size: 13px; opacity: .85; }
.logout { margin-top: 6px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 99px; cursor: pointer; }
.brand { color: #fff; text-align: center; padding: calc(36px + env(safe-area-inset-top)) 0 24px; }
.brand .app { opacity: .8; margin-top: 4px; font-size: 14px; }
.brand .emblem {
  width: 148px; height: 148px; margin: 0 auto 14px; border-radius: 36px; background: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.brand .emblem img { width: 128px; height: 128px; display: block; }
/* 예비 원장님 체험(?try) 위 띠 + 시작 화면 고르기 */
.trialbar {
  margin-top: calc(10px + env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 7px 8px 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 12.5px; font-weight: 600;
  border: 1px solid rgba(128,202,189,.55);
}
.trialbar + header, .trialbar + .brand { padding-top: 14px; }
.trialbar .tb-btns { display: flex; gap: 6px; }
.trialbar button, .trialbar a {
  border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12px; cursor: pointer; text-decoration: none;
  background: rgba(255,255,255,.18); color: #fff;
}
.trialbar a { background: var(--mint); color: #293d4b; font-weight: 800; }
.trialbar.inapp { background: rgba(23, 56, 75, .82); } .trialbar.inapp button { background: var(--mint); color: #293d4b; font-weight: 800; }
.try-pick { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .try-pick { grid-template-columns: 1fr 1fr; } }
.try-pick button {
  display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 20px 18px; border-radius: 16px; cursor: pointer;
  border: 2px solid #80cabd; background: #f1faf8; color: #293d4b; font: inherit;
}
.try-pick button:nth-child(2) { border-color: #293d4b; background: #f3f6f8; }
.try-pick button b { font-size: 19px; }
.try-pick button span { font-size: 13px; color: var(--sub); line-height: 1.5; }
.try-pick button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(41,61,75,.12); }
.brand .motto { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--mint); margin-top: 8px; font-weight: 600; }

.summary { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border-radius: 16px; padding: 16px 0; margin-bottom: 12px; box-shadow: var(--shadow); }
.summary div { text-align: center; border-right: 1px solid var(--line); }
.summary div:last-child { border: 0; }
.summary b { display: block; font-size: 20px; font-weight: 700; }
.summary span { font-size: 12px; color: var(--sub); }
.summary .hi b { color: var(--main); }
.summary .alert b { color: var(--warn); }

/* ===== 카드 ===== */
.card { background: var(--card); border-radius: 16px; padding: 20px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card h2 { font-size: 16px; margin: 0; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.count { background: var(--warn); color: #fff; font-size: 12px; border-radius: 99px; padding: 2px 8px; }
.hint { color: var(--sub); font-size: 13px; line-height: 1.6; margin: 6px 0 0; }
.link { background: none; border: 0; color: var(--main); font-size: 14px; font-weight: 600; cursor: pointer; padding: 12px 0 0; display: block; margin: 0 auto; }

/* ===== 입력 ===== */
label { font-size: 13px; color: var(--sub); display: block; margin: 16px 0 6px; }
input, select {
  width: 100%; padding: 14px 16px; border: 1px solid transparent; border-radius: 12px;
  font-size: 17px; background: var(--field); color: var(--text); outline: none; font-family: inherit;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%), linear-gradient(135deg, var(--sub) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; margin: 16px 0 0; cursor: pointer; }
label.check input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--main); }
input:focus, select:focus { border-color: var(--main); background-color: var(--card); }
/* 입력칸은 비워 둠 — 회색 예시 글자를 안 보임 (원장님 2026-10-26 '모든 텍스트칸') */
input::placeholder, textarea::placeholder { color: transparent; opacity: 0; }
.ex:focus::placeholder { color: transparent; } /* 예시(abandon 등)는 입력칸을 누르면 숨김 */
.btn {
  display: block; width: 100%; padding: 15px; margin-top: 14px; border: 0; border-radius: 12px;
  background: var(--main); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
}
.btn:active { opacity: .85; }
.btn.ghost { background: var(--field); color: var(--text); }
.btn.danger { background: var(--badSoft); color: var(--bad); }
.btn.sm { display: inline-block; padding: 10px 14px; font-size: 14px; margin-top: 0; width: auto; }
.btn:disabled { opacity: .4; cursor: default; }
.toast { min-height: 20px; font-size: 13px; margin-top: 10px; color: var(--sub); }
.toast.err { color: var(--bad); }
.recent { margin-top: 8px; border-top: 1px solid var(--line); }
.recent > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.recent span { color: var(--sub); text-align: right; }
.x { border: 0; background: none; color: var(--sub); font-size: 18px; cursor: pointer; padding: 0 4px; }
.src { font-size: 11px; color: var(--main); background: var(--mainSoft); border-radius: 6px; padding: 2px 6px; margin-left: 6px; font-weight: 600; vertical-align: 1px; }

.rules { margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; }
.rules li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rules li:last-child { border: 0; }
.rules span { color: var(--sub); }

/* ===== 테스트 시작 화면 ===== */
.group { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }
.group b { font-size: 15px; font-weight: 600; display: block; }
.group small { color: var(--sub); font-size: 13px; display: block; margin-top: 2px; }
.group .num { font-size: 22px; font-weight: 700; }
.counter { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.counter button { width: 44px; height: 44px; border-radius: 10px; border: 0; background: var(--field); color: var(--text); font-size: 20px; cursor: pointer; }
.counter .quick { flex: 1; display: flex; gap: 6px; justify-content: flex-end; }
.counter .quick button { width: auto; padding: 0 14px; font-size: 14px; font-weight: 600; }
.counter .quick button.on { background: var(--mainSoft); color: var(--main); }
.empty { text-align: center; padding: 36px 10px; }
/* 학부모 주간 리포트 (이미지로 저장되는 부분) */
.mini-seg { margin-bottom: 4px; }
.report { background: #fff; color: #1d2a30; border-radius: 18px; padding: 22px 20px 16px; margin: 0 0 14px; box-shadow: 0 2px 12px rgba(0,0,0,.08); font-family: Pretendard, system-ui, "Malgun Gothic", sans-serif; }
.r-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid #80cabd; }
.r-head img { width: 44px; height: 44px; object-fit: contain; }
.r-head b { display: block; font-size: 19px; font-weight: 800; color: #293d4b; }
.r-head span { font-size: 12px; color: #5b8a82; font-weight: 600; }
.r-who { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; margin: 14px 0 12px; }
.r-who b { font-size: 20px; font-weight: 800; }
.r-who span { font-size: 13px; color: #61727a; }
.r-who em { font-style: normal; font-size: 12.5px; color: #61727a; width: 100%; }
.r-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.r-kpi > div { background: #f1f7f5; border-radius: 12px; padding: 12px 6px; text-align: center; }
.r-kpi span { display: block; font-size: 11.5px; color: #61727a; }
.r-kpi b { display: block; font-size: 22px; font-weight: 800; color: #1f6f62; margin: 3px 0 2px; }
.r-kpi b i { font-style: normal; font-size: 12px; color: #61727a; font-weight: 600; }
.r-kpi small { font-size: 10.5px; color: #7f8e94; }
.r-sec { margin-top: 18px; }
.r-sec h4, .r-note h4 { margin: 0 0 8px; font-size: 13.5px; color: #293d4b; }
.r-day { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 3px 0; }
.r-day.wk { opacity: .55; }
.r-day span { flex: 0 0 62px; color: #61727a; }
.r-day div { flex: 1; height: 9px; background: #edf2f1; border-radius: 99px; overflow: hidden; }
.r-day i { display: block; height: 100%; background: #2f8a7a; border-radius: 99px; }
.r-day b { flex: 0 0 56px; text-align: right; font-weight: 700; }
.r-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.r-grid > div { border: 1px solid #e3ecea; border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #61727a; }
.r-grid b { color: #1d2a30; font-size: 15px; }
.r-weak { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #eef3f2; font-size: 13.5px; }
.r-weak b { font-weight: 700; }
.r-weak span { flex: 1; color: #61727a; font-size: 12.5px; }
.r-weak em { font-style: normal; font-size: 11.5px; color: #d1453b; font-weight: 700; }
.r-note { margin-top: 18px; background: #fff8e6; border-radius: 12px; padding: 12px 14px; }
.r-note p { margin: 0; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; }
.r-foot { margin-top: 16px; text-align: center; font-size: 11px; color: #9aa8ad; }

/* 선생님 설명서 바로가기 (내 정보 · 학원 관리 맨 위) */
.guide-link { display: grid; grid-template-columns: 1fr auto; text-decoration: none; color: var(--text); border: 1.5px solid var(--main); }
.guide-link b { font-size: 16px; }
.guide-link span { font-size: 13px; color: var(--sub); grid-column: 1; }
.guide-link .chev { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 20px; }

/* 레벨 테스트 결과지 */
.lt-level { background: linear-gradient(120deg, #e3f4ef, #fff6dc); border-radius: 14px; padding: 16px; text-align: center; }
.lt-level span { display: block; font-size: 12px; color: #61727a; }
.lt-level b { display: block; font-size: 34px; font-weight: 900; color: #1f6f62; margin: 2px 0; }
.lt-level small { font-size: 12px; color: #61727a; }
.lt-missed { margin: 0; font-size: 12.5px; line-height: 1.8; color: #61727a; }
.lt-missed b { color: #1d2a30; }

/* 원장·선생님 대시보드 */
.dash-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.dash-kpi > div { background: var(--field); border-radius: 12px; padding: 12px 6px; text-align: center; }
.dash-kpi b { display: block; font-size: 22px; font-weight: 800; }
.dash-kpi b small { font-size: 12px; font-weight: 600; color: var(--sub); margin-left: 1px; }
.dash-kpi span { font-size: 11.5px; color: var(--sub); }
.dash-kpi .alert b { color: var(--bad); }
.dash-cls { margin-top: 14px; }
.dash-row { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 7px 0; color: var(--text); cursor: pointer; font-size: 13px; text-align: left; }
.dash-row .n { flex: 0 0 76px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-row .bar2 { flex: 1; height: 8px; border-radius: 99px; background: var(--field); overflow: hidden; }
.dash-row .bar2 i { display: block; height: 100%; background: var(--main); border-radius: 99px; }
.dash-row .v { flex: 0 0 104px; text-align: right; color: var(--sub); font-size: 12px; }
.dash-h { font-size: 14px; margin: 16px 0 2px; }

/* 학습 시간 (선생님 학생 상세) */
.stime { margin-top: 10px; }
.strow { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.strow.wkend { opacity: .6; }
.strow .sd { flex: 0 0 64px; color: var(--sub); }
.strow .sbar { flex: 1; height: 10px; border-radius: 99px; background: var(--field); display: flex; overflow: hidden; }
.strow .sbar i { display: block; height: 100%; }
.strow .sv { flex: 0 0 76px; text-align: right; font-weight: 600; }
.strow .sv small { display: block; font-weight: 400; color: var(--sub); font-size: 11px; }
.sbar .d, .slegend .d { background: var(--main); }
.sbar .e, .slegend .e { background: #3b6cf6; }
.slegend { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--sub); }
.slegend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* 매일 단어 '문맥' 문제: 예문 속 굵은 단어 */
.qex { font-size: 19px; line-height: 1.6; margin: 14px 0 6px; font-weight: 500; }
.qex b { color: var(--main); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

/* 단어 라이브러리 · 자동 배포 */
.danger-text { color: var(--bad) !important; padding-top: 10px; }
.miss-text { color: var(--warn); font-weight: 600; }
.auto { border-bottom: 1px solid var(--line); }
.auto:last-child { border: 0; }
.auto .srow { border: 0; }
.autoset { padding: 0 0 16px; }
.autoset .chips { margin-top: 6px; }
.autoset .row .btn { margin-top: 0; }

/* 단어 표시: 내 단어 · 약점 · 정복 (글자 배지) */
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: 6px; margin-left: 5px; vertical-align: 2px; letter-spacing: 0; }
.badge.my { background: #e1f2ec; color: #2f8a7a; }
.badge.weak { background: #fdecea; color: #d1453b; }
.badge.ace { background: #fff3cf; color: #9a6a00; }
.qtop .badge { vertical-align: 1px; }

/* 칭찬·격려 한마디 */
.cheer { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.5; background: var(--mainSoft); color: var(--main); }
.cheer.praise, .cheer.done { background: linear-gradient(120deg, var(--mainSoft), color-mix(in srgb, #f2c94c 22%, var(--card))); color: var(--text); }
.cheer.cheer { background: var(--field); color: var(--text); }
.empty .cheer { margin-bottom: 20px; }
.empty h2 { margin-bottom: 4px; justify-content: center; }

/* ===== 문제 화면 ===== */
.qtop { display: flex; justify-content: space-between; font-size: 13px; color: var(--sub); }
.bar { height: 4px; background: var(--field); border-radius: 99px; overflow: hidden; margin: 10px 0 20px; }
.bar i { display: block; height: 100%; background: var(--main); transition: width .3s ease; }
.tag { font-size: 13px; color: var(--main); font-weight: 600; }
.qword { font-size: 32px; font-weight: 700; margin: 14px 0 4px; word-break: break-word; }
/* 긴 영어 단어 (app.js fitWord): 먼저 한 줄로(글자 줄이기), 안 되면 띄어쓰기·하이픈·음절에서 줄바꿈 */
.fitword { white-space: nowrap; word-break: normal; overflow-wrap: normal; max-width: 100%; box-sizing: border-box; }
.flash .fitword { width: 100%; }
.fitword.fit-wrap { white-space: normal; -webkit-hyphens: manual; hyphens: manual; overflow-wrap: break-word; line-height: 1.2; }
.qword.ko { font-size: 24px; }
.qsub { color: var(--sub); font-size: 13px; }
.speaker {
  display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; padding: 14px 18px; border: 0; border-radius: 12px;
  background: var(--mainSoft); color: var(--main); font-size: 15px; font-weight: 600; cursor: pointer;
}
.speaker svg { width: 22px; height: 22px; }
.answer { margin-top: 20px; }
.answer input.ok { border-color: var(--ok); background: var(--okSoft); }
.answer input.bad { border-color: var(--bad); background: var(--badSoft); }
.row { display: flex; gap: 8px; }
.row .btn { flex: 1; }
.answer .row .btn.ghost { flex: 0 0 34%; }
.answer .row #mHint { flex: 0 0 auto; width: auto; white-space: nowrap; padding-left: 22px; padding-right: 22px; } /* 스펠 '힌트' 버튼: 글자 길이만큼 (원장님 2026-10-19) */
.verdict { margin-top: 14px; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.verdict.ok { background: var(--okSoft); }
.verdict.bad { background: var(--badSoft); }
.verdict strong { display: block; font-size: 15px; }
.verdict.ok strong { color: var(--ok); }
.verdict.bad strong { color: var(--bad); }
.verdict small { color: var(--sub); display: block; }
.verdict.part { background: var(--warnSoft); }
.verdict.part strong { color: var(--warn); }
.answer input.part { border-color: var(--warn); background: var(--warnSoft); }
.hintword { display: inline-block; font-size: 13px; font-weight: 700; color: var(--main); background: var(--mainSoft); border-radius: 99px; padding: 3px 10px; margin: 6px 0 4px; }

/* ===== 결과 ===== */
.result { text-align: center; padding-top: 8px; }
.ring {
  width: 132px; height: 132px; border-radius: 50%; margin: 6px auto 16px; display: grid; place-items: center;
  background: conic-gradient(var(--main) calc(var(--p) * 1%), var(--field) 0);
}
.ring > div { width: 116px; height: 116px; border-radius: 50%; background: var(--card); display: grid; place-items: center; }
.ring b { font-size: 28px; font-weight: 700; display: block; }
.ring span { font-size: 12px; color: var(--sub); }
.result h2 { justify-content: center; }
.wrongs { text-align: left; margin-top: 20px; border-top: 1px solid var(--line); }
.wrongs div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.wrongs span { color: var(--sub); text-align: right; }

/* ===== 졸업 축하 ===== */
.verdict.grad { background: linear-gradient(135deg, var(--okSoft), var(--mainSoft)); }
.grads {
  margin-top: 18px; padding: 18px 16px; border-radius: 14px; text-align: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff;
  animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
.grads .cap { font-size: 34px; line-height: 1; animation: bob 1.6s ease-in-out .5s infinite; }
.grads b { display: block; font-size: 18px; margin-top: 8px; color: var(--mint); }
.grads small { display: block; font-size: 12px; opacity: .8; margin-top: 2px; }
.grads .gw { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.grads .gw span { background: rgba(255,255,255,.14); border-radius: 99px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-6deg); } }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 60; }
.confetti i {
  position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; opacity: 0;
  animation-name: fall; animation-timing-function: cubic-bezier(.25, .6, .5, 1); animation-fill-mode: forwards;
}
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: .9; }
}

/* ===== 목록 ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 20px; font-weight: 700; }
.stat span { font-size: 12px; color: var(--sub); }
.witem { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.witem:last-child { border: 0; }
.witem .t { flex: 1; min-width: 0; }
.witem b { display: block; font-size: 15px; font-weight: 600; }
.witem .t span { font-size: 13px; color: var(--sub); }
.witem .r { text-align: right; font-size: 12px; color: var(--sub); white-space: nowrap; }
.witem .wedit { margin-left: 8px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font: inherit; font-size: 11px; font-weight: 600; color: var(--main); cursor: pointer; vertical-align: 1px; }
.stars { color: var(--star); font-size: 13px; letter-spacing: 1px; }
/* 가정용 보호자 화면 (2026-10-31, home.js) */
.hkid { padding: 10px 0; border-top: 1px solid var(--line); }
.hkid .row2 small { color: var(--sub); }
.hkid select { flex: 1; min-width: 0; }
.hkid .sendnow { margin-top: 8px; width: auto; }
.opsend { margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: #f4f6f8; }
.opsend .chips button small { font-weight: 400; opacity: .7; margin-left: 2px; }
/* 테스트 전 필수 공부 (2026-10-31): 카드·스펠 진행 막대 */
.gate { margin: 12px 0 14px; padding: 12px 14px; border-radius: 14px; background: #fff6d6; border: 1px solid #f3dd8a; }
.gate .g b { display: block; font-size: 15px; }
.gate .g small { display: block; color: var(--sub); font-size: 12.5px; margin-top: 2px; }
.gate .gbars { display: grid; gap: 6px; margin-top: 10px; }
.gate .gbar { display: grid; grid-template-columns: 34px 1fr 42px; align-items: center; gap: 8px; font-size: 13px; }
.gate .gbar i { display: block; height: 8px; border-radius: 4px; background: #eadfb8; overflow: hidden; }
.gate .gbar i b { display: block; height: 100%; background: #e0a800; border-radius: 4px; transition: width .3s; }
.gate .gbar.ok i b { background: #2fae6d; }
.gate .gbar em { font-style: normal; text-align: right; font-weight: 700; }
.gate .gbar.ok em { color: #2fae6d; }
/* 도토리 (복습 단계, 2026-10-16 별 대신) */
.acorns { display: inline-flex; gap: 1px; vertical-align: -.18em; white-space: nowrap; }
.acorn { width: 1.05em; height: 1.25em; flex: none; }
.lv { font-size: 12px; color: var(--sub); font-weight: 400; }
.due-now { color: var(--main); font-weight: 600; }

/* ===== 선생님 화면 ===== */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border: 0; background: var(--field); color: var(--text); padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; cursor: pointer; }
.chips button.on { background: var(--text); color: var(--card); }
.srow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); text-align: left; cursor: pointer; }
.srow:last-child { border: 0; }
.srow .t { flex: 1; min-width: 0; }
.srow b { font-size: 15px; font-weight: 600; }
.srow small { display: block; color: var(--sub); font-size: 12px; margin-top: 3px; }
.srow .chev { color: var(--sub); }
.pill { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.pill.ok { background: var(--okSoft); color: var(--ok); }
.pill.bad { background: var(--badSoft); color: var(--bad); }
.pill.mute { background: var(--field); color: var(--sub); }
.pill.warn { background: var(--warnSoft); color: var(--warn); }
.srow small .stale { color: var(--bad); font-weight: 600; }
.prow { padding: 14px 0; border-bottom: 1px solid var(--line); }
.prow:last-child { border: 0; padding-bottom: 0; }
.prow .who { display: flex; justify-content: space-between; align-items: baseline; }
.prow small { color: var(--sub); font-size: 12px; }
.prow .row { margin-top: 8px; }
.prow select { padding: 10px 36px 10px 12px; font-size: 14px; flex: 1; min-width: 0; }
.row .btn.sm { flex: none; white-space: nowrap; }
.back {
  display: inline-flex; align-items: center; gap: 4px; margin: -6px 0 12px; padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.15); color: #fff;
  font-size: 14px; font-weight: 600; border-radius: 99px; cursor: pointer;
}
.back:active { background: rgba(255,255,255,.28); }

/* ===== 확인창 ===== */
.modal-bg { position: fixed; inset: 0; overscroll-behavior: contain; background: rgba(10, 20, 40, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--card); border-radius: 16px; padding: 22px 20px 20px; width: 100%; max-width: 360px; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.modal p { margin: 0; font-size: 15px; line-height: 1.6; }
.modal .row .btn { margin-top: 18px; }
.btn.danger-solid { background: var(--bad); color: #fff; }
.kv { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border: 0; }
.kv span { color: var(--sub); }
.cls-row { align-items: center; padding: 8px 0; }
.cls-row span { display: flex; align-items: center; gap: 6px; }
.cls-row .btn.sm { padding: 6px 10px; font-size: 13px; }
.cls-row input { flex: 1; min-width: 0; }
.cls-name { border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; text-align: left; }
.cls-name .chev { color: var(--sub); margin-left: 2px; }
.leftrow { width: 100%; }
.wrow { padding: 13px 0; border-bottom: 1px solid var(--line); }
.wrow:last-child { border: 0; }
.wrow .top { display: flex; justify-content: space-between; gap: 12px; }
.wrow b { font-size: 15px; }
.wrow .ko { color: var(--sub); font-size: 13px; margin-left: 6px; }
.wrow .n { font-weight: 700; color: var(--bad); white-space: nowrap; }
.wrow small { display: block; color: var(--sub); font-size: 12px; margin-top: 4px; }
.rate { height: 4px; background: var(--field); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.rate i { display: block; height: 100%; background: var(--bad); opacity: .75; }
.code { font-size: 28px; font-weight: 800; letter-spacing: 3px; color: var(--main); background: var(--mainSoft); border-radius: 12px; padding: 14px; text-align: center; margin-top: 12px; }

/* ===== 하단 탭바 ===== */
nav {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center;
  background: var(--card); border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); z-index: 10;
}
nav .in { display: flex; width: 100%; max-width: 480px; }
nav button { flex: 1; border: 0; background: none; color: var(--sub); padding: 6px 0; font-size: 11px; cursor: pointer; position: relative; }
nav svg { width: 24px; height: 24px; display: block; margin: 0 auto 3px; }
nav button.on { color: var(--text); font-weight: 600; }
/* 학생: [매일 단어] [시험대비] 두 칸을 테두리 상자로 확실히 나눔 (고른 칸은 그 섹션 색으로) */
nav.two { padding-top: 8px; }
nav.two .in { gap: 10px; padding: 0 16px; }
nav.two button { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; padding: 7px 0 6px; font-size: 12px; color: #8a979d; }
nav.two button[data-tab="daily"].on { background: #e1f2ec; border-color: #2f8a7a; color: #2f8a7a; }
nav.two button[data-tab="exam"].on { background: #e8eefe; border-color: #3b6cf6; color: #3b6cf6; }
nav.two svg { width: 22px; height: 22px; }
nav.two .dot { top: -6px; }
nav .dot { position: absolute; top: 2px; left: calc(50% + 6px); background: var(--bad); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; font-weight: 600; }

/* ===== 섹션 안 전환 버튼 (매일 단어: 입력·테스트·목록 / 시험대비: 공부·테스트) ===== */
.seg { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.seg button {
  flex: 1; border: 0; background: none; padding: 10px 0; border-radius: 10px; font-family: inherit;
  font-size: 14px; font-weight: 600; color: var(--sub); cursor: pointer; position: relative;
}
.seg button.on { background: var(--brand); color: #fff; }
.seg .dot { position: absolute; top: -6px; right: 0; background: var(--bad); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; }

/* ===== 시험대비: 세트 머리 · 공부 카드 · 테스트 설정 ===== */
.xhead { padding: 16px 20px 14px; }
.xbars { margin-top: 8px; display: grid; gap: 4px; }
.xbars > div { display: grid; grid-template-columns: 84px 1fr 46px; align-items: center; gap: 8px; font-size: 12px; color: var(--sub); }
.xbars .rate { margin: 0; }
.xbars b { text-align: right; color: var(--text); font-size: 13px; }
.xopts { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.xopts .mini { display: flex; flex: none; background: var(--field); border-radius: 99px; padding: 2px; }
.xopts .mini button { border: 0; background: none; padding: 6px 10px; border-radius: 99px; font: inherit; font-size: 12px; font-weight: 600; color: var(--sub); cursor: pointer; white-space: nowrap; }
.xopts .mini button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.flash {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 200px; margin: 4px 0 14px; padding: 24px 18px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-family: inherit; cursor: pointer; position: relative; box-shadow: var(--shadow);
}
.flash .fc-en { font-size: 32px; font-weight: 700; word-break: break-word; }
.flash .fc-ko { font-size: 22px; font-weight: 600; color: var(--main); white-space: pre-line; } /* 유의어·반의어 카드는 두 줄 */
.flash .fc-back { display: none; flex-direction: column; align-items: center; gap: 6px; }
.flash.flipped { border-color: var(--mint); }
.flash.flipped .fc-back { display: flex; }
.flash .fc-rel { font-size: 14px; color: var(--sub); }
.flash .fc-rel em { font-style: normal; font-weight: 700; color: var(--main); margin-right: 4px; }
.flash .fc-ex { font-size: 14px; line-height: 1.6; color: var(--sub); margin: 6px 0 0; text-align: center; }
.flash .fc-ex b { color: var(--text); }
.flash .fc-tip { position: absolute; bottom: 10px; font-size: 11px; color: var(--sub); }
.fc-btns .btn { margin-top: 0; }
.fc-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.fc-tools .lv { font-size: 11px; }
@media (hover: none) { .fc-tools .lv { display: none; } }
.xitem small.ex { font-style: italic; }
.xitem small.ex b { font-style: normal; color: var(--text); }
.xsetup label { margin-top: 14px; }
.xsetup label:first-child { margin-top: 0; }
.xsetup .chips button:disabled { opacity: .35; cursor: default; }
#xQuit { margin-top: 16px; }

/* ===== 시험대비 ===== */
.xmeta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.xmeta label { margin: 0; font-size: 12px; }
.xmeta label.wide { grid-column: span 2; }
.xmeta input, .xmeta select { padding: 9px 10px; font-size: 14px; margin-top: 4px; }
.xprow { cursor: pointer; }
.row2.xsel { justify-content: flex-start; gap: 16px; margin-top: 12px; }
.row2.xsel .link { padding: 4px 0; }
.xprow b { flex: 0 0 64px; }
.xprow span { flex: 1; min-width: 0; font-size: 12px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xprow em { color: var(--warn); font-style: normal; font-weight: 600; }
.xgrow { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.xgrow:last-child { border: 0; }
.xgrow input { width: 18px; height: 18px; margin: 0; padding: 0; flex: none; accent-color: var(--main); }
.xgrow .srow { border: 0; flex: 1; min-width: 0; }
.xgrow .srow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xpass { margin-top: 10px; font-size: 14px; line-height: 1.7; }
.xpass summary { cursor: pointer; color: var(--main); font-weight: 600; font-size: 13px; }
.xw { padding: 10px 0; border-bottom: 1px solid var(--line); }
.xw1, .xw2 { display: flex; gap: 6px; align-items: center; }
.xw2 { margin-top: 6px; }
.xw input { padding: 8px 10px; font-size: 14px; border-radius: 8px; min-width: 0; }
.xw1 input:first-child { flex: 0 0 38%; font-weight: 600; }
.xw2 input { font-size: 13px; }
/* 지문 속 단어 눌러 넣기 (원장님 2026-11-09) */
.xph { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.xph #pAddW { margin-left: auto; width: auto; margin-top: 0; }
.xwpick { position: sticky; top: 8px; z-index: 3; background: var(--card); border: 1px solid #c9dbe6; border-radius: 12px; padding: 12px 14px; margin: 8px 0 10px; box-shadow: 0 6px 18px rgba(30, 60, 80, .08); }
.xptext { max-height: 42vh; overflow-y: auto; font-size: 15px; line-height: 1.9; white-space: pre-wrap; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.xptext .wt { border-radius: 4px; padding: 1px 1px; cursor: pointer; transition: background .12s; }
@media (hover: hover) { .xptext .wt:hover { background: #e3f0f8; } }
.xptext .wt.on { background: #ffe58a; }
.xptext .wt.sel { background: #9fd0ee; }
.xpfoot { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.xpfoot #wpMsg { flex: 1; min-width: 0; color: var(--sub); }
.xpfoot .link { width: auto; margin: 0; }
.xw.busy input { opacity: .55; }
.xw .xwbusy { margin: 6px 0 0; color: var(--sub); }
.xw.fresh { background: #fff6cf; transition: background .6s; }
.xsub { font-size: 12px; color: var(--sub); line-height: 1.5; flex: 1; min-width: 0; }
.xprog { padding: 11px 0; border-bottom: 1px solid var(--line); }
.xprog:last-child { border: 0; }
.xprog .top { display: flex; justify-content: space-between; font-size: 14px; }
.xprog .top .ok { color: var(--ok); font-weight: 700; }
.xprog small { display: block; color: var(--sub); font-size: 12px; margin-top: 4px; }
.rate.ok i { background: var(--main); opacity: 1; }
.srow .rate { margin-top: 6px; max-width: 220px; }
.xitem { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: default; }
.xitem:last-child { border: 0; }
.xitem .t { flex: 1; min-width: 0; }
.xitem b { font-size: 15px; }
.xitem .ko { display: block; font-size: 14px; color: var(--sub); margin-top: 2px; }
.xitem small { display: block; font-size: 12px; color: var(--sub); margin-top: 3px; }
.xitem small em { font-style: normal; font-weight: 700; color: var(--main); margin-right: 2px; }
.xitem.done b { color: var(--ok); }
.xitem .x svg { width: 20px; height: 20px; }
#xList.hideko .xitem:not(.peek) .ko, #xList.hideko .xitem:not(.peek) small { visibility: hidden; }
#xList.hideko .xitem { cursor: pointer; }
.opts { display: grid; gap: 8px; }
.opt { text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 16px; font-family: inherit; cursor: pointer; }
.opt:disabled { cursor: default; }
.opt.right { border-color: var(--ok); background: var(--okSoft); font-weight: 600; }
.opt.wrong { border-color: var(--bad); background: var(--badSoft); }
.answer .opts + .row { margin-top: 10px; }
.xex { font-size: 16px; line-height: 1.8; margin: 14px 0 6px; padding: 14px 16px; background: var(--field); border-radius: 12px; }
.xex .gap { display: inline-block; min-width: 70px; border-bottom: 2px solid var(--main); color: transparent; }
.xans { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.xans .lv.bad { color: var(--bad); font-weight: 600; }
.xans .lv.okc { color: var(--ok); font-weight: 600; }
.xans .row { margin-top: 10px; align-items: center; }
.xans .row input { flex: 1; min-width: 0; padding: 10px 12px; font-size: 14px; }
.ansgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.ansgrid label { margin: 0; display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--sub); }
.ansgrid input { padding: 8px 0; text-align: center; font-size: 16px; font-weight: 700; border-radius: 8px; margin-top: 2px; }
.ansgrid label.miss input { border-color: var(--bad); background: var(--badSoft); }
.ansgrid label.dim { opacity: .35; }
.xnote { background: var(--warnSoft); color: var(--text); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.xraw { white-space: pre-wrap; font-family: inherit; font-size: 13px; line-height: 1.6; color: var(--sub); background: var(--field); border-radius: 10px; padding: 12px; max-height: 320px; overflow: auto; }
.xpass textarea { font-size: 14px; }
.xpass .row { margin-top: 8px; justify-content: flex-end; }
.grads.small { margin: 14px 0 0; padding: 14px; }
.grads.small b { font-size: 16px; }

/* ===== 알림 받기 권유 ===== */
.pushask { border: 1px solid var(--mint); }
.pushask b { font-size: 15px; }
.pushask .hint { margin-top: 4px; }
.pushask .row { justify-content: flex-end; margin-top: 12px; }
.pushask .toast:empty, #pushMsg:empty { display: none; }

/* ===== 배포 받는 학생 ===== */
.who-head { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 8px; font-size: 13px; color: var(--sub); }
.who-head b { color: var(--main); }
.who-head .link { padding: 0; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
label.who {
  display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 10px; border-radius: 10px; cursor: pointer;
  background: var(--mainSoft); color: var(--text); font-size: 14px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
label.who.off { background: var(--field); color: var(--sub); font-weight: 400; text-decoration: line-through; }
label.who input { width: 16px; height: 16px; margin: 0; padding: 0; flex: none; accent-color: var(--main); }
label.who small { font-size: 11px; font-weight: 400; color: var(--sub); }
.signup-school { display: grid; grid-template-columns: 1fr 7em; gap: 8px; }
.who-grid.wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ===== 시험대비 학교·학년 그룹 ===== */
.xto { font-size: 13px; color: var(--sub); margin: 14px 0 4px; font-weight: 700; }
.xto:first-of-type { margin-top: 4px; }
.xgroups { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.xsch { display: grid; grid-template-columns: 4.5em 1fr 5.5em 1em; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.xsch:last-child { border: 0; }
.xsch b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xsch input, .xsch select { padding: 9px 10px; font-size: 15px; border-radius: 9px; min-width: 0; }
.xsch select { padding-right: 24px; background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; }
.xsch .ok { color: var(--main); font-style: normal; font-weight: 700; }
.xsch.all { grid-template-columns: 4.5em 1fr 5.5em auto; background: var(--field); border-radius: 10px; padding: 8px; margin-bottom: 6px; border: 0; }
.xsch.all span { font-size: 13px; color: var(--sub); }
/* 학교 이름 정리 (2026-11-09) */
.xschh { margin: 14px 0 6px; font-size: 14px; }
.xsnames { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 12px; }
.xsname { display: flex; align-items: center; gap: 8px; }
.xsname input { flex: 1; min-width: 0; padding: 8px 10px; font-size: 14px; border-radius: 9px; }
.xsname .mini { white-space: nowrap; color: var(--sub); }
.xsdup { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff6d6; border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; font-size: 14px; }
.xsdup span { flex: 1; min-width: 12em; }
.xsdup .btn { width: auto; margin: 0; }
.xsch.all input, .xsch.all select { background-color: var(--card); }

/* ===== 단어 가져오기 (파일·붙여넣기) ===== */
.import { margin-top: 16px; }
.import .row .btn { margin-top: 0; }
.or { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; color: var(--sub); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
textarea {
  width: 100%; margin-top: 12px; padding: 14px 16px; border: 1px solid transparent; border-radius: 12px; resize: vertical;
  font-size: 15px; line-height: 1.6; background: var(--field); color: var(--text); outline: none; font-family: inherit;
}
textarea:focus { border-color: var(--main); background: var(--card); }
.impcard { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.imphead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.imphead b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.passage { font-size: 13px; line-height: 1.6; color: var(--sub); margin: 10px 0 0; max-height: 7.2em; overflow: hidden; }
.implist { margin-top: 10px; max-height: 360px; overflow-y: auto; border-top: 1px solid var(--line); }
.improw { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.improw.off b, .improw.off .ko { opacity: .4; }
.improw input[type=checkbox] { width: 18px; height: 18px; margin: 0; padding: 0; flex: none; accent-color: var(--main); }
.improw b { flex: 0 0 38%; font-size: 14px; font-weight: 600; word-break: break-word; }
.improw .ko { flex: 1; min-width: 0; padding: 8px 10px; font-size: 14px; border-radius: 8px; }
.improw .ko.miss { border-color: var(--warn); background: var(--warnSoft); }
/* 뽑아낸 단어 고치기 (wordEditHtml) */
.improw .en { flex: 0 0 38%; min-width: 0; padding: 8px 10px; font-size: 14px; font-weight: 600; border-radius: 8px; }
.improw.off .en { opacity: .4; }
.improw .wx { flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--sub, #8a97a0); font-size: 18px; line-height: 1; cursor: pointer; }
.improw .link { flex: none; padding: 4px 0; }
.implist.opened { max-height: none; overflow: visible; }
.wbox { padding: 4px 0 10px 12px; border-bottom: 1px solid var(--line); }
.wedit { margin-top: 0; }
.wadd { display: block; margin: 8px 0 4px; padding: 4px 0; }
.upanel .wedit { margin-top: 10px; }
/* 좁은 칸에서는 영어·뜻을 위아래로: 긴 숙어가 칸 안에서 잘려 안 보임 */
.upanel .wedit .improw { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; }
.upanel .wedit .en, .upanel .wedit .ko { grid-column: 1; width: 100%; }
.upanel .wedit .wx { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 699px) {
  .wedit .improw { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 8px; }
  .wedit .improw input[type=checkbox] { grid-column: 1; grid-row: 1 / span 2; }
  .wedit .en, .wedit .ko { grid-column: 2; width: 100%; }
  .wedit .wx { grid-column: 3; grid-row: 1 / span 2; }
}
.btn.soft { background: var(--mainSoft); color: var(--main); }
.row2 { display: flex; justify-content: space-between; }
.link.sm { font-size: 13px; font-weight: 500; color: var(--sub); margin: 0; }

/* ===== 개발용 ===== */
details.dev { margin-top: 4px; font-size: 13px; color: var(--sub); }
details.dev summary { cursor: pointer; padding: 8px 4px; }
details.dev .btn { margin-top: 6px; padding: 10px; font-size: 13px; }

/* ===== 공부 방식: 스펠 · 스피킹 · 게임 (study.js) ===== */
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.spell, .speak { text-align: center; }
.spell .speaker, .speak .speaker { margin: 10px auto 4px; }
.slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 14px 0 4px; }
.slots i { font-style: normal; width: 26px; height: 34px; border-bottom: 3px solid var(--line); display: grid; place-items: center; font-size: 20px; font-weight: 700; color: var(--main); }
.slots i.gap { width: 12px; border: 0; color: var(--sub); }
.slots i.open { border-color: var(--main); animation: pop .15s ease; }
.slots.big i { width: 32px; height: 42px; font-size: 24px; }
.slots.win i { color: var(--ok); border-color: var(--ok); }
.slots.show i { color: var(--bad); border-color: var(--bad); }
.spellans { display: block; font-size: 24px; letter-spacing: 2px; margin: 4px 0; }
.mres { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: -10px 0 16px; font-size: 14px; }
.mres b { width: 100%; text-align: center; font-size: 13px; color: var(--sub); }
.mres span { background: var(--badSoft); border-radius: 99px; padding: 5px 12px; }
.mres small { color: var(--sub); }
.speak .qword { margin-bottom: 2px; }
.mic {
  display: inline-flex; align-items: center; gap: 10px; margin: 16px auto 0; padding: 16px 26px; border: 0; border-radius: 99px;
  background: var(--main); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(47, 138, 122, .3);
}
.mic .dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.mic.on { background: var(--bad); }
.mic.on .dot { animation: blink 1s infinite; }
.mic.ok { background: var(--ok); box-shadow: none; }
@keyframes blink { 50% { opacity: .2; } }
.speak .hint { margin-top: 10px; }

/* 게임: 어린 학생용으로 크고 밝게 */
.games { display: grid; gap: 10px; margin-bottom: 8px; }
.gcard {
  position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 18px 18px; border: 0; border-radius: 18px;
  color: #fff; cursor: pointer; font: inherit; box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}
.gcard b { font-size: 19px; }
.gcard span { font-size: 13px; opacity: .92; }
.gcard em { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .25); border-radius: 99px; padding: 3px 10px; }
.gcard:disabled { opacity: .45; cursor: default; }
.gcard:active:not(:disabled) { transform: scale(.98); }
.g-match { background: linear-gradient(135deg, #f08a5d, #f6b26b); }
.g-puzzle { background: linear-gradient(135deg, #5b8def, #7cc4f5); }
.g-speed { background: linear-gradient(135deg, #2f9e7a, #8fd18b); }
.gtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 13px; color: var(--sub); }
.gtop b { color: var(--text); font-size: 15px; }
.gtop .link.sm { padding: 0; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mtile {
  min-height: 74px; padding: 8px 6px; border: 2px solid transparent; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; word-break: keep-all; overflow-wrap: anywhere; transition: transform .1s, opacity .25s;
}
.mtile.en { background: #fff3e6; color: #b5541f; }
.mtile.ko { background: #e8f4ff; color: #2459a8; font-size: 13px; }
.mtile.sel { border-color: currentColor; transform: scale(1.04); }
.mtile.bad { animation: shake .4s; border-color: var(--bad); }
.mtile.gone { opacity: 0; pointer-events: none; transform: scale(.8); }
.ptiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 6px; }
.ptile {
  width: 46px; height: 50px; border: 0; border-radius: 12px; background: #e8f0ff; color: #2459a8; font: inherit; font-size: 22px; font-weight: 800;
  cursor: pointer; box-shadow: 0 3px 0 #c5d6f7;
}
.ptile:disabled { visibility: hidden; }
.ptile.bad { animation: shake .3s; background: var(--badSoft); color: var(--bad); }
.sbar { height: 8px; border-radius: 99px; background: var(--field); overflow: hidden; margin-bottom: 8px; }
.sbar i { display: block; height: 100%; background: linear-gradient(90deg, #2f9e7a, #8fd18b); transition: width .25s linear; }
.combo { height: 22px; text-align: center; font-weight: 800; color: #e08a00; animation: pop .2s ease; }
.sopts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.sopt { min-height: 64px; padding: 10px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--text); }
.sopt.ok { background: var(--okSoft); border-color: var(--ok); color: var(--ok); }
.sopt.bad { background: var(--badSoft); border-color: var(--bad); color: var(--bad); animation: shake .3s; }
.gover { text-align: center; padding: 18px 0 10px; }
.gscore { font-size: 56px; font-weight: 800; color: var(--main); line-height: 1.1; animation: pop .3s ease; }
.gscore small { font-size: 20px; margin-left: 2px; }
.gbest { display: inline-block; margin: 6px 0 4px; padding: 4px 14px; border-radius: 99px; background: #fff1cc; color: #b07800; font-weight: 800; font-size: 14px; }

/* 학습 결과 표 */
.sres { margin-top: 12px; font-size: 14px; }
.sres > div { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sres > div:last-child { border: 0; }
.sres .h { font-size: 12px; color: var(--sub); padding-top: 0; }
.sres span { text-align: right; }
.sres small { display: block; font-size: 11px; color: var(--sub); }

/* ===== 컴퓨터 (넓은 화면) — 폰 화면은 그대로 =====
   아래 메뉴 → 왼쪽 옆 메뉴, 화면을 넓게. 선생님·원장(body.staff)은 카드를 2단으로 (위에서 아래로 채움) */
@media (min-width: 960px) {
  #app:has(> nav) { padding-left: 220px; }
  nav {
    top: 0; right: auto; width: 220px; flex-direction: column; justify-content: flex-start;
    border-top: 0; border-right: 1px solid var(--line); padding: 28px 14px; box-shadow: 4px 0 24px rgba(41, 61, 75, .06);
  }
  nav::before { content: attr(data-brand); display: block; font-size: 20px; font-weight: 800; letter-spacing: .3px; color: var(--brand); padding: 0 12px 22px; }
  nav .in, nav.two .in { flex-direction: column; gap: 4px; max-width: none; padding: 0; }
  nav button, nav.two button {
    flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 15px; text-align: left;
    border: 0; border-radius: 12px; background: none; color: var(--sub);
  }
  nav button:hover { background: var(--field); }
  nav svg, nav.two svg { width: 22px; height: 22px; margin: 0; flex: none; }
  nav button.on, nav.two button[data-tab].on { background: var(--mainSoft); color: var(--main); border: 0; font-weight: 700; }
  nav .dot, nav.two .dot { position: static; margin-left: auto; }

  .wrap { max-width: 760px; padding-bottom: 48px; }
  body.staff .wrap { max-width: 1180px; padding: 0 32px 48px; }
  body.staff #main { column-count: 2; column-gap: 16px; }
  body.staff #main .card, body.staff #main .seg { break-inside: avoid; }
  body.staff #main > .seg, body.staff #main > .toast, body.staff #main > .flash, body.staff #main > .tutcard { column-span: all; }
  body.staff #main > .xstat, body.staff #main > .xsteps, body.staff #main > #xNewBtn, body.staff #main > .xto, body.staff #main > .btn { column-span: all; } /* 시험대비 새 설계 */
  body.staff #main .xset { break-inside: avoid; }
  .summary { padding: 18px 0; }
  .summary b { font-size: 24px; }
}
@media (min-width: 1500px) {
  body.staff .wrap { max-width: 1440px; }
}

/* 단어 가져오기: 유닛 고르기 (유닛이 많으면 상자 안에서 스크롤) */
.impunits { margin: 8px 0 12px; max-height: 168px; overflow-y: auto; }
.impunits button { padding: 7px 12px; }
.impunits small { opacity: .65; font-weight: 500; margin-left: 2px; }

/* ===== 단어 라이브러리: 교재 타일 · 유닛 칸 ===== */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 14px; }
.book {
  text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 14px; cursor: pointer;
  font-family: inherit; color: var(--text); display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, box-shadow .15s;
}
.book:hover { border-color: var(--main); box-shadow: 0 4px 14px rgba(41, 61, 75, .08); }
.bk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bk-top b { font-size: 15px; line-height: 1.35; }
.bk-num { display: flex; gap: 14px; font-size: 12px; color: var(--sub); }
.bk-num b { font-size: 17px; color: var(--text); margin-right: 2px; }
.bk-auto { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub); }
.bk-auto b { color: var(--main); }
.bk-auto.none { opacity: .7; }
.bk-bar { height: 4px; background: var(--field); border-radius: 99px; overflow: hidden; margin-top: -4px; }
.bk-bar i { display: block; height: 100%; background: var(--main); }
.book.add { align-items: center; justify-content: center; border-style: dashed; color: var(--sub); font-weight: 600; min-height: 110px; }
.book.add span { font-size: 26px; line-height: 1; }
.bk-autos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.usearch { margin-top: 14px; padding: 11px 14px; font-size: 15px; }
.ulegend { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 8px; font-size: 12px; color: var(--sub); }
.ulegend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; border: 1px solid var(--line); background: var(--card); }
.lg.sel { background: var(--main); border-color: var(--main); }
.lg.sent { background: var(--field); }
.lg.next { border: 2px solid var(--warn); }
.ugrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; max-height: 460px; overflow-y: auto; padding: 2px; }
.ucell {
  position: relative; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px 8px 8px; cursor: pointer;
  font-family: inherit; color: var(--text); text-align: left; display: flex; flex-direction: column; gap: 2px; min-width: 0; transition: background .12s, border-color .12s;
}
.ucell b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ucell small { font-size: 11px; color: var(--sub); }
.ucell em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--warn); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ucell .hit { font-size: 10.5px; font-weight: 700; color: var(--main); }
.ucell .hit:empty { display: none; }
.ucell:hover { border-color: var(--main); }
.ucell.sent { background: var(--field); }
.ucell.sent::after { content: "✓"; position: absolute; top: 6px; right: 8px; font-size: 11px; color: var(--sub); }
.ucell.next { border: 2px solid var(--warn); padding: 8px 7px 7px; }
.ucell.on { background: var(--main); border-color: var(--main); color: #fff; }
.ucell.on small, .ucell.on em, .ucell.on .hit, .ucell.on::after { color: rgba(255, 255, 255, .85); }
.ucell.dim { opacity: .35; }
.upanel h2 { flex-wrap: wrap; }
.upanel .btn { margin-top: 12px; }
.uwlist { margin-top: 12px; display: grid; grid-template-columns: 1fr; max-height: 520px; overflow-y: auto; }
.uwlist div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.uwlist span { color: var(--sub); text-align: right; }
.uwlist .hl { background: var(--warnSoft); }
details.fold summary { font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
details.fold summary::after { content: "＋"; color: var(--sub); font-weight: 400; }
details.fold[open] summary::after { content: "－"; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold[open] summary { margin-bottom: 8px; }

@media (min-width: 960px) {
  /* 교재 안 화면은 2단 대신: 왼쪽 유닛 · 오른쪽 단어 미리 보기(따라 내려옴) */
  body.staff #main:has(.bookwrap), body.staff #main:has(.books) { column-count: 1; }
  .bookwrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .upanel { position: sticky; top: 16px; }
  .uwlist { grid-template-columns: 1fr 1fr; column-gap: 20px; max-height: calc(100vh - 260px); }
}
.xlsbtn { margin: 8px 0 0; padding: 0; }
.ubar {
  position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5; margin-top: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--brand); color: #fff; border-radius: 12px; padding: 8px 8px 8px 14px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.ubar[hidden] { display: none; }
.ubar .btn { background: #fff; color: var(--brand); }
@media (max-width: 959px) {
  /* 폰: 유닛 → 단어 미리 보기 → 유닛 추가·교재 관리 순서 */
  .bookwrap { display: flex; flex-direction: column; }
  .bookwrap > div:first-child { display: contents; }
  .bookwrap .upanel { order: 1; }
  .bookwrap details.fold { order: 2; }
}
@media (min-width: 960px) { .ubar { display: none !important; } }
.autofirst { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--mainSoft); }
.autofirst .btn { margin-top: 8px; }

/* ===== 학생 공부 화면 위쪽: 범위 칸 · 공부 방식 · 카드 방향 (크게, 2026-10-16 원장님 요청) ===== */
.srange { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.srange button {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px 6px 9px; cursor: pointer;
  font-family: inherit; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 74px; transition: background .12s, border-color .12s;
}
.srange b { font-size: 24px; font-weight: 800; line-height: 1.1; }
.srange span { font-size: 13px; font-weight: 600; color: var(--sub); }
.srange small { font-size: 11px; color: var(--main); font-weight: 600; margin-top: 1px; }
.srange button.zero b { color: #b9c4c9; }
.srange button.on { background: var(--main); border-color: var(--main); color: #fff; box-shadow: 0 4px 12px rgba(47, 138, 122, .25); }
.srange button.on span, .srange button.on small { color: rgba(255, 255, 255, .9); }
.smodes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; padding: 5px; background: var(--field); border-radius: 16px; }
.smodes button {
  border: 0; background: none; border-radius: 12px; padding: 9px 2px 8px; cursor: pointer; font-family: inherit;
  color: var(--sub); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 700;
}
.smodes svg { width: 24px; height: 24px; }
.smodes button.on { background: var(--card); color: var(--main); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
/* 방식별 진행률 (study.js progHtml): 이 범위 단어 중 그 방식으로 해 낸 비율 */
.smodes .sprog { font-style: normal; font-size: 11px; font-weight: 800; line-height: 1; padding: 3px 7px; border-radius: 999px; background: #fff4d6; color: #a86a00; font-variant-numeric: tabular-nums; }
.smodes .sprog.zero { background: transparent; color: var(--sub); opacity: .7; }
.smodes .sprog.full { background: #dff3ee; color: #237a66; }
.sdir { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.sdir.n3 { grid-template-columns: repeat(3, 1fr); }
.sdir button { border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 11px 0; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--sub); cursor: pointer; }
.sdir button.on { border-color: var(--main); color: var(--main); background: var(--mainSoft); }
.study-top #xStudyArea { margin-top: 14px; }
@media (hover: none) { .kbd-hint { display: none; } }
@media (min-width: 600px) { .srange { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); } } /* 범위가 7개(즐겨찾기)여도 한 줄 */

/* 학생 단어 입력 */
.addrow { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.addrow .btn { margin-top: 0; }
@media (min-width: 600px) { .addrow { grid-template-columns: 1fr 1.3fr auto; } .addrow .btn { padding-left: 26px; padding-right: 26px; } }

/* ===== 홈 · 공지 · 시험지 인쇄 (2026-10-17) ===== */
button.logo { background: none; border: 0; padding: 0; color: inherit; font-family: inherit; cursor: pointer; text-align: left; }
nav.two button[data-tab="home"].on { background: #eef2f4; border-color: #293d4b; color: #293d4b; }
.todo { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.todo:first-of-type { border-top: 0; padding-top: 4px; }
.todo .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.todo .t b { font-size: 16px; }
.todo .t small { font-size: 13px; color: var(--sub); }
.todo .btn { width: auto; margin: 0; padding: 10px 18px; flex: none; }
.msg { padding: 12px 0; border-top: 1px solid var(--line); }
.msg:first-of-type { border-top: 0; }
.msg.new { background: var(--mainSoft); margin: 0 -12px; padding: 12px; border-radius: 10px; border-top: 0; }
.msg .mtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.msg .mtop .x { margin-left: 4px; }
.msg p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
details.more { margin-top: 8px; }
details.more summary { cursor: pointer; font-size: 13px; color: var(--sub); padding: 6px 0; }
details.wgroup + details.wgroup { margin-top: 6px; }
details.wgroup summary { cursor: pointer; font-size: 15px; font-weight: 700; padding: 8px 0; list-style: none; display: flex; align-items: center; gap: 6px; }
details.wgroup summary::-webkit-details-marker { display: none; }
details.wgroup summary::after { content: "＋"; margin-left: auto; color: var(--sub); font-weight: 400; }
details.wgroup[open] summary::after { content: "－"; }
#wSearch, #stSearch { margin: 4px 0 6px; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.quick button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; }
.quick svg { width: 24px; height: 24px; color: var(--main); }
.alertrow { width: 100%; }
.alertrow b { color: var(--bad); }
.examhome { width: 100%; background: var(--card); }
.modal textarea { margin-top: 12px; }
.choices { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.choices .btn { margin: 0; }
#printArea { display: none; }
@media print {
  @page { size: A4; margin: 0; } /* 여백 0 = 브라우저가 쪽 위아래에 날짜·주소·쪽 번호를 안 찍음 (원장님 2026-10-26). 여백은 쪽마다 안쪽에 */
  .psheet { padding: 14mm; }
  body > *:not(#printArea) { display: none !important; }
  body { background: #fff !important; }
  #printArea { display: block; color: #000; font-family: "Pretendard", "Malgun Gothic", sans-serif; }
  .psheet + .psheet { page-break-before: always; break-before: page; }
  .phead { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #000; padding-bottom: 6px; font-size: 16px; }
  /* 종이 시험지 머리·꼬리 (2026-10-28): 시험지 PDF와 같은 글자 로고·민트 선, 아래 학원 로고 */
  .psheet { min-height: 296.5mm; box-sizing: border-box; display: flex; flex-direction: column; }
  .prun { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 4px; border-bottom: 1.5px solid var(--pz3, #8fd0c4); font-size: 12px; color: #444; }
  .prun .pzbrand { font-family: "Fredoka", "Pretendard", sans-serif; font-weight: 600; font-size: 19px; color: #293d4b; }
  .prun .pzbrand b { color: #5fb8a8; }
  .prun .pzbrand small { font-family: "Pretendard", sans-serif; font-size: 8px; font-weight: 600; margin-left: 5px; letter-spacing: .04em; color: #293d4b; }
  .ptit { text-align: center; padding: 14px 0 10px; margin-bottom: 8px; border-bottom: 1px solid #d9e2e6; }
  .ptit h1 { margin: 0 0 10px; font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
  .ptit h1 em { font-style: normal; font-size: 14px; color: #c0392b; margin-left: 6px; vertical-align: middle; }
  .ptit table { margin: 0 auto; border-collapse: collapse; font-size: 12px; }
  .ptit th, .ptit td { border: 1px solid #b9c3c9; padding: 3px 12px; height: 18px; }
  .ptit th { background: #eef3f5; font-weight: 600; width: 44px; }
  .ptit td { width: 130px; font-weight: 700; }
  .ptit td.psc { width: 64px; text-align: right; font-weight: 400; }
  .plist.pkeys { columns: 3; } .plist.pkeys li { padding: 6px 0; align-items: baseline; } .plist .pa { font-weight: 600; color: #1d2730; }
  /* 2026-10-28 다듬기: 민트 띠 머리 · 이름/점수 칸 · 묶음 머리 · 번호 동그라미 */
  .pband { display: flex; align-items: stretch; gap: 12px; margin: 10px 0 14px; padding: 12px 14px; border-radius: 10px; background: #eef8f6; border: 1px solid #cfe9e3; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pbt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
  .pbt small { font-size: 9px; font-weight: 700; letter-spacing: .18em; color: #3f9d8d; }
  .pbt h1 { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: #1d2730; }
  .pbt h1 em { font-style: normal; font-size: 13px; color: #fff; background: #d0533f; border-radius: 99px; padding: 2px 9px; margin-left: 6px; vertical-align: 3px; }
  .pbox { flex: none; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
  .pbox > div { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #cfe9e3; border-radius: 7px; padding: 4px 10px; min-width: 150px; }
  .pbox span { font-size: 10px; color: #5c6b72; font-weight: 600; width: 26px; }
  .pbox b { flex: 1; font-size: 13px; text-align: center; }
  .pbox b.psc { text-align: right; font-weight: 500; color: #555; }
  .psec { display: flex; align-items: baseline; justify-content: space-between; margin: 12px 0 2px; padding-bottom: 4px; border-bottom: 1px solid #d9e2e6; break-after: avoid; }
  .psec b { font-size: 13px; font-weight: 800; color: #293d4b; }
  .psec b small { font-size: 10px; font-weight: 400; color: #7b8a91; margin-left: 6px; }
  .psec > span { font-size: 10px; color: #7b8a91; }
  .psheet .plist { font-size: 13.5px; }
  .psheet .plist li { padding: 12px 0 4px; }
  .psheet .plist .pn { width: 20px; height: 20px; flex: none; margin-right: 4px; border-radius: 50%; background: #293d4b; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; align-self: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .psheet .plist .pb { border-bottom: 1px solid #b7c2c7; }
  .psheet .plist.pkeys .pn { background: #5fb8a8; }
  .psheet .plist.pkeys li { padding: 7px 0; }
  .psheet .plist.c3 { columns: 3; column-gap: 7mm; font-size: 12.5px; } /* 문제 많은 단어 시험지 (2026-10-28) */
  .psheet .plist.c3 li { padding: 10px 0 3px; gap: 4px; }
  .psheet .plist .pw, .psheet .plist .pa { max-width: none; white-space: nowrap; } /* 단어·뜻은 한 줄 — 길면 앱이 글자를 줄임(fitHtml) */
  .psheet .plist .pfit { white-space: nowrap; }
  .psheet .plist.c3 .pn { width: 17px; height: 17px; font-size: 9px; margin-right: 2px; }
  .psheet .plist.g20 { display: grid; columns: auto; grid-auto-flow: column; grid-template-rows: repeat(20, minmax(0, 1fr)); flex: 1; align-content: stretch; } /* 한 단 20문제, 줄은 쪽 높이에 고르게 (2026-10-28) */
  .psheet .plist.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10mm; } .psheet .plist.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 7mm; }
  .psheet .plist.g20 li { padding: 4px 0 3px; } /* 줄 사이는 1fr 로 벌어짐 */
  .psheet .plist.k4 { columns: 4; column-gap: 5mm; font-size: 11.5px; } .psheet .plist.k4 li { padding: 4px 0; } .psheet .plist.k5 { font-size: 10px; } .psheet .plist.k5 li { padding: 2px 0; }
  .pfoot { border-top: 1px solid #d9e2e6; }
  .pfoot { margin-top: auto; padding-top: 10px; position: relative; display: flex; align-items: center; justify-content: center; height: 14mm; font-size: 10px; color: #777; }
  .pfoot img { position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 12mm; width: 12mm; object-fit: contain; }
  .pmeta { display: flex; justify-content: flex-end; gap: 28px; margin: 10px 0 14px; font-size: 13px; }
  .plist { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 10mm; font-size: 13px; }
  .plist li { display: flex; align-items: flex-end; gap: 6px; break-inside: avoid; padding: 11px 0 3px; }
  .plist .pn { width: 22px; flex: none; color: #555; }
  .plist .pw { flex: none; max-width: 48%; font-weight: 600; }
  .plist .pb { flex: 1; border-bottom: 1px solid #999; min-height: 18px; padding-left: 4px; }
  .pkey .plist .pb { border-bottom: 0; color: #333; }
}
[hidden] { display: none !important; }

/* 카드 모양 줄 버튼 (오답 통계·퇴원한 학생·승인 대기·홈 시험대비): .srow가 카드 배경을 지우지 않게 */
.card.srow { background: var(--card); padding: 16px 20px; border: 0; border-radius: 16px; margin-bottom: 12px; box-shadow: var(--shadow); break-inside: avoid; }
.card.srow.alertrow { border: 1.5px solid var(--bad); }
/* 학원 관리: 위쪽 전환으로 묶음만 보이기 */
#main [data-grp][hidden] { display: none !important; }
/* 학원 관리 '반 · 학생': 왼쪽 반, 오른쪽 학생 명단 (폰은 위아래) */
.clsplit { column-span: all; display: grid; gap: 12px; margin-bottom: 12px; align-items: start; }
.clsplit > .card { margin: 0; }
.cls-row { border-radius: 10px; padding-left: 8px; padding-right: 8px; cursor: pointer; }
.cls-row:hover { background: var(--mainSoft); }
.cls-row .cls-name { flex: 1; }
.cls-row.on { background: var(--mainSoft); }
.cls-row.on .cls-name { color: var(--main); font-weight: 700; }
@media (min-width: 760px) { .clsplit { grid-template-columns: 1fr 1fr; } }
/* ===== 학원 일정 (calendar.js, 2026-10-18) ===== */
.kd { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; white-space: nowrap; }
.kd.off { background: #e6e9eb; color: #56636a; }
.kd.exam { background: #e3ebff; color: #3b6cf6; }
.kd.event { background: #fff0dc; color: #c26a00; }
.uplist { margin-top: 8px; }
.uprow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.uprow:first-child { border-top: 0; }
.uprow .ud { width: 64px; flex: none; color: var(--sub); font-size: 13px; }
.uprow .ut { flex: 1; min-width: 0; }
.calhead { display: flex; align-items: center; justify-content: space-between; }
.calhead b { font-size: 17px; }
.calhead .btn { width: auto; margin: 0; padding: 6px 14px; }
.callegend { display: flex; gap: 6px; margin: 10px 0 8px; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.calgrid .cw { text-align: center; font-size: 12px; color: var(--sub); padding: 4px 0; }
.calgrid .cw.sun { color: #d64545; } .calgrid .cw.sat { color: #3b6cf6; }
.cd { min-height: 58px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 3px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; overflow: hidden; color: var(--text); }
.cd b { font-size: 12px; font-weight: 600; }
.cd i { font-style: normal; font-size: 10px; line-height: 1.25; padding: 1px 3px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd i.exam { background: #e3ebff; color: #3b6cf6; } .cd i.event { background: #fff0dc; color: #c26a00; } .cd i.offg { color: #56636a; }
.cd.wkend b { color: #9aa5ab; }
.cd.other { opacity: .35; }
.cd.off { background: #e6e9eb; }
.cd.partoff { background: repeating-linear-gradient(135deg, #f1f3f4 0 6px, #e6e9eb 6px 12px); }
.cd.today { border-color: var(--main); border-width: 2px; }
.cd.pick { outline: 2px solid #293d4b; outline-offset: 1px; }
.calday { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.calday .kv { gap: 8px; }
.calday input { margin-top: 8px; }
@media (min-width: 960px) { .cd { min-height: 72px; } .cd i { font-size: 11px; } }
/* 반 · 학생: 여러 명 골라 반 옮기기 */
.pickrow { display: flex; align-items: center; gap: 10px; }
.pickrow input[type=checkbox] { width: 18px; height: 18px; flex: none; margin: 0; }
.pickrow .srow { flex: 1; min-width: 0; }
.movebar { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.movebar .link { margin: 0; padding: 0; white-space: nowrap; }
.movebar select { flex: 1; min-width: 0; margin: 0; }
.movebar .btn { width: auto; margin: 0; white-space: nowrap; }
.unit { align-self: center; color: var(--sub); font-size: 14px; white-space: nowrap; }
label.check { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: 14px; }
label.check input { width: 18px; height: 18px; margin: 0; }#calCls .kv b { white-space: nowrap; }
#calCls .kv select { flex: 1; max-width: 220px; margin: 0; }

/* 달력 칸 글자: 잘리지 않게 두 줄까지 (2026-10-19 원장님 요청 — 내용이 보이게) */
.cd i { white-space: normal; overflow-wrap: anywhere; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: clip; }
.cd i.off { color: #56636a; font-weight: 600; padding-left: 0; }
.calmonth { margin-top: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
/* ===== 달력: 주마다 한 줄, 여러 날 일정은 막대 하나 (2026-10-19) ===== */
.calwd { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; color: var(--sub); padding: 4px 0; }
.calwd .sun { color: #d64545; } .calwd .sat { color: #3b6cf6; }
.calweeks { display: flex; flex-direction: column; gap: 3px; }
.calweeks.edit { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.calweeks:not(.edit) .cd { cursor: default; }
.cweek { display: grid; grid-template-columns: repeat(7, 1fr); column-gap: 3px; min-height: 58px; }
.cweek .cd { grid-row: 1 / -1; min-height: 0; padding: 2px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); text-align: left; display: block; cursor: pointer; color: var(--text); -webkit-tap-highlight-color: transparent; }
.cweek .cd b { font-size: 12px; font-weight: 600; }
.cweek .cd.wkend b { color: #9aa5ab; }
.cweek .cd.other { opacity: .35; }
.cweek .cd.off { background: #e3e6e8; border-color: #d3d8db; }
.cweek .cd.today { border: 2px solid var(--main); }
.cweek .cd.sel { background: #dff1ec; border-color: var(--main); }
.cweek .cd.off.sel { background: #cfe3dd; }
.cbar { z-index: 1; pointer-events: none; margin: 1px 2px; padding: 0 5px; border-radius: 5px; font-size: 10.5px; line-height: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbar.event { background: #ffb547; color: #4a2c00; }
.cbar.off { background: #9aa5ab; color: #fff; }
.cbar.cl { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -2px; }
.cbar.cr { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: -2px; }
.kd.event { background: #fff0dc; color: #b45f00; }
.callegend .hint { margin: 0 0 0 auto; font-size: 12px; }
@media (min-width: 960px) { .cweek { min-height: 76px; } .cbar { font-size: 12px; line-height: 17px; } }.cweek .cd { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; }

/* 개인정보 처리 동의 (가입·처음 한 번) */
.consent { margin: 16px 0 4px; padding: 10px 14px; background: var(--field); border-radius: 12px; }
.consent label.check { margin: 8px 0; font-size: 14px; }
.consent label.check.all { font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.consent a { margin-left: auto; color: var(--main); font-size: 13px; font-weight: 600; white-space: nowrap; }
/* ===== 시험대비 [지문]: 핵심 정리 + 문장별 해석 (2026-10-21) ===== */
.xpchips { margin: 0 0 10px; }
.xkv { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.xkv:first-of-type { border-top: 0; }
.xkv span { color: var(--sub); font-size: 13px; padding-top: 1px; }
.xkv b { font-weight: 600; }
.xkv small { display: block; color: var(--sub); font-weight: 400; font-size: 13.5px; margin-top: 2px; }
.xflow { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.xflow li { display: flex; gap: 8px; font-size: 14px; line-height: 1.5; }
.xflow li span { flex: none; min-width: 40px; text-align: center; font-size: 12px; font-weight: 700; color: var(--main); background: var(--mainSoft); border-radius: 6px; padding: 1px 6px; height: fit-content; }
.xropts { display: flex; gap: 6px; margin-bottom: 4px; }
.xropts button { flex: 1; border: 1.5px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 0; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--sub); cursor: pointer; }
.xropts button.on { border-color: var(--main); color: var(--main); background: var(--mainSoft); }
.xsent { padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xsent:first-child { border-top: 0; }
.xsent .en { margin: 0; font-size: 16.5px; line-height: 1.75; }
.xsent .no { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-right: 6px; border-radius: 6px; background: var(--field); color: var(--sub); font-size: 11.5px; font-weight: 700; vertical-align: 2px; }
.xsent .ko { display: none; margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--mainSoft); font-size: 14.5px; line-height: 1.6; }
.xsent.open .ko { display: block; }
.xsent .sl { font-style: normal; font-weight: 800; color: var(--main); }
.xsent u { text-decoration: underline 2px; text-decoration-color: #e8590c; text-underline-offset: 3px; }
mark.xv { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.gps { margin-top: 4px; }
.gp { display: inline-block; margin: 4px 4px 0 0; padding: 3px 8px; border-radius: 8px; background: #fff4e6; font-size: 12.5px; line-height: 1.5; }
.gp b { color: #c2410c; font-weight: 700; }
/* 선생님: 해석 고치기 */
.xana label { display: block; margin-top: 10px; font-size: 13px; color: var(--sub); }
.xana input { margin-top: 4px; }
.xflow-e { display: grid; grid-template-columns: 70px 1fr; gap: 6px; }
.xsedit { padding: 10px 0; border-top: 1px solid var(--line); }
.xsedit .en { font-size: 14px; line-height: 1.6; margin-bottom: 6px; }
.xsedit textarea { font-size: 14px; }
.xsedit .gp .x { margin-left: 2px; }
/* 시험대비 어휘 공부·테스트: 매일 단어 공부와 같은 모양 (2026-10-22) */
.smodes.n3 { grid-template-columns: repeat(3, 1fr); }
.smodes.n2 { grid-template-columns: repeat(2, 1fr); }
.study-top .srange + .smodes, .study-top .srange + .sdir { margin-top: 14px; }
.sdir button:disabled { opacity: .45; cursor: default; }
.xsetup #xStart { margin-top: 16px; }
/* 지문 구간 (교과서 본문 등 긴 지문, 2026-10-22) */
.xsecs { margin: 0 0 12px; }
.xsechead { margin: 14px 0 2px; padding: 10px 12px; border-radius: 10px; background: var(--mainSoft); }
.xsechead b { display: block; font-size: 15px; color: var(--main); }
.xsechead span { display: block; font-size: 13.5px; color: var(--text); margin-top: 2px; line-height: 1.5; }
.xsec-e { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--mainSoft); }
.xsec-e .row { align-items: center; gap: 6px; }
.xsec-e .row b { flex: 1; color: var(--main); }
.xsec-e .btn { width: auto; margin: 0; padding: 4px 10px; }
.xsec-e input { margin-top: 6px; }
/* 시험대비 [구조]: 덩어리 배열 · 주어·동사 찾기 (2026-10-22) */
.xs-ko { margin: 10px 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--mainSoft); font-size: 15px; line-height: 1.6; }
.xs-ans { min-height: 56px; padding: 8px; border: 2px dashed var(--line); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.xs-ans.ok { border-color: var(--ok); border-style: solid; }
.xs-ans.bad { border-color: var(--bad); border-style: solid; }
.xs-pool { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; min-height: 40px; }
.xs-chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 10px; padding: 7px 10px; font-family: inherit; font-size: 15px; color: var(--text); cursor: pointer; }
.xs-ans .xs-chip { border-color: var(--main); background: var(--mainSoft); }
.xs-end { align-self: center; font-size: 16px; font-weight: 700; }
.xs-full { margin: 6px 0 0; font-size: 15px; line-height: 1.7; }
.xs-full .sl { font-style: normal; font-weight: 800; color: var(--main); }
/* 주어·동사 찾기: 낱말 카드 대신 큰 글씨 문장 그대로, 낱말을 눌러 고름 (원장님 2026-11-29 '카드라 글을 읽기 어려워') */
.xs-words { margin: 16px 0 20px; font-size: 23px; line-height: 1.95; word-break: normal; overflow-wrap: break-word; }
.xs-w { border: 0; border-bottom: 3px solid transparent; background: none; box-shadow: none; border-radius: 5px; padding: 1px 2px; margin: 0 -2px; font: inherit; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .xs-w:hover { background: #eef2f6; } }
.xs-w.is-s { border-bottom-color: #3b6cf6; background: #e3ebff; }
.xs-w.is-v { border-bottom-color: #e8590c; background: #fff0e6; }
.xs-w.miss { color: var(--bad); text-decoration: line-through; }
.xs-lab { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.xs-lab.s { background: #e3ebff; color: #3b6cf6; } .xs-lab.v { background: #fff0e6; color: #e8590c; }
.xsv { display: grid; grid-template-columns: auto 1fr 1.4fr auto; gap: 6px; margin-top: 6px; align-items: center; }
.xsv input, .xsv select { font-size: 13px; padding: 8px 10px; min-width: 0; }
.xsv select { width: auto; }
[data-svadd] { margin: 4px 0 0; }
.toast-pop { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px);
  background: #293d4b; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: opacity .4s; }
.toast-pop.out { opacity: 0; }
/* 맞음·틀림 이펙트 (가볍게, 2026-10-22 원장님 요청): 맞으면 살짝 튀어오름, 틀리면 살짝 흔들림 */
@keyframes fx-pop { 0% { transform: scale(.96); } 55% { transform: scale(1.025); } 100% { transform: scale(1); } }
@keyframes fx-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes fx-glow { 0% { box-shadow: 0 0 0 0 rgba(47, 158, 68, .35); } 100% { box-shadow: 0 0 0 12px rgba(47, 158, 68, 0); } }
.verdict.ok, .verdict.part, .opt.right, .xs-ans.ok, .mic.ok { animation: fx-pop .32s ease-out; }
.answer input.ok, .xs-ans.ok { animation: fx-pop .32s ease-out, fx-glow .6s ease-out; }
.verdict.bad, .answer input.bad, .opt.wrong, .xs-ans.bad, .xs-w.miss { animation: fx-shake .36s ease-in-out; }
@media (prefers-reduced-motion: reduce) { .verdict, .answer input, .opt, .xs-ans, .xs-w, .mic { animation: none !important; } }

/* 학원 정보 (2026-10-23) */
.aca-logo { display: flex; align-items: center; gap: 14px; margin: 8px 0 4px; }
.aca-logo img, .aca-logo > span { width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--line); object-fit: contain; background: #fff; flex: none; }
.aca-logo > span { display: grid; place-items: center; font-size: 12px; color: var(--sub); }
.code.sm { font-size: 13px; padding: 10px 12px; word-break: break-all; letter-spacing: 0; }

/* 반 경쟁 (2026-10-23): 우리 반 이번 주 */
.board .bgoal { margin: 12px 0 14px; }
.board .bgoal .row2 { font-size: 14px; margin-bottom: 6px; }
.board .bgoal .row2 span { font-weight: 800; color: var(--main); }
.board .btabs { margin-bottom: 8px; }
.brow { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; font-size: 15px; }
.brow + .brow { border-top: 1px solid var(--line); }
.brow.me { background: var(--mainSoft); border-top-color: transparent; }
button.brow { width: 100%; border: 0; background: none; font: inherit; font-size: 15px; color: inherit; text-align: left; cursor: pointer; } /* 선생님 홈 연속 순위: 누르면 학생 상세 */
.brow .bname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bno { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--line); color: var(--text); flex: none; }
.bno.n1 { background: #ffd23f; color: #1d2d36; } .bno.n2 { background: #d6dde2; color: #1d2d36; } .bno.n3 { background: #e9c39b; color: #1d2d36; }
.gcard .gtop1 { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--main); }
.grank { margin-top: 6px; font-size: 15px; font-weight: 800; color: var(--main); min-height: 20px; }

.link.danger { color: var(--bad); }
.link.delacc { margin: 16px auto 0; font-size: 12.5px; font-weight: 500; color: var(--sub); text-decoration: underline; } /* 계정 삭제 (2026-11-09) — 눈에 덜 띄게 */

/* 로그인한 모든 화면: 글자 드래그 선택·길게 누르기 메뉴·이미지 끌기 막음 (원장님 결정 2026-10-24). 입력칸은 그대로 */
body.nocopy { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.nocopy img { -webkit-user-drag: none; }
body.nocopy input, body.nocopy textarea, body.nocopy [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* 화면 맨 아래 저작권 한 줄 */
footer.legal { text-align: center; font-size: 11px; line-height: 1.6; color: var(--sub); opacity: .85; margin: 22px 0 6px; padding: 0 8px; word-break: keep-all; }
footer.legal a { color: inherit; text-decoration: underline; }
body[data-section="exam"] footer.legal { color: #c7d0dd; }
/* 화면을 불러오는 동안엔 저작권 줄 숨김 — 새로고침 때 위쪽 남색 띠 바로 아래로 올라와 보이던 것 */
#main:has(.boot) ~ footer.legal { visibility: hidden; }

/* 공부 카드 손가락으로 밀기 (2026-10-24): 카드 위에서는 화면이 스크롤되지 않게, 날아가는 카드가 옆으로 삐져나와 화면이 흔들리지 않게 */
.flash { touch-action: none; will-change: transform; }
#xStudyArea { overflow-x: clip; }

/* ===== 상자 테두리 (원장님 결정 2026-10-24, 3가지 미리 보기 중 ① 얇은 선): 그림자를 줄이고 가는 선으로 경계를 또렷하게.
   시험대비(exam)는 위 진한 선이 있어 그대로 */
:root { --frameLine: #cfdcd6; }
body:not([data-section="exam"]) :is(.card, .summary, .seg) { border: 1px solid var(--frameLine); box-shadow: 0 1px 2px rgba(41, 61, 75, .05); }

/* 시험대비 [구조·영작] 영작 (exam.js xWriteGrade, 2026-10-25) */
.xw-ans { width: 100%; box-sizing: border-box; min-height: 92px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line, #d7e0e6);
  font: inherit; font-size: 16px; line-height: 1.55; resize: vertical; background: var(--card); color: var(--text, #1d2d36); }
.xw-ans:focus { outline: none; border-color: var(--main); }
.xw-ans.ok { border-color: #2f9e7e; background: #effaf6; }
.xw-ans.bad { border-color: #e0a14a; }
.xw-hint { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--field); font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: .5px; line-height: 1.7; word-break: break-word; }
.xw-chips { margin-top: 10px; }
.xw-chips .xs-chip { cursor: default; }
.xw-key mark { background: #ffe58a; color: inherit; padding: 0 2px; border-radius: 3px; font-weight: 700; }
.xw-mine { display: block; }
.xw-mine s { color: #c4572a; text-decoration-thickness: 2px; }

/* ===== 튜토리얼 (tutorial.js, 2026-10-25) ===== */
.tutcard { border: 2px solid var(--mint, #80cabd); background: linear-gradient(180deg, #f1faf8, var(--card)); }
.tut-head { display: flex; justify-content: space-between; align-items: center; }
.tut-head h2 { margin: 0; }
.tut-lead { margin: 6px 0 12px; color: var(--sub); font-size: 14px; }
.tut-qs { display: grid; gap: 8px; }
@media (min-width: 640px) { .tut-qs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { body.staff .tut-qs { grid-template-columns: repeat(3, 1fr); } }
.tut-qs button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); font: inherit; cursor: pointer; color: var(--text); }
.tut-qs button:hover { border-color: var(--main); }
.tut-qs .no { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--main); color: #fff; font-weight: 800; font-size: 14px; }
.tut-qs .t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tut-qs .t b { font-size: 15.5px; }
.tut-qs .t small { color: var(--sub); font-size: 12.5px; }
.tut-qs .chev { color: var(--sub); font-size: 20px; }
.tut-qs button.done { opacity: .6; }
.tut-qs button.done .no { background: #2f9e7e; }

.tut { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
.tut-dim { position: fixed; inset: 0; background: rgba(15, 26, 32, .6); pointer-events: auto; }
.tut-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(15, 26, 32, .6); outline: 3px solid #ffd43b; outline-offset: 2px;
  transition: left .2s, top .2s, width .2s, height .2s; animation: tutPulse 1.4s ease-in-out infinite; }
@keyframes tutPulse { 50% { outline-color: rgba(255, 212, 59, .35); outline-offset: 6px; } }
.tut-blk { position: fixed; pointer-events: auto; }
.tut-bubble { position: fixed; left: 50%; top: 30%; transform: translateX(-50%); width: min(380px, calc(100vw - 32px)); box-sizing: border-box; pointer-events: auto;
  background: #fff; color: #1d2a33; border-radius: 18px; padding: 14px 16px 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); animation: tutIn .25s ease-out; }
@keyframes tutIn { from { opacity: 0; transform: translate(-50%, 8px); } }
.tut-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--main, #2f8a7a); }
.tut-x { border: 0; background: none; color: #6f7f88; font: inherit; font-size: 12.5px; cursor: pointer; padding: 4px; }
.tut-bubble p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; word-break: keep-all; }
.tut-bubble p b { color: #c45a00; }
.tut-tap { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: #a86a00; background: #fff4d6; border-radius: 10px; padding: 8px 10px; }
.tut-next { margin-top: 12px; width: 100%; }
.tut-ladder { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 10px; }
.tut-ladder span { flex: 1; min-width: 58px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: #eef7f4; font-size: 11.5px; color: #4b5c66; text-align: center; line-height: 1.3; }
.tut-ladder span b { font-size: 15px; color: #237a66; }
.tut-ladder span.end { background: #ffd43b; color: #1d2d36; }
.tut-ladder span.end b { color: #1d2d36; }
.tut-ladder i { font-style: normal; color: #80cabd; font-weight: 800; }
.tut-hello { font-size: 44px; text-align: center; margin-top: 4px; animation: tutWave 1.2s ease-in-out 2; transform-origin: 70% 80%; }
@keyframes tutWave { 25% { transform: rotate(18deg); } 50% { transform: rotate(-8deg); } 75% { transform: rotate(14deg); } }

/* 학생별 교재·진도 (자동 배포, 2026-10-26) */
/* 학생 상태: 진행 · 복습만 · 쉬기 (2026-10-29) */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.modes button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); font: inherit; color: var(--text); cursor: pointer; }
.modes button i { font-style: normal; font-size: 18px; line-height: 1; }
.modes button b { font-size: 14px; }
.modes button small { font-size: 11px; color: var(--sub); line-height: 1.3; text-align: center; word-break: keep-all; }
.modes button.on { border-color: var(--main); background: var(--mainSoft); }
.modes button.on b { color: var(--main); }
.modeall { margin: 12px 0 10px; }
.mchips { display: flex; flex-wrap: wrap; gap: 6px; }
.mchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 7px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); font: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.mchip i, .sturow i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--field); color: var(--sub); flex: none; }
.m-go i { background: var(--ok); color: #fff; }
.m-review i { background: var(--warnSoft); color: var(--warn); }
.m-rest { color: var(--sub); }
.stutab { display: flex; flex-direction: column; margin-top: 4px; }
.sturow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 2px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.sturow:first-child { border-top: 0; }
.sturow b { font-size: 14px; white-space: nowrap; }
.sturow span { flex: 1; min-width: 0; font-size: 13px; color: var(--sub); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sturow .chev { flex: none; color: var(--sub); }
.mprog { margin-top: 14px; }
.mprog .row select { flex: 1; min-width: 0; font-size: 14px; }
.mprog .row2 { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.mprog .row2 .link.sm { padding: 0; margin: 0; }
.mprog .btn.sm { margin-top: 10px; }
#stMode .link.sm { padding-top: 12px; }

/* 체험(?try) 신청 카드 (2026-10-16) */
.try-nudge { text-align: center; }
.try-nudge img { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.try-nudge h2 { margin: 12px 0 4px; }
.try-nudge p { margin: 0 0 16px; color: var(--sub); font-weight: 600; }
.try-nudge .btn { display: block; width: 100%; margin-top: 8px; text-decoration: none; text-align: center; }
.try-nudge a.btn { background: linear-gradient(135deg, #ffe680, #ffd43b 55%, #ffc51a); color: #1f2d36; font-weight: 900; }

/* ----- 시험대비 새 설계 (2026-10-18): 선생님 메인·세트·만들기, 학생 메인 ----- */
.xstat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.xstat div { background: var(--card); border-radius: 14px; padding: 12px 8px; text-align: center; box-shadow: var(--shadow); }
.xstat b { display: block; font-size: 22px; font-weight: 800; }
.xstat span { font-size: 12px; color: var(--sub); }
.xstat .hi b { color: var(--main); } .xstat .warn b { color: var(--warn); } .xstat .bad b { color: var(--bad); }
.xset { display: block; width: 100%; text-align: left; background: var(--card); border: 0; border-radius: 16px; padding: 16px 18px; margin-bottom: 10px; box-shadow: var(--shadow); color: var(--text); cursor: pointer; }
.xset .top { display: flex; align-items: center; gap: 8px; }
.xset .top b { flex: 1; font-size: 16px; font-weight: 700; min-width: 0; }
.xset .sub { font-size: 12px; color: var(--sub); margin-top: 3px; }
.xset .bars { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.xset .bars div { font-size: 11px; color: var(--sub); }
.xset .bars b { display: block; font-size: 15px; color: var(--text); font-weight: 700; margin-bottom: 4px; }
.xset .bars .rate { margin: 0; } .xset .bars .rate i { background: var(--main); opacity: 1; }
.xset .bars .bad b { color: var(--bad); }
.xsteps { display: flex; gap: 6px; margin-bottom: 12px; }
.xsteps span { flex: 1; text-align: center; font-size: 12px; font-weight: 700; padding: 8px 4px; border-radius: 10px; background: var(--card); color: var(--sub); box-shadow: var(--shadow); }
.xsteps span.on { background: var(--text); color: var(--card); } .xsteps span.done { background: var(--okSoft); color: var(--ok); cursor: pointer; }
.xpick { border-bottom: 1px solid var(--line); padding: 4px 0; }
.xpick:last-child { border: 0; }
.xpick summary { display: flex; align-items: center; gap: 8px; padding: 8px 0; cursor: pointer; list-style: none; }
.xpick summary::-webkit-details-marker { display: none; }
.xpick summary b { flex: 1; font-size: 14px; font-weight: 700; }
.xpick summary input { width: 18px; height: 18px; margin: 0; accent-color: var(--main); }
.xpick .xwho { padding-left: 26px; }
.xwho { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.xwho:last-child { border: 0; } .xwho input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--main); }
.xwho .pill { margin-left: auto; } .xwho.off { color: var(--sub); }
.xstu { display: grid; grid-template-columns: 1fr 110px 56px 16px; gap: 10px; align-items: center; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font-family: inherit; font-size: 13px; color: var(--text); text-align: left; cursor: pointer; }
.xstu .chev { color: var(--sub); transition: transform .15s; } .xstu.open .chev { transform: rotate(90deg); } .xstu.open { border-bottom: 0; }
.xstu-d { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 0 12px 4px; border-bottom: 1px solid var(--line); font-size: 12px; }
.xstu-d span { background: var(--field); border-radius: 8px; padding: 4px 9px; color: var(--sub); font-weight: 600; } .xstu-d .link.sm { margin-left: auto; color: var(--bad); }
.xstu-d:last-child { border: 0; }
.xstu:last-child { border: 0; }
.xstu b { font-weight: 700; } .xstu small { display: block; color: var(--sub); font-size: 11px; }
.xstu .rate { margin: 0; } .xstu .rate i { background: var(--main); opacity: 1; }
.xstu .ok { color: var(--ok); font-weight: 700; } .xstu .no { color: var(--bad); font-weight: 700; }
.xstu .x { border: 0; background: none; color: var(--sub); font-size: 18px; cursor: pointer; padding: 0; }
.xstu.head { font-size: 11px; color: var(--sub); padding: 4px 0; }
.xtiles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.xtiles div { background: var(--field); border-radius: 12px; padding: 10px 6px; text-align: center; font-size: 11px; color: var(--sub); }
.xtiles b { display: block; font-size: 18px; color: var(--text); font-weight: 800; }
.xtiles .bad b { color: var(--bad); } .xtiles .ok b { color: var(--ok); }
.xact { display: flex; gap: 8px; margin-top: 12px; }
.xact .btn { margin: 0; flex: 1; font-size: 14px; padding: 12px 8px; }
.edit { border: 0; background: none; color: var(--sub); font-size: 15px; cursor: pointer; padding: 0 4px; }
.mini { font-size: 12px; color: var(--sub); }
.xnext { background: var(--card); border-radius: 16px; padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow); border: 2px solid #3b6cf6; }
.xnext .d { font-size: 12px; color: #3b6cf6; font-weight: 800; }
.xnext h2 { margin: 4px 0 2px; font-size: 20px; }
.xflow { display: grid; gap: 6px; margin-top: 12px; }
.xflow button { border: 0; background: var(--field); border-radius: 12px; padding: 10px 2px; font-size: 11px; color: var(--sub); font-weight: 700; cursor: pointer; }
.xflow button b { display: block; font-size: 15px; color: var(--text); margin-bottom: 2px; }
.xflow button.done { background: var(--okSoft); color: var(--ok); } .xflow button.done b { color: var(--ok); }
.xflow button.now { background: #3b6cf6; color: #fff; } .xflow button.now b { color: #fff; }
.xtodo { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #eef2ff; font-size: 14px; line-height: 1.5; }
.xtodo b { color: #3b6cf6; }

body[data-section="exam"] .xto { color: rgba(255,255,255,.85); }

/* 시험대비 메인 세트 카드 [지우기] (2026-10-18) */
.xsetw { position: relative; break-inside: avoid; }
.xsetw .xset { padding-bottom: 34px; } .xsetw.nodel .xset { padding-bottom: 16px; }
.xdel { position: absolute; right: 16px; bottom: 18px; z-index: 1; border: 0; background: none; color: var(--bad); font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px 6px; }
.xpastw { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.xpastw:last-child { border: 0; } .xpastw .srow { border: 0; flex: 1; min-width: 0; }

/* 시험 답 칸(영어): 비밀번호 칸으로 지정해 자판 추천 단어를 끄고, 글자는 그대로 보이게 (2026-10-18 미리보기 시험) */
/* 폰에서는 비밀번호 칸이 점으로만 보여서(원장님 폰 확인), 칸의 글자는 투명하게 하고 위에 같은 글자를 겹쳐 그림 (common.js nosugMirror) */
.nosugw { position: relative; display: block; }
input.nosug { color: transparent !important; caret-color: transparent; -webkit-text-security: none; }
.nosugm { position: absolute; left: 17px; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 17px; color: var(--text); white-space: pre; overflow: hidden; }
.nosugm i { display: inline-block; width: 2px; height: 1.15em; background: var(--main); vertical-align: -0.2em; margin-left: 1px; animation: nsBlink 1s steps(1) infinite; }
.nosugm.off i { display: none; }
@keyframes nsBlink { 50% { opacity: 0; } }
input.nosug::placeholder { color: transparent; }

/* 시험대비 [지문] 핵심 정리 접기 (exam.js renderXRead, 2026-10-20) + 해석·끊어 읽기·문법 버튼은 스크롤해도 위에 */
.xcore-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.xcore-h h2 { margin: 0; }
.xcore .xkv:first-of-type { border-top: 0; }
.xcore:not(.open) .xcore-more { display: none; }
.xcore-more .xkv:first-child { border-top: 1px solid var(--line); }
.xropts { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--card); padding: 8px 0; margin-top: -8px; }
.xitem .ko { white-space: pre-line; } /* 유의어·반의어 목록도 두 줄 (exam.js relText) */

/* 유의어·반의어 분류 (study.js drawSort, 2026-10-20) */
.sort-word { text-align: center; margin: 10px 0 10px; }
.sort-word b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.3px; }
.sort-word small { display: block; margin-top: 2px; color: var(--sub); font-size: 14px; }
.sort-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sbox { min-height: 76px; border: 2px dashed var(--line); border-radius: 12px; padding: 6px 7px; background: var(--field); cursor: pointer; transition: border-color .15s, background .15s; }
.sbox.syn .sbox-h { color: #2f8a5a; } .sbox.ant .sbox-h { color: #c4572a; }
.sbox-h { font-size: 13.5px; font-weight: 800; margin-bottom: 4px; } .sbox-h small { font-weight: 500; color: var(--sub); font-size: 12px; }
.sbox.ready { border-style: solid; border-color: var(--main); }
.sbox.over, .sort-pool.over { border-style: solid; border-color: var(--main); background: var(--mainSoft); }
.sbox-in { display: flex; flex-wrap: wrap; gap: 6px; }
.sort-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; min-height: 52px; margin: 10px 0 4px; padding: 8px 4px; border: 2px dashed transparent; border-radius: 14px; }
.schip { border: 1.5px solid var(--line); background: var(--card); border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.sbox .schip { padding: 6px 9px; font-size: 14.5px; }
.schip.sel { border-color: var(--main); background: var(--mainSoft); color: var(--main); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.schip.ghost { opacity: .3; }
.schip.flying { position: fixed; z-index: 9500; pointer-events: none; transform: translate(-50%, -60%) scale(1.08); box-shadow: 0 10px 24px rgba(0,0,0,.25); border-color: var(--main); }
.schip.ok { border-color: #2f9e7e; background: #e6f6f0; color: #1d6b55; }
.schip.bad { border-color: var(--bad, #d64545); background: #fdecec; color: #b03030; }

/* ----- 연속 기록 카드 (2026-10-21) ----- */
.card.streak { padding: 14px 16px; background: linear-gradient(125deg, color-mix(in srgb, #ffb547 16%, var(--card)), var(--card) 60%); }
.sk-top { display: flex; align-items: center; gap: 14px; }
.sk-num { display: flex; align-items: center; gap: 2px; flex: none; }
.sk-num svg { width: 40px; height: 40px; filter: grayscale(1) opacity(.45); }
.streak.on .sk-num svg { filter: none; animation: skflick 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.sk-num b { font-size: 40px; line-height: 1; font-weight: 900; color: var(--text); letter-spacing: -1px; }
.streak.on .sk-num b { color: #f07a00; }
.sk-num span { align-self: flex-end; margin: 0 0 4px 2px; font-size: 15px; font-weight: 800; color: var(--sub); }
.sk-info { flex: 1; min-width: 0; }
.sk-info > b { display: block; font-size: 14px; }
.sk-info small { display: block; margin-top: 4px; font-size: 12px; color: var(--sub); }
.sk-week { display: flex; gap: 6px; margin-top: 6px; }
.skd { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--sub); font-weight: 600; }
.skd i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); font-style: normal; font-size: 12px; font-weight: 900; color: #fff; }
.skd.ok i { background: #ff8a1f; border-color: #ff8a1f; }
.skd.now i { border: 2px dashed #ff8a1f; }
.skd.now { color: #f07a00; }
.skd.off i { background: var(--field); border-color: var(--field); color: var(--sub); font-size: 10px; }
.skd.miss i { background: var(--field); }
.sk-cheer { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.5; }
@keyframes skflick { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.06) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .streak.on .sk-num svg { animation: none; } }
/* 반 순위 칸 5개(공부량·연속 / 게임 3개) */
.bcls { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--sub); }
.skd.rest i { background: var(--field); border-color: var(--field); color: var(--sub); font-size: 10px; }

/* ----- 연속 기록 축하 이펙트 (2026-10-21) ----- */
.skfx { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(circle at 50% 42%, rgba(70, 34, 6, .9), rgba(12, 8, 4, .96) 70%); backdrop-filter: blur(6px);
  animation: skfxIn .35s ease both; cursor: pointer; }
.skfx.out { animation: skfxOut .35s ease both; }
.skfx canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.skfx-box { position: relative; text-align: center; color: #fff; width: min(340px, 100%); }
.skfx-glow { position: absolute; left: 50%; top: 58px; width: 220px; height: 220px; margin-left: -110px; margin-top: -110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 170, 60, .55), rgba(255, 120, 0, 0) 65%); opacity: 0; animation: skfxGlow 2.4s .35s ease-in-out infinite; }
.skfx:not(.lit) .skfx-glow { background: radial-gradient(circle, rgba(255, 220, 160, .3), rgba(255, 200, 120, 0) 65%); }
.skfx-flame { position: relative; width: 116px; height: 116px; margin: 0 auto; transform-origin: 50% 85%; animation: skfxPop .9s cubic-bezier(.2, 1.6, .4, 1) both; }
.skfx-flame svg { width: 100%; height: 100%; filter: drop-shadow(0 0 18px rgba(255, 140, 0, .75)); }
.skfx:not(.lit) .skfx-flame svg { filter: grayscale(1) brightness(1.35) drop-shadow(0 0 10px rgba(255, 230, 190, .35)); }
.skfx.ignite .skfx-flame svg { animation: skfxIgnite 1.2s .25s ease both; }
.skfx.lit .skfx-flame { animation: skfxPop .9s cubic-bezier(.2, 1.6, .4, 1) both, skfxFlick 1.6s 1s ease-in-out infinite; }
.skfx-count { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin-top: 4px; }
.skfx-roll { display: inline-flex; flex-direction: column; height: 72px; overflow: hidden; }
.skfx-roll b { height: 72px; font-size: 68px; line-height: 72px; font-weight: 900; letter-spacing: -2px; animation: skfxRoll .55s .75s cubic-bezier(.5, -0.4, .3, 1.4) forwards; }
.skfx.lit .skfx-roll b { background: linear-gradient(180deg, #fff4c2, #ffb13b 60%, #ff7a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skfx-count em { font-style: normal; font-size: 22px; font-weight: 800; margin-bottom: 12px; opacity: .9; }
.skfx-label { font-size: 18px; font-weight: 800; letter-spacing: 1px; opacity: 0; animation: skfxUp .5s 1s ease forwards; }
.skfx-week { display: flex; justify-content: center; gap: 10px; margin: 18px 0 14px; opacity: 0; animation: skfxUp .5s 1.15s ease forwards; }
.skfx-d { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.skfx-d i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); font-style: normal; font-size: 15px; font-weight: 900; color: #fff; }
.skfx-d.ok i { background: #ff8a1f; border-color: #ff8a1f; }
.skfx-d.off i, .skfx-d.rest i { background: rgba(255, 255, 255, .12); border-color: transparent; font-size: 11px; color: rgba(255, 255, 255, .7); }
.skfx-d.miss i { background: rgba(255, 255, 255, .08); }
.skfx-d.today { color: #ffd27a; }
.skfx-d.today i { border: 2px dashed #ffb13b; color: transparent; animation: skfxFill .5s 1.7s cubic-bezier(.2, 1.8, .4, 1) forwards; }
.skfx-msg { font-size: 15px; font-weight: 700; color: #ffe2ad; min-height: 22px; opacity: 0; animation: skfxUp .5s 1.9s ease forwards; }
.skfx-ok { margin-top: 18px; min-width: 140px; background: #ff8a1f; border-color: #ff8a1f; color: #fff; opacity: 0; animation: skfxUp .4s 2.1s ease forwards; }
.skfx.calm *, .skfx.calm { animation-duration: .01s !important; animation-delay: 0s !important; }
@keyframes skfxIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes skfxOut { to { opacity: 0; transform: scale(1.03); } }
@keyframes skfxPop { 0% { transform: scale(.15) translateY(30px); opacity: 0; } 60% { transform: scale(1.18) translateY(-4px); opacity: 1; } 100% { transform: scale(1); } }
@keyframes skfxFlick { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.05, .97) rotate(-2deg); } 60% { transform: scale(.97, 1.05) rotate(2deg); } }
@keyframes skfxIgnite { 0%, 35% { filter: grayscale(1) brightness(1.35) drop-shadow(0 0 6px rgba(255, 230, 190, .3)); } 60% { filter: grayscale(0) brightness(1.6) drop-shadow(0 0 36px rgba(255, 170, 40, 1)); } 100% { filter: drop-shadow(0 0 18px rgba(255, 140, 0, .75)); } }
@keyframes skfxGlow { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; transform: scale(1.1); } 100% { opacity: .55; transform: scale(.95); } }
@keyframes skfxRoll { to { transform: translateY(-72px); } }
@keyframes skfxUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes skfxFill { 0% { transform: scale(.6); } 70% { transform: scale(1.25); } 100% { transform: scale(1); background: #ff8a1f; border: 2px solid #ff8a1f; color: #fff; box-shadow: 0 0 16px rgba(255, 150, 40, .8); } }
/* 불꽃 크기 단계: 10·20일마다 커지고 30일부터 아주 크게 (홈 카드 · 축하 이펙트) */
.streak.ft1 .sk-num svg { width: 46px; height: 46px; }
.streak.ft2 .sk-num svg { width: 54px; height: 54px; }
.streak.ft3 .sk-num svg { width: 66px; height: 66px; filter: drop-shadow(0 0 8px rgba(255, 140, 0, .55)); }
.skfx.ft1 .skfx-flame { width: 190px; height: 190px; }
.skfx.ft2 .skfx-flame { width: 270px; height: 270px; margin-bottom: -40px; }
.skfx.ft3 .skfx-flame { width: min(92vw, 60vh); height: min(92vw, 60vh); margin-bottom: calc(min(92vw, 60vh) * -0.3); }
.skfx.ft3 .skfx-count, .skfx.ft2 .skfx-count { position: relative; filter: drop-shadow(0 2px 6px rgba(70, 25, 0, .95)) drop-shadow(0 0 18px rgba(70, 25, 0, .7)); }
.skfx.ft2 .skfx-roll b, .skfx.ft3 .skfx-roll b { background: none; color: #fff; }
.skfx.ft1 .skfx-glow { width: 300px; height: 300px; margin: -150px 0 0 -150px; top: 95px; }
.skfx.ft2 .skfx-glow { width: 420px; height: 420px; margin: -210px 0 0 -210px; top: 135px; }
.skfx.ft3 .skfx-glow { width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; top: 30vh; background: radial-gradient(circle, rgba(255, 170, 60, .7), rgba(255, 100, 0, 0) 55%); }
.skfx.ft2 .skfx-flame svg { filter: drop-shadow(0 0 26px rgba(255, 140, 0, .9)); }
.skfx.ft3 .skfx-flame svg { filter: drop-shadow(0 0 30px rgba(255, 140, 0, .95)) drop-shadow(0 0 80px rgba(255, 90, 0, .7)); }
/* 레벨 업(10·20·30일…): 전 단계 크기(--from)로 나왔다가 1.1초쯤 화악 커짐 */
.skfx.levelup .skfx-flame, .skfx.levelup.lit .skfx-flame { animation: skfxLevel 2s cubic-bezier(.3, 1.2, .4, 1) both, skfxFlick 1.6s 2.1s ease-in-out infinite; }
@keyframes skfxLevel { 0% { transform: scale(calc(var(--from, 1) * .15)); opacity: 0; } 20% { transform: scale(calc(var(--from, 1) * 1.12)); opacity: 1; } 32%, 52% { transform: scale(var(--from, 1)); } 68% { transform: scale(1.14); } 82% { transform: scale(.96); } 100% { transform: scale(1); } }

/* =====================================================================
   학생 화면 테마: 종이 하늘 (원장님 고름 2026-10-21, 시안 tools/sky.html)
   body.sky = 로그인한 학생만 (선생님·원장·로그인 화면은 예전 그대로)
   매일 단어 = 낮 하늘(하늘색 종이 겹 + 구름, 해 노랑), 시험대비 = 저녁 하늘(남색 겹 + 노을 띠 + 별)
   글자: 영어 단어·숫자·글자 로고는 Fredoka(둥근), 한글은 Pretendard 그대로
   ===================================================================== */
body.sky {
  --bg: #f6fafc; --card: #ffffff; --text: #17384b; --sub: #5f7d8d; --line: #e2eef3; --field: #eef6fa;
  --main: #2a86bd; --main2: #1f6f9f; --mainSoft: #eaf5fb; --mint: #1d6fa3; --star: #e9a100; --frameLine: #e2eef3;
  --sky1: #8ccbe6; --sky2: #b2def0; --sky3: #d9eff8; --sun: #ffcf3f; --headInk: #17384b; --logoB: #1d6fa3;
  --en: "Fredoka", Pretendard, system-ui, sans-serif;
  background: var(--bg) !important; background-image: none !important;
}
body.sky[data-section="exam"] {
  --bg: #f4f5fa; --text: #1b2340; --sub: #66708f; --line: #e3e6f1; --field: #eef0f8; --frameLine: #e3e6f1;
  --main: #4a5fc4; --main2: #34469c; --mainSoft: #eef0fb; --star: #e9a100;
  --sky1: #1f2f57; --sky2: #2f437a; --sky3: #f0a868; --headInk: #eef1ff; --logoB: #ffd77a;
}
/* 하늘 머리: 바탕 sky1 + 아래 sky3 띠 + 구름(낮)·별(저녁), ::before = sky2 겹, ::after = 종이 물결 */
/* 겹 순서: 바탕(sky1, 저녁엔 별) → ::before 하늘 겹(sky2 · sky3 띠) → ::after 구름 + 아래 종이 물결 */
body.sky .topband { background: var(--sky1); }
body.sky .topband::before {
  content: ""; display: block; position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; opacity: 1;
  background:
    radial-gradient(85% 70px at 50% calc(100% + 4px), var(--sky3) 98%, transparent),
    radial-gradient(95% 130px at 50% calc(100% - 26px), var(--sky2) 98%, transparent);
}
body.sky .topband::after {
  content: ""; display: block; position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; opacity: 1;
  background:
    radial-gradient(circle 16px at calc(52% - 20px) 42px, #fff 96%, transparent),
    radial-gradient(circle 22px at 52% 33px, #fff 96%, transparent),
    radial-gradient(circle 14px at calc(52% + 22px) 44px, #fff 96%, transparent),
    radial-gradient(ellipse 50px 11px at 52% 52px, #fff 96%, transparent),
    radial-gradient(circle 9px at calc(72% - 12px) 100px, #fff 96%, transparent),
    radial-gradient(circle 13px at 72% 94px, #fff 96%, transparent),
    radial-gradient(circle 8px at calc(72% + 13px) 101px, #fff 96%, transparent),
    radial-gradient(ellipse 30px 7px at 72% 106px, #fff 96%, transparent),
    radial-gradient(75% 36px at 50% calc(100% + 14px), var(--bg) 98%, transparent);
}
body.sky .topband.tall::before {
  background:
    radial-gradient(85% 80px at 50% calc(100% + 4px), var(--sky3) 98%, transparent),
    radial-gradient(95% 170px at 50% calc(100% - 40px), var(--sky2) 98%, transparent);
}
body.sky[data-section="exam"] .topband::after {
  background:
    radial-gradient(circle 1.6px at 12% 22px, #fff 90%, transparent), radial-gradient(circle 1.2px at 34% 48px, #fff 90%, transparent),
    radial-gradient(circle 1.8px at 58% 18px, #fff 90%, transparent), radial-gradient(circle 1.2px at 76% 56px, #fff 90%, transparent),
    radial-gradient(circle 1.6px at 90% 26px, #fff 90%, transparent), radial-gradient(circle 1.2px at 22% 80px, #fff 90%, transparent),
    radial-gradient(circle 1.4px at 46% 92px, #fff 90%, transparent), radial-gradient(circle 1.2px at 66% 104px, #fff 90%, transparent),
    radial-gradient(75% 36px at 50% calc(100% + 14px), var(--bg) 98%, transparent);
}
body.sky header { color: var(--headInk); }
body.sky .logo { font-family: var(--en); font-weight: 500; letter-spacing: -.3px; }
body.sky .logo b { font-weight: 700; color: var(--logoB); letter-spacing: .3px; }
body.sky .logout { border-color: color-mix(in srgb, var(--headInk) 30%, transparent); background: color-mix(in srgb, #fff 45%, transparent); color: var(--headInk); }
body.sky[data-section="exam"] .logout { background: rgba(255, 255, 255, .12); }
/* 종이 카드: 얇은 선 + 아래 종이 두께 */
body.sky :is(.card, .summary, .seg) { border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 0 var(--line); }
body.sky[data-section="exam"] :is(.card, .summary, .seg) { border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 0 var(--line); }
body.sky .btn { border-radius: 999px; background: var(--main); box-shadow: 0 3px 0 var(--main2); font-weight: 700; }
body.sky .btn.ghost, body.sky .btn.soft { background: var(--mainSoft); color: var(--main); box-shadow: 0 3px 0 color-mix(in srgb, var(--main) 18%, var(--line)); } /* soft도 (2026-10-23 — 위 .btn 바탕에 덮여 '변형문제 만들기' 글자가 안 보였음) */
body.sky .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--main2); opacity: 1; }
body.sky .seg button.on, body.sky[data-section="exam"] .seg button.on { background: var(--main); color: #fff; border-radius: 12px; }
body.sky .chips button.on { background: var(--main); border-color: var(--main); color: #fff; }
body.sky .summary b { font-family: var(--en); font-weight: 600; }
body.sky .summary .hi b { color: var(--main); }
/* 영어 단어는 둥근 글꼴 */
body.sky :is(.qword:not(.ko), .flash .fc-en) { font-family: var(--en); font-weight: 600; letter-spacing: -.3px; }
body.sky .flash, body.sky[data-section="exam"] .flash { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 6px 0 color-mix(in srgb, var(--line) 80%, var(--bg)), 0 12px 0 color-mix(in srgb, var(--line) 40%, var(--bg)); }
body.sky .flash.flipped { border-color: var(--main); }
/* 아래 메뉴 */
body.sky nav { background: #fff; border-top: 1px solid var(--line); }
body.sky nav button.on { color: var(--main); font-weight: 700; }
body.sky nav.two button { border-color: var(--line); color: #7d95a3; }
body.sky nav.two button[data-tab="daily"].on { background: #eaf5fb; border-color: #2a86bd; color: #2a86bd; }
body.sky nav.two button[data-tab="exam"].on { background: #eef0fb; border-color: #4a5fc4; color: #4a5fc4; }
/* 연속 기록 카드: 해 노랑 칸 */
body.sky .card.streak { background: #fff; }
body.sky .sk-num b { font-family: var(--en); font-weight: 700; color: var(--text); }
body.sky .streak.on .sk-num b { color: #f07a00; }
body.sky .skd.ok i { background: var(--sun); border-color: var(--sun); color: var(--text); }
body.sky .skd.now i { border: 2px solid var(--main); }
body.sky .skd.now { color: var(--main); }
body.sky .cheer { background: var(--mainSoft); color: var(--text); }
body.sky .trialbar { background: rgba(23, 56, 75, .82); color: #fff; }
body.sky .kologo b { color: #e0a800; }
body.sky[data-section="exam"] .kologo b { color: #ffd77a; }
body.sky nav.two button.on { background: #eaf5fb; border-color: var(--main); color: var(--main); }
/* 로그인·가입·체험 시작 화면 (낮 하늘) */
body.sky .brand { color: var(--headInk); }
body.sky .brand .app { color: var(--sub); opacity: 1; }
body.sky .brand .motto { color: var(--main); }
body.sky .brand .emblem { box-shadow: 0 3px 0 rgba(23, 56, 75, .12), 0 10px 24px rgba(23, 56, 75, .12); }
/* 앱 아이콘(헬로스카이): 흰 액자 없이 아이콘만 */
.brand .emblem.appicon, body.sky .brand .emblem.appicon { background: none; box-shadow: none; width: 140px; height: 140px; }
.brand .emblem.appicon img { width: 140px; height: 140px; border-radius: 32px; box-shadow: 0 8px 24px rgba(23, 56, 75, .25); }
/* 긴 목록은 접어 둠 (원장님 2026-10-21 — 기본 접힘, 요약 줄을 누르면 펼침): 이틀 이상 안 한 학생 · 연속 순위 6위부터 */
details.fold { margin-top: 8px; border-top: 1px solid var(--line); }
details.fold > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 2px; cursor: pointer; font-weight: 700; font-size: 15px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary small { font-weight: 500; color: var(--sub); font-size: 13px; }
details.fold > summary::after { content: '▾'; margin-left: auto; color: var(--sub); transition: transform .15s; }
details.fold[open] > summary::after { transform: rotate(180deg); }
.brow .crown { width: 20px; height: 15px; margin-left: 5px; vertical-align: -1px; } /* 연속 순위 1~3등 왕관 */

/* 단어 목록 즐겨찾기 ☆ (2026-10-21) */
.witem .wfav { flex: none; width: 34px; height: 34px; margin: -6px -4px -6px -8px; padding: 6px; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.witem .wfav svg { width: 22px; height: 22px; fill: none; stroke: #b9c4c9; stroke-width: 1.8; stroke-linejoin: round; transition: transform .15s; }
.witem .wfav.on svg { fill: #ffcf3f; stroke: #e0a800; }
.witem .wfav:active svg { transform: scale(.85); }

/* 받은 유닛별 (2026-10-22): 학생 단어 목록 보기 전환 · 공부 범위 '유닛' 고르기 · 학생 상세 유닛 묶음 */
.sdir.wview { margin: 0 0 10px; }
.uchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.uchips button { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 12px; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--sub); cursor: pointer; }
.uchips button.on { border-color: var(--main); color: var(--main); background: var(--mainSoft); }
.uchips small { font-weight: 400; margin-left: 5px; }
details.ugroup { padding-left: 10px; border-left: 2px solid var(--line); }
details.ugroup summary { font-size: 14px; }
/* 단축키 창 (2026-10-22) */
.kbdmodal h3 { font-size: 13px; color: var(--sub); margin: 14px 0 4px; }
.kbdmodal kbd { font-family: inherit; font-size: 12px; font-weight: 700; border: 1.5px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 2px 8px; background: var(--card); white-space: nowrap; }
/* 자동 배포: 받은 유닛 먼저, 다음 유닛은 작게 (2026-10-22) */
.sturow .sgot b { color: var(--text); }
.sturow .sgot small { display: block; font-size: 12px; }
.mgot { font-size: 14px; margin: 2px 0 8px; color: var(--sub); }
.mgot b { color: var(--text); }

/* 채점 이상 신고 (2026-10-23): 오답·△ 밑에 작은 글자 버튼, 원장 홈 신고 줄 */
.rptbtn { display: block; margin: 6px 0 0 auto; padding: 2px 0; background: none; border: 0; font: inherit; font-size: 12px; color: var(--sub); text-decoration: underline; cursor: pointer; }
.rptbtn:disabled { text-decoration: none; cursor: default; }
.rptrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.rptrow:first-of-type { border-top: 0; }
.rptrow .t { flex: 1; min-width: 0; line-height: 1.5; }
.rptrow .t small { color: var(--sub); }
.rptrow .t span { display: block; font-size: 13px; }
.rptrow .ans { color: var(--main); }
.rptrow .acts { display: flex; gap: 6px; flex: none; }
.rptrow .acts .btn { width: auto; margin: 0; padding: 8px 12px; font-size: 13px; }

/* 공부 카드 오른쪽 위 즐겨찾기 ☆ (원장님 2026-10-23 — 폰에서도 카드 보며 즐겨찾기). 카드 밖 버튼이라 밀기·뒤집기와 안 겹침 */
.fcwrap { position: relative; }
.cardfav { position: absolute; top: 6px; right: 6px; z-index: 2; width: 48px; height: 48px; padding: 10px; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.cardfav svg { width: 28px; height: 28px; fill: none; stroke: #b9c4c9; stroke-width: 1.8; stroke-linejoin: round; transition: transform .15s; }
.cardfav.on svg { fill: #ffcf3f; stroke: #e0a800; }
.cardfav:active svg { transform: scale(.85); }

/* 덩어리 배열 끌어서 옮기기 (원장님 2026-10-23): 끄는 칩은 손가락을 따라오는 그림자, 원래 칩은 자리 표시로 흐리게 */
.xs-ans .xs-chip, .xs-pool .xs-chip { touch-action: none; }
.xs-chip.xs-hold { opacity: .35; border-style: dashed; }
.xs-ghost { position: fixed; z-index: 1000; pointer-events: none; margin: 0; box-shadow: 0 8px 20px rgba(20, 40, 80, .25); transform: scale(1.06); background: var(--card); border-color: var(--main); }

/* 변형문제 (2026-10-23): 선생님 확인 카드 · 학생 한 문제씩 */
.seg.n5 button { font-size: 12.5px; padding-left: 2px; padding-right: 2px; white-space: nowrap; letter-spacing: -.3px; }
.xq-list { display: flex; flex-direction: column; gap: 12px; }
.xq-e { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.xq-h { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.xq-h .x { margin-left: auto; }
.xq-q { font-weight: 800; margin: 8px 0; line-height: 1.5; }
.xq-given { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0; line-height: 1.7; font-size: 15px; background: var(--card); }
.xq-text { background: var(--field); border-radius: 10px; padding: 12px; line-height: 1.75; font-size: 15px; margin: 8px 0; }
.xq-text u, .xq-given u { text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 700; }
.xq-td summary { cursor: pointer; color: var(--sub); font-size: 13px; }
.xq-chs { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.xq-chs button { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.xq-chs button.ans { border-color: var(--ok); background: var(--okSoft); font-weight: 800; }
.xq-why { font-size: 13px; color: var(--sub); margin: 6px 0 0; }
.xq-set label { display: block; margin: 14px 0 6px; font-weight: 800; font-size: 13px; color: var(--sub); }
.xq-chips button small { opacity: .7; font-size: 11px; }
.xq-go { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.xq-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.xq-opt { text-align: left; border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; line-height: 1.45; color: var(--text); cursor: pointer; }
.xq-opt:disabled { cursor: default; }
.xq-opt.right { border-color: var(--ok); background: var(--okSoft); font-weight: 800; animation: fx-pop .32s ease-out; }
.xq-opt.wrong { border-color: var(--bad); background: var(--badSoft); animation: fx-shake .36s ease-in-out; }
#xqV .verdict { margin-top: 12px; }
#xqV .verdict p { margin: 6px 0 0; font-weight: 500; line-height: 1.5; }
.xq-nav { justify-content: space-between; align-items: center; margin-top: 12px; }
.xq-score { font-size: 18px; } .xq-score b { font-size: 34px; font-family: Fredoka, Pretendard, sans-serif; }
@media (prefers-reduced-motion: reduce) { .xq-opt { animation: none !important; } }

/* 변형문제 선생님께 보내기 (2026-10-23) */
.xq-nav { flex-wrap: wrap; gap: 8px; }
.xq-ask { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.qarow { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.qarow:first-of-type { border-top: 0; }
.qarow .qa-q { margin: 0; font-weight: 700; }
.qarow .qa-note { margin: 0; color: var(--text); background: var(--field); border-radius: 8px; padding: 6px 10px; }
.qask { display: flex; flex-direction: column; gap: 8px; }
.qask .qa-note { margin: 0; background: var(--field); border-radius: 8px; padding: 8px 12px; }
.qask .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.qask .acts .btn { width: auto; flex: 0 0 auto; padding-left: 18px; padding-right: 18px; }
.qask-q { display: flex; flex-direction: column; gap: 10px; }
.qask-q .xq-chs { display: flex; flex-direction: column; gap: 4px; }
.qask-q .xq-chs button { text-align: left; pointer-events: none; }
.qask-q .qa-orig > summary { cursor: pointer; font-size: 13px; color: var(--muted, #667); }
.qarow .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* 시험대비 목록 즐겨찾기 ☆ (2026-10-23) */
.xitem .xlfav svg { width: 22px; height: 22px; fill: none; stroke: #b9c4c9; stroke-width: 1.8; stroke-linejoin: round; }
.xitem .xlfav.on svg { fill: #ffcf3f; stroke: #e0a800; }
.xq-piece { margin: 10px 0 2px; font-size: 15px; } /* 변형문제 긴 본문의 부분 머리 (2026-10-23) */

/* 지문·변형문제 단어 꾹 → 내 단어장 (2026-10-23) */
.xsents, .xq-text, .xq-given { -webkit-touch-callout: none; }
.wpick-bg { position: fixed; inset: 0; z-index: 900; overscroll-behavior: contain; background: rgba(15, 25, 45, .35); display: flex; align-items: flex-end; justify-content: center; }
.wpick { background: var(--card); width: min(520px, 100%); border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); }
.wpick h3 { margin: 0; }
.wpick .wp-s { margin: 0; color: var(--sub); font-size: 14px; line-height: 1.6; }
.wpick .wp-s b { color: var(--text); background: #fff1b8; padding: 0 2px; border-radius: 3px; }
.wpick label { font-size: 13px; font-weight: 800; color: var(--sub); }
@media (min-width: 700px) { .wpick-bg { align-items: center; } .wpick { border-radius: 20px; } }
.xq-opt.off { cursor: default; } /* 채점 뒤 (선지 꾹으로 단어 넣기는 됨) */

/* 공부 카드 버튼: 미는 방향 표시 « 몰라요 · 알아요 » (원장님 2026-10-23) */
.fc-dir { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.fc-dir .arr { font-size: 1.5em; line-height: 1; font-weight: 900; margin-top: -2px; }

/* 세트 화면 변형문제 결과 (2026-10-23) */
.xqtab-wrap { overflow-x: auto; margin: 6px 0 10px; }
.xqtab { border-collapse: collapse; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xqtab th, .xqtab td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.xqtab thead th { font-size: 12px; color: var(--sub); font-weight: 800; }
.xqtab tbody th { text-align: left; font-weight: 800; position: sticky; left: 0; background: var(--card); }
.xqtab td.ok { color: var(--ok); font-weight: 800; }
.xqtab td.bad { color: var(--bad); background: var(--badSoft); font-weight: 800; }
.xqtab td.na { color: var(--sub); }
.xqhard .xqh { border-top: 1px solid var(--line); padding: 8px 0; }
.xqhard .xqh summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.xqhard .xqh summary .lv { margin-left: auto; }
.xqhard .xq-chs button { cursor: default; }

/* 줄바꿈은 띄어쓰기에서만 (원장님 2026-10-24 — 소제목 끝 한 글자만 다음 줄로 내려가던 것):
   한글 낱말 가운데서 끊지 않고(keep-all), 아주 긴 영어만 칸을 넘을 때 끊음. 제목·소제목은 줄 길이를 고르게(balance) 해서 한 글자·한 낱말만 남지 않게 */
body { word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, h4, summary, .xsechead, .xsec-e, .xqh, .xsch, .card > b, .card > strong, .ttl, .title { text-wrap: balance; }
p, li, label, .hint, .verdict, .toast, .xq-q { text-wrap: pretty; }

/* 하늘 다시 (원장님 2026-10-24): 낮 하늘은 층 대신 부드러운 그라데이션, 저녁 하늘 별은 반짝이는 별 모양 */
body.sky .topband { background: linear-gradient(180deg, var(--sky1) 0%, color-mix(in srgb, var(--sky1) 45%, var(--sky2)) 38%, var(--sky2) 68%, var(--sky3) 100%); }
body.sky .topband::before, body.sky .topband.tall::before { background: none; }
/* 밤하늘: 위는 깊은 남색 → 아래 보랏빛 → 노을, 그 위에 은하수 띠·보랏빛·푸른 빛 번짐 (단색 면이 안 보이게) */
body.sky[data-section="exam"] .topband { background:
  radial-gradient(60% 90% at 14% 8%, rgba(132, 96, 220, .38), transparent 70%),
  radial-gradient(45% 80% at 88% 18%, rgba(70, 160, 230, .30), transparent 70%),
  radial-gradient(55% 60% at 62% 100%, rgba(255, 150, 120, .35), transparent 75%),
  linear-gradient(162deg, transparent 30%, rgba(190, 200, 255, .10) 44%, rgba(255, 255, 255, .16) 50%, rgba(190, 200, 255, .10) 56%, transparent 70%),
  linear-gradient(180deg, #0c1430 0%, #17244a 30%, #2a3570 58%, #5b4a8c 78%, #c27a86 92%, var(--sky3) 100%); }
/* 별: ::before = 반짝이는 별(✦ 모양, 빛 번짐) 두 무리가 번갈아 깜빡, ::after = 작은 점 별 + 아래 종이 물결 */
body.sky[data-section="exam"] .topband::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='130'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E%3Cpath id='s' d='M0-7C.9-1.2 1.2-.9 7 0 1.2.9.9 1.2 0 7-.9 1.2-1.2.9-7 0-1.2-.9-.9-1.2 0-7Z' fill='%23fff'/%3E%3C/defs%3E%3Cg%3E%3Ccircle cx='62' cy='30' r='9' fill='url(%23g)'/%3E%3Cuse href='%23s' x='62' y='30'/%3E%3Ccircle cx='238' cy='22' r='7' fill='url(%23g)'/%3E%3Cuse href='%23s' x='238' y='22' transform='translate(238 22) scale(.7) translate(-238 -22)'/%3E%3Ccircle cx='410' cy='58' r='10' fill='url(%23g)'/%3E%3Cuse href='%23s' x='410' y='58' transform='translate(410 58) scale(1.15) translate(-410 -58)'/%3E%3C/g%3E%3C/svg%3E") top center / 520px 130px repeat-x;
  animation: skyTwinkleA 2.6s ease-in-out infinite;
}
body.sky[data-section="exam"] .topband::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='130'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.5'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E%3Cpath id='s' d='M0-5C.7-.9.9-.7 5 0 .9.7.7.9 0 5-.7.9-.9.7-5 0-.9-.7-.7-.9 0-5Z' fill='%23fff'/%3E%3C/defs%3E%3Ccircle cx='150' cy='62' r='7' fill='url(%23g)'/%3E%3Cuse href='%23s' x='150' y='62'/%3E%3Ccircle cx='330' cy='96' r='6' fill='url(%23g)'/%3E%3Cuse href='%23s' x='330' y='96'/%3E%3Ccircle cx='480' cy='18' r='6' fill='url(%23g)'/%3E%3Cuse href='%23s' x='480' y='18'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='24' cy='84' r='1.3' opacity='.8'/%3E%3Ccircle cx='110' cy='16' r='1.1' opacity='.7'/%3E%3Ccircle cx='196' cy='104' r='1.2' opacity='.7'/%3E%3Ccircle cx='286' cy='50' r='1.4' opacity='.85'/%3E%3Ccircle cx='366' cy='24' r='1.1' opacity='.7'/%3E%3Ccircle cx='452' cy='92' r='1.3' opacity='.8'/%3E%3C/g%3E%3C/svg%3E") top center / 520px 130px repeat-x,
    radial-gradient(75% 36px at 50% calc(100% + 14px), var(--bg) 98%, transparent);
}
@keyframes skyTwinkleA { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { body.sky[data-section="exam"] .topband::before, body.sky[data-section="exam"] .topband::after { animation: none; } }
/* 요약문 (변형문제 요약문 완성 — 지문 아래, 2026-10-24) */
.xq-given.xq-sum { background: var(--mainSoft); border-style: dashed; }
.xq-given.xq-sum b { display: inline-block; margin-right: 6px; font-size: 13px; color: var(--main); }
/* 덩어리 배열 '단어' 단계 (원장님 2026-10-24 — 말풍선 칸이 보기 불편): 위 칸은 문장처럼 이어 읽히게(테두리 없이 글자만), 아래 낱말은 작고 납작한 낱말 조각 */
.xs-ans.words { gap: 2px 8px; padding: 12px 14px; align-items: baseline; }
.xs-ans.words .xs-chip { border: 0; background: none; padding: 2px 0; border-radius: 0; font-size: 18px; font-family: var(--en, inherit); border-bottom: 2px solid color-mix(in srgb, var(--main) 35%, transparent); }
.xs-pool.words { gap: 6px; }
.xs-pool.words .xs-chip { border: 0; border-radius: 6px; padding: 5px 9px; background: var(--field); font-size: 17px; font-family: var(--en, inherit); box-shadow: 0 1px 0 var(--line); }

/* ===== 학생 시험대비 새 구조 (2026-10-25 원장님 — 범위 카드 → 단계 타일 → 활동, 실전은 합쳐서. 시안 tools/exam-mock2.html) ===== */
.xband { position: relative; overflow: hidden; background: linear-gradient(135deg, #2a3570, #4a5fc4 70%, #5b6fd6); color: #fff; border-radius: 18px; padding: 16px 18px 14px; margin-bottom: 12px; box-shadow: 0 8px 24px rgba(42, 53, 112, .28); }
.xband::after { content: ''; position: absolute; right: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), rgba(255,255,255,0) 70%); pointer-events: none; }
.xband.final { background: linear-gradient(135deg, #7a2d8f, #c0396b 70%, #e2566a); box-shadow: 0 8px 24px rgba(122, 45, 143, .28); }
.xband .bk { font-size: 12px; font-weight: 700; opacity: .85; }
.xband .bk .pill { background: rgba(255,255,255,.22); color: #fff; padding: 2px 8px; font-size: 11px; margin-left: 2px; }
.xband h2 { margin: 3px 0 4px; font-size: 21px; color: #fff; display: flex; align-items: center; gap: 8px; }
.xband h2 .ic { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.xband .meta { font-size: 12px; opacity: .88; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.xband .meta .pill { background: #ffd43b; color: #1f2d36; padding: 2px 8px; font-size: 11px; font-weight: 800; }
.xband .rate { background: rgba(255,255,255,.22); height: 8px; margin: 10px 0 6px; }
.xband .rate.ok i { background: #ffd43b; }
.xtodo2 { margin: 0 0 12px; background: #fff8e1; border: 1px solid #ffe9a8; }
.xtodo2 b { color: #a86a00; }
.xsec { font-size: 12px; font-weight: 800; color: var(--sub); margin: 14px 4px 6px; letter-spacing: .3px; }
/* 범위 카드 */
.xrng { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; font-family: inherit; color: var(--text); transition: transform .12s; }
.xrng:active { transform: scale(.985); }
.xrng .ic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; }
.xrng .ic.tb { background: #e7ecff; } .xrng .ic.mk { background: #fff1d6; }
.xrng .t { flex: 1; min-width: 0; }
.xrng .t b { display: block; font-size: 16px; font-weight: 800; }
.xrng .t small { display: block; font-size: 12px; color: var(--sub); margin-top: 2px; line-height: 1.4; }
.xrng .rate { height: 6px; margin-top: 7px; }
.xrng .rate.ok i { background: #4a5fc4; border-radius: 99px; }
.xrng .pc { flex: none; font-family: var(--en); font-weight: 700; font-size: 19px; color: #4a5fc4; min-width: 44px; text-align: right; }
.xrng.done .pc { color: #2d8a5e; } .xrng.done .rate.ok i { background: #3ba877; } .xrng.done .ic { filter: grayscale(.2); }
.xrng .chev { color: #b0b8c9; font-size: 20px; }
.xrng.mini { border: 0; background: var(--field); border-radius: 12px; padding: 9px 10px; gap: 10px; margin-top: 6px; }
.xrng.mini .ic { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }
.xrng.mini .t b { font-size: 14px; } .xrng.mini .rate { margin-top: 4px; height: 5px; } .xrng.mini .pc { font-size: 16px; }
.xrlist { margin-top: 10px; }
/* 실전 카드 */
.xfinal { border: 2px solid #c0396b; background: linear-gradient(135deg, #fff0f4, #fff); }
.xfinal h3 { margin: 0 0 4px; font-size: 16px; }
.xfinal p { margin: 0 0 12px; font-size: 13px; color: var(--sub); }
.xfinal .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.xfinal .btns button { border: 0; background: #c0396b; color: #fff; font-family: inherit; font-weight: 800; padding: 13px 4px; border-radius: 12px; font-size: 14px; cursor: pointer; box-shadow: 0 4px 12px rgba(192, 57, 107, .25); }
.xfinal .btns button.o { background: #fff; color: #c0396b; border: 1.5px solid #c0396b; box-shadow: none; }
.xfinal .btns button:only-child { grid-column: 1 / -1; }
/* 단계 타일 = 탭 */
.xsteps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-bottom: 10px; }
.xsteps.n2 { grid-template-columns: repeat(2, 1fr); } .xsteps.n3 { grid-template-columns: repeat(3, 1fr); } .xsteps.n4 { grid-template-columns: repeat(4, 1fr); }
.xsteps button { position: relative; border: 1.5px solid var(--line); background: var(--card); border-radius: 13px; padding: 9px 2px 7px; font-family: inherit; font-size: 11px; font-weight: 700; color: var(--sub); cursor: pointer; line-height: 1.2; }
.xsteps button b { display: block; font-family: var(--en); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.xsteps button em { display: block; font-style: normal; font-size: 10px; opacity: .75; min-height: 12px; }
.xsteps button.done { background: #e4f5ec; border-color: #e4f5ec; color: #2d8a5e; } .xsteps button.done b { color: #2d8a5e; }
.xsteps button.on { background: #4a5fc4; border-color: #4a5fc4; color: #fff; box-shadow: 0 4px 12px rgba(74, 95, 196, .3); } .xsteps button.on b, .xsteps button.on em { color: #fff; opacity: 1; }
.xsteps button.on::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; background: #4a5fc4; transform: translateX(-50%) rotate(45deg); }
.xband.final + .xsteps button.on { background: #c0396b; border-color: #c0396b; box-shadow: 0 4px 12px rgba(192, 57, 107, .3); } .xband.final + .xsteps button.on::after { background: #c0396b; }
.xnext h2 .xtitle { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.xnext h2 .chev { color: #3b6cf6; font-size: 22px; }
.xrng.mini.fin { background: linear-gradient(135deg, #fff0f4, #fff); border: 1.5px solid #e8b4c4; }
.xrng.mini.fin .ic { background: #ffe1ea; } .xrng.mini.fin .t b { color: #c0396b; }
.xranges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; margin: 8px 0 0; }
.xranges .mini { color: var(--sub); font-size: 12px; }
.xranges .pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 4px 9px; }
.xranges .pill small { font-size: 11px; opacity: .75; }
.xranges .link.sm { margin-left: auto; }
.xranges button.pill { border: 0; font-family: inherit; cursor: pointer; }
.xunk { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--warnSoft); }
.xunk p { margin: 0 0 8px; line-height: 1.5; word-break: break-word; }
.xunk .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn.sm { padding: 7px 12px; font-size: 13px; width: auto; }

/* 선생님 시험대비 정리 (2026-10-25): 할 일 칩 · 세트 카드 범위 알약 · 보관함 상태 뱃지 · 범위별 진행 표 */
.xtodos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.xtodos button { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 13px; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; }
.xtodos button.warn { border-color: #f2c14e; background: #fff8e1; color: #8a5a00; } .xtodos button.bad { border-color: #f0a3a3; background: #fff0f0; color: var(--bad); }
.xrpills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.xrpills span { font-size: 11px; font-weight: 700; color: #3b4f9c; background: #e7ecff; border-radius: 999px; padding: 3px 9px; }
.xlibh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; } .xlibh h2 { margin: 0; }
.xbs { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px; }
.xb { font-size: 11px; font-weight: 700; color: var(--sub); background: var(--field); border-radius: 6px; padding: 2px 6px; }
.xb.ok { color: var(--ok); background: var(--okSoft); } .xb.part { color: #8a5a00; background: #fff8e1; }
.xrname { margin: 2px 0 10px; } .xrname b { color: #3b4f9c; }
.xrt { display: grid; grid-template-columns: 1.6fr .6fr 1fr 1fr .9fr; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.xrt:last-child { border: 0; } .xrt.head { font-size: 11px; color: var(--sub); padding: 4px 0; }
.xrt b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xrt .rate { margin: 0; } .xrt .rate i { background: var(--main); opacity: 1; } .xrt small { color: var(--sub); font-size: 11px; }
.xrt .ok { color: var(--ok); font-weight: 700; } .xrt.fin { background: #fff0f4; margin: 4px -8px 0; padding: 10px 8px; border-radius: 10px; }
.xstu small.xrp { color: #3b4f9c; }
.xstu.hasr { border-bottom: 0; padding-bottom: 2px; }
.xstu-r { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 0 0 10px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--sub); }
.xstu-r .xrp { color: #3b4f9c; font-weight: 700; }
.xstu-r:last-child { border: 0; }

/* 운영자 '체험 링크 방문' 막대 (요일별 · 최근 2주 날짜별) */
.tvbars { display: grid; gap: 4px; align-items: end; margin: 10px 0 4px; }
.tvbars.wk { grid-template-columns: repeat(7, 1fr); }
.tvbars.days { grid-template-columns: repeat(14, 1fr); gap: 2px; margin-top: 14px; }
.tvbars div { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--sub); }
.tvbars b { font-size: 12px; color: var(--text); min-height: 15px; }
.tvbars.days b { font-size: 10px; min-height: 13px; }
.tvbars i { display: block; width: 100%; max-width: 28px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--main); }
.tvbars.days i { max-width: 14px; }
.tvbars .we i { background: var(--field); }
.tvbars .we span { opacity: .6; }

/* 학원 관리: 메뉴 하나 → 누르면 그 항목만 (원장님 2026-10-25) */
.setmenu .srow { padding: 13px 0; }
.setmenu h2 { margin-bottom: 4px; }
.setback { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; }
.setback .link { font-size: 15px; padding: 6px 0; margin: 0; }
.setback b { font-size: 17px; }
body.staff #main .setback { column-span: all; }
.setback.libback { margin: 0 0 12px; }
.setback.libback .btn { width: auto; margin: 0; padding: 8px 16px; font-size: 15px; }

/* 매일 단어 공부 범위 칸: 이름을 먼저 크게, 숫자는 그 아래 '15개' (원장님 2026-10-25 — 숫자만 크고 뭔지 안 보임) */
.srange.lab button { min-height: 0; padding: 11px 6px 10px; gap: 3px; }
.srange.lab span { order: 0; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.25; }
.srange.lab b { order: 1; font-size: 19px; font-weight: 700; color: var(--main); line-height: 1.1; }
.srange.lab b i { font-style: normal; font-size: 13px; font-weight: 600; margin-left: 1px; }
.srange.lab small { order: 2; font-size: 11.5px; color: var(--sub); font-weight: 600; }
.srange.lab button.on span, .srange.lab button.on b, .srange.lab button.on small { color: #fff; }
/* 배열: 큰 칸 셋(오늘 필수·다음 새 단어·전체) + 나머지는 작은 칩 한 줄 (원장님 2026-10-25 '구분이 너무 많아') */
.srange.lab.n2 { grid-template-columns: repeat(2, 1fr); } .srange.lab.n1 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .srange.lab { grid-template-columns: repeat(3, 1fr); } .srange.lab.n2 { grid-template-columns: repeat(2, 1fr); } }
.srange2 { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.srange2 select { flex: 1; min-width: 0; height: 46px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--sub); font: inherit; font-size: 15px; font-weight: 600; padding: 0 14px; }
.srange2.on select { border-color: var(--main); background: var(--main); color: #fff; }
.srange2 .link { margin: 0; padding: 0; white-space: nowrap; }

/* 중등 내신 (2026-10-26): 본문/대화문/문법/내신 문제 칸 · 대화문 말하는 사람 · 핵심 문법 */
.xsteps.xparts button b { font-size: 15px; }
.xsteps.sub { margin-top: 8px; }
.xsteps.sub button { padding: 8px 2px 7px; }
.xsteps.sub button b { font-size: 14px; }
.xsent .who { display: inline-block; color: var(--main); font-weight: 800; margin-right: 4px; }
.xsent .who::after { content: ":"; }
.xgram { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.xgram:last-of-type { border: 0; }
.xgram b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--main); color: #fff; display: grid; place-items: center; font-size: 14px; }
.xw2 textarea { width: 100%; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; resize: vertical; }
/* 중등 내신 서술형 (2026-10-26): 답 쓰는 칸, 선생님 세트 화면 틀린 답 */
.xq-write { display: flex; gap: 8px; margin-top: 12px; }
.xq-write input { flex: 1; min-width: 0; font-size: 16px; }
.wa { padding: 10px 0; border-bottom: 1px solid var(--line); }
.wa:last-child { border: 0; }
.wa .xq-q { margin: 0 0 4px; font-size: 14px; }
.wa .wa-a { margin: 2px 0; font-size: 14px; }
.wa .wa-a b { color: var(--bad); }
.xq-e textarea { width: 100%; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-top: 4px; }
@media print {
  .pquiz { font-size: 12.5px; line-height: 1.5; }
  .pquiz .pq { break-inside: avoid; margin: 0 0 14px; padding-top: 4px; }
  .pquiz .pqh { font-weight: 700; margin-bottom: 4px; }
  .pquiz .pqs { color: #555; font-weight: 500; font-size: 11px; }
  .pquiz .pqg { border: 1px solid #333; padding: 6px 8px; margin: 4px 0; }
  .pquiz .pqt { border: 1px solid #999; padding: 6px 8px; margin: 4px 0; }
  .pquiz .pqt u { text-decoration: underline; font-weight: 600; }
  .pquiz .pqc { list-style: none; padding: 0; margin: 4px 0 0; }
  .pquiz .pqc li { padding: 1px 0 1px 4px; }
  .pquiz .pqa { margin-top: 8px; }
  .pquiz .pqk { list-style: none; padding: 0; margin: 10px 0 0; }
  .pquiz .pqk li { padding: 4px 0; break-inside: avoid; }
  .pquiz .pqk span { color: #444; font-size: 11.5px; }
}

/* 선생님 시험대비 메인 두 구역 (2026-10-26): 시험대비(보낸 세트) · 지문 보관함 */
.xhome { display: flex; flex-direction: column; gap: 18px; }
.xsec { min-width: 0; }
.xsech { display: flex; align-items: center; gap: 10px; margin: 2px 4px 10px; }
.xsech h2 { margin: 0; font-size: 21px; font-weight: 900; color: #1f2747; letter-spacing: -.3px; }
.xsech .lv { font-weight: 600; }
.xsech .lv { flex: 1; }
.xsec #xNewBtn { margin: 0 0 12px; width: 100%; }
.xsec .xempty { margin: 6px 4px 14px; }
/* 두 구역 모두 밝은 판 안에 제목 — 하늘 띠 위에서 제목이 안 보이던 것. 보관함 판은 연보라로 구분 */
.xsec { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 14px; } /* 불투명 — 하늘 띠와 겹쳐 제목이 흐렸음 (원장님 2026-10-26) */
.xsec-lib { background: #eef0fc; border-color: #d9dcf3; }
.xsec .card, .xsec .xset { box-shadow: 0 1px 2px rgba(20, 30, 70, .06); }
.xsec-sets > .card:last-child, .xsec-sets > .xsetw:last-child { margin-bottom: 0; }
.xsec-lib .xlibcard { margin-bottom: 0; }
.xsec-lib .srow:last-of-type { border-bottom: 0; }
@media (min-width: 960px) {
  body.staff #main > .xhome { column-span: all; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 22px; align-items: start; }
  body.staff #main:has(.xhome) { column-count: 1; }
  .xsec-lib { position: sticky; top: 16px; }
}
/* 시험대비 메인: 밤하늘 띠(210px·그라데이션)는 그대로 두고 두 판만 띠 아래로 내림 (원장님 2026-10-26) — 머리글 87px 아래 띠 끝 210px + 여백 */
#main > .xhome { margin-top: 110px; }
@media (max-width: 959px) { #main > .xhome { margin-top: 124px; } }

/* 시험대비에 넣기 (2026-10-26) */
.xputs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.xput { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; border: 2px solid transparent; margin: 0; }
.xput.on { border-color: var(--main); background: var(--mainSoft); }
.xput:disabled { opacity: .55; cursor: default; }
.xput-t { display: flex; align-items: center; gap: 8px; } .xput-t b { flex: 1; font-size: 16px; }
#xPutNew { width: 100%; margin: 0 0 12px; }
#xPutGo { width: 100%; margin-bottom: 14px; }
body.staff #main > .xputs, body.staff #main > #xPutGo { column-span: all; }
/* 중등·고등 칩 + 학년 묶음 (2026-11-14) */
.xputlv { margin: 0 0 12px; }
.xputg { margin: 8px 2px 0; font-size: 15px; font-weight: 800; } .xputg:first-child { margin-top: 0; } .xputg small { font-weight: 500; color: var(--sub); font-size: 13px; }
body.staff #main > .xputlv { column-span: all; }

/* 지문 보관함: 출판사 · 학년 묶음 (2026-10-26) */
.libpub { display: flex; align-items: baseline; gap: 8px; margin: 16px 2px 4px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.libpub b { font-size: 15px; }
.srow.libin { padding-left: 12px; }

/* 내 단어 추가: 칸 위 작은 이름 (회색 예시 글자 대신) */
.addrow .addf { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.addrow .addf input { margin: 0; }
@media (min-width: 600px) { .addrow .btn { align-self: end; } }

/* 시험지 PDF 2단 (원장님 2026-10-26 예시 양식). 2026-10-28 원장님 "너무 빽빽" — 줄 간격 1.6·글 9.5pt·문제 사이 28px·선지 사이·글 상자 안쪽을 넓힘. 화면 밖에서 재서 쪽을 나누므로 화면·인쇄 같은 크기 */
#printArea.pzmeasure { display: block !important; position: absolute; left: -10000px; top: 0; visibility: hidden; }
#printArea .pzpage { width: 210mm; height: 296.5mm; padding: 14mm; /* 안쪽 182 × 268.5mm — 여백을 쪽 안에 둠(@page 여백 0) */ display: flex; flex-direction: column; overflow: hidden; color: #1d2730; background: #fff;
  font-family: "Pretendard", "Malgun Gothic", sans-serif; font-size: 9.5pt; line-height: 1.6; word-break: keep-all; break-after: page; page-break-after: always; box-sizing: border-box; }
#printArea .pzpage:last-child { break-after: auto; page-break-after: auto; }
#printArea .pzbrand { font-family: "Fredoka", "Pretendard", sans-serif; font-weight: 600; color: #293d4b; }
#printArea .pzbrand b { color: var(--pz2, #5fb8a8); }
#printArea .pzbrand small { font-family: "Pretendard", sans-serif; font-size: 6pt; font-weight: 600; color: #293d4b; margin-left: 4px; letter-spacing: .02em; }
#printArea .pzrun { display: flex; align-items: baseline; gap: 26mm; padding-bottom: 3px; border-bottom: 1.5px solid #8fd0c4; font-size: 9.5pt; font-weight: 600; flex: none; }
#printArea .pzrun .pzbrand { font-size: 14pt; }
#printArea .pztitle { text-align: center; padding: 10px 0 4px; flex: none; }
#printArea .pztitle h1 { margin: 0; font-size: 18pt; font-weight: 700; }
#printArea .pztitle h1 .pzbrand { font-size: 20pt; }
#printArea .pztitle p { margin: 4px 0 6px; font-size: 9pt; color: #555; }
#printArea .pztitle table { margin: 0 auto; border-collapse: collapse; font-size: 9.5pt; }
#printArea .pztitle th, #printArea .pztitle td { border: 1px solid #b9c3c9; padding: 2px 10px; height: 14px; }
#printArea .pztitle th { background: #eef3f5; font-weight: 600; width: 56px; }
#printArea .pztitle td { width: 120px; }
#printArea .pztitle td.pzsc { width: 60px; text-align: right; }
#printArea .pzbody { flex: 1; min-height: 0; display: flex; margin-top: 12px; }
#printArea .pzcol { flex: 1; min-width: 0; clip-path: inset(0 -6mm); } /* 위아래만 자름 — 선지를 한 줄로 맞추려고 오른쪽 여백을 조금 쓰는데 overflow:hidden 이면 오른쪽 단 끝 글자가 잘렸음 (2026-11-06) */
#printArea .pzcol:first-child { padding-right: 6mm; border-right: 1px solid #333; }
#printArea .pzcol:last-child { padding-left: 6mm; }
#printArea .pzq { margin: 0; }
#printArea .pzh { font-size: 10pt; font-weight: 700; margin-bottom: 9px; line-height: 1.45; white-space: pre-line; } /* 발문 안 줄바꿈(<조건>·두 문장)을 살림 */
#printArea .pzh > b { color: var(--pz1, #2a9d8f); }
#printArea .pzh small { font-size: 7.5pt; font-weight: 400; color: #777; }
#printArea .pzg { border: 1.2px solid #333; padding: 7px 10px; margin: 0 0 10px; text-align: justify; }
#printArea .pzt { border: 1px solid #c4cbd0; padding: 8px 10px; margin: 0 0 10px; text-align: justify; }
#printArea .pzblk { margin-top: 2.2mm; } /* 순서 문제 (A)(B)(C) 덩어리 사이 (원장님 2026-10-27) */
#printArea .pzex { margin-top: 4px; }
#printArea .pzxp { font-size: 8.6pt; line-height: 1.45; margin-bottom: 5px; text-align: justify; }
#printArea .pzxp > b { color: var(--pz1, #2a9d8f); }
#printArea .pzxp .a { font-weight: 700; }
#printArea .pzxp small { font-size: 7pt; color: #777; }
#printArea .pzc { display: grid; grid-template-columns: 1fr; gap: 5px 8px; padding-left: 2px; }
#printArea .pzc > span { padding-left: 1.25em; text-indent: -1.25em; }
#printArea .pzc.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
#printArea .pzc.c3 { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 16px; }
#printArea .pzc.c5 { grid-template-columns: repeat(5, auto); justify-content: start; column-gap: 12px; }
#printArea .pza { border-bottom: 1px solid #999; padding: 18px 0 2px; }
#printArea .pzfoot { flex: none; position: relative; height: 14mm; display: flex; align-items: center; justify-content: center; font-size: 8pt; color: #555; }
#printArea .pzfoot img { position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 12mm; width: 12mm; object-fit: contain; }
#printArea .pzkh { font-size: 13pt; font-weight: 600; margin: 12px 0 8px; flex: none; }
#printArea .pzkey { width: 100%; border-collapse: collapse; table-layout: fixed; flex: none; }
#printArea .pzkey th, #printArea .pzkey td { border: 1px solid #c4cbd0; text-align: center; padding: 2px 0; }
#printArea .pzkey .pzkn th { background: var(--pz4, #293d4b); color: #fff; font-size: 7.5pt; font-weight: 600; }
#printArea .pzkey td { color: var(--pz5, #d32f2f); font-size: 16pt; font-weight: 700; height: 20px; }
#printArea .pzkey td.w { font-size: 7pt; font-weight: 600; line-height: 1.2; word-break: break-all; }
@media print { #printArea .pzpage { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* 시험지 PDF 뽑기 창 (2026-10-26): 난이도 3칸 · 유형 칩 · 개수 */
.pdfs h3 .lv { font-weight: 400; font-size: 13px; color: var(--sub); margin-left: 6px; }
.pdflv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pdflv button { border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); padding: 10px 6px; display: flex; flex-direction: column; gap: 2px; align-items: center; font: inherit; color: var(--text); cursor: pointer; }
.pdflv button b { font-size: 15px; }
.pdfinfo-t { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 13px; color: var(--sub); cursor: pointer; }
.pdfinfo-t i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; font-style: normal; font-size: 10px; font-weight: 800; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.pdfinfo-t.on { color: var(--main); }
.pdfinfo-box { border-radius: 10px; background: color-mix(in srgb, var(--main) 6%, var(--card)); padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.pdfinfo-box p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text); display: flex; gap: 8px; }
.pdfinfo-box p small { display: block; font-size: 12px; color: var(--main); font-weight: 600; margin-top: 1px; }
.pdfinfo-box p b { flex: none; color: var(--text); }
.pdflv button.on { border-color: var(--main); background: color-mix(in srgb, var(--main) 10%, var(--card)); }
.pdfs .chips button.all { font-weight: 700; }
.pdfs .chips button.reuse { border-color: #e8962e; color: #b35f00; background: #fff4e5; }
.pdfs .chips button.reuse.on { background: #e8962e; border-color: #e8962e; color: #fff; }
.pdfs .chips button.none { opacity: .4; }
.pdfs .pdfreuse { margin: -4px 0 0; font-size: 12px; color: #b35f00; }
.pdflist .pdfrow { display: flex; align-items: center; gap: 6px; }
.pdflist .pdfrow .srow { flex: 1; min-width: 0; }
.pdflist .pdfrow .link { flex: none; }
.pdfs .pdfps { padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.pdfhow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.pdfhow .or { font-size: 12px; color: var(--sub); }
.pdfhow label:not(.on) { color: var(--sub); background: var(--bg, #f4f6f8); }
.pdfhow label.on { background: color-mix(in srgb, var(--main) 10%, var(--card)); font-weight: 700; }
.pdfhow label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 14px; margin: 0; color: var(--text); cursor: pointer; }
.pdfhow label.on { border-color: var(--main); }
.pdfhow input { margin: 0; width: 16px; height: 16px; accent-color: var(--main); }
.pdfhow select { width: auto; margin: 0; padding: 4px 24px 4px 8px; font-size: 14px; font-weight: 700; background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; }
.pdflist { margin: 6px 0 4px; } .pdflist .srow { padding: 8px 4px; } .pdflist .srow b small { font-weight: 400; color: var(--sub); }
.pdfs .fold { margin: 0; } .pdfs .fold .srow { padding: 8px 4px; }
/* 시험지 PDF 단계 체크박스 (원장님 2026-10-27 — 여러 개 고르면 섞음) */
.pdflv label { border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); padding: 10px 6px; display: flex; flex-direction: column; gap: 2px; align-items: center; cursor: pointer; position: relative; }
.pdflv label input { position: absolute; top: 8px; left: 8px; width: 16px; height: 16px; margin: 0; accent-color: var(--main); }
.pdflv label b { font-size: 15px; }
.pdflv label small { font-size: 12px; color: var(--sub); }
.pdflv label.on { border-color: var(--main); background: color-mix(in srgb, var(--main) 10%, var(--card)); }
#printArea .pzlv { display: block; font-size: 6.5pt; color: #777; font-weight: 400; }

/* 빈칸 — 길이가 정해진 밑줄 (원장님 2026-10-27 — 조금 길게) */
.qblank { display: inline-block; width: 6.5em; border-bottom: 1px solid currentColor; height: 1em; vertical-align: -2px; margin: 0 2px; }
/* 시험지 PDF 창 학교 칸 */
.pdfs .pdfsch { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin: 4px 0 10px; }
.pdfs .pdfsch input { flex: 1; max-width: 220px; padding: 6px 10px; }

/* 코인 · 코인 샵 (2026-10-27, coins.js) */
.coinic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }
.cbal { display: flex; align-items: baseline; gap: 4px; flex: none; }
.cbal .coinic { width: 26px; height: 26px; align-self: center; }
.cbal b { font-family: Fredoka, Pretendard, sans-serif; font-size: 26px; font-weight: 700; color: #b77900; }
.cbal span { font-size: 13px; color: var(--sub); }
.cbal.big { justify-content: center; }
.cbal.big .coinic { width: 40px; height: 40px; }
.cbal.big b { font-size: 42px; }
.card.coincard { display: flex; align-items: center; gap: 14px; }
.card.coincard .t { flex: 1; min-width: 0; }
.card.coincard .rate { margin-top: 6px; }
.coingot { display: inline-flex; align-items: baseline; gap: 6px; margin: 10px auto 2px; padding: 8px 16px; border-radius: 999px; background: #fff6d6; border: 1.5px solid #ffd43b; animation: fx-pop .5s ease both; }
.coingot .coinic { width: 22px; height: 22px; align-self: center; }
.coingot b { font-family: Fredoka, Pretendard, sans-serif; font-size: 24px; color: #b77900; }
.coingot small { color: #8a6400; font-weight: 600; }
.shophead { text-align: center; }
.shopcats { margin: 4px 0 10px; }
.shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sitem { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.sitem.goal { border: 2px solid #ffd43b; }
.sitem .se { font-size: 36px; line-height: 1.1; }
.sitem b { font-size: 14px; line-height: 1.3; }
.sitem small { color: var(--sub); font-size: 12px; }
.sitem .btn { margin-top: 6px; width: 100%; }
.sitem .sgoal { position: absolute; top: 6px; right: 6px; border: 0; background: none; color: #e0a800; font-size: 18px; cursor: pointer; padding: 2px; }
.corder { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.corder:first-of-type { border-top: 0; }
.corder small { color: var(--sub); grid-column: 1; }
.corder > button, .corder .row { grid-row: 1 / span 2; grid-column: 2; margin: 0; gap: 6px; }
.cled { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cled small { display: block; color: var(--sub); font-size: 12px; }
.cled b { font-family: Fredoka, Pretendard, sans-serif; color: #b77900; }
.cled b.neg { color: var(--sub); }
.cgive { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 6px; align-items: center; }
.cgive input { margin: 0; min-width: 0; }
.citem { display: grid; grid-template-columns: 44px 1fr 84px auto auto; gap: 6px; align-items: center; padding: 4px 0; }
.citem input, .citem select { margin: 0; min-width: 0; padding: 7px 8px; font-size: 14px; }
.citem .ce { text-align: center; }
.citem .check { margin: 0; font-size: 13px; white-space: nowrap; }
.citem.off { opacity: .5; }
.citem.add { grid-template-columns: 1fr 84px auto; } /* 종류 칸 없앰 (2026-10-31) */
@media (max-width: 520px) { .citem { grid-template-columns: 40px 1fr 70px auto; } .citem .check { grid-column: 2 / span 2; } .cgive { grid-template-columns: 70px 1fr; } }
@media (max-width: 520px) { .citem.add { grid-template-columns: 1fr 70px auto; } }
#coinSetCard { column-span: all; max-width: 760px; }

.sitem img.se { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; }
.coincard .cgpic { width: 44px; height: 44px; font-size: 30px; line-height: 44px; text-align: center; flex: none; border-radius: 10px; object-fit: contain; }
.citem .cimg { width: 44px; height: 44px; margin: 0; border: 1.5px dashed var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; background: var(--card); font-size: 22px; }
.citem .cimg img { width: 100%; height: 100%; object-fit: contain; }
.citem .cimgw { position: relative; }
.citem .cimgdel { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: #555; color: #fff; font-size: 12px; line-height: 18px; padding: 0; cursor: pointer; }

/* 로고 옆 보유 코인 (2026-10-27) */
.logorow { display: flex; align-items: center; gap: 8px; }
.hcoin { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; padding: 3px 10px 3px 5px; background: rgba(255,255,255,.85); box-shadow: 0 1px 0 rgba(0,0,0,.08); cursor: pointer; font: inherit; }
.hcoin .coinic { width: 20px; height: 20px; }
.hcoin b { font-family: Fredoka, Pretendard, sans-serif; font-size: 16px; font-weight: 700; color: #b77900; font-variant-numeric: tabular-nums; }
.hcoin.bump { animation: coinbump .6s ease; }
@keyframes coinbump { 0% { transform: scale(1); } 30% { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(255,212,59,.45); } 100% { transform: scale(1); } }
.coinfly { position: fixed; z-index: 3000; width: 26px; height: 26px; pointer-events: none; }
.coinfly .coinic { width: 26px; height: 26px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }

/* 보호자 화면 (2026-10-28): 홈 아이 카드 · 초대 코드 */
.kid .kidhead { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); text-align: left; cursor: pointer; }
.kid .kidhead .t { flex: 1; min-width: 0; }
.kid .kidhead b { font-size: 18px; font-weight: 700; }
.kid .kidhead small { display: block; color: var(--sub); font-size: 12px; margin-top: 2px; }
.kid .kidhead .chev { color: var(--sub); }
.streak.inner { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(125deg, color-mix(in srgb, #ffb547 16%, var(--card)), color-mix(in srgb, var(--card) 70%, var(--bg)) 60%); }
.invcode { display: inline-block; margin: 8px 0 4px; padding: 6px 14px; border-radius: 10px; background: var(--main); color: #fff; font-family: Fredoka, sans-serif; font-size: 26px; letter-spacing: 4px; }

/* 가정용 아이 가입 링크 (2026-10-28) */
.joinurl { margin: 6px 0 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--main) 10%, var(--card)); font-family: Fredoka, sans-serif; font-size: 15px; word-break: break-all; }

/* 같은 시험 세트 합치기 (2026-10-28) */
.xdup { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-color: #f0c36d; background: color-mix(in srgb, #ffd43b 12%, var(--card)); }
.xdup b { font-size: 15px; }
.xdup span { flex: 1; min-width: 0; color: var(--sub); font-size: 13px; }

/* 세트 화면 시험 범위: 이름 누르면 그 단원 화면 (2026-10-28) */
#xsRange .xrgo { font: inherit; font-weight: 700; color: var(--text); padding: 0; text-align: left; }
#xsRange .xrgo:hover { color: var(--main); }

/* 선지 밑줄 바로 밑 뜻 (2026-10-28, exam.js choiceLabel .ulk) — 앱 화면·시험지 PDF */
/* 뜻은 밑줄 아래에 띄워 놓음(폭을 차지하지 않음) — 뜻이 낱말보다 길면 앞뒤 간격이 벌어지던 것 (원장님 2026-10-28 'holding 사이 공백') */
.ulk { position: relative; display: inline-block; margin-bottom: 1.15em; text-indent: 0; }
.ulk small { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); font-size: .78em; line-height: 1.2; color: #4a5560; white-space: nowrap; text-indent: 0; }
#printArea .ulk small { font-size: 7.6pt; color: #333; }
/* 정답표 아래 서술형 답 (2026-10-28) */
#printArea .pzkey td.w { color: #777; font-size: 8pt; font-weight: 600; }
#printArea .pzkh2 { font-size: 11pt; font-weight: 700; margin: 12px 0 6px; flex: none; }
#printArea .pzwas { flex: none; display: grid; gap: 4px; font-size: 9.5pt; line-height: 1.5; }
#printArea .pzwa b { color: var(--pz1, #2a9d8f); margin-right: 4px; }
#printArea .pzwa { color: #d32f2f; font-weight: 600; }
#printArea .pzwa small { color: #777; font-weight: 400; }

/* 밑줄을 가늘게 (원장님 2026-10-28 — 어법 문제 밑줄이 굵어 답답) — 시험지 PDF·앱 변형문제 화면 */
#printArea u, .xq-text u, .xq-given u, .xq-opts u, .xq-chs u, .ulk u { text-decoration-thickness: 0.5px; text-underline-offset: 2.5px; text-decoration-color: #555; }

/* 학생별 종이 단어 시험지 창 (2026-10-28) */
.modal.wtest { text-align: left; }
.modal.wtest h3 { margin: 0 0 10px; font-size: 18px; }
.modal.wtest h3 .lv { font-weight: 400; font-size: 13px; color: var(--sub); margin-left: 6px; }
.modal.wtest label { display: block; margin: 10px 0 6px; font-size: 13px; font-weight: 600; color: var(--sub); }
.modal.wtest .chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.modal.wtest #wtN { width: 72px; margin: 0; padding: 6px 8px; text-align: center; }
.modal.wtest .hint { margin: 12px 0 0; font-size: 12.5px; }
.modal.wtest .row { margin-top: 14px; }
.modal.wtest .wtstu { max-height: 150px; overflow: auto; }
.modal.wtest .wtstu button:not(.on) { opacity: .55; }
.modal.wtest .wtrange { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; font-size: 11px; color: var(--sub); }
.modal.wtest .wtrange .wtbar { flex: 1; position: relative; display: flex; } /* 10% 눈금 (원장님 2026-10-28) */
.modal.wtest .wtbar i { position: absolute; left: 8px; right: 8px; bottom: -6px; height: 6px; pointer-events: none;
  background: repeating-linear-gradient(to right, #7d8f98 0 1px, transparent 1px 10%); border-right: 1px solid #7d8f98; box-sizing: border-box; } /* 마지막(100%) 눈금 */
.modal.wtest .wtrange input[type=range] { flex: 1; min-width: 0; width: auto; margin: 0; padding: 0; height: 22px; border: 0; background: none; box-shadow: none; accent-color: var(--main); } /* 입력칸 공통 여백 때문에 끝까지 못 가던 것 */
.modal.wtest #wtN { width: 100px; }
.modal.wtest label.check { margin-top: 4px; font-weight: 500; color: var(--text); }
.modal.wtest label b { font-weight: 700; color: var(--main); margin-left: 6px; }
@media print { .plist .pw { display: flex; flex-direction: column; } .plist .pbg { font-size: 8px; line-height: 1; color: #999; font-weight: 500; margin-top: 2px; letter-spacing: .5px; }
  .plist .pb.ph { color: #444; font-weight: 600; } /* 첫 글자 힌트 — 밑줄은 다른 칸과 같은 일자 선 (원장님 2026-10-28) */
  .pmeta u { text-decoration: none; border-bottom: 1px solid #333; padding: 0 12px 2px; font-weight: 600; } }

/* 범위별 진행: 줄을 누르면 학생별 (2026-10-28) */
button.xrt.xrtb { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.xrt.xrtb.fin { background: #fff0f4; }
button.xrt.xrtb .chev { color: var(--sub); font-weight: 400; display: inline-block; transition: transform .15s; }
button.xrt.xrtb.open .chev { transform: rotate(90deg); }
.xrt-d { background: color-mix(in srgb, var(--main) 5%, var(--card)); border-radius: 10px; padding: 4px 10px; margin: 2px 0 6px; }
.xrt-s { display: grid; grid-template-columns: 1fr 1.3fr .8fr; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.xrt-s:last-child { border: 0; }
.xrt-s b { font-weight: 600; } .xrt-s.idle b { color: var(--sub); }
.xrt-s .rate { margin: 0; } .xrt-s .rate i { background: var(--main); opacity: 1; }
.xrt-s small { font-size: 11px; color: var(--sub); } .xrt-s .ok { color: var(--ok); font-weight: 700; } .xrt-s small.bad { color: var(--bad); }
.xrt-s > span:last-child { font-size: 12px; color: var(--sub); text-align: right; }

/* 학생 홈 '오늘 할 일' 맨 위 · 눈에 띄게 (원장님 2026-10-28) */
body .card.hometodo, body.sky .card.hometodo, body.sky[data-section] #main .card.hometodo { border: 2px solid #2a86bd; box-shadow: 0 6px 18px rgba(42, 134, 189, .18); }
.card.hometodo h2 { font-size: 19px; color: #1f6d9c; }
.card.hometodo .todo .t b { font-size: 17px; }
.card.hometodo .todo .btn.sm { padding: 10px 18px; font-size: 15px; }

/* 종이 단어 시험 채점 (2026-10-28): 번호 칸을 눌러 틀린 것만 빨갛게 */
.papergrade .pnums { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin: 12px 0 14px; }
.papergrade .pnums button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 7px; border: 1.5px solid var(--line, #d5dde2); border-radius: 12px; background: #fff; color: var(--text, #1f2d36); cursor: pointer; min-width: 0; }
.papergrade .pnums b { font-size: 20px; font-family: Fredoka, Pretendard, sans-serif; line-height: 1.1; }
.papergrade .pnums small { font-size: 11px; opacity: .65; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.papergrade .pnums button.on { background: #e5484d; border-color: #e5484d; color: #fff; }
/* 종이 시험 번호 입력 (2026-11-01) */
.papergrade .pin { font-size: 18px; letter-spacing: .5px; }
.papergrade .perr { color: #e5484d; font-size: 13px; min-height: 0; margin-top: 4px; }
.papergrade .perr:empty { display: none; }
.papergrade .plive:empty { display: none; }
.papergrade .pgrid { margin: 10px 0; }
.papergrade .pgrid .pnums { margin-top: 8px; }
.papergrade.wait .kv b { color: #e0a800; }
.pclaim { padding: 10px 0; border-top: 1px solid var(--line, #e3e8ec); }
.pclaim:first-of-type { border-top: 0; }
.pclaim .papergrade .btn { width: auto; margin-top: 8px; }
.modal .alist { margin: 10px 0 0; padding: 0; list-style: none; max-height: 46vh; overflow: auto; }
.modal .alist li { padding: 5px 0; border-bottom: 1px solid var(--line, #e3e8ec); font-size: 15px; }
.modal .alist li b { display: inline-block; min-width: 26px; color: #e5484d; font-family: Fredoka, Pretendard, sans-serif; }
.modal .anote { margin-top: 10px; font-size: 13px; color: var(--sub); }
.papergrade .pnums button.on small { opacity: .9; }
.papergrade .btn { width: 100%; }
.pwrong { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.pwrong span { font-size: 13px; padding: 2px 9px; border-radius: 99px; background: #fdecec; color: #c4373c; }
.report .r-paper { display: grid; grid-template-columns: 64px 64px 1fr; gap: 8px; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed #e3e8eb; font-size: 14px; }
.report .r-paper b { font-size: 16px; } .report .r-paper b i { font-style: normal; font-weight: 400; font-size: 12px; opacity: .7; }
.report .r-paper em { font-style: normal; font-size: 13px; color: #c4373c; min-width: 0; }
/* 단어 라이브러리 분류 (2026-10-28) */
.bkfilter { margin: 4px 0 10px; }
.bkhead { font-size: 14px; font-weight: 700; margin: 14px 0 8px; opacity: .75; }
.bkcats { margin: 4px 0 6px; }
.papergrade .pskip { display: block; margin: 10px auto 0; opacity: .75; }
#clsPaper .kv.brow { width: 100%; background: none; border: 0; padding: 7px 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
#clsPaper .kv small { opacity: .6; font-size: 12px; }
#clsPaper .lv.warn { color: #c4373c; }

/* 라이브러리 폴더 · 끌기 (2026-10-29) */
.book.folder { background: #fff8e6; border-color: #f0d590; }
.book.folder .bk-top { display: flex; align-items: center; gap: 6px; }
.fic { color: #e0a800; display: inline-flex; vertical-align: -4px; margin-right: 4px; }
.book.folder .fic { margin: 0; }
.libcard .books .book { touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.libdrag { opacity: .35; }
.libghost { position: fixed; z-index: 9999; pointer-events: none; opacity: .92; transform: rotate(2deg) scale(1.03); box-shadow: 0 12px 30px rgba(20,40,60,.25); margin: 0; }
.book.dropin { outline: 3px solid #2a86bd; outline-offset: 2px; background: #e8f4fb; }
.book.dropbefore { box-shadow: -5px 0 0 0 #2a86bd; }
.book.dropafter { box-shadow: 5px 0 0 0 #2a86bd; }
.libout { margin: 6px 0 12px; padding: 14px; border: 2px dashed #2a86bd; border-radius: 14px; text-align: center; color: #2a86bd; font-weight: 600; }
.libout.dropin { background: #e8f4fb; }
.books.folders { margin-bottom: 4px; }
.book.folder .bk-top { justify-content: flex-start; }
/* 변형문제 결과: 학생별 틀린 문제 (2026-10-30) */
.xqtab .xqstu { font-weight: 700; text-align: left; padding: 0; white-space: nowrap; margin: 0; display: inline-block; font-size: 13px; } /* .link 의 가운데 맞춤(margin auto) 때문에 이름이 들쭉날쭉했음 (원장님 2026-10-31) */
.xqtab .xqstu.on { color: #2a86bd; }
.xqtab .xqstu .lv.bad { color: #c4373c; font-weight: 600; }
.xqstu-box { margin: 14px 0; padding: 12px; border: 2px solid #2a86bd; border-radius: 14px; background: #f5fafd; }
.xqstu-box h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font-size: 16px; }
.xqw { padding: 12px 0; border-top: 1px dashed #cfdbe3; }
.xqw-h { font-size: 14px; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.xqw-h .lv.bad { color: #c4373c; }
.xq-chs button.pick { background: #fdecec; border-color: #e5484d; color: #c4373c; }
.xq-chs button .who { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 6px; padding: 1px 6px; border-radius: 99px; background: #e5484d; color: #fff; }
.xq-dist { font-size: 13px; color: var(--sub, #5a6b75); margin: 6px 0 0; }
.xq-dist .ok { color: #2d8a5e; font-weight: 700; } .xq-dist .bad { color: #c4373c; font-weight: 700; }
.xq-names { font-size: 13px; margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.xq-names span { padding: 2px 9px; border-radius: 99px; font-weight: 600; }
.xq-names .miss { background: #fdecec; color: #c4373c; }
.xq-names .late { background: #fff4dc; color: #a06b00; }
/* 보강 문제 (2026-10-30) */
.card.xq-extra { border: 2px solid #2d8a5e; background: #f1faf5; }
.card.xq-extra h2 { color: #2d8a5e; }
.xq-exall { margin: 4px 0 10px; }
.xqstu-box [data-exone] { margin: 0 0 8px; }
.xqtab .xqstu .lv.ok { color: #2d8a5e; font-weight: 600; }

/* 워크북 알맞은 말 고르기 (2026-10-30) */
.wbcard .wbtext { font-family: var(--en, inherit); font-size: 16px; line-height: 2.3; margin: 12px 0; word-break: normal; }
.wbq { display: inline; white-space: normal; border-radius: 8px; padding: 1px 2px; }
.wbq sup { font-size: 10px; color: #7d8f98; margin-right: 1px; }
.wbq button { font: inherit; font-size: 15px; border: 1.5px solid var(--line, #d5dde2); background: #fff; border-radius: 8px; padding: 1px 7px; margin: 0 1px; cursor: pointer; color: inherit; }
.wbq button.on { background: #2a86bd; border-color: #2a86bd; color: #fff; }
.wbq i { font-style: normal; color: #9aa9b1; margin: 0 1px; }
.wbq.ok button.on { background: #2d8a5e; border-color: #2d8a5e; }
.wbq.bad button.on { background: #e5484d; border-color: #e5484d; }
.wbq.bad button.ans { border-color: #2d8a5e; color: #2d8a5e; font-weight: 700; }
.wbps { margin-bottom: 8px; }
@media print {
  .wbsheet .wbblk { margin: 0 0 10mm; break-inside: auto; }
  .wbsheet .wbblk h3 { font-size: 11pt; margin: 0 0 2mm; }
  .wbsheet .wbblk h3 small { font-weight: 400; color: #666; }
  .wbsheet .wbp-text { font-size: 10.5pt; line-height: 2.1; text-align: justify; margin: 0; }
  .wbsheet .wbp { white-space: nowrap; font-weight: 600; }
  .wbsheet .wbp sup { font-size: 7pt; color: #555; margin-right: 1px; }
  .wbsheet .wbkeys { columns: 3; display: block; }
  .wbsheet .wbkeys li { break-inside: avoid; display: flex; gap: 6px; padding: 1.5mm 0; font-size: 10pt; }
}
.xsteps.n6 { grid-template-columns: repeat(6, 1fr); gap: 4px; } .xsteps.n6 button { font-size: 10px; padding: 8px 1px 6px; } .xsteps.n6 button b { font-size: 15px; } /* 워크북까지 단계 6개 (2026-10-31) */

/* 워크북 2차 (2026-10-31 — 정신없지 않게: 글 속 번호 빈칸 + 아래 5지선다) */
.wbcard .wbtext { line-height: 2.1; }
.wbb { display: inline-block; min-width: 3.2em; border: none; border-bottom: 2px solid #2a86bd; background: #eef6fb; color: #1f2d36; font: inherit; font-size: 15px; font-weight: 600; padding: 0 6px; margin: 0 2px; border-radius: 6px 6px 0 0; cursor: pointer; line-height: 1.6; }
.wbb sup { font-size: 10px; color: #2a86bd; margin-right: 3px; font-weight: 700; }
.wbb.act { background: #2a86bd; color: #fff; } .wbb.act sup { color: #fff; }
.wbb.ok { background: #e4f5ec; border-color: #2d8a5e; } .wbb.bad { background: #fdecec; border-color: #e5484d; color: #c4373c; text-decoration: line-through; }
.wbb.bad.act { background: #e5484d; color: #fff; }
.wbpanel { position: sticky; bottom: 76px; z-index: 5; margin: 12px -4px 0; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 -4px 18px rgba(20,40,60,.12); border: 1.5px solid #cfe3ef; }
.wbph { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; } .wbph span { color: #7d8f98; }
.wbopts { display: grid; gap: 5px; } .wbopts.c2 { grid-template-columns: 1fr 1fr; }
.wbopts button { display: flex; gap: 8px; align-items: center; text-align: left; border: 1.5px solid var(--line, #d5dde2); background: #fff; border-radius: 10px; padding: 6px 9px; font: inherit; font-size: 14.5px; cursor: pointer; color: inherit; }
.wbopts button i { font-style: normal; color: #7d8f98; }
.wbopts button.on { border-color: #2a86bd; background: #eef6fb; font-weight: 700; }
.wbopts button.ans { border-color: #2d8a5e; background: #e4f5ec; color: #2d8a5e; font-weight: 700; }
.wbopts button.no { border-color: #e5484d; background: #fdecec; color: #c4373c; }
@media (min-width: 960px) { .wbpanel { bottom: 12px; } }
@media print {
  .wbsheet .wbp { display: inline-block; min-width: 14mm; border-bottom: 1px solid #333; height: 1em; vertical-align: -2px; }
  .wbsheet .wbp sup { font-size: 7pt; }
  .wbsheet .wbqs { list-style: none; padding: 0; margin: 2mm 0 0; columns: 2; column-gap: 8mm; font-size: 9pt; }
  .wbsheet .wbqs li { break-inside: avoid; padding: 1mm 0; display: flex; flex-wrap: wrap; gap: 1mm 3mm; }
  .wbsheet .wbqs li b { min-width: 6mm; }
}

/* 화면 점검 (2026-11-02, Vercel 화면 규칙)
   ① 빨리 두 번 눌러도 확대 안 됨 — 끌기 칸(.flash·.schip·.xs-chip 등 touch-action none)은 각자 규칙이 이김
   ② 아래 창·확인창 스크롤이 뒤 화면으로 안 넘어감 (.modal-bg·.wpick-bg overscroll-behavior)
   ④ 마우스가 있는 컴퓨터에서만 버튼에 올리면 살짝 진하게
   ⑤ 움직임 줄이기 설정이면 모든 움직임을 바로 끝 모양으로 (끝나는 신호는 그대로 와서 화면 흐름은 같음) */
button, a, input, select, textarea, label, summary, [role="button"] { touch-action: manipulation; }
.wpick { overscroll-behavior: contain; }
@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover, .srow:hover, button.brow:hover, .opt:not(:disabled):hover { filter: brightness(.94); }
  .btn.ghost:not(:disabled):hover { filter: brightness(.96); }
  .link:hover { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 운영자 학원 목록 (2026-11-04 원장님 — 폰에서 버튼이 세로로 늘어져 지저분): 학원마다 칸 하나, 버튼은 작은 칩 줄 */
.acaitem { padding: 12px 0; border-bottom: 1px solid var(--line); }
.acaitem:last-of-type { border-bottom: 0; }
.acahead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; }
.acaname { min-width: 0; }
.acaname .lv { font-size: 12px; }
.acacnt { white-space: nowrap; flex: none; }
.acaitem .row2.mini { font-size: 12px; color: var(--sub); margin-top: 3px; gap: 10px; }
.acaitem .row2.mini span:last-child { text-align: right; }
.acaops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.acaops button { font: inherit; font-size: 12px; font-weight: 600; color: var(--sub); background: var(--field); border: 0; border-radius: 999px; padding: 6px 11px; cursor: pointer; line-height: 1.2; }
.acaops button b { color: var(--text); font-weight: 700; margin-left: 3px; }
.acaops button.danger { color: var(--bad); background: var(--badSoft); }

/* 마지막·다음 배포 · 배포/테스트 기록 (2026-11-05) */
.mdist { display: grid; gap: 8px; margin-top: 12px; padding: 12px 14px; background: var(--field); border-radius: 12px; }
.mdist > div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; align-items: baseline; }
.mdist span { font-size: 12px; color: var(--sub); }
.mdist p { margin: 0; font-size: 14px; color: var(--sub); }
.mdist b { color: var(--text); }
details.dhist { margin-top: 14px; }
details.dhist summary { font-size: 14px; }
.dhhead { font-size: 12px; font-weight: 700; color: var(--sub); margin: 12px 0 2px; }
.dhnote { font-size: 13px; font-weight: 700; color: var(--main); margin-top: 6px; }
.dhrow { display: grid; grid-template-columns: 78px 1fr auto; column-gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.dhrow:last-child { border-bottom: 0; }
.dhrow .d { color: var(--sub); white-space: nowrap; }
.dhrow .d i { font-style: normal; font-weight: 700; color: var(--main); margin-left: 4px; }
.dhrow .n b { color: var(--text); }
.dhrow .n small { display: block; font-size: 11px; color: var(--sub); }
.dhrow .r { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dhrow .r.ok { color: var(--text); }
.dhrow .r.no { color: #d9534f; }
.dhrow .r.mute { color: var(--sub); font-weight: 400; }
.dhrow .g { grid-column: 2 / -1; margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--main); }
.dhrow.fut .n b { color: var(--sub); font-weight: 600; }

/* 복습 많으면 자동 멈춤 바 (학생 상세, 2026-11-05) */
.rlim { margin-top: 12px; padding: 12px 14px; background: var(--field); border-radius: 12px; }
.rlim label { display: block; margin: 0 0 2px; font-size: 12px; font-weight: 400; color: var(--sub); }
.rlim #rlVal { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.rlim #rlVal { line-height: 1.5; margin-top: 2px; }
.rlim #rlVal small { font-size: 11px; font-weight: 400; color: var(--sub); margin-left: 2px; }
.rlbar { position: relative; display: flex; margin-top: 6px; }
.rlbar input[type=range] { flex: 1; min-width: 0; width: auto; margin: 0; padding: 0; height: 28px; border: 0; background: none; box-shadow: none; accent-color: var(--main); touch-action: pan-y; }
.rlbar i { position: absolute; left: 8px; right: 8px; bottom: -3px; height: 5px; pointer-events: none; box-sizing: border-box; border-right: 1px solid #7d8f98;
  background: repeating-linear-gradient(to right, #7d8f98 0 1px, transparent 1px calc(100% / 9)); }
.rlends { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11px; color: var(--sub); }
.rlnow { margin: 8px 0 0; font-size: 13px; color: var(--sub); }
.rlnow b { color: var(--text); }
.rlnow em { font-style: normal; font-weight: 700; color: #d9534f; }

/* 시험지 미리 보기 (원장님 2026-11-06 — 잉글리시플랫 참고): 왼쪽 실제 시험지, 오른쪽 설정판. #printArea 는 인쇄 때문에 body 바로 아래라 위에 겹쳐 보임 */
#printArea[data-font="serif"] .pzpage { font-family: "Noto Serif KR", "Batang", "AppleMyungjo", serif; }
.wpick-bg.pzrev { display: block; background: #e9edf1; }
body:has(.pzrev) .toast-pop { z-index: 950; }
.pzrev-top { position: fixed; left: 0; right: 0; top: 0; height: 56px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #fff; border-bottom: 1px solid #dde3e8; }
.pzrev-top > b { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pzrev-top .btn { width: auto; margin: 0; padding: 9px 16px; white-space: nowrap; }
.pzrev-side { position: fixed; right: 0; top: 56px; bottom: 0; width: 320px; background: #fff; border-left: 1px solid #dde3e8; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: #1d2730; }
.pzrev-side label.f { display: flex; flex-direction: column; gap: 5px; margin: 0; font-size: 12px; font-weight: 700; color: #5b6b76; }
.pzrev-side label.f input { margin: 0; font-size: 14px; font-weight: 400; color: #1d2730; }
.pzrev-side .f2 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: #5b6b76; }
.pzrev-side .f2 > span:first-child { width: 34px; flex: none; }
.pzrev-side .f2 button { border: 1.5px solid #dde3e8; border-radius: 8px; background: #fff; padding: 5px 7px; font: inherit; font-weight: 600; color: #1d2730; cursor: pointer; }
.pzrev-side .f2 button.on { border-color: #1d2730; background: #f1f4f6; }
.pzrev-side .f2 button i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.pzrev-side .ck { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 13px; font-weight: 600; cursor: pointer; }
.pzrev-side .ck input { width: auto; margin: 0; }
.pzrev-side h4 { margin: 2px 0 -6px; font-size: 13px; color: #5b6b76; }
.pzlist { display: flex; flex-direction: column; border-top: 1px solid #edf0f3; }
.pzrow { border-bottom: 1px solid #edf0f3; }
.pzrow > button.h { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 9px 4px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pzrow > button.h > b { width: 24px; flex: none; color: #5b6b76; font-variant-numeric: tabular-nums; }
.pzrow > button.h > span { flex: 1; min-width: 0; font-weight: 600; }
.pzrow > button.h > small { flex: none; max-width: 112px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #7a8892; font-size: 11.5px; }
.pzrow.on { background: #f1f5ff; }
.pzrow.on > button.h > b { color: #3b6cf6; }
.pzrow .a { display: flex; gap: 6px; padding: 0 4px 10px; }
.pzrow .a button { flex: 1; border: 1.5px solid #cfd6dc; border-radius: 8px; background: #fff; padding: 8px 6px; font: inherit; font-size: 13px; font-weight: 700; color: #1d2730; cursor: pointer; }
.pzrow .a button.main { flex: 2; border-color: #3b6cf6; color: #2f5be0; }
.pzrow .a button:disabled { opacity: .55; cursor: default; }
.pzrev-side details.off > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: #5b6b76; }
.pzrev-side details.off .r { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid #edf0f3; font-size: 13px; }
.pzrev-side details.off .r span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pzrev-side details.off .r button { border: 0; background: none; padding: 2px 4px; font: inherit; font-weight: 700; color: #2f5be0; cursor: pointer; }
@media screen {
  #printArea.pzshow { display: block; position: fixed; left: 0; right: 320px; top: 56px; bottom: 0; z-index: 901; overflow: auto; overscroll-behavior: contain; padding: 16px; background: #e9edf1; }
  #printArea.pzshow .pzpage { zoom: var(--pzz, 1); margin: 0 auto 16px; box-shadow: 0 2px 12px rgba(20, 35, 50, .14); }
  #printArea.pzshow .pzq[data-qi] { cursor: pointer; }
  #printArea.pzshow .pzq[data-qi]:not(.pzon):hover { background: #f4f7fb; }
  #printArea.pzshow .pzq.pzon { background: #e8efff; box-shadow: 0 0 0 3px #e8efff; }
}
@media screen and (max-width: 859px) {
  #printArea.pzshow { right: 0; bottom: 46vh; padding: 8px; }
  .pzrev-side { left: 0; width: auto; top: auto; height: 46vh; border-left: 0; border-top: 1px solid #dde3e8; }
}

/* ===== 선생님 시험대비 = 웹 화면 (원장님 2026-11-06, 시안 tools/exam-web-mock.html): 흰 작업면 + 표 + 탭. 파랑은 누를 것, 빨강·주황은 신경 쓸 것. 학생 화면(하늘)은 그대로 ===== */
body.sky.staff.xweb[data-section="exam"] { --bg: #f4f7f9; --text: #18303f; --sub: #5f7380; --line: #e2e8ec; --field: #eef2f5; --frameLine: #e2e8ec; --main: #1f6f9f; --main2: #195c85; --mainSoft: #e7f2f8; --headInk: #18303f; --logoB: #2a86bd; }
body.staff.xweb .topband { display: none; }
body.staff.xweb header { padding: 12px 0 10px; }
body.staff.xweb #main { column-count: 1 !important; }
body.staff.xweb #summary:empty { display: none; }
body.staff.xweb .xtop ~ * .card, body.staff.xweb #main > .card, body.staff.xweb #xLibPane .card { border: 1px solid var(--line) !important; border-radius: 10px !important; box-shadow: none !important; }
body.staff.xweb .btn { border-radius: 8px; box-shadow: none; font-size: 14px; padding: 9px 14px; }
body.staff.xweb .btn:active { transform: none; }
body.staff.xweb .btn.sm { padding: 6px 11px; font-size: 13px; }
body.staff.xweb .btn.ghost, body.staff.xweb .btn.soft { background: #fff; color: var(--text); border: 1px solid #cfd8de; box-shadow: none; }
.xtop { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px 10px 0 0; padding: 0 18px; }
.xtop .btn { width: auto; flex: none; margin: 0 0 8px; }
.xtabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.xtabs button { flex: none; border: 0; background: none; padding: 14px 1px 11px; border-bottom: 2.5px solid transparent; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--sub); cursor: pointer; }
.xtabs button.on { color: var(--text); font-weight: 700; border-color: #2a86bd; }
.xtabs2 { border-bottom: 1px solid var(--line); }
.xtabs2 button { padding: 10px 1px 9px; font-size: 14px; }
.xbody { padding: 16px 0 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.xbody > .toast:empty { display: none; }
.xbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.xh { margin: 0; font-size: 17px; font-weight: 800; }
.xh small { font-size: 13px; font-weight: 500; color: var(--sub); margin-left: 4px; }
.xh1 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.3px; text-wrap: balance; display: flex; align-items: center; gap: 6px; }
.xpills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.xpills button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 500; color: var(--sub); cursor: pointer; }
.xpills button.on { background: var(--text); border-color: var(--text); color: #fff; font-weight: 700; }
.xpills small { opacity: .75; font-size: 12px; }
.xpills .xplain { border: 0; background: none; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.xpills .xplain.warn { color: #c67a08; font-weight: 700; }
.xpanel { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0; }
.xpanel > h3 { margin: 0; padding: 12px 16px; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xpanel > h3 small { font-weight: 500; color: var(--sub); font-size: 12.5px; margin-left: 4px; }
.xscroll { overflow-x: auto; }
.xtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.xtable th { text-align: left; font-size: 12px; font-weight: 500; color: var(--sub); padding: 9px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.xtable td { padding: 11px 14px; border-bottom: 1px solid #eef2f4; vertical-align: middle; }
.xtable tbody tr:last-child td { border-bottom: 0; }
.xtable .xnum { font-variant-numeric: tabular-nums; white-space: nowrap; }
.xtable .xr { text-align: right; }
.xtable tr.xlink { cursor: pointer; }
.xtable tr.xlink:hover td { background: #f8fafb; }
.xtable tr.xgrp td { background: #fafbfc; padding: 8px 14px; font-size: 13px; }
.xnm { border: 0; background: none; padding: 0; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--text); text-align: left; cursor: pointer; }
.xnm:hover { color: #1f6f9f; }
.xsm { color: var(--sub); font-size: 12.5px; font-weight: 400; margin-top: 1px; }
small.xsm { margin: 0; }
.xclip { max-width: 44ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.xd { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 700; background: var(--field); color: var(--sub); white-space: nowrap; }
.xd.hot { background: #fbe9e9; color: #cf3f3f; }
.xd.near { background: #fdf1dd; color: #c67a08; }
.xflag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.xflag.bad { background: #fbe9e9; color: #cf3f3f; }
.xflag.warn { background: #fdf1dd; color: #b06c06; }
.xflag.good { background: #e3f4ec; color: #1c8f63; }
.xok { color: #1c8f63; font-weight: 600; }
.xno { color: #8b9ba5; }
.xcell { display: inline-block; min-width: 44px; padding: 3px 6px; border-radius: 6px; font-size: 12.5px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.xcell.g { background: #e3f4ec; color: #1c8f63; }
.xcell.y { background: #fdf1dd; color: #b06c06; }
.xcell.r { background: #fbe9e9; color: #cf3f3f; }
.xcell.n { background: var(--field); color: #8b9ba5; }
.xmx td.c, .xmx th.c { text-align: center; padding-left: 6px; padding-right: 6px; }
.xmx th:first-child, .xmx td:first-child { position: sticky; left: 0; background: #fff; font-weight: 600; white-space: nowrap; }
.xmx th:first-child { background: #fafbfc; }
.xshead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.xshd { flex: none; }
.xtp { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.xtp[hidden] { display: none; }
.xsplit { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 14px; align-items: start; }
.xcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.xbody .xsplit > .card, .xcol > .card, .xtp > .card { margin: 0; }
.xfix { display: flex; flex-direction: column; }
.xfix > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid #eef2f4; }
.xfix > div:last-child { border-bottom: 0; }
.xfix span { min-width: 0; }
.xfix b { display: block; font-weight: 600; }
.xfix small { color: var(--sub); font-size: 12.5px; }
.xfix .btn { width: auto; flex: none; margin: 0; }
.xacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.xbar .xacts { margin: 0; }
.xacts .btn { width: auto; margin: 0; }
body.staff.xweb #xsAddRange, body.staff.xweb #xFile, body.staff.xweb .xbar > .btn { width: auto; margin: 0; }
#xsPickBox { margin-top: 12px; }
.xup:empty { display: none; }
.xup:not(:empty) { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
/* 보관함 */
.xlibw { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 14px; align-items: start; }
.xlibp { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.xlibp > .card { margin: 0; }
.xtree { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 1px; position: sticky; top: 10px; max-height: calc(100vh - 20px); overflow-y: auto; font-size: 13.5px; }
.xtree h4 { margin: 10px 8px 3px; font-size: 12px; font-weight: 500; color: var(--sub); }
/* 반 관리 펼침 목록과 같은 모양 (2026-11-09): 묶음 ▸/▾, 안쪽 줄은 들여쓰기 + 세로 안내선 + 작은 글자 */
.xtree details > summary { list-style: none; display: flex; align-items: center; gap: 6px; }
.xtree details > summary::-webkit-details-marker { display: none; }
.xtree details > summary::before { content: '▸'; color: #9aa8b1; font-size: 11px; }
.xtree details[open] > summary::before { content: '▾'; }
.xtree details > summary .n { margin-left: auto; font-size: 12px; font-weight: 400; color: #8b9ba5; }
.xtree details > div { margin: 2px 0 6px 13px; padding-left: 6px; border-left: 2px solid #dbe4ea; display: flex; flex-direction: column; gap: 1px; }
.xtree details > div > button { padding: 5px 8px; font-size: 13px; color: #3c4b56; }
.xtree details > div > button.on { color: #1f6f9f; }
.xtree summary { padding: 6px 8px; border-radius: 7px; cursor: pointer; font-weight: 600; }
.xtree summary small { font-weight: 400; color: var(--sub); }
.xtree summary:hover { background: var(--field); }
.xtree button { width: 100%; border: 0; background: none; text-align: left; padding: 6px 8px 6px 18px; border-radius: 7px; display: flex; justify-content: space-between; gap: 8px; font: inherit; color: var(--text); cursor: pointer; }
.xtree button:hover { background: var(--field); }
.xtree button.on { background: #e7f2f8; color: #1f6f9f; font-weight: 700; }
.xtree button small { flex: none; color: #8b9ba5; font-weight: 400; }
.xtree .xtreeall { padding-left: 8px; font-weight: 600; }
.xgtable { margin-top: 10px; }
.xgtable .xck { width: 34px; white-space: nowrap; }
.xgtable th.xck { width: 34px; }
.xgtable .xck input { width: 16px; height: 16px; margin: 0; }
.xselbar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 12px -4px -4px; padding: 10px 4px 4px; background: #fff; border-top: 1px solid var(--line); }
.xselbar .btn { width: auto; margin: 0; }
.xselbar .btn[hidden] { display: none; }
/* 만들기 */
.xweb .xsteps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.xweb .xsteps span { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--sub); font-size: 13px; font-weight: 500; }
.xweb .xsteps span i { width: 20px; height: 20px; border-radius: 50%; background: var(--field); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 700; }
.xweb .xsteps span.on { border-color: #2a86bd; color: #1f6f9f; font-weight: 700; background: #fff; }
.xweb .xsteps span.on i { background: #2a86bd; color: #fff; }
.xweb .xsteps span.done { cursor: pointer; background: #fff; color: var(--text); }
.xweb .xsteps span.done i { background: #e3f4ec; color: #1c8f63; }
.xsumbox { padding-bottom: 14px; position: sticky; top: 10px; }
.xsumbox dl { margin: 0; padding: 12px 16px; display: grid; grid-template-columns: 62px 1fr; gap: 6px 10px; }
.xsumbox dt { color: var(--sub); font-size: 12.5px; }
.xsumbox dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.xsumbox .btn { display: block; width: calc(100% - 32px); margin: 0 16px; }
body.staff.xweb .back { background: none; color: var(--sub); border: 0; padding: 2px 0 6px; font-size: 13px; }
body.staff.xweb button.xrt.xrtb.fin { background: none; margin: 0; padding-left: 0; padding-right: 0; border-radius: 0; }
.xgtable th.xck .link { display: inline; width: auto; margin: 0 6px 0 0; padding: 0; }
@media (min-width: 960px) { body.staff.xweb[data-section="exam"] #backBtn { display: none; } }
@media (max-width: 859px) {
  .xtop { padding: 0 14px; }
  .xtop .btn { display: none; }
  .xsplit, .xlibw { grid-template-columns: minmax(0, 1fr); }
  .xtree { display: none; }
  .xsumbox { position: static; }
  table.xstack thead { display: none; }
  table.xstack, table.xstack tbody { display: block; }
  table.xstack tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid #eef2f4; }
  table.xstack tr:last-child { border-bottom: 0; }
  table.xstack td { display: block; padding: 0; border: 0; min-width: 0; background: none; }
  table.xstack td.w { grid-column: 1 / -1; }
  table.xstack td.xhide { display: none; }
  table.xstack td.xr { text-align: left; }
  table.xstack td[data-l]::before { content: attr(data-l); display: block; font-size: 11.5px; color: var(--sub); margin-bottom: 1px; }
  .xclip { max-width: 22ch; }
  .xselbar .btn { flex: 1 1 100%; }
}
@media (min-width: 960px) {
  body.staff.xweb .wrap { max-width: 1320px; padding: 0 28px 40px; }
  body.staff.xweb nav { box-shadow: none; }
}
/* 보관함 전체: 칩·찾기 간격 */
.xlibp > .toast:empty, .xlibp > .chips:empty { display: none; }
.xlibp > .chips { margin: 0 !important; }
.xfind { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; color: var(--sub); }
/* 지문 보관함 거르기: 드롭다운 한 줄 + 찾기 (2026-11-09) */
.xfilt { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.xfilt select { width: auto; min-width: 0; margin: 0; padding: 8px 32px 8px 11px; font-size: 14px; background-color: #fff; border: 1px solid var(--line); border-radius: 8px; }
.xfilt select[hidden] { display: none; }
.xfilt input { flex: 1 1 200px; min-width: 0; max-width: 320px; margin: 0; padding: 8px 11px 8px 32px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%238b9ba5' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px 50%; }
@media (max-width: 859px) {
  .xfilt select { flex: 1 1 0; padding-right: 24px; background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; }
  /* 목록은 한 줄에: 이름 왼쪽, 지문·단어·해석 수는 오른쪽 작게 */
  table.xlibt tr.xlink { grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 4px 10px; padding: 11px 14px; }
  table.xlibt tr.xlink td.w { grid-column: auto; }
  table.xlibt tr.xlink td.xnum { font-size: 12.5px; color: var(--sub); white-space: nowrap; }
  table.xlibt tr.xlink td[data-l]::before { display: inline; margin: 0 3px 0 0; font-size: 11.5px; }
  table.xlibt tr.xgrp { display: block; padding: 8px 14px; background: #f7f9fb; }
  .xfilt input { flex: 1 1 100%; max-width: none; }
  /* 폰에서는 옆으로 밀리는 표 상자를 없앰 (세로로 밀어도 표가 옆으로 움직여 스크롤이 안 되는 것처럼 보였음) */
  .xscroll { overflow-x: visible; }
  table.xgtable, table.xgtable tbody, table.xgtable thead { display: block; width: 100%; }
  table.xgtable thead tr { display: flex; padding: 6px 4px; border-bottom: 1px solid var(--line); }
  table.xgtable thead th { display: none; padding: 0; border: 0; background: none; }
  table.xgtable thead th.xck { display: block; }
  table.xgtable tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 10px 4px; border-bottom: 1px solid #eef2f4; }
  table.xgtable td { display: block; padding: 0; border: 0; background: none; font-size: 13px; }
  table.xgtable td.xck { flex: 0 0 22px; }
  table.xgtable td:nth-child(2) { flex: 1 1 calc(100% - 40px); min-width: 0; }
  table.xgtable td:nth-child(3) { margin-left: 34px; }
  table.xgtable td.xnum::before { content: '단어 '; color: var(--sub); }
  table.xgtable td:last-child::before { content: '해석 '; color: var(--sub); }
  table.xgtable .xclip { max-width: 100%; }
}
.xfind input { flex: 1; min-width: 0; max-width: 320px; margin: 0; padding: 8px 11px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
#libList { min-width: 0; }

/* 내용을 받아 오는 동안: 지금 화면을 그대로 두고, 오래 걸리면 살짝 흐리게 (2026-11-06) */
#main.wait { opacity: .55; transition: opacity .15s; }
.xtree button span { min-width: 0; }
.xtree button span small { display: block; font-size: 11.5px; }
/* 지문 올리기: 비어 있는 필수 칸 (2026-11-06) */
.xmeta .lack { outline: 2px solid #e8962e; outline-offset: -1px; }
.xmeta .xmopt { grid-column: 1 / -1; margin: 0; padding: 0; border: 0 !important; background: none; }
.xmeta .xmopt label { display: block; margin-top: 6px; }

/* 만든 시험지: 왼쪽 목록 + 오른쪽 시험지 (2026-11-06) */
.xsheets { display: grid; grid-template-columns: minmax(280px, 2fr) minmax(0, 3fr); gap: 14px; align-items: start; }
.xslist { display: flex; flex-direction: column; }
.xsrow { display: flex; flex-direction: column; gap: 1px; width: 100%; border: 0; border-bottom: 1px solid #eef2f4; background: none; padding: 10px 14px; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.xsrow:last-child { border-bottom: 0; }
.xsrow:hover { background: #f8fafb; }
.xsrow.on { background: #e7f2f8; }
.xsrow b { font-size: 14px; font-weight: 700; }
.xsrow small { font-size: 12px; color: var(--sub); overflow-wrap: anywhere; }
.xsrow span { font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.xsprev { position: sticky; top: 10px; display: flex; flex-direction: column; max-height: calc(100vh - 20px); }
.xshd2 { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.xshd2 > b { min-width: 0; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.xshd2 .xacts { margin: 0; flex: none; align-items: center; }
.xspages { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 12px; background: #e9edf1; }
@media screen {
  #printArea.pzdock { display: block; }
  #printArea.pzdock .pzpage { zoom: var(--pzz, .6); margin: 0 auto 12px; box-shadow: 0 2px 10px rgba(20, 35, 50, .14); }
}
/* 전체 보기: 목록 숨기고 시험지만 넓게 (원장님 2026-11-10) */
@media (min-width: 860px) {
  .xsheets.full { grid-template-columns: minmax(0, 1fr); }
  .xsheets.full .xslist { display: none; }
}
@media (max-width: 859px) {
  .xsheets { grid-template-columns: minmax(0, 1fr); }
  .xsprev { display: none; }
}
/* 만든 시험지 목록 묶음 */
.xslist { max-height: calc(100vh - 20px); overflow-y: auto; position: sticky; top: 10px; padding: 4px 0; }
.xsk { margin: 0; padding: 14px 14px 6px; font-size: 15px; font-weight: 800; color: var(--text); border-top: 1px solid #eef2f4; }
.xsk:first-child { border-top: 0; }
/* 숙제 탭 (2026-11-09): 숙제 내기 */
.twhwbar { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.twhwbar .btn { width: auto; padding-left: 18px; padding-right: 18px; }
/* 2026-11-16 다시 짬 (원장님 '레이아웃이 허접해'): 왼쪽 지문 · 오른쪽 받는 학생·문제·보내기(따라다님), 폰은 위아래 */
.hwnew .hngrid { display: grid; gap: 14px; margin-top: 12px; }
.hwnew .hnright { display: grid; gap: 14px; align-content: start; min-width: 0; }
.hwnew .hnbox { border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; background: var(--card); }
.hwnew .hnbox h3 { margin: 0 0 10px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.hwnew .hnbox h3 i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--main); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.hwnew .hnbox h3 small { margin-left: auto; font-weight: 700; color: var(--main); }
.hwnew .hnex { margin-bottom: 10px; }
.hwnew .hnpick { max-height: 52vh; overflow: auto; border-top: 1px solid var(--line); padding: 2px 2px 0; }
.hwnew .chips button { padding: 6px 12px; }
.hwnew .hnkids { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.hwnew .hnkids:empty { display: none; }
.hwnew .hnrow { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line); }
.hwnew #hnLv .hnrow:first-child { border-top: 0; padding-top: 0; }
.hwnew .hnlab { font-size: 13px; font-weight: 700; color: var(--sub); margin: 0; padding-top: 6px; }
.hwnew .hntot { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.hwnew .hntot select { width: auto; margin: 0; padding: 6px 28px 6px 10px; font-weight: 700; }
.hwnew .hnrow input { margin: 0; }
.hwnew #hnGo { width: 100%; margin: 0; }
@media (min-width: 960px) {
  .hwnew .hngrid { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); align-items: start; }
  .hwnew .hnright { position: sticky; top: 76px; }
  .hwnew .hnpick { max-height: calc(100vh - 300px); min-height: 240px; }
}
/* 학생 상세 위 숫자 누르기 (2026-11-10) */
.stats .stbtn { cursor: pointer; border-radius: 10px; }
.stats .stbtn:hover { background: color-mix(in srgb, var(--main) 8%, transparent); }
.ttwords .ttw.done { cursor: default; }
.ttwords .ttw.done i.lv { font-style: normal; font-size: 11px; }
.hwsets { margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 10px; padding: 2px 12px; }
.hwsets .hwsel { cursor: pointer; margin: 0; }
.hwsets .hwsel input, .hwselbar input { width: 16px; height: 16px; margin: 0 6px 0 0; vertical-align: -3px; accent-color: var(--main); }
.hwselbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0 6px; }
.hwselbar label { margin: 0; font-size: 14px; cursor: pointer; }
.xeli .xeli-b { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pdfs .xnready { margin: 4px 0 10px; padding: 9px 12px; background: #eef6fb; border-radius: 8px; font-size: 13.5px; color: var(--text); }
.pdfs .xnready .link { margin-left: 4px; }
.xsk small { font-weight: 400; }
.xsg { margin: 0; padding: 0; border: 0; }
.xsg > summary { padding: 7px 14px; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--text); }
.xsg > summary { list-style: none; display: flex; align-items: baseline; gap: 6px; }
.xsg > summary::-webkit-details-marker { display: none; }
.xsg > summary::before { content: '▸'; color: #9aa8b1; font-size: 11px; }
.xsg[open] > summary::before { content: '▾'; }
.xsg > summary:hover { background: #f8fafb; }
.xsg > summary small { font-weight: 400; color: #8b9ba5; }
.xsg .xsrow { padding: 7px 14px 7px 30px; border-bottom: 0; }
.xsrow span i { font-style: normal; font-weight: 600; color: var(--text); }
.xshd2 > b small { font-weight: 400; color: var(--sub); font-size: 12.5px; }
.xshd2 .btn { width: auto; margin: 0; padding: 7px 12px; font-size: 13px; }
@media (max-width: 859px) { .xslist { position: static; max-height: none; } }
/* 변형문제 보관함 줄: 난이도 칩 */
.xsrow .xslv { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 3px; }
.xlv { font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 5px; background: var(--field); color: var(--sub); font-variant-numeric: tabular-nums; }
.xlv.l1 { background: #e3f4ec; color: #1c8f63; }
.xlv.l2 { background: #e7f2f8; color: #1f6f9f; }
.xlv.l3 { background: #fbe9e9; color: #cf3f3f; }

/* 학생 변형문제: 기본·심화를 칸으로 나눠 안 푼·맞힘·틀림 (원장님 2026-11-06) */
.xqlv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.xqlv.unit { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.xqlv button { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.xqlv button.on { border-color: var(--main); background: color-mix(in srgb, var(--main) 10%, var(--card)); }
.xqlv button.end b { color: #2d8a5e; }
.xqlv b { font-size: 15px; }
.xqlv .rate { margin: 0; }
.xqlv span { font-size: 12.5px; color: var(--sub); font-variant-numeric: tabular-nums; }
.xqlv em { font-style: normal; }
.xqlv em.left { font-weight: 700; color: var(--text); }
.xqlv em.bad { font-weight: 700; color: #cf3f3f; }

/* 선생님 변형문제 결과: 단원·난이도 칸 + 할 일 버튼 */
.xqf { display: block; font-size: 12.5px; font-weight: 700; color: var(--sub); margin: 10px 0 6px; }
.xqlv b small { font-weight: 500; font-size: 12px; color: var(--sub); margin-left: 2px; }
.xqacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.xqacts .btn { width: auto; margin: 0; }

/* 숙제 탭 (2026-11-06) */
.hwtop { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 2px 10px; color: #fff; }
.hwtop b { font-size: 17px; }
.hwtop span { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hwg-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.hwg-h b { font-size: 14px; color: var(--sub); font-weight: 700; min-width: 0; }
.hwrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.hwg-h + .hwrow { border-top: 0; }
.hwrow .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hwrow .t b { font-size: 16px; }
.hwrow .t > span { font-size: 12.5px; color: var(--sub); font-variant-numeric: tabular-nums; }
.hwrow em { font-style: normal; }
.hwrow em.left { font-weight: 700; color: var(--text); }
.hwrow em.bad { font-weight: 700; color: #cf3f3f; }
.hwrow .rate { margin: 2px 0 0; }
.hwrow .go { flex: none; padding: 7px 14px; border-radius: 10px; background: var(--main); color: #fff; font-size: 13.5px; font-weight: 700; }
.hwrow.end .go { background: var(--field); color: var(--sub); }
.hwrow.end .t b { color: #2d8a5e; }
.hwdone .hwg-h { margin-top: 12px; }

/* ===== 선생님·원장 웹 화면 틀 (원장님 2026-11-06, staffweb.js · 시안 tools/teacher-tabs-mock.html) =====
   위 막대(화면 이름·학생 찾기·종·내 계정) · 왼쪽 목록 + 오른쪽 내용 · 접힌 줄. 모든 탭이 시험대비와 같은 흰 작업면 */
body.sky.staff.xweb { --bg: #f4f7f9; --text: #18303f; --sub: #5f7380; --line: #e2e8ec; --field: #eef2f5; --frameLine: #e2e8ec; --main: #1f6f9f; --main2: #195c85; --mainSoft: #e7f2f8; --headInk: #18303f; --logoB: #2a86bd; }
body.staff.xweb .twpane .card, body.staff.xweb #twPop .card, body.staff.xweb .twmbox .card { border: 1px solid var(--line) !important; border-radius: 10px !important; box-shadow: none !important; }
.twtop { position: relative; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 0 10px; }
.twtop h1 { margin: 0; font-size: 20px; font-weight: 800; color: var(--text); cursor: pointer; }
.twtools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.twsearch { position: relative; }
.twsearch svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #8b9ba5; pointer-events: none; }
.twsearch input { width: 220px; margin: 0; padding: 8px 12px 8px 34px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: var(--text); }
.twsug { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(24, 48, 63, .16); overflow: hidden; }
.twsug button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; border: 0; background: none; padding: 9px 12px; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.twsug button:hover { background: #f4f7f9; }
.twsug small, .twsug p { color: var(--sub); font-size: 13px; }
.twsug p { margin: 0; padding: 12px; }
.twic { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--text); cursor: pointer; }
.twic:hover, .twic.on { background: #e9eef1; }
.twic .n { position: absolute; top: 3px; right: 1px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #cf3f3f; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.twme { border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.twme:hover, .twme.on { background: #f4f7f9; }
.twpop { position: absolute; top: calc(100% - 2px); right: 0; width: 400px; max-width: calc(100vw - 24px); max-height: 74vh; overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(24, 48, 63, .18); }
.twpop h3 { margin: 0; padding: 13px 16px; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--line); }
.twgh { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border: 0; border-bottom: 1px solid #eef2f4; background: none; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.twgh:hover { background: #f8fafb; }
.twgh b { font-weight: 600; }
.twgh .c { color: #cf3f3f; font-weight: 700; margin-left: 5px; }
.twgh .chev { color: #8b9ba5; transition: transform .15s; }
.twg.open .twgh .chev { transform: rotate(90deg); }
.twgb { padding: 10px 14px 14px; background: #f4f7f9; border-bottom: 1px solid #e6ecef; }
.twgb .card { margin: 0 !important; padding: 12px 14px !important; }
.twgb .card > h2 { display: none; }
.twgb .prow { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.twgb .prow:last-child { margin-bottom: 0; }
.twnone { margin: 0; padding: 22px 16px; text-align: center; color: var(--sub); font-size: 14px; }
.twpop.narrow { width: 200px; padding: 4px; }
.twpop.narrow .who { padding: 10px 11px 8px; border-bottom: 1px solid #eef2f4; margin-bottom: 4px; }
.twpop.narrow .who b { display: block; }
.twpop.narrow .who small { color: var(--sub); font-size: 12.5px; }
.twpop.narrow button, .twmenu button { display: block; width: 100%; border: 0; background: none; text-align: left; padding: 9px 11px; border-radius: 7px; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.twpop.narrow button:hover, .twmenu button:hover { background: #f4f7f9; }
.twmodal { max-width: 440px; max-height: 86vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.twmodal h3 { margin: 0; font-size: 17px; font-weight: 800; }
.twmodal select, .twmodal textarea { margin: 0; }
.twmodal .row .btn { margin-top: 4px; }
/* 홈 */
.twhero { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.twhero h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.3px; font-variant-numeric: tabular-nums; color: var(--text); }
.twhero h2 b { color: #1f6f9f; }
.twhero .btn { width: auto; margin: 0; flex: none; }
.twsm { color: var(--sub); font-size: 13px; }
.twbetween { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.twbar { height: 10px; border-radius: 5px; background: #e8edf0; overflow: hidden; }
.twbar i { display: block; height: 100%; background: #2a86bd; border-radius: 5px; }
.twtwo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.twpanel { background: #fff; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.twpanel > h3 { margin: 0; padding: 14px 16px; font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.twpanel > h3 small { font-weight: 500; color: var(--sub); font-size: 13px; }
.twpanel > h3 .btn { width: auto; margin: 0; flex: none; }
.twrows > button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid #eef2f4; background: none; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.twrows > button:last-child { border-bottom: 0; }
.twrows > button:hover { background: #f8fafb; }
.twrows b { font-weight: 700; }
.twrows small { color: var(--sub); font-size: 13px; }
.twrows .r, .twlist .r { display: flex; align-items: center; gap: 10px; flex: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.twrows .chev { color: #8b9ba5; }
.twmb { display: block; width: 96px; height: 7px; border-radius: 4px; background: #e8edf0; overflow: hidden; }
.twmb b { display: block; height: 100%; background: #2a86bd; }
.twflag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 6px; white-space: nowrap; background: #eef2f5; color: var(--sub); }
.twflag.bad { background: #fbe9e9; color: #cf3f3f; }
/* 왼쪽 목록 + 오른쪽 내용 */
.twsplit { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: start; }
.twlist { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.twlist > button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 11px 12px; border-radius: 10px; font: inherit; color: var(--text); cursor: pointer; }
.twlist > button:hover { background: #f4f7f9; }
.twlist > button.on { background: #e7f2f8; }
.twlist b { display: block; font-weight: 600; }
.twlist .on b { color: #1f6f9f; font-weight: 700; }
.twlist small { color: var(--sub); font-size: 13px; }
.twlist .r { font-size: 13px; color: var(--sub); gap: 8px; }
.twmore { border-top: 1px solid #eef2f4; padding: 8px; display: flex; flex-direction: column; }
.twmore button { border: 0; background: none; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--sub); font: inherit; font-size: 13.5px; cursor: pointer; }
.twmore button:hover { background: #f4f7f9; }
.twpane { min-width: 0; }
.twpane > .card { margin: 0 0 10px !important; }
/* 반: 학생 줄만 */
.twstu > h2 { position: relative; display: flex; align-items: center; gap: 8px; }
.twacts { margin-left: auto; display: flex; gap: 6px; }
.twacts .btn { width: auto; margin: 0; }
.twmenu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 4; min-width: 190px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(24, 48, 63, .16); font-weight: 400; }
.twstu .srow small { display: none; }
.twx { margin-top: 6px; }
.twx > [data-x]:not(.on) { display: none !important; }
.twx > .card, .twx .card { margin: 0 0 10px !important; }
.twxbar { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 8px; font-size: 14px; }
.twxbar .link { width: auto; margin: 0; }
/* 학생: 접힌 줄 */
.twfold > .card:not(.twkeep):not(.twraw), .twfold > div > .card { padding: 0 !important; }
.twfold .card:not(.twkeep):not(.twraw) > h2 { margin: 0; padding: 14px 16px; font-size: 15px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.twfold .card:not(.twkeep):not(.twraw) > h2::after { content: '›'; margin-left: auto; color: #8b9ba5; font-weight: 400; transition: transform .15s; }
.twfold .card:not(.twkeep):not(.twraw) > h2 .lv, .twfold .card:not(.twkeep):not(.twraw) > h2 .pill { margin-left: auto; }
.twfold .card:not(.twkeep):not(.twraw) > h2 .lv ~ *, .twfold .card:not(.twkeep):not(.twraw) > h2:has(.lv)::after, .twfold .card:not(.twkeep):not(.twraw) > h2:has(.pill)::after { margin-left: 8px; }
.twfold .card.open:not(.twkeep):not(.twraw) > h2::after { transform: rotate(90deg); }
.twfold .card:not(.open):not(.twkeep):not(.twraw) > :not(h2) { display: none !important; }
.twfold .card.open:not(.twkeep):not(.twraw) { padding: 0 16px 16px !important; }
.twfold .card.open:not(.twkeep):not(.twraw) > h2 { padding-left: 0; padding-right: 0; }
.twfold .twgone { display: none !important; }
.twfold .twkeep .btn { width: auto; display: inline-block; margin: 10px 6px 0 0; }
.twlinks { display: flex; gap: 14px; margin-top: 8px; }
.twlinks .link { width: auto; margin: 0; }
@media (max-width: 959px) {
  .twsplit { grid-template-columns: minmax(0, 1fr); }
  .twsplit:not(.picked) > .twpane, .twsplit.picked > .twside { display: none; }
  .twtwo { grid-template-columns: minmax(0, 1fr); }
  .twpop { left: 0; right: 0; width: auto; max-width: none; }
  .twpop.narrow { left: auto; width: 200px; }
  .twmb { width: 64px; }
  .twhero h2 { font-size: 22px; }
}
@media (max-width: 699px) { .twsearch { display: none; } }

/* 반 관리: 왼쪽 = 반 드롭다운 + 학생 목록(스크롤 따라옴) · 학습 기록 표 · 배포·상태 한 칸 (2026-11-07) */
.twsplit.twstu { grid-template-columns: 240px minmax(0, 1fr); }
.twside.twsel { position: sticky; top: 12px; max-height: calc(100vh - 24px); display: flex; flex-direction: column; }
.twside.twsel .twlist { overflow-y: auto; }
.twside.twsel > select { margin: 10px 10px 2px; width: calc(100% - 20px); font: inherit; font-weight: 700; padding: 9px 36px 9px 10px; border: 1px solid var(--line); border-radius: 8px; background-color: #f7f9fb; color: var(--text); }
.twtree { padding: 6px; display: flex; flex-direction: column; gap: 1px; }
.twtg > .twtc { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; text-align: left; padding: 10px 10px; border-radius: 8px; font: inherit; color: var(--text); }
.twtg > .twtc::before { content: '▸'; color: #9aa8b1; font-size: 11px; }
.twtg > .twtc b { font-weight: 600; font-size: 14px; }
.twtg > .twtc .r { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
.twtg > .twtc:hover { background: #f4f7f9; }
.twtg.open > .twtc::before { content: '▾'; }
.twtg.cur > .twtc { background: #e7f2f8; }
.twtg.cur > .twtc b { color: #1f6f9f; font-weight: 700; }
.twtg.twno > .twtc b { font-weight: 500; color: var(--sub); }
.twtg.twno > .twtc::before { visibility: hidden; } /* 펼칠 학생이 없음 */
.twtk { display: none; margin: 2px 0 6px 17px; padding-left: 6px; border-left: 2px solid #dbe4ea; flex-direction: column; gap: 1px; }
.twtg.open > .twtk { display: flex; }
.twtk > button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; border: 0; background: none; text-align: left; padding: 6px 10px; border-radius: 7px; font: inherit; font-size: 13px; color: #3c4b56; }
.twtk > button:hover { background: #f4f7f9; }
.twtk > button.on { background: #e7f2f8; color: #1f6f9f; font-weight: 700; }
.twtk .r { font-size: 12px; color: var(--sub); white-space: nowrap; }
.twtk .ok { color: var(--ok); font-weight: 600; }
.twtk .mute { color: #9aa8b1; }
.twtk > .twtgo { display: none; color: #1f6f9f; font-weight: 600; }
.twmic { font-size: 13px; font-style: normal; opacity: .85; cursor: default; }
.twkeep > h2 .twmic { font-size: 15px; margin-left: 2px; }
/* 명단 파일로 반 맞추기 (2026-11-09, roster.js) */
.rsmodal { max-width: 760px; max-height: calc(100vh - 32px); overflow-y: auto; }
.rsmodal h2 { margin: 0 0 10px; font-size: 18px; }
.rs-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.rs-file select { width: auto; min-width: 140px; margin: 0; }
.rs-file .link { width: auto; margin: 0; }
.rs-tabs { margin: 4px 0 10px; }
.rs-sum { font-weight: 700; margin: 6px 0 10px; }
.rs-row { border-top: 1px solid var(--line); padding: 10px 0; }
.rs-row.skip { opacity: .45; }
.rs-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rs-h small { color: var(--sub); font-size: 12px; }
.rs-h select { margin: 0 0 0 auto; width: auto; min-width: 130px; padding-top: 6px; padding-bottom: 6px; }
.rs-cs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.rs-c { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 13px; background: var(--field); color: var(--sub); }
.rs-c small { font-size: 11px; opacity: .8; }
.rs-c.ok { background: var(--okSoft); color: var(--ok); }
.rs-c.mv { background: #e7f2f8; color: #1f6f9f; font-weight: 600; }
.rs-c.no { background: none; border: 1px dashed #c9d3da; }
.rs-c.tw { background: var(--warnSoft); color: var(--warn); }
.rs-only { margin-top: 10px; }
.rs-go { margin-top: 14px; gap: 8px; }
.rs-go .btn { margin: 0; }
/* 하루 시험 양 (2026-11-09) */
.avgchips { margin-top: 8px; }
.avgchips button { min-width: 44px; }
.stavg { margin: 12px 0 4px; }
.stavg > span { display: block; font-size: 13px; color: var(--sub); }
.twdavgbox .avgchips { margin-top: 6px; }
.todo.backlog .t b { color: #5b6772; }
.backleft { margin: 6px 0 2px; text-align: center; }
/* 밀린 단어가 있으면 하늘에 먹구름 — body[data-cloud="1~3"], 다 풀면(.cloud-clear) 걷히고 무지개 */
.topband .storm, .topband .rainbow { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.topband .storm {
  transition: opacity 1.4s ease;
  background:
    radial-gradient(circle 26px at calc(20% - 30px) 44px, #77838e 96%, transparent),
    radial-gradient(circle 36px at 20% 30px, #6a7681 96%, transparent),
    radial-gradient(circle 24px at calc(20% + 34px) 46px, #77838e 96%, transparent),
    radial-gradient(ellipse 78px 16px at 20% 58px, #6a7681 96%, transparent),
    radial-gradient(circle 22px at calc(84% - 26px) 62px, #7f8a94 96%, transparent),
    radial-gradient(circle 30px at 84% 50px, #717d88 96%, transparent),
    radial-gradient(circle 20px at calc(84% + 28px) 64px, #7f8a94 96%, transparent),
    radial-gradient(ellipse 64px 13px at 84% 74px, #717d88 96%, transparent),
    linear-gradient(rgba(62, 74, 85, .72), rgba(62, 74, 85, .18) 78%, rgba(62, 74, 85, 0));
}
body[data-cloud="1"] .topband .storm { opacity: .5; }
body[data-cloud="2"] .topband .storm { opacity: .78; }
body[data-cloud="3"] .topband .storm { opacity: 1; }
/* 먹구름이 끼면 흰 구름은 없앰, 아래 종이 물결만 남김 (원장님 2026-11-09) */
body.sky:is([data-cloud="1"], [data-cloud="2"], [data-cloud="3"]):not([data-section="exam"]) .topband::after { background: radial-gradient(75% 36px at 50% calc(100% + 14px), var(--bg) 98%, transparent); }
.topband .rainbow {
  background: radial-gradient(circle 170px at 50% 190px, transparent 118px, #ff8787 120px 126px, #ffd43b 126px 132px, #8ce99a 132px 138px, #74c0fc 138px 144px, #b197fc 144px 150px, transparent 152px);
}
body.cloud-clear .topband .rainbow { animation: rainbow-in 5s ease forwards; }
@keyframes rainbow-in { 0% { opacity: 0; } 25% { opacity: .9; } 75% { opacity: .9; } 100% { opacity: 0; } }
.twdots { display: inline-flex; gap: 4px; margin-right: 6px; flex: none; }
.twdots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #c9d3da; background: none; }
.twdots i.y { background: var(--ok); border-color: var(--ok); }
.twdots i.t { border-color: #2a86bd; }
.twdots i.f { border-color: #e3e9ed; }
.twdots i.o { border-color: #eef2f4; background: #f4f7f9; }
.twhd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #eef2f4; }
.twhd .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.twhd .t .sm { color: var(--sub); font-size: 12.5px; }
.twhd .btn { width: auto; margin: 0; flex: none; }
.twhide { display: none !important; }
.twset .twlist small { display: block; color: var(--sub); font-size: 12px; margin-top: 1px; }
.twset .twpane > .card, .twset .twpane > div > .card { margin: 0 0 10px !important; }
.twset .twpane .clsplit { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; align-items: start; }
.twside details.twfold { border-top: 1px solid #eef2f4; }
.twside details.twfold > summary { padding: 9px 14px; color: var(--sub); font-size: 13px; cursor: pointer; list-style: none; }
.twside details.twfold > summary::before { content: '▸ '; }
.twside details.twfold[open] > summary::before { content: '▾ '; }
.twside.twsel { overflow-y: auto; } /* 왼쪽 목록은 통째로 한 번만 스크롤 (2026-11-09 — 반 목록·학생 없는 반이 따로 스크롤되며 위 목록이 쪼그라들었음) */
.twside.twsel .twtree, .twside.twsel details.twfold, .twside.twsel .twmore { flex: none; }
.twlist.slim > button { padding: 9px 10px; }
.twlist.slim b { font-size: 14px; }
.twlist.slim .r { font-size: 12.5px; }
.twlist .ok { color: var(--ok); font-weight: 600; }
.twlist .mute { color: #9aa8b1; }
.twkeep > h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.twkeep > h2 .twacts { margin-left: auto; flex-wrap: wrap; }
.twkeep > h2 .twacts .btn { margin: 0; display: inline-block; }
.twlog { display: flex; flex-direction: column; margin-top: 4px; }
.twlogrow { display: grid; grid-template-columns: 84px minmax(0, 1fr) 110px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.twlogrow:last-child { border-bottom: 0; }
.twlogrow.hd { font-size: 12px; color: var(--sub); padding: 2px 0 6px; }
.twlogrow.off { color: #9aa8b1; }
.twlogrow > span { text-align: left; }
.twlogrow > span:nth-child(2) { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; } /* 좁은 폰에서 옆 칸과 겹치던 것: 막대가 줄어듦 (2026-11-10) */
.twlogrow i { flex: 0 1 90px; min-width: 28px; height: 7px; border-radius: 4px; background: #e8edf0; overflow: hidden; }
.twlogrow i b { display: block; height: 100%; background: #2a86bd; }
/* 학습 기록: 테스트 결과를 누르면 그날 본 단어 (2026-12-02) */
.twlt { all: unset; cursor: pointer; padding: 3px 8px; margin: -3px -8px; border-radius: 6px; font: inherit; color: inherit; touch-action: manipulation; }
.twlt:focus-visible { outline: 2px solid #2a86bd; }
.twlt[aria-expanded="true"] { background: #e6f1f8; color: #1c6a99; }
.twlt:disabled { opacity: .5; }
@media (hover: hover) { .twlt:hover { background: #eef2f5; } }
.twlogd { padding: 4px 0 12px; border-bottom: 1px solid var(--line); }
.twlogd h3 { margin: 10px 0 4px; font-size: 12.5px; font-weight: 600; color: var(--sub); }
.twlogd h3 b { color: var(--text, #1f2d36); }
.twlogd ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 18px; }
.twlogd li { display: grid; grid-template-columns: 16px minmax(0, auto) minmax(0, 1fr) auto; gap: 6px; align-items: baseline; padding: 4px 0; font-size: 13.5px; min-width: 0; }
.twlogd li i { font-style: normal; font-weight: 700; }
.twlogd li.ok i { color: var(--ok); }
.twlogd li.no i, .twlogd li.no b { color: #cf3f3f; }
.twlogd li b { font-family: Fredoka, inherit; font-weight: 600; overflow-wrap: anywhere; }
.twlogd li span { color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.twlogd li em { font-style: normal; font-size: 11.5px; color: #9aa8b1; white-space: nowrap; }
.twsub { margin-top: 12px; }
.twsub > h2 { display: none; }
@media (max-width: 959px) {
  .twsplit.twstu, .twset .twpane .clsplit { grid-template-columns: minmax(0, 1fr); } /* 폰은 한 줄 전체 (2026-11-09 — 컴퓨터용 240px 칸이 이겨서 목록이 3분의 2 폭이었음) */
  .twside.twsel { position: static; max-height: none; }
  .twtk > .twtgo { display: flex; }
  .twlogrow { grid-template-columns: 70px minmax(0, 1fr) 88px; gap: 6px; font-size: 13px; }
  /* 좁은 폰: 막대를 글 위로 (옆 칸과 겹치거나 잘리던 것, 2026-11-10) */
  .twlogrow > span:nth-child(2) { flex-direction: column; align-items: stretch; gap: 3px; }
  .twlogrow i { flex: none; width: 100%; max-width: 110px; height: 5px; }
  .twlogrow > span:nth-child(2) { white-space: nowrap; font-size: 11.5px; letter-spacing: -0.2px; } /* 한 줄로 (원장님 2026-11-10 "폰트를 줄여서 2줄로 안 가게") */
}

/* 학생 이름 옆 뒤로가기 (2026-11-06) */
.twkeep > h2 #backBtn { display: inline; width: auto; margin: 0 10px 0 0; padding: 0; border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--sub); vertical-align: 1px; }

/* 선생님 홈: 달력 넓게 + 연속 순위 (2026-11-06 A안) */
.twbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.twhome { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.twhome .card { margin: 0; }
@media (max-width: 959px) { .twhome { grid-template-columns: minmax(0, 1fr); } .twhero .twbetween { display: contents; } .twbtns { order: 3; } .twbtns .btn { flex: 1; } }

/* 단어 시험지 미리 보기 (2026-11-06) */
.modal.wtest.wtprev { max-width: min(1060px, 94vw); height: min(92vh, 880px); box-sizing: border-box; padding: 20px; display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 18px; }
.wtctl { min-width: 0; overflow-y: auto; padding-right: 4px; }
.wtpv { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 10px; border-radius: 12px; background: #e6ecef; }
.wtpvbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.wtpvbar select { width: auto; max-width: 140px; margin: 0; padding: 4px 8px; font-size: 13px; }
.wtpvbar #wtPvN { margin-left: auto; color: var(--sub); font-variant-numeric: tabular-nums; }
.wtpvbody { flex: 1; min-height: 0; overflow-y: auto; }
.wtscale { overflow: hidden; }
.wtpages { width: 210mm; transform-origin: 0 0; color: #000; font-family: "Pretendard", "Malgun Gothic", sans-serif; }
.wtpages .psheet { width: 210mm; height: 296.5mm; box-sizing: border-box; margin: 0 0 8mm; overflow: hidden; background: #fff; box-shadow: 0 1px 6px rgba(30, 50, 60, .2); }
.wtpages .psheet:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .modal.wtest.wtprev { height: auto; max-height: 92vh; overflow-y: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .wtctl { overflow: visible; padding-right: 0; }
  .wtpvbody { flex: none; height: 56vh; }
}

/* 숙제 결과: 왼쪽 학생 목록 + 오른쪽 그 학생 내역 (2026-11-06) */
.xqsplit { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 14px; align-items: start; margin: 10px 0 14px; }
.xqlist { display: flex; flex-direction: column; max-height: 680px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.xqs { display: block; width: 100%; margin: 0; padding: 10px 12px; border: 0; border-bottom: 1px solid #eef2f4; background: none; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.xqs:last-child { border-bottom: 0; }
.xqs.on { background: #e3f0f7; }
.xqs .n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 14px; }
.xqs .n b { font-weight: 700; }
.xqs .n em { font-style: normal; font-size: 12px; font-weight: 700; color: #c4373c; }
.xqs .n .lv { font-size: 12px; }
.xqs .m { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.xqs .m i { flex: 1; height: 5px; border-radius: 3px; background: #e8edf0; overflow: hidden; }
.xqs .m i u { display: block; height: 100%; border-radius: 3px; background: #2a86bd; }
.xqs.none .n b { color: var(--sub); font-weight: 500; }
.xqsplit .xqstu-box { margin: 0; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 14px 16px; }
.xqsum { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--sub); margin-bottom: 10px; }
.xqsum b { color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }
.xqts { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-bottom: 12px; }
.xqts span { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 8px; background: #f3f6f8; font-size: 11.5px; color: var(--sub); }
.xqts b { font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.xqts .ok b { color: #1f7a4d; }
.xqts .bad { background: #fdecec; }
.xqts .bad b { color: #c4373c; }
.xqts .na b { color: var(--sub); font-weight: 400; }
.xqshd { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 14px; }
.xqshd b { flex: 1; }
.xqsplit details.xqw > summary { cursor: pointer; margin: 0; list-style-position: inside; }
.xqall { margin-bottom: 10px; }
@media (max-width: 820px) { .xqsplit { grid-template-columns: minmax(0, 1fr); } .xqlist { max-height: 300px; } }

/* 선생님 담당 반: 맡은 반만 (2026-11-06) */
.tcrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 8px; }
.tcmine { display: flex; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
.tcmine span { padding: 2px 9px; border-radius: 6px; background: #e3f0f7; color: #1f6f9f; font-size: 13px; font-weight: 600; }
.tcmine em { font-style: normal; font-size: 13px; color: var(--sub); }
.tcrow .link { flex: none; width: auto; margin: 0; }
.modal.tcmodal { max-width: 560px; max-height: 88vh; overflow-y: auto; text-align: left; }
.modal.tcmodal h3 { margin: 0 0 12px; }
.modal.tcmodal .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.modal.tcmodal .row { margin-top: 16px; }
body.sky .btn.danger { background: var(--badSoft); color: var(--bad); box-shadow: none; } /* 하늘 테마에서 파란 바탕에 빨간 글자로 보이던 것 */

/* 선생님 숙제 탭 (2026-11-06) */
.twpill { padding: 2px 8px; border-radius: 6px; background: #fdecec; color: #c4373c; font-size: 12px; font-weight: 700; white-space: nowrap; }
.hwc > h2, .hwd > h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hwc #backBtn, .hwd #backBtn { display: inline; width: auto; margin: 0; padding: 0; border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--sub); }
.hwex { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.hwcr { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 12px 4px; border: 0; border-top: 1px solid #eef2f4; background: none; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.hwcr .t { flex: 1; min-width: 0; }
.hwcr .t > b { display: block; font-weight: 700; }
.hwbits { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 3px; font-size: 12.5px; color: var(--sub); }
.hwbits em, .hwi em { font-style: normal; font-weight: 700; }
.hwbits em.ok, .hwi em.ok { color: #1f7a4d; }
.hwbits em.no, .hwi em.no { color: #c4373c; }
.hwcr .n, .hwi .n { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.hwcr.none .t > b { color: var(--sub); font-weight: 500; }
.hwd .hwg-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.hwd .hwg-h > b { flex: 1; min-width: 0; }
.hwd .hwg-h .link { flex: none; width: auto; margin: 0; }
.hwi { border-top: 1px solid #eef2f4; padding: 10px 0; }
.hwi > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.hwi > summary .t { flex: 1; min-width: 0; font-size: 14px; }
.hwi > summary small { color: var(--sub); font-size: 12px; }
.hwi[open] > summary { margin-bottom: 10px; }
.hwd details.xqw > summary { cursor: pointer; margin: 0; }

body.staff.xweb[data-section] .hwd #backBtn { display: inline; } /* 학생 이름 옆 뒤로가기는 넓은 화면에도 */

/* 학생이 푼 시험지 (숙제 탭, 2026-11-06) */
.twsplit.hwsheet { grid-template-columns: 210px minmax(0, 1fr); }
@media (max-width: 959px) { .twsplit.hwsheet { grid-template-columns: minmax(0, 1fr); } }
.hwd .hwg-h { margin-top: 12px; }
.hwex button em { font-style: normal; font-size: 12px; font-weight: 700; margin-left: 3px; }
.hwex button em.ok { color: #1f7a4d; }
.hwex button em.no { color: #c4373c; }
.hwex button.on em { color: inherit; }
.hwpages { min-width: 0; overflow-x: auto; }
#printArea .pzmk { font-style: normal; font-weight: 800; margin-right: 5px; }
#printArea .pzmk.ok { color: #1f7a4d; }
#printArea .pzmk.tri { color: #b26a00; font-size: .85em; }
#printArea .pzmk.no { color: #c4373c; }
#printArea .pzmk.na { color: #6b7d88; font-size: .85em; font-weight: 600; }
#printArea .pzc > span.pzans { color: #1f7a4d; font-weight: 700; }
#printArea .pzc > span.pzpick { color: #c4373c; text-decoration: line-through; }
#printArea .pzc > span .pzs { display: inline-block; text-indent: 0; margin-left: 5px; padding: 0 5px; border-radius: 4px; background: #fdecec; color: #c4373c; font-size: .78em; font-weight: 700; text-decoration: none; }
#printArea .pzc > span.got .pzs { background: #e3f3ea; color: #1f7a4d; }
#printArea .pza .pzok, #printArea .pza.pzok { color: #1f7a4d; font-weight: 700; }
#printArea .pza .pzno { color: #c4373c; }
.xqstu-acts { display: flex; align-items: center; gap: 10px; }
.xqstu-acts .link, .xqstu-acts .btn { width: auto; margin: 0; }

/* 빨간 펜 채점 (2026-11-06) */
#printArea .pznum { position: relative; display: inline-block; min-width: 1.4em; margin: 0 6px 0 4px; text-align: center; }
#printArea .pznum { z-index: 1; }
#printArea .pzpen { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); overflow: visible; pointer-events: none; }
#printArea .pzpen path { fill: none; stroke: #e0241f; stroke-width: 2.6; stroke-linecap: round; }
#printArea .pzpen.x { width: 58px; height: 58px; }
#printArea .pzpen.x path { stroke-width: 2.6; }
#printArea .pzmk { margin: 0 5px 0 8px; }
#printArea .pzmk.tri { color: #e0241f; font-size: .82em; font-weight: 700; }
#printArea .pztitle { position: relative; }
#printArea .pztitle.graded { text-align: left; padding-right: 48mm; min-height: 25mm; box-sizing: border-box; }
#printArea .pztitle.graded h1 { font-size: 15pt; line-height: 1.3; }
#printArea .pztitle.graded table { margin-left: 0; }
#printArea .pzscore { position: absolute; right: 3mm; top: 50%; transform: translateY(-50%) rotate(-7deg); color: #e0241f; font-family: Caveat, "Segoe Print", cursive; line-height: 1; white-space: nowrap; pointer-events: none; }
#printArea .pzscore b { font-size: 62pt; font-weight: 700; }
#printArea .pzscore span { font-size: 26pt; font-weight: 700; margin-left: 2px; }

/* 학부모 리포트 새 화면 (2026-11-06) — 이미지로도 저장 (html2canvas) */
.rp-ctl { max-width: 480px; margin-left: auto; margin-right: auto; }
.report.rp { max-width: 480px; margin: 0 auto 14px; padding: 12px; background: #eef3f4; color: #1f2d36; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; border-radius: 14px; box-shadow: none; }
.rp-head { padding: 18px; border-radius: 14px; background: #293d4b; color: #fff; }
.rp-brand { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rp-brand > span { font-family: Fredoka, sans-serif; font-size: 18px; font-weight: 600; color: #fff; }
.rp-brand > span b { color: #80cabd; font-weight: 600; }
.rp-brand em { font-style: normal; font-size: 12px; color: #c9d6dc; }
.rp-head h1 { margin: 10px 0 0; font-size: 22px; font-weight: 800; color: #fff; }
.rp-head h1 small { font-size: 14px; font-weight: 500; color: #c9d6dc; }
.rp-head > p { margin: 6px 0 12px; font-size: 15px; line-height: 1.55; color: #fff; }
.rp-axes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rp-axes > div { padding: 8px 4px; border-radius: 9px; background: #37505f; text-align: center; }
.rp-axes span { display: block; font-size: 12px; color: #d6e2e6; }
.rp-axes b { display: block; font-size: 13px; letter-spacing: 1px; font-weight: 400; }
.rp-axes b i { font-style: normal; color: #80cabd; }
.rp-axes b u { text-decoration: none; color: #5f7a89; }
.rp-card { padding: 16px; border-radius: 14px; background: #fff; }
.rp-card h2, .rp-goal h2 { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: inherit; }
.rp-card h3 { margin: 14px 0 8px; font-size: 13px; font-weight: 700; }
.rp-card > p { margin: 0; }
.rp-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.rp-3 b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rp-3 b.t { font-size: 18px; line-height: 33px; }
.rp-3 b i { font-style: normal; font-size: 13px; font-weight: 500; color: #5a6e7a; }
.rp-3 span { font-size: 12px; color: #5a6e7a; }
.rp-3 span.up, .rp-hd .up { color: #1f7a4d; font-weight: 700; }
.rp-cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 12px; text-align: center; font-size: 12px; }
.rp-cal em { font-style: normal; color: #5a6e7a; }
.rp-cal > span { height: 34px; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; font-weight: 700; }
.rp-cal small { font-size: 10px; font-weight: 500; }
.rp-cal .ok { background: #dff3ee; color: #176b58; }
.rp-cal .no { background: #fdeee9; color: #b5432b; }
.rp-cal .off { background: #e6ebee; color: #5a6e7a; font-weight: 500; }
.rp-cal .soon { background: #f5f7f8; color: #6b7d88; font-weight: 500; }
.rp-key, .rp-mini { margin: 8px 0 0 !important; font-size: 12.5px; color: #4a5e6a; }
.rp-bar { display: grid; grid-template-columns: 90px minmax(0, 1fr) 44px; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.rp-bar > div { height: 14px; border-radius: 4px; background: #edf1f3; overflow: hidden; }
.rp-bar i { display: block; height: 100%; }
.rp-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.rp-bar.t > div { height: 10px; border-radius: 5px; }
.rp-bar.t i { background: #80cabd; }
.rp-bar.low i { background: #e39a7f; }
.rp-bar.low b { color: #b5432b; }
.rp-cum { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; align-items: end; }
.rp-cum > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; font-size: 11px; }
.rp-cum b { font-weight: 700; }
.rp-cum i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: #9bd3c8; }
.rp-cum i.now { background: #293d4b; }
.rp-cum span { color: #5a6e7a; }
.rp-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 12px; text-align: center; font-size: 12px; color: #5a6e7a; }
.rp-stages > div { padding: 6px 2px; border-radius: 7px; background: #f3f6f7; }
.rp-stages b { display: block; font-size: 15px; color: #1f2d36; }
.rp-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rp-hd span { font-size: 13px; color: #5a6e7a; }
.rp-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rp-2 h2 { font-size: 15px; margin-bottom: 8px; }
.rp-2 p { margin: 0; padding: 3px 0; font-size: 13px; }
.rp-2 p span { color: #5a6e7a; }
.rp-kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #edf1f3; }
.rp-tip { background: #e9f6f3; }
.rp-goal { padding: 16px; border-radius: 14px; background: #293d4b; color: #fff; }
.rp-goal .rp-3 b { color: #80cabd; font-size: 20px; }
.rp-goal .rp-3 span { color: #d6e2e6; }
.rp .r-foot { text-align: center; font-size: 11.5px; color: #5a6e7a; }


/* 기다릴 때 상태 게이지 (2026-11-06, common.js) */
.gbusy { --gfill: rgba(42, 134, 189, .3); background-image: linear-gradient(90deg, var(--gfill) var(--gp, 0%), rgba(42, 134, 189, .08) var(--gp, 0%)) !important; opacity: 1 !important; }
.btn.gbusy:not(.ghost):not(.soft) { --gfill: rgba(255, 255, 255, .34); }
.btn.gbusy:not(.ghost):not(.soft) { background-image: linear-gradient(90deg, var(--gfill) var(--gp, 0%), rgba(255, 255, 255, .06) var(--gp, 0%)) !important; }
p.hint.gbusy, .toast.gbusy { display: block; padding: 8px 10px; border-radius: 8px; }
.gbusy::after { content: attr(data-gleft); display: block; margin-top: 2px; font-size: .86em; font-weight: 600; font-variant-numeric: tabular-nums; }

/* 시험대비 시험 화면 정리 (원장님 2026-11-06, 시안 tools/exam-tidy-mock.html): 왼쪽 시험 목록 + 숙제 줄 + 덜 한 학생부터 + 접힌 줄 */
.twsplit.xesplit { grid-template-columns: 280px minmax(0, 1fr); gap: 14px; }
#xDups:empty { display: none; }
.xesplit .twside { position: sticky; top: 10px; max-height: calc(100vh - 20px); overflow-y: auto; }
.xepane { display: flex; flex-direction: column; gap: 14px; }
.xepane > .card { margin: 0 !important; }
.xepane > .card[hidden] { display: none; }
.xelv { padding: 10px 12px 0; flex-wrap: wrap; }
.xeflag { display: block; margin-top: 4px; }
.xesplit .twlist .r .xd { white-space: nowrap; }
.xewarn { color: #b96f05 !important; }
.xempty { padding: 14px 16px; margin: 0; }
.xehead { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.xeht { min-width: 0; }
.xeht h2 { margin: 0 0 2px; font-size: 17px; font-weight: 800; text-wrap: balance; }
.xeacts { display: flex; align-items: center; gap: 8px; flex: none; }
.xeacts .btn { width: auto; margin: 0; }
.xed { white-space: nowrap; }
.xehead .twmenu { right: 12px; top: calc(100% - 8px); }
.xehead .twmenu button:disabled { color: var(--sub); opacity: .6; cursor: default; }
.xenext { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px; }
.xenx small { display: block; color: var(--sub); font-size: 13px; }
.xenx b { display: block; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.xenext .btn { width: auto; margin: 0; flex: none; }
.xetodo { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 16px; background: #fdf1dd; font-size: 14px; }
.xetodo .btn { width: auto; margin: 0; flex: none; }
#xsTodo:empty { display: none; }
.xerhead { padding: 8px 16px; font-size: 12px; color: var(--sub); background: #fafbfc; border-block: 1px solid #eef2f4; }
.xerows > button { padding: 11px 16px; }
.xerows > button:last-child { border-radius: 0 0 12px 12px; }
.xerows small { display: block; }
.xerows .r > span:not(.chev):not(.xflag):not(.xok) { font-size: 14px; }
.xefold { border-bottom: 1px solid #eef2f4; }
.xefold:last-child { border-bottom: 0; }
.xefold > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
.xefold > summary::-webkit-details-marker { display: none; }
.xefold > summary:hover { background: #f8fafb; }
.xefold > summary b { font-weight: 600; }
.xefold > summary .s { display: flex; align-items: center; gap: 10px; color: var(--sub); font-size: 13.5px; min-width: 0; text-align: right; }
.xefold > summary .chev { color: #8b9ba5; transition: transform .15s; }
.xefold[open] > summary .chev { transform: rotate(90deg); }
.xefc { padding: 2px 16px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.xefc > :empty { display: none; }
.xefc .card { margin: 0; }
body[data-section="exam"] .xefc .xto { color: var(--sub); } /* 흰 글씨(예전 파란 머리용)라 안 보이던 것 */
.xefc .xtiles { margin-top: 0; }
.xefc .xtiles div { background: #f4f7f9; border-radius: 10px; }
.xefc .btn { width: auto; margin: 0; }
.xefc #xsPickBox .btn { width: 100%; }
.xefold2 > summary { cursor: pointer; color: var(--sub); font-size: 13.5px; padding: 4px 0; }
.xefold2 .xtable { margin-top: 8px; }
.xeli-w { display: flex; flex-direction: column; }
.xeli { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef2f4; font-size: 14px; font-variant-numeric: tabular-nums; }
.xeli:last-child { border-bottom: 0; }
.xeli .link { width: auto; margin: 0; flex: none; }
.xeli .xsrow { flex: 1; min-width: 0; }
.xeli em { font-style: normal; margin-left: 4px; font-size: 13px; }
.xeli em.ok { color: #1c8f63; }
.xeli em.no { color: #cf3f3f; }
.xecrumb, .xallb { align-self: flex-start; width: auto; margin: 0; }
.xallb { display: none; }
@media (max-width: 959px) {
  .twsplit.xesplit { grid-template-columns: minmax(0, 1fr); }
  .xesplit .twside { position: static; max-height: none; }
  .xallb { display: block; }
}

/* 단어 배포 (원장님 2026-11-06, 시안 tools/dist-tidy-mock.html): 왼쪽 반 + 오른쪽 다음 배포, 시험대비 화면과 같은 틀(.xesplit .xehead .xenext .xefold) */
.twdtop .btn { display: inline-block !important; padding: 8px 12px; font-size: 13.5px; }
#twdBody { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
#twdBody > .card { margin: 0; }
.twdacts { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.twdacts .btn { width: auto; margin: 0; }
.twdlast { padding: 9px 16px; border-top: 1px solid #eef2f4; font-size: 13.5px; color: var(--sub); }
.twdbad { background: #fbe9e9; }
.twdoff { padding: 14px 16px; }
.twdoff > b { display: block; margin-bottom: 2px; }
.twdset { margin: 0; padding: 0; background: none; border: 0; }
.twdset .chips { margin: 0; }
.twdiff { padding: 0 16px; }
.twdiff .xeli b { font-weight: 700; flex: none; }
.twdr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.twdr .btn, .twdr .link { width: auto; margin: 0; }
.xefc .twdr { justify-content: flex-start; }
.twdm .modal { max-width: 560px; max-height: 88vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.twdm .modal h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.twdhow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.twdhow .btn { width: auto; margin: 0; padding: 11px 4px; }
.twdfoot { position: sticky; bottom: -20px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px; padding: 10px 0 2px; background: var(--card); border-top: 1px solid var(--line); }
.twdfoot .btn { width: auto; margin: 0; }
.twdfoot .btn[hidden] { display: none; }
.twdfoot #dSend { flex: 1 1 200px; }
.twdm .who-head { margin-top: 10px; }
.twdm .who-head .link { width: auto; margin: 0; }
.twdm #dTypeBox .btn { margin-top: 8px; }
@media (max-width: 520px) { .twdhow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 학원 관리 '반 · 학생': 반 목록은 이름·학생 수만, 이름 변경·삭제는 오른쪽 반 제목 옆 (원장님 2026-11-09) */
#clsRoster > h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#clsRoster .clsacts { margin-left: auto; display: flex; gap: 6px; }
#clsRoster .clsacts .btn { width: auto; margin: 0; }
#clsRoster .clsren { flex: 1; flex-wrap: nowrap; gap: 6px; }
#clsRoster .clsren input { flex: 1; min-width: 0; margin: 0; }
#clsRoster .clsren .btn { width: auto; margin: 0; flex: none; }
#clsList .cls-row .cls-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#clsList .cls-row > .lv { flex: none; }

/* 학생 상태 글자 표시 (원장님 2026-11-09): 잠시 멈춤 = 밀린 단어 때문에 새 단어가 안 감, 완전 멈춤 = 쉬기 */
.pill.held { background: #fff3d6; color: #a86a00; }
.twkeep > h2 .twmic.pill { font-size: 12px; opacity: 1; margin-left: 4px; vertical-align: 2px; }

/* 학생 상세 연속 기록 (원장님 2026-11-10) — 5일부터 불꽃 색 */
.stsk { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; padding: 4px 11px 4px 8px; border-radius: 999px; background: #fff3e0; color: #c2410c; font-size: 13.5px; }
.stsk svg { width: 17px; height: 17px; flex: none; }
.stsk b { font-weight: 800; }
.stsk small { font-size: 12px; color: #9a5a2c; font-weight: 600; margin-left: 2px; }
.stsk.cold { background: #eef1f4; color: #55616d; }
.stsk.cold svg { filter: grayscale(1); opacity: .55; }
.stsk.cold small { color: #7a8591; }

/* ===== 레벨 테스트 · 처음 시작하기 (원장님 2026-11-10) ===== */
.ltgrades { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.ltgrades .chip { min-width: 54px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line, #dfe8ec); background: #fff; color: var(--ink, #17384b); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.ltgrades .chip.on { background: #2a86bd; border-color: #2a86bd; color: #fff; }
.lt-path { display: block; width: 100%; max-width: 440px; height: auto; margin: 6px auto 2px; }
.lt-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 0; font-size: 12px; color: #61727a; }
.lt-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.lt-legend i.ok { background: #2f9e6e; } .lt-legend i.no { background: #e0574f; } .lt-legend i.sk { background: #a8b4ba; }
.lt-legend i.ln { width: 14px; height: 0; border-radius: 0; border-top: 2px dashed #2a86bd; vertical-align: 3px; }
.lt-place { margin: 0; } .lt-place b { display: block; font-size: 18px; color: #1f6f62; }
.lt-place small, .onbplace small { display: block; font-size: 12px; color: #61727a; margin-top: 2px; }
.onbcard { padding: 26px 22px 22px; }
.onbcard h2 { font-size: 21px; line-height: 1.4; margin: 0 0 6px; }
.onbcard > label { display: block; font-weight: 800; margin-top: 18px; }
.onbsub { margin: 4px 0 0; font-size: 14px; color: #5f7d8d; }
.onbcard .btn { width: 100%; margin-top: 18px; }
.onbcard .link { display: block; width: 100%; margin-top: 10px; text-align: center; }
.onbbooks { display: grid; gap: 10px; margin: 14px 0 0; }
.onbbook { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line, #dfe8ec); background: #fff; font: inherit; text-align: left; cursor: pointer; color: var(--ink, #17384b); }
.onbbook b { font-size: 17px; } .onbbook small { color: #61727a; font-size: 13px; }
.onbbook.on { border-color: #2a86bd; background: #eaf5fb; box-shadow: inset 0 0 0 1px #2a86bd; }
.onbplace { margin-top: 16px; padding: 16px; border-radius: 14px; background: #eaf5fb; text-align: center; }
.onbplace span { display: block; font-size: 12.5px; color: #5f7d8d; }
.onbplace b { display: block; font-size: 22px; color: #1d6fa3; margin-top: 2px; }
.onbamts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 8px; }
.onbamt { padding: 16px 0 12px; border-radius: 14px; border: 1.5px solid var(--line, #dfe8ec); background: #fff; font: inherit; cursor: pointer; color: var(--ink, #17384b); }
.onbamt b { display: block; font-family: Fredoka, Pretendard, sans-serif; font-size: 28px; line-height: 1.1; }
.onbamt small { font-size: 12.5px; color: #61727a; }
.onbamt.on { background: #2a86bd; border-color: #2a86bd; color: #fff; } .onbamt.on small { color: #e3f2fb; }
.onbwelcome { text-align: center; }
.onbwelcome h2 { font-size: 20px; margin-top: 4px; }
.onbwelcome p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.7; color: #4b6676; }
.onbsun { font-size: 44px; line-height: 1; color: #f2b417; }
.onbsum { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.onbsum span { padding: 6px 12px; border-radius: 99px; background: #eaf5fb; color: #1d6fa3; font-weight: 700; font-size: 13.5px; }
.guestor { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; color: #8aa0ab; font-size: 12.5px; }
.guestor::before, .guestor::after { content: ''; flex: 1; height: 1px; background: #dfe8ec; }
.guestagree { text-align: center; font-size: 12px; color: #8aa0ab; margin-top: 6px; }
/* 로그인 · 가입 화면 (2026-11-21 다시 짬): 로그인 = 큰 버튼 둘 · 가입 = 코드 → 가입하는 사람 → 필요한 칸만 */
.authcard #toSignup { margin-top: 4px; }
.authfoot { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 18px; }
.authfoot a { font-size: 12.5px; color: var(--sub); text-decoration: none; padding: 4px 0; }
.brand.small { padding-bottom: 14px; }
.brand.small .emblem, .brand.small .emblem.appicon, body.sky .brand.small .emblem.appicon { width: 72px; height: 72px; }
.brand.small .emblem img, .brand.small .emblem.appicon img { width: 72px; height: 72px; border-radius: 18px; }
.brand.small .logo.big { font-size: 26px; }
.brand.small .app, .brand.small .motto { display: none; }
.toast.ok { color: var(--main); font-weight: 700; }
.toast.ok::before { content: '✓ '; }
.startrow { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 15px 16px; border: 1.5px solid #dbe8ee; border-radius: 16px; background: #fff; color: var(--text); font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.startrow b { font-size: 15px; font-weight: 700; }
.startrow span { font-size: 12.5px; color: var(--sub); }
.startrow::after { content: '›'; margin-left: auto; font-size: 20px; line-height: 1; color: #9fb3bd; }
.startrow:disabled { opacity: .6; }
@media (hover: hover) { .startrow:hover { border-color: var(--main); background: var(--mainSoft); } }
.rolepick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rolepick button { padding: 14px 4px; border: 1.5px solid #dbe8ee; border-radius: 14px; background: #fff; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.rolepick button.on { border-color: var(--main); background: var(--main); color: #fff; }
.rolepick.four { grid-template-columns: repeat(4, 1fr); }
.rolepick.four button { font-size: 14.5px; padding: 13px 2px; }
#noCode #toApply { margin-top: 8px; }
#noCode #guestBtn { margin: 14px auto 0; }
.authcard textarea { width: 100%; border: 0; border-radius: 14px; background: var(--field); padding: 12px 14px; font: inherit; color: var(--text); resize: vertical; }
.apctl { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.apctl select { flex: 1 1 110px; min-width: 0; padding: 9px 10px; font-size: 14px; }
.apmemo { margin: 6px 0 0; font-size: 14px; }
.joinbar { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--mainSoft); }
.joinbar div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.joinbar b { font-size: 15px; color: var(--main); }
.joinbar span { font-size: 12.5px; color: var(--sub); }
.joinbar .link { margin: 0 0 0 auto; padding: 6px 0; white-space: nowrap; text-decoration: underline; }
.guestagree a { color: inherit; }
.card.guestcap { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; background: #fff8e3; border-color: #f4dc95; }
.card.guestcap small { color: #7a6a3a; }
/* 새 학생 레벨 테스트 홈 카드 (2026-11-11) */
.card.ltcard { display: flex; align-items: center; gap: 12px; border: 2px solid #2a86bd; }
.ltcard .t { flex: 1; min-width: 0; }
.ltcard .t b { display: block; font-size: 16px; }
.ltcard .t small { display: block; font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.ltcard .btn { width: auto; flex: none; }
/* 필수공부 (2026-11-13): 칸은 주황(아직) · 초록(다 함), 자물쇠는 작게. 큰 안내 상자 없이 칸 안 숫자만 */
.srange.lab button.must { background: #fff6e3; border-color: #f0a028; }
.srange.lab button.must b, .srange.lab button.must small { color: #b06d06; }
.srange.lab button.must.on { background: #f0a028; border-color: #f0a028; box-shadow: 0 4px 12px rgba(240, 160, 40, .3); }
.srange.lab button.must.on span, .srange.lab button.must.on b, .srange.lab button.must.on small { color: #fff; }
.srange.lab button.mustok { background: #e5f6ee; border-color: #2f9e6e; }
.srange.lab button.mustok b, .srange.lab button.mustok small { color: #2f9e6e; }
.srange.lab button.mustok.on { background: #2f9e6e; border-color: #2f9e6e; }
.srange.lab button.mustok.on span, .srange.lab button.mustok.on b, .srange.lab button.mustok.on small { color: #fff; }
.lockic { vertical-align: -1px; }
.gatesteps { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; }
.gatesteps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid #e3ebef; background: #fff; }
.gatesteps li i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 14px; background: #e3ebef; color: #6b7f8a; }
.gatesteps li div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gatesteps li b { font-size: 15px; }
.gatesteps li small { font-size: 12.5px; color: var(--sub); }
.gatesteps li.cur { border-color: #f0a028; background: #fff6e3; }
.gatesteps li.cur i { background: #f0a028; color: #fff; }
.gatesteps li.cur b, .gatesteps li.cur small { color: #8a5605; }
.gatesteps li.lock { opacity: .6; }
.gatenext.ok { color: #2f9e6e; font-weight: 700; }
.gateline { margin: 10px 0 12px; padding: 10px 12px; border-radius: 12px; background: #fff6e3; color: #8a5605; font-size: 14px; line-height: 1.5; }
.gateline b { color: #8a5605; }
.gateline span { display: block; font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.gatenext { margin: 14px 0 8px; text-align: center; color: #8a5605; font-size: 13.5px; font-weight: 600; }
.btn.must { background: #f0a028; border-color: #f0a028; color: #fff; }
body.sky .btn.must { background: #f0a028; color: #fff; box-shadow: 0 3px 0 #c47f12; }
/* 시험대비 어휘 지문 칸 (exam.js xPassTiles, 원장님 2026-11-13): 지문 번호 크게 · 단어 n개 · 맞힌 만큼 막대 */
.srange.xpt button { min-height: 0; padding: 10px 6px 9px; gap: 4px; }
.srange.xpt span { order: 0; font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.2; word-break: keep-all; text-align: center; }
.srange.xpt b { order: 1; font-size: 15px; font-weight: 700; color: var(--main); line-height: 1.1; }
.srange.xpt b i { font-style: normal; font-size: 12px; font-weight: 600; margin-left: 1px; }
.srange.xpt em { order: 2; display: block; width: 78%; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 2px; }
.srange.xpt em i { display: block; height: 100%; background: var(--main); border-radius: 3px; }
.srange.xpt small { order: 3; font-size: 11px; font-weight: 600; color: var(--sub); line-height: 1.2; }
.srange.xpt button.full { border-color: #2f9e6e; background: #eef8f3; }
.srange.xpt button.full em i { background: #2f9e6e; }
.srange.xpt button.full small { color: #2f9e6e; }
.srange.xpt button.on, .srange.xpt button.full.on { background: var(--main); border-color: var(--main); }
.srange.xpt button.on span, .srange.xpt button.on b, .srange.xpt button.on small { color: #fff; }
.srange.xpt button.on em { background: rgba(255, 255, 255, .3); }
.srange.xpt button.on em i { background: #fff; }
/* 시험 범위에서 뺀 지문 줄 (exam.js renderXSent data-poff, 원장님 2026-11-16) */
.xtable tr.xpoff td { opacity: .5; }
.xtable tr.xpoff td:last-child { opacity: 1; }
/* 시험대비 시험 이름 = 받는 곳 + 범위 칩 (exam.js setTitleHtml, 원장님 2026-11-16 '범위가 한눈에 안 들어와') */
.stt { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.stt-to { font-weight: 800; }
.stt-r { display: flex; flex-wrap: wrap; gap: 4px; }
.rch { display: inline-block; font-size: 12.5px; font-weight: 700; line-height: 1.3; padding: 2px 9px; border-radius: 999px; background: #e3f4ef; color: #1d6b5c; white-space: nowrap; letter-spacing: 0; }
.rch.mock { background: #eeeafb; color: #5a45a6; }
h2 .rch { font-size: 13.5px; padding: 3px 10px; }
/* 시험 화면 학생 명단: 기본 접힘 (원장님 2026-11-16 '명단이 길면 보기 불편') */
.xestu { border-top: 1px solid var(--line); }
.xestu > .xefold { border: 0; }
/* 뺀 지문은 표 맨 아래, 첫 줄 위에 굵은 선 (원장님 2026-11-16) */
.xtable tr.xpoff1 td { border-top: 2px solid var(--line); }
/* 범위·지문 표: 지문 이름 = 지문 화면, 단어 n개 = 그 지문 단어 펼침 (원장님 2026-11-16) */
.xtable .xnm.xpwb { font-weight: 600; }
.xtable tr.xpwr td { background: var(--bg2, #f6f8fa); padding-top: 8px; padding-bottom: 10px; }
.xpwl { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; line-height: 1.5; }
.xpwl span { white-space: nowrap; }
.xpwl b { font-weight: 700; }
.xtable td .xnm { color: var(--main); }

/* 듣기 문제: 소리가 아직 안 났을 때 '눌러서 듣기' 강조 (2026-11-18) */
.speaker.need { outline: 3px solid color-mix(in srgb, var(--main) 55%, transparent); outline-offset: 3px; animation: speakNeed 1.2s ease-in-out infinite; }
@keyframes speakNeed { 50% { outline-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .speaker.need { animation: none; } }

/* 달력: 그달 일정 줄을 누르면 고치기 창 · 일정 색 10가지 (2026-11-18) */
button.uprowb { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 0; font: inherit; font-size: 14px; color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.uprowb:first-child { border-top: 0; }
button.uprowb .ugo { flex: none; color: var(--sub); font-size: 18px; line-height: 1; padding: 0 4px; }
button.uprowb:focus-visible { outline: 2px solid var(--main); outline-offset: -2px; border-radius: 8px; }
button.uprowb:active { background: color-mix(in srgb, var(--main) 10%, transparent); }
@media (hover: hover) { button.uprowb:hover { background: color-mix(in srgb, var(--main) 7%, transparent); } }
.cecolors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cecolors button { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid transparent; cursor: pointer; display: grid; place-items: center; font-size: 15px; font-weight: 800; line-height: 1; }
.cecolors button.on { border-color: currentColor; box-shadow: 0 0 0 2px var(--card) inset; }
.cecolors button.on::after { content: '✓'; }
.cecolors button:focus-visible { outline: 2px solid var(--main); outline-offset: 2px; }
.caledit h3 { margin: 0 0 4px; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.caledit .cedates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.caledit .cedates > div { min-width: 0; }
.caledit .cecolors { margin-top: 0; gap: 6px; }
.caledit .cecolors button { width: 26px; height: 26px; font-size: 13px; }
.caledit .celab { font-size: 13px; color: var(--sub); margin: 16px 0 6px; }
.caledit .row .btn.danger { flex: none; width: auto; padding-left: 16px; padding-right: 16px; }

/* 단어 숙제 (2026-11-20): 숙제 내기 '단어' 칸 · 학생 숙제 화면 · 선생님 결과 표 */
.hwnew .hnkind { margin-top: 12px; }
.hwnew .hnkind button { padding: 7px 16px; font-weight: 700; }
.hwnew .hnwords label { margin: 0 0 6px; }
.hwnew .hnwords textarea { margin: 0; min-height: 76px; resize: vertical; }
.hwnew .hnwbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.hwnew .hnwbtns .btn { width: auto; margin: 0; }
.hwnew .hnwbtns .btn.ghost.on { border-color: var(--main); color: var(--main); }
.hwnew .hnwbtns .link { margin-left: auto; }
.hwnew .hnwlib { margin-top: 10px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; }
.hwnew .hnwlib select { margin: 0 0 8px; }
.hwnew .hnwunits { max-height: 150px; overflow-y: auto; }
.hwnew .hnwmsg { min-height: 18px; margin-top: 8px; }
.hwnew .hnwords .implist { max-height: 46vh; }
.hwnew .hnflow { margin: 0; padding-top: 4px; }
/* 영영풀이 (2026-11-27): 숙제 내기 단어 아래 칸 · 학생 테스트 문제 글 · 카드 · 목록 */
.hwnew .hnwdefs { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.hwnew .hnwdefs summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.hwnew .hnwdefs summary small { font-weight: 600; color: var(--sub); margin-left: 4px; }
.hwnew .hnwdeflist { max-height: 40vh; overflow-y: auto; margin-top: 8px; display: grid; gap: 6px; }
.hwnew .hnwdef { display: grid; grid-template-columns: minmax(70px, 120px) 1fr; gap: 8px; align-items: center; }
.hwnew .hnwdef span { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.hwnew .hnwdef input { margin: 0; }
.hwnew .hnwdef input.miss { border-color: var(--warn, #e0a800); }
.qdef { font-size: 21px; font-weight: 700; line-height: 1.5; margin: 16px 0 6px; overflow-wrap: anywhere; }
.qdef.sm { font-size: 15px; font-weight: 500; color: var(--sub); margin: 2px 0 8px; }
.flash .fc-def { font-size: 15px; line-height: 1.5; color: var(--sub); margin-top: 8px; }
.xitem small.def { font-size: 13px; }
@media (min-width: 960px) { .hwnew .hnwords .implist { max-height: calc(100vh - 470px); min-height: 180px; } }
.hww .hwwst { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-bottom: 12px; }
.hww .hwwst > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.hww .hwwst span { display: block; font-size: 13px; font-weight: 700; color: var(--sub); }
.hww .hwwst b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 2px 0 6px; }
.hww .hwwst b i { font-style: normal; font-size: 14px; font-weight: 600; color: var(--sub); }
.hww .hwwst em { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.hww .hwwst em i { display: block; height: 100%; border-radius: 99px; background: var(--main); }
.hww .hwwst .full { border-color: var(--ok); }
.hww .hwwst .full em i { background: var(--ok); }
.hww #hwwGo { width: 100%; margin: 0; }
.hww .hwwdone { font-weight: 800; color: var(--ok); margin-bottom: 10px; }
.hww .hwwagain .btn { margin: 0; }
.hwwres { overflow-x: auto; }
.hwwres table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hwwres th { text-align: left; font-size: 12px; font-weight: 700; color: var(--sub); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hwwres td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hwwres td.en { font-weight: 700; }
.hwwres td.ok { color: var(--ok); font-weight: 700; white-space: nowrap; }
.hwwres td.bad { color: var(--bad); font-weight: 700; white-space: nowrap; }
.hwwres td.no { color: var(--sub); white-space: nowrap; }
.hwwres td small { font-weight: 500; color: var(--sub); }
.hwwres tr.hwwpart th { padding-top: 14px; font-size: 13px; color: var(--text); background: none; }
.hwwres tr.hwwpart th small { font-weight: 600; color: var(--sub); margin-left: 4px; }
.hww #hwwAct .btn { margin: 0; }
.hww #hwwAct #hwwGo { width: 100%; }

/* 레벨 테스트 보내기 (2026-11-21) */
.ltask .chips button small { font-weight: 400; opacity: .7; margin-left: 2px; }
.ltask h3 { margin: 0 0 12px; }
#twLt.on { color: var(--main); border-color: var(--main); }

/* 당겨서 새로고침 (설치한 앱에서만, app.js setupPullRefresh, 2026-11-22) */
.ptr { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 8px); left: 50%; z-index: 1000; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(20, 40, 60, .22); display: grid; place-items: center; transform: translate(-50%, -48px); opacity: 0; pointer-events: none; color: var(--main); font-size: 20px; font-weight: 800; }
.ptr span { display: block; transition: transform .2s ease; }
.ptr.go span { transform: rotate(180deg); }
.ptr.back { transition: transform .25s ease, opacity .25s ease; }
.ptr.spin span { animation: ptrSpin .7s linear infinite; }
@keyframes ptrSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ptr.spin span { animation: none; } }

/* 교재 시작 유닛 창 (2026-11-23) */
.modal.startunit h2 { margin: 0 0 12px; }
.modal.startunit label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 4px; }
.modal.startunit select { width: 100%; }
.modal.startunit p { margin: 12px 0 0; }
.modal.startunit .row { margin-top: 16px; }

/* 연속 기록 부활 (2026-11-29): 불꽃은 꺼진 채 예전 숫자를 흐리게, 아래 한 줄은 주황 */
.card.streak.revive .sk-num b, .card.streak.revive .sk-num span { opacity: .38; }
.card.streak.revive .sk-num svg { filter: grayscale(1); opacity: .5; }
.card.streak .skrv { color: #d9650a; font-weight: 700; }

/* 영작 시험지 (2026-11-30): 만들기 창 · 인쇄 쪽 (.pzpage 틀을 같이 씀 — 화면 밖에서 재서 쪽을 나눔) */
.xsmk { display: flex; flex-wrap: wrap; gap: 8px; }
.xsmk .btn { width: auto; margin: 0; }
.modal.wsm { max-width: 760px; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; }
.modal.wsm input:not([type=checkbox]) { margin: 0; }
.wsm textarea.wsko { display: block; width: 100%; margin: 0; min-height: 0; resize: none; overflow: hidden; line-height: 1.5; }
.wsm .wsunit { margin: 10px 0 -2px; font-weight: 700; font-size: 15px; }
.wsm .wsgl { margin: 8px 0 4px; font-size: 12.5px; font-weight: 600; opacity: .7; }
.wsm .wsg { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.wsm .wsgh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 14px; }
.wsm .wsrow { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.wsm .wsrow:first-of-type { border-top: 0; }
.wsm .wsrow > input { margin: 4px 0 0; width: 18px; height: 18px; }
.wsm .wsrow.off > div { opacity: .45; }
.wsm .wsen { font-size: 13px; color: var(--sub); line-height: 1.5; margin-bottom: 4px; overflow-wrap: anywhere; }
.wsm .wsen i { font-style: normal; font-weight: 700; color: var(--main); }
.wsm .wsmhead, .wsm .wsmrow { display: grid; grid-template-columns: 1fr 1fr 32px; gap: 8px; align-items: center; }
.wsm .wsmhead { font-size: 12px; color: var(--sub); margin-bottom: 4px; }
.wsm .wsmrow { margin-bottom: 6px; }
.wsm .wsmrow .wx { border: 0; background: none; font-size: 18px; color: var(--sub); cursor: pointer; padding: 4px; }
.wsm .wsbtns { display: flex; align-items: center; gap: 10px; }
.wsm .wsbtns .btn { width: auto; margin: 0; }
.wsm .wsopts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; }
.modal.wtest.wsm .wsopts label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 500; color: var(--text); }
.wsm .wsmsg { min-height: 18px; margin-top: 10px; }
.wsm > .row { position: sticky; bottom: -20px; background: var(--card); padding: 10px 0 0; margin-top: 6px; }
@media (max-width: 599px) { .wsm .wsmhead { display: none; } .wsm .wsmrow { grid-template-columns: 1fr 32px; } .wsm .wsmrow input:nth-child(2) { grid-column: 1; grid-row: 2; } .wsm .wsmrow .wx { grid-row: 1 / span 2; grid-column: 2; } }
#printArea .wspage { font-size: var(--wsf, 10.5pt); line-height: 1.5; }
#printArea .wsrun { justify-content: space-between; gap: 0; }
#printArea .wsrun > span:last-child { font-size: 8.5pt; font-weight: 500; color: #555; }
#printArea .wshead { flex: none; display: flex; align-items: stretch; gap: 12px; margin: 3mm 0 0; padding: 3mm 4mm; border-radius: 3mm; background: #eef8f6; border: 1px solid #cfe9e3; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
#printArea .wshead .t { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
#printArea .wshead small { font-size: 7pt; font-weight: 700; letter-spacing: .18em; color: #3f9d8d; }
#printArea .wshead h1 { margin: 1px 0 0; font-size: 16pt; line-height: 1.25; font-weight: 800; letter-spacing: -.3px; color: #1d2730; }
#printArea .wshead h1 em { font-style: normal; font-size: 9pt; color: #fff; background: #d0533f; border-radius: 99px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
#printArea .wshead .b { flex: none; display: flex; flex-direction: column; gap: 1.5mm; justify-content: center; }
#printArea .wshead .b > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid #cfe9e3; border-radius: 2mm; padding: 0 3mm; width: 44mm; height: 7mm; box-sizing: border-box; font-size: 8pt; color: #5c6b72; font-weight: 600; }
#printArea .wshead .b b { font-size: 9pt; color: #1d2730; }
#printArea .wsdir { flex: none; margin: 2.5mm 0 0; font-size: 9pt; font-weight: 600; color: #3f9d8d; }
#printArea .wsbody { flex: 1; min-height: 0; display: flex; gap: 8mm; margin-top: 3mm; }
#printArea .wscol { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; overflow: hidden; }
#printArea .wsq { padding-bottom: var(--wsg, 4mm); break-inside: avoid; }
#printArea .wsk { display: flex; gap: 2mm; align-items: flex-start; }
#printArea .wsn { flex: none; width: 5mm; height: 5mm; margin-top: .12em; border-radius: 50%; background: #293d4b; color: #fff; font-size: 7.5pt; line-height: 1; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
#printArea .wst { font-weight: 600; color: #1d2730; }
#printArea .wst i { font-style: normal; font-weight: 700; color: #3f9d8d; margin-right: 1.5mm; }
#printArea .wsl { height: var(--wsl, 8mm); margin-left: 7mm; border-bottom: 1px solid #b7c2c7; box-sizing: border-box; }
#printArea .wskey .wsn { background: #5fb8a8; }
#printArea .wskey .wsa { color: #1d2730; }

/* 라이브러리 교재 여러 개 지우기 (2026-11-30) */
.libcard .book.libhold { transform: scale(.97); box-shadow: 0 0 0 2px var(--main) inset; transition: transform .12s; }
.libpickbar { position: sticky; top: 8px; z-index: 3; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 4px 14px rgba(0,0,0,.08); font-size: 14px; }
.libpickbar .sp { flex: 1; }
.libpickbar .btn { width: auto; margin: 0; }
.libcard.picking [data-book] { position: relative; cursor: pointer; }
.libcard.picking [data-book]::after { content: ""; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: #fff; box-sizing: border-box; }
.libcard.picking [data-book].picked { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad) inset; }
.libcard.picking [data-book].picked::after { border-color: var(--bad); background: var(--bad) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.libcard.picking [data-book] .bk-top { padding-right: 26px; }
.libcard.picking [data-rbook], .libcard.picking .book.add { opacity: .45; pointer-events: none; }

/* 반 즐겨찾기 별 (원장님 2026-12-04): 반 관리·숙제 왼쪽 목록, 단어 배포 반 목록, 선생님 내 정보. 별표한 반은 위에, 나머지는 '다른 반'으로 접힘 */
.twstar { flex: none; width: 34px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 17px; line-height: 1; color: #c3ced6; cursor: pointer; touch-action: manipulation; }
.twstar.on { color: #f2b705; }
@media (hover: hover) { .twstar:hover { background: #eef2f5; color: #d9a400; } }
.twtg { position: relative; }
.twtg > .twstar { position: absolute; right: 2px; top: 2px; }
.twtg > .twtc { padding-right: 38px; }
.twlist > .twli { position: relative; }
.twlist > .twli > [data-dcls] { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 11px 40px 11px 12px; border-radius: 10px; font: inherit; color: var(--text); cursor: pointer; }
.twlist > .twli > [data-dcls]:hover { background: #f4f7f9; }
.twlist > .twli > [data-dcls].on { background: #e7f2f8; }
.twlist > .twli > .twstar { position: absolute; right: 4px; top: 6px; }
.kv.clsstar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tcrow[hidden] { display: none; }

/* 카카오톡 문의 버튼 · 무료 이용 기간 안내 (2026-12-06) */
.btn.kakao, a.btn.kakao { background: #FEE500; color: #191919; border-color: #FEE500; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.card.trialcard { display: flex; align-items: center; gap: 12px; justify-content: space-between; border: 1.5px solid #f5b94a; background: #fff8e6; }
.card.trialcard.over { border-color: #e8836b; background: #fff1ec; }
.card.trialcard .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card.trialcard .t small { color: #6b5a3a; }
.card.trialcard .btn.kakao { flex: none; white-space: nowrap; margin: 0; }
@media (max-width: 420px) { .card.trialcard { flex-direction: column; align-items: stretch; } }
/* 문의 = 카카오톡 · 인스타그램 DM (2026-12-06) */
.helpbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.helpbtns .btn { flex: 1 1 140px; margin: 0; }
.btn.insta, a.btn.insta { background: linear-gradient(45deg, #f9a23a, #e1306c 55%, #833ab4); color: #fff; border-color: transparent; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.card.helpcard { display: flex; flex-direction: column; gap: 10px; }
.card.helpcard > b { font-size: 15px; }
.modal.helpwelcome { text-align: center; }
.modal.helpwelcome .helpbtns { margin: 14px 0 8px; }
.card.trialcard .helpbtns { flex: none; }
@media (max-width: 420px) { .card.trialcard .helpbtns { width: 100%; } }

/* ----- 학원 이름 글꼴 · 글자 로고 (2026-12-06 학원 정보 '이름 모양') ----- */
.bf b { font-weight: inherit; letter-spacing: inherit; }
body.sky .logo .bf { letter-spacing: -.3px; }
nav::before { font-family: var(--bfont, inherit); font-weight: var(--bfw, 800); }
.bwm { display: inline-flex; align-items: center; line-height: 1; vertical-align: middle; }
.bwm img { height: 1.3em; width: auto; max-width: 100%; display: inline-block; }
.bwm .wd { display: none; }
body[data-section="exam"] header .bwm.hasd .wl, .rp-brand .bwm.hasd .wl, .bfp.eve .bwm.hasd .wl { display: none; }
body[data-section="exam"] header .bwm.hasd .wd, .rp-brand .bwm.hasd .wd, .bfp.eve .bwm.hasd .wd { display: inline-block; }
body[data-section="exam"] header .bf b, .rp-brand .bf b { color: var(--logoB, #ffd77a) !important; }
.bfp.eve .bf b { color: #ffd77a !important; }
/* 어두운 바탕용 그림이 없으면 어두운 곳에서는 흰 받침 위에 (색 그대로) */
body[data-section="exam"] header .bwm:not(.hasd), .rp-brand .bwm:not(.hasd), .bfp.eve .bwm:not(.hasd) { background: rgba(255, 255, 255, .94); border-radius: 8px; padding: 3px 8px; }
.logo.big .bwm img { height: 1.4em; }
.bfbox h3 { margin: 18px 0 8px; font-size: 15px; }
.bfbox .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bfbox .chips button { border: 1.5px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 7px 13px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.bfbox .chips button.on { border-color: var(--main); background: color-mix(in srgb, var(--main) 12%, var(--card)); color: var(--main); }
.bfbox .bfmode { margin-bottom: 10px; }
.bfgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.bfgrid button { border: 1.5px solid var(--line); background: var(--card); color: var(--text); border-radius: 12px; padding: 10px 6px 7px; cursor: pointer; font-family: inherit; min-width: 0; }
.bfgrid button.on { border-color: var(--main); box-shadow: 0 0 0 2px color-mix(in srgb, var(--main) 25%, transparent); }
.bfgrid .bfn { display: block; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bfgrid small { display: block; font-size: 11px; color: var(--sub); margin-top: 4px; font-weight: 600; }
.bfopts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.bfopts > span { font-size: 13px; font-weight: 700; color: var(--sub); min-width: 56px; }
.bfcols { display: flex; flex-wrap: wrap; gap: 6px; }
.bfcols button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); font-family: inherit; font-size: 10px; font-weight: 700; color: var(--sub); cursor: pointer; padding: 0; }
.bfcols button.on { outline: 3px solid var(--main); outline-offset: 2px; }
.bfp { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-radius: 12px; padding: 12px 14px; margin-top: 8px; }
.bfp .logo { font-size: 24px; min-width: 0; overflow: hidden; }
.bfp small { font-size: 11px; opacity: .7; flex: none; }
.bfp.day { background: linear-gradient(#8ccbe6 70%, #d9eff8); color: #17384b; }
.bfp.day .logo b:not([style]) { color: #1d6fa3; }
.bfp.eve { background: linear-gradient(#1f2f57 70%, #f0a868); color: #eef1ff; }
.bfp.paper { background: #fff; border: 1px solid var(--line); border-bottom: 2px solid #80cabd; color: #293d4b; }
.bfp.paper .logo b:not([style]) { color: #5fb8a8; }
.bfp .logo:not(:has(.bf)):not(:has(.bwm)) { font-family: "Fredoka", Pretendard, sans-serif; font-weight: 500; }
.wmrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0; }
.wmthumb { height: 52px; min-width: 110px; max-width: 220px; border: 1px dashed var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 6px; font-size: 12px; color: var(--sub);
  background: repeating-conic-gradient(#eef1f3 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.wmthumb.dark { background: #1f2f57; color: #c9d1e6; }
.wmthumb img { max-height: 40px; max-width: 200px; }
.wmlab { font-size: 13px; font-weight: 700; color: var(--sub); }

/* 글자 색: 색상표 칸 · 누르면 칠해지는 글자 (2026-12-06) */
.bfwell { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; flex: none; box-shadow: inset 0 0 0 2px #fff; }
.bfwell input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.bfletters { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.bfletters button { min-width: 52px; height: 60px; padding: 0 8px; font: inherit; font-size: 34px; line-height: 1; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--card); color: #17384b; cursor: pointer; }
.bfletters button:hover { border-color: var(--main); }
.bfletters i { width: 14px; }
body[data-section="exam"] header .bf .ch.dk, .rp-brand .bf .ch.dk, .bfp.eve .bf .ch.dk { color: #fff !important; }
