:root {
  --escen-ink: #122c40;
  --escen-ink-deep: #0c2638;
  --escen-text: #3f4f5e;
  --escen-muted: #6d7a86;
  --escen-canvas: #f3f7f8;
  --escen-surface: #ffffff;
  --escen-line: #dce4e8;
  --escen-blue: #2369a6;
  --escen-coral: #ef735d;
  --escen-violet: #8b52c7;
  --escen-sky: #54a8df;
  --escen-mint: #8edfc6;
  --escen-spectrum: linear-gradient(90deg, #ef735d 0%, #e79a66 24%, #8b52c7 55%, #54a8df 78%, #8edfc6 100%);
  --escen-shadow: 0 18px 55px rgba(18, 44, 64, 0.1);
  --escen-shadow-hover: 0 24px 64px rgba(18, 44, 64, 0.16);
  --escen-radius-card: 24px;
  --escen-radius-control: 999px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body.sc-body,
.sc-body input,
.sc-body select,
.sc-body textarea,
.sc-body button {
  font-family: "Poppins", Arial, Helvetica, sans-serif !important;
  letter-spacing: 0;
}

body.sc-body {
  color: var(--escen-text);
  background: var(--escen-canvas) !important;
}

.sc-body h1,
.sc-body h2,
.sc-body h3,
.sc-body h4,
.sc-body strong {
  color: var(--escen-ink);
  letter-spacing: 0 !important;
}

.sc-body a,
.sc-body button,
.sc-body summary {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.sc-body button:focus-visible,
.sc-body a:focus-visible,
.sc-body summary:focus-visible,
.sc-body input:focus-visible,
.sc-body select:focus-visible,
.sc-body textarea:focus-visible {
  outline: 3px solid rgba(84, 168, 223, 0.38);
  outline-offset: 3px;
}

/* Public navigation */
.sci-container {
  width: 80% !important;
  max-width: none !important;
  margin-inline: auto;
}

.sci-header {
  height: 96px !important;
  border-bottom: 1px solid rgba(18, 44, 64, 0.1) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 8px 32px rgba(18, 44, 64, 0.05) !important;
  backdrop-filter: blur(18px);
}

.sci-header__inner {
  height: 96px !important;
  gap: 34px !important;
}

.sc-body .sci-logo,
.sc-body .cc-app-logo,
.sc-body .sc-app-logo {
  color: var(--escen-ink) !important;
  font-size: var(--type-3-subtitle) !important;
  font-weight: 700 !important;
}

.sci-logo__icon {
  color: var(--escen-coral) !important;
}

.sci-logo__icon svg {
  width: 30px !important;
  height: 30px !important;
  stroke-width: 1.8;
}

.sci-level-nav {
  gap: 32px !important;
}

.sc-body .sci-level-nav > a,
.sc-body .sci-level-nav > .sci-nav-group > button,
.sc-body .sci-nav-direct {
  color: var(--escen-ink) !important;
  font-size: var(--type-2-body) !important;
  line-height: var(--leading-body) !important;
  font-weight: 600 !important;
}

.sci-level-nav > a:hover,
.sci-level-nav > .sci-nav-group > button:hover,
.sci-level-nav > .sci-nav-group > button[aria-expanded="true"] {
  color: var(--escen-coral) !important;
}

.sci-nav-chevron {
  width: 16px !important;
  height: 16px !important;
  margin-left: 7px;
}

.sci-header__actions {
  gap: 12px !important;
}

.sc-body .sci-login,
.sc-body .sci-register,
.sc-body .sc-profile-trigger {
  min-height: 3.25rem;
  border-radius: var(--escen-radius-control) !important;
  padding: 0.625rem 1.5rem !important;
  font-size: var(--type-2-body) !important;
  line-height: var(--leading-body) !important;
  font-weight: 700 !important;
}

.sci-login {
  border-color: var(--escen-ink) !important;
  color: var(--escen-ink) !important;
  background: transparent !important;
}

.sci-register {
  border-color: var(--escen-ink) !important;
  background: var(--escen-ink) !important;
  color: #fff !important;
}

.sci-login:hover,
.sci-register:hover,
.sc-profile-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 44, 64, 0.14);
}

.sci-cascade-menu {
  top: calc(100% + 20px) !important;
  border: 1px solid var(--escen-line) !important;
  border-radius: var(--escen-radius-card) !important;
  background: #fff !important;
  box-shadow: var(--escen-shadow-hover) !important;
  overflow: visible !important;
}

.sci-cascade-menu::before {
  content: "";
  position: absolute;
  inset: -20px 0 auto;
  height: 22px;
}

.sci-cascade-menu__primary {
  border-radius: var(--escen-radius-card) !important;
  padding: 12px !important;
  background: #fff !important;
}

.sci-cascade-menu__category {
  min-height: 54px;
  border-radius: 14px !important;
  padding: 12px 14px !important;
}

.sci-cascade-menu__category.is-active {
  color: var(--escen-ink) !important;
  background: #edf5f8 !important;
}

.sci-cascade-submenu {
  top: 0 !important;
  left: calc(100% + 8px) !important;
  min-height: 100% !important;
  border: 1px solid var(--escen-line) !important;
  border-radius: var(--escen-radius-card) !important;
  padding: 22px !important;
  background: #fff !important;
  box-shadow: var(--escen-shadow) !important;
}

.sci-cascade-submenu::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -10px;
  width: 12px;
}

.sci-cascade-submenu header strong {
  color: var(--escen-ink) !important;
}

.sci-cascade-submenu a:hover,
.sci-cascade-menu__all:hover {
  color: var(--escen-coral) !important;
}

.sci-public-main {
  padding-top: 96px !important;
}

.sc-profile-menu,
.cc-dropdown {
  border: 1px solid var(--escen-line) !important;
  border-radius: var(--escen-radius-card) !important;
  box-shadow: var(--escen-shadow-hover) !important;
}

/* Home */
.sci-home {
  overflow: hidden;
  background: #fff;
}

.sci-floating-shapes {
  display: none !important;
}

.sci-hero {
  min-height: calc(100vh - 96px);
  background: #fff !important;
}

.sci-hero__grid {
  min-height: calc(100vh - 96px);
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr) !important;
  gap: 72px !important;
  padding: 72px 0 92px !important;
}

.sci-eyebrow,
.sci-pill {
  color: var(--escen-coral) !important;
  font-size: var(--type-1-label) !important;
  line-height: var(--leading-label) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
}

