:root {
  --navy-950: #07182f;
  --navy-900: #0b2344;
  --navy-800: #10315e;
  --navy-700: #164479;
  --gold-500: #d8a62b;
  --gold-400: #edc258;
  --gold-100: #fff6d8;
  --green-600: #16845b;
  --green-100: #e8f8f1;
  --red-600: #c83c4a;
  --red-100: #fff0f1;
  --ink-900: #15243a;
  --ink-700: #42516a;
  --ink-500: #6d7a8f;
  --line: #dfe5ed;
  --surface: #ffffff;
  --canvas: #f4f7fb;
  --shadow-sm: 0 10px 30px rgba(16, 39, 72, 0.08);
  --shadow-lg: 0 30px 70px rgba(4, 19, 40, 0.22);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  color-scheme: light;
  font-family: "Cairo", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink-900);
  background: var(--canvas);
  font-family: "Cairo", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--navy-950);
  background: var(--gold-400);
  font-weight: 800;
  transform: translateY(-150%);
}

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

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  padding-block: 22px;
  color: #fff;
}

.header-content,
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: block;
  width: 78px;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgba(103, 231, 255, 0.48);
  border-radius: 14px;
  background: #155898;
  box-shadow: 0 0 18px rgba(87, 227, 255, 0.16);
}

.brand-mark img,
.mini-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  text-align: right;
}

.brand-copy strong,
.footer-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-copy small,
.footer-brand small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ed89d;
  box-shadow: 0 0 0 5px rgba(78, 216, 157, 0.12);
}

.hero {
  position: relative;
  min-height: 770px;
  padding-block: 138px 84px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 17% 22%, rgba(216, 166, 43, 0.14), transparent 25%),
    linear-gradient(126deg, var(--navy-950) 0%, var(--navy-900) 48%, #0c2c54 100%);
}

.hero::before {
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  content: "";
  background: linear-gradient(to bottom, transparent, rgba(4, 17, 34, 0.24));
}

.hero-orb {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.hero-orb-one {
  width: 440px;
  height: 440px;
  inset-block-start: -185px;
  inset-inline-end: -80px;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.018);
}

.hero-orb-two {
  width: 300px;
  height: 300px;
  inset-block-end: -160px;
  inset-inline-start: 7%;
  box-shadow: 0 0 0 80px rgba(216, 166, 43, 0.025);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: 76px;
  align-items: center;
}

