#subView-teacher .td-heading {
  margin-bottom: 20px;
}
#subView-teacher .td-heading h3 {
  margin-bottom: 5px;
}
#subView-teacher .td-heading p {
  font-size: 0.88em;
  color: var(--text-muted);
  line-height: 1.6;
}
.td-view-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #e3e2de;
  margin-bottom: 20px;
}
.td-view-tabs button {
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 0;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 700;
}
.td-view-tabs button[aria-pressed="true"] {
  border-color: #286752;
  color: var(--text-main);
}
.td-count {
  display: inline-block;
  font-size: 0.8em;
  padding: 1px 7px;
  background: #f1ede3;
  color: #655c49;
  border-radius: 20px;
  margin-left: 4px;
}
.td-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.td-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78em;
  font-weight: 700;
  min-width: 135px;
}
.td-toolbar label:first-child {
  flex: 1;
  min-width: 180px;
}
.td-toolbar input,
.td-toolbar select {
  font: inherit;
  font-size: 1.1em;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #d9d8d0;
  border-radius: 9px;
  background: #fff;
  color: var(--text-main);
  width: 100%;
}
.td-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.83em;
  font-weight: 700;
  line-height: 1.4;
  padding: 9px 12px;
  min-height: 38px;
  border: 1px solid #deddd5;
  border-radius: 8px;
  background: #fff;
  color: #34483f;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.td-button:hover {
  background: #f3f6f3;
}
.td-button:disabled {
  opacity: 0.45;
  cursor: default;
}
.td-primary {
  background: #286752;
  color: #fff;
  border-color: #286752;
}
.td-primary:hover {
  background: #205440;
}
.td-button:focus-visible,
.td-name:focus-visible,
.td-back:focus-visible {
  outline: 3px solid #e0ae37;
  outline-offset: 3px;
}
.td-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9em;
}
.td-table th {
  font-weight: 600;
  font-size: 0.85em;
  padding: 12px 14px;
  background: #f7f5f0;
  color: #6c6b65;
}
.td-table td {
  padding: 16px 14px;
  border-bottom: 1px solid #ebe8e0;
  vertical-align: middle;
}
.td-table td:last-child {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}
.td-table strong {
  font-weight: 700;
}
.td-table small,
.td-appeals small {
  display: block;
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 3px;
}
.td-table time {
  font-size: 0.88em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.td-person {
  display: flex;
  gap: 11px;
  align-items: center;
}
.td-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  background: #f1eee5;
  border-radius: 50%;
  font-weight: 700;
  color: #6b685c;
}
.td-name {
  background: none;
  border: 0;
  color: #286752;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.td-topic {
  display: block;
  font-size: 0.85em;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
  max-width: 340px;
}
.td-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.td-status {
  display: inline-block;
  font-size: 0.78em;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.td-wait {
  background: #fff2d5;
  color: #83530c;
}
.td-done {
  background: #eaf5ed;
  color: #286344;
}
.td-priority {
  background: #fae8e3;
  color: #a8442d;
}
.td-muted {
  color: var(--text-muted);
  font-size: 0.88em;
}
#teacherStats {
  font-size: 0.83em;
  color: var(--text-muted);
  margin: 14px 0 8px;
  font-weight: 600;
}
#teacherList {
  margin-top: 12px;
}
.td-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.82em;
}
.td-pagination > div {
  display: flex;
  gap: 7px;
}
.td-empty {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-muted);
}
.td-back {
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.85em;
  color: #286752;
  cursor: pointer;
  margin-bottom: 14px;
  padding: 0;
}
#teacherStudentHeading {
  font-size: 1.1em;
  margin-bottom: 18px;
  color: var(--text-main);
}
.td-appeals {
  margin-top: 18px;
  background: #fffaf0;
  border: 1px solid #f1dfb6;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 0.86em;
}
.td-appeals summary {
  cursor: pointer;
  font-weight: 700;
}
.td-appeals article {
  padding: 14px 0;
  border-top: 1px solid #ecdfc5;
  margin-top: 12px;
}
.td-appeals p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 10px 0;
}
.td-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.td-dialog {
  max-width: 1000px;
}
.td-dialog .fb-dialog-head h2 {
  font-size: 1.15em;
}
.td-dialog h3 {
  font-size: 0.9em;
  font-weight: 800;
  margin-bottom: 10px;
}
.td-part-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.td-part-tabs [aria-pressed="true"] {
  background: #286752;
  color: #fff;
  border-color: #286752;
}
.td-prompt {
  margin: 20px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7e3da;
  line-height: 1.75;
  font-size: 0.9em;
}
.td-prompt p {
  overflow-wrap: anywhere;
}
.td-prompt details {
  margin-top: 14px;
}
.td-chart {
  display: block;
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  margin: 12px auto;
}
.td-essay p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
  font-size: 0.95em;
  margin: 0;
}
.td-upload {
  background: #f7faf7;
  border: 1px dashed #a8c2b3;
  border-radius: 10px;
  padding: 18px;
  margin-top: 22px;
}
.td-upload p {
  font-size: 0.85em;
  color: var(--text-muted);
  margin: 8px 0 14px;
  line-height: 1.6;
}
.td-file {
  display: none;
  margin-top: 10px;
  max-width: 100%;
  font: inherit;
  font-size: 0.78em;
}
.td-band {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.85em;
  flex-wrap: wrap;
  margin: 20px 0;
}
.td-band input {
  width: 80px;
  border: 1px solid #d9d8d0;
  border-radius: 7px;
  padding: 8px;
  font: inherit;
}
.td-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 650px) {
  .td-table th,
  .td-table td {
    padding: 12px 7px;
  }
  .td-table {
    font-size: 0.83em;
  }
  .td-table .td-date {
    display: none;
  }
  .td-avatar {
    display: none;
  }
  .td-status {
    font-size: 0.8em;
    white-space: normal;
  }
  .td-table .td-button {
    padding: 8px;
  }
  .td-topic {
    max-width: 180px;
    font-size: 0.8em;
  }
  .td-person {
    gap: 0;
  }
  .td-toolbar label:first-child {
    flex-basis: 100%;
  }
  .td-toolbar label {
    flex: 1;
    min-width: 100px;
  }
  .td-toolbar > .td-button {
    min-height: 42px;
  }
  .td-view-tabs {
    gap: 18px;
  }
  .td-dialog .fb-dialog-body {
    padding: 15px;
  }
}
