/* TETCTET visual bridge for New Exam Studio. Loaded only with the TETCTET theme. */
body.tct-theme .nes-app:not(.nes-app--runner) {
  font-family: Manrope, "Noto Sans Telugu", "Noto Sans Devanagari", system-ui, sans-serif;
  color: #173239;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-filters,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-auth__card {
  border-color: #dce8df;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 17px 40px rgba(17, 50, 48, .07);
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-filters__title,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-auth__title {
  color: #173239;
  font-weight: 800;
  letter-spacing: -.035em;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-filters__label {
  color: #355359;
  font-weight: 700;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-filters__select,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-auth-input,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-detail__tests-filter select {
  border-color: #cfded5;
  border-radius: 11px;
  background-color: #fff;
  color: #173239;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-filters__select:focus,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-auth-input:focus {
  border-color: #198b77;
  outline-color: rgba(25, 139, 119, .2);
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-filters__radio {
  border-color: #dce8df;
  border-radius: 9px;
  color: #355359;
  font-weight: 700;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-filters__radio--active,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-detail__tests-filter-radio--active {
  border-color: #8ccbb1;
  background: #e8f5ed;
  color: #0d7163;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-card {
  border-color: #dce8df;
  border-radius: 17px;
  box-shadow: 0 9px 27px rgba(17, 50, 48, .055);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-card:hover {
  transform: translateY(-3px);
  border-color: #9acfb2;
  box-shadow: 0 19px 39px rgba(17, 50, 48, .11);
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-card__title,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-detail__title {
  color: #173239;
  font-weight: 800;
  letter-spacing: -.035em;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-card__title-link:hover {
  color: #087d70;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-card__footer {
  border-top-color: #e7eee8;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-card__price,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-detail__price {
  color: #087d70;
  font-weight: 800;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-card__price--free,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-detail__price--free {
  color: #087d70;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-card__link,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-btn--primary {
  border-radius: 10px;
  background: #087d70;
  color: #fff !important;
  font-weight: 800 !important;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-card__link:hover,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-btn--primary:hover {
  background: #096d63;
  color: #fff !important;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-btn--secondary {
  border-color: #cbded1;
  border-radius: 10px;
  background: #fff;
  color: #285050;
  font-weight: 700 !important;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-detail__hero,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-detail__purchase,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-detail__section {
  border-color: #dce8df;
  border-radius: 17px;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-detail__plan-option:has(input:checked) {
  border-color: #71b99c;
  background: #edf7ef;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-auth__logo--text {
  background: linear-gradient(135deg, #087d70, #103f47);
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-breadcrumb__link,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-notifications__mark-all {
  color: #087d70;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-accordion__trigger {
  border-color: #cbded1;
  border-radius: 11px;
  background: #edf7ef;
  color: #155d57;
  font-weight: 800;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-accordion__trigger:hover {
  border-color: #9acfb2;
  background: #e1f0e7;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-accordion__trigger--open {
  border-color: #8ccbb1;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-accordion__trigger:focus-visible {
  outline-color: #087d70;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-test-list__item,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-my-tests-pack {
  border-color: #dce8df;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(17, 50, 48, .04);
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-test-list__title {
  color: #173239;
  font-weight: 700;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-test-list__sample-badge {
  background: #e4f2e8;
  color: #0d7163;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-account-sidebar,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-account-card {
  border-color: #dce8df;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(17, 50, 48, .055);
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-account-sidebar__title,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-account-card__title {
  color: #173239;
  font-weight: 800;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-account-sidebar__nav {
  border-color: #dce8df;
  background: #f1f8f3;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-account-sidebar__link--active {
  color: #087d70;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-account-sidebar__link:hover {
  color: #087d70;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-account-input {
  border-color: #cfded5;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-card {
    transition: none;
  }
}

/* TETCTET typography and control rhythm across catalog, packs, auth, and account. */
body.tct-theme .nes-app:not(.nes-app--runner) {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  padding-top: 12px;
  padding-bottom: 36px;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-app__header {
  margin-bottom: 14px;
}

body.tct-theme .nes-app--runner:has(.nes-app__main > .nes-status) {
  min-height: 0;
  background: #f7f9f6;
}

body.tct-theme .nes-app--runner .nes-app__main:has(> .nes-status) {
  display: grid;
  place-items: start center;
  min-height: 0;
  padding: clamp(28px, 4vw, 56px) 16px 72px;
}

body.tct-theme .nes-app--runner .nes-app__main > .nes-status {
  width: min(100%, 520px);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid #dce8df;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(17, 50, 48, .07);
  color: #10343a;
}

body.tct-theme .nes-app--runner .nes-app__main > .nes-status p:first-child {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 750;
}

body.tct-theme .nes-app--runner .nes-app__main > .nes-status .nes-status__hint {
  margin: 16px 0 0;
}

body.tct-theme .nes-app--runner .nes-app__main > .nes-status .nes-status__hint a {
  color: #087d70;
  font-weight: 700;
}

body.tct-theme .nes-app:not(.nes-app--runner):not(.nes-app--catalog-full) {
  width: min(1200px, calc(100% - 48px));
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 0;
}

body.tct-theme .nes-app.nes-app--catalog-full {
  width: min(1200px, calc(100% - 48px));
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 0;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-breadcrumb {
  text-align: left;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-breadcrumb__list {
  justify-content: flex-start;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-app__header:has(.nes-breadcrumb__item:only-child) {
  padding: 10px 0 0;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-breadcrumb__item:only-child .nes-breadcrumb__current {
  color: var(--tct-deep, #10343a);
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.035em;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-filters:not(.nes-pack-filters--sidebar) .nes-pack-filters__radios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-filters__radio {
  min-height: 44px;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-status:not(.nes-status--error):not(.nes-status--success) {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 100px;
  padding: 22px 24px;
  border: 1px solid #cddfd2;
  border-left: 4px solid #168b76;
  border-radius: 13px;
  background: linear-gradient(110deg, #fff, #f0f8f3);
  color: var(--tct-ink, #18363b);
  font-size: 15px;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-status:not(.nes-status--error):not(.nes-status--success)::before {
  display: grid;
  place-items: center;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: #e9f5ed;
  color: #b47b32;
  font-size: 23px;
  content: "✦";
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-status:not(.nes-status--error):not(.nes-status--success) p {
  margin: 0;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-status--library-empty .nes-status__content {
  flex: 1 1 auto;
  min-width: 0;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-status--library-empty {
  align-items: flex-start;
  gap: 20px;
  padding: 28px 30px;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-status--library-empty::before {
  margin-top: 1px;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-status--library-empty .nes-status__title {
  color: #173b40;
  font-family: Manrope, "Noto Sans Telugu", "Noto Sans Devanagari", system-ui, sans-serif;
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.025em;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-status--library-empty .nes-status__hint {
  max-width: 704px;
  margin-top: 8px;
  color: #587074;
  font-family: Manrope, "Noto Sans Telugu", "Noto Sans Devanagari", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-status--library-empty .nes-status__action {
  margin-top: 16px;
}

@media (max-width: 640px) {
  body.tct-theme .nes-app:not(.nes-app--runner) .nes-status--library-empty {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-height: 0;
    padding: 20px 16px;
    text-align: center;
  }

  body.tct-theme .nes-app:not(.nes-app--runner) .nes-status--library-empty::before {
    align-self: center;
  }

  body.tct-theme .nes-app:not(.nes-app--runner) .nes-status--library-empty .nes-status__action .nes-btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  body.tct-theme .nes-app:not(.nes-app--runner) .nes-status--library-empty .nes-status__title {
    font-size: 18px;
  }

  body.tct-theme .nes-app:not(.nes-app--runner) .nes-status--library-empty .nes-status__hint {
    font-size: 14px;
    line-height: 1.6;
  }
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-filters__title,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-auth__title,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-account-sidebar__title {
  font-size: 20px;
  letter-spacing: -.03em;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-filters__label,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-account-field__label {
  font-size: 14px;
  font-weight: 700;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-filters__select,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-filters__radio,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-auth-input,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-account-input {
  min-height: 44px;
  font-size: 14px;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-card__title {
  font-size: 19px;
  line-height: 1.35;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-card__excerpt,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-detail__description {
  font-size: 14px;
  line-height: 1.7;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-card__price {
  font-size: 18px;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-card__link,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-btn {
  font-size: 14px;
  font-weight: 800 !important;
  line-height: 1.4;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-detail__title {
  letter-spacing: -.035em;
  line-height: 1.2;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-accordion__trigger {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -.02em;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-test-list__title,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-account-card__title {
  font-size: 16px;
  line-height: 1.45;
}

body.tct-theme .nes-app:not(.nes-app--runner) .nes-test-list__excerpt,
body.tct-theme .nes-app:not(.nes-app--runner) .nes-test-list__meta {
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  body.tct-theme .nes-app:not(.nes-app--runner) {
    font-size: 15px;
  }

  body.tct-theme .nes-app.nes-app--catalog-full {
    width: calc(100% - 32px);
  }

  body.tct-theme .nes-app:not(.nes-app--runner):not(.nes-app--catalog-full) {
    width: calc(100% - 32px);
  }

  body.tct-theme .nes-app:not(.nes-app--runner) .nes-pack-card__title,
  body.tct-theme .nes-app:not(.nes-app--runner) .nes-accordion__trigger {
    font-size: 17px;
  }
}

/* The catalog menus are drawn in the theme instead of using the OS blue popup. */
body.tct-theme .nes-pack-filters__field { position: relative; }
body.tct-theme .nes-theme-select { position: relative; width: 100%; }
body.tct-theme .nes-theme-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 50px;
  padding: 11px 16px;
  border: 1px solid #bfd9cc;
  border-radius: 12px;
  background: #fff;
  color: #173239;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
body.tct-theme .nes-theme-select__trigger:hover { border-color: #087d70; background: #fbfdfb; }
body.tct-theme .nes-theme-select--open .nes-theme-select__trigger,
body.tct-theme .nes-theme-select__trigger:focus-visible {
  border-color: #087d70;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(8, 125, 112, .14);
}
body.tct-theme .nes-theme-select__trigger:disabled { background: #f3f6f3; color: #70817d; cursor: not-allowed; }
body.tct-theme .nes-theme-select__chevron {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
body.tct-theme .nes-theme-select--open .nes-theme-select__chevron { transform: translateY(2px) rotate(225deg); }
body.tct-theme .nes-theme-select__menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #cbded1;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(16, 52, 58, .16);
}
body.tct-theme .nes-theme-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #24494d;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}
body.tct-theme .nes-theme-select__option--active { background: #e8f5ed; color: #086e63; }
body.tct-theme .nes-theme-select__option[aria-selected="true"] { font-weight: 800; }
body.tct-theme .nes-theme-select__check { color: #087d70; font-weight: 800; }
body.tct-theme .nes-pack-filters__radio input { accent-color: #087d70; }
body.tct-theme .nes-app :is(input[type="radio"], input[type="checkbox"]) { accent-color: #087d70; }

/* Put the exam name at the center of packs without cover art. */
body.tct-theme .nes-app :is(.nes-pack-card__placeholder, .nes-pack-detail__placeholder) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border-color: #c9ded2;
  background: radial-gradient(circle at 80% 15%, rgba(233, 184, 104, .25), transparent 25%), linear-gradient(135deg, #e6f3e9, #d3e9e0);
}
body.tct-theme .nes-app .nes-pack-cover__exam {
  display: block;
  max-width: 92%;
  color: #10343a;
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.035em;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
body.tct-theme .nes-app .nes-pack-cover__exam::before {
  display: block;
  width: 39px;
  height: 3px;
  margin: 0 auto 15px;
  border-radius: 3px;
  background: #bd8a40;
  content: "";
}

/* Verification uses the same surfaces and accent as the theme. */
body.tct-theme .nes-app .nes-verify-email--banner {
  position: relative;
  overflow: hidden;
  margin: 14px 0 26px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #cbded1;
  border-left: 4px solid #087d70;
  border-radius: 18px;
  background: linear-gradient(115deg, #fff 45%, #f0f8f3 100%);
  box-shadow: 0 18px 40px rgba(17, 50, 48, .07);
}
body.tct-theme .nes-app .nes-verify-email__head h2 { color: #10343a; font-size: clamp(22px, 2vw, 28px); font-weight: 800; letter-spacing: -.03em; }
body.tct-theme .nes-app .nes-verify-email__intro { max-width: 900px; color: #355359; font-size: 15px; line-height: 1.7; }
body.tct-theme .nes-app .nes-verify-email__intro strong { color: #173239; }
body.tct-theme .nes-app .nes-verify-email__notice { border-radius: 11px; font-size: 14px; line-height: 1.55; }
body.tct-theme .nes-app .nes-verify-email__notice--info { border-color: #c7e2d1; background: #ecf7ef; color: #155d57; }
body.tct-theme .nes-app .nes-verify-email__notice--success { border-color: #a7d8b8; background: #e8f5ed; color: #125d4f; }
body.tct-theme .nes-app .nes-verify-email__notice--error { border-color: #efc5bc; background: #fff3f0; color: #973f2e; }
body.tct-theme .nes-app .nes-verify-email__form { max-width: 470px; gap: 12px; }
body.tct-theme .nes-app .nes-verify-email__form label { color: #24494d; font-size: 14px; font-weight: 700; }
body.tct-theme .nes-app .nes-verify-email__form input {
  min-height: 48px;
  border-color: #cbded1;
  border-radius: 11px;
  background: #fff;
  color: #173239;
  font-size: 16px;
}
body.tct-theme .nes-app .nes-verify-email__form input:focus { border-color: #087d70; outline: 3px solid rgba(8, 125, 112, .14); }
body.tct-theme .nes-app .nes-verify-email__validity { color: #355359; font-size: 14px; }
body.tct-theme .nes-app .nes-verify-email__spam { color: #60777b; font-size: 13px; }
body.tct-theme .nes-app .nes-verify-email__resend:not(:disabled) { border-color: #9dcdb8; color: #087d70; }
body.tct-theme .nes-app .nes-verify-email__resend:not(:disabled):hover { border-color: #087d70; background: #e8f5ed; }
body.tct-theme .nes-app .nes-verify-email__cooldown { color: #526b70; }

/* Link buttons in the app have ID-specific base rules; match that specificity. */
body.tct-theme #nes-root .nes-app a.nes-btn--primary,
body.tct-theme #nes-root .nes-app a.nes-btn--primary:visited {
  border-radius: 10px;
  background: #087d70;
  color: #fff;
  font-weight: 800;
}
body.tct-theme #nes-root .nes-app a.nes-btn--primary:hover,
body.tct-theme #nes-root .nes-app a.nes-btn--primary:focus-visible {
  background: #096d63;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(8, 125, 112, .17);
}

@media (max-width: 640px) {
  body.tct-theme .nes-app .nes-verify-email--banner { margin-inline: 0; padding: 22px 18px; }
  body.tct-theme .nes-app .nes-verify-email__form { max-width: none; }
}

/* Keep the exam selector and access choices aligned on wide catalog screens. */
body.tct-theme #nes-root .nes-app:not(.nes-app--runner) .nes-pack-filters:not(.nes-pack-filters--sidebar) .nes-pack-filters__grid {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  align-items: start;
}

body.tct-theme #nes-root .nes-app:not(.nes-app--runner) .nes-pack-filters:not(.nes-pack-filters--sidebar) .nes-pack-filters__radios {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.tct-theme #nes-root .nes-app:not(.nes-app--runner) .nes-pack-filters:not(.nes-pack-filters--sidebar) .nes-pack-filters__radio {
  justify-content: center;
  padding-inline: 8px;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  body.tct-theme #nes-root .nes-app:not(.nes-app--runner) .nes-pack-filters:not(.nes-pack-filters--sidebar) .nes-pack-filters__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body.tct-theme #nes-root .nes-app:not(.nes-app--runner) .nes-pack-filters:not(.nes-pack-filters--sidebar) .nes-pack-filters__radios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Auth footer links share the theme's quiet teal action style. */

body.tct-theme #nes-root .nes-app .nes-auth__footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top-color: #e2ebe5;
  color: #526b70;
  font-family: Manrope, "Noto Sans Telugu", "Noto Sans Devanagari", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

body.tct-theme #nes-root .nes-app .nes-auth__footer a,
body.tct-theme #nes-root .nes-app .nes-auth__footer a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 9px;
  color: #087d70;
  font: inherit;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

body.tct-theme #nes-root .nes-app .nes-auth__footer a:hover,
body.tct-theme #nes-root .nes-app .nes-auth__footer a:focus-visible {
  background: #e8f5ed;
  color: #075e56;
  text-decoration: none;
}

/* Show Exam, Paper, and access choices in one row when space permits. */
@media (min-width: 1001px) {
  body.tct-theme #nes-root .nes-app:not(.nes-app--runner) .nes-pack-filters--has-paper:not(.nes-pack-filters--sidebar) .nes-pack-filters__grid {
    grid-template-columns: minmax(0, .75fr) minmax(0, .55fr) minmax(0, 1.4fr);
  }
}
