/* Young Enterprises VNext mobile polish — loaded after the main VNext layer. */

.ye-product-detail {
  scroll-margin-top: 104px;
}

@media (max-width: 720px) {
  .ye-system-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 10px;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 12px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(12,38,49,.98), rgba(18,55,68,.95));
    box-shadow: var(--ye-shadow);
    perspective: none;
    overflow: hidden;
  }

  .ye-system-stage::before {
    display: none;
  }

  .ye-system-stage .ye-system-card {
    position: relative;
    inset: auto;
    width: auto;
    transform: none;
  }

  .ye-stage-service,
  .ye-stage-work {
    grid-column: 1 / -1;
  }

  .ye-stage-finance {
    grid-column: 1;
  }

  .ye-stage-book {
    grid-column: 2;
    width: auto;
    right: auto;
    bottom: auto;
    align-self: stretch;
    display: grid;
    place-items: center;
    padding: 8px;
  }

  .ye-stage-work .ye-flow > :nth-child(n + 7) {
    display: none;
  }

  .ye-stage-work .ye-editions {
    margin-top: 8px;
  }

  .ye-stage-service .body,
  .ye-stage-work .body,
  .ye-stage-finance .body {
    padding: 12px 13px;
  }
}

@media (max-width: 480px) {
  .ye-workbench-body {
    grid-template-columns: 84px 1fr;
  }

  .ye-workbench-sidebar {
    padding-inline: 7px;
  }

  .ye-workbench-sidebar b {
    font-size: .52rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .ye-workbench-sidebar span {
    padding-inline: 5px;
  }

  .ye-system-stage {
    grid-template-columns: minmax(0, 1fr) 82px;
    padding: 10px;
  }

  .ye-stage-book {
    padding: 6px;
  }
}
