:root {
  --page-bg: #ffffff;
  --narrow-shell-border: #d7d7d7;
  --panel-border: #dadada;
  --soft-border: #ececec;
  --brand-red: #ff234d;
  --brand-red-deep: #ef173f;
  --text: #333333;
  --muted: #777777;
  --button-border: #c8c8c8;
  --button-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  --stage-bg: #f9f9f9;
  --selection-blue: #2f96ff;
  --theme-frame: #a9d4f5;
  --theme-surface: #ffffff;
  --test-surface: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/*
 * Desktop pages share a permanently reserved vertical scrollbar.  Reserving
 * the same gutter on both sides keeps every 1280px page frame physically
 * centred when moving between short list pages and long detail pages.
 */
@media (min-width: 761px) {
  html {
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: auto;
    scrollbar-color: #98a6bd #edf1f7;
  }

  html:has(body[data-active-screen="instructions"]),
  html:has(body[data-active-screen="exam"]) {
    overflow-y: hidden;
    scrollbar-gutter: auto;
  }

  html::-webkit-scrollbar {
    width: 12px;
  }

  html::-webkit-scrollbar-track {
    background: #edf1f7;
  }

  html::-webkit-scrollbar-thumb {
    min-height: 44px;
    border: 2px solid #edf1f7;
    border-radius: 999px;
    background: #98a6bd;
  }

  html::-webkit-scrollbar-thumb:hover {
    background: #74839d;
  }
}

body[data-theme="classic"] {
  --theme-frame: #a9d4f5;
  --theme-surface: #ffffff;
  --test-surface: #ffffff;
}

body[data-theme="warm"] {
  --theme-frame: #f2f2f2;
  --theme-surface: #fff5b8;
  --test-surface: #fff5b8;
}

body[data-theme="cool"] {
  --theme-frame: #f2f2f2;
  --theme-surface: #add9ea;
  --test-surface: #add9ea;
}

body[data-theme="pink"] {
  --theme-frame: #f2f2f2;
  --theme-surface: #d86de3;
  --test-surface: #d86de3;
}

body[data-active-screen="instructions"],
body[data-active-screen="exam"] {
  --stage-bg: var(--test-surface);
  background: var(--test-surface);
}

body[data-active-screen="start"],
body[data-active-screen="single-practice"],
body[data-active-screen="exam-preview"] {
  background: linear-gradient(135deg, #f0f7ff 0%, #dbeafe 100%);
}

body[data-active-screen="login"] {
  background: linear-gradient(135deg, #f0f7ff 0%, #dbeafe 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(30, 58, 138, 0.12);
}

button:disabled {
  cursor: default;
}

.mock-app {
  min-height: 100vh;
}

body[data-active-screen="instructions"] .mock-app,
body[data-active-screen="exam"] .mock-app {
  background: var(--stage-bg);
}

body[data-active-screen="start"] .mock-app,
body[data-active-screen="single-practice"] .mock-app,
body[data-active-screen="exam-preview"] .mock-app {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(240, 247, 255, 0.96) 0%, rgba(219, 234, 254, 0.96) 100%),
    #f0f7ff;
}

body[data-active-screen="login"] .mock-app {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(240, 247, 255, 0.96) 0%, rgba(219, 234, 254, 0.96) 100%),
    #f0f7ff;
}

.mobile-splash {
  display: none;
}

body.is-app-booting,
body.is-app-boot-revealing,
body.is-exam-preview-loading,
body.is-exam-resource-loading,
body.is-auth-transition-loading {
  overflow: hidden;
}

body.is-app-booting .mobile-splash,
body.is-app-boot-revealing .mobile-splash,
body.is-exam-preview-loading .mobile-splash,
body.is-exam-resource-loading .mobile-splash,
body.is-auth-transition-loading .mobile-splash {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

body.is-app-boot-revealing .mobile-splash {
  animation: mobile-splash-exit 280ms ease forwards;
}

body.is-exam-preview-loading .mobile-splash {
  animation: none;
}

body.is-exam-resource-loading .mobile-splash {
  animation: none;
}

body.is-auth-transition-loading .mobile-splash {
  animation: none;
}

.mobile-splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-8vh);
}

.mobile-splash-spinner {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #ffffff;
}

.mobile-splash-spinner::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 3px solid transparent;
  border-top-color: #2f96ff;
  border-right-color: rgba(45, 212, 191, 0.72);
  border-radius: 50%;
  animation: mobile-splash-spin 980ms linear infinite;
}

