.mock-shell {
  display: grid;
  gap: 22px;
}

.mock-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 22px;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mock-field {
  display: grid;
  gap: 8px;
}

.mock-field label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.mock-field select,
.mock-field input {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  color: #1f3347;
  font: inherit;
  padding: 11px 12px;
}

.mock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.mock-button {
  align-items: center;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
}

.mock-button:hover {
  background: #14507f;
}

.mock-button--light {
  background: #eef5fb;
  border-color: #c9ddeb;
  color: var(--navy);
}

.mock-button--light:hover {
  background: #dfeef8;
}

.mock-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.mock-status {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  left: 16px;
  margin: 0;
  padding: 14px 18px;
  position: fixed;
  right: 16px;
  top: 0;
  z-index: 50;
}

#mock-exam:not(.mock-hidden) {
  padding-top: 92px;
}

.mock-chip {
  background: #eef5fb;
  border: 1px solid #d7e6f2;
  border-radius: 999px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
}

.mock-question {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
}

.mock-question:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.mock-question h3 {
  color: #1f3347;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.mock-options {
  display: grid;
  gap: 10px;
}

.mock-option {
  align-items: flex-start;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  line-height: 1.5;
  padding: 12px;
}

.mock-option:hover {
  background: #f6f9fc;
}

.mock-option input {
  margin-top: 4px;
}

.mock-option-text,
.mock-lang {
  display: grid;
  gap: 3px;
}

.mock-lang--ta {
  color: #314c67;
}

.mock-result-row {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  padding: 18px 0;
}

.mock-result-row:first-child {
  border-top: 0;
}

.mock-answer {
  border-radius: 6px;
  padding: 8px 10px;
}

.mock-answer--correct {
  background: #e8f7ee;
  color: #136735;
}

.mock-answer--wrong {
  background: #fdecec;
  color: #9b1c1c;
}

.mock-ad {
  background: #f8fafc;
  border: 1px dashed #9fb5c9;
  border-radius: 8px;
  color: #52687f;
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 18px;
  place-items: center;
  text-align: center;
}

.mock-adsense {
  display: block;
  min-height: 250px;
  padding: 0;
  width: 100%;
}

.mock-adsense .adsbygoogle {
  display: block;
  min-height: 250px;
  width: 100%;
}

.mock-ad strong {
  color: var(--navy);
}

.mock-modal {
  align-items: center;
  background: rgba(12, 47, 79, .58);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 20;
}

.mock-modal.is-open {
  display: flex;
}

.mock-modal__box {
  background: #fff;
  border-radius: 8px;
  max-width: 520px;
  padding: 22px;
  width: min(100%, 520px);
}

.mock-hidden {
  display: none !important;
}

.mock-note {
  color: #52687f;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .mock-grid {
    grid-template-columns: 1fr;
  }

  .mock-status {
    justify-content: flex-start;
  }

  #mock-exam:not(.mock-hidden) {
    padding-top: 138px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .divider,
  .sidebar-toggle,
  .back-link,
  .to-top,
  footer,
  #mock-setup,
  #mock-exam,
  .mock-actions,
  .mock-modal {
    display: none !important;
  }

  .page,
  .content,
  .content-card,
  .mock-panel {
    display: block;
    margin: 0;
    max-width: none;
    padding: 0;
    width: 100%;
    box-shadow: none;
    border: 0;
  }

  #mock-result {
    display: block !important;
  }

  h1,
  h2 {
    color: #000;
    text-align: left;
  }

  .mock-result-row {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
