/* === Student Exam Mode === */

/* -- Exam select screen -- */
.exam-select {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.exam-select h1 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 28px;
}
.exam-select-subtitle {
  text-align: center;
  color: var(--text2);
  margin-bottom: 24px;
  font-size: 15px;
}
.exam-year-group {
  margin-bottom: 24px;
}
.exam-year-label {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}
.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.exam-card {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.exam-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(108, 140, 255, 0.15);
}
.exam-card-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}
.exam-card-meta {
  font-size: 13px;
  color: var(--text2);
}

/* -- Region two-column layout -- */
.exam-region-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.exam-region-col {
  min-width: 0;
}
.exam-region-header {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  color: var(--text);
}
.exam-region-count {
  font-weight: 400;
  font-size: 14px;
  color: var(--text2);
}
@media (max-width: 700px) {
  .exam-region-row {
    grid-template-columns: 1fr;
  }
}

/* -- Mode toggle -- */
.exam-mode-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.exam-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 24px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: none;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  min-width: 200px;
}
.exam-mode-btn:hover {
  border-color: var(--accent);
}
.exam-mode-btn.active {
  border-color: var(--accent);
  background: rgba(108, 140, 255, 0.08);
}
.exam-mode-btn-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.exam-mode-btn-desc {
  font-size: 11px;
  color: var(--text2);
}

/* -- Dashboard button -- */
.exam-dashboard-btn {
  display: block;
  margin: 0 auto 24px;
}

/* -- Intro screen -- */
.exam-intro {
  max-width: 680px;
  margin: 50px auto;
  text-align: center;
  padding: 0 20px;
}
.exam-intro h1 {
  font-size: 26px;
  margin-bottom: 14px;
}
.exam-intro-rules {
  text-align: left;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text2);
}
.exam-intro-rules li {
  margin-bottom: 8px;
}
.exam-start-btn {
  padding: 14px 48px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: var(--accent, #6c8cff);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}
.exam-start-btn:hover {
  opacity: 0.85;
}

/* -- Exam top bar -- */
.exam-topbar {
  position: sticky;
  top: 48px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  flex-wrap: wrap;
}
.exam-timer {
  font-weight: 700;
  font-family: ui-monospace, monospace;
  font-size: 20px;
}
.exam-timer.warn {
  color: #e74c3c;
}
.exam-progress {
  color: var(--text2);
  font-size: 14px;
  margin-right: auto;
}

/* Font controls */
.exam-font-ctrl {
  display: flex;
  gap: 2px;
}
.exam-font-btn {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}
.exam-font-btn:hover {
  background: var(--bg);
}

/* Star bookmark */
.exam-star-btn {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--text2);
  transition: color 0.15s;
}
.exam-star-btn.active {
  color: #f1c40f;
  border-color: #f1c40f;
}
.exam-star-btn:hover {
  color: #f1c40f;
}

/* Nav/Calc toggle buttons */
.exam-nav-toggle {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text2);
}
.exam-nav-toggle:hover {
  background: var(--bg);
}

/* -- Dual pane -- */
.exam-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 48px - 44px - 52px);
}
.exam-passage-pane {
  padding: 24px 28px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  max-height: calc(100vh - 144px);
  line-height: 1.8;
  font-size: 16px;
}
.exam-passage-pane .passage-text {
  white-space: pre-wrap;
}
.exam-passage-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3, #888);
  font-style: italic;
}
.exam-question-pane {
  padding: 24px 28px;
  overflow-y: auto;
  max-height: calc(100vh - 144px);
}
.exam-q-number {
  font-weight: 700;
  font-size: inherit;
  color: var(--accent);
  margin-bottom: 14px;
}
.exam-q-text {
  font-size: inherit;
  line-height: 1.7;
  margin-bottom: 24px;
}
.exam-q-image {
  max-width: 100%;
  margin: 14px 0;
  border-radius: 6px;
}

