/* MADE TOMMY — self-hosted brand typeface (no external font requests) */
@font-face {
  font-family: "MADE TOMMY";
  src: url("/data/tenants/f060f271-c4ff-4f86-9f64-747b8377e960/assets/themes/28b04c6ed758956c9fa40341ec599a3b/media/fonts/MADETOMMY-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "MADE TOMMY";
  src: url("/data/tenants/f060f271-c4ff-4f86-9f64-747b8377e960/assets/themes/28b04c6ed758956c9fa40341ec599a3b/media/fonts/MADETOMMY-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "MADE TOMMY";
  src: url("/data/tenants/f060f271-c4ff-4f86-9f64-747b8377e960/assets/themes/28b04c6ed758956c9fa40341ec599a3b/media/fonts/MADETOMMY-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "MADE TOMMY";
  src: url("/data/tenants/f060f271-c4ff-4f86-9f64-747b8377e960/assets/themes/28b04c6ed758956c9fa40341ec599a3b/media/fonts/MADETOMMY-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "MADE TOMMY";
  src: url("/data/tenants/f060f271-c4ff-4f86-9f64-747b8377e960/assets/themes/28b04c6ed758956c9fa40341ec599a3b/media/fonts/MADETOMMY-ExtraBold.otf") format("opentype");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "MADE TOMMY";
  src: url("/data/tenants/f060f271-c4ff-4f86-9f64-747b8377e960/assets/themes/28b04c6ed758956c9fa40341ec599a3b/media/fonts/MADETOMMY-Black.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --ufm-font-display: "MADE TOMMY", "Avenir Next", "Segoe UI", sans-serif;
  --ufm-font-body: "MADE TOMMY", "Avenir Next", "Segoe UI", sans-serif;
  --ufm-surface: #fbf9fb;
  --ufm-surface-soft: #f8f9fa;
  --ufm-surface-card: #ffffff;
  --ufm-surface-muted: #efedef;
  --ufm-surface-border: #e4e2e4;
  --ufm-text: #1b1b1d;
  --ufm-text-muted: #44474d;
  --ufm-primary: #06162b;
  --ufm-primary-soft: #1c2b40;
  --ufm-secondary: #00677d;
  --ufm-secondary-deep: #006075;
  --ufm-secondary-soft: #72ddfd;
  --ufm-pink: #c61750;
  --ufm-orange: #f48c06;
  --ufm-green: #86efac;
  --ufm-success: #338a0c;
  --ufm-shadow-soft: 0 16px 40px rgba(6, 22, 43, 0.08);
  --ufm-shadow-strong: 0 24px 54px rgba(6, 22, 43, 0.12);
  --ufm-radius-md: 0.75rem;
  --ufm-radius-lg: 1rem;
  --ufm-radius-xl: 1.5rem;
  --ufm-page-pad: 1rem;
  --ufm-max-width: 1280px;
  --ufm-header-height: 64px;
  --ufm-hero-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuAX_qTM8_NxDWemun2fxVir4Nwj0TeQDHliLh70oWZbwFyF0jJquhrLMPOchDF_qARVKy7PJGeGUC9afpd4EusfaYWZJzYUrqFOczIavBPn3RL-PGpTliZs7cn6DxeZK3-phSr9DgHB-9SzOAbIcAvubxmo6sozrw6MMM_5NIuyOU1XZVyED5okq3HtbeRxO1Vy7FWdKW6Cc3Q9EzbDGgXcYwgzANihacRt-OriqIqbX1AApKwiNdT1BGoJ17lHdjFVOBzsuqCY9Ww");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body.ufm-portal-body,
body.scorm-portal-body {
  margin: 0;
  min-height: 100vh;
  background: var(--ufm-surface);
  color: var(--ufm-text);
  font-family: var(--ufm-font-body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--ufm-secondary-soft);
  color: var(--ufm-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(114, 221, 253, 0.45);
  outline-offset: 2px;
}

.ufm-site-frame--portal {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.ufm-shell {
  width: min(100%, var(--ufm-max-width));
  margin: 0 auto;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.ufm-kicker,
.scorm-portal-eyebrow,
.ufm-footer__title {
  font-family: var(--ufm-font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ufm-kicker,
.scorm-portal-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ufm-secondary);
  color: #ffffff;
}

.ufm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding-inline: var(--ufm-page-pad);
  background: rgba(251, 249, 251, 0.94);
  border-bottom: 1px solid var(--ufm-surface-border);
  backdrop-filter: blur(12px);
}

.ufm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--ufm-header-height);
}

.ufm-header__inner > * {
  min-width: 0;
}

.ufm-brand {
  flex: 0 0 auto;
  width: min(106px, 32vw);
}

.ufm-brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.ufm-header--portal .ufm-brand { width: auto; }
.ufm-brand .ufm-wordmark {
  font-family: var(--ufm-font-display);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ufm-primary);
  white-space: nowrap;
}
.ufm-brand .ufm-wordmark .accent { color: var(--ufm-orange); }

.ufm-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(6, 22, 43, 0.08);
  border-radius: 10px;
  background: rgba(6, 22, 43, 0.06);
  color: var(--ufm-primary);
}

.ufm-nav-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: currentColor;
}

.ufm-nav-panel {
  position: fixed;
  top: calc(var(--ufm-header-height) + 8px);
  left: var(--ufm-page-pad);
  right: var(--ufm-page-pad);
  z-index: 59;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.ufm-nav-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.ufm-nav-panel__inner {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--ufm-surface-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--ufm-shadow-strong);
}

.ufm-nav,
.ufm-nav-list {
  display: grid;
  gap: 4px;
}

.ufm-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ufm-nav-link,
.ufm-nav-list .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  color: rgba(6, 22, 43, 0.84);
  font-family: var(--ufm-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.ufm-nav-link:hover,
.ufm-nav-link:focus-visible,
.ufm-nav-link.is-active,
.ufm-nav-link.active,
.ufm-nav-link[aria-current="page"],
.ufm-nav-list .nav-link:hover,
.ufm-nav-list .nav-link:focus-visible,
.ufm-nav-list .nav-link.is-active,
.ufm-nav-list .nav-link.active,
.ufm-nav-list .nav-link[aria-current="page"] {
  color: var(--ufm-primary);
}

.ufm-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ufm-button,
.scorm-portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--ufm-secondary);
  color: #ffffff;
  font-family: var(--ufm-font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ufm-button--compact {
  min-height: 40px;
  padding: 0 18px;
}

.ufm-button:hover,
.ufm-button:focus-visible,
.scorm-portal-button:hover,
.scorm-portal-button:focus-visible {
  background: var(--ufm-secondary-deep);
}

.scorm-portal-button--ghost {
  border-color: #c5c6cd;
  background: transparent;
  color: var(--ufm-primary);
}

.scorm-portal-button--ghost:hover,
.scorm-portal-button--ghost:focus-visible {
  background: rgba(6, 22, 43, 0.04);
}

.scorm-portal-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.ufm-portal-main {
  padding-top: var(--ufm-header-height);
}

.ufm-portal-hero,
.scorm-portal-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--ufm-primary);
}

.ufm-portal-hero::before,
.scorm-portal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 22, 43, 0.9) 0%, rgba(6, 22, 43, 0.54) 42%, rgba(6, 22, 43, 0.16) 80%),
    var(--ufm-hero-image) center center / cover no-repeat;
}

