/* 网页后台的筛选、任务报表和课程编辑。 */
.admin-followup { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: 22px 26px; }
.admin-followup h2 { margin: 0 0 5px; font-size: 1.15rem; }
.admin-followup p { margin: 0; font-size: .875rem; }
.admin-followup .eyebrow { margin: 0 0 5px; }
.admin-followup-actions { display: flex; align-items: center; gap: 8px; }
.admin-followup-actions button { display: flex; align-items: center; gap: 12px; border: 0; border-radius: 10px; padding: 14px 18px; background: #f2f6ee; color: #365940; text-align: left; }
.admin-followup-actions button:hover { background: #e7efdf; }
.admin-followup-actions strong { font-size: 1.65rem; line-height: 1; font-variant-numeric: tabular-nums; }
.admin-followup-actions span { font-size: .875rem; }
.admin-followup + .welcome-card { margin-top: 0; }
.admin-context-note { font-size: .875rem; color: var(--muted); line-height: 1.75; margin: 0 0 20px; }
.admin-storage { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.admin-storage h3 { margin: 0 0 5px; }
.admin-storage p { font-size: .875rem; margin: 0; }
.admin-storage-meter { display: flex; align-items: center; gap: 12px; width: min(240px, 35%); font-size: .875rem; }
.admin-storage-meter .progress { flex: 1; }
.admin-detail-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f4f7f0; border-radius: 10px; padding: 18px; gap: 18px; margin: 20px 0; }
.admin-detail-stats > div { display: flex; flex-direction: column; gap: 5px; }
.admin-detail-stats strong { font-size: 1.3rem; font-weight: 600; color: #2d5038; }
.admin-detail-stats span { font-size: .875rem; color: var(--muted); }
.admin-course-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-lesson-name { min-width: 0; }
.admin-lesson-name strong { overflow-wrap: anywhere; }
.admin-lesson-row > .admin-lesson-actions { flex: 0 0 auto; display: flex; gap: 12px; align-items: center; }
.admin-lesson-actions .text-btn { min-height: 36px; padding: 4px 0; font-size: .875rem; }
.admin-danger-text { color: #af4d3c !important; }
.admin-course-people { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.admin-course-people h3 { margin-bottom: 12px; }
.admin-course-person { display: grid; grid-template-columns: minmax(100px,1fr) auto 48px auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.admin-course-person > strong { text-align: right; font-weight: 500; }
.admin-badge-overdue { color: #a34937; background: #fff0e9; }
.admin-badge-in-progress { color: #466e94; background: #edf3f8; }
.admin-badge-not-started, .admin-badge-preparing { color: #6a7767; background: #f0f3ed; }
.admin-badge-completed { color: #35704c; background: #edf6ee; }
.admin-result-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; font-size: .875rem; }
.admin-table th, .admin-table td { font-size: .875rem; }
.admin-table .person small { font-size: .875rem; }
.admin-table td > strong { font-weight: 500; }
.admin-table .table-progress { min-width: 125px; }
.admin-table .table-progress > span { font-size: .875rem; }
.admin-table-actions { display: flex; align-items: center; gap: 15px; white-space: nowrap; }
.admin-table-actions .text-btn, .admin-table .text-btn { font-size: .875rem; }
.admin-date { color: var(--muted); white-space: nowrap; font-size: .875rem; }
.admin-cell-sub { display: block; margin-top: 4px; font-size: .875rem; color: var(--muted); }
.admin-report-controls .section-heading { align-items: flex-start; }
.admin-report-filters { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(150px, 1.2fr) repeat(3, minmax(115px, 1fr)) auto; align-items: end; gap: 14px; }
.admin-report-filters .search-box { min-width: 0; margin-bottom: 0; height: 43px; }
.admin-filter-label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: .875rem; color: var(--muted); }
.admin-filter-label select { width: 100%; text-overflow: ellipsis; }
.admin-report-filters > .text-btn { align-self: end; min-height: 43px; white-space: nowrap; }
.admin-report-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 22px 0; gap: 18px; }
.admin-report-summary > div { padding: 19px 22px; border: 1px solid var(--line); background: #fff; border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.admin-report-summary > div > span { color: var(--muted); font-size: .875rem; }
.admin-report-summary strong { font-size: 1.8rem; font-weight: 600; line-height: 1.2; color: #2d4d36; font-variant-numeric: tabular-nums; }
.admin-report-summary small { font-size: .875rem; font-weight: 400; margin-left: 8px; color: var(--muted); }
.admin-report-table { min-width: 1040px; }
.admin-report-course { min-width: 150px; max-width: 230px; overflow-wrap: anywhere; }
.admin-report-table + .admin-context-note { margin: 16px 0 0; }
.admin-chapter-progress { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; font-size: .875rem; }
.admin-chapter-progress > span:first-child { overflow-wrap: anywhere; }
.admin-chapter-progress > span:last-child { flex-shrink: 0; color: var(--muted); }
.admin-filters select { min-width: 125px; }
.admin-filters input, .admin-filters select, .admin-report-filters input, .admin-report-filters select { font-size: .875rem !important; }
.admin-report-filters .badge, .admin-table .badge, .admin-course-person .badge { font-size: .875rem; }
.admin-access-link { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.admin-access-link input { flex: 1; min-width: 0; }
.admin-access .admin-context-note { margin: 16px 0 0; }
.icp-footer { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 18px; padding: 0 0 22px; text-align: center; color: #596b60; font-size: .875rem; line-height: 1.8; }
.icp-footer a { color: inherit; text-decoration: none; }
.icp-footer a:hover { color: var(--green); text-decoration: underline; }
@media (min-width: 1000px) { .admin-followup ~ .welcome-card { padding-top: 22px; padding-bottom: 22px; } }
@media (max-width: 1250px) {
  .admin-followup { align-items: flex-start; flex-direction: column; gap: 16px; }
  .admin-followup-actions { width: 100%; }
  .admin-followup-actions button { flex: 1; }
  .admin-report-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .admin-followup { padding: 20px; }
  .admin-followup-actions { gap: 8px; }
  .admin-followup-actions button { flex-direction: column; align-items: flex-start; gap: 8px; padding: 13px 11px; }
  .admin-followup-actions span { font-size: .875rem; }
  .admin-filters.filter-row { flex-wrap: wrap; gap: 10px; }
  .admin-filters .search-box { flex: 1 1 100%; }
  .admin-filters select { flex: 1; max-width: none; min-width: 0; }
  .admin-report-filters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .admin-report-filters .search-box { grid-column: 1 / -1; }
  .admin-report-controls .section-heading { flex-direction: column; }
  .admin-report-summary { gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-report-summary > div { padding: 17px; }
  .admin-result-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .admin-detail-stats { gap: 10px; padding: 14px; }
  .admin-detail-stats strong { font-size: 1.05rem; }
  .admin-storage { flex-direction: column; align-items: stretch; gap: 12px; }
  .admin-storage-meter { width: 100%; }
  .admin-lesson-row { flex-wrap: wrap; }
  .admin-lesson-row .admin-lesson-actions { width: 100%; padding-left: 42px; }
  .admin-course-person { grid-template-columns: 1fr auto auto; gap: 9px; }
  .admin-course-person > .badge { grid-column: 2; }
  .admin-course-person > strong { display: none; }
  .admin-chapter-progress { flex-direction: column; gap: 3px; }
  .topbar-actions > #role-switch { display: none; }
}
