.exam-app {
  --exam-red: #d6083b;
  --exam-blue: #3262a3;
  --exam-ink: #2e2a2a;
  --exam-tint: #edf2f8;
  --exam-rule: #2e2a2a;
  --exam-ui: Arial, Helvetica, sans-serif;
  height: 100dvh;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: var(--exam-ink);
  font-family: var(--exam-ui);
  font-size: 16px;
}
.exam-app button {
  font-family: var(--exam-ui);
  color: inherit;
}
.exam-app button:focus-visible,
.exam-app input:focus-visible,
.exam-app textarea:focus-visible,
.exam-app summary:focus-visible,
.exam-divider:focus-visible {
  outline: 3px solid var(--exam-blue);
  outline-offset: 4px;
}
.exam-app button:disabled {
  opacity: 0.65;
  cursor: default;
}
.exam-header {
  flex: 0 0 80px;
  background: var(--exam-tint);
  border-bottom: 2px dashed var(--exam-rule);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 40px;
  position: relative;
  z-index: 6;
}
.exam-section h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 10px;
  line-height: 1.2;
}
.exam-directions-trigger {
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.exam-chevron {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
}
.exam-timer-wrap {
  text-align: center;
  min-width: 92px;
  align-self: start;
  padding-top: 0;
}
.exam-time {
  font-size: 23px;
  line-height: 27px;
  font-weight: 650;
  min-height: 29px;
  font-variant-numeric: tabular-nums;
}
.exam-time svg {
  width: 23px;
  height: 27px;
  color: #8c8c8c;
  vertical-align: middle;
}
.exam-time.is-low {
  color: var(--exam-red);
}
.exam-timer-toggle {
  border: 1px solid var(--exam-ink);
  background: transparent;
  border-radius: 15px;
  min-width: 49px;
  font-weight: 600;
  font-size: 12px;
  line-height: 18px;
  padding: 0 11px;
}
.exam-header-tools {
  justify-self: end;
  display: flex;
  gap: 20px;
  align-items: center;
  align-self: center;
}
.exam-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
  background: transparent;
  border-bottom: 2px solid transparent;
  padding: 5px 0 6px;
  min-width: 33px;
  max-width: 120px;
  font-size: 12px;
  font-weight: 550;
}
.exam-tool[aria-expanded="true"] {
  border-color: var(--exam-ink);
}
.exam-tool > svg {
  height: 18px;
  width: 18px;
}
.exam-tool > span {
  width: 100%;
  line-height: 18px;
}
.exam-more-trigger {
  max-width: 40px;
}
.exam-preview-banner {
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  background: var(--exam-blue);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  margin: 0 40px;
  border-radius: 0 0 17px 17px;
  z-index: 1;
}
.exam-body {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.exam-split {
  height: 100%;
  display: grid;
  grid-template-columns: var(--pane-size, 50%) 4px minmax(0, 1fr);
}
.exam-passage-pane,
.exam-question-pane {
  overflow: auto;
  overscroll-behavior: contain;
  min-width: 0;
  scrollbar-width: thin;
}
.exam-passage-content {
  padding: 34px 40px 45px;
}
.exam-question-content {
  padding: 34px 54px 45px 36px;
}
.exam-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.exam-passage {
  line-height: 1.45;
}
.exam-question-bar {
  height: 34px;
  display: flex;
  align-items: center;
  background: #f0f0f0;
  border-bottom: 2px dashed var(--exam-rule);
  margin: 0 -4px 14px 0;
}
.exam-question-number {
  height: 31px;
  width: 27px;
  display: grid;
  place-items: center;
  background: var(--exam-ink);
  color: white;
  font-size: 19px;
  font-weight: 700;
  flex-shrink: 0;
}
.exam-flag {
  background: transparent;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  padding: 3px 15px;
  white-space: nowrap;
}
.exam-flag svg {
  height: 20px;
  width: 16px;
}
.exam-flag.is-flagged svg {
  fill: var(--exam-red);
  stroke: var(--exam-red);
}
.exam-elimination-toggle {
  margin-left: auto;
  align-self: center;
  margin-right: 7px;
  width: 29px;
  height: 27px;
  background: #fff;
  border: 1px solid #555;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  position: relative;
  padding: 0;
  color: var(--exam-ink) !important;
}
.exam-elimination-toggle:after {
  content: "";
  position: absolute;
  top: 12px;
  left: 1px;
  width: 25px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-40deg);
}
.exam-elimination-toggle.is-on {
  color: white !important;
  background: var(--exam-blue);
}
.exam-prompt {
  margin: 0 0 18px;
}
.exam-choice-wrap {
  position: relative;
  margin: 14px 0;
  padding-right: 35px;
}
.exam-choice {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  width: 100%;
  min-height: 46px;
  border: 1px solid #686868;
  border-radius: 9px;
  padding: 11px 13px;
  cursor: pointer;
  background: white;
}
.exam-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.exam-choice:has(input:focus-visible) {
  outline: 3px solid var(--exam-blue);
  outline-offset: 3px;
}
.exam-choice-letter {
  font-family: var(--exam-ui);
  border: 2px solid #666;
  color: #555;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  line-height: 1;
  margin-top: 0;
}
.exam-choice-text {
  flex: 1;
  line-height: 1.35;
}
.exam-choice.is-selected {
  border: 3px solid var(--exam-blue);
  padding: 9px 11px;
}
.exam-choice.is-selected .exam-choice-letter {
  background: var(--exam-blue);
  color: white;
  border-color: #666;
}
.exam-eliminate {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  width: 28px;
  height: 29px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 13px;
}
.exam-eliminate > span {
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  line-height: 17px;
  position: relative;
}
.exam-eliminate > span:after {
  content: "";
  height: 1px;
  width: 25px;
  position: absolute;
  left: -4px;
  top: 8px;
  background: var(--exam-ink);
}
.exam-eliminate.is-undo {
  font-weight: bold;
  font-size: 12px;
  width: 35px;
  text-decoration: underline;
  right: -9px;
}
.exam-choice-wrap.is-eliminated .exam-choice {
  color: #a2a2a2;
}
.exam-choice-wrap.is-eliminated .exam-choice:after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--exam-ink);
  top: 50%;
  left: -4px;
  right: -4px;
  pointer-events: none;
}
.exam-choice-wrap.is-eliminated .exam-choice-letter {
  color: #aaa;
  border-color: #aaa;
}
.exam-divider {
  position: relative;
  background: #999;
  cursor: col-resize;
  touch-action: none;
  outline-offset: -3px !important;
}
.exam-divider > span {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 28px;
  border-radius: 3px;
  background: var(--exam-ink);
  color: white;
  display: grid;
  place-items: center;
  font-size: 8px;
  letter-spacing: -3px;
  padding-right: 3px;
}
.exam-is-resizing {
  cursor: col-resize;
  user-select: none;
}
.exam-footer {
  position: relative;
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--exam-tint);
  border-top: 2px dashed var(--exam-rule);
  padding: 9px 40px;
  z-index: 5;
  gap: 20px;
}
.exam-student-name {
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 32%;
}
.exam-footer-buttons {
  display: flex;
  gap: 12px;
  margin-left: auto;
  align-items: center;
}
.exam-primary,
.exam-secondary {
  border-radius: 23px;
  color: white !important;
  background: var(--exam-red);
  font-size: 14px;
  font-weight: bold;
  padding: 12px 22px;
  line-height: 18px;
  min-width: 78px;
  white-space: nowrap;
}
.exam-secondary {
  background: var(--exam-blue);
}
.exam-navigator-trigger {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--exam-ink);
  color: white !important;
  border: 1px solid white;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  line-height: 20px;
  padding: 11px 16px;
  white-space: nowrap;
}
.exam-navigator-trigger .exam-chevron {
  transform: rotate(225deg);
  margin-top: 5px;
}
.exam-navigator-trigger .exam-chevron.is-down {
  transform: rotate(45deg);
  margin-top: -3px;
}
.exam-save {
  font-size: 10px;
  color: #777;
  position: absolute;
  bottom: 68px;
  right: 40px;
  white-space: nowrap;
  background: #fffffff2;
  border-radius: 3px;
  padding: 4px 7px;
  max-width: 350px;
  text-align: right;
  pointer-events: none;
  line-height: 1.4;
}
.exam-save.is-error {
  color: var(--exam-red);
  font-weight: bold;
  pointer-events: auto;
}
.exam-navigator {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  width: min(530px, calc(100vw - 32px));
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 11px #0003;
  padding: 24px;
  z-index: 10;
  text-align: center;
}
.exam-navigator:after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: calc(50% - 18px);
  width: 34px;
  height: 34px;
  background: white;
  transform: rotate(45deg);
  box-shadow: 3px 3px 3px #00000009;
  z-index: -1;
}
.exam-navigator header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.exam-navigator h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: 0;
  line-height: 1.3;
}
.exam-icon-button {
  display: inline-grid;
  place-items: center;
  padding: 3px;
  background: transparent;
  flex-shrink: 0;
}
.exam-icon-button svg {
  width: 20px;
  height: 20px;
}
.exam-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 13px;
  white-space: nowrap;
}
.exam-legend > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.exam-legend-pin {
  display: inline-flex;
  color: var(--exam-ink);
}
.exam-legend-pin svg,
.exam-current-pin svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}
.exam-unanswered-icon {
  height: 16px;
  width: 16px;
  border: 1px dashed var(--exam-ink);
  display: inline-block;
}
.exam-review-icon,
.exam-grid-flag {
  background: var(--exam-red);
  width: 12px;
  height: 17px;
  display: inline-block;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
}
.exam-navigator .exam-legend {
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
  padding: 13px 0;
  margin: 18px 0 28px;
}
.exam-question-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 5px 10px;
  text-align: left;
}
.exam-grid-button {
  position: relative;
  width: 38px;
  height: 39px;
  font-size: 25px;
  font-weight: 600;
  color: var(--exam-blue) !important;
  background: #fff;
  border: 1px solid #aaa;
  line-height: 1;
  padding: 0;
}
.exam-grid-button.is-unanswered {
  border: 1px dashed var(--exam-ink);
}
.exam-grid-button.is-answered {
  background: var(--exam-blue);
  border-color: var(--exam-blue);
  color: white !important;
}
.exam-grid-button.is-current
  > span:not(.exam-current-pin):not(.exam-grid-flag) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.exam-current-pin {
  position: absolute;
  top: -25px;
  left: -4px;
  display: flex;
  color: var(--exam-ink);
  line-height: 1;
}
.exam-grid-flag {
  position: absolute;
  right: -5px;
  top: -8px;
  width: 10px;
  height: 14px;
}
.exam-outline-button {
  border: 1px solid var(--exam-blue);
  border-radius: 20px;
  padding: 9px 18px;
  color: var(--exam-blue) !important;
  background: white;
  font-size: 14px;
  font-weight: 600;
  margin-top: 20px;
}
.exam-check-page {
  overflow: auto;
  height: 100%;
  padding: 35px 40px;
  background: #fafafa;
  text-align: center;
}
.exam-check-page > h2 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0 0 32px;
}
.exam-check-page > p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto 35px;
  max-width: 850px;
}
.exam-check-card {
  max-width: 850px;
  background: white;
  box-shadow: 0 8px 18px #0002;
  border-radius: 10px;
  padding: 30px;
  margin: 0 auto;
  text-align: left;
}
.exam-check-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid #bbb;
  margin-bottom: 24px;
  padding-bottom: 24px;
  flex-wrap: wrap;
}
.exam-check-card h3 {
  font-size: 18px;
  letter-spacing: 0;
  margin: 0;
}
.exam-check-card .exam-question-grid {
  gap: 22px;
}
.exam-check-summary {
  font-size: 13px !important;
  color: #666;
  margin-top: 28px !important;
}
.exam-more-menu {
  position: absolute;
  top: 88px;
  right: 40px;
  width: 260px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 15px #0002;
  padding: 12px 0;
  z-index: 15;
}
.exam-more-menu button {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  background: white;
  font-size: 16px;
  padding: 15px 22px;
  text-align: left;
}
.exam-more-menu button:hover {
  background: #f5f5f5;
}
.exam-more-menu svg {
  width: 22px;
  height: 22px;
}
.exam-dialog {
  padding: 24px;
  max-width: 900px;
  width: calc(100% - 50px);
  max-height: 90dvh;
  border-radius: 9px;
  box-shadow: 0 20px 80px #0003;
  font-family: var(--exam-ui);
  overflow: hidden;
}
.exam-dialog[open] {
  display: flex;
  flex-direction: column;
}
.exam-dialog::backdrop {
  background: #000c;
  backdrop-filter: none;
}
.exam-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 25px;
}
.exam-dialog h2 {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 450;
  margin: 0;
  letter-spacing: 0;
}
.exam-dialog-content {
  overflow: auto;
  min-height: 0;
  font-size: 16px;
  line-height: 1.6;
}
.exam-dialog-content > p {
  margin: 0 0 20px;
}
.exam-dialog > footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  flex-shrink: 0;
}
.exam-dialog-content details {
  border-top: 1px solid #ddd;
}
.exam-dialog-content details:last-child {
  border-bottom: 1px solid #ddd;
}
.exam-dialog-content summary {
  padding: 25px;
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
}
.exam-dialog-content summary:after {
  content: "+";
  font-size: 30px;
  line-height: 1;
}
.exam-dialog-content details[open] summary:after {
  content: "−";
}
.exam-dialog-content details[open] {
  background: #f5f5f5;
}
.exam-dialog-content details p {
  padding: 0 25px 25px;
  margin: 0;
  font-size: 14px;
}
.exam-help-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 0 12px 15px;
}
.exam-help-actions button {
  background: white;
  font-weight: 600;
  font-size: 13px;
}
.exam-text-button {
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--exam-blue) !important;
  padding: 5px;
}
.exam-shortcuts-table {
  font-family: var(--exam-ui);
  font-size: 14px;
  margin-top: 22px;
}
.exam-shortcuts-table th {
  background: var(--exam-ink);
  color: white;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}
