/* Send-as aliases and mail delegation: the account switcher's delegated
   section, the banner over a delegated mailbox and Settings > Accounts. */
.switcher-head { font-size: 12px; font-weight: 500; color: var(--text-3); margin: 12px 12px 4px; text-transform: uppercase; letter-spacing: .04em; }
.deleg-badge {
  display: inline-block; font-size: 11px; font-weight: 500; padding: 0 6px; border-radius: 999px;
  background: var(--selected); color: var(--accent-ink); vertical-align: 1px;
}
.switcher .acct.offer { cursor: default; }
.switcher .acct.offer:hover { background: none; }
.switcher .acct.offer .info div:first-child { white-space: normal; }
.offer-actions { display: flex; gap: 6px; margin-top: 6px; }

.deleg-banner {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 13px;
  background: var(--surface-2); color: var(--text-2); border-bottom: 1px solid var(--line);
}
.deleg-banner svg { width: 18px; height: 18px; fill: var(--accent-ink); flex: none; }

.dialog.idn-dialog { width: min(640px, 100%); }
.idn-sec + .idn-sec { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 4px; }
.idn-sec h3 { font-weight: 500; margin: 12px 0 4px; }
.idn-sec .help { margin-top: 0; }
.idn-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.idn-who { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.idn-who .muted { font-size: 12px; }
.idn-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.idn-tag {
  display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 500; padding: 0 6px; border-radius: 999px;
  background: var(--selected); color: var(--accent-ink);
}
.idn-radio { display: grid; gap: 6px; margin: 12px 0; }
.idn-radio label { display: flex; align-items: center; gap: 8px; }
.idn-radio p { margin: 0; font-size: 12px; }
.idn-add { display: flex; gap: 8px; margin-top: 12px; }
.idn-add input, input.idn-code {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  background: var(--surface); color: var(--text); font: inherit;
}
input.idn-code { width: 100%; font-size: 22px; letter-spacing: .3em; text-align: center; margin: 8px 0; }
.idn-add input:focus, input.idn-code:focus { outline: 2px solid var(--accent-ink); outline-offset: -1px; }
.shared-mailboxes { margin-top: 32px; }
.shared-mailboxes td .btn + .btn { margin-left: 6px; }
@media (max-width: 640px) {
  .idn-row { flex-wrap: wrap; }
  .idn-add { flex-direction: column; }
}
