.account-switch-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.account-switch-heading h2 {
  margin-bottom: 6px;
}

.account-switch-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.account-switch-list {
  display: grid;
  gap: 10px;
}

.account-switch-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.account-switch-row.current {
  border-color: #9fc8ff;
  background: #f6faff;
}

.account-switch-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8f2ff;
}

.account-switch-avatar-placeholder {
  display: grid;
  place-items: center;
  color: #397dcc;
  font-size: 18px;
  font-weight: 700;
}

.account-switch-main {
  min-width: 0;
}

.account-switch-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.account-switch-main p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.account-current-badge {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e2f0ff;
  color: #1677ff;
  font-size: 11px;
  font-weight: 600;
}

.account-switch-action {
  display: flex;
  justify-content: flex-end;
}

.account-switch-action button {
  white-space: nowrap;
}

.account-switch-empty {
  padding: 28px;
  border: 1px dashed #cbd4df;
  border-radius: 9px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 720px) {
  .account-switch-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .account-switch-heading > button {
    align-self: flex-start;
  }

  .account-switch-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .account-switch-avatar {
    width: 42px;
    height: 42px;
  }

  .account-switch-action {
    grid-column: 1 / -1;
  }

  .account-switch-action button {
    width: 100%;
  }
}