/* Word marking & highlighting */
.exam-word-mark {
  background: #fff3cd;
  border-radius: 2px;
  padding: 0 2px;
}
.exam-hl-yellow {
  background: #fff176;
  border-radius: 2px;
  padding: 0 1px;
}
.exam-hl-underline {
  border-bottom: 2px solid var(--accent, #6c8cff);
}

/* Annotation floating bar */
.exam-anno-bar {
  position: absolute;
  z-index: 300;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 4px;
  background: var(--card, #fff);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.exam-anno-btn {
  padding: 4px 10px;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s;
}
.exam-anno-hl {
  background: #fff176;
  color: #5d4037;
}
.exam-anno-hl:hover {
  background: #ffee58;
}
.exam-anno-ul {
  background: rgba(108, 140, 255, 0.12);
  color: var(--accent);
}
.exam-anno-ul:hover {
  background: rgba(108, 140, 255, 0.2);
}
.exam-anno-vocab {
  background: #fff3cd;
  color: #856404;
}
.exam-anno-vocab:hover {
  background: #ffe082;
}
.exam-anno-clear {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}
.exam-anno-clear:hover {
  background: rgba(231, 76, 60, 0.2);
}

/* -- Choices -- */
.exam-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.exam-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 0.12s,
    background 0.12s;
  font-size: inherit;
  line-height: 1.6;
}
.exam-choice:hover {
  border-color: var(--accent);
  background: rgba(108, 140, 255, 0.04);
}
.exam-choice.selected {
  border-color: var(--accent);
  background: rgba(108, 140, 255, 0.1);
}
.exam-choice.eliminated {
  opacity: 0.4;
  text-decoration: line-through;
  border-color: var(--border);
  background: none;
}
.exam-choice.eliminated.selected {
  border-color: var(--accent);
  opacity: 0.5;
}
.exam-choice-label {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--border);
  font-weight: 700;
  font-size: 14px;
}
.exam-choice.selected .exam-choice-label {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.exam-choice-text {
  padding-top: 4px;
}

/* -- Bottom bar -- */
.exam-bottombar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--card);
  border-top: 1px solid var(--border);
}
.exam-bottombar-btns {
  display: flex;
  gap: 10px;
}
.exam-time-spent {
  font-size: 12px;
  color: var(--text3, #888);
}
.exam-btn {
  padding: 10px 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--text);
  transition: background 0.12s;
}
.exam-btn:hover {
  background: var(--bg);
}
.exam-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.exam-btn.primary:hover {
  opacity: 0.85;
}
.exam-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* -- Nav grid overlay -- */
.exam-nav-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exam-nav-grid-panel {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.exam-nav-grid-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}
.exam-nav-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 12px;
}
.exam-nav-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
}
.exam-nav-dot {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.12s;
}
.exam-nav-dot:hover {
  border-color: var(--accent);
}
.exam-nav-dot.answered {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.exam-nav-dot.current {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.exam-nav-dot.bookmarked {
  box-shadow: inset 0 -3px 0 #f1c40f;
}

/* -- Calculator overlay -- */
.exam-calc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exam-calc-panel {
  background: var(--card, #fff);
  border-radius: 12px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.exam-calc-display {
  width: 100%;
  padding: 12px;
  font-size: 22px;
  font-family: ui-monospace, monospace;
  text-align: right;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg, #f8f8f8);
  margin-bottom: 12px;
  box-sizing: border-box;
}
.exam-calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.exam-calc-btn {
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg, #f8f8f8);
  cursor: pointer;
  transition: background 0.1s;
}
.exam-calc-btn:hover {
  background: var(--border);
}
.exam-calc-btn.op {
  background: rgba(108, 140, 255, 0.1);
  color: var(--accent);
}
.exam-calc-btn.fn {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}
.exam-calc-close {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  font-size: 13px;
}

/* -- Check Your Work -- */
.exam-check {
  max-width: 640px;
  margin: 50px auto;
  text-align: center;
  padding: 0 20px;
}
.exam-check h1 {
  font-size: 30px;
  margin-bottom: 14px;
}
.exam-check-subtitle {
  color: var(--text2);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.7;
}
.exam-check-section {
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 16px;
}
.exam-check-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
  max-width: 400px;
  margin: 0 auto 32px;
}
.exam-check-dot {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
}
.exam-check-dot.answered {
  background: var(--text2);
  color: #fff;
  border-color: var(--text2);
}
.exam-check-dot.bookmarked {
  box-shadow: inset 0 -3px 0 #f1c40f;
}

/* -- Adaptive recommendation -- */
.exam-adaptive-card {
  margin: 20px auto 24px;
  padding: 16px 20px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: rgba(108, 140, 255, 0.05);
  max-width: 420px;
}
.exam-adaptive-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 8px;
}
.exam-adaptive-accuracy {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.exam-adaptive-reason {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 4px;
}
.exam-adaptive-source {
  font-size: 13px;
  font-weight: 600;
}
.exam-adaptive-fallback {
  font-size: 13px;
  color: var(--text2);
  font-style: italic;
}

/* -- Score Report -- */
.exam-report {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}
.exam-report h1 {
  text-align: center;
  font-size: 30px;
  margin-bottom: 10px;
}
.exam-report-mode {
  display: block;
  width: fit-content;
  margin: 0 auto 8px;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(108, 140, 255, 0.1);
  color: var(--accent);
}
.exam-report-adaptive-info {
  text-align: center;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 12px;
}
.exam-report-score {
  text-align: center;
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
  margin: 16px 0 4px;
}
.exam-report-max {
  text-align: center;
  color: var(--text2);
  font-size: 15px;
  margin-bottom: 24px;
}
.exam-report-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.exam-report-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}
.exam-report-card-label {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 6px;
}
.exam-report-card-value {
  font-size: 28px;
  font-weight: 700;
}
.exam-report-card-sub {
  font-size: 12px;
  color: var(--text3, #888);
  margin-top: 4px;
}
.exam-report-comment {
  text-align: center;
  padding: 16px;
  background: rgba(108, 140, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.6;
}
.exam-report-actions {
  text-align: center;
  margin-top: 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Tags (bookmarks, words) */
.exam-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.exam-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(108, 140, 255, 0.08);
  color: var(--accent);
}
.exam-tag.word {
  background: #fff3cd;
  color: #856404;
}

/* Detail table */
.exam-detail-heading {
  font-weight: 700;
  font-size: 16px;
  margin: 24px 0 12px;
}
.exam-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.exam-detail-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  color: var(--text2);
}
.exam-detail-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.exam-detail-table tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}
.exam-detail-correct {
  color: #27ae60;
  font-weight: 600;
}
.exam-detail-wrong {
  color: #e74c3c;
  font-weight: 600;
}
.exam-detail-empty {
  color: var(--text3, #888);
}
.exam-detail-time {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--text2);
}

/* -- Student name input -- */
.exam-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}
.exam-name-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.exam-name-input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  width: 240px;
  background: var(--bg, #f8f8f8);
  transition: border-color 0.15s;
}
.exam-name-input:focus {
  border-color: var(--accent);
  outline: none;
}

/* -- Pause overlay -- */
.exam-pause-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exam-pause-panel {
  background: var(--card, #fff);
  border-radius: 16px;
  padding: 40px 48px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}
.exam-pause-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}
.exam-pause-text {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}
.exam-pause-btn {
  font-size: 18px;
  padding: 4px 10px;
}

/* -- Trajectory timeline -- */
.exam-traj-wrap {
  position: relative;
  height: 32px;
  margin: 12px 0;
  background: rgba(108, 140, 255, 0.06);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.exam-traj-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.exam-traj-dot.traj-normal {
  background: var(--accent, #6c8cff);
}
.exam-traj-dot.traj-back {
  background: #e74c3c;
}
.exam-traj-dot.traj-change {
  background: #f39c12;
  width: 10px;
  height: 10px;
}
.exam-traj-dot.traj-mod {
  background: #27ae60;
  width: 12px;
  height: 12px;
}
.exam-traj-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text2);
  margin: 8px 0;
}
.exam-traj-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.exam-traj-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.exam-traj-legend-dot.traj-normal {
  background: var(--accent, #6c8cff);
}
.exam-traj-legend-dot.traj-back {
  background: #e74c3c;
}
.exam-traj-legend-dot.traj-change {
  background: #f39c12;
}
.exam-traj-legend-dot.traj-mod {
  background: #27ae60;
}
.exam-traj-stats {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 16px;
}

/* -- Expandable wrong question explanation -- */
.exam-detail-expandable {
  cursor: pointer;
}
.exam-detail-expandable:hover {
  background: rgba(231, 76, 60, 0.04);
}
.exam-detail-expandable.expanded {
  background: rgba(231, 76, 60, 0.06);
}
.exam-detail-exp-row td {
  padding: 0 !important;
  border-bottom: 2px solid var(--border);
}
.exam-detail-exp {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.02);
  border-left: 3px solid #e74c3c;
  margin: 0;
}
.exam-exp-passage {
  background: var(--bg, #f8f8f8);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text2);
  margin-bottom: 10px;
  white-space: pre-wrap;
}
.exam-exp-question {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}
.exam-exp-choice {
  font-size: 13px;
  padding: 3px 8px;
  margin: 2px 0;
  border-radius: 4px;
}
.exam-exp-correct {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
  font-weight: 600;
}
.exam-exp-wrong {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  text-decoration: line-through;
}
.exam-exp-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 12px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.exam-exp-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text2);
  margin-bottom: 4px;
}

