/* Final desktop/mobile split fixes loaded after styles.css. */

html body:not(.view-agent) .sidebar,
html body .sidebar .nav-list,
html body .sidebar .brand,
html body .sidebar .sidebar-user-card {
  overflow-x: hidden !important;
  scrollbar-width: none !important;
}

/* Practice library hero: make the top banner a compact working header, not a tall landing block. */
@media (min-width: 761px) {
  html body #practice.active-view:not(.practice-detail-mode) > .practice-top-grid,
  html body #practice:not(.practice-detail-mode) > .practice-top-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr) !important;
    align-items: stretch !important;
    gap: clamp(12px, 1.4vw, 20px) !important;
    min-height: 0 !important;
    height: clamp(190px, 15vw, 238px) !important;
    max-height: 238px !important;
    margin-bottom: clamp(12px, 1.3vw, 18px) !important;
    overflow: visible !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid .practice-hero,
  html body #practice:not(.practice-detail-mode) .practice-top-grid .practice-hero {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 238px !important;
    padding: clamp(22px, 2.1vw, 34px) clamp(28px, 3vw, 48px) !important;
    border-radius: 24px !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid .practice-hero h2,
  html body #practice:not(.practice-detail-mode) .practice-top-grid .practice-hero h2 {
    max-width: 640px !important;
    font-size: clamp(28px, 3vw, 48px) !important;
    line-height: 1.05 !important;
    margin: 0 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid .practice-hero > img,
  html body #practice:not(.practice-detail-mode) .practice-top-grid .practice-hero > img {
    width: clamp(100px, 8.5vw, 150px) !important;
    max-height: 160px !important;
    object-fit: contain !important;
    align-self: center !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card,
  html body #practice:not(.practice-detail-mode) .practice-plan-card {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 238px !important;
    padding: clamp(18px, 1.7vw, 28px) !important;
    border-radius: 22px !important;
    justify-content: center !important;
    gap: clamp(12px, 1.2vw, 18px) !important;
    overflow: hidden !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card strong,
  html body #practice:not(.practice-detail-mode) .practice-plan-card strong {
    font-size: clamp(24px, 2.2vw, 36px) !important;
    line-height: 1.1 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card p,
  html body #practice:not(.practice-detail-mode) .practice-plan-card p {
    font-size: clamp(14px, 1.2vw, 18px) !important;
    line-height: 1.35 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card .primary-btn,
  html body #practice:not(.practice-detail-mode) .practice-plan-card .primary-btn {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 24px !important;
    font-size: 15px !important;
  }
}

/* LAST narrow-header guard: when space is tight, keep the account area as a clean avatar button. */
@media (max-width: 1180px) {
  html body:not(.view-agent) .sidebar,
  html body.view-dashboard .sidebar,
  html body.view-practice .sidebar,
  html body.view-mock .sidebar,
  html body.view-profile .sidebar,
  html body.view-admin .sidebar,
  html body.view-practice.practice-answer-detail-active .sidebar {
    grid-template-columns: minmax(250px, 320px) minmax(210px, 1fr) 52px !important;
    align-items: center !important;
    column-gap: 8px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 6px 12px !important;
    overflow: visible !important;
  }

  html body .sidebar .sidebar-user-card,
  html body .sidebar .sidebar-user-card.is-logged-in,
  html body.view-practice .sidebar-user-card,
  html body.view-dashboard .sidebar-user-card,
  html body.view-mock .sidebar-user-card,
  html body.view-profile .sidebar-user-card,
  html body.view-admin .sidebar-user-card {
    justify-self: end !important;
    align-self: center !important;
    display: grid !important;
    grid-template-columns: 40px !important;
    place-content: center !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 4px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
  }

  html body .sidebar .sidebar-user-card img,
  html body.view-practice .sidebar-user-card img,
  html body.view-dashboard .sidebar-user-card img,
  html body.view-mock .sidebar-user-card img,
  html body.view-profile .sidebar-user-card img,
  html body.view-admin .sidebar-user-card img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 999px !important;
  }

  html body .sidebar .sidebar-user-card span,
  html body .sidebar .sidebar-user-card b,
  html body.view-practice .sidebar-user-card span,
  html body.view-practice .sidebar-user-card b,
  html body.view-dashboard .sidebar-user-card span,
  html body.view-dashboard .sidebar-user-card b,
  html body.view-mock .sidebar-user-card span,
  html body.view-mock .sidebar-user-card b,
  html body.view-profile .sidebar-user-card span,
  html body.view-profile .sidebar-user-card b,
  html body.view-admin .sidebar-user-card span,
  html body.view-admin .sidebar-user-card b {
    display: none !important;
  }
}

/* LAST account-card layout mode: flex avoids the old grid/avatar baseline glitch. */
@media (min-width: 761px) {
  html body .sidebar #sidebarUserButton.sidebar-user-card,
  html body .sidebar #sidebarUserButton.sidebar-user-card.is-logged-in {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  html body .sidebar #sidebarUserButton.sidebar-user-card img {
    flex: 0 0 36px !important;
  }

  html body .sidebar #sidebarUserButton.sidebar-user-card span {
    flex: 1 1 auto !important;
  }

  html body .sidebar #sidebarUserButton.sidebar-user-card b {
    flex: 0 0 auto !important;
  }
}

@media (max-width: 1180px) {
  html body .sidebar #sidebarUserButton.sidebar-user-card,
  html body .sidebar #sidebarUserButton.sidebar-user-card.is-logged-in {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }
}

@media (max-width: 760px) {
  html body:not(.view-agent) .sidebar,
  html body.view-dashboard .sidebar,
  html body.view-practice .sidebar,
  html body.view-mock .sidebar,
  html body.view-profile .sidebar,
  html body.view-admin .sidebar {
    grid-template-columns: minmax(180px, 1fr) auto 48px !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 6px 10px !important;
  }
}

/* LAST account-card stability: prevent the avatar/text from jumping outside the glass pill. */
@media (min-width: 761px) {
  html body .sidebar .sidebar-user-card,
  html body .sidebar .sidebar-user-card.is-logged-in,
  html body.view-dashboard .sidebar-user-card,
  html body.view-practice .sidebar-user-card,
  html body.view-mock .sidebar-user-card,
  html body.view-profile .sidebar-user-card,
  html body.view-admin .sidebar-user-card {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-items: start !important;
    gap: 8px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 6px 10px !important;
    overflow: hidden !important;
  }

  html body .sidebar .sidebar-user-card img,
  html body.view-dashboard .sidebar-user-card img,
  html body.view-practice .sidebar-user-card img,
  html body.view-mock .sidebar-user-card img,
  html body.view-profile .sidebar-user-card img,
  html body.view-admin .sidebar-user-card img {
    position: static !important;
    inset: auto !important;
    display: block !important;
    align-self: center !important;
    justify-self: center !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    transform: none !important;
    object-fit: cover !important;
  }

  html body .sidebar .sidebar-user-card span,
  html body .sidebar .sidebar-user-card b {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 1180px) {
  html body .sidebar .sidebar-user-card,
  html body .sidebar .sidebar-user-card.is-logged-in,
  html body.view-dashboard .sidebar-user-card,
  html body.view-practice .sidebar-user-card,
  html body.view-mock .sidebar-user-card,
  html body.view-profile .sidebar-user-card,
  html body.view-admin .sidebar-user-card {
    grid-template-columns: 40px !important;
    place-items: center !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    padding: 4px !important;
  }

  html body .sidebar .sidebar-user-card img,
  html body.view-dashboard .sidebar-user-card img,
  html body.view-practice .sidebar-user-card img,
  html body.view-mock .sidebar-user-card img,
  html body.view-profile .sidebar-user-card img,
  html body.view-admin .sidebar-user-card img {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }
}

/* WE idle/report panel: hide internal scoring language and make the waiting UI cleaner. */
html body #practice.practice-detail-mode .feedback-panel.we-report-mode .we-report-card {
  display: grid !important;
  gap: 12px !important;
}

html body #practice.practice-detail-mode .feedback-panel.we-report-mode .we-idle-card {
  padding-top: 0 !important;
}

html body #practice.practice-detail-mode .feedback-panel.we-report-mode .we-idle-card .writing-idle-ai-card {
  margin-top: 0 !important;
  padding: 18px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(245, 250, 247, 0.96), rgba(255, 255, 255, 0.98)) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 156, 107, 0.12) !important;
}

html body #practice.practice-detail-mode .feedback-panel.we-report-mode .we-idle-card .writing-idle-ai-card .ai-report-illustration {
  width: min(176px, 78%) !important;
  margin: 0 auto 8px !important;
}

html body #practice.practice-detail-mode .feedback-panel.we-report-mode .we-idle-card .writing-idle-ai-card h3 {
  margin: 4px 0 6px !important;
  color: #1d1d1f !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

html body #practice.practice-detail-mode .feedback-panel.we-report-mode .we-idle-card .writing-idle-ai-card p {
  max-width: 260px !important;
  margin: 0 auto !important;
  color: #5f6673 !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
  text-align: center !important;
}

html body #practice.practice-detail-mode .feedback-panel.we-report-mode .we-score-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body #practice.practice-detail-mode .feedback-panel.we-report-mode .we-score-grid article {
  min-height: 58px !important;
  padding: 12px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #f7f8fa !important;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.06) !important;
}

html body #practice.practice-detail-mode .feedback-panel.we-report-mode .we-score-grid article:first-child {
  background: #f3fbf7 !important;
  box-shadow: inset 0 0 0 1px rgba(0, 156, 107, 0.16) !important;
}

html body #practice.practice-detail-mode .feedback-panel.we-report-mode .we-score-grid span {
  color: #606776 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

html body #practice.practice-detail-mode .feedback-panel.we-report-mode .we-score-grid strong {
  margin-top: 6px !important;
  color: #1d1d1f !important;
  font-size: 20px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

html body #practice.practice-detail-mode .feedback-panel.we-report-mode .swt-answer-review {
  padding: 14px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #fffaf0 !important;
  box-shadow: inset 0 0 0 1px rgba(197, 134, 0, 0.14) !important;
}

html body #practice.practice-detail-mode .feedback-panel.we-report-mode .swt-answer-review > strong {
  margin-bottom: 8px !important;
  color: #1d1d1f !important;
  font-size: 15px !important;
}

html body #practice.practice-detail-mode .feedback-panel.we-report-mode .swt-answer-review p {
  color: #4d5563 !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
}

/* SWT report: compact site-native report without the old status pill or Form/keypoint blocks. */
html body #practice.practice-detail-mode .feedback-panel.swt-report-mode.has-report::before,
html body #practice.practice-detail-mode .feedback-panel.swt-report-mode.has-report::after {
  display: none !important;
  content: none !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode.has-report .score-ring,
html body #practice.practice-detail-mode .feedback-panel.swt-report-mode.has-report .ai-breakdown {
  display: none !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode.has-report > h2 {
  margin: 0 0 14px !important;
  color: #17191d !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  line-height: 1.18 !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode.has-report .feedback-list {
  gap: 12px !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-report-card-clean {
  display: grid !important;
  gap: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-total-card {
  display: grid !important;
  gap: 6px !important;
  padding: 16px !important;
  border: 1px solid rgba(20, 24, 31, 0.09) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #fff 0%, #fffaf0 100%) !important;
  box-shadow: 0 18px 38px -32px rgba(20, 24, 31, 0.35) !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-total-card span {
  color: #7a5600 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-total-card strong {
  color: #16181c !important;
  font-size: 42px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-total-card em {
  margin-left: 3px !important;
  color: #6b7280 !important;
  font-size: 17px !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-total-card p {
  margin: 0 !important;
  color: #606776 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-score-grid-clean {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-score-grid-clean article {
  min-height: 66px !important;
  padding: 12px !important;
  border: 1px solid rgba(20, 24, 31, 0.09) !important;
  border-radius: 12px !important;
  background: #fff !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-score-grid-clean span {
  color: #606776 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-score-grid-clean strong {
  color: #17191d !important;
  font-size: 19px !important;
  font-weight: 950 !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-answer-review,
html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-issue-explain,
html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-analysis-point {
  padding: 14px !important;
  border: 1px solid rgba(20, 24, 31, 0.09) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-answer-review > strong,
html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-analysis-point strong {
  color: #17191d !important;
  font-size: 15px !important;
  font-weight: 950 !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-answer-review p {
  margin-top: 10px !important;
  color: #394150 !important;
  font-size: 15px !important;
  font-weight: 820 !important;
  line-height: 1.85 !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-answer-review .swt-ok-segment,
html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-answer-review .swt-issue-mark {
  font-size: inherit !important;
  line-height: inherit !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-answer-review .swt-issue-mark {
  padding: 2px 6px !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-analysis-point {
  color: #394150 !important;
  font-size: 13px !important;
  font-weight: 760 !important;
  line-height: 1.65 !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode .swt-analysis-point strong {
  display: block !important;
  margin-bottom: 8px !important;
}

/* HIW start action belongs in the shared action bar, not inside the question text. */
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] #questionText .hiw-practice-bar,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] #questionText .hiw-start-button {
  display: none !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .recorder-actions .hiw-start-control {
  min-width: 98px !important;
  height: 34px !important;
  padding: 0 18px !important;
  border: 1px solid #1d1d1f !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #1d1d1f !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .recorder-actions .hiw-start-control.is-started {
  border-color: #1d1d1f !important;
  background: #1d1d1f !important;
  color: #fff !important;
  box-shadow: 0 12px 22px rgba(29, 29, 31, 0.12) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .recorder-actions {
  align-items: center !important;
  gap: 8px !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .recorder-actions #submitButton:not(:disabled) {
  border-color: #0f172a !important;
  background: #0f172a !important;
  color: #fff !important;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.14) !important;
}

html body .sidebar::-webkit-scrollbar,
html body .sidebar .nav-list::-webkit-scrollbar,
html body .sidebar .brand::-webkit-scrollbar,
html body .sidebar .sidebar-user-card::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* Sidebar brand: keep the selected exam name fully readable. */
html body .sidebar .brand {
  grid-template-columns: 38px minmax(132px, 1fr) !important;
  gap: 8px !important;
  padding: 0 4px !important;
}

html body .sidebar .brand-icon {
  width: 38px !important;
  height: 38px !important;
}

html body .sidebar .brand-copy,
html body .sidebar .exam-type-picker {
  min-width: 0 !important;
  overflow: visible !important;
}

html body .sidebar .exam-type-picker select {
  width: 132px !important;
  max-width: none !important;
  padding-right: 18px !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

@media (min-width: 761px) {
  html body #mock.active-view {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(24px, 3vw, 44px) clamp(28px, 5vw, 72px) !important;
    display: block !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body #mock.active-view .mock-page-head {
    width: min(1180px, 100%) !important;
    min-height: 132px !important;
    margin: 0 auto 24px !important;
    padding: 28px 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: 28px !important;
  }

  html body #mock.active-view .mock-page-head h2 {
    margin: 0 0 6px !important;
    font-size: clamp(34px, 3.2vw, 54px) !important;
    line-height: 1 !important;
  }

  html body #mock.active-view .mock-page-head p {
    max-width: none !important;
    font-size: 13px !important;
    line-height: 18px !important;
  }

  html body #mock.active-view .mock-page-actions {
    display: flex !important;
    justify-content: flex-end !important;
  }

  html body #mock.active-view #startMockButton {
    width: auto !important;
    min-width: 144px !important;
  }

  html body #mock.active-view .mock-center-layout {
    width: min(1180px, 100%) !important;
    max-width: none !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr) !important;
    gap: 24px !important;
    align-items: start !important;
  }

  html body #mock.active-view .mock-main-column,
  html body #mock.active-view .mock-right-column {
    display: grid !important;
    gap: 24px !important;
  }

  html body #mock.active-view .mock-paper-workbench,
  html body #mock.active-view .mock-flow-panel,
  html body #mock.active-view .mock-command-center,
  html body #mock.active-view .mock-report-panel {
    padding: 24px !important;
    border-radius: 28px !important;
  }

  html body #mock.active-view .mock-paper-toolbar {
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) auto !important;
    gap: 14px !important;
  }

  html body #mock.active-view .mock-paper-tabs,
  html body #mock.active-view .mock-paper-filters {
    overflow-x: visible !important;
    scrollbar-width: auto !important;
  }

  html body #mock.active-view .mock-paper-list {
    gap: 14px !important;
    margin-top: 20px !important;
  }

  html body #mock.active-view .mock-paper-card {
    min-height: 112px !important;
    padding: 16px !important;
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) auto auto !important;
    gap: 12px !important;
  }

  html body #mock.active-view .mock-paper-ribbon,
  html body #mock.active-view .mock-paper-index,
  html body #mock.active-view .mock-paper-copy em,
  html body #mock.active-view .mock-paper-copy p,
  html body #mock.active-view .mock-paper-copy small,
  html body #mock.active-view .mock-paper-meta {
    display: revert !important;
  }

  html body #mock.active-view .mock-paper-copy strong {
    font-size: 16px !important;
    line-height: 22px !important;
  }

  html body #mock.active-view .mock-paper-copy p,
  html body #mock.active-view .mock-paper-copy small,
  html body #mock.active-view .mock-paper-meta {
    font-size: 12px !important;
    line-height: 16px !important;
  }
}

@media (max-width: 760px) {
  html body #mock.active-view #mockAiPaperButton,
  html body #mock.active-view .mock-paper-ribbon,
  html body #mock.active-view .mock-paper-index,
  html body #mock.active-view .mock-paper-copy em,
  html body #mock.active-view .mock-paper-copy p,
  html body #mock.active-view .mock-paper-copy small,
  html body #mock.active-view .mock-paper-meta {
    display: none !important;
  }
}

/* LAST practice-plan balance: keep the plan text airy and the CTA inside the banner. */
@media (min-width: 761px) {
  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card,
  html body #practice:not(.practice-detail-mode) .practice-plan-card {
    display: grid !important;
    align-content: center !important;
    gap: 8px !important;
    padding: 12px 20px 14px !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card > div,
  html body #practice:not(.practice-detail-mode) .practice-plan-card > div {
    align-items: center !important;
    min-height: 28px !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card > div > span,
  html body #practice:not(.practice-detail-mode) .practice-plan-card > div > span {
    color: rgba(72, 78, 90, 0.72) !important;
    font-size: 13px !important;
    font-weight: 720 !important;
    line-height: 1.2 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card .ghost-btn,
  html body #practice:not(.practice-detail-mode) .practice-plan-card .ghost-btn {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 11px !important;
    font-size: 13px !important;
    font-weight: 760 !important;
    line-height: 28px !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card strong,
  html body #practice:not(.practice-detail-mode) .practice-plan-card strong {
    margin: 6px 0 0 !important;
    color: #17191f !important;
    font-size: clamp(26px, 2.1vw, 34px) !important;
    font-weight: 740 !important;
    line-height: 1.06 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card p,
  html body #practice:not(.practice-detail-mode) .practice-plan-card p {
    margin: 0 !important;
    color: rgba(75, 82, 94, 0.7) !important;
    font-size: clamp(13px, 1vw, 15px) !important;
    font-weight: 560 !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card .primary-btn,
  html body #practice:not(.practice-detail-mode) .practice-plan-card .primary-btn,
  html body #practice.active-view:not(.practice-detail-mode) #dailyPracticeButton,
  html body #practice:not(.practice-detail-mode) #dailyPracticeButton {
    margin-top: 6px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 15px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 760 !important;
    line-height: 32px !important;
  }
}

/* FINAL feedback idle glass polish: this must stay after older report-card overrides. */
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48)),
    rgba(255, 255, 255, 0.38) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 46px -36px rgba(15, 23, 42, 0.42) !important;
  backdrop-filter: blur(24px) saturate(1.28) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.28) !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) > .eyebrow {
  color: rgba(77, 86, 101, 0.72) !important;
  font-size: 11px !important;
  font-weight: 780 !important;
  letter-spacing: 0.01em !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) > h2 {
  margin: 12px 0 18px !important;
  color: rgba(15, 18, 24, 0.92) !important;
  font-size: clamp(22px, 1.8vw, 28px) !important;
  font-weight: 760 !important;
  line-height: 1.15 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-idle-card,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-ai-wait-card {
  padding: 18px 18px 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.76) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 156, 107, 0.12), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(255, 204, 74, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48)),
    rgba(255, 255, 255, 0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 22px 44px -36px rgba(15, 23, 42, 0.4) !important;
  backdrop-filter: blur(22px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.25) !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-idle-card::before,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-ai-wait-card::before,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .text-task-idle-card::before {
  display: none !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-idle-card .ai-report-illustration,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-ai-wait-card .ai-report-illustration {
  width: min(188px, 76%) !important;
  margin: 2px auto 12px !important;
  padding: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.64) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.32) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 34px -30px rgba(0, 156, 107, 0.38) !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-idle-card h3,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-ai-wait-card h3 {
  color: rgba(15, 18, 24, 0.9) !important;
  font-size: clamp(18px, 1.35vw, 22px) !important;
  font-weight: 760 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-idle-card p,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-ai-wait-card p {
  max-width: 22em !important;
  margin-top: 9px !important;
  color: rgba(75, 84, 100, 0.72) !important;
  font-size: 12.5px !important;
  font-weight: 560 !important;
  line-height: 1.55 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-waiting-context .eyebrow {
  margin: 2px 0 10px !important;
  color: rgba(17, 19, 22, 0.86) !important;
  font-size: 13px !important;
  font-weight: 760 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .practice-step-list,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-idle-steps.compact {
  gap: 8px !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .practice-step-list span,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-idle-steps.compact span {
  min-height: 34px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.46)),
    rgba(255, 255, 255, 0.42) !important;
  color: rgba(75, 84, 100, 0.78) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 24px -22px rgba(15, 23, 42, 0.34) !important;
  backdrop-filter: blur(16px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.15) !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .practice-step-list strong,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-idle-steps.compact i {
  color: rgba(0, 146, 104, 0.92) !important;
  font-weight: 780 !important;
}

/* FINAL login glass refresh: keep after base modal and legacy login overrides. */
html body #loginPanel.consult-panel {
  z-index: 80 !important;
  padding: 24px !important;
  background:
    linear-gradient(135deg, rgba(9, 16, 22, 0.58), rgba(20, 33, 35, 0.36)),
    rgba(9, 14, 18, 0.22) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
}

html body #loginPanel .consult-dialog {
  width: min(920px, calc(100vw - 40px)) !important;
  max-height: calc(100vh - 48px) !important;
  overflow-y: auto !important;
  display: grid !important;
  gap: 18px !important;
  padding: 34px !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(244, 251, 253, 0.5)),
    rgba(246, 250, 248, 0.44) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 34px 90px -44px rgba(6, 14, 20, 0.64),
    0 16px 42px -34px rgba(0, 146, 122, 0.42) !important;
  backdrop-filter: blur(28px) saturate(1.24) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.24) !important;
}

html body #loginPanel .close-btn {
  top: 20px !important;
  right: 20px !important;
  width: 44px !important;
  height: 44px !important;
  border: 1px solid rgba(255, 255, 255, 0.66) !important;
  color: rgba(18, 24, 31, 0.88) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.4)),
    rgba(244, 249, 250, 0.54) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px -24px rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(16px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.16) !important;
}

html body #loginPanel .close-btn:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.52)),
    rgba(255, 255, 255, 0.62) !important;
}

html body #loginPanel .eyebrow {
  margin: 0 !important;
  color: rgba(0, 128, 104, 0.9) !important;
  font-size: 13px !important;
  font-weight: 860 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html body #loginPanel #loginTitle {
  max-width: 620px !important;
  margin: -4px 58px 4px 0 !important;
  color: rgba(18, 22, 29, 0.94) !important;
  font-size: 38px !important;
  font-weight: 820 !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

html body #loginPanel .login-choice-grid {
  display: grid !important;
  grid-template-columns: minmax(240px, 0.78fr) minmax(390px, 1.22fr) !important;
  gap: 16px !important;
  margin-top: 2px !important;
  align-items: stretch !important;
}

html body #loginPanel .login-method-card,
html body #loginPanel .phone-login-card {
  min-height: 0 !important;
  padding: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.68) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(244, 250, 253, 0.46)),
    rgba(255, 255, 255, 0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 22px 48px -38px rgba(15, 23, 42, 0.46) !important;
  backdrop-filter: blur(20px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.18) !important;
}

html body #loginPanel .login-method-card {
  align-content: center !important;
  gap: 11px !important;
  min-height: 236px !important;
}

html body #loginPanel .login-method-card.wechat {
  border-color: rgba(63, 220, 185, 0.55) !important;
  background:
    linear-gradient(145deg, rgba(231, 255, 248, 0.76), rgba(255, 255, 255, 0.48)),
    rgba(239, 255, 251, 0.48) !important;
}

html body #loginPanel .login-method-card:hover,
html body #loginPanel .phone-login-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(44, 198, 170, 0.64) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 28px 58px -42px rgba(0, 120, 100, 0.52) !important;
}

html body #loginPanel .login-method-card span,
html body #loginPanel .login-method-card small,
html body #loginPanel .phone-login-card span {
  color: rgba(76, 84, 93, 0.78) !important;
  font-weight: 780 !important;
  line-height: 1.45 !important;
}

html body #loginPanel .login-method-card strong,
html body #loginPanel .phone-login-card span {
  color: rgba(17, 22, 28, 0.94) !important;
  font-size: 24px !important;
  font-weight: 820 !important;
  letter-spacing: 0 !important;
}

html body #loginPanel .login-method-card small {
  max-width: 15em !important;
  font-size: 14px !important;
}

html body #loginPanel .phone-login-card {
  grid-column: auto !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  align-content: start !important;
}

html body #loginPanel .phone-login-card input {
  min-height: 50px !important;
  padding: 0 15px !important;
  border: 1px solid rgba(196, 207, 214, 0.76) !important;
  border-radius: 12px !important;
  color: rgba(19, 25, 32, 0.94) !important;
  background: rgba(255, 255, 255, 0.68) !important;
  font-size: 16px !important;
  font-weight: 660 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
}

html body #loginPanel .phone-login-card input::placeholder {
  color: rgba(83, 93, 104, 0.46) !important;
}

html body #loginPanel .phone-login-card input:focus {
  outline: none !important;
  border-color: rgba(0, 151, 123, 0.58) !important;
  box-shadow:
    0 0 0 4px rgba(0, 167, 137, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

html body #loginPanel .phone-code-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 136px !important;
  gap: 10px !important;
  align-items: center !important;
}

html body #loginPanel .phone-code-row button,
html body #loginPanel .phone-login-card > button {
  min-width: 0 !important;
  min-height: 50px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 820 !important;
  letter-spacing: 0 !important;
}

html body #loginPanel .phone-code-row button {
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  color: rgba(12, 103, 88, 0.96) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(244, 250, 248, 0.52)),
    rgba(255, 255, 255, 0.52) !important;
}

html body #loginPanel .phone-login-card > button {
  width: 100% !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: linear-gradient(135deg, #18202a, #05070b) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 20px 38px -28px rgba(0, 0, 0, 0.72) !important;
}

html body #loginPanel #loginNote {
  margin: 0 !important;
  padding: 13px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.66) !important;
  border-radius: 16px !important;
  color: rgba(92, 72, 18, 0.92) !important;
  background:
    linear-gradient(135deg, rgba(255, 247, 214, 0.74), rgba(255, 255, 255, 0.46)),
    rgba(255, 249, 229, 0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 18px 36px -34px rgba(122, 84, 0, 0.42) !important;
  font-size: 15px !important;
  font-weight: 820 !important;
  line-height: 1.45 !important;
  backdrop-filter: blur(16px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
}

@media (max-width: 760px) {
  html body #loginPanel.consult-panel {
    align-items: end !important;
    padding: 10px !important;
  }

  html body #loginPanel .consult-dialog {
    width: 100% !important;
    max-height: calc(100vh - 20px) !important;
    padding: 22px !important;
    border-radius: 24px !important;
    gap: 14px !important;
  }

  html body #loginPanel .close-btn {
    top: 14px !important;
    right: 14px !important;
    width: 40px !important;
    height: 40px !important;
  }

  html body #loginPanel #loginTitle {
    margin-right: 50px !important;
    font-size: 30px !important;
    line-height: 1.16 !important;
  }

  html body #loginPanel .login-choice-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  html body #loginPanel .login-method-card {
    min-height: 142px !important;
    align-content: center !important;
  }

  html body #loginPanel .login-method-card strong,
  html body #loginPanel .phone-login-card span {
    font-size: 22px !important;
  }

  html body #loginPanel .phone-code-row {
    grid-template-columns: 1fr !important;
  }

  html body #loginPanel .phone-code-row button {
    width: 100% !important;
  }
}

/* FINAL mobile home reconstruction: match the approved compact glass mockup. */
@media (max-width: 760px) {
  html body.view-dashboard {
    background:
      linear-gradient(180deg, #f7f9fb 0%, #eef3f4 48%, #f8fbfa 100%) !important;
  }

  html body.view-dashboard .app-shell,
  html body.view-dashboard .main {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  html body.view-dashboard .topbar,
  html body.view-dashboard .home-v2-desktop-trial,
  html body.view-dashboard .home-v2-welcome,
  html body.view-dashboard .home-v2-metrics,
  html body.view-dashboard .home-v2-grid,
  html body.view-dashboard .home-v2-helper {
    display: none !important;
  }

  html body.view-dashboard #dashboard.active-view {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 14px 12px calc(108px + env(safe-area-inset-bottom)) !important;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(234, 241, 244, 0.42)) !important;
    overflow-x: hidden !important;
  }

  html body.view-dashboard .home-v2 {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 430px !important;
    margin: 0 auto !important;
  }

  html body.view-dashboard .home-v2-mobile-trial {
    display: grid !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
  }

  html body.view-dashboard .home-mobile-topbar {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    min-height: 58px !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 18px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.44)),
      rgba(255, 255, 255, 0.46) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 18px 42px -34px rgba(15, 23, 42, 0.35) !important;
    backdrop-filter: blur(24px) saturate(1.22) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.22) !important;
  }

  html body.view-dashboard .home-mobile-topbar img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    object-fit: contain !important;
  }

  html body.view-dashboard .home-mobile-topbar div {
    display: grid !important;
    gap: 3px !important;
    min-width: 0 !important;
  }

  html body.view-dashboard .home-mobile-topbar strong {
    overflow: hidden !important;
    color: #171b22 !important;
    font-size: 18px !important;
    font-weight: 860 !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body.view-dashboard .home-mobile-topbar small {
    overflow: hidden !important;
    color: rgba(82, 90, 101, 0.68) !important;
    font-size: 12px !important;
    font-weight: 680 !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body.view-dashboard .home-mobile-topbar button {
    min-width: 66px !important;
    height: 34px !important;
    padding: 0 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 999px !important;
    color: rgba(9, 114, 94, 0.95) !important;
    background: rgba(235, 255, 248, 0.58) !important;
    font-size: 12px !important;
    font-weight: 820 !important;
    line-height: 34px !important;
    white-space: nowrap !important;
  }

  html body.view-dashboard .home-mobile-hero {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 74px !important;
    grid-template-rows: auto auto !important;
    gap: 12px !important;
    min-height: 150px !important;
    padding: 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.74) !important;
    border-radius: 22px !important;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(239, 248, 249, 0.46)),
      rgba(255, 255, 255, 0.45) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 22px 54px -38px rgba(15, 23, 42, 0.36) !important;
    overflow: hidden !important;
    backdrop-filter: blur(24px) saturate(1.22) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.22) !important;
  }

  html body.view-dashboard .home-mobile-hero > div {
    display: grid !important;
    align-content: start !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  html body.view-dashboard .home-mobile-hero span {
    color: rgba(0, 137, 111, 0.82) !important;
    font-size: 12px !important;
    font-weight: 820 !important;
    line-height: 1.1 !important;
  }

  html body.view-dashboard .home-mobile-hero h2 {
    max-width: 9.8em !important;
    margin: 0 !important;
    color: #191d24 !important;
    font-size: 27px !important;
    font-weight: 860 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  html body.view-dashboard .home-mobile-primary {
    grid-column: 1 / 2 !important;
    align-self: end !important;
    justify-self: start !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #1c2430, #06090e) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 16px 30px -24px rgba(0, 0, 0, 0.6) !important;
    font-size: 13px !important;
    font-weight: 820 !important;
    line-height: 38px !important;
    white-space: nowrap !important;
  }

  html body.view-dashboard .home-mobile-ring {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
    align-self: center !important;
    justify-self: end !important;
    width: 74px !important;
    height: 74px !important;
    border-radius: 999px !important;
    background:
      conic-gradient(#25c99b var(--value), rgba(211, 219, 226, 0.48) 0),
      rgba(255, 255, 255, 0.58) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.82),
      0 12px 28px -24px rgba(0, 146, 104, 0.5) !important;
  }

  html body.view-dashboard .home-mobile-ring::after {
    inset: 8px !important;
    background: rgba(255, 255, 255, 0.82) !important;
  }

  html body.view-dashboard .home-mobile-ring strong {
    color: rgba(33, 39, 48, 0.86) !important;
    font-size: 17px !important;
    font-weight: 860 !important;
  }

  html body.view-dashboard .home-mobile-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  html body.view-dashboard .home-mobile-metric {
    position: relative !important;
    min-width: 0 !important;
    min-height: 92px !important;
    padding: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 18px !important;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(246, 250, 253, 0.46)),
      rgba(255, 255, 255, 0.46) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.94),
      0 16px 38px -34px rgba(15, 23, 42, 0.35) !important;
    backdrop-filter: blur(20px) saturate(1.16) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.16) !important;
  }

  html body.view-dashboard .home-mobile-metric em {
    top: 12px !important;
    right: 12px !important;
    width: 31px !important;
    height: 31px !important;
    border-radius: 999px !important;
    color: var(--accent) !important;
    background: color-mix(in srgb, var(--accent) 12%, white) !important;
  }

  html body.view-dashboard .home-mobile-metric em svg {
    width: 16px !important;
    height: 16px !important;
  }

  html body.view-dashboard .home-mobile-metric span {
    margin: 0 36px 10px 0 !important;
    color: rgba(83, 91, 102, 0.64) !important;
    font-size: 13px !important;
    font-weight: 780 !important;
    line-height: 1.1 !important;
  }

  html body.view-dashboard .home-mobile-metric strong {
    color: rgba(26, 31, 39, 0.9) !important;
    font-size: 31px !important;
    font-weight: 760 !important;
    line-height: 0.98 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  html body.view-dashboard .home-mobile-metric i {
    display: none !important;
  }

  html body.view-dashboard .home-mobile-section-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: end !important;
    margin: 4px 2px -2px !important;
  }

  html body.view-dashboard .home-mobile-section-head.compact {
    margin-top: 0 !important;
  }

  html body.view-dashboard .home-mobile-section-head strong {
    color: #191d24 !important;
    font-size: 18px !important;
    font-weight: 840 !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
  }

  html body.view-dashboard .home-mobile-section-head small {
    color: rgba(84, 93, 105, 0.58) !important;
    font-size: 12px !important;
    font-weight: 720 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  html body.view-dashboard .home-mobile-section {
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body.view-dashboard .home-mobile-task-list,
  html body.view-dashboard .home-mobile-quick > div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  html body.view-dashboard .home-mobile-task,
  html body.view-dashboard .home-mobile-quick button {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 8px !important;
    min-width: 0 !important;
    min-height: 92px !important;
    padding: 13px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 18px !important;
    color: rgba(24, 29, 37, 0.92) !important;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(246, 250, 251, 0.45)),
      rgba(255, 255, 255, 0.44) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 15px 34px -32px rgba(15, 23, 42, 0.34) !important;
    overflow: hidden !important;
    backdrop-filter: blur(20px) saturate(1.16) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.16) !important;
  }

  html body.view-dashboard .home-mobile-task span,
  html body.view-dashboard .home-mobile-quick button span {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 27px !important;
    height: 27px !important;
    color: rgba(111, 121, 134, 0.72) !important;
    background: transparent !important;
  }

  html body.view-dashboard .home-mobile-task span svg,
  html body.view-dashboard .home-mobile-quick button span svg {
    width: 22px !important;
    height: 22px !important;
  }

  html body.view-dashboard .home-mobile-task b,
  html body.view-dashboard .home-mobile-quick button strong {
    grid-column: 1 / -1 !important;
    align-self: end !important;
    min-width: 0 !important;
    color: rgba(27, 31, 39, 0.9) !important;
    font-size: 21px !important;
    font-weight: 830 !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  html body.view-dashboard .home-mobile-task em {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    width: 24px !important;
    height: 24px !important;
    color: #8ab8ff !important;
  }

  html body.view-dashboard .home-mobile-task em svg {
    width: 23px !important;
    height: 23px !important;
  }

  html body.view-dashboard .home-mobile-task.active {
    border-color: rgba(68, 194, 161, 0.38) !important;
    background:
      linear-gradient(145deg, rgba(239, 255, 249, 0.74), rgba(255, 255, 255, 0.5)),
      rgba(241, 255, 250, 0.46) !important;
  }

  html body.view-dashboard .mobile-tabbar {
    left: 12px !important;
    right: 12px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    z-index: 70 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    min-height: 66px !important;
    padding: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.74) !important;
    border-radius: 24px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.5)),
      rgba(255, 255, 255, 0.56) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 -12px 40px -28px rgba(15, 23, 42, 0.34) !important;
    backdrop-filter: blur(28px) saturate(1.24) !important;
    -webkit-backdrop-filter: blur(28px) saturate(1.24) !important;
  }

  html body.view-dashboard .mobile-tab {
    min-height: 50px !important;
    height: 50px !important;
    border-radius: 16px !important;
    color: rgba(86, 94, 106, 0.72) !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 820 !important;
  }

  html body.view-dashboard .mobile-tab.active {
    color: rgba(27, 31, 39, 0.9) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.54)),
      rgba(255, 255, 255, 0.5) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 12px 26px -22px rgba(15, 23, 42, 0.34) !important;
  }
}