/* Public content never falls below the 1rem accessibility floor. */
.sc-body .sci-home .sci-eyebrow,
.sc-body .sci-home .sci-float-card strong,
.sc-body .sci-home .sci-float-card small,
.sc-body .sci-home .sci-step-icon b,
.sc-body .sci-footer__bottom {
  font-size: var(--type-1-label) !important;
  line-height: var(--leading-label) !important;
}

.sc-body .sci-home .sci-demo-grid li {
  font-size: var(--type-2-body) !important;
  line-height: var(--leading-body) !important;
}

.sci-hero__copy h1,
.sc-body .sci-hero__copy h1 {
  max-width: 700px !important;
  margin-top: 14px !important;
  color: var(--escen-ink) !important;
  font-size: var(--type-5-display) !important;
  line-height: 0.99 !important;
  font-weight: 800 !important;
  text-transform: uppercase;
}

.sci-hero__copy h1 span,
.sci-hero__copy h1 strong {
  display: block;
  color: var(--escen-ink) !important;
}

.sci-hero__copy h1 strong {
  color: var(--escen-violet) !important;
}

.sci-hero__copy > p,
.sc-body .sci-home .sci-hero__copy > p:not(.sci-eyebrow) {
  max-width: 640px !important;
  color: var(--escen-text) !important;
  font-size: var(--type-2-body) !important;
  line-height: 1.7 !important;
}

.sci-hero__actions {
  gap: 14px !important;
  margin-top: 30px !important;
}

.sci-btn,
.sc-body .sci-btn {
  min-height: 54px;
  border-radius: var(--escen-radius-control) !important;
  padding: 0 8px 0 24px !important;
  font-size: var(--type-2-body) !important;
  font-weight: 700 !important;
}

.sci-btn > span {
  display: inline-grid !important;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.sci-btn--primary {
  border: 1px solid var(--escen-ink) !important;
  background: var(--escen-ink) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(18, 44, 64, 0.16) !important;
}

.sci-btn--outline {
  border: 1px solid var(--escen-line) !important;
  background: #fff !important;
  color: var(--escen-ink) !important;
}

.sci-btn--outline > span {
  background: var(--escen-canvas);
}

.sci-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--escen-shadow) !important;
}

.sci-hero__note {
  margin-top: 18px !important;
  color: var(--escen-muted) !important;
  font-size: var(--type-1-label) !important;
}

.sci-hero-image {
  height: 540px !important;
  overflow: visible !important;
  border-radius: 50% 50% 30px 30px !important;
  box-shadow: none !important;
  isolation: isolate;
}

.sci-hero-image::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--escen-coral), #e9a16d, var(--escen-violet), var(--escen-sky), var(--escen-mint), var(--escen-coral));
  animation: escen-spectrum-turn 18s linear infinite;
}

.sci-hero-image::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -11px;
  border-radius: 50%;
  background: #fff;
}

.sci-hero-image > img {
  border-radius: 50% 50% 30px 30px !important;
  object-position: center;
}

.sci-hero-image__overlay {
  display: none !important;
}

.sci-float-card {
  border: 1px solid rgba(18, 44, 64, 0.08) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: var(--escen-shadow) !important;
  animation: escen-float 5s ease-in-out infinite;
}

.sci-float-card--rating {
  animation-delay: -2.5s;
}

.sci-stats {
  position: relative;
  border: 0 !important;
  background: var(--escen-ink) !important;
}

.sci-stats::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--escen-spectrum);
}

.sci-stats-grid article strong,
.sci-stats-grid article span {
  color: #fff !important;
}

.sci-section {
  padding: 112px 0 !important;
  background: #fff !important;
}

.sci-section--blue,
.sci-testimonials,
.sci-pricing {
  background: var(--escen-canvas) !important;
}

.sci-section-title {
  max-width: 900px !important;
}

.sci-section-title h2,
.sci-demo-grid h2,
.sci-showcase h2,
.sci-testimonials h2,
.sc-body .sci-public-main h2 {
  color: var(--escen-ink) !important;
  font-size: var(--type-4-title) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
}

.sci-section-title h2 span,
.sci-demo-grid h2 span,
.sci-showcase h2 span,
.sci-testimonials h2 span {
  color: var(--escen-violet) !important;
}

.sci-section-title > p:not(.sci-eyebrow),
.sci-demo-grid > div > p,
.sci-showcase > div > p {
  color: var(--escen-text) !important;
  font-size: var(--type-2-body) !important;
  line-height: 1.7 !important;
}

.sci-feature-grid,
.sci-step-grid,
.sci-pricing-grid,
.sci-testimonial-grid {
  gap: 24px !important;
  margin-top: 54px !important;
}

.sci-feature-card,
.sci-notion-card,
.sci-price-card,
.sci-testimonial-grid article,
.sci-faq-list article,
.sci-compare,
.sci-step-grid article,
.sci-course-card,
.sci-catalog-card {
  border: 1px solid var(--escen-line) !important;
  border-radius: var(--escen-radius-card) !important;
  background: #fff !important;
  box-shadow: 0 14px 42px rgba(18, 44, 64, 0.07) !important;
}

.sci-feature-card,
.sci-price-card,
.sci-testimonial-grid article,
.sci-step-grid article,
.sci-course-card,
.sci-catalog-card {
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease !important;
}

.sci-feature-card:hover,
.sci-price-card:hover,
.sci-testimonial-grid article:hover,
.sci-step-grid article:hover,
.sci-course-card:hover,
.sci-catalog-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(84, 168, 223, 0.7) !important;
  box-shadow: var(--escen-shadow-hover) !important;
}

.sci-feature-card img {
  display: block !important;
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
}

.sci-home--animated .sci-feature-card::before {
  content: none !important;
}

.sci-home--animated .sci-feature-card > div,
.sci-feature-card div {
  position: relative !important;
  z-index: auto !important;
  min-height: 194px;
  margin-top: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  padding: 26px !important;
}

.sci-feature-card h3 i {
  width: 10px !important;
  height: 10px !important;
  background: var(--escen-coral) !important;
}

/* Keep the process icons inside their cards instead of straddling the border. */
.sci-home .sci-step-grid article {
  display: flex !important;
  min-width: 0;
  min-height: 264px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 30px 28px 28px !important;
  overflow: hidden;
}

.sci-home .sci-step-grid .sci-step-icon {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  flex: 0 0 80px;
  margin: 0 auto 24px !important;
  transform: none !important;
}

