@import url('references.css');

:root {
  --ink: #233b47;
  --muted: #526772;
  --paper: #fff;
  --bg: #f3f7f8;
  --line: #dbe5e9;
  --cyan: #22a8d8;
  --cyan-deep: #087ba3;
  --pink: #cf1598;
  --orange: #f59a23;
  --danger: #ba2639;
  --brand-grey: #5b5a4e;
  --shadow: 0 12px 40px rgba(26, 57, 72, .065);
  --gradient: linear-gradient(90deg, var(--cyan), var(--pink), var(--orange))
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg)
}

body {
  font-size: 20px
}

button,
input {
  font: inherit;
  touch-action: manipulation
}

button {
  cursor: pointer
}

button:disabled {
  cursor: default;
  opacity: .42
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--cyan-deep);
  outline-offset: 4px
}

h1:focus,
h2:focus {
  outline: none
}

h1,
h2,
p {
  margin-top: 0
}

h1,
h2 {
  letter-spacing: -.015em
}

p {
  line-height: 1.55
}

img {
  max-width: 100%
}

.hidden {
  display: none !important
}

.app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(ellipse at 15% 0%, #e6f4f8, transparent 60%), var(--bg);
  position: relative;
  padding-top: 6px
}

.app:before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--gradient);
  z-index: 10
}

.screen {
  flex: 1;
  min-height: 0;
  animation: screen-in .24s ease-out
}

.workspace-screen {
  display: flex;
  flex-direction: column
}

.eyebrow {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .10em;
  color: var(--cyan-deep);
  margin-bottom: 14px;
  text-transform: uppercase
}

.subtle {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400
}

.fine-print {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin: 22px 0 0
}

.lead {
  font-size: 23px;
  color: var(--muted);
  line-height: 1.5
}

.soft-note {
  background: #eff6f8;
  border-radius: 14px;
  padding: 18px 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c8dfe6;
  background: #edf7fa;
  color: #276277;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 60px;
  padding: 14px 24px;
  border: 1px solid #c8d7de;
  border-radius: 14px;
  background: white;
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
  transition: background .16s, box-shadow .16s, transform .16s, border-color .16s
}

.button.primary {
  background: var(--cyan-deep);
  border-color: var(--cyan-deep);
  color: #fff;
  box-shadow: 0 5px 16px #087ba31a
}

.button.wide {
  width: 100%
}

.button.small {
  font-size: 17px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 11px
}

.button.quiet {
  border-color: transparent;
  background: transparent
}

.button[aria-pressed=true] {
  background: #e4f4fa;
  border-color: var(--cyan-deep);
  color: #075d7d
}

.button:active:not(:disabled) {
  transform: scale(.98)
}

@media(hover:hover) {
  .button:hover:not(:disabled) {
    background: #edf5f8;
    border-color: #8baebf;
    box-shadow: 0 4px 14px #233b4710
  }

  .button.primary:hover:not(:disabled) {
    background: #066688;
    border-color: #066688
  }

  .answer:hover {
    border-color: #6fa5bb;
    background: #f6fbfd
  }

  .grid-question:hover {
    border-color: var(--cyan-deep);
    background: #edf7fa
  }

  button.review-item:hover {
    border-color: #86adbf;
    background: #f7fbfd
  }
}

.welcome-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: auto
}

.welcome-card {
  width: min(740px, 100%);
  padding: 42px 62px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
  margin: auto
}

.welcome-logo {
  display: block;
  width: 235px;
  height: auto;
  margin: 0 auto 30px
}

.welcome-card h1 {
  font-size: 52px;
  line-height: 1.12;
  margin: 0 0 22px;
  font-weight: 760;
  text-wrap: balance
}

.welcome-footer {
  font-size: 15px;
  color: var(--muted);
  padding-top: 22px;
  text-align: center
}

.test-facts {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 30px
}

.test-facts span {
  background: #f1f6f8;
  border: 1px solid #e5edf0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted)
}

#candidateForm {
  text-align: left
}

#candidateForm label {
  display: block;
  font-size: 20px;
  font-weight: 650;
  margin-bottom: 12px
}