/* Final lock: mobile mock center should keep its glass header and status visible. */
@media (max-width: 760px) {
  html body #mock.active-view .mock-page-head {
    display: grid !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 0 16px !important;
    padding: 18px !important;
    border-radius: 22px !important;
  }

  html body #mock.active-view .mock-glass-summary {
    display: grid !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html body #mock.active-view #mockCommandCenter,
  html body #mock.active-view .mock-command-center,
  html body #mock.active-view .mock-status-card {
    display: grid !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  html body #mock.active-view .mock-center-layout,
  html body #mock.active-view .mock-main-column,
  html body #mock.active-view .mock-right-column {
    overflow: visible !important;
  }
}

/* Mock center Apple-style glass refresh. */
html body #mock.active-view {
  --mock-glass-ink: #111318;
  --mock-glass-muted: rgba(58, 66, 78, 0.72);
  --mock-glass-soft: rgba(255, 255, 255, 0.56);
  --mock-glass-strong: rgba(255, 255, 255, 0.78);
  --mock-glass-line: rgba(255, 255, 255, 0.68);
  --mock-glass-shadow: 0 24px 70px -48px rgba(15, 23, 42, 0.58);
  background:
    linear-gradient(135deg, rgba(246, 248, 252, 0.96), rgba(238, 244, 246, 0.92) 48%, rgba(252, 247, 236, 0.9)) !important;
  color: var(--mock-glass-ink) !important;
}

html body #mock.active-view .mock-page-head,
html body #mock.active-view .mock-paper-workbench,
html body #mock.active-view .mock-flow-panel,
html body #mock.active-view .mock-status-card,
html body #mock.active-view .mock-report-panel,
html body #mock.active-view .mock-session-area > .panel,
html body #mock.active-view .mock-exam-card {
  border: 1px solid var(--mock-glass-line) !important;
  background:
    linear-gradient(180deg, var(--mock-glass-strong), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.36) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    var(--mock-glass-shadow) !important;
  backdrop-filter: blur(24px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.22) !important;
}

html body #mock.active-view .mock-page-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px) auto !important;
  min-height: 176px !important;
  align-items: center !important;
  gap: clamp(18px, 3vw, 36px) !important;
  padding: clamp(26px, 3vw, 42px) !important;
  overflow: hidden !important;
}

html body #mock.active-view .mock-page-head h2 {
  color: var(--mock-glass-ink) !important;
  font-size: clamp(36px, 4vw, 56px) !important;
  font-weight: 780 !important;
  line-height: 1.04 !important;
}

html body #mock.active-view .mock-page-head p {
  max-width: 22em !important;
  color: var(--mock-glass-muted) !important;
  font-size: 15px !important;
  font-weight: 560 !important;
}

html body #mock.active-view .mock-glass-summary {
  display: grid !important;
  gap: 8px !important;
  min-height: 126px !important;
  padding: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 42px -34px rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(22px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.18) !important;
}

html body #mock.active-view .mock-glass-summary span,
html body #mock.active-view .mock-glass-summary small {
  color: var(--mock-glass-muted) !important;
  font-size: 12px !important;
  font-weight: 720 !important;
}

html body #mock.active-view .mock-glass-summary strong {
  color: var(--mock-glass-ink) !important;
  font-size: 42px !important;
  font-weight: 780 !important;
  line-height: 0.95 !important;
}

html body #mock.active-view .mock-glass-summary div {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 4px !important;
}

html body #mock.active-view .mock-glass-summary b {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
  padding: 8px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.54) !important;
  color: rgba(58, 66, 78, 0.78) !important;
  font-size: 11px !important;
  font-weight: 680 !important;
  text-align: center !important;
}

html body #mock.active-view .mock-glass-summary em {
  color: var(--mock-glass-ink) !important;
  font-size: 17px !important;
  font-style: normal !important;
  font-weight: 780 !important;
}

html body #mock.active-view .mock-page-actions {
  display: flex !important;
  justify-content: flex-end !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

html body #mock.active-view .mock-page-actions .primary-btn,
html body #mock.active-view .mock-paper-card.is-action-active > i,
html body #mock.active-view .mock-paper-card.is-action-active.active > i,
html body #mock.active-view .mock-exam-actions .primary-btn {
  border-color: rgba(17, 19, 24, 0.92) !important;
  background: rgba(17, 19, 24, 0.94) !important;
  color: #fff !important;
  box-shadow: 0 16px 36px -24px rgba(17, 19, 24, 0.72) !important;
}

html body #mock.active-view .mock-center-layout {
  grid-template-columns: minmax(620px, 1fr) minmax(300px, 360px) !important;
  gap: 18px !important;
}

html body #mock.active-view .mock-main-column,
html body #mock.active-view .mock-right-column {
  display: grid !important;
  gap: 18px !important;
}

html body #mock.active-view .mock-paper-workbench {
  display: grid !important;
  gap: 14px !important;
  min-height: 0 !important;
  padding: 22px !important;
}

html body #mock.active-view .mock-paper-workbench::before {
  content: "选择模考卷" !important;
  color: var(--mock-glass-ink) !important;
  font-size: 22px !important;
  font-weight: 760 !important;
}

html body #mock.active-view .mock-paper-workbench::after {
  content: none !important;
}

html body #mock.active-view .mock-paper-tabs {
  position: static !important;
  display: flex !important;
  gap: 8px !important;
  padding: 0 !important;
  overflow-x: auto !important;
}

html body #mock.active-view .mock-paper-tabs button,
html body #mock.active-view .mock-paper-filters button {
  min-height: 34px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.46) !important;
  color: rgba(58, 66, 78, 0.78) !important;
  font-size: 12px !important;
  font-weight: 720 !important;
}

html body #mock.active-view .mock-paper-tabs button.active,
html body #mock.active-view .mock-paper-filters button.active {
  border-color: rgba(17, 19, 24, 0.88) !important;
  background: rgba(17, 19, 24, 0.92) !important;
  color: #fff !important;
}

html body #mock.active-view .mock-paper-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #mock.active-view .mock-paper-toolbar .search-field {
  max-width: none !important;
  min-height: 40px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.5) !important;
}

html body #mock.active-view .mock-paper-filters {
  display: flex !important;
}

html body #mock.active-view .mock-paper-list {
  gap: 10px !important;
  margin: 0 !important;
}

html body #mock.active-view .mock-paper-card {
  grid-template-columns: 48px minmax(0, 1fr) auto !important;
  min-height: 86px !important;
  gap: 14px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.46) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
}

html body #mock.active-view .mock-paper-card:hover {
  border-color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(255, 255, 255, 0.66) !important;
  transform: translateY(-1px) !important;
}

html body #mock.active-view .mock-paper-card.active {
  border-color: rgba(17, 19, 24, 0.16) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 18px 44px -34px rgba(15, 23, 42, 0.5) !important;
}

html body #mock.active-view .mock-paper-card.active::before {
  content: none !important;
}

html body #mock.active-view .mock-paper-card .mock-paper-ribbon {
  display: grid !important;
  position: static !important;
  grid-column: 1 !important;
  place-items: center !important;
  width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  border-radius: 16px !important;
  background: rgba(17, 19, 24, 0.9) !important;
  color: #fff !important;
  font-size: 11px !important;
}

html body #mock.active-view .mock-paper-card.tone-mint .mock-paper-ribbon {
  background: rgba(0, 146, 104, 0.88) !important;
}

html body #mock.active-view .mock-paper-card.tone-violet .mock-paper-ribbon {
  background: rgba(82, 90, 226, 0.86) !important;
}

html body #mock.active-view .mock-paper-card .mock-paper-index,
html body #mock.active-view .mock-paper-card .mock-paper-meta,
html body #mock.active-view .mock-paper-card .mock-paper-copy em {
  display: none !important;
}

html body #mock.active-view .mock-paper-card .mock-paper-copy {
  grid-column: 2 !important;
  display: grid !important;
  gap: 4px !important;
}

html body #mock.active-view .mock-paper-card .mock-paper-copy strong {
  margin: 0 !important;
  color: var(--mock-glass-ink) !important;
  font-size: 16px !important;
  font-weight: 760 !important;
}

html body #mock.active-view .mock-paper-card .mock-paper-copy p {
  max-width: none !important;
  margin: 0 !important;
  color: var(--mock-glass-muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

html body #mock.active-view .mock-paper-card .mock-paper-copy small {
  display: inline-flex !important;
  width: max-content !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.58) !important;
  color: rgba(58, 66, 78, 0.82) !important;
  font-size: 11px !important;
}

html body #mock.active-view .mock-paper-card > i {
  grid-column: 3 !important;
  min-width: 64px !important;
  min-height: 36px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.56) !important;
  color: var(--mock-glass-ink) !important;
  font-size: 12px !important;
}

html body #mock.active-view .mock-flow-panel {
  padding: 22px !important;
}

html body #mock.active-view .mock-flow-panel h3,
html body #mock.active-view .mock-report-panel h2,
html body #mock.active-view .mock-status-card h3 {
  color: var(--mock-glass-ink) !important;
  font-size: 21px !important;
  font-weight: 760 !important;
}

html body #mock.active-view .mock-flow-panel .mock-task-list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

html body #mock.active-view .mock-flow-panel .mock-task {
  min-height: 112px !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  padding: 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.66) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.42) !important;
}

html body #mock.active-view .mock-flow-panel .mock-task-index {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.68) !important;
  color: var(--mock-glass-ink) !important;
  display: grid !important;
  place-items: center !important;
  font-size: 14px !important;
}

html body #mock.active-view .mock-flow-panel .mock-task strong {
  color: var(--mock-glass-ink) !important;
  font-size: 14px !important;
}

html body #mock.active-view .mock-flow-panel .mock-task small,
html body #mock.active-view .mock-flow-panel .mock-task > span:last-child {
  color: var(--mock-glass-muted) !important;
  font-size: 11px !important;
}

html body #mock.active-view .mock-status-card,
html body #mock.active-view .mock-report-panel {
  padding: 22px !important;
}

html body #mock.active-view .mock-progress-line i,
html body #mock.active-view .mini-progress,
html body #mock.active-view .mock-status-stats article,
html body #mock.active-view .mock-node82-report-rows article,
html body #mock.active-view .mock-latest-empty,
html body #mock.active-view .mock-skill-grid article,
html body #mock.active-view .mock-question-stem,
html body #mock.active-view .mock-answer-box {
  border: 1px solid rgba(255, 255, 255, 0.66) !important;
  background: rgba(255, 255, 255, 0.46) !important;
  border-radius: 16px !important;
}

html body #mock.active-view .mock-session-area {
  width: min(1180px, 100%) !important;
  margin: 22px auto 0 !important;
}

html body #mock.active-view.mock-exam-focus .mock-session-area > .panel {
  min-height: calc(100vh - 170px) !important;
  border-radius: 30px !important;
  padding: clamp(22px, 3vw, 36px) !important;
}

html body #mock.active-view .mock-hero {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: center !important;
  padding: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.68) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.42) !important;
}

html body #mock.active-view .mock-exam-card {
  padding: 22px !important;
  border-radius: 24px !important;
}

html body #mock.active-view .mock-question-progress {
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)) !important;
}

html body #mock.active-view .mock-question-progress button {
  border-color: rgba(255, 255, 255, 0.7) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.48) !important;
}

html body #mock.active-view .mock-question-progress button.active {
  background: rgba(17, 19, 24, 0.92) !important;
  color: #fff !important;
}

@media (max-width: 1180px) {
  html body #mock.active-view .mock-page-head,
  html body #mock.active-view .mock-center-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body #mock.active-view .mock-page-actions {
    justify-content: start !important;
  }

  html body #mock.active-view .mock-flow-panel .mock-task-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  html body #mock.active-view {
    padding: 12px !important;
  }

  html body #mock.active-view .mock-page-head,
  html body #mock.active-view .mock-paper-workbench,
  html body #mock.active-view .mock-flow-panel,
  html body #mock.active-view .mock-status-card,
  html body #mock.active-view .mock-report-panel,
  html body #mock.active-view .mock-session-area > .panel {
    border-radius: 22px !important;
    padding: 18px !important;
  }

  html body #mock.active-view .mock-page-head {
    min-height: 0 !important;
    gap: 16px !important;
  }

  html body #mock.active-view .mock-page-head h2 {
    font-size: 34px !important;
  }

  html body #mock.active-view .mock-glass-summary {
    width: 100% !important;
    min-height: 0 !important;
  }

  html body #mock.active-view .mock-paper-toolbar {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body #mock.active-view .mock-paper-filters {
    overflow-x: auto !important;
  }

  html body #mock.active-view .mock-paper-card {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    min-height: 104px !important;
  }

  html body #mock.active-view .mock-paper-card .mock-paper-ribbon {
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
  }

  html body #mock.active-view .mock-paper-card > i {
    grid-column: 2 !important;
    justify-self: start !important;
    min-height: 32px !important;
  }

  html body #mock.active-view .mock-flow-panel .mock-task-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body #mock.active-view .mock-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Mock glass density tune: keep the console useful on shorter laptop screens. */
@media (min-width: 761px) {
  html body #mock.active-view .mock-page-head {
    min-height: 150px !important;
    padding: clamp(22px, 2.35vw, 32px) !important;
  }

  html body #mock.active-view .mock-glass-summary {
    align-self: center !important;
    min-height: 0 !important;
    padding: 16px !important;
  }

  html body #mock.active-view .mock-glass-summary strong {
    font-size: 38px !important;
  }

  html body #mock.active-view .mock-paper-workbench,
  html body #mock.active-view .mock-flow-panel,
  html body #mock.active-view .mock-status-card,
  html body #mock.active-view .mock-report-panel {
    padding: 20px !important;
  }

  html body #mock.active-view .mock-paper-card {
    min-height: 82px !important;
  }
}

@media (max-width: 760px) {
  html body #mock.active-view .mock-page-head {
    display: grid !important;
    width: 100% !important;
    margin: 0 0 16px !important;
  }

  html body #mock.active-view .mock-page-actions {
    display: flex !important;
  }

  html body #mock.active-view .mock-center-layout,
  html body #mock.active-view .mock-main-column,
  html body #mock.active-view .mock-right-column {
    overflow: visible !important;
  }

  html body #mock.active-view .mock-command-center,
  html body #mock.active-view .mock-status-card {
    display: grid !important;
  }

  html body #mock.active-view .mock-command-center {
    margin: 0 !important;
  }
}

/* FINAL recording controls: keep waveform and buttons readable at narrow desktop widths. */
html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording .wave,
html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording > .wave {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording .recorder-actions,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .recorder.recording .recorder-actions {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording .recorder-actions button,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .recorder.recording .recorder-actions button {
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  line-height: 38px !important;
  white-space: nowrap !important;
}

@media (max-width: 980px) {
  html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording .recorder-actions,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .recorder.recording .recorder-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* LAST feedback idle glass polish: lighter Apple-like report waiting state. */
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48)),
    rgba(255, 255, 255, 0.38) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 46px -36px rgba(15, 23, 42, 0.42) !important;
  backdrop-filter: blur(24px) saturate(1.28) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.28) !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) > .eyebrow {
  color: rgba(77, 86, 101, 0.72) !important;
  font-size: 11px !important;
  font-weight: 780 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
}

/* Practice plan typography: lighter, calmer spacing inside the hero banner. */
@media (min-width: 761px) {
  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card,
  html body #practice:not(.practice-detail-mode) .practice-plan-card {
    display: grid !important;
    align-content: center !important;
    gap: clamp(8px, 0.9vw, 13px) !important;
    padding: clamp(14px, 1.35vw, 20px) clamp(14px, 1.6vw, 24px) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card > div,
  html body #practice:not(.practice-detail-mode) .practice-plan-card > div {
    align-items: center !important;
    gap: 8px !important;
    min-height: 30px !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card > div > span,
  html body #practice:not(.practice-detail-mode) .practice-plan-card > div > span {
    color: rgba(72, 78, 90, 0.72) !important;
    font-size: clamp(12px, 0.9vw, 14px) !important;
    font-weight: 720 !important;
    line-height: 1.2 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card .ghost-btn,
  html body #practice:not(.practice-detail-mode) .practice-plan-card .ghost-btn {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 760 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card strong,
  html body #practice:not(.practice-detail-mode) .practice-plan-card strong {
    margin: clamp(6px, 0.7vw, 10px) 0 0 !important;
    max-width: 100% !important;
    color: #17191f !important;
    font-size: clamp(28px, 2.25vw, 36px) !important;
    font-weight: 760 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card p,
  html body #practice:not(.practice-detail-mode) .practice-plan-card p {
    margin: 0 !important;
    color: rgba(75, 82, 94, 0.7) !important;
    font-size: clamp(14px, 1.05vw, 16px) !important;
    font-weight: 560 !important;
    line-height: 1.45 !important;
    white-space: nowrap !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card .primary-btn,
  html body #practice:not(.practice-detail-mode) .practice-plan-card .primary-btn,
  html body #practice.active-view:not(.practice-detail-mode) #dailyPracticeButton,
  html body #practice:not(.practice-detail-mode) #dailyPracticeButton {
    margin-top: clamp(6px, 0.8vw, 10px) !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 760 !important;
    line-height: 34px !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card strong,
  html body #practice:not(.practice-detail-mode) .practice-plan-card strong {
    font-size: clamp(24px, 3vw, 30px) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card p,
  html body #practice:not(.practice-detail-mode) .practice-plan-card p {
    font-size: 13px !important;
  }
}

/* RA read-mode selector: visible on desktop and mobile. */
html body #practice.practice-detail-mode .stage-practice .answer-hint-bar.ra-mode-inline {
  display: block !important;
  margin: 10px 0 14px !important;
  padding: 10px 12px !important;
  border: 1px solid #e5e5ea !important;
  border-radius: 18px !important;
  background: #fff !important;
}

html body #practice .ra-mode-control {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

html body #practice .ra-mode-control span {
  color: #1d1d1f !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

html body #practice .ra-mode-control button {
  min-height: 30px !important;
  padding: 0 13px !important;
  border: 1px solid #e5e5ea !important;
  border-radius: 999px !important;
  background: #fbfbfd !important;
  color: #1d1d1f !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

html body #practice .ra-mode-control button.active {
  border-color: #1d1d1f !important;
  background: #1d1d1f !important;
  color: #fff !important;
}

html body #practice .ra-mode-control small {
  color: #6e6e73 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

/* RA training keeps the card clean: the demo, favorite, and return-list buttons are removed. */
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .question-tools {
  display: none !important;
}

@media (max-width: 760px) {
  html body #practice.practice-detail-mode .practice-panel.stage-practice .question-tools {
    display: none !important;
  }

  html body #practice.practice-detail-mode .feedback-panel .report-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin-top: 14px !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }

  html body #practice.practice-detail-mode .feedback-panel .report-actions button {
    display: none !important;
  }

  html body #practice.practice-detail-mode .feedback-panel .report-actions #reportBackListButton {
    display: inline-flex !important;
    width: 100% !important;
    min-height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    border: 1px solid #e5e5ea !important;
    background: #fff !important;
    color: #1d1d1f !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  html body #mock.active-view .mock-page-head {
    display: grid !important;
  }

  html body #mock.active-view #mockCommandCenter,
  html body #mock.active-view .mock-command-center,
  html body #mock.active-view .mock-status-card {
    display: grid !important;
  }

  html body #mock.active-view:not(.mock-exam-focus) .mock-session-area {
    display: none !important;
  }

  html body #mock.active-view.mock-exam-focus .mock-page-head,
  html body #mock.active-view.mock-exam-focus .mock-center-layout {
    display: none !important;
  }

  html body #mock.active-view.mock-exam-focus .mock-session-area {
    display: block !important;
  }

  html body #mock.active-view .mock-paper-selector,
  html body #mock.active-view .mock-paper-track,
  html body #mock.active-view .mock-filter-tabs,
  html body #mock.active-view .mock-status-tabs {
    overflow-x: hidden !important;
    scrollbar-width: none !important;
  }

  html body #mock.active-view .mock-paper-selector::-webkit-scrollbar,
  html body #mock.active-view .mock-paper-track::-webkit-scrollbar,
  html body #mock.active-view .mock-filter-tabs::-webkit-scrollbar,
  html body #mock.active-view .mock-status-tabs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  html body #practice.practice-detail-mode .stage-practice .answer-hint-bar.ra-mode-inline {
    margin: 8px 0 12px !important;
    border-radius: 16px !important;
  }

  html body #practice .ra-mode-control {
    gap: 6px !important;
  }

  html body #practice .ra-mode-control span,
  html body #practice .ra-mode-control small {
    flex-basis: 100% !important;
  }
}

/* Mobile RA practice: remove the reserved blank space above the player. */
@media (max-width: 760px) {
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .question-card.active-question {
    min-height: 0 !important;
    padding-bottom: 14px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #questionText {
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .audio-prompt:empty,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .question-image-panel.is-hidden,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .question-meaning:empty {
    display: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-player,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-player:not(.is-hidden),
  html body #practice .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-player:not(.is-hidden) {
    min-height: 38px !important;
    height: auto !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    border: 0 !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-player-head,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-avatar,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-player-head > div:last-of-type,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoSpeedSelect,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-player-controls span {
    display: none !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-player-controls {
    display: contents !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoProgress {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* RA demo audio toggle: keep it as an icon button on desktop and mobile. */
html body #practice .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #050607 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16) !important;
}

html body #practice .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton::before,
html body #practice .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton::after,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton::before,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton::after {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  box-sizing: border-box !important;
  top: 50% !important;
  left: 50% !important;
}

html body #practice .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton::before,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton::before {
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  border-top: 7px solid transparent !important;
  border-bottom: 7px solid transparent !important;
  border-left: 11px solid #fff !important;
  border-right: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  transform: translate(-42%, -50%) !important;
}

html body #practice .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton::after,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton::after {
  display: none !important;
}

html body #practice .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton.is-playing::before,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton.is-playing::before {
  width: 4px !important;
  height: 14px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: #fff !important;
  transform: translate(calc(-50% - 4px), -50%) !important;
}

html body #practice .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton.is-playing::after,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton.is-playing::after {
  display: block !important;
  width: 4px !important;
  height: 14px !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: #fff !important;
  transform: translate(calc(-50% + 4px), -50%) !important;
}

@media (max-width: 760px) {
  html body #practice .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton {
    flex-basis: 34px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    min-height: 34px !important;
  }
}

/* Live recording waveform: visible for every speaking question while recording. */
html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder:not(.recording) .wave {
  display: none !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording {
  grid-template-columns: auto minmax(180px, 1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording .wave,
html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording > .wave {
  display: flex !important;
  visibility: visible !important;
  width: 100% !important;
  min-width: 160px !important;
  min-height: 50px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(29, 29, 31, 0.08) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ffffff, #f6f6f7) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording .wave span {
  display: block !important;
  flex: 1 1 0 !important;
  max-width: 7px !important;
  min-width: 3px !important;
  height: var(--wave-height, 10px) !important;
  min-height: 6px !important;
  max-height: 44px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #22c55e, #0f9f6e) !important;
  opacity: var(--wave-opacity, 0.42) !important;
  transform-origin: center !important;
  animation: none !important;
  transition: height 80ms linear, opacity 80ms linear, background-color 120ms ease !important;
  will-change: height, opacity !important;
}

@media (max-width: 760px) {
  html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording .wave,
  html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording > .wave {
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 0 12px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice .recorder.recording .wave span {
    max-height: 36px !important;
  }
}

/* RA sentence mode: selected words must render as one connected highlight block. */
html body #practice.practice-detail-mode .stage-practice #questionText .ra-selection-block {
  display: inline !important;
  padding: 1px 3px !important;
  border-radius: 6px !important;
  background: rgba(255, 199, 46, 0.34) !important;
  box-decoration-break: clone !important;
  -webkit-box-decoration-break: clone !important;
}

html body #practice.practice-detail-mode .stage-practice #questionText .ra-selection-block .ra-word-select,
html body #practice.practice-detail-mode .stage-practice #questionText .ra-word-select.selected,
html body #practice.practice-detail-mode .stage-practice #questionText .ra-selection-gap {
  margin: 0 !important;
  padding: 0 1px !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html body #practice.practice-detail-mode .stage-practice #questionText .ra-word-select.edge {
  border-radius: 6px !important;
  box-shadow: inset 0 -2px 0 rgba(24, 24, 27, 0.78) !important;
}

html body #practice.practice-detail-mode .stage-practice #questionText .ra-word-select.edge:not(.selected) {
  padding: 0 3px !important;
  background: rgba(255, 199, 46, 0.24) !important;
}

/* Home mobile polish: real daily progress, green ring, consistent metric type. */
@media (max-width: 760px) {
  html body .home-mobile-ring {
    background:
      radial-gradient(circle at center, #fff 0 48%, transparent 49%),
      conic-gradient(#34c759 var(--value), #e5e5ea 0) !important;
  }

  html body .home-mobile-metric strong,
  html body .home-mobile-metrics .home-mobile-metric:last-child strong {
    font-size: 28px !important;
    line-height: 34px !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
  }

  html body .home-mobile-section-head span[data-home-daily-progress] {
    min-width: 76px !important;
    height: 30px !important;
    padding: 0 14px !important;
    border-color: #f6c13b !important;
    border-radius: 999px !important;
    background: #fff8dc !important;
    color: #7a5600 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
  }
}

/* Reading mistake-cause loading card: match the black/white/green product palette. */
html body #practice.practice-detail-mode .feedback-panel .reading-ai-review.loading {
  display: grid !important;
  gap: 10px !important;
  padding: 18px 18px 20px !important;
  border: 1px solid rgba(0, 163, 110, 0.18) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(0, 163, 110, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfffd 100%) !important;
  box-shadow: 0 14px 28px -24px rgba(14, 17, 23, 0.22) !important;
}

html body #practice.practice-detail-mode .feedback-panel .reading-ai-review.loading .reading-review-loader {
  display: inline-flex !important;
  gap: 6px !important;
  align-items: center !important;
  width: fit-content !important;
}

html body #practice.practice-detail-mode .feedback-panel .reading-ai-review.loading .reading-review-loader span {
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: #34c759 !important;
  opacity: 0.45 !important;
  animation: reading-cause-pulse 1.05s ease-in-out infinite !important;
}

html body #practice.practice-detail-mode .feedback-panel .reading-ai-review.loading .reading-review-loader span:nth-child(2) {
  animation-delay: 0.14s !important;
}

html body #practice.practice-detail-mode .feedback-panel .reading-ai-review.loading .reading-review-loader span:nth-child(3) {
  animation-delay: 0.28s !important;
}

html body #practice.practice-detail-mode .feedback-panel .reading-ai-review.loading h3 {
  margin: 0 !important;
  color: #1d1d1f !important;
  font-size: 20px !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
}

html body #practice.practice-detail-mode .feedback-panel .reading-ai-review.loading p {
  margin: 0 !important;
  color: #4b5563 !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.65 !important;
}

@keyframes reading-cause-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* Reading DS report: one compact explanation card instead of many separate cards. */
html body #practice.practice-detail-mode .feedback-panel .reading-ds-summary-card {
  border: 1px solid rgba(20, 24, 31, 0.1) !important;
  border-radius: 14px !important;
  background: #fff !important;
  padding: 12px !important;
  display: grid !important;
  gap: 10px !important;
}

html body #practice.practice-detail-mode .feedback-panel .reading-ds-summary-row {
  border: 0 !important;
  border-bottom: 1px solid rgba(20, 24, 31, 0.08) !important;
  background: transparent !important;
  padding: 0 0 10px !important;
}

html body #practice.practice-detail-mode .feedback-panel .reading-ds-summary-row:last-child {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

html body #practice.practice-detail-mode .feedback-panel .reading-ds-summary-row small {
  display: block !important;
  margin-bottom: 6px !important;
  color: #20242b !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}

html body #practice.practice-detail-mode .feedback-panel .reading-ds-summary-row p,
html body #practice.practice-detail-mode .feedback-panel .reading-ds-summary-row li {
  margin: 0 !important;
  color: #20242b !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.72 !important;
}

html body #practice.practice-detail-mode .feedback-panel .reading-ds-summary-row ul {
  margin: 0 !important;
  padding-left: 16px !important;
}

html body #practice.practice-detail-mode .feedback-panel .reading-ds-summary-row.is-correct small,
html body #practice.practice-detail-mode .feedback-panel .reading-ds-summary-row.is-tip small {
  color: #078f63 !important;
}

html body #practice.practice-detail-mode .feedback-panel .reading-ds-summary-row.is-wrong small,
html body #practice.practice-detail-mode .feedback-panel .reading-ds-summary-row.is-distractor small {
  color: #cf3f3f !important;
}

html body #practice.practice-detail-mode .feedback-panel .reading-report-back-button {
  width: 100% !important;
  min-height: 44px !important;
  border: 1px solid rgba(20, 24, 31, 0.12) !important;
  border-radius: 14px !important;
  background: #1d1d1f !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

html body #practice.practice-detail-mode .feedback-panel .reading-report-back-button:active {
  transform: translateY(1px) !important;
}

