:root {
  --ink: #152741;
  --blue: #164dcc;
  --muted: #607089;
  --line: #dce3ee;
  --bg: #f3f6fc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #ffba47;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
p {
  color: var(--muted);
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  min-height: 92px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px max(24px, calc((100vw - 1200px) / 2));
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  line-height: 1.3;
}
.brandmark {
  background: var(--blue);
  color: white;
  padding: 12px 9px;
  border-radius: 12px;
  font-size: 19px;
  letter-spacing: -1px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-top: 5px;
}
.pilot {
  margin-left: auto;
  background: #edf2ff;
  color: var(--blue);
  border: 1px solid #d7e2ff;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 14px;
}
.signout {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 24px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}
.teacher {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 15px;
  font-size: 14px;
  max-width: 280px;
  overflow-wrap: anywhere;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.stats > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  column-gap: 12px;
}
.stats svg {
  grid-row: span 2;
  align-self: center;
  color: var(--blue);
}
.stats strong {
  font-size: 26px;
  line-height: 1.2;
}
.stats span {
  font-size: 14px;
  color: var(--muted);
}
.workgrid {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 5px 24px #15274104;
}
.sectiontitle {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sectiontitle h2 {
  margin: 0;
}
.create .sectiontitle {
  justify-content: start;
}
.create p {
  font-size: 14px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 9px;
  border: 1px solid #c9d3e3;
  background: white;
  color: var(--ink);
  margin-bottom: 16px;
  outline-color: var(--blue);
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 14px;
  min-height: 46px;
}
.primary {
  background: var(--blue);
  color: white;
  border: 1px solid var(--blue);
  width: 100%;
}
.primary:hover:enabled {
  background: #123da1;
}
.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid #c9d3e3;
}
.secondary:hover {
  background: #f2f5fb;
}
.testfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}
.testfacts span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.footnote {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 20px;
}
.linkbox {
  padding: 16px;
  background: #f1f5ff;
  border-radius: 10px;
  margin-top: 20px;
}
.linkbox input {
  font-size: 14px;
}
.linkbox .secondary {
  width: 100%;
}
.textbutton {
  background: none;
  border: 0;
  color: var(--blue);
  font-size: 14px;
  padding: 7px;
}
.empty {
  text-align: center;
  padding: 64px 10px;
}
.empty svg {
  color: var(--blue);
  margin: 0 auto 18px;
}
.empty p {
  max-width: 300px;
  margin: auto;
  font-size: 14px;
}
.studentrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid #e8edf5;
}
.studentrow p {
  font-size: 13px;
  margin: 3px 0 9px;
}
.badge {
  display: inline-block;
  border-radius: 6px;
  background: #edf1f8;
  color: #4d617d;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
}
.badge.complete {
  background: #e1f4eb;
  color: #167348;
}
.badge.live {
  background: #ffedf0;
  color: #b01b37;
}
.iconbutton {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 12px;
  color: var(--blue);
}
.dashboardnote {
  font-size: 13px;
  margin: 24px 0;
}
.alert,
.notice {
  padding: 14px 18px;
  border-radius: 10px;
  margin: 16px 0;
  font-size: 14px;
}
.alert {
  background: #fff0f0;
  color: #a82138;
  border: 1px solid #f6ced5;
}
.notice {
  background: #eaf5ef;
  color: #176344;
}
.modalbackdrop {
  position: fixed;
  inset: 0;
  background: #11243dbb;
  display: flex;
  justify-content: center;
  align-items: start;
  padding: 32px;
  overflow: auto;
  z-index: 10;
}
.review {
  width: 960px;
  max-width: 100%;
}
.reviewgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.review video {
  width: 100%;
  border-radius: 12px;
  background: #13253f;
  margin-bottom: 16px;
}
.rubricnote {
  font-size: 14px;
  color: var(--muted);
  background: #f4f6fc;
  padding: 16px;
  border-radius: 10px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 15px;
}
legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.scorebuttons {
  display: flex;
  gap: 8px;
}
.scorebuttons button {
  flex: 1;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  min-height: 42px;
}
.scorebuttons button.chosen {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.scoretotal {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.scoretotal strong {
  font-size: 26px;
}
.scoretotal span {
  color: var(--muted);
  font-size: 14px;
}
.error {
  color: #a82138;
}
.studentmain {
  max-width: 1060px;
  margin: auto;
  padding: 40px 24px;
}
.studentname {
  margin-bottom: 25px;
}
.studentgrid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: start;
}
.cameracard {
  padding: 16px;
}
.videowrap {
  aspect-ratio: 4/3;
  background: #13253f;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.videowrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.cameraplace {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #bac8de;
  gap: 20px;
  text-align: center;
  padding: 24px;
  font-size: 14px;
}
.recordbadge {
  position: absolute;
  top: 15px;
  left: 15px;
  color: white;
  background: #b3263b;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.micbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  color: var(--muted);
  font-size: 12px;
}
.meter {
  width: 55px;
  height: 7px;
  background: #e1e7f0;
  border-radius: 6px;
  overflow: hidden;
}
.meter > div {
  height: 100%;
  width: 0;
  background: #178452;
}
.cameracard > .secondary {
  width: 100%;
}
.instruction h2 {
  font-size: 1.65rem;
  margin-top: 20px;
}
.instruction ol {
  padding-left: 22px;
  color: var(--muted);
  margin: 20px 0;
}
.instruction li {
  margin-bottom: 12px;
}
.consent {
  font-weight: 400;
  display: flex;
  gap: 10px;
  font-size: 13px;
  align-items: start;
  margin: 24px 0;
}
.consent input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--blue);
}
.expiry {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  font-size: 13px;
  color: var(--muted);
}
.countdown {
  font-size: 3.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--blue);
  margin-top: 16px;
  line-height: 1.2;
}
.countdown small {
  display: block;
  font-size: 13px;
  letter-spacing: normal;
  color: var(--muted);
  font-weight: 400;
  margin-top: 7px;
}
.questions {
  padding-left: 20px;
  color: var(--muted);
  margin: 20px 0 28px;
}
.questions li {
  margin-bottom: 10px;
}
.statecard {
  text-align: center;
  max-width: 600px;
  margin: 28px auto;
  padding: 46px 28px;
}
.statecard svg {
  margin: 0 auto 22px;
  color: var(--blue);
}
.statecard .successicon {
  color: #178452;
}
.statecard .primary {
  max-width: 300px;
}
.studentfooter {
  text-align: center;
  font-size: 12px;
  margin-top: 28px;
}
.spinner {
  height: 40px;
  width: 40px;
  border: 4px solid #dce6ff;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 850px) {
  .heading {
    display: block;
  }
  .teacher {
    margin: 20px 0;
  }
  .workgrid {
    grid-template-columns: 1fr;
  }
  .studentgrid {
    grid-template-columns: 1fr;
  }
  .reviewgrid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 8px;
  }
  .stats > div {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .stats svg {
    width: 20px;
  }
  .stats span {
    font-size: 12px;
  }
  .topbar {
    padding: 15px 20px;
    gap: 10px;
  }
  .signout {
    font-size: 0;
  }
  .signout svg {
    width: 20px;
  }
  .pilot {
    font-size: 12px;
  }
  .dashboard,
  .studentmain {
    padding: 28px 18px;
  }
  .card {
    padding: 20px;
  }
  .cameracard {
    padding: 12px;
  }
  .modalbackdrop {
    padding: 12px;
  }
  .studentrow {
    align-items: start;
  }
  .studentrow .secondary {
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .brand {
    font-size: 14px;
  }
  .brand small {
    font-size: 9px;
  }
  .brandmark {
    font-size: 17px;
  }
}