/* -- Attention heatmap -- */
.exam-heatmap-label {
  font-weight: 600;
  font-size: 14px;
  margin: 12px 0 6px;
  color: var(--text);
}
.exam-heatmap-canvas {
  border: 1px solid var(--border);
  border-radius: 6px;
  display: block;
  margin-bottom: 12px;
}

/* -- Student image upload -- */
.exam-student-img-section {
  margin-top: 16px;
}
.exam-img-upload-btn {
  padding: 6px 14px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text2);
  transition:
    border-color 0.15s,
    color 0.15s;
}
.exam-img-upload-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.exam-img-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.exam-img-thumb-wrap {
  position: relative;
  display: inline-block;
}
.exam-img-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s;
}
.exam-img-thumb:hover {
  border-color: var(--accent);
}
.exam-img-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}
.exam-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

/* -- Print styles -- */
@media print {
  .exam-topbar,
  .exam-bottombar,
  .exam-report-actions,
  .exam-nav-toggle,
  .exam-star-btn,
  .exam-font-ctrl {
    display: none !important;
  }
  .exam-panes {
    display: block;
  }
  .exam-passage-pane,
  .exam-question-pane {
    max-height: none;
    overflow: visible;
  }
}

/* -- Mobile -- */
@media (max-width: 768px) {
  .exam-panes {
    grid-template-columns: 1fr;
  }
  .exam-passage-pane {
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 40vh;
  }
  .exam-question-pane {
    max-height: none;
  }
  .exam-topbar {
    top: 44px;
    gap: 6px;
    padding: 6px 10px;
  }
  .exam-nav-grid {
    grid-template-columns: repeat(9, 1fr);
  }
  .exam-check-grid {
    grid-template-columns: repeat(9, 1fr);
  }
  .exam-report-summary {
    grid-template-columns: 1fr;
  }
  .exam-mode-bar {
    flex-direction: column;
    align-items: center;
  }
  .exam-mode-btn {
    min-width: 260px;
  }
  .exam-report-actions {
    flex-direction: column;
  }
}