.sci-home .sci-step-grid h3,
.sci-home .sci-step-grid p {
  width: 100%;
}

/* Pricing needs content-driven height; the legacy fixed row clipped long plans. */
.sci-home .sci-price-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  align-items: stretch;
  width: 100%;
  margin-inline: auto;
  gap: 28px !important;
}

.sci-home .sci-price-card,
.sci-home .sci-price-card.is-popular {
  display: flex !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex-direction: column;
  gap: 14px;
  padding: 30px !important;
  overflow: visible;
}

.sci-home .sci-price-card > p,
.sci-home .sci-price-card > div,
.sci-home .sci-price-card ul,
.sci-home .sci-price-card .sci-price-compare-link,
.sci-home .sci-price-card > .sci-btn {
  flex-shrink: 0;
}

.sci-home .sci-price-card ul {
  display: grid !important;
  flex: 1 0 auto !important;
  gap: 10px;
  margin: 4px 0 0 !important;
}

.sci-home .sci-price-card li {
  min-height: 0 !important;
  margin: 0 !important;
  font-size: var(--type-2-body) !important;
  line-height: var(--leading-body) !important;
}

.sci-home .sci-price-card .sci-price-compare-link {
  margin-top: auto !important;
  padding-top: 6px;
  font-size: var(--type-1-label) !important;
  line-height: var(--leading-label) !important;
}

.sci-home .sci-price-card > .sci-btn {
  min-height: 48px !important;
  margin-top: 0 !important;
}

.sci-home .sci-compare {
  clear: both;
  margin-top: 96px !important;
  overflow: hidden;
}

.sci-home .sci-compare > .sci-section-title {
  padding: 48px 32px 0;
}

.sci-home .sci-compare > .sci-compare__table {
  margin-top: 36px !important;
}

@media (min-width: 1200px) {
  .sci-home .sci-price-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .sci-home .sci-price-grid {
    grid-template-columns: 1fr !important;
  }
}

/* A single, centered account mark in both the public and app navigation. */
.cc-profile__avatar,
.cc-dropdown__avatar {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center;
}

.sci-header .sc-profile-trigger--avatar-only {
  display: grid !important;
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  height: 50px !important;
  min-height: 50px !important;
  place-items: center !important;
  padding: 0 !important;
  border-radius: 50% !important;
}

.sci-header .sc-profile-trigger--avatar-only .cc-profile__avatar {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  margin: 0 !important;
  font-size: var(--type-1-label) !important;
}

.sci-demo-grid,
.sci-showcase {
  gap: 72px !important;
}

.sci-showcase__image,
.sci-auth-promo figure {
  border-radius: var(--escen-radius-card) !important;
  box-shadow: var(--escen-shadow) !important;
}

.sci-success {
  position: relative;
  background: var(--escen-ink) !important;
}

.sci-success::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--escen-spectrum);
}

.sci-success h2,
.sci-success p,
.sci-success strong,
.sci-success span {
  color: #fff !important;
}

.sci-footer {
  background: var(--escen-ink-deep) !important;
  color: rgba(255, 255, 255, 0.74) !important;
}

.sci-footer .sci-logo,
.sci-footer h3,
.sci-footer a {
  color: #fff !important;
}

/* Dashboard */
.cc-app-body,
.sc-app-body {
  background: var(--escen-canvas) !important;
}

.cc-app-sidebar,
.sc-app-sidebar,
.sci-app-sidebar {
  width: 280px !important;
  border-right: 1px solid var(--escen-line) !important;
  background: #fff !important;
}

.cc-app-workspace,
.sc-app-workspace,
.sci-app-workspace {
  min-width: 0 !important;
  width: 100% !important;
  margin-left: 0 !important;
}

.cc-app-sidebar__brand {
  min-height: 84px !important;
  border-bottom: 1px solid var(--escen-line) !important;
}

.cc-app-nav {
  padding: 22px 16px !important;
}

.cc-app-nav__label {
  margin: 18px 14px 8px !important;
  color: var(--escen-muted) !important;
  text-transform: uppercase;
}

.cc-app-nav__link {
  min-height: 50px !important;
  border-radius: 14px !important;
  padding: 0 16px !important;
  color: var(--escen-ink) !important;
  font-weight: 600 !important;
}

.cc-app-nav__link:hover {
  background: #f0f6f7 !important;
}

.cc-app-nav__link.is-active {
  color: var(--escen-ink) !important;
  background: #eaf3f6 !important;
  box-shadow: inset 4px 0 var(--escen-coral) !important;
}

.cc-app-sidebar__foot {
  border-top: 1px solid var(--escen-line) !important;
  background: #fff !important;
}

.cc-app-sidebar__foot button {
  border-radius: var(--escen-radius-control) !important;
  background: var(--escen-ink) !important;
}

.cc-app-topbar,
.sc-app-topbar,
.sci-app-topbar {
  min-height: 84px !important;
  border-bottom: 1px solid var(--escen-line) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 8px 28px rgba(18, 44, 64, 0.04) !important;
  backdrop-filter: blur(18px);
}

.cc-app-topbar__left strong,
.cc-app-profile__text strong {
  color: var(--escen-ink) !important;
}

.cc-app-ghost-link,
.cc-app-profile {
  min-height: 48px !important;
  border-radius: var(--escen-radius-control) !important;
  border-color: var(--escen-line) !important;
}

.cc-profile__avatar {
  background: var(--escen-ink) !important;
}

.cc-app-main,
.sc-app-main,
.sci-app-main {
  width: 100% !important;
  max-width: none !important;
  padding: 32px !important;
  background: var(--escen-canvas) !important;
}

.sci-dash-hero {
  border: 0 !important;
  border-radius: var(--escen-radius-card) !important;
  background: var(--escen-ink) !important;
  box-shadow: var(--escen-shadow) !important;
}

.sci-dash-hero::after {
  background: var(--escen-spectrum) !important;
}

.sci-dash-hero h1,
.sci-dash-hero h2,
.sci-dash-hero p,
.sci-dash-hero span,
.sci-dash-hero strong {
  color: #fff !important;
}

.sci-dash-panel,
.account-settings-sheet,
.family-roster,
.family-detail-panel,
.sci-course-summary-card,
.cc-app-main form[class*="card"],
.cc-app-main section[class*="card"] {
  border: 1px solid var(--escen-line) !important;
  border-radius: var(--escen-radius-card) !important;
  background: #fff !important;
  box-shadow: 0 12px 36px rgba(18, 44, 64, 0.06) !important;
}