.ufm-portal-hero__inner,
.scorm-portal-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  width: 100%;
  overflow: hidden;
  min-height: 360px;
  padding: 104px var(--ufm-page-pad) 28px;
}

.ufm-portal-hero__copy,
.scorm-portal-hero__main {
  display: grid;
  gap: 20px;
  align-content: start;
  width: 100%;
  max-width: min(560px, 100%);
}

.ufm-portal-hero h1,
.scorm-portal-hero h1,
.ufm-portal-surface h2,
.scorm-portal-card h2,
.scorm-portal-card h3,
.academy-course-login h2,
.academy-course-login h4,
.scorm-portal-session h2,
.ufm-portal-academy__copy h2,
.scorm-purchase-modal__header h2,
.scorm-purchase-modal__details h3 {
  margin: 0;
  font-family: var(--ufm-font-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.ufm-portal-hero h1,
.scorm-portal-hero h1 {
  color: #ffffff;
  max-width: 540px;
  font-size: clamp(2.95rem, 5vw, 4.15rem);
  font-weight: 700;
  line-height: 1.02;
}

.scorm-portal-lead {
  margin: 0;
  max-width: min(520px, 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.56;
}

.ufm-portal-hero__copy > .scorm-portal-eyebrow,
.scorm-portal-hero__main > .scorm-portal-eyebrow {
  justify-self: start;
}

.scorm-portal-hero-copy-append,
.scorm-portal-actions--top,
.scorm-portal-hero-aside,
.ufm-course-story,
.ufm-course-modules,
.ufm-portal-copy,
.ufm-portal-academy__copy,
.ufm-portal-academy__auth {
  display: grid;
  gap: 16px;
}

.ufm-course-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ufm-course-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.scorm-portal-hero-aside {
  max-width: 420px;
}

.scorm-portal-purchase-card,
.scorm-payment-gate,
.ufm-portal-surface,
.scorm-portal-card,
.academy-course-login,
.scorm-portal-auth-panel,
.scorm-portal-session,
.scorm-purchase-modal__dialog {
  border: 1px solid rgba(6, 22, 43, 0.06);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--ufm-shadow-soft);
}

.scorm-portal-purchase-card,
.scorm-payment-gate,
.ufm-portal-surface,
.scorm-portal-card,
.academy-course-login,
.scorm-portal-auth-panel,
.scorm-portal-session {
  border-radius: 12px;
}

.scorm-portal-purchase-card,
.scorm-payment-gate {
  padding: 20px;
}

.scorm-portal-purchase-card__eyebrow,
.scorm-payment-gate__badge,
.scorm-portal-card__badge,
.scorm-portal-badge,
.stitch-intelligence-academy-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(114, 221, 253, 0.18);
  color: var(--ufm-primary);
  font-family: var(--ufm-font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scorm-portal-purchase-card__price,
.scorm-payment-gate__price {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.scorm-portal-purchase-card__price strong,
.scorm-payment-gate__price strong {
  color: var(--ufm-primary);
  font-family: var(--ufm-font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.06;
}

.scorm-portal-purchase-card__intro,
.scorm-payment-gate__copy,
.scorm-portal-purchase-card__note,
.scorm-portal-purchase-card__hint {
  margin: 0;
  color: rgba(27, 27, 29, 0.76);
  font-size: 15px;
  line-height: 1.65;
}

.ufm-portal-section {
  padding: 28px var(--ufm-page-pad) 48px;
}

.ufm-portal-surface {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.ufm-portal-surface__head {
  display: grid;
  gap: 16px;
}

.ufm-portal-surface h2,
.ufm-portal-academy__copy h2 {
  color: var(--ufm-primary);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.03;
}

.ufm-portal-surface p,
.scorm-portal-card p,
.scorm-portal-card__meta,
.scorm-portal-card__subtitle,
.academy-course-login p,
.scorm-portal-session p {
  margin: 0;
  color: rgba(27, 27, 29, 0.76);
  font-size: 16px;
  line-height: 1.68;
}

.ufm-portal-grid,
.scorm-portal-grid {
  display: grid;
  gap: 16px;
}

.scorm-portal-card,
.academy-course-login,
.scorm-portal-auth-panel,
.scorm-portal-session {
  display: grid;
  gap: 16px;
  padding: 24px;
  min-width: 0;
}

.scorm-portal-card.is-featured {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(114, 221, 253, 0.08));
}

.scorm-portal-card.is-locked {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 140, 6, 0.08));
}

.scorm-portal-card__top,
.scorm-portal-card__actions,
.scorm-portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.scorm-portal-actions--top {
  justify-content: flex-start;
}

.scorm-portal-card__body {
  display: grid;
  gap: 10px;
}

.scorm-portal-card h2,
.scorm-portal-card h3 {
  color: var(--ufm-primary);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.08;
}

.scorm-portal-card h2 a,
.scorm-portal-card h3 a {
  color: inherit;
}

.scorm-portal-card__meta {
  font-size: 14px;
}

.scorm-portal-card__module-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ufm-surface-muted);
}

.scorm-portal-card__module-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scorm-portal-empty {
  padding: 18px;
  border-radius: 12px;
  background: rgba(6, 22, 43, 0.04);
  color: rgba(27, 27, 29, 0.72);
}

.ufm-portal-academy {
  position: relative;
  overflow: hidden;
  padding: 44px 0 0;
  background: var(--ufm-surface-soft);
}

.ufm-portal-academy::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  background: rgba(114, 221, 253, 0.1);
  filter: blur(30px);
}

