:root {
  color-scheme: light;
  --welcome-ink: #101821;
  --welcome-muted: #64707d;
  --welcome-paper: #f7f8fa;
  --welcome-blue: #3f73ff;
  --welcome-green: #39bd77;
  --welcome-coral: #ff7458;
  --welcome-navy: #07111d;
  --welcome-line: rgba(255, 255, 255, 0.3);
  --welcome-header-height: 88px;
  font-family:
    "Avenir Next",
    "SF Pro Display",
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--welcome-paper);
  scroll-behavior: smooth;
}

body.welcome-page {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--welcome-paper);
  color: var(--welcome-ink);
  line-height: 1.5;
}

.welcome-page button,
.welcome-page a {
  font: inherit;
}

.welcome-page a {
  color: inherit;
  text-decoration: none;
}

.welcome-page svg {
  display: block;
}

.welcome-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--welcome-ink);
  background: #fff;
  border-radius: 6px;
  transform: translateY(-160%);
}

.welcome-skip-link:focus {
  transform: translateY(0);
}

.welcome-section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.welcome-hero {
  position: relative;
  height: min(56svh, 540px);
  min-height: 480px;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #17241f;
}

.welcome-backdrop,
.welcome-slide,
.welcome-slide img,
.welcome-contrast {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.welcome-backdrop {
  z-index: -3;
  transform: translate3d(var(--welcome-parallax-x, 0), var(--welcome-parallax-y, 0), 0);
  transition: transform 900ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.welcome-slide {
  margin: 0;
  opacity: 0;
  transition: opacity 1300ms ease;
}

.welcome-slide.is-active {
  opacity: 1;
}

.welcome-slide img {
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
}

.welcome-slide.is-active img {
  animation: welcome-drift 10s ease-out both;
}

.welcome-contrast {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 10, 13, 0.88) 0%, rgba(5, 10, 13, 0.58) 39%, rgba(5, 10, 13, 0.08) 78%),
    linear-gradient(180deg, rgba(4, 8, 10, 0.4) 0%, transparent 35%, rgba(4, 8, 10, 0.88) 100%);
}

.welcome-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--welcome-header-height);
  padding: 16px clamp(24px, 5vw, 72px);
}

.welcome-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
}

.welcome-brand img {
  width: 42px;
  height: 50px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
}

.welcome-brand span,
.welcome-role-copy {
  display: grid;
  min-width: 0;
}

.welcome-brand strong {
  font-size: 17px;
  font-weight: 720;
  line-height: 1.16;
}

.welcome-brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.welcome-motion-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.welcome-slide-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.welcome-slide-dots button {
  width: 24px;
  height: 3px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.38);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: width 220ms ease, background-color 220ms ease;
}

.welcome-slide-dots button.is-active {
  width: 42px;
  background: #fff;
}

.welcome-motion-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #fff;
  background: rgba(9, 15, 18, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.welcome-motion-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.welcome-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(1180px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: calc(var(--welcome-header-height) + 16px) 24px 34px;
}

.welcome-copy {
  margin-bottom: clamp(28px, 5vh, 48px);
}

.welcome-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.16;
  text-wrap: balance;
}

.welcome-copy p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.8;
}

.welcome-mobile-break {
  display: none;
}

.welcome-showcase-break {
  display: none;
}

.welcome-accent {
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 19px;
  background: var(--welcome-blue);
}

.welcome-role-dock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--welcome-line);
  background: rgba(6, 12, 15, 0.46);
  backdrop-filter: blur(15px);
}

.welcome-role {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 88px;
  padding: 15px 20px;
  transition: background-color 220ms ease;
}

.welcome-role + .welcome-role {
  border-left: 1px solid var(--welcome-line);
}

