/* Teacher area: class list, class view (code, assignments, students). */

/* ---------- Class list ---------- */

.teach__classes { list-style: none; margin: 0; padding: 0; }
.teach__class-card { height: 100%; gap: 10px; padding: 26px 28px; }
.teach__class-name { font-size: 28px; line-height: 1.1; }
.teach__class-meta { font-size: 14px; color: var(--text-on-dark-muted); }

.teach__new { display: flex; flex-direction: column; gap: 14px; padding: 22px; max-width: 720px; }
.teach__new-form { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Class header ---------- */

.teach__hero {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.teach__hero-name { font-size: 32px; line-height: 1.1; }
.teach__hero-sub { font-size: 14px; color: var(--text-on-dark-muted); }

.teach__code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.teach__code-label { font-size: 13px; color: var(--text-on-dark-muted); }
.teach__code-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  background: var(--ink-raised);
  color: var(--paper);
  border-radius: var(--radius-input);
  padding: 8px 14px;
  font-variant-numeric: tabular-nums;
}
.teach__code-value--sm { align-self: flex-start; font-size: 15px; padding: 6px 12px; margin-top: auto; }
.teach__copy { padding: 9px 16px; min-width: 76px; }

/* ---------- Panels ---------- */

.teach__grid { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.teach__panel { flex: 1 1 440px; display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.teach__panel--students { gap: 4px; }
.teach__panel-title { font-size: 15px; font-weight: 600; }
.teach__panel--students .teach__panel-title { margin-bottom: 8px; }
.teach__empty { font-size: 14px; line-height: 1.5; }

/* "Assign reading" picker */
.teach__picker {
  border: 1.5px dashed var(--line-dashed);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 260px;
  overflow: auto;
}
.teach__pick {
  width: 100%;
  background: none;
  border: none;
  border-radius: var(--radius-input);
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--ink);
}
.teach__pick:hover { background: var(--sand-hover); }
.teach__pick .stack { --stack-gap: 0; }
.teach__pick-title { font-size: 14px; font-weight: 600; }
.teach__pick-meta { font-size: 12px; color: var(--text-muted); }
.teach__pick-action { font-size: 13px; font-weight: 600; color: var(--clay); }

/* Assignment rows */
.teach__assignment {
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.teach__assignment-title { font-size: 15px; font-weight: 600; }
.teach__meta { font-size: 13px; color: var(--text-muted); }
.teach__assignment-ar { font-size: 22px; flex-shrink: 0; }
.teach__assignment-progress { --row-gap: 10px; font-size: 13px; color: var(--text-muted); flex-wrap: nowrap; }
.teach__remove {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.teach__remove:hover { color: var(--clay); }

/* Students table */
.teach__table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.teach__table th, .teach__table td { padding: 10px 5px; text-align: left; vertical-align: middle; }
.teach__table thead th { font-size: 12px; font-weight: 700; color: var(--text-muted); padding-top: 0; padding-bottom: 6px; }
.teach__table tbody tr { border-top: 1px solid var(--line-soft); }
.teach__table th:nth-child(1) { width: 28%; }
.teach__table th:nth-child(2) { width: 60px; }
.teach__table th:nth-child(3) { width: 80px; }
.teach__table th:nth-child(5) { width: 110px; }
.teach__student { font-weight: 600; overflow-wrap: anywhere; }
.teach__reading .progress { display: block; }

.teach__status {
  display: block;
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  background: var(--green-soft);
  color: var(--green);
}
.teach__status--done { background: var(--green); color: var(--paper); }
.teach__status--behind { background: var(--clay-soft); color: var(--clay); }

/* Phones: each student becomes a two-line card row. */
@media (max-width: 560px) {
  .teach__hero { padding: 22px; }
  .teach__hero-name { font-size: 28px; }
  .teach__panel { flex-basis: 100%; padding: 18px; }

  .teach__table, .teach__table tbody { display: block; }
  .teach__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .teach__table tbody tr {
    display: grid;
    grid-template-columns: 28px 64px minmax(0, 1fr) 96px;
    grid-template-areas: "name name name state" "level streak reading reading" "practice practice practice practice";
    align-items: center;
    gap: 6px 12px;
    padding: 10px 2px;
  }
  .teach__table th, .teach__table td { padding: 0; }
  .teach__student { grid-area: name; }
  .teach__level { grid-area: level; color: var(--text-muted); }
  .teach__streak { grid-area: streak; color: var(--text-muted); }
  .teach__reading { grid-area: reading; }
  .teach__practice { grid-area: practice; color: var(--text-muted); font-size: 13px; }
  .teach__state { grid-area: state; }
}

/* Settings */
.teach-settings .card { max-width: 640px; }
.teach-settings__time-zone { max-width: 420px; }