/* Reading objective report: remove the old top dead space and keep the return action compact. */
html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report {
  align-content: start !important;
  gap: 10px !important;
  padding-top: 18px !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report::after {
  display: none !important;
  content: none !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report::before {
  display: none !important;
  content: none !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report > .eyebrow {
  margin: 0 0 6px !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report > h2 {
  margin: 0 0 10px !important;
  min-height: 0 !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .feedback-list {
  margin-top: 0 !important;
  gap: 10px !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-generated-report {
  gap: 10px !important;
}

/* Reading report readability: make the right-side report legible for students. */
html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-score-summary {
  grid-template-columns: 92px minmax(0, 1fr) !important;
  gap: 16px !important;
  padding: 16px !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-score-ring-compact strong {
  font-size: 26px !important;
  letter-spacing: 0 !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-score-ring-compact span {
  font-size: 12px !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-score-copy h3,
html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-answer-head h3 {
  font-size: 21px !important;
  line-height: 1.25 !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-score-copy span,
html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-answer-head span,
html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-ds-tags span {
  font-size: 13px !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-answer-list {
  gap: 11px !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-answer-row {
  min-height: 56px !important;
  grid-template-columns: 32px minmax(0, 1fr) 28px !important;
  gap: 12px !important;
  padding: 8px 12px !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-answer-row > span {
  width: 32px !important;
  height: 32px !important;
  font-size: 14px !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-answer-row strong {
  font-size: 16px !important;
  line-height: 1.25 !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-answer-row small {
  margin-top: 4px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-answer-row b {
  font-size: 20px !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-ds-card-head strong {
  font-size: 17px !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-ds-card-head em,
html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-ds-card-head b,
html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-ds-answer-pair small {
  font-size: 13px !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-ds-answer-pair strong {
  font-size: 15px !important;
  line-height: 1.35 !important;
}

html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-report-back-button {
  width: auto !important;
  min-width: 96px !important;
  min-height: 34px !important;
  padding: 0 18px !important;
  justify-self: start !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  box-shadow: none !important;
}

@media (min-width: 761px) {
  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-report-back-button {
    display: none !important;
  }
}

@media (max-width: 760px) {
  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode.has-report .reading-report-back-button {
    display: inline-flex !important;
  }
}

/* Reading FIB result state: wrong chosen blanks must override the selected-value pill style. */
html body #practice.practice-detail-mode .stage-practice #questionText .fib-blank.is-wrong,
html body #practice.practice-detail-mode .stage-practice #questionText .fib-blank.is-wrong[data-value]:not([data-value=""]),
html body #practice.practice-detail-mode .stage-practice .fib-answer .fib-blank.is-wrong,
html body #practice.practice-detail-mode .stage-practice .fib-answer .fib-blank.is-wrong[data-value]:not([data-value=""]) {
  border-color: rgba(229, 72, 77, 0.78) !important;
  background: #fff4f2 !important;
  color: #be3026 !important;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.11) !important;
}

html body #practice.practice-detail-mode .stage-practice #questionText .fib-blank.is-wrong small,
html body #practice.practice-detail-mode .stage-practice .fib-answer .fib-blank.is-wrong small {
  color: #be3026 !important;
  font-weight: 900 !important;
}

html body #practice.practice-detail-mode .stage-practice #questionText .fib-blank.is-correct,
html body #practice.practice-detail-mode .stage-practice #questionText .fib-blank.is-correct[data-value]:not([data-value=""]),
html body #practice.practice-detail-mode .stage-practice .fib-answer .fib-blank.is-correct,
html body #practice.practice-detail-mode .stage-practice .fib-answer .fib-blank.is-correct[data-value]:not([data-value=""]) {
  border-color: rgba(0, 156, 107, 0.72) !important;
  background: #ecfff7 !important;
  color: #00764f !important;
  box-shadow: 0 0 0 3px rgba(0, 156, 107, 0.1) !important;
}

/* Question-bank subject switching: respond immediately, then repaint cards on the next frame. */
html body #practice .figma-type-card-grid,
html body #practice .mobile-subject-grid {
  transition: opacity 0.16s ease, transform 0.16s ease !important;
}

html body #practice.practice-type-switching .figma-type-card-grid,
html body #practice.practice-type-switching .mobile-subject-grid {
  opacity: 0.72 !important;
  transform: translateY(2px) !important;
}

html body #practice .figma-type-card,
html body #practice .mobile-subject-card {
  contain: layout paint !important;
  backface-visibility: hidden !important;
}

/* Dictionary popover: compact product-style card without user-audio clutter. */
html body .dictionary-popover {
  width: min(260px, calc(100vw - 24px)) !important;
  padding: 14px !important;
  border: 1px solid rgba(20, 24, 31, 0.1) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 18px 40px -26px rgba(14, 17, 23, 0.45) !important;
}

html body .dictionary-popover .dict-card-head {
  align-items: center !important;
  gap: 12px !important;
}

html body .dictionary-popover .dict-card-head > div:first-child {
  min-width: 0 !important;
  gap: 3px !important;
}

html body .dictionary-popover .dict-card-head strong {
  color: #1d1d1f !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

html body .dictionary-popover .dict-card-head span {
  color: #b27600 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

html body .dictionary-popover .dict-pron-actions {
  flex: 0 0 auto !important;
  justify-content: flex-end !important;
}

html body .dictionary-popover .dict-sound-btn {
  min-height: 32px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(246, 193, 59, 0.6) !important;
  border-radius: 999px !important;
  background: #fff8dc !important;
  color: #7a5600 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

html body .dictionary-popover .dict-sound-btn.user {
  display: none !important;
}

html body .dictionary-popover .dict-meaning {
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(20, 24, 31, 0.08) !important;
  gap: 8px !important;
}

html body .dictionary-popover .dict-meaning span {
  min-height: 24px !important;
  padding: 4px 8px !important;
  border: 1px solid rgba(246, 193, 59, 0.45) !important;
  border-radius: 999px !important;
  background: #fff8dc !important;
  color: #7a5600 !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}

html body .dictionary-popover .dict-meaning b {
  color: #1d1d1f !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

html body .dictionary-popover > p {
  display: none !important;
}

/* Order questions: drag cards directly instead of click-to-right-column sorting. */
html body #practice.practice-detail-mode .order-answer .order-drag-board {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}

html body #practice.practice-detail-mode .order-answer .order-sort-list {
  padding: 14px !important;
  border: 1px solid rgba(20, 24, 31, 0.1) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 14px 30px -26px rgba(14, 17, 23, 0.42) !important;
}

html body #practice.practice-detail-mode .order-answer .order-sort-list .order-help {
  margin: 0 0 10px !important;
  color: #667085 !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.45 !important;
}

html body #practice.practice-detail-mode .order-answer .order-block {
  min-height: 64px !important;
  padding: 12px !important;
  border: 1px solid rgba(20, 24, 31, 0.1) !important;
  border-radius: 12px !important;
  background: #fbfcfd !important;
  box-shadow: none !important;
  cursor: grab !important;
  touch-action: none !important;
  user-select: none !important;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 160ms ease !important;
}

html body #practice.practice-detail-mode .order-answer .order-block + .order-block {
  margin-top: 10px !important;
}

html body #practice.practice-detail-mode .order-answer .order-block span {
  width: 32px !important;
  height: 32px !important;
  border: 1px solid rgba(246, 193, 59, 0.5) !important;
  border-radius: 10px !important;
  background: #fff8dc !important;
  color: #9a6a00 !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

html body #practice.practice-detail-mode .order-answer .order-block strong {
  color: #1d1d1f !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.45 !important;
}

html body #practice.practice-detail-mode .order-answer .order-block:hover {
  border-color: rgba(246, 193, 59, 0.72) !important;
  background: #fffdf5 !important;
}

html body #practice.practice-detail-mode .order-answer .order-block.dragging {
  opacity: 0.82 !important;
  border-color: rgba(246, 193, 59, 0.95) !important;
  background: #fff8dc !important;
  box-shadow: 0 18px 34px -24px rgba(14, 17, 23, 0.5) !important;
  transform: scale(1.01) !important;
  cursor: grabbing !important;
}

html body.order-dragging-active {
  cursor: grabbing !important;
  user-select: none !important;
}

html body #practice.practice-detail-mode .order-answer .order-result {
  display: none !important;
}

/* ROP: use the answer-page title once, then keep the sorter light, calm, and tactile. */
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .answer-workspace {
  margin-top: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .answer-workspace > div:first-child,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .answer-hint-bar {
  display: none !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer {
  display: block !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .question-card.active-question.rop-answer-integrated {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding-bottom: 22px !important;
  overflow: visible !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .question-card.active-question.rop-answer-integrated > .order-answer {
  margin-top: 20px !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(76, 128, 114, 0.12) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .rop-workspace-card {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .rop-task-head {
  display: none !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-drag-board {
  display: block !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-sort-list {
  display: grid !important;
  gap: 11px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-sort-list .order-help {
  display: flex !important;
  min-height: 38px !important;
  margin: 0 2px 2px !important;
  padding: 0 4px 11px !important;
  align-items: center !important;
  gap: 10px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(76, 128, 114, 0.12) !important;
  border-radius: 0 !important;
  color: rgba(54, 78, 71, 0.76) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 720 !important;
  line-height: 1.45 !important;
  letter-spacing: 0.01em !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-sort-list .order-help::before {
  content: "" !important;
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  border: 1px solid rgba(25, 158, 130, 0.14) !important;
  border-radius: 10px !important;
  background-color: rgba(236, 250, 245, 0.82) !important;
  background-image:
    radial-gradient(circle at 9px 8px, rgba(20, 139, 114, 0.72) 1.25px, transparent 1.55px),
    radial-gradient(circle at 18px 8px, rgba(20, 139, 114, 0.72) 1.25px, transparent 1.55px),
    radial-gradient(circle at 9px 14px, rgba(20, 139, 114, 0.72) 1.25px, transparent 1.55px),
    radial-gradient(circle at 18px 14px, rgba(20, 139, 114, 0.72) 1.25px, transparent 1.55px),
    radial-gradient(circle at 9px 20px, rgba(20, 139, 114, 0.72) 1.25px, transparent 1.55px),
    radial-gradient(circle at 18px 20px, rgba(20, 139, 114, 0.72) 1.25px, transparent 1.55px) !important;
  background-repeat: no-repeat !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block,
html body > .order-block.rop-floating-order-block {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 16px !important;
  min-height: 72px !important;
  margin: 0 !important;
  padding: 15px 16px !important;
  align-items: center !important;
  gap: 13px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.84) !important;
  border-radius: 18px !important;
  color: #15221e !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(247, 252, 250, 0.56)),
    rgba(255, 255, 255, 0.5) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(100, 155, 141, 0.07),
    0 14px 32px -28px rgba(27, 73, 62, 0.38) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.12) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
  cursor: grab !important;
  touch-action: none !important;
  will-change: transform !important;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    opacity 140ms ease !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block + .order-block {
  margin-top: 0 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block::after,
html body > .order-block.rop-floating-order-block::after {
  content: "" !important;
  display: block !important;
  width: 14px !important;
  height: 26px !important;
  justify-self: end !important;
  border-radius: 6px !important;
  opacity: 0.62 !important;
  background-image: radial-gradient(circle, rgba(63, 101, 91, 0.64) 1.3px, transparent 1.6px) !important;
  background-position: center !important;
  background-size: 6px 6px !important;
  transition: opacity 180ms ease, transform 180ms ease !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block span,
html body > .order-block.rop-floating-order-block span {
  width: 38px !important;
  height: 38px !important;
  border: 1px solid rgba(20, 153, 124, 0.16) !important;
  border-radius: 13px !important;
  color: #14745d !important;
  background: linear-gradient(145deg, rgba(222, 247, 238, 0.94), rgba(255, 255, 255, 0.78)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 20px -18px rgba(15, 128, 102, 0.42) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block strong,
html body > .order-block.rop-floating-order-block strong {
  min-width: 0 !important;
  color: #18221f !important;
  font-size: clamp(14px, 1.2vw, 16px) !important;
  font-weight: 670 !important;
  line-height: 1.52 !important;
  letter-spacing: 0.002em !important;
}

@media (hover: hover) and (pointer: fine) {
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block:hover {
    border-color: rgba(42, 177, 145, 0.34) !important;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(241, 251, 247, 0.68)),
      rgba(255, 255, 255, 0.62) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.98),
      0 19px 38px -28px rgba(22, 112, 89, 0.46) !important;
    transform: translateY(-2px) !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block:hover::after {
    opacity: 0.92 !important;
    transform: scale(1.05) !important;
  }
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block:focus-visible {
  outline: 0 !important;
  border-color: rgba(20, 164, 135, 0.5) !important;
  box-shadow:
    0 0 0 4px rgba(27, 190, 157, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 38px -28px rgba(22, 112, 89, 0.5) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block:active {
  transform: translateY(0) scale(0.995) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block.dragging,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block.is-dragging,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block.dragging.is-floating,
html body > .order-block.rop-floating-order-block {
  opacity: 1 !important;
  margin: 0 !important;
  border-color: rgba(26, 173, 141, 0.52) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(235, 250, 245, 0.9)),
    #ffffff !important;
  box-shadow:
    0 26px 54px -26px rgba(16, 83, 67, 0.55),
    0 0 0 4px rgba(37, 191, 159, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
  cursor: grabbing !important;
  transform: translate3d(var(--order-drag-x, 0), var(--order-drag-y, 0), 0) !important;
  transform-origin: 0 0 !important;
  -webkit-font-smoothing: antialiased !important;
  backface-visibility: hidden !important;
  transition: box-shadow 120ms ease, border-color 120ms ease !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block.dragging.is-floating,
html body > .order-block.rop-floating-order-block {
  position: fixed !important;
  inset: 0 auto auto 0 !important;
  width: var(--order-drag-width) !important;
  height: var(--order-drag-height) !important;
  z-index: 1600 !important;
  pointer-events: none !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block.is-settling {
  pointer-events: none !important;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-drop-placeholder {
  min-height: 72px !important;
  border: 1px dashed rgba(25, 159, 130, 0.42) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, rgba(215, 246, 236, 0.44), rgba(255, 255, 255, 0.28)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.64),
    0 12px 28px -26px rgba(21, 116, 92, 0.42) !important;
  transition: height 160ms ease, transform 160ms ease, opacity 160ms ease !important;
}

@media (min-width: 761px) and (max-width: 1180px) {
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-sort-list {
    gap: 9px !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block,
  html body > .order-block.rop-floating-order-block {
    grid-template-columns: 34px minmax(0, 1fr) 14px !important;
    min-height: 66px !important;
    padding: 13px !important;
    gap: 11px !important;
    border-radius: 16px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block span,
  html body > .order-block.rop-floating-order-block span {
    width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
    font-size: 14px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block strong,
  html body > .order-block.rop-floating-order-block strong {
    font-size: 14px !important;
    line-height: 1.48 !important;
  }
}

@media (max-width: 760px) {
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .question-card.active-question.rop-answer-integrated {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: 18px !important;
    overflow: visible !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .question-card.active-question.rop-answer-integrated > .order-answer {
    margin-top: 16px !important;
    padding-top: 16px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-sort-list {
    gap: 9px !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-sort-list .order-help {
    min-height: 34px !important;
    padding: 0 2px 9px !important;
    gap: 8px !important;
    font-size: 11.5px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-sort-list .order-help::before {
    width: 26px !important;
    height: 26px !important;
    flex-basis: 26px !important;
    border-radius: 9px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block,
  html body > .order-block.rop-floating-order-block {
    grid-template-columns: 34px minmax(0, 1fr) 14px !important;
    min-height: 64px !important;
    padding: 12px !important;
    gap: 10px !important;
    border-radius: 16px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block span,
  html body > .order-block.rop-floating-order-block span {
    width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
    font-size: 14px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block strong,
  html body > .order-block.rop-floating-order-block strong {
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.5 !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-drop-placeholder {
    min-height: 64px !important;
    border-radius: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-block::after,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="ROP"] .order-answer .order-drop-placeholder {
    transition: none !important;
  }
}

/* Practice question browser: keep back button, search, and filters visually separated. */
html body #practice.practice-detail-mode .stage-practice .question-browser-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 9px !important;
  height: auto !important;
  min-height: 104px !important;
  max-height: none !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  overflow: visible !important;
  border-bottom: 1px solid rgba(20, 24, 31, 0.07) !important;
}

html body #practice.practice-detail-mode .stage-practice .question-finder {
  display: grid !important;
  gap: 12px !important;
  margin-top: 8px !important;
  padding-top: 4px !important;
}

html body #practice.practice-detail-mode .stage-practice #backToTypesButton {
  align-self: start !important;
  justify-self: start !important;
  margin: 0 !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  border-color: rgba(20, 24, 31, 0.12) !important;
  background: #fff !important;
  color: #20242b !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  box-shadow: 0 8px 18px rgba(20, 24, 31, 0.04) !important;
}

html body #practice.practice-detail-mode .stage-practice #backToTypesButton:hover {
  border-color: rgba(20, 24, 31, 0.22) !important;
  background: #f7f8fa !important;
  transform: translateY(-1px) !important;
}

html body #practice.practice-detail-mode .stage-practice .search-field {
  margin-top: 0 !important;
}

html body #practice.practice-detail-mode .stage-practice .question-browser-head + .question-finder .search-field {
  min-height: 34px !important;
}

html body #practice.practice-detail-mode .stage-practice .question-list-tools {
  row-gap: 8px !important;
}

/* WFD original transcript reveal: make the small utility action feel intentional. */
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] #questionText {
  display: grid !important;
  justify-items: start !important;
  gap: 12px !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] #questionText [data-reveal-question-text] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(20, 24, 31, 0.1) !important;
  border-radius: 999px !important;
  background: #111827 !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.14) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] #questionText [data-reveal-question-text]::before {
  content: "" !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: #21d39b !important;
  box-shadow: 0 0 0 4px rgba(33, 211, 155, 0.16) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] #questionText [data-reveal-question-text]:hover {
  border-color: rgba(17, 24, 39, 0.2) !important;
  background: #0b1220 !important;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.18) !important;
  transform: translateY(-1px) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] #questionText [data-reveal-question-text]:active {
  transform: translateY(0) scale(0.98) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] #questionText [data-reveal-question-text]:focus-visible {
  outline: 3px solid rgba(33, 211, 155, 0.28) !important;
  outline-offset: 3px !important;
}

/* RL transcript reveal: compact toggle, consistent with current product cards. */
html body #practice.practice-detail-mode .practice-panel:is([data-active-type="RL"], [data-active-type="SGD"]) #questionText {
  display: grid !important;
  gap: 12px !important;
}

html body #practice.practice-detail-mode .practice-panel:is([data-active-type="RL"], [data-active-type="SGD"]) #questionText .rl-transcript-toggle {
  display: grid !important;
  gap: 10px !important;
  justify-items: start !important;
}

html body #practice.practice-detail-mode .practice-panel:is([data-active-type="RL"], [data-active-type="SGD"]) #questionText [data-toggle-speech-transcript] {
  min-height: 32px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(20, 24, 31, 0.12) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #1d1d1f !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html body #practice.practice-detail-mode .practice-panel:is([data-active-type="RL"], [data-active-type="SGD"]) #questionText [data-toggle-speech-transcript][aria-expanded="true"] {
  background: #1d1d1f !important;
  border-color: #1d1d1f !important;
  color: #fff !important;
}

html body #practice.practice-detail-mode .practice-panel:is([data-active-type="RL"], [data-active-type="SGD"]) #questionText .rl-transcript-panel {
  width: 100% !important;
  padding: 14px !important;
  border: 1px solid rgba(20, 24, 31, 0.1) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 14px 30px -26px rgba(14, 17, 23, 0.4) !important;
}

html body #practice.practice-detail-mode .practice-panel:is([data-active-type="RL"], [data-active-type="SGD"]) #questionText .rl-transcript-panel[hidden] {
  display: none !important;
}

html body #practice.practice-detail-mode .practice-panel:is([data-active-type="RL"], [data-active-type="SGD"]) #questionText .rl-transcript-panel p {
  margin: 0 !important;
  color: #303642 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.7 !important;
}

/* ASQ uses the older reveal-original button; align it with the RL/SGD transcript toggle. */
html body #practice.practice-detail-mode .practice-panel[data-active-type="ASQ"] #questionText {
  display: grid !important;
  gap: 12px !important;
  justify-items: start !important;
}

html body #practice.practice-detail-mode .practice-panel[data-active-type="ASQ"] #questionText [data-reveal-question-text] {
  min-height: 32px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(20, 24, 31, 0.12) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #1d1d1f !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html body #practice.practice-detail-mode .practice-panel[data-active-type="ASQ"] #questionText [data-reveal-question-text]:hover {
  border-color: rgba(29, 29, 31, 0.22) !important;
  background: #f7f8fa !important;
}

/* Mock mobile: full-width search and no horizontal filter scrollbar. */
@media (max-width: 760px) {
  html body #mock.active-view,
  html body #mock.active-view .mock-center-layout,
  html body #mock.active-view .mock-main-column,
  html body #mock.active-view .mock-paper-workbench {
    overflow-x: hidden !important;
  }

  html body #mock.active-view .mock-paper-toolbar {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    overflow: visible !important;
  }

  html body #mock.active-view .mock-paper-toolbar .search-field,
  html body #mock.active-view .mock-paper-toolbar input,
  html body #mock.active-view #mockPaperSearchInput {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
  }

  html body #mock.active-view .mock-paper-tabs,
  html body #mock.active-view .mock-paper-filters {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  html body #mock.active-view .mock-paper-tabs::-webkit-scrollbar,
  html body #mock.active-view .mock-paper-filters::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  html body #mock.active-view .mock-paper-tabs button,
  html body #mock.active-view .mock-paper-filters button {
    width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  html body #mock.active-view .mock-paper-filters {
    grid-template-columns: 1fr !important;
  }

  html body #mock.active-view .mock-paper-filters .filter-chip {
    max-width: 100% !important;
  }
}

/* Listening text answer field: final override. */
html body #practice.practice-detail-mode .practice-panel.stage-practice:is([data-active-type="SST"], [data-active-type="WFD"]) .answer-workspace {
  display: grid !important;
  gap: 14px !important;
  margin-top: 12px !important;
  padding: 16px !important;
  border: 1px solid rgba(20, 24, 31, 0.08) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 16px 34px -30px rgba(14, 17, 23, 0.42) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice:is([data-active-type="SST"], [data-active-type="WFD"]) .answer-workspace[hidden] {
  display: grid !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice:is([data-active-type="SST"], [data-active-type="WFD"]) .text-answer {
  display: block !important;
  width: 100% !important;
  min-height: 190px !important;
  padding: 16px !important;
  border: 1px solid #d9dde3 !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: #111316 !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.65 !important;
  resize: vertical !important;
  box-sizing: border-box !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice:is([data-active-type="SST"], [data-active-type="WFD"]) .text-answer:focus {
  border-color: #111316 !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(17, 19, 22, 0.08) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice:is([data-active-type="SST"], [data-active-type="WFD"]) .we-word-status {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(219, 222, 227, 0.72) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #667085 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice:is([data-active-type="SST"], [data-active-type="WFD"]) .we-word-status strong {
  color: #111316 !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice:is([data-active-type="SST"], [data-active-type="WFD"]) .we-word-status span {
  color: #667085 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice:is([data-active-type="SST"], [data-active-type="WFD"]) .we-word-status.out-of-range {
  border-color: rgba(239, 68, 68, 0.34) !important;
  background: #fff5f5 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice:is([data-active-type="SST"], [data-active-type="WFD"]) .we-word-status.out-of-range strong,
html body #practice.practice-detail-mode .practice-panel.stage-practice:is([data-active-type="SST"], [data-active-type="WFD"]) .we-word-status.out-of-range span {
  color: #dc2626 !important;
}

/* SST / WFD text task polish: tighter answer card and pending report. */
html body #practice.practice-detail-mode .practice-panel.stage-practice:is([data-active-type="SST"], [data-active-type="WFD"]) .answer-workspace > div:first-child {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice:is([data-active-type="SST"], [data-active-type="WFD"]) .answer-workspace .eyebrow {
  margin: 0 0 4px !important;
  color: #b57900 !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice:is([data-active-type="SST"], [data-active-type="WFD"]) .answer-workspace h3 {
  margin: 0 !important;
  color: #111316 !important;
  font-size: 25px !important;
  font-weight: 950 !important;
  line-height: 1.18 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice:is([data-active-type="SST"], [data-active-type="WFD"]) .answer-hint-bar {
  margin: 2px 0 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #fff8e8 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice:is([data-active-type="SST"], [data-active-type="WFD"]) .text-answer {
  min-height: 210px !important;
  background: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

html body #practice.practice-detail-mode:is([data-active-question-type="SST"], [data-active-question-type="WFD"]) .feedback-panel:not(.has-report) {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 22px !important;
}

html body #practice.practice-detail-mode:is([data-active-question-type="SST"], [data-active-question-type="WFD"]) .feedback-panel:not(.has-report) > .eyebrow {
  margin: 0 !important;
  color: #6b7280 !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

html body #practice.practice-detail-mode:is([data-active-question-type="SST"], [data-active-question-type="WFD"]) .feedback-panel:not(.has-report) > h2 {
  margin: 12px 0 6px !important;
  font-size: 26px !important;
  line-height: 1.16 !important;
}

html body #practice.practice-detail-mode:is([data-active-question-type="SST"], [data-active-question-type="WFD"]) .feedback-panel:not(.has-report) .feedback-list {
  display: grid !important;
  gap: 12px !important;
  margin-top: 0 !important;
}

html body #practice.practice-detail-mode:is([data-active-question-type="SST"], [data-active-question-type="WFD"]) .feedback-panel:not(.has-report) .text-task-idle-card {
  display: grid !important;
  gap: 14px !important;
  min-height: 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(20, 24, 31, 0.08) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #ffffff 0%, #fffaf1 100%) !important;
  box-shadow: 0 18px 34px -30px rgba(14, 17, 23, 0.32) !important;
}

html body #practice.practice-detail-mode:is([data-active-question-type="SST"], [data-active-question-type="WFD"]) .feedback-panel:not(.has-report) .practice-idle-head {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
}

html body #practice.practice-detail-mode:is([data-active-question-type="SST"], [data-active-question-type="WFD"]) .feedback-panel:not(.has-report) .practice-idle-head > span {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: #1d1d1f !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

html body #practice.practice-detail-mode:is([data-active-question-type="SST"], [data-active-question-type="WFD"]) .feedback-panel:not(.has-report) .practice-idle-head strong {
  display: block !important;
  color: #111316 !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
}

html body #practice.practice-detail-mode:is([data-active-question-type="SST"], [data-active-question-type="WFD"]) .feedback-panel:not(.has-report) .practice-idle-head small {
  display: block !important;
  margin-top: 3px !important;
  color: #6b7280 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

html body #practice.practice-detail-mode:is([data-active-question-type="SST"], [data-active-question-type="WFD"]) .feedback-panel:not(.has-report) .text-task-idle-card p {
  margin: 0 !important;
  color: #536071 !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.65 !important;
}

html body #practice.practice-detail-mode:is([data-active-question-type="SST"], [data-active-question-type="WFD"]) .feedback-panel:not(.has-report) .practice-idle-metrics {
  display: grid !important;
  gap: 8px !important;
}

html body #practice.practice-detail-mode:is([data-active-question-type="SST"], [data-active-question-type="WFD"]) .feedback-panel:not(.has-report) .practice-idle-metrics span {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(20, 24, 31, 0.08) !important;
  border-radius: 12px !important;
  background: rgba(247, 248, 250, 0.86) !important;
  color: #586274 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

html body #practice.practice-detail-mode:is([data-active-question-type="SST"], [data-active-question-type="WFD"]) .feedback-panel:not(.has-report) .practice-idle-metrics b {
  color: #1d1d1f !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

/* Practice detail desktop layout guard: prevent the answer page from collapsing into a narrow centered strip. */
@media (min-width: 981px) {
  html body.view-practice.practice-answer-detail-active .main {
    width: 100% !important;
    max-width: none !important;
    padding: 16px 28px !important;
  }

  html body #practice.active-view.practice-detail-mode {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  html body #practice.practice-detail-mode .practice-dashboard-layout {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(760px, 1fr) 18px minmax(300px, clamp(300px, var(--practice-feedback-width, 390px), 620px)) !important;
    gap: 10px !important;
    align-items: start !important;
  }

  html body #practice.practice-detail-mode .stage-practice .practice-workbench {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns:
      minmax(190px, clamp(190px, var(--practice-list-width, 280px), 460px))
      18px
      minmax(500px, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
  }

  html body #practice.practice-detail-mode .stage-practice .answer-stage,
  html body #practice.practice-detail-mode .feedback-panel {
    width: 100% !important;
  }

  html body.is-resizing-practice,
  html body.is-resizing-practice * {
    cursor: col-resize !important;
    user-select: none !important;
  }

  html body #practice.practice-detail-mode .stage-practice .practice-resizer,
  html body #practice.practice-detail-mode .feedback-resizer {
    width: 18px !important;
    min-width: 18px !important;
    touch-action: none !important;
    cursor: col-resize !important;
    z-index: 50 !important;
  }
}

/* RA standard demo: playing state must be two centered pause bars. */
html body #practice .stage-practice .ra-demo-player #raDemoToggleButton.is-playing::before,
html body #practice.practice-detail-mode .stage-practice .ra-demo-player #raDemoToggleButton.is-playing::before,
html body #practice .stage-practice .ra-demo-player #raDemoToggleButton.is-playing::after,
html body #practice.practice-detail-mode .stage-practice .ra-demo-player #raDemoToggleButton.is-playing::after,
html body #practice .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton.is-playing::before,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton.is-playing::before,
html body #practice .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton.is-playing::after,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton.is-playing::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 4px !important;
  height: 13px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  clip-path: none !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

html body #practice .stage-practice .ra-demo-player #raDemoToggleButton.is-playing::before,
html body #practice.practice-detail-mode .stage-practice .ra-demo-player #raDemoToggleButton.is-playing::before,
html body #practice .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton.is-playing::before,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton.is-playing::before {
  transform: translate(calc(-50% - 4px), -50%) !important;
}

html body #practice .stage-practice .ra-demo-player #raDemoToggleButton.is-playing::after,
html body #practice.practice-detail-mode .stage-practice .ra-demo-player #raDemoToggleButton.is-playing::after,
html body #practice .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton.is-playing::after,
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton.is-playing::after {
  transform: translate(calc(-50% + 4px), -50%) !important;
}

/* Teacher admin mobile: match the home/question-bank spacing system. */
@media (max-width: 760px) {
  html body.view-admin .main {
    align-items: center !important;
    background: #f4f4f5 !important;
    overflow-x: hidden !important;
  }

  html body #admin.active-view {
    width: min(345px, calc(100vw - 32px)) !important;
    max-width: 345px !important;
    margin: 0 auto !important;
    padding: 14px 0 96px !important;
    background: transparent !important;
    overflow: visible !important;
  }

  html body #admin.active-view .section-heading,
  html body #admin.active-view .admin-tabs,
  html body #admin.active-view .panel,
  html body #admin.active-view .metric-card,
  html body #admin.active-view .queue-item,
  html body #admin.active-view .risk-item,
  html body #admin.active-view .task-item,
  html body #admin.active-view .admin-item,
  html body #admin.active-view .teacher-upload-zone {
    border: 1px solid rgba(219, 222, 227, 0.74) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 18px 42px -34px rgba(14, 17, 23, 0.45) !important;
  }

  html body #admin.active-view .section-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    min-height: 104px !important;
    margin: 0 0 14px !important;
    padding: 22px 18px 18px !important;
    border-radius: 22px !important;
  }

  html body #admin.active-view .section-heading .eyebrow {
    display: none !important;
  }

  html body #admin.active-view .section-heading h2 {
    margin: 0 !important;
    color: #1d1d1f !important;
    font-size: 24px !important;
    font-weight: 950 !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
  }

  html body #admin.active-view #resetQuestionFormButton {
    justify-self: start !important;
    min-height: 34px !important;
    padding: 0 13px !important;
    border-radius: 999px !important;
    border-color: #e1e4ea !important;
    background: #fff !important;
    color: #1d1d1f !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  html body #admin.active-view .admin-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 0 14px !important;
    padding: 12px !important;
    border-radius: 22px !important;
    overflow: visible !important;
    scrollbar-width: none !important;
  }

  html body #admin.active-view .admin-tabs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  html body #admin.active-view .admin-tab {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 36px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    border-color: #e1e4ea !important;
    background: #f8f8fa !important;
    color: #4f5662 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html body #admin.active-view .admin-tab.active {
    border-color: #1d1d1f !important;
    background: #1d1d1f !important;
    color: #fff !important;
    box-shadow: 0 12px 22px -18px rgba(0, 0, 0, 0.65) !important;
  }

  html body #admin.active-view .active-admin-section,
  html body #admin.active-view .active-admin-section.admin-grid,
  html body #admin.active-view .admin-workbench,
  html body #admin.active-view .admin-grid,
  html body #admin.active-view .queue-list,
  html body #admin.active-view .risk-list,
  html body #admin.active-view .task-list,
  html body #admin.active-view .admin-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  html body #admin.active-view .metrics-grid.admin-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 0 14px !important;
  }

  html body #admin.active-view .metric-card {
    min-height: 92px !important;
    padding: 15px !important;
    border-radius: 18px !important;
    align-content: space-between !important;
    background: #fff !important;
  }

  html body #admin.active-view .metric-card span,
  html body #admin.active-view .metric-card small {
    color: #667085 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.35 !important;
  }

  html body #admin.active-view .metric-card strong {
    color: #1d1d1f !important;
    font-size: 24px !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
  }

  html body #admin.active-view .admin-workbench {
    margin-bottom: 14px !important;
  }

  html body #admin.active-view .panel,
  html body #admin.active-view .crm-panel,
  html body #admin.active-view .admin-todo-panel {
    grid-column: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 16px !important;
    border-radius: 22px !important;
    box-sizing: border-box !important;
  }

  html body #admin.active-view .panel-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    margin: 0 0 12px !important;
  }

  html body #admin.active-view .panel-heading .eyebrow,
  html body #admin.active-view .panel-heading p:not(.eyebrow) {
    display: none !important;
  }

  html body #admin.active-view .panel h2,
  html body #admin.active-view .crm-panel > h2,
  html body #admin.active-view .panel-heading h2 {
    margin: 0 !important;
    color: #1d1d1f !important;
    font-size: 20px !important;
    font-weight: 950 !important;
    line-height: 1.2 !important;
  }

  html body #admin.active-view .panel-heading button,
  html body #admin.active-view .admin-item-actions button,
  html body #admin.active-view .quick-review-actions button,
  html body #admin.active-view .teacher-upload-zone button,
  html body #admin.active-view .teacher-file-picker {
    min-height: 34px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  html body #admin.active-view .queue-item,
  html body #admin.active-view .risk-item,
  html body #admin.active-view .task-item,
  html body #admin.active-view .admin-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    min-width: 0 !important;
    padding: 14px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
  }

  html body #admin.active-view .queue-item span,
  html body #admin.active-view .task-item strong,
  html body #admin.active-view .risk-item span {
    width: fit-content !important;
    min-height: 26px !important;
    padding: 0 10px !important;
    border: 1px solid rgba(246, 197, 66, 0.42) !important;
    border-radius: 999px !important;
    background: #fff8df !important;
    color: #8a6100 !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
  }

  html body #admin.active-view .queue-item strong,
  html body #admin.active-view .risk-item strong,
  html body #admin.active-view .task-item h3,
  html body #admin.active-view .admin-item strong {
    display: block !important;
    margin: 0 !important;
    color: #1d1d1f !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    line-height: 1.35 !important;
  }

  html body #admin.active-view .queue-item p,
  html body #admin.active-view .risk-item p,
  html body #admin.active-view .task-item p,
  html body #admin.active-view .admin-item span,
  html body #admin.active-view .empty-state {
    grid-column: auto !important;
    margin: 0 !important;
    color: #667085 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere !important;
  }

  html body #admin.active-view .queue-item button {
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: start !important;
  }

  html body #admin.active-view .admin-item-actions,
  html body #admin.active-view .quick-review-actions,
  html body #admin.active-view .review-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  html body #admin.active-view .admin-item-actions button,
  html body #admin.active-view .quick-review-actions button,
  html body #admin.active-view .review-form > button,
  html body #admin.active-view .teacher-upload-zone button,
  html body #admin.active-view .teacher-file-picker {
    width: 100% !important;
  }

  html body #admin.active-view input,
  html body #admin.active-view textarea,
  html body #admin.active-view select {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
  }

  html body #admin.active-view .teacher-upload-zone {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    margin: 0 0 12px !important;
    padding: 14px !important;
    border-style: solid !important;
    border-radius: 18px !important;
    background: #fff !important;
  }

  html body #admin.active-view .teacher-upload-zone strong {
    margin: 0 !important;
    color: #1d1d1f !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    line-height: 1.35 !important;
  }

  html body #admin.active-view .teacher-upload-zone p {
    margin: 4px 0 0 !important;
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  html body #admin.active-view .teacher-upload-preview {
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 10px 12px !important;
    border: 1px solid #eef0f3 !important;
    border-radius: 14px !important;
    background: #f8f8fa !important;
    color: #667085 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
  }

  html body #admin.active-view .bulk-preview-table,
  html body #admin.active-view .admin-question-group-list,
  html body #admin.active-view .admin-question-type-group-list {
    max-height: none !important;
    overflow: visible !important;
  }

  html body #admin.active-view .bulk-preview-table article,
  html body #admin.active-view .admin-question-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  html body #admin.active-view .admin-editor-drawer {
    align-items: stretch !important;
    justify-content: center !important;
    padding: 10px !important;
  }

  html body #admin.active-view .admin-editor {
    width: min(345px, calc(100vw - 20px)) !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 16px !important;
    border-radius: 22px !important;
  }

  html body #admin.active-view .question-upload-flow,
  html body #admin.active-view .question-form,
  html body #admin.active-view .upload-type-picker,
  html body #admin.active-view .upload-type-group > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
}

/* Mock paper action button: black only after the paper is clicked. */
html body #mock.active-view .mock-paper-card {
  grid-template-columns: minmax(0, 1fr) auto !important;
  column-gap: 14px !important;
}

html body #mock.active-view .mock-paper-card .mock-paper-copy {
  min-width: 0 !important;
  justify-self: stretch !important;
}

html body #mock.active-view .mock-paper-card > i {
  display: grid !important;
  place-items: center !important;
  justify-self: end !important;
  grid-column: 2 !important;
  min-width: 58px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  border: 1px solid #e1e4ea !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #1d1d1f !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

html body #mock.active-view .mock-paper-card.active > i {
  border-color: #e1e4ea !important;
  background: #fff !important;
  color: #1d1d1f !important;
}

html body #mock.active-view .mock-paper-card.is-action-active > i,
html body #mock.active-view .mock-paper-card.is-action-active.active > i {
  border-color: #1d1d1f !important;
  background: #1d1d1f !important;
  color: #fff !important;
}

html body #mock.active-view .mock-paper-filters {
  display: none !important;
}

/* Mock desktop cleanup: one clear workbench, no duplicate current-session block before exam starts. */
@media (min-width: 761px) {
  html body #mock.active-view:not(.mock-exam-focus) .mock-session-area {
    display: none !important;
  }

  html body #mock.active-view.mock-exam-focus .mock-center-layout {
    display: none !important;
  }

  html body #mock.active-view .mock-center-layout {
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 20px !important;
  }

  html body #mock.active-view .mock-paper-workbench,
  html body #mock.active-view .mock-flow-panel,
  html body #mock.active-view .mock-command-center,
  html body #mock.active-view .mock-report-panel {
    border-radius: 24px !important;
    padding: 22px !important;
  }

  html body #mock.active-view .mock-paper-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    margin-top: 18px !important;
  }

  html body #mock.active-view .mock-paper-card {
    min-height: 96px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    padding: 18px !important;
    border-radius: 16px !important;
  }

  html body #mock.active-view .mock-paper-card .mock-paper-ribbon,
  html body #mock.active-view .mock-paper-card .mock-paper-index,
  html body #mock.active-view .mock-paper-card .mock-paper-meta,
  html body #mock.active-view .mock-paper-card .mock-paper-copy em {
    display: none !important;
  }

  html body #mock.active-view .mock-paper-card .mock-paper-copy {
    display: grid !important;
    gap: 6px !important;
  }

  html body #mock.active-view .mock-paper-card .mock-paper-copy strong {
    font-size: 18px !important;
    line-height: 24px !important;
  }

  html body #mock.active-view .mock-paper-card .mock-paper-copy p {
    max-width: 62ch !important;
    margin: 0 !important;
    color: #59606c !important;
    font-size: 13px !important;
    line-height: 18px !important;
  }

  html body #mock.active-view .mock-paper-card .mock-paper-copy small {
    width: max-content !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    background: #fff6d8 !important;
    color: #8a6400 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
  }

  html body #mock.active-view .mock-flow-panel .mock-task-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  html body #mock.active-view .mock-flow-panel .mock-task {
    min-height: 92px !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px !important;
    border-radius: 16px !important;
  }

  html body #mock.active-view .mock-flow-panel .mock-task-index {
    font-size: 18px !important;
    line-height: 1 !important;
    writing-mode: horizontal-tb !important;
  }

  html body #mock.active-view .mock-flow-panel .mock-task strong,
  html body #mock.active-view .mock-flow-panel .mock-task small {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
  }

  html body #mock.active-view .mock-flow-panel .mock-task small {
    margin-top: 5px !important;
    color: #6f7480 !important;
    font-size: 12px !important;
    line-height: 17px !important;
  }

  html body #mock.active-view .mock-right-column {
    gap: 18px !important;
  }

  html body #mock.active-view .mock-command-center .mock-status-card,
  html body #mock.active-view .mock-report-panel {
    box-shadow: 0 16px 44px rgba(29, 29, 31, 0.06) !important;
  }
}

