@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --ink: #16233f;
  --bg: #f1f3f7;
  --card: #ffffff;
  --line: #d7dde8;
  --line-soft: #eef1f6;
  --muted: #55607a;
  --soft: #e9edf4;
  --gold: #c9a24a;
  --gold-ink: #7a5a12;
  --ok-bg: #e3f3eb;
  --ok-ink: #155c3d;
  --wait-bg: #fbefd9;
  --wait-ink: #7a4e0d;
  --bad-bg: #f9e3e3;
  --bad-ink: #8c2a2a;
  --info-bg: #e2ecf8;
  --info-ink: #1b4b82;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: 'tnum';
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3, th, label, button, .sb { font-weight: 600; }
[hidden] { display: none !important; }

/* 머리말 */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 24px;
  background: var(--ink);
  color: #fff;
}
.topbar h1 { font-size: 18px; letter-spacing: -0.01em; }
.topbar .sub { font-size: 12px; color: #c6cde2; }
.topbar .right { display: flex; align-items: center; gap: 16px; }
.lockup { text-align: right; border-left: 2px solid var(--gold); padding-left: 12px; }
.lockup .a { font-size: 11px; font-weight: 600; color: #e6cf96; letter-spacing: 0.02em; }
.lockup .b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 20px 24px 48px; display: flex; flex-direction: column; gap: 16px; }

/* 버튼과 입력 */
button, .btn {
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}
button.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
button.small { min-height: 36px; padding: 0 12px; font-size: 13px; }
button.onDark { background: transparent; color: #fff; border-color: #47577b; }
button:disabled { opacity: 0.55; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #5b8def;
  outline-offset: 2px;
}

input, select, textarea {
  font: inherit;
  color: var(--ink);
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
textarea { min-height: 88px; resize: vertical; }
label { display: block; font-size: 13px; margin-bottom: 4px; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.field { display: flex; flex-direction: column; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

.check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; margin: 0; }
.check input { width: 18px; height: 18px; min-height: 0; padding: 0; }

/* 카드 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.msg { border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.msg.error { background: var(--bad-bg); color: var(--bad-ink); }
.msg.note { background: var(--info-bg); color: var(--info-ink); }

/* 로그인 */
.loginBox { max-width: 400px; margin: 8vh auto 0; display: flex; flex-direction: column; gap: 14px; }
.loginBox h2 { font-size: 20px; }

/* 도구 줄 */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.toolbar .left { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex: 1 1 320px; }
.toolbar input[type='search'] { max-width: 280px; }
.count { font-size: 13px; color: var(--muted); }

/* 숫자 타일 */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile .k { font-size: 13px; color: var(--muted); }
.tile.dark .k { color: #c6cde2; }
.tile .v { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }

/* 학생 목록 */
.list { display: flex; flex-direction: column; gap: 10px; }
.row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 1fr) minmax(220px, 1.4fr) auto;
  gap: 12px 16px;
  align-items: center;
}
.row.off { opacity: 0.6; }
.row .name { font-size: 16px; font-weight: 600; }
.row .meta { font-size: 13px; color: var(--muted); }
.row .phones { font-size: 14px; }
.row .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: var(--soft); color: #414a5b; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill.wait { background: var(--wait-bg); color: var(--wait-ink); }
.pill.bad { background: var(--bad-bg); color: var(--bad-ink); }
.pill.info { background: var(--info-bg); color: var(--info-ink); }

.empty { text-align: center; color: var(--muted); padding: 40px 16px; }

@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; }
  .row .actions { justify-content: flex-start; }
  .wrap { padding: 16px 16px 40px; }
  .topbar { padding: 14px 16px; }
}

/* 대화 상자 */
dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(560px, calc(100vw - 32px));
  color: var(--ink);
}
dialog::backdrop { background: rgba(22, 35, 63, 0.45); }
.dlg { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.dlg h2 { font-size: 18px; }
.dlg .foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.linkBox { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: var(--bg); border-radius: 10px; padding: 10px 12px; word-break: break-all; }

a.link { color: var(--info-ink); font-weight: 600; text-underline-offset: 3px; }
a.link:hover { color: var(--ink); }
input[type='file'] { padding: 9px 12px; }
.tableBox { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain th { position: sticky; top: 0; background: #f7f9fc; text-align: left; font-size: 12px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.plain td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.plain tr:last-child td { border-bottom: 0; }
table.plain td:nth-child(-n+3) { white-space: nowrap; }
table.plain .why { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.toolbar .buttons { display: flex; flex-wrap: wrap; gap: 8px; }

/* 알림 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  z-index: 10;
  max-width: calc(100vw - 32px);
}

/* 안내 화면(가운데 카드 하나) */
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.center .card { max-width: 420px; text-align: center; display: flex; flex-direction: column; gap: 8px; }

/* ───────── 학생 화면(휴대폰 기준) */
.srOnly { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.msg.gold { background: #fbf3df; border: 1px solid #e6cf96; color: #5c4208; font-size: 13px; }

body.student { background: var(--bg); }
.sPage { max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; background: var(--bg); }
.sHead { background: var(--ink); color: #fff; padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.sTop { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sTop .season { font-size: 13px; color: #c6cde2; }
.sHead .lockup { padding-left: 10px; }
.sHead .lockup .b { font-size: 14px; }
.sHead h1 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.35; word-break: keep-all; }
.sHead .sSub { font-size: 13px; color: #c6cde2; margin-top: 6px; word-break: keep-all; }
#head:empty { display: none; }

.progress { display: flex; gap: 4px; margin-top: 14px; }
.progress span { flex: 1; height: 8px; border-radius: 4px; background: #34446e; }
.progress span.on { background: #35c7a5; }

.sMain { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sNote { display: flex; flex-direction: column; gap: 8px; word-break: keep-all; }
.sNote button { margin-top: 6px; }
.sFoot { margin-top: auto; padding-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }

.sForm { display: flex; flex-direction: column; gap: 14px; }
.sForm input[type='tel'] { font-size: 18px; min-height: 52px; letter-spacing: 0.02em; }
.sForm button[type='submit'] { min-height: 52px; font-size: 16px; }
.sForm .field .hint { margin-top: 6px; }
.check.big { align-items: flex-start; font-size: 15px; font-weight: 600; min-height: 44px; padding: 10px 0; cursor: pointer; }
.check.big input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; }

details.consent { border: 1px solid var(--line); border-radius: 10px; background: #f7f9fc; }
details.consent summary { cursor: pointer; padding: 12px 14px; font-size: 14px; font-weight: 600; min-height: 44px; }
details.consent dl { margin: 0; padding: 0 14px 14px; font-size: 13px; }
details.consent dt { font-weight: 600; margin-top: 10px; }
details.consent dd { margin: 2px 0 0; color: var(--muted); word-break: keep-all; }

.tasks { display: flex; flex-direction: column; gap: 10px; }
.task { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 12px; min-height: 72px; color: inherit; text-decoration: none; }
.task.next { border: 2px solid var(--ink); padding: 13px 15px; }
.task .mark { width: 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.task .mark.next { background: var(--ink); color: #fff; }
.task .mark.done { background: var(--ok-bg); color: var(--ok-ink); font-size: 16px; }
.task .body { flex: 1; min-width: 0; }
.task .title { display: block; font-weight: 600; }
.task .text { display: block; font-size: 13px; color: var(--muted); word-break: keep-all; }
.task .text.bad { color: var(--bad-ink); }
.task .go { font-size: 13px; font-weight: 600; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; white-space: nowrap; }
.task .go.primary { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ───────── 관리 화면: 탭과 성적 확인 */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tabs .tab { background: transparent; color: var(--muted); border-color: transparent; display: inline-flex; align-items: center; gap: 6px; }
.tabs .tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge { font-size: 12px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #c9412f; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.secTitle { font-size: 15px; margin-top: 6px; }
.msg.ok { background: var(--ok-bg); color: var(--ok-ink); }
.msg.wait { background: var(--wait-bg); color: var(--wait-ink); }

.scoreCard { display: flex; flex-direction: column; gap: 10px; }
.scoreHead { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.scoreHead .name { font-size: 16px; font-weight: 600; }
.scoreHead .meta { font-size: 13px; color: var(--muted); }
.scoreHead .actions { display: flex; gap: 8px; }
.tableBox.flat { max-height: none; margin-top: 0; }
table.scores th[scope='row'] { position: static; background: transparent; font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
table.scores td.chg { background: var(--wait-bg); }
table.scores .was { display: block; font-size: 12px; color: var(--wait-ink); }
table.plain td.wrap { white-space: normal; min-width: 260px; }

/* ───────── 학생 화면: 입력 화면 공통 */
.sHead .back { color: #c6cde2; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.sHead .back + h1 { margin-top: 4px; }
.seg { display: flex; gap: 4px; background: var(--soft); border-radius: 12px; padding: 4px; }
.seg button { flex: 1; background: transparent; color: var(--muted); border-color: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: #fff; color: var(--ink); border-color: var(--line); }
.seg .dot { width: 6px; height: 6px; border-radius: 50%; background: #2c9b6f; }

.scoreForm { gap: 10px; }
.area { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.area h2 { font-size: 16px; }
.area .nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
.area input, .area select { font-size: 16px; min-height: 48px; }
.area .sum { margin: 0; }
.scoreForm button[type='submit'] { margin-top: 4px; }

/* ───────── 관리 화면: 상담 일정 */
.setCard { display: flex; flex-direction: column; gap: 10px; }
.setRow { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.setRow.end { justify-content: space-between; }
.setRow > .sb { min-width: 190px; font-size: 14px; }
.dows { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.dows legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 6px; }
.dayCard { display: flex; flex-direction: column; padding: 14px 16px 6px; }
.dayCard h3 { font-size: 15px; padding-bottom: 8px; }
.slotRow { display: grid; grid-template-columns: 120px 96px minmax(160px, 1fr) auto; gap: 8px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.slotRow .time { font-weight: 600; font-size: 15px; }
.slotRow .meta { font-size: 13px; color: var(--muted); }
.slotRow .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 860px) {
  .slotRow { grid-template-columns: 1fr auto; }
  .slotRow .actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ───────── 학생 화면: 상담 일정 신청 */
.kindTitle { font-size: 16px; margin-top: 6px; }
.hint.left { margin: 2px 2px 0; }
.daySlots { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.daySlots h3 { font-size: 15px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.times button { min-height: 52px; font-size: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; padding: 4px 8px; }
.times button .full { font-size: 11px; font-weight: 600; }
.card.booked { display: flex; align-items: center; gap: 14px; border-color: #b9dcc9; background: #f4fbf7; }
.card.booked .mark { width: 36px; height: 36px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-ink); display: flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }
.card.booked .when { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.btnLink { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.setRow input.short { width: 76px; min-height: 36px; padding: 4px 8px; }

/* 되돌릴 수 없는 일을 하는 버튼 */
button.danger { color: var(--bad-ink); border-color: #e3b9b9; background: #fff; }
.dlg .foot .left { margin-right: auto; }

/* ───────── 사전조사서 */
.q { display: flex; flex-direction: column; gap: 8px; }
.q + .q, .q + .field, .field + .q { margin-top: 6px; }
.qTitle { font-weight: 600; }
.req { font-size: 12px; font-weight: 600; color: var(--bad-ink); }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice, .chip { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 400; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.choice { min-height: 48px; padding: 8px 12px; }
.choice input, .chip input { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; }
.choice:has(input:checked), .chip:has(input:checked) { border-color: var(--ink); background: #f3f5fa; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 6px 12px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale label { margin: 0; position: relative; }
.scale input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; cursor: pointer; }
.scale span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px; font-weight: 600; }
.scale input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.scale input:focus-visible + span { outline: 2px solid #5b8def; outline-offset: 2px; }
.scaleBox .ends { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.scaleBox .ends span:last-child { text-align: right; }
.wishes { display: flex; flex-direction: column; gap: 8px; }
.wish { display: grid; grid-template-columns: 22px 1fr 1fr; gap: 8px; align-items: center; }
.wish .no { font-weight: 600; color: var(--muted); text-align: center; }
.btnRow { display: flex; gap: 8px; }
.btnRow button { flex: 1; min-height: 52px; font-size: 16px; }
.area textarea { font-size: 16px; }

button.pill.asLink { min-height: 0; border: 0; padding: 2px 10px; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
dl.answers { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 14px; max-height: 60vh; overflow: auto; }
dl.answers dt { font-weight: 600; color: var(--muted); }
dl.answers dd { margin: 0; white-space: pre-line; word-break: keep-all; }
dl.answers dd.none { color: #9aa3b5; }
@media (max-width: 560px) { dl.answers { grid-template-columns: 1fr; gap: 2px 0; } dl.answers dd { margin-bottom: 8px; } }

/* 사전조사서: 제출한 판 고르기와 달라진 곳 */
.verNav { display: flex; flex-wrap: wrap; gap: 6px; }
.verNav button { min-height: 40px; padding: 4px 12px; background: #fff; color: var(--ink); border-color: var(--line); display: flex; flex-direction: column; align-items: center; line-height: 1.2; font-size: 14px; }
.verNav button .at { font-size: 11px; font-weight: 400; color: var(--muted); }
.verNav button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.verNav button.on .at { color: #c6cde2; }
dl.answers dt .pill { margin-left: 6px; }
dl.answers dd.chg { background: var(--wait-bg); border-radius: 8px; padding: 4px 8px; }
dl.answers dd .was { display: block; font-size: 12px; color: var(--wait-ink); margin-top: 2px; }
.setRow input[type='datetime-local'] { width: auto; min-height: 36px; padding: 4px 8px; }
form.scoreForm :disabled { opacity: 0.75; }

/* 일정 변경 마감 표시 */
.card.booked .limit { margin-top: 6px; font-size: 13px; font-weight: 600; color: #5c4208; background: #fbf3df; border: 1px solid #e6cf96; border-radius: 8px; padding: 4px 8px; display: inline-block; }
.card.booked .limit.past { color: var(--muted); background: var(--soft); border-color: var(--line); }
.task .text.sub { font-weight: 600; color: #5c4208; }

/* 상담 신청 시작 시각 */
.kindRows { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 280px; }
.kindRow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.kindRow .check { min-width: 104px; }
.kindRow input[type='datetime-local'] { width: auto; min-height: 36px; padding: 4px 8px; }
.card.opens { display: flex; flex-direction: column; gap: 6px; border-color: #e6cf96; background: #fffaf0; }
.card.opens .when { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.card.opens .need { margin-top: 8px; }

/* 개인정보 안내문: 펼쳐 놓고 보여 줄 때 */
.consent.open { border: 1px solid var(--line); border-radius: 10px; background: #f7f9fc; }
.consent.open dl { margin: 0; padding: 4px 14px 14px; font-size: 13px; }
.consent.open dt { font-weight: 600; margin-top: 10px; }
.consent.open dd { margin: 2px 0 0; color: var(--muted); word-break: keep-all; white-space: pre-line; }
details.consent dd { white-space: pre-line; }
.sFoot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* 관리 화면: 개인정보 안내문 고치기 */
.pvForm { display: flex; flex-direction: column; gap: 14px; }
.pvForm .lab { font-size: 13px; font-weight: 600; margin-right: 8px; }
.pvRows { display: flex; flex-direction: column; gap: 10px; }
.pvRow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px; background: #fafbfd; }
.pvFields { display: flex; flex-direction: column; gap: 6px; }
.pvFields input { font-weight: 600; }
.pvTools { display: flex; gap: 6px; }
.pvSave { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.pvSave .check { align-items: flex-start; max-width: 720px; }
.hint.block { display: block; }
@media (max-width: 640px) { .pvRow { grid-template-columns: 1fr; } }

/* 장부 상태 안내 */
.ledgerWarn { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ledgerWarn ul { margin: 0; padding-left: 18px; }
.ledgerWarn code, .ledgerFoot code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.ledgerFoot { margin-top: 18px; text-align: right; }
.ledgerFoot button { min-height: 28px; padding: 2px 10px; font-size: 12px; }

/* ───────── 성적표 사진 */
.photoBox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.photoBox img { display: block; width: 100%; height: auto; border-radius: 8px; }
.sList { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.scoreBody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.photoSide { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.photoSide.none { font-size: 13px; color: var(--muted); }
.photoSide img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.photoCap { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .scoreBody:has(.photoSide img) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
dialog.wide { width: min(760px, calc(100vw - 32px)); }
.photoFrame { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.photoFrame img { display: block; width: 100%; height: auto; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
a.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
