/* Team screen (team.html): one row per person, with their login and a sign-in link.
   Builds on protocol.css (light brand shell, badges, chips). */
#team-page { display: grid; gap: 16px; min-width: 0; }
#team-page > * { min-width: 0; }

.tm-list { list-style: none; margin: 0; padding: 0; }
.tm-row {
  display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr) auto;
  gap: 8px 20px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line);
}
.tm-row:first-child { border-top: 0; }
.tm-row > * { min-width: 0; }
.tm-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.tm-name h3 { margin: 0; font-size: 16px; }
.tm-name .tag { margin: 0; }
.tm-role { margin: 2px 0 0; font-size: 13px; }
.tm-address { font-size: 14px; overflow-wrap: anywhere; }
.tm-add { display: flex; gap: 6px; }
.tm-add .input { flex: 1; min-width: 0; min-height: 40px; padding-block: 7px; font-size: 14px; }
.tm-add .btn { flex: none; min-height: 40px; }
/* The WhatsApp number that the handoff buttons open a chat with. */
.tm-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 4px 0 0; font-size: 13.5px; }
.tm-phone .num { font-size: 14px; }
.tm-phone-edit { min-height: 36px; }
.tm-phone-form { margin-top: 6px; flex-wrap: wrap; align-items: center; }
.tm-phone-form .input { flex: 1 1 140px; }
.tm-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; }
.tm-last { font-size: 12.5px; }
.tm-push { font-size: 12.5px; color: var(--text-2); }
.s-none.sbadge { color: var(--muted); }
.s-none .sicon { box-shadow: inset 0 0 0 1.5px currentColor; opacity: .7; }
.tm-vault { margin: 0; }
.tm-vault.is-on { color: var(--accent-deep); background: var(--accent-soft); }
.tm-vault-btn { min-height: 32px; padding: 3px 10px; font-size: 12.5px; }
.tm-vault-btn::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; vertical-align: 0; }
.tm-vault-btn[aria-pressed='true']::before { background: currentColor; }
.tm-acts { display: flex; align-items: center; justify-content: flex-end; gap: 4px 10px; flex-wrap: wrap; }
.tm-remove { color: var(--danger); min-height: 40px; }
.tm-owner-link { font-size: 12.5px; }

/* The link, once made: copy it or send it by WhatsApp. */
.tm-link {
  grid-column: 1 / -1; display: grid; gap: 8px; padding: 12px 14px; margin-top: 4px;
  border-radius: var(--radius-md); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.tm-link-h { margin: 0; font-weight: 600; font-size: 14px; color: var(--accent-deep); }
.tm-link .linkbox { flex-wrap: wrap; }
.tm-link .linkbox .input { flex: 1 1 260px; min-width: 0; min-height: 40px; padding-block: 7px; background: var(--panel); }
.tm-link .linkbox .btn { flex: none; min-height: 40px; }
.tm-link-note { margin: 0; color: var(--text-2); }

.tm-help { padding: 18px 22px; }
.tm-help h2 { margin: 0 0 8px; font-size: 17px; }
.tm-help ol { margin: 0 0 8px; padding-inline-start: 20px; display: grid; gap: 4px; color: var(--text-2); }
.tm-help p { margin: 0; font-size: 14px; }
.tm-help p + p { margin-top: 6px; }

.tm-noaccess { max-inline-size: 520px; inline-size: 100%; justify-self: center; margin-top: 24px; padding: 28px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.tm-noaccess h2 { margin: 0; font-size: 20px; }
.tm-noaccess p { margin: 0; color: var(--text-2); }

@media (max-width: 900px) {
  .tm-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tm-acts { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .tm-row { grid-template-columns: minmax(0, 1fr); padding: 14px 12px; }
  .tm-acts .btn, .tm-link .linkbox .btn, .tm-phone-edit, .tm-phone-form .btn, .tm-phone-form .btn-text { min-height: 44px; }
  .tm-phone-form .input { min-height: 44px; }
  .tm-link .linkbox .btn { flex: 1 1 auto; }
  .tm-help { padding: 14px; }
}

/* WhatsApp for the team (app/wa-team.js): the switch (the owner) and each person's choice. */
.tm-wa p + p, .tm-wa .tm-wa-acts + p { margin-top: 6px; }
.tm-wa-acts { margin-top: 8px; }
.tm-wa-acts .btn { min-height: 44px; }

/* The employee privacy notice (staff-privacy.html). */
.staff-privacy { max-inline-size: 760px; inline-size: 100%; justify-self: center; margin-top: 16px; }
.staff-privacy h1 { margin: 6px 0 12px; font-size: 22px; line-height: 1.35; }
.staff-privacy h2 { margin: 18px 0 6px; }
.staff-privacy ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; color: var(--text-2); font-size: 14.5px; }
