.il-learning-path-root {
  margin: 2rem auto;
  /* padding: 24px; */
  border-radius: 3px;
  /* background: #f6f4f0; */
  /* box-shadow: 0 18px 40px rgba(31, 35, 40, 0.08); */
  font-family: inherit;
  color: #1f2328;
}

.il-learning-path-root.is-loading {
  opacity: 1;
  pointer-events: auto;
}

.il-hero {
  text-align: center;
  margin-bottom: 20px;
}

.gen-button {
  margin: 0 auto;
}

.il-hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.il-status {
  margin: 10px 0 0;
  color: #e54d4d;
}

.il-hint {
  margin: 10px 0 0;
  font-size: var(--text-small);
  color: #6a737d;
  text-align: center;
}

.il-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #4c5661;
}

.il-list__item {
  margin-bottom: 6px;
}

.il-card--center .il-list {
  text-align: left;
  margin: 12px auto 0;
  max-width: 620px;
  list-style-position: outside;
}

.il-thinking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #1f2328;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.il-thinking__dots::after {
  content: "…";
  margin-left: 4px;
  animation: il-pulse 1.2s infinite ease-in-out;
}

.il-button.is-loading::after {
  content: "";
}

.il-button.is-loading {
  animation: il-pulse-text-fast 2.4s infinite ease-in-out;
}

@keyframes il-pulse-text-fast {

  0%,
  25% {
    color: #1f2328;
  }

  50%,
  75% {
    color: #ffffff;
  }

  100% {
    color: #1f2328;
  }
}