/* HIW: start first, then tap words in the transcript to mark mistakes. */
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] #questionText {
  display: block !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-practice-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 0 0 14px !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-start-button {
  min-width: 98px !important;
  height: 34px !important;
  padding: 0 18px !important;
  border: 1px solid #1d1d1f !important;
  border-radius: 999px !important;
  background: #1d1d1f !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  box-shadow: 0 10px 22px rgba(29, 29, 31, 0.14) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-start-button.is-started {
  border-color: #e2b33b !important;
  background: #fff8e6 !important;
  color: #1d1d1f !important;
  box-shadow: none !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-text-line {
  display: block !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-session-strip {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 16px !important;
  padding: 10px 12px !important;
  border: 1px solid #e7e2d8 !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #242424 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  box-shadow: 0 10px 22px rgba(16, 17, 20, 0.05) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-session-strip b {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-session-strip b::before {
  content: "" !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: #b8bdc7 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-session-strip.is-live b::before {
  background: #10a46f !important;
  box-shadow: 0 0 0 4px rgba(16, 164, 111, 0.12) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-session-strip span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 7px 9px !important;
  border-radius: 999px !important;
  background: #f4f5f7 !important;
  color: #626873 !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-session-strip strong {
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-word-select {
  display: inline !important;
  margin: 0 !important;
  padding: 1px 2px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  text-align: inherit !important;
  cursor: default !important;
  box-shadow: none !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-word-select.is-enabled {
  cursor: pointer !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-word-select.is-enabled:hover {
  background: #fff1be !important;
  box-shadow: inset 0 -2px 0 rgba(240, 180, 41, 0.46) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-word-select.selected {
  background: #ffe19a !important;
  color: #1d1d1f !important;
  box-shadow: inset 0 -2px 0 #f0b429 !important;
}

html body .hiw-word-select.selected {
  background: #ffe19a !important;
  background-color: #ffe19a !important;
  color: #1d1d1f !important;
  box-shadow: inset 0 -2px 0 #f0b429 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-word-select.is-correct,
html body .hiw-word-select.is-correct {
  background: #dff7ea !important;
  background-color: #dff7ea !important;
  color: #087443 !important;
  box-shadow: inset 0 -2px 0 #20b26b !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-word-select.is-wrong,
html body .hiw-word-select.is-wrong {
  background: #ffe4db !important;
  background-color: #ffe4db !important;
  color: #9b2c0f !important;
  box-shadow: inset 0 -2px 0 #f06a3a !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="HIW"] .hiw-word-select.is-missed,
html body .hiw-word-select.is-missed {
  background: #ffe0dc !important;
  background-color: #ffe0dc !important;
  color: #8f1f17 !important;
  box-shadow: inset 0 -2px 0 #e5483f !important;
}

html body #practice.practice-detail-mode[data-active-question-type="HIW"] .feedback-panel {
  padding-top: 18px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="HIW"] .feedback-panel::before,
html body #practice.practice-detail-mode[data-active-question-type="HIW"] .feedback-panel::after {
  display: none !important;
  content: none !important;
}

html body #practice.practice-detail-mode[data-active-question-type="HIW"] .feedback-panel > h2 {
  margin: 8px 0 12px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="HIW"] .feedback-panel.has-report > h2 {
  display: none !important;
}

html body #practice.practice-detail-mode[data-active-question-type="HIW"] .feedback-panel.has-report .feedback-list {
  margin-top: 0 !important;
}

html body #practice.practice-detail-mode[data-active-question-type="HIW"] .feedback-panel.hiw-pending-mode:not(.has-report) {
  padding-top: 18px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="HIW"] .feedback-panel.hiw-pending-mode:not(.has-report) > .score-ring,
html body #practice.practice-detail-mode[data-active-question-type="HIW"] .feedback-panel.hiw-pending-mode:not(.has-report) > .ai-breakdown {
  display: none !important;
}

html body #practice.practice-detail-mode[data-active-question-type="HIW"] .feedback-panel.hiw-pending-mode:not(.has-report) > h2 {
  margin: 8px 0 12px !important;
  color: #15171a !important;
  font-size: 22px !important;
  line-height: 1.18 !important;
}

html body #practice.practice-detail-mode[data-active-question-type="HIW"] .feedback-panel.hiw-pending-mode:not(.has-report) .feedback-list {
  margin-top: 0 !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-card {
  display: grid !important;
  gap: 12px !important;
  padding: 16px !important;
  border: 1px solid #ece8df !important;
  border-radius: 18px !important;
  background: #fbfaf7 !important;
  box-shadow: 0 16px 34px rgba(16, 17, 20, 0.07) !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-head span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 26px !important;
  padding: 0 9px !important;
  border-radius: 999px !important;
  background: #111827 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-head strong {
  color: #15171a !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-count {
  display: flex !important;
  align-items: baseline !important;
  gap: 7px !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-count b {
  color: #101114 !important;
  font-size: 42px !important;
  line-height: 0.95 !important;
  font-weight: 950 !important;
  font-variant-numeric: tabular-nums !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-count span {
  color: #68635b !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-meter {
  height: 8px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #ebe7df !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-meter i {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: #111827 !important;
  transition: width 180ms ease !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-words,
html body #practice.practice-detail-mode .feedback-panel .hiw-pending-note {
  padding: 12px !important;
  border: 1px solid #ece8df !important;
  border-radius: 14px !important;
  background: #fff !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-words > div {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 9px !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-words strong,
html body #practice.practice-detail-mode .feedback-panel .hiw-pending-note strong {
  color: #15171a !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-words small {
  color: #77736a !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-words p {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-words p span,
html body #practice.practice-detail-mode .feedback-panel .hiw-pending-words p em {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: #fff0b8 !important;
  color: #6f4b00 !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-words p em {
  background: #f0eee8 !important;
  color: #77736a !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-note {
  display: grid !important;
  gap: 5px !important;
  background: #111827 !important;
  border-color: #111827 !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-note strong {
  color: #fff !important;
}

html body #practice.practice-detail-mode .feedback-panel .hiw-pending-note span {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  line-height: 1.55 !important;
}

html body .feedback-panel .hiw-report-card {
  display: grid !important;
  gap: 10px !important;
  padding: 0 !important;
}

html body .feedback-panel .hiw-report-hero {
  padding: 18px !important;
  border-radius: 18px !important;
  background: #101114 !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(16, 17, 20, 0.14) !important;
}

html body .feedback-panel .hiw-report-hero span,
html body .feedback-panel .hiw-report-hero small {
  display: block !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

html body .feedback-panel .hiw-report-hero strong {
  display: block !important;
  margin: 6px 0 2px !important;
  font-size: 46px !important;
  line-height: 0.95 !important;
  font-weight: 950 !important;
}

html body .feedback-panel .hiw-report-stats {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
}

html body .feedback-panel .hiw-report-stats div,
html body .feedback-panel .hiw-report-section,
html body .feedback-panel .hiw-report-advice {
  border: 1px solid #ece8df !important;
  border-radius: 14px !important;
  background: #fbfaf7 !important;
}

html body .feedback-panel .hiw-report-stats div {
  min-width: 0 !important;
  padding: 12px 8px !important;
  text-align: center !important;
}

html body .feedback-panel .hiw-report-stats strong {
  display: block !important;
  color: #101114 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
}

html body .feedback-panel .hiw-report-stats span,
html body .feedback-panel .hiw-report-label span,
html body .feedback-panel .hiw-report-label b {
  color: #77736a !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

html body .feedback-panel .hiw-report-section,
html body .feedback-panel .hiw-report-advice {
  padding: 13px !important;
}

html body .feedback-panel .hiw-report-label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 9px !important;
}

html body .feedback-panel .hiw-report-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

html body .feedback-panel .hiw-report-chip,
html body .feedback-panel .hiw-report-empty {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
}

html body .feedback-panel .hiw-report-chip.is-hit {
  background: #e7f8ef !important;
  color: #087443 !important;
}

html body .feedback-panel .hiw-report-chip.is-wrong {
  background: #ffe9df !important;
  color: #a33d12 !important;
}

html body .feedback-panel .hiw-report-chip.is-answer {
  background: #fff0b8 !important;
  color: #6f4b00 !important;
}

html body .feedback-panel .hiw-report-empty {
  background: #f0eee8 !important;
  color: #77736a !important;
}

html body .feedback-panel .hiw-report-advice strong {
  display: block !important;
  margin-bottom: 5px !important;
  color: #101114 !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

html body .feedback-panel .hiw-report-advice p {
  margin: 0 !important;
  color: #5f5b53 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

/* Question audio button: playing state is a centered pause icon. */
html body #practice.practice-detail-mode .stage-practice .audio-play-button {
  position: relative !important;
  overflow: hidden !important;
  color: transparent !important;
  font-size: 0 !important;
}

html body #practice.practice-detail-mode .stage-practice .audio-play-button::before {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 55% !important;
  width: 10px !important;
  height: 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  clip-path: polygon(0 0, 100% 50%, 0 100%) !important;
  transform: translate(-50%, -50%) !important;
  box-shadow: none !important;
}

html body #practice.practice-detail-mode .stage-practice .audio-play-button::after {
  content: none !important;
}

html body #practice.practice-detail-mode .stage-practice .audio-play-button.is-playing::before,
html body #practice.practice-detail-mode .stage-practice .audio-play-button.is-playing::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  width: 4px !important;
  height: 13px !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: #fff !important;
  clip-path: none !important;
  transform: translate(-50%, -50%) !important;
  box-shadow: none !important;
}

html body #practice.practice-detail-mode .stage-practice .audio-play-button.is-playing::before {
  left: calc(50% - 4px) !important;
}

html body #practice.practice-detail-mode .stage-practice .audio-play-button.is-playing::after {
  left: calc(50% + 4px) !important;
}

/* Question audio progress: bind the visible bar to real playback time. */
html body #practice.practice-detail-mode .stage-practice .audio-prompt .audio-track {
  position: relative !important;
  height: 8px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #d9dee6 !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.03) !important;
}

html body #practice.practice-detail-mode .stage-practice .audio-prompt .audio-track span {
  display: none !important;
  animation: none !important;
}

html body #practice.practice-detail-mode .stage-practice .audio-prompt .audio-track i {
  display: block !important;
  width: var(--audio-prompt-progress, 0%) !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #101114 0%, #2b2e34 100%) !important;
  transition: width 0.12s linear !important;
}

html body [data-discussion-tab="teacher"] {
  display: none !important;
}

/* Teacher mobile final alignment: same canvas, spacing, and card language as Home/Mock. */
@media (max-width: 760px) {
  html body.view-admin,
  html body.view-admin .app-shell,
  html body.view-admin .main {
    background: #f4f4f5 !important;
    overflow-x: hidden !important;
  }

  html body.view-admin .main {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 0 calc(var(--mobile-tabbar-height, 76px) + 14px) !important;
  }

  html body #admin.active-view {
    width: min(430px, calc(100vw - 28px)) !important;
    max-width: min(430px, calc(100vw - 28px)) !important;
    margin: 0 auto !important;
    padding: 12px 0 calc(var(--mobile-tabbar-height, 76px) + 20px) !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  html body #admin.active-view .section-heading,
  html body #admin.active-view .admin-tabs,
  html body #admin.active-view .panel,
  html body #admin.active-view .metric-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border: 1px solid rgba(219, 222, 227, 0.74) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.075) !important;
    box-sizing: border-box !important;
  }

  html body #admin.active-view .section-heading {
    min-height: 92px !important;
    padding: 20px 18px !important;
    justify-content: center !important;
  }

  html body #admin.active-view .section-heading h1,
  html body #admin.active-view .section-heading h2 {
    font-size: 22px !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
  }

  html body #admin.active-view .section-heading p {
    max-width: 220px !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
  }

  html body #admin.active-view .admin-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 12px !important;
  }

  html body #admin.active-view .admin-tabs button {
    min-width: 0 !important;
    height: 32px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  html body #admin.active-view .metrics-grid,
  html body #admin.active-view .admin-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
  }

  html body #admin.active-view .metric-card {
    min-height: 72px !important;
    padding: 14px !important;
  }

  html body #admin.active-view .admin-workbench,
  html body #admin.active-view .active-admin-section,
  html body #admin.active-view .teacher-dashboard-grid {
    display: grid !important;
    gap: 14px !important;
    width: 100% !important;
  }

  html body #admin.active-view .panel {
    padding: 16px 14px !important;
  }

  html body #admin.active-view .panel h2,
  html body #admin.active-view .panel h3 {
    font-size: 20px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
  }

  html body #admin.active-view .queue-list,
  html body #admin.active-view .risk-list,
  html body #admin.active-view .task-list {
    display: grid !important;
    gap: 10px !important;
  }

  html body #admin.active-view .queue-item,
  html body #admin.active-view .risk-item,
  html body #admin.active-view .task-item,
  html body #admin.active-view .admin-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px 12px !important;
    width: 100% !important;
    min-height: 76px !important;
    padding: 12px !important;
    border: 1px solid rgba(219, 222, 227, 0.82) !important;
    border-radius: 14px !important;
    background: #fbfbfc !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  html body #admin.active-view .queue-item p,
  html body #admin.active-view .risk-item p,
  html body #admin.active-view .task-item p,
  html body #admin.active-view .admin-item p {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #667085 !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere !important;
  }

  html body #admin.active-view .queue-item button,
  html body #admin.active-view .risk-item button,
  html body #admin.active-view .task-item button,
  html body #admin.active-view .admin-item button {
    justify-self: end !important;
    min-width: 58px !important;
    height: 30px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }
}

/* Practice desktop action bar: do not stretch a small button group across the card. */
@media (min-width: 761px) {
  html body #practice.practice-detail-mode .stage-practice .recorder:not(.recording) {
    display: inline-block !important;
    width: fit-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 12px !important;
  }

  html body #practice.practice-detail-mode .stage-practice .recorder:not(.recording) .recorder-actions {
    display: inline-flex !important;
    width: fit-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 8px !important;
  }

  html body #practice.practice-detail-mode .stage-practice .recorder:not(.recording) .recorder-actions button {
    width: auto !important;
    min-width: 74px !important;
    min-height: 34px !important;
    padding: 0 14px !important;
  }
}

/* Feedback idle state: tighter pending-report layout before scoring is generated. */
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) > h2 {
  margin: 18px 0 14px !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-list {
  margin-top: 0 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .speech-idle-stack {
  gap: 8px !important;
  margin-top: 0 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-idle-card,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-waiting-context {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-idle-card {
  min-height: 0 !important;
  padding: 8px 0 10px !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-idle-card .ai-report-illustration {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  transform: translateY(-6px) !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-idle-card h3 {
  margin-top: -4px !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-idle-card p {
  max-width: 28em !important;
  margin-top: 8px !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-waiting-context {
  padding: 4px 0 0 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-waiting-context .eyebrow {
  margin: 0 0 12px !important;
  color: #1d1d1f !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .practice-step-list {
  gap: 12px !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .practice-step-list span {
  gap: 7px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .practice-step-list strong {
  font-size: 14px !important;
  line-height: 1.35 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .practice-step-list small {
  font-size: 13px !important;
  line-height: 1.45 !important;
}

/* Mock desktop final reset: keep the mobile simplification out of desktop. */
@media (min-width: 761px) {
  html body #mock.active-view {
    width: 100% !important;
    max-width: none !important;
    padding: clamp(24px, 3vw, 44px) clamp(40px, 6vw, 88px) !important;
  }

  html body #mock.active-view .mock-page-head,
  html body #mock.active-view .mock-center-layout {
    width: min(1180px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body #mock.active-view .mock-page-head {
    min-height: 132px !important;
    margin-bottom: 22px !important;
    padding: 30px 34px !important;
    border-radius: 28px !important;
  }

  html body #mock.active-view .mock-center-layout {
    display: grid !important;
    grid-template-columns: minmax(680px, 1fr) minmax(320px, 340px) !important;
    gap: 22px !important;
    align-items: start !important;
  }

  html body #mock.active-view .mock-main-column,
  html body #mock.active-view .mock-right-column {
    gap: 18px !important;
  }

  html body #mock.active-view .mock-paper-workbench,
  html body #mock.active-view .mock-flow-panel,
  html body #mock.active-view .mock-command-center,
  html body #mock.active-view .mock-report-panel {
    padding: 24px !important;
    border-radius: 28px !important;
  }

  html body #mock.active-view .mock-paper-toolbar {
    display: grid !important;
    grid-template-columns: minmax(320px, 420px) auto !important;
    align-items: center !important;
    gap: 16px !important;
  }

  html body #mock.active-view .mock-paper-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    margin-top: 20px !important;
  }

  html body #mock.active-view .mock-paper-card {
    min-height: 120px !important;
    display: grid !important;
    grid-template-columns: 70px minmax(0, 1fr) minmax(120px, auto) auto !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 18px !important;
    border-radius: 18px !important;
  }

  html body #mock.active-view .mock-paper-card .mock-paper-ribbon,
  html body #mock.active-view .mock-paper-card .mock-paper-index,
  html body #mock.active-view .mock-paper-card .mock-paper-meta,
  html body #mock.active-view .mock-paper-card .mock-paper-copy em,
  html body #mock.active-view .mock-paper-card .mock-paper-copy p,
  html body #mock.active-view .mock-paper-card .mock-paper-copy small {
    display: revert !important;
  }

  html body #mock.active-view .mock-paper-card .mock-paper-ribbon {
    grid-column: 1 !important;
    justify-self: start !important;
  }

  html body #mock.active-view .mock-paper-card .mock-paper-index {
    grid-column: 1 !important;
    justify-self: start !important;
    align-self: center !important;
  }

  html body #mock.active-view .mock-paper-card .mock-paper-copy {
    display: block !important;
    grid-column: 2 !important;
    min-width: 0 !important;
  }

  html body #mock.active-view .mock-paper-card .mock-paper-copy strong {
    display: block !important;
    margin-bottom: 5px !important;
    font-size: 17px !important;
    line-height: 24px !important;
  }

  html body #mock.active-view .mock-paper-card .mock-paper-copy em {
    display: inline-block !important;
    margin-right: 6px !important;
    color: #8a6400 !important;
    font-size: 11px !important;
    font-style: normal !important;
    font-weight: 900 !important;
  }

  html body #mock.active-view .mock-paper-card .mock-paper-copy p {
    max-width: 62ch !important;
    margin: 4px 0 6px !important;
    color: #59606c !important;
    font-size: 13px !important;
    line-height: 18px !important;
  }

  html body #mock.active-view .mock-paper-card .mock-paper-copy small {
    display: inline-flex !important;
    width: auto !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    background: #fff6d8 !important;
    color: #8a6400 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
  }

  html body #mock.active-view .mock-paper-card .mock-paper-meta {
    grid-column: 3 !important;
    display: grid !important;
    gap: 5px !important;
    justify-self: end !important;
    text-align: right !important;
    color: #59606c !important;
    font-size: 12px !important;
    line-height: 16px !important;
  }

  html body #mock.active-view .mock-paper-card > i {
    grid-column: 4 !important;
    min-width: 64px !important;
    min-height: 34px !important;
  }

  html body #mock.active-view .mock-flow-panel .mock-task-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Low-visibility scrollbars: keep scrolling usable without heavy visual rails. */
html body {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(29, 29, 31, 0.24) transparent !important;
}

html body::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

html body::-webkit-scrollbar-track {
  background: transparent !important;
}

html body::-webkit-scrollbar-thumb {
  border: 3px solid transparent !important;
  border-radius: 999px !important;
  background: rgba(29, 29, 31, 0.22) !important;
  background-clip: content-box !important;
}

html body::-webkit-scrollbar-thumb:hover {
  background: rgba(29, 29, 31, 0.34) !important;
  background-clip: content-box !important;
}

html body #practice.practice-detail-mode .feedback-panel,
html body #practice.practice-detail-mode .feedback-panel.reading-report-mode,
html body #practice.practice-detail-mode .feedback-panel.speech-report-mode {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(29, 29, 31, 0.18) transparent !important;
}

html body #practice.practice-detail-mode .feedback-panel::-webkit-scrollbar,
html body #practice.practice-detail-mode .feedback-panel.reading-report-mode::-webkit-scrollbar,
html body #practice.practice-detail-mode .feedback-panel.speech-report-mode::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

html body #practice.practice-detail-mode .feedback-panel::-webkit-scrollbar-track,
html body #practice.practice-detail-mode .feedback-panel.reading-report-mode::-webkit-scrollbar-track,
html body #practice.practice-detail-mode .feedback-panel.speech-report-mode::-webkit-scrollbar-track {
  background: transparent !important;
}

html body #practice.practice-detail-mode .feedback-panel::-webkit-scrollbar-thumb,
html body #practice.practice-detail-mode .feedback-panel.reading-report-mode::-webkit-scrollbar-thumb,
html body #practice.practice-detail-mode .feedback-panel.speech-report-mode::-webkit-scrollbar-thumb {
  border: 3px solid transparent !important;
  border-radius: 999px !important;
  background: rgba(29, 29, 31, 0.16) !important;
  background-clip: content-box !important;
}

html body #practice.practice-detail-mode .feedback-panel::-webkit-scrollbar-thumb:hover,
html body #practice.practice-detail-mode .feedback-panel.reading-report-mode::-webkit-scrollbar-thumb:hover,
html body #practice.practice-detail-mode .feedback-panel.speech-report-mode::-webkit-scrollbar-thumb:hover {
  background: rgba(29, 29, 31, 0.28) !important;
  background-clip: content-box !important;
}

/* Desktop question-bank cards: the practiced/total count exists in the DOM but
   the base stylesheet hides this mobile-named element outside mobile. */
@media (min-width: 761px) {
  html body #practice.active-view:not(.practice-detail-mode) .figma-type-card,
  html body #practice:not(.practice-detail-mode) .figma-type-card {
    position: relative !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .figma-type-card .mobile-type-meta,
  html body #practice:not(.practice-detail-mode) .figma-type-card .mobile-type-meta {
    display: inline-flex !important;
    position: absolute !important;
    top: 18px !important;
    right: 16px !important;
    z-index: 2 !important;
    min-width: 46px !important;
    height: 24px !important;
    padding: 0 8px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(29, 29, 31, 0.08) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.82) !important;
    color: #4f5662 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    box-shadow: 0 8px 18px rgba(29, 29, 31, 0.05) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: none !important;
  }
}

/* L-FIB: answer directly inside the question text and use compact objective feedback. */
html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .active-question #questionText {
  line-height: 1.85 !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .listening-fib-question {
  display: inline !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .listening-fib-input {
  width: clamp(72px, 12vw, 132px) !important;
  height: 34px !important;
  margin: 0 5px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(29, 29, 31, 0.16) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #1d1d1f !important;
  font: inherit !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-align: center !important;
  vertical-align: baseline !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 18px rgba(29, 29, 31, 0.04) !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .listening-fib-input:disabled {
  cursor: not-allowed !important;
  opacity: 0.72 !important;
  background: #f3f4f6 !important;
  color: #8b94a1 !important;
  box-shadow: none !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .listening-fib-input:focus {
  outline: none !important;
  border-color: rgba(0, 156, 107, 0.65) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(0, 156, 107, 0.12), 0 10px 22px rgba(29, 29, 31, 0.06) !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .recorder-actions .lifib-start-control {
  min-width: 92px !important;
  height: 34px !important;
  padding: 0 16px !important;
  border: 1px solid #111827 !important;
  border-radius: 999px !important;
  background: #111827 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.14) !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .recorder-actions .lifib-start-control.is-started {
  border-color: rgba(0, 156, 107, 0.22) !important;
  background: #eafbf4 !important;
  color: #087443 !important;
  box-shadow: none !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .recorder-actions #submitButton:not(:disabled) {
  border-color: #111827 !important;
  background: #111827 !important;
  color: #fff !important;
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.14) !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .answer-workspace[hidden] {
  display: none !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .feedback-panel:not(.has-report) {
  align-content: start !important;
  gap: 12px !important;
  padding-top: 24px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .feedback-panel:not(.has-report) > h2 {
  margin: 10px 0 4px !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .feedback-panel:not(.has-report) .score-ring,
html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .feedback-panel:not(.has-report) .ai-breakdown,
html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .feedback-panel:not(.has-report) .solution-panel,
html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .feedback-panel:not(.has-report) .action-plan-list {
  display: none !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .feedback-panel:not(.has-report) .feedback-list {
  margin-top: 0 !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-check-card {
  gap: 14px !important;
  padding: 18px !important;
  border: 1px solid rgba(29, 29, 31, 0.1) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, #ffffff 0%, #f7faf9 100%) !important;
  box-shadow: 0 16px 32px rgba(29, 29, 31, 0.06) !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-check-head {
  align-items: center !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-check-card p {
  margin: 0 !important;
  color: #4f5662 !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-check-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-check-grid span {
  display: grid !important;
  gap: 5px !important;
  min-height: 64px !important;
  padding: 12px !important;
  border: 1px solid rgba(29, 29, 31, 0.08) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-check-grid b {
  color: #1d1d1f !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-check-grid small,
html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-check-note span {
  color: #667085 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-check-note {
  display: grid !important;
  gap: 6px !important;
  padding: 12px !important;
  border-radius: 12px !important;
  background: rgba(0, 156, 107, 0.08) !important;
  color: #078f63 !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-check-note strong {
  color: #078f63 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-card {
  display: grid !important;
  gap: 12px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-summary {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-summary div {
  display: grid !important;
  gap: 6px !important;
  min-height: 76px !important;
  padding: 14px !important;
  border-radius: 14px !important;
  background: #f7faf9 !important;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.08) !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-summary strong {
  color: #1d1d1f !important;
  font-size: 26px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-summary span,
html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-copy p,
html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-row small {
  color: #667085 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-copy {
  padding: 14px !important;
  border-radius: 14px !important;
  background: rgba(0, 156, 107, 0.08) !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-copy h3 {
  margin: 0 0 6px !important;
  color: #1d1d1f !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-copy p {
  margin: 0 !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-list {
  display: grid !important;
  gap: 8px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-row {
  display: grid !important;
  grid-template-columns: 30px 1fr 24px !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.08) !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-row > span,
html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-row > b {
  display: inline-flex !important;
  width: 24px !important;
  height: 24px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: #1d1d1f !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-row strong {
  display: block !important;
  color: #1d1d1f !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-row.is-correct {
  box-shadow: inset 0 0 0 1px rgba(0, 156, 107, 0.18) !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-row.is-correct > b {
  background: #00a66f !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-row.is-wrong {
  box-shadow: inset 0 0 0 1px rgba(231, 76, 60, 0.2) !important;
}

html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-result-row.is-wrong > b {
  background: #e74c3c !important;
}

@media (max-width: 760px) {
  html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .listening-fib-input {
    width: clamp(64px, 26vw, 112px) !important;
    height: 32px !important;
    font-size: 14px !important;
  }

  html body #practice.practice-detail-mode[data-active-question-type="L-FIB"] .lifib-check-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Reading pending report: keep the feedback column full height, but keep the
   waiting content compact and aligned near the top. */
@media (min-width: 761px) {
  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode:not(.has-report) {
    min-height: calc(100vh - 72px) !important;
    height: calc(100vh - 72px) !important;
    max-height: calc(100vh - 72px) !important;
    align-self: stretch !important;
    align-content: start !important;
    padding: 18px 16px 18px !important;
    overflow-y: auto !important;
  }

  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode:not(.has-report) > h2 {
    margin: 6px 0 12px !important;
    font-size: 21px !important;
    line-height: 1.22 !important;
  }

  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode:not(.has-report) .feedback-list {
    display: grid !important;
    gap: 12px !important;
    min-height: 0 !important;
  }

  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode:not(.has-report) .reading-idle-redesign {
    gap: 10px !important;
    align-content: start !important;
  }

  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode:not(.has-report) .reading-ai-wait-card {
    padding: 10px 12px 12px !important;
    border-radius: 14px !important;
    background: transparent !important;
  }

  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode:not(.has-report) .reading-ai-wait-card .ai-report-illustration {
    width: min(196px, 92%) !important;
    margin: -10px auto -8px !important;
    transform: none !important;
  }

  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode:not(.has-report) .reading-ai-wait-card h3 {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.22 !important;
  }

  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode:not(.has-report) .reading-ai-wait-card p {
    max-width: 260px !important;
    margin: 7px auto 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode:not(.has-report) .reading-idle-status {
    min-height: 32px !important;
    padding: 0 12px !important;
  }

  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode:not(.has-report) .reading-idle-steps.compact {
    gap: 10px !important;
  }

  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode:not(.has-report) .reading-idle-steps.compact span {
    min-height: 34px !important;
    padding: 0 13px !important;
    gap: 10px !important;
    line-height: 1.32 !important;
  }
}

/* Pending report polish: scoped to the right feedback column only.
   Do not alter practice grid, column widths, sticky positioning, or resizers. */
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) {
  --pending-report-accent: #009c6b;
  --pending-report-ink: #111316;
  --pending-report-muted: #667085;
  --pending-report-line: rgba(17, 19, 22, 0.08);
  --pending-report-soft: #f7faf9;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) > .eyebrow {
  color: #6b7280 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) > h2 {
  margin: 14px 0 16px !important;
  color: var(--pending-report-ink) !important;
  font-size: 22px !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-list {
  display: grid !important;
  gap: 14px !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .speech-idle-stack,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-idle-redesign {
  display: grid !important;
  gap: 14px !important;
  align-content: start !important;
  width: 100% !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-idle-card,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-ai-wait-card,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .text-task-idle-card {
  position: relative !important;
  overflow: hidden !important;
  padding: 16px 16px 18px !important;
  border: 1px solid rgba(0, 156, 107, 0.14) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(239, 253, 248, 0.92), rgba(255, 255, 255, 0.94)),
    #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-idle-card::before,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-ai-wait-card::before,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .text-task-idle-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 3px !important;
  background: var(--pending-report-accent) !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-idle-card .ai-report-illustration,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-ai-wait-card .ai-report-illustration {
  width: min(214px, 88%) !important;
  margin: -4px auto 10px !important;
  transform: none !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-idle-card h3,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-ai-wait-card h3 {
  margin: 0 !important;
  color: var(--pending-report-ink) !important;
  font-size: 19px !important;
  line-height: 1.24 !important;
  letter-spacing: 0 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-idle-card p,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-ai-wait-card p,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .text-task-idle-card > p {
  max-width: 30em !important;
  margin: 8px auto 0 !important;
  color: var(--pending-report-muted) !important;
  font-size: 12.5px !important;
  line-height: 1.6 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-waiting-context {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-waiting-context .eyebrow {
  margin: 0 0 10px !important;
  color: var(--pending-report-ink) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .practice-step-list,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-idle-steps.compact,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .practice-idle-metrics {
  display: grid !important;
  gap: 9px !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .practice-step-list span,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-idle-steps.compact span,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .practice-idle-metrics span {
  min-height: 38px !important;
  padding: 9px 11px !important;
  border: 1px solid var(--pending-report-line) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  color: #485160 !important;
  box-shadow: none !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .practice-step-list strong,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-idle-steps.compact i,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .practice-idle-metrics b {
  color: var(--pending-report-accent) !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-idle-status {
  border: 1px solid rgba(0, 156, 107, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(0, 156, 107, 0.06) !important;
  color: #007a55 !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .feedback-idle-card .ai-report-illustration,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-ai-wait-card .ai-report-illustration {
  aspect-ratio: 276 / 190 !important;
  height: auto !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .speech-idle-stack .ai-report-illustration .ai-paper-label {
  left: 19.2% !important;
  top: 28.4% !important;
  transform: none !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .speech-idle-stack .ai-report-illustration .ai-core-label {
  left: 74.3% !important;
  top: 43.7% !important;
  width: auto !important;
  transform: translate(-50%, -50%) !important;
}

html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .speech-idle-stack::after,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report) .reading-idle-redesign::after {
  content: "" !important;
  display: block !important;
  min-height: 132px !important;
  border: 1px solid rgba(17, 19, 22, 0.07) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(90deg, rgba(0, 156, 107, 0.14), rgba(0, 156, 107, 0.04) 42%, transparent 42%) 14px 18px / calc(100% - 28px) 10px no-repeat,
    linear-gradient(90deg, rgba(17, 19, 22, 0.12), rgba(17, 19, 22, 0.04) 58%, transparent 58%) 14px 44px / calc(100% - 28px) 8px no-repeat,
    linear-gradient(90deg, rgba(17, 19, 22, 0.1), rgba(17, 19, 22, 0.035) 72%, transparent 72%) 14px 66px / calc(100% - 28px) 8px no-repeat,
    linear-gradient(90deg, rgba(0, 156, 107, 0.16), rgba(0, 156, 107, 0.05) 50%, transparent 50%) 14px 96px / calc(100% - 28px) 10px no-repeat,
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.96)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

/* Profile learning center: make the study summary feel like an app module instead of plain rows. */
html body #profile .skill-progress-grid {
  grid-template-columns: minmax(240px, 0.82fr) minmax(420px, 1.18fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

html body #profile .profile-daily-panel.profile-learning-today,
html body #profile .profile-recent-panel.profile-learning-records {
  position: relative !important;
  overflow: hidden !important;
  padding: 18px !important;
  border: 1px solid rgba(227, 230, 234, 0.86) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 156, 107, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 251, 0.96)) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.055) !important;
}

html body #profile .profile-daily-panel.profile-learning-today .profile-section-head,
html body #profile .profile-recent-panel.profile-learning-records .profile-section-head {
  margin: 0 0 12px !important;
}

html body #profile .profile-daily-panel.profile-learning-today .profile-section-head h3,
html body #profile .profile-recent-panel.profile-learning-records .profile-section-head h3 {
  font-size: 19px !important;
  line-height: 1.18 !important;
}

html body #profile .profile-practice-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  gap: 10px !important;
}

html body #profile .profile-practice-card {
  display: grid !important;
  min-height: 166px !important;
  padding: 16px !important;
  align-content: space-between !important;
  border: 1px solid rgba(227, 230, 234, 0.88) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 250, 0.98)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html body #profile .profile-practice-card-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

html body #profile .profile-type-badge,
html body #profile .profile-recent-list button .profile-type-badge,
html body #profile .profile-practice-card .profile-type-badge {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 48px !important;
  height: 30px !important;
  padding: 0 11px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 999px !important;
  background: #171719 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 10px 22px rgba(17, 17, 19, 0.12) !important;
}

html body #profile .profile-practice-card-head small {
  color: #667085 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

html body #profile .profile-practice-card > strong {
  margin-top: 18px !important;
  color: #111316 !important;
  font-size: 44px !important;
  font-weight: 950 !important;
  line-height: 0.95 !important;
}

html body #profile .profile-practice-card > small {
  color: #515866 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

html body #profile .profile-practice-card > i {
  display: block !important;
  width: 100% !important;
  height: 4px !important;
  margin-top: 12px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #e6e9ee !important;
}

html body #profile .profile-practice-card > i > b {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #171719, #009c6b) !important;
}

html body #profile .profile-learning-records .profile-recent-list {
  gap: 8px !important;
}

html body #profile .profile-learning-records .profile-record-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto !important;
  min-height: 50px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(227, 230, 234, 0.9) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: none !important;
}

html body #profile .profile-learning-records .profile-record-row:hover {
  border-color: rgba(0, 156, 107, 0.25) !important;
  background: rgba(248, 255, 252, 0.94) !important;
}

html body #profile .profile-learning-records .profile-record-title {
  color: #273142 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

html body #profile .profile-learning-records .profile-record-score {
  min-width: 54px !important;
  color: #b47a00 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  text-align: right !important;
}

html body #profile .profile-learning-records .profile-record-time {
  min-width: 74px !important;
  color: #667085 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  text-align: right !important;
}

@media (max-width: 900px) {
  html body #profile .skill-progress-grid {
    grid-template-columns: 1fr !important;
  }

  html body #profile .profile-learning-records .profile-record-row {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }

  html body #profile .profile-learning-records .profile-record-time {
    display: none !important;
  }
}

/* Profile radar: stronger green hierarchy and full-width learning center after removing Student Profile. */
html body #profile .content-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

html body #profile .content-grid > .wide-panel {
  width: 100% !important;
}

html body #profile #profileRadarList {
  display: grid !important;
  gap: 14px !important;
}

html body #profile .radar-item {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: center !important;
  padding: 8px 0 !important;
}

html body #profile .radar-item div:first-child {
  display: grid !important;
  gap: 3px !important;
}

html body #profile .radar-item span {
  color: #485160 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

html body #profile .radar-item strong {
  color: #008a5d !important;
  font-size: 24px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

html body #profile .radar-item .mini-progress,
html body #profile .radar-item i {
  height: 8px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #dfeee8 !important;
  box-shadow: inset 0 0 0 1px rgba(0, 156, 107, 0.06) !important;
}

html body #profile .radar-item .mini-progress i,
html body #profile .radar-item b {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #00b978 0%, #009c6b 54%, #007a55 100%) !important;
  box-shadow: 0 0 18px rgba(0, 156, 107, 0.28) !important;
}

/* Profile desktop interaction polish after removing the tab strip. */
@media (min-width: 761px) {
  html body #profile.active-view .profile-page-hero,
  html body #profile.active-view .profile-summary,
  html body #profile.active-view .profile-insight-grid,
  html body #profile.active-view .content-grid {
    animation: profile-panel-rise 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both !important;
  }

  html body #profile.active-view .profile-summary {
    margin-top: 14px !important;
  }

  html body #profile .profile-today-card,
  html body #profile .profile-summary-card,
  html body #profile .profile-membership-mini,
  html body #profile .profile-daily-panel,
  html body #profile .profile-recent-panel,
  html body #profile .panel {
    transition:
      transform 220ms ease,
      border-color 220ms ease,
      box-shadow 220ms ease,
      background 220ms ease !important;
  }

  html body #profile .profile-summary-card:hover,
  html body #profile .profile-membership-mini:hover,
  html body #profile .profile-daily-panel:hover,
  html body #profile .profile-recent-panel:hover,
  html body #profile .panel:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(0, 156, 107, 0.20) !important;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08) !important;
  }

  html body #profile .profile-summary-card:active,
  html body #profile .profile-membership-mini:active,
  html body #profile .profile-recent-list button:active {
    transform: translateY(-1px) scale(0.99) !important;
  }

  html body #profile .profile-learning-records .profile-record-row {
    transition:
      transform 180ms ease,
      border-color 180ms ease,
      background 180ms ease,
      box-shadow 180ms ease !important;
  }

  html body #profile .profile-learning-records .profile-record-row:hover {
    transform: translateX(4px) !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.055) !important;
  }
}

@keyframes profile-panel-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Compliance footer: present but intentionally quiet. */
html body .site-beian {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 34px auto 10px !important;
  padding: 0 16px !important;
  color: #a8adb5 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

html body .site-beian a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 180ms ease, opacity 180ms ease !important;
}

html body .site-beian a:hover {
  color: #6b7280 !important;
}

@media (max-width: 700px) {
  html body .site-beian {
    max-width: min(430px, calc(100vw - 28px)) !important;
    margin-top: 22px !important;
    margin-bottom: calc(var(--mobile-tabbar-height, 76px) + 12px) !important;
    padding: 0 !important;
    font-size: 11px !important;
  }
}

/* Refined WeChat logo beacon. */
html body .wechat-float-button {
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .wechat-float-button:hover,
html body .wechat-float-button:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  transform: translateY(-1px) scale(1.02) !important;
}

html body .wechat-float-button::before,
html body .wechat-float-button::after {
  content: "" !important;
  position: absolute !important;
  inset: 1px !important;
  z-index: -1 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(247, 181, 32, 0.34) !important;
  box-shadow: 0 0 0 0 rgba(247, 181, 32, 0.18) !important;
  animation: wechatBeaconPulse 2.8s ease-out infinite !important;
}

html body .wechat-float-button::after {
  animation-delay: 1.4s !important;
}

html body .wechat-icon {
  width: 34px !important;
  height: 34px !important;
  overflow: hidden !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  background: #f6b81f !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18) !important;
}

html body .wechat-icon img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: inherit !important;
}

@keyframes wechatBeaconPulse {
  0% {
    opacity: 0.72;
    transform: scale(1);
  }
  72% {
    opacity: 0;
    transform: scale(2.05);
  }
  100% {
    opacity: 0;
    transform: scale(2.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .wechat-float-button::before,
  html body .wechat-float-button::after {
    animation: none !important;
    opacity: 0 !important;
  }
}

@media (max-width: 700px) {
  html body .wechat-icon {
    width: 32px !important;
    height: 32px !important;
  }
}

/* Quiet copyright + WeChat entry. */
html body .site-beian {
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px 14px !important;
}

html body .site-beian span {
  color: inherit !important;
}

html body .wechat-float {
  position: fixed !important;
  right: 22px !important;
  bottom: 24px !important;
  z-index: 80 !important;
  display: grid !important;
  justify-items: end !important;
  gap: 10px !important;
}

html body .wechat-float-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 44px !important;
  padding: 0 16px 0 12px !important;
  border: 1px solid rgba(0, 160, 115, 0.18) !important;
  border-radius: 999px !important;
  background: #1f1f22 !important;
  color: #ffffff !important;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18) !important;
  cursor: pointer !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease !important;
}

html body .wechat-float-button:hover,
html body .wechat-float-button:focus-visible {
  background: #111113 !important;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.22) !important;
  transform: translateY(-2px) !important;
}

html body .wechat-icon {
  display: grid !important;
  width: 26px !important;
  height: 26px !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: #08a878 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

html body .wechat-float-button strong {
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

html body .wechat-float-card {
  position: absolute !important;
  right: 0 !important;
  bottom: 56px !important;
  width: 190px !important;
  padding: 12px !important;
  border: 1px solid rgba(226, 231, 235, 0.96) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(8px) scale(0.98) !important;
  transform-origin: right bottom !important;
  transition: opacity 180ms ease, transform 180ms ease !important;
}

html body .wechat-float:hover .wechat-float-card,
html body .wechat-float:focus-within .wechat-float-card {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

html body .wechat-float-card span {
  display: block !important;
  color: #18181b !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

html body .wechat-float-card img {
  display: block !important;
  width: 166px !important;
  height: 166px !important;
  margin: 8px auto !important;
  border-radius: 12px !important;
  object-fit: cover !important;
}

html body .wechat-float-card small {
  display: block !important;
  color: #6b7280 !important;
  font-size: 12px !important;
  text-align: center !important;
}

@media (max-width: 700px) {
  html body .site-beian {
    gap: 2px 10px !important;
  }

  html body .wechat-float {
    right: 14px !important;
    bottom: calc(var(--mobile-tabbar-height, 76px) + 18px) !important;
  }

  html body .wechat-float-button {
    width: 42px !important;
    height: 42px !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  html body .wechat-float-button strong {
    display: none !important;
  }

  html body .wechat-float-card {
    width: 176px !important;
    bottom: 50px !important;
  }

  html body .wechat-float-card img {
    width: 152px !important;
    height: 152px !important;
  }
}

/* Mobile profile summary: keep the daily card wide, then show the four stats as a 2x2 grid. */
@media (max-width: 700px) {
  html body #profile.active-view {
    --mobile-page-x: 16px !important;
    padding: 18px clamp(14px, 4vw, 22px) calc(var(--mobile-tabbar-height, 76px) + 20px) !important;
    background: #f5f5f7 !important;
  }

  html body #profile .profile-page-hero,
  html body #profile .profile-summary,
  html body #profile .profile-insight-grid,
  html body #profile .content-grid,
  html body #profile .skill-progress-grid {
    width: 100% !important;
    max-width: min(430px, calc(100vw - 28px)) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  html body #profile .profile-summary {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 12px auto 14px !important;
  }

  html body #profile .profile-summary .profile-today-card {
    grid-column: 1 / -1 !important;
  }

  html body #profile .profile-summary-card,
  html body #profile .profile-membership-mini {
    display: grid !important;
    align-content: space-between !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    padding: 14px !important;
    overflow: hidden !important;
    border: 1px solid rgba(226, 231, 235, 0.95) !important;
    border-radius: 18px !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(0, 156, 107, 0.10), transparent 36%),
      linear-gradient(180deg, #ffffff 0%, #f8faf9 100%) !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.055) !important;
  }

  html body #profile .profile-summary-card span,
  html body #profile .profile-membership-mini span {
    color: #546171 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
  }

  html body #profile .profile-summary-card strong,
  html body #profile .profile-membership-mini strong {
    color: #111316 !important;
    font-size: clamp(22px, 7vw, 32px) !important;
    font-weight: 950 !important;
    line-height: 0.95 !important;
    letter-spacing: 0 !important;
    word-break: keep-all !important;
  }

  html body #profile .profile-membership-mini strong {
    font-size: clamp(19px, 5.6vw, 25px) !important;
  }

  html body #profile .profile-summary-card small,
  html body #profile .profile-membership-mini small {
    display: -webkit-box !important;
    overflow: hidden !important;
    color: #667085 !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body #profile .profile-summary-card::after,
  html body #profile .profile-membership-mini::after {
    content: "" !important;
    display: block !important;
    width: 28px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: #009c6b !important;
  }
}

