.phase-one-hub {
  padding-top: 1.5rem;
  padding-bottom: 2.75rem;
  scroll-margin-top: 5.5rem;
}

/* My learning: routes and library as distinct views */
.learning-view-tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.learning-view-tabs a {
  position: relative;
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.learning-view-tabs a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--brand-primary);
  content: "";
  opacity: 0;
  transform: scaleX(0.65);
  transition: opacity 160ms ease, transform 160ms ease;
}

.learning-view-tabs a:hover,
.learning-view-tabs a.is-active {
  color: var(--text-primary);
}

.learning-view-tabs a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.learning-view-tabs .material-symbols-rounded {
  color: currentColor;
  font-size: 1.05rem;
}

.learning-routes-view,
.learning-available-routes {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.learning-view-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.learning-view-heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
}

.learning-view-heading p {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
}

.learning-view-heading > span {
  flex: none;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 600;
}

.learning-route-list {
  border-top: 1px solid var(--border-color);
}

.learning-route-list-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.learning-route-list-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-element);
  color: var(--brand-primary);
  font-size: 1.15rem;
}

.learning-route-list-copy {
  min-width: 0;
}

.learning-route-list-copy h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.learning-route-list-copy p {
  overflow: hidden;
  margin: 0.22rem 0 0;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-route-list-copy small {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-weight: 500;
}

.learning-route-list-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.learning-route-list-open {
  min-height: 2.75rem;
  border-radius: 6px;
  color: var(--brand-primary);
  padding: 0 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
}

.learning-route-list-open:hover,
.learning-route-list-open:focus-visible {
  background: var(--bg-element);
}

.learning-routes-empty {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.learning-routes-empty > .material-symbols-rounded {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-element);
  color: var(--brand-primary);
  font-size: 1.15rem;
}

.learning-routes-empty h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 600;
}

.learning-routes-empty p {
  margin: 0.2rem 0 0;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
}

.learning-library-standalone {
  margin-top: 0;
  padding-top: 1.5rem;
  border-top: 0;
}

