/* 아는공부 윈터캠프 데모 — 공통 스타일 */
:root {
  --navy: #0E3180;
  --navy-600: #1A43A0;
  --navy-50: #EEF2FA;
  --navy-100: #DCE4F5;
  --red: #E60012;
  --red-50: #FDECEE;
  --amber: #C27C0E;
  --amber-50: #FDF4E3;
  --green: #12805C;
  --green-50: #E7F5EF;
  --g900: #191F28;
  --g800: #333D4B;
  --g700: #4E5968;
  --g600: #6B7684;
  --g500: #8B95A1;
  --g400: #B0B8C1;
  --g300: #D1D6DB;
  --g200: #E5E8EB;
  --g100: #F2F4F6;
  --g50: #F9FAFB;
  --bg: #F2F4F6;
  --card: #FFFFFF;
  --r-lg: 24px;
  --r: 20px;
  --r-md: 16px;
  --r-sm: 12px;
  --sh: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05);
  --sh-lg: 0 10px 40px rgba(14,49,128,.16);
  --ease: cubic-bezier(.2,.8,.2,1);
  --t: 200ms;
  /* 과목 색 (톤 다운) */
  --s-kor: #C0566B; --s-kor-bg: #F9ECEF;
  --s-math: #3F6FC4; --s-math-bg: #EAF0FA;
  --s-eng: #2F8A6A; --s-eng-bg: #E7F3EE;
  --s-sci: #B07F22; --s-sci-bg: #F8F1E2;
  --s-lec: #7559B8; --s-lec-bg: #F0ECF8;
  --s-wrong: #9A5A50; --s-wrong-bg: #F5ECEA;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--g900);
  background: #E4E7EC;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  letter-spacing: -0.01em;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---------- 무대 · 태블릿 프레임 ---------- */
#stage { position: fixed; inset: 0; display: grid; place-items: center; }
body.framed #stage { background: radial-gradient(1200px 700px at 50% 40%, #F4F6F9 0%, #DDE2E9 100%); }
#device { position: relative; }
body.framed #device {
  width: 1212px; height: 852px; padding: 16px; border-radius: 44px;
  background: #1C1F24;
  box-shadow: 0 0 0 1px #2A2E35 inset, 0 30px 80px rgba(17,24,39,.28), 0 8px 24px rgba(17,24,39,.18);
  transform-origin: center center;
}
body.framed #device::before { /* 카메라 */
  content: ""; position: absolute; top: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: #3A3F47;
}
body.framed #screen { width: 1180px; height: 820px; border-radius: 28px; }
body.fill #device, body.fill #screen { width: 100vw; height: 100vh; }
#screen { position: relative; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; isolation: isolate; }

/* ---------- 상단 바 ---------- */
.topbar {
  height: 60px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 20px;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--g200); z-index: 5;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.topbar .brand img { height: 26px; width: auto; }
.topbar .brand span { font-size: 14px; font-weight: 600; color: var(--g600); padding-left: 10px; border-left: 1px solid var(--g200); }
.topbar .spacer { flex: 1; }
.mock-badge {
  min-width: 220px; display: flex; justify-content: flex-end;
}
.mock-badge span {
  font-size: 13px; font-weight: 700; color: var(--amber); background: var(--amber-50);
  padding: 6px 12px; border-radius: 999px; border: 1px solid #F3DDB2;
}

/* 세그먼트 컨트롤 (토스형) */
.seg { display: inline-flex; position: relative; background: var(--g100); border-radius: 14px; padding: 4px; gap: 0; }
.seg button {
  position: relative; z-index: 1; padding: 8px 18px; border-radius: 10px; font-size: 15px; font-weight: 600;
  color: var(--g600); transition: color var(--t) var(--ease); white-space: nowrap;
}
.seg button.on { color: var(--g900); }
.seg .thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 10px; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
  transition: transform 260ms var(--ease), width 260ms var(--ease);
}
.seg.sm button { padding: 6px 14px; font-size: 14px; }
.seg.navy .thumb { background: var(--navy); }
.seg.navy button.on { color: #fff; }

/* ---------- 뷰 ---------- */
#views { position: relative; flex: 1; min-height: 0; }
.view { position: absolute; inset: 0; display: none; }
.view.on { display: flex; animation: viewIn 240ms var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 공통 컴포넌트 ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); }
.press { transition: transform 140ms var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease), opacity var(--t); }
.press:active { transform: scale(.97); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px; padding: 0 20px; border-radius: 14px; font-size: 16px; font-weight: 700;
  transition: transform 140ms var(--ease), background var(--t), opacity var(--t);
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-600); }
.btn.soft { background: var(--navy-50); color: var(--navy); }
.btn.grey { background: var(--g100); color: var(--g800); }
.btn.red { background: var(--red); color: #fff; }
.btn.white { background: #fff; color: var(--g900); }
.btn.sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.xs { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .35; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--g100); color: var(--g600); white-space: nowrap; }
.tag.navy { background: var(--navy-50); color: var(--navy); }
.tag.red { background: var(--red-50); color: var(--red); }
.tag.amber { background: var(--amber-50); color: var(--amber); }
.tag.green { background: var(--green-50); color: var(--green); }
.ex { font-size: 12px; font-weight: 600; color: var(--g500); background: var(--g100); padding: 2px 6px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }

.s-kor { --c: var(--s-kor); --cb: var(--s-kor-bg); }
.s-math { --c: var(--s-math); --cb: var(--s-math-bg); }
.s-eng { --c: var(--s-eng); --cb: var(--s-eng-bg); }
.s-sci { --c: var(--s-sci); --cb: var(--s-sci-bg); }
.s-lec { --c: var(--s-lec); --cb: var(--s-lec-bg); }
.s-wrong { --c: var(--s-wrong); --cb: var(--s-wrong-bg); }
.subj-chip { background: var(--cb); color: var(--c); }
.subj-chip .dot { background: var(--c); }

.scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--g300) transparent; }
.scroll::-webkit-scrollbar { width: 6px; }
.scroll::-webkit-scrollbar-thumb { background: var(--g300); border-radius: 3px; }

