/* Desktop teacher overview uses the same presentation tokens as the student overview. */
.teacher-dashboard { position: absolute; inset: 0; overflow-y: auto; color: #202938; background: #f6f8fa; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.5; }
.teacher-dashboard-content { max-width: 1680px; margin: 0 auto; padding: 30px 28px 22px; min-width: 0; }
.teacher-dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.teacher-dashboard-heading h1 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-weight: 700; font-size: 36px; letter-spacing: .02em; color: #111827; }
.teacher-dashboard-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 6px 14px; border: 1px solid #bfc7d1; border-radius: 5px; background: #fff; color: #273244; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.teacher-dashboard-button:hover { background: #f6f8fa; border-color: #687588; }
.teacher-dashboard-button:disabled { color: #657185; background: #f1f3f6; cursor: not-allowed; }
.teacher-dashboard-button i { font-size: 20px; }
.teacher-dashboard-primary { background: #c41b22; border-color: #c41b22; color: #fff; }
.teacher-dashboard-primary:hover { background: #a9141b; border-color: #a9141b; }
.teacher-dashboard-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 3px 0; background: transparent; border: 0; color: #bc1820; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.teacher-dashboard-text-button:hover { color: #901119; text-decoration: underline; }
.teacher-dashboard button:focus-visible, .teacher-dashboard textarea:focus-visible { outline: 2px solid #a71b23; outline-offset: 3px; }
.teacher-dashboard-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid #e0e5eb; border-radius: 8px; padding: 20px 0; margin: 0 0 20px; }
.teacher-dashboard-summary > div { display: flex; justify-content: center; align-items: center; gap: 20px; min-width: 0; padding: 0 12px; }
.teacher-dashboard-summary > div + div { border-left: 1px solid #d7dce3; }
.teacher-dashboard-summary dt { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 17px; font-weight: 600; }
.teacher-dashboard-summary dd { margin: 0; color: #bd1b23; font-family: Georgia, "Noto Serif SC", serif; font-weight: 700; font-size: 32px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.teacher-dashboard-summary dd.teacher-dashboard-summary-state { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 20px; color: #657185; }
.teacher-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr); align-items: start; gap: 20px; }
.teacher-dashboard-card { min-width: 0; padding: 20px 22px; background: #fff; border: 1px solid #e0e5eb; border-radius: 8px; }
.teacher-dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.teacher-dashboard-section-heading h2 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; color: #111827; font-size: 21px; font-weight: 700; }
.teacher-dashboard-section-date { flex-shrink: 0; font-size: 12px; color: #657185; }
.teacher-dashboard-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.teacher-dashboard-table th { background: #f3f5f8; font-weight: 500; color: #4b5565; }
.teacher-dashboard-table th, .teacher-dashboard-table td { padding: 13px 10px; border-bottom: 1px solid #e3e8ef; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.teacher-dashboard-table th:first-child, .teacher-dashboard-table td:first-child { padding-left: 14px; }
.teacher-dashboard-table td:last-child { padding-right: 0; }
.teacher-dashboard-table tbody tr:last-child td { border-bottom: 0; }
.teacher-dashboard-table strong { font-weight: 500; }
.teacher-dashboard-table td .teacher-dashboard-button { padding-left: 11px; padding-right: 11px; font-size: 13px; }
.teacher-dashboard-secondary { display: block; margin: 4px 0 0; font-size: 12px; color: #657185; overflow-wrap: anywhere; }
.teacher-dashboard-progress { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 3px; background: #edf1f5; }
.teacher-dashboard-progress span { display: block; height: 100%; background: #c41b22; }
.teacher-dashboard-status { display: inline-block; flex-shrink: 0; padding: 4px 10px; border-radius: 4px; color: #a81720; background: #fde6e7; font-size: 12px; font-weight: 600; }
.teacher-dashboard-status-muted { color: #536174; background: #edf1f5; }
.teacher-dashboard-empty { margin: 0; padding: 34px 10px; color: #667185; font-size: 14px; }
.teacher-dashboard-error { color: #a41b23; font-size: 14px; }
.teacher-dashboard-read-state { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 10px; }
.teacher-dashboard-read-state p { margin: 0; }
.teacher-dashboard-attendance .teacher-dashboard-section-heading { padding-bottom: 18px; border-bottom: 1px solid #e3e8ef; }
.teacher-dashboard-attendance-overview p { margin: 12px 0 20px; color: #657185; font-size: 14px; }
.teacher-dashboard-attendance-students { padding-top: 16px; border-top: 1px solid #e3e8ef; }
.teacher-dashboard-attendance-students h3 { margin: 0; color: #273244; font-size: 14px; font-weight: 500; }
.teacher-dashboard-student-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.teacher-dashboard-action-item { padding: 16px 0; border-top: 1px solid #e3e8ef; }
.teacher-dashboard-action-item h3 { margin: 0 0 5px; color: #273244; font-size: 15px; font-weight: 600; }
.teacher-dashboard-action-item p { margin: 4px 0; font-size: 13px; overflow-wrap: anywhere; }
.teacher-dashboard-action-item .teacher-dashboard-secondary { color: #657185; font-size: 12px; }
.teacher-dashboard-action-item .teacher-dashboard-button { margin-top: 9px; }
.teacher-dashboard-forum { grid-column: 1 / -1; }
.teacher-dashboard-forum-list { max-height: 480px; overflow-y: auto; }
.teacher-dashboard-forum-item { padding: 16px 0; border-top: 1px solid #e3e8ef; }
.teacher-dashboard-forum-meta { display: flex; align-items: center; gap: 16px; }
.teacher-dashboard-forum-meta h3 { margin: 0; font-size: 14px; font-weight: 600; color: #273244; }
.teacher-dashboard-forum-meta > span { color: #657185; font-size: 12px; }
.teacher-dashboard-forum-meta .teacher-dashboard-text-button { margin-left: auto; }
.teacher-dashboard-forum-question { margin: 7px 0 0; color: #4b5565; font-size: 14px; overflow-wrap: anywhere; }
.teacher-dashboard-reply { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-top: 14px; }
.teacher-dashboard-reply textarea { width: 100%; min-height: 80px; padding: 10px 12px; border: 1px solid #bfc7d1; border-radius: 5px; background: #fff; color: #273244; font-family: inherit; font-size: 14px; resize: vertical; }
.teacher-dashboard-modal-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: #11182766; }
.teacher-dashboard-modal { width: 480px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 24px; border: 1px solid #e0e5eb; border-radius: 8px; background: #fff; box-shadow: 0 12px 36px #1f293726; }
.teacher-dashboard-modal .teacher-dashboard-section-heading { padding-bottom: 16px; border-bottom: 1px solid #e3e8ef; }
.teacher-dashboard-modal h3 { margin: 18px 0 8px; color: #273244; font-size: 14px; font-weight: 600; }
.teacher-dashboard-modal-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 4px; background: #fff; color: #657185; font-size: 21px; cursor: pointer; }
.teacher-dashboard-modal-close:hover { background: #f3f5f8; color: #111827; }
.teacher-dashboard-modal-target { padding: 12px 14px; border: 1px solid #e0e5eb; border-radius: 5px; background: #f6f8fa; font-size: 14px; overflow-wrap: anywhere; }
.teacher-dashboard-modal-target p { margin: 6px 0; color: #4b5565; }
.teacher-dashboard-modal-target small { color: #657185; font-size: 12px; }
.teacher-dashboard-strategies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.teacher-dashboard-strategies button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border: 1px solid #bfc7d1; border-radius: 5px; background: #fff; color: #4b5565; font-size: 14px; cursor: pointer; }
.teacher-dashboard-strategies button i { font-size: 21px; }
.teacher-dashboard-strategies button[aria-pressed="true"] { border-color: #c41b22; background: #fdf0f1; color: #bc1820; }
.teacher-dashboard-modal-note { margin: 18px 0; color: #657185; font-size: 12px; }
.teacher-dashboard-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid #e3e8ef; }
.teacher-dashboard-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