.learning-route-detail {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.learning-route-back {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.learning-route-back:hover {
  color: var(--brand-primary);
}

.learning-route-back .material-symbols-rounded {
  font-size: 1rem;
}

.learning-route-detail .phase-one-save-route {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.learning-route-detail .phase-one-save-route .material-symbols-rounded {
  font-size: 1rem;
}

@media (max-width: 640px) {
  .learning-view-tabs {
    gap: 1.15rem;
  }

  .learning-view-tabs a {
    min-height: 3rem;
    font-size: 0.84rem;
  }

  .learning-routes-view,
  .learning-available-routes {
    padding: 1.15rem 0;
  }

  .learning-route-list-item {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.9rem 0;
  }

  .learning-route-list-copy p {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .learning-route-list-copy small {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .learning-route-list-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .learning-route-list-open,
  .learning-route-remove {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .learning-view-heading {
    align-items: start;
  }

  .learning-route-detail .learning-route-header {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .learning-view-tabs a::after {
    transition: none;
  }
}

.phase-one-personal-mode > :not([data-phase-personal-view]) {
  display: none !important;
}

.phase-one-personal-view {
  min-height: calc(100vh - 4rem);
  background: var(--bg-main);
}

.phase-one-personal-header {
  padding: 2rem 0 1.75rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.phase-one-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  color: var(--text-tertiary);
  font-size: 0.72rem;
}

.phase-one-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.phase-one-breadcrumbs a:hover {
  color: var(--brand-primary);
}

.phase-one-personal-header h1 {
  margin: 0.45rem 0 0;
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
}

.phase-one-personal-intro {
  max-width: 46rem;
  margin: 0.65rem 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.phase-one-personal-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.phase-one-personal-tools > button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-main);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
}

.phase-one-personal-tools > button:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.phase-one-personal-tools > button .material-symbols-rounded,
.phase-one-personal-tools > span .material-symbols-rounded {
  font-size: 1.05rem;
}

.phase-one-personal-tools > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-tertiary);
  font-size: 0.72rem;
}

.phase-one-personal-main {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.phase-one-personal-footer {
  border-top: 1px solid var(--border-color);
  color: var(--text-tertiary);
  font-size: 0.72rem;
}

.phase-one-personal-footer .content-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.phase-one-personal-footer a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}

.phase-one-nav-button {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: background 160ms ease, color 160ms ease;
}

.phase-one-nav-button:hover,
.phase-one-nav-button.is-active {
  background: var(--bg-element);
  color: var(--brand-primary);
}

.phase-one-nav-button .material-symbols-rounded {
  font-size: 1.2rem;
}

.phase-one-home-resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.phase-one-home-resume-copy {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.phase-one-home-resume-copy > .material-symbols-rounded {
  color: var(--brand-primary);
  font-size: 1.35rem;
}

.phase-one-home-resume h2 {
  overflow: hidden;
  margin: 0.2rem 0 0;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phase-one-home-resume-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.85rem;
}

.phase-one-home-resume-actions a {
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

.phase-one-home-resume-actions a:first-child,
.phase-one-home-resume-actions a:hover {
  color: var(--brand-primary);
}

.phase-one-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.phase-one-eyebrow {
  margin: 0;
  color: var(--brand-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.phase-one-heading h2 {
  margin: 0.45rem 0 0;
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.phase-one-intro {
  max-width: 46rem;
  margin: 0.65rem 0 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.phase-one-save-route,
.phase-one-modal-save {
  display: inline-flex;
  min-height: 2.6rem;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 0.65rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.phase-one-save-route:hover,
.phase-one-modal-save:hover,
.phase-one-save-route.is-saved,
.phase-one-modal-save.is-saved {
  border-color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 9%, var(--bg-card));
  color: var(--brand-primary);
}

.phase-one-save-route .material-symbols-rounded,
.phase-one-modal-save .material-symbols-rounded {
  font-size: 1.1rem;
}

.cda-global-save-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: nowrap;
}

.cda-global-save {
  display: inline-flex;
  min-height: 2.5rem;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.73rem;
  font-weight: 600;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.cda-global-save-row {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.cda-global-save:hover,
.cda-global-save.is-saved {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

.cda-global-save .material-symbols-rounded {
  font-size: 1.2rem;
  line-height: 1;
}

.cda-global-save-row.is-saved {
  border-color: var(--border-color);
  background: var(--bg-element);
  color: var(--brand-primary);
}

.cda-global-save-row:hover {
  border-color: var(--border-color);
  background: var(--bg-element);
  color: var(--brand-primary);
}

.cda-directory-info {
  width: 2.5rem !important;
  min-width: 2.5rem;
  padding-inline: 0 !important;
  border-radius: 6px !important;
  font-size: 0 !important;
}

.cda-directory-info svg {
  width: 1.05rem;
  height: 1.05rem;
}

.cda-directory-open {
  min-height: 2.5rem;
  padding-inline: 0.875rem !important;
  border-radius: 6px !important;
}

.cda-favorite-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.cda-favorite-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cda-favorite-toast .material-symbols-rounded {
  color: var(--brand-primary);
  font-size: 1rem;
}

@media (max-width: 639px) {
  .cda-global-save-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .cda-favorite-toast {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: none;
    justify-content: center;
  }
}

.cda-global-save-media {
  position: relative;
}

.cda-global-save-card {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 4;
  width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  border-color: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  backdrop-filter: blur(6px);
}

.cda-global-save-card:hover,
.cda-global-save-card.is-saved {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.cda-global-save-detail-host {
  position: relative;
}

.cda-global-save-detail {
  min-height: 2.75rem;
  margin-top: 1rem;
  padding: 0 0.9rem;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(15, 23, 42, 0.58);
  color: #fff;
  backdrop-filter: blur(6px);
}

.cda-global-save-detail:hover,
.cda-global-save-detail.is-saved {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.phase-one-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
}

.phase-one-needs {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  padding: 0.65rem;
  border-right: 1px solid var(--border-color);
  background: var(--bg-element);
}

.phase-one-need {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  min-width: 0;
  min-height: 3rem;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  color: var(--text-secondary);
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.phase-one-need:hover {
  color: var(--text-primary);
}

.phase-one-need.is-active {
  border-color: color-mix(in srgb, var(--brand-primary) 30%, var(--border-color));
  background: var(--bg-card);
  color: var(--brand-primary);
}

.phase-one-need .material-symbols-rounded {
  font-size: 1.2rem;
}

.phase-one-route {
  min-width: 0;
  padding: 1.5rem;
}

.phase-one-route-heading {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: start;
  gap: 0.9rem;
  padding-bottom: 1.25rem;
}

.phase-one-route-heading > .material-symbols-rounded {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-primary) 12%, var(--bg-element));
  color: var(--brand-primary);
  font-size: 1.25rem;
}

.phase-one-route-heading h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
}

.phase-one-route-heading p {
  max-width: 46rem;
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.55;
}

.phase-one-resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-color);
}

.phase-one-resource {
  display: flex;
  min-width: 0;
  min-height: 10.5rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.1rem;
  border-bottom: 1px solid var(--border-color);
}

.phase-one-resource:nth-child(odd) {
  border-right: 1px solid var(--border-color);
}

.phase-one-resource-copy {
  min-width: 0;
}

.phase-one-resource-type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--semantic-positive);
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
}

.phase-one-resource-type .material-symbols-rounded {
  font-size: 0.92rem;
}

.phase-one-resource h4 {
  margin: 0.45rem 0 0;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.phase-one-resource p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.4rem 0 0;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.phase-one-resource-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.phase-one-resource-actions > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--brand-primary);
  font-size: 0.73rem;
  font-weight: 700;
  text-decoration: none;
}

.phase-one-resource-actions > a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.phase-one-resource-actions > a .material-symbols-rounded {
  font-size: 0.95rem;
}

.phase-one-icon-button {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-tertiary);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.phase-one-icon-button:hover,
.phase-one-icon-button.is-saved {
  border-color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 9%, var(--bg-element));
  color: var(--brand-primary);
}

.phase-one-icon-button .material-symbols-rounded {
  font-size: 1.05rem;
}

.phase-one-space {
  display: grid;
  grid-template-columns: minmax(9rem, 11rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.25rem;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--border-color);
}

.phase-one-space-heading h3 {
  margin: 0.35rem 0 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.phase-one-space-empty {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.5rem;
  color: var(--text-tertiary);
}

.phase-one-space-empty .material-symbols-rounded {
  font-size: 1.15rem;
}

.phase-one-space-empty p {
  margin: 0;
  font-size: 0.8rem;
}

.phase-one-space-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.phase-one-space-group {
  min-width: 0;
}

.phase-one-space-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
}

.phase-one-continue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem;
  gap: 0.45rem;
  align-items: start;
}

.phase-one-continue-row > a {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.phase-one-continue-row > a:hover {
  color: var(--brand-primary);
}

.phase-one-continue-row > a .material-symbols-rounded {
  color: var(--brand-primary);
  font-size: 1.15rem;
}

.phase-one-continue-row > button {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  color: var(--text-tertiary);
}

.phase-one-continue-row > button:hover {
  background: var(--bg-element);
  color: var(--brand-primary);
}

.phase-one-continue-row > button .material-symbols-rounded {
  font-size: 1rem;
}

.phase-one-space-links {
  display: grid;
  gap: 0.35rem;
}

.phase-one-space-links a,
.phase-one-space-links button {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phase-one-space-links a:hover,
.phase-one-space-links button:hover {
  color: var(--brand-primary);
}

.phase-one-modal-save {
  margin-top: 1rem;
}

@media (max-width: 800px) {
  .phase-one-heading {
    align-items: start;
  }

  .phase-one-layout {
    grid-template-columns: 1fr;
  }

  .phase-one-needs {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border-color);
    scrollbar-width: thin;
  }

  .phase-one-need {
    display: inline-flex;
    min-width: max-content;
  }

  .phase-one-space-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .phase-one-personal-header {
    padding: 1.5rem 0 1.25rem;
  }

  .phase-one-personal-header h1 {
    font-size: 1.6rem;
  }

  .phase-one-personal-intro {
    font-size: 0.82rem;
  }

  .phase-one-personal-footer .content-shell {
    align-items: start;
    flex-direction: column;
  }

  .phase-one-home-resume {
    align-items: start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .phase-one-home-resume h2 {
    white-space: normal;
  }

  .phase-one-home-resume-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .phase-one-hub {
    padding-top: 1rem;
    padding-bottom: 2.25rem;
  }

  .phase-one-heading {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .phase-one-heading h2 {
    font-size: 1.45rem;
  }

  .phase-one-intro {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .phase-one-save-route {
    width: 100%;
  }

  .phase-one-route {
    padding: 1rem;
  }

  .phase-one-route-heading {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.7rem;
  }

  .phase-one-route-heading > .material-symbols-rounded {
    width: 2.25rem;
    height: 2.25rem;
  }

  .phase-one-route-heading h3 {
    font-size: 0.98rem;
  }

  .phase-one-route-heading p {
    font-size: 0.78rem;
  }

  .phase-one-resources {
    grid-template-columns: 1fr;
  }

  .phase-one-resource {
    min-height: 0;
    padding: 1rem 0;
  }

  .phase-one-resource:nth-child(odd) {
    border-right: 0;
  }

  .phase-one-resource p {
    font-size: 0.73rem;
  }

  .phase-one-space {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .phase-one-space-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .phase-one-modal-save {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phase-one-save-route,
  .phase-one-modal-save,
  .phase-one-need,
  .phase-one-icon-button {
    transition: none;
  }
}

/* Mi aprendizaje */
.phase-one-nav-button {
  display: inline-flex;
  width: auto;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 6px;
  padding: 0 0.65rem;
}

.phase-one-nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.learning-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.75fr);
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
}

.learning-next {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
  min-width: 0;
}

.learning-next-media {
  position: relative;
  min-height: 13rem;
  overflow: hidden;
  background: var(--bg-element);
}

.learning-next-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learning-next-media > .material-symbols-rounded {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--brand-primary);
  font-size: 2.5rem;
  transform: translate(-50%, -50%);
}

.learning-next-copy {
  align-self: center;
  min-width: 0;
  padding: 1.35rem 1.5rem;
}

.learning-kicker {
  margin: 0;
  color: var(--brand-primary);
  font-size: 0.7rem;
  font-weight: 700;
}

.learning-next-copy h2,
.learning-welcome h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.35rem 0 0;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.learning-next-copy > p:last-of-type,
.learning-welcome p:last-child {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.55rem 0 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.learning-next-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.learning-next-actions a {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 6px;
  background: var(--brand-primary-strong);
  color: #ffffff;
  padding: 0.6rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.learning-next-actions a:hover {
  background: var(--brand-primary);
}

.learning-next-actions .material-symbols-rounded {
  font-size: 1rem;
}

.learning-next-actions button {
  color: var(--text-tertiary);
  font-size: 0.7rem;
  font-weight: 600;
}

.learning-next-actions button:hover {
  color: var(--brand-primary);
}

.learning-welcome {
  display: flex;
  align-items: center;
  min-height: 13rem;
  padding: 1.5rem;
}

.learning-welcome > .material-symbols-rounded {
  color: var(--brand-primary);
  font-size: 2.3rem;
}

.learning-saved-routes {
  min-width: 0;
  padding: 1.25rem;
  border-left: 1px solid var(--border-color);
  background: color-mix(in srgb, var(--bg-element) 45%, var(--bg-card));
}

.learning-section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-primary);
}

.learning-section-title > .material-symbols-rounded {
  color: var(--brand-primary);
  font-size: 1.15rem;
}

.learning-section-title h2,
.learning-section-title h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.learning-section-title p {
  margin: 0.15rem 0 0;
  color: var(--text-tertiary);
  font-size: 0.68rem;
}

.learning-route-links {
  display: grid;
  margin-top: 0.8rem;
}

.learning-saved-route-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.75rem;
  align-items: center;
  border-top: 1px solid var(--border-color);
}

.learning-route-open {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) 1rem;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.65rem 0;
  color: var(--text-secondary);
  text-align: left;
  font-size: 0.73rem;
  font-weight: 600;
}

.learning-route-open > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.learning-route-open strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-route-open small {
  margin-top: 0.08rem;
  color: var(--text-tertiary);
  font-size: 0.66rem;
  font-weight: 500;
}

.learning-route-open:hover,
.learning-route-open:hover strong {
  color: var(--brand-primary);
}

.learning-route-open .material-symbols-rounded {
  font-size: 1rem;
}

.learning-route-open .material-symbols-rounded:last-child {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.learning-route-remove {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  color: var(--text-tertiary);
}

.learning-route-remove:hover,
.learning-route-remove:focus-visible {
  background: var(--bg-card);
  color: var(--brand-primary);
}

.learning-route-remove .material-symbols-rounded {
  font-size: 1rem;
}

.learning-empty-copy {
  margin: 0.8rem 0 0;
  color: var(--text-tertiary);
  font-size: 0.73rem;
  line-height: 1.55;
}

.learning-library {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.learning-library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 0.8rem;
}

.learning-library-header > span {
  flex: none;
  color: var(--text-tertiary);
  font-size: 0.7rem;
  font-weight: 600;
}

.learning-library-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.learning-library-count {
  flex: none;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.learning-favorites-search {
  display: grid;
  width: min(17rem, 38vw);
  min-height: 2.75rem;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.75rem;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  background: var(--bg-card);
  color: var(--text-secondary);
}

.learning-favorites-search:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}

.learning-favorites-search > .material-symbols-rounded {
  justify-self: center;
  font-size: 1.1rem;
}

.learning-favorites-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.8125rem;
}

.learning-favorites-search input::placeholder {
  color: var(--text-tertiary);
  opacity: 1;
}

.learning-favorites-search button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: var(--text-secondary);
}

.learning-favorites-search button[hidden] {
  display: none;
}

.learning-favorites-search button:hover {
  background: var(--bg-element);
  color: var(--brand-primary);
}

.learning-favorites-search button .material-symbols-rounded {
  font-size: 1rem;
}

.learning-favorites-empty {
  margin: 0;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-align: center;
}

.learning-library-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.learning-library-header p {
  margin: 0.3rem 0 0;
  color: var(--text-tertiary);
  font-size: 0.72rem;
}

.learning-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.learning-library-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0 1.3rem;
}

.learning-library-empty > .material-symbols-rounded {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-size: 1.25rem;
}

.learning-library-empty h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.learning-library-empty p {
  margin: 0.25rem 0 0;
  color: var(--text-tertiary);
  font-size: 0.74rem;
  line-height: 1.5;
}

.learning-library-empty > a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.9rem;
  border-radius: 6px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
}

.learning-library-empty > a:hover {
  background: var(--brand-primary-strong);
}

.learning-library-empty > a .material-symbols-rounded {
  font-size: 1rem;
}

.learning-favorite-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  padding-bottom: 1.25rem;
}

.learning-favorite-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
}

