/* teacher-simple.css : 선생님 화면 간소화(2026-11-18)
   선생님 요청: 「관리자 화면 가독성이 떨어지고 기능이 어지럽다. 안 쓰는 것은 빼고 간소하게」.
   - 위쪽 띠: 학생 의견 · 새로 고침 · 도구(메뉴 하나) · 나가기
   - 탭 7개 + 더 보기, 요약 한 줄(반 제목 + 칸 넷), 한눈에 보기 탭에서만 요약·오늘 학습 활동·오늘의 보너스
   - 표: 줄 높이를 낮추고 숫자를 가지런히
   teacher.html head의 맨 마지막에 둔다. 다른 CSS(style.css, teacher-layout.css, hub-readable.css …)는 고치지 않고 여기서 덮는다.
   글자 크기는 본문 15px · 표 14px · 보조 12.5px 세 가지.
   [레고브릭 서명] legoschool · schoolemotion20 */

/* ---------- 위쪽 띠 ---------- */
#app .top { gap: 8px; padding: 8px 16px; min-height: 54px; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
#app .top h1 { font-size: 18px; font-weight: 800; color: var(--ink); background: none; -webkit-background-clip: border-box; background-clip: border-box; }
#app .top > button, #app .top .ts-op, #toolBtn { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 6px 14px; border: 1px solid #d6daea; border-radius: 8px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: none; }
#app .top > button:hover, #app .top .ts-op:hover, #toolBtn:hover, #toolBtn[aria-expanded="true"] { border-color: #818cf8; background: #eef2ff; color: #3730a3; }
#app .top > button:focus-visible, #app .top .ts-op:focus-visible, #toolBtn:focus-visible { outline: 3px solid #818cf8; outline-offset: 2px; }
#app .top .ts-op { border-color: #fdba74; background: #fff7ed; color: #9a3412; }
#app .top .ts-op:hover { border-color: #fb923c; background: #ffedd5; color: #9a3412; }
#app .top #out { color: var(--mute); }

