.teacher-approval-card .teacher-ai-access {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid #dce4ed;
  border-radius: 12px;
  background: #f7f9fc;
}
.teacher-ai-copy { display: grid; gap: 4px; }
.teacher-ai-copy strong { color: #193657; font-size: 14px; }
.teacher-ai-state { color: #6b7788; font-size: 12px; }
.teacher-ai-state.is-enabled { color: #16634c; font-weight: 600; }
.teacher-ai-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #294461;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.teacher-ai-switch:focus-visible { outline: 3px solid #b89b49; outline-offset: 3px; }
.teacher-ai-switch:disabled { opacity: .55; cursor: not-allowed; }
.teacher-ai-track { position: relative; width: 36px; height: 22px; border-radius: 99px; background: #a2adba; flex: 0 0 auto; }
.teacher-ai-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.teacher-ai-switch[aria-checked="true"] .teacher-ai-track { background: #24785d; }
.teacher-ai-switch[aria-checked="true"] .teacher-ai-track::after { left: 17px; }
.teacher-ai-hint { grid-column: 1 / -1; margin: 0; color: #65758a; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .teacher-approval-card .teacher-ai-access { width: 100%; min-width: 0; box-sizing: border-box; }
}
