/* 코니논술 화면 스타일(2026-11-24, 코니영단어의 app.css에서 시작).
   코니수학과 같은 틀(연회색 바탕, 흰 카드, 턱 있는 버튼, 굵기 500·700, 채움 색 위 글자는 ink)이되
   기본 색(--main)은 붉은색 계열입니다(2026-11-24 이재민 결정, 기본 캐릭터 동그라미의 색. 코니수학 하늘색, 코니영단어 에메랄드와 구분).
   버튼 바탕은 동그라미 색(--red #fe5b49)보다 밝은 산호색(--main #ff8a7a)이라 ink 글자가 잘 보이고, 턱은 --main-shade.
   --main: 기본 행동·선택, 초록: 정답·완료·저장됨, 파랑: 도움·안내, 노랑: 성취.
   주의·오류는 진한 빨강 글자(--red-deep)와 문구로 알립니다(기본 색과 같은 계열이라 색만으로 구분하지 않음).
   영단어 풀이 화면용 스타일이 아직 남아 있습니다(풀이 화면을 만들 때 정리). */
@font-face { font-family: 'Pretendard'; font-weight: 500; font-display: swap; src: url('/static/fonts/Pretendard-Medium.sub.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 700; font-display: swap; src: url('/static/fonts/Pretendard-Bold.sub.woff2') format('woff2'); }
:root {
  --main:#ff8a7a; --main-shade:#e8604f; --main-tint:#ffe9e5; --main-deep:#a01d0c; --main-soft:#ffc9c1;
  --yellow:#f7d84a; --yellow-shade:#edbc41; --yellow-tint:#fef8de; --yellow-deep:#6b5800;
  --green:#a9ce5d; --green-shade:#8fb347; --green-tint:#eef6dd; --green-deep:#476018;
  --blue:#4fc5eb; --blue-shade:#3bafd4; --blue-tint:#dff5fb; --blue-deep:#0b5f7a;
  --red:#fe5b49; --red-shade:#ee4e3e; --red-tint:#ffe1de; --red-deep:#b01200;
  --ink:#2b2320; --body:#55473f; --muted:#6a5c55;
  --canvas:#f8f5f4; --surface:#ffffff; --hairline:#ebe4e2; --ledge:#ddd3d0; --border-strong:#968c89;
  --font-sans:"Pretendard","Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 500 16px/1.6 var(--font-sans); word-break: keep-all; overflow-wrap: anywhere; overflow-x: hidden; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, .intro, .tip, .mcard p, .authhero p { text-wrap: balance; }
button, input, select { font-family: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ── 공통: 버튼, 카드, 칩 ── */
.btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 18px; border-radius: 540px; border: 2px solid var(--hairline); background: var(--surface); color: var(--body); font: 700 17px/1.2 var(--font-sans); white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--ledge); margin-bottom: 4px; transition: transform .07s ease-out, box-shadow .07s ease-out; }
.btn.primary { background: var(--main); border-color: var(--main); color: var(--ink); box-shadow: 0 4px 0 var(--main-shade); }
.btn.yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--yellow-shade); }
.btn.danger { background: var(--red-tint); border-color: var(--red-tint); color: var(--red-deep); box-shadow: 0 4px 0 #f5c4bf; }
.btn.small { min-height: 44px; font-size: 15px; padding: 0 14px; box-shadow: 0 3px 0 var(--ledge); }
.btn.small.primary { box-shadow: 0 3px 0 var(--main-shade); }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--ledge); }
.btn.primary:active:not(:disabled) { box-shadow: 0 1px 0 var(--main-shade); }
.btn.yellow:active:not(:disabled) { box-shadow: 0 1px 0 var(--yellow-shade); }
.btn:disabled { background: var(--canvas); border-color: var(--hairline); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btns form.inbtns { display: contents; }   /* 버튼 줄 안의 폼: 폼 속 버튼도 옆 버튼과 같은 크기로 나란히 */
.linkbtn { border: none; background: none; color: var(--muted); font: 700 14px var(--font-sans); cursor: pointer; padding: 10px 4px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 22px 20px; margin-bottom: 14px; }
.card h1 { font-size: 22px; line-height: 1.35; margin-bottom: 6px; }
.card h2 { font-size: 17px; line-height: 1.4; margin-bottom: 12px; }
.card p { color: var(--body); margin-bottom: 10px; } .card p:last-child { margin-bottom: 0; }
.eyebrow { font: 700 13px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--main-deep); margin-bottom: 4px; }
.note { font-size: 13px; line-height: 1.55; color: var(--muted); }
.err { background: var(--red-tint); color: var(--red-deep); border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.okmsg { background: var(--green-tint); color: var(--green-deep); border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.dangertext { color: var(--red-deep); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 540px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.chip.done { background: var(--main); } .chip.now { background: var(--yellow); } .chip.on { background: var(--main); }
.chip.gray { background: var(--surface); color: var(--body); border: 1px solid var(--hairline); }
.chip.rest { background: var(--canvas); color: var(--body); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 540px; background: var(--canvas); font-size: 15px; line-height: 1.4; } .chips li b { font-weight: 700; letter-spacing: .02em; }
.chips li.weak { background: var(--red-tint); color: var(--red-deep); } .chips li.strong { background: var(--main-tint); color: var(--main-deep); }
.streak { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--yellow-deep); background: var(--yellow-tint); border-radius: 540px; padding: 6px 12px; }
.streak::before { content: ""; width: 14px; height: 14px; background: var(--yellow); clip-path: polygon(50% 0, 63% 35%, 100% 38%, 71% 61%, 81% 98%, 50% 77%, 19% 98%, 29% 61%, 0 38%, 37% 35%); }

/* ── 브랜드 ── */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--ink); padding: 16px 0 12px; text-decoration: none; white-space: nowrap; }
.brand .mark { display: flex; gap: 2px; } .brand .mark svg { width: 13px; height: 13px; }   /* 크기는 코니수학과 같게(2026-11-23) */
.brand .logo { height: .96em; width: auto; display: block; flex: none; }
.brand .logo.txt { height: auto; line-height: 1; letter-spacing: -.01em; }   /* 글자 로고(로고 파일을 받기 전) */

/* ── 화면 틀 ── */
.wrap { max-width: 600px; margin: 0 auto; padding: 0 16px calc(48px + var(--safe-b)); }
.wrap.wide { max-width: 1040px; }
.wrap.auth { max-width: 460px; padding-top: 12px; }
.rowhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pagetitle { font-size: 24px; line-height: 1.3; margin: 22px 0 14px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; } .pagehead .pagetitle { margin: 0; }

