/* ATOM teacher dashboard — shares the editorial palette with study. */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.students-mode .main { max-width:1420px; padding-top:32px; }
.students-mode .catalog-picker { display:none; }
.students-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:25px; }
.students-heading h1 { margin:10px 0 8px; font:400 clamp(30px,4vw,43px)/1.2 var(--serif); }
.students-heading p { margin:0; font-size:13px; color:var(--muted); }
.students-heading-actions { display:flex; gap:10px; }
.students-heading-actions .btn { padding:12px 17px; }
.teacher-identity { display:flex; align-items:center; gap:12px; padding-left:12px; border-left:1px solid var(--border); min-width:0; }
.teacher-identity > span { min-width:0; text-align:right; flex-shrink:1; }
.teacher-identity strong { display:block; max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; font-weight:500; }
.teacher-identity small { display:block; margin-top:3px; color:var(--muted); font-size:10px; }
.teacher-logout,.student-reset-button,.student-clear-search { min-height:40px; padding:8px 10px; border:1px solid var(--border); border-radius:4px; background:transparent; color:var(--muted); font-size:11px; white-space:nowrap; }
.teacher-logout:hover,.student-reset-button:hover,.student-clear-search:hover { border-color:var(--gold-line); color:var(--gold-bright); }
.student-reset-button[aria-expanded="true"] { border-color:var(--gold-line); color:var(--gold-bright); background:#d4b77b08; }
.student-create-card,.student-reset-card { padding:22px 24px; margin-bottom:24px; border:1px solid var(--gold-line); border-radius:5px; background:var(--card); }
.student-create-card .student-section-title { margin-bottom:18px; justify-content:flex-start; gap:18px; }
.student-create-card h2 { margin:0; font-size:18px; font-weight:500; }
.student-create-card .student-section-title p,.student-password-title p { margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.student-create-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; align-items:end; gap:16px; }
.student-create-form label,.student-password-form label { display:block; min-width:0; color:var(--muted); font-size:12px; }
.student-create-form label > small { margin-left:5px; font-size:10px; }
.student-create-form input,.student-password-form input { display:block; width:100%; min-width:0; margin-top:9px; min-height:44px; padding:10px 12px; border:1px solid var(--border); border-radius:4px; background:var(--paper); color:var(--ink); font:inherit; font-size:14px; }
.student-create-form .btn,.student-password-form .btn { min-height:44px; padding:10px 16px; font-size:12px; }
.student-form-error { grid-column:1 / -1; margin:0; color:var(--error); font-size:12px; line-height:1.7; }
.student-password-form { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(160px,1fr) auto; align-items:end; gap:20px; }
.student-password-title { align-self:center; min-width:0; }
.student-password-title strong { display:block; margin-bottom:8px; font-size:14px; font-weight:500; overflow-wrap:anywhere; }
.student-password-actions { display:flex; gap:8px; }
.students-table .student-password-row td { width:auto; max-width:none; padding:20px 24px; background:#d4b77b06; border-bottom:1px solid var(--gold-line); }
.student-profile-actions { margin-left:auto; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:16px; flex:none; }
.student-profile-actions .student-activity { margin-top:0; }
.students-footnote a { margin-left:12px; color:var(--gold); }
.students-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:25px; }
.student-metric { display:flex; flex-direction:column; align-items:flex-start; gap:12px; text-align:left; min-width:0; padding:22px 24px; border:1px solid var(--border); border-top:2px solid var(--gold-line); border-radius:5px; background:var(--card); color:var(--ink); }
button.student-metric:hover { border-color:var(--gold); background:var(--card-raised); }
.student-metric > span { font-size:13px; color:var(--muted); }
.student-metric > strong { font-size:36px; font-weight:600; line-height:1.1; font-variant-numeric:tabular-nums; color:var(--gold-bright); }
.student-metric em { font-size:15px; font-weight:400; font-style:normal; color:var(--muted); }
.student-metric > small { font-size:11px; line-height:1.5; color:var(--muted); }
.students-board,.student-chart-card,.student-record-card { border:1px solid var(--border); border-radius:5px; background:var(--card); overflow:hidden; }
.students-toolbar { display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; padding:18px 20px; border-bottom:1px solid var(--border); }
.student-filters { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.student-filters button { min-height:40px; padding:8px 11px; background:transparent; border:1px solid transparent; border-radius:4px; color:var(--muted); font-size:12px; white-space:nowrap; }
.student-filters button span { margin-left:7px; font-size:11px; opacity:.8; }
.student-filters button.active { background:#d4b77b13; border-color:var(--gold-line); color:var(--gold-bright); }
.student-filters button:hover { color:var(--ink); border-color:var(--border); }
.student-controls { display:flex; gap:10px; flex-wrap:wrap; }
.student-controls input,.student-controls select,.student-word-board input { min-height:40px; padding:9px 12px; border:1px solid var(--border); border-radius:4px; background:var(--paper); color:var(--ink); font:inherit; font-size:12px; min-width:0; }
.student-controls input { width:180px; }
.students-table,.student-words-table { width:100%; border-collapse:collapse; text-align:left; font-size:12px; }
.students-table th,.student-words-table th { padding:14px 18px; color:var(--muted); font-weight:400; background:#17191855; font-size:11px; }
.students-table td { padding:18px; border-bottom:1px solid var(--border); vertical-align:middle; font-variant-numeric:tabular-nums; }
.students-table tr:last-child td { border-bottom:0; }
.students-table tbody tr:hover { background:#ffffff03; }
.students-table td:first-child { width:17%; max-width:220px; }
.students-table td:nth-child(2) { width:20%; min-width:170px; }
.students-table td > small { display:block; margin-top:5px; color:var(--muted); font-size:10px; }
.student-name { display:flex; align-items:center; gap:11px; padding:0; background:transparent; color:var(--ink); border:0; text-align:left; max-width:100%; min-height:44px; }
.student-name > span:last-child { min-width:0; overflow-wrap:anywhere; }
.student-name strong { font-size:14px; line-height:1.5; }
.student-name strong b { color:var(--gold); font-size:12px; margin-left:3px; }
.student-name small { display:block; margin-top:3px; color:var(--muted); font-size:11px; }
.student-avatar { display:grid; place-items:center; width:36px; height:36px; flex-shrink:0; border:1px solid var(--gold-line); border-radius:50%; background:#d4b77b08; color:var(--gold); font-size:15px; }
.student-activity { display:inline-block; color:var(--success); font-size:10px; margin-top:10px; }
.student-activity:before { content:'●'; margin-right:5px; font-size:8px; }
.student-activity.new { color:var(--muted); }.student-activity.inactive { color:var(--error); }
.student-coverage { display:flex; justify-content:space-between; gap:10px; align-items:baseline; font-variant-numeric:tabular-nums; }
.student-coverage strong { font-size:16px; font-weight:600; }.student-coverage small { color:var(--muted); font-size:10px; font-weight:400; }
.student-coverage > span { font-size:11px; color:var(--gold); }
.student-track { display:flex; height:6px; overflow:hidden; border-radius:3px; background:var(--border); margin-top:10px; }
.student-track i,.student-legend i { background:var(--gold); }.student-track .known,.student-legend .known { background:#a2a69b; }.student-track .familiar,.student-legend .familiar { background:var(--success); }
.student-number { font-size:18px; font-weight:500; }.student-number small { font-size:10px; color:var(--muted); font-weight:400; }
.student-due { border:0; background:transparent; color:var(--muted); min-height:44px; font-size:17px; padding:0; white-space:nowrap; }.student-due.has-due { color:var(--gold-bright); }.student-due small { font-size:10px; }
.student-last { color:var(--muted); font-size:11px; white-space:nowrap; }
.student-table-footer { display:flex; align-items:center; justify-content:space-between; padding:14px 20px; border-top:1px solid var(--border); font-size:11px; color:var(--muted); gap:12px; }
.student-pager { display:flex; align-items:center; gap:12px; }.student-pager button { width:36px; min-height:36px; color:var(--ink); background:var(--paper); border:1px solid var(--border); border-radius:4px; }
.students-empty { text-align:center; padding:45px 20px; color:var(--muted); font-size:13px; line-height:1.7; }.students-empty h2 { color:var(--ink); font:400 24px var(--serif); }.students-empty .btn { margin:10px 5px; }
.student-explainer { margin-top:18px; font-size:12px; color:var(--muted); line-height:1.8; }.student-explainer summary { cursor:pointer; padding:8px 0; color:var(--gold); }.student-explainer p { max-width:900px; }
.student-legend { display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:var(--muted); font-size:11px; }.student-legend i { width:9px; height:9px; border-radius:2px; margin-left:8px; flex:none; }
.students-footnote { margin:22px 0 0; color:var(--muted); font-size:11px; line-height:1.8; }
.student-back { background:transparent; border:0; color:var(--gold); padding:5px 0 16px; font-size:13px; min-height:44px; }
.student-profile { display:flex; align-items:center; gap:16px; margin:0 0 24px; }.student-avatar.large { width:56px; height:56px; font-size:22px; }.student-profile > div { min-width:0; }.student-profile h2 { margin:0; font-size:25px; overflow-wrap:anywhere; }.student-profile h2 span { font-size:12px; color:var(--muted); font-weight:400; }.student-profile p { margin:8px 0 0; color:var(--muted); font-size:11px; line-height:1.7; }.student-profile > .student-activity { margin-left:auto; flex:none; }
.student-chart-card { padding:22px 24px; margin-bottom:24px; }.student-section-title { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; }.student-section-title h3 { margin:0; font-size:18px; font-weight:500; }.student-section-title h3 small { font-size:11px; font-weight:400; color:var(--muted); margin-left:7px; }
.student-chart { display:grid; grid-template-columns:repeat(14,minmax(0,1fr)); gap:14px; margin:32px 0 16px; }.student-chart-day { min-width:0; text-align:center; }.student-chart-bars { display:flex; align-items:end; justify-content:center; gap:4px; height:115px; border-bottom:1px solid var(--border); position:relative; }.student-chart-bars > span { position:relative; width:35%; max-width:22px; min-height:2px; border-radius:3px 3px 0 0; background:var(--gold); }.student-chart-bars .test { background:var(--success); }.student-chart-bars b { position:absolute; bottom:100%; left:50%; transform:translateX(-50%); font-size:9px; font-weight:400; padding-bottom:5px; color:var(--muted); }.student-chart-day > small { display:block; margin-top:10px; color:var(--muted); font-size:10px; }.student-chart-day:last-child > small { color:var(--gold); }.student-chart-card > p { font-size:11px; color:var(--muted); margin:0; line-height:1.8; }
.student-word-board { margin-bottom:24px; scroll-margin-top:20px; }.student-word-board .student-section-title { padding:20px; }.word-filters { padding:0 14px 14px; }.student-words-table td { padding:14px 20px; border-top:1px solid var(--border); }.student-words-table td:first-child { width:45%; }.student-words-table td strong { font-size:14px; }.student-words-table td small { display:block; margin-top:5px; color:var(--muted); font-size:11px; line-height:1.6; }.student-word-status { font-size:11px; color:var(--muted); }.student-word-status.due { color:var(--gold-bright); }.student-word-status.familiar { color:var(--success); }
.student-data-note { margin:0; padding:0 20px 16px; font-size:11px; color:var(--muted); line-height:1.8; }.student-word-board > .student-data-note { padding-top:10px; }
.student-detail-columns { display:grid; grid-template-columns:1.15fr 1fr; align-items:start; gap:24px; }.student-record-card .student-section-title { padding:20px; }
.student-detail-nav { display:flex; gap:10px; margin-bottom:18px; border-bottom:1px solid var(--border); scroll-margin-top:16px; }
.student-detail-nav button { padding:14px 17px; min-height:48px; border:0; border-bottom:2px solid transparent; background:transparent; color:var(--muted); font-size:13px; }
.student-detail-nav button.active { border-color:var(--gold); color:var(--gold-bright); }.student-detail-nav button span { margin-left:9px; font-size:11px; }
.student-test-run { border-top:1px solid var(--border); }.student-test-run summary { display:grid; grid-template-columns:1fr auto; gap:10px; cursor:pointer; padding:16px 20px; font-size:12px; }.student-test-run summary > strong { color:var(--gold); font-size:20px; font-weight:500; }.student-test-run summary small { display:block; color:var(--muted); font-size:10px; margin-top:5px; }.student-test-counts { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:12px; color:var(--muted); font-size:10px; }.student-test-counts i { font-style:normal; }.student-test-run ul,.student-recent { list-style:none; margin:0; padding:0; }.student-test-run li,.student-recent li { display:flex; align-items:center; justify-content:space-between; gap:14px; border-top:1px solid var(--border); padding:13px 20px; font-size:13px; }.student-test-run li { background:var(--paper); }.student-test-run li small,.student-recent li small { display:block; font-size:10px; color:var(--muted); margin-top:5px; line-height:1.6; }.student-result { white-space:nowrap; font-size:11px; color:var(--muted); }.student-result.correct { color:var(--success); }.student-result.close { color:var(--gold); }.student-result.incorrect { color:var(--error); }
@media(max-width:1100px) {
  .students-table th,.students-table td { padding-left:12px; padding-right:12px; }
  .student-metric { padding:20px; }.student-chart { gap:8px; }
}
@media(max-width:900px) {
  .student-create-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .student-create-form > .btn { justify-self:start; }
  .student-password-form { grid-template-columns:1fr 1fr; gap:16px; }
  .student-password-title { grid-column:1 / -1; }
  .students-table thead { display:none; }.students-table,.students-table tbody { display:block; }
  .students-table tbody { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; background:var(--border); }
  .students-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:20px; background:var(--card); }
  .students-table td { display:block; padding:0; border:0; min-width:0!important; width:auto!important; max-width:none!important; }
  .students-table td:before { content:attr(data-label); display:block; color:var(--muted); font-size:10px; margin-bottom:7px; }
  .students-table td:first-child,.students-table td:nth-child(2) { grid-column:1 / -1; }.students-table td:first-child:before { display:none; }
  .students-table td:nth-child(7),.students-table td:nth-child(8) { grid-column:1 / -1; display:flex; gap:10px; align-items:center; }.student-activity { margin-top:6px; }
  .students-table tr:has(+ .student-password-row),.students-table .student-password-row { grid-column:1 / -1; }
  .students-table .student-password-row { display:block; padding:0; }
  .students-table .student-password-row td { display:block; padding:20px; }
  .students-table .student-password-row td:before { display:none; }
  .student-due { min-height:28px; }.student-detail-columns { grid-template-columns:1fr; }
}
@media(max-width:640px) {
  .teacher-identity { justify-self:end; max-width:100%; gap:6px; padding-left:0; border-left:0; }
  .teacher-identity strong { max-width:100%; font-size:10px; }.teacher-identity small { font-size:9px; }
  .teacher-logout { min-height:36px; padding:8px; font-size:10px; flex-shrink:0; }
  .students-mode .teacher-identity { grid-column:3; grid-row:1; }
  .test-mode .teacher-identity { position:absolute; top:8px; right:16px; max-width:calc(100% - 180px); }
  .test-mode .teacher-identity > span { display:none; }
  .student-create-card,.student-reset-card { padding:18px 14px; margin-bottom:16px; }
  .student-create-card .student-section-title { gap:8px; margin-bottom:16px; }
  .student-create-form,.student-password-form { grid-template-columns:1fr; gap:14px; }
  .student-create-form input,.student-password-form input { font-size:16px; }
  .student-create-form > .btn { justify-self:stretch; }.student-password-actions .btn { flex:1; }
  .students-table .student-password-row td { padding:18px; }
  .student-profile > .student-profile-actions { flex:0 0 calc(100% - 57px); margin-left:57px; justify-content:flex-start; gap:12px; }
  .students-mode .topbar { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:12px 16px; gap:8px; }.students-mode .brand { grid-column:1 / 3; grid-row:1; justify-self:start; }.students-mode .brand img { width:128px; height:39px; }.students-mode .topbar-tools { display:contents; }.students-mode .demo-account { grid-column:3; grid-row:1; justify-self:end; padding:0; min-height:30px; }.students-mode .test-entry { grid-row:2; padding:10px 5px; font-size:11px; }.students-mode [data-action="study-view"] { grid-column:1; }.students-mode [data-action="test-view"] { grid-column:2; }.students-mode [data-action="teacher-view"] { grid-column:3; }.students-mode .main { padding:20px 16px 40px; }
  .students-heading { align-items:flex-start; gap:12px; flex-wrap:wrap; margin-bottom:16px; }.students-heading h1 { font-size:27px; margin-top:8px; }.students-heading p { font-size:12px; }.students-heading-actions { width:100%; }.students-heading-actions .btn { flex:1; min-height:44px; font-size:12px; padding:10px; }
  .students-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:16px; }.student-metric { padding:12px 13px; gap:7px; }.student-metric > strong { font-size:28px; }.student-metric > span { font-size:12px; }.student-metric > small { font-size:10px; }
  .students-toolbar { padding:12px; gap:10px; }.student-filters { gap:2px; }.student-filters button { padding:7px 6px; font-size:10px; min-height:40px; }.student-filters button span { margin-left:4px; }.student-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; width:100%; gap:8px; }.student-controls input { width:100%; }.student-controls select { max-width:140px; }.student-clear-search { grid-column:1 / -1; justify-self:start; }
  .students-table tbody { grid-template-columns:1fr; }.students-table tr { padding:18px; gap:15px; }.student-name strong { font-size:16px; }.student-coverage strong { font-size:20px; }.student-track { height:7px; }
  .student-profile { gap:11px; flex-wrap:wrap; }.student-avatar.large { width:46px; height:46px; }.student-profile > div { flex:1; }.student-profile h2 { font-size:22px; }.student-profile h2 span { display:block; margin-top:4px; }.student-profile > .student-activity { margin-left:57px; margin-top:0; }
  .student-chart-card { padding:18px 14px; }.student-section-title h3 { font-size:16px; }.student-chart { gap:5px; margin-top:28px; }.student-chart-bars { gap:2px; height:90px; }.student-chart-bars b { font-size:8px; }.student-chart-day > small { font-size:8px; }.student-chart-day:nth-child(even):not(:last-child) > small { visibility:hidden; }
  .student-word-board .student-section-title { padding:18px 14px; }.student-word-board .student-section-title label { width:100%; }.student-word-board input { width:100%; }.word-filters { padding:0 8px 12px; }
  .student-detail-nav { gap:0; }.student-detail-nav button { flex:1; padding:12px 5px; font-size:12px; }.student-detail-nav button span { margin-left:5px; font-size:10px; }
  .student-words-table th:nth-child(4),.student-words-table td:nth-child(4) { display:none; }.student-words-table th { padding:12px 10px; }.student-words-table td { padding:12px 10px; font-size:11px; }.student-words-table td:first-child { width:50%; }.student-words-table td strong { font-size:13px; }.student-words-table td small { font-size:10px; }.student-words-table td:nth-child(3) small { max-width:50px; }.student-table-footer { padding:14px; }.students-footnote { font-size:10px; }.student-explainer { font-size:11px; }
}

/* Per-round test history. */
.student-tests-link { display:block; min-height:36px; margin-top:6px; padding:6px 0; border:0; background:transparent; color:var(--gold); font-size:11px; text-align:left; cursor:pointer; }
.students-table td:nth-child(5) > small { line-height:1.7; }
.test-history h2 small { margin-left:10px; color:var(--muted); font:400 12px/1.6 var(--sans); }
.test-history > .btn { margin-top:18px; }
.student-test-run summary > span:first-child { min-width:0; line-height:1.7; }