.learning-favorite-group-header {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto 1.25rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.85rem;
  cursor: pointer;
  list-style: none;
}

.learning-favorite-group-header::-webkit-details-marker {
  display: none;
}

.learning-favorite-group-header > .material-symbols-rounded:first-child {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-size: 1.05rem;
  line-height: 1;
}

.learning-favorite-group-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.learning-favorite-count {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-element);
  color: var(--text-secondary);
  font-size: 0.67rem;
  font-weight: 700;
}

.learning-favorite-chevron {
  color: var(--text-tertiary);
  font-size: 1.1rem;
  transition: transform 160ms ease;
}

.learning-favorite-group[open] .learning-favorite-chevron {
  transform: rotate(180deg);
}

.learning-favorite-list {
  border-top: 1px solid var(--border-color);
}

.learning-favorite-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.75rem;
  align-items: center;
  min-width: 0;
}

.learning-favorite-item + .learning-favorite-item {
  border-top: 1px solid var(--border-color);
}

.learning-favorite-item > a {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.learning-favorite-item > a:hover > span {
  color: var(--brand-primary);
}

.learning-favorite-item > a > span {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.learning-favorite-item small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.learning-favorite-item > button,
.learning-recent-item > button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  color: var(--text-tertiary);
}

.learning-favorite-item > button:hover,
.learning-recent-item > button:hover {
  background: var(--bg-element);
  color: var(--brand-primary);
}

/* Phase 3: readable labels and keyboard focus */
.phase-one-personal-view :is(
  .learning-kicker,
  .phase-one-personal-tools > span,
  .learning-library-header p,
  .learning-library-count,
  .learning-favorite-item > a > span,
  .learning-favorite-item small,
  .learning-recent > header p,
  .learning-recent-item small,
  .learning-route-controls label > span,
  .learning-compact-item small
) {
  font-size: 0.8125rem;
}

body:not(.light) .phase-one-personal-view :is(
  .phase-one-personal-tools > span,
  .learning-library-header p,
  .learning-favorite-item small,
  .learning-recent > header p,
  .learning-recent-item small,
  .learning-compact-item small
) {
  color: var(--text-secondary);
}

#root :where(a, button, input, select, textarea, summary, [role="button"]):focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

.learning-favorites-search input:focus-visible {
  outline: 0;
}

@media (forced-colors: active) {
  #root :where(a, button, input, select, textarea, summary, [role="button"]):focus-visible {
    outline: 2px solid Highlight;
  }
}