/* 보호자·관리자 메뉴: 넓은 화면은 왼쪽 세로 메뉴, 좁은 화면은 위 띠 + 아래 탭 */
.mtop { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--hairline); }
.mtop .brand { padding: 12px 0; }
.side { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; gap: 2px; padding: 6px 8px calc(6px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--hairline); overflow-x: auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.side .brand, .side .sidefoot { display: none; }
.side a.nv { flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 14px; color: var(--muted); font: 700 12px/1.3 var(--font-sans); text-decoration: none; white-space: nowrap; }
.side a.nv svg { width: 26px; height: 26px; flex: none; }
.side a.nv.on { background: var(--main-tint); color: var(--main-deep); }
.side ~ .wrap { padding-bottom: calc(104px + var(--safe-b)); }
.side ~ .wrap > .card:first-child { margin-top: 16px; }
.side ~ .wrap > .hello:first-child { margin-top: 18px; }
/* 720px 이상: 왼쪽 사이드바(아이콘 위·글자 아래의 좁은 띠), 1100px 이상: 글자까지 나란한 넓은 사이드바 — 코니수학과 같은 틀 */
@media (min-width: 720px) {
  .mtop { display: none; }
  .side { --sw: 88px; top: 0; right: auto; width: var(--sw); flex-direction: column; gap: 4px; padding: 14px 8px 16px; border-top: none; border-right: 1px solid var(--hairline); overflow: visible; }
  .side .brand { display: inline-flex; justify-content: center; padding: 6px 0 14px; font-size: 0; gap: 0; }
  .side .brand .logo { display: none; }
  .side .brand .mark { display: grid; grid-template-columns: 18px 18px; gap: 3px; } .side .brand .mark svg { width: 18px; height: 18px; }
  .side a.nv { flex: none; padding: 10px 2px; font-size: 11px; white-space: normal; text-align: center; line-height: 1.25; }
  .side .sidefoot { display: block; margin-top: auto; text-align: center; } .side .sidefoot .note { display: none; }
  .side .sidefoot .linkbtn { font-size: 12px; padding: 8px 2px; justify-content: center; }
  .side ~ .wrap { margin-left: calc(88px + max(24px, (100vw - 88px - 1040px) / 2)); margin-right: max(24px, (100vw - 88px - 1040px) / 2); max-width: none; padding-bottom: 60px; }
  .side ~ .wrap.narrow { margin-left: calc(88px + max(24px, (100vw - 88px - 640px) / 2)); margin-right: max(24px, (100vw - 88px - 640px) / 2); }
}
@media (min-width: 1100px) {
  .side { --sw: 224px; padding: 8px 14px 16px; }
  .side .brand { justify-content: flex-start; padding: 16px 8px 18px; font-size: 18px; gap: 8px; }
  .side .brand .logo { display: block; }
  .side .brand .mark { display: flex; gap: 2px; } .side .brand .mark svg { width: 13px; height: 13px; }
  .side a.nv { flex-direction: row; gap: 12px; padding: 11px 12px; font-size: 15px; white-space: nowrap; text-align: left; }
  .side .sidefoot { text-align: left; padding: 0 8px; } .side .sidefoot .note { display: block; } .side .sidefoot .linkbtn { font-size: 14px; justify-content: flex-start; }
  .side ~ .wrap { margin-left: calc(224px + max(24px, (100vw - 224px - 1040px) / 2)); margin-right: max(24px, (100vw - 224px - 1040px) / 2); }
  .side ~ .wrap.narrow { margin-left: calc(224px + max(24px, (100vw - 224px - 640px) / 2)); margin-right: max(24px, (100vw - 224px - 640px) / 2); }
}

/* ── 풀이 화면 ── */
.app { max-width: 600px; margin: 0 auto; padding: 0 16px calc(170px + var(--safe-b)); }
header.solve { display: flex; align-items: center; gap: 10px; padding: 10px 0 10px; }
.ib { border: none; background: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; }
.ib svg { width: 30px; height: 30px; }
.bar { flex: 1; height: 15px; background: var(--hairline); border-radius: 540px; overflow: hidden; }
.bar > div { height: 100%; width: 0; border-radius: 540px; background: var(--main); transition: width .9s cubic-bezier(.22, 1, .36, 1); }
header.solve .phase { font-size: 12px; font-weight: 700; color: var(--main-deep); background: var(--main-tint); border-radius: 540px; padding: 5px 10px; white-space: nowrap; }
header.solve .phase:empty { display: none; }
.qcard { background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; padding: 20px 18px 22px; }
.qhead { display: flex; gap: 12px; align-items: center; }
.qhead img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.qhead > div { min-width: 0; }
.say { font-size: 13px; font-weight: 700; color: var(--main-deep); line-height: 1.4; }
.intro { font-size: 19px; font-weight: 700; line-height: 1.4; margin-top: 2px; }

/* 소리 듣기 버튼 */
.listen { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 20px 0 4px; }
.play { width: 92px; height: 92px; border-radius: 50%; border: none; background: var(--main); box-shadow: 0 6px 0 var(--main-shade); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; padding: 0; margin-bottom: 6px; transition: transform .07s ease-out, box-shadow .07s ease-out; }
.play svg { width: 46px; height: 46px; }
.play:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--main-shade); }
.play.small { width: 52px; height: 52px; box-shadow: 0 4px 0 var(--main-shade); margin-bottom: 4px; }
.play.small svg { width: 26px; height: 26px; }
.play.small:active { transform: translateY(3px); }
.play.ring { animation: ring .9s ease-out 1; }
@keyframes ring { 0% { box-shadow: 0 6px 0 var(--main-shade), 0 0 0 0 rgba(79,211,154,.55); } 100% { box-shadow: 0 6px 0 var(--main-shade), 0 0 0 22px rgba(79,211,154,0); } }
.slow { min-height: 44px; padding: 0 16px; border-radius: 540px; border: 2px solid var(--hairline); background: var(--surface); box-shadow: 0 3px 0 var(--ledge); font: 700 15px/1 var(--font-sans); color: var(--body); cursor: pointer; margin-bottom: 3px; }
.slow:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ledge); }

/* 영어 단어: 영어 공책의 네 줄 위에 씀(기준선은 빨강, 가운데 줄은 점선) */
.word { text-align: center; margin: 18px 0 6px; }
.word span { display: inline-block; max-width: 100%; padding: 0 .45em; font: 700 50px/1.4 var(--font-sans); letter-spacing: .04em;
  background:
    linear-gradient(var(--hairline), var(--hairline)) 0 .30em / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--hairline) 0 6px, transparent 6px 12px) 0 .49em / 100% 2px no-repeat,
    linear-gradient(#f6b3ab, #f6b3ab) 0 1.04em / 100% 2px no-repeat,
    linear-gradient(var(--hairline), var(--hairline)) 0 1.27em / 100% 2px no-repeat; }
.word.long span { font-size: 38px; }

/* 그림 보기 2×2: 그림은 칸 안에 절대 위치로 넣어 어떤 브라우저에서도 칸 밖으로 나가지 않게 함 */
.pics, .wordchoices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 18px; }
.pic { position: relative; display: block; width: 100%; min-width: 0; height: 0; padding: 0 0 78%; overflow: hidden; border-radius: 18px; border: 2px solid var(--hairline); background: var(--surface); box-shadow: 0 4px 0 var(--ledge); cursor: pointer; margin-bottom: 4px; transition: transform .07s ease-out, box-shadow .07s ease-out; }
.pic img { position: absolute; left: 8%; top: 6%; width: 84%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.pic .lab { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); padding: 0 10px; font: 700 21px/1.3 var(--font-sans); color: var(--ink); text-align: center; }
.pic .n { position: absolute; z-index: 1; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--canvas); color: var(--body); font: 700 14px/26px var(--font-sans); text-align: center; }
.pic:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ledge); }
.pic.sel { border-color: var(--main-shade); background: var(--main-tint); box-shadow: 0 4px 0 var(--main-shade); }
.pic.sel .n { background: var(--main); color: var(--ink); }
.pic.text { height: 84px; padding: 0; }
.wordpick .lab { font-size: 24px; letter-spacing: .03em; }

/* 철자: 그림 + 답 칸 + 글자 타일 */
.cue { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 16px 0 4px; }
.cuepic { position: relative; width: 148px; height: 116px; flex: none; border-radius: 18px; background: var(--canvas); overflow: hidden; }
.cuepic img { position: absolute; left: 6%; top: 6%; width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.cuepic .lab { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); padding: 0 8px; font: 700 20px/1.3 var(--font-sans); text-align: center; }
.cueside { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.cue .ko { font-size: 18px; font-weight: 700; color: var(--body); line-height: 1.3; }
.slots { display: flex; justify-content: center; gap: 6px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.slot { width: 48px; height: 58px; border-radius: 12px; border: 2px dashed var(--border-strong); background: var(--surface); font: 700 32px/1 var(--font-sans); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.slot.fill { border-style: solid; border-color: var(--main-shade); background: var(--main-tint); }
.slot.next { border-color: var(--main-shade); box-shadow: 0 0 0 3px var(--main-tint); }
.slot.given { border: none; background: none; width: 30px; cursor: default; border-bottom: 3px solid var(--ink); border-radius: 0; }
.tiles { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 4px; }
.tile { width: 56px; height: 58px; border-radius: 14px; border: 2px solid var(--hairline); background: var(--surface); box-shadow: 0 4px 0 var(--ledge); font: 700 29px/1 var(--font-sans); color: var(--ink); cursor: pointer; padding: 0; margin-bottom: 4px; transition: transform .07s ease-out, box-shadow .07s ease-out; }
.tile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ledge); }
.tile.used { visibility: hidden; }
.tip { text-align: center; font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 10px; }

/* 새 단어 카드, 문장 빈칸, 도움 */
.wordcard { text-align: center; }
.cardpic { position: relative; width: min(190px, 60%); margin: 8px auto 0; }
.cardpic::before { content: ""; display: block; padding-bottom: 100%; }
.cardpic img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cardko { font-size: 20px; font-weight: 700; color: var(--body); }
.examples { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline); display: grid; gap: 12px; text-align: left; }
.example { display: flex; gap: 12px; align-items: center; } .example > div { min-width: 0; }
.example .en, .hintbox .en { font-size: 18px; font-weight: 700; line-height: 1.4; }
.example .ko, .hintbox .ko { font-size: 14px; color: var(--body); line-height: 1.5; }
.sentence { text-align: center; font: 700 26px/1.6 var(--font-sans); margin: 20px 0 4px; }
.gapbox { display: inline-block; width: 84px; height: 32px; border-bottom: 4px solid var(--main-shade); border-radius: 6px 6px 0 0; background: var(--main-tint); vertical-align: -6px; margin: 0 4px; }
.sentko { text-align: center; font-size: 15px; color: var(--body); }
.hintbox { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--blue-tint); color: var(--ink); font-size: 16px; line-height: 1.5; }
.hintbox b { color: var(--blue-deep); margin-right: 6px; } .hintbox .hl { font-weight: 700; font-size: 20px; letter-spacing: .03em; }