.hero-copy {
  padding-block: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--gold-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow.dark {
  color: var(--gold-500);
}

.hero h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.hero h1 span {
  display: block;
  color: var(--gold-400);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: -0.02em;
}

.hero-description {
  max-width: 580px;
  margin: 24px 0 28px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.teacher-card {
  display: flex;
  width: min(100%, 390px);
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.teacher-avatar {
  flex: 0 0 50px;
  height: 50px;
  overflow: hidden;
  border: 2px solid rgba(237, 194, 88, 0.68);
  border-radius: 15px;
  background: rgba(216, 166, 43, 0.12);
}

.teacher-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.teacher-card div:nth-child(2) {
  display: grid;
  min-width: 0;
}

.teacher-card span,
.teacher-card small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.teacher-card strong {
  color: #fff;
  font-size: 14px;
}

.teacher-card small {
  font-family: Georgia, serif;
  letter-spacing: 0.04em;
}

.verified-badge {
  display: grid;
  width: 26px;
  height: 26px;
  margin-inline-start: auto;
  place-items: center;
  border-radius: 50%;
  color: var(--navy-950);
  background: var(--gold-400);
  font-size: 13px;
  font-weight: 900;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.hero-stats div {
  display: grid;
  gap: 2px;
}

.hero-stats strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}

.hero-stats .stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.13);
}

.start-card {
  position: relative;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: var(--radius-lg);
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
}

.start-card::before {
  position: absolute;
  inset: 0 28px auto;
  height: 4px;
  content: "";
  border-radius: 0 0 5px 5px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.card-heading {
  margin-bottom: 28px;
}

.step-label {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--navy-800);
  background: #edf3fa;
  font-size: 10px;
  font-weight: 800;
}

.card-heading h2 {
  margin: 10px 0 2px;
  color: var(--navy-950);
  font-size: 27px;
  line-height: 1.35;
}

.card-heading p {
  margin: 0;
  color: var(--ink-500);
  font-size: 12px;
}

.field-group {
  margin-bottom: 18px;
}

.field-group label,
.label-line {
  display: flex;
  margin-bottom: 7px;
  align-items: center;
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 700;
}

.label-line {
  justify-content: space-between;
}

.label-line label {
  margin: 0;
}

.label-line span {
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.input-shell,
.select-shell {
  position: relative;
}

.input-shell input,
.select-shell select {
  width: 100%;
  height: 49px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--ink-900);
  background: #fbfcfe;
  font-size: 12px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.input-shell input {
  padding: 0 44px 0 14px;
}

.select-shell select {
  padding: 0 13px 0 38px;
  appearance: none;
}

.select-shell::after {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 15px;
  width: 7px;
  height: 7px;
  content: "";
  border: solid var(--ink-500);
  border-width: 0 0 2px 2px;
  pointer-events: none;
  transform: translateY(-70%) rotate(-45deg);
}

.input-shell input:focus,
.select-shell select:focus {
  border-color: var(--navy-700);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 68, 121, 0.1);
}

.input-shell input::placeholder {
  color: #a6afbd;
}

.select-shell select:disabled {
  color: #9ba5b4;
  background: #f2f4f7;
  cursor: not-allowed;
}

.field-icon {
  position: absolute;
  z-index: 1;
  inset-block-start: 50%;
  inset-inline-start: 14px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  color: var(--navy-700);
  background: #eaf0f8;
  font-size: 11px;
  font-weight: 800;
  transform: translateY(-50%);
}

.phone-icon {
  font-size: 10px;
}

.field-error,
.field-hint {
  min-height: 16px;
  margin: 4px 2px 0;
  font-size: 9px;
}

.field-error {
  color: var(--red-600);
  font-weight: 600;
}

.field-hint {
  color: var(--ink-500);
}

.field-group.has-error input,
.field-group.has-error select {
  border-color: var(--red-600);
  background: var(--red-100);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 0;
  color: var(--ink-700);
  font-size: 10px;
  cursor: pointer;
}

.consent-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.custom-checkbox {
  display: grid;
  flex: 0 0 19px;
  height: 19px;
  place-items: center;
  border: 1px solid #bfc8d6;
  border-radius: 6px;
  color: transparent;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.consent-row input:checked + .custom-checkbox {
  border-color: var(--navy-700);
  color: #fff;
  background: var(--navy-700);
}

.consent-row input:focus-visible + .custom-checkbox {
  outline: 3px solid rgba(22, 68, 121, 0.18);
  outline-offset: 2px;
}

.consent-error {
  margin-inline-start: 28px;
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  box-shadow: 0 10px 22px rgba(11, 35, 68, 0.2);
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.primary-button:hover {
  box-shadow: 0 14px 28px rgba(11, 35, 68, 0.28);
  transform: translateY(-2px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 3px;
}

.button-arrow {
  color: var(--gold-400);
  font-size: 19px;
}

.privacy-note {
  display: flex;
  margin: 12px 0 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-500);
  font-size: 9px;
}

.instructions-section {
  padding-block: 86px 98px;
  background:
    linear-gradient(rgba(11, 35, 68, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 35, 68, 0.018) 1px, transparent 1px),
    var(--canvas);
  background-size: 34px 34px;
}

.section-heading {
  max-width: 570px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 32px;
  line-height: 1.4;
}

.section-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 13px;
}

.instructions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.instruction-card {
  position: relative;
  min-height: 240px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid #e5eaf0;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.instruction-card:hover {
  border-color: #d4dce7;
  box-shadow: 0 16px 36px rgba(16, 39, 72, 0.11);
  transform: translateY(-4px);
}

.instruction-card.featured {
  border-top: 3px solid var(--gold-400);
}

.instruction-number {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 22px;
  color: #eef1f5;
  font-family: Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
}

.instruction-icon {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 15px;
  font-size: 19px;
  font-weight: 800;
}

.instruction-icon.navy {
  color: var(--navy-700);
  background: #eaf0f8;
}

.instruction-icon.gold {
  color: #9a6b00;
  background: var(--gold-100);
}

.instruction-icon.green {
  color: var(--green-600);
  background: var(--green-100);
}

.instruction-card h3 {
  margin: 0 0 8px;
  color: var(--navy-950);
  font-size: 17px;
}

.instruction-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 12px;
}

.site-footer {
  padding-block: 26px;
  color: rgba(255, 255, 255, 0.7);
  background: var(--navy-950);
}

.footer-brand {
  gap: 9px;
}

.footer-brand > span:last-child {
  display: grid;
}

.footer-brand strong {
  font-size: 14px;
}

.footer-brand small {
  font-size: 8px;
}

.mini-mark {
  display: block;
  width: 51px;
  height: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
}

.site-footer p {
  margin: 0;
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 100;
  inset-inline: 50% auto;
  inset-block-end: 24px;
  min-width: min(380px, calc(100% - 32px));
  padding: 13px 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--navy-950);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

::selection {
  color: var(--navy-950);
  background: var(--gold-400);
}

/* Exam experience */
.exam-body {
  min-height: 100vh;
  background: #f2f5f9;
}

.exam-body.modal-open {
  overflow: hidden;
}

.exam-loading,
.exam-error,
.submission-screen {
  display: grid;
  min-height: 100vh;
  padding: 32px;
  place-items: center;
  align-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(216, 166, 43, 0.12), transparent 24%),
    var(--navy-950);
}