.mobile-splash-logo {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.mobile-splash-logo-image {
  position: absolute;
  inset: 8px;
  z-index: 2;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  display: block;
  object-fit: contain;
  background: #ffffff;
}

.mobile-splash-logo-image[src=""],
.mobile-splash-logo-image:not([src]) {
  display: none;
}

.mobile-splash-logo span {
  position: relative;
  z-index: 1;
  color: #1e3a8a;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.86);
}

.mobile-splash-title {
  margin-top: 34px;
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.mobile-splash-subtitle {
  margin-top: 10px;
  color: #475569;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.mobile-splash-status {
  margin-top: 14px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

@keyframes mobile-splash-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes mobile-splash-exit {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-splash,
  .mobile-splash-spinner::before {
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }
}

.start-stage {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 32px 44px;
  background: linear-gradient(135deg, #f0f7ff 0%, #dbeafe 100%);
}

.start-shell {
  width: min(1280px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.start-auth-bar {
  width: 100%;
  min-height: 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.start-auth-status {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 700;
}

.start-entitlement-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0 12px;
  color: #475569;
}

.start-entitlement-badge.is-active {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.start-entitlement-badge.is-blocked {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.start-auth-button {
  min-width: 96px;
  height: 38px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.84);
  color: #1e3a8a;
  padding: 0 16px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.start-auth-button:hover,
.start-auth-button:focus-visible {
  transform: translateY(-1px);
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.12);
  outline: none;
}

.start-auth-button-primary {
  border-color: #1e3a8a;
  background: #1e3a8a;
  color: #ffffff;
}

.start-auth-button-primary:hover,
.start-auth-button-primary:focus-visible {
  border-color: #3b82f6;
  background: #3b82f6;
}

.start-header {
  text-align: center;
}

.start-kicker {
  margin: 0 0 12px;
  color: #3b82f6;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.start-header h1 {
  margin: 0;
  color: #1e3a8a;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
}

.start-subtitle {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.start-dashboard {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

.start-dashboard-greeting,
.start-dashboard-stats {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(30, 58, 138, 0.08);
}

.start-dashboard-greeting {
  padding: 24px 26px;
}

.start-dashboard-hello {
  margin: 0;
  color: #0f172a;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.start-dashboard-note {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.start-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.start-dashboard-stat {
  min-width: 0;
  padding: 20px 16px;
  border-left: 1px solid #dbeafe;
}

.start-dashboard-stat:first-child {
  border-left: 0;
}

.start-dashboard-stat-value,
.start-dashboard-stat-label {
  display: block;
  text-align: center;
}

.start-dashboard-stat-value {
  color: #1e3a8a;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
}

.start-dashboard-stat-label {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.start-panel {
  width: 100%;
}

.start-panel h2 {
  margin: 0 0 18px;
  color: #334155;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
}

.start-card-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.start-card-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  grid-column: span 4;
}

.start-card-primary-group {
  grid-column: span 8;
}

.start-card {
  width: 100%;
  min-height: 148px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #ffffff;
  color: #1e3a8a;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: 0 12px 30px rgba(30, 58, 138, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.start-card-grid > .start-card {
  grid-column: span 4;
}

.start-card-primary-group .start-card,
.start-card-preview {
  min-height: 176px;
}

.start-card > *,
.start-option-button > *,
.login-button > *,
.login-mode-tab > * {
  pointer-events: none;
}

.start-card:hover,
.start-card:focus-visible {
  transform: translateY(-3px);
  border-color: #3b82f6;
  box-shadow: 0 18px 42px rgba(30, 58, 138, 0.16);
  outline: none;
}

.start-card-muted {
  border-color: #cbd5e1;
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  box-shadow: 0 10px 24px rgba(100, 116, 139, 0.08);
}

.start-card-muted:hover,
.start-card-muted:focus-visible {
  border-color: #cbd5e1;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(100, 116, 139, 0.12);
}

.start-card-label {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.start-card-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.start-lock-icon {
  --start-lock-color: #b91c1c;

  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid #fecaca;
  border-radius: 50%;
  background: #fff1f2;
}

.start-lock-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  z-index: 1;
  width: 12px;
  height: 13px;
  border: 3px solid var(--start-lock-color);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

.start-lock-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 13px;
  z-index: 2;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--start-lock-color);
  transform: translateX(-50%);
}

.start-lock-icon span {
  position: absolute;
  left: 50%;
  top: 20px;
  z-index: 3;
  width: 3px;
  height: 6px;
  border-radius: 99px;
  background: #ffffff;
  transform: translateX(-50%);
}

.start-lock-icon span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  transform: translateX(-50%);
}

.start-lock-icon.is-unlocked {
  --start-lock-color: #166534;

  border-color: #86efac;
  background: #f0fdf4;
}

.start-lock-icon.is-unlocked::before {
  top: 5px;
  border-left-color: transparent;
  transform: translateX(-14%) rotate(0deg);
}

.start-lock-icon.is-unlocked::after {
  background: var(--start-lock-color);
}

.start-account-icon,
.start-feedback-icon {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid #bfdbfe;
  border-radius: 50%;
  background: #eff6ff;
}

.start-account-icon::before,
.start-account-icon::after,
.start-feedback-icon::before {
  content: "";
  position: absolute;
  background: #1e3a8a;
}

.start-account-icon::before {
  left: 50%;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.start-account-icon::after {
  left: 50%;
  top: 17px;
  width: 18px;
  height: 9px;
  border-radius: 12px 12px 5px 5px;
  transform: translateX(-50%);
}

.start-feedback-icon::before {
  left: 50%;
  top: 9px;
  width: 18px;
  height: 13px;
  border-radius: 3px;
  transform: translateX(-50%);
}

.start-feedback-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 10px;
  height: 10px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translateX(-50%) rotate(-45deg);
}

.start-card-copy {
  display: block;
  margin-top: 13px;
  color: #64748b;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.52;
}

.start-card-muted .start-card-copy {
  color: #64748b;
}

.start-card-wide-muted {
  grid-column: 1 / -1;
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 20px;
}

.start-card-wide-muted .start-card-head {
  display: contents;
}

.start-card-wide-muted .start-card-label {
  grid-column: 1;
  grid-row: 1;
}

.start-card-wide-muted .start-lock-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.start-card-wide-muted .start-card-copy {
  grid-column: 1;
  grid-row: 2;
  max-width: 760px;
  margin-top: 8px;
}

.start-exam-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(30, 58, 138, 0.08);
}

.start-exam-options[hidden] {
  display: none;
}

.start-option-button {
  width: 100%;
  min-height: 48px;
  border: 1px solid #1e3a8a;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #1e3a8a;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 800;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: 0 10px 22px rgba(30, 58, 138, 0.1);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.start-option-button:focus-visible {
  transform: translateY(-2px);
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1e3a8a;
  box-shadow: 0 14px 30px rgba(30, 58, 138, 0.16);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .start-option-button:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1e3a8a;
    box-shadow: 0 14px 30px rgba(30, 58, 138, 0.16);
    outline: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .start-option-button:hover,
  .start-option-button:focus,
  .start-option-button:focus-visible {
    transform: none;
    border-color: #1e3a8a;
    background: rgba(255, 255, 255, 0.92);
    color: #1e3a8a;
    box-shadow: 0 10px 22px rgba(30, 58, 138, 0.1);
    outline: none;
  }
}

.start-footer {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.login-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 32px;
  background: linear-gradient(135deg, #f0f7ff 0%, #dbeafe 100%);
}

.login-shell {
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-header {
  text-align: center;
}

.login-header .brand-line {
  color: #1e3a8a;
  font-size: 20px;
  font-weight: 800;
}

.login-panel {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 30px;
  box-shadow: 0 18px 42px rgba(30, 58, 138, 0.14);
}

.login-copy {
  margin-bottom: 22px;
}

.login-kicker {
  margin: 0 0 10px;
  color: #3b82f6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-copy h1 {
  margin: 0 0 12px;
  color: #1e3a8a;
  font-size: 30px;
  line-height: 1.2;
}

.login-copy p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.65;
}

.login-copy strong {
  color: #1e3a8a;
}

.login-hint,
.login-message {
  color: #64748b;
}

.login-message {
  font-weight: 700;
}

.login-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 4px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.login-mode-tab {
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-weight: 800;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.login-mode-tab:hover,
.login-mode-tab:focus-visible {
  color: #1e3a8a;
  outline: none;
}

.login-mode-tab.is-active {
  background: #1e3a8a;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(30, 58, 138, 0.16);
}

.login-form {
  display: grid;
  gap: 14px;
}

.account-password-panel {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
}

.login-field {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.login-field input {
  width: 100%;
  height: 44px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2937;
  padding: 0 12px;
  font-size: 16px;
  outline: none;
}

.login-field input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.login-field textarea {
  width: 100%;
  min-height: 150px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2937;
  padding: 12px;
  font: inherit;
  font-size: 16px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
}

.login-field textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.login-field textarea:disabled {
  background: #f8fafc;
  color: #64748b;
}

.login-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.login-code-row input {
  min-width: 0;
}

.login-code-button {
  white-space: nowrap;
}

.login-form-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 26px;
  margin-top: -3px;
}

.login-form-links button {
  border: 0;
  background: transparent;
  color: #2563eb;
  padding: 4px 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.login-form-links .login-forgot-password {
  margin-left: auto;
}

.login-form-links button:hover,
.login-form-links button:focus-visible {
  color: #1e3a8a;
  outline: none;
  text-decoration: underline;
}

.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.login-button {
  min-width: 96px;
  height: 42px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #ffffff;
  color: #1e3a8a;
  padding: 0 16px;
  font-weight: 700;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.login-button:hover,
.login-button:focus-visible {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 8px 18px rgba(30, 58, 138, 0.12);
  outline: none;
}

.login-button-primary {
  border-color: #1e3a8a;
  background: #1e3a8a;
  color: #ffffff;
}

.login-button-primary:hover,
.login-button-primary:focus-visible {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #ffffff;
}

.login-button:disabled,
.login-button:disabled:hover,
.login-button:disabled:focus-visible {
  border-color: #dbeafe;
  background: #f8fafc;
  color: #94a3b8;
  box-shadow: none;
  cursor: wait;
}

.authorized-device-login-copy {
  margin-bottom: 2px;
}

.authorized-device-warning,
.authorized-device-policy-note {
  margin: 0;
  border-radius: 8px;
  padding: 11px 13px;
  line-height: 1.55;
}

.authorized-device-warning {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
}

.authorized-device-policy-note {
  border: 1px solid #dbeafe;
  background: #f8fbff;
  color: #64748b;
  font-size: 13px;
}

.authorized-device-replacement-list,
.authorized-device-list-panel {
  display: grid;
  gap: 10px;
}

.authorized-device-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #ffffff;
  padding: 13px 15px;
  color: #334155;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.authorized-device-choice:hover,
.authorized-device-choice:focus-within,
.authorized-device-choice.is-selected {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.authorized-device-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.authorized-device-choice span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.authorized-device-choice strong,
.authorized-device-choice small {
  overflow-wrap: anywhere;
}

.authorized-device-choice small {
  color: #64748b;
  line-height: 1.45;
}

.authorized-device-choice b {
  border-radius: 999px;
  background: #e0ecff;
  color: #2563eb;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.authorized-device-code-form {
  margin-top: 4px;
}

.authorized-device-summary,
.authorized-device-help {
  display: grid;
  gap: 7px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  padding: 16px;
}

.authorized-device-summary {
  margin-bottom: 14px;
}

.authorized-device-summary strong,
.authorized-device-help strong {
  color: #172554;
  font-size: 17px;
}

.authorized-device-summary p,
.authorized-device-help p,
.authorized-device-help small {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.authorized-device-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
}

.authorized-device-card.is-current {
  border-color: #93c5fd;
  background: #eff6ff;
}

.authorized-device-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  background: #e0ecff;
  color: #2563eb;
  font-size: 24px;
  font-weight: 800;
}

.authorized-device-card > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.authorized-device-card strong,
.authorized-device-card small {
  overflow-wrap: anywhere;
}

.authorized-device-card em {
  display: inline-block;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  padding: 3px 7px;
  font-size: 11px;
  font-style: normal;
  vertical-align: middle;
}

.authorized-device-card small {
  color: #64748b;
}

.authorized-device-help {
  margin-top: 14px;
}

.recharge-panel {
  display: grid;
  gap: 20px;
}

.recharge-copy {
  margin-bottom: 0;
}

.recharge-feature {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a !important;
  padding: 5px 12px;
  font-size: 13px !important;
  font-weight: 800;
}

.recharge-summary {
  display: grid;
  gap: 10px;
}

.recharge-summary-item {
  display: grid;
  gap: 5px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px 16px;
}

.recharge-summary-item span {
  color: #3b82f6;
  font-size: 13px;
  font-weight: 800;
}

.recharge-summary-item strong {
  color: #334155;
  font-size: 15px;
  line-height: 1.55;
}

.recharge-benefits {
  display: grid;
  gap: 12px;
}

.recharge-benefits h2 {
  margin: 0;
  color: #1e3a8a;
  font-size: 20px;
  font-weight: 900;
}

.recharge-benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recharge-benefit-item {
  display: grid;
  gap: 7px;
  min-height: 118px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.recharge-benefit-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.recharge-benefit-item strong {
  color: #1e3a8a;
  font-size: 16px;
  font-weight: 900;
}

.recharge-benefit-item p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.recharge-note {
  display: grid;
  gap: 6px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  padding: 14px 16px;
}

.recharge-note strong {
  color: #166534;
  font-size: 15px;
  font-weight: 900;
}

.recharge-note p {
  margin: 0;
  color: #365242;
  font-size: 14px;
  line-height: 1.6;
}

.membership-current-status {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 17px;
  border-radius: 18px;
  background: linear-gradient(135deg, #edf3ff, #f5f7ff);
}

.membership-current-status span {
  flex: 0 0 auto;
  color: #6d7b98;
  font-size: 13px;
  font-weight: 750;
}

.membership-current-status strong {
  color: #315df6;
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}

.membership-recurring-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid #c9d7ff;
  border-radius: 18px;
  background: #f4f7ff;
}

.membership-recurring-status > div {
  display: grid;
  gap: 4px;
}

.membership-recurring-status strong {
  color: #244dce;
  font-size: 14px;
  font-weight: 900;
}

.membership-recurring-status p {
  margin: 0;
  color: #657391;
  font-size: 12px;
  line-height: 1.55;
}

.membership-recurring-status button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 13px;
  color: #315df6;
  border: 1px solid #ccd8ff;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.membership-recurring-status button:disabled {
  cursor: wait;
  opacity: .62;
}

.membership-recurring-status.is-pending {
  border-color: #f4d7a2;
  background: #fff9ed;
}

.membership-recurring-status.is-pending strong {
  color: #9a5b00;
}

.membership-recurring-status.is-cancelled,
.membership-recurring-status.is-failed {
  border-color: #e2e7f1;
  background: #f8f9fc;
}

.membership-recurring-status.is-cancelled strong,
.membership-recurring-status.is-failed strong {
  color: #64748b;
}

.membership-payment-unavailable {
  display: grid;
  gap: 5px;
  padding: 13px 16px;
  border: 1px solid #f4d7a2;
  border-radius: 16px;
  background: #fff9ed;
}

.membership-payment-unavailable strong {
  color: #9a5b00;
  font-size: 14px;
  font-weight: 900;
}

.membership-payment-unavailable p {
  margin: 0;
  color: #7b684c;
  font-size: 13px;
  line-height: 1.55;
}

.membership-plan-section {
  display: grid;
  gap: 16px;
}

.membership-plan-section > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.membership-plan-section > header div {
  display: grid;
  gap: 4px;
}

.membership-plan-section > header small {
  color: #99a3b6;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
}

.membership-plan-section > header h2 {
  margin: 0;
  color: #14203a;
  font-size: 21px;
  font-weight: 900;
}

.membership-plan-section > header > span {
  color: #8490a7;
  font-size: 12px;
  font-weight: 700;
}

.membership-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.membership-plan-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 184px;
  align-content: start;
  gap: 7px;
  overflow: hidden;
  padding: 19px 16px 16px;
  cursor: pointer;
  color: #14203a;
  border: 1.5px solid #e2e7f1;
  border-radius: 21px;
  background: #fafbfe;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.membership-plan-card:hover,
.membership-plan-card:focus-visible {
  transform: translateY(-2px);
  border-color: #315df6;
  box-shadow: 0 12px 26px rgba(49, 93, 246, .13);
  outline: none;
}

.membership-plan-card:disabled {
  cursor: default;
  opacity: .72;
}

.membership-plan-card:disabled:hover {
  transform: none;
  border-color: #e2e7f1;
  box-shadow: none;
}

.membership-plan-card.is-loading {
  border-color: #315df6;
  background: #f0f4ff;
  opacity: 1;
}

.membership-plan-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 9px;
  color: #fff;
  border-radius: 0 19px 0 12px;
  background: linear-gradient(135deg, #ff9679, #ef6070);
  font-size: 10px;
  font-weight: 850;
}

.membership-plan-duration {
  padding-right: 38px;
  font-size: 15px;
  font-weight: 900;
}

.membership-plan-price {
  display: flex;
  align-items: flex-end;
  margin-top: 9px;
  color: #315df6;
}

.membership-plan-price small {
  margin: 0 4px 5px 0;
  font-size: 15px;
  font-weight: 900;
}

.membership-plan-price strong {
  font-size: 35px;
  font-weight: 950;
  line-height: 1;
}

.membership-plan-average {
  color: #929caf;
  font-size: 11px;
  font-weight: 650;
}

.membership-plan-action {
  align-self: end;
  margin-top: auto;
  padding-top: 10px;
  color: #315df6;
  border-top: 1px solid #e6eaf2;
  font-size: 11px;
  font-weight: 850;
}

.membership-purchase-note {
  gap: 4px;
}

.membership-payment-dialog-overlay {
  position: fixed;
  z-index: 1250;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 31, 57, .62);
  backdrop-filter: blur(10px);
}

.membership-payment-dialog-overlay.hidden {
  display: none;
}

.membership-payment-dialog {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(420px, 100%);
  padding: 38px 42px 34px;
  color: #14203a;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(18, 31, 57, .28);
  text-align: center;
}

.membership-payment-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: #94a0b6;
  border: 0;
  border-radius: 50%;
  background: #f4f6fa;
  cursor: pointer;
  font-size: 29px;
  line-height: 1;
}

.membership-payment-kicker {
  margin: 0 0 5px;
  color: #315df6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.membership-payment-dialog h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 950;
}

.membership-payment-plan {
  margin: 8px 0 20px;
  color: #77849c;
  font-size: 14px;
  font-weight: 700;
}

.membership-payment-qrcode {
  display: grid;
  width: 220px;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  padding: 10px;
  border: 1px solid #e5e9f2;
  border-radius: 20px;
  background: #fff;
}

.membership-payment-qrcode img {
  display: block;
  width: 100%;
  height: auto;
}

.membership-payment-amount {
  margin-top: 17px;
  color: #14203a;
  font-size: 29px;
  font-weight: 950;
}

.membership-payment-status {
  min-height: 22px;
  margin: 7px 0 17px;
  color: #77849c;
  font-size: 13px;
  font-weight: 700;
}

.membership-payment-status.is-success {
  color: #14986a;
}

.membership-payment-result {
  display: grid;
  width: 100%;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 12px;
}

.membership-payment-result.hidden {
  display: none;
}

.membership-payment-result-icon {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: #eef3ff;
}

.membership-payment-result.is-confirming .membership-payment-result-icon::before {
  width: 44px;
  height: 44px;
  content: "";
  border: 5px solid #dce6ff;
  border-top-color: #315df6;
  border-radius: 50%;
  animation: membership-payment-spin .8s linear infinite;
}

.membership-payment-result.is-success .membership-payment-result-icon {
  background: #eaf9f3;
}

.membership-payment-result.is-success .membership-payment-result-icon::before {
  width: 31px;
  height: 17px;
  content: "";
  border-bottom: 6px solid #16a36f;
  border-left: 6px solid #16a36f;
  transform: translateY(-4px) rotate(-45deg);
}

.membership-payment-result.is-failed .membership-payment-result-icon {
  background: #fff1f2;
}

.membership-payment-result.is-failed .membership-payment-result-icon::before {
  color: #ef596c;
  content: "!";
  font-size: 42px;
  font-weight: 900;
}

.membership-payment-result strong {
  color: #14203a;
  font-size: 19px;
  font-weight: 900;
}

.membership-payment-result > span:last-child {
  color: #77849c;
  font-size: 13px;
  font-weight: 700;
}

.membership-payment-dialog[data-phase]:not([data-phase="qr"]) .membership-payment-kicker,
.membership-payment-dialog[data-phase]:not([data-phase="qr"]) .membership-payment-plan,
.membership-payment-dialog[data-phase]:not([data-phase="qr"]) .membership-payment-qrcode,
.membership-payment-dialog[data-phase]:not([data-phase="qr"]) .membership-payment-amount {
  display: none;
}

.membership-payment-dialog[data-phase]:not([data-phase="qr"]) h2 {
  margin-top: 26px;
}

@keyframes membership-payment-spin {
  to { transform: rotate(360deg); }
}

.membership-payment-check-button {
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  color: #315df6;
  border: 1.5px solid #dce5ff;
  border-radius: 16px;
  background: #f2f6ff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.membership-payment-check-button:disabled {
  cursor: wait;
  opacity: .65;
}

.recharge-actions {
  margin-top: 0;
}

@media (max-width: 560px) {
  .membership-payment-dialog {
    padding: 34px 24px 28px;
    border-radius: 26px;
  }

  .membership-payment-qrcode {
    width: min(220px, 68vw);
    min-height: min(220px, 68vw);
  }
}

.feedback-panel {
  display: grid;
  gap: 18px;
}

.feedback-copy {
  margin-bottom: 0;
}

.feedback-status-message {
  min-height: 1.5em;
}

.feedback-status-message.is-empty {
  visibility: hidden;
}

.feedback-success-copy {
  display: grid;
  min-height: 360px;
  align-content: center;
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.feedback-field {
  gap: 8px;
}

.feedback-field textarea {
  font-size: 16px;
}

.feedback-counter {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.feedback-upload-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px dashed #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}

.feedback-upload-card strong {
  display: block;
  color: #1e3a8a;
  font-size: 15px;
}

.feedback-upload-card p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.feedback-file-button {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.feedback-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.feedback-preview {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.feedback-preview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  background: #ffffff;
}

.feedback-preview-copy strong,
.feedback-preview-copy span {
  display: block;
}

.feedback-preview-copy strong {
  color: #1e3a8a;
  font-size: 15px;
  word-break: break-word;
}

.feedback-preview-copy span {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.feedback-actions {
  margin-top: 0;
}

.single-practice-stage {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 32px 44px;
  background: linear-gradient(135deg, #f0f7ff 0%, #dbeafe 100%);
}

.single-practice-shell {
  width: min(1280px, 100%);
  display: grid;
  gap: 20px;
  align-content: start;
}

.single-practice-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  padding: 28px 32px;
  box-shadow: 0 14px 34px rgba(30, 58, 138, 0.08);
}

.single-practice-kicker {
  margin: 0 0 8px;
  color: #3b82f6;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.single-practice-hero h1 {
  margin: 0;
  color: #1e3a8a;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.single-practice-hero p:not(.single-practice-kicker) {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.single-practice-home-button {
  min-width: 128px;
  min-height: 46px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #ffffff;
  color: #1e3a8a;
  padding: 0 18px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.single-practice-home-button:hover,
.single-practice-home-button:focus-visible {
  transform: translateY(-1px);
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.12);
  outline: none;
}

.single-practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.single-practice-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #1e3a8a;
  padding: 20px 22px;
  text-align: left;
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.single-practice-card:hover,
.single-practice-card:focus-visible {
  transform: translateY(-2px);
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(30, 58, 138, 0.13);
  outline: none;
}

.single-practice-card-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.single-practice-card-title {
  color: #1e3a8a;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.single-practice-card-copy {
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.exam-preview-stage {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 32px 44px;
  background: linear-gradient(135deg, #f0f7ff 0%, #dbeafe 100%);
}

.exam-preview-shell {
  width: min(1280px, 100%);
  display: grid;
  gap: 20px;
  align-content: start;
}

.exam-preview-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  padding: 28px 32px;
  box-shadow: 0 14px 34px rgba(30, 58, 138, 0.08);
}

.exam-preview-kicker {
  margin: 0 0 8px;
  color: #3b82f6;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.exam-preview-hero h1 {
  margin: 0;
  color: #1e3a8a;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
}

.exam-preview-home-button {
  min-height: 44px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #ffffff;
  color: #1e3a8a;
  padding: 0 18px;
  font-weight: 800;
}

.exam-preview-home-button:hover,
.exam-preview-home-button:focus-visible {
  border-color: #3b82f6;
  background: #eff6ff;
  outline: none;
}

.exam-preview-paper-grid {
  display: grid;
  gap: 14px;
}

.exam-preview-paper-group {
  display: grid;
  gap: 12px;
}

.exam-preview-paper-card {
  width: 100%;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: inherit;
  padding: 24px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 12px 28px rgba(30, 58, 138, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.exam-preview-paper-card.is-locked {
  border-color: #dbe3ef;
}

.exam-preview-paper-card:hover,
.exam-preview-paper-card:focus-visible {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 16px 34px rgba(30, 58, 138, 0.14);
  outline: none;
}

.exam-preview-paper-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.exam-preview-paper-lock {
  align-self: center;
  justify-self: center;
}

.exam-preview-paper-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.exam-preview-paper-title {
  display: block;
  margin: 0;
  color: #1e3a8a;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.exam-preview-paper-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.exam-preview-message {
  margin: 0 0 14px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.exam-preview-footer {
  display: flex;
}

.exam-preview-footer .exam-preview-home-button {
  width: 100%;
}

body[data-activity-mode="exam-preview"] .toolbar-button[data-action="go-theme"] {
  display: none;
}

body[data-activity-mode="exam-preview"] [data-screen="instructions"] .toolbar-button[data-action="back-theme"] {
  display: none;
}

.q1-time-signature-symbol {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1;
}

.narrow-stage {
  background: #ffffff;
}

.narrow-shell {
  width: min(1280px, 100%);
  min-height: 1328px;
  margin: 0 auto;
  border-left: 1px solid var(--narrow-shell-border);
  border-right: 1px solid var(--narrow-shell-border);
}

.landing-shell {
  min-height: 0;
  border-bottom: 1px solid var(--narrow-shell-border);
}

.simple-header {
  height: 94px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid var(--panel-border);
}

.brand-line,
.toolbar-brand {
  color: var(--brand-red);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.title-band {
  padding: 22px 32px 18px;
  border-bottom: 4px solid var(--brand-red);
}

.title-band h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
}

.entry-header {
  height: 74px;
}

.entry-brand {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

.entry-title-band {
  padding-top: 18px;
  padding-bottom: 14px;
}

.entry-page-title {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.landing-info-panel,
.landing-features-panel,
.theme-panel {
  padding-left: 32px;
  padding-right: 32px;
}

.landing-info-panel {
  padding-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 34px;
  align-items: start;
}

.landing-section-title,
.rule-copy h3,
.theme-panel h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.landing-meta {
  min-width: 0;
}

.landing-meta-list {
  margin-top: 22px;
}

.meta-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 156px minmax(240px, 1fr);
  row-gap: 6px;
  column-gap: 48px;
}

.meta-grid div {
  display: contents;
}

.meta-grid dt,
.meta-grid dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.42;
}

.landing-start-panel {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
  padding-top: 8px;
}

.primary-red {
  min-width: 168px;
  height: 38px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, #ff3258 0%, var(--brand-red-deep) 100%);
  color: #ffffff;
  font-size: 17px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.landing-start-button {
  min-width: 144px;
  height: 35px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.small-red {
  min-width: 64px;
  height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.landing-features-panel {
  margin-top: 22px;
  padding-top: 20px;
  padding-bottom: 36px;
  border-top: 1px solid var(--soft-border);
}

.rule-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.rule-card {
  min-height: 132px;
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
}

.rule-copy {
  margin-top: 18px;
}

.rule-copy ul {
  margin: 12px 0 0;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.52;
}

.theme-shell {
  min-height: 0;
  border-bottom: 1px solid var(--narrow-shell-border);
}

.theme-panel {
  min-height: 0;
  padding-top: 18px;
  padding-bottom: 28px;
}

.theme-copy {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: #4a4a4a;
}

.theme-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 182px);
  gap: 16px 20px;
}

.theme-option {
  position: relative;
  width: 182px;
  min-height: 156px;
  border: 1px solid #dddddd;
  border-radius: 2px;
  background: #ffffff;
  padding: 10px 10px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.theme-option.selected {
  background: var(--option-selected-frame, #a9d4f5);
  border-color: #d7d7d7;
  box-shadow: none;
}

.theme-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-preview {
  width: 160px;
  height: 102px;
  border: 1px solid #d8d8d8;
  background: #ffffff;
  padding: 5px;
}

.mini-window {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1px solid #dadada;
  display: flex;
  flex-direction: column;
}

.mini-window-top {
  height: 10px;
  border-bottom: 1px solid #dddddd;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 3px;
  color: #8b8b8b;
}

.mini-brand {
  color: #8ebce2;
  font-size: 3px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mini-menu {
  display: flex;
  gap: 3px;
}

.mini-window-body {
  flex: 1;
  position: relative;
  background: #ffffff;
  padding: 5px 8px 5px 5px;
  overflow: hidden;
}

.mini-paper-lines {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(170, 170, 170, 0.42);
  background:
    linear-gradient(
      180deg,
      rgba(74, 74, 74, 0.34) 0,
      rgba(74, 74, 74, 0.34) 1px,
      transparent 1px,
      transparent 5px
    ),
    var(--preview-surface, #ffffff);
  background-size: 100% 5px, auto;
}

.mini-scroll {
  position: absolute;
  top: 5px;
  right: 4px;
  width: 3px;
  bottom: 5px;
  background: #f7f7f7;
  border: 1px solid #dfdfdf;
}

.mini-scroll::after {
  content: "";
  position: absolute;
  top: 16px;
  left: -1px;
  width: 3px;
  height: 18px;
  background: rgba(151, 151, 151, 0.7);
  border: 1px solid rgba(125, 125, 125, 0.42);
}

.mini-window-bottom {
  height: 8px;
  border-top: 1px solid #dfdfdf;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.mini-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #5b83b8;
}

.mini-right {
  display: flex;
  align-items: center;
  gap: 3px;
}

.mini-small {
  width: 10px;
  height: 3px;
  background: #ececec;
}

.mini-red {
  width: 9px;
  height: 4px;
  background: #8b2030;
}

.theme-radio-mark {
  margin-top: 10px;
  width: 19px;
  height: 19px;
  border: 2px solid #d0d0d0;
  border-radius: 50%;
  background: #ffffff;
  position: relative;
}

.theme-option.selected .theme-radio-mark {
  border-color: #ffffff;
}

.theme-option.selected .theme-radio-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--selection-blue);
}

.theme-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
}

.theme-continue-button {
  min-width: 42px;
  height: 26px;
  padding: 0 12px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: none;
}

.wide-stage {
  height: 100vh;
  background: var(--stage-bg);
  padding: 18px;
  overflow: hidden;
}

.wide-shell {
  height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--stage-bg);
}

.exam-toolbar {
  border: 1px solid var(--soft-border);
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-brand {
  margin-right: 12px;
}

.toolbar-button,
.bottom-action {
  height: 46px;
  border: 1px solid var(--button-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fefefe 0%, #ededed 100%);
  color: #333333;
  box-shadow: var(--button-shadow);
}

.toolbar-button {
  min-width: 74px;
  padding: 0 19px;
  font-size: 15px;
}

.toolbar-button.is-disabled,
.toolbar-button:disabled {
  opacity: 0.48;
}

.end-button {
  min-width: 108px;
}

.timer-pill {
  min-width: 72px;
  height: 31px;
  border-radius: 8px;
  background: #fe2f46;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.timer-text {
  display: block;
  color: inherit;
  line-height: 1;
}

.exam-main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 18px;
  padding-right: 8px;
  min-height: 0;
  background: var(--stage-bg);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-gutter: auto;
}

.exam-main.is-vexflow-rendering > :not(.notation-render-loading-card) {
  visibility: hidden;
  pointer-events: none;
}

.notation-render-loading-card {
  position: absolute;
  inset: 18px 8px 0 0;
  z-index: 7200;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid rgba(214, 224, 241, 0.9);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(42, 70, 128, 0.08);
}

.notation-render-loading-card .lazy-bank-loading-state.is-error {
  color: #be3144;
}

.notation-render-loading-card .lazy-bank-loading-state.is-error strong {
  color: #be3144;
}


.exam-main::-webkit-scrollbar {
  width: 12px;
}

.exam-main::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border-radius: 999px;
  border: 2px solid var(--stage-bg);
}

.exam-main::-webkit-scrollbar-track {
  background: transparent;
}

.capture-page-wrap {
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}

.select-capture-wrap {
  max-width: 1790px;
  width: 100%;
  overflow: hidden;
}

.select-page-shell {
  position: relative;
  overflow: hidden;
}

.capture-page-image {
  display: block;
  width: 100%;
  height: auto;
}

.select-overlay-layer {
  position: absolute;
  inset: 0;
}

.select-answer-overlay {
  position: absolute;
  display: block;
  z-index: 2;
  cursor: pointer;
  overflow: hidden;
}

.exam-select-control {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none !important;
  color: rgba(51, 51, 51, 0.01);
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
  padding: 0;
  box-shadow: none;
  opacity: 0;
  position: relative;
  z-index: 3;
  -webkit-appearance: none;
  appearance: none;
}

.exam-select-control option {
  color: #333333;
  background: #ffffff;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 19px;
  font-weight: 400;
}

.exam-select-control:focus {
  outline: none;
}

.select-answer-value {
  position: absolute;
  top: 3px;
  right: 34px;
  bottom: 3px;
  left: 3px;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 18px;
  overflow: hidden;
  background: #ffffff;
  color: #333333;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: clip;
  pointer-events: none;
  box-shadow: 0 0 0 1px var(--test-surface);
}

.select-answer-arrow {
  display: none;
}

.select-answer-overlay.custom-closed-select .select-answer-value {
  position: absolute;
  top: 3px;
  right: 54px;
  bottom: 3px;
  left: 3px;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #ffffff;
  color: #2f2f2f;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  pointer-events: none;
  border-radius: 3px;
}

.select-answer-overlay.custom-closed-select {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  box-shadow: none;
}

.select-answer-overlay.custom-closed-select.is-open {
  z-index: 7000;
  overflow: visible;
  isolation: isolate;
}

.select-answer-overlay.custom-closed-select::after {
  display: none;
}

.select-answer-overlay.custom-closed-select .select-answer-arrow {
  display: none;
}

.select-answer-overlay.custom-closed-select .exam-select-control {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  color: transparent;
  background: transparent;
  background-image: none !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
  letter-spacing: -0.5em;
  text-indent: -9999px;
  text-shadow: none;
  caret-color: transparent;
  -webkit-text-fill-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.select-answer-overlay.custom-closed-select .exam-select-control:focus,
.select-answer-overlay.custom-closed-select .exam-select-control:focus-visible,
.select-answer-overlay.custom-closed-select .exam-select-control:active {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  border-color: transparent !important;
  -webkit-box-shadow: none !important;
}

.select-answer-overlay.custom-closed-select:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

body[data-exam-fragment="2020-G5-2.3"] .custom-select-shell.q10-custom-select {
  overflow: visible;
  position: absolute;
  z-index: 3;
  background: transparent;
  border: 0;
  box-sizing: border-box;
  box-shadow: none;
  -webkit-box-shadow: none;
  isolation: isolate;
}

body[data-exam-fragment="2020-G5-2.3"] .custom-select-shell.q10-custom-select::before {
  content: "";
  position: absolute;
  inset: -3px -2px;
  z-index: 1;
  border: 1px solid #d2d2d2;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--test-surface);
  -webkit-box-shadow: 0 0 0 3px var(--test-surface);
}

body[data-exam-fragment="2020-G5-2.3"] .custom-select-shell.q10-custom-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 2;
  width: 10px;
  height: 6px;
  margin-top: -3px;
  background: no-repeat center / 10px 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235e5e5e' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  pointer-events: none;
}

body[data-exam-fragment="2020-G5-2.3"] .custom-select-shell.q10-custom-select .select-answer-value {
  position: absolute;
  top: 0;
  right: 34px;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: transparent;
  color: #3e3e3e;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  pointer-events: none;
  box-shadow: none;
  -webkit-box-shadow: none;
  border-radius: 0;
}

body[data-exam-fragment="2020-G5-2.3"] .custom-select-shell.q10-custom-select .select-answer-value.is-placeholder {
  color: #4a4a4a;
}

body[data-exam-fragment="2020-G5-2.3"] .custom-select-shell.q10-custom-select .custom-select-trigger:focus,
body[data-exam-fragment="2020-G5-2.3"] .custom-select-shell.q10-custom-select .custom-select-trigger:focus-visible,
body[data-exam-fragment="2020-G5-2.3"] .custom-select-shell.q10-custom-select .custom-select-trigger:active,
body[data-exam-fragment="2020-G5-2.3"] .custom-select-shell.q10-custom-select:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

body[data-exam-fragment="2020-G5-2.3"] .custom-select-shell.q10-custom-select .custom-select-menu {
  top: calc(100% - 2px);
  left: -2px;
  right: -2px;
  z-index: 31;
  border: 1px solid #d2d2d2;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  padding: 0;
  overflow: hidden;
}

body[data-exam-fragment="2020-G5-2.3"] .custom-select-shell.q10-custom-select .custom-select-option {
  padding: 9px 16px;
  font-size: 15px;
  line-height: 1.2;
}

body[data-exam-fragment="2020-G5-5.3"] .select-answer-overlay.custom-closed-select .select-answer-value {
  right: 54px;
}

body[data-exam-fragment="2020-G5-2.4"] .select-answer-overlay.custom-closed-select .select-answer-value {
  font-size: 15px;
}

.custom-select-trigger {
  all: unset;
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

body[data-exam-fragment="2020-G5-2.3"] .custom-select-shell.q10-custom-select.is-open::before {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

body[data-exam-fragment="2020-G5-2.3"] .custom-select-shell.q10-custom-select.is-open {
  z-index: 7000;
}

.custom-select-trigger:focus,
.custom-select-trigger:focus-visible,
.custom-select-trigger:active {
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

body[data-exam-fragment="2020-G5-5.1"] .custom-select-shell:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

body[data-exam-fragment="2020-G5-5.1"] .custom-select-trigger {
  appearance: none;
  -webkit-appearance: none;
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

body[data-exam-fragment="2020-G5-5.1"] .custom-select-trigger::-moz-focus-inner {
  border: 0;
}

.q36-question-wrap {
  max-width: 1790px;
  width: 100%;
}

.q36-question-image {
  display: block;
  width: 100%;
  height: auto;
}

.q36-answer-card {
  max-width: 1790px;
  width: 100%;
  overflow: visible;
  container-type: inline-size;
}

.q36-answer-card-content {
  display: flex;
  flex-direction: column;
  min-height: calc(875 / 3535 * 100cqw);
  padding: calc(14 / 3535 * 100cqw) calc(43 / 3535 * 100cqw) calc(36 / 3535 * 100cqw);
  overflow: visible;
}

.q36-answer-list {
  display: flex;
  flex-direction: column;
  gap: calc(40 / 3535 * 100cqw);
  align-items: flex-start;
}

.q36-answer-row {
  display: grid;
  grid-template-columns: calc(71 / 3535 * 100cqw) calc(440 / 3535 * 100cqw);
  align-items: center;
  column-gap: calc(253 / 3535 * 100cqw);
}

.q36-answer-label {
  color: #111111;
  font-size: calc(32 / 3535 * 100cqw);
  font-weight: 600;
  line-height: 1;
}

.q36-answer-submit {
  margin-top: auto;
  align-self: flex-start;
  min-width: calc(118 / 3535 * 100cqw);
  height: calc(72 / 3535 * 100cqw);
  padding: 0 calc(28 / 3535 * 100cqw);
  border-radius: calc(16 / 3535 * 100cqw);
  background: linear-gradient(180deg, #ff6d82 0%, #ff4b66 100%);
  color: #ffffff;
  border: 0;
  box-shadow: none;
  font-size: calc(28 / 3535 * 100cqw);
  font-weight: 500;
  line-height: 1;
}

body[data-exam-fragment="2020-G5-5.1"] .custom-select-shell.q36-custom-select {
  position: relative;
  width: calc(440 / 3535 * 100cqw);
  height: calc(91 / 3535 * 100cqw);
  z-index: 3;
  background: transparent;
  border: 0;
  box-sizing: border-box;
  box-shadow: none;
  isolation: isolate;
}

body[data-exam-fragment="2020-G5-5.1"] .custom-select-shell.q36-custom-select::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid #d2d2d2;
  border-radius: calc(8 / 3535 * 100cqw);
  background: #ffffff;
}

body[data-exam-fragment="2020-G5-5.1"] .custom-select-shell.q36-custom-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(30 / 3535 * 100cqw);
  z-index: 2;
  width: calc(18 / 3535 * 100cqw);
  height: calc(12 / 3535 * 100cqw);
  margin-top: calc(-6 / 3535 * 100cqw);
  background: no-repeat center / 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235e5e5e' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  pointer-events: none;
}

body[data-exam-fragment="2020-G5-5.1"] .custom-select-shell.q36-custom-select .select-answer-value {
  position: absolute;
  inset: 0 calc(68 / 3535 * 100cqw) 0 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 calc(36 / 3535 * 100cqw);
  background: transparent;
  color: #3e3e3e;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: calc(30 / 3535 * 100cqw);
  line-height: 1.2;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  pointer-events: none;
  box-shadow: none;
  border-radius: 0;
}

body[data-exam-fragment="2020-G5-5.1"] .custom-select-shell.q36-custom-select .select-answer-value.is-placeholder {
  color: #4a4a4a;
}

body[data-exam-fragment="2020-G5-5.1"] .custom-select-shell.q36-custom-select.is-open {
  z-index: 7000;
}

body[data-exam-fragment="2020-G5-5.1"] .custom-select-shell.q36-custom-select.is-open::before {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

body[data-exam-fragment="2020-G5-5.1"] .custom-select-shell.q36-custom-select .custom-select-menu {
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  z-index: 31;
  border: 1px solid #d2d2d2;
  border-top: 0;
  border-radius: 0 0 calc(8 / 3535 * 100cqw) calc(8 / 3535 * 100cqw);
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  padding: 0;
  overflow: hidden;
}

body[data-exam-fragment="2020-G5-5.1"] .custom-select-shell.q36-custom-select .custom-select-option {
  padding: calc(18 / 3535 * 100cqw) calc(36 / 3535 * 100cqw);
  font-size: calc(30 / 3535 * 100cqw);
  line-height: 1.2;
}

.custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 8;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  padding: 4px 0;
}

.custom-select-menu--fixed {
  position: fixed;
  top: 12px;
  left: 12px;
  right: auto;
  z-index: 7100;
  visibility: hidden;
  max-height: min(220px, calc(100svh - 24px));
  overflow-y: auto;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}

.custom-select-menu--fixed.is-positioned {
  visibility: visible;
}

.custom-select-menu--fixed .custom-select-option {
  pointer-events: auto;
  touch-action: manipulation;
}

.custom-select-option {
  display: block;
  width: 100%;
  border: 0;
  background: #ffffff;
  color: #333333;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.2;
  padding: 10px 20px;
}

.custom-select-option:hover,
.custom-select-option.is-selected {
  background: #f4f7fb;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.asset-overlay-wrap .select-overlay-layer {
  z-index: 2;
}

.asset-choice-hotspot,
.asset-text-hotspot,
.asset-submit-hotspot {
  position: absolute;
  display: block;
  z-index: 2;
  background: transparent;
}

.asset-choice-hotspot,
.asset-submit-hotspot {
  cursor: pointer;
}

.asset-submit-hotspot {
  border: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.asset-choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.block-choice {
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.block-choice.selected {
  border-color: transparent;
  background: transparent;
}

.block-choice-indicator {
  display: none;
}

.block-choice.selected .block-choice-indicator {
  background: transparent;
  border-color: transparent;
}

.block-choice.selected .block-choice-indicator::after {
  content: none;
}

.radio-choice {
  background: transparent;
}

.radio-choice-dot {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.radio-choice.selected .radio-choice-dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--selection-blue);
}

.asset-text-input {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #333333;
  font-size: 22px;
  line-height: 1.2;
  padding: 0 12px;
  box-shadow: none;
}

.asset-text-input:focus {
  outline: 2px solid rgba(47, 150, 255, 0.35);
  outline-offset: 0;
}

.exam-card {
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  background: #ffffff;
  overflow: hidden;
}

.themed-card .card-content {
  background: var(--test-surface);
}

.card-content {
  padding: 26px 20px 30px;
}

.intro-card .card-content {
  min-height: 368px;
}

body[data-active-screen="instructions"] .exam-main {
  gap: 14px;
  padding-top: 10px;
  padding-right: 0;
  background: transparent;
}

body[data-active-screen="instructions"] .wide-stage {
  padding: 0;
  background: #ffffff;
}

body[data-active-screen="instructions"] .wide-shell {
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  padding: 10px 12px 12px;
}

body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] {
  padding: 0;
  background: #ffffff;
}

body[data-exam-fragment="2020-G5-1.1a"] .wide-stage[data-screen="exam"] {
  padding: 0;
  background: #ffffff;
}

body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .wide-shell {
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  padding: 10px 12px 12px;
}

body[data-exam-fragment="2020-G5-1.1a"] .wide-stage[data-screen="exam"] .wide-shell {
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  padding: 10px 12px 12px;
}

body[data-active-screen="instructions"] .exam-toolbar {
  border: 0;
  border-bottom: 1px solid #ececec;
  border-radius: 0;
  background: transparent;
  padding: 10px 6px;
}

body[data-exam-fragment^="Info_"] .exam-toolbar {
  border: 0;
  border-bottom: 1px solid #ececec;
  border-radius: 0;
  background: transparent;
  padding: 10px 6px;
}

body[data-exam-fragment="2020-G5-1.1a"] .exam-toolbar {
  border: 0;
  border-bottom: 1px solid #ececec;
  border-radius: 0;
  background: transparent;
  padding: 10px 6px;
}

body[data-active-screen="instructions"] .toolbar-left,
body[data-active-screen="instructions"] .toolbar-right {
  gap: 8px;
}

body[data-exam-fragment^="Info_"] .toolbar-left,
body[data-exam-fragment^="Info_"] .toolbar-right {
  gap: 8px;
}

body[data-exam-fragment="2020-G5-1.1a"] .toolbar-left,
body[data-exam-fragment="2020-G5-1.1a"] .toolbar-right {
  gap: 8px;
}

body[data-active-screen="instructions"] .toolbar-brand {
  margin-right: 6px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

body[data-exam-fragment^="Info_"] .toolbar-brand {
  margin-right: 6px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

body[data-exam-fragment="2020-G5-1.1a"] .toolbar-brand {
  margin-right: 6px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

body[data-active-screen="instructions"] .toolbar-button,
body[data-active-screen="instructions"] .bottom-action {
  height: 31px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body[data-exam-fragment^="Info_"] .toolbar-button,
body[data-exam-fragment^="Info_"] .bottom-action {
  height: 31px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body[data-exam-fragment="2020-G5-1.1a"] .toolbar-button,
body[data-exam-fragment="2020-G5-1.1a"] .bottom-action {
  height: 31px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body[data-active-screen="instructions"] .toolbar-button {
  min-width: 50px;
  padding: 0 13px;
}

body[data-exam-fragment^="Info_"] .toolbar-button {
  min-width: 50px;
  padding: 0 13px;
}

body[data-exam-fragment="2020-G5-1.1a"] .toolbar-button {
  min-width: 50px;
  padding: 0 13px;
}

body[data-active-screen="instructions"] .end-button {
  min-width: 72px;
}

body[data-exam-fragment^="Info_"] .end-button {
  min-width: 72px;
}

body[data-exam-fragment="2020-G5-1.1a"] .end-button {
  min-width: 72px;
}

body[data-exam-fragment^="Info_"] [data-action="open-nav"],
body[data-exam-fragment^="Info_"] [data-action="restart-flow"],
body[data-exam-fragment^="Info_"] .timer-pill {
  display: none;
}

body[data-exam-fragment="2020-G5-1.1a"] [data-action="open-nav"],
body[data-exam-fragment="2020-G5-1.1a"] [data-action="restart-flow"] {
  display: none;
}

body[data-exam-fragment="Info_1-Rhythm"] .timer-pill,
body[data-exam-fragment="Info_2-Pitch"] .timer-pill,
body[data-exam-fragment="Info_3-Keys-Scales"] .timer-pill,
body[data-exam-fragment="Info_4-Intervals"] .timer-pill,
body[data-exam-fragment="Info_5-Chords"] .timer-pill,
body[data-exam-fragment="Info_6-Terms"] .timer-pill,
body[data-exam-fragment="Info_7-Music-context"] .timer-pill,
body[data-exam-fragment="Info_9-Final-page"] .timer-pill {
  display: inline-flex;
}

body[data-active-screen="instructions"] .info-main-card-frame {
  border-color: #dddddd;
  border-radius: 4px;
}

.info-frame,
.info-main-card-frame,
.info-action-card-frame {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  align-self: stretch;
  border: 1px solid #dddddd;
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
}

.info-card-stack {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.q1-card-stack.is-submitted {
  position: relative;
  flex-shrink: 0;
  min-height: 100%;
  isolation: isolate;
}

body[data-active-screen="instructions"] .info-main-card-frame,
body[data-exam-fragment^="Info_"] .info-main-card-frame,
body[data-active-screen="instructions"] .info-action-card-frame,
body[data-exam-fragment^="Info_"] .info-action-card-frame {
  width: 100%;
  margin: 0;
  align-self: stretch;
  border: 1px solid #dddddd;
  border-radius: 4px;
  background: #ffffff;
}

body[data-exam-fragment^="Info_"] .exam-main {
  gap: 14px;
  padding-top: 10px;
  padding-right: 0;
  background: transparent;
}

body[data-exam-fragment="2020-G5-1.1a"] .exam-main {
  gap: 14px;
  padding-top: 10px;
  padding-right: 0;
  background: transparent;
  position: relative;
}

body[data-exam-fragment^="Info_"] .info-main-card-frame {
  border-color: #dddddd;
  border-radius: 4px;
}

.info-section-main-card-frame {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

body[data-exam-fragment^="Info_"] .info-main-copy {
  display: flex;
  flex-direction: column;
}

body[data-exam-fragment^="Info_"] .info-main-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body[data-exam-fragment^="Info_"] .info-main-heading {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #2f2f2f;
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
}

body[data-exam-fragment^="Info_"] .info-main-heading-index {
  font-size: 61px;
  font-weight: 700;
  line-height: 0.9;
}

body[data-exam-fragment^="Info_"] .info-main-heading-text {
  display: inline-block;
  transform: translateY(2px);
}

body[data-exam-fragment^="Info_"] .info-main-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body[data-exam-fragment^="Info_"] .info-main-list p {
  margin: 0;
  color: #3f3f3f;
  font-size: 18px;
  line-height: 1.45;
}

body[data-exam-fragment^="Info_"] .info-main-list strong {
  font-size: 18px;
}

.q1-question-card-body {
  min-height: 0;
  padding: 18px 18px 16px;
  background: #ffffff;
}

.q1-question-prompt {
  margin: 0 0 12px;
  color: #3f3f3f;
  font-size: 18px;
  line-height: 1.45;
}

.q1-question-figure {
  display: block;
  width: 465px;
  max-width: 100%;
  height: auto;
}

.q1-vexflow-staff {
  display: block;
  max-width: 100%;
  overflow: visible;
}

.q1-vexflow-staff svg {
  display: block;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.lazy-bank-loading-card {
  overflow: hidden;
}

.lazy-bank-question-body {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lazy-bank-loading-state {
  width: min(320px, 100%);
  min-height: 214px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #1e3a8a;
  text-align: center;
}

.lazy-bank-loading-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(191, 219, 254, 0.72);
  border-top-color: #3b82f6;
  border-right-color: #2dd4bf;
  border-radius: 50%;
  animation: lazy-bank-loading-spin 900ms linear infinite;
}

.lazy-bank-loading-state strong {
  color: #1e3a8a;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.lazy-bank-loading-state span:last-child {
  color: #64748b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

@keyframes lazy-bank-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.lazy-bank-prompt-line,
.lazy-bank-option-line,
.lazy-bank-submit-ghost,
.lazy-bank-clef-shape,
.lazy-bank-note,
.lazy-bank-barline {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #f1f1f1 0%, #fafafa 44%, #ececec 100%);
  background-size: 220% 100%;
  animation: lazy-bank-shimmer 1.65s ease-in-out infinite;
}

.lazy-bank-prompt-line {
  width: 172px;
  height: 20px;
  margin: 1px 0 34px;
  border-radius: 999px;
}

.lazy-bank-staff-skeleton {
  position: relative;
  width: min(430px, 100%);
  height: 104px;
}

.lazy-bank-staff-skeleton::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 410px;
  max-width: 100%;
  height: 64px;
  background:
    linear-gradient(#8e8e8e, #8e8e8e) 0 0 / 100% 1px no-repeat,
    linear-gradient(#8e8e8e, #8e8e8e) 0 16px / 100% 1px no-repeat,
    linear-gradient(#8e8e8e, #8e8e8e) 0 32px / 100% 1px no-repeat,
    linear-gradient(#8e8e8e, #8e8e8e) 0 48px / 100% 1px no-repeat,
    linear-gradient(#8e8e8e, #8e8e8e) 0 64px / 100% 1px no-repeat;
  opacity: 0.46;
}

.lazy-bank-clef-shape {
  position: absolute;
  left: 2px;
  top: 20px;
  width: 32px;
  height: 72px;
  border-radius: 48% 52% 50% 50%;
  opacity: 0.55;
}

.lazy-bank-clef-shape::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  width: 13px;
  height: 52px;
  border-radius: 999px;
  background: #ffffff;
  opacity: 0.72;
}

.lazy-bank-note {
  position: absolute;
  width: 24px;
  height: 15px;
  border-radius: 50%;
  transform: rotate(-9deg);
  opacity: 0.72;
}

.lazy-bank-note-a {
  left: 165px;
  top: 61px;
}

.lazy-bank-note-b {
  left: 285px;
  top: 31px;
}

.lazy-bank-barline {
  position: absolute;
  left: 410px;
  top: 24px;
  width: 3px;
  height: 65px;
  border-radius: 999px;
  opacity: 0.55;
}

.lazy-bank-answer-body {
  min-height: 238px;
  gap: 17px;
}

.lazy-bank-option-line {
  width: 128px;
  height: 18px;
  margin-left: 34px;
  border-radius: 999px;
}

.lazy-bank-option-line::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 1px;
  width: 14px;
  height: 14px;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  background: #ffffff;
}

.lazy-bank-option-line-short {
  width: 96px;
}

.lazy-bank-submit-ghost {
  width: 48px;
  height: 36px;
  margin-top: 2px;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(255, 49, 91, 0.62) 0%, rgba(255, 111, 139, 0.74) 50%, rgba(255, 49, 91, 0.62) 100%);
  background-size: 220% 100%;
}

@keyframes lazy-bank-shimmer {
  0% {
    background-position: 130% 0;
  }

  100% {
    background-position: -130% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lazy-bank-prompt-line,
  .lazy-bank-option-line,
  .lazy-bank-submit-ghost,
  .lazy-bank-clef-shape,
  .lazy-bank-note,
  .lazy-bank-barline,
  .lazy-bank-loading-spinner {
    animation: none;
  }
}

.q1-generated-notation-wrap {
  max-width: 100%;
}

/*
 * B卷 Q7 的三个小节需要保留 VexFlow 的原始符号比例。
 * 桌面端容器不足 1700px 时改为横向滚动，避免把整行谱例缩小导致符号比 Q6 明显更小。
 */
@media (min-width: 761px) {
  body[data-exam-fragment="2020-G5-1.5"] .q1-generated-notation-wrap {
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding-bottom: 8px;
  }

  body[data-exam-fragment="2020-G5-1.5"] .q1-generated-notation-wrap .rest-group-judgement-staff {
    width: max-content;
    max-width: none !important;
    margin-inline: 0;
  }

  body[data-exam-fragment="2020-G5-1.5"] .q1-generated-notation-wrap .rest-group-judgement-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  body:is(
    [data-exam-fragment="2020-G5-3.4"],
    [data-exam-fragment="2020-G5-3.6a"],
    [data-exam-fragment="2020-G5-3.6b"],
    [data-exam-fragment="2020-G5-5.2a"],
    [data-exam-fragment="2020-G5-5.2b"],
    [data-exam-fragment="2020-G5-5.3"]
  ) .q1-generated-notation-wrap {
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 0 8px;
  }

  body:is(
    [data-exam-fragment="2020-G5-5.2a"],
    [data-exam-fragment="2020-G5-5.2b"],
    [data-exam-fragment="2020-G5-5.3"]
  ) .q1-generated-notation-wrap {
    padding-left: 14px;
  }

  body[data-exam-fragment="2020-G5-3.4"] .q1-generated-notation-wrap .scale-completion-question-staff,
  body:is(
    [data-exam-fragment="2020-G5-3.6a"],
    [data-exam-fragment="2020-G5-3.6b"]
  ) .q1-generated-notation-wrap .chromatic-scale-judgement-staff,
  body:is(
    [data-exam-fragment="2020-G5-5.2a"],
    [data-exam-fragment="2020-G5-5.2b"]
  ) .q1-generated-notation-wrap .cadence-name-choice-staff,
  body[data-exam-fragment="2020-G5-5.3"] .q1-generated-notation-wrap .chord-degree-inversion-question-staff {
    width: max-content;
    max-width: none !important;
    margin-inline: 0;
  }

  body[data-exam-fragment="2020-G5-3.4"] .q1-generated-notation-wrap .scale-completion-question-staff svg,
  body:is(
    [data-exam-fragment="2020-G5-3.6a"],
    [data-exam-fragment="2020-G5-3.6b"]
  ) .q1-generated-notation-wrap .chromatic-scale-judgement-staff svg,
  body:is(
    [data-exam-fragment="2020-G5-5.2a"],
    [data-exam-fragment="2020-G5-5.2b"]
  ) .q1-generated-notation-wrap .cadence-name-choice-staff svg,
  body[data-exam-fragment="2020-G5-5.3"] .q1-generated-notation-wrap .chord-degree-inversion-question-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  body[data-exam-fragment="2020-G5-5.1"] .q36-question-wrap,
  body[data-exam-fragment="2020-G5-5.1"] .q1-generated-notation-wrap {
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  body[data-exam-fragment="2020-G5-5.1"] .cadence-harmonisation-preview,
  body[data-exam-fragment="2020-G5-5.1"] .q36-question-wrap .cadence-harmonisation-preview {
    width: max-content;
    max-width: none;
  }

  body[data-exam-fragment="2020-G5-5.1"] .cadence-harmonisation-system-staff,
  body[data-exam-fragment="2020-G5-5.1"] .q36-question-wrap .cadence-harmonisation-system-staff,
  body[data-exam-fragment="2020-G5-5.1"] .cadence-harmonisation-system-staff svg,
  body[data-exam-fragment="2020-G5-5.1"] .q36-question-wrap .cadence-harmonisation-system-staff svg {
    max-width: none !important;
  }

  body[data-exam-fragment="2020-G5-5.1"] .cadence-harmonisation-system-staff svg,
  body[data-exam-fragment="2020-G5-5.1"] .q36-question-wrap .cadence-harmonisation-system-staff svg {
    width: auto !important;
  }

  body[data-exam-fragment^="2020-G5-7."] .music-context-reference-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  body[data-exam-fragment^="2020-G5-7."] .music-context-reference,
  body[data-exam-fragment^="2020-G5-7."] .music-context-system-staff {
    max-width: none !important;
  }

  body[data-exam-fragment^="2020-G5-7."] .music-context-system-staff svg {
    width: auto !important;
    max-width: none !important;
  }
}

body[data-exam-fragment="2020-G5-5.3"] .q1-generated-notation-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding-bottom: 8px;
}

body[data-exam-fragment="2020-G5-5.3"] .chord-degree-inversion-question-staff {
  width: max-content;
  max-width: none !important;
  margin-inline: 0;
}

body[data-exam-fragment="2020-G5-5.3"] .chord-degree-inversion-question-staff svg {
  width: auto !important;
  max-width: none !important;
}

.q1-question-content-image {
  display: block;
  width: 520px;
  max-width: 100%;
  height: auto;
}

.term-meaning-term {
  margin: 54px 0 0;
  color: #242424;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
}

.term-meaning-term.is-italic {
  font-style: italic;
  font-weight: 400;
}

.music-knowledge-statement {
  margin: 12px 0 0;
  color: #242424;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
}

.music-knowledge-thin-token {
  font-family: "Times New Roman", Times, serif;
  font-style: normal;
  font-weight: 400;
}

.music-knowledge-symbol-token {
  position: relative;
  display: inline-block;
  width: 0.72em;
  height: 0.58em;
  margin: 0 0.08em;
  color: transparent;
  vertical-align: 0.02em;
}

.music-knowledge-down-bow-symbol::before {
  content: "";
  position: absolute;
  box-sizing: border-box;
  left: 0.07em;
  top: 0.06em;
  width: 0.58em;
  height: 0.43em;
  border-top: 0.1em solid #242424;
  border-right: 0.1em solid #242424;
  border-left: 0.1em solid #242424;
}

.music-knowledge-pedal-symbol {
  width: 1.72em;
  height: 1.18em;
  margin: 0 0.06em;
  vertical-align: -0.33em;
}

.music-knowledge-symbol-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.music-knowledge-inline-vexflow-symbol {
  display: block;
  width: 100%;
  height: 100%;
  color: #242424;
}

.music-knowledge-inline-vexflow-symbol svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.key-signature-note-preview {
  width: min(860px, 100%);
}

.key-signature-note-preview .q1-question-prompt {
  margin-bottom: 8px;
}

.key-signature-note-preview .q1-question-followup {
  margin-top: 10px;
}

.key-signature-note-preview-staff {
  display: block;
  max-width: 100%;
  overflow: visible;
}

.key-signature-note-preview-staff svg {
  display: block;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.key-signature-note-preview-staff--source {
  margin: 0 0 28px;
}

.key-signature-note-preview-staff--shown {
  margin-top: 0;
}

.pitch-relation-preview {
  width: min(860px, 100%);
}

.pitch-relation-preview .q1-question-prompt {
  margin-bottom: 12px;
}

.pitch-relation-staff-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pitch-relation-staff-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  min-height: 124px;
}

.pitch-relation-staff-label {
  color: #333333;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.pitch-relation-staff {
  display: block;
  max-width: 100%;
  overflow: visible;
}

.pitch-relation-staff svg {
  display: block;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.cadence-harmonisation-preview {
  width: min(1120px, 100%);
}

.cadence-harmonisation-system-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cadence-harmonisation-system-staff {
  display: block;
  max-width: 100%;
  overflow: visible;
}

.cadence-harmonisation-system-staff svg {
  display: block;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.music-context-reference {
  width: min(1160px, 100%);
  /*
   * Grand-staff braces may extend a few pixels left of VexFlow's SVG
   * viewBox. JS measures only that real overhang after engraving and feeds it
   * into this outer gutter, so the score content itself keeps its authored
   * width, note positions and terminology placement.
   */
  padding-left: var(--music-context-left-gutter, 0px);
}

.music-context-reference-fixed-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.music-context-reference-scroll {
  max-width: 100%;
}

.music-context-reference.is-fixed-staff-scale,
.music-context-reference.is-fixed-staff-scale .music-context-system-staff {
  max-width: none !important;
}

.music-context-reference.is-fixed-staff-scale .music-context-system-staff svg {
  width: auto !important;
  max-width: none !important;
}

.music-context-reference-heading {
  margin: 0 0 4px;
  color: #242424;
  font-size: 22px;
  line-height: 1.35;
}

.music-context-system-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.music-context-system-staff,
.music-context-comparison-staff {
  display: block;
  max-width: 100%;
  overflow: visible;
}

.music-context-comparison-item {
  /* Q50 examples follow the original desktop layout: each compact A/B/C
     example starts at the left edge of its grid column.  Keeping the item at
     the engraved staff width also leaves its letter centred over that staff. */
  width: fit-content;
  max-width: 100%;
  justify-self: start;
}

.music-context-comparison-item .music-context-comparison-staff {
  margin-inline: 0;
}

.music-context-comparison-question {
  /*
   * Q50's A/B/C comparison examples should use the full answer-card width.
   * The fixed 1120px cap used to create a scrollbar on wide desktop screens
   * even though the card had enough room for all three examples.  The inner
   * scroll container still uses overflow-x:auto for fixed-scale scores, so a
   * scrollbar now appears only when the actual viewport is too narrow.
   */
  width: 100%;
}

.music-context-comparison-scroll {
  max-width: 100%;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.music-context-comparison-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
  align-items: start;
}

.music-context-comparison-label {
  color: #111111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

@media (max-width: 760px) {
  .music-context-comparison-list {
    grid-template-columns: 1fr;
  }
}

/* Keep the official English Q4-Q5 copy inside the established Chinese card geometry. */
@media (max-width: 368px), (min-width: 434px) and (max-width: 687px) {
  body[data-locale="en-GB"][data-exam-fragment="2020-G5-1.2"] .q1-question-card-body[data-question-direction="simple_to_compound"] > .q1-question-prompt:first-child {
    margin-bottom: 0;
  }

  body[data-locale="en-GB"][data-exam-fragment="2020-G5-1.2"] .q1-question-card-body[data-question-direction="simple_to_compound"] > .q1-question-followup {
    margin-top: 6.8125px;
  }
}

@media (max-width: 362px), (min-width: 434px) and (max-width: 657px) {
  body[data-locale="en-GB"][data-exam-fragment="2020-G5-1.2"] .q1-question-card-body[data-question-direction="compound_to_simple"] > .q1-question-prompt:first-child {
    margin-bottom: 0;
  }

  body[data-locale="en-GB"][data-exam-fragment="2020-G5-1.2"] .q1-question-card-body[data-question-direction="compound_to_simple"] > .q1-question-followup {
    margin-top: 6.8125px;
  }
}

@media (max-width: 344px) {
  body[data-locale="en-GB"][data-exam-fragment="2020-G5-1.3"] .q1-question-card-body {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body[data-locale="en-GB"][data-exam-fragment="2020-G5-1.3"] .q1-question-prompt {
    line-height: 1.2;
  }

  body[data-locale="en-GB"][data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row[data-q5-layout^="value-"] .q1-fill-prefix {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  body[data-locale="en-GB"][data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row[data-q5-layout^="beat-generated-"] .q1-fill-middle {
    flex: 0 0 auto;
  }

  body[data-locale="en-GB"][data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row[data-q5-layout^="beat-generated-"] .q1-fill-input {
    width: 80px;
  }

  body[data-locale="en-GB"][data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row[data-q5-layout^="value-"] .q1-fill-input {
    width: 90px;
  }
}

@media (min-width: 401px) and (max-width: 629px) {
  body[data-locale="en-GB"][data-exam-fragment="2020-G5-1.3"] .q1-question-card-body {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  body[data-locale="en-GB"][data-exam-fragment="2020-G5-1.3"] .q1-question-prompt {
    line-height: 1.2;
  }
}

.select-judgement-preview {
  width: min(860px, 100%);
  margin-top: 12px;
}

.select-judgement-preview-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.select-judgement-preview-id {
  min-width: 44px;
}

.select-judgement-preview-transposition {
  color: #555555;
  font-weight: 500;
}

.select-judgement-preview-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #222222;
  font-size: 14px;
  line-height: 1.25;
}

.select-judgement-preview-table th,
.select-judgement-preview-table td {
  border: 1px solid #d6d6d6;
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
  word-break: break-word;
}

.select-judgement-preview-table th {
  background: #f6f6f6;
  font-weight: 700;
}

.select-judgement-preview-table th:first-child,
.select-judgement-preview-table td:first-child,
.select-judgement-preview-table th:last-child,
.select-judgement-preview-table td:last-child {
  width: 72px;
}

.q1-reference-card-body {
  min-height: 0;
  padding: 18px 18px 16px;
  background: #ffffff;
}

.q1-reference-image {
  display: block;
  width: 520px;
  max-width: 100%;
  height: auto;
}

.q1-answer-card-body {
  min-height: 0;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.q1-answer-options {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.q1-answer-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111111;
}

.compound-rewrite-answer-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.enharmonic-choice-answer-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scale-clef-choice-answer-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.key-signature-choice-answer-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rhythm-bar-choice-answer-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.compound-rewrite-answer-option {
  align-items: flex-start;
  gap: 14px;
}

.rhythm-bar-choice-answer-option {
  align-items: flex-start;
  gap: 14px;
}

.enharmonic-choice-answer-option {
  align-items: flex-start;
  gap: 14px;
}

.key-signature-choice-answer-option {
  align-items: flex-start;
  gap: 14px;
}

.scale-clef-choice-answer-option {
  align-items: flex-start;
  gap: 14px;
}

.compound-rewrite-option-staff,
.compound-rewrite-question-staff,
.enharmonic-choice-option-staff,
.enharmonic-question-staff,
.key-signature-choice-option-staff,
.scale-clef-choice-option-staff,
.scale-clef-choice-question-staff,
.chromatic-scale-judgement-staff,
.melody-key-choice-question-staff,
.rhythm-bar-choice-option-staff {
  max-width: 100%;
}

.q1-answer-radio {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #ff2f4c;
}

.q1-time-signature {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  color: #111111;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 0.92;
}

.q1-answer-button {
  width: 46px;
  min-width: 46px;
  height: 32px;
  padding: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #ff637d 0%, #ff284f 100%);
  color: #ffffff;
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.q1-answer-button::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 12px;
}

.question-completed-mask {
  position: absolute;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.final-info-card-body {
  padding: 16px 18px 14px;
}

.final-info-copy {
  color: #333333;
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
}

.final-info-group {
  margin: 0;
}

.final-info-line {
  margin: 0;
}

.final-info-line + .final-info-line {
  margin-top: 8px;
}

.final-info-line.is-emphasis {
  font-weight: 700;
}

.final-info-rule {
  height: 1px;
  margin: 18px 0;
  background: #eeeeee;
}

body[data-active-screen="instructions"] .info-main-card-content {
  min-height: 0;
  padding: 16px 18px 14px;
  background: #ffffff;
}

body[data-exam-fragment^="Info_"] .info-main-card-content {
  min-height: 0;
  padding: 16px 18px 14px;
  background: #ffffff;
}

body[data-active-screen="instructions"] .info-main-card-body,
body[data-exam-fragment^="Info_"] .info-main-card-body {
  min-height: 0;
  padding: 16px 18px 14px;
  background: #ffffff;
}

body[data-active-screen="instructions"] .info-main-card-frame h1,
body[data-active-screen="instructions"] .info-main-card-frame h2 {
  margin: 0 0 7px;
  color: #2c2c2c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.22;
}

body[data-active-screen="instructions"] .info-main-card-frame .bullet-copy {
  margin: 0 0 10px;
  padding-left: 16px;
  color: #3d3d3d;
  font-size: 13px;
  line-height: 1.32;
}

body[data-active-screen="instructions"] .info-main-card-frame .bullet-copy li + li {
  margin-top: 0;
}

body[data-active-screen="instructions"] .info-action-card-frame,
body[data-exam-fragment^="Info_"] .info-action-card-frame {
  min-height: 72px;
  padding: 0;
  container-type: normal;
}

body[data-exam-fragment="2020-G5-1.1a"] .info-action-card-frame {
  min-height: 72px;
  padding: 0;
  container-type: normal;
}

body[data-active-screen="instructions"] .info-action-card-body,
body[data-exam-fragment^="Info_"] .info-action-card-body {
  min-height: 72px;
  padding: 0 14px;
  display: flex;
  align-items: center;
}

body[data-exam-fragment="2020-G5-1.1a"] .info-action-card-body {
  min-height: 72px;
}

body[data-active-screen="instructions"] .info-main-continue {
  width: 46px;
  min-width: 46px;
  height: 32px;
  padding: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #ff637d 0%, #ff284f 100%);
  color: #ffffff;
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

body[data-exam-fragment^="Info_"] .info-main-continue {
  width: 46px;
  min-width: 46px;
  height: 32px;
  padding: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #ff637d 0%, #ff284f 100%);
  color: #ffffff;
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

body[data-active-screen="instructions"] .instructions-bottom-row {
  padding-top: 12px;
  gap: 10px;
  background: transparent;
}

body[data-exam-fragment^="Info_"] .exam-bottom-row {
  padding-top: 12px;
  gap: 10px;
  background: transparent;
}

body[data-exam-fragment="2020-G5-1.1a"] .exam-bottom-row {
  padding-top: 12px;
  gap: 10px;
  background: transparent;
}

body[data-active-screen="instructions"] .instructions-paper-nav {
  min-height: 30px;
  border-color: #dbdbdb;
}

body[data-exam-fragment^="Info_"] .paper-nav {
  min-height: 30px;
  border-color: #dbdbdb;
}

body[data-exam-fragment="2020-G5-1.1a"] .paper-nav {
  min-height: 30px;
  border-color: #dbdbdb;
}

body[data-active-screen="instructions"] .paper-item {
  min-width: 31px;
  height: 28px;
  font-size: 11px;
}

body[data-exam-fragment^="Info_"] .paper-item {
  min-width: 31px;
  height: 28px;
  font-size: 11px;
}

body[data-exam-fragment="2020-G5-1.1a"] .paper-item {
  min-width: 31px;
  height: 28px;
  font-size: 11px;
}

body[data-active-screen="instructions"] .paper-nav-arrow,
body[data-exam-fragment^="Info_"] .paper-nav-arrow {
  flex-basis: 22px;
  width: 22px;
  min-width: 22px;
  font-size: 13px;
}

body[data-active-screen="instructions"] .instructions-bottom-action {
  min-width: 68px;
  padding: 0 12px;
  font-size: 12px;
}

body[data-exam-fragment^="Info_"] .bottom-action {
  min-width: 68px;
  padding: 0 12px;
  font-size: 12px;
}

body[data-exam-fragment="2020-G5-1.1a"] .bottom-action {
  min-width: 68px;
  padding: 0 12px;
  font-size: 12px;
}

body[data-active-screen="instructions"] .instructions-bottom-action .button-icon {
  font-size: 14px;
}

body[data-exam-fragment^="Info_"] .button-icon {
  font-size: 14px;
}

body[data-exam-fragment="2020-G5-1.1a"] .button-icon {
  font-size: 14px;
}

body[data-exam-fragment^="Info_"] .bottom-actions-group {
  gap: 0;
}

body[data-exam-fragment^="Info_"] .bottom-actions-group .bottom-action:last-child {
  display: none;
}

body[data-exam-fragment="2020-G5-1.1a"] .bottom-actions-group {
  gap: 0;
}

body[data-exam-fragment="2020-G5-1.1a"] .bottom-actions-group .bottom-action:last-child {
  display: none;
}

.intro-card h1,
.intro-card h2,
.section-card h1 {
  margin: 0 0 12px;
}

.intro-card h1,
.intro-card h2 {
  font-size: 22px;
  font-weight: 700;
}

.bullet-copy {
  margin: 0 0 16px;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.42;
}

.action-card {
  min-height: 106px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.info-section-capture {
  max-width: 1790px;
  width: 100%;
}

.info-section-action-card {
  max-width: 1790px;
  width: 100%;
  min-height: 96px;
  padding: 0 18px;
  container-type: inline-size;
}

.info-section-continue {
  width: clamp(40px, 3.91cqw, 70px);
  min-width: 0;
  height: clamp(30px, 2.57cqw, 46px);
  padding: 0;
  border-radius: clamp(7px, 0.56cqw, 10px);
  background: linear-gradient(180deg, #ff637d 0%, #ff284f 100%);
  color: #ffffff;
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: clamp(12px, 1cqw, 14.5px);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.question-card .card-content,
.answer-card .card-content {
  padding: 20px 20px 18px;
}

.question-prompt {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.45;
}

.question-figure-shell {
  max-width: 960px;
}

.question-figure {
  display: block;
  width: 100%;
  height: auto;
}

.time-choice-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.time-choice {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}

.time-choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.time-choice-circle {
  width: 24px;
  height: 24px;
  border: 2px solid #a9a9a9;
  border-radius: 50%;
  background: #ffffff;
  margin-top: 5px;
  position: relative;
  flex: 0 0 auto;
}

.time-choice.selected .time-choice-circle::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--selection-blue);
}

.time-signature-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 43px;
  font-weight: 700;
  line-height: 0.82;
  color: #111111;
}

.answer-submit {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  line-height: 1;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.answer-submit::after {
  content: "";
  position: absolute;
  inset: -10px -14px;
  border-radius: 12px;
}

.submitted-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.fallback-card .card-content {
  min-height: 160px;
}

.section-card .card-content {
  min-height: 176px;
}

.section-copy h1 {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
}

.section-index {
  font-size: 61px;
  font-weight: 700;
  line-height: 0.9;
}

.section-title {
  display: inline-block;
  transform: translateY(2px);
}

.section-copy p {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.45;
}

.section-copy strong {
  font-size: 18px;
}

body[data-active-screen="instructions"] .info-main-card-frame .info-main-card-content,
body[data-exam-fragment^="Info_"] .info-main-card-frame .info-main-card-content {
  min-height: 0;
  padding: 16px 18px 14px;
}

body[data-active-screen="instructions"] .info-action-card-frame,
body[data-exam-fragment^="Info_"] .info-action-card-frame {
  min-height: 72px;
  padding: 0;
}

.exam-bottom-row {
  padding-top: 18px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex: 0 0 auto;
  position: relative;
  z-index: 120;
  background: var(--stage-bg);
  pointer-events: auto;
  isolation: isolate;
}

body[data-active-screen="exam"] .exam-main:has(.custom-select-shell.is-open) {
  z-index: 7200;
}

.paper-nav {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  background: #ffffff;
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.paper-nav-track {
  flex: 1;
  min-width: 0;
  height: 80px;
  margin-top: -38px;
  padding-top: 38px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
  overflow-anchor: none;
  overscroll-behavior-x: contain;
  pointer-events: auto;
}

.paper-nav-track::-webkit-scrollbar {
  display: none;
}

.paper-item {
  position: relative;
  flex: 0 0 auto;
  min-width: 40px;
  height: 40px;
  border: 0;
  border-right: 1px solid #dbdbdb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #7b7b7b;
  background: #ffffff;
  pointer-events: auto;
}

.paper-item-mark {
  position: absolute;
  left: 50%;
  top: -38px;
  z-index: 5;
  width: 44px;
  height: 38px;
  transform: translateX(-50%);
  border: 1px solid #d7d7d7;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #f3f3f3 0%, #e7e7e7 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  pointer-events: none;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.04);
}

.paper-item-mark-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paper-nav-arrow {
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  border: 0;
  border-right: 1px solid #dbdbdb;
  background: #ffffff;
  color: #666666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.paper-nav-arrow-right {
  border-right: 0;
  border-left: 1px solid #dbdbdb;
}

.paper-item.completed:not(.current) {
  background: #dff5ed;
  color: #23715c;
}

.paper-item.current {
  background: linear-gradient(180deg, #4b76ff 0%, #315eea 100%);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(25, 66, 191, 0.2);
}

.bottom-action,
.bottom-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.bottom-action {
  min-width: 92px;
  padding: 0 16px;
  font-size: 15px;
}

.button-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  line-height: 1;
}

.bottom-action-text {
  line-height: 1;
}

body[data-active-screen="instructions"] .instructions-bottom-action .bottom-action-icon,
body[data-exam-fragment^="Info_"] .bottom-action-icon {
  width: 14px;
  height: 14px;
}

body[data-exam-fragment="2020-G5-1.1a"] .bottom-actions-group {
  gap: 8px;
}

body[data-exam-fragment="2020-G5-1.1a"] .bottom-actions-group .bottom-action:last-child {
  display: inline-flex;
}

body[data-exam-fragment="2020-G5-1.1a"] .paper-nav {
  height: 46px;
  min-height: 46px;
}

body[data-exam-fragment="2020-G5-1.1a"] .paper-nav-track {
  height: 84px;
  margin-top: -40px;
  padding-top: 40px;
}

body[data-exam-fragment="2020-G5-1.1a"] .paper-item {
  flex-basis: 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
}

body[data-exam-fragment="2020-G5-1.1a"] .paper-nav-arrow {
  flex-basis: 34px;
  width: 34px;
  min-width: 34px;
  height: 44px;
  align-self: stretch;
  font-size: 16px;
}

body[data-exam-fragment="2020-G5-1.1a"] .bottom-action {
  height: 46px;
  min-width: 92px;
  padding: 0 15px;
  border: 1px solid #bdbdbd;
  border-radius: 12px;
  background: linear-gradient(180deg, #fdfdfd 0%, #ececec 100%);
  color: #333333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.08);
}

body[data-exam-fragment="2020-G5-1.1a"] .bottom-action:focus-visible {
  outline: 2px solid #0b69d8;
  outline-offset: -4px;
  box-shadow:
    0 0 0 2px rgba(11, 105, 216, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 7px rgba(0, 0, 0, 0.18);
}

body[data-exam-fragment="2020-G5-1.1a"] .bottom-action-icon {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

/* Unified bottom navigation for INFO pages and the first question. */
body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .exam-bottom-row,
body[data-exam-fragment="2020-G5-1.1a"] .wide-stage[data-screen="exam"] .exam-bottom-row,
.wide-stage[data-screen="instructions"] .exam-bottom-row {
  padding-top: 12px;
  gap: 10px;
  background: transparent;
}

body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .paper-nav,
body[data-exam-fragment="2020-G5-1.1a"] .wide-stage[data-screen="exam"] .paper-nav,
.wide-stage[data-screen="instructions"] .paper-nav {
  height: 46px;
  min-height: 46px;
  min-width: 0;
  border-color: #dbdbdb;
  overflow: visible;
}

body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .paper-nav-track,
body[data-exam-fragment="2020-G5-1.1a"] .wide-stage[data-screen="exam"] .paper-nav-track,
.wide-stage[data-screen="instructions"] .paper-nav-track {
  height: 84px;
  margin-top: -40px;
  padding-top: 40px;
}

body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .paper-item,
body[data-exam-fragment="2020-G5-1.1a"] .wide-stage[data-screen="exam"] .paper-item,
.wide-stage[data-screen="instructions"] .paper-item {
  flex-basis: 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  font-size: 12px;
}

body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .paper-nav-arrow,
body[data-exam-fragment="2020-G5-1.1a"] .wide-stage[data-screen="exam"] .paper-nav-arrow,
.wide-stage[data-screen="instructions"] .paper-nav-arrow {
  flex-basis: 34px;
  width: 34px;
  min-width: 34px;
  height: 44px;
  align-self: stretch;
  font-size: 16px;
}

body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .bottom-actions-group,
body[data-exam-fragment="2020-G5-1.1a"] .wide-stage[data-screen="exam"] .bottom-actions-group,
.wide-stage[data-screen="instructions"] .bottom-actions-group {
  gap: 8px;
}

body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .bottom-actions-group .bottom-action:last-child,
body[data-exam-fragment="2020-G5-1.1a"] .wide-stage[data-screen="exam"] .bottom-actions-group .bottom-action:last-child,
.wide-stage[data-screen="instructions"] .bottom-actions-group .bottom-action:last-child {
  display: inline-flex;
}

body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .bottom-action,
body[data-exam-fragment="2020-G5-1.1a"] .wide-stage[data-screen="exam"] .bottom-action,
.wide-stage[data-screen="instructions"] .bottom-action {
  height: 46px;
  min-width: 92px;
  padding: 0 15px;
  border: 1px solid #bdbdbd;
  border-radius: 12px;
  background: linear-gradient(180deg, #fdfdfd 0%, #ececec 100%);
  color: #333333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.08);
}

body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .bottom-action:focus-visible,
body[data-exam-fragment="2020-G5-1.1a"] .wide-stage[data-screen="exam"] .bottom-action:focus-visible,
.wide-stage[data-screen="instructions"] .bottom-action:focus-visible {
  outline: 2px solid #0b69d8;
  outline-offset: -4px;
  box-shadow:
    0 0 0 2px rgba(11, 105, 216, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 7px rgba(0, 0, 0, 0.18);
}

body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .bottom-action-icon,
body[data-exam-fragment="2020-G5-1.1a"] .wide-stage[data-screen="exam"] .bottom-action-icon,
.wide-stage[data-screen="instructions"] .bottom-action-icon {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .bottom-action-icon,
body[data-exam-fragment="2020-G5-1.1a"] .wide-stage[data-screen="exam"] .bottom-action-icon {
  width: 14px;
  height: 14px;
}

/* Rhythm questions 1-4 share the first question's code-built shell. */
body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .wide-stage[data-screen="exam"] {
  padding: 0;
  background: #ffffff;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .wide-stage[data-screen="exam"] .wide-shell {
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  padding: 10px 12px 12px;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .exam-toolbar {
  border: 0;
  border-bottom: 1px solid #ececec;
  border-radius: 0;
  background: transparent;
  padding: 10px 6px;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .toolbar-left,
body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .toolbar-right {
  gap: 8px;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .toolbar-brand {
  margin-right: 6px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .toolbar-button,
body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .bottom-action {
  height: 31px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .toolbar-button {
  min-width: 50px;
  padding: 0 13px;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .end-button {
  min-width: 72px;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) [data-action="open-nav"],
body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) [data-action="restart-flow"] {
  display: none;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .exam-main {
  gap: 14px;
  padding-top: 10px;
  padding-right: 0;
  background: transparent;
  position: relative;
}

.q1-question-followup {
  margin-top: 18px;
  margin-bottom: 0;
}

.chromatic-scale-judgement-statement {
  margin: 0 0 12px;
}

.q1-image-answer-option {
  align-items: flex-start;
  gap: 14px;
}

.q1-option-figure {
  display: block;
  width: 465px;
  max-width: calc(100vw - 170px);
  height: auto;
}

.q1-text-answer-option {
  min-height: 28px;
}

.q1-text-answer {
  color: #111111;
  font-size: 18px;
  line-height: 1.2;
}

.drag-answer-card {
  overflow: visible;
}

.drag-answer-card .q1-answer-card-body {
  position: relative;
  padding: 18px 14px 14px;
  overflow: visible;
}

.time-signature-bank-card .q1-answer-card-body,
.note-name-bank-card .q1-answer-card-body,
.key-signature-bank-card .q1-answer-card-body,
.melody-key-bank-card .q1-answer-card-body,
.scale-clef-bank-card .q1-answer-card-body,
.enharmonic-bank-card .q1-answer-card-body {
  position: relative;
  min-height: 178px;
  padding-bottom: 58px;
  overflow: visible;
}

.compound-rewrite-bank-card .q1-answer-card-body {
  position: relative;
  padding-bottom: 58px;
  overflow: visible;
}

.rhythm-bar-bank-card .q1-answer-card-body {
  position: relative;
  padding-bottom: 58px;
  overflow: visible;
}

.rhythm-fill-bank-card .q1-answer-card-body {
  position: relative;
  min-height: 178px;
  padding-bottom: 58px;
  overflow: visible;
}

@media (max-width: 760px) {
  .rhythm-fill-bank-card .q1-answer-card-body {
    min-height: 0;
    padding-bottom: 16px;
  }

  .rhythm-fill-bank-card .rhythm-fill-check-panel {
    position: static;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    width: 100%;
    margin-top: 18px;
    gap: 8px;
    justify-content: stretch;
  }

  .rhythm-fill-bank-card .rhythm-fill-bank-button {
    width: 100%;
    min-width: 0;
    padding-inline: 4px;
  }

  .rhythm-fill-bank-card .rhythm-fill-bank-count {
    align-self: center;
    min-width: 0;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .rhythm-fill-bank-card .rhythm-fill-check-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .rhythm-fill-bank-card .rhythm-fill-check-result {
    grid-column: 1 / -1;
  }
}

.select-question-bank-card .q1-answer-card-body {
  position: relative;
  min-height: 380px;
  padding-bottom: 58px;
  overflow: visible;
}

.time-signature-check-panel,
.note-name-check-panel,
.key-signature-check-panel,
.melody-key-check-panel,
.scale-clef-check-panel,
.enharmonic-check-panel,
.compound-rewrite-check-panel,
.rhythm-bar-check-panel,
.rhythm-fill-check-panel,
.select-question-check-panel {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.time-signature-bank-button,
.time-signature-check-button,
.note-name-bank-button,
.note-name-check-button,
.key-signature-bank-button,
.key-signature-check-button,
.melody-key-bank-button,
.melody-key-check-button,
.scale-clef-bank-button,
.scale-clef-check-button,
.enharmonic-bank-button,
.enharmonic-check-button,
.compound-rewrite-bank-button,
.compound-rewrite-check-button,
.rhythm-bar-bank-button,
.rhythm-bar-check-button,
.rhythm-fill-bank-button,
.rhythm-fill-check-button,
.select-question-bank-button,
.select-question-check-button {
  height: 32px;
  min-width: 56px;
  padding: 0 10px;
  border: 1px solid #b9b9b9;
  border-radius: 4px;
  background: #ffffff;
  color: #333333;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.time-signature-check-button {
  min-width: 58px;
  padding: 0 12px;
}

.note-name-check-button {
  min-width: 58px;
  padding: 0 12px;
}

.key-signature-check-button {
  min-width: 58px;
  padding: 0 12px;
}

.melody-key-check-button {
  min-width: 58px;
  padding: 0 12px;
}

.scale-clef-check-button {
  min-width: 58px;
  padding: 0 12px;
}

.enharmonic-check-button {
  min-width: 58px;
  padding: 0 12px;
}

.compound-rewrite-check-button {
  min-width: 58px;
  padding: 0 12px;
}

.rhythm-bar-check-button {
  min-width: 58px;
  padding: 0 12px;
}

.rhythm-fill-check-button {
  min-width: 58px;
  padding: 0 12px;
}

.select-question-check-button {
  min-width: 58px;
  padding: 0 12px;
}

.time-signature-bank-button:disabled,
.note-name-bank-button:disabled,
.key-signature-bank-button:disabled,
.melody-key-bank-button:disabled,
.scale-clef-bank-button:disabled,
.enharmonic-bank-button:disabled,
.compound-rewrite-bank-button:disabled,
.rhythm-bar-bank-button:disabled,
.rhythm-fill-bank-button:disabled,
.select-question-bank-button:disabled {
  color: #999999;
  cursor: default;
  opacity: 0.65;
}

.time-signature-bank-button:focus-visible,
.time-signature-check-button:focus-visible,
.note-name-bank-button:focus-visible,
.note-name-check-button:focus-visible,
.key-signature-bank-button:focus-visible,
.key-signature-check-button:focus-visible,
.melody-key-bank-button:focus-visible,
.melody-key-check-button:focus-visible,
.scale-clef-bank-button:focus-visible,
.scale-clef-check-button:focus-visible,
.enharmonic-bank-button:focus-visible,
.enharmonic-check-button:focus-visible,
.compound-rewrite-bank-button:focus-visible,
.compound-rewrite-check-button:focus-visible,
.rhythm-bar-bank-button:focus-visible,
.rhythm-bar-check-button:focus-visible,
.rhythm-fill-bank-button:focus-visible,
.rhythm-fill-check-button:focus-visible,
.select-question-bank-button:focus-visible,
.select-question-check-button:focus-visible {
  outline: 2px solid rgba(255, 47, 76, 0.55);
  outline-offset: 2px;
}

.time-signature-bank-count,
.note-name-bank-count,
.key-signature-bank-count,
.melody-key-bank-count,
.scale-clef-bank-count,
.enharmonic-bank-count,
.compound-rewrite-bank-count,
.rhythm-bar-bank-count,
.rhythm-fill-bank-count,
.select-question-bank-count {
  color: #333333;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.question-bank-jump-control,
.question-bank-jump-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.question-bank-jump-control {
  margin-left: 2px;
}

.question-bank-jump-label {
  color: #333333;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.question-bank-jump-input {
  width: 64px;
  height: 32px;
  padding: 0 5px;
  border: 1px solid #b9b9b9;
  border-radius: 4px;
  background: #ffffff;
  color: #333333;
  font: inherit;
  text-align: center;
}

.question-bank-jump-button {
  height: 32px;
  min-width: 52px;
  padding: 0 9px;
  border: 1px solid #b9b9b9;
  border-radius: 4px;
  background: #ffffff;
  color: #333333;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.question-bank-jump-input:focus-visible,
.question-bank-jump-button:focus-visible {
  outline: 2px solid rgba(255, 47, 76, 0.55);
  outline-offset: 2px;
}

.time-signature-check-result,
.note-name-check-result,
.key-signature-check-result,
.melody-key-check-result,
.scale-clef-check-result,
.enharmonic-check-result,
.compound-rewrite-check-result,
.rhythm-bar-check-result,
.rhythm-fill-check-result,
.select-question-check-result {
  min-width: 38px;
  color: #333333;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.time-signature-check-result.is-correct,
.note-name-check-result.is-correct,
.key-signature-check-result.is-correct,
.melody-key-check-result.is-correct,
.scale-clef-check-result.is-correct,
.enharmonic-check-result.is-correct,
.compound-rewrite-check-result.is-correct,
.rhythm-bar-check-result.is-correct,
.rhythm-fill-check-result.is-correct,
.select-question-check-result.is-correct {
  color: #1f7a3a;
}

.time-signature-check-result.is-incorrect,
.note-name-check-result.is-incorrect,
.key-signature-check-result.is-incorrect,
.melody-key-check-result.is-incorrect,
.scale-clef-check-result.is-incorrect,
.enharmonic-check-result.is-incorrect,
.compound-rewrite-check-result.is-incorrect,
.rhythm-bar-check-result.is-incorrect,
.rhythm-fill-check-result.is-incorrect,
.select-question-check-result.is-incorrect {
  color: #c8163a;
}

.time-signature-check-result.is-incomplete,
.note-name-check-result.is-incomplete,
.key-signature-check-result.is-incomplete,
.melody-key-check-result.is-incomplete,
.scale-clef-check-result.is-incomplete,
.enharmonic-check-result.is-incomplete,
.compound-rewrite-check-result.is-incomplete,
.rhythm-bar-check-result.is-incomplete,
.rhythm-fill-check-result.is-incomplete,
.select-question-check-result.is-incomplete {
  color: #6c6c6c;
}

.drag-interval-check-panel {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.drag-interval-bank-button {
  height: 32px;
  min-width: 56px;
  padding: 0 10px;
  border: 1px solid #b9b9b9;
  border-radius: 4px;
  background: #ffffff;
  color: #333333;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.drag-interval-bank-button:disabled {
  color: #999999;
  cursor: default;
  opacity: 0.65;
}

.drag-interval-bank-button:focus-visible {
  outline: 2px solid rgba(255, 47, 76, 0.55);
  outline-offset: 2px;
}

.drag-interval-bank-count {
  color: #333333;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.drag-interval-check-button {
  height: 32px;
  min-width: 58px;
  padding: 0 12px;
  border: 1px solid #b9b9b9;
  border-radius: 4px;
  background: #ffffff;
  color: #333333;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.drag-interval-check-button:focus-visible {
  outline: 2px solid rgba(255, 47, 76, 0.55);
  outline-offset: 2px;
}

.drag-interval-check-result {
  min-width: 38px;
  color: #333333;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.drag-interval-check-result.is-correct {
  color: #1f7a3a;
}

.drag-interval-check-result.is-incorrect {
  color: #c8163a;
}

.drag-answer-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
  max-width: none;
}

.drag-option-panel {
  flex: 0 0 150px;
  padding-top: 16px;
}

.drag-option-heading {
  margin: 0 0 10px;
  color: #333333;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.drag-option-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.drag-option-button {
  width: 132px;
  min-height: 62px;
  padding: 4px 0 8px;
  border: 0;
  border-bottom: 1px dashed #111111;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  cursor: grab;
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

.drag-option-button:active,
.drag-option-button.is-dragging {
  cursor: grabbing;
}

.drag-option-button.is-dragging .drag-option-figure {
  opacity: 0;
}

.drag-option-button.is-selected {
  background: transparent;
}

.drag-option-button.is-used {
  cursor: default;
}

.drag-option-button:focus-visible {
  outline: 2px solid rgba(255, 47, 76, 0.55);
  outline-offset: 3px;
}

.drag-option-figure {
  display: block;
  max-height: 74px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.drag-option-figure.is-hidden-option {
  opacity: 0;
}

.drag-option-figure[data-vexflow-note-option],
.drag-placed-note[data-vexflow-note-option] {
  overflow: visible;
}

.drag-option-figure[data-vexflow-note-option] {
  position: relative;
  pointer-events: auto;
}

.drag-option-figure[data-vexflow-note-option] svg,
.drag-option-figure[data-vexflow-note-option] svg *,
.drag-placed-note[data-vexflow-note-option] svg,
.drag-placed-note[data-vexflow-note-option] svg * {
  pointer-events: none;
}

.vexflow-note-hover-frame {
  position: absolute;
  box-sizing: border-box;
  border: 1px dashed #c8163a;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
}

[data-vexflow-note-option].is-note-hovered .vexflow-note-hover-frame {
  opacity: 1;
}

.drag-staff-stage {
  position: relative;
  flex: 0 1 auto;
  margin-top: 28px;
  overflow: visible;
}

.drag-staff-image {
  display: block;
  width: 664px;
  max-width: 100%;
  height: auto;
  user-select: none;
}

.drag-drop-zone {
  position: absolute;
  z-index: 2;
  left: 43.7%;
  top: 1%;
  width: 32%;
  height: 96.5%;
  border-radius: 12px;
  background: transparent;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.drag-drop-zone.is-drag-over,
.drag-drop-zone:focus-visible {
  background: rgba(255, 47, 76, 0.08);
  box-shadow: inset 0 0 0 2px rgba(255, 47, 76, 0.35);
  outline: none;
}

.drag-answer-stage[data-drag-stage="true"] .drag-drop-zone.is-drag-over,
.drag-answer-stage[data-drag-stage="true"] .drag-drop-zone:focus-visible {
  background: transparent;
  box-shadow: none;
}

.drag-placed-note {
  position: absolute;
  z-index: 8;
  transform: translate(-50%, -50%);
  max-width: 110px;
  max-height: 118px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.drag-placed-note[data-vexflow-note-option] {
  cursor: grab;
  max-width: none;
  max-height: none;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

.drag-placed-note[data-vexflow-note-option].is-dragging,
.drag-placed-note[data-vexflow-note-option].is-pointer-dragging {
  z-index: 20;
  cursor: grabbing;
}

.drag-placed-note[data-vexflow-note-option].is-option-pointer-dragging {
  z-index: 16;
  pointer-events: none;
}

.drag-placed-note[data-vexflow-note-option].is-dragging {
  opacity: 0;
}

.q1-fill-answer-list {
  margin: 0;
  padding: 0;
  color: #111111;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 18px;
  line-height: 1.35;
  list-style: none;
}

.q1-fill-answer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.q1-fill-bullet {
  margin-right: 3px;
  font-size: 22px;
  line-height: 1;
}

.q1-fill-term {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
  line-height: 1;
}

.q1-fill-time-signature {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  color: #111111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  transform: translateY(1px);
}

.q5-inline-rhythm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: -14px 2px -12px;
  overflow: visible;
  vertical-align: middle;
}

.q5-inline-rhythm svg {
  display: block;
  overflow: visible;
}

.q1-fill-after-figure {
  display: inline-flex;
  align-items: center;
}

.q1-fill-inline-answer {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.q1-fill-input {
  width: 238px;
  height: 42px;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  padding: 0 10px;
  text-align: center;
  outline: none;
}

.q1-fill-input:focus {
  border-color: #777777;
  box-shadow: 0 0 0 2px rgba(255, 47, 70, 0.14);
}

body[data-exam-fragment="2020-G5-1.3"] .q1-fill-answer-list {
  gap: 22px;
  line-height: 1.5;
}

body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 0;
  align-items: start;
}

body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row .q1-fill-bullet {
  margin: 0;
  padding-top: 0.28em;
  justify-self: center;
}

body[data-exam-fragment="2020-G5-1.3"] .q5-fill-sentence {
  display: block;
  min-width: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body[data-exam-fragment="2020-G5-1.3"] .q1-fill-middle:empty {
  display: none;
}

body[data-exam-fragment="2020-G5-1.3"] .q5-fill-leading {
  display: inline;
}

body[data-exam-fragment="2020-G5-1.3"] .q5-fill-figure-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

body[data-exam-fragment="2020-G5-1.3"] .q5-fill-equation {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-left: 4px;
  vertical-align: middle;
}

body[data-exam-fragment="2020-G5-1.3"] .q5-fill-figure-clause,
body[data-exam-fragment="2020-G5-1.3"] .q5-fill-input-clause {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

body[data-exam-fragment="2020-G5-1.3"] .q5-fill-sentence .q1-fill-time-signature {
  margin: 0 4px;
  vertical-align: middle;
  transform: none;
}

body[data-exam-fragment="2020-G5-1.3"] .q5-fill-sentence .q5-inline-rhythm {
  margin: 0 5px;
  vertical-align: middle;
  transform: none;
}

body[data-exam-fragment="2020-G5-1.3"] .q5-fill-sentence .q1-fill-input {
  width: 150px;
  margin: 0 5px;
  vertical-align: middle;
}

body[data-exam-fragment="2020-G5-1.3"] .q5-fill-equation .q5-inline-rhythm,
body[data-exam-fragment="2020-G5-1.3"] .q5-fill-equation .q1-fill-input {
  margin: 0;
}

.q7-select-answer-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 4px 0 116px;
  position: relative;
  z-index: 2;
}

.q7-select-answer-row {
  display: grid;
  grid-template-columns: 120px 224px;
  align-items: center;
  column-gap: 40px;
  min-height: 48px;
  position: relative;
  z-index: 1;
}

.q7-select-answer-list--wide-label .q7-select-answer-row {
  grid-template-columns: 260px 224px;
  column-gap: 30px;
}

.q7-select-answer-list--wide-label .q7-select-label {
  white-space: nowrap;
}

.q7-select-answer-row.is-open,
.q7-select-answer-row:has(.q7-select-shell.is-open) {
  z-index: 7000;
}

.q7-select-label {
  color: #111111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.q7-select-shell {
  position: relative;
  width: 224px;
  height: 41px;
  overflow: visible;
  isolation: isolate;
  box-sizing: border-box;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--test-surface);
}

.q7-select-shell::before {
  content: "";
  display: none;
  position: absolute;
  inset: -1px;
  z-index: 1;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--test-surface);
}

.q7-select-shell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 3;
  width: 10px;
  height: 6px;
  margin-top: -3px;
  background: no-repeat center / 10px 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235e5e5e' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  pointer-events: none;
}

.q7-select-shell.is-open {
  z-index: 7000;
  border-color: #9d9d9d;
}

.q7-select-shell.is-open::before {
  border-color: #9d9d9d;
}

.q7-select-value {
  position: absolute;
  inset: 0 34px 0 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 18px;
  overflow: visible;
  background: transparent;
  color: #333333;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: none;
}

.q7-select-value.is-placeholder {
  color: #333333;
}

.q7-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: -9px;
  z-index: 31;
  width: 224px;
  min-width: 224px;
  padding: 6px 5px;
  border: 1px solid #3d3d3d;
  border-radius: 8px;
  background: #707070;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.q7-select-menu--fixed {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 7100;
  visibility: hidden;
  max-height: min(180px, calc(100svh - 24px));
  overflow-y: auto;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}

.q7-select-menu--fixed.is-positioned {
  visibility: visible;
}

.q7-select-menu--fixed .q7-select-option {
  pointer-events: auto;
  touch-action: manipulation;
}

.q7-select-option {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 2px;
  font-size: 18px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.q7-select-option.is-selected {
  background: #4e92ed;
}

.q7-select-option:hover {
  background: #5c9bf0;
}

.q7-select-option-check {
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.q7-select-answer-card {
  overflow: visible;
}

.q7-select-answer-card .q1-answer-card-body {
  min-height: 300px;
  overflow: visible;
}

body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] {
  padding: 0;
  background: #ffffff;
}

body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .wide-shell {
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  padding: 10px 12px 12px;
}

body[data-exam-shell="unified-question"] .exam-toolbar {
  border: 0;
  border-bottom: 1px solid #ececec;
  border-radius: 0;
  background: transparent;
  padding: 10px 6px;
}

body[data-exam-shell="unified-question"] .toolbar-left,
body[data-exam-shell="unified-question"] .toolbar-right {
  gap: 8px;
}

body[data-exam-shell="unified-question"] .toolbar-brand {
  margin-right: 6px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

body[data-exam-shell="unified-question"] .toolbar-button,
body[data-exam-shell="unified-question"] .bottom-action {
  height: 31px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body[data-exam-shell="unified-question"] .toolbar-button {
  min-width: 50px;
  padding: 0 13px;
}

body[data-exam-shell="unified-question"] .end-button {
  min-width: 72px;
}

body[data-exam-shell="unified-question"] .timer-pill {
  min-width: 72px;
  height: 31px;
  border-radius: 8px;
  font-size: 12px;
}

body[data-exam-shell="unified-question"] [data-action="open-nav"],
body[data-exam-shell="unified-question"] [data-action="restart-flow"] {
  display: none;
}

body[data-exam-shell="unified-question"] .exam-main {
  gap: 14px;
  padding-top: 10px;
  padding-right: 0;
  background: transparent;
  position: relative;
}

body[data-exam-shell="unified-question"] .info-action-card-frame {
  min-height: 72px;
  padding: 0;
  container-type: normal;
}

body[data-exam-shell="unified-question"] .info-action-card-body {
  min-height: 72px;
}

body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .exam-bottom-row {
  padding-top: 12px;
  gap: 10px;
  background: transparent;
}

body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .paper-nav {
  height: 46px;
  min-height: 46px;
  min-width: 0;
  border-color: #dbdbdb;
  overflow: visible;
}

body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .paper-nav-track {
  height: 84px;
  margin-top: -40px;
  padding-top: 40px;
}

body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .paper-item {
  flex-basis: 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  font-size: 12px;
}

body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .paper-nav-arrow {
  flex-basis: 34px;
  width: 34px;
  min-width: 34px;
  height: 44px;
  align-self: stretch;
  font-size: 16px;
}

body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .bottom-actions-group {
  gap: 8px;
}

body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .bottom-actions-group .bottom-action:last-child {
  display: inline-flex;
}

body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .bottom-action {
  height: 46px;
  min-width: 92px;
  padding: 0 15px;
  border: 1px solid #bdbdbd;
  border-radius: 12px;
  background: linear-gradient(180deg, #fdfdfd 0%, #ececec 100%);
  color: #333333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.08);
}

body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .bottom-action:focus-visible {
  outline: 2px solid #0b69d8;
  outline-offset: -4px;
  box-shadow:
    0 0 0 2px rgba(11, 105, 216, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 7px rgba(0, 0, 0, 0.18);
}

body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .bottom-action-icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .info-action-card-frame {
  min-height: 72px;
  padding: 0;
  container-type: normal;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .info-action-card-body {
  min-height: 72px;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .wide-stage[data-screen="exam"] .exam-bottom-row {
  padding-top: 12px;
  gap: 10px;
  background: transparent;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .wide-stage[data-screen="exam"] .paper-nav {
  height: 46px;
  min-height: 46px;
  min-width: 0;
  border-color: #dbdbdb;
  overflow: visible;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .wide-stage[data-screen="exam"] .paper-nav-track {
  height: 84px;
  margin-top: -40px;
  padding-top: 40px;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .wide-stage[data-screen="exam"] .paper-item {
  flex-basis: 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  font-size: 12px;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .wide-stage[data-screen="exam"] .paper-nav-arrow {
  flex-basis: 34px;
  width: 34px;
  min-width: 34px;
  height: 44px;
  align-self: stretch;
  font-size: 16px;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .wide-stage[data-screen="exam"] .bottom-actions-group {
  gap: 8px;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .wide-stage[data-screen="exam"] .bottom-actions-group .bottom-action:last-child {
  display: inline-flex;
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .wide-stage[data-screen="exam"] .bottom-action {
  height: 46px;
  min-width: 92px;
  padding: 0 15px;
  border: 1px solid #bdbdbd;
  border-radius: 12px;
  background: linear-gradient(180deg, #fdfdfd 0%, #ececec 100%);
  color: #333333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.08);
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .wide-stage[data-screen="exam"] .bottom-action:focus-visible {
  outline: 2px solid #0b69d8;
  outline-offset: -4px;
  box-shadow:
    0 0 0 2px rgba(11, 105, 216, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 7px rgba(0, 0, 0, 0.18);
}

body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .wide-stage[data-screen="exam"] .bottom-action-icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

body[data-active-screen="results"],
body[data-active-screen="results"] .mock-app {
  background: #ffffff;
}

.results-stage {
  min-height: 100vh;
  background: #ffffff;
  color: #333333;
  overflow: auto;
}

.results-page {
  min-width: 980px;
  padding: 0 0 42px;
  font-size: 16px;
  line-height: 1.35;
}

.results-header {
  min-height: 210px;
  padding: 26px 28px 24px;
  border-bottom: 1px solid #eeeeee;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.results-header h1 {
  margin: 0 0 14px;
  color: #333333;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}

.results-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 110px minmax(240px, 1fr);
  row-gap: 4px;
  column-gap: 18px;
}

.results-meta div {
  display: contents;
}

.results-meta dt {
  color: #222222;
  font-weight: 700;
}

.results-meta dd {
  margin: 0;
}

.results-actions {
  margin-top: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.results-action-button {
  min-width: 132px;
}

.results-saved-message {
  padding: 42px 28px 48px;
  border-bottom: 1px solid #eeeeee;
  color: #333333;
  font-size: 25px;
  font-weight: 700;
}

.results-summary-grid {
  padding: 20px 28px 16px;
  border-bottom: 1px solid #eeeeee;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 430px);
  gap: 28px;
  align-items: start;
}

.results-summary-copy h2,
.results-category-section h2,
.results-answer-section h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

.results-summary-copy p {
  margin: 8px 0 0;
}

.results-score-panel {
  text-align: center;
}

.results-score-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.results-score-panel strong {
  height: 36px;
  border: 1px solid #eeeeee;
  border-radius: 5px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  font-size: 21px;
  font-weight: 400;
}

.results-score-bar {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.results-score-fill {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: var(--score-percent, 0%);
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 98, 120, 0.92) 0%, rgba(255, 35, 77, 0.9) 100%);
}

.results-score-bar.is-pass .results-score-fill {
  background: linear-gradient(180deg, rgba(238, 183, 75, 0.92) 0%, rgba(212, 144, 24, 0.9) 100%);
}

.results-score-bar.is-good .results-score-fill {
  background: linear-gradient(180deg, rgba(95, 180, 126, 0.92) 0%, rgba(45, 139, 80, 0.9) 100%);
}

.results-score-bar.is-excellent .results-score-fill {
  background: linear-gradient(180deg, rgba(67, 160, 213, 0.92) 0%, rgba(31, 116, 175, 0.9) 100%);
}

.results-score-text {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.results-category-section {
  padding: 8px 28px 24px;
}

.results-practice-guide {
  margin: 0 28px 32px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
  padding: 24px;
  box-shadow: 0 12px 28px rgba(30, 58, 138, 0.08);
}

.results-practice-guide-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(320px, 1.35fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
}

.results-practice-guide-heading > div > p {
  margin: 0 0 4px;
  color: #3b82f6;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.results-practice-guide-heading h2 {
  margin: 0;
  color: #1e3a8a;
  font-size: 22px;
  line-height: 1.25;
}

.results-practice-guide-message {
  margin: 0;
  color: #475569;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.results-practice-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.results-practice-card {
  min-width: 0;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #c7ddff;
  border-radius: 10px;
  background: #ffffff;
  color: #1e3a8a;
  padding: 18px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.07);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.results-practice-card:hover,
.results-practice-card:focus-visible {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 12px 26px rgba(30, 58, 138, 0.14);
  outline: none;
}

.results-practice-card-kicker {
  margin-bottom: 8px;
  color: #3b82f6;
  font-size: 12px;
  font-weight: 900;
}

.results-practice-card strong {
  color: #1e3a8a;
  font-size: 20px;
  line-height: 1.25;
}

.results-practice-card-score {
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.results-practice-card-action {
  margin-top: auto;
  padding-top: 16px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 900;
}

.results-section-list {
  width: min(100%, 760px);
  margin-left: auto;
}

.results-section-row {
  min-height: 26px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 430px);
  align-items: center;
  gap: 20px;
}

.results-section-name {
  font-weight: 700;
}

.results-section-score {
  height: 23px;
  border: 1px solid #eeeeee;
  border-radius: 5px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.results-answer-section {
  padding: 0 0 36px;
}

.results-answer-section h2 {
  padding: 0 28px;
}

.results-answer-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.results-answer-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.results-answer-table th {
  padding: 10px 0;
  color: #333333;
  font-weight: 700;
  text-align: center;
}

.results-answer-table th:first-child {
  width: 43%;
}

.results-answer-table th:nth-child(2) {
  width: 45%;
}

.results-answer-table th:last-child {
  width: 12%;
}

.results-answer-section-heading td {
  padding: 14px 0 8px;
  color: #333333;
  font-weight: 700;
}

.results-answer-row {
  background: #f2f2f2;
  border-bottom: 1px solid #ffffff;
}

.results-answer-row:nth-child(odd) {
  background: #fafafa;
}

.results-answer-row td {
  min-height: 58px;
  padding: 12px 0;
  vertical-align: top;
}

.results-answer-prompt {
  padding-left: 0;
  padding-right: 18px;
}

.results-answer-feedback {
  padding-right: 18px;
}

.results-answer-feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  text-align: center;
}

.results-answer-mini-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.results-answer-line {
  display: block;
}

.results-answer-status {
  padding-right: 8px;
  text-align: right;
  font-weight: 700;
}

.results-answer-status.is-correct {
  color: #1f7a3a;
}

.results-answer-status.is-incorrect,
.results-answer-status.is-unanswered {
  color: #d13030;
}

.results-answer-status.is-partial,
.results-answer-status.is-pending {
  color: #8a6a00;
}

body[data-activity-mode="wrong-review"] .toolbar-right,
body[data-activity-mode="wrong-review"] .timer-pill,
body[data-activity-mode="wrong-review"] .toolbar-button[data-action="open-nav"],
body[data-activity-mode="wrong-review"] .bottom-actions-group {
  display: none;
}

body[data-activity-mode="wrong-review"] .exam-bottom-row {
  grid-template-columns: minmax(0, 1fr);
}

body[data-activity-mode="single-practice"] .timer-pill,
body[data-activity-mode="single-practice"] .end-button,
body[data-activity-mode="single-practice"] .toolbar-button[data-action="open-nav"],
body[data-activity-mode="single-practice"] .exam-bottom-row,
body[data-activity-mode="single-practice"] .bottom-actions-group {
  display: none;
}

.wrong-review-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wrong-review-status-card {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wrong-review-status-copy h1 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.wrong-review-status-copy p {
  margin: 4px 0 0;
  color: #444444;
  font-size: 17px;
}

.wrong-review-status-actions {
  flex: 0 0 auto;
}

.wrong-review-home-button {
  min-width: 128px;
}

.wrong-review-feedback-card {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
}

.wrong-review-feedback-card strong {
  font-size: 20px;
}

.wrong-review-feedback-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.wrong-review-feedback-next-button {
  display: none;
}

.wrong-review-feedback-card.is-correct {
  border-color: #9ad6ad;
  background: #f2fff6;
  color: #1f7a3a;
}

.wrong-review-feedback-card.is-incorrect,
.wrong-review-feedback-card.is-unanswered {
  border-color: #f0b9b9;
  background: #fff5f5;
  color: #c82f2f;
}

.wrong-review-feedback-card.is-partial,
.wrong-review-feedback-card.is-pending {
  border-color: #edd596;
  background: #fff9e8;
  color: #8a6514;
}

.single-practice-feedback-card {
  width: min(100%, 520px);
  margin-top: 16px;
  border: 1px solid #d7e6f8;
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.single-practice-feedback-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 15px;
  font-weight: 700;
}

.single-practice-feedback-copy strong {
  font-size: 20px;
}

.single-practice-feedback-note,
.single-practice-feedback-score {
  color: inherit;
  opacity: 0.9;
}

.single-practice-feedback-card.is-correct {
  border-color: #9ad6ad;
  background: #f2fff6;
  color: #1f7a3a;
}

.single-practice-feedback-card.is-incorrect,
.single-practice-feedback-card.is-unanswered {
  border-color: #f0b9b9;
  background: #fff5f5;
  color: #c82f2f;
}

.single-practice-feedback-card.is-partial,
.single-practice-feedback-card.is-pending {
  border-color: #edd596;
  background: #fff9e8;
  color: #8a6514;
}

.single-practice-next-button {
  min-height: 42px;
  border: 1px solid #1e3a8a;
  border-radius: 6px;
  background: #ffffff;
  color: #1e3a8a;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 800;
}

.single-practice-next-button:hover,
.single-practice-next-button:focus-visible {
  background: #eff6ff;
  outline: none;
}

.wrong-review-nav-status {
  min-height: 48px;
  border-left: 1px solid var(--nav-border);
  border-right: 1px solid var(--nav-border);
  background: #ffffff;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #333333;
  font-size: 18px;
  font-weight: 700;
}

.end-test-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 9vh 24px 24px;
  background: rgba(0, 0, 0, 0.76);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.end-test-dialog {
  width: min(76vw, 1180px);
  min-width: 720px;
  border: 1px solid #a9a9a9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.end-test-dialog-header {
  min-height: 86px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.end-test-dialog-header h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.end-test-dialog-close {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #bdbdbd;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.end-test-dialog-body {
  padding: 42px 28px 60px;
}

.end-test-dialog-copy {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 700;
}

.end-test-unanswered-alert {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid #f1cfd2;
  border-radius: 6px;
  background: #f6dfe1;
  color: #c94b4b;
  font-size: 26px;
}

.end-test-dialog-footer {
  min-height: 114px;
  padding: 22px 28px;
  border-top: 1px solid #e6e6e6;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.end-test-confirm-button,
.end-test-cancel-button {
  min-width: 128px;
  height: 66px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
}

.end-test-cancel-button {
  background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
}

.auth-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  padding: 18vh 24px 24px;
  background: rgba(15, 23, 42, 0.58);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.auth-dialog {
  width: min(92vw, 520px);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.26);
  overflow: hidden;
}

.auth-dialog-header {
  min-height: 70px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #dbeafe;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-dialog-header h2 {
  margin: 0;
  color: #1e3a8a;
  font-size: 24px;
  font-weight: 800;
}

.auth-dialog-close {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.auth-dialog-body {
  padding: 28px 24px 30px;
  color: #334155;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.65;
}

.auth-dialog-body p {
  margin: 0 0 10px;
}

.auth-dialog-body p:last-child {
  margin-bottom: 0;
}

.auth-dialog-footer {
  padding: 18px 24px 22px;
  border-top: 1px solid #dbeafe;
  background: #f8fbff;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  .results-actions,
  .end-test-dialog-overlay,
  .mobile-splash {
    display: none !important;
  }

  .results-stage {
    overflow: visible;
  }

  .results-page {
    min-width: 0;
    padding: 0;
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 1240px) {
  .narrow-shell {
    width: 100%;
    min-width: 980px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .mock-app {
    min-height: 100svh;
  }

  .start-stage {
    min-height: 100svh;
    padding: 26px 18px 34px;
    align-items: flex-start;
  }

  .start-shell {
    align-items: stretch;
    gap: 16px;
  }

  .start-header {
    display: none;
  }

  .start-dashboard {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .start-dashboard-greeting {
    min-height: 138px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .start-dashboard-hello {
    font-size: 28px;
  }

  .start-dashboard-note {
    margin-top: 6px;
    font-size: 15px;
  }

  .start-dashboard-stats {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .start-dashboard-stats::-webkit-scrollbar,
  .start-card-grid::-webkit-scrollbar {
    display: none;
  }

  .start-dashboard-stat {
    flex: 0 0 34%;
    min-width: 102px;
    padding: 16px 12px;
    border-left: 1px solid #dbeafe;
    scroll-snap-align: start;
  }

  .start-dashboard-stat:first-child {
    border-left: 0;
  }

  .start-dashboard-stat-value {
    font-size: 28px;
  }

  .start-dashboard-stat-label {
    font-size: 12px;
  }

  .start-auth-bar {
    min-height: 0;
    justify-content: flex-start;
  }

  .start-auth-bar:empty {
    display: none;
  }

  .start-auth-status {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }

  .start-auth-button {
    width: 100%;
  }

  .start-header h1 {
    font-size: 30px;
  }

  .start-subtitle {
    font-size: 17px;
  }

  .start-panel h2 {
    display: none;
  }

  .start-card-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .start-card-group {
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    grid-column: auto;
    gap: 10px;
  }

  .start-card {
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 86px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 4px;
    align-items: center;
    scroll-snap-align: none;
  }

  .start-card-primary-group .start-card,
  .start-card-preview {
    min-height: 86px;
  }

  .start-card-group .start-card {
    flex-basis: auto;
    min-width: 0;
  }

  .start-card-head {
    display: contents;
  }

  .start-card-label {
    grid-column: 2;
    grid-row: 1;
    font-size: 19px;
    line-height: 1.24;
  }

  .start-card-wide-muted .start-card-label {
    grid-column: 2;
    grid-row: 1;
  }

  .start-lock-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    align-self: center;
    justify-self: center;
  }

  .start-account-icon,
  .start-feedback-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    align-self: center;
    justify-self: center;
  }

  .start-card-wide-muted .start-lock-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: center;
  }

  .start-card-copy {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.42;
  }

  .start-card-wide-muted .start-card-copy {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
    margin-top: 0;
  }

  .start-exam-options {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .login-stage {
    min-height: 100svh;
    align-items: flex-start;
    padding: 34px 18px;
  }

  .login-panel {
    padding: 22px 18px;
  }

  .login-copy h1 {
    font-size: 26px;
  }

  .login-code-row {
    grid-template-columns: 1fr;
  }

  .login-code-button {
    width: 100%;
  }

  .login-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .login-button {
    width: 100%;
  }

  .feedback-upload-card {
    display: grid;
    align-items: stretch;
  }

  .feedback-file-button {
    width: 100%;
  }

  .feedback-preview {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .feedback-preview img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
  }

  .single-practice-stage {
    min-height: 100svh;
    padding: 26px 18px 34px;
  }

  .single-practice-shell {
    gap: 14px;
  }

  .single-practice-hero {
    display: grid;
    gap: 16px;
    padding: 22px;
  }

  .single-practice-kicker {
    font-size: 12px;
  }

  .single-practice-hero h1 {
    font-size: 30px;
  }

  .single-practice-hero p:not(.single-practice-kicker) {
    font-size: 14px;
  }

  .single-practice-home-button {
    width: 100%;
  }

  .single-practice-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .single-practice-card {
    min-height: 88px;
    grid-template-columns: minmax(0, 1fr);
    padding: 15px 16px;
  }

  .single-practice-card-title {
    font-size: 19px;
  }

  .single-practice-card-copy {
    font-size: 13px;
  }

  .exam-preview-stage {
    min-height: 100svh;
    padding: 26px 18px 34px;
  }

  .exam-preview-shell {
    gap: 14px;
  }

  .exam-preview-hero {
    display: grid;
    gap: 16px;
    padding: 22px;
  }

  .exam-preview-hero h1 {
    font-size: 30px;
  }

  .exam-preview-home-button {
    width: 100%;
  }

  .exam-preview-paper-card {
    padding: 18px;
  }

  .exam-preview-paper-heading {
    display: grid;
  }

  .narrow-shell {
    width: 100%;
    min-width: 0;
    min-height: 100svh;
    border-left: 0;
    border-right: 0;
  }

  .simple-header {
    height: auto;
    min-height: 58px;
    padding: 14px 18px;
  }

  .brand-line,
  .toolbar-brand {
    font-size: 14px;
    letter-spacing: 0;
  }

  .title-band {
    padding: 16px 18px 13px;
  }

  .title-band h1,
  .entry-page-title {
    font-size: 17px;
    line-height: 1.32;
  }

  .landing-info-panel,
  .landing-features-panel,
  .theme-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .landing-info-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 24px;
  }

  .meta-grid {
    grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 8px;
  }

  .meta-grid dt,
  .meta-grid dd {
    min-width: 0;
    font-size: 14px;
    word-break: break-word;
  }

  .landing-start-panel {
    padding-top: 0;
  }

  .landing-start-button,
  .theme-continue-button {
    width: 100%;
    min-width: 0;
    height: 42px;
    font-size: 16px;
  }

  .landing-features-panel {
    margin-top: 18px;
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .rule-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .rule-card {
    min-height: 92px;
    padding: 12px 10px;
    font-size: 14px;
  }

  .theme-grid {
    grid-template-columns: 1fr;
  }

  .wide-stage,
  body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] {
    height: 100dvh;
    padding: 0;
    background: #ffffff;
    overflow: hidden;
  }

  .wide-shell,
  body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .wide-shell {
    height: 100dvh;
    padding: 8px 10px 10px;
    background: #ffffff;
  }

  .exam-toolbar,
  body[data-exam-shell="unified-question"] .exam-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    align-items: stretch;
    padding: 8px 0 10px;
    border: 0;
    border-bottom: 1px solid #ececec;
    border-radius: 0;
    background: transparent;
  }

  .toolbar-left,
  .toolbar-right,
  body[data-exam-shell="unified-question"] .toolbar-left,
  body[data-exam-shell="unified-question"] .toolbar-right {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .toolbar-left,
  body[data-exam-shell="unified-question"] .toolbar-left {
    justify-content: flex-start;
  }

  .toolbar-right,
  body[data-exam-shell="unified-question"] .toolbar-right {
    justify-content: flex-end;
  }

  .toolbar-brand,
  body[data-exam-shell="unified-question"] .toolbar-brand {
    flex: 1 0 100%;
    margin-right: 0;
    font-size: 14px;
    font-weight: 400;
  }

  .toolbar-button,
  .bottom-action,
  body[data-exam-shell="unified-question"] .toolbar-button,
  body[data-exam-shell="unified-question"] .bottom-action {
    height: 38px;
    border-radius: 9px;
    font-size: 13px;
  }

  .toolbar-button,
  body[data-exam-shell="unified-question"] .toolbar-button {
    min-width: 0;
    padding: 0 11px;
  }

  .end-button,
  body[data-exam-shell="unified-question"] .end-button {
    min-width: 76px;
  }

  .timer-pill,
  body[data-exam-shell="unified-question"] .timer-pill {
    min-width: 66px;
    height: 38px;
    border-radius: 9px;
    font-size: 12px;
  }

  body[data-active-screen="exam"] [data-action="open-nav"],
  body[data-active-screen="exam"] [data-action="restart-flow"],
  body[data-active-screen="exam"] [data-action="go-theme"],
  body[data-active-screen="instructions"] .toolbar-right [data-action="go-theme"] {
    display: none;
  }

  .exam-main,
  body[data-exam-shell="unified-question"] .exam-main {
    gap: 10px;
    padding-top: 10px;
    padding-right: 0;
    padding-bottom: 64px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-padding-bottom: 64px;
    scrollbar-gutter: auto;
    -webkit-overflow-scrolling: touch;
  }

  .notation-render-loading-card {
    inset: 10px 0 64px;
    min-height: 360px;
    border-radius: 24px;
  }

  .exam-main::-webkit-scrollbar {
    width: 0;
  }

  .info-frame,
  .info-main-card-frame,
  .info-action-card-frame,
  .q1-card-stack,
  .q1-reference-card,
  .q1-answer-card {
    max-width: 100%;
    min-width: 0;
  }

  .info-main-card-content,
  .info-main-card-body,
  .q1-question-card-body,
  .q1-reference-card-body {
    padding: 14px 12px 13px;
  }

  .info-main-card-content h1,
  .info-main-card-content h2 {
    font-size: 20px;
  }

  .bullet-copy,
  .info-main-copy,
  .info-main-list p,
  .q1-question-prompt,
  .q1-question-followup {
    font-size: 16px;
    line-height: 1.45;
  }

  .q1-answer-card-body {
    width: 100%;
    min-height: 0;
    padding: 14px 12px;
    gap: 12px;
  }

  .q1-answer-options,
  .enharmonic-choice-answer-options,
  .compound-rewrite-answer-options {
    width: 100%;
  }

  .q1-answer-option {
    max-width: 100%;
    min-height: 42px;
  }

  .q1-text-answer {
    font-size: 17px;
  }

  .answer-submit {
    min-width: 82px;
    min-height: 56px;
    height: 56px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
  }

  .q1-answer-button {
    width: auto;
    min-width: 72px;
    min-height: 48px;
    height: 48px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 16px;
  }

  .q1-question-figure,
  .q1-question-content-image,
  .q1-reference-image,
  .q1-vexflow-staff,
  .q1-vexflow-staff svg,
  .key-signature-note-preview,
  .key-signature-note-preview-staff,
  .pitch-relation-staff,
  .cadence-harmonisation-system-staff,
  .music-context-system-staff,
  .music-context-comparison-staff {
    max-width: 100%;
  }

  .music-context-comparison-item {
    min-width: 0;
    width: 100%;
  }

  .music-context-system-staff svg,
  .music-context-comparison-staff svg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .music-knowledge-statement {
    font-size: 20px;
  }

  .term-meaning-term {
    margin-top: 28px;
    font-size: 26px;
  }

  .drag-answer-stage {
    flex-direction: column;
    gap: 14px;
    overflow: visible;
  }

  .drag-option-panel {
    width: 100%;
    flex: 0 0 auto;
    padding-top: 0;
  }

  .drag-option-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .drag-option-button {
    width: 92px;
    min-height: 54px;
    padding: 2px 0 6px;
  }

  .drag-option-figure {
    max-width: 88px;
    max-height: 58px;
  }

  .drag-staff-stage {
    width: 100%;
    margin-top: 4px;
  }

  .drag-staff-image {
    width: 100%;
    max-width: 100%;
  }

  .drag-staff-image[data-vexflow-staff="true"] {
    height: auto !important;
  }

  .drag-staff-image[data-vexflow-staff="true"] svg {
    height: auto !important;
  }

  .drag-staff-image svg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .q1-fill-answer-row {
    align-items: flex-start;
    gap: 8px;
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row {
    gap: 0 9px;
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-sentence {
    font-size: 18px;
    line-height: 1.6;
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row:not(.q5-fill-answer-row--figure) .q5-fill-sentence {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 7px;
    row-gap: 12px;
    line-height: 1.45;
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row:not(.q5-fill-answer-row--figure) .q1-fill-prefix,
  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row:not(.q5-fill-answer-row--figure) .q1-fill-middle,
  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row:not(.q5-fill-answer-row--figure) .q1-fill-suffix {
    min-width: 0;
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row:not(.q5-fill-answer-row--figure) .q1-fill-middle {
    flex: 1 1 170px;
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row:not(.q5-fill-answer-row--figure) .q1-fill-prefix,
  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row:not(.q5-fill-answer-row--figure) .q1-fill-suffix {
    flex: 0 0 auto;
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-sentence .q1-fill-time-signature {
    font-size: 26px;
    margin: 0 2px;
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-sentence .q1-fill-input {
    width: min(140px, 44vw);
    height: 40px;
    margin: 0;
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-sentence .q5-inline-rhythm {
    max-width: 44vw;
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row--figure .q5-fill-sentence {
    display: grid;
    gap: 10px;
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row--figure .q5-fill-leading {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row--figure .q5-fill-figure-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-width: 0;
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row--tuplet .q5-fill-figure-line {
    row-gap: 20px;
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row--figure .q5-fill-figure-clause {
    min-height: 66px;
    align-items: center;
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row--figure .q5-fill-input-clause {
    align-items: center;
    gap: 8px;
    padding-top: 2px;
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row--figure .q5-fill-input-clause .q1-fill-input {
    width: min(150px, 48vw);
  }

  body[data-exam-fragment="2020-G5-1.3"] .q5-fill-answer-row--figure .q1-fill-suffix {
    line-height: 1.35;
  }

  .q1-fill-input {
    width: min(238px, 100%);
    min-height: 42px;
  }

  .q7-select-answer-card .q1-answer-card-body {
    min-height: 0;
  }

  .q7-select-answer-list {
    width: 100%;
    padding-bottom: 144px;
  }

  .q7-select-answer-row,
  .q7-select-answer-list--wide-label .q7-select-answer-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
    column-gap: 0;
  }

  .q7-select-answer-list--wide-label .q7-select-label {
    white-space: normal;
  }

  .q7-select-shell {
    height: 44px;
    width: min(224px, 100%);
    touch-action: manipulation;
  }

  .q7-select-trigger {
    touch-action: manipulation;
  }

  .q7-select-menu {
    width: min(224px, calc(100vw - 48px));
    min-width: min(224px, calc(100vw - 48px));
  }

  body[data-exam-fragment="2020-G5-1.5"] .q1-generated-notation-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 0 8px;
  }

  body[data-exam-fragment="2020-G5-1.5"] .q1-generated-notation-wrap .q1-vexflow-staff,
  body[data-exam-fragment="2020-G5-1.5"] .q1-generated-notation-wrap .rest-group-judgement-staff {
    width: max-content;
    max-width: none !important;
    margin-inline: 0;
  }

  body[data-exam-fragment="2020-G5-1.5"] .q1-generated-notation-wrap .q1-vexflow-staff svg,
  body[data-exam-fragment="2020-G5-1.5"] .q1-generated-notation-wrap .rest-group-judgement-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  body[data-exam-fragment="2020-G5-1.5"] .q7-select-answer-list {
    gap: 12px;
  }

  body[data-exam-fragment="2020-G5-1.5"] .q7-select-answer-row {
    grid-template-columns: 28px minmax(190px, 224px);
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
  }

  body[data-exam-fragment="2020-G5-1.5"] .q7-select-shell {
    width: min(224px, calc(100vw - 92px));
  }

  body[data-exam-fragment="2020-G5-1.5"] .q7-select-menu {
    width: min(224px, calc(100vw - 92px));
    min-width: min(224px, calc(100vw - 92px));
  }

  body:is(
    [data-exam-fragment="2020-G5-2.3"],
    [data-exam-fragment="2020-G5-2.4"]
  ) .key-signature-note-preview,
  body:is(
    [data-exam-fragment="2020-G5-2.3"],
    [data-exam-fragment="2020-G5-2.4"]
  ) .pitch-relation-preview {
    width: 100%;
    max-width: 100%;
  }

  body[data-exam-fragment="2020-G5-2.3"] .key-signature-note-preview-staff,
  body[data-exam-fragment="2020-G5-2.4"] .pitch-relation-staff {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding-bottom: 8px;
  }

  body[data-exam-fragment="2020-G5-2.3"] .key-signature-note-preview-staff svg,
  body[data-exam-fragment="2020-G5-2.4"] .pitch-relation-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  body:is(
    [data-exam-fragment="2020-G5-3.3a"],
    [data-exam-fragment="2020-G5-3.3b"],
    [data-exam-fragment="2020-G5-3.3c"]
  ) .q1-generated-notation-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 0 8px;
  }

  body:is(
    [data-exam-fragment="2020-G5-3.3a"],
    [data-exam-fragment="2020-G5-3.3b"],
    [data-exam-fragment="2020-G5-3.3c"]
  ) .q1-generated-notation-wrap .melody-key-choice-question-staff {
    width: max-content;
    max-width: none !important;
    margin-inline: 0;
  }

  body:is(
    [data-exam-fragment="2020-G5-3.3a"],
    [data-exam-fragment="2020-G5-3.3b"],
    [data-exam-fragment="2020-G5-3.3c"]
  ) .q1-generated-notation-wrap .melody-key-choice-question-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  body[data-exam-fragment="2020-G5-3.4"] .q1-generated-notation-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 0 8px;
  }

  body[data-exam-fragment="2020-G5-3.4"] .q1-generated-notation-wrap .scale-completion-question-staff {
    width: max-content;
    max-width: none !important;
    margin-inline: 0;
  }

  body[data-exam-fragment="2020-G5-3.4"] .q1-generated-notation-wrap .scale-completion-question-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  body:is(
    [data-exam-fragment="2020-G5-3.5a"],
    [data-exam-fragment="2020-G5-3.5b"],
    [data-exam-fragment="2020-G5-3.5c"]
  ) .q1-generated-notation-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 0 8px;
  }

  body:is(
    [data-exam-fragment="2020-G5-3.5a"],
    [data-exam-fragment="2020-G5-3.5b"],
    [data-exam-fragment="2020-G5-3.5c"]
  ) .q1-generated-notation-wrap .scale-clef-choice-question-staff {
    width: max-content;
    max-width: none !important;
    margin-inline: 0;
  }

  body:is(
    [data-exam-fragment="2020-G5-3.5a"],
    [data-exam-fragment="2020-G5-3.5b"],
    [data-exam-fragment="2020-G5-3.5c"]
  ) .q1-generated-notation-wrap .scale-clef-choice-question-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  body:is(
    [data-exam-fragment="2020-G5-5.2a"],
    [data-exam-fragment="2020-G5-5.2b"],
    [data-exam-fragment="2020-G5-5.3"]
  ) .q1-generated-notation-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 0 8px 14px;
  }

  body:is(
    [data-exam-fragment="2020-G5-5.2a"],
    [data-exam-fragment="2020-G5-5.2b"],
    [data-exam-fragment="2020-G5-5.3"]
  ) .q1-generated-notation-wrap .cadence-name-choice-staff {
    width: max-content;
    max-width: none !important;
    margin-inline: 0;
  }

  body:is(
    [data-exam-fragment="2020-G5-5.2a"],
    [data-exam-fragment="2020-G5-5.2b"],
    [data-exam-fragment="2020-G5-5.3"]
  ) .q1-generated-notation-wrap .cadence-name-choice-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  body:is(
    [data-exam-fragment="2020-G5-6.2a"],
    [data-exam-fragment="2020-G5-6.2b"]
  ) .q1-generated-notation-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 0 8px;
  }

  body:is(
    [data-exam-fragment="2020-G5-6.2a"],
    [data-exam-fragment="2020-G5-6.2b"]
  ) .q1-generated-notation-wrap .written-ornament-name-choice-staff {
    width: max-content;
    max-width: none !important;
    margin-inline: 0;
  }

  body:is(
    [data-exam-fragment="2020-G5-6.2a"],
    [data-exam-fragment="2020-G5-6.2b"]
  ) .q1-generated-notation-wrap .written-ornament-name-choice-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  .exam-bottom-row,
  body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .exam-bottom-row,
  body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .exam-bottom-row,
  .wide-stage[data-screen="instructions"] .exam-bottom-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 8px;
  }

  .paper-nav,
  body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .paper-nav,
  body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .paper-nav,
  .wide-stage[data-screen="instructions"] .paper-nav {
    width: 100%;
    flex: 0 0 auto;
  }

  .paper-nav-track,
  body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .paper-nav-track,
  body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .paper-nav-track,
  .wide-stage[data-screen="instructions"] .paper-nav-track {
    overflow-x: hidden;
  }

  .bottom-actions-group,
  body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .bottom-actions-group,
  body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .bottom-actions-group,
  .wide-stage[data-screen="instructions"] .bottom-actions-group {
    width: 100%;
    justify-content: flex-end;
  }

  .bottom-action,
  body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .bottom-action,
  body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .bottom-action,
  .wide-stage[data-screen="instructions"] .bottom-action {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    height: 42px;
  }

  .results-stage {
    min-height: 100svh;
    overflow-x: hidden;
  }

  .results-page {
    width: 100%;
    min-width: 0;
    padding-bottom: 28px;
    font-size: 15px;
  }

  .results-header {
    min-height: 0;
    padding: 18px 16px 20px;
    flex-direction: column;
    gap: 16px;
  }

  .results-header h1 {
    margin-bottom: 12px;
    font-size: 18px;
  }

  .results-meta {
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 6px;
  }

  .results-meta dd {
    min-width: 0;
    word-break: break-word;
  }

  .results-actions {
    width: 100%;
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .results-action-button {
    width: 100%;
    min-width: 0;
  }

  .wrong-review-status-card {
    padding: 16px 18px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .wrong-review-main {
    padding-bottom: 12px;
  }

  .wrong-review-status-copy h1 {
    font-size: 21px;
  }

  .wrong-review-status-copy p {
    font-size: 15px;
  }

  .wrong-review-home-button {
    width: 100%;
    min-width: 0;
  }

  .wrong-review-feedback-card {
    padding: 14px 16px;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    scroll-margin-bottom: 16px;
  }

  .wrong-review-feedback-next-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .single-practice-feedback-card {
    scroll-margin-bottom: 16px;
  }

  .wrong-review-nav-status {
    min-height: 44px;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
  }

  .results-saved-message {
    padding: 28px 16px 30px;
    font-size: 21px;
  }

  .results-summary-grid {
    padding: 18px 16px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .results-score-panel strong {
    height: 42px;
    font-size: 21px;
  }

  .results-category-section {
    padding: 8px 16px 24px;
  }

  .results-practice-guide {
    margin: 0 16px 28px;
    padding: 18px 16px;
    border-radius: 10px;
  }

  .results-practice-guide-heading {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .results-practice-guide-heading h2 {
    font-size: 21px;
  }

  .results-practice-card-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .results-practice-card {
    min-height: 0;
    padding: 16px;
  }

  .results-practice-card-action {
    padding-top: 12px;
  }

  .results-section-list {
    width: 100%;
    margin-left: 0;
  }

  .results-section-row {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 7px 0;
  }

  .results-section-score {
    width: 100%;
    height: 26px;
  }

  .results-answer-section h2 {
    padding: 0 16px;
  }

  .results-answer-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .results-answer-table {
    min-width: 760px;
    font-size: 14px;
  }

  .results-answer-feedback-grid {
    gap: 14px;
  }

  .end-test-dialog-overlay {
    padding: 7vh 12px 18px;
    align-items: flex-start;
  }

  .end-test-dialog {
    width: 100%;
    min-width: 0;
    max-height: 86vh;
    overflow: auto;
  }

  .end-test-dialog-header {
    min-height: 0;
    padding: 20px 18px 16px;
  }

  .end-test-dialog-header h2 {
    font-size: 24px;
  }

  .end-test-dialog-body {
    padding: 28px 18px 34px;
  }

  .end-test-dialog-copy {
    font-size: 18px;
  }

  .end-test-unanswered-alert {
    padding: 18px 16px;
    font-size: 22px;
  }

  .end-test-dialog-footer {
    min-height: 0;
    padding: 16px 18px;
    gap: 10px;
  }

  .end-test-confirm-button,
  .end-test-cancel-button {
    flex: 1 1 0;
    min-width: 0;
    height: 54px;
    font-size: 16px;
  }

  .auth-dialog-overlay {
    padding: 18vh 14px 18px;
  }

  .auth-dialog {
    width: 100%;
  }

  .auth-dialog-header {
    min-height: 0;
    padding: 20px 18px 16px;
  }

  .auth-dialog-header h2 {
    font-size: 22px;
  }

  .auth-dialog-body {
    padding: 24px 18px 26px;
    font-size: 17px;
  }

  .auth-dialog-footer {
    padding: 16px 18px 18px;
    gap: 10px;
  }

  .auth-dialog-footer .login-button {
    flex: 1 1 0;
    min-width: 0;
    height: 48px;
  }

  body[data-exam-fragment="Info_9-Final-page"] .toolbar-button {
    min-width: 0;
    height: 38px;
    padding: 0 11px;
    border-radius: 9px;
    font-size: 13px;
  }

  body[data-exam-fragment="Info_9-Final-page"] .end-button {
    min-width: 76px;
  }
}

@media (max-width: 420px) {
  .rule-cards {
    grid-template-columns: 1fr;
  }

  .toolbar-button,
  body[data-exam-shell="unified-question"] .toolbar-button {
    padding: 0 9px;
  }
}

@media (max-width: 760px) {
  body[data-exam-fragment^="2020-G5-7."] .music-context-reference-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  body:is(
    [data-exam-fragment="2020-G5-3.6a"],
    [data-exam-fragment="2020-G5-3.6b"]
  ) .q1-generated-notation-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 0 8px;
  }

  body:is(
    [data-exam-fragment="2020-G5-3.6a"],
    [data-exam-fragment="2020-G5-3.6b"]
  ) .q1-generated-notation-wrap .chromatic-scale-judgement-staff {
    width: max-content;
    max-width: none !important;
    margin-inline: 0;
  }

  body:is(
    [data-exam-fragment="2020-G5-3.6a"],
    [data-exam-fragment="2020-G5-3.6b"]
  ) .q1-generated-notation-wrap .chromatic-scale-judgement-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  body[data-exam-fragment^="2020-G5-7."] .music-context-reference,
  body[data-exam-fragment^="2020-G5-7."] .music-context-system-staff {
    max-width: none !important;
  }

  body[data-exam-fragment^="2020-G5-7."] .music-context-system-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  body[data-exam-fragment^="2020-G5-7."] .music-context-reference-heading {
    width: calc(100vw - 56px);
    max-width: calc(100vw - 56px);
    white-space: normal;
  }

  body:is(
    [data-exam-fragment="2020-G5-1.1a"],
    [data-exam-fragment="2020-G5-1.1b"],
    [data-exam-fragment="2020-G5-1.1c"],
    [data-exam-fragment="2020-G5-1.2"]
  ) .q1-generated-notation-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 0 8px;
  }

  body:is(
    [data-exam-fragment="2020-G5-1.1a"],
    [data-exam-fragment="2020-G5-1.1b"],
    [data-exam-fragment="2020-G5-1.1c"],
    [data-exam-fragment="2020-G5-1.2"]
  ) .q1-generated-notation-wrap .q1-vexflow-staff {
    width: max-content;
    max-width: none !important;
    margin-inline: auto;
  }

  body:is(
    [data-exam-fragment="2020-G5-1.1a"],
    [data-exam-fragment="2020-G5-1.1b"],
    [data-exam-fragment="2020-G5-1.1c"],
    [data-exam-fragment="2020-G5-1.2"]
  ) .q1-generated-notation-wrap .q1-vexflow-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  .compound-rewrite-answer-options,
  .rhythm-bar-choice-answer-options {
    width: 100%;
  }

  .compound-rewrite-answer-option,
  .rhythm-bar-choice-answer-option {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 8px;
  }

  .compound-rewrite-answer-option .q1-answer-radio,
  .rhythm-bar-choice-answer-option .q1-answer-radio {
    flex: 0 0 13px;
    min-width: 13px;
    margin-top: 22px;
  }

  .compound-rewrite-option-staff,
  .rhythm-bar-choice-option-staff {
    flex: 0 0 auto;
    max-width: none !important;
  }

  .compound-rewrite-option-staff svg,
  .rhythm-bar-choice-option-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  .drag-option-button {
    width: 76px;
    min-height: 46px;
  }

  .drag-option-figure[data-vexflow-note-option] {
    max-width: 48px;
    max-height: 38px;
  }

  .drag-placed-note[data-vexflow-note-option] {
    max-width: none !important;
    max-height: none !important;
  }
}

@media (max-width: 760px) {
  .paper-nav-track,
  body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .paper-nav-track,
  body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .paper-nav-track,
  .wide-stage[data-screen="instructions"] .paper-nav-track {
    height: 44px;
    margin-top: 0;
    padding-top: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .paper-nav-track,
  body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .paper-nav-track,
  .wide-stage[data-screen="instructions"] .paper-nav-track {
    height: 44px;
    margin-top: 0;
    padding-top: 0;
  }

  .paper-item-mark {
    left: 5px;
    top: 3px;
    width: 12px;
    height: 12px;
    transform: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .paper-item-mark-icon {
    width: 11px;
    height: 11px;
  }

  .drag-answer-stage[data-drag-stage="true"] {
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
  }

  .drag-answer-stage[data-drag-stage="true"] .drag-option-figure[data-vexflow-note-option],
  .drag-answer-stage[data-drag-stage="true"] .drag-placed-note[data-vexflow-note-option] {
    touch-action: manipulation;
  }

  .drag-answer-stage[data-drag-stage="true"] .drag-option-button {
    touch-action: manipulation;
  }

  body[data-exam-fragment="2020-G5-5.1"] .q36-question-wrap,
  body[data-exam-fragment="2020-G5-5.1"] .q1-generated-notation-wrap {
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 8px;
  }

  body[data-exam-fragment="2020-G5-5.1"] .cadence-harmonisation-preview,
  body[data-exam-fragment="2020-G5-5.1"] .q36-question-wrap .cadence-harmonisation-preview {
    width: max-content;
    min-width: 720px;
  }

  body[data-exam-fragment="2020-G5-5.1"] .cadence-harmonisation-system-staff,
  body[data-exam-fragment="2020-G5-5.1"] .q36-question-wrap .cadence-harmonisation-system-staff,
  body[data-exam-fragment="2020-G5-5.1"] .cadence-harmonisation-system-staff svg,
  body[data-exam-fragment="2020-G5-5.1"] .q36-question-wrap .cadence-harmonisation-system-staff svg {
    max-width: none !important;
  }

  body[data-exam-fragment="2020-G5-5.1"] .cadence-harmonisation-system-staff svg,
  body[data-exam-fragment="2020-G5-5.1"] .q36-question-wrap .cadence-harmonisation-system-staff svg {
    width: auto !important;
  }
}

body.is-note-pointer-dragging {
  overscroll-behavior: none;
}

body.is-note-pointer-dragging .exam-main,
body.is-note-pointer-dragging .wide-stage[data-screen="exam"] {
  overscroll-behavior: none;
}

/* Let long official English prompts wrap naturally on phones. Reclaim one
   line from the notation canvas's unused bottom whitespace without moving the
   canvas over the prompt, so every wrapped line remains fully visible. */
@media (max-width: 760px) {
  body[data-locale="en-GB"]:is(
    [data-exam-fragment="2020-G5-1.5"],
    [data-exam-fragment="2020-G5-2.2"],
    [data-exam-fragment="2020-G5-2.4"],
    [data-exam-fragment="2020-G5-5.1"]
  ) .q1-question-prompt {
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  body[data-locale="en-GB"]:is(
    [data-exam-fragment="2020-G5-5.1"]
  ) .q1-generated-notation-wrap {
    margin-bottom: -23.2px;
  }

  /* The official ornament prompt needs two English lines on a phone. The
     generated stave reserves one unused line at its lower edge, so reclaim
     that space and keep the established question/answer card positions. */
  body[data-locale="en-GB"]:is(
    [data-exam-fragment="2020-G5-6.2a"],
    [data-exam-fragment="2020-G5-6.2b"]
  ) .q1-generated-notation-wrap {
    margin-bottom: -23.2px;
  }

  /* Q45-Q49 statements may wrap to two lines in English. Compact only the
     internal English spacing; the card dimensions and the Chinese layout do
     not change. */
  body[data-locale="en-GB"]:is(
    [data-exam-fragment="2020-G5-6.3a"],
    [data-exam-fragment="2020-G5-6.3b"],
    [data-exam-fragment="2020-G5-6.3c"],
    [data-exam-fragment="2020-G5-6.3d"],
    [data-exam-fragment="2020-G5-6.3e"]
  ) .q1-question-card-body {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body[data-locale="en-GB"]:is(
    [data-exam-fragment="2020-G5-6.3a"],
    [data-exam-fragment="2020-G5-6.3b"],
    [data-exam-fragment="2020-G5-6.3c"],
    [data-exam-fragment="2020-G5-6.3d"],
    [data-exam-fragment="2020-G5-6.3e"]
  ) .q1-question-prompt {
    margin-bottom: 4px;
  }

  body[data-locale="en-GB"]:is(
    [data-exam-fragment="2020-G5-6.3a"],
    [data-exam-fragment="2020-G5-6.3b"],
    [data-exam-fragment="2020-G5-6.3c"],
    [data-exam-fragment="2020-G5-6.3d"],
    [data-exam-fragment="2020-G5-6.3e"]
  ) .music-knowledge-statement {
    margin-top: 4px;
    font-size: 17px;
    line-height: 1.35;
  }
}

@media (min-width: 336px) and (max-width: 465px) {
  body[data-locale="en-GB"][data-exam-fragment="2020-G5-1.5"] .q1-generated-notation-wrap {
    margin-bottom: -23.2px;
  }
}

@media (min-width: 336px) and (max-width: 430px) {
  body[data-locale="en-GB"][data-exam-fragment="2020-G5-2.2"] .q1-generated-notation-wrap {
    margin-bottom: -23.2px;
  }
}

@media (min-width: 321px) and (max-width: 448px) {
  body[data-locale="en-GB"][data-exam-fragment="2020-G5-2.4"] .q1-generated-notation-wrap {
    margin-bottom: -23.2px;
  }
}

@media (pointer: coarse) and (max-width: 1024px) {
  .drag-answer-stage[data-drag-stage="true"] {
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
  }

  .drag-answer-stage[data-drag-stage="true"] .drag-option-figure[data-vexflow-note-option],
  .drag-answer-stage[data-drag-stage="true"] .drag-placed-note[data-vexflow-note-option] {
    touch-action: manipulation;
  }

  .drag-answer-stage[data-drag-stage="true"] .drag-option-button {
    touch-action: manipulation;
  }
}

@media (max-width: 760px) and (orientation: portrait) {
  .drag-answer-stage[data-drag-stage="true"] .drag-option-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .drag-answer-stage[data-drag-stage="true"] .drag-option-button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0 8px;
  }

  .drag-answer-stage[data-drag-stage="true"] .drag-option-figure[data-vexflow-note-option] {
    width: 100% !important;
    max-width: none;
    height: 14px !important;
    max-height: 14px;
  }

  .drag-answer-stage[data-drag-stage="true"] .drag-placed-note[data-vexflow-note-option] {
    max-width: none !important;
    max-height: none !important;
  }

  body[data-exam-fragment="2020-G5-7.5"] .q1-fill-answer-row {
    align-items: center;
    column-gap: 6px;
    row-gap: 8px;
  }

  body[data-exam-fragment="2020-G5-7.5"] .q1-fill-prefix {
    flex: 1 1 calc(100% - 34px);
  }

  body[data-exam-fragment="2020-G5-7.5"] .q1-fill-input {
    flex: 0 0 auto;
    width: min(136px, 38vw);
  }

  body[data-exam-fragment="2020-G5-7.5"] .q1-fill-suffix {
    flex: 0 1 auto;
    white-space: nowrap;
  }

  body[data-exam-fragment="2020-G5-7.5"] .q1-fill-inline-answer .q1-fill-input {
    width: min(112px, 31vw);
  }

  body[data-locale="en-GB"][data-exam-fragment="2020-G5-7.5"] .q1-fill-prefix,
  body[data-locale="en-GB"][data-exam-fragment="2020-G5-7.5"] .q1-fill-suffix {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }
}

@media (min-width: 769px) and (max-width: 900px) and (orientation: landscape) {
  body[data-exam-fragment="2020-G5-3.4"] .q1-generated-notation-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 0 8px;
  }

  body[data-exam-fragment="2020-G5-3.4"] .q1-generated-notation-wrap .scale-completion-question-staff {
    width: max-content;
    max-width: none !important;
    margin-inline: 0;
  }

  body[data-exam-fragment="2020-G5-3.4"] .q1-generated-notation-wrap .scale-completion-question-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  body:is(
    [data-exam-fragment="2020-G5-3.5a"],
    [data-exam-fragment="2020-G5-3.5b"],
    [data-exam-fragment="2020-G5-3.5c"]
  ) .q1-generated-notation-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 0 8px;
  }

  body:is(
    [data-exam-fragment="2020-G5-3.5a"],
    [data-exam-fragment="2020-G5-3.5b"],
    [data-exam-fragment="2020-G5-3.5c"]
  ) .q1-generated-notation-wrap .scale-clef-choice-question-staff {
    width: max-content;
    max-width: none !important;
    margin-inline: 0;
  }

  body:is(
    [data-exam-fragment="2020-G5-3.5a"],
    [data-exam-fragment="2020-G5-3.5b"],
    [data-exam-fragment="2020-G5-3.5c"]
  ) .q1-generated-notation-wrap .scale-clef-choice-question-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  body:is(
    [data-exam-fragment="2020-G5-5.2a"],
    [data-exam-fragment="2020-G5-5.2b"],
    [data-exam-fragment="2020-G5-5.3"]
  ) .q1-generated-notation-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 0 8px;
  }

  body:is(
    [data-exam-fragment="2020-G5-5.2a"],
    [data-exam-fragment="2020-G5-5.2b"],
    [data-exam-fragment="2020-G5-5.3"]
  ) .q1-generated-notation-wrap .cadence-name-choice-staff {
    width: max-content;
    max-width: none !important;
    margin-inline: 0;
  }

  body:is(
    [data-exam-fragment="2020-G5-5.2a"],
    [data-exam-fragment="2020-G5-5.2b"],
    [data-exam-fragment="2020-G5-5.3"]
  ) .q1-generated-notation-wrap .cadence-name-choice-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  body[data-exam-fragment="2020-G5-5.3"] .q1-generated-notation-wrap {
    padding-left: 14px;
  }

  body:is(
    [data-exam-fragment="2020-G5-6.2a"],
    [data-exam-fragment="2020-G5-6.2b"]
  ) .q1-generated-notation-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 0 8px;
  }

  body:is(
    [data-exam-fragment="2020-G5-6.2a"],
    [data-exam-fragment="2020-G5-6.2b"]
  ) .q1-generated-notation-wrap .written-ornament-name-choice-staff {
    width: max-content;
    max-width: none !important;
    margin-inline: 0;
  }

  body:is(
    [data-exam-fragment="2020-G5-6.2a"],
    [data-exam-fragment="2020-G5-6.2b"]
  ) .q1-generated-notation-wrap .written-ornament-name-choice-staff svg {
    width: auto !important;
    max-width: none !important;
  }

  body:is(
    [data-exam-fragment="2020-G5-3.6a"],
    [data-exam-fragment="2020-G5-3.6b"]
  ) .q1-generated-notation-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 0 8px;
  }

  body:is(
    [data-exam-fragment="2020-G5-3.6a"],
    [data-exam-fragment="2020-G5-3.6b"]
  ) .q1-generated-notation-wrap .chromatic-scale-judgement-staff {
    width: max-content;
    max-width: none !important;
    margin-inline: 0;
  }

  body:is(
    [data-exam-fragment="2020-G5-3.6a"],
    [data-exam-fragment="2020-G5-3.6b"]
  ) .q1-generated-notation-wrap .chromatic-scale-judgement-staff svg {
    width: auto !important;
    max-width: none !important;
  }
}

@media (hover: none) and (max-height: 540px) {
  body[data-exam-fragment^="2020-G5-7."] .music-context-reference-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  body[data-exam-fragment^="2020-G5-7."] .music-context-reference,
  body[data-exam-fragment^="2020-G5-7."] .music-context-system-staff {
    max-width: none !important;
  }

  body[data-exam-fragment^="2020-G5-7."] .music-context-system-staff svg {
    width: auto !important;
    max-width: none !important;
  }
}

body[data-active-screen="instructions"] .mock-app,
body[data-active-screen="exam"] .mock-app,
body[data-active-screen="instructions"] .wide-stage,
body[data-active-screen="exam"] .wide-stage,
body[data-active-screen="instructions"] .wide-shell,
body[data-active-screen="exam"] .wide-shell,
body[data-active-screen="instructions"] .exam-main,
body[data-active-screen="exam"] .exam-main,
body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"],
body[data-exam-shell="unified-question"] .wide-stage[data-screen="exam"] .wide-shell,
body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"],
body[data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .wide-shell,
body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .wide-stage[data-screen="exam"],
body:is(
  [data-exam-fragment="2020-G5-1.1a"],
  [data-exam-fragment="2020-G5-1.1b"],
  [data-exam-fragment="2020-G5-1.1c"],
  [data-exam-fragment="2020-G5-1.2"]
) .wide-stage[data-screen="exam"] .wide-shell {
  background: var(--test-surface);
}

body[data-active-screen="instructions"] .exam-card,
body[data-active-screen="exam"] .exam-card,
body[data-active-screen="instructions"] .card-content,
body[data-active-screen="exam"] .card-content,
body[data-active-screen="instructions"] .info-frame,
body[data-active-screen="exam"] .info-frame,
body[data-active-screen="instructions"] .info-main-card-frame,
body[data-active-screen="exam"] .info-main-card-frame,
body[data-active-screen="instructions"] .info-action-card-frame,
body[data-active-screen="exam"] .info-action-card-frame,
body[data-active-screen="instructions"] .info-main-card-content,
body[data-active-screen="exam"] .info-main-card-content,
body[data-active-screen="instructions"] .info-main-card-body,
body[data-active-screen="exam"] .info-main-card-body,
body[data-active-screen="instructions"] .info-action-card-body,
body[data-active-screen="exam"] .info-action-card-body,
body[data-active-screen="exam"] .q1-card-stack,
body[data-active-screen="exam"] .q1-question-card,
body[data-active-screen="exam"] .q1-question-card-body,
body[data-active-screen="exam"] .q1-reference-card,
body[data-active-screen="exam"] .q1-reference-card-body,
body[data-active-screen="exam"] .q1-answer-card,
body[data-active-screen="exam"] .q1-answer-card-body,
body[data-active-screen="exam"] .q1-generated-notation-wrap,
body[data-active-screen="exam"] .capture-page-wrap,
body[data-active-screen="exam"] .select-capture-wrap,
body[data-active-screen="exam"] .select-page-shell,
body[data-active-screen="instructions"] .capture-page-wrap,
body[data-active-screen="instructions"] .select-capture-wrap,
body[data-active-screen="instructions"] .select-page-shell {
  background: var(--test-surface);
}

body:not([data-theme="classic"])[data-active-screen="instructions"] .capture-page-image,
body:not([data-theme="classic"])[data-active-screen="exam"] .capture-page-image,
body:not([data-theme="classic"])[data-active-screen="exam"] .q1-question-content-image,
body:not([data-theme="classic"])[data-active-screen="exam"] .q1-reference-image {
  mix-blend-mode: multiply;
}

@media (max-width: 760px) {
  .recharge-panel {
    gap: 12px;
  }

  .recharge-copy {
    gap: 7px;
  }

  .recharge-copy .login-kicker {
    display: none;
  }

  .recharge-copy h1 {
    font-size: 28px;
  }

  .recharge-copy > p:not(.recharge-feature) {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.55;
  }

  .recharge-feature {
    padding: 4px 10px;
    font-size: 11px !important;
  }

  .membership-current-status {
    min-height: 0;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .membership-current-status strong {
    font-size: 12px;
    text-align: right;
  }

  .membership-recurring-status {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 11px 12px;
    border-radius: 14px;
  }

  .membership-recurring-status strong {
    font-size: 13px;
  }

  .membership-recurring-status p {
    font-size: 11px;
  }

  .membership-recurring-status button {
    align-self: flex-start;
    min-height: 34px;
    padding: 7px 11px;
    font-size: 11px;
  }

  .membership-payment-unavailable {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .membership-payment-unavailable strong {
    font-size: 13px;
  }

  .membership-payment-unavailable p {
    font-size: 12px;
  }

  .membership-plan-section > header {
    align-items: flex-end;
    flex-direction: row;
    gap: 10px;
  }

  .membership-plan-section > header small {
    display: none;
  }

  .membership-plan-section > header h2 {
    font-size: 18px;
  }

  .membership-plan-section > header > span {
    font-size: 10px;
  }

  .membership-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .membership-plan-card {
    min-height: 132px;
    gap: 4px;
    padding: 14px 12px 11px;
    border-radius: 17px;
  }

  .membership-plan-duration {
    font-size: 14px;
  }

  .membership-plan-price strong {
    font-size: 28px;
  }

  .membership-plan-price {
    margin-top: 4px;
  }

  .membership-plan-average,
  .membership-plan-action {
    font-size: 10px;
  }

  .membership-plan-action {
    padding-top: 7px;
  }

  .membership-purchase-note {
    padding: 11px 12px;
  }

  .membership-purchase-note p {
    font-size: 12px;
    line-height: 1.5;
  }

  .recharge-benefits {
    display: none;
  }

  .recharge-benefit-list {
    grid-template-columns: 1fr;
  }

  .recharge-benefit-item {
    min-height: 0;
  }

  .drag-answer-card .q1-answer-card-body {
    padding-bottom: 14px;
  }

  .drag-answer-card .drag-interval-check-panel {
    position: static;
    right: auto;
    bottom: auto;
    z-index: 1;
    order: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    margin-top: 2px;
    gap: 8px 10px;
  }

  .drag-answer-card .drag-interval-bank-count {
    flex: 1 1 148px;
    min-width: 132px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .drag-answer-card .drag-interval-bank-button,
  .drag-answer-card .drag-interval-check-button {
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  body[data-active-screen="instructions"] .wide-stage[data-screen="instructions"],
  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] {
    height: 100dvh;
    padding: 0;
    background: var(--test-surface);
    overflow: hidden;
  }

  body[data-active-screen="instructions"] .wide-stage[data-screen="instructions"] .wide-shell,
  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .wide-stage[data-screen="exam"] .wide-shell {
    height: 100dvh;
    padding: 8px 10px 10px;
    background: var(--test-surface);
  }

  body[data-active-screen="instructions"] .exam-toolbar,
  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .exam-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    align-items: stretch;
    padding: 8px 0 10px;
    border: 0;
    border-bottom: 1px solid #ececec;
    border-radius: 0;
    background: transparent;
  }

  body[data-active-screen="instructions"] .toolbar-left,
  body[data-active-screen="instructions"] .toolbar-right,
  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .toolbar-left,
  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .toolbar-right {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  body[data-active-screen="instructions"] .toolbar-left,
  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .toolbar-left {
    justify-content: flex-start;
  }

  body[data-active-screen="instructions"] .toolbar-right,
  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .toolbar-right {
    justify-content: flex-end;
  }

  body[data-active-screen="instructions"] .toolbar-brand,
  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .toolbar-brand {
    flex: 1 0 100%;
    margin-right: 0;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
  }

  body[data-active-screen="instructions"] .toolbar-button,
  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .toolbar-button {
    min-width: 0;
    height: 38px;
    padding: 0 11px;
    border-radius: 9px;
    font-size: 13px;
  }

  body[data-active-screen="instructions"] .end-button,
  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .end-button {
    min-width: 76px;
  }

  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .timer-pill {
    min-width: 66px;
    height: 38px;
    border-radius: 9px;
    font-size: 12px;
  }

  body[data-active-screen="instructions"] .exam-main,
  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .exam-main {
    gap: 10px;
    padding-top: 10px;
    padding-right: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 760px) {
  body[data-active-screen="exam"] .exam-main,
  body[data-active-screen="exam"][data-exam-shell="unified-question"] .exam-main {
    padding-bottom: 64px !important;
    scroll-padding-bottom: 64px;
  }

  body[data-active-screen="exam"] .q1-answer-button,
  body[data-active-screen="exam"] .answer-submit {
    scroll-margin-bottom: 64px;
  }

  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .toolbar-button,
  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .timer-pill {
    box-sizing: border-box;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px !important;
    border-radius: 9px !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .toolbar-button {
    min-width: 0 !important;
    padding: 0 9px !important;
    font-size: 13px !important;
  }

  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .toolbar-button[data-action="return-home-save-draft"] {
    min-width: 0 !important;
  }

  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .toolbar-button.end-button {
    min-width: 76px !important;
  }

  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .timer-pill {
    min-width: 66px !important;
    padding: 0 10px;
    font-size: 12px !important;
  }

  body[data-active-screen="exam"][data-exam-fragment^="Info_"] [data-action="open-nav"],
  body[data-active-screen="exam"][data-exam-fragment^="Info_"] [data-action="restart-flow"],
  body[data-active-screen="exam"][data-exam-fragment^="Info_"] [data-action="go-theme"] {
    display: none !important;
  }

  body[data-active-screen="instructions"] .toolbar-brand,
  body[data-active-screen="exam"] .toolbar-brand {
    line-height: 20px;
  }

  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .info-section-main-card-frame {
    height: 204px;
  }

  body[data-active-screen="exam"][data-exam-fragment^="Info_"] .info-section-main-card-frame .info-main-card-body,
  body[data-active-screen="exam"][data-exam-fragment="Info_9-Final-page"] .final-info-card-body {
    box-sizing: border-box;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
  }

  body[data-locale="en-GB"][data-active-screen="exam"][data-exam-fragment^="Info_"] .info-main-heading {
    gap: 10px;
    font-size: 32px;
    line-height: 1.05;
  }

  body[data-locale="en-GB"][data-active-screen="exam"][data-exam-fragment^="Info_"] .info-main-heading-index {
    font-size: 48px;
  }

  body[data-locale="en-GB"][data-active-screen="exam"][data-exam-fragment^="Info_"] .info-main-section {
    gap: 8px;
  }

  body[data-locale="en-GB"][data-active-screen="exam"][data-exam-fragment^="Info_"] .info-main-list {
    gap: 6px;
  }

  body[data-locale="en-GB"][data-active-screen="exam"][data-exam-fragment^="Info_"] .info-main-list p,
  body[data-locale="en-GB"][data-active-screen="exam"][data-exam-fragment^="Info_"] .info-main-list strong {
    font-size: 15px;
    line-height: 1.4;
  }

  body[data-active-screen="exam"][data-exam-fragment="Info_9-Final-page"] .final-info-main-card-frame {
    height: 331px;
  }

  body[data-locale="en-GB"][data-active-screen="exam"][data-exam-fragment="Info_9-Final-page"] .final-info-copy {
    font-size: 13px;
    line-height: 1.4;
  }

  body[data-locale="en-GB"][data-active-screen="exam"][data-exam-fragment="Info_9-Final-page"] .final-info-line + .final-info-line {
    margin-top: 6px;
  }

  body[data-locale="en-GB"][data-active-screen="exam"][data-exam-fragment="Info_9-Final-page"] .final-info-rule {
    margin: 12px 0;
  }
}

@media (min-width: 761px) {
  body[data-active-screen="exam"][data-exam-fragment="Info_9-Final-page"] .final-info-main-card-frame {
    height: 262px;
  }

  body[data-active-screen="exam"][data-exam-fragment="Info_9-Final-page"] .final-info-card-body {
    box-sizing: border-box;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
  }

  body[data-locale="en-GB"][data-active-screen="exam"][data-exam-fragment="Info_9-Final-page"] .final-info-copy {
    font-size: 14px;
    line-height: 1.4;
  }

  body[data-locale="en-GB"][data-active-screen="exam"][data-exam-fragment="Info_9-Final-page"] .final-info-line + .final-info-line {
    margin-top: 6px;
  }

  body[data-locale="en-GB"][data-active-screen="exam"][data-exam-fragment="Info_9-Final-page"] .final-info-rule {
    margin: 12px 0;
  }
}

@media (min-width: 1200px) {
  body[data-active-screen="exam"][data-exam-fragment="Info_9-Final-page"] .final-info-main-card-frame {
    height: 238px;
  }
}

/* Formal exam sessions always keep a visible, draggable vertical scroll rail. */
body[data-active-screen="exam"][data-exam-session-mode="exam"]
  .wide-stage[data-screen="exam"]
  .exam-main {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #8e9db5 #e3e9f3;
}

body[data-active-screen="exam"][data-exam-session-mode="exam"]
  .wide-stage[data-screen="exam"]
  .exam-main::-webkit-scrollbar {
  width: 12px;
}

body[data-active-screen="exam"][data-exam-session-mode="exam"]
  .wide-stage[data-screen="exam"]
  .exam-main::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #e3e9f3;
}

body[data-active-screen="exam"][data-exam-session-mode="exam"]
  .wide-stage[data-screen="exam"]
  .exam-main::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 2px solid #e3e9f3;
  border-radius: 999px;
  background: #8e9db5;
}

body[data-active-screen="exam"][data-exam-session-mode="exam"]
  .wide-stage[data-screen="exam"]
  .exam-main::-webkit-scrollbar-thumb:hover {
  background: #6f7f99;
}
