/* Admin on a phone: a card's detail lives in a bottom sheet (admin-phone-sheet.js). Nothing here applies above 640px. */
.admin-phone-open { display: none; }
@media (max-width: 640px) {
  #people-list .record > div > .record-parts,
  #connector-list .connector-card > div:nth-of-type(3),
  #connector-list .connector-card > details { display: none; }
  .admin-phone-sheet-body .record-parts,
  .admin-phone-sheet-body > div,
  .admin-phone-sheet-body > details { display: block; }
  .admin-phone-open { display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-height: 44px; min-width: 44px; padding: 0 16px; }
  dialog.admin-phone-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: 85vh; margin: 0; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); border: 0; border-radius: 16px 16px 0 0; background: #fff; overflow: auto; box-sizing: border-box; overflow-wrap: anywhere; }
  dialog.admin-phone-sheet::backdrop { background: rgba(16, 24, 40, .36); }
  .admin-phone-sheet > header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; background: #fff; }
  .admin-phone-sheet h2 { margin: 0; font-size: 18px; }
  .admin-phone-sheet-close { min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
  .admin-phone-sheet-body button { min-height: 44px; }
}
/* The card's Roles button is a secondary button, not the red End link: responsibility.css styles every
   `.record button` as that link, which outweighed `.secondary`. The End buttons keep their red link look in the
   sheet, where they are no longer inside `.record`. */
@media (max-width: 640px) {
  #people-list .record > .admin-phone-open { border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; color: var(--ink, #171b26); font-size: 14px; font-weight: 650; }
  .admin-phone-sheet-body .record-parts button { border: 0; background: transparent; color: var(--danger, #b42318); font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
  .admin-phone-sheet-body .record-parts li > span:first-child, .admin-phone-sheet-body .record-parts .status { font-size: 13px; }
}