.stepper { display: inline-flex; align-items: center; background: var(--g100); border-radius: 14px; padding: 4px; }
.stepper button { width: 40px; height: 40px; border-radius: 10px; font-size: 22px; font-weight: 600; color: var(--g700); display: grid; place-items: center; }
.stepper button:active { background: #fff; transform: scale(.94); }
.stepper .val { min-width: 92px; text-align: center; font-size: 18px; font-weight: 800; }

/* ---------- 바텀시트 · 토스트 ---------- */
#layer { position: absolute; inset: 0; pointer-events: none; z-index: 50; }
.dim { position: absolute; inset: 0; background: rgba(15,20,30,.38); opacity: 0; transition: opacity 240ms var(--ease); pointer-events: auto; }
.dim.on { opacity: 1; }
.sheet {
  position: absolute; left: 50%; bottom: 0; width: min(760px, 100%); max-height: calc(100% - 40px);
  background: #fff; border-radius: 28px 28px 0 0; box-shadow: 0 -8px 40px rgba(0,0,0,.14);
  transform: translate(-50%, 100%); transition: transform 300ms var(--ease); pointer-events: auto;
  display: flex; flex-direction: column;
}
.sheet.wide { width: min(980px, 100%); }
.sheet.on { transform: translate(-50%, 0); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--g300); margin: 10px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px 28px 8px; flex: none; }
.sheet-head h3 { font-size: 22px; font-weight: 800; flex: 1; letter-spacing: -0.03em; }
.sheet-close { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--g600); }
.sheet-close:hover { background: var(--g100); }
.sheet-body { padding: 8px 28px 16px; flex: 1; min-height: 0; }
.sheet-foot { padding: 12px 28px 24px; display: flex; gap: 12px; flex: none; border-top: 1px solid var(--g100); }

