@media (max-width: 720px), (max-width: 940px) and (max-height: 520px) {
  body.has-mobile-shell:not(.is-auth-landing) .surface-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  body.has-mobile-shell:not(.is-auth-landing) .surface-card-row,
  body.has-mobile-shell:not(.is-auth-landing) .surface-list,
  body.has-mobile-shell:not(.is-auth-landing) .settings-layout,
  body.has-mobile-shell:not(.is-auth-landing) .settings-status-grid,
  body.has-mobile-shell:not(.is-auth-landing) .theme-settings-grid,
  body.has-mobile-shell:not(.is-auth-landing) .user-settings-workspace,
  body.has-mobile-shell:not(.is-auth-landing) .user-settings-grid,
  body.has-mobile-shell:not(.is-auth-landing) .storage-bucket-list {
    grid-template-columns: minmax(0, 1fr);
  }

  body.has-mobile-shell:not(.is-auth-landing) .surface-card,
  body.has-mobile-shell:not(.is-auth-landing) .surface-section,
  body.has-mobile-shell:not(.is-auth-landing) .surface-row,
  body.has-mobile-shell:not(.is-auth-landing) .log-card,
  body.has-mobile-shell:not(.is-auth-landing) .settings-page,
  body.has-mobile-shell:not(.is-auth-landing) .settings-main,
  body.has-mobile-shell:not(.is-auth-landing) .settings-side {
    min-width: 0;
    max-width: 100%;
  }

  body.has-mobile-shell:not(.is-auth-landing) .surface-section > header,
  body.has-mobile-shell:not(.is-auth-landing) .settings-overview > header,
  body.has-mobile-shell:not(.is-auth-landing) .storage-bucket-summary {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  body.has-mobile-shell:not(.is-auth-landing) .surface-section > header > *,
  body.has-mobile-shell:not(.is-auth-landing) .surface-row > *,
  body.has-mobile-shell:not(.is-auth-landing) .storage-bucket-summary > * {
    min-width: 0;
    max-width: 100%;
  }

  body.has-mobile-shell:not(.is-auth-landing) .surface-grid button,
  body.has-mobile-shell:not(.is-auth-landing) .surface-grid input:not([type="checkbox"]):not([type="radio"]),
  body.has-mobile-shell:not(.is-auth-landing) .surface-grid select,
  body.has-mobile-shell:not(.is-auth-landing) .surface-grid textarea,
  body.has-mobile-shell:not(.is-auth-landing) .analysis-workspace button,
  body.has-mobile-shell:not(.is-auth-landing) .analysis-workspace input:not([type="checkbox"]):not([type="radio"]),
  body.has-mobile-shell:not(.is-auth-landing) .analysis-workspace select,
  body.has-mobile-shell:not(.is-auth-landing) .analysis-workspace textarea {
    min-height: 44px;
  }

  body.has-mobile-shell:not(.is-auth-landing) .surface-grid button,
  body.has-mobile-shell:not(.is-auth-landing) .analysis-workspace button {
    min-width: 44px;
  }

  body.has-mobile-shell:not(.is-auth-landing) .surface-grid input:not([type="checkbox"]):not([type="radio"]),
  body.has-mobile-shell:not(.is-auth-landing) .surface-grid select,
  body.has-mobile-shell:not(.is-auth-landing) .surface-grid textarea,
  body.has-mobile-shell:not(.is-auth-landing) .analysis-workspace input:not([type="checkbox"]):not([type="radio"]),
  body.has-mobile-shell:not(.is-auth-landing) .analysis-workspace select,
  body.has-mobile-shell:not(.is-auth-landing) .analysis-workspace textarea {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  body.has-mobile-shell:not(.is-auth-landing) .surface-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow: auto;
    overscroll-behavior-inline: contain;
  }

  body.has-mobile-shell:not(.is-auth-landing) .surface-table {
    min-width: 620px;
  }

  body.has-mobile-shell:not(.is-auth-landing) .surface-table th,
  body.has-mobile-shell:not(.is-auth-landing) .surface-table td {
    padding: 10px 12px;
  }

  body.has-mobile-shell:not(.is-auth-landing) .surface-table button {
    min-width: 44px;
    min-height: 44px;
  }

  body.has-mobile-shell:not(.is-auth-landing) .storage-crumbs {
    min-height: 44px;
    overflow-x: auto;
    padding-inline: 12px;
  }

  body.has-mobile-shell:not(.is-auth-landing) .storage-crumbs button {
    min-width: 44px;
    min-height: 44px;
    white-space: nowrap;
  }

  body.has-mobile-shell:not(.is-auth-landing) .storage-url-result {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  body.has-mobile-shell:not(.is-auth-landing) .storage-url-result .inline-actions {
    width: 100%;
    justify-content: stretch;
  }

  body.has-mobile-shell:not(.is-auth-landing) .storage-url-result .inline-actions > * {
    flex: 1 1 0;
  }

  body.has-mobile-shell:not(.is-auth-landing) .storage-browser,
  body.has-mobile-shell:not(.is-auth-landing) .storage-buckets {
    padding: 12px;
  }

  body.has-mobile-shell:not(.is-auth-landing) .storage-browser button,
  body.has-mobile-shell:not(.is-auth-landing) .storage-buckets button {
    min-width: 44px;
    min-height: 44px;
  }

  body.has-mobile-shell:not(.is-auth-landing) .storage-filterbar {
    width: 100%;
    min-width: 0;
    height: 44px;
  }

  body.has-mobile-shell:not(.is-auth-landing) #storagePanel .meta-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.has-mobile-shell:not(.is-auth-landing) #storagePanel .storage-filterbar {
    grid-column: 1 / -1;
  }

  body.has-mobile-shell:not(.is-auth-landing) #storagePanel .meta-actions > button {
    min-width: 0;
    height: auto;
    padding-block: 6px;
    white-space: normal;
  }

  body.has-mobile-shell:not(.is-auth-landing) .storage-filterbar input {
    font-size: 16px;
  }

  body.has-mobile-shell:not(.is-auth-landing) .storage-bucket {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    min-height: 64px;
  }

  body.has-mobile-shell:not(.is-auth-landing) .storage-entry {
    min-height: 56px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  body.has-mobile-shell:not(.is-auth-landing) .storage-entry-actions {
    width: 100%;
    justify-content: flex-end;
  }

  body.has-mobile-shell:not(.is-auth-landing) .settings-page {
    gap: 12px;
  }

  body.has-mobile-shell:not(.is-auth-landing) .theme-settings-grid {
    min-height: 0;
  }

  body.has-mobile-shell:not(.is-auth-landing) .theme-mode-card {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body.has-mobile-shell:not(.is-auth-landing) .business-contract-grid {
    padding: 12px;
  }

  body.has-mobile-shell:not(.is-auth-landing) .business-contract-card > header,
  body.has-mobile-shell:not(.is-auth-landing) .business-contract-parameter,
  body.has-mobile-shell:not(.is-auth-landing) .settings-config-row,
  body.has-mobile-shell:not(.is-auth-landing) .settings-side .settings-config-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body.has-mobile-shell:not(.is-auth-landing) .business-contract-parameter input[type="checkbox"],
  body.has-mobile-shell:not(.is-auth-landing) .settings-config-row > .toolbar-btn,
  body.has-mobile-shell:not(.is-auth-landing) .settings-side .settings-config-row > .toolbar-btn,
  body.has-mobile-shell:not(.is-auth-landing) .settings-config-row > input[type="checkbox"] {
    grid-column: 1;
    justify-self: start;
  }

  body.has-mobile-shell:not(.is-auth-landing) .surface-inline-sql,
  body.has-mobile-shell:not(.is-auth-landing) pre,
  body.has-mobile-shell:not(.is-auth-landing) code {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.has-mobile-shell:not(.is-auth-landing) .api-endpoint-actions,
  body.has-mobile-shell:not(.is-auth-landing) .inline-actions,
  body.has-mobile-shell:not(.is-auth-landing) .settings-overview-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  body.has-mobile-shell:not(.is-auth-landing) .api-endpoint-actions > *,
  body.has-mobile-shell:not(.is-auth-landing) .inline-actions > *,
  body.has-mobile-shell:not(.is-auth-landing) .settings-overview-actions > * {
    flex: 1 1 132px;
  }
}
