.mock-page { padding: 36px 0 48px; color: #182335; background: #f7f9fc; }
.mock-page .container { max-width: 1120px; }
.mock-heading { margin-bottom: 24px; max-width: 760px; }
.mock-heading .minimal-eyebrow { display: block; margin: 16px 0 10px; }
html[data-theme] body .mock-heading h1 { font-size: clamp(1.65rem, 3vw, 2.15rem) !important; line-height: 1.2; margin: 10px 0 16px; }
.mock-page p, .mock-page small, .mock-page li { color: #405169; }
/* The existing theme overrides generic text colors. Keep exam paper legible in both preferences. */
html[data-theme] body[data-page="mock-exams"] .mock-page :is(p, small, li, label, legend, summary, td, th, .mock-option span, .mock-toolbar span) { color: #405169 !important; -webkit-text-fill-color: #405169 !important; }
html[data-theme] body[data-page="mock-exams"] .mock-page :is(h1, h2, h3, strong) { color: #182335 !important; -webkit-text-fill-color: #182335 !important; }
html[data-theme] body[data-page="mock-exams"] .mock-page .mock-timer.is-urgent { color: #a52821 !important; -webkit-text-fill-color: #a52821 !important; }
html[data-theme] body .mock-page h2 { font-size: 1.25rem !important; line-height: 1.4; margin: 10px 0 14px; }
html[data-theme] body .mock-page h3 { font-size: 1.05rem !important; line-height: 1.6; }
.mock-page [tabindex="-1"], .mock-topic-result { scroll-margin-top: 170px; }
.mock-page a.text-link { color: #775008; }
.mock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mock-panel { padding: 24px; border: 1px solid #c6d1df; border-radius: 16px; background: #fff; min-width: 0; }
.mock-panel ul { padding-left: 20px; }
.mock-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.mock-page button, .mock-page .btn { min-height: 44px; }
.mock-page button:focus-visible, .mock-page a:focus-visible, .mock-page input:focus-visible, .mock-page summary:focus-visible { outline: 3px solid #244e89; outline-offset: 3px; }
.mock-page .ghost-btn { color: #263f61; background: #f3f6fa; border: 1px solid #bbc9da; }
.mock-page button:disabled { opacity: .65; cursor: not-allowed; }
.mock-page [hidden] { display: none !important; }
.mock-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: start; }
.mock-toolbar { position: sticky; top: 76px; z-index: 5; display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; background: #fff; border: 1px solid #c6d1df; padding: 14px 18px; border-radius: 12px; margin: 0 0 18px; }
.mock-timer { color: #182335; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.mock-timer.is-urgent { color: #a52821; }
.mock-question { border: 0; padding: 0; margin: 0; min-width: 0; }
.mock-question legend { display: block; float: none; width: 100%; padding: 0; margin-bottom: 22px; font-size: 1.06rem; line-height: 1.65; font-weight: 600; color: #182335; }
.mock-options { display: grid; gap: 10px; }
.mock-page .mock-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #bac9dc; border-radius: 9px; min-height: 48px; color: #253751; text-transform: none; letter-spacing: normal; font-size: .95rem; font-weight: 400; cursor: pointer; }
.mock-page .mock-option:has(input:checked) { background: #fff7e8; border-color: #825500; }
.mock-page .mock-option input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: #825500; box-shadow: none; }
.mock-page .mock-number-label { display: block; color: #253751; font-size: .95rem; text-transform: none; letter-spacing: normal; }
.mock-page .mock-number { width: 100%; max-width: 300px; background: #fff; color: #182335; border: 1px solid #72849d; margin-top: 8px; }
.mock-page .mock-number::placeholder { color: #526277; }
.mock-question-meta { font-size: .88rem; margin-bottom: 14px; }
.mock-jump { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.mock-jump button { background: #fff; border: 1px solid #9aaec6; color: #24405e; border-radius: 8px; padding: 4px; }
.mock-jump button.is-answered { background: #e5f3eb; border-color: #47795a; color: #1c5132; }
.mock-jump button[aria-current="step"] { outline: 3px solid #805300; outline-offset: 1px; font-weight: 700; }
.mock-save { font-size: .85rem; margin: 8px 0 0; }
#mock-message:not(:empty) { padding: 14px 18px; margin-bottom: 18px; border: 1px solid #bd870e; background: #fff7e8; color: #573b06; border-radius: 10px; }
.mock-confirm { border: 1px solid #b78523; background: #fff8e9; padding: 18px; border-radius: 12px; margin-top: 20px; }
.mock-score { display: block; font-size: 2.4rem; color: #182335; font-weight: 700; margin: 8px 0; }
.mock-results { margin-top: 24px; }
.mock-topic-result { margin: 12px 0; border: 1px solid #c6d1df; padding: 16px 18px; border-radius: 12px; background: #fff; }
.mock-topic-result summary { cursor: pointer; color: #182335; font-weight: 600; padding: 6px 0; line-height: 1.6; }
.mock-answer-review { border-top: 1px solid #d6dfeb; margin-top: 18px; padding-top: 16px; }
html[data-theme] body[data-page="mock-exams"] .mock-page .mock-wrong { color: #9c2820 !important; -webkit-text-fill-color: #9c2820 !important; font-weight: 600; }
html[data-theme] body[data-page="mock-exams"] .mock-page .mock-correct { color: #1d6038 !important; -webkit-text-fill-color: #1d6038 !important; font-weight: 600; }
.mock-history { overflow-x: auto; margin-top: 18px; }
.mock-history table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mock-history th, .mock-history td { padding: 10px; text-align: left; border-bottom: 1px solid #d4deeb; color: #253751; }
.mock-disclaimer { font-size: .85rem; margin-top: 28px; }
.mock-history-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.mock-history-metrics > div { background: #f3f6fa; border: 1px solid #ccd7e5; border-radius: 10px; padding: 14px; }
.mock-history-metrics dt { font-size: .86rem; color: #405169; font-weight: 500; }
.mock-history-metrics dd { margin: 5px 0 0; font-size: 1.4rem; color: #182335; font-weight: 700; }
.mock-history-metrics dd small { font-size: .8rem; }
.mock-history-scroll { overflow-x: auto; margin-bottom: 20px; }
.mock-evolution { display: flex; gap: 8px; padding: 0 0 8px; margin: 0; list-style: none; }
.mock-evolution li { flex: 0 0 68px; padding: 8px; text-align: center; border: 1px solid #bbc9da; border-radius: 8px; background: #f8fafc; }
.mock-evolution strong, .mock-evolution span { display: block; font-size: .88rem; }
.mock-history-notice { padding: 12px; border-left: 3px solid #805300; background: #fff8e9; }
.mock-recommendations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0 24px; }
.mock-recommendation { border: 1px solid #c6d1df; border-radius: 10px; padding: 16px; background: #fff; }
.mock-priority { display: inline-block; color: #654100; background: #fff4db; padding: 4px 8px; border: 1px solid #bd8c39; border-radius: 6px; font-weight: 600; font-size: .8rem; }
.mock-recommendation p { font-size: .9rem; }
.mock-compare-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 12px 0; }
.mock-page .mock-compare-controls label { font-size: .9rem; font-weight: 600; letter-spacing: normal; text-transform: none; min-width: 0; }
.mock-page .mock-compare-controls select { display: block; width: 100%; max-width: 100%; min-height: 44px; margin-top: 6px; border: 1px solid #72849d; border-radius: 8px; background: #fff; color: #182335; font-size: .88rem; padding: 10px 30px 10px 10px; }
.mock-history-details { margin: 14px 0; border-top: 1px solid #d4deeb; padding-top: 14px; scroll-margin-top: 94px; }
.mock-history-details summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
.mock-history caption { text-align: left; padding-bottom: 10px; font-weight: 600; }
.mock-history td, .mock-history th { vertical-align: top; }
.mock-topic-series { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.mock-topic-series li { min-width: 42px; background: #f1f5fa; border: 1px solid #bbc9da; border-radius: 4px; padding: 3px; text-align: center; }
.mock-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
html[data-theme] body[data-page="mock-exams"] .mock-page :is(dt, dd, caption, select, option, .mock-evolution span, .mock-priority) { color: #253751 !important; -webkit-text-fill-color: #253751 !important; }
.mock-page :is(select, [role="region"]):focus-visible { outline: 3px solid #244e89; outline-offset: 3px; }
#mock-reinforcement { scroll-margin-top: 90px; }
.mock-page .reinforcement-label { display: block; color: #253751; font-size: .95rem; text-transform: none; letter-spacing: normal; margin: 16px 0 8px; }
.mock-page #reinforcement-topic { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; margin-bottom: 16px; padding: 10px; border: 1px solid #72849d; border-radius: 8px; background: #fff; }
.reinforcement-feedback { border-left: 3px solid #805300; padding: 12px 16px; background: #f8fafc; margin: 16px 0; }
.reinforcement-error { padding: 14px; border: 1px solid #a52821; color: #7e231d; background: #fff5f4; margin: 16px 0; }
#mock-reinforcement .mock-question { margin-top: 20px; }
@media(max-width: 760px) {
  .mock-page { padding-top: 24px; }
  .mock-grid, .mock-layout { grid-template-columns: minmax(0, 1fr); }
  .mock-panel { padding: 18px; }
  .mock-toolbar { top: 64px; padding: 12px; }
  .mock-jump { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mock-actions > .btn { flex: 1 1 auto; }
  .mock-recommendations, .mock-compare-controls { grid-template-columns: minmax(0, 1fr); }
  .mock-history-metrics { gap: 6px; }
  .mock-history-metrics > div { padding: 10px 7px; }
  .mock-history-metrics dt { font-size: .78rem; }
  .mock-history-metrics dd { font-size: 1.15rem; }
  .mock-history table, .mock-history tbody, .mock-history tr { display: block; width: 100%; }
  .mock-history thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mock-history tr { margin: 12px 0; padding: 12px; border: 1px solid #ccd7e5; border-radius: 8px; background: #fff; }
  .mock-history caption { display: block; }
  .mock-history th[scope="row"], .mock-history td { display: block; width: 100%; padding: 5px 0; border: 0; }
  .mock-history td::before { content: attr(data-label) ': '; display: inline; color: #405169; font-weight: 600; }
  .mock-history td:has(.mock-topic-series)::before { display: block; margin-bottom: 6px; }
  .mock-topic-series { flex-wrap: wrap; }
  .mock-topic-series li { min-width: 0; flex: 1 1 32px; padding: 3px 2px; font-size: .8rem; }
}
