.student-page {
  min-height: 100dvh;
}
.student-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.student-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}
.brand-square {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #28725b;
  color: #fff;
  border-radius: 8px;
  font: 600 14px var(--mono);
}
.student-header .who {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.student-header .who .btn {
  font-size: 11px;
  padding: 6px 10px;
}
.student-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.wait-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  padding: 45px 0 32px;
}
.wait-hero h1 {
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -1px;
  margin: 14px 0;
}
.wait-hero h1 em {
  font-style: normal;
  color: #28725b;
}
.wait-hero p {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.9;
}
.wait-status {
  display: flex;
  gap: 8px;
  font-size: 11px;
  align-items: center;
  color: #63835c;
  margin-top: 20px;
}
.wait-status i {
  width: 6px;
  height: 6px;
  background: #73976a;
  border-radius: 50%;
}
.track-illustration {
  position: relative;
  height: 210px;
  overflow: hidden;
  margin: 0 20px;
}
.track-illustration .oval {
  position: absolute;
  width: 310px;
  height: 180px;
  border: 15px solid #c17d65;
  border-radius: 95px;
  transform: rotate(-12deg);
  left: 40px;
  top: 20px;
  box-shadow:
    inset 0 0 0 2px #f2eadb,
    0 0 0 2px #f2eadb,
    0 0 0 17px #c17d65,
    0 0 0 19px #f2eadb,
    0 0 0 33px #c17d65;
  background: #bfd0a8;
}
.track-illustration .oval::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 60px;
  border: 1px solid #edf1df;
  border-radius: 50%;
  inset: 44px auto auto 92px;
}
.track-illustration .tiny-runner {
  position: absolute;
  width: 54px;
  height: 72px;
  left: 230px;
  top: 126px;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 14px;
  border-top: 1px solid var(--line);
}
.section-label h2 {
  font-size: 14px;
  font-weight: 600;
}
.section-label span {
  font-size: 11px;
  color: var(--dim);
}
.wait-tasks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.wait-task {
  padding: 22px 20px;
}
.wait-task .task-n {
  font: 26px var(--mono);
  color: #a8b89f;
  margin-bottom: 22px;
}
.wait-task h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.wait-task p {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.85;
  min-height: 65px;
}
.wait-task code {
  display: block;
  font: 10px/1.7 var(--mono);
  overflow-wrap: anywhere;
  color: #6d875e;
  padding-top: 14px;
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.wait-footer {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 24px 0 38px;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.9;
}
.wait-footer strong {
  color: #5b7352;
  font-weight: 500;
}
/* Entry pages */
.login-page {
  display: grid;
  place-items: center;
  padding: 28px;
  min-height: 100dvh;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 90px;
  align-items: center;
  max-width: 1000px;
  width: 100%;
}
.login-intro h1 {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.5;
  margin: 24px 0 18px;
}
.login-intro p {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.9;
}
.login-intro .track-illustration {
  margin: 32px 0 0;
  width: 410px;
  height: 240px;
}
.login-card {
  padding: 32px;
}
.login-card h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
}
.login-card .subtitle {
  color: var(--dim);
  font-size: 12px;
  margin-bottom: 28px;
}
.login-card .field {
  margin-bottom: 20px;
}
.login-card .hint {
  font-size: 11px;
  color: var(--dim);
  margin-top: 8px;
}
.login-card .alert {
  margin-bottom: 16px;
}
.login-card .btn {
  margin-top: 6px;
}
.login-footer {
  text-align: center;
  color: var(--dim);
  font-size: 11px;
  margin-top: 24px;
}
/* Durable result view */
.result-wrap {
  max-width: 850px;
  margin: 30px auto;
}
.result-hero {
  padding: 28px 0;
}
.result-hero h1 {
  font-size: 32px;
  font-weight: 500;
  margin: 8px 0;
}
.result-hero p {
  color: var(--dim);
  font-size: 13px;
}
.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.result-stat {
  padding: 24px;
}
.result-stat strong {
  display: block;
  font: 28px var(--mono);
  margin-bottom: 7px;
}
.result-stat span {
  font-size: 11px;
  color: var(--dim);
}
.result-body {
  padding: 24px;
  margin-bottom: 18px;
}
.result-body h2 {
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 500;
}
.result-tasks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.result-task {
  background: var(--bg);
  padding: 12px;
  border-radius: 7px;
  font-size: 11px;
  color: var(--dim);
}
.result-task.done {
  background: #edf4e7;
  color: #5e7c48;
}
.result-tree {
  background: #1c2d25;
  color: #d2e0cc;
  padding: 22px;
  font: 12px/1.8 var(--mono);
  border-radius: 8px;
  white-space: pre-wrap;
  overflow: auto;
  max-height: 320px;
}
.result-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
@media (max-width: 850px) {
  .student-header {
    padding: 20px 0;
  }
  .wait-hero {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }
  .wait-hero .track-illustration {
    display: none;
  }
  .wait-tasks {
    grid-template-columns: repeat(2, 1fr);
  }
  .login-layout {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 32px;
  }
  .login-intro h1 {
    font-size: 28px;
    margin: 16px 0;
  }
  .login-intro .track-illustration,
  .login-intro p {
    display: none;
  }
  .wait-footer {
    flex-direction: column;
    gap: 10px;
  }
  .result-stats {
    gap: 8px;
  }
  .result-stat {
    padding: 15px;
  }
  .result-stat strong {
    font-size: 21px;
  }
  .result-tasks {
    grid-template-columns: repeat(2, 1fr);
  }
}