.il-loading-flavor {
  animation: il-pulse-flavor 3.6s infinite ease-in-out;
  color: var(--il-flavor-dim, #ffffff);
  text-align: center;
}

.il-loading-flavor.il-loading-flavor--path,
.il-loading-flavor.il-loading-flavor--glossary {
  --il-flavor-dim: #f6f4f0;
  --il-flavor-bright: #1f2328;
}

.il-loading-flavor {
  --il-flavor-bright: #1f2328;
}

@keyframes il-pulse-flavor {

  0%,
  100% {
    color: var(--il-flavor-dim, #ffffff);
  }

  50% {
    color: var(--il-flavor-bright, #1f2328);
  }
}

.il-card {
  background: #ffffff;
  border-radius: 3px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(31, 35, 40, 0.08);
  max-width: 70ch;
  margin: 0 auto 1rem;
}

.il-card--center {
  text-align: center;
}

.il-title {
  margin: 0 0 8px;
  font-size: 2.5rem;
}

.il-subtitle {
  margin: 0;
  color: #4c5661;
  font-size: var(--text-small);
}

@keyframes il-pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

.il-card__heading {
  margin: 0 0 12px;
  font-size: 20px;
}

.il-card__message {
  margin: 0;
  color: #2c3137;
}

.il-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.il-button {
  border: 1px solid #1f2328;
  background: #1f2328;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.il-button--ghost {
  background: #ffffff;
  color: #1f2328;
}

.il-button.is-selected {
  background: #1f2328;
  color: #ffffff;
}

.il-button--primary {
  background: #1f2328;
  color: #ffffff;
}

.il-link-button {
  border: none;
  background: transparent;
  color: #4c5661;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 8px;
}

.il-link-button--danger {
  color: #b42318;
}

.il-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.il-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(31, 35, 40, 0.15);
}

.il-textarea,
.il-input {
  width: 100%;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  padding: 12px;
  font-size: 1rem;
  font-family: inherit;
  max-width: 800px;
  margin: 0 auto;
}

.il-textarea {
  min-height: 120px;
}

.il-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.il-form {
  display: grid;
  gap: 16px;
}

.il-form__field {
  display: grid;
  gap: 8px;
}

.il-form__label {
  font-weight: 600;
}

.il-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.il-tabs--phases {
  margin-bottom: 8px;
}

.il-tab {
  border: 1px solid #1f2328;
  border-radius: 999px;
  background: transparent;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
}

.il-tab.is-active {
  background: #1f2328;
  color: #ffffff;
}

.il-tab--cta {
  background: #e34f32;
  color: #ffffff;
  border-color: transparent;
  align-self: flex-start;
  margin-top: 8px;
  margin-bottom: 20px;
}

.il-path-nav {
  margin: 12px 0 18px;
  padding: 16px;
  border: 1px solid #e6e1da;
  border-radius: 16px;
  background: #faf7f3;
}

.il-path-nav__label {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a4b3a;
}

.il-path-nav__phases {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.il-path-nav__phase {
  border: 1px solid #1f2328;
  background: #ffffff;
  color: #1f2328;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  justify-self: start;
}

.il-path-nav__phase.is-active {
  background: #1f2328;
  color: #ffffff;
}

.il-path-nav__phase.is-completed {
  border-color: #c8b9ae;
  color: #6a737d;
}

.il-path-nav__phase.is-locked {
  border-color: #d6cfc6;
  color: #b5aca4;
  cursor: not-allowed;
}

.il-path-nav__weeks {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.il-path-nav__week {
  border: 1px solid #1f2328;
  background: #ffffff;
  color: #1f2328;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  justify-self: stretch;
  position: relative;
  z-index: 2;
}

.il-path-nav__week.is-active {
  background: #1f2328;
  color: #ffffff;
}

.il-path-nav__week.is-locked {
  border-color: #d6cfc6;
  color: #b5aca4;
  cursor: not-allowed;
}

.il-path-nav__week.has-divider::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 22px;
  background: #c3b4a8;
  border-radius: 999px;
}

.il-path-nav__weeks::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 14px;
  background:
    linear-gradient(90deg,
      rgba(250, 236, 228, 0.6) 0%,
      rgba(250, 236, 228, 0.6) 25%,
      rgba(246, 241, 235, 0.6) 25%,
      rgba(246, 241, 235, 0.6) 50%,
      rgba(250, 236, 228, 0.6) 50%,
      rgba(250, 236, 228, 0.6) 75%,
      rgba(246, 241, 235, 0.6) 75%,
      rgba(246, 241, 235, 0.6) 100%);
  pointer-events: none;
}

.il-path-nav__weeks {
  position: relative;
  padding: 12px 10px;
  border-radius: 14px;
  background: #fdfaf7;
}

.il-path-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.il-path-nav__status {
  font-size: 13px;
  color: #6a737d;
}

.il-path-nav__phase:focus,
.il-path-nav__week:focus {
  outline: 2px solid #8a4b3a;
  outline-offset: 2px;
}

.il-path-nav__phase:nth-child(1) {
  grid-column: 1 / span 3;
}

.il-path-nav__phase:nth-child(2) {
  grid-column: 4 / span 3;
}

.il-path-nav__phase:nth-child(3) {
  grid-column: 7 / span 3;
}

.il-path-nav__phase:nth-child(4) {
  grid-column: 10 / span 3;
}

.il-week__summary {
  margin: 6px 0 0;
  color: #4c5661;
}

.il-week__header {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.il-week__title {
  margin: 0;
  font-size: 20px;
}

.il-card--path {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: start;
}

.il-card__image-link {
  display: block;
}

.il-card__image {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
}

.il-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f2d6c8, #f8ebe2);
  color: #8a4b3a;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.il-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  /* color: #1f2328; */
  text-decoration: none;
  margin-top: 0 !important;
}

.il-card__meta {
  margin: 6px 0 12px;
  font-size: 12px;
  color: #8a8f98;
}

.il-card__summary {
  margin: 0 0 12px;
  color: #4c5661;
}

.il-card__section {
  margin: 8px 0;
  color: #2c3137;
}

.il-card__section strong {
  color: #1f2328;
}

.il-card__link {
  display: inline-block;
  margin-top: 8px;
  color: #8a4b3a;
  font-weight: 600;
  text-decoration: none;
}

.il-card--concept,
.il-card--polarity {
  background: #fffaf6;
  border: 1px solid #f0d6c8;
}

.il-polarity__label {
  margin: 8px 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a4b3a;
}

.il-polarity__matrix {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 28px 16px;
  border-radius: 0;
  background: transparent;
  min-height: 230px;
  overflow: visible;
}

.il-polarity__matrix::before {
  content: "";
  position: absolute;
  inset: -10px 0;
  background: url("https://integrallife.com/wp-content/uploads/2023/05/polarity-bg.svg") center/85% no-repeat;
  pointer-events: none;
}

.il-polarity__side {
  position: relative;
  z-index: 1;
}

.il-polarity__side--up {
  grid-row: 1;
}

.il-polarity__side--down {
  grid-row: 3;
}

.il-polarity__pole-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  justify-items: center;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 80%;
  margin: 0 auto;
}

.il-polarity__pole-text {
  align-self: center;
  font-weight: 600;
  font-size: 22px;
  color: #1f2328;
  font-family: var(--font-new, "Space Grotesk", "Segoe UI", sans-serif);
  max-width: 100%;
  text-align: center;
}

.il-polarity__summary {
  margin: 28px 0 0;
  text-align: center;
  color: #4c5661;
  position: relative;
  z-index: 1;
  font-size: 13px;
}

.il-polarity__list {
  margin: 0;
  color: #4c5661;
  list-style: none;
  padding: 0;
}

.il-polarity__item::before {
  content: "+";
  display: inline-block;
  margin-right: 6px;
  color: #8a4b3a;
}

.il-polarity__list--down .il-polarity__item::before {
  content: "-";
}

.il-card__prompt {
  background: #f7f2ee;
  border-radius: 10px;
  padding: 10px 12px;
}

.il-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a4b3a;
  background: #f8ebe2;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.il-card--ai {
  border: 1px solid #f0d6c8;
  background: #fff8f3;
}