.sci-dash-panel__head,
.account-settings-sheet__header,
.family-roster__header {
  border-bottom-color: var(--escen-line) !important;
}

.sc-body .cc-app-main.sci-app-main h1,
.sc-body .cc-app-main.sci-app-main h2 {
  color: var(--escen-ink) !important;
  font-size: var(--type-4-title) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
}

.sc-body .cc-app-main.sci-app-main h3 {
  color: var(--escen-ink) !important;
  font-size: var(--type-3-subtitle) !important;
  font-weight: 700 !important;
}

.sc-body .cc-app-main.sci-app-main .sci-dash-panel h2,
.sc-body .cc-app-main.sci-app-main .account-settings-sheet__header h2,
.sc-body .cc-app-main.sci-app-main .family-roster__header h2,
.sc-body .cc-app-main.sci-app-main .family-detail-panel h2,
.sc-body .cc-app-main.sci-app-main .sci-course-summary-card h2 {
  font-size: var(--type-3-subtitle) !important;
  line-height: var(--leading-subtitle) !important;
  font-weight: 700 !important;
}

.account-setting-row {
  border-color: var(--escen-line) !important;
}

.account-setting-row:hover {
  background: #f8fbfc !important;
}

.account-setting-row__icon,
.account-security__icon {
  color: var(--escen-ink) !important;
  background: #eaf3f6 !important;
}

.account-security__status.is-success {
  color: #17664e !important;
  background: #def5eb !important;
}

.account-setting-row--session {
  box-shadow: inset 4px 0 var(--escen-sky);
}

/* Forms, auth and dialogs */
.sci-auth {
  min-height: calc(100vh - 96px) !important;
  padding: 72px 0 96px !important;
  background: var(--escen-canvas) !important;
}

.sci-auth__grid {
  gap: 72px !important;
}

.sci-auth-card {
  border: 1px solid var(--escen-line) !important;
  border-radius: var(--escen-radius-card) !important;
  padding: 36px !important;
  background: #fff !important;
  box-shadow: var(--escen-shadow) !important;
}

.sci-auth-icon {
  background: var(--escen-ink) !important;
}

.sc-body .sci-auth-card h1,
.sc-body .sci-auth-card h2 {
  color: var(--escen-ink) !important;
  font-size: var(--type-4-title) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
}

.sci-auth-promo h1,
.sci-auth-promo h2,
.sc-body .sci-auth-promo h2 {
  color: var(--escen-ink) !important;
  font-size: var(--type-5-display) !important;
  line-height: 1.02 !important;
  font-weight: 800 !important;
}

.sci-auth-promo h1 span,
.sci-auth-promo h2 span {
  color: var(--escen-violet) !important;
}

.sc-body input:not([type="checkbox"]):not([type="radio"]),
.sc-body select,
.sc-body textarea {
  border: 1px solid var(--escen-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--escen-ink) !important;
}

.sc-body input:not([type="checkbox"]):not([type="radio"]):focus,
.sc-body select:focus,
.sc-body textarea:focus {
  border-color: var(--escen-sky) !important;
  box-shadow: 0 0 0 4px rgba(84, 168, 223, 0.14) !important;
}

.sci-auth-submit,
.family-action-button,
.account-setting-row__content button[type="submit"],
.cc-app-main button[class*="primary"],
.cc-app-main a[class*="primary"] {
  border-radius: var(--escen-radius-control) !important;
  background: var(--escen-ink) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(18, 44, 64, 0.14) !important;
}

.family-modal__dialog,
.account-delete-modal__dialog {
  border: 1px solid var(--escen-line) !important;
  border-radius: var(--escen-radius-card) !important;
  background: #fff !important;
  box-shadow: 0 28px 90px rgba(18, 44, 64, 0.26) !important;
}

.family-modal__backdrop,
.account-delete-modal__backdrop {
  background: rgba(12, 38, 56, 0.62) !important;
  backdrop-filter: blur(5px);
}

.site-toast {
  border-radius: 18px !important;
  box-shadow: var(--escen-shadow-hover) !important;
}

/* Motion */
[data-sci-reveal] {
  will-change: opacity, transform;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

@keyframes escen-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes escen-spectrum-turn {
  to { transform: rotate(360deg); }
}

/* Responsive navigation uses one controlled accordion at every compact width. */
.sci-mobile-tree {
  border-top: 1px solid var(--escen-line);
}

.sci-mobile-tree__toggle,
.sci-mobile-child__toggle {
  display: flex !important;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sci-mobile-tree__toggle::after,
.sci-mobile-child__toggle::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--escen-canvas);
  color: var(--escen-ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.sci-mobile-tree__toggle.is-open::after,
.sci-mobile-child__toggle.is-open::after {
  content: "-";
}

.sci-mobile-tree__toggle.is-open {
  color: var(--escen-coral) !important;
}

.sci-mobile-tree__panel,
.sci-mobile-child__panel {
  display: grid;
  gap: 4px;
}

.sci-mobile-tree__panel {
  padding: 0 8px 10px;
}

.sci-mobile-child {
  border-radius: 12px;
  background: var(--escen-canvas);
}

.sci-mobile-child__toggle {
  min-height: 46px;
  font-weight: 700 !important;
}

.sci-mobile-child__panel {
  padding: 0 8px 10px 18px;
}

.sci-mobile-child__panel a {
  min-height: 42px;
  font-weight: 600 !important;
}

@media (max-width: 1240px) {
  .sci-level-nav,
  .sci-header__actions .sci-login,
  .sci-header__actions .sci-register,
  .sci-header__actions .sc-profile-trigger {
    display: none !important;
  }

  .sci-burger {
    display: inline-grid !important;
  }

  .sci-mobile {
    top: 96px !important;
    right: max(20px, 10vw) !important;
    bottom: auto !important;
    left: auto !important;
    display: grid;
    width: min(520px, calc(100vw - 40px));
    max-height: calc(100dvh - 116px);
    box-sizing: border-box;
    gap: 4px;
    padding: 14px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border-radius: 20px;
  }
}

@media (max-width: 1100px) {
  .sci-level-nav {
    gap: 20px !important;
  }

  .sci-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr) !important;
    gap: 44px !important;
  }

  .sci-hero-image {
    height: 480px !important;
  }
}

