/* 10-12 선생님 「오늘」 · 출결 · 반 화면 · 관리부 · 수락 (js/teach.js) + 홈 게시판 느낌(촘촘한 줄 목록)
   원장님 10-09 밤: 「지점 현황」 · 「오늘 볼 시험지」가 공간을 너무 차지 → 반 하나 = 한 줄(40~48px), 얇은 구분선, 그림자 · 큰 여백 없음. 휴대폰은 두 줄까지. */

/* ── 게시판 줄 (공용) ── */
.tc-board { margin: 0 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tc-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 34px; padding: 4px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tc-h h2 { margin: 0; font-size: 13.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.tc-h h2 small { font-weight: 600; color: var(--text-3); font-size: 12px; }
.tc-h > small { font-size: 12px; color: var(--text-3); }
.tc-h .tc-more { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; }
.tc-h-act { margin-left: auto; display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tc-row { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 12px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13.5px; position: relative; }
.tc-h + .tc-row, .tc-board > .tc-row:first-child { border-top: 0; }
a.tc-row:hover { background: var(--surface-2); }
.tc-row > b, .tc-name b { white-space: nowrap; font-weight: 700; }
.tc-name { text-decoration: none; color: var(--text); flex: none; max-width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.tc-name { border: 0; background: none; font: inherit; cursor: pointer; padding: 0; }
.tc-meta { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-meta em { font-style: normal; font-weight: 800; color: var(--text); }
.tc-meta .ok, .tc-card-g .ok { color: var(--ok); } .bad { color: var(--bad) !important; } .warn { color: #B45309; }
.tc-act { flex: none; display: inline-flex; gap: 5px; }
.tc-go { flex: none; font-size: 12px; color: var(--brand); font-weight: 700; display: inline-flex; align-items: center; }
.tc-bar { position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 0 3px 3px 0; background: var(--cc, var(--brand)); }
.tc-row.late { background: color-mix(in srgb, var(--bad) 6%, transparent); }
.tc-row.late .tc-bar { background: var(--bad); }
.tc-row.other { opacity: .78; }
.tc-sub { font-size: 11.5px; font-weight: 700; color: var(--text-3); padding: 6px 12px 2px; border-top: 1px solid var(--line); }
.tc-empty { color: var(--text-3); justify-content: space-between; }
.tc-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.tc-dot.bad { background: var(--bad); } .tc-dot.warn { background: #F59E0B; } .tc-dot.muted { background: var(--line-strong); }
.tc-wait { color: #B45309; font-weight: 700; }
.tc-slot { border: 1px dashed var(--line-strong); background: none; color: var(--brand); font: inherit; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 6px; cursor: pointer; }
.tc-load { padding: 10px 12px; font-size: 13px; color: var(--text-3); }
.tc-load.bad { color: var(--bad); }
.tc-pad { padding: 0 4px; }
.btn.xs { padding: 4px 9px; font-size: 12px; min-height: 28px; border-radius: 7px; }
.tc-ownbtn { display: inline-flex; align-items: center; gap: 5px; margin: 0 6px 8px 0; padding: 6px 12px; border: 1px solid var(--brand-line); border-radius: 999px; background: var(--surface); color: var(--brand); font-size: 13px; font-weight: 700; text-decoration: none; }
.tc-ownbtn:hover { background: var(--brand-soft); }
.tc-page .tc-board { max-width: 1100px; }

/* 칩 (확정 전 = 노란 테두리, 글자 검정 · 퇴원 처리 중 = 회색 · B 4절) */
.tc-chip { flex: none; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1.5px solid #F59E0B; color: var(--text); background: var(--surface); cursor: pointer; white-space: nowrap; }
.tc-chip.leave, .tc-chip.move_out, .tc-chip.paused, .tc-chip.pause { border-color: var(--line-strong); color: var(--text-3); }
.tc-chip.resume, .tc-chip.move_in, .tc-chip.move { border-color: #F59E0B; }

/* ── 반 화면 ── */
.tc-rh { position: relative; display: flex; align-items: center; gap: 12px; padding: 4px 0 6px 12px; }
.tc-rh .tc-bar { top: 4px; bottom: 8px; }
.tc-rh h1 { margin: 0; font-size: 20px; }
.tc-rh p { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }
.tc-rh-act { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.tc-view { margin: 4px 0; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-size: 12.5px; color: var(--text-2); }
.tc-hint { margin: 2px 0 6px; font-size: 12.5px; color: var(--text-3); }
.tc-tabs { display: flex; gap: 4px; margin: 6px 0 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tc-tabs a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; font-size: 14px; font-weight: 700; color: var(--text-2); text-decoration: none; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tc-tabs a.on { color: var(--brand); border-color: var(--brand); }
.tc-sec-t { margin: 14px 0 6px; font-size: 13.5px; font-weight: 800; }

/* 출석판 */
.tc-att { margin: 0 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tc-att-rows { display: grid; }
.tc-ar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 48px; padding: 4px 12px; border-top: 1px solid var(--line); }
.tc-att-rows .tc-ar:first-child { border-top: 0; }
.tc-no { flex: none; width: 20px; color: var(--text-3); font-size: 12px; text-align: right; }
.tc-nm { flex: 0 1 220px; min-width: 0; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.tc-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; flex: none; }
.tc-seg button { border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 700; min-width: 52px; min-height: 40px; padding: 0 10px; cursor: pointer; }
.tc-seg button:first-child { border-left: 0; }
.tc-seg button.on { background: var(--brand); color: var(--on-brand); }
.tc-seg button.on.dim { background: var(--ok-soft); color: var(--ok); }
.tc-ar.set-absent .tc-seg button.on { background: var(--bad); color: #fff; }
.tc-ar.set-late .tc-seg button.on, .tc-ar.set-early .tc-seg button.on { background: #D97706; color: #fff; }
.tc-ar.set-absent { background: color-mix(in srgb, var(--bad) 5%, transparent); }
.tc-seg.wide { display: flex; } .tc-seg.wide label { flex: 1; text-align: center; padding: 8px; border-left: 1px solid var(--line); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.tc-seg.wide label:first-child { border-left: 0; } .tc-seg.wide input { margin-right: 4px; }
.tc-min, .tc-why { height: 34px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13.5px; background: var(--surface); color: var(--text); }
.tc-why { flex: 1 1 140px; min-width: 120px; }
.tc-undo { border: 0; background: var(--text); color: var(--surface); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.tc-note { color: var(--bad); font-size: 11.5px; }
.tc-done { margin: 8px 12px 12px; width: calc(100% - 24px); }
.tc-abs .tc-ar { min-height: 44px; }
.tc-sent { color: var(--ok); font-weight: 700; }
.tc-tplv { margin: 6px 12px 10px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; font-size: 13px; color: var(--text-2); white-space: pre-wrap; }
.tc-abs .row-btns { padding: 0 12px; }

/* 학생 카드 · 폼 */
.tc-card-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tc-card-g section { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.tc-card-g h3 { margin: 0 0 4px; font-size: 13.5px; }
.tc-card-g p { margin: 0 0 4px; font-size: 13px; }
.tc-dots { display: flex; gap: 3px; flex-wrap: wrap; }
.tc-dots i { width: 12px; height: 12px; border-radius: 3px; background: var(--ok); }
.tc-dots i.d-absent { background: var(--bad); } .tc-dots i.d-late, .tc-dots i.d-early { background: #F59E0B; } .tc-dots i.d-makeup { background: var(--brand); }
.tc-sc { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.tc-sc li { display: flex; justify-content: space-between; gap: 6px; padding: 2px 0; border-top: 1px dashed var(--line); }
.tc-sc li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 6px 0 10px; counter-reset: s; }
.tc-steps li { flex: 1; text-align: center; font-size: 12px; color: var(--text-3); padding: 6px 2px; border-bottom: 3px solid var(--line); }
.tc-steps li.did { color: var(--text-2); border-color: var(--ok); }
.tc-steps li.now { color: var(--text); font-weight: 800; border-color: #F59E0B; }
.tc-log { list-style: none; padding: 0; margin: 0 0 8px; font-size: 12.5px; color: var(--text-2); }
.tc-log li { padding: 2px 0; }
.tc-backnote { margin: 4px 0 8px; padding: 6px 10px; border-radius: 8px; background: #FEF3C7; color: #78350F; font-size: 13px; }
.tc-form-v { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin: 6px 0; font-size: 13px; }
.tc-form-v p { margin: 3px 0; } .tc-memo { white-space: pre-wrap; background: var(--surface-2); padding: 6px 8px; border-radius: 6px; }
.tc-f .field { margin-bottom: 10px; }
.tc-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-chips.col { flex-direction: column; }
.tc-chips label { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; cursor: pointer; }
.tc-chips label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.tc-ck { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.tc-bad { outline: 2px solid var(--bad); outline-offset: 2px; border-radius: 8px; }
.req { color: var(--bad); }
.tc-slots { display: grid; gap: 6px; }
.tc-sl { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; }
.tc-sl b { width: 20px; } .tc-sl input[type=time] { height: 34px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 6px; font: inherit; background: var(--surface); color: var(--text); }
.tc-d summary { cursor: pointer; font-size: 13px; font-weight: 700; margin: 6px 0; }
.tc-d textarea { width: 100%; margin-top: 6px; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 8px; font: inherit; background: var(--surface); color: var(--text); }

/* 관리부 · 수락 */
.tc-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 8px; }
.tc-nums a { display: flex; align-items: baseline; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--text); }
.tc-nums b { font-size: 20px; } .tc-nums small { font-size: 12px; color: var(--text-3); }
.tc-brsel { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.tc-brsel button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.tc-brsel button.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.tc-absr.fixed { opacity: .55; } .tc-absr.fixed b { text-decoration: line-through; }
.tc-acc-top { margin: 0 0 8px; font-size: 14px; }
.tc-acc-bar { position: sticky; bottom: 8px; z-index: 5; display: flex; justify-content: center; padding: 6px 0; }
.tc-acc-bar .btn { min-width: 220px; box-shadow: var(--sh-2); }
.tc-pick { flex: none; width: 18px; height: 18px; }

/* ── 홈 「만들기」 4칸: 카메라 채점 = 주황 ── */
.hmk.hmk-kc { --m0: #C2410C; --m1: #EA580C; --m2: #FDBA74; }

/* ── 홈 게시판 느낌: 지점 현황 · 오늘 볼 시험지를 한 줄씩, 칸 사이 여백 줄임 (.home-v2 일 때) ── */
.home-v2 .hhello h1 { margin-bottom: 2px; }
.home-v2 .hquick-t { margin: 14px 0 6px; }
.home-v2 .hmake .hquick-t { margin-top: 12px; }
.home-v2 .hmk-g { gap: 10px; }
.home-v2 #tcHome { margin-top: 10px; }
.home-v2 .br-home { margin: 10px 0; padding: 0; border-radius: 10px; overflow: hidden; }
.home-v2 .brh-h { margin: 0; min-height: 34px; padding: 4px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.home-v2 .brh-h h2 { font-size: 13.5px; }
.home-v2 .brh-h small { font-size: 12px; }
.home-v2 .brh-grid { display: block; }
.home-v2 .brh-grid > .muted { padding: 8px 12px; }
.home-v2 .brh-card { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.home-v2 .brh-card:first-child { border-top: 0; }
.home-v2 .brh-card:hover { background: var(--surface-2); }
.home-v2 .brh-card > b { font-size: 13.5px; flex: none; min-width: 84px; }
.home-v2 .brh-card > small { margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-v2 .brh-card dl { display: flex; gap: 14px; margin: 0; flex: none; }
.home-v2 .brh-card dl div { display: flex; align-items: baseline; gap: 4px; }
.home-v2 .brh-card dt { font-size: 11.5px; } .home-v2 .brh-card dd { margin: 0; font-size: 14px; }
.home-v2 .brh-new { position: static; flex: none; font-size: 11px; padding: 1px 7px; }
.home-v2 #progBand .pg-band, .home-v2 .pg-band { margin: 10px 0; padding: 0; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.home-v2 .pg-band h2 { margin: 0; min-height: 34px; padding: 4px 12px; font-size: 13.5px; background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--text); }
.home-v2 .pg-band h2 small { font-size: 12px; }
.home-v2 .pg-band h2 .ic { width: 16px; height: 16px; }
.home-v2 .pg-rows { gap: 0; }
.home-v2 .pg-row { min-height: 42px; padding: 4px 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.home-v2 .pg-row:first-child { border-top: 0; }
.home-v2 .pg-go { display: flex; align-items: center; gap: 10px; min-width: 0; }
.home-v2 .pg-go b { font-size: 13.5px; flex: none; white-space: nowrap; }
.home-v2 .pg-go span, .home-v2 .pg-go small { font-size: 12.5px; font-weight: 500; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-v2 .pg-go span { flex: none; max-width: 45%; } .home-v2 .pg-go small { flex: 1; min-width: 0; }
.home-v2 .pg-go span em { background: none; color: var(--text-2); padding: 0; }
.home-v2 .pg-row .btn { padding: 4px 9px; font-size: 12px; min-height: 28px; }
.home-v2 a.pg-band.empty-band { padding: 8px 12px; font-size: 13px; }
.home-v2 .hnews { margin-top: 16px; }

@media (max-width: 760px) {
  .tc-row { flex-wrap: wrap; row-gap: 2px; padding: 6px 12px; }
  .tc-name { max-width: 60%; }
  .tc-row .tc-meta { order: 3; flex-basis: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .tc-row .tc-act, .tc-row .tc-go { margin-left: auto; }
  .tc-card-g { grid-template-columns: 1fr; }
  .tc-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-f2 { grid-template-columns: 1fr; }
  .tc-seg button { min-width: 46px; padding: 0 8px; font-size: 13px; }
  .tc-nm { flex-basis: 100%; }
  .tc-tabs { position: sticky; top: var(--top-h, 56px); z-index: 4; background: var(--bg); }
  .home-v2 .brh-card { flex-wrap: wrap; row-gap: 0; padding: 6px 12px; }
  .home-v2 .brh-card > small { order: 3; flex-basis: 100%; }
  .home-v2 .pg-go { flex-wrap: wrap; row-gap: 0; }
  .home-v2 .pg-go span { max-width: none; }
  .home-v2 .pg-go small { flex-basis: 100%; }
}
/* 오늘 반 추정 · 공지 */
.tc-guess { flex: none; font-style: normal; font-size: 11px; font-weight: 700; color: var(--text-2); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 0 7px; white-space: nowrap; }
.tc-imp { flex: none; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--bad); border-radius: 999px; padding: 1px 7px; }
.tc-nt { cursor: pointer; }
.tc-nt .tc-name { font-weight: 500; } .tc-nt .tc-name b { font-weight: 500; }
.tc-nt.unread .tc-name { font-weight: 800; color: var(--text); }
.tc-nt:not(.unread) .tc-name { color: var(--text-2); }
.tc-nt:hover { background: var(--surface-2); }
.tc-nbody { margin: 8px 0 12px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; font-size: 14px; line-height: 1.6; white-space: normal; }
/* ── 10-10 선생님 첫 화면 A안 (시안 docs/teacher_home_v2 그대로 · 접두어 th2-) ── */
.main.th2 { max-width: calc(1280px + 64px); padding-top: 20px; }
/* 제목 줄 32px */
.th2-title { display: flex; align-items: baseline; gap: 10px; min-height: 32px; margin: 0 0 12px; }
.th2-title h1 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.th2-title span { font-size: 13.5px; color: var(--text-3); font-weight: 600; }
/* 만들기 5칸 56px */
.th2-make { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.th2-mk { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.th2-mk:hover { border-color: var(--brand-line); background: var(--brand-soft); text-decoration: none; }
.th2-mk .mi { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.th2-mk .mi .ic { width: 18px; height: 18px; }
.th2-mk.k1 .mi { background: #EAF0FF; color: #1A5CFF; }
.th2-mk.k2 .mi { background: #F2EBFF; color: #6D3AC9; }
.th2-mk.k3 .mi { background: #E6F5F3; color: #0B7A7B; }
.th2-mk.k4 .mi { background: #FFF0E4; color: #C0530A; }
.th2-mk.k5 .mi { background: #E8F6EE; color: #1B7A43; }
/* 두 칸 */
.th2-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.th2-seg { display: none; }
/* 보드 머리 숫자 */
.tc-h h2 .n { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--mute-soft); color: var(--text-2); font-size: 11.5px; font-weight: 800; }
/* 오늘 수업 줄 52px */
.th2-cls { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px 6px 16px; border-top: 1px solid var(--line); position: relative; color: var(--text); text-decoration: none; }
.th2-cls:first-of-type { border-top: 0; }
.th2-cls:hover { background: var(--surface-2); text-decoration: none; }
.th2-cls .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cc); }
.th2-cls .tm { width: 58px; flex: none; line-height: 1.2; }
.th2-cls .tm b { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.th2-cls .tm small { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.th2-cls .nm { flex: 1; min-width: 0; line-height: 1.3; }
.th2-cls .nm b { font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.th2-cls .nm small { font-size: 12.5px; color: var(--text-3); }
.th2-cls .nm small.bad { color: var(--bad); font-weight: 700; }
.th2-cls.now { background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.th2-now { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; vertical-align: 2px; }
.th2-steps { display: inline-flex; gap: 3px; flex: none; }
.th2-steps i { font-style: normal; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; border: 1.5px solid var(--line-strong); color: var(--text-3); }
.th2-steps i.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.th2-steps i.miss { border-color: var(--bad); color: var(--bad); }
.th2-act { width: 108px; flex: none; display: flex; justify-content: flex-end; }
.th2-act .btn { width: 100%; justify-content: center; }
.th2-act .done { font-size: 13px; color: var(--text-3); font-weight: 700; }
/* 내 할 일 · 공지 */
.th2-row { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 12px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13.5px; }
.th2-row:first-of-type { border-top: 0; }
.th2-row:hover { background: var(--surface-2); text-decoration: none; }
.th2-row b { white-space: nowrap; font-weight: 700; }
.th2-row .mt { flex: 1; min-width: 0; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th2-row .go { color: var(--brand); font-weight: 700; font-size: 12.5px; white-space: nowrap; display: inline-flex; align-items: center; }
.th2-row .dt { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.th2-row .dt.warn { background: #E8A100; }
.th2-row .dt.mute { background: var(--line-strong); }
.th2-row.mute .mt, .th2-row.mute b { color: var(--text-3); font-weight: 600; }
.th2-row.nt { min-height: 38px; }
.th2-tag { flex: none; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 4px; background: var(--mute-soft); color: var(--text-2); }
.th2-tag.ev { background: #FFF3DB; color: #9A5B00; }
.th2-tag.dc { background: #EAF0FF; color: #1A4FD6; }
.th2-row .when { font-size: 12px; color: var(--text-3); white-space: nowrap; }
/* 내 반 */
.th2-find { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.th2-find label { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text-3); font-size: 13.5px; }
.th2-cl { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 12px 4px 16px; border-top: 1px solid var(--line); position: relative; color: var(--text); text-decoration: none; font-size: 13.5px; }
.th2-find + .th2-cl { border-top: 0; }
.th2-cl:hover { background: var(--surface-2); text-decoration: none; }
.th2-cl .bar { position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; background: var(--cc); }
.th2-cl b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.th2-cl .dy { color: var(--text-3); font-size: 12.5px; white-space: nowrap; margin-left: auto; font-variant-numeric: tabular-nums; }
.th2-cl .pp { color: var(--text-3); font-size: 12.5px; width: 34px; text-align: right; flex: none; }
.th2-cl .td { font-size: 11px; font-weight: 800; color: var(--brand); border: 1px solid var(--brand-line); border-radius: 4px; padding: 0 5px; flex: none; }
.th2-cl .rd { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); flex: none; }
.th2-cl .rs { font-size: 12px; color: var(--bad); font-weight: 700; white-space: nowrap; }
.th2-foot { display: flex; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface-2); }
/* 상단 바 */
.th2-qr { display: inline-flex; align-items: center; gap: 6px; }
/* 사이드 */
.nav-pair { display: flex; align-items: center; gap: 4px; }
.nav-pair > a:first-child { flex: 1; }
.nav-cam { height: 28px !important; padding: 0 8px !important; border-radius: 999px !important; background: rgba(26,92,255,.28); color: #fff !important; font-size: 12px !important; font-weight: 700 !important; gap: 4px !important; }
/* ── 1919 이상: 오른쪽 칸 400px ── */
@media (min-width: 1700px) { .th2-cols { grid-template-columns: minmax(0, 1fr) 400px; } }
/* ── 패드 가로(1024) ── */
@media (max-width: 1180px) { .th2-cols { grid-template-columns: minmax(0, 1fr) 320px; } .th2-mk { padding: 0 10px; gap: 8px; font-size: 13.5px; } }
/* ── 패드 세로 · 휴대폰: 한 칸 + 두 갈래 단추 ── */
@media (max-width: 999px) {
  .th2-cols { grid-template-columns: minmax(0, 1fr); }
  .th2-seg { display: grid; grid-template-columns: 1fr 1fr; height: 40px; padding: 3px; margin: 0 0 12px; background: var(--mute-soft); border-radius: 10px; }
  .th2-seg button { border: 0; background: none; border-radius: 8px; font: 700 14px var(--font); color: var(--text-2); cursor: pointer; }
  .th2-seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }
  .th2-seg .n { color: var(--text-3); font-weight: 700; margin-left: 4px; }
  .th2-wrap[data-v="today"] .th2-right { display: none; }
  .th2-wrap[data-v="cls"] .th2-left { display: none; }
  .th2-right .tc-h { display: none; }
  .th2-mk .long { display: none; }
  .th2-mk { justify-content: center; }
}
@media (max-width: 760px) {
  .main.th2 { padding: 14px 16px calc(var(--tab-h) + 24px); }
  .th2-title { margin-bottom: 10px; flex-wrap: wrap; row-gap: 0; }
  .th2-title h1 { font-size: 18px; }
  .th2-title span { font-size: 12.5px; }
  .th2-make { gap: 6px; margin: 12px 0; }
  .th2-make.m { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .th2-mk { justify-content: center; gap: 8px; height: 52px; padding: 0 4px; font-size: 13.5px; font-weight: 700; }
  .th2-mk .mi { width: 28px; height: 28px; }
  .th2-mk .long { display: none; }
  .th2-cls { min-height: 64px; gap: 10px; padding: 8px 10px 8px 14px; align-items: center; }
  .th2-cls .tm { width: 46px; }
  .th2-cls .tm b { font-size: 14.5px; }
  .th2-cls .nm small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .th2-cls .nm .th2-steps { margin-top: 4px; }
  .th2-cls > .th2-steps { display: none; }
  .th2-cls .nm .th2-steps.m { display: inline-flex; }
  .th2-steps i { width: 20px; height: 20px; font-size: 11px; }
  .th2-act { width: 92px; }
  .th2-act .btn { height: 40px; }
  .th2-row { min-height: 48px; }
  .th2-row .mt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; }
  .th2-row .when { display: none; }
  .th2-cl { min-height: 48px; }
  .topbar .th2-qr span { display: none; }
}
.th2-cls .nm .th2-steps.m { display: none; }
@media (max-width: 760px) { .th2-cls .nm .th2-steps.m { display: inline-flex; } }
/* 휴대폰에서 만들기 줄 자리: 오늘 수업 다음 (PC 는 맨 위) */
.th2-make.m { display: none; }
@media (max-width: 760px) { .th2-make.pc { display: none; } .th2-make.m { display: grid; } }
/* 실제 화면에 맞춘 것 */
.th2-title .th2-sp { flex: 1; }
.th2-title { align-items: center; }
.th2-mk .short { display: none; }
@media (max-width: 999px) { .th2-mk .short { display: inline; } }
.th2-cls a.tm, .th2-cls a.nm { color: var(--text); text-decoration: none; }
.th2-cls .nm .tc-guess { margin-left: 6px; vertical-align: 2px; }
.th2-steps.pc { display: inline-flex; }
@media (max-width: 760px) { .th2-steps.pc { display: none; } }
.th2-tag.imp { background: var(--bad); color: #fff; }
.th2-row.nt.unread .tc-name { font-weight: 800; }
.th2-row.nt:not(.unread) .tc-name { font-weight: 500; color: var(--text-2); }
.th2-find input { border: 0; outline: 0; background: none; font: inherit; color: var(--text); flex: 1; min-width: 0; }
.keep-tg.mini { font-size: 11.5px; padding: 2px 8px; min-height: 0; }
.keep-tg.mini input { width: 13px; height: 13px; }
.tc-desk-top { display: flex; justify-content: flex-end; margin: 0 0 -6px; }
.th2 .tc-sub { border-top: 1px solid var(--line); }

/* 10-10 긴급 공지 띠 · 공지 등급 꼬리표 · 빠른 답 */
.th2-urgent:empty { display: none; }
.th2-urg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; padding: 8px 12px; border: 2px solid var(--bad); border-radius: 10px; background: color-mix(in srgb, var(--bad) 7%, var(--surface)); font-size: 13.5px; }
.th2-urg .mt { flex: 1; min-width: 200px; } .th2-urg small { color: var(--text-3); }
.th2-urg-act { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.th2-tag.urg { background: var(--bad); color: #fff; }
.tc-qr { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0 0 10px; }

/* 10-10 수업 시간 고르는 칸 (줄 아래로 펼침) */
.tc-time { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.tc-time em { font-style: normal; font-weight: 700; color: var(--text); }
.tc-slot.add { border-style: solid; background: var(--brand-soft); }
.ted-host { border-top: 1px dashed var(--line-strong); background: var(--surface-2); }
.ted { padding: 10px 12px 12px 16px; display: grid; gap: 8px; }
.ted-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ted-l { width: 44px; font-size: 12.5px; font-weight: 700; color: var(--text-2); flex: none; }
.ted-l2 { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.ted-days { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.ted-d { min-width: 40px; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ted-d.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.ted-hm { display: inline-flex; gap: 4px; }
.ted-hm select { height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 6px; font: inherit; font-size: 14px; background: var(--surface); color: var(--text); }
.ted-per { margin-left: auto; font-size: 12.5px; }
.ted-b { display: flex; gap: 6px; align-items: center; }
.ted-tt { margin-left: auto; }
@media (max-width: 760px) { .tc-time { order: 2; } .ted { padding: 10px; } .ted-l { width: 100%; } .ted-per { margin-left: 0; } }

/* 10-10 학습지 바로 지우기 · 되돌리기 띠 */
.ms-tr { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--text-3); cursor: pointer; flex: none; }
.ms-tr:hover { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.ms-undo { position: fixed; left: 50%; bottom: calc(var(--tab-h, 0px) + 18px); transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 10px 14px; border-radius: 10px; background: #10182A; color: #fff; font-size: 13.5px; box-shadow: var(--sh-3); }
.ms-undo button { border: 0; background: none; color: #9CC3FF; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }

/* 10-10 출석판 격자 · 반 불(파랑 = 출결 완료 · 빨강 = 아직 · 깜빡 = 시작 30분 지나도 미완료) */
.tc-light { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin: 0 2px; vertical-align: middle; }
.tc-light.blue { background: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.tc-light.gray { background: var(--line-strong); }
.tc-light.red { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 20%, transparent); }
.tc-light.blink { animation: tcBlink 1s ease-in-out infinite alternate; }
@keyframes tcBlink { from { opacity: 1; } to { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .tc-light.blink { animation: none; outline: 3px solid var(--bad); outline-offset: 2px; } }
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 6px; padding: 8px; }
.tc-cell { border: 1px solid var(--line); border-radius: 9px; padding: 6px 8px; background: var(--surface); display: grid; gap: 4px; min-width: 0; }
.tc-cell.set-absent { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 7%, var(--surface)); }
.tc-cell.set-late, .tc-cell.set-early { border-color: #D97706; background: color-mix(in srgb, #F59E0B 9%, var(--surface)); }
.tc-c-top { display: flex; align-items: center; gap: 5px; min-width: 0; }
.tc-c-top .tc-nm { flex: 1 1 auto; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tc-c-top .tc-no { width: auto; font-size: 11px; }
.tc-c-st { flex: none; font-size: 12px; font-weight: 700; color: var(--text-2); }
.tc-c-st .dim { color: var(--ok); opacity: .7; font-weight: 600; }
.tc-cell.set-absent .tc-c-st { color: var(--bad); } .tc-cell.set-late .tc-c-st, .tc-cell.set-early .tc-c-st { color: #B45309; }
.tc-c-btns { display: flex; gap: 4px; align-items: center; }
.tc-c-btns .sp { flex: 1; min-width: 10px; }
.tc-c-btns button { height: 28px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.tc-c-btns button.abs { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.tc-c-btns button.back { color: var(--ok); }
.tc-why-chips { display: flex; flex-wrap: wrap; gap: 3px; }
.tc-why-chips button { height: 24px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 11.5px; cursor: pointer; }
.tc-why-chips button.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.tc-why-chips .tc-why { height: 26px; min-width: 0; flex: 1 1 100%; font-size: 12.5px; }
@media (max-width: 760px) { .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px; } .tc-c-btns button { padding: 0 7px; } }
@media (max-width: 360px) { .tc-grid { grid-template-columns: 1fr; } }

/* 10-10 오늘 진도 학생 칸: 숙제 + 한 줄만, 출결 · 1일 테스트는 작은 글자 */
.pm-at { margin-left: 6px; font-size: 11.5px; font-weight: 700; color: #B45309; }
.pm-at.bad { color: var(--bad); } .pm-at.d1 { color: var(--text-3); font-weight: 600; }
.pm-ck.pm-ck1.off { opacity: .45; }
li.absent [data-sl] { opacity: .8; }

/* 10-10 시간 띠(timetable.js)가 채워지면 우리 「시간 넣기 · 고치기」 단추는 숨김 */
.tt-slot:empty { display: none; }
.tt-on .tc-slot[data-slot] { display: none; }
.tt-on .tc-time em { display: none; }
