/* 채점하기 — 사진으로 · 틀린 번호만 · O/X 표 · 학생 입력 (답 체크 칸 10-04) */
.gtabs { display: flex; gap: 6px; margin: 4px 0 14px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.gtabs::-webkit-scrollbar { display: none; }
.gtabs button { flex: 1 0 auto; font: inherit; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--text-3); cursor: pointer; white-space: nowrap; }
.gtabs button.on { background: var(--brand); color: #fff; box-shadow: var(--sh-1, 0 1px 3px rgba(0,0,0,.12)); }
.gtabs button.on .ic { background: #fff; }
.gtabs button:disabled { opacity: .45; cursor: default; }
.ph-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; justify-content: space-between; }
.ph-top > div:first-child { flex: 1 1 280px; min-width: 0; }
.ph-top label.btn { cursor: pointer; }
.cam { position: relative; margin: 12px 0; border-radius: 14px; overflow: hidden; background: #000; max-width: 640px; }
.cam video { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; }
.cam canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; object-fit: contain; }
.cam-msg { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(0,0,0,.66); color: #fff; font-size: 14px; font-weight: 600; text-align: center; }
.cam-msg.ok { background: rgba(15,138,95,.86); }
.cam-msg.big { font-size: 17px; }
.ph-warn { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: #FFF4E5; border: 1px solid #F5C77E; color: #7A4A00; }
.ph-warn div { display: grid; gap: 3px; } .ph-warn span { font-size: 13.5px; }
.ph-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 8px; }
.ph-sum .wait { font-size: 13px; font-weight: 700; color: #B45309; background: #FFFBEB; border: 1px solid #FCD34D; border-radius: 99px; padding: 2px 10px; }
.ph-list { display: grid; gap: 8px; }
.ph-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.ph-row.need { border-color: #FCD34D; background: #FFFBEB; }
.ph-row.saved { opacity: .78; }
.ph-th { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; background: #ddd; cursor: zoom-in; }
.ph-m { min-width: 0; display: grid; gap: 3px; }
.ph-m > b { font-size: 16px; }
.ph-need { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #B45309; }
.ph-need select { font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 8px; border: 1.5px solid #F59E0B; background: #fff; color: #111; max-width: 100%; }
.ph-sc { font-size: 14px; color: var(--text-2, #4A5578); overflow-wrap: anywhere; } .ph-sc b { color: var(--text); font-size: 15px; } .ph-sc em { font-style: normal; font-weight: 700; color: #B45309; }
.ph-tags { display: flex; flex-wrap: wrap; gap: 4px; } .ph-tags span { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: #FDECEC; color: #B42318; }
.ph-tags span.soft { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--line); } .ph-tags span.ok { background: var(--ok-soft); color: var(--ok); }
.ph-b { display: flex; flex-direction: column; gap: 6px; }
.ph-fix { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 12px; align-items: start; }
.ph-fix > img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.ph-fix .pad { margin-top: 0; }
.ph-empty { margin: 14px 0; }
.ph-left { margin-top: 16px; } .ph-left h4 { margin: 0 0 8px; font-size: 14.5px; }
.stu-chips button.abs { border-color: #CBD2E0; background: #EEF0F5; color: var(--text-3); } .stu-chips button.abs small { color: #8891A7; }
.save-bar .ghost-w { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
/* O/X 표 */
.oxwrap { overflow-x: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.oxt { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.oxt th, .oxt td { border-bottom: 1px solid var(--line); padding: 0; text-align: center; white-space: nowrap; }
.oxt thead th { background: var(--surface-2); padding: 6px 4px; font-size: 12px; color: var(--text-3); position: sticky; top: 0; }
.oxt tbody th { position: sticky; left: 0; background: var(--surface, #fff); text-align: left; padding: 6px 10px; font-weight: 700; z-index: 1; }
.oxt tr.ed th { color: var(--brand); }
.oxt .ox { font: inherit; font-weight: 800; width: 34px; height: 34px; border: 0; background: transparent; color: var(--text-3); cursor: pointer; }
.oxt .ox.o { color: var(--ok); } .oxt .ox.x { color: #fff; background: #D93036; } .oxt .ox.w { background: #FFFBEB; color: #B45309; }
.oxt td.abs { color: var(--text-3); font-size: 12.5px; text-align: left; padding: 0 10px; } .oxt td.sc { padding: 0 10px; font-weight: 700; }
/* 이름 초성표 */
.ini-wrap { max-height: 56vh; overflow: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; }
.ini-t { border-collapse: collapse; width: 100%; font-size: 14px; } .ini-t th, .ini-t td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.ini-t th { background: var(--surface-2); font-size: 12.5px; color: var(--text-3); position: sticky; top: 0; }
.ini-t td.ini span { display: inline-block; width: 24px; font-weight: 800; font-size: 16px; color: var(--brand); }
.ini-t td.tg b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; } .ini-t td.tg small { color: var(--text-3); }
.fd-row.abs { opacity: .7; } .fd-row.abs .sc { color: var(--text-3); }
@media (max-width: 600px) {
  .gtabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  .gtabs button { flex-direction: column; padding: 8px 2px; font-size: 12.5px; gap: 3px; white-space: normal; line-height: 1.2; }
  .ph-row { grid-template-columns: 52px minmax(0, 1fr); }
  .ph-th { width: 52px; height: 70px; }
  .ph-b { grid-column: 1 / -1; flex-direction: row; }
  .ph-fix { grid-template-columns: 1fr; }
  .ph-fix > img { max-width: 260px; }
}
/* 10-08 명단 밖 학생(입학 테스트 · 반 없는 시험): 읽자마자 저장 + 평가지 · 오답노트 · 이름 넣기 · 명단 학생 고르기 */
.ph-row.out { border-color: #FCD34D; background: #FFFBEB; }
.ph-row.saved.out, .ph-row.saved:has(.ph-out) { opacity: 1; }
.ph-outtag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-size: 12px; font-weight: 700; vertical-align: middle; }
.ph-out { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.ph-out select { font: inherit; font-size: 14px; min-height: 34px; padding: 4px 8px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; color: #111; max-width: 100%; }
.gx-out { display: grid; gap: 8px; } .gx-out-r { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border: 1px solid #FCD34D; background: #FFFBEB; border-radius: 12px; } .gx-out-r b { font-size: 15px; } .gx-out-r .sc { color: var(--text-2); font-size: 13px; }
@media (max-width: 600px) {
  .ph-out .btn { flex: 1 1 auto; justify-content: center; } .ph-out select { flex: 1 1 100%; }
}