.il-cta {
  margin: 12px 0 0;
  color: #b42318;
  font-weight: 600;
}

.il-section__title {
  margin: 20px 0 12px;
  font-size: 18px;
}

.il-details {
  margin-top: 12px;
}

.il-details__summary {
  cursor: pointer;
  font-weight: 600;
}

.il-details__content {
  margin: 8px 0 0;
  color: #4c5661;
}

.il-card--bonus {
  background: #fff6ed;
}

.il-saved {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.il-saved__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.il-bottom-actions {
  margin: 18px 0 12px;
  padding-top: 8px;
  border-top: 1px solid #e6e1da;
}

.il-bottom-actions__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.il-bottom-actions__label {
  margin: 10px 0 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a4b3a;
}

.il-path-view-toggle {
  display: flex;
  gap: 10px;
  margin: 12px 0 18px;
  flex-wrap: wrap;
}

.il-river {
  display: grid;
  gap: 18px;
}

.il-river-card__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.il-river-card__badge {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: transparent;
  color: #d6cfc6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 130px;
  font-weight: 500;
  font-family: var(--font-new, "Space Grotesk", "Segoe UI", sans-serif);
}

.il-river-card__text .il-week__summary {
  margin-top: 6px;
}

.il-river-card__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.il-river-card__media {
  grid-template-columns: 160px 1fr;
}

.il-river-card__col {
  display: grid;
  gap: 16px;
}

.il-river-card__concept {
  margin-top: 12px;
}

.il-river-load {
  align-self: stretch;
  margin-top: 16px;
  width: 100%;
}

.il-river-load.is-loading::after {
  content: "…";
  margin-left: 6px;
  animation: il-pulse 1.2s infinite ease-in-out;
}

@media (max-width: 900px) {
  .il-river-card__top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .il-learning-path-root {
    /* margin: 16px;
    padding: 16px; */
  }

  .il-card--path {
    grid-template-columns: 1fr;
  }

  .il-card__image {
    height: 180px;
  }

  .il-saved__item {
    flex-direction: column;
    align-items: stretch;
  }
}
