.offline-exam-status {
  position: fixed;
  z-index: 60;
  top: 12px;
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 24px);
  transform: translateX(-50%);
  padding: 9px 14px;
  border: 1px solid #f5d17b;
  border-radius: 12px;
  color: #854d0e;
  background: #fffbeb;
  box-shadow: 0 8px 22px #0f172a1a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.online-exam-status {
  position: fixed;
  z-index: 60;
  top: 8px;
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 24px);
  transform: translateX(-50%);
  padding: 4px 8px;
  border: 1px solid #86efac;
  border-radius: 8px;
  color: #166534;
  background: #f0fdf4;
  box-shadow: 0 2px 8px #0f172a14;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 480px) {
  .offline-exam-status,
  .online-exam-status {
    font-size: 11px;
  }
}

.exam-true-false-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

.exam-true-false-table th,
.exam-true-false-table td {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
}

.exam-true-false-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.exam-true-false-table th:first-child,
.exam-true-false-table td:first-child {
  width: 68%;
  text-align: left;
}

.exam-true-false-table th:not(:first-child),
.exam-true-false-table td:not(:first-child) {
  width: 16%;
  text-align: center;
}

.exam-true-false-table td {
  vertical-align: middle;
}

.exam-true-false-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.exam-true-false-table tbody tr:hover {
  background: #eef2ff;
}

.exam-true-false-statement {
  color: #0f172a;
  overflow-wrap: anywhere;
}

.exam-true-false-statement img {
  display: block;
  max-width: 100%;
  height: auto;
}

.exam-true-false-choice {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.exam-true-false-choice:focus-within {
  outline: 2px solid #818cf8;
  outline-offset: -2px;
}

.exam-true-false-choice input {
  width: 18px;
  height: 18px;
  accent-color: #4f46e5;
}

@media (max-width: 480px) {
  .exam-true-false-table {
    font-size: 12px;
  }

  .exam-true-false-table th,
  .exam-true-false-table td {
    padding: 8px 5px;
  }

  .exam-true-false-table th:first-child,
  .exam-true-false-table td:first-child {
    width: 60%;
  }

  .exam-true-false-table th:not(:first-child),
  .exam-true-false-table td:not(:first-child) {
    width: 20%;
  }
}

.cbt-exam-page {
  min-height: 100vh;
  min-height: 100dvh;
}

.cbt-exam-layout {
  min-width: 0;
  align-items: flex-start;
}

.cbt-exam-question-panel {
  min-width: 0;
}

.cbt-exam-header button {
  min-width: 40px;
  min-height: 40px;
}

.cbt-exam-question-controls button {
  min-height: 44px;
}

.cbt-exam-number-grid button {
  height: auto;
  min-height: 44px;
}

.cbt-exam-page button:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .cbt-exam-layout {
    gap: 12px;
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .cbt-exam-question-panel,
  .cbt-exam-sidebar {
    padding: 16px;
    border-radius: 16px;
  }

  .cbt-exam-question-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cbt-exam-question-controls button {
    justify-content: center;
    padding-right: 8px;
    padding-left: 8px;
  }

  .cbt-exam-number-grid {
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .cbt-exam-layout {
    padding-right: max(8px, env(safe-area-inset-right));
    padding-left: max(8px, env(safe-area-inset-left));
  }

  .cbt-exam-question-panel,
  .cbt-exam-sidebar {
    padding: 12px;
  }

  .cbt-exam-question-controls button {
    font-size: 12px;
  }
}