/* Homepage-only compliance and contact entry, kept quiet. */
html body .site-beian {
  width: 100% !important;
  max-width: min(1120px, calc(100vw - 48px)) !important;
  margin: 14px auto 4px !important;
  padding: 0 4px !important;
  color: #b2b7bf !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  opacity: 0.78 !important;
}

html body .site-beian a:hover {
  color: #737984 !important;
}

html body .wechat-float {
  display: none !important;
  right: 18px !important;
  bottom: 18px !important;
}

html body.view-dashboard .wechat-float {
  display: grid !important;
}

html body .wechat-float-button {
  width: 38px !important;
  height: 38px !important;
  justify-content: center !important;
  padding: 0 !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(31, 31, 34, 0.88) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16) !important;
}

html body .wechat-icon {
  width: 22px !important;
  height: 22px !important;
  background: #0aa678 !important;
  font-size: 12px !important;
}

html body .wechat-float-card {
  width: 154px !important;
  bottom: 48px !important;
  padding: 10px !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16) !important;
}

html body .wechat-float-card span {
  font-size: 12px !important;
  text-align: center !important;
}

html body .wechat-float-card img {
  width: 132px !important;
  height: 132px !important;
  margin: 7px auto !important;
  border-radius: 10px !important;
}

html body .wechat-float-card small {
  font-size: 10px !important;
}

@media (max-width: 700px) {
  html body .site-beian {
    max-width: min(430px, calc(100vw - 28px)) !important;
    margin-top: 10px !important;
    margin-bottom: calc(var(--mobile-tabbar-height, 76px) + 10px) !important;
    font-size: 10px !important;
    opacity: 0.72 !important;
  }

  html body .wechat-float {
    right: 12px !important;
    bottom: calc(var(--mobile-tabbar-height, 76px) + 12px) !important;
  }

  html body .wechat-float-button {
    width: 36px !important;
    height: 36px !important;
  }

  html body .wechat-float-card {
    width: 146px !important;
    bottom: 44px !important;
  }

  html body .wechat-float-card img {
    width: 124px !important;
    height: 124px !important;
  }
}

/* Final homepage WeChat avatar beacon. Keep this block last so older patches cannot override it. */
html body .wechat-float {
  right: 18px !important;
  bottom: 18px !important;
}

html body .wechat-float-button {
  width: 46px !important;
  height: 46px !important;
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .wechat-float-button:hover,
html body .wechat-float-button:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  transform: translateY(-1px) scale(1.03) !important;
}

html body .wechat-float-button::before,
html body .wechat-float-button::after {
  content: "" !important;
  position: absolute !important;
  inset: 4px !important;
  z-index: -1 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(246, 184, 31, 0.5) !important;
  background: rgba(246, 184, 31, 0.1) !important;
  box-shadow: 0 0 22px rgba(246, 184, 31, 0.24) !important;
  animation: xingxingContactRipple 2.4s ease-out infinite !important;
}

html body .wechat-float-button::after {
  animation-delay: 1.2s !important;
}

html body .wechat-icon {
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 2px solid rgba(255, 255, 255, 0.96) !important;
  border-radius: 999px !important;
  background: #f6b81f !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(17, 17, 19, 0.08) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

@keyframes xingxingContactRipple {
  0% {
    opacity: 0.8;
    transform: scale(0.9);
  }
  70% {
    opacity: 0;
    transform: scale(2.35);
  }
  100% {
    opacity: 0;
    transform: scale(2.35);
  }
}

@media (max-width: 700px) {
  html body .wechat-float {
    right: 12px !important;
    bottom: calc(var(--mobile-tabbar-height, 76px) + 12px) !important;
  }

  html body .wechat-float-button {
    width: 42px !important;
    height: 42px !important;
  }

  html body .wechat-icon {
    width: 38px !important;
    height: 38px !important;
  }
}

/* Hotfix: visible avatar ripple without black backing. */
html body .wechat-float-button {
  width: 52px !important;
  height: 52px !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .wechat-float-button::before,
html body .wechat-float-button::after {
  inset: 5px !important;
  z-index: 0 !important;
  border: 2px solid rgba(246, 184, 31, 0.7) !important;
  background: rgba(246, 184, 31, 0.16) !important;
  box-shadow: 0 0 18px rgba(246, 184, 31, 0.34), 0 0 36px rgba(246, 184, 31, 0.18) !important;
  pointer-events: none !important;
  animation: xingxingContactRippleStrong 2.2s ease-out infinite !important;
}

html body .wechat-float-button::after {
  animation-delay: 1.1s !important;
}

html body .wechat-icon {
  position: relative !important;
  z-index: 2 !important;
  width: 42px !important;
  height: 42px !important;
  border: 2px solid rgba(255, 255, 255, 0.98) !important;
  background: transparent !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16) !important;
}

html body .wechat-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.02) !important;
}

@keyframes xingxingContactRippleStrong {
  0% {
    opacity: 0.9;
    transform: scale(0.74);
  }
  68% {
    opacity: 0;
    transform: scale(2.75);
  }
  100% {
    opacity: 0;
    transform: scale(2.75);
  }
}

@media (max-width: 700px) {
  html body .wechat-float-button {
    width: 48px !important;
    height: 48px !important;
  }

  html body .wechat-icon {
    width: 38px !important;
    height: 38px !important;
  }
}

/* Final contact badge polish: circular avatar with visible outward ripple. */
html body .wechat-float {
  overflow: visible !important;
}

html body .wechat-float-button,
html body .wechat-float-button:hover,
html body .wechat-float-button:focus-visible {
  width: 60px !important;
  height: 60px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html body .wechat-float-button::before,
html body .wechat-float-button::after {
  content: "" !important;
  position: absolute !important;
  inset: 2px !important;
  z-index: 1 !important;
  border-radius: 999px !important;
  border: 2px solid rgba(246, 184, 31, 0.72) !important;
  background: rgba(246, 184, 31, 0.14) !important;
  box-shadow: 0 0 22px rgba(246, 184, 31, 0.34) !important;
  opacity: 0 !important;
  animation: xingxingContactPulse 2s ease-out infinite !important;
}

html body .wechat-float-button::after {
  animation-delay: 1s !important;
}

html body .wechat-icon {
  position: relative !important;
  z-index: 3 !important;
  width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  border: 2px solid rgba(255, 255, 255, 0.96) !important;
  border-radius: 999px !important;
  background: #f6b81f !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(246, 184, 31, 0.24) !important;
  overflow: hidden !important;
}

html body .wechat-icon img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 38% !important;
  transform: scale(1.36) !important;
  transform-origin: center center !important;
}

@keyframes xingxingContactPulse {
  0% {
    opacity: 0.78;
    transform: scale(0.82);
  }
  72% {
    opacity: 0;
    transform: scale(1.82);
  }
  100% {
    opacity: 0;
    transform: scale(1.82);
  }
}

@media (max-width: 700px) {
  html body .wechat-float-button,
  html body .wechat-float-button:hover,
  html body .wechat-float-button:focus-visible {
    width: 54px !important;
    height: 54px !important;
  }

  html body .wechat-icon {
    width: 42px !important;
    height: 42px !important;
  }
}

/* WFD final polish: align the text answer card with SWT and add a scored report UI. */
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .answer-workspace {
  display: grid !important;
  gap: 14px !important;
  margin-top: 18px !important;
  padding: 18px !important;
  border: 1px solid #e3e6ea !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05) !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .answer-workspace > div:first-child {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .answer-workspace .eyebrow {
  margin: 0 !important;
  color: #667085 !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .answer-workspace h3 {
  margin: 0 !important;
  color: #111316 !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .answer-hint-bar {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .we-word-status {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(219, 222, 227, 0.72) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #667085 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .we-word-status strong {
  color: #111316 !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .we-word-status span {
  color: #667085 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .text-answer {
  display: block !important;
  width: 100% !important;
  min-height: 190px !important;
  padding: 18px !important;
  border: 1px solid #d9dde3 !important;
  border-radius: 16px !important;
  background: #fbfcfd !important;
  color: #111316 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.78 !important;
  resize: vertical !important;
  outline: none !important;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .text-answer:focus {
  border-color: #111316 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(17, 19, 22, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode.has-report::before,
html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode.has-report::after {
  display: none !important;
  content: none !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode.has-report {
  padding: 22px !important;
  background: #fff !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode.has-report > h2 {
  margin: 0 0 14px !important;
  color: #17191d !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  line-height: 1.18 !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode.has-report .score-ring,
html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode.has-report .ai-breakdown {
  display: none !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode.has-report .feedback-list {
  display: grid !important;
  gap: 12px !important;
  margin-top: 0 !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-report-card {
  display: grid !important;
  gap: 12px !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-score-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 92px !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px !important;
  border: 1px solid rgba(20, 24, 31, 0.09) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf7 100%) !important;
  box-shadow: 0 18px 38px -32px rgba(20, 24, 31, 0.35) !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-score-hero span {
  color: #006b4b !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-score-hero strong {
  display: block !important;
  margin-top: 6px !important;
  color: #16181c !important;
  font-size: 42px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-score-hero em {
  margin-left: 3px !important;
  color: #6b7280 !important;
  font-size: 17px !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-score-hero p {
  margin: 7px 0 0 !important;
  color: #606776 !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.45 !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-score-meter {
  display: grid !important;
  place-items: center !important;
  width: 92px !important;
  height: 92px !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(#009c6b 0deg var(--wfd-deg, 0deg), #e8ecef var(--wfd-deg, 0deg) 360deg) !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-score-meter b {
  color: #17191d !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-score-meter small {
  margin-top: -16px !important;
  color: #6b7280 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-score-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-score-grid article,
html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-answer-review,
html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-word-map,
html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-extra-words,
html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-advice-card {
  padding: 14px !important;
  border: 1px solid rgba(20, 24, 31, 0.09) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-score-grid article {
  min-height: 66px !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-score-grid span,
html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-answer-review strong,
html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-word-map > strong,
html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-extra-words > strong,
html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-advice-card > strong {
  color: #606776 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-score-grid strong {
  display: block !important;
  margin-top: 6px !important;
  color: #17191d !important;
  font-size: 24px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-answer-review p,
html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-advice-card p {
  margin: 8px 0 0 !important;
  color: #394150 !important;
  font-size: 14px !important;
  font-weight: 760 !important;
  line-height: 1.7 !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-answer-review.is-correct-answer {
  background: #f8fbf9 !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-word-map > div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin-top: 10px !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-word-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-height: 30px !important;
  padding: 0 9px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-word-chip b {
  color: inherit !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  opacity: 0.72 !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-word-chip.is-correct {
  border: 1px solid rgba(0, 156, 107, 0.18) !important;
  background: #eefaf4 !important;
  color: #007a55 !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-word-chip.is-missed {
  border: 1px solid rgba(220, 38, 38, 0.18) !important;
  background: #fff1f1 !important;
  color: #b42318 !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-extra-words p {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 10px 0 0 !important;
}

html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-extra-words p span {
  padding: 6px 9px !important;
  border-radius: 999px !important;
  background: #f3f4f6 !important;
  color: #4b5563 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

@media (max-width: 760px) {
  html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-score-hero {
    grid-template-columns: 1fr !important;
  }

  html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode .wfd-score-meter {
    justify-self: start !important;
  }
}

/* HIW submitted state: keep final scoring colors above the selectable word styling. */
html body #practice.practice-detail-mode #questionText .hiw-word-select.is-correct {
  background: #dff7ea !important;
  background-color: #dff7ea !important;
  color: #087443 !important;
  box-shadow: inset 0 -2px 0 #20b26b !important;
}

html body #practice.practice-detail-mode #questionText .hiw-word-select.is-wrong,
html body #practice.practice-detail-mode #questionText .hiw-word-select.is-missed {
  background: #ffe0dc !important;
  background-color: #ffe0dc !important;
  color: #8f1f17 !important;
  box-shadow: inset 0 -2px 0 #e5483f !important;
}

/* WFD pending state: compact the pre-submit workspace and right-side checklist. */
html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .answer-workspace {
  gap: 10px !important;
  margin-top: 12px !important;
  padding: 14px !important;
  border-radius: 16px !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .answer-workspace > div:first-child {
  align-items: center !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .answer-workspace .eyebrow {
  margin-bottom: 3px !important;
  font-size: 10px !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .answer-workspace h3 {
  font-size: 21px !important;
  line-height: 1.12 !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .answer-hint-bar {
  margin: 0 !important;
  padding: 7px 9px !important;
  border-radius: 999px !important;
  background: #f7f8fa !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .we-word-status {
  min-height: 30px !important;
  padding: 0 10px !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .we-word-status strong {
  font-size: 15px !important;
}

html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="WFD"] .text-answer {
  min-height: 132px !important;
  padding: 14px !important;
  border-radius: 14px !important;
  line-height: 1.55 !important;
}

html body #practice.practice-detail-mode[data-active-question-type="WFD"] .feedback-panel:not(.has-report) {
  align-self: start !important;
  gap: 8px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 18px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="WFD"] .feedback-panel:not(.has-report) > h2 {
  margin: 6px 0 4px !important;
  font-size: 22px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="WFD"] .feedback-panel:not(.has-report) .feedback-list {
  gap: 8px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="WFD"] .feedback-panel:not(.has-report) .text-task-idle-card {
  gap: 10px !important;
  padding: 14px !important;
  border-radius: 16px !important;
  background: #fffaf2 !important;
  box-shadow: inset 4px 0 0 #009c6b, 0 12px 28px -26px rgba(14, 17, 23, 0.32) !important;
}

html body #practice.practice-detail-mode[data-active-question-type="WFD"] .feedback-panel:not(.has-report) .practice-idle-head {
  grid-template-columns: 38px minmax(0, 1fr) !important;
  gap: 10px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="WFD"] .feedback-panel:not(.has-report) .practice-idle-head > span {
  width: 38px !important;
  height: 38px !important;
  border-radius: 11px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="WFD"] .feedback-panel:not(.has-report) .practice-idle-head strong {
  font-size: 15px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="WFD"] .feedback-panel:not(.has-report) .practice-idle-head small {
  margin-top: 2px !important;
  font-size: 11px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="WFD"] .feedback-panel:not(.has-report) .text-task-idle-card p {
  font-size: 12px !important;
  line-height: 1.5 !important;
}

html body #practice.practice-detail-mode[data-active-question-type="WFD"] .feedback-panel:not(.has-report) .practice-idle-metrics {
  grid-template-columns: 1fr !important;
  gap: 6px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="WFD"] .feedback-panel:not(.has-report) .practice-idle-metrics span {
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

html body #practice.practice-detail-mode[data-active-question-type="WFD"] .feedback-panel:not(.has-report) .practice-idle-metrics b {
  font-size: 12px !important;
}

/* Question-bank overview: glass interaction cards instead of the hard yellow reminder edge. */
html body #practice.active-view:not(.practice-detail-mode) .figma-type-card,
html body #practice:not(.practice-detail-mode) .figma-type-card {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  border: 1px solid rgba(255, 255, 255, 0.66) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.44)),
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--type-color, #007aff) 16%, transparent), transparent 42%) !important;
  backdrop-filter: blur(18px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.38),
    0 18px 38px rgba(15, 23, 42, 0.07) !important;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    filter 0.28s ease !important;
}

html body #practice.active-view:not(.practice-detail-mode) .figma-type-card::before,
html body #practice:not(.practice-detail-mode) .figma-type-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.08) 38%, rgba(255, 255, 255, 0.42) 100%),
    radial-gradient(circle at 80% 14%, rgba(255, 255, 255, 0.66), transparent 24%);
  opacity: 0.82;
  transition: opacity 0.28s ease, transform 0.28s ease !important;
}

html body #practice.active-view:not(.practice-detail-mode) .figma-type-card::after,
html body #practice:not(.practice-detail-mode) .figma-type-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.42);
  opacity: 0.76;
}

html body #practice.active-view:not(.practice-detail-mode) .figma-type-card:hover,
html body #practice.active-view:not(.practice-detail-mode) .figma-type-card:focus-visible,
html body #practice:not(.practice-detail-mode) .figma-type-card:hover,
html body #practice:not(.practice-detail-mode) .figma-type-card:focus-visible {
  transform: translateY(-4px) scale(1.01) !important;
  border-color: color-mix(in srgb, var(--type-color, #007aff) 42%, rgba(255, 255, 255, 0.72)) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.54)),
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--type-color, #007aff) 22%, transparent), transparent 46%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 24px 52px rgba(15, 23, 42, 0.12),
    0 0 0 6px color-mix(in srgb, var(--type-color, #007aff) 9%, transparent) !important;
}

html body #practice.active-view:not(.practice-detail-mode) .figma-type-card:hover::before,
html body #practice.active-view:not(.practice-detail-mode) .figma-type-card:focus-visible::before,
html body #practice:not(.practice-detail-mode) .figma-type-card:hover::before,
html body #practice:not(.practice-detail-mode) .figma-type-card:focus-visible::before {
  opacity: 1;
  transform: translateY(-3px) !important;
}

html body #practice.active-view:not(.practice-detail-mode) .figma-type-card:active,
html body #practice:not(.practice-detail-mode) .figma-type-card:active {
  transform: translateY(-1px) scale(0.995) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 14px 30px rgba(15, 23, 42, 0.09) !important;
}

html body #practice.active-view:not(.practice-detail-mode) .figma-type-card .mobile-type-meta,
html body #practice:not(.practice-detail-mode) .figma-type-card .mobile-type-meta {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  backdrop-filter: blur(12px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 20px rgba(15, 23, 42, 0.055) !important;
}

html body #practice.active-view:not(.practice-detail-mode) .figma-type-card i,
html body #practice:not(.practice-detail-mode) .figma-type-card i {
  overflow: hidden !important;
  background: rgba(15, 23, 42, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62) !important;
}

html body #practice.active-view:not(.practice-detail-mode) .figma-type-card i em,
html body #practice:not(.practice-detail-mode) .figma-type-card i em {
  background: linear-gradient(90deg, var(--type-color, #007aff), color-mix(in srgb, var(--type-color, #007aff) 62%, #ffffff)) !important;
  box-shadow: 0 0 12px color-mix(in srgb, var(--type-color, #007aff) 28%, transparent) !important;
}

html body #practice.active-view:not(.practice-detail-mode) .figma-type-card b,
html body #practice:not(.practice-detail-mode) .figma-type-card b {
  color: color-mix(in srgb, var(--type-color, #007aff) 82%, #111827) !important;
  text-shadow: none !important;
}

/* Mobile home subject entry: once a subject is selected, go straight to its question-type cards. */
@media (max-width: 760px) {
  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .mobile-subject-grid,
  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .mobile-subject-guide {
    display: none !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-card-grid {
    display: grid !important;
    margin-top: 0 !important;
  }
}

/* Mobile subject switcher: use a 2x2 rounded square grid instead of horizontal rows. */
@media (max-width: 760px) {
  html body #practice:not(.practice-detail-mode) .mobile-subject-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 14px !important;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.76) !important;
    backdrop-filter: blur(18px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 18px 42px rgba(15, 23, 42, 0.06) !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .mobile-subject-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr auto !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    padding: 14px !important;
    gap: 8px !important;
    place-items: center !important;
    border: 1px solid rgba(24, 24, 27, 0.08) !important;
    border-radius: 22px !important;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.86)) !important;
    color: #18181b !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055) !important;
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card i {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    border: 1px solid rgba(24, 24, 27, 0.08) !important;
    color: #18181b !important;
    font-size: 12px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card span {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: center !important;
    color: #18181b !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card strong {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    min-width: 28px !important;
    height: 22px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    background: rgba(24, 24, 27, 0.06) !important;
    color: #4f5560 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 22px !important;
    text-align: center !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card strong::before {
    content: none !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card small {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 3 !important;
    max-width: 8em !important;
    color: #7a818c !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card:hover,
  html body #practice:not(.practice-detail-mode) .mobile-subject-card:focus-visible {
    transform: translateY(-2px) !important;
    border-color: rgba(0, 122, 255, 0.26) !important;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09) !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card.active {
    border-color: rgba(24, 24, 27, 0.14) !important;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.9)) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 122, 255, 0.12), 0 18px 34px rgba(15, 23, 42, 0.08) !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card.active i {
    background: #18181b !important;
    border-color: #18181b !important;
    color: #fff !important;
  }
}

/* Dashboard narrow-desktop fit: keep the web homepage usable in half-width browser windows. */
@media (min-width: 761px) and (max-width: 1380px) {
  html body:not(:is(.view-agent, .view-community)) .app-shell {
    grid-template-columns: clamp(196px, 22vw, 248px) minmax(0, 1fr) !important;
    gap: clamp(18px, 2.2vw, 32px) !important;
    padding: clamp(16px, 2vw, 28px) !important;
  }

  html body:not(.view-agent) .sidebar {
    width: auto !important;
    min-width: 0 !important;
    padding: clamp(18px, 2vw, 26px) clamp(14px, 1.6vw, 22px) !important;
    border-radius: clamp(22px, 2.8vw, 32px) !important;
  }

  html body .brand {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  html body .brand-icon {
    width: 42px !important;
    height: 42px !important;
  }

  html body .brand-copy strong {
    font-size: clamp(21px, 2vw, 28px) !important;
    white-space: nowrap !important;
  }

  html body .exam-type-picker select {
    max-width: 100% !important;
    font-size: clamp(14px, 1.4vw, 18px) !important;
  }

  html body .nav-list {
    gap: clamp(18px, 3vh, 34px) !important;
    margin-top: clamp(28px, 5vh, 58px) !important;
  }

  html body .nav-link {
    min-height: clamp(50px, 5.8vw, 64px) !important;
    padding: 0 clamp(14px, 1.6vw, 22px) !important;
    border-radius: clamp(16px, 2vw, 22px) !important;
    font-size: clamp(17px, 1.7vw, 22px) !important;
  }

  html body:not(:is(.view-agent, .view-community)) .main {
    min-width: 0 !important;
    padding: 0 !important;
  }

  html body:not(.view-agent) .view#dashboard {
    min-width: 0 !important;
  }

  html body .home-v2-desktop-trial {
    gap: clamp(14px, 1.8vw, 20px) !important;
  }

  html body .home-web-hero {
    grid-template-columns: minmax(0, 1fr) clamp(150px, 20vw, 260px) !important;
    gap: clamp(14px, 1.8vw, 20px) !important;
    align-items: start !important;
    min-height: 0 !important;
    padding: clamp(22px, 3vw, 34px) !important;
    border-radius: clamp(22px, 3vw, 30px) !important;
  }

  html body .home-web-hero-copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 0 !important;
    align-content: start !important;
  }

  html body .home-web-hero-copy h2 {
    max-width: 9.5em !important;
    font-size: clamp(32px, 4.4vw, 54px) !important;
    line-height: 1.06 !important;
  }

  html body .home-web-hero-copy > div {
    margin-top: clamp(22px, 3vw, 32px) !important;
  }

  html body .home-frame-greeting {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-height: clamp(150px, 18vw, 220px) !important;
    margin-top: 4px !important;
  }

  html body .home-frame-greeting img {
    width: clamp(118px, 16vw, 190px) !important;
    height: auto !important;
  }

  html body .home-web-goal {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: min(100%, 420px) !important;
    margin: clamp(6px, 1vw, 12px) 0 0 !important;
    padding: clamp(18px, 2.2vw, 24px) !important;
  }

  html body .home-web-goal-main {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: clamp(12px, 1.6vw, 20px) !important;
  }

  html body .home-web-goal-main strong {
    font-size: clamp(42px, 6vw, 68px) !important;
  }

  html body .home-web-goal-main i {
    width: clamp(72px, 9vw, 104px) !important;
    height: clamp(72px, 9vw, 104px) !important;
  }

  html body .home-web-goal-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body .home-web-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(12px, 1.5vw, 18px) !important;
  }

  html body .home-web-metric,
  html body .home-web-card {
    border-radius: clamp(20px, 2.4vw, 28px) !important;
  }

  html body .home-web-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: clamp(12px, 1.5vw, 18px) !important;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  html body:not(:is(.view-agent, .view-community)) .app-shell {
    grid-template-columns: 176px minmax(0, 1fr) !important;
    gap: 16px !important;
    padding: 14px !important;
  }

  html body:not(.view-agent) .sidebar {
    padding: 16px 12px !important;
    border-radius: 24px !important;
  }

  html body .brand {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
  }

  html body .brand-icon {
    width: 36px !important;
    height: 36px !important;
  }

  html body .brand-copy strong {
    font-size: 21px !important;
  }

  html body .brand-copy,
  html body .exam-type-picker {
    display: none !important;
  }

  html body .exam-type-picker select {
    font-size: 13px !important;
  }

  html body .nav-link {
    min-height: 48px !important;
    font-size: 17px !important;
  }

  html body .sidebar .sidebar-user-card,
  html body .sidebar .sidebar-user-card.is-logged-in,
  html body .sidebar-user-card {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    grid-template-columns: 1fr !important;
    padding: 0 !important;
    margin-inline: auto !important;
    text-align: center !important;
  }

  html body .sidebar .sidebar-user-card span,
  html body .sidebar .sidebar-user-card b,
  html body .sidebar-user-card span,
  html body .sidebar-user-card b {
    display: none !important;
  }

  html body .sidebar-user-card strong,
  html body .sidebar-user-card small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body .home-web-hero-copy h2 {
    max-width: 8.5em !important;
    font-size: clamp(30px, 4.6vw, 44px) !important;
  }

  html body .home-web-goal {
    margin-left: 0 !important;
  }
}

@media (min-width: 761px) and (max-width: 1600px) {
  html body .home-web-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start !important;
  }

  html body .home-frame-greeting {
    display: none !important;
  }

  html body .home-web-hero-copy h2 {
    max-width: 9em !important;
  }

  html body .home-web-goal {
    grid-column: 1 !important;
    width: min(100%, 620px) !important;
    margin-top: clamp(48px, 6vw, 86px) !important;
  }
}

/* Question bank narrow-desktop fit: reduce the oversized tablet-like layout. */
@media (min-width: 761px) and (max-width: 1600px) {
  html body.view-practice .app-shell {
    grid-template-columns: clamp(154px, 15vw, 220px) minmax(0, 1fr) !important;
    gap: clamp(18px, 2vw, 34px) !important;
    padding: clamp(16px, 2vw, 30px) !important;
  }

  html body.view-practice .sidebar {
    padding: clamp(18px, 2vw, 28px) clamp(12px, 1.4vw, 22px) !important;
    border-radius: clamp(22px, 2.6vw, 34px) !important;
  }

  html body.view-practice .brand {
    grid-template-columns: clamp(38px, 3.2vw, 48px) minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  html body.view-practice .brand-icon {
    width: clamp(38px, 3.2vw, 48px) !important;
    height: clamp(38px, 3.2vw, 48px) !important;
  }

  html body.view-practice .brand-copy strong {
    font-size: clamp(22px, 2vw, 30px) !important;
  }

  html body.view-practice .exam-type-picker select {
    max-width: 100% !important;
    font-size: clamp(13px, 1.2vw, 17px) !important;
  }

  html body.view-practice .nav-list {
    gap: clamp(18px, 3vh, 36px) !important;
    margin-top: clamp(34px, 5vh, 64px) !important;
  }

  html body.view-practice .nav-link {
    min-height: clamp(48px, 4.6vw, 64px) !important;
    padding: 0 clamp(14px, 1.6vw, 22px) !important;
    border-radius: clamp(16px, 1.8vw, 22px) !important;
    font-size: clamp(17px, 1.45vw, 22px) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) > .practice-top-grid,
  html body #practice:not(.practice-detail-mode) > .practice-top-grid {
    align-items: start !important;
    gap: clamp(14px, 1.5vw, 20px) !important;
    margin-bottom: clamp(18px, 2vw, 26px) !important;
    padding: clamp(14px, 1.4vw, 22px) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid .practice-hero,
  html body #practice:not(.practice-detail-mode) .practice-top-grid .practice-hero {
    height: clamp(238px, 19vw, 300px) !important;
    min-height: 0 !important;
    align-self: start !important;
    padding: clamp(22px, 2.2vw, 32px) !important;
    border-radius: clamp(26px, 3vw, 36px) !important;
    grid-template-columns: minmax(0, 1fr) clamp(100px, 9vw, 140px) !important;
    align-items: center !important;
    gap: clamp(16px, 2vw, 28px) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid .practice-hero h2,
  html body #practice:not(.practice-detail-mode) .practice-top-grid .practice-hero h2 {
    max-width: 12.5em !important;
    font-size: clamp(28px, 2.65vw, 40px) !important;
    line-height: 1.08 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid .practice-hero p:not(.eyebrow),
  html body #practice:not(.practice-detail-mode) .practice-top-grid .practice-hero p:not(.eyebrow),
  html body #practice.active-view:not(.practice-detail-mode) .practice-hero-points,
  html body #practice:not(.practice-detail-mode) .practice-hero-points {
    display: none !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid .practice-hero > img,
  html body #practice:not(.practice-detail-mode) .practice-top-grid .practice-hero > img {
    width: clamp(100px, 9vw, 140px) !important;
    max-height: clamp(110px, 10vw, 150px) !important;
    object-fit: contain !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card,
  html body #practice:not(.practice-detail-mode) .practice-plan-card {
    height: clamp(238px, 19vw, 300px) !important;
    min-height: 0 !important;
    align-self: start !important;
    padding: clamp(18px, 2vw, 28px) !important;
    border-radius: clamp(22px, 2.5vw, 32px) !important;
    gap: clamp(10px, 1.2vw, 16px) !important;
    align-content: space-between !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card strong,
  html body #practice:not(.practice-detail-mode) .practice-plan-card strong {
    font-size: clamp(23px, 2vw, 30px) !important;
    line-height: 1.14 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card p,
  html body #practice:not(.practice-detail-mode) .practice-plan-card p {
    font-size: clamp(14px, 1.1vw, 17px) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card .primary-btn,
  html body #practice:not(.practice-detail-mode) .practice-plan-card .primary-btn {
    min-height: clamp(38px, 3vw, 46px) !important;
    width: fit-content !important;
    padding: 0 clamp(16px, 1.7vw, 24px) !important;
    font-size: clamp(14px, 1.15vw, 17px) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .split-layout.practice-dashboard-layout,
  html body #practice:not(.practice-detail-mode) .split-layout.practice-dashboard-layout {
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr) !important;
    gap: clamp(16px, 1.8vw, 24px) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-side-card,
  html body #practice.active-view:not(.practice-detail-mode) .practice-panel,
  html body #practice:not(.practice-detail-mode) .practice-side-card,
  html body #practice:not(.practice-detail-mode) .practice-panel {
    padding: clamp(18px, 2vw, 26px) !important;
    border-radius: clamp(22px, 2.4vw, 30px) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-side-card h3,
  html body #practice:not(.practice-detail-mode) .practice-side-card h3,
  html body #practice.active-view:not(.practice-detail-mode) .panel-heading h2,
  html body #practice:not(.practice-detail-mode) .panel-heading h2 {
    font-size: clamp(25px, 2.2vw, 34px) !important;
    line-height: 1.12 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-category-list button,
  html body #practice:not(.practice-detail-mode) .practice-category-list button {
    min-height: clamp(48px, 4vw, 60px) !important;
    padding: 0 clamp(12px, 1.4vw, 18px) !important;
    border-radius: clamp(14px, 1.6vw, 20px) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-category-list button strong,
  html body #practice:not(.practice-detail-mode) .practice-category-list button strong {
    font-size: clamp(15px, 1.3vw, 19px) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .figma-type-card-grid,
  html body #practice:not(.practice-detail-mode) .figma-type-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: clamp(14px, 1.5vw, 20px) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .figma-type-card,
  html body #practice:not(.practice-detail-mode) .figma-type-card {
    min-height: clamp(136px, 11.5vw, 168px) !important;
    padding: clamp(16px, 1.6vw, 22px) !important;
    border-radius: clamp(22px, 2.3vw, 30px) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .figma-type-card strong,
  html body #practice:not(.practice-detail-mode) .figma-type-card strong {
    font-size: clamp(18px, 1.55vw, 24px) !important;
    line-height: 1.2 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .figma-type-card small,
  html body #practice:not(.practice-detail-mode) .figma-type-card small {
    font-size: clamp(12px, 1vw, 15px) !important;
    line-height: 1.35 !important;
  }
}

/* Unified narrow desktop density: one sidebar width and compact banners across pages. */
@media (min-width: 761px) and (max-width: 1600px) {
  html body:not(:is(.view-agent, .view-community)) .app-shell,
  html body.view-practice .app-shell {
    grid-template-columns: 250px minmax(0, 1fr) !important;
    gap: 28px !important;
    padding: 24px 28px !important;
    align-items: start !important;
  }

  html body:not(.view-agent) .sidebar,
  html body.view-practice .sidebar {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: calc(100vh - 48px) !important;
    min-height: 640px !important;
    padding: 24px 22px !important;
    border-radius: 28px !important;
  }

  html body .brand,
  html body.view-practice .brand {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 12px !important;
    justify-items: stretch !important;
  }

  html body .brand-icon,
  html body.view-practice .brand-icon {
    width: 46px !important;
    height: 46px !important;
  }

  html body .brand-copy,
  html body.view-practice .brand-copy,
  html body .exam-type-picker,
  html body.view-practice .exam-type-picker {
    display: grid !important;
    min-width: 0 !important;
  }

  html body .brand-copy strong,
  html body.view-practice .brand-copy strong {
    overflow: hidden !important;
    font-size: 26px !important;
    line-height: 1.08 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body .exam-type-picker select,
  html body.view-practice .exam-type-picker select {
    max-width: 100% !important;
    font-size: 15px !important;
  }

  html body .nav-list,
  html body.view-practice .nav-list {
    width: 100% !important;
    gap: 18px !important;
    margin-top: 46px !important;
  }

  html body .nav-link,
  html body .nav-link.active,
  html body.view-practice .nav-link,
  html body.view-practice .nav-link.active {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-content: start !important;
    column-gap: 10px !important;
    width: 100% !important;
    max-width: none !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 18px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    font-size: 19px !important;
  }

  html body .sidebar .sidebar-user-card,
  html body .sidebar .sidebar-user-card.is-logged-in {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 72px !important;
    height: auto !important;
    grid-template-columns: 44px minmax(0, 1fr) 26px !important;
    padding: 10px 12px !important;
    margin-inline: 0 !important;
    text-align: left !important;
  }

  html body .sidebar .sidebar-user-card span,
  html body .sidebar .sidebar-user-card b {
    display: block !important;
    min-width: 0 !important;
  }

  html body .sidebar .sidebar-user-card strong,
  html body .sidebar .sidebar-user-card small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body:not(:is(.view-agent, .view-community)) .main {
    min-width: 0 !important;
    padding: 0 !important;
  }

  html body .home-v2-desktop-trial {
    gap: 18px !important;
  }

  html body .home-web-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px) !important;
    gap: 24px !important;
    align-items: center !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 28px 32px !important;
    border-radius: 28px !important;
  }

  html body .home-frame-greeting {
    display: none !important;
  }

  html body .home-web-hero-copy h2 {
    max-width: 10em !important;
    font-size: clamp(32px, 3.1vw, 46px) !important;
    line-height: 1.05 !important;
  }

  html body .home-web-hero-copy > div {
    margin-top: 22px !important;
  }

  html body .home-web-primary,
  html body .home-web-secondary {
    height: 40px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
  }

  html body .home-web-goal {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding: 18px !important;
    border-radius: 22px !important;
  }

  html body .home-web-goal-main {
    gap: 14px !important;
  }

  html body .home-web-goal-main strong {
    font-size: clamp(42px, 4.2vw, 58px) !important;
  }

  html body .home-web-goal-main i {
    width: clamp(74px, 6.2vw, 92px) !important;
    height: clamp(74px, 6.2vw, 92px) !important;
  }

  html body .home-web-goal-stats {
    gap: 8px !important;
  }

  html body .home-web-goal-stats small {
    min-height: 54px !important;
    padding: 8px 10px !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) > .practice-top-grid,
  html body #practice:not(.practice-detail-mode) > .practice-top-grid {
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 16px !important;
    padding: 18px !important;
    margin-bottom: 22px !important;
    align-items: start !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid .practice-hero,
  html body #practice:not(.practice-detail-mode) .practice-top-grid .practice-hero,
  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card,
  html body #practice:not(.practice-detail-mode) .practice-plan-card {
    height: 232px !important;
    min-height: 232px !important;
    max-height: 232px !important;
    padding: 24px !important;
    border-radius: 26px !important;
    overflow: hidden !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid .practice-hero,
  html body #practice:not(.practice-detail-mode) .practice-top-grid .practice-hero {
    grid-template-columns: minmax(0, 1fr) 118px !important;
    gap: 18px !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid .practice-hero h2,
  html body #practice:not(.practice-detail-mode) .practice-top-grid .practice-hero h2 {
    max-width: 12em !important;
    font-size: clamp(28px, 2.4vw, 38px) !important;
    line-height: 1.08 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid .practice-hero > img,
  html body #practice:not(.practice-detail-mode) .practice-top-grid .practice-hero > img {
    width: 118px !important;
    max-height: 130px !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card,
  html body #practice:not(.practice-detail-mode) .practice-plan-card {
    align-content: space-between !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card strong,
  html body #practice:not(.practice-detail-mode) .practice-plan-card strong {
    font-size: 25px !important;
    line-height: 1.15 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card p,
  html body #practice:not(.practice-detail-mode) .practice-plan-card p {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card .primary-btn,
  html body #practice:not(.practice-detail-mode) .practice-plan-card .primary-btn {
    min-height: 40px !important;
    padding: 0 18px !important;
    font-size: 15px !important;
  }
}

@media (min-width: 761px) and (max-width: 1240px) {
  html body .home-web-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
  }

  html body .home-web-goal {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: min(100%, 520px) !important;
    margin-top: 22px !important;
  }
}

/* Practice filters should behave like controls, not oversized cards. */
@media (min-width: 761px) and (max-width: 1600px) {
  html body #practice.active-view:not(.practice-detail-mode) .split-layout.practice-dashboard-layout,
  html body #practice:not(.practice-detail-mode) .split-layout.practice-dashboard-layout {
    grid-template-columns: clamp(188px, 17vw, 244px) minmax(0, 1fr) !important;
    gap: clamp(14px, 1.6vw, 22px) !important;
    align-items: start !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-left-rail,
  html body #practice:not(.practice-detail-mode) .practice-left-rail {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    display: grid !important;
    gap: 12px !important;
    position: sticky !important;
    top: 18px !important;
    max-height: calc(100vh - 42px) !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-side-card,
  html body #practice:not(.practice-detail-mode) .practice-side-card {
    padding: clamp(14px, 1.3vw, 18px) !important;
    border-radius: clamp(18px, 1.8vw, 24px) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-side-card h3,
  html body #practice:not(.practice-detail-mode) .practice-side-card h3 {
    margin: 0 0 12px !important;
    font-size: clamp(20px, 1.6vw, 26px) !important;
    line-height: 1.1 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-category-list,
  html body #practice:not(.practice-detail-mode) .practice-category-list {
    gap: 8px !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-category-list button,
  html body #practice:not(.practice-detail-mode) .practice-category-list button {
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    min-height: clamp(40px, 3.3vw, 48px) !important;
    height: clamp(40px, 3.3vw, 48px) !important;
    padding: 0 10px !important;
    border-radius: 14px !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-category-list button span,
  html body #practice:not(.practice-detail-mode) .practice-category-list button span {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 10px !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-category-list button svg,
  html body #practice:not(.practice-detail-mode) .practice-category-list button svg {
    width: 15px !important;
    height: 15px !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-category-list button strong,
  html body #practice:not(.practice-detail-mode) .practice-category-list button strong {
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: clamp(13px, 1.05vw, 16px) !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-category-list button em,
  html body #practice:not(.practice-detail-mode) .practice-category-list button em {
    min-width: 44px !important;
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: clamp(12px, 0.95vw, 15px) !important;
    line-height: 28px !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-data-card,
  html body #practice:not(.practice-detail-mode) .practice-data-card {
    display: none !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-panel,
  html body #practice:not(.practice-detail-mode) .practice-panel {
    padding: clamp(14px, 1.4vw, 20px) !important;
    border-radius: clamp(18px, 2vw, 26px) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .figma-type-card-grid,
  html body #practice:not(.practice-detail-mode) .figma-type-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(clamp(236px, 24vw, 340px), 1fr)) !important;
    gap: clamp(12px, 1.4vw, 18px) !important;
  }
}

@media (min-width: 761px) and (max-height: 760px) {
  html body #practice.active-view:not(.practice-detail-mode) .practice-category-list button,
  html body #practice:not(.practice-detail-mode) .practice-category-list button {
    min-height: 38px !important;
    height: 38px !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-side-card h3,
  html body #practice:not(.practice-detail-mode) .practice-side-card h3 {
    font-size: 20px !important;
  }
}

/* Home dashboard compact summary: keep the first screen practical on real laptop/tablet windows. */
@media (min-width: 761px) and (max-width: 1600px) {
  html body .home-web-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px) !important;
    min-height: 0 !important;
    height: auto !important;
    padding: clamp(20px, 2vw, 28px) !important;
    gap: clamp(18px, 2vw, 24px) !important;
    align-items: center !important;
  }

  html body .home-web-hero-copy h2 {
    max-width: 9em !important;
    font-size: clamp(28px, 2.6vw, 38px) !important;
    line-height: 1.06 !important;
  }

  html body .home-web-hero-copy > div {
    margin-top: 18px !important;
  }

  html body .home-web-goal {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 16px !important;
    border-radius: 20px !important;
  }

  html body .home-web-goal > span {
    margin-bottom: 10px !important;
    font-size: 14px !important;
  }

  html body .home-web-goal-main {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 12px !important;
    align-items: center !important;
  }

  html body .home-web-goal-main strong {
    font-size: clamp(34px, 3vw, 46px) !important;
    line-height: 1 !important;
  }

  html body .home-web-goal-main em {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  html body .home-web-goal-main i {
    width: clamp(56px, 4.8vw, 72px) !important;
    height: clamp(56px, 4.8vw, 72px) !important;
  }

  html body .home-web-goal-main i b {
    font-size: clamp(15px, 1.25vw, 18px) !important;
  }

  html body .home-web-goal-stats {
    display: none !important;
  }

  html body .home-web-goal p {
    margin-top: 10px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  html body .home-web-metrics {
    margin-top: 0 !important;
  }
}

@media (min-width: 761px) and (max-width: 1240px) {
  html body .home-web-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .home-web-goal {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: min(100%, 440px) !important;
    margin-top: 16px !important;
  }
}

/* Home action buttons: prevent Chinese labels from wrapping one character per line. */
@media (min-width: 761px) and (max-width: 1600px) {
  html body .home-web-other > div,
  html body .home-web-quick > div {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }

  html body .home-web-other button,
  html body .home-web-quick button {
    grid-template-columns: 34px minmax(0, 1fr) 16px !important;
    gap: 10px !important;
    min-height: 52px !important;
    padding: 9px 10px !important;
    border-radius: 16px !important;
  }

  html body .home-web-quick button {
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }

  html body .home-web-other span,
  html body .home-web-quick span {
    width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
  }

  html body .home-web-other span svg,
  html body .home-web-quick span svg {
    width: 17px !important;
    height: 17px !important;
  }

  html body .home-web-other strong,
  html body .home-web-quick strong {
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: clamp(13px, 1vw, 15px) !important;
    line-height: 1.18 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
  }

  html body .home-web-other em {
    width: 16px !important;
    min-width: 16px !important;
  }

  html body .home-web-other em svg {
    width: 15px !important;
    height: 15px !important;
  }
}

/* Stable shell frame: keep sidebar and content anchored while switching pages. */
@media (min-width: 761px) and (max-width: 1600px) {
  html body {
    --desktop-sidebar-width: clamp(208px, 17.5vw, 232px);
    --desktop-shell-gap: clamp(18px, 2vw, 26px);
    --desktop-shell-pad-x: clamp(18px, 2vw, 26px);
    --desktop-shell-pad-y: clamp(18px, 1.8vw, 24px);
    --desktop-sidebar-pad-x: clamp(16px, 1.45vw, 20px);
    --desktop-nav-height: clamp(48px, 4.2vw, 54px);
    --desktop-nav-font: clamp(16px, 1.45vw, 18px);
  }

  html body:not(:is(.view-agent, .view-community)) .app-shell,
  html body.view-admin .app-shell,
  html body.view-dashboard .app-shell,
  html body.view-practice .app-shell,
  html body.view-mock .app-shell,
  html body:has(#teacher.active-view) .app-shell {
    display: grid !important;
    grid-template-columns: var(--desktop-sidebar-width) minmax(0, 1fr) !important;
    gap: var(--desktop-shell-gap) !important;
    align-items: start !important;
    width: 100% !important;
    min-height: 100vh !important;
    padding: var(--desktop-shell-pad-y) var(--desktop-shell-pad-x) !important;
    box-sizing: border-box !important;
  }

  html body:not(.view-agent) .sidebar,
  html body.view-dashboard .sidebar,
  html body.view-practice .sidebar,
  html body.view-mock .sidebar,
  html body:has(#teacher.active-view) .sidebar {
    position: sticky !important;
    top: var(--desktop-shell-pad-y) !important;
    grid-column: 1 !important;
    width: var(--desktop-sidebar-width) !important;
    min-width: var(--desktop-sidebar-width) !important;
    max-width: var(--desktop-sidebar-width) !important;
    height: calc(100vh - (var(--desktop-shell-pad-y) * 2)) !important;
    min-height: 640px !important;
    padding: var(--desktop-shell-pad-y) var(--desktop-sidebar-pad-x) !important;
    padding-inline: var(--desktop-sidebar-pad-x) !important;
    margin: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
    transition: none !important;
  }

  html body:not(:is(.view-agent, .view-community)) .main,
  html body.view-dashboard .main,
  html body.view-practice .main,
  html body.view-mock .main,
  html body:has(#teacher.active-view) .main {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
    transition: none !important;
  }

  html body:not(.view-agent) .view,
  html body:not(.view-agent) .view.active-view,
  html body #dashboard.active-view,
  html body #practice.active-view,
  html body #mock.active-view,
  html body #admin.active-view,
  html body #teacher.active-view {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  html body #mock.active-view {
    display: block !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body .nav-list,
  html body .nav-link,
  html body .nav-link.active {
    transform: none !important;
  }

  html body .brand {
    grid-template-columns: clamp(38px, 3.5vw, 44px) minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  html body .brand-icon {
    width: clamp(38px, 3.5vw, 44px) !important;
    height: clamp(38px, 3.5vw, 44px) !important;
  }

  html body .brand-copy strong {
    font-size: clamp(21px, 1.9vw, 24px) !important;
  }

  html body .exam-type-picker select {
    font-size: clamp(13px, 1.2vw, 14px) !important;
  }

  html body .nav-list {
    gap: clamp(12px, 1.35vw, 16px) !important;
    margin-top: clamp(34px, 3.4vw, 42px) !important;
  }

  html body .nav-link,
  html body .nav-link.active {
    grid-template-columns: 20px minmax(0, 1fr) !important;
    column-gap: 9px !important;
    height: var(--desktop-nav-height) !important;
    min-height: var(--desktop-nav-height) !important;
    padding: 0 clamp(14px, 1.3vw, 17px) !important;
    border-radius: 16px !important;
    font-size: var(--desktop-nav-font) !important;
  }

  html body .nav-link .icon,
  html body .nav-link svg {
    width: 20px !important;
    height: 20px !important;
  }

  html body .sidebar .sidebar-user-card,
  html body .sidebar .sidebar-user-card.is-logged-in {
    grid-template-columns: 40px minmax(0, 1fr) 24px !important;
    min-height: 66px !important;
    padding: 9px 10px !important;
    border-radius: 18px !important;
  }
}

/* Keep custom sidebar sizing identical on every top-level route. */
@media (min-width: 761px) and (max-width: 1600px) {
  html body.view-dashboard .sidebar,
  html body.view-practice .sidebar,
  html body.view-mock .sidebar,
  html body.view-admin .sidebar,
  html body:has(#teacher.active-view) .sidebar {
    width: var(--desktop-sidebar-width) !important;
    min-width: var(--desktop-sidebar-width) !important;
    max-width: var(--desktop-sidebar-width) !important;
    padding: var(--desktop-shell-pad-y) var(--desktop-sidebar-pad-x) !important;
  }

  html body.view-dashboard .nav-list,
  html body.view-practice .nav-list,
  html body.view-mock .nav-list,
  html body.view-admin .nav-list,
  html body:has(#teacher.active-view) .nav-list {
    gap: clamp(12px, 1.35vw, 16px) !important;
    margin-top: clamp(34px, 3.4vw, 42px) !important;
  }

  html body.view-dashboard .nav-link,
  html body.view-dashboard .nav-link.active,
  html body.view-practice .nav-link,
  html body.view-practice .nav-link.active,
  html body.view-mock .nav-link,
  html body.view-mock .nav-link.active,
  html body.view-admin .nav-link,
  html body.view-admin .nav-link.active,
  html body:has(#teacher.active-view) .nav-link,
  html body:has(#teacher.active-view) .nav-link.active {
    width: 100% !important;
    max-width: none !important;
    height: var(--desktop-nav-height) !important;
    min-height: var(--desktop-nav-height) !important;
    padding: 0 clamp(14px, 1.3vw, 17px) !important;
    border-radius: 16px !important;
    font-size: var(--desktop-nav-font) !important;
  }
}

/* Practice detail should keep the scoring panel on the right on real laptop widths. */
@media (min-width: 761px) and (max-width: 1560px) {
  html body #practice.practice-detail-mode .practice-dashboard-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 8px minmax(240px, clamp(240px, 22vw, 300px)) !important;
    gap: 8px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html body #practice.practice-detail-mode .practice-panel,
  html body #practice.practice-detail-mode .stage-practice {
    grid-column: 1 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  html body #practice.practice-detail-mode .feedback-resizer {
    display: block !important;
    grid-column: 2 !important;
    width: 8px !important;
    min-width: 8px !important;
  }

  html body #practice.practice-detail-mode .feedback-panel {
    grid-column: 3 !important;
    grid-row: 1 !important;
    position: sticky !important;
    top: calc(var(--desktop-shell-pad-y, 24px) - 8px) !important;
    align-self: start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: calc(100vh - (var(--desktop-shell-pad-y, 24px) * 2)) !important;
    margin: 0 !important;
    overflow: auto !important;
    transform: none !important;
  }

  html body #practice.practice-detail-mode .stage-practice .practice-workbench {
    display: grid !important;
    grid-template-columns: minmax(176px, clamp(176px, 19vw, 230px)) 8px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html body #practice.practice-detail-mode .stage-practice .question-browser {
    min-width: 0 !important;
    width: 100% !important;
    padding: 12px !important;
  }

  html body #practice.practice-detail-mode .stage-practice .workbench-resizer {
    display: block !important;
    width: 8px !important;
    min-width: 8px !important;
  }

  html body #practice.practice-detail-mode .stage-practice .answer-stage,
  html body #practice.practice-detail-mode .stage-practice .question-card,
  html body #practice.practice-detail-mode .stage-practice .answer-workspace,
  html body #practice.practice-detail-mode .stage-practice .recorder,
  html body #practice.practice-detail-mode .stage-practice .practice-discussion {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Align the feedback column with the answer card in practice detail mode. */
@media (min-width: 761px) and (max-width: 1560px) {
  html body #practice.practice-detail-mode .feedback-panel,
  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.speech-report-mode {
    top: calc(var(--desktop-shell-pad-y, 24px) - 8px) !important;
    padding-top: 18px !important;
  }
}

/* Dashboard and practice banners: match the compact practice-page arrangement and avoid clipping CTA buttons. */
@media (min-width: 761px) and (max-width: 1600px) {
  html body #dashboard.active-view .home-web-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) clamp(260px, 25vw, 320px) !important;
    gap: clamp(14px, 1.6vw, 18px) !important;
    align-items: stretch !important;
    min-height: 0 !important;
    height: auto !important;
    padding: clamp(18px, 1.8vw, 24px) !important;
    border-radius: 26px !important;
    overflow: visible !important;
  }

  html body #dashboard.active-view .home-web-hero-copy {
    display: grid !important;
    align-content: center !important;
    min-width: 0 !important;
    min-height: clamp(188px, 18vw, 228px) !important;
  }

  html body #dashboard.active-view .home-web-hero-copy h2 {
    max-width: 12em !important;
    font-size: clamp(28px, 2.55vw, 38px) !important;
    line-height: 1.08 !important;
  }

  html body #dashboard.active-view .home-web-hero-copy > div {
    margin-top: clamp(18px, 1.8vw, 24px) !important;
  }

  html body #dashboard.active-view .home-web-primary {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    white-space: nowrap !important;
  }

  html body #dashboard.active-view .home-frame-greeting {
    display: none !important;
  }

  html body #dashboard.active-view .home-web-goal {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: grid !important;
    align-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: clamp(188px, 18vw, 228px) !important;
    height: auto !important;
    margin: 0 !important;
    padding: clamp(18px, 1.7vw, 22px) !important;
    border-radius: 24px !important;
    overflow: visible !important;
  }

  html body #dashboard.active-view .home-web-goal > span {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  html body #dashboard.active-view .home-web-goal-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    align-items: center !important;
    margin: 10px 0 !important;
  }

  html body #dashboard.active-view .home-web-goal-main strong {
    font-size: clamp(42px, 4.3vw, 58px) !important;
    line-height: 0.95 !important;
  }

  html body #dashboard.active-view .home-web-goal-main em {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  html body #dashboard.active-view .home-web-goal-main i {
    width: clamp(58px, 5vw, 72px) !important;
    height: clamp(58px, 5vw, 72px) !important;
  }

  html body #dashboard.active-view .home-web-goal-stats {
    display: none !important;
  }

  html body #dashboard.active-view .home-web-goal p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) > .practice-top-grid,
  html body #practice:not(.practice-detail-mode) > .practice-top-grid {
    grid-template-columns: minmax(0, 1fr) clamp(260px, 25vw, 320px) !important;
    gap: clamp(14px, 1.6vw, 18px) !important;
    padding: clamp(18px, 1.8vw, 24px) !important;
    overflow: visible !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid .practice-hero,
  html body #practice:not(.practice-detail-mode) .practice-top-grid .practice-hero,
  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card,
  html body #practice:not(.practice-detail-mode) .practice-plan-card {
    min-height: clamp(188px, 18vw, 228px) !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card,
  html body #practice:not(.practice-detail-mode) .practice-plan-card {
    display: grid !important;
    align-content: space-between !important;
    gap: 12px !important;
    padding: clamp(18px, 1.7vw, 22px) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card .primary-btn,
  html body #practice:not(.practice-detail-mode) .practice-plan-card .primary-btn,
  html body #practice.active-view:not(.practice-detail-mode) #dailyPracticeButton,
  html body #practice:not(.practice-detail-mode) #dailyPracticeButton {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 18px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    transform: none !important;
  }
}

