@media (max-width: 700px) {
  .user-search {
    max-width: none;
  }
  .users-table-wrap {
    overflow: visible;
    border: 0;
  }
  .users-table {
    display: block;
    min-width: 0;
  }
  .users-table thead {
    display: none;
  }
  .users-table tbody {
    display: grid;
    gap: 12px;
  }
  .users-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }
  .users-table td {
    display: block;
    min-width: 0;
    border: 0;
    padding: 8px;
    background: transparent;
    overflow-wrap: anywhere;
  }
  .users-table td:first-child,
  .users-table td:nth-child(2),
  .users-table td:last-child {
    grid-column: 1/-1;
  }
  .users-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 4px;
  }
  .users-table td:first-child::before {
    display: none;
  }
  .users-table .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
  .users-table button {
    min-height: 42px;
    font-size: 12px;
    padding: 7px;
  }
  #refresh-users {
    min-height: 42px;
  }
}