#candidateName {
  width: 100%;
  min-height: 70px;
  padding: 14px 18px;
  border: 2px solid #b7cbd5;
  border-radius: 12px;
  font-size: 25px;
  color: var(--ink);
  background: #fbfdfe
}

#candidateName[aria-invalid=true] {
  border-color: var(--danger)
}

.field-error {
  font-size: 16px;
  color: var(--danger);
  min-height: 24px;
  margin: 8px 0 14px
}

.intro-screen {
  display: grid;
  grid-template-columns: minmax(350px, .8fr) minmax(540px, 1.2fr);
  overflow: auto
}

.intro-brand {
  padding: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: #fff;
  border-right: 1px solid var(--line)
}

.intro-brand:after {
  content: '';
  position: absolute;
  bottom: 7%;
  left: 10%;
  right: 10%;
  height: 4px;
  border-radius: 99px;
  background: var(--gradient)
}

.intro-brand .brand-logo {
  width: 285px;
  height: auto;
  margin-bottom: 64px
}

.intro-brand h2 {
  font-size: 58px;
  line-height: 1.08;
  max-width: 600px;
  color: var(--brand-grey);
  margin-bottom: 28px;
  text-wrap: balance
}

.intro-brand>p {
  color: var(--muted);
  max-width: 460px;
  font-size: 21px
}

.intro-copy {
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: center
}

.instructions-card {
  max-width: 880px;
  width: 100%;
  padding: 38px 44px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow)
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 32px
}

.steps .active {
  color: var(--cyan-deep)
}

.greeting {
  font-size: 19px;
  color: var(--cyan-deep);
  overflow-wrap: anywhere;
  max-height: 72px;
  overflow: auto;
  margin-bottom: 12px
}

.instructions-card h1 {
  font-size: 40px;
  margin-bottom: 26px
}

.instruction-list {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 22px
}

.instruction-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 16px;
  font-size: 19px;
  line-height: 1.45
}

.instruction-list li:before {
  content: counter(steps);
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf6fa;
  color: var(--cyan-deep);
  font-weight: 700
}

.instruction-list strong {
  font-size: 21px
}

.instruction-list span {
  color: var(--muted)
}

.instruction-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px
}

.topbar {
  flex: none;
  min-height: 100px;
  padding: 16px 36px;
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 24px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line)
}

.topbar>.logo-menu-button {
  height: 64px;
  max-width: 250px;
  width: auto;
  object-fit: contain;
  object-position: left
}

.topbar h1 {
  font-size: 29px;
  margin: 0
}

.topbar .eyebrow {
  margin: 0 0 5px
}

.topbar>.pill {
  justify-self: end
}

.header-title {
  text-align: center
}

.candidate-label {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  overflow-wrap: anywhere;
  max-height: 52px;
  overflow: auto
}

.timer-wrap {
  justify-self: end;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 20px;
  background: #f2f6f8;
  border: 1px solid #dbe6eb;
  border-radius: 15px;
  color: var(--ink)
}

.timer-wrap>span {
  font-size: 14px;
  max-width: 72px;
  line-height: 1.3
}

.timer {
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2
}

.timer-wrap.urgent {
  background: #fff0f2;
  border-color: #e5aab3;
  color: var(--danger)
}

.resume-timer {
  justify-content: center;
  max-width: 240px;
  margin: 24px auto
}

.resume-name {
  font-size: 28px;
  font-weight: 650;
  max-height: 160px
}

.status-symbol {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 40px;
  background: #e8f5f2;
  color: #187661;
  margin: 0 auto 24px
}

.completion-card h1 {
  font-size: 44px
}

.completion-card .welcome-logo {
  width: 210px
}

.test-layout {
  flex: 1;
  min-height: 0;
  padding: 26px 32px;
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 60fr) 284px;
  gap: 24px
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
  min-height: 0;
  overflow: hidden
}

.panel-heading {
  min-height: 60px;
  flex: none;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 650;
  color: var(--muted)
}

.reference-panel {
  display: flex;
  flex-direction: column
}

.reference-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px
}

.reference-content p {
  font-size: 19px;
  line-height: 1.48;
  color: var(--muted);
  margin: 0
}

.ref-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 150px;
  background: #fbfcfd;
  border: 1px solid #e4ecef;
  border-radius: 14px;
  padding: 14px;
  overflow: hidden
}