.learning-favorite-item > button .material-symbols-rounded,
.learning-recent-item > button .material-symbols-rounded {
  font-size: 1rem;
}

.learning-library-prompt {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0 1.2rem;
  color: var(--text-secondary);
}

.learning-library-prompt > .material-symbols-rounded {
  color: var(--brand-primary);
  font-size: 1.1rem;
}

.learning-library-prompt p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
}

.learning-recent {
  padding: 1.1rem 0 1.25rem;
  border-top: 1px solid var(--border-color);
}

.learning-recent > header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.learning-recent > header p {
  margin: 0.25rem 0 0;
  color: var(--text-tertiary);
  font-size: 0.7rem;
}

.learning-recent-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.learning-recent-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.75rem;
  align-items: center;
  min-width: 0;
  border-top: 1px solid var(--border-color);
}

.learning-recent-item > a {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
  padding: 0.65rem 0;
  color: var(--text-primary);
  text-decoration: none;
}

.learning-recent-item > a:hover span {
  color: var(--brand-primary);
}

.learning-recent-item small {
  color: var(--text-tertiary);
  font-size: 0.62rem;
}

.learning-recent-item > a > span {
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phase-onboarding[hidden] {
  display: none !important;
}

.phase-onboarding {
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.phase-onboarding-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}

.phase-onboarding-dialog {
  position: relative;
  width: min(100%, 32rem);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.24);
}

