/* AP OneFlow Preview 03 - UI Cleanup Round 1 */

/* 1. Compact welcome hero */
.clean-home-hero {
  min-height: 104px !important;
  margin-bottom: 18px !important;
  padding: 18px 26px !important;
  border-radius: 20px !important;
}

.clean-home-hero h1 {
  font-size: clamp(30px, 2.45vw, 42px) !important;
  line-height: 1.12 !important;
}

.clean-home-hero p {
  margin-top: 6px !important;
  font-size: 14px !important;
}

.clean-home-hero-art {
  width: 180px !important;
  height: 84px !important;
  opacity: .82 !important;
}

/* 2. Cards no longer reserve visual space for sequence badges */
.clean-module-card {
  grid-template-rows: 128px 82px 42px !important;
}

.clean-module-badge {
  display: none !important;
}

/* 3. Standard page heading: title left, navigation action right */
.runtime-heading {
  position: relative;
}

.runtime-title-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 18px !important;
}

.runtime-title-row > div {
  order: 1;
  min-width: 0;
  flex: 1 1 auto;
}

.runtime-title-row > .runtime-back {
  order: 2;
  flex: 0 0 auto;
  margin-left: auto !important;
  margin-right: 0 !important;
  min-width: 146px;
  min-height: 46px;
  padding: 0 18px !important;
  border-radius: 14px !important;
  justify-content: center !important;
}

.runtime-title-row > .runtime-back .runtime-back-label {
  display: inline !important;
}

/* The score/ranking area was removed from the homepage in Preview 03. */
.clean-home-score {
  display: none !important;
}

@media (max-width: 980px) {
  .clean-home-hero {
    min-height: 92px !important;
    padding: 16px 20px !important;
  }

  .clean-home-hero h1 {
    font-size: 31px !important;
  }
}
