* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; background: #f5f5f7; color: #1d1d1f; -webkit-tap-highlight-color: transparent; }
*:focus-visible { outline: 2px solid #007aff; outline-offset: 2px; }
.header { padding: 24px 20px; background: #fff; border-bottom: 1px solid #e5e5ea; }
.header h1 { margin: 0; font-size: 24px; }
.subtitle { margin: 4px 0 12px; color: #6e6e73; font-size: 14px; }
.stats { display: flex; gap: 16px; font-size: 14px; }
.stat strong { font-variant-numeric: tabular-nums; }
.main { max-width: 720px; margin: 20px auto; padding: 0 20px; }
.toolbar { display: flex; gap: 8px; margin-bottom: 16px; }
.toolbar input { flex: 1; padding: 8px 12px; border: 1px solid #d2d2d7; border-radius: 8px; font-size: 16px; -webkit-tap-highlight-color: transparent; }
.btn { padding: 8px 14px; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; }
.btn.primary { background: #007aff; color: #fff; }
.btn:active { transform: scale(0.97); }
.member-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.card { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: box-shadow 150ms ease-out; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #e5e5ea; flex-shrink: 0; aspect-ratio: 1 / 1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { background: #007aff; color: #fff; font-weight: 600; font-size: 16px; }
.avatar-fallback::after { content: attr(data-initial); }
.info { flex: 1; min-width: 0; }
.name { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.email { font-size: 13px; color: #6e6e73; overflow-wrap: anywhere; }
.role { font-size: 12px; color: #8e8e93; overflow-wrap: anywhere; word-break: break-word; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #e5e5ea; white-space: nowrap; min-width: 64px; text-align: center; }
.menu { border: none; background: none; cursor: pointer; color: #6e6e73; flex-shrink: 0; min-width: 32px; }

.toggle { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; background: #e5e5ea; border-radius: 999px; font-size: 12px; z-index: 1000; }
.toggle button { border: none; background: none; padding: 4px 12px; border-radius: 999px; cursor: pointer; color: #6e6e73; }
.toggle button.active { background: #fff; color: #1d1d1f; box-shadow: 0 1px 2px rgba(0,0,0,.1); }

@media (hover: none) {
  .card:hover { transform: none; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
  .btn:hover { opacity: 1; }
}