.exam-loading[hidden],
.exam-error[hidden],
.submission-screen[hidden],
.exam-app[hidden],
.modal-backdrop[hidden] {
  display: none;
}

.exam-loading img,
.exam-error > img {
  width: 135px;
  aspect-ratio: 3 / 2;
  margin-bottom: 24px;
  border: 1px solid rgba(103, 231, 255, 0.5);
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 0 34px rgba(68, 222, 255, 0.16);
}

.exam-loading strong {
  margin-top: 16px;
  color: #fff;
  font-size: 18px;
}

.exam-loading > span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--gold-400);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.exam-header {
  color: #fff;
  background: var(--navy-950);
}

.exam-header-content {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.exam-brand .brand-mark {
  width: 66px;
  height: 44px;
  border-radius: 12px;
}

.student-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.student-avatar {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 11px;
  color: var(--navy-950);
  background: var(--gold-400);
  font-size: 14px;
  font-weight: 800;
}

.student-identity > span:last-child {
  display: grid;
}

.student-identity small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
}

.student-identity strong {
  max-width: 230px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-overview {
  position: relative;
  padding-block: 28px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 30%, rgba(216, 166, 43, 0.12), transparent 22%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800));
  box-shadow: 0 8px 26px rgba(7, 24, 47, 0.15);
}

.exam-overview-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-weight: 700;
}

.live-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #57d9a1;
  box-shadow: 0 0 0 5px rgba(87, 217, 161, 0.1);
}

.exam-title-block h1 {
  margin: 4px 0 3px;
  font-size: 25px;
  line-height: 1.4;
}

.exam-title-block p {
  display: flex;
  margin: 0;
  flex-wrap: wrap;
  gap: 7px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.timer-card {
  display: flex;
  min-width: 174px;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.timer-card.is-warning {
  border-color: rgba(237, 194, 88, 0.6);
  background: rgba(216, 166, 43, 0.12);
}

.timer-card.is-danger {
  border-color: rgba(255, 110, 123, 0.7);
  background: rgba(200, 60, 74, 0.16);
}

.timer-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: var(--gold-400);
  background: rgba(216, 166, 43, 0.12);
  font-size: 22px;
}

.timer-card > span:last-child {
  display: grid;
}

.timer-card small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
}

.timer-card strong {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 21px;
  letter-spacing: 0.04em;
}

.exam-progress {
  height: 5px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.exam-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  transition: width 260ms ease;
}

.progress-copy {
  display: flex;
  margin-top: 5px;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.47);
  font-size: 9px;
}

.progress-copy strong {
  color: var(--gold-400);
}

.exam-main {
  padding-block: 34px 60px;
}

.exam-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: start;
}

.question-panel,
.question-sidebar {
  border: 1px solid #e2e7ee;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 39, 72, 0.07);
}

.question-panel {
  position: relative;
  min-height: 480px;
  padding: 34px;
}

.autosave-status {
  position: absolute;
  inset-block-start: 22px;
  inset-inline-start: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-600);
  font-size: 9px;
  font-weight: 700;
}

.autosave-status.is-saving {
  color: var(--ink-500);
}

.question-meta {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
  gap: 8px;
}

.question-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--navy-700);
  background: #edf3fa;
  font-size: 9px;
  font-weight: 800;
}

.question-meta span:last-child {
  color: #93680a;
  background: var(--gold-100);
}

.question-panel article {
  outline: none;
}

.question-panel article h2 {
  max-width: 720px;
  margin: 0 0 8px;
  color: var(--navy-950);
  font-size: 23px;
  line-height: 1.6;
}

.question-instruction {
  margin: 0 0 26px;
  color: var(--ink-500);
  font-size: 11px;
}