.phase-onboarding-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 1;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  color: var(--text-secondary);
}

.phase-onboarding-close:hover {
  background: var(--bg-element);
  color: var(--text-primary);
}

.phase-onboarding-close .material-symbols-rounded {
  font-size: 1.2rem;
}

.phase-onboarding-body {
  padding: 2rem 2rem 1.6rem;
}

.phase-onboarding-icon {
  display: flex !important;
  width: 3rem;
  height: 3rem;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 50%;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  line-height: 1 !important;
  text-align: center;
}

.phase-onboarding-icon > .material-symbols-rounded {
  display: block !important;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--brand-primary);
  font-size: 1.4rem;
  line-height: 1 !important;
  text-align: center;
}

.phase-onboarding-label {
  margin: 1.15rem 0 0;
  color: var(--brand-primary);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.phase-onboarding-body h2 {
  margin: 0.35rem 3rem 0 0;
  color: var(--text-primary);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
}

.phase-onboarding-body > p:not(.phase-onboarding-label) {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.65;
}

.phase-onboarding-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--text-tertiary);
  font-size: 0.68rem;
}

.phase-onboarding-progress > div {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.phase-onboarding-dot {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--border-color);
}

.phase-onboarding-dot.is-active {
  background: var(--brand-primary);
}

.phase-onboarding-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
}

