body .app-shell .directory-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0 0 14px;
}
body .app-shell .directory-actions > .button { white-space: nowrap; }
body .app-shell .directory-sort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 9px;
  margin: 0;
  font-size: 12px;
}
body .app-shell .directory-actions .directory-sort { margin-left: auto; }
body .app-shell .directory-sort select {
  min-height: 44px;
  padding: 6px 28px 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
body .app-shell .directory-sort .button { min-height: 44px; padding: 6px 9px; }
body .app-shell .directory-sort.is-auto-submit select { flex: 0 1 auto; width: auto; max-width: 100%; }
@media (max-width: 650px) {
  body .app-shell .screen[aria-labelledby="people-title"] > .topbar { align-items: center; }
  body .app-shell #people-title { white-space: nowrap; }
  body .app-shell .directory-actions { gap: 6px 8px; margin-bottom: 16px; }
  body .app-shell .directory-actions .directory-sort { flex: 1 1 100%; margin-left: 0; gap: 6px; }
  body .app-shell .directory-sort label { flex: 0 0 100%; }
  body .app-shell .directory-sort select { flex: 1 1 0; width: auto; min-width: 0; padding-right: 8px; }
  body .app-shell .people-directory-with-index { display: flex; flex-direction: column; gap: 8px; }
  body .app-shell .people-directory-content { width: 100%; }
  body .app-shell .people-alphabet { position: static; order: -1; display: flex; width: 100%; max-height: none; overflow-x: auto; overflow-y: hidden; gap: 0; border-radius: 6px; }
  body .app-shell .people-alphabet a { flex: 0 0 44px; min-width: 44px; min-height: 44px; }
  body .app-shell .directory-item { min-height: 0; grid-template-columns: minmax(0,1fr) 18px; gap: 4px 8px; padding: 14px 4px; }
  body .app-shell .directory-person { gap: 10px; margin-bottom: 3px; }
  body .app-shell .directory-person .avatar { width: 34px; height: 34px; font-size: 15px; }
  body .app-shell .directory-person strong { font-size: 16px; line-height: 1.4; overflow-wrap: break-word; }
  body .app-shell .directory-cell { padding-left: 44px; font-size: 14px; line-height: 1.45; }
  body .app-shell .directory-cell small { margin-top: 2px; }
  body .app-shell .directory-cell:nth-child(3) > strong { display: none; }
  body .app-shell .directory-date { padding-left: 44px; margin-top: 3px; font-size: 11px; }
}
