.student-symbols { position: absolute; overflow: hidden; pointer-events: none; }
.student-header-end { display: flex; align-items: center; gap: 12px; }
.teacher-login-link { color: var(--brand); font-size: 13px; font-weight: 650; text-decoration: none; padding: 7px 2px; white-space: nowrap; }
.teacher-login-link:hover { text-decoration: underline; }
@media(max-width:540px) { .student-header-end .student-role { display: none; } }
.s-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.student-page .brand-mark .s-icon { width: 24px; height: 24px; }
.student-role, .semester {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}
.student-role {
  color: var(--brand);
  background: var(--pale);
  border: 1px solid #e8dafc;
  border-radius: 999px;
  padding: 5px 12px;
}
.student-role .s-icon, .semester .s-icon { width: 16px; height: 16px; }
.student-hero {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 28px clamp(22px,3.3vw,48px);
  min-height: 174px;
  border-radius: 28px;
  color: white;
  background: radial-gradient(ellipse at 95% 120%,#da5893,transparent 47%),
              linear-gradient(112deg,#432283 0%,#7133b7 56%,#a846a2);
  box-shadow: 0 12px 29px -22px #622398;
}
.student-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 410px;
  aspect-ratio: 1;
  right: -65px;
  top: 50%;
  transform: translateY(-49%);
  border-radius: 50%;
  border: 1px solid #ffffff27;
  box-shadow: 0 0 0 31px #ffffff08,0 0 0 32px #ffffff1f,0 0 0 72px #ffffff04,0 0 0 73px #ffffff19;
  pointer-events: none;
}
.student-heading { position: relative; z-index: 1; }
.student-heading h1 { margin: 5px 0 0; font-size: clamp(30px,3.2vw,44px); font-weight: 820; letter-spacing: -.045em; line-height: 1.2; color: inherit; }
.student-heading p { text-wrap: balance; margin: 8px 0 0; color: #f2e7ff; font-size: 14px; }
.semester { color: #f6eeff; font-variant-numeric: tabular-nums; letter-spacing: .035em; }
.classroom-art { height: 98%; max-width: 40%; position: absolute; right: clamp(16px,6vw,84px); bottom: 0; pointer-events: none; filter: drop-shadow(0 9px 12px #3512593d); }
.student-nav {
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 3px;
  padding: 4px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,253,249,.84);
}
.student-nav button { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; color: var(--muted); background: transparent; border-radius: 999px; padding: 8px 17px; min-height: 42px; }
.student-nav .s-icon { width: 17px; height: 17px; }
.student-nav button:hover { color: var(--brand); background: var(--pale); }
.student-nav button.on { background: var(--pale); color: #6322af; font-weight: 750; }
.student-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.46fr); gap: 22px; align-items: start; }
.student-content { min-width: 0; }
#form, #records { display: grid; gap: 18px; }
#records:not(:empty) + #recover-btn { margin-block-start: 16px; }
.student-page main { padding-top: 24px; }
.student-page .section-top h2, #recover h2 { display: flex; align-items: center; gap: 10px; }
.section-icon, .step-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #f2eaff;
  color: #733acd;
}
.section-icon.mint { background: #e0f6ed; color: #147959; }
.section-icon.peach { background: #ffecdf; color: #ae532c; }
.media-check { align-self: end; min-height: 46px; }
#times { display: grid; gap: 12px; }
.student-page .time-row {
  display: grid;
  grid-template-columns: minmax(140px,1.2fr) repeat(2,minmax(80px,.8fr)) auto;
  gap: 10px;
  align-items: end;
  padding-bottom: 0;
}
#calendar-note { display: block; margin-top: 14px; line-height: 1.6; }
.student-side { position: sticky; top: 20px; }
.student-steps { list-style: none; padding: 0; margin: 0; }
.student-steps li { position: relative; display: flex; gap: 13px; padding: 2px 0 22px; }
.student-steps li:last-child { padding-bottom: 0; }
.student-steps li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 37px; bottom: 1px; border-left: 1px dashed #d6c8df; }
.step-icon { width: 33px; height: 33px; border-radius: 50%; margin-top: 1px; }
.step-icon .s-icon { width: 16px; height: 16px; }
.student-steps li:nth-child(2) .step-icon { color: #a4530a; background: #fff2d9; }
.student-steps li:last-child .step-icon { color: #157454; background: #e0f6ed; }
.student-steps b { font-size: 14px; }
.student-steps small { display: block; margin-top: 4px; line-height: 1.65; }
#recover-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
#records .between { align-items: flex-start; flex-wrap: wrap; }
#records h2 { overflow-wrap: anywhere; }
#records .id { display: block; margin: 6px 0 18px; }
#records .details { border-top: 1px solid var(--line); padding-top: 15px; }
#lookup-count { margin: 18px 0 10px; font-size: 14px; font-weight: 650; color: var(--muted); }
#lookup-count:empty { display: none; }
#recover .notice { margin: 14px 0 20px; }
#recover .codebox { padding: 10px 14px; border-radius: 12px; background: var(--pale); font: 14px/1.65 ui-monospace, monospace; overflow-wrap: anywhere; }
#recover-msg:not(:empty) { color: #a71d40; }
#records [data-withdraw] { color: #ad254c; background: #fff4f5; border-color: #f0d0d9; }
@media(max-width:860px) {
  .student-layout { grid-template-columns: 1fr; }
  .student-side { position: static; }
  .student-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
  .student-steps li { padding: 0; }
  .student-steps li::before { display: none; }
}
@media(max-width:600px) {
  .student-page main { padding-top: 16px; }
  .student-hero { min-height: 147px; padding: 19px 20px; border-radius: 22px; }
  .student-heading { width: 68%; }
  .student-heading h1 { font-size: 30px; }
  .student-heading p { font-size: 13px; line-height: 1.55; }
  .semester { gap: 5px; font-size: 11px; }
  .student-hero::after { width: 200px; right: -20px; }
  .classroom-art { width: 42%; max-width: none; height: auto; right: -4%; bottom: 12%; }
  .student-nav { margin: 14px 0; }
  .student-nav button { min-height: 44px; padding: 8px 13px; }
  .student-layout { gap: 16px; }
  .student-steps { display: block; }
  .student-steps li { padding-bottom: 18px; }
  .student-steps li:not(:last-child)::before { display: block; }
  .student-page .time-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .student-page .time-row label:first-child { grid-column: 1; }
  .student-page .time-row label:nth-child(2), .student-page .time-row label:nth-child(3) { grid-row: 2; }
  .student-page .time-row button { grid-column: 2; grid-row: 1; justify-self: end; }
  .student-page .time-row + .time-row { border-top: 1px solid var(--line); padding-top: 12px; }
}
@media(max-width:420px) {
  .student-page #form .grid, .student-page #lookup-form .grid { grid-template-columns: minmax(0,1fr); }
  .media-check { min-height: 44px; }
}