/* 아래 버튼 띠와 결과 시트 */
footer.fixed { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; background: var(--canvas); border-top: 1px solid var(--hairline); }
.fin { max-width: 600px; margin: 0 auto; padding: 12px 16px calc(14px + var(--safe-b)); display: flex; gap: 8px; }
.fin .btn { min-height: 56px; padding: 0 12px; }
.fin .btn.idk { flex: 0 0 auto; padding: 0 16px; font-size: 16px; }
.sheet { position: fixed; z-index: 11; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--hairline); border-radius: 22px 22px 0 0; box-shadow: 0 -4px 14px rgba(43,35,32,.1); transform: translateY(100%); transition: transform .25s ease; visibility: hidden; }
.sheet.show { transform: none; visibility: visible; }
.sheet.good { background: var(--main-tint); }
.sheet .msg { max-width: 600px; margin: 0 auto; padding: 16px 16px 0; display: flex; gap: 12px; align-items: center; }
.sheet .msg img { width: 68px; height: 68px; object-fit: contain; flex: none; }
.sheet .msg > div { min-width: 0; }
.sheet h2 { font-size: 20px; line-height: 1.3; margin-bottom: 2px; }
.sheet.good h2 { color: var(--main-deep); }
.sheet p { font-size: 15px; line-height: 1.45; color: var(--body); }
.sheet .ans { font: 700 22px/1.3 var(--font-sans); letter-spacing: .03em; color: var(--ink); }
.sheet .anko { font-size: 15px; color: var(--body); letter-spacing: 0; margin-left: 4px; } .sheet .exko { font-size: 14px; }
.sheet .why { display: inline-block; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--red-tint); color: var(--red-deep); font-size: 14px; font-weight: 700; line-height: 1.4; }
.sheet .ex { margin-top: 6px; font-weight: 700; color: var(--ink); }

/* ── 학생 화면: 미션, 완료 ── */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 6px 2px 14px; }
.hello h1 { font-size: 26px; line-height: 1.25; }
.mcard { text-align: center; padding: 26px 22px 24px; border: none; background: var(--main-tint); }
.mcard.done { background: var(--yellow-tint); }
.mcard img { width: 132px; height: 132px; object-fit: contain; display: block; margin: 0 auto 8px; }
.mcard h1 { font-size: 23px; } .mcard p { margin: 0 auto; max-width: 30em; }
.mcard .btns { justify-content: center; } .mcard .btn { flex: 0 1 280px; min-height: 58px; font-size: 18px; }
.hero { display: flex; gap: 16px; align-items: center; } .hero img { width: 96px; height: 96px; object-fit: contain; flex: none; } .hero > div { min-width: 0; flex: 1; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--canvas); border-radius: 16px; padding: 12px 12px 11px; text-align: center; min-width: 0; }
.kpi b { display: block; font-size: 26px; line-height: 1.2; } .kpi b small { font-size: 14px; color: var(--muted); font-weight: 500; }
.kpi span { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); }
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi.k1 b { color: var(--blue-deep); } .kpi.k2 b { color: var(--yellow-deep); } .kpi.k3 b { color: var(--main-deep); }
.stack { display: flex; height: 14px; border-radius: 540px; overflow: hidden; background: var(--hairline); margin-top: 14px; }
.stack i { display: block; height: 100%; } .stack .s3 { background: var(--main); } .stack .s2 { background: var(--yellow); } .stack .s1 { background: var(--blue); }
.stackcap { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ── 목록, 폼 ── */
.plist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.plist a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 10px 16px; border-radius: 16px; border: 2px solid var(--hairline); box-shadow: 0 3px 0 var(--ledge); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.4; text-decoration: none; margin-bottom: 3px; }
.plist a:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ledge); }
.plist a span { flex: none; font-size: 14px; color: var(--main-deep); }
.form { display: grid; gap: 12px; } .form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--body); }
.form input, .form select { width: 100%; min-height: 54px; padding: 0 14px; border: 2px solid var(--hairline); border-radius: 14px; background: var(--canvas); font: 500 17px var(--font-sans); color: var(--ink); min-width: 0; -webkit-appearance: none; appearance: none; }
.form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%232b2320' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 22px; padding-right: 40px; }
.form input:focus, .form select:focus { border-color: var(--main-shade); background-color: var(--surface); outline: none; }
.form .note { margin-top: -6px; }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; line-height: 1.55; }
.form label.check input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; -webkit-appearance: auto; appearance: auto; accent-color: var(--main-shade); }
.form label.check a { color: var(--main-deep); font-weight: 700; }
.form.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.form.inline input { flex: 1; min-height: 44px; width: auto; } .form.inline .btn { flex: none; min-height: 44px; }
.form.setrow { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-bottom: 14px; } .form.setrow .btn { flex: none; }
.authhero { text-align: center; padding: 8px 0 14px; } .authhero img { width: 120px; height: 120px; object-fit: contain; }
video.hvid { display: block; margin: 0 auto 8px; width: 150px; height: 150px; object-fit: contain; mix-blend-mode: multiply; background: transparent; pointer-events: none; }
video.hvid.four { width: 100%; max-width: 340px; height: auto; aspect-ratio: 840 / 238; margin: 10px auto 12px; }
.authhero h1 { font-size: 26px; line-height: 1.3; } .authhero p { color: var(--body); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0 4px; } .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

/* ── 보호자 화면 ── */
.scard { padding: 0; overflow: hidden; }
.shead { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 18px 18px 14px; }
.avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--main); color: var(--ink); font: 700 20px/48px var(--font-sans); text-align: center; }
.shead .who { flex: 1 1 150px; min-width: 0; } .sname { display: block; font-size: 19px; line-height: 1.3; } .shead .note { display: block; }
.sstate { display: flex; align-items: center; gap: 10px; padding: 10px 18px; font-size: 14px; font-weight: 700; line-height: 1.4; background: var(--canvas); color: var(--body); }
.sstate.done { background: var(--main-tint); color: var(--main-deep); } .sstate.now { background: var(--yellow-tint); color: var(--yellow-deep); }
.sstate i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.sbody { padding: 16px 18px 18px; }
.sacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; } .sacts .btn { padding: 0 6px; }
.rhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .rhead .who { flex: 1; min-width: 180px; } .rhead h1 { margin: 0; }
.card.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.radar svg { width: 100%; max-width: 380px; display: block; margin: 0 auto; font-family: var(--font-sans); }
.lv { display: grid; grid-template-columns: 96px minmax(0, 1fr) 84px; gap: 10px; align-items: center; margin: 12px 0; font-size: 15px; line-height: 1.3; }
.lv .track { height: 14px; background: var(--hairline); border-radius: 540px; overflow: hidden; } .lv .track div { height: 100%; background: var(--main); border-radius: 540px; }
.lv .track div.weak { background: var(--red); } .lv .track div.strong { background: var(--main-shade); }
.lv .num { text-align: right; font-weight: 700; } .lv small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.daybars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 5px; align-items: end; }
.daybar { text-align: center; font-size: 11px; line-height: 1.3; color: var(--muted); min-width: 0; } .daybar b { display: block; font-size: 12px; color: var(--ink); min-height: 18px; margin-top: 2px; }
.daybar span { display: block; white-space: nowrap; }
.daybar .col { height: 90px; display: flex; align-items: flex-end; background: var(--canvas); border-radius: 8px; overflow: hidden; }
.daybar .col div { width: 100%; background: var(--blue); border-radius: 8px 8px 0 0; } .daybar .col div.mission { background: var(--main); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }

/* ── 관리자 화면 ── */
.tablecard { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; } .tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.tbl th { font-size: 13px; color: var(--muted); background: var(--canvas); } .tbl tr:last-child td { border-bottom: none; }
.tbl .acts a { color: var(--main-deep); font-weight: 700; margin-right: 8px; }
form.mini { display: inline-flex; gap: 6px; align-items: center; } form.mini input { min-height: 36px; padding: 0 8px; border: 1px solid var(--hairline); border-radius: 8px; font: 500 14px var(--font-sans); }
form.mini button { min-height: 36px; padding: 0 12px; border-radius: 540px; border: 1px solid var(--hairline); background: var(--surface); font: 700 13px var(--font-sans); cursor: pointer; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; } .filters .gap { width: 12px; } .filters .form.inline { margin: 0; flex: 1 1 220px; }
.wcard { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 16px; }
.wpic { position: relative; width: 150px; height: 150px; background: var(--canvas); border-radius: 14px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.wpic img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.whead b { font-size: 24px; letter-spacing: .02em; } .whead span { margin-left: 6px; } .wrow { margin-top: 6px; line-height: 1.5; }
.playbtn { min-height: 34px; padding: 0 12px; border-radius: 540px; border: 2px solid var(--hairline); background: var(--surface); font: 700 13px var(--font-sans); cursor: pointer; margin-left: 4px; }
.playbtn:active { background: var(--main); border-color: var(--main); }
.wform { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); font-size: 14px; font-weight: 700; }
.wform select, .wform input { min-height: 42px; padding: 0 10px; border: 2px solid var(--hairline); border-radius: 10px; font: 500 15px var(--font-sans); background: var(--surface); }
.wform input { flex: 1; min-width: 140px; } .wform .btn { flex: none; min-height: 42px; font-size: 15px; }
.pager { align-items: center; justify-content: center; } .pager .btn { flex: 0 0 auto; }
.legal h2 { margin-top: 18px; }


/* ── 등급 배지(코니수학과 같은 그림, engine/figures/trophy.py) ── */
.tiers { list-style: none; display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin: 12px -6px 10px; padding: 0; }
.tiers li { flex: 0 1 38px; min-width: 0; text-align: center; opacity: .5; }
.tiers li span { display: none; }
.tiers li.now { flex: 0 0 104px; opacity: 1; }
.tiers li.now span { display: block; font-size: 15px; font-weight: 700; }
.tiers svg.trophy { display: block; width: 100%; height: auto; }
.tiercard { display: flex; align-items: center; gap: 16px; }
.tierbadge { width: 92px; flex: none; } .tierbadge svg { display: block; width: 100%; height: auto; }
.tierinfo { min-width: 0; } .tierinfo h2 { font-size: 22px; margin-bottom: 4px; } .tierinfo p { font-size: 14px; line-height: 1.5; }
.rechallenge { background: var(--yellow-tint); border-color: var(--yellow-tint); }
.tierchip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--body); white-space: nowrap; }
.tierchip svg { width: 30px; height: auto; flex: none; }
.trophy .tx-shine, .trophy .tx-spark, .trophy .tx-aura, .trophy .tx-star { transform-box: fill-box; transform-origin: center; }
.trophy .tx-glow { opacity: .5; } .trophy .tx-spark { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .trophy .tx-shine { animation: txshine 3s ease-in-out infinite; } .trophy .tx-glow { animation: txglow 2.4s ease-in-out infinite; }
  .trophy .tx-spark { animation: txspark 2.4s ease-in-out infinite; } .trophy .tx-aura { animation: txaura 2.2s ease-in-out infinite; }
  .trophy .tx-leaf { animation: txleaf 2.4s ease-in-out infinite; } .trophy .tx-star { animation: txstar 1.6s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) { .trophy .tx-spark { opacity: .8; } .trophy .tx-shine { display: none; } }
@keyframes txshine { 0% { transform: translateX(0); } 55%, 100% { transform: translateX(150px); } }
@keyframes txglow { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
@keyframes txspark { 0%, 100% { opacity: 0; transform: scale(.3); } 45% { opacity: 1; transform: scale(1); } 70% { opacity: 0; transform: scale(.5); } }
@keyframes txaura { 0%, 100% { transform: scale(.88); opacity: .25; } 50% { transform: scale(1.06); opacity: .6; } }
@keyframes txleaf { 0%, 100% { filter: none; } 50% { filter: brightness(1.25); } }
@keyframes txstar { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* ── 7일 계획 ── */
.plan7 { list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; margin: 4px 0 12px; padding: 0; }
.plan7 li { text-align: center; } .plan7 .wd { display: block; white-space: nowrap; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.plan7 i { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 40px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: var(--canvas); color: var(--body); font: 700 15px/1 var(--font-sans); font-style: normal; }
.plan7 i svg { width: 60%; height: 60%; }
.plan7 li.today .wd { color: var(--main-deep); } .plan7 li.today i { background: var(--main); color: var(--ink); box-shadow: 0 3px 0 var(--main-shade); }
.plan7 li.goal i { background: var(--yellow-tint); } .plan7 li.goal i svg { opacity: .45; }
.plan7 li.goal.today .wd { color: var(--yellow-deep); } .plan7 li.goal.today i { background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-shade); } .plan7 li.goal.today i svg { opacity: 1; }
.plan7 li.past i { background: var(--main-soft); box-shadow: none; }
.plantoday { font-weight: 700; color: var(--ink) !important; }
.planlist { display: grid; gap: 8px; }
.planrow { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 14px; background: var(--canvas); }
.planrow.today { background: var(--main-tint); }
.pday b { display: block; font-size: 17px; line-height: 1.3; } .pday span { font-size: 12px; color: var(--muted); }
.pgoal { font-weight: 700; color: var(--ink) !important; margin-bottom: 8px !important; } .pgoal .note { font-weight: 500; margin-left: 4px; }
.planrow .chips li { background: var(--surface); font-size: 14px; padding: 4px 10px; }

.plab { font-size: 12px !important; font-weight: 700; color: var(--muted) !important; margin: 8px 0 4px !important; }
.chips.rv li { background: var(--yellow-tint) !important; }
.curve svg { display: block; width: 100%; max-width: 560px; margin: 0 auto 8px; font-family: var(--font-sans); }
.lv .num small { display: inline; margin-left: 4px; }

/* ── AI 분석, 한눈에 보기 ── */
.glance, .aigrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }
.aigrid { margin: 14px 0 12px; }
.aibox { border-radius: 16px; padding: 14px 16px; background: var(--canvas); margin-bottom: 12px; }
.glance .aibox, .aigrid .aibox { margin-bottom: 0; }
.aibox h3 { font-size: 14px; margin-bottom: 8px; color: var(--body); }
.aibox p { font-size: 15px; line-height: 1.6; color: var(--ink); margin-bottom: 8px; } .aibox p:last-child { margin-bottom: 0; }
.aibox p b { display: block; }
.glance .aibox p b { display: inline; margin-right: 8px; }
.aibox.good { background: var(--main-tint); } .aibox.good h3 { color: var(--main-deep); }
.aibox.weak { background: var(--red-tint); } .aibox.weak h3 { color: var(--red-deep); }
.aibox.tip { background: var(--blue-tint); } .aibox.tip h3 { color: var(--blue-deep); }
.aiwrap { margin-top: 12px; } .aisum { font-size: 16px; line-height: 1.75; color: var(--ink) !important; white-space: pre-line; }
.ailoading { display: flex; align-items: center; gap: 10px; color: var(--muted) !important; }
.ailoading i { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 3px solid var(--main-soft); border-top-color: var(--main-shade); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .aigrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .glance { grid-template-columns: minmax(0, 1fr); } .tierbadge { width: 76px; } .planrow { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; } }


/* ── 로그인 화면: 코니수학과 같은 틀(세로형은 브랜드 → 영상 → 카드, 900px 이상 가로형은 왼쪽 소개 면 + 오른쪽 로그인) ── */
.auth.login { min-height: 100vh; min-height: 100dvh; display: flex; align-items: stretch; justify-content: center; padding: 28px 20px calc(24px + var(--safe-b)); }
.loginbox { width: 100%; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; }
.loginside { display: flex; flex-direction: column; align-items: center; }
.loginside .brand { padding: 0; font-size: 20px; } .loginside .brand .mark svg { width: 14px; height: 14px; }
.logintag, .loginsub { display: none; }
.loginhero { width: 100%; height: 196px; margin-top: 12px; display: flex; align-items: flex-end; justify-content: center; }
.loginhero video.hvid.four { width: auto; max-width: 100%; height: 180px; max-height: 180px; aspect-ratio: auto; margin: 0; }
.loginmain { flex: 1; display: flex; flex-direction: column; }
.logincard { background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 24px 20px 20px; display: grid; gap: 14px; margin-top: -6px; }
.loginhead { text-align: center; } .loginhead h1 { font-size: 24px; line-height: 1.35; letter-spacing: -0.01em; } .loginhead p { margin-top: 2px; font-size: 15px; color: var(--body); }
.auth.login .form { gap: 14px; }
.auth.login .form input { min-height: 56px; border-radius: 20px; }
.auth.login .form input::placeholder { color: var(--muted); }
.auth.login .form input:focus { box-shadow: 0 0 0 3px var(--main-tint); }
.auth.login .btn { flex: none; width: 100%; min-height: 56px; font-size: 18px; color: var(--ink); box-shadow: 0 5px 0 var(--ledge); margin-bottom: 5px; }
.auth.login .btn.primary { box-shadow: 0 5px 0 var(--main-shade); }
.auth.login .btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--ledge); } .auth.login .btn.primary:active:not(:disabled) { box-shadow: 0 1px 0 var(--main-shade); }
.auth.login .loginfoot .btn { min-height: 52px; font-size: 16px; }
.pwwrap { position: relative; display: block; } .pwwrap input { padding-right: 56px; }
.pweye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; background: none; border-radius: 50%; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.pweye svg { width: 26px; height: 26px; } .pweye[aria-pressed="true"] .slash { display: none; }
.loginfoot { margin-top: auto; padding-top: 24px; display: grid; gap: 10px; }
.loginrule { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--body); } .loginrule::before, .loginrule::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
@media (min-width: 900px) {
  .auth.login { align-items: center; padding: 24px; }
  .loginbox { max-width: 920px; min-height: 560px; display: grid; grid-template-columns: 500fr 420fr; background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; overflow: hidden; }
  .loginside { align-items: flex-start; background: var(--main-tint); padding: 36px 36px 0; }
  .logintag { display: block; margin-top: 28px; font-size: 31px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); }
  .loginsub { display: block; margin-top: 10px; font-size: 16px; font-weight: 700; color: var(--main-deep); }
  .loginhero { flex: 0 0 auto; height: 228px; margin-top: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 16px 24px 0; }
  .loginhero video.hvid.four { height: 212px; max-height: 212px; }
  .loginmain { padding: 44px 40px 36px; }
  .logincard { border: 0; border-radius: 0; padding: 0; margin: 0; }
  .loginhead { text-align: left; } .loginhead h1 { font-size: 26px; }
}