@media (max-width: 920px) {
  .sci-container {
    width: min(calc(100% - 40px), 760px) !important;
  }

  .sci-header,
  .sci-header__inner {
    height: 80px !important;
  }

  .sci-public-main {
    padding-top: 80px !important;
  }

  .sci-level-nav,
  .sci-header__actions .sci-login,
  .sci-header__actions .sci-register,
  .sci-header__actions .sc-profile-trigger {
    display: none !important;
  }

  .sci-burger {
    display: inline-grid !important;
  }

  .sci-mobile {
    top: 80px !important;
    right: 20px !important;
    width: min(520px, calc(100vw - 40px));
    max-height: calc(100dvh - 100px);
  }

  .sci-hero,
  .sci-hero__grid {
    min-height: auto;
  }

  .sci-hero__grid {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 72px 0 90px !important;
  }

  .sci-hero__copy,
  .sci-hero-image {
    min-width: 0 !important;
    width: 100% !important;
  }

  .sci-hero-image {
    width: min(100%, 620px);
    height: 520px !important;
    margin: 24px auto 0;
  }

  .sci-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cc-app-sidebar,
  .sc-app-sidebar,
  .sci-app-sidebar {
    width: min(320px, 88vw) !important;
  }

  .cc-app-workspace,
  .sc-app-workspace,
  .sci-app-workspace {
    width: 100% !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 720px) {
  :root {
    --type-3-subtitle: 1.375rem;
    --type-4-title: 2.25rem;
    --type-5-display: 3rem;
  }

  html {
    scroll-padding-top: 80px;
  }

  .sci-container {
    width: calc(100% - 32px) !important;
  }

  .sci-header__inner {
    gap: 14px !important;
  }

  .sc-body .sci-logo {
    font-size: var(--type-3-subtitle) !important;
  }

  .sci-logo__icon svg {
    width: 26px !important;
    height: 26px !important;
  }

  .sci-hero__grid {
    padding: 56px 0 78px !important;
  }

  .sci-hero__copy h1,
  .sc-body .sci-hero__copy h1 {
    font-size: var(--type-5-display) !important;
    overflow-wrap: anywhere;
  }

  .sci-hero__copy > p,
  .sci-hero__note {
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }

  .sci-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sci-btn {
    width: 100% !important;
    justify-content: space-between;
  }

  .sci-hero-image {
    height: 390px !important;
  }

  .sci-float-card--rating {
    right: -8px !important;
  }

  .sci-float-card--students {
    left: -8px !important;
  }

  .sci-section {
    padding: 76px 0 !important;
  }

  .sci-feature-grid,
  .sci-step-grid,
  .sci-pricing-grid,
  .sci-testimonial-grid {
    grid-template-columns: 1fr !important;
  }

  .cc-app-main,
  .sc-app-main,
  .sci-app-main {
    padding: 18px !important;
  }

  .cc-app-topbar,
  .sc-app-topbar,
  .sci-app-topbar {
    min-height: 72px !important;
  }

  .cc-app-ghost-link,
  .cc-app-profile__text {
    display: none !important;
  }

  .sci-auth {
    padding: 40px 0 64px !important;
  }

  .sci-auth-card {
    padding: 24px !important;
  }

  .sci-auth-promo h1,
  .sci-auth-promo h2,
  .sc-body .sci-auth-promo h2 {
    font-size: var(--type-5-display) !important;
  }
}

/* Mobile public pages: stable layers and readable data layouts. */
@media (max-width: 1100px) {
  .sci-hero,
  .sci-hero__grid {
    min-height: auto !important;
  }

  .sci-hero__grid,
  .sci-home .sci-hero__grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 72px 0 90px !important;
  }

  .sci-hero__copy {
    position: relative;
    z-index: 3;
    width: 100% !important;
    min-width: 0 !important;
  }

  .sci-hero-image {
    z-index: 1;
    width: min(100%, 620px) !important;
    height: clamp(300px, 66vw, 480px) !important;
    margin: 68px auto 0 !important;
  }

  .sci-hero-image::before {
    inset: -12px;
  }

  .sci-hero-image::after {
    inset: -6px;
  }

  .sci-float-card--rating {
    top: 12px !important;
    right: 12px !important;
  }

  .sci-float-card--students {
    bottom: 12px !important;
    left: 12px !important;
  }

  .sci-home .sci-compare {
    overflow: visible !important;
  }

  .sci-home .sci-compare > .sci-section-title {
    padding: 36px 24px 0;
  }

  .sci-home .sci-compare > .sci-compare__table {
    margin-top: 28px !important;
    overflow: visible !important;
  }

  .sci-home .sci-compare table,
  .sci-home .sci-compare tbody {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }

  .sci-home .sci-compare thead {
    display: none;
  }

  .sci-home .sci-compare tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid var(--escen-line);
  }

  .sci-home .sci-compare tbody tr:nth-child(even) {
    background: rgba(239, 246, 248, 0.62);
  }

  .sci-home .sci-compare td,
  .sci-home .sci-compare td:not(:first-child) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: baseline;
    width: auto !important;
    min-width: 0;
    padding: 12px 24px !important;
    border-top: 1px solid rgba(18, 44, 64, 0.08) !important;
    color: var(--escen-ink) !important;
    font-size: var(--type-2-body) !important;
    line-height: var(--leading-body) !important;
    text-align: right !important;
  }

  .sci-home .sci-compare td::before {
    content: attr(data-plan);
    min-width: 0;
    color: var(--escen-muted);
    font-weight: 700;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .sci-home .sci-compare td.sci-compare__feature {
    display: block;
    padding-top: 18px !important;
    padding-bottom: 14px !important;
    border-top: 0 !important;
    color: var(--escen-ink) !important;
    font-weight: 800;
    text-align: left !important;
  }

  .sci-home .sci-compare td.sci-compare__feature::before {
    content: none;
  }

  .sci-home .sci-feature-grid,
  .sci-home .sci-pricing-grid,
  .sci-home .sci-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sci-footer {
    padding: 48px 0 24px !important;
  }

  .sci-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 34px 40px !important;
    min-height: 0 !important;
  }

  .sci-footer__inner > div {
    min-width: 0;
  }

  .sci-footer__inner > div:first-child {
    grid-column: 1 / -1;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .sci-footer .sci-logo {
    font-size: var(--type-3-subtitle) !important;
    line-height: var(--leading-subtitle) !important;
  }

  .sci-footer .sci-logo__icon,
  .sci-footer .sci-logo__icon svg {
    width: 26px !important;
    height: 26px !important;
  }

  .sci-footer p,
  .sci-footer h3,
  .sci-footer a:not(.sci-logo) {
    font-size: var(--type-2-body) !important;
    line-height: var(--leading-body) !important;
  }

  .sci-footer h3 {
    margin-bottom: 14px !important;
    overflow-wrap: anywhere;
  }

  .sci-footer a:not(.sci-logo) {
    margin-top: 10px !important;
    overflow-wrap: anywhere;
  }

  .sci-footer__bottom {
    margin-top: 42px !important;
    padding: 22px 20px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
    font-size: var(--type-1-label) !important;
    line-height: var(--leading-label) !important;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .sci-container {
    width: min(calc(100% - 48px), 960px) !important;
  }
}

@media (min-width: 1101px) and (max-width: 1499px) {
  .sci-header .sci-container,
  .sci-footer .sci-container {
    width: min(calc(100% - 64px), 1360px) !important;
  }

  .sci-level-nav {
    gap: 22px !important;
  }

  .sci-level-nav > a,
  .sci-level-nav > .sci-nav-group > button,
  .sci-nav-direct {
    white-space: nowrap;
  }

  .sci-footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 40px 52px !important;
    min-height: 0 !important;
  }

  .sci-footer__inner > div {
    min-width: 0;
  }

  .sci-footer__inner > div:first-child {
    grid-column: 1 / -1;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .sci-footer h3,
  .sci-footer a,
  .sci-footer p {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 560px) {
  .sci-mobile {
    right: 12px !important;
    left: 12px !important;
    width: auto;
    max-height: calc(100dvh - 92px);
    padding: 10px;
    border-radius: 16px;
  }

  .sci-home .sci-compare > .sci-section-title {
    padding-inline: 18px;
  }

  .sci-home .sci-compare td,
  .sci-home .sci-compare td:not(:first-child) {
    gap: 16px;
    padding-inline: 18px !important;
  }

  .sci-footer__inner {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sci-footer__inner > div:first-child {
    grid-column: auto;
  }
}

/* Rich catalogue filters: e-learning discovery facets without decorative controls. */
.sci-filter-sheet__header small {
  color: var(--escen-muted);
  font-size: 14px;
  line-height: 1.4;
}

.sci-filter-features {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.sci-filter-features legend,
.sci-filter-native-select label {
  margin-bottom: 9px;
  color: var(--escen-ink);
  font-size: var(--type-1-label);
  font-weight: 900;
}

.sci-feature-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sci-feature-choices label {
  display: inline-flex;
  cursor: pointer;
}

.sci-feature-choices input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.sci-feature-choices span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--escen-line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--escen-ink);
  background: #fff;
  font-size: var(--type-1-label);
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.sci-feature-choices input:checked + span {
  border-color: var(--escen-ink);
  color: #fff;
  background: var(--escen-ink);
}

.sci-feature-choices input:focus-visible + span {
  outline: 3px solid rgba(41, 84, 214, 0.28);
  outline-offset: 2px;
}

.sci-filter-native-select select.input {
  display: block !important;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--escen-line);
  border-radius: 12px;
  padding-inline: 14px 40px;
  color: var(--escen-ink);
  background: #fff;
  font: inherit;
  font-size: var(--type-1-body);
}

.sci-active-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--escen-ink);
  font-size: var(--type-1-label);
}

