:root {
  --bg: #ffffff;
  --line: #c9c9c9;
  --text: #1f252b;
  --muted: #3e4349;
  --blue: #1684e8;
  --soft-gray: #eeeeee;
  --scroll: #8c8c8c;
  --green: #2f9e44;
  --red: #c9362e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #f6f6f6;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 11% 8%, rgba(48, 113, 255, 0.23), transparent 32%),
    radial-gradient(circle at 90% 91%, rgba(24, 196, 173, 0.18), transparent 31%),
    #f4f7ff;
  padding: 28px;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.93fr) minmax(390px, 1.07fr);
  width: min(970px, 100%);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(211, 220, 240, 0.9);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(37, 64, 120, 0.18);
}

.auth-intro {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(145deg, #102e73 0%, #174baf 50%, #2674da 100%);
  color: #fff;
  padding: 42px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.auth-logo-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  letter-spacing: -1px;
}

.auth-intro-copy {
  margin: auto 0;
}

.auth-eyebrow {
  margin: 0 0 15px;
  color: #bcd4ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.35px;
}

.auth-intro h1 {
  margin: 0;
  font-size: clamp(33px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: -1.5px;
}

.auth-intro-copy > p:last-child {
  max-width: 310px;
  margin: 20px 0 0;
  color: #d5e4ff;
  font-size: 16px;
  line-height: 1.8;
}

.auth-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #dce8ff;
  font-size: 13px;
}

.auth-feature-list span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 64px;
}

.auth-panel-head h2 {
  margin: 0;
  color: #10234d;
  font-size: 28px;
  letter-spacing: -0.5px;
}

.auth-panel-head p {
  margin: 10px 0 26px;
  color: #74809a;
  font-size: 14px;
}

.auth-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #e2e7f1;
  margin-bottom: 25px;
}

.auth-tab {
  position: relative;
  padding: 0 2px 12px;
  color: #7a8498;
  font-size: 15px;
}

.auth-tab.active {
  color: #1a5ed1;
  font-weight: 700;
}

.auth-tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 3px;
  background: #1f6ee8;
  content: "";
}

.auth-form .field {
  gap: 8px;
  margin-bottom: 18px;
}

.auth-form .field span {
  color: #34425c;
  font-size: 14px;
  font-weight: 600;
}

.auth-form .field input {
  height: 46px;
  border: 1px solid #d8dfeb;
  border-radius: 9px;
  outline: none;
  padding: 0 13px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.auth-form .field input:focus {
  border-color: #4284ee;
  box-shadow: 0 0 0 3px rgba(53, 118, 234, 0.13);
}

.auth-error {
  min-height: 22px;
  margin: 1px 0 8px;
  color: #ce3d45;
  font-size: 13px;
}

.auth-primary {
  display: flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 9px;
  background: linear-gradient(100deg, #1761d4, #2d7cf0);
  box-shadow: 0 10px 20px rgba(31, 101, 216, 0.22);
  color: #fff;
  font-weight: 700;
}

.auth-primary span {
  font-size: 20px;
  line-height: 1;
}

.auth-demo,
.auth-switch-copy {
  margin: 19px 0 0;
  color: #8791a3;
  font-size: 12px;
  text-align: center;
}

.auth-switch-copy button {
  color: #1d65da;
  font-size: inherit;
  font-weight: 700;
}

.catalog-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 93% 7%, rgba(70, 128, 237, 0.13), transparent 27%),
    #f5f7fc;
  color: #10234d;
}

.catalog-topbar {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e1e7f1;
  background: rgba(255, 255, 255, 0.96);
  padding: 0 clamp(22px, 5vw, 72px);
}

.catalog-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #173c83;
}

.catalog-brand > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #174ea9, #2878e6);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -1px;
}

.catalog-brand strong {
  font-size: 18px;
  letter-spacing: -0.4px;
}

.catalog-brand em {
  border-left: 1px solid #cbd4e4;
  color: #75829a;
  font-size: 13px;
  font-style: normal;
  padding-left: 9px;
}

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

.catalog-account-wrap {
  position: relative;
  border-right: 1px solid #e1e7f1;
  margin-right: 2px;
  padding-right: 12px;
}

.catalog-account {
  display: flex;
  min-width: 154px;
  align-items: center;
  gap: 9px;
  border-radius: 9px;
  margin: -5px;
  padding: 5px;
  text-align: left;
  transition: background 160ms ease;
}

.catalog-account:hover,
.catalog-account:focus-visible,
.catalog-account[aria-expanded="true"] {
  background: #f1f6ff;
  outline: none;
}

.catalog-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #e9f1ff;
  color: #215fbe;
  font-size: 13px;
  font-weight: 800;
}

.catalog-account-copy {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.catalog-account-copy strong {
  max-width: 126px;
  overflow: hidden;
  color: #263d62;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-account-copy small {
  margin-top: 3px;
  color: #8995a8;
  font-size: 11px;
}

.catalog-account-chevron {
  margin-left: auto;
  color: #8190a8;
  font-size: 15px;
  transition: transform 160ms ease;
}

.catalog-account[aria-expanded="true"] .catalog-account-chevron {
  transform: rotate(180deg);
}

.catalog-account-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 16px);
  right: 12px;
  width: 260px;
  border: 1px solid #dfe6f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(38, 61, 98, 0.16);
  padding: 16px;
}

.catalog-account-menu-head {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #edf0f5;
  padding-bottom: 14px;
}

.catalog-avatar-large {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  font-size: 15px;
}

.catalog-account-menu-head div {
  display: grid;
  gap: 3px;
}

.catalog-account-menu-head strong {
  color: #263d62;
  font-size: 14px;
}

.catalog-account-menu-head span:not(.catalog-avatar) {
  color: #8995a8;
  font-size: 11px;
}

.catalog-account-menu dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.catalog-account-menu dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.catalog-account-menu dt,
.catalog-account-menu dd {
  margin: 0;
  font-size: 12px;
}