.welcome-role:hover,
.welcome-role:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.welcome-role-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.welcome-role-icon svg,
.welcome-role-arrow {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.welcome-role-icon svg {
  width: 40px;
  height: 40px;
}

.welcome-role-admin .welcome-role-icon,
.welcome-role-admin .welcome-role-arrow {
  color: #6c93ff;
}

.welcome-role-staff .welcome-role-icon,
.welcome-role-staff .welcome-role-arrow {
  color: #63d691;
}

.welcome-role-student .welcome-role-icon,
.welcome-role-student .welcome-role-arrow {
  color: #ff7b62;
}

.welcome-role-copy strong {
  color: #fff;
  font-size: 17px;
  font-weight: 690;
  line-height: 1.25;
}

.welcome-role-copy small {
  margin-top: 5px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.67);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.welcome-role-arrow {
  width: 18px;
  height: 18px;
  transition: transform 220ms ease;
}

.welcome-role:hover .welcome-role-arrow,
.welcome-role:focus-visible .welcome-role-arrow {
  transform: translateX(4px);
}

.welcome-section-kicker {
  margin: 0 0 18px;
  color: var(--welcome-blue);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0.02em;
}

.welcome-section-copy h2,
.welcome-showcase-copy h2,
.welcome-closing h2 {
  margin: 0;
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.welcome-section-copy > p:last-child,
.welcome-showcase-copy > p:last-child {
  margin: 19px 0 0;
  color: var(--welcome-muted);
  font-size: 15px;
  line-height: 1.85;
}

.welcome-record {
  padding: 60px 0 54px;
  background: #fbfcfd;
}

.welcome-record-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.8fr);
  gap: clamp(58px, 8vw, 112px);
  align-items: center;
}

.welcome-record-flow {
  min-width: 0;
}

.welcome-record-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.welcome-record-steps::before {
  position: absolute;
  top: 25px;
  right: 8.3%;
  left: 8.3%;
  height: 1px;
  content: "";
  background: #ccd2da;
}

.welcome-record-steps::after {
  position: absolute;
  top: 25px;
  left: 8.3%;
  width: 40%;
  height: 2px;
  content: "";
  background: var(--welcome-blue);
}

.welcome-record-steps li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.welcome-record-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #949ca5;
  background: #fff;
  border: 1px solid #aab1ba;
  border-radius: 50%;
}

.welcome-record-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.welcome-record-steps .is-complete .welcome-record-icon {
  color: var(--welcome-blue);
  border-color: var(--welcome-blue);
  box-shadow: 0 0 0 4px rgba(63, 115, 255, 0.05);
}

.welcome-record-steps strong {
  margin-top: 13px;
  color: #1a222c;
  font-size: 13px;
  font-weight: 680;
  white-space: nowrap;
}

.welcome-record-steps small {
  margin-top: 8px;
  padding: 3px 8px;
  color: #818a94;
  background: #f1f3f5;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}

.welcome-record-steps .is-complete small {
  color: #29985c;
  background: #eaf7ef;
}

.welcome-record-line {
  margin: 52px 0 0;
  color: #131c25;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.welcome-record-line span {
  display: block;
  width: 38px;
  height: 2px;
  margin-top: 14px;
  background: var(--welcome-blue);
}

.welcome-showcase {
  padding: 52px 0 50px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 47% 78%, rgba(49, 102, 236, 0.42), transparent 33%),
    linear-gradient(105deg, #07111d 0%, #091626 64%, #07101b 100%);
}

.welcome-showcase-copy {
  max-width: 610px;
}

.welcome-showcase .welcome-section-kicker {
  color: #5d91ff;
}

.welcome-showcase-copy h2 {
  color: #fff;
}

.welcome-showcase-copy > p:last-child {
  max-width: 470px;
  color: rgba(255, 255, 255, 0.73);
}

.welcome-showcase-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: clamp(32px, 4vw, 48px);
  align-items: center;
  margin-top: 4px;
}

.welcome-device-stage {
  position: relative;
  min-width: 0;
  height: 280px;
}

.welcome-device-stage figure {
  margin: 0;
  overflow: hidden;
  background: #111820;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.welcome-device-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-desktop-shot {
  position: absolute;
  bottom: 14px;
  left: 0;
  width: min(100%, 720px);
  aspect-ratio: 16 / 10;
  padding: 8px 8px 15px;
  border: 1px solid #526170;
  border-radius: 12px 12px 4px 4px;
}

.welcome-desktop-shot::after {
  position: absolute;
  right: -6%;
  bottom: 0;
  left: -6%;
  height: 9px;
  content: "";
  background: #8f98a2;
  border-radius: 0 0 50% 50%;
}

.welcome-phone-shot {
  position: absolute;
  right: 0;
  bottom: 22px;
  width: min(25%, 164px);
  aspect-ratio: 390 / 1085;
  padding: 6px;
  border: 1px solid #73808c;
  border-radius: 24px;
}

.welcome-phone-shot img {
  border-radius: 18px;
}

.welcome-showcase-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.welcome-showcase-features li {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 17px;
  align-items: center;
  min-height: 70px;
  color: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 14px;
  line-height: 1.65;
}