.answer-options {
  display: grid;
  gap: 11px;
  margin-top: 27px;
}

.answer-option {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 38px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-700);
  background: #fbfcfe;
  text-align: right;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.answer-option:hover {
  border-color: #a9b9cc;
  background: #fff;
  transform: translateX(-2px);
}

.answer-option:focus-visible {
  outline: 3px solid rgba(22, 68, 121, 0.15);
  outline-offset: 2px;
}

.answer-option.is-selected {
  border-color: var(--navy-700);
  color: var(--navy-950);
  background: #edf3fa;
  box-shadow: inset 4px 0 0 var(--gold-400);
}

.option-key {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  color: var(--ink-500);
  background: #fff;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.answer-option.is-selected .option-key {
  border-color: var(--navy-700);
  color: #fff;
  background: var(--navy-700);
}

.option-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #ccd4df;
  border-radius: 50%;
  color: transparent;
  font-size: 10px;
}

.answer-option.is-selected .option-check {
  border-color: var(--green-600);
  color: #fff;
  background: var(--green-600);
}

.fill-answer {
  margin-top: 30px;
}

.fill-answer label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 700;
}

.fill-answer input {
  width: 100%;
  height: 56px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--navy-950);
  background: #fbfcfe;
  font-size: 14px;
}

.fill-answer input:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px rgba(22, 68, 121, 0.1);
}

.ordering-help {
  margin: 22px 0 10px;
  color: var(--ink-500);
  font-size: 10px;
}

.ordering-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.ordering-list li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcfe;
}

.order-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--navy-700);
  font-size: 11px;
  font-weight: 800;
}

.order-controls {
  display: flex;
  gap: 5px;
}

.order-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--navy-700);
  background: #fff;
  font-weight: 800;
}

.order-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.question-media {
  margin: 22px 0;
}

.question-media img {
  display: block;
  max-width: 100%;
  max-height: 300px;
  margin-inline: auto;
  border-radius: 16px;
}

.question-media figcaption {
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 9px;
  text-align: center;
}

.question-audio {
  display: flex;
  margin-block: 22px;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 15px;
  background: #f5f8fc;
}

.question-audio > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--navy-700);
  font-size: 20px;
}

.question-audio > div {
  display: grid;
  flex: 1;
  gap: 7px;
}

.question-audio strong {
  font-size: 11px;
}

.question-audio audio {
  width: 100%;
  height: 34px;
}

.question-actions {
  display: grid;
  grid-template-columns: 120px 1fr 140px;
  margin-top: 36px;
  padding-top: 22px;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #edf0f4;
}

.secondary-button,
.flag-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-700);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.secondary-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.flag-button {
  justify-self: center;
  padding-inline: 14px;
  border-color: transparent;
}

.flag-button.is-flagged {
  color: #9a6b00;
  background: var(--gold-100);
}

.next-button {
  min-height: 44px;
  margin: 0;
  border-radius: 12px;
  font-size: 11px;
}

.question-sidebar {
  position: sticky;
  inset-block-start: 18px;
  padding: 22px;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-heading > div {
  display: grid;
}

.sidebar-heading span {
  color: var(--ink-500);
  font-size: 9px;
}

.sidebar-heading strong {
  color: var(--navy-950);
  font-size: 16px;
}

.question-count {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: var(--navy-700) !important;
  background: #edf3fa;
  font-size: 12px !important;
  font-weight: 800;
}

.question-map {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-block: 20px 16px;
}

.question-map button {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-700);
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}

.question-map button.is-answered {
  border-color: #a5ddc7;
  color: var(--green-600);
  background: var(--green-100);
}

.question-map button.is-current {
  border-color: var(--navy-700);
  color: #fff;
  background: var(--navy-700);
  box-shadow: 0 5px 12px rgba(22, 68, 121, 0.2);
}

.question-map button.is-flagged::after {
  position: absolute;
  inset-block-start: -3px;
  inset-inline-start: -3px;
  width: 8px;
  height: 8px;
  content: "";
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--gold-500);
}

.map-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding-block: 13px;
  border-block: 1px solid #edf0f4;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-500);
  font-size: 8px;
}

.map-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.answered-dot {
  background: var(--green-600);
}

.current-dot {
  background: var(--navy-700);
}

.flagged-dot {
  background: var(--gold-500);
}

.sidebar-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-block: 15px;
  gap: 8px;
}

.sidebar-summary div {
  display: grid;
  padding: 9px;
  border-radius: 11px;
  background: #f5f7fa;
  text-align: center;
}

