body.teacher-page [hidden] { display: none !important; }

body.teacher-page {
  overflow: auto;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 90% 0%, rgba(233, 180, 76, 0.16), transparent 30%),
    #f1ebdf;
  color: var(--ink);
}
.teacher-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 64px) 18px;
  border-bottom: 1px solid #ded4c3;
  background: rgba(247, 243, 233, 0.75);
  backdrop-filter: blur(12px);
}
.teacher-back {
  display: inline-block;
  color: #6b837b;
  text-decoration: none;
  font-size: 11px;
  margin-bottom: 18px;
}
.teacher-back:hover { color: var(--teal); }
.teacher-top h1 {
  margin: 7px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -.03em;
}
.teacher-top p { margin: 8px 0 0; color: #71847e; font-size: 12px; line-height: 1.6; }
.teacher-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.teacher-live {
  display: inline-flex; align-items: center; gap: 6px;
  color: #44705f; font-size: 10.5px;
  padding: 7px 10px; border-radius: 999px;
  background: #e6f6ec; border: 1px solid #cbe7d5;
}
.teacher-live i { width: 6px; height: 6px; border-radius: 50%; background: #45b98a; }
.teacher-actions .teacher-link {
  color: #fffdf8; background: #0f766e;
  border: 0; border-radius: 10px;
  padding: 9px 12px; font-size: 11px; text-decoration: none;
}
.teacher-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 60px;
}
.teacher-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.summary-card {
  background: #fffdf8;
  border: 1px solid #ded4c3;
  border-radius: 14px;
  padding: 13px 14px;
}
.summary-card span { display: block; color: #8b9b95; font-size: 9.5px; letter-spacing: .05em; }
.summary-card strong { display: block; margin-top: 6px; font-size: 22px; letter-spacing: -.03em; }
.summary-card small { display: block; color: #7c8e87; font-size: 9.5px; margin-top: 3px; }
.teacher-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.teacher-card {
  background: #fffdf8;
  border: 1px solid #ded4c3;
  border-radius: 16px;
  padding: 17px;
  box-shadow: 0 12px 30px rgba(35, 53, 50, .06);
  margin-bottom: 14px;
}
.teacher-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.teacher-card h2 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
.teacher-card > header span { font-size: 9.5px; color: #98a69f; }
.skill-row { margin-bottom: 13px; }
.skill-row-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; margin-bottom: 5px; }
.skill-row-top span { color: #7c8f88; font-size: 10px; }
.meter { height: 7px; border-radius: 99px; background: #e8e2d6; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e5b34d, #5bb99d); }
.teacher-item {
  padding: 10px 11px; margin-bottom: 7px;
  border: 1px solid #e4dbcb; border-radius: 11px;
  background: #fdfbf6;
}
.teacher-item strong { display: block; font-size: 11.5px; }
.teacher-item span { display: block; color: #7e9089; font-size: 10px; line-height: 1.5; margin-top: 3px; }
.interest-row { display: flex; flex-wrap: wrap; gap: 6px; }
.interest-chip { border: 1px solid #d6e7df; background: #eff8f3; color: #35645a; border-radius: 999px; padding: 5px 9px; font-size: 10px; }
.teacher-note { padding: 10px 11px; border-left: 3px solid #e5b34d; background: #fff8e9; border-radius: 2px 10px 10px 2px; margin-bottom: 8px; font-size: 11px; line-height: 1.55; color: #5c5441; }
.teacher-note small { display: block; margin-top: 4px; color: #9a8c6f; font-size: 9px; }
.note-form-footer { display: flex; gap: 7px; margin-top: 7px; }
.note-form-footer input { width: 92px; border: 1px solid #d8cfbf; border-radius: 9px; padding: 8px; background: #fffdf8; font-size: 11px; }
.note-form-footer button { border: 0; border-radius: 9px; padding: 8px 13px; background: #0f766e; color: #fffdf8; font-size: 11px; }
#noteText { width: 100%; resize: vertical; border: 1px solid #d8cfbf; border-radius: 10px; padding: 9px; background: #fffdf8; font-size: 11px; line-height: 1.5; }
label[for="noteText"] { display: block; font-size: 10px; color: #7e9088; margin-bottom: 5px; }
.audit-list { display: grid; gap: 5px; }
.audit-item { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: #73877f; padding: 6px 0; border-bottom: 1px dashed #e7dfd0; }
.audit-item span:last-child { color: #a1aca6; white-space: nowrap; }

.teacher-assign-card { margin-bottom: 14px; }
.assign-form {
  display: grid;
  grid-template-columns: minmax(170px, 1.4fr) 130px 96px minmax(160px, 1.6fr) auto;
  gap: 8px;
  align-items: end;
  padding: 11px;
  border: 1px solid #e4dbcb;
  border-radius: 12px;
  background: #fdfbf6;
  margin-bottom: 12px;
}
.assign-form label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.assign-form label > span { font-size: 9.5px; color: #8b9b95; }
.assign-form select,
.assign-form input {
  width: 100%;
  height: 33px;
  border: 1px solid #d8cfbf;
  border-radius: 8px;
  background: #fffdf8;
  color: #17343a;
  padding: 0 8px;
  font: inherit;
  font-size: 11px;
}
.assign-submit-group { display: flex; align-items: center; gap: 6px; }
.assign-cancel {
  height: 33px;
  border: 1px solid #d8cfbf;
  border-radius: 8px;
  padding: 0 10px;
  background: #fffdf8;
  color: #6c7e77;
  font: inherit;
  font-size: 10.5px;
  cursor: pointer;
  white-space: nowrap;
}
.assign-cancel:hover { border-color: #b9c9c0; color: #0f766e; }
.assign-submit {
  height: 33px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #0f766e;
  color: #fffdf8;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}
.assign-submit:disabled { opacity: .55; cursor: wait; }
.assignment-list { display: grid; gap: 7px; }
.assignment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid #e4dbcb;
  border-radius: 11px;
  background: #fdfbf6;
}
.assignment-row strong { display: block; font-size: 11.5px; }
.assignment-row small { display: block; color: #7e9089; font-size: 9.5px; line-height: 1.5; margin-top: 3px; }
.assignment-progress { min-width: 92px; text-align: right; }
.assignment-progress b { display: block; font-size: 15px; color: #0f766e; }
.assignment-progress span { display: block; font-size: 9px; color: #8b9b95; }
.assignment-progress.is-done b { color: #b27a1d; }
.assignment-progress.is-overdue b { color: #b45309; }
.assignment-progress.is-overdue span { color: #b45309; }
.assignment-overdue {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #fff0df;
  color: #b45309;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 500;
  vertical-align: 1px;
}
.assignment-row.is-overdue { border-color: #ecd7bd; background: #fffaf2; }
.assignment-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.assignment-action {
  border: 1px solid #d8cfbf;
  border-radius: 7px;
  padding: 5px 7px;
  background: #fffdf8;
  color: #6c7e77;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
  white-space: nowrap;
}
.assignment-action:hover { border-color: #bfd8cc; color: #0f766e; }
.assignment-action.is-danger { color: #a75d4a; border-color: #ead3c9; }
.assignment-action.is-danger:hover { border-color: #d9a797; background: #fff7f3; }
@media (max-width: 760px) {
  .assign-form { grid-template-columns: 1fr 1fr; }
  .assign-note-field { grid-column: 1 / -1; }
  .assign-submit-group { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .teacher-summary { grid-template-columns: 1fr 1fr; }
  .teacher-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .teacher-top { flex-direction: column; padding: 20px; }
  .teacher-main { width: calc(100% - 24px); }
  .teacher-summary { grid-template-columns: 1fr 1fr; }
}

.teacher-roster-card { margin-bottom: 14px; }
.student-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.student-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}
.student-select {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #e4dbcb;
  border-radius: 11px;
  background: #fdfbf6;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.student-select:hover { border-color: #bfd8cc; background: #f7fcf9; }
.student-row.is-selected .student-select {
  border-color: #0f766e;
  background: #eef8f3;
  box-shadow: inset 0 0 0 1px #0f766e;
}
.student-avatar {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f1e7d4;
  font-size: 17px;
}
.student-main { flex: 1; min-width: 0; }
.student-main strong {
  display: block;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.student-main small {
  display: block;
  margin-top: 3px;
  color: #7e9089;
  font-size: 9px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.student-mastery { flex: none; font-size: 13px; font-weight: 700; color: #0f766e; }
.student-open {
  flex: none;
  align-self: center;
  color: #6b837b;
  font-size: 9px;
  text-decoration: none;
  padding: 6px 2px;
  white-space: nowrap;
}
.student-open:hover { color: #0f766e; }
@media (max-width: 900px) {
  .student-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .student-list { grid-template-columns: 1fr; }
}

.assignment-students {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed #ebe2d2;
}
.assignment-student {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid #e4dbcb;
  border-radius: 999px;
  background: #fffdf8;
  color: #6c7e77;
  font: inherit;
  font-size: 9.5px;
  cursor: pointer;
}
.assignment-student:hover { border-color: #bfd8cc; background: #f7fcf9; }
.assignment-student.is-selected { border-color: #0f766e; box-shadow: inset 0 0 0 1px #0f766e; }
.assignment-student.is-done { background: #eef8f3; border-color: #cbe7d5; color: #35645a; }
.assignment-student-avatar { font-size: 12px; line-height: 1; }
.assignment-student-name { font-weight: 600; }
.assignment-student-state { color: #8b9b95; white-space: nowrap; }
.assignment-student.is-done .assignment-student-state { color: #2f7d64; }
.episode-list { display: grid; gap: 7px; }
.episode-item {
  padding: 10px 11px;
  border: 1px solid #e4dbcb;
  border-radius: 11px;
  background: #fdfbf6;
}
.episode-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.episode-top strong { font-size: 11px; line-height: 1.5; font-weight: 600; }
.episode-top span { flex: none; color: #98a69f; font-size: 9px; }
.episode-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.episode-tags span { padding: 3px 6px; border-radius: 999px; background: #f1e7d4; color: #8a7348; font-size: 8.5px; }

/* Classroom efficacy + teacher correction */
.teacher-efficacy-card { padding-bottom: 12px; }
.efficacy-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.efficacy-toolbar label { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #71847e; }
.efficacy-toolbar select { border: 1px solid #d8cfbf; border-radius: 8px; background: #fffdf8; padding: 7px 8px; font: inherit; color: var(--ink); }
.efficacy-toolbar button, .assessment-form button, .correction-button {
  border: 1px solid #cfc5b3; border-radius: 8px; background: #fffaf0;
  color: #31544d; padding: 6px 9px; font: inherit; font-size: 10px; cursor: pointer;
}
.efficacy-toolbar button:hover, .assessment-form button:hover, .correction-button:hover { background: #f4e7c8; }
.efficacy-note { margin-left: auto; color: #8b9b95; font-size: 9px; }
.efficacy-summary { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin-bottom: 10px; }
.efficacy-metric { padding: 9px 10px; border-radius: 10px; background: #f7f1e4; border: 1px solid #e4dbcb; }
.efficacy-metric span { display: block; color: #86968f; font-size: 9px; }
.efficacy-metric strong { display: block; margin-top: 3px; font-size: 18px; letter-spacing: -.03em; }
.efficacy-table { border: 1px solid #e4dbcb; border-radius: 11px; overflow: hidden; }
.efficacy-head, .efficacy-row { display: grid; grid-template-columns: 1.7fr repeat(6, .7fr); align-items: center; gap: 6px; padding: 8px 10px; }
.efficacy-head { background: #f7f1e4; color: #86968f; font-size: 9px; }
.efficacy-row { width: 100%; border: 0; border-top: 1px solid #eee4d4; background: #fffdf8; text-align: left; font: inherit; color: var(--ink); cursor: pointer; font-size: 11px; }
.efficacy-row:hover { background: #fbf4e5; }
.efficacy-row.is-selected { background: #f4e7c8; }
.efficacy-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.efficacy-name b { font-size: 15px; }
.efficacy-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.efficacy-row .is-positive { color: #18735f; font-weight: 700; }
.skill-edit { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.skill-edit input[type="range"] { flex: 1; accent-color: #0f766e; }
.skill-edit output { min-width: 34px; text-align: right; font-size: 10px; color: #44615f; }
.skill-override { display: block; margin-top: 4px; color: #9a6b19; font-size: 9px; }
.misconception-row { padding: 9px 10px; margin-bottom: 7px; border: 1px solid #e4dbcb; border-radius: 10px; }
.misconception-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; }
.misconception-top span { font-size: 9px; padding: 2px 6px; border-radius: 99px; background: #f3e5c5; color: #7d5a16; }
.misconception-top span.is-resolved { background: #dcf3e5; color: #1c6b4f; }
.misconception-top span.is-dismissed { background: #e9e5dc; color: #777; }
.misconception-row small { display: block; margin-top: 4px; color: #82928b; font-size: 9px; }
.correction-actions { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.correction-button { padding: 4px 7px; font-size: 9px; }
.assessment-form { display: flex; flex-direction: column; gap: 8px; }
.assessment-form label { display: flex; flex-direction: column; gap: 3px; color: #71847e; font-size: 9px; }
.assessment-form select, .assessment-form input { border: 1px solid #d8cfbf; border-radius: 8px; background: #fffdf8; padding: 7px 8px; font: inherit; font-size: 11px; color: var(--ink); }
.assessment-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.assessment-form button { align-self: flex-start; background: #0f766e; color: #fffdf8; border-color: #0f766e; }
.assessment-history { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.assessment-history-row { display: grid; grid-template-columns: 42px 1fr; gap: 4px 8px; padding: 6px 8px; background: #f7f1e4; border-radius: 8px; font-size: 10px; }
.assessment-history-row small { grid-column: 1 / -1; color: #87968f; }
@media (max-width: 760px) {
  .efficacy-summary { grid-template-columns: repeat(3, 1fr); }
  .efficacy-head, .efficacy-row { grid-template-columns: 1.5fr repeat(3, .8fr); }
  .efficacy-head span:nth-child(n+5), .efficacy-row > *:nth-child(n+5) { display: none; }
  .efficacy-note { flex-basis: 100%; margin-left: 0; }
}
.assessment-history-row.is-historical { opacity: .72; background: #f2ece0; }

/* ---------- recent transcripts ---------- */
.transcript-note { margin: 0 0 10px; color: #8d9c94; font-size: 9.5px; line-height: 1.6; }
.transcript-list { display: grid; gap: 8px; }
.transcript-session {
  border: 1px solid #eee4d4;
  border-radius: 10px;
  background: #fffdf8;
  overflow: hidden;
}
.transcript-session summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  cursor: pointer;
  list-style: none;
}
.transcript-session summary::-webkit-details-marker { display: none; }
.transcript-session summary strong { font-size: 10.5px; font-weight: 600; color: #344f48; }
.transcript-session summary span { flex: none; color: #98a69f; font-size: 8.5px; }
.transcript-messages { display: grid; gap: 6px; padding: 0 11px 10px; }
.transcript-message { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 6px; align-items: start; }
.transcript-role { padding-top: 2px; color: #9aa8a0; font-size: 8.5px; }
.transcript-text {
  padding: 6px 8px;
  border-radius: 8px;
  background: #f6f1e7;
  color: #4c5d56;
  font-size: 10px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.transcript-message.is-tutor .transcript-text { background: #eef6f0; color: #315f51; }
.transcript-actions { display: flex; align-items: center; gap: 8px; }
.transcript-actions span { color: #98a69f; font-size: 9.5px; }
.transcript-actions button {
  border: 1px solid #e2d6c4;
  border-radius: 7px;
  padding: 4px 8px;
  background: #fffdf8;
  color: #8a6b54;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}
.transcript-actions button:hover { border-color: #d5b6a4; color: #a75d4a; }

/* memory review queue ------------------------------------------------- */
.review-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.review-toolbar button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #cfe0d8;
  background: #f3faf6;
  color: #205243;
  font-size: 13px;
  font-weight: 600;
}

.review-toolbar button:disabled { opacity: 0.6; }
.review-note { font-size: 12px; color: #6b7c78; }

.review-list { display: grid; gap: 8px; }

.review-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ece4d2;
  background: #fffdf6;
  font-size: 13px;
}

.review-item strong { display: block; font-size: 13.5px; }
.review-item span { color: #7a6a4d; }
.review-empty { font-size: 13px; color: #6b7c78; }

/* courseware studio --------------------------------------------------- */
.studio-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.studio-toolbar button,
.studio-actions button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #cfe0d8;
  background: #f3faf6;
  color: #205243;
  font-size: 13px;
  font-weight: 600;
}

.studio-toolbar button:disabled,
.studio-actions button:disabled { opacity: 0.55; }
.studio-hint { font-size: 12px; color: #6b7c78; }

.studio-list { display: grid; gap: 8px; }

.studio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ece4d2;
  background: #fffdf6;
}

.studio-row strong { display: block; font-size: 13.5px; }
.studio-row small { color: #7a6a4d; }
.studio-row .studio-row-actions { display: flex; gap: 8px; }
.studio-row button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #d8cbb0;
  background: #fff;
  font-size: 12px;
  color: #6a5525;
}

.studio-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #eef4ec;
  color: #3d6b4f;
}

.studio-badge.is-draft { background: #fdf3d8; color: #8a6a12; }
.studio-badge.is-bad { background: #fbe6e2; color: #a13b25; }

.studio-editor {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e6ddc8;
  background: #fffef9;
}

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

.studio-grid label,
.studio-field { display: grid; gap: 4px; font-size: 12px; color: #6b7c78; }

.studio-grid input,
.studio-field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ddd2ba;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
}

.studio-field { margin-bottom: 10px; }
.studio-field textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.studio-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#studioStatus { font-size: 12px; color: #3d6b4f; }
.studio-issues { margin-top: 8px; display: grid; gap: 4px; font-size: 12px; }
.studio-issues .issue-error { color: #a13b25; }
.studio-issues .issue-warning { color: #8a6a12; }
.studio-issues .issue-ok { color: #3d6b4f; }

@media (max-width: 900px) {
  .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* class switcher ------------------------------------------------------ */
.teacher-class-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #cfdcd6;
}

.teacher-class-picker select {
  min-height: 30px;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7f5;
  font-size: 12px;
}

.teacher-class-picker option { color: #10272a; }

/* read-only observer -------------------------------------------------- */
.teacher-readonly {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e7d8a8;
  background: #fdf7e3;
  color: #7a6116;
  font-size: 13px;
}

/* privacy card -------------------------------------------------------- */
.privacy-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.privacy-actions button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #cfe0d8;
  background: #f3faf6;
  color: #205243;
  font-size: 13px;
  font-weight: 600;
}

.privacy-actions .privacy-danger {
  border-color: #e8c2b8;
  background: #fdf1ee;
  color: #a13b25;
}

.privacy-hint { font-size: 12px; color: #6b7c78; }
.audit-list { display: grid; gap: 4px; font-size: 12px; color: #6b7c78; }
.audit-list .audit-row { display: flex; justify-content: space-between; gap: 10px; }
.audit-list .audit-row strong { color: #3d4b47; font-weight: 600; }

/* student account card ------------------------------------------------ */
.student-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.student-actions button,
.student-actions select {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #cfe0d8;
  background: #f3faf6;
  color: #205243;
  font-size: 13px;
  font-weight: 600;
}
.student-actions .privacy-danger {
  border-color: #e8c2b8;
  background: #fdf1ee;
  color: #a13b25;
}
.guardian-access {
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid #d8e4dc;
  border-radius: 12px;
  background: #fbfdf9;
}
.guardian-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
  color: #24463c;
}
.guardian-head span { color: #6b7c78; font-size: 12px; font-weight: 400; }
.guardian-hint { margin: 4px 0 10px; color: #6b7c78; font-size: 12px; line-height: 1.6; }
.guardian-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.guardian-actions button,
.guardian-url button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #cfe0d8;
  background: #f3faf6;
  color: #205243;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.guardian-actions .privacy-danger { border-color: #e8c2b8; background: #fdf1ee; color: #a13b25; }
.guardian-url { display: flex; gap: 8px; margin-top: 8px; }
.guardian-url input {
  flex: 1;
  min-width: 0;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #cfe0d8;
  border-radius: 8px;
  background: #fff;
  color: #33544a;
  font-size: 12px;
}
.login-code {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f8f2;
  border: 1px dashed #b9d3c3;
  font-size: 13px;
  color: #33544a;
  line-height: 1.9;
}
.login-code code {
  font-size: 20px;
  letter-spacing: .12em;
  font-weight: 700;
  color: #17553f;
}
.device-list { display: grid; gap: 6px; font-size: 12px; color: #6b7c78; }
.device-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.device-row button {
  border: 0;
  background: none;
  color: #a13b25;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

/* cross-semester trend ------------------------------------------------- */
.trend-block {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e3ece6;
  border-radius: 12px;
  background: #fbfdf9;
}
.trend-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 9px;
}
.trend-head strong { font-size: 13px; color: #24463c; }
.trend-head span { display: block; margin-top: 2px; color: #6b7c78; font-size: 11px; }
.trend-head small { color: #87948c; font-size: 10px; text-align: right; }
.trend-chart { display: grid; gap: 7px; }
.trend-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 1.1fr) minmax(0, 2.5fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.trend-term { color: #33544a; }
.trend-bars { position: relative; height: 10px; border-radius: 999px; background: #edf3ee; overflow: hidden; }
.trend-bars i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #b8d8c5, #4e9b72);
}
.trend-bars b {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 999px;
  background: #d79a6d;
  opacity: .65;
}
.trend-numbers { color: #6b7c78; font-size: 11px; white-space: nowrap; }
.trend-numbers strong { color: #1f5b4b; }
.trend-empty { color: #6b7c78; font-size: 12px; padding: 4px 0; }
.trend-delta { margin-left: 5px; font-weight: 700; }
.trend-delta.is-up { color: #2b7a55; }
.trend-delta.is-down { color: #a13b25; }

/* Operational alerts -------------------------------------------------- */
.ops-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ops-actions button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid #cfe0d8;
  background: #f3faf6;
  color: #205243;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ops-list { display: grid; gap: 6px; font-size: 12px; color: #526a61; }
.ops-event {
  padding: 8px 10px;
  border: 1px solid #dbe8e0;
  border-radius: 9px;
  background: #fbfdfb;
}
.ops-event.is-failed { border-color: #e7c9c1; background: #fff8f5; }
.ops-event strong { color: #205243; }
.ops-event small { display: block; margin-top: 3px; color: #7b8c84; }

/* OneRoster ----------------------------------------------------------- */
.oneroster-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.oneroster-row input[type="file"] {
  flex: 1 1 260px;
  min-height: 34px;
  font-size: 12px;
  color: #24463c;
}
.oneroster-row button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid #cfe0d8;
  background: #f3faf6;
  color: #205243;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
#onerosterClass {
  width: 100%;
  min-height: 34px;
  margin: 4px 0 8px;
  padding: 0 10px;
  border: 1px solid #cfe0d8;
  border-radius: 9px;
  background: #fff;
  color: #24463c;
  font-size: 12px;
}
.oneroster-result { display: grid; gap: 6px; font-size: 12px; color: #526a61; }
.oneroster-result strong { color: #205243; }
.oneroster-result .is-error { color: #9b3d2f; }
.oneroster-result ul { margin: 4px 0 0; padding-left: 18px; }

/* LTI services -------------------------------------------------------- */
.lti-context-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lti-context-row select {
  flex: 1 1 220px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #cfe0d8;
  border-radius: 9px;
  background: #fff;
  color: #24463c;
  font-size: 12px;
}
.lti-preflight { display: grid; gap: 4px; margin-top: 8px; font-size: 12px; color: #526a61; }
.lti-preflight .is-error { color: #9b3d2f; }
.lti-context-row button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid #cfe0d8;
  background: #f3faf6;
  color: #205243;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* co-teachers --------------------------------------------------------- */
.teacher-people { display: grid; gap: 7px; margin-bottom: 10px; }
.teacher-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #e3ece6;
  border-radius: 10px;
  background: #fbfdf9;
  font-size: 13px;
}
.teacher-person-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.teacher-person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teacher-person small { color: #6b7c78; font-size: 11px; }
.teacher-role {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e6f1ea;
  color: #27634e;
  font-size: 10px;
  font-weight: 700;
}
.teacher-role.is-owner { background: #f5eadc; color: #86552f; }
.teacher-person button {
  border: 0;
  background: none;
  color: #a13b25;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.teacher-invite { display: flex; gap: 8px; flex-wrap: wrap; }
.teacher-invite input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #cfe0d8;
  border-radius: 9px;
  background: #fff;
  color: #24463c;
  font-size: 12px;
}
.teacher-invite button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid #cfe0d8;
  background: #f3faf6;
  color: #205243;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.teacher-collab-hint { margin: 8px 0 0; color: #6b7c78; font-size: 11px; line-height: 1.6; }

/* notifications + search ---------------------------------------------- */
.roster-search {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #e2dbcc;
  background: #fffdf8;
  font-size: 13px;
  color: #3d4b47;
}
.teacher-bell {
  position: relative;
  border: 1px solid #e2dbcc;
  background: #fffdf8;
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 15px;
  cursor: pointer;
}
.notice-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #c8553d;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  padding: 0 4px;
}
.notice-panel {
  position: fixed;
  top: 66px;
  right: 20px;
  width: min(340px, 88vw);
  max-height: 60vh;
  overflow: auto;
  background: #fffdf8;
  border: 1px solid #e8e0d0;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(60, 50, 30, .14);
  padding: 12px 14px;
  z-index: 40;
  font-size: 13px;
}
.notice-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #3d4b47;
}
.notice-panel header button {
  border: 0;
  background: none;
  color: #2f7d5b;
  font-size: 12px;
  cursor: pointer;
}
.notice-item { padding: 8px 0; border-top: 1px solid #f0ece2; }
.notice-item strong { display: block; font-size: 13px; color: #2f3a35; }
.notice-item span { font-size: 12px; color: #78837c; }
.notice-item.is-unread strong::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c8553d;
  margin-right: 6px;
  vertical-align: middle;
}
.feedback-box { margin-top: 10px; }
.feedback-box textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 56px;
  border-radius: 10px;
  border: 1px solid #e2dbcc;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
}
.feedback-box button {
  margin-top: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #cfe0d8;
  background: #f3faf6;
  color: #205243;
  font-size: 12px;
  font-weight: 600;
}

.assign-target-field select { min-height: 70px; }
.feedback-item { padding: 8px 0; border-top: 1px solid #f0ece2; }
.feedback-item strong { font-size: 13px; color: #2f3a35; }
.feedback-item small { display: block; color: #8a938c; margin: 2px 0 6px; }
.feedback-item .existing { color: #33544a; background: #f4f8f2; border-radius: 8px; padding: 6px 8px; font-size: 12px; }

.studio-danger { color: #a13b25 !important; }
.studio-versions {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7f4ec;
  font-size: 12px;
  color: #5c6459;
}
.studio-version-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
}
.studio-version-row button {
  border: 1px solid #d7cdb9;
  background: #fffdf7;
  border-radius: 8px;
  font-size: 11px;
  padding: 2px 8px;
  cursor: pointer;
  color: #4c5a4e;
}

.review-summary { margin-top: 10px; font-size: 12px; color: #6b7c78; display: grid; gap: 4px; }
.review-summary .review-line { display: flex; justify-content: space-between; gap: 10px; }
.review-summary .review-line strong { color: #a8623c; font-weight: 600; }

.flag-list { display: grid; gap: 6px; margin-bottom: 10px; }
.flag-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fdf1ee;
  border: 1px solid #f0d4cb;
  font-size: 12px;
  color: #7c3a26;
}
.flag-row.is-reviewed { background: #f4f8f2; border-color: #d9e6dc; color: #42604f; }
.flag-row button {
  border: 1px solid #d9b6a8;
  background: #fff8f4;
  color: #8a4028;
  border-radius: 8px;
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  white-space: nowrap;
}

/* units ---------------------------------------------------------------- */
.teacher-units-card .unit-list { display: grid; gap: 12px; }
.unit-card {
  border: 1px solid #e0e9e2;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 8px;
}
.unit-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.unit-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.unit-title strong { font-size: 13px; color: #1d3a33; }
.unit-title small { font-size: 10px; color: #8a9a91; }
.unit-card-actions { display: flex; gap: 6px; flex: none; }
.unit-card-actions button {
  border: 1px solid #d8e5dd;
  background: #f6faf7;
  color: #2f5b4b;
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 10.5px;
  cursor: pointer;
}
.unit-card-actions button.studio-danger { color: #a13b25; border-color: #ecd3ca; background: #fff7f4; }
.unit-lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.unit-lessons li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: #f6f9f7; }
.unit-order {
  width: 20px; height: 20px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #dcefe5; color: #2f6b4f;
  font-size: 10px; font-weight: 700;
}
.unit-lesson-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.unit-lesson-main strong { font-size: 11.5px; color: #213a33; font-weight: 600; }
.unit-lesson-main small { font-size: 9.5px; color: #8a9a91; }
.unit-remove { border: 0; background: transparent; color: #b26b5b; cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 5px; }
.unit-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.unit-add select, .unit-add input {
  flex: 1 1 170px; min-width: 0;
  padding: 7px 9px;
  border: 1px solid #dbe4dd; border-radius: 9px;
  background: #fff; font: inherit; font-size: 11px; color: #213a33;
}
.unit-add button {
  border: 1px solid #cfe0d8; border-radius: 9px;
  background: #f3faf6; color: #205243;
  padding: 7px 12px; font-size: 11px; font-weight: 600; cursor: pointer;
}
.unit-empty { color: #8a9a91; font-size: 11px; margin: 4px 0; }

/* visual block editor -------------------------------------------------- */
.studio-mode-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.studio-tabs { display: inline-flex; padding: 3px; border: 1px solid #dbe4dd; border-radius: 10px; background: #f4f8f5; }
.studio-tabs button {
  border: 0; background: transparent; color: #5b746b;
  padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.studio-tabs button.is-active { background: #fff; color: #1f5a47; box-shadow: 0 1px 4px rgba(35, 53, 50, 0.12); }
.studio-visual-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.studio-visual-toolbar select {
  min-height: 34px; padding: 0 10px; border: 1px solid #d7e3db; border-radius: 9px;
  background: #fff; color: #213a33; font: inherit; font-size: 12px;
}
.studio-visual-toolbar button {
  min-height: 34px; padding: 0 13px; border-radius: 9px;
  border: 1px solid #cfe0d8; background: #f3faf6; color: #205243;
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.studio-blocks { display: grid; gap: 10px; margin: 10px 0; }
.studio-block { border: 1px solid #e0e9e2; border-radius: 12px; background: #fff; padding: 10px 12px; }
.studio-block > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.studio-block > header strong { font-size: 11.5px; color: #2d5a4a; }
.studio-block-actions { display: flex; gap: 4px; }
.studio-block-actions button {
  border: 1px solid #dbe6de; background: #f7faf8; color: #4f6b60;
  width: 26px; height: 24px; border-radius: 7px; cursor: pointer; font-size: 11px; line-height: 1;
}
.studio-block-actions button:disabled { opacity: 0.35; cursor: default; }
.studio-block-actions button.studio-danger { color: #a13b25; border-color: #ecd3ca; background: #fff7f4; }
.studio-block-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.studio-block-fields label { display: grid; gap: 4px; min-width: 0; }
.studio-block-fields label.is-wide { grid-column: 1 / -1; }
.studio-block-fields span { font-size: 10px; color: #7d918a; }
.studio-block-fields input, .studio-block-fields select, .studio-block-fields textarea {
  width: 100%; min-width: 0;
  border: 1px solid #dbe4dd; border-radius: 8px; background: #fbfdfb;
  padding: 7px 9px; font: inherit; font-size: 11.5px; color: #213a33;
}
.studio-block-fields textarea { resize: vertical; line-height: 1.5; }
.studio-block-note { margin: 0; color: #8a9a91; font-size: 11px; }
@media (max-width: 700px) { .studio-block-fields { grid-template-columns: 1fr; } }

/* freeform canvas ------------------------------------------------------ */
.canvas-editor { grid-column: 1 / -1; display: grid; gap: 8px; }
.canvas-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.canvas-toolbar button {
  border: 1px solid #d5e4dc; background: #f4faf6; color: #245747;
  min-height: 28px; padding: 0 9px; border-radius: 7px; font-size: 10.5px; font-weight: 600; cursor: pointer;
}
.canvas-toolbar button:disabled { opacity: .4; cursor: default; }
.canvas-bg { display: flex; align-items: center; gap: 4px; color: #6f867c; font-size: 10px; }
.canvas-bg input[type="color"] { width: 28px; height: 24px; padding: 0; border: 1px solid #d8e3dc; border-radius: 6px; background: #fff; }
.canvas-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid #dce7df; border-radius: 10px;
  container-type: inline-size; touch-action: none; user-select: none;
  background-image: linear-gradient(rgba(15,118,110,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(15,118,110,.06) 1px, transparent 1px);
  background-size: 5% 8.888%;
}
.canvas-el { position: absolute; overflow: hidden; cursor: move; outline: 1px dashed transparent; outline-offset: 1px; }
.canvas-el:hover { outline-color: rgba(15,118,110,.45); }
.canvas-el.is-selected { outline: 2px solid #0f766e; outline-offset: 1px; }
.canvas-el-text {
  display: flex; align-items: center; white-space: pre-wrap;
  line-height: 1.18; font-size: calc(var(--fs) * 1px);
}
@supports (font-size: 1cqw) {
  .canvas-el-text { font-size: calc(var(--fs) * 1cqw / 12.8); }
}
.canvas-text-content { width: 100%; overflow: hidden; }
.canvas-el img { display: block; width: 100%; height: 100%; pointer-events: none; }
.canvas-el-shape { box-shadow: inset 0 0 0 1px rgba(23,54,58,.05); }
.canvas-resize {
  position: absolute; right: 0; bottom: 0; width: 12px; height: 12px;
  background: #0f766e; border: 2px solid #fff; border-radius: 3px 0 0 0;
  cursor: nwse-resize; touch-action: none;
}
.canvas-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #9aaba2; font-size: 11px; background: #f2f7f4; }
.canvas-props { display: grid; gap: 6px; padding: 8px; background: #f7fbf8; border: 1px solid #e3ece6; border-radius: 9px; }
.canvas-props-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.canvas-props label { display: grid; gap: 3px; min-width: 0; color: #70897f; font-size: 9.5px; }
.canvas-props label.is-wide { grid-column: 1 / -1; }
.canvas-props input, .canvas-props select, .canvas-props textarea {
  width: 100%; min-width: 0; border: 1px solid #dbe4dd; border-radius: 6px;
  background: #fff; padding: 5px 7px; font: inherit; font-size: 11px; color: #213a33;
}
.canvas-props input[type="color"] { padding: 1px; height: 26px; }
.canvas-check { display: flex !important; align-items: center; gap: 4px; align-self: end; padding-bottom: 5px; }
.canvas-check input { width: auto; }
@media (max-width: 700px) {
  .canvas-props-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* parent accounts ----------------------------------------------------- */
.parent-account-admin {
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid #d8e4dc;
  border-radius: 12px;
  background: #f6fbf8;
}
.parent-account-list { display: grid; gap: 8px; margin-top: 10px; }
.parent-account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 10px;
  border: 1px solid #dce8df;
  border-radius: 10px;
  background: #fff;
}
.parent-account-person { min-width: 0; display: grid; gap: 2px; }
.parent-account-person strong { color: #24463c; font-size: 13px; }
.parent-account-person small { color: #6b7c78; font-size: 11px; overflow-wrap: anywhere; }
.parent-account-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.parent-account-actions button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #cfe0d8;
  background: #f3faf6;
  color: #205243;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.parent-account-actions .privacy-danger { border-color: #e8c2b8; background: #fdf1ee; color: #a13b25; }

.parent-claim-warning {
  margin: 4px 0 10px;
  padding: 8px 10px;
  border-left: 3px solid #d92d20;
  border-radius: 6px;
  background: #fff4f2;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
.parent-account-person strong.parent-claim-mismatch { color: #b42318; font-weight: 700; }

.parent-claim-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.parent-claim-actions button { font: inherit; padding: 7px 14px; border: 0; border-radius: 999px; background: #0f766e; color: #fff; cursor: pointer; }
.parent-claim-actions button:disabled { opacity: .5; cursor: default; }

.parent-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  background: #eef3ef;
  color: #47615a;
}
.parent-chip.done { background: #e4f3ee; color: #0f766e; }
.parent-chip.open { background: #fdf1dc; color: #a66a1f; }
.parent-chip.overdue { background: #fbe9e4; color: #a13b25; }

/* Managed learning devices (DPC / kiosk launcher) */
.managed-device-admin {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e3e9e4;
  border-radius: 12px;
  background: #fbfcf8;
}
.managed-device-list { display: grid; gap: 8px; margin-top: 10px; }
.managed-device-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e7ece7;
  border-radius: 10px;
  background: #fff;
}
.managed-device-row.is-revoked { opacity: .62; background: #f7f8f5; }
.managed-device-main { display: grid; gap: 3px; min-width: 0; }
.managed-device-main strong { color: #24463c; font-size: 13px; overflow-wrap: anywhere; }
.managed-device-main small { color: #6b7c78; font-size: 11px; overflow-wrap: anywhere; }
.managed-device-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef4ef;
  color: #4b6b5f;
  font-size: 10px;
  font-weight: 600;
}
.managed-device-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.managed-device-actions button {
  border: 1px solid #d8e2d9;
  border-radius: 8px;
  background: #fff;
  color: #315b4c;
  padding: 5px 8px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.managed-device-actions .privacy-danger { border-color: #e8c2b8; background: #fdf1ee; color: #a13b25; }
@media (max-width: 720px) {
  .managed-device-row { flex-direction: column; }
  .managed-device-actions { width: 100%; justify-content: flex-start; }
}

/* External learning data (AI智学 read-only) */
.external-data-admin {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dce8e5;
  border-radius: 12px;
  background: #f7fbfa;
}
.external-data-body { display: grid; gap: 10px; margin-top: 10px; }
.external-data-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.external-data-stat {
  padding: 9px 10px;
  border: 1px solid #e2ece8;
  border-radius: 9px;
  background: #fff;
}
.external-data-stat span { display: block; color: #6b7c78; font-size: 10px; letter-spacing: .03em; }
.external-data-stat strong { display: block; margin-top: 3px; color: #24463c; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.external-data-note { margin: 0; color: #5d716b; font-size: 12px; line-height: 1.6; }
.external-data-summary-text {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #0f766e;
  border-radius: 8px;
  background: #fff;
  color: #315b4c;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.external-data-records { display: grid; gap: 7px; }
.external-data-record {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e6eeea;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}
.external-data-record strong { color: #24463c; overflow-wrap: anywhere; }
.external-data-record small { color: #6b7c78; white-space: nowrap; }
.external-data-error { color: #a13b25; font-size: 12px; line-height: 1.6; }
.external-data-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eaf3f0;
  color: #0f766e;
  font-size: 10px;
  font-weight: 650;
}
@media (max-width: 720px) {
  .external-data-record { flex-direction: column; }
  .external-data-record small { white-space: normal; }
}

.external-data-reports { display: grid; gap: 7px; }
.external-data-report {
  padding: 9px 11px;
  border: 1px solid #e6eeea;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}
.external-data-report strong { display: block; color: #24463c; }
.external-data-report small { color: #6b7c78; }
.external-data-report p { margin: 5px 0 0; color: #315b4c; line-height: 1.65; white-space: pre-wrap; }
