.short-session-heading { display: none; }

/* Short sets use the responsive mobile interface on narrow screens. */
html:not([data-experiment="final20_v1"]) body[data-view="quiz"]:not([data-quiz-mode="mock"], [data-mobile-interface="on"]) {
  background: var(--prep-canvas);
  color: var(--prep-ink);
  font-family: var(--prep-font);
}

html:not([data-experiment="final20_v1"]) [data-view="quiz"]:not([data-quiz-mode="mock"], [data-mobile-interface="on"]) {
  .app-shell { display: block; max-width: 820px; min-height: 0; margin: auto; padding: 0 var(--prep-gutter); }
  .quiz-panel { min-height: 0; padding: 0 0 36px; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
  :is(.context-panel, .compliance-footer, .simple-nav, .notice, .mobile-app-header, .practice-origin-back,
      .practice-mobile-heading, .practice-stem-hint, .topbar > .standard-only, .feedback:empty) { display: none; }

  .topbar { display: flex; flex-flow: row wrap; align-items: center; justify-content: space-between; gap: 0 12px;
    margin: 12px 0 0; padding: 6px 16px; border: 0; border-radius: var(--prep-panel-radius); background: var(--prep-soft); }
  .topbar::before, .topbar::after, #quizView::before { display: none; }
  .short-session-heading { display: flex; align-items: center; gap: 14px; }
  #shortSessionTitle { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.024em; }
  .short-session-heading a { display: inline-flex; align-items: center; min-height: 44px; color: var(--prep-accent); font-size: 14px; }
  .score-pill { min-height: 0; padding: 0; border: 0; background: none; color: var(--prep-muted); font-size: 14px; font-weight: 500; }

  #quizView.active { display: block; min-height: 0; padding: 24px 0 0; }
  .question-meta { align-items: start; margin: 0 0 8px; color: var(--prep-muted); }
  #questionNumber { color: var(--prep-accent); font-size: 14px; font-weight: 650; letter-spacing: normal; text-transform: none; }
  #questionTopic { border: 0; padding: 0; background: none; font-size: 14px; font-weight: 500; }
  #questionStem { max-width: none; margin: 0; color: var(--prep-ink); font-size: 25px; font-weight: 640; line-height: 1.35; }
  .options { gap: 8px; margin: 16px 0 0; padding: 0; }
  .option-button { min-height: 49px; padding: 8px 12px; border-color: var(--prep-line); border-radius: var(--prep-control-radius); box-shadow: none; font-size: 15px; }
  .option-button:hover { border-color: var(--prep-accent); }
  .option-letter { border: 0; color: var(--prep-accent); font-weight: 650; }
  .feedback { margin: 16px 0 0; padding: 16px 18px; border: 0; border-radius: var(--prep-panel-radius); background: var(--prep-soft); }
  .practice-explanation h3 { margin: 0 0 8px; font-size: 18px; }
  .practice-explanation p { margin: 0 0 8px; }
  .practice-explanation a { display: inline-block; overflow-wrap: anywhere; color: var(--prep-accent); font-size: 14px; }
  #practiceSaveStatus { min-height: 0; margin: 10px 0; color: var(--prep-muted); font-size: 13px; }

  .actions { position: static; display: flex; justify-content: space-between; margin: 0; padding: 0; border: 0; background: none; }
  .actions .secondary-button { min-width: 0; min-height: 44px; padding: 8px 14px; border: 1px solid var(--prep-line); border-radius: var(--prep-control-radius); background: #fff; color: var(--prep-accent); }
  .actions .secondary-button:disabled { opacity: .55; }
  #nextButton:not(:disabled) { background: var(--prep-accent); border-color: var(--prep-accent); color: #fff; }
}

html:not([data-experiment="final20_v1"]) [data-view="quiz"]:not([data-quiz-mode="mock"], [data-mobile-interface="on"])[data-answer-state]:not([data-answer-state="pending"]) .options { display: none; }

body[data-view="result"] {
  background: var(--prep-canvas);
  color: var(--prep-ink);
  font-family: var(--prep-font);
  .app-shell { display: block; max-width: 820px; min-height: 0; margin-inline: auto; padding: 0 var(--prep-gutter) 40px; }
  .quiz-panel { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
  :is(.topbar, .practice-origin-back, .compliance-footer, .mobile-app-header) { display: none; }
  #resultView.active { display: block; min-height: 0; padding: 0; }
  #resultView .result-header { margin: 0; padding: 0; border: 0; background: none; }
  .result-navigation { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 19px; border-bottom: 1px solid var(--prep-line); }
  .result-navigation a { display: inline-flex; align-items: center; min-height: 44px; color: var(--prep-accent); font-size: 14px; text-underline-offset: .2em; }
  .result-navigation .result-overview-link { display: none; }
  #resultTitle { margin: 0 0 6px; font-size: clamp(23px, 4vw, 34px); font-weight: 650; line-height: 1.15; letter-spacing: -.03em; }
  #resultTitle:focus, #answerReview h2:focus { outline: none; }
  #resultFocus { margin: 0; color: var(--prep-muted); font-size: 15px; }
  #resultScore { margin: 12px 0 0; padding: 12px 16px 0; border-radius: var(--prep-panel-radius) var(--prep-panel-radius) 0 0; background: var(--prep-soft); color: var(--prep-accent-hover); font-size: clamp(31px, 6vw, 45px); font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.18; }
  #resultSummary { margin: 0 0 15px; padding: 4px 16px 12px; border-radius: 0 0 var(--prep-panel-radius) var(--prep-panel-radius); background: var(--prep-soft); color: var(--prep-muted); line-height: 1.45; }
  #resultNextPractice:not([hidden]) {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
    margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--prep-line);
    border-radius: var(--prep-panel-radius); background: #fff;
  }
  #resultNextPractice h2 { margin: 0 0 4px; font-size: 19px; line-height: 1.3; }
  #resultNextPractice p { margin: 0; color: var(--prep-muted); font-size: 14px; }
  #resultNextPractice .primary-button {
    min-height: 44px; padding: 8px 14px; border-radius: var(--prep-control-radius);
    background: var(--prep-accent); color: #fff; font-size: 14px; font-weight: 650;
  }
  #resultNextPractice .next-practice-status { flex-basis: 100%; }
  #resultNextPractice .next-practice-status:empty { display: none; }
  #resultView #resultActions { display: flex; flex-flow: row wrap; margin: 0 0 23px; padding: 0; }
  #resultActions :is(.primary-button, .secondary-button) { min-height: 44px; padding: 8px 12px; border: 1px solid var(--prep-line); border-radius: var(--prep-control-radius); font-size: 14px; font-weight: 650; }
  #resultActions .primary-button { border-color: var(--prep-accent); background: var(--prep-accent); color: #fff; }
  #resultActions .secondary-button { background: #fff; color: var(--prep-accent); }
  #resultView #answerReview { margin: 0 0 24px; padding: 0; border: 0; background: none; scroll-margin-top: 16px; }
  #answerReview h2, .dha-result-overview h3 { margin: 0 0 7px; font-size: 21px; font-weight: 650; }
  #answerReview .full-answer-review, #resultExtras, #resultSourceNote { border-top: 1px solid var(--prep-line); }
  #answerReview .practice-review-card { margin: 0 0 4px; padding: 0 12px; border: 0; border-radius: 7px; background: var(--prep-soft); overflow-wrap: anywhere; }
  #answerReview .practice-review-card p { margin-block: 8px; }
  #answerReview .practice-review-card[open] { padding-bottom: 10px; }
  #answerReview a { color: var(--prep-accent); text-underline-offset: .2em; }
  .dha-result-overview { margin-bottom: 25px; }
  .dha-result-overview > p { color: var(--prep-muted); }
  .dha-result-domain { padding: 12px 14px 6px; border: 1px solid var(--prep-surface-line); border-radius: var(--prep-control-radius); }
  .dha-result-domain h4 { color: var(--prep-ink); }
}

@media (max-width: 560px), (max-width: 1024px) and (pointer: coarse) {
  body[data-view="result"] {
    .result-navigation {
      position: sticky;
      top: 0;
      z-index: 10;
      column-gap: 14px;
      padding-top: env(safe-area-inset-top);
      background: var(--prep-canvas);
    }
    .result-navigation .result-overview-link { display: inline-flex; margin-inline-start: auto; font-weight: 650; }
    #resultView #answerReview { scroll-margin-top: calc(60px + env(safe-area-inset-top)); }
  }
}

@media (max-width: 560px) {
  body[data-view="result"] #resultNextPractice .primary-button { width: 100%; }
  body[data-view="result"] #resultView #resultActions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-view="result"] #resultActions .primary-button { grid-column: 1 / -1; }
}

.case-outcomes { margin: 16px 0 20px; }
.case-outcomes h3 { margin: 0 0 6px; font-size: 19px; }
.case-outcomes ul { list-style: none; margin: 0; padding: 0; }
.case-outcomes li { padding: 8px 0; border-bottom: 1px solid var(--prep-line); }
.case-outcomes small { display: block; color: var(--prep-muted); }
