/* Shared personnel email dialog. Keep the Public and Tenant copies in sync. */
html.person-email-open { overflow: hidden; }
.person-email-dialog {
  box-sizing: border-box;
  width: min(46rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid #cbd5e1;
  border-radius: 1.25rem;
  background: #fff;
  color: #172b45;
  box-shadow: 0 24px 80px #0f172a40;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  overflow: auto;
  text-align: start;
}
.person-email-dialog::backdrop { background: #0f172a99; }
.person-email-dialog [hidden] { display: none !important; }
.person-email-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.person-email-dialog__header h2 { margin: 0; color: inherit; font-size: 1.35rem; line-height: 1.4; }
.person-email-dialog button, .person-email-dialog a, .person-email-dialog input { font: inherit; }
.person-email-dialog__header button {
  flex-shrink: 0; width: 44px; height: 44px; padding: 0;
  border: 1px solid #cbd5e1; border-radius: 50%; background: #f8fafc;
  color: #172b45; font-size: 1.6rem; cursor: pointer;
}
.person-email-dialog__name { margin: 1rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.person-email-dialog__address {
  margin: 1rem 0; padding: .85rem; border-radius: .65rem;
  background: #f1f5f9; color: #172b45; text-align: center; overflow-wrap: anywhere;
}
.person-email-dialog__copy {
  width: 100%; min-height: 48px; padding: .7rem 1rem;
  border: 2px solid #164e82; border-radius: .65rem; background: #164e82;
  color: #fff; font-weight: 700; cursor: pointer;
}
.person-email-dialog__copy:hover { background: #103c65; }
.person-email-dialog__copy[aria-disabled="true"] { opacity: .7; cursor: wait; }
.person-email-dialog__status { min-height: 1.6em; margin: .65rem 0; color: #14532d; font-size: .95rem; }
.person-email-dialog__options { display: grid; gap: .6rem; margin-top: 1rem; }
.person-email-dialog__options a {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .5rem .75rem; border: 1px solid #94a3b8; border-radius: .65rem;
  color: #164e82; background: #fff; text-decoration: none; font-weight: 600; gap: .6rem; text-align: center;
}
.person-email-dialog__options a:hover { background: #f1f5f9; text-decoration: none; }
.person-email-dialog__help { margin: 1rem 0 0; color: #475569; font-size: .9rem; }
.person-email-dialog label { display: block; }
.person-email-dialog input { box-sizing: border-box; width: 100%; min-height: 44px; padding: .5rem; border: 1px solid #64748b; border-radius: .4rem; color: #172b45; background: #fff; }
.person-email-dialog :is(button, a, input):focus-visible { outline: 3px solid #b45309; outline-offset: 3px; }
@media (forced-colors: active) { .person-email-dialog { border: 2px solid CanvasText; } }

.person-email-dialog #person-email-copy-help { margin: 0 0 1rem; }

.person-email-dialog__copy { display: flex; align-items: center; justify-content: center; gap: .6rem; }
.person-email-dialog__options { border-top: 1px solid #cbd5e1; padding-top: 1rem; }
.person-email-dialog__choose { margin: 0 0 .15rem; }
.person-email-dialog__status:empty { min-height: 0; margin: 0; }
.person-email-dialog :is(a, button) i { flex-shrink: 0; }

.person-email-dialog #person-email-help p { margin: 0; }
.person-email-dialog #person-email-help p + p { margin-top: .5rem; }