/* ── 스펠링 비 ── */
.mcard.bee { background: var(--yellow-tint); }
.stepno { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--main); font-size: 14px; }
.picks { display: grid; gap: 8px; } .picks.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } .picks.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; padding: 6px 4px; border-radius: 16px; border: 2px solid var(--hairline); background: var(--surface); box-shadow: 0 3px 0 var(--ledge); margin-bottom: 3px; text-align: center; }
.pick span b { font-size: 16px; line-height: 1.3; } .pick span small { font-size: 12px; color: var(--muted); }
.pick input:checked + span { border-color: var(--main-shade); background: var(--main-tint); box-shadow: 0 3px 0 var(--main-shade); }
.pick input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.beeresume { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .beeresume h2 { margin: 0; } .beeresume p { margin: 0; }
.beelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.beelist a { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--canvas); color: var(--ink); text-decoration: none; }
.beelist .bday { font-size: 13px; color: var(--muted); } .beelist .blv { font-weight: 700; }
.bstars { display: inline-flex; gap: 3px; } .bstars i { width: 16px; height: 16px; background: var(--hairline); clip-path: polygon(50% 0, 63% 35%, 100% 38%, 71% 61%, 81% 98%, 50% 77%, 19% 98%, 29% 61%, 0 38%, 37% 35%); }
.bstars i.on { background: var(--yellow-shade); }
.bstars.big { justify-content: center; gap: 8px; margin: 4px 0 8px; } .bstars.big i { width: 40px; height: 40px; } .bstars.big i.on { background: var(--yellow); }
.beeapp { padding-bottom: calc(330px + var(--safe-b)); }
.beecard .listen { margin-top: 14px; }
.beeword { min-height: 62px; margin: 14px 0 4px; padding: 0 8px 6px; border-bottom: 3px solid var(--ink); display: flex; align-items: flex-end; justify-content: center; flex-wrap: wrap; font: 700 40px/1.2 var(--font-sans); letter-spacing: .12em; word-break: break-all; }
.beeword:empty::before { content: "type the word"; font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--muted); padding-bottom: 8px; }
.beeword .caret { width: 3px; height: 38px; margin-left: 2px; background: var(--main-shade); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.cluebtns { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.cluebtn { min-height: 40px; padding: 0 16px; border-radius: 540px; border: 2px solid var(--hairline); background: var(--surface); box-shadow: 0 3px 0 var(--ledge); font: 700 14px/1 var(--font-sans); color: var(--body); cursor: pointer; margin-bottom: 3px; }
.cluebtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ledge); } .cluebtn.used { background: var(--blue-tint); border-color: var(--blue-tint); color: var(--blue-deep); box-shadow: none; }
.beefoot .kb { max-width: 600px; margin: 0 auto; padding: 8px 6px 0; display: grid; gap: 6px; }
.kb .row { display: flex; justify-content: center; gap: 5px; }
.kb button { flex: 1 1 0; max-width: 52px; height: 46px; border-radius: 10px; border: none; background: var(--surface); box-shadow: 0 3px 0 var(--ledge); font: 700 19px/1 var(--font-sans); color: var(--ink); cursor: pointer; padding: 0; margin-bottom: 3px; touch-action: manipulation; }
.kb button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ledge); }
.kb button.wide { flex: 1.6 1 0; max-width: 84px; background: var(--hairline); font-size: 14px; }
.beefoot .fin { padding-top: 8px; }
.beewords { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.beewords li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 14px; border-radius: 14px; background: var(--main-tint); }
.beewords li.no { background: var(--canvas); }
.bw { font: 700 22px/1.3 var(--font-sans); letter-spacing: .08em; } .bw i { font-style: normal; } .bw i.no { color: var(--red-deep); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.bm { font-size: 14px; color: var(--body); } .by { font-size: 13px; color: var(--muted); margin-left: auto; }
.sheet .bw { display: block; font-size: 26px; }
@media (min-width: 900px) { .beefoot .kb { max-width: 640px; } .kb button { height: 48px; } .picks.six { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 359px) { .kb button { height: 42px; font-size: 17px; } .kb .row { gap: 4px; } }

/* ── 화면 크기 ── */
@media (min-width: 900px) {
  .app { max-width: 820px; } .fin, .sheet .msg { max-width: 820px; }
  .pics, .wordchoices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .qhead img { width: 84px; height: 84px; } .intro { font-size: 22px; } .say { font-size: 14px; }
  .qcard { padding: 24px 26px 28px; } .slot { width: 54px; height: 62px; } .tile { width: 60px; height: 62px; }
}
@media (max-width: 760px) {
  .card.two { grid-template-columns: minmax(0, 1fr); }
  .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wcard { grid-template-columns: minmax(0, 1fr); } .wpic { width: 120px; height: 120px; }
  .pagetitle { font-size: 22px; margin-top: 16px; }
}
@media (max-width: 520px) {
  .card { padding: 18px 16px; border-radius: 18px; }
  .hero { flex-direction: column; text-align: center; gap: 8px; } .hero .btns { justify-content: center; }
  .kpi { padding: 10px 6px 9px; } .kpi b { font-size: 23px; } .kpi span { font-size: 12px; }
  .kpis.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .word span { font-size: 44px; } .word.long span { font-size: 32px; }
  .lv { grid-template-columns: 76px minmax(0, 1fr) 60px; gap: 8px; font-size: 14px; }
  .daybars { gap: 3px; } .daybar span { font-size: 10px; letter-spacing: -.02em; } .daybar:nth-child(even) span { visibility: hidden; }
  .btns .btn { flex: 1 1 140px; }
  .sacts .btn { font-size: 14px; }
}
@media (max-width: 359px) {
  .fin .btn.idk { padding: 0 10px; font-size: 14px; } .slot { width: 42px; height: 52px; font-size: 28px; } .tile { width: 50px; height: 54px; }
  .intro { font-size: 17px; } .qhead img { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .bar > div, .sheet, .btn, .pic, .tile, .play { transition: none; } .play.ring { animation: none; } }

/* ══ 디자인 다듬기(2026-11-23, 시안 previews/refine_mock.html) ══
   글은 줄이고 여백과 위계로 정리: 색 면은 화면에 하나(오늘 할 일), 상자 안의 상자 대신 가는 구분선,
   큰 숫자 + 작은 이름표의 두 단계, 옅은 테두리와 가는 막대(8px). 틀·색·캐릭터·버튼의 턱은 그대로. */
:root { --canvas: #f9f6f5; --hairline: #eee8e6; --ledge: #e0d7d4; --main-tint: #fff0ed; --muted: #736761; }
.card { border-radius: 24px; padding: 20px; margin-bottom: 12px; }
.card h2 { font-size: 16px; letter-spacing: -.01em; }
.sub { font-size: 13px; line-height: 1.45; color: var(--muted); font-weight: 500; }
.btn.ghost { border: 1.500px solid var(--hairline); background: var(--surface); color: var(--body); }
.stack { height: 8px; margin-top: 12px; } .stackcap { font-size: 12px; }
.lv .track, .daybar .col { background: var(--hairline); } .lv .track { height: 8px; }
.streak { height: 30px; padding: 0 12px 0 9px; font-size: 14px; gap: 4px; }

/* 학생 화면 */
.hello { align-items: center; margin: 14px 2px 14px; } .hello h1 { font-size: 26px; letter-spacing: -.02em; line-height: 1.25; }
.side ~ .wrap > .hello:first-child { margin-top: 20px; }
.hero { background: var(--main-tint); border-radius: 28px; padding: 22px; text-align: center; margin-bottom: 12px; display: block; }
.hero img, .hero video.hvid { width: 128px; height: 128px; object-fit: contain; display: block; margin: 0 auto 6px; }
.hero h1 { font-size: 24px; letter-spacing: -.02em; line-height: 1.3; }
.hero.done { background: var(--yellow-tint); padding-bottom: 20px; }
.facts { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 18px; font-size: 14px; color: var(--body); }
.hero.done .facts { margin-bottom: 0; }
.facts b { font-size: 17px; color: var(--ink); margin-right: 2px; } .facts i { width: 4px; height: 4px; border-radius: 50%; background: var(--main-shade); opacity: .5; }
.hero .btn { width: 100%; min-height: 56px; font-size: 18px; box-shadow: 0 5px 0 var(--main-shade); margin-bottom: 5px; }
.hero.quest { display: flex; flex-direction: row; align-items: center; gap: 12px; text-align: left; background: var(--yellow-tint); padding: 14px 16px; border-radius: 24px; }
.hero.quest .qbadge { width: 52px; flex: none; } .hero.quest .qbadge svg { display: block; width: 100%; height: auto; }
.hero.quest .qtext { flex: 1; min-width: 0; } .hero.quest h2 { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.hero.quest form { flex: none; } .hero.quest .btn { width: auto; min-height: 46px; padding: 0 22px; font-size: 16px; box-shadow: 0 4px 0 var(--yellow-shade); margin-bottom: 4px; }
.panel { padding: 18px; } .ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; } .ph h2 { margin: 0; }
.plan7 { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 0; }
.plan7 i { max-width: 44px; font-size: 14px; color: var(--muted); } .plan7 i svg { width: 58%; height: 58%; }
.plan7 li.past i { background: var(--main-tint); } .plan7 li.past i svg path { stroke: var(--main-deep); }
.plan7 li.goal i svg path { fill: var(--yellow-shade); } .plan7 li.goal i svg { opacity: 1; } .plan7 li.goal.today i svg path { fill: var(--ink); }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; } .duo .card { margin-bottom: 12px; }
.stat { display: flex; align-items: center; gap: 12px; min-height: 96px; } .stat.col { flex-direction: column; align-items: stretch; justify-content: center; gap: 2px; }
.tbadge { width: 54px; flex: none; } .tbadge svg { display: block; width: 100%; height: auto; }
.big { display: block; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.bignum { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; } .bignum small { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat .stack { margin-top: 8px; }

/* 스펠링 비 첫 화면 */
.beeset .beetop { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .beetop h2 { font-size: 22px; letter-spacing: -.02em; margin: 0; } .beetop img { width: 84px; height: 84px; object-fit: contain; }
.label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 6px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 18px; background: var(--canvas); } .seg.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.seg label { position: relative; cursor: pointer; } .seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 13px; font-weight: 700; font-size: 17px; color: var(--body); }
.seg input:checked + span { background: var(--surface); color: var(--main-deep); box-shadow: 0 0 0 2px var(--main), 0 3px 0 var(--main-shade); }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.beeset > .btn { width: 100%; min-height: 56px; font-size: 18px; margin-top: 18px; box-shadow: 0 5px 0 var(--main-shade); margin-bottom: 5px; }
.rounds { list-style: none; margin: 0; padding: 0; }
.rounds a { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 62px 18px; align-items: center; gap: 8px; padding: 11px 0; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--ink); text-decoration: none; }
.rounds li:first-child a { border-top: 0; padding-top: 0; } .rounds .d { color: var(--muted); font-size: 13px; } .rounds .l { font-weight: 700; } .rounds b { text-align: right; } .rounds svg { width: 18px; height: 18px; color: var(--ledge); }
.bstars i { width: 14px; height: 14px; }

/* 보호자 화면 */
.pagetitle { letter-spacing: -.02em; }
.sgrid { display: grid; gap: 12px; } .sgrid .card { margin: 0; }
.avatar { width: 44px; height: 44px; font-size: 18px; line-height: 44px; }
.shead { padding: 18px 18px 14px; flex-wrap: nowrap; } .sname { font-size: 18px; letter-spacing: -.01em; } .shead .who h1 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.tierchip { font-size: 13px; } .tierchip svg { width: 28px; }
.tierchip.big { display: flex; flex-direction: row; align-items: center; gap: 10px; } .tierchip.big svg { width: 52px; flex: none; } .tierchip.big > span { display: flex; flex-direction: column; font-size: 18px; line-height: 1.25; color: var(--ink); white-space: normal; } .tierchip.big small { font-size: 12px; color: var(--muted); font-weight: 500; }
.sstate { margin: 0 18px; padding: 10px 14px; border-radius: 14px; gap: 8px; flex-wrap: wrap; } .sstate i { width: 8px; height: 8px; background: var(--ledge); } .sstate b { font-weight: 700; }
.sstate span { font-weight: 500; color: var(--muted); } .sstate.done i { background: var(--main-shade); } .sstate.done span { color: var(--main-deep); } .sstate.now i { background: var(--yellow-shade); } .sstate.now span { color: var(--yellow-deep); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 18px 0; } .trio.flat { margin: 0; }
.trio div { text-align: center; border-left: 1px solid var(--hairline); } .trio div:first-child { border-left: 0; }
.trio b { display: block; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; } .trio span { font-size: 12px; color: var(--muted); }
.scard .stack { margin: 14px 18px 0; } .scard .stackcap { margin: 6px 18px 0; }
.sacts { grid-template-columns: 1.3fr 1fr 1fr; margin: 0; padding: 16px 18px 18px; } .sacts .btn { min-height: 46px; }
.sfoot { border-top: 1px solid var(--hairline); padding: 4px 18px; min-height: 44px; display: flex; align-items: center; } .sfoot .linkbtn { padding: 0; }
.rcard { padding: 0; overflow: hidden; }
.kpi4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hairline); }
.kpi4 div { padding: 14px 18px 16px; border-left: 1px solid var(--hairline); min-width: 0; } .kpi4 div:first-child { border-left: 0; }
.kpi4 b { display: block; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; } .kpi4 small { font-size: 13px; color: var(--muted); font-weight: 500; } .kpi4 span { font-size: 12px; color: var(--muted); }
.anchors { display: flex; gap: 6px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .anchors::-webkit-scrollbar { display: none; }
.anchors a { flex: none; padding: 8px 14px; border-radius: 540px; font-size: 14px; font-weight: 700; color: var(--body); background: var(--surface); border: 1px solid var(--hairline); text-decoration: none; }
.anchors a:hover, .anchors a:active { background: var(--main-tint); color: var(--main-deep); border-color: var(--main-tint); }
/* 리포트의 구역 탭: 아래로 내려도 위에 붙어 따라옴(2026-11-23). 지금 보고 있는 구역은 녹색으로 표시 */
.anchors { position: sticky; top: 0; z-index: 15; margin: 0 -16px 12px; padding: 10px 16px 10px; background: var(--canvas); }
.anchors.stuck { box-shadow: 0 1px 0 var(--hairline); }
.anchors a.on { background: var(--main-tint); color: var(--main-deep); border-color: var(--main-tint); }
.wrap.wide > .card[id] { scroll-margin-top: 68px; }
.aibox { border-radius: 18px; } .glance { margin-bottom: 12px; }
.glance .aibox p { display: flex; justify-content: space-between; gap: 10px; } .glance .aibox p b { margin: 0; }
details.how { margin-top: 12px; font-size: 13px; color: var(--muted); } details.how summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-weight: 700; list-style: none; padding: 6px 0; }
details.how summary::-webkit-details-marker { display: none; } details.how summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
details.how[open] summary::after { transform: rotate(-135deg) translateY(-1px); } details.how p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 4px 0 0; }
.planrow { border-radius: 16px; } .tbl th { background: var(--canvas); }
@media (min-width: 900px) { .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero { padding: 26px; } }
@media (max-width: 520px) {
  .kpi4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi4 div:nth-child(3) { border-left: 0; } .kpi4 div:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .rcard .shead { flex-wrap: wrap; } .tierchip.big { width: 100%; padding-top: 2px; } .tierchip.big svg { width: 44px; }
  .card { padding: 18px 16px; } .panel { padding: 16px; } .scard, .rcard { padding: 0; }
  .sacts .btn { font-size: 14px; padding: 0 4px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ══ 보호자 화면 다듬기 2(2026-11-23): 학생 카드의 수정은 연필 버튼, 숫자는 이름표 달린 네 줄, 리포트는 탭 다섯 개 ══ */
.iconbtn { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--canvas); }
.iconbtn svg { width: 20px; height: 20px; } .iconbtn:hover, .iconbtn:active { background: var(--main-tint); }
.slist { margin: 14px 18px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.slist > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; border-top: 1px solid var(--hairline); min-width: 0; }
.slist > div:nth-child(-n+2) { border-top: 0; }
.slist dt { font-size: 13px; color: var(--muted); flex: none; } .slist dd { margin: 0; text-align: right; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slist dd b { font-size: 17px; letter-spacing: -.01em; } .slist .tierchip svg { width: 24px; }
.sacts.two { grid-template-columns: 1.4fr 1fr; }
.rtabs a.on { background: var(--main); color: var(--ink); border-color: var(--main); }
.rtabs a { padding: 9px 16px; }
.rpane[hidden] { display: none; }
.trio b small { font-size: 13px; color: var(--muted); font-weight: 500; }
@media (max-width: 520px) { .slist { grid-template-columns: minmax(0, 1fr); } .slist > div:nth-child(2) { border-top: 1px solid var(--hairline); } }
@media print { .rpane[hidden] { display: block !important; } .rtabs, .side, .mtop { display: none !important; } .side ~ .wrap { margin: 0 !important; } }

/* ══ 학생 추가·수정 화면(2026-11-23): 학년은 네 칸 가운데 하나를 고르는 막대, 입력 칸마다 이름표와 도움말 ══ */
.sform { padding: 0 20px 20px; }
.shead.flat { padding: 18px 0 16px; border-bottom: 1px solid var(--hairline); }
.sform .err { margin-top: 16px; }
.field { padding-top: 18px; }
.field > label, .flabel { display: block; font-size: 13px; font-weight: 700; color: var(--body); margin-bottom: 8px; }
.field input:not([type=radio]) { width: 100%; min-height: 54px; padding: 0 16px; border: 2px solid var(--hairline); border-radius: 16px; background: var(--canvas); font: 500 17px var(--font-sans); color: var(--ink); -webkit-appearance: none; appearance: none; }
.field input:not([type=radio]):focus { border-color: var(--main-shade); background: var(--surface); outline: none; box-shadow: 0 0 0 3px var(--main-tint); }
.field .pwwrap input { padding-right: 56px; }
.hint { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.seg.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg.grade span { height: 60px; gap: 1px; font-size: 14px; font-weight: 500; color: var(--muted); }
.seg.grade span b { font-size: 24px; line-height: 1; letter-spacing: -.02em; color: var(--body); margin-right: 2px; }
.seg.grade input:checked + span { color: var(--main-deep); } .seg.grade input:checked + span b { color: var(--main-deep); }
.seg.grade label:hover span { background: var(--surface); }
.sformfoot { padding-top: 22px; } .sformfoot .btn { width: 100%; min-height: 56px; font-size: 18px; box-shadow: 0 5px 0 var(--main-shade); margin-bottom: 5px; }
details.danger { padding: 0 20px; } details.danger > summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; list-style: none; font-weight: 700; font-size: 15px; color: var(--red-deep); }
details.danger > summary::-webkit-details-marker { display: none; }
details.danger > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
details.danger[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
details.danger[open] { padding-bottom: 20px; } details.danger p { font-size: 14px; margin-bottom: 14px; }

/* ══ 풀이 화면의 움직임(2026-11-23, 시안 previews/motion_mock.html) ══
   짧게(0.2~0.4초), 뜻이 있는 것만: 고른 것이 어디로 갔는지(타일 → 빈칸), 받아들여졌는지(튐), 결과(뜀·흔들림).
   결과 움직임은 하루 미션과 스펠링 비에서만(진단평가는 정답 여부를 알리지 않음). 틀려도 빨갛게 하지 않음. 동작 줄이기면 모두 끔. */
.flyer { position: fixed; z-index: 50; margin: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--surface); border: 2px solid var(--main-shade); font: 700 29px/1 var(--font-sans); color: var(--ink); }
.pic .n svg { width: 16px; height: 16px; margin-top: 5px; }
.beeword .ch { display: inline-block; }
.beeword .ch.win { color: var(--main-deep); }
.slot.win { border-style: solid; border-color: var(--main-shade); background: var(--main); }
@media (prefers-reduced-motion: no-preference) {
  .qcard.enter > * { animation: rise .32s cubic-bezier(.2, .8, .3, 1) both; }
  .qcard.enter .pics > *, .qcard.enter .wordchoices > *, .qcard.enter .tiles > * { animation: rise .3s cubic-bezier(.2, .9, .3, 1.1) both; }
  /* 아래는 '새 문제' 움직임보다 뒤에, 더 구체적으로 적어 그 위에 덮이게 함 */
  .qcard .slots .slot.land { animation: land .26s cubic-bezier(.3, 1.5, .5, 1) 1; }
  .qcard .tiles .tile.back { animation: back .22s cubic-bezier(.3, 1.4, .5, 1) 1; }
  .qcard .slots .slot.win, .beeword .ch.win { animation: hop .42s cubic-bezier(.3, 1.6, .5, 1) 1 both; }
  .qcard.enter > .slots.nope, .qcard .slots.nope, .qcard.enter > .beeword.nope, .beeword.nope { animation: nope .36s ease-in-out 1; }
  .qcard.enter .pics > .pic.pop, .qcard.enter .wordchoices > .pic.pop, .qcard .pic.pop, .qcard .pic.sel .n { animation: pop .28s cubic-bezier(.3, 1.6, .5, 1) 1; }
  .beeword .ch.in { animation: typed .18s cubic-bezier(.3, 1.6, .5, 1) 1; }
}
@keyframes land { 0% { transform: scale(.82); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes back { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes hop { 0% { transform: none; } 40% { transform: translateY(-12px); } 100% { transform: none; } }
@keyframes nope { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes pop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes rise { 0% { transform: translateY(14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes typed { 0% { transform: translateY(10px) scale(.7); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ── 포커스 테두리(2026-11-23): 턱이 있는 버튼은 버튼 바깥으로 띄운 테두리가 턱과 어긋나 보여, 버튼과 턱을 그대로 감싸는 테두리로 ── */
.btn:focus-visible, .slow:focus-visible, .cluebtn:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 4px 0 var(--ink), 0 0 0 1px var(--ink); }
.btn.small:focus-visible, .slow:focus-visible, .cluebtn:focus-visible { box-shadow: 0 3px 0 var(--ink), 0 0 0 1px var(--ink); }

/* ── 하루 미션의 듣고 쓰기(스펠링 비 방식): 문제 카드 안의 자판 ── */
.kb.inq { display: grid; gap: 6px; margin: 12px -6px 0; padding: 10px 6px 6px; border-radius: 16px; background: var(--canvas); }
.spellko { text-align: center; margin-top: 12px; font-size: 16px; color: var(--body); }
.qcard .beeword { margin-top: 6px; }

/* ── 보호자: 글과 피드백(2026-11-24, parent_writings.html). 미션마다 카드 하나 ── */
.pw { padding: 20px; margin-bottom: 14px; }
.pw-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .pw-head h2 { font-size: 20px; }
.pw-chip { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 540px; background: var(--yellow-tint); color: var(--yellow-deep); }
.pw-chip.done { background: var(--green-tint); color: var(--green-deep); }
.pw-sec { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.pw-sec h3 { font-size: 16px; margin-bottom: 8px; } .pw-sec h3 b { margin-left: 6px; color: var(--main-deep); }
.pw-missed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pw-missed li { display: flex; gap: 10px; align-items: flex-start; } .pw-missed p { font-size: 15px; }
.pw-tag { flex: none; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--red-tint); color: var(--red-deep); margin-top: 3px; }
.pw-tag.idk { background: var(--canvas); color: var(--body); }
.pw-task { font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.pw-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.pw-text { border: 1px solid var(--hairline); border-radius: 14px; padding: 14px 16px; font-size: 17px; line-height: 1.85; white-space: pre-wrap; margin-bottom: 4px; }
.pw-text .good { background: var(--green-tint); box-shadow: 0 -2px 0 var(--green) inset; } .pw-text .next { background: var(--blue-tint); box-shadow: 0 -2px 0 var(--blue) inset; }
.pw-fb { display: grid; gap: 10px; margin-top: 12px; }
.pw-box { border-radius: 14px; padding: 12px 14px; } .pw-box h4 { margin: 0 0 2px; font-size: 14px; } .pw-box p { font-size: 15px; }
.pw-box.good { background: var(--green-tint); } .pw-box.good h4 { color: var(--green-deep); }
.pw-box.next { background: var(--blue-tint); } .pw-box.next h4 { color: var(--blue-deep); }
.pw-rub { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.pw-rub caption { text-align: left; font-weight: 700; font-size: 14px; color: var(--body); padding-bottom: 6px; }
.pw-rub th, .pw-rub td { padding: 8px 10px; border-top: 1px solid var(--hairline); text-align: left; vertical-align: top; font-weight: 500; }
.pw-rub th { width: 72px; white-space: nowrap; font-weight: 700; color: var(--body); }
.pw-rub tr.yes th { color: var(--green-deep); } .pw-rub tr.part th { color: var(--yellow-deep); } .pw-rub tr.no th { color: var(--red-deep); }
.pw-note { font-size: 14px; color: var(--body); background: var(--canvas); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.pw-old { margin-top: 14px; border-top: 1px dashed var(--hairline); padding-top: 10px; }
.pw-old > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--body); min-height: 44px; display: flex; align-items: center; }
@media (min-width: 720px) { .pw-fb { grid-template-columns: 1fr 1fr; } }

/* ── 보호자 리포트(2026-11-24, parent_report.html)와 다각형 ── */
svg.radar { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; }
.pw-chip.diag { background: var(--main-tint); color: var(--main-deep); }
.scard-foot { margin-top: 10px; font-size: 13px; text-align: right; } .scard-foot a { color: var(--muted); }
.rp-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 14px; }
.rp-facts { font-size: 17px; margin: 2px 0; } .rp-facts b { color: var(--main-deep); }
.rp-main { display: grid; gap: 16px; padding: 20px; margin-bottom: 14px; }
.rp-side { display: grid; gap: 12px; align-content: start; }
.rp-box { border-radius: 16px; padding: 14px 16px; } .rp-box h3 { font-size: 15px; margin-bottom: 6px; } .rp-box p { font-size: 15px; margin-top: 4px; }
.rp-box.good { background: var(--green-tint); } .rp-box.good h3 { color: var(--green-deep); }
.rp-box.weak { background: var(--blue-tint); } .rp-box.weak h3 { color: var(--blue-deep); }
.rp-h { font-size: 18px; margin: 22px 2px 10px; }
.rp-axis { padding: 0 18px; margin-bottom: 10px; }
.rp-axis > summary { display: flex; align-items: center; gap: 14px; min-height: 68px; cursor: pointer; list-style: none; } .rp-axis > summary::-webkit-details-marker { display: none; }
.rp-axis > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); flex: none; }
.rp-axis[open] > summary::after { transform: rotate(-135deg); }
.rp-score { flex: none; min-width: 58px; text-align: center; font-weight: 700; font-size: 20px; padding: 6px 10px; border-radius: 12px; }
.rp-score.high { background: var(--green-tint); color: var(--green-deep); } .rp-score.mid { background: var(--blue-tint); color: var(--blue-deep); }
.rp-score.low { background: var(--red-tint); color: var(--red-deep); } .rp-score.wait { background: var(--canvas); color: var(--muted); font-size: 14px; }
.rp-name { display: grid; } .rp-name b { font-size: 17px; }
.rp-body { padding: 4px 0 18px; border-top: 1px solid var(--hairline); } .rp-body h4 { font-size: 15px; margin: 14px 0 8px; }
@media (min-width: 860px) { .rp-main { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; } }

/* ── 관리자: 콘텐츠 검수(2026-11-24, admin_content.html · admin_content_item.html) ── */
.cr-filters { display: grid; gap: 8px; margin-bottom: 12px; } .cr-filters > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cr-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 540px; border: 1px solid var(--hairline); background: var(--surface); color: var(--body); font-size: 14px; font-weight: 700; text-decoration: none; }
.cr-chip.on { background: var(--main-tint); border-color: var(--main); color: var(--main-deep); } .cr-gap { width: 12px; }
.cr-state { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 4px; background: var(--canvas); color: var(--body); white-space: nowrap; }
.cr-state.ok { background: var(--green-tint); color: var(--green-deep); } .cr-state.redo { background: var(--red-tint); color: var(--red-deep); } .cr-state.part { background: var(--yellow-tint); color: var(--yellow-deep); }
.cr-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .cr-nav .btn { flex: none; }
.cr-item { padding: 18px 20px; margin-bottom: 12px; scroll-margin-top: 12px; }
.cr-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cr-kind { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 4px; background: var(--yellow-tint); color: var(--yellow-deep); }
.cr-axis { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 4px; background: var(--blue-tint); color: var(--blue-deep); }
.cr-passage p { font-size: 16px; line-height: 1.85; text-indent: 1em; margin-bottom: 10px; }
.cr-prompt { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.cr-opts, .cr-order { margin: 0 0 6px; padding: 0; display: grid; gap: 6px; } .cr-opts { list-style: none; } .cr-order { padding-left: 22px; }
.cr-opts li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-radius: 10px; background: var(--canvas); font-size: 15px; }
.cr-opts li b { flex: none; font-size: 12px; padding: 2px 7px; border-radius: 4px; background: var(--surface); color: var(--muted); margin-top: 2px; }
.cr-opts li.right { background: var(--green-tint); } .cr-opts li.right b { background: var(--green); color: var(--ink); }
.cr-label { font-size: 13px; font-weight: 700; color: var(--body); margin: 12px 0 4px; }
.cr-sample { font-size: 15px; line-height: 1.8; background: var(--canvas); border-radius: 10px; padding: 10px 12px; }
.cr-memo { font-size: 13px; color: var(--yellow-deep); background: var(--yellow-tint); border-radius: 8px; padding: 6px 10px; margin-top: 8px; display: inline-block; }
.cr-review { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.cr-review input[name=memo] { flex: 1 1 220px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface); font-size: 14px; }
.cr-btn { min-height: 40px; padding: 0 14px; border-radius: 540px; border: 2px solid var(--hairline); background: var(--surface); color: var(--body); font: 700 14px var(--font-sans); cursor: pointer; }
.cr-btn.ok { border-color: var(--green); color: var(--green-deep); } .cr-btn.redo { border-color: var(--red-tint); color: var(--red-deep); }
.cr-review.ok .cr-btn.ok { background: var(--green); color: var(--ink); } .cr-review.redo .cr-btn.redo { background: var(--red-tint); }
.cr-foot { padding: 16px 20px; } .cr-foot form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; } .cr-foot .btn { flex: none; }
