:root {
  color-scheme: light;
  --paper: #f4f3f6;
  --surface: #fff;
  --ink: #202b54;
  --text: #20233b;
  --muted: #555a71;
  --line: #dddfeb;
  --violet: #a89bc7;
  --blue: #2d4a8f;
  --tint: #eeecf5;
  --signal: #d8f38d;
  --error: #9b303c;
  --success: #246447;
  --measure: 69rem;
  font: 16px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Arial,sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 0; margin: 0; color: var(--text); background: var(--paper); }
a { color: inherit; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
p, h1, h2 { margin: 0; }
:focus-visible { outline: 3px solid #667dc9; outline-offset: 4px; }
.masthead, .site-foot {
  width: min(var(--measure), calc(100% - 3rem));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.masthead { min-height: 4.6rem; gap: 1rem; border-bottom: 1px solid var(--line); }
.wordmark, .masthead-actions { display: flex; align-items: center; gap: .7rem; }
.wordmark { font-size: .94rem; font-weight: 720; text-decoration: none; white-space: nowrap; color: var(--ink); }
.brand-icon {
  display: inline-grid;
  width: 2.38rem;
  height: 2.38rem;
  align-items: center;
  justify-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: .68rem;
  letter-spacing: .055em;
  font-weight: 800;
}
.text-link { text-decoration-thickness: 1px; text-underline-offset: .25em; }
.nav-link { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.nav-link:hover { color: var(--blue); }
.site-foot {
  min-height: 4.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .83rem;
}
.student-kiosk {
  width: min(var(--measure), calc(100% - 3rem));
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  margin: clamp(1.35rem, 6vh, 4rem) auto;
  min-height: clamp(31rem, 68vh, 36rem);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid #d8dbea;
  background: var(--surface);
  box-shadow: 0 1.25rem 4rem #202b5414;
}
.intro {
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3.5rem;
  padding: clamp(1.7rem, 4.7vw, 4rem);
  background:
    radial-gradient(ellipse at 88% 82%, #4a589e 0, transparent 56%),
    linear-gradient(130deg, #202b54 24%, #27396e 65%, #342d62);
  color: #fff;
}
.intro-copy, .intro-foot { position: relative; z-index: 1; }
.overline { font-size: .78rem; letter-spacing: .13em; font-weight: 720; color: var(--blue); }
.intro .overline { color: #d9d9ee; }
.intro h1 {
  margin: 1.15rem 0 1.1rem;
  font-size: clamp(3.2rem, 6.65vw, 6rem);
  font-weight: 770;
  line-height: 1.08;
  letter-spacing: -.065em;
}
.intro h1 span { display: block; }
.intro-note { max-width: 20rem; color: #f0eff8; line-height: 1.75; }
.intro-foot {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: max-content;
  color: #e6e4f3;
  font-size: .88rem;
}
.intro-foot span { width: .27rem; height: .27rem; border-radius: 50%; background: var(--signal); }
.orbital {
  position: absolute;
  right: clamp(-15rem, -17vw, -6.5rem);
  bottom: -11rem;
  width: clamp(20rem, 42vw, 37rem);
  aspect-ratio: 1;
  border: 1px solid #c4c7ff42;
  border-radius: 50%;
  box-shadow: 0 0 0 1.45rem #a89bc712, 0 0 0 4.1rem #a89bc710, 0 0 0 7.5rem #aac4ff12;
  transform: rotate(-26deg);
  background: radial-gradient(circle at 42% 25%, #a88dce90 0, #8da7ff1d 30%, #15142e30 68%);
}
.orbital::before, .orbital::after, .orbital span { position: absolute; border-radius: 50%; }
.orbital::before { content: ""; inset: 2% 25%; border: 1px solid #c4c7ff53; }
.orbital::after { content: ""; inset: 27% 0; border: 1px solid #c4c7ff53; }
.orbital span:nth-child(1) { inset: 0 11%; border: 1px solid #c4c7ff39; }
.orbital span:nth-child(2) { inset: 14% 0; border: 1px solid #c4c7ff39; }
.orbital span:nth-child(3) {
  width: .56rem;
  height: .56rem;
  background: var(--signal);
  top: 16%;
  left: 14%;
  box-shadow: 0 0 1.1rem #d8f38daa, 0 0 0 .3rem #d8f38d22;
}
.login-sheet { align-self: center; min-width: 0; padding: clamp(1.7rem, 4.65vw, 4rem); }
.login-sheet h2 { color: var(--ink); font-size: clamp(1.63rem, 3.25vw, 2.3rem); line-height: 1.2; letter-spacing: -.035em; }
.subtle { color: var(--muted); font-size: .91rem; }
.leading-note { margin: .65rem 0 1.3rem; }
.form-stack, .signed-actions { display: grid; gap: .45rem; }
.form-stack label, .approve-form label, .list-tools label { font-size: .89rem; color: var(--ink); font-weight: 650; }
input {
  width: 100%;
  min-width: 0;
  min-height: 2.82rem;
  padding: .58rem .72rem;
  border: 1px solid #c5c9da;
  border-radius: .55rem;
  color: var(--text);
  background: #fff;
}
input::placeholder { color: #686f85; }
.button {
  min-height: 2.78rem;
  min-width: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .52rem .85rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font-size: .91rem;
  font-weight: 680;
  line-height: 1.26;
  text-align: center;
  text-decoration: none;
}
.button.primary { color: #fff; background: var(--ink); border-color: var(--ink); }
.button.primary:not(:disabled):hover { background: var(--blue); border-color: var(--blue); }
.button.secondary { color: var(--ink); background: #fff; border-color: #c4cadc; }
.button.secondary:not(:disabled):hover { background: #f0f2fa; border-color: var(--blue); }
.button.danger { color: #8d2b39; border-color: #e5c8cd; background: #fff; }
.button.danger:not(:disabled):hover { background: #fff1f3; border-color: #b66471; }
.button.small { font-size: .84rem; min-height: 2.53rem; padding: .44rem .62rem; }
.button:disabled { cursor: default; opacity: .68; }
.form-stack .button { margin-top: .28rem; }
#request-form.is-verifying .button {
  min-height: 2.45rem;
  justify-self: start;
  background: #fff;
  color: var(--ink);
  border-color: #c4cadc;
  margin-top: 0;
}
.verification { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .95rem; }
#login-code { letter-spacing: .14em; font-variant-numeric: tabular-nums; }
#login-code::placeholder { letter-spacing: normal; }
.form-message { color: var(--success); font-size: .88rem; overflow-wrap: anywhere; }
.form-message:not(:empty) { margin-top: .74rem; }
.form-message[data-kind="error"] { color: var(--error); }
.admin-shell { width: min(var(--measure), calc(100% - 3rem)); margin: 2.15rem auto 3.1rem; min-height: 64vh; }
.admin-title { margin-bottom: 1.4rem; }
.admin-title h1 {
  color: var(--ink);
  font-weight: 755;
  font-size: clamp(2.25rem, 5vw, 3.7rem);
  letter-spacing: -.045em;
  line-height: 1.17;
  margin: .17rem 0 .42rem;
}
.admin-message:not(:empty) { margin: 0 0 1rem; }
.dashboard { display: grid; grid-template-columns: 1.42fr 1fr; gap: .95rem; align-items: start; }
.dashboard-side { min-width: 0; display: grid; gap: .95rem; }
.surface {
  min-width: 0;
  padding: clamp(1rem, 2.4vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--surface);
  box-shadow: 0 8px 22px #202b5408;
}
.surface h2 { color: var(--ink); font-size: 1.22rem; line-height: 1.25; }
.surface-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .58rem;
  margin-bottom: .8rem;
}
.surface-head .subtle { margin-top: .25rem; }
.admin-login { width: min(100%, 26rem); }
.admin-login .form-stack { margin-top: .85rem; }
.approve-form {
  display: grid;
  gap: .34rem;
  margin: .25rem 0 1rem;
  padding: .8rem;
  background: #f3f2fa;
  border-radius: .6rem;
}
.inline-form { display: flex; gap: .4rem; align-items: center; }
.inline-form .button { flex: none; white-space: nowrap; }
.list-tools { display: grid; grid-template-columns: auto minmax(0, 14rem); gap: .58rem; align-items: center; margin-bottom: .38rem; }
.list-tools input { font-size: .9rem; min-height: 2.5rem; padding: .41rem .55rem; }
.member-list, .audit-list, .outbox-list { list-style: none; margin: 0; padding: 0; }
.member-item, .audit-item, .outbox-item { border-top: 1px solid var(--line); padding: .72rem 0; }
.member-item, .outbox-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: .48rem;
  align-items: center;
}
.member-name, .outbox-email { color: var(--ink); font-size: .92rem; font-weight: 660; overflow-wrap: anywhere; }
.member-info, .audit-date, .outbox-meta { color: var(--muted); font-size: .82rem; line-height: 1.45; overflow-wrap: anywhere; }
.member-label, .event-tag { width: max-content; max-width: 100%; color: #413a65; font-weight: 650; font-size: .79rem; }
.member-label { display: inline-block; padding: .09rem .39rem; margin: .2rem .36rem .25rem 0; border-radius: .26rem; background: #ece9f5; }
.member-label[data-state="active"] { background: #e5f3e9; color: #235c3d; }
.member-label[data-state="revoked"] { background: #f1e6e9; color: #85333c; }
.audit-name { color: var(--text); font-size: .87rem; font-weight: 620; overflow-wrap: anywhere; }
.audit-info { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.audit-item[data-warning="true"] .event-tag { color: #973344; }
.audit-item[data-warning="true"] { border-left: 2px solid #c0808c; padding-left: .62rem; }
.outbox-code { color: var(--ink); font-weight: 730; letter-spacing: .12em; font-size: 1.28rem; user-select: all; }
.empty-note { border-top: 1px solid var(--line); padding-top: .72rem; color: var(--muted); font-size: .88rem; }
@media (max-width: 49rem) {
  .student-kiosk { grid-template-columns: minmax(0,1fr); }
  .intro { gap: 1.2rem; padding: 1.4rem 1.5rem; }
  .intro h1 { margin: .52rem 0 .42rem; font-size: clamp(2.22rem,8vw,3.65rem); letter-spacing: -.04em; }
  .intro h1 span { display: inline; }
  .intro-note { max-width: 23rem; font-size: .91rem; }
  .orbital { right: -10rem; bottom: -13rem; }
  .login-sheet { padding: 1.45rem 1.5rem 1.65rem; }
  .dashboard { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 25rem) {
  .student-kiosk, .masthead, .site-foot, .admin-shell { width: calc(100% - 1.5rem); }
  .masthead { min-height: 3.7rem; }
  .masthead-actions { gap: .38rem; }
  .student-kiosk { margin-block: 1rem; }
  .intro, .login-sheet { padding-inline: 1rem; }
  .inline-form { flex-wrap: wrap; }
  .inline-form .button { width: 100%; }
  .list-tools { display: block; }
  .list-tools input { display: block; margin-top: .3rem; }
}