.sci-active-filters > div {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.sci-active-filters span {
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--escen-ink);
  background: #e9f0ff;
  font-weight: 800;
}

.sci-active-filters a {
  flex: 0 0 auto;
  color: var(--escen-red);
  font-weight: 900;
  text-decoration: none;
}

@media (min-width: 901px) {
  .sci-filter-panel,
  .sci-catalog--dashboard .sci-filter-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 22px 18px;
  }

  .sci-filter-panel > .sci-field:first-child {
    grid-column: span 2;
  }

  .sci-filter-features {
    grid-column: 1 / span 3;
    grid-row: 3;
  }

  .sci-filter-native-select {
    grid-column: 4;
    grid-row: 2;
  }

  .sci-filter-sheet__footer {
    display: grid;
    grid-column: 4;
    grid-row: 3;
    align-self: stretch;
    gap: 8px;
  }

  .sci-filter-reset {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0 10px;
    color: var(--escen-muted);
    background: transparent;
    font: inherit;
    font-size: var(--type-1-label);
    font-weight: 800;
    cursor: pointer;
  }

  .sci-filter-submit {
    width: 100% !important;
    min-height: 48px !important;
    justify-content: center !important;
  }
}

@media (max-width: 900px) {
  .sci-filter-sheet {
    width: min(760px, calc(100% - 32px));
  }

  .sci-filter-sheet__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sci-filter-sheet .visual-select > select.input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .sci-filter-sheet .visual-select .sci-choice-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sci-filter-sheet .sci-choice-list button {
    min-height: 42px;
    border-radius: 12px;
    padding-inline: 14px;
    font-size: var(--type-1-label);
  }

  .sci-filter-features {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .sci-filter-sheet__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .sci-filter-features {
    grid-column: auto;
  }

  .sci-active-filters {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-inline: 2px;
  }

  .sci-active-filters > div {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Responsive audit lock: shared public, auth, dashboard and learning surfaces. */
.sci-home .sci-hero-image {
  width: 100% !important;
  min-width: 0 !important;
}

.sci-auth-submit {
  justify-content: center !important;
  gap: 12px !important;
}

.sci-auth-submit > span:first-child {
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  margin-left: 0 !important;
}

.sci-auth-submit > span:last-child {
  display: inline !important;
  flex: 0 1 auto !important;
  width: auto !important;
  height: auto !important;
  margin-left: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  line-height: 1.2 !important;
}

.sc-course-experience-body .cc-app-main.sci-app-main .react-course-hero h1,
.sc-course-experience-body .cc-app-main.sci-app-main .react-course-hero .react-course-author strong {
  color: #fff !important;
}

.sc-course-experience-body .cc-app-main.sci-app-main .react-course-hero .react-course-author small,
.sc-course-experience-body .cc-app-main.sci-app-main .react-course-hero .react-course-meta {
  color: rgba(255, 255, 255, 0.82) !important;
}

@media (max-width: 720px) {
  .sci-home .sci-pricing-grid,
  .sci-home .sci-price-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sci-home .sci-price-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  .react-learn-tabs {
    align-items: stretch !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  .react-learn-tabs > div {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .react-learn-tabs button {
    justify-content: center !important;
    min-width: 0 !important;
    padding-inline: 8px !important;
  }

  .react-learn-tabs .react-learn-present {
    width: 100% !important;
    justify-content: center !important;
  }

  .tryit-tabs {
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  .tryit-tabs button {
    flex: 1 1 140px !important;
    justify-content: center !important;
  }
}

@media (max-width: 560px) {
  .family-child-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .family-child-row__identity {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }

  .family-child-row__progress {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .family-child-row__actions {
    grid-column: 1 !important;
    grid-row: 3 !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }

  .family-child-row__actions a {
    width: auto !important;
    min-width: 112px !important;
    padding-inline: 16px !important;
    font-size: var(--type-1-label) !important;
  }

  .family-child-row__actions a::before {
    content: none !important;
  }

  .sci-password-rules__tooltip {
    right: -8px !important;
    width: min(300px, calc(100vw - 40px)) !important;
  }
}

/* Mobile catalogue: compact discovery flow with progressive filters. */
.sci-catalog-title-mobile,
.sci-filter-toggle {
  display: none;
}

@media (max-width: 560px) {
  .sci-catalog {
    width: auto !important;
    margin-inline: 12px !important;
    padding: 20px 0 56px !important;
  }

  .sci-catalog-hero {
    display: block !important;
    border-radius: 20px !important;
    padding: 22px 20px !important;
  }

  .sci-catalog-title-wide,
  .sci-catalog-hero > div > p:not(.sci-eyebrow),
  .sci-catalog-chips {
    display: none !important;
  }

  .sci-catalog-title-mobile {
    display: inline !important;
  }

  .sci-catalog-hero h1,
  .sc-body .sci-public-main .sci-catalog-hero h1 {
    max-width: 300px;
    margin-top: 8px !important;
    font-size: 32px !important;
    line-height: 1.06 !important;
  }

  .sci-filter-panel,
  .sci-catalog--dashboard .sci-filter-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    margin-top: 14px !important;
    border-radius: 20px !important;
    padding: 18px !important;
  }

  .sci-filter-toggle {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--escen-line);
    border-radius: 12px;
    padding: 0 14px;
    color: var(--escen-ink);
    background: #f2f6f7;
    font: inherit;
    font-size: var(--type-1-label);
    font-weight: 800;
  }

  .sci-filter-toggle i {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--escen-ink);
    font-style: normal;
    line-height: 1;
  }

  .sci-filter-panel .visual-select {
    display: none;
  }

  .sci-filter-panel.is-mobile-open .visual-select {
    display: grid;
  }

  .sci-filter-panel .visual-select > select.input {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    height: 48px !important;
    min-height: 48px;
    opacity: 1 !important;
    pointer-events: auto !important;
    appearance: auto;
  }

  .sci-filter-panel .visual-select .sci-choice-list {
    display: none !important;
  }

  .sci-filter-submit {
    min-height: 50px !important;
    justify-content: center !important;
  }

  .sci-results-head {
    align-items: center !important;
    gap: 12px !important;
    margin-top: 28px !important;
  }

  .sci-results-head .sci-eyebrow {
    margin-bottom: 4px !important;
  }

  .sci-results-head h2,
  .sc-body .sci-public-main .sci-results-head h2,
  .sc-body .cc-app-main.sci-app-main .sci-results-head h2 {
    font-size: 26px !important;
    line-height: 1.08 !important;
  }

  .sci-results-head > span {
    flex: 0 0 auto;
    padding: 8px 12px !important;
    font-size: var(--type-1-label) !important;
  }

  .sci-course-grid {
    gap: 16px !important;
    margin-top: 18px !important;
  }

  .sci-course-summary-card {
    gap: 14px !important;
    border-radius: 20px !important;
    padding: 20px !important;
  }

  .sci-course-summary-card header span {
    padding: 7px 10px !important;
    font-size: 12px !important;
  }

  .sci-course-summary-card h3,
  .sc-body .cc-app-main.sci-app-main .sci-course-summary-card h3 {
    font-size: 22px !important;
    line-height: 1.18 !important;
  }

  .sci-course-summary-card p {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  .sci-course-summary-card section {
    gap: 12px !important;
    border-radius: 14px !important;
    padding: 13px 14px !important;
  }

  .sci-course-summary-card footer {
    align-items: center !important;
  }
}

/* Catalogue filters: desktop fields, compact tablet/mobile sheet. */
.sci-filter-mobile-actions,
.sci-filter-backdrop,
.sci-filter-sheet__header,
.sci-filter-reset {
  display: none;
}

.sci-filter-sheet,
.sci-filter-sheet__fields,
.sci-filter-sheet__footer {
  display: contents;
}

@media (max-width: 900px) {
  body.catalog-filter-open {
    overflow: hidden;
  }

  .sci-catalog {
    width: auto !important;
    margin-inline: clamp(16px, 3vw, 28px) !important;
    padding: 24px 0 64px !important;
  }

  .sci-catalog-hero {
    display: block !important;
    border-radius: 20px !important;
    padding: 24px 26px !important;
  }

  .sci-catalog-title-wide,
  .sci-catalog-hero > div > p:not(.sci-eyebrow),
  .sci-catalog-chips,
  .sci-catalog-preview {
    display: none !important;
  }

  .sci-catalog-title-mobile {
    display: inline !important;
  }

  .sci-catalog-hero h1,
  .sc-body .sci-public-main .sci-catalog-hero h1 {
    max-width: 520px;
    margin-top: 8px !important;
    font-size: 34px !important;
    line-height: 1.08 !important;
  }

  .sci-filter-panel,
  .sci-catalog--dashboard .sci-filter-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    gap: 14px !important;
    margin-top: 16px !important;
    border-radius: 20px !important;
    padding: 18px !important;
  }

  .sci-filter-panel > .sci-field:first-child {
    min-width: 0;
  }

  .sci-filter-mobile-actions {
    display: grid;
    grid-template-columns: auto auto;
    gap: 10px;
  }

  .sci-filter-toggle {
    display: flex !important;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--escen-line);
    border-radius: 12px;
    padding: 0 14px;
    color: var(--escen-ink);
    background: #f2f6f7;
    font: inherit;
    font-size: var(--type-1-label);
    font-weight: 800;
    cursor: pointer;
  }

  .sci-filter-toggle i {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--escen-ink);
    font-style: normal;
    line-height: 1;
  }

  .sci-filter-count {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    padding-inline: 6px;
    color: #fff;
    background: var(--escen-red);
    font-size: 12px;
    line-height: 1;
  }

  .sci-filter-count[hidden] {
    display: none;
  }

  .sci-filter-search-submit {
    display: inline-flex !important;
    width: auto !important;
    min-height: 50px !important;
    justify-content: center !important;
    white-space: nowrap;
  }

  .sci-filter-backdrop {
    display: block;
    position: fixed;
    z-index: 150;
    inset: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
    background: rgba(13, 43, 61, 0.52);
    transition: opacity 220ms ease;
  }

  .sci-filter-panel.is-mobile-open .sci-filter-backdrop,
  .sci-filter-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .sci-filter-sheet {
    display: flex;
    position: fixed;
    z-index: 160;
    left: 50%;
    top: 50%;
    bottom: auto;
    width: min(680px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--escen-line);
    border-radius: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: #fff;
    box-shadow: 0 24px 70px rgba(13, 43, 61, 0.24);
    transform: translate(-50%, -50%);
  }

  .sci-filter-panel.is-mobile-open .sci-filter-sheet,
  .sci-filter-sheet.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
  }

  .sci-filter-sheet__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--escen-line);
    padding: 18px 22px;
  }

  .sci-filter-sheet__header div {
    display: grid;
    gap: 2px;
  }

  .sci-filter-sheet__header span {
    color: var(--escen-red);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .sci-filter-sheet__header strong {
    color: var(--escen-ink);
    font-size: 22px;
    line-height: 1.2;
  }

  .sci-filter-sheet__header > button {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid var(--escen-line);
    border-radius: 50%;
    color: var(--escen-ink);
    background: #f2f6f7;
    font: inherit;
    font-size: 22px;
    cursor: pointer;
  }

  .sci-filter-sheet__fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 1 1 auto;
    min-height: 0;
    gap: 16px;
    overflow-y: auto;
    padding: 22px;
  }

  .sci-filter-panel .visual-select,
  .sci-filter-panel.is-mobile-open .visual-select,
  .sci-filter-sheet .visual-select {
    display: grid;
    min-width: 0;
  }

  .sci-filter-panel .visual-select > select.input,
  .sci-filter-sheet .visual-select > select.input {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    height: 50px !important;
    min-height: 50px;
    opacity: 1 !important;
    pointer-events: auto !important;
    appearance: auto;
  }

  .sci-filter-panel .visual-select .sci-choice-list,
  .sci-filter-sheet .visual-select .sci-choice-list {
    display: none !important;
  }

  .sci-filter-sheet__footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--escen-line);
    padding: 16px 22px max(16px, env(safe-area-inset-bottom));
    background: #fff;
  }

  .sci-filter-reset {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--escen-line);
    border-radius: 999px;
    padding: 0 20px;
    color: var(--escen-ink);
    background: #fff;
    font: inherit;
    font-size: var(--type-1-label);
    font-weight: 800;
    cursor: pointer;
  }

  .sci-filter-submit {
    width: auto !important;
    min-width: 220px;
    min-height: 50px !important;
    justify-content: center !important;
  }

  .sci-results-head {
    margin-top: 30px !important;
  }

  .sci-course-grid {
    gap: 18px !important;
  }
}

