/* Staff screens share the student shell, with readable administrative records. */
.staff-page { min-width: 0; overflow-wrap: anywhere; }
.staff-page h2, .staff-page h3 { line-height: 1.35; }
.staff-page h2 { margin-top: 0; }
.staff-page .staff-payment-group > h2 { margin-top: 1.4em; }
.staff-record-list { display: grid; gap: 16px; }
.staff-record-list > .card { margin: 0; }
.staff-student > h2, .staff-teacher-record > h2 { font-size: 1.15rem; }
.staff-student > p { margin: 8px 0; }
.staff-section-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 24px; padding: 12px 0; border-block: 1px solid var(--line); }
.staff-content-menu { margin: 16px 0; }
.staff-link-list { display: grid; gap: 10px; padding: 12px 0; }
.staff-topic-summary { margin: 16px 0; }
.staff-topic-summary > .staff-record-list { margin-top: 12px; }
.staff-topic-row, .staff-payment-record { border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.staff-topic-row h3, .staff-payment-record h3 { margin: 0 0 6px; }
.staff-topic-row p, .staff-payment-record > p { margin: 6px 0 12px; }
.staff-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.staff-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 14px 0; }
.staff-facts > div { min-width: 0; }
.staff-facts dt { font-size: .8rem; font-weight: 600; color: var(--muted); }
.staff-facts dd { margin: 2px 0 0; }
.staff-actions { display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.staff-action-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.staff-action-form label { display: grid; gap: 4px; min-width: 0; flex: 1 1 180px; font-size: .875rem; }
.staff-action-form label:has(input[type=number]) { flex: 0 1 120px; }
.staff-action-form .btn { flex: 0 0 auto; }
.staff-admin-body { margin-top: 20px; }
.staff-admin-body > .inline-form { margin: 20px 0; align-items: end; }
.staff-admin-body > .inline-form > label { display: grid; flex: 1 1 200px; min-width: 0; font-size: .875rem; }
.staff-admin-body > .inline-form input, .staff-admin-body > .inline-form select { width: 100%; min-width: 0; }
.staff-admin-body > .inline-form label:has(input[type=number]) { flex: 0 1 120px; }
.staff-admin-body .pill { max-width: 100%; white-space: normal; }
.staff-progress-topic summary { display: grid; grid-template-columns: 12px minmax(0, 1fr); align-items: start; gap: 8px; }
.staff-progress-topic summary > .pill { grid-column: 2; justify-self: start; }
.staff-progress-topic summary::before { content: "▸"; }
.staff-progress-topic[open] > summary::before { content: "▾"; }
.staff-concept-list { list-style: none; padding: 0; margin: 16px 0 0; }
.staff-concept-record { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.staff-concept-record > .pill { justify-self: start; }
.staff-history { margin: 24px 0; }
.staff-history > .staff-record-list { margin-top: 16px; }
.staff-page #staff-progress, .staff-page #staff-quizzes { scroll-margin-top: 16px; margin-top: 24px; }
.staff-page #staff-administration { scroll-margin-top: 16px; }
@media (max-width: 560px) {
  .staff-concept-record { grid-template-columns: minmax(0, 1fr) auto; }
  .staff-concept-title { grid-column: 1 / -1; }
  .staff-facts { grid-template-columns: minmax(0, 1fr); }
  .staff-action-form { display: grid; grid-template-columns: minmax(0, 1fr); }
  .staff-action-form .btn { width: 100%; }
  .staff-page .card { padding: 16px; }
  .staff-page .staff-payment-record { padding: 14px; }
  .staff-admin-body > .inline-form { display: grid; grid-template-columns: minmax(0, 1fr); }
  .staff-page .btn { max-width: 100%; white-space: normal; text-align: center; }
}

.staff-review-languages { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0; }
.staff-review-languages [aria-current=page] { font-weight: 700; text-decoration: none; }

.staff-empty-group { margin: 10px 0; }
