.auth-shell {
  max-width: 460px;
  margin: 9vh auto;
  padding: 30px;
}
.auth-shell h1 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.auth-shell p {
  font-size: 0.875rem;
  line-height: 1.7;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 18px 0;
  font-size: 0.875rem;
  font-weight: 550;
}
.field input,
.field textarea,
.field select,
.plain-input {
  width: 100%;
  border: 1px solid #dce3ee;
  background: #fff;
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.auth-shell .button {
  width: 100%;
  margin-top: 8px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  color: var(--blue);
  font-size: 0.875rem;
}
.form-error {
  color: var(--red);
  background: #fff0ed;
  padding: 12px;
  border-radius: 6px;
  margin-top: 16px;
  font-size: 0.875rem;
}
.status-message {
  background: var(--blue-soft);
  border: 1px solid #dae6fe;
  border-radius: 8px;
  padding: 14px 17px;
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 18px 0;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 20px 0;
}
.consent input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
  accent-color: var(--blue);
}
.pad {
  padding: 24px;
}
.stack {
  display: grid;
  gap: 18px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.wide {
  width: 100%;
}
.empty-state {
  padding: 44px 22px;
  text-align: center;
  color: var(--muted);
}
.empty-state h3 {
  color: var(--ink);
  margin-bottom: 7px;
}
.exam-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.exam-list .card h3 {
  font-size: 1.125rem;
  margin: 13px 0 6px;
}
.exam-list .card p {
  font-size: 0.875rem;
}
.exam-list .button {
  margin-top: 22px;
}
.student-camera {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #172640;
}
.student-camera video,
.student-camera img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.student-camera video {
  transform: scaleX(-1);
}
.camera-frame {
  width: 100%;
  height: 210px;
  background: #172640;
  object-fit: cover;
  display: block;
}
.camera-placeholder {
  height: 210px;
  background: #edf1f8;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.camera-note {
  line-height: 1.6;
}
.device-preview {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  background: #172640;
  transform: scaleX(-1);
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.evidence-grid img {
  display: block;
  width: 100%;
  border-radius: 6px;
}
.evidence-grid button {
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  overflow: hidden;
}
.evidence-grid small {
  display: block;
  padding: 8px;
  color: var(--muted);
}
.review-box {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.review-box textarea {
  min-height: 90px;
}
.review-timeline {
  display: grid;
  gap: 10px;
}
.review-timeline > div {
  padding: 12px;
  background: #f7f9fc;
  border-radius: 7px;
  font-size: 0.875rem;
}
.review-timeline small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.question-body textarea {
  width: 100%;
  min-height: 230px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
  margin-top: 20px;
}
.focus-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #13243edd;
  display: grid;
  place-items: center;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.focus-overlay .card {
  max-width: 440px;
  padding: 32px;
  text-align: center;
}
.focus-overlay h2 {
  margin: 17px 0 10px;
}
.focus-overlay p {
  line-height: 1.75;
  margin-bottom: 24px;
}
.focus-overlay .button {
  width: 100%;
}
.exam-locked .app-header,
.exam-locked .tab-scroll,
.exam-locked .breadcrumb,
.exam-locked footer {
  display: none;
}
.exam-locked .student-workspace {
  padding-top: 20px;
}
.exam-locked .exam-heading {
  margin-bottom: 20px;
}
.toast.error {
  background: #912e28;
  color: white;
}
.monitor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.monitor-tile .pad {
  padding: 14px;
}
.monitor-tile h3 {
  font-size: 0.9375rem;
}
.monitor-tile .button {
  margin-top: 12px;
}
.connection-badge {
  font-size: 0.75rem;
  color: var(--muted);
}
.active-connection {
  color: var(--green);
}
.audit-note {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar input {
  max-width: 330px;
}
.toolbar select {
  border: 1px solid #dce3ee;
  padding: 9px 12px;
  border-radius: 7px;
  background: #fff;
}
.badge-warning {
  color: var(--amber);
}
.chart-empty {
  height: 160px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.report-note {
  margin: 14px 0 20px;
  font-size: 0.875rem;
  line-height: 1.7;
}
.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.toggle-field p {
  font-size: 0.8125rem;
  margin-top: 4px;
}
.toggle-field input {
  width: 36px;
  height: 22px;
  accent-color: var(--blue);
}
.danger {
  color: var(--red);
}
.table-progress {
  min-width: 105px;
  font-size: 0.8125rem;
}
.muted-small {
  font-size: 0.75rem;
  color: var(--muted);
}
.question-number.current {
  outline-offset: 2px;
}
.details-answer {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.details-answer p {
  white-space: pre-wrap;
  margin-top: 7px;
}
.checks-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
input[type="checkbox"] {
  accent-color: var(--blue);
}
.success-copy {
  color: var(--green);
}
@media (max-width: 1100px) {
  .monitor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .auth-shell {
    margin: 35px 16px;
  }
  .monitor-grid {
    grid-template-columns: 1fr;
  }
  .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-inner {
    padding: 0 18px;
  }
  .workspace-label {
    display: none;
  }
  .header-right {
    gap: 8px;
  }
  .brand {
    font-size: 1.2rem;
  }
  .header-inner {
    gap: 10px;
  }
}
