.account-aaf-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.people-list-header { flex-wrap: wrap; }
.people-list-header > div:first-child { flex: 1 1 280px; min-width: 0; }
.people-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; }
.people-transfer-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px; padding: 0 13px; white-space: nowrap; font-size: 13px; font-weight: 600;
}
.people-transfer-action svg {
  width: 17px; height: 17px; flex: 0 0 17px; fill: none;
  stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 860px) {
  .people-list-header > div:first-child { flex-basis: auto; }
  #private-list-section .people-header-actions .private-add { width: auto; }
}
@media (max-width: 600px) {
  .people-header-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .people-header-actions .private-add { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
  .people-transfer-action { min-width: 0; }
}
.people-aaf-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: 90dvh;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--text) 18%, transparent);
}
.people-aaf-dialog::backdrop { background: var(--overlay); }
.people-aaf-content { padding: 24px; display: grid; gap: 18px; }
.people-aaf-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.people-aaf-header h2 { margin: 0 0 8px; font-size: 21px; }
.people-aaf-header p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.aaf-import-guide { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); font-size: 13px; line-height: 1.6; }
.aaf-import-guide h3 { margin: 0 0 10px; font-size: 14px; }
.aaf-source-guide { padding: 10px 0; border-bottom: 1px solid var(--line); }
.aaf-source-guide > summary { color: var(--accent); cursor: pointer; font-weight: 600; }
.aaf-source-guide > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.aaf-source-guide > ol { margin-top: 12px !important; }
.aaf-guide-next { margin: 14px 0 0; }
.aaf-import-guide ol { margin: 0; padding-left: 21px; display: grid; gap: 8px; }
.aaf-import-guide li { padding-left: 3px; }
.aaf-import-guide li::marker { color: var(--accent); font-weight: 600; }
.aaf-import-guide li > span { color: var(--muted); }
.aaf-import-guide a { color: var(--accent); text-underline-offset: 3px; }
.aaf-import-guide kbd { font: inherit; font-size: 11px; white-space: nowrap; padding: 1px 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.aaf-guide-example { margin-top: 6px; }
.aaf-guide-example summary { width: fit-content; color: var(--accent); cursor: pointer; text-underline-offset: 3px; }
.aaf-guide-example summary:hover { text-decoration: underline; }
.aaf-guide-example summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.aaf-guide-example figure { margin: 10px 0 0; }
.aaf-guide-example img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.aaf-guide-example figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; }
.people-aaf-text-field { display: grid; gap: 8px; font-size: 13px; font-weight: 600; }
.people-aaf-text-field textarea {
  box-sizing: border-box; width: 100%; min-height: 190px; max-height: 40dvh; resize: vertical;
  padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-soft); color: var(--text); font: 12px/1.6 Consolas, monospace;
}
.people-aaf-text-field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.aaf-review { display: grid; gap: 10px; }
.aaf-review[hidden], .people-aaf-dialog [hidden] { display: none; }
.aaf-review h3 { margin: 0; font-size: 14px; line-height: 1.5; }
.aaf-results { border: 1px solid var(--line); border-radius: 10px; max-height: 260px; overflow-y: auto; }
.aaf-person { display: flex; align-items: center; gap: 10px; padding: 12px; font-size: 12px; }
.aaf-person + .aaf-person { border-top: 1px solid var(--line); }
.aaf-person-ready { cursor: pointer; }
.aaf-person input[type="checkbox"] {
  appearance: auto; accent-color: var(--accent); flex: 0 0 18px;
  width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0;
}
.aaf-person > div { min-width: 0; flex: 1; display: grid; gap: 4px; }
.aaf-person span { color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.aaf-person strong { overflow-wrap: anywhere; }
.aaf-person small { color: var(--muted); }
.aaf-person-invalid small, .people-aaf-dialog .error { color: var(--danger, #b42318); }
.aaf-selection { margin: 0; font-size: 12px; color: var(--muted); }
.people-aaf-status { margin: 0; font-size: 13px; line-height: 1.5; white-space: pre-line; }
.people-aaf-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) {
  .people-aaf-content { padding: 18px; }
  .account-aaf-actions { grid-column: 1 / -1; }
  .account-aaf-actions button, .people-aaf-actions button { flex: 1 1 auto; }
}