.ref-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain
}

.ref-image.compact {
  flex: 0 0 214px;
  min-height: 0
}

.ref-formula {
  font-size: 30px;
  font-weight: 750;
  text-align: center;
  background: #f0f7fa;
  padding: 15px;
  border: 1px solid #dbeaf0;
  border-radius: 12px
}

.image-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 0;
  background: none;
  padding: 8px 0 22px;
  cursor: zoom-in;
  color: inherit
}

.zoom-hint {
  position: absolute;
  bottom: 6px;
  right: 10px;
  pointer-events: none;
  font-size: 13px;
  color: var(--cyan-deep);
  background: #fff;
  padding: 3px 7px;
  border-radius: 5px
}

.question-panel {
  display: flex;
  flex-direction: column
}

.question-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 28px 30px;
  display: flex;
  flex-direction: column
}

.question-body h1 {
  font-size: 28px;
  line-height: 1.34;
  margin-bottom: 10px;
  letter-spacing: -.02em
}

.answer-hint {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 24px
}

.answers {
  display: grid;
  gap: 12px;
  margin-top: auto;
  margin-bottom: auto
}

.answer {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  gap: 13px;
  align-items: center;
  text-align: left;
  min-height: 78px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid #e0e8ed;
  border-radius: 14px;
  font-size: 21px;
  line-height: 1.38;
  color: var(--ink);
  font-weight: 550;
  transition: background .16s, border-color .16s, box-shadow .16s
}

.answer-key {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #edf2f5;
  color: var(--muted);
  font-size: 16px;
  font-weight: 750
}

.answer-check {
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan-deep)
}

.answer[aria-pressed=true] {
  background: #eff9fc;
  border-color: var(--cyan-deep);
  box-shadow: 0 3px 10px #087ba30b
}

.answer[aria-pressed=true] .answer-key {
  background: var(--cyan-deep);
  color: #fff
}

.question-tools {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap
}

.question-tools .button[aria-pressed=true] {
  background: #fff7e7;
  color: #815909;
  border-color: #ccac63
}

.navigator {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: auto
}

.navigator-heading h2 {
  font-size: 22px;
  margin-bottom: 10px
}

.navigator-heading p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 14px
}

.progress-track {
  height: 7px;
  border-radius: 10px;
  background: #e6eef2;
  overflow: hidden
}

.progress-track>div {
  height: 100%;
  width: 0;
  background: var(--cyan-deep);
  border-radius: inherit;
  transition: width .25s ease
}

#questionGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px
}

.grid-question {
  height: 49px;
  min-width: 0;
  border: 1px solid #cad9e1;
  border-radius: 11px;
  background: #fff;
  color: var(--muted);
  font-size: 18px;
  font-weight: 650;
  position: relative;
  transition: background .15s, border-color .15s
}

.question-index {
  position: relative;
  top: -2px
}

.question-mark {
  position: absolute;
  bottom: 0;
  right: 4px;
  font-size: 13px;
  line-height: 1.2
}

.grid-question.answered {
  background: #e5f3f8;
  border-color: #a4cbdc;
  color: #075d7d
}

.grid-question[aria-current] {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 2px;
  color: #064e6b
}

.grid-question.flagged .question-mark {
  color: #8c600b
}

.grid-legend {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  font-size: 14px;
  color: var(--muted)
}

.grid-legend span {
  display: flex;
  align-items: center;
  gap: 8px
}

.legend {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid #b5c9d3;
  border-radius: 4px
}

.legend.answered {
  background: #d6edf6
}

.legend.current {
  border: 2px solid var(--cyan-deep)
}

.navigator>.button {
  margin-top: auto;
  font-size: 17px;
  min-height: 56px;
  padding: 12px
}

.action-footer {
  min-height: 90px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 32px;
  border-top: 1px solid var(--line);
  background: #fff
}

.action-footer>p {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
  text-align: center
}

.action-footer>.button {
  min-width: 160px
}

.test-layout.no-reference {
  grid-template-columns: minmax(0, 1fr) 284px
}

.test-layout.no-reference .question-body {
  max-width: 1100px;
  width: 100%;
  align-self: center
}