@media (max-width: 560px) {
  .sci-catalog {
    margin-inline: 16px !important;
    padding-top: 18px !important;
  }

  .sci-catalog-hero {
    padding: 22px 20px !important;
  }

  .sci-catalog-hero h1,
  .sc-body .sci-public-main .sci-catalog-hero h1 {
    font-size: 32px !important;
  }

  .sci-filter-panel,
  .sci-catalog--dashboard .sci-filter-panel {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .sci-filter-mobile-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .sci-filter-toggle,
  .sci-filter-search-submit {
    width: 100% !important;
  }

  .sci-filter-sheet {
    width: calc(100% - 24px);
    height: min(600px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
    border-radius: 22px;
  }

  .sci-filter-sheet__fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .sci-filter-sheet__header {
    padding: 16px 18px;
  }

  .sci-filter-sheet__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 10px;
    padding-inline: 18px;
  }

  .sci-filter-reset,
  .sci-filter-submit {
    width: 100% !important;
    min-width: 0;
    padding-inline: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sci-filter-backdrop {
    transition: none;
  }
}

/* Final catalogue facet layout. Keep this block last so the rich controls win
   over the legacy compact catalogue rules above. */
@media (min-width: 901px) {
  .sci-filter-panel,
  .sci-catalog--dashboard .sci-filter-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: end !important;
    gap: 22px 18px !important;
  }

  .sci-filter-panel > .sci-field:first-child {
    grid-column: span 2;
  }

  .sci-filter-features {
    grid-column: 1 / span 3;
    grid-row: 3;
  }

  .sci-filter-native-select {
    grid-column: 4;
    grid-row: 2;
  }

  .sci-filter-sheet__footer {
    display: grid;
    grid-column: 4;
    grid-row: 3;
    align-self: stretch;
    gap: 8px;
  }

  .sci-filter-reset {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0 10px;
    color: var(--escen-muted);
    background: transparent;
    font: inherit;
    font-size: var(--type-1-label);
    font-weight: 800;
    cursor: pointer;
  }

  .sci-filter-submit {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    justify-content: center !important;
  }
}

@media (max-width: 900px) {
  .sci-filter-sheet {
    width: min(760px, calc(100% - 32px));
  }

  .sci-filter-sheet__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sci-filter-sheet .visual-select > select.input {
    display: block !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .sci-filter-sheet .visual-select .sci-choice-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sci-filter-sheet .sci-choice-list button {
    min-height: 42px;
    padding: 8px 13px;
    border-radius: 10px;
  }

  .sci-filter-features {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .sci-filter-sheet__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .sci-filter-features {
    grid-column: auto;
  }
}

/* Public catalogue desktop rhythm: keep the working surface generous without
   pinning headings and cards to the viewport edges. Dashboard catalogues keep
   using the full workspace width. */
@media (min-width: 1200px) {
  .sc-body .sci-public-main .sci-catalog:not(.sci-catalog--dashboard) {
    width: min(80%, 1680px) !important;
    margin-inline: auto !important;
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  .sc-body .sci-public-main .sci-catalog:not(.sci-catalog--dashboard) {
    width: calc(100% - 64px) !important;
    margin-inline: auto !important;
  }
}