@media (min-width: 761px) and (max-width: 1240px) {
  html body #dashboard.active-view .home-web-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body #dashboard.active-view .home-web-goal {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: min(100%, 420px) !important;
  }
}

/* Stable sidebar brand: prevent the logo/title block from resizing between routes. */
@media (min-width: 761px) and (max-width: 1600px) {
  html body .sidebar .brand,
  html body.view-dashboard .sidebar .brand,
  html body.view-practice .sidebar .brand,
  html body.view-mock .sidebar .brand,
  html body.view-admin .sidebar .brand,
  html body:has(#teacher.active-view) .sidebar .brand {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    grid-template-rows: 44px !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    overflow: visible !important;
    transform: none !important;
    transition: none !important;
  }

  html body .sidebar .brand-icon,
  html body.view-dashboard .sidebar .brand-icon,
  html body.view-practice .sidebar .brand-icon,
  html body.view-mock .sidebar .brand-icon,
  html body.view-admin .sidebar .brand-icon,
  html body:has(#teacher.active-view) .sidebar .brand-icon {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    transform: none !important;
    transition: none !important;
  }

  html body .sidebar .brand-icon img,
  html body.view-dashboard .sidebar .brand-icon img,
  html body.view-practice .sidebar .brand-icon img,
  html body.view-mock .sidebar .brand-icon img,
  html body.view-admin .sidebar .brand-icon img,
  html body:has(#teacher.active-view) .sidebar .brand-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  html body .sidebar .brand-copy,
  html body.view-dashboard .sidebar .brand-copy,
  html body.view-practice .sidebar .brand-copy,
  html body.view-mock .sidebar .brand-copy,
  html body.view-admin .sidebar .brand-copy,
  html body:has(#teacher.active-view) .sidebar .brand-copy {
    display: grid !important;
    align-content: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    overflow: hidden !important;
    transform: none !important;
    transition: none !important;
  }

  html body .sidebar .brand-copy strong,
  html body.view-dashboard .sidebar .brand-copy strong,
  html body.view-practice .sidebar .brand-copy strong,
  html body.view-mock .sidebar .brand-copy strong,
  html body.view-admin .sidebar .brand-copy strong,
  html body:has(#teacher.active-view) .sidebar .brand-copy strong {
    display: block !important;
    overflow: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    transform: none !important;
    transition: none !important;
  }

  html body .sidebar .exam-type-picker,
  html body.view-dashboard .sidebar .exam-type-picker,
  html body.view-practice .sidebar .exam-type-picker,
  html body.view-mock .sidebar .exam-type-picker,
  html body.view-admin .sidebar .exam-type-picker,
  html body:has(#teacher.active-view) .sidebar .exam-type-picker {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    overflow: hidden !important;
    transform: none !important;
    transition: none !important;
  }

  html body .sidebar .exam-type-picker select,
  html body.view-dashboard .sidebar .exam-type-picker select,
  html body.view-practice .sidebar .exam-type-picker select,
  html body.view-mock .sidebar .exam-type-picker select,
  html body.view-admin .sidebar .exam-type-picker select,
  html body:has(#teacher.active-view) .sidebar .exam-type-picker select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 16px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Apple-style glass polish for the mobile subject picker. */
@media (max-width: 760px) {
  html body.view-practice:not(.practice-answer-detail-active) {
    background:
      linear-gradient(180deg, #f7f7f9 0%, #eef0f4 48%, #f9fafb 100%) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) {
    padding: 18px clamp(14px, 4vw, 24px) calc(104px + env(safe-area-inset-bottom)) !important;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(236, 239, 245, 0.2)) !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-picker {
    display: grid !important;
    gap: 22px !important;
    max-width: 720px !important;
    margin: 0 auto !important;
  }

  html body #practice:not(.practice-detail-mode) .figma-type-grid-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 18px !important;
    align-items: end !important;
    padding: clamp(24px, 6vw, 36px) clamp(24px, 6vw, 40px) !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 34px !important;
    background: rgba(255, 255, 255, 0.58) !important;
    backdrop-filter: blur(30px) saturate(1.28) !important;
    -webkit-backdrop-filter: blur(30px) saturate(1.28) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 22px 55px rgba(31, 41, 55, 0.1) !important;
  }

  html body #practice:not(.practice-detail-mode) .practice-mobile-kicker {
    display: none !important;
  }

  html body #practice:not(.practice-detail-mode) .figma-type-grid-head h2 {
    margin: 0 !important;
    color: #111318 !important;
    font-size: clamp(34px, 8vw, 46px) !important;
    font-weight: 950 !important;
    line-height: 1.02 !important;
    letter-spacing: 0 !important;
  }

  html body #practice:not(.practice-detail-mode) .figma-type-grid-head p {
    display: none !important;
  }

  html body #practice:not(.practice-detail-mode) .figma-type-grid-head > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 92px !important;
    height: 44px !important;
    padding: 0 18px !important;
    border: 1px solid rgba(188, 142, 30, 0.26) !important;
    border-radius: 999px !important;
    background: rgba(255, 241, 204, 0.58) !important;
    color: #5f430e !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(14px, 3.6vw, 20px) !important;
    padding: clamp(16px, 4vw, 24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 34px !important;
    background: rgba(255, 255, 255, 0.48) !important;
    backdrop-filter: blur(32px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(32px) saturate(1.3) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 24px 60px rgba(31, 41, 55, 0.11) !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card {
    position: relative !important;
    display: grid !important;
    grid-template-rows: auto 1fr auto !important;
    place-items: center !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 158px !important;
    padding: 22px 16px 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.82) !important;
    border-radius: 28px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.5)) !important;
    backdrop-filter: blur(22px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.2) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 14px 32px rgba(31, 41, 55, 0.08) !important;
    color: #15171c !important;
    overflow: hidden !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 1px !important;
    border-radius: 27px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.08)) !important;
    pointer-events: none !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card i {
    position: relative !important;
    z-index: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 58px !important;
    height: 58px !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.55) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 10px 22px rgba(31, 41, 55, 0.08) !important;
    color: #14171c !important;
    font-size: 18px !important;
    font-style: normal !important;
    font-weight: 950 !important;
    line-height: 1 !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card span {
    position: relative !important;
    z-index: 1 !important;
    align-self: center !important;
    margin-top: 8px !important;
    color: #121418 !important;
    font-size: clamp(22px, 5.6vw, 30px) !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    text-align: center !important;
    letter-spacing: 0 !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card strong {
    position: absolute !important;
    z-index: 2 !important;
    top: 18px !important;
    right: 18px !important;
    min-width: 50px !important;
    height: 34px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.76) !important;
    border-radius: 999px !important;
    background: rgba(241, 242, 245, 0.7) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
    color: #4d5561 !important;
    font-size: clamp(14px, 3.5vw, 20px) !important;
    font-weight: 900 !important;
    line-height: 34px !important;
    text-align: center !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card small {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    max-width: 9em !important;
    color: #7a818d !important;
    font-size: clamp(13px, 3vw, 18px) !important;
    font-weight: 780 !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card:active {
    transform: scale(0.985) !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card.active,
  html body #practice:not(.practice-detail-mode) .mobile-subject-card:hover,
  html body #practice:not(.practice-detail-mode) .mobile-subject-card:focus-visible {
    border-color: rgba(255, 255, 255, 0.95) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 249, 255, 0.6)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 18px 42px rgba(31, 41, 55, 0.13) !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card.active i {
    background: rgba(20, 22, 27, 0.9) !important;
    border-color: rgba(20, 22, 27, 0.12) !important;
    color: #fff !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-guide {
    display: none !important;
  }

  html body .mobile-tabbar,
  html body .bottom-nav,
  html body .mobile-bottom-nav {
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    background: rgba(255, 255, 255, 0.58) !important;
    backdrop-filter: blur(28px) saturate(1.25) !important;
    -webkit-backdrop-filter: blur(28px) saturate(1.25) !important;
    box-shadow: 0 -10px 35px rgba(31, 41, 55, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
  }
}

/* Mobile subject-selected page cleanup: after choosing a subject, show type cards only. */
@media (max-width: 760px) {
  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected {
    display: grid !important;
    gap: 14px !important;
    max-width: 720px !important;
    margin: 0 auto !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .mobile-subject-grid,
  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .mobile-subject-guide {
    display: none !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-grid-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 22px 24px !important;
    border-radius: 28px !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-grid-head h2 {
    font-size: clamp(30px, 7vw, 40px) !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-grid-head p {
    display: none !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-grid-head > span {
    min-width: 82px !important;
    height: 38px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .mobile-type-section-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 4px !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .mobile-type-section-head strong {
    font-size: 20px !important;
    line-height: 1.15 !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .mobile-type-section-head button {
    min-height: 34px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-card-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    margin-top: 0 !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-card {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    min-height: 104px !important;
    height: auto !important;
    padding: 16px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-dot {
    grid-row: 1 / span 2 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 16px !important;
    font-size: var(--type-code-size, 13px) !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-card strong {
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: 20px !important;
    line-height: 1.16 !important;
    text-overflow: ellipsis !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-card small {
    min-width: 0 !important;
    overflow: hidden !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .mobile-type-meta {
    align-self: start !important;
    min-width: 52px !important;
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    line-height: 28px !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-card b {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: end !important;
    min-width: 76px !important;
    height: 34px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.62) !important;
    backdrop-filter: blur(18px) saturate(1.22) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.22) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 8px 18px rgba(15, 23, 42, 0.08),
      0 2px 10px color-mix(in srgb, var(--type-color, #007aff) 14%, transparent) !important;
    color: color-mix(in srgb, var(--type-color, #007aff) 86%, #111827) !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-card b::after {
    content: ">" !important;
    margin-left: 5px !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-card:is(:hover, :focus-visible) b {
    border-color: color-mix(in srgb, var(--type-color, #007aff) 26%, rgba(255, 255, 255, 0.78)) !important;
    background: rgba(255, 255, 255, 0.76) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 10px 22px rgba(15, 23, 42, 0.1),
      0 3px 14px color-mix(in srgb, var(--type-color, #007aff) 18%, transparent) !important;
  }
}

/* Final mobile practice polish: compact Apple-glass subject and type entry screens. */
@media (max-width: 760px) {
  html body #practice.active-view:not(.practice-detail-mode) {
    padding: 14px 18px calc(92px + env(safe-area-inset-bottom)) !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow {
    width: min(100%, 620px) !important;
    gap: 14px !important;
  }

  html body #practice:not(.practice-detail-mode) .figma-type-grid-head {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 12px !important;
    padding: 22px 22px !important;
    border-radius: 28px !important;
  }

  html body #practice:not(.practice-detail-mode) .figma-type-grid-head h2 {
    max-width: 100% !important;
    font-size: clamp(28px, 7.2vw, 36px) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
  }

  html body #practice:not(.practice-detail-mode) .figma-type-grid-head > span {
    justify-self: start !important;
    min-width: 76px !important;
    height: 34px !important;
    padding: 0 13px !important;
    font-size: 14px !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-grid {
    gap: 12px !important;
    padding: 14px !important;
    border-radius: 28px !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    place-items: initial !important;
    aspect-ratio: auto !important;
    min-height: 106px !important;
    height: auto !important;
    padding: 14px !important;
    gap: 6px 10px !important;
    border-radius: 22px !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card i {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 15px !important;
    font-size: 13px !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card span {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: end !important;
    justify-self: start !important;
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1.1 !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card strong {
    position: static !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    min-width: 42px !important;
    height: 26px !important;
    padding: 0 9px !important;
    font-size: 13px !important;
    line-height: 26px !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-subject-card small {
    grid-column: 2 / span 2 !important;
    grid-row: 2 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-grid-head {
    padding: 18px 20px !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-grid-head h2 {
    font-size: clamp(28px, 7vw, 34px) !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-card {
    grid-template-columns: 50px minmax(0, 1fr) auto !important;
    min-height: 96px !important;
    padding: 14px !important;
    border-radius: 20px !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-card strong {
    font-size: 18px !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-selected .figma-type-card small {
    font-size: 12px !important;
  }
}

/* Mobile subject picker redesign: iOS settings-like glass list, cleaner than 2x2 tiles. */
@media (max-width: 760px) {
  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-picker {
    width: min(100%, 520px) !important;
    gap: 12px !important;
    margin: 0 auto !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-picker .figma-type-grid-head {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    min-height: 0 !important;
    padding: 18px 18px !important;
    border-radius: 26px !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-picker .figma-type-grid-head h2 {
    font-size: clamp(30px, 7.4vw, 38px) !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-picker .figma-type-grid-head > span {
    justify-self: end !important;
    min-width: 76px !important;
    height: 34px !important;
    padding: 0 12px !important;
    border-color: rgba(184, 137, 28, 0.2) !important;
    background: rgba(255, 245, 222, 0.62) !important;
    font-size: 13px !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-picker .mobile-subject-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(28px) saturate(1.24) !important;
    -webkit-backdrop-filter: blur(28px) saturate(1.24) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 18px 44px rgba(15, 23, 42, 0.09) !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-picker .mobile-subject-card {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    min-height: 82px !important;
    padding: 13px 14px !important;
    gap: 3px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    border-radius: 20px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(248, 250, 252, 0.48)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 10px 22px rgba(15, 23, 42, 0.055) !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-picker .mobile-subject-card::before {
    display: none !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-picker .mobile-subject-card i {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    color: #15171c !important;
    font-size: 14px !important;
    font-weight: 900 !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-picker .mobile-subject-card span {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: end !important;
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 920 !important;
    line-height: 1.05 !important;
    text-align: left !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-picker .mobile-subject-card strong {
    position: static !important;
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
    justify-self: end !important;
    min-width: 54px !important;
    height: 30px !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    background: rgba(245, 247, 250, 0.8) !important;
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 30px !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-picker .mobile-subject-card small {
    grid-column: 2 !important;
    grid-row: 2 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    color: #7a828e !important;
    font-size: 12px !important;
    font-weight: 760 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body #practice:not(.practice-detail-mode) .mobile-question-flow.subject-picker .mobile-subject-card:active {
    transform: scale(0.985) !important;
  }
}

/* Practice answer focus mode: hide the main app sidebar until the cursor nears the left edge. */
@media (min-width: 761px) {
  html body.view-practice.practice-answer-detail-active .app-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding-left: clamp(12px, 1.3vw, 22px) !important;
    padding-right: clamp(14px, 1.8vw, 28px) !important;
  }

  html body.view-practice.practice-answer-detail-active .main {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  html body.view-practice.practice-answer-detail-active .sidebar {
    position: fixed !important;
    z-index: 160 !important;
    top: clamp(12px, 2vh, 28px) !important;
    bottom: clamp(12px, 2vh, 28px) !important;
    left: clamp(8px, 1vw, 18px) !important;
    width: clamp(244px, 23vw, 330px) !important;
    max-width: min(330px, calc(100vw - 56px)) !important;
    height: auto !important;
    overflow: hidden !important;
    opacity: 0.16 !important;
    transform: translateX(calc(-100% + 18px)) !important;
    transition:
      opacity 0.22s ease,
      transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
      box-shadow 0.22s ease !important;
  }

  html body.view-practice.practice-answer-detail-active .sidebar::after {
    content: "" !important;
    position: absolute !important;
    top: 18px !important;
    right: 6px !important;
    width: 4px !important;
    height: calc(100% - 36px) !important;
    border-radius: 999px !important;
    background: rgba(20, 22, 27, 0.16) !important;
    pointer-events: none !important;
  }

  html body.view-practice.practice-answer-detail-active .sidebar:hover,
  html body.view-practice.practice-answer-detail-active .sidebar:focus-within {
    opacity: 1 !important;
    transform: translateX(0) !important;
    overflow-y: auto !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 28px 70px rgba(15, 23, 42, 0.18) !important;
  }

  html body.view-practice.practice-answer-detail-active .sidebar:hover::after,
  html body.view-practice.practice-answer-detail-active .sidebar:focus-within::after {
    opacity: 0 !important;
  }
}

/* Answer mode: collapse the question navigator into a hover drawer to free space. */
@media (min-width: 761px) {
  html body #practice.practice-detail-mode .stage-practice .practice-workbench {
    position: relative !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    overflow: visible !important;
  }

  html body #practice.practice-detail-mode .stage-practice .workbench-resizer {
    display: none !important;
  }

  html body #practice.practice-detail-mode .stage-practice .answer-stage {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body #practice.practice-detail-mode .stage-practice .question-browser {
    position: absolute !important;
    z-index: 80 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: clamp(260px, 24vw, 330px) !important;
    max-width: min(330px, calc(100vw - 96px)) !important;
    min-width: 0 !important;
    height: min(100%, calc(100vh - 48px)) !important;
    max-height: calc(100vh - 48px) !important;
    padding: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(26px) saturate(1.22) !important;
    -webkit-backdrop-filter: blur(26px) saturate(1.22) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 24px 52px rgba(15, 23, 42, 0.18) !important;
    opacity: 0.08 !important;
    transform: translateX(calc(-100% + 22px)) !important;
    transition:
      opacity 0.22s ease,
      transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
      box-shadow 0.22s ease !important;
  }

  html body #practice.practice-detail-mode .stage-practice .question-browser::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    right: -12px !important;
    width: 24px !important;
    height: 92px !important;
    border: 1px solid rgba(255, 255, 255, 0.82) !important;
    border-radius: 999px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 250, 0.7)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 10px 24px rgba(15, 23, 42, 0.14) !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
  }

  html body #practice.practice-detail-mode .stage-practice .question-browser:hover,
  html body #practice.practice-detail-mode .stage-practice .question-browser:focus-within {
    opacity: 1 !important;
    transform: translateX(0) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 28px 70px rgba(15, 23, 42, 0.2) !important;
  }

  html body #practice.practice-detail-mode .stage-practice .question-browser:hover::after,
  html body #practice.practice-detail-mode .stage-practice .question-browser:focus-within::after {
    opacity: 0 !important;
  }
}

/* Desktop top navigation: use the former sidebar as a horizontal glass header. */
@media (min-width: 761px) {
  html body:not(:is(.view-agent, .view-community)) .app-shell,
  html body.view-practice .app-shell,
  html body.view-practice.practice-answer-detail-active .app-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: clamp(14px, 1.8vw, 22px) !important;
    padding: clamp(14px, 1.8vw, 24px) clamp(18px, 2.6vw, 36px) !important;
  }

  html body:not(.view-agent) .sidebar,
  html body.view-practice .sidebar,
  html body.view-practice.practice-answer-detail-active .sidebar {
    position: sticky !important;
    z-index: 140 !important;
    top: clamp(10px, 1.4vw, 18px) !important;
    left: auto !important;
    bottom: auto !important;
    display: grid !important;
    grid-template-columns: auto minmax(260px, 1fr) auto !important;
    align-items: center !important;
    width: 100% !important;
    max-width: min(1480px, 100%) !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 64px !important;
    margin: 0 auto !important;
    padding: 10px 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(28px) saturate(1.22) !important;
    -webkit-backdrop-filter: blur(28px) saturate(1.22) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 18px 48px rgba(15, 23, 42, 0.08) !important;
    opacity: 1 !important;
    transform: none !important;
    overflow: visible !important;
    transition: none !important;
  }

  html body.view-practice.practice-answer-detail-active .sidebar::after {
    display: none !important;
  }

  html body .brand,
  html body.view-practice .brand {
    display: grid !important;
    grid-template-columns: 34px auto !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 156px !important;
    padding: 0 6px !important;
  }

  html body .brand-icon,
  html body.view-practice .brand-icon {
    width: 34px !important;
    height: 34px !important;
  }

  html body .brand-copy,
  html body .exam-type-picker,
  html body.view-practice .brand-copy,
  html body.view-practice .exam-type-picker {
    display: block !important;
    min-width: 0 !important;
  }

  html body .brand-copy strong,
  html body.view-practice .brand-copy strong {
    display: block !important;
    color: #15171c !important;
    font-size: 18px !important;
    font-weight: 930 !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  html body .exam-type-picker select,
  html body.view-practice .exam-type-picker select {
    max-width: 130px !important;
    border: 0 !important;
    background: transparent !important;
    color: #6f7480 !important;
    font-size: 11px !important;
    font-weight: 780 !important;
    line-height: 1.1 !important;
    padding: 2px 0 !important;
  }

  html body .nav-list,
  html body.view-practice .nav-list {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(4px, 0.8vw, 14px) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body .nav-link,
  html body.view-practice .nav-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 clamp(10px, 1vw, 18px) !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #30333a !important;
    font-size: 14px !important;
    font-weight: 760 !important;
    white-space: nowrap !important;
  }

  html body .nav-link .icon,
  html body.view-practice .nav-link .icon {
    display: none !important;
  }

  html body .nav-link:hover,
  html body .nav-link.active,
  html body.view-practice .nav-link:hover,
  html body.view-practice .nav-link.active {
    background: rgba(255, 255, 255, 0.58) !important;
    color: #111318 !important;
  }

  html body .nav-link.active::after,
  html body.view-practice .nav-link.active::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 3px !important;
    width: 24px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: #f5b400 !important;
    transform: translateX(-50%) !important;
  }

  html body .sidebar-user-card,
  html body .sidebar .sidebar-user-card,
  html body .sidebar .sidebar-user-card.is-logged-in,
  html body.view-practice .sidebar-user-card {
    justify-self: end !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, auto) auto !important;
    align-items: center !important;
    gap: 9px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 240px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 5px 8px 5px 5px !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.74) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.58) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 18px rgba(15, 23, 42, 0.06) !important;
  }

  html body .sidebar-user-card img,
  html body.view-practice .sidebar-user-card img {
    width: 34px !important;
    height: 34px !important;
  }

  html body .sidebar-user-card span,
  html body .sidebar .sidebar-user-card span,
  html body.view-practice .sidebar-user-card span {
    display: grid !important;
    gap: 1px !important;
    min-width: 0 !important;
  }

  html body .sidebar-user-card strong,
  html body.view-practice .sidebar-user-card strong {
    display: block !important;
    max-width: 110px !important;
    overflow: hidden !important;
    color: #15171c !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.05 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body .sidebar-user-card small,
  html body.view-practice .sidebar-user-card small {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    max-width: 88px !important;
    height: 18px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    background: rgba(245, 180, 0, 0.14) !important;
    color: #8a6100 !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    line-height: 18px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body .sidebar-user-card b,
  html body .sidebar .sidebar-user-card b,
  html body.view-practice .sidebar-user-card b {
    display: none !important;
  }

  html body .topbar {
    display: none !important;
  }

  html body:not(:is(.view-agent, .view-community)) .main,
  html body.view-practice .main,
  html body.view-practice.practice-answer-detail-active .main {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: min(1480px, 100%) !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  html body:not(.view-agent) .sidebar,
  html body.view-practice .sidebar {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    padding: 9px 10px !important;
  }

  html body .brand {
    min-width: 44px !important;
    grid-template-columns: 34px !important;
  }

  html body .brand-copy {
    display: none !important;
  }

  html body .nav-link {
    padding: 0 9px !important;
    font-size: 13px !important;
  }

  html body .sidebar-user-card strong {
    max-width: 72px !important;
  }
}

/* Top-nav enforcement for every desktop route, including the dashboard. */
@media (min-width: 761px) {
  html body.view-dashboard .app-shell,
  html body.view-practice .app-shell,
  html body.view-mock .app-shell,
  html body.view-profile .app-shell,
  html body.view-admin .app-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: clamp(10px, 1.4vw, 18px) !important;
    padding: clamp(6px, 0.9vw, 12px) clamp(18px, 2.6vw, 36px) clamp(14px, 1.8vw, 24px) !important;
    align-items: stretch !important;
  }

  html body.view-dashboard .sidebar,
  html body.view-practice .sidebar,
  html body.view-mock .sidebar,
  html body.view-profile .sidebar,
  html body.view-admin .sidebar {
    position: relative !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 40 !important;
    display: grid !important;
    grid-template-columns: minmax(148px, auto) minmax(360px, 1fr) auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: min(1480px, 100%) !important;
    height: auto !important;
    min-height: 58px !important;
    margin: 0 auto !important;
    padding: 8px 14px !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html body.view-dashboard .main,
  html body.view-practice .main,
  html body.view-mock .main,
  html body.view-profile .main,
  html body.view-admin .main {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: min(1480px, 100%) !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  html body.view-dashboard .sidebar .nav-list,
  html body.view-practice .sidebar .nav-list,
  html body.view-mock .sidebar .nav-list,
  html body.view-profile .sidebar .nav-list,
  html body.view-admin .sidebar .nav-list {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: clamp(6px, 0.8vw, 14px) !important;
  }

  html body.view-dashboard .sidebar .nav-link,
  html body.view-practice .sidebar .nav-link,
  html body.view-mock .sidebar .nav-link,
  html body.view-profile .sidebar .nav-link,
  html body.view-admin .sidebar .nav-link {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 clamp(10px, 1vw, 16px) !important;
  }

  html body #practice.practice-detail-mode .stage-practice .question-browser {
    z-index: 220 !important;
  }

  html body.view-dashboard #dashboard,
  html body.view-dashboard #homeDashboard,
  html body.view-dashboard .home-v2,
  html body.view-dashboard .home-v2-desktop-trial {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  html body.view-dashboard .home-v2-desktop-trial {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: clamp(14px, 1.8vw, 22px) !important;
  }

  html body.view-dashboard .home-web-hero,
  html body.view-dashboard .home-web-metrics,
  html body.view-dashboard .home-web-grid {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Practice answer page: restore usable horizontal resizers after moving navigation to the top bar. */
@media (min-width: 981px) {
  html body #practice.practice-detail-mode .practice-dashboard-layout {
    display: grid !important;
    grid-template-columns:
      minmax(620px, 1fr)
      12px
      minmax(280px, clamp(280px, var(--practice-feedback-width, 360px), 560px)) !important;
    gap: 10px !important;
    align-items: start !important;
    overflow: visible !important;
  }

  html body #practice.practice-detail-mode .stage-practice .practice-workbench {
    position: relative !important;
    display: grid !important;
    grid-template-columns:
      minmax(190px, clamp(190px, var(--practice-list-width, 260px), 420px))
      12px
      minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html body #practice.practice-detail-mode .stage-practice .question-browser {
    position: relative !important;
    z-index: 20 !important;
    grid-column: 1 !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: calc(100vh - 116px) !important;
    min-width: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    overflow: auto !important;
  }

  html body #practice.practice-detail-mode .stage-practice .question-browser::after {
    display: none !important;
  }

  html body #practice.practice-detail-mode .stage-practice .answer-stage {
    grid-column: 3 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body #practice.practice-detail-mode .stage-practice .workbench-resizer,
  html body #practice.practice-detail-mode .feedback-resizer {
    display: block !important;
    position: relative !important;
    width: 12px !important;
    min-width: 12px !important;
    height: auto !important;
    min-height: 100% !important;
    cursor: col-resize !important;
    touch-action: none !important;
    pointer-events: auto !important;
    z-index: 80 !important;
  }

  html body #practice.practice-detail-mode .stage-practice .workbench-resizer {
    grid-column: 2 !important;
  }

  html body #practice.practice-detail-mode .feedback-resizer {
    grid-column: 2 !important;
  }

  html body #practice.practice-detail-mode .stage-practice .workbench-resizer::before,
  html body #practice.practice-detail-mode .feedback-resizer::before {
    content: "" !important;
    position: absolute !important;
    top: 12px !important;
    bottom: 12px !important;
    left: 50% !important;
    width: 3px !important;
    border-radius: 999px !important;
    background: rgba(120, 120, 128, 0.18) !important;
    transform: translateX(-50%) !important;
    transition:
      width 0.18s ease,
      background 0.18s ease,
      box-shadow 0.18s ease !important;
  }

  html body #practice.practice-detail-mode .stage-practice .workbench-resizer:hover::before,
  html body #practice.practice-detail-mode .stage-practice .workbench-resizer.is-dragging::before,
  html body #practice.practice-detail-mode .feedback-resizer:hover::before,
  html body #practice.practice-detail-mode .feedback-resizer.is-dragging::before {
    width: 5px !important;
    background: rgba(0, 122, 255, 0.42) !important;
    box-shadow: 0 0 0 5px rgba(0, 122, 255, 0.1) !important;
  }

  html body.is-resizing-practice #practice.practice-detail-mode,
  html body.is-resizing-practice #practice.practice-detail-mode * {
    transition: none !important;
    scroll-behavior: auto !important;
  }

  html body.is-resizing-practice #practice.practice-detail-mode .question-browser,
  html body.is-resizing-practice #practice.practice-detail-mode .answer-stage,
  html body.is-resizing-practice #practice.practice-detail-mode .feedback-panel {
    contain: layout paint !important;
  }
}

/* RA recording/readability: give the passage priority and remove bottom dead space. */
@media (min-width: 761px) {
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .answer-stage {
    gap: clamp(10px, 1.1vw, 14px) !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .question-card.active-question {
    display: grid !important;
    grid-template-rows: auto minmax(0, auto) auto !important;
    gap: clamp(10px, 1.15vw, 14px) !important;
    min-height: 0 !important;
    padding: clamp(18px, 1.5vw, 24px) clamp(20px, 2vw, 30px) clamp(14px, 1.3vw, 18px) !important;
    overflow: visible !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #questionText {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    color: #0f1115 !important;
    font-size: clamp(22px, 1.58vw, 30px) !important;
    font-weight: 880 !important;
    line-height: 1.38 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #questionText .ra-text-line {
    line-height: inherit !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-player,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-player:not(.is-hidden),
  html body #practice .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-player:not(.is-hidden) {
    min-height: 34px !important;
    height: 34px !important;
    margin: clamp(4px, 0.6vw, 8px) 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-player::before,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-avatar,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-player-head > div:last-of-type,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoSpeedSelect,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-player-controls span {
    display: none !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-player-head,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .ra-demo-player-controls {
    display: contents !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoToggleButton {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #raDemoProgress {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .recorder {
    min-height: 46px !important;
    margin-top: 0 !important;
    padding: 4px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .recorder-actions {
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
    scrollbar-width: none !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .recorder-actions::-webkit-scrollbar {
    display: none !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .recorder-actions button {
    flex: 0 0 auto !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 15px !important;
    font-size: 13px !important;
  }

  html body #practice.practice-detail-mode.is-recording .practice-panel.stage-practice[data-active-type="RA"] .question-card.active-question,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"]:has(.recorder.recording) .question-card.active-question {
    gap: 8px !important;
    padding-top: 16px !important;
    padding-bottom: 12px !important;
  }

  html body #practice.practice-detail-mode.is-recording .practice-panel.stage-practice[data-active-type="RA"] #questionText,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"]:has(.recorder.recording) #questionText {
    font-size: clamp(20px, 1.45vw, 27px) !important;
    line-height: 1.32 !important;
  }

  html body #practice.practice-detail-mode.is-recording .practice-panel.stage-practice[data-active-type="RA"] .recorder,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"]:has(.recorder.recording) .recorder {
    min-height: 40px !important;
    padding-top: 2px !important;
  }
}

@media (max-width: 760px) {
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] .question-card.active-question {
    gap: 10px !important;
    padding-bottom: 12px !important;
  }

  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #questionText {
    font-size: clamp(20px, 5.15vw, 25px) !important;
    line-height: 1.34 !important;
  }

  html body #practice.practice-detail-mode.is-recording .practice-panel.stage-practice[data-active-type="RA"] #questionText,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"]:has(.recorder.recording) #questionText {
    font-size: clamp(18px, 4.75vw, 23px) !important;
    line-height: 1.28 !important;
  }
}

/* RA mode switch: Apple-style glass capsule, softer than the old stark black control. */
html body #practice.practice-detail-mode .stage-practice .answer-hint-bar.ra-mode-inline {
  width: fit-content !important;
  max-width: 100% !important;
  margin: 8px 0 12px !important;
  padding: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.76) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(246, 248, 252, 0.48)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 34px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(22px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.18) !important;
}

html body #practice.practice-detail-mode .stage-practice .ra-mode-control {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  color: rgba(29, 29, 31, 0.9) !important;
}

html body #practice.practice-detail-mode .stage-practice .ra-mode-control span {
  min-height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 6px 0 10px !important;
  color: rgba(29, 29, 31, 0.92) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

html body #practice.practice-detail-mode .stage-practice .ra-mode-control button {
  position: relative !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(120, 120, 128, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.58) !important;
  color: rgba(29, 29, 31, 0.78) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 4px 12px rgba(15, 23, 42, 0.04) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease !important;
}

html body #practice.practice-detail-mode .stage-practice .ra-mode-control button:hover {
  border-color: rgba(0, 122, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #1d1d1f !important;
  transform: translateY(-1px) !important;
}

html body #practice.practice-detail-mode .stage-practice .ra-mode-control button.active {
  border-color: rgba(255, 255, 255, 0.9) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.76)) !important;
  color: #111316 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 9px 24px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(0, 122, 255, 0.08) !important;
}

html body #practice.practice-detail-mode .stage-practice .ra-mode-control button.active:hover {
  transform: translateY(-1px) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 250, 255, 0.86)) !important;
}

html body #practice.practice-detail-mode .stage-practice .ra-mode-control small {
  min-height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 12px 0 4px !important;
  color: rgba(88, 88, 92, 0.74) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  html body #practice.practice-detail-mode .stage-practice .answer-hint-bar.ra-mode-inline {
    width: 100% !important;
    border-radius: 24px !important;
    padding: 8px !important;
  }

  html body #practice.practice-detail-mode .stage-practice .ra-mode-control {
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
  }

  html body #practice.practice-detail-mode .stage-practice .ra-mode-control span {
    flex: 1 1 100% !important;
    padding: 0 6px !important;
  }

  html body #practice.practice-detail-mode .stage-practice .ra-mode-control button {
    flex: 1 1 0 !important;
  }

  html body #practice.practice-detail-mode .stage-practice .ra-mode-control small {
    flex: 1 1 100% !important;
    padding: 0 6px !important;
  }
}

/* Practice detail alignment: feedback card should align with the active question card, not the list rail. */
@media (min-width: 981px) {
  html body #practice.practice-detail-mode .feedback-panel,
  html body #practice.practice-detail-mode .feedback-panel.speech-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.we-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.swt-report-mode {
    margin-top: 17px !important;
    transform: translateY(15px) !important;
  }
}

/* Practice answer page: pin the top navigation to the viewport edge. */
@media (min-width: 761px) {
  html body.view-practice.practice-answer-detail-active .app-shell {
    padding-top: 0 !important;
  }

  html body.view-practice.practice-answer-detail-active .sidebar {
    top: 0 !important;
    margin-top: 0 !important;
    border-radius: 0 0 22px 22px !important;
  }
}

/* RA mode selector: compact glass pill so it does not take over the answer card. */
html body #practice.practice-detail-mode .stage-practice .answer-hint-bar.ra-mode-inline {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: min(100%, 560px) !important;
  margin: 8px 0 12px !important;
  padding: 5px !important;
  border: 1px solid rgba(229, 229, 234, 0.78) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(18px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
}

html body #practice .ra-mode-control {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 5px !important;
  min-width: 0 !important;
}

html body #practice .ra-mode-control span {
  padding: 0 6px 0 8px !important;
  white-space: nowrap !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

html body #practice .ra-mode-control span::after {
  content: "RA";
  font-size: 12px !important;
  font-weight: 900 !important;
}

html body #practice .ra-mode-control button {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 12px !important;
  border-color: rgba(210, 213, 219, 0.72) !important;
  background: rgba(255, 255, 255, 0.6) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  white-space: nowrap !important;
  font-size: 12px !important;
}

html body #practice .ra-mode-control button.active {
  border-color: rgba(20, 20, 23, 0.12) !important;
  background: rgba(28, 28, 30, 0.88) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

html body #practice .ra-mode-control small {
  display: none !important;
}

@media (max-width: 760px) {
  html body #practice.practice-detail-mode .stage-practice .answer-hint-bar.ra-mode-inline {
    max-width: 100% !important;
    margin: 6px 0 10px !important;
    padding: 4px !important;
  }

  html body #practice .ra-mode-control {
    gap: 4px !important;
  }

  html body #practice .ra-mode-control span {
    padding: 0 5px !important;
  }

  html body #practice .ra-mode-control span::after {
    font-size: 11px !important;
  }

  html body #practice .ra-mode-control button {
    min-height: 26px !important;
    height: 26px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }

  html body #practice .ra-mode-control small {
    display: none !important;
  }
}

