.student-follow-notice {
  margin: 8px 0 14px;
  padding: 10px 12px;
  border-left: 3px solid #2563eb;
  background: #eff6ff;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.45;
}

.teacher-team-panel,
.teacher-attention-panel,
.teacher-account-panel {
  margin-top: 18px;
}

.teacher-create-drawer,
.teacher-team-card {
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  background: #fff;
}

.teacher-create-drawer {
  margin-bottom: 16px;
  padding: 14px;
}

.teacher-create-drawer > summary,
.teacher-team-card > details > summary {
  cursor: pointer;
  font-weight: 800;
}

.teacher-create-drawer form,
.teacher-team-card form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.team-profile-fields,
.teacher-password-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.teacher-password-form button,
.teacher-password-form [role="status"] {
  align-self: end;
}

.teacher-team-help,
.attention-explainer {
  margin: 0;
  color: #526173;
  font-size: 0.9rem;
}

.team-assignment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.team-assignment-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid #dbe4ef;
  border-radius: 5px;
  background: #f8fafc;
}

.team-assignment-row.is-selected {
  border-color: #99c9c2;
  background: #f0fdfa;
}

.team-assignment-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.82rem;
}

.team-assignment-row input {
  width: 16px;
  height: 16px;
}

.team-assignment-row input:disabled + strong,
.team-assignment-row label:has(input:disabled) {
  color: #94a3b8;
}

.team-other-classes {
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
}

.team-other-classes > summary {
  cursor: pointer;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 800;
}

.team-other-classes[open] > summary {
  margin-bottom: 10px;
}

.teacher-team-list {
  display: grid;
  gap: 10px;
}

.teacher-team-card {
  padding: 14px;
}

.teacher-team-card.is-admin {
  border-left: 4px solid #0f766e;
  background: #f0fdfa;
}

.teacher-team-card.is-disabled {
  opacity: 0.7;
  background: #f8fafc;
}

.teacher-team-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.teacher-team-card h3,
.teacher-team-card p {
  margin: 2px 0;
}

.teacher-role,
.teacher-status {
  color: #526173;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.teacher-assignment-tags,
.attention-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.teacher-assignment-tags span,
.attention-tags span {
  padding: 4px 7px;
  border-radius: 4px;
  background: #edf2f7;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 750;
}

.teacher-assignment-tags .is-warning,
.attention-tags .is-help,
.attention-tags .is-stuck {
  background: #fff7ed;
  color: #9a3412;
}

.attention-tags .is-away {
  background: #fef2f2;
  color: #b91c1c;
}

.attention-tags .is-rapid {
  background: #fffbeb;
  color: #92400e;
}

.teacher-team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-credential-box {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 14px;
  border: 2px solid #0f766e;
  border-radius: 6px;
  background: #f0fdfa;
}

.teacher-credential-box code {
  width: fit-content;
  padding: 7px 9px;
  background: #0f172a;
  color: #fff;
  font-size: 1rem;
}

.attention-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.attention-metrics div {
  min-height: 74px;
  padding: 10px;
  border: 1px solid #dbe4ef;
  border-radius: 5px;
  background: #f8fafc;
}

.attention-metrics strong,
.attention-metrics span {
  display: block;
}

.attention-metrics strong {
  font-size: 1.45rem;
}

.attention-metrics span {
  color: #526173;
  font-size: 0.78rem;
}

.attention-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.attention-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-left: 3px solid #f59e0b;
  background: #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
}

.attention-list article span {
  display: block;
  color: #526173;
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .team-profile-fields,
  .teacher-password-form,
  .team-assignment-grid,
  .attention-metrics {
    grid-template-columns: 1fr;
  }

  .team-assignment-row {
    grid-template-columns: 1fr auto auto;
  }

  .attention-list article {
    align-items: flex-start;
    flex-direction: column;
  }
}