.welcome-showcase-features li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.welcome-showcase-features svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: #d9e6ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.welcome-collaboration {
  padding: 50px 0 38px;
  background: #fbfcfd;
}

.welcome-collaboration-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.55fr);
  gap: clamp(54px, 8vw, 112px);
  align-items: center;
}

.welcome-collaboration-map {
  position: relative;
  min-width: 0;
  height: 240px;
}

.welcome-collaboration-map::before {
  position: absolute;
  inset: 12px 11% 0;
  content: "";
  border: 1px dashed #ced5dd;
  border-radius: 50%;
}

.welcome-collaboration-core {
  position: absolute;
  top: 49%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 310px;
  min-height: 66px;
  margin: 0;
  color: #202934;
  background: #fff;
  border: 1px solid #d4dae1;
  border-radius: 9px;
  box-shadow: 0 12px 34px rgba(40, 55, 72, 0.08);
  font-size: 15px;
  font-weight: 680;
  transform: translate(-50%, -50%);
}

.welcome-collaboration-core span {
  color: #89929d;
}

.welcome-collaboration-role {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: 50px max-content;
  column-gap: 13px;
  align-items: center;
}

.welcome-collaboration-role strong {
  align-self: end;
  font-size: 16px;
  font-weight: 700;
}

.welcome-collaboration-role small {
  grid-column: 2;
  align-self: start;
  margin-top: 2px;
  color: #697581;
  font-size: 12px;
  white-space: nowrap;
}

.welcome-person-icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 50px;
  height: 50px;
  background: #fff;
  border: 1px solid #d9dfe5;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(26, 40, 55, 0.08);
}

.welcome-person-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.welcome-person-icon.teacher {
  color: #2bbf72;
}

.welcome-person-icon.assistant {
  color: #ff7656;
}

.welcome-person-icon.student {
  color: #477cff;
}

.welcome-collaboration-teacher {
  top: 4px;
  left: 50%;
  transform: translateX(-23%);
}

.welcome-collaboration-assistant {
  bottom: 15px;
  left: 4%;
}

.welcome-collaboration-student {
  right: 3%;
  bottom: 15px;
}

.welcome-collaboration-note {
  width: min(1180px, calc(100% - 48px));
  margin: 22px auto 0;
  color: #26313c;
  font-size: 17px;
  font-weight: 560;
  text-align: center;
}

.welcome-closing {
  padding: 24px 0 0;
  color: #fff;
  background: linear-gradient(105deg, #0b1117, #111820 64%, #0c1218);
}

.welcome-closing h2 {
  font-size: clamp(27px, 3vw, 39px);
}

.welcome-closing-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.welcome-closing-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  transition: color 180ms ease, background-color 180ms ease;
}

.welcome-closing-links a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.welcome-closing-links a:hover,
.welcome-closing-links a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.welcome-closing-links svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.welcome-closing-links a:first-child svg {
  color: #638cff;
}

.welcome-closing-links a:nth-child(2) svg {
  color: #49cd7e;
}

.welcome-closing-links a:last-child svg {
  color: #ff7659;
}

.welcome-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* Shared administrator and teacher/assistant authentication */
.staff-auth-page {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f4f6f8;
  color: var(--welcome-ink);
}

.staff-auth-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(460px, 0.92fr);
  min-height: 100vh;
}

.staff-auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 38px clamp(32px, 5vw, 74px) 58px;
  overflow: hidden;
  color: #fff;
  background: #1b2723 url("/assets/welcome/campus-library-1680.webp") center / cover no-repeat;
}

.staff-auth-visual-admin {
  background-image: url("/assets/welcome/campus-threshold-1680.webp");
}

.staff-auth-visual-staff {
  background-image: url("/assets/welcome/campus-library-1680.webp");
}

.staff-auth-visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 15, 0.82), rgba(7, 12, 15, 0.2)),
    linear-gradient(180deg, rgba(7, 12, 15, 0.44), transparent 42%, rgba(7, 12, 15, 0.82));
}

.staff-auth-brand,
.staff-auth-visual-copy {
  position: relative;
  z-index: 1;
}

.staff-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.staff-auth-brand img {
  width: 42px;
  height: 50px;
  filter: grayscale(1) brightness(0) invert(1);
}

.staff-auth-brand span {
  display: grid;
}

.staff-auth-brand strong {
  font-size: 17px;
  font-weight: 700;
}

