.teacher-page main {
  max-width: 1220px;
}
.teacher-login {
  max-width: 540px;
  margin: 70px auto 110px;
}
.teacher-login h1 {
  font-size: 34px;
  line-height: 1.6;
}
.login-description {
  color: #7c8473;
  font-size: 13px;
  line-height: 2;
  margin: 20px 0 30px;
}
.teacher-login form {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.teacher-login label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
}
.password-field {
  display: flex;
  border: 1px solid #c8d1b9;
  border-radius: 4px;
  margin-bottom: 19px;
  overflow: hidden;
}
.password-field input {
  min-width: 0;
  width: 100%;
  font: 17px var(--mono);
  padding: 12px;
  background: #fbfcf7;
  border: 0;
  color: #33432b;
}
.password-field:focus-within {
  outline: 2px solid #7d9462;
  outline-offset: 2px;
}
.password-field input:focus {
  outline: 0;
}
.password-field button {
  font-size: 12px;
  background: #edf0e4;
  padding: 0 14px;
}
.teacher-login .run-button {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 11px;
}
#login-message {
  font-size: 12px;
  color: #a44c34;
  margin-bottom: 0;
}
.login-note {
  font-size: 11px;
  color: #979e8d;
}
.student-link {
  font-size: 12px;
  color: #75816b;
}
.teacher-hero {
  margin: 13px 0 26px;
}
.teacher-hero h1 {
  font-size: 34px;
  margin-bottom: 15px;
}
.teacher-hero p {
  color: #768369;
  font-size: 13px;
}
.teacher-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.teacher-nav a {
  font-size: 12px;
  background: #eaf0df;
  border: 1px solid #d6e0c7;
  border-radius: 4px;
  padding: 7px 11px;
}
.teacher-section {
  scroll-margin-top: 20px;
  margin: 27px 0;
  border: 1px solid #dce2d0;
  border-radius: 7px;
  background: #fff;
  padding: 25px;
}
.teacher-section h2 {
  margin: 0 0 13px;
  font-size: 23px;
}
.teacher-section h3 {
  font-size: 15px;
  margin: 24px 0 11px;
}
.teacher-section p,
.teacher-section li {
  font-size: 13px;
  color: #6b765e;
  line-height: 1.95;
}
.teacher-section li {
  margin-bottom: 6px;
}
.teacher-section .eyebrow {
  font-size: 10px;
  color: #82926c;
}
.teaching-goal {
  padding: 12px 16px;
  background: #f2f5e9;
  border-left: 3px solid #9aab78;
}
.teacher-schedule {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}
.teacher-schedule article {
  padding: 14px;
  background: #f5f7f0;
  border-radius: 5px;
}
.teacher-schedule strong {
  font-size: 13px;
  color: #526c3c;
}
.teacher-schedule p {
  margin: 7px 0 0;
  font-size: 12px;
}
.teacher-answer {
  margin-top: 14px;
  border: 1px solid #d9e2ca;
  padding: 15px;
  border-radius: 5px;
}
.teacher-answer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.teacher-answer-top h3 {
  margin: 0;
}
.teacher-copy,
.teacher-download {
  font-size: 11px;
  border: 1px solid #cdd8b9;
  border-radius: 4px;
  padding: 6px 10px;
  background: #ecf1df;
  white-space: nowrap;
}
.teacher-section pre {
  background: #25302b;
  color: #e2edcc;
  font: 13px/1.8 var(--mono);
  padding: 17px;
  border-radius: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 600px;
  overflow-y: auto;
}
.teacher-code summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #687f4e;
  padding: 12px 0;
}
.teacher-code {
  margin-top: 12px;
}
.table-scroll {
  overflow-x: auto;
}
.teacher-section table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
.teacher-section th {
  font-weight: 600;
  background: #f3f6ec;
}
.teacher-section th,
.teacher-section td {
  padding: 13px;
  border-bottom: 1px solid #e6ebde;
  vertical-align: top;
  line-height: 1.9;
}
.teacher-section td:first-child {
  font-weight: 600;
  width: 23%;
}
.teacher-reference {
  text-decoration: underline;
  font-size: 12px;
  color: #758b58;
}
#teacher-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 6px;
  color: white;
  background: #405b37;
  font-size: 12px;
  z-index: 4;
  max-width: 90%;
  width: max-content;
}
@media (max-width: 700px) {
  .teacher-page .site-header {
    padding: 0 15px;
  }
  .teacher-page .brand-en {
    display: none;
  }
  .teacher-page .header-actions {
    gap: 12px;
  }
  .student-link {
    font-size: 10px;
  }
  .teacher-login {
    margin: 40px auto 70px;
  }
  .teacher-login h1,
  .teacher-hero h1 {
    font-size: 28px;
  }
  .teacher-login form {
    padding: 20px;
  }
  .teacher-section {
    padding: 18px;
  }
  .teacher-section h2 {
    font-size: 20px;
  }
  .teacher-schedule {
    grid-template-columns: repeat(2, 1fr);
  }
  .teacher-section th,
  .teacher-section td {
    padding: 9px;
    min-width: 100px;
  }
  .teacher-hero h1 {
    font-size: 25px;
    letter-spacing: 0;
  }
}