/* Final RA mode size guard: outrank the older wide glass rules. */
html body #practice.practice-detail-mode .stage-practice .ra-mode-control {
  min-height: 28px !important;
  gap: 5px !important;
}

html body #practice.practice-detail-mode .stage-practice .ra-mode-control span {
  min-height: 28px !important;
  padding: 0 6px 0 8px !important;
  font-size: 0 !important;
}

html body #practice.practice-detail-mode .stage-practice .ra-mode-control span::after {
  content: "RA";
  font-size: 12px !important;
  font-weight: 900 !important;
}

html body #practice.practice-detail-mode .stage-practice .ra-mode-control button {
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
}

html body #practice.practice-detail-mode .stage-practice .ra-mode-control small {
  display: none !important;
}

@media (max-width: 760px) {
  html body #practice.practice-detail-mode .stage-practice .answer-hint-bar.ra-mode-inline {
    width: fit-content !important;
    max-width: 100% !important;
    border-radius: 999px !important;
  }

  html body #practice.practice-detail-mode .stage-practice .ra-mode-control {
    width: auto !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }

  html body #practice.practice-detail-mode .stage-practice .ra-mode-control span {
    flex: 0 0 auto !important;
    min-height: 26px !important;
    padding: 0 5px !important;
  }

  html body #practice.practice-detail-mode .stage-practice .ra-mode-control span::after {
    font-size: 11px !important;
  }

  html body #practice.practice-detail-mode .stage-practice .ra-mode-control button {
    flex: 0 0 auto !important;
    min-height: 26px !important;
    height: 26px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }
}

/* Practice question navigator: keep the left glass panel visually substantial. */
@media (min-width: 761px) {
  html body #practice.practice-detail-mode .stage-practice .question-browser {
    display: flex !important;
    flex-direction: column !important;
    height: clamp(690px, calc(100dvh - 48px), 960px) !important;
    max-height: clamp(690px, calc(100dvh - 48px), 960px) !important;
    overflow: hidden !important;
  }

  html body #practice.practice-detail-mode .stage-practice .question-browser .question-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-bottom: 10px !important;
  }
}

/* Global desktop header: slimmer glass navigation across pages. */
@media (min-width: 761px) {
  html body:not(:is(.view-agent, .view-community)) .app-shell,
  html body.view-dashboard .app-shell,
  html body.view-practice .app-shell,
  html body.view-mock .app-shell,
  html body.view-profile .app-shell,
  html body.view-admin .app-shell {
    gap: clamp(10px, 1.2vw, 16px) !important;
    padding: clamp(8px, 1vw, 14px) clamp(16px, 2.2vw, 30px) !important;
  }

  html body:not(.view-agent) .sidebar,
  html body.view-dashboard .sidebar,
  html body.view-practice .sidebar,
  html body.view-mock .sidebar,
  html body.view-profile .sidebar,
  html body.view-admin .sidebar {
    min-height: 52px !important;
    height: 52px !important;
    padding: 6px 12px !important;
    border-radius: 18px !important;
    grid-template-columns: minmax(136px, auto) minmax(260px, 1fr) auto !important;
  }

  html body .brand,
  html body.view-practice .brand,
  html body .sidebar .brand {
    grid-template-columns: 30px auto !important;
    gap: 7px !important;
    min-width: 136px !important;
    padding: 0 4px !important;
  }

  html body .brand-icon,
  html body.view-practice .brand-icon,
  html body .sidebar .brand-icon {
    width: 30px !important;
    height: 30px !important;
  }

  html body .brand-copy strong,
  html body.view-practice .brand-copy strong,
  html body .sidebar .brand-copy strong {
    font-size: 16px !important;
    line-height: 1 !important;
  }

  html body .exam-type-picker select,
  html body.view-practice .exam-type-picker select,
  html body .sidebar .exam-type-picker select {
    max-width: 118px !important;
    font-size: 10px !important;
    padding: 1px 0 !important;
  }

  html body .nav-list,
  html body.view-dashboard .sidebar .nav-list,
  html body.view-practice .sidebar .nav-list,
  html body.view-mock .sidebar .nav-list,
  html body.view-profile .sidebar .nav-list,
  html body.view-admin .sidebar .nav-list {
    height: 36px !important;
    gap: clamp(4px, 0.6vw, 10px) !important;
  }

  html body .nav-link,
  html body.view-dashboard .sidebar .nav-link,
  html body.view-practice .sidebar .nav-link,
  html body.view-mock .sidebar .nav-link,
  html body.view-profile .sidebar .nav-link,
  html body.view-admin .sidebar .nav-link {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 clamp(8px, 0.8vw, 14px) !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  html body .nav-link.active::after,
  html body.view-practice .nav-link.active::after {
    bottom: 2px !important;
    width: 20px !important;
    height: 2px !important;
  }

  html body .sidebar-user-card,
  html body .sidebar .sidebar-user-card,
  html body .sidebar .sidebar-user-card.is-logged-in,
  html body.view-practice .sidebar-user-card {
    grid-template-columns: 30px minmax(0, auto) auto !important;
    gap: 7px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-width: 210px !important;
    padding: 4px 8px 4px 4px !important;
  }

  html body .sidebar-user-card img,
  html body.view-practice .sidebar-user-card img {
    width: 30px !important;
    height: 30px !important;
  }

  html body .sidebar-user-card strong,
  html body.view-practice .sidebar-user-card strong {
    font-size: 12px !important;
    max-width: 96px !important;
  }

  html body .sidebar-user-card small,
  html body.view-practice .sidebar-user-card small {
    height: 16px !important;
    max-width: 76px !important;
    padding: 0 6px !important;
    font-size: 9px !important;
    line-height: 16px !important;
  }

  html body:not(:is(.view-agent, .view-community)) .main,
  html body.view-dashboard .main,
  html body.view-practice .main,
  html body.view-mock .main,
  html body.view-profile .main,
  html body.view-admin .main {
    grid-row: 2 !important;
  }
}

/* Practice detail columns: align feedback panel with the left outer columns. */
@media (min-width: 981px) {
  html body #practice.practice-detail-mode .feedback-panel,
  html body #practice.practice-detail-mode .feedback-panel.speech-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.we-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.swt-report-mode {
    margin-top: 15px !important;
    transform: none !important;
  }
}

/* Practice detail final top correction: align feedback with the outer column edge. */
@media (min-width: 981px) {
  html body #practice.practice-detail-mode .feedback-panel,
  html body #practice.practice-detail-mode .feedback-panel.speech-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.we-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.swt-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode {
    margin-top: 0 !important;
    transform: translateY(-15px) !important;
  }
}

@media (min-width: 761px) {
  html body.view-practice.practice-answer-detail-active .sidebar {
    height: 52px !important;
    min-height: 52px !important;
    border-radius: 0 0 18px 18px !important;
  }
}

/* Practice detail: flatten nested cards into the page so borders do not stack. */
@media (min-width: 761px) {
  html body #practice.practice-detail-mode .practice-dashboard-layout {
    gap: 8px !important;
    background: transparent !important;
  }

  html body #practice.practice-detail-mode .stage-practice .practice-workbench {
    gap: 8px !important;
    background: transparent !important;
  }

  html body #practice.practice-detail-mode .stage-practice .answer-stage {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body #practice.practice-detail-mode .stage-practice .question-card.active-question {
    border: 0 !important;
    border-radius: 24px !important;
    background:
      linear-gradient(180deg, rgba(246, 247, 250, 0.92), rgba(239, 241, 245, 0.86)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.68),
      0 14px 34px rgba(15, 23, 42, 0.045) !important;
  }

  html body #practice.practice-detail-mode .stage-practice .question-card.active-question::before,
  html body #practice.practice-detail-mode .stage-practice .question-card.active-question::after {
    display: none !important;
  }

  html body #practice.practice-detail-mode .feedback-panel {
    border: 0 !important;
    background: rgba(255, 255, 255, 0.78) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045) !important;
  }

  html body #practice.practice-detail-mode .stage-practice .question-browser {
    border: 0 !important;
    background: rgba(255, 255, 255, 0.68) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055) !important;
  }

  html body #practice.practice-detail-mode .stage-practice .workbench-resizer,
  html body #practice.practice-detail-mode .feedback-resizer {
    width: 8px !important;
    min-width: 8px !important;
  }

  html body #practice.practice-detail-mode .stage-practice .workbench-resizer::before,
  html body #practice.practice-detail-mode .feedback-resizer::before {
    width: 1px !important;
    top: 0 !important;
    bottom: 0 !important;
    background: rgba(120, 120, 128, 0.1) !important;
    box-shadow: none !important;
  }

  html body #practice.practice-detail-mode .stage-practice .workbench-resizer:hover::before,
  html body #practice.practice-detail-mode .stage-practice .workbench-resizer.is-dragging::before,
  html body #practice.practice-detail-mode .feedback-resizer:hover::before,
  html body #practice.practice-detail-mode .feedback-resizer.is-dragging::before {
    width: 3px !important;
    background: rgba(0, 122, 255, 0.34) !important;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.08) !important;
  }
}

/* Final practice hero height guard: keep the library banner genuinely narrow. */
@media (min-width: 761px) {
  html body #practice.active-view:not(.practice-detail-mode) > .practice-top-grid,
  html body #practice:not(.practice-detail-mode) > .practice-top-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr) !important;
    align-items: stretch !important;
    height: clamp(176px, 14vw, 220px) !important;
    max-height: 220px !important;
    min-height: 0 !important;
    padding: 0 !important;
    gap: clamp(12px, 1.3vw, 18px) !important;
    margin-bottom: clamp(12px, 1.2vw, 18px) !important;
    overflow: visible !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid .practice-hero,
  html body #practice:not(.practice-detail-mode) .practice-top-grid .practice-hero,
  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card,
  html body #practice:not(.practice-detail-mode) .practice-plan-card {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 220px !important;
    padding: clamp(18px, 1.8vw, 28px) clamp(24px, 2.6vw, 42px) !important;
    overflow: hidden !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid .practice-hero {
    align-items: center !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid .practice-hero h2,
  html body #practice:not(.practice-detail-mode) .practice-top-grid .practice-hero h2 {
    font-size: clamp(28px, 2.65vw, 42px) !important;
    line-height: 1.04 !important;
    margin: 0 !important;
    max-width: 620px !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid .practice-hero > img,
  html body #practice:not(.practice-detail-mode) .practice-top-grid .practice-hero > img {
    width: clamp(92px, 7.5vw, 130px) !important;
    height: auto !important;
    max-height: 140px !important;
    object-fit: contain !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card {
    justify-content: center !important;
    gap: 10px !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card strong,
  html body #practice:not(.practice-detail-mode) .practice-plan-card strong {
    font-size: clamp(22px, 2vw, 32px) !important;
    line-height: 1.08 !important;
    margin: 0 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card p,
  html body #practice:not(.practice-detail-mode) .practice-plan-card p {
    font-size: clamp(13px, 1.1vw, 16px) !important;
    line-height: 1.25 !important;
    margin: 0 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card .primary-btn,
  html body #practice:not(.practice-detail-mode) .practice-plan-card .primary-btn {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 22px !important;
    font-size: 14px !important;
  }
}

/* Home dashboard hero final height guard: keep first screen compact at laptop/tablet widths. */
@media (min-width: 761px) {
  html body #dashboard.active-view .home-v2-desktop-trial {
    gap: clamp(12px, 1.2vw, 18px) !important;
  }

  html body #dashboard.active-view .home-web-hero {
    display: grid !important;
    grid-template-columns: minmax(320px, 0.72fr) auto minmax(300px, 0.48fr) !important;
    align-items: center !important;
    min-height: 0 !important;
    height: clamp(220px, 18vw, 280px) !important;
    max-height: 280px !important;
    padding: clamp(22px, 2vw, 34px) clamp(26px, 2.8vw, 46px) !important;
    gap: clamp(14px, 1.8vw, 26px) !important;
    overflow: hidden !important;
  }

  html body #dashboard.active-view .home-web-hero-copy {
    gap: clamp(16px, 1.5vw, 22px) !important;
    align-self: center !important;
  }

  html body #dashboard.active-view .home-web-hero-copy h2 {
    max-width: 560px !important;
    margin: 0 !important;
    font-size: clamp(30px, 3vw, 48px) !important;
    line-height: 1.05 !important;
  }

  html body #dashboard.active-view .home-web-primary {
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 22px !important;
    font-size: 14px !important;
  }

  html body #dashboard.active-view .home-frame-greeting,
  html body #dashboard.active-view .home-frame-greeting img {
    width: clamp(88px, 8vw, 132px) !important;
    height: clamp(88px, 8vw, 132px) !important;
    max-width: 132px !important;
    max-height: 132px !important;
    align-self: center !important;
  }

  html body #dashboard.active-view .home-web-goal {
    align-self: center !important;
    min-height: 0 !important;
    max-height: 210px !important;
    padding: clamp(18px, 1.6vw, 24px) !important;
    gap: 10px !important;
    overflow: hidden !important;
  }

  html body #dashboard.active-view .home-web-goal-main {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
  }

  html body #dashboard.active-view .home-web-goal-main strong {
    font-size: clamp(42px, 4.2vw, 62px) !important;
    line-height: 0.95 !important;
  }

  html body #dashboard.active-view .home-web-goal-main i {
    width: clamp(70px, 6vw, 92px) !important;
    height: clamp(70px, 6vw, 92px) !important;
  }

  html body #dashboard.active-view .home-web-goal-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body #dashboard.active-view .home-web-goal-stats small {
    min-height: 48px !important;
    padding: 8px 10px !important;
  }

  html body #dashboard.active-view .home-web-goal p {
    margin: 0 !important;
    font-size: 12px !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  html body #dashboard.active-view .home-web-hero {
    grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.7fr) !important;
    height: clamp(210px, 20vw, 260px) !important;
  }

  html body #dashboard.active-view .home-frame-greeting {
    display: none !important;
  }
}

/* Writing reports do not use recording, so remove the generic speech idle pill. */
html body #practice.practice-detail-mode .feedback-panel.swt-report-mode:not(.has-report)::after,
html body #practice.practice-detail-mode .feedback-panel.we-report-mode:not(.has-report)::after {
  content: none !important;
  display: none !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode:not(.has-report) > h2,
html body #practice.practice-detail-mode .feedback-panel.we-report-mode:not(.has-report) > h2 {
  margin-right: 0 !important;
}

/* Question browser header: remove the abrupt divider and the oversized empty header space. */
html body #practice.practice-detail-mode .stage-practice .question-browser-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 0 12px !important;
  padding: 0 0 2px !important;
  border-bottom: 0 !important;
}

html body #practice.practice-detail-mode .stage-practice .question-browser-head > div {
  display: grid !important;
  justify-items: center !important;
  gap: 4px !important;
  width: 100% !important;
  min-width: 0 !important;
}

html body #practice.practice-detail-mode .stage-practice .question-browser-head .eyebrow {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 16px !important;
  letter-spacing: 0 !important;
}

html body #practice.practice-detail-mode .stage-practice .question-browser-head h3 {
  max-width: 100% !important;
  margin: 0 !important;
  color: #111318 !important;
  font-size: clamp(20px, 2.15vw, 26px) !important;
  font-weight: 760 !important;
  line-height: 1.16 !important;
  text-align: center !important;
  text-wrap: balance !important;
}

html body #practice.practice-detail-mode .stage-practice #backToTypesButton {
  justify-self: start !important;
  min-height: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 8px 18px rgba(20, 24, 31, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

html body #practice.practice-detail-mode .stage-practice .question-finder {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Feedback panel: remove redundant top-right status pills such as "待录音" for every question type. */
html body #practice.practice-detail-mode .feedback-panel::after,
html body #practice.practice-detail-mode .feedback-panel:not(.has-report)::after,
html body #practice.practice-detail-mode .feedback-panel.has-report::after,
html body #practice.practice-detail-mode .feedback-panel.speech-report-mode::after,
html body #practice.practice-detail-mode .feedback-panel.reading-report-mode::after,
html body #practice.practice-detail-mode .feedback-panel.swt-report-mode::after,
html body #practice.practice-detail-mode .feedback-panel.we-report-mode::after,
html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode::after {
  content: none !important;
  display: none !important;
}

html body #practice.practice-detail-mode .feedback-panel > h2 {
  margin-right: 0 !important;
}

/* Practice browser: the back-to-types action must stay visible in every answer layout state. */
html body #practice .stage-practice .question-browser-head,
html body #practice.practice-detail-mode .stage-practice .question-browser-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border-bottom: 0 !important;
  overflow: visible !important;
}

html body #practice .stage-practice #backToTypesButton,
html body #practice.practice-detail-mode .stage-practice #backToTypesButton {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 8 !important;
  flex: 0 0 auto !important;
  justify-self: start !important;
  align-self: center !important;
  width: max-content !important;
  min-width: 78px !important;
  max-width: none !important;
  height: 31px !important;
  min-height: 31px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid rgba(18, 24, 31, 0.13) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.76) !important;
  color: #16191f !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  place-items: center !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 20px rgba(20, 24, 31, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html body #practice .stage-practice #backToTypesButton:hover,
html body #practice.practice-detail-mode .stage-practice #backToTypesButton:hover {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(18, 24, 31, 0.2) !important;
}


/* Home dashboard hero ultra-compact guard for laptop-height windows. */
@media (min-width: 761px) {
  html body #dashboard.active-view .home-web-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px) !important;
    height: clamp(158px, 13vw, 178px) !important;
    max-height: 178px !important;
    padding: clamp(16px, 1.45vw, 22px) clamp(22px, 2.3vw, 36px) !important;
    gap: clamp(12px, 1.4vw, 20px) !important;
  }

  html body #dashboard.active-view .home-frame-greeting {
    display: none !important;
  }

  html body #dashboard.active-view .home-web-hero-copy {
    min-height: 0 !important;
    height: auto !important;
    gap: 12px !important;
  }

  html body #dashboard.active-view .home-web-hero-copy h2 {
    max-width: 520px !important;
    font-size: clamp(26px, 2.45vw, 38px) !important;
    line-height: 1.04 !important;
  }

  html body #dashboard.active-view .home-web-primary {
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
  }

  html body #dashboard.active-view .home-web-goal {
    max-height: 142px !important;
    padding: 14px 16px !important;
    gap: 7px !important;
  }

  html body #dashboard.active-view .home-web-goal > span {
    font-size: 12px !important;
  }

  html body #dashboard.active-view .home-web-goal-main {
    gap: 8px !important;
  }

  html body #dashboard.active-view .home-web-goal-main strong {
    font-size: clamp(34px, 3.3vw, 48px) !important;
  }

  html body #dashboard.active-view .home-web-goal-main em {
    font-size: 12px !important;
  }

  html body #dashboard.active-view .home-web-goal-main i {
    width: 58px !important;
    height: 58px !important;
    font-size: 13px !important;
  }

  html body #dashboard.active-view .home-web-goal-stats {
    display: none !important;
  }

  html body #dashboard.active-view .home-web-goal p {
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* Top navigation brand guard: compact header should not show the exam subtitle outside the bar. */
@media (min-width: 761px) {
  html body .sidebar .brand,
  html body.view-dashboard .sidebar .brand,
  html body.view-practice .sidebar .brand,
  html body.view-mock .sidebar .brand,
  html body.view-profile .sidebar .brand,
  html body.view-admin .sidebar .brand {
    grid-template-columns: 30px auto !important;
    align-items: center !important;
    min-height: 38px !important;
    height: 38px !important;
    overflow: hidden !important;
  }

  html body .sidebar .brand-copy,
  html body.view-dashboard .sidebar .brand-copy,
  html body.view-practice .sidebar .brand-copy,
  html body.view-mock .sidebar .brand-copy,
  html body.view-profile .sidebar .brand-copy,
  html body.view-admin .sidebar .brand-copy {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    height: 100% !important;
  }

  html body .sidebar .brand-copy strong,
  html body.view-dashboard .sidebar .brand-copy strong,
  html body.view-practice .sidebar .brand-copy strong,
  html body.view-mock .sidebar .brand-copy strong,
  html body.view-profile .sidebar .brand-copy strong,
  html body.view-admin .sidebar .brand-copy strong {
    display: block !important;
    font-size: 18px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html body .sidebar .exam-type-picker,
  html body.view-dashboard .sidebar .exam-type-picker,
  html body.view-practice .sidebar .exam-type-picker,
  html body.view-mock .sidebar .exam-type-picker,
  html body.view-profile .sidebar .exam-type-picker,
  html body.view-admin .sidebar .exam-type-picker {
    display: none !important;
  }
}

/* Practice detail final alignment: feedback column starts at the same top edge as the workbench. */
@media (min-width: 981px) {
  html body #practice.practice-detail-mode .feedback-panel,
  html body #practice.practice-detail-mode .feedback-panel.speech-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.we-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.swt-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode {
    margin-top: 0 !important;
    transform: translateY(-15px) !important;
  }
}