.practice-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 28px 36px
}

.practice-questions {
  padding: 8px 30px;
  overflow: auto
}

.practice-question {
  padding: 24px 0;
  border-bottom: 1px solid var(--line)
}

.practice-question:last-child {
  border: 0
}

.practice-question h2 {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 18px;
  letter-spacing: -.02em
}

.practice-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px
}

.practice-choices .answer {
  min-height: 62px;
  font-size: 20px
}

.practice-layout.no-reference {
  grid-template-columns: 1fr
}

.practice-layout.no-reference>.reference-panel {
  display: none
}

.inline-reference {
  max-height: 280px
}

.review-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  max-width: 1440px;
  width: 100%;
  margin: auto;
  padding: 30px 36px
}

.review-intro {
  color: var(--muted);
  font-size: 21px
}

.review-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 26px
}

.review-stat {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px
}

.review-stat strong {
  font-size: 38px;
  color: var(--cyan-deep)
}

.review-stat span {
  font-size: 20px;
  color: var(--muted)
}

.review-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap
}

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

.review-item {
  width: 100%;
  padding: 20px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink)
}

.review-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan-deep)
}

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

.review-copy strong {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600
}

.review-copy>span {
  font-size: 17px;
  color: var(--muted)
}

.review-badge {
  font-size: 15px;
  color: var(--muted)
}

.empty-state {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-radius: 16px
}

.notice {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  background: #fff0f2;
  color: #9a1c2d;
  border-bottom: 1px solid #e6abb3;
  font-size: 17px;
  z-index: 11
}

.notice button {
  flex-shrink: 0
}

.connection {
  flex: none;
  background: #fff8e9;
  color: #745513;
  text-align: center;
  padding: 8px 18px;
  font-size: 15px
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: white;
  z-index: 100
}

dialog {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0;
  width: min(660px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  color: var(--ink);
  box-shadow: 0 24px 80px #142e4940
}

dialog::backdrop {
  background: #102d42aa;
  backdrop-filter: blur(5px)
}

dialog[open] {
  animation: dialog-in .2s ease-out
}

.dialog-content {
  padding: 38px
}

.dialog-content h2 {
  font-size: 34px;
  margin-bottom: 20px
}

.dialog-content p {
  color: var(--muted);
  font-size: 20px
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap
}

.image-dialog {
  width: min(1400px, calc(100vw - 64px));
  padding: 24px;
  overflow: auto
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px
}

.dialog-heading h2 {
  margin: 0;
  font-size: 26px
}

#enlargedContent {
  height: min(70vh, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfcfd;
  border-radius: 16px;
  padding: 24px;
  overflow: auto
}

#enlargedContent>img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

#enlargedContent .rating-diagram {
  height: 100%;
  max-width: 1100px
}

#enlargedContent .wires {
  width: min(850px, 100%)
}

#enlargedContent .wire {
  height: 70px
}

#enlargedContent .wire-label {
  height: 70px;
  font-size: 30px
}

.image-dialog>.fine-print {
  text-align: center;
  margin-top: 14px
}

