/* 10-10 선생님 첫 화면 「한 반 한 화면 + 반 탭」 (js/onebyone.js · 시안 docs/teacher_home_v2/board/onebyone) — 허브 css 와 부딪치지 않게 모두 ob- */
.main.ob-main { padding-top: 12px; }
.ob { display: grid; gap: 8px; }
/* 반 탭 띠 44px */
.ob-tabs { position: sticky; top: var(--top-h, 60px); z-index: 6; display: flex; align-items: center; gap: 6px; height: 44px; padding: 4px 0; background: var(--bg); }
.ob-tabs .ck-box { flex: none; }
.ob-arw { flex: none; width: 30px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: 800 16px var(--font); color: var(--text-2); cursor: pointer; }
.ob-arw:disabled { opacity: .35; cursor: default; }
.ob-tab { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 12px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--surface); font: inherit; color: var(--text); cursor: pointer; overflow: hidden; white-space: nowrap; }
.ob-tab .cb { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cc); }
.ob-tab b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ob-tab small { font-size: 13px; color: var(--text-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.ob-tab em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--bad); }
.ob-tab .ob-step { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 800; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--bad); color: var(--bad); }
.ob-tab .ob-ydot { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: #F59E0B; }
.ob-tab.on { background: color-mix(in srgb, var(--cc) 14%, var(--surface)); border-color: var(--cc); }
.ob-tab.late { border-color: var(--bad); }
.ob-tab.blink { animation: obBlink 1s ease-in-out infinite alternate; }
@keyframes obBlink { from { box-shadow: 0 0 0 0 transparent; } to { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 35%, transparent); } }
@media (prefers-reduced-motion: reduce) { .ob-tab.blink { animation: none; border-width: 3px; } }
.ob-lt { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.ob-lt.blue { background: #2563EB; } .ob-lt.red { background: var(--bad); } .ob-lt.red.soft { opacity: .55; }
.ob-lt.blink { animation: lbBlink 1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .ob-lt.blink { animation: none; outline: 2px solid var(--bad); outline-offset: 1px; } }
.ob-vw { flex: none; display: inline-grid; grid-auto-flow: column; height: 32px; padding: 3px; margin-left: 12px; background: var(--surface-2); border-radius: 9px; }
.ob-vw button { border: 0; background: none; border-radius: 7px; padding: 0 9px; font: 700 13px var(--font); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.ob-vw button.on { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }
.ob-glance { flex: none; font-size: 13px; font-weight: 700; color: var(--brand); text-decoration: none; padding: 0 4px; }
.ob-all { flex: none; }
.ob-note { margin: 0; font-size: 13px; color: var(--text-3); }
/* 지금 할 것 32px */
.ob-todo { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 13px; flex-wrap: wrap; }
.ob-todo > b { font-size: 13px; }
.ob-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); text-decoration: none; font-weight: 700; }
.ob-chip.bad { border-color: var(--bad); color: var(--bad); } .ob-chip .dt { width: 6px; height: 6px; border-radius: 50%; background: #C0530A; }
.ob-todo .sp, .ob-head .sp, .ob-first .sp, .ob-rh .sp { flex: 1; }
.ob-mk { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; color: var(--brand); text-decoration: none; }
/* 반 화면 */
.ob-wrap { display: grid; gap: 10px; align-items: start; transition: transform .2s ease; }
.ob-wrap.v2 { grid-template-columns: 1fr 1fr; } .ob-wrap.v3 { grid-template-columns: 1fr 1fr 1fr; }
.ob-wrap.in-r { animation: obInR .2s ease; } .ob-wrap.in-l { animation: obInL .2s ease; } .ob-wrap.bump { transform: translateX(6px); }
@keyframes obInR { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes obInL { from { transform: translateX(-40px); opacity: .4; } to { transform: none; opacity: 1; } }
.ob-cls { min-width: 0; display: grid; gap: 8px; }
.ob-band { height: 6px; border-radius: 3px; background: var(--cc); }
.ob-first { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 2px 6px 2px 12px; border: 1px solid color-mix(in srgb, var(--bad) 40%, var(--line)); border-radius: 9px; background: color-mix(in srgb, var(--bad) 6%, var(--surface)); font-size: 13px; }
.ob-first b { color: var(--bad); }
.ob-head { display: flex; align-items: center; gap: 10px; min-height: 40px; flex-wrap: wrap; }
.ob-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.ob-head .tm { font-size: 13px; color: var(--text-3); font-weight: 600; }
.ob-done { font-size: 13px; font-weight: 800; color: #2563EB; }
.ob-slot { padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 9px; font-size: 13px; color: var(--text-3); }
.ob-slot a { color: var(--brand); font-weight: 700; }
.ob-rh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.ob-rh b { color: var(--text); font-size: 13.5px; }
.ob-tag { font-size: 13px; font-weight: 800; padding: 1px 6px; border-radius: 4px; background: #FFF3DB; color: #9A5B00; }
/* 학생 명단: 줄 34px, 10명 = 5줄씩 두 묶음 */
.ob-list { display: grid; grid-auto-flow: column; column-gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 2px 8px; }
.ob-r { display: flex; align-items: center; gap: 6px; min-height: 34px; border-top: 1px solid var(--line); min-width: 0; }
.ob-r .no { width: 18px; flex: none; text-align: right; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ob-r .nm { width: 78px; flex: none; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-r .pf { font-style: normal; font-size: 13px; font-weight: 800; margin-right: 3px; }
.ob-r.s-absent .nm { color: var(--bad); } .ob-r.s-late .nm { color: #8A5300; } .ob-r.s-early .nm { color: #C2410C; }
.ob-me { flex: none; width: 26px; height: 26px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text-3); cursor: pointer; margin-left: 2px; }
.ob-at { flex: none; display: inline-flex; gap: 3px; }
.ob-at button { width: 26px; height: 24px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); color: var(--text-3); font: 800 13px var(--font); cursor: pointer; }
.ob-at button.ab { margin-left: 8px; }
.ob-at button[data-at="late"].on { background: #FDE68A; border-color: #D97706; color: #6B3E00; }
.ob-at button[data-at="early"].on { background: #FDBA74; border-color: #C2410C; color: #5A1E00; }
.ob-at button[data-at="absent"].on { background: var(--bad); border-color: var(--bad); color: #fff; }
.ob-sc { flex: none; width: 56px; height: 26px; display: inline-grid; place-items: center; border: 1px dashed var(--line); border-radius: 6px; font-size: 13px; font-weight: 800; color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums; }
.ob-sc.dim { color: var(--text-3); font-weight: 600; }
.ob-hw { flex: none; width: 60px; height: 26px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 800 13px var(--font); cursor: pointer; transition: box-shadow .15s; }
.ob-hw.h-done { background: #DCFCE7; border-color: #16A34A; color: #166534; }
.ob-hw.h-part { background: #FEF3C7; border-color: #D97706; color: #78350F; }
.ob-hw.h-most { background: #ECFCCB; border-color: #65A30D; color: #3F6212; }
.ob-hw.h-half, .ob-hw.h-some { background: #FEF3C7; border-color: #D97706; color: #78350F; }
.ob-hw.h-none { background: var(--surface); border-color: var(--bad); color: var(--bad); }
.ob-hw.h-q { border-style: dashed; color: var(--text-3); font-weight: 600; }
.ob-hw.dim { display: inline-grid; place-items: center; border-style: dashed; color: var(--text-3); cursor: default; }
.ob-hw.flash { box-shadow: 0 0 0 3px var(--brand); }
.ob-ln { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: text; padding: 4px 2px; }
.ob-ln .ph { color: var(--text-3); opacity: .7; }
.ob-ln input { width: 100%; height: 26px; border: 1px solid var(--brand); border-radius: 6px; padding: 0 6px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); }
.ob-why { width: 260px; }
.ob-wrap.v3 .ob-r .nm { width: 64px; }
@media (max-width: 1180px) { .ob-tabs .ck-box { display: none; } .ob-glance { display: none; } }
@media (max-width: 999px) {
  .ob-tabs { height: auto; flex-wrap: wrap; } .ob-tab { flex: 1 1 140px; } .ob-vw { display: none; }
  .ob-wrap.v2, .ob-wrap.v3 { grid-template-columns: 1fr; }
  .ob-list { grid-auto-flow: row; grid-template-columns: 1fr !important; grid-template-rows: none !important; }
  .ob-r { min-height: 44px; flex-wrap: wrap; } .ob-at button { width: 32px; height: 32px; } .ob-hw, .ob-sc { height: 32px; } .ob-ln { flex-basis: 100%; padding-left: 24px; }
}

/* 2묶음: 이 반 학습지(넓게) + 오른쪽 일지 자리 340px */
.ob-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 10px; align-items: start; }
.ob-top.slim { grid-template-columns: 1fr; }
.ob-sheets { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.ob-shh { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 3px 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ob-shh b { font-size: 13.5px; } .ob-shh small { font-size: 13px; color: var(--text-3); } .ob-shh .sp { flex: 1; }
.ob-shh .btn { min-height: 0; height: 26px; padding: 0 10px; font-size: 13px; }
.ob-sh { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 2px 8px 2px 10px; border-top: 1px solid var(--line); font-size: 13px; }
.ob-sheets .ob-shh + .ob-sh { border-top: 0; }
.ob-sh b { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-sh small { flex: 1 1 auto; min-width: 0; color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.ob-sh.gone { color: var(--text-3); justify-content: space-between; background: var(--surface-2); }
.ob-sh.empty { color: var(--text-3); font-size: 13px; }
.ob-shl { flex: none; font-size: 13px; font-weight: 800; padding: 1px 7px; border-radius: 5px; }
.ob-shl.td { background: #EAF0FF; color: #1A4FD6; } .ob-shl.nx { background: var(--surface-2); color: var(--text-2); } .ob-shl.wk { background: #E8F6EE; color: #1B7A43; }
.ob-shi { flex: none; display: inline-flex; gap: 4px; align-items: center; }
.ob-ib { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 28px; height: 26px; padding: 0 5px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text-2); text-decoration: none; font: 700 13px var(--font); cursor: pointer; }
.ob-ib.t-cam { border-color: #EA580C; color: #C2410C; background: #FFF4EC; }
.ob-ib.del { margin-left: 12px; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.ob-ib.sp { visibility: hidden; margin-left: 12px; }
.ob-more { width: 100%; height: 28px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--brand); font: 700 13px var(--font); cursor: pointer; }
.ob-top .ob-slot { min-height: 120px; }
@media (max-width: 1180px) { .ob-top { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .ob-sh { flex-wrap: wrap; } .ob-sh small { text-align: left; flex-basis: 100%; order: 3; } .ob-shi { margin-left: auto; } }
/* 넘침 막기: 격자 칸이 내용 폭으로 늘지 않게 */
.ob { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.ob > *, .ob-wrap > *, .ob-cls > * { min-width: 0; }
.ob-tabs .ck-d { display: none; }
.ob-tabs { overflow: hidden; }
@media (min-width: 761px) { .ob-sh { height: 34px; min-height: 0; } }

/* 3묶음: 오른쪽 오늘 수업 · 일지 340px */
.ob-jn { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.ob-jr { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 2px 10px; border-top: 1px solid var(--line); font-size: 13px; }
.ob-jn .ob-shh + .ob-jr { border-top: 0; }
.ob-jr .k { flex: none; width: 66px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.ob-jv { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: text; padding: 4px 0; }
.ob-jv.ro { cursor: default; } .ob-jv .ph { color: var(--text-3); opacity: .75; }
.ob-jv input { width: 100%; height: 26px; border: 1px solid var(--brand); border-radius: 6px; padding: 0 6px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); }
.ob-jr .linkbtn { flex: none; font-size: 13px; }
.ob-jdone { font-size: 13px; font-weight: 800; color: #2563EB; }
.ob-me.has { width: auto; padding: 0 6px; font: 800 13px var(--font); color: #6D28D9; border-color: #C4B5FD; background: #F5F3FF; white-space: nowrap; }
.ob-pp-h { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: #F5F3FF; color: #5B21B6; font-weight: 800; font-size: 13px; }
.ob-pp-h + .tc-board .tc-row { flex-wrap: wrap; } .ob-ppup { margin-left: auto; }

/* 10-10 첫 화면 긴급 띠 · 공지 3줄 (반 탭 띠 위) */
.ob-urg:empty { display: none; }
.ob-urg { margin: 0 0 8px; }
.ob-nt { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.ob-nt-h { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.ob-nt-rows { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 6px; }
.ob-nt-rows .th2-row { min-height: 30px; padding: 2px 8px; border-top: 0; border-left: 1px solid var(--line); font-size: 13px; }
.ob-nt-rows .th2-row:first-child { border-left: 0; }
.ob-nt-rows .th2-row small { display: none; }
.ob-nt-act { flex: none; display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 900px) {
  .ob-nt { flex-wrap: wrap; } .ob-nt-rows { grid-template-columns: minmax(0, 1fr); flex-basis: 100%; order: 3; }
  .ob-nt-rows .th2-row { border-left: 0; border-top: 1px solid var(--line); } .ob-nt-rows .th2-row:first-child { border-top: 0; }
  .ob-nt-act { margin-left: auto; }
}

/* 10-11 원장님: 「내 반」 전부 작은 칩(한 줄 · 넘치면 옆으로 밀기) + 「지금 할 것」 아이콘마다 이름 늘 보이게 */
.ob-my { display: flex; align-items: center; gap: 6px; min-height: 30px; min-width: 0; }
.ob-my > b { flex: none; font-size: 13px; color: var(--text-2); }
.ob-my-l { flex: 1; display: flex; gap: 5px; min-width: 0; overflow-x: auto; padding: 2px 0; scrollbar-width: thin; }
.ob-mc { flex: none; display: inline-flex; align-items: stretch; height: 26px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.ob-mc.on { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 10%, var(--surface)); }
.ob-mc-n { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px 0 9px; border: 0; background: none; font: 700 13px var(--font); color: var(--text); cursor: pointer; white-space: nowrap; }
.ob-mc-n .cb { width: 7px; height: 7px; border-radius: 50%; background: var(--cc); flex: none; }
.ob-mc-n small { font-size: 13px; color: var(--text-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.ob-mc-t { display: inline-flex; align-items: center; gap: 3px; padding: 0 8px; border: 0; border-left: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font: 700 13px var(--font); cursor: pointer; white-space: nowrap; }
.ob-mc-t.no { color: #B45309; } .ob-mc-t .dt { width: 6px; height: 6px; border-radius: 50%; background: #F59E0B; }
.ob-mc-n:focus-visible, .ob-mc-t:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ob-mks { display: inline-flex; gap: 4px; flex-wrap: wrap; }
/* 10-11 원장님: 아이콘은 그대로 · 아래에 작은 이름 늘 보이게 · 아이콘마다 옅은 색(흑백에서도 이름으로 구별) — 학습지 줄 · 지금 할 것 같은 모양 */
.ob-ib { flex-direction: column; gap: 0; min-width: 34px; height: 34px; padding: 1px 4px; line-height: 1; }
.ob-ib { box-sizing: border-box; overflow: hidden; } .ob-ib .ic { flex: none; width: 15px; height: 15px; }
.ob-ib > span { font-size: 13px; font-weight: 700; white-space: nowrap; margin-top: 1px; }
.ob-ib.t-dl { background: #EEF3FF; border-color: #C5D4F5; color: #1A4FD6; }
.ob-ib.t-beam { background: #F3EEFF; border-color: #D3C6F2; color: #5B3CC4; }
.ob-ib.t-gr { background: #EAF6EF; border-color: #BFE0CC; color: #1B7A43; }
.ob-ib.t-app { background: #E8F6F8; border-color: #B6DFE5; color: #0E7490; }
.ob-ib.del { background: #FFF3F3; }
.ob-ib.sp { width: 34px; }
.ob-todo .ob-mk { width: auto; height: 34px; text-decoration: none; }
@media (min-width: 761px) { .ob-sh { height: 40px; } }
@media (pointer: coarse) { .ob-mc { height: 32px; } .ob-ib { height: 40px; min-width: 40px; } }
@media (max-width: 640px) {
  .ob-todo .sp { flex-basis: 100%; height: 0; }
  .ob-mks { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ob-todo .ob-mk { height: 40px; white-space: normal; }
  .ob-ib > span { font-size: 13px; }
}
/* 10-11 반 아래 시간표 띠(관리부와 같은 가로 세 줄 편집기로 펼침) — 평소 한 줄 26px */
.ob-tt { display: flex; align-items: center; gap: 8px; min-height: 26px; padding: 0 2px; }
.ob-tt-l { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.ob-tt-s { flex: 1; min-width: 0; font-size: 13px; }
.ob-tt-s .tts { width: 100%; }
.ob-tt-ex { flex: none; font-size: 13px; font-weight: 800; color: #B45309; background: #FFF4D6; border-radius: 6px; padding: 1px 6px; }
.ob-tt-b { flex: none; height: 24px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 700 13px var(--font); color: var(--brand); cursor: pointer; }
.ob-tt-b.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.ob-cls > .tl-host { border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.ob-mks { display: inline-flex; gap: 4px; flex-wrap: wrap; }

/* 10-11 「비슷하게(복습)」 단추 · 꼬리표 · 작은 창 */
.ob-ib.t-rev { background: #FFF6E5; border-color: #F2D29B; color: #A15C00; }
.ob-shl.rv { background: #FFF6E5; color: #A15C00; }
.ob-rv-f { display: grid; gap: 4px; margin: 8px 0; } .ob-rv-f input[type=text], .ob-rv-f input:not([type]) , #rvT { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.ob-rv-n { display: flex; align-items: center; gap: 8px; } .ob-rv-n input[type=range] { flex: 1; } .ob-rv-n output { min-width: 56px; font-weight: 800; text-align: right; }
.ob-rv-ck { display: flex; align-items: center; gap: 6px; margin: 6px 0; font-weight: 700; }

/* 10-12 반 화면 「오늘」 탭 「최근 학습지」 카드 줄(첫 화면 학습지 줄과 같은 아이콘 · 색) */
.ss { display: grid; gap: 8px; margin: 10px 0 14px; }
.ss-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .ss-top b { font-size: 14.5px; } .ss-top .sp { flex: 1; }
.ss-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ss-c { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.ss-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .ss-h small { color: var(--text-3); font-size: 13px; }
.ss-new { font-size: 13px; font-weight: 800; color: #1A3FA8; background: #EAF0FF; border-radius: 5px; padding: 0 5px; }
.ss-t { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-c .ob-shi { flex-wrap: wrap; }
.ss-list { margin-top: 2px; }
@media (max-width: 900px) { .ss-cards { grid-template-columns: 1fr; } }
.ob-shl.od { background: #F3F1EC; color: #6B6457; }

/* 10-12 원장님: 두 반 · 세 반 · 전부 보기에서 학생 명단 더 작게 */
.ob-wrap.v2 .ob-r, .ob-wrap.v3 .ob-r { min-height: 27px; gap: 4px; }
.ob-wrap.v2 .ob-r .nm, .ob-wrap.v3 .ob-r .nm { font-size: 13px; }
.ob-wrap.v3 .ob-r .nm { width: 56px; }
.ob-wrap.v2 .ob-at button, .ob-wrap.v3 .ob-at button { width: 22px; height: 20px; font-size: 13px; border-radius: 4px; }
.ob-wrap.v2 .ob-at button.ab, .ob-wrap.v3 .ob-at button.ab { margin-left: 4px; }
.ob-wrap.v2 .ob-sc, .ob-wrap.v3 .ob-sc { width: 44px; height: 21px; font-size: 13px; }
.ob-wrap.v2 .ob-hw, .ob-wrap.v3 .ob-hw { width: 50px; height: 21px; font-size: 13px; }
.ob-wrap.v2 .ob-me, .ob-wrap.v3 .ob-me { width: 21px; height: 21px; }
.ob-wrap.v2 .ob-ln, .ob-wrap.v3 .ob-ln { font-size: 13px; padding: 2px; }
/* ── 10-15 w255 원장님: 시간표 바로 위 「출결 바로 하기」 + 오늘 반 가로 시간표 · 고치기 = 오른쪽 판 ── */
.ob-qa { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ob-qa-h { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.ob-qa-h > b { font-size: 14px; font-weight: 800; color: var(--text); }
.ob-qa-h > small { font-size: 13px; color: var(--text-2); font-weight: 600; }
.ob-qa-h .sp { flex: 1; }
.ob-qa.all-ok .ob-qa-h > b { color: #15803D; }
.ob-qa-l { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-qa-c { position: relative; flex: 1 1 250px; max-width: 420px; min-width: 0; display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; padding: 6px 8px 6px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); overflow: hidden; }
.ob-qa-c .cb { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cc); }
.ob-qa-c.now { border-color: #1B7F3A; background: color-mix(in srgb, #1B7F3A 5%, var(--surface)); }
.ob-qa-t { min-width: 0; display: grid; line-height: 1.25; flex: 1 1 110px; }
.ob-qa-t b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-qa-t small { font-size: 13px; color: var(--text-3); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ob-qa-st { flex: none; font-size: 13px; font-weight: 800; padding: 2px 7px; border-radius: 6px; color: var(--text-2); background: var(--surface-2); white-space: nowrap; }
.ob-qa-st.wait { color: #B91C1C; background: #FEF2F2; }
.ob-qa-st.ok { color: #1D4ED8; background: #EFF6FF; }
.ob-qa-a { flex: none; display: inline-flex; gap: 4px; margin-left: auto; }
.ob-qa-a .btn { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.qa-next { background: #1B7F3A; border-color: #1B7F3A; color: #fff; font-weight: 800; }
.btn.qa-next:hover { background: #166A31; border-color: #166A31; color: #fff; }
@keyframes obBreath { 0%, 100% { box-shadow: 0 0 0 0 rgba(27, 127, 58, .30); } 50% { box-shadow: 0 0 0 6px rgba(27, 127, 58, .12); } }
.btn.pulse-next:not(:disabled) { animation: obBreath 1.6s ease-in-out infinite; }
.btn.pulse-next:hover, .btn.pulse-next:focus-visible { animation: none; }
@media (prefers-reduced-motion: reduce) { .btn.pulse-next { animation: none !important; } }
.ob-cls.ob-flash { animation: obFlash .9s ease; }
@keyframes obFlash { 0% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc) 45%, transparent); border-radius: 10px; } 100% { box-shadow: 0 0 0 0 transparent; } }
/* 가로 시간표 */
.ob-tgbox { display: grid; gap: 4px; padding: 8px 10px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ob-tg-hh { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.ob-tg-hh > b { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 800; }
.ob-tg-hh > small { font-size: 13px; color: var(--text-3); font-weight: 600; }
.ob-tg-hh .sp { flex: 1; }
.ob-tg-lg { display: inline-flex; align-items: center; gap: 3px 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); font-weight: 700; }
.ob-tg-lg i { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin-right: -4px; background: #3B5BDB; }
.ob-tg-lg i.k-hatch { background: repeating-linear-gradient(135deg, #3B5BDB55 0 3px, transparent 3px 6px); border: 1px solid #3B5BDB88; }
.ob-tg-lg i.k-test { background: #F59E0B; }
.ob-tg-lg i.nw { width: 2px; height: 12px; background: #DC2626; margin-right: -2px; }
.ob-tg { --nmw: 128px; position: relative; display: grid; }
.ob-tg-ax, .ob-tg-r { display: grid; grid-template-columns: var(--nmw) minmax(0, 1fr); align-items: stretch; }
.ob-tg-ax { height: 18px; }
.ob-tg-ax .ob-tg-t { position: relative; }
.ob-tg-ax i { position: absolute; top: 0; transform: translateX(-50%); font-style: normal; font-size: 13px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ob-tg-ax i:first-child { transform: none; }
.ob-tg-ax i.end { transform: translateX(-100%); }
.ob-tg-r { min-height: 36px; border-top: 1px solid var(--line); }
.ob-tg > .ob-tg-r:nth-last-child(2) { border-bottom: 1px solid var(--line); }
.ob-tg-nm { position: relative; min-width: 0; display: flex; align-items: center; gap: 2px 6px; flex-wrap: wrap; padding: 3px 6px 3px 10px; line-height: 1.2; }
.ob-tg-r .ob-tg-nm .cb { position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px; border-radius: 2px; background: var(--cc); }
.ob-tg-nm b { font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ob-tg-nm small { font-size: 13px; color: var(--text-3); font-weight: 700; white-space: nowrap; }
.ob-tg-t { position: relative; min-width: 0; }
.ob-tg-r .ob-tg-t s { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--line); }
.ob-tg-r .ob-tg-t s.h { border-left-style: dashed; opacity: .55; }
.ob-tg-b { position: absolute; top: 4px; bottom: 4px; min-width: 6px; display: flex; align-items: center; gap: 6px; padding: 0 7px; border-radius: 6px; background: var(--cc); color: #fff; overflow: hidden; white-space: nowrap; box-sizing: border-box; cursor: pointer; font-size: 13px; line-height: 1; z-index: 1; }
.ob-tg-b b { font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.ob-tg-b small { font-size: 13px; font-weight: 700; opacity: .92; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 100 auto; }
.ob-tg-b.k-hatch { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--cc) 30%, transparent) 0 4px, transparent 4px 8px), color-mix(in srgb, var(--cc) 10%, var(--surface)); color: var(--text-2); border: 1px solid color-mix(in srgb, var(--cc) 50%, transparent); }
.ob-tg-b.tst, .ob-tg-b.k-test { top: auto; bottom: 2px; height: 8px; padding: 0; background: #F59E0B; border-radius: 3px; z-index: 2; }
.ob-tg-b.tst small, .ob-tg-b.k-test small { display: none; }
.ob-tg-b.ex { outline: 2px dashed #B45309; outline-offset: -2px; }
.ob-tg:not(.edit) .ob-tg-b:hover { filter: brightness(1.08); }
.ob-tg-none { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.ob-tg-ov { position: absolute; left: var(--nmw); right: 0; top: 0; bottom: 0; pointer-events: none; z-index: 3; }
.ob-tg-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #DC2626; }
.ob-tg-now::before { content: ""; position: absolute; top: 12px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: #DC2626; }
/* 고치기(오른쪽 판) */
.ob-tg.edit .ob-tg-r { min-height: 44px; }
.ob-tg.edit .ob-tg-r .ob-tg-t { cursor: crosshair; }
.ob-tg.edit .ob-tg-r.focus { background: color-mix(in srgb, var(--cc) 8%, transparent); }
.ob-tg.edit .ob-tg-b { cursor: grab; touch-action: none; user-select: none; padding: 0 12px; }
.ob-tg.edit .ob-tg-b.sel { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #1D4ED8; }
.ob-tg.edit .ob-tg-b.dragging { opacity: .85; cursor: grabbing; box-shadow: 0 0 0 2px #1D4ED8; }
.ob-tg.edit .ob-tg-b.ghost { background: color-mix(in srgb, var(--cc) 55%, transparent); }
.ob-tg-hd { position: absolute; top: 0; bottom: 0; width: 9px; cursor: ew-resize; touch-action: none; }
.ob-tg-hd.l { left: 0; }
.ob-tg-hd.r { right: 0; }
.ob-tg-hd::after { content: ""; position: absolute; top: 25%; bottom: 25%; left: 3px; width: 3px; border-radius: 2px; background: rgba(255, 255, 255, .8); }
.ob-tg-b.tst .ob-tg-hd::after, .ob-tg-b.k-test .ob-tg-hd::after { display: none; }
.ob-tg-tip { position: absolute; top: -22px; transform: translateX(-50%); z-index: 5; padding: 2px 7px; border-radius: 6px; background: #1D4ED8; color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; pointer-events: none; }
.ob-tg-wk { flex: none; height: 20px; padding: 0 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 700 13px var(--font); color: var(--brand); cursor: pointer; }
.ob-tgp .sp-body { display: grid; gap: 10px; align-content: start; padding: 12px 14px 18px; }
.ob-tgp .ob-tg { --nmw: 150px; padding-top: 22px; }
.ob-tgp .ob-tg-ov { top: 22px; }
.ob-tgp-sel { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; min-height: 34px; font-size: 13px; }
.ob-tgp-sel b { font-size: 13.5px; }
.ob-tgp-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); }
.ob-tgp-foot .sp { flex: 1; }
.ob-tgp-sc { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 9px; background: var(--surface-2); }
.ob-tgp-sc small { font-size: 13px; font-weight: 700; color: var(--text-2); padding: 0 6px; }
.ob-tgp-sc button { height: 28px; border: 0; background: none; border-radius: 7px; padding: 0 10px; font: 700 13px var(--font); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.ob-tgp-sc button.on { background: var(--surface); color: #1D4ED8; box-shadow: var(--sh-1); }
.ob-tgp-st { font-size: 13px; font-weight: 700; color: var(--text-3); }
.ob-tgp-st.dirty { color: #B45309; }
@media (max-width: 640px) {
  .ob-tg { --nmw: 76px; }
  .ob-tgp .ob-tg { --nmw: 84px; }
  .ob-tg-ax i.odd { display: none; }
  .ob-tg-nm small { display: none; }
  .ob-tg-b small { display: none; }
  .ob-tg-hh > small, .ob-tg-lg { display: none; }
  .ob-qa-c { flex-basis: 100%; max-width: none; }
  .ob-qa-h > small { flex-basis: 100%; }
}
@media (min-width: 900px) { .sp-pane.ob-tgp { width: clamp(440px, 44vw, 820px); } .ob.sp-on { margin-right: clamp(440px, 44vw, 820px); } }
.sp-pane.ob-tgp { z-index: 300; }      /* 위 인사 줄(체험하기 단추)보다 위 */
.ob-tg.edit .ob-tg-b small.tm { display: inline; flex: 0 1 auto; font-size: 13px; font-weight: 800; opacity: 1; }
html.sp-open .ob-qa .btn.pulse-next { animation: none; }      /* 고치기 판이 열려 있으면 깜빡은 판의 「저장」 하나만 */
.ob.sp-on .ob-tg-ax i.odd { display: none; }      /* 판이 열려 표가 좁아지면 두 시간마다 */
html.sp-open .hello-bar .ht-mini.in { z-index: 0 !important; }      /* 오른쪽 판이 열리면 인사 줄 「체험하기」가 판 머리를 가리지 않게 */
/* wSimp2 공지 = 떠 있는 카드 + 종 한 곳 — 출결 판 공지 줄은 새 공지가 있을 때만, 없으면 「보내기」 단추만 오른쪽에 작게 */
.ob-nt.nt-none { border: 0; background: none; padding: 0; justify-content: flex-end; }      /* wSimp2 */
.ob-nt.nt-none .ob-nt-h, .ob-nt.nt-none .ob-nt-rows { display: none; }      /* wSimp2 */
/* wSimp2 작은 글(12px 아래) → 13px */
:is(.ob-mc-n small, .ob-mc-t, .ob-qa-t small, .ob-tg-lg, .ob-tg-nm small, .ob-tg-b small, .ob-tt-b, .ob-shl, .ob-rh small, .ob-r .no, .ob-me, .ob-at button, .ob-sc, .ob-hw, .ob-ln .ph, .out-tag) { font-size: 13px; }      /* wSimp2 */
.ob-tg-t i { font-size: 13px; }      /* wSimp2 시간 눈금 글 */
.ob-ib span { font-size: 13px; }      /* wSimp2 아이콘 단추 글 */
.ob-ib { height: auto; min-height: 36px; overflow: visible; }      /* wSimp2 */
.ob-at button, .ob-r .ob-sc, .ob-r .ob-hw { font-size: 13px !important; }      /* wSimp2 출결 칩 · 점수 · 숙제 칸 글 */
/* ═══ wFix5 10-18 수업 탭과 같은 출결 칩 · 숙제 % 막대 · 메모 보기만 ═══ */
.ob-atc { flex: none; width: 52px; height: 28px; border: 0; border-radius: 99px; background: var(--ok-soft, #DCFCE7); color: var(--ok, #15803D); font: 700 13px var(--font); cursor: pointer; padding: 0; white-space: nowrap; }      /* wFix5 수업 탭 출결 칩(board.css .jp-at)과 같은 색: 출석 초록 · 지각/조퇴 노랑 · 결석 빨강 · 보강 파랑 */
.ob-atc:hover { box-shadow: inset 0 0 0 1px currentColor; }
.ob-atc:focus-visible { outline: none; box-shadow: var(--focus, 0 0 0 3px rgba(37, 99, 235, .35)); }
.ob-atc.l { background: var(--bfz-warn-soft, #FFF4DC); color: var(--bfz-warn, #C27A00); }
.ob-atc.a { background: var(--bad-soft, #FEE2E2); color: var(--bad); }
.ob-atc.m { background: var(--brand-soft, #DBEAFE); color: var(--brand); }
.ob-atc.p { background: var(--mute-soft, #F1F5F9); color: var(--text-2); font-size: 13px; }
.ob-atc.ro { cursor: default; opacity: .8; }
.ob-hwb { flex: none; width: 128px; --kb-rowh: 32px; }
.ob-hwall { border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--line)); background: var(--ok-soft, #DCFCE7); color: var(--ok); border-radius: 99px; padding: 2px 10px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.ob-hwall:hover { background: var(--ok); color: #fff; }
a.ob-ln { color: var(--text-2); text-decoration: none; cursor: pointer; border-radius: 6px; }
a.ob-ln:hover { background: var(--surface-2); color: var(--text); }
.ob-ln .k { font-size: 13px; font-weight: 800; color: var(--text-3); margin-right: 5px; }
a.ob-jv { color: inherit; text-decoration: none; cursor: pointer; border-radius: 6px; }
a.ob-jv:hover { background: var(--surface-2); }
.ob-attq .linkbtn { margin-left: auto; font-size: 13px; }
.ob-go { white-space: nowrap; }
.ob-wrap.v2 .ob-atc, .ob-wrap.v3 .ob-atc { width: 44px; height: 24px; font-size: 13px; border-radius: 7px; }
.ob-wrap.v2 .ob-hwb, .ob-wrap.v3 .ob-hwb { width: 92px; --kb-rowh: 28px; }
/* 숙제 막대(수업 탭 board.css 와 같은 모양 — 오늘 수업판은 board.css 를 안 읽어서 여기 같이 둠) */
.ob .hwbar { position: relative; display: block; height: calc(var(--kb-rowh, 36px) - 4px); min-height: 24px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); overflow: hidden; cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none; }
.ob .hwbar:focus-visible { outline: none; box-shadow: var(--focus, 0 0 0 3px rgba(37, 99, 235, .35)); }
.ob .hwbar .hwb-f { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px 0 0 8px; transition: width .08s linear; }
.ob .hwbar.drag .hwb-f { transition: none; }
.ob .hwbar .hwb-t { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), color-mix(in srgb, var(--line-strong) 70%, transparent) calc(10% - 1px) 10%); pointer-events: none; }
.ob .hwbar .hwb-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--text); text-shadow: 0 0 3px var(--surface), 0 0 3px var(--surface); pointer-events: none; }
.ob .hwbar.none .hwb-n { font-weight: 600; font-size: 13px; color: var(--text-3); text-shadow: none; }
.ob .hwbar.off { opacity: .35; pointer-events: none; cursor: default; }
@media (max-width: 999px) { .ob-atc { height: 34px; width: 58px; } .ob-hwb { flex: 1 1 140px; width: auto; --kb-rowh: 38px; } }
.ob-wrap:not(.v1) .ob-go .ic, .ob-wrap:not(.v1) .ob-go svg { display: none; }      /* wFix5 두 반 · 세 반 · 전부: 「이 반 수업 탭으로」 꺾쇠 빼고 한 줄 */
.ob-wrap:not(.v1) .ob-go { padding-left: 8px; padding-right: 8px; }
/* wFix5 학생 명단 첫 줄 위 칸 이름(flow173.css 머리 글과 같은 자리) — 출결 칩 · 숙제 막대 · 12px. 단추 안 ::before 는 안 보여서 감싸는 칸에 */
.ob-atw { flex: none; display: inline-flex; position: relative; }
.ob .ob-r.h1 .ob-atw, .ob .ob-r.h1 .ob-hwb, .ob .ob-r.h1 .ob-sc { position: relative; overflow: visible; }
.ob .ob-r.h1 .ob-atw::before, .ob .ob-r.h1 .ob-hwb::before, .ob .ob-r.h1 .ob-sc::before { position: absolute; top: -18px; left: 0; font-size: 13px; font-weight: 800; color: var(--text-3); white-space: nowrap; pointer-events: none; z-index: 1; }
.ob .ob-r.h1 .ob-atw::before { content: '출결'; }
.ob .ob-r.h1 .ob-hwb::before { content: '지난 숙제'; }
.ob .ob-r.h1 .ob-sc::before { content: '점수'; }
.ob .ob-r.h1 { margin-top: 20px; }
.ob .ob-list { overflow: visible; }
/* 개인 · 오답 · 책 꼬리표: 글이 있으면 칸이 글만큼(잘리면 … · 마우스를 대면 전체) */
.ob .ob-me.has { display: inline-block; width: auto; min-width: 26px; max-width: 132px; padding: 0 6px; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.ob-wrap.v2 .ob-me.has, .ob-wrap.v3 .ob-me.has { height: 21px; line-height: 19px; }
.ob-wrap.v2 .ob-me.has, .ob-wrap.v3 .ob-me.has { max-width: 84px; }
/* 숙제 막대: 손가락은 세로로 밀면 화면 내림(가로 끌기 · 누르기만 값) */
.ob .hwbar { touch-action: pan-y; }
/* wFix42 10-23 오늘 시간표 막대 = 시간표(wTt2 .tt-b)와 같은 꼴: 옅은 반 색 바탕 15% + 진한 같은 계열 글씨 + 왼쪽 4px 반 색 선 · 글씨 크기 그대로 */
.ob-tg-b.k-solid:not(.tst):not(.ghost) { --ink: color-mix(in srgb, var(--cc) 40%, var(--text)); background: color-mix(in srgb, var(--cc) 15%, var(--surface)); color: var(--ink); border-left: 4px solid var(--cc); }      /* wFix42 */
.ob-tg-b.k-solid:not(.tst):not(.ghost):not(.sel):not(.dragging) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 32%, var(--surface)); }      /* wFix42 고른 막대 · 끄는 막대 파란 테두리는 그대로 */
.ob-tg-b.k-solid:not(.tst):not(.ghost) small { opacity: 1; }      /* wFix42 진한 글씨 그대로(흐리게 안 함 · 대비 4.5 이상) */
.ob-tg-lg i:not(.k-hatch):not(.k-test):not(.nw) { background: color-mix(in srgb, #3B5BDB 15%, var(--surface)); border-left: 3px solid #3B5BDB; box-shadow: inset 0 0 0 1px color-mix(in srgb, #3B5BDB 32%, var(--surface)); box-sizing: border-box; }      /* wFix42 보기 「수업」 견본도 같은 꼴 */
/* wFix44 원장님 10-24 눈 검수: 12px 아래 글자 72곳 → 13px (처음 쓰는 분도 읽기 쉽게) */
