body.nn-cl .cl-subject-picker { display: none; }
body.nn-registration-page .reg-overseas-fees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
body.nn-registration-page .reg-overseas-fees > :is(h3, a) { grid-column: 1 / -1; }
body.nn-registration-page .reg-overseas-fees > .reg-fee-stage {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e9cc8c;
  border-radius: 8px;
}
.reg-fee-stage h4 { font-size: 17px; margin: 0 0 6px; }
.reg-fee-stage p { margin: 0 0 8px; }
.reg-fee-stage ul { list-style: none; padding: 0; margin: 0; }
.reg-fee-stage li { margin-top: 5px; }
.reg-fee-stage li strong { font-size: 18px; }
@media (max-width: 600px) {
  body.nn-registration-page .reg-overseas-fees { grid-template-columns: 1fr; }
}

@media (max-width: 1100px), (pointer: coarse) and (max-width: 1366px) {
/* Compact text actions on phones and tablets. */
html body :is(
  .btn, .button, .page-button, .nn-button, .nn-file-label,
  .hero-button, .nn-hero-button, .nn-open-hero__button,
  .j-button, .jobs-button, .ce-btn, .ce-button, .uk-button,
  .cl-btn, .nn-action, .np-button, .action-button, .reset-button,
  .uj-btn, .ca-btn, .ukg-btn, .nn-prep-btn, .nn-analytics-choice-button,
  .copy-account-button, .j-copy, .j-reset, .j-ask-ncj
):not(:where(.nn-shared *, .cl-icon-btn, .nn-dialog-close)),
html body .header .nav-controls .menu-toggle,
html body #learning-record .nn-record-actions :is(.nn-button, .nn-file-label) {
  box-sizing: border-box;
  /* Some legacy page rules set fixed heights and padding with !important. */
  height: auto !important;
  min-height: 32px !important;
  max-height: none !important;
  padding: 4px 10px !important;
  line-height: 1.25 !important;
}
html body.nn-cl .cl-card.is-flipped .cl-back-actions .cl-btn {
  width: fit-content;
  max-width: 100%;
}

/* Keep record exports, backups and data deletion in their own rows. */
html body #learning-record .cne-record-toolbar {
  align-items: flex-start;
  flex-direction: column;
}
html body #learning-record .nn-record-actions {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}
html body #learning-record .nn-record-clear { margin-top: 5px; }
html body #learning-record .nn-record-downloads,
html body #learning-record .nn-record-backups { max-width: 100%; }

}

@media (max-width: 850px) {
  body.nn-cl .cl-welcome { position: relative; isolation: isolate; }
  body.nn-cl .cl-welcome-visual {
    position: absolute;
    inset: 0;
    z-index: -1;
    height: auto;
    border-radius: 0;
    box-shadow: none;
  }
  body.nn-cl .cl-welcome-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, #fffffff5, #ffffffe8 60%, #ffffffe0);
  }
}

@media (max-width: 760px) {
  body.nn-cl .cl-subject-sidebar .cl-subject-head p,
  body.nn-cl #cl-categories { display: none; }
  body.nn-cl .cl-subject-picker { display: flex; width: 100%; }
  body.nn-cl .cl-subject-picker select { min-width: 0; flex: 1; max-width: none; }
}

@media (max-width: 700px) {
  .us-rebuilt .ce-chapter-nav > .ce-shell {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 20px;
    max-width: 100%;
    overflow-x: auto;
  }
  .us-rebuilt .ce-chapter-nav a { flex: 0 0 auto; white-space: nowrap; }
  .us-rebuilt .ce-exam-item { display: block; }
  .us-rebuilt .ce-exam-item > .ce-small-index {
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 8px;
  }
}
