/* 새솔학원 화면 스타일: 확정된 시안(MVP)의 밝은 새싹 테마 */
/* Layout: sticky bar with role switch (원장 / 선생님 / 학부모) + tabbed workspace; parent view in a phone-width column */
:root {
  --bg: #FFFBF1; --surface: #FFFFFF; --sunk: #F4EFE3; --line: #ECE4D3;
  --ink: #1F2A24; --ink-2: #44514B; --ink-3: #5C6A60;
  --accent: #0C7D69; --accent-ink: #FFFFFF; --accent-soft: #DDF5EF;
  --brand: #2BBFA4; --brand-ink: #0C7D69; --brand-soft: #DDF5EF; --brand-mid: #7CCFBE; --sun: #FFD24D;
  --warn: #8A3D00; --warn-soft: #FFEFD9; --info: #1F5F99; --info-soft: #E6F1FB;
  --danger: #A3262C; --danger-soft: #FDE7E4;
  color-scheme: light;
  --font: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55 }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 16px; padding-block: 0 56px }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line) }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 10px }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.3px }
.mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex: none }
.mark svg { stroke: var(--accent-ink) }
.seg { display: inline-flex; background: var(--sunk); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap }
.seg button { border: 0; background: transparent; border-radius: 9px; min-height: 38px; padding: 0 14px; font-size: 14px; font-weight: 500; color: var(--ink-2) }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08) }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-block: 20px; overflow-x: auto }
.tabs button { border: 0; background: none; padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent) }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: var(--info-soft); border-radius: 12px; padding: 12px 16px; margin-top: 16px; font-size: 14px }
.banner.warn { background: var(--warn-soft) }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px }
.between { justify-content: space-between }
.end { justify-content: flex-end }
h1 { font-size: 22px; margin: 0; letter-spacing: -0.4px; text-wrap: balance }
h2 { font-size: 17px; margin: 0 }
.muted { color: var(--ink-3); font-size: 14px }
.small { font-size: 12px }
.card { background: var(--surface); border-radius: 16px; padding: 18px }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600 }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent) }
.btn.ghost { border-color: transparent; background: transparent }
.btn.danger { color: var(--danger) }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px }
.btn:disabled { opacity: .45; cursor: not-allowed }
.icon-btn { width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center }
.icon-btn svg { stroke: var(--ink) }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 10px; white-space: nowrap }
.chip.wait { color: var(--warn); background: var(--warn-soft) }
.chip.done { color: var(--accent); background: var(--accent-soft) }
.chip.info { color: var(--info); background: var(--info-soft) }
.chip.none { color: var(--ink-3); background: var(--sunk) }
.chip.bad { color: var(--danger); background: var(--danger-soft) }
.grid2 { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start }
.grid2 > .side { flex: 1 1 280px; min-width: 0 }
.grid2 > .main { flex: 3 1 460px; min-width: 0 }
.list { display: flex; flex-direction: column; gap: 2px }
.list button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 52px; padding: 6px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: 15px }
.list button[aria-current="true"] { background: var(--accent-soft); font-weight: 700 }
.list button:hover { background: var(--sunk) }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2) }
label.c { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; cursor: pointer }
label.c input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none }
input.in, select.in, textarea.in { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface); font-size: 15px; font-weight: 400; color: var(--ink) }
textarea.in { line-height: 1.7; resize: vertical }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 0 }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px }
.stat { background: var(--surface); border-radius: 14px; padding: 14px 16px }
.stat b { display: block; font-size: 21px; letter-spacing: -0.4px; font-variant-numeric: tabular-nums }
.tbl-wrap { overflow-x: auto }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap }
td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle }
td.wrapc { white-space: normal; min-width: 160px }
tr.sub td { background: var(--sunk); white-space: normal }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.inline select, .inline input { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: var(--surface); font-size: 13px }
.note { background: var(--sunk); border-radius: 12px; padding: 12px 14px; font-size: 14px }
.note.warn { background: var(--warn-soft) }
.note.info { background: var(--info-soft) }
.empty { text-align: center; padding: 36px 16px; color: var(--ink-3) }
.stack { display: flex; flex-direction: column; gap: 14px }
.code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-weight: 700; letter-spacing: 2px; background: var(--sunk); padding: 2px 8px; border-radius: 6px }
.receipt { border: 1px dashed var(--line); border-radius: 12px; padding: 16px; background: var(--surface); max-width: 460px }
.receipt dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 10px 0 0 }
.receipt dt { color: var(--ink-3) } .receipt dd { margin: 0; font-weight: 500 }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-size: 14px; z-index: 20; max-width: calc(100% - 32px) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.phone { max-width: 390px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: 28px; overflow: hidden }
.phone-head { background: var(--surface); padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 4px }
.phone-body { padding: 14px; display: flex; flex-direction: column; gap: 12px }
.amount { font-size: 28px; font-weight: 700; letter-spacing: -0.6px; font-variant-numeric: tabular-nums }
.quote { font-size: 15px; line-height: 1.75; white-space: pre-wrap }
.line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px }
.past { border-top: 1px solid var(--line); padding-top: 12px }
.kids { display: flex; gap: 6px; flex-wrap: wrap }
.kids button { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; min-height: 38px; padding: 0 14px; font-size: 14px }
.kids button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700 }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px }
.subtabs button { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; min-height: 38px; padding: 0 14px; font-size: 14px; color: var(--ink-2) }
.subtabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 700 }
.lockbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px }
.pinbox { max-width: 380px; margin: 24px auto; text-align: center }
.pinbox input { text-align: center; letter-spacing: 8px; font-size: 22px }
.task { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line) }
.task:last-child { border-bottom: 0 }
.task b { font-size: 16px }
.num { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 48px }
.wiz { border: 2px solid var(--accent); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface) }
.impact { background: var(--warn-soft); border-radius: 10px; padding: 10px 14px; font-size: 14px }
.impact.ok { background: var(--accent-soft) }
.enr-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line) }
.formula { font-size: 12px; color: var(--ink-3) }
.toast button { margin-left: 10px; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 8px; padding: 2px 10px; font-weight: 700 }
.modebar { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 10px; background: var(--warn-soft); color: var(--warn) }
/* ---- 학부모 화면: 밝은 새싹 테마 ---- */
.pp { --pg: #0C7D69; --pg2: #2BBFA4; --pmint: #DDF5EF; --pcream: #FFFBF1; --pyel: #FFF3C4; --pink: #FFD9D6; --pline: #EFE7D6;
  background: var(--pcream); border-color: var(--pline); border-radius: 32px; box-shadow: 0 10px 30px rgba(60, 90, 50, .10) }