/* 눌러 여는 메뉴(도구 · 더 보기) */
.ts-menu { position: relative; }
.ts-panel { position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; background: #fff; border: 1px solid #d6daea; border-radius: 12px; box-shadow: 0 8px 24px rgba(30, 41, 59, .14); padding: 8px; }
.ts-panel[hidden] { display: none; }
#toolPanel { display: grid; grid-template-columns: 190px 230px 190px; gap: 0 8px; width: max-content; max-width: calc(100vw - 16px); }
#toolPanel[hidden] { display: none; }
.ts-g { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 4px; }
.ts-g + .ts-g { border-left: 1px solid #eef0f6; padding-left: 12px; }
.ts-g > b { font-size: 12.5px; font-weight: 700; color: var(--mute); padding: 4px 8px 6px; }
.ts-games { display: flex; flex-direction: column; gap: 2px; }
.ts-panel a, .ts-panel button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; text-align: left; text-decoration: none; white-space: nowrap; box-shadow: none; }
.ts-panel a:hover, .ts-panel button:hover { background: #eef2ff; color: #3730a3; filter: none; }
.ts-panel a:focus-visible, .ts-panel button:focus-visible { outline: 3px solid #818cf8; outline-offset: -2px; }
.ts-panel a > span[aria-hidden], .ts-panel button > span[aria-hidden] { margin-left: auto; color: #94a3b8; font-size: 12.5px; }
.ts-games a i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.ts-more { right: auto; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.ts-more[hidden] { display: none; }
.ts-more button.on { background: #eef2ff; color: var(--brand); font-weight: 700; }

/* ---------- 반 · 탭 줄 ---------- */
.tl-bar { padding: 8px 16px 0; background: rgba(244, 246, 251, .97); }
.tl-ban { margin-bottom: 6px; }
.tl-ban button { min-width: 58px; padding: 5px 10px; border-radius: 8px; font-size: 15px; }
.tl-ban button:first-of-type { min-width: 70px; }
.tl-ban button small { font-size: 12.5px; }
.tl-ban button.on { box-shadow: none; }
.tl-bar .tabs button { padding: 8px 13px 7px; font-size: 15px; }
.tl-bar .tabs button.on, .tl-bar .tabs button.on:hover, .tl-bar .tabs button.on:focus { background: #fff; color: var(--brand); border-bottom-color: var(--brand); box-shadow: none; filter: none; }
.tl-bar .tabs .ts-more-btn { margin-left: 6px; color: #64748b; }
.tl-bar .tabs .ts-more-btn.on { color: var(--brand); }
.tl-bar .tabs .tl-n { font-size: 12.5px; }

/* ---------- 요약 한 줄 ---------- */
#app .wrap { padding-top: 12px; }
.ts-sum { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin: 0 0 8px; }
.ts-sum .tl-head { margin: 0; flex: none; gap: 8px; }
.ts-sum .tl-head h2 { font-size: 20px; }
.ts-sum .tl-head .chips:empty { display: none; }
.ts-sum #tiles { display: flex; flex: 1 1 520px; gap: 8px; margin: 0; min-width: 0; }
.ts-sum #tiles .tile { flex: 1 1 0; display: flex; align-items: baseline; gap: 8px; min-width: 0; min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: none; white-space: nowrap; }
.ts-sum #tiles .tile b { display: inline; font-size: 18px; line-height: 1.3; color: var(--ink); font-variant-numeric: tabular-nums; }
.ts-sum #tiles .tile.warn b { color: var(--g4); }
.ts-sum #tiles .tile span { font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; }
.ts-sum #tiles .tile.warn { border-color: #fecaca; background: #fff8f8; }
.ts-sum #tiles .tile.tl-go:hover, .ts-sum #tiles .tile.tl-go:focus-visible { transform: none; box-shadow: none; border-color: #818cf8; background: #f5f6ff; }

/* 요약 · 오늘 학습 활동 · 오늘의 보너스는 한눈에 보기 탭에서만 */
#app:not([data-tab="all"]) .ts-sum,
#app:not([data-tab="all"]) #hotToday,
#app:not([data-tab="all"]) #daily-shortcut { display: none !important; }

/* 오늘 학습 활동 줄 · 오늘의 보너스 */
#app[data-tab="all"] #daily-shortcut .daily-shortcut { margin-bottom: 8px; padding: 6px 12px; border-radius: 10px; box-shadow: none; }
#daily-shortcut .daily-filter-btns button { min-height: 34px; padding: 4px 12px; }
#hotToday { margin: 0 0 8px; padding: 6px 12px; border-width: 1px; border-radius: 10px; }

/* 그 탭에서만 쓰는 바로가기 */
.ts-tools { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 8px; }
.ts-tools[hidden] { display: none; }
.ts-tools .btn { min-height: 36px; padding: 6px 14px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; }

/* ---------- 한눈에 보기 표 ---------- */
#view .card { box-shadow: none; }
#view > .learning-scroll { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0; box-shadow: none; }
#view .learning-table { font-size: 14px; border: 0; border-radius: 0; box-shadow: none; }
#view .learning-table thead th { padding: 6px 8px; font-size: 14px; line-height: 1.35; background: #f6f7fb; }
#view .learning-table thead th small { font-size: 12.5px; }
#view .learning-table .th-txt { text-wrap: balance; word-break: keep-all; }
#view .learning-table thead th:nth-child(-n+4) .th-txt, #view .learning-table:not(.learning-help) thead th:nth-child(-n+7) .th-txt small { white-space: nowrap; }
#view .learning-table thead .th-sort { gap: 4px; padding-left: 4px; padding-right: 4px; }
#view .learning-table tbody td { padding: 6px 8px; line-height: 1.4; border-bottom: 1px solid #edf0f5; font-variant-numeric: tabular-nums; }
#view .learning-table tbody tr:nth-child(even) td { background: #fafbfe; }
#view .learning-table tbody tr:hover td { background: #f3f5ff; }
#view .learning-table td small { font-size: 12.5px; }
/* 칸 너비: 「번호」가 두 줄로 갈리지 않게, 별 칸은 「보유 · 사용 가능」 한 줄 */
#view .learning-table .learning-col-class { width: 64px; }
#view .learning-table .learning-col-number { width: 72px; }
#view .learning-table .learning-col-student { width: 168px; }
#view .learning-table .learning-col-stars { width: 128px; }
#view .learning-table .learning-col-play { width: 168px; }
/* 이름 칸: 이름 크게 · 닉네임 작게 한 줄, 오늘 활동 배지는 그 아래 */
#view .learning-student .who { display: flex; align-items: baseline; gap: 2px 6px; flex-wrap: wrap; line-height: 1.35; }
#view .learning-student .who .rn-main { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
#view .learning-student .who .nk, #view .learning-student .who small { font-size: 12.5px; font-weight: 500; color: var(--mute); margin: 0; white-space: nowrap; }
#view .learning-table .daily-badge { display: inline-block; margin: 3px 0 0; font-size: 12.5px; }
#view .learning-table .daily-badge.is-zero { margin-top: 1px; }
/* 별 칸: 보유 · 사용 가능을 두 줄로 가지런히 */
#view .learning-table .st2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
#view .learning-table .st2 b { font-variant-numeric: tabular-nums; }
#view .learning-table .cell { padding: 0; }
#view .learning-table .cell .bar { margin-top: 3px; }
#view .learning-table .learning-last { white-space: nowrap; color: var(--mute); }
#view .tbl { font-size: 14px; }
/* 단원평가 표의 학생 칸도 이름 먼저, 오늘 활동 배지는 아래 */
#view .ts-stu .ts-who { display: block; line-height: 1.35; }
#view .ts-stu .ts-who .rn-main { font-size: 15px; font-weight: 700; }
#view .ts-stu .ts-who .nk { font-size: 12.5px; color: var(--mute); }
#view .ts-stu .daily-badge { display: inline-block; margin: 3px 0 0; font-size: 12.5px; }
#view .card p.muted, #view .card small.muted { text-wrap: pretty; word-break: keep-all; }

/* ---------- 학생 창 ---------- */
#mbody .sq-reasons, #mbody .sb-reasons { gap: 6px; }
#mbody .sq-reasons button, #mbody .sb-reasons button, #mbody .rs-chip { min-height: 32px; padding: 3px 10px; font-size: 14px; white-space: nowrap; }
#mbody details > summary { text-wrap: balance; word-break: keep-all; }

/* ---------- 글줄 ---------- */
#app p, #mbody p, #app li, #mbody li { text-wrap: pretty; }
#app h2, #app h3, #mbody h2, #mbody h3, #app .tile span, #app th, #app button, #app .btn { text-wrap: balance; word-break: keep-all; }

/* ---------- 꼬리말 ---------- */
.ts-foot { display: flex; justify-content: center; margin: 32px 0 0; }
.ts-home { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border: 2px solid #172B43; border-radius: 999px; background: #fff; color: #172B43; font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: 2px 3px 0 #172B43; }
.ts-home:hover, .ts-home:focus-visible { background: #f1f5f9; outline: none; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1100px) {
  .tl-bar .tabs button { padding: 8px 10px 7px; }
  .ts-sum #tiles { flex-basis: 100%; }
}
@media (max-width: 900px) {
  #app .top { flex-wrap: wrap; }
  #toolPanel { grid-template-columns: 1fr; position: fixed; top: 60px; left: 8px; right: 8px; width: auto; max-height: calc(100dvh - 76px); overflow-y: auto; }
  .ts-g + .ts-g { border-left: 0; border-top: 1px solid #eef0f6; padding-left: 4px; }
  .ts-sum #tiles { flex-wrap: wrap; }
  .ts-sum #tiles .tile { flex: 1 1 calc(50% - 4px); }
}

/* ---------- 2026-11-22 보이는 반 · 학생 의견 숫자 ---------- */
.tl-ban .tl-ban-set { min-width: 0; margin-left: 4px; padding: 5px 11px; border-style: dashed; border-color: #c7cdea; background: transparent; color: #4b5563; font-size: 14px; font-weight: 600; }
.tl-ban .tl-ban-set:hover, .tl-ban .tl-ban-set[aria-expanded="true"] { border-style: solid; border-color: #818cf8; background: #eef2ff; color: #3730a3; }
.tl-ban .tl-ban-set.has-hid { border-style: solid; color: #3730a3; }
.tl-ban .tl-ban-set small { color: #6366f1; font-weight: 600; }
.bs-panel { right: auto; width: 330px; padding: 12px; }
.bs-head { display: flex; align-items: baseline; gap: 8px; padding: 0 2px 8px; }
.bs-head b { font-size: 15px; }
.bs-head span { color: var(--mute); font-size: 12.5px; }
.bs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bs-panel .bs-item { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px; border: 1.5px solid #e3e7f2; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 600; color: #94a3b8; background: #f8fafc; }
.bs-panel .bs-item.on { border-color: #a5b4fc; background: #eef2ff; color: #312e81; }
.bs-panel .bs-item input { width: 18px; height: 18px; margin: 0; accent-color: #4338ca; }
.bs-panel .bs-item small { margin-left: auto; font-size: 12.5px; font-weight: 500; color: inherit; opacity: .8; }
.bs-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.ts-panel.bs-panel .bs-foot button { width: auto; min-height: 36px; padding: 6px 14px; border: 1px solid #d6daea; justify-content: center; }
.ts-panel.bs-panel .bs-foot button.pri { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.ts-panel.bs-panel .bs-foot button.pri:hover { background: #3730a3; color: #fff; }
#app .top .ts-op { position: relative; }
.ts-op-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #64748b; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.ts-op-n.bad { background: #e11d48; }
.ts-op-n[hidden] { display: none; }
/* 표 칸 너비 손잡이(.col-rs z 6)가 반·탭 줄의 펼침 창 위로 올라오지 않게 띠를 그 위로(선택 막대 15, 학생 창 20보다는 아래) */
#app .top { z-index: 9; }
.tl-bar { z-index: 8; }
/* 띠가 붙지 않는 작은 창(teacher-layout.css 같은 조건)에서도 펼침 창이 표 머리 위로 오게 */
@media (max-width: 700px), (max-height: 720px) and (max-width: 1100px), (max-height: 500px) { .tl-bar { position: relative; top: auto; } }

/* ---------- 2026-11-22 한눈에 보기: 단원평가·서술형·게임 시간 앞세우기, 게임별 칸 접기, 학습 활동 기간 ---------- */
.la-tools { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.la-tog { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border: 1px dashed #c7cdea; border-radius: 8px; background: #fff; color: #3730a3; font-size: 14px; font-weight: 700; }
.la-tog small { color: #6366f1; font-weight: 600; }
.la-tog.on { border-style: solid; background: #eef2ff; }
.la-hint { color: var(--mute); font-size: 12.5px; }
#view .learning-table .learning-col-assessment { width: 176px; }
#view .learning-table .learning-col-writing { width: 212px; }
#view .learning-table .learning-col-play { width: 176px; }
#view .learning-table.la-fold .learning-col-reasons { width: 190px; }
#view .learning-table.la-fold .learning-col-last { width: 96px; }
#view .learning-table th.la-h-as { background: #eef2ff; }
#view .learning-table th.la-h-wr { background: #fdf4ff; }
#view .learning-table th.la-h-pl { background: #ecfeff; }
.as-cell { line-height: 1.35; }
.as-c-top { display: flex; align-items: baseline; gap: 8px; }
.as-c-top b { font-size: 15px; color: #1e293b; }
.as-c-top span { font-size: 12.5px; color: #475569; }
.as-c-bar { height: 6px; margin: 4px 0 3px; border-radius: 4px; background: #e5e7f0; overflow: hidden; }
.as-c-bar i { display: block; height: 100%; background: #4f46e5; border-radius: 4px; }
.as-cell small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.wr-cell { cursor: pointer; line-height: 1.4; }
.wr-cell:hover { background: #fdf4ff; }
.wr-c-top { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.wr-c-top b { font-size: 14px; margin-right: 2px; }
.wr-lvc { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 0 5px; border-radius: 5px; background: #f1f5f9; color: #475569; }
.wr-lvc1 { background: #dcfce7; color: #166534; } .wr-lvc2 { background: #dbeafe; color: #1e40af; } .wr-lvc3 { background: #fef3c7; color: #92400e; } .wr-lvc4 { background: #fee2e2; color: #991b1b; }
.wr-c-txt { margin-top: 2px; font-size: 13px; color: #334155; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.wr-c-src { display: block; color: #94a3b8; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.play-cell .play-game { max-width: 160px; }
.daily-range { display: inline-flex; padding: 2px; border-radius: 9px; background: #e8ebf5; margin-right: 6px; }
.daily-range button { min-height: 30px; padding: 3px 12px; border: 0; border-radius: 7px; background: transparent; color: #475569; font-size: 14px; font-weight: 700; }
.daily-range button.on { background: #fff; color: #3730a3; box-shadow: 0 1px 3px rgba(30, 41, 59, .15); }
.daily-badge.wk-badge { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; white-space: nowrap; }
.wk-l1 { display: inline-flex; align-items: center; gap: 5px; }
.wk-dots { display: inline-flex; gap: 2px; }
.wk-dots i { width: 6px; height: 6px; border-radius: 2px; background: #d6daea; }
.wk-dots i.on { background: #16a34a; }
.daily-badge.is-few { background: #fffbeb; color: #92400e; border-color: #fde68a; }
#view .learning-table .daily-badge.wk-badge, #view .ts-stu .daily-badge.wk-badge { display: inline-flex; flex-direction: column; align-items: flex-start; }
.wr-c-k { font-size: 11.5px; font-weight: 700; padding: 0 5px; border-radius: 5px; background: #f1f5f9; color: #475569; white-space: nowrap; }
.wr-c-k.int { background: #f3e8ff; color: #6b21a8; }
.wr-c-k.rv { background: #fee2e2; color: #991b1b; }
