/* Shared by login, sign-up, account and admin. Loaded after styles.css.
 *
 * styles.css locks html/body to the viewport with overflow:hidden, which is right for
 * the desk (a fixed cockpit) and wrong for these pages: on a phone the admin page ran
 * to 1019px on an 844px screen and could not be scrolled at all.
 */
html, body {
  height: auto;
  max-height: none;
  min-height: 100%;
  overflow: auto;
}

/* Copy button beside a one-time code. */
.copy-btn {
  margin-left: 8px;
  background: none;
  border: 1px solid var(--line);
  color: var(--txt);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  vertical-align: middle;
}
.copy-btn:hover { border-color: #3a3a3a; }

/* Admin tables: on a phone, each row becomes a stacked block with its labels, so the
 * action buttons stay on screen instead of sitting past a sideways scroll. */
@media (max-width: 640px) {
  .admin-card table,
  .admin-card tbody,
  .admin-card tr,
  .admin-card td { display: block; width: 100%; }
  .admin-card thead { display: none; }
  .admin-card tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .admin-card td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 4px 0 !important;
    border: 0 !important;
    text-align: right;
    word-break: break-all;
  }
  .admin-card td::before {
    content: attr(data-label);
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    text-align: left;
    flex: 0 0 auto;
  }
  .admin-card td[data-label="Actions"] { justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
  .admin-card td[data-label="Actions"]::before { content: none; }
  .admin-card .card-h { flex-wrap: wrap; gap: 12px; }
}
