@media (max-width: 720px) {
  .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .upload-view,
  .download-view {
    min-height: auto;
    padding: 2rem 0;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .option-grid,
  .form-footer,
  .result-header,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .docs-grid,
  .field-grid,
  .app-shell,
  .settings-form {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
  }

  .endpoint-list div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .result-actions {
    width: 100%;
  }

  .file-progress-side {
    width: 100%;
  }

  .result-actions .button {
    flex: 1;
  }

  h1 {
    font-size: 1.65rem;
  }

  .drop-zone {
    min-height: 15rem;
  }

  .admin-header,
  .table-header {
    flex-direction: column;
    align-items: stretch;
  }

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

  .tabs-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-section {
    grid-template-columns: 1fr;
  }

  .new-collection-body {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .storage-card-fields {
    grid-template-columns: 1fr;
  }
}