.sidebar-summary span {
  color: var(--ink-500);
  font-size: 8px;
}

.sidebar-summary strong {
  color: var(--navy-950);
  font-size: 15px;
}

.finish-button {
  width: 100%;
  min-height: 43px;
  padding-inline: 14px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--red-600);
  box-shadow: 0 8px 18px rgba(200, 60, 74, 0.18);
  font-size: 10px;
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(4, 16, 32, 0.72);
  backdrop-filter: blur(5px);
}

.confirm-modal {
  position: relative;
  width: min(100%, 470px);
  padding: 34px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.modal-close {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-500);
  background: #f1f3f6;
  font-size: 20px;
}

.modal-icon,
.success-ring {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 17px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green-600);
  box-shadow: 0 0 0 10px var(--green-100);
  font-size: 25px;
  font-weight: 800;
}

.confirm-modal h2 {
  margin: 0 0 7px;
  color: var(--navy-950);
  font-size: 22px;
}

.confirm-modal p {
  margin: 0 auto;
  color: var(--ink-500);
  font-size: 11px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 25px;
}

.exam-error {
  color: #fff;
}

.exam-error h1 {
  margin: 0;
  font-size: 26px;
}

.exam-error p {
  max-width: 460px;
  margin: 8px 0 23px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.exam-error .primary-button,
.submission-card .primary-button {
  width: auto;
  min-width: 220px;
  padding-inline: 24px;
}

.submission-screen {
  color: var(--ink-900);
  background:
    radial-gradient(circle at 50% 30%, rgba(216, 166, 43, 0.12), transparent 28%),
    #f2f5f9;
}

.submission-card {
  width: min(100%, 540px);
  padding: 48px 38px;
  border: 1px solid #e1e7ef;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.submission-card .eyebrow {
  margin-bottom: 7px;
}

.submission-card h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: 30px;
}

.submission-card > p:not(.eyebrow) {
  margin: 7px 0 22px;
  color: var(--ink-500);
  font-size: 12px;
}

.submission-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.submission-stats div {
  display: grid;
  padding: 13px;
  border-radius: 13px;
  background: #f4f7fa;
}

.submission-stats span {
  color: var(--ink-500);
  font-size: 9px;
}

.submission-stats strong {
  color: var(--navy-950);
  font-size: 12px;
}

/* Result experience */
.result-body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(11, 35, 68, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 35, 68, 0.018) 1px, transparent 1px),
    #f2f5f9;
  background-size: 34px 34px;
}

.result-header-label {
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.05);
  font-size: 10px;
  font-weight: 700;
}

.result-main[hidden],
.review-section[hidden],
.result-error[hidden] {
  display: none;
}

.result-main {
  padding-block: 38px 80px;
}

.result-container {
  width: min(calc(100% - 40px), 920px);
}

.result-hero {
  position: relative;
  padding: 43px 34px 38px;
  overflow: hidden;
  border: 1px solid #e0e6ee;
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 50% 110%, rgba(216, 166, 43, 0.12), transparent 35%),
    #fff;
  text-align: center;
}

.result-hero::before,
.result-hero::after {
  position: absolute;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px solid rgba(216, 166, 43, 0.12);
  border-radius: 50%;
}

.result-hero::before {
  inset: -110px auto auto -80px;
}

.result-hero::after {
  inset: auto -90px -130px auto;
}

.result-celebration {
  position: absolute;
  inset-block-start: 30px;
  inset-inline-end: 12%;
  color: var(--gold-400);
  font-size: 24px;
}

.result-hero .eyebrow {
  margin-bottom: 4px;
}

.result-hero h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: 31px;
  line-height: 1.4;
}

.result-hero > p:not(.eyebrow) {
  margin: 5px 0 25px;
  color: var(--ink-500);
  font-size: 11px;
}

.score-ring {
  --score: 0deg;
  position: relative;
  display: grid;
  width: 146px;
  height: 146px;
  margin-inline: auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green-600) var(--score), #e7ebf0 0);
  box-shadow: 0 14px 35px rgba(16, 39, 72, 0.12);
}

.score-ring::before {
  position: absolute;
  width: 118px;
  height: 118px;
  content: "";
  border-radius: 50%;
  background: #fff;
}

.score-ring > div {
  position: relative;
  z-index: 1;
  display: grid;
}

.score-ring strong {
  color: var(--navy-950);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 29px;
  line-height: 1.3;
}