.phase-onboarding-footer > div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.phase-onboarding-footer button {
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.phase-onboarding-skip,
.phase-onboarding-back {
  color: var(--text-secondary);
}

.phase-onboarding-skip:hover,
.phase-onboarding-back:hover {
  background: var(--bg-element);
  color: var(--text-primary);
}

.phase-onboarding-next {
  background: var(--brand-primary);
  color: #fff;
}

.phase-onboarding-next:hover {
  background: var(--brand-primary-strong);
}

.phase-onboarding-open {
  overflow: hidden;
}

.learning-list-section {
  min-width: 0;
  padding: 1.15rem 1.25rem 1.25rem 0;
}

.learning-list-section + .learning-list-section {
  padding-right: 0;
  padding-left: 1.25rem;
  border-left: 1px solid var(--border-color);
}

.learning-compact-list {
  display: grid;
  margin-top: 0.65rem;
}

.learning-compact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  border-top: 1px solid var(--border-color);
}

.learning-compact-item > a {
  display: block;
  min-width: 0;
  padding: 0.7rem 0;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.learning-compact-item > a:hover {
  color: var(--brand-primary);
}

.learning-compact-item > a > .material-symbols-rounded {
  color: var(--brand-primary);
  font-size: 1.05rem;
}

.learning-compact-item > a span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.learning-compact-item small {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--text-tertiary);
  font-size: 0.62rem;
  font-weight: 500;
}

.learning-compact-item > button {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  color: var(--text-tertiary);
}

.learning-compact-item > button:hover {
  background: var(--bg-element);
  color: var(--brand-primary);
}

.learning-compact-item > button .material-symbols-rounded {
  font-size: 1rem;
}

