.teacher-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fffaf3;
}

.teacher-profile img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}

.teacher-profile strong {
  font-size: 15px;
  color: var(--ink);
}

.auth-only {
  display: none !important;
}

body:not(.authenticated) .auth-only {
  display: none !important;
}

body.authenticated .auth-only {
  display: revert !important;
}

body.authenticated .teacher-profile {
  display: flex !important;
}

body.authenticated .login-view {
  display: none;
}

body.authenticated .login-view.active {
  display: none;
}

.login-avatar {
  width: 82px;
  height: 82px;
  margin: -6px auto 16px;
  border: 3px solid #f3e2ce;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(88, 54, 28, .16);
}

.login-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}

.login-symbol {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff8ec, #edd0b7);
  color: #9b4b1e;
  font-size: 34px;
  font-weight: 900;
}

.page-hero {
  background: linear-gradient(90deg, rgba(255,250,243,.96), rgba(255,245,232,.78)) !important;
}

.tool-card.disabled {
  opacity: .72;
}

.tool-disabled {
  display: inline-block;
  border: 1px dashed #c9876e;
  border-radius: 7px;
  padding: 10px 22px;
  color: #8a4b25;
  font-weight: 800;
  background: #fff8ee;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.system-grid a {
  display: block;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf4;
  padding: 18px;
}

.system-grid strong,
.system-grid small {
  display: block;
}

.system-grid strong {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--ink);
}

.system-grid small {
  color: var(--muted);
  line-height: 1.6;
}

.login-error {
  min-height: 20px;
  margin-top: 14px;
  color: #a72812;
  font-weight: 800;
  text-align: center;
}

.login-error:not(:empty) + .login-btn {
  margin-top: 8px;
}
