/* Session mobile overrides loaded after the main stylesheet. */
@media (max-width: 760px) {
  .set-row {
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 18px;
  }

  .set-summary {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 10px 10px 12px;
  }

  .set-row[open] .set-summary {
    border-bottom: 1px solid rgba(16, 24, 32, 0.07);
  }

  .set-summary-main {
    gap: 7px;
  }

  .set-summary-plan {
    gap: 5px;
    overflow: hidden;
  }

  .set-summary-plan .plan-chip {
    max-width: 42vw;
    padding: 5px 7px;
    font-size: 0.7rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .set-summary-plan .plan-chip:nth-child(n + 3) {
    display: none;
  }

  .set-summary-side {
    max-width: 48vw;
    gap: 6px;
  }

  .set-result-summary {
    justify-content: end;
    gap: 5px;
    overflow: hidden;
  }

  .set-result-chip,
  .set-empty-chip {
    min-height: 28px;
    padding: 5px 7px;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .set-toggle-indicator {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    font-size: 1rem;
  }

  .set-row-body {
    padding: 10px;
    gap: 10px;
  }

  .set-plan {
    gap: 7px;
    padding: 9px;
  }

  .set-plan > span {
    display: block !important;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .gym-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .gym-fields .field:first-child,
  .gym-fields .field:last-child {
    grid-column: 1 / -1 !important;
  }

  .gym-fields .field:nth-child(3) {
    grid-column: auto !important;
  }

  .weight-stepper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible !important;
  }

  .weight-stepper .chip-button {
    min-width: 0 !important;
    width: 100%;
    justify-content: center;
    padding-inline: 4px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .set-row-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .set-complete-button {
    width: 100%;
    min-height: 40px;
  }

  .set-inline-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: visible !important;
    padding-bottom: 0;
  }

  .set-inline-actions .chip-button {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 390px) {
  .set-summary-plan .plan-chip:nth-child(n + 2),
  .set-result-summary .set-result-chip:nth-child(n + 3) {
    display: none;
  }
}