.catalog-account-menu dt { color: #8995a8; }
.catalog-account-menu dd { color: #405777; font-weight: 600; }
.catalog-account-menu .account-status { color: #198754; }

.catalog-profile-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  background: #edf4ff;
  color: #215fbe;
  font-size: 12px;
  font-weight: 700;
  margin-top: 15px;
  padding: 10px 12px;
}

.catalog-profile-link:hover { background: #dceaff; }

.catalog-history,
.catalog-admin,
.catalog-logout {
  min-height: 34px;
  border: 1px solid #d7dfed;
  border-radius: 7px;
  color: #48617f;
  font-size: 13px;
  padding: 0 12px;
}

.catalog-history:hover,
.catalog-admin:hover,
.catalog-logout:hover {
  border-color: #8cafeb;
  background: #f2f7ff;
  color: #1f62cf;
}

.catalog-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 50px clamp(22px, 5vw, 72px) 38px;
}

.catalog-eyebrow {
  margin: 0 0 10px;
  color: #3675d9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.45px;
}

.catalog-hero h1 {
  margin: 0;
  color: #132c5f;
  font-size: clamp(29px, 4vw, 42px);
  letter-spacing: -1px;
}

.catalog-hero > div > p:last-child {
  margin: 13px 0 0;
  color: #6b7890;
  font-size: 15px;
}

.catalog-stat {
  display: grid;
  min-width: 105px;
  justify-items: end;
  padding-bottom: 4px;
}

.catalog-stat strong {
  color: #2269d8;
  font-size: 36px;
  line-height: 1;
}

.catalog-stat span {
  margin-top: 5px;
  color: #7e899c;
  font-size: 12px;
}

.catalog-content {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 72px) 64px;
}

.catalog-message,
.catalog-empty-note {
  margin: 0 0 22px;
  border-radius: 9px;
  padding: 12px 15px;
  font-size: 14px;
}

.catalog-message {
  border: 1px solid #f3d2d4;
  background: #fff7f7;
  color: #b4464f;
}

.catalog-empty-note {
  border: 1px solid #d9e7ff;
  background: #f5f9ff;
  color: #5272a4;
}

.test-series {
  margin-bottom: 34px;
  border: 1px solid #d9e1ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(42, 69, 121, 0.06);
  overflow: hidden;
}

.test-series-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  background: linear-gradient(100deg, #163e89, #235db8);
  color: #fff;
  padding: 0 26px;
}

.test-series-heading h2 {
  margin: 0;
  font-size: clamp(21px, 2.7vw, 30px);
  letter-spacing: 0.4px;
}

.test-series-heading span {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #dbe9ff;
  font-size: 12px;
  padding: 6px 10px;
}

.test-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}

.test-package-card {
  overflow: hidden;
  border: 1px solid #dee4ee;
  border-radius: 12px;
  background: #fff;
  transition: transform 0.18s, box-shadow 0.18s;
}

.test-package-card:hover {
  box-shadow: 0 10px 24px rgba(35, 76, 144, 0.12);
  transform: translateY(-2px);
}

.test-package-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  background: linear-gradient(100deg, #edf4ff, #f7faff);
  padding: 0 16px;
}

.test-package-card h3 {
  margin: 0;
  color: #1b4c9d;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.test-package-card header span {
  color: #8aa1c6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.7px;
}

.test-module-list {
  padding: 2px 16px;
}

.test-module {
  display: flex;
  min-height: 75px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #edf0f5;
}

.test-module:last-child { border-bottom: 0; }

.test-module strong,
.test-module small { display: block; }

.test-module strong {
  color: #233653;
  font-size: 16px;
}

.test-module small {
  margin-top: 5px;
  color: #8792a6;
  font-size: 12px;
}

.test-module button {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #edf4ff;
  color: #2267d4;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 11px;
}