.blank.current-blank {
  background: #fff1ce;
  border-radius: 5px
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(6px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.question-enter {
  animation: screen-in .18s ease-out
}

@media(min-width:1700px) and (min-height:950px) {
  .topbar {
    min-height: 106px
  }

  .test-layout {
    padding: 28px 36px;
    gap: 26px;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr) 292px
  }

  .navigator {
    padding: 24px
  }

  .grid-question {
    height: 52px
  }

  .question-body {
    padding: 28px 30px
  }

  .question-body h1 {
    font-size: 29px
  }

  .answer {
    min-height: 82px;
    font-size: 22px
  }

  .reference-content p {
    font-size: 20px
  }

  .action-footer {
    min-height: 96px
  }

  .practice-choices {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }

  .practice-choices .answer {
    grid-template-columns: 30px 1fr;
    gap: 10px;
    padding: 12px 10px;
    min-height: 72px
  }

  .practice-choices .answer-check {
    display: none
  }

  .practice-choices .answer-key {
    width: 30px;
    height: 30px
  }

  .practice-question {
    padding: 30px 0
  }

  .practice-question h2 {
    font-size: 25px
  }
}

@media(max-width:1400px) {
  body {
    font-size: 18px
  }

  .test-layout {
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr) 244px;
    gap: 16px;
    padding: 20px
  }

  .navigator {
    padding: 18px 14px;
    gap: 16px
  }

  #questionGrid {
    gap: 9px
  }

  .grid-question {
    height: 48px
  }

  .question-body {
    padding: 22px
  }

  .question-body h1 {
    font-size: 25px
  }

  .answer {
    font-size: 19px;
    min-height: 68px;
    padding: 12px
  }

  .reference-content {
    padding: 18px
  }

  .reference-content p {
    font-size: 17px
  }

  .panel-heading {
    padding: 14px 18px
  }

  .panel-heading .subtle {
    display: none
  }

  .topbar {
    grid-template-columns: 210px 1fr 235px;
    padding: 14px 24px
  }

  .intro-copy {
    padding: 28px
  }

  .intro-brand {
    padding: 40px
  }

  .intro-brand h2 {
    font-size: 46px
  }

  .instructions-card {
    padding: 30px
  }

  .test-layout.no-reference {
    grid-template-columns: minmax(0, 1fr) 244px
  }
}

@media(max-height:850px) and (min-width:1101px) {
  .topbar {
    min-height: 82px;
    padding-top: 10px;
    padding-bottom: 10px
  }

  .topbar>.logo-menu-button {
    height: 52px
  }

  .test-layout {
    padding-top: 16px;
    padding-bottom: 16px
  }

  .action-footer {
    min-height: 80px;
    padding-top: 10px;
    padding-bottom: 10px
  }

  .navigator {
    gap: 14px
  }

  .navigator-heading h2 {
    font-size: 20px;
    margin-bottom: 6px
  }

  .navigator-heading p {
    margin-bottom: 10px
  }

  #questionGrid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px
  }

  .grid-question {
    height: 48px
  }

  .grid-legend {
    grid-template-columns: 1fr 1fr;
    font-size: 12px
  }

  .navigator {
    padding: 16px 14px
  }

  .question-body h1 {
    font-size: 24px
  }

  .answer {
    font-size: 19px;
    min-height: 64px
  }

  .question-body {
    padding: 20px
  }

  .question-tools {
    padding: 10px 18px
  }

  .reference-content p {
    font-size: 17px
  }
}

@media(max-width:1100px) {
  .app {
    height: auto;
    min-height: 100dvh;
    overflow: visible
  }

  .workspace-screen {
    min-height: calc(100dvh - 6px)
  }

  .test-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    flex: none
  }

  .navigator {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px
  }

  .navigator #questionGrid {
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr))
  }

  .navigator>.button {
    margin-top: 0
  }

  .test-layout.no-reference {
    grid-template-columns: 1fr
  }

  .reference-content {
    max-height: 680px
  }

  .question-body {
    min-height: 400px
  }

  .question-tools {
    padding: 14px
  }

  .topbar {
    grid-template-columns: 170px 1fr 210px;
    gap: 16px
  }

  .topbar>.logo-menu-button {
    height: 48px
  }

  .topbar h1 {
    font-size: 25px
  }

  .topbar .eyebrow {
    font-size: 12px
  }

  .timer {
    font-size: 26px
  }

  .timer-wrap {
    padding: 10px 14px
  }

  .intro-screen {
    grid-template-columns: 1fr
  }

  .intro-brand {
    padding: 40px
  }

  .intro-brand .brand-logo {
    width: 220px;
    margin-bottom: 30px
  }

  .intro-brand:after {
    bottom: 18px
  }

  .intro-brand h2 {
    font-size: 40px
  }

  .intro-brand .test-facts {
    margin: 12px
  }

  .intro-copy {
    padding: 26px
  }

  .intro-screen .instructions-card {
    max-width: 100%
  }

  .practice-layout {
    min-height: 600px
  }

  .practice-choices {
    grid-template-columns: 1fr 1fr
  }

  .action-footer {
    flex-wrap: wrap
  }

  .action-footer>p {
    flex: 1
  }

  .review-content {
    overflow: visible
  }

  .review-item {
    grid-template-columns: 40px 1fr
  }

  .review-badge {
    grid-column: 2
  }

  .welcome-screen {
    min-height: calc(100dvh - 6px)
  }
}

