:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: #203646;
  background: #f4f7f9;
  --primary: #086b8c;
  --primary-dark: #075773;
  --navy: #153f5c;
  --surface: #ffffff;
  --surface-soft: #f6f9fb;
  --border: #d5e0e6;
  --border-strong: #a9bdc8;
  --text-muted: #607482;
  --shadow: 0 8px 24px rgba(27, 57, 76, .07);
}
* { box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body { min-height: 100vh; margin: 0; line-height: 1.55; background: #f4f7f9; }
a { color: #096886; text-underline-offset: .16em; }
a:hover { color: #064d66; }
h1, h2, h3 { color: #183b50; line-height: 1.25; }
h1 { margin: 0 0 .35rem; font-size: clamp(1.55rem, 2.8vw, 2.15rem); letter-spacing: -.02em; }
h2 { margin: 0 0 .65rem; font-size: clamp(1.12rem, 2vw, 1.4rem); }
h3 { margin: 0 0 .5rem; }
p { margin: .45rem 0; }
.topbar { position: relative; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 72px; padding: .7rem clamp(.85rem, 3vw, 1.5rem); color: white; background: linear-gradient(115deg, #123a55, #0c5d78); box-shadow: 0 4px 18px rgba(14, 42, 59, .2); }
.topbar a { color: white; }
.topbar-brand { display: flex; min-width: 0; align-items: center; gap: .65rem; text-decoration: none; }
.topbar-brand:hover { color: white; }
.topbar-brand-mark { display: grid; flex: 0 0 2.35rem; width: 2.35rem; height: 2.35rem; place-items: center; color: #0b5874; background: #fff; border-radius: .65rem; box-shadow: 0 3px 10px rgba(0,0,0,.15); font-size: 1.15rem; font-weight: 900; }
.topbar-brand-copy { display: grid; min-width: 0; line-height: 1.15; }
.topbar-brand-copy strong { overflow: hidden; font-size: clamp(1.05rem, 1.8vw, 1.3rem); letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }
.topbar-brand-copy small { margin-top: .2rem; color: rgba(255,255,255,.74); font-size: .68rem; letter-spacing: .05em; }
.topbar-actions { justify-content: flex-end; margin: 0; }
.topbar-actions > a, .topbar-actions > details > summary { display: flex; min-height: 42px; align-items: center; justify-content: center; border-radius: .5rem; text-decoration: none; }
.topbar-actions > a { padding: .45rem .6rem; }
.topbar-actions > a:hover, .topbar-menu > summary:hover { background: rgba(255,255,255,.12); }
.topbar-actions > a.is-active, .topbar-menu.is-active > summary { color: #0b5874; background: #fff; border-color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.topbar-actions form { margin: 0; }
.topbar-actions form button { min-height: 42px; padding: .4rem .7rem; color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.5); }
.topbar-menu { position: relative; }
.topbar-menu > summary { min-height: 42px; display: flex; align-items: center; padding: .55rem .75rem; border: 1px solid rgba(255,255,255,.55); border-radius: .45rem; cursor: pointer; list-style: none; }
.topbar-menu > summary::-webkit-details-marker { display: none; }
.topbar-menu > div { position: absolute; right: 0; z-index: 20; display: grid; min-width: 180px; margin-top: .3rem; padding: .4rem; background: #153f5c; border: 1px solid #8daabd; border-radius: .45rem; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.topbar-menu > div a { padding: .55rem; white-space: nowrap; }
.nav-label-short { display: none; }
.page { width: 100%; max-width: 1380px; min-width: 0; margin: 0 auto; padding: clamp(.8rem, 2vw, 1.4rem); }
.page-heading, .compact-head { margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid #d7e1e7; }
.page-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.page-heading p, .compact-head p { color: #607482; }
.class-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; align-items: start; }
.card, .panel { padding: clamp(.9rem, 2vw, 1.2rem); margin-bottom: 1rem; background: #fff; border: 1px solid #d5e0e6; border-radius: .75rem; box-shadow: 0 8px 24px rgba(27, 57, 76, .07); }
.card > :first-child, .panel > :first-child { margin-top: 0; }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.muted { color: #607482; opacity: .88; }
.actions, .inline-form { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; margin: .55rem 0; }
.stack-form { display: grid; gap: .8rem; }
input, select, button, .button, .button-link { min-height: 42px; padding: .55rem .75rem; border: 1px solid #9db0bd; border-radius: .45rem; font: inherit; }
input, select, textarea { max-width: 100%; color: #203646; background: #fff; }
input:focus, select:focus, textarea:focus, button:focus-visible, .button:focus-visible, summary:focus-visible { outline: 3px solid rgba(8, 107, 140, .2); outline-offset: 2px; border-color: #086b8c; }
input[type='checkbox'], input[type='radio'] { width: 1.05rem; height: 1.05rem; min-height: auto; padding: 0; accent-color: #086b8c; }
textarea { width: 100%; padding: .65rem .75rem; border: 1px solid #9db0bd; border-radius: .45rem; font: inherit; resize: vertical; }
button, .button, .button-link { display: inline-flex; align-items: center; justify-content: center; color: white; background: #086b8c; border-color: #086b8c; cursor: pointer; text-decoration: none; font-weight: 650; transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
button:hover, .button:hover, .button-link:hover { color: white; background: #075773; border-color: #075773; box-shadow: 0 4px 12px rgba(8, 78, 103, .14); }
button:active, .button:active, .button-link:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.button.secondary, button.secondary, .secondary { color: #174a61; background: #edf4f7; border-color: #b4c9d3; }
.button.secondary:hover, button.secondary:hover { color: #113d51; background: #dfecef; border-color: #91afbd; }
.danger { background: #a93a3a; border-color: #a93a3a; }
.danger:hover { background: #8d2929; border-color: #8d2929; }
.data-table { width: 100%; border-collapse: collapse; background: white; }
.data-table th, .data-table td { padding: .7rem .75rem; text-align: left; border-bottom: 1px solid #dce4e9; vertical-align: top; }
.data-table th { color: white; background: #255a78; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.data-table tbody tr:nth-child(even), .table-wrap tbody tr:nth-child(even), .table-scroll tbody tr:nth-child(even) { background: #f7fafb; }
.data-table tbody tr:hover, .table-wrap tbody tr:hover, .table-scroll tbody tr:hover { background: #eef5f8; }
.errors { color: #a52222; font-weight: 600; }
.warning { color: #8a5a00; }
.hint { color: #526875; }
.knowledge-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; margin: .8rem 0; padding: .8rem; border: 1px solid #cbd8df; border-radius: .5rem; }
.knowledge-card label, .filter-grid label { display: grid; gap: .3rem; color: #405866; font-weight: 650; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; align-items: end; }
.stage { width: min(70%, 600px); margin: 1rem auto; padding: .6rem; text-align: center; color: white; background: #566979; border-radius: .45rem; }
.seat-scroll { width: 100%; max-width: 100%; min-width: 0; overflow-x: hidden; padding-bottom: .7rem; }
.seat-grid { display: grid; width: 100%; max-width: 100%; min-width: 0; grid-template-columns: repeat(var(--seat-group-count, 8), minmax(0, 1fr)); gap: .4rem; }
.seat-column { min-width: 0; padding: .45rem; background: #eaf1f5; border-radius: .6rem; }
.teacher-view-seats .seat-column { display: flex; flex-direction: column; }
.teacher-view-seats .seat-column > h2 + * { margin-top: auto; }
.seat-preview-grid .seat-column { order: var(--group-order); }
.seat-preview-grid .seat-column > h2 + * { margin-top: .42rem; }
.seat-column h2 { margin: .2rem 0 .65rem; text-align: center; font-size: 1rem; }
.seat-card { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr); gap: .35rem; align-items: center; min-height: 48px; margin: .42rem 0; padding: .5rem; background: white; border: 1px solid #b8c8d2; border-radius: .45rem; overflow-wrap: anywhere; }
.seat-card input { min-height: auto; }
.seat-card small { grid-column: 1 / -1; color: #8a5a00; }
.attendance-seat-card { cursor: pointer; }
.attendance-seat-card.absent { color: #66556e; background: #eee7f2; border-color: #7f618d; }
.attendance-seat-card:has(input:checked) { color: #5b365f; background: #eee7f2; border-color: #7f618d; }
.attendance-seat-card input { accent-color: #7f618d; }
.attendance-seat-state { font-weight: 700; }
.attendance-absence-mark { grid-column: 1 / -1; padding: .12rem .2rem; color: white; background: #7b214f; border-radius: .25rem; text-align: center; font-size: .78rem; }
.summary-list { display: grid; grid-template-columns: minmax(9rem, auto) 1fr; gap: .45rem 1rem; }
.summary-list dt { font-weight: 700; }
.summary-list dd { margin: 0; }
.student-name { min-width: 0; min-height: 44px; margin: .42rem 0; padding: .65rem .4rem; text-align: center; background: white; border: 1px solid #b8c8d2; border-radius: .45rem; font-weight: 650; overflow-wrap: anywhere; }
.student-name span { display: block; margin-top: .2rem; color: #8a5a00; font-size: .72rem; }
.student-name.leader { border-color: #d59b28; background: #fff8dd; }
.student-name.absent { color: #66556e; background: #eee7f2; border-color: #7f618d; }
.absence-badge { display: inline-block; margin-left: .25rem; padding: .1rem .3rem; color: #5b365f; background: #e3d3ea; border: 1px solid #7f618d; border-radius: .3rem; font-weight: 700; }
.absence-summary { display: grid; gap: .4rem; padding-left: 1.3rem; }
.random-selection-summary { margin: .7rem 0; padding: .7rem; background: #e4f4e7; border: 1px solid #379657; border-radius: .45rem; }
.random-selection-summary ul { display: flex; flex-wrap: wrap; gap: .35rem .8rem; margin: .45rem 0 0; padding-left: 1.2rem; }
.knowledge-summary-card { min-width: 0; min-height: 64px; margin: .42rem 0; padding: .48rem .3rem; text-align: center; background: white; border: 2px solid #b8c8d2; border-radius: .45rem; overflow-wrap: anywhere; }
.knowledge-summary-card > strong, .knowledge-summary-card span, .knowledge-summary-card small { display: block; }
.knowledge-summary-card .leader-label { color: #8a5a00; font-size: .7rem; }
.knowledge-summary-card .summary-state { margin-top: .3rem; font-weight: 750; }
.knowledge-summary-card.summary-通过 { color: #135c32; background: #e4f4e7; border-color: #379657; }
.knowledge-summary-card.summary-未通过 { color: #8c2222; background: #fff0f0; border-color: #b33b3b; }
.knowledge-summary-card.summary-缺席 { color: #5b365f; background: #eee7f2; border-color: #7f618d; }
.knowledge-summary-card.summary-未检查 { color: #46535d; background: #f2f4f5; border-color: #9ba8b0; }
.knowledge-issue { margin-top: .35rem; padding-top: .3rem; border-top: 1px solid currentColor; }
.knowledge-issue b, .knowledge-issue span, .knowledge-issue small { display: block; }
.summary-state.pending { color: #7a4b00; background: #ffe6b8; border-radius: .3rem; }
.compact-head { display: flex; gap: .7rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.choice-bar { display: flex; gap: .45rem; overflow-x: auto; margin: .65rem 0; }
.choice { flex: 0 0 auto; padding: .6rem .8rem; color: #16445d; background: #e9f2f6; border: 1px solid #aac2cf; border-radius: .45rem; text-decoration: none; }
.choice.active { color: white; background: #0b6f91; border-color: #0b6f91; }
.attendance-list { display: flex; gap: .4rem; flex-wrap: wrap; margin: .6rem 0; }
.student-toggle { padding: .45rem .6rem; background: #eef3f6; border-radius: .4rem; }
.summary-box { margin: .7rem 0; padding: .7rem; background: #fff8dd; border: 1px solid #e3bd66; border-radius: .45rem; }
.student-check { display: block; min-width: 0; min-height: 48px; margin: .42rem 0; padding: .55rem; text-align: center; background: white; border: 2px solid #b8c8d2; border-radius: .45rem; font-weight: 650; overflow-wrap: anywhere; }
.student-check input { position: absolute; opacity: 0; pointer-events: none; }
.student-check:has(.failed-box:checked) { color: white; background: #b33b3b; border-color: #8c2222; }
.student-check:has(.participant-box:checked) { background: #e4f4e7; border-color: #379657; }
.student-check.absent { color: #66556e; background: #eee7f2; border-color: #9c86a8; }
.student-check.not-participating { opacity: .38; }
.student-check.selected { background: #e4f4e7; border-color: #379657; }
.student-check small { display: block; margin-top: .2rem; color: #526875; }
.table-wrap, .table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #d5e0e6; border-radius: .65rem; background: #fff; }
.table-wrap table, .table-scroll table { width: 100%; border-collapse: collapse; background: white; }
.table-wrap th, .table-wrap td, .table-scroll th, .table-scroll td { padding: .7rem .75rem; border-bottom: 1px solid #dce4e9; text-align: left; vertical-align: top; }
.table-wrap th, .table-scroll th { color: #fff; background: #255a78; font-size: .9rem; white-space: nowrap; }
.failure-choice { display: block; margin-top: .3rem; color: #a52222; font-size: .8rem; }
.student-check.failed { color: white; background: #b33b3b; border-color: #8c2222; }
.homework-choice { display: block; margin-top: .35rem; padding: .35rem .25rem; color: #183047; background: #edf2f5; border: 1px solid #b8c8d2; border-radius: .35rem; cursor: pointer; font-size: .76rem; line-height: 1.2; }
.homework-choice.active { color: white; background: #2b874f; border-color: #1e6a3c; }
.homework-failure-choice.active { color: white; background: #b33b3b; border-color: #8c2222; }
.homework-choice.disabled { color: #66556e; background: #eee7f2; border-color: #9c86a8; cursor: not-allowed; opacity: .75; }
.homework-student-card.selected, .student-check.selected { background: #e4f4e7; border-color: #379657; }
.student-check.participating { background: #e8f1fb; border-color: #2f75b5; }
.homework-recheck-card { cursor: pointer; }
.student-check.prior-failed { color: #5a3d00; background: #fff1c7; border-color: #c58a00; }
.student-check.prior-absent { color: #5b365f; background: #eee7f2; border-color: #7f618d; }
.student-check.prior-failed small, .student-check.prior-absent small { color: inherit; font-weight: 750; }
.history-issue-summary { display: inline-grid; gap: .25rem; min-width: min(100%, 18rem); padding: .35rem; vertical-align: top; }
.history-issue-summary small { color: #526875; line-height: 1.45; }
.student-profile-link { display: inline-flex; min-height: 38px; align-items: center; font-weight: 750; }
.student-profile-period { align-items: center; margin-bottom: 1rem; }
.student-profile-period > span { color: #607482; font-size: .84rem; }
.student-profile-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.student-profile-overview article { display: grid; gap: .12rem; padding: .8rem; background: #fff; border: 1px solid #d5e0e6; border-top: 4px solid #4b8ca5; border-radius: .65rem; box-shadow: 0 5px 16px rgba(27,57,76,.06); }
.student-profile-overview small, .student-profile-overview span { color: #607482; }
.student-profile-overview strong { color: #153f5c; font-size: 1.65rem; line-height: 1.1; }
.student-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.student-profile-section { min-width: 0; margin: 0; }
.student-profile-section .section-heading { margin-bottom: .45rem; }
.student-profile-list { display: grid; gap: .42rem; }
.student-profile-list > article { display: grid; grid-template-columns: minmax(5.6rem, auto) minmax(0, 1fr); gap: .65rem; align-items: start; padding: .55rem .6rem; background: #f6f9fb; border: 1px solid #dce6eb; border-radius: .48rem; }
.student-profile-list time, .profile-todo-type { color: #526875; font-size: .78rem; font-weight: 750; }
.student-profile-list div { display: grid; min-width: 0; gap: .08rem; }
.student-profile-list strong, .student-profile-list small { overflow-wrap: anywhere; }
.student-profile-list small { color: #607482; }
.student-profile-pending { grid-column: 1 / -1; }
.student-profile-pending .student-profile-list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.profile-result { font-weight: 750; }
.result-过关 { color: #19713c; }
.result-未过关 { color: #a52222; }
@media (max-width: 760px) {
  .student-profile-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-profile-grid { grid-template-columns: 1fr; }
  .student-profile-pending { grid-column: auto; }
}
@media (orientation: landscape) and (max-width: 1100px) {
  .student-profile-heading { margin-bottom: .45rem; padding-bottom: .4rem; }
  .student-profile-period { margin: .25rem 0 .6rem; }
  .student-profile-overview { gap: .35rem; margin-bottom: .6rem; }
  .student-profile-overview article { padding: .42rem .55rem; }
  .student-profile-overview strong { font-size: 1.15rem; }
  .student-profile-grid { gap: .55rem; }
  .student-profile-section { padding: .6rem; }
  .student-profile-list { max-height: 34vh; overflow-y: auto; }
  .student-profile-list > article { padding: .35rem .45rem; }
}
.daily-score-date-form { display: flex; gap: .5rem; align-items: end; flex-wrap: wrap; }
.daily-score-date-form label { display: grid; gap: .2rem; color: #405866; font-weight: 700; }
.daily-score-date-form label span { font-size: .76rem; }
.daily-score-date-form select { min-width: 220px; }
.exercise-create-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.exercise-create-form label { display: grid; gap: .28rem; color: #405866; font-weight: 700; }
.exercise-create-form .exercise-content-field { grid-column: 1 / -1; }
.exercise-content-field textarea { width: 100%; min-height: 96px; padding: .6rem .7rem; }
.exercise-create-form > button { justify-self: start; }
.exercise-task-card { display: grid; gap: .7rem; border-top: 4px solid #5d96aa; }
.exercise-task-card h2, .exercise-task-card p { margin: 0; }
.exercise-task-content { display: grid; gap: .18rem; padding: .65rem .75rem; background: #f5f9fa; border-radius: .5rem; }
.exercise-task-content small, .exercise-task-meta dt { color: #607482; font-size: .76rem; font-weight: 750; }
.exercise-task-content p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.exercise-task-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0; }
.exercise-task-meta > div { display: grid; gap: .12rem; padding: .55rem .65rem; background: #eef4f6; border-radius: .45rem; }
.exercise-task-meta dd { margin: 0; font-weight: 750; }
.exercise-task-actions { align-items: flex-start; }
.exercise-history-results { display: grid; gap: .25rem; color: #526875; font-size: .78rem; line-height: 1.45; }
.exercise-history-results span { display: grid; gap: .06rem; }
.exercise-history-results b { color: #304f5e; }
.exercise-run-summary { display: grid; gap: .55rem; }
.exercise-run-summary > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .55rem; align-items: start; }
.exercise-run-summary > div + div { padding-top: .5rem; border-top: 1px solid #ead496; }
.exercise-run-summary span { overflow-wrap: anywhere; line-height: 1.55; }
.exercise-check-card { display: grid; gap: .3rem; }
.exercise-student-name, .exercise-student-status { display: block; }
.homework-recheck-card .homework-result-buttons, .homework-first-card .homework-result-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.homework-student-card.failed, .student-check.failed { color: white; background: #b33b3b; border-color: #8c2222; }
.student-check.failed small { color: #fff; }
.lesson-actions { width: 100%; max-width: 100%; min-width: 0; }
.lesson-actions .button { min-width: 0; white-space: normal; text-align: center; }
.participant-choice { display: block; cursor: pointer; }
.participant-choice small { display: block; margin-top: .2rem; color: #526875; }
.result-choice { display: grid; gap: .45rem; }
.check-absence-choice { display: block; margin-top: .28rem; padding: .22rem .15rem; color: #4e5961; background: #edf1f3; border: 1px solid #b8c8d2; border-radius: .3rem; cursor: pointer; font-size: .75rem; }
.student-check.previously-absent { color: #56376d; background: #f0e5f7; border-color: #9a6eb4; }
.student-check .previous-absence-mark { color: #6f4388; font-weight: 700; }
.student-check .prior-knowledge-failures { margin: .12rem 0; color: #754d00; font-size: .7rem; font-weight: 750; line-height: 1.25; }
.student-check .prior-knowledge-failures b { color: inherit; }
.student-check .leader-current-failures { margin: .1rem 0; color: #704700; font-size: .68rem; font-weight: 800; line-height: 1.18; }
.student-check .leader-current-failures b { color: #8c2222; }
.student-check.check-absent { color: #4d5961; background: #dfe3e6; border-color: #788790; }
.student-check.check-absent .check-absence-choice { color: white; background: #66757e; border-color: #536169; }
.student-check.check-absent .previous-absence-mark { color: #4d5961; }
.check-student-name { display: block; margin-bottom: .28rem; }
.check-state-buttons { display: grid; gap: .2rem; }
.two-state-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.four-state-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-state-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.knowledge-fail-buttons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .18rem; margin-top: .24rem; }
.knowledge-fail-label { grid-column: 1 / -1; color: #7a2525; font-size: .72rem; font-weight: 800; text-align: left; }
.knowledge-fail-button { display: flex; min-width: 0; min-height: 30px; align-items: center; justify-content: center; color: #7a2525; background: #f8e7e7; border: 1px solid #d49a9a; border-radius: .32rem; cursor: pointer; font-size: .78rem; font-weight: 800; }
.knowledge-fail-button.active { color: white; background: #b33b3b; border-color: #8c2222; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.check-knowledge-legend { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: .25rem .1rem; align-items: center; line-height: 1.45; }
.check-knowledge-legend span { overflow-wrap: anywhere; }
.check-knowledge-legend b { margin-right: .12rem; color: #8c2222; }
.seat-fullscreen-knowledge-legend { position: sticky; top: 0; z-index: 4; margin: 0 0 .35rem; padding: .45rem .55rem; color: #294e63; background: #fff8dd; border: 1px solid #dcc46e; border-radius: .45rem; }
.check-knowledge-list { display: grid; gap: .45rem; margin-bottom: 0; }
.check-knowledge-list small { display: block; margin-top: .12rem; color: #607482; }
.check-state-button, .check-status-button { min-width: 0; min-height: 34px; padding: .3rem .12rem; color: #183047; background: #edf2f5; border: 1px solid #b8c8d2; border-radius: .35rem; cursor: pointer; font-size: .74rem; line-height: 1.1; white-space: normal; }
.check-state-button { display: flex; align-items: center; justify-content: center; }
.check-state-button.absence.active, .check-status-button.absence.active { color: white; background: #66757e; border-color: #536169; }
.check-status-button.pending.active { color: #4d3700; background: #ffe7a3; border-color: #c58a00; }
.check-status-button.pass.active { color: white; background: #2b874f; border-color: #206b3d; }
.check-state-button.fail.active, .check-status-button.fail.active { color: white; background: #b33b3b; border-color: #8c2222; }
.student-check.partial-student:has(.participant-box:checked) { color: #4d3700; background: #fff1c7; border-color: #c58a00; }
.student-check.check-pending { color: #4d3700; background: #fff1c7; border-color: #c58a00; }
.student-check.check-pass { color: #135c32; background: #dcefe3; border-color: #2b874f; }
.student-check.check-fail { color: white; background: #b33b3b; border-color: #8c2222; }
.student-check.check-fail small { color: white; }
.result-student-name { display: block; }
.result-state { display: block; padding: .25rem; border-radius: .35rem; }
.state-undecided { color: #46535d; background: #e5e9ec; }
.state-pass { color: #135c32; background: #dcefe3; }
.state-fail { color: #8c2222; background: #f8dddd; }
.state-pending { color: #7a4b00; background: #ffe6b8; }
.result-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem; }
.result-button { min-width: 0; min-height: 38px; padding: .3rem .1rem; color: #183047; background: #edf2f5; border-color: #b8c8d2; font-size: .78rem; white-space: normal; }
.result-button.pass.active { color: white; background: #2b874f; border-color: #206b3d; }
.result-button.fail.active { color: white; background: #b33b3b; border-color: #8c2222; }
.result-button.absent.active { color: white; background: #66757e; border-color: #536169; }
.old-review-seat-card { grid-template-columns: 1fr; text-align: center; }
.old-review-seat-card.review-pending-student { background: #fff1c7; border: 2px solid #c58a00; }
.old-review-seat-card.review-selected { background: #e8f1fb; border-color: #2f75b5; }
.old-review-seat-card.review-result-pass { background: #dcefe3; border-color: #2b874f; }
.old-review-seat-card.review-result-fail { color: white; background: #b33b3b; border-color: #8c2222; }
.old-review-seat-card.review-result-fail small { color: white; }
.old-review-fail-toggle, .review-participant-toggle { display: flex; justify-content: center; align-items: center; gap: .25rem; min-height: 34px; cursor: pointer; }
.old-review-fail-toggle:has(input:checked) { color: white; background: #b33b3b; border-radius: .35rem; }
.review-result-buttons[hidden] { display: none; }
.review-seat-state { min-height: 1.2em; }
.save-message { display: inline-block; margin-left: .5rem; font-weight: 700; }
.success-text { color: #135c32; }
.score-grid { display: grid; grid-template-columns: repeat(8, minmax(120px, 1fr)); gap: .55rem; min-width: 1024px; overflow-x: auto; margin: .8rem 0; }
.score-card { display: grid; gap: .45rem; padding: .8rem; text-align: center; color: #183047; background: white; border: 1px solid #b8c8d2; border-radius: .55rem; text-decoration: none; }
.score-card b { color: #0b6f91; font-size: 1.5rem; }
.student-action { display: block; width: 100%; min-width: 0; min-height: 58px; margin: .42rem 0; padding: .5rem; color: #183047; background: white; border: 2px solid #b8c8d2; font-weight: 650; white-space: normal; overflow-wrap: anywhere; }
.student-action:hover { border-color: #0b6f91; background: #e8f6fb; }
.student-action span, .student-action small { display: block; font-size: .72rem; }
.student-action.absent { color: #66556e; background: #eee7f2; border-color: #9c86a8; }
.student-action.saved { color: white; background: #2b874f; border-color: #1e6a3c; }
.student-action.pending { color: #4d3700; background: #ffe7a3; border-color: #c58a00; }
.student-action[role='button'] { cursor: pointer; }
.student-action.disabled { pointer-events: none; opacity: .7; }
.student-status-legend { display: flex; flex-wrap: wrap; gap: .3rem .7rem; margin: .45rem 0; padding: .38rem .55rem; color: #405866; background: #f4f7f9; border: 1px solid #d5e0e6; border-radius: .42rem; font-size: .72rem; }
.student-status-legend span { display: inline-flex; align-items: center; gap: .2rem; white-space: nowrap; }
.student-status-dot, .student-status-hint i { width: .48rem; height: .48rem; flex: 0 0 .48rem; border-radius: 50%; background: currentColor; }
.student-status-hints { display: flex !important; justify-content: center; flex-wrap: wrap; gap: .12rem; margin-top: .2rem; }
.student-status-hint { display: inline-flex !important; align-items: center; justify-content: center; gap: .12rem; min-width: 1.55rem; min-height: 1.12rem; padding: .04rem .18rem; border: 1px solid currentColor; border-radius: 999px; background: white; font-size: .62rem !important; font-weight: 800; line-height: 1; text-decoration: none; white-space: nowrap; }
.student-status-hint.remediation, .student-status-dot.remediation { color: #9a5b00; }
.student-status-hint.homework, .student-status-dot.homework { color: #176b3d; }
.student-status-hint.random, .student-status-dot.random { color: #126d91; }
.student-status-hint.absent, .student-status-dot.absent { color: #75458c; }
.student-action.saved .student-status-hint, .student-check.check-fail .student-status-hint { background: rgba(255, 255, 255, .94); }
.student-status-dialog { width: min(94vw, 620px); max-height: min(82vh, 680px); padding: 0; color: #183047; background: white; border: 1px solid #9fb4c0; border-radius: .7rem; box-shadow: 0 1rem 3rem rgba(20, 47, 62, .28); text-align: left; }
.student-status-dialog::backdrop { background: rgba(15, 34, 45, .48); }
.student-status-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .7rem .85rem; background: white; border-bottom: 1px solid #d8e2e7; }
.student-status-dialog-head h2 { margin: 0; font-size: 1.05rem; }
.student-status-dialog-head .student-status-close { min-width: 2rem; min-height: 2rem; padding: .1rem; color: #405866; background: #edf2f5; }
.student-status-dialog-body { display: grid; gap: .55rem; padding: .7rem .85rem; overflow-y: auto; }
.student-status-dialog-body section { padding: .6rem; background: #f7f9fa; border: 1px solid #d8e2e7; border-radius: .5rem; }
.student-status-dialog-body section.is-current-status { border-color: #1680a3; box-shadow: inset 0 0 0 1px #1680a3; }
.student-status-dialog-body h3 { display: flex; align-items: center; gap: .35rem; margin: 0 0 .4rem; font-size: .92rem; }
.student-status-dialog-body ul { display: grid; gap: .35rem; margin: 0 0 .55rem; padding-left: 1.15rem; }
.student-status-dialog-body li span { display: block; margin-top: .08rem; color: #526875; font-size: .75rem; }
.student-status-dialog-body li > a { display: inline-block; margin-top: .16rem; font-size: .75rem; }
.student-status-dialog-body p { margin: .2rem 0 .55rem; font-size: .82rem; }
.student-status-dialog-body .button { min-height: 30px; padding: .3rem .55rem; font-size: .78rem; }
.student-status-dialog-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; padding: .55rem .85rem; background: white; border-top: 1px solid #d8e2e7; }
.quick-save-icon { display: none !important; margin-top: .2rem; font-size: 1rem !important; }
.student-action.saved .quick-save-icon { display: block !important; }
.award { display: inline-block; margin: .1rem; padding: .25rem .45rem; color: #765100; background: #fff1ae; border-radius: .35rem; font-weight: 700; }
.award.progress { color: #165c38; background: #d9f3e5; }
.seat-view-shell { min-width: 0; }
.seat-view-toolbar { display: flex; justify-content: flex-end; align-items: center; gap: .55rem; margin: .25rem 0; }
.seat-view-message { color: #526875; font-size: .8rem; }
.seat-fullscreen-toggle { min-height: 34px; padding: .35rem .6rem; font-size: .82rem; }
body.seat-fullscreen-open { overflow: hidden; }
.seat-view-shell.is-seat-fullscreen { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; padding: .18rem; background: #f3f6f8; }
.seat-view-shell.is-seat-fullscreen.is-seat-rotated {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 100vh;
  width: 100dvh;
  height: 100vw;
  height: 100dvw;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
}
.seat-view-shell.is-seat-fullscreen .seat-view-toolbar { margin: 0 0 .12rem; }
.seat-view-shell.is-seat-fullscreen .seat-scroll { height: 100%; padding: 0; overflow: hidden; }
.seat-view-shell.is-seat-fullscreen .seat-view-stage { width: 42%; margin: .1rem auto 0; padding: .12rem; font-size: clamp(.5rem, 1vw, .68rem); line-height: 1; }
.seat-view-shell.is-seat-fullscreen .seat-fullscreen-knowledge-legend { position: static; flex-wrap: nowrap; gap: .12rem; overflow: hidden; margin: 0 0 .1rem; padding: .12rem .2rem; border-radius: .2rem; font-size: clamp(.46rem, .92vw, .62rem); line-height: 1.08; white-space: nowrap; }
.seat-view-shell.is-seat-fullscreen .seat-fullscreen-knowledge-legend span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.seat-view-shell.is-seat-fullscreen .seat-grid { display: flex; flex-wrap: nowrap; gap: .1rem; width: 100%; max-width: none; }
.seat-view-shell.is-seat-fullscreen .seat-column { flex: 1 1 0; width: 0; min-width: 0; padding: .1rem; border-radius: .25rem; }
.seat-view-shell.is-seat-fullscreen .seat-column h2 { margin: 0 0 .12rem; font-size: clamp(.58rem, 1.25vw, .78rem); line-height: 1.05; }
.seat-view-shell.is-seat-fullscreen .seat-card,
.seat-view-shell.is-seat-fullscreen .student-name,
.seat-view-shell.is-seat-fullscreen .student-check,
.seat-view-shell.is-seat-fullscreen .student-action,
.seat-view-shell.is-seat-fullscreen .knowledge-summary-card { min-height: 24px; margin: .04rem 0; padding: .08rem .05rem; border-width: 1px; border-radius: .22rem; font-size: clamp(.5rem, 1.05vw, .68rem); line-height: 1.02; }
.seat-view-shell.is-seat-fullscreen .student-action span,
.seat-view-shell.is-seat-fullscreen .student-action small,
.seat-view-shell.is-seat-fullscreen .student-check small,
.seat-view-shell.is-seat-fullscreen .student-name span,
.seat-view-shell.is-seat-fullscreen .seat-card small { margin-top: .05rem; font-size: clamp(.46rem, .92vw, .6rem); line-height: 1; }
.seat-view-shell.is-seat-fullscreen .student-status-hints { flex-wrap: nowrap; gap: .03rem; margin-top: .03rem; overflow: hidden; }
.seat-view-shell.is-seat-fullscreen .student-status-hint { min-width: 0; min-height: .72rem; padding: .01rem .08rem; border-width: 1px; font-size: clamp(.4rem, .76vw, .5rem) !important; }
.seat-view-shell.is-seat-fullscreen .student-status-hint i { width: .3rem; height: .3rem; flex-basis: .3rem; }
.seat-view-shell.is-seat-fullscreen .result-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .06rem; }
.seat-view-shell.is-seat-fullscreen .result-button { min-height: 22px; padding: .08rem .02rem; font-size: clamp(.48rem, .95vw, .62rem); line-height: 1; }
.seat-view-shell.is-seat-fullscreen .check-student-name { margin-bottom: .05rem; }
.seat-view-shell.is-seat-fullscreen .check-state-buttons { gap: .05rem; }
.seat-view-shell.is-seat-fullscreen .check-state-button,
.seat-view-shell.is-seat-fullscreen .check-status-button { min-height: 19px; padding: .04rem .01rem; font-size: clamp(.43rem, .84vw, .56rem); line-height: 1; }
.seat-view-shell.is-seat-fullscreen .knowledge-fail-buttons { gap: .04rem; margin-top: .05rem; }
.seat-view-shell.is-seat-fullscreen .knowledge-fail-button { min-height: 18px; padding: .02rem; font-size: clamp(.43rem, .84vw, .56rem); }
.seat-view-shell.is-seat-fullscreen .homework-choice { margin-top: .08rem; padding: .08rem .02rem; font-size: clamp(.46rem, .9vw, .58rem); }
.seat-view-shell.is-seat-fullscreen .homework-recheck-card .homework-result-buttons,
.seat-view-shell.is-seat-fullscreen .homework-first-card .homework-result-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seat-view-shell.is-seat-fullscreen .attendance-seat-card.absent { color: white; background: #7b214f; border-color: #4f1130; box-shadow: inset 0 0 0 1px white; }
.seat-view-shell.is-seat-fullscreen .attendance-seat-card.absent small { color: white; }
.seat-view-shell.is-seat-fullscreen .attendance-absence-mark { padding: .04rem; background: white; color: #7b214f; font-size: clamp(.48rem, .95vw, .62rem); }
.seat-view-shell.is-seat-fullscreen .knowledge-issue { margin-top: .08rem; padding-top: .06rem; }
.seat-view-actions { display: flex; justify-content: center; gap: .25rem; min-width: 0; padding-top: .15rem; }
.seat-view-actions .seat-fullscreen-action { min-width: 0; min-height: 28px; flex: 1 1 0; padding: .2rem .3rem; font-size: clamp(.58rem, 1.2vw, .78rem); white-space: normal; }
@media (max-width: 1100px) {
  .topbar { display: grid; grid-template-columns: 1fr; gap: .5rem; padding: .55rem .75rem; }
  .topbar-brand { justify-self: start; }
  .topbar-brand-copy strong { font-size: 1.08rem; }
  .topbar-brand-copy small { display: none; }
  .topbar-actions { display: grid; width: 100%; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .3rem; }
  .topbar-actions > a, .topbar-actions > details > summary, .topbar-actions form button { width: 100%; min-height: 34px; padding: .28rem .35rem; font-size: .76rem; white-space: nowrap; }
  .nav-label-full { display: none; }
  .nav-label-short { display: inline; }
}
@media (orientation: landscape) and (max-width: 1100px) {
  .page { padding: .2rem; max-width: none; }
  .seat-view-toolbar { margin: .12rem 0; gap: .3rem; }
  .seat-view-message { font-size: .66rem; }
  .seat-fullscreen-toggle { min-height: 28px; padding: .2rem .38rem; font-size: .68rem; }
  .seat-scroll { padding-bottom: .2rem; }
  .seat-grid { grid-template-columns: repeat(var(--seat-group-count, 8), minmax(0, 1fr)); gap: .1rem; }
  .seat-column { padding: .12rem; border-radius: .25rem; }
  .seat-column h2 { margin: 0 0 .14rem; font-size: clamp(.58rem, 1.25vw, .76rem); line-height: 1.05; }
  .seat-card, .student-name, .student-check, .student-action, .knowledge-summary-card { min-height: 32px; margin: .1rem 0; padding: .16rem .08rem; border-radius: .25rem; font-size: clamp(.54rem, 1.15vw, .74rem); line-height: 1.08; }
  .student-action span, .student-action small, .student-check small, .student-name span, .seat-card small { margin-top: .06rem; font-size: clamp(.46rem, .9vw, .58rem); line-height: 1; }
  .student-status-legend { gap: .18rem .45rem; margin: .2rem 0; padding: .2rem .35rem; font-size: .58rem; }
  .student-status-hints { flex-wrap: nowrap; gap: .04rem; margin-top: .04rem; overflow: hidden; }
  .student-status-hint { min-width: 0; min-height: .82rem; padding: .02rem .1rem; font-size: clamp(.42rem, .82vw, .54rem) !important; }
  .student-status-hint i { width: .32rem; height: .32rem; flex-basis: .32rem; }
  .result-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .06rem; }
  .result-button { min-height: 24px; padding: .1rem .02rem; font-size: clamp(.48rem, .95vw, .62rem); line-height: 1; }
  .homework-choice { margin-top: .1rem; padding: .1rem .04rem; font-size: clamp(.46rem, .9vw, .6rem); }
  .stage { margin: .25rem auto; padding: .2rem; font-size: .68rem; }
}
@media (orientation: portrait) and (max-width: 800px) {
  .seat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
}
.warning,.danger-panel,.error-box,.success { padding:1rem; border-radius:.6rem; margin:1rem 0; }
.warning { background:#fff4cc; border:1px solid #d5a900; }
.danger-panel,.error-box { background:#fff0f0; border:1px solid #b42318; }
.success { background:#e9f8ef; border:1px solid #18864b; }
.summary-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:.7rem; }
.summary-grid>div { display:flex; flex-direction:column; gap:.2rem; min-width:0; background:#f4f7fa; padding:.8rem; border:1px solid #e1e8ec; border-radius:.5rem; overflow-wrap:anywhere; }
.summary-grid>div strong { color:#49606e; font-size:.82rem; }
.summary-grid>div span { color:#183b50; font-weight:700; }
.wrap-actions { display:flex; flex-wrap:wrap; gap:.6rem; }
.button-link { background:#086b8c; color:white; }
.danger,.danger-link { background:#b42318!important; color:white!important; }
.actions-cell { display:flex; flex-wrap:wrap; gap:.35rem; min-width:220px; }
.actions-cell form { display:inline; }
.table-scroll { overflow-x:auto; }
.filters { display:flex; gap:.75rem; flex-wrap:wrap; align-items:end; margin:1rem 0; }
.filters label, .actions > label, .stack-form label { display:grid; gap:.3rem; color:#405866; font-weight:650; }
.class-card { display:grid; gap:.75rem; border-top:4px solid #0b789c; }
.class-card-disabled { border-top-color:#9aa9b2; background:#fafbfc; }
.class-card-header { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.class-card-header h2 { margin:0; }
.status-badge { display:inline-flex; align-items:center; min-height:28px; padding:.2rem .55rem; border-radius:999px; font-size:.78rem; font-weight:750; white-space:nowrap; }
.status-active { color:#12613a; background:#e1f2e8; border:1px solid #91c8a7; }
.status-inactive { color:#5d6870; background:#edf0f2; border:1px solid #c5cdd2; }
.class-card-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem; margin:0; }
.class-card-actions .button { min-width:0; padding:.5rem .35rem; text-align:center; white-space:normal; }
.class-directory-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; }
.class-directory { min-width:0; border:1px solid #d4e1e7; border-radius:.55rem; background:#f7fafb; }
.class-directory > summary { display:grid; gap:.1rem; padding:.65rem .75rem; color:#214c60; list-style:none; }
.class-directory > summary::-webkit-details-marker { display:none; }
.class-directory > summary::after { content:'展开'; justify-self:end; margin-top:-1.25rem; color:#607482; font-size:.75rem; }
.class-directory[open] > summary::after { content:'收起'; }
.class-directory > summary small { color:#607482; font-weight:500; }
.class-directory-links { display:grid; gap:.35rem; padding:0 .65rem .65rem; }
.class-directory-links a { padding:.5rem .6rem; color:#174a61; background:#fff; border:1px solid #d6e2e7; border-radius:.4rem; font-weight:700; text-align:center; }
.class-management { padding-top:.65rem; border-top:1px solid #e0e7eb; }
.class-management > summary, .correction-panel > summary, details.panel > summary { cursor:pointer; color:#335669; font-weight:750; }
.class-management > summary { list-style:none; }
.class-management > summary::before { content:'＋'; display:inline-block; margin-right:.35rem; }
.class-management[open] > summary::before { content:'－'; }
.class-management .inline-form { margin-top:.75rem; }
.class-management-open { display:grid; gap:.65rem; }
.panel > h2 { padding-bottom:.5rem; border-bottom:1px solid #e2e9ed; }
details > summary { cursor:pointer; }
ul, ol { padding-left:1.35rem; }
li + li { margin-top:.3rem; }
.status-正常 { color:#16784a; }
.status-有警告 { color:#9a6700; }
.status-严重错误 { color:#b42318; }
.auth-page { min-height:100vh; display:grid; place-items:center; }
.auth-card { max-width:32rem; margin:2rem auto; width:min(92vw,32rem); }
.muted { color:#64748b; font-size:.92rem; }
.daily-failure-form { margin: .22rem 0; }
.daily-failure-card { width: 100%; min-height: 76px; cursor: pointer; }
.daily-failure-card.included { color: white; background: #b33b3b; border-color: #8c2222; }
.daily-failure-card.included small { color: white; }
.daily-failure-card:disabled { cursor: wait; opacity: .72; }
.daily-failure-reasons, .daily-failure-next { display: block; margin-top: .2rem; font-size: .68rem; }
.daily-failure-source { display: block; margin-top: .2rem; font-weight: 750; }
.daily-failure-action { display: block; margin-top: .3rem; padding: .18rem .3rem; border-radius: .3rem; background: #e8f0fe; color: #174ea6; font-size: .72rem; font-weight: 800; }
.daily-failure-card.included .daily-failure-action { background: #fff; color: #8c2222; }
.daily-summary-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.daily-summary-filter { flex: 1 1 560px; margin: 0; }
.daily-summary-export { flex: 0 0 auto; margin: 0; }
.daily-overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .55rem; }
.daily-overview-grid article { display: grid; gap: .15rem; justify-items: center; padding: .7rem .35rem; text-align: center; background: #f4f8fa; border: 1px solid #cfdee5; border-radius: .55rem; }
.daily-overview-grid strong { color: #0b6285; font-size: 1.45rem; }
.daily-overview-grid span { color: #526a77; font-size: .78rem; font-weight: 700; }
.daily-publish-details > summary { list-style: none; margin: -.15rem 0; }
.daily-publish-details > summary::-webkit-details-marker { display: none; }
.daily-publish-details > summary strong { font-size: 1.05rem; }
.daily-publish-details > summary small { display: block; margin-top: .15rem; color: #607482; }
.daily-publish-body { margin-top: 1rem; }
.daily-summary-details-body { display: grid; gap: .55rem; }
.daily-table-details { overflow: hidden; border: 1px solid #d6e2e8; border-radius: .55rem; }
.daily-table-details > summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem .75rem; color: #244d61; background: #f5f8fa; font-weight: 800; }
.daily-table-details[open] > summary { color: #fff; background: #225d78; }
.daily-table-details[open] > summary .count-badge { color: #225d78; background: #fff; }
.daily-table-details > .table-wrap, .daily-table-details > .hint { margin: .7rem; }
.correction-panel > summary { list-style: none; cursor: pointer; font-weight: 750; }
.correction-panel > summary::-webkit-details-marker { display: none; }
.feedback-list { display: grid; gap: .55rem; margin-top: .7rem; }
.feedback-list-row { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: .65rem; align-items: start; padding-bottom: .55rem; border-bottom: 1px solid #e2e8ec; }
.feedback-list-detail { display: block; margin-top: .16rem; color: #526875; font-size: .78rem; font-weight: 700; line-height: 1.35; }
.name-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.name-tags span { padding: .22rem .55rem; background: #e8f0fe; border: 1px solid #bdd0e0; border-radius: 999px; }
.name-tags .empty-tag { color: #697985; background: #f3f5f6; }
.student-feedback-grid, .group-score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .7rem; margin-top: .7rem; }
.student-feedback-card, .group-score-card { padding: .75rem; background: white; border: 1px solid #cbd8df; border-radius: .55rem; overflow-wrap: anywhere; }
.student-feedback-card h3 { margin: 0 0 .55rem; color: #0b6285; font-size: 1.05rem; }
.student-feedback-card p, .group-score-card p { margin: .4rem 0; white-space: pre-line; }
.group-score-card header { display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; align-items: center; padding-bottom: .55rem; border-bottom: 1px solid #e2e8ec; }
.group-score-card header b { color: #0b6f91; font-size: 1.55rem; }
.group-score-card header span { grid-column: 1 / -1; color: #697985; }
.score-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; margin: .65rem 0; }
.score-breakdown span { display: flex; justify-content: space-between; padding: .4rem; background: #f3f6f8; border-radius: .35rem; }
.review-toolbar { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)) auto; gap: .7rem; align-items: end; }
.review-toolbar label, .review-field { display: grid; gap: .3rem; }
.review-schedule { display: grid; gap: .7rem; }
.review-schedule-form { display: grid; gap: .75rem; }
.review-line { display: grid; gap: .25rem; padding: .75rem; background: #f3f7f9; border-left: 4px solid #0b6f91; border-radius: .35rem; }
.review-line > span { color: #526875; font-size: .9rem; }
.review-line small { color: #697985; }
.review-choice-group { display: grid; gap: .45rem; margin: 0; padding: .7rem; border: 1px solid #cbd8df; border-radius: .5rem; }
.review-choice-group label { display: grid; grid-template-columns: auto 1fr; gap: .5rem; align-items: center; min-height: 44px; padding: .45rem .55rem; background: #f8fafb; border-radius: .4rem; }
.review-choice-group input { min-height: auto; }
.correction-panel { margin-top: .8rem; padding: .75rem; border: 1px dashed #c58a00; border-radius: .5rem; background: #fffaf0; }
.correction-row { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: .6rem; align-items: center; padding: .55rem 0; border-top: 1px solid #eadbbd; }

/* 内部工作页面：清楚区分上下文、高频操作、内容与低频管理。 */
.workspace-heading { align-items: flex-start; padding: clamp(.85rem, 2vw, 1.2rem); background: linear-gradient(135deg, #fff 0%, #f2f7fa 100%); border: 1px solid var(--border); border-radius: .8rem; box-shadow: var(--shadow); }
.workspace-heading > div:first-child { min-width: min(100%, 20rem); }
.section-kicker { display: block; margin-bottom: .2rem; color: #0b6f91; font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.context-tags { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .55rem; }
.context-tags > span:not(.status-badge), .count-badge { display: inline-flex; align-items: center; min-height: 28px; padding: .2rem .55rem; color: #45606f; background: #edf3f6; border: 1px solid #cedce3; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.status-草稿, .status-warning { color: #805600; background: #fff1c7; border-color: #d9ae49; }
.status-进行中 { color: #075f76; background: #e0f3f8; border-color: #83c4d4; }
.status-已结束 { color: #27547b; background: #e8eff8; border-color: #a8bfd9; }
.status-已归档 { color: #606b72; background: #eceff1; border-color: #c7ced2; }
.lesson-workspace-heading { display: grid; grid-template-columns: minmax(15rem, .72fr) minmax(32rem, 1.8fr); align-items: stretch; }
.lesson-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin: 0; }
.workspace-action { display: grid; gap: .12rem; align-content: center; justify-items: start; min-height: 76px; padding: .65rem .7rem; text-align: left; }
.workspace-action strong { font-size: .92rem; }
.workspace-action small { color: #607482; font-size: .7rem; font-weight: 500; line-height: 1.3; }
.workspace-action-primary small { color: rgba(255,255,255,.82); }
.section-heading { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; margin-bottom: .8rem; padding-bottom: .65rem; border-bottom: 1px solid #e1e8ec; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading > .button, .section-heading > .status-badge, .section-heading > .count-badge { flex: 0 0 auto; }
.feature-panel { border-left: 4px solid #0b789c; }
.workspace-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .55rem; }
.workspace-link-grid > a { display: grid; gap: .2rem; min-width: 0; padding: .7rem; color: #16445d; background: #f4f8fa; border: 1px solid #ccdae2; border-radius: .55rem; text-decoration: none; }
.workspace-link-grid > a:hover { color: #0a536d; background: #eaf3f6; border-color: #8eb6c7; }
.workspace-link-grid small { color: #607482; line-height: 1.35; }
.lesson-overview-grid { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.7fr); gap: 1rem; align-items: start; }
.lesson-knowledge-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .65rem; }
.lesson-knowledge-list article { padding: .7rem; background: #f7fafb; border: 1px solid #d8e3e8; border-radius: .55rem; }
.lesson-knowledge-list header { display: grid; gap: .15rem; padding-bottom: .45rem; border-bottom: 1px solid #e0e7eb; }
.lesson-knowledge-list header span { color: #607482; font-size: .8rem; }
.lesson-knowledge-list p { font-size: .9rem; }
.seat-workspace-section { overflow: hidden; }
.lesson-lifecycle-panel { border-top: 3px solid #7892a1; }
.lesson-state-actions { margin-bottom: .8rem; }
.management-details { border-top: 1px solid #dce5ea; }
.management-details > summary { padding: .8rem 0 .2rem; color: #315467; font-weight: 750; }
.management-details-body { display: grid; gap: .8rem; padding-top: .7rem; }
.export-link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.export-link-grid form, .export-link-grid button { width: 100%; height: 100%; }
.archive-form { display: flex; justify-content: space-between; gap: .7rem; align-items: center; padding-top: .75rem; border-top: 1px dashed #d2b6b6; }
.archive-form label { display: flex; gap: .45rem; align-items: center; }
.toolbar-panel { margin-bottom: 1rem; background: #f9fbfc; box-shadow: none; }
.recommendation-card, .saved-schedule-card, .completion-summary, .operation-guide { display: grid; gap: .25rem; padding: .8rem; background: #f2f7fa; border: 1px solid #cbdde6; border-left: 4px solid #0b789c; border-radius: .5rem; }
.recommendation-card > span, .saved-schedule-card > span { color: #526875; font-size: .8rem; font-weight: 700; }
.recommendation-card > strong, .saved-schedule-card > strong { font-size: 1.05rem; }
.recommendation-card small, .saved-schedule-card small { color: #607482; }
.schedule-editor { padding: .85rem; background: #fbfcfd; border: 1px solid #d9e3e8; border-radius: .6rem; }
.review-choice-group legend { padding: 0 .3rem; color: #294e63; font-weight: 800; }
.review-choice-group label > span { display: grid; gap: .08rem; }
.review-choice-group label small, .review-field small { color: #607482; font-weight: 500; }
.old-review-point-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: stretch; }
.editable-select { position: relative; display: block; width: 100%; min-width: 0; }
.editable-select input { width: 100%; padding-right: 3.2rem; }
.editable-select select { position: absolute; z-index: 2; top: 0; right: 0; width: 3rem; height: 100%; min-height: 42px; padding: 0; color: transparent; background: transparent; border: 0; cursor: pointer; appearance: none; }
.editable-select select option { color: #203646; background: #fff; }
.editable-select::before { content: ''; position: absolute; z-index: 1; top: .4rem; right: 3rem; bottom: .4rem; border-left: 1px solid #9db0bd; pointer-events: none; }
.editable-select::after { content: '▼'; position: absolute; z-index: 1; top: 50%; right: 1rem; color: #31566a; font-size: .72rem; transform: translateY(-50%); pointer-events: none; }
.editable-select:focus-within::after { color: #086b8c; }
.old-review-selected-knowledge { display: flex; flex-wrap: wrap; gap: .4rem; min-height: 1rem; }
.old-review-selected-point { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .42rem .28rem .58rem; border: 1px solid #9ab8c5; border-radius: 999px; background: #eef7fa; color: #23424f; }
.old-review-remove-point { min-height: 0; padding: .12rem .35rem; border-radius: 999px; font-size: .75rem; }
.lesson-knowledge-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: stretch; }
.lesson-selected-knowledge { display: grid; gap: .75rem; margin-top: .8rem; }
.lesson-knowledge-card-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .55rem; }
.lesson-knowledge-card-heading strong { overflow-wrap: anywhere; }
.lesson-knowledge-card-heading button { min-height: 0; padding: .3rem .55rem; }
.start-review-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: .8rem; background: #f6f9fb; border: 1px solid #d5e1e7; border-radius: .55rem; }
.completion-summary { background: #edf8f1; border-color: #a6d2b7; border-left-color: #2b874f; }
.unit-maintenance-form { display: grid; min-width: 17rem; gap: .35rem; }
.review-status-text { white-space: nowrap; font-weight: 750; }
.timeline-list { display: grid; gap: .5rem; }
.timeline-item { display: grid; grid-template-columns: 7.5rem minmax(10rem, .8fr) 1.4fr; gap: .7rem; align-items: center; padding: .7rem; color: #294e63; background: #f8fafb; border: 1px solid #d9e3e8; border-radius: .5rem; text-decoration: none; }
.timeline-item:hover { background: #edf5f8; border-color: #a8c5d2; }
.timeline-item time { color: #607482; font-variant-numeric: tabular-nums; }
.timeline-item span { color: #607482; font-size: .88rem; }
.empty-state { display: grid; gap: .2rem; justify-items: start; padding: .9rem; color: #526875; background: #f5f7f8; border: 1px dashed #bccbd3; border-radius: .55rem; }
.review-remedial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)); gap: 1rem; align-items: start; }
.pending-student-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .8rem; }
.pending-student-list > span { display: grid; gap: .05rem; padding: .45rem .6rem; background: #fff6db; border: 1px solid #dec376; border-radius: .45rem; }
.pending-student-list small { color: #735b19; }
.remedial-unit-card .saved-schedule-card { margin-top: .6rem; }
.operation-guide { margin-bottom: 1rem; }
.seat-operation-heading { margin-top: .9rem; }
.form-submit-bar { position: sticky; bottom: .55rem; z-index: 4; display: flex; justify-content: flex-end; gap: .8rem; align-items: center; margin-top: .8rem; padding: .7rem; background: rgba(255,255,255,.96); border: 1px solid #cbd9e0; border-radius: .6rem; box-shadow: 0 8px 22px rgba(27,57,76,.12); backdrop-filter: blur(6px); }
.form-submit-bar .hint { margin-right: auto; }
.mode-selector-panel { padding-bottom: .75rem; box-shadow: none; }
.mode-selector-panel .choice-bar { margin-bottom: 0; }
.record-settings-panel { margin-top: .8rem; background: #f8fafb; box-shadow: none; }
.homework-task-card { border-top: 3px solid #4f879f; }
.homework-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.homework-content-grid article { padding: .75rem; background: #f6f9fb; border: 1px solid #d8e3e8; border-radius: .55rem; }
.content-label { display: inline-block; color: #0a6282; font-size: .8rem; font-weight: 800; }
.task-note, .task-history { padding: .6rem .7rem; background: #fffaf0; border-radius: .45rem; }
.homework-task-actions { padding: .7rem 0; border-top: 1px solid #e2e9ed; border-bottom: 1px solid #e2e9ed; }
.homework-task-actions form { margin: 0; }
.check-selector-panel { padding-top: .8rem; box-shadow: none; }
.method-choice-bar .choice { flex: 1 1 9rem; text-align: center; }
.method-progress-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: .65rem 0; }
.method-progress-grid article { display: grid; gap: .14rem; min-width: 0; padding: .65rem; color: #526875; background: #f5f8fa; border: 1px solid #d6e1e7; border-radius: .5rem; overflow-wrap: anywhere; }
.method-progress-grid article.active { color: #174a61; background: #e7f3f7; border-color: #79afc1; box-shadow: inset 0 0 0 1px #79afc1; }
.method-progress-grid strong { color: #183b50; }
.method-progress-grid span { font-size: .82rem; }
.method-progress-grid small { color: #647784; line-height: 1.35; }
.stage-plan-panel { border-left: 4px solid #768e9b; }
.stage-count-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.stage-count-grid > div { display: grid; gap: .2rem; padding: .65rem .75rem; color: #365565; background: #f5f8fa; border: 1px solid #d7e2e7; border-radius: .5rem; }
.stage-count-grid small { color: #607482; line-height: 1.4; }
.check-summary-panel > summary { color: #173f55; cursor: pointer; font-size: 1.12rem; font-weight: 800; }
.check-summary-panel[open] > summary { margin-bottom: .75rem; padding-bottom: .55rem; border-bottom: 1px solid #dbe4e8; }
.check-progress-bar { top: .4rem; box-shadow: 0 7px 18px rgba(17,48,66,.18); }
.secondary-page-heading { margin-bottom: .75rem; }
.section-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1rem; padding: .5rem; background: #e8eff3; border: 1px solid #d0dce3; border-radius: .75rem; }
.section-tabs a { display: grid; gap: .1rem; min-width: 0; min-height: 64px; align-content: center; padding: .6rem .75rem; color: #34566a; background: transparent; border: 1px solid transparent; border-radius: .55rem; text-align: center; text-decoration: none; }
.section-tabs a:hover { color: #174a61; background: rgba(255,255,255,.65); }
.section-tabs a.active { color: #075773; background: #fff; border-color: #9ebbc8; box-shadow: 0 4px 14px rgba(33,70,90,.09); }
.section-tabs small { color: #667a87; font-size: .72rem; line-height: 1.3; }
.lesson-section-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lesson-tab-panel { min-height: 15rem; }
.lesson-primary-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.workspace-action-card { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: .12rem .65rem; align-items: center; min-height: 126px; padding: 1rem; color: #174a61; background: #f5f9fb; border: 1px solid #bed2dc; border-top: 4px solid #4c8da6; border-radius: .65rem; text-decoration: none; }
.workspace-action-card:hover { color: #0b536f; background: #eaf4f7; border-color: #83b3c4; box-shadow: 0 7px 18px rgba(28,70,91,.09); }
.workspace-action-card > span { display: grid; grid-row: 1 / span 2; width: 2.2rem; height: 2.2rem; place-items: center; color: #fff; background: #4c8da6; border-radius: 50%; font-size: .75rem; font-weight: 800; }
.workspace-action-card strong { font-size: 1.08rem; }
.workspace-action-card small { color: #607482; line-height: 1.4; }
.workspace-action-card.primary { color: #fff; background: linear-gradient(135deg, #087392, #075773); border-color: #075773; }
.workspace-action-card.primary:hover { color: #fff; background: linear-gradient(135deg, #076784, #064b64); }
.workspace-action-card.primary > span { color: #075773; background: #fff; }
.workspace-action-card.primary small { color: rgba(255,255,255,.84); }
.review-day-shell { border-top: 4px solid #0b789c; }
.review-workflow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.review-step-card { min-width: 0; padding: .85rem; background: #f8fafb; border: 1px solid #d5e1e7; border-radius: .65rem; }
.review-step-card > header { display: flex; gap: .65rem; align-items: center; margin-bottom: .75rem; padding-bottom: .6rem; border-bottom: 1px solid #dce6eb; }
.review-step-card > header div { min-width: 0; }
.review-step-card > header small { color: #607482; font-weight: 750; }
.review-step-card > header h3 { margin: .1rem 0 0; font-size: 1.08rem; }
.step-number { display: grid; flex: 0 0 2rem; width: 2rem; height: 2rem; place-items: center; color: #fff; background: #0b6f91; border-radius: 50%; font-weight: 800; }
.recommendation-step { background: linear-gradient(135deg, #edf7fa, #f8fbfc); border-color: #a8cfdb; }
.schedule-step { background: #fff; }
.saved-step { background: #f7f5ff; border-color: #c9c2e3; }
.formal-step { background: #f3f9f5; border-color: #b6d8c1; }
.review-focus-title { display: block; color: #174a61; font-size: clamp(1.08rem, 2.2vw, 1.35rem); }
.review-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.review-meta span { padding: .25rem .5rem; color: #3d6172; background: #fff; border: 1px solid #c4d9e2; border-radius: 999px; font-size: .78rem; }
.schedule-details > summary { padding: .55rem .65rem; color: #174a61; background: #edf4f7; border: 1px solid #bad0da; border-radius: .45rem; font-weight: 800; }
.schedule-details[open] > summary { margin-bottom: .7rem; }
.schedule-details .schedule-editor { margin: 0; }
.formal-start-form { display: grid; gap: .7rem; }
.completion-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.completion-metrics > span { display: grid; gap: .15rem; padding: .65rem; text-align: center; background: #fff; border: 1px solid #c8ddd0; border-radius: .5rem; }
.completion-metrics small { color: #607482; }
.completion-metrics strong { color: #17633a; font-size: 1.08rem; }
.remedial-callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; align-items: center; margin-top: .7rem; padding: .7rem; color: #6e4a00; background: #fff5d6; border: 1px solid #d9bd65; border-radius: .5rem; }
.compact-empty { padding: .7rem; }
.review-unit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: .75rem; }
.review-unit-card { min-width: 0; padding: .8rem; background: #fff; border: 1px solid #d1dfe6; border-top: 3px solid #4c8da6; border-radius: .6rem; }
.review-unit-card > header { display: grid; gap: .15rem; padding-bottom: .6rem; border-bottom: 1px solid #e0e8ec; }
.review-unit-card > header span { color: #607482; font-size: .8rem; }
.review-unit-card > header h3 { margin: 0; }
.review-unit-card > header b { color: #0b6f91; font-size: .82rem; }
.review-unit-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: .7rem 0; }
.review-unit-card dl div { min-width: 0; padding: .45rem; background: #f5f8fa; border-radius: .4rem; }
.review-unit-card dt { color: #607482; font-size: .72rem; }
.review-unit-card dd { margin: .12rem 0 0; color: #203f51; font-weight: 700; overflow-wrap: anywhere; }
.review-unit-card details { padding-top: .55rem; border-top: 1px solid #e0e8ec; }
.review-unit-card details > summary { color: #456475; font-weight: 750; }
.review-unit-card .unit-maintenance-form { min-width: 0; margin-top: .6rem; }
.review-unit-card .unit-maintenance-form label { display: grid; gap: .25rem; }
.feedback-table-wrap, .review-overview-table-wrap { margin-top:.7rem; }
.feedback-data-table td { min-width:14rem; white-space:pre-line; }
.feedback-data-table th:first-child { min-width:6rem; }
.group-score-table th, .group-score-table td, .review-overview-table th, .review-overview-table td { white-space:nowrap; }
.group-score-table td:last-child, .review-overview-table td:last-child { min-width:8rem; white-space:normal; }
.group-score-table details p { min-width:15rem; }
.review-overview-table .unit-maintenance-form { min-width:16rem; margin-top:.55rem; }
.review-overview-table .unit-maintenance-form label { display:grid; gap:.25rem; }
.maintenance-tools { margin-top:.65rem; }
.maintenance-tools > summary { color:#526b79; font-weight:750; }

/* 当前待补检工作台：新旧知识统一视觉，业务仍保持分开。 */
.remediation-heading { margin-bottom: 1rem; border-top: 4px solid #0b789c; }
.remediation-toolbar .filter-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto; }
.remediation-toolbar label small { color: #607482; font-weight: 500; line-height: 1.35; }
.remediation-total-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.remediation-total-strip > div { display: grid; gap: .15rem; min-width: 0; padding: .85rem 1rem; color: #294e63; background: linear-gradient(135deg, #f7fafb, #edf5f8); border: 1px solid #cbdbe3; border-radius: .7rem; box-shadow: 0 5px 14px rgba(31,75,97,.06); }
.remediation-total-strip span { color: #607482; font-size: .78rem; font-weight: 700; }
.remediation-total-strip strong { color: #164a62; font-size: clamp(1.25rem, 3vw, 1.7rem); line-height: 1.1; }
.remediation-total-strip small { color: #71838d; }
.remediation-track-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.remediation-track-card { display: grid; grid-template-rows: auto auto auto 1fr; gap: .85rem; min-width: 0; padding: clamp(.9rem, 2vw, 1.2rem); background: white; border: 1px solid #ccdbe3; border-top: 4px solid #0b789c; border-radius: .8rem; box-shadow: var(--shadow); }
.remediation-track-card.old-track { border-top-color: #7c6a9b; }
.remediation-track-card.problem-track { border-top-color: #b7782f; }
.remediation-track-card header, .remediation-track-card header > div { display: flex; justify-content: space-between; gap: .7rem; align-items: flex-start; }
.remediation-track-card h2, .remediation-track-card p { margin: 0; }
.track-mark { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; flex: 0 0 auto; color: white; background: #0b789c; border-radius: .65rem; font-weight: 850; }
.old-track .track-mark { background: #75618f; }
.problem-track .track-mark { background: #a96822; }
.track-status { padding: .22rem .5rem; color: #42606f; background: #edf3f6; border-radius: 999px; font-size: .76rem; font-weight: 750; white-space: nowrap; }
.track-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; background: #f6f9fb; border: 1px solid #d8e4e9; border-radius: .65rem; }
.track-metrics > div { display: grid; gap: .05rem; justify-items: center; padding: .65rem .25rem; text-align: center; border-left: 1px solid #d8e4e9; }
.track-metrics > div:first-child { border-left: 0; }
.track-metrics strong { color: #174b63; font-size: 1.35rem; }
.track-metrics span { color: #667b87; font-size: .75rem; }
.track-action { grid-row: 4; align-self: end; width: 100%; min-height: 46px; }
.remediation-note { display: flex; gap: .55rem; align-items: baseline; margin-top: 1rem; color: #526875; background: #f7fafb; box-shadow: none; }
.remediation-note strong { color: #234d63; white-space: nowrap; }
.remediation-list-summary { display: flex; justify-content: space-between; gap: .7rem; align-items: center; margin: 0 0 .8rem; padding: .65rem .8rem; color: #526875; background: #edf5f8; border: 1px solid #c9dce5; border-radius: .6rem; }
.remediation-list-summary strong { color: #174b63; }
.remediation-scope-tabs { margin-top: .75rem; }
.remedial-lesson-panel { border-top: 3px solid #4f879f; }
.remedial-point-form { margin-top: .75rem; padding: .8rem; background: #f8fafb; border: 1px solid #d7e2e8; border-radius: .7rem; }
.remedial-point-form + .remedial-point-form { margin-top: 1rem; }
.remedial-point-heading { display: flex; justify-content: space-between; gap: .7rem; align-items: center; margin-bottom: .65rem; }
.remedial-point-heading span { color: #607482; font-size: .74rem; font-weight: 750; }
.remedial-point-heading h3 { margin: .1rem 0 0; color: #214b62; }
.remedial-point-heading > strong { flex: 0 0 auto; padding: .25rem .55rem; color: #0b6686; background: #e4f3f7; border-radius: 999px; }
.remedial-student-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .55rem; }
.remedial-student-card { display: grid; grid-template-columns: auto minmax(5rem, .62fr) minmax(9rem, 1.4fr); gap: .6rem; align-items: center; min-width: 0; padding: .65rem; background: white; border: 1px solid #cfdae0; border-radius: .55rem; cursor: pointer; }
.remedial-student-card:has(input:checked) { background: #eef8fb; border-color: #72aec3; box-shadow: inset 4px 0 #0b789c; }
.remedial-student-card input { width: 1.25rem; height: 1.25rem; }
.remedial-student-main { display: grid; min-width: 0; }
.remedial-student-main strong { color: #173f55; overflow-wrap: anywhere; }
.remedial-student-main small { color: #607482; }
.remedial-student-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .45rem; min-width: 0; color: #365566; font-size: .78rem; }
.remedial-student-details span { min-width: 0; overflow-wrap: anywhere; }
.remedial-student-details b { display: block; color: #71838d; font-size: .68rem; }
.remedial-start-bar { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(180px, auto); gap: .7rem; align-items: end; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid #d7e2e8; }
.remedial-start-bar label { display: grid; gap: .25rem; color: #405866; font-weight: 700; }
.remedial-start-bar button { min-height: 46px; }
.old-review-summary { margin-top: 1rem; }
.old-remedial-unit { overflow: hidden; border-top: 3px solid #75618f; }
.old-remedial-unit .pending-student-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.old-remedial-unit .pending-student-list > span { min-width: 0; background: #fbf7ff; border-color: #d3c7df; }
.old-remedial-unit .pending-student-list small { color: #665776; overflow-wrap: anywhere; }
.remedial-action-zone { margin-top: .75rem; padding: .75rem; background: #f6f8fa; border: 1px solid #d9e2e7; border-radius: .6rem; }
.action-zone-label { display: block; margin-bottom: .5rem; color: #506976; font-size: .76rem; font-weight: 800; letter-spacing: .04em; }
.remedial-action-zone .start-review-form, .remedial-action-zone .saved-schedule-card { margin: 0; }
.remediation-empty { min-height: 145px; align-content: center; }
.remediation-empty .button { margin-top: .45rem; }
.remediation-view-tabs { margin: 0 0 .75rem; }
.remediation-student-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.remediation-student-summary { min-width: 0; margin: 0; padding: .8rem; }
.remediation-student-summary > header { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding-bottom: .55rem; border-bottom: 1px solid #d8e4e9; }
.remediation-student-summary h2 { margin: 0; }
.remediation-student-summary header small { color: #607482; }
.remediation-student-summary > header > strong { padding: .25rem .55rem; color: #0b6686; background: #e4f3f7; border-radius: 999px; }
.remediation-student-items { display: grid; gap: .4rem; margin-top: .55rem; }
.remediation-student-items > section { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .5rem; background: #f7fafb; border: 1px solid #dce6eb; border-radius: .45rem; }
.remediation-student-items div { display: grid; min-width: 0; gap: .06rem; }
.remediation-student-items strong, .remediation-student-items small { overflow-wrap: anywhere; }
.remediation-student-items small { color: #607482; }
.remediation-student-items a { min-height: 38px; display: inline-flex; align-items: center; white-space: nowrap; font-weight: 750; }
.student-item-type { padding: .18rem .38rem; color: #174b63; background: #dfeef3; border-radius: .3rem; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.student-item-type.type-old { color: #5f4c7b; background: #ece7f3; }
.student-item-type.type-homework { color: #73520f; background: #fff1c9; }
.student-item-type.type-exercise { color: #315b38; background: #e5f2e7; }
.student-item-type.type-problem { color: #7a4515; background: #f9e6cf; }
@media (max-width: 700px) {
  .topbar { display: grid; grid-template-columns: 1fr; gap: .65rem; padding: .7rem .75rem .75rem; }
  .topbar-brand { width: 100%; }
  .topbar-brand-mark { flex-basis: 2.15rem; width: 2.15rem; height: 2.15rem; border-radius: .55rem; font-size: 1.05rem; }
  .topbar-brand-copy strong { font-size: 1.12rem; }
  .topbar-brand-copy small { display: block; font-size: .62rem; }
  .topbar-actions { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; overflow: visible; padding: 0; }
  .topbar-actions > a, .topbar-menu > summary, .topbar-actions form button { width: 100%; min-height: 40px; padding: .35rem .25rem; font-size: .76rem; white-space: nowrap; }
  .topbar-actions > a, .topbar-menu > summary, .topbar-actions form button { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); border-radius: .48rem; }
  .topbar-actions form { width: 100%; }
  .topbar-menu > div { top: calc(100% + .2rem); right: 0; left: auto; width: min(86vw, 260px); min-width: 0; }
  .nav-label-full { display: none; }
  .nav-label-short { display: inline; }
  .page { padding: .75rem; }
  .page-heading, .compact-head { align-items: flex-start; gap: .6rem; }
  .page-heading > .actions, .compact-head > .actions { width: 100%; }
  .page-heading > .actions .button, .compact-head > .actions .button { flex: 1 1 auto; }
  .class-grid { grid-template-columns: 1fr; }
  .class-card-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .class-directory-grid { grid-template-columns:1fr; }
  .actions:not(.topbar-actions), .inline-form { align-items: stretch; }
  .filter-grid, .filters { display: grid; grid-template-columns: 1fr; width: 100%; }
  .filter-grid button, .filters button { width: 100%; }
  .data-table { display:block; max-width:100%; overflow-x:auto; border:1px solid #d5e0e6; border-radius:.65rem; }
  .data-table th, .data-table td { min-width:7.5rem; }
  .data-table td:last-child { min-width:10rem; }
  .summary-list { grid-template-columns: 1fr; gap:.15rem; }
  .summary-list dd { margin-bottom:.55rem; }
  .score-breakdown { grid-template-columns: 1fr; }
  .feedback-list-row, .review-toolbar, .correction-row { grid-template-columns: 1fr; }
  .student-feedback-grid, .group-score-grid { grid-template-columns: 1fr; }
  .review-toolbar button, .review-schedule-form > button { width: 100%; }
  .correction-row .inline-form { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .lesson-workspace-heading, .lesson-overview-grid { grid-template-columns: 1fr; }
  .lesson-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-action { min-height: 68px; }
  .section-heading { display: grid; grid-template-columns: minmax(0, 1fr); align-items: flex-start; }
  .section-heading > div { width: 100%; min-width: 0; }
  .section-heading > .button { width: 100%; }
  .method-progress-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-count-grid { grid-template-columns: 1fr; }
  .export-link-grid, .homework-content-grid { grid-template-columns: 1fr; }
  .archive-form, .start-review-form, .timeline-item { grid-template-columns: 1fr; display: grid; }
  .archive-form button, .start-review-form button { width: 100%; }
  .timeline-item { gap: .15rem; }
  .form-submit-bar { bottom: .3rem; display: grid; grid-template-columns: 1fr; }
  .form-submit-bar button { width: 100%; }
  .section-tabs { grid-template-columns: 1fr; gap: .35rem; padding: .4rem; }
  .section-tabs a { min-height: 52px; text-align: left; }
  .lesson-section-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-section-tabs a { min-height: 64px; text-align: center; }
  .lesson-primary-actions { grid-template-columns: 1fr; }
  .workspace-action-card { min-height: 96px; }
  .review-workflow-grid { grid-template-columns: 1fr; }
  .review-step-card { padding: .75rem; }
  .completion-metrics { grid-template-columns: 1fr; }
  .remedial-callout { grid-template-columns: 1fr; }
  .remedial-callout .button { width: 100%; }
  .review-unit-grid { grid-template-columns: 1fr; }
  .feedback-table-wrap, .review-overview-table-wrap { margin-right:-.75rem; margin-left:-.75rem; padding:0 .75rem; }
  .remediation-toolbar .filter-grid, .remediation-track-grid, .remediation-total-strip { grid-template-columns: 1fr; }
  .remediation-student-grid { grid-template-columns: 1fr; }
  .remediation-total-strip { gap: .45rem; }
  .remediation-total-strip > div { grid-template-columns: 1fr auto; align-items: center; padding: .65rem .75rem; }
  .remediation-total-strip > div small { grid-column: 1 / -1; }
  .remediation-track-card header { display: grid; }
  .remediation-track-card header > div { justify-content: flex-start; }
  .track-status { justify-self: start; }
  .remediation-note, .remediation-list-summary { display: grid; }
  .remediation-scope-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .remediation-scope-tabs a { min-height: 46px; padding: .45rem .25rem; text-align: center; }
  .remedial-point-form { margin-right: -.35rem; margin-left: -.35rem; padding: .65rem .5rem; }
  .remedial-student-list { grid-template-columns: 1fr; }
  .remedial-student-card { grid-template-columns: auto minmax(0, 1fr); min-height: 66px; }
  .remedial-student-details { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .remedial-start-bar { grid-template-columns: 1fr; position: sticky; bottom: .3rem; z-index: 3; padding: .65rem; background: rgba(255,255,255,.97); border: 1px solid #cbd9e0; border-radius: .6rem; box-shadow: 0 8px 22px rgba(27,57,76,.12); }
  .remedial-start-bar button { width: 100%; }
  .old-remedial-unit .pending-student-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .remedial-action-zone .start-review-form { grid-template-columns: 1fr; }
}
@media (orientation: landscape) and (max-width: 1100px) {
  .remediation-student-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
  .remediation-student-summary { padding: .55rem; }
  .remediation-student-items { max-height: 48vh; overflow-y: auto; }
  .remediation-student-items > section { padding: .34rem .4rem; }
}
@media (max-width: 420px) {
  .class-card-actions { grid-template-columns: 1fr; }
  .page-heading > .actions .button, .compact-head > .actions .button { flex-basis:100%; }
  .lesson-actions { grid-template-columns: 1fr; }
  .method-progress-grid { grid-template-columns: 1fr; }
  .review-unit-card dl { grid-template-columns: 1fr; }
  .track-metrics { grid-template-columns: 1fr; }
  .track-metrics > div { grid-template-columns: 1fr auto; justify-items: stretch; text-align: left; border-top: 1px solid #d8e4e9; border-left: 0; }
  .track-metrics > div:first-child { border-top: 0; }
  .old-remedial-unit .pending-student-list { grid-template-columns: 1fr; }
}
.is-busy {
  cursor: progress !important;
  opacity: .72;
  pointer-events: none;
}

.is-busy::after {
  content: ' · ' attr(data-busy-label);
  white-space: nowrap;
}

/* 日程Todo：七列月历；必须显示事项较多时允许日期格纵向增高。 */
.todo-heading { padding: 1rem 1.15rem; background: linear-gradient(125deg, #f7fbfc, #e7f3f7); border: 1px solid #bfd7e1; border-top: 4px solid #0b789c; border-radius: .8rem; box-shadow: var(--shadow); }
.todo-heading-copy { min-width: 0; }
.todo-heading h1 { margin-top: .08rem; color: #123f56; }
.todo-heading p { margin-bottom: 0; }
.todo-add-button { min-height: 46px; padding-inline: 1rem; }
.todo-notice { padding: .7rem .85rem; color: #17633a; background: #e8f6ed; border: 1px solid #9ecbad; border-radius: .6rem; font-weight: 750; }
.todo-toolbar { display: grid; gap: .8rem; border-top: 3px solid #7daebe; }
.todo-month-nav { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.todo-month-nav strong { margin-left: auto; color: #173f55; font-size: 1.18rem; }
.todo-priority-key { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; color: #536b78; font-size: .75rem; font-weight: 700; }
.todo-priority-key span { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.todo-priority-key i { display: inline-block; width: .72rem; height: .72rem; background: #edf1f3; border: 1px solid #87949b; border-radius: .2rem; }
.todo-priority-key .is-high i { background: #fde8e8; border-color: #d14b4b; }
.todo-priority-key .is-medium i { background: #fff7cc; border-color: #d4a72c; }
.todo-priority-key .is-low i { background: #e8f3f8; border-color: #6fa3bd; }
.todo-priority-key .is-done i { background: #f1f3f4; border-color: #a8b0b4; }
.todo-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(135px, 1fr)) auto; gap: .65rem; align-items: end; }
.todo-filter-grid label { display: grid; gap: .28rem; color: #405866; font-weight: 700; }
.todo-filter-toggle, .todo-filter-toggle-label { display: none; }
.todo-calendar-shell { margin-bottom: 1rem; overflow: hidden; background: #fff; border: 1px solid #bfcfd8; border-radius: .7rem; box-shadow: var(--shadow); }
.todo-weekdays, .todo-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.todo-weekdays { color: #28566b; background: linear-gradient(#edf6f8, #e4f0f4); border-bottom: 1px solid #bfcfd8; }
.todo-weekdays strong { padding: .55rem .3rem; text-align: center; font-size: .84rem; }
.todo-weekdays strong:nth-child(6), .todo-weekdays strong:nth-child(7) { color: #8a5a00; background: rgba(255,247,204,.45); }
.todo-calendar-grid { gap: 1px; background: #d5e0e6; }
.todo-day-cell { min-width: 0; min-height: 150px; padding: .4rem; background: #fff; }
.todo-day-cell:nth-child(7n + 6), .todo-day-cell:nth-child(7n) { background: #fffdf7; }
.todo-day-cell.outside { background: #f5f7f8; }
.todo-day-cell.outside .todo-date-link, .todo-day-cell.outside .todo-cell-items { opacity: .55; }
.todo-day-cell.is-today { position: relative; z-index: 1; box-shadow: inset 0 0 0 3px #0b789c; background: #f0fafc; }
.todo-day-cell.is-selected { box-shadow: inset 0 0 0 3px #d49a24; }
.todo-day-cell.is-today.is-selected { box-shadow: inset 0 0 0 3px #0b789c, inset 0 0 0 6px #f0c35a; }
.todo-date-link { display: flex; min-height: 32px; align-items: center; gap: .3rem; color: #234d63; text-decoration: none; }
.todo-date-link time { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 50%; font-size: 1rem; font-weight: 800; }
.todo-date-link span { padding: .12rem .35rem; color: #075773; background: #d9eef4; border-radius: 999px; font-size: .68rem; font-weight: 800; }
.todo-day-cell.is-selected .todo-date-link span { color: #674500; background: #ffe9ad; }
.todo-cell-items { display: grid; gap: .25rem; min-width: 0; }
.todo-chip { display: block; min-width: 0; min-height: 29px; padding: .25rem .35rem; color: #294654; background: #edf1f3; border-left: 4px solid #87949b; border-radius: .28rem; text-decoration: none; font-size: .68rem; line-height: 1.2; }
.todo-chip:hover { color: inherit; filter: brightness(.97); }
.todo-chip-line { display: flex; min-width: 0; align-items: center; gap: .18rem; }
.todo-chip strong { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-priority-high { color: #7a2323; background: #fde8e8; border-color: #d14b4b; }
.todo-priority-medium { color: #6f5200; background: #fff7cc; border-color: #d4a72c; }
.todo-priority-low { color: #28566b; background: #e8f3f8; border-color: #6fa3bd; }
.todo-chip.is-overdue { border-color: #b42318; box-shadow: inset 0 0 0 1px #b42318; }
.todo-chip.is-completed { color: #7a858b; background: #f1f3f4; border-color: #a8b0b4; }
.todo-chip.is-completed strong { text-decoration: line-through; text-decoration-thickness: 1px; }
.todo-more { padding: .2rem .35rem; color: #075773; font-size: .72rem; font-weight: 800; text-decoration: none; }
.todo-more-after-four { display: none; }
.todo-portrait-note { display: none; padding: .6rem .75rem; color: #526875; background: #edf5f8; border: 1px solid #c8dce5; border-radius: .55rem; }
.todo-day-detail { border-top: 4px solid #0b789c; }
.todo-day-detail .section-heading { padding-bottom: .75rem; border-bottom: 1px solid #d8e3e8; }
.todo-day-list { display: grid; gap: .65rem; }
.todo-detail-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .8rem; background: #f8fafb; border: 1px solid #d4dfe5; border-left: 5px solid #87949b; border-radius: .6rem; }
.todo-detail-card.todo-priority-high { background: #fff6f6; border-left-color: #d14b4b; }
.todo-detail-card.todo-priority-medium { background: #fffdf2; border-left-color: #d4a72c; }
.todo-detail-card.todo-priority-low { background: #f4fafc; border-left-color: #6fa3bd; }
.todo-detail-card.is-overdue { border-color: #b42318; border-left-color: #b42318; }
.todo-detail-card.is-completed { color: #7a858b; background: #f1f3f4; border-color: #a8b0b4; }
.todo-detail-card.is-completed h3 { text-decoration: line-through; text-decoration-thickness: 1px; }
.todo-detail-main { min-width: 0; }
.todo-detail-main h3 { margin: .35rem 0 .2rem; overflow-wrap: anywhere; }
.todo-detail-main h3 time { color: #526875; font-size: .85rem; }
.todo-detail-main p { color: #607482; overflow-wrap: anywhere; }
.todo-labels { display: flex; flex-wrap: wrap; gap: .3rem; }
.todo-labels span { padding: .16rem .4rem; color: #3f5967; background: #edf2f5; border: 1px solid #ccd8df; border-radius: 999px; font-size: .7rem; font-weight: 750; }
.todo-detail-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.todo-detail-actions form { margin: 0; }
.todo-delete-tools { position: relative; }
.todo-delete-tools > summary { min-height: 42px; padding: .52rem .7rem; color: #8c2b2b; background: #fff1f1; border: 1px solid #d8a1a1; border-radius: .45rem; cursor: pointer; font-weight: 700; list-style: none; }
.todo-delete-tools > form { position: absolute; right: 0; z-index: 4; display: grid; gap: .45rem; width: min(82vw, 290px); margin-top: .35rem; padding: .65rem; background: #fff; border: 1px solid #d8a1a1; border-radius: .5rem; box-shadow: 0 8px 20px rgba(55,25,25,.16); }
.todo-delete-tools label { display: grid; gap: .2rem; color: #6f4040; font-size: .78rem; font-weight: 700; }
.todo-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.todo-form-grid label { display: grid; gap: .28rem; color: #405866; font-weight: 700; }
.todo-tag-help { min-height: 2.2em; color: #607681; font-size: .76rem; font-weight: 500; line-height: 1.35; }
.todo-title-field, .todo-note-field { grid-column: 1 / -1; }
.todo-form-status { padding: .65rem; color: #365667; background: #eef5f8; border-radius: .5rem; }

@media (max-width: 900px) and (orientation: landscape) {
  .todo-day-cell { min-height: 124px; padding: .28rem; }
  .todo-chip { font-size: .62rem; }
}

@media (max-width: 700px) {
  .todo-month-nav strong { order: -1; width: 100%; margin-left: 0; }
  .todo-month-nav .button { flex: 1 1 0; min-width: 0; padding-inline: .35rem; }
  .todo-filter-grid { grid-template-columns: 1fr; }
  .todo-filter-grid button { width: 100%; }
  .todo-detail-card { grid-template-columns: 1fr; }
  .todo-detail-actions { justify-content: flex-start; }
  .todo-detail-actions .button, .todo-detail-actions > form, .todo-detail-actions > form button { flex: 1 1 auto; }
  .todo-delete-tools > form { position: fixed; right: .75rem; bottom: .75rem; left: .75rem; width: auto; }
  .todo-form-grid { grid-template-columns: 1fr; }
  .todo-title-field, .todo-note-field { grid-column: auto; }
}

@media (max-width: 700px) and (orientation: portrait) {
  .page:has(.todo-heading) { padding: .5rem; }
  .todo-heading { gap: .45rem; margin-bottom: .45rem; padding: .65rem .7rem; flex-wrap: nowrap; border-radius: .65rem; }
  .todo-heading .section-kicker { display: block; font-size: .6rem; }
  .todo-heading p { display: none; }
  .todo-heading h1 { margin: .08rem 0 0; font-size: 1.25rem; }
  .todo-add-button { min-height: 36px; padding: .28rem .55rem; font-size: .72rem; white-space: nowrap; }
  .todo-toolbar { gap: .4rem; margin-bottom: .4rem; padding: .5rem; border-radius: .55rem; }
  .todo-month-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .2rem; }
  .todo-month-nav strong { grid-column: 1 / -1; grid-row: 1; width: auto; margin: 0 0 .08rem; text-align: center; font-size: 1rem; }
  .todo-month-nav .button { min-height: 32px; padding: .2rem; font-size: .68rem; }
  .todo-priority-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .2rem; font-size: .56rem; }
  .todo-priority-key span { justify-content: center; gap: .16rem; }
  .todo-priority-key i { width: .55rem; height: .55rem; }
  .todo-filter-panel { display: grid; }
  .todo-filter-toggle { position: absolute; opacity: 0; pointer-events: none; }
  .todo-filter-toggle-label { display: block; min-height: 30px; padding: .24rem .4rem; color: #174a61; background: #edf4f7; border: 1px solid #b4c9d3; border-radius: .35rem; text-align: center; font-size: .68rem; font-weight: 750; cursor: pointer; }
  .todo-filter-grid { display: none; margin-top: .25rem; padding: .35rem; background: #f6f9fb; border: 1px solid #d5e0e6; border-radius: .4rem; }
  .todo-filter-toggle:checked ~ .todo-filter-grid { display: grid; }
  .todo-calendar-shell { height: auto; min-height: 0; margin-bottom: .35rem; border-radius: .35rem; }
  .todo-calendar-grid { min-height: 0; grid-auto-rows: auto; }
  .todo-weekdays strong { padding: .2rem .02rem; font-size: .62rem; line-height: 1.05; }
  .todo-day-cell { min-height: 60px; padding: .1rem; overflow: visible; }
  .todo-date-link { min-height: 18px; gap: .08rem; }
  .todo-date-link time { width: 1.08rem; height: 1.08rem; font-size: .68rem; }
  .todo-date-link span { padding: 0 .12rem; font-size: .42rem; }
  .todo-cell-items { gap: 1px; }
  .todo-chip { display: block; min-height: 0; padding: 1px 2px; border-left-width: 2px; border-radius: .14rem; font-size: clamp(.42rem, 1.55vw, .54rem); line-height: 1.08; }
  .todo-chip strong { display: block; }
  .todo-more { padding: 0 2px; font-size: clamp(.38rem, 1.45vw, .5rem); line-height: 1.05; }
  .todo-portrait-note { display: none; }
  .todo-day-detail { margin-top: .55rem; padding: .7rem; scroll-margin-top: .5rem; border-radius: .6rem; }
  .todo-day-detail .section-heading { gap: .45rem; }
  .todo-day-detail .section-heading h2 { margin-bottom: .2rem; font-size: 1.08rem; }
  .todo-day-detail .section-heading p { font-size: .75rem; line-height: 1.4; }
  .todo-detail-card { gap: .55rem; padding: .7rem; }
  .todo-detail-main h3 { font-size: 1rem; }
  .todo-detail-main p { font-size: .78rem; }
}

@media (max-width: 700px) and (orientation: portrait) and (max-height: 720px) {
  .todo-fifth-item, .todo-more-after-five { display: none; }
  .todo-more-after-four { display: block; }
}

/* 学生简明反馈：教师端只负责发布快照，学生端是无教师导航的只读页面。 */
.student-feedback-publish-panel { border-top: 4px solid #0b789c; }
.student-feedback-publish-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.2fr); gap: 1rem; align-items: start; }
.student-feedback-public-url { display: grid; gap: .35rem; padding: .85rem; background: #eef6f8; border: 1px solid #c8dce5; border-radius: .6rem; overflow-wrap: anywhere; }
.student-feedback-public-url a { font-weight: 750; }
.student-feedback-public-url small, .student-feedback-publish-form small, .student-feedback-unpublish-form small { color: #607482; }
.student-feedback-publish-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.student-feedback-publish-form label { display: grid; gap: .25rem; color: #405866; font-weight: 700; }
.student-feedback-message-field, .student-feedback-image-field { grid-column: 1 / -1; }
.student-feedback-message-field textarea { width: 100%; resize: vertical; }
.student-feedback-image-field { display: grid; gap: .45rem; }
.student-feedback-image-drop { padding: .85rem; text-align: center; background: #f5fafc; border: 2px dashed #9cbac8; border-radius: .65rem; cursor: pointer; }
.student-feedback-image-drop.is-dragging { color: #075f7d; background: #e3f3f8; border-color: #0b789c; }
.student-feedback-image-drop input { width: min(100%, 480px); margin: 0 auto .4rem; }
.student-feedback-image-drop span, .student-feedback-image-drop small { display: block; }
.student-feedback-existing-images { display: grid; gap: .4rem; padding: .65rem; background: #f8fafb; border: 1px solid #d8e2e7; border-radius: .55rem; }
.student-feedback-existing-images > div, .student-feedback-message-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.student-feedback-existing-images img { width: 100%; height: 120px; object-fit: cover; border-radius: .45rem; border: 1px solid #cbd9df; }
.student-feedback-clear-images { display: flex !important; grid-template-columns: none !important; align-items: center; justify-content: flex-start; gap: .4rem !important; width: fit-content; }
.student-feedback-clear-images input { width: auto; }
.student-feedback-new-images { display: grid; gap: .5rem; }
.student-feedback-new-images article { display: grid; grid-template-columns: 90px 1fr; gap: .6rem; align-items: center; padding: .5rem; background: #eef7fa; border: 1px solid #c8dde5; border-radius: .55rem; }
.student-feedback-new-images img { width: 90px; height: 70px; object-fit: cover; border-radius: .4rem; }
.student-feedback-new-images article > div { display: grid; gap: .35rem; min-width: 0; }
.student-feedback-new-images article > div > div { display: flex; flex-wrap: wrap; gap: .35rem; }
.student-feedback-image-status { min-height: 1.2em; margin: 0; color: #17633a; font-weight: 700; }
.student-feedback-image-status.is-error { color: #9b2d2d; }
.student-feedback-publish-form button { grid-column: 1 / -1; }
.student-feedback-admin-message { padding: .65rem .75rem; color: #17633a; background: #e8f6ed; border: 1px solid #9ecbad; border-radius: .55rem; font-weight: 700; }
.student-feedback-unpublish-form { display: flex; gap: .65rem; align-items: center; margin-top: .85rem; padding-top: .75rem; border-top: 1px solid #e0e8ec; }

.student-feedback-body { color: #203646; background: #edf3f6; }
.student-feedback-header { display: flex; min-height: 70px; align-items: center; gap: .7rem; padding: .7rem max(1rem, calc((100% - 1180px) / 2)); color: #fff; background: linear-gradient(115deg, #123a55, #0c5d78); box-shadow: 0 4px 18px rgba(14, 42, 59, .2); }
.student-feedback-header .topbar-brand-mark { flex-basis: 2.35rem; }
.student-feedback-header > div { display: grid; line-height: 1.2; }
.student-feedback-header strong { font-size: 1.2rem; }
.student-feedback-header small { margin-top: .18rem; color: rgba(255,255,255,.74); }
.student-feedback-page { width: min(100%, 1180px); margin: 0 auto; padding: 1rem; }
.student-feedback-class-tabs { display: flex; gap: .55rem; margin-bottom: 1rem; overflow-x: auto; scrollbar-width: thin; }
.student-feedback-class-tabs a { display: grid; flex: 0 0 auto; min-width: 130px; padding: .55rem .75rem; color: #31566a; background: #fff; border: 1px solid #c9d8df; border-radius: .55rem; text-decoration: none; }
.student-feedback-class-tabs a.is-active { color: #fff; background: #0b6d8e; border-color: #0b6d8e; }
.student-feedback-class-tabs small { opacity: .78; }
.student-feedback-access-card { width: min(100%, 560px); margin: clamp(1.5rem, 8vh, 5rem) auto; padding: clamp(1.15rem, 4vw, 2rem); background: #fff; border: 1px solid #cbdbe3; border-top: 5px solid #0b789c; border-radius: .8rem; box-shadow: var(--shadow); }
.student-feedback-message { padding: .6rem .7rem; color: #8b2525; background: #fff0f0; border: 1px solid #e1b1b1; border-radius: .5rem; font-weight: 700; }
.student-feedback-access-form { display: grid; gap: .75rem; margin-top: 1rem; }
.student-feedback-access-form label { display: grid; gap: .3rem; color: #405866; font-weight: 700; }
.student-feedback-access-form button { width: 100%; }
.student-feedback-summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem; margin-bottom: .75rem; color: #294858; background: #fff; border: 1px solid #d1dfe5; border-radius: .7rem; box-shadow: var(--shadow); }
.student-feedback-summary h1 { margin-bottom: .2rem; }
.student-feedback-summary p { color: #607482; }
.student-feedback-summary form { flex: 0 0 auto; }
.student-feedback-teacher-message { scroll-margin-top: 70px; margin-bottom: .85rem; padding: 1rem; background: linear-gradient(135deg, #fffdf3, #fff8dc); border: 1px solid #e6d28a; border-left: 5px solid #d4a928; border-radius: .7rem; box-shadow: var(--shadow); }
.student-feedback-teacher-message h2 { margin: .15rem 0 .45rem; color: #684f0b; }
.student-feedback-teacher-message > p { margin: 0; color: #443b22; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; }
.student-feedback-message-images { margin-top: .75rem; }
.student-feedback-message-images a { display: block; background: #fff; border: 1px solid #e2d6aa; border-radius: .55rem; overflow: hidden; }
.student-feedback-message-images img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.student-feedback-section-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: .4rem; margin-bottom: .75rem; padding: .5rem; background: rgba(237,243,246,.96); border: 1px solid #d2dfe5; border-radius: .6rem; backdrop-filter: blur(8px); }
.student-feedback-section-tabs a { flex: 1 1 0; padding: .45rem .35rem; color: #174a61; background: #fff; border: 1px solid #c3d5de; border-radius: .4rem; text-align: center; text-decoration: none; font-size: .82rem; font-weight: 750; }
.student-feedback-section { scroll-margin-top: 70px; margin-bottom: 1rem; padding: 1rem; background: #fff; border: 1px solid #d1dfe5; border-radius: .7rem; box-shadow: var(--shadow); }
.student-feedback-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.student-feedback-list-grid article { padding: .75rem; background: #f6f9fb; border: 1px solid #dae5ea; border-radius: .55rem; }
.student-feedback-list-grid h3 { font-size: .95rem; }
.student-feedback-list-detail { margin: -.15rem 0 .5rem; color: #526875; font-size: .84rem; font-weight: 700; line-height: 1.4; }
.student-feedback-list-grid article > div { display: flex; flex-wrap: wrap; gap: .35rem; }
.student-feedback-list-grid article span { padding: .18rem .45rem; color: #264e61; background: #e4f0f4; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.student-feedback-list-grid article span.is-empty { color: #788890; background: #edf0f2; }
.student-feedback-table-wrap { width: 100%; overflow: auto; border: 1px solid #d5e0e6; border-radius: .5rem; }
.student-feedback-table-wrap table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; }
.student-feedback-table-wrap.is-wide table { min-width: 980px; }
.student-feedback-table-wrap th, .student-feedback-table-wrap td { padding: .55rem .65rem; border-bottom: 1px solid #dce5ea; text-align: left; vertical-align: top; white-space: nowrap; }
.student-feedback-table-wrap th { position: sticky; top: 0; z-index: 1; color: #fff; background: #255a78; font-size: .82rem; }
.student-feedback-table-wrap tbody tr:nth-child(even) { background: #f7fafb; }

@media (max-width: 700px) {
  .student-feedback-publish-grid, .student-feedback-publish-form { grid-template-columns: 1fr; }
  .student-feedback-publish-form button { grid-column: auto; }
  .student-feedback-unpublish-form, .student-feedback-summary { display: grid; }
  .student-feedback-unpublish-form button, .student-feedback-summary button { width: 100%; }
  .student-feedback-header { min-height: 60px; padding: .55rem .75rem; }
  .student-feedback-header strong { font-size: 1.05rem; }
  .student-feedback-header small { font-size: .65rem; }
  .student-feedback-page { padding: .65rem; }
  .student-feedback-access-card { margin-top: 1rem; }
  .student-feedback-list-grid { grid-template-columns: 1fr; }
  .student-feedback-existing-images > div, .student-feedback-message-images { grid-template-columns: 1fr; }
  .student-feedback-existing-images img { height: auto; max-height: 300px; object-fit: contain; }
  .student-feedback-section { padding: .7rem; }
}
@media (max-width: 700px) {
  .daily-score-heading { display: grid; grid-template-columns: 1fr; }
  .daily-score-date-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; align-items: end; }
  .daily-score-date-form label, .daily-score-date-form select { width: 100%; min-width: 0; }
  .exercise-page-heading { display: grid; grid-template-columns: 1fr; }
  .exercise-page-heading > .button { width: 100%; }
  .exercise-create-form { grid-template-columns: 1fr; }
  .exercise-create-form .exercise-content-field { grid-column: auto; }
  .exercise-create-form > button { width: 100%; justify-self: stretch; }
  .exercise-task-card { gap: .6rem; }
  .exercise-task-meta { grid-template-columns: 1fr; }
  .exercise-task-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .exercise-task-actions > form, .exercise-task-actions > form button, .exercise-history-item, .exercise-history-item .button { width: 100%; }
  .exercise-history-item { display: grid; padding: .45rem 0; }
  .exercise-history-results span { padding: .35rem .45rem; background: #f5f8fa; border-radius: .35rem; }
  .exercise-run-summary > div { grid-template-columns: 1fr; gap: .12rem; }
  .exercise-run-summary > div > strong { color: #5c4a16; }
  .exercise-check-card { text-align: left; }
  .exercise-check-card .homework-result-buttons { width: 100%; }
  .exercise-run-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .exercise-run-actions > button, .exercise-run-actions > .button, .exercise-run-actions > form, .exercise-run-actions > form button { width: 100%; }
}
/* R80：当日反馈只显示结果；分组以网页草稿和点击式座次编辑为主。 */
.daily-score-heading-actions { margin: 0; }
.daily-score-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.daily-feedback-list { margin-top: .2rem; }
.group-create-panel { border-top: 4px solid #0b789c; }
.group-create-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.group-create-actions form, .group-create-actions button { width: 100%; margin: 0; }
.group-new-form { display: grid; gap: .55rem; }
.group-new-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.group-new-options label { display: grid; gap: .2rem; color: #45606f; font-size: .78rem; font-weight: 750; }
.group-new-mode-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; align-items: end; }
.group-new-mode-actions button { width: 100%; min-height: 42px; }
.group-import-tools > summary { color: #31576a; cursor: pointer; font-weight: 800; }
.group-import-tools[open] > summary { margin-bottom: .7rem; padding-bottom: .55rem; border-bottom: 1px solid #dce5e9; }
.grouping-card-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .7rem; }
.grouping-card { display: grid; gap: .45rem; padding: .8rem; background: #f7fafb; border: 1px solid #d5e1e6; border-top: 4px solid #91a7b2; border-radius: .6rem; }
.grouping-card.is-current { border-top-color: #28844d; background: #f2faf4; }
.grouping-card.is-draft { border-top-color: #c88a12; background: #fffaf0; }
.grouping-card > div:first-child { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.grouping-card h3, .grouping-card p, .grouping-card .actions { margin: 0; }
.group-delete-confirm { position: relative; }
.group-delete-confirm > summary { list-style: none; cursor: pointer; }
.group-delete-confirm > summary::-webkit-details-marker { display: none; }
.group-delete-confirm-body { position: absolute; right: 0; z-index: 8; display: grid; gap: .35rem; width: min(260px, 80vw); margin-top: .3rem; padding: .65rem; color: #632020; background: #fff4f4; border: 1px solid #c94a4a; border-radius: .5rem; box-shadow: 0 8px 22px rgba(80,20,20,.18); }
.group-delete-confirm-body form, .group-delete-confirm-body button { width: 100%; margin: 0; }
.group-editor-help { display: flex; gap: .4rem 1rem; align-items: center; flex-wrap: wrap; color: #365867; }
.group-editor-form, .group-editor-landscape-shell { min-width: 0; }
.group-editor-landscape-toolbar { position: sticky; top: .3rem; z-index: 6; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; align-items: stretch; margin-bottom: .5rem; }
.group-editor-status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem .8rem; align-items: center; margin: 0; padding: .55rem .7rem; color: #fff; background: #153f5c; border-color: #153f5c; box-shadow: 0 7px 18px rgba(17,48,66,.18); }
.group-editor-status span { color: #d9edf5; overflow-wrap: anywhere; }
.group-editor-toolbar-actions { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: .3rem; }
.group-editor-toolbar-actions button { min-width: 0; min-height: 40px; padding: .4rem .55rem; white-space: nowrap; }
.group-landscape-toggle { color: #fff; background: #0b6f91; border-color: #0b6f91; }
.group-editor-board-scroll { max-width: 100%; overflow-x: auto; padding-bottom: .25rem; }
.group-editor-board { display: grid; grid-template-columns: repeat(var(--group-count), minmax(110px, 1fr)); gap: .3rem; min-width: var(--group-board-min-width); }
.group-editor-column { order: var(--group-order); min-width: 0; padding: .35rem; background: #edf3f6; border: 1px solid #ccd9df; border-radius: .55rem; }
.group-editor-column h2 { margin: 0 0 .35rem; color: #244f65; text-align: center; font-size: .9rem; }
.group-editor-column h2 small { color: #607784; font-size: .68rem; }
.group-editor-seats { display: grid; gap: .25rem; }
.group-editor-seat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .12rem; min-width: 0; padding: .16rem; background: #fff; border: 2px solid #c0d0d8; border-radius: .42rem; touch-action: manipulation; }
.group-editor-seat.is-filled { border-color: #70a2b7; }
.group-editor-seat.is-leader { background: #fff8dc; border-color: #d1a72d; }
.group-editor-seat.is-selected-student { background: #d8f1fb; border-color: #00749b; box-shadow: 0 0 0 3px rgba(8,120,158,.24); }
.group-editor-seat.is-selected-target { background: #fff0ce; border-color: #d78e00; box-shadow: 0 0 0 2px rgba(215,142,0,.18); }
.group-seat-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .12rem; align-items: center; min-width: 0; min-height: 44px; padding: .22rem .12rem; color: #264c5f; background: transparent; border: 0; box-shadow: none; text-align: left; touch-action: manipulation; }
.group-seat-main:hover { transform: none; box-shadow: none; background: #eef6f9; }
.group-seat-main small { color: #71838c; font-size: .58rem; }
.group-seat-main strong { overflow-wrap: anywhere; font-size: .78rem; line-height: 1.15; }
.group-editor-seat:not(.is-filled) .group-seat-main strong { color: #8a989f; font-weight: 600; }
.group-leader-toggle { min-width: 36px; min-height: 44px; padding: .12rem .18rem; color: #795a00; background: #fffbed; border-color: #d9c26d; font-size: .62rem; box-shadow: none; touch-action: manipulation; }
.group-leader-toggle span { display: block; }
.group-leader-toggle [data-leader-icon] { font-size: .9rem; }
.group-leader-toggle:hover { transform: none; box-shadow: none; }
.group-leader-toggle:disabled { visibility: hidden; }
.group-editor-stage { margin-top: .35rem; }
.group-roster-panel { margin-top: .75rem; }
.group-roster-search { display: grid; gap: .15rem; color: #45606f; font-size: .75rem; font-weight: 700; }
.group-roster-search input { min-width: 180px; }
.group-roster-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: .35rem; }
.group-roster-list button { display: grid; gap: .08rem; min-width: 0; padding: .4rem .45rem; color: #2d5265; background: #f5f9fa; border-color: #c6d7de; text-align: left; box-shadow: none; }
.group-roster-list button:hover { transform: none; box-shadow: none; background: #eaf4f7; }
.group-roster-list button.is-unassigned { color: #7b3d00; background: #fff0d8; border-color: #d49a3c; }
.group-roster-list button.is-seated { color: #195c36; background: #e2f5e9; border-color: #83bd98; }
.group-roster-list button.is-moved { color: #0b4f2a; background: #c9edd6; border-color: #19864a; box-shadow: inset 0 0 0 1px #19864a; }
.group-roster-list button.is-selected { color: #fff; background: #0b6f91; border-color: #0b6f91; }
.group-roster-list small { color: inherit; opacity: .78; font-size: .65rem; }
body.group-landscape-open { overflow: hidden; }
.group-editor-landscape-shell.is-group-landscape { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: .08rem; padding: .14rem; background: #f3f6f8; }
.group-editor-landscape-shell.is-group-landscape.is-group-rotated { inset: auto; top: 50%; left: 50%; width: 100vh; width: 100dvh; height: 100vw; height: 100dvw; transform: translate(-50%, -50%) rotate(90deg); transform-origin: center; }
.group-editor-landscape-shell.is-group-landscape .group-editor-landscape-toolbar { position: static; grid-template-columns: minmax(0, 1fr) auto; gap: .18rem; margin: 0; }
.group-editor-landscape-shell.is-group-landscape .group-editor-status { min-width: 0; grid-template-columns: auto minmax(0, 1fr); gap: .2rem; padding: .18rem .3rem; border-radius: .3rem; box-shadow: none; font-size: clamp(.5rem, 1vw, .68rem); line-height: 1.05; }
.group-editor-landscape-shell.is-group-landscape .group-editor-status strong, .group-editor-landscape-shell.is-group-landscape .group-editor-status span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-editor-landscape-shell.is-group-landscape .group-editor-toolbar-actions { grid-template-columns: repeat(4, minmax(0, auto)); gap: .12rem; }
.group-editor-landscape-shell.is-group-landscape .group-editor-toolbar-actions button { min-height: 26px; padding: .12rem .25rem; border-radius: .25rem; font-size: clamp(.48rem, 1vw, .66rem); }
.group-editor-landscape-shell.is-group-landscape .group-landscape-toggle { grid-column: auto; }
.group-editor-landscape-shell.is-group-landscape .group-editor-board-scroll { height: 100%; overflow-x: hidden; overflow-y: auto; padding: 0; }
.group-editor-landscape-shell.is-group-landscape .group-editor-board { display: flex; flex-wrap: nowrap; width: 100%; min-width: 0; min-height: 100%; height: max-content; gap: .08rem; }
.group-editor-landscape-shell.is-group-landscape .group-editor-column { display: grid; flex: 1 1 0; width: 0; min-width: 0; grid-template-rows: auto minmax(0, 1fr); min-height: 100%; padding: .08rem; border-radius: .22rem; }
.group-editor-landscape-shell.is-group-landscape .group-editor-column h2 { margin: 0 0 .05rem; font-size: clamp(.5rem, 1vw, .66rem); line-height: 1; }
.group-editor-landscape-shell.is-group-landscape .group-editor-column h2 small { font-size: clamp(.42rem, .8vw, .54rem); }
.group-editor-landscape-shell.is-group-landscape .group-editor-seats { min-height: 0; grid-template-rows: repeat(var(--group-seat-count), minmax(18px, 1fr)); gap: .04rem; }
.group-editor-landscape-shell.is-group-landscape .group-editor-seat { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; gap: .03rem; padding: .02rem; border-width: 1px; border-radius: .18rem; }
.group-editor-landscape-shell.is-group-landscape .group-seat-main { grid-template-columns: auto minmax(0, 1fr); gap: .04rem; min-height: 0; padding: .02rem; font-size: clamp(.46rem, 1vw, .64rem); line-height: 1; }
.group-editor-landscape-shell.is-group-landscape .group-seat-main small { font-size: clamp(.36rem, .7vw, .48rem); }
.group-editor-landscape-shell.is-group-landscape .group-seat-main strong { font-size: clamp(.46rem, 1vw, .64rem); line-height: 1; }
.group-editor-landscape-shell.is-group-landscape .group-leader-toggle { min-width: 22px; min-height: 0; padding: .01rem; border-radius: .15rem; }
.group-editor-landscape-shell.is-group-landscape .group-leader-toggle [data-leader-icon] { font-size: clamp(.48rem, 1vw, .66rem); line-height: 1; }
.group-editor-landscape-shell.is-group-landscape .group-leader-toggle [data-leader-label] { display: none; }
.group-editor-landscape-shell.is-group-landscape .group-editor-stage { width: 42%; margin: 0 auto; padding: .08rem; font-size: clamp(.48rem, 1vw, .64rem); line-height: 1; }
.group-editor-landscape-shell.is-group-landscape .group-roster-panel { min-height: 0; max-height: 88px; margin: 0; padding: .1rem; overflow: hidden; border-radius: .3rem; }
.group-editor-landscape-shell.is-group-landscape .group-roster-panel .section-heading { margin: 0 0 .08rem; }
.group-editor-landscape-shell.is-group-landscape .group-roster-panel h2 { margin: 0; padding: 0; border: 0; font-size: clamp(.48rem, .9vw, .62rem); line-height: 1; }
.group-editor-landscape-shell.is-group-landscape .group-roster-search { display: none; }
.group-editor-landscape-shell.is-group-landscape .group-roster-list { grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: .04rem; max-height: 70px; overflow-y: auto; }
.group-editor-landscape-shell.is-group-landscape .group-roster-list button { display: block; min-height: 17px; padding: .03rem .08rem; border-width: 1px; border-radius: .18rem; font-size: clamp(.44rem, .86vw, .58rem); line-height: 1; text-align: center; }
.group-editor-landscape-shell.is-group-landscape .group-roster-list small { display: none; }

@media (max-width: 700px) {
  .daily-score-heading-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .daily-score-heading-actions > .button { width: 100%; }
  .daily-score-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .daily-score-tabs a { min-height: 48px; padding: .35rem .2rem; text-align: center; }
  .group-create-actions { grid-template-columns: 1fr; }
  .group-new-options { grid-template-columns: 1fr; }
  .group-new-mode-actions { grid-template-columns: 1fr; }
  .grouping-card-list { grid-template-columns: 1fr; }
  .group-editor-help { display: grid; }
  .group-editor-landscape-toolbar { grid-template-columns: 1fr; }
  .group-editor-status { grid-template-columns: 1fr; }
  .group-editor-toolbar-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-editor-toolbar-actions button { width: 100%; white-space: normal; }
  .group-editor-toolbar-actions .group-landscape-toggle { grid-column: 1 / -1; }
  .group-roster-search { width: 100%; }
  .group-roster-search input { width: 100%; min-width: 0; }
  .group-roster-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (orientation: landscape) and (max-width: 1100px) {
  .group-editor-board { min-width: 0; grid-template-columns: repeat(var(--group-count), minmax(0, 1fr)); gap: .12rem; }
  .group-editor-column { padding: .15rem; }
  .group-editor-column h2 { font-size: .66rem; }
  .group-editor-seats { gap: .08rem; }
  .group-editor-seat { padding: .05rem; border-width: 1px; }
  .group-seat-main { min-height: 34px; padding: .05rem; }
  .group-seat-main strong { font-size: .62rem; }
  .group-leader-toggle { min-width: 27px; min-height: 34px; padding: .04rem; }
  .group-leader-toggle [data-leader-label] { display: none; }
}