.score-ring span {
  color: var(--ink-500);
  font-size: 9px;
}

.score-ring.rating-needs-practice {
  background: conic-gradient(var(--red-600) var(--score), #e7ebf0 0);
}

.score-ring.rating-pass,
.score-ring.rating-good {
  background: conic-gradient(var(--gold-500) var(--score), #e7ebf0 0);
}

.rating-badge {
  display: inline-flex;
  margin-top: 18px;
  padding: 5px 15px;
  border-radius: 999px;
  color: var(--green-600);
  background: var(--green-100);
  font-size: 11px;
  font-weight: 800;
}

.rating-badge.rating-needs-practice {
  color: var(--red-600);
  background: var(--red-100);
}

.rating-badge.rating-pass,
.rating-badge.rating-good {
  color: #8a6108;
  background: var(--gold-100);
}

.result-summary {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  border: 1px solid #e0e6ee;
  border-top: 0;
  border-radius: 0 0 22px 22px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(16, 39, 72, 0.08);
}

.result-summary > div {
  min-height: 92px;
  padding: 17px;
  border-inline-start: 1px solid #edf0f4;
}

.result-summary > div:last-child {
  border-inline-start: 0;
}

.result-student-card {
  display: flex;
  align-items: center;
  gap: 11px;
}

.result-student-card > div {
  display: grid;
  min-width: 0;
}

.result-student-card small,
.result-student-card span,
.result-stat span {
  color: var(--ink-500);
  font-size: 8px;
}

.result-student-card strong {
  overflow: hidden;
  color: var(--navy-950);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-stat {
  display: grid;
  align-content: center;
  text-align: center;
}

.result-stat strong {
  color: var(--navy-950);
  font-size: 19px;
}

.correct-stat strong {
  color: var(--green-600);
}

.incorrect-stat strong {
  color: var(--red-600);
}

.unanswered-stat strong {
  color: var(--ink-500);
}

.result-actions {
  display: flex;
  margin-block: 25px 54px;
  justify-content: center;
  gap: 12px;
}

.result-actions .primary-button,
.result-actions .home-button {
  width: 210px;
  min-height: 48px;
  margin: 0;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.review-section {
  scroll-margin-top: 24px;
}

.review-heading {
  margin-bottom: 25px;
}

.review-heading h2 {
  font-size: 26px;
}

.review-list {
  display: grid;
  gap: 13px;
}

.review-card {
  overflow: hidden;
  border: 1px solid #e1e6ed;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 39, 72, 0.05);
}

.review-card-header {
  display: flex;
  padding: 10px 17px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf0f4;
  color: var(--ink-500);
  background: #f8fafc;
  font-size: 9px;
  font-weight: 700;
}

.review-card.is-correct .review-card-header span:last-child {
  color: var(--green-600);
}

.review-card.is-incorrect .review-card-header span:last-child {
  color: var(--red-600);
}

.review-card h3 {
  margin: 0;
  padding: 17px 20px 8px;
  color: var(--navy-950);
  font-size: 14px;
}

.answer-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 20px 20px;
}

.answer-comparison div {
  display: grid;
  padding: 10px 13px;
  border-radius: 11px;
  background: #f5f7fa;
}

.answer-comparison span {
  color: var(--ink-500);
  font-size: 8px;
}

.answer-comparison strong {
  color: var(--ink-900);
  font-size: 11px;
}

.review-card.is-incorrect .answer-comparison div:first-child {
  background: var(--red-100);
}

.review-card .answer-comparison div:last-child {
  background: var(--green-100);
}

/* Teacher dashboard */
.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 6%, rgba(216, 166, 43, 0.08), transparent 18%),
    #f2f5f9;
}

.admin-header {
  color: #fff;
  background: var(--navy-950);
  box-shadow: 0 8px 28px rgba(7, 24, 47, 0.16);
}

.admin-header-content {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-profile-copy {
  display: grid;
  text-align: left;
}

.admin-profile-copy small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
}

.admin-profile-copy strong {
  color: #fff;
  font-size: 11px;
}

.admin-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(237, 194, 88, 0.58);
  border-radius: 13px;
  color: var(--gold-400);
  background: rgba(216, 166, 43, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.admin-main {
  padding-block: 38px 80px;
}

.admin-welcome {
  display: flex;
  margin-bottom: 25px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.admin-welcome .eyebrow {
  margin-bottom: 5px;
}

.admin-welcome h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: 28px;
  line-height: 1.4;
}

.admin-welcome > div:first-child > p:last-child {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: 11px;
}

.admin-date {
  display: grid;
  min-width: 210px;
  padding: 11px 15px;
  border: 1px solid #e1e6ed;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.admin-date span {
  color: var(--ink-500);
  font-size: 8px;
}

.admin-date strong {
  color: var(--navy-950);
  font-size: 10px;
}

.admin-access-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 0.9fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.admin-access-card > div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-access-card h2 {
  margin: 0 0 3px;
  color: var(--navy-950);
  font-size: 16px;
}

.admin-access-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 11px;
}

.admin-access-form {
  display: flex;
  gap: 8px;
}

.admin-access-form input {
  min-width: 0;
  flex: 1;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
}

.admin-access-form .primary-button {
  min-height: 42px;
  padding: 0 20px;
}

.admin-connection-status {
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff4e5;
  color: #8a5200 !important;
  white-space: nowrap;
}

.admin-connection-status.is-connected {
  background: #e8f8ef;
  color: #18794e !important;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.admin-stats article {
  display: flex;
  min-height: 88px;
  padding: 16px;
  align-items: center;
  gap: 13px;
  border: 1px solid #e1e6ed;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 39, 72, 0.045);
}

.admin-stat-icon {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
}

.admin-stat-icon.navy {
  color: var(--navy-700);
  background: #eaf0f8;
}

.admin-stat-icon.gold {
  color: #986b09;
  background: var(--gold-100);
}

.admin-stat-icon.green {
  color: var(--green-600);
  background: var(--green-100);
}

.admin-stats article > div {
  display: grid;
}

.admin-stats small {
  color: var(--ink-500);
  font-size: 9px;
}

.admin-stats strong {
  color: var(--navy-950);
  font-size: 19px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 20px;
  align-items: start;
}

.admin-card {
  padding: 28px;
  border: 1px solid #e1e6ed;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 39, 72, 0.065);
}

.admin-card-heading {
  display: flex;
  margin-bottom: 25px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-card-heading.compact {
  margin-bottom: 18px;
}

.admin-card-heading h2 {
  margin: 7px 0 2px;
  color: var(--navy-950);
  font-size: 21px;
}

.admin-card-heading p {
  margin: 0;
  color: var(--ink-500);
  font-size: 9px;
}

.template-button {
  min-height: 39px;
  padding-inline: 13px;
  border: 1px solid #d9e0e9;
  border-radius: 11px;
  color: var(--navy-700);
  background: #f8fafc;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.template-button:hover {
  border-color: #aebccd;
  background: #fff;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.duration-input {
  position: relative;
}

.duration-input input {
  width: 100%;
  height: 49px;
  padding: 0 13px 0 65px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--ink-900);
  background: #fbfcfe;
  font-size: 12px;
}

.duration-input input:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px rgba(22, 68, 121, 0.1);
}