/* Practice reading text: softer weight for long passages. */
@media (min-width: 761px) {
  html body #practice.practice-detail-mode .stage-practice #questionText,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #questionText,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #questionText .ra-text-line {
    color: #17191f !important;
    font-weight: 650 !important;
    line-height: 1.46 !important;
    letter-spacing: 0 !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeLegibility !important;
  }

  html body #practice.practice-detail-mode.is-recording .practice-panel.stage-practice[data-active-type="RA"] #questionText,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"]:has(.recorder.recording) #questionText {
    font-weight: 650 !important;
    line-height: 1.42 !important;
  }

  html body #practice.practice-detail-mode .stage-practice #questionText .ra-word-select.selected,
  html body #practice.practice-detail-mode .stage-practice #questionText .ra-selection-block .ra-word-select,
  html body #practice.practice-detail-mode .stage-practice #questionText .ra-selection-gap {
    font-weight: 700 !important;
  }
}

@media (max-width: 760px) {
  html body #practice.practice-detail-mode .stage-practice #questionText,
  html body #practice.practice-detail-mode .practice-panel.stage-practice[data-active-type="RA"] #questionText {
    font-weight: 620 !important;
    line-height: 1.45 !important;
  }
}

/* Final desktop header flow: the glass navigation must reserve space and never cover practice content. */
@media (min-width: 761px) {
  html body {
    --desktop-nav-reserved-height: 64px;
  }

  html body:not(:is(.view-agent, .view-community)) .app-shell,
  html body.view-dashboard .app-shell,
  html body.view-practice .app-shell,
  html body.view-mock .app-shell,
  html body.view-profile .app-shell,
  html body.view-admin .app-shell {
    display: grid !important;
    grid-template-rows: var(--desktop-nav-reserved-height) minmax(0, 1fr) !important;
    row-gap: 12px !important;
    padding-top: 8px !important;
  }

  html body:not(.view-agent) .sidebar,
  html body.view-dashboard .sidebar,
  html body.view-practice .sidebar,
  html body.view-mock .sidebar,
  html body.view-profile .sidebar,
  html body.view-admin .sidebar {
    position: sticky !important;
    top: 8px !important;
    grid-row: 1 !important;
    z-index: 30 !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
  }

  html body:not(:is(.view-agent, .view-community)) .main,
  html body.view-dashboard .main,
  html body.view-practice .main,
  html body.view-mock .main,
  html body.view-profile .main,
  html body.view-admin .main {
    grid-row: 2 !important;
    min-height: 0 !important;
    padding-top: 0 !important;
  }

  html body #practice.practice-detail-mode .practice-dashboard-layout,
  html body #practice.practice-detail-mode .stage-practice .practice-workbench {
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: none !important;
  }

  html body #practice.practice-detail-mode .feedback-panel,
  html body #practice.practice-detail-mode .feedback-panel.speech-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.reading-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.we-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.swt-report-mode,
  html body #practice.practice-detail-mode .feedback-panel.wfd-report-mode {
    margin-top: 0 !important;
    transform: none !important;
  }
}

/* Writing idle report: remove the heavy status card and use soft Apple-like glass cards. */
html body #practice.practice-detail-mode .feedback-panel.swt-report-mode:not(.has-report) .swt-idle-card,
html body #practice.practice-detail-mode .feedback-panel.we-report-mode:not(.has-report) .we-idle-card {
  display: grid !important;
  gap: 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode:not(.has-report) .swt-report-headline,
html body #practice.practice-detail-mode .feedback-panel.we-report-mode:not(.has-report) .writing-idle-ai-card {
  display: none !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode:not(.has-report) .swt-score-grid,
html body #practice.practice-detail-mode .feedback-panel.we-report-mode:not(.has-report) .we-score-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode:not(.has-report) .swt-score-grid article,
html body #practice.practice-detail-mode .feedback-panel.we-report-mode:not(.has-report) .we-score-grid article {
  min-height: 76px !important;
  padding: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.62)),
    rgba(255, 255, 255, 0.54) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 34px -28px rgba(15, 23, 42, 0.34) !important;
  backdrop-filter: blur(20px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.25) !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode:not(.has-report) .swt-score-grid article:first-child,
html body #practice.practice-detail-mode .feedback-panel.we-report-mode:not(.has-report) .we-score-grid article:first-child {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(235, 253, 246, 0.68)),
    rgba(255, 255, 255, 0.58) !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode:not(.has-report) .swt-score-grid span,
html body #practice.practice-detail-mode .feedback-panel.we-report-mode:not(.has-report) .we-score-grid span {
  color: rgba(76, 82, 93, 0.86) !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode:not(.has-report) .swt-score-grid strong,
html body #practice.practice-detail-mode .feedback-panel.we-report-mode:not(.has-report) .we-score-grid strong {
  margin-top: 10px !important;
  color: #111316 !important;
  font-size: clamp(22px, 2.2vw, 30px) !important;
  font-weight: 760 !important;
  line-height: 1 !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode:not(.has-report) .swt-answer-review,
html body #practice.practice-detail-mode .feedback-panel.we-report-mode:not(.has-report) .swt-answer-review {
  padding: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.74) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(248, 250, 252, 0.64)),
    rgba(255, 255, 255, 0.58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 22px 42px -34px rgba(15, 23, 42, 0.36) !important;
  backdrop-filter: blur(22px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.25) !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode:not(.has-report) .swt-answer-review > strong,
html body #practice.practice-detail-mode .feedback-panel.we-report-mode:not(.has-report) .swt-answer-review > strong {
  display: block !important;
  margin: 0 0 10px !important;
  color: #111316 !important;
  font-size: 18px !important;
  font-weight: 780 !important;
  line-height: 1.2 !important;
}

html body #practice.practice-detail-mode .feedback-panel.swt-report-mode:not(.has-report) .swt-answer-review p,
html body #practice.practice-detail-mode .feedback-panel.we-report-mode:not(.has-report) .swt-answer-review p {
  margin: 0 !important;
  color: rgba(61, 68, 80, 0.9) !important;
  font-size: 14px !important;
  font-weight: 560 !important;
  line-height: 1.72 !important;
}

@media (max-width: 760px) {
  html body #practice.practice-detail-mode .feedback-panel.swt-report-mode:not(.has-report) .swt-score-grid,
  html body #practice.practice-detail-mode .feedback-panel.we-report-mode:not(.has-report) .we-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  html body #practice.practice-detail-mode .feedback-panel.swt-report-mode:not(.has-report) .swt-score-grid article,
  html body #practice.practice-detail-mode .feedback-panel.we-report-mode:not(.has-report) .we-score-grid article {
    min-height: 64px !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }
}

/* Header exam selector: keep the compact top navigation selectable. */
@media (min-width: 761px) {
  html body .sidebar .brand {
    min-width: 250px !important;
  }

  html body .sidebar .brand-copy,
  html body.view-dashboard .sidebar .brand-copy,
  html body.view-practice .sidebar .brand-copy,
  html body.view-mock .sidebar .brand-copy,
  html body.view-profile .sidebar .brand-copy,
  html body.view-admin .sidebar .brand-copy {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html body .sidebar .exam-type-picker,
  html body.view-dashboard .sidebar .exam-type-picker,
  html body.view-practice .sidebar .exam-type-picker,
  html body.view-mock .sidebar .exam-type-picker,
  html body.view-profile .sidebar .exam-type-picker,
  html body.view-admin .sidebar .exam-type-picker {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    height: 26px !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  html body .sidebar .exam-type-picker select,
  html body.view-dashboard .sidebar .exam-type-picker select,
  html body.view-practice .sidebar .exam-type-picker select,
  html body.view-mock .sidebar .exam-type-picker select,
  html body.view-profile .sidebar .exam-type-picker select,
  html body.view-admin .sidebar .exam-type-picker select {
    display: block !important;
    width: 128px !important;
    height: 26px !important;
    max-width: 128px !important;
    padding: 0 20px 0 9px !important;
    border: 1px solid rgba(29, 29, 31, 0.1) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.68) !important;
    color: rgba(76, 82, 93, 0.92) !important;
    font-size: 10px !important;
    font-weight: 720 !important;
    line-height: 26px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(14px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
  }
}

/* Header final layout: stable three-column sizing so labels never overlap. */
@media (min-width: 761px) {
  html body:not(.view-agent) .sidebar,
  html body.view-dashboard .sidebar,
  html body.view-practice .sidebar,
  html body.view-mock .sidebar,
  html body.view-profile .sidebar,
  html body.view-admin .sidebar {
    display: grid !important;
    grid-template-columns: minmax(332px, 360px) minmax(240px, 1fr) minmax(142px, auto) !important;
    align-items: center !important;
    column-gap: 12px !important;
    overflow: visible !important;
  }

  html body .sidebar .brand,
  html body.view-dashboard .sidebar .brand,
  html body.view-practice .sidebar .brand,
  html body.view-mock .sidebar .brand,
  html body.view-profile .sidebar .brand,
  html body.view-admin .sidebar .brand {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    overflow: visible !important;
  }

  html body .sidebar .brand-copy strong,
  html body.view-dashboard .sidebar .brand-copy strong,
  html body.view-practice .sidebar .brand-copy strong,
  html body.view-mock .sidebar .brand-copy strong,
  html body.view-profile .sidebar .brand-copy strong,
  html body.view-admin .sidebar .brand-copy strong {
    flex: 0 0 auto !important;
    max-width: 132px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html body .sidebar .exam-type-picker,
  html body.view-dashboard .sidebar .exam-type-picker,
  html body.view-practice .sidebar .exam-type-picker,
  html body.view-mock .sidebar .exam-type-picker,
  html body.view-profile .sidebar .exam-type-picker,
  html body.view-admin .sidebar .exam-type-picker {
    flex: 0 0 128px !important;
    width: 128px !important;
    max-width: 128px !important;
    height: 26px !important;
  }

  html body .sidebar .nav-list,
  html body.view-dashboard .sidebar .nav-list,
  html body.view-practice .sidebar .nav-list,
  html body.view-mock .sidebar .nav-list,
  html body.view-profile .sidebar .nav-list,
  html body.view-admin .sidebar .nav-list {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  html body .sidebar .nav-link,
  html body.view-dashboard .sidebar .nav-link,
  html body.view-practice .sidebar .nav-link,
  html body.view-mock .sidebar .nav-link,
  html body.view-profile .sidebar .nav-link,
  html body.view-admin .sidebar .nav-link {
    flex: 0 0 auto !important;
    min-width: 48px !important;
    white-space: nowrap !important;
  }

  html body .sidebar .sidebar-user-card,
  html body .sidebar .sidebar-user-card.is-logged-in,
  html body.view-practice .sidebar-user-card {
    justify-self: end !important;
    width: 142px !important;
    max-width: 142px !important;
    overflow: hidden !important;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  html body:not(.view-agent) .sidebar,
  html body.view-dashboard .sidebar,
  html body.view-practice .sidebar,
  html body.view-mock .sidebar,
  html body.view-profile .sidebar,
  html body.view-admin .sidebar {
    grid-template-columns: minmax(286px, 300px) minmax(220px, 1fr) 42px !important;
    column-gap: 8px !important;
  }

  html body .sidebar .brand-copy,
  html body.view-practice .sidebar .brand-copy {
    gap: 7px !important;
  }

  html body .sidebar .brand-copy strong,
  html body.view-practice .sidebar .brand-copy strong {
    max-width: 104px !important;
    font-size: 16px !important;
  }

  html body .sidebar .exam-type-picker,
  html body.view-practice .sidebar .exam-type-picker {
    flex-basis: 112px !important;
    width: 112px !important;
    max-width: 112px !important;
  }

  html body .sidebar .exam-type-picker select,
  html body.view-practice .sidebar .exam-type-picker select {
    width: 112px !important;
    max-width: 112px !important;
    padding-left: 8px !important;
    font-size: 9px !important;
  }

  html body .sidebar .nav-link,
  html body.view-practice .sidebar .nav-link {
    min-width: 42px !important;
    padding-inline: 8px !important;
    font-size: 12px !important;
  }

  html body .sidebar .sidebar-user-card,
  html body .sidebar .sidebar-user-card.is-logged-in,
  html body.view-practice .sidebar-user-card {
    grid-template-columns: 30px !important;
    width: 38px !important;
    max-width: 38px !important;
    padding: 4px !important;
  }

  html body .sidebar .sidebar-user-card span,
  html body .sidebar .sidebar-user-card b {
    display: none !important;
  }
}

/* Final top-nav override: align all three columns and keep the glass active pill stable. */
@media (min-width: 761px) {
  html body {
    --desktop-nav-reserved-height: 78px !important;
  }

  html body:not(.view-agent) .sidebar,
  html body.view-dashboard .sidebar,
  html body.view-practice .sidebar,
  html body.view-mock .sidebar,
  html body.view-profile .sidebar,
  html body.view-admin .sidebar,
  html body.view-practice.practice-answer-detail-active .sidebar {
    align-items: center !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 6px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 249, 251, 0.66)),
      rgba(255, 255, 255, 0.62) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 16px 38px -30px rgba(15, 23, 42, 0.44) !important;
    backdrop-filter: blur(24px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.3) !important;
  }

  html body .sidebar .brand,
  html body.view-dashboard .sidebar .brand,
  html body.view-practice .sidebar .brand,
  html body.view-mock .sidebar .brand,
  html body.view-profile .sidebar .brand,
  html body.view-admin .sidebar .brand {
    align-self: center !important;
    height: 50px !important;
    min-height: 50px !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  html body .sidebar .brand-icon,
  html body.view-practice .sidebar .brand-icon {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    flex-basis: 46px !important;
  }

  html body .sidebar .nav-list,
  html body.view-dashboard .sidebar .nav-list,
  html body.view-practice .sidebar .nav-list,
  html body.view-mock .sidebar .nav-list,
  html body.view-profile .sidebar .nav-list,
  html body.view-admin .sidebar .nav-list {
    display: inline-flex !important;
    align-self: center !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.64) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.34) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
    overflow: visible !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
  }

  html body .sidebar .nav-link,
  html body.view-dashboard .sidebar .nav-link,
  html body.view-practice .sidebar .nav-link,
  html body.view-mock .sidebar .nav-link,
  html body.view-profile .sidebar .nav-link,
  html body.view-admin .sidebar .nav-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 58px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    color: rgba(27, 30, 36, 0.74) !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 760 !important;
    line-height: 36px !important;
    transform: translateY(0) !important;
    transition:
      background-color 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease,
      color 180ms ease,
      transform 180ms ease !important;
  }

  html body .sidebar .nav-link:hover,
  html body.view-dashboard .sidebar .nav-link:hover,
  html body.view-practice .sidebar .nav-link:hover,
  html body.view-mock .sidebar .nav-link:hover,
  html body.view-profile .sidebar .nav-link:hover,
  html body.view-admin .sidebar .nav-link:hover {
    color: #111318 !important;
    background: rgba(255, 255, 255, 0.48) !important;
    transform: translateY(-1px) !important;
  }

  html body .sidebar .nav-link.active,
  html body.view-dashboard .sidebar .nav-link.active,
  html body.view-practice .sidebar .nav-link.active,
  html body.view-mock .sidebar .nav-link.active,
  html body.view-profile .sidebar .nav-link.active,
  html body.view-admin .sidebar .nav-link.active {
    color: #111318 !important;
    border-color: rgba(255, 255, 255, 0.82) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62)),
      rgba(255, 255, 255, 0.72) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 10px 22px -18px rgba(15, 23, 42, 0.42) !important;
  }

  html body .sidebar .nav-link.active::after,
  html body.view-dashboard .sidebar .nav-link.active::after,
  html body.view-practice .sidebar .nav-link.active::after,
  html body.view-mock .sidebar .nav-link.active::after,
  html body.view-profile .sidebar .nav-link.active::after,
  html body.view-admin .sidebar .nav-link.active::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 5px !important;
    width: 20px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #ffd166, #f5b400) !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 2px 8px rgba(245, 180, 0, 0.28) !important;
    opacity: 1 !important;
    transition: transform 180ms ease, opacity 180ms ease !important;
  }

  html body .sidebar .sidebar-user-card,
  html body .sidebar .sidebar-user-card.is-logged-in,
  html body.view-practice .sidebar-user-card {
    align-self: center !important;
    height: 48px !important;
    min-height: 48px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
      rgba(255, 255, 255, 0.62) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 12px 28px -22px rgba(15, 23, 42, 0.42) !important;
    backdrop-filter: blur(18px) saturate(1.22) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.22) !important;
  }

  html body .sidebar .sidebar-user-card img,
  html body.view-practice .sidebar-user-card img {
    width: 36px !important;
    height: 36px !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  html body .sidebar .nav-list {
    height: 42px !important;
    min-height: 42px !important;
    gap: 4px !important;
    padding: 3px !important;
  }

  html body .sidebar .nav-link {
    min-width: 46px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding-inline: 8px !important;
    font-size: 13px !important;
    line-height: 34px !important;
  }
}

/* Top navigation final polish: center the row and use an Apple-like glass selected state. */
@media (min-width: 761px) {
  html body:not(.view-agent) .sidebar,
  html body.view-dashboard .sidebar,
  html body.view-practice .sidebar,
  html body.view-mock .sidebar,
  html body.view-profile .sidebar,
  html body.view-admin .sidebar,
  html body.view-practice.practice-answer-detail-active .sidebar {
    align-items: center !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding-block: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 249, 251, 0.66)),
      rgba(255, 255, 255, 0.62) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      0 16px 38px -30px rgba(15, 23, 42, 0.44) !important;
    backdrop-filter: blur(24px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.3) !important;
  }

  html body .sidebar .brand,
  html body.view-dashboard .sidebar .brand,
  html body.view-practice .sidebar .brand,
  html body.view-mock .sidebar .brand,
  html body.view-profile .sidebar .brand,
  html body.view-admin .sidebar .brand {
    align-self: center !important;
    height: 50px !important;
    min-height: 50px !important;
  }

  html body .sidebar .brand-icon,
  html body.view-practice .sidebar .brand-icon {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }

  html body .sidebar .brand-copy,
  html body.view-dashboard .sidebar .brand-copy,
  html body.view-practice .sidebar .brand-copy,
  html body.view-mock .sidebar .brand-copy,
  html body.view-profile .sidebar .brand-copy,
  html body.view-admin .sidebar .brand-copy,
  html body .sidebar .exam-type-picker,
  html body.view-dashboard .sidebar .exam-type-picker,
  html body.view-practice .sidebar .exam-type-picker,
  html body.view-mock .sidebar .exam-type-picker,
  html body.view-profile .sidebar .exam-type-picker,
  html body.view-admin .sidebar .exam-type-picker {
    align-self: center !important;
  }

  html body .sidebar .nav-list,
  html body.view-dashboard .sidebar .nav-list,
  html body.view-practice .sidebar .nav-list,
  html body.view-mock .sidebar .nav-list,
  html body.view-profile .sidebar .nav-list,
  html body.view-admin .sidebar .nav-list {
    display: inline-flex !important;
    align-self: center !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.64) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.34) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
    overflow: visible !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
  }

  html body .sidebar .nav-link,
  html body.view-dashboard .sidebar .nav-link,
  html body.view-practice .sidebar .nav-link,
  html body.view-mock .sidebar .nav-link,
  html body.view-profile .sidebar .nav-link,
  html body.view-admin .sidebar .nav-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 58px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    color: rgba(27, 30, 36, 0.74) !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 760 !important;
    line-height: 36px !important;
    transform: translateY(0) !important;
    transition:
      background-color 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease,
      color 180ms ease,
      transform 180ms ease !important;
  }

  html body .sidebar .nav-link:hover,
  html body.view-dashboard .sidebar .nav-link:hover,
  html body.view-practice .sidebar .nav-link:hover,
  html body.view-mock .sidebar .nav-link:hover,
  html body.view-profile .sidebar .nav-link:hover,
  html body.view-admin .sidebar .nav-link:hover {
    color: #111318 !important;
    background: rgba(255, 255, 255, 0.48) !important;
    transform: translateY(-1px) !important;
  }

  html body .sidebar .nav-link.active,
  html body.view-dashboard .sidebar .nav-link.active,
  html body.view-practice .sidebar .nav-link.active,
  html body.view-mock .sidebar .nav-link.active,
  html body.view-profile .sidebar .nav-link.active,
  html body.view-admin .sidebar .nav-link.active {
    color: #111318 !important;
    border-color: rgba(255, 255, 255, 0.82) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62)),
      rgba(255, 255, 255, 0.72) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 10px 22px -18px rgba(15, 23, 42, 0.42) !important;
  }

  html body .sidebar .nav-link.active::after,
  html body.view-dashboard .sidebar .nav-link.active::after,
  html body.view-practice .sidebar .nav-link.active::after,
  html body.view-mock .sidebar .nav-link.active::after,
  html body.view-profile .sidebar .nav-link.active::after,
  html body.view-admin .sidebar .nav-link.active::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 5px !important;
    width: 20px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #ffd166, #f5b400) !important;
    transform: translateX(-50%) scaleX(1) !important;
    transform-origin: center !important;
    box-shadow: 0 2px 8px rgba(245, 180, 0, 0.28) !important;
    opacity: 1 !important;
    transition: transform 180ms ease, opacity 180ms ease !important;
  }

  html body .sidebar .sidebar-user-card,
  html body .sidebar .sidebar-user-card.is-logged-in,
  html body.view-practice .sidebar-user-card {
    align-self: center !important;
    height: 48px !important;
    min-height: 48px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
      rgba(255, 255, 255, 0.62) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 12px 28px -22px rgba(15, 23, 42, 0.42) !important;
    backdrop-filter: blur(18px) saturate(1.22) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.22) !important;
  }

  html body .sidebar .sidebar-user-card img,
  html body.view-practice .sidebar-user-card img {
    width: 36px !important;
    height: 36px !important;
  }
}

/* Practice question browser: protect the top rows from being squeezed by the search area. */
html body #practice.practice-detail-mode .stage-practice .question-browser-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  justify-items: center !important;
  align-items: start !important;
  gap: 10px !important;
  min-height: 112px !important;
  height: auto !important;
  margin: 0 0 14px !important;
  padding: 4px 0 0 !important;
  border-bottom: 0 !important;
  overflow: visible !important;
}

html body #practice.practice-detail-mode .stage-practice .question-browser-head .eyebrow {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 16px !important;
}

html body #practice.practice-detail-mode .stage-practice .question-browser-head h3 {
  display: -webkit-box !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  color: #111318 !important;
  font-size: clamp(18px, 1.8vw, 24px) !important;
  font-weight: 760 !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

html body #practice.practice-detail-mode .stage-practice #backToTypesButton {
  justify-self: start !important;
  align-self: start !important;
  margin: 0 !important;
}

html body #practice.practice-detail-mode .stage-practice .question-finder {
  position: relative !important;
  z-index: 1 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Practice banner: embed the daily plan into the hero instead of showing a nested card. */
@media (min-width: 761px) {
  html body #practice.active-view:not(.practice-detail-mode) .practice-top-grid,
  html body #practice:not(.practice-detail-mode) .practice-top-grid {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 330px) !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card,
  html body #practice:not(.practice-detail-mode) .practice-plan-card {
    align-content: center !important;
    justify-content: stretch !important;
    align-self: stretch !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: clamp(14px, 1.5vw, 22px) clamp(12px, 1.6vw, 24px) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card::before,
  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card::after,
  html body #practice:not(.practice-detail-mode) .practice-plan-card::before,
  html body #practice:not(.practice-detail-mode) .practice-plan-card::after {
    content: none !important;
    display: none !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card > div,
  html body #practice:not(.practice-detail-mode) .practice-plan-card > div {
    align-items: center !important;
    gap: 10px !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card > div > span,
  html body #practice:not(.practice-detail-mode) .practice-plan-card > div > span {
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: rgba(17, 19, 24, 0.58) !important;
    background: transparent !important;
    font-size: clamp(12px, 0.95vw, 14px) !important;
    font-weight: 780 !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card .ghost-btn,
  html body #practice:not(.practice-detail-mode) .practice-plan-card .ghost-btn {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(18, 24, 31, 0.1) !important;
    color: #17191f !important;
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 8px 18px rgba(20, 24, 31, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card strong,
  html body #practice:not(.practice-detail-mode) .practice-plan-card strong {
    margin: clamp(14px, 1.2vw, 18px) 0 8px !important;
    font-size: clamp(25px, 2.3vw, 38px) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card p,
  html body #practice:not(.practice-detail-mode) .practice-plan-card p {
    color: rgba(17, 19, 24, 0.54) !important;
  }

  html body #practice.active-view:not(.practice-detail-mode) .practice-plan-card .primary-btn,
  html body #practice:not(.practice-detail-mode) .practice-plan-card .primary-btn,
  html body #practice.active-view:not(.practice-detail-mode) #dailyPracticeButton,
  html body #practice:not(.practice-detail-mode) #dailyPracticeButton {
    margin-top: clamp(14px, 1.2vw, 18px) !important;
    min-width: 0 !important;
    width: max-content !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 18px !important;
    border: 1px solid rgba(18, 24, 31, 0.08) !important;
    color: #111318 !important;
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 12px 26px rgba(20, 24, 31, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  }
}

/* Header exam selector height guard: old compact rules must not squash the text. */
@media (min-width: 761px) {
  html body .sidebar .exam-type-picker,
  html body.view-dashboard .sidebar .exam-type-picker,
  html body.view-practice .sidebar .exam-type-picker,
  html body.view-mock .sidebar .exam-type-picker,
  html body.view-profile .sidebar .exam-type-picker,
  html body.view-admin .sidebar .exam-type-picker {
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    line-height: 28px !important;
  }

  html body .sidebar .exam-type-picker select,
  html body.view-dashboard .sidebar .exam-type-picker select,
  html body.view-practice .sidebar .exam-type-picker select,
  html body.view-mock .sidebar .exam-type-picker select,
  html body.view-profile .sidebar .exam-type-picker select,
  html body.view-admin .sidebar .exam-type-picker select {
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    line-height: 28px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* Header overlap guard: top navigation should not float over practice content while scrolling. */
@media (min-width: 761px) {
  html body:not(.view-agent) .sidebar,
  html body.view-dashboard .sidebar,
  html body.view-practice .sidebar,
  html body.view-mock .sidebar,
  html body.view-profile .sidebar,
  html body.view-admin .sidebar,
  html body.view-practice.practice-answer-detail-active .sidebar {
    position: relative !important;
    top: auto !important;
    z-index: 5 !important;
  }

  html body #practice.practice-detail-mode {
    scroll-margin-top: 0 !important;
  }
}

/* Header comfort pass: keep the top navigation readable instead of squeezing it into a tiny strip. */
@media (min-width: 761px) {
  html body {
    --desktop-nav-reserved-height: 82px !important;
  }

  html body:not(:is(.view-agent, .view-community)) .app-shell,
  html body.view-dashboard .app-shell,
  html body.view-practice .app-shell,
  html body.view-mock .app-shell,
  html body.view-profile .app-shell,
  html body.view-admin .app-shell {
    grid-template-rows: var(--desktop-nav-reserved-height) minmax(0, 1fr) !important;
    row-gap: 12px !important;
    padding-top: 0 !important;
  }

  html body:not(.view-agent) .sidebar,
  html body.view-dashboard .sidebar,
  html body.view-practice .sidebar,
  html body.view-mock .sidebar,
  html body.view-profile .sidebar,
  html body.view-admin .sidebar,
  html body.view-practice.practice-answer-detail-active .sidebar {
    position: relative !important;
    top: auto !important;
    display: grid !important;
    grid-template-columns: minmax(410px, 480px) minmax(260px, 1fr) minmax(186px, 220px) !important;
    align-items: center !important;
    column-gap: clamp(14px, 2vw, 28px) !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    padding: 8px 20px !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  html body .sidebar .brand,
  html body.view-dashboard .sidebar .brand,
  html body.view-practice .sidebar .brand,
  html body.view-mock .sidebar .brand,
  html body.view-profile .sidebar .brand,
  html body.view-admin .sidebar .brand {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body .sidebar .brand-icon,
  html body.view-practice .sidebar .brand-icon {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    flex: 0 0 52px !important;
  }

  html body .sidebar .brand-copy,
  html body.view-dashboard .sidebar .brand-copy,
  html body.view-practice .sidebar .brand-copy,
  html body.view-mock .sidebar .brand-copy,
  html body.view-profile .sidebar .brand-copy,
  html body.view-admin .sidebar .brand-copy {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    gap: 14px !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html body .sidebar .brand-copy strong,
  html body.view-dashboard .sidebar .brand-copy strong,
  html body.view-practice .sidebar .brand-copy strong,
  html body.view-mock .sidebar .brand-copy strong,
  html body.view-profile .sidebar .brand-copy strong,
  html body.view-admin .sidebar .brand-copy strong {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-size: 23px !important;
    line-height: 1 !important;
  }

  html body .sidebar .exam-type-picker,
  html body.view-dashboard .sidebar .exam-type-picker,
  html body.view-practice .sidebar .exam-type-picker,
  html body.view-mock .sidebar .exam-type-picker,
  html body.view-profile .sidebar .exam-type-picker,
  html body.view-admin .sidebar .exam-type-picker {
    flex: 0 0 150px !important;
    width: 150px !important;
    max-width: 150px !important;
    height: 30px !important;
    min-height: 30px !important;
  }

  html body .sidebar .exam-type-picker select,
  html body.view-dashboard .sidebar .exam-type-picker select,
  html body.view-practice .sidebar .exam-type-picker select,
  html body.view-mock .sidebar .exam-type-picker select,
  html body.view-profile .sidebar .exam-type-picker select,
  html body.view-admin .sidebar .exam-type-picker select {
    width: 150px !important;
    max-width: 150px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 24px 0 12px !important;
    font-size: 12px !important;
    line-height: 30px !important;
  }

  html body .sidebar .nav-list,
  html body.view-dashboard .sidebar .nav-list,
  html body.view-practice .sidebar .nav-list,
  html body.view-mock .sidebar .nav-list,
  html body.view-profile .sidebar .nav-list,
  html body.view-admin .sidebar .nav-list {
    justify-self: center !important;
    justify-content: center !important;
    gap: 14px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  html body .sidebar .nav-link,
  html body.view-dashboard .sidebar .nav-link,
  html body.view-practice .sidebar .nav-link,
  html body.view-mock .sidebar .nav-link,
  html body.view-profile .sidebar .nav-link,
  html body.view-admin .sidebar .nav-link {
    min-width: 56px !important;
    height: 42px !important;
    padding: 0 12px !important;
    font-size: 15px !important;
    line-height: 42px !important;
    white-space: nowrap !important;
  }

  html body .sidebar .sidebar-user-card,
  html body .sidebar .sidebar-user-card.is-logged-in,
  html body.view-practice .sidebar-user-card {
    justify-self: end !important;
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    width: 196px !important;
    max-width: 196px !important;
    height: 52px !important;
    padding: 7px 10px !important;
    overflow: hidden !important;
  }

  html body .sidebar .sidebar-user-card img,
  html body.view-practice .sidebar-user-card img {
    width: 38px !important;
    height: 38px !important;
  }

  html body .sidebar .sidebar-user-card span,
  html body .sidebar .sidebar-user-card b {
    display: block !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  html body:not(.view-agent) .sidebar,
  html body.view-dashboard .sidebar,
  html body.view-practice .sidebar,
  html body.view-mock .sidebar,
  html body.view-profile .sidebar,
  html body.view-admin .sidebar,
  html body.view-practice.practice-answer-detail-active .sidebar {
    grid-template-columns: minmax(310px, 360px) minmax(220px, 1fr) 58px !important;
    column-gap: 10px !important;
    padding-inline: 14px !important;
  }

  html body .sidebar .brand {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  html body .sidebar .brand-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }

  html body .sidebar .brand-copy {
    gap: 8px !important;
  }

  html body .sidebar .brand-copy strong {
    font-size: 20px !important;
    width: auto !important;
    min-width: max-content !important;
  }

  html body .sidebar .exam-type-picker,
  html body .sidebar .exam-type-picker select {
    width: 132px !important;
    max-width: 132px !important;
    flex-basis: 132px !important;
  }

  html body .sidebar .nav-list {
    gap: 6px !important;
  }

  html body .sidebar .nav-link {
    min-width: 48px !important;
    padding-inline: 8px !important;
    font-size: 14px !important;
  }

  html body .sidebar .sidebar-user-card,
  html body .sidebar .sidebar-user-card.is-logged-in,
  html body.view-practice .sidebar-user-card {
    grid-template-columns: 42px !important;
    place-content: center !important;
    width: 58px !important;
    max-width: 58px !important;
    height: 52px !important;
    padding: 5px !important;
    border-radius: 999px !important;
  }

  html body .sidebar .sidebar-user-card img {
    width: 42px !important;
    height: 42px !important;
  }

  html body .sidebar .sidebar-user-card span,
  html body .sidebar .sidebar-user-card b {
    display: none !important;
  }
}

/* LAST header polish override: this intentionally sits after the comfort pass. */
@media (min-width: 761px) {
  html body:not(.view-agent) .sidebar,
  html body.view-dashboard .sidebar,
  html body.view-practice .sidebar,
  html body.view-mock .sidebar,
  html body.view-profile .sidebar,
  html body.view-admin .sidebar,
  html body.view-practice.practice-answer-detail-active .sidebar {
    align-items: center !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  html body .sidebar .nav-list,
  html body.view-dashboard .sidebar .nav-list,
  html body.view-practice .sidebar .nav-list,
  html body.view-mock .sidebar .nav-list,
  html body.view-profile .sidebar .nav-list,
  html body.view-admin .sidebar .nav-list {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.64) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.34) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
    overflow: visible !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
  }

  html body .sidebar .nav-link,
  html body.view-dashboard .sidebar .nav-link,
  html body.view-practice .sidebar .nav-link,
  html body.view-mock .sidebar .nav-link,
  html body.view-profile .sidebar .nav-link,
  html body.view-admin .sidebar .nav-link,
  html body .sidebar .nav-link.active,
  html body.view-dashboard .sidebar .nav-link.active,
  html body.view-practice .sidebar .nav-link.active,
  html body.view-mock .sidebar .nav-link.active,
  html body.view-profile .sidebar .nav-link.active,
  html body.view-admin .sidebar .nav-link.active {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 58px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    line-height: 36px !important;
    transition:
      background-color 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease,
      color 180ms ease,
      transform 180ms ease !important;
  }

  html body .sidebar .nav-link.active,
  html body.view-dashboard .sidebar .nav-link.active,
  html body.view-practice .sidebar .nav-link.active,
  html body.view-mock .sidebar .nav-link.active,
  html body.view-profile .sidebar .nav-link.active,
  html body.view-admin .sidebar .nav-link.active {
    color: #111318 !important;
    border: 1px solid rgba(255, 255, 255, 0.82) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62)),
      rgba(255, 255, 255, 0.72) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 10px 22px -18px rgba(15, 23, 42, 0.42) !important;
  }

  html body .sidebar .nav-link.active::after,
  html body.view-dashboard .sidebar .nav-link.active::after,
  html body.view-practice .sidebar .nav-link.active::after,
  html body.view-mock .sidebar .nav-link.active::after,
  html body.view-profile .sidebar .nav-link.active::after,
  html body.view-admin .sidebar .nav-link.active::after {
    bottom: 5px !important;
    width: 20px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #ffd166, #f5b400) !important;
    box-shadow: 0 2px 8px rgba(245, 180, 0, 0.28) !important;
  }
}

/* LAST account-card correction: keep the user avatar and text inside the top bar. */
@media (min-width: 761px) {
  html body .sidebar #sidebarUserButton.sidebar-user-card,
  html body .sidebar #sidebarUserButton.sidebar-user-card.is-logged-in {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 6px 10px !important;
    overflow: hidden !important;
  }

  html body .sidebar #sidebarUserButton.sidebar-user-card img {
    position: static !important;
    inset: auto !important;
    display: block !important;
    align-self: center !important;
    justify-self: center !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    transform: none !important;
    object-fit: cover !important;
    flex: 0 0 36px !important;
  }

  html body .sidebar #sidebarUserButton.sidebar-user-card span,
  html body .sidebar #sidebarUserButton.sidebar-user-card b {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 1180px) {
  html body .sidebar #sidebarUserButton.sidebar-user-card,
  html body .sidebar #sidebarUserButton.sidebar-user-card.is-logged-in {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 4px !important;
    border-radius: 999px !important;
  }

  html body .sidebar #sidebarUserButton.sidebar-user-card img {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }

  html body .sidebar #sidebarUserButton.sidebar-user-card span,
  html body .sidebar #sidebarUserButton.sidebar-user-card b {
    display: none !important;
  }
}
