/* Mobile-only Progressi fit: keep the useful state above the fixed navigation on phone viewports. */
@media (max-width: 759px) {
  #app .progress-screen {
    padding-top: 8px !important;
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .progress-screen .screen-head {
    padding: 0 0 8px !important;
  }
  .progress-screen .screen-head .app-kicker {
    margin-bottom: 1px;
    font-size: .68rem;
    line-height: 1.15;
  }
  .progress-screen .screen-head h1 {
    margin: 0;
    font-size: 1.62rem;
    line-height: 1;
  }

  .progress-screen .progress-card {
    padding: 13px 14px !important;
    border-radius: 19px;
  }
  .progress-screen .progress-card > .app-kicker {
    margin-bottom: 3px;
    font-size: .68rem;
    line-height: 1.15;
  }
  .progress-screen .progress-card > h2 {
    margin: 0 0 4px !important;
    font-size: 1.34rem;
    line-height: 1.08;
  }
  .progress-screen .progress-card > p {
    margin: 0 0 8px !important;
    font-size: .84rem;
    line-height: 1.28;
  }

  .progress-screen .progress-metrics {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 6px !important;
    margin: 8px 0 !important;
  }
  .progress-screen .progress-metrics > div {
    min-width: 0;
    min-height: 0 !important;
    padding: 8px 5px !important;
    border-radius: 13px !important;
    text-align: center;
  }
  .progress-screen .progress-metrics dt {
    margin: 0 0 3px !important;
    font-size: .62rem !important;
    line-height: 1.08;
  }
  .progress-screen .progress-metrics dd {
    margin: 0 !important;
    font-size: 1.08rem !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  .progress-screen .progress-bar {
    height: 6px !important;
    margin: 8px 0 !important;
  }
  .progress-screen .progress-card > p:last-of-type {
    margin-bottom: 8px !important;
  }
  .progress-screen .progress-card .primary-action {
    min-height: 40px !important;
    width: 100%;
    padding: 7px 12px !important;
    font-size: .82rem;
  }
  .progress-screen .progress-card + p,
  .progress-screen .section-note {
    margin: 7px 2px 0 !important;
    font-size: .7rem !important;
    line-height: 1.2;
  }

  .app-bottom-nav .progress-exercise-icon {
    width: 19px;
    height: 19px;
  }
}

/* Short phone viewports (Safari/Chrome browser chrome visible): reclaim vertical room without hiding content. */
@media (max-width: 759px) and (max-height: 760px) {
  #app .progress-screen {
    padding-top: 5px !important;
  }
  .progress-screen .screen-head {
    padding-bottom: 6px !important;
  }
  .progress-screen .progress-card {
    padding: 11px 13px !important;
  }
  .progress-screen .progress-card > p {
    margin-bottom: 6px !important;
  }
  .progress-screen .progress-metrics {
    margin: 6px 0 !important;
  }
  .progress-screen .progress-metrics > div {
    padding: 6px 4px !important;
  }
  .progress-screen .progress-bar {
    margin: 6px 0 !important;
  }
  .progress-screen .progress-card .primary-action {
    min-height: 38px !important;
  }
}
