/* SKY 주니어골프 — 잔디 초록 + 해(노랑) + 구름(하늘). 폰 우선, 리포트는 A4 인쇄. */
:root {
  --green: #0b5d3b;
  --green-2: #137a4f;
  --green-soft: #e7f3ec;
  --sun: #ffd400;
  --sky: #58b9ea;
  --sky-soft: #e6f5fd;
  --ink: #1d2a24;
  --muted: #6b7a72;
  --line: #dfe7e2;
  --bg: #f4f7f2;
  --card: #fff;
  --red: #c62828;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 28, .06), 0 4px 14px rgba(16, 40, 28, .05);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { min-height: 100vh; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
a { color: var(--green); text-decoration: none; }
h1 { font-size: 22px; margin: 6px 0 10px; letter-spacing: -.3px; }
h2 { font-size: 17px; margin: 14px 0 8px; }
h3 { font-size: 16px; margin: 0 0 10px; }
p { line-height: 1.55; }
.muted { color: var(--muted); }
.small, small { font-size: 12.5px; }
[hidden] { display: none !important; }

/* 머리글 */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 14px; padding-top: calc(8px + env(safe-area-inset-top));
  background: var(--green); color: #fff; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 16px; white-space: nowrap; flex: none; }
.top .btn { white-space: nowrap; }
@media (max-width: 480px) { #who { display: none; } }
.brand img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 9px; padding: 2px; }
.brand b { color: var(--sun); }
.top-right { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-width: 0; }
#who { opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }

main { max-width: 760px; margin: 0 auto; padding: 12px 14px 24px; }
.page > .card, .page > .tabs, .page > .quick { margin-top: 12px; }
main:has(.report-page) { max-width: 1040px; }
#pvBar { position: sticky; top: 50px; z-index: 19; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--sun); color: #3b3200; padding: 7px 14px; font-size: 14px; }
#pvBar span { margin-right: auto; }
.pv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.pv-grid .card { display: grid; gap: 10px; align-content: start; }
.pv-grid h3 { margin: 0; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.right { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.empty { color: var(--muted); text-align: center; padding: 14px 0; }
.warn { background: #fff7e0; border: 1px solid #f2d27a; color: #7a5a00; border-radius: 10px; padding: 8px 12px; font-size: 14px; }

/* 버튼 */
.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: #fff; color: var(--ink); font: inherit; font-size: 15px;
  font-weight: 600; cursor: pointer; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger.ghost { background: #fff; color: var(--red); }
.btn.ghost { background: transparent; }
.top .btn.ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.btn.sm { min-height: 34px; padding: 0 11px; font-size: 13.5px; border-radius: 9px; }
.btn.block { width: 100%; }
.link { background: none; border: 0; color: var(--green); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 0; }
.back { display: inline-block; font-size: 14px; margin: 2px 0 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* 입력 */
.form { display: grid; gap: 12px; }
label { display: grid; gap: 5px; font-size: 13.5px; color: #3c4a43; font-weight: 600; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #cfdad3; border-radius: 10px;
  background: #fff; color: var(--ink); width: 100%; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: var(--sky); }
label.check { display: block; position: relative; padding-left: 30px; font-weight: 500; line-height: 1.45; }
label.check input { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
label.inline { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
label.inline select { width: auto; padding: 7px 10px; font-size: 15px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.label { font-size: 13.5px; font-weight: 600; margin: 0; color: #3c4a43; }
.msg { color: var(--red); min-height: 1.2em; margin: 0; font-size: 14px; }
.hint { color: var(--muted); font-size: 13px; text-align: center; margin: 0; }
.search { width: 140px; padding: 7px 10px; font-size: 14px; }

/* 로그인 */
.auth { max-width: 400px; margin: 0 auto; text-align: center; padding-top: 10px; }
.auth-logo { width: 210px; max-width: 70%; }
.auth-sub { color: var(--muted); margin: 0 0 14px; }
.auth .card { text-align: left; }
.consent-text { background: #f7faf8; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; max-height: 260px;
  overflow: auto; font-size: 13.5px; line-height: 1.55; }
.consent-text ol { padding-left: 18px; margin: 6px 0; }
.consent-text li { margin: 4px 0; }
.consent-text.small { max-height: none; }

/* 아래 탭 */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-around;
  background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; display: grid; place-items: center; gap: 1px; padding: 7px 0 8px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.tabbar a span { font-size: 19px; line-height: 1; }
.tabbar a.on { color: var(--green); }

/* 홈 */
.hello h1 { margin-bottom: 2px; }
.hello p { margin: 0; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.quick-btn { display: flex; align-items: center; gap: 10px; background: var(--green); color: #fff; border-radius: var(--radius);
  padding: 14px 16px; font-weight: 700; box-shadow: var(--shadow); }
.quick-btn:nth-child(2) { background: var(--sky); }
.quick-btn span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 17px; }
.notice-mini a { display: block; padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink); }
.notice-mini a:first-of-type { border-top: 0; }

.students, .list { list-style: none; padding: 0; margin: 6px 0 0; }
.students li a, .list li > a, .list li > div:first-child { display: flex; align-items: center; gap: 10px; padding: 11px 2px; color: var(--ink); }
.students li + li, .list li + li { border-top: 1px solid var(--line); }
.list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.list li > a { flex: 1; min-width: 0; flex-wrap: wrap; }
.list .btns { display: flex; gap: 6px; margin-left: auto; padding-bottom: 8px; flex-wrap: wrap; }
.list.accounts li { padding: 10px 0; }
.list.accounts li > div:first-child { display: block; padding: 0; flex: 1; min-width: 200px; }
.sub-link { font-size: 13px; padding: 0 4px; }
.students .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.students .name { display: grid; font-weight: 700; }
.students .name small { font-weight: 400; color: var(--muted); }
.students .right { flex-direction: column; align-items: flex-end; gap: 2px; }

.seg { display: inline-flex; background: #eef3ef; border-radius: 10px; padding: 3px; gap: 2px; margin: 4px 0; }
.seg button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--green); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.tabs { display: flex; gap: 6px; overflow-x: auto; }
.tabs button { flex: none; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 600;
  padding: 9px 14px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--green); border-color: var(--green); color: #fff; }
#tabBody, #aBody { margin-top: 10px; }

/* 레벨 */
.lv { display: inline-flex; align-items: center; white-space: nowrap; padding: 3px 9px; border-radius: 999px; font-size: 12px;
  font-weight: 800; background: var(--lv); color: var(--lvink); letter-spacing: .2px; }
.lv.big { font-size: 14px; padding: 6px 13px; }
.rainbow { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 12px; }
.rb-cell { height: 12px; border-radius: 6px; background: #edf1ee; overflow: hidden; }
.rb-cell i { display: block; height: 100%; }
.rb-cell.now { outline: 2px solid #b9c6be; outline-offset: 1px; }
.progress-text { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.goal { margin: 8px 0 0; font-size: 14.5px; }

.kid-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; color: var(--ink); }
.kid-head h2 { margin: 0; font-size: 20px; }
.kid-head p { margin: 2px 0 0; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 10px; text-align: center; }
.stats div { background: var(--green-soft); border-radius: 10px; padding: 9px 2px; display: grid; }
.stats b { font-size: 20px; color: var(--green); }
.stats span { font-size: 11.5px; color: var(--muted); }
.report-link { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; background: var(--sky-soft); border-radius: 10px; padding: 11px 12px; color: var(--ink); font-size: 14.5px; }
.feedback { margin-top: 10px; border-left: 3px solid var(--sun); padding: 2px 0 2px 10px; font-size: 14px; }
.feedback p { margin: 4px 0 0; }
.student-head { border-top: 5px solid var(--lv); }
.student-head h1 { margin: 0; }
.student-head p.muted { margin: 2px 0 0; font-size: 13.5px; }

.tag { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--tag, var(--green)); white-space: nowrap; }
.tag.gray { background: #e3e9e5; color: #4b5a52; }
.tag.red { background: #fde3e3; color: var(--red); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.blue { background: var(--sky-soft); color: #136a97; }

.lessons { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.lessons li { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.lessons li.absent { opacity: .75; }
.lessons p { margin: 6px 0 0; font-size: 14.5px; white-space: pre-wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); border: 1px solid transparent; font-weight: 600; }
.chips.pick .chip { font: inherit; font-size: 14px; padding: 8px 14px; background: #fff; border-color: var(--line); color: var(--ink); cursor: pointer; }
.chips.pick .chip.on { background: var(--green); color: #fff; border-color: var(--green); }
dl.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; margin: 0 0 12px; font-size: 14.5px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }

/* 출석 */
.attend { list-style: none; padding: 6px 14px; margin: 12px 0 0; }
.attend li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 0; }
.attend li + li { border-top: 1px solid var(--line); }
.attend .name { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); flex: 1; min-width: 130px; }
.attend .ab { display: flex; gap: 6px; }
.attend .ab button { border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 700; min-height: 40px; padding: 0 13px; border-radius: 10px; cursor: pointer; color: var(--muted); }
.attend .ab .ok.on { background: var(--green); border-color: var(--green); color: #fff; }
.attend .ab .no.on { background: var(--red); border-color: var(--red); color: #fff; }
.attend .ab .fb.has { background: var(--sun); border-color: var(--sun); color: #3b3200; }
.attend small { flex-basis: 100%; }

/* 평가 입력 */
.eval-form { padding-bottom: 80px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; }
.sec-head h2, .eval-form h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 16.5px; }
.eval-form .card > h2:not(:first-child) { margin-top: 16px; }
.sec-head i, .eval-form h2 i, .no { font-style: normal; display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 12.5px; font-weight: 800; }
.sec-score { font-weight: 800; color: var(--green); font-size: 14px; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px dashed #e7ede9; font-size: 15px; }
.item.unset > span:first-child { color: #9aa79f; }
.stars { display: flex; }
.stars button { border: 0; background: none; font-size: 27px; line-height: 1; padding: 3px 3px; color: #d6ddd8; cursor: pointer; }
.stars button.on { color: #f5b400; }
.pf, .gr { display: flex; gap: 5px; }
.pf button, .gr button { border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; font-size: 14px; min-width: 50px; min-height: 38px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.gr button { min-width: 44px; font-size: 17px; }
.pf button.on[data-v=pass], .gr button.on[data-v=up] { background: var(--green); border-color: var(--green); color: #fff; }
.pf button.on[data-v=retry], .gr button.on[data-v=down] { background: #f57c00; border-color: #f57c00; color: #fff; }
.gr button.on[data-v=same] { background: #90a4ae; border-color: #90a4ae; color: #fff; }
input.other { display: inline-block; width: 120px; padding: 5px 8px; font-size: 14px; margin-left: 4px; }
.best { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.best b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sun); color: #3b3200; flex: none; }
.eval-form .card label { margin-top: 8px; }
.actions-bottom { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.scorebar { position: fixed; z-index: 15; left: 0; right: 0; bottom: calc(57px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
  background: #11251b; color: #fff; padding: 9px 16px; max-width: 760px; margin: 0 auto; border-radius: 14px 14px 0 0; }
.scorebar b { font-size: 26px; color: var(--sun); }
.scorebar small { display: block; font-size: 11px; opacity: .8; }
.scorebar > div:first-child small { display: inline; }
.scorebar .v { font-weight: 800; border-left: 4px solid var(--tag); padding-left: 8px; font-size: 14px; }
.scorebar .miss { margin-left: auto; font-size: 11.5px; opacity: .8; text-align: right; max-width: 45%; }

/* 모달 */
.modal-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(10, 25, 18, .45); display: grid; place-items: end center; padding: 0; }
.modal { background: #fff; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); }
.modal h3 { margin: 0 0 12px; font-size: 18px; }
.modal-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
@media (min-width: 640px) { .modal-wrap { place-items: center; padding: 20px; } .modal { border-radius: 18px; } }
pre.cred { white-space: pre-wrap; background: #f4f7f5; border-radius: 10px; padding: 12px; font-size: 14px; user-select: all; }

#toast { position: fixed; z-index: 60; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: #18352a; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; max-width: 90vw; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--red); }

.notice .body { margin-top: 8px; line-height: 1.6; font-size: 15px; }
.notice h3 { margin: 0; }

/* ---------- 성장 리포트 ---------- */
.report-page .no-print { margin-bottom: 10px; }
.report-page .no-print .btn { margin-left: 6px; }
.report { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; font-size: 13px; }
.rp-head { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; padding-bottom: 10px;
  border-bottom: 3px solid var(--green); }
.rp-head img { width: 70px; }
.rp-en { margin: 0; font-weight: 900; color: #1550a8; letter-spacing: 1px; font-size: 13px; }
.rp-head h1 { margin: 0; font-size: 24px; color: var(--green); }
.rp-sub { margin: 0; color: var(--muted); font-size: 12.5px; }
.rp-slogan { margin: 0; text-align: right; font-size: 13px; color: #1550a8; font-weight: 700; }
.rp-row { display: grid; gap: 8px; margin-top: 8px; }
.rp-col { display: grid; gap: 8px; align-content: start; }
.rp-box { border: 1px solid #cfe0d6; border-radius: 10px; overflow: hidden; }
.rp-box h4 { display: flex; align-items: center; gap: 6px; margin: 0; padding: 6px 8px; background: var(--green); color: #fff; font-size: 13px; }
.rp-box h4 i { font-style: normal; display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #fff; color: var(--green); font-size: 11px; font-weight: 900; }
.rp-box h4 b { margin-left: auto; color: var(--sun); }
.rp-box dl { display: grid; grid-template-columns: auto 1fr; margin: 0; }
.rp-box dt, .rp-box dd { padding: 5px 8px; border-top: 1px solid #e6eee9; margin: 0; min-height: 26px; }
.rp-box dt { background: #f3f8f5; font-weight: 600; white-space: nowrap; }
.rp-box dd { white-space: pre-wrap; }
.rp-t { width: 100%; border-collapse: collapse; }
.rp-t th, .rp-t td { padding: 3.5px 8px; border-top: 1px solid #e6eee9; text-align: left; font-weight: 500; }
.rp-t th { background: #f8fbf9; width: 48%; }
.rp-t.score th { width: auto; }
.rp-t.score td { text-align: center; }
.rp-t thead th { background: #eef5f1; font-weight: 700; text-align: center; }
.rp-t .sum th, .rp-t .sum td { background: #eef5f1; font-weight: 800; }
.st i { font-style: normal; color: #d4dbd6; font-size: 14px; letter-spacing: -1px; }
.st i.on { color: #f5b400; }
em.pass { font-style: normal; color: var(--green); font-weight: 700; }
em.retry { font-style: normal; color: #e65100; font-weight: 700; }
.arrow-up { color: var(--green); font-weight: 900; font-size: 16px; }
.arrow-down { color: #e65100; font-weight: 900; font-size: 16px; }
.arrow-same { color: #78909c; font-weight: 900; font-size: 16px; }
.level-box { text-align: center; padding-bottom: 8px; }
.level-box p { margin: 6px 0 2px; color: var(--muted); font-size: 12px; }
.level-box .arrow { color: var(--green); margin: 2px 0; }
.verdicts { list-style: none; margin: 0; padding: 4px 8px; }
.verdicts li { display: grid; grid-template-columns: 20px 1fr; column-gap: 6px; padding: 4px 0; opacity: .55; }
.verdicts li.on { opacity: 1; }
.verdicts .box { grid-row: span 2; width: 18px; height: 18px; border: 2px solid var(--tag); border-radius: 4px; display: grid; place-items: center; color: var(--tag); font-weight: 900; font-size: 12px; }
.verdicts b { color: var(--tag); font-size: 12.5px; }
.verdicts small { font-size: 11px; color: var(--muted); }
.total-box { text-align: center; padding-bottom: 8px; }
.ring { --p: 0; width: 120px; height: 120px; margin: 10px auto 4px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #e8efeb 0); }
.ring > div { width: 94px; height: 94px; border-radius: 50%; background: #fff; display: grid; place-content: center; }
.ring b { font-size: 32px; line-height: 1.05; color: var(--ink); }
.ring small { font-size: 11px; color: var(--muted); }
.total-box .v { margin: 2px 0 0; font-weight: 900; }
.radar { width: 100%; max-width: 230px; display: block; margin: 0 auto; }
.radar .g { fill: none; stroke: #dfe8e3; stroke-width: 1; }
.radar .prev { fill: rgba(144, 164, 174, .25); stroke: #90a4ae; stroke-width: 1.5; }
.radar .now { fill: rgba(19, 122, 79, .28); stroke: var(--green-2); stroke-width: 2; }
.radar text { font-size: 10.5px; fill: #3d4c44; }
.legend { text-align: center; margin: 0 0 6px; font-size: 11.5px; color: var(--muted); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 8px; vertical-align: -1px; }
.lg.prev { background: #90a4ae; } .lg.now { background: var(--green-2); }
.memo { margin: 0; padding: 8px 10px; min-height: 60px; white-space: pre-wrap; line-height: 1.55; }
.memo.quote::before { content: '“ '; color: var(--sky); font-weight: 900; }
.memo.quote::after { content: ' ”'; color: var(--sky); font-weight: 900; }
ol.best { margin: 0; padding: 6px 10px 6px 28px; }
ol.best li { padding: 3px 0; min-height: 22px; }
.rp-foot { margin-top: 10px; padding-top: 8px; border-top: 2px solid var(--green); font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.rp-foot b { color: var(--green); }
.rp-foot span { margin-left: auto; color: #1550a8; font-weight: 700; }

@media (min-width: 720px) {
  .rp-row.r4 { grid-template-columns: 1.1fr 1.25fr .8fr 1fr; }
  .rp-row.r4b { grid-template-columns: .85fr 1fr 1.15fr 1fr; }
  .rp-row.r3 { grid-template-columns: repeat(3, 1fr); }
  .rp-row.r2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 719px) {
  .rp-head { grid-template-columns: 54px 1fr; }
  .rp-head img { width: 54px; }
  .rp-slogan { display: none; }
  .rp-row.r4, .rp-row.r4b { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .grid2 { grid-template-columns: 1fr; }
  .rp-row.r4, .rp-row.r4b { grid-template-columns: 1fr; }
  .stars button { font-size: 25px; padding: 3px 2px; }
}

/* ---------- PC (넓은 화면): 왼쪽 메뉴 + 넓은 본문 + 2단 ---------- */
@media (min-width: 1024px) {
  body { padding-bottom: 0; padding-left: 210px; }
  .top { padding: 10px 28px; margin-left: -210px; }
  .brand { font-size: 18px; }
  .brand img { width: 38px; height: 38px; }
  .tabbar { top: 58px; bottom: 0; right: auto; width: 210px; flex-direction: column; justify-content: flex-start; gap: 4px;
    border-top: 0; border-right: 1px solid var(--line); padding: 16px 12px; }
  .tabbar a { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
  .tabbar a span { font-size: 18px; width: 22px; text-align: center; }
  .tabbar a.on { background: var(--green-soft); }
  .tabbar a:hover { background: #f1f6f3; }
  main { max-width: 1200px; padding: 24px 32px 40px; }
  main:has(.report-page) { max-width: 1120px; }
  h1 { font-size: 26px; }
  .card { padding: 20px 22px; }

  .home-staff { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; grid-auto-flow: row dense; }
  .home-staff > .hello, .home-staff > label.inline, .home-staff > .quick { grid-column: 1 / -1; }
  .home-staff > .card, .home-staff > .quick { margin-top: 0 !important; }
  .home-staff > .students-card { grid-column: 1; grid-row: span 3; }
  .home-staff > .notice-mini, .home-staff > .recent-card { grid-column: 2; }
  .quick { grid-template-columns: repeat(auto-fill, minmax(240px, 280px)); }
  .students { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .students li + li { border-top: 0; }
  .students li { border-bottom: 1px solid var(--line); }
  .students a:hover, .list li > a:hover { background: #f6faf7; }

  .home-family { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .home-family > .hello { grid-column: 1 / -1; }
  .home-family > .card { margin-top: 0 !important; }

  .eval-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; padding-bottom: 90px; }
  .eval-form > .back, .eval-form > .full { grid-column: 1 / -1; }
  .eval-form > .card { margin-top: 0 !important; }
  .scorebar { left: 210px; right: 0; bottom: 0; max-width: none; border-radius: 0; padding: 12px 32px; }

  .attend { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .attend li + li { border-top: 0; }
  .attend li { border-bottom: 1px solid var(--line); }

  .lessons { grid-template-columns: 1fr 1fr; }
  #toast { bottom: 30px; }
}

@page { size: A4; margin: 8mm; }
@media print {
  body { background: #fff; padding: 0; }
  .top, .tabbar, .no-print, .warn, #toast { display: none !important; }
  main { max-width: none; padding: 0; }
  .report { box-shadow: none; padding: 0; font-size: 9.6px; }
  .rp-head h1 { font-size: 20px; }
  .rp-row { gap: 5px; margin-top: 5px; break-inside: avoid; }
  .rp-row.r4 { grid-template-columns: 1.1fr 1.25fr .8fr 1fr; }
  .rp-row.r4b { grid-template-columns: .85fr 1fr 1.15fr 1fr; }
  .rp-row.r3 { grid-template-columns: repeat(3, 1fr); }
  .rp-row.r2 { grid-template-columns: 1fr 1fr; }
  .rp-box h4 { font-size: 10px; padding: 3px 6px; }
  .rp-t th, .rp-t td, .rp-box dt, .rp-box dd { padding: 1.6px 6px; min-height: 0; }
  .st i { font-size: 10.5px; }
  .ring { width: 86px; height: 86px; margin: 6px auto 2px; } .ring > div { width: 66px; height: 66px; } .ring b { font-size: 22px; }
  .radar { max-width: 160px; }
  .memo { min-height: 30px; padding: 4px 6px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