.exam-shortcuts-table td {
  padding: 15px 22px;
}
.exam-notes-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 355px;
  max-width: 90vw;
  overflow: auto;
  background: #fff;
  box-shadow: -5px 0 20px #0002;
  padding: 20px;
  z-index: 8;
  border-left: 1px solid #ddd;
}
.exam-notes-panel > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.exam-notes-panel h2 {
  font-size: 19px;
  letter-spacing: 0;
  margin: 0;
}
.exam-notes-panel label {
  font-family: var(--exam-ui);
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin: 10px 0 7px;
}
.exam-notes-panel textarea {
  font-family: var(--exam-ui);
  min-height: 95px;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px;
}
.exam-panel-caption {
  font-size: 12px;
  line-height: 1.6;
  color: #777;
}
.exam-highlight-notes article {
  border-top: 1px solid #ddd;
  margin-top: 22px;
  padding-top: 18px;
  position: relative;
}
.exam-note-quote {
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 5px 18px;
}
.exam-note-color {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  top: 23px;
  left: 0;
  border: 1px solid #999;
}
.exam-color-dot {
  display: block;
  height: 25px;
  width: 25px;
  border: 1px solid #aaa;
  border-radius: 50%;
}
.is-yellow {
  background: #fff0a3;
}
.is-blue {
  background: #dceeff;
}
.is-pink {
  background: #fbe2f4;
}
.exam-highlight {
  color: inherit;
  padding: 0;
  background: #fff0a3;
  cursor: pointer;
}
.exam-highlight.is-blue {
  background: #dceeff;
}
.exam-highlight.is-pink {
  background: #fbe2f4;
}
.exam-highlight.underline-solid {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.exam-highlight.underline-dashed {
  text-decoration: underline dashed;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.exam-selection-toolbar {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
  border: 1px solid #ccc;
  border-radius: 25px;
  padding: 6px 9px;
  background: white;
  box-shadow: 0 2px 7px #0003;
}
.exam-selection-toolbar[hidden] {
  display: none;
}
.exam-selection-toolbar button {
  background: transparent;
  width: 31px;
  height: 31px;
  padding: 0;
  border-radius: 50%;
  font-size: 20px;
  display: grid;
  place-items: center;
}
.exam-selection-toolbar button:hover {
  outline: 2px solid var(--exam-blue);
}
.exam-selection-toolbar .exam-icon-button svg {
  width: 22px;
  height: 22px;
}
.exam-dashed u {
  text-decoration-style: dashed;
}
.exam-break-page {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 35px;
  background: #fafafa;
}
.exam-break-page h2 {
  font-weight: 500;
  font-size: 32px;
  margin: 20px 0;
  letter-spacing: 0;
}
.exam-break-page p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 650px;
  margin: 0;
}
.exam-break-symbol {
  width: 74px;
  height: 74px;
  border: 2px solid var(--exam-blue);
  color: var(--exam-blue);
  border-radius: 50%;
  padding: 18px;
}
.exam-break-symbol svg {
  height: 100%;
  width: 100%;
}
.exam-table {
  margin: 0 0 20px;
}
.exam-table-title {
  text-align: center;
  font-size: 17px;
  margin-bottom: 10px;
}
.exam-table-scroll {
  overflow: auto;
}
.exam-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}
.exam-table th,
.exam-table td {
  border: 1px solid #555;
  padding: 12px 8px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--exam-ink);
  background: white;
  font-size: 16px;
  font-weight: 400;
}
.exam-table-caption {
  font-size: 14px;
  margin: 8px 0 0;
}
.exam-result {
  background: var(--exam-tint);
  border-left: 3px solid var(--exam-blue);
  font-size: 13px;
  line-height: 1.7;
  padding: 16px;
  margin-top: 28px;
}
.exam-result p {
  white-space: pre-wrap;
  margin: 10px 0 0;
}
.exam-asset {
  margin-top: 15px;
}
.exam-asset > img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
}
.exam-asset iframe {
  width: 100%;
  height: 65vh;
  border: 1px solid #ddd;
}
.exam-asset-link {
  display: inline-block;
  font-family: var(--exam-ui);
  font-size: 11px;
  margin: 10px 0;
  color: var(--exam-blue);
}
.exam-numeric-label {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}
.exam-numeric-input {
  max-width: 250px;
  font-size: 18px;
}
@media (max-width: 1050px) {
  .exam-section h1 {
    font-size: 16px;
  }
  .exam-header {
    padding: 12px 24px;
  }
  .exam-passage-content {
    padding: 28px 25px;
  }
  .exam-question-content {
    padding: 28px 42px 35px 24px;
  }
  .exam-text {
    font-size: 16px;
  }
  .exam-flag {
    padding: 3px 9px;
    font-size: 13px;
  }
  .exam-student-name {
    font-size: 14px;
    max-width: 26%;
  }
  .exam-footer {
    padding: 9px 24px;
  }
  .exam-footer-buttons {
    gap: 8px;
  }
  .exam-primary,
  .exam-secondary {
    padding: 11px 17px;
    min-width: 65px;
  }
  .exam-save {
    right: 25px;
  }
  .exam-choice {
    gap: 12px;
  }
  .exam-more-menu {
    right: 24px;
  }
  .exam-check-page {
    padding: 30px 24px;
  }
  .exam-check-card {
    padding: 25px;
  }
  .exam-notes-panel {
    width: 320px;
  }
  .exam-legend {
    gap: 15px;
  }
  .exam-preview-banner {
    margin: 0 24px;
  }
}
@media (max-width: 700px) {
  .exam-app {
    min-height: 430px;
  }
  .exam-header {
    height: 92px;
    flex-basis: 92px;
    padding: 12px 16px;
    grid-template-columns: minmax(0, 1fr) 82px 100px;
    gap: 10px;
  }
  .exam-section h1 {
    font-size: 14px;
    max-width: 160px;
    margin-bottom: 10px;
  }
  .exam-directions-trigger {
    font-size: 12px;
  }
  .exam-header-tools {
    gap: 12px;
  }
  .exam-tool {
    max-width: 55px;
    font-size: 9px;
  }
  .exam-tool > svg {
    height: 15px;
    width: 15px;
  }
  .exam-tool > span {
    line-height: 12px;
  }
  .exam-more-trigger {
    max-width: 30px;
  }
  .exam-timer-wrap {
    min-width: 60px;
    padding-top: 5px;
  }
  .exam-time {
    font-size: 17px;
  }
  .exam-timer-toggle {
    font-size: 11px;
    padding: 0 7px;
    min-width: 43px;
  }
  .exam-preview-banner {
    margin: 0 16px;
    font-size: 10px;
    height: 27px;
    flex-basis: 27px;
  }
  .exam-split {
    display: flex;
    flex-direction: column;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .exam-passage-pane,
  .exam-question-pane {
    overflow: visible;
    flex-shrink: 0;
  }
  .exam-passage-content {
    padding: 22px 20px 18px;
  }
  .exam-passage:empty {
    display: none;
  }
  .exam-passage-content:has(.exam-passage:empty):not(:has(figure)):not(
      :has(.exam-asset)
    ) {
    padding: 0;
  }
  .exam-divider {
    display: none;
  }
  .exam-question-content {
    padding: 10px 44px 30px 20px;
  }
  .exam-question-pane {
    border-top: 1px solid #ddd;
    padding-top: 10px;
  }
  .exam-text {
    font-size: 16px;
  }
  .exam-footer {
    flex-basis: 67px;
    padding: 10px 16px;
  }
  .exam-student-name {
    display: none;
  }
  .exam-navigator-trigger {
    left: 16px;
    transform: none;
    font-size: 12px;
    padding: 10px 12px;
  }
  .exam-primary,
  .exam-secondary {
    font-size: 12px;
    padding: 11px 14px;
    min-width: 60px;
  }
  .exam-footer-buttons {
    gap: 6px;
  }
  .exam-check-page {
    padding: 26px 20px;
  }
  .exam-check-page > h2 {
    font-size: 27px;
    margin-bottom: 22px;
  }
  .exam-check-page > p {
    font-size: 14px;
    margin-bottom: 26px;
  }
  .exam-check-card {
    padding: 20px;
  }
  .exam-check-card header {
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 15px;
  }
  .exam-check-card h3 {
    font-size: 16px;
  }
  .exam-check-card .exam-question-grid {
    gap: 15px;
  }
  .exam-legend {
    font-size: 11px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .exam-grid-button {
    width: 33px;
    height: 34px;
    font-size: 22px;
  }
  .exam-navigator {
    bottom: 86px;
    padding: 20px;
    max-height: calc(100dvh - 190px);
    overflow: auto;
  }
  .exam-navigator h2 {
    font-size: 16px;
  }
  .exam-question-grid {
    gap: 14px;
  }
  .exam-navigator .exam-legend {
    margin: 16px 0 26px;
  }
  .exam-navigator:after {
    display: none;
  }
  .exam-save {
    bottom: 73px;
    right: 16px;
    font-size: 9px;
    max-width: 280px;
  }
  .exam-more-menu {
    top: 100px;
    right: 16px;
    width: 240px;
  }
  .exam-more-menu button {
    font-size: 15px;
    padding: 13px 20px;
  }
  .exam-dialog {
    width: calc(100% - 28px);
    max-height: 92dvh;
    padding: 20px;
  }
  .exam-dialog h2 {
    font-size: 25px;
  }
  .exam-dialog-content {
    font-size: 14px;
  }
  .exam-dialog-content summary {
    padding: 18px 10px;
    font-size: 15px;
  }
  .exam-dialog-content details p {
    padding: 0 10px 18px;
    font-size: 13px;
  }
  .exam-dialog > footer {
    gap: 18px;
    padding-top: 20px;
  }
  .exam-help-actions {
    padding: 0 0 15px;
  }
  .exam-help-actions button {
    font-size: 11px;
  }
  .exam-shortcuts-table th,
  .exam-shortcuts-table td {
    font-size: 12px;
    padding: 10px;
  }
  .exam-break-page h2 {
    font-size: 26px;
  }
  .exam-break-page p {
    font-size: 14px;
  }
  .exam-check-summary {
    font-size: 12px !important;
  }
}
/* Math follows the centered choice / split response reference layouts. */
.exam-math-centered {
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}
.exam-math-centered > .exam-question-content {
  max-width: 750px;
  padding: 34px 42px 45px;
  margin: 0 auto;
}
.exam-math-centered .exam-passage {
  margin-bottom: 16px;
}
.exam-math-centered .exam-passage:empty {
  display: none;
}
.exam-response-directions {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.45;
}
.exam-response-directions h2 {
  font-family: inherit;
  font-size: 20px;
  letter-spacing: 0;
  margin: 0 0 24px;
}
.exam-response-directions ul {
  padding-left: 34px;
}
.exam-response-directions li {
  padding-left: 4px;
  margin: 5px 0;
}
.exam-response-directions table {
  width: 85%;
  margin: 28px auto;
  font-family: inherit;
  border-collapse: collapse;
  text-align: center;
}
.exam-response-directions caption {
  padding: 8px;
}
.exam-response-directions td,
.exam-response-directions th {
  border: 1px solid #555;
  padding: 14px 10px;
  background: white;
  text-transform: none;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--exam-ink);
}
.exam-response-directions code {
  display: inline-block;
  background: #eee;
  border-radius: 3px;
  padding: 1px 4px;
  margin: 3px;
}
.exam-response-input {
  width: 95px;
  max-width: 100%;
  height: 53px;
  font-size: 23px;
  font-family: Georgia, serif;
  border: 1px solid #333;
  border-radius: 10px;
  margin: 12px 0 0;
  padding: 9px 10px;
  text-align: center;
}
.exam-preview-label {
  font:
    600 21px Georgia,
    serif;
  letter-spacing: 0;
  margin: 28px 0 20px;
}
.exam-answer-preview {
  font-size: 24px;
  min-height: 40px;
}
.exam-response-message {
  font:
    12px/1.4 Arial,
    sans-serif;
  color: var(--exam-red);
  min-height: 17px;
  margin: 8px 0;
}
.exam-reference-icon {
  font:
    italic 22px Georgia,
    serif;
  height: 24px;
}
.exam-reference-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  max-width: 95%;
  background: white;
  border-left: 4px solid #999;
  z-index: 9;
  display: flex;
  flex-direction: column;
  box-shadow: -3px 0 8px #0001;
}
.exam-has-reference > .exam-math-centered,
.exam-has-reference > .exam-split {
  margin-right: 360px;
}
.exam-reference-panel.is-expanded {
  width: 600px;
  max-width: 100%;
  box-shadow: -8px 0 40px #0004;
}
.exam-floating-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 40px;
  flex-shrink: 0;
  background: var(--exam-ink);
  color: white;
  padding: 5px 12px;
  font-size: 14px;
}
.exam-floating-header > div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.exam-floating-header button {
  background: transparent;
  color: white !important;
  padding: 3px 6px;
  font-size: 13px;
  border-radius: 3px;
  min-width: 25px;
}
.exam-floating-header button[aria-selected="true"] {
  background: #fff;
  color: var(--exam-ink) !important;
}
.exam-floating-header strong {
  font-size: 14px;
}
.exam-reference-content {
  overflow: auto;
  padding: 20px 18px 35px;
}
.exam-reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 12px;
}
.exam-reference-grid figure {
  margin: 0;
  text-align: center;
  min-width: 0;
}
.exam-reference-grid svg {
  width: 100%;
  max-height: 110px;
}
.exam-reference-grid figcaption {
  font-size: 13px;
}
.exam-reference-facts {
  font:
    14px/1.6 Georgia,
    serif;
  margin-top: 26px;
}
.exam-reference-facts p {
  margin: 20px 0;
}
.exam-calculator-panel {
  position: absolute;
  top: 14px;
  left: 18px;
  width: 370px;
  height: 740px;
  max-width: calc(100% - 30px);
  max-height: calc(100% - 25px);
  min-width: 285px;
  min-height: 320px;
  resize: both;
  overflow: auto;
  z-index: 12;
  background: #fff;
  border: 1px solid #aaa;
  box-shadow: 0 3px 18px #0003;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
}
.exam-calculator-panel[hidden] {
  display: none;
}
.exam-calculator-panel .exam-floating-header {
  cursor: move;
  touch-action: none;
}
.exam-calculator-graph {
  position: relative;
  height: 230px;
  min-height: 170px;
  flex: 1;
}
.exam-calculator-graph[hidden] {
  display: none;
}
.exam-calculator-graph canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.exam-graph-controls {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.exam-graph-controls button {
  background: #f5f5f5;
  padding: 5px;
  font-size: 12px;
  border: 1px solid #ccc;
}
.exam-trace {
  position: absolute;
  bottom: 0;
  left: 5px;
  font: 10px Arial;
  background: #fffffff0;
}
.exam-calculator-entry {
  padding: 10px 12px;
  border-top: 1px solid #ccc;
}
.exam-calculator-entry label {
  font:
    12px Arial,
    sans-serif;
  display: block;
  margin-bottom: 5px;
}
.exam-calculator-entry textarea {
  min-height: 50px;
  padding: 7px;
  font: 16px/1.4 monospace;
  resize: vertical;
}
.exam-calc-evaluate {
  background: var(--exam-blue);
  color: white !important;
  border-radius: 4px;
  padding: 7px 15px;
  font-size: 12px;
  margin-top: 6px;
}
.exam-calc-result {
  display: block;
  min-height: 18px;
  font-size: 14px;
  padding-top: 5px;
  overflow-wrap: anywhere;
}
.exam-calculator-keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 0 10px 10px;
}
.exam-calculator-keypad button {
  background: #f0f0f0;
  padding: 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 2px;
}
.exam-calculator-keypad button[aria-pressed="true"] {
  background: #dceeff;
}
.exam-calc-caption {
  font: 10px/1.5 Arial;
  color: #666;
  margin: 0;
  padding: 3px 12px 10px;
}
.exam-image-viewer {
  width: min(100%, 360px);
  margin: 12px auto 18px;
  border: 1px solid #aaa;
  border-radius: 8px 8px 0 0;
  background: white;
  overflow: hidden;
}
.exam-image-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  background: #f0f0f0;
  padding: 5px;
  font: 12px Arial;
  min-height: 33px;
}
.exam-image-tools button {
  background: transparent;
  padding: 3px 5px;
  font-size: 14px;
}
.exam-image-scroll {
  overflow: auto;
  max-height: 60vh;
}
.exam-image-scroll img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
}
.exam-image-viewer.is-expanded {
  position: fixed;
  inset: 9vh 8vw;
  width: 84vw;
  height: 82vh;
  max-width: none;
  margin: 0;
  z-index: 24;
  box-shadow: 0 0 0 20vw #0008;
}
.exam-image-viewer.is-expanded .exam-image-scroll {
  max-height: calc(82vh - 40px);
  height: 100%;
}
.exam-formula-zone .katex {
  font-size: 1.05em;
}
.exam-formula-zone .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
}
.exam-complete {
  height: 100%;
  overflow: auto;
  text-align: center;
  padding: 38px 20px;
  background:
    radial-gradient(circle at 12% 15%, #d6083b 0 2px, transparent 3px),
    radial-gradient(circle at 86% 28%, #3262a3 0 3px, transparent 4px),
    radial-gradient(circle at 22% 72%, #3262a3 0 2px, transparent 3px), #fafafa;
}
.exam-complete > h2 {
  font-size: 30px;
  font-weight: 500;
  margin: 5px 0 30px;
  letter-spacing: 0;
}
.exam-complete-card {
  max-width: 430px;
  margin: auto;
  padding: 26px 35px 32px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 20px #0001;
}
.exam-complete-card svg {
  width: 200px;
  height: 150px;
}
.exam-complete-card h3 {
  font-size: 21px;
  margin: 20px 0;
  letter-spacing: 0;
}
.exam-complete-card p {
  font-size: 15px;
  line-height: 1.7;
  margin: 18px 0 26px;
}
.exam-complete-card .exam-text-button {
  display: block;
  margin: 18px auto 0;
}
.exam-math-response .exam-passage:empty {
  display: none;
}
@media (max-width: 1050px) {
  .exam-reference-panel {
    width: 310px;
  }
  .exam-has-reference > .exam-math-centered,
  .exam-has-reference > .exam-split {
    margin-right: 310px;
  }
  .exam-reference-grid {
    gap: 20px 5px;
  }
  .exam-reference-content {
    padding: 15px 12px;
  }
  .exam-response-directions {
    font-size: 16px;
  }
  .exam-response-directions h2 {
    font-size: 19px;
  }
  .exam-response-directions table {
    width: 100%;
  }
}
@media (max-width: 700px) {
  .exam-header:has(.exam-reference-icon) {
    grid-template-columns: minmax(0, 1fr) 82px 130px;
    gap: 6px;
  }
  .exam-header:has(.exam-reference-icon) .exam-header-tools {
    gap: 7px;
  }
  .exam-header:has(.exam-reference-icon) .exam-tool {
    max-width: 44px;
    font-size: 8px;
  }
  .exam-header:has(.exam-reference-icon) .exam-section h1 {
    max-width: 115px;
  }
  .exam-reference-panel {
    width: 340px;
    max-width: 100%;
    border-left: 1px solid #aaa;
  }
  .exam-has-reference > .exam-math-centered,
  .exam-has-reference > .exam-split {
    margin-right: 0;
  }
  .exam-math-centered > .exam-question-content {
    padding: 25px 40px 35px 20px;
  }
  .exam-response-directions {
    font-size: 15px;
  }
  .exam-response-directions h2 {
    font-size: 18px;
  }
  .exam-response-directions th,
  .exam-response-directions td {
    font-size: 13px;
    padding: 8px;
  }
  .exam-calculator-panel {
    left: 8px;
    top: 8px;
    max-width: calc(100% - 16px);
    max-height: calc(100% - 16px);
  }
  .exam-complete {
    padding: 25px 18px;
  }
  .exam-complete > h2 {
    font-size: 26px;
    margin-bottom: 22px;
  }
  .exam-complete-card {
    padding: 20px;
  }
  .exam-reference-icon {
    font-size: 19px;
  }
  .exam-math-response .exam-question-content {
    padding-top: 20px;
  }
}

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

.exam-is-complete .exam-header,
.exam-is-complete .exam-footer,
.exam-is-complete .exam-preview-banner {
  display: none;
}
.exam-is-complete .exam-complete {
  padding-top: 60px;
}
.exam-image-viewer.is-expanded .exam-image-scroll img {
  margin: 0 auto;
}

@media (max-width: 700px) {
  .exam-math-response .exam-passage-content {
    padding: 20px;
  }
  .exam-response-directions {
    max-height: 240px;
    overflow: auto;
    padding-right: 8px;
    border-bottom: 1px solid #ddd;
  }
  .exam-response-directions h2 {
    font-size: 17px;
  }
  .exam-response-directions table {
    margin: 18px auto;
  }
  .exam-response-directions ul {
    padding-left: 22px;
  }
}

/* Staff review mode: per-question marking (not shown to students). */
.exam-grid-button.is-correct {
  background: #1f7a4d;
  border: 1px solid #1f7a4d;
  color: #fff !important;
}
.exam-grid-button.is-incorrect {
  background: #D6083B;
  border: 1px solid #D6083B;
  color: #fff !important;
}
.exam-result.is-correct {
  border-left-color: #1f7a4d;
}
.exam-result.is-incorrect {
  border-left-color: #D6083B;
}
.exam-mark {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}
.exam-result.is-correct .exam-mark {
  color: #1f7a4d;
}
.exam-result.is-incorrect .exam-mark {
  color: #D6083B;
}
.exam-mode-toggle {
  border: 1px solid currentColor !important;
  border-radius: 4px;
  padding: 4px 10px !important;
  font-size: 13px;
  margin-left: 6px;
}

/* Multi-module exams */
.exam-module-switch select {
  max-width: 190px;
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  padding: 5px 8px;
  border: 1px solid var(--exam-ink);
  border-radius: 6px;
  background: #fff;
  color: var(--exam-ink);
}
.exam-scheduled-break .exam-break-count {
  font-size: 44px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin: 0 0 18px;
}
.exam-scheduled-break .exam-break-count.is-over {
  font-size: 22px;
  color: var(--exam-blue);
}
.exam-score-table {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}
.exam-score-table caption {
  font-weight: 600;
  text-align: left;
  padding-bottom: 6px;
}
.exam-score-table th,
.exam-score-table td {
  padding: 7px 4px;
  border-bottom: 1px solid #e3e3e3;
  font-weight: 400;
}
.exam-score-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.exam-score-table .is-total th,
.exam-score-table .is-total td {
  font-weight: 700;
  border-bottom: 0;
}
.exam-module-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 20px;
}
.exam-module-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid #c8c8c8;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
}
.exam-module-chip.is-current {
  border-color: var(--exam-blue);
  box-shadow: 0 0 0 1px var(--exam-blue);
}
.exam-text u {
  text-underline-offset: 2px;
}

/* Figures placed inside question text by {{image:id}} markers. */
.exam-text .exam-inline-image {
  display: block;
  width: auto;
  max-width: min(100%, 440px);
  max-height: 340px;
  height: auto;
  margin: 12px auto;
}
.exam-choice-text .exam-inline-image {
  margin: 6px 0;
  max-height: 220px;
}