.duration-input span {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 12px;
  padding-inline: 10px;
  border-inline-end: 1px solid var(--line);
  color: var(--ink-500);
  font-size: 9px;
  transform: translateY(-50%);
}

.file-drop-zone {
  display: grid !important;
  min-height: 165px;
  margin: 0 !important;
  padding: 23px;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1.5px dashed #b8c4d3;
  border-radius: 16px;
  color: var(--ink-700) !important;
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.file-drop-zone:hover,
.file-drop-zone.is-dragging {
  border-color: var(--navy-700);
  background: #eff4fa;
}

.file-drop-zone.has-file {
  min-height: 92px;
  border-color: #a5ddc7;
  background: var(--green-100);
}

.file-drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.upload-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--navy-700);
  box-shadow: 0 7px 16px rgba(22, 68, 121, 0.2);
  font-size: 20px;
}

.file-drop-zone strong {
  font-size: 11px;
}

.file-drop-zone small {
  color: var(--ink-500);
  font-size: 8px;
}

.file-preview {
  margin: 10px 0 18px;
  overflow: hidden;
  border: 1px solid #cbe8dc;
  border-radius: 15px;
  background: #fbfffd;
}

.file-preview[hidden] {
  display: none;
}

.file-preview-header {
  display: flex;
  padding: 12px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e3f1eb;
}

.file-valid-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--green-600);
  font-size: 13px;
  font-weight: 800;
}

.file-preview-header > div {
  display: grid;
  min-width: 0;
}