.learning-route {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.learning-route-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.learning-route-header h2 {
  margin: 0.35rem 0 0;
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
}

.learning-route-header p:last-child {
  max-width: 46rem;
  margin: 0.45rem 0 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.55;
}

.learning-route-controls {
  display: flex;
  flex: none;
  align-items: end;
  gap: 0.65rem;
}

.learning-route-controls label {
  display: grid;
  gap: 0.3rem;
}

.learning-route-controls label > span {
  color: var(--text-tertiary);
  font-size: 0.62rem;
  font-weight: 600;
}

.learning-route-controls select {
  width: min(17rem, 32vw);
  min-height: 2.6rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 0.55rem 2rem 0.55rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.learning-objectives {
  display: flex;
  overflow-x: auto;
  margin-top: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  scrollbar-width: thin;
}

.learning-objectives .phase-one-need {
  display: inline-flex;
  min-width: max-content;
  min-height: 2.75rem;
  gap: 0.4rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.65rem 0.8rem;
  background: transparent;
  font-size: 0.72rem;
}

.learning-objectives .phase-one-need.is-active {
  border-bottom-color: var(--brand-primary);
  background: transparent;
}

.learning-objectives .phase-one-need .material-symbols-rounded {
  font-size: 1rem;
}

.learning-path {
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-path li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.learning-step {
  color: var(--text-tertiary);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
}

.learning-step-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-size: 1rem;
}

.learning-path li > div {
  min-width: 0;
}

.learning-path small {
  color: var(--semantic-positive);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.learning-path h3 {
  margin: 0.2rem 0 0;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}

.learning-path p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.learning-step-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.learning-step-actions > a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  border-radius: 6px;
  color: var(--brand-primary);
  padding: 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
}

.learning-step-actions > a:hover {
  background: var(--bg-element);
  color: var(--brand-primary);
}

.learning-step-actions > a .material-symbols-rounded {
  font-size: 1.05rem;
}

@media (max-width: 980px) {
  .phase-one-nav-label {
    display: none;
  }

  .phase-one-nav-button {
    width: 2.5rem;
    padding: 0;
    border-radius: 50%;
  }

  .learning-overview {
    display: block;
  }

  .learning-saved-routes {
    border-top: 1px solid var(--border-color);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .phase-one-personal-main {
    padding-top: 0.5rem;
  }

  .learning-next {
    grid-template-columns: 6.75rem minmax(0, 1fr);
    align-items: stretch;
  }

  .learning-next-media {
    min-height: 0;
    aspect-ratio: auto;
  }

  .learning-next-copy {
    padding: 0.9rem;
  }

  .learning-welcome,
  .learning-saved-routes {
    padding: 1rem;
  }

  .learning-next-copy h2,
  .learning-welcome h2 {
    font-size: 1.05rem;
  }

  .learning-next-copy > p:last-of-type {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }

  .learning-next-actions {
    align-items: center;
    flex-direction: row;
    gap: 0.7rem;
    margin-top: 0.75rem;
  }

  .learning-next-actions a {
    min-height: 2.75rem;
    padding-inline: 0.75rem;
  }

  .learning-library-grid {
    grid-template-columns: 1fr;
  }

  .learning-favorite-groups,
  .learning-recent-list {
    grid-template-columns: 1fr;
  }

  .learning-library-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .learning-library-actions {
    width: 100%;
    justify-content: space-between;
  }

  .learning-favorites-search {
    width: min(100%, 18rem);
  }

  .learning-library-empty {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .learning-library-empty > a {
    grid-column: 1 / -1;
    width: 100%;
  }

  .phase-one-personal-tools {
    align-items: center;
    flex-direction: row;
    gap: 0.75rem;
  }

  .phase-onboarding-body {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .phase-onboarding-body h2 {
    font-size: 1.25rem;
  }

  .phase-onboarding-footer {
    align-items: stretch;
  }

  .phase-onboarding-footer > div {
    justify-content: flex-end;
  }

  .learning-list-section,
  .learning-list-section + .learning-list-section {
    padding: 1rem 0;
    border-left: 0;
  }

  .learning-list-section + .learning-list-section {
    border-top: 1px solid var(--border-color);
  }

  .learning-route {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  .learning-route-header {
    align-items: start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .learning-route-header h2 {
    font-size: 1.15rem;
  }

  .learning-route-header .phase-one-save-route {
    width: auto;
  }

  .learning-route-controls {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .learning-route-controls select {
    width: 100%;
  }

  .learning-path li {
    grid-template-columns: 1.75rem minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding: 0.85rem 0;
  }

  .learning-step-icon {
    display: none;
  }

  .learning-path p {
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 420px) {
  .learning-next {
    grid-template-columns: 5.75rem minmax(0, 1fr);
  }

  .learning-next-copy > p:last-of-type {
    -webkit-line-clamp: 1;
  }

  .learning-next-actions {
    gap: 0.55rem;
  }

  .learning-next-actions a {
    padding-inline: 0.65rem;
  }
}

/* Saved webinar view and contextual actions */
.cda-saved-filter-button {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 0.45rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.cda-saved-filter-button:hover,
.cda-saved-filter-button:focus-visible,
.cda-saved-filter-button.is-active {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

.cda-saved-filter-button .material-symbols-rounded {
  font-size: 1.05rem;
}

.cda-saved-filter-button strong {
  display: grid;
  min-width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-element);
  color: currentColor;
  font-size: 0.65rem;
}

.is-saved-webinars-view > .cda-webinars-native-section {
  display: none !important;
}

.cda-saved-webinars-panel {
  min-height: 32rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.cda-saved-webinars-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cda-saved-webinars-heading p {
  margin: 0 0 0.35rem;
  color: var(--brand-primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cda-saved-webinars-heading h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.65rem;
  font-weight: 600;
}

.cda-saved-webinars-heading span {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.cda-saved-webinars-heading > strong {
  color: var(--text-tertiary);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.cda-saved-webinars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cda-saved-webinar-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
}

.cda-saved-webinar-card > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.cda-saved-webinar-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-element);
}

.cda-saved-webinar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.cda-saved-webinar-card:hover .cda-saved-webinar-media img {
  transform: scale(1.025);
}

.cda-saved-webinar-copy {
  padding: 1rem;
}

.cda-saved-webinar-copy small {
  color: var(--brand-primary);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cda-saved-webinar-copy h3 {
  margin: 0.45rem 0 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.cda-saved-webinar-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.55rem 0 0;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cda-saved-webinar-copy > span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.85rem;
  color: var(--brand-primary);
  font-size: 0.73rem;
  font-weight: 700;
}

.cda-saved-webinar-copy > span .material-symbols-rounded {
  font-size: 1rem;
}

.cda-saved-webinar-remove {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.14);
}

.cda-saved-webinar-remove:hover,
.cda-saved-webinar-remove:focus-visible,
.cda-saved-webinar-remove.is-saved {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.cda-saved-webinars-empty {
  display: flex;
  min-height: 13rem;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
}

.cda-saved-webinars-empty > .material-symbols-rounded {
  color: var(--brand-primary);
  font-size: 2rem;
}

.cda-saved-webinars-empty h3,
.cda-saved-webinars-empty p {
  margin: 0;
}

.cda-saved-webinars-empty h3 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.cda-saved-webinars-empty p {
  margin-top: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.cda-saved-webinars-empty a {
  margin-left: auto;
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .cda-saved-webinars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cda-saved-filter-button {
    width: 100%;
    min-height: 2.75rem;
  }

  .webinar-filter-shell.is-open .webinar-filter-controls > .cda-saved-filter-button {
    grid-column: 1 / -1;
  }

  .cda-saved-webinars-panel {
    min-height: 26rem;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .cda-saved-webinars-heading {
    align-items: start;
  }

  .cda-saved-webinars-heading h2 {
    font-size: 1.3rem;
  }

  .cda-saved-webinars-grid {
    grid-template-columns: 1fr;
  }

  .cda-saved-webinars-empty {
    align-items: start;
    flex-wrap: wrap;
  }

  .cda-saved-webinars-empty a {
    width: 100%;
    margin-left: 3rem;
  }

}

/* Webinar favorite controls */
.cda-webinar-save-media {
  position: relative;
}

.cda-webinar-card-save {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  border-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.cda-webinar-card-save:hover,
.cda-webinar-card-save:focus-visible,
.cda-webinar-card-save.is-saved {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.cda-webinar-modal-heading {
  position: relative;
  padding-right: 5rem !important;
}

.cda-webinar-modal-save {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  margin: 0;
  padding: 0;
  border-color: var(--border-color);
  border-radius: 50%;
  background: var(--bg-element);
  color: var(--text-secondary);
}

.cda-webinar-modal-save:hover,
.cda-webinar-modal-save:focus-visible,
.cda-webinar-modal-save.is-saved {
  border-color: var(--border-color);
  background: var(--bg-element);
  color: var(--brand-primary);
}

@media (max-width: 640px) {
  .cda-webinar-modal-heading {
    padding-right: 1.25rem !important;
  }

  .cda-webinar-modal-save {
    position: static;
    width: 2.5rem;
    margin-top: 0.75rem;
  }
}

@media (min-width: 641px) {
  .cda-webinar-modal-heading {
    padding-right: 5rem !important;
  }
}

/* Priority UX: dedicated learning route and simplified webinar detail */
.cda-webinar-toolbar {
  height: 3.5rem !important;
  min-height: 3.5rem;
}

.cda-webinar-toolbar-title {
  display: none;
}

[data-cda-duplicate-webinar="true"] {
  display: none !important;
}

.cda-webinar-toolbar > div:first-child > div:last-child {
  justify-content: center;
}

.cda-webinar-intro {
  padding: 0 0 1.25rem !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border-color) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cda-webinar-video-heading {
  padding-bottom: 0.75rem !important;
}

.cda-webinar-video-heading > p {
  display: none;
}

.cda-webinar-video-heading > h2 {
  margin-top: 0 !important;
  font-size: 1.125rem !important;
}

.cda-webinar-player {
  position: relative;
}

.cda-webinar-player-loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: var(--bg-element);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 1;
  transition: opacity 180ms ease;
}

.cda-webinar-player.is-loaded .cda-webinar-player-loader {
  opacity: 0;
  pointer-events: none;
}

.cda-webinar-player-spinner {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid var(--border-color);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: cda-player-spin 700ms linear infinite;
}

.cda-secondary-embed,
.cda-secondary-embed-shell {
  display: none !important;
}

@keyframes cda-player-spin {
  to {
    transform: rotate(360deg);
  }
}

#root .cda-library-main {
  padding-top: 2.25rem !important;
  padding-bottom: 5rem !important;
}

@media (max-width: 767px) {
  #root .cda-library-main {
    padding-top: 1.5rem !important;
    padding-bottom: 4rem !important;
  }

  #root .cda-library-title {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  .content-protected :is(.text-\[10px\], .text-\[11px\], .text-xs),
  .cda-webinar-clean :is(.text-\[10px\], .text-\[11px\], .text-xs) {
    font-size: 0.8125rem !important;
  }

  .phase-one-personal-view :is(
    .phase-one-eyebrow,
    .phase-one-personal-tools,
    .learning-kicker,
    .learning-library-count,
    .learning-favorite-item small,
    .learning-recent-item small,
    .learning-saved-route-row small
  ) {
    font-size: 0.8125rem !important;
  }

  .phase-one-personal-view :is(p, small, a, button, strong),
  .phase-one-personal-view :is(
    .learning-favorite-count,
    .learning-step,
    .learning-favorite-item span,
    .learning-recent-item span,
    .learning-saved-route-row span
  ),
  .phase-one-personal-footer :is(span, a) {
    font-size: max(0.8125rem, 1em) !important;
  }

  .cda-global-save,
  .cda-webinar-card-save,
  .cda-webinar-modal-save,
  .cda-directory-info,
  button[aria-label^="Guardar"],
  button[aria-label^="Quitar"] {
    min-width: 2.75rem !important;
    min-height: 2.75rem !important;
  }

  .cda-global-save-row,
  .cda-global-save-card,
  .cda-webinar-card-save,
  .cda-webinar-modal-save,
  .cda-directory-info {
    width: 2.75rem !important;
    height: 2.75rem !important;
  }

  .cda-webinar-toolbar {
    height: 3.5rem !important;
    padding-inline: 0.5rem !important;
  }

  .cda-webinar-toolbar button {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 !important;
    justify-content: center;
  }

  .cda-webinar-toolbar > div:first-child {
    gap: 0.375rem !important;
  }

  .cda-webinar-toolbar > div:last-child {
    gap: 0.375rem !important;
    margin-left: 0.375rem !important;
  }

  .cda-webinar-intro {
    padding-right: 3.5rem !important;
    padding-bottom: 1rem !important;
  }

  .cda-webinar-intro h1 {
    font-size: 1.375rem !important;
  }

  .cda-webinar-modal-save {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cda-webinar-player-loader {
    transition: none;
  }

  .cda-webinar-player-spinner {
    animation: none;
  }
}
@media (max-width: 767px) {
  #root .cda-library-description {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  #root .cda-library-section-title {
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

  #root .cda-library-card-category {
    font-size: 11px !important;
  }

  #root .cda-library-card-title {
    font-size: 12px !important;
  }

  #root .cda-library-card-action {
    font-size: 12px !important;
  }
}