@media(max-width:700px) {
  .welcome-screen {
    padding: 22px 16px
  }

  .welcome-card {
    padding: 30px 24px;
    border-radius: 22px
  }

  .welcome-card h1 {
    font-size: 36px
  }

  .welcome-logo {
    width: 210px
  }

  .lead {
    font-size: 20px
  }

  .test-facts {
    gap: 8px
  }

  .test-facts span {
    font-size: 14px
  }

  .button {
    font-size: 17px;
    padding: 12px 18px;
    min-height: 56px
  }

  .topbar {
    grid-template-columns: 1fr auto;
    padding: 16px
  }

  .topbar>.logo-menu-button {
    display: none
  }

  .topbar .header-title {
    text-align: left
  }

  .timer-wrap>span {
    display: none
  }

  .test-layout {
    display: flex;
    flex-direction: column;
    padding: 16px
  }

  .reference-content {
    max-height: 430px
  }

  .ref-image {
    min-height: 220px
  }

  .navigator {
    display: flex
  }

  .navigator #questionGrid {
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr))
  }

  .grid-legend {
    grid-template-columns: 1fr 1fr
  }

  .question-body h1 {
    font-size: 25px
  }

  .action-footer {
    padding: 16px;
    gap: 12px
  }

  .action-footer>.button {
    min-width: 0
  }

  .action-footer>p {
    order: 3;
    flex-basis: 100%;
    font-size: 15px
  }

  .practice-layout {
    display: flex;
    flex-direction: column;
    padding: 16px
  }

  .practice-choices {
    grid-template-columns: 1fr
  }

  .practice-questions {
    padding: 8px 20px
  }

  .review-content {
    padding: 24px 16px
  }

  .review-stats {
    gap: 10px
  }

  .review-stat {
    padding: 15px 10px;
    flex-direction: column;
    gap: 4px
  }

  .review-stat span {
    font-size: 14px;
    text-align: center
  }

  .review-stat strong {
    font-size: 28px
  }

  .review-item {
    padding: 16px;
    gap: 8px
  }

  .review-copy strong {
    font-size: 18px
  }

  .review-copy>span {
    font-size: 16px
  }

  .notice {
    flex-wrap: wrap;
    font-size: 15px;
    padding: 12px
  }

  .instructions-card {
    padding: 24px
  }

  .instructions-card h1 {
    font-size: 32px
  }

  .steps {
    gap: 12px
  }

  .instruction-list li {
    font-size: 17px;
    grid-template-columns: 32px 1fr;
    gap: 10px
  }

  .instruction-list li:before {
    width: 30px;
    height: 30px
  }

  .instruction-list strong {
    font-size: 19px
  }

  .image-dialog {
    width: calc(100vw - 20px);
    padding: 14px
  }

  .dialog-heading h2 {
    font-size: 20px
  }

  .dialog-content {
    padding: 26px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important
  }
}

/* Keep all 37 navigation targets and the finish action visible at kiosk size. */
@media(min-width:1700px) and (min-height:950px) {
  .test-layout {
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr) 320px
  }

  .test-layout.no-reference {
    grid-template-columns: minmax(0, 1fr) 320px
  }

  .navigator {
    padding: 20px;
    gap: 16px
  }

  #questionGrid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px
  }

  .grid-question {
    height: 50px
  }

  .grid-legend {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px
  }

  .grid-legend span:last-child {
    grid-column: 1/-1
  }
}

#enlargedContent .rating-diagram {
  width: min(100%, calc(65vh * var(--diagram-ratio)));
  height: auto;
  aspect-ratio: var(--diagram-ratio);
  flex: none
}

@media(max-width:1699px), (max-height:949px) {
  #questionGrid {
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr))
  }
}

.question-body>.answers {
  margin-bottom: 0
}

.question-body>#clearBtn {
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: 12px;
  margin-bottom: auto
}

.question-tools {
  justify-content: flex-start
}

.topbar.test-topbar {
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) auto auto
}

.test-topbar>#reviewBtn {
  white-space: nowrap
}

