.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 74%, var(--line));
}

.view-tab {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
  white-space: nowrap;
}

.view-tab:hover {
  color: var(--ink);
}

.view-tab.is-active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 7px 18px rgba(32, 36, 39, 0.1);
}

.button,
select,
input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  border-color: #aab6bd;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(32, 36, 39, 0.08);
}

.button:active,
.view-tab:active,
.mini-button:active,
.icon-button:active {
  transform: translateY(1px) scale(0.99);
}

.button:focus-visible,
select:focus-visible,
input:focus-visible,
.mini-button:focus-visible,
.view-tab:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 42%, transparent);
  outline-offset: 2px;
}

.button-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: light-dark(#fff, #071018);
}

#visibleCount {
  display: none;
}

/* ── Toast notification ──────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 9999;
  padding: 10px 20px;
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

body[data-theme="light"] .toast {
  background: #1a1a1a;
  color: #fff;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ── Manage member dialog ─────────────────────────────────── */
.manage-member-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.manage-invite-block {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.manage-invite-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