.file-preview-header strong {
  overflow: hidden;
  color: var(--ink-900);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview-header small {
  color: var(--green-600);
  font-size: 8px;
}

.file-preview-header button {
  width: 28px;
  height: 28px;
  margin-inline-start: auto;
  border: 0;
  border-radius: 8px;
  color: var(--ink-500);
  background: #edf4f0;
  font-size: 17px;
}

.file-preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 11px;
  gap: 8px;
}

.file-preview-stats div {
  display: grid;
  padding: 8px;
  border-radius: 9px;
  background: #f1f8f5;
  text-align: center;
}

.file-preview-stats span {
  color: var(--ink-500);
  font-size: 7px;
}

.file-preview-stats strong {
  color: var(--navy-950);
  font-size: 10px;
}

.publish-note {
  display: flex;
  margin: 5px 0 18px;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--navy-700);
  background: #edf3fa;
}

.publish-note p {
  margin: 0;
  font-size: 8px;
}

.admin-submit {
  margin-top: 0;
}

.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-form-actions .admin-submit {
  flex: 1;
}

.admin-form-actions .secondary-button {
  min-width: 110px;
}

.active-exams-list {
  display: grid;
  gap: 10px;
}

.empty-exams {
  display: grid;
  min-height: 260px;
  padding: 25px;
  place-items: center;
  align-content: center;
  color: var(--ink-500);
  text-align: center;
}

.empty-exams > span {
  color: #c7d0dc;
  font-size: 48px;
}

.empty-exams strong {
  color: var(--ink-700);
  font-size: 12px;
}

.empty-exams p {
  margin: 2px 0 0;
  font-size: 9px;
}

.active-exam-item {
  padding: 14px;
  border: 1px solid #e2e7ed;
  border-radius: 14px;
  background: #fbfcfe;
}

.active-exam-top {
  display: flex;
  margin-bottom: 6px;
  justify-content: space-between;
}

.active-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-600);
  font-size: 7px;
  font-weight: 800;
}

.active-indicator i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-600);
}

.active-indicator.is-inactive {
  color: var(--ink-500);
}

.active-indicator.is-inactive i {
  background: var(--ink-500);
}

.active-exam-top button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  color: var(--red-600);
  background: var(--red-100);
  font-size: 14px;
}

.active-exam-item > strong,
.active-exam-item > span {
  display: block;
}

.active-exam-item > strong {
  overflow: hidden;
  color: var(--navy-950);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-exam-item > span {
  color: var(--ink-500);
  font-size: 8px;
}

.active-exam-meta {
  display: flex;
  margin-top: 9px;
  gap: 12px;
}

.active-exam-item .active-exam-policy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
  gap: 6px;
}

.active-exam-policy small {
  padding: 5px 7px;
  border-radius: 7px;
  color: var(--navy-700);
  background: #edf3fa;
  text-align: center;
}

.active-exam-item small {
  color: var(--ink-500);
  font-size: 7px;
}

.exam-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
  gap: 7px;
}

.exam-card-actions button {
  min-height: 30px;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  color: var(--navy-800);
  background: #fff;
  font-family: inherit;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.exam-card-actions .danger-action {
  border-color: #f2c8c8;
  color: var(--red-600);
  background: var(--red-100);
}

.exam-card-actions .success-action {
  border-color: #bfe3d1;
  color: var(--green-600);
  background: var(--green-100);
}

.delete-icon {
  background: var(--red-600);
  box-shadow: 0 0 0 10px var(--red-100);
}

.hidden-result-main {
  display: grid;
  min-height: calc(100vh - 78px);
  padding: 40px 24px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(216, 166, 43, 0.1), transparent 27%),
    #f2f5f9;
}

.hidden-result-main[hidden] {
  display: none;
}

.hidden-result-card {
  width: min(100%, 530px);
  padding: 45px 36px;
  border: 1px solid #e0e6ee;
  border-radius: 27px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.hidden-result-card .eyebrow {
  margin-bottom: 4px;
}

.hidden-result-card h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: 29px;
}

.hidden-result-card > p:not(.eyebrow) {
  margin: 7px auto 23px;
  color: var(--ink-500);
  font-size: 11px;
}

.hidden-result-student {
  display: grid;
  margin-bottom: 20px;
  padding: 12px;
  border-radius: 12px;
  background: #f3f6f9;
}

.hidden-result-student span {
  color: var(--ink-500);
  font-size: 8px;
}

.hidden-result-student strong {
  color: var(--navy-950);
  font-size: 12px;
}

.hidden-result-card .primary-button {
  width: auto;
  min-width: 220px;
  padding-inline: 24px;
  margin-inline: auto;
}