.pp .phone-head { background: linear-gradient(165deg, #E4F6EA 0%, #F3FADF 55%, #FFF4D6 100%); padding: 16px 18px 18px; position: relative; overflow: hidden }
.pp .phone-head::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .45) }
.pp .phone-body { padding: 16px 14px 18px; gap: 14px }
.pp .pbrand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--pg); position: relative; z-index: 1 }
.pp .pbrand .mark { width: 28px; height: 28px; border-radius: 10px; background: var(--brand, #2BBFA4) }
.pp .hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 12px; position: relative; z-index: 1 }
.pp .hello { font-size: 14px; color: #4C5A4F }
.pp .kidname { font-family: 'Jua', var(--font); font-size: 27px; line-height: 1.25; color: #1F2A24; letter-spacing: -0.3px }
.pp .sub { font-size: 13px; color: #5C6A60; margin-top: 2px }
.pp .mascot { flex: none; width: 92px; height: 92px; margin: -6px -4px -8px 0 }
.pp .glance { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; position: relative; z-index: 1 }
.pp .glance div { background: rgba(255, 255, 255, .82); border-radius: 16px; padding: 10px 12px; font-size: 12px; color: #5C6A60 }
.pp .glance b { display: block; font-size: 16px; color: #1F2A24; margin-top: 2px }
.pp .kids { margin-top: 12px; position: relative; z-index: 1 }
.pp .kids button { border-radius: 999px; min-height: 40px; padding: 0 14px 0 5px; display: inline-flex; align-items: center; gap: 7px; border-color: transparent; background: rgba(255, 255, 255, .8); font-weight: 600 }
.pp .kids button[aria-pressed="true"] { background: var(--pg); color: #fff }
.pp .ava { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; flex: none }
.pp .card { border-radius: 22px; padding: 18px; box-shadow: 0 1px 0 rgba(12, 125, 105, .05), 0 6px 18px rgba(60, 70, 50, .07) }
.pp .ttl { font-family: 'Jua', var(--font); font-size: 19px; font-weight: 400; color: #1F2A24; display: flex; align-items: center; gap: 8px }
.pp .btn { border-radius: 999px; min-height: 46px }
.pp .btn.primary { background: var(--pg); border-color: var(--pg); font-size: 15px }
.pp .btn.sm { min-height: 36px }
.pp .chip { border-radius: 999px; padding: 4px 10px }
.pp .note { border-radius: 16px; background: #F6F3EA }
.pp .note.info { background: var(--pmint) }
.pp input.in, .pp textarea.in { border-radius: 14px; border-color: #E6DECB; background: #FFFEFA }
.pp .letter { position: relative; overflow: hidden }
.pp .letter::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--tone, var(--pg2)) }
.pp .tone { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px }
.pp .letter .quote { font-size: 16px; line-height: 1.85; background: repeating-linear-gradient(transparent 0 28.6px, #F1EBDD 28.6px 29.6px); padding-bottom: 2px }
.pp .tline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #5C6A60 }
.pp .tline .ava { width: 26px; height: 26px; font-size: 12px }
.pp .plan { background: var(--pyel); border-radius: 14px; padding: 10px 14px; font-size: 14px }
.pp .plan b { display: block; font-size: 12px; color: #7A5B00; margin-bottom: 2px }
.pp .checked { display: flex; align-items: center; gap: 12px; background: #FFF6F4; border-radius: 16px; padding: 10px 14px; font-size: 14px }
.pp .stamp { width: 64px; height: 64px; flex: none; transform: rotate(-12deg) }
.pp .stamp.pop { animation: stampPop .5s cubic-bezier(.2, 1.6, .4, 1) both }
@keyframes stampPop { 0% { transform: rotate(-12deg) scale(1.8); opacity: 0 } 100% { transform: rotate(-12deg) scale(1); opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .pp .stamp.pop { animation: none } }
.pp .bill .amount { font-size: 30px }
.pp .pay { display: grid; gap: 10px }
.pp .pay > div { background: #F6F3EA; border-radius: 16px; padding: 12px 14px; font-size: 14px }
.pp .pay b { display: block; margin-bottom: 2px }
.pp .emptyp { display: flex; align-items: center; gap: 12px; color: #5C6A60; font-size: 14px }
.pp .emptyp svg { width: 56px; height: 56px; flex: none }
.pp .welcome { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 4px }
.pp .welcome svg, .pp .mascot-big { width: 110px; height: 110px }
.pp details summary { list-style: none; font-size: 14px; color: var(--pg); font-weight: 600 }
.pp details summary::-webkit-details-marker { display: none }
.pp .foot { text-align: center; font-size: 12px; color: #7A857C; padding-top: 2px }
.pp .code { background: var(--pyel) }
/* ---- 전체 화면: 밝은 새싹 테마 (원장 · 선생님 공통) ---- */
body { background: var(--bg) }
.topbar { background: linear-gradient(100deg, #E4F6EA 0%, #F6FAE6 55%, #FFF6DC 100%); border-bottom: 1px solid #E8E1CC }
.brand { color: var(--accent); font-family: 'Jua', var(--font); font-weight: 400; font-size: 22px }
.topbar .mark { width: 40px; height: 40px; background: var(--brand, #2BBFA4); border-radius: 14px; box-shadow: 0 2px 6px rgba(43, 191, 164, .22) }
.topbar .mark svg { width: 30px; height: 30px }
.pp .pbrand .mark svg { width: 22px; height: 22px }
.seg { background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 4px }
.seg button { border-radius: 999px }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 2px 6px rgba(12, 125, 105, .25) }
.tabs { border-bottom: 0; gap: 6px; margin-block: 20px; padding: 6px; background: #fff; border-radius: 999px; box-shadow: 0 2px 10px rgba(60, 70, 50, .06); width: fit-content; max-width: 100% }
.tabs button { border-radius: 999px; border-bottom: 0; padding: 9px 18px; color: var(--ink-2) }
.tabs button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); border-bottom: 0 }
h1 { font-family: 'Jua', var(--font); font-weight: 400; font-size: 27px; letter-spacing: -0.2px }
h2 { font-family: 'Jua', var(--font); font-weight: 400; font-size: 20px }
.card { border-radius: 22px; box-shadow: 0 1px 0 rgba(12, 125, 105, .04), 0 6px 18px rgba(60, 70, 50, .07) }
.stat { border-radius: 20px; box-shadow: 0 1px 0 rgba(12, 125, 105, .04), 0 6px 18px rgba(60, 70, 50, .06); position: relative; overflow: hidden }
.stat::after { content: ''; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); opacity: .7 }
.stats .stat:nth-child(2)::after { background: #E6F1FB } .stats .stat:nth-child(3)::after { background: #FFEFD9 } .stats .stat:nth-child(4)::after { background: #FFF3C4 } .stats .stat:nth-child(5)::after { background: #ECE4FB }
.stat > * { position: relative; z-index: 1 }
.btn { border-radius: 999px; border-color: #E6DECB }
.btn.primary { box-shadow: 0 2px 6px rgba(12, 125, 105, .22) }
.btn.ghost { box-shadow: none }
.icon-btn { border-radius: 50%; border-color: #E6DECB }
.chip { border-radius: 999px; padding: 4px 10px }
.banner { border-radius: 18px }
.note { border-radius: 16px }
input.in, select.in, textarea.in { border-radius: 14px; border-color: #E6DECB; background: #FFFEFA }
.inline select, .inline input { border-radius: 10px; border-color: #E6DECB }
.list button { border-radius: 14px }
.list button[aria-current="true"] { background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent) }
.subtabs button { border-color: #E6DECB }
.subtabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff }
.lockbar { border-radius: 18px }
.wiz { border-radius: 20px }
th { background: #FBF7EE } th:first-child { border-top-left-radius: 12px } th:last-child { border-top-right-radius: 12px }
.toast { background: #1F3D2B; color: #fff; border-radius: 999px; padding: 11px 22px; box-shadow: 0 8px 20px rgba(0, 0, 0, .18) }
.modebar { border-radius: 999px; font-family: var(--font) }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0 }
/* 오늘 할 일: 인사 카드 */
.greet { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(120deg, #E4F6EA 0%, #F3FADF 60%, #FFF4D6 100%); border-radius: 26px; padding: 18px 22px; margin-bottom: 16px; position: relative; overflow: hidden }
.greet::after { content: ''; position: absolute; right: 60px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .45) }
.greet > * { position: relative; z-index: 1 }
.greet .mascot { width: 96px; height: 96px; flex: none; margin: -8px 0 -12px }
.task > .row { flex-wrap: nowrap; align-items: center; min-width: 0 }
.task > .row > div { min-width: 0 }
.task .num { display: inline-grid; place-items: center; width: 46px; height: 46px; min-width: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 20px }
.empty-m { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px; color: var(--ink-3) }
.empty-m svg { width: 90px; height: 90px }
@media (max-width: 560px) { .task .num { width: 38px; height: 38px; min-width: 38px; font-size: 17px } .greet { padding: 16px } .greet .mascot { width: 72px; height: 72px } h1 { font-size: 23px } .tabs { border-radius: 20px } }

/* ===== 코멘트 사진 ===== */
.photos { display: flex; flex-wrap: wrap; gap: 10px }
.photo-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 6px }
.photo-thumb { border: 1px solid var(--line); background: var(--sunk); padding: 0; border-radius: 12px; overflow: hidden; width: 104px; height: 104px; cursor: zoom-in }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block }
.photo-ph { display: grid; place-items: center; text-align: center; background: var(--sunk); color: var(--ink-3); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14px }
.photo-ph.small { width: 104px; height: 104px; padding: 6px; font-size: 12px }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20, 28, 24, .86); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 12px; background: #fff }
@media (max-width: 480px) { .photo-thumb, .photo-ph.small { width: 92px; height: 92px } }

/* 생일 알림 띠 */
.bd { margin-bottom: 14px; background: #FFF8E1; border: 1px solid #F3E2A9 }
.bd-title { display: block; margin-bottom: 8px }
.bd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0 }
.bd-row.today b { color: #7A5200 }

/* 학부모 동의 화면 */
.cs-body { white-space: pre-wrap; max-height: 190px; overflow: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px; line-height: 1.6 }
.cs-body:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }
.cs-doc .row { align-items: center }
details > summary { cursor: pointer; padding: 8px 0; font-weight: 700 }
details[open] > summary { margin-bottom: 6px }

/* 좌측 목록 + 우측 상세 (원장 화면) */
.md { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 16px; align-items: start }
.md-side { position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 100px); overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px }
.md-side .subtabs { margin-bottom: 0 }
.md-list { gap: 2px }
.md-list button { min-height: 54px }
.md-name { display: flex; flex-direction: column; min-width: 0; text-align: left }
.md-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.md-back { display: none; align-self: flex-start }
.md-detail { min-width: 0 }
@media (max-width: 760px) {
  .md { grid-template-columns: minmax(0, 1fr) }
  .md-side { position: static; max-height: none }
  .md[data-view="detail"] .md-side { display: none }
  .md[data-view="list"] .md-detail { display: none }
  .md-back { display: inline-flex }
}

/* 주간 시간표 달력 */
.tt { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 10px; align-items: start }
.tt-col { display: flex; flex-direction: column; gap: 8px; min-width: 0 }
.tt-day { text-align: center; font-weight: 700; padding: 8px 4px; border-radius: 12px; background: var(--sunk); font-size: 14px }
.tt-day.today { background: var(--accent); color: #fff }
.tt-none { text-align: center; font-size: 12px; color: var(--ink-3); padding: 10px 0 }
.tt-slot { border-radius: 14px; padding: 10px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere }
.tt-time { font-size: 13px; font-variant-numeric: tabular-nums }
.tt-cls { font-weight: 600; font-size: 14px }
.tt-sub { font-size: 12px; opacity: .9 }
.tt-filter select { max-width: 100% }
@media (max-width: 760px) { .tt { grid-template-columns: minmax(0, 1fr) } .tt-col { flex-direction: row; flex-wrap: wrap; align-items: stretch } .tt-day { flex: 0 0 100% } .tt-slot { flex: 1 1 150px } .tt-none { flex: 0 0 100%; text-align: left } }
.tt-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--tonebg, #F6F3EA) }
.tt-row.today { box-shadow: inset 0 0 0 2px var(--accent) }
.tt-row .chip { margin-left: auto }
.tt-rday { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: #fff; color: var(--tone, var(--ink)); font-weight: 700; flex: none }
.slot-box { border-top: 1px dashed var(--line); padding-top: 12px }
.slot-chips { display: flex; flex-wrap: wrap; gap: 6px }
.slot-chips .chip button { margin-left: 4px; border: 0; background: transparent; color: inherit; font-weight: 700; padding: 0 2px; min-height: 20px }

/* 학생 수업 고르기: 눌러서 추가하는 달력 칸 */
button.tt-pick { border: 2px solid transparent; text-align: left; font: inherit; cursor: pointer; width: 100% }
button.tt-pick.on { border-color: currentColor; box-shadow: 0 2px 8px rgba(0,0,0,.12) }
button.tt-pick:not(.on) { opacity: .72 }
button.tt-pick:hover { opacity: 1 }
.tt-pickline { font-weight: 700 }
button.tt-pick.blocked { opacity: .45; cursor: not-allowed; filter: grayscale(.6) }

/* 월별 시간표 */
.mc { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px }
.mc-h { text-align: center; font-weight: 700; font-size: 13px; padding: 6px 0; color: var(--ink-2) }
.mc-h.sun, .mc-cell.sun .mc-num { color: var(--danger) }
.mc-h.sat, .mc-cell.sat .mc-num { color: var(--info) }
.mc-cell { display: flex; flex-direction: column; gap: 3px; min-height: 92px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; font: inherit; min-width: 0; overflow: hidden }
button.mc-cell { cursor: pointer }
button.mc-cell:hover { border-color: var(--accent) }
.mc-cell.empty { border: 0; background: transparent; min-height: 0 }
.mc-cell.off { background: #FFF1F0 }
.mc-cell.today { box-shadow: inset 0 0 0 2px var(--accent) }
.mc-cell.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft) }
.mc-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px }
.mc-num { font-weight: 700; font-size: 14px }
.mc-hname { font-size: 11px; color: var(--danger); font-weight: 600; line-height: 1.2 }
.mc-slot { font-size: 11px; line-height: 1.25; padding: 2px 5px; border-radius: 6px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums }
.mc-slot.off { text-decoration: line-through; opacity: .55 }
.mc.compact { gap: 3px }
.mc.compact .mc-cell { min-height: 54px; padding: 4px 3px; border-radius: 9px; align-items: center }
.mc.compact .mc-num { font-size: 12px }
.mc.compact .mc-slot { font-size: 10px; padding: 1px 3px }
.mc-att { font-size: 10px; line-height: 1.3; padding: 1px 5px; border-radius: 6px }
.mc-att.pending { opacity: .5; outline: 1px dashed currentColor }
.att-legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.mc-bar { justify-content: center; margin: 4px 0 }
.mc-label { min-width: 110px; text-align: center }
.tt-row.off { opacity: .7 }
@media (max-width: 760px) { .mc:not(.compact) .mc-cell { min-height: 64px; padding: 4px 3px } .mc:not(.compact) .mc-slot { font-size: 10px; padding: 1px 3px } .mc:not(.compact) .mc-hname { font-size: 9px } }

.mc-slot.extra { border: 1px dashed currentColor }
.tt-row.extra { border: 1px dashed var(--tone, var(--ink)) }

/* 시간대 달력 입력 */
.sg { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card, #fff); font-size: 12px }
.sg-head, .sg-body { display: grid; grid-template-columns: 40px repeat(var(--cols, 7), minmax(0, 1fr)) }
.sg-head { background: rgba(0,0,0,.03); text-align: center; font-weight: 700; padding: 6px 0 }
.sg-body { position: relative }
.sg-times { position: relative }
.sg-times span { position: absolute; right: 4px; transform: translateY(-50%); color: var(--muted, #888); font-size: 11px }
.sg-times span:first-child { transform: none }
.sg-col { position: relative; border-left: 1px solid var(--line); cursor: pointer; background-image: linear-gradient(to bottom, transparent 21px, rgba(0,0,0,.05) 22px, transparent 23px); background-size: 100% 44px }
.sg-col:hover { background-color: rgba(30,130,70,.05) }
.sg-col i { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line) }
.sg-slot { position: absolute; left: 2px; right: 2px; border-radius: 6px; padding: 2px 4px; overflow: hidden; background: #e5e5e5; color: #666; cursor: default; line-height: 1.25; box-sizing: border-box; z-index: 1 }
.sg-slot b, .sg-slot span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.sg-slot.mine { outline: 2px solid currentColor; outline-offset: -2px }
.sg-pick { position: absolute; left: 2px; right: 2px; border: 2px dashed #1e8246; border-radius: 6px; background: rgba(30,130,70,.15); color: #1e6a3b; font-weight: 700; font-size: 11px; padding: 2px 4px; box-sizing: border-box; pointer-events: none; z-index: 2; overflow: hidden }

/* 청구서 표 */
.btable { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; overflow: hidden }
.brow { display: grid; grid-template-columns: 1.1fr 2fr .9fr 1fr 1.3fr; gap: 8px 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line) }
.brow.bhead { border-top: 0; background: rgba(0,0,0,.04); font-weight: 700; font-size: 13px }
.brow .bc-total { text-align: right }
.brow .bc-stat { display: flex; gap: 6px; flex-wrap: wrap }
.bc-acts, .bc-note { grid-column: 1 / -1 }
.bc-acts .row { flex-wrap: wrap; gap: 8px }
.bc-lab { display: none }
@media (max-width: 760px) {
  .brow { grid-template-columns: 1fr auto; }
  .brow.bhead { display: none }
  .bc-items { grid-column: 1 / -1; order: 3 }
  .bc-disc { order: 4 } .bc-disc .bc-lab { display: inline; margin-right: 6px; color: var(--muted, #888) }
  .bc-total { order: 2 } .bc-stat { order: 5; grid-column: 1 / -1 }
}

/* 청구 상태 요약 칸 */
.btiles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px }
.btile { display: flex; flex-direction: column; align-items: flex-start; min-width: 92px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); cursor: pointer; font: inherit; color: inherit }
.btile .btile-n { font-size: 20px; font-weight: 800; line-height: 1.2 }
.btile .btile-l { font-size: 12px; color: var(--muted, #777) }
.btile[aria-pressed="true"] { border-color: #1e8246; background: #e8f5ec; box-shadow: inset 0 0 0 1px #1e8246 }
.btile.warn .btile-n { color: #b3261e }

/* 변경 기록 표 */
.brow.log-row { grid-template-columns: 90px 1.2fr .9fr 2.4fr 70px }
@media (max-width: 760px) { .brow.log-row { grid-template-columns: 1fr auto } .brow.log-row .bc:nth-child(4) { grid-column: 1 / -1 } }

/* 수업 기록: 출결 버튼 묶음 */
.rec-day { font-size: 20px; margin: 0 }
.rec-row { display: grid; grid-template-columns: minmax(90px, 1fr) auto; gap: 6px 10px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line) }
.rec-row:first-child { border-top: 0 }
.rec-name { display: flex; gap: 6px; align-items: center; flex-wrap: wrap }
.att-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden }
.att-b { border: 0; background: transparent; padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; color: inherit; min-height: 36px }
.att-b + .att-b { border-left: 1px solid var(--line) }
.att-b[aria-checked="true"].done { background: #DDF4E6; color: #1E7046; font-weight: 700 }
.att-b[aria-checked="true"].wait { background: #FFF1C2; color: #7A5200; font-weight: 700 }
.att-b[aria-checked="true"].bad { background: #FFE3DB; color: #A23A1E; font-weight: 700 }
.att-b:disabled { cursor: default; opacity: .75 }
@media (max-width: 520px) { .rec-row { grid-template-columns: 1fr } .att-seg { width: 100% } .att-b { flex: 1; padding: 8px 4px } }

/* 학부모 주간 학습 리포트 */
.wr .ttl { font-weight: 800 }
.wr-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.wr-num { display: flex; align-items: baseline; gap: 2px }
.wr-num b { font-size: 28px; line-height: 1.1 }
.wr-num span { font-size: 13px; color: var(--ink-3) }
.wr-num.warn b { color: #A23A1E }
.wr-sec { display: flex; flex-direction: column; gap: 6px; padding-top: 4px }
.wr-h { display: flex; align-items: baseline; gap: 4px; font-size: 15px }
.wr-list { display: flex; flex-direction: column }
.wr-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 14px; line-height: 1.55 }
.wr-item:first-child { border-top: 0 }
.wr-date { display: flex; flex-direction: column; align-items: center; line-height: 1.1 }
.wr-date b { font-size: 19px }
.wr-date span { font-size: 11px; color: var(--ink-3) }
.wr-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end }
.wr-bars.lab { text-align: center; line-height: 1.3 }
.wr-bar { display: flex; flex-direction: column; align-items: center; gap: 4px }
.wr-bv { font-size: 13px; color: var(--ink-3) }
.wr-bt { height: 58px; display: flex; align-items: flex-end; justify-content: center; width: 100%; border-bottom: 1px solid var(--line) }
.wr-bt i { display: block; width: 28px; border-radius: 6px 6px 0 0; background: #BFE9DF }
.wr-bar.cur .wr-bv { color: inherit; font-weight: 800 }
.wr-bar.cur .wr-bt i { background: var(--brand) }
.wr-bar.cur .wr-bv { color: var(--brand-ink) }
.wr-cum { font-size: 24px }

/* 수업 기록: 주간 띠와 월 달력 */
.wk-strip { display: grid; grid-template-columns: auto repeat(7, minmax(0, 1fr)) auto; gap: 4px; align-items: stretch; margin-bottom: 10px }
.wk-d { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font: inherit; color: inherit; min-height: 64px }
.wk-n { font-size: 12px; color: var(--ink-3) }
.wk-dt { font-size: 17px }
.wk-s { font-size: 11px; min-height: 14px; text-align: center; line-height: 1.2 }
.wk-d.today { border-color: var(--accent) }
.wk-d.on { background: var(--accent); color: #fff; border-color: var(--accent) }
.wk-d.on .wk-n { color: #fff }
.wk-d.k-todo .wk-s { color: var(--warn); font-weight: 700 }
.wk-d.k-done .wk-s { color: var(--accent) }
.wk-d.k-off .wk-s, .wk-d.k-plan .wk-s { color: var(--ink-3) }
.wk-d.has-abs .wk-s { color: var(--danger); font-weight: 700 }
.wk-d.on .wk-s { color: #fff }
.wk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px }
.wk-grid .wk-d { min-height: 52px }
.wk-h { text-align: center; font-size: 12px; color: var(--ink-3) }
.lesson-prev { margin-top: -4px }
@media (max-width: 520px) { .wk-strip { gap: 2px } .wk-d { min-height: 58px; border-radius: 8px } .wk-s { font-size: 10px } }
.wr-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px }
.wr-top .ttl { font-size: 17px; line-height: 1.3; word-break: keep-all }

/* 휴대폰: 코멘트 목록과 작성 화면을 나눠 보여 준다 */
.cm-md .md-back { display: none }
@media (max-width: 760px) {
  .cm-md[data-view="detail"] > .side { display: none }
  .cm-md[data-view="list"] > .main { display: none }
  .cm-md .md-back { display: inline-flex; margin-bottom: 8px }
}
/* 휴대폰: 위쪽 탭은 짧은 이름으로 한 줄에 모두 보이고, 내려도 윗줄 밑에 붙어 있다 */
.tl-short { display: none }
@media (max-width: 560px) {
  .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; overflow-x: auto; border-radius: 16px; gap: 2px; padding: 4px; margin-block: 8px; position: sticky; top: var(--tbh, 0px); z-index: 4 }
  .tabs button { padding: 8px 2px; font-size: 14px; white-space: nowrap; line-height: 1.2; min-height: 40px }
  .tl-full { display: none } .tl-short { display: inline }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
  .stat { padding: 10px 12px } .stat b { font-size: 18px }
  .task > .btn, .task > button { margin-left: 52px }
  .greet .muted:not(:first-child) { display: none }
}
/* 수업 기록: 저장 줄을 카드 아래에 고정, 수업 바로가기, 비어 있는 기록 접기 */
.rec-save { position: sticky; bottom: 0; z-index: 3; background: var(--surface); margin: 4px -18px -18px; padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); border-radius: 0 0 22px 22px }
.rec-dirty:not(:empty) { color: var(--warn); font-weight: 700 }
.rec-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px }
.rec-jump .btn.done { color: var(--accent); border-color: var(--accent) }
.rec-missing { padding: 12px 18px }
.rec-missing > summary { padding: 4px 0; color: var(--warn) }
.rec-missing > button { display: block; width: 100%; margin-top: 6px }
.rec-missing > div { margin-top: 6px }

/* 자유 출입 수업(정해진 시각 없이 수업시간 동안 아이들이 오가는 수업) */
.tt-open { font-weight: 700; }
.tt-slot .tt-open::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: currentColor; opacity: .55; }

/* 시간대 상자 끌기: 위아래 끝은 시간 조절, 오른쪽 끝은 다른 요일에 복사 */
.sg-slot.mine .sg-h { position: absolute; display: block; touch-action: none; z-index: 2 }
.sg-h-t, .sg-h-b { left: 0; right: 14px; height: 9px; cursor: ns-resize }
.sg-h-t { top: 0 }
.sg-h-b { bottom: 0 }
.sg-h-r { top: 9px; bottom: 9px; right: 0; width: 14px; cursor: ew-resize; background: currentColor; opacity: .18; border-radius: 0 6px 6px 0 }
.sg-h-t::after, .sg-h-b::after { content: ''; position: absolute; left: 50%; width: 22px; margin-left: -11px; height: 3px; border-radius: 2px; background: currentColor; opacity: .45 }
.sg-h-t::after { top: 2px }
.sg-h-b::after { bottom: 2px }
.sg-slot.mine:hover .sg-h-r, .sg-slot.dragging .sg-h-r { opacity: .4 }
.sg-slot.dragging { z-index: 5; box-shadow: 0 2px 8px rgba(0,0,0,.25); overflow: visible }
.sg-tip { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); background: #222; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; pointer-events: none; z-index: 6 }
.sg-col.copy-to { background-color: rgba(30,130,70,.16) }
@media (max-width: 560px) { .sg-h-t, .sg-h-b { height: 12px } .sg-h-r { width: 18px } }

/* 자유 출입 수업의 주간 달력(아이가 오는 시간 추가/삭제) */
.vg .sg-col { cursor: crosshair; touch-action: pan-y }
.vg-blk { position: absolute; left: 3px; right: 3px; border-radius: 6px; padding: 2px 4px; overflow: hidden; background: rgba(0,0,0,.06); color: #777; font-size: 11px; line-height: 1.25; box-sizing: border-box; pointer-events: none; border: 1px dashed rgba(0,0,0,.18) }
.vg-blk.mine { border: 2px solid currentColor; z-index: 2; pointer-events: auto; cursor: grab; touch-action: none }
.vg-blk.mine.sel { outline: 3px solid rgba(0,0,0,.35); outline-offset: 1px }
.vg-blk b, .vg-blk span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.vg-x { position: absolute; top: 1px; right: 1px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #b3261e; font-size: 15px; line-height: 1; cursor: pointer; pointer-events: auto; z-index: 3 }
details > summary { cursor: pointer; font-size: 13px; color: var(--muted, #666) }

/* 학부모 화면: 위쪽 탭, 홈 요약 타일, 점 달력 */
.phone.pp { overflow: clip }
/* 하단 탭(학부모, 원장, 선생님 공통): 화면 아래 고정, 아이콘 위 글자 아래. 아이폰 홈 표시줄 여백을 둔다. */
.btabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: var(--btw, 100%); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 20; box-shadow: 0 -4px 16px rgba(60, 70, 50, .06) }
.btabs button { border: 0; background: transparent; height: 58px; min-height: 0; padding: 6px 2px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 600; color: #6F9C92; position: relative; cursor: pointer; border-radius: 0 }
.btabs button .bi { display: grid; place-items: center; width: 44px; height: 28px; border-radius: 14px }
.btabs button[aria-selected="true"] { color: var(--brand-ink) }
.btabs button[aria-selected="true"] .bi { background: var(--brand); color: #fff }
.btabs .pdot { position: absolute; top: 7px; right: calc(50% - 20px); width: 8px; height: 8px; border-radius: 50%; background: #E0533D }
.btabs .bnum { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #E0533D; color: #fff; font-size: 11px; line-height: 18px; font-weight: 700 }
.has-btabs { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)) }
.pp .btabs { --btw: 390px }
.subhead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 6px 0 12px }
.subback { display: inline-flex; align-items: center; gap: 2px; border: 0; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 600; min-height: 40px; padding: 0 8px 0 0; cursor: pointer }
.subhead .subback { justify-self: start }
.subhead .subtitle { font-size: 19px; margin: 0; text-align: center }
.navmenu { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden }
.navmenu button { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; border-radius: 0 }
.navmenu button:last-child { border-bottom: 0 }
.navmenu .ni { width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none }
.navmenu .ni.sun { background: var(--sun); color: #6B4E00 }
.navmenu button > span:nth-child(2) { flex: 1 }
.navmenu .ns { font-size: 13px; font-weight: 500; color: var(--ink-3) }
.navmenu .nc { color: var(--ink-3); display: grid; place-items: center }
.pp .next { gap: 4px }
.pp .glance.tiles { margin-top: 0 }
.pp .glance.tiles .tile { background: var(--surface); border: 1px solid var(--pline); border-radius: 16px; padding: 10px 12px; font-size: 12px; color: #5C6A60; text-align: left; font: inherit; font-size: 12px }
.pp .glance.tiles button.tile { cursor: pointer }
.pp .glance.tiles b { display: block; font-size: 16px; color: #1F2A24; margin-top: 2px }
.mc.dots .mc-cell { min-height: 40px }
.mc.dots .mc-slot { display: block; width: 16px; max-width: 80%; height: 6px; min-height: 6px; padding: 0; border-radius: 3px; font-size: 0; margin-top: 2px }

/* 수업 기록: 폰에서 학생 목록(누르면 그 학생만 열림) */
.rec-pick { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; text-align: left; cursor: pointer }
.rec-pick > b { flex: 1; min-width: 0 }
.rec-pick .rec-chev { font-size: 12px; color: #6a766d; margin-left: 4px }
.rec-pick.open { border-color: var(--pg, #0C7D69); background: #EEF9F6 }
.rec-pick.all { background: #FFFBF1 }

/* 폰: 접는 칸, 수업 없는 요일은 숨김 */
.fold { border-top: 1px dashed var(--line); padding-top: 4px }
.fold > summary { cursor: pointer; font-weight: 700; padding: 10px 2px; min-height: 40px; display: flex; align-items: center; list-style: none }
.fold > summary::-webkit-details-marker { display: none }
.fold > summary::after { content: '▸'; margin-left: auto; color: #6a766d }
.fold[open] > summary::after { content: '▾' }
.fold > .card { border: 0; box-shadow: none; padding: 4px 0 8px; background: transparent }
.fold > .card > .ft { display: none }
@media (max-width: 560px) { .tt-col.tt-empty { display: none } }

/* 폰: 작은 탭과 필터는 한 줄로 두고 옆으로 밀어 본다. 개발자 전환 칸과 "목록으로"는 작게 */
@media (max-width: 560px) {
  .subtabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-bottom: 10px; padding-bottom: 2px }
  .subtabs::-webkit-scrollbar { display: none }
  .subtabs button { flex: 0 0 auto; white-space: nowrap; padding: 0 12px; min-height: 36px; font-size: 14px }
  .md-back { min-height: 32px; padding: 0 12px; font-size: 13px; background: transparent; border-color: transparent; color: var(--ink-2); margin: 0 0 -4px -6px }
  [data-viewas] { padding: 8px 10px; gap: 6px }
  [data-viewas] > .row > b, [data-viewas] > .muted { display: none }
  [data-viewas] .subtabs { margin-bottom: 0 }
  [data-viewas] .subtabs button { min-height: 34px; padding: 0 10px; font-size: 13px }
}

/* 개발자 PC: 폰 크기 창 */
.phone-stage { display: flex; justify-content: center; padding: 8px 0 }
.phone-frame { width: 390px; height: calc(100vh - 150px); min-height: 640px; border: 10px solid #1f2a22; border-radius: 28px; background: var(--bg); box-shadow: 0 6px 24px rgba(0,0,0,.18) }

/* 폰: 코멘트와 청구 머리글을 낮게 */
@media (max-width: 560px) {
  .navrow { flex-wrap: nowrap; gap: 8px; width: 100% }
  .navrow > div { min-width: 0; flex: 1; text-align: center }
  .navrow h1 { font-size: 20px }
  .navrow .muted { font-size: 12px }
  .mkbtn { width: 100% }
  .cmtools { flex-wrap: nowrap; width: 100%; gap: 8px }
  .cmtools > span.muted { display: none }
  .cmtools select { flex: 1 1 0; min-width: 0; width: auto }
  .cmtools .btn { flex: 0 0 auto; white-space: nowrap }
  .btiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px }
  .btile { min-width: 0; padding: 6px 10px }
  .btile .btile-n { font-size: 18px }
}

/* 폰: 오늘 할 일 카드는 낮게, 설명은 두 줄까지 */
@media (max-width: 560px) {
  .task { flex-wrap: nowrap; gap: 8px; padding: 12px; cursor: pointer }
  .task > .row { flex-wrap: nowrap; min-width: 0; flex: 1; align-items: flex-start; gap: 10px }
  .task .muted { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
  .task > .btn { flex: 0 0 auto; align-self: center; font-size: 0; width: 34px; min-height: 34px; padding: 0; border-radius: 50% }
  .task > .btn::after { content: '›'; font-size: 22px; line-height: 1; color: var(--ink-2) }
}
@media (max-width: 560px) { .task > .row > div:not(.num) { flex: 1; min-width: 0 } .task .num { flex: 0 0 auto } }

.stat-go { display: block; width: 100%; text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer }
.stat-go:active { transform: scale(.98) }

/* 폰 마무리: 누르기 쉬운 크기, 저장 버튼은 화면 아래에 붙어 따라온다 */
.tap-rows .tt-row { cursor: pointer }
@media (max-width: 560px) {
  .btn { min-height: 44px }
  .btn.sm { min-height: 40px }
  .icon-btn { min-width: 42px; min-height: 42px }
  select.in, input.in { min-height: 42px }
  .save-bar { position: sticky; bottom: 0; z-index: 15; background: var(--surface, #fff); border-top: 1px solid var(--line); margin: 0 -18px -18px; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); border-radius: 0 0 20px 20px; flex-wrap: wrap; gap: 8px }
  .save-bar .btn { flex: 1 1 0; justify-content: center }
  .save-bar .rec-dirty { flex: 1 0 100% }
}
@media (max-width: 560px) { .save-bar .btn.primary { flex: 1.5 1 0; white-space: nowrap } .save-bar .btn { padding: 0 10px } }
.rec-jump .btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff }
@media (max-width: 560px) {
  .rec-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none }
  .rec-jump::-webkit-scrollbar { display: none }
  .rec-jump .btn { flex: 0 0 auto; white-space: nowrap }
  .save-bar .btn { white-space: nowrap }
}

/* 폰: 긴 목록(학생, 계정, 수강과목, 청구)은 페이지가 스크롤되고, 검색칸은 위에 붙어 따라온다. 항목이 많으면 가나다 바로가기 */
.md-top { display: none }
.md-nav { display: none; align-items: center; gap: 8px; margin-left: auto }
.md-jump { display: none }
@media (max-width: 760px) { .md-nav { display: inline-flex } .md-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: sticky; top: calc(var(--tbh, 0px) + 58px); z-index: 4; background: var(--bg); padding: 4px 0 } }
@media (max-width: 560px) {
  .md-side { overflow: visible }
  .md-head { position: sticky; top: calc(var(--tbh, 0px) + 58px); z-index: 4; background: var(--surface); display: flex; flex-direction: column; gap: 6px; padding: 6px 0 4px }
  .md-jump { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none }
  .md-jump::-webkit-scrollbar { display: none }
  .md-jump button { flex: 0 0 auto; min-width: 34px; min-height: 34px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); font-size: 14px; font-weight: 700; color: var(--ink-2) }
  .md-list button { min-height: 48px; scroll-margin-top: 150px }
}
}

/* 코멘트 작성 화면의 이번 주 기록(참고) */
.wg { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; background: var(--sunk, #F4EFE3) }
.wg > summary { font-size: 14px }
.wg-sum { font-size: 13px; color: var(--ink-2); margin-bottom: 6px }
.wg-row { display: flex; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 14px }
.wg-date { flex: 0 0 38px; text-align: center; line-height: 1.2 }
.wg-date b { display: block; font-size: 14px }
.wg-date span { font-size: 12px; color: var(--ink-2) }
.wg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere }

/* 공지 읽음 현황 */
.readbox { border-top: 1px solid var(--line, #e5e5e5); padding-top: 8px; }
.readbox summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.readbox ul { margin: 4px 0 8px; padding-left: 20px; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
a.btn:not(.primary) { color: inherit; }

/* 자유 출입 수업: 주 달력(날짜 머리글, 요일 칩, 선택된 학생 행) */
.vg-hd { display: flex; flex-direction: column; align-items: center; line-height: 1.2 }
.vg-hd small { font-weight: 400; color: var(--muted, #888); font-size: 10px }
.vg-hd.today b, .vg-hd.today small { color: #1e6a3b }
.vg-hd.today { background: rgba(30,130,70,.12); border-radius: 6px }
.vg-hd.off small { color: #b3261e }
.sg-col.today { background-color: rgba(30,130,70,.05) }
.sg-col.off { background-color: rgba(179,38,30,.06) }
.vg-blk b { white-space: normal; word-break: break-all; font-size: 10px }
.vf-day { min-width: 40px }
.vf-day.on, .vf-day[aria-pressed="true"] { background: #1e6a3b; color: #fff; border-color: #1e6a3b }
.enr-row.on { background: rgba(30,130,70,.08); border-radius: 10px }
.vg-bar .vg-range { min-width: 120px; text-align: center }
.enr-row[data-visit-student] { flex-direction: column; align-items: stretch; padding: 8px }
.enr-row[data-visit-student] > .row { width: 100% }
.vg-blk.ex { border: 1px dashed #b3261e; color: #b3261e; background: rgba(179,38,30,.06) }

/* 관리(학원 관리, 개발자)는 매일 쓰는 탭과 구분: 따로 떨어진 테두리 칸 */
.tabs button.tab-sys { border: 1.5px solid var(--line); background: rgba(0,0,0,.04); margin-left: 10px; color: var(--ink-2) }
.tabs button.tab-sys[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff }
@media (max-width: 760px) { .tabs button.tab-sys { margin-left: 8px } }
/* 학생 화면 주간 달력: 다른 수업(참고용)과 일반 수업 시간대 칸 */
.vg-blk.other { border: 0; opacity: .75; z-index: 1 }
.vg-blk.other b { font-size: 10px }
.vg-blk.reg { pointer-events: auto; cursor: pointer; z-index: 2; border: 2px dashed currentColor; background: rgba(255,255,255,.7); color: #444; text-align: left; font: inherit; font-size: 11px }
.vg-blk.reg.on { border-style: solid }
.vg-blk.reg.blocked { background: rgba(0,0,0,.08); color: #999; border-color: #bbb; cursor: not-allowed }
.sg-col.ro { cursor: default }
.vg-blk.other.pickable { pointer-events: auto; cursor: pointer; opacity: 1 }
/* 하단 탭이 있을 때: 아래에 붙는 저장 줄은 탭 위에, 위쪽 탭이 없으니 위에 붙는 머리는 사이트 윗줄 바로 밑에 */
.has-btabs .rec-save, .has-btabs .save-bar { bottom: calc(59px + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px }
@media (max-width: 760px) { .has-btabs .md-top { top: var(--tbh, 0px) } }
@media (max-width: 560px) { .has-btabs .md-head { top: var(--tbh, 0px) } }

/* 휴대폰 상세 묶음 목록(누르면 하위 화면) */
.secrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer }
.secrow .ni { width: 34px; height: 34px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none }
.secrow .st { flex: 1 }
.secrow .nc { color: var(--ink-3); display: grid; place-items: center }
.md:has([data-secview]) .md-top { display: none }
.menuhead { display: flex; align-items: flex-end; justify-content: space-between; margin: 4px 0 8px }
.menuhead h1 { margin: 0 0 6px }
.mascot-s { width: 56px; height: 56px; display: block }
.subhead .submascot { justify-self: end; margin: -10px 0 -8px }

/* 학부모 머리: 홈이 아닌 탭은 낮게(브랜드 줄 숨김, 작은 캐릭터) */
.pp .phone-head.compact { padding: 10px 18px 12px }
.pp .phone-head.compact .pbrand { display: none }
.pp .phone-head.compact .hero { margin-top: 0; align-items: center }
.pp .phone-head.compact .kidname { font-size: 22px }
.pp .phone-head.compact .mascot { width: 64px; height: 64px; margin: -4px 0 -6px }
.secgroup { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); margin-top: 4px }
.secgroup .secrow { border: 0; border-radius: 0; border-bottom: 1px solid var(--line) }
.secgroup .secrow:last-child { border-bottom: 0 }
.secrow .ni.sun { background: var(--sun); color: #6B4E00 }

/* 상태별 묶음 목록 */
.glist .ghead { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 4px 6px; border: 0; background: transparent; font: inherit; text-align: left; border-radius: 0 }
.glist .ghead:not(:first-child) { margin-top: 6px; border-top: 1px solid var(--line) }
.glist .ghead .gl { font-weight: 700; font-size: 14px; color: var(--ink) }
.glist .ghead .gn { font-size: 12px; color: var(--ink-3) }
.glist .ghead > .btn { margin-left: auto; min-height: 32px }
.glist .ghead.tog { cursor: pointer; color: var(--ink-3) }
.glist .ghead.tog .gl { color: var(--ink-2) }
.glist .ghead .gc { margin-left: auto; font-size: 12px; color: var(--ink-3) }
.mini-sel { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; padding: 2px 18px 2px 0; min-height: 28px; cursor: pointer; max-width: 100%; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line) }

/* 이름표 위, 값 아래 배치(학생 기본 정보 등) */
.fld { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line) }
.fld .fl { font-size: 13px; font-weight: 700; color: var(--ink-2) }
.fld .fld-row { gap: 8px; flex-wrap: nowrap }
.fld .fld-row input[type=date] { flex: 1; min-width: 0 }
.fld > select.in { width: 100% !important; min-height: 44px !important }
.fld label.c { font-size: 15px }
.glist .ghead .gl { white-space: nowrap }
.glist .ghead > .btn { width: auto; flex: none }
.subhead { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) }
.subback span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28vw }
.subhead .subtitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw }

/* 보낼 문자 목록: 남은 사람이 있으면 눈에 띄게 */
.notifybox summary{cursor:pointer;font-weight:700;list-style:none;display:flex;align-items:center;gap:8px;min-height:44px}
.notifybox summary::-webkit-details-marker{display:none}
.notifybox summary::after{content:'▾';margin-left:auto;color:var(--brand-ink)}
.notifybox:not([open]) summary::after{content:'▸'}
.notifybox.todo{border:2px solid var(--brand);background:var(--brand-soft)}
.notifybox.todo summary{color:var(--brand-ink);font-size:1.05em}
.notifybox.todo [data-notify-row]{background:#fff;border-radius:10px;padding:6px 10px}

/* 보호자 초대: 크게 하나 + 글자 링크, 입력 칸은 회색 네모 */
.invbox { display: flex; flex-direction: column; gap: 10px; flex: 1 1 100%; min-width: 0 }
.invcode { display: flex; flex-wrap: wrap; align-items: center; gap: 4px }
.bar-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer }
.bar-btn:disabled { opacity: .45 }
.tlinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0 }
.tlink { background: none; border: 0; min-height: 36px; padding: 0 12px; font-size: 13px; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer }
.tlink + .tlink { border-left: 1px solid var(--line) }
.tlink.danger { color: var(--danger) }
.fld-row { display: flex; gap: 8px }
.fld-row .fld-in { flex: 1; min-width: 0 }
input.in.fld-in { background: var(--sunk); border: 1.5px solid transparent; border-radius: 8px; min-height: 44px }
input.in.fld-in:focus { background: var(--surface); border-color: var(--brand); outline: none }
.add-dash { width: 100%; min-height: 44px; border: 1.5px dashed #CFC8B6; border-radius: 12px; background: none; color: var(--brand-ink); font-size: 14px; cursor: pointer }
.addbox { border-top: 1px solid var(--line); padding-top: 12px }

/* 주 버튼: 알약이 아니라 "문자로 보내기"와 같은 네모(모서리만 둥글게) */
.btn.primary, .pp .btn.primary { border-radius: 12px; font-weight: 700; min-height: 44px }
.btn.primary.sm, .pp .btn.primary.sm { min-height: 40px }
.task > .btn.primary { border-radius: 50% }
select.in.fld-in { background: var(--sunk); border: 1.5px solid transparent; border-radius: 8px; min-height: 44px; width: 100% }
select.in.fld-in:focus { background: var(--surface); border-color: var(--brand); outline: none }

/* 채운 버튼은 로고의 밝은 청록으로 */
.btn.primary, .pp .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 6px rgba(43, 191, 164, .3) }
.btn.primary:hover { background: #25AE95 }
.bar-btn { background: var(--brand) }

/* 모든 버튼 색: 채운 버튼은 밝은 청록, 나머지 버튼은 흰 바탕에 청록 테두리와 글자 */
.btn:not(.primary):not(.ghost):not(.danger), .icon-btn, .add-dash { border: 1.5px solid var(--brand-mid); color: var(--brand-ink) }
a.btn:not(.primary) { color: var(--brand-ink) }
.btn.ghost { color: var(--brand-ink) }
.btn.danger { border-color: #E9B5B3; color: var(--danger) }
.kids button, .subtabs button, .mini-sel, .seg button { border-color: var(--brand-mid); color: var(--brand-ink) }
.kids button[aria-pressed="true"], .subtabs button[aria-pressed="true"], .seg button[aria-pressed="true"], .rec-jump .btn[aria-pressed="true"], .wk-d.on, .pp .kids button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: none }
.tlink, .tlink.danger { border: 0 }

/* 이 학생의 다른 수업(참고)은 회색 */
.vg-blk.other.ref { background: #EFEDE6 !important; color: #6E6A5E !important; border: 1px dashed #CFC8B6; opacity: 1 }

/* 학부모 홈: 요약 한 줄 목록 */
.hrows { display: flex; flex-direction: column; gap: 8px }
.hrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 14px; background: var(--surface); border: 1px solid var(--pline, var(--line)); border-radius: 14px; font: inherit; font-size: 14px; text-align: left; color: var(--ink) }
button.hrow { cursor: pointer }
.hrow .hi { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); flex: none }
.hrow .hi svg { stroke: currentColor }
.hrow .hv { margin-left: auto; font-weight: 700; text-align: right }
.hrow .hc { color: #A8A294; display: grid }
/* 리포트 최근 흐름: 주마다 가로 막대 두 줄(출석, 학습 시간) */
.wr-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3) }
.wr-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px }
.wr-legend .a::before { background: #2BBFA4 }
.wr-legend .b::before { background: #F2B544 }
.wr-wk { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-top: 1px dashed var(--line) }
.wr-wl { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; flex-wrap: wrap }
.wr-wk.cur .wr-wl > span:first-child { font-weight: 800 }
.wr-hb { height: 9px; border-radius: 5px; background: #F4EFE3; overflow: hidden }
.wr-hb i { display: block; height: 100%; border-radius: 5px }
.wr-hb i.a { background: #2BBFA4 }
.wr-hb i.b { background: #F2B544 }

/* 학원 정보: 묶음 카드와 켬/끔 스위치 */
.setcard h3 { margin: 0 0 2px; font-size: 15px; color: var(--brand-ink) }
.swrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 14px }
.setcard .swrow:first-of-type { border-top: 0 }
input.sw { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 13px; background: #CFCAB9; position: relative; cursor: pointer; margin: 0; transition: background .15s }
input.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s }
input.sw:checked { background: var(--brand) }
input.sw:checked::after { left: 21px }
input.sw:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px }
/* 관리 메뉴 아이콘은 모두 같은 색 */
.navmenu .ni.sun, .secrow .ni.sun { background: var(--brand); color: #fff }

/* 출결: 항상 펼쳐진 달력(날짜 아래 점으로 상태 표시) */
.wk-grid .wk-d { min-height: 44px; padding: 5px 1px; gap: 3px }
.wk-grid .wk-d .wk-dt { font-size: 15px }
.wk-dot { width: 7px; height: 7px; border-radius: 50%; background: transparent }
.wk-d.k-done .wk-dot { background: var(--brand) }
.wk-d.k-todo .wk-dot { background: var(--danger) }
.wk-d.k-off .wk-dot { background: #CFCAB9 }
.wk-d.k-plan .wk-dot { box-shadow: inset 0 0 0 1.5px #CFCAB9 }
.wk-d.has-abs .wk-dt { color: var(--danger) }
.wk-d.on .wk-dot { background: #fff; box-shadow: none }
.wk-d.on.has-abs .wk-dt { color: #fff }
.wk-legend { display: flex; gap: 14px; justify-content: center; font-size: 12px; color: var(--ink-3) }
.wk-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px }
.lg-ok::before { background: var(--brand) }
.lg-todo::before { background: var(--danger) }
.lg-off::before { background: #CFCAB9 }
.rec-missing { background: #FDE9E7; border-color: #F3C9C4 }
.rec-missing > summary { color: #8A2B22; font-weight: 500 }

/* 원장, 선생님 홈: 학부모 홈과 같은 한 줄 요약 */
.hsec { font-size: 13px; color: var(--ink-3); margin: 14px 2px 6px }
.hrow .hl { flex: 1 1 auto; min-width: 5.5em; text-align: left; word-break: keep-all }
.hrow .hv { flex: 0 1 auto; max-width: 62%; margin-left: 0; text-align: right; word-break: keep-all }
.hrow .hv.warn { color: var(--danger) }

/* 공휴일: 빨간 숫자와 짧은 이름, 학원 휴강일은 회색 이름 */
.mc-cell.off.acad { background: #F4F1EA }
.mc-hname.acad { color: var(--ink-3) }
.mc.compact .mc-top { flex-direction: column; align-items: center; gap: 0 }
.mc.compact .mc-hname { font-size: 9px; font-weight: 500; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis }
.wk-hn { font-size: 8.5px; letter-spacing: -0.4px; line-height: 1; color: var(--danger); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis }
.wk-hn.acad { color: var(--ink-3) }
.wk-d.hol .wk-dt { color: var(--danger) }
.wk-d.on .wk-hn, .wk-d.on.hol .wk-dt { color: #fff }

/* 학부모 코멘트 카드 안의 숙제 */
.hwbox { background: #FFF6DC; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px }
.hwbox > b { color: #6B4E00; font-size: 14px }
.hw-it { display: flex; align-items: center; gap: 10px; padding-top: 6px; border-top: 1px dashed #ECD9A6 }
.hwbox > b + .hw-it { border-top: 0; padding-top: 0 }
.hw-t { flex: 1; min-width: 0 }

/* 선생님 공지: 확인 현황 칩과 답글 */
.rd-chips { display: flex; flex-wrap: wrap; gap: 6px }
.staff-rp { border-top: 1px dashed var(--line); padding-top: 8px }
.rp-line { font-size: 14px; line-height: 1.5 }
.staff-rp .row .in { flex: 1; min-width: 0 }

/* 머리글 로고 글씨(원장님 제공 글씨체, 청록) */
.brand .wordmark { height: 24px; width: auto; display: block }

/* 교무실 대화방 */
.pinbox { background: #FFF6DC; border: 1px solid #F1DFA8; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; position: sticky; top: var(--tbh, 64px); z-index: 2 }
.pinbox b { color: #6B4E00 }
.pin-body { white-space: pre-wrap }
.pin-ack { color: var(--brand-ink) }
.chat { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 10px }
.chat-day { align-self: center; background: #EFE9DA; color: var(--ink-3); border-radius: 10px; padding: 1px 10px; font-size: 12px; margin: 6px 0 }
.chat-m { max-width: 80%; display: flex; flex-direction: column; align-items: flex-start }
.chat-m.me { align-self: flex-end; align-items: flex-end }
.chat-n { font-size: 12px; color: var(--ink-3); margin: 0 0 2px 4px }
.chat-b { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 12px; white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.45 }
.chat-m.me .chat-b { background: var(--brand); color: #fff; border-color: var(--brand) }
.chat-b.pinned { box-shadow: 0 0 0 2px #F1DFA8 }
.chat-t { font-size: 11px; color: #9A988E; margin: 2px 6px; display: flex; gap: 8px; align-items: center }
.chat-pin { border: 0; background: none; color: var(--brand-ink); font: inherit; font-size: 11px; padding: 0; cursor: pointer; text-decoration: underline }
.chat-in { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: 0; background: #FFF8EC; padding: 8px 0 }
.has-btabs .chat-in { bottom: calc(59px + env(safe-area-inset-bottom, 0px)) }
.chat-in textarea { flex: 1; min-height: 44px; resize: vertical }

/* 학부모 리포트: 주 넘겨 보기, 과목 카드 안의 진도 */
.wk-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px }
.lessons { background: var(--brand-soft); border-radius: 12px; padding: 8px 12px }
.ls-row { font-size: 14px; line-height: 1.5 }

/* 대화 목록(원장): 교무실과 학부모 방 */
.room-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; font: inherit; color: inherit; cursor: pointer }
.room-av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 600; flex: none }
.room-x { flex: 1; min-width: 0 }
.room-x .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.room-av { position: relative }
.room-dot { position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface) }
.room-row.new .room-x b { font-weight: 800 }
.room-row.new .room-x .muted { color: var(--ink); font-weight: 600 }
.room-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none }
.room-t { font-size: 11px; color: #9A988E }
.lite-list { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden }
.lite-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 11px 14px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer }
.lite-row:first-child { border-top: 0 }
.chat-t.unseen { color: var(--accent); font-weight: 600 }

/* 처음 온 방문자: 로그인 옆의 소개와 상담 신청(guest.js) */
.login-wrap { display: block }
.login-wrap .login { margin-bottom: 0 }
.g-side { max-width: 390px; margin: 18px auto 24px; display: flex; flex-direction: column; gap: 10px }
.g-first { text-align: center; font-size: 13px }
.g-hero { background: var(--brand-soft); color: var(--brand-ink); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 2px }
.g-hero b { font-size: 17px }
.g-hero span { font-size: 13px }
.g-hero.big b { font-size: 20px }
.g-cards { display: grid; gap: 8px }
.g-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--ink); cursor: pointer; min-height: 56px }
.g-card > span:first-child:not(.g-ico) { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.g-card .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.g-chev { color: var(--ink-3); font-size: 20px }
.g-note { background: var(--accent-soft); color: var(--brand-ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5 }
.g-cta { width: 100% }
.g-tel { text-align: center }
.g-tel a { color: var(--accent) }
.g-page { max-width: 1040px; margin: 8px auto 90px }
.g-page > .row .btn { min-height: 34px }
.g-about { gap: 12px }
.g-grid { display: grid; gap: 10px }
.g-box h3 { margin: 0 0 6px; font-size: 15px }
.g-subj { display: flex; flex-direction: column; padding: 4px 0 }
.g-maps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px }
.g-maps .btn { flex: 1; text-align: center; text-decoration: none; min-width: 110px }
.g-kakao { background: #FEE500 !important; color: #191919 !important; border-color: #FEE500 !important }
.g-naver { background: #03C75A !important; color: #fff !important; border-color: #03C75A !important }
.g-sticky { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); z-index: 20 }
.g-sticky .btn { width: 100%; max-width: 420px; display: block; margin: 0 auto }
.g-form { gap: 8px }
.g-page .g-form { padding: 14px }
.g-morebtn { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--ink-3); text-decoration: underline; cursor: pointer }
.g-form h2 { margin: 0 }
.g-lab { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px }
.g-lab .muted { font-weight: 400 }
.g-labrow { display: flex; justify-content: space-between; align-items: baseline }
.g-req { color: var(--danger); margin-left: 2px }
.g-row { display: flex; gap: 8px }
.g-grow { flex: 1; min-width: 0 }
.g-grade { flex: 0 0 112px }
.g-chips { display: flex; flex-wrap: wrap; gap: 6px }
.g-chip { font: inherit; font-size: 13px; padding: 4px 11px; min-height: 34px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer }
.g-chip.on { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-mid) }
#g-etc { margin-top: 6px }
.g-form textarea.in { min-height: 58px; height: 58px; resize: none; line-height: 1.4 }
.g-form .in { min-height: 40px }
.g-err { color: var(--danger); font-size: 12px; min-height: 0 }
.g-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.5 }
.g-agree input { margin-top: 3px; width: 18px; height: 18px; flex: none }
.g-more { margin-top: 4px }
.g-left { text-align: center }
.g-form .btn[disabled] { background: var(--sunk); color: var(--ink-3); border-color: var(--line); cursor: not-allowed }
.g-done { display: flex; flex-direction: column; gap: 6px; text-align: center; padding: 20px 0 8px }
.g-done b { font-size: 17px }
.g-sheet-wrap { position: fixed; inset: 0; z-index: 50 }
.g-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .35) }
.g-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 16px 16px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: 0 auto }
.g-sheet h2 { margin: 0 }
@media (min-width: 900px) {
  .login-wrap { display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 520px); gap: 32px; justify-content: center; align-items: start; margin-top: 28px }
  .login-wrap .login { margin: 0 }
  .g-side { margin: 0; max-width: none }
  .g-first { text-align: left }
  .g-cards { grid-template-columns: 1fr 1fr }
  .g-cta { width: auto; align-self: flex-start; padding-left: 28px; padding-right: 28px }
  .g-tel { text-align: left }
  .g-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start }
  .g-split .g-form { position: sticky; top: 16px; border-color: var(--brand-mid) }
  .g-grid { grid-template-columns: 1fr 1fr }
  .g-page { margin-bottom: 40px }
  .g-sheet { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 16px }
}

/* 로그인 화면 새솔이 말풍선(처음 오셨나요?) */
.login-wrap.one { display: block }
@media (min-width: 900px) { .login-wrap.one { display: block; margin-top: 20px } .login-wrap.one .login { margin: 0 auto } }
.lh-scene.has-bubble .lh-mascot { left: 34% }
.g-bubble { position: absolute; right: 12px; top: 26px; z-index: 2; max-width: 150px; display: flex; flex-direction: column; gap: 1px; text-align: left; background: #fff; color: #7A3E0B; border: 0; border-radius: 14px; padding: 8px 12px; font: inherit; font-size: 12px; line-height: 1.35; box-shadow: 0 3px 10px rgba(60, 40, 10, .14); cursor: pointer; animation: gPop .45s .6s both, gWiggle 1.4s 1.4s ease-in-out 2 }
.g-bubble b { font-size: 14px; color: #9E561C }
.g-bubble span { color: #7A3E0B; text-decoration: underline; text-underline-offset: 2px }
.g-bubble::after { content: ""; position: absolute; left: -7px; top: 18px; border: 7px solid transparent; border-right-color: #fff; border-left: 0 }
.g-bubble:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px }
.g-bubble.quiet { animation: none }
@keyframes gPop { from { opacity: 0; transform: scale(.6) translateY(8px) } to { opacity: 1; transform: none } }
@keyframes gWiggle { 0%, 100% { transform: rotate(0) } 25% { transform: rotate(-3deg) } 75% { transform: rotate(3deg) } }
@media (min-width: 900px) { .g-bubble { right: 28px; top: 30px; max-width: 170px; padding: 10px 14px } .g-bubble b { font-size: 15px } }
@media (prefers-reduced-motion: reduce) { .g-bubble { animation: none } }
.lh-scene.has-bubble .lh-sun { right: auto; left: 64px; top: 12px; width: 22px; height: 22px }

/* 새솔이 손 흔들기(로그인 화면). 몇 번 흔들고 쉬었다가 다시 흔든다. 누르면 깡충 */
.login-hero .lh-mascot { cursor: pointer; -webkit-tap-highlight-color: transparent }
.login-hero .lh-mascot svg { animation: mBob 3.2s ease-in-out infinite }
.login-hero .lh-mascot .m-arm { transform-origin: 94px 72px; animation: mWave 3s ease-in-out .4s infinite }
.login-hero .lh-mascot:hover .m-arm { animation-duration: 1.2s }
.login-hero .lh-mascot.hop svg { animation: mHop .38s ease-out }
.login-hero .lh-mascot:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 50% }
.lh-scene.quiet .lh-mascot svg, .lh-scene.quiet .lh-mascot .m-arm { animation: none }
@keyframes mWave { 0%, 45%, 100% { transform: rotate(0) } 7% { transform: rotate(-28deg) } 15% { transform: rotate(12deg) } 23% { transform: rotate(-28deg) } 31% { transform: rotate(12deg) } 39% { transform: rotate(-10deg) } }
@keyframes mBob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }
@keyframes mHop { 0% { transform: translateY(0) scale(1) } 40% { transform: translateY(-14px) scale(1.04, .97) } 100% { transform: translateY(0) scale(1) } }
@media (prefers-reduced-motion: reduce) { .login-hero .lh-mascot svg, .login-hero .lh-mascot .m-arm { animation: none !important } }
.pv-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: min(92vw, 420px); background: #22302B; color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.45; box-shadow: 0 6px 18px rgba(0, 0, 0, .2) }

/* 학원 소개 화면(그림, 과목 카드, 둘러보기, 하루) */
.ga-hero { display: flex; flex-direction: column; gap: 10px }
.ga-heroimg .ga-img { display: block; width: 100%; height: auto; aspect-ratio: 320 / 170; border-radius: 18px }
.ga-herotext h1 { margin: 0; font-size: 22px; line-height: 1.35; color: var(--brand-ink) }
.ga-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 4px }
.ga-sec h2, .ga-h2 { margin: 6px 0 0; font-size: 17px }
.ga-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.ga-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 10px; font: inherit; color: var(--ink); cursor: pointer }
.ga-card.on { border-color: var(--brand-mid); box-shadow: 0 0 0 2px var(--brand-soft) }
.ga-card b { font-size: 15px; margin-top: 2px }
.ga-tilewrap, .ga-tilewrap .ga-tile { display: block; width: 100% }
.ga-tile { height: auto; aspect-ratio: 80 / 46 }
.ga-tag { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #FDEBD9; color: #7A3E0B; margin-top: 2px }
.ga-detail { background: var(--surface); border: 1px solid var(--brand-mid); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px }
.ga-dt { font-size: 15px }
.ga-step { display: flex; gap: 8px; align-items: flex-start; font-size: 14px }
.ga-step i { font-style: normal; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600 }
.ga-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px }
.ga-meta span { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px 9px; font-size: 12px }
.ga-sample { font-size: 12px; color: #7A3E0B; background: #FDEBD9; border-radius: 10px; padding: 6px 10px }
.ga-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.ga-gal figure { margin: 0 }
.ga-gal .ga-img { display: block; width: 100%; height: auto; aspect-ratio: 160 / 110; border-radius: 14px }
.ga-gal figcaption { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 4px }
.ga-day { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px }
.ga-day li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; text-align: center }
.ga-day b { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-size: 14px }
@media (min-width: 900px) {
  .ga-hero { flex-direction: row; align-items: center }
  .ga-heroimg { flex: 1.2 } .ga-herotext { flex: 1 }
  .ga-cards { grid-template-columns: repeat(4, 1fr) }
}
.g-about, .g-about h1, .g-about h2 { word-break: keep-all }
@media (min-width: 900px) { .ga-gal { grid-template-columns: repeat(2, minmax(0, 220px)) } }
.ga-detail[hidden] { display: none }
/* 수강과목 줄(학생 정보, 수강과목 화면): 줄마다 시간과 수강 종료 */
.enr-list .enr-row { flex-wrap: nowrap; min-height: 48px; padding: 8px 2px }
.enr-list .enr-row.sel { background: rgba(30,130,70,.08); border-radius: 10px; border-bottom-color: transparent; padding: 8px }
.enr-list .enr-name { min-width: 0; word-break: keep-all }
.enr-list .btn.sm.on { background: var(--brand-ink); color: #fff }
.enr-list [data-end-box] { margin: 4px 0 10px }
.enr-list .enr-panel { padding: 8px 0 12px; border-bottom: 1px solid var(--line) }

/* ---------- 문의하기 (inquiry.js) ---------- */
.inq-fab { position: fixed; right: 14px; bottom: 14px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); z-index: 30; cursor: pointer; padding: 0 }
.inq-fab.busy { opacity: .6 }
.inq-fabdot, .inq-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #D33; border: 2px solid #fff; vertical-align: middle }
.inq-fabdot { position: absolute; top: 2px; right: 2px }
.inq-dot { margin-left: 4px }
.inq-ov { position: fixed; inset: 0; background: var(--bg); z-index: 100; overflow: auto; padding: 12px 16px 40px; padding-top: max(12px, env(safe-area-inset-top, 0px)) }
.inq-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; max-width: 1000px; margin-left: auto; margin-right: auto }
.inq-title { font-size: 18px }
.inq-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 auto 12px; max-width: 1000px }
.inq-tabs button { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; min-height: 38px; padding: 0 14px; font-size: 14px; color: var(--ink-2) }
.inq-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700 }
.inq-body { max-width: 1000px; margin: 0 auto }
.inq-canvas-wrap { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; line-height: 0 }
.inq-canvas { width: 80%; height: auto; touch-action: none; cursor: crosshair; display: block; margin: 0 auto }
.inq-text-in { position: absolute; width: 140px; min-height: 32px; border: 2px solid #D32F2F; border-radius: 6px; padding: 2px 6px; font-size: 14px; background: #fff; line-height: 1.3 }
.inq-tools { display: flex; flex-wrap: wrap; gap: 6px; position: sticky; top: 0; z-index: 3; background: var(--bg, #fffaf0); padding: 4px 0 6px }
.inq-tool { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface); color: inherit; border-radius: 8px; width: 44px; min-height: 44px; padding: 0 }
.inq-tsep { width: 1px; background: var(--line); margin: 4px 2px }
.inq-shotframe { border: 2px dashed #D32F2F; border-radius: 12px; background: repeating-linear-gradient(45deg, #fff4f4, #fff4f4 8px, #ffeaea 8px, #ffeaea 16px); padding: 4px }
.inq-shotbadge { display: inline-block; background: #D32F2F; color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 3px 8px; margin: 0 0 6px }
.inq-shotframe .inq-canvas-wrap { box-shadow: 0 2px 8px rgba(0,0,0,.25) }
.inq-tool[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff }
.inq-seg { display: flex; gap: 6px }
.inq-seg button { flex: 1; min-height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; font-size: 14px }
.inq-seg button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700 }
.inq-capthumb { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px; width: 100% }
.inq-capthumb img { max-height: 120px; max-width: 100%; border-radius: 6px }
.inq-thumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.inq-th { position: relative; width: 64px; height: 64px }
.inq-th img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px }
.inq-th button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; min-height: 0; border-radius: 50%; border: 0; background: #333; color: #fff; padding: 0; line-height: 1 }
.inq-card.new { border-color: var(--accent) }
.inq-row { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; border: 0; background: transparent; padding: 0; min-height: 0 }
.inq-ans { font-size: 13px; color: var(--info, #1F5F99); background: var(--info-soft, #E6F1FB); border-radius: 8px; padding: 4px 8px }
.inq-text { white-space: pre-wrap; word-break: break-word }
.inq-imgs { display: flex; flex-wrap: wrap; gap: 8px }
.inq-img { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 2px; width: 120px; min-height: 0 }
.inq-img img { width: 100%; display: block; border-radius: 6px }
.inq-zoom { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); z-index: 120; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px }
.inq-zoom img { max-width: 100%; max-height: 80vh; background: #fff }
.inq-mgrid { display: grid; grid-template-columns: 1fr; gap: 14px }
@media (min-width: 800px) { .inq-mgrid { grid-template-columns: 320px 1fr } }
.inq-mrow { display: flex; gap: 8px; align-items: center; padding: 8px }
.inq-mrow.sel { border-color: var(--accent); background: var(--accent-soft) }
.inq-mbtn { flex: 1; display: flex; flex-direction: column; gap: 4px; text-align: left; border: 0; background: transparent; padding: 0; min-height: 0 }

/* 시간표 메뉴 단계: 1단계는 큰 밑줄 탭, 2단계는 작은 회색 선택 막대. 수강과목 색 안내 */
.subtabs.tabs-l1 { display: flex; flex-wrap: nowrap; overflow: visible; gap: 0; border-bottom: 2px solid var(--line); margin-bottom: 12px; padding-bottom: 0 }
.subtabs.tabs-l1 button { flex: 1; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; margin-bottom: -2px; min-height: 46px; padding: 0 8px; font-size: 16px; font-weight: 600; color: var(--ink-2); box-shadow: none; white-space: nowrap }
.subtabs.tabs-l1 button[aria-pressed="true"] { background: transparent; color: var(--brand-ink); border-bottom-color: var(--brand); font-weight: 800; box-shadow: none }
.subtabs.seg-l2 { display: inline-flex; flex-wrap: nowrap; gap: 0; background: #EAE3D2; border-radius: 8px; padding: 3px; margin-bottom: 10px; overflow: visible; max-width: 100% }
.subtabs.seg-l2 button { border: 0; background: transparent; border-radius: 6px; min-height: 32px; padding: 0 12px; font-size: 13px; color: var(--ink-2); box-shadow: none }
.subtabs.seg-l2 button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .2) }
.tt-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px }
.tt-legend span { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 12px }

/* 원장, 부원장: 원장 화면 / 내 수업 전환 */
.modebar { display: flex; gap: 0; background: #EAE3D2; border-radius: 8px; padding: 3px; margin-bottom: 10px; max-width: 100% }
.modebar button { flex: 1 1 0; border: 0; background: transparent; border-radius: 6px; min-height: 36px; padding: 0 10px; font-size: 14px; color: var(--ink-2); box-shadow: none }
.modebar button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .2) }

/* 날씨 한 줄과 날씨별 머리 배경 */
.wxline { position: relative; z-index: 1; margin-top: 8px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink, #24412F) }
.wxline .wxt { font-weight: 700 }
.wxline .wxn { font-size: 12px; opacity: .8 }
.pp .phone-head.wx-cloudy { background: linear-gradient(165deg, #E9EEF1 0%, #F1F4F2 55%, #F7F5EC 100%) }
.pp .phone-head.wx-rain { background: linear-gradient(165deg, #D5E6F3 0%, #E2EEF4 55%, #EEF3F1 100%) }
.pp .phone-head.wx-snow { background: linear-gradient(165deg, #E3EEF9 0%, #F2F7FC 60%, #FFFFFF 100%) }
.pp .phone-head.wx-hot { background: linear-gradient(165deg, #FFF0C9 0%, #FFE3B0 55%, #FFD6A0 100%) }
.pp .phone-head.wx-cold { background: linear-gradient(165deg, #D9E6F5 0%, #E8EFF8 55%, #F4F1EA 100%) }
.pp .phone-head.wx-dust { background: linear-gradient(165deg, #EDE5D3 0%, #F1EAD9 55%, #F5EFE0 100%) }
.wxline .wxl { font-size: 11px; font-weight: 700; color: #2E8B57; letter-spacing: -.2px }
.pp .phone-head.wx-clear { background: linear-gradient(165deg, #DDF1FF 0%, #EAF8F0 55%, #FFF6D8 100%) }
.login-hero .wxline { align-items: center; text-align: center; margin-top: 6px }

/* 원장님, 선생님 홈 머리의 날씨별 배경 */
.greet.wx-clear { background: linear-gradient(120deg, #DDF1FF 0%, #EAF8F0 60%, #FFF6D8 100%) }
.greet.wx-cloudy { background: linear-gradient(120deg, #E9EEF1 0%, #F1F4F2 60%, #F7F5EC 100%) }
.greet.wx-rain { background: linear-gradient(120deg, #D5E6F3 0%, #E2EEF4 60%, #EEF3F1 100%) }
.greet.wx-snow { background: linear-gradient(120deg, #E3EEF9 0%, #F2F7FC 60%, #FFFFFF 100%) }
.greet.wx-hot { background: linear-gradient(120deg, #FFF0C9 0%, #FFE3B0 60%, #FFD6A0 100%) }
.greet.wx-cold { background: linear-gradient(120deg, #D9E6F5 0%, #E8EFF8 60%, #F4F1EA 100%) }
.greet.wx-dust { background: linear-gradient(120deg, #EDE5D3 0%, #F1EAD9 60%, #F5EFE0 100%) }
/* 자유 출입 수업의 학생별 시간 표: 학생 줄 x 요일 칸 */
.vt { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface) }
.vt-row { display: grid; grid-template-columns: 76px repeat(var(--cols), minmax(0, 1fr)); gap: 4px; padding: 6px 8px; border-top: 1px solid var(--line); align-items: stretch }
.vt-row.vt-head { border-top: 0; font-size: 13px; font-weight: 700; text-align: center; align-items: center; background: var(--sunk) }
.vt-row.empty { background: var(--warn-soft) }
.vt-name { display: flex; flex-direction: column; justify-content: center; font-size: 14px; text-align: left; overflow-wrap: anywhere }
.vt-none { color: var(--warn); font-weight: 700; font-size: 11px }
.vt-cell { min-height: 52px; border: 1.5px dashed #DCD5C4; border-radius: 10px; background: var(--surface); color: var(--ink-3); font: inherit; font-size: 12px; line-height: 1.25; padding: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer }
.vt-cell.on { border: 0; background: var(--accent-soft); color: #0B5E50 }
.vt-cell.other { border: 0; background: #ECE8DF; color: var(--ink-2) }
.vt-cell.sel { outline: 2.5px solid var(--accent); outline-offset: 1px }
.vt-t, .vt-o { display: flex; flex-direction: column; align-items: center }
.vt-t b { font-weight: 800 }
.vt-o small { font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.vt-plus { font-size: 18px; color: #9AA59E }
.vt-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px }
.vt-key.on { background: var(--accent-soft) } .vt-key.other { background: #ECE8DF }
.vt-pick { border: 2px solid var(--accent); border-radius: 16px; padding: 14px; background: var(--surface) }
.vt-result { background: var(--accent-soft); color: #0B5E50; border-radius: 12px; padding: 10px; text-align: center; font-weight: 700; font-size: 16px }
.vt-pick .btn.on, .vt-pick .btn[aria-pressed="true"] { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important }
.vt-namebtn { border: 0; background: transparent; font: inherit; font-size: 14px; text-align: left; padding: 0; cursor: pointer; color: var(--ink); font-weight: 700 }
.vt-namebtn.on { font-weight: 800; color: var(--accent) }
.vt-sub { font-size: 11px; color: var(--ink-3); font-weight: 400 }
.vt-panel { grid-column: 1 / -1; background: var(--sunk); border-radius: 12px; padding: 10px 12px; margin: 0 8px 8px }
.vt .vt-panel { border-top: 0 }
.vt-cell.fixed { background: #E6F1FB; color: #1F5F99; border: 0 }
.vt-cell.ro { border: 0; background: transparent; cursor: default }
/* 돌려 고르는 시각 */
.vt-wheels { position: relative; display: flex; justify-content: center; align-items: stretch; gap: 6px; background: var(--sunk); border-radius: 14px; padding: 0 10px }
.vt-wheels::before { content: ''; position: absolute; left: 8px; right: 8px; top: 40px; height: 40px; border-radius: 10px; background: #fff; border: 2px solid #0B5E50; pointer-events: none }
.vt-wheel { height: 120px; width: 84px; overflow-y: auto; scroll-snap-type: y mandatory; scroll-padding-top: 40px; scrollbar-width: none; overscroll-behavior: contain; text-align: center; outline-offset: -2px }
.vt-wheel::-webkit-scrollbar { display: none }
.vt-pad { height: 40px }
.vt-wi { height: 40px; line-height: 40px; scroll-snap-align: start; font-size: 18px; color: var(--ink-3); cursor: pointer; user-select: none }
.vt-wi.on { color: var(--ink); font-weight: 800; font-size: 20px }
.vt-colon { align-self: center; font-weight: 800; font-size: 20px }
[data-vt-wheels="len"] .vt-wheel { width: 170px }

/* 날씨 장면과 새솔이 움직임(10-21): 머리 영역 뒤 장면 + 새솔이 동작. 이동과 투명도만 쓰고, "동작 줄이기" 설정이면 멈춘다 */
.wx-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit }
.wx-scene .wx-sc { width: 100%; height: 100%; display: block }
.greet > .wx-scene, .pp .phone-head > .wx-scene { position: absolute; z-index: 0 }
.pp .phone-head[class*="wx-"]::after, .greet[class*="wx-"]::after { display: none }
.pp .phone-head[class*="wx-"] > :not(.wx-scene) { position: relative; z-index: 1 }
.wx-pet { overflow: visible }
.wx-g { transform-box: fill-box; transform-origin: center }
.wxp-clear { animation: wxHop 3s ease-in-out infinite }
.wxp-cloudy { animation: wxTilt 3s ease-in-out infinite }
.wxp-rain { animation: wxBob 3s ease-in-out infinite }
.wxp-snow { animation: wxShiver .25s ease-in-out infinite alternate }
.wxp-hot { animation: wxBob 1.5s ease-in-out infinite }
.wxp-cold { animation: wxShiver .2s ease-in-out infinite alternate }
.wxp-dust { animation: wxSway 3s ease-in-out infinite }
.login-hero .lh-mascot svg.wx-pet { animation: mBob 3.2s ease-in-out infinite }
@keyframes wxRays { to { transform: rotate(45deg) } }
@keyframes wxPulse { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.1) } }
@keyframes wxDrift { 0%, 100% { transform: translateX(-24px) } 50% { transform: translateX(24px) } }
@keyframes wxRain { from { transform: translate(0, -30px) } to { transform: translate(-18px, 220px) } }
@keyframes wxSnow { from { transform: translateY(-12px) } to { transform: translateY(202px) } }
@keyframes wxSway { 0%, 100% { transform: translateX(0) } 50% { transform: translateX(10px) } }
@keyframes wxBob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-5px) } }
@keyframes wxHop { 0%, 100% { transform: translateY(0) scale(1, 1) } 20% { transform: translateY(0) scale(1.04, .95) } 50% { transform: translateY(-10px) scale(.98, 1.03) } 80% { transform: translateY(0) scale(1.03, .96) } }
@keyframes wxTilt { 0%, 100% { transform: rotate(-3deg) } 50% { transform: rotate(3deg) } }
@keyframes wxShiver { 0% { transform: translateX(-1.4px) } 100% { transform: translateX(1.4px) } }
@keyframes wxFan { 0% { transform: rotate(-20deg) } 100% { transform: rotate(20deg) } }
@keyframes wxSweat { 0% { transform: translateY(0); opacity: 1 } 100% { transform: translateY(12px); opacity: 0 } }
@keyframes wxPuff { 0% { transform: translate(0, 0) scale(.4); opacity: .9 } 100% { transform: translate(14px, -16px) scale(1.3); opacity: 0 } }
@keyframes wxRipple { 0% { transform: scale(.3); opacity: .9 } 100% { transform: scale(1.3); opacity: 0 } }
@keyframes wxHaze { 0%, 100% { transform: translateX(-30px) } 50% { transform: translateX(30px) } }
@keyframes wxDust { from { transform: translateX(30px) } to { transform: translateX(-426px) } }
@keyframes wxShimmer { 0% { transform: translateY(0); opacity: .7 } 100% { transform: translateY(-14px); opacity: 0 } }
@keyframes wxWind { from { transform: translateX(-80px); opacity: 0 } 30% { opacity: .8 } to { transform: translateX(406px); opacity: 0 } }
@keyframes wxScarf { 0%, 100% { transform: rotate(-8deg) } 50% { transform: rotate(10deg) } }
@media (prefers-reduced-motion: reduce) { .wx-scene *, .wx-pet, .wx-pet * { animation: none !important } }
.pp .phone-head[class*="wx-"] .hero .wx-pet { width: 124px; height: 124px; margin: -16px -6px -10px 0 }
.greet[class*="wx-"] .wx-pet { width: 112px; height: 112px; margin: -14px 0 -16px }
@media (max-width: 560px) { .greet[class*="wx-"] .wx-pet { width: 96px; height: 96px; margin: -10px 0 -12px } }

/* 시간표 입력: 다른 수업 읽기 전용 줄, 고르는 중 겹침 띠(10-21) */
.vt-sec { padding: 6px 10px; border-top: 1px solid var(--line); background: var(--sunk); font-size: 12px; color: var(--ink-2); font-weight: 600 }
.vt-orow .vt-name { color: var(--ink-2) }
.vt-cell.ro-o { cursor: default; min-height: 44px }
.vt-cell.ro-o .vt-t b { font-size: 12px }
.vt-result.bad { background: #FBE9E5; color: #A8301F }
.vt-day { display: flex; flex-direction: column; gap: 4px }
.vt-daybar { position: relative; height: 38px; background: var(--sunk); border-radius: 10px; overflow: hidden }
.vt-blk { position: absolute; top: 6px; bottom: 6px; border-radius: 6px; font-size: 11px; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; box-sizing: border-box }
.vt-blk.other { background: #D7D2C4; color: #4C5A53; z-index: 1 }
.vt-blk.other.open { background: repeating-linear-gradient(45deg, #E4E0D4, #E4E0D4 6px, #D7D2C4 6px, #D7D2C4 12px) }
.vt-blk.pick { top: 2px; bottom: 2px; border: 2px solid var(--accent); background: var(--accent-soft); border-radius: 8px; z-index: 2 }
.vt-blk.pick.bad { border-color: #CC3C28; background: rgba(204, 60, 40, .18) }
.vt-dayaxis { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3) }

/* 날씨 줄: 큰 한 줄 + 알약(10-21). 줄이 바뀌어도 알약 단위로만 바뀐다 */
.wxline .wxt.big { font-size: 17px; font-weight: 800; letter-spacing: -.3px; line-height: 1.25 }
.wxline .wxchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px }
.wxline .wxchips i { font-style: normal; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .78); border-radius: 999px; padding: 2px 9px; white-space: nowrap; color: #24412F }
.login-hero .wxline .wxchips { justify-content: center }

/* 학부모 화면 개선(10-21): 홈 요약 두 줄, 제목, 위쪽 메뉴, 수업 시간 한 줄, 계좌 복사, 비 오는 날 글자 바탕 */
.pp .kidname { font-size: 24px; word-break: keep-all }
.hrow { padding-top: 8px; padding-bottom: 8px }
.hrow .hx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left }
.hrow .hx .hl { flex: none; min-width: 0; font-size: 12px; color: #6B7A6F; font-weight: 600 }
.hrow .hx .hv { flex: none; max-width: 100%; margin: 0; text-align: left; font-size: 15px; font-weight: 800; word-break: keep-all; overflow-wrap: anywhere }
.hrow.dim { opacity: .8 }
.hrow.dim .hx .hv { color: #7A857C; font-weight: 600 }
.wk-nav .wk-t { font-size: 14px; word-break: keep-all }
.pmenu { position: relative; display: inline-block }
.pmenu-btn { min-height: 36px; padding: 0 12px; font-size: 13px }
.pmenu.inbody { align-self: flex-end }
.pmenu-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: #fff; border: 1px solid var(--pline, var(--line)); border-radius: 14px; box-shadow: 0 8px 24px rgba(40, 60, 40, .16); padding: 6px; z-index: 60; text-align: left }
.pmenu-pop[hidden] { display: none }
.pm-i { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; min-height: 44px; justify-content: center; padding: 6px 12px; background: none; border: 0; border-radius: 10px; font: inherit; font-size: 14px; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer }
.pm-i:hover, .pm-i:focus-visible { background: #F3F8F1 }
.pm-q { padding: 8px 12px 6px; font-weight: 700; font-size: 14px }
.pmenu-pop .row { padding: 0 12px 8px }
.tt-sum { gap: 8px }
.tt-sumbtn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0; background: none; border: 0; font: inherit; text-align: left; color: inherit; cursor: pointer }
.tt-sumx { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.tt-sl { font-size: 15px; word-break: keep-all }
.tt-sumbtn .hc { color: #A8A294; display: grid; transition: transform .15s }
.tt-sumbtn.open .hc { transform: rotate(90deg) }
.tt-sum [hidden] { display: none }
.pp .pay .acct { display: block; margin: 2px 0 6px; font-weight: 700; word-break: break-all; user-select: text; -webkit-user-select: text }
.pp .pay .btn.sm { margin: 0 0 6px }
.pp .phone-head.wx-rain .hero > div:first-child, .pp .phone-head.wx-rain .wxline { background: rgba(255, 251, 240, .9); border-radius: 16px; padding: 10px 12px }
.pp .phone-head.wx-rain .wxline { margin-top: 8px }
.pp .phone-head.wx-rain .hero { align-items: stretch }
.cs-count, [data-cs-count] { text-align: center }
.pp .hello { word-break: keep-all }
.tt-sl { font-size: 14px }

/* 주 넘기기 막대: 좌우 버튼 크기를 같게 두고 가운데 글자만 줄어들게(대칭) */
.wk-nav { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 8px }
.wk-nav .icon-btn { flex: none; width: 42px; padding: 0 }
.wk-nav > div { min-width: 0 }
.wk-nav .wk-t { font-size: 13px }

/* 수강과목 시간표 시안성(10-21): 평일 5칸을 넓게, 시각 글자를 크게 */
.vt-row { grid-template-columns: 84px repeat(var(--cols), minmax(0, 1fr)) }
.vt-cell { min-height: 58px }
.vt-t b { font-size: 15px; letter-spacing: -.02em }
.vt-t small { font-size: 12px; color: inherit; opacity: .85 }
.vt-name { font-size: 15px }
.vt-plus { font-size: 22px }

/* 10-22 시간표 정리: 달력 통일(월요일 시작, 같은 이전·다음 버튼), 출결 표시는 점, 주간 표 요일 칸 넓힘, 읽기 전용 안내 */
.mc-bar { margin: 2px 0 6px }
.mc-bar .icon-btn { font-size: 20px; line-height: 1 }
.mc.dots .mc-att { font-size: 0; width: 8px; height: 8px; min-width: 8px; padding: 0; border-radius: 50%; display: block; margin: 2px auto 0; overflow: hidden }
.ro-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap }
.ro-note .btn { flex: none }
@media (max-width: 520px) {
  .vt-row { grid-template-columns: 64px repeat(var(--cols), minmax(0, 1fr)); gap: 3px; padding: 6px 4px }
  .vt-name { font-size: 14px }
  .vt-t b { font-size: 14px }
}

/* 시간 입력 팝업(10-22) */
.vt-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center }
.vt-backdrop { position: absolute; inset: 0; background: rgba(20, 30, 25, .42) }
.vt-sheet { position: relative; width: 100%; max-width: 520px; max-height: 80vh; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 22px 22px 0 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 30px rgba(0, 0, 0, .18) }
.vt-sheet .vt-pick { border: 0; padding: 0; background: transparent }
.vt-cell.sel { scroll-margin-top: 110px }
@media (min-width: 700px) { .vt-modal { align-items: center } .vt-sheet { border-radius: 22px; max-height: 88vh; padding-bottom: 18px } }

.mc.dots .mc-slot { background: currentColor !important; opacity: .8 }
.mc.dots .mc-slot.off { opacity: .3 }

/* 시간 입력 창 모양 개선(10-22): 머리, 번호 단계, 흐린 휠, 끝나는 시각, 큰 띠, 월~금 칩 */
.vt-head2 { display: flex; justify-content: space-between; align-items: center; gap: 10px }
.vt-ttl { display: flex; flex-direction: column; min-width: 0 }
.vt-ttl b { font-size: 21px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.vt-ttl small { font-size: 13px; color: var(--ink-3) }
.vt-dayb { background: #0B5E50; color: #fff; font-weight: 800; font-size: 14px; border-radius: 999px; padding: 6px 12px; white-space: nowrap }
.vt-x { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); font-size: 22px; line-height: 1; color: var(--ink-2, #4C5A53); cursor: pointer; padding: 0 }
.vt-step { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.vt-n { width: 24px; height: 24px; border-radius: 50%; background: #0B5E50; color: #fff; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none }
.vt-step b { font-size: 15px }
.vt-step small { font-size: 12px; color: var(--ink-3) }
.vt-step b + small { margin-left: auto }
.vt-step small.vt-wkn { margin-left: 0; flex-basis: 100% ; padding-left: 32px }
.vt-wheels .vt-wheel { position: relative; z-index: 1; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%) }
.vt-wheels { gap: 10px }
.vt-wi.on { color: #0B5E50 }
.vt-end { text-align: center; font-weight: 800; font-size: 15px; color: #0B5E50 }
.vt-daybar { height: 54px }
.vt-blk { flex-direction: column; line-height: 1.15; padding: 0 4px }
.vt-blk b { font-size: 11px }
.vt-blk small { font-size: 10px; opacity: .85 }
.vt-blk.pick { color: #0B5E50 }
.vt-blk.pick.bad { color: #A8301F }
.vt-dayaxis { display: block; position: relative; height: 14px }
.vt-dayaxis span { position: absolute; transform: translateX(-50%); white-space: nowrap }
.vt-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px }
.vt-chip { height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-weight: 800; font-size: 15px; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 }
.vt-chip.fixed { background: #0B5E50; border-color: #0B5E50; color: #fff; cursor: default }
.vt-chip.on { background: var(--accent-soft); border-color: var(--accent); color: #0B5E50 }
.vt-chip.bad { border-color: #CC3C28; box-shadow: 0 0 0 1px #CC3C28 inset }
/* 띠는 두 줄: 위 줄은 다른 수업, 아래 줄은 내 수업(겹치면 위아래로 겹쳐 보이고 내 띠가 빨개진다) */
.vt-daybar { height: 68px }
.vt-blk.other { top: 3px; bottom: auto; height: 30px }
.vt-blk.pick { top: 36px; bottom: auto; height: 29px }
/* 다른 수업 띠는 한 줄(10-22 원장 결정): 다른 수업은 회색, 내 수업은 그 위에 반투명으로 겹친다 */
.vt-daybar { height: 40px }
.vt-blk { flex-direction: row; gap: 4px; padding: 0 5px; line-height: 1 }
.vt-blk.other { top: 4px; bottom: 4px; height: auto }
.vt-blk.pick { top: 2px; bottom: 2px; height: auto; background: rgba(12, 125, 105, .16); justify-content: center }
.vt-blk.pick.bad { background: rgba(204, 60, 40, .22) }
.vt-blk.pick small { font-size: 12px; font-weight: 800; opacity: 1 }
.vt-blk.other b { font-size: 11px; overflow: hidden; text-overflow: ellipsis }
.vt-bar-note { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--ink-3) }

/* 출결 화면 시안성 개선(10-22): 수업 칩 상태 점, 얇은 지난 날짜 띠, 카드 머리, 출결 버튼 색, 합계, 주 한 줄 달력 */
.rec-old { padding: 7px 12px; font-size: 13px; margin-bottom: 8px; line-height: 1.35 }
.rec-jump, .rec-jump { flex-wrap: wrap !important; overflow: visible !important }
.rec-jump .btn { white-space: normal !important; text-align: left; display: inline-flex; align-items: center; gap: 6px; min-height: 36px }
.rec-jump .btn::before { content: ''; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--danger) }
.rec-jump .btn[data-jst="done"]::before { background: var(--brand, var(--accent)) }
.rec-jump .btn[data-jst="off"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px #A9A493 }
.rec-jump .btn[aria-pressed="true"]::before { background: #fff; box-shadow: none }
.rec-jump .btn[aria-pressed="true"] { box-shadow: 0 0 0 2px rgba(12, 125, 105, .25) }
.rec-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0 }
.rec-time { font-size: 18px }
.rec-cls { font-size: 16px; color: var(--ink-2, #3C4A43) }
.rec-st { border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; white-space: nowrap }
.rec-st.todo { background: #FFE9D6; color: #9A4A0E }
.rec-st.part { background: #FFF1C2; color: #7A5200 }
.rec-st.done { background: #DDF4E6; color: #1E7046 }
.att-b { font-weight: 600 }
.att-b[aria-checked="true"] { font-weight: 800 }
.att-b[aria-checked="true"].done { background: #1E8F5A; color: #fff }
.att-b[aria-checked="true"].wait { background: #F2B705; color: #3B2A00 }
.att-b[aria-checked="true"].bad { background: #C8412B; color: #fff }
.rec-sum { display: flex; gap: 6px; flex-wrap: wrap }
.rec-sum .rs { font-size: 13px; font-weight: 800; border-radius: 999px; padding: 2px 10px }
.rec-sum .rs.done { background: #DDF4E6; color: #1E7046 }
.rec-sum .rs.wait { background: #FFF1C2; color: #7A5200 }
.rec-sum .rs.bad { background: #FFE3DB; color: #A23A1E }
.wk-foot { align-items: center; gap: 8px; flex-wrap: wrap }
.wk-cal.collapsed .wk-grid .wk-d { min-height: 52px }

/* 수업 칩은 다시 한 줄 가로 스크롤(10-22 원장 선택: 칩 ①). 오른쪽 끝이 흐려져 더 있음을 알린다 */
.rec-jump { flex-wrap: nowrap !important; overflow-x: auto !important; scrollbar-width: none; margin-bottom: 6px !important; -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); scroll-behavior: smooth }
.rec-jump::-webkit-scrollbar { display: none }
.rec-jump .btn { white-space: nowrap !important; flex: 0 0 auto }
.rec-hint { font-size: 12px; color: var(--ink-3); margin-bottom: 10px }
