.teacher-profile {
  position: relative;
  flex: none;
  margin-inline-start: auto;
}
.teacher-profile[hidden], .teacher-profile [hidden] { display: none; }
.teacher-profile-control {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .35rem .7rem;
  border: 1px solid #a7beb7;
  border-radius: .65rem;
  background: #fff;
  color: #174c43;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.teacher-profile-control svg { width: 20px; height: 20px; flex: none; }
.teacher-profile summary { list-style: none; }
.teacher-profile summary::-webkit-details-marker { display: none; }
.teacher-profile-panel {
  position: absolute;
  z-index: 30;
  inset-inline-end: 0;
  min-width: 10rem;
  margin-block-start: .4rem;
  padding: .35rem;
  border: 1px solid #c5d5d0;
  border-radius: .65rem;
  background: #fff;
  box-shadow: 0 8px 20px #152d4926;
}
.teacher-profile-panel a, .teacher-profile-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: .35rem .65rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: #174c43;
  text-align: start;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.teacher-profile-panel a:hover, .teacher-profile-panel button:hover { background: #edf5f1; }
.teacher-profile-panel p { max-width: 13rem; margin: .4rem .65rem; color: #7b2626; }
@media (max-width: 710px) {
  .topbar .teacher-profile { grid-column: 3; grid-row: 2; order: 2; }
}