@media(min-width:1700px) and (min-height:950px) {
  .question-body {
    padding-top: 20px;
    padding-bottom: 20px
  }

  .question-body .answer-hint {
    margin-bottom: 16px
  }

  .question-body .answers {
    gap: 10px
  }

  .question-body .answer {
    min-height: 76px;
    padding-top: 12px;
    padding-bottom: 12px
  }
}

@media(max-width:700px) {
  .topbar.test-topbar {
    grid-template-columns: minmax(0, 1fr) auto
  }

  .test-topbar>.header-title {
    grid-column: 1/-1
  }

  .test-topbar>.timer-wrap {
    justify-self: start
  }
}

.completion-actions {
  display: grid;
  gap: 12px
}

.answer-print {
  display: none
}

#printAnswersBtn {
  justify-self: end
}

/* Shorter desktop kiosk viewport, including 1920 x 945 with browser chrome. */
@media(min-width:1700px) and (min-height:851px) and (max-height:949px) {
  .topbar {
    min-height: 90px;
    padding: 12px 32px
  }

  .topbar>.logo-menu-button {
    height: 56px
  }

  .action-footer {
    min-height: 80px;
    padding: 10px 32px
  }

  .test-layout {
    padding: 16px 28px;
    gap: 20px;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr) 320px
  }

  .test-layout.no-reference {
    grid-template-columns: minmax(0, 1fr) 320px
  }

  .panel-heading {
    min-height: 54px;
    padding: 14px 20px
  }

  .navigator {
    padding: 18px;
    gap: 16px
  }

  #questionGrid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px
  }

  .grid-question {
    height: 50px
  }

  .grid-legend {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px
  }

  .grid-legend span:last-child {
    grid-column: 1/-1
  }

  .question-body {
    padding: 20px 26px
  }

  .question-body h1 {
    font-size: 27px
  }

  .answer-hint {
    margin-bottom: 16px
  }

  .answers {
    gap: 10px
  }

  .answer {
    min-height: 70px;
    padding: 12px 16px
  }

  .question-tools {
    padding: 10px 20px
  }

  .reference-content {
    padding: 20px;
    gap: 16px
  }

  .practice-layout {
    padding: 20px 28px;
    gap: 24px
  }

  .practice-question {
    padding: 20px 0
  }

  .practice-choices {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }

  .practice-choices .answer {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 10px;
    min-height: 66px
  }

  .practice-choices .answer-check {
    display: none
  }

  .practice-choices .answer-key {
    width: 30px;
    height: 30px
  }

  .intro-copy {
    padding: 26px 48px
  }

  .instructions-card {
    padding: 28px 36px
  }

  .steps {
    margin-bottom: 22px
  }

  .instruction-list {
    gap: 16px
  }

  .review-content {
    padding-top: 22px;
    padding-bottom: 22px
  }

  .review-stat {
    padding: 18px 24px
  }
}

/* Logo controls retain the logo's existing footprint. */
.logo-menu-button {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
  max-width: 100%
}

.logo-menu-button>img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain
}

.topbar>.logo-menu-button {
  width: 230px
}

.intro-brand>.logo-menu-button {
  width: 285px;
  margin-bottom: 64px
}

.intro-brand .logo-menu-button>.brand-logo {
  width: 100%;
  margin: 0
}

.admin-menu {
  display: grid;
  gap: 12px
}

#adminPin,
#adminMinutes {
  display: block;
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  margin: 12px 0 18px;
  border: 2px solid #b7cbd5;
  border-radius: 12px;
  font-size: 24px;
  color: var(--ink)
}

#adminPin {
  letter-spacing: .4em
}

.admin-time {
  font-size: 38px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 20px
}

.admin-add {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px
}

#adminTimerMessage {
  margin: 16px 0 0;
  color: var(--cyan-deep)
}

@media(max-width:1100px) {
  .intro-brand>.logo-menu-button {
    width: 220px;
    margin-bottom: 30px
  }
}

#startScreen>.welcome-card {
  position: relative
}

#startScreen .start-menu-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  font-size: 28px;
  line-height: 1
}

@media(max-width:700px) {
  #startScreen>.welcome-card {
    padding-top: 72px
  }
}