.toast-wrap { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; z-index: 80; }
.toast {
  background: rgba(25,31,40,.94); color: #fff; font-size: 15px; font-weight: 600; padding: 14px 20px; border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); display: flex; align-items: center; gap: 10px;
  animation: toastIn 260ms var(--ease);
}
.toast.out { animation: toastOut 240ms var(--ease) forwards; }
.toast .ok { width: 22px; height: 22px; border-radius: 50%; background: #3B82F6; display: grid; place-items: center; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

.ghost { position: absolute; z-index: 90; pointer-events: none; border-radius: 16px; background: #fff; box-shadow: var(--sh-lg); transition: all 560ms cubic-bezier(.5,.0,.2,1); overflow: hidden; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(14,49,128,.45); } 100% { box-shadow: 0 0 0 14px rgba(14,49,128,0); } }
.flash { animation: flash 900ms var(--ease) 2; }

/* ================= 학생 iPad ================= */
#view-student { background: var(--bg); }
.rail {
  width: 96px; flex: none; background: #fff; border-right: 1px solid var(--g200);
  display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 4px;
}
.rail .me { width: 48px; height: 48px; border-radius: 16px; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 16px; margin-bottom: 12px; }
.rail button { width: 76px; padding: 10px 0 8px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--g500); font-size: 13px; font-weight: 700; position: relative; }
.rail button svg { width: 24px; height: 24px; }
.rail button.on { color: var(--navy); background: var(--navy-50); }
.rail button .badge { position: absolute; top: 6px; right: 14px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.rail .clock { margin-top: auto; font-size: 13px; color: var(--g500); font-weight: 600; text-align: center; line-height: 1.4; }
.rail .clock b { display: block; font-size: 17px; color: var(--g900); }

.s-main { flex: 1; min-width: 0; position: relative; }
.s-page { position: absolute; inset: 0; display: none; flex-direction: column; padding: 20px 24px 20px; gap: 16px; }
.s-page.on { display: flex; animation: viewIn 220ms var(--ease); }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex: none; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; }
.page-head .sub { font-size: 14px; color: var(--g600); font-weight: 600; margin-top: 4px; }
.page-head .grow { flex: 1; }
.kpis { display: flex; gap: 8px; }
.kpi { background: #fff; border-radius: 16px; padding: 10px 16px; box-shadow: var(--sh); min-width: 116px; }
.kpi .l { font-size: 13px; color: var(--g600); font-weight: 600; }
.kpi .v { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.kpi .v small { font-size: 14px; font-weight: 700; color: var(--g600); margin-left: 2px; }

/* 타임라인 3열 */
.timeline { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.session { background: rgba(255,255,255,.55); border-radius: var(--r-lg); display: flex; flex-direction: column; min-height: 0; border: 1px solid rgba(0,0,0,.03); }
.session.past { opacity: 1; }
.session-head { padding: 14px 16px 10px; display: flex; align-items: center; gap: 8px; flex: none; }
.session-head b { font-size: 17px; font-weight: 800; }
.session-head .time { font-size: 13px; color: var(--g600); font-weight: 600; }
.session-head .free { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--g500); }
.session-head .free.has { color: var(--navy); }
.session-list { position: relative; flex: 1; min-height: 0; padding: 0 10px 10px; display: flex; flex-direction: column; gap: 0; }
.add-btn {
  margin-top: 6px; height: 46px; border-radius: 14px; border: 1.5px dashed var(--g300); color: var(--g600);
  font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; flex: none;
}
.add-btn:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.brk { font-size: 12px; color: var(--g400); font-weight: 600; text-align: center; padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.brk::before, .brk::after { content: ""; flex: 1; height: 1px; background: var(--g200); }

.blk {
  background: #fff; border-radius: 16px; padding: 12px 12px 12px 14px; box-shadow: var(--sh); position: relative;
  display: flex; flex-direction: column; gap: 6px; border: 1.5px solid transparent; flex: none;
  transition: border-color var(--t), box-shadow var(--t), transform 200ms var(--ease), opacity var(--t);
}
.blk::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 3px 3px 0; background: var(--c); }
.blk .row1 { display: flex; align-items: center; gap: 8px; }
.blk .t { font-size: 13px; font-weight: 700; color: var(--g600); }
.blk .st { margin-left: auto; }
.blk .book { font-size: 16px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.blk .rng { font-size: 14px; color: var(--g700); font-weight: 600; }
.blk .row3 { display: flex; align-items: center; gap: 6px; }
.blk .stats { font-size: 13px; font-weight: 700; color: var(--g600); display: flex; gap: 10px; }
.blk .stats b { color: var(--g900); }
.blk .ctrl { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity var(--t); }
.blk:hover .ctrl, .blk.sel .ctrl { opacity: 1; }
@media (pointer: coarse) { .blk .ctrl { opacity: 1; } }
.icon-btn { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--g500); }
.icon-btn:hover { background: var(--g100); color: var(--g800); }
.icon-btn svg { width: 18px; height: 18px; }
.blk.done { background: #FBFCFD; box-shadow: none; border-color: var(--g200); }
.blk.done .book { color: var(--g700); }
.blk.next { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(14,49,128,.08), var(--sh); }
.blk .start {
  height: 40px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px;
}
.blk .start:active { transform: scale(.98); }
.blk.new-in { animation: blkIn 360ms var(--ease); }
@keyframes blkIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* 추천 영역 */
.reco { flex: none; background: #fff; border-radius: var(--r-lg); padding: 14px 16px 16px; box-shadow: var(--sh); }
.reco-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.reco-head b { font-size: 17px; font-weight: 800; }
.reco-head span { font-size: 13px; color: var(--g600); font-weight: 600; }
.reco-list { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.reco-list::-webkit-scrollbar { display: none; }
.rcard {
  flex: none; width: 300px; border-radius: 16px; background: var(--g50); border: 1px solid var(--g200); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px; transition: opacity 260ms, transform 260ms var(--ease);
}
.rcard .why { font-size: 13px; font-weight: 700; color: var(--red); display: flex; align-items: center; gap: 6px; }
.rcard .why.mentor { color: var(--navy); }
.rcard .why.tmr { color: var(--amber); }
.rcard .what { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; }
.rcard .meta { font-size: 13px; color: var(--g600); font-weight: 600; }
.rcard .act { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.rcard .act .btn { height: 36px; font-size: 14px; padding: 0 12px; border-radius: 10px; }
.rcard.gone { opacity: 0; transform: scale(.94); }
.rcard.fresh { animation: blkIn 400ms var(--ease); border-color: #F1D49B; background: #FFFBF2; }
.reco-empty { font-size: 14px; color: var(--g500); padding: 18px 4px; }

/* 위저드 */
.wz-steps { display: flex; gap: 6px; margin: 2px 0 16px; }
.wz-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--g200); transition: background var(--t); }
.wz-steps i.on { background: var(--navy); }
.wz-q { font-size: 15px; color: var(--g600); font-weight: 600; margin-bottom: 14px; }
.subj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.subj-opt { height: 84px; border-radius: 18px; background: var(--g50); border: 1.5px solid var(--g200); display: flex; align-items: center; gap: 12px; padding: 0 18px; font-size: 19px; font-weight: 800; }
.subj-opt .sw { width: 36px; height: 36px; border-radius: 12px; background: var(--cb); display: grid; place-items: center; }
.subj-opt .sw i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.subj-opt.on { border-color: var(--navy); background: var(--navy-50); }
.book-list { display: flex; flex-direction: column; gap: 10px; }
.book-opt { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: var(--g50); border: 1.5px solid var(--g200); text-align: left; }
.book-opt .cover { width: 40px; height: 52px; border-radius: 6px; background: var(--cb); border-left: 4px solid var(--c); flex: none; }
.book-opt b { font-size: 17px; font-weight: 800; display: block; }
.book-opt span { font-size: 13px; color: var(--g600); font-weight: 600; }
.book-opt.on { border-color: var(--navy); background: var(--navy-50); }
.book-opt .chk { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--g300); display: grid; place-items: center; }
.book-opt.on .chk { background: var(--navy); border-color: var(--navy); color: #fff; }
.field-l { font-size: 14px; font-weight: 700; color: var(--g600); margin-bottom: 8px; }
.select {
  width: 100%; height: 52px; border-radius: 14px; border: 1.5px solid var(--g200); background: var(--g50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7684' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center;
  padding: 0 44px 0 16px; font-size: 16px; font-weight: 700; appearance: none; -webkit-appearance: none;
}
.range-row { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.range-row .sep { font-size: 20px; color: var(--g400); font-weight: 700; }
.summary-box { margin-top: 18px; border-radius: 16px; background: var(--navy-50); padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.summary-box b { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.summary-box span { font-size: 14px; color: var(--g700); font-weight: 600; }
.dur-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dur-opt { height: 64px; border-radius: 16px; background: var(--g50); border: 1.5px solid var(--g200); font-size: 18px; font-weight: 800; }
.dur-opt.on { border-color: var(--navy); background: var(--navy-50); color: var(--navy); }
.place-box { margin-top: 18px; border-radius: 16px; border: 1.5px solid var(--g200); padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.place-box .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--green-50); color: var(--green); display: grid; place-items: center; flex: none; }
.place-box b { font-size: 17px; font-weight: 800; display: block; }
.place-box span { font-size: 14px; color: var(--g600); font-weight: 600; }

/* 집중 화면 */
.focus {
  position: absolute; inset: 0; z-index: 20; background: linear-gradient(180deg, #F7F9FC 0%, #EEF2F8 100%);
  display: none; padding: 24px 32px; gap: 32px;
}
.focus.on { display: flex; animation: viewIn 260ms var(--ease); }
.focus-left { width: 420px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.ring { position: relative; width: 340px; height: 340px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .rem { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; }
.ring .lbl { font-size: 15px; color: var(--g600); font-weight: 700; }
.ring .of { font-size: 14px; color: var(--g500); font-weight: 600; margin-top: 4px; }
.demo-speed { font-size: 13px; color: var(--g500); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.demo-speed button { color: var(--navy); font-weight: 700; padding: 4px 8px; border-radius: 8px; background: var(--navy-50); }
.focus-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.focus-now { padding: 22px 24px; }
.focus-now .k { font-size: 14px; font-weight: 700; color: var(--g600); display: flex; align-items: center; gap: 8px; }
.focus-now h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; margin: 10px 0 4px; }
.focus-now .r { font-size: 18px; font-weight: 700; color: var(--g700); }
.apps { padding: 18px 24px; }
.apps h4 { font-size: 16px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.apps p { font-size: 13px; color: var(--g600); font-weight: 600; margin-bottom: 12px; }
.app-row { display: flex; gap: 14px; flex-wrap: wrap; }
.app { width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--g700); }
.app .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.app .ico svg { width: 28px; height: 28px; }
.app.off .ico { filter: grayscale(1); opacity: .45; box-shadow: none; }
.app.off { color: var(--g500); }
.app.off .ico { position: relative; }
.focus-actions { display: flex; gap: 12px; }
.focus-actions .btn { height: 56px; font-size: 17px; flex: 1; }
.blocked-count { font-size: 13px; color: var(--g600); font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* 가림 화면 */
.shield {
  position: absolute; inset: 0; z-index: 40; background: linear-gradient(160deg, #0E3180 0%, #0A2563 100%); color: #fff;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center;
}
.shield.on { display: flex; animation: viewIn 240ms var(--ease); }
.shield .logo-card { background: #fff; border-radius: 22px; padding: 14px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.shield .logo-card img { height: 46px; }
.shield h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; margin-top: 8px; }
.shield p { font-size: 18px; opacity: .85; font-weight: 600; }
.shield .note { font-size: 14px; opacity: .7; }
.shield .btn { margin-top: 12px; min-width: 240px; }

/* 종료 시트 */
.end-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.end-sec { margin-bottom: 18px; }
.end-sec .field-l { display: flex; align-items: center; gap: 8px; }
.end-sec .hint { font-size: 13px; color: var(--g500); font-weight: 600; margin-top: 8px; }
.know { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.know button { height: 88px; border-radius: 16px; background: var(--g50); border: 1.5px solid var(--g200); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.know button b { font-size: 26px; font-weight: 800; }
.know button span { font-size: 12px; font-weight: 700; color: var(--g600); text-align: center; line-height: 1.25; padding: 0 4px; }
.know button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.know button.on span { color: rgba(255,255,255,.85); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cbtn { height: 40px; padding: 0 14px; border-radius: 12px; background: var(--g50); border: 1.5px solid var(--g200); font-size: 14px; font-weight: 700; color: var(--g700); }
.cbtn.on { background: var(--navy-50); border-color: var(--navy); color: var(--navy); }
.input { width: 100%; height: 48px; border-radius: 14px; border: 1.5px solid var(--g200); background: var(--g50); padding: 0 16px; font-size: 15px; font-weight: 600; outline: none; }
.input:focus { border-color: var(--navy); background: #fff; }
textarea.input { height: auto; padding: 12px 16px; resize: none; line-height: 1.5; }

/* 노트 */
.note-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.note-col { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.note-col h3 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.note-col h3 .cnt { font-size: 13px; color: var(--g500); font-weight: 700; }
.note-col .desc { font-size: 13px; color: var(--g600); font-weight: 600; margin-top: -6px; }
.note-items { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.ni { background: var(--g50); border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 600; line-height: 1.4; }
.ni .when { font-size: 12px; color: var(--g500); font-weight: 700; display: block; margin-top: 2px; }
.ni .auto { font-size: 11px; font-weight: 800; color: var(--navy); background: var(--navy-50); padding: 2px 6px; border-radius: 5px; margin-left: 4px; }
.ni .x { margin-left: auto; }
.ni .ck { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--g300); flex: none; display: grid; place-items: center; margin-top: 1px; }
.ni.checked .ck { background: var(--navy); border-color: var(--navy); color: #fff; }
.add-row { display: flex; gap: 8px; }
.add-row .input { height: 44px; }

/* DM (카톡형) */
.dm { flex: 1; min-height: 0; display: flex; gap: 16px; }
.dm-chat { flex: 1; min-width: 0; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; background: #BACEE0; box-shadow: var(--sh); }
.dm-head { background: rgba(186,206,224,.95); padding: 14px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(0,0,0,.04); }
.avatar { width: 44px; height: 44px; border-radius: 16px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; }
.dm-head b { font-size: 17px; font-weight: 800; }
.dm-head span { font-size: 13px; color: var(--g700); font-weight: 600; display: block; }
.dm-hours { margin: 12px auto 0; font-size: 13px; font-weight: 700; color: var(--g800); background: rgba(255,255,255,.6); border-radius: 999px; padding: 6px 14px; }
.dm-body { flex: 1; min-height: 0; padding: 12px 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 72%; animation: blkIn 240ms var(--ease); }
.msg .bub { padding: 10px 14px; border-radius: 16px; font-size: 15px; font-weight: 500; line-height: 1.45; background: #fff; }
.msg .tm { font-size: 11px; color: var(--g700); font-weight: 600; white-space: nowrap; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .bub { background: #FEE500; }
.msg .who { font-size: 13px; font-weight: 700; color: var(--g800); margin-bottom: 4px; }
.msg .photo { width: 220px; height: 150px; border-radius: 14px; background: linear-gradient(135deg, #F4F1EA, #E7E1D3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--g600); font-size: 13px; font-weight: 700; border: 1px solid rgba(0,0,0,.06); }
.msg .photo .lines { width: 150px; display: flex; flex-direction: column; gap: 6px; }
.msg .photo .lines i { height: 5px; border-radius: 3px; background: rgba(0,0,0,.12); }
.dm-day { align-self: center; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0,0,0,.18); padding: 4px 12px; border-radius: 999px; }
.dm-input { background: #fff; padding: 10px 12px; display: flex; gap: 8px; align-items: center; }
.dm-input .input { background: var(--g100); border: 0; height: 44px; }
.dm-input .send { height: 44px; padding: 0 18px; border-radius: 12px; background: #FEE500; font-weight: 800; font-size: 15px; }
.dm-side { width: 300px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.side-card { padding: 18px; }
.side-card h4 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.side-card p, .side-card li { font-size: 14px; color: var(--g700); font-weight: 600; line-height: 1.55; }
.side-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.side-card li { display: flex; gap: 8px; }
.side-card li b { color: var(--g900); min-width: 64px; }

/* 내 기록 */
.rec-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto 1fr; gap: 16px; }
.big-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.big-stat { padding: 18px 20px; }
.big-stat .l { font-size: 14px; color: var(--g600); font-weight: 700; }
.big-stat .v { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; margin-top: 4px; }
.big-stat .v small { font-size: 16px; color: var(--g600); font-weight: 700; margin-left: 2px; }
.big-stat .d { font-size: 13px; font-weight: 700; margin-top: 2px; color: var(--green); }
.panel { padding: 20px 22px; display: flex; flex-direction: column; min-height: 0; }
.panel h3 { font-size: 18px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel h3 .r { margin-left: auto; font-size: 13px; color: var(--g500); font-weight: 600; }
.hbar { display: grid; grid-template-columns: 56px 1fr 112px; align-items: center; gap: 12px; margin-bottom: 14px; }
.hbar .n { font-size: 15px; font-weight: 800; }
.hbar .track { height: 14px; border-radius: 7px; background: var(--g100); overflow: hidden; position: relative; }
.hbar .fill { height: 100%; border-radius: 7px; background: var(--c); transition: width 600ms var(--ease); }
.hbar .plan { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--g800); border-radius: 1px; }
.hbar .v { font-size: 14px; font-weight: 700; color: var(--g700); text-align: right; }
.chart-svg { width: 100%; flex: 1; min-height: 0; }

/* ================= 멘토 ================= */
#view-mentor { background: var(--bg); }
.m-side { width: 216px; flex: none; background: #fff; border-right: 1px solid var(--g200); display: flex; flex-direction: column; padding: 18px 12px; gap: 4px; }
.m-side .who { padding: 4px 10px 14px; border-bottom: 1px solid var(--g100); margin-bottom: 10px; }
.m-side .who b { font-size: 17px; font-weight: 800; display: block; }
.m-side .who span { font-size: 14px; color: var(--g600); font-weight: 600; }
.m-side .lab { font-size: 13px; font-weight: 700; color: var(--g500); padding: 6px 10px; }
.grp { height: 48px; border-radius: 14px; padding: 0 12px; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--g700); width: 100%; text-align: left; }
.grp:hover { background: var(--g50); }
.grp.on { background: var(--navy-50); color: var(--navy); }
.grp .n { margin-left: auto; font-size: 14px; color: var(--g500); font-weight: 600; }
.grp .alert-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(230,0,18,.5); animation: pulseDot 1.4s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(230,0,18,.55); } 100% { box-shadow: 0 0 0 10px rgba(230,0,18,0); } }
.m-main { flex: 1; min-width: 0; position: relative; display: flex; overflow: hidden; }
.m-page { position: absolute; inset: 0; display: none; padding: 20px 24px; gap: 16px; }
.m-page.on { display: flex; animation: viewIn 220ms var(--ease); }
.m-center { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.m-right { width: 292px; flex: none; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.status-sum { display: flex; gap: 8px; flex-wrap: wrap; }
.ss { height: 36px; padding: 0 14px; border-radius: 12px; background: #fff; box-shadow: var(--sh); display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--g700); }
.ss b { font-size: 16px; color: var(--g900); }
.sgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 12px; }
.stu { padding: 14px; display: flex; flex-direction: column; gap: 6px; text-align: left; border: 2px solid transparent; position: relative; overflow: hidden; }
.stu:hover { box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 10px 28px rgba(14,49,128,.1); }
.stu .top { display: flex; align-items: center; gap: 8px; }
.stu .nm { font-size: 17px; font-weight: 800; }
.stu .seat { font-size: 13px; color: var(--g500); font-weight: 600; margin-left: auto; }
.stu .cur { font-size: 14px; font-weight: 600; color: var(--g700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stu .prog { font-size: 14px; color: var(--g600); font-weight: 600; margin-top: auto; display: flex; justify-content: space-between; }
.stu .pbar { height: 6px; border-radius: 3px; background: var(--g100); overflow: hidden; }
.stu .pbar i { display: block; height: 100%; background: var(--navy); border-radius: 3px; }
.stu.alert { border-color: var(--red); animation: alertGlow 1.4s infinite; }
.stu.checked { border-color: #F1C27D; }
@keyframes alertGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(230,0,18,.25), var(--sh); } 50% { box-shadow: 0 0 0 6px rgba(230,0,18,.08), var(--sh); } }
.st-chip { height: 26px; padding: 0 9px; border-radius: 8px; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.st-focus { background: var(--green-50); color: var(--green); }
.st-rest { background: var(--g100); color: var(--g600); }
.st-lost { background: var(--amber-50); color: var(--amber); }
.st-alert { background: var(--red); color: #fff; }
.st-check { background: var(--amber-50); color: var(--amber); }
.feed { padding: 16px; display: flex; flex-direction: column; min-height: 0; }
.feed h4 { font-size: 16px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.feed h4 .badge { min-width: 22px; height: 22px; border-radius: 11px; background: var(--red); color: #fff; font-size: 13px; display: grid; place-items: center; padding: 0 6px; }
.feed-list { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.fi { display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--g50); align-items: flex-start; text-align: left; width: 100%; }
.fi .tm { font-size: 13px; color: var(--g500); font-weight: 700; min-width: 40px; padding-top: 1px; }
.fi .tx { font-size: 14px; font-weight: 600; color: var(--g800); line-height: 1.45; }
.fi .tx b { font-weight: 800; color: var(--g900); }
.fi.new { background: #FFFBF2; animation: blkIn 300ms var(--ease); }
.fi .unread { width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-left: auto; margin-top: 6px; flex: none; }

/* 경보 배너 */
.alarm {
  position: absolute; left: 24px; right: 24px; top: 16px; z-index: 30; border-radius: 22px; background: #fff;
  border: 2px solid var(--red); padding: 16px 18px; display: flex; align-items: center; gap: 16px;
  box-shadow: 0 16px 48px rgba(230,0,18,.22); transform: translateY(-140%); opacity: 0;
  transition: transform 420ms cubic-bezier(.2,1.2,.3,1), opacity 260ms, visibility 0s 420ms; visibility: hidden; pointer-events: none;
}
.alarm.on { visibility: visible; pointer-events: auto; transition: transform 420ms cubic-bezier(.2,1.2,.3,1), opacity 260ms; transform: none; opacity: 1; animation: alarmPulse 1.6s 420ms infinite; }
@keyframes alarmPulse { 0%, 100% { box-shadow: 0 16px 48px rgba(230,0,18,.22), 0 0 0 0 rgba(230,0,18,.35); } 50% { box-shadow: 0 16px 48px rgba(230,0,18,.22), 0 0 0 10px rgba(230,0,18,0); } }
.alarm .spk { width: 56px; height: 56px; border-radius: 18px; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.alarm .spk svg { width: 30px; height: 30px; }
.alarm .spk .w { animation: wave 1s infinite; transform-origin: left center; }
@keyframes wave { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.alarm .tx { flex: 1; min-width: 0; }
.alarm .tx .k { font-size: 14px; font-weight: 800; color: var(--red); display: flex; align-items: center; gap: 8px; }
.alarm .tx b { display: block; font-size: 19px; font-weight: 800; margin: 2px 0; letter-spacing: -0.03em; }
.alarm .tx span { font-size: 15px; color: var(--g700); font-weight: 600; }
.alarm .acts { display: flex; gap: 8px; }

/* 학생 상세 */
.d-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.d-head { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.d-head .back { width: 44px; height: 44px; border-radius: 14px; background: var(--g100); display: grid; place-items: center; flex: none; }
.d-head .avatar { width: 52px; height: 52px; border-radius: 18px; font-size: 18px; background: var(--navy-50); color: var(--navy); }
.d-head .nm { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.d-head .meta { font-size: 14px; color: var(--g600); font-weight: 600; }
.d-head .today { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.d-head .today .l { font-size: 13px; color: var(--g500); font-weight: 700; }
.d-head .today .chips { justify-content: flex-end; }
.note-chip { height: 32px; padding: 0 12px; border-radius: 10px; background: var(--amber-50); color: #8A5A08; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--g200); padding: 0 4px; flex: none; }
.tabs button { height: 46px; padding: 0 16px; font-size: 16px; font-weight: 700; color: var(--g500); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--g900); border-color: var(--g900); }
.d-body { flex: 1; min-height: 0; position: relative; }
.d-tab { position: absolute; inset: 0; display: none; }
.d-tab.on { display: flex; animation: viewIn 200ms var(--ease); }
.ctrl-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ctrl-row .lab { font-size: 14px; font-weight: 700; color: var(--g600); }
.an-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; flex: 1; min-height: 0; }
table.sub { width: 100%; border-collapse: collapse; }
table.sub th { font-size: 13px; color: var(--g500); font-weight: 700; text-align: left; padding: 0 8px 10px; border-bottom: 1px solid var(--g200); }
table.sub td { font-size: 15px; font-weight: 600; padding: 12px 8px; border-bottom: 1px solid var(--g100); vertical-align: middle; }
table.sub tr { transition: background var(--t); }
table.sub tr.moved td { animation: rowIn 360ms var(--ease); }
@keyframes rowIn { from { opacity: .2; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.mini-bar { display: flex; flex-direction: column; gap: 4px; }
.mini-bar .tr { height: 8px; border-radius: 4px; background: var(--g100); overflow: hidden; }
.mini-bar .tr i { display: block; height: 100%; border-radius: 4px; }
.mini-bar span { font-size: 14px; font-weight: 700; color: var(--g700); }
.kn { display: inline-flex; gap: 3px; }
.kn i { width: 10px; height: 10px; border-radius: 3px; background: var(--g200); }
.kn i.f { background: var(--navy); }
.kn.low i.f { background: var(--red); }
.heat { display: grid; grid-template-columns: 52px repeat(7, 1fr); gap: 6px; }
.heat .h { font-size: 13px; font-weight: 700; color: var(--g500); text-align: center; }
.heat .rl { font-size: 14px; font-weight: 700; color: var(--g700); display: flex; align-items: center; }
.heat .c { height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 800; transition: background 300ms, opacity 300ms; }
.heat .c.dim { opacity: .28; }
.insight { margin-top: 14px; border-radius: 16px; background: var(--red-50); padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.insight .ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--red); display: grid; place-items: center; flex: none; }
.insight b { font-size: 17px; font-weight: 800; color: var(--g900); display: block; }
.insight span { font-size: 14px; color: var(--g700); font-weight: 600; }
.legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--g500); font-weight: 600; margin-top: 10px; }
.legend i { width: 18px; height: 12px; border-radius: 4px; display: inline-block; }
.prog-subj { margin-bottom: 18px; }
.prog-subj h5 { font-size: 16px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.pb { margin-bottom: 12px; }
.pb .top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.pb .top b { font-size: 15px; font-weight: 800; }
.pb .top span { font-size: 14px; color: var(--g600); font-weight: 600; }
.pb .top .delta { margin-left: auto; font-size: 14px; font-weight: 800; }
.pb .track { height: 12px; border-radius: 6px; background: var(--g100); position: relative; overflow: hidden; }
.pb .track .pre { position: absolute; left: 0; top: 0; bottom: 0; background: var(--g300); }
.pb .track .camp { position: absolute; top: 0; bottom: 0; background: var(--c); }
.pb .track .pl { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--g900); }
.week-ranges { display: flex; flex-wrap: wrap; gap: 6px; }
.wr { font-size: 14px; font-weight: 600; background: var(--g50); border: 1px solid var(--g200); border-radius: 10px; padding: 6px 10px; color: var(--g700); }
.wr b { color: var(--g900); margin-right: 4px; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; flex: 1; min-height: 0; }
.psy-row { display: grid; grid-template-columns: 92px 1fr 30px; align-items: center; gap: 10px; margin-bottom: 10px; }
.psy-row span { font-size: 14px; font-weight: 700; color: var(--g700); }
.psy-row .lv { display: flex; gap: 4px; }
.psy-row .lv i { flex: 1; height: 12px; border-radius: 4px; background: var(--g100); }
.psy-row .lv i.f { background: var(--navy); }
.psy-row b { font-size: 15px; font-weight: 800; text-align: right; }
.small-note { font-size: 13px; color: var(--g500); font-weight: 600; line-height: 1.5; }

/* ================= 학부모 ================= */
#view-parent { background: #DCE3EA; }
.p-wrap { flex: 1; display: flex; justify-content: center; position: relative; gap: 24px; padding: 20px 24px; }
.p-explain { width: 340px; flex: none; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.p-explain .card { padding: 22px; }
.p-explain h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; }
.p-explain p { font-size: 15px; color: var(--g700); font-weight: 600; line-height: 1.6; margin-top: 8px; }
.p-explain .wk { display: flex; flex-direction: column; gap: 10px; }
.p-explain .wk .l { font-size: 14px; font-weight: 700; color: var(--g600); }
.kakao { width: 500px; flex: none; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; background: #B2C7DA; box-shadow: 0 10px 40px rgba(0,0,0,.12); }
.k-head { height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 18px; background: rgba(178,199,218,.96); }
.k-head .pf { width: 40px; height: 40px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.k-head .pf img { width: 34px; height: auto; }
.k-head b { font-size: 17px; font-weight: 800; }
.k-head span { font-size: 13px; font-weight: 600; color: var(--g700); display: block; }
.k-body { flex: 1; min-height: 0; padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.k-day { align-self: center; font-size: 13px; font-weight: 700; color: #fff; background: rgba(0,0,0,.16); padding: 5px 14px; border-radius: 999px; }
.k-msg { display: flex; gap: 8px; align-items: flex-start; }
.k-msg .pf { width: 40px; height: 40px; border-radius: 14px; background: #fff; display: grid; place-items: center; flex: none; overflow: hidden; }
.k-msg .pf img { width: 34px; }
.k-msg .nm { font-size: 14px; font-weight: 700; color: var(--g800); margin-bottom: 6px; }
.at { width: 340px; background: #fff; border-radius: 4px 18px 18px 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.at .yh { background: #FEE500; padding: 10px 14px; font-size: 14px; font-weight: 800; color: #3C1E1E; display: flex; align-items: center; gap: 6px; }
.at .bd { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.at .t1 { font-size: 16px; font-weight: 800; line-height: 1.4; }
.at .big { display: flex; align-items: baseline; gap: 8px; }
.at .big b { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; }
.at .big span { font-size: 14px; font-weight: 700; color: var(--green); }
.at .ln { font-size: 14px; font-weight: 600; color: var(--g700); line-height: 1.6; }
.at .ln b { color: var(--g900); }
.at .ft { background: var(--g50); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--g800); }
.at .ft .ar { color: var(--g500); margin: 0 4px; }
.at .kbtn { height: 46px; border-radius: 10px; background: var(--g100); font-size: 15px; font-weight: 700; width: 100%; }
.at .kbtn:hover { background: var(--g200); }
.k-msg .tm { font-size: 12px; color: var(--g700); font-weight: 600; align-self: flex-end; }
.k-msg.cur .at { box-shadow: 0 0 0 3px rgba(254,229,0,.9), 0 6px 20px rgba(0,0,0,.08); }

.webview {
  position: absolute; top: 12px; bottom: 12px; right: 12px; width: 620px; z-index: 25; background: #fff; border-radius: 26px;
  box-shadow: -10px 0 50px rgba(0,0,0,.18); transform: translateX(calc(100% + 30px)); transition: transform 340ms var(--ease);
  display: flex; flex-direction: column; overflow: hidden;
}
.webview.on { transform: none; }
.wv-bar { height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--g100); flex: none; }
.wv-bar .url { flex: 1; height: 36px; border-radius: 10px; background: var(--g100); display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 14px; color: var(--g600); font-weight: 600; }
.wv-body { flex: 1; min-height: 0; padding: 22px 26px 28px; display: flex; flex-direction: column; gap: 22px; }
.wv-body h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.3; }
.wv-body .sub { font-size: 15px; color: var(--g600); font-weight: 600; }
.wv-sec h4 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.tot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tot { background: var(--g50); border-radius: 16px; padding: 14px 16px; }
.tot .l { font-size: 14px; color: var(--g600); font-weight: 700; }
.tot .v { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; margin-top: 2px; }
.tot .v small { font-size: 15px; color: var(--g600); margin-left: 2px; }
.tot .d { font-size: 14px; font-weight: 700; color: var(--green); }
.mentor-say { background: var(--navy-50); border-radius: 18px; padding: 18px; display: flex; gap: 14px; }
.mentor-say p { font-size: 16px; line-height: 1.65; font-weight: 600; color: var(--g800); }
.mentor-say .who { font-size: 14px; color: var(--navy); font-weight: 800; margin-bottom: 4px; }
.gl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gl .box { border-radius: 16px; padding: 14px 16px; }
.gl .box .l { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.gl .box p { font-size: 15px; font-weight: 600; line-height: 1.55; }

/* ================= 온보딩 ================= */
#view-onb { background: var(--bg); }
.o-left { width: 360px; flex: none; background: #fff; border-right: 1px solid var(--g200); padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.o-left h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.o-left .sub { font-size: 14px; color: var(--g600); font-weight: 600; margin-top: -8px; }
.o-prog { background: var(--g50); border-radius: 16px; padding: 14px 16px; }
.o-prog .row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 700; color: var(--g600); }
.o-prog .row b { font-size: 20px; color: var(--g900); font-weight: 800; }
.o-prog .bar { height: 10px; border-radius: 5px; background: var(--g200); margin-top: 10px; overflow: hidden; }
.o-prog .bar i { display: block; height: 100%; background: var(--navy); border-radius: 5px; transition: width 400ms var(--ease); }
.o-steps { display: flex; flex-direction: column; gap: 4px; }
.o-grp { font-size: 13px; font-weight: 800; color: var(--g500); padding: 8px 4px 4px; }
.o-step { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-align: left; width: 100%; }
.o-step:hover { background: var(--g50); }
.o-step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--g100); color: var(--g600); font-size: 14px; font-weight: 800; display: grid; place-items: center; flex: none; transition: background var(--t); }
.o-step b { font-size: 15px; font-weight: 700; color: var(--g700); display: block; }
.o-step .m { margin-left: auto; font-size: 13px; color: var(--g500); font-weight: 700; white-space: nowrap; }
.o-step.on { background: var(--navy-50); }
.o-step.on .n { background: var(--navy); color: #fff; }
.o-step.on b { color: var(--navy); }
.o-step.done .n { background: var(--green); color: #fff; }
.o-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 16px; position: relative; }
.o-card { width: 640px; max-width: 100%; padding: 28px 32px; min-height: 520px; display: flex; flex-direction: column; gap: 16px; animation: viewIn 260ms var(--ease); }
.o-card .k { font-size: 14px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.o-card h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.3; }
.o-card .d { font-size: 15px; color: var(--g600); font-weight: 600; line-height: 1.55; }
.o-card .stage { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.o-card .foot { display: flex; gap: 10px; }
.o-card .foot .btn { flex: 1; height: 54px; font-size: 17px; }
.paper { display: flex; gap: 20px; align-items: center; background: var(--g50); border-radius: 18px; padding: 20px; border: 1px solid var(--g200); }
.paper .qr { width: 132px; height: 132px; background: #fff; border-radius: 12px; padding: 10px; flex: none; position: relative; }
.paper .qr .scan { position: absolute; left: 6px; right: 6px; height: 3px; background: var(--red); border-radius: 2px; top: 10px; opacity: 0; }
.paper .qr.scanning .scan { opacity: 1; animation: scan 900ms ease-in-out 2; }
@keyframes scan { 0%, 100% { top: 10px; } 50% { top: 118px; } }
.paper .t b { font-size: 17px; font-weight: 800; display: block; margin-bottom: 6px; }
.paper .t p { font-size: 14px; color: var(--g600); font-weight: 600; line-height: 1.55; }
.install { display: flex; align-items: center; gap: 14px; border-radius: 18px; border: 1.5px solid var(--g200); padding: 14px 16px; }
.install img { width: 56px; height: 56px; border-radius: 14px; }
.install b { font-size: 17px; font-weight: 800; display: block; }
.install span { font-size: 14px; color: var(--g600); font-weight: 600; }
.install .btn { margin-left: auto; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row .input { height: 54px; font-size: 18px; font-weight: 700; }
.grp-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.grp-pick button { width: 64px; height: 48px; border-radius: 12px; background: var(--g50); border: 1.5px solid var(--g200); font-size: 16px; font-weight: 800; color: var(--g700); }
.grp-pick button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.perm { align-self: center; width: 420px; border-radius: 22px; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.14); border: 1px solid var(--g200); overflow: hidden; text-align: center; }
.perm .pb2 { padding: 22px 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.perm .pb2 img { width: 56px; height: 56px; border-radius: 14px; }
.perm b { font-size: 18px; font-weight: 800; line-height: 1.4; }
.perm p { font-size: 14px; color: var(--g600); font-weight: 600; line-height: 1.5; }
.perm .pa { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--g200); }
.perm .pa button { height: 52px; font-size: 16px; font-weight: 700; color: var(--g600); }
.perm .pa button + button { border-left: 1px solid var(--g200); color: var(--navy); font-weight: 800; }
.okline { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: var(--green); background: var(--green-50); border-radius: 14px; padding: 12px 16px; animation: blkIn 300ms var(--ease); }
.okline svg { width: 22px; height: 22px; }
.chk-list { display: flex; flex-direction: column; gap: 8px; }
.chk { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--g50); border: 1.5px solid var(--g200); text-align: left; width: 100%; transition: border-color var(--t), background var(--t); }
.chk .bx { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--g300); display: grid; place-items: center; flex: none; color: transparent; transition: all var(--t); }
.chk.on .bx { background: var(--navy); border-color: var(--navy); color: #fff; }
.chk.on { border-color: var(--navy-100); background: #fff; }
.chk b { font-size: 15px; font-weight: 800; display: block; }
.chk span { font-size: 13px; color: var(--g600); font-weight: 600; }
.chk .tag { margin-left: auto; }
.chk .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.chk .ico svg { width: 20px; height: 20px; }
.verify-box { border: 1.5px dashed #E6B85C; background: #FFFBF2; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.verify-box .vh { font-size: 13px; font-weight: 800; color: var(--amber); display: flex; align-items: center; gap: 6px; padding: 2px 4px; }
.mini-ring { display: flex; align-items: center; gap: 18px; background: var(--g50); border-radius: 18px; padding: 16px 18px; }
.mini-ring svg { width: 88px; height: 88px; transform: rotate(-90deg); flex: none; }
.mini-ring b { font-size: 18px; font-weight: 800; display: block; }
.mini-ring span { font-size: 14px; color: var(--g600); font-weight: 600; }
.done-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.done-hero .ok { width: 76px; height: 76px; border-radius: 26px; background: var(--green-50); color: var(--green); display: grid; place-items: center; animation: blkIn 360ms var(--ease); }
.done-hero .ok svg { width: 40px; height: 40px; }
.p-wrap.rep { justify-content: flex-start; }
.p-wrap.rep .p-explain { display: none; }

/* ---- 아이콘 기본 크기 · hidden · 최소 글자 크기 ---- */
[hidden] { display: none !important; }
:where(svg:not([width]):not(.chart-svg)) { width: 20px; height: 20px; flex: none; }
:where(.btn, .rcard .why, .chip, .tag, .st-chip, .note-chip, .ss) svg { width: 16px; height: 16px; }
.tag, .ex, .ni .when, .ni .auto, .msg .tm, .know button span, .dm-day, .brk, .legend { font-size: 13px; }
.rail button .badge { font-size: 12px; min-width: 20px; height: 20px; }
/* 멘토 · 학부모 화면은 14px 이상 */
#view-mentor .tag, #view-mentor .chip, #view-mentor .st-chip, #view-mentor .small-note, #view-mentor .lab,
#view-mentor .seat, #view-mentor .when, #view-mentor th, #view-mentor .r, #view-mentor .l, #view-mentor .legend,
#view-mentor .heat .h, #view-mentor .heat .c, #view-mentor .fi .tm, #view-mentor .page-head .sub, #view-mentor .ex,
#view-parent .tag, #view-parent .chip, #view-parent .small-note, #view-parent .k-msg .tm, #view-parent .k-day,
#view-parent .heat .h, #view-parent .heat .c, #view-parent .k-head span, #view-parent .l, #view-parent .legend { font-size: 14px; }
#view-mentor .chip, #view-parent .chip { height: 30px; }
#view-mentor .feed h4 .badge { font-size: 14px; }
#view-onb .o-grp, #view-onb .o-step .m, #view-onb .small-note { font-size: 14px; }
.stu .cur { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.o-main { overflow-y: auto; }
.o-card.wide { width: 900px; min-height: 0; }
.m5-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.m5-grid .verify-box { height: 100%; }
.focus-actions .btn.grey { background: #fff; box-shadow: var(--sh); }