.staff-auth-brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.staff-auth-visual-copy {
  display: grid;
  gap: 13px;
  max-width: 600px;
}

.staff-auth-visual-copy strong {
  font-size: clamp(34px, 3.3vw, 47px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.staff-auth-visual-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.8;
}

.staff-auth-visual-copy::after {
  width: 42px;
  height: 3px;
  margin-top: 5px;
  content: "";
  background: #5b84ff;
}

.staff-auth-visual-staff .staff-auth-visual-copy::after {
  background: #49ca80;
}

.staff-auth-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 72px clamp(38px, 7vw, 110px);
  background: #f9fafb;
}

.staff-auth-back {
  position: absolute;
  top: 32px;
  left: clamp(28px, 5vw, 72px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #616b75;
  font-size: 13px;
  font-weight: 620;
}

.staff-auth-back svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.staff-auth-form-wrap {
  width: min(420px, 100%);
}

.staff-auth-heading > span {
  color: #356df3;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.staff-auth-heading h1 {
  margin: 12px 0 0;
  color: #111820;
  font-size: 36px;
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.staff-auth-heading p {
  margin: 11px 0 0;
  color: #68727d;
  font-size: 15px;
  line-height: 1.65;
}

.staff-auth-form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.staff-auth-form .field {
  gap: 8px;
}

.staff-auth-form .field > label {
  color: #3d4853;
  font-size: 13px;
  font-weight: 660;
}

.staff-auth-form .input {
  min-height: 48px;
  border-color: #cfd6dd;
  border-radius: 6px;
  background: #fff;
}

.staff-auth-form .input:focus {
  border-color: #356df3;
  box-shadow: 0 0 0 3px rgba(53, 109, 243, 0.14);
}

.staff-auth-form .auth-password-row {
  grid-template-columns: minmax(0, 1fr) 62px;
}

.staff-auth-form .auth-password-row .button {
  min-height: 48px;
  border-radius: 6px;
}

.staff-auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding-inline: 18px;
  border-radius: 6px;
  background: #245fc4;
}

.staff-auth-submit svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.staff-auth-help {
  margin: 18px 0 0;
  color: #7b858f;
  font-size: 12px;
  line-height: 1.65;
}

.staff-auth-form-wrap > .notice {
  margin-top: 22px;
}

.staff-auth-resend {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  background: #fff;
}

.staff-auth-resend span {
  color: #68727d;
  font-size: 12px;
  line-height: 1.55;
}

.staff-auth-resend .button {
  min-height: 42px;
  border-radius: 6px;
}

.welcome-page button:focus-visible,
.welcome-page a:focus-visible,
.staff-auth-page button:focus-visible,
.staff-auth-page a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.staff-auth-page .staff-auth-panel button:focus-visible,
.staff-auth-page .staff-auth-panel a:focus-visible {
  outline-color: #356df3;
}

@keyframes welcome-drift {
  from {
    transform: scale(1.025);
  }
  to {
    transform: scale(1.065);
  }
}

@media (max-width: 980px) {
  .welcome-role {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    gap: 12px;
    padding-inline: 15px;
  }

  .welcome-role-icon,
  .welcome-role-icon svg {
    width: 38px;
    height: 38px;
  }

  .welcome-role-copy strong {
    font-size: 15px;
  }

  .welcome-record-grid,
  .welcome-collaboration-grid {
    gap: 42px;
  }

  .welcome-record-steps strong {
    font-size: 11px;
  }

  .welcome-collaboration-map::before {
    right: 3%;
    left: 3%;
  }

  .staff-auth-shell {
    grid-template-columns: minmax(320px, 0.78fr) minmax(440px, 1.22fr);
  }
}

@media (max-width: 720px) {
  :root {
    --welcome-header-height: 74px;
  }

  .welcome-section-inner {
    width: min(100% - 40px, 620px);
  }

  .welcome-hero {
    height: auto;
    min-height: 0;
  }

  .welcome-slide img {
    object-position: 58% center;
  }

  .welcome-contrast {
    background:
      linear-gradient(180deg, rgba(5, 9, 12, 0.67) 0%, rgba(5, 9, 12, 0.24) 33%, rgba(5, 9, 12, 0.93) 69%, rgba(5, 9, 12, 0.98) 100%),
      linear-gradient(90deg, rgba(5, 9, 12, 0.58) 0%, transparent 82%);
  }

  .welcome-header {
    padding: 12px 20px;
  }

  .welcome-brand {
    gap: 9px;
  }

  .welcome-brand img {
    width: 34px;
    height: 42px;
  }

  .welcome-brand strong {
    font-size: 15px;
  }

  .welcome-brand small {
    display: none;
  }

  .welcome-motion-controls {
    gap: 0;
  }

  .welcome-slide-dots {
    gap: 10px;
  }

  .welcome-slide-dots button,
  .welcome-slide-dots button.is-active {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.68);
    border-radius: 50%;
  }

  .welcome-slide-dots button.is-active {
    background: var(--welcome-blue);
  }

  .welcome-motion-toggle {
    display: none;
  }

  .welcome-hero-inner {
    display: block;
    height: auto;
    padding: 102px 20px 20px;
  }

  .welcome-copy {
    margin-bottom: 24px;
  }

  .welcome-copy h1 {
    max-width: 350px;
    font-size: clamp(34px, 9.8vw, 43px);
    line-height: 1.23;
  }

  .welcome-mobile-break {
    display: block;
  }

  .welcome-desktop-break {
    display: none;
  }

  .welcome-copy p {
    max-width: 350px;
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.75;
  }

  .welcome-accent {
    width: 36px;
    margin-top: 16px;
  }

  .welcome-role-dock {
    grid-template-columns: 1fr;
    border-right: 0;
    border-left: 0;
  }

  .welcome-role {
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    gap: 14px;
    min-height: 67px;
    padding: 8px;
  }

  .welcome-role + .welcome-role {
    border-top: 1px solid var(--welcome-line);
    border-left: 0;
  }

  .welcome-role-icon,
  .welcome-role-icon svg {
    width: 42px;
    height: 42px;
  }

  .welcome-role-copy strong {
    font-size: 16px;
  }

  .welcome-role-copy small {
    margin-top: 3px;
    font-size: 12px;
  }

  .welcome-role-arrow {
    width: 16px;
    height: 16px;
  }

  .welcome-section-kicker {
    margin-bottom: 14px;
    font-size: 11px;
  }

  .welcome-section-copy h2,
  .welcome-showcase-copy h2 {
    font-size: 30px;
    line-height: 1.35;
  }

  .welcome-record .welcome-section-copy h2 br,
  .welcome-collaboration .welcome-section-copy h2 br {
    display: none;
  }

  .welcome-showcase-copy h2 {
    max-width: none;
  }

  .welcome-showcase-break {
    display: block;
  }

  .welcome-section-copy > p:last-child,
  .welcome-showcase-copy > p:last-child {
    max-width: none;
    margin-top: 13px;
    font-size: 14px;
    line-height: 1.8;
  }

  .welcome-record {
    padding: 40px 0 32px;
  }

  .welcome-record-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .welcome-record-steps {
    grid-template-columns: 1fr;
  }

  .welcome-record-steps::before {
    top: 24px;
    bottom: 24px;
    left: 23px;
    width: 1px;
    height: auto;
  }

  .welcome-record-steps::after {
    top: 24px;
    left: 23px;
    width: 2px;
    height: 40%;
  }

  .welcome-record-steps li {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 0 16px;
    align-items: center;
    min-height: 61px;
    text-align: left;
  }

  .welcome-record-icon {
    grid-row: 1;
    grid-column: 1;
    width: 46px;
    height: 46px;
  }

  .welcome-record-icon svg {
    width: 21px;
    height: 21px;
  }

  .welcome-record-steps strong {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
    font-size: 16px;
  }

  .welcome-record-steps small {
    grid-row: 1;
    grid-column: 3;
    margin: 0;
    font-size: 10px;
  }

  .welcome-record-line {
    margin-top: 22px;
    font-size: 24px;
  }

  .welcome-showcase {
    padding: 38px 0 34px;
  }

  .welcome-showcase-body {
    grid-template-columns: minmax(112px, 0.74fr) minmax(0, 1.26fr);
    gap: 15px;
    align-items: end;
    margin-top: 10px;
  }

  .welcome-device-stage {
    grid-row: 1;
    grid-column: 2;
    height: 260px;
  }

  .welcome-desktop-shot {
    bottom: 8px;
    left: -4px;
    width: 112%;
    padding: 4px 4px 8px;
    border-radius: 7px 7px 2px 2px;
  }

  .welcome-desktop-shot::after {
    height: 5px;
  }

  .welcome-phone-shot {
    right: -2px;
    bottom: 14px;
    width: 44%;
    padding: 4px;
    border-radius: 16px;
  }

  .welcome-phone-shot img {
    border-radius: 12px;
  }

  .welcome-showcase-features {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
  }

  .welcome-showcase-features li {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 9px;
    min-height: 54px;
    font-size: 11px;
    line-height: 1.6;
  }

  .welcome-showcase-features svg {
    width: 23px;
    height: 23px;
  }

  .welcome-collaboration {
    padding: 32px 0 24px;
  }

  .welcome-collaboration-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .welcome-collaboration-map {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    height: auto;
    padding-left: 28px;
  }

  .welcome-collaboration-map::before {
    inset: 53px auto 32px 9px;
    width: 1px;
    border: 0;
    border-left: 1px solid #b9c1ca;
    border-radius: 0;
  }

  .welcome-collaboration-core {
    position: static;
    width: calc(100% - 24px);
    min-height: 30px;
    margin: 0 0 4px 24px;
    font-size: 13px;
    transform: none;
  }

  .welcome-collaboration-role {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 48px 72px minmax(0, 1fr);
    min-height: 58px;
    padding: 6px 11px;
    background: #fff;
    border: 1px solid #dce2e8;
    border-radius: 9px;
    transform: none;
  }

  .welcome-collaboration-role::before {
    position: absolute;
    top: 50%;
    left: -21px;
    width: 8px;
    height: 8px;
    content: "";
    background: #fff;
    border: 1px solid #6d7580;
    border-radius: 50%;
    transform: translateY(-50%);
  }

  .welcome-collaboration-role strong {
    align-self: center;
    font-size: 16px;
  }

  .welcome-collaboration-role small {
    grid-row: 1;
    grid-column: 3;
    align-self: center;
    margin: 0;
    font-size: 11px;
    white-space: normal;
  }

  .welcome-person-icon {
    grid-row: 1;
    grid-column: 1;
    width: 44px;
    height: 44px;
    border: 0;
    box-shadow: none;
  }

  .welcome-person-icon svg {
    width: 29px;
    height: 29px;
  }

  .welcome-collaboration-note {
    width: min(100% - 40px, 620px);
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
  }

  .welcome-closing {
    padding-top: 24px;
  }

  .welcome-closing h2 {
    font-size: 21px;
    line-height: 1.45;
  }

  .welcome-closing-links {
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .welcome-closing-links a {
    min-height: 42px;
    padding: 0;
  }

  .welcome-closing-links a + a {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .welcome-footer {
    min-height: 44px;
  }

  .staff-auth-shell {
    display: block;
    min-height: 100vh;
  }

  .staff-auth-visual {
    min-height: 220px;
    padding: 22px 22px 29px;
  }

  .staff-auth-visual-admin {
    background-image: url("/assets/welcome/campus-threshold-960.webp");
  }

  .staff-auth-visual-staff {
    background-image: url("/assets/welcome/campus-library-960.webp");
  }

  .staff-auth-brand img {
    width: 34px;
    height: 40px;
  }

  .staff-auth-visual-copy {
    margin-top: 42px;
  }

  .staff-auth-visual-copy strong {
    font-size: 27px;
    line-height: 1.3;
  }

  .staff-auth-visual-copy p {
    display: none;
  }

  .staff-auth-visual-copy::after {
    width: 36px;
    margin-top: 1px;
  }

  .staff-auth-panel {
    display: block;
    min-height: calc(100vh - 220px);
    padding: 68px 22px 42px;
  }

  .staff-auth-back {
    top: 23px;
    left: 22px;
  }

  .staff-auth-heading h1 {
    font-size: 30px;
  }
}

@media (max-width: 390px) {
  .welcome-showcase-body {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .welcome-device-stage {
    height: 282px;
  }

  .welcome-showcase-features li {
    font-size: 10px;
  }

  .welcome-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }
}

@media (max-height: 650px) and (max-width: 720px) {
  .welcome-hero-inner {
    padding-top: 110px;
  }

  .welcome-copy h1 {
    font-size: 32px;
  }

  .welcome-role {
    min-height: 67px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .welcome-slide,
  .welcome-backdrop,
  .welcome-role,
  .welcome-role-arrow,
  .welcome-slide-dots button {
    transition: none;
  }

  .welcome-slide.is-active img {
    animation: none;
  }
}