.test-module button:hover:not(:disabled) { background: #dceaff; }
.test-module button b { margin-left: 4px; font-size: 15px; }
.test-module button:disabled { background: #f3f4f6; color: #9aa3b2; cursor: default; }
.test-module-actions { display: flex; align-items: center; gap: 10px; }
.test-module.unavailable { color: #a5adbb; }

@media (max-width: 600px) {
  .catalog-topbar { padding: 0 16px; }
  .catalog-brand em, .catalog-admin { display: none; }
  .catalog-account-wrap { border-right: 0; margin: 0; padding: 0; }
  .catalog-account { min-width: 0; margin: -5px; padding: 5px; }
  .catalog-account-copy { display: none; }
  .catalog-account-chevron { display: none; }
  .catalog-account-menu { right: 0; }
  .catalog-hero { align-items: start; padding: 34px 20px 25px; }
  .catalog-stat { min-width: auto; }
  .catalog-content { padding: 0 16px 38px; }
  .test-series-heading { min-height: 64px; padding: 0 17px; }
  .test-package-grid { grid-template-columns: 1fr; padding: 12px; }
}

/* Administrator tester management */
.admin-top-actions { display: flex; gap: 10px; }
.tester-admin-page { min-height: 100vh; background: #f3f6fb; color: #213a5b; }
.tester-admin-topbar { background: #132d52; color: #fff; }
.tester-admin-topbar h1 { color: #fff; }
.tester-admin-topbar p { color: #9fb7d8; }
.tester-admin-topbar .header-button { border-color: #496485; color: #dbe8fa; }
.tester-admin-topbar .header-button:hover { background: #23446f; }
.tester-admin-shell { width: min(1440px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 50px; }
.user-admin-page { min-height: 100vh; background: #f3f6fb; color: #213a5b; }
.user-admin-card { border: 1px solid #dfe6ef; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(32, 57, 91, .05); padding: 20px; margin-bottom: 16px; }
.user-admin-card h2 { margin: 0 0 7px; color: #314a6b; font-size: 16px; }
.user-admin-card p { margin: 0 0 14px; color: #78899f; font-size: 12px; }
.user-admin-table { overflow-x: auto; }
.user-admin-header, .user-admin-table article { min-width: 840px; display: grid; grid-template-columns: 1.45fr 130px 210px 140px 70px; align-items: center; gap: 12px; }
.user-admin-header { border-bottom: 1px solid #e8edf3; color: #8795a8; font-size: 10px; font-weight: 800; padding: 0 0 10px; }
.user-admin-table article { border-bottom: 1px solid #edf0f5; padding: 12px 0; }
.user-admin-table article:last-child { border-bottom: 0; }
.user-admin-table article > div { display: grid; gap: 3px; }
.user-admin-table strong { color: #314a6b; font-size: 12px; }
.user-admin-table small { color: #8b98aa; font-size: 10px; }
.user-admin-table select, .user-link-form select, .policy-list select { border: 1px solid #d7e1ee; border-radius: 6px; background: #fff; color: #405a7a; font-size: 11px; padding: 8px; }
.user-role-checks { display: flex; flex-wrap: wrap; gap: 7px; color: #5b6f87; font-size: 10px; }
.user-role-checks span { white-space: nowrap; }
.user-save { padding: 7px 8px; font-size: 10px; }
.user-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.user-link-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 9px; }
.policy-list { display: grid; gap: 8px; margin-bottom: 13px; }
.policy-list label { display: grid; grid-template-columns: 1fr 170px; align-items: center; gap: 10px; color: #506784; font-size: 11px; }
@media (max-width: 760px) { .user-admin-grid { grid-template-columns: 1fr; } .user-link-form { grid-template-columns: 1fr; } }
.admin-tester-message { border-radius: 8px; background: #fff2e6; color: #a85c1c; padding: 11px 14px; }

.admin-tester-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.admin-tester-stats article { display: grid; border: 1px solid #e0e7f0; border-radius: 11px; background: #fff; padding: 17px 19px; }
.admin-tester-stats span { color: #8190a5; font-size: 11px; }
.admin-tester-stats strong { color: #1d426f; font-size: 25px; margin: 4px 0 2px; }
.admin-tester-stats small { color: #a1acbb; font-size: 10px; }

.admin-tester-workspace { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: start; }
.admin-tester-list-card,
.admin-tester-detail { border: 1px solid #dfe6ef; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(32, 57, 91, .05); }
.admin-tester-list-card { position: sticky; top: 14px; overflow: hidden; }
.admin-tester-list-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 12px; }
.admin-tester-list-head > div { display: grid; gap: 3px; }
.admin-tester-list-head h2 { margin: 0; font-size: 15px; }
.admin-tester-list-head span { color: #929fb1; font-size: 10px; }
.admin-tester-list-head button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #dce4ef; border-radius: 7px; color: #50719b; font-size: 17px; }
.admin-tester-search { display: flex; align-items: center; gap: 7px; border: 1px solid #dfe6ef; border-radius: 8px; background: #f7f9fc; margin: 0 14px 12px; padding: 0 10px; }
.admin-tester-search span { color: #8998ac; font-size: 18px; }
.admin-tester-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; padding: 9px 0; }
.admin-tester-list { max-height: 650px; overflow-y: auto; border-top: 1px solid #edf0f5; }
.admin-tester-row { display: grid; width: 100%; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid #edf0f5; padding: 12px 14px; text-align: left; }
.admin-tester-row:hover { background: #f6f9fe; }
.admin-tester-row.active { background: #edf4ff; box-shadow: inset 3px 0 #2d70d2; }
.admin-tester-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #e4eeff; color: #2867c2; font-size: 13px; font-weight: 800; }
.admin-tester-row > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.admin-tester-row strong { overflow: hidden; color: #314a6b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-tester-row small { color: #8e9bad; font-size: 9px; }
.admin-tester-row em { border-radius: 99px; background: #eef2f7; color: #687a91; font-size: 9px; font-style: normal; padding: 4px 7px; }

.admin-tester-detail { overflow: hidden; }
.admin-tester-profile-head { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #e8edf3; background: linear-gradient(120deg, #f7faff, #edf4ff); padding: 22px 24px; }
.admin-tester-avatar.large { width: 56px; height: 56px; flex: 0 0 56px; font-size: 19px; }
.admin-tester-profile-head > div { display: grid; gap: 2px; }
.admin-tester-profile-head p { margin: 0; color: #4e7fc5; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.admin-tester-profile-head h2 { margin: 0; color: #243f65; font-size: 20px; }
.admin-tester-profile-head div > span { color: #75869d; font-size: 10px; }
.admin-tester-profile-head i { color: #288359; font-style: normal; }
.admin-tester-profile-head > button { margin-left: auto; border: 1px solid #cfdceb; border-radius: 7px; background: #fff; color: #416792; font-size: 10px; font-weight: 700; padding: 8px 11px; }

.admin-tester-mini-stats { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid #e8edf3; padding: 17px 24px; }
.admin-tester-mini-stats article { display: grid; gap: 5px; border-right: 1px solid #e8edf3; padding-left: 18px; }
.admin-tester-mini-stats article:first-child { padding-left: 0; }
.admin-tester-mini-stats article:last-child { border: 0; }
.admin-tester-mini-stats span { color: #8b98aa; font-size: 9px; }
.admin-tester-mini-stats strong { color: #2b527e; font-size: 19px; }

.admin-tester-module-summary { border-bottom: 1px solid #e8edf3; padding: 19px 24px; }
.admin-tester-module-summary h3,
.admin-tester-attempts h3 { margin: 0; color: #314a6b; font-size: 13px; }
.admin-tester-module-summary > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 12px; }
.admin-tester-module-summary article { display: flex; align-items: center; gap: 8px; border: 1px solid #e4eaf2; border-radius: 9px; padding: 10px; }
.admin-tester-module-summary article > div { display: grid; gap: 2px; }
.admin-tester-module-summary strong { color: #425b7b; font-size: 10px; }
.admin-tester-module-summary small { color: #98a4b4; font-size: 8px; }
.admin-tester-module-summary b { margin-left: auto; color: #2b609e; font-size: 16px; }

.admin-tester-attempts { padding: 19px 24px 24px; }
.admin-tester-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.admin-tester-section-head span { color: #98a4b4; font-size: 9px; }
.admin-attempt-table { border: 1px solid #e3e9f1; border-radius: 9px; overflow: hidden; }
.admin-attempt-header,
.admin-attempt-table article { display: grid; grid-template-columns: minmax(220px, 2fr) 75px 55px 115px 75px; align-items: center; gap: 10px; padding: 10px 13px; }
.admin-attempt-header { background: #f6f8fb; color: #8996a8; font-size: 8px; font-weight: 700; }
.admin-attempt-table article { border-top: 1px solid #e8edf3; min-height: 55px; }
.admin-attempt-table article > div:first-child { display: flex; align-items: center; gap: 9px; min-width: 0; }
.admin-attempt-table article > div:first-child > div { display: grid; min-width: 0; gap: 3px; }
.admin-attempt-table article strong { overflow: hidden; color: #385271; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-attempt-table article small { color: #97a3b3; font-size: 8px; }
.admin-attempt-table article > b { color: #2868c3; font-size: 15px; }
.admin-attempt-table time { color: #7e8ca0; font-size: 9px; }
.admin-attempt-table article > button { border: 1px solid #cedced; border-radius: 6px; color: #356ebd; font-size: 9px; font-weight: 700; padding: 7px 8px; }
.admin-attempt-table article > button:hover { background: #edf4ff; }
.admin-no-report { color: #a5afbd; text-align: center; }
.admin-tester-no-attempts, .admin-tester-empty { color: #8b98aa; padding: 45px 20px; text-align: center; }

.admin-report-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; background: rgba(13, 31, 56, .62); padding: 25px; }
.admin-report-dialog { width: min(850px, 100%); max-height: calc(100vh - 50px); overflow: auto; border-radius: 13px; background: #fff; box-shadow: 0 25px 70px rgba(0, 0, 0, .3); }
.admin-report-dialog > header { display: flex; justify-content: space-between; align-items: start; border-bottom: 1px solid #e4e9f0; padding: 20px 24px; }
.admin-report-dialog header p { margin: 0 0 4px; color: #4a7fc8; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.admin-report-dialog header h2 { margin: 0; color: #284565; font-size: 17px; }
.admin-report-dialog header span { display: block; color: #919dad; font-size: 9px; margin-top: 5px; }
.admin-report-dialog header button { color: #718198; font-size: 26px; line-height: 1; }
.admin-report-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; background: #f6f9fd; padding: 16px 24px; }
.admin-report-scores article { display: flex; align-items: baseline; gap: 4px; border: 1px solid #e0e7f0; border-radius: 8px; background: #fff; padding: 12px; }
.admin-report-scores span { margin-right: auto; color: #8290a4; font-size: 9px; }
.admin-report-scores strong { color: #2867bf; font-size: 19px; }
.admin-report-scores small { color: #93a0b1; font-size: 9px; }
.admin-report-questions { padding: 20px 24px 25px; }
.admin-report-questions h3 { margin: 0 0 12px; color: #314b6b; font-size: 13px; }
.admin-report-questions article { display: grid; grid-template-columns: 30px 1fr 50px; gap: 10px; align-items: start; border-top: 1px solid #e8edf3; padding: 10px 0; }
.admin-report-questions article > strong { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 6px; background: #eef3fa; color: #587493; font-size: 9px; }
.admin-report-questions article > div { display: grid; gap: 4px; }
.admin-report-questions article span { color: #405978; font-size: 10px; }
.admin-report-questions article small { color: #8f9bad; font-size: 9px; }
.admin-report-questions article b { font-size: 9px; text-align: right; }

@media (max-width: 1000px) {
  .admin-tester-workspace { grid-template-columns: 270px minmax(0, 1fr); }
  .admin-tester-mini-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .admin-tester-mini-stats article { border: 0; padding: 0; }
  .admin-tester-module-summary > div { grid-template-columns: repeat(2, 1fr); }
  .admin-attempt-header { display: none; }
  .admin-attempt-table { display: grid; gap: 8px; border: 0; }
  .admin-attempt-table article { grid-template-columns: 1fr 70px 50px; border: 1px solid #e3e9f1; border-radius: 8px; }
  .admin-attempt-table time { grid-column: 1 / 2; }
}

@media (max-width: 720px) {
  .tester-admin-shell { width: calc(100% - 20px); padding-top: 12px; }
  .admin-tester-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-tester-workspace { grid-template-columns: 1fr; }
  .admin-tester-list-card { position: static; }
  .admin-tester-list { max-height: 300px; }
  .admin-tester-profile-head { padding: 17px; }
  .admin-tester-profile-head > button { display: none; }
  .admin-tester-mini-stats, .admin-tester-module-summary, .admin-tester-attempts { padding-left: 16px; padding-right: 16px; }
  .admin-report-scores { grid-template-columns: 1fr; }
}

@media (min-width: 601px) and (max-width: 1080px) {
  .test-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 730px) {
  .auth-screen { padding: 16px; }
  .auth-card { grid-template-columns: 1fr; min-height: 0; }
  .auth-intro { min-height: 245px; padding: 28px; }
  .auth-intro-copy { margin: 32px 0 0; }
  .auth-intro h1 { font-size: 31px; }
  .auth-intro-copy > p:last-child { display: none; }
  .auth-feature-list { margin-top: auto; }
  .auth-panel { padding: 34px 28px; }
}

.login-box {
  width: 390px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 28px;
}

.admin-entry {
  width: 100%;
  min-height: 38px;
  margin: 0 0 14px;
  border: 1px solid #111820;
  border-radius: 4px;
  background: #fff;
  color: #111820;
  font-size: 16px;
}

.login-box h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.login-box p {
  margin: 0 0 18px;
  color: #666;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 10px;
}

.primary {
  min-height: 36px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  padding: 0 18px;
}

.error {
  min-height: 20px;
  color: var(--red);
}

.admin-page {
  min-height: 100vh;
  background: #f5f6f8;
  color: #111820;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid #d5d9df;
  background: #fff;
  padding: 0 28px;
}

.admin-topbar h1 {
  margin: 0 0 4px;
  font-size: 26px;
}

.admin-topbar p {
  margin: 0;
  color: #5b6470;
}

.admin-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.admin-sidebar,
.admin-card {
  border: 1px solid #d5d9df;
  border-radius: 6px;
  background: #fff;
}

.admin-sidebar {
  min-height: calc(100vh - 118px);
  padding: 16px;
}

.admin-main {
  display: grid;
  gap: 18px;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-section-head h2,
.admin-card h2 {
  margin: 0;
  font-size: 22px;
}

.admin-test-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.admin-test-row {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid #d8dce2;
  border-radius: 4px;
  background: #fff;
  padding: 12px;
  text-align: left;
}

.admin-test-row.active {
  border-color: #1684e8;
  box-shadow: inset 0 0 0 1px #1684e8;
}

.admin-test-row strong {
  font-size: 16px;
}

.admin-test-row span {
  color: #667085;
  font-size: 13px;
}

.admin-card {
  padding: 18px;
}

.import-card p {
  margin: 8px 0 14px;
  color: #5b6470;
}

.admin-file {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}

.admin-json-input,
.admin-preview {
  width: 100%;
  border: 1px solid #cdd3db;
  border-radius: 4px;
  background: #fbfcfd;
  color: #111820;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.45;
}

.admin-json-input {
  min-height: 230px;
  resize: vertical;
  padding: 12px;
}

.admin-preview {
  max-height: 460px;
  overflow: auto;
  padding: 14px;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.admin-message {
  min-height: 22px;
  margin-top: 10px;
  color: #34506a;
}

.danger-button {
  min-height: 36px;
  border: 1px solid #b42318;
  border-radius: 4px;
  background: #fff;
  color: #b42318;
  padding: 0 14px;
}

.import-history {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.import-row {
  display: grid;
  grid-template-columns: 110px 1fr 220px;
  gap: 12px;
  border-top: 1px solid #edf0f3;
  padding: 10px 0;
}

.import-row small {
  color: #667085;
}

.import-row em {
  grid-column: 1 / -1;
  color: #b42318;
  font-style: normal;
}

.exam-page {
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

.test-area {
  height: calc(100vh - 76px);
}

.notes-open {
  display: grid;
  grid-template-columns: minmax(0, calc(100vw - 408px)) 408px;
  grid-template-rows: 76px 1fr;
}

.notes-open .site-header {
  grid-column: 1 / -1;
  grid-row: 1;
}

.notes-open .test-area {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  overflow: hidden;
}

.notes-dock {
  grid-column: 2;
  grid-row: 2;
  height: calc(100vh - 76px);
  border-left: 1px solid #b8b8b8;
  background: #eeeeee;
}

.notes-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  border-bottom: 1px solid #b8b8b8;
  background: #fff;
  color: #111820;
  padding: 0 14px;
  text-align: left;
  font-size: 22px;
}

.notes-chevron {
  font-size: 48px;
  line-height: 1;
}

.notes-dock-textarea {
  width: 100%;
  height: calc(100% - 56px);
  resize: none;
  border: 0;
  outline: 0;
  background: #eeeeee;
  color: #111820;
  padding: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 1.45;
}

.site-header {
  height: 76px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #d8d8d8;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);
  background: #fff;
  padding: 0 26px 0 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #9b1c1c;
  border-radius: 3px;
  background: linear-gradient(135deg, #c92222, #f4dd8a);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-shadow: 0 1px 1px #000;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: 0;
}

.brand-text span {
  color: #333;
  font-size: 13px;
  letter-spacing: 4px;
}

.exam-status {
  color: #ff0000;
  font-size: 18px;
  line-height: 1.45;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-button {
  min-width: 82px;
  height: 45px;
  border: 1px solid #111;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font-size: 18px;
}

.paused-panel {
  height: calc(100vh - 76px);
  background: #fff;
}

.paused-title {
  height: 48px;
  border-bottom: 1px solid #dedede;
  padding: 12px 10px;
  color: #1f252b;
  font-size: 20px;
  font-weight: 700;
}

.paused-body {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 36px;
  min-height: 220px;
  padding-top: 34px;
}

.paused-body p {
  margin: 0;
  color: #333940;
  font-size: 20px;
}

.resume-button {
  min-width: 164px;
  height: 50px;
  border-radius: 4px;
  background: #22272e;
  color: #fff;
  font-size: 18px;
}

.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  color: #111;
}

.menu-icon {
  display: grid;
  align-content: center;
  gap: 6px;
}

.menu-icon span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111;
}

.note-icon {
  position: relative;
  border: 2px solid #111;
  border-radius: 2px;
}

.note-icon::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 10px;
  height: 14px;
  border: 2px solid #111;
  border-top: 0;
}

.note-icon::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 7px;
  width: 11px;
  height: 3px;
  background: #111;
  transform: rotate(-45deg);
  transform-origin: center;
}

.note-icon.active {
  background: #f3f7ff;
  box-shadow: inset 0 0 0 2px #1b7bd8;
}

.part-header {
  margin: 9px 15px 0;
  border: 1px solid #c7c7c7;
  border-radius: 8px;
  background: var(--soft-gray);
  padding: 10px 19px 12px;
}

.part-header h1 {
  margin: 0 0 3px;
  color: #0c1722;
  font-size: 24px;
  line-height: 1.05;
}

.part-header p {
  margin: 0;
  color: #050d18;
  font-size: 22px;
  line-height: 1.28;
}

.part-header strong {
  font-weight: 800;
}

.exam-workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, var(--left-pane, 58.5%)) 42px minmax(260px, 1fr);
  height: calc(100vh - 242px);
  padding: 28px 38px 0 40px;
}

.audio-strip {
  display: grid;
  grid-template-columns: 46px minmax(240px, 1fr) 130px auto;
  align-items: center;
  gap: 16px;
  height: 58px;
  margin: 10px 28px 0;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  background: #fafafa;
  padding: 0 18px;
}

.audio-play {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #222;
  border-radius: 50%;
  background: #fff;
  font-size: 17px;
}

.audio-track {
  height: 8px;
  border-radius: 999px;
  background: #e1e1e1;
  overflow: hidden;
}

.audio-progress {
  width: 18%;
  height: 100%;
  background: #8b8b8b;
}

.audio-time,
.audio-source {
  color: #343a40;
  font-size: 16px;
}

.listening-workspace {
  height: calc(100vh - 300px);
  overflow-y: auto;
  padding: 28px 70px 40px;
}

.listening-paper {
  max-width: 920px;
  margin: 0 auto;
}

.listening-notes {
  max-width: 760px;
  margin: 0 auto;
}

.listening-bottom {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 46px;
}

.listening-part-nav {
  justify-content: center;
  gap: 9px;
}

.writing-workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, var(--left-pane, 48%)) 42px minmax(360px, 1fr);
  height: calc(100vh - 242px);
  padding: 28px 42px 24px;
}

.writing-prompt,
.writing-editor-panel {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  background: #fff;
}

.writing-prompt {
  padding: 24px 36px;
  font-size: 20px;
  line-height: 1.45;
}

.writing-prompt h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.writing-visual {
  margin-top: 24px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  padding: 16px;
}

.writing-visual h3 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 20px;
}

.writing-visual-image {
  display: block;
  max-width: 100%;
  max-height: 520px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.writing-visual table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}

.writing-visual td {
  border: 1px solid #bdbdbd;
  padding: 10px;
  text-align: center;
}

.writing-visual tr:first-child td {
  background: #eeeeee;
  font-weight: 700;
}

.writing-editor-panel {
  display: grid;
  grid-template-rows: 54px 1fr;
}

.writing-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d7d7d7;
  padding: 0 18px;
  font-size: 18px;
}

.writing-editor-head span {
  color: #667085;
}

.writing-textarea {
  width: 100%;
  height: 100%;
  resize: none;
  border: 0;
  outline: 0;
  padding: 22px;
  color: #151a20;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 1.55;
}

.writing-bottom {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 88px;
}

.writing-task-nav {
  justify-content: center;
}

.writing-review-row {
  grid-template-columns: 130px 1fr 120px;
}

.speaking-workspace {
  display: grid;
  grid-template-columns: 260px minmax(420px, 1fr) 280px;
  gap: 22px;
  height: calc(100vh - 242px);
  padding: 28px 42px 24px;
}

.speaking-examiner,
.speaking-card,
.speaking-recorder {
  min-width: 0;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: #fff;
}

.speaking-examiner {
  padding: 28px 20px;
  text-align: center;
}

.examiner-avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border: 2px solid #202020;
  border-radius: 50%;
  background: #f4f4f4;
  color: #111820;
  font-weight: 800;
}

.speaking-examiner h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.speaking-examiner p {
  margin: 0;
  color: #3d4248;
  font-size: 18px;
  line-height: 1.42;
}

.speaking-mini-status {
  display: grid;
  gap: 6px;
  margin-top: 34px;
  border-top: 1px solid #dedede;
  padding-top: 20px;
  font-size: 17px;
}

.speaking-mini-status strong {
  font-size: 24px;
}

.speaking-card {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) 140px;
  overflow: hidden;
}

.speaking-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dedede;
  padding: 0 22px;
  font-size: 18px;
}

.speaking-card-head strong {
  font-size: 22px;
}

.speaking-prompt,
.cue-card {
  align-self: center;
  padding: 34px 46px;
}

.speaking-prompt {
  margin: 0;
  text-align: center;
  font-size: 34px;
  line-height: 1.25;
}

.cue-card {
  max-width: 680px;
  margin: 0 auto;
  font-size: 22px;
  line-height: 1.45;
}

.cue-card h2 {
  margin: 0 0 20px;
  font-size: 31px;
}

.cue-card ul {
  margin: 12px 0 0;
  padding-left: 26px;
}

.speaking-notes {
  width: calc(100% - 44px);
  height: 108px;
  margin: 0 22px 22px;
  resize: none;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  padding: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
}

.speaking-recorder {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.record-ring {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border: 3px solid #202020;
  border-radius: 50%;
  background: #f7f7f7;
  font-size: 26px;
  font-weight: 800;
}

.record-ring.recording {
  border-color: #b42318;
  background: #fff1f0;
  color: #b42318;
}

.record-time {
  font-size: 36px;
  font-weight: 800;
}

.speaking-recorder p {
  min-height: 44px;
  margin: 0;
  color: #3d4248;
  font-size: 17px;
  line-height: 1.3;
}

.record-button {
  min-width: 150px;
  height: 48px;
  border-radius: 4px;
  background: #22272e;
  color: #fff;
  font-size: 18px;
}

.record-button.stop {
  background: #b42318;
}

.speaking-next {
  min-width: 150px;
}

.record-save-state {
  color: #667085;
  font-size: 16px;
}

.speaking-bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 52px;
}

.speaking-part-nav {
  justify-content: center;
}

.speaking-review-row {
  grid-template-columns: 90px 1fr 120px;
}

.speaking-preparation-dialog {
  width: min(650px, calc(100vw - 28px));
  max-width: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 64px rgb(0 0 0 / 38%);
}

.speaking-preparation-dialog::backdrop {
  background: rgb(0 0 0 / 48%);
}

.speaking-preparation-card {
  display: grid;
  justify-items: center;
  min-height: 300px;
  padding: 56px 30px 46px;
  color: #3e414b;
  text-align: center;
}

.speaking-preparation-card h2 {
  margin: 5px 0 24px;
  font-size: 25px;
}

.speaking-preparation-card p {
  margin: 0 0 10px;
  font-size: 21px;
}

.speaking-preparation-card p span,
.speaking-preparation-card small {
  color: #959daa;
}

.speaking-preparation-card small {
  font-size: 16px;
}

.speaking-preparation-card button {
  min-width: 110px;
  margin-top: 34px;
  padding: 8px 20px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(#a9dcf4, #319acb);
  box-shadow: 0 3px 6px rgb(0 0 0 / 18%);
  color: #153548;
  font-size: 17px;
  cursor: pointer;
}

.read-left,
.read-right {
  height: 100%;
  overflow-y: auto;
  scrollbar-color: var(--scroll) #f3f3f3;
  scrollbar-width: auto;
}

.read-left::-webkit-scrollbar,
.read-right::-webkit-scrollbar {
  width: 16px;
}

.read-left::-webkit-scrollbar-thumb,
.read-right::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: var(--scroll);
}

.read-left::-webkit-scrollbar-track,
.read-right::-webkit-scrollbar-track {
  background: #f3f3f3;
}

.read-left {
  padding: 0 44px 40px 12px;
}

.read-right {
  padding: 14px 34px 44px 4px;
}

.divider {
  position: relative;
  cursor: col-resize;
  touch-action: none;
}

.divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 4px;
  background: #eeeeee;
}

.divider-handle {
  position: absolute;
  top: 272px;
  left: 2px;
  z-index: 2;
  width: 38px;
  height: 36px;
  border: 2px solid #202020;
  background: #fff;
  color: #111;
  cursor: col-resize;
  font-size: 24px;
  line-height: 28px;
  text-align: center;
  user-select: none;
  touch-action: none;
}

.divider-handle:active,
.is-resizing-reading .divider-handle {
  background: #f3f7ff;
  box-shadow: inset 0 0 0 2px #1b7bd8;
}

.is-resizing-reading {
  cursor: col-resize;
  user-select: none;
}

.passage-title {
  margin: 2px 0 34px;
  text-align: center;
  font-size: 21px;
}

.passage-standfirst {
  margin: 0 0 34px;
  font-size: 21px;
  font-style: italic;
  line-height: 1.45;
}

.passage-body {
  white-space: pre-line;
  font-size: 21px;
  line-height: 1.43;
}

.question-title {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.1;
}

.instructions {
  margin: 0 0 16px;
  color: #383d42;
  font-size: 22px;
  line-height: 1.36;
}

.instructions p {
  margin: 0 0 2px;
}

.note-heading {
  margin: 16px 0 35px;
  text-align: center;
  font-size: 22px;
}

.note-section {
  max-width: 590px;
  margin-left: 18px;
  font-size: 21px;
  line-height: 1.34;
}

.note-section h3 {
  margin: 0 0 6px;
  font-size: 21px;
}

.note-line {
  position: relative;
  margin: 7px 0;
  padding-left: 0;
}

.note-line::before {
  content: "• ";
}

.answer-input {
  width: 190px;
  height: 42px;
  margin: 0 5px;
  border: 1px solid #888;
  border-radius: 2px;
  color: #777;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.answer-input:focus {
  border: 2px solid var(--blue);
  outline: 0;
}

.choice-question {
  margin: 0 0 54px;
  font-size: 21px;
  line-height: 1.25;
}

.choice-question p {
  margin: 0 0 14px;
}

.choice-question strong {
  display: inline-block;
  min-width: 26px;
  margin-right: 2px;
}

.choice-question span {
  font-weight: 700;
}

.radio-answer-group {
  display: grid;
  gap: 5px;
  margin-left: 0;
}

.radio-answer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1.1;
}

.radio-answer span {
  font-weight: 400;
}

.radio-answer input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.bookmark {
  display: inline-block;
  width: 18px;
  height: 23px;
  margin-left: 150px;
  border: 1px solid #aaa;
  border-bottom: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
  vertical-align: middle;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 75px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  background: #fff;
  border-top: 1px solid #eeeeee;
  padding: 0 68px;
}

.notes-open .bottom-nav {
  right: 408px;
}

.part-nav {
  display: flex;
  align-items: center;
  gap: 13px;
}

.part-nav.center {
  justify-content: center;
}

.part-nav.right {
  justify-content: flex-end;
}

.part-label {
  font-size: 22px;
  font-weight: 700;
  color: #07111c;
  padding: 0;
}

.part-count {
  color: #667085;
  font-size: 20px;
  padding: 0;
}

.active-part {
  color: #07111c;
}

.q-nav {
  width: 38px;
  height: 38px;
  border-radius: 3px;
  color: #07111c;
  font-size: 21px;
  text-align: center;
}

.q-nav.active {
  border: 2px solid var(--blue);
  color: #07111c;
}

.q-nav.answered {
  background: #e8f5ea;
}

.continuation-title {
  margin-top: 34px;
  font-size: 28px;
}

.extra-questions {
  margin-top: 8px;
}

.modal-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.32);
}

.modal {
  width: min(520px, calc(100vw - 32px));
  border-radius: 6px;
  background: #fff;
  padding: 24px;
}

.modal h2 {
  margin: 0 0 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.panel-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: start center;
  background: rgba(255, 255, 255, 0.96);
  padding-top: 45px;
}

.panel-close {
  width: 40px;
  height: 40px;
  font-size: 34px;
  line-height: 34px;
}

.options-dialog {
  width: 625px;
  color: #101820;
}

.options-dialog h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: 25px;
}

.option-subhead {
  position: relative;
}

.option-subhead h2 {
  margin-bottom: 28px;
}

.back-button {
  position: absolute;
  left: 0;
  top: -5px;
  width: 44px;
  height: 44px;
  color: #111820;
  font-size: 48px;
  line-height: 36px;
}

.options-box {
  border: 1px solid #222;
  border-radius: 4px;
  background: #fff;
  padding: 0 26px;
}

.option-row {
  display: grid;
  grid-template-columns: 38px 1fr 32px;
  align-items: center;
  width: 100%;
  height: 81px;
  border-bottom: 1px solid #a8a8a8;
  color: #111820;
  text-align: left;
  font-size: 23px;
}

.option-row:last-child {
  border-bottom: 0;
}

.option-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #c8c8c8;
  color: #fff;
  font-weight: 700;
}

.contrast-icon {
  border: 2px solid #c8c8c8;
  background: linear-gradient(90deg, #fff 0 50%, #c8c8c8 50% 100%);
}

.text-icon {
  border-radius: 2px;
  font-family: Georgia, serif;
  font-size: 21px;
}

.intro-icon {
  font-size: 17px;
}

.option-arrow {
  color: #3a3a3a;
  font-size: 56px;
  line-height: 1;
}

.option-check {
  display: none;
  color: #111820;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
}

.option-check.selected {
  display: block;
}

.contrast-normal {
  border: 2px solid #c8c8c8;
  background: #fff;
}

.intro-options .intro-copy {
  border: 1px solid #222;
  border-radius: 4px;
  background: #fff;
}

.intro-copy {
  padding: 18px;
  font-size: 20px;
  line-height: 1.45;
}

.high-contrast {
  filter: contrast(1.25);
}

.text-large .passage-body,
.text-large .note-section,
.text-large .instructions,
.text-large .writing-prompt,
.text-large .writing-textarea,
.test-text-large .exam-page .passage-body,
.test-text-large .exam-page .passage-standfirst,
.test-text-large .exam-page .note-section,
.test-text-large .exam-page .instructions,
.test-text-large .exam-page .part-header p,
.test-text-large .exam-page .answer-input,
.test-text-large .exam-page .writing-prompt,
.test-text-large .exam-page .writing-textarea,
.test-text-large .exam-page .listening-paper {
  font-size: 23px;
}

.text-xlarge .passage-body,
.text-xlarge .note-section,
.text-xlarge .instructions,
.text-xlarge .writing-prompt,
.text-xlarge .writing-textarea,
.test-text-xlarge .exam-page .passage-body,
.test-text-xlarge .exam-page .passage-standfirst,
.test-text-xlarge .exam-page .note-section,
.test-text-xlarge .exam-page .instructions,
.test-text-xlarge .exam-page .part-header p,
.test-text-xlarge .exam-page .answer-input,
.test-text-xlarge .exam-page .writing-prompt,
.test-text-xlarge .exam-page .writing-textarea,
.test-text-xlarge .exam-page .listening-paper {
  font-size: 25px;
}

.test-text-large .exam-page .question-title {
  font-size: 35px;
}

.test-text-xlarge .exam-page .question-title {
  font-size: 38px;
}

.test-text-large .exam-page .passage-title,
.test-text-large .exam-page .note-heading,
.test-text-large .exam-page .note-section h3 {
  font-size: 24px;
}

.test-text-xlarge .exam-page .passage-title,
.test-text-xlarge .exam-page .note-heading,
.test-text-xlarge .exam-page .note-section h3 {
  font-size: 27px;
}

.result-page {
  min-height: 100vh;
  padding: 28px;
  background: #f7f7f7;
}

.result-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.score-card,
.review-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 14px;
}

.score-card span {
  display: block;
  color: #667085;
  font-size: 13px;
}

.score-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

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

.review-row {
  display: grid;
  grid-template-columns: 70px 1fr 120px;
  gap: 12px;
}

.correct {
  color: var(--green);
  font-weight: 700;
}

.wrong {
  color: var(--red);
  font-weight: 700;
}

@media (max-width: 960px) {
  .exam-workspace {
    grid-template-columns: 1fr;
    height: auto;
    overflow: auto;
    padding: 20px;
  }

  .divider {
    display: none;
  }

  .read-left,
  .read-right {
    height: auto;
    overflow: visible;
    padding: 0 0 30px;
  }

  .bottom-nav {
    position: static;
    grid-template-columns: 1fr;
    height: auto;
    gap: 14px;
    padding: 16px;
  }
}

/* Learner profile */
.profile-page {
  min-height: 100vh;
  background: #f4f7fc;
  color: #172b4d;
}

.profile-topbar {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e1e7f1;
  background: rgba(255, 255, 255, 0.97);
  padding: 0 clamp(22px, 5vw, 72px);
}

.profile-header-actions { display: flex; gap: 10px; }

.profile-back {
  min-height: 36px;
  border-radius: 8px;
  background: #2468d4;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 15px;
}

.profile-back:hover { background: #1957b5; }

.profile-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.profile-identity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(125deg, #173f88 0%, #2569ce 64%, #4388e8 100%);
  box-shadow: 0 16px 38px rgba(32, 83, 161, 0.18);
  color: #fff;
  padding: 30px 36px;
}

.profile-identity-main { display: flex; align-items: center; gap: 20px; }

.profile-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 26px;
  font-weight: 800;
}

.profile-identity-main p,
.profile-section-head p {
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.profile-identity-main p { color: #bcd6ff; }
.profile-identity-main h1 { margin: 0; font-size: 28px; letter-spacing: -0.5px; }
.profile-identity-main div > span { display: block; margin-top: 7px; color: #d5e6ff; font-size: 13px; }

.profile-account-meta { display: grid; justify-items: end; gap: 7px; }
.profile-account-meta span { font-size: 13px; font-weight: 700; }
.profile-account-meta i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5ce09a; margin-right: 7px; }
.profile-account-meta small { color: #c9dcfa; font-size: 11px; }

.profile-message {
  border: 1px solid #f2c9c9;
  border-radius: 8px;
  background: #fff1f1;
  color: #b54343;
  margin: 16px 0 0;
  padding: 10px 14px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.profile-stats article,
.profile-card {
  border: 1px solid #e1e7f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(36, 62, 101, 0.04);
}

.profile-stats article { display: grid; padding: 19px 21px; }
.profile-stats span { color: #7d8ba2; font-size: 12px; }
.profile-stats strong { color: #183963; font-size: 28px; line-height: 1.2; margin: 5px 0 3px; }
.profile-stats small { color: #a0aabd; font-size: 11px; }
.profile-stats .profile-band-stat strong { color: #2468d4; }

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(260px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.profile-card { padding: 24px; }

.profile-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.profile-section-head p { color: #4d7fc9; }
.profile-section-head h2 { margin: 0; color: #233d62; font-size: 18px; }
.profile-section-head > span { color: #96a1b4; font-size: 11px; }

.profile-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-module { border: 1px solid #e6ebf3; border-radius: 10px; padding: 15px; }
.profile-module-head { display: flex; align-items: center; gap: 10px; }
.profile-module-head > span,
.profile-module-badge {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.profile-module-head > div { display: grid; gap: 2px; }
.profile-module-head strong { color: #344d70; font-size: 13px; }
.profile-module-head small { color: #99a5b7; font-size: 10px; }
.profile-module-head b { margin-left: auto; color: #28486f; font-size: 20px; }
.profile-module > p { margin: 7px 0 0; color: #98a4b5; font-size: 10px; text-align: right; }

.blue > span, .profile-module-badge.blue { background: #e6f0ff; color: #2870d7; }
.violet > span, .profile-module-badge.violet { background: #f0eaff; color: #754cc7; }
.orange > span, .profile-module-badge.orange { background: #fff0df; color: #d67b20; }
.green > span, .profile-module-badge.green { background: #e5f7ee; color: #22865a; }
.gray > span, .profile-module-badge.gray { background: #edf0f4; color: #64748b; }

.profile-band-track { height: 4px; overflow: hidden; border-radius: 99px; background: #edf1f6; margin-top: 13px; }
.profile-band-track i { display: block; height: 100%; border-radius: inherit; background: #3b78d8; }
.profile-module.violet .profile-band-track i { background: #7a5ac4; }
.profile-module.orange .profile-band-track i { background: #e28b35; }
.profile-module.green .profile-band-track i { background: #35a574; }

.profile-overview { display: flex; flex-direction: column; }
.profile-progress-ring {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#2d72d2 var(--progress), #eaf0f7 0);
  margin: 2px auto 20px;
}

.profile-progress-ring::before { content: ""; grid-area: 1 / 1; width: 102px; height: 102px; border-radius: 50%; background: #fff; }
.profile-progress-ring div { z-index: 1; grid-area: 1 / 1; display: grid; justify-items: center; }
.profile-progress-ring strong { color: #24466f; font-size: 24px; }
.profile-progress-ring span { color: #929daf; font-size: 10px; }
.profile-overview dl { display: grid; gap: 10px; margin: auto 0 0; }
.profile-overview dl > div { display: flex; justify-content: space-between; border-top: 1px solid #edf0f5; padding-top: 10px; }
.profile-overview dt, .profile-overview dd { margin: 0; font-size: 11px; }
.profile-overview dt { color: #8c98aa; }
.profile-overview dd { color: #3c5475; font-weight: 700; }

.profile-history { padding-bottom: 10px; }
.profile-history-table { margin: 0 -24px; }
.profile-history-header,
.profile-attempt {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(120px, 0.8fr) minmax(100px, 0.65fr) minmax(150px, 0.9fr) 110px;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
}

.profile-history-header { border-bottom: 1px solid #e6ebf2; background: #f8fafd; color: #8d99ab; font-size: 10px; font-weight: 700; }
.profile-attempt { border-bottom: 1px solid #edf0f4; min-height: 70px; }
.profile-attempt:last-child { border-bottom: 0; }
.profile-attempt-test { display: flex; align-items: center; gap: 11px; min-width: 0; }
.profile-attempt-test > div, .profile-attempt > div:nth-child(2), .profile-attempt-score { display: grid; gap: 4px; min-width: 0; }
.profile-attempt-test strong { overflow: hidden; color: #334c6d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-attempt small { color: #98a3b3; font-size: 10px; }
.profile-status { width: fit-content; border-radius: 99px; font-size: 10px; font-weight: 700; padding: 4px 8px; }
.profile-status.completed { background: #e8f7ef; color: #25835b; }
.profile-status.active { background: #fff3df; color: #b87518; }
.profile-attempt-score strong { color: #2869c8; font-size: 17px; }
.profile-attempt time { color: #758399; font-size: 11px; }
.profile-attempt > button { border: 1px solid #d8e2f0; border-radius: 7px; color: #356dbd; font-size: 11px; font-weight: 700; padding: 8px 10px; }
.profile-attempt > button:hover { border-color: #8eb2e8; background: #f1f6ff; }
.profile-attempt > button span { margin-left: 4px; }
.profile-history-search { display: flex; align-items: center; gap: 8px; width: min(360px, 100%); margin: 0 0 14px auto; padding: 8px 11px; border: 1px solid #dce4ef; border-radius: 8px; color: #6c7b91; background: #fff; }
.profile-history-search input { width: 100%; border: 0; outline: 0; color: #334c6d; font: inherit; }

.profile-empty { display: grid; justify-items: center; padding: 36px 20px 48px; text-align: center; }
.profile-empty > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; background: #e8f1ff; color: #2869c8; font-weight: 800; }
.profile-empty h3 { margin: 14px 0 5px; color: #334c6d; font-size: 16px; }
.profile-empty p { margin: 0 0 17px; color: #929daf; font-size: 12px; }
.profile-empty button { border-radius: 8px; background: #2869c8; color: #fff; font-size: 12px; font-weight: 700; padding: 10px 16px; }

.profile-loading { display: grid; min-height: 100vh; place-content: center; justify-items: center; gap: 12px; background: #f4f7fc; color: #6f7f96; }
.profile-spinner { width: 30px; height: 30px; border: 3px solid #dbe5f3; border-top-color: #2869c8; border-radius: 50%; animation: profile-spin 700ms linear infinite; }
@keyframes profile-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-history-header { display: none; }
  .profile-history-table { display: grid; gap: 10px; margin: 0; }
  .profile-attempt { grid-template-columns: 1fr 1fr; gap: 12px; border: 1px solid #e5eaf2; border-radius: 10px; padding: 15px; }
  .profile-attempt-test { grid-column: 1 / -1; }
  .profile-attempt > button { justify-self: end; }
}

@media (max-width: 600px) {
  .profile-topbar { min-height: 62px; padding: 0 15px; }
  .profile-topbar .catalog-brand em, .profile-topbar .catalog-brand strong { display: none; }
  .profile-header-actions .catalog-logout { display: none; }
  .profile-shell { width: min(100% - 24px, 1240px); padding-top: 18px; }
  .profile-identity-card { align-items: start; padding: 22px; }
  .profile-avatar { width: 54px; height: 54px; flex-basis: 54px; font-size: 20px; }
  .profile-identity-main { gap: 13px; }
  .profile-identity-main h1 { font-size: 21px; }
  .profile-account-meta { display: none; }
  .profile-stats { gap: 9px; margin: 12px 0; }
  .profile-stats article { padding: 15px; }
  .profile-stats strong { font-size: 23px; }
  .profile-card { padding: 18px; }
  .profile-module-grid { grid-template-columns: 1fr; }
  .profile-history-table { margin: 0; }
  .profile-attempt { grid-template-columns: 1fr; }
  .profile-attempt-test, .profile-attempt > button { grid-column: auto; }
  .profile-attempt > button { width: 100%; justify-self: stretch; }
}