.ufm-portal-academy__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.ufm-portal-academy__copy {
  align-content: start;
}

.ufm-portal-academy__copy > p {
  margin: 0;
  color: rgba(27, 27, 29, 0.76);
  font-size: 16px;
  line-height: 1.68;
}

.ufm-portal-checks {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ufm-portal-checks li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 2px;
  align-items: start;
}

.ufm-portal-checks li::before,
.ufm-portal-checks .material-symbols-outlined {
  content: "✓";
  color: var(--ufm-green);
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  transform: translateY(2px);
  grid-column: 1;
  grid-row: 1 / span 2;
}

.ufm-portal-checks li > div,
.ufm-portal-checks li > span,
.ufm-portal-checks li > strong {
  min-width: 0;
  grid-column: 2;
}

.ufm-portal-checks strong {
  display: block;
  color: var(--ufm-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.ufm-portal-checks span {
  display: block;
  color: rgba(68, 71, 77, 0.85);
  font-size: 15px;
  line-height: 1.45;
}

.ufm-portal-academy__auth {
  min-width: 0;
}

.scorm-auth-tabs {
  display: grid;
  gap: 18px;
}

.scorm-auth-tabs__header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.scorm-auth-tabs__tab {
  padding: 0 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(68, 71, 77, 0.85);
  font-family: var(--ufm-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.scorm-auth-tabs__tab.is-active {
  border-bottom-color: var(--ufm-secondary);
  color: var(--ufm-primary);
}

.scorm-auth-tabs__panel {
  display: none;
  gap: 16px;
}

.scorm-auth-tabs__panel.is-active {
  display: grid;
}

.scorm-direct-start-card {
  display: grid;
  gap: 18px;
}

.scorm-direct-start-card__media {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(6, 22, 43, 0.08);
  background:
    radial-gradient(circle at top left, rgba(114, 221, 253, 0.24), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 251, 0.94));
  box-shadow: var(--ufm-shadow-soft);
}

.scorm-direct-start-card__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.scorm-direct-start-card__body {
  display: grid;
  gap: 14px;
}

.scorm-direct-start-card__headline,
.scorm-direct-start-card__description {
  margin: 0;
}

.scorm-direct-start-card__headline {
  color: var(--ufm-primary);
  font-family: var(--ufm-font-display);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.scorm-direct-start-card__description {
  max-width: 34rem;
  color: rgba(68, 71, 77, 0.86);
  font-size: 15px;
  line-height: 1.6;
}

.scorm-direct-start__submit {
  width: auto;
  justify-self: start;
  min-width: min(100%, 220px);
}

.scorm-direct-start-card.is-embedded > .scorm-direct-start-card__media,
.scorm-direct-start-card.is-embedded > .scorm-direct-start-card__body {
  display: none;
}

body.scorm-direct-start-modal-open {
  overflow: hidden;
}

.scorm-auth-tabs.is-direct-start-open > .scorm-auth-tabs__header {
  display: none;
}

.scorm-direct-start-stage {
  min-width: 0;
}

.scorm-direct-start-stage__shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  min-height: clamp(560px, 78vh, 940px);
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(6, 22, 43, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(114, 221, 253, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.98));
  box-shadow: 0 22px 48px rgba(8, 19, 40, 0.14);
}

.scorm-direct-start-stage__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.scorm-direct-start-stage__title-group,
.scorm-direct-start-modal__title-group {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.scorm-direct-start-stage__eyebrow,
.scorm-direct-start-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(114, 221, 253, 0.18);
  color: var(--ufm-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scorm-direct-start-stage__title-copy,
.scorm-direct-start-modal__title-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.scorm-direct-start-stage__toolbar strong,
.scorm-direct-start-modal__title {
  color: var(--ufm-primary);
  font-family: var(--ufm-font-display);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.scorm-direct-start-stage__subtitle,
.scorm-direct-start-modal__subtitle {
  margin: 0;
  max-width: 42rem;
  color: rgba(68, 71, 77, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.scorm-direct-start-stage__close {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #c5c6cd;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ufm-primary);
  font-family: var(--ufm-font-body);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.scorm-direct-start-stage__close:hover,
.scorm-direct-start-stage__close:focus-visible {
  background: rgba(6, 22, 43, 0.06);
}

.scorm-direct-start-stage__viewport,
.scorm-direct-start-modal__viewport {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(6, 22, 43, 0.08);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 36px rgba(8, 19, 40, 0.12);
}

.scorm-direct-start-stage__frame,
.scorm-direct-start-modal__frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #ffffff;
  border-radius: inherit;
}

.scorm-direct-start-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  padding: 16px;
}

.scorm-direct-start-modal.is-open,
.scorm-direct-start-modal[aria-hidden="false"] {
  display: grid;
  place-items: center;
}

.scorm-direct-start-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(114, 221, 253, 0.16), transparent 36%),
    rgba(6, 22, 43, 0.72);
  backdrop-filter: blur(14px);
}

.scorm-direct-start-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1480px, calc(100vw - 32px));
  height: min(92vh, 980px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(6, 22, 43, 0.08);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(114, 221, 253, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.98));
  box-shadow: 0 36px 100px rgba(6, 22, 43, 0.3);
}

.scorm-direct-start-modal__header {
  padding: clamp(18px, 2vw, 24px) clamp(18px, 2vw, 26px) 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
}

.scorm-direct-start-modal__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(6, 22, 43, 0.08);
}

.scorm-direct-start-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.scorm-direct-start-modal__open,
.scorm-direct-start-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--ufm-font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.scorm-direct-start-modal__open {
  border: 1px solid #c5c6cd;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ufm-primary);
}

.scorm-direct-start-modal__close {
  border: 1px solid #c5c6cd;
  background: var(--ufm-primary);
  color: #ffffff;
}

.scorm-direct-start-modal__open:hover,
.scorm-direct-start-modal__open:focus-visible {
  background: rgba(6, 22, 43, 0.06);
}

.scorm-direct-start-modal__close:hover,
.scorm-direct-start-modal__close:focus-visible {
  background: var(--ufm-primary-soft);
}

.scorm-direct-embed-body {
  background:
    radial-gradient(circle at top left, rgba(114, 221, 253, 0.18), transparent 34%),
    linear-gradient(180deg, #fbf9fb 0%, #f4f7fb 100%);
}

.scorm-direct-embed {
  display: grid;
  min-height: 100vh;
  padding: clamp(12px, 1.6vw, 18px);
}

body.scorm-portal-body.scorm-direct-embed-body--headless {
  background: transparent;
}

.scorm-direct-embed--headless {
  min-height: 100vh;
  padding: 0;
}

.scorm-direct-embed__stage {
  min-width: 0;
  min-height: 0;
  display: grid;
}

.scorm-direct-embed__stage--headless {
  display: grid;
  min-height: 100%;
}

.scorm-direct-start-modal__stage {
  display: grid;
  min-height: 0;
  padding: 18px clamp(18px, 2vw, 26px) clamp(18px, 2vw, 26px);
}

.scorm-portal-player-embed {
  min-width: 0;
  min-height: 100%;
  display: grid;
  align-content: start;
  padding: clamp(10px, 1.2vw, 14px);
  border-radius: 28px;
  border: 1px solid rgba(6, 22, 43, 0.08);
  background:
    radial-gradient(circle at top left, rgba(114, 221, 253, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.98));
  box-shadow: var(--ufm-shadow-strong);
}

.scorm-portal-player-embed--headless {
  min-height: 100vh;
  display: grid;
  align-content: stretch;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scorm-portal-player-embed--headless .scorm-player-root--headless,
.scorm-portal-player-embed--headless .scorm-player-root--embedded-headless {
  min-height: 100vh;
  height: 100%;
  display: grid;
}

.academy-course-login__form,
.scorm-portal-form,
.scorm-payment-form {
  display: grid;
  gap: 16px;
}

.academy-course-login__field,
.scorm-portal-field,
.scorm-payment-form__field {
  display: grid;
  gap: 8px;
}

.academy-course-login__field label,
.scorm-portal-field label,
.scorm-payment-form__field label {
  color: rgba(68, 71, 77, 0.92);
  font-family: var(--ufm-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.academy-course-login__field input,
.academy-course-login__field textarea,
.scorm-portal-field input,
.scorm-portal-field textarea,
.scorm-portal-field select,
.scorm-payment-form__field input,
.scorm-payment-form__field textarea,
.scorm-payment-form__field select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid #c5c6cd;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ufm-text);
}

.academy-course-login__field input::placeholder,
.academy-course-login__field textarea::placeholder,
.scorm-portal-field input::placeholder,
.scorm-portal-field textarea::placeholder,
.scorm-payment-form__field input::placeholder,
.scorm-payment-form__field textarea::placeholder {
  color: rgba(68, 71, 77, 0.58);
}

.academy-course-login__hint,
.scorm-portal-field__hint {
  color: rgba(68, 71, 77, 0.72);
  font-size: 12px;
  line-height: 16px;
}

.academy-course-login__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--ufm-secondary);
  color: #ffffff;
  font-family: var(--ufm-font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}

.academy-course-login__form--login .academy-course-login__submit::after,
.scorm-portal-form:not(.scorm-portal-form--register) .scorm-portal-button::after {
  content: "→";
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
}

.academy-course-login__submit:hover,
.academy-course-login__submit:focus-visible {
  background: var(--ufm-secondary-deep);
}

.academy-course-login__submit--secondary,
.academy-course-login__submit--ghost {
  border-color: #c5c6cd;
  background: transparent;
  color: var(--ufm-primary);
}

.academy-course-login__submit--secondary:hover,
.academy-course-login__submit--secondary:focus-visible,
.academy-course-login__submit--ghost:hover,
.academy-course-login__submit--ghost:focus-visible {
  background: rgba(6, 22, 43, 0.04);
}

.academy-course-login__message,
.scorm-portal-message {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(6, 22, 43, 0.08);
  background: rgba(6, 22, 43, 0.03);
  color: var(--ufm-text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.academy-course-login__message--success,
.scorm-portal-message.is-success {
  border-color: rgba(51, 138, 12, 0.2);
  background: rgba(51, 138, 12, 0.08);
}

.academy-course-login__message--error,
.scorm-portal-message.is-error {
  border-color: rgba(186, 26, 26, 0.18);
  background: rgba(186, 26, 26, 0.08);
}

.academy-course-login__verification-help,
.scorm-portal-verification-help {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(114, 221, 253, 0.1);
}

@media (max-width: 720px) {
  .scorm-direct-start__submit {
    width: 100%;
    justify-self: stretch;
  }

  .scorm-direct-start-stage__shell {
    min-height: clamp(480px, 72vh, 760px);
  }

  .scorm-direct-start-stage__toolbar,
  .scorm-direct-start-modal__toolbar {
    grid-template-columns: 1fr;
  }

  .scorm-direct-start-stage__close,
  .scorm-direct-start-modal__open,
  .scorm-direct-start-modal__close {
    width: 100%;
  }

  .scorm-direct-start-modal {
    padding: 10px;
  }

  .scorm-direct-start-modal__dialog {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    border-radius: 24px;
  }

  .scorm-direct-start-modal__header,
  .scorm-direct-start-modal__stage {
    padding-left: 14px;
    padding-right: 14px;
  }

  .scorm-direct-start-modal__stage {
    padding-bottom: 14px;
  }

  .scorm-direct-start-stage__viewport,
  .scorm-direct-start-modal__viewport,
  .scorm-portal-player-embed {
    border-radius: 20px;
  }
}

.levelx-portal-auth {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.levelx-portal-auth--login {
  display: block;
}

.levelx-portal-auth__identity {
  display: grid;
  gap: 2px;
}

.levelx-portal-auth__status {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(114, 221, 253, 0.18);
  color: var(--ufm-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.levelx-portal-auth__meta {
  color: rgba(68, 71, 77, 0.72);
  font-size: 13px;
  line-height: 18px;
}

.levelx-portal-auth__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scorm-purchase-price-list {
  display: grid;
  gap: 10px;
}

.scorm-purchase-price-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(27, 27, 29, 0.76);
}

.scorm-purchase-price-list__row.is-total strong {
  color: var(--ufm-primary);
}

.scorm-purchase-legal-note {
  margin: 0;
  color: rgba(68, 71, 77, 0.74);
  font-size: 13px;
  line-height: 1.5;
}

.scorm-purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.scorm-purchase-modal.is-open,
.scorm-purchase-modal[aria-hidden="false"] {
  display: block;
}

.scorm-purchase-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 43, 0.55);
  backdrop-filter: blur(6px);
}

.scorm-purchase-modal__dialog {
  position: relative;
  width: min(calc(100% - 2rem), 980px);
  margin: 5vh auto;
  padding: 24px;
  border-radius: 16px;
}

.scorm-purchase-modal__header,
.scorm-purchase-modal__body {
  display: grid;
  gap: 20px;
}

.scorm-purchase-modal__header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.scorm-purchase-modal__close {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #c5c6cd;
  border-radius: 10px;
  background: transparent;
  color: var(--ufm-primary);
  font-size: 14px;
  font-weight: 700;
}

.ufm-footer {
  padding: 32px var(--ufm-page-pad) 48px;
  border-top: 4px solid var(--ufm-orange);
  background: var(--ufm-primary);
  color: rgba(255, 255, 255, 0.82);
}

.ufm-footer__grid {
  display: grid;
  gap: 24px;
}

.ufm-footer__brand,
.ufm-footer__column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.ufm-footer__logo {
  width: min(112px, 42vw);
  filter: brightness(0) invert(1);
}

.ufm-footer__title {
  color: #ffffff;
}

.ufm-footer__column--subscribe .ufm-footer__title {
  font-family: var(--ufm-font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
  text-wrap: balance;
  max-width: 34ch;
}

.ufm-footer__brand p,
.ufm-footer__column p,
.ufm-footer__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.55;
}

.ufm-footer__column a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.5;
}

.ufm-footer__column a:hover,
.ufm-footer__column a:focus-visible {
  color: var(--ufm-secondary-soft);
}

.ufm-footer__subscribe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.ufm-footer__subscribe input {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.ufm-footer__subscribe input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.ufm-footer__subscribe button {
  min-width: 48px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #b2ebff;
  color: #06162b;
  font-size: 20px;
  line-height: 1;
}

@media (min-width: 720px) {
  :root {
    --ufm-page-pad: 2.5rem;
  }

  .ufm-footer__grid,
  .ufm-portal-surface__head,
  .ufm-portal-academy__grid,
  .scorm-portal-grid,
  .scorm-purchase-modal__body {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .ufm-footer__brand {
    grid-column: span 4;
  }

  .ufm-footer__column {
    grid-column: span 4;
  }

  .ufm-portal-surface__head > :first-child {
    grid-column: span 8;
  }

  .ufm-portal-surface__head > :last-child {
    grid-column: span 4;
    justify-self: end;
  }

  .ufm-portal-academy__copy,
  .ufm-portal-academy__auth {
    grid-column: span 6;
  }

  .scorm-portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scorm-purchase-modal__summary {
    grid-column: span 5;
  }

  .scorm-purchase-modal__details {
    grid-column: span 7;
  }
}

@media (min-width: 1040px) {
  .ufm-nav-toggle {
    display: none;
  }

  .ufm-nav-panel {
    position: static;
    inset: auto;
    flex: 1 1 auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .ufm-nav-panel__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .ufm-nav,
  .ufm-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    justify-content: flex-end;
  }

  .ufm-nav-actions {
    flex: 0 0 auto;
  }
}

@media (max-width: 719px) {
  .ufm-portal-hero__inner,
  .scorm-portal-hero__inner {
    min-height: 360px;
    padding-top: 104px;
    padding-bottom: 24px;
  }

  .ufm-portal-hero h1,
  .scorm-portal-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.25rem);
  }

  .scorm-portal-lead {
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .ufm-portal-surface,
  .scorm-portal-card,
  .academy-course-login,
  .scorm-portal-auth-panel,
  .scorm-portal-session {
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